repo_name
stringlengths
6
101
path
stringlengths
4
300
text
stringlengths
7
1.31M
plankes-projects/BaseWar
client/Classes/View/Layers/StartMenuLayer/StartMenuLayer.cpp
<reponame>plankes-projects/BaseWar #include "StartMenuLayer.h" using namespace cocos2d; #include "../../../Model/Model.h" #include "../../../SceneControl.h" #include "../../../Constants.h" #include "../../../Tools/SupportHandler.h" #include "../../CCConfirmView.h" #include "../../CCAlertView.h" #include "../../../Tool...
romera-github/graph500
cpu_2d/compression/simdplus/conf.h
/** Copyright (C) powturbo 2013-2015 GPL v2 License This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. ...
weiss/original-bsd
local/ditroff/ditroff.old.okeeffe/gremlin.aed/gremlin/grem2.h
<reponame>weiss/original-bsd /* @(#)grem2.h 1.2 04/18/83 * This is an include file for database macros. */ #define DBNextElt(elt) elt->nextelt #define DBNextofSet(elt) elt->setnext #define DBNullelt(elt) ( elt == NULL ) #define Nullpoint(pt) ( pt->x == nullpt ) #define PTNextPoint(pt) pt->nextpt
kvery/k-mall
mall-admin/mall-product/src/main/java/com/kvery/mall/admin/product/entity/CommentReplay.java
<filename>mall-admin/mall-product/src/main/java/com/kvery/mall/admin/product/entity/CommentReplay.java package com.kvery.mall.admin.product.entity; import com.baomidou.mybatisplus.annotation.IdType; import com.baomidou.mybatisplus.annotation.TableId; import com.baomidou.mybatisplus.annotation.TableName; import io.swag...
vboitsov/mobapp
app/src/main/java/ua/org/rshu/fmi/mobapp/view/fragment/entitieslist/groupslist/core/impl/GroupsListPresenterImpl.java
<filename>app/src/main/java/ua/org/rshu/fmi/mobapp/view/fragment/entitieslist/groupslist/core/impl/GroupsListPresenterImpl.java package ua.org.rshu.fmi.mobapp.view.fragment.entitieslist.groupslist.core.impl; import java.io.IOException; import java.util.ArrayList; import java.util.List; import ua.org.rshu.fmi.mobapp.p...
rbock/hana
include/boost/hana/monoid.hpp
/*! @file Defines `boost::hana::Monoid`. @copyright <NAME> 2014 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_MONOID_HPP #define BOOST_HANA_MONOID_HPP #include <boost/hana/monoid/laws.hpp> #include <boo...
pussbb/pymaillib
pymaillib/imap/imap4.py
# -*- coding: utf-8 -*- """ Imap4 ~~~~~~~~~~~~~~~~ Imap4 helper client library :copyright: (c) 2017 WTFPL. :license: WTFPL, see LICENSE for more details. """ import imaplib import socket import collections from datetime import datetime from typing import Any from .exceptions.base import ImapCli...
Yulyalu/yes-cart
core-modules/core-module-reports/src/main/java/org/yes/cart/report/impl/ReportObjectStreamFactoryImpl.java
<reponame>Yulyalu/yes-cart /* * Copyright 2009 Inspire-Software.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 * *...
xiaohaijin/RHIC-STAR
StRoot/StJetMaker/towers/StjFMSTree.cxx
// $Id: StjFMSTree.cxx,v 1.1 2017/05/22 19:36:06 zchang Exp $ #include "StjFMSTree.h" #include "StjTowerEnergyListReader.h" ClassImp(StjFMSTree) StjTowerEnergyList StjFMSTree::getEnergyList() { return _reader->getEnergyList(); }
lamerexter/universel
src/test/java/org/orthodox/universel/exec/types/script/declarations/field/nonstatic/fin/FinalDoubleFieldInitialisationTest.java
<reponame>lamerexter/universel /* * MIT Licence: * * Copyright (c) 2020 Orthodox Engineering Ltd * * 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 * includin...
foreignfilm/advent-of-code-ruby
2018/day-08/day-08-part-1.rb
#!/usr/bin/env ruby file_path = File.expand_path("../day-08-input.txt", __FILE__) input = File.read(file_path) numbers = input.split.map(&:to_i) def sum(numbers) child_nodes = numbers.shift meta_entries = numbers.shift sum = 0 child_nodes.times do sum += sum(numbers) end meta_entries.times do ...
tedhyu/thermo
tests/test_joback.py
<filename>tests/test_joback.py # -*- coding: utf-8 -*- '''Chemical Engineering Design Library (ChEDL). Utilities for process modeling. Copyright (C) 2017, <NAME> <<EMAIL>> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), ...
winterroberts/AOS
src/net/aionstudios/api/error/ErrorManager.java
<gh_stars>0 package net.aionstudios.api.error; import java.util.ArrayList; import java.util.List; import net.aionstudios.api.context.Context; import net.aionstudios.api.context.ContextHandler; import net.aionstudios.api.context.ContextManager; import net.aionstudios.api.cron.CronDateTime; import net.aionstud...
maksim-khiuttiulia/contrib
activity/gpio-output/activity.go
package gpio_output import ( "github.com/project-flogo/core/activity" "github.com/project-flogo/core/data/coerce" "github.com/project-flogo/core/support/log" "github.com/stianeikeland/go-rpio/v4" ) const ( actionTurnOn = "TurnOn" actionTurnOff = "TurnOff" actionToggle = "Toggle" ) const ( jsonGpioPin = "gp...
smagill/opensphere-desktop
open-sphere-base/core/src/main/java/io/opensphere/core/util/collections/AbstractProxyMap.java
package io.opensphere.core.util.collections; import java.util.Collection; import java.util.Map; import java.util.Set; /** * A map implementation that proxies map calls through the map provided by the * subclass. * * @param <K> The type of the keys in the map. * @param <V> The type of the values in the...
uktrade/jupyterhub-data-auth-admin
dataworkspace/dataworkspace/apps/datasets/migrations/0022_joint_datasets_linked_field_name_change.py
<reponame>uktrade/jupyterhub-data-auth-admin<filename>dataworkspace/dataworkspace/apps/datasets/migrations/0022_joint_datasets_linked_field_name_change.py # Generated by Django 2.2.4 on 2019-11-15 12:29 from django.db import migrations def update_joint_dataset_version_number(apps, schema_editor): ReferenceDatase...
npocmaka/Windows-Server-2003
termsrv/license/tlserver/server/wkstore.cpp
//+-------------------------------------------------------------------------- // // Copyright (c) 1997-1999 Microsoft Corporation // // File: wkstore.cpp // // Contents: Persistent job store routine. // // History: // //-----------------------------------------------------------------------...
alcidesrh/tour-agency
vue-app/store/modules/destination/index.js
import list from './list'; import create from './create'; import del from './delete'; import update from './update'; export default { namespaced: true, modules: { list, create, del, update } }
PuercoPop/maiko
src/byteswap.c
/* $Id: byteswap.c,v 1.5 2002/01/02 08:15:16 sybalsky Exp $ (C) Copyright Venue, All Rights Reserved */ static char *id = "$Id: byteswap.c,v 1.5 2002/01/02 08:15:16 sybalsky Exp $ Copyright (C) Venue"; /************************************************************************/ /* */ /* (C) Copyright 1989-95 Ve...
ahsai001/zlcore
zlcore/src/main/java/com/zaitunlabs/zlcore/views/ASShiftableImageView.java
<reponame>ahsai001/zlcore package com.zaitunlabs.zlcore.views; import android.graphics.Rect; import android.view.ViewGroup; import android.widget.ImageView.ScaleType; public class ASShiftableImageView { CanvasSection section = null; ASImageView iv = null; private boolean isSticky = false; private boolean isLocked...
EdwardPrentice/wrongo
jstests/repl/repl4.js
<reponame>EdwardPrentice/wrongo // Test replication 'only' mode soonCount = function(db, coll, count) { assert.soon(function() { return s.getDB(db)[coll].find().count() == count; }); }; doTest = function() { rt = new ReplTest("repl4tests"); m = rt.start(true); s = rt.start(false, {only: ...
CaptEmulation/modeldb
protos/gen/go/protos/public/uac/Workspace.pb.go
// Code generated by protoc-gen-go. DO NOT EDIT. // source: uac/Workspace.proto package uac import ( context "context" fmt "fmt" proto "github.com/golang/protobuf/proto" _ "google.golang.org/genproto/googleapis/api/annotations" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.g...
G-Lem/spring-cloud-stream
spring-cloud-stream-schema/src/main/java/org/springframework/cloud/stream/schema/SchemaReference.java
/* * Copyright 2016-2019 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by a...
Devil0305/JSBankApp
JS-api/src/main/java/com/pukanghealth/config/WebLogAspect.java
<reponame>Devil0305/JSBankApp package com.pukanghealth.config; import org.aspectj.lang.JoinPoint; import org.aspectj.lang.annotation.Aspect; import org.aspectj.lang.annotation.Before; import org.aspectj.lang.annotation.Pointcut; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.stereo...
pradyumnasagar/jvarkit
src/test/java/com/github/lindenb/jvarkit/tools/biostar/Biostar77288Test.java
<gh_stars>1-10 package com.github.lindenb.jvarkit.tools.biostar; import java.io.File; import java.io.IOException; import org.testng.Assert; import org.testng.annotations.DataProvider; import org.testng.annotations.Test; import com.github.lindenb.jvarkit.tools.tests.TestUtils; public class Biostar77288Test extends T...
juntoscomvc/juntos.com.vc
app/services/recurring_contribution/subscriptions/create.rb
<gh_stars>0 class RecurringContribution::Subscriptions::Create def initialize(juntos_subscription) @juntos_subscription = juntos_subscription end def self.process(juntos_subscription) new(juntos_subscription).process end def process pagarme_response = create_subscription_on_pagarme update_ju...
SariskaIO/sariska-media-transport
dist/esm/service/RTC/MediaType.js
<filename>dist/esm/service/RTC/MediaType.js export var MediaType; (function (MediaType) { /** * The audio type. */ MediaType["AUDIO"] = "audio"; /** * The presenter type. */ MediaType["PRESENTER"] = "presenter"; /** * The video type. */ MediaType["VIDEO"] = "video";...
alchemy315/NoPFS
torch-test/mpich-3.4.3/modules/yaksa/src/backend/cuda/hooks/yaksuri_cuda_init_hooks.c
/* * Copyright (C) by Argonne National Laboratory * See COPYRIGHT in top-level directory */ #include "yaksi.h" #include "yaksuri_cudai.h" #include <assert.h> #include <string.h> #include <cuda.h> #include <cuda_runtime_api.h> static void *cuda_host_malloc(uintptr_t size) { void *ptr = NULL; cudaError_...
wbprice/trails-email-notifications-signup
assets/components/environments/Home.js
<gh_stars>0 import React, { PropTypes, Component } from 'react' import SubscribeEmailUpdates from '../ecosystems/SubscribeEmailUpdates' class Home extends Component { render() { return ( <div> <SubscribeEmailUpdates /> </div> ) } } export default Home
connorwyatt/AxonFramework
eventsourcing/src/main/java/org/axonframework/eventsourcing/conflictresolution/ContextAwareConflictExceptionSupplier.java
<filename>eventsourcing/src/main/java/org/axonframework/eventsourcing/conflictresolution/ContextAwareConflictExceptionSupplier.java /* * Copyright (c) 2010-2018. Axon Framework * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * Y...
notonthehighstreet/toga
tests/e2e/components/test-redux/components/ProductListItem/ProductListItem.spec.js
<reponame>notonthehighstreet/toga import helper from '../../../../../../tests/helper'; import React from 'react'; import {shallow} from 'enzyme'; import Product from './ProductListItem'; import createFakeProduct from '../../spec-helpers/createFakeProduct'; import createSanitisedProduct from '../../spec-helpers/createSa...
DotMail/DotMail
Mail/MTTokenField/_MTTokenTextView.h
// // MTTokenTextView.h // TokenField // // Created by smorr on 11-11-29. // Copyright (c) 2011 __MyCompanyName__. All rights reserved. // #import <AppKit/AppKit.h> @interface _MTTokenTextView : NSTextView -(void)insertTextWithoutCompletion:(id)aString; -(NSString*)completionStem; -(NSArray *)getCompletionsForSte...
Tech-XCorp/visit-deps
windowsbuild/MSVC2017/Qwt/6.1.2/doc/html/search/PaxHeaders.13080/functions_78.js
30 mtime=1418307194.959186449 30 atime=1418307194.959186449 30 ctime=1418307255.949184647
styu/MIT-Mobile-for-Android
src/edu/mit/mitmobile2/DividerView.java
<reponame>styu/MIT-Mobile-for-Android<filename>src/edu/mit/mitmobile2/DividerView.java package edu.mit.mitmobile2; import android.content.Context; import android.util.AttributeSet; import android.view.View; import android.view.ViewGroup.LayoutParams; public class DividerView extends View { public DividerView(Contex...
i37oC/java-note
design-mode/src/main/java/xyy/java/note/dm/strategy/RedHetDuck.java
package xyy.java.note.dm.strategy; import xyy.java.note.dm.strategy.impl.FlyWithWin; /** * @author xyy * @version 1.0 2017/3/9. * @since 1.0 */ public class RedHetDuck extends Duck { public RedHetDuck() { super(); super.setStrategy(new FlyWithWin()); } @Override public void displ...
ScalablyTyped/SlinkyTyped
i/ipfs-core/src/main/scala/typingsSlinky/ipfsCore/mod/multihash.scala
<reponame>ScalablyTyped/SlinkyTyped package typingsSlinky.ipfsCore.mod import org.scalablytyped.runtime.TopLevel import scala.scalajs.js import scala.scalajs.js.`|` import scala.scalajs.js.annotation.{JSGlobalScope, JSGlobal, JSImport, JSName, JSBracketAccess} @JSImport("ipfs-core/dist/src", "multihash") @js.native o...
oweson/ruoyi
ruoyi-system/src/main/java/com/ruoyi/system/mapper/FireProjectMapper.java
package com.ruoyi.system.mapper; import java.util.List; import com.ruoyi.system.domain.FireProject; /** * 拥有的项目能力Mapper接口 * * @author ruoyi * @date 2020-06-03 */ public interface FireProjectMapper { /** * 查询拥有的项目能力 * * @param id 拥有的项目能力ID * @return 拥有的项目能力 */ public FireProjec...
KimJeongYeon/jack2_android
jack/common/JackInternalClient.h
<filename>jack/common/JackInternalClient.h<gh_stars>10-100 /* Copyright (C) 2001 <NAME> Copyright (C) 2004-2008 Grame This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, ...
AntoniosKalattas/Ping_rep
gui/node_modules/core-js/es/function/index.js
<filename>gui/node_modules/core-js/es/function/index.js version https://git-lfs.github.com/spec/v1 oid sha256:80f97e3afff46e837108f62c2c98d413d0364b8d594e22d400c783af1274119f size 214
bytectl/gopkg
crypto/gconfig/gconfig.go
package gconfig import ( "encoding/base64" "fmt" "strings" "github.com/gogf/gf/crypto/gaes" ) const ( EncPrefix = "enc(" EncSuffix = ")" ) func DecryptConfigMap(config map[string]interface{}, key []byte) { for k, value := range config { switch v1 := value.(type) { case string: source, err := DecryptSt...
hottredpen/base-think
script/module/tasktoPage.js
<filename>script/module/tasktoPage.js require.config({ baseUrl: "/script/module",//用绝对位置 shim: { 'uploadify' : ['jquery'], 'chat' : ['jquery'], 'kindeditor': ['jquery'] }, paths: { 'jquery' : "../../static/cpk/public/js/jquery", 'uploadify' ...
rueyaa332266/testcafe
test/server/data/test-suites/selector-prev-sibling-incorrect-arg-type/testfile.js
<filename>test/server/data/test-suites/selector-prev-sibling-incorrect-arg-type/testfile.js import { Selector } from 'testcafe'; fixture `Test`; Selector('span').prevSibling(); Selector('span').prevSibling({}); test('yo', () => { });
nastusha-merry/ossmoss-hasher-database
test-data/095 Кратчайшая суперстрока/(golovan)(2013-11-07_22:27:50)(FAILED_TESTS)(NOT_PLAG).c
<reponame>nastusha-merry/ossmoss-hasher-database #include <stdio.h> #include <string.h> #include <stdlib.h> int maxcount, maxlen; void Permut(char **s , unsigned short n) { unsigned short k[n],i; for (i=0; i<n; i++) k[i]=-1; PRec(s ,1023, n, n, k, 0, 0); } void PRec(char **s, unsigned short Q, unsigned...
dengjumingdream/study_base
src/main/java/com/zhenyue/techcenter/mockserver/gm/controller/RechargeController.java
<reponame>dengjumingdream/study_base<filename>src/main/java/com/zhenyue/techcenter/mockserver/gm/controller/RechargeController.java package com.zhenyue.techcenter.mockserver.gm.controller; import com.alibaba.fastjson.JSON; import com.alibaba.fastjson.JSONArray; import com.alibaba.fastjson.JSONObject; import com.zheny...
nuggetwheat/study
src/cc/Books/ElementsOfProgrammingInterviews/reference/ch19.cpp
#include "ch19.hpp" #include <algorithm> #include <cassert> #include <iostream> #include <map> #include <queue> #include <random> #include <stack> #include <stdexcept> #include <utility> #include <vector> extern "C" { #include <math.h> } #include <Common/Graph.hpp> using study::Graph; using study::EdgeType; names...
ZhangHanDong/ansuz
vendor/plugins/ansuz_scrollable_content/init.rb
Ansuz::PluginManagerInstance.register_plugin(Ansuz::JAdams::ScrollableContent)
ToeEngine/toe-engine
toe-renderer/src/main/java/br/toe/engine/platform/input/GLFWInputMapper.java
package br.toe.engine.platform.input; import br.toe.framework.cdi.annotation.*; import static org.lwjgl.glfw.GLFW.*; @Singleton public final class GLFWInputMapper implements InputMapper { public InputMouse inputMouse(int keycode) { return switch (keycode) { case GLFW_MOUSE_BUTTON_LEFT -> Inp...
pltxtra/kngtz
core/src/main/java/com/holidaystudios/kngt/tools/RandomUtils.java
<gh_stars>1-10 package com.holidaystudios.kngt.tools; import java.util.Random; /** * Created by tedbjorling on 2014-02-20. */ public class RandomUtils { private static Random generator = new Random(); private static String seed = null; public static void setSeed(final String seed) { RandomUti...
JonZhang3/flume-helper
view/src/flume-configs/sinks/null.js
export default { batchSize: { type: Number, default: 100, description: '' } }
wanxiang-blockchain/2021Wanxiang-Blockchain-Hackathon-Filscan
coinmobile/packages/rankingPool/index.js
<reponame>wanxiang-blockchain/2021Wanxiang-Blockchain-Hackathon-Filscan import RankingPool from "./src/index" RankingPool.install = function(Vue) { Vue.component(RankingPool.name, RankingPool) } export default RankingPool
pankaj4red/greek_house
resources/assets/v3/js/custom/number_format.js
window.number_format = function (number, decimals, dec_point, thousands_sep) { var units = number.toString().split("."); var decimal = '00'; if (units.length > 1) { decimal = units[1]; units = units[0]; } else { decimal = '00'; units = units[0]; } if (decimal.len...
tommo/gii
lib/gii/qt/controls/PropertyEditor/__init__.py
##----------------------------------------------------------------## from PropertyEditor import \ PropertyEditor, FieldEditor, FieldEditorFactory, registerSimpleFieldEditorFactory, registerFieldEditorFactory ##----------------------------------------------------------------## from CommonFieldEditors import \ Str...
QuocAnh90/Uintah_Aalto
CCA/Components/Models/MultiMatlExchange/ExchangeModel.h
<reponame>QuocAnh90/Uintah_Aalto /* * The MIT License * * Copyright (c) 1997-2019 The University of Utah * * 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, includin...
sourac/Algorithms-and-Data-Structures
10 Sorting/9 2Sum.java
public class Solution { public boolean isSum(int[] a, int k) { Arrays.sort(a); int n = a.length; int low = 0, high = n-1; while(low<high){ int sum = a[low] + a[high]; if(sum==k) return true; else if(sum<k) low++; else high--; } return false; } }
zhuyongyong/crosswalk-test-suite
webapi/tct-xmlhttprequest-w3c-tests/xmlhttprequest/w3c/xmlhttprequest-timeout-overrides.js
<reponame>zhuyongyong/crosswalk-test-suite if (this.document === undefined) importScripts("xmlhttprequest-timeout.js"); /* Sets up three requests to a resource that will take 0.6 seconds to load: 1) timeout first set to 1000ms, after 400ms timeout is set to 0, asserts load fires 2) timeout first set to 1000ms, after ...
fgirse/commodore3
node_modules/micromark-extension-math/dev/lib/math-flow.js
/** * @typedef {import('micromark-util-types').Construct} Construct * @typedef {import('micromark-util-types').Tokenizer} Tokenizer * @typedef {import('micromark-util-types').State} State */ import {ok as assert} from 'uvu/assert' import {factorySpace} from 'micromark-factory-space' import {markdownLineEnding} fro...
YgorCastor/opentelemetry-java-instrumentation
instrumentation/play/play-2.6/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/play/v2_6/PlayTracer.java
<filename>instrumentation/play/play-2.6/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/play/v2_6/PlayTracer.java /* * Copyright The OpenTelemetry Authors * SPDX-License-Identifier: Apache-2.0 */ package io.opentelemetry.javaagent.instrumentation.play.v2_6; import io.opentelemetry.api.trace.Span...
JayDi85/intellij-community
java/java-tests/testSrc/com/intellij/java/psi/impl/cache/impl/IdCacheTest.java
// Copyright 2000-2019 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file. package com.intellij.java.psi.impl.cache.impl; import com.intellij.JavaTestUtil; import com.intellij.codeInsight.CodeInsightTestCase; import com.intellij.ide.todo.TodoConfigurati...
smeyffret/SCARS
Util/src/test/scala/fr/cnrs/liris/scars/math/ProbabilityUniformTest.scala
package fr.cnrs.liris.scars.math import org.scalatest.FunSuite import org.scalatest.matchers.ShouldMatchers import org.junit.runner.RunWith import org.scalatest.junit.JUnitRunner /** * @author <NAME> * @version 0.0.1 * @since scala 2.8 * Date: 9 déc. 2010 * Time: 12:32:04 */ @RunWith(classOf[JUnitRunner]) c...
croconaut/wifon
app/src/main/java/com/croconaut/ratemebuddy/ui/preferences/MyPreferenceCategory.java
<filename>app/src/main/java/com/croconaut/ratemebuddy/ui/preferences/MyPreferenceCategory.java<gh_stars>0 package com.croconaut.ratemebuddy.ui.preferences; import android.content.Context; import android.content.res.Resources; import android.preference.PreferenceCategory; import android.util.AttributeSet; import androi...
rpau/java-symbol-solver
java-symbol-solver-testing/src/test/resources/javaparser_new_src/javaparser-core/com/github/javaparser/ast/body/VariableDeclarator.java
/* * Copyright (C) 2007-2010 <NAME>. * Copyright (C) 2011, 2013-2016 The JavaParser Team. * * This file is part of JavaParser. * * JavaParser can be used either under the terms of * a) the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or ...
coolwangfei/marss-riscv
src/riscvsim/riscv_sim_macros.h
<reponame>coolwangfei/marss-riscv<gh_stars>1-10 /** * Global typedefs and macros used by MARSS-RISCV * * Copyright (c) 2016-2017 <NAME> * * MARSS-RISCV : Micro-Architectural System Simulator for RISC-V * * Copyright (c) 2017-2019 <NAME> {<EMAIL>} * State University of New York at Binghamton * * Copyright (c) ...
DrWolf-OSS/force
force-ejb/ejbModule/it/drwolf/slot/alfresco/custom/model/SlotModel.java
<filename>force-ejb/ejbModule/it/drwolf/slot/alfresco/custom/model/SlotModel.java package it.drwolf.slot.alfresco.custom.model; import java.util.List; import org.simpleframework.xml.Attribute; import org.simpleframework.xml.Element; import org.simpleframework.xml.ElementList; import org.simpleframework.xml.Namespace;...
sycle/sycle-gateway
server/config/middleware.js
module.exports = { "initial:before": { "expressx#logger": { "enabled": true, "params": "combined" }, "connect-powered-by": { "params": "sycle-gateway" }, "cors": { }, "strong-express-metrics": { } }, "initial": { "compression": { "params": { "thr...
idvoretskyi/trickster
pkg/proxy/headers/forwarding.go
/* * Copyright 2018 Comcast Cable Communications Management, LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless require...
Neroho/Test
src/digitalDigest/RSA.java
package digitalDigest; import java.security.KeyFactory; import java.security.KeyPair; import java.security.KeyPairGenerator; import java.security.NoSuchAlgorithmException; import java.security.PrivateKey; import java.security.PublicKey; import java.security.Signature; import java.security.interfaces.RSAPrivateKey; imp...
Teoan/TClass
tclassserver/tclass-user/tclass-user-server-core/src/main/java/com/teoan/tclass/user/mapper/PositionMapper.java
<filename>tclassserver/tclass-user/tclass-user-server-core/src/main/java/com/teoan/tclass/user/mapper/PositionMapper.java package com.teoan.tclass.user.mapper; import com.baomidou.mybatisplus.core.mapper.BaseMapper; import com.teoan.tclass.user.entity.Position; /** * (Position)表数据库访问层 * * @author Teoan * @since 2...
anmolnar/cloudbreak
core-api/src/main/java/com/sequenceiq/cloudbreak/api/endpoint/v4/connector/responses/PlatformIpPoolsV4Response.java
package com.sequenceiq.cloudbreak.api.endpoint.v4.connector.responses; import java.util.HashMap; import java.util.Map; import java.util.Set; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.sequenceiq.cloudbreak.api.endpoint.v4.JsonEntity; @JsonIgnoreProperties(ignoreUnknown = true) public cl...
Shusshu/paperparcel
paperparcel-compiler/src/main/java/paperparcel/PaperParcelAutoValueExtension.java
/* * Copyright (C) 2016 <NAME>. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in w...
fuxingguoee/Xiaofeiyu
app/src/main/java/com/il360/xiaofeiyu/adapter/UserCreditAdapter.java
package com.il360.xiaofeiyu.adapter; import java.text.DecimalFormat; import java.text.SimpleDateFormat; import java.util.List; import com.il360.xiaofeiyu.R; import com.il360.xiaofeiyu.model.hua.UserCredit; import com.il360.xiaofeiyu.util.DataUtil; import android.content.Context; import android.view.LayoutInflater; i...
Atelier-Developers/atelier-workshop-website-api
src/main/java/com/atelier/atelier/repository/Form/FileAnswerRepository.java
package com.atelier.atelier.repository.Form; import com.atelier.atelier.entity.FormService.FileAnswer; import org.springframework.data.jpa.repository.JpaRepository; public interface FileAnswerRepository extends JpaRepository<FileAnswer, Long> { }
rjw57/tiw-computer
emulator/src/devices/bus/nubus/nubus_48gc.h
// license:BSD-3-Clause // copyright-holders:<NAME> #ifndef MAME_BUS_NUBUS_NUBUS_48GC_H #define MAME_BUS_NUBUS_NUBUS_48GC_H #pragma once #include "nubus.h" //************************************************************************** // TYPE DEFINITIONS //*************************************************************...
Yzx835/AISafety
Datasets/base.py
# !/usr/bin/env python # coding=UTF-8 """ @Author: <NAME> @LastEditors: <NAME> @Description: @Date: 2021-08-16 @LastEditTime: 2022-04-15 Dataset类,用于载入数据进行模型评测, 主要基于TextAttack的实现 """ import os import re import random import math import multiprocessing as mp from string import punctuation from collections import Ordere...
Milxnor/Nacro
Nacro/SDK/FN_BulletWhipTrackerComponent_parameters.hpp
<filename>Nacro/SDK/FN_BulletWhipTrackerComponent_parameters.hpp #pragma once // Fortnite (1.8) SDK #ifdef _MSC_VER #pragma pack(push, 0x8) #endif #include "../SDK.hpp" namespace SDK { //--------------------------------------------------------------------------- //Parameters //-------------------------------------...
madebyankur/auth0-delegated-administration-extension
server/lib/middlewares/verifyUserAccess.js
import Promise from 'bluebird'; import { NotFoundError } from 'auth0-extension-tools'; export default (action, scriptManager) => (req, res, next) => req.auth0.users.get({ id: req.params.id }) .then(user => { if (!user) { return Promise.reject(new NotFoundError(`User not found: ${req.params.id}`));...
maartenbreddels/mab
mab/gd/tri/plots.py
# -*- coding: utf-8 -*- from kaplot import * import mab class PlotOrblib(object): # abstract def __init__(self, orblib): self.orblib = orblib def draw(self, axis=None, aperture=None): nx = self.orblib.orblib.noI1 if axis is None: ny = self.orblib.orblib.noI2*self.orblib.orblib.noI3 else: ny = self.o...
theLongLab/mkTWAS
src/simulations/AdhocFunctions4Analysis.java
package simulations; import mixedmodel.LocalKinshipAnalyzer; import mixedmodel.MultiPhenotype; public class AdhocFunctions4Analysis { public static void analyze_local(String input_geno, String input_pheno, String output_folder, String local_kinship_files_folder, String global_kinship_file, int win_size){ int th...
jin-benben/Viktor
src/components/EditableFormTable/index.js
<reponame>jin-benben/Viktor<filename>src/components/EditableFormTable/index.js import React, { PureComponent } from 'react'; import { Table, Input, Select, DatePicker, Form } from 'antd'; import moment from 'moment'; const { Option } = Select; const { TextArea } = Input; class EditableCell extends PureComponent { ge...
ehddn5252/AlgorithmStorage
src/com/ssafy/algorithm/bj/Bj14888.java
<reponame>ehddn5252/AlgorithmStorage package com.ssafy.algorithm.bj; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; // 연산자 끼워넣기 /* 1. 숫자 N 개가 주어지고 연산자 N-1 개가 주어진다. 2. 연산자 우선순위 상관없이 숫자 사이에 연산자를 끼워넣어서 나올 수 있는 값의 최대와 최소를 구하라. (permutation 사용) */ public class Bj14888 { s...
axxepta/argon-api
RestServicesModule/src/main/java/de/axxepta/services/implementations/DocumentGitServiceImpl.java
package de.axxepta.services.implementations; import java.io.File; import java.io.IOException; import java.time.Instant; import java.util.ArrayList; import java.util.Collection; import java.util.Date; import java.util.HashMap; import java.util.List; import java.util.Map; import java.util.Map.Entry; import java.util.con...
lukaselmer/adventofcode
2018/aoc/d20/tokenizer.py
def tokenize(regex: str): return list(_tokenize(regex)) def _tokenize(regex: str): current = "" for index, char in enumerate(regex): if char in "ENWS": current += char else: if current: yield current current = "" if char i...
sniperkit/snk.fork.palantir-distgo
distgo/printproducts/printproducts_test.go
<filename>distgo/printproducts/printproducts_test.go /* Sniperkit-Bot - Status: analyzed */ // Copyright 2016 Palantir Technologies, 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 ...
jobial-io/sclap
sclap-app/src/main/scala/io/jobial/sclap/CommandLineParser.scala
/* * Copyright (c) 2020 Jobial OÜ. 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. A copy of the License is located at * * http://www.apache.org/licenses/LICENSE-2.0 * * or in the "license" file accompa...
caojie09/sofa-registry
server/server/session/src/main/java/com/alipay/sofa/registry/server/session/node/service/MetaNodeServiceImpl.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 may ...
fury999io/JavaPrograms
Example.java
<reponame>fury999io/JavaPrograms cd Desktop/REOLADON/Programming/Java import java.io.*; public class { public static void main(String[] args) throws IOException { InputStreamReader read = new InputStreamReader(System.in); BufferedReader in = new BufferedReader(read); } }
WebucatorTraining/classfiles-actionable-python
flow-control/Solutions/guess_word_challenge.py
import random def get_word(): """Returns random word.""" with open('../data/words.txt') as f: words = f.read().splitlines() return random.choice(words).upper() def check(word, guesses): """Creates and returns string representation of word displaying asterisks for letters not yet guessed.""...
javgat/devtest
BackEnd/restapi/operations/test/get_all_edit_tests_responses.go
<gh_stars>1-10 // Code generated by go-swagger; DO NOT EDIT. package test // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command import ( "net/http" "github.com/go-openapi/runtime" "uva-devtest/models" ) // GetAllEditTestsOKCode is t...
mansam/manageiq
spec/requests/api/regions_spec.rb
# # REST API Request Tests - Regions # # Regions primary collections: # /api/regions # # Tests for: # GET /api/regions/:id # describe "Regions API" do it "forbids access to regions without an appropriate role" do api_basic_authorize run_get(regions_url) expect(response).to have_http_status(:forbidden...
KarolGitHub/gatsby-blog
src/hooks/useMetaDataQuery.js
import { useStaticQuery, graphql } from 'gatsby'; export const useMetaDataQuery = () => { const data = useStaticQuery(graphql` query MetaDataQuery { site { siteMetadata { author description title social { name url } ...
luohaiyun/sqlbuilder
src/main/java/com/github/haivan/sqlbuilder/clauses/condition/BasicDateCondition.java
<filename>src/main/java/com/github/haivan/sqlbuilder/clauses/condition/BasicDateCondition.java package com.github.haivan.sqlbuilder.clauses.condition; import com.github.haivan.sqlbuilder.clauses.AbstractClause; public class BasicDateCondition extends BasicCondition { protected String part; public BasicDateConditio...
ccol002/larva-rv-tool
Other projects/CaseStudies/Clocks/src/larva/ClockEvent.java
<reponame>ccol002/larva-rv-tool package larva; public class ClockEvent implements Runnable { long millis; Clock c; public ClockEvent(Clock c, long millis) { this.millis = millis; this.c = c; Thread t = new Thread(this); t.setDaemon(true); t.start(); } public void run() { synchroni...
Updownquark/DISEnumerations
src/main/java/edu/nps/moves/disenum/Fuse.java
<reponame>Updownquark/DISEnumerations<filename>src/main/java/edu/nps/moves/disenum/Fuse.java<gh_stars>1-10 package edu.nps.moves.disenum; import java.util.HashMap; import edu.nps.moves.siso.EnumNotFoundException; /** Enumeration values for Fuse * The enumeration values are generated from the SISO DIS XML EBV documen...
JuleCvet/Account-for-time-report
src/main/java/com/hellokoding/account/service/UserServiceImpl.java
package com.hellokoding.account.service; import java.util.HashSet; import java.util.List; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder; import org.springframework.stereotype.Service; import com.hellokoding.account.model.User; imp...
Nik6198/Data-Structures
other/s.cpp
#include<stdio.h> int full(int ); void push(int ); int empty(); int pop(); char item[100]; int top=-1; int main() { push(4); printf("%d\n",top); push(5); printf("%d\n",top); push(5); printf("%d\n",top); push(4); printf("%d\n",top); return 0; } //full int full(int max) { if(top==max-1) { ret...
ljaljushkin/PatternPractise
own/editor/src/main/java/weak_bridge/shape/decorator/DottedLineDecorator.java
<filename>own/editor/src/main/java/weak_bridge/shape/decorator/DottedLineDecorator.java package weak_bridge.shape.decorator; import weak_bridge.drawer.IDrawer; import weak_bridge.shape.Shape; public class DottedLineDecorator extends Decorator { private static final double[] DEFAULT_DASHES = new double[]{25d, 10d...
kinshuk4/algorithm-cpp
src/compete/hackerrank/mathematics/fundamentals/die-hard-3.cpp
<filename>src/compete/hackerrank/mathematics/fundamentals/die-hard-3.cpp //die-hard-3.cpp //Die Hard 3 //Weekly Challenges - Week 7 //Author: derekhh #include<iostream> #include<algorithm> using namespace std; int gcd(int a, int b) { return b ? gcd(b, a%b) : a; } int main() { int t; cin >> t; while (t--) { in...
watsonjj/CHECLabPySB
sstcam_sandbox/d191122_dc_tf/__init__.py
<gh_stars>0 from TargetCalibSB.tf import TFDC, TFACCrossCorrelation from TargetCalibSB.vped import VpedCalibrator def get_dc_tf(dc_tf_path, vped_calibration_path): tf = TFDC.from_file(dc_tf_path) vped_calibrator = VpedCalibrator() vped_calibrator.load(vped_calibration_path) tf.finish_generation(vped_c...
kylemacd/workato-connector-sdk
lib/workato/connector/sdk/workato_schemas.rb
<gh_stars>1-10 # frozen_string_literal: true require 'json' module Workato module Connector module Sdk class WorkatoSchemas include Singleton class << self def from_json(path = DEFAULT_SCHEMAS_PATH) load_data(JSON.parse(File.read(path))) end dele...
devbis/tl_zigbee_sdk
zigbee/zcl/zll_commissioning/zcl_zllTouchLinkDiscovery.c
<filename>zigbee/zcl/zll_commissioning/zcl_zllTouchLinkDiscovery.c /******************************************************************************************************** * @file zcl_zllTouchLinkDiscovery.c * * @brief This is the source file for zcl_zllTouchLinkDiscovery * * @author <NAME> * @date 2021...
2dreet/java_exemplos
src/orientacaoObjeto/DesafioCalculadora.java
<gh_stars>0 package orientacaoObjeto; import java.util.Scanner; public class DesafioCalculadora { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); System.out.println("Digite o N1"); Double a = scanner.nextDouble(); System.out.println("Digite o N2...