max_stars_count
int64
301
224k
text
stringlengths
6
1.05M
token_count
int64
3
727k
5,133
<filename>processor/src/test/java/org/mapstruct/ap/test/factories/CustomListImpl.java<gh_stars>1000+ /* * Copyright MapStruct Authors. * * Licensed under the Apache License version 2.0, available at http://www.apache.org/licenses/LICENSE-2.0 */ package org.mapstruct.ap.test.factories; import java.util.LinkedList; ...
222
4,140
<reponame>FANsZL/hive /* * 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 (t...
1,474
340
//================================================================================================== /* EVE - Expressive Vector Engine Copyright : EVE Contributors & Maintainers SPDX-License-Identifier: MIT */ //================================================================================================== #pr...
272
1,262
<gh_stars>1000+ /* american fuzzy lop - vaguely configurable bits ---------------------------------------------- Original AFL code written by <NAME> <<EMAIL>> Windows fork written and maintained by <NAME> <<EMAIL>> Copyright 2016 Google Inc. All Rights Reserved. Licensed under the Apache License, ...
4,383
390
package com.rackspacecloud.blueflood.concurrent; import com.codahale.metrics.Gauge; import com.codahale.metrics.MetricRegistry; import com.rackspacecloud.blueflood.utils.Metrics; import java.util.concurrent.ThreadPoolExecutor; public class InstrumentedThreadPoolExecutor { /** * Given a {@link ThreadPoolExec...
735
831
<gh_stars>100-1000 /* * Copyright (C) 2017 The Android Open Source 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 * * Unl...
3,864
534
{ "parent": "mekanism:block/cardboard_box", "textures": { "sides": "mekanism:block/cardboard_box_side_storage", "front": "mekanism:block/cardboard_box_side_storage" } }
77
679
<reponame>Grosskopf/openoffice<filename>main/svx/inc/svx/sdr/contact/viewcontactofunocontrol.hxx<gh_stars>100-1000 /************************************************************** * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distribu...
1,173
502
<reponame>thliang01/arena<filename>sdk/arena-python-sdk/samples/mpijob_test.py #!/usr/bin/env python import os import sys import time from arenasdk.client.client import ArenaClient from arenasdk.enums.types import * from arenasdk.exceptions.arena_exception import * from arenasdk.training.mpi_job_builder import * from a...
993
624
<filename>vpp/algorithms/descriptor_matcher/bruteforce_matcher.hh<gh_stars>100-1000 #pragma once #include <limits> #include <iod/sio_utils.hh> #include <vpp/algorithms/symbols.hh> namespace vpp { template <typename... OPTS> void bruteforce_matcher(int query_size, int train_size, OPTS... opts) { auto o...
566
1,682
<gh_stars>1000+ package com.linkedin.d2.balancer.servers; import com.linkedin.test.util.retry.ThreeRetries; import java.io.IOException; import java.net.URI; import java.util.HashMap; import java.util.Map; import java.util.concurrent.CancellationException; import java.util.concurrent.ExecutionException; import java.uti...
7,836
1,056
/* * 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 ...
3,002
423
// The MIT License (MIT) // Copyright © 2015 AppsLandia. All rights reserved. // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights ...
1,213
2,542
// ------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License (MIT). See License.txt in the repo root for license information. // ------------------------------------------------------------ #include "stdafx.h" #include ...
429
1,350
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. package com.azure.resourcemanager.avs.fluent.models; import com.azure.core.annotation.Fluent; import com.azure.core.management.ProxyResource; import com.azure.cor...
2,332
376
# Copyright (c) OpenMMLab. All rights reserved. import torch from mmfewshot.classification.models.backbones.wrn import (WideResNet, WRN28x10, WRNBlock) def test_wrnblock(): # WRNBlock stride 1 block = WRNBlock(64, 64, 1, 0.0) x = torch.randn(1, 6...
784
879
<gh_stars>100-1000 package org.zstack.sdk; public class EcsImageInventory { public java.lang.String uuid; public void setUuid(java.lang.String uuid) { this.uuid = uuid; } public java.lang.String getUuid() { return this.uuid; } public java.lang.String localImageUuid; pub...
1,312
1,350
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. package com.azure.storage.internal.avro.implementation.schema.complex; import com.azure.storage.internal.avro.implementation.AvroParserState; import com.azure.storage.internal.avro.implementation.schema.AvroCompositeSchema...
2,132
1,459
/** @file ***************************************************************************** Implementation of interfaces for the TinyRAM ALU arithmetic gadgets. See alu_arithmetic.hpp . ***************************************************************************** * @author This file is part of libsnark, develop...
52,544
1,473
<gh_stars>1000+ /* * Autopsy Forensic Browser * * Copyright 2020 Basis Technology Corp. * Contact: carrier <at> sleuthkit <dot> org * * 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 * ...
3,325
1,738
<reponame>brianherrera/lumberyard /* * All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or * its licensors. * * For complete copyright and license terms please see the LICENSE at the root of this * distribution (the "License"). All use of this software is governed by the License, * or, if p...
11,892
1,144
package org.adempiere.ad.trx.processor.spi; /* * #%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 Free Software Foundation, either...
620
373
<reponame>linkingtd/UniAuth package com.oracle.ucm; import javax.xml.bind.JAXBElement; import javax.xml.bind.annotation.XmlElementDecl; import javax.xml.bind.annotation.XmlRegistry; import javax.xml.namespace.QName; /** * This object contains factory methods for each * Java content interface and Java element int...
1,204
530
<gh_stars>100-1000 package org.carlspring.strongbox.providers.repository.proxied; import java.util.Objects; import javax.inject.Inject; import org.carlspring.strongbox.client.RemoteRepositoryRetryArtifactDownloadConfiguration; import org.carlspring.strongbox.client.RestArtifactResolver; import org.carlspring.strongb...
1,186
13,648
<filename>tests/basics/class_new.py try: # If we don't expose object.__new__ (small ports), there's # nothing to test. object.__new__ except AttributeError: print("SKIP") raise SystemExit class A: def __new__(cls): print("A.__new__") return super(cls, A).__new__(cls) def __...
579
1,062
def f(): print 1 return print 2 print 3 print f() print 4
32
310
<filename>gear/software/d/diaspora.json { "name": "diaspora*", "description": "A distributed social network.", "url": "https://joindiaspora.com/" }
55
348
<gh_stars>100-1000 {"nom":"Conques-sur-Orbiel","circ":"1ère circonscription","dpt":"Aude","inscrits":1759,"abs":866,"votants":893,"blancs":23,"nuls":15,"exp":855,"res":[{"nuance":"REM","nom":"M<NAME>","voix":257},{"nuance":"FN","nom":"M. <NAME>","voix":168},{"nuance":"FI","nom":"Mme <NAME>","voix":144},{"nuance":"LR","...
340
411
""" ========================= Fit Hawkes random kernels ========================= This Hawkes EM (`tick.inference.HawkesEM`) algorithm assume that kernels are piecewise constant. Hence it can fit basically any kernel form. However it doesn't scale very well. It has been originally described in this paper: <NAME>., &...
695
346
{ "assets": { "container": { "docker": { "v2-0-0": "adobeplatform/aws-ecr-login:v2.0.0" } } }, "images": { "icon-small": "https://downloads.mesosphere.com/assets/universe/000/ecr-login-icon-small.png", "icon-medium": "https://downloads.mesosphere.com/assets/universe/000/ecr-log...
200
1,061
package org.sword.wechat4j.user; import java.util.List; import org.junit.Before; import org.junit.Test; import org.sword.wechat4j.exception.WeChatException; public class UserTest { private UserManager manager; @Before public void init(){ manager = new UserManager(); } /** * 获取所有的关注者列表 */...
1,762
602
package org.corfudb.generator.operations; import lombok.extern.slf4j.Slf4j; import org.corfudb.generator.Correctness; import org.corfudb.generator.State; import org.corfudb.protocols.wireprotocol.Token; import org.corfudb.runtime.exceptions.TransactionAbortedException; import java.util.List; import java.util.Random; ...
729
348
{"nom":"Lehaucourt","circ":"2ème circonscription","dpt":"Aisne","inscrits":575,"abs":304,"votants":271,"blancs":5,"nuls":2,"exp":264,"res":[{"nuance":"FI","nom":"Mme <NAME>","voix":64},{"nuance":"FN","nom":"Mme <NAME>","voix":56},{"nuance":"LR","nom":"M. <NAME>","voix":49},{"nuance":"DIV","nom":"<NAME>","voix":30},{"nu...
294
348
<gh_stars>100-1000 {"nom":"Maroilles","circ":"12ème circonscription","dpt":"Nord","inscrits":1180,"abs":665,"votants":515,"blancs":34,"nuls":10,"exp":471,"res":[{"nuance":"REM","nom":"<NAME>","voix":277},{"nuance":"FN","nom":"<NAME>","voix":194}]}
98
4,538
<filename>components/drivers/core/base/core/u_ld.c /* * Copyright (C) 2015-2021 Alibaba Group Holding Limited */ #include <errno.h> #include <stddef.h> #include <stdio.h> #include <stdint.h> #if defined(USER_SPACE_DRIVER) && defined(ENABLE_IO_MMAP) #include <iomap.h> #endif #include <drivers/u_ld.h> /** * unifie...
1,370
302
<reponame>FellegaraR/cosmoscout-vr //////////////////////////////////////////////////////////////////////////////////////////////////// // This file is part of CosmoScout VR // // and may be used under the terms of the MIT license. See the LICENSE file fo...
2,898
344
<reponame>PuzeLiu/mushroom-rl from mushroom_rl.environments import LQR from mushroom_rl.solvers.lqr import * from mushroom_rl.utils.numerical_gradient import numerical_diff_function def test_lqr_solver_linear(): lqr = LQR.generate(3) K = compute_lqr_feedback_gain(lqr) K_test = np.array([[0.89908343, 0.,...
2,927
977
#pragma once #include "Post/PostFilter.hpp" namespace acid { class ACID_EXPORT VignetteFilter : public PostFilter { public: explicit VignetteFilter(const Pipeline::Stage &pipelineStage, float innerRadius = 0.15f, float outerRadius = 1.35f, float opacity = 0.85f); void Render(const CommandBuffer &commandBuffer) ove...
254
488
// A test case of a non-canonical loop. // Naively putting openmp parallel for for it is wrong. int a[100], b[100]; int main() { int i,j; int i_ub =100; for (i = 0, j=0 ; i < i_ub ; i++, j++ ) { b[j]=a[i]; } return 0; }
109
803
<reponame>ScriptBox99/Extensible-Storage-Engine // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. #include "resmgremulatorunit.hxx" // Unit test class // ================================================================ class ETLDriverTest : public UNITTEST // ==============================...
21,444
777
<filename>chromecast/browser/android/cast_content_window_android.cc // Copyright 2016 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 "chromecast/browser/android/cast_content_window_android.h" #include "base/an...
1,614
892
{ "schema_version": "1.2.0", "id": "GHSA-92x2-j38r-mm83", "modified": "2022-05-01T02:03:56Z", "published": "2022-05-01T02:03:56Z", "aliases": [ "CVE-2005-1979" ], "details": "Distributed Transaction Controller in Microsoft Windows allows remote servers to cause a denial of service (MSDTC service excep...
1,184
15,577
<filename>utils/grammar-fuzzer/SpaceTransformer.py # -*- coding: utf-8 -*- from grammarinator.runtime.tree import * from itertools import tee, islice, zip_longest import random def single_line_whitespace(node): return _whitespace(node, ' \t') def multi_line_whitespace(node): return _whitespace(node, ' \t\...
499
334
<reponame>gabrielcercel/calvin-base # -*- coding: utf-8 -*- # Copyright (c) 2015 Ericsson AB # # 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....
3,334
14,668
<gh_stars>1000+ // 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. #ifndef IOS_CHROME_BROWSER_UI_TOOLBAR_TOOLBAR_COORDINATOR_DELEGATE_H_ #define IOS_CHROME_BROWSER_UI_TOOLBAR_TOOLBAR_COORDINATOR_DELEGATE_H...
295
1,075
<filename>setup.py # -*- coding: utf-8 -*- # python std lib import os try: from setuptools import setup except ImportError: from distutils.core import setup # if you are using vagrant, just delete os.link directly, # The hard link only saves a little disk space, so you should not care if os.getenv('USER', ''...
906
313
<reponame>jakelishman/qiskit-aer /** * This code is part of Qiskit. * * (C) Copyright IBM 2018, 2019. * * This code is licensed under the Apache License, Version 2.0. You may * obtain a copy of this license in the LICENSE.txt file in the root directory * of this source tree or at http://www.apache.org/licenses/L...
5,512
474
<filename>SXR/tools/blender_addon/gvrf_exporter/__init__.py # Copyright 2015 Samsung Electronics 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/license...
1,948
32,467
<gh_stars>1000+ /* * The MIT License (MIT) * * Copyright (c) 2021 MongoDB, Inc. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the ...
5,640
679
<gh_stars>100-1000 /* * Copyright (C) 2014 The Android Open Source 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 * * Unl...
13,151
310
//============================================================== // Copyright © 2020 Intel Corporation // // SPDX-License-Identifier: MIT // ============================================================= // // PrefixSum: this code sample implements the inclusive scan (prefix sum) in // parallel. That is, given a randomi...
2,418
56,632
import argparse import numpy as np from tf_text_graph_common import * def createFasterRCNNGraph(modelPath, configPath, outputPath): scopesToKeep = ('FirstStageFeatureExtractor', 'Conv', 'FirstStageBoxPredictor/BoxEncodingPredictor', 'FirstStageBoxPredictor/ClassPredictor', ...
5,563
2,151
/* * Copyright (c) 2013 The WebRTC project authors. All Rights Reserved. * * Use of this source code is governed by a BSD-style license * that can be found in the LICENSE file in the root of the source * tree. An additional intellectual property rights grant can be found * in the file PATENTS. All contribut...
3,550
348
{"nom":"<NAME>","circ":"3ème circonscription","dpt":"Cher","inscrits":269,"abs":135,"votants":134,"blancs":6,"nuls":5,"exp":123,"res":[{"nuance":"SOC","nom":"<NAME>","voix":80},{"nuance":"REM","nom":"<NAME>","voix":43}]}
89
4,036
<gh_stars>1000+ class WrongPair<L, R> implements Serializable{ private final L left; // BAD private final R right; // BAD: L and R are not guaranteed to be serializable public WrongPair(L left, R right){ ... } ... } class Pair<L extends Serializable, R extends Serializable> imple...
276
4,339
/* * 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 ...
1,850
428
package org.test; import loon.Stage; import loon.canvas.LColor; import loon.component.table.LTable; import loon.component.table.LTable.TableView; public class TableTest extends Stage { @Override public void create() { TableView view = new TableView(); // 设定表头名称 // view.columnNames("1","2","3","4"); // 设定对应...
494
1,351
<reponame>kevaundray/research<filename>mining/mining.py import pyethereum u = pyethereum.utils import time #These are the operations that will end up in the tape ops = [ lambda x, y: x+y % 2**256, lambda x, y: x*y % 2**256, lambda x, y: x % y if y > 0 else x+y, lambda x, y: x & y, lambda x, y: x | ...
1,337
389
{ "id": "image-1aae8f0716", "alt": "Adobe Systems Logo and Wordmark in PNG format", "title": "Adobe Systems Logo and Wordmark", "src": "/core/conf/coretest/settings/wcm/templates/testtemplate/structure.coreimg.png/structure/jcr%3acontent/root/image_template/1490005239000/adobe-systems-logo-and-wordmark....
902
2,293
/* Copyright (c) 2012 mbed.org */ #ifndef THREAD_H #define THREAD_H #include <stdint.h> #include "cmsis_os.h" #define DEFAULT_STACK_SIZE 0x1000 namespace rtos { /*! The Thread class allow defining, creating, and controlling thread functions in the system. */ class Thread { public: /*! Create a new thread, and ...
973
407
<gh_stars>100-1000 package com.alibaba.tesla.appmanager.common.enums; /** * @author <EMAIL> */ public enum HostDeployType { /** * 共享 */ SHARE, /** * 独占 */ EXCLUSIVE; }
108
460
/**************************************************************************** ** ** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies). ** All rights reserved. ** Contact: Nokia Corporation (<EMAIL>) ** ** This file is part of the QtDeclarative module of the Qt Toolkit. ** ** $QT_BEGIN_LICENSE:LGP...
7,629
421
<reponame>hamarb123/dotnet-api-docs #using <System.dll> #using <System.Drawing.dll> #using <System.Windows.Forms.dll> // <snippet1> using namespace System::Drawing; using namespace System::Windows::Forms; public ref class Form1: public Form { private: TabControl^ tabControl1; TabPage^ tabPage1; ...
466
460
<gh_stars>100-1000 #include "../../../src/declarative/util/qdeclarativeopenmetaobject_p.h"
37
1,369
<reponame>saqibali-2k/installer<gh_stars>1000+ #!/usr/bin/env python # -*- coding: utf-8 -*- import unittest import sys import glob import yaml ASSETS_DIR = "" class TestMachinesetsServerGroup(unittest.TestCase): def setUp(self): """Parse the MachineSets into a Python data structure.""" self.ma...
489
569
// Copyright 2019 DeepMind Technologies 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 applicable l...
1,008
466
// // TransitionPatch.h // TransitionPatch // // Created by muukii on 2019/05/13. // Copyright © 2019 muukii. All rights reserved. // #import <UIKit/UIKit.h> //! Project version number for TransitionPatch. FOUNDATION_EXPORT double TransitionPatchVersionNumber; //! Project version string for TransitionPatch. FOUN...
144
541
<reponame>michelcareau/DSpace<filename>dspace-server-webapp/src/main/java/org/dspace/app/rest/model/EntityTypeRest.java /** * The contents of this file are subject to the license and copyright * detailed in the LICENSE and NOTICE files at the root of the source * tree and available online at * * http://www.dspace....
536
872
#!/usr/bin/python3 """ Given a binary array, find the maximum number of consecutive 1s in this array. """ class Solution: def findMaxConsecutiveOnes(self, nums): """ two pointers :type nums: List[int] :rtype: int """ s = 0 e = 0 ret = 0 while...
363
407
DEBUG = True TEMPLATE_DEBUG = DEBUG STATIC_ROOT = '' STATIC_URL = '/static/' import chartkick STATICFILES_DIRS = ( chartkick.js(), ) STATICFILES_FINDERS = ( 'django.contrib.staticfiles.finders.FileSystemFinder', 'django.contrib.staticfiles.finders.AppDirectoriesFinder', ) SECRET_KEY = '5ry^!i1c6y*$396rb...
349
518
""" Script that will navigate the "maze" in testworld """ def navigate(env, callback): for _ in range(100): callback(env.step([0, 0])) for _ in range(11): callback(env.step([0, -30])) for _ in range(10): callback(env.step([0, 0])) for _ in range(123): callback(env.s...
387
2,266
DEFAULT_SPIDER_GLOBAL_CONFIG = { 'spider_modules': ['spider'], 'save_report': True, 'thread_number': 1, 'network_try_limit': 3, 'task_try_limit': 3, 'display_timing': False, 'display_stats': True, }
103
382
<gh_stars>100-1000 package au.com.ds.ef; import java.lang.reflect.Method; import static java.lang.String.format; /** * User: andrey * Date: 20/02/2014 * Time: 10:43 PM */ public class FlowLoggerImpl implements FlowLogger { private Object logger; private Method infoMethod; private Method errorMethod; ...
811
612
/* * Copyright (c) 2015-present, Parse, LLC. * 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. An additional grant * of patent rights can be found in the PATENTS file in the same directory. */ package com.par...
421
1,442
<filename>ion/src/device/n0110/shared/drivers/config/timing.h #ifndef ION_DEVICE_N0110_SHARED_DRIVERS_CONFIG_TIMING_H #define ION_DEVICE_N0110_SHARED_DRIVERS_CONFIG_TIMING_H #include <regs/regs.h> namespace Ion { namespace Device { namespace Timing { namespace Config { constexpr static int LoopsPerMillisecondLowFreq...
182
302
<reponame>vadkasevas/BAS #ifndef MODULEMANAGER_H #define MODULEMANAGER_H #include <QObject> #include <QHash> #include "imodulemanager.h" #include "engine_global.h" namespace BrowserAutomationStudioFramework { class ENGINESHARED_EXPORT ModuleManager : public IModuleManager { Q_OBJECT QList<Modu...
688
310
<filename>gear/hardware/w/warp-factory.json { "name": "Warp Factory", "description": "A rack-mounted vocoder.", "url": "http://www.polynominal.com/Electrix-warp-factory/index.html" }
73
522
<filename>src/extratransmitters/rtpfaketransmitter.h /* This class allows for jrtp to process packets without sending them out anywhere. The incoming messages are handed in to jrtp through the TransmissionParams and can be retreived from jrtp through the normal polling mecanisms. The outgoing RTP/RTCP pack...
3,454
13,653
<reponame>cihan-demir/NineMensMorris ML_AGENTS_STATS_WRITER = "mlagents.stats_writer"
38
627
/* Copyright 2013 The Chromium OS Authors. All rights reserved. * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. * * Test console editing and history. */ #include "common.h" #include "console.h" #include "test_util.h" #include "timer.h" #include "util.h" stati...
2,736
519
/* * Copyright 2019 The GraphicsFuzz Project 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 * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applic...
708
1,483
/* * Copyright Lealone Database Group. * Licensed under the Server Side Public License, v 1. * Initial Developer: zhh */ package org.lealone.p2p.gossip.protocol; import java.io.DataInput; import java.io.DataOutput; import java.io.IOException; import java.util.ArrayList; import java.util.List; class GossipDigestSe...
383
1,602
<filename>third-party/libfabric/libfabric-src/prov/hook/src/hook_av.c<gh_stars>1000+ /* * Copyright (c) 2018 Intel Corporation. All rights reserved. * * This software is available to you under a choice of one of two * licenses. You may choose to be licensed under the terms of the GNU * General Public License (GPL...
1,488
473
<gh_stars>100-1000 #ifndef STDINT_H_ #define STDINT_H_ /* Minimum of signed integral types. */ #define INT8_MIN (-128) #define INT16_MIN (-32767-1) #define INT32_MIN (-2147483647-1) #define INT64_MIN (-(9223372036854775807LL)-1) #define INT_MIN INT32_MIN #define LONG_MIN INT32_MIN /...
397
2,124
<gh_stars>1000+ { "intro": "React Starter-Kit avec toutes les fonctionnalités les plus recherchées", "title": " REACT MOST WANTED ", "start": "COMMENCER", "instal": "Installation", "run": "Il suffit d'exécuter ce script pour commencer:", "more": "Apprendre encore plus", "usage": "Usage", "set": "Définis...
417
569
/* * Copyright 2020 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to ...
1,663
666
<filename>examples/issues/issue146.py<gh_stars>100-1000 import sys sys.path.append("../../") from appJar import gui def press(btn): print(btn) app = gui() app.createMenu("Menu") app.addMenuItem("Menu", "option 1", func=press, underline=2, shortcut="ctrl-c") app.addMenuItem("Menu", "option 2", func=press, underl...
258
480
<filename>spring-shell-core/src/test/java/org/springframework/shell/ConfigurableCommandRegistryTest.java /* * Copyright 2017 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...
566
892
<filename>advisories/github-reviewed/2019/02/GHSA-vfvf-mqq8-rwqc/GHSA-vfvf-mqq8-rwqc.json { "schema_version": "1.2.0", "id": "GHSA-vfvf-mqq8-rwqc", "modified": "2020-08-31T18:10:54Z", "published": "2019-02-18T23:58:20Z", "aliases": [ "CVE-2016-10531" ], "summary": "Sanitization bypass using HTML Entit...
1,008
25,151
{ "include": [ { "templatePath": "DevToolsSessionDomains.hbs", "outputPath": "DevToolsSessionDomains.cs" } ], "rootNamespace": "OpenQA.Selenium.DevTools", "runtimeVersion": "" }
87
2,151
import os import os.path from fnmatch import fnmatch import targz ##def DoxyfileParse(file_contents): ## """ ## Parse a Doxygen source file and return a dictionary of all the values. ## Values will be strings and lists of strings. ## """ ## data = {} ## ## import shlex ## lex = shlex.shlex(instream = fil...
2,348
841
package com.ctrip.framework.apollo.use.cases.dubbo.service; import com.ctrip.framework.apollo.core.ConfigConsts; import java.io.IOException; import org.springframework.context.support.ClassPathXmlApplicationContext; public class Server { public static void main(String[] args) throws IOException { // set apollo...
202
4,653
#include <opencv2/ximgproc.hpp> #include "Mat.h" #include "macros.h" #if CV_VERSION_GREATER_EQUAL(3, 1, 0) #ifndef __FF_SUPERPIXELLSC_H__ #define __FF_SUPERPIXELLSC_H__ class SuperpixelLSC : public FF::ObjectWrap<SuperpixelLSC, cv::Ptr<cv::ximgproc::SuperpixelLSC>> { public: static Nan::Persistent<v8::FunctionTempl...
821
1,975
<reponame>r3yn0ld4/omaha // Copyright 2008-2009 Google Inc. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by ...
1,925
997
<reponame>b-bold/ThreatExchange<filename>pdq/php/ext/pdq/impl/pdqhashtypes.h<gh_stars>100-1000 // ================================================================ // Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved // ================================================================ #ifndef PDQHASHT...
393
3,212
/* * 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 ...
514
679
<reponame>Grosskopf/openoffice /************************************************************** * * 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...
706
526
<gh_stars>100-1000 /* SPDX-License-Identifier: Apache 2.0 */ /* Copyright Contributors to the ODPi Egeria project. */ package org.odpi.openmetadata.adminservices.client; import org.odpi.openmetadata.adminservices.configuration.properties.CohortConfig; import org.odpi.openmetadata.adminservices.configuration.propertie...
16,167
521
/* CONS */ int fb_DevConsOpen ( FB_FILE *handle, const char *filename, size_t filename_len ); /* ERR */ int fb_DevErrOpen ( FB_FILE *handle, const char *filename, size_t filename_len ); /* FILE */ void fb_hSetFileBufSize ( FIL...
2,758
1,167
<gh_stars>1000+ /********************************************************************** thread.h - $Author: matz $ created at: Tue Jul 10 17:35:43 JST 2012 Copyright (C) 2007 <NAME> **********************************************************************/ #ifndef RUBY_THREAD_H #define RUBY_THREAD_H 1 #if de...
576