repo_name
stringlengths
6
101
path
stringlengths
4
300
text
stringlengths
7
1.31M
rdp/rogerpack2005-golang
include/plan9/ureg_arm.h
<reponame>rdp/rogerpack2005-golang // Copyright 2012 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. #include "../ureg_arm.h"
ed741/PathBench
src/algorithms/algorithm_manager.py
<filename>src/algorithms/algorithm_manager.py from algorithms.algorithm import Algorithm from utility.compatibility import HAS_OMPL from utility.misc import static_class from typing import Optional, List, Type, Dict, Any, Tuple import importlib.util import inspect import os import sys import copy import traceback # p...
fieranmason/mem-admin
scripts/public-content/update-mines.js
'use strict'; var MongoClient = require('mongodb').MongoClient; var Promise = require('promise'); var _ = require('lodash'); var defaultConnectionString = 'mongodb://localhost:27017/mem-dev'; var username = ''; var password = ''; var host = ''; var db ...
avnishsachar/Open3D_homework_task
docs/_out/html/cpp_api/search/files_0.js
<filename>docs/_out/html/cpp_api/search/files_0.js var searchData= [ ['azurekinectrecorder_2ecpp',['AzureKinectRecorder.cpp',['../_azure_kinect_recorder_8cpp.html',1,'']]], ['azurekinectrecorder_2eh',['AzureKinectRecorder.h',['../_azure_kinect_recorder_8h.html',1,'']]], ['azurekinectsensor_2ecpp',['AzureKinectSen...
dreamer888/zhihuinongmao
zhnm/zhnm-miniapp/backend/mallweb/src/main/java/com/yq/controller/news/NewsController.java
package com.yq.controller.news; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; import javax.annotation.Resource; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.b...
steffenschroeder/tarnow
tarnow/switch.py
<gh_stars>0 import os import fcntl import subprocess import sys import syslog as log from . import config class Switch(object): def __str__(self): return "Name: '%s', NextSkip: '%s', AllSkip: '%s'" % ( self.name, str(self.next_skip), str(self.all_skip), ) ...
wuyaowei1989/CoolPlay
app/src/main/java/com/android/coolPlay/net/JanDanApi.java
package com.android.coolPlay.net; import android.support.annotation.StringDef; import com.android.coolPlay.bean.FreshNewsArticleBean; import com.android.coolPlay.bean.FreshNewsBean; import com.android.coolPlay.bean.JdDetailBean; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; imp...
lu1995happy/Leetcode
Leetcode/760_findAnagramMappings.java
import java.util.HashMap; public class findAnagramMappings { // Time: O(n), Space: O(n); public int[] anagramMappings (int[] A, int[] B) { int[] res = new int[A.length]; if (A == null || B == null || A.length == 0 || B.length == 0 || A.length != B.length) return res; // Since this problem accepts any pos...
jacebrowning/voc
tests/benchmarks/call_simple.py
#!/usr/bin/env python """Microbenchmark for function call overhead. This measures simple function calls that are not methods, do not use varargs or kwargs, and do not use tuple unpacking. """ # Python imports import time def foo(a, b, c, d): # 20 calls bar(a, b, c) bar(a, b, c) bar(a, b, c) bar...
cantona/NT6
nitan/cmds/arch/ftpuser.c
<filename>nitan/cmds/arch/ftpuser.c // ftpuser.c #include <ansi.h> inherit F_CLEAN_UP; int main(object me, string arg) { mixed ftp_sockets; string msg, stat =""; if (! SECURITY_D->valid_grant(me, "(arch)")) return 0; if (! find_object(FTP_D)) ...
rsteube/carapace-completers
completers/tmux_completer/cmd/detachClient_generated.go
<reponame>rsteube/carapace-completers<filename>completers/tmux_completer/cmd/detachClient_generated.go<gh_stars>0 package cmd import ( "github.com/rsteube/carapace" "github.com/spf13/cobra" ) var detachClientCmd = &cobra.Command{ Use: "detach-client", Short: "", Run: func(cmd *cobra.Command, args []string) {...
Kumar-Saksham/CSMM-CLI
test/commands/parseUserConfig.test.js
const { expect, test } = require("@oclif/test"); const { saveDirValidation, tmpDirValidation, concurrencyValidation, transferProgressTimeoutValidation, dirValidation, } = require("../../src/helperFunctions/userConfig/validation"); const path = require("path"); describe("HOOK parseUserConfig", () => { // te...
scarybeasts/beebj
asm/asm_jit_defs.h
<gh_stars>10-100 #ifndef BEEBJIT_ASM_JIT_DEFS_H #define BEEBJIT_ASM_JIT_DEFS_H #include "asm_platform.h" /* NOTE: this affects performance significantly. * Smaller is generally faster, which I believe is an L1 icache effect. * Going smaller than 7 is currently not feasible due to some opcodes not * fitting in 64 b...
lutris/openmsx
src/fdc/NowindHost.hh
#ifndef NOWINDHOST_HH #define NOWINDHOST_HH #include "NowindInterface.hh" #include "DiskImageUtils.hh" #include "circular_buffer.hh" #include "openmsx.hh" #include <vector> #include <string> #include <memory> #include <iosfwd> namespace openmsx { class SectorAccessibleDisk; class NowindHost { public: explicit Nowi...
ScipioAM/scipio-utils
scipio-utils-doc/src/main/java/com/github/ScipioAM/scipio_utils_doc/pdf/pdf_box/PdfboxOperatorBase.java
<gh_stars>0 package com.github.ScipioAM.scipio_utils_doc.pdf.pdf_box; /** * @author <NAME> * @since 1.0.2-p3 * @date 2021/8/27 */ public abstract class PdfboxOperatorBase { }
Ladicek/arquillian-cube
docker/docker/src/main/java/org/arquillian/cube/docker/impl/client/config/StarOperator.java
<reponame>Ladicek/arquillian-cube<gh_stars>0 package org.arquillian.cube.docker.impl.client.config; import java.util.ArrayList; import java.util.Collection; import java.util.Random; import java.util.UUID; public class StarOperator { private static Random random = new Random(); private StarOperator(){ } ...
usenixatc2021/SoftRefresh_Scheduling
linsched-linsched-alpha/arch/sparc/include/asm/tlbflush_64.h
#ifndef _SPARC64_TLBFLUSH_H #define _SPARC64_TLBFLUSH_H #include <linux/mm.h> #include <asm/mmu_context.h> /* TSB flush operations. */ #define TLB_BATCH_NR 192 struct tlb_batch { struct mm_struct *mm; unsigned long tlb_nr; unsigned long vaddrs[TLB_BATCH_NR]; }; extern void flush_tsb_kernel_range(unsigned long s...
ANDROFAST/delivery_articulos
delivery/app-release_source_from_JADX/com/paypal/android/sdk/payments/PayPalOAuthScopes.java
<filename>delivery/app-release_source_from_JADX/com/paypal/android/sdk/payments/PayPalOAuthScopes.java package com.paypal.android.sdk.payments; import android.os.Parcel; import android.os.Parcelable; import android.os.Parcelable.Creator; import android.text.TextUtils; import com.paypal.android.sdk.C0494N; import java....
zou-zhicheng/awesome-java
book-spring-5-recipes/ch02/recipe_2_06_ii/src/main/java/com/apress/springrecipes/shop/Battery.java
package com.apress.springrecipes.shop; public class Battery extends Product { private boolean rechargeable; public Battery() { super(); } public Battery(String name, double price, double discount) { super(name, price, discount); } public boolean getRechargeable() { r...
arjinmc/SmartCam
core/src/main/java/com/arjinmc/smartcam/core/camera1/Camera1Wrapper.java
package com.arjinmc.smartcam.core.camera1; import android.hardware.Camera; import com.arjinmc.smartcam.core.SmartCamLog; import com.arjinmc.smartcam.core.lock.CameraLock; import com.arjinmc.smartcam.core.model.CameraFlashMode; import com.arjinmc.smartcam.core.model.CameraSize; import com.arjinmc.smartcam.core.model.C...
eugeneilyin/mdi-norm
es/SharpBrightness5.js
<reponame>eugeneilyin/mdi-norm<filename>es/SharpBrightness5.js<gh_stars>1-10 import { FilledBrightnessLow as SharpBrightness5 } from './FilledBrightnessLow'; export { SharpBrightness5 };
78182648/blibli-go
app/interface/main/account/dao/account/commercial_test.go
package account import ( "context" "net/url" "testing" "github.com/smartystreets/goconvey/convey" ) func TestAccountCommercialSign(t *testing.T) { var ( params = url.Values{} ) params.Set("appkey", "test") params.Set("appsecret", "e6c4c252dc7e3d8a90805eecd7c73396") params.Set("key", "value") result := u...
mgsx-dev/gdx-kit
core/src/net/mgsx/game/plugins/camera/CameraPlugin.java
package net.mgsx.game.plugins.camera; import com.badlogic.gdx.graphics.Camera; import com.badlogic.gdx.graphics.OrthographicCamera; import com.badlogic.gdx.graphics.PerspectiveCamera; import com.badlogic.gdx.utils.viewport.ExtendViewport; import com.badlogic.gdx.utils.viewport.FillViewport; import com.badlogic.gdx.uti...
Shivam-Singh851/egov-coexistence
egov/egov-egfweb/src/main/java/org/egov/egf/web/actions/masters/loangrant/LoanGrantBaseAction.java
/* * eGov SmartCity eGovernance suite aims to improve the internal efficiency,transparency, * accountability and the service delivery of the government organizations. * * Copyright (C) 2017 eGovernments Foundation * * The updated version of eGov suite of products as by eGovernments Foundation * ...
substantial/elasticsearch-rails
elasticsearch-model/test/unit/searching_test.rb
require 'test_helper' class Elasticsearch::Model::SearchingTest < Test::Unit::TestCase context "Searching module" do class ::DummySearchingModel extend Elasticsearch::Model::Searching::ClassMethods def self.index_name; 'foo'; end def self.document_type; 'bar'; end end setup do ...
SquirrelMobile/titanium-template-burger
app/lib/db.js
<gh_stars>1-10 /** * @class Lib.db * database lib */ module.exports = Ti.Database.open("datadb");
vmittal-msft/sonic-sairedis
syncd/ZeroMQNotificationProducer.cpp
<reponame>vmittal-msft/sonic-sairedis #include "ZeroMQNotificationProducer.h" #include <zmq.h> using namespace syncd; ZeroMQNotificationProducer::ZeroMQNotificationProducer( _In_ const std::string& ntfEndpoint): m_ntfContext(nullptr), m_ntfSocket(nullptr) { SWSS_LOG_ENTER(); m_ntfContext = z...
not522/Competitive-Programming
old/AtCoder/agc008/A.cpp
<gh_stars>1-10 #include "graph/adjacency_list.hpp" #include "graph/edge.hpp" #include "graph/shortest_path.hpp" int main() { int x, y; cin >> x >> y; AdjacencyList<WeightedEdge<int>> g(4); g.addUndirectedEdge(0, 1, 1); g.addUndirectedEdge(2, 3, 1); int v[] = {abs(x), -abs(x), abs(y), -abs(y)}; for (int i...
francis-pouatcha/forgelab
adpharma/adpharma.modules/adpharma.client.core/src/main/java/org/adorsys/adpharma/client/jpa/permissionname/PermissionNameLoadService.java
package org.adorsys.adpharma.client.jpa.permissionname; import javafx.concurrent.Service; import javafx.concurrent.Task; import javax.inject.Inject; public class PermissionNameLoadService extends Service<PermissionName> { @Inject private PermissionNameService remoteService; private Long id; public Per...
BiobankLab/BioFace
bioserver/rest-api-bioface/src/main/java/com/bioface/model/ext/UpdateSampleRequest.java
package com.bioface.model.ext; import com.bioface.model.EnumAccess; public class UpdateSampleRequest { private String id; private EnumAccess enumAccess; public String getId() { return id; } public void setId(String id) { this.id = id; } public EnumAccess getEnumAccess() { return enumAccess; } pub...
darrenhaken/admix
spec/unit/admix/mingle/mingle_wall_snapshot_spec.rb
<filename>spec/unit/admix/mingle/mingle_wall_snapshot_spec.rb<gh_stars>1-10 require 'rspec' require_relative '../../../../lib/admix/mingle/mingle_wall_snapshot' require_relative '../../../../lib/admix/mingle/mingle_card' RSpec.describe MingleWallSnapshot do before(:all) do @xml_path = File.expand_path('../../....
Corban10/pw-backend
portfolio/models.py
import datetime from django.db import models from django.utils import timezone class Category(models.Model): name = models.CharField(max_length=100) created_at = models.DateTimeField(auto_now_add=True) updated_at = models.DateTimeField(auto_now=True) def __str__(self): return self.name def ...
Multiface24111/hata
docs/examples/e03_utilities/main.py
<gh_stars>100-1000 from hata import Client TOKEN = '' Sakuya = Client(TOKEN) @Sakuya.events async def message_create(client, message): if message.content == '!messageme': # Client class has many useful high level methods implemented, so you do not need to deal with low level "rest" # calls. Usua...
hemanshuchauhan/argos
src/review/modules/components/ProductHeader.js
<reponame>hemanshuchauhan/argos<filename>src/review/modules/components/ProductHeader.js import React from 'react' import PropTypes from 'prop-types' import { withStyles } from 'material-ui/styles' import Typography from 'material-ui/Typography' import Paper from 'material-ui/Paper' import LayoutBody from 'modules/compo...
opatomic/opac-c
src/opabuff.h
/* * Copyright 2018-2019 Opatomic * Open sourced with ISC license. Refer to LICENSE for details. */ #ifndef OPABUFF_H_ #define OPABUFF_H_ #include <stddef.h> #include <stdint.h> /** * Try to lock allocation in memory and disable paging to disk. If an error occurs * when locking the underlying allocation to memo...
slt0111/jeeweb
jeeweb-web/jeeweb-generator/src/main/java/cn/jeeweb/generator/common/constant/Constants.java
<gh_stars>1-10 package cn.jeeweb.generator.common.constant; public class Constants { // 登陆成功关键字 public static final String LOGIN_SUCCES_KEY = "login_succes_key"; //错误消息 public static final String ERROR_MSG_KEY = "error"; }
mentaljam/msugeo
library/src/msutriangle.cpp
<filename>library/src/msutriangle.cpp #include "msutriangle.h" msumr::Triangle::Triangle(GCP &vertex1, GCP &vertex2, GCP &vertex3) : mVertex0(&vertex1) { double x10, x20, y10, y20, z10R, z20R, z10L, z20L; x10 = vertex2.lon - vertex1.lon; x20 = vertex3.lon - vertex1.lon; y10 = vertex2.lat...
jamhocken/aoc-2020
day17/python/jamhocken/solution.py
def process_input(file_contents): temp = dict() for i, line in enumerate(file_contents): for j, seat in enumerate(line): if seat != '\n': temp.update({(0,0,i,j) : seat}) return temp, len(file_contents) # Helper function to visualize room in the command line def visuali...
aitmlouk/stackn
components/studio/monitor/dash_demo.py
import uuid import random import requests from datetime import datetime from django.core.cache import cache import dash from dash.dependencies import MATCH, ALL from dash.dependencies import Input, Output, State import dash_core_components as dcc import dash_html_components as html import dash_bootstrap_components as...
sergeiWizard/waitio-test
src/client/components/Navigation/SocialButtons/SocialButtons.js
import React from 'react'; import { GoogleLogin } from 'react-google-login'; import FacebookLogin from 'react-facebook-login'; import { Icon } from 'antd'; import PropTypes from 'prop-types'; const SocialButtons = ({ responseSocial, className }) => ( <div className={className}> <GoogleLogin buttonText="Goo...
tonihenriques/GestaoSST
SESTEC/GISWeb/Scripts/Custom/DocumentosPessoal/Excluir.js
<filename>SESTEC/GISWeb/Scripts/Custom/DocumentosPessoal/Excluir.js<gh_stars>0  function DeletarDocumento(IDDocumento,Nome) { var callback = function () { $('.LoadingLayout').show(); $('#dynamic-table').css({ opacity: "0.5" }); $.ajax({ method: "POST", url: "/Docu...
SWuchterl/cmssw
ElectroWeakAnalysis/ZEE/python/simpleCutBasedSpring10SelectionBlocks_cfi.py
import FWCore.ParameterSet.Config as cms ######################################################### ## 95% selection_95relIso = cms.PSet ( trackIso_EB = cms.untracked.double(1.5e-01), ecalIso_EB = cms.untracked.double(2.0e+00), hcalIso_EB = cms.untracked.double(1.2e-01), sihih_EB = cms.untracked.do...
munharsha/tp
src/main/java/seedu/address/logic/commands/sellercommands/DeleteSellerCommand.java
<reponame>munharsha/tp package seedu.address.logic.commands.sellercommands; import static java.util.Objects.requireNonNull; import java.util.List; import seedu.address.commons.core.Messages; import seedu.address.commons.core.index.Index; import seedu.address.logic.commands.Command; import seedu.address.logic.command...
chenying-wang/Tank-Game
js/util/vector.js
<gh_stars>1-10 "use strict" class Vector { constructor(arg1 = 0, arg2 = 0) { if (arg1 instanceof Vector) { this.x = arg1.x this.y = arg1.y } else { this.x = arg1 this.y = arg2 } } static new(...args) { return new this(...args)...
phatblat/macOSPrivateFrameworks
PrivateFrameworks/AVConference/VCMediaNegotiationBlobVideoRuleCollection.h
<filename>PrivateFrameworks/AVConference/VCMediaNegotiationBlobVideoRuleCollection.h // // Generated by class-dump 3.5 (64 bit). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>. // #import "PBCodable.h" #import "NSCopying.h" __attribute__((visibility("hidden"))) @interface VCMedia...
Simsch/jproperties
src/main/java/de/simsch/core/PropertyFileNotFoundException.java
package de.simsch.core; /** * @author simsch */ public class PropertyFileNotFoundException extends RuntimeException { public PropertyFileNotFoundException() { } public PropertyFileNotFoundException(String message) { super(message); } public PropertyFileNotFoundException(String message,...
NLeSC/Platinum
ptk-ui/src/test/java/uitests/jfx/SwingFxWebBrowser.java
package uitests.jfx; import javafx.application.Platform; import javafx.beans.value.ChangeListener; import javafx.beans.value.ObservableValue; import javafx.embed.swing.JFXPanel; import javafx.event.EventHandler; import javafx.scene.Scene; import javafx.scene.web.WebEngine; import javafx.scene.web.WebEvent; import java...
tusharchoudhary0003/Custom-Football-Game
sources/com/fasterxml/jackson/databind/exc/InvalidFormatException.java
package com.fasterxml.jackson.databind.exc; import com.fasterxml.jackson.core.JsonParser; public class InvalidFormatException extends MismatchedInputException { protected final Object _value; public InvalidFormatException(JsonParser p, String msg, Object value, Class<?> targetType) { super(p, msg, ta...
CLIP-HPC/reframe
unittests/test_cli.py
# Copyright 2016-2021 Swiss National Supercomputing Centre (CSCS/ETH Zurich) # ReFrame Project Developers. See the top-level LICENSE file for details. # # SPDX-License-Identifier: BSD-3-Clause import contextlib import io import itertools import json import os import pytest import re import sys import time import refr...
knu-3-tochanenko/OOP
Sem 5/Lab 3/core/src/com/tochanenko/libgdx/GameCore.java
<filename>Sem 5/Lab 3/core/src/com/tochanenko/libgdx/GameCore.java<gh_stars>0 package com.tochanenko.libgdx; import com.badlogic.gdx.Game; import com.badlogic.gdx.Gdx; import com.badlogic.gdx.Input; import com.badlogic.gdx.graphics.g2d.BitmapFont; import com.badlogic.gdx.graphics.g2d.SpriteBatch; public class GameCor...
Chalarangelo/furl
src/components/ContextButton.js
import React from 'react'; import Button from './Button'; import { combineClassNames, omitProps, combineStyles } from '../utilities/utils'; const ContextButton = ({ text = 'normal', size = 'normal', color = 'plain', verticalPosition = 'bottom', horizontalPosition = 'right', onClick, className, children...
dingchaolin/go-demo-2
src/demo6/point.go
package main import ( "math" "fmt" ) type Point struct{ X, Y float64 } func Distance( p, q Point) float64{ return math.Hypot(q.X - p.X, q.Y - p.Y) } func main(){ p := Point{1,2} q := Point{4,6} fmt.Println( Distance(p, q) ) }
ate47/consoleexperience
src/main/java/com/fuzs/consoleexperience/client/gui/PaperDollRenderer.java
<filename>src/main/java/com/fuzs/consoleexperience/client/gui/PaperDollRenderer.java<gh_stars>1-10 package com.fuzs.consoleexperience.client.gui; import com.fuzs.consoleexperience.client.element.GameplayElements; import com.fuzs.consoleexperience.client.element.HoveringHotbarElement; import com.fuzs.consoleexperience....
danielogen/msc_research
selected projects/desktop/mars-sim-v3.1.0/mars-sim-core/org/mars_sim/msp/core/location/LocationTag.java
/** * Mars Simulation Project * LocationTag.java * @version 3.1.0 2017-10-10 * @author <NAME> */ package org.mars_sim.msp.core.location; import java.io.Serializable; import java.util.Collection; import org.mars_sim.msp.core.Coordinates; import org.mars_sim.msp.core.Simulation; import org.mars_sim.msp.core.Unit; i...
fbi-octopus/biggles
include/biggles/kalman_filter.hpp
<reponame>fbi-octopus/biggles /// @file kalman_filter.hpp Kalman filter and Rauch–Tung–Striebel smoother for track observations #ifndef BIGGLES_KALMAN_FILTER_HPP__ #define BIGGLES_KALMAN_FILTER_HPP__ #include <Eigen/Dense> #include <deque> #include "observation.hpp" #include "track.hpp" #include "detail/physics.hpp"...
silasdavis/hello-doug
apps/dual_integration/app.js
'use strict'; // app-level requires var contracts = require('eris-contracts'), docusign = require('docusign-esign'), express = require('express'), fs = require('fs'), pdf = require('html-pdf'); // setup express app var app = express(), appPort = process.env.APP_PORT || 3000; app.set('view engine', 'pug'); a...
w3hacker/swoole
include/tests.h
<gh_stars>1-10 /* * tests.h * * Created on: 2013-4-22 * Author: htf */ #ifndef SW_TESTS_H_ #define SW_TESTS_H_ #define swUnitTest(x) int swUnitTest_##x(swUnitTest *object) #define swUnitTest_steup(x,n) _swUnitTest_setup(swUnitTest_##x, #x, n) typedef struct _swUnitTest { int argc; char **argv; } swUnitT...
Zhuinden/service-tree
service-tree-view-example/src/main/java/com/zhuinden/servicetreeviewexample/FirstView.java
<gh_stars>10-100 package com.zhuinden.servicetreeviewexample; import android.annotation.TargetApi; import android.content.Context; import android.util.AttributeSet; import android.widget.LinearLayout; import com.zhuinden.servicetreeviewexample.injection.FirstComponent; import com.zhuinden.simplestack.Backstack; import...
nptcl/npt
src/clos.h
#ifndef __CLOS_HEADER__ #define __CLOS_HEADER__ #include "clos_define.h" #include "constant.h" #include "execute.h" #define Clos_standard_class _n(Clos_standard_class) #define Clos_standard_generic _n(Clos_standard_generic) #define Clos_standard_method _n(Clos_standard_method) #define Clos_standard_combination _n(Clo...
Junhua91/tornesol
algo-study/src/main/java/com/junhua/algorithm/datastructure/link/TwoLinkCross.java
<filename>algo-study/src/main/java/com/junhua/algorithm/datastructure/link/TwoLinkCross.java<gh_stars>1-10 package com.junhua.algorithm.datastructure.link; /** * 两个单链表相交 * 1. 两个无环链表:相交、不相交 * 2. 两个有环链表相交:三种拓扑结构(不相交、入环节点相同,入环节点不相等) * 3. 一个有环,一个无环的链表不可能相交 */ public class TwoLinkCross { public static Node getI...
VU-libtech/OLE-INST
ole-app/olefs/src/it/java/org/kuali/ole/deliver/bo/PatronBillPayment_IT.java
<filename>ole-app/olefs/src/it/java/org/kuali/ole/deliver/bo/PatronBillPayment_IT.java package org.kuali.ole.deliver.bo; import org.junit.Test; import org.junit.runner.RunWith; import org.kuali.ole.SpringBaseTestCase; import org.kuali.rice.core.api.util.type.KualiDecimal; import org.kuali.rice.krad.service.BusinessObj...
ScalablyTyped/SlinkyTyped
p/pulumi__aws/src/main/scala/typingsSlinky/pulumiAws/outputMod/ec2/LaunchTemplateInstanceMarketOptions.scala
package typingsSlinky.pulumiAws.outputMod.ec2 import org.scalablytyped.runtime.StObject import scala.scalajs.js import scala.scalajs.js.`|` import scala.scalajs.js.annotation.{JSGlobalScope, JSGlobal, JSImport, JSName, JSBracketAccess} @js.native trait LaunchTemplateInstanceMarketOptions extends StObject { /** ...
macedo22/spectre
tests/Unit/IO/Observers/Test_ArrayComponentId.cpp
<filename>tests/Unit/IO/Observers/Test_ArrayComponentId.cpp<gh_stars>100-1000 // Distributed under the MIT License. // See LICENSE.txt for details. #include "Framework/TestingFramework.hpp" #include <ckarrayindex.h> #include <functional> #include <type_traits> #include "Domain/Structure/ElementId.hpp" #include "Fram...
utercero/SimionZoo
RLSimion/Lib/critic-tdc-lambda.cpp
/* SimionZoo: A framework for online model-free Reinforcement Learning on continuous control problems Copyright (c) 2016 SimionSoft. https://github.com/simionsoft Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to ...
RoySRose/Monster
src/main/java/org/monster/build/initialProvider/buildSets/BaseBuild.java
package org.monster.build.initialProvider.buildSets; import bwapi.TechType; import bwapi.TilePosition; import bwapi.UnitType; import bwapi.UpgradeType; import org.monster.build.base.BuildManager; import org.monster.build.base.BuildOrderQueue; import org.monster.build.base.SeedPositionStrategy; public class BaseBuild...
StephanPirnbaum/jqa-ddd-plugin
jqassistant-java-ddd-annotations/src/main/java/org/jqassistant/contrib/plugin/ddd/annotation/DDD.java
package org.jqassistant.contrib.plugin.ddd.annotation; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; /** * Representation of the DDD concepts. * * @author stephan.pirnbaum */ @Target({}) public @int...
mark-watson/javascript_intelligent_systems
src/aws_s3_read.js
<filename>src/aws_s3_read.js // @flow const aws = require('aws-sdk'); aws.config.region = 'us-east-1'; const s3 = new aws.S3(), index, bucket; s3.listBuckets(function(err, data) { console.log("\n** list all buckets owned by this account:\n"); for (index in data.Buckets) { bucket = data.Buckets[index]; co...
mesinger/alphavantagecpp
alphavantagecpp/src/alphavantagecpp/api/sectorperformances.cpp
#include "alphavantagecpp/api/sectorperformances/sectorperformances.hpp" using namespace av; SECTOR::SECTOR(const std::string& key) :AlphaVantageRequest("SECTOR", key) { }
pdpdds/sdldualsystem
sdl1/theclue/sound/newsound.c
<gh_stars>0 /* _________ _______ / ___/ __ \/ __/ _ \ Der Clou! / /__/ /_/ /\ \/ ___/ Open Source Project \___/\____/___/_/ http://cosp.sourceforge.net Based on the original by neo Software GmbH */ /**************************************************************************** Portions copyright (c) 20...
mdsol-share/crichton
lib/crichton/descriptor/options_decorator.rb
require 'crichton/descriptor/options' module Crichton module Descriptor ## # Decorates options for select lists to access source values from a target. class OptionsDecorator < Options def initialize(descriptor, target) super(descriptor.descriptor_document) @target = target en...
madanagopaltcomcast/pxCore
src/rtJsonUtils.cpp
/* pxCore Copyright 2005-2018 <NAME> 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 agreed to in...
UofTL/yard-sale
client/src/App.js
<filename>client/src/App.js import React, { Component } from 'react'; // import { BrowserRouter as Router, Route, Switch } from "react-router-dom"; import { Redirect, Router, Route, Switch } from "react-router-dom"; import Home from "./pages/Home"; import About from "./pages/About"; import SafetyTips from "./pages/Saf...
C-B4/unifiedpush-server
service/src/main/java/org/jboss/aerogear/unifiedpush/service/metrics/DeleteOldPushMessageInformationScheduler.java
<filename>service/src/main/java/org/jboss/aerogear/unifiedpush/service/metrics/DeleteOldPushMessageInformationScheduler.java /** * JBoss, Home of Professional Open Source * Copyright Red Hat, Inc., and individual contributors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use th...
lechium/iOS1351Headers
System/Library/PrivateFrameworks/GameCenterUI.framework/GKTurnBasedMatchDetailViewController.h
<reponame>lechium/iOS1351Headers<filename>System/Library/PrivateFrameworks/GameCenterUI.framework/GKTurnBasedMatchDetailViewController.h /* * This header is generated by classdump-dyld 1.5 * on Wednesday, October 27, 2021 at 3:17:18 PM Mountain Standard Time ...
juamecos/frontend-merng-online-shop-react
src/App.js
import React, { lazy, Suspense } from "react"; import { ApolloProvider } from "@apollo/client"; import client from "./config/apollo"; import { Provider } from "react-redux"; import store from "./redux/store"; import "bootstrap/dist/css/bootstrap.min.css"; import "react-bootstrap-table-next/dist/react-bootstrap-table2.m...
digibib/ls.ext
redef/services/src/main/java/no/deichman/services/ontology/TranslationResource.java
<gh_stars>10-100 package no.deichman.services.ontology; import com.google.gson.Gson; import no.deichman.services.entity.EntityResource; import no.deichman.services.entity.repository.RDFRepository; import org.apache.jena.query.QueryExecution; import org.apache.jena.query.QueryExecutionFactory; import org.apache.jena.qu...
collinkleest/WCFactory
packages/generator-wcfactory/generators/start/templates/templates/builds/GravCMS/webpack.mix.js
<gh_stars>100-1000 const mix = require("laravel-mix"); /* |-------------------------------------------------------------------------- | Mix Asset Management |-------------------------------------------------------------------------- | | Mix provides a clean, fluent API for defining some Webpack build steps | for...
qbit-t/qb
tests/memorypool.cpp
<reponame>qbit-t/qb #include "memorypool.h" #include "../mkpath.h" using namespace qbit; using namespace qbit::tests; bool MemoryPoolQbitCreateSpend::execute() { // // 1. create qbit // // clean up rmpath(settings_->dataPath().c_str()); // prepare wallet if (!wallet_->open("")) { error_ = "Wallet open fai...
samisbakedham/0x-tracker-client
src/util/get-period-options.js
import prettyPeriod from './pretty-period'; const getPeriodOptions = (periods, defaultPeriod) => periods.map((period) => ({ default: defaultPeriod === period, label: prettyPeriod(period), value: period, })); export default getPeriodOptions;
dysTOS/ASPiK
docs/buttons/interface_v_s_t_g_u_i_popup.js
var interface_v_s_t_g_u_i_popup = [ [ "doResignKey", "interface_v_s_t_g_u_i_popup.html#ae8e708ab95e5f9b71d14d3befd8241a2", null ], [ "doResignKeyStackDepth", "interface_v_s_t_g_u_i_popup.html#adbf9d4d73d5620c03e46895b684f7409", null ], [ "inSendEvent", "interface_v_s_t_g_u_i_popup.html#a94d606e82dc908c72266...
bopopescu/sage-5
src/sage/combinat/species/series_order.py
<gh_stars>1-10 """ Series Order This file provides some utility classes which are useful when working with unknown, known, and infinite series orders for univariate power series. This code is based on the work of <NAME> and <NAME>'s Aldor-Combinat, which can be found at http://www.risc.uni-linz.ac.at/people/hemmecke/...
freemo/AetherMUD
src/main/java/com/syncleus/aethermud/game/CharClasses/Pirate.java
/** * Copyright 2017 Syncleus, Inc. * with portions copyright 2004-2017 <NAME> * * 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 * *...
YvesBoyadjian/Koin3D
application/src/application/scenegraph/SoLODGroup.java
/** * */ package application.scenegraph; import jscenegraph.database.inventor.SbBox3f; import jscenegraph.database.inventor.SbVec3f; import jscenegraph.database.inventor.actions.SoGLRenderAction; import jscenegraph.database.inventor.nodes.SoGroup; /** * @author <NAME> * */ public class SoLODGroup extends SoGrou...
arsi-apli/cscm
CodeSnippetsCommunityManager-maven-plugin/src/main/java/sk/arsi/codesnippetscommunitymanager/maven/plugin/Release.java
<reponame>arsi-apli/cscm /* * 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 sk.arsi.codesnippetscommunitymanager.maven.plugin; import java.util.List; import org.apache.maven.pl...
richard-hu/qcacld-2.0
CORE/SERVICES/HIF/common/hif_diag_reg_access.c
<gh_stars>1-10 /* * Copyright (c) 2013-2014 The Linux Foundation. All rights reserved. * * Previously licensed under the ISC license by Qualcomm Atheros, Inc. * * * Permission to use, copy, modify, and/or distribute this software for * any purpose with or without fee is hereby granted, provided that the * above...
Joynann/Estudos
exercicios origamid/Javascript/js-iniciante/objetos/script.js
<filename>exercicios origamid/Javascript/js-iniciante/objetos/script.js // Crie um objeto com os seus dados pessoais // Deve possui pelo menos duas propriedades nome e sobrenome var dadosPessoais = { nome: 'Joynan', sobrenome: '<NAME>', idade: 22, sexo: 'Masculino', dataNascimento: '11/05/1999', mae: '<NAM...
m-mizutani/minerva
internal/adaptor/sqs.go
package adaptor import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/sqs" ) // SQSClientFactory is interface SQSClient constructor type SQSClientFactory func(region string) SQSClient // SQSClient is interface of AWS SDK SQS type SQSClient interface { ...
sjhanson/hackerrank-interview-prep-kit-node
src/search/naive-string-search.js
<reponame>sjhanson/hackerrank-interview-prep-kit-node module.exports = { bruteForce(string, pattern) { const strArr = string.split(''); const pattArr = pattern.split(''); const M = pattArr.length; const N = strArr.length; // Loop through string array // We know ther...
Tokelon/tokTales
tokTales-core/tokTales-core-library/src/main/java/com/tokelon/toktales/core/game/control/TimeTracker.java
package com.tokelon.toktales.core.game.control; public class TimeTracker implements ITimeTracker { private final ITimeProvider mTimeProvider; private int state = STATE_PAUSED; private long pastTimeMillis = 1; // Start with 1 or 0 ? private long lastResumeTime; public TimeTracker(ITimeProvider timeP...
RyuKojiro/v6502
as6502/error.c
/* * Copyright (c) 2013 <NAME> * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to * deal in the Software without restriction, including without limitation the * rights to use, copy, modify, merge, publish, dis...
hari047/Ionic-Application
sources/com/google/zxing/client/result/ProductResultParser.java
<gh_stars>0 package com.google.zxing.client.result; import com.google.zxing.BarcodeFormat; import com.google.zxing.Result; import com.google.zxing.oned.UPCEReader; public final class ProductResultParser extends ResultParser { public ProductParsedResult parse(Result result) { String normalizedProductID; ...
loskutnikov-spirent/openperf
src/modules/packet/generator/learning.cpp
#include "packet/generator/learning.hpp" #include "lwip/priv/tcpip_priv.h" #include "lwip/etharp.h" #include "arpa/inet.h" #include <future> namespace openperf::packet::generator { static constexpr std::chrono::seconds start_callback_timeout(1); static constexpr std::chrono::seconds check_callback_timeout(1); stat...
matoruru/purescript-react-material-ui-svgicon
src/MaterialUI/SVGIcon/Icon/VideocamSharp.js
exports.videocamSharpImpl = require('@material-ui/icons/VideocamSharp').default;
walkerxiong/codeql-go
ql/test/library-tests/semmle/go/frameworks/K8sIoApiCoreV1/main.go
package main import ( corev1 "k8s.io/api/core/v1" "k8s.io/apimachinery/pkg/runtime" ) //go:generate depstubber -vendor k8s.io/api/core/v1 SecretList //go:generate depstubber -vendor k8s.io/apimachinery/pkg/runtime ProtobufMarshaller,ProtobufReverseMarshaller func source() interface{} { return make([]byte, 1, 1) }...
frontend-park-mail-ru/2018_1_tarados-feroces
src/app/modules/HttpModule/HttpModule.js
import {DOMEN, HEADER_CONTENT_TYPE, JSON_CONTENT_TYPE, POST, GET} from './HttpConstants'; /** * Класс, отвечающий за отправку запросов на сервер * @module HttpModule */ class HttpModule { /** * @constructor */ constructor() { this.domen = DOMEN; } /** * Делает GET-запрос ...
eitam-ring/kubemq-targets
targets/gcp/bigquery/connector.go
<filename>targets/gcp/bigquery/connector.go package bigquery import "github.com/kubemq-hub/builder/connector/common" func Connector() *common.Connector { return common.NewConnector(). SetKind("gcp.bigquery"). SetDescription("GCP Bigquery Target"). AddProperty( common.NewProperty(). SetKind("string"). ...
ceekay1991/AliPayForDebug
AliPayForDebug/AliPayForDebug/AlipayWallet_Headers/APMTTSAudioPlayer.h
// // Generated by class-dump 3.5 (64 bit) (Debug version compiled Sep 17 2017 16:24:48). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2015 by <NAME>. // #import <objc/NSObject.h> #import "APMSimpleAudioPlayerDelegate-Protocol.h" @class APMSimpleAudioPlayer, NSString; @interface APMTTSAudioP...
danadel/sakai
providers/jldap/src/java/edu/amc/sakai/user/SimpleLdapConnectionManager.java
<gh_stars>0 package edu.amc.sakai.user; import java.io.UnsupportedEncodingException; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import com.novell.ldap.LDAPConnection; import com.novell.ldap.LDAPConstraints; import com.novell.ldap.LDAPException; import com.novell.ldap.LDAPTLS...
shumih/ckeditor5
packages/ckeditor5-basic-styles/tests/italic.js
/** * @license Copyright (c) 2003-2019, CKSource - <NAME>. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */ import Italic from '../src/italic'; import ItalicEditing from '../src/italic/italicediting'; import ItalicUI from '../src/italic/italicui'; describe(...
knuu/competitive-programming
leetcode/leet_028.py
class Solution(object): def strStr(self, haystack, needle): """ :type haystack: str :type needle: str :rtype: int """ if not needle: return 0 haystack, needle = haystack + "\0", needle + "\0" i, L = 0, len(haystack) while haystack[i...