max_stars_count
int64
301
224k
text
stringlengths
6
1.05M
token_count
int64
3
727k
562
#include <Windows.h> static LRESULT CALLBACK WndProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam) { LRESULT res = 1; switch (uMsg) { case WM_DESTROY: ::PostQuitMessage (0); break; default: res = ::DefWindowProc(hwnd, uMsg, wParam, lParam); } return res; } ...
849
478
/* Copyright (c) 2014 Aerys 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, copy, modify, merge, publish, distribute, sublicens...
2,713
11,396
<reponame>bhyunki/awx<filename>awxkit/awxkit/api/pages/credential_input_sources.py from awxkit.api.resources import resources from . import base from . import page class CredentialInputSource(base.Base): pass page.register_page(resources.credential_input_source, CredentialInputSource) class CredentialInputSo...
160
777
// 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 CSSUnparsedValue_h #define CSSUnparsedValue_h #include "bindings/core/v8/Iterable.h" #include "bindings/core/v8/StringOrCSSVariableReferenceValue...
763
507
<gh_stars>100-1000 # terrascript/data/external.py # Automatically generated by tools/makecode.py (24-Sep-2021 15:16:09 UTC) # # For imports without namespace, e.g. # # >>> import terrascript.data.external # # instead of # # >>> import terrascript.data.hashicorp.external # # This is only available for 'official' and...
130
1,109
<filename>gryphon/lib/exchange/itbit_btc_usd.py<gh_stars>1000+ """ Exchange documentation: https://api.itbit.com/docs """ # -*- coding: utf-8 -*- import base64 from collections import OrderedDict, defaultdict import hashlib import hmac import json import time import urllib import cdecimal from cdecimal import Decimal...
7,781
4,403
package cn.hutool.poi.excel; import cn.hutool.poi.excel.cell.values.NumericCellValue; import java.util.Date; import org.apache.poi.ss.usermodel.Cell; import org.junit.Test; public class NumericCellValueTest { @Test public void writeTest() { final ExcelReader reader = ExcelUtil.getReader("1899bug_demo.xlsx"); E...
393
945
//------------------------------------- #ifdef VXL_UNISTD_USLEEP_IS_VOID // VXL_UNISTD_USLEEP_IS_VOID is set to 1 if this test fails #include <unistd.h> int main() { int x = usleep(0); return x*0; } #endif // VXL_UNISTD_USLEEP_IS_VOID //------------------------------------- #ifdef VCL_NUMERIC_LIMITS_HAS_INFINITY // ...
1,424
2,542
<filename>src/prod/ktl/src/src/Threadpool/UnfairSemaphore.h #pragma once #include "MinPal.h" #include "Synch.h" namespace KtlThreadpool { class UnfairSemaphore { private: BYTE padding1[64]; union Counts { struct { int spinners : 16;...
584
1,454
<reponame>UrielX14/FacebookBot import convert, os if 'FB_BOT_STT_API_PROVIDER' in os.environ and os.environ['FB_BOT_STT_API_PROVIDER'] == 'GOOGLE': from speech_py import speech_to_text_google as STT else: from speech_py import speech_to_text_ibm_rest as STT def transcribe(audio_url): raw_audio = convert.convert(au...
142
854
<reponame>timxor/leetcode-journal __________________________________________________________________________________________________ 4ms class Solution { public: int fac(int n) { if (n == 1) return 1; return n * fac(n - 1); } void getPermutation(vector<int>& remain, vector<int>...
1,169
808
#include <benchmark/benchmark.h> #include <symengine/parser.h> #include <symengine/parser/parser.h> using SymEngine::Basic; using SymEngine::parse; using SymEngine::RCP; static void parse_0(benchmark::State &state) { RCP<const Basic> a; for (auto _ : state) { a = parse("0"); } } static void parse...
551
9,734
<filename>cpp/src/arrow/util/time_test.cc<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 th...
847
1,350
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. package com.microsoft.azure.eventhubs.impl; public final class PassByRef<T extends Object> { T t; public T get() { return this.t; } public void set(final T t) { this.t = t; } }
119
348
{"nom":"Puihardy","circ":"1ère circonscription","dpt":"Deux-Sèvres","inscrits":33,"abs":13,"votants":20,"blancs":0,"nuls":0,"exp":20,"res":[{"nuance":"FI","nom":"<NAME>","voix":12},{"nuance":"REM","nom":"<NAME>","voix":8}]}
93
655
<reponame>Watch-Later/mfcmapi #pragma once // Where our error array is defined #ifndef MAPI_E_STORE_FULL #define MAPI_E_STORE_FULL MAKE_MAPI_E(0x60C) #endif // [MS-OXCDATA] #ifndef MAPI_E_LOCKID_LIMIT #define MAPI_E_LOCKID_LIMIT MAKE_MAPI_E(0x60D) #endif #ifndef MAPI_E_NAMED_PROP_QUOTA_EXCEEDED #define MAPI_E_NAMED_...
3,806
852
<gh_stars>100-1000 # Auto generated configuration file # using: # Revision: 1.19 # Source: /local/reps/CMSSW/CMSSW/Configuration/Applications/python/ConfigBuilder.py,v # with command line options: step5 --conditions auto:run2_mc --nThreads 2 -n 10 --era Run2_2016 --eventcontent MINIAODSIM --filein file:step3_inMINIA...
2,454
480
/* * Copyright [2013-2021], Alibaba Group Holding Limited * * 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...
815
335
<filename>L/Leopard_noun.json { "word": "Leopard", "definitions": [ "A large solitary cat that has a fawn or brown coat with black spots, native to the forests of Africa and southern Asia.", "The leopard as a heraldic device.", "A lion passant guardant as in the arms of England.", ...
147
317
#ifndef __AIArtSet__ #define __AIArtSet__ /* * Name: AIArtSet.h * $Revision: 6 $ * Author: * Date: * Purpose: Adobe Illustrator Art Set Suite. * * ADOBE SYSTEMS INCORPORATED * Copyright 1986-2014 Adobe Systems Incorporated. * All rights reserved. * * NOTICE: Adobe permits you to us...
2,837
348
<reponame>chamberone/Leaflet.PixiOverlay<gh_stars>100-1000 {"nom":"Bournois","circ":"3ème circonscription","dpt":"Doubs","inscrits":156,"abs":83,"votants":73,"blancs":4,"nuls":2,"exp":67,"res":[{"nuance":"LR","nom":"<NAME>","voix":44},{"nuance":"REM","nom":"M. <NAME>","voix":23}]}
117
1,350
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. package com.azure.ai.textanalytics.lro; import com.azure.ai.textanalytics.TextAnalyticsAsyncClient; import com.azure.ai.textanalytics.TextAnalyticsClientBuilder; import com.azure.ai.textanalytics.models.AnalyzeActionsOpera...
2,601
310
<reponame>tsukoyumi/skylicht-engine<filename>Samples/DrawPrimitives/Source/CCubeData.cpp #include "pch.h" #include "SkylichtEngine.h" #include "CCubeData.h" CCubeData::CCubeData() : CubeMeshBuffer(NULL) { } CCubeData::~CCubeData() { if (CubeMeshBuffer != NULL) CubeMeshBuffer->drop(); } void CCubeData::initCube(...
1,659
5,169
<gh_stars>1000+ { "name": "MRLCircleChart", "version": "0.0.2", "summary": "Small and very opinionated pie-chart view written in Swift.", "description": "MRLCircleChart is a small pie/circle chart UI component written in Swift. Aims to take care of most of the work for you (just pass in a data source and config...
273
317
<reponame>darkcl/drafter // // RegexMatch.cc // snowcrash // // Created by <NAME> on 5/2/13. // Copyright (c) 2013 Apiary Inc. All rights reserved. // #include <regex.h> #include <cstring> #include "../RegexMatch.h" // FIXME: Migrate to C++11. // Naive implementation of regex matching using POSIX regex bool snowc...
1,140
997
<reponame>codekat1/liboqs<filename>src/kem/ntruprime/pqclean_ntrulpr857_avx2/crypto_decode_857xint32.h #ifndef PQCLEAN_NTRULPR857_AVX2_CRYPTO_DECODE_857XINT32_H #define PQCLEAN_NTRULPR857_AVX2_CRYPTO_DECODE_857XINT32_H #include <stdint.h> #define PQCLEAN_NTRULPR857_AVX2_crypto_decode_857xint32_STRBYTES 3428 #define PQ...
285
10,002
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. #include "pch.h" #include "AsyncHelper.h" #include <chrono> #include <thread> using namespace std; using namespace concurrency; using namespace Platform; using namespace CalculatorApp; using namespace Windows::UI::Core; u...
337
310
from imports import * class feature_impact(): def __init__(self): super(feature_impact, self).__init__() self.param= None def find(self, df): df = pd.DataFrame(df) print(df) variables = [col for col in df.columns if '_impact' in col] y = [] for i in r...
338
190,993
# Copyright 2021 The TensorFlow 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 applica...
4,946
3,442
/* * 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 with the License. * You may obtain a copy of the License at * * http://www.apache.or...
10,565
573
<gh_stars>100-1000 // Copyright 2015, VIXL authors // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are met: // // * Redistributions of source code must retain the above copyright notice, // this ...
129,591
648
<filename>spring-rabbit/src/main/java/org/springframework/amqp/rabbit/core/AmqpNackReceivedException.java /* * Copyright 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 cop...
453
395
<reponame>amixuse/Android-Disassembler package com.kyhsgeekcode.disassembler.Interpreter; public abstract class Machine { long[] regs; public void Execute() { } public interface MachineCallback { } public class Instruction { byte[] bytes; int size; int id; } }
127
14,668
<filename>testing/libfuzzer/fuzzers/skia_path_common.cc // 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. #include "testing/libfuzzer/fuzzers/skia_path_common.h" #include "third_party/skia/include/core/S...
1,173
419
<filename>Resources/Services/Export/Placeholder/ScribanRenderingEngine/RenderingObjects/ScribanExportDialog.en.json<gh_stars>100-1000 { "PlaceholderDesc_InitialFunction": "Initial function of the dialog.", "PlaceholderDesc_AdditionalFunctions": "Additional functions of the dialog. Can be iterated using <i>for...
136
316
#include "dg/llvm/ControlDependence/ControlDependence.h" #include "dg/llvm/DataDependence/DataDependence.h" #include "dg/llvm/SystemDependenceGraph/SystemDependenceGraph.h" #include "dg/util/debug.h" namespace dg { namespace llvmdg { /// // Fill in dependence edges into SDG struct SDGDependenciesBuilder { llvmdg:...
3,741
602
<reponame>CorfuDB/CORFU package org.corfudb.protocols.wireprotocol.orchestrator; import javax.annotation.Nonnull; import static org.corfudb.protocols.wireprotocol.orchestrator.OrchestratorRequestType.FORCE_REMOVE_NODE; /** * A request to force remove an endpoint from the cluster. * * @author Maithem */ public cl...
245
3,507
package com.bumptech.glide.load.engine.prefill; import java.util.ArrayList; import java.util.List; import java.util.Map; final class PreFillQueue { private final Map<PreFillType, Integer> bitmapsPerType; private final List<PreFillType> keyList; private int bitmapsRemaining; private int keyIndex; ...
547
456
package com.swingfrog.summer.promise; import java.util.*; import java.util.concurrent.Executor; import java.util.concurrent.atomic.AtomicInteger; import java.util.function.Consumer; import java.util.function.Predicate; public class Promise { private final Integer id; private volatile boolean running; pri...
3,376
643
<gh_stars>100-1000 // Generated automatically from android.content.pm.PackageManager for testing purposes package android.content.pm; import android.content.ComponentName; import android.content.Intent; import android.content.IntentFilter; import android.content.pm.ActivityInfo; import android.content.pm.ApkChecksum;...
7,387
429
#pragma once #include <_cheader.h> #include <toaru/graphics.h> _Begin_C_Header extern int load_sprite_png(sprite_t * sprite, char * filename); _End_C_Header
68
751
int i = 3; printf(" i: %s \n", i);// __AUTO_GENERATED_PRINT_VAR__
33
395
<reponame>Ketler13/antlr4 /* Copyright (c) 2012-2017 The ANTLR Project. All rights reserved. * Use of this file is governed by the BSD 3-clause license that * can be found in the LICENSE.txt file in the project root. */ #pragma once #include "tree/ErrorNode.h" #include "tree/TerminalNodeImpl.h" #include "misc/Int...
316
9,272
from .. import authz from . import v1_core def get_secret(namespace, name, auth=True): if auth: authz.ensure_authorized("get", "", "v1", "secrets", namespace) return v1_core.read_namespaced_secret(name, namespace) def create_secret(namespace, secret, auth=True): if auth: authz.ensure_au...
163
725
/* Part of SWI-Prolog Author: <NAME> E-mail: <EMAIL> WWW: http://www.swi-prolog.org Copyright (c) 2005-2020, University of Amsterdam VU University Amsterdam CWI, Amsterdam All rights reserved. Redistribution and use in source and...
2,593
335
{ "word": "Divergent", "definitions": [ "Tending to be different or develop in different directions.", "(of thought) using a variety of premises, especially unfamiliar premises, as bases for inference, and avoiding common limiting assumptions in making deductions.", "(of a series) increa...
124
2,144
/** * 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,574
533
<reponame>Shixiaowei02/Anakin #! /usr/bin/env python # Copyright (c) 2017, Cuichaowen. All rights reserved. # -*- coding: utf-8 -*- import sys import io #import bson # this is installed with the pymongo package #import matplotlib.pyplot as plt #from skimage.data import imread # or, whatever ima...
159
679
<reponame>Grosskopf/openoffice /************************************************************** * * 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...
2,248
2,151
<gh_stars>1000+ // Copyright 2013 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_RENDERER_APPCACHE_APPCACHE_BACKEND_PROXY_H_ #define CONTENT_RENDERER_APPCACHE_APPCACHE_BACKEND_PROXY_H_ #include <stdint....
673
1,673
/*****************************************************************************/ /* */ /* pen.h */ /* */ ...
1,624
705
<filename>05_Computer Alghorithm/dixonzhao-cs1c-project05-master/src/lazyTrees/LazySearchTree.java package lazyTrees; import java.util.*; /** * Implements BST with lazy deletion to keep track of total inventory ("deleted" + non deleted) * and current inventory (non deleted only). * * @author <NAME>, <NAME> */ pu...
6,141
428
#include "dat.h" #include "fns.h" #include "error.h" #include <fcntl.h> #include <sys/ioctl.h> #include <sys/filio.h> #include "audio.h" #include <sys/soundcard.h> #define Audio_Mic_Val SOUND_MIXER_MIC #define Audio_Linein_Val SOUND_MIXER_LINE #define Audio_Speaker_Val SOUND_MIXER_SPEAKER #define Audio_Headphone_V...
4,671
777
<filename>content/browser/screen_orientation/screen_orientation.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 CONTENT_BROWSER_SCREEN_ORIENTATION_SCREEN_ORIENTATION_H #define CONTENT_BROWSER_...
599
582
<filename>treelib/exceptions.py class NodePropertyError(Exception): """Basic Node attribute error""" pass class NodeIDAbsentError(NodePropertyError): """Exception throwed if a node's identifier is unknown""" pass class NodePropertyAbsentError(NodePropertyError): """Exception throwed if a node's ...
299
1,009
<filename>src/msqueue.h /* * Copyright (c) 2017, Alibaba Group Holding Limited * 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 c...
642
434
<reponame>eckserah/nifskope #include "spellbook.h" // Brief description is deliberately not autolinked to class Spell /*! \file moppcode.cpp * \brief Havok MOPP spells * * Note that this code only works on the Windows platform due an external * dependency on the Havok SDK, with which NifMopp.dll is compiled. * ...
3,748
331
package com.freedom.lauzy.ticktockmusic.contract; import com.freedom.lauzy.ticktockmusic.base.IBaseView; import com.freedom.lauzy.ticktockmusic.model.SongEntity; import java.util.List; /** * Desc : 文件夹音乐 * Author : Lauzy * Date : 2018/3/15 * Blog : http://www.jianshu.com/u/e76853f863a9 * Email : <EMAIL> */ pub...
289
355
<reponame>netdrones/habitat-lab<filename>habitat/tasks/rearrange/obj_loaders.py #!/usr/bin/env python3 # 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. import magnum as mn import numpy as np ...
2,485
493
<filename>src/main/java/com/mauersu/util/redis/DefaultValueOperations.java /* * Copyright 2011-2014 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 * ...
2,657
1,144
package de.metas.material.dispo.commons.repository.atp; import com.google.common.annotations.VisibleForTesting; import com.google.common.collect.ImmutableList; import de.metas.material.commons.attributes.AttributesKeyMatcher; import de.metas.material.commons.attributes.AttributesKeyPatternsUtil; import de.metas.materi...
1,751
325
# -*- coding: utf-8 -*- u""" Created on 2015-7-13 @author: cheng.li """ from PyFin.tests import api from PyFin.tests import DateUtilities from PyFin.tests import Env from PyFin.tests import Math from PyFin.tests import PricingEngines from PyFin.tests import Analysis __all__ = ["api", "DateUtilities", ...
176
1,155
<filename>deps/boost/libs/mp11/test/mp_quote.cpp // Copyright 2015, 2017 <NAME>. // // 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 #include <boost/mp11/utility.hpp> #include <boost/mp11/detail/config.hpp> #i...
889
2,346
/* * Copyright 2020 <NAME> (<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 law or agree...
805
488
<filename>src/3rdPartyLibraries/qrose/Widgets/QRSeparator_p.h /*************************************************************************** <NAME> <EMAIL> Class: QRSeparator_p Description: ...
432
1,964
// // immer: immutable data structures for C++ // Copyright (C) 2016, 2017, 2018 <NAME> // // This software is distributed under the Boost Software License, Version 1.0. // See accompanying file LICENSE or copy at http://boost.org/LICENSE_1_0.txt // #pragma once #include "extra/fuzzer/fuzzer_input.hpp" #include <arr...
307
408
<filename>src/main/python/rlbot/matchcomms/common_uses/common_keys.py<gh_stars>100-1000 TARGET_PLAYER_INDEX = 'target_player_index'
51
335
<reponame>Safal08/Hacktoberfest-1<filename>M/Mischief_noun.json<gh_stars>100-1000 { "word": "Mischief", "definitions": [ "Playful misbehaviour, especially on the part of children.", "Playfulness that is intended to tease or create trouble.", "Harm or trouble caused by someone or somethin...
189
460
<gh_stars>100-1000 /**************************************************************************** ** ** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies). ** All rights reserved. ** Contact: Nokia Corporation (<EMAIL>) ** ** This file is part of the QtScript module of the Qt Toolkit. ** ** $QT_BEG...
673
852
#include "Calibration/EcalTBTools/interface/TB06RecoH2.h" /* */ // FIXME ClassImp (TB06RecoH2) void TB06RecoH2::reset() { run = 0; event = 0; tableIsMoving = 0; S6ADC = 0; MEXTLindex = 0; MEXTLeta = 0; MEXTLphi = 0; MEXTLenergy = 0.; beamEnergy = 0.; for (int eta = 0; eta < 7; ++eta) for (...
669
12,278
// (C) Copyright <NAME> 2006. // Use, modification and distribution are subject to 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) #ifndef BOOST_MATH_TOOLS_REMEZ_HPP #define BOOST_MATH_TOOLS_REMEZ_HPP #ifdef _MSC_VER #pragma on...
9,091
3,787
{ "module_path": "fate_flow/components", "param_class" : "fate_flow/components/param/download_param.py/DownloadParam", "role": { "local": { "program": "download.py/Download" } } }
121
643
# 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. """Contains common helpers for working with Android manifests.""" import os import shlex import xml.dom.minidom as minidom from util import build_utils fro...
2,233
348
{"nom":"Boustroff","circ":"4ème circonscription","dpt":"Moselle","inscrits":111,"abs":52,"votants":59,"blancs":6,"nuls":3,"exp":50,"res":[{"nuance":"REM","nom":"<NAME>","voix":30},{"nuance":"LR","nom":"<NAME>","voix":20}]}
91
1,474
<gh_stars>1000+ from .logger import CompleteLogger from .meter import * from .data import ForeverDataIterator __all__ = ['metric', 'analysis', 'meter', 'data', 'logger']
53
892
{ "schema_version": "1.2.0", "id": "GHSA-f4cp-fvmv-q37j", "modified": "2022-05-04T00:29:07Z", "published": "2022-05-04T00:29:07Z", "aliases": [ "CVE-2012-0266" ], "details": "Multiple stack-based buffer overflows in the NTR ActiveX control before 2.0.4.8 allow remote attackers to execute arbitrary cod...
784
381
#include "fragile.h" fragile::H::HH* fragile::H::HH::copy() { return (HH*)0; } fragile::I fragile::gI; void fragile::fglobal(int, double, char) { /* empty; only used for doc-string testing */ } namespace fragile { class Kderived : public K { public: virtual ~Kderived(); }; } // namespa...
276
3,353
// // ======================================================================== // Copyright (c) 1995-2021 Mort Bay Consulting Pty Ltd and others. // // This program and the accompanying materials are made available under the // terms of the Eclipse Public License v. 2.0 which is available at // https://www.eclipse.org/...
856
1,838
# -*- coding: utf-8 -*- from babelfish import LanguageReverseConverter from ..exceptions import ConfigurationError class LegendasTVConverter(LanguageReverseConverter): def __init__(self): self.from_legendastv = {1: ('por', 'BR'), 2: ('eng',), 3: ('spa',), 4: ('fra',), 5: ('deu',), 6: ('jpn',), ...
573
473
<filename>challenges/Grit/src/cgc_gain.h<gh_stars>100-1000 /* * Copyright (c) 2015 Kaprica Security, 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...
1,314
550
#ifndef __LIBOPT_OPT_H__ #define __LIBOPT_OPT_H__ #include <stdbool.h> #include <stdint.h> /* The design of this package is greatly inspired by Go's standard library * package 'flag'. It doesn't support complex argument parsing, but it's simple * to use. */ struct opt_config { /* Array of all flags specified b...
1,337
1,350
<reponame>Manny27nyc/azure-sdk-for-java<gh_stars>1000+ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. package com.azure.analytics.synapse.accesscontrol; import com.azure.analytics.synapse.accesscontrol.impleme...
3,871
791
//-------------------------------------------------------------------------------------------------- /** @file q3ContactManager.h @author <NAME> @date 10/10/2014 Copyright (c) 2014 <NAME> http://www.randygaul.net This software is provided 'as-is', without any express or implied warranty. In no event will the auth...
731
444
#define SPRAY_BUF_SIZE 247 char spray_buffer[248]; void spray_buffer_init(){ *(unsigned long*)(spray_buffer + 40)=0xfacea6d8; *(unsigned long*)(spray_buffer + 56)=0x100000000000000; } #include <stdio.h> volatile int do_spray=1; void kmalloc_no_free(int times) { int i; int ret; char buf[256]; fo...
470
344
from stream_django.client import stream_client def stream(request): context = {} context['STREAM_API_KEY'] = stream_client.api_key context['STREAM_APP_ID'] = stream_client.app_id return context
74
11,356
/* * Copyright 1993-2002 <NAME> and Perforce Software, Inc. * * This file is part of Jam - see jam.c for Copyright information. */ /* * pathsys.h - PATHNAME struct */ /* * PATHNAME - a name of a file, broken into <grist>dir/base/suffix(member) * * <grist> - salt to distinguish between targets that would othe...
723
545
#include <functional> #include <iostream> #include <map> #include <string> int add(int a, int b) { return a + b; } struct multiple { int operator()(int a, int b) { return a * b; } }; auto divide = [](int a, int b) { return a / b; }; int main() { std::map<std::string, std::function<int (int, int)>> ops = { ...
337
852
<gh_stars>100-1000 #include <cassert> #include <iostream> #include <limits> #include <string> #include <utility> #include <cuda_runtime_api.h> #include "catch.hpp" #include "FWCore/ParameterSet/interface/ParameterSet.h" #include "FWCore/ParameterSet/interface/ConfigurationDescriptions.h" #include "FWCore/Utilities/i...
1,914
382
/// generated by: genswift.java 'java/lang|java/util|java/sql|java/awt|javax/swing' /// /// interface java.awt.LayoutManager /// package org.swiftjava.java_awt; @SuppressWarnings("JniMissingFunction") public class LayoutManagerProxy implements java.awt.LayoutManager { // address of proxy object long __swif...
747
985
package com.github.zxh.classpy.lua54.binarychunk.part; import com.github.zxh.classpy.lua54.binarychunk.BinaryChunkPart; import com.github.zxh.classpy.lua54.binarychunk.BinaryChunkReader; import com.github.zxh.classpy.lua54.binarychunk.datatype.LuByte; import com.github.zxh.classpy.lua54.binarychunk.datatype.LuaInt; im...
1,062
1,144
/** * Contains classes around proxying and interception. This package is here because jboss-aop is not reliable and the two CDI implementations I tried out (wedld and OWB) did you work out of the box with adempiere: * <ul> * <li>weld: it was able to find some service implementations <i>sometimes</i> and I didn't fin...
467
630
# Capstone Python bindings, by <NAME> <<EMAIL>> import ctypes, copy from .sysz_const import * # define the API class SyszOpMem(ctypes.Structure): _fields_ = ( ('base', ctypes.c_uint8), ('index', ctypes.c_uint8), ('length', ctypes.c_uint64), ('disp', ctypes.c_int64), ) class Sy...
499
435
{ "description": "This month, we are excited to host <NAME> who will be discussing the Jupyter eco-sytem. Carol develops software, electronics, educational tutorials, and is passionate about outreach. She is a core developer on the Jupyter Project and is a former director at the Python Software foundation. She con...
346
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. #ifndef THIRD_PARTY_BLINK_RENDERER_MODULES_XR_XR_PRESENTATION_FRAME_H_ #define THIRD_PARTY_BLINK_RENDERER_MODULES_XR_XR_PRESENTATION_FRAME_H_ #include "d...
530
348
{"nom":"Rochecolombe","circ":"3ème circonscription","dpt":"Ardèche","inscrits":184,"abs":77,"votants":107,"blancs":18,"nuls":4,"exp":85,"res":[{"nuance":"LR","nom":"<NAME>","voix":53},{"nuance":"REM","nom":"M. <NAME>","voix":32}]}
94
3,834
package org.enso.table.problems; import java.util.List; /** A value annotated with problems that occurred when it was being computed. */ public record WithProblems<T>(T value, List<Problem> problems) {}
59
378
<reponame>tinyweet/smart-socket /******************************************************************************* * Copyright (c) 2017-2019, org.smartboot. All rights reserved. * project name: smart-socket * file name: UdpBootstrap.java * Date: 2019-12-31 * Author: sandao (<EMAIL>) * *****************************...
4,739
310
<reponame>dreeves/usesthis<filename>gear/hardware/g/galaxy-note-3.json { "name": "Galaxy Note 3", "description": "A phone/tablet.", "url": "https://en.wikipedia.org/wiki/Samsung_Galaxy_Note_3" }
82
3,182
package de.plushnikov.accessors; import lombok.Builder; import lombok.Getter; import lombok.experimental.Accessors; @Accessors(prefix = "m") @Builder @Getter public class Example151 { private final String mAField; public static void main(String[] args) { System.out.println(builder().aField("a").build().getA...
114
348
{"nom":"Moncheux","circ":"2ème circonscription","dpt":"Moselle","inscrits":96,"abs":55,"votants":41,"blancs":2,"nuls":0,"exp":39,"res":[{"nuance":"REM","nom":"<NAME>","voix":20},{"nuance":"LR","nom":"<NAME>","voix":19}]}
90