max_stars_count
int64
301
224k
text
stringlengths
6
1.05M
token_count
int64
3
727k
533
import datetime import ipaddress import re import typing import uuid from urllib.parse import urlparse from typesystem.base import ValidationError DATE_REGEX = re.compile(r"(?P<year>\d{4})-(?P<month>\d{1,2})-(?P<day>\d{1,2})$") TIME_REGEX = re.compile( r"(?P<hour>\d{1,2}):(?P<minute>\d{1,2})" r"(?::(?P<secon...
3,746
938
<reponame>brickviking/TinkersConstruct { "type": "minecraft:crafting_shapeless", "group": "wooden_button", "ingredients": [ { "item": "tconstruct:bloodshroom_planks" } ], "result": { "item": "tconstruct:bloodshroom_button" } }
110
1,139
<reponame>ghiloufibelgacem/jornaldev<gh_stars>1000+ s = 'Java is Nice' # simple string split example str_list = s.split(sep=' ') print(str_list) # maxsplit example str_list = s.split(sep=' ', maxsplit=1) print(str_list) # sep is not provider or None s = ' Java Python iOS Android ' str_list = s.split() print(st...
698
462
<reponame>cable5881/pmq<filename>mq-client/mq-client-core/src/test/java/com/ppdai/infrastructure/mq/client/AllClientCoreTests.java //package com.ppdai.infrastructure.mq.client; // //import org.junit.runner.RunWith; //import org.junit.runners.Suite; //import org.junit.runners.Suite.SuiteClasses; // //import com.ppdai.in...
701
1,418
#!/usr/bin/python3 # A simple program to test TCP throughput, by sending 1GiB data. import socket, sys, time def report(name : str, total_bytes : int, elapsed_seconds : float): mbps = total_bytes / 1e6 / elapsed_seconds print('%s transferred %.3fMB in %.3fs, throughput %.3fMB/s %.3fMbits/s' % (na...
3,419
1,585
/* * Copyright (c) 2014-2020 The University of Tennessee and The University * of Tennessee Research Foundation. All rights * reserved. * $COPYRIGHT$ * * Additional copyrights may follow * * $HEADER$ */ #include "ompi/mca/coll/coll.h" #include "coll_adapt_contex...
620
569
#include <sys/system_properties.h> #include <string> #include <nfcd/helper/System.h> /* static */ int System::sSdkInt = -1; int System::sdkInt() { if (sSdkInt != -1) return sSdkInt; char osVersion[PROP_VALUE_MAX+1]; __system_property_get("ro.build.version.sdk", osVersion); int sdk_int = std:...
176
2,151
<filename>third_party/android_tools/sdk/sources/android-25/org/apache/harmony/dalvik/NativeTestTarget.java /* * Copyright (C) 2007 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain ...
673
5,169
{ "name": "EasyRandom", "version": "0.9", "summary": "Easy random variable generator for Swift", "description": "EasyRandom generates random variables for a given distribution. Define your own distribution, either discrete or continuous, and EasyRandom will make randoms for you.", "homepage": "https://hellowo...
249
1,848
// bindgen-flags: --with-derive-hash --with-derive-partialeq --with-derive-eq float _Complex globalValueFloat; double _Complex globalValueDouble; long double _Complex globalValueLongDouble;
58
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. // ------------------------------------------------------------ #include "stdafx.h" using nam...
775
439
/** * Baidu.com,Inc. * Copyright (c) 2000-2013 All Rights Reserved. */ package com.baidu.hsb.parser.recognizer.mysql.syntax; import static com.baidu.hsb.parser.recognizer.mysql.MySQLToken.KW_DELETE; import static com.baidu.hsb.parser.recognizer.mysql.MySQLToken.KW_FROM; import static com.baidu.hsb.parser.recognizer...
1,654
1,318
{ "name": "array-equal", "description": "check if two arrays are equal", "version": "1.0.0", "license": "MIT", "repository": "component/array-equal", "scripts": [ "index.js" ] }
79
3,049
import spacy import re import numpy as np from sklearn.base import TransformerMixin from html.parser import HTMLParser import dill import sys, os nlp = spacy.load("en_core_web_sm", parser=False, entity=False) class SpacyTokenTransformer(TransformerMixin): __symbols = set("!$%^&*()_+|~-=`{}[]:\";'<>?,./-") d...
1,236
3,586
package com.linkedin.metadata.boot.steps; import com.linkedin.common.AuditStamp; import com.linkedin.common.DataPlatformInstance; import com.linkedin.common.urn.Urn; import com.linkedin.data.template.RecordTemplate; import com.linkedin.metadata.Constants; import com.linkedin.metadata.boot.BootstrapStep; import com.lin...
1,300
8,629
<reponame>pdv-ru/ClickHouse #include <gtest/gtest.h> #include <utility> #include <limits> #include <set> #include <Storages/MergeTree/IntersectionsIndexes.h> #include <Storages/MergeTree/ParallelReplicasReadingCoordinator.h> using namespace DB; TEST(HalfIntervals, Simple) { ASSERT_TRUE(( HalfIntervals...
3,893
642
<reponame>carlosdanielpohlod/php-ml-examples import csv import random from staticmap import StaticMap, CircleMarker m = StaticMap(1000, 900, url_template='http://a.tile.stamen.com/toner/{z}/{x}/{y}.png') with open('data/crimes-arson.csv') as csvfile: reader = csv.reader(csvfile, delimiter=';') for row in rea...
218
1,392
import graphene from ...graphql.core.enums import to_enum from ...order import ( FulfillmentStatus, OrderEvents, OrderEventsEmails, OrderOrigin, OrderStatus, ) FulfillmentStatusEnum = to_enum(FulfillmentStatus, type_name="FulfillmentStatus") OrderEventsEnum = to_enum(OrderEvents) OrderEventsEmails...
289
1,093
/* * Copyright 2007-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,047
334
// Folha de Pagamento /* Precisamos saber quanto uma determinada empresa deve pagar para seus colaboradores, porém temos apenas a quantidade de horas trabalhadas e o valor hora. Escreva um programa que leia o número de um colaborador, seu número de horas trabalhadas, o valor que recebe por hora e calcula o salário des...
579
1,473
<filename>bootstraps/bootstrap-core/src/main/java/com/navercorp/pinpoint/bootstrap/plugin/request/ContinueTraceHeader.java<gh_stars>1000+ /* * Copyright 2018 NAVER 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 ...
750
1,127
// Copyright (C) 2018-2022 Intel Corporation // SPDX-License-Identifier: Apache-2.0 // #include "gtest/gtest.h" #include "ngraph/ngraph.hpp" #include "ngraph/op/util/attr_types.hpp" #include "ngraph/opsets/opset1.hpp" #include "ngraph/opsets/opset3.hpp" #include "ngraph/opsets/opset4.hpp" #include "ngraph/opsets/opset...
453
3,921
/* * Created by LuaView. * Copyright (c) 2017, Alibaba Group. All rights reserved. * * This source code is licensed under the MIT. * For the full copyright and license information,please view the LICENSE file in the root directory of this source tree. */ package com.taobao.luaview.annotations; import java.lang....
273
308
<reponame>metaswitch-ak10/libyang /* * @file test_schema_common.c * @author: <NAME> <<EMAIL>> * @brief unit tests for functions from common.c * * Copyright (c) 2018 CESNET, z.s.p.o. * * This source code is licensed under BSD 3-Clause License (the "License"). * You may not use this file except in compliance with...
25,659
16,461
<reponame>zakharchenkoAndrii/expo // Copyright © 2021 650 Industries. All rights reserved. #import <ABI42_0_0UMCore/ABI42_0_0UMExportedModule.h> #import <ABI42_0_0UMCore/ABI42_0_0UMModuleRegistryConsumer.h> #import <ABI42_0_0UMCore/ABI42_0_0UMEventEmitter.h> @interface ABI42_0_0EXClipboardModule : ABI42_0_0UMExporte...
172
722
import torch from torch.optim.optimizer import Optimizer import pytorch_lightning as pl from ..losses import SinkPITLossWrapper class BaseScheduler(object): """Base class for the step-wise scheduler logic. Args: optimizer (Optimize): Optimizer instance to apply lr schedule on. Subclass this and...
2,791
348
{"nom":"Curtil-sous-Burnand","dpt":"Saône-et-Loire","inscrits":122,"abs":28,"votants":94,"blancs":13,"nuls":6,"exp":75,"res":[{"panneau":"1","voix":46},{"panneau":"2","voix":29}]}
79
3,712
<reponame>p0vidl0/docker-android<gh_stars>1000+ import unittest from time import sleep from appium import webdriver class MSiteDefaultBrowserAndroidUITests(unittest.TestCase): def setUp(self): # Default browser does not exist for android >= 6.0 desired_caps = { 'platformName': 'And...
447
12,278
/*============================================================================= Copyright (c) 2003 <NAME> (<EMAIL>) http://spirit.sourceforge.net/ 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) =============...
935
419
<gh_stars>100-1000 #include "TypeHelpers.h" #include "TypeInfo.h" //------------------------------------------------------------------------- namespace KRG { TypeSystem::TypeInfo const* IRegisteredType::s_pTypeInfo = nullptr; namespace TypeSystem::TypeHelpers { TTypeHelper<IRegisteredT...
132
3,195
<filename>models/crowdhuman/softmax_entropy_op.py import numpy as np import mxnet as mx class SoftmaxEntropyOperator(mx.operator.CustomOp): def __init__(self): super().__init__() def forward(self, is_train, req, in_data, out_data, aux): data = in_data[0] label = in_data[1] ...
774
685
<reponame>adi-g15/LemonOS #pragma once #include <Fs/FsVolume.h> #include <Objects/KObject.h> #include <Objects/Interface.h> #include <Vector.h> class Service; class ServiceFS : public fs::FsVolume { protected: friend class Service; static ServiceFS* instance; public: List<FancyRefPtr<Service>> service...
445
1,073
<filename>saiku-core/saiku-service/src/main/java/org/saiku/repository/MarkLogicRepositoryManager.java<gh_stars>1000+ package org.saiku.repository; import com.marklogic.xcc.*; import com.marklogic.xcc.exceptions.RequestException; import com.marklogic.xcc.exceptions.XccConfigException; import org.apache.commons.lang3.te...
8,803
1,445
<reponame>prohfesor/tapiriik from tapiriik.database import db, close_connections from tapiriik.sync import SyncStep import os import signal import socket from datetime import timedelta, datetime print("Sync watchdog run at %s" % datetime.now()) host = socket.gethostname() for worker in db.sync_workers.find({"Host": ...
510
1,031
<filename>newton-3.14/applications/modelEditor/nme/EditorAssetExplorer.h /* Copyright (c) <2003-2016> <Newton Game Dynamics> * * This software is provided 'as-is', without any express or implied * warranty. In no event will the authors be held liable for any damages * arising from the use of this software. * * Permis...
608
427
<gh_stars>100-1000 /* * Copyright (c) 2008-2011 Apple Inc. All rights reserved. * * @APPLE_APACHE_LICENSE_HEADER_START@ * * 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:/...
2,988
1,089
<reponame>nobo728x/logbook<gh_stars>1000+ package org.zalando.logbook; import org.apiguardian.api.API; import java.io.IOException; import static org.apiguardian.api.API.Status.STABLE; @API(status = STABLE) public interface ForwardingHttpResponse extends ForwardingHttpMessage, HttpResponse { @Override HttpR...
272
1,403
def generate(env): env['Toolpath_TestTool2_1'] = 1 def exists(env): return 1
39
347
<reponame>cunha17/mapproxy # -:- encoding: utf-8 -:- # This file is part of the MapProxy project. # Copyright (C) 2013 Omniscale <http://omniscale.de> # # 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 Lic...
555
531
// Fill out your copyright notice in the Description page of Project Settings. #pragma once #include "CoreMinimal.h" #include "Perception/AISense.h" #include "AISense_Aquaphobia.generated.h" /** * */ class UAISenseConfig_Aquaphobia; //forward declaration to avoid circular dependencies UCLASS(meta=(DisplayName="A...
423
14,668
// 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 CHROME_BROWSER_EXTENSIONS_API_PRINTING_PRINT_JOB_SUBMITTER_H_ #define CHROME_BROWSER_EXTENSIONS_API_PRINTING_PRINT_JOB_SUBMITTER_H_ #include <mem...
1,584
434
// W00t comments inside of JSON! { "extends": "tslint-config-standard" // Keep it like regular standard for now // "rules": { // "trailing-comma": [true, {"multiline": "always", "singleline": "never"}] // } }
81
520
#include <iostream> #include "Eigen/Dense" #include "Helmholtz.h" class EOSFitter; #include "DataTypes.h" #include "Fitter.h" EOSFitter::EOSFitter() { this->Tr = Tr; this->rhor = rhor; this->R = R; }; double EOSFitter::dA_dDelta(double log_tau, double log_delta, double delta, int i) { return alphar.dA_dDelta(log_...
1,792
1,146
<reponame>meminb/aliyun-oss-java-sdk /* * 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,...
1,146
5,903
/*! ****************************************************************************** * * Pentaho Data Integration * * Copyright (C) 2002-2017 by <NAME> : http://www.pentaho.com * ******************************************************************************* * * Licensed under the Apache License, Version 2.0 (the...
6,987
344
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *---------------------------------------------------------------...
216
496
<filename>j360-dubbo-api/src/main/java/me/j360/dubbo/api/model/domain/UserDO.java package me.j360.dubbo.api.model.domain; import lombok.Data; /** * Package: me.j360.dubbo.api.model.domain * User: min_xu * Date: 2017/5/16 下午8:05 * 说明: */ @Data public class UserDO { private Long uid; private String name; ...
160
1,652
template<typename T, typename B> class unique_ptr; struct S1; struct S2; #if false VarDecl f TemplateRef unique_ptr TemplateRef unique_ptr TypeRef struct S1 TypeRef struct S2 TypeRef struct S2 #endif extern unique_ptr<unique_ptr<S1, S2>, S2> f; #if false FunctionDecl as_return_type Temp...
3,412
348
{"nom":"Liny-devant-Dun","circ":"2ème circonscription","dpt":"Meuse","inscrits":141,"abs":84,"votants":57,"blancs":4,"nuls":0,"exp":53,"res":[{"nuance":"FN","nom":"<NAME>","voix":32},{"nuance":"REM","nom":"<NAME>","voix":21}]}
92
2,151
<filename>src/trusted/platform_qualify/kernel_version.h /* * Copyright (c) 2011 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. */ #ifndef NATIVE_CLIENT_SRC_TRUSTED_PLATFORM_QUALIFY_KERNEL_VERSION_H_ #define NATIV...
881
4,372
/* * 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,297
631
<reponame>shenzhi-git/QPanda-2<filename>pyQPandaCpp/pyQPanda.Core/pyqpanda.extensions.cpp #include <math.h> #include <map> #include "pybind11/pybind11.h" #include "pybind11/cast.h" #include "pybind11/stl.h" #include "pybind11/complex.h" #include "pybind11/functional.h" #include "pybind11/chrono.h" #include "pybind11/ei...
3,892
312
# Generated by Django 2.0.12 on 2020-06-09 11:44 import datetime from django.conf import settings from django.db import migrations, models import django.db.models.deletion import uuid class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUT...
1,994
678
/** * This header is generated by class-dump-z 0.2b. * * Source: /System/Library/PrivateFrameworks/CalDAV.framework/CalDAV */ #import <CalDAV/CoreDAVPostTaskDelegate.h> #import <CalDAV/XXUnknownSuperclass.h> @class NSURL, CalDAVCalendarServerInviteNotificationItem; @protocol CoreDAVTaskGroupDelegate; @interface ...
679
377
<filename>ne10blur/src/main/java/ru0xdc/ne10/Blur.java package ru0xdc.ne10; import android.graphics.Bitmap; /** * Blur using the box filter of the NE10 image processing module * https://github.com/projectNe10/Ne10 */ public class Blur { static { System.loadLibrary("ne10blur"); } private stat...
194
1,350
<reponame>Shashi-rk/azure-sdk-for-java // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. package com.azure.resourcemanager.mediaservices.fluent.models; import com.azure.core.annotation.Fluent; import com.azure.co...
1,478
335
<filename>C/Chrysanthemum_noun.json { "word": "Chrysanthemum", "definitions": [ "A plant of the daisy family with brightly coloured ornamental flowers, existing in many cultivated varieties." ], "parts-of-speech": "Noun" }
91
777
// 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. #include "modules/nfc/NFC.h" #include "bindings/core/v8/ScriptPromiseResolver.h" #include "bindings/core/v8/V8ArrayBuffer.h" #include "bindings/core/v8/V...
10,252
1,694
// // Generated by class-dump 3.5 (64 bit) (Debug version compiled Sep 17 2017 16:24:48). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2015 by <NAME>. // #import <objc/NSObject.h> #import "crashReportConnectionDelegate-Protocol.h" @class MMCrashReportConnection, NSMutableArray, NSString; @in...
414
348
{"nom":"Marnes-la-Coquette","circ":"8ème circonscription","dpt":"Hauts-de-Seine","inscrits":1215,"abs":548,"votants":667,"blancs":14,"nuls":14,"exp":639,"res":[{"nuance":"LR","nom":"<NAME>","voix":345},{"nuance":"REM","nom":"M. <NAME>","voix":294}]}
103
23,140
<reponame>sky1ove/fastai from fastai.basics import * from fastai.tabular.all import * from fastai.callback.all import * from fastai.distributed import * from fastprogress import fastprogress from fastai.callback.mixup import * from fastcore.script import * torch.backends.cudnn.benchmark = True fastprogress.MAX_COLS = ...
621
678
/** * This header is generated by class-dump-z 0.2b. * * Source: /System/Library/PrivateFrameworks/CorePDF.framework/CorePDF */ #import <CorePDF/UIPDFPageView.h> #import <CorePDF/CorePDF-Structs.h> @class UIPDFSelectionController, UIPDFViewTouchHandler, UIPDFPageContentDelegate, CALayer, UIImage, UIActivityIndic...
2,629
2,039
# pylint: disable=missing-function-docstring,missing-module-docstring, protected-access from unittest.mock import AsyncMock import pytest from custom_components.hacs.base import HacsBase from custom_components.hacs.enums import HacsDisabledReason @pytest.mark.asyncio async def test_restore_data(hacs: HacsBase): ...
275
594
<reponame>Ubpa/DGP #include <Engine/Viewer/Viewer.h> #include <Engine/Viewer/DirectIllumRaster.h> #include <Engine/Viewer/DeferredRaster.h> #include <Engine/Viewer/ForwardNPR.h> #include <Engine/Viewer/WireframeRaster.h> #include <Engine/Viewer/Roamer.h> #include "Picker.h" #include <Qt/RawAPI_OGLW.h> #include <Bas...
716
2,494
<gh_stars>1000+ #include "gdb-tests.h" typedef int my_typedef; FRAGMENT(typedef_printers, one) { my_typedef i = 0; breakpoint(); (void) i; }
72
865
# Run ./nextpnr-ice40 --json ice40/blinky.json --run python/dump_design.py for cell, cinfo in sorted(ctx.cells, key=lambda x: x.first): print("Cell {} : {}".format(cell, cinfo.type)) print("\tPorts:") for port, pinfo in sorted(cinfo.ports, key=lambda x: x.first): dir = (" <-- ", " --> ", " <-> ")[in...
468
5,200
"""Variational auto-encoder for MNIST data. References ---------- http://edwardlib.org/tutorials/decoder http://edwardlib.org/tutorials/inference-networks """ from __future__ import absolute_import from __future__ import division from __future__ import print_function import edward as ed import numpy as np import os i...
1,406
921
<gh_stars>100-1000 from __future__ import unicode_literals from django_evolution.mutations import AddField from django.db import models MUTATIONS = [ AddField('FileAttachment', 'attachment_revision', models.IntegerField, initial=0), AddField('FileAttachment', 'attachment_history', models.Foreign...
142
480
/* * 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 ...
839
469
#include <stdarg.h> #include <stdio.h> #include <stdlib.h> int vasprintf(char **ret, const char *fmt, va_list ap) { char *buf; int len; size_t buflen; va_list ap2; #if defined(_MSC_VER) || defined(__MINGW64_VERSION_MAJOR) ap2 = ap; len = _vscprintf(fmt, ap2); // NOTE MS specific extension ( :-( ) #else va_cop...
273
675
/** * @file optimisticadam_update.hpp * @author <NAME> * * OptmisticAdam optimizer. Implements Optimistic Adam, an algorithm which * uses Optimistic Mirror Descent with the Adam optimizer. * * mlpack is free software; you may redistribute it and/or modify it under the * terms of the 3-clause BSD license. You ...
1,476
897
/*Given two arrays:arr1[] and arr2[] of different sizes i.e.,no_of_ele_in_arr1 and no_of_ele_in_arr2 respectively. Task :calculate the product of maximum element of first array i.e.,arr1[] and minimum element of second array i.e.,arr2[] Approach: -take two arrays as input. -using std library of cpp we will find the ma...
727
388
<gh_stars>100-1000 #!/usr/bin/env python import sys import os import argparse import time import re from os.path import expanduser import numpy as np import json import subprocess import os.path iterations = 1 parser = argparse.ArgumentParser() parser.add_argument('--run', type=str, default='performance', ...
1,194
672
<reponame>coderyh/objc4_debug<gh_stars>100-1000 // unload3: contains imageinfo but no other objc metadata // libobjc must not keep it open #include <TargetConditionals.h> int fake[2] __attribute__((section("__DATA,__objc_imageinfo"))) = { 0, TARGET_OS_SIMULATOR ? (1<<5) : 0 }; // silence "no debug symbols in exe...
128
14,668
// Copyright 2017 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "ash/keyboard/ui/resources/keyboard_resource_util.h" #include "ash/public/cpp/keyboard/keyboard_switches.h" #include "base/command_line.h" #inclu...
6,170
338
<filename>ants/lib/LOCAL_hausdorffDistance.cxx #include <pybind11/pybind11.h> #include <pybind11/stl.h> #include <exception> #include <vector> #include <string> #include "itkImage.h" #include "itkHausdorffDistanceImageFilter.h" #include "LOCAL_antsImage.h" namespace py = pybind11; using namespace py::literals; te...
621
573
<gh_stars>100-1000 // Copyright 2015, VIXL authors // 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 ...
25,262
471
<reponame>Zhongren233/forest package com.dtflys.test.http.retry; import com.dtflys.forest.annotation.Get; import com.dtflys.forest.annotation.Retry; import com.dtflys.forest.annotation.Success; import com.dtflys.forest.callback.OnError; import com.dtflys.forest.http.ForestRequest; /** * @author gongjun[<EMAIL>] * @...
302
6,342
from allauth.socialaccount.providers.oauth2.urls import default_urlpatterns from .provider import PinterestProvider urlpatterns = default_urlpatterns(PinterestProvider)
47
809
/** * @file * @brief Neighbor Discovery for IP version 6 (IPv6) * (extends for Internet Control Message Protocol Version 6) * @details RFC 4861 * * @date 25.10.13 * @author <NAME> */ #ifndef NET_L3_NDP_H_ #define NET_L3_NDP_H_ #include <endian.h> #include <linux/types.h> #include <netinet/in.h> #include <...
2,311
311
#!/usr/bin/env python3 import time from enviroplus import gas import logging logging.basicConfig( format='%(asctime)s.%(msecs)03d %(levelname)-8s %(message)s', level=logging.INFO, datefmt='%Y-%m-%d %H:%M:%S') logging.info("""gas.py - Print readings from the MICS6814 Gas sensor. Press Ctrl+C to exit! ""...
208
2,151
<reponame>TimvdLippe/mockito package org.mockito.release.git; import org.mockito.release.exec.ProcessRunner; /** * Git utilities */ public class Git { /** * Provides git tool that uses given process runner */ public static GitTool gitTool(ProcessRunner runner) { return new DefaultGitTool(runner); }...
108
852
import FWCore.ParameterSet.Config as cms emenrichingfilter = cms.EDFilter("EMEnrichingFilter", filterAlgoPSet = cms.PSet( requireTrackMatch = cms.bool(False), caloIsoMax = cms.double(10.0), isoGenParConeSize = cms.double(0.1), tkIsoMax = cms.double(5.0), isoConeSize = cms.do...
232
543
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// // // TGUI - Texus' Graphical User Interface // Copyright (C) 2012-2021 <NAME> (<EMAIL>) // // This software is provided 'as-is', without any express or implied warranty. // In no event will...
1,158
1,068
<reponame>FlakyTestDetection/handlebars.java<gh_stars>1000+ package com.github.jknack.handlebars.i418; import java.io.IOException; import org.junit.Test; import com.github.jknack.handlebars.AbstractTest; public class Issue418 extends AbstractTest { @Test public void lookupHelper() throws IOException { shou...
212
512
<filename>mtgjson5/classes/mtgjson_meta.py """ MTGJSON Meta Object """ import datetime from typing import Any, Dict, Union from ..consts import MTGJSON_BUILD_DATE, MTGJSON_VERSION from ..utils import to_camel_case class MtgjsonMetaObject: """ MTGJSON Meta Object """ date: str version: str d...
486
526
<reponame>rychagova/egeria /* SPDX-License-Identifier: Apache-2.0 */ /* Copyright Contributors to the ODPi Egeria project. */ package org.odpi.openmetadata.frameworks.connectors.properties; import org.odpi.openmetadata.frameworks.connectors.properties.beans.Asset; import org.odpi.openmetadata.frameworks.connectors.pr...
2,653
836
<reponame>dayanruben/android-test /* * 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/LICENS...
1,883
2,338
//===-- ValueObjectUpdater.cpp --------------------------------------------===// // // 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 // //===---------------------------...
616
348
<reponame>chamberone/Leaflet.PixiOverlay {"nom":"Saint-Germain-de-Tournebut","dpt":"Manche","inscrits":294,"abs":54,"votants":240,"blancs":19,"nuls":2,"exp":219,"res":[{"panneau":"1","voix":123},{"panneau":"2","voix":96}]}
94
1,587
package io.reflectoring.featureflags.togglz; import org.togglz.core.Feature; import org.togglz.core.activation.GradualActivationStrategy; import org.togglz.core.annotation.ActivationParameter; import org.togglz.core.annotation.DefaultActivationStrategy; import org.togglz.core.annotation.EnabledByDefault; import org.to...
317
966
<reponame>wangxf123456/clif /* * 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 required by...
343
32,544
/* * Swagger Petstore * This is a sample server Petstore server. You can find out more about Swagger at [http://swagger.io](http://swagger.io) or on [irc.freenode.net, #swagger](http://swagger.io/irc/). For this sample, you can use the api key `special-key` to test the authorization filters. * * The version of th...
474
876
<gh_stars>100-1000 #include <gtest/gtest.h> #include "manif/manif.h" #include "../common_tester.h" using namespace manif; using GroupB1 = Bundle<double, R3>; using GroupB2 = Bundle<double, SO2>; using GroupB3 = Bundle<double, SE2>; using GroupB4 = Bundle<double, SO3>; using GroupB5 = Bundle<double, SE3>; MANIF_TES...
375
672
const char a = 10; const char b = 11; const char c = 12; const char d = 13; const char e = 14;
37
2,268
<gh_stars>1000+ //========= Copyright Valve Corporation, All rights reserved. ============// // // Purpose: // // $NoKeywords: $ // //=============================================================================// // // menu.cpp // // generic menu handler // #include "cbase.h" #include "text_message.h" #include "hud_m...
4,948
1,853
<gh_stars>1000+ struct X{ int f(); int f(int); int f(double); }; struct Y:X { int f(float); using X::f; };
56
2,017
package com.dream.service; import com.dream.po.User; public interface UserService { // 编辑用户(好像暂未用到?谁写的) public User getUserById(Integer id); // 更新用户信息用于修改密码 public void updateUser(Integer userid, String password, String email); }
135
416
<filename>contrib/depends/SDKs/MacOSX10.11.sdk/System/Library/Frameworks/AVFoundation.framework/Versions/A/Headers/AVAudioFile.h /* File: AVAudioFile.h Framework: AVFoundation Copyright (c) 2014-2015 Apple Inc. All Rights Reserved. */ #import <AVFoundation/AVAudioTypes.h> #import <AVFoundation/AVAudioFormat.h> ...
1,806
8,865
/* * Copyright (C) 2008 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
390