max_stars_count
int64
301
224k
text
stringlengths
6
1.05M
token_count
int64
3
727k
595
<gh_stars>100-1000 /****************************************************************************** * Copyright (c) 2020 Xilinx, Inc. All rights reserved. * SPDX-License-Identifier: MIT ******************************************************************************/ /*****************************************************...
2,684
3,651
<filename>core/src/main/java/com/orientechnologies/orient/core/sql/executor/DistributedExecutionStep.java<gh_stars>1000+ package com.orientechnologies.orient.core.sql.executor; import com.orientechnologies.common.concur.OTimeoutException; import com.orientechnologies.orient.core.command.OCommandContext; import com.ori...
1,014
605
// RUN: %clangxx_tsan -O1 %s -o %t // RUN: %env_tsan_opts=flush_memory_ms=1:flush_symbolizer_ms=1:memory_limit_mb=1 not %run %t 2>&1 | FileCheck %s #include "test.h" long X, Y; void *Thread(void *arg) { __atomic_fetch_add(&X, 1, __ATOMIC_SEQ_CST); barrier_wait(&barrier); barrier_wait(&barrier); Y = 1; retur...
426
4,756
<reponame>wynr/libphonenumber /* * Copyright (C) 2010 The Libphonenumber 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 * * Un...
1,160
1,755
/*========================================================================= Program: Visualization Toolkit Module: vtkElevationFilter.cxx Copyright (c) <NAME>, <NAME>, <NAME> All rights reserved. See Copyright.txt or http://www.kitware.com/Copyright.htm for details. This software is distributed W...
2,720
3,212
<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...
1,633
997
<gh_stars>100-1000 # Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved import os import json import time import jwt import requests import base64 import functools from jwt.algorithms import RSAAlgorithm from hmalib.aws_secrets import AWSSecrets from hmalib.common.logging import get_logger USER_POO...
1,769
2,072
# Copyright Contributors to the Amundsen project. # SPDX-License-Identifier: Apache-2.0 from http import HTTPStatus import pytest from metadata_service.exception import NotFoundException from tests.unit.api.table.table_test_case import TableTestCase TABLE_URI = 'wizards' STATS = [{'stat_type': 'requests', 'stat_va...
1,205
399
# 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 not u...
389
30,023
<reponame>MrDelik/core<gh_stars>1000+ """Helper methods to search for Plex media.""" from __future__ import annotations import logging from plexapi.base import PlexObject from plexapi.exceptions import BadRequest, NotFound from plexapi.library import LibrarySection from .errors import MediaNotFound LEGACY_PARAM_MAP...
1,138
2,279
<gh_stars>1000+ #!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import absolute_import from __future__ import division from __future__ import print_function import six from six.moves import zip, map, range import tensorflow as tf import numpy as np from zhusuan.utils import merge_dicts from zhusuan.var...
3,187
1,235
/* * Copyright 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance * with the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0/ * * or in the "license" fil...
330
793
# coding: utf-8 import unittest from os import path import zipfile import rarfile from tests.unit import assets_path from getsub.util import P7ZIP from getsub.util import get_file_list class TestGetFileList(unittest.TestCase): def test_zip_archive(self): with open(path.join(assets_path, "archive.zip"),...
979
672
<gh_stars>100-1000 #include "stats.h" #include <chrono> Stats::Stats() { for (int i = 0; i < STATS_METRIC_COUNT; i++) { struct inst_metric im; im.last_sample_time = 0; im.last_sample_count = 0; im.idx = 0; for (int j = 0; j < STATS_METRIC_SAMPLES; j++) { im.samples[j] = 0; } inst_me...
1,200
652
<reponame>pyparallel/pyparallel #!C:\Users\Trent\Home\src\pyparallel\PCbuild\amd64\python.exe # EASY-INSTALL-SCRIPT: 'numpy==1.10.1','f2py.py' __requires__ = 'numpy==1.10.1' __import__('pkg_resources').run_script('numpy==1.10.1', 'f2py.py')
111
324
<gh_stars>100-1000 { "kid": "https://kvvaultapilivetest.vault.azure.net/keys/myKey/<KEY>", "value": "<KEY>" }
53
2,151
<reponame>tingshao/catapult # Copyright 2014 <NAME>. 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...
2,471
360
<reponame>marcobambini/c-ray<gh_stars>100-1000 // // map_range.h // C-Ray // // Created by <NAME> on 11/08/2021. // Copyright © 2021 <NAME>. All rights reserved. // #pragma once const struct valueNode *newMapRange(const struct world *world, const struct valueNode *input_value, const struct value...
191
412
//Copyright 2018 Author: <NAME> <<EMAIL>> /// \file /// This example deals with cyclic data structures, /// see comment in example2.h explaining why this is necessary. /// add_element is just declared as a helper method for cycle construction. /// process_buffer isn't supposed to do meaningfull stuff. /// It is the ho...
473
1,405
<gh_stars>1000+ package QQPIM; public final class ECategorySignType { public static final ECategorySignType CSIGN_HOT = new ECategorySignType(3, 3, "CSIGN_HOT"); public static final ECategorySignType CSIGN_NEW = new ECategorySignType(1, 1, "CSIGN_NEW"); public static final ECategorySignType CSIGN_NONE = ne...
755
521
<reponame>Fimbure/icebox-1 #ifndef ETHERBOOT_ENDIAN_H #define ETHERBOOT_ENDIAN_H FILE_LICENCE ( GPL2_OR_LATER ); /* Definitions for byte order, according to significance of bytes, from low addresses to high addresses. The value is what you get by putting '4' in the most significant byte, '3' in the second most...
248
4,949
<reponame>BBArikL/tenacity /********************************************************************** Audacity: A Digital Audio Editor SliderTextCtrl.h <NAME> This class is a custom slider. **********************************************************************/ #ifndef __AUDACITY_SLIDERTEXTCTRL__ #define...
769
1,652
# FIXME: need to break down config manager testing a bit more # @pytest.mark.parametrize('pass_del_cfg', (True, False)) # def test_config_manager_init(mocker, pass_del_cfg): # """NOTE: unlike other configs this one validates itself on creation # """ # # Mocks # patch_del_cfg = mocker.patch('jobfunnel.co...
531
348
<filename>docs/data/leg-t2/041/04101002.json<gh_stars>100-1000 {"nom":"Angé","circ":"1ère circonscription","dpt":"Loir-et-Cher","inscrits":670,"abs":379,"votants":291,"blancs":20,"nuls":10,"exp":261,"res":[{"nuance":"MDM","nom":"<NAME>","voix":157},{"nuance":"FN","nom":"<NAME>","voix":104}]}
120
389
<filename>gosu-lab/src/main/java/editor/util/ContainerMoverSizer.java package editor.util; import editor.Scheme; import javax.swing.*; import javax.swing.border.Border; import java.awt.*; import java.awt.event.MouseAdapter; import java.awt.event.MouseEvent; import java.awt.event.MouseMotionListener; /** */ public c...
4,955
992
<filename>navigation/common/src/main/java/androidx/navigation/SimpleNavigatorProvider.java /* * Copyright (C) 2017 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 Li...
1,400
21,382
import logging import numpy as np from ray.tune.automl.search_policy import AutoMLSearcher logger = logging.getLogger(__name__) LOGGING_PREFIX = "[GENETIC SEARCH] " class GeneticSearch(AutoMLSearcher): """Implement the genetic search. Keep a collection of top-K parameter permutations as base genes, the...
4,265
715
<filename>Dynamic Programming/kadane/C/kadane.c #include <stdio.h> /* Kadane's algorithm finds the maximum subarray(contigious subsequence) sum. let f(i) be the maximum sum of any non-empty subarray ending at i. f(i) = { max(arr[i], f[i-1] + arr[i]) otherwise arr...
866
322
<filename>nodejs/scripts/tests/GH56/value-0.standard.json { "name" : { "localPart" : "value", "namespaceURI" : "", "prefix" : "", "key" : "value", "string" : "value" }, "value" : { "value" : "test", "attribute" : "check", "TYPE_NAME" : "Zero.ValueType" } }
114
434
<gh_stars>100-1000 package example; import com.amazonaws.services.lambda.runtime.Context; import com.amazonaws.services.lambda.runtime.events.KinesisAnalyticsInputPreprocessingResponse; import com.amazonaws.services.lambda.runtime.events.KinesisFirehoseEvent; import com.amazonaws.services.lambda.runtime.tests.annotati...
440
643
# Copyright 2016 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. import contextlib import os import sys from pylib import constants DIR_SOURCE_ROOT = os.environ.get( 'CHECKOUT_SOURCE_ROOT', os.path.abspath(os.pat...
1,205
2,329
/* * 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 ...
806
6,717
//****************************************************************************** // // Copyright (c) 2016 Microsoft Corporation. All rights reserved. // // This code is licensed under the MIT License (MIT). // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LI...
2,206
1,169
<reponame>Biangkerok32/punya // -*- mode: java; c-basic-offset: 2; -*- // Copyright 2015 MIT, All rights reserved // Released under the Apache License, Version 2.0 // http://www.apache.org/licenses/LICENSE-2.0 package com.google.appinventor.client.editor.youngandroid.properties; import static com.google.appinventor.cl...
260
6,989
<filename>env/lib/python3.7/site-packages/sklearn/utils/stats.py import numpy as np from .extmath import stable_cumsum def _weighted_percentile(array, sample_weight, percentile=50): """ Compute the weighted ``percentile`` of ``array`` with ``sample_weight``. """ sorted_idx = np.argsort(array) # ...
266
437
<filename>src/test/java/com/fasterxml/jackson/dataformat/xml/fuzz/FuzzXXX_32969_UTF32Test.java package com.fasterxml.jackson.dataformat.xml.fuzz; import com.fasterxml.jackson.core.exc.StreamReadException; import com.fasterxml.jackson.dataformat.xml.XmlMapper; import com.fasterxml.jackson.dataformat.xml.XmlTestBase; /...
422
353
<reponame>JayjeetAtGithub/ceph-deploy import configparser import contextlib from ceph_deploy import exc class _TrimIndentFile(object): def __init__(self, fp): self.fp = fp def readline(self): line = self.fp.readline() return line.lstrip(' \t') def __iter__(self): return ...
1,285
2,659
#!/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/LICENSE-2.0 # # Unless required ...
19,787
356
package com.playtika.test.redis; import lombok.experimental.UtilityClass; import org.springframework.core.env.ConfigurableEnvironment; import org.springframework.core.env.MapPropertySource; import org.testcontainers.containers.GenericContainer; import java.util.LinkedHashMap; import java.util.Map; @UtilityClass clas...
402
460
/* # This file is part of the Astrometry.net suite. # Licensed under a 3-clause BSD style license - see LICENSE */ #ifndef QUADFILE_H #define QUADFILE_H #include <sys/types.h> #include <stdint.h> #include "astrometry/qfits_header.h" #include "astrometry/fitsbin.h" #include "astrometry/anqfits.h" typedef struct {...
835
1,424
from __future__ import print_function import argparse import os import numpy from scipy.stats import chi import torch.utils.data from torch.autograd import Variable from networks import NetG from PIL import Image parser = argparse.ArgumentParser() parser.add_argument('--nz', type=int, default=100, help='size of the la...
916
442
<reponame>AndreyNudko/ClickHouse-Native-JDBC<filename>clickhouse-native-jdbc/src/test/java/com/github/housepower/jdbc/benchmark/AbstractIBenchmark.java /* * 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 th...
1,592
543
/* * Copyright 2017 <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 agreed to in ...
591
504
/*- * host.c -- * Program to test the host request function of customs. * * Copyright (c) 1988, 1989 by the Regents of the University of California * Copyright (c) 1988, 1989 by <NAME> * Copyright (c) 1989 by Berkeley Softworks * * Permission to use, copy, modify, and distribute this * software and it...
684
312
<filename>compliance/model/src/test/java/org/eclipse/rdf4j/model/util/Main.java<gh_stars>100-1000 /******************************************************************************* * Copyright (c) 2019 Eclipse RDF4J contributors. * All rights reserved. This program and the accompanying materials * are made available u...
284
14,668
// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // This defines helpful methods for dealing with Callbacks. Because Callbacks // are implemented using templates, with a class per callback signature...
2,133
319
/** * 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 source code must ...
1,134
1,711
/// @brief Include to use 2d array textures. /// @file gli/texture2d_array.hpp #pragma once #include "texture2d.hpp" namespace gli { /// 2d array texture class texture2d_array : public texture { public: typedef extent2d extent_type; public: /// Create an empty texture 2D array texture2d_array(); /// C...
838
5,169
{ "name": "NSObjectCoder", "version": "1.0", "summary": "NSObjectCoder is an efficient library that automatically encodes and decodes all attributes of NSObject instance.", "homepage": "https://github.com/Eric-LeiYang/NSObjectCoder", "license": { "type": "MIT" }, "authors": { "Eric-LeiYang": "<EMA...
210
2,003
<filename>src/observer/executor/scanner_impl.cc // Copyright (c) 2015-2017, Baidu.com, Inc. All Rights Reserved // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "observer/executor/scanner_impl.h" #include <functional> #include <assert.h> #include <signal...
11,490
407
<filename>paas/appmanager/tesla-appmanager-api/src/main/java/com/alibaba/tesla/appmanager/api/provider/AppMetaProvider.java package com.alibaba.tesla.appmanager.api.provider; import com.alibaba.tesla.appmanager.common.pagination.Pagination; import com.alibaba.tesla.appmanager.domain.dto.AppMetaDTO; import com.alibaba....
421
1,123
/* * 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. * */ #include <quic/api/IoBufQuicBatch.h> #include <gtest/gtest.h> #include <quic/client/state/ClientStateMachine.h> #include <quic/...
636
339
<reponame>titusmaxentius/Embroidermodder #ifndef EMBROIDERMODDER_H #define EMBROIDERMODDER_H extern "C" { #include "embroidery.h" } #include <QList> #include <QHash> #include <QDir> #include <QJSEngine> #include <QFileDialog> #include <QMdiArea> #include <QPixmap> #include <QObject> #include <QMainWindow> #include <Q...
58,629
346
<reponame>FluffyQuack/ja2-stracciatella #include "Dialogs.h" #include "Directories.h" #include "MercProfile.h" #include "Soldier_Profile.h" #include <string_theory/format> ST::string Content::GetDialogueTextFilename(const MercProfile &profile, bool useAlternateDialogueFile, bool isCurrentlyTalking) { ST::...
1,216
854
<gh_stars>100-1000 __________________________________________________________________________________________________ sample 80 ms submission class Solution: def characterReplacement(self, s, k): from collections import defaultdict d = defaultdict(int) l = 0 maxn = 0 for r in...
753
12,278
<reponame>189569400/ClickHouse #ifndef BOOST_MPL_AUX_CONFIG_BCC_HPP_INCLUDED #define BOOST_MPL_AUX_CONFIG_BCC_HPP_INCLUDED // Copyright <NAME> 2008 // // 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) // // See...
382
5,193
<filename>AriaCompiler/src/main/java/com/arialyy/compiler/ValuesUtil.java /* * Copyright (C) 2016 AriaLyy(https://github.com/AriaLyy/Aria) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at...
2,942
903
<filename>deps/qt-4.8.0/win32/ia32/src/gui/styles/qstylehelper_p.h<gh_stars>100-1000 /**************************************************************************** ** ** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies). ** All rights reserved. ** Contact: Nokia Corporation (<EMAIL>) ** ** This file...
1,517
1,350
<gh_stars>1000+ [{"id":"NAME","type":"alpha","calc":true,"value":""},{"id":"SSN","type":"ssn","calc":true,"value":""},{"id":"NAMEB_1_","type":"alpha","calc":false,"value":""},{"id":"SSNB_1_","type":"ssn","calc":false,"value":""},{"id":"CONTRIBT_1_","type":"number","calc":false,"value":""},{"id":"CONTRIBS_1_","type":"nu...
1,069
2,044
<filename>grpc-spring-boot-starter-demo/src/test/java/org/lognet/springboot/grpc/DemoAppTest.java package org.lognet.springboot.grpc; import com.fasterxml.jackson.databind.JsonNode; import com.fasterxml.jackson.databind.node.ObjectNode; import io.grpc.ServerInterceptor; import io.grpc.examples.CalculatorGrpc; import i...
2,714
373
<reponame>ADLINK/edk2-platforms /** @file Copyright (c) 2017 - 2019, Intel Corporation. All rights reserved.<BR> SPDX-License-Identifier: BSD-2-Clause-Patent **/ #include <Uefi.h> #include <PiDxe.h> #include <Library/TestPointCheckLib.h> #include <Library/TestPointLib.h> #include <Library/DebugLib.h> #in...
1,803
335
{ "word": "Virus", "definitions": [ "an infective agent that typically consists of a nucleic acid molecule in a protein coat, is too small to be seen by light microscopy, and is able to multiply only within the living cells of a host", "an infection or disease caused by a virus", "a harm...
165
460
<filename>trunk/win/Source/Includes/QtIncludes/src/scripttools/debugging/qscriptdebuggercodefinderwidget_p.h /**************************************************************************** ** ** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies). ** All rights reserved. ** Contact: Nokia Corporation (<E...
1,034
14,668
<filename>components/sync_sessions/local_session_event_router.h // 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. #ifndef COMPONENTS_SYNC_SESSIONS_LOCAL_SESSION_EVENT_ROUTER_H_ #define COMPONENTS_SYNC_SES...
587
892
<gh_stars>100-1000 { "schema_version": "1.2.0", "id": "GHSA-f4ww-w2w8-hp7w", "modified": "2022-05-13T01:01:08Z", "published": "2022-05-13T01:01:08Z", "aliases": [ "CVE-2016-8721" ], "details": "An exploitable OS Command Injection vulnerability exists in the web application 'ping' functionality of Moxa...
460
4,145
# Copyright (c) 2020, NVIDIA CORPORATION. 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 appli...
5,474
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...
407
341
<filename>tests/conftest.py import os import pytest const_fixtures = { 'v': '5.131', 'lang': 'en' } env_fixtures = ( 'VK_ACCESS_TOKEN', 'VK_USER_LOGIN', 'VK_USER_PASSWORD' ) def const_fixture(value): @pytest.fixture(scope='session') def fixture(): return value return fixtu...
327
918
/* * 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 ...
3,128
386
<filename>include/IECoreNuke/ParameterHandler.h ////////////////////////////////////////////////////////////////////////// // // Copyright (c) 2010-2013, Image Engine Design Inc. All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that...
1,783
451
<filename>Haxe/Templates/Source/HaxeRuntime/Shared/uhx/Defines.h #pragma once #ifndef UHX_FAT_VARIANTPTR // For now we default to use fat pointers if we're not on a 64-bit platform // However the trick for 64-bit platforms is not universal and depends on the fact // that in both Linux and Windows, negative pointers ar...
424
834
<reponame>nathanawmk/fboss /* * Copyright (c) 2004-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the ...
213
3,102
// RUN: %clang_cc1 -fsyntax-only -verify %s template<typename T> void f(T); template<typename T> struct A { }; struct X { template<> friend void f<int>(int); // expected-error{{in a friend}} template<> friend class A<int>; // expected-error{{cannot be a friend}} friend void f<float>(float); // okay friend ...
127
575
<filename>content/browser/media/capture/frame_test_util.cc // 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. #include "content/browser/media/capture/frame_test_util.h" #include <stdint.h> #include <cmat...
3,330
543
<gh_stars>100-1000 /** * Copyright 2016 Twitter. 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 req...
4,451
1,900
<reponame>Goldwood1024/ehcache3 /* * Copyright Terracotta, 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...
1,411
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...
406
956
# from __future__ import division import astf_path from trex.astf.api import * import json import argparse import sys import time import math import imp from copy import deepcopy class MultiplierDomain: def __init__(self, low_bound, high_bound): """ A class that represents the multiplier domai...
13,334
1,338
/* * Copyright 2013, <NAME>, <EMAIL>. All rights reserved. * Distributed under the terms of the MIT License. */ #ifndef PSD_WRITER_H #define PSD_WRITER_H #include <stdlib.h> #include <stdio.h> #include <string.h> #include <Translator.h> #include <TranslatorFormats.h> #include <TranslationDefs.h> #include <Graphi...
753
354
/*------------------------------------------------------------------------- * drawElements Quality Program OpenGL ES 2.0 Module * ------------------------------------------------- * * Copyright 2014 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not ...
16,192
488
class PR12656_base { public static void main(String[] args) { System.out.println("Maude"); } } public class PR12656 extends PR12656_base { }
58
485
/* * The MIT License * * Copyright (c) 2015, CloudBees, Inc. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, c...
1,378
1,595
<reponame>GenericP3rson/pygraphistry #Enable when we drop 3.6 #from __future__ import annotations from typing import List, Optional import io, logging, pyarrow as pa, requests, sys from .ArrowFileUploader import ArrowFileUploader logger = logging.getLogger('ArrowUploader') class ArrowUploader: @property ...
8,855
320
#include "src/cpp/basic/edgetpu_resource_manager.h" #include "absl/memory/memory.h" #include "absl/strings/substitute.h" #include "glog/logging.h" namespace coral { EdgeTpuResource::~EdgeTpuResource() { EdgeTpuResourceManager::GetSingleton()->ReclaimEdgeTpuResource(path_); } EdgeTpuResourceManager* EdgeTpuResourc...
2,216
303
{"id":9589,"line-1":"Sanlúcar la Mayor","line-2":"Spain","attribution":"©2016 DigitalGlobe, IGP/DGRF, Instituto de Cartografía de Andalucía","url":"https://www.google.com/maps/@37.40504,-6.256647,17z/data=!3m1!1e3"}
89
311
/** * Copyright 2019 The JoyQueue 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 applicable law or...
1,004
900
<filename>tests/test_reinstall_dotfiles.py import os import sys from .testing_utility_functions import FAKE_HOME_DIR, setup_dirs_and_env_vars_and_create_config, clean_up_dirs_and_env_vars sys.path.insert(0, "../shallow_backup") from shallow_backup.reinstall import reinstall_dots_sb TEST_TEXT_CONTENT = 'THIS IS TEST C...
1,543
1,373
<reponame>sgrj/stream-lib /* * 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 *...
3,551
1,014
<filename>nn-core/src/main/java/com/github/neuralnetworks/training/events/LinearLearnRateDecrListener.java package com.github.neuralnetworks.training.events; import static org.slf4j.LoggerFactory.getLogger; import org.slf4j.Logger; import com.github.neuralnetworks.architecture.WeightsConnections; import com.github.n...
627
470
<filename>HotPatcher/Source/HotPatcherRuntime/Public/HotPatcherLog.h #pragma once // engine header #include "CoreMinimal.h" #include "Logging/LogMacros.h" HOTPATCHERRUNTIME_API DECLARE_LOG_CATEGORY_EXTERN(LogHotPatcher, Log, All);
94
2,023
from threading import Thread from time import sleep from PythonCard import model import urllib import re def get_quote(symbol): global quote base_url = 'http://finance.google.com/finance?q=' content = urllib.urlopen(base_url + symbol).read() m = re.search('class="pr".*?>(.*?)<', conten...
8,311
778
<reponame>yunzhi-jake/tuplex //--------------------------------------------------------------------------------------------------------------------// // // // Tuplex: B...
1,550
1,738
from __future__ import print_function, absolute_import, division import numpy as np from numba import unittest_support as unittest from numba import roc from numba.errors import TypingError import operator as oper _WAVESIZE = roc.get_context().agent.wavefront_size @roc.jit(device=True) def shuffle_up(val, width): ...
1,663
575
// 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 "content/browser/file_system_access/file_system_access_handle_base.h" #include "base/files/scoped_temp_dir.h" #include "base/test/bind.h" #inclu...
3,591
680
package org.ff4j.audit; /* * #%L * ff4j-core * %% * Copyright (C) 2013 - 2016 FF4J * %% * 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/LICEN...
724
32,544
<reponame>DBatOWL/tutorials package com.baeldung.exceptions.exceptionhandling; import java.io.IOException; public class PlayerLoadException extends Exception { public PlayerLoadException(IOException io) { super(io); } }
85
1,389
"""Loader""" import numpy as np import math from pgl.sample import extract_edges_from_nodes def random_partition(num_clusters, graph, shuffle=True): """random partition""" batch_size = int(math.ceil(graph.num_nodes / num_clusters)) perm = np.arange(0, graph.num_nodes) if shuffle: np.random.shuf...
831
386
<gh_stars>100-1000 /********************************************************************************* * * * The MIT License (MIT) * * ...
4,431
310
{ "name": "Organelle", "description": "An audio device.", "url": "https://www.critterandguitari.com/pages/organelle" }
47
525
#! /usr/bin/env python3 # This script is for running peru directly from the repo, mainly for # development. This isn't what gets installed when you install peru. That would # be a script generated by setup.py, which calls peru.main.main(). import os import sys repo_root = os.path.dirname(os.path.realpath(__file__)) ...
139