max_stars_count
int64
301
224k
text
stringlengths
6
1.05M
token_count
int64
3
727k
312
<filename>mpp/hal/vpu/jpege/hal_jpege_vepu1_v2.c<gh_stars>100-1000 /* * Copyright 2015 Rockchip Electronics Co. LTD * * 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....
10,730
807
<gh_stars>100-1000 #include "util/thread_pool.h" #include "util/task.h" #include <glog/logging.h> #include <condition_variable> #include <mutex> #include <queue> #include <thread> #include <vector> using std::chrono::duration; using std::chrono::duration_cast; using std::chrono::seconds; using std::chrono::steady_clo...
1,983
416
/* NSPropertyMapping.h Core Data Copyright (c) 2004-2017, Apple Inc. All rights reserved. */ #import <Foundation/NSArray.h> #import <Foundation/NSDictionary.h> NS_ASSUME_NONNULL_BEGIN @class NSExpression; API_AVAILABLE(macosx(10.5),ios(3.0)) @interface NSPropertyMapping : NSObject { #if (!__OBJC2__...
404
992
/* Copyright (c) 2006, <NAME> and <NAME> All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: Redistributions of source code must retain the above copyright notice, this list of conditions and the following ...
3,395
348
{"nom":"Saint-Martin-de-Mâcon","circ":"3ème circonscription","dpt":"Deux-Sèvres","inscrits":264,"abs":166,"votants":98,"blancs":8,"nuls":0,"exp":90,"res":[{"nuance":"LR","nom":"<NAME>","voix":49},{"nuance":"REM","nom":"<NAME>","voix":41}]}
99
10,225
<gh_stars>1000+ package io.quarkus.elytron.security.jdbc; import java.security.Principal; import javax.annotation.security.DenyAll; import javax.annotation.security.PermitAll; import javax.annotation.security.RolesAllowed; import javax.inject.Inject; import javax.ws.rs.GET; import javax.ws.rs.Path; import javax.ws.rs...
620
1,585
/* -*- Mode: C; c-basic-offset:4 ; indent-tabs-mode:nil -*- */ /* * Copyright (c) 2004-2005 The Trustees of Indiana University and Indiana * University Research and Technology * Corporation. All rights reserved. * Copyright (c) 2004-2005 The University of Tennessee a...
1,600
1,473
<gh_stars>1000+ #include "build.h" #include "config.h" #include "configManager.h" namespace tools { ConfigurationManager::ConfigurationManager() : m_sessionConfig(wxT("UniversalCompiler"), wxT("RexDex"), wxT("UniversalCompiler.ini"), wxEmptyString, wxCONFIG_USE_LOCAL_FILE) {} ConfigurationManager::~Configuratio...
450
309
<filename>piou/formatter/__init__.py from .base import Formatter from .rich_formatter import RichFormatter
33
343
<reponame>devtayls/elixir<gh_stars>100-1000 [ { "url": "https://hexdocs.pm/elixir/Kernel.SpecialForms.html#import/2", "description": "Documentation - import" } ]
75
563
/* * Copyright 2018-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 * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by ap...
2,289
2,338
<filename>test_inputs/codegen/cloog/lex.c for (int c0 = 0; c0 <= 10; c0 += 1) { S2(c0); S1(c0); }
57
627
/* Copyright 2017 The Chromium OS Authors. All rights reserved. * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ /* I2C module driver depends on chip series for Chrome EC */ #include "common.h" #include "i2c.h" #include "i2c_chip.h" #include "registers.h" #in...
787
10,876
<filename>ports/tmxlite/vcpkg.json { "name": "tmxlite", "version": "1.3.0", "description": "A lightweight C++14 parsing library for tmx map files created with the Tiled map editor.", "dependencies": [ { "name": "vcpkg-cmake", "host": true }, { "name": "vcpkg-cmake-config", "h...
153
14,668
<gh_stars>1000+ // Copyright 2017 The Crashpad 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 // // Unl...
917
2,568
{ "Ancestry": { "domain": "ancestry.com", "url": "https://www.ancestry.com", "tfa": [ "sms", "email" ], "documentation": "https://support.ancestry.com/s/article/MFA", "notes": "SMS 2FA is currently only available for customers with a U.S. based phone number.", "keywords": [ ...
156
3,112
// // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions // are met: // * Redistributions of source code must retain the above copyright // notice, this list of conditions and the following disclaimer. // * Redistributions in bin...
1,319
348
<reponame>chamberone/Leaflet.PixiOverlay {"nom":"<NAME>","circ":"5ème circonscription","dpt":"Seine-Maritime","inscrits":518,"abs":260,"votants":258,"blancs":14,"nuls":1,"exp":243,"res":[{"nuance":"SOC","nom":"<NAME>","voix":189},{"nuance":"LR","nom":"<NAME>","voix":54}]}
111
329
package com.jvms.i18neditor; /** * An enum describing the type of a {@link Resource}. * * <p>A resource type additionally holds information about the filename representation.</p> * * @author <NAME> */ public enum ResourceType { JSON(".json"), ES6(".js"), Properties(".properties"); private final String ...
182
6,451
<reponame>victorcouste/great_expectations import json from great_expectations.core import ExpectationConfiguration from great_expectations.core.expectation_validation_result import ( ExpectationValidationResult, ) from great_expectations.expectations.registry import get_renderer_impl from great_expectations.render...
17,757
348
{"nom":"Lisle-sur-Tarn","circ":"2ème circonscription","dpt":"Tarn","inscrits":3665,"abs":1904,"votants":1761,"blancs":167,"nuls":94,"exp":1500,"res":[{"nuance":"REM","nom":"<NAME>","voix":945},{"nuance":"FN","nom":"<NAME>","voix":555}]}
96
763
package org.batfish.datamodel; import static com.google.common.base.MoreObjects.toStringHelper; import javax.annotation.Nonnull; import javax.annotation.ParametersAreNonnullByDefault; import org.batfish.datamodel.visitors.FibActionVisitor; /** * A {@link FibAction} directing the device to ARP for a given IP on a gi...
581
1,520
<gh_stars>1000+ package org.cnodejs.android.md.ui.view; import android.support.annotation.NonNull; public interface ICreateTopicView { void onTitleError(@NonNull String message); void onContentError(@NonNull String message); void onCreateTopicOk(@NonNull String topicId); void onCreateTopicStart();...
116
2,151
// 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 "cc/tiles/software_image_decode_cache.h" #include "base/strings/stringprintf.h" #include "cc/paint/draw_image.h" #include "cc/paint/paint_image_...
6,319
325
#ifndef WIZ_COMPILER_BUILTINS_H #define WIZ_COMPILER_BUILTINS_H #include <vector> #include <memory> #include <utility> #include <unordered_map> #include <wiz/compiler/instruction.h> #include <wiz/utility/int128.h> #include <wiz/utility/array_view.h> #include <wiz/utility/fwd_unique_ptr.h> namespace wiz { struct ...
3,044
669
<gh_stars>100-1000 // Copyright 2019 <NAME> // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // http://www.apache.org/licenses/LICENSE-2.0 // Unless required by applicable law or agree...
1,931
2,542
// Generated by the gRPC C++ plugin. // If you make any local change, they will be lost. // source: cri-api.proto // Original file comments: // To regenerate api.pb.go run hack/update-generated-runtime.sh #ifndef GRPC_cri_2dapi_2eproto__INCLUDED #define GRPC_cri_2dapi_2eproto__INCLUDED #include "cri-api.pb.h" #includ...
50,757
318
<reponame>eliseemond/elastix /*========================================================================= * * Copyright UMC Utrecht and contributors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of ...
2,179
6,215
<gh_stars>1000+ /* * Copyright (c) 2021 Airbyte, Inc., all rights reserved. */ package io.airbyte.commons.map; import static org.junit.jupiter.api.Assertions.assertEquals; import com.google.common.collect.ImmutableMap; import java.util.Map; import org.junit.jupiter.api.Test; class MoreMapsTest { @Test void t...
213
319
<gh_stars>100-1000 /** * Copyright (c) 2011, The University of Southampton and the individual contributors. * 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,225
7,744
<filename>examples/ASDKgram/Sample/ASCollectionSectionController.h // // ASCollectionSectionController.h // Texture // // Copyright (c) Pinterest, Inc. All rights reserved. // Licensed under Apache 2.0: http://www.apache.org/licenses/LICENSE-2.0 // #import <IGListKit/IGListKit.h> NS_ASSUME_NONNULL_BEGIN @interf...
245
3,442
<filename>src/net/java/sip/communicator/service/protocol/event/SubscriptionAdapter.java /* * Jitsi, the OpenSource Java VoIP and Instant Messaging client. * * Copyright @ 2015 Atlassian Pty Ltd * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance wit...
722
373
<gh_stars>100-1000 /** @file Kaby Lake RVP 3 Multi-Board Initialization Pre-Memory library Copyright (c) 2017 - 2019, Intel Corporation. All rights reserved.<BR> SPDX-License-Identifier: BSD-2-Clause-Patent **/ #include <PiPei.h> #include <Library/BaseLib.h> #include <Library/IoLib.h> #include <Library/...
733
2,659
<reponame>lotabout/OpenMLDB #!/usr/bin/env python3 # -*- coding: utf-8 -*- # Copyright 2021 4Paradigm # # 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/LICE...
2,661
3,384
<reponame>teemobean/XVim<gh_stars>1000+ // // Generated by class-dump 3.5 (64 bit). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>. // #pragma mark Function Pointers and Blocks typedef void (*CDUnknownFunctionPointerType)(void); // return type and parameters are unknown typedef v...
20,561
2,151
// Copyright 2018 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 CONTENT_PUBLIC_RENDERER_URL_LOADER_THROTTLE_PROVIDER_H_ #define CONTENT_PUBLIC_RENDERER_URL_LOADER_THROTTLE_PROVIDER_H_ #include <memory> #includ...
512
430
from colorama import init, deinit, Fore, Back, Style class PrettyPrinter(object): def __enter__(self): pass def __exit__(self): pass def op(self, op): suffix = '' if op.result is not None and op.result != '?': suffix = "%s = " % self.var(op.result) desc...
866
8,498
<filename>cim-common/src/main/java/com/crossoverjie/cim/common/util/RouteInfoParseUtil.java package com.crossoverjie.cim.common.util; import com.crossoverjie.cim.common.exception.CIMException; import com.crossoverjie.cim.common.pojo.RouteInfo; import static com.crossoverjie.cim.common.enums.StatusEnum.VALIDATION_FAIL...
341
3,976
<filename>Drake-Z/0013/0013.py #!/usr/bin/env python3 # -*- coding: utf-8 -*- '第 0013 题: 用 Python 写一个爬图片的程序,爬(http://tieba.baidu.com/p/2166231880)图片 :-)' __author__ = 'Drake-Z' import os import re import urllib from urllib import request from urllib.request import urlopen def read_url(yuanshiurl): req = request...
777
32,544
package com.baeldung.quarkus; import io.quarkus.test.common.QuarkusTestResource; import io.quarkus.test.h2.H2DatabaseTestResource; import io.quarkus.test.junit.NativeImageTest; @NativeImageTest @QuarkusTestResource(H2DatabaseTestResource.class) class NativeLibraryResourceIT extends LibraryHttpEndpointIntegrationTest ...
107
2,793
#include "ruby.h" #include "rubyspec.h" #ifdef __cplusplus extern "C" { #endif #ifdef HAVE_RB_COMPLEX static VALUE complex_spec_rb_Complex(VALUE self, VALUE num, VALUE den) { return rb_Complex(num, den); } #endif #ifdef HAVE_RB_COMPLEX1 static VALUE complex_spec_rb_Complex1(VALUE self, VALUE num) { return rb_Com...
715
937
""" 缺省函数,就是参数可以有默认值,跟kotlin一样 返回值也可以简写,省略 -> int: """ def print_info(name, age=20): print("姓名:%s, 年龄:%s" % (name, age)) print_info("张三", 28) print_info("李四") """ 元组[]不定长参数,参数的数量不确定, 调用类似于位置参数 参数名之前加上*表示这个星号表明参数的类型为元祖,但是传入实参的时候不需要中括号[] """ def my_func01(*args): print(type(args)) print(args...
1,219
421
<gh_stars>100-1000 import requests # Vuln Base Info def info(): return { "author": "cckuailong", "name": '''HPE Smart Update Manager - Remote Unauthorized Access''', "description": '''A security vulnerability in HPE Smart Update Manager (SUM) prior to version 8.5.6 could allow remote unaut...
1,203
4,857
/** * 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,354
1,670
import sys import argparse import web3 from autobahn import xbr from test_accounts import hl def main (accounts): print('\nTest accounts:') for acct in accounts: balance_eth = w3.eth.getBalance(acct) balance_xbr = xbr.xbrtoken.functions.balanceOf(acct).call() print(' balances of ...
751
6,009
/* * Copyright (c) 2016-present 贵州纳雍穿青人李裕江<<EMAIL>> * * The software is licensed under the Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * http://license.coscl.org.cn/MulanPSL2 * THIS SOFTWARE IS PROVIDED ON AN...
1,691
1,625
import matplotlib import numpy as np import matplotlib.pyplot as plt import math from sklearn.linear_model import Ridge from sklearn.preprocessing import PolynomialFeatures from sklearn.pipeline import make_pipeline from sklearn.kernel_ridge import KernelRidge matplotlib.rcParams['mathtext.fontset'] = 'stix' matplotl...
872
12,252
package org.keycloak.protocol.saml.mappers; import org.keycloak.dom.saml.v2.metadata.EntityDescriptorType; import org.keycloak.models.IdentityProviderMapperModel; public interface SamlMetadataDescriptorUpdater { void updateMetadata(IdentityProviderMapperModel mapperModel, EntityDescriptorType descriptor); }
102
852
import FWCore.ParameterSet.Config as cms L1MuGMTParametersKeysOnlineProd = cms.ESProducer("L1MuGMTParametersKeysOnlineProd", onlineAuthentication = cms.string('.'), subsystemLabel = cms.string('GMT'), onlineDB = cms.string('oracle://CMS_OMDS_LB/CMS_TRG_R') ) ...
156
862
/* * (c) Copyright 2019 Palantir Technologies 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 ...
1,914
19,529
<filename>vnpy/app/data_recorder/__init__.py import sys import vnpy_datarecorder sys.modules[__name__] = vnpy_datarecorder
53
956
/* SPDX-License-Identifier: BSD-3-Clause * Copyright(c) 2018 Intel Corporation */ #ifndef EAL_ALARM_PRIVATE_H #define EAL_ALARM_PRIVATE_H #include <inttypes.h> /* * FreeBSD needs a back-channel communication mechanism between interrupt and * alarm thread, because on FreeBSD, timer period is set up inside the int...
154
1,350
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. package com.azure.resourcemanager.containerservice.models; import com.azure.core.util.ExpandableStringEnum; import com.fasterxml.jackson.annotation.JsonCreator; i...
381
4,339
/* * 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,406
709
<reponame>StanHardy/GpuRamDrive #pragma once #define GPU_API_CUDA 1 #if GPU_API == GPU_API_CUDA #include <map> #include <mutex> #include <cuda.h> #include "DebugTools.h" class CudaHandler { private: static CudaHandler* pinstance_; static std::mutex mutex_; std::map<CUdevice, CUcontext> contexts; std::map<CUdev...
244
892
<reponame>westonsteimel/advisory-database-github<gh_stars>100-1000 { "schema_version": "1.2.0", "id": "GHSA-4rcm-jqm5-f725", "modified": "2022-05-01T01:46:59Z", "published": "2022-05-01T01:46:59Z", "aliases": [ "CVE-2005-0082" ], "details": "The sapdbwa_GetUserData function in MySQL MaxDB 7.5.0.0, and...
402
2,151
<reponame>zipated/src // Copyright (c) 2009-2017 The OTS 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 <string> #include "os2.h" #include "head.h" // OS/2 - OS/2 and Windows Metrics // http://www.microsoft.com/typography...
4,705
324
{"nodes":[{"address":"10.1.1.1","port":80,"condition":"ENABLED","weight":3},{"address":"10.1.1.2","port":80,"condition":"ENABLED","type":"SECONDARY","weight":8},{"address":"10.1.1.3","port":80,"condition":"DISABLED","weight":12}]}
83
1,338
/* * Copyright 2001-2011, Haiku. * Distributed under the terms of the MIT License. * * Authors: * Pahtz <<EMAIL>> * <NAME> * <NAME> <<EMAIL>> * <NAME> <<EMAIL>> */ /*! Class for low-overhead port-based messaging */ #include <LinkReceiver.h> #include <stdlib.h> #include <string.h> #include <new> #incl...
5,082
335
{ "word": "Bacteriostat", "definitions": [ "A substance that prevents the multiplying of bacteria without destroying them." ], "parts-of-speech": "Noun" }
67
7,482
/* * Copyright (c) 2006-2021, RT-Thread Development Team * * SPDX-License-Identifier: Apache-2.0 * */ #ifndef __BOARD_H__ #define __BOARD_H__ // <o> Internal SRAM memory size[Kbytes] <16 or 32> // <i>Default: 16 #define NRF_SRAM_BEGIN (0x20000000) #define NRF_SRAM_SIZE (16 * 1024) #define NRF_SRAM_END (NR...
177
34,359
/*++ Copyright (c) Microsoft Corporation. Licensed under the MIT license. Module Name: ConsoleInputReader.h Abstract: This file contains a class whose sole purpose is to abstract away a bunch of details you usually need to know to read VT from a console input handle. --*/ class C...
279
883
<reponame>linuxonly801/awesome-DeepLearning # Copyright (c) 2020 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/licens...
2,174
2,671
<reponame>timmartin/skulpt<gh_stars>1000+ import unittest import string class ModuleTest(unittest.TestCase): def test_attrs(self): # While the exact order of the items in these attributes is not # technically part of the "language spec", in practice there is almost # certainly user code t...
851
575
// Copyright (c) 2010 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. // A helper class for loading resources out of portable executable files. #ifndef CHROME_INSTALLER_TEST_RESOURCE_LOADER_H_ #define CHROME_INSTALLER_T...
527
1,082
package com.jzy.game.cluster.tcp.server; import java.util.Map; import com.jzy.game.message.Mid.MID; import com.jzy.game.message.ServerMessage; import com.jzy.game.message.ServerMessage.ServerListRequest; import com.jzy.game.message.ServerMessage.ServerListResponse; import com.jzy.game.cluster.manager.ServerMana...
1,163
1,408
/* * Copyright (C) 2018 Marvell International Ltd. * Copyright (C) 2021 Semihalf. * * SPDX-License-Identifier: BSD-3-Clause * https://spdx.org/licenses */ #include <armada_common.h> #include <mvebu_def.h> /* * If bootrom is currently at BLE there's no need to include the memory * maps structure at this point ...
2,528
2,151
// 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. #include "components/cast_channel/cast_message_util.h" #include <memory> #include "base/json/json_reader.h" #include "base/json/json_writer.h" #include ...
5,702
3,200
/** * Copyright 2019 Huawei Technologies Co., Ltd * * 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...
1,287
348
{"nom":"Amange","circ":"3ème circonscription","dpt":"Jura","inscrits":277,"abs":134,"votants":143,"blancs":11,"nuls":4,"exp":128,"res":[{"nuance":"LR","nom":"<NAME>","voix":71},{"nuance":"MDM","nom":"<NAME>","voix":57}]}
89
507
<filename>terrascript/provider/mumoshu/helmfile.py<gh_stars>100-1000 # terrascript/provider/mumoshu/helmfile.py # Automatically generated by tools/makecode.py (24-Sep-2021 15:18:32 UTC) import terrascript class helmfile(terrascript.Provider): """Deploy Helmfile releases from Terraform""" __description__ = "...
234
416
/* * Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. 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 ...
4,474
335
<reponame>draker94/vividus /* * Copyright 2019-2020 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 ...
3,680
348
{"nom":"Forcelles-sous-Gugney","dpt":"Meurthe-et-Moselle","inscrits":87,"abs":14,"votants":73,"blancs":16,"nuls":4,"exp":53,"res":[{"panneau":"2","voix":33},{"panneau":"1","voix":20}]}
82
2,674
<gh_stars>1000+ # Copyright (c) 2019 Microsoft Corporation # Distributed under the MIT software license import sys from interpret.ext.extension_utils import load_class_extensions from interpret.ext.extension import PROVIDER_EXTENSION_KEY, _is_valid_provider load_class_extensions(sys.modules[__name__], PROVIDER_EXTENS...
106
1,540
<filename>testng-core-api/src/main/java/org/testng/internal/annotations/DisabledRetryAnalyzer.java package org.testng.internal.annotations; import org.testng.IRetryAnalyzer; import org.testng.ITestResult; import org.testng.annotations.Test; /** * A No operation retry analyzer that exists just to let us use proper ty...
165
2,603
<filename>FreeRTOS/Demo/CORTEX_A5_SAMA5D3x_Xplained_IAR/AtmelFiles/libchip_sama5d3x/include/instance/instance_can1.h /* ---------------------------------------------------------------------------- * SAM Software Package License * ---------------------------------------------------------------------------- ...
8,209
4,388
<reponame>automaton123456/nanodet<gh_stars>1000+ import pytest import torch from nanodet.model.fpn.tan import TAN def test_tan(): """Tests TAN.""" s = 64 in_channels = [8, 16, 32] feat_sizes = [s // 2 ** i for i in range(3)] # [64, 32, 16] out_channels = 8 with pytest.raises(AssertionError)...
618
1,040
// ============================================================== // XRSoundEngine class that is bound to an Orbiter module (i.e., to a unique ID); this file is not distributed with XRSound. // The code for this exists in XRSound.dll. // // Copyright (c) 2018-2021 <NAME> // Licensed under the MIT License // ==========...
435
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 FilterDisplayItem_h #define FilterDisplayItem_h #include "platform/geometry/FloatRect.h" #include "platform/graphics/paint/DisplayItem.h" #includ...
633
4,566
<gh_stars>1000+ # -*- coding: utf-8 -*- import sublime import sublime_plugin import functools NO_SELECTION = -1 PREFERENCES = 'Preferences.sublime-settings' THEMES = [ 'ayu-light', 'ayu-mirage', 'ayu-dark' ] def get_color_scheme(): return sublime.load_settings(PREFERENCES).get('color_scheme', '') def set_color_...
832
2,279
#!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import absolute_import from __future__ import print_function from __future__ import division import copy import tensorflow as tf from functools import wraps from zhusuan.framework.utils import Context __all__ = [ 'MetaBayesianNet', 'meta_bayesia...
2,033
3,986
/* * Copyright (C) 2019 xuexiangjys(<EMAIL>) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable la...
1,158
2,151
// Copyright 2018 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. package org.chromium.chrome.browser.vr_shell.util; import static org.chromium.chrome.browser.vr_shell.VrTestFramework.POLL_TIMEOUT_LONG_MS; import org.j...
483
9,778
/* * qsort_arg.c: qsort with a passthrough "void *" argument */ #include "c.h" #define ST_SORT qsort_arg #define ST_ELEMENT_TYPE_VOID #define ST_COMPARATOR_TYPE_NAME qsort_arg_comparator #define ST_COMPARE_RUNTIME_POINTER #define ST_COMPARE_ARG_TYPE void #define ST_SCOPE #define ST_DEFINE #include "lib/sort_templat...
135
13,162
#include <eosio/chain/apply_context.hpp> #include <eosio/chain/exceptions.hpp> #include <eosio/chain/backing_store/db_key_value_any_lookup.hpp> #include <eosio/chain/backing_store/db_key_value_format.hpp> #include <eosio/chain/backing_store/db_context.hpp> #include <eosio/chain/backing_store/chain_kv_payer.hpp> #includ...
2,426
577
package org.python.util.install; import java.io.File; import org.python.util.install.Installation.JavaVersionInfo; import junit.framework.TestCase; public class InstallationTest extends TestCase { public void testGetExternalJavaVersion() { JavaHomeHandler javaHomeHandler = new JavaHomeHandler(); ...
1,743
2,177
<reponame>denghuafeng/nutz package org.nutz.dao.test.meta.nutzcn; import org.nutz.dao.entity.annotation.Id; import org.nutz.dao.entity.annotation.Name; import org.nutz.dao.entity.annotation.One; import org.nutz.dao.entity.annotation.Table; @Table("t_abc_user") public class AbcUser { @Id private long id; ...
433
1,244
/****************************************************************************** * * Module Name: asllisting - Listing file generation * *****************************************************************************/ /****************************************************************************** * * 1. Copyright N...
9,656
427
//===-- ExceptionRecord.h ---------------------------------------*- C++ -*-===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
939
786
#!/usr/bin/env python """ :mod:`disco.worker` -- Python Worker Interface ============================================== In Disco, :term:`workers <worker>` do the brunt of the data processing work. When a :class:`disco.job.Job` is created, it gets passed a :class:`Worker` instance, which is responsible for defining th...
11,384
437
# Random Quote Desktop Notification # Author: <NAME> # Date: 1st October 2020 # --------------------------------- # Imports import requests from plyer import notification from apscheduler.schedulers.blocking import BlockingScheduler # Sub-Routines def fetch(): # This gets the quote from the API and turns it into the ...
440
370
package com.vitco.app.core.data; import com.vitco.app.core.data.container.Voxel; import org.junit.Before; import org.junit.Test; import java.awt.*; import java.math.BigInteger; import java.util.ArrayList; import java.util.Random; /** * Extensive test for voxel data. */ @SuppressWarnings("ConstantConditions") publi...
18,485
6,160
/* * 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,239
2,772
<filename>tests/test_onnxml_binarizer_converter.py """ Tests onnxml Binarizer converter """ import unittest import warnings import numpy as np import torch from sklearn.preprocessing import Binarizer from hummingbird.ml._utils import onnx_ml_tools_installed, onnx_runtime_installed, lightgbm_installed from hummingbird...
1,990
1,097
// // HCPXmlConfigParser.h // // Created by <NAME> on 07.08.15. // #import <Foundation/Foundation.h> #import "HCPXmlConfig.h" /** * XML parser for Cordova's config.xml. * Used to read plugin specific preferences. */ @interface HCPXmlConfigParser : NSObject /** * Parse the config and return only plugin speci...
156
1,444
package mage.abilities.effects.common; import mage.abilities.Ability; import mage.abilities.dynamicvalue.DynamicValue; import mage.abilities.dynamicvalue.common.StaticValue; import mage.abilities.effects.OneShotEffect; import mage.constants.Outcome; import mage.constants.Zone; import mage.game.Game; import mage.game....
930
839
<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 ...
3,911
732
<reponame>whitemike889/afdko<gh_stars>100-1000 /* Copyright 2014 Adobe Systems Incorporated (http://www.adobe.com/). All Rights Reserved. This software is licensed as OpenSource, under the Apache License, Version 2.0. This license is available at: http://opensource.org/licenses/Apache-2.0. */ /* Mac OS Romanian ...
5,610
32,544
package com.baeldung.restassured.learner; import org.springframework.stereotype.Service; import java.util.Collection; import java.util.Map; import java.util.Optional; import java.util.concurrent.ConcurrentHashMap; @Service class CourseService { private static final Map<String, Course> COURSE_MAP = new Concurren...
251