max_stars_count
int64
301
224k
text
stringlengths
6
1.05M
token_count
int64
3
727k
337
/* * Copyright 2019 The Polycube Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agree...
490
1,540
<gh_stars>1000+ package test.github765; import org.testng.Assert; import org.testng.annotations.DataProvider; import org.testng.annotations.Test; public class DuplicateCallsSample extends TestTemplate<Integer> { private int i = 0; @Test(dataProvider = "testParameters") public void callExecuteTest(Integer test...
164
429
#ifndef __BOOLEAN_CIRCUIT__ #define __BOOLEAN_CIRCUIT__ #include "Party.h" #define MSG_KEYS_HEADER_SZ (16) #endif
61
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 ...
1,137
678
<gh_stars>100-1000 /** * This header is generated by class-dump-z 0.2b. * * Source: /System/Library/PrivateFrameworks/IMCore.framework/Frameworks/IMFoundation.framework/IMFoundation */ #import <IMFoundation/XXUnknownSuperclass.h> @class NSString, NSDictionary; @interface IMTimer : XXUnknownSuperclass { id _time...
370
10,225
package org.jboss.resteasy.reactive.common.headers; import java.util.Date; import javax.ws.rs.ext.RuntimeDelegate; import org.jboss.resteasy.reactive.common.util.DateUtil; /** * @author <a href="mailto:<EMAIL>"><NAME></a> */ public class DateDelegate implements RuntimeDelegate.HeaderDelegate<Date> { public stat...
284
892
{ "schema_version": "1.2.0", "id": "GHSA-94j2-2w6f-7qp9", "modified": "2022-05-02T06:16:20Z", "published": "2022-05-02T06:16:20Z", "aliases": [ "CVE-2010-0864" ], "details": "Unspecified vulnerability in the Retail - Oracle Retail Place In-Season component in Oracle Industry Product Suite 12.2 allows ...
503
514
<filename>duke-core/src/main/java/no/priv/garshol/duke/Database.java package no.priv.garshol.duke; import java.util.Collection; /** * Used to store and index records for later matching. */ public interface Database { /** * Returns true iff the database is held entirely in memory, and * thus is not persi...
381
6,098
from __future__ import print_function import sys sys.path.insert(1,"../../../") import h2o from tests import pyunit_utils from h2o.estimators.gbm import H2OGradientBoostingEstimator from tests.pyunit_utils import roc_auc_score def multinomial_auc_prostate_gbm(): data = h2o.import_file(pyunit_utils.locate("smallda...
2,635
344
/* Copyright 2018 Canaan 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 in ...
808
921
package cz.habarta.typescript.generator.p2; import cz.habarta.typescript.generator.p1.A; public class B extends A { public String sb; }
58
8,586
<filename>src/graph/context/Symbols.cpp /* Copyright (c) 2021 vesoft inc. All rights reserved. * * This source code is licensed under Apache 2.0 License. */ #include "graph/context/Symbols.h" #include <sstream> #include "graph/planner/plan/PlanNode.h" #include "graph/util/Utils.h" namespace nebula { namespace gr...
381
799
{ "campaign_intelligence": [ { "apt": "Publicly Available Exploit", "description": "SMBLost Remote Kernel Memory Read POC (Author: Unknown)", "targeted_countries": [ "" ], "targeted_industries": [ "" ] } ], "cve_description": "A remote code execution vul...
1,465
377
#pragma once //------------------------------------------------------------------------------ /** @class IO::SafeFileStream Wrapper around FileStream that will save to a temporary file and swap when closed @copyright (C) 2016-2020 Individual contributors, see AUTHORS file */ #include "io...
262
1,408
/* * Copyright (c) 2013-2014, ARM Limited and Contributors. All rights reserved. * * SPDX-License-Identifier: BSD-3-Clause */ #ifndef MMIO_H #define MMIO_H #include <stdint.h> static inline void mmio_write_8(uintptr_t addr, uint8_t value) { *(volatile uint8_t*)addr = value; } static inline uint8_t mmio_read_8(...
667
417
//----------------------------------------------------------------------------- // Copyright (c) 2012 GarageGames, LLC // // 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 restrictio...
954
310
<gh_stars>100-1000 { "name": "Classic 8-Inch Chef's Knife", "description": "A knife.", "url": "https://www.amazon.com/Shun-DM0706-Classic-8-Inch-Chefs/dp/B0000Y7KNQ" }
76
5,788
<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 "Lic...
1,077
1,139
package com.journaldev.androidretrofitcalleveryxsecond; import com.google.gson.annotations.SerializedName; import java.util.List; public class Jokes { @SerializedName("url") public String url; @SerializedName("icon_url") public String icon_url; @SerializedName("value") public String value; ...
116
407
<filename>paas/appmanager/tesla-appmanager-server/src/main/java/com/alibaba/tesla/appmanager/server/action/DeployComponentStateAction.java package com.alibaba.tesla.appmanager.server.action; import com.alibaba.tesla.appmanager.server.repository.domain.DeployComponentDO; import java.util.Map; /** * Component 部署工单 St...
248
2,205
<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 *...
4,705
678
/** * This header is generated by class-dump-z 0.2b. * * Source: /System/Library/PrivateFrameworks/CalDAV.framework/CalDAV */ #import <CalDAV/CalDAVCalendar.h> @class NSURL; @protocol CalDAVSubscribedCalendar <CalDAVCalendar> @property(retain) NSURL *subscriptionURL; @property(assign) BOOL hasAlarmFilter; @prope...
345
10,225
package io.quarkus.vault; /** * Allows obtaining PKI engines for specific mount paths. * * @see VaultPKISecretEngine */ public interface VaultPKISecretEngineFactory { /** * Get a PKI engine for a specific mount. * * @param mount Engine mount path. * * @return PKI engine interface. ...
134
721
package crazypants.enderio.base.integration.te; import javax.annotation.Nonnull; import crazypants.enderio.base.EnderIO; import crazypants.enderio.base.Log; import crazypants.enderio.base.events.EnderIOLifecycleEvent; import crazypants.enderio.base.farming.FarmersRegistry; import net.minecraftforge.fml.common.Loader;...
497
32,544
<reponame>DBatOWL/tutorials package com.baeldung.reactorbus.service.impl; import org.springframework.stereotype.Service; import com.baeldung.reactorbus.domain.NotificationData; import com.baeldung.reactorbus.service.NotificationService; @Service public class NotificationServiceimpl implements NotificationService { ...
207
3,102
// RUN: rm -rf %t // RUN: not %clang_cc1 -x c++ -Rmodule-build -DMISSING_HEADER -fmodules -fimplicit-module-maps -fmodules-cache-path=%t -I %S/Inputs/auto-import-unavailable %s 2>&1 | FileCheck %s --check-prefix=MISSING-HEADER // RUN: %clang_cc1 -x c++ -Rmodule-build -DNONREQUIRED_MISSING_HEADER -fmodules -fimplicit-mo...
818
1,091
<filename>apps/virtual/app/src/main/java/org/onosproject/incubator/net/virtual/rest/TenantWebResource.java /* * Copyright 2018-present Open Networking Foundation * * 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...
2,025
1,253
// C++ program to rotate a linked list counter clock wise #include <bits/stdc++.h> using namespace std; /* Link list node */ class Node { public: int data; Node* next; }; // This function rotates a linked list counter-clockwise and updates the head. // The function assumes that k is smaller than size of lin...
975
321
<gh_stars>100-1000 import multiprocessing import multiprocessing.dummy as threading import sys import time from functools import wraps from retry import retry from six import iteritems def run_multiprocessing(func, params: list, max_worker: int=None, join=True): pool = multiprocessing.Pool(max_worker) if no...
1,412
432
# -*- coding: utf-8 -*- """Top-level package for Python API and CLI for Nessie.""" import os import confuse from .conf import build_config from .nessie_client import NessieClient __author__ = """Project Nessie""" __email__ = "<EMAIL>" __version__ = "0.10.2" def get_config(config_dir: str = None, args: dict = None)...
367
1,039
import time from walrus.rate_limit import RateLimitException from walrus.tests.base import WalrusTestCase from walrus.tests.base import db class TestRateLimit(WalrusTestCase): def setUp(self): super(TestRateLimit, self).setUp() # Limit to 5 events per second. self.rl = db.rate_limit('test...
1,158
938
<reponame>brickviking/TinkersConstruct { "parent": "minecraft:block/orientable", "textures": { "top": "tconstruct:block/foundry/scorched/bricks", "front": "tconstruct:block/foundry/controller/foundry_unformed", "side": "tconstruct:block/foundry/scorched/bricks" } }
114
3,172
# Copyright (c) 2021 PaddlePaddle 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 app...
2,009
707
// Copyright (c) FIRST and other WPILib contributors. // Open Source Software; you can modify and/or share it under the terms of // the WPILib BSD license file in the root directory of this project. #pragma once #include <functional> #include <memory> #include <string> #include <string_view> #include <vector> #inclu...
2,446
5,079
__version__ = '3.3'
10
1,337
/* * Copyright 2017 <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, ...
546
2,084
<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 * ...
1,601
521
#ifndef _IPXE_MENU_H #define _IPXE_MENU_H /** @file * * Menu selection * */ FILE_LICENCE ( GPL2_OR_LATER ); #include <ipxe/list.h> /** A menu */ struct menu { /** List of menus */ struct list_head list; /** Name */ const char *name; /** Title */ const char *title; /** Menu items */ struct list_head item...
370
1,738
<reponame>jeikabu/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 provid...
837
1,350
<filename>sdk/aot/azure-aot-graalvm-support/src/main/java/com/azure/aot/graalvm/support/implementation/ClassReflectionAttributes.java // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. package com.azure.aot.graalvm.support.implementation; import java.util.EnumSet; import j...
1,318
432
<gh_stars>100-1000 #include <sys/types.h> #include <sys/ipc.h> #include <sys/shm.h> #include "sysvipc_shm.h" extern char sysvipc_userland; extern int __sys_shmdt(const void *); int shmdt(const void *addr) { if (sysvipc_userland) return (sysvipc_shmdt(addr)); return (__sys_shmdt(addr)); }
141
4,054
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. package com.yahoo.tensor; import com.google.common.collect.ImmutableList; import com.google.common.collect.ImmutableMap; import java.util.HashMap; import java.util.Iterator; import java.util.List; import java.uti...
9,749
7,746
/*++ Copyright (c) 2012 Microsoft Corporation Module Name: permutation.cpp Abstract: Simple abstraction for managing permutations. Author: <NAME> (leonardo) 2012-01-04 Revision History: --*/ #include "util/permutation.h" #include "util/util.h" #include "util/vector.h" void apply_permutation_copy(un...
1,097
743
/* * 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 ...
793
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...
3,464
6,457
// License: Apache 2.0. See LICENSE file in root directory. // Copyright(c) 2020 Intel Corporation. All Rights Reserved. #include "RsSource.hh" #include "BasicUsageEnvironment.hh" #include "RsStatistics.h" #include <GroupsockHelper.hh> #include <cassert> #include <compression/CompressionFactory.h> #include <ipDeviceCo...
1,724
5,169
<filename>Specs/2/c/d/TableViewContent/0.1.0/TableViewContent.podspec.json { "name": "TableViewContent", "version": "0.1.0", "summary": "A short description of TableViewContent.", "description": "TODO: Add long description of the pod here.", "homepage": "https://github.com/Akira Matsuda/TableViewContent", "...
250
14,668
// 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. package org.chromium.components.browser_ui.widget; import android.content.Context; import android.graphics.Canvas; import android.graphics.Color; import ...
1,715
1,707
//------------------------------------------------------------------------------ // LogTest.cc // Test Log class. //------------------------------------------------------------------------------ #include "Pre.h" #include "UnitTest++/src/UnitTest++.h" #include "Core/Log.h" #include "Core/Logger.h" using namespace Ory...
556
852
import FWCore.ParameterSet.Config as cms # # produce kinFit hypothesis with all necessary # ingredients # ## std sequence to perform kinematic fit import TopQuarkAnalysis.TopKinFitter.TtSemiLepKinFitProducer_Muons_cfi kinFitTtSemiLepEventHypothesis = TopQuarkAnalysis.TopKinFitter.TtSemiLepKinFitProducer_Muons_cfi.ki...
231
416
<reponame>khauser/SimpleFlatMapper<filename>sfm-converter/src/main/java/org/simpleflatmapper/converter/UncheckedConverter.java package org.simpleflatmapper.converter; public interface UncheckedConverter<I, O> extends ContextualConverter<I, O> { O convert(I in, Context context); }
102
1,368
default_app_config = 'select2_many_to_many.apps.TestApp'
22
1,139
package com.journaldev.groups; import org.testng.annotations.AfterClass; import org.testng.annotations.BeforeClass; import org.testng.annotations.Test; public class TestNGGroupsExample { @Test(groups = "foo") public void foo() { System.out.println("foo"); } @Test(groups = "bar") public void bar() { System....
281
4,551
package org.robolectric.shadows; import android.os.SystemClock; import java.util.concurrent.TimeUnit; import org.robolectric.annotation.LooperMode; public class ShadowSystem { /** * Implements {@link System#nanoTime} through ShadowWrangler. * * @return Current time with nanos. */ @SuppressWarnings("u...
355
2,151
/* * Copyright (C) 2007 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 * * Unless required by app...
2,651
364
<reponame>matus-chochlik/oglplus // File include/oglplus/enums/shader_type.ipp // // Automatically generated file, DO NOT modify manually. // Edit the source 'source/enums/oglplus/shader_type.txt' // or the 'source/enums/make_enum.py' script instead. // // Copyright 2010-2019 <NAME>. // Distributed under the Boos...
303
765
<reponame>hyu-iot/gem5 /***************************************************************************** Licensed to Accellera Systems Initiative Inc. (Accellera) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownershi...
950
651
/****************************************************************************** * Copyright (c) Intel Corporation - All rights reserved. * * This file is part of the LIBXSMM library. * * * ...
2,503
887
<reponame>traversaro/gazebo<filename>gazebo/gui/model/LinkConfig_TEST.cc /* * Copyright (C) 2015 Open Source Robotics Foundation * * 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,429
1,109
<reponame>LuShengDong/wasabi<filename>modules/eventlog/src/test/java/com/intuit/wasabi/eventlog/events/AuthorizationChangeEventTest.java /******************************************************************************* * Copyright 2016 Intuit * <p> * Licensed under the Apache License, Version 2.0 (the "License"); * ...
1,290
518
<filename>manifests/definitions/82.json { "name": "<NAME>", "category": "User Support & Survey", "start_url": "https://www.surveymonkey.com/user/sign-in/", "icons": [ { "src": "https://cdn.filestackcontent.com/Z4YKjQm3QCqtKrLRcu0G", "platform": "browserx" } ], "theme_color": "#00BF6F", ...
181
1,607
<reponame>groov1kk/assertj-core<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 agr...
1,062
1,666
// Copyright 2017 the V8 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. #include "src/libplatform/default-foreground-task-runner.h" #include "src/base/platform/mutex.h" #include "src/libplatform/default-platform.h" namespa...
1,900
850
from .. utils import TranspileTestCase, BuiltinFunctionTestCase class BytesTests(TranspileTestCase): pass class BuiltinBytesFunctionTests(BuiltinFunctionTestCase, TranspileTestCase): functions = ["bytes"]
67
2,406
// Copyright (C) 2018-2021 Intel Corporation // SPDX-License-Identifier: Apache-2.0 // #include <vpu/frontend/frontend.hpp> #include <memory> #include <vpu/utils/numeric.hpp> #include <vpu/utils/profiling.hpp> #include <vpu/stages/stub_stage.hpp> namespace vpu { namespace { class StubPriorBoxStage final : public ...
799
348
{"nom":"Laféline","circ":"1ère circonscription","dpt":"Allier","inscrits":157,"abs":59,"votants":98,"blancs":2,"nuls":3,"exp":93,"res":[{"nuance":"COM","nom":"<NAME>","voix":57},{"nuance":"REM","nom":"<NAME>","voix":36}]}
88
1,639
<gh_stars>1000+ #include<bits/stdc++.h> using namespace std; const int N = 1e5 + 9; int t[N][18], a[N]; void build(int n) { for(int i = 1; i <= n; ++i) t[i][0] = a[i]; for(int k = 1; k < 18; ++k) { for(int i = 1; i + (1 << k) - 1 <= n; ++i) { t[i][k] = min(t[i][k - 1], t[i + (1 << (k - 1))][k ...
433
1,738
/* * 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 provided, by the license below or t...
481
383
<gh_stars>100-1000 #pragma once #include <optional> #include "json.h" using namespace nlohmann; #ifdef _MSC_VER // Microsoft compilers # define GET_ARG_COUNT(...) INTERNAL_EXPAND_ARGS_PRIVATE(INTERNAL_ARGS_AUGMENTER(__VA_ARGS__)) # define INTERNAL_ARGS_AUGMENTER(...) unused, __VA_ARGS__ # define...
3,143
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 ...
1,223
5,279
<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 * ...
457
14,668
// Copyright (c) 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. #include "components/offline_pages/core/offline_clock.h" #include <ostream> #include "base/check.h" #include "base/time/default_clock.h" #include "b...
296
460
<gh_stars>100-1000 from . import screenpoint project = screenpoint.project
22
860
<filename>src/main/groovy/lang/Writable.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 A...
669
1,001
<filename>aliyun-python-sdk-ecs/aliyunsdkecs/request/v20140526/DescribeSecurityGroupsRequest.py # 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 li...
1,909
3,579
package com.querydsl.jpa.domain.sql; import static com.querydsl.core.types.PathMetadataFactory.forVariable; import javax.annotation.Generated; import com.querydsl.core.types.Path; import com.querydsl.core.types.PathMetadata; import com.querydsl.core.types.dsl.NumberPath; import com.querydsl.sql.ColumnMetadata; /**...
2,646
491
<reponame>ebasdee/webrtc<gh_stars>100-1000 /* * Copyright 2004 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 ...
5,084
1,251
/** * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. */ #ifndef _FA_MULTIMAP_AR_UNIQ_H_ #define _FA_MULTIMAP_AR_UNIQ_H_ #include "FAConfig.h" #include "FAMultiMapA.h" #include "FAArray_cont_t.h" #include "FAMap_judy.h" #include "FASecurity.h" namespace ...
933
7,713
// Copyright 2004-present Facebook. All Rights Reserved. #import <React/RCTViewManager.h> @class RCTWrapperView; NS_ASSUME_NONNULL_BEGIN @interface RCTWrapperViewManager : RCTViewManager - (RCTWrapperView *)view NS_REQUIRES_SUPER; @end NS_ASSUME_NONNULL_END
102
6,270
<filename>.changes/2.538.0.json [ { "type": "feature", "category": "Amplify", "description": "This release adds access logs APIs and artifact APIs for AWS Amplify Console." }, { "type": "feature", "category": "ECS", "description": "This release of Amazon Elast...
164
621
c.ServerApp.port = 8888 # noqa c.ServerApp.token = "" # noqa c.ServerApp.password = "" # noqa c.ServerApp.disable_check_xsrf = True # noqa c.ServerApp.open_browser = False # noqa c.LabApp.open_browser = False # noqa c.LabApp.expose_app_in_browser = True # noqa
109
709
package com.olacabs.jackhammer.utilities; import java.io.File; import java.io.IOException; import java.nio.file.Files; import java.nio.file.Path; import java.time.Duration; import java.util.HashMap; import java.util.List; import java.util.concurrent.*; import com.google.common.collect.Lists; import com.google.inject...
6,303
790
/* * @brief Unit test for BinarySearch * @file test_binarysearch.cuh */ #include <examples/core/test_binarysearch.cuh> using namespace gunrock; TEST(utils, BinarySearch) { cudaError_t retval = BinarySearchTest(); EXPECT_EQ(retval, cudaSuccess); }
96
1,036
<gh_stars>1000+ package com.mylhyl.circledialog.view; import android.content.Context; import android.text.TextUtils; import android.view.Gravity; import android.widget.LinearLayout; import android.widget.TextView; import androidx.annotation.Nullable; import com.airbnb.lottie.LottieAnimationView; import com.airbnb.lo...
2,713
5,169
{ "name": "ViewModelOwners", "version": "1.0.0", "license": { "type": "MIT", "file": "LICENSE" }, "summary": "Protocols that help make your MVVM setup more consistent", "homepage": "http://merowing.info", "social_media_url": "https://twitter.com/merowing_", "authors": { "<NAME>": "<EMAIL>" ...
336
365
from docopt import docopt # noinspection PyListCreation def main(): args = docopt(""" Usage: corpus2svd.sh [options] <corpus> <output_dir> Options: --thr NUM The minimal word count for being in the vocabulary [default: 100] --win NUM Window size [default: 2] ...
970
1,968
<reponame>agramonte/corona<gh_stars>1000+ ////////////////////////////////////////////////////////////////////////////// // // This file is part of the Corona game engine. // For overview and more information on licensing please refer to README.md // Home page: https://github.com/coronalabs/corona // Contact: <EMAIL> ...
353
348
<gh_stars>100-1000 {"nom":"Aubepierre-sur-Aube","circ":"1ère circonscription","dpt":"Haute-Marne","inscrits":169,"abs":90,"votants":79,"blancs":0,"nuls":6,"exp":73,"res":[{"nuance":"REM","nom":"<NAME>","voix":43},{"nuance":"LR","nom":"<NAME>","voix":30}]}
105
814
""" Each PuzzleGenerator has one or more Instances corresponding a to a different input. A "simple" problem like (lambda x: x + "world" == "Hello world") that has no inputs has just one instance. """ import inspect import json from typing import List, Callable, Dict, Set import random import re import sys import trace...
13,348
510
from pathlib import Path import matplotlib.pyplot as plt import torch from ..data_tools import ImageDirectoryDataset, get_transform from ..gan import ProGAN from ..networks import Discriminator, Generator from .utils import device def test_pro_gan_progressive_downsample_batch() -> None: batch = torch.randn((4,...
860
325
package com.box.l10n.mojito.cli.command; import com.box.l10n.mojito.cli.CLITestBase; import com.box.l10n.mojito.entity.Repository; import com.box.l10n.mojito.io.Files; import com.box.l10n.mojito.rest.client.AssetClient; import com.box.l10n.mojito.rest.client.RepositoryClient; import com.box.l10n.mojito.service.reposit...
3,856
12,718
<reponame>lukekras/zig<gh_stars>1000+ /** * This file has no copyright assigned and is placed in the Public Domain. * This file is part of the mingw-w64 runtime package. * No warranty is given; refer to the file DISCLAIMER.PD within this package. */ #include <math.h> float rintf (float x) { float retval = 0.0F; ...
143
3,702
// Copyright (c) YugaByte, 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 in writ...
460
1,162
<filename>KafkaCenter-Core/src/test/java/org/nesc/ec/bigdata/email/EmailTest.java<gh_stars>1000+ package org.nesc.ec.bigdata.email; import org.junit.Test; import org.junit.runner.RunWith; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.test.context.SpringBootTest; import ...
370
852
<filename>DQMOffline/JetMET/test/cruzet09_PromptAna.py<gh_stars>100-1000 # import FWCore.ParameterSet.Config as cms process = cms.Process("test") process.load("CondCore.DBCommon.CondDBSetup_cfi") # # DQM # process.load("DQMServices.Core.DQM_cfg") process.load("DQMServices.Components.MEtoEDMConverter_cfi") # the ta...
2,810
350
# 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 # d...
20,508
6,283
<gh_stars>1000+ #pragma once #include <i3ipc++/ipc.hpp> #include "common.hpp" #include "x11/extensions/randr.hpp" POLYBAR_NS class connection; namespace i3_util { using connection_t = i3ipc::connection; using workspace_t = i3ipc::workspace_t; const auto ws_numsort = [](shared_ptr<workspace_t> a, shared_ptr<...
389
686
<gh_stars>100-1000 package hello; import io.micronaut.http.annotation.Controller; import io.micronaut.http.annotation.Get; import io.reactivex.Single; @Controller("/") public class HelloController { @Get("/") public Single<String> greet() { return Single.just("Hello World!"); } }
113
2,027
<reponame>giuseppe/quay def exponential_backoff(attempts, scaling_factor, base): backoff = 5 * (pow(2, attempts) - 1) backoff_time = backoff * scaling_factor retry_at = backoff_time / 10 + base return retry_at
90
57,637
<gh_stars>1000+ [ { "id": "author-1", "name": "Novikov", "firstName": "Mikhail", "email": "<EMAIL>", "picture": "../images/gatsby-astronaut.png" }, { "id": "author-2", "name": "Probst", "firstName": "Stefan", "email": "<EMAIL>", "picture": "../images/gatsby-astronaut.png" ...
162