max_stars_count
int64
301
224k
text
stringlengths
6
1.05M
token_count
int64
3
727k
1,248
<gh_stars>1000+ # Generated by Django 2.2.1 on 2019-05-30 11:10 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('pretixbase', '0123_auto_20190530_1035'), ] operations = [ migrations.AddField( model_name='seat', na...
215
1,104
<gh_stars>1000+ package com.cg.baseproject.view.nicespinner; import android.text.Spannable; import android.text.SpannableString; public class SimpleSpinnerTextFormatter implements SpinnerTextFormatter { @Override public Spannable format(String text) { return new SpannableString(text); } }
106
4,081
/* * The Alluxio Open Foundation licenses this work under the Apache License, version 2.0 * (the "License"). You may not use this work except in compliance with the License, which is * available at www.apache.org/licenses/LICENSE-2.0 * * This software is distributed on an "AS IS" basis, WITHOUT WARRANTIES OR CONDI...
277
777
// 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 "ui/aura/mus/window_tree_host_mus.h" #include "base/memory/ptr_util.h" #include "ui/aura/env.h" #include "ui/aura/mus/input_method_mus.h" #inclu...
1,981
5,169
<filename>Specs/c/6/a/SpektraCheckoutSDK/0.0.1/SpektraCheckoutSDK.podspec.json { "name": "SpektraCheckoutSDK", "version": "0.0.1", "summary": "Spektra Checkout SDK", "description": "Spektra Checkout SDK for ios built in Swift 5. Register as a Spektra Merchant and easily implement Specktra checkout to handle mob...
389
2,338
// RUN: %clang_cc1 -emit-llvm -triple x86_64-pc-linux-gnu %s -o - -std=c++11 | FileCheck %s volatile int g1; struct S { volatile int a; } g2; volatile int& refcall(); // CHECK: define{{.*}} void @_Z2f1PViPV1S void f1(volatile int *x, volatile S* s) { // We should perform the load in these cases. // CHECK: load...
508
1,056
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you ...
4,090
10,225
package io.quarkus.panache.common.deployment; import static io.quarkus.panache.common.deployment.PanacheConstants.META_INF_PANACHE_ARCHIVE_MARKER; import java.lang.reflect.Modifier; import java.util.HashSet; import java.util.List; import java.util.Set; import javax.persistence.Transient; import org.jboss.jandex.Cla...
2,800
488
<reponame>maurizioabba/rose<filename>src/midend/programAnalysis/defUseAnalysis/DFAFilter.h //using namespace std; #ifndef __DFAFilter_HXX_LOADED__ #define __DFAFilter_HXX_LOADED__ using namespace VirtualCFG; struct IsDFAFilter { bool operator() (CFGNode cfgn) const { SgNode *n = cfgn.getNode(); // get r...
282
4,223
<gh_stars>1000+ #import <Foundation/Foundation.h> #import "GCDMulticastDelegate.h" @class XMPPStream; /** * XMPPModule is the base class that all extensions/modules inherit. * They automatically get: * * - A dispatch queue. * - A multicast delegate that automatically invokes added delegates. * * The module a...
739
315
<reponame>pxeger/C-Macro-Collections /** * Copyright (c) 2019 <NAME> * * This file is part of the C Macro Collections Libray. * * 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 ...
9,680
322
import logging import unittest from clarifai.rest import ApiError, ClarifaiApp class TestAuth(unittest.TestCase): """ unit test for api auth """ def test_auth_with_invalid_key(self): """ instantiate with key """ api_preset_key = 'abc' with self.assertRaises(ApiError): ClarifaiApp(api_key=...
202
1,396
<reponame>coder229/jdbi /* * 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, s...
2,645
2,900
<reponame>jiweigang1/jackson-databind package com.fasterxml.jackson.databind.ext; import com.fasterxml.jackson.databind.PropertyName; import com.fasterxml.jackson.databind.introspect.Annotated; import com.fasterxml.jackson.databind.introspect.AnnotatedParameter; import com.fasterxml.jackson.databind.util.ClassUtil; /...
582
2,406
<filename>src/tests/ie_test_utils/functional_test_utils/layer_tests_summary/utils/update_skip_test_config.py<gh_stars>1000+ # Copyright (C) 2021 Intel Corporation # SPDX-License-Identifier: Apache-2.0 import os import glob import argparse def parse_arguments(): parser = argparse.ArgumentParser() skip_config...
1,575
1,056
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you ...
871
427
<filename>SymbolExtractorAndRenamer/lldb/source/Plugins/Language/Swift/SwiftOptional.h //===-- SwiftOptional.h -----------------------------------------*- C++ -*-===// // // This source file is part of the Swift.org open source project // // Copyright (c) 2014 - 2016 Apple Inc. and the Swift project authors // Licensed...
1,247
457
package denominator.dynect; import com.squareup.okhttp.mockwebserver.MockResponse; import org.junit.Rule; import org.junit.Test; import org.junit.rules.ExpectedException; import java.io.IOException; import java.io.InputStreamReader; import java.util.Arrays; import java.util.Iterator; import denominator.ResourceReco...
6,180
879
package com.bookstore.service; import com.bookstore.summary.AuthorSummary; import com.bookstore.entity.Book; import java.util.Set; import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; import com.bookstore.repository.AuthorSummaryRepository; @Service public cl...
390
1,821
<reponame>hangqiu/pixie /* * Copyright 2018- The Pixie 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...
637
1,056
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you ...
3,177
350
<reponame>briandcho/all-repos import json import pytest from all_repos.source.bitbucket_server import list_repos from all_repos.source.bitbucket_server import Settings from testing.mock_http import FakeResponse from testing.mock_http import urlopen_side_effect def _resource_json(): with open('testing/resources/...
850
14,668
<reponame>chromium/chromium // Copyright 2021 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_ASH_ECHE_APP_APP_ID_H_ #define CHROME_BROWSER_ASH_ECHE_APP_APP_ID_H_ namespace ash { namespace eche_ap...
197
335
<reponame>Safal08/Hacktoberfest-1<filename>B/Breakfast_noun.json { "word": "Breakfast", "definitions": [ "A meal eaten in the morning, the first of the day." ], "parts-of-speech": "Noun" }
94
2,134
<filename>proto-vjoystick/vjoystick_dialog.cpp #include "vjoystick.h" #include "api/plugin-api.hpp" #include <QDialogButtonBox> vjoystick_dialog::vjoystick_dialog() { ui.setupUi(this); connect(ui.buttonBox, &QDialogButtonBox::accepted, this, &QWidget::close); connect(ui.buttonBox, &QDialogButtonBox::rejec...
141
2,400
package org.optaplanner.core.config.solver.testutil.corruptedmove.factory; import java.util.ArrayList; import java.util.List; import org.optaplanner.core.config.solver.testutil.corruptedmove.AbstractTestdataMove; import org.optaplanner.core.config.solver.testutil.corruptedmove.TestdataCorruptedEntityUndoMove; import ...
619
1,510
/* * WiFi scan * * Part of esp-open-rtos * Copyright (C) 2016 <NAME> <<EMAIL>> * BSD Licensed as described in the file LICENSE */ #include <esp/uart.h> #include <stdio.h> #include <espressif/esp_common.h> #include <FreeRTOS.h> #include <task.h> #include <string.h> static const char * const auth_modes [] = { ...
852
544
<reponame>reimerp/hvac<gh_stars>100-1000 import logging from http.server import HTTPServer from threading import Thread from unittest import TestCase from hvac import exceptions from parameterized import parameterized from tests import utils from tests.utils.hvac_integration_test_case import HvacIntegrationTestCase fr...
5,754
808
<filename>lite/backends/arm/math/sve/gemm_sve.h // Copyright (c) 2022 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.apach...
1,412
3,102
<filename>clang/test/SemaCXX/warn-msvc-enum-bitfield.cpp // RUN: %clang_cc1 -fsyntax-only -Wsigned-enum-bitfield -verify %s --std=c++11 // Enums used in bitfields with no explicitly specified underlying type. void test0() { enum E { E1, E2 }; enum F { F1, F2 }; struct { E e1 : 1; E e2; F f1 : 1; F f2; } s; s....
474
521
<reponame>Fimbure/icebox-1<gh_stars>100-1000 /** @file * IPRT - Types. */ /* * Copyright (C) 2006-2017 Oracle Corporation * * This file is part of VirtualBox Open Source Edition (OSE), as * available from http://www.virtualbox.org. This file is free software; * you can redistribute it and/or modify it under the...
47,215
5,169
{ "name": "Popsicle", "version": "2.0.0", "summary": "Delightful, extensible Swift value interpolation framework", "homepage": "https://github.com/DavdRoman/Popsicle", "authors": { "<NAME>": "<EMAIL>" }, "license": { "type": "MIT", "file": "LICENSE" }, "social_media_url": "https://twitter....
247
2,151
<filename>third_party/blink/renderer/core/animation/svg_integer_optional_integer_interpolation_type.cc // 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 "third_party/blink/renderer/core/animation...
755
348
<reponame>chamberone/Leaflet.PixiOverlay {"nom":"Porta","dpt":"Pyrénées-Orientales","inscrits":113,"abs":28,"votants":85,"blancs":8,"nuls":2,"exp":75,"res":[{"panneau":"1","voix":46},{"panneau":"2","voix":29}]}
92
1,189
/* * Copyright The OpenTelemetry Authors * SPDX-License-Identifier: Apache-2.0 */ package io.opentelemetry.all; import com.tngtech.archunit.base.DescribedPredicate; import com.tngtech.archunit.base.Optional; import com.tngtech.archunit.base.PackageMatcher; import com.tngtech.archunit.core.domain.JavaClass; import ...
1,296
591
<reponame>turesnake/tprPixelGames /* * ========================= esrc_behaviour.h ========================== * -- tpr -- * CREATE -- 2019.04.19 * MODIFY -- * ------------------------------------------------------...
295
1,444
package mage.cards.l; import mage.MageInt; import mage.abilities.Ability; import mage.abilities.common.EntersBattlefieldTriggeredAbility; import mage.abilities.common.SimpleStaticAbility; import mage.abilities.common.delayed.OnLeaveReturnExiledToBattlefieldAbility; import mage.abilities.dynamicvalue.DynamicValue; impo...
2,085
945
<filename>server/src/main/java/org/apache/iotdb/db/consensus/statemachine/visitor/DataExecutionVisitor.java<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 * regar...
1,659
14,668
// Copyright 2019 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef UI_EVENTS_EVENT_REWRITER_CONTINUATION_H_ #define UI_EVENTS_EVENT_REWRITER_CONTINUATION_H_ #include "base/compiler_specific.h" namespace ui { st...
385
1,350
<reponame>billwert/azure-sdk-for-java<filename>sdk/peering/azure-resourcemanager-peering/src/main/java/com/azure/resourcemanager/peering/implementation/PeeringServiceLocationImpl.java // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. // Code generated by Microsoft (R) AutoR...
558
1,681
<reponame>khanhgithead/TensorNetwork # Copyright 2019 The TensorNetwork 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 ...
6,644
45,293
<reponame>Mu-L/kotlin<gh_stars>1000+ /* * Copyright 2010-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ #include "PthreadUtils.h" #include <pthread.h> #include <sys/time.h> namespace { constexpr int64_t kNanosecondsInASecond = 10000...
452
575
// Copyright 2020 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/conversions/conversion_host.h" #include "base/bind.h" #include "base/callback_helpers.h" #include "base/check.h" #include "base...
3,620
1,236
<gh_stars>1000+ /*************************************************************************** * * Copyright (c) 2014 Baidu, 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...
1,368
382
<filename>clouddriver-google/src/main/java/com/netflix/spinnaker/clouddriver/google/deploy/ops/StatefullyUpdateBootImageAtomicOperation.java /* * Copyright 2019 Google, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You ...
2,953
2,591
<filename>liquibase-core/src/main/java/liquibase/statement/core/AddPrimaryKeyStatement.java package liquibase.statement.core; import liquibase.change.ColumnConfig; import liquibase.statement.AbstractSqlStatement; import liquibase.util.StringUtil; public class AddPrimaryKeyStatement extends AbstractSqlStatement { ...
1,330
5,169
{ "name": "AppStoreUpdateChecker", "version": "1.1", "summary": "AppStoreUpdateChecker can notify you if you need to update your app.", "description": "The Update Checker SDK for iOS.", "homepage": "https://github.com/mates-eng/AppStoreUpdateChecker", "license": { "type": "MIT", "file": "LICENSE" ...
262
2,338
//===-- AppleThreadPlanStepThroughObjCTrampoline.cpp-----------------------===// // // 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 // //===---------------------------...
5,904
679
<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 license...
8,776
3,001
<gh_stars>1000+ # coding: utf-8 from __future__ import unicode_literals import re from .mtv import MTVServicesInfoExtractor from ..utils import update_url_query class NickIE(MTVServicesInfoExtractor): # None of videos on the website are still alive? IE_NAME = 'nick.com' _VALID_URL = r'https?://(?P<domai...
5,673
729
<filename>dependencies/libarchive-3.4.2/libarchive/archive_read_disk_windows.c /*- * Copyright (c) 2003-2009 <NAME> * Copyright (c) 2010-2012 <NAME> * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions *...
28,758
591
<gh_stars>100-1000 /* * ========================= KeyBoard.h ========================== * -- tpr -- * CREATE -- 2019.02.13 * MODIFY -- * ---------------------------------------------------------- */ #ifndef TPR...
6,675
872
#include "stdafx.h" #include <windows.h> /* WINXPSP2.NTDLL.ReleaseBufferLocation(): .text:7C973215 mov ecx, [eax+4] // we *could* jump as high as this point .text:7C973218 add ecx, eax .text:7C97321A mov dword ptr [ecx], 0C0100001h ---> .text:7C973...
1,354
488
import os import sys try: from unittest import mock except ImportError: import mock import pytest import tempfile import httplib2 CA_CERTS_BUILTIN = os.path.join(os.path.dirname(httplib2.__file__), "cacerts.txt") CERTIFI_CERTS_FILE = "unittest_certifi_file" CUSTOM_CA_CERTS = "unittest_custom_ca_certs" @pyte...
1,134
466
<reponame>uglthinx/gpdb //--------------------------------------------------------------------------- // Greenplum Database // Copyright (C) 2012 EMC Corp. // // @filename: // IMDTrigger.h // // @doc: // Interface for triggers in the metadata cache //-------------------------------------------------------------------...
440
507
<reponame>mjuenema/python-terrascript # terrascript/teamcity/r.py # Automatically generated by tools/makecode.py () import warnings warnings.warn( "using the 'legacy layout' is deprecated", DeprecationWarning, stacklevel=2 ) import terrascript class teamcity_agent_pool(terrascript.Resource): pass class te...
457
303
from analyze import ServiceNotAvailable
7
523
#pragma once #include "Common.h" #include "ActionType.h" #include "DFBB_BuildOrderSearchResults.h" #include "DFBB_BuildOrderSearchParameters.h" #include "Timer.hpp" #include "Tools.h" #include "BuildOrder.h" #define DFBB_TIMEOUT_EXCEPTION 1 namespace BOSS { class StackData { public: size_t current...
1,023
1,007
# -*-coding: utf-8 -*- """ .. invisible: _ _ _____ _ _____ _____ | | | | ___| | | ___/ ___| | | | | |__ | | | |__ \ `--. | | | | __|| | | __| `--. \ \ \_/ / |___| |___| |___/\__/ / \___/\____/\_____|____/\____/ Created on Sep 21, 2015 Example of genetic optimization. ██████...
943
394
<reponame>hekkihek/DTFoundation<filename>Core/Source/OSX/DTScrollView.h<gh_stars>100-1000 // // DTScrollView.h // iCatalogEditor // // Created by <NAME> on 10/23/12. // Copyright (c) 2012 Cocoanetics. All rights reserved. // #import <Availability.h> #import <TargetConditionals.h> #if TARGET_OS_OSX #import <AppKi...
227
852
#include <CLHEP/Random/RandomEngine.h> #include "FWCore/MessageLogger/interface/MessageLogger.h" #include "SimDataFormats/GeneratorProducts/interface/HepMCProduct.h" CLHEP::HepRandomEngine* randomEngine; extern "C" { void hwaend_() {return;} void cmsending_(int* ecode) { edm::LogError("")<<" ERROR: Herwi...
209
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...
8,707
1,695
<filename>plugin/trino-kudu/src/test/java/io/trino/plugin/kudu/AbstractKuduWithStandardInferSchemaConnectorTest.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 the License at * * http://www.a...
800
436
/* * Copyright 2003-2009 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 applicable...
2,173
400
// // LGError.h // AutoPkgr // // Created by <NAME> on 8/9/14. // Copyright 2014-2016 The Linde Group, 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.ap...
1,299
603
import os import sys import array from PIL import Image from pyexfil.includes.general import _is_slice_in_list from pyexfil.includes.encryption_wrappers import AESEncryptOFB, AESDecryptOFB from pyexfil.includes.image_manipulation import _openImage, _image2pixelarray MAX_IMAGE_ROW_LENGTH = 1024 TERMINATOR ...
2,318
403
import glob import sys sys.path += ['../utils'] import csv from tqdm import tqdm import collections import gzip import pickle import numpy as np import faiss import os import pytrec_eval import json from msmarco_eval import quality_checks_qids, compute_metrics, load_reference import time import logging task_name='DAN...
16,744
307
<gh_stars>100-1000 from tdw.controller import Controller from tdw.tdw_utils import TDWUtils """ Generate a proc-gen room from this image: ![](../../Python/example_controllers/room.png) Each pixel corresponds to a grid point. For more information, see TDWUtils documentation. """ class ProcGenRoomFromImage...
376
2,338
<filename>clang-tools-extra/test/pp-trace/Inputs/Level1A.h #include "Level2A.h" #define MACRO_1A 1
44
4,163
"""Inferior / Superior. --- layout: post source: Fowler's Modern English Usage source_url: bit.ly/1YBG8QJ title: Inferior / Superior date: 2016-03-10 17:27:37 categories: writing --- Corrects 'inferior/superior than' to 'inferior/superior to'. """ from proselint.tools import memoize, preferred_for...
280
573
/* * This software is licensed under the terms of the MIT License. * See COPYING for further information. * --- * Copyright (c) 2011-2019, <NAME> <<EMAIL>>. * Copyright (c) 2012-2019, <NAME> <<EMAIL>>. */ #include "taisei.h" #include "portrait.h" #include "renderer/api.h" #include "config.h" #define RETURN_RESO...
1,555
303
import os import tempfile from redun import File, Scheduler, task from redun.backends.db import Execution from redun.backends.db import File as RowFile from redun.backends.db import Job, RedunBackendDb, Value def test_record_job(scheduler: Scheduler) -> None: @task() def task1(): return 10 @task...
1,671
1,056
<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 * ...
4,578
1,540
<filename>testng-core/src/test/java/test/testng106/TestNG106.java<gh_stars>1000+ package test.testng106; import java.util.Arrays; import org.testng.Assert; import org.testng.TestNG; import org.testng.annotations.Test; import org.testng.xml.XmlSuite; import test.SimpleBaseTest; public class TestNG106 extends SimpleBas...
380
778
// | / | // ' / __| _` | __| _ \ __| // . \ | ( | | ( |\__ ` // _|\_\_| \__,_|\__|\___/ ____/ // Multi-Physics // // License: BSD License // Kratos default license: kratos/license.txt // // Main authors: <NAME> // // // Project inc...
1,021
2,023
#solution1: import sys sys.modules.clear() #solution2: import sys if globals().has_key('init_modules'): for m in [x for x in sys.modules.keys() if x not in init_modules]: del(sys.modules[m]) else: init_modules = sys.modules.keys()
91
4,879
#include "geometry/smoothing.hpp" #include "base/assert.hpp" namespace m2 { namespace { double constexpr kEps = 1e-5; void SmoothGeneric(m2::PointD const & pt0, m2::PointD const & pt1, m2::PointD const & pt2, m2::PointD const & pt3, double alpha, size_t pointsCount, std::vector<...
1,813
5,079
<filename>desktop/core/ext-py/django-celery-beat-1.4.0/django_celery_beat/migrations/0005_add_solarschedule_events_choices.py # -*- coding: utf-8 -*- # Generated by Django 1.9.1 on 2017-11-01 15:53 from __future__ import absolute_import, unicode_literals from django.db import migrations, models class Migration(migra...
561
1,261
<filename>tsconfig.json { "compilerOptions": { "noImplicitAny": true, "noUnusedLocals": true, "noEmit": true, "jsx": "react", "allowJs": true, "target": "esnext", "module": "commonjs", "skipLibCheck": true, "esModuleInterop": true, "typeRoots": ["./node_modules/@types", "./type...
182
4,071
<reponame>hitflame/x-deeplearning<gh_stars>1000+ /* Copyright (C) 2016-2018 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-...
593
402
<gh_stars>100-1000 /* * Copyright 2000-2021 <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 l...
1,439
368
<filename>src/main/java/org/nem/core/model/mosaic/MosaicFeeInformation.java package org.nem.core.model.mosaic; import org.nem.core.model.primitive.Supply; /** * Information that is required to calculate the appropriate mosaic transfer fee. */ public class MosaicFeeInformation { private final Supply supply; privat...
298
1,861
<filename>android/src/main/cpp/spectrumjni/JniOptions.cpp // 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 "JniOptions.h" #include <spectrum/core/utils/Numeric.h> #include <spec...
1,291
13,162
#include <eosio/wallet_plugin/se_wallet.hpp> #include <eosio/wallet_plugin/macos_user_auth.h> #include <eosio/chain/exceptions.hpp> #include <eosio/se-helpers/se-helpers.hpp> #include <Security/Security.h> #include <future> namespace eosio { namespace wallet { namespace detail { static void auth_callback(int succe...
1,336
310
package org.seasar.doma.jdbc.query; import java.sql.Blob; import java.sql.Connection; import java.sql.SQLException; public class BlobCreateQuery extends AbstractCreateQuery<Blob> { @Override public Blob create(Connection connection) throws SQLException { return connection.createBlob(); } }
99
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 * to y...
10,254
348
<reponame>chamberone/Leaflet.PixiOverlay {"nom":"Passavant-sur-Layon","dpt":"Maine-et-Loire","inscrits":108,"abs":13,"votants":95,"blancs":8,"nuls":4,"exp":83,"res":[{"panneau":"1","voix":52},{"panneau":"2","voix":31}]}
96
1,264
/* * Copyright 2015-2021 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by a...
1,018
370
<filename>run_dir/subprocessdebugger.py<gh_stars>100-1000 import os import json import select import socket import subprocess import sys import tempfile import remotedebugger if sys.version_info[0] == 2: raise ValueError("Wrong Python version! This script is for Python 3.") class DebuggerSocket(): def __in...
2,467
2,098
#ifndef MINMAX_HEAP_H_ #define MINMAX_HEAP_H_ #include <stdlib.h> typedef int (*mmh_cmp_func)(const void*, const void*, const void*); typedef void (*mmh_free_func)(void*); typedef struct heap { size_t count; size_t size; mmh_cmp_func cmp; void* cmp_ctx; void** data; mmh_free_func free_func; } heap_t; he...
354
389
/* * Copyright 2014 <NAME>, Inc. */ package gw.lang; import gw.lang.annotation.Order; import java.lang.annotation.Repeatable; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; @Retention(RetentionPolicy....
174
2,757
# Empty module for testing the loading of modules
11
575
// 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 "components/offline_pages/core/prefetch/prefetch_request_fetcher.h" #include "base/bind.h" #include "base/test/mock_callback.h" #include "compon...
2,845
1,111
from kivymd.theming import ThemableBehavior from kivymd.uix.screen import MDScreen class ShrineRegisterScreen(ThemableBehavior, MDScreen): """Registration screen. Opens when the application starts."""
59
6,140
# Copyright 2017 Google 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 law or agreed to in writing, ...
895
530
<gh_stars>100-1000 __all__ = ( "Node", "DefinitionNode", "ExecutableDefinitionNode", "TypeSystemDefinitionNode", "TypeSystemExtensionNode", "TypeDefinitionNode", "TypeExtensionNode", "SelectionNode", "ValueNode", "TypeNode", ) class Node: __slots__ = () class DefinitionNo...
304
456
<reponame>StyXman/kgt /* * Copyright 2014-2017 <NAME> * * See LICENCE for the full copyright terms. */ /* * Output a plaintext dump of the railroad tree */ #include <assert.h> #include <stdio.h> #include <string.h> #include "../txt.h" #include "../ast.h" #include "../compiler_specific.h" #include "../rrd/rrd....
1,468
339
import json import zipfile from convlab2.dst.sumbt.multiwoz_zh.sumbt_config import * def trans_value(value): trans = { '': '未提及', '没有提到': '未提及', '没有': '未提及', '未提到': '未提及', '一个也没有': '未提及', '无': '未提及', '是的': '有', '不是': '没有', '不关心': '不在意', ...
3,846
32,544
package com.baeldung.concurrent.future; import java.util.concurrent.ExecutorService; import java.util.concurrent.Future; class SquareCalculator { private final ExecutorService executor; SquareCalculator(ExecutorService executor) { this.executor = executor; } Future<Integer> calculate(Intege...
178
1,150
<reponame>upcwangying/wechat-python-sdk # -*- coding: utf-8 -*- default_app_config = 'wechat_sdk.context.framework.django.apps.ContextConfig' try: from wechat_sdk.context.framework.django.models import Context as DatabaseContext from wechat_sdk.context.framework.django.backends.db import ContextStore as Datab...
125