max_stars_count
int64
301
224k
text
stringlengths
6
1.05M
token_count
int64
3
727k
348
<reponame>chamberone/Leaflet.PixiOverlay<filename>docs/data/leg-t2/077/07703119.json {"nom":"Clos-Fontaine","circ":"3ème circonscription","dpt":"Seine-et-Marne","inscrits":221,"abs":127,"votants":94,"blancs":7,"nuls":0,"exp":87,"res":[{"nuance":"UDI","nom":"<NAME>","voix":45},{"nuance":"FN","nom":"<NAME>","voix":42}]}
136
416
// // NSUserActivity+IntentsAdditions.h // Intents // // Copyright (c) 2016-2017 Apple Inc. All rights reserved. // #import <Foundation/Foundation.h> @class INInteraction; NS_ASSUME_NONNULL_BEGIN @interface NSUserActivity (IntentsAdditions) @property (readonly, nullable, NS_NONATOMIC_IOSONLY) INInteraction *int...
255
2,151
/* * Copyright (C) 2015 The Android Open Source Project * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * http://www.apache.org/licenses/LICENSE-2.0 * Unless required by applicable l...
587
381
{ "task_params": { "max_nodes_per_batch": 5000 }, "model_params": { "gnn_num_layers": 4, "gnn_hidden_dim": 256, "gnn_use_target_state_as_input": true, "gnn_normalize_by_num_incoming": false, "gnn_num_edge_MLP_hidden_layers": 0, "gnn_layer_input_dropout...
380
892
<filename>advisories/unreviewed/2022/04/GHSA-h8w6-2w9h-h7rw/GHSA-h8w6-2w9h-h7rw.json { "schema_version": "1.2.0", "id": "GHSA-h8w6-2w9h-h7rw", "modified": "2022-04-29T02:57:14Z", "published": "2022-04-29T02:57:14Z", "aliases": [ "CVE-2004-0152" ], "details": "Multiple stack-based buffer overflows in (...
526
5,169
<reponame>Gantios/Specs { "name": "rapidjson", "version": "1.1.0", "summary": "A fast JSON parser/generator for C++ with both SAX/DOM style API", "description": "RapidJSON is a JSON parser and generator for C++. It was inspired by RapidXml.\n\nRapidJSON is small but complete. It supports both SAX and DOM style ...
495
2,142
<filename>demo/src/main/java/com/liaoinstan/demospring/demo12/Demo12Activity.java package com.liaoinstan.demospring.demo12; import android.os.Bundle; import android.view.View; import android.widget.Toast; import androidx.appcompat.app.AlertDialog; import androidx.appcompat.app.AppCompatActivity; import androidx.recyc...
3,506
1,553
<gh_stars>1000+ #!/usr/bin/env python # -*- coding: utf-8 -*- """ Options """ import json import os import pkgutil import shlex from argparse import ArgumentParser import six def build_argument_parser(): """ Builds the argument parser :return: the argument parser :rtype: ArgumentParser """ op...
4,570
1,049
package me.devilsen.czxing.code; /** * desc: code result model * date: 2019/08/17 * * @author : dongsen */ public class CodeResult { private BarcodeFormat format; private String text; private float[] points; private int scanType; CodeResult(BarcodeFormat format, String text) { this.f...
739
348
<gh_stars>100-1000 {"nom":"Monclar","circ":"3ème circonscription","dpt":"Lot-et-Garonne","inscrits":590,"abs":311,"votants":279,"blancs":37,"nuls":8,"exp":234,"res":[{"nuance":"REM","nom":"M. <NAME>","voix":145},{"nuance":"FN","nom":"<NAME>","voix":89}]}
104
1,968
<reponame>agramonte/corona ////////////////////////////////////////////////////////////////////////////// // // This file is part of the Corona game engine. // For overview and more information on licensing please refer to README.md // Home page: https://github.com/coronalabs/corona // Contact: <EMAIL> // ////////////...
1,328
14,668
// 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. package org.chromium.content_shell.browsertests; import android.content.Context; import android.net.Uri; import android.view.Window; import android.view....
1,726
2,808
#!/usr/bin/env python import os os.system("clear") f = open("tmp","r") # Setup a read connection to file filedata = f.read() # Read the file f.close() # Close the connection filedata = filedata.split("\n") ...
513
575
<gh_stars>100-1000 class Preparer(object): """ A plain preparation object which just passes through data. It also is relevant as the protocol subclasses should implement to work with Restless. """ def __init__(self): super(Preparer, self).__init__() def prepare(self, data): ...
2,829
1,946
<reponame>OpnTec/open-event-scraper import os import PIL from PIL import Image import requests def save_img(img_url, filename, filter_image=True, dirname='speakers'): try: img_content = requests.get(img_url).content filename = os.path.join(dirname, filename) f = open((filename), 'wb') f.write(img_content) ...
249
443
#!/usr/bin/python3 # # Copyright 2018 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or a...
526
310
<filename>gear/software/m/motionx-gps-ios.json { "name": "MotionX GPS (iOS)", "description": "A position tracking app.", "url": "https://itunes.apple.com/us/app/motionx-gps/id299949744" }
76
2,338
<gh_stars>1000+ //===-- PThreadEvent.cpp ----------------------------------------*- 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 // //===-----------...
2,838
2,381
<filename>docker-java-api/src/main/java/com/github/dockerjava/api/command/LogContainerCmd.java<gh_stars>1000+ package com.github.dockerjava.api.command; import java.io.InputStream; import javax.annotation.CheckForNull; import javax.annotation.Nonnull; import com.github.dockerjava.api.DockerClient; import com.github....
855
609
package org.consenlabs.tokencore.wallet.model; import java.util.Objects; public class KeyPair { String privateKey; String publicKey; public KeyPair() { } public KeyPair(String privateKey, String publicKey) { this.privateKey = privateKey; this.publicKey = publicKey; } public String getPrivate...
342
2,151
<filename>packages/StatementService/src/com/android/statementservice/retriever/AbstractAsset.java<gh_stars>1000+ /* * Copyright (C) 2015 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 o...
1,005
348
<filename>docs/data/t2/014/14183.json {"nom":"Cossesseville","dpt":"Calvados","inscrits":85,"abs":13,"votants":72,"blancs":7,"nuls":4,"exp":61,"res":[{"panneau":"1","voix":37},{"panneau":"2","voix":24}]}
86
1,190
<reponame>freearhey/TableTool // // Constants.h // Table Tool // // Created by <NAME> on 12.06.17. // Copyright (c) 2017 Egger Apps. All rights reserved. // #include <Cocoa/Cocoa.h> #pragma mark Pasteboard Types extern NSString *TTRowInternalPboardType;
102
496
<filename>test/types-tests.cpp #include "gtest/gtest.h" #include <vector> #include "types.h" using namespace std; using namespace simit::ir; using namespace simit; TEST(IndexSet, constructor) { ASSERT_EQ(IndexSet(4), 4); ASSERT_EQ(IndexSet(42), 42); } TEST(IndexSet, eq) { auto r0 = IndexSet(4); ASSERT_EQ(r...
1,063
348
{"nom":"Les Baux-de-Provence","circ":"15ème circonscription","dpt":"Bouches-du-Rhône","inscrits":358,"abs":154,"votants":204,"blancs":12,"nuls":4,"exp":188,"res":[{"nuance":"LR","nom":"<NAME>","voix":110},{"nuance":"REM","nom":"<NAME>","voix":78}]}
101
5,169
<reponame>Gantios/Specs<gh_stars>1000+ { "name": "TapeTextView", "version": "1.0.0", "summary": "Create a marker pen effect to your textview's text", "description": "This view wants to create a marker pen effect to your text and you can control the slope and the height of the marker as well as the line spacing ...
299
6,958
<gh_stars>1000+ // // PackTf.cpp // MNNConverter // // Created by MNN on 2019/01/31. // Copyright © 2018, Alibaba Group Holding Limited // #include "TfUtils.hpp" #include "tfOpConverter.hpp" #include "graph.pb.h" DECLARE_OP_CONVERTER(PackTf); MNN::OpType PackTf::opType() { return MNN::OpType_Pack; } MNN::Op...
349
892
<filename>advisories/unreviewed/2022/05/GHSA-483m-372f-vxc5/GHSA-483m-372f-vxc5.json { "schema_version": "1.2.0", "id": "GHSA-483m-372f-vxc5", "modified": "2022-05-13T01:19:41Z", "published": "2022-05-13T01:19:41Z", "aliases": [ "CVE-2018-18850" ], "details": "In Octopus Deploy 2018.8.0 through 2018.9...
483
301
/* * Copyright (c) 2018-2019 "Neo4j, Inc." [https://neo4j.com] * * 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 ...
724
3,200
#!/usr/bin/python # # Copyright 2018-2021 Polyaxon, 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 applicable ...
13,485
3,576
#pragma once #include "Winheaders.h" namespace blackbone { #pragma warning(push) #pragma warning(disable : 4201) typedef struct _IMAGE_DELAYLOAD_DESCRIPTOR { union { DWORD AllAttributes; struct { DWORD RvaBased : 1; // Delay load version 2 DWORD ReservedA...
587
529
<filename>setup/CustomActions/DetectVSRunning/DevEnvNotRunning.cpp #include "StdAfx.h" #include "ToolsMsmCA.h" const int messageIdCloseDevEnv = 25000; const wchar_t* const DevEnvExe = L"devenv.exe"; const wchar_t* const DexploreExe = L"dexplore.exe"; const wchar_t* const WDExpressExe = L"WDExpress.exe"; #prag...
2,362
9,095
<gh_stars>1000+ """ ========================================== Miscellaneous routines (:mod:`scipy.misc`) ========================================== .. currentmodule:: scipy.misc Various utilities that don't have another home. .. autosummary:: :toctree: generated/ ascent - Get example image for processing ...
240
379
# 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/licenses/LICENSE-2.0 # # Unless required by app...
2,661
3,486
package com.thinkaurelius.titan.util.system; import java.net.InetAddress; import java.net.UnknownHostException; import java.util.Collection; public class NetworkUtil { public static String getLoopbackAddress() { // InetAddress.getLoopbackAddress() is @since 1.7 // // Aside from that, getLo...
670
971
<filename>dl-flinker/dl-flinker-eswriter/src/main/java/com/ucar/datalink/flinker/plugin/writer/eswriter/client/rest/vo/search/dsl/DSLSearchVo.java package com.ucar.datalink.flinker.plugin.writer.eswriter.client.rest.vo.search.dsl; import com.ucar.datalink.flinker.plugin.writer.eswriter.client.rest.constant.CharacterCo...
1,020
4,461
from agents.Base_Agent import Base_Agent from utilities.OU_Noise import OU_Noise from utilities.data_structures.Replay_Buffer import Replay_Buffer from torch.optim import Adam import torch import torch.nn.functional as F from torch.distributions import Normal import numpy as np LOG_SIG_MAX = 2 LOG_SIG_MIN = -20 TRAINI...
5,586
14,668
<reponame>zealoussnow/chromium<filename>chrome/browser/chromeos/printing/print_servers_provider_factory.h // 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. #ifndef CHROME_BROWSER_CHROMEOS_PRINTING_PRINT_S...
724
519
<filename>neuraxle/pipeline.py<gh_stars>100-1000 """ Neuraxle's Pipeline Classes ==================================== This is the core of Neuraxle's pipelines. You can chain steps to call them one after an other. .. Copyright 2019, Neuraxio Inc. Licensed under the Apache License, Version 2.0 (the "License"); ...
12,376
1,155
<gh_stars>1000+ package org.zalando.intellij.swagger.completion.field.completion.openapi.json; import org.zalando.intellij.swagger.assertion.AssertableList; public class HeaderFileCompletionTest extends PartialFileCompletionTest { public void testThatSingleHeaderFileIsAutoCompleted() { withSpecFiles("pet.json"...
476
381
<filename>library/src/main/java/ru/tinkoff/decoro/watchers/DiffMeasures.java<gh_stars>100-1000 /* * Copyright © 2016 Tinkoff Bank * * 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 * * ...
1,546
765
// <NAME> // UE4 Version 4.20.2 // https://github.com/Harrison1/unrealcpp // https://severallevels.io // https://harrisonmcguire.com #pragma once #include "GameFramework/Actor.h" #include "ConsoleLog.generated.h" UCLASS() class UNREALCPP_API AConsoleLog : public AActor { GENERATED_BODY() public: // Sets default...
186
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 ...
1,403
1,768
<gh_stars>1000+ package org.lamport.tla.toolbox.tool.prover.ui.output.source; import java.util.HashMap; import java.util.Iterator; import java.util.LinkedList; import java.util.List; import org.eclipse.core.runtime.IPath; /** * Note that this class is not used. I originally created it * to copy the mode...
2,738
1,799
<filename>app/appcmn/confdlg.cpp //--------------------------------------------------------------------------- #include <vcl.h> #pragma hdrstop #include "confdlg.h" //--------------------------------------------------------------------------- #pragma package(smart_init) #pragma resource "*.dfm" TConfDialog *ConfDialog...
119
834
<gh_stars>100-1000 /*! \file asio_timer.cpp \brief Asio timer example \author <NAME> \date 16.08.2018 \copyright MIT License */ #include "asio_service.h" #include "server/asio/timer.h" #include "threads/thread.h" #include <iostream> class AsioTimer : public CppServer::Asio::Timer { public: u...
707
348
<reponame>chamberone/Leaflet.PixiOverlay {"nom":"<NAME>","circ":"10ème circonscription","dpt":"Haute-Garonne","inscrits":115,"abs":39,"votants":76,"blancs":12,"nuls":2,"exp":62,"res":[{"nuance":"REM","nom":"<NAME>","voix":33},{"nuance":"FI","nom":"<NAME>","voix":29}]}
111
333
<reponame>prehistoric-penguin/cpp-concurrency-book-source #include <future> #include <iostream> int find_the_answer_to_ltuae() { return 42; } void do_other_stuff() {} int main() { std::future<int> the_answer=std::async(find_the_answer_to_ltuae); do_other_stuff(); std::cout<<"The answer is "<<the_answe...
149
826
<filename>deps/opencolorio-configs/spi-vfx/make_vfx_ocio.py #!/usr/bin/env python import math, os, sys import SpImport OCIO = SpImport.SpComp2("PyOpenColorIO",2) print "OCIO",OCIO.version outputfilename = "config.ocio" config = OCIO.Config() LUT_SEARCH_PATH = ['luts'] config.setSearchPath(':'.join(LUT_SEARCH_PAT...
3,780
698
# Copyright 2022, <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 writing...
449
1,192
<reponame>clayne/DirectXShaderCompiler // RUN: %clang_cc1 -std=c++11 -fsyntax-only -verify %s // expected-no-diagnostics namespace pr12262 { template<typename T, typename... Ts> void abc1(int (*xxx)[sizeof ... (Ts) + 1]); void qq1 () { abc1<int>(0); abc1<int,double>(0); } template <unsigned N> class array {}; ...
1,426
1,742
<reponame>fchapoton/sage from .debug import getattr_debug, type_debug from .getattr import raw_getattr
36
762
<gh_stars>100-1000 /*! * Copyright (c) 2019 by Contributors if not otherwise specified * \file sequential_sampler.h * \brief Sequential sampler, with fixed reading order */ #ifndef DECORD_SAMPLER_SEQUENTIAL_SAMPLER_H_ #define DECORD_SAMPLER_SEQUENTIAL_SAMPLER_H_ #include "sampler_interface.h" namespace decord {...
374
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/scheduler/browser_io_thread_delegate.h" #include "base/message_loop/message_pump.h" #include "base/message_loop/message_pump_ty...
1,359
784
/** * Copyright (c) 2015-2021, <NAME> 杨福海 (<EMAIL>). * <p> * 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 * <p> * http://www.apache.org/licenses/LICENSE-2.0 * <p> * Unless required by...
3,513
14,425
<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 *...
1,487
810
<filename>src/main/java/io/github/spencerpark/ijava/magics/ClasspathMagics.java<gh_stars>100-1000 package io.github.spencerpark.ijava.magics; import io.github.spencerpark.jupyter.kernel.magic.registry.LineMagic; import io.github.spencerpark.jupyter.kernel.util.GlobFinder; import java.io.IOException; import java.util....
929
835
<gh_stars>100-1000 package ai.verta.modeldb.entities.config; import ai.verta.modeldb.common.exceptions.ModelDBException; import ai.verta.modeldb.versioning.ContinuousHyperparameterSetConfigBlob; import ai.verta.modeldb.versioning.DiscreteHyperparameterSetConfigBlob; import ai.verta.modeldb.versioning.HyperparameterSet...
1,743
854
__________________________________________________________________________________________________ sample 68 ms submission # Definition for a binary tree node. # class TreeNode: # def __init__(self, x): # self.val = x # self.left = None # self.right = None class Solution: def searchBST(...
580
313
<reponame>hz-ants/LabelFusion-docker2- """ This class implements some data augmentation techniques for SegNet training TODO: do resizing at the same time as augmentation TODO: store labels and images in separate directories so you dont have to do this before putting the data trhough Keras data augmentation Keras libr...
2,193
535
/* * 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,159
1,247
<gh_stars>1000+ { "author": "Microsoft", "name": "Arquivo de manifesto da ferramenta local\u00A0Dotnet", "description": "O arquivo que define as ferramentas dotnet\u00A0disponíveis." }
74
577
/* * Copyright (c) 2016 咖枯 <<EMAIL> | <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,645
2,227
<filename>__fixtures__/linked-packages-with-linked-dev-dep/package.json<gh_stars>1000+ { "private": true, "name": "linked-packages-with-linked-dev-dep", "description": "linked projects where one of packages has a dev dependency on another", "version": "1.0.0", "bolt": { "workspaces": [ "packages/*" ...
124
567
<filename>todo/mail/consumers/__init__.py def tracker_consumer(**kwargs): def tracker_factory(producer): # the import needs to be delayed until call to enable # using the wrapper in the django settings from .tracker import tracker_consumer return tracker_consumer(producer, **kwargs)...
121
713
<gh_stars>100-1000 package org.infinispan.server.hotrod; import java.util.concurrent.TimeUnit; import org.infinispan.util.KeyValuePair; /** * @author wburns * @since 9.0 */ public enum TimeUnitValue { SECONDS(0x00), MILLISECONDS(0x01), NANOSECONDS(0x02), MICROSECONDS(0x03), MINUTES(0x04), HOURS(...
1,463
2,338
//===-- Unittests for frexpl ----------------------------------------------===// // // 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 // //===---------------------------...
141
14,425
/** * 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,784
704
<reponame>klen/muffin """Implement Muffin Application.""" import typing as t from types import ModuleType import logging import inspect from asgi_tools import App as BaseApp from modconfig import Config from . import CONFIG_ENV_VARIABLE from .utils import import_submodules class MuffinException(Exception): ""...
1,346
633
<gh_stars>100-1000 from models.basic.basic_model import BasicModel from models.encoders.mobilenet import MobileNet from layers.convolution import conv2d_transpose, conv2d import tensorflow as tf class FCN8sMobileNetTFRecords(BasicModel): """ FCN8s with MobileNet as an encoder Model Architecture """ ...
3,820
8,649
package org.hswebframework.web.authorization.token; import org.hswebframework.web.authorization.Authentication; import reactor.core.publisher.Mono; /** * @author zhouhao * @since 1.0 */ public interface ThirdPartReactiveAuthenticationManager { /** * @return 支持的tokenType */ String getTokenType();...
216
777
<gh_stars>100-1000 // 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 "chrome/browser/chromeos/login/session/chrome_session_manager.h" #include <memory> #include "base/command_line.h" #include "...
3,549
6,717
<filename>deps/3rdparty/libdispatch/platform/windows/time.c #include "time.h" #include <SDKDDKVer.h> #include <Windows.h> void _ulonglong_to_timespec(ULONGLONG when, struct timespec* ts) { when -= EPOCH_DIFFERENCE; ts->tv_sec = when / INTERVALS_PER_SEC; ts->tv_nsec = (when % INTERVALS_PER_SEC) * NSEC_PER_INTERVAL;...
443
700
<gh_stars>100-1000 from skidl import SKIDL, TEMPLATE, Part, Pin, SchLib SKIDL_lib_version = '0.0.1' display = SchLib(tool=SKIDL).add_parts(*[ Part(name='7SEGM',dest=TEMPLATE,tool=SKIDL,keywords='DEV',description='Afficheur Leds 7 segments',ref_prefix='S',num_units=1,do_erc=True,pins=[ Pin(num='1',...
9,355
3,172
<reponame>minddistrict/authlib import werkzeug from werkzeug.exceptions import HTTPException _version = werkzeug.__version__.split('.')[0] if _version in ('0', '1'): class _HTTPException(HTTPException): def __init__(self, code, body, headers, response=None): super(_HTTPException, self).__init_...
479
409
<reponame>menuet/xlang import loader_native, unittest, asyncio wf = loader_native.import_ns("Windows.Foundation") wdg = loader_native.import_ns("Windows.Devices.Geolocation") # async_test inspired by https://stackoverflow.com/a/23036785 def async_test(test): def wrapper(*args, **kwargs): original_loop = a...
1,662
1,326
package org.mangosdk.spi.processor; public enum LogLocation { MESSAGER, LOG_FILE, BOTH; public boolean toMessager() { return this != LOG_FILE; } public boolean toLogFile() { return this != MESSAGER; } }
89
654
<filename>test/unit/awsume/awsumepy/lib/test_aws_files.py import os import json import pytest import argparse from io import StringIO from pathlib import Path from unittest.mock import patch, MagicMock, mock_open from awsume.awsumepy.lib import constants from awsume.awsumepy.lib import aws_files def test_get_aws_fil...
1,912
529
/* crypto/asn1/a_bytes.c */ /* Copyright (C) 1995-1998 <NAME> (<EMAIL>) * All rights reserved. * * This package is an SSL implementation written * by <NAME> (<EMAIL>). * The implementation was written so as to conform with Netscapes SSL. * * This library is free for commercial and non-commercial use as ...
3,720
400
# type: ignore import cflearn from u2net_finetune import get_data from cflearn.misc.toolkit import check_is_ci from cflearn.misc.toolkit import download_model is_ci = check_is_ci() finetune_ckpt = "path/to/your/finetune/model" if is_ci: finetune_ckpt = download_model("u2net.lite") if __name__ == "__main__": ...
242
852
import FWCore.ParameterSet.Config as cms from PhysicsTools.PatAlgos.producersHeavyIons.heavyIonJets_cff import * from PhysicsTools.PatAlgos.producersHeavyIons.heavyIonMuons_cff import * from PhysicsTools.PatAlgos.producersHeavyIons.heavyIonPhotons_cff import * from PhysicsTools.PatAlgos.producersHeavyIons.heavyIonProd...
174
1,444
package mage.cards.c; import java.util.UUID; import mage.abilities.Ability; import mage.abilities.common.SimpleActivatedAbility; import mage.abilities.costs.common.TapSourceCost; import mage.abilities.costs.mana.GenericManaCost; import mage.abilities.effects.keyword.ScryEffect; import mage.cards.CardImpl; import mag...
351
2,816
<gh_stars>1000+ // DuckDB // // duckdb/common/fast_mem.hpp // // //===----------------------------------------------------------------------===// #pragma once #include "duckdb/common/common.hpp" #include "duckdb/common/types.hpp" template <size_t SIZE> static inline void MemcpyFixed(void *des...
6,987
1,602
<reponame>jhh67/chapel<filename>test/memory/shannon/getRandomPtr.h<gh_stars>1000+ #ifndef _FREED_WITHOUT_MALLOC_H_ #define _FREED_WITHOUT_MALLOC_H_ void* getRandomPtr(void); #endif
87
450
'd' class GameObject: 'd' # def isIntersecting(self, other): pass pass class SoAndSo(GameObject): 'd' def isIntersecting(self, other): return GameObject.isIntersecting(self, other)
89
722
<filename>asteroid/masknn/base.py<gh_stars>100-1000 import numpy as np import torch from .. import complex_nn def _none_sequential(*args): return torch.nn.Sequential(*[x for x in args if x is not None]) class BaseUNet(torch.nn.Module): """Base class for u-nets with skip connections between encoders and dec...
1,699
575
// Copyright 2015 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "content/browser/background_sync/background_sync_metrics.h" #include "base/metrics/histogram_functions.h" namespace { content::BackgroundSyncM...
2,167
776
package act.handler.builtin.controller; /*- * #%L * ACT Framework * %% * Copyright (C) 2014 - 2017 ActFramework * %% * 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://...
1,138
917
<filename>bitcoin-datastruct/src/main/java/com/itranswarp/bitcoin/struct/InvVect.java package com.itranswarp.bitcoin.struct; import java.io.IOException; import com.fasterxml.jackson.databind.annotation.JsonSerialize; import com.itranswarp.bitcoin.io.BitcoinInput; import com.itranswarp.bitcoin.io.BitcoinOutput; import...
533
325
/* SPDX-License-Identifier: BSD-3-Clause * * Copyright(c) 2021 AMD.All rights reserved. * * Author: <NAME> <<EMAIL>> * <NAME> <<EMAIL>> * <NAME> <<EMAIL>> */ #if !defined(_RN_REG_HEADER) #define _RN_REG_HEADER typedef union acp_dma_cntl_0 { struct { unsigned int dmachrst:1; uns...
5,377
402
<filename>allennlp_models/vision/dataset_readers/__init__.py from allennlp_models.vision.dataset_readers.vision_reader import VisionReader from allennlp_models.vision.dataset_readers.gqa import GQAReader from allennlp_models.vision.dataset_readers.nlvr2 import Nlvr2Reader from allennlp_models.vision.dataset_readers.vgq...
205
2,706
<gh_stars>1000+ /* Copyright (c) 2013-2016 <NAME> * * 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.org/MPL/2.0/. */ #include <mgba/core/rewind.h> #include <mgba/core/core.h> #in...
1,973
1,601
void suppressDuplicatedByAllAndASingle() { // codechecker_suppress [all] Suppress all bug in the next C/C++ statement // codechecker_suppress [bugprone-sizeof-expression] Already suppressed by the previous "[all]" comment above sizeof(46); }
74
459
<filename>engine/assets/code/renderers/shadow_map_renderer.cpp #include <GL/glew.h> #include <GLFW/glfw3.h> #include "shadow_map_renderer.h" #include "../scene/light.h" #include "../programs/depth_program.h" #include "../programs/blur_program.h" #include "../../../scene/scene.h" #include "../../../scene/texture.h" #in...
4,045
348
<gh_stars>100-1000 {"nom":"<NAME>","dpt":"Français établis hors de France","inscrits":770,"abs":433,"votants":337,"blancs":19,"nuls":5,"exp":313,"res":[{"panneau":"1","voix":288},{"panneau":"2","voix":25}]}
83
712
<reponame>TOT0RoKR/libmemcached<gh_stars>100-1000 /** * rijndael-alg-fst.h * * @version 3.0 (December 2000) * * Optimised ANSI C code for the Rijndael cipher (now AES) * * @author <NAME> <<EMAIL>> * @author <NAME> <<EMAIL>> * @author <NAME> <<EMAIL>> * * This code is hereby placed in the public domain. * *...
737
4,335
<reponame>Intellinium/DAPLink /** ****************************************************************************** * @file stm32f1xx_hal_gpio.c * @author MCD Application Team * @version V1.0.4 * @date 29-April-2016 * @brief GPIO HAL module driver. * This file provides firmware functions to ...
8,558
460
<filename>trunk/win/BumpTop Settings/include/wxWidgets/wx/mac/classic/control.h<gh_stars>100-1000 ///////////////////////////////////////////////////////////////////////////// // Name: control.h // Purpose: wxControl class // Author: <NAME> // Modified by: // Created: 1998-01-01 // RCS-ID: $Id:...
1,649
679
/************************************************************** * * 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 ...
1,175
777
<filename>components/ntp_tiles/webui/popular_sites_internals_message_handler_client.h // 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. #ifndef COMPONENTS_NTP_TILES_WEBUI_POPULAR_SITES_HANDLER_CLIENT_H_ #...
697