repo_name
stringlengths
6
101
path
stringlengths
4
300
text
stringlengths
7
1.31M
VoigtSebastian/de.htwg.se.Gladiators
src/test/scala/de/htwg/se/gladiators/controller/ControllerSpec.scala
<reponame>VoigtSebastian/de.htwg.se.Gladiators<gh_stars>1-10 package de.htwg.se.gladiators.controller import de.htwg.se.gladiators.aview.TestImplementation.EventQueue import de.htwg.se.gladiators.controller.BaseImplementation.Controller import de.htwg.se.gladiators.controller.BaseImplementation.ControllerJson._ import...
jizongFox/deep-clustering-toolbox
deepclustering/decorator/__init__.py
from .cache_decorator import SingleProcessCache, MultiProcessCache from .decorator import * from .lazy_load_checkpoint import lazy_load_checkpoint
daponi/springboot2
my_boot05_web_admin/src/main/java/com/atguigu/www/config/MyBatisConfig.java
package com.atguigu.www.config; import com.baomidou.mybatisplus.annotation.DbType; import com.baomidou.mybatisplus.extension.plugins.MybatisPlusInterceptor; import com.baomidou.mybatisplus.extension.plugins.inner.PaginationInnerInterceptor; import com.baomidou.mybatisplus.extension.plugins.pagination.optimize.JsqlPars...
asedl/XpaPDPM_Calc
TestData/HomeHealthGrouper/HH_PPS_Java_source/com/mmm/cms/homehealth/v3110_1/HomeHealthRecordClinicalValidator_v3110_1.java
<reponame>asedl/XpaPDPM_Calc<filename>TestData/HomeHealthGrouper/HH_PPS_Java_source/com/mmm/cms/homehealth/v3110_1/HomeHealthRecordClinicalValidator_v3110_1.java /* * Home Health Grouper * Developer for the Center for Medicare and Medicaid Services CMS * by 3M Health Information Systems for CMS Home Health. * * A...
weucode/COMFORT
artifact_evaluation/data/codeCoverage/fuzzilli_generate/899.js
<reponame>weucode/COMFORT<filename>artifact_evaluation/data/codeCoverage/fuzzilli_generate/899.js function main() { var v1 = [1000000000000.0,1000000000000.0,1000000000000.0,1000000000000.0]; // v1 = .object(ofGroup: Array, withProperties: ["length", "constructor", "__proto__"], withMethods: ["sort", "fill", "flatMap",...
MirahImage/bosh-bootloader
gcp/client_provider.go
package gcp import ( "context" "fmt" "net/http" "github.com/cloudfoundry/bosh-bootloader/storage" compute "google.golang.org/api/compute/v1" "golang.org/x/oauth2/google" "golang.org/x/oauth2/jwt" ) func gcpHTTPClientFunc(config *jwt.Config) *http.Client { return config.Client(context.Background()) } var gc...
morecar/azure-libraries-for-java
azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/model/HasBackendPort.java
/** * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. */ package com.microsoft.azure.management.network.model; import com.microsoft.azure.management.apigeneration.Fluent; /** * An interface representing a m...
BhasherBEL/LEPL1503
S3/global_local_variables.c
<reponame>BhasherBEL/LEPL1503 int result; void sum1(int a1, int b1) { a1 = a1 + b1; } void main(int argc, char **argv) { int a1 = 5, b1 = 6; sum1(a1, b1); printf("sum1: %d\n", a1); int a2 = 3, b2 = 7; sum2(a2, b2); printf("sum2: %d\n", result); int a3 = 1, b3 = 8; int r; sum...
bdshadow/kubernetes-client-android
kubernetes-model/vendor/github.com/openshift/origin/tools/junitreport/pkg/parser/stack/interfaces.go
<gh_stars>0 /** * Copyright (C) 2015 Red Hat, 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 * * Unless required by appli...
SENA-CEET/1262154G1G2-Trimestre-3
Programming/src/main/java/co/edu/sena/programming/ejemplo03/Cheking.java
<reponame>SENA-CEET/1262154G1G2-Trimestre-3<filename>Programming/src/main/java/co/edu/sena/programming/ejemplo03/Cheking.java package co.edu.sena.programming.ejemplo03; /** * Created by Enrique on 13/06/2017. */ public class Cheking extends Acount { }
carvalhoandre/ws_legio_app
legioApp/src/screens/founders/frank.js
import React, { Component } from "react"; import { Text, View, StyleSheet, ScrollView } from 'react-native' import commonStyles from '../../styles/commonStyles' export default class Frank extends Component { render() { return ( <ScrollView contentContainerStyle={styles.scrollVi...
trevorHsu/docxload
src/Complier/parser/toComponentConf.js
<reponame>trevorHsu/docxload import { syncMap, flatArray } from '@src/utils/functional' import { imgSrcToBase64 } from '@src/utils/parse' import { COMPONENT_TYPES } from '../types' const { SECTION, TITLE, TABLE, PARAGRAPH, TEXT, ROW, CELL, IMAGE, BREAK, TEMPLATE } = COMPONENT_TYPES const TAG_MAP = { page: SECTION, ...
rslakra/Java
java/src/main/java/com/rslakra/jdk8/OptionalDemo.java
/** * */ package com.rslakra.jdk8; import java.util.Arrays; import java.util.List; import java.util.stream.Collectors; import java.util.stream.IntStream; /** * @author <NAME> (<EMAIL>) * @Created Mar 8, 2019 9:49:32 PM * @version 1.0.0 * */ public class OptionalDemo<T> { private List<T> listOfOptional; pu...
deniscostadsc/playground
solutions/beecrowd/1963/1963.cpp
<filename>solutions/beecrowd/1963/1963.cpp<gh_stars>10-100 #include <cstdint> #include <iomanip> #include <iostream> int main() { double price1, price2; while (std::cin >> price1 >> price2) { std::cout << std::fixed << std::setprecision(2) << 100 * (price2 - price1) / price1 << "%" <...
crashvb/docker-sign-verify
tests/test_archiverepositories.py
<reponame>crashvb/docker-sign-verify #!/usr/bin/env python # pylint: disable=redefined-outer-name """Manifest tests.""" import pytest from docker_registry_client_async import FormattedSHA256, ImageName from docker_sign_verify import ArchiveRepositories from .testutils import get_test_data @pytest.fixture def arc...
Niekvdplas/ktrain
ktrain/text/ner/predictor.py
<filename>ktrain/text/ner/predictor.py from ... import utils as U from ...imports import * from ...predictor import Predictor from .. import textutils as TU from .preprocessor import NERPreprocessor class NERPredictor(Predictor): """ predicts classes for string-representation of sentence """ def __i...
enimamms/aoi.js
package/functions/funcs/disableRoleMentions.js
module.exports = async (d) => { return { disabledMentions: d.disabledMentions.filter((f) => f !== "roles"), code: d.command.code.replaceLast(`$disableRoleMentions`, ""), }; };
jkdubr/Proj4
Pod/Classes/Projection/MOBProjectionEPSG2355.h
<reponame>jkdubr/Proj4 #import "MOBProjection.h" @interface MOBProjectionEPSG2355 : MOBProjection @end
kakashidinho/HQEngine
ThirdParty-mod/java2cpp/java/util/concurrent/atomic/AtomicReference.hpp
<reponame>kakashidinho/HQEngine<gh_stars>1-10 /*================================================================================ code generated by: java2cpp author: <NAME>, mailto://<EMAIL> class: java.util.concurrent.atomic.AtomicReference =====================================================================...
incidincer/twice
ServerPush/src/main/java/ch/unifr/pai/twice/comm/serverPush/server/AtmosphereHandler.java
<gh_stars>0 package ch.unifr.pai.twice.comm.serverPush.server; /* * Copyright 2013 <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 ...
tmtbb/adstar
app/src/main/java/com/cloudTop/starshare/been/EventBusMessage.java
package com.cloudTop.starshare.been; /** * eventBus消息类 * Created by Administrator on 2017/4/4. */ public class EventBusMessage { public int Message; public EventBusMessage(int message) { Message = message; } public CheckUpdateInfoEntity checkUpdateInfoEntity; public int getMessage() { ...
sumedhpb/testrunner
pytests/transfer/conversionusetransfer.py
<reponame>sumedhpb/testrunner from transfer.transfer_base import TransferBaseTest from membase.api.rest_client import RestConnection, Bucket from scripts.install import InstallerJob from testconstants import COUCHBASE_DATA_PATH, WIN_COUCHBASE_DATA_PATH from remote.remote_util import RemoteMachineShellConnection import ...
krasnopv/das
businesslogic/reference_test.go
<filename>businesslogic/reference_test.go package businesslogic_test import ( "errors" "github.com/DancesportSoftware/das/businesslogic" "github.com/DancesportSoftware/das/mock/businesslogic" "github.com/golang/mock/gomock" "github.com/stretchr/testify/assert" "testing" ) func TestCountry_GetStates(t *testing.T...
Team2168/2014_Main_Robot
src/org/team2168/PIDController/sensors/AverageEncoder.java
<filename>src/org/team2168/PIDController/sensors/AverageEncoder.java package org.team2168.PIDController.sensors; import edu.wpi.first.wpilibj.Encoder; /** * This class extends the basic WPI encoder class. Its purpose is to provide a * smoother rate output by averaging the rate of N samplesIt Implements the * Speed...
dolio/TemplePlus
tpdatasrc/co8fixes/scr/py00281Yvy.py
from toee import * from utilities import * from combat_standard_routines import * def san_dialog( attachee, triggerer ): if (game.leader.reputation_has(32) == 1 or game.leader.reputation_has(30) == 1 or game.leader.reputation_has(29) == 1): attachee.float_line(11004,triggerer) else: triggerer.begin_dialog( atta...
aitalshashank2/Floo
backend/code/Floo/models/topic.py
<filename>backend/code/Floo/models/topic.py from django.db import models from django.conf import settings from Floo.models.team import Team class Topic(models.Model): """ A class representing a Topic Instance Attributes ---------- title : CharField A field storing the title of the topic ...
jfnavarro/st_misc
python_scripts/old_unsorted/misc_rel_0.1/checkResultIndexes.py
<reponame>jfnavarro/st_misc import sys import os def usage(): print "Usage:" print "python checkResultIndexes.py testResults.fastq mismatches_out.txt" def main(result, mismatches_out): res = open(result) mismatches = open(mismatches_out, "w") wrongMappings = 0 missedMappings = 0 mismat...
CURSORSoftwareAG/radiance
demos/substance-demo/src/main/java/org/pushingpixels/demo/substance/main/check/CellsPanel.java
<gh_stars>0 /* * Copyright (c) 2005-2019 <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: * * o Redistributions of source code must retain the above copyright notice, * this list o...
datenstrudel/bulbs-core
src/main/java/net/datenstrudel/bulbs/core/application/messaging/eventStore/PublishedMessageTrackerStore.java
<reponame>datenstrudel/bulbs-core package net.datenstrudel.bulbs.core.application.messaging.eventStore; import net.datenstrudel.bulbs.core.domain.model.infrastructure.BCoreBaseRepository; import org.springframework.stereotype.Repository; /** * * @author <NAME> */ @Repository public interface PublishedMessageTracke...
Cosium/vet
src/main/java/com/cosium/vet/git/GitClientFactory.java
<filename>src/main/java/com/cosium/vet/git/GitClientFactory.java package com.cosium.vet.git; /** * Created on 16/02/18. * * @author Reda.Housni-Alaoui */ public interface GitClientFactory { /** @return A new Git client */ GitClient build(); }
real-fakeuser/ChaynsTemplateClone
node_modules/chayns-components/lib/react-chayns-selectbutton/component/SelectButton.js
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, des...
libremoney/main
Lm/Modules/UserServer/Api/UnlockAccount.js
/**! * LibreMoney 0.2 * Copyright (c) LibreMoney Team <<EMAIL>> * CC0 license */ /* import nxt.Account; import nxt.Block; import nxt.Nxt; import nxt.Transaction; import nxt.util.Convert; import nxt.util.DbIterator; import org.json.simple.JSONArray; import org.json.simple.JSONObject; import org.json.simple.JSONStre...
brtjkzl/games-tracker
app/client/state/collection/index.test.js
<gh_stars>1-10 import { Status } from "../../constants"; import { resolveGameUpdate, resolveGames, resolveGamesBulkUpdate } from "./actionCreators"; import reducer, { initialState } from "."; describe("Collection", () => { test("GAMES_RESOLVED", () => { const action = resolveGames([{ name: "Foo" }]); c...
CSSSR/csssr.blog
components/Post/Body/utils/compilerMdx.js
import { Link } from '@csssr/core-design' import { compiler } from 'markdown-to-jsx' import { Fragment } from 'react' import Subtitle from '../../Subtitle' import Blockquote from '../Blockquote' import Caption from '../Caption' import Heading from '../Heading' import Img from '../Img' import List from '../List' import...
ninnghazad/moGL
example/ModelLoader.hh
<gh_stars>10-100 #ifndef MODELLOADER_HH #define MODELLOADER_HH #include <fstream> #include <string> #include <map> #include "Model.hh" class ModelLoader { public: ModelLoader(); ~ModelLoader(); public: Model* load(std::string filename); private: Model* loadOBJ(std::ifstream& src); private: ...
npocmaka/Windows-Server-2003
multimedia/directx/gamectrl/default/resource.h
<reponame>npocmaka/Windows-Server-2003 //{{NO_DEPENDENCIES}} // Microsoft Developer Studio generated include file. // Used by cplsvr1.rc // #define IDS_SHEETCAPTION 1 #define IDS_ERROR 2 #define IDS_NOFORCEFEEDBACK 3 #define IDS_ACQUIRED 4 #def...
work-mohit/Placement-Practice
Love Babber OnGoing Placement/Queue/Reverse Queue using Recursion.cpp
void reverseQ(queue<int>& q){ if(q.empty()){ return; } int ele = q.front(); q.pop(); reverseQ(q); q.push(ele); } queue<int> rev(queue<int> q) { reverseQ(q); return q; } //////////////////////////////////////////////////////////////// void reverseQ(queue<int>& q){ if(q.empty...
JE-Chen/je_old_repo
OpenGLWrapper_JE/venv/Lib/site-packages/OpenGL/GL/ARB/half_float_pixel.py
<reponame>JE-Chen/je_old_repo<filename>OpenGLWrapper_JE/venv/Lib/site-packages/OpenGL/GL/ARB/half_float_pixel.py<gh_stars>0 '''OpenGL extension ARB.half_float_pixel This module customises the behaviour of the OpenGL.raw.GL.ARB.half_float_pixel to provide a more Python-friendly API Overview (from the spec) ...
HedgehogCode/javacpp-presets
llvm/samples/llvm/EmitBitcode.java
<filename>llvm/samples/llvm/EmitBitcode.java /* * Copyright (C) 2021 <NAME> * * Licensed either under the Apache License, Version 2.0, or (at your option) * under the terms of the GNU General Public License as published by * the Free Software Foundation (subject to the "Classpath" exception), * either version 2, ...
aHenryJard/jetty.project
jetty-util/src/main/java/org/eclipse/jetty/util/annotation/ManagedOperation.java
// // ======================================================================== // Copyright (c) 1995-2020 Mort Bay Consulting Pty Ltd and others. // // This program and the accompanying materials are made available under // the terms of the Eclipse Public License 2.0 which is available at // https://www.eclipse.org/leg...
hrjaco/mcrouter
mcrouter/standalone_options.h
<reponame>hrjaco/mcrouter<gh_stars>1-10 /** * Copyright (c) 2014, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file i...
reels-research/iOS-Private-Frameworks
LoggingSupport.framework/_OSLogEventStoreMetadata.h
/* Generated by RuntimeBrowser Image: /System/Library/PrivateFrameworks/LoggingSupport.framework/LoggingSupport */ @interface _OSLogEventStoreMetadata : NSObject { NSUUID * _archiveUUID; _OSLogEventStoreTimeRef * _end; _OSLogEventStoreTimeRef * _oldestHighVolume; _OSLogEventStoreTimeRef * _oldestLi...
gclm/RESTKit
src/main/java/io/github/newhoo/restkit/toolwindow/action/toolbar/EnableLibraryAction.java
package io.github.newhoo.restkit.toolwindow.action.toolbar; import com.intellij.openapi.actionSystem.AnActionEvent; import com.intellij.openapi.actionSystem.ToggleAction; import com.intellij.openapi.project.Project; import io.github.newhoo.restkit.config.CommonSettingComponent; import io.github.newhoo.restkit.toolwind...
StephanErb/pants
tests/python/pants_test/scm/test_git.py
<gh_stars>0 # coding=utf-8 # Copyright 2014 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). from __future__ import absolute_import, division, print_function, unicode_literals import os import unittest from builtins import open from contextlib import co...
JinmingHu-MSFT/azure-sdk-for-cpp
sdk/identity/azure-identity/inc/azure/identity/client_certificate_credential.hpp
<gh_stars>1-10 // Copyright (c) Microsoft Corporation. All rights reserved. // SPDX-License-Identifier: MIT /** * @file * @brief Client Certificate Credential and options. */ #pragma once #include "azure/identity/dll_import_export.hpp" #include <azure/core/credentials/credentials.hpp> #include <azure/core/creden...
onezens/QQTweak
qqtw/qqheaders7.2/QQCustomTipsPbProxy.h
<reponame>onezens/QQTweak<gh_stars>1-10 // // Generated by class-dump 3.5 (64 bit). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>. // #import "NSObject.h" #import "IPacketSendResultHandler.h" @class NSMutableArray, NSString; @interface QQCustomTipsPbProxy : NSObject <IPacketSen...
cybersamx/long-poll
di/pkg/models.go
package pkg type City struct { ID int `json:"id"` Name string `json:"name"` } func NewCity(id int, name string) *City { return &City{ ID: id, Name: name, } }
christabor/etude
11-15-2013/void.js
<reponame>christabor/etude var canvas; var height = $(window).height(); var width = $(window).width(); var animation_opts; $('canvas').attr({ 'width': width, 'height': height }); canvas = new fabric.Canvas('void'); // performance tweak canvas.renderOnAddRemove = false; // get visible window for canvas size animat...
dmj/jing-trang
mod/convert-to-dtd/src/main/com/thaiopensource/relaxng/output/dtd/NamespaceManager.java
<reponame>dmj/jing-trang<gh_stars>100-1000 package com.thaiopensource.relaxng.output.dtd; import com.thaiopensource.relaxng.edit.NameClass; import com.thaiopensource.relaxng.edit.NameNameClass; import com.thaiopensource.xml.util.WellKnownNamespaces; import java.util.HashMap; import java.util.HashSet; import java.util...
mdsol/mauth-client-ruby
spec/support/shared_contexts/client.rb
<reponame>mdsol/mauth-client-ruby shared_context 'client' do let(:app_uuid) { 'signer' } let(:request) { TestSignableRequest.new(verb: 'PUT', request_url: '/', body: 'himom') } let(:v2_only_sign_requests) { false } let(:v1_only_sign_requests) { false } let(:v2_only_authenticate) { false } let(:disable_fallb...
americanstone/image-crawler
src/main/java/edu/vanderbilt/imagecrawler/platform/JavaImage.java
<reponame>americanstone/image-crawler<gh_stars>0 package edu.vanderbilt.imagecrawler.platform; import java.awt.image.BufferedImage; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; import javax.imageio.ImageIO; import edu.vanderbilt.imagecrawler.transforms.Transform; import edu.va...
atveit/vespa
document/src/tests/testbytebuffer.h
<gh_stars>1-10 // Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. /* $Id$*/ #pragma once #include <cppunit/extensions/HelperMacros.h> /** CPPUnit test case for ByteBuffer class. */ class ByteBuffer_Test : public CppUnit::TestFixture { CPPUNIT...
Queentaker/uzh
Informatik1/Actual Finals/Finals/1 Warmup/2_wp_1.py
<filename>Informatik1/Actual Finals/Finals/1 Warmup/2_wp_1.py #works def calc(expression): lst = expression.split() if lst[0] == "+": return float(lst[1])+float(lst[2]) if lst[0] == "-": return float(lst[1])-float(lst[2]) if lst[0] == "*": return float(lst[1])*float(lst[2]) ...
salaboy/activiti-cloud-runtime-bundle-service
activiti-cloud-services-runtime-bundle/activiti-cloud-services-rest-impl/src/test/java/org/activiti/cloud/services/rest/controllers/ProcessInstanceVariableControllerImplIT.java
/* * Copyright 2017 Alfresco, Inc. and/or its affiliates. * * 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 ...
tshino/vscode-kb-macro
test/suite/test_util.js
'use strict'; const assert = require('assert'); const vscode = require("vscode"); const TestUtil = (function() { const sleep = msec => new Promise(resolve => setTimeout(resolve, msec)); const usedLanguages = new Set(); const setupTextEditor = async function({ content, language = 'plaintext' }) { co...
YushchenkoAndrew/template
CDump/TestClass/Main.cpp
#include <iostream> #include "Test.h" // #include "Test.cpp" int main() { Test t; return 0; }
Suryadevelops/youtrack-mobile
src/components/agile-row/agile-row__column.js
<reponame>Suryadevelops/youtrack-mobile<filename>src/components/agile-row/agile-row__column.js<gh_stars>1-10 /* @flow */ import React from 'react'; import {FlatList, TouchableOpacity} from 'react-native'; import { DropZone } from '../draggable'; import {cardBottomMargin, getAgileCardHeight} from '../agile-card/agile-...
phpc0de/idea-android
android/src/org/jetbrains/android/AndroidClassMembersImplicitUsagesProvider.java
package org.jetbrains.android; import com.intellij.codeInsight.daemon.ImplicitUsageProvider; import com.intellij.psi.*; import com.intellij.psi.impl.source.PsiClassReferenceType; import com.intellij.psi.util.InheritanceUtil; import com.intellij.psi.util.PsiTreeUtil; import org.jetbrains.android.dom.converters.OnClickC...
andrewapperley/Blips-Client
Blips/Blips/AFBlip/Timeline/AFBlipTimelineCanvasLayout/AFBlipTimelineCanvasLayout.h
<reponame>andrewapperley/Blips-Client // // AFBlipTimelineCanvasLayout.h // Video-A-Day // // Created by <NAME> on 12/11/2013. // Copyright (c) 2013 AFApps. All rights reserved. // #import <UIKit/UIKit.h> @interface AFBlipTimelineCanvasLayout : UICollectionViewFlowLayout @end
andrew-t-james/personal-project
src/actions/auth.js
<gh_stars>0 export const googleSignInAction = user => ({ type: 'GOOGLE_LOGIN', user }); export const googleSignOutAction = () => ({ type: 'GOOGLE_LOGOUT' }); export const githubLoginAction = user => ({ type: 'GITHUB_LOGIN', user }); export const twitterLoginAction = user => ({ type: 'TWITTER_LOGIN', us...
r-souza/Rocket.Chat
app/livechat/server/methods/takeInquiry.js
import { Meteor } from 'meteor/meteor'; import { hasPermission } from '../../../authorization'; import { Users, LivechatInquiry } from '../../../models/server'; import { RoutingManager } from '../lib/RoutingManager'; import { userCanTakeInquiry } from '../lib/Helper'; Meteor.methods({ 'livechat:takeInquiry'(inquiryI...
ViewFaceCore/TenniS
include/kernels/cpu/winograd_algorithm.h
// // Created by yang on 2019/10/21. // #ifndef TENSORSTACK_KERNELS_CPU_WINOGRAD_ALGORITHM_H #define TENSORSTACK_KERNELS_CPU_WINOGRAD_ALGORITHM_H #include "core/tensor.h" namespace ts{ namespace cpu{ template <typename T> class TS_DEBUG_API Conv2dWinogradAlgorithm{ public: st...
muthuArivoli/game-creator
doc/plan/usecases/chooseGoal.java
<gh_stars>0 import java.util.*; /** *Specifies the procedural implementation of choosing a new Goal for the game */ public class QueenPiece { /** * Default constructor */ public QueenPiece() { Game = new GameController; Parser = new ParserController; Parser.loadGameFile("GameFile"); Game.a...
Lejick/sport-portal-spring
src/main/java/org/portal/authentication/LoginService.java
<gh_stars>0 package org.portal.authentication; import org.portal.back.model.Logins; import org.portal.back.model.LoginsRepository; import org.portal.back.model.PinaccRepository; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Component; import javax.persistence.Ent...
brandonkim-1301/TI-RSLK-Maze-Follower
documentation/structbmi160__acc__no__motion__int__cfg.js
var structbmi160__acc__no__motion__int__cfg = [ [ "no_motion_dur", "structbmi160__acc__no__motion__int__cfg.html#a17957e047316ade93de129cc1c9817b9", null ], [ "no_motion_sel", "structbmi160__acc__no__motion__int__cfg.html#ae315deb080bbeccaa8cf648f8244e28a", null ], [ "no_motion_src", "structbmi160__acc__no_...
zhfeng/org.ops4j.pax.transx
pax-transx-jdbc/src/main/java/org/ops4j/pax/transx/jdbc/impl/ConnectionHandle.java
<gh_stars>0 /* * 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 * "Lic...
stausholm/vue-pwa
client/src/components/poll/mock-api.js
const isDateInThePast = dateString => { return dateString ? new Date() > new Date(dateString) : false; }; let answerIdIncrementer = 0; class Poll { constructor(id, question, answers, expires = null, showResults = false) { this.id = id; this.question = question; this.answers = answers; this.expires...
tjx666/leetcode-javascript
src/0101-Symmetric Tree/isSymmetric1.js
<reponame>tjx666/leetcode-javascript /** * 判断一颗树是不是镜像树, * 递归解法: * 如果一颗树是镜像树,那么它的左子树和右子树也是镜像的 * 判断两颗树是否是镜像即判断他俩是否相等,并且左子树的左孩子应该和右子树的右孩子也是镜像对称,左子树的右孩子应该和右子树的左孩子也是镜像对称 * * @param {TreeNode} root * @return {boolean} */ function isSymmetric(root) { if (root == null) return true; return isMirror(root.left, ro...
Karun842002/discord-bot-GenuineGenie
cmds/economy/balance.js
<filename>cmds/economy/balance.js const Discord = require('discord.js'); const Commando = require('discord.js-commando'); const getUser = require('@utils/getUser'); // Array of member IDs who have claimed their daily rewards in the last 24hrs // Resets every 10 mins let claimedCache = []; const clearCache = () => { ...
llama-0/java_in_examples
collections/src/com/github/vedenin/eng/collections/multiset/GsMutableBagTest.java
package com.github.vedenin.eng.collections.multiset; import com.gs.collections.api.bag.MutableBag; import com.gs.collections.impl.bag.mutable.HashBag; import java.util.Arrays; // Attention: version with russian comments in "rus" package public class GsMutableBagTest { public static void main(String[] args) { ...
Miven666/SpringBoot-learing
springboot-dds/springboot-dds-jpa/src/main/java/com/miven/springboot/dds/jpa/master/service/TenantService.java
<reponame>Miven666/SpringBoot-learing package com.miven.springboot.dds.jpa.master.service; import com.miven.springboot.dds.jpa.master.model.Tenant; /** * 租户业务层 * @author mingzhi.xie * @date 2019/12/17 * @since 1.0 */ public interface TenantService { /** * 根据身份标识查询租户 * @param name 身份 * @return ...
dgpgdev/junctions
src/map.js
import curry from './curry' /** * transforme les donnée d'une liste via une condition * @memberOf List * @function map * @param {function} fn la fonction de filtrage * @param {array} array la liste des items a testé * @instance * @returns {array} un nouveau tableau de données transformés * @instance * @example...
bozhnyukAlex/SPBU_hometasks
SEMESTER #3/FiltersJava/out/production/FiltersJava/generated/Test/generated/Measure_jmhType.java
package Test.generated; public class Measure_jmhType extends Measure_jmhType_B3 { }
ScalablyTyped/SlinkyTyped
r/react-native/src/main/scala/typingsSlinky/reactNative/mod/ThemeAttributeBackgroundPropType.scala
<filename>r/react-native/src/main/scala/typingsSlinky/reactNative/mod/ThemeAttributeBackgroundPropType.scala package typingsSlinky.reactNative.mod import typingsSlinky.reactNative.reactNativeStrings.ThemeAttrAndroid import org.scalablytyped.runtime.StObject import scala.scalajs.js import scala.scalajs.js.`|` import sc...
adammichaelwilliams/prisma
server/servers/api/src/test/scala/com/prisma/api/mutations/nonEmbedded/nestedMutations/NestedCreateMutationInsideUpdateSpec.scala
package com.prisma.api.mutations.nonEmbedded.nestedMutations import com.prisma.api.ApiSpecBase import com.prisma.shared.models.ConnectorCapability.JoinRelationLinksCapability import com.prisma.shared.schema_dsl.SchemaDsl import org.scalatest.{FlatSpec, Matchers} class NestedCreateMutationInsideUpdateSpec extends Flat...
brezillon/opensplice
src/api/cm/xml/code/cmx_participant.c
<filename>src/api/cm/xml/code/cmx_participant.c /* * Vortex OpenSplice * * This software and documentation are Copyright 2006 to TO_YEAR ADLINK * Technology Limited, its affiliated companies and licensors. All rights * reserved. * * Licensed under the Apache License, Version 2.0 (...
rio-31/android_frameworks_base-1
packages/SystemUI/src/com/android/systemui/bubbles/BubbleIconFactory.java
<reponame>rio-31/android_frameworks_base-1<gh_stars>100-1000 /* * Copyright (C) 2018 The Android Open Source Project * * 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...
hugorebelo/gitlabhq
spec/factories/merge_request_context_commit_diff_file.rb
# frozen_string_literal: true FactoryBot.define do factory :merge_request_context_commit_diff_file do association :merge_request_context_commit sha { Digest::SHA1.hexdigest(SecureRandom.hex) } relative_order { 0 } new_file { true } renamed_file { false } deleted_file { false } too_large ...
RickySauce/NFl-Pickems
client/src/actions/seasons/weeks/matchups/lockMatchups.js
<reponame>RickySauce/NFl-Pickems<filename>client/src/actions/seasons/weeks/matchups/lockMatchups.js export function lockMatchups(gameTime, weekId){ return (dispatch) => { dispatch({type: 'LOCK_MATCHUPS', gameTime}) let data = JSON.stringify({game_date_time: gameTime}) fetch(`/api/matchups/update/${weekId}...
KieranRoberts44/builtjs-theme-corporate-tailwind
components/templates/lists/list-5/list-5.js
<filename>components/templates/lists/list-5/list-5.js import Link from "next/link"; import Image from "next/image"; import getConfig from "next/config"; // import { format } from "date-fns"; import { Tag } from "@/elements"; export default function List4({ content, router }) { const { collections } = content; cons...
ev0x/genesis
src/commands/Rooms/SetDefaultCategory.js
<filename>src/commands/Rooms/SetDefaultCategory.js<gh_stars>0 'use strict'; const Command = require('../../models/Command.js'); class SetDefaultCategory extends Command { constructor(bot) { super(bot, 'settings.defaultcategory', 'set rooms category', 'Set whether or not to the bot should default rooms to being ...
VanessaMMH/ProgComp2021A
Examen2PC/P2_BrokenKeyboard/BrokenKeyboard.cpp
#include <iostream> #include <string> #include <unordered_set> #include <unordered_map> using namespace std; //link: https://www.beecrowd.com.br/judge/en/problems/view/1642 int main() { int m; while (1) { cin >> m; if (!m) break; string s; getline(cin, s); getlin...
veda-p/stew
pkg/utils/yaml_editor.go
<gh_stars>0 package utils import ( "fmt" commands "stew/pkg/commands" ) // type Map map[string]interface{} var ExtensionMap = map[string]string{"nodejs": ".js", "go": ".go", "packagejson": ".json"} // func (m Map) M(s string) Map { // return m[s].(map[string]interface{}) // } // func (m Map) S(s string) string ...
PayForFish/CheesePro
src/main/java/cn/emitor/chesspro/hero/GuaFu.java
package cn.emitor.chesspro.hero; import cn.emitor.chesspro.Hero; import cn.emitor.chesspro.buff.CiKe; import cn.emitor.chesspro.buff.Devil; import cn.emitor.chesspro.enums.HeroEnum; /** * @author Emitor * on 2019/8/31. */ public class GuaFu extends Hero { private CiKe ciKe; private Devil devil; public...
pupper68k/arcusplatform
platform/arcus-subsystems/src/test/java/com/iris/common/subsystem/climate/ClimateSubsystemTestCase.java
/* * Copyright 2019 Arcus Project * * 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 ...
ckoutsiaris/ui5-webcomponents
packages/tools/icons-collection/nps.js
const path = require("path"); const LIB = path.join(__dirname, `../lib/`); const getScripts = () => { const scripts = { clean: "rimraf dist", copy: { default: "nps copy.json-imports copy.icon-collections", "json-imports": 'copy-and-watch "src/**/*.js" dist/', "icon-collections": 'copy-and-wa...
akbence007/flinkcep
flink-streaming-scala/src/test/scala/org/apache/flink/streaming/api/scala/StreamingScalaAPICompletenessTest.scala
/* * 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 ...
wiresong/synthizer
include/synthizer/generators/fast_sine_bank.hpp
<gh_stars>1-10 #pragma once #include "synthizer.h" #include "synthizer/fast_sine_bank.hpp" #include "synthizer/generator.hpp" #include "synthizer/property_internals.hpp" #include <memory> #include <optional> namespace synthizer { class Context; class FastSineBankGenerator : public Generator { public: FastSineBa...
paulwellnerbou/chronicreplay
src/main/java/de/wellnerbou/chronic/logparser/LogLineParserProvider.java
<filename>src/main/java/de/wellnerbou/chronic/logparser/LogLineParserProvider.java package de.wellnerbou.chronic.logparser; import de.wellnerbou.chronic.plugins.ServiceLoaderImplementationProvider; public class LogLineParserProvider extends ServiceLoaderImplementationProvider<LogLineParser> { private String parserP...
forwardalex/Ytool
log/blame.go
package log import ( "bufio" "bytes" "context" "fmt" "io" "os/exec" "strconv" "strings" "sync" "time" ) // BlameLine is a structure for a blame result for a specific user type BlameLine struct { AuthorName string AuthorEmail string AuthorDate time.Time CommitName string CommitEmail string CommitDat...
iainx/grs
Mail Ping/Mail Ping/MyAccountsWindowController.h
<gh_stars>1-10 // // MyAccountsWindowController.h // Mail Ping // // Created by <NAME> on 2/15/13. // Copyright (c) 2013 <NAME>. All rights reserved. // #import <Cocoa/Cocoa.h> #import "MyAddAccountWindowController.h" @interface MyAccountsWindowController : NSWindowController <NSTableViewDataSource, NSTableViewD...
bocke/ucc
test/cases/vla/vm_init.c
// RUN: %ocheck 0 %s void abort(void) __attribute__((noreturn)); syntax(int n) { int ar[n]; int (*p)[n] = &ar; syntax(p); } assert(_Bool b) { if(!b) abort(); } f(int n) { #define NULL (void*)0 short (*p)[n] = NULL; assert(p == NULL); short (*q)[n] = (void *)3; assert(q == (void *)3); __auto_type a = (i...
anhnt4288/SmartRealEstate
frontend/src/components/password/styles/password.js
import styled from "styled-components/macro"; export const Container = styled.div` padding: 40px; background-color: var(--bs-white); box-shadow: var(--primary-box-shadow); border-radius: 4px; `;
IvanovE/js_learning
blog-app/src/components/create.component.js
import { Component } from '../core/component' import { Form } from "../core/form" import { Validators } from "../core/validators" import { apiService } from "../services/api.service" import {NotificationComponent} from "./notification.component"; export class CreateComponent extends Component { constructor(id) { ...
SMartQi/Leetcode
Code/1583-paint-house-iii.cc
<filename>Code/1583-paint-house-iii.cc class Solution { public: int minCost(vector<int>& houses, vector<vector<int>>& cost, int m, int n, int target) { int origin[100] = {0}; int last = 0, count = 0; for (int i = m - 1; i >= 0; i--) { if (houses[i] == 0 || houses[i] == last) { ...
trevor-vaughan/rubygem-simp-cli
ext/gems/highline/examples/password.rb
#!/usr/bin/env ruby require "rubygems" require "highline/import" pass = ask("Enter your password: ") { |q| q.echo = false } puts "Your password is #{pass}!"
PedroHenrique-git/c
champter2/ex9.c
<filename>champter2/ex9.c #include<stdio.h> int main ( void ) { int n, aux, maior1 = 0, maior2 = 0; for(int i = 0; i < 9; i++) { printf("Digite um numero: "); scanf("%d", &n); aux = n; if( aux > maior1 ) { maior2 = maior1; maior1 = aux; } else i...
QuiNovas/apache-pulsar
pulsar-discovery-service/src/test/java/org/apache/pulsar/discovery/service/DiscoveryServiceTest.java
<reponame>QuiNovas/apache-pulsar /** * 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, Ve...
shahor02/AliRoot
GPU/GPUTracking/Base/GPUOutputControl.h
<reponame>shahor02/AliRoot<gh_stars>0 //**************************************************************************\ //* This file is property of and copyright by the ALICE Project *\ //* ALICE Experiment at CERN, All rights reserved. *\ //* ...
qicosmos/hana
include/boost/hana/bool.hpp
/*! @file Defines the `Logical` and `Comparable` models of `boost::hana::integral_constant`. @copyright <NAME> 2015 Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt) */ #ifndef BOOST_HANA_BOOL_HPP #define BOOST_HANA_BOOL_HPP #in...