repo_name
stringlengths
6
101
path
stringlengths
4
300
text
stringlengths
7
1.31M
cstom4994/SourceEngineRebuild
src/game/shared/tf/entity_halloween_pickup.cpp
<reponame>cstom4994/SourceEngineRebuild //========= Copyright Valve Corporation, All rights reserved. ============// // // Purpose: CTF HealthKit. // //=============================================================================// #include "cbase.h" #include "entity_halloween_pickup.h" #ifdef GAME_DLL #include "item...
Synclavier/Software
Code/Includes/FlatCarbon/CMPRComponent.h
#warning CMPRComponent.h is not available on Mac OS X
jensdietrich/se-teaching
visitor/src/main/java/nz/ac/vuw/jenz/visitor/iteration3/Expression.java
package nz.ac.vuw.jenz.visitor.iteration3; /** * Abstract visitable type, implemented by Term and Condition. * @author <NAME> */ public interface Expression { public void accept(ExpressionVisitor visitor); }
persequor-com/valqueries-sql
core/src/test/java/com/valqueries/DatabaseTest.java
/* Copyright (C) Persequor ApS - All Rights Reserved * Unauthorized copying of this file, via any medium is strictly prohibited * Proprietary and confidential * Written by Persequor Development Team <<EMAIL>>, 2020-12-02 */ package com.valqueries; import static org.junit.Assert.assertEquals; import org.junit.Befor...
ignmiz/ATC_Console
test/suits/nav/test_atcairport.h
#ifndef TEST_ATCAIRPORT_H #define TEST_ATCAIRPORT_H #include "atcairport.h" #include <QTest> #include <QObject> class Test_ATCAirport : public QObject { Q_OBJECT private slots: void test_constructObject_correct(); void test_constructObject_incorrectLat(); void test_constructObject_incorrectLon(); ...
zerowind1997/bookstore
src/main/java/edu/uc/action/BaseAction.java
package edu.uc.action; import com.opensymphony.xwork2.ActionContext; public abstract class BaseAction extends com.opensymphony.xwork2.ActionSupport { /** * */ private static final long serialVersionUID = 2509226703864561709L; private final String AREANAME_KEY = "areaName"; protected String area...
npocmaka/Windows-Server-2003
shell/comctl32/v6/tvpaint.c
<gh_stars>10-100 #include "ctlspriv.h" #include "treeview.h" #include "image.h" extern void TruncateString(char *sz, int cch); void TV_GetBackgroundBrush(PTREE pTree, HDC hdc) { if (pTree->clrBk == (COLORREF)-1) { if (pTree->ci.style & WS_DISABLED) pTree->hbrBk = FORWARD_WM_CT...
spiritl7db/uni-app
packages/uni-quickapp-native/lib/manifest/base-parser.js
const ATTRS = { 'name': 'name', 'versionName': 'versionName', 'versionCode': 'versionCode' } function merge(to, from) { Object.keys(ATTRS).forEach(name => { if (!to[name]) { to[name] = from[name] } }) } module.exports = function parseBase(manifest, manifestJson) { merge(manife...
sgenoud/federa
framework/signatures.py
<filename>framework/signatures.py import base64 import hashlib from datetime import datetime, timezone from urllib.parse import urlparse from email.utils import format_datetime import requests from cryptography.hazmat.primitives import hashes from cryptography.hazmat.primitives.asymmetric import padding from cryptog...
francesco-p/FACIL
src/approach/dmc.py
<filename>src/approach/dmc.py import torch from torch import nn from copy import deepcopy from argparse import ArgumentParser from datasets.data_loader import get_loaders from .incremental_learning import Inc_Learning_Appr from datasets.exemplars_dataset import ExemplarsDataset class Appr(Inc_Learning_Appr): """...
mirreck/my4x
my4x-core/src/test/java/net/my4x/tasks/SVGFontTasksTest.java
<reponame>mirreck/my4x package net.my4x.tasks; import java.io.IOException; import org.junit.Ignore; import org.junit.Test; public class SVGFontTasksTest { private static final String SRC_PATH = "C:\\tmp\\TESTME\\mix.svg"; @Ignore @Test public void test() throws IOException { SVGFont...
hyshi-cn/oapi-sdk-java
larksuite-oapi/src/main/java/com/larksuite/oapi/service/search/v2/model/DataSourcePatchReqBody.java
// Code generated by lark suite oapi sdk gen package com.larksuite.oapi.service.search.v2.model; import com.google.gson.annotations.SerializedName; public class DataSourcePatchReqBody { @SerializedName("name") private String name; @SerializedName("state") private Integer state; @SerializedName("des...
xanderflood/math-circle
app/controllers/teacher/priorities_controller.rb
class Teacher::PrioritiesController < Teacher::BaseController before_action :set_threshold before_action :set_last_semester DEFAULT_THRESHOLD = 4 def manage end def reset unless @threshold = ensure_int(@threshold) flash[:alert] = "Please choose a threshold that is an integer." render :man...
seigodev/emwiki
emwiki/symbol/symbol_html_builder.py
import glob import os from symbol.models import Symbol from symbol.symbol_maker.processor import Processor from django.conf import settings class SymbolHtmlBuilder: """Create symbol HTML files from HTMLized MML. """ from_dir = settings.MML_HTML_DIR to_dir = Symbol.get_htmlfile_dir() def update_...
quantumlaser/code2016
LeetCode/Answers/Leetcode-cpp-solution/string/132_Palindrome Partitioning II.cpp
<filename>LeetCode/Answers/Leetcode-cpp-solution/string/132_Palindrome Partitioning II.cpp<gh_stars>0 /* Given a string s, partition s such that every substring of the partition is a palindrome. Return the minimum cuts needed for a palindrome partitioning of s. For example, given s = "aab", Return 1 since the palind...
strogiyotec/leetcode-oo
src/main/java/leetcode/oo/ll/ListHasCycle.java
package leetcode.oo.ll; import java.util.IdentityHashMap; import leetcode.oo.ListNode; //https://leetcode.com/problems/linked-list-cycle/ final class ListHasCycle { boolean hasCycle(ListNode head) { final IdentityHashMap<ListNode, Boolean> map = new IdentityHashMap<>(); ListNode next = head; ...
zmlcoder/rpcx
rpcx-parent/rpcx-core/src/main/java/com/zmlcoder/rpcx/registry/IRegistry.java
package com.zmlcoder.rpcx.registry; import java.util.List; import com.zmlcoder.rpcx.common.RpcxUrl; import com.zmlcoder.rpcx.config.RpcxReferenceConfig; import com.zmlcoder.rpcx.config.RpcxRegistryConfig; public interface IRegistry { void init(RpcxRegistryConfig config); List<RpcxUrl> lookup(RpcxReferenceConfig ...
nareshbhusal/repass
client/src/repass.js
import axios from 'axios'; const { URL } = process.env; axios.defaults.withCredentials = true; const repass= axios.create({ baseURL: URL, withCredentials: true, headers: { crossDomain: true, 'Content-Type': 'application/json' }, }) repass.defaults.withCredentials = true export default repass;
daihanqiao/TanglePay-Extension
src/panels/user/wallets/index.js
<reponame>daihanqiao/TanglePay-Extension<filename>src/panels/user/wallets/index.js import React from 'react' import { CopyToClipboard } from 'react-copy-to-clipboard' import { Base, I18n } from '@tangle-pay/common' import { useGetNodeWallet } from '@tangle-pay/store/common' import { Nav, SvgIcon, Toast } from '@/common...
mosajjal/vte-290
debug.c
/* * Copyright (C) 2002,2003 Red Hat, Inc. * * This is free software; you can redistribute it and/or modify it under * the terms of the GNU Library General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is...
wenxuejiang610/Loser
loser-tests/src/test/java/com/loserico/io/PathSeparatorTest.java
package com.loserico.io; import org.junit.Test; public class PathSeparatorTest { @Test public void testSeparator() { String path = "/sishuok/master/server1"; String[] paths = path.split("/"); for (int i = 0; i < paths.length; i++) { String string = paths[i]; System.out.println(string); } } }
moutainhigh/attemper
attemper-common/src/main/java/com/github/attemper/common/param/dispatch/arg/ext/TradeDateArgParam.java
package com.github.attemper.common.param.dispatch.arg.ext; import com.github.attemper.common.param.CommonParam; import lombok.ToString; import org.apache.commons.lang.StringUtils; import java.util.regex.Pattern; @ToString public class TradeDateArgParam implements CommonParam { protected String calendarName; ...
AndreFx/ReceiptOrganizer
src/main/webapp/resources/theme1/js/test/app/actions/receipts/receiptsActions.test.js
<reponame>AndreFx/ReceiptOrganizer<filename>src/main/webapp/resources/theme1/js/test/app/actions/receipts/receiptsActions.test.js<gh_stars>0 import configureStore from "redux-mock-store"; import thunk from "redux-thunk"; import fetchMock from "fetch-mock"; import * as actions from "../../../../app/actions/receipts/rec...
jbcoe/CppSandbox
TemplatedFunctionRecursion/TemplatedFunctionRecursion.cpp
#include <iostream> #include <functional> template <int depth> struct unary_recurser { template <typename T> static T apply(std::function<T(T)> f, T t) { static_assert(depth > 0, "Recursion depth must be greater than 0"); return unary_recurser<depth - 1>::apply(f, f(t)); } }; template <> struct unary_...
leweihe/busStop
src/main/java/com/linde/web/rest/resourceassembler/impl/BusRouteAssemblerMapperImpl.java
package com.linde.web.rest.resourceassembler.impl; import javax.inject.Inject; import javax.validation.constraints.NotNull; import com.linde.web.rest.resourceassembler.mapper.BusRouteResourceMapper; import org.apache.commons.lang.Validate; import org.springframework.stereotype.Component; import com.linde.dto.BusRout...
WilliamDeveloper/udemy_cursos
nodejs/014_formacao-javascript-mestre-jedi/missao-estelar/segunda-missao/VictorGeruso/js/main.js
//6 //Segunda Missão Estelar JS //7 /* Aperte os cintos para adentrarmos ao hiper-espaço rumo a uma nova Missão estelar JS! :) */ //8 console.log("++++Item 8++++"); var missao = "Segunda Missão Estelar JS"; console.log("Texto: " + missao + " - Tipo: " + typeof missao); //9 console.log("++++Item 9++++"); var hiperes...
lenaWitterauf/Domain-Guided-Monitoring
tests/src/training/models/test_multilabel_metrics.py
import unittest import numpy as np from numpy.lib.ufunclike import fix import tensorflow as tf from src.training.models import metrics class TestMultilabelMetrics(unittest.TestCase): def test_multilabel(self): y_true = self._get_y_true_multilabel() y_pred = self._get_y_pred_multilabel() f...
byteclubfr/eatlas
client/src/components/Spinner.js
<reponame>byteclubfr/eatlas import React, { Component } from 'react' import Icon from './Icon' class Spinner extends Component<{ small: boolean }> { render() { return ( <Icon icon={`spinner fa-pulse${this.props.small ? '' : ' is-size-2'}`} /> ) } } export default Spinner
528246253/gwnHicc
app/src/main/java/com/hicc/cloud/teacher/activity/FeedBackActivity.java
package com.hicc.cloud.teacher.activity; import android.content.pm.PackageInfo; import android.content.pm.PackageManager; import android.os.Bundle; import android.support.v7.app.AppCompatActivity; import android.view.View; import android.widget.Button; import android.widget.EditText; import android.widget.ImageView; i...
devrelm/storybook
examples/polymer-cli/src/stories/core.stories.js
import { storiesOf, addParameters } from '@storybook/polymer'; const globalParameter = 'globalParameter'; const chapterParameter = 'chapterParameter'; const storyParameter = 'storyParameter'; addParameters({ globalParameter }); storiesOf('Core|Parameters', module) .addParameters({ chapterParameter }) .add( '...
RanerL/analyzer
tests/juliet/testcases/CWE78_OS_Command_Injection/s04/CWE78_OS_Command_Injection__char_listen_socket_system_84.h
<gh_stars>10-100 /* TEMPLATE GENERATED TESTCASE FILE Filename: CWE78_OS_Command_Injection__char_listen_socket_system_84.h Label Definition File: CWE78_OS_Command_Injection.one_string.label.xml Template File: sources-sink-84.tmpl.h */ /* * @description * CWE: 78 OS Command Injection * BadSource: listen_socket...
Exactpro/jackfish
api/src/main/java/com/exactprosystems/jf/api/common/Zip.java
/******************************************************************************* * Copyright 2009-2018 Exactpro (Exactpro Systems Limited) * * 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 a...
CNICCSTNET/onoscnic
drivers/fujitsu/src/test/java/org/onosproject/drivers/fujitsu/FujitsuDriverHandlerAdapter.java
<filename>drivers/fujitsu/src/test/java/org/onosproject/drivers/fujitsu/FujitsuDriverHandlerAdapter.java /* * Copyright 2016-present Open Networking Laboratory * * 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 c...
jiandiao/flowable-engine
modules/flowable-event-registry/src/main/java/org/flowable/eventregistry/impl/cmd/GetEventDefinitionCmd.java
<gh_stars>1000+ /* Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, softw...
dmccubbing/symbiose
usr/lib/gnome-screensaver/webos.js
//Load dependencies Webos.require('/usr/share/css/gnome-screensaver/main.css', function() { if (window.GnomeScreenSaver) { //If library is already loaded return; } var GnomeScreenSaver = {}; GnomeScreenSaver._status = false; GnomeScreenSaver._locked = false; GnomeScreenSaver._$screensaver = $(); GnomeScreenS...
ethansaxenian/RosettaDecode
lang/Ruby/hello-world-graphical-1.rb
require 'gtk2' window = Gtk::Window.new window.title = 'Goodbye, World' window.signal_connect(:delete-event) { Gtk.main_quit } window.show_all Gtk.main
noahbarnette/ugahacks5
sponsors/migrations/0006_sponsor_scanned_hackers.py
<filename>sponsors/migrations/0006_sponsor_scanned_hackers.py<gh_stars>1-10 # Generated by Django 2.2.10 on 2020-06-02 17:36 from django.conf import settings from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USE...
sethsandaru/passing-through-note
src/libraries/PathInternalHook.js
import {HookProvider} from "@/classes/HookProvider"; const HOOKS = { GLOBAL_BODY_CLICK: new HookProvider(), }; export { HOOKS }
SusmithaGU/clouddriver
clouddriver-cloudrun/src/main/java/com/netflix/spinnaker/clouddriver/cloudrun/cache/Keys.java
<reponame>SusmithaGU/clouddriver<filename>clouddriver-cloudrun/src/main/java/com/netflix/spinnaker/clouddriver/cloudrun/cache/Keys.java /* * Copyright 2022 OpsMx, 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 obt...
Teslos/libgeodecomp
src/libgeodecomp/loadbalancer/loadbalancer.cpp
<gh_stars>0 #include <libgeodecomp/loadbalancer/loadbalancer.h> namespace LibGeoDecomp { std::vector<std::size_t> LoadBalancer::initialWeights(std::size_t items, const std::vector<double>& rankSpeeds) { std::size_t size = rankSpeeds.size(); double totalSum = sum(rankSpeeds); std::vector<std::size_t> ret(s...
whatshow/WifiManager
demo/linux-headers-4.2.0-27/arch/arm/include/asm/elf.h
<reponame>whatshow/WifiManager #ifndef __ASMARM_ELF_H #define __ASMARM_ELF_H #include <asm/auxvec.h> #include <asm/hwcap.h> #include <asm/vdso_datapage.h> /* * ELF register definitions.. */ #include <asm/ptrace.h> #include <asm/user.h> struct task_struct; typedef unsigned long elf_greg_t; typedef unsigned long el...
EuPathDB-Infra/WDK
Model/src/main/java/org/gusdb/wdk/model/Reference.java
package org.gusdb.wdk.model; /** * Represents a reference in a wdk model. Has a two-part name: set and element * * Created: Tue May 11 15:17:30 EDT 2004 * * @author <NAME> * @version $Revision$ $Date$ $Author$ */ public class Reference extends WdkModelBase { private String setName; private String ele...
viridia/coda
libs/coda/backend/cpp/__init__.py
<reponame>viridia/coda<filename>libs/coda/backend/cpp/__init__.py def createGenerators(options): from . import gen return (gen.CppHeaderGenerator('cpp', options), gen.CppGenerator('cpp', options))
wwjiang007/spring-xd
spring-xd-dirt/src/main/java/org/springframework/xd/dirt/container/initializer/package-info.java
/** * Package for container context initializer classes. */ package org.springframework.xd.dirt.container.initializer;
elevation/spree
vendor/plugins/state_machine/test/app_root/config/environment.rb
<reponame>elevation/spree require 'config/boot' Rails::Initializer.run do |config| config.cache_classes = false config.whiny_nils = true config.active_record.observers = :switch_observer end
exactpro/clearth
clearth-core/src/test/java/com/exactprosystems/clearth/automation/ActionGeneratorTest.java
<reponame>exactpro/clearth /****************************************************************************** * Copyright 2009-2019 Exactpro Systems Limited * https://www.exactpro.com * Build Software to Test Software * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file exc...
qinFamily/dangchat-sdk
actor-sdk/sdk-core/runtime/runtime-shared/src/main/java/im/actor/runtime/crypto/primitives/curve25519/fe_mul121666.java
package im.actor.runtime.crypto.primitives.curve25519; // Disabling Bounds checks for speeding up calculations /*-[ #define J2OBJC_DISABLE_ARRAY_BOUND_CHECKS 1 ]-*/ public class fe_mul121666 { //CONVERT #include "fe.h" //CONVERT #include "long.h" /* h = f * 121666 Can overlap h with f. Preconditi...
DepartmentOfHealth-htbhf/htbhf-claimant-service
api/src/test/java/uk/gov/dhsc/htbhf/claimant/ReportPaymentIntegrationTest.java
<filename>api/src/test/java/uk/gov/dhsc/htbhf/claimant/ReportPaymentIntegrationTest.java package uk.gov.dhsc.htbhf.claimant; import com.fasterxml.jackson.core.JsonProcessingException; import io.zonky.test.db.AutoConfigureEmbeddedDatabase; import org.junit.jupiter.api.AfterEach; import org.junit.jupiter.api.BeforeEach;...
zhaochaohui/MFC
cow2/TeeChartAPI/calendarseries.h
#if !defined(AFX_CALENDARSERIES_H__E63CB61D_1DE1_4EFF_9BAF_D9C37BA183FA__INCLUDED_) #define AFX_CALENDARSERIES_H__E63CB61D_1DE1_4EFF_9BAF_D9C37BA183FA__INCLUDED_ #if _MSC_VER > 1000 #pragma once #endif // _MSC_VER > 1000 // Machine generated IDispatch wrapper class(es) created by Microsoft Visual C++ // NOTE: Do not ...
AsahiOS/gate
usr/src/lib/libnisdb/yptol/shim_hooks.h
/* * CDDL HEADER START * * The contents of this file are subject to the terms of the * Common Development and Distribution License, Version 1.0 only * (the "License"). You may not use this file except in compliance * with the License. * * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE * o...
jaybarra/emp3-web
src/sdk/core/api/cmapi/cmapi.js
<filename>src/sdk/core/api/cmapi/cmapi.js // Define cmapi namespaces var cmapi = cmapi || {}; cmapi.channel = cmapi.channel || {}; cmapi.channel.schema = cmapi.channel.schema || {}; cmapi.channel.handler = cmapi.channel.handler || {}; cmapi.channel.publisher = cmapi.channel.publisher || {}; cmapi.channel.support = cmap...
SWAT-engineering/bird
nest/test/engineering/swat/nest/CommonTestHelper.java
package engineering.swat.nest; import engineering.swat.nest.core.bytes.ParseLogTarget; import java.io.IOException; import java.net.URI; import java.net.URISyntaxException; import java.net.URL; import java.nio.ByteBuffer; import java.nio.file.FileSystem; import java.nio.file.FileSystems; import java.nio.file.FileVisitR...
zx1239856/Indulger
app/src/main/java/com/inftyloop/indulger/viewholder/BaseRecyclerViewHolder.java
<filename>app/src/main/java/com/inftyloop/indulger/viewholder/BaseRecyclerViewHolder.java package com.inftyloop.indulger.viewholder; import androidx.annotation.NonNull; import androidx.recyclerview.widget.RecyclerView; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; ...
victor141516/core
database/mongo/storage_test.go
package mongo import ( "testing" "time" "github.com/staticbackendhq/core/internal" ) func TestFileStorage(t *testing.T) { f := internal.File{ AccountID: adminAccount.ID, Key: "key", URL: "https://test", Size: 123456, Uploaded: time.Now(), } id, err := datastore.AddFile(confDBName, ...
ghsecuritylab/embeddedsw
XilinxProcessorIPLib/drivers/axiethernet/doc/html/api/xaxiethernet_8c.js
var xaxiethernet_8c = [ [ "XAxiEthernet_CfgInitialize", "group__axiethernet__v5__8.html#gabe257efe600df43d8148c772ea3878f9", null ], [ "XAxiEthernet_ClearBadFrmRcvOption", "group__axiethernet__v5__8.html#gaab45f6c7a4440bc3f58d4ff971e6be7b", null ], [ "XAxiEthernet_ClearOptions", "group__axiethernet__v5__8.h...
agriyakhetarpal/dffml
tests/test_ci.py
""" Validate that CI and source and docs are in sync """ import re import os import pathlib import unittest import platform import itertools import subprocess from typing import Callable, List, Union from dffml.plugins import PACKAGE_DIRECTORY_TO_NAME class IgnoreFile: """ Checks if files should be ignored b...
CLOSER-Cohorts/archivist
react/src/components/Dashboard.js
import React, { useEffect } from 'react'; import { useSelector } from 'react-redux' import { get } from 'lodash' import clsx from 'clsx'; import { makeStyles } from '@material-ui/core/styles'; import { WhoAmI } from '../actions' import CssBaseline from '@material-ui/core/CssBaseline'; import Drawer from '@material-ui/c...
rmolinamir/algorithms-and-data-structures
02. Big O Notation/measurePerformance.js
<filename>02. Big O Notation/measurePerformance.js const { performance } = require('perf_hooks'); /** * Measures the amount of time that it took to run a synchronous callback function. * @param {Function} callback - Callback function to be measured. */ function measurePerformance(callback) { const t1 = performanc...
jonasmue/adventofcode20
day18/common.py
def get_input(): with open("input.txt") as f: return f.read().splitlines() def evaluate(rpn, operators): num_stack = [] for token in rpn: if token in operators.keys(): arg_2 = num_stack.pop() if token == "+": num_stack[-1] += arg_2 elif t...
emanuellucas2/OVPsimProject
doc/api/ocl/html/search/variables_7.js
<filename>doc/api/ocl/html/search/variables_7.js<gh_stars>0 var searchData= [ ['l',['l',['../structoctiaAddrExpS.html#a47288a36a60fefd9c028e44fa6bc8ad8',1,'octiaAddrExpS']]] ];
kimjand/cxf
rt/rs/description-swagger/src/main/java/org/apache/cxf/jaxrs/swagger/openapi/SwaggerToOpenApiConversionUtils.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 m...
BSFrance/BSFrance
stm32/libraries/uCGUI391/src/Pack/pack7.c
#include "../../uCGUI391/Font/F08_1.c" #include "../../uCGUI391/Font/F08_ASCII.c" #include "../../uCGUI391/Font/F10S_1.c" #include "../../uCGUI391/Font/F10S_ASCII.c" #include "../../uCGUI391/Font/F10_1.c" #include "../../uCGUI391/Font/F10_ASCII.c" #include "../../uCGUI391/Font/F13B_1.c" #include "../../uCGUI391/Font/F1...
ScalablyTyped/SlinkyTyped
b/babel__types/src/main/scala/typingsSlinky/babelTypes/anon/BuildUndefinedNode.scala
package typingsSlinky.babelTypes.anon import typingsSlinky.babelTypes.indexTs37Mod.Node 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 BuildUndefinedNode exte...
jerryleooo/rpc-benchmark-1
netty-server/src/main/java/benchmark/rpc/netty/serializer/FastestSerializer.java
<filename>netty-server/src/main/java/benchmark/rpc/netty/serializer/FastestSerializer.java<gh_stars>100-1000 package benchmark.rpc.netty.serializer; import java.io.IOException; import benchmark.rpc.protocol.Request; import benchmark.rpc.protocol.Response; import io.netty.buffer.ByteBuf; public class FastestSerialize...
jamesanto/scala
test/files/jvm/t11321.scala
<filename>test/files/jvm/t11321.scala<gh_stars>1000+ package t11321 { final class V(val x: Int) extends AnyVal object V { def get: Option[V] = null } final class U(val y: String) extends AnyVal object U { def get: Option[U] = null } final class W[T](val z: T) extends AnyVal object W { def get: Option[W[In...
Ramzawulf/Bebocho
Bebocho/Assets/Plugins/iOS/RobotKit.framework/Headers/RKAbortMacroCommand.h
// // RKAbortMacroCommand.h // RobotKit // // Created by <NAME> on 8/30/11. // Copyright 2011 Orbotix Inc. All rights reserved. // /*! @file */ #import <RobotKit/RKDeviceCommand.h> /*! * @brief Class to encapsulate a save macro command. * * This class is used to send a macro to abort the current running comm...
ceekay1991/AliPayForDebug
AliPayForDebug/AliPayForDebug/AlipayWallet_Headers/AUFileManager.h
<reponame>ceekay1991/AliPayForDebug // // 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 AUFileManager : NSObject { } + (id)themeFilePath:(id)arg1 inBundle...
lechium/iPhoneOS_12.1.1_Headers
System/Library/PrivateFrameworks/LinkPresentation.framework/LPiTunesMediaAsset.h
/* * This header is generated by classdump-dyld 1.0 * on Saturday, June 1, 2019 at 6:48:22 PM Mountain Standard Time * Operating System: Version 12.1.1 (Build 16C5050a) * Image Source: /System/Library/PrivateFrameworks/LinkPresentation.framework/LinkPresentation * classdump-dyld is licensed under GPLv3, Copyright © 201...
tharindusathis/sourcecodes-of-CodeReadingTheOpenSourcePerspective
ace/tao/tao_idl/be_include/be_union_branch.h
<reponame>tharindusathis/sourcecodes-of-CodeReadingTheOpenSourcePerspective // be_union_branch.h,v 1.16 2000/09/20 21:09:16 parsons Exp // ============================================================================ // // = LIBRARY // TAO IDL // // = FILENAME // be_union_branch.h // // = DESCRIPTION /...
Si-elegans/Web-based_GUI_Tools
static-src/js/ember.js/controllers/subtypeControllers/pointSourceLight.js
<reponame>Si-elegans/Web-based_GUI_Tools<gh_stars>1-10 App.PointSourceLightController = Ember.ObjectController.extend({ needs: ['phototaxisExact','interval'], updateWavelength: function(){ var slider = this.get('model.pointLightWavelengthSlider'); if(slider){ slider.setValue(parseFloat(this.get('model.waveLe...
Eanes-dev/Ecommerce
Server/controllers/assessment.js
<filename>Server/controllers/assessment.js const assessmentModel = require('../models/assessment') const userModel = require('../models/user') const clotherController = require('../controllers/clother') module.exports = class AssessmentController { static async create( assessment, userId, clotherId ) { ...
kiro112/impok
src/interfaces/http/joblevel/JobLevelSerializer.js
'use strict'; module.exports = { serialize({ id, level }) { return { id, level }; } };
Maycoooonm/test
api/object/ICoverArt.java
package org.xbmc.api.object; import java.io.Serializable; public interface ICoverArt extends Serializable { long getCrc(); int getFallbackCrc(); int getId(); int getMediaType(); String getName(); String getPath(); String getThumbUrl(); }
notaphplover/catan-heroes
src/io/github/notaphplover/catan/core/game/trade/ITradeDiscard.java
<gh_stars>0 package io.github.notaphplover.catan.core.game.trade; public interface ITradeDiscard extends IReference { IReference getTrade(); }
bobheadlabs/sourcegraph
internal/database/migration/definition/read.go
package definition import ( "fmt" "io" "io/fs" "net/http" "path/filepath" "sort" "strconv" "strings" "github.com/keegancsmith/sqlf" "gopkg.in/yaml.v2" "github.com/sourcegraph/sourcegraph/internal/lazyregexp" "github.com/sourcegraph/sourcegraph/lib/errors" ) func ReadDefinitions(fs fs.FS, schemaBasePath ...
darizagrl/internet-service-provider-servlet
src/main/java/com/provider/model/service/TariffService.java
<reponame>darizagrl/internet-service-provider-servlet package com.provider.model.service; import com.provider.model.dao.DaoFactory; import com.provider.model.dao.TariffDao; import com.provider.model.dao.exception.DAOException; import com.provider.model.entity.Tariff; import org.apache.logging.log4j.LogManager; import ...
Paradem/material-ui
src/styles/transformers/index.js
import autoprefixer from './autoprefixer'; import callOnce from './callOnce'; import rtl from './rtl'; export { autoprefixer, callOnce, rtl, };
GameModsBR/VoiceChat
src/main/java/ovr/paulscode/sound/libraries/ChannelLWJGLOpenAL.java
<filename>src/main/java/ovr/paulscode/sound/libraries/ChannelLWJGLOpenAL.java package ovr.paulscode.sound.libraries; import org.lwjgl.BufferUtils; import org.lwjgl.openal.AL10; import paulscode.sound.Channel; import javax.sound.sampled.AudioFormat; import java.nio.ByteBuffer; import java.nio.IntBuffer; import java.ut...
yuanfayang/wms-parent
wms-bill-manage/wms-bill-manage/src/main/java/com/deer/wms/bill/manage/web/MtAlonePrintModelController.java
package com.deer.wms.bill.manage.web; import com.deer.wms.project.seed.core.result.Result; import com.deer.wms.project.seed.core.result.ResultGenerator; import com.deer.wms.bill.manage.model.MtAlonePrintModel; import com.deer.wms.bill.manage.model.MtAlonePrintModelCriteria; import com.deer.wms.bill.manage.servic...
woshiluo/oi
cf/old/1307/A.cpp
#include <cstdio> inline int Min( int a, int b ) { return a < b? a: b; } const int N = 110; int T, n, d; int a[N]; int main() { #ifdef woshiluo freopen( "A.in", "r", stdin ); freopen( "A.out", "w", stdout ); #endif scanf( "%d", &T ); while( T -- ) { scanf( "%d%d", &n, &d ); for( int i = 1; i <= n; i ++ ) { ...
ericchill/Bonsai
runtime/include/postProcessModules.h
#pragma once #include <cassert> #ifdef USE_MPI #include <mpi.h> #endif #include <vector> #include <sys/time.h> struct DENSITY { private: #define G_CONST 6.672e-8 #define M_SUN 1.989e33 #define PARSEC 3.08567802e18 #define ONE_YEAR 3.1558149984e7 // #define DMSTARTID 200000000 // ...
haadiraja/Candy-Machine-V2
js/node_modules/@magic-sdk/provider/dist/es/modules/base-module.js
import { __read, __spread } from "tslib"; import { MagicOutgoingWindowMessage, MagicIncomingWindowMessage } from '@magic-sdk/types'; import { createMalformedResponseError, MagicRPCError } from '../core/sdk-exceptions'; import { standardizeJsonRpcRequestPayload } from '../core/json-rpc'; import { createPromiEvent } from...
Havoc-OS/androidprebuilts_go_linux-x86
test/fixedbugs/issue12944.go
<filename>test/fixedbugs/issue12944.go // errorcheck // Copyright 2015 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package main import "unsafe" const ( _ = unsafe.Sizeof([0]byte{}[0]) // ERROR "out of bounds" )
NavpreetDevpuri/Python
web_programming/get_top_hn_posts.py
from __future__ import annotations import requests def get_hackernews_story(story_id: str) -> dict: url = f"https://hacker-news.firebaseio.com/v0/item/{story_id}.json?print=pretty" return requests.get(url).json() def hackernews_top_stories(max_stories: int = 10) -> list[dict]: """ Get the top max_s...
mdamyanova/C-Sharp-Web-Development
06.JavaScript Core/07.01.JS Fundamentals/12.Exercises-objects, associative arrays, sets, maps/01.HeroicInventory.js
<gh_stars>1-10 function heroicInventory(input) { // the result is an array of objects, where each object have // name, level and array of items let heroes = []; for(let line of input){ line = line.split(" / "); // check if the hero has items let items = line.length > 2 ? line[2]....
cameronhunter/alexa
packages/alexa-constants/src/index.js
<gh_stars>10-100 import AudioPlayer from './AudioPlayer'; import CardType from './CardType'; import ConnectedHome from './ConnectedHome'; import Dialog from './Dialog'; import Intent from './Intent'; import PlaybackController from './PlaybackController'; import Request from './Request'; import SpeechType from './Speech...
ox-it/cucm-http-api
src/main/java/com/cisco/axl/api/_8/XParameterMember.java
<reponame>ox-it/cucm-http-api<gh_stars>1-10 package com.cisco.axl.api._8; import javax.xml.bind.JAXBElement; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlElementRef; import javax.xml.bind.annotation.XmlType; /** * <p>Java clas...
adelbennaceur/carla
Util/OSM2ODR/src/netbuild/NBPTStop.cpp
<filename>Util/OSM2ODR/src/netbuild/NBPTStop.cpp<gh_stars>1-10 /****************************************************************************/ // Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.org/sumo // Copyright (C) 2001-2020 German Aerospace Center (DLR) and others. // This program and the accompany...
cognitom/processwarp
src/core/builtin_gui.hpp
#pragma once #include <string> #include <vector> #include "process.hpp" #include "type.hpp" #include "vmachine.hpp" namespace processwarp { class BuiltinGuiDelegate { public: virtual ~BuiltinGuiDelegate(); virtual void builtin_gui_send_command(Process& proc, const nid_t& dst_nid, Module::Type module, ...
MicheleBarcelos/Chocolateria
src/DAO/VendedorDAO.java
<reponame>MicheleBarcelos/Chocolateria /*The MIT License (MIT) Copyright (c) 2016 MicheleBarcelos 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 limita...
israelmessias/Atividades_Java
Atividades/src/JDBC/DAOTeste.java
<gh_stars>0 package src.JDBC; import java.sql.SQLException; public class DAOTeste { public static void main(String[] args) throws SQLException { DAO dao = new DAO(); String sql = "INSERT INTO pessoa (nome, id) VALUES(?,?)"; dao.input(sql, "<NAME>", 10); } }
eggman87/localr-android-mvp
app/src/test/java/com/eggman/localr/UnitTestRxScheduler.java
package com.eggman.localr; import com.eggman.localr.utils.RxScheduler; import rx.Observable; /** * Created by mharris on 7/30/16. * eggmanapps. */ public class UnitTestRxScheduler implements RxScheduler { @Override public <T> Observable.Transformer<T, T> applySchedulers() { return observable -> ob...
msleprosy/cloud-pipeline
client/src/components/search/SearchDialog.js
/* * Copyright 2017-2019 EPAM Systems, Inc. (https://www.epam.com/) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless requ...
ILLKO/scalawiki
scalawiki-core/src/main/scala/org/scalawiki/dto/cmd/query/prop/Info.scala
<gh_stars>10-100 package org.scalawiki.dto.cmd.query.prop import org.scalawiki.dto.cmd._ import org.scalawiki.dto.cmd.query.Module /** * ?action=query&amp;prop=info * */ case class Info(override val params:InfoParam*) extends Module[PropArg]("in", "info", "Get basic page information.") with PropArg with ArgWithPa...
businesscode/BCD-UI
Server/src/main/java/de/businesscode/bcdui/web/cacheControl/HttpServletResponseInvocationHandler.java
/* Copyright 2010-2017 BusinessCode GmbH, Germany 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...
pekim/gobbi
internal/generate/functions.go
package generate import ( "github.com/pekim/jennifer/jen" ) type Functions []*Function func (ff Functions) init(ns *Namespace, namePrefix string) { for _, function := range ff { function.init(ns, nil, namePrefix) } } func (ff Functions) versionList() Versions { var versions Versions for _, f := range ff { ...
swax/Quakespasm-Rift
Quake/cmd.c
/* Copyright (C) 1996-2001 Id Software, Inc. Copyright (C) 2002-2009 <NAME> and others Copyright (C) 2007-2008 <NAME> 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, ...
vanvught/GD32F107RC-DMX512-RDM
lib-rdmnet/include/llrponlylightset.h
<gh_stars>100-1000 /** * @file llrponlylightset.h * */ /* Copyright (C) 2019-2020 by <NAME> mailto:<EMAIL> * * 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, includ...
mimelator/apv
APV/src/main/java/com/arranger/apv/menu/CommandBasedMenu.java
<reponame>mimelator/apv package com.arranger.apv.menu; import com.arranger.apv.APVPlugin; import com.arranger.apv.Main; import com.arranger.apv.cmd.Command; public abstract class CommandBasedMenu extends BaseMenu { protected static class MenuAdapterCallback extends APVPlugin { @FunctionalInterface public in...
dingfeng/galaxykube
pkg/operator/v1/polardbx/controllers/polardbxmonitor_controller.go
<reponame>dingfeng/galaxykube /* Copyright 2022 Alibaba Group Holding Limited. 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 app...