max_stars_count
int64
301
224k
text
stringlengths
6
1.05M
token_count
int64
3
727k
14,668
// Copyright 2019 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "weblayer/test/interstitial_utils.h" #include "components/security_interstitials/content/bad_clock_blocking_page.h" #include "components/securit...
796
4,389
""" Other useful structs """ from __future__ import absolute_import from collections import namedtuple """A topic and partition tuple Keyword Arguments: topic (str): A topic name partition (int): A partition id """ TopicPartition = namedtuple("TopicPartition", ["topic", "partition"]) """A Kafka broker...
939
2,111
// This file is part of Eigen, a lightweight C++ template library // for linear algebra. // // Copyright (C) 2012 <NAME> <<EMAIL>> // // 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...
266
826
// This file is part of the reference implementation for the paper // Bayesian Collaborative Denoising for Monte-Carlo Rendering // <NAME> and <NAME>. // Computer Graphics Forum (Proc. EGSR 2017), vol. 36, no. 4, p. 137-153, 2017 // // All rights reserved. Use of this source code is governed by a // BSD-style lic...
10,648
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 ...
2,791
3,969
/* * widget_shadow.c -- widget shadow style processing module. * * Copyright (c) 2018-2020, <NAME> <<EMAIL>> 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 sourc...
1,996
2,542
<filename>src/prod/src/Reliability/Failover/ra/ReplicaProxyStates.cpp // ------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License (MIT). See License.txt in the repo root for license information. // ----------------------...
580
945
<reponame>arobert01/ITK #include "v3p_f2c.h" #include "fio.h" #ifdef __cplusplus extern "C" { #endif uiolen f__reclen; int #ifdef KR_headers do_us(number,ptr,len) ftnint *number; char *ptr; ftnlen len; #else do_us(ftnint *number, char *ptr, ftnlen len) #endif { if(f__reading) { f__recp...
1,199
403
<filename>craft-atom-protocol-http/src/main/java/io/craft/atom/protocol/http/model/HttpRequestLine.java package io.craft.atom.protocol.http.model; import static io.craft.atom.protocol.http.HttpConstants.S_CR; import static io.craft.atom.protocol.http.HttpConstants.S_LF; import static io.craft.atom.protocol.http.HttpCo...
552
482
<reponame>lifecontrol/cattle from common_fixtures import * # NOQA from copy import deepcopy def made_log(object, admin_user_client, context, accountId=None): t = object.type if t == 'stack': t = 'stack' logs = admin_user_client.list_audit_log(resourceId=object.id, ...
754
476
<filename>microbench/conftest.py import re import time from collections import defaultdict import pytest import _valgrind class Timer: def __init__(self, nodeid): self.nodeid = nodeid self.start = None self.stop = None def __enter__(self): if self.start is not None: ...
1,741
12,940
<reponame>dciborow/azure-quickstart-templates { "$schema": "https://aka.ms/azure-quickstart-templates-metadata-schema#", "type": "QuickStart", "itemDisplayName": "Provision a Mobile App with a SQL Database", "description": "This template provisions a Mobile App, SQL Database, and Notification Hub. It configures...
158
2,338
//===-- Implementation header for isalnum -------------------------*-C++-*-===// // // 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 // //===---------------------------...
197
1,865
<filename>stethoscope/api/defaults.py # vim: set fileencoding=utf-8 : from __future__ import absolute_import, print_function, unicode_literals import os import stethoscope.utils LOGFILE = os.environ.get('STETHOSCOPE_API_LOGFILE', os.environ.get('LOGFILE', 'api.log')) LOGBOOK = stethoscope.utils.setup_logbook(LOGF...
2,369
4,098
<filename>Source/ThirdParty/SLikeNet/Source/include/slikenet/transport2.h /* * Original work: Copyright (c) 2014, Oculus VR, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * RakNet License.txt file in the licenses directory of this source tree. An add...
1,448
686
<filename>config/coins/elephantcoin.json { "name": "Elephantcoin", "symbol": "ELP", "algorithm": "scrypt", "site": "http://elephantcoin.wordpress.com/", "blockExplorer": { "block": "http://www.exploretheblocks.com/elephantcoin/block_crawler.php?block_hash=", "tx": "http://www.explore...
162
4,950
package com.auth0.jwt.impl; import com.auth0.jwt.exceptions.JWTDecodeException; import com.auth0.jwt.interfaces.Header; import com.auth0.jwt.interfaces.JWTPartsParser; import com.auth0.jwt.interfaces.Payload; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.databind.ObjectMapper; impor...
964
505
<filename>application-server-cheatsheet/src/main/java/sample/SampleResource.java package sample; import java.sql.Connection; import java.sql.SQLException; import javax.annotation.Resource; import javax.persistence.EntityManager; import javax.persistence.PersistenceContext; import javax.sql.DataSource; import...
371
8,805
<filename>osx/KBKit/KBKit/UI/Folders/KBUserPermission.h // // KBUserPermission.h // Keybase // // Created by Gabriel on 4/30/15. // Copyright (c) 2015 <NAME>. All rights reserved. // #import <Foundation/Foundation.h> #import "KBRPC.h" @interface KBUserPermission : NSObject @property KBRUser *user; @property NSS...
131
432
package us.parr.bookish.model.ref; import us.parr.bookish.entity.EntityDef; public class CitationRef extends EntityRef { public CitationRef(EntityDef def) { super(def); } }
63
746
package org.protege.editor.core.util; /** * <NAME> * Stanford Center for Biomedical Informatics Research * 2 Jun 16 */ public class StringAbbreviator { public static final String ELLIPSIS = "\u2026"; /** * Abbreviates the specified string to the specified length * @param s The String to be abbr...
495
1,489
package me.ele.amigo.compat; import java.lang.reflect.InvocationTargetException; import me.ele.amigo.reflect.MethodUtils; public class ActivityManagerNativeCompat { private static Class sClass; public static Class Class() throws ClassNotFoundException { if (sClass == null) { sClass = Cl...
218
1,119
package com.macro.mall.tiny.security.annotation; import java.lang.annotation.*; /** * 自定义注解,有该注解的缓存方法会抛出异常 */ @Documented @Target(ElementType.METHOD) @Retention(RetentionPolicy.RUNTIME) public @interface CacheException { }
114
2,468
# -*- coding: utf-8 -*- # https://docs.python.org/2/library/array.html from array import array # python 提供的比较原始的 array 类 arr = array('u', 'asdf') print(arr[0], arr[1], arr[2], arr[3]) # 实现定长的 Array ADT,省略了边界检查等 class Array(object): def __init__(self, size=32): self._size = size self._item...
434
1,861
// Copyright (c) Facebook, Inc. and its affiliates. // // This source code is licensed under the MIT license found in the // LICENSE file in the root directory of this source tree. #define FSPObjectEqualObject(lhs, rhs) (lhs == rhs || (lhs != nil && [lhs isEqual:rhs])) #include <folly/FixedString.h> NS_INLINE NSStri...
202
938
//===- llvm/CodeGen/MachineBasicBlock.h -------------------------*- C++ -*-===// // // 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 // //===---------------------------...
12,129
28,056
<reponame>Czarek93/fastjson<filename>src/test/java/com/alibaba/json/bvt/parser/error/ParseErrorTest_21.java package com.alibaba.json.bvt.parser.error; import java.util.Map; import org.junit.Assert; import com.alibaba.fastjson.JSON; import com.alibaba.fastjson.JSONException; import com.alibaba.fastjson.parser.Feature...
1,134
3,083
/* Copyright 2014 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 ...
576
499
<gh_stars>100-1000 import warnings import lightgbm as lgb import pandas as pd from sklearn.metrics import roc_auc_score from sklearn.model_selection import KFold warnings.filterwarnings('ignore') import time from autox.autox_server.util import log from autox.autox_server.model import model_util SAMPLE_LIMIT = model_ut...
3,420
1,189
<reponame>gcatanese/opentelemetry-java-tmp /* * Copyright The OpenTelemetry Authors * SPDX-License-Identifier: Apache-2.0 */ package io.opentelemetry.sdk.trace.samplers; import javax.annotation.Nullable; /** A builder for creating ParentBased sampler instances. */ public final class ParentBasedSamplerBuilder { ...
778
322
<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 "...
720
3,246
package com.polidea.rxandroidble2.internal; /** * The class representing a priority with which an {@link QueueOperation} should be executed. * Used in @Override definedPriority() */ public class Priority { public static final Priority HIGH = new Priority(100); public static final Priority NORMAL = new Pri...
142
515
<gh_stars>100-1000 /*============================================================================= Library: CTK Copyright (c) German Cancer Research Center, Division of Medical and Biological Informatics Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in c...
629
631
#ifndef _PRIVATE_ERRORS_H_ #define _PRIVATE_ERRORS_H_ #define BP_OK 0 #define BP_EFILE 0x101 #define BP_EFILEREAD_OOB 0x102 #define BP_EFILEREAD 0x103 #define BP_EFILEWRITE 0x104 #define BP_EFILEFLUSH 0x105 #define BP_EFILERENAME 0x106 #define BP_ECOMPACT_EXISTS 0x107 #de...
375
4,140
<reponame>FANsZL/hive<filename>serde/src/test/org/apache/hadoop/hive/serde2/columnar/TestBytesRefArrayWritable.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 copyr...
703
1,090
package com.uber.okbuck.generator; import com.google.common.collect.Multimap; import com.google.common.collect.TreeMultimap; import com.uber.okbuck.composer.android.AndroidBinaryRuleComposer; import com.uber.okbuck.composer.android.AndroidBuckRuleComposer; import com.uber.okbuck.composer.android.AndroidBuildConfigRule...
4,771
662
package io.crossbar.autobahn.websocket.messages; /// An exception occured in the WS reader or WS writer. public class Error extends Message { public Exception mException; public Error(Exception e) { mException = e; } }
80
543
/* * Copyright (c) 1999, 2014, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free ...
6,722
348
{"nom":"Moumour","circ":"4ème circonscription","dpt":"Pyrénées-Atlantiques","inscrits":632,"abs":316,"votants":316,"blancs":22,"nuls":11,"exp":283,"res":[{"nuance":"DVD","nom":"<NAME>","voix":147},{"nuance":"REM","nom":"<NAME>","voix":136}]}
97
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,632
1,178
/* * Copyright 2020 Makani Technologies 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 ...
653
2,151
<gh_stars>1000+ // Copyright (c) 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. #include "content/test/test_navigation_url_loader.h" #include <utility> #include "content/browser/loader/navigation_url_loader_deleg...
1,330
4,538
<reponame>wanguojian/AliOS-Things<filename>platform/mcu/haas1000/drivers/services/bt_app/app_spp.h /* * Copyright (C) 2015-2020 Alibaba Group Holding Limited */ #ifndef __APP_SPP_H__ #define __APP_SPP_H__ #include "spp_api.h" #include "sdp_api.h" #ifdef __cplusplus extern "C" { #endif #if defined(__3M_PACK__) #def...
1,296
482
<reponame>hginzel/Prana<filename>src/main/java/com/netflix/prana/http/api/AbstractRequestHandler.java /* * Copyright 2014 Netflix, 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 *...
514
5,079
<reponame>kokosing/hue def tack_environ(environ, msg): import pprint penv = pprint.pformat(environ) return msg + '\n\n' + penv def deny(start_response, environ, msg): ct = 'text/plain' msg = tack_environ(environ, msg) cl = str(len(msg)) start_response('401 Unauthorized', ...
834
1,420
/* * * Copyright 2019 Netflix, 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 ap...
1,726
568
<reponame>kayleyang/jim-framework<filename>jim-framework-cloud-registry/src/main/java/com/jim/framework/cloud/registry/RegistryApplication.java package com.jim.framework.cloud.registry; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.boot.builder.SpringApplicationBuilder...
178
4,036
<reponame>vadi2/codeql enum Type { S, I }; struct Entry { char* name; Type t; char* s; int i; }; union Value { char* s; int i; }; struct EntryWithMethod: Entry { int getAsInt() { return i; } }; void myFunction() { union MyLocalUnion { int i; float f; }; } class MyClass { public: ...
168
14,668
// Copyright 2019 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "chrome/browser/page_load_metrics/observers/prefetch_proxy_page_load_metrics_observer.h" #include <memory> #include "base/command_line.h" #incl...
3,047
5,169
<reponame>Ray0218/Specs<filename>Specs/DRGlyphLabel/0.1.0/DRGlyphLabel.podspec.json<gh_stars>1000+ { "name": "DRGlyphLabel", "version": "0.1.0", "summary": "A simple library that allows you to create labels with bitmap fonts in UIKit", "homepage": "https://github.com/darrarski/DRGlyphLabel-iOS", "license": "M...
251
1,351
/** @file @brief Plugin to verify the ordering of session and transaction start and close hooks is correct. Keeps track of statistics about the number of hooks tracked that are caught and of the number of errors encountered. @section license License Licensed to the Apache Software Foundation (ASF) under o...
4,752
4,262
<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 "Lic...
705
435
{ "description": "<NAME> famously quipped that \u201cThe Web is 95% Typography.\u201d\nMost of the information we take in on the web is textual in nature. It\nbehooves us, as writers and curators of text, to know about the art and\nscience of presenting textual information.\n\nThis talk isn\u2019t about art, or scien...
440
567
<gh_stars>100-1000 import torch import sys from online import optimization, TensorList, operation import math class FactorizedConvProblem(optimization.L2Problem): def __init__(self, training_samples: TensorList, y: TensorList, filter_reg: torch.Tensor, projection_reg, params, sample_weights: TensorList, ...
1,531
341
<reponame>codenotes/mDNAResponder /* -*- Mode: C; tab-width: 4 -*- * * Copyright (c) 2003-2004 Apple Computer, 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 ...
3,794
5,169
<reponame>Gantios/Specs { "name": "libxlsxwriter", "version": "0.7.8", "summary": "Libxlsxwriter: A C library for creating Excel XLSX files.", "platforms": { "ios": "6.0", "osx": "10.8" }, "description": "Libxlsxwriter is a C library that can be used to write text, numbers, formulas and hyperlinks t...
751
1,974
package com.artemzin.qualitymatters.integration_tests.api; import com.artemzin.qualitymatters.QualityMattersIntegrationRobolectricTestRunner; import com.artemzin.qualitymatters.api.QualityMattersRestApi; import com.artemzin.qualitymatters.api.entities.Item; import org.junit.After; import org.junit.Before; import org....
1,623
2,759
// 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...
11,039
4,487
<filename>Source/Akagi/methods/api0cradle.c /******************************************************************************* * * (C) COPYRIGHT AUTHORS, 2017 - 2020 * * TITLE: API0CRADLE.C * * VERSION: 3.50 * * DATE: 11 Oct 2020 * * UAC bypass method from Oddvar Moe aka api0cradle. * * THIS CODE AN...
1,015
697
<filename>leyou-api-gateway/src/main/java/com/leyou/filter/LoginFilter.java package com.leyou.filter; import com.leyou.auth.utils.JwtUtils; import com.leyou.config.FilterProperties; import com.leyou.config.JwtProperties; import com.leyou.utils.CookieUtils; import com.netflix.zuul.ZuulFilter; import com.netflix.zuul.co...
1,260
892
{ "schema_version": "1.2.0", "id": "GHSA-gxgp-2885-hjmh", "modified": "2022-05-13T01:06:43Z", "published": "2022-05-13T01:06:43Z", "aliases": [ "CVE-2015-5583" ], "details": "Adobe Reader and Acrobat 10.x before 10.1.16 and 11.x before 11.0.13, Acrobat and Acrobat Reader DC Classic before 2015.006.300...
528
676
<filename>app/src/main/java/core/issue/IssuesService.java<gh_stars>100-1000 package core.issue; import core.issues.Issue; import java.util.List; import java.util.Map; import retrofit2.Call; import retrofit2.http.GET; import retrofit2.http.Path; import retrofit2.http.QueryMap; public interface IssuesService { @GET(...
248
476
<filename>resources/nn/custom_model/handler.py import cv2 import numpy as np from depthai_sdk import frameNorm def decode(nnManager, packet): bboxes = np.array(packet.getFirstLayerFp16()) bboxes = bboxes.reshape((bboxes.size // 7, 7)) bboxes = bboxes[bboxes[:, 2] > 0.5] labels = bboxes[:, 1].astype(i...
521
2,231
<gh_stars>1000+ // Copyright 2020 The Defold Foundation // Licensed under the Defold License version 1.0 (the "License"); you may not use // this file except in compliance with the License. // // You may obtain a copy of the License, together with FAQs at // https://www.defold.com/license // // Unless required by app...
1,082
4,054
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. package com.yahoo.searchlib.aggregation; import com.yahoo.text.Utf8; import com.yahoo.vespa.objects.Deserializer; import com.yahoo.vespa.objects.ObjectVisitor; import com.yahoo.vespa.objects.Serializer; public cla...
979
533
from insomniac import activation_controller exec(activation_controller.get_extra_feature('filters'))
28
7,899
<reponame>muminkoykiran/computervision-recipes import os import time import base64 import urllib from io import BytesIO import cv2 import numpy as np from tf_pose.estimator import TfPoseEstimator from tf_pose.networks import get_graph_path, model_wh from PIL import Image import tensorflow as tf import logging import s...
5,072
567
<gh_stars>100-1000 package parser; /** * Helper class that maps a feature or datatype to its appropriate dialect keyword */ public class DialectMap { /* Name of the dialect */ String dialect; /* Mapping to a feature in the dialect */ String mapping; public String getDialect() { return dialect; } ...
165
2,189
<reponame>mys/steem<filename>libraries/vendor/rocksdb/db/transaction_log_impl.h // 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...
1,434
348
{"nom":"Désertines","circ":"3ème circonscription","dpt":"Mayenne","inscrits":347,"abs":144,"votants":203,"blancs":4,"nuls":5,"exp":194,"res":[{"nuance":"UDI","nom":"M. <NAME>","voix":157},{"nuance":"REM","nom":"M. <NAME>","voix":37}]}
94
5,964
#ifndef CONTENT_RENDERER_DEVTOOLS_DEVTOOLS_MGR_H_ #define CONTENT_RENDERER_DEVTOOLS_DEVTOOLS_MGR_H_ #include "third_party/WebKit/Source/wtf/HashSet.h" namespace content { class DevToolsMgr { public: DevToolsMgr(); static DevToolsMgr* getInst(); void addLivedId(int id); void removeLivedId(int id); ...
242
640
<gh_stars>100-1000 void UpdateStage5EndBoss0(enemy *en) { en->enemyposy--; if(en->enemyposy<=128) { en->enemyparama=1; en->enemyparamb=0; en->enemyframe=0; } } void UpdateStage5EndBoss1(enemy *en) { unsigned char a; if(en->enemyframe==250) { en->enemyparama=2; return; } // Skull movement! DoSkul...
743
1,630
<filename>tests/test_data/test_data_parallel_sampler.py #!/usr/bin/env python # -*- encoding: utf-8 -*- import os from functools import partial from pathlib import Path import pytest import torch import torch.distributed as dist import torch.multiprocessing as mp import colossalai from torchvision import transforms,...
781
335
/* * Copyright 2019-2021 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 ap...
1,227
1,091
/* * Copyright (c) 2015-2020, Oracle and/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. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * ...
3,094
852
import FWCore.ParameterSet.Config as cms diJetAnalyzer = cms.EDAnalyzer( 'DiJetAnalyzer', pfJetCollName = cms.string('DiJetsProd:ak4PFJetsCHS'), pfJetCorrName = cms.string('ak4PFCHSL1FastL2L3'), hbheRecHitName = cms.string('DiJetsProd:hbhereco'), hfRecHitName = cms.string('D...
447
2,828
<reponame>tamaashu/curator<filename>curator-x-discovery-server/src/test/java/org/apache/curator/x/discovery/server/jetty_jersey/ServiceDetails.java<gh_stars>1000+ /** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this wo...
796
629
/* * Copyright (c) 2017-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #include "openbwprocess.h" #include "utils.h" #include <common/fsutils.h> #include <torchcraft/client.h> #include <array> #include <cs...
5,062
17,085
/* Copyright (c) 2021 PaddlePaddle 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 applicable law or...
291
483
<reponame>anharismail/EasyNavigation // // NavSystemSlidingViewController.h // EasyNavigationDemo // // Created by Mr_Chen on 17/9/15. // Copyright © 2017年 chenliangloveyou. All rights reserved. // #import <UIKit/UIKit.h> @interface NavSystemSlidingViewController : UIViewController @end
106
4,538
<gh_stars>1000+ /* * Copyright (C) 2015-2020 Alibaba Group Holding Limited */ #ifndef GIDITAL_OUTPUT_H #define GIDITAL_OUTPUT_H #include "stdint.h" #include "aos/hal/gpio.h" enum en_do_port { DO_PORT_0 = 0, DO_PORT_1, DO_PORT_2, DO_PORT_3, DO_PORT_SIZE }; int32_t expansion_board_do_init(void);...
196
1,362
<gh_stars>1000+ from __future__ import absolute_import, print_function, division, unicode_literals import unittest import numpy as np from sklearn.datasets import load_iris, load_breast_cancer, load_boston from sklearn.linear_model import LogisticRegression, LinearRegression from sklearn.model_selection import cross_va...
2,290
428
<filename>src/cpp/f00295_gamegeom.hpp class GameGeom { private: // passed to GPU, transformed FIVector4 boundsMinInPixels; FIVector4 boundsMaxInPixels; FIVector4 visMinInPixels; FIVector4 visMaxInPixels; public: // passed to GPU FIVector4 geomParams[E_GP_LENGTH]; // enum E_GEOM_PARAMS { // E_GP_BOUNDSMI...
5,648
394
<gh_stars>100-1000 package net.earthcomputer.multiconnect.protocols.v1_12_2.command.arguments; import com.mojang.brigadier.LiteralMessage; import com.mojang.brigadier.StringReader; import com.mojang.brigadier.arguments.ArgumentType; import com.mojang.brigadier.context.CommandContext; import com.mojang.brigadier.except...
12,396
852
// -*- C++ -*- // // Package: L1Trigger // Class : TkMuon #include "DataFormats/L1TCorrelator/interface/TkMuon.h" using namespace l1t; TkMuon::TkMuon(const LorentzVector& p4, const edm::Ref<RegionalMuonCandBxCollection>& muRef, const edm::Ptr<L1TTTrackType>& trackPtr, ...
575
2,053
<gh_stars>1000+ /* * Copyright 2015 the original author or authors. * @https://github.com/scouter-project/scouter * * 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:...
417
615
package org.byron4j.cookbook; import sun.misc.Regexp; import java.util.ArrayList; import java.util.List; import java.util.regex.Matcher; import java.util.regex.Pattern; public class TestCase { static String regStr = "<[a-z]{1}>([\\u4E00-\\u9FFF]|\\w|\\W){2}</[a-z]{1}>"; static String regSt...
1,528
12,869
"""Identity operators @see: https://www.w3schools.com/python/python_operators.asp Identity operators are used to compare the objects, not if they are equal, but if they are actually the same object, with the same memory location. """ def test_identity_operators(): """Identity operators""" # Let's illustrat...
369
345
<filename>Note-6 A3CNet/Note-6.4 HS300指数增强/train.py import multiprocessing import threading import tensorflow as tf from agent.main import Access, Framework # NUMS_CPU = multiprocessing.cpu_count() NUMS_CPU = 1 inputs_shape = [381, 240, 58] action_size = 3 max_episodes = 1 GD = {} class Worker(Framework): def...
748
1,806
<filename>apollo-api-impl/src/test/java/com/spotify/apollo/request/RequestHandlerImplTest.java /* * -\-\- * Spotify Apollo API Implementations * -- * Copyright (C) 2013 - 2015 Spotify AB * -- * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with t...
1,501
542
// Sample TSDuck extension. // Definition of the Foo Table (FOOT) #include "fooTable.h" // Characteristics of a FOOT #define MY_XML_NAME u"FOOT" // XML name is <FOOT> #define MY_CLASS foo::FooTable // Fully qualified class name #define MY_TID foo::TID_FOOT // Table id #define MY_STD foo::STD // DT...
1,511
9,541
<reponame>mkleshchenok/simdjson #pragma once #include "runner_base.h" #include "simdjson.h" namespace json_benchmark { template<typename I> struct string_runner : public runner_base<I> { const simdjson::padded_string &original_json; simdjson::padded_string json; string_runner(const simdjson::padded_string &_js...
393
13,057
<filename>src/test/java/org/mockito/InvocationFactoryTest.java<gh_stars>1000+ /* * Copyright (c) 2018 Mockito contributors * This program is made available under the terms of the MIT License. */ package org.mockito; import static org.junit.Assert.assertEquals; import static org.junit.Assert.fail; import static org....
1,409
6,210
/* * 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 ...
5,173
340
<gh_stars>100-1000 if __name__ == "__main__": T = int(input().strip()) correct = 1 << 32 for _ in range(T): num = int(input().strip()) print(~num + correct)
83
1,362
# coding=utf-8 r""" This code was generated by \ / _ _ _| _ _ | (_)\/(_)(_|\/| |(/_ v1.0.0 / / """ from tests import IntegrationTestCase from tests.holodeck import Request from twilio.base.exceptions import TwilioException from twilio.http.response import Response class PlaybackGrantTestCase(Int...
1,628
2,586
<reponame>hackers-painters/samurai // // ViewController.h // test // // Created by god on 15/4/29. // Copyright (c) 2015年 Geek-Zoo Studio. All rights reserved. // #import <UIKit/UIKit.h> #import "Samurai.h" @interface TestSuiteViewController : UIViewController @property (nonatomic, strong) NSString * testSuite; ...
121
1,383
// ============================================================================= // PROJECT CHRONO - http://projectchrono.org // // Copyright (c) 2014 projectchrono.org // All rights reserved. // // Use of this source code is governed by a BSD-style license that can be found // in the LICENSE file at the top level of t...
523
1,244
//===----------------------------------------------------------------------===// // // The LLVM Compiler Infrastructure // // This file is dual licensed under the MIT and the University of Illinois Open // Source Licenses. See LICENSE.TXT for details. // //===----------------------------------------...
197
389
<gh_stars>100-1000 // // UIViewController+QSKit.h // Q Branch Standard Kit // // Created by <NAME> on 10/21/13. // Copyright (c) 2013 Q Branch LLC. All rights reserved. // @import UIKit; @interface UIViewController (QSKit) - (BOOL)qs_hasChildViewController; @end
104