max_stars_count
int64
301
224k
text
stringlengths
6
1.05M
token_count
int64
3
727k
8,805
// Copyright <NAME> 2014. // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) #ifndef BOOST_COROUTINES2_COROUTINE_H #define BOOST_COROUTINES2_COROUTINE_H #include <exception> #incl...
390
2,904
<reponame>Sid-darthvader/dowhy import string from importlib import import_module from dowhy.interpreter import Interpreter def get_class_object(method_name, *args, **kwargs): # from https://www.bnmetrics.com/blog/factory-pattern-in-python3-simple-version try: module_name = method_name class_na...
274
2,073
<filename>activemq-unit-tests/src/test/java/org/apache/activemq/spring/ActiveMQConnectionFactoryFactoryBeanTest.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 cop...
1,443
315
#!/illumina/development/haplocompare/hc-virtualenv/bin/python import sys import re GT_SPLITTER = re.compile(r'[\/\|]') # split a genotype field by '/' or '|' def fast_nonref_remover(input_stream, output_stream): """ Copies each line of :param:`input_stream` to :param:`output_stream` unless that line descr...
717
8,805
/*-----------------------------------------------------------------------------+ Copyright (c) 2010-2011: <NAME> +------------------------------------------------------------------------------+ Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENCE.txt or copy at ...
2,022
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 ...
2,430
764
{"data":{"id":16,"name":"<NAME>","publish_datetime":"23/10/2020 12:53 PM","content":"<p>Et est, perferendis .</p>","meta_title":"Hic vero eius expedi","cannonical_link":"https://www.google.com","meta_keywords":"Qui aspernatur velit","meta_description":"<p>Quae lorem rem in ea.</p>","status":2,"display_status":"Draft","...
361
369
/* * Copyright © 2017 <NAME>, 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 i...
301
5,116
/* * Copyright 2018 Realm 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 wr...
597
2,338
<gh_stars>1000+ # 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 """Models DAGs of scalar math expressions. Used for generating region bodies at the "math" level where...
1,995
575
<reponame>Ron423c/chromium<filename>third_party/blink/renderer/controller/memory_usage_monitor.cc // Copyright 2019 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "third_party/blink/renderer/controller/memory_u...
948
474
<reponame>bryancall/nghttp3 /* * nghttp3 * * Copyright (c) 2019 nghttp3 contributors * Copyright (c) 2017 ngtcp2 contributors * Copyright (c) 2012 nghttp2 contributors * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated documentation files (the * "...
2,746
2,112
/* The source code contained in this file is based on the original code by <NAME> (https://github.com/no1msd/mstch). The original license by Daniel Sipka can be read below: The MIT License (MIT) Copyright (c) 2015 <NAME> Permission is hereby granted, free of charge, to any person obtaining a copy of this software a...
765
335
// $Id$ # ifndef CPPAD_LOCAL_OPTIMIZE_CSUM_STACKS_HPP # define CPPAD_LOCAL_OPTIMIZE_CSUM_STACKS_HPP /* -------------------------------------------------------------------------- CppAD: C++ Algorithmic Differentiation: Copyright (C) 2003-16 <NAME> CppAD is distributed under multiple licenses. This distribution is under...
449
335
{ "word": "Jacaranda", "definitions": [ "A tropical American tree that has blue trumpet-shaped flowers, fernlike leaves, and fragrant timber." ], "parts-of-speech": "Noun" }
75
1,652
package com.ctrip.xpipe.redis.checker; import com.ctrip.xpipe.api.email.EmailResponse; import com.ctrip.xpipe.api.server.Server; import com.ctrip.xpipe.redis.checker.alert.AlertMessageEntity; import com.ctrip.xpipe.redis.checker.healthcheck.RedisHealthCheckInstance; import com.ctrip.xpipe.redis.checker.model.CheckerSt...
1,159
681
package com.fasterxml.sort.util; import java.util.Iterator; public class CastingIterator<T> implements Iterator<T> { private final Iterator<Object> _it; public CastingIterator(Iterator<Object> it) { _it = it; } @Override public boolean hasNext() { return _it.hasNext(); } ...
207
7,482
<reponame>rockonedege/rt-thread /*  * @ : Copyright (c) 2021 Phytium Information Technology, Inc.  *  * SPDX-License-Identifier: Apache-2.0.  * * @Date: 2021-04-07 09:53:07 * @LastEditTime: 2021-04-07 13:42:30 * @Description:  This files is for uart config * * @Modify History: * Ver   Who        Date         Cha...
435
507
# terrascript/data/oneandone.py import terrascript class oneandone_instance_size(terrascript.Data): pass __all__ = [ "oneandone_instance_size", ]
60
2,494
/* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ /* * pkix_pl_hashtable.h * * Hashtable Object Definition * */ #ifndef _PKIX_PL_HASHTABLE_H #define _PKIX_PL_H...
218
623
package nb.barmie.net.proxy.thread; import java.io.ByteArrayOutputStream; import java.net.Socket; /*********************************************************** * A proxy thread that writes received data straight out to * the destination socket untouched. * * Written by <NAME> (@NickstaDB). **********************...
258
4,857
<reponame>gvprathyusha6/hbase<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...
734
464
# -*- coding: utf-8 -*- """ checks.py Each function in here should - Take a DataFrame as its first argument, maybe optional arguments - Makes its assert on the result - Return the original DataFrame """ import numpy as np import pandas as pd import pandas.util.testing as tm import six from engarde import generic fro...
3,169
4,681
import outcome import pytest import time from .._core.tests.tutil import slow from .. import _core from ..testing import assert_checkpoints from .._timeouts import * async def check_takes_about(f, expected_dur): start = time.perf_counter() result = await outcome.acapture(f) dur = time.perf_counter() - st...
1,232
443
"""Index Source.patch_id Revision ID: 5508859bed73 Revises: 26f665189ca0 Create Date: 2014-01-06 11:14:19.109932 """ # revision identifiers, used by Alembic. revision = '5508859bed73' down_revision = '26f665189ca0' from alembic import op def upgrade(): op.create_index('idx_source_patch_id', 'source', ['patch_...
155
8,772
{ "casuser" : [ { "signatureCount" : 84, "userIdentity" : { "name" : "casuser", "displayName" : "casuser", "id" : "<KEY>" }, "credentialNickname" : "<PASSWORD>", "credential" : { "credentialId" : "<KEY>", "userHandle" : "<KEY>", "publicKeyCose" : "<KEY>", ...
564
652
/* * Copyright (C) 2014 Stratio (http://stratio.com) * * 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,825
3,579
package com.querydsl.apt.domain.p10; import java.io.Serializable; import javax.persistence.MappedSuperclass; @MappedSuperclass public abstract class AbstractPersistable<PK extends Serializable> implements Persistable<PK> { }
71
3,799
/* * Copyright 2019 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 applica...
375
360
<reponame>Xarthisius/yt from yt.testing import requires_file from yt.utilities.answer_testing.framework import data_dir_load from yt.visualization.plot_window import SlicePlot @requires_file("amrvac/bw_3d0000.dat") def test_code_units_xy_labels(): ds = data_dir_load("amrvac/bw_3d0000.dat", kwargs=dict(unit_system...
216
892
<reponame>westonsteimel/advisory-database-github { "schema_version": "1.2.0", "id": "GHSA-8jq6-w5cg-wm45", "modified": "2020-11-11T21:38:07Z", "published": "2020-11-11T21:38:18Z", "aliases": [ ], "summary": "Exploitable inventory component chaining in PocketMine-MP", "details": "### Impact\nSpecially c...
818
441
<gh_stars>100-1000 // Copyright 2009-2020 Intel Corporation // SPDX-License-Identifier: Apache-2.0 #pragma once #include "linearspace2.h" #include "linearspace3.h" #include "quaternion.h" #include "bbox.h" #include "vec4.h" namespace embree { #define VectorT typename L::Vector #define ScalarT typename L::Vector:...
6,662
565
<filename>ksp_plugin/equator_relevance_threshold.cpp #include "ksp_plugin/equator_relevance_threshold.hpp" #include <algorithm> #include "physics/geopotential.hpp" #include "physics/oblate_body.hpp" #include "quantities/elementary_functions.hpp" namespace principia { namespace ksp_plugin { namespace internal_equator...
475
892
{ "schema_version": "1.2.0", "id": "GHSA-9w49-m7xh-5r39", "modified": "2021-04-09T21:59:25Z", "published": "2021-04-20T16:37:56Z", "aliases": [ "CVE-2020-29456" ], "summary": "Cross-site scripting in papermerge", "details": "Multiple cross-site scripting (XSS) vulnerabilities in Papermerge before 1....
845
346
<reponame>ikkisoft/serialkiller package org.nibblesec.tools; import static java.nio.file.StandardCopyOption.REPLACE_EXISTING; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertFalse; import java.io.File; import java.io.IOException; import java.nio.file.Files; import java.nio.file.Path;...
976
432
<reponame>lambdaxymox/DragonFlyBSD /* $NetBSD: filter-persistent.h,v 1.1.1.1 2008/12/22 00:18:47 haad Exp $ */ /* * Copyright (C) 2001-2004 Sistina Software, Inc. All rights reserved. * Copyright (C) 2004-2006 Red Hat, Inc. All rights reserved. * * This file is part of LVM2. * * This copyrighted material is ma...
358
359
<filename>MatrixSDK/Aggregations/Data/Store/Realm/MXRealmAggregationsMapper.h<gh_stars>100-1000 /* Copyright 2019 New Vector Ltd Copyright 2019 The Matrix.org Foundation C.I.C Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may o...
489
1,909
<reponame>grmkris/XChange package org.knowm.xchange.koinim.service; import java.io.IOException; import org.knowm.xchange.Exchange; import org.knowm.xchange.currency.CurrencyPair; import org.knowm.xchange.dto.marketdata.OrderBook; import org.knowm.xchange.dto.marketdata.Ticker; import org.knowm.xchange.dto.marketdata.T...
396
5,813
<filename>extensions-contrib/redis-cache/src/main/java/org/apache/druid/client/cache/RedisCacheConfig.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 owne...
1,438
575
// Copyright 2020 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 "base/callback_helpers.h" #include "base/test/metrics/histogram_tester.h" #include "base/test/metrics/user_action_tester.h" #include "components/...
2,896
561
#pragma once #include <unordered_map> #include "device/device.h" #include "device/device_listener.h" #include "common/common.h" namespace minerva { class DeviceManager { public: DeviceManager(); ~DeviceManager(); uint64_t CreateCpuDevice(); uint64_t CreateGpuDevice(int gid); int GetGpuDeviceCount(); Devi...
225
1,980
from argparse import ArgumentDefaultsHelpFormatter, ArgumentParser import os import textattack from textattack import Attacker, CommandLineAttackArgs, DatasetArgs, ModelArgs from textattack.commands import TextAttackCommand class AttackResumeCommand(TextAttackCommand): """The TextAttack attack resume recipe modu...
1,647
14,668
<filename>chrome/browser/metrics_settings/android/java/src/org/chromium/chrome/browser/metrics_settings/RadioButtonGroupMetricsPreference.java // Copyright 2020 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...
305
703
""" @generated cargo-raze generated Bazel file. DO NOT EDIT! Replaced on runs of cargo-raze """ load("@bazel_tools//tools/build_defs/repo:git.bzl", "new_git_repository") # buildifier: disable=load load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") # buildifier: disable=load load("@bazel_tools//too...
19,817
478
<gh_stars>100-1000 /* Q Light Controller Plus showfunction.h Copyright (c) <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.txt ...
1,060
521
// // AdjustTrackingHelper.h // AdjustExample-iWatch // // Created by <NAME> on 29/04/15. // Copyright (c) 2015 adjust GmbH. All rights reserved. // #import <Foundation/Foundation.h> @class AdjustDelegate; @interface AdjustTrackingHelper : NSObject + (id)sharedInstance; - (void)initialize:(NSObject<AdjustDeleg...
159
318
/** * @file evdev.c Input event device UI module * * Copyright (C) 2010 <NAME> */ #include <unistd.h> #include <sys/ioctl.h> #include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> #include <linux/input.h> #include <string.h> #include <re.h> #include <baresip.h> #include "print.h" /** * @defgroup evdev e...
2,955
715
#include <bits/stdc++.h> #define MAX 1000007 using namespace std; struct node{ int link, len; map<char, int> next; } st[MAX]; int sz, last; void init(){ sz = 1; last = 0; st[0].len = 0; st[0].link = -1; st[0].next.clear(); } void add(char c){ int cur = sz++; st[cur].len = st[last].len + 1; for(; last !=...
439
4,538
/* * Copyright (C) 2015-2020 Alibaba Group Holding Limited */ #ifndef __A2DP_CODEC_OPUS_H__ #define __A2DP_CODEC_OPUS_H__ #if defined(__cplusplus) extern "C" { #endif #include "avdtp_api.h" #include "btapp.h" #if defined(MASTER_USE_OPUS) || defined(ALL_USE_OPUS) bt_status_t a2dp_codec_opus_init(int index); #endif ...
178
790
import os from django.conf.urls import patterns here = os.path.dirname(__file__) urlpatterns = patterns('', (r'^custom_templates/(?P<path>.*)$', 'django.views.static.serve', { 'document_root': os.path.join(here, 'custom_templates'), }), )
107
348
{"nom":"Saclay","circ":"5ème circonscription","dpt":"Essonne","inscrits":2708,"abs":1034,"votants":1674,"blancs":17,"nuls":4,"exp":1653,"res":[{"nuance":"REM","nom":"<NAME>","voix":829},{"nuance":"LR","nom":"Mme <NAME>","voix":291},{"nuance":"FI","nom":"M. <NAME>","voix":136},{"nuance":"SOC","nom":"Mme <NAME>","voix":1...
330
828
<filename>hasor-rsf/rsf-registry/src/main/java/net/hasor/registry/client/support/RegistryClientReceiver.java /* * Copyright 2008-2009 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 obta...
1,374
1,253
<reponame>avi-pal/al-go-rithms # include<stdio.h> /* Function to get sum of digits */ int getSum(int n) { int sum; /*Single line that calculates sum*/ for(sum=0; n > 0; sum+=n%10,n/=10); return sum; } int main() { int n = 687; printf(" %d ", getSum(n)); return 0; }
132
2,496
<gh_stars>1000+ /****************************************************************************** * Qwt Widget Library * Copyright (C) 1997 <NAME> * Copyright (C) 2002 <NAME> * * This library is free software; you can redistribute it and/or * modify it under the terms of the Qwt License, Version 1.0 **********...
779
544
from office365.runtime.paths.resource_path import ResourcePath from office365.sharepoint.base_entity import BaseEntity class VideoServiceDiscoverer(BaseEntity): def __init__(self, context): super(VideoServiceDiscoverer, self).__init__(context, ResourcePath("SP.Publishing.VideoServiceDiscoverer"))
93
471
from django.core.management.base import BaseCommand from corehq.blobs import get_blob_db from corehq.form_processor.interfaces.dbaccessors import FormAccessors class Command(BaseCommand): help = "Delete form attachments matching filter, for use upon client request." def add_arguments(self, parser): ...
801
617
// Copyright (c) Open Enclave SDK contributors. // Licensed under the MIT License. /** * @file mallinfo.h * * This file defines an interface that pluggable allocators can implement. * See * https://github.com/openenclave/openenclave/blob/master/docs/DesignDocs/Mallinfo.md * */ #ifndef OE_ADVANCED_MALLINFO_H #de...
492
388
<reponame>andreikop/botbuilder-python # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. from botframework.connector.auth import BotFrameworkAuthentication, ClaimsIdentity from .channel_service_handler import ChannelServiceHandler class CloudChannelServiceHandler(ChannelSe...
221
5,079
#!/usr/bin/env python # Licensed to Cloudera, Inc. under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. Cloudera, Inc. licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you ma...
950
14,668
{"schema":"pedal_concepts_runtime","schema_version":3,"data_version":16163558,"tokenize_each_character":false,"dictionary":["ajalugu","aken","alusta","andmed","ava","brauser","chrome","eemalda","google","halda","haldamine","haldur","inkognito","jaoks","kaardi","kaardid","kaarditeave","krediitkaardi","krediitkaardid","k...
853
14,668
<filename>third_party/blink/public/common/web_preferences/web_preferences.h<gh_stars>1000+ // Copyright 2014 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef THIRD_PARTY_BLINK_PUBLIC_COMMON_WEB_PREFERENCES_WEB_PRE...
4,603
852
<reponame>ckamtsikis/cmssw #ifndef CastorSaturationCorrs_h #define CastorSaturationCorrs_h #include "CondFormats/Serialization/interface/Serializable.h" #include "CondFormats/CastorObjects/interface/CastorSaturationCorr.h" #include "CondFormats/CastorObjects/interface/CastorCondObjectContainer.h" class CastorSaturat...
203
10,225
<filename>extensions/reactive-mssql-client/deployment/src/main/java/io/quarkus/reactive/mssql/client/deployment/MSSQLPoolBuildItem.java<gh_stars>1000+ package io.quarkus.reactive.mssql.client.deployment; import io.quarkus.builder.item.MultiBuildItem; import io.quarkus.datasource.common.runtime.DataSourceUtil; import i...
377
831
<gh_stars>100-1000 /* * Copyright (C) 2020 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unl...
832
892
<gh_stars>100-1000 { "schema_version": "1.2.0", "id": "GHSA-6699-wcr8-79cg", "modified": "2022-05-01T07:38:58Z", "published": "2022-05-01T07:38:58Z", "aliases": [ "CVE-2006-6541" ], "details": "** DISPUTED ** PHP remote file inclusion vulnerability in signer/final.php in warez distributions of Animat...
665
19,824
<gh_stars>1000+ { "main": "dist/keystone-ui-icons-icons-Navigation2Icon.cjs.js", "module": "dist/keystone-ui-icons-icons-Navigation2Icon.esm.js" }
65
550
<gh_stars>100-1000 package com.qiniu.qvs.model; import com.qiniu.common.Constants; import com.qiniu.util.Md5; import com.qiniu.util.UrlSafeBase64; public class StaticLiveRoute { private String domain; // 域名 private String domainType; // 域名类型 publishRtmp | liveRtmp | liveHls | liveHdl private int urlEx...
1,116
334
#pragma once // mapnik #include <mapnik/datasource_cache.hpp> #include <mapnik/version.hpp> // stl #include <vector> #include <string> #include "utils.hpp" namespace node_mapnik { /** * Register all plugins available. This is not recommend in environments where high-performance is priority. * Consider registering...
1,192
16,989
// Copyright 2021 The Bazel 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 appl...
1,597
488
<reponame>AliOsamaHassan/NLP-Cube import json, os, yaml, uuid import ntpath from shutil import rmtree, copyfile import logging from tqdm.autonotebook import tqdm as tqdm parent_dir = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) os.sys.path.insert(0, parent_dir) from cube.io_utils.modelstore import Mode...
3,223
496
<reponame>jda/lexbor<filename>source/lexbor/core/bst_map.h /* * Copyright (C) 2018 <NAME> * * Author: <NAME> <<EMAIL>> */ #ifndef LEXBOR_BST_MAP_H #define LEXBOR_BST_MAP_H #ifdef __cplusplus extern "C" { #endif #include "lexbor/core/bst.h" #include "lexbor/core/str.h" #include "lexbor/core/mraw.h" #include "lexb...
1,024
407
/* * 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 ...
739
427
//===-- ProcFileReader.cpp --------------------------------------*- C++ -*-===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
1,146
506
#!/usr/bin/env pypy3 from sys import stdin ps = set() n = 0 for l in stdin: n+=1 x,y=map(int, l.split()) ps.add((x, y)) while True: stable = True d={} for x,y in ps: for k in [(x-1,y+2),(x-1,y-2),(x-2,y-1),(x-2,y+1),(x+1,y-2),(x+1,y+2),(x+2,y-1),(x+2,y+1)]: if k in d: d[k]+=1...
341
557
//================================================================================================= // // MJP's DX11 Sample Framework // http://mynameismjp.wordpress.com/ // // All code licensed under the MIT license // //================================================================================================...
607
14,425
<filename>hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-app/src/main/java/org/apache/hadoop/mapreduce/v2/app/webapp/JobsBlock.java /** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for a...
1,466
6,989
# $Id$ # # Copyright (C) 2005 <NAME> (<EMAIL>) # Licensed to PSF under a Contributor Agreement. import warnings warnings.warn("the sha module is deprecated; use the hashlib module instead", DeprecationWarning, 2) from hashlib import sha1 as sha new = sha blocksize = 1 # legacy value (wrong...
137
571
<gh_stars>100-1000 # Copyright (C) 2017 Dell Inc. or its subsidiaries. # 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/licens...
3,561
435
{ "copyright_text": null, "description": "Il talk vuole illustrare gli strumenti e le Api Python che Google mette\na disposizione liberamente agli sviluppatori per interagire con alcune\ndelle sue applicazioni pi\u00f9 diffuse come Google Calendar, Google Docs,\nGoogle Drive, Google Gmail. Verr\u00e0 illustrato qui...
530
3,586
<reponame>pramodbiligiri/datahub<gh_stars>1000+ import json import click from feast import Client from feast.data_source import BigQuerySource, FileSource, KafkaSource, KinesisSource @click.command( context_settings=dict( ignore_unknown_options=True, allow_extra_args=True, ) ) @click.option("...
1,965
1,045
<filename>optimus/engines/pandas/io/load.py import glob from optimus.infer import is_url import uuid import zipfile from pathlib import Path from io import StringIO import requests import pandas as pd import pandavro as pdx from optimus.optimus import EnginePretty from optimus.engines.base.io.load import BaseLoad f...
2,528
3,531
<filename>src/extra/widgets/calendar/lv_calendar_header_arrow.h /** * @file lv_calendar_header_arrow.h * */ #ifndef LV_CALENDAR_HEADER_ARROW_H #define LV_CALENDAR_HEADER_ARROW_H #ifdef __cplusplus extern "C" { #endif /********************* * INCLUDES *********************/ #include "../../../core/lv_obj.h"...
404
4,772
package example.repo; import example.model.Customer1527; import java.util.List; import org.springframework.data.repository.CrudRepository; public interface Customer1527Repository extends CrudRepository<Customer1527, Long> { List<Customer1527> findByLastName(String lastName); }
87
971
<gh_stars>100-1000 package com.ucar.datalink.worker.core.runtime; /** * * Created by lubiao on 2017/1/3. */ public interface TaskConfigUpdateListener { /** * Invoked when a task configuration has been removed * * @param taskId identifier of the task */ void onTaskConfigRemove(String task...
297
1,644
<filename>core/src/test/java/google/registry/flows/EppXmlSanitizerTest.java // Copyright 2018 The Nomulus 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 // ...
2,084
14,668
<reponame>chromium/chromium<gh_stars>1000+ // Copyright 2020 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef IOS_CHROME_BROWSER_SCREEN_TIME_SCREEN_TIME_HISTORY_DELETER_H_ #define IOS_CHROME_BROWSER_SCREEN_TIME_SC...
570
2,111
<gh_stars>1000+ /** * File: BRIEF.cpp * Author: <NAME> * Date: September 2010 * Description: implementation of BRIEF (Binary Robust Independent * Elementary Features) descriptor by * <NAME>, <NAME> <NAME> * + close binary tests (by <NAME>) * License: see the LICENSE.txt file * */ #include "BRIEF.h" #...
1,755
577
/** * Copyright (c) 2016 - 2018 Syncleus, 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 la...
355
1,267
from __future__ import absolute_import import logging LOG_FORMAT = "[%(name)s] %(message)s" try: from .color import ColorFormatter LOG_COLOR_FORMAT = "%(log_color)s"+LOG_FORMAT COLORS = { "DEBUG": "white", "INFO": "green", "WARNING": "yellow", "ERROR": "red", "CRIT...
249
2,605
import unittest from tests import PluginTest from plugins.corona import CoronaInfo from mock import patch, call import requests class CoronaInfoTest(PluginTest): """ Tests For CoronaInfo Plugin """ def setUp(self): self.test = self.load_plugin(CoronaInfo) def test_get_corona_info(self): ...
233
441
<reponame>Yawanaika/intelligent-test-platform package com.alibaba.markovdemo.controller; import com.alibaba.fastjson.JSON; import com.alibaba.fastjson.JSONArray; import com.alibaba.fastjson.JSONObject; import com.alibaba.markovdemo.BO.MultiAIInfo; import com.alibaba.markovdemo.BO.TestCaseInput; import com.alibaba.mark...
8,329
72,551
@protocol P1 -(void)meth; @end @interface B1<P1> -(void)meth; @end @interface S1 : B1 -(void)meth; @end
55
448
<filename>platform/Apple/source/CicadaRenderCBWrapper.h #ifndef CicadaRenderCBWrapper_H #define CicadaRenderCBWrapper_H class IAFFrame; class CicadaRenderCBWrapper { public: static bool OnRenderFrame(void *userData, IAFFrame *frame); }; #endif //CicadaRenderCBWrapper_H
101
313
// // BRChainParams.c // BRCore // // Created by <NAME> on 3/11/19. // Copyright (c) 2019 breadwallet 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 restriction, inc...
4,403
1,792
package org.hongxi.summer.exception; /** * Created by shenhongxi on 2020/7/26. */ public class SummerBizException extends SummerAbstractException { private static final long serialVersionUID = -9030222846555573201L; public SummerBizException() { super(SummerErrorMsgConstants.BIZ_DEFAULT_EXCEPTION); ...
434
437
package com.fasterxml.jackson.dataformat.xml.misc; import java.util.ArrayList; import java.util.List; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIdentityInfo; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonSubType...
1,932
965
// report-progress.cpp // compile with: /EHsc #include <agents.h> #include <iostream> using namespace concurrency; using namespace std; // Simulates a lengthy operation. void perform_lengthy_operation() { // Yield the current context for one second. wait(1000); } int wmain() { // Create a call object that...
297
360
/* * Copyright (c) 2020 Huawei Technologies Co.,Ltd. * * openGauss is licensed under Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * * http://license.coscl.org.cn/MulanPSL2 * * THIS SOFTWARE IS PROVIDED ...
1,668
16,461
// Copyright 2015-present 650 Industries. All rights reserved. package host.exp.exponent.generated; public class ExponentKeys { public static final String AMPLITUDE_KEY = "${AMPLITUDE_KEY}"; public static final String AMPLITUDE_DEV_KEY = "${AMPLITUDE_DEV_KEY}"; }
90
14,668
<reponame>zealoussnow/chromium // 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 COMPONENTS_PERFORMANCE_MANAGER_PUBLIC_GRAPH_SYSTEM_NODE_H_ #define COMPONENTS_PERFORMANCE_MANAGER_PUBLIC_GRAPH_SYST...
943