repo_name
stringlengths
6
101
path
stringlengths
4
300
text
stringlengths
7
1.31M
sPHENIX-Test/sPHENIX-Test
doxygen/d1/d53/classPHG4PhenixSteppingAction.js
var classPHG4PhenixSteppingAction = [ [ "ActionList", "d1/d53/classPHG4PhenixSteppingAction.html#af72abf92163a86c8f8fa2424ef6f71c3", null ], [ "PHG4PhenixSteppingAction", "d1/d53/classPHG4PhenixSteppingAction.html#a7ffd4e0bc20f835737e3e784e2da5894", null ], [ "~PHG4PhenixSteppingAction", "d1/d53/classPHG4Ph...
Mithenks/strapi
packages/core/content-manager/server/tests/fields/uid.test.e2e.js
'use strict'; const { createTestBuilder } = require('../../../../../../test/helpers/builder'); const { createStrapiInstance } = require('../../../../../../test/helpers/strapi'); const { createAuthRequest } = require('../../../../../../test/helpers/request'); let strapi; let rq; describe('Test type UID', () => { de...
transitrealtime/mobileFrontEnd
components/getRegion.js
export function regionFrom(lat, lon, accuracy) { const oneDegreeOfLongitudeInMeters = 111.32 * 1000; const circumference = (40075 / 360) * 1000; const latDelta = accuracy * (1 / (Math.cos(lat) * circumference)); const lonDelta = (accuracy / oneDegreeOfLongitudeInMeters); return { lat...
sgholamian/log-aware-clone-detection
LACCPlus/Hadoop/1407_2.java
//,temp,NNUpgradeUtil.java,84,99,temp,BlockPoolSliceStorage.java,597,632 //,3 public class xxx { void doFinalize(File dnCurDir) throws IOException { File bpRoot = getBpRoot(blockpoolID, dnCurDir); StorageDirectory bpSd = new StorageDirectory(bpRoot); // block pool level previous directory File prevDir...
ultianalytics/UltimateIPhone
Scrubber.h
// // Scrubber.h // UltimateIPhone // // Created by <NAME> on 5/23/12. // Copyright (c) 2012 Summit Hill Software. All rights reserved. // #import <Foundation/Foundation.h> @interface Scrubber : NSObject { } @property (nonatomic) BOOL isOn; +(Scrubber*)currentScrubber; -(NSString*)substitutePlayerName: (NSStri...
whuang022nccu/IndriLab
include/indri/TokenizerFactory.hpp
/*========================================================================== * Copyright (c) 2003-2005 University of Massachusetts. All Rights Reserved. * * Use of the Lemur Toolkit for Language Modeling and Information Retrieval * is subject to the terms of the software license set forth in the LICENSE * file in...
Markoy8/Foundry
Components/CommonCore/Source/gov/sandia/cognition/io/XStreamSerializationHandler.java
/* * File: XMLSerializationHandler.java * Authors: <NAME> * Company: Sandia National Laboratories * Project: Cognitive Foundry * * Copyright February 21, 2007, Sandia Corporation. Under the terms of Contract * DE-AC04-94AL85000, there is a non-exclusive license...
ScalablyTyped/SlinkyTyped
a/arcgis-js-api/src/main/scala/typingsSlinky/arcgisJsApi/esri/SearchLayerProperties.scala
<gh_stars>10-100 package typingsSlinky.arcgisJsApi.esri 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 SearchLayerProperties extends StObject { /** *...
GDNative-Gradle/proof-of-concept
cpp/godot-cpp/src/gen/AcceptDialog.cpp
<gh_stars>1-10 #include "AcceptDialog.hpp" #include <core/GodotGlobal.hpp> #include <core/CoreTypes.hpp> #include <core/Ref.hpp> #include <core/Godot.hpp> #include "__icalls.hpp" #include "Button.hpp" #include "Label.hpp" #include "Node.hpp" namespace godot { AcceptDialog::___method_bindings AcceptDialog::___m...
aspose-cells-cloud/aspose-cells-cloud-cpp
include/aspose_cells_cloud/models/pdf_save_options.h
<reponame>aspose-cells-cloud/aspose-cells-cloud-cpp<gh_stars>0 /** -------------------------------------------------------------------------------------------------------------------- * <copyright company="Aspose" file=" pdf_save_options.h"> * Copyright (c) 2022 Aspose.Cells for Cloud * </copyright> * <summary> * ...
rf-toothpic/tp-iscream
app/containers/Auth/selectors.js
import { initialState } from 'containers/Leaderboard/reducer' import { createSelector } from 'reselect' /** * Direct selector to the auth state domain */ const selectAuthDomain = state => state.auth || initialState /** * Generic item selector - use if no data mutations/calculations occur */ export const selectIte...
nuxodin/vanilla-cms
m/core/js/qgCalendar0/qgCalendar.js
<reponame>nuxodin/vanilla-cms<gh_stars>1-10 !function(){ 'use strict'; var today; window.qgCalendar = function(el, selected) { today = new Date(); this.selected = selected; el.classList.add('qgCalendar'); var fragment = c1.dom.fragment( '<table>'+ '<tbody>'+ '<tr>'+ '<td class=-calLeft>&#96...
joaomfas/LAPR4-2019-2020
app/base.core/src/test/java/eapli/base/gestaomensagens/dominio/MensagemTest.java
package eapli.base.gestaomensagens.dominio; import java.util.Date; import org.junit.Test; import static org.junit.Assert.*; public class MensagemTest { public MensagemTest() { } @Test(expected = IllegalArgumentException.class) public void vericarMensagemNaoNula() { new Mensagem(null, nul...
johnqkd/nospoon
src/lib/task/items/applyInteractiveTask.js
import walletLib from '@/lib/wallet'; import {walletRepository} from "@/db/repository/walletRepository"; import { interactiveTaskType, interactiveTaskStatus, interactiveTaskRepository, } from '@/db/repository/interactiveTaskRepository'; import TonApi from "@/api/ton"; import database from '@/db'; import insuffici...
robinfehr/cf-adapter
lib/graceRequestHandler/connectionReset.js
module.exports = (options) => { const err = options.error; // const response = options.response; // const result = options.result; // const infos = options.infos; // const attempt = options.attempt; if (err && err.code === 'ECONNRESET') { return 'TCP conversation abruptly closed'; } };
sanjnair/projects
university/usc_csci_551_communications/project3/ckbhandler.h
<reponame>sanjnair/projects /*************************************************************************** ** Sun Aug 27 2006 ** (C) 2006 by <NAME> ** sanjaysn <at> usc <dot> edu ****************************************************************************/ #ifndef CKBHANDLER_H #define CKBHANDLER_H #include "cg...
neet-no1/menu-deliver-api
src/main/java/jp/co/suyama/menu/deliver/model/ArticlesAndPage.java
<filename>src/main/java/jp/co/suyama/menu/deliver/model/ArticlesAndPage.java package jp.co.suyama.menu.deliver.model; import java.util.List; import jp.co.suyama.menu.deliver.model.auto.ArticleData; import jp.co.suyama.menu.deliver.model.auto.PageNation; import lombok.Getter; import lombok.Setter; @Getter @...
tliden/AvodahLOS
content/container/decision-engine-service-container/utilities/views/ocr/index.js
'use strict'; const components = require('./components'); module.exports = { components, };
vigsterkr/netket
Sources/Machine/py_abstract_machine.ipp
// Copyright 2019 The Simons Foundation, Inc. - All Rights Reserved. // // 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 requi...
LK26/outline-client
third_party/tap-windows6/src/proto.h
/* * TAP-Windows -- A kernel driver to provide virtual tap * device functionality on Windows. * * This code was inspired by the CIPE-Win32 driver by <NAME>. * * This source code is Copyright (C) 2002-2014 OpenVPN Technologies, Inc., * and is released under the GPL version 2 (see below). * *...
zhangkn/iOS14Header
System/Library/PrivateFrameworks/iWorkImport.framework/Frameworks/TSCharts.framework/TSCH3DGeometryResource.h
<reponame>zhangkn/iOS14Header<gh_stars>1-10 /* * This header is generated by classdump-dyld 1.0 * on Sunday, September 27, 2020 at 12:31:25 PM Mountain Standard Time * Operating System: Version 14.0 (Build 18A373) * Image Source: /System/Library/PrivateFrameworks/iWorkImport.framework/Frameworks/TSCharts.framework/TSCh...
obogo/grunt-treeshake
tasks/treeshake.js
<filename>tasks/treeshake.js /* global require, module, __dirname */ 'use strict'; var removeComments = require('./utils/removeComments'); var printer = require('./utils/printer'); var emitter = require('./utils/emitter'); var toArray = require('./utils/toArray'); module.exports = function (grunt) { var gruntLogH...
Pugabyte/BNCore
src/main/java/gg/projecteden/nexus/features/resourcepack/models/files/CustomModelFolder.java
<filename>src/main/java/gg/projecteden/nexus/features/resourcepack/models/files/CustomModelFolder.java package gg.projecteden.nexus.features.resourcepack.models.files; import gg.projecteden.nexus.features.resourcepack.ResourcePack; import gg.projecteden.nexus.features.resourcepack.models.CustomModel; import gg.project...
onezens/QQTweak
qqtw/qqheaders7.2/QZJFeedsCellFollowGuide.h
// // Generated by class-dump 3.5 (64 bit). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>. // #import "JceObjectV2.h" @class NSArray, NSString; @interface QZJFeedsCellFollowGuide : JceObjectV2 { } // Remaining properties @property(retain, nonatomic, getter=jce_followed_list, s...
Zondax/ibmdotcom-react
lib/components/FeatureCardBlockLarge/FeatureCardBlockLarge.js
"use strict"; var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends")); var _defineProperty2 = _interopRequireDefa...
woshidaniu-com/niukit
niukit-rocketmq/src/main/java/com/woshidaniu/rocketmq/event/chain/HandlerChainResolver.java
package com.woshidaniu.rocketmq.event.chain; import com.woshidaniu.rocketmq.event.RocketmqEvent; public interface HandlerChainResolver<T extends RocketmqEvent> { HandlerChain<T> getChain(T event , HandlerChain<T> originalChain); }
rockandsalt/conan-center-index
recipes/libmount/all/test_package/test_package.cpp
#include <iostream> #include <cstdlib> #include <libmount/libmount.h> int main() { struct libmnt_context *ctx = mnt_new_context(); if (!ctx) { std::cerr << "failed to initialize libmount\n"; return EXIT_FAILURE; } std::cout << "path to fstab: " << mnt_get_fstab_path() << std::endl; mnt_...
paidgeek/c-exercises
e15.c
<gh_stars>0 #include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <sys/types.h> #define PERR(msg) { perror(msg); exit(1); } int main(int argc, char *argv[]) { int fd[2]; pid_t pid; if(pipe(fd) == -1) { PERR("pipe") } if((pid = fork()) < 0) { PERR("fork") } else if(pid == 0) { if(close(fd[1...
hanframework/han
han-core/src/main/java/org/hanframework/beans/exception/BeanCurrentlyInCreationException.java
package org.hanframework.beans.exception; /** * @author liuxin * @version Id: BeanCurrentlyInCreationException.java, v 0.1 2018/10/29 3:11 PM */ public class BeanCurrentlyInCreationException extends RuntimeException { /** * Create a new BeanCurrentlyInCreationException, * with a default error message ...
arnonkahani/FastLane
DB/db/model/stop.py
<filename>DB/db/model/stop.py import logging from geoalchemy2 import Geometry from sqlalchemy import Column, Integer, String from sqlalchemy.orm import relationship from DB.config.fastlanes_config import FastlanesConfig from DB.db.model.base import Base log = logging.getLogger(__name__) class Stop(Base): file...
n-syuichi/LAaaS-docker
xapi_stmt_gen/xapi_stmt_gen/config/app.js
<filename>xapi_stmt_gen/xapi_stmt_gen/config/app.js<gh_stars>1-10 const config = { db:{ host:'moodle-docker_db_1', port:5432, database:'moodle', username:'moodleuser', password:'<PASSWORD>', prefix:'mdl_' }, LRS:{ url:'http://172.18.0.6:8081/data/xAPI/', clients:{ // LRS clie...
sgowell-rm/spark-design-system
gatsby-browser.js
/** * Implement Gatsby's Browser APIs in this file. * * See: https://www.gatsbyjs.org/docs/browser-apis/ */ exports.onRouteUpdate = ({ location, prevLocation }) => { if (typeof docsearch !== 'undefined') { docsearch({ // eslint-disable-line no-undef apiKey: '<KEY>', indexName: 'sparkdesignsystem',...
keydunov/snowman-io
lib/snowman-io/api/checks.rb
module SnowmanIO module API class Checks < Grape::API before(&:authenticate!) namespace :checks do params do optional :last, type: Integer end get do Extra::Meteor.model_all(:checks, Check, permitted_params[:last]) end params do r...
trydent-io/quercus
io.artoo.lance/src/main/java/io/artoo/lance/query/func/WhenWhere.java
package io.artoo.lance.query.func; import io.artoo.lance.func.Cons; import io.artoo.lance.func.Func; import io.artoo.lance.func.Pred; public final class WhenWhere<T> implements Func.MaybeFunction<T, T> { private final Pred.MaybePredicate<? super T> where; private final Cons.MaybeConsumer<? super T> cons; publi...
hamid2262/shouter
app/controllers/search_subtrips_controller.rb
class SearchSubtripsController < ApplicationController skip_authorization_check def search if params[:search_subtrip].nil? @search_subtrip = SearchSubtrip.new @subtrips = @search_subtrip.newtrips.page(params[:page]).per_page(10) # @subtrips = @search_subtrip.subtrips_close_to_user request.remote_ip #"1...
chuyiting/tp
src/test/java/seedu/studybananas/model/task/TaskTest.java
<gh_stars>1-10 package seedu.studybananas.model.task; import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertFalse; import static org.junit.jupiter.api.Assertions.assertTrue; import static seedu.studybananas.testutil.SampleTasks.CS2100_TUTORIAL_HOMEWORK; impor...
lgirdk/ccsp-common-library
source/util_api/ansc/AnscPlatform/user_memory.c
<gh_stars>1-10 /* * If not stated otherwise in this file or this component's Licenses.txt file the * following copyright and licenses apply: * * Copyright 2015 RDK Management * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * ...
SayanGhoshBDA/code-backup
1st_and_2nd_Sem_c_backup/BIN/C Prog/33.c
<reponame>SayanGhoshBDA/code-backup /* Program to print powers of 2 */ #include<stdio.h> int main() { int i=1, power=1; while(++i<=10) printf("%d",power*=2); printf("\n"); return 0; }
andbyu/andbyu.github.io
node_modules/@angular/core/esm/src/linker.js
/** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ // Public API for compiler export { Compiler } from './linker/compiler'; export { ComponentFactory, ComponentRef } fr...
wangyum/anaconda
pkgs/libdynd-0.7.2-0/include/dynd/int128.hpp
// // Copyright (C) 2011-15 DyND Developers // BSD 2-Clause License, see LICENSE.txt // #pragma once #include <limits> #if !defined(DYND_HAS_INT128) namespace dynd { class DYNDT_API int128 { public: #if defined(DYND_BIG_ENDIAN) uint64_t m_hi, m_lo; #else uint64_t m_lo, m_hi; #endif int128() {} int128(uint...
lechium/tvOS10Headers
System/Library/Frameworks/Foundation.framework/NSDirInfoSerializer.h
<gh_stars>1-10 /* * This header is generated by classdump-dyld 1.0 * on Wednesday, March 22, 2017 at 9:01:14 AM Mountain Standard Time * Operating System: Version 10.1 (Build 14U593) * Image Source: /System/Library/Frameworks/Foundation.framework/Foundation * classdump-dyld is licensed under GPLv3, Copyright © 2013-201...
patrickpl/leitstand-commons
leitstand-commons/src/main/java/io/leitstand/commons/tx/package-info.java
/* * (c) RtBrick, Inc - All rights reserved, 2015 - 2019 */ /** * Contains utilities to work with container managed transactions. * <p> * The EJB specification defines the transaction boundaries for container managed transactions. * All operations of a <em>stateless session bean</em> are transactional by default,...
reabiliti/certification
app/controllers/welcome_controller.rb
<filename>app/controllers/welcome_controller.rb # frozen_string_literal: true # This controller for search and all proposals class WelcomeController < ApplicationController def index @proposals = FilterProposalsQuery.new(initial_scope: AllProposalsQuery.new.call, params: params).call @setting = Setting.first...
stnguyen90/buffalo-cli
cli/buffalo.go
<filename>cli/buffalo.go package cli import ( "os" "path/filepath" "sort" "github.com/gobuffalo/buffalo-cli/v2/cli/cmds" "github.com/gobuffalo/buffalo-cli/v2/cli/internal/clifix" "github.com/gobuffalo/buffalo-cli/v2/cli/internal/plugins/bzr" "github.com/gobuffalo/buffalo-cli/v2/cli/internal/plugins/fizz" "git...
BeginnerJay/JAVA_LAB
Doit/src/chapter9/UsingDefine.java
package chapter9; public class UsingDefine { public static void main(String[] args) { System.out.println(Define.GOOD_MORNING); System.out.printf("최솟값은 %d입니다.\n",Define.MIN); System.out.printf("최댓값은 %d입니다.\n",Define.MAX); System.out.printf("수학 과목 코드는 %d입니다.\n",Define.MATH); S...
zhpigh/KidsTC_Objective-C
KidsTC/KidsTC/Business/Main/Product/FlashBuy/ProductDetail/M/FlashBuyProductDetailData.h
<reponame>zhpigh/KidsTC_Objective-C<gh_stars>0 // // FlashBuyProductDetailData.h // KidsTC // // Created by 詹平 on 2017/1/22. // Copyright © 2017年 zhanping. All rights reserved. // #import <Foundation/Foundation.h> #import "FlashBuyProductDetailPriceConfig.h" #import "FlashBuyProductDetailPromotionLink.h" #import "...
shaunryan/PythonReference
Optimizing_Python_Code/Exercise Files/Ch06/06_03/Optimized/proc_pool.py
<filename>Optimizing_Python_Code/Exercise Files/Ch06/06_03/Optimized/proc_pool.py """Process pool example""" from concurrent.futures import ProcessPoolExecutor import bz2 def unpack(requests): """Unpack a list of requests compressed in bz2""" return [bz2.decompress(request) for request in requests] def unpa...
doubleDragon/Cycling
src/com/android/cycling/setting/SettingContentFragment.java
package com.android.cycling.setting; import com.android.cycling.R; import com.android.cycling.activities.UserEditorActivity; import com.android.cycling.data.ServerUser; import com.android.cycling.widget.HeaderLayout; import com.android.cycling.widget.RoundedImageView; import com.android.cycling.widget.HeaderLayout.Act...
dimitrijejankov/pdb
pdb/src/storage/source/LocalitySet.cc
/***************************************************************************** * * * Copyright 2018 Rice University * * * * ...
Autoafterdarkphx/payflow-gateway
java/src/paypal/payments/samples/dataobjects/basictransactions/DOSwipe.java
package paypal.payments.samples.dataobjects.basictransactions; import paypal.payflow.*; // This class uses the Payflow SDK Data Objects to do a simple Authorize transaction using Swipe Data. // The request is sent as a Data Object and the response received is also a Data Object. // Payflow Pro supports card-present t...
ExpediaGroup/apiary-extensions
apiary-metastore-events/kafka-metastore-events/kafka-metastore-integration-tests/src/test/java/com/expediagroup/apiary/extensions/events/metastore/kafka/messaging/KafkaApiaryMetastoreIntegrationTest.java
<reponame>ExpediaGroup/apiary-extensions /** * Copyright (C) 2018-2020 Expedia, 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 * ...
poisondog/poisondog.commons
src/main/java/poisondog/io/CopyTask.java
<reponame>poisondog/poisondog.commons /* * Copyright (C) 2014 <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 re...
mrdulin/react-apollo-graphql-starter-kit
stackoverflow/60730701/validator.js
const Joi = require('joi'); module.exports = { validateExternalId: (schema, name) => { return (req, res, next) => { const result = Joi.validate({ param: req.params[name] }, schema); if (result.error) { return res.status(400).send(result.error.details[0].message); } next(); }; ...
ruanlinjing/oneplatform
oneplatform-platform/src/main/java/com/oneplatform/system/controller/PermissionQueryController.java
/* * Copyright 2016-2018 www.jeesuite.com. * * 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 o...
hmrc/soft-drinks-industry-levy
test/uk/gov/hmrc/softdrinksindustrylevy/services/OverdueSubmissionsCheckerSpec.scala
/* * Copyright 2021 HM Revenue & Customs * * 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 a...
cheerfulwang/python-tutorial
24web/tornado_demo/09calc_demo.py
<reponame>cheerfulwang/python-tutorial # -*- coding: utf-8 -*- """ @author:XuMing(<EMAIL>) @description: """ import tornado.ioloop import tornado.web class FactorialService(object): def __init__(self): self.cache = {} def calc(self, n): if n in self.cache: return self.cache[n] ...
nodejayes/acts
spec/sockets/testsocket.js
module.exports = function (data) { this.emit('testsend', data); }
muminkoykiran/computervision-recipes
tests/unit/classification/test_classification_plot.py
# Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. import pytest import numpy as np from utils_cv.classification.plot import ( plot_roc_curve, plot_precision_recall_curve, plot_pr_roc_curves, plot_thresholds, ) from utils_cv.classification.model import hamming...
chgzm/minic
test/test_struct_6.c
<gh_stars>1-10 typedef struct Entry Entry; struct Entry { int a; int b; Entry* next; }; typedef struct Sample Sample; struct Sample { Entry** entries; }; int func(Sample* s) { int c = 0; for (int i = 0; i < 8; ++i) { if (s->entries[i] == 0) { break; } c += ...
gandhi56/swift
include/swift/AST/ModuleNameLookup.h
//===--- ModuleNameLookup.h - Name lookup within a module -------*- C++ -*-===// // // This source file is part of the Swift.org open source project // // Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors // Licensed under Apache License v2.0 with Runtime Library Exception // // See https://swift.org/L...
tlmrgvf/drtd
src/ui/ScopeDialog.hpp
/* BSD 2-Clause License Copyright (c) 2020, <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: 1. Redistributions of source code must retain the above copyright notice, this list of conditions a...
diamondap/exchange
network/s3_mock.go
<filename>network/s3_mock.go<gh_stars>1-10 package network import ( "fmt" "net/http" ) func getBasicHeaders() map[string]string { return map[string]string{ "x-amz-id-2": "ef8yU9AS1ed4OpIszj7UDNEHGran", "x-amz-request-id": "318BC8BC143432E5", "x-amz-version-id": "3HL4kqtJlcpXroDTDmjVBH40Nrjfkd", "Date...
seekloud/gypsy
client/src/main/scala/com/neo/sk/gypsy/common/AppSettings.scala
<filename>client/src/main/scala/com/neo/sk/gypsy/common/AppSettings.scala package com.neo.sk.gypsy.common import com.typesafe.config.ConfigFactory import org.slf4j.LoggerFactory /** * @author zhaoyin * 2018/10/28 3:29 PM */ object AppSettings { val log = LoggerFactory.getLogger(this.getClass) val config =...
jaemin2682/BAEKJOON_ONLINE_JUDGE
2292.cpp
#include <iostream> using namespace std; int main() { int n, res, num = 1; scanf("%d", &n); if (n == 1) res = 0; else { for (int i = 1; i < n; i++) { num = num + 6 * i; if (num >= n) { res = i; break; } } } printf("%d", res + 1); return 0; }
haileys/battlecars
deps/gwen/Samples/OpenGL/OpenGLSample.cpp
<reponame>haileys/battlecars<filename>deps/gwen/Samples/OpenGL/OpenGLSample.cpp<gh_stars>1-10 #define WIN32_LEAN_AND_MEAN #include <windows.h> #include "Gwen/Gwen.h" #include "Gwen/Skins/Simple.h" #include "Gwen/Skins/TexturedBase.h" #include "Gwen/UnitTest/UnitTest.h" #include "Gwen/Input/Windows.h" #ifdef USE_DEBU...
lzc-ios/OCR
OCRSource/include/IDCard/LFIDCardReader.h
// // LFIDCardReader.h // Linkface // // Copyright © 2017-2018 LINKFACE Corporation. All rights reserved. // #import <Foundation/Foundation.h> #import "LFCaptureReader.h" #import "LFIDCardMaskView.h" #import <OCR_SDK/OCR_SDK.h> @interface LFIDCardReader : LFCaptureReader // appID @property(nonatomic,copy)NSString...
openthos/oto_packages_apps_OtoPhotoManager
libs/mapsforge-0.8.0/mapsforge-core/src/org/mapsforge/core/model/Dimension.java
/* * Copyright 2010, 2011, 2012, 2013 mapsforge.org * * This program 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 3 of the License, or (at your option) any later version. * * Th...
E3SM-Project/iESM
models/lnd/clm/src/iac/giac/gcam/cvs/objects/util/database/source/output_helper.cpp
<gh_stars>1-10 /* * LEGAL NOTICE * This computer software was prepared by Battelle Memorial Institute, * hereinafter the Contractor, under Contract No. DE-AC05-76RL0 1830 * with the Department of Energy (DOE). NEITHER THE GOVERNMENT NOR THE * CONTRACTOR MAKES ANY WARRANTY, EXPRESS OR IMPLIED, OR ASSUMES ANY * LIA...
Slyvia2000/selfex
3_js/day03/08_elseif.js
//判断一个政治面貌 //var type='党员'; /*switch (type) { case '少先队员': console.log('此人为少先队员'); break; case '团员': console.log('此人为团员'); break; case '党员': console.log('此人为党员'); break; case '群众': console.log('此人为群众'); break; default: console.log('错误'); } /* var type='少先队员'; if(type=='党员'){ console.log('此人为党员'); }else if(t...
ITTECH10/dentist_app_client
src/components/EMPLOYEES/EditEmployeeDialog.js
import * as React from 'react'; import { useEmployeeContext } from './../../context/EmployeeContext' import { useApp } from './../../context/AppContext' import axios from 'axios'; import Button from '@mui/material/Button'; import TextField from '@mui/material/TextField'; import Box from '@mui/material/Box'; import Dial...
dbrcina/OPJJ-FER-2018-19
Homeworks/hw08-0036506587/src/main/java/hr/fer/zemris/java/hw06/shell/commands/HelpShellCommand.java
<filename>Homeworks/hw08-0036506587/src/main/java/hr/fer/zemris/java/hw06/shell/commands/HelpShellCommand.java package hr.fer.zemris.java.hw06.shell.commands; import java.util.ArrayList; import java.util.List; import java.util.SortedMap; import hr.fer.zemris.java.hw06.shell.Environment; import hr.fer.zemris.java.hw06...
CareerSocius/resumebuilder
src/components/builder/templates/blocks/Languages/LanguagesD.js
import React, { memo, useContext } from 'react'; import PageContext from '../../../../../contexts/PageContext'; import { safetyCheck } from '../../../../../utils'; import { LeftHeading } from '../../containers/HeadingModifiers'; const LanguageItem = (x) => ( <div key={x.id} className="flex flex-col mb-3"> <h6 cl...
mohayonao/CoffeeCollider
src/cc/server/buffer.js
define(function(require, exports, module) { "use strict"; var cc = require("./cc"); var Buffer = (function() { function Buffer(world, bufnum, frames, channels) { this.world = world; this.bufnum = bufnum; this.frames = frames; this.channels = channels; this.samp...
bot-motion/gap_sdk
tools/nntool/graph/manipulations/adjust_base.py
# Copyright (C) 2020 GreenWaves Technologies, SAS # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as # published by the Free Software Foundation, either version 3 of the # License, or (at your option) any later version. # This progr...
cisco-ie/cisco-proto
codegen/go/xr/62x/cisco_ios_xr_ipv4_bgp_oper/bgp/instances/instance/instance_active/default_vrf/afs/af/global_af_process_info/bgp_global_process_info_af_bag.pb.go
/* Copyright 2019 Cisco Systems 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, software d...
ssyyzs/JavaMesh
javamesh-samples/javamesh-route/gray-dubbo-2.7.x-plugin/src/main/java/com/huawei/gray/dubbo/invoker/ApacheDubboInvokerEnhanceDefinition.java
<reponame>ssyyzs/JavaMesh /* * Copyright (c) Huawei Technologies Co., Ltd. 2020-2021. All rights reserved. */ package com.huawei.gray.dubbo.invoker; import com.huawei.apm.core.agent.definition.EnhanceDefinition; import com.huawei.apm.core.agent.definition.MethodInterceptPoint; import com.huawei.apm.core.agent.matc...
baijianruoliorz/algorithm
src/leetCode/day3/T763.java
package leetCode.day3; import java.util.ArrayList; import java.util.List; /** * @author liqiqi_tql * @date 2020/12/8 -11:34 */ public class T763 { public List<Integer> partitionLabels(String S){ int[] lastIndexsOfChar=new int[26]; for (int i=0;i<S.length();i++){ lastIndexsOfChar[cha...
danny2604/ImmersivePortalsTweaked
src/main/java/qouteall/imm_ptl/peripheral/ducks/IECreateWorldScreen.java
package qouteall.imm_ptl.peripheral.ducks; import net.minecraft.server.packs.repository.PackRepository; import net.minecraft.world.level.DataPackConfig; public interface IECreateWorldScreen { PackRepository portal_getResourcePackManager(); DataPackConfig portal_getDataPackSettings(); }
barrhaim/jruby
test/mri/excludes/TestSprintfComb.rb
<filename>test/mri/excludes/TestSprintfComb.rb exclude :test_format_float, "needs investigation" exclude :test_format_integer, "needs investigation"
ruppysuppy/Daily-Coding-Problem-Solutions
Solutions/128.py
""" Problem: All the disks start off on the first rod in a stack. They are ordered by size, with the largest disk on the bottom and the smallest one at the top. The goal of this puzzle is to move all the disks from the first rod to the last rod while following these rules: You can only move one disk at a time. A mov...
chris-c-thomas/website
public/js/p3/widget/viewer/PhylogeneticTreeGene.js
<reponame>chris-c-thomas/website define([ 'dojo/_base/declare', 'dojo/_base/lang', 'dojo/dom-construct', 'dojo/request', 'dojo/when', 'dijit/layout/ContentPane', './Base', '../../util/PathJoin', '../PhylogenyGene', '../../WorkspaceManager', 'dojo/request' ], function ( declare, lang, domConstruct, request...
WaiHChan/android-appt
apptbook-web/src/main/java/edu/pdx/cs410J/chanwai/PrettyPrinter.java
package edu.pdx.cs410J.chanwai; import edu.pdx.cs410J.AppointmentBookDumper; import groovyjarjarantlr4.v4.runtime.atn.PredicateEvalInfo; import java.io.IOException; import java.io.PrintWriter; import java.io.Writer; import java.util.ArrayList; import java.util.Date; /** * This class represent a writer to a file in ...
SaraChandler/goenv-hack
main.go
<gh_stars>0 package main import ( "fmt" "os" "github.com/SaraChandler/goenv-hack/cmd" "github.com/mitchellh/cli" ) var version = "v0.0.0" func main() { c := cli.NewCLI("goenv-hack", version) c.HelpWriter = os.Stdout c.ErrorWriter = os.Stderr c.Args = os.Args[1:] c.Commands = map[string]cli.CommandFactory...
zefryuuko/wads-final-project
frontend/src/components/staff/courses/CourseGroups.js
import React from 'react' import {Link, Redirect} from 'react-router-dom'; // Services import AuthService from '../../../services/AuthService'; import CourseService from '../../../services/CourseService'; // UI Elements import ContentWrapper from '../../ui-elements/ContentWrapper'; import PageBreadcrumb from '../../u...
atlassian-forks/client-go
v1alpha1/model_api_vulnerability_type.go
<gh_stars>1-10 /* * Grafeas API * * An API to insert and retrieve annotations on cloud artifacts. * * API version: v1alpha1 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) */ package grafeas // VulnerabilityType provides metadata about a security vulnerability. type ApiVuln...
iacsa/adventofcode-solutions
2015/05/solution.rb
<filename>2015/05/solution.rb<gh_stars>0 #!/usr/bin/env ruby # frozen_string_literal: true # Target Version: 2.7.4 # Advent of Code challenge for 2015-12-05 Parts 1 & 2 input_file = 'input.txt' def nice1?(string) at_least_3_vowels?(string) && double_letter?(string) && no_naughty_substrings?(string) end ...
putnampp/clotho
include/clotho/genetics/allele_distribution_variable.hpp
// Copyright 2015 <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...
somen440/hossi
hossi-server/src/main/java/org/somen440/hossi/di/repository/RepositoryInjection.java
package org.somen440.hossi.di.repository; import javax.inject.Singleton; @Singleton public class RepositoryInjection { private static RepositoryType type = RepositoryType.FIRESTORE; public static void useInmemory() { type = RepositoryType.INMEMORY; } public static void useMock() { type = Repository...
Lucas-HMSC/ecommerce-MERN
dashboard/src/app/containers/Configuracoes/index.js
import React, { Component } from 'react'; import Titulo from '../../components/Texto/Titulo'; import ButtonSimples from '../../components/Button/Simples'; import { TextoDados } from '../../components/Texto/Dados'; import InputValor from '../../components/Inputs/InputValor'; import ListaDinamicaSimples from '../../comp...
mc190diancom/taxi_inspect
qh_inspect/src/main/java/com/miu360/taxi_check/model/WaterTransptQ.java
package com.miu360.taxi_check.model; public class WaterTransptQ { private String hylb; private String compName; public String getHylb() { return hylb; } public void setHylb(String hylb) { this.hylb = hylb; } public String getCompName() { return compName; } public void setCompName(String c...
thomjoy/turftest
src/jspm_packages/npm/corslite@0.0.6/test.js
<filename>src/jspm_packages/npm/corslite@0.0.6/test.js /* */ var test = require("tape"), xhr = require("./corslite"); test('200', function(t) { t.plan(2); xhr('/200', function(err, resp) { t.equal(err, null); t.equal(resp.responseText, '200'); }, true); }); test('404', function(t) { t.plan(3); xh...
mihaelamj/XcodeTemplates
Templates/Project Templates/macOS/Other/Screen Saver.xctemplate/___PACKAGENAMEASIDENTIFIER___View.h
//___FILEHEADER___ #import <ScreenSaver/ScreenSaver.h> @interface ___PACKAGENAMEASIDENTIFIER___View : ScreenSaverView @end
YIHONG-JIN/Solution-for-C-Primer-Plus-the-6th-
Chapter 3/Practice/7.c
#include <stdio.h> #define Inch_To_CM 2.54 int main(void) { float inch, cm; printf("Enter the inch of your height:\n"); scanf("%f", &inch); cm = inch*Inch_To_CM; printf("Hi, you are %.2f inch, or %.2f cm heigh\n", inch, cm); return 0; }
Acidburn0zzz/nunuStudio
source/core/postprocessing/pass/DotScreenPass.js
"use strict"; /** * DotScreen pass generates a poster like effect on top of the scene. * * @class DotScreenPass * @constructor * @module Postprocessing * @author alteredq / http://alteredqualia.com/ * @param {Number} center Dot rotation center. * @param {Number} angle Dot rotation angle. * @param {Number} s...
ebi-uniprot/uniprot-store
integration-test/src/main/java/org/uniprot/store/indexer/search/DocFieldTransformer.java
<gh_stars>1-10 package org.uniprot.store.indexer.search; import java.lang.reflect.Field; import java.util.function.Consumer; import org.uniprot.store.search.document.Document; /** * Required to capture and modify the {@code value} of Solr {@code @Field("value")} annotations. * This is necessary for testing purpose...
jsonnull/aleamancer
integration_tests/pages/__tests__/index.tests.js
<gh_stars>1-10 // @flow import React from 'react' import { mount } from 'enzyme' import App, { setupStore } from '../../appContainer' import Pages from 'frontend/routes' describe('App container', () => { let store, wrapper beforeEach(() => { store = setupStore() wrapper = mount( <App store={store}>...
bhardwajpandya/Java-programming
Tutorials/Tutorial 05/Tut05Ex01Q01/Main.java
<reponame>bhardwajpandya/Java-programming // Write a simple program that calculates the square root of a number (Math.sqrt()). // Identify the exception that can occur and write code to handle this using a try catch block. import java.util.InputMismatchException; // Import InputMismatchException import java.util.Scan...
btrekkie/graphql
src/graphql/scalar_descriptors/strict/__init__.py
"""Contains strict GraphQlScalarDescriptors for the built-in scalar types. Contains strictly validating GraphQlScalarDescriptors for the built-in scalar types. By "strictly validating", we mean that Python methods and attributes that return field values of scalar types must return values strictly of those scalar type...
digikid/volga-coffee-fest
src/javascripts/import/modules.js
window.jQuery = window.$ = require('jquery'); require('js.device.detector/dist/jquery.device.detector.js'); require('intersection-observer'); require('@fancyapps/fancybox'); // require('jquery-mask-plugin'); // require('@popperjs/core/dist/umd/popper.min.js'); // require('air-datepicker'); const Swiper = require('swi...
senpl/quack
dal/src/main/java/com/testquack/dal/CommentRepositoryCustom.java
package com.testquack.dal; public interface CommentRepositoryCustom { }