repo_name
stringlengths
6
101
path
stringlengths
4
300
text
stringlengths
7
1.31M
ScalablyTyped/SlinkyTyped
a/ali-app/src/main/scala/typingsSlinky/aliApp/my/NotifyBLECharacteristicValueChangedOptions.scala
package typingsSlinky.aliApp.my import org.scalablytyped.runtime.StObject import scala.scalajs.js import scala.scalajs.js.`|` import scala.scalajs.js.annotation.{JSGlobalScope, JSGlobal, JSImport, JSName, JSBracketAccess} @js.native trait NotifyBLECharacteristicValueChangedOptions extends BaseOptions[js.Any, js.Any...
annapoulakos/bitburner
archived-scripts/main.js
<reponame>annapoulakos/bitburner import * as food from "lib/food.js"; const SLEEP_DELAY_MS = 3000; function getThreads(ns, server, size) { const [t,u] = ns.getServerRam(server); return ((t-u) / size)|0; } /** @param {NS} ns **/ export async function main(ns) { const server = ns.args[0]; await food.prep(ns, serv...
gitllama/Electron-Edge
SFTP/src/render/actions/index.js
import { createActions } from 'redux-actions'; export default createActions( 'INIT_ASYNCLATEST', 'REDUCER_CHANGE', 'CONNECT_ASYNCLATEST', );
bhargavannem/LASA-AP-CS
LASA-AP-CS-master/Order_InOrder/InOrder.java
public class InOrder { private int numOne; private int numTwo; private int numThree; public InOrder() { numOne = 0; numTwo = 0; numThree = 0; } public InOrder(int n1, int n2, int n3) { numOne = n1; numTwo = n2; numThree = n3; } public v...
ralfwarfelmann0815/synapse
synapse-core/src/test/java/de/otto/synapse/eventsource/DefaultEventSourceTest.java
<filename>synapse-core/src/test/java/de/otto/synapse/eventsource/DefaultEventSourceTest.java package de.otto.synapse.eventsource; import de.otto.synapse.channel.ChannelPosition; import de.otto.synapse.consumer.MessageDispatcher; import de.otto.synapse.endpoint.InterceptorChain; import de.otto.synapse.endpoint.receiver...
COS301-SE-2020/ctrlintelligencecapstone
make_model_classifier/config.py
<reponame>COS301-SE-2020/ctrlintelligencecapstone # Copyright © 2019 by Spectrico # Licensed under the MIT License pre_path = "make_model_classifier/" #model_file = "model-weights-spectrico-mmr-mobilenet-224x224-908A6A8C.pb" # path to the car make and model classifier #model_file = "model-weights-spectrico-mmr-mobile...
Caysen0038/AideWork
aidework-core/src/main/java/org/aidework/core/test/generator/AscllGenerator.java
package org.aidework.core.test.generator; public class AscllGenerator { public static char ascllChar(){ return (char) (33+Math.random()*(127-33+1)); } public static char randomAlphabet(){ return (char) ((65+Math.random()*(90-65+1))+(int)(Math.random()+0.5)*32); } public static ch...
joaoarthurbm/designwizard
resources/test_aplications/labedados/src/Comando.java
<filename>resources/test_aplications/labedados/src/Comando.java<gh_stars>10-100 public enum Comando { DEF,REDUZA,PRINT,EXIT,ERROR; /** * Metodo que seleciona o comando desejado * @param comando * @return um comando */ public static Comando getComando(String comando){ comando = comando.replace(" ","");...
compomics/pladipus
Pladipus-core/src/main/java/com/compomics/pladipus/core/control/util/PladipusFileDownloadingService.java
package com.compomics.pladipus.core.control.util; import java.io.File; import java.io.FileNotFoundException; import java.io.FileOutputStream; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; import java.net.URISyntaxException; import java.net.URL; import org.apache.commons...
dejsha01/armchina-zhouyi
driver/umd/src/utils/log.h
/********************************************************************************** * This file is CONFIDENTIAL and any use by you is subject to the terms of the * agreement between you and Arm China or the terms of the agreement between you * and the party authorised by Arm China to disclose this file to you. * Th...
Q-xyz/meminero
state/tasks.go
package state import ( "context" "strconv" "time" "github.com/go-redis/redis" "github.com/pkg/errors" "github.com/barnbridge/meminero/config" ) func (m *Manager) NextTask(ctx context.Context) (int64, error) { m.logger.Trace("fetching task from state") var task int64 errChan := make(chan error) go func(...
anhem/urchin
src/test/java/urchin/util/PassphraseGeneratorTest.java
<filename>src/test/java/urchin/util/PassphraseGeneratorTest.java package urchin.util; import org.junit.Test; import urchin.model.folder.Passphrase; import static org.assertj.core.api.Assertions.assertThat; public class PassphraseGeneratorTest { @Test public void passphraseIsGeneratedWithProperLength() { ...
mazenmelouk/riptide
riptide-spring-boot-starter/src/main/java/org/zalando/riptide/spring/RiptideRegistrar.java
<gh_stars>0 package org.zalando.riptide.spring; interface RiptideRegistrar { void register(); }
lastaflute/lastaflute
src/main/java/org/lastaflute/web/servlet/request/ResponseHandlingProvider.java
<gh_stars>10-100 /* * Copyright 2015-2021 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 * * http://www.apache.org/licenses/LICENSE-2.0 * * Unles...
stinsonga/geo-prime-workspace
work/examplerYDH.js
<reponame>stinsonga/geo-prime-workspace function my_function200(){ //34796690023970352654651769996240LDofZKKZCwArjdxTTBzOtvwOWjJIIWTd } function my_function201(){ //90726276306066407853646833730153krFCdOcbSYdveYASpRKSoEOzPuMoCZGB } function my_function450(){ //52099692009469556217010773172702eIIcKMaXwBBLyUXgHAYqbpKH...
epsilon-deltta/Code_snippets
java/College_textbook/chap06/src/sec07/FinalClassDemo.java
<filename>java/College_textbook/chap06/src/sec07/FinalClassDemo.java package sec07; class Good { } class Better extends Good { } final class Best extends Better { } // class NumberOne extends Best {} public class FinalClassDemo { public static void main(String[] args) { // new NumberOne(); new Best(); } }
SeussCZ/ngeo
examples/simple.js
/** */ import './simple.css'; import angular from 'angular'; import olMap from 'ol/Map.js'; import olView from 'ol/View.js'; import olLayerTile from 'ol/layer/Tile.js'; import olSourceOSM from 'ol/source/OSM.js'; import ngeoMapModule from 'ngeo/map/module.js'; /** @type {angular.IModule} **/ const module = angular...
woshiluo/oi
luogu.1048.cpp
#include <cstdio> using namespace std; int t,m; int medic[1100],time[1100]; int f[1100],g[1100]; int max(int a,int b){ if(a>b) return a; else return b; } int main(){ scanf("%d%d",&t,&m); for(int i=1;i<=m;i++) scanf("%d%d",&time[i],&medic[i]); for(int i=1;i<=m;i++){ for(int j=t;j>=time[i]...
aram148/libOmexMeta
src/redland/raptor2-2.0.15/src/turtle_parser.h
/* A Bison parser, made by GNU Bison 3.0.2. */ /* Bison interface for Yacc-like parsers in C Copyright (C) 1984, 1989-1990, 2000-2013 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published ...
prashanthr/talk-to-me
src/client/utils/theme.js
import { keys } from 'lodash' import themes from './theme-colors' // build css gradient const getBackgroundCSS = ({ color1, color2, color3 }) => { if (color1 && !color2 && !color3) { return ` background: ${color1}; ` } else { return ` background: ${color1}; /* fallback for old browsers */ ...
pauldevine/fluxengine
arch/victor9k/data_gcr.h
GCR_ENTRY(0x0a, 0x0); GCR_ENTRY(0x0b, 0x1); GCR_ENTRY(0x12, 0x2); GCR_ENTRY(0x13, 0x3); GCR_ENTRY(0x0e, 0x4); GCR_ENTRY(0x0f, 0x5); GCR_ENTRY(0x16, 0x6); GCR_ENTRY(0x17, 0x7); GCR_ENTRY(0x09, 0x8); GCR_ENTRY(0x19, 0x9); GCR_ENTRY(0x1a, 0xa); GCR_ENTRY(0x1b, 0xb); GCR_ENTRY(0x0d, 0xc); GCR_ENTRY(0x1d, 0xd); GCR_ENTRY(0x...
linc101/fission-ui-v2
app/components/EnvironmentForm/index.js
<gh_stars>10-100 /** * * EnvironmentForm * */ import React from 'react'; import { Link } from 'react-router'; import { FormattedMessage } from 'react-intl'; import commonMessages from 'messages'; // import styled from 'styled-components'; class EnvironmentForm extends React.Component { // eslint-disable-line react/pr...
PlasmNetwork/metamask-mobile
app/util/scaling.js
import { Dimensions, PixelRatio } from 'react-native'; //baseModel 0 const IPHONE_6_WIDTH = 375; const IPHONE_6_HEIGHT = 667; //baseModel 1 const IPHONE_11_PRO_WIDTH = 375; const IPHONE_11_PRO_HEIGHT = 812; //baseModel 2 const IPHONE_11_PRO_MAX_WIDTH = 414; const IPHONE_11_PRO_MAX_HEIGHT = 896; const getBaseModel =...
danj3000/ashes-reborn-deck-builder
src/components/decks/index.js
import React, {useContext, useEffect, useState} from 'react'; import {Button, StyleSheet, FlatList, View} from 'react-native'; import {useTheme} from '@react-navigation/native'; import {useTranslation} from 'react-i18next'; import {GlobalContext} from '../../store/global-store'; import DeckListItem from './deck-list-i...
ausseabed/survey-request-and-planning-tool
client/src/store/modules/survey-plan/survey-plan-getters.js
export const id = state => { return state.surveyPlan.id; } export const surveyName = state => { return state.surveyPlan.surveyName; } export const contactPerson = state => { return state.surveyPlan.contactPerson; } export const email = state => { return state.surveyPlan.email; } export const quality = state...
rarog/cardgameengine
src/SettingDialog.h
/* Copyright 2011 <NAME> <<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/LICENSE-2.0 Unless required by applicable law or agreed to in w...
PinkFlufflyLlama/ttauri
src/ttauri/audio/audio_channel_mapping_win32.cpp
// Copyright <NAME> 2021. // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE_1_0.txt or copy at https://www.boost.org/LICENSE_1_0.txt) #include "audio_channel_mapping.hpp" #include <windows.h> #include <ks.h> #include <ksmedia.h> namespace tt { [[nodiscard]] audio_channel...
Yxiaojian/common-admin
src/main/java/com/xieke/admin/web/CodeController.java
package com.xieke.admin.web; import com.xieke.admin.dto.ResultInfo; import com.xieke.admin.service.ICodeService; import org.apache.commons.io.IOUtils; import org.apache.shiro.authz.annotation.RequiresPermissions; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.RequestMa...
nnatnichas/improvedPSO_VMallocation
cloudsim-plus-master/cloudsim-plus-master/cloudsim-plus-examples/src/main/java/org/cloudsimplus/examples/HostsCpuUsageExample.java
/* * CloudSim Plus: A modern, highly-extensible and easier-to-use Framework for * Modeling and Simulation of Cloud Computing Infrastructures and Services. * http://cloudsimplus.org * * Copyright (C) 2015-2016 Universidade da Beira Interior (UBI, Portugal) and * the Instituto Federal de Educação Ciência e...
percyashu/ignite
modules/core/src/test/java/org/apache/ignite/spi/communication/tcp/TcpCommunicationSpiDropNodesTest.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 ...
cwoac/Infinity-Army-Tools
Core/src/main/java/net/codersoffortune/infinity/metadata/Order.java
<filename>Core/src/main/java/net/codersoffortune/infinity/metadata/Order.java package net.codersoffortune.infinity.metadata; import java.util.Objects; public class Order { // "type":"REGULAR","list":1,"total":1 private String type; private int list; private int total; @Override public boolean...
loxal/matcher
dex-it-common/src/main/scala/com/wavesplatform/dex/it/api/responses/dex/OrderBookInfo.scala
package com.wavesplatform.dex.it.api.responses.dex import play.api.libs.json.{Format, Json} case class OrderBookInfo(matchingRules: MatchingRules, restrictions: Option[OrderRestrictions]) object OrderBookInfo { implicit val orderBookInfo: Format[OrderBookInfo] = Json.format }
maykinmedia/bluebottle
bluebottle/common/static/js/plugins/apiary-adapter.js
if ('undefined' === typeof Apiary) { Apiary = {}; if ('undefined' !== typeof window) { window.Apiary = Apiary; } } /* Apiary Adapter for Ember Data based off the DRF2 Adapter */ Apiary.MockSerializer = DS.DRF2Serializer.extend(); Apiary.MockAdapter = DS.DRF2Adapter.extend({ serializer: Api...
prismicio/slice-machine
packages/slice-machine/lib/builders/SliceBuilder/layout/index.js
<reponame>prismicio/slice-machine export { default as Drawer } from "./Drawer"; export { default as FlexEditor } from "./FlexEditor"; export { default as Header } from "./Header"; export { default as SideBar } from "./SideBar"; export { default as Success } from "./Success";
Snewmy/swordie
scripts/field/map921110301.py
# Castle Wall Corner (921110301) | Shade 3rd Job import random if sm.hasQuestCompleted(38074) and not sm.hasQuestCompleted(38075): sm.setPlayerAsSpeaker() sm.removeEscapeButton() sm.startQuest(38075) if not sm.hasReactors(): position = random.randrange(8) sm.spawnReactor(2119007, 936 ...
Scottx86-64/dotfiles-1
source/pkgsrc/lang/maude/patches/patch-src_Mixfix_lexerAux.hh
$NetBSD: patch-src_Mixfix_lexerAux.hh,v 1.2 2015/12/29 23:34:51 dholland Exp $ Fix build with newer bison. --- src/Mixfix/lexerAux.hh.orig 2013-11-28 00:54:39.000000000 +0000 +++ src/Mixfix/lexerAux.hh @@ -27,7 +27,7 @@ //extern int inStackPtr; //extern YY_BUFFER_STATE inStack[]; -void getInput(char* buf, int& re...
okirmis/rails-param-validation
lib/rails-param-validation/errors/missing_parameter_annotation.rb
module RailsParamValidation class MissingParameterAnnotation < StandardError def initialize super "Missing parameter annotation for controller action" end end end
ffc-nectec/ffc-app
app/src/main/java/th/in/ffc/MainActivity.java
/* *********************************************************************** * _ _ _ * ( _ _ | * _ _ _ _ | | * ...
Sergey-Sidorchuk/bot
jsmodule2/16.js
<reponame>Sergey-Sidorchuk/bot // Композиция массивов // Задание // Напиши функцию makeArray(firstArray, secondArray, maxLength) для создания нового массива со всеми элементами двух исходных firstArray и secondArray. Параметр maxLength содержит максимально допустимую длину нового массива. // Если количество элементов ...
andyjost/Sprite
tests/unit_loadsave.py
import cytest # from ./lib; must be first import curry, logging, os from curry.utility import _tempfile from cytest.logging import capture_log class LoadSaveTestCase(cytest.TestCase): def check(self, modulename, has_externs): with _tempfile.TemporaryDirectory() as tmpdir: Module = curry.import_(modulenam...
vaporyorg/safe-browser-extension
app/routes/SafesList/components/Layout.js
<reponame>vaporyorg/safe-browser-extension<gh_stars>1-10 import React, { Component } from 'react' import { Link } from 'react-router-dom' import Page from 'components/Page' import styles from './index.css' class Layout extends Component { render() { const { safes, selectSafe, lockedState, ...
manel1874/libscapi
src/mid_layer/ElGamalEnc.cpp
<gh_stars>100-1000 /** * %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% * * Copyright (c) 2016 LIBSCAPI (http://crypto.biu.ac.il/SCAPI) * This file is part of the SCAPI project. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * Permission is hereby granted, free ...
Ascend/pytorch
src/third_party/hccl/inc/hccl/hccl.h
/** * Copyright 2019-2020 Huawei Technologies 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 applicabl...
OllyHodgson/informed
stories/Intro/index.js
<gh_stars>100-1000 import React from 'react'; import GettingStarted from './GettingStarted'; import FormState from './FormState'; import FormApi from './FormApi'; import WhatElse from './WhatElse'; import UseForm from './UseForm'; import IntroComp from './Intro'; import CustomIntro from './CustomIntro'; const Intro = ...
bjorndm/prebake
code/third_party/bdb/test/com/sleepycat/je/rep/monitor/ProtocolTest.java
/*- * See the file LICENSE for redistribution information. * * Copyright (c) 2002-2010 Oracle. All rights reserved. * * $Id: ProtocolTest.java,v 1.2 2010/01/04 15:51:06 cwl Exp $ */ package com.sleepycat.je.rep.monitor; import java.util.Arrays; import java.util.HashSet; import com.sleepycat.je.rep.impl.RepGrou...
tgiardina/rpp-h
tests/h/schemas/api/group_test.py
import pytest from h.models.group import ( AUTHORITY_PROVIDED_ID_MAX_LENGTH, GROUP_DESCRIPTION_MAX_LENGTH, GROUP_NAME_MAX_LENGTH, GROUP_NAME_MIN_LENGTH, ) from h.schemas import ValidationError from h.schemas.api.group import ( CreateGroupAPISchema, GroupAPISchema, UpdateGroupAPISchema, ) ...
Testiduk/gitlabhq
spec/features/projects/wiki/user_views_wiki_empty_spec.rb
# frozen_string_literal: true require 'spec_helper' RSpec.describe 'Project > User views empty wiki' do let_it_be(:user) { create(:user) } let(:wiki) { create(:project_wiki, project: project) } it_behaves_like 'User views empty wiki' do context 'when project is public' do let(:project) { create(:pro...
Erician/gpdDB
trans/trans.go
package trans import ( "github.com/erician/gpdDB/relog" ) type Trans struct { ID int64 logReocrdSlice []relog.LogRecord } /* Start() error Commit() error Rollback() error */
tsymiar/----
CommonCPlus/CommonCPlus/ice/Ice/EndpointF.h
// ********************************************************************** // // Copyright (c) 2003-2013 ZeroC, Inc. All rights reserved. // // This copy of Ice is licensed to you under the terms described in the // ICE_LICENSE file included in this distribution. // // ***************************************************...
tombrito/tomproject
src/tomPack/swing/TomToolBar.java
package tomPack.swing; import javax.swing.Action; import javax.swing.Icon; import javax.swing.JButton; import javax.swing.JToolBar; public class TomToolBar extends JToolBar { @Override public JButton add(Action a) { JButton btn = new JButton(a); btn.setText(null); btn.setFocusable(false); // ...
SergioCortizo/sistema-gestion-pacientes-ginecologia
src/main/resources/static/js/dni_validator.js
$.validator.addMethod("dniCheck", function(value, element) { if(/^([0-9]{8})*[a-zA-Z]+$/.test(value)){ var numero = value.substr(0,value.length-1); var let = value.substr(value.length-1,1).toUpperCase(); numero = numero % 23; var letra='TRWAGMYFPDXBNJZSQVHLCKET'; letra = letra.substring(numer...
Bhaskers-Blu-Org2/pmod
src/codegen/src/pmodcodegentask.cpp
<reponame>Bhaskers-Blu-Org2/pmod /*** * Copyright (C) Microsoft. All rights reserved. * Licensed under the MIT license. See LICENSE.txt file in the project root for full license information. * * File:pmodcodegentask.cpp ****/ #include <stdio.h> #include <stdlib.h> #include "ToolUtil.h" #include "CodeGenUtil....
vhalbert/oreva
odata-core/src/main/java/org/odata4j/format/xml/EdmxFormatParser.java
<reponame>vhalbert/oreva package org.odata4j.format.xml; import java.util.ArrayList; import java.util.List; import java.util.Map; import java.util.Map.Entry; import org.core4j.Enumerable; import org.core4j.Func1; import org.core4j.Predicate1; import org.odata4j.core.ODataVersion; import org.odata4j.core.OP...
i-Vincent/eshop
single/src/main/java/cn/ivincent/single/service/impl/PromotionCouponServiceImpl.java
package cn.ivincent.single.service.impl; import cn.ivincent.single.entity.PromotionCoupon; import cn.ivincent.single.mapper.PromotionCouponMapper; import cn.ivincent.single.service.IPromotionCouponService; import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; import org.springframework.stereotype.Service...
TCW417/myGarage-1
load-testing/load-test-create-user.js
'use strict'; const faker = require('faker'); const uuid = require('uuid/v4'); const loadTestHelpers = module.exports = {}; loadTestHelpers.create = (requestParams, context, ee, next) => { // properties from my account schema context.vars.username = faker.internet.userName() + uuid(); context.vars.email = fake...
lcxhxf/fullstack_huoshan
ssr/my-blog/client/pages/api/request.js
<gh_stars>0 import axios from './axios'; const request = function (params) { return new Promise((resolve, reject) => { axios(params).then((response) => { if (response && response.code) { let code = response.code; if (code === '0000') { if (resp...
Remmeauth/remme-client-java
src/main/java/io/remme/java/utils/Functions.java
package io.remme.java.utils; import io.remme.java.enums.KeyType; import io.remme.java.enums.Patterns; import io.remme.java.error.RemmeKeyException; import io.remme.java.error.RemmeValidationException; import net.i2p.crypto.eddsa.EdDSASecurityProvider; import org.apache.commons.codec.binary.Base64; import org.apache.co...
ffsclyh/config-lint
linter/tf12parser/parser.go
<reponame>ffsclyh/config-lint package tf12parser import ( "fmt" "io/ioutil" "path/filepath" "strings" "github.com/hashicorp/hcl/v2" "github.com/hashicorp/hcl/v2/hclparse" "github.com/hashicorp/terraform/lang" "github.com/zclconf/go-cty/cty" "github.com/stelligent/config-lint/assertion" ) const maxContextIte...
Robscha11/vis_exc1
node_modules/@tidyjs/tidy/dist/umd/tidy.js
(function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('d3-array')) : typeof define === 'function' && define.amd ? define(['exports', 'd3-array'], factory) : (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.Tid...
demisto/download
web/router_test.go
<gh_stars>1-10 package web import ( "net/http" "net/http/httptest" "testing" "bytes" "strings" "github.com/stretchr/testify/assert" ) func TestRouter(t *testing.T) { f := newHandlerFixture(t) defer f.Close() req, err := http.NewRequest("GET", "http://demisto.com/", nil) if err != nil { t.Fatal(err) } ...
EnigmaOppo/esa-codec-dubbo
codec-common/src/test/java/io/esastack/codec/common/connection/NettyConnectionTest.java
<reponame>EnigmaOppo/esa-codec-dubbo /* * Copyright 2022 OPPO ESA Stack Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * *...
pitty2/bhs
src/bhs/data_designator.c
<reponame>pitty2/bhs<filename>src/bhs/data_designator.c #include <bhs/data.h> /* ----------------------------------------------------------------------- */ int data_des_get( fncrc_t *fncrc, sess_t *sp, data_t *dp, data_des_t **dsg ) { int rc = FNC_OKAY; FNCRC_CHECK; FNC_CHKINP(rc, sp); FNC_CHKINP(rc, dp...
reels-research/iOS-Private-Frameworks
FlightUtilities.framework/FUFlightViewMainView.h
/* Generated by RuntimeBrowser Image: /System/Library/PrivateFrameworks/FlightUtilities.framework/FlightUtilities */ @interface FUFlightViewMainView : UIView - (struct CGSize { double x1; double x2; })intrinsicContentSize; - (struct CGSize { double x1; double x2; })systemLayoutSizeFittingSize:(struct CGSize { dou...
truthiswill/intellij-community
java/java-tests/testData/codeInsight/daemonCodeAnalyzer/quickFix/createEnumConstantFromUsage/before2.java
<filename>java/java-tests/testData/codeInsight/daemonCodeAnalyzer/quickFix/createEnumConstantFromUsage/before2.java // "Create enum constant 'EEE'" "true" enum E { AAA; void t() { <caret>EEE } }
gotaheads/jobq-service
mongodb-rest/index.js
<gh_stars>1-10 var mongodbRest = require('mongodb-rest/server.js'); var defaultLogger = { verbose: function (msg) { // console.log(msg); }, info: function (msg) { console.log(msg); }, warn: function (msg) { console.log(msg); }, error: function (msg) { console.lo...
thrstnh/sda-dropwizard-commons
sda-commons-server-auth-testing/src/test/java/org/sdase/commons/server/opa/testing/test/PrincipalInfo.java
package org.sdase.commons.server.opa.testing.test; @SuppressWarnings("WeakerAccess") public class PrincipalInfo { private String name; private String jwt; private ConstraintModel constraints; private String constraintsJson; private String sub; public String getName() { return name; } public Prin...
Jonathan1214/DC_go
code/mysite__/tests/urls.py
<reponame>Jonathan1214/DC_go from django.urls import path from .import views app_name = 'tests' # 命名空间! # path('', views.index, name='index'), urlpatterns = [ path('', views.index, name='index'), # path('your_name/', views.get_name, name='get_name'), path('meta/', views.meta, name='meta'), path('login/...
salonimalhotra-ui/seo-audits-toolkit
run.py
from toolkit import factory import toolkit if __name__ == "__main__": app = factory.create_app(celery=toolkit.celery) app.run(host='0.0.0.0')
alessiofilippucci/admin-dashboard-material-ui
src/index.js
<gh_stars>0 /* eslint import/extensions: 0 */ import _AnExample from './_AnExample'; import createAppReducer from './reducer'; import adminReducer from './reducer/admin'; import queryReducer from './reducer/admin/resource/list/queryReducer'; export { createAppReducer, adminReducer, queryReducer }; export * from './c...
Narodni-repozitar/oai-pmh-harvester
nr_oai_pmh_harvester/rules/nusl/field598__a.py
<reponame>Narodni-repozitar/oai-pmh-harvester<gh_stars>0 from oarepo_oai_pmh_harvester.decorators import rule @rule("nusl", "marcxml", "/598__/a", phase="pre") def call_note(el, **kwargs): return note(el, **kwargs) # pragma: no cover def note(el, **kwargs): return {"note": [el]}
iberkun/edk2-edkrepo
edkrepo/commands/arguments/maintenance_args.py
<reponame>iberkun/edk2-edkrepo #!/usr/bin/env python3 # ## @file # maintenance_args.py # # Copyright (c) 2020, Intel Corporation. All rights reserved.<BR> # SPDX-License-Identifier: BSD-2-Clause-Patent # COMMAND_DESCRIPTION = 'Performs workspace wide maintenance operations'
KjetilBerg/Verse
src/main/java/com/kbindiedev/verse/gfx/strategy/IMemoryOccupant.java
<filename>src/main/java/com/kbindiedev/verse/gfx/strategy/IMemoryOccupant.java package com.kbindiedev.verse.gfx.strategy; /** About allocatable memory, you can use IMemoryOccupant to describe what is currently occupying a part of memory */ public interface IMemoryOccupant {}
justanindieguy/data-warehouse
backend/models/City.js
const { DataTypes } = require('sequelize'); const sequelize = require('../database/database'); const Company = require('./Company'); const City = sequelize.define( 'City', { id: { type: DataTypes.INTEGER, primaryKey: true, allowNull: false, }, country_id: { type: DataTypes.INTEG...
Pokecube-Development/Pokecube-Revival
src/main/java/pokecube/compat/jei/pokemobs/moves/PokemobMoveCategory.java
<reponame>Pokecube-Development/Pokecube-Revival package pokecube.compat.jei.pokemobs.moves; import java.util.List; import javax.annotation.Nonnull; import mezz.jei.api.IGuiHelper; import mezz.jei.api.gui.ICraftingGridHelper; import mezz.jei.api.gui.IDrawable; import mezz.jei.api.gui.IGuiItemStackGroup; imp...
liuderchi/mcs-ui
src/Icons/svgr/IconAvatar.js
// @flow import * as React from 'react'; type Props = {}; const IconAvatar = (props: Props) => ( <svg fill="currentColor" width="1em" height="1em" viewBox="0 0 300 300" {...props} > <path d="M185.9 209.7v-9.5c8-8.7 14.2-20.1 18.1-33.2 5.8-4.8 9.3-12.1 9.3-19.8 0-5.3-1.6-10.3-4.6-14.7v-26.4...
mchalupa/libdg
tests/slicing/sources/interprocedural3.c
/* check if returning pointer * from function works properly */ int *pick(int *a, int *b) { return b; } int main(void) { int a, b, c; a = 0; b = 1; c = 3; int *p = pick(&a, &b); *p = 13; test_assert(b == 13); return 0; }
Promphut/new-universally
shared/components/molecules/ArticleBoxLarge/index.js
<reponame>Promphut/new-universally import React from 'react'; import { Link } from 'react-router-dom'; import styled from 'styled-components'; import { BGImg, ShareDropdown } from '../../../components'; import Avatar from 'material-ui/Avatar'; import FontIcon from 'material-ui/FontIcon'; import Popover from 'material-u...
Labgoo/PostmanLib--Rings-Twice--Android
library/src/test/java/com/whiterabbit/postman/SimpleClientActivity.java
<reponame>Labgoo/PostmanLib--Rings-Twice--Android package com.whiterabbit.postman; import android.os.Bundle; import android.support.v4.app.FragmentActivity; import com.whiterabbit.postman.oauth.OAuthResponseInterface; /** * Created with IntelliJ IDEA. * User: fedepaol * Date: 12/29/12 * Time: 12:00 PM */ public ...
Alekssasho/sge_source
sge_player/src/exe/MiniDump.h
void sgeRegisterMiniDumpHandler();
Jignesh1996/bcmd-web
app/bayescmd/bcmdModel/bcmd_model.py
import numpy import numpy.random import pprint import tempfile import shutil import csv import os import copy import sys import datetime import subprocess from io import StringIO import collections from .input_creation import InputCreator from ..util import findBaseDir # default timeout, in seconds TIMEOUT = 30 # d...
NovachenFS2/fs2open.github.com
qtfred/src/mission/dialogs/ReinforcementsEditorDialogModel.cpp
#include "ReinforcementsEditorDialogModel.h" #include "ship/ship.h" #include <algorithm> namespace fso { namespace fred { namespace dialogs { ReinforcementsDialogModel::ReinforcementsDialogModel(QObject* parent, EditorViewport* viewport) : AbstractDialogModel(parent, viewport) { initializeData(); } void Reinforcem...
shiguemori/java
fiap-mba-java-persistence/Lab 06/06_MongoDB/src/main/java/br/com/fiap/repository/PessoaRepository.java
<gh_stars>1-10 package br.com.fiap.repository; import java.util.List; import org.springframework.data.mongodb.repository.MongoRepository; import org.springframework.data.mongodb.repository.Query; import br.com.fiap.entity.Pessoa; public interface PessoaRepository extends MongoRepository<Pessoa, String> { // MAPEA...
iron-tech-space/react-tech-design
lib/components/deprecated/Select/Select.js
<reponame>iron-tech-space/react-tech-design import 'antd/es/button/style'; import _Button from 'antd/es/button'; import 'antd/es/typography/style'; import _Typography from 'antd/es/typography'; var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; f...
Bellomia/pyDrude
MathieuModel/PBC/DrawPolarization.py
def DrawPolarization(eigenCs, N, L): # eigenCs being an array of projection coordinates in the free electron basis print('Computing the electron density...') import pylab import numpy import matplotlib.pyplot as plt from mpl_toolkits.mplot3d import Axes3D from BraKet import BraKet from cma...
WoodoLee/TorchCraft
3rdparty/pytorch/test/cpp_extensions/setup.py
import sys import torch.cuda from setuptools import setup from torch.utils.cpp_extension import BuildExtension, CppExtension, CUDAExtension from torch.utils.cpp_extension import CUDA_HOME CXX_FLAGS = [] if sys.platform == 'win32' else ['-g', '-Werror'] ext_modules = [ CppExtension( 'torch_test_cpp_extensi...
ofiriluz/guacamole-server-windows
guacservice/include/guacservice/GuacDefines.h
<filename>guacservice/include/guacservice/GuacDefines.h<gh_stars>1-10 // // Created by oiluz on 9/4/2017. // #ifndef GUACAMOLE_GUACDEFINES_H #define GUACAMOLE_GUACDEFINES_H #define ADD_USER_COMMAND "ADD" #define REMOVE_USER_COMMAND "REMOVE" #define STOP_PROCESS_COMMAND "STOP" #define COMMAND_DELIMITER "/" #define SO...
geant-multicloud/MCMS-mastermind
src/waldur_mastermind/marketplace/migrations/0010_allow_null_widget.py
# Generated by Django 2.2.7 on 2020-01-21 10:34 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('marketplace', '0009_offering_parent'), ] operations = [ migrations.AlterField( model_name='categorycolumn', name='wi...
robhendriks/city-defence
tests/engine/eventbus/test_classes/TestSubscriber.cpp
// // Created by robbie on 12-11-2016. // #include "TestSubscriber.h" TestSubscriber::TestSubscriber() : m_count(0) { } void TestSubscriber::on_event(TestEvent &event) { m_count++; } int TestSubscriber::get_count() const { return m_count; }
snootysoftware/prototypes
monocle/lib/monocle/snippet.rb
<filename>monocle/lib/monocle/snippet.rb require_relative 'snippet/dsl' module Monocle class Snippet class MissingChildSnippetsError < Exception; end attr_reader :mutator attr_accessor :dst attr_accessor :ast_for_snippet_count def initialize(mutator) # When using child_snippets, we need t...
hexoctal/zenith
src/input/keyboard/types/cursor_keys.hpp
/** * @file * @author __AUTHOR_NAME__ <<EMAIL>> * @copyright 2021 __COMPANY_LTD__ * @license <a href="https://opensource.org/licenses/MIT">MIT License</a> */ #ifndef ZEN_INPUT_KEYBOARD_TYPES_CURSORKEYS_HPP #define ZEN_INPUT_KEYBOARD_TYPES_CURSORKEYS_HPP #include "../keys/key.hpp" namespace Zen { /** * @stru...
wish-wish/skyheroes
pratice/Chipmunk-7.0.1/ocpp/include/ChipmunkTileCache.h
<reponame>wish-wish/skyheroes<filename>pratice/Chipmunk-7.0.1/ocpp/include/ChipmunkTileCache.h #include "ObjectiveChipmunk.h" #include "ChipmunkAutoGeometry.h" class ChipmunkCachedTile; /// A tile cache enables an efficient means of updating a large deformable terrain. /// General usage would be to pass a rectangle...
FRCTeam7170/spooky-lib
src/main/java/frc/team7170/lib/oi/LE3DPJoystick.java
package frc.team7170.lib.oi; import edu.wpi.first.wpilibj.GenericHID; import frc.team7170.lib.Name; import java.util.HashMap; import java.util.Map; public final class LE3DPJoystick extends HIDController { public final HIDAxis A_X; public final HIDAxis A_Y; public final HIDAxis A_Z; public final HIDA...
mlopezFC/flow
flow-server/src/test/java/com/vaadin/flow/server/startup/ServletContainerInitializerTest.java
/* * Copyright 2000-2021 <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 ...
tdfischer/rippled
src/websocketpp_02/src/http/constants.hpp
<gh_stars>10-100 /* * Copyright (c) 2011, <NAME>. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright * notice, this li...
ceekay1991/AliPayForDebug
AliPayForDebug/AliPayForDebug/AlipayWallet_Headers/TARPCTask.h
// // Generated by class-dump 3.5 (64 bit) (Debug version compiled Sep 17 2017 16:24:48). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2015 by <NAME>. // #import <objc/NSObject.h> @interface TARPCTask : NSObject { } + (_Bool)updateStorage:(id)arg1 appId:(id)arg2 resultClass:(Class)arg3; + (vo...
scrollytelling/app
app/helpers/analytics_helper.rb
require 'yaml' # Render client-side analytics scripts for published entries. module AnalyticsHelper def google_analytics_script_tag(entry) file = Rails.root.join('config/analytics/google_analytics.yml') analytics = YAML.load_file(file) theme = entry.theming.theme_name if analytics[theme] rende...
maritojhefi/restonovo
resources/quantumpro/vendor/lodash/eachRight.js
module.exports=require("./forEachRight");
nalinimsingh/ITK_4D
Modules/ThirdParty/GDCM/src/gdcm/Source/MediaStorageAndFileFormat/gdcmFileAnonymizer.cxx
<reponame>nalinimsingh/ITK_4D /*========================================================================= Program: GDCM (Grassroots DICOM). A DICOM library Copyright (c) 2006-2011 <NAME> All rights reserved. See Copyright.txt or http://gdcm.sourceforge.net/Copyright.html for details. This softwa...
DeFacto-Team/factom
wsapistructs.go
// Copyright 2016 Factom Foundation // Use of this source code is governed by the MIT // license that can be found in the LICENSE file. package factom // requests type heightRequest struct { Height int64 `json:"height"` } type replayRequest struct { StartHeight int64 `json:"startheight"` EndHeight int64 `json:...
egg82/ECHO-Java
src/main/java/me/egg82/echo/web/models/XKCDSearchModel.java
<gh_stars>0 package me.egg82.echo.web.models; import it.unimi.dsi.fastutil.ints.IntObjectImmutablePair; import org.jetbrains.annotations.NotNull; import java.io.Serializable; import java.util.ArrayList; import java.util.List; import java.util.Objects; public class XKCDSearchModel implements Serializable { privat...