max_stars_count
int64
301
224k
text
stringlengths
6
1.05M
token_count
int64
3
727k
372
<filename>clients/google-api-services-firebasedynamiclinks/v1/1.30.1/com/google/api/services/firebasedynamiclinks/v1/model/DeviceInfo.java<gh_stars>100-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 ...
2,058
1,144
<gh_stars>1000+ package de.metas.tourplanning.api.impl; import static org.adempiere.model.InterfaceWrapperHelper.save; import static org.assertj.core.api.Assertions.assertThat; import java.time.LocalDate; import de.metas.bpartner.BPartnerId; import de.metas.invoicecandidate.modelvalidator.C_BPartner; import org.adem...
2,156
334
<reponame>NuAngel/PoS-DogeCoin_PUPS // Auto generated code, do not modify package nxt.http.callers; import nxt.http.APICall; public class SearchCurrenciesCall extends APICall.Builder<SearchCurrenciesCall> { private SearchCurrenciesCall() { super(ApiSpec.searchCurrencies); } public static SearchCu...
379
482
package io.cattle.platform.servicediscovery.api.service; import io.cattle.platform.core.addon.ServiceLink; import io.cattle.platform.core.model.Service; import io.cattle.platform.core.model.Stack; import java.util.List; import java.util.Map; public interface ServiceDiscoveryApiService { void addServiceLink(Servi...
240
1,968
////////////////////////////////////////////////////////////////////////////// // // 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> // ///////////////////////////////////////...
1,341
1,821
<filename>src/carnot/exec/exec_node.h /* * Copyright 2018- The Pixie 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 * * U...
4,105
4,081
/* * The Alluxio Open Foundation licenses this work under the Apache License, version 2.0 * (the "License"). You may not use this work except in compliance with the License, which is * available at www.apache.org/licenses/LICENSE-2.0 * * This software is distributed on an "AS IS" basis, WITHOUT WARRANTIES OR CONDI...
601
556
""" Worlds are used to manage simulations consisting of multiple states. A world uses a StateCollection with CollectivePhysics to resolve state dependencies. Worlds also facilitate referencing states when performing a forward simulation. A default World, called `world` is provided for convenience. """ import inspect i...
7,651
1,808
// // Simple byte wise SPI driver // Demo how to set up memmap and access SPI registers. // Code seems to be working but has not been much tested. // <NAME> 15-Jan-2012 // // Access from ARM Running Linux #define BCM2708_PERI_BASE 0x20000000 #define UART0_BASE (BCM2708_PERI_BASE + 0x201000) /* ...
2,509
348
<gh_stars>100-1000 {"nom":"Murinais","circ":"9ème circonscription","dpt":"Isère","inscrits":309,"abs":181,"votants":128,"blancs":17,"nuls":6,"exp":105,"res":[{"nuance":"LR","nom":"<NAME>","voix":55},{"nuance":"MDM","nom":"<NAME>","voix":50}]}
98
5,169
{ "name": "SKYKitChat", "version": "0.0.1", "summary": "Chat extension for SKYKit", "description": "This is the client library for the Skygear Chat extension.", "homepage": "https://github.com/SkygearIO/chat-SDK-iOS", "license": "Apache License, Version 2.0", "authors": { "Oursky Ltd.": "<EMAIL>" },...
251
453
<filename>tests/sfko/sfko/util/schema.py from ..error import RequiredKeyError from .log import Log _log = Log('assert') def assert_key(mapping, key, target = 'mapping'): if key not in mapping: raise RequiredKeyError(key, target) return True def assert_wmsg(condition, msg = 'Assertion Failed!'): t...
167
546
<filename>include/Msnhnet/cv/MsnhCVVector.h #ifndef MSNHCVVECTOR_H #define MSNHCVVECTOR_H #include <Msnhnet/config/MsnhnetCfg.h> #include <Msnhnet/cv/MsnhCVType.h> #include <iostream> #include <sstream> #include <iomanip> namespace Msnhnet { template<typename T> class VectorX { public: VectorX(const int &n) ...
12,975
379
# -*- coding: utf-8 -*- import os import glob import yaml import george # Inject the kernel docs d = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) with open(os.path.join(d, "docs", "user", "kernels.rst.template"), "r") as f: TEMPLATE = f.read() fns = glob.glob(os.path.join(d, "kernels", "*.yml")) i...
883
1,682
/* Copyright (c) 2019 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 law or agreed to...
759
1,845
<filename>rajawali/src/main/java/org/rajawali3d/WorldParameters.java package org.rajawali3d; import org.rajawali3d.math.vector.Vector3; /** * Collection of world global parameters. These parameters are constant across all scenes. This class is intended to be * read only after setup, and so does not include any thre...
1,180
1,283
package com.pengrad.telegrambot.model.request; import java.io.Serializable; /** * stas * 1/12/16. */ public class InlineQueryResultVideo extends InlineQueryResult<InlineQueryResultVideo> implements Serializable { private final static long serialVersionUID = 0L; public static final String MIME_TEXT_HTML = ...
736
764
<gh_stars>100-1000 {"symbol": "QPY","address": "0x6911270D4BC1915744AEdd785d41D44f47245BD0","overview":{"en": "QPay POWERED BY QUANTAEX | PAYMENT GATEWAY | WALLET"},"email": "<EMAIL>","website": "https://project.quantaex.com/","state": "NORMAL","links": {"blog": "https://medium.com/qpay/","twitter": "https://twitter.co...
156
372
/* Editor Settings: expandtabs and use 4 spaces for indentation * ex: set softtabstop=4 tabstop=8 expandtab shiftwidth=4: * * -*- mode: c, c-basic-offset: 4 -*- */ /* * Copyright © BeyondTrust Software 2004 - 2019 * All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you m...
1,292
528
#ifndef GEN_SMOOTH_RAND_INTS_H #define GEN_SMOOTH_RAND_INTS_H #include "include/zfp/types.h" // used to compute (square) array sizes size_t intPow(size_t base, int exponent); // a double pointer is passed because memory allocation // is taken care of within the functions // generate randomly correlated integers in ...
426
675
<gh_stars>100-1000 #include "OpenMPTaskMgr.h" #include "engine/core/log/Log.h" namespace Echo { OpenMPTaskMgr::OpenMPTaskMgr() { Echo::CpuThreadPool::Cinfo info; info.m_numThreads = std::thread::hardware_concurrency(); info.m_isBlocking = true; m_threadPool = EchoNew(Echo::CpuThreadPool(info)); } OpenMPT...
927
333
<reponame>ydiller/BalancedGroupSoftmax<filename>mmdet/models/bbox_heads/DCM_bbox_head.py import torch import torch.nn as nn import torch.nn.functional as F import pickle from mmdet.core import (delta2bbox, force_fp32, multiclass_nms) from .convfc_bbox_head import SharedFCBBoxHead from ..builder...
1,717
5,169
{ "name": "MadSqliteSwift", "version": "0.2.1", "summary": "A simple Sqlite Abstraction", "description": "A simple Sqlite Abstraction with FTS5 and R*Tree enabled", "homepage": "https://manimaul.github.io/madsqlite/", "license": { "type": "BSD", "file": "LICENSE.md" }, "authors": { "<NAME>":...
334
2,072
# Copyright Contributors to the Amundsen project. # SPDX-License-Identifier: Apache-2.0 import json import logging import re from typing import Dict from apache_atlas.client.base_client import AtlasClient from apache_atlas.exceptions import AtlasServiceException from apache_atlas.model.misc import SearchFilter from a...
3,592
1,006
/**************************************************************************** * arch/arm/src/str71x/str71x_rtc.h * * 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 ...
1,100
345
import unittest from programy.clients.events.console.config import ConsoleConfiguration from programy.config.file.yaml_file import YamlConfigurationFile from programy.triggers.config import TriggerConfiguration class TriggersConfigurationTests(unittest.TestCase): def test_with_data(self): yaml = YamlCon...
1,484
14,668
// Copyright (c) 2012 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 <stddef.h> #include <stdint.h> #include <memory> #include "gpu/command_buffer/client/client_test_helper.h" #include "gpu/command_buffer/ser...
6,324
2,023
def fit(X, Y): def mean(Xs): return sum(Xs) / len(Xs) m_X = mean(X) m_Y = mean(Y) def std(Xs, m): normalizer = len(Xs) - 1 return math.sqrt(sum((pow(x - m, 2) for x in Xs)) / normalizer) # assert np.round(Series(X).std(), 6) == np.round(std(X, m_X), 6) def pearson_r(Xs...
523
583
package ru.yandex.clickhouse; import ru.yandex.clickhouse.util.ClickHouseValueFormatter; import java.util.TimeZone; public final class ClickHousePreparedStatementParameter { private static final ClickHousePreparedStatementParameter NULL_PARAM = new ClickHousePreparedStatementParameter(null, false); ...
738
1,143
<filename>pinball/workflow/log_saver.py # Copyright 2015, Pinterest, 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 require...
3,580
2,113
//----------------------------------------------------------------------------- // 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...
957
559
#!/usr/bin/env python # -*- coding: utf-8 -*- # Copyright 2018 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 requi...
1,058
2,151
<filename>src/trusted/validator_arm/dgen_decoder_output.py #!/usr/bin/python # # Copyright (c) 2012 The Native Client Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. # """ Responsible for generating the decoder based on parsed table re...
3,874
571
<reponame>1123852253/mexopencv /** * @file DISOpticalFlow_.cpp * @brief mex interface for cv::optflow::DISOpticalFlow * @ingroup optflow * @author Amro * @date 2017 */ #include "mexopencv.hpp" #include "opencv2/optflow.hpp" using namespace std; using namespace cv; using namespace cv::optflow; namespace { // Pers...
3,592
430
/* pp.c * * Copyright (C) 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, * 2000, 2001, 2002, 2003, 2004, 2005, by <NAME> and others * * You may distribute under the terms of either the GNU General Public * License or the Artistic License, as specified in the README file. * */ /* * "It's ...
57,427
3,428
{"id":"00758","group":"easy-ham-1","checksum":{"type":"MD5","value":"af02ef2952273218fb9d6c7ddbec7910"},"text":"From <EMAIL> Tue Sep 24 10:49:36 2002\nReturn-Path: <<EMAIL>>\nDelivered-To: y<EMAIL>assassin.taint.org\nReceived: from localhost (jalapeno [1172.16.58.3])\n\tby jmason.org (Postfix) with ESMTP id 19C8B16F03...
1,372
653
<reponame>mkinsner/llvm //==-------------- h_item.hpp - SYCL standard header file ------------------==// // // 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 // //===---...
1,471
606
#ifndef _MODULE_DEBUG_H #define _MODULE_DEBUG_H //#define MINI_DRIVER #ifndef MINI_DRIVER #define M_PRINTF(format, args...) printf("VFAT: " format, ##args) #else #define M_PRINTF(format, args...) #endif #ifdef DEBUG #define M_DEBUG M_PRINTF #else #define M_DEBUG(format, args...) #endif #endif
125
1,338
<filename>src/tests/kits/support/blocker/ConcurrencyTest1.cpp<gh_stars>1000+ /* $Id: ConcurrencyTest1.cpp 301 2002-07-18 05:32:00Z tylerdauwalder $ This file implements a test class for testing BLocker functionality. It tests use cases "Locking 1", "Locking 2", "Unlocking", "Is Locked", "Locking Thread" and "Coun...
2,310
348
{"nom":"Battenheim","circ":"6ème circonscription","dpt":"Haut-Rhin","inscrits":1231,"abs":602,"votants":629,"blancs":5,"nuls":5,"exp":619,"res":[{"nuance":"REM","nom":"<NAME>","voix":202},{"nuance":"UDI","nom":"<NAME>","voix":136},{"nuance":"FN","nom":"M. <NAME>","voix":124},{"nuance":"DVD","nom":"Mme <NAME>","voix":39...
344
6,181
<filename>renderdoc/3rdparty/compressonator/BC1_Encode_kernel.cpp<gh_stars>1000+ //===================================================================== // Copyright (c) 2019 Advanced Micro Devices, Inc. All rights reserved. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of thi...
11,097
408
package io.apigee.trireme.apptests; import io.apigee.trireme.container.netty.NettyHttpContainer; import io.apigee.trireme.core.NodeEnvironment; import io.apigee.trireme.core.NodeException; import io.apigee.trireme.core.NodeScript; import io.apigee.trireme.core.ScriptFuture; import org.junit.After; import org.junit.Aft...
1,365
308
import pytest from fabric.api import run from fabtools.utils import run_as_root pytestmark = pytest.mark.network @pytest.fixture(scope='module', autouse=True) def check_for_debian_family(): from fabtools.system import distrib_family if distrib_family() != 'debian': pytest.skip("Skipping apt-key te...
1,371
429
/** * (C) Copyright 2016-2021 Intel Corporation. * * SPDX-License-Identifier: BSD-2-Clause-Patent */ #include "dfuse_common.h" #include "dfuse.h" void dfuse_cb_getattr(fuse_req_t req, struct dfuse_inode_entry *ie) { struct stat attr = {}; int rc; if (ie->ie_unlinked) { DFUSE_TRA_DEBUG(ie, "File is unlinked...
464
2,360
<reponame>LiamBindle/spack<gh_stars>1000+ # Copyright 2013-2021 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack import * class ROligoclasses(RPackage): """Classes for high-thr...
900
945
# -*- coding: utf-8 -*- """AWS operations by cli should be simpler.""" import os import re from setuptools import find_packages, setup base_dir = os.path.dirname(os.path.abspath(__file__)) # Taken from "kennethreitz/requests": http://git.io/vcuY8 version = '' with open('jungle/__init__.py', 'r') as fd: version =...
1,138
310
{ "name": "Tread", "description": "A treadmill.", "url": "https://www.onepeloton.com/tread" }
41
665
// This file is part of MLDB. Copyright 2015 mldb.ai inc. All rights reserved. /** python_procedure_test.cc -*- C++ -*- <NAME>, 9 mars 2015 Copyright (c) 2015 mldb.ai inc. All rights reserved. */ #include "mldb/server/mldb_server.h" #include "mldb/http/http_rest_pro...
1,002
485
<reponame>708yamaguchi/MaixPy_scripts from micropython import const from time import sleep_ms import ustruct import image # Display resolution SPEINK_WIDTH = const(200) SPEINK_HEIGHT = const(200) SPEINK_ROTATION = const(180) # 0, 90, 180, 270 BUSY = const(1) # 1=busy, 0=idle class SPEINK: def __init_...
4,528
10,125
<gh_stars>1000+ /** @file Dummy library for dependency ordering. Copyright (c) 2020, vit9696. All rights reserved.<BR> SPDX-License-Identifier: BSD-2-Clause-Patent **/
63
3,428
<reponame>ghalimi/stdlib {"id":"01594","group":"easy-ham-1","checksum":{"type":"MD5","value":"9e0ea187c7d58d78b9c2a00ecbb57e70"},"text":"From <EMAIL> Thu Sep 19 17:47:42 2002\nReturn-Path: <<EMAIL>>\nDelivered-To: y<EMAIL>.spamassassin.taint.org\nReceived: from localhost (jalapeno [127.0.0.1])\n\tby jmason.org (Postfi...
1,645
634
<filename>modules/base/platform-impl/src/main/java/consulo/start/WelcomeFrameManager.java<gh_stars>100-1000 /* * Copyright 2013-2017 consulo.io * * 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 Licen...
1,147
3,074
<gh_stars>1000+ # Copyright (c) Microsoft. All rights reserved. # Licensed under the MIT license. import time print("Wait for 10 seconds..") time.sleep(10) print("Done waiting")
55
9,680
import torch import nni.retiarii.nn.pytorch as nn from nni.retiarii import model_wrapper @model_wrapper class Model(nn.Module): def __init__(self, in_channels): super().__init__() self.conv1 = nn.Conv2d(in_channels, 10, 3) self.conv2 = nn.LayerChoice([ nn.Conv2d(10, 10, 3), ...
1,184
7,482
/* * Copyright (c) 2006-2021, RT-Thread Development Team * * SPDX-License-Identifier: Apache-2.0 * * Change Logs: * Date Author Notes * 2015-01-07 Grissiom add comment */ #include <rtthread.h> #ifdef RT_USING_VBUS #include <rtdevice.h> #include <vbus.h> #include <board.h> struct rt_vb...
758
21,684
<filename>test/common/parsePolyglot.py #!/usr/bin/env python from __future__ import print_function import os, re, sys # == globals printDebug = False try: unicode except NameError: unicode = str # == class yamlValue(unicode): linenumber = None def __new__(cls, value, linenumber=None): if ...
3,261
2,143
<reponame>hascode/ArchUnit package com.tngtech.archunit.testutil; import java.lang.reflect.Constructor; import java.lang.reflect.Field; import java.lang.reflect.Method; import java.util.HashSet; import java.util.Set; public class ReflectionTestUtils { public static Field field(Class<?> clazz, String fieldName) { ...
609
713
<filename>core/src/test/java/org/infinispan/util/TestOperation.java package org.infinispan.util; import java.util.Objects; import org.infinispan.Cache; /** * @author <NAME> * @since 12.0 */ public enum TestOperation { PUT { @Override public <K, V> V execute(Cache<K, V> cache, K key, V prevValue, V ...
863
353
<reponame>weisongf/ceph-deploy<filename>ceph_deploy/tests/unit/hosts/test_util.py from ceph_deploy.hosts import util from mock import Mock class TestInstallYumPriorities(object): def setup(self): self.distro = Mock() self.patch_path = 'ceph_deploy.hosts.centos.install.pkg_managers.yum' se...
507
948
/* * Copyright (c) 2015-2019, Texas Instruments Incorporated * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * * Redistributions of source code must retain the above copyright * n...
6,396
8,844
/* This is a multi-line comment */
12
667
import json # https://raw.githubusercontent.com/whatwg/encoding/master/encodings.json with open("encodings.json") as f: s = json.loads(f.read()) print "// autogenerated by /tools/encodings/gen-encoding-aliases.py\n" for gr in s: print "// {}".format((gr["heading"])) for dst in gr["encodings"]: d...
227
542
#ifndef GUARD_le_imgui_H #define GUARD_le_imgui_H #include "le_core.h" struct le_imgui_o; struct le_renderpass_o; // declared in le_renderer.h struct le_render_module_o; // declared in le_renderer.h struct LeUiEvent; // declared in le_ui_event.h // clang-format off struct le_imgui_api { struct le_imgui...
602
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 ...
2,548
2,151
// 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 THIRD_PARTY_BLINK_RENDERER_PLATFORM_SCHEDULER_MAIN_THREAD_DEADLINE_TASK_RUNNER_H_ #define THIRD_PARTY_BLINK_RENDERER_PLATFORM_SCHEDULER_MAIN_THREA...
677
510
package com.didi.drouter.remote; import android.os.Parcel; import android.os.Parcelable; /** * Created by gaowei on 2018/10/23 */ class RemoteResult implements Parcelable { static final String EXECUTING = "executing"; static final String SUCCESS = "success"; static final String FAIL = "fail"; Stri...
431
2,921
{ "name": "Hard", "symbol": "HARD", "type": "KAVA", "decimals": 6, "description": "HARD Protocol is a decentralized money market built on Kava, enabling the lending and borrowing of cross-chain assets. HARD Protocol supports supply-side deposits for BTC, XRP, BNB, BUSD, and USDX. The platform will a...
177
573
#!/usr/bin/env python3 # # Install dylib dependencies, strip debugging symbols, and deal with the shitfucked digital abortion that is the macOS dynamic linker. # import re import sys import subprocess import itertools import shutil from os import chmod, environ, pathsep from pathlib import Path build_root = Path(e...
1,148
322
import sys sys.path.append('../../') import constants as cnst import os os.environ['PYTHONHASHSEED'] = '2' import tqdm from model.stg2_generator import StyledGenerator import numpy as np from my_utils.visualize_flame_overlay import OverLayViz from my_utils.flm_dynamic_fit_overlay import camera_ringnetpp from my_utils.g...
3,798
399
from openrec.tf1.utils.samplers.sampler import Sampler from openrec.tf1.utils.samplers.random_pairwise_sampler import RandomPairwiseSampler from openrec.tf1.utils.samplers.vbpr_pairwise_sampler import VBPRPairwiseSampler from openrec.tf1.utils.samplers.random_pointwise_sampler import RandomPointwiseSampler from openrec...
294
2,517
// This file is part of CAF, the C++ Actor Framework. See the file LICENSE in // the main distribution directory for license terms and copyright or visit // https://github.com/actor-framework/actor-framework/blob/master/LICENSE. #pragma once #include <chrono> #include <cmath> #include <cstddef> #include <cstdint> #in...
8,103
5,169
{ "name": "YBSlantedCollectionViewLayout", "version": "2.1.0", "summary": "UICollectionViewLayout allowing the display of slanted content on UICollectionView", "description": "YBSlantedCollectionViewLayout is a subclass of UICollectionViewLayout allowing the display of slanted content on UICollectionView.", "...
309
348
{"nom":"Bligny-sur-Ouche","circ":"5ème circonscription","dpt":"Côte-d'Or","inscrits":642,"abs":401,"votants":241,"blancs":23,"nuls":5,"exp":213,"res":[{"nuance":"REM","nom":"<NAME>","voix":128},{"nuance":"LR","nom":"<NAME>","voix":85}]}
99
465
<filename>vs2015/realtime_server/lib/realtinet/third/muduo/base/ThreadLocalSingleton.h // Use of this source code is governed by a BSD-style license // that can be found in the License file. // // Author: <NAME> (chenshuo at chenshuo dot com) #ifndef MUDUO_BASE_THREADLOCALSINGLETON_H #define MUDUO_BASE_THREADLOCALSING...
696
1,617
#include "caffe/util/nms.hpp" using std::max; using std::min; namespace caffe { template <typename Dtype> static Dtype iou(const Dtype A[], const Dtype B[]) { if (A[0] > B[2] || A[1] > B[3] || A[2] < B[0] || A[3] < B[1]) { return 0; } // overlapped region (= box) const Dtype x1 = std::max(A[0], B[0]); ...
1,081
892
<filename>advisories/unreviewed/2022/04/GHSA-6g32-5m95-62fv/GHSA-6g32-5m95-62fv.json { "schema_version": "1.2.0", "id": "GHSA-6g32-5m95-62fv", "modified": "2022-04-23T00:03:15Z", "published": "2022-04-16T00:00:44Z", "aliases": [ "CVE-2021-44493" ], "details": "An issue was discovered in YottaDB throug...
643
1,511
/* ----------------------------------------------------------------------- ffi.c - Copyright (c) 2004 <NAME> Copyright (c) 2008 Red Hat, Inc. M32R Foreign Function Interface permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyri...
108
4,551
<filename>shadows/framework/src/main/java/org/robolectric/shadows/ShadowFontsContract.java package org.robolectric.shadows; import static android.os.Build.VERSION_CODES.O; import static org.robolectric.util.reflector.Reflector.reflector; import android.content.Context; import android.graphics.Typeface; import android...
396
11,351
<reponame>LearnJavaByus/eureka<filename>eureka-client-jersey2/src/test/java/com/netflix/discovery/guice/Jersey2EurekaModuleTest.java package com.netflix.discovery.guice; import com.google.inject.AbstractModule; import com.google.inject.Binding; import com.google.inject.Key; import com.google.inject.Scopes; import com....
1,441
7,482
<reponame>BreederBai/rt-thread /** ****************************************************************************** * @file tae32f53xx_ll_def.h * @author MCD Application Team * @brief This file contains LL common defines, enumeration, macros and * structures definitions. * *******************...
3,946
410
<filename>defibus-broker/src/test/java/com/webank/defibus/broker/monitor/QueueListeningMonitorTest.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....
856
6,071
""" Mongodb-based Trials Object =========================== Components involved: - mongo e.g. mongod ... - driver e.g. hyperopt-mongo-search mongo://address bandit_json bandit_algo_json - worker e.g. hyperopt-mongo-worker --loop mongo://address Mongo ===== Mongo (daemon process mongod) is used for IP...
22,911
462
package com.ppdai.infrastructure.mq.biz; import org.junit.runner.RunWith; import org.junit.runners.Suite; import org.junit.runners.Suite.SuiteClasses; import com.ppdai.infrastructure.mq.biz.service.impl.AuditLogServiceImplTest; import com.ppdai.infrastructure.mq.biz.service.impl.ConsumerCommitServiceImplTest; import ...
539
435
<filename>pycon-uk-2017/videos/pycon-uk-2017-from-future-import-truth.json<gh_stars>100-1000 { "copyright_text": "Standard YouTube License", "description": "Fake news, alternative facts, post-truth: this has definitely been the year of misinformation.\n\nWhat's more, the rise of social media is rising as the primar...
496
1,353
/* * Copyright (c) 2014, <NAME> * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * * Redistributions of source code must retain the above copyright notice, this * list of conditions and...
1,005
3,395
# Copyright 2022 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/licenses/LICENSE-2....
2,145
1,645
<reponame>smsahu/seldon-server /* * Seldon -- open source prediction engine * ======================================= * * Copyright 2011-2015 Seldon Technologies Ltd and Rummble Ltd (http://www.seldon.io/) * * ******************************************************************************************** * * Licen...
2,365
1,538
// Copyright 2010 Google Inc. All Rights Reserved. // Authors: <EMAIL> (<NAME>), <EMAIL> (<NAME>) // // This file provides a few functions for hashing strings. On x86-64 // hardware as of early 2010, CityHash64() is much faster than // MurmurHash64(), and passes the quality-of-hash tests in // ./hasheval/hasheval_test...
658
644
#!/usr/bin/python # -*- coding: utf-8 -*- import argparse from formalsystems.formalsystems import FormalSystem, Theorem def main(): parser = argparse.ArgumentParser(description='Formal system processor.') parser.add_argument('yaml_file', metavar='file', type=...
1,828
424
from . import urllib3 import sublime __all__ = ['ST2', 'ST3','Settings'] ST2 = sublime.version().startswith('2') ST3 = not ST2 class Settings(object): """Helper class for accessing sublime.Settings' values. Settings(settings, none_erases=False) * settings (sublime.Settings) ...
2,152
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,314
4,335
/*---------------------------------------------------------------------------- * Copyright (c) Huawei Technologies Co., Ltd. 2013-2020. All rights reserved. * Description: Fat Fs HeadFile * Author: <NAME> * Create: 2013-01-01 * Redistribution and use in source and binary forms, with or without modification, * are...
1,026
317
<filename>assets/src/ba_data/python/bastd/ui/getremote.py # Released under the MIT License. See LICENSE for details. # """Provides a popup telling the user about the BSRemote app.""" from __future__ import annotations from typing import TYPE_CHECKING import ba from bastd.ui import popup if TYPE_CHECKING: pass ...
1,434
1,252
<filename>tests/stlcontainer.cpp /*{{{ Copyright (C) 2012-2015 <NAME> <<EMAIL>> Permission to use, copy, modify, and distribute this software and its documentation for any purpose and without fee is hereby granted, provided that the above copyright notice appear in all copies and that both that the...
3,080
4,901
<filename>jre_emul/android/platform/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/reflect/ModifierTest.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 informatio...
6,418
606
/* This code is DEPRECATED! I'm keeping it here cause maybe the uninstrumentation of a function is needed for some strange reason. */ /******************************************************************************* Copyright (c) 2019-2022, <NAME> Redistribution and use in source and binary forms, with or without m...
1,728
884
<filename>entity-view/testsuite/src/test/java/com/blazebit/persistence/view/testsuite/AbstractEntityViewTest.java /* * Copyright 2014 - 2021 Blazebit. * * 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 th...
4,419
810
from .inaturalist import INATURALIST2018
13
1,092
/* * Copyright 2014-2019 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 * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by a...
1,141
8,027
<reponame>Unknoob/buck /* * 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 * * Un...
1,003