max_stars_count
int64
301
224k
text
stringlengths
6
1.05M
token_count
int64
3
727k
385
<gh_stars>100-1000 import tensorflow as tf import os def get_var_to_restore_list(ckpt_path, mask=[], prefix="", ignore_list=[]): """ Get all the variable defined in a ckpt file and add them to the returned var_to_restore list. Allows for partially defined model to be restored fomr ckpt files. Args: ...
1,292
442
<reponame>lukefelsberg/ObEngine<gh_stars>100-1000 #pragma once namespace sol { class state_view; }; namespace obe::Config::Bindings { void LoadClassConfigurationManager(sol::state_view state); void LoadClassVersion(sol::state_view state); };
100
468
<gh_stars>100-1000 /*============================================================================= GLIntercept - OpenGL intercept/debugging tool Copyright (C) 2004 <NAME> Licensed under the MIT license - See Docs\license.txt for details. ==========================================================================...
2,870
5,169
<filename>Specs/c/f/d/PYTest/0.1.0/PYTest.podspec.json { "name": "PYTest", "version": "0.1.0", "summary": "PYTest.NIUBI", "description": "\"PYTest.NIUBIXXXXX\"", "homepage": "https://github.com/langruiqiang/PYTest", "license": "Apache License, Version 2.0", "authors": { "yonyou_einvoice": "<EMAIL>" ...
291
1,639
#include<bits/stdc++.h> using namespace std; const int N = 3e5 + 9, mod= 1e9 + 7; int power(long long n, long long k) { int ans = 1 % mod; n %= mod; if (n < 0) n += mod; while (k) { if (k & 1) ans = (long long) ans * n % mod; n = (long long) n * n % mod; k >>= 1; } return ans; } int ...
921
878
#! /usr/bin/env python # standard library imports import sys # NOQA import sys to allow for mocking sys.argv in tests import argparse import textwrap from pandashells.lib import module_checker_lib, arg_lib module_checker_lib.check_for_modules(['pandas']) from pandashells.lib import io_lib import numpy as np impor...
523
317
<reponame>amroibrahim/DIYDoom #include "Map.h" using namespace std; Map::Map(SDL_Renderer *pRenderer, std::string sName, Player *pPlayer) : m_pRenderer(pRenderer), m_sName(sName), m_XMin(INT_MAX), m_XMax(INT_MIN), m_YMin(INT_MAX), m_YMax(INT_MIN), m_iAutoMapScaleFactor(15), m_iLumpIndex(-1), m_pPlayer(pPlayer) { ...
2,381
335
<filename>A/Amount_noun.json { "word": "Amount", "definitions": [ "A quantity of something, especially the total of a thing or things in number, size, value, or extent.", "A sum of money." ], "parts-of-speech": "Noun" }
100
679
/************************************************************** * * 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 y...
576
715
# # Copyright 2019 The FATE 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 appli...
5,596
735
package org.mvel2.util; import org.mvel2.templates.TemplateRuntime; import java.util.HashMap; import java.util.HashSet; import java.util.Map; import java.util.Set; /** * This class implements a version of the * quicksort algorithm using a partition * algorithm that does not rely on the * first element of the arr...
774
348
<filename>docs/data/leg-t1/069/06909211.json {"nom":"Saint-Jean-d'Ardières","circ":"9ème circonscription","dpt":"Rhône","inscrits":2739,"abs":1509,"votants":1230,"blancs":7,"nuls":13,"exp":1210,"res":[{"nuance":"REM","nom":"Mme <NAME>","voix":447},{"nuance":"LR","nom":"<NAME>","voix":264},{"nuance":"FN","nom":"<NAME>",...
320
5,169
{ "name": "PlistSwift", "version": "1.0.2", "summary": "Easy property list manager that is written in Swift 3", "description": "Easy property list manager that is written in Swift 3!", "homepage": "https://github.com/aybekckaya/Plist", "license": { "type": "MIT", "file": "LICENSE" }, "authors": ...
246
348
<reponame>chamberone/Leaflet.PixiOverlay<filename>docs/data/leg-t2/025/02503032.json<gh_stars>100-1000 {"nom":"Autechaux","circ":"3ème circonscription","dpt":"Doubs","inscrits":300,"abs":135,"votants":165,"blancs":10,"nuls":6,"exp":149,"res":[{"nuance":"LR","nom":"<NAME>","voix":92},{"nuance":"REM","nom":"M. <NAME>","v...
138
345
import unittest from programy.clients.events.console.config import ConsoleConfiguration from programy.clients.restful.flask.google.config import GoogleConfiguration from programy.config.file.yaml_file import YamlConfigurationFile class GoogleConfigurationTests(unittest.TestCase): def test_init(self): ya...
1,661
488
<gh_stars>100-1000 // cc.in40 // provoke exprlist->next double-set char *strtok(char *str, char *delim); int main() { int tok; char *delim; tok = strtok(((char *)0) , delim); }
81
432
/* __gmp_fscanf_funs -- support for formatted input from a FILE. THE FUNCTIONS IN THIS FILE ARE FOR INTERNAL USE ONLY. THEY'RE ALMOST CERTAIN TO BE SUBJECT TO INCOMPATIBLE CHANGES OR DISAPPEAR COMPLETELY IN FUTURE GNU MP RELEASES. Copyright 2001 Free Software Foundation, Inc. This file is part of the GNU M...
542
5,169
{ "name": "CKPodTest", "version": "0.0.1", "summary": "CKPodTest CKPodTest CKPodTest CKPodTest", "description": "这是我的描述这是我的描述这是我的描述这是我的描述这是我的描述这是我的描述这是我的描述这是我的描述这是我的描述这是我的描述这是我的描述", "homepage": "https://github.com/Cheng455153666/CKPodTest", "license": "MIT", "authors": { "CherryKing": "<EMAIL>" }, ...
343
679
/************************************************************** * * 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 y...
11,193
337
import subprocess import os import contextlib @contextlib.contextmanager def env(name, value): previous = os.environ.get(name) os.environ[name] = value try: yield finally: if previous is not None: os.environ[previous] def test_settings(): output = subprocess.check_out...
224
769
<filename>node_modules/usb/libusb_config/config.h /* Nothing. Configured by gyp. */
28
945
<reponame>floryst/ITK<filename>Modules/ThirdParty/VNL/src/vxl/core/vnl/vnl_decnum_traits.cxx // This is core/vnl/vnl_decnum_traits.cxx #include "vnl_decnum_traits.h" const vnl_decnum vnl_numeric_traits<vnl_decnum>::zero = vnl_decnum(0L); const vnl_decnum vnl_numeric_traits<vnl_decnum>::one = vnl_decnum(1L); const vnl_...
185
2,757
/*++ Copyright (c) 2004 - 2014, Intel Corporation. All rights reserved.<BR> This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License that accompanies th...
4,515
330
{ "acno": "T13046", "acquisitionYear": 2010, "all_artists": "<NAME>", "catalogueGroup": {}, "classification": "sculpture", "contributorCount": 1, "contributors": [ { "birthYear": 1921, "date": "1921\u20131990", "displayOrder": 1, "fc": "<NAME>", "gender": "Male"...
500
575
<filename>chrome/updater/win/user_info.cc // Copyright 2019 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 "chrome/updater/win/user_info.h" #include <string> #include "base/check.h" #include "chrome/updater/w...
676
5,169
{ "name": "CXBaseModeules", "version": "1.0.0", "summary": "CXBaseModeules CXBaseModeules.", "description": "this is a test ,if you find this ,you can move to other", "homepage": "https://github.com/MissYouAllDay/CXBaseModeules", "license": { "type": "MIT", "file": "LICENSE" }, "authors": { ...
279
2,151
<filename>components/language/core/browser/pref_names.cc // Copyright 2017 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 "components/language/core/browser/pref_names.h" namespace language { namespace prefs { ...
160
930
import os cwd = os.getcwd() ignorepath = os.path.join(cwd, '.gitignore') def getIgnoreFiles(): ignorefiles = [] with open(ignorepath) as ignore: files = ignore.readlines() for file in files: file = ''.join(file.splitlines()) if (file != ''): filepath = ...
233
647
<reponame>gilbertguoze/trick trick.mc_set_enabled(0) trick.mc_set_enabled(1) trick.mc_set_dry_run(1) trick.mc_set_num_runs(10) trick.mc_add_range(0,2) trick.mc_add_range(5,7) var0 = trick.MonteVarFile("test_file_var" , "RUN_test/monte_data.txt" , 2 ) var1 = trick.MonteVarFile("test_file_var2" , "RUN_test/monte_da...
340
439
<gh_stars>100-1000 import java.util.HashMap; import java.util.Map; class WordCount { public Map<String, Integer> phrase(String input) { Map<String, Integer> countMap = new HashMap<>(); input = input.trim().toLowerCase().replaceAll("([^A-Za-z0-9']|\\B'|'\\B)", " "); String[] tokenizedInput ...
293
8,238
<gh_stars>1000+ /* * %CopyrightBegin% * * Copyright Ericsson AB 2008-2021. 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...
20,284
357
<filename>rest-backend/src/main/java/org/eclipse/steady/backend/model/LibraryId.java /** * This file is part of Eclipse Steady. * * 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 * * ...
2,882
3,787
<reponame>hubert-he/FATE<filename>python/federatedml/conf/setting_conf/Evaluation.json { "module_path": "federatedml/evaluation", "param_class" : "federatedml/param/evaluation_param.py/EvaluateParam", "need_deploy": false, "role": { "guest|host|arbiter": { "program": "ev...
177
739
<gh_stars>100-1000 package org.fxmisc.richtext; import javafx.beans.value.ObservableValue; import javafx.geometry.Bounds; import javafx.scene.control.IndexRange; import javafx.util.Duration; import org.fxmisc.richtext.model.StyledDocument; import org.reactfx.Subscription; import org.reactfx.Suspendable; import org.rea...
7,914
5,169
<filename>Specs/1/4/c/CCAutocomplete/0.0.6/CCAutocomplete.podspec.json { "name": "CCAutocomplete", "version": "0.0.6", "summary": "Autocomplete for UITextField", "platforms": { "ios": "8.0" }, "swift_versions": "4.2", "homepage": "https://github.com/cjcoax/Autocomplete", "license": "MIT", "authors...
313
5,169
<reponame>Gantios/Specs { "name": "TransitionalLoader", "platforms": { "ios": "10.0" }, "summary": "A smooth loader that can be used on any UIView subclass", "requires_arc": true, "version": "0.0.1", "license": { "type": "MIT", "file": "LICENSE" }, "authors": { "<NAME>": "<EMAIL>" },...
260
357
{ "name": "frankly", "version": "1.0.0", "description": "A summary dashboard about the issues/PRs for a set of GitHub repositories", "authors": [ "<NAME> <<EMAIL>>" ], "keywords": [ "web-components", "polymer", "dashboard", "issues", "github", "firebase" ], "repository": { ...
374
940
<filename>examples/core/occlusion_sensitivity.py import tensorflow as tf from tf_explain.core.occlusion_sensitivity import OcclusionSensitivity IMAGE_PATH = "./cat.jpg" if __name__ == "__main__": model = tf.keras.applications.resnet50.ResNet50( weights="imagenet", include_top=True ) img = tf.ker...
355
14,668
// Copyright 2018 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. package org.chromium.chrome.browser.autofill_assistant.details; import static org.chromium.chrome.browser.autofill_assistant.AssistantAccessibilityUtils....
9,309
1,256
from .. utils import TranspileTestCase, BuiltinFunctionTestCase class HexTests(TranspileTestCase): def test_hex(self): self.assertCodeExecution(""" print(hex(15)) print(hex(3735928559)) print(hex(0xb2594c0a7500649c618b365c0663d9d8556be9784939edb663267c0a8288)) ...
194
14,668
// Copyright 2019 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. #ifndef CHROME_BROWSER_UI_WEBUI_CHROMEOS_SYNC_OS_SYNC_HANDLER_H_ #define CHROME_BROWSER_UI_WEBUI_CHROMEOS_SYNC_OS_SYNC_HANDLER_H_ #include "components/sy...
770
4,614
<reponame>mfloresn90/AndroidSources package com.koushikdutta.ion.bitmap; import com.koushikdutta.async.util.LruCache; class LruBitmapCache extends LruCache<String, BitmapInfo> { private SoftReferenceHashtable<String, BitmapInfo> soft = new SoftReferenceHashtable<String, BitmapInfo>(); public void putSoft(Str...
613
45,293
<reponame>Mu-L/kotlin<filename>kotlin-native/backend.native/tests/interop/concurrentTerminate/main.cpp #include "testlib_api.h" #include <iostream> #include <thread> #include <future> #include <chrono> #include <vector> #include <csignal> // signal.h using namespace std; static int runConcurrent() { std::vecto...
495
14,668
<gh_stars>1000+ // Copyright 2018 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. #ifndef CHROME_BROWSER_VR_ELEMENTS_SCROLLABLE_ELEMENT_H_ #define CHROME_BROWSER_VR_ELEMENTS_SCROLLABLE_ELEMENT_H_ #include "base/memory/r...
895
631
/* Copyright 2009-(CURRENT YEAR) <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 writing, so...
1,002
348
{"nom":"Sexey-aux-Forges","dpt":"Meurthe-et-Moselle","inscrits":518,"abs":80,"votants":438,"blancs":52,"nuls":7,"exp":379,"res":[{"panneau":"1","voix":215},{"panneau":"2","voix":164}]}
79
5,893
<filename>deeppavlov/dataset_iterators/ner_few_shot_iterator.py<gh_stars>1000+ # Copyright 2017 Neural Networks and Deep Learning lab, MIPT # # 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 # #...
2,638
429
/******************************************************************************************* * * raylib [textures] example - Image processing * * NOTE: Images are loaded in CPU memory (RAM); textures are loaded in GPU memory (VRAM) * * This example has been created using raylib 1.4 (www.raylib.com) * raylib is ...
2,534
8,027
/* * Copyright (c) Facebook, Inc. and its affiliates. * * 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 applic...
725
2,151
<gh_stars>1000+ // Copyright 2018 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. #ifndef CONTENT_BROWSER_MEDIA_AUDIO_STREAM_BROKER_H_ #define CONTENT_BROWSER_MEDIA_AUDIO_STREAM_BROKER_H_ #include <memory> #include <str...
1,456
2,253
/************************************************************************************ * * * Copyright (c) 2014 - 2018 <NAME> <<EMAIL>> * * ...
1,656
473
<filename>tutorials/W2D5_GenerativeModels/solutions/W2D5_Tutorial2_Solution_fc8cd748.py<gh_stars>100-1000 def loss_gen(disc, x_fake): """Compute the generator loss for `x_fake` given `disc` Args: disc: The generator x_fake (ndarray): An array of shape (N,) that contains the fake samples Returns: nda...
265
7,482
/* * Copyright (c) 2006-2021, RT-Thread Development Team * * SPDX-License-Identifier: Apache-2.0 * * Change Logs: * Date Author Notes * 2020-07-06 thread-liu first version */ #include "board.h" #if defined(BSP_USING_FDCAN1) || defined(BSP_USING_FDCAN2) #include "drv_fdcan.h" //#define ...
4,277
854
__________________________________________________________________________________________________ sample 24 ms submission class Solution: def customSortString(self, s: str, t: str) -> str: order, end = { c: i for i, c in enumerate(s) }, 100 return "".join(sorted(t, key=lambda c: order.get(c, end))) ___...
256
332
<gh_stars>100-1000 // Autogenerated from vk-api-schema. Please don't edit it manually. package com.vk.api.sdk.objects.photos; import com.google.gson.annotations.SerializedName; import com.vk.api.sdk.queries.EnumParam; /** * Reason for the complaint: '0' - spam, '1' - child pornography, '2' - extremism, '3' - violenc...
421
348
{"nom":"Champlitte","circ":"1ère circonscription","dpt":"Haute-Saône","inscrits":1401,"abs":695,"votants":706,"blancs":16,"nuls":6,"exp":684,"res":[{"nuance":"REM","nom":"Mme <NAME>","voix":169},{"nuance":"LR","nom":"<NAME>","voix":144},{"nuance":"DVD","nom":"Mme <NAME>","voix":131},{"nuance":"FN","nom":"Mme <NAME>","v...
298
21,382
import ray ray.init() @ray.remote def f(a: int) -> str: return "a = {}".format(a + 1) @ray.remote def g(s: str) -> str: return s + " world" @ray.remote def h(a: str, b: int) -> str: return a # Make sure the function arg is check print(f.remote(1)) object_ref_str = f.remote(1) # Make sure the Objec...
221
14,668
// Copyright 2019 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 "third_party/blink/renderer/core/animation/animation_timeline.h" #include "base/trace_event/trace_event.h" #include "third_party/blink/renderer/...
2,536
1,338
<gh_stars>1000+ /* This is part of libio/iostream, providing -*- C++ -*- input/output. Copyright (C) 1993 Free Software Foundation This file is part of the GNU IO Library. This library 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...
663
2,753
#ifndef __LSH_TABLE_H__ #define __LSH_TABLE_H__ #include <algorithm> #include <chrono> #include <cstdint> #include <future> #include <limits> #include <stdexcept> #include <string> #include <thread> #include <vector> #include "../falconn_global.h" #include "data_storage.h" namespace falconn { namespace core { class...
4,971
5,937
<gh_stars>1000+ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. /*++ Module Name: memwriter.cpp Abstract: CMilDataStreamWriter. This class manages a ...
5,197
764
<reponame>641589523/token-profile<gh_stars>100-1000 {"symbol": "LATINO","address": "0x567287d4f42086BEAb4b36De9Af21C70aDEc6760","overview":{"en": ""},"email": "<EMAIL>","website": "https://latinotoken.com/","state": "NORMAL","links": {"blog": "https://latinotoken.com/blog/","twitter": "https://twitter.com/latinotoken/"...
137
2,508
<filename>ext/stub/globals/session/child.zep.c #ifdef HAVE_CONFIG_H #include "../../../ext_config.h" #endif #include <php.h> #include "../../../php_ext.h" #include "../../../ext.h" #include <Zend/zend_operators.h> #include <Zend/zend_exceptions.h> #include <Zend/zend_interfaces.h> #include "kernel/main.h" #include ...
410
1,144
<reponame>dram/metasfresh package org.adempiere.ad.trx.processor.api.impl; /* * #%L * de.metas.adempiere.adempiere.base * %% * Copyright (C) 2015 metas GmbH * %% * 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 F...
811
554
<reponame>bgogetap/StickyHeaders<gh_stars>100-1000 package com.brandongogetap.stickyheaders; import android.content.Context; import android.os.Build; import android.view.View; import android.view.ViewGroup; import android.view.ViewGroup.MarginLayoutParams; import android.view.ViewTreeObserver; import androidx.annotat...
7,556
485
<gh_stars>100-1000 import time from machine import WDT # ''' # test default wdt wdt0 = WDT(id=0, timeout=3000) print('into', wdt0) time.sleep(2) print(time.ticks_ms()) # 1.test wdt feed wdt0.feed() time.sleep(2) print(time.ticks_ms()) # 2.test wdt stop wdt0.stop() print('stop', wdt0) # 3.wait wdt work #while True: ...
549
945
/* NrrdIO: stand-alone code for basic nrrd functionality Copyright (C) 2013, 2012, 2011, 2010, 2009 University of Chicago Copyright (C) 2008, 2007, 2006, 2005 <NAME> Copyright (C) 2004, 2003, 2002, 2001, 2000, 1999, 1998 University of Utah This software is provided 'as-is', without any express or implied ...
6,648
1,473
<reponame>JiangJibo/pinpoint<gh_stars>1000+ /* * Copyright 2018 NAVER Corp. * * 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 * * Unl...
3,027
3,573
// basecode.h - originally written and placed in the public domain by <NAME> /// \file /// \brief Base classes for working with encoders and decoders. #ifndef CRYPTOPP_BASECODE_H #define CRYPTOPP_BASECODE_H #include "cryptlib.h" #include "filters.h" #include "algparam.h" #include "argnames.h" NAMESPACE...
2,000
1,180
/* * Copyright(c) 2019 Netflix, Inc. * * This source code is subject to the terms of the BSD 2 Clause License and * the Alliance for Open Media Patent License 1.0. If the BSD 2 Clause License * was not distributed with this source code in the LICENSE file, you can * obtain it at https://www.aomedia.org/license/so...
17,965
3,603
/* * 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, software * distribut...
1,232
892
{ "schema_version": "1.2.0", "id": "GHSA-jh5j-w2c9-jcff", "modified": "2022-05-13T01:49:59Z", "published": "2022-05-13T01:49:59Z", "aliases": [ "CVE-2018-14558" ], "details": "An issue was discovered on Tenda AC7 devices with firmware through V15.03.06.44_CN(AC7), AC9 devices with firmware through V15...
520
411
#!/usr/bin/env python3 """ Automatically generate rainbow grades. usage: python3 auto_rainbow_grades.py <semester> <course> If the instructor chooses to supply a custom_customization.json instead of using the web form this file will always take precedence and overwrite any customization.json generated by the web ui....
2,725
772
/* Copyright 2013 <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 writing,...
1,076
648
<gh_stars>100-1000 /* * Trompeloeil C++ mocking framework * * Copyright <NAME> 2014-2018 * Copyright (C) 2017 <NAME> * * Use, modification and distribution is subject to the * Boost Software License, Version 1.0. (See accompanying * file LICENSE_1_0.txt or copy at * http://www.boost.org/LICENSE_1_0.txt) *...
314
852
<gh_stars>100-1000 #define CATCH_CONFIG_MAIN #include "catch.hpp" #include "DataFormats/Common/interface/DetSetVectorNew.h" #include "DataFormats/Common/interface/ThinnedRefSet.h" #include "SimpleEDProductGetter.h" #include <memory> #include <vector> TEST_CASE("ThinnedRefSet", "[ThinnedRefSet]") { SECTION("Defaul...
1,422
825
package com.didi.hummer.component.list; import android.app.Activity; import android.content.Context; import android.support.v7.widget.GridLayoutManager; import android.support.v7.widget.LinearLayoutManager; import android.support.v7.widget.RecyclerView; import android.support.v7.widget.StaggeredGridLayoutManager; impo...
11,612
852
<filename>DataFormats/L1Trigger/interface/L1EmParticle.h #ifndef L1Trigger_L1EmParticle_h #define L1Trigger_L1EmParticle_h // -*- C++ -*- // // Package: L1Trigger // Class : L1EmParticle // /**\class L1EmParticle \file L1EmParticle.h DataFormats/L1Trigger/interface/L1EmParticle.h \author <NAME> Description: ...
809
612
<filename>SBR/lib/lk/basic_utils_batch.py<gh_stars>100-1000 # Copyright (c) Facebook, Inc. and its affiliates. # All rights reserved. # # This source code is licensed under the license found in the # LICENSE file in the root directory of this source tree. # import torch import torch.nn as nn import torch.nn.functional ...
1,021
1,425
<gh_stars>1000+ /* * 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 * ...
2,349
1,821
<reponame>ggrossman/util<gh_stars>1000+ package com.twitter.util.security; import com.twitter.util.Try; import java.io.File; import javax.net.ssl.KeyManager; import org.junit.Assert; import org.junit.Test; public class Pkcs8KeyManagerFactoryCompilationTest { @Test public void testGetKeyManagers() { File temp...
192
1,845
package org.rajawali3d.materials.plugins; import org.rajawali3d.materials.Material.PluginInsertLocation; import org.rajawali3d.materials.shaders.AShader; import org.rajawali3d.materials.shaders.IShaderFragment; import android.opengl.GLES20; import android.os.SystemClock; public class SpriteSheetMaterialPlugin implem...
1,610
704
<reponame>elandau/governator<gh_stars>100-1000 package com.netflix.governator.autobindmultiple.basic; import com.netflix.governator.annotations.AutoBindSingleton; @AutoBindSingleton(multiple = true, baseClass = BaseForMocks.class) public class MockB implements BaseForMocks { @Override public String getValue()...
126
556
/* * 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 ...
756
369
/* * Copyright 2016 FabricMC * * 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 ...
699
814
<filename>torchrec/datasets/scripts/nvt/01_nvt_preproc.py #!/usr/bin/env python3 # Copyright (c) Meta Platforms, Inc. and affiliates. # All rights reserved. # # This source code is licensed under the BSD-style license found in the # LICENSE file in the root directory of this source tree. import argparse import os impo...
872
1,467
/** * Copyright Soramitsu Co., Ltd. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0 */ #include "interfaces/query_responses/transactions_page_response.hpp" #include "interfaces/transaction.hpp" namespace shared_model { namespace interface { std::string TransactionsPageResponse::toString() const {...
319
1,443
{ "copyright": "<NAME>", "url": "http://snig.ga", "email": "<EMAIL>", "format": "txt" }
45
1,459
/* * * This file is part of the iText (R) project. Copyright (c) 1998-2020 iText Group NV * Authors: <NAME>, <NAME>, et al. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License version 3 * as published by the Free Software Foun...
1,364
3,442
<reponame>wcicola/jitsi /* * Jitsi, the OpenSource Java VoIP and Instant Messaging client. * * Copyright @ 2015 Atlassian Pty 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 * * ...
1,416
356
/* * Copyright (C) 2014 <NAME> (<EMAIL>), University of South Florida * * 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 r...
2,399
522
/** * Copyright (C) 2004-2011 <NAME>. 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 a...
1,647
605
<gh_stars>100-1000 #ifndef INDEXMACROSMODULE_H #define INDEXMACROSMODULE_H #define INDEX_MACROS_MODULE 1 #undef INDEX_MACROS_MODULE #define INDEX_MACROS_MODULE 2 int x = INDEX_MACROS_MODULE; #endif // INDEXMACROSMODULE_H
103
348
<reponame>chamberone/Leaflet.PixiOverlay<filename>docs/data/leg-t2/046/04602226.json<gh_stars>100-1000 {"nom":"Prendeignes","circ":"2ème circonscription","dpt":"Lot","inscrits":176,"abs":75,"votants":101,"blancs":8,"nuls":1,"exp":92,"res":[{"nuance":"SOC","nom":"<NAME>","voix":60},{"nuance":"REM","nom":"<NAME>","voix":...
137
634
<reponame>halotroop2288/consulo<gh_stars>100-1000 /* * Copyright 2000-2012 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...
916
1,655
<reponame>chaosink/tungsten #include "ResourcePackLoader.hpp" #include "TraceableMinecraftMap.hpp" #include "textures/BitmapTexture.hpp" #include "io/FileIterables.hpp" #include "io/JsonDocument.hpp" #include "io/FileUtils.hpp" #include "io/Path.hpp" #include "sampling/UniformSampler.hpp" #include "Debug.hpp" name...
13,067
405
<filename>src/main/java/org/jeecgframework/core/groovy/impl/ScriptImpl.java<gh_stars>100-1000 package org.jeecgframework.core.groovy.impl; import org.jeecgframework.core.groovy.IScript; import org.springframework.stereotype.Component; /** * 系统脚本 */ @Component public class ScriptImpl implements IScript { public Str...
134
5,964
// Copyright 2014 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. #ifndef CallbackStack_h #define CallbackStack_h #include "platform/heap/ThreadState.h" namespace blink { // The CallbackStack contains all the visitor ...
1,400
726
package org.landy.chain.responsibility.demo1; /** * 定义AbstractHandler(抽象处理者),使子类形成一条链 * @author landyl * @create 2:02 PM 05/12/2018 */ public abstract class AbstractHandler { private AbstractHandler nextHandler; public abstract void handleRequest(String condition); public AbstractHandler getNextHand...
183
381
<gh_stars>100-1000 from pypy.interpreter.generator import GeneratorIterator from pypy.module.cpyext.api import build_type_checkers PyGen_Check, PyGen_CheckExact = build_type_checkers("Gen", GeneratorIterator)
70