repo_name
stringlengths
6
101
path
stringlengths
4
300
text
stringlengths
7
1.31M
emcleod/OG-Platform
projects/OG-Analytics/src/main/java/com/opengamma/analytics/math/interpolation/NotAKnotCubicSplineInterpolator1D.java
/** * Copyright (C) 2013 - present by OpenGamma Inc. and the OpenGamma group of companies * * Please see distribution for license. */ package com.opengamma.analytics.math.interpolation; import com.opengamma.analytics.math.interpolation.data.Interpolator1DDataBundle; /** * */ public class NotAKnotCubicSplineIn...
Tony031218/OI
luogu/codes/P1201.cpp
/************************************************************* * > File Name : P1201.cpp * > Author : Tony * > Created Time : 2019/06/19 15:59:41 * > Algorithm : [STL]map **************************************************************/ #include <bits/stdc++.h> using namespace std; i...
chrisxu333/uDB
src/include/storage/buffer_pool/LRU_cache.h
#ifndef UDB_LRU_CACHE_H #define UDB_LRU_CACHE_H #include "include/common/type.h" #include <map> namespace udb { class LruCache{ public: LruCache(); ~LruCache(); /** * * */ void insert(frame_id_t frame_id); frame_id_t re...
Tonytan123/DesignPatternJavaImplementation
com.tucker.java.design.pattern/abstractfactory/ColorFactory.java
<filename>com.tucker.java.design.pattern/abstractfactory/ColorFactory.java package abstractfactory; import java.util.HashMap; import java.util.Map; /** * @author tonyc */ public class ColorFactory extends AbstractFactory{ public static Map<String, Color> colorMap = new HashMap<>(); public static void init()...
Hans-Halverson/flow
tests/autofix_empty_object/c.js
<filename>tests/autofix_empty_object/c.js // @flow const obj = { f: {} }; obj.f = { x: 1 }; obj.f = { x: "a" }; module.exports = obj;
spring-projects/spring-integration-dsl-scala
spring-integration-dsl-scala-core/src/main/scala/org/springframework/integration/dsl/MessagingBridgeEndpointDsl.scala
<gh_stars>10-100 package org.springframework.integration.dsl import org.springframework.beans.factory.support.BeanDefinitionBuilder import org.springframework.integration.handler.BridgeHandler import java.util.UUID import org.w3c.dom.Element import org.w3c.dom.Document import org.springframework.util.StringUtils priva...
MrYang-Jia/edb
src/main/java/com/edbplus/db/proxy/EDbRelProxy.java
<reponame>MrYang-Jia/edb<gh_stars>1-10 /** * Copyright (c) 2021 , YangZhiJia 杨志佳 (<EMAIL>). * * 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/LICE...
pwinckles/ocfl-java
ocfl-java-core/src/main/java/edu/wisc/library/ocfl/core/validation/SimpleInventoryValidator.java
<reponame>pwinckles/ocfl-java /* * The MIT License (MIT) * * Copyright (c) 2019 University of Wisconsin Board of Regents * * 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 restr...
zhangdan660/jgdraw
symbol/src/main/java/fr/itris/glips/svgeditor/AbstractHyperlinkAction.java
<gh_stars>0 /* * $Id: AbstractHyperlinkAction.java 3484 2009-09-03 15:55:34Z kleopatra $ * * Copyright 2006 Sun Microsystems, Inc., 4150 Network Circle, * Santa Clara, California 95054, U.S.A. All rights reserved. * * This library is free software; you can redistribute it and/or * modify it under the terms of th...
maxis42/Programming-in-python-Coursera-MIPT
1 Diving in python/Homework/6 Async/client_server/client.py
<gh_stars>1-10 import socket import time import re class Client: def __init__(self, host, port, timeout=None): self.host = host self.port = port self.timeout = timeout # seconds self.sock = self._sock @property def _sock(self): socket.setdefaulttimeout(self.timeo...
daniol/angular-line-awesome
projects/angular-line-awesome/icons/build/-lab-artstation.icon.js
export const labArtstation = { name: 'lab-artstation', data: `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><path d="M13.73 5L26 27l1.994-4.512a3.004 3.004 0 00-.123-2.908L20.096 6.436A3.003 3.003 0 0017.536 5H13.73zm-2.218 2.178L5.63 18h11.916L11.512 7.178zM4 21l2.172 4.342A2.998 2.998 0 008.854 ...
JohnsonLu3/Gerrymandering-Analysis
src/main/java/gerrymandering/repository/VotesRepository.java
<reponame>JohnsonLu3/Gerrymandering-Analysis<filename>src/main/java/gerrymandering/repository/VotesRepository.java package gerrymandering.repository; import gerrymandering.model.Votes; import org.springframework.data.repository.CrudRepository; import java.util.List; /** * Created by yisuo on 11/14/17. */ public int...
Futureblur/MoonEngine
Engine/Source/Runtime/Event/EventSystem.h
<filename>Engine/Source/Runtime/Event/EventSystem.h // Copyright (c) 2021 Futureblur. All rights reserved. Visit https://ice.futureblur.com for more information. #pragma once #include "Core/Core.h" #include "Core/IO/Log.h" #include "EventTypes.h" #include "Core/Error/ErrorList.h" //Converts the IEvent base class to ...
open-star/GD-OpenDolphin
client/src/open/dolphin/infomodel/OrcaInputCd.java
<gh_stars>1-10 /* * OrcaInputCd.java * Copyright (C) 2007 Digital Globe, Inc. All rights reserved. * * 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 ...
f-m-c/TAMshapes
Pencil/src/includes/functions/calculateHorVertLineAndConstraints.js
function calculateHorVertLineAndConstraints ( iStart, iEnd, iControlPoints, iCPnum = 0, startsHorizontal, isStraight = false, alignType = "center", endsDiagonal = false, cornerRadius = 10) { // calculate x/y contraints for segments for a horizontal / vertical only routing with open number of c...
pwr-pbrwio/PBR20M2
projects/opengrok/suggester/src/main/java/org/opengrok/suggest/popular/impl/chronicle/ChronicleMapAdapter.java
/* * CDDL HEADER START * * The contents of this file are subject to the terms of the * Common Development and Distribution License (the "License"). * You may not use this file except in compliance with the License. * * See LICENSE.txt included in this distribution for the specific * language governing permissio...
mharris717/ascension
lib/ascension/game/events.rb
<filename>lib/ascension/game/events.rb events = <<EOF hero played construct played monster defeated EOF module Event class Events include FromHash setup_mongo_persist :events attr_accessor :side def as_json [] end fattr(:events) { [] } include Enumerable def each(&b) even...
ke4qqq/cloudstack
awsapi/src/com/cloud/bridge/service/core/ec2/EC2Volume.java
<gh_stars>1-10 // 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...
clearstorydata/ridley
lib/ridley/version.rb
module Ridley VERSION = "1.6.0" end
daohuei/ucsc-nlp-unicorn
nlp_201/hw3/algo.py
<reponame>daohuei/ucsc-nlp-unicorn<filename>nlp_201/hw3/algo.py import numpy as np word_tag_prob = {} tag_bigram_prob = {} max_score_dict = {} tag_set = set() def score(words, i, cur_tag, prev_tag): return np.log(word_tag_prob[(words[i], cur_tag)]) + np.log( tag_bigram_prob[(cur_tag, prev_tag)] ) #...
weucode/COMFORT
artifact_evaluation/data/codeCoverage/fuzzilli_generate/766.js
<gh_stars>10-100 function main() { const v3 = [1337,1337,1337,1337,1337]; // v3 = .object(ofGroup: Array, withProperties: ["length", "__proto__", "constructor"], withMethods: ["concat", "fill", "indexOf", "entries", "forEach", "find", "reverse", "slice", "flat", "reduce", "join", "findIndex", "reduceRight", "some", "co...
wenwei8268/Alink
core/src/main/java/com/alibaba/alink/operator/batch/dataproc/StringIndexerPredictBatchOp.java
package com.alibaba.alink.operator.batch.dataproc; import org.apache.flink.ml.api.misc.param.Params; import com.alibaba.alink.common.annotation.InputPorts; import com.alibaba.alink.common.annotation.NameCn; import com.alibaba.alink.common.annotation.ParamSelectColumnSpec; import com.alibaba.alink.common.annotation.Po...
dautapankumardora/rdkservices
StateObserver/StateObserver.h
<reponame>dautapankumardora/rdkservices /** * If not stated otherwise in this file or this component's LICENSE * file the following copyright and licenses apply: * * Copyright 2019 RDK Management * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with th...
rsdoherty/azure-sdk-for-python
sdk/metricsadvisor/azure-ai-metricsadvisor/samples/sample_feedback.py
<filename>sdk/metricsadvisor/azure-ai-metricsadvisor/samples/sample_feedback.py<gh_stars>1-10 # coding: utf-8 # ------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for...
lukaszlaszuk/insightconnect-plugins
plugins/google_drive/unit_test/test_upload_file.py
import sys import os from unittest import TestCase from komand_google_drive.actions.upload_file import UploadFile from komand_google_drive.actions.upload_file.schema import Input, Output from insightconnect_plugin_runtime.exceptions import PluginException from unit_test.util import Util from parameterized import parame...
digirati-co-uk/narrative-editor
packages/narrative-editor/src/components/NarrativeEditor/NarrativeEditor.js
<gh_stars>1-10 import React, { Component } from 'react'; import { createHistory, Router, Location, LocationProvider, Link, navigate, } from '@reach/router'; import { connect } from 'react-redux'; import EditAnnotationPage from '../EditAnnotationPage/EditAnnotationPage'; import OverviewPage from '../Overview...
sriharshachilakapati/SilenceEngine
silenceengine/src/main/java/com/shc/silenceengine/audio/openal/ALFormat.java
/* * The MIT License (MIT) * * Copyright (c) 2014-2017 <NAME> * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, ...
alizbazar/medizure
src/components/ActionButton.js
'use strict' import React, { Component } from 'react' import { StyleSheet, Text, View, TouchableOpacity, Image, Animated } from 'react-native' const heartActive = require('src/assets/heart.png') const heartInactive = require('src/assets/heart-inactive.png') import { constants } from 'src/styles' const s...
komba/vk
lib/vk/api/groups/methods/join.rb
# frozen_string_literal: true require 'vk/api/methods' module Vk module API class Groups < Vk::Schema::Namespace module Methods # With this method you can join the group or public page, and also confirm your participation in an event. class Join < Schema::Method # @!group Properti...
neuroquery/nqdc
tests/test_articles.py
<reponame>neuroquery/nqdc<filename>tests/test_articles.py from pathlib import Path import json from unittest.mock import patch import pytest from nqdc import _download, _articles @pytest.mark.parametrize("n_jobs", [1, 3]) def test_extract_articles(n_jobs, tmp_path, entrez_mock): download_dir, code = _download.d...
mindnervestech/angular-formio
auth/auth.config.js
<reponame>mindnervestech/angular-formio /** * @fileoverview added by tsickle * Generated from: auth/auth.config.ts * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc */ import { Injectable } from '@angular/core'; /** * @record */ ex...
wokalski/Distraction-Free-Xcode-plugin
Archived/v1/WCDistractionFreeXcodePlugin/Headers/PlugIns/IDELanguageSupportUI/IDEViewToyViewController.h
// // Generated by class-dump 3.5 (64 bit). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>. // #import "IDEViewController.h" #import "IDEToyViewController.h" @class CALayer, CAPluginLayer, DVTObservingToken, DVTStackBacktrace, IDEToy, IDEViewToy, NSDate, NSString, NSView; @inter...
Cazoo-uk/javascript-client
src/utils/binarySearch/index.js
<gh_stars>10-100 /** Copyright 2016 Split Software 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 ...
JiaqiLiZju/NvTK
NvTK/Explainer/Featuremap.py
"""Feature map based model interpretation methods in NvTK. """ import torch import logging import numpy as np from .Motif import normalize_pwm __all__ = ["get_activate_W", "get_fmap", "get_activate_W_from_fmap", "get_activate_sequence_from_fmap", "save_activate_seqlets"] def _get_W_from_conv(model, motif_width=...
ScalablyTyped/SlinkyTyped
v/vega-typings/src/main/scala/typingsSlinky/vegaTypings/transformMod/NestTransform.scala
package typingsSlinky.vegaTypings.transformMod import typingsSlinky.vegaTypings.signalMod.SignalRef import typingsSlinky.vegaTypings.vegaTypingsStrings.nest import org.scalablytyped.runtime.StObject import scala.scalajs.js import scala.scalajs.js.`|` import scala.scalajs.js.annotation.{JSGlobalScope, JSGlobal, JSImpor...
lisongyan123/urule
urule-core/src/main/java/com/bstek/urule/model/rete/jsondeserializer/ParameterValueDeserializer.java
// // Source code recreated from a .class file by IntelliJ IDEA // (powered by Fernflower decompiler) // package com.bstek.urule.model.rete.jsondeserializer; import com.bstek.urule.model.rete.JsonUtils; import com.bstek.urule.model.rule.ParameterValue; import com.bstek.urule.model.rule.Value; import com.bstek.urule.m...
nasa/gunns
ms-utils/properties/CombustCH4.cpp
/** @file @brief Methane Combustion Model implementation @copyright Copyright 2019 United States Government as represented by the Administrator of the National Aeronautics and Space Administration. All Rights Reserved. LIBRARY DEPENDENCY: ((properties/Combust.o) (properties/ChemicalCompound.o) ...
shawkins/infinispan-1
server/integration/endpoint/src/main/java/org/infinispan/server/endpoint/subsystem/RouterSubsystemAdd.java
<gh_stars>1-10 /* * JBoss, Home of Professional Open Source * Copyright 2011-2013 Red Hat Inc. and/or its affiliates and other contributors * as indicated by the @author tags. All rights reserved. * See the copyright.txt in the distribution for a * full listing of individual contributors. * * This copyrighted ma...
iabhimanyu/Algorithms
Dynamic Programming/common sub sequence/cpp/LCS.cpp
#include<iostream> #include<string.h> #include<algorithm> using namespace std; void strrev(char c[]) { int i = 0, j = strlen(c); while(i < j/2) { char t = c[i]; c[i] = c[j - i - 1]; c[j - i - 1] = t; i++; } } void PrintPath(int **Diag, char a[], char c[], int i, int ...
chs6558/chs6558.github.io
node_modules/styled-icons/fa-solid/MortarPestle/MortarPestle.esm.js
<gh_stars>0 export * from '@styled-icons/fa-solid/MortarPestle';
andyglick/openclover-git
clover-ant/src/test/resources/CloverOptimizeJUnitTest/testOptimizedCIBuildCyclesWithFrequentUnoptimizedRuns/test/com/cenqua/clover/testcases/testoptimization/AppClass23456Test.java
package com.cenqua.clover.testcases.testoptimization; import junit.framework.TestCase; public class AppClass23456Test extends TestCase { public AppClass23456Test(String name) { super(name); } public void testMain() { AppClass2.main(null); AppClass3.main(null); AppClass4.ma...
Colbys/smartactors-core
CoreFeatures/MessageProcessing/ChainCallReceiver/src/main/java/info/smart_tools/smartactors/message_processing/chain_call_receiver/package-info.java
<gh_stars>10-100 /** * Contains implementation of a {@link info.smart_tools.smartactors.message_processing_interfaces.message_processing.IMessageReceiver} that * chooses a {@link info.smart_tools.smartactors.message_processing_interfaces.message_processing.IReceiverChain} for a message and applies it. * * @see info...
datacite/levriero
app/models/orcid_claim.rb
class OrcidClaim < Base LICENSE = "https://creativecommons.org/publicdomain/zero/1.0/".freeze def self.import_by_month(options = {}) from_date = (options[:from_date].present? ? Date.parse(options[:from_date]) : Date.current).beginning_of_month until_date = (options[:until_date].present? ? Date.parse(option...
rakshithShetty/captionGAN
scripts/evalSimilarity.py
import numpy as np import pandas as pd import matplotlib.pyplot as plt import json import os import random import scipy.io import codecs from collections import defaultdict import sys #%matplotlib inline if len(sys.argv) == 1: target = '135235570_5698072cd4.jpg' elif len(sys.argv) == 2: target = sys.argv[1] el...
ishaileshmishra/stock-market-android-app
app/src/main/java/com/pravrajya/diamond/views/users/registration/SignUpActivity.java
<reponame>ishaileshmishra/stock-market-android-app package com.pravrajya.diamond.views.users.registration; import android.content.Intent; import android.os.Bundle; import android.text.TextUtils; import com.fxn.stash.Stash; import com.google.firebase.auth.FirebaseAuth; import com.google.firebase.auth.FirebaseUser; impo...
Wdifulvio523/personal-portfolio
node_modules/webpack-hot-middleware/client.js
<filename>node_modules/webpack-hot-middleware/client.js /*eslint-env browser*/ /*global __resourceQuery __webpack_public_path__*/ var options = { path: "/__webpack_hmr", timeout: 20 * 1000, overlay: true, reload: false, log: true, warn: true, name: '', autoConnect: true, overlayStyles: {}, ansiColo...
zhangkn/iOS14Header
System/Library/PrivateFrameworks/HomeKitDaemon.framework/HMDCloudManagerDelegate.h
/* * This header is generated by classdump-dyld 1.0 * on Sunday, September 27, 2020 at 11:51:59 AM Mountain Standard Time * Operating System: Version 14.0 (Build 18A373) * Image Source: /System/Library/PrivateFrameworks/HomeKitDaemon.framework/HomeKitDaemon * classdump-dyld is licensed under GPLv3, Copyright © 2013-201...
deepakddixit/monarch
ADS/geode-core/src/main/java/org/apache/geode/internal/admin/JoinLeaveListener.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 not ...
EsmaeeilMoradi/AOSPGallery4AS
app/src/main/java/org/apache/http/impl/io/AbstractSessionOutputBuffer.java
/* * $HeadURL: http://svn.apache.org/repos/asf/httpcomponents/httpcore/trunk/module-main/src/main/java/org/apache/http/impl/io/AbstractSessionOutputBuffer.java $ * $Revision: 652091 $ * $Date: 2008-04-29 13:41:07 -0700 (Tue, 29 Apr 2008) $ * * ==================================================================== *...
prasannachinnapareddy/FullStactDevelopement
Backend/src/com/cts/training/model/Sector.java
package com.cts.training.model; import java.io.Serializable; //import javax.persistence.Column; //import javax.persistence.Entity; //import javax.persistence.Id; //import javax.persistence.Table; //@Entity //@Table(name = "SectorDetails") public class Sector implements Serializable { //@Id //@Column(name = "sector_id...
OpenOPx/kobotoolbox
kobo-docker/.vols/static/kpi/js/components/passwordStrength.es6
import React from 'react'; import autoBind from 'react-autobind'; import zxcvbn from 'zxcvbn'; import {bem} from '../bem'; import {t} from '../utils'; /* Properties: - password <string>: required */ class PasswordStrength extends React.Component { constructor(props){ super(props); autoBind(this); } rend...
wavestate/wavestate-iirrational
src/wavestate/iirrational/v2/hintsets.py
#!/usr/bin/env python # -*- coding: utf-8 -*- # SPDX-License-Identifier: Apache-2.0 # SPDX-FileCopyrightText: © 2021 Massachusetts Institute of Technology. # SPDX-FileCopyrightText: © 2021 <NAME> <<EMAIL>> # NOTICE: authors should document their contributions in concisely in NOTICE # with details inline in source files...
LamWaiBen/LamWaiBen.github.io
leetcode/63.unique-paths-ii.js
<reponame>LamWaiBen/LamWaiBen.github.io /* * @lc app=leetcode id=63 lang=javascript * * [63] Unique Paths II */ // @lc code=start /** * @param {number[][]} obstacleGrid * @return {number} */ var uniquePathsWithObstacles = function(obstacleGrid) { let n = obstacleGrid.length let m = obstacleGrid[0].lengt...
MichaelHeydon/vue-tables-2-private
compiled/computed/datepicker-columns.js
<reponame>MichaelHeydon/vue-tables-2-private<filename>compiled/computed/datepicker-columns.js<gh_stars>1-10 "use strict"; var intersect = require('array-intersect')["default"]; module.exports = function () { if (this.opts.filterable === true) { return this.opts.dateColumns; } if (this.opts.filterable === f...
goodmind/FlowDefinitelyTyped
flow-types/types/terminal-menu_vx.x.x/flow_v0.25.x-/terminal-menu.js
declare module "terminal-menu" { import typeof * as stream from "stream"; /** * Creates a TerminalMenu with default settings. */ declare function MenuContainerFactory(): MenuContainerFactory$MenuContainerFactory$TerminalMenu; /** * Creates a TerminalMenu using options to override default settings. ...
Focinfi/ckb-sdk-go
utils/epoch.go
package utils import ( "github.com/Focinfi/ckb-sdk-go/types" ) // Epoch represents a CKB consensus protocol difficulty adjust period type Epoch struct { Length uint64 Number uint64 Index uint64 } // Since returns the since block of this epoch func (e Epoch) Since() uint64 { return (0x20 << 56) + (e.Length << 4...
alessandrodalbello/google-hash-code
practice-2020/src/main/java/org/hashcode/practice2020/solvers/RepetitiveGreedySolver.java
<gh_stars>1-10 package org.hashcode.practice2020.solvers; import java.util.Collection; import java.util.HashMap; import java.util.List; import java.util.Map; import org.hashcode.practice2020.model.Pizza; import org.hashcode.practice2020.model.PizzaInput; import org.hashcode.practice2020.model.PizzaOutput; import org....
devibizsys/IBizSysRuntime
saibz5base/src/main/java/net/ibizsys/paas/core/valuerule/IDEFValueRuleEngine.java
package net.ibizsys.paas.core.valuerule; import net.ibizsys.paas.core.IActionContext; import net.ibizsys.paas.util.IGlobalContext; /** * 属性规则检查引擎接口 * @author Administrator * */ public interface IDEFValueRuleEngine { /** * 初始化 * @param iGlobalContext * @param iDEFValueRule * @throws Exception */ void...
aajisaka/maven-artifact-transfer
src/main/java/org/apache/maven/shared/transfer/dependencies/resolve/internal/Maven30DependencyResolver.java
package org.apache.maven.shared.transfer.dependencies.resolve.internal; /* * 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 thi...
giiita/scaladia
refuel-container/src/main/scala-2/refuel/internal/AtomicUpdater.scala
<filename>refuel-container/src/main/scala-2/refuel/internal/AtomicUpdater.scala package refuel.internal import java.util.concurrent.atomic.AtomicReferenceFieldUpdater import java.util.function.UnaryOperator import refuel.inject.exception.UnExceptedOperateException import scala.annotation.tailrec trait AtomicUpdater...
mayth/parasol
app/views/admin/adjustments/show.json.jbuilder
<reponame>mayth/parasol<filename>app/views/admin/adjustments/show.json.jbuilder json.extract! @adjustment, :id, :point, :reason, :challenge_id, :created_at, :updated_at
raviagarwal7/r8
src/main/java/com/android/tools/r8/utils/OrderedMergingIterator.java
<gh_stars>1-10 // Copyright (c) 2016, the R8 project authors. Please see the AUTHORS file // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. package com.android.tools.r8.utils; import com.android.tools.r8.errors.InternalCompilerErro...
tbepler/JProbe
src/chiptools/jprobe/function/mutationprofiler/KmerLibraryArg.java
package chiptools.jprobe.function.mutationprofiler; import java.io.File; import jprobe.services.function.Function; import chiptools.jprobe.function.ChiptoolsDirArg; public class KmerLibraryArg extends ChiptoolsDirArg<MutationProfilerParams>{ public KmerLibraryArg(Function<?> parent, boolean optional) { super(par...
ArnoVanDerVegt/MVM
js/frontend/ide/plugins/simulator/graph/io/ColorBarChartDrawer.js
<reponame>ArnoVanDerVegt/MVM<gh_stars>10-100 /** * Wheel, copyright (c) 2020 - present by <NAME> * Distributed under an MIT license: https://arnovandervegt.github.io/wheel/license.txt **/ const ChartDrawer = require('./ChartDrawer').ChartDrawer; const colors = [ '0,0,0', // 0 Black '0,0,0', ...
TheRayKid101/Prehistoric-Dinosaur-Biomes
src/main/java/net/eymbra/prehistoric/EymbraClientPrehistoric.java
<filename>src/main/java/net/eymbra/prehistoric/EymbraClientPrehistoric.java package net.eymbra.prehistoric; import net.eymbra.blocks.EymbraBlocks; import net.eymbra.entities.EymbraEntities; import net.eymbra.entities.renderer.AnkylosaurusEntityRenderer; import net.eymbra.entities.renderer.DodoEntityRenderer; import ne...
Gjoll/OpSys
Src/IO/Command_Command.cpp
<reponame>Gjoll/OpSys /* Copyright 1992 <NAME>. This is an unpublished work by <NAME>. All rights are reserved, and no part of this work may be distributed or released with out the express permission of Kurt <NAME>, 3540 43'rd Ave S., Mpls, Mn 55406. */ /* $Revision: 1.1 $ $Modtime: 01 May 1993 09:32:50 $ $W...
aquelemesmo/lipebot
src/commands/utils/ajuda.js
const { MessageEmbed, MessageActionRow, MessageButton } = require("discord.js") const botoes = require("../../json/botoesCollectors.json") module.exports.run = async (bot, message, args) => { const row = new MessageActionRow() .addComponents(new MessageButton().setStyle('SUCCESS').setCustomId(botoes.a...
imkaywu/open3DCV
src/camera/pinhole_camera.h
#ifndef open3dcv_pinhole_camera_h_ #define open3dcv_pinhole_camera_h_ #include <iostream> #include <vector> #include "math/numeric.h" #include "camera/camera.h" namespace open3DCV { class PinholeCamera : public Camera { public: PinholeCamera(); PinholeCamera(const std::vector<float>& r_int...
petr-panteleyev/java-api-for-mysql
src/test/java/org/panteleyev/mysqlapi/TableCreationTest.java
package org.panteleyev.mysqlapi; /* * Copyright (c) <NAME>. All rights reserved. * Licensed under the BSD license. See LICENSE file in the project root for full license information. */ import org.panteleyev.mysqlapi.model.ImmutableRecord; import org.panteleyev.mysqlapi.model.ImmutableRecordWithPrimitives; import o...
gkahn13/GtS
src/gcg/algos/gcg_train_tfrecord.py
<gh_stars>10-100 from gcg.algos.gcg_train import GCGtrain from gcg.data.timer import timeit from gcg.policies.gcg_policy_tfrecord import GCGPolicyTfrecord class GCGtrainTfrecord(GCGtrain): def __init__(self, exp_name, env_params, env_eval_params, rp_params, rp_ev...
kaydoh/scale
scale/messaging/__init__.py
<reponame>kaydoh/scale default_app_config = 'messaging.apps.MessagingConfig'
LeandroTk/Algorithms
computer_science/algorithms/dynamic_programming/factorial.cpp
#include <iostream> #include <vector> using namespace std; unsigned long long factorial_dp(int n) { vector<unsigned long long> v(1000000); v[0] = 1; for (int i = 1; i <= n; i++) v[i] = v[i - 1] * i; return v[n]; } int main() { cout << factorial_dp(0) << endl; cout << factorial_dp(1) << endl; cout <...
wangchuanli001/Project-experience
java-经典java小程序源代码合集/java扫雷程序/JMine/AboutFrame.java
<gh_stars>10-100 import java.awt.event.*; import java.awt.*; import javax.swing.*; class AboutFrame extends JFrame implements MouseListener{ private JPanel aboutPane; private JLabel msg; private JLabel msg1; private JLabel msg2; private JButton exit; public AboutFrame(String strName) { super(strName); setSi...
smith750/kc
coeus-impl/src/main/java/org/kuali/kra/irb/actions/risklevel/ProtocolRiskLevelBean.java
<reponame>smith750/kc<gh_stars>0 /* * Copyright 2005-2014 The Kuali Foundation * * Licensed under the Educational Community 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.opensource.org/licenses/e...
BadSugar/DearPyGui
DearPyGui/src/ui/AppItems/basic/mvCheckbox.cpp
#include <utility> #include "mvCheckbox.h" #include "mvContext.h" #include "mvItemRegistry.h" #include "AppItems/fonts/mvFont.h" #include "AppItems/themes/mvTheme.h" #include "AppItems/containers/mvDragPayload.h" #include "mvPythonExceptions.h" #include "AppItems/widget_handlers/mvItemHandlerRegistry.h" namespace Marv...
avilaplana/scala-99
src/test/scala/alvaro/P09Spec.scala
package alvaro import org.scalatest.{Matchers, WordSpecLike} import scala.annotation.tailrec import scala.collection.:+ object P09 { def pack(list: List[Char]): List[List[Char]] = { @tailrec def p(lt: List[List[Char]], l: List[Char]): List[List[Char]] = (lt, l) match { case (List(Nil), head :...
hackpanda/NewXmPluginSDK-master
plugProject/LockCommLib/src/main/java/cn/zelkova/lockprotocol/LockCommSetProfileForWifi.java
package cn.zelkova.lockprotocol; /** * 设置网关WIFI参数 * @author lwq * Created by liwenqi on 2016/11/16. */ public class LockCommSetProfileForWifi extends LockCommBase { /** * @param ssid * @param pwd */ public LockCommSetProfileForWifi(String ssid, String pwd, byte authMode) { super.mKL...
DoSomething/slothie
test/unit/lib/middleware/messages/member/topics/ask-yes-no.test.js
'use strict'; require('dotenv').config(); const test = require('ava'); const chai = require('chai'); const sinon = require('sinon'); const sinonChai = require('sinon-chai'); const httpMocks = require('node-mocks-http'); const underscore = require('underscore'); const helpers = require('../../../../../../../lib/helpe...
kitboy/docker-shop
html/ecshop3/ecshop/h5/app/network/API/api.recommend.service.js
(function () { 'use strict'; angular .module('app') .factory('APIRecommendService', APIRecommendService); APIRecommendService.$inject = ['$http', '$q', '$timeout', 'CacheFactory', 'ENUM']; function APIRecommendService($http, $q, $timeout, CacheFactory, ENUM) { var service = new APIEn...
photowey/flowable-ext
flowable-ext-core-api/src/main/java/com/photowey/ext/core/api/engine/ProcessEngineExt.java
<reponame>photowey/flowable-ext<filename>flowable-ext-core-api/src/main/java/com/photowey/ext/core/api/engine/ProcessEngineExt.java /* * Copyright © 2020 photowey (<EMAIL>) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You m...
jerebenitez/IFE-simpact-openfoam
src/remesh/fnod_fix.h
<filename>src/remesh/fnod_fix.h SUBROUTINE fnod_fix(nnodbd,nodcre) !-------------------------------------------------------------------- ! get ifx conditions for new boundary nodes in a refined set !-------------------------------------------------------------------- IMPLICIT NONE !--- Dummy ...
samreid/ludum-dare-35-shapeshift
js/view/arcade/ArcadeGameNode.js
// Copyright 2015 /** * * @author <NAME> */ define( function( require ) { 'use strict'; // modules var inherit = require( 'PHET_CORE/inherit' ); var shapeshift = require( 'SHAPESHIFT/shapeshift' ); var Node = require( 'SCENERY/nodes/Node' ); var HBox = require( 'SCENERY/nodes/HBox' ); var VBox = requ...
touxiong88/92_mediatek
kernel/drivers/aee/aed/aed-debug.c
<filename>kernel/drivers/aee/aed/aed-debug.c #include <linux/proc_fs.h> #include <linux/delay.h> #include <linux/kthread.h> #include <linux/kallsyms.h> #include <linux/notifier.h> #include <linux/kprobes.h> #include <asm/uaccess.h> #include "aed.h" #ifndef PARTIAL_BUILD static spinlock_t fiq_debugger_test_lock0; stat...
ScalablyTyped/SlinkyTyped
w/winrt-uwp/src/main/scala/typingsSlinky/winrtUwp/Windows/Networking/NetworkOperators/UiccAppRecordKind.scala
<filename>w/winrt-uwp/src/main/scala/typingsSlinky/winrtUwp/Windows/Networking/NetworkOperators/UiccAppRecordKind.scala package typingsSlinky.winrtUwp.Windows.Networking.NetworkOperators import org.scalablytyped.runtime.StObject import scala.scalajs.js import scala.scalajs.js.`|` import scala.scalajs.js.annotation.{JS...
pointable/hitcamp
schema/Lesson.js
<gh_stars>0 'use strict'; var shortId = require('shortid'); exports = module.exports = function(app, mongoose) { // console.log('run'); var lessonSchema = new mongoose.Schema({ shortID: { type: String, unique: true, index: true }, data: { type: String, default: 'Lesson Data' }, lessonName...
cas-nctu/multispec
Linux_build/SharedMultiSpec/SClassifyEchoPhase.cpp
// MultiSpec // // Copyright 1988-2020 Purdue Research Foundation // // 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.apach...
vasireddy99/opentelemetry-cpp
api/include/opentelemetry/nostd/variant.h
<gh_stars>100-1000 // Copyright The OpenTelemetry Authors // SPDX-License-Identifier: Apache-2.0 #pragma once #include "opentelemetry/version.h" #ifdef HAVE_CPP_STDLIB # include "opentelemetry/std/variant.h" #else # ifndef HAVE_ABSEIL // We use a LOCAL snapshot of Abseil that is known to compile with Visual Studi...
THE-STUDNET/front
src/app/components/app_layout/controllers/layout.js
<gh_stars>0 angular.module('app_layout').controller('layout_controller', ['$scope','session','user_model', 'page_model', 'user_courses', 'connections','account','notifier_service', '$translate', 'welcome_service', 'modal_service', 'page_modal_service','social_service','events_service', 'glob...
produck/duck
packages/duck-log/src/normalize.js
'use strict'; const { Normalizer, Validator } = require('@produck/duck'); const schema = require('./OptionsSchema.json'); const DEFAULT = require('./CategoryLogger/default'); schema.definitions.defaultLevels.enum = DEFAULT.LEVELS; module.exports = Normalizer({ defaults: () => ({}), handler: function normalize(_opt...
babadee001/ovie-recipes
client/src/actions/index.js
import axios from 'axios'; import { actions as toastrActions } from 'react-redux-toastr'; import { bindActionCreators } from 'redux'; export const BASE_URL = '/api/v1'; /** * @export errorHandler * @param {action} dispatch * @param {string} error * @param {constant} type * @returns {*} void */ export const ...
alebabai/tg2vk
src/main/java/com/github/alebabai/tg2vk/repository/UserBaseRepository.java
<filename>src/main/java/com/github/alebabai/tg2vk/repository/UserBaseRepository.java package com.github.alebabai.tg2vk.repository; import com.github.alebabai.tg2vk.domain.User; import org.springframework.data.jpa.repository.Query; import org.springframework.data.repository.PagingAndSortingRepository; import org.spring...
LatteIsAHorse/LatteIsAHorse_Backend
src/main/java/team/latte/LatteIsAHorse/repository/QuizTagRepository.java
<reponame>LatteIsAHorse/LatteIsAHorse_Backend<filename>src/main/java/team/latte/LatteIsAHorse/repository/QuizTagRepository.java package team.latte.LatteIsAHorse.repository; import org.springframework.data.jpa.repository.JpaRepository; import org.springframework.data.jpa.repository.Modifying; import org.springframework...
jburguete/mpcotool
tests/process4.c
#include <stdio.h> #include <stdlib.h> #define NTESTS 6 #define NMETHODS 41 const char *test[NTESTS] = { "Sphere", "Ackley", "Booth", "Rosenbrock", "Easom", "Beale" }; int main () { char label[NMETHODS][512]; char buffer[512]; float x[NMETHODS][3], y[NMETHODS][3]; FILE *file; unsigned int i, j; for (j ...
adam-26/react-dom-html
packages/example/server/render.js
import React from "react"; import { ServerStyleSheet } from "styled-components"; import AppScripts from "../src/components/AppScripts"; import AppStyles from "../src/components/AppStyles"; import App from "../src/components/App"; import { HtmlMetadata } from "react-dom-html-tags"; import { renderHtmlToString, r...
weichihl/aws-greengrass-labs-kvs-stream-uploader
src/main/java/com/aws/iot/edgeconnectorforkvs/videorecorder/base/VideoRecorderBase.java
<gh_stars>0 /* * Copyright Amazon.com, Inc. or its affiliates. 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 ...
pcen/pulumi
tests/integration/partial_state/partial_state_test.go
<reponame>pcen/pulumi<filename>tests/integration/partial_state/partial_state_test.go // Copyright 2016-2018, Pulumi Corporation. All rights reserved. // +build nodejs all package ints import ( "testing" "github.com/pulumi/pulumi/pkg/v3/resource/deploy/providers" "github.com/pulumi/pulumi/pkg/v3/testing/integrati...
dreamsxin/ultimatepp
bazaar/MediaPlayer/main.cpp
<filename>bazaar/MediaPlayer/main.cpp<gh_stars>1-10 #include <CtrlLib/CtrlLib.h> using namespace Upp; #define LAYOUTFILE <Media_demo/demo.lay> #include <CtrlCore/lay.h> void Run_MediaPlayer(); void Run_VolumeCtrl(); struct Media_Demo : public WithMain<TopWindow> { typedef Media_Demo CLASSNAME; void On...
ylunalin/amrex
Src/AmrCore/AMReX_ErrorList.cpp
#include <iostream> #include <AMReX_BLassert.H> #include <AMReX_ErrorList.H> #include <AMReX_SPACE.H> namespace amrex { ErrorRec::ErrorFunc::ErrorFunc () : m_func(0), m_func3D(0) {} ErrorRec::ErrorFunc::ErrorFunc (ErrorFuncDefault inFunc) : m_func(inFunc), m_func3D(0) {} ErrorRec::ErrorFunc...
caricah/mq.tracah
bootstrap/src/main/java/com/caricah/iotracah/bootstrap/data/models/users/IotAccountKey.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 ...
grische/OpenSPH
core/physics/Constants.h
<reponame>grische/OpenSPH #pragma once /// \file Constants.h /// \brief Definitions of physical constaints (in SI units). /// \author <NAME> (sevecek at s<EMAIL>) /// \date 2016-2021 #include "common/Globals.h" NAMESPACE_SPH_BEGIN namespace Constants { constexpr Float gasConstant = 8.3144598_f; // J mol^−1 K^−1 /...