repo_name
stringlengths
6
101
path
stringlengths
4
300
text
stringlengths
7
1.31M
APshenkin/radixdlt
radixdlt-core/radixdlt/src/main/java/com/radixdlt/api/construction/TxnParser.java
/* * (C) Copyright 2021 Radix DLT Ltd * * Radix DLT Ltd licenses this file to you 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 req...
COx2/slPlugins
plugins/SampleDelay/Source/PluginEditor.cpp
<reponame>COx2/slPlugins /* ============================================================================== This file was auto-generated by the Introjucer! It contains the basic framework code for a JUCE plugin editor. ============================================================================== */ #inc...
Oriolac/smart-metering-simulation
src/test/java/cat/udl/cig/sms/recsi/meter/states/ConsumptionTransmissionMeterTest.java
<filename>src/test/java/cat/udl/cig/sms/recsi/meter/states/ConsumptionTransmissionMeterTest.java package cat.udl.cig.sms.recsi.meter.states; import cat.udl.cig.fields.PrimeFieldElement; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; import org.mockito.Mockito; import org.mockito.stubbing.A...
DestinyBoom/Sign_In
src/com/boom/filter/EncodingFilter.java
<reponame>DestinyBoom/Sign_In package com.boom.filter; import java.io.IOException; import javax.servlet.Filter; import javax.servlet.FilterChain; import javax.servlet.FilterConfig; import javax.servlet.ServletException; import javax.servlet.ServletRequest; import javax.servlet.ServletResponse; import javax.servlet.ht...
opozop/coolschool
coolschool/server/publish/services.js
Meteor.publish("service_list", function() { return Services.find({}, {sort:[["code","asc"]]}); }); Meteor.publish("services_empty", function() { return Services.find({_id:null}, {}); }); Meteor.publish("service_details", function(serviceId) { return Services.find({_id:serviceId}, {}); });
AswinBarath/SDE-Sheet
SDE_Sheet/src/Greedy_algorithm/Q43_NmeetingsInOneRoom.java
package Greedy_algorithm; import java.util.ArrayList; import java.util.Collections; import java.util.Comparator; import java.util.Scanner; class meeting { int start; int end; int pos; meeting(int start, int end, int pos) { this.start = start; this.end = end; this.pos = pos; } } class meetingComparator im...
IBM/crossplane-provider-ibm-cloud
pkg/controller/cos/bucket.go
/* Copyright 2021 The Crossplane 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 applicable law or agreed to in writing, sof...
elyase/jack
jack/util/tf/embedding.py
# -*- coding: utf-8 -*- import tensorflow as tf from jack.util.tf import misc def conv_char_embedding(num_chars, repr_dim, word_chars, word_lengths, word_sequences=None, conv_width=5, emb_initializer=tf.random_normal_initializer(0.0, 0.1), scope=None): """Build simple convolutional chara...
lechium/tvOS130Headers
System/Library/Frameworks/MediaPlayer.framework/MPMediaChapter.h
/* * This header is generated by classdump-dyld 1.0 * on Tuesday, November 5, 2019 at 2:50:17 AM Mountain Standard Time * Operating System: Version 13.0 (Build 17J586) * Image Source: /System/Library/Frameworks/MediaPlayer.framework/MediaPlayer * classdump-dyld is licensed under GPLv3, Copyright © 2013-2016 by <NAME>. ...
vhurtevent/esup-mdw-pegase
src/main/java/fr/univlorraine/pegase/model/insgestion/BourseOuAide.java
<filename>src/main/java/fr/univlorraine/pegase/model/insgestion/BourseOuAide.java /* * Swagger Gestion - INS * Il s'agit de l'API de gestion - INS. * * The version of the OpenAPI document: 1.3.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-ge...
mosche/elasticmq
core/src/test/scala/org/elasticmq/actor/test/QueueManagerWithListenerForEachTest.scala
<gh_stars>100-1000 package org.elasticmq.actor.test import akka.actor.{ActorRef, ActorSystem, Props} import akka.testkit.{TestActor, TestActors, TestProbe} import org.elasticmq.StrictSQSLimits import org.elasticmq.actor.QueueManagerActor import org.elasticmq.actor.queue.{OperationSuccessful, QueueEvent} import org.ela...
bcnow/tuna-jslinq
dist/Methods/Concat.js
<gh_stars>0 import { JSLinqHelper } from "../JSLinqHelper"; JSLinqHelper.NonEnumerable(Array.prototype, "Concat", function (array) { return this.concat(array); });
Antholoj/netbeans
ide/subversion/src/org/netbeans/modules/subversion/ui/actions/AbstractAllAction.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"); you ...
ChainGangChase/game
core/src/com/percipient24/cgc/overlays/PunchMeArrow.java
/* * @(#)PunchMeArrow.java 0.2 14/6/2 * * Copyright 2014, MAGIC Spell Studios, LLC */ package com.percipient24.cgc.overlays; import com.badlogic.gdx.graphics.g2d.SpriteBatch; import com.badlogic.gdx.math.Vector2; import com.badlogic.gdx.utils.Timer; import com.percipient24.cgc.*; /* * Contains the logic for th...
zoftdev/gophercloud
openstack/networking/v2/extensions/qos/ruletypes/urls.go
<gh_stars>0 package ruletypes import "gitlab.com/nxcp/tools/gophercloud" func listRuleTypesURL(c *gophercloud.ServiceClient) string { return c.ServiceURL("qos", "rule-types") } func getRuleTypeURL(c *gophercloud.ServiceClient, name string) string { return c.ServiceURL("qos", "rule-types", name) }
PacktPublishing/Practical-OneOps
Chapter 09/circuit-oneops-1-master/components/cookbooks/couchbase/libraries/couchbase_rest.rb
module Couchbase class CouchbaseREST @ip @username @password def initialize(ip, username, password) @ip = ip @username = username @password = password end def autofailover response = get_request "/settings/autoFailover" JSON.parse response.body end ...
gruz0/inspirer-web
spec/system/my/health/body_measures/create_spec.rb
# frozen_string_literal: true require 'rails_helper' RSpec.describe 'Creating a Health Body Measure', type: :system do let(:account) { create(:account) } it_behaves_like 'unauthorized' do let(:path) { new_my_health_body_measure_path } end context 'with valid inputs' do before do sign_in(accoun...
makeandbuild/Courier
server/dao/user.dao.js
<filename>server/dao/user.dao.js 'use strict'; var User = require('./../models/user.model.js'); var mongoose = require('mongoose'); //[<NAME>:10/8/14] TODO: finish pulling dao related code from user.service exports.findUsersPromise = function () { return User.find({}, '-salt -hashedPassword').exec(); } exports...
quotecenter/documentation-1
ja/code_snippets/results/result.api-monitor-show.py
<gh_stars>0 { 'id': 2081, 'message': 'We may need to add web hosts if this is consistently high.', 'name': 'Bytes received on host0', 'options': { 'no_data_timeframe': 20, 'notify_audit': False, 'notify_no_data': True, 'silenced': {} }, 'org_id': 2, 'overall_state': 'No Data', 'query': '...
onqtam/old-stuff
pop_shots/src/include/stick.h
/****************************************************************************** * * * POP SHOTS. * * * ...
RovoMe/JDrum
jdrum-datastore-simple/src/main/java/at/rovo/drum/datastore/simple/SimpleDataStoreImpl.java
package at.rovo.drum.datastore.simple; import at.rovo.drum.DrumException; import at.rovo.drum.DrumStoreEntry; import at.rovo.drum.base.InMemoryEntry; import at.rovo.drum.NotAppendableException; import at.rovo.drum.util.DrumUtils; import java.io.IOException; import java.io.RandomAccessFile; import java.io.Serializable...
kethan-kumar/DHL
src/main/java/org/statemachine/LeagueDataKeys.java
/* @Author: <NAME> */ package org.statemachine; public class LeagueDataKeys { private static final String leagueName = "leagueName"; private static final String divisionName = "divisionName"; private static final String teamName = "teamName"; private static final String generalManager = "generalManage...
BrUnOXaVIeRLeiTE/Unreal-Magic-Nodes-CS
Plugins/MagicNodeSharp/Source/MagicNodeSharpKismet/Private/KCS_MonoCore.cpp
<reponame>BrUnOXaVIeRLeiTE/Unreal-Magic-Nodes-CS ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////...
1477551037/exam
source/exam/src/main/java/com/alvis/exam/controller/student/UserController.java
package com.alvis.exam.controller.student; import com.alvis.exam.base.BaseApiController; import com.alvis.exam.base.RestResponse; import com.alvis.exam.domain.User; import com.alvis.exam.domain.enums.RoleEnum; import com.alvis.exam.domain.enums.UserStatusEnum; import com.alvis.exam.service.AuthenticationService; impor...
RobinSchmidt/RS-MET-Preliminary
Libraries/RobsJuceModules/rapt/Spectral/SinusoidalSynthesizer.cpp
// helper functions (maybe move into class rsSinusoidalPartial ) /* // useful for freq de-biasing and for phase interpolation in synthesis template<class T> T rsFindCosistentPhase(T storedPhase, T computedPhase) { T p = storedPhase; // 0..2pi T q = computedPhase; // 0..inf T tmp = p; T k = 0; T d; ...
MagicAtom/irrlicht-ce
source/Irrlicht/rtc/impl/init.cpp
/** * Copyright (c) 2020 <NAME> * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is d...
mithiwithi/boilerplate-web-app
src/server/paths/render-react.node.spec.js
<gh_stars>0 import { readFile } from 'fs'; import path from 'path'; import React from 'react'; import { ChunkExtractor } from '@loadable/server'; import { renderToString } from 'react-dom/server'; import { StaticRouter } from 'react-router-dom'; import jsonStringify from 'serialize-javascript'; import { shallow } from ...
doom38/jython_v2.2.1
bugtests/test218c.py
a,b, = 1,2
tlhhup/JavaEE-EFD
j2e-chapter-1/lflsys/src/main/java/com/lfl/util/MD5.java
<filename>j2e-chapter-1/lflsys/src/main/java/com/lfl/util/MD5.java package com.lfl.util; /** * MD5加密类 * @author dwz */ import java.security.MessageDigest; public class MD5 { static char hexChars[] = { '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'a', 'b', 'c', 'd', 'e', 'f' }; /** * @param password * @r...
MrYKK/oimchat
oim-client-ui-fx/src/test/java/com/javafx/demo/only/ComponentFrame.java
<filename>oim-client-ui-fx/src/test/java/com/javafx/demo/only/ComponentFrame.java /* * 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 com.javafx.demo.only; import java.text.Numbe...
Gladg/Triburg
app/controllers/order-plannings.server.controller.js
<gh_stars>0 'use strict'; /** * Module dependencies. */ var mongoose = require('mongoose'), errorHandler = require('./errors.server.controller'), OrderPlanning = mongoose.model('OrderPlanning'), _ = require('lodash'); /** * Create a Order planning */ exports.create = function(req, res) { var orderPlanning = n...
ASU/rampart
modules/jaxws/src/org/apache/axis2/jaxws/Proxies.java
/* * Copyright 2004,2005 The Apache Software Foundation. * Copyright 2006 International Business Machines Corp. * * 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:/...
AdamDiament/with-love-charity
components/Header/index.stories.js
<gh_stars>1-10 import React from 'react' import Header from '.' export default { title: 'Components/Header', component: Header, } export const Default = () => <Header /> export const Dark = () => <Header dark />
YiraSan/llvm-bindings
include/BinaryFormat/Dwarf.h
#pragma once #include <napi.h> #include <llvm/BinaryFormat/Dwarf.h> namespace dwarf { void Init(Napi::Env env, Napi::Object &exports); }
rju/peething
visualization/test/de/peerthing/visualization/simulationpersistence/DBToolsTest.java
<filename>visualization/test/de/peerthing/visualization/simulationpersistence/DBToolsTest.java package de.peerthing.visualization.simulationpersistence; import java.sql.DatabaseMetaData; import java.sql.ResultSet; import java.sql.SQLException; import java.util.Vector; import junit.framework.TestCase; public class DB...
uk-gov-mirror/ministryofjustice.Claim-for-Crown-Court-Defence
app/controllers/concerns/cookie_concern.rb
<filename>app/controllers/concerns/cookie_concern.rb module CookieConcern extend ActiveSupport::Concern private def set_default_cookie_usage return set_cookie('usage_opt_in') if usage_cookies_not_set? if user_set_cookie_preference? set_cookie('usage_opt_in', value: params[:usage_opt_in]) se...
thepowersgang/acess2
UDI/drivers/gfx_bochs/bochsga_pio.h
<reponame>thepowersgang/acess2<gh_stars>10-100 /* * TODO */ #ifndef _BOCHSGA_PIO_H_ #define _BOCHSGA_PIO_H_ udi_pio_trans_t bochsga_pio_enable[] = { {UDI_PIO_END_IMM, UDI_PIO_2BYTE, 0}, }; enum { BOCHSGA_PIO_ENABLE, }; const struct s_pio_ops bochsga_pio_ops[] = { [BOCHSGA_PIO_ENABLE] = UDIH_PIO_OPS_ENTRY(bochs...
sarang-apps/darshan_browser
components/autofill_assistant/browser/switches.cc
<gh_stars>100-1000 // Copyright 2020 The Chromium 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 "components/autofill_assistant/browser/switches.h" namespace autofill_assistant { namespace switches { // Sets the API key t...
s-limo/mson-react
src/attach.js
import React from 'react'; import difference from 'lodash/difference'; // Usage: attach(['prop1', 'prop2', ...], componentOrName)(Component) const attach = (_watchProps, componentOrName) => { return (Component) => { return class extends React.PureComponent { wasMounted = false; getComponent = (prop...
arjenroodselaar/skidl
skidl/libs/nxp_armmcu_sklib.py
from skidl import SKIDL, TEMPLATE, Part, Pin, SchLib SKIDL_lib_version = '0.0.1' nxp_armmcu = SchLib(tool=SKIDL).add_parts(*[ Part(name='LPC1102UK',dest=TEMPLATE,tool=SKIDL,keywords='ARM, 32bit, CortexM0, M0, NXP, Microcontroller',description='32-bit ARM Cortex-M0 microcontroller, 32kB Flash, 8kB SRAM, UART, ...
zhukovaskychina/X-JVM
classfile/attributeInfo/BootstrapMethod.cpp
// // Created by zhukovasky on 2020/8/6. // #include "BootstrapMethod.h" ClassFile::BootstrapMethod::BootstrapMethod() {} ClassFile::BootstrapMethod::~BootstrapMethod() { } u2 ClassFile::BootstrapMethod::getBootstrapMethodRef() const { return bootstrapMethodRef; } void ClassFile::BootstrapMethod::setBootstrap...
sandricionut/GeoRSGPU
GeoRsGPU/RasterCommand.h
<reponame>sandricionut/GeoRSGPU<gh_stars>0 // MIT License // // Copyright(c) 2017 <NAME>, <NAME>, <NAME>, <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, in...
fossabot/ggql
pkg/ggql/input_test.go
// Copyright 2019-2020 University Health Network // // 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 l...
savindu-pasintha/Java-Android
activity/ActivityProblem/app/src/main/java/com/javahelps/problem/activity/MainActivity.java
<reponame>savindu-pasintha/Java-Android package com.javahelps.problem.activity; import android.content.Intent; import android.support.v7.app.ActionBarActivity; import android.os.Bundle; import android.view.Menu; import android.view.MenuItem; import android.view.View; import android.widget.Button; import android.widge...
SpotifyUsedOpenSourceCode/avro
site/publish/docs/1.7.5/api/csharp/search/classes_6d.js
var searchData= [ ['mapschema',['MapSchema',['../classAvro_1_1MapSchema.html',1,'Avro']]], ['message',['Message',['../classAvro_1_1Message.html',1,'Avro']]] ];
LuckyMagpie/Cumulus
app/src/main/java/com/ecaresoft/cumulus/models/NextPage.java
<reponame>LuckyMagpie/Cumulus package com.ecaresoft.cumulus.models; public class NextPage { String title; String totalResults; String searchTerms; Integer count; Integer startIndex; String inputEncoding; String outputEncoding; String safe; String cx; public NextPage(){ ...
vmlens/vmlens
agent-runtime/src/main/java/com/anarsoft/trace/agent/runtime/transformer/template/PolymorphicSignatureGetAndX.java
package com.anarsoft.trace.agent.runtime.transformer.template; import org.objectweb.asm.Type; public abstract class PolymorphicSignatureGetAndX extends TemplateMethodDescPolymorphicSignatureModify { public PolymorphicSignatureGetAndX(String methodName) { super(methodName); } protected abstract boolean ar...
rushone2010/CS_A150
Source Code/05_functions_and_random/05_05_random.cpp
<gh_stars>1-10 /* Random numbers. *** Try and execute the program more than once to see results. */ #include <iostream> #include <cstdlib> using namespace std; int main() { for (int i = 1; i < 10; ++i) { int r = rand(); cout << r << "\n"; } cout << endl; cin.ignore(); cin.get(); return 0; }...
xunilrj/sandbox
courses/MITx/MITx 6.86x Machine Learning with Python-From Linear Models to Deep Learning/project0/randomization.py
<gh_stars>1-10 import numpy as np def randomization(n): """ Arg: n - an integer Returns: A - a randomly-generated nx1 Numpy array. """ return np.random.random([n,1])
davidwadden/conductor-workers
workers-app/src/main/java/io/pivotal/conductor/worker/app/ConductorConfig.java
package io.pivotal.conductor.worker.app; import com.netflix.conductor.client.http.MetadataClient; import com.netflix.conductor.client.http.TaskClient; import com.netflix.conductor.client.task.WorkflowTaskCoordinator; import com.netflix.conductor.client.task.WorkflowTaskCoordinator.Builder; import com.netflix.conductor...
saasexport/SaaS-Export
export_parent/export_service_system/src/main/java/cn/itcast/service/system/RoleService.java
<gh_stars>1-10 package cn.itcast.service.system; import cn.itcast.domain.system.Role; import com.github.pagehelper.PageInfo; import java.util.List; public interface RoleService { //分页查询所有 PageInfo findAll(String companyId, int page, int size); //根据id进行查询 Role findById(String id); //保存 int ...
weicao/galaxysql
polardbx-optimizer/src/main/java/com/alibaba/polardbx/optimizer/sequence/ISequenceManager.java
/* * Copyright [2013-2021], Alibaba Group Holding Limited * * 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 app...
husaynhakeem/Algorithms-Playground
test/leetcode/problem_0023/SolutionTest.java
package leetcode.problem_0023; import Utilities.java.LinkedListUtils.Node; import org.junit.Test; import static org.junit.Assert.assertEquals; public class SolutionTest { private final Solution solution = new Solution(); @Test public void mergeKLists() throws Exception { final Node list1 = new ...
hongdongni/jsr354-api
src/main/java/javax/money/AbstractQuery.java
/* * Copyright 2012-2016 <NAME> * Copyright 2018-2020 <NAME>, <NAME>, Trivadis AG * * 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 *...
mahula/tdme2
src/tdme/math/Vector2.h
<gh_stars>0 #pragma once #include <array> #include <tdme/tdme.h> #include <tdme/math/fwd-tdme.h> #include <tdme/math/Math.h> using std::array; using tdme::math::Math; /** * 2D vector 2 class * @author <NAME> * @version $Id$ */ class tdme::math::Vector2 final { friend class Matrix2D3x3; private: array<float...
soyouwantme/SixSevenSystemLC
app/src/main/java/com/kk/sixsevensystemlc/ConsumerDialogFragment.java
<gh_stars>1-10 package com.kk.sixsevensystemlc; import android.app.AlertDialog; import android.app.Dialog; import android.content.DialogInterface; import android.os.Bundle; import android.support.annotation.NonNull; import android.support.v4.app.DialogFragment; import android.view.LayoutInflater; import android.view.V...
zhanglunyu418/lugia
src/widgets/tabs/test/TabsEvent.js
<reponame>zhanglunyu418/lugia import React from 'react'; import { Theme, Tabs } from '@lugia/lugia-web'; import Widget from '@lugia/lugia-web/dist/consts'; import styled from 'styled-components'; const {Tabpane}=Tabs; const Contain =styled.div` float:left; width:50%; `; const H1 = styled.h1` line-height:50px; f...
machengda/scrollnav
src/util/updatePositionData.js
<reponame>machengda/scrollnav<gh_stars>100-1000 import getYPosition from './getYPosition'; export default function updatePositionData(data) { data.forEach(section => { const sectionDom = document.querySelector(`#${section.id}`); section.offsetTop = getYPosition(sectionDom); if (section.subSections.lengt...
konexios/moonstone
pegasus-core/src/main/java/com/arrow/pegasus/data/SocialEvent.java
package com.arrow.pegasus.data; import java.time.Instant; import javax.validation.constraints.NotBlank; import javax.validation.constraints.NotNull; import org.springframework.data.annotation.Transient; import org.springframework.data.mongodb.core.mapping.Document; import com.arrow.pegasus.CoreConstant; import com....
sundayliu/XposedExamples
src/luckypatch/src/com/android/vending/billing/InAppBillingService/LACK/widgets/lvl_widget.java
package com.android.vending.billing.InAppBillingService.LACK.widgets; import android.app.PendingIntent; import android.appwidget.AppWidgetManager; import android.appwidget.AppWidgetProvider; import android.content.ComponentName; import android.content.Context; import android.content.Intent; import android.content.Shar...
sanshiwu/study
study-juli/src/main/java/org/study/juli/logging/manager/StudyJuliLogManager.java
<reponame>sanshiwu/study<filename>study-juli/src/main/java/org/study/juli/logging/manager/StudyJuliLogManager.java<gh_stars>1-10 package org.study.juli.logging.manager; import java.io.File; import java.io.InputStream; import java.nio.file.Files; import java.nio.file.Path; import java.util.Collections; import java.util...
davidvlaminck/OTLClassPython
src/OTLMOW/OTLModel/Classes/Vluchtdeur.py
# coding=utf-8 from OTLMOW.OTLModel.Classes.AIMObject import AIMObject from OTLMOW.OTLModel.Classes.Deur import Deur from OTLMOW.OTLModel.Classes.BevestigingGC import BevestigingGC # Generated with OTLClassCreator. To modify: extend, do not edit class Vluchtdeur(AIMObject, Deur, BevestigingGC): """Deur voor het o...
Wurlosh/France-ioi
Level 6/Graphes implicites II/Chevalier crapaud/main.cpp
<gh_stars>10-100 #include <bits/stdc++.h> #define N 1024 #define M 4 #define P 8 using namespace std; inline long long int MAX(long long int a,long long int b){return (a>b)?a:b;} typedef pair<int,int> ii; typedef pair<ii,int> iii; int tab[N][N]; int n; ii s,e; string t; ii mov1[M]={{2,0},{-2,0},{0,2},{0,-2}}; ii ...
TAMS-Group/bitbots_behaviour
bitbots_body_behaviour/src/bitbots_body_behaviour/decisions/common/go_to_duty_position.py
# -*- coding:utf-8 -*- """ GoToDutyPosition ^^^^^^^^^^^^^^^^ Go back to the position where a robot with this duty should stand. History: * 05.12.14: Created (<NAME> & <NAME>) """ from bitbots_stackmachine.abstract_decision_element import AbstractDecisionElement from humanoid_league_msgs.msg import TeamData from bitbo...
adambirse/innovation-funding-service
ifs-web-service/ifs-competition-mgt-service/src/main/java/org/innovateuk/ifs/management/assessment/viewmodel/ApplicationAssessmentProgressRemoveViewModel.java
<filename>ifs-web-service/ifs-competition-mgt-service/src/main/java/org/innovateuk/ifs/management/assessment/viewmodel/ApplicationAssessmentProgressRemoveViewModel.java package org.innovateuk.ifs.management.assessment.viewmodel; import org.apache.commons.lang3.builder.EqualsBuilder; import org.apache.commons.lang3.bui...
franz1981/infinispan
integrationtests/cdi-weld-se-it/src/test/java/org/infinispan/integrationtests/cdi/weld/Config.java
<filename>integrationtests/cdi-weld-se-it/src/test/java/org/infinispan/integrationtests/cdi/weld/Config.java<gh_stars>100-1000 package org.infinispan.integrationtests.cdi.weld; import javax.enterprise.context.ApplicationScoped; import javax.enterprise.inject.Disposes; import javax.enterprise.inject.Produces; import o...
ktrof/T-Systems-Java-School-Task
ticket-to-ride/src/main/java/org/tsystems/javaschool/repository/SectionRepository.java
<reponame>ktrof/T-Systems-Java-School-Task package org.tsystems.javaschool.repository; import org.tsystems.javaschool.model.entity.SectionEntity; import java.util.Collection; import java.util.List; /** * The interface Section repository. * * @author <NAME> */ public interface SectionRepository { /** * ...
open-contracting/covid-19-procurement-explorer-public
src/components/Utilities/CurrencySwitcher.js
<filename>src/components/Utilities/CurrencySwitcher.js import React from 'react' import { useDispatch, useSelector } from 'react-redux' import { setCurrency } from '../../store/reducers/general/action' import Default from '../../constants/Default' const CurrencySwitcher = () => { const selectedCurrency = useSelect...
ashokupd81/Django-Chatbot
chatBOT-Final/chat_app/venv/lib/python3.6/site-packages/py2neo/packages/httpstream/http.py
<reponame>ashokupd81/Django-Chatbot<filename>chatBOT-Final/chat_app/venv/lib/python3.6/site-packages/py2neo/packages/httpstream/http.py #!/usr/bin/env python # -*- encoding: utf-8 -*- # Copyright 2013-2014, <NAME> # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in...
triasteam/go-streamnet
utils/pagenator_test.go
package utils import ( "testing" "github.com/triasteam/go-streamnet/types" ) func TestPaging(t *testing.T) { data := make([]types.Hash, 0) hash1 := types.NewHashString("1") data = append(data, hash1) hash2 := types.NewHashString("2") data = append(data, hash2) hash3 := types.NewHashString("3") data = append...
mises-games/Satoshi-Proto-2
Satoshi/src/Satoshi/Core/LayerStack.hpp
#ifndef LAYER_STACK_HPP #define LAYER_STACK_HPP #include <Satoshi/Core/Layer.hpp> #include <Satoshi/stpch.hpp> namespace Satoshi { class LayerStack { public: LayerStack(); ~LayerStack(); void PushLayer(Layer* layer); void PushOverlay(Layer* layer); void PopLayer(Layer* layer); void PopOverlay(Layer* ...
npillmayer/giocomp
examples/todo/mycomponents/filter.go
package mycomponents import ( "gioui.org/io/event" "gioui.org/io/system" "gioui.org/layout" "gioui.org/widget" "gioui.org/widget/material" "github.com/npillmayer/giocomp/view" ) // --- Behaviour ------------------------------------------------------------- type FilterDelegate struct { suppressCompleted bool ...
thinker0/hive-io-experimental
hive-io-exp-core/src/main/java/org/apache/hadoop/mapred/HackOutputCommitter.java
<reponame>thinker0/hive-io-experimental /* * 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 Licen...
ScalablyTyped/SlinkyTyped
o/office-ui-fabric-react/src/main/scala/typingsSlinky/officeUiFabricReact/components/SelectedPeopleList.scala
package typingsSlinky.officeUiFabricReact.components import typingsSlinky.officeUiFabricReact.selectedPeopleListMod.ISelectedPeopleProps import org.scalablytyped.runtime.StObject import scala.scalajs.js import scala.scalajs.js.`|` import scala.scalajs.js.annotation.{JSGlobalScope, JSGlobal, JSImport, JSName, JSBracket...
Jotschi/vertx-loom-jooq-usecase
jooq/src/jooq/java/de/jotschi/vertx/loom/db/jooq/tables/pojos/UserGroup.java
<reponame>Jotschi/vertx-loom-jooq-usecase<gh_stars>0 /* * This file is generated by jOOQ. */ package de.jotschi.vertx.loom.db.jooq.tables.pojos; import de.jotschi.vertx.loom.db.jooq.tables.interfaces.IUserGroup; import io.github.jklingsporn.vertx.jooq.shared.internal.VertxPojo; import java.util.UUID; import sta...
alperkose/adventofcode2020
08/parser.go
<reponame>alperkose/adventofcode2020 package main import ( "bufio" "fmt" "io" "strconv" "strings" ) func Parse(source io.Reader) *Program { bufferedSource := bufio.NewReader(source) pr := &Program{[]Instruction{}, 0, 0} for { line, _, err := bufferedSource.ReadLine() if err != nil && err == io.EOF { br...
rimmartin/cctbx_project
scitbx/sparse/triangular.h
<filename>scitbx/sparse/triangular.h #ifndef SCITBX_SPARSE_TRIANGULAR_H #define SCITBX_SPARSE_TRIANGULAR_H #include <scitbx/sparse/matrix.h> #include <scitbx/array_family/accessors/packed_matrix.h> namespace scitbx { namespace sparse { /// A proxy for the upper diagonal of a sparse matrix /** It is aimed at oper...
anisyonk/pilot2
pilot/workflow/stagein.py
#!/usr/bin/env python # 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 # # Authors: # - <NAME>, <EMAIL>, 2019 from __future__ import print_function ...
skarpushin/swingpm
src/main/java/ru/skarpushin/swingpm/modelprops/lists/ModelSelInComboBoxPropertyAccessor.java
<gh_stars>0 package ru.skarpushin.swingpm.modelprops.lists; import javax.swing.ComboBoxModel; public interface ModelSelInComboBoxPropertyAccessor<E> extends ModelListPropertyAccessor<E>, ComboBoxModel { }
nippur72/basicv2
src/main/java/com/sixtyfour/cbmnative/powerscript/OptimizerPs.java
<filename>src/main/java/com/sixtyfour/cbmnative/powerscript/OptimizerPs.java package com.sixtyfour.cbmnative.powerscript; import java.util.List; import com.sixtyfour.cbmnative.Optimizer; import com.sixtyfour.cbmnative.PlatformProvider; import com.sixtyfour.cbmnative.ProgressListener; /** * An optimizer imp...
h4xxel/stm32-skeleton
examples/test/main.c
<reponame>h4xxel/stm32-skeleton<filename>examples/test/main.c #include <stdint.h> #include <stdbool.h> #include <stddef.h> #include <stm32/rcc.h> #include <stm32/gpio.h> #include <stm32/adc.h> #include <stm32/usart.h> char *uint_to_string(uint16_t num) { uint32_t n; char *tmp; static char buf[10]; n = num; tm...
jacobvaneijk/driver-revenge
src/js/server/game.js
<reponame>jacobvaneijk/driver-revenge var Game = function(key, socket) { this.players = []; this.socket = socket; this.key = key; }; Object.defineProperty(Game, 'MAX_PLAYERS', { value: 5, }); Game.prototype.addPlayer = function(player) { this.players.push(player); }; Game.prototype.broadcast = fu...
udanielnogueira/CZero
3-controle/menu.c
<reponame>udanielnogueira/CZero #include <stdio.h> main(){ char alternativa; char pula; do { system("cls"); puts("MENU"); puts("a)traduzir \"house\""); puts("b)traduzir \"knife\""); printf("alternativa: "); alternativa = getchar(); getchar(); ...
dallaval5u/COMET
COMET/misc_plugins/PlotScripts/CONFIGS/importer/custom_importer.py
"""An example how a custom importer works""" def myImporter(filepathes, **kwargs): """The importer gets one positional argument, which is a list with the passed filepathes. Then kwargs are passed, the ones stated in the config file! If you do not pass any, then there are no kwargs!""" # In our case there...
a-mail-group/coherent
src/sys.r12/coh.386/lib/cred_newgid.c
/* $Header: $ */ /* * Part of the credentials system. This file deals with setting a new group ID * for a set of credentials. * * $Log: $ */ #include <common/ccompat.h> #include <kernel/cred_lib.h> #include <sys/debug.h> #include <sys/types.h> #include <sys/cred.h> #include <stddef.h> /* * Set a new group-id c...
StableCoder/foe-engine
libs/foe_simulation/src/simulation.cpp
/* Copyright (C) 2021 <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 i...
CryptoBaseScanner/translation-manager
spec/factories/dislike.rb
FactoryBot.define do factory :dislike, class: TranslationManager::Dislike do suggestion sequence(:disliked_by) { |n| n } end end
AlCash07/ACTL
include/actl/io/utility/predicate.hpp
// Copyright 2019 <NAME>. // // Distributed under the Boost Software License, Version 1.0 // (see accompanying file LICENSE.txt or copy at // http://www.boost.org/LICENSE_1_0.txt). #pragma once #include <cstring> #include <type_traits> namespace ac::io { template <class T> struct predicate { T pred; temp...
ldx123000/learngit
util/snprintf.c
/* * vsnprintf() is borrowed from pk. */ //#include <stdint.h> //#include <stdarg.h> //#include <stdbool.h> #include "util/snprintf.h" int32 vsnprintf(char* out, size_t n, const char* s, va_list vl) { bool format = FALSE; bool longarg = FALSE; size_t pos = 0; for (; *s; s++) { if (format) { swit...
mauryabip/DocOPD
docOPD/ViewControllers/HospSearchList/HospListVC.h
// // HospListVC.h // docOPD // // Created by <NAME> on 8/11/15. // Copyright (c) 2015 DocOPD Technologies Pvt. Ltd. All rights reserved. // #import <UIKit/UIKit.h> @interface HospListVC : UIViewController<ServerRequestFinishedProtocol> { ServerRequestType currentRequestType; NSMutableArray *hosptalData; ...
matthewhardern/fozzie-components
packages/services/f-http/src/tests/configBuilder.test.js
<gh_stars>10-100 import configBuilder from '../configBuilder'; describe('configBuilder', () => { it('should be defined', async () => { // Arrange, Act & Assert expect(configBuilder).toBeDefined(); }); it('should return empty headers when not provided', async () => { // Arrange & Ac...
automan/automan-client
vendors/gems/watir-1.6.5/unittests/other/jscriptPushButton.rb
$LOAD_PATH.unshift File.join(File.dirname(__FILE__), '..', '..', 'lib') $LOAD_PATH.unshift File.join(File.dirname(__FILE__), '..', '..', '..', 'commonwatir', 'lib') require 'watir' ie = Watir::IE.attach(:title, 'Alert Test') ie.button(:id, 'btnAlert').click
BenoitPerrot/whitehole-lib
src/main/java/org/whitehole/assembly/ia32_x64/dis/ScaleIndexBase.java
// Copyright (c) 2004-2015, <NAME>. // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are // met: // // * Redistributions of source code must retain the above copyright // notice, this ...
lechium/tvOS130Headers
System/Library/PrivateFrameworks/ContactsFoundation.framework/CNTask.h
/* * This header is generated by classdump-dyld 1.0 * on Tuesday, November 5, 2019 at 2:39:50 AM Mountain Standard Time * Operating System: Version 13.0 (Build 17J586) * Image Source: /System/Library/PrivateFrameworks/ContactsFoundation.framework/ContactsFoundation * classdump-dyld is licensed under GPLv3, Copyright © ...
willie-lin/kubeMonitor
pkg/nextserver/database/ent/k8slabel_delete.go
// Code generated by entc, DO NOT EDIT. package ent import ( "context" "fmt" "entgo.io/ent/dialect/sql" "entgo.io/ent/dialect/sql/sqlgraph" "entgo.io/ent/schema/field" "github.com/willie-lin/kubeMonitor/pkg/nextserver/database/ent/k8slabel" "github.com/willie-lin/kubeMonitor/pkg/nextserver/database/ent/predic...
superredman/em
Public/js/Home/banner/index.js
<filename>Public/js/Home/banner/index.js /** * Created by Red on 2016/11/23. */ //增加banner function addBanner(){ var bannerCount = parseInt($('#bannerCount').val()); var maxId = parseInt($('#bannerMaxId').val()); if(bannerCount>=5){ layer.msg('亲,最多五个哟!'); return } bannerCount++; ...
RibeiroAna/centra-reto
src/routers/api/user/_add_groups.js
import moment from 'moment-timezone'; import User from '../../../api/user'; import Group from '../../../api/group'; async function add_groups (req, res, next) { // eslint-disable-line no-unused-vars /** * POST /add_groups * Adds a user to a number of groups * * Login required * Initial setup required * ...
JetBrains/youtrack-mobile
src/components/aspect-ratio/aspect-ratio.js
import {Dimensions} from 'react-native'; import {UNIT} from '../variables/variables'; import type {ImageDimensions} from '../../flow/CustomFields'; export default function calculateAspectRatio(dimensions: ImageDimensions = {}): ImageDimensions { const maxWidth = Dimensions.get('window').width - UNIT * 4; const ma...
lbolla/Agent-Based-Stock-Market-Model
comparablemodels/chiarellaIori/order_book.py
<gh_stars>10-100 # -*- coding: utf-8 -*- """ Orderbook object Author: <NAME> Date: June 2016 Orderbook is a single instance of this object Order book is implmented in a discretized fixed price range Orders are linked lists of (quant, time) data pairs at each price This allows for generalized order sizes, and keeps tra...
BioGeek/annotated_deep_learning_paper_implementations
labml_nn/recurrent_highway_networks/__init__.py
""" --- title: Recurrent Highway Networks summary: A simple PyTorch implementation/tutorial of Recurrent Highway Networks. --- # Recurrent Highway Networks This is a [PyTorch](https://pytorch.org) implementation of [Recurrent Highway Networks](https://papers.labml.ai/paper/1607.03474). """ from typing import Optional...