repo_name
stringlengths
6
101
path
stringlengths
4
300
text
stringlengths
7
1.31M
MIT-LAE/pyNA
pyNA/src/trajectory_src/atmosphere.py
<filename>pyNA/src/trajectory_src/atmosphere.py import pdb import openmdao import openmdao.api as om from pyNA.src.settings import Settings import numpy as np class Atmosphere(om.ExplicitComponent): """ Compute ambient parameters along the trajectory. The *Atmosphere* component requires the following inp...
JamesCao2048/BlizzardData
Corpus/birt/1725.java
<gh_stars>1-10 /******************************************************************************* * Copyright (c) 2008 Actuate Corporation. * All rights reserved. *******************************************************************************/ package org.eclipse.birt.report.designer.internal.ui.swt.custom; imp...
DeFBeD/zap-android
app/src/main/java/DefBed/DefWallet/channelManagement/ChannelSelectListener.java
package DefBed.DefWallet.channelManagement; import com.google.protobuf.ByteString; public interface ChannelSelectListener { void onChannelSelect(ByteString channel, int type); }
skotep/webdev
sample/mongoTest.js
<reponame>skotep/webdev<filename>sample/mongoTest.js var request = require('request') var MongoClient = require('mongodb').MongoClient var url = 'mongodb://localhost:27017/webdev' if (process.env.MONGOLAB_URI) { url = process.env.MONGOLAB_URI; } function mc(execute) { var args = Array.prototype.slice.call(arguments, ...
bernard357/shellbot
shellbot/spaces/base.py
<reponame>bernard357/shellbot<filename>shellbot/spaces/base.py # -*- coding: utf-8 -*- # 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 th...
jalenyang/Rougamo
Hack/src/main/java/pork/HotSwapClassLoader.java
<gh_stars>0 package com.pork; public class HotSwapClassLoader extends ClassLoader { public HotSwapClassLoader() { super(HotSwapClassLoader.class.getClassLoader()); } public Class loadByte(byte[] classByte) { return defineClass(null, classByte, 0, classByte.length); } }
nileshleve/CompCoding
string-erase.cpp
#include<bits/stdc++.h> using namespace std; int main(int argc, char const *argv[]) { string s = "helllllloooo"; s.erase(2,3); cout<<s; return 0; }
oranoceallaigh/smppapi
src/main/java/com/adenki/smpp/gsm/UserData.java
package com.adenki.smpp.gsm; /** * Interface for objects that can represent TP-User-Data as defined * by 3GPP TS 23.040. * * <p> * <strong>Experimental API</strong>: <tt>UserData</tt> and its supporting * classes and implementations are an experimental API and can change or * be removed at any time. * </p> ...
IsaacYangSLA/NVFlare
nvflare/private/fed/client/comp_caller_cmd.py
<filename>nvflare/private/fed/client/comp_caller_cmd.py # Copyright (c) 2021-2022, NVIDIA CORPORATION. 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...
angelamuliu/conpass
db/migrate/20160331161043_create_admin_user.rb
<gh_stars>1-10 class CreateAdminUser < ActiveRecord::Migration def up admin = User.new admin.username = KEYS[:admin]["username"] admin.password = KEYS[:admin]["password"] admin.password_confirmation = KEYS[:admin]["password"] admin.role = 0 admin.save end def...
MapGIS/Mobile-React-Native
js/Dot.js
/** * @content 点对象功能组件 * @author fjl 2019-6-14 下午2:52:36 */ import { NativeModules } from 'react-native'; let X = NativeModules.JSDot; /** * @class Dot */ export default class Dot { /** * 构造一个新的 Dot 对象。 * @memberOf Dot * @returns {Promise.<Dot>} */ async createObj() { try { if ( ...
Nekmo/then
then/components/base.py
<reponame>Nekmo/then<filename>then/components/base.py from then.params import Params from then.exceptions import ProgrammingError from then.templates.base import TemplateBase def split_host_port(address, default_port=None, splitter=':'): parts = list(address.split(splitter)) if len(parts) < 2: parts.a...
hxcorp/DongTai-agent-go
hook/gorm.go
<filename>hook/gorm.go package hook type Gorm struct { } func (g *Gorm) GetHook() []string { return []string{ "gormDBOrder", "gormDBExec", "gormDBGroup", "gormDBHaving", "gormDBPluck", "gormDBRaw", "gormDBSelect", } } func (g *Gorm) HookAll() { Hook(g.GetHook()) } func (g *Gorm) UnHookAll() { UnHo...
Freediees/tractogo
app/components/molecules/filterArea/index.android.js
import React, { useState, Fragment } from 'react' import PropTypes from 'prop-types' import { Text, View, TouchableOpacity, TextInput } from 'react-native' import { SvgXml } from 'react-native-svg' import Moment from 'moment' import LinearGradient from 'react-native-linear-gradient' import { Margin, Fonts, Padding, Col...
TTWShell/algorithms
leetcode/array/findPairs.go
/* https://leetcode.com/problems/k-diff-pairs-in-an-array/#/description Given an array of integers and an integer k, you need to find the number of unique k-diff pairs in the array. Here a k-diff pair is defined as an integer pair (i, j), where i and j are both numbers in the array and their absolute difference is k. ...
Glasch/study
src/sample/chapter4/Vamps2.java
<reponame>Glasch/study<filename>src/sample/chapter4/Vamps2.java<gh_stars>0 package sample.chapter4; /** * Copyright (c) Anton on 27.07.2017. */ public class Vamps2 { }
lechium/iPhoneOS_12.1.1_Headers
System/Library/PrivateFrameworks/StoreKitUI.framework/SKUIStackedImageView.h
/* * This header is generated by classdump-dyld 1.0 * on Saturday, June 1, 2019 at 6:47:11 PM Mountain Standard Time * Operating System: Version 12.1.1 (Build 16C5050a) * Image Source: /System/Library/PrivateFrameworks/StoreKitUI.framework/StoreKitUI * classdump-dyld is licensed under GPLv3, Copyright © 2013-2016 by <N...
arnoldvaz27/Java-Codes
Java Codes/Programs 2/MyConstructor.java
<reponame>arnoldvaz27/Java-Codes public class MyConstructor { MyConstructor() { System.out.println("Object"); } public static void main(String args[]) { MyConstructor obj = new MyConstructor(); } }
maxgrytsuk/call42
migrations/1426775555150_add_user_to_calls_as_ref.js
<gh_stars>0 var mongojs = require('mongojs'), _ = require('lodash') config = require('../config/config'); var db = mongojs(config.db, ['calls', 'users']); var username = 'algorithm'; exports.up = function(next){ // Adding algo-rithm user refs to call entries (at this moment only algo-rithm user is present). // ...
NarrativeCompany/narrative
core/src/main/java/org/narrative/common/web/jsp/InternalServletRequest.java
package org.narrative.common.web.jsp; import org.narrative.common.util.UnexpectedError; import javax.servlet.AsyncContext; import javax.servlet.DispatcherType; import javax.servlet.RequestDispatcher; import javax.servlet.ServletContext; import javax.servlet.ServletException; import javax.servlet.ServletInputStream; i...
CodeIsRunning/system-monitor-server
common/src/main/java/liuxf/live/monitor/dao/model/DdRobotConfig.java
<gh_stars>1-10 package liuxf.live.monitor.dao.model; import java.io.Serializable; import java.time.LocalDateTime; import lombok.Data; /** * @author liuxf * @date 2021/1/5 15:26 * @version 1.0 */ /** * 钉钉机器人配置 */ @Data public class DdRobotConfig implements Serializable { private Integer id; /** ...
fran81/expedientes
node_modules/eslint-plugin-angular/examples/no-run-logic.js
// example - valid: true angular.module('app').run(function(KITTENS, kittenService, startup) { kittenService.prefetchData(KITTENS); startup('foo', true, 1); }); // example - valid: true, options: [{allowParams: false}] angular.module('app').run(function(kittenService, startup) { kittenService.prefetchData(...
iabhimanyu/Algorithms
Sorting/Timsort/Python/TimSort.py
# based off of this code https://gist.github.com/nandajavarma/a3a6b62f34e74ec4c31674934327bbd3 # <NAME> # https://skerritt.tech def binary_search(the_array, item, start, end): if start == end: if the_array[start] > item: return start else: return start + 1 if start > end...
opensource-assist/fuschia
zircon/system/ulib/runtests-utils/fuchsia-run-test.cc
<gh_stars>0 // Copyright 2018 The Fuchsia Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include <errno.h> #include <fcntl.h> #include <fuchsia/io/llcpp/fidl.h> #include <lib/async-loop/cpp/loop.h> #include <lib/async-loop/default....
PaulWang1905/tensorflow
tensorflow/core/framework/graph_to_functiondef.h
/* Copyright 2017 The TensorFlow Authors. 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 required by applicable law or a...
nicolasrosa/StereoVision
Eclipse/reprojectImageTo3D_calibON_bm/src/reprojectImageTo3D.h
/* * reprojectImageTo3D.h * * Created on: Jun 18, 2015 * Author: nicolasrosa */ #ifndef reproject_Image_To_3D_LIB_H_ #define reproject_Image_To_3D_LIB_H_ /* Libraries */ #include "cv.h" #include "highgui.h" #include "cvaux.h" #include "stdio.h" #include "opencv2/opencv.hpp" #include "trackObject.h" using names...
MaddTheSane/MacPaf
src/TestData.java
<gh_stars>1-10 import java.util.GregorianCalendar; import com.redbugz.maf.Family; import com.redbugz.maf.Gender; import com.redbugz.maf.Individual; import com.redbugz.maf.test.MyIndividual; import com.redbugz.maf.test.TestFamily; /** * Created by IntelliJ IDEA. * User: logan * Date: Sep 14, 2003 * Time: 2:59:52 P...
litongjava/java-ee-jfinal-study
java-ee-jfinal-4.9-study/jfinal-4.9-ppnt-jfinal-swagger-api/src/main/java/top/ppnt/jfinal/swagger/PpntSwaggerApp.java
<gh_stars>0 package top.ppnt.jfinal.swagger; import com.jfinal.server.undertow.UndertowServer; import top.ppnt.jfinal.swagger.config.AppConfig; public class PpntSwaggerApp { public static void main(String[] args) { UndertowServer.start(AppConfig.class); } }
nmcl/wfswarm-example-arjuna-old
graalvm/transactions/fork/narayana/ArjunaJTA/jdbc/tests/classes/com/hp/mwtests/ts/jdbc/basic/JDBC2Test.java
/* * JBoss, Home of Professional Open Source * Copyright 2006, Red Hat Middleware LLC, and individual contributors * as indicated by the @author tags. * See the copyright.txt in the distribution for a * full listing of individual contributors. * This copyrighted material is made available to anyone wishing to use...
jlbrewe/hub
manager/projects/migrations/0024_auto_20201206_0819.py
<filename>manager/projects/migrations/0024_auto_20201206_0819.py # Generated by Django 3.1.4 on 2020-12-06 08:19 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('projects', '0023_auto_20201202_0349'), ] operations = [ migrations.AlterFie...
jwillemsen/sidecar
GUI/Preset.cc
#include "QtCore/QSettings" #include "QtCore/QStringList" #include "LogUtils.h" #include "Preset.h" #include "PresetManager.h" #include "Setting.h" using namespace SideCar::GUI; Logger::Log& Preset::Log() { static Logger::Log& log_ = Logger::Log::Find("SideCar.GUI.Preset"); return log_; } Preset::Preset(con...
dplbsd/soc2013
head/contrib/ntp/sntp/libopts/putshell.c
/* * $Id: putshell.c,v 4.18 2007/02/04 17:44:12 bkorb Exp $ * Time-stamp: "2007-01-13 10:29:39 bkorb" * * This module will interpret the options set in the tOptions * structure and print them to standard out in a fashion that * will allow them to be interpreted by the Bourne or Korn shells. */ /* * ...
gamladz/gamladz.github.io
node_modules/material-icons-svg/components/twotone/Gamepad.js
<gh_stars>0 "use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); const react_1 = __importDefault(require("react")); const ReactComponent = props => (react_1....
rmehri01/Housing-Finder
core/src/test/scala/tokens/GeneratorSpec.scala
package tokens import cats.effect.{ExitCode, IO} import cats.implicits._ import dev.profunktor.auth.jwt.{JwtAuth, JwtSecretKey} import io.circe.Json import io.circe.testing.ArbitraryInstances import pdi.jwt.JwtClaim import suite.PureTestSuite import tokens.TokenGenerator._ import utilities.arbitraries._ class Generat...
tharindusathis/sourcecodes-of-CodeReadingTheOpenSourcePerspective
ace/tao/tao_idl/be/be_visitor_valuetype/valuetype_ci.cpp
// // valuetype_ci.cpp,v 1.2 1999/08/04 17:03:46 coryan Exp // // ============================================================================ // // = LIBRARY // TAO IDL // // = FILENAME // valuetype_ci.cpp // // = DESCRIPTION // Visitor generating code for Valuetypes in the client inline file /...
amahussein/vespa
vespalib/src/vespa/vespalib/data/slime/object_value.h
<gh_stars>1-10 // Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. #pragma once #include "value.h" #include "nix_value.h" #include "symbol.h" #include "symbol_lookup.h" #include "symbol_table.h" #include "value_factory.h" #include "symbol_inserter.h" ...
VISTALL/consulo-kotlin
compiler/tests/org/jetbrains/kotlin/codegen/generated/AbstractBlackBoxCodegenTest.java
/* * Copyright 2010-2015 JetBrains s.r.o. * * 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 agre...
DamieFC/chromium
chrome/browser/resources/chromeos/accessibility/chromevox/background/editing/editing_test.js
// Copyright 2015 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // Include test fixture. GEN_INCLUDE([ '//chrome/browser/resources/chromeos/accessibility/chromevox/testing/chromevox_next_e2e_test_base.js', ]); /** ...
Weiichengg/main
src/main/java/seedu/address/model/hirelah/storage/StorageManager.java
<reponame>Weiichengg/main package seedu.address.model.hirelah.storage; import java.io.IOException; import java.nio.file.Path; import java.util.Optional; import java.util.logging.Logger; import seedu.address.commons.core.LogsCenter; import seedu.address.commons.exceptions.DataConversionException; import seedu.address....
joaojunior10/StormIDS
StormEngine/src/main/java/util/rules/payload/RegexGenerator.java
<filename>StormEngine/src/main/java/util/rules/payload/RegexGenerator.java package util.rules.payload; import com.google.gson.Gson; import util.rules.payload.options.Content; import java.util.List; import java.util.regex.Pattern; /** * Created by joao on 8/11/15. */ public class RegexGenerator { public static...
specs-feup/kadabra
KadabraAst/src/pt/up/fe/specs/kadabra/ast/decl/TypeDecl.java
/** * Copyright 2021 SPeCS. * * 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 writi...
gsteri1/OG-Platform
projects/OG-Analytics/tests/unit/com/opengamma/financial/interestrate/payments/method/CapFloorCMSSpreadSABRBinormalMethodTest.java
/** * Copyright (C) 2011 - present by OpenGamma Inc. and the OpenGamma group of companies * * Please see distribution for license. */ package com.opengamma.financial.interestrate.payments.method; import static org.testng.AssertJUnit.assertEquals; import static org.testng.AssertJUnit.assertTrue; import it.unimi.ds...
wincle626/Xilinx_Embedded_Driver_Example
XilinxProcessorIPLib/drivers/usb/doc/html/api/xusb__intr_8c.js
var xusb__intr_8c = [ [ "XUsb_DmaIntrSetHandler", "group__usb__v5__0.html#ga6fbf5a1ddbca576e8c1e7d235da878ab", null ], [ "XUsb_EpSetHandler", "group__usb__v5__0.html#gae7fef0669e6d6094cc2af067195cc04d", null ], [ "XUsb_ErrIntrSetHandler", "group__usb__v5__0.html#gaa2a8bba76c93470302e179d7c4d864ac", null ], ...
justindriggers/vulkan-java-api
src/main/java/com/justindriggers/vulkan/models/SampleCount.java
<reponame>justindriggers/vulkan-java-api package com.justindriggers.vulkan.models; import org.lwjgl.vulkan.VK10; public enum SampleCount implements Maskable { ONE(VK10.VK_SAMPLE_COUNT_1_BIT), TWO(VK10.VK_SAMPLE_COUNT_2_BIT), FOUR(VK10.VK_SAMPLE_COUNT_4_BIT), EIGHT(VK10.VK_SAMPLE_COUNT_8_BIT), ...
eloylp/go-training
networked/main.go
package main import ( "fmt" "log" "net" "time" ) func main() { go func() { addr, err := net.ResolveTCPAddr("tcp", "127.0.0.1:3000") if err != nil { log.Fatal(err) } l, err := net.ListenTCP("tcp", addr) if err != nil { log.Fatal(err) } for { c, err := l.Accept() if err != nil { log....
bazaarvoice/cloudbreak
integration-test/src/main/java/com/sequenceiq/it/cloudbreak/newway/LdapTest.java
<filename>integration-test/src/main/java/com/sequenceiq/it/cloudbreak/newway/LdapTest.java package com.sequenceiq.it.cloudbreak.newway; import java.util.function.BiConsumer; import java.util.function.Function; import com.sequenceiq.cloudbreak.api.model.ldap.LdapValidationRequest; import com.sequenceiq.it.IntegrationT...
vangthao95/llvm
include/llvm/Support/BinaryStream.h
<filename>include/llvm/Support/BinaryStream.h //===- BinaryStream.h - Base interface for a stream of data -----*- C++ -*-===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===---------...
photonstorm/lazer
src/texture/blendmodes/webgl/SoftLight.js
export default function SoftLight (gl) { return { type: 10, mode: [gl.ONE, gl.ONE_MINUS_SRC_ALPHA] } }
chav1961/funnypro
src/main/java/chav1961/funnypro/core/interfaces/IFProEntitiesRepo.java
<gh_stars>0 package chav1961.funnypro.core.interfaces; import chav1961.funnypro.core.interfaces.IFProOperator.OperatorSort; import chav1961.funnypro.core.interfaces.IFProOperator.OperatorType; import chav1961.purelib.basic.exceptions.PrintingException; import chav1961.purelib.basic.exceptions.SyntaxException; ...
kuanpern/jupyterlab-snippets-multimenus
example_snippets/multimenus_snippets/Snippets/SciPy/Special functions/Other Special Functions/factorialk $n(!!...!)$ = multifactorial of order $k$.py
special.factorialk(n, k, exact=False)
v0idp/virtuoso-codegen
include/VROSC/MicrophoneEffectsManager.hpp
<gh_stars>0 // Autogenerated from CppHeaderCreator // Created by Sc2ad // ========================================================================= #pragma once // Begin includes #include "beatsaber-hook/shared/utils/typedefs.h" #include "beatsaber-hook/shared/utils/byref.hpp" // Including type: UnityEngine.MonoBehavio...
vinthuy/galang_math_learning
array/array_test.go
package array import "testing" func TestSwap(t *testing.T) { a := []int{1, 3, 4, 5} Swap(a, 2, 3) t.Log(a) }
franciscorgodoy/sistema-gastronomico
sis_gastronomico/productos/urls.py
<filename>sis_gastronomico/productos/urls.py from django.urls import path from sis_gastronomico.productos.views import ( BorrarProducto, BorrarTipoProducto, CrearProducto, CrearTipoProducto, ListarProductos, ListarTipoProducto, UpdateProducto, UpdateTipoProducto, ) app_name = "producto...
harshavardhanc/sunbird-analytics
platform-modules/batch-models/src/main/scala/org/ekstep/analytics/job/IGraphExecutionModel.scala
package org.ekstep.analytics.job import org.ekstep.analytics.framework.IGraphExecutionModelTemplate import org.ekstep.analytics.framework.IJob import org.ekstep.analytics.framework.util.CommonUtil import org.ekstep.analytics.framework.util.JobLogger import org.apache.spark.SparkContext import org.ekstep.analytics.fram...
tuanducdesign/spacy-course
exercises/de/exc_02_02_01.py
<gh_stars>1-10 import spacy nlp = spacy.blank("de") doc = nlp("Ich habe eine Katze") # Schlage den Hash für das Wort "Katze" nach katze_hash = ____.____.____[____] print(katze_hash) # Schlage katze_hash nach, um den String zu erhalten katze_string = ____.____.____[____] print(katze_string)
esahcorp/2cmall
2cmall-common/src/main/java/com/cambrian/common/valid/UpdateGroup.java
package com.cambrian.common.valid; /** * @author kuma 2020-10-16 */ public interface UpdateGroup { }
icbat/RFTools
src/main/java/mcjty/rftools/commands/CmdListReceivers.java
package mcjty.rftools.commands; import mcjty.lib.varia.BlockPosTools; import mcjty.rftools.blocks.teleporter.TeleportDestinationClientInfo; import mcjty.rftools.blocks.teleporter.TeleportDestinations; import net.minecraft.command.ICommandSender; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.uti...
stitheridge/isis
testing/unittestsupport/applib/src/main/java/org/apache/isis/testing/unittestsupport/applib/dom/repo/FinderInteraction.java
<gh_stars>0 /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the *...
1690296356/jdk
test/jdk/java/lang/management/ManagementFactory/ThreadMXBeanProxy.java
/* * Copyright (c) 2005, 2018, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free ...
mu340881/alios_Integrate
build/compiler/nds32le-elf-mculib-v3/nds32le-elf/include/c++/4.9.3/nds32le-elf/mvh/bits/time_members.h
<reponame>mu340881/alios_Integrate ../../mcmodel-large/mvh/mext-dsp/mext-zol/bits/time_members.h
janstenpickle/shapeless-config
metrics/prometheus/src/main/scala/extruder/metrics/prometheus/push/PrometheusPushMetricSettings.scala
package extruder.metrics.prometheus.push import extruder.metrics.dimensional.DimensionalMetricSettings import io.prometheus.client.exporter.PushGateway trait PrometheusPushMetricSettings extends DimensionalMetricSettings { def pushGateway: PushGateway = new PushGateway("127.0.0.1:9091") def jobName: String = "ext...
Tim-HU/sphinx-report
doc/trackers/UserTrackers.py
<gh_stars>1-10 import sys, os, re, random, glob from SphinxReport.Tracker import Tracker from collections import OrderedDict as odict from SphinxReport.ResultBlock import ResultBlock, ResultBlocks from SphinxReport import Utils import matplotlib from matplotlib import pyplot as plt from rpy2.robjects import r as R ...
aplocon/sis
core/sis-referencing/src/main/java/org/apache/sis/distance/LatLonPointRadius.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 ...
saikrishna-M-8520/vertice
provision/rancher/provisioner.go
<filename>provision/rancher/provisioner.go package rancher import ( "bytes" // "errors" "fmt" "io" "io/ioutil" // "net/url" "strings" "text/tabwriter" log "github.com/Sirupsen/logrus" //"github.com/megamsys/go-rancher/v2" "github.com/megamsys/libgo/action" "github.com/megamsys/libgo/cmd" "github.com/mega...
adrienlacombe-ledger/bitcoinPoS
bitcoinPoSTdisplay/libraries/TFT_eSPI/examples/Sprite/Animated_dial/dial.h
<reponame>adrienlacombe-ledger/bitcoinPoS /* A dial jpeg file can be converted to a byte array using: https://tomeko.net/online_tools/file_to_hex.php?lang=en Paste the byte array into a sketch tab "jpeg_name" and add two lines at the start with a unique array name: #include <pgmspace.h> cons...
lmeysel/fa-compatible-icons
la/toiletSolid.js
'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); var prefix = 'la'; var iconName = 'toilet-solid'; var width = 512; var height = 512; var ligatures = []; var unicode = null; var svgPathData = 'M 96 64 C 87.625008 64 79.062496 66.937504 73 73 C 66.937504 79.062496 64 87.625008 64 96 L 64 272 ...
ewangchong/bob-lab
src/main/java/com/codergray/lintcode/list/RemoveDuplicatesfromSortedList.java
package com.codergray.lintcode.list; public class RemoveDuplicatesfromSortedList { public static void main(String[] args) { ListNode n1 = new ListNode(1); ListNode n2 = new ListNode(1); n1.next = n2; ListNode n3 = new ListNode(2); n2.next = n3; ListNode x = deleteDuplicates(n1); x.print(); } publi...
vishnupsingh523/java-carnival-learning
conStatement/table.java
<gh_stars>1-10 import java.util.Scanner; public class table { public static void main(String[] args) { Scanner ob = new Scanner(System.in); System.out.println("Enter a number : "); int n = ob.nextInt(); int i=1; while(i<=10) { System.out.println(n + " x " + i + " = " + n*i); i++; } // l...
jmolloy/pedigree
src/modules/system/TUI/TuiSyscallManager.cc
<gh_stars>10-100 /* * Copyright (c) 2008 <NAME>, <NAME>, <NAME> * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. * * THE SOFTWARE IS PROVIDED "AS I...
jzz4012650/simple_proxy
src/popup/components/Header.js
import React, { useState, useEffect } from 'react' import { makeStyles } from '@material-ui/styles' import AppBar from '@material-ui/core/AppBar' import Toolbar from '@material-ui/core/Toolbar' import Typography from '@material-ui/core/Typography' import IconButton from '@material-ui/core/IconButton' import Button from...
Mvwivs/tp_advanced_cpp_project
include/http/HTTP.hpp
#pragma once #include <string> #include <optional> #include <vector> #include <string_view> #include <cstdint> namespace http { // Compare two strings case insensetive bool iequals(const std::string& a, const std::string& b); namespace HTTP { // Exception used to indicate parsing errors class ParsingException : p...
PascalGuenther/gecko_sdk
util/third_party/aws_iot_libs/libraries/coreMQTT/source/include/core_mqtt_state.h
<reponame>PascalGuenther/gecko_sdk<filename>util/third_party/aws_iot_libs/libraries/coreMQTT/source/include/core_mqtt_state.h /* * coreMQTT v1.1.0 * Copyright (C) 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Permission is hereby granted, free of charge, to any person obtaining a copy of * thi...
LeeYang21/WanAndroid
app/src/main/java/com/yl/wanandroid/view/user/SettingActivity.java
package com.yl.wanandroid.view.user; import android.content.DialogInterface; import android.content.Intent; import android.support.v7.app.AlertDialog; import android.support.v7.widget.Toolbar; import android.text.TextUtils; import android.view.View; import android.widget.TextView; import com.yl.wanandroid.R; import c...
pujiaolin/datacollector
sshtunnel-lib/src/main/java/com/streamsets/service/sshtunnel/SshTunnelServiceImpl.java
<filename>sshtunnel-lib/src/main/java/com/streamsets/service/sshtunnel/SshTunnelServiceImpl.java /* * Copyright 2019 StreamSets 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 * *...
jlifeby/seasoncard-web
service-mongo/src/main/java/com/jlife/abon/service/EventService.java
<reponame>jlifeby/seasoncard-web package com.jlife.abon.service; import com.jlife.abon.entity.Event; import com.jlife.abon.entity.Participant; import org.springframework.data.mongodb.core.query.Query; import java.util.List; /** * @author <NAME> * @author <NAME> */ public interface EventService { void registe...
DeerTears/gb-studio
appData/src/gb/include/hUGEDriverRoutines.h
#ifndef HUGEDRIVER_ROUTINES_H_INCLUDE #define HUGEDRIVER_ROUTINES_H_INCLUDE void hUGETrackerRoutine(unsigned char ch, unsigned char param, unsigned char tick) __nonbanked; static const hUGERoutine_t routines[] = { hUGETrackerRoutine, hUGETrackerRoutine, hUGETrackerRoutine, hUGETrackerRoutine, hUGETrackerRouti...
agustinaindah/wonderdeal
app/src/main/java/id/wonderdeal/wonderdealapps/features/checkout/order_success/OrderSuccessDialogFragment.java
package id.wonderdeal.wonderdealapps.features.checkout.order_success; import android.app.Dialog; import android.content.DialogInterface; import android.content.Intent; import android.os.Bundle; import android.support.annotation.NonNull; import android.support.annotation.Nullable; import android.support.v4.app.DialogFr...
merrier/Meezao-front
web_design/plugin_demo/Autocomplete/js/demo.js
<gh_stars>1-10 /** * Created by Yangyue on 2017/2/28. */ $( function() { var availableTags = [ "ActionScript", "AppleScript", "Asp", "BASIC", "C", "C++", "Clojure", "COBOL", "ColdFusion", "Erlang", "Fortran", "Groovy"...
adrienpoly/covidliste
db/migrate/20210405145759_create_campaign_batches.rb
<reponame>adrienpoly/covidliste class CreateCampaignBatches < ActiveRecord::Migration[6.1] def change create_table :campaign_batches do |t| t.references :campaign, foreign_key: true t.references :vaccination_center, foreign_key: true t.references :partner, foreign_key: true t.timestamp :ex...
alexanderchiran/JavaSE11ProgrammerI_1Z0-815
ProjectJavaSE11/src/section3/string1/TestValueOf.java
<gh_stars>1-10 package section3.string1; public class TestValueOf { public static void main(String[] args) { String george = "FredGeorgeSmith"; // Constructor used to get substring // beginning offset index 4 inclusive, and 6 characters long String shortGeorge1 = new String(george...
zpublic/cozy
src/Practice/CozyKnightCore/CozyKnightCore.h
<reponame>zpublic/cozy #ifndef __COZY_KNIGHT_CORE__ #define __COZY_KNIGHT_CORE__ #include "stdafx.h" #include "CozyDef.h" #include "iknight.h" #include <vector> class COZY_API CozyKnightCore : public IKnight { public: CozyKnightCore(); virtual void Release(); virtual void Attach(HANDLE hProcess); vi...
imranq2/SparkAutoMapper.FHIR
spark_auto_mapper_fhir/value_sets/purpose_of_use.py
<reponame>imranq2/SparkAutoMapper.FHIR from __future__ import annotations from spark_auto_mapper_fhir.fhir_types.uri import FhirUri from spark_auto_mapper_fhir.value_sets.generic_type import GenericTypeCode from spark_auto_mapper.type_definitions.defined_types import AutoMapperTextInputType # This file is auto-gene...
guzy/OnceCloud
oncecloud-web-dao/src/main/java/com/oncecloud/dao/HostInformationDAO.java
<reponame>guzy/OnceCloud package com.oncecloud.dao; import java.util.List; import com.oncecloud.entity.HostInformation; public interface HostInformationDAO { /** * 分页获取主机列表 * @param page, limit, search * @return list */ public abstract List<HostInformation> getOnePageList(int page, int limit); /** *...
georgecao/armeria
core/src/test/java/com/linecorp/armeria/server/throttling/RateLimitingThrottlingStrategyTest.java
<reponame>georgecao/armeria /* * Copyright 2017 LINE Corporation * * LINE Corporation licenses this file to you under the Apache License, * version 2.0 (the "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at: * * http://www.apache.org/licenses...
zealoussnow/chromium
ash/services/ime/decoder/system_engine_unittest.cc
<reponame>zealoussnow/chromium<filename>ash/services/ime/decoder/system_engine_unittest.cc // Copyright 2020 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "ash/services/ime/decoder/system_engine.h" #include "...
madmax983/aura
aura-util/src/main/java/org/auraframework/util/date/AuraDateUtil.java
<reponame>madmax983/aura /* * Copyright (C) 2013 salesforce.com, 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 * * Unles...
DeNA/PacketProxyHub
api-server/app/src/main/java/com/packetproxyhub/interactor/OrgMemberService.java
/* * Copyright 2021 DeNA Co., Ltd. * * 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 ...
smit-hinsu/iree
iree/base/internal/threading_darwin.c
// Copyright 2020 The IREE Authors // // Licensed under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // NOTE: must be first to ensure that we can define settings for all includes. #include "iree/bas...
NadinOk/chat
client/src/logic/chat_window/mx_run_chat_list.c
// // Created by <NAME> on 22.11.2020. // #include <client.h> #include <mx_data.h> #include <mx_connection.h> #define GET (void *)-1 void chat_list_del(t_list **list) { while (*list) { t_chat *chat = (t_chat *)(*list)->data; mx_pop_front(list); mx_chat_del(&chat); } } void mx_append...
smagill/opensphere-desktop
open-sphere-base/test-support/src/main/java/io/opensphere/core/matchers/URLComparator.java
<reponame>smagill/opensphere-desktop<filename>open-sphere-base/test-support/src/main/java/io/opensphere/core/matchers/URLComparator.java package io.opensphere.core.matchers; import java.net.URL; import java.util.Comparator; /** * Compares two url's by comparing their string representations. * */ public cl...
leetobin/firebrick
coreboot/src/vendorcode/amd/agesa/f14/Proc/CPU/Family/0x10/cpuF10Utilities.c
<gh_stars>1-10 /* $NoKeywords:$ */ /** * @file * * AMD Family_10 specific utility functions. * * Provides numerous utility functions specific to family 10h. * * @xrefitem bom "File Content Label" "Release Content" * @e project: AGESA * @e sub-project: CPU/F10 * @e \$Revision: 37150 $ @e \$Date: 2010-0...
daweedchb/java-mirea
3rd-sem/prac6/src/test/java/SortTest.java
import org.junit.Before; import org.junit.Test; import java.util.Arrays; import static org.junit.Assert.*; public class SortTest { private Student[] iDNumber; private SortingStudentsByGPA[] GPASort; @Before public void setUp() { iDNumber = new Student[5]; GPASort = new SortingStuden...
fergy/aplit_linux-5
arch/mips/include/asm/mach-loongson32/irq.h
/* * Copyright (c) 2011 <NAME> <<EMAIL>> * * IRQ mappings for Loongson 1 * * 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 ...
leyan95/pocket
src/main/java/org/hv/pocket/utils/sm4/Sm4Utils.java
package org.hv.pocket.utils.sm4; import java.util.Base64; import java.util.regex.Matcher; import java.util.regex.Pattern; public class Sm4Utils { private static final Pattern PATTERN = Pattern.compile("\\s*|\t|\r|\n"); public void setSecretKey(String secretKey) { this.secretKey = secretKey; } ...
BlackWalker01/BlackLogic
DarkLogic/Operator/Boolean/equal.h
/*===--- equal.h - header for DarkLogic library --------------*- C++ -*-===* * * Part of the DarkLogic Project, under the CC0 license. * See https://creativecommons.org/publicdomain/zero/1.0/deed.fr for license information. * *===----------------------------------------------------------------------===* * * This ...
13732226055/codeBackup
Ali/src/Wangyi/countWays.java
package Wangyi; import java.util.ArrayList; import java.util.List; import java.util.Scanner; import java.util.function.IntPredicate; import java.util.regex.Matcher; import java.util.regex.Pattern; /* * 有数组penny,penny中所有的值都为正数且不重复。每个值代表一种面值的货币,每种面值的货币可以使用任意张,再给定一个整数aim(小于等于1000)代表要找的钱数,求换钱有多少种方法。 给定数组penny及它的大小(小于等于...
GPUPeople/cuRE
source/CUDARaster/App.hpp
<filename>source/CUDARaster/App.hpp<gh_stars>10-100 /* * Copyright (c) 2009-2011, NVIDIA Corporation * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Redistributions of sou...
calocan/urbinsight
src/store.js
<reponame>calocan/urbinsight /** * Created by <NAME> on 2017.11.29 * Copyright (c) 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 limitat...
madeyoga/PortableAudioBot
src/main/java/guild/IGuildAudioManager.java
<reponame>madeyoga/PortableAudioBot package guild; import net.dv8tion.jda.api.entities.Guild; import java.util.Map; public interface IGuildAudioManager { GuildAudioState getAudioState(Guild guild); Map<String, GuildAudioState> getAudioStates(); void removeAudioState(Guild guild); }
woohoou/aws-sdk-cpp
aws-cpp-sdk-ecs/include/aws/ecs/model/PlacementStrategy.h
/* * Copyright 2010-2017 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. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" fil...