max_stars_count
int64
301
224k
text
stringlengths
6
1.05M
token_count
int64
3
727k
1,894
# 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. from __future__ import absolute_import # pylint: disable=wrong-import-position import contextlib import os import six LOCK_EX = None # Exclusive lock LOCK_...
1,505
2,338
// RUN: %clang -cc1 -triple x86_64-windows-msvc -emit-llvm %s -o - | FileCheck %s // CHECK: @constinit = private global [3 x i8*] [i8* blockaddress(@main, %L), i8* null, i8* null] void receivePtrs(void **); int main() { L: receivePtrs((void *[]){ &&L, 0, 0 }); }
119
1,711
<reponame>squirrelmaker/SOUL<filename>source/modules/soul_core/utilities/soul_ContainerUtilities.h /* _____ _____ _____ __ | __| | | | | The SOUL language |__ | | | | | |__ Copyright (c) 2019 - ROLI Ltd. |_____|_____|_____|_____| The code in this file is provided under the terms...
4,520
674
<gh_stars>100-1000 import numpy as np import pandas as pd import pytest from pandas.testing import assert_frame_equal from janitor import patterns @pytest.fixture def df_checks(): return pd.DataFrame( [ {"region": "Pacific", "2007": 1039, "2009": 2587}, {"region": "Southwest", "20...
43,233
2,542
<reponame>gridgentoo/ServiceFabricAzure<filename>src/prod/src/Reliability/Failover/common/FailoverUnitMessageBody.cpp // ------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License (MIT). See License.txt in the repo root fo...
208
360
package uk.co.flax.luwak.assertions; import org.assertj.core.api.AbstractAssert; import org.assertj.core.api.Assertions; import uk.co.flax.luwak.matchers.HighlightsMatch; /** * Copyright (c) 2013 Lemur Consulting Ltd. * <p/> * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this ...
626
1,473
<gh_stars>1000+ /* * Autopsy Forensic Browser * * Copyright 2011-2017 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 a...
4,118
5,300
<filename>frameworks/Java/vertx-web/src/main/java/io/vertx/benchmark/model/World.java package io.vertx.benchmark.model; import io.vertx.core.json.JsonObject; /** * The model for the "world" database table. */ public final class World implements Comparable<World> { private final int id; private final int random...
316
1,001
/* Copyright 2011 <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,...
309
743
<gh_stars>100-1000 import hashlib import os import re import secrets import subprocess import sys import tempfile from binascii import hexlify, unhexlify from enum import Enum from random import random, randint from pefile import * from pathlib import Path import struct from enums.Architectures import Arch class Im...
2,578
7,158
/*M/////////////////////////////////////////////////////////////////////////////////////// // // IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING. // // By downloading, copying, installing or using the software you agree to this license. // If you do not agree to this license, do not download, instal...
2,683
341
import numpy as np from lib.tools_pinyin import * def get_maxLengthListinList(ls): length = 0 for l in ls: if len(l)>length: length = len(l) return length def sparse_tuple_from(sequences, dtype=np.int32): """ Create a sparse representention of x. Args: sequences: a list of list...
788
760
/* * Copyright 2018 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicab...
1,746
4,054
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. package com.yahoo.feedhandler; import com.yahoo.container.jdisc.HttpRequest; import com.yahoo.document.DocumentTypeManager; import com.yahoo.feedapi.FeedContext; import com.yahoo.feedapi.MessagePropertyProcessor; i...
557
4,184
package se.citerus.dddsample.acceptance.pages; import org.openqa.selenium.By; import org.openqa.selenium.WebDriver; import org.openqa.selenium.WebElement; import org.openqa.selenium.support.ui.Select; import static junit.framework.TestCase.assertTrue; public class CargoDestinationPage { private final WebDriver d...
320
777
<filename>base/allocator/allocator_shim_win.h // 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. #ifndef BASE_ALLOCATOR_ALLOCATOR_SHIM_WIN_H_ #define BASE_ALLOCATOR_ALLOCATOR_SHIM_WIN_H_ #include <stddef....
192
1,338
/* * Copyright (C) 2006-2008 <NAME> <<EMAIL>>. All rights reserved. * Copyright (C) 2008 <NAME> <<EMAIL>>. All rights reserved. * * Distributed under the terms of the MIT License. */ #ifndef __VIDEO_ADD_ON_H #define __VIDEO_ADD_ON_H #include <MediaAddOn.h> class VideoWindowAddOn : public BMediaAddOn { public: ...
286
13,006
<reponame>mjlorenzo305/deeplearning4j /******************************************************************************* * Copyright (c) 2015-2018 Skymind, Inc. * * This program and the accompanying materials are made available under the * terms of the Apache License, Version 2.0 which is available at * https://www....
757
2,829
/* Copyright 2020 Alibaba Group Holding Limited. 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 applicable law o...
7,971
5,169
<reponame>Gantios/Specs<filename>Specs/7/b/4/YXMPersonalLibs/1.0.6/YXMPersonalLibs.podspec.json { "name": "YXMPersonalLibs", "version": "1.0.6", "summary": "Libs for personal use.", "description": "Libs for personal use.", "homepage": "https://github.com/YouXianMing/YXMPersonalLibs", "license": "MIT", "au...
1,326
679
<reponame>Grosskopf/openoffice<filename>main/comphelper/source/property/propertycontainer.cxx /************************************************************** * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work fo...
1,002
841
<filename>testsuite/integration-tests/src/test/java/org/jboss/resteasy/test/validation/cdi/resource/CDIValidationCoreSubResource.java package org.jboss.resteasy.test.validation.cdi.resource; import jakarta.validation.constraints.Min; import jakarta.ws.rs.GET; import jakarta.ws.rs.Path; import jakarta.ws.rs.PathParam; ...
239
2,508
extern zend_class_entry *protodir_connectionexception_ce; ZEPHIR_INIT_CLASS(ProtoDir_ConnectionException); PHP_METHOD(ProtoDir_ConnectionException, getRequest); ZEND_BEGIN_ARG_INFO_EX(arginfo_protodir_connectionexception_getrequest, 0, 0, 0) ZEND_END_ARG_INFO() ZEPHIR_INIT_FUNCS(protodir_connectionexception_method...
223
4,339
<reponame>geertjanw/ignite /* * 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 ...
2,138
3,384
<filename>XcodeClasses/Xcode6.0/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.0.sdk/System/Library/PrivateFrameworks/WirelessDiagnostics.h<gh_stars>1000+ // // Generated by class-dump 3.5 (64 bit). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>. // #p...
1,077
2,338
//===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===---------------------------...
466
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...
2,254
14,668
// Copyright 2021 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 "content/browser/prerender/prerender_handle_impl.h" namespace content { PrerenderHandleImpl::PrerenderHandleImpl( base::WeakPtr<PrerenderHo...
363
1,523
#!/usr/bin/python # # 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 # "Lice...
9,343
310
{ "name": "Z400", "description": "A PC tower computer.", "url": "https://www.amazon.com/HP-Z400-Workstation-Processor-Operating/dp/B006LAN2CG" }
59
11,356
<reponame>Bpowers4/turicreate #define BOOST_TEST_MODULE #include <boost/test/unit_test.hpp> #include <core/util/test_macros.hpp> #include <core/storage/query_engine/execution/execution_node.hpp> #include <core/storage/query_engine/operators/sarray_source.hpp> #include <core/storage/query_engine/operators/logical_filter...
1,685
5,169
{ "name": "MIRToolTip", "version": "0.1.1", "summary": "A convenience cocoa pod that extends view controller class that displays a tooltip.", "description": "\"A convenience cocoa pod that extends view controller class for presenting customizable tooltip messages.\"", "homepage": "https://github.com/mir-taqi/...
272
581
<reponame>dokime7/flask-jwt """ Flask-JWT ========= Flask-JWT is a Flask extension that adds basic Json Web Token features to any application. Resources --------- * `Documentation <http://packages.python.org/Flask-JWT/>`_ * `Issue Tracker <https://github.com/mattupstate/flask-jwt/issues>`_ * `Source <https://github....
920
575
<gh_stars>100-1000 // 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 THIRD_PARTY_BLINK_RENDERER_CORE_LAYOUT_NG_MATHML_NG_MATH_ROW_LAYOUT_ALGORITHM_H_ #define THIRD_PARTY_BLINK_RENDERER_CORE_LAYOUT...
897
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 MEDIA_FUCHSIA_CDM_FUCHSIA_DECRYPTOR_H_ #define MEDIA_FUCHSIA_CDM_FUCHSIA_DECRYPTOR_H_ #include "base/memory/ref_counted.h" #include "base/synchro...
799
1,085
<filename>sabot/kernel/src/main/java/com/dremio/exec/store/sys/CacheManagerStatsProvider.java<gh_stars>1000+ /* * Copyright (C) 2017-2019 Dremio Corporation * * 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...
776
461
#include "common.h" #include <amdev.h> // implement some function of device size_t serial_write(const void *buf, size_t offset, size_t len) { for(int i=0;i<len;i++) _putc(((char *)buf)[i]); return len; } #define NAME(key) \ [_KEY_##key] = #key, static const char *keyname[256] __attribute__((used)) = { [_...
565
892
<reponame>github/advisory-database { "schema_version": "1.2.0", "id": "GHSA-29m2-93j9-hrcp", "modified": "2022-05-13T01:53:16Z", "published": "2022-05-13T01:53:16Z", "aliases": [ "CVE-2018-6977" ], "details": "VMware ESXi (6.7, 6.5, 6.0), Workstation (15.x and 14.x) and Fusion (11.x and 10.x) contain ...
652
345
<gh_stars>100-1000 /* * Copyright 2016 HuntBugs contributors * * 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...
754
6,989
from warnings import warn warn("IPython.utils.localinterfaces has moved to jupyter_client.localinterfaces") from jupyter_client.localinterfaces import *
46
32,544
package com.baeldung.map.entry; import java.util.HashMap; import java.util.Map; public class MapEntryEfficiencyExample { public static void main(String[] args) { MapEntryEfficiencyExample mapEntryEfficiencyExample = new MapEntryEfficiencyExample(); Map<String, String> map = new HashMap<>(); ...
428
651
<gh_stars>100-1000 /* ----------------------------------------------------------------------- ffi.c - Copyright (c) 2015 <NAME> <<EMAIL>> 2015 <NAME> <<EMAIL>> 2018 <NAME> <<EMAIL>> Based on MIPS N32/64 port RISC-V Foreign Function Interface Permission is ...
7,233
1,430
<filename>tests/test_exceptions.py # -*- coding: utf-8 -*- import pytest import json from schematics.exceptions import * def test_error_from_string(): e = ConversionError('hello') assert e.messages == ['hello'] e = ValidationError('hello', 'world', '!') assert e.messages == ['hello', 'world', '!']...
1,925
6,457
package com.intel.realsense.librealsense; import android.app.PendingIntent; import android.content.Context; import android.content.Intent; import android.hardware.usb.UsbDevice; import android.hardware.usb.UsbManager; import android.util.Log; import java.lang.reflect.Array; import java.util.ArrayList; import java.uti...
1,321
2,748
<filename>sofa-boot-project/sofa-boot-core/runtime-sofa-boot/src/test/java/com/alipay/sofa/runtime/test/beans/service/AnnotationSampleService.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...
1,079
349
from flask import g, current_app, request from sqlalchemy import desc, func from apps.auth.models.users import User from apps.project.business.cases import CaseBusiness from apps.project.models.cases import Case from apps.project.models.modules import Module from apps.project.models.tasks import TaskCase from library....
5,442
2,113
<reponame>vbillet/Torque3D /** * OpenAL cross platform audio library * Copyright (C) 2018 by authors. * This library 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 L...
4,096
4,703
NULL_HASH32 = b'\x00'*32 CENT = 1000000 COIN = 100*CENT DUST = 1000 TIMEOUT = 30.0 TXO_TYPES = { "other": 0, "stream": 1, "channel": 2, "support": 3, "purchase": 4, "collection": 5, "repost": 6, } CLAIM_TYPE_NAMES = [ 'stream', 'channel', 'collection', 'repost', ] CLAIM_...
193
2,441
import os import subprocess from glob import glob # Pin the CPU frequency to this while running the benchmarks. # If this is set to 0 or None, we will instead disable turbo boost # and the CPU will run at its base frequency. if "PIN_FREQ" in os.environ: PIN_FREQ = int(os.environ["PIN_FREQ"]) elif os.path.exists(os...
1,191
301
#!/usr/bin/python3 ''' /****************************************************************** * * Copyright 2018 Samsung Electronics 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...
2,857
506
package com.xnx3.util; /** * 应用运行时,自动启动 * @author 管雷鸣 */ public class AutoRun { /** * 新版本检测。若发现新版本,弹出提示框 */ public static void versionCheck(){ new Thread(new Runnable() { public void run() { CheckVersion.cloudCheck(); } }).start(); } public static void main(String[] args) { versionCheck(...
191
335
<gh_stars>100-1000 { "word": "Rai", "definitions": [ "A style of music fusing Arabic and Algerian folk elements with Western rock." ], "parts-of-speech": "Noun" }
77
1,510
<reponame>julien-faye/drill /* * 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 ...
3,741
494
<filename>ios/RNWatch/FileTransferEvent.h // // Created by <NAME> on 20/06/2020. // Copyright (c) 2020 Facebook. All rights reserved. // #import <Foundation/Foundation.h> @class FileTransferInfo; static NSString *FILE_EVENT_PROGRESS = @"progress"; static NSString *FILE_EVENT_STARTED = @"started"; static NSString ...
375
631
#include "sys.h" #include <windows.h> #include <QDebug> #include "ntstatus/NtStatusNames.hpp" Sys::KernelInfo Sys::getKernelInfo() { Sys::KernelInfo out; out.kernelType = KernelType::Windows; out.kernelName = "Windows"; OSVERSIONINFOW osvi; ZeroMemory(&osvi, sizeof(OSVERSIONINFOW)); osvi.dwOS...
1,025
1,350
<filename>sdk/machinelearningservices/azure-resourcemanager-machinelearningservices/src/main/java/com/azure/resourcemanager/machinelearningservices/models/OperationStatus.java // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code...
644
487
// Copyright 2021 The Verible 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 agr...
1,807
370
package com.vitco.app.low.triangulate; import com.vitco.app.util.misc.StringIndexer; import com.vividsolutions.jts.geom.Coordinate; import com.vividsolutions.jts.geom.Polygon; import org.jaitools.media.jai.vectorize.VectorizeDescriptor; import org.poly2tri.Poly2Tri; import org.poly2tri.geometry.polygon.PolygonPoint; i...
6,927
1,156
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. import logging import random import unittest import numpy as np import torch from reagent.core import types as rlt from reagent.evaluation.evaluation_data_page import EvaluationDataPage from reagent.evaluation.ope_adapter i...
6,122
1,346
<reponame>wwjiang007/dal package com.ctrip.platform.dal.dao.datasource.read; import com.ctrip.platform.dal.common.enums.SqlType; import com.ctrip.platform.dal.dao.datasource.read.param.*; import com.ctrip.platform.dal.dao.helper.SqlUtils; import java.io.InputStream; import java.io.Reader; import java.math.BigDecimal;...
5,622
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. #include "net/base/datagram_buffer.h" #include "testing/gtest/include/gtest/gtest.h" namespace net { namespace test { const size_t kMax...
594
739
{ "name": "<NAME>", "img": "https://olvanotjeanclaude.github.io/PHOTOS/olvanot.jpg", "email":"", "links": { "website": "https://olvanotjeanclaude.github.io/", "linkedin": "https://www.linkedin.com/in/rakotonirina-olvanot-jean-claude-627a69204/", "github": "https://github.com/olvano...
235
1,014
<filename>nn-core/src/main/java/com/github/neuralnetworks/builder/layer/SigmoidLayerBuilder.java package com.github.neuralnetworks.builder.layer; import com.github.neuralnetworks.architecture.Layer; import com.github.neuralnetworks.architecture.NeuralNetworkImpl; import com.github.neuralnetworks.builder.layer.structur...
351
3,269
<reponame>Sourav692/FAANG-Interview-Preparation<filename>Algo and DSA/LeetCode-Solutions-master/Python/exam-room.py # Time: seat: O(logn), amortized # leave: O(logn) # Space: O(n) import heapq class ExamRoom(object): def __init__(self, N): """ :type N: int """ self.__num...
970
1,292
from scipy import stats from tabpy.models.utils import setup_utils def ttest(_arg1, _arg2): """ T-Test is a statistical hypothesis test that is used to compare two sample means or a sample’s mean against a known population mean. For more information on the function and how to use it please refer t...
597
323
from parsl.config import Config from parsl.data_provider.file_noop import NoOpFileStaging from parsl.data_provider.ftp import FTPInTaskStaging from parsl.executors.threads import ThreadPoolExecutor config = Config( executors=[ ThreadPoolExecutor( label='local_threads_http_in_task', ...
159
4,050
<gh_stars>1000+ /* * Copyright 2021 LinkedIn 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 * * Unless required by applicable la...
663
32,544
<reponame>DBatOWL/tutorials package com.baeldung.resttemplate.json.consumer.service; import org.junit.Before; import org.junit.Test; import org.springframework.boot.test.context.SpringBootTest; import org.springframework.http.HttpMethod; import org.springframework.http.HttpStatus; import org.springframework.http.Media...
2,033
521
/** * @file include/retdec/config/language.h * @brief Decompilation configuration manipulation: language. * @copyright (c) 2017 Avast Software, licensed under the MIT license */ #ifndef RETDEC_CONFIG_LANGUAGE_H #define RETDEC_CONFIG_LANGUAGE_H #include <string> #include "retdec/config/base.h" namespace retdec {...
527
7,482
<filename>bsp/stm32/libraries/STM32MPxx_HAL/STM32MP1xx_HAL_Driver/Inc/stm32mp1xx_hal_pwr_ex.h<gh_stars>1000+ /** ****************************************************************************** * @file stm32mp1xx_hal_pwr_ex.h * @author MCD Application Team * @brief Header file of PWR HAL Extension module. ...
10,828
3,579
<gh_stars>1000+ /* * Copyright 2015, The Querydsl Team (http://www.querydsl.com/team) * * 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...
1,051
619
#pragma once #include "mull/Mutant.h" #include "mull/MutationResult.h" namespace mull { class progress_counter; class DryRunMutantExecutionTask { public: using In = const std::vector<std::unique_ptr<Mutant>>; using Out = std::vector<std::unique_ptr<MutationResult>>; using iterator = In::const_iterator; void...
138
14,668
#if HAVE_GNUC_ATTRIBUTE #ifdef __fcfreetype__ # undef FcFreeTypeCharIndex extern __typeof (FcFreeTypeCharIndex) FcFreeTypeCharIndex __attribute((alias("IA__FcFreeTypeCharIndex"))) FC_ATTRIBUTE_VISIBILITY_EXPORT; # undef FcFreeTypeCharSetAndSpacing extern __typeof (FcFreeTypeCharSetAndSpacing) FcFreeTypeCharSetAndSpacin...
446
437
import sys notation = { "---": "0", "--x": "1", "-w-": "2", "-wx": "3", "r--": "4", "r-x": "5", "rw-": "6", "rwx": "7", } def symb_to_num(symbolic): """ Convert symbolic permission notation to numeric notation. """ if len(symbolic) == 9: group = (symbolic[:-6]...
719
1,408
<reponame>Mu-L/springBoot-study package com.pancm.shell; import org.springframework.shell.standard.ShellComponent; import org.springframework.shell.standard.ShellMethod; import org.springframework.shell.standard.ShellOption; /** * @author pancm * @Title: springboot-shell * @Description: shell命令实现 * @Version:1.0.0...
676
575
<filename>components/dom_distiller/content/browser/distiller_javascript_service_impl.h // Copyright 2015 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 COMPONENTS_DOM_DISTILLER_CONTENT_BROWSER_DISTILLER_JAVASCRI...
736
842
<filename>pgoapi/protos/pogoprotos/settings/master/quest/daily_quest_settings_pb2.py # Generated by the protocol buffer compiler. DO NOT EDIT! # source: pogoprotos/settings/master/quest/daily_quest_settings.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) from google.protobu...
1,455
4,304
#include <gtest/gtest.h> #include "util.h" // Literal limit checks #define TEST_COMPILE(src) DO(test_compile(src, "expr")) #define TEST_ERROR(src) DO(test_error(src, "expr")) class LiteralLimitTest : public PassTest { }; TEST_F(LiteralLimitTest, U8Max) { TEST_COMPILE("class Foo let m:U8 = 255"); TEST_ERROR("...
1,035
1,887
<reponame>gmshepard/mini-spring package org.springframework.aop.framework; import org.springframework.aop.AdvisedSupport; /** * @author derekyi * @date 2020/12/6 */ public class ProxyFactory { private AdvisedSupport advisedSupport; public ProxyFactory(AdvisedSupport advisedSupport) { this.advisedSupport = ad...
197
1,338
<reponame>Kirishikesan/haiku #include "StringCaseTest.h" #include "cppunit/TestCaller.h" #include <String.h> StringCaseTest::StringCaseTest(std::string name) : BTestCase(name) { } StringCaseTest::~StringCaseTest() { } void StringCaseTest::PerformTest(void) { BString *string; // Capitalize NextSubTest(); ...
774
466
<reponame>hsyuan/gporca //--------------------------------------------------------------------------- // Greenplum Database // Copyright (C) 2014 Pivotal, Inc. // // @filename: // CXformInnerJoin2IndexGetApply.h // // @doc: // Transform Inner Join to IndexGet Apply //--------------------------------------------------...
605
852
<gh_stars>100-1000 #ifndef RecoEgamma_EgammaIsolationAlgos_EgammaL1TkIsolation_h #define RecoEgamma_EgammaIsolationAlgos_EgammaL1TkIsolation_h #include "DataFormats/L1TrackTrigger/interface/L1Track.h" #include "DataFormats/TrackReco/interface/TrackBase.h" #include "DataFormats/TrackReco/interface/TrackFwd.h" #include ...
879
10,608
# coding=utf-8 # Copyright 2020 The HuggingFace Datasets Authors and the current dataset script contributor. # # 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/lice...
2,202
921
<filename>tests/scanner/audit/resource_rules_engine_test.py # Copyright 2017 The Forseti Security 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://w...
3,611
852
<reponame>malbouis/cmssw /*---------------------------------------------------------------------- ----------------------------------------------------------------------*/ #include "DuplicateChecker.h" #include "PoolSource.h" #include "InputFile.h" #include "RootFile.h" #include "RootSecondaryFileSequence.h" #include "R...
2,083
32,544
<gh_stars>1000+ package com.baeldung.persistence.service.common; import java.io.Serializable; import java.util.List; import com.baeldung.persistence.dao.common.IOperations; import org.springframework.transaction.annotation.Transactional; @Transactional(value = "jpaTransactionManager") public abstract class AbstractJ...
363
190,993
<filename>tensorflow/python/util/lock_util_test.py # Copyright 2018 The TensorFlow 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/...
657
2,254
<filename>tests/modules/pkg1/sub/__main__.py # Used in the tests for PyRunner import sys print("pkg1.sub.__main__: passed %s" % sys.argv[1])
54
3,372
<gh_stars>1000+ /* * Copyright 2016-2021 Amazon.com, Inc. or its affiliates. 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. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * ...
2,261
337
/* * Copyright 2018 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...
388
2,728
# ------------------------------------ # Copyright (c) Microsoft Corporation. # Licensed under the MIT License. # ------------------------------------ from azure_devtools.scenario_tests.base import ReplayableTest import pytest try: from unittest import mock except ImportError: # python < 3.3 import mock # t...
541
777
// 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. #ifndef SERVICES_VIDEO_CAPTURE_VIDEO_CAPTURE_SERVICE_H_ #define SERVICES_VIDEO_CAPTURE_VIDEO_CAPTURE_SERVICE_H_ #include <memory> #include "mojo/public/...
655
2,151
<reponame>google-ar/chromium // 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. package org.chromium.net.impl; import android.support.annotation.IntDef; import android.support.annotation.Nullable; import...
819
1,253
#include <bits/stdc++.h> using namespace std; /* Khun algorithm computes maximum bipartite matching in O(|V|^3) Sample input: 5 5 0 3 1 3 1 4 2 3 2 4 */ bool tryKhun(int n, const vector<vector<int>>& adj, vector<bool>& used, vector<int>& M, int v) { if (used...
979
977
<filename>test/expected_json_nulls.json [{"_key":0,"str_col":"Hello","bool_col":false,"int_col":1,"timestamp_col":"1970-01-01 00:00:01"},{"_key":1,"str_col":null,"bool_col":null,"int_col":null,"timestamp_col":null}]
86
1,545
/** * 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...
4,249
5,607
package io.micronaut.docs.http.client.bind.annotation; import io.micronaut.context.ApplicationContext; import io.micronaut.runtime.server.EmbeddedServer; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; import java.util.LinkedHashMap; import java.util.Map; public class AnnotationBinderSpec...
301
400
<gh_stars>100-1000 /* * aiq3a_util.cpp - aiq 3a utility: * * Copyright (c) 2015 Intel Corporation * * 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/lice...
6,829
334
<gh_stars>100-1000 // Auto generated code, do not modify package nxt.http.callers; import nxt.http.APICall; public class StopShufflerCall extends APICall.Builder<StopShufflerCall> { private StopShufflerCall() { super(ApiSpec.stopShuffler); } public static StopShufflerCall create() { retur...
393
348
<filename>docs/data/leg-t2/019/01901285.json {"nom":"Vigeois","circ":"1ère circonscription","dpt":"Corrèze","inscrits":905,"abs":376,"votants":529,"blancs":41,"nuls":26,"exp":462,"res":[{"nuance":"REM","nom":"<NAME>","voix":270},{"nuance":"SOC","nom":"<NAME>","voix":192}]}
110