max_stars_count
int64
301
224k
text
stringlengths
6
1.05M
token_count
int64
3
727k
501
<filename>sshd-core/src/main/java/org/apache/sshd/client/auth/hostbased/HostBasedAuthenticationReporter.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 own...
1,441
994
<reponame>IT-Enthusiast-Nepal/Windows-Driver-Frameworks /*++ Copyright (c) Microsoft Corporation Module Name: FxUsbDeviceUm.cpp Abstract: Author: Environment: User mode only Revision History: --*/ extern "C" { #include <initguid.h> } #include "fxusbpch.hpp" extern "C" { #inclu...
14,947
348
<reponame>chamberone/Leaflet.PixiOverlay<gh_stars>100-1000 {"nom":"Faymont","circ":"2ème circonscription","dpt":"Haute-Saône","inscrits":220,"abs":102,"votants":118,"blancs":3,"nuls":10,"exp":105,"res":[{"nuance":"REM","nom":"M. <NAME>","voix":64},{"nuance":"FN","nom":"M. <NAME>","voix":41}]}
123
348
<filename>docs/data/leg-t1/002/00204610.json<gh_stars>100-1000 {"nom":"Pommiers","circ":"4ème circonscription","dpt":"Aisne","inscrits":470,"abs":213,"votants":257,"blancs":2,"nuls":5,"exp":250,"res":[{"nuance":"REM","nom":"<NAME>","voix":99},{"nuance":"LR","nom":"Mme <NAME>","voix":69},{"nuance":"FN","nom":"<NAME>","v...
262
1,604
package org.bouncycastle.jce.provider.test; import java.io.ByteArrayInputStream; import java.io.ByteArrayOutputStream; import java.io.DataInputStream; import java.io.IOException; import java.security.InvalidAlgorithmParameterException; import java.security.Key; import java.security.KeyException; import java.security.S...
3,259
2,856
# Copyright 2012 by <NAME>. All rights reserved. # # This file is part of the Biopython distribution and governed by your # choice of the "Biopython License Agreement" or the "BSD 3-Clause License". # Please see the LICENSE file that should have been included as part of this # package. """Generate RGB colours suitable...
2,865
2,511
{ "name": "flowchart-fun", "version": "0.0.5", "description": "Generate flowcharts from text", "main": "lib/index.js", "repository": "https://github.com/tone-row/flowchart-fun", "author": "<NAME>", "license": "MIT", "bin": { "flowchart-fun": "lib/run.js" }, "scripts": { "build": "tsc", "...
223
1,094
<reponame>pgmasters/pgbackrest<filename>src/storage/gcs/write.h /*********************************************************************************************************************************** GCS Storage File Write ****************************************************************************************************...
148
8,865
<filename>lib/sanitizer_common/sanitizer_quarantine.h //===-- sanitizer_quarantine.h ----------------------------------*- C++ -*-===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-...
1,909
4,538
/** ****************************************************************************** * @file rtl8721dlp_pinmapcfg.c * @author * @version V1.0.0 * @date 2016-05-17 * @brief This file provides firmware functions to manage the following * functionalities of pin control: * - pinmux...
4,092
1,658
// Copyright (c) 2011-present, Facebook, Inc. All rights reserved. // This source code is licensed under both the GPLv2 (found in the // COPYING file in the root directory) and Apache 2.0 License // (found in the LICENSE.Apache file in the root directory). #include "util/iterator_cache.h" #include "db/range_del_...
1,550
4,764
<filename>apprise/plugins/NotifyRyver.py # -*- coding: utf-8 -*- # # Copyright (C) 2019 <NAME> <<EMAIL>> # All rights reserved. # # This code is licensed under the MIT License. # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files(the "Sof...
5,388
1,443
{ "copyright": "<NAME>, http://dougborg.org", "url": "http://dougborg.org", "email": "<EMAIL>", "gravatar": true }
53
552
<reponame>Rajendralella-git/spring-boot<gh_stars>100-1000 package com.mkyong.sp; import com.mkyong.repository.BookRepository; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Qualifier; import org...
1,168
14,668
// Copyright 2013 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_NETWORK_WEBSOCKET_H_ #define SERVICES_NETWORK_WEBSOCKET_H_ #include <stdint.h> #include <memory> #include <string> #include <vector> #...
3,451
11,396
<reponame>bhyunki/awx from .plugin import CredentialPlugin, CertFiles, raise_for_status import base64 from urllib.parse import urljoin, quote from django.utils.translation import ugettext_lazy as _ import requests conjur_inputs = { 'fields': [ { 'id': 'url', 'label': _('Conjur UR...
1,340
713
package org.infinispan.query.dsl.embedded.impl; import java.text.ParseException; import java.util.Date; import java.util.Optional; import org.apache.lucene.document.DateTools; import org.hibernate.search.engine.backend.metamodel.IndexDescriptor; import org.hibernate.search.engine.backend.metamodel.IndexFieldDescripto...
2,406
14,668
<filename>chrome/browser/enterprise/connectors/device_trust/signals/decorators/browser/browser_signals_decorator.cc<gh_stars>1000+ // 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 "chrome/browse...
1,368
1,253
#include<iostream> template<class T> //Normally T = double, but could for example be used to integrate functions f : R -> C if necessary operators are defined. T IntegrateNumerically(T(*f)(double), double leftEndpoint, double rightEndpoint, double stepSize) { T integral = T(); double halfStepSize = stepSize / 2; d...
323
1,269
<reponame>zhouhp007/AndroidAll package com.chiclaim.annotation.com.chiclaim.utils; import java.util.Calendar; public class TimeUtils { /** * 获取"今天"的开始和结束的时间戳 * * @return long[], long[0] = start, long[1] = end * @author kumu */ private static long[] getTodayBeginEnd() { Calend...
794
759
from .ip import get_client_ip # noqa default_app_config = 'ipware.apps.IPwareConfig'
32
309
#ifndef __vtkTestClass_h #define __vtkTestClass_h #include "vtkDataObject.h" class vtkMatrix3x3; class vtkTestClass : public vtkDataObject { public: vtkTypeRevisionMacro(vtkTestClass,vtkDataObject); static vtkTestClass *New(); vtkSetClampMacro(Value, int, 2, 8); vtkGetMacro(Value, int); protected: ...
203
10,225
<reponame>vonatzigenc/quarkus package io.quarkus.hibernate.orm.attributeconverter; import static org.assertj.core.api.Assertions.assertThat; import javax.inject.Inject; import javax.persistence.AttributeConverter; import javax.persistence.Basic; import javax.persistence.Converter; import javax.persistence.Entity; imp...
1,052
3,031
<reponame>revvsales/python-docx-1 # encoding: utf-8 """ Step implementations for paragraph-related features """ from behave import given, then, when from docx import Document from docx.enum.text import WD_ALIGN_PARAGRAPH from docx.text.parfmt import ParagraphFormat from helpers import saved_docx_path, test_docx, te...
1,897
6,115
#pragma once #include "CoreMinimal.h" #include "HAL/Runnable.h" #include "AirBlueprintLib.h" #include "api/VehicleSimApiBase.hpp" #include "Recording/RecordingFile.h" #include "physics/Kinematics.hpp" #include <memory> #include "common/ClockFactory.hpp" #include "common/AirSimSettings.hpp" #include "common/WorkerThre...
669
22,481
<reponame>GoNzCiD/home-assistant-core<gh_stars>1000+ """Config flow to configure the CPU Speed integration.""" from __future__ import annotations from typing import Any from homeassistant.config_entries import ConfigFlow from homeassistant.const import CONF_NAME from homeassistant.data_entry_flow import FlowResult f...
462
2,381
<reponame>kiview/docker-java<gh_stars>1000+ package com.github.dockerjava.core.exec; import com.github.dockerjava.api.command.RemoveConfigCmd; import com.github.dockerjava.core.DockerClientConfig; import com.github.dockerjava.core.MediaType; import com.github.dockerjava.core.WebTarget; import org.slf4j.Logger; import ...
339
663
<gh_stars>100-1000 # (C) Datadog, Inc. 2021-present # All rights reserved # Licensed under a 3-clause BSD style license (see LICENSE) from collections import defaultdict from keyword import iskeyword import yaml from datamodel_code_generator.format import CodeFormatter, PythonVersion from datamodel_code_generator.pars...
10,214
488
<filename>setup.py #!/usr/bin/env python # -*- coding: utf-8 -*- """ intervaltree: A mutable, self-balancing interval tree for Python 2 and 3. Queries may be by point, by range overlap, or by range envelopment. Distribution logic Note that "python setup.py test" invokes pytest on the package. With appropriately conf...
1,578
1,830
/* * Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH under * one or more contributor license agreements. See the NOTICE file distributed * with this work for additional information regarding copyright ownership. * Licensed under the Zeebe Community License 1.1. You may not use this file * ...
1,463
435
{ "copyright_text": null, "description": "", "duration": 822, "language": null, "recorded": "2019-06-15", "related_urls": [ { "label": "Conference schedule", "url": "https://2019.th.pycon.org/en/schedule/" } ], "speakers": [], "tags": [], "thumbnail_url": "https://i.ytimg.com/vi/...
241
12,002
// This file is part of Background Music. // // Background Music is free software: you can redistribute it and/or // modify it under the terms of the GNU General Public License as // published by the Free Software Foundation, either version 2 of the // License, or (at your option) any later version. // // Background Mu...
4,483
719
#pragma once #include <cilantro/registration/correspondence_search_combined_metric_adaptor.hpp> #include <cilantro/registration/correspondence_search_combined_metric_combiner.hpp> #include <cilantro/registration/icp_base.hpp> #include <cilantro/registration/icp_common_instances.hpp> #include <cilantro/registration/icp...
288
709
<reponame>emadurandal/OpenSiv3D //----------------------------------------------- // // This file is part of the Siv3D Engine. // // Copyright (c) 2008-2021 <NAME> // Copyright (c) 2016-2021 OpenSiv3D Project // // Licensed under the MIT License. // //----------------------------------------------- # pragma once # in...
2,398
794
<filename>src/sac_problems/relative_pose/EigensolverSacProblem.cpp /****************************************************************************** * Author: <NAME> * * Contact: <EMAIL> * * License: Copyright (c) 2013 <NAM...
2,741
1,441
#include <bits/stdc++.h> using namespace std; typedef vector<int> vi; const int MAX_N = 2510; // O(n^2 log n) char T[MAX_N]; // up to 2500 chars int main() { freopen("sa_lcp_in.txt", "r", stdin); scanf("%s", &T); // read T ...
799
348
{"nom":"Calleville","circ":"2ème circonscription","dpt":"Eure","inscrits":545,"abs":331,"votants":214,"blancs":20,"nuls":4,"exp":190,"res":[{"nuance":"REM","nom":"<NAME>","voix":109},{"nuance":"FN","nom":"M. <NAME>","voix":81}]}
90
385
<reponame>CarlKarlssonSchmidt/logstash-gelf package biz.paluch.logging.gelf.standalone; import java.util.Map; import biz.paluch.logging.gelf.intern.GelfMessage; /** * Datenpumpe allows to submit arbitrary values (flat data set) using Gelf. * * @author <NAME> * @since 31.07.14 08:43 */ public interface Datenpum...
344
1,338
/* * Copyright 2008-2012 Haiku, Inc. All Rights Reserved. * Distributed under the terms of the MIT License. */ #ifndef _WCHAR_H #define _WCHAR_H #include <limits.h> #include <stddef.h> #include <stdio.h> #include <time.h> /* stddef.h is not supposed to define wint_t, but gcc 2.95.3's one does. * In all other ca...
2,638
854
<filename>solutions/LeetCode/C++/538.cpp __________________________________________________________________________________________________ sample 36 ms submission /** * Definition for a binary tree node. * struct TreeNode { * int val; * TreeNode *left; * TreeNode *right; * TreeNode(int x) : val(x...
760
988
<gh_stars>100-1000 /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the ...
22,732
2,542
// ------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License (MIT). See License.txt in the repo root for license information. // ------------------------------------------------------------ #pragma once namespace Manage...
2,468
412
/* Copyright 2015 Google Inc. 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 or agreed to in wri...
2,640
348
<gh_stars>100-1000 {"nom":"Franconville","circ":"4ème circonscription","dpt":"Val-d'Oise","inscrits":21799,"abs":13988,"votants":7811,"blancs":556,"nuls":224,"exp":7031,"res":[{"nuance":"REM","nom":"<NAME>","voix":4004},{"nuance":"LR","nom":"M. <NAME>","voix":3027}]}
109
419
<reponame>Piterden/rultor /** * Copyright (c) 2009-2021 <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: 1) Redistributions of source code must retain the above * copyright notice, ...
3,157
643
/* * Copyright (C) 1994-2021 OpenTV, Inc. and Nagravision S.A. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #pragma once #include <glog/logging.h> // Logging type. SYSLOG type or use default LOG type #undef RNS_LOG_TYPE_SYSLOG #ifdef RNS_LOG_TYPE_SY...
1,493
471
<reponame>madanagopaltcomcast/pxCore ///////////////////////////////////////////////////////////////////////////// // Name: class_menus.h // Purpose: Menu classes group docs // Author: wxWidgets team // Licence: wxWindows licence //////////////////////////////////////////////////////////////////////...
123
375
<reponame>wulinyun/lumify<filename>data-mapping/core/src/main/java/io/lumify/mapping/xform/DoubleValueTransformer.java package io.lumify.mapping.xform; import com.fasterxml.jackson.annotation.JsonTypeName; /** * This class attempts to parse an input string as a Double, * returning the resulting value or null if it ...
299
435
<gh_stars>100-1000 { "copyright_text": null, "description": "The US is amid its largest measles outbreak since 1992, with 1,250 cases as of Oct 3, 2019. Most cases (649) were in NYC, where the outbreak was declared over on Sep 3, 2019. This tutorial creates data visualizations to help understand the measles outbrea...
416
1,056
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you ...
1,435
2,221
<gh_stars>1000+ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * ...
3,062
9,472
<filename>src/japronto/response/cresponse_ext.py from distutils.core import Extension def get_extension(): define_macros = [('RESPONSE_OPAQUE', 1)] if system.args.enable_response_cache: define_macros.append(('RESPONSE_CACHE', 1)) return Extension( 'japronto.response.cresponse', so...
184
5,964
// 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 WebMimeRegistryImpl_h #define WebMimeRegistryImpl_h #include <string> #include "base/compiler_specific.h" #include "third_party/WebKit/public/pl...
880
892
{ "schema_version": "1.2.0", "id": "GHSA-c4v9-9c8q-335m", "modified": "2022-04-30T18:20:41Z", "published": "2022-04-30T18:20:41Z", "aliases": [ "CVE-2002-1183" ], "details": "Microsoft Windows 98 and Windows NT 4.0 do not properly verify the Basic Constraints of digital certificates, allowing remote a...
674
566
import pylivestream as pls import pytest from pytest import approx import subprocess import os import platform sites = ["localhost", "periscope", "youtube", "facebook"] TIMEOUT = 30 CI = os.environ.get("CI", None) in ("true", "True") WSL = "Microsoft" in platform.uname().release def test_props(periscope_kbps): ...
528
4,772
package example.repo; import example.model.Customer1126; import java.util.List; import org.springframework.data.repository.CrudRepository; public interface Customer1126Repository extends CrudRepository<Customer1126, Long> { List<Customer1126> findByLastName(String lastName); }
87
521
<gh_stars>100-1000 /* $Id: ComHostUtils.cpp $ */ /** @file * ComHostUtils.cpp */ /* * Copyright (C) 2013-2017 Oracle Corporation * * This file is part of VirtualBox Open Source Edition (OSE), as * available from http://www.virtualbox.org. This file is free software; * you can redistribute it and/or modify it un...
3,041
959
<filename>examples/java/src/examples/Spark.java package examples; import opc.Animation; import opc.OpcClient; import opc.OpcDevice; import opc.PixelStrip; /** * Display a moving white pixel with trailing orange/red flames * This looks pretty good with a ring of pixels. */ public class Spark extends Animation { ...
696
511
<filename>external/aws/include/aws_iot_version.h /* * Copyright 2010-2015 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...
489
1,160
""" summary: retrieve & dump current selection description: Shows how to retrieve the selection from a listing widget ("IDA View-A", "Hex View-1", "Pseudocode-A", ...) as two "cursors", and from there retrieve (in fact, generate) the corresponding text. After running this script: * select some text in ...
1,237
335
"""Early-pipeline operations that error-check and lower grammars.""" from __future__ import annotations # mypy: disallow-untyped-defs, disallow-incomplete-defs, disallow-untyped-calls import collections import dataclasses from dataclasses import dataclass import typing from .grammar import (CallMethod, Element, End,...
13,876
473
/* * Copyright (c) 2015 Kaprica Security, Inc. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, mer...
472
1,831
/** * Copyright (c) 2018-present, Facebook, Inc. and its affiliates. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. */ #include "logdevice/common/plugin/BuiltinZookeeperClientFactory.h" #include "logdevic...
240
357
package com.vmware.vmdir.test.stress.driver; import java.util.List; import java.util.Map; import java.util.Random; import com.unboundid.asn1.ASN1OctetString; import com.unboundid.ldap.sdk.Filter; import com.unboundid.ldap.sdk.LDAPConnection; import com.unboundid.ldap.sdk.LDAPException; import com.unboundid.ldap.sdk.L...
1,790
468
<gh_stars>100-1000 #define GLI_INCLUDE_GL_IMG_TEXTURE_COMPRESSION_PVRTC enum Main { GL_COMPRESSED_RGB_PVRTC_4BPPV1_IMG = 0x8C00, GL_COMPRESSED_RGB_PVRTC_2BPPV1_IMG = 0x8C01, GL_COMPRESSED_RGBA_PVRTC_4BPPV1_IMG = 0x8C02, GL_COMPRESSED_RGBA_PVRTC_2BPPV1_IMG = 0x8C03, };
186
353
<reponame>lihongwu19921215/nutzmore<filename>nutz-plugins-views/src/main/java/org/nutz/plugins/view/thymeleaf/ThymeleafIocLoader.java package org.nutz.plugins.view.thymeleaf; import org.nutz.ioc.loader.json.JsonLoader; import org.nutz.json.Json; import org.nutz.lang.Lang; import org.nutz.lang.Streams; import java.io....
623
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 // //===---------------------------...
283
778
<reponame>lukaszgotszaldintel/compute-runtime /* * Copyright (C) 2018-2020 Intel Corporation * * SPDX-License-Identifier: MIT * */ #include "shared/source/os_interface/linux/drm_neo.h" #include "test.h" #include <array> using namespace NEO; TEST(KblDeviceIdTest, GivenSupportedDeviceIdThenHardwareInfoIsCorrect...
1,648
626
# -*- coding: utf-8 -*- # # Anserini: A toolkit for reproducible information retrieval research built on Lucene # # 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/licen...
5,119
302
#include "qtdownload.h" #include <QDebug> #include <QFile> QtDownload::QtDownload(QObject *parent) : QObject(parent) { QObject::connect(&manager, SIGNAL(finished(QNetworkReply *)), this, SLOT(downloadFinished(QNetworkReply *))); } void QtDownload::setTarget(const QString &t) { this->target = t; }...
412
317
#pragma once #include <map> #include <vector> #include <memory> #include <string> #include "Patch.h" #include "DataTypes.h" #include "WADLoader.h" class WADLoader; class AssetsManager { public: static AssetsManager* GetInstance(); void Init(WADLoader* pWADLoader); ~AssetsManager(); Patch* AddPatch(...
257
371
from django.test import TestCase from sockpuppet.templatetags.sockpuppet import camelcase, pascalcase class CamelcaseFilterTest(TestCase): def test_camelcase(self): self.assertEqual(camelcase("Foo"), "foo") def test_2_camelcase(self): self.assertEqual(camelcase("foo_bar"), "fooBar") def...
987
1,405
package com.lenovo.safecenter.systeminfo.entity; public class PhoneInfoItem { private int a; private String b; public PhoneInfoItem() { } public PhoneInfoItem(int iconRes, String info) { this.a = iconRes; this.b = info; } public int getIconRes() { return this.a; ...
232
3,227
// 3D intersection tests. // We want to check that no division is performed for interface macro Do_intersect_3_RT #define CGAL_NO_MPZF_DIVISION_OPERATOR // Sphere_3_X with X < Sphere (lexicographically) are tested in other files #include <CGAL/Intersections_3/Ray_3_Ray_3.h> #include <CGAL/Intersections_3/Ray_3_Segme...
6,295
559
import numpy import scipy.signal from generate import * def generate(): def dft(samples): # Compute DFT return numpy.fft.fft(samples).astype(numpy.complex64) def psd(samples, window_type, sample_rate, logarithmic): # Compute PSD _, psd_samples = scipy.signal.periodogram(sample...
1,075
2,577
<filename>model-api/bpmn-model/src/main/java/org/camunda/bpm/model/bpmn/impl/instance/FlowNodeImpl.java /* * Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH * under one or more contributor license agreements. See the NOTICE file * distributed with this work for additional information regardi...
2,258
1,901
# -*- coding: utf-8 -*- import time BLOG_AUTHOR = "<NAME>" # (translatable) BLOG_TITLE = "Demo Site" # (translatable) SITE_URL = "https://example.com/" BLOG_EMAIL = "<EMAIL>" BLOG_DESCRIPTION = "This is a demo site for Nikola." # (translatable) DEFAULT_LANG = "en" TRANSLATIONS = { "en": "", "pl": "./pl", } T...
875
384
package yifeiyuan.practice.practicedemos.intent; import android.content.Intent; import android.net.Uri; import android.os.Bundle; import android.support.v7.app.AppCompatActivity; import android.view.Menu; import android.view.MenuItem; import android.view.View; import android.widget.TextView; import android.widget.Toas...
1,168
1,562
<gh_stars>1000+ // Copyright 2020 Google LLC // // 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...
1,791
8,805
<filename>ios/Pods/boost-for-react-native/boost/vmd/tuple/pop_back.hpp // (C) Copyright <NAME> 2015 // Use, modification and distribution are subject to 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). #if !defined(BOOST_...
974
521
/** * @file include/retdec/llvmir2hll/ir/const_int.h * @brief An integer constant. * @copyright (c) 2017 Avast Software, licensed under the MIT license */ #ifndef RETDEC_LLVMIR2HLL_IR_CONST_INT_H #define RETDEC_LLVMIR2HLL_IR_CONST_INT_H #include <cstddef> #include <cstdint> #include <string> #include <llvm/ADT/APInt...
783
4,751
/* * Copyright 2020 Google LLC * * 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 ...
849
348
<filename>docs/data/leg-t2/035/03504098.json {"nom":"<NAME>","circ":"4ème circonscription","dpt":"Ille-et-Vilaine","inscrits":895,"abs":516,"votants":379,"blancs":11,"nuls":16,"exp":352,"res":[{"nuance":"REM","nom":"<NAME>","voix":241},{"nuance":"FI","nom":"<NAME>","voix":111}]}
116
8,747
<reponame>DCNick3/esp-idf /****************************************************************************** * * Copyright (C) 2009-2012 Broadcom 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 c...
2,325
5,169
{ "name": "GPUAnimation", "version": "0.0.1", "summary": "iOS Animation Made Fast and Simple.", "description": "A iOS UIKit Animation Library that use the Metal for all the heavy lifting.\nProvides an elegant API for animating any attributes you like.\nSave CPU time for handing events instead of calculation ani...
271
3,508
<gh_stars>1000+ package com.fishercoder.solutions; import java.util.ArrayList; import java.util.List; /** * 1390. Four Divisors * * Given an integer array nums, return the sum of divisors of the integers in that array that have exactly four divisors. * If there is no such integer in the array, return 0. * * Exa...
781
2,151
<gh_stars>1000+ // Copyright (c) 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. // This file contains the GLES2DecoderPassthroughImpl class. #ifndef GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_PASSTHROUGH_H_ #def...
8,679
718
package com.tuesda.watch.activities; import android.app.Activity; import android.content.Intent; import android.os.Bundle; import android.text.TextUtils; import android.view.View; import android.view.ViewGroup; import android.widget.AbsListView; import android.widget.AdapterView; import android.widget.ListView; import...
2,626
3,631
/* * Copyright 2018 Red Hat, Inc. and/or 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 * * Unless required by app...
2,070
359
from ..conf import POOL_UPPER_THRESHOLD from ..dbop import RedisOperator from ..errors import ResourceDepletionError from ..spiders import SpiderMeta from .tester import UsabilityTester from concurrent import futures class PoolAdder(object): """添加器,负责启动爬虫补充代理""" def __init__(self): self._threshold = ...
814
2,963
<filename>Compiler/AST/ASTMethod.cpp<gh_stars>1000+ // // ASTMethod.cpp // Emojicode // // Created by <NAME> on 05/08/2017. // Copyright © 2017 <NAME>. All rights reserved. // #include "ASTMethod.hpp" #include "ASTVariables.hpp" #include "Analysis/FunctionAnalyser.hpp" #include "Analysis/SemanticAnalyser.hpp" #inc...
3,958
416
package org.simpleflatmapper.util; import java.util.Spliterator; import java.util.function.Consumer; public class EnumerableSpliterator<T> implements Spliterator<T> { private final Enumerable<T> enumerable; public EnumerableSpliterator(Enumerable<T> enumerable) { this.enumerable = enumerable; } ...
451
450
<gh_stars>100-1000 //===- EngineFwd.h --------------------------------------------------------===// // // The ONNC Project // // See LICENSE.TXT for details. // //===----------------------------------------------------------------------===// #ifndef ONNC_DIAGNOSTIC_ENGINE_FORWARD_H #define O...
487
407
package io.eventuate.examples.tram.ordersandcustomers.orderhistorytextsearch; import io.eventuate.examples.tram.ordersandcustomers.orderhistorytextsearch.apiweb.CustomerTextView; import io.eventuate.examples.tram.ordersandcustomers.orderhistorytextsearch.apiweb.OrderTextView; import io.eventuate.examples.tram.ordersan...
935
14,668
#!/usr/bin/env python3 # Copyright 2017 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. from writers import template_writer def GetWriter(config): '''Factory method for instanciating the GoogleADMXWriter. Every Writer ...
335
2,059
<gh_stars>1000+ #if !(defined(GO) && defined(GOM) && defined(GO2) && defined(DATA)) #error Meh #endif GO(adler32, LFLpu) GO(adler32_combine, LFLLl) GO(adler32_combine64, LFLLl) GO(adler32_z, LFLpL) GO(compress, iFpppL) GO(compress2, iFpppLi) GO(compressBound, LFL) GO(crc32, LFLpu) GO(crc32_combine, LFLLl) GO(crc32_com...
1,094
5,079
<reponame>xiegudong45/typeidea import django from django.core.handlers.wsgi import WSGIHandler def get_wsgi_application(): """ The public interface to Django's WSGI support. Should return a WSGI callable. Allows us to avoid making django.core.handlers.WSGIHandler public API, in case the internal ...
146
495
from __future__ import division, print_function, absolute_import import os # fromsqlite3() ############### os.remove('example.db') import petl as etl import sqlite3 # set up a database to demonstrate with data = [['a', 1], ['b', 2], ['c', 2.0]] connection = sqlite3.connect('example.db') c = connecti...
372
692
package org.zeroturnaround.exec.test; import org.junit.Assert; import org.junit.Test; import org.zeroturnaround.exec.ProcessExecutor; import org.zeroturnaround.exec.ProcessResult; import org.zeroturnaround.exec.listener.ProcessListener; public class ProcessListenerSuccessTest { @Test public void testJavaVersion(...
783
663
/** * Copyright (c) 2013-2015, <NAME>, <NAME> (MIT License) * Copyright (c) 2016, <NAME> (MIT License). * Copyright (c) 2018, Microsoft Corporation (MIT License). */ #ifndef NODE_PTY_PATH_UTIL_H_ #define NODE_PTY_PATH_UTIL_H_ #include <nan.h> #define MAX_ENV 65536 namespace path_util { const wchar_t* to_wstrin...
196