repo_name
stringlengths
6
101
path
stringlengths
4
300
text
stringlengths
7
1.31M
maria-farooq/Avalon
avalon-io/src/main/java/org/koaksoft/avalon/input/BaseInputReader.java
package org.koaksoft.avalon.input; import java.util.Scanner; /** * base input reader * * @author mariafarooq * */ public class BaseInputReader implements InputReader { private final Scanner scanner; public BaseInputReader(Scanner scanner) { super(); this.scanner = scanner; } public String readStri...
shaojiankui/iOS10-Runtime-Headers
PrivateFrameworks/StoreKitUI.framework/SKUIBadgeTextAttachmentLoader.h
/* Generated by RuntimeBrowser Image: /System/Library/PrivateFrameworks/StoreKitUI.framework/StoreKitUI */ @interface SKUIBadgeTextAttachmentLoader : NSObject <SKUIArtworkRequestDelegate> { NSMapTable * _imageRequests; SKUIResourceLoader * _resourceLoader; NSHashTable * _stringViews; } @property (read...
praveennagaraj97/e-commerce-using-react-and-express
Community-side/src/components/Works/index.js
import KeyBoarders from "./KeyBoarders"; import Manufacturer from "./Manufacturer"; export { KeyBoarders, Manufacturer };
freibergerb/web-stories-wp
packages/story-editor/src/testUtils/renderWithTheme.js
<filename>packages/story-editor/src/testUtils/renderWithTheme.js /* * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/...
LalaChen/SDEngine
SourceCode/src/Basic/FileSystem/FileResourceRequester.cpp
#include "LogManager.h" #include "FileSystemManager.h" #include "AssetResourceManager.h" #include "FileResourceRequester.h" ______________SD_START_BASIC_NAMESPACE_______________ SD_SINGLETON_DECLARATION_IMPL(FileResourceRequester); const std::string FileResourceRequester::sFilePathTypeStrings[FilePathType_MAX_DEFINE...
op-ct/rubygem-simp-cli
lib/simp/cli/config/item/certificates.rb
require "resolv" require 'highline/import' require File.expand_path( '../item', File.dirname(__FILE__) ) require File.expand_path( '../utils', File.dirname(__FILE__) ) module Simp; end class Simp::Cli; end module Simp::Cli::Config class Item::Certificates < ActionItem attr_accessor :dirs def initialize ...
903136698/Secret
app/src/main/java/com/jikexueyuan/secret/net/GetComment.java
<reponame>903136698/Secret package com.jikexueyuan.secret.net; import com.jikexueyuan.secret.Config; import org.json.JSONArray; import org.json.JSONException; import org.json.JSONObject; import java.util.ArrayList; import java.util.List; /** * Created by MiracleWong on 2015/7/6. */ public class GetComment { p...
openlibraryenvironment/ncip-tools
src/main/java/org/olf/ncip/v1schema/UserNoticeSent.java
<gh_stars>0 // // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802 // See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> // Any modifications to this file will be lost upon recompilation of the source schema. // Generated ...
coryb/gearbox
gearbox/t/core/plugins/goodbye.cc
<filename>gearbox/t/core/plugins/goodbye.cc // Copyright (c) 2012, Yahoo! Inc. All rights reserved. // Copyrights licensed under the New BSD License. See the accompanying LICENSE file for terms. #include <gearbox/core/logger.h> #include "TestPlugin.h" struct Goodbye : public TestPlugin { Goodbye() { _DEB...
readysetstem/readysetstem-api
projects/hw/hw_test_accel.py
<reponame>readysetstem/readysetstem-api<filename>projects/hw/hw_test_accel.py #!/usr/bin/python3 from rstem.accel import Accel from rstem.gpio import Input, Output from rstem.button import Button import sys import time import os def near(actual, expected): return abs(actual - expected) < 0.1 NUM_SAMPLES = 5 pins...
zhangshuai930822/BUCK
test/com/facebook/buck/cli/RootCommandTest.java
<reponame>zhangshuai930822/BUCK /* * Copyright 2015-present Facebook, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); you may * not use this file except in compliance with the License. You may obtain * a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unle...
abhijeetbodas2001/DSA
part-01/2_18_find-peak-element.cpp
// Problem: https://leetcode.com/problems/find-peak-element/ // O(log(n)) time, O(1) extra space // Modified binary search. class Solution { public: int findPeakElement(vector<int>& nums) { int len = nums.size(); int left = 0; int right = len - 1; int mid; if (len == 1) { retur...
yuchange/myDemoGather
myDemo/Android/gradle-2.12/src/plugins/org/gradle/api/internal/plugins/DefaultTemplateBasedStartScriptGenerator.java
<reponame>yuchange/myDemoGather /* * Copyright 2015 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 ...
femtoio/femtousb-blink-example
blinky/common/services/gfx_mono/example1/example1.c
/** * \file * * \brief Monochrome graphic library example application * * Copyright (c) 2014 Atmel Corporation. All rights reserved. * * \asf_license_start * * \page License * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following condi...
zhangjunfang/jstorm-0.9.6.3-
jstorm-client/src/main/java/backtype/storm/scheduler/SupervisorDetails.java
<reponame>zhangjunfang/jstorm-0.9.6.3- package backtype.storm.scheduler; import java.util.Collection; import java.util.HashSet; import java.util.Set; @SuppressWarnings({"unchecked","rawtypes"}) public class SupervisorDetails { String id; /** * hostname of this supervisor */ String host; Object meta; /** * ...
perfectrecall/aws-sdk-cpp
aws-cpp-sdk-transcribestreaming/include/aws/transcribestreaming/model/MedicalAlternative.h
<reponame>perfectrecall/aws-sdk-cpp<gh_stars>1-10 /** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include <aws/transcribestreaming/TranscribeStreamingService_EXPORTS.h> #include <aws/core/utils/memory/stl/AWSString.h> #include <aws/co...
Pholisa-Fatyela/Ovex-test-ui
lib/daemons/amqp_daemon.rb
require File.join(ENV.fetch('RAILS_ROOT'), 'config', 'environment') raise "bindings must be provided." if ARGV.size == 0 Rails.logger = logger = Logger.new STDOUT conn = Bunny.new AMQPConfig.connect conn.start ch = conn.create_channel id = $0.split(':')[2] prefetch = AMQPConfig.channel(id)[:prefetch] || 0 ch.prefet...
datamolecule/door_mat
lib/door_mat/process/manage_email.rb
<filename>lib/door_mat/process/manage_email.rb<gh_stars>0 module DoorMat module Process class ManageEmail def self.add(email, actor, controller) return false unless email.valid? actor.with_lock do return false unless actor.can_add_email? email email.status = :not_avail...
threefoldtech/0-templates
tests/controller/templates_manager/general_temp/zt_client.py
<filename>tests/controller/templates_manager/general_temp/zt_client.py<gh_stars>1-10 from jumpscale import j from zerorobot.service_collection import ServiceNotFoundError from testconfig import config import random class ZT_Client: def __init__(self, parent, local=False): self.zt_template = 'github.com/thr...
edwardstudy/eirini
models.go
package eirini import ( "context" "fmt" "code.cloudfoundry.org/bbs/models" "code.cloudfoundry.org/eirini/models/cf" "code.cloudfoundry.org/eirini/opi" ) const ( //Environment Variable Names EnvDownloadURL = "DOWNLOAD_URL" EnvBuildpacks = "BUILDPACKS" EnvDropletUploadURL = "DROPLET_UPLOAD_UR...
v-tsun/azure-sdk-for-js
sdk/textanalytics/ai-text-analytics/recordings/node/aad_textanalyticsclient_health/recording_output_has_the_same_order_as_input.js
<reponame>v-tsun/azure-sdk-for-js let nock = require('nock'); module.exports.hash = "cca3d852367a8f22e560c9113bc0d622"; module.exports.testInfo = {"uniqueName":{},"newDate":{}} nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) .post('/azure_tenant_id/oauth2/v2.0/token', "response_type=toke...
lhj502819/Java-Family-Bucket
jdk1.8-source-analysis/test/com/source/cyclicbarrier/TestCyclcBarrier.java
package com.source.cyclicbarrier; import java.util.concurrent.BrokenBarrierException; import java.util.concurrent.CyclicBarrier; /** * TODO * * @author lihongjian * @since 2020/5/7 */ public class TestCyclcBarrier { public static void main(String[] args) { CyclicBarrier cyclicBarrier = new CyclicBarr...
viewdy/phantomjs
src/qt/qtwebkit/Source/WebCore/inspector/InspectorFrontendHost.cpp
<gh_stars>1-10 /* * Copyright (C) 2007, 2008 Apple Inc. All rights reserved. * Copyright (C) 2008 <NAME> <<EMAIL>> * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * 1. Redistributions of source code must re...
livehybrid/addonfactory-ucc-generator
splunk_add_on_ucc_framework/UCC-UI-lib/style.config.js
var path = require('path'); var buildToolsDir = path.join(__dirname, 'bower_components', 'SplunkWebCore', 'build_tools'); var mergeConfigs = require(buildToolsDir + '/util/mergeConfigs'); var cssConfig = require(buildToolsDir + '/profiles/common/css.config'); module.exports = mergeConfigs(cssConfig('enterprise'), { ...
stkdman/exerciociosCod3r-JS
exercicio29.js
function intervalo10E20 (numeros) { let num = numeros let entre = 0 let fora = 0 for (i = 0 ; i < numeros.length ; i++) { if (numeros[i] >= 10 && numeros[i] <= 20){ entre++ } else { fora++ } } return [entre, fora] } console.log(interva...
nmercier/linux-cross-gcc
linux/lib/python2.7/dist-packages/blueman/bluez/Adapter.py
<gh_stars>1-10 from PropertiesBlueZInterface import PropertiesBlueZInterface from errors import raise_dbus_error, parse_dbus_error from Device import Device import dbus class Adapter(PropertiesBlueZInterface): @raise_dbus_error def __init__(self, obj_path=None): if self.__class__.get_interface_version...
so3500/problem-solving
src/main/java/programmers/CodingB.java
/* * 1부터 n까지 번호가 붙어있는 n명의 사람이 영어 끝말잇기를 하고 있습니다. 영어 끝말잇기는 다음과 같은 규칙으로 진행됩니다. 1번부터 번호 순서대로 한 사람씩 차례대로 단어를 말합니다. 마지막 사람이 단어를 말한 다음에는 다시 1번부터 시작합니다. 앞사람이 말한 단어의 마지막 문자로 시작하는 단어를 말해야 합니다. 이전에 등장했던 단어는 사용할 수 없습니다. 한 글자인 단어는 인정되지 않습니다. 다음은 3명이 끝말잇기를 하는 상황을 나타냅니다. tank → kick → know → wheel → land → dream → mother → robot →...
WolffunGame/go-sdk
pkg/decision/evaluator/matchers/semver_test.go
/**************************************************************************** * Copyright 2020-2021, Optimizely, Inc. and contributors * * * * Licensed under the Apache License, Version 2.0 (the "License"); * * you m...
andbi/evrete
evrete-dsl-java/src/main/java/org/evrete/dsl/ClassMethod.java
<filename>evrete-dsl-java/src/main/java/org/evrete/dsl/ClassMethod.java package org.evrete.dsl; import java.lang.invoke.MethodHandle; import java.lang.invoke.MethodHandles; import java.lang.invoke.MethodType; import java.lang.reflect.Method; import java.lang.reflect.Modifier; import java.util.function.Function; class...
lollito/fm
src/main/java/com/lollito/fm/config/security/JwtUtil.java
package com.lollito.fm.config.security; import java.util.Date; import org.springframework.beans.factory.annotation.Value; import org.springframework.stereotype.Component; import com.lollito.fm.model.User; import io.jsonwebtoken.Claims; import io.jsonwebtoken.Jwts; import io.jsonwebtoken.SignatureAlgorithm; @Compon...
allansrc/fuchsia
src/firmware/gigaboot/include/stdio.h
<reponame>allansrc/fuchsia<gh_stars>100-1000 // Copyright 2016 The Fuchsia Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef SRC_FIRMWARE_GIGABOOT_INCLUDE_STDIO_H_ #define SRC_FIRMWARE_GIGABOOT_INCLUDE_STDIO_H_ #ifndef NULL #d...
wonderzdh/zydis
include/Zydis/CommonTypes.h
<filename>include/Zydis/CommonTypes.h /*************************************************************************************************** Zyan Disassembler Library (Zydis) Original Author : <NAME>, <NAME> * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software ...
hipstersmoothie/parse-commit-message
src/main.js
<filename>src/main.js import { tryCatch, isObject } from './utils'; import { parseCommit, stringifyCommit, checkCommit } from './commit'; /** * Receives and parses a single or multiple commit message(s) in form of string, * object, array of strings, array of objects or mixed. * * @example * import { parse } from ...
Alecto3-D/testable-greeter
bb-master/sandbox/lib/python3.5/site-packages/buildbot/util/maildir.py
<reponame>Alecto3-D/testable-greeter # This file is part of Buildbot. Buildbot is free software: you can # redistribute it and/or modify it under the terms of the GNU General Public # License as published by the Free Software Foundation, version 2. # # This program is distributed in the hope that it will be useful, bu...
fidian/PrettyCSS
test/css/page-test.js
<gh_stars>10-100 "use strict"; var util = require('./util'); exports.batch = util.makeVows('page', { '@page block': { 'input': 'margin: 7em;\n', 'tokenList': ['declaration-page', 'whitespace'], 'tokensRemaining': 0, 'toString': 'margin:7em;' } });
EnvironmentAgency/flood_risk_engine
db/migrate/20160513144337_add_uprn_to_address.rb
<reponame>EnvironmentAgency/flood_risk_engine class AddUprnToAddress < ActiveRecord::Migration[4.2] def change add_column :flood_risk_engine_addresses, :uprn, :string add_index :flood_risk_engine_addresses, :uprn change_column :flood_risk_engine_locations, :easting, :string change_column :flood_risk...
octoblu/alljoyn
alljoyn/services/time/ios/inc/alljoyn/time/AJTMTimeServicePeriod.h
<reponame>octoblu/alljoyn /****************************************************************************** * Copyright AllSeen Alliance. All rights reserved. * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee is hereby granted, provided that the above * ...
lechium/iPhoneOS_12.1.1_Headers
System/Library/PrivateFrameworks/CloudDocsDaemon.framework/BRCAnalyticsReporter.h
/* * This header is generated by classdump-dyld 1.0 * on Saturday, June 1, 2019 at 6:50:40 PM Mountain Standard Time * Operating System: Version 12.1.1 (Build 16C5050a) * Image Source: /System/Library/PrivateFrameworks/CloudDocsDaemon.framework/CloudDocsDaemon * classdump-dyld is licensed under GPLv3, Copyright © 2013-...
NCIEVS/nci-meme5
model/src/main/java/com/wci/umls/server/model/content/LexicalClass.java
/** * Copyright 2016 West Coast Informatics, LLC */ package com.wci.umls.server.model.content; /** * Represents a classification by LVG-normalized string. Any two atoms with the * same string class have the same LVG-normalized name. */ public interface LexicalClass extends AtomClass { /** * Returns the norm...
VivekChamp/clubcrm
club_crm/club_crm/report/spa_commission_summary/spa_commission_summary.js
<reponame>VivekChamp/clubcrm<gh_stars>0 // Copyright (c) 2016, <NAME> and contributors // For license information, please see license.txt /* eslint-disable */ frappe.query_reports["Spa Commission Summary"] = { "filters": [{ fieldname: "year", label: __("Year"), fieldtype: "Link"...
symLogicDMUS/Try-Reactjs
src/game_logic/testObjects/white/pinDicts/pinned_ex2.js
<filename>src/game_logic/testObjects/white/pinDicts/pinned_ex2.js export var pins = { WP1: [ [ 3, 4 ], [ 2, 3 ], [ 1, 2 ] ], WB1: [ [ 4, 4 ], [ 4, 3 ], [ 4, 2 ], [ 4, 1 ] ], WN1: [ [ 5, 4 ], [ 6, 3 ], [ 7, 2 ], [ 8, 1 ] ], WP2: [ [ 3, 5 ], [ 2, 5 ], [ 1, 5 ] ], WK1: [], WR1: [ [ 5, 5 ], [ 6, 5 ]...
lukaszlaszuk/insightconnect-plugins
plugins/kolide/komand_kolide/actions/create_query/schema.py
# GENERATED BY KOMAND SDK - DO NOT EDIT import komand import json class Component: DESCRIPTION = "Create a new query in Kolide" class Input: DESCRIPTION = "description" NAME = "name" QUERY = "query" class Output: RESULTS = "results" class CreateQueryInput(komand.Input): schema = ...
martinmihov/JavaAdvanced
AbstractionExercises/ToTheStars.java
<reponame>martinmihov/JavaAdvanced package AbstractionExercises; import java.util.Scanner; public class ToTheStars { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); String[][] stars = new String [3][3]; for (int i = 0; i <stars.length ; i++) { ...
Phalcon7/framework
ext/mvc/model/transaction/managerinterface.c
/* +------------------------------------------------------------------------+ | Phalcon Framework | +------------------------------------------------------------------------+ | Copyright (c) 2011-2014 Phalcon Team (http://www.phalconphp.com) | +-----...
ikem-krueger/Java-Algorithms
src/main/java/org/calvin/BitManipulation/DivideBy2or3.java
<reponame>ikem-krueger/Java-Algorithms package org.calvin.BitManipulation; class DivideBy2or3 { int add(int n1, int n2) { int x = n1; int y = n2; while (x > 0) { int t = (x & y) << 1; y ^= x; x = t; } return y; } // public static l...
sgrowe/ga
homeworks/javascript-calculator/solution-code/scripts/app.js
// ! 💻 Acuerdate que cuando estas trabajando en el navegador, asegurate de salvar cambios en este archivo, y actualiza la ventana del navegador para volver a ejecutar el código. // ! 👨‍🏫 Leé cuidadosamente el readme, y practica utilizando "window.prompt()" para coger la entrada del usuario. // * Escribe tu código ...
twitter-zuiwanyuan/finatra
inject/inject-thrift-client/src/test/scala/com/twitter/inject/thrift/integration/http_server/EchoThriftClientModule.scala
<filename>inject/inject-thrift-client/src/test/scala/com/twitter/inject/thrift/integration/http_server/EchoThriftClientModule.scala package com.twitter.inject.thrift.integration.http_server import com.twitter.inject.thrift.modules.ThriftClientModule import com.twitter.test.thriftscala.EchoService import com.twitter.ut...
perfectrecall/aws-sdk-cpp
aws-cpp-sdk-macie2/include/aws/macie2/model/CreateClassificationJobRequest.h
<reponame>perfectrecall/aws-sdk-cpp /** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include <aws/macie2/Macie2_EXPORTS.h> #include <aws/macie2/Macie2Request.h> #include <aws/core/utils/memory/stl/AWSString.h> #include <aws/core/utils/...
UniversityOfHelsinkiCS/mobvita
client/components/PracticeView/PreviousSnippets/Word/index.js
import React from 'react' import { useHistory } from 'react-router-dom' import { hiddenFeatures } from 'Utilities/common' import PlainWord from 'Components/PracticeView/PlainWord' import PreviousExerciseWord from './PreviousExerciseWord' const Word = ({ word, answer, tiedAnswer, hideFeedback }) => { const history = ...
kamlesh-00/algorithms-in-java
iii/elementary_data_structures/AQueue.java
package com.iii.elementary_data_structures; import java.util.ArrayList; import java.util.Collections; import java.util.List; public class AQueue<T> { public List<T> items; public int head; public int tail; public int capacity; public AQueue() { } public AQueue(int capacity) { this.items = new Arra...
lauracristinaes/aula-java
hibernate-release-5.3.7.Final/project/hibernate-core/src/test/java/org/hibernate/test/idgen/enhanced/forcedtable/HiLoForcedTableSequenceTest.java
/* * Hibernate, Relational Persistence for Idiomatic Java * * License: GNU Lesser General Public License (LGPL), version 2.1 or later. * See the lgpl.txt file in the root directory or <http://www.gnu.org/licenses/lgpl-2.1.html>. */ package org.hibernate.test.idgen.enhanced.forcedtable; import org.junit.Test; imp...
chelini/isl-haystack
test_inputs/codegen/cloog/basic-bounds-2.c
<reponame>chelini/isl-haystack S1(0);
ccantill/qdox
src/main/java/com/thoughtworks/qdox/library/JavaClassContext.java
<filename>src/main/java/com/thoughtworks/qdox/library/JavaClassContext.java package com.thoughtworks.qdox.library; /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding...
luciVuc/openui5
src/sap.ui.webc.common/src/sap/ui/webc/common/thirdparty/icons/v5/media-play.js
<reponame>luciVuc/openui5<gh_stars>0 sap.ui.define(['sap/ui/webc/common/thirdparty/base/asset-registries/Icons'], function (Icons) { 'use strict'; const name = "media-play"; const pathData = "M425.5 226c11 7 19 19 19 30s-8 23-19 30l-301 188c-6 4-12 6-19 6s-14-2-20-6c-10-7-18-18-18-33V64c0-8 8-19 18-26 6-4 13-6 20-6s...
Grace951/ReactAU
src/shared/components/Admin/AdminListProductPage.js
<reponame>Grace951/ReactAU import { connect } from 'react-redux'; import React from 'react'; import connectDataFetchers from '../../lib/connectDataFetchers.jsx'; import { Breadcrumb , BigHeader, OrangeBoard} from "../Shared/Shared"; import { loadProductList } from '../../actions/productsActions'; import ProductsTblPag...
RP0001/ms2ldaviz
ms2ldaviz/annotation/forms.py
from django import forms example_spectrum = "53.0384:331117.7\n57.0447:798106.4\n65.0386:633125.7\n77.0385:5916789.799999999\n81.0334:27067.0\n85.0396:740633.6\n91.0542:1251226.7000000002\n92.0492:2928042.3\n95.0493:728877.1\n103.0419:59138.40000000001\n104.0495:13185144.700000001\n105.045:1643858.5999999999\n105.0701...
leapframework/framework
base/core/src/main/java/leap/core/params/DefaultParamsFactory.java
/* * Copyright 2013 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applica...
chreden/trview
trview.app/Elements/di.hpp
#pragma once #include <external/boost/di.hpp> #include "Level.h" #include "TypeNameLookup.h" #include "Entity.h" #include "StaticMesh.h" #include "Sector.h" #include "Resources/resource.h" #include "Resources/ResourceHelper.h" namespace trview { auto register_app_elements_module() noexcept { using na...
w2ogroup/rave-old
rave-components/rave-core/src/main/java/org/apache/rave/portal/service/WidgetMarketplaceService.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License")...
l3onardo-oliv3ira/interpolator4j
src/test/java/interpolator4j/test/InterpolatorTester.java
package interpolator4j.test; import interpolator4j.ScopeProvider; import interpolator4j.imp.BasicScopeProvider; import interpolator4j.imp.DefaultScopeProvider; public class InterpolatorTester { private static ScopeProvider BASIC_PROVIDER = new BasicScopeProvider(); private static ScopeProvider DEFAULT_PROVIDER =...
Ethiopia-COVID19/api-gateway
models/common/BiographicalData.js
const mongoose = require('mongoose'); const { Schema } = mongoose; const ContactInformation = require('./ContactInformation'); const BiographicalDataSchema = new Schema({ firstName: { type: String, required: true, max: 100 }, middleName: { type: String, max: 100 }, lastName: { type: String, required: true, max:...
Grosskopf/openoffice
main/sc/source/ui/inc/tpsubt.hxx
<filename>main/sc/source/ui/inc/tpsubt.hxx<gh_stars>100-1000 /************************************************************** * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regar...
gitter-badger/data-io
src/test/scala/com/zeotap/data/io/source/spark/loader/JSONSparkLoaderTest.scala
package com.zeotap.data.io.source.spark.loader import com.holdenkarau.spark.testing.DataFrameSuiteBase import com.zeotap.data.io.common.test.helpers.DataFrameUtils.assertDataFrameEquality import org.apache.commons.io.FileUtils import org.apache.spark.sql.Row import org.apache.spark.sql.types._ import org.scalatest.Fun...
axoloto/CaptainAsteroid
NativePlugin/CaptainAsteroid/src/physics/systems/Collide.hpp
#pragma once #include "components/Position.hpp" #include "entityx/System.h" #include "entityx/Event.h" namespace CaptainAsteroidCPP { namespace Sys { class Collide : public entityx::System<Collide> { public: Collide() = default; void update( entityx::EntityManager &entities, entityx::Event...
Vixxth/Origin
Origin/js/plugins/Ours/CGMZ_Achievements.js
/*: * @author <NAME> * @url https://www.caspergaming.com/plugins/cgmz/achievements/ * @target MZ * @base CGMZ_Core * @orderAfter CGMZ_Core * @plugindesc Creates a powerful achievement system * @help * ============================================================================ * For terms and conditions using ...
SaitoTsutomu/leetcode
codes_/0461_Hamming_Distance.py
<reponame>SaitoTsutomu/leetcode # %% [461. Hamming Distance](https://leetcode.com/problems/hamming-distance/) class Solution: def hammingDistance(self, x: int, y: int) -> int: return sum(i != j for i, j in zip(bin(x)[2:].zfill(31), bin(y)[2:].zfill(31)))
mhazankin/vic
vendor/github.com/go-openapi/runtime/bytestream.go
// Copyright 2015 go-swagger maintainers // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agr...
WeilerWebServices/Kivy
p4a-pygame-bootstrap-components/pygame_bootstrap_jni/sdl_gfx/SDL_gfxBlitFunc.h
/* SDL_gfxBlitFunc: custom blitters (part of SDL_gfx library) LGPL (c) <NAME> */ #ifndef _SDL_gfxBlitFunc_h #define _SDL_gfxBlitFunc_h /* Set up for C function definitions, even when using C++ */ #ifdef __cplusplus extern "C" { #endif #include <stdio.h> #include <stdlib.h> #include <SDL.h> #include <SDL_vide...
wynjauu/1.11.1-qtt-flink
flink-formats/flink-protobuf/src/main/java/org/apache/flink/formats/protobuf/messageutils/ProtobufFieldConverterUtil.java
<reponame>wynjauu/1.11.1-qtt-flink package org.apache.flink.formats.protobuf.messageutils; import org.apache.flink.api.java.typeutils.RowTypeInfo; import org.apache.flink.formats.protobuf.exception.ProtobufException; import org.apache.flink.formats.protobuf.typeutils.MessageVersion; /** * @author liufangliang * @da...
RathmoreChaos/intficpy
tests/verbs/test_get_all_drop_all.py
from ..helpers import IFPTestCase from intficpy.thing_base import Thing class TestInventoryVerbs(IFPTestCase): def test_get_all_drop(self): item1 = Thing(self.game, "miracle") item2 = Thing(self.game, "wonder") item1.invItem = True item2.invItem = True item3 = item2.copyTh...
cramforce/linkedom
cjs/html/html-video-element.js
<reponame>cramforce/linkedom 'use strict'; const {HTMLElement} = require('./html-element.js'); /** * @implements globalThis.HTMLVideoElement */ class HTMLVideoElement extends HTMLElement { constructor(ownerDocument, localName = 'video') { super(ownerDocument, localName); } } exports.HTMLVideoElement = HTMLVi...
SuLab/WikiGenomesBase
scripts/alias_fix.py
<reponame>SuLab/WikiGenomesBase import WD_Utils from wikidataintegrator import wdi_core, wdi_login import getpass username = input("Username: ") password = <PASSWORD>("Password: ") count = 0 sparql = WD_Utils.WDSparqlQueries() login = wdi_login.WDLogin(user=username, pwd=password) def write2wikidata(qid): print(...
ezLeaks/backdoored
com/google/api/client/auth/oauth/OAuthRsaSigner.java
package com.google.api.client.auth.oauth; import com.google.api.client.util.*; import java.security.*; @Beta public final class OAuthRsaSigner implements OAuthSigner { public PrivateKey privateKey; public OAuthRsaSigner() { super(); } @Override public String getSignatureMethod() ...
vaticorp/ssabirov
chapter_001/src/main/java/ru/job4j/calculator/Calculator.java
<reponame>vaticorp/ssabirov package ru.job4j.calculator; /** *This is my first simple calculator. *@author <NAME> *@since 23.01.2017 22:09 *@version 1 */ public class Calculator { private double result; /** *Method sumirzes two numbers. *@param first number. *@param second number. */ publi...
amcp/janusgraph
janusgraph-core/src/main/java/org/janusgraph/graphdb/database/serialize/attribute/EnumSerializer.java
<gh_stars>1000+ // Copyright 2017 JanusGraph Authors // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applica...
cjsteel/python3-venv-ansible-2.10.5
lib/python3.8/site-packages/ansible_collections/f5networks/f5_modules/plugins/modules/bigip_asm_policy_signature_set.py
#!/usr/bin/python # -*- coding: utf-8 -*- # # Copyright: (c) 2018, F5 Networks Inc. # GNU General Public License v3.0 (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import absolute_import, division, print_function __metaclass__ = type DOCUMENTATION = r''' --- module: bigip_asm_policy_signat...
jai-singhal/djangopy
vendor/bundle/ruby/2.3.0/gems/sass-3.5.6/lib/sass/tree/media_node.rb
module Sass::Tree # A static node representing a `@media` rule. # `@media` rules behave differently from other directives # in that when they're nested within rules, # they bubble up to top-level. # # @see Sass::Tree class MediaNode < DirectiveNode # TODO: parse and cache the query immediately...
GerHobbelt/DOMtastic
src/dom_extra.js
/** * @module DOM (extra) */ import { each } from './util'; import { append, before, after } from './dom'; import { $ } from './selector'; /** * Append each element in the collection to the specified element(s). * * @param {Node|NodeList|Object} element What to append the element(s) to. Clones elements as necess...
smogpill/core
src/io/stream/coBinaryInputStream.h
// Copyright(c) 2016 <NAME> // Distributed under the MIT License (See accompanying file LICENSE.md file or copy at http://opensource.org/licenses/MIT). #pragma once #include "io/stream/coInputStream.h" class coBinaryInputStream final : public coInputStream { coDECLARE_SUPER(coInputStream); public: coBinaryInputStrea...
AsahiOS/gate
usr/src/lib/libnisdb/ldap_glob.c
<filename>usr/src/lib/libnisdb/ldap_glob.c /* * CDDL HEADER START * * The contents of this file are subject to the terms of the * Common Development and Distribution License, Version 1.0 only * (the "License"). You may not use this file except in compliance * with the License. * * You can obtain a copy of the ...
niektuytel/Machine_Learning
reinforcement_learning/double_deep_q_learning/sample_keras.py
<gh_stars>10-100 from tensorflow.keras.layers import Dense, Activation from tensorflow.keras.models import Sequential from tensorflow.keras.optimizers import Adam import numpy as np import gym class ReplayBuffer(object): def __init__(self, max_size, input_shape, n_actions, discrete=False): self.mem_size = ...
yunhai281/baseProject
src/main/java/com/boyuyun/base/user/action/BureauUserAction.java
package com.boyuyun.base.user.action; import java.io.File; import java.io.FileInputStream; import java.io.InputStream; import java.io.PrintWriter; import java.net.URLEncoder; import java.util.ArrayList; import java.util.List; import java.util.Map; import javax.annotation.Resource; import javax.servlet.ServletOutputSt...
dcavar/Py3L
src/Intro/ngramtest2.py
<gh_stars>1-10 #!/usr/bin/env python3 # -*- coding: utf-8 -*- """ (C) 2013 by <NAME> This is an example of a simple Naive Bayesian classifier. Make sure that you paste some German and English text for the extraction of language models in text-de-1.txt and text-en-1.txt. The more text you put in these files, the bett...
mankeyl/elasticsearch
modules/ingest-common/src/test/java/org/elasticsearch/ingest/common/GrokProcessorFactoryTests.java
/* * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one * or more contributor license agreements. Licensed under the Elastic License * 2.0 and the Server Side Public License, v 1; you may not use this file except * in compliance with, at your election, the Elastic License 2.0 or the Server...
TheDIM47/canoe
core/shared/src/main/scala/canoe/models/passport/PassportElementError.scala
<reponame>TheDIM47/canoe<filename>core/shared/src/main/scala/canoe/models/passport/PassportElementError.scala<gh_stars>100-1000 package canoe.models.passport /** * Error in the Telegram Passport element which was submitted that should be resolved by the user */ sealed trait PassportElementError extends Product /*...
CIDARLAB/fpSelection
fpSelection/src/main/java/org/cidarlab/fpSelection/parsers/ScrapedCSVParse.java
<gh_stars>1-10 /* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package org.cidarlab.fpSelection.parsers; import com.panayotis.gnuplot.JavaPlot; import com.panayotis.gnuplot.plot.Abst...
becca-bailey/amphtml
build-system/babel-plugins/babel-plugin-transform-log-methods/test/fixtures/transform-log-methods/template-literals/input.js
user().assert(true, `I'm a ${template} literal with one argument.`); user().assert(x != y, `I have ${foo}, ${bar} and ${baz}.`); userAssert(false, `Template ${index} = 2`); devAssert(1, `Template ${index} = 3`);
rajatenzyme/Coding-Journey-
Algo_Ds_Notes-master/Algo_Ds_Notes-master/Circular_Queue/Circular_Queue.c
/* Circular Queue is based on FIFO (First In First Out) principle and the last position is connected back to the first position to make a circle. */ #include<stdio.h> int queue[5]; int front = -1, rear = -1, size = 5; void insert (int value); void deleteQueue(); void display(); int main() { int choice, value;...
Emmettwoo/LearningDataStructures
test/src/top/woohoo/map/LeetCode350.java
<reponame>Emmettwoo/LearningDataStructures<filename>test/src/top/woohoo/map/LeetCode350.java<gh_stars>0 package top.woohoo.map; import top.woohoo.array.Array; public class LeetCode350 { public int[] intersect(int[] nums1, int[] nums2) { BSTMap<Integer, Integer> set = new BSTMap<>(); Array<Integer...
goldmann/pnc
dto/src/main/java/org/jboss/pnc/dto/BuildPushResult.java
<reponame>goldmann/pnc /** * JBoss, Home of Professional Open Source. * Copyright 2014-2019 Red Hat, Inc., and individual contributors * as indicated by the @author tags. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You m...
Gladg/Triburg
app/controllers/goods-received-notes.server.controller.js
<gh_stars>0 'use strict'; /** * Module dependencies. */ var mongoose = require('mongoose'), errorHandler = require('./errors.server.controller'), GoodsReceivedNote = mongoose.model('GoodsReceivedNote'), _ = require('lodash'); /** * Create a Goods received note */ exports.create = function(req, res) { var good...
osoco/better-ways-of-thinking-about-software
Part-03-Understanding-Software-Crafting-Your-Own-Tools/models/edx-platform/cms/static/js/spec/models/component_template_spec.js
<reponame>osoco/better-ways-of-thinking-about-software define(['js/models/component_template'], function(ComponentTemplate) { describe('ComponentTemplates', function() { var mockTemplateJSON = { templates: [ { category: 'problem', ...
whywhywhyw/o3de
Gems/AtomTressFX/Code/Builders/HairBuilderComponent.h
/* * Copyright (c) Contributors to the Open 3D Engine Project. * For complete copyright and license terms please see the LICENSE at the root of this distribution. * * SPDX-License-Identifier: Apache-2.0 OR MIT * */ #pragma once #include <AzCore/Component/Component.h> #include <AzCore/Asset/AssetCommon.h> #includ...
hfming/core-java
basic-concurrent/src/com/hfm/alternate/PackUnpackWay.java
<filename>basic-concurrent/src/com/hfm/alternate/PackUnpackWay.java package com.hfm.alternate; import org.junit.jupiter.api.Test; import java.util.concurrent.locks.LockSupport; /** * @author <EMAIL> * @version 1.01 2021-09-15 16:38 * @Description * @date 2021/9/15 */ public class PackUnpackWay { static Thre...
andrasigneczi/TravelOptimiser
DataCollector/mozilla/xulrunner-sdk/include/mozilla/dom/ImageData.h
<gh_stars>1-10 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* vim:set ts=2 sw=2 et tw=78: */ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this file, * You can obtain one at http://mozilla.org...
iboxdb/db4o-gpl
db4o.j/db4o-core/core/src/com/db4o/reflect/jdk/ClassLoaderJdkLoader.java
<reponame>iboxdb/db4o-gpl /* Copyright (C) 2007 Versant Inc. http://www.db4o.com */ package com.db4o.reflect.jdk; /** * @sharpen.ignore */ public class ClassLoaderJdkLoader implements JdkLoader { private final ClassLoader _loader; /** * @exclude */ public ClassLoaderJdkLoader(ClassLoader loader) { _lo...
FantasyVII/Blue-Flame-Engine
Blue-Flame-Engine/Core/BF/Graphics/Animation/DataType.h
<filename>Blue-Flame-Engine/Core/BF/Graphics/Animation/DataType.h #pragma once #include "BF/Graphics/Animation/IDataType.h" #include "BF/Common.h" namespace BF { namespace Graphics { namespace Animation { template <class T, IDataType::InternalDataType internalDataType> class DataType : public IDataType ...
kayinli/bk-bcs
bcs-services/bcs-cluster-manager/internal/cloudprovider/state.go
/* * Tencent is pleased to support the open source community by making Blueking Container Service available. * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * Licensed under the MIT License (the "License"); you may not use this file except * in compliance with the License. You may obta...
sajalguptajft/cobbzilla-wizard
wizard-server/src/main/java/org/cobbzilla/wizard/server/RestServerLifecycleListenerBase.java
<reponame>sajalguptajft/cobbzilla-wizard<filename>wizard-server/src/main/java/org/cobbzilla/wizard/server/RestServerLifecycleListenerBase.java package org.cobbzilla.wizard.server; import org.cobbzilla.wizard.server.config.RestServerConfiguration; public class RestServerLifecycleListenerBase<C extends RestServerConfig...
pacoolin/octopus
1.utils/core/src/main/java/com/octopus/utils/balance/qps/QPSManager.java
package com.octopus.utils.balance.qps; import com.octopus.isp.tools.IDataGet; import com.octopus.utils.alone.ArrayUtils; import com.octopus.utils.alone.ObjectUtils; import com.octopus.utils.alone.StringUtils; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import org.apache.hadoop....