content
stringlengths
1
1.04M
input_ids
listlengths
1
774k
ratio_char_token
float64
0.38
22.9
token_count
int64
1
774k
import requests from apikey import apikey # Your API key, it's better not to store it in the program # Enter the WoS search query to evaluate its self-citation percentage: search_query = '(TS=("self citation*" or selfcitation*)) AND (TP==("HIGHLY CITED PAPERS"))' headers = { 'X-APIKey': apikey } endpoint = "ht...
[ 11748, 7007, 198, 6738, 2471, 522, 88, 1330, 2471, 522, 88, 220, 220, 1303, 3406, 7824, 1994, 11, 340, 338, 1365, 407, 284, 3650, 340, 287, 262, 1430, 198, 198, 2, 6062, 262, 22173, 50, 2989, 12405, 284, 13446, 663, 2116, 12, 66, ...
3.748408
314
from abc import ABCMeta from types import TracebackType from typing import ContextManager from typing import List from typing import Optional from typing import Type from typing import TypeVar from typing_extensions import Literal from typing_extensions import Protocol from fbsrankings.common import Command from fbsr...
[ 6738, 450, 66, 1330, 9738, 48526, 198, 6738, 3858, 1330, 34912, 1891, 6030, 198, 6738, 19720, 1330, 30532, 13511, 198, 6738, 19720, 1330, 7343, 198, 6738, 19720, 1330, 32233, 198, 6738, 19720, 1330, 5994, 198, 6738, 19720, 1330, 5994, 198...
4.067376
282
import inspect import sys import typing from dataclasses import dataclass if sys.version_info < (3, 9): from typing_extensions import Annotated, get_args, get_origin else: from typing import Annotated, get_origin, get_args from di.typing import get_markers_from_parameter from xpresso._utils.typing import mod...
[ 11748, 10104, 198, 11748, 25064, 198, 11748, 19720, 198, 6738, 4818, 330, 28958, 1330, 4818, 330, 31172, 198, 198, 361, 25064, 13, 9641, 62, 10951, 1279, 357, 18, 11, 860, 2599, 198, 220, 220, 220, 422, 19720, 62, 2302, 5736, 1330, 10...
2.994898
196
from operator import itemgetter import time import math import random import numpy as np import datetime from osgeo import ogr, osr latlongToAlbers = getCoordConverter(4326,5070) albersToLatlong = getCoordConverter(5070,4326) start_date = datetime.datetime(1992,1,1) end_date = datetime.datetime(2017,12,31) current_d...
[ 6738, 10088, 1330, 2378, 1136, 353, 198, 11748, 640, 198, 11748, 10688, 198, 11748, 4738, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 4818, 8079, 198, 6738, 28686, 469, 78, 1330, 267, 2164, 11, 267, 27891, 198, 198, 15460, 6511, 251...
2.197484
795
from .example import my_func
[ 6738, 764, 20688, 1330, 616, 62, 20786, 201, 198 ]
3.333333
9
import time from Xboxcmd import * import pygame pygame.init() pygame.joystick.init() #查看现在有几个遥控器 joycount = pygame.joystick.get_count() print("joycount:"+str(joycount)) #连接第一个控制器 joystick = pygame.joystick.Joystick(0) while True: #接收事件 pygame.event.get() axis = get_axis(joystick=joystick) button = ...
[ 11748, 640, 198, 6738, 9445, 28758, 1330, 1635, 198, 11748, 12972, 6057, 198, 198, 9078, 6057, 13, 15003, 3419, 198, 9078, 6057, 13, 2633, 13915, 13, 15003, 3419, 198, 198, 2, 162, 253, 98, 40367, 233, 163, 236, 108, 28839, 101, 17312...
2.073684
285
''' @author:yk7333 last modified:2021-4-7 language:python ''' import cv2 as cv import numpy as np import matplotlib.pyplot as plt import os if __name__ == "__main__": os.chdir("C:\\Users\\m\\Desktop\\第四次作业") for i in range(3,8,2): #3,5,7 img=read("test2.tif") ...
[ 7061, 6, 198, 31, 9800, 25, 48361, 22, 20370, 220, 198, 938, 9518, 25, 1238, 2481, 12, 19, 12, 22, 220, 220, 198, 3303, 25, 29412, 198, 7061, 6, 198, 11748, 269, 85, 17, 355, 269, 85, 198, 11748, 299, 32152, 355, 45941, 198, 117...
1.716216
1,110
from pymongo import MongoClient if __name__ == '__main__': print(CustomerRepository().get_customers())
[ 6738, 279, 4948, 25162, 1330, 42591, 11792, 201, 198, 201, 198, 201, 198, 201, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 201, 198, 220, 220, 220, 3601, 7, 44939, 6207, 13264, 22446, 1136, 62, 23144, 364, 28955, 20...
2.697674
43
import os import json import logging import logging.config from telegram.ext import Updater from telegram.ext import CommandHandler from telegram.ext import Filters from config import config from jobs import JOBS_CALLBACKS import utils as u logger = logging.getLogger(__name__) load_logging_config()...
[ 11748, 28686, 201, 198, 11748, 33918, 201, 198, 11748, 18931, 201, 198, 11748, 18931, 13, 11250, 201, 198, 201, 198, 6738, 573, 30536, 13, 2302, 1330, 3205, 67, 729, 201, 198, 6738, 573, 30536, 13, 2302, 1330, 9455, 25060, 201, 198, 6...
2.607362
163
import os import re import json import requests from datetime import datetime github_headers = {'Authorization': 'token %s' % os.environ.get("GITHUB_TOKEN")} repo_info_table = { "vouch-proxy": { "name": "vouch-proxy", "type": "github", "owner": "vouch", "match": "^v[0-9]{1,}\.[0-9]...
[ 11748, 28686, 198, 11748, 302, 198, 11748, 33918, 198, 11748, 7007, 198, 6738, 4818, 8079, 1330, 4818, 8079, 198, 198, 12567, 62, 50145, 796, 1391, 6, 13838, 1634, 10354, 705, 30001, 4064, 82, 6, 4064, 28686, 13, 268, 2268, 13, 1136, ...
1.589418
4,177
from .args import ArgsWrapper from .dataset import Dataset from .consts import DATA_PATH, TRAINING_DATASET
[ 6738, 764, 22046, 1330, 943, 14542, 36918, 2848, 198, 6738, 764, 19608, 292, 316, 1330, 16092, 292, 316, 198, 6738, 764, 1102, 6448, 1330, 42865, 62, 34219, 11, 29125, 1268, 2751, 62, 35, 1404, 1921, 2767 ]
2.944444
36
from Dataset import * from datetime import * import time dataset = Dataset('TestData/Dados.csv') begin_date = datetime.strptime('2021-08-2 12:00',"%Y-%m-%d %H:%M") end_date = datetime.strptime('2021-08-7 12:00',"%Y-%m-%d %H:%M") main_var = 'TU-11C:SS-HLS-Ax48NW5:Level-Mon' start = time.time() delays, corrs, names = ...
[ 6738, 16092, 292, 316, 1330, 1635, 198, 6738, 4818, 8079, 1330, 1635, 198, 11748, 640, 198, 198, 19608, 292, 316, 796, 16092, 292, 316, 10786, 14402, 6601, 14, 35, 22484, 13, 40664, 11537, 198, 27471, 62, 4475, 796, 4818, 8079, 13, 25...
2.211055
199
import pytest from textx_ls_core import utils @pytest.mark.parametrize("uri, expected_ext", [ (None, ''), ('', ''), ('/test/path/file.txt', 'txt'), ('Textxfile', 'Textxfile') ])
[ 11748, 12972, 9288, 198, 6738, 2420, 87, 62, 7278, 62, 7295, 1330, 3384, 4487, 628, 198, 31, 9078, 9288, 13, 4102, 13, 17143, 316, 380, 2736, 7203, 9900, 11, 2938, 62, 2302, 1600, 685, 198, 220, 220, 220, 357, 14202, 11, 10148, 828,...
2.305882
85
from setuptools import setup setup( name='openmrsapi', version='0.1', description='a library for interacting with openmrs api in python', url='https://github.com/isears/openmrsapi', author='Isaac Sears', author_email='isaac.j.sears@gmail.com', license='MIT', packages=['openmrsapi'], ...
[ 198, 6738, 900, 37623, 10141, 1330, 9058, 198, 198, 40406, 7, 198, 220, 220, 220, 1438, 11639, 9654, 76, 3808, 15042, 3256, 198, 220, 220, 220, 2196, 11639, 15, 13, 16, 3256, 198, 220, 220, 220, 6764, 11639, 64, 5888, 329, 24986, 35...
2.449367
158
from blogposts import app if __name__ == '__main__': app.run(host='192.168.43.57',debug=True)
[ 6738, 4130, 24875, 1330, 598, 201, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 201, 198, 220, 220, 220, 598, 13, 5143, 7, 4774, 11639, 17477, 13, 14656, 13, 3559, 13, 3553, 3256, 24442, 28, 17821, 8, 201, 198 ]
2.404762
42
import asyncio import logging import random import time from datetime import datetime from typing import Any, Dict, Optional, Tuple import reddit_adapter import subscriptions_manager import telegram_adapter workers: Dict[Tuple[int, str], asyncio.Task[Any]] = {} async def check_exceptions(refresh_period: int =...
[ 11748, 30351, 952, 198, 11748, 18931, 198, 11748, 4738, 198, 11748, 640, 198, 6738, 4818, 8079, 1330, 4818, 8079, 198, 6738, 19720, 1330, 4377, 11, 360, 713, 11, 32233, 11, 309, 29291, 198, 198, 11748, 18374, 62, 324, 3429, 198, 11748, ...
2.125369
678
#!/usr/bin/env python # -*- coding: utf-8 -*- """Implementation of the Trigger Unit communication.""" import logging import re import socket _log = logging.getLogger(__name__) physical_names = { 'A2_Delay': r'Simmer_delay(1uS)', 'A4_Delay': r'Burst_delay(1uS)', 'A4_Number': r'Burst_number', 'A4_Perio...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 3546, 32851, 286, 262, 24593, 11801, 6946, 526, 15931, 198, 198, 11748, 18931, 198, 11748, 302, 198, 11748, 17802,...
1.815299
1,072
store.set_global_value('hotkey', '<ctrl>+e') engine.set_return_value('<end>') engine.run_script('chromium')
[ 8095, 13, 2617, 62, 20541, 62, 8367, 10786, 8940, 2539, 3256, 705, 27, 44755, 29, 10, 68, 11537, 198, 18392, 13, 2617, 62, 7783, 62, 8367, 10786, 27, 437, 29, 11537, 198, 18392, 13, 5143, 62, 12048, 10786, 28663, 1505, 11537, 198 ]
2.571429
42
#!/usr/bin/env python2 # -*- coding: utf-8 -*- """Very weak testing of the basic functionality using unittest and QTest""" from __future__ import division __author__ = "Ivan Luchko (luchko.ivan@gmail.com)" __version__ = "1.0a1" __date__ = "Apr 4, 2017" __copyright__ = "Copyright (c) 2017, Ivan Luchko and Project Cont...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 17, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 16371, 4939, 4856, 286, 262, 4096, 11244, 1262, 555, 715, 395, 290, 1195, 14402, 37811, 198, 198, 6738, 1159...
2.152972
2,288
# file: config_gen/admin.py from django.contrib import admin # Register your models here.
[ 2, 2393, 25, 4566, 62, 5235, 14, 28482, 13, 9078, 198, 198, 6738, 42625, 14208, 13, 3642, 822, 1330, 13169, 198, 198, 2, 17296, 534, 4981, 994, 13, 198 ]
3.172414
29
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Copyright 2020 Confluent 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 requi...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 198, 2, 15069, 12131, 7326, 28216, 3457, 13, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, ...
2.333912
3,459
""" pyexcel_io.utils ~~~~~~~~~~~~~~~~~~~ utility functions :copyright: (c) 2014-2017 by Onni Software Ltd. :license: New BSD License, see LICENSE for more details """ import pyexcel_io.constants as constants XLS_PLUGIN = "pyexcel-xls" XLSX_PLUGIN = "pyexcel-xlsx" ODS_PLUGIN = "pyexcel-ods" ODS3_P...
[ 37811, 198, 220, 220, 220, 12972, 1069, 5276, 62, 952, 13, 26791, 198, 220, 220, 220, 220, 27156, 4907, 93, 628, 220, 220, 220, 10361, 5499, 628, 220, 220, 220, 1058, 22163, 4766, 25, 357, 66, 8, 1946, 12, 5539, 416, 1550, 8461, 1...
2.194872
780
import unittest from cube import RubiksCube # rename that class # test solution funcs <- make sure the tests arent interfering with each other # def test_bottom_layer_robustness(self, n=50): # for _ in range(n): # self.cube.initialize_cube() # self.test_bottom_layer() # ...
[ 11748, 555, 715, 395, 198, 6738, 23441, 1330, 6256, 72, 591, 29071, 628, 198, 2, 36265, 326, 1398, 198, 198, 2, 1332, 4610, 1257, 6359, 24293, 787, 1654, 262, 5254, 389, 429, 32874, 351, 1123, 584, 628, 220, 220, 220, 1303, 825, 133...
2.075099
506
#coding:utf-8 ''' filename:mysequence.py chap:6 subject:20 conditions:inherit collections.abc.Sequence 新容器内的对象必须按照一定顺序排列 solution:class MySequence ''' import collections import numbers class MySequence(collections.abc.Sequence): '''必要方法 __getitem__,__len__''' @staticmeth...
[ 2, 66, 7656, 25, 40477, 12, 23, 198, 198, 7061, 6, 198, 220, 220, 220, 29472, 25, 1820, 43167, 13, 9078, 198, 220, 220, 220, 220, 220, 220, 220, 28022, 25, 21, 198, 220, 220, 220, 2426, 25, 1238, 198, 220, 220, 220, 3403, 25, ...
1.700219
914
"""starts a sync remote server """ import os import getpass import pathlib import logging import click from . import cli import paramiko import paramiko.sftp_client import syncro.support as support import syncro.cli as cli logger = logging.getLogger(__name__) @click.command() @click.argument("host") @click.op...
[ 37811, 301, 5889, 257, 17510, 6569, 4382, 198, 37811, 198, 11748, 28686, 198, 11748, 651, 6603, 198, 11748, 3108, 8019, 198, 11748, 18931, 198, 198, 11748, 3904, 198, 6738, 764, 1330, 537, 72, 198, 198, 11748, 5772, 12125, 198, 11748, 5...
2.684091
440
from typing import List, Tuple #fenzhi1xiugai def n31(a: int) -> Tuple[List[int], int]: """ Returns the Collatz sequence and its length of any positive integer. >>> n31(4) ([4, 2, 1], 3) """ if not isinstance(a, int): raise TypeError("Must be int, not {}".format(type(a).__name__)) ...
[ 6738, 19720, 1330, 7343, 11, 309, 29291, 198, 198, 2, 69, 19471, 5303, 16, 29992, 1018, 1872, 198, 4299, 299, 3132, 7, 64, 25, 493, 8, 4613, 309, 29291, 58, 8053, 58, 600, 4357, 493, 5974, 198, 220, 220, 220, 37227, 198, 220, 220,...
1.382968
2,008
from nltk import Tree import nltk import argparse import pandas as pandas import pandas as pd parser = argparse.ArgumentParser() parser.add_argument('--infile', default='./ptb-collins.merge.txt', help="preprocessing tree") #parser.add_argument('--seed', type=int, default=2004, help="random seed for initialization...
[ 6738, 299, 2528, 74, 1330, 12200, 198, 11748, 299, 2528, 74, 198, 11748, 1822, 29572, 198, 11748, 19798, 292, 355, 19798, 292, 198, 11748, 19798, 292, 355, 279, 67, 628, 220, 220, 220, 220, 198, 48610, 796, 1822, 29572, 13, 28100, 171...
2.069156
723
# Copyright 2021 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 agreed to in writing, ...
[ 2, 15069, 33448, 3012, 11419, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 2, 345, 743, 407, 779, 428, 2393, 2845, 287, 11846, 351, 262, 13789, 13, 198, 2, 921, 743, 733...
2.605293
2,607
import sweeper.utils as utils import unittest from pprint import PrettyPrinter from scheduler.manager import create_schedule_plan from sweeper import Workflow pp = PrettyPrinter(indent=1) if __name__ == '__main__': unittest.main()
[ 11748, 3490, 5723, 13, 26791, 355, 3384, 4487, 198, 11748, 555, 715, 395, 198, 198, 6738, 279, 4798, 1330, 20090, 6836, 3849, 198, 6738, 6038, 18173, 13, 37153, 1330, 2251, 62, 15952, 5950, 62, 11578, 198, 6738, 3490, 5723, 1330, 5521, ...
3.037975
79
BATCH_SIZE = 128 NUM_CLASSES = 10 EPOCHS = 20 # input image dimensions IMG_ROWS, IMG_COLS = 28, 28 # set if false if you want to use trained weights TO_TRAIN = True
[ 33, 11417, 62, 33489, 796, 13108, 198, 41359, 62, 31631, 1546, 796, 838, 198, 8905, 46, 3398, 50, 796, 1160, 198, 198, 2, 5128, 2939, 15225, 198, 3955, 38, 62, 49, 22845, 11, 8959, 38, 62, 25154, 50, 796, 2579, 11, 2579, 198, 198,...
2.609375
64
''' Calculates the 13C(a,n) cross section "Free" parameters: * partial width BGP (1/2+, neutron) * level energy (3/2+) * partial width (3/2+, neutron) * partial width (3/2+, alpha) ''' import os import sys from multiprocessing import Pool import emcee import numpy as np from s...
[ 7061, 6, 198, 220, 220, 220, 27131, 689, 262, 1511, 34, 7, 64, 11, 77, 8, 3272, 2665, 198, 220, 220, 220, 366, 11146, 1, 10007, 25, 198, 220, 220, 220, 220, 220, 220, 220, 1635, 13027, 9647, 347, 16960, 357, 16, 14, 17, 28200, ...
2.461326
724
import subprocess import os import time import re runPath = os.path.realpath(os.path.dirname(os.path.abspath(__file__)) + '/../../')
[ 11748, 850, 14681, 198, 11748, 28686, 198, 11748, 640, 198, 11748, 302, 198, 198, 5143, 15235, 796, 28686, 13, 6978, 13, 5305, 6978, 7, 418, 13, 6978, 13, 15908, 3672, 7, 418, 13, 6978, 13, 397, 2777, 776, 7, 834, 7753, 834, 4008, ...
2.755102
49
from wasmer import engine, wat2wasm, Store, Module, Instance from wasmer_compiler_cranelift import Compiler TEST_BYTES = wat2wasm( """ (module (memory 16) (export "memory" (memory 0))) """ )
[ 6738, 373, 647, 1330, 3113, 11, 4383, 17, 86, 8597, 11, 9363, 11, 19937, 11, 2262, 590, 198, 6738, 373, 647, 62, 5589, 5329, 62, 66, 2596, 417, 2135, 1330, 3082, 5329, 198, 198, 51, 6465, 62, 17513, 51, 1546, 796, 4383, 17, 86, ...
2.340426
94
A[p]= max( A[i]+ A[i:j]+ f(j,p) + f(i,p) ) +f(1,p) for p in range(N):
[ 198, 198, 32, 58, 79, 22241, 3509, 7, 317, 58, 72, 48688, 317, 58, 72, 25, 73, 48688, 277, 7, 73, 11, 79, 8, 1343, 277, 7, 72, 11, 79, 8, 220, 220, 1267, 1343, 69, 7, 16, 11, 79, 8, 628, 198, 1640, 279, 287, 2837, 7, 45,...
1.473684
57
if __name__ == '__main__': remove_lines() print ("done")
[ 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 198, 220, 220, 220, 4781, 62, 6615, 3419, 198, 220, 220, 220, 3601, 5855, 28060, 4943, 628 ]
2.392857
28
import numpy as np from .observation import PyBulletObservationType
[ 11748, 299, 32152, 355, 45941, 198, 198, 6738, 764, 672, 3168, 341, 1330, 9485, 33481, 1616, 31310, 13208, 6030, 628 ]
3.5
20
from typing import List from plenum.server.replica_freshness_checker import FreshnessChecker from crypto.bls.bls_bft_replica import BlsBftReplica from plenum.common.config_util import getConfig from plenum.common.event_bus import InternalBus, ExternalBus from plenum.common.messages.node_messages import Checkpoint fro...
[ 6738, 19720, 1330, 7343, 198, 198, 6738, 458, 44709, 13, 15388, 13, 35666, 3970, 62, 48797, 1108, 62, 9122, 263, 1330, 20138, 1108, 9787, 263, 198, 198, 6738, 21473, 13, 2436, 82, 13, 2436, 82, 62, 65, 701, 62, 35666, 3970, 1330, 10...
3.624138
290
if __name__ == '__main__': main()
[ 198, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 198, 220, 220, 220, 1388, 3419, 198 ]
2.105263
19
''' Utilities for training TM-Glow in parallel as well as calculating the loss in parallel on different GPUs for memory purposes. Original Implementation by Zhang, Rutgers University https://medium.com/huggingface/training-larger-batches-practical-tips-on-1-gpu-multi-gpu-distributed-setups-ec88c3e51255 ===== Distribut...
[ 7061, 6, 198, 18274, 2410, 329, 3047, 21232, 12, 38, 9319, 287, 10730, 355, 880, 355, 26019, 198, 1169, 2994, 287, 10730, 319, 1180, 32516, 329, 4088, 4959, 13, 198, 198, 20556, 46333, 416, 19439, 11, 30595, 2059, 198, 5450, 1378, 241...
2.828434
2,279
import requests #possible creds generated by level #one of them is valid for one of your web app from credentials import creds #url='http://YOUR_INTERNAL_IP/login' urls=['http://10.138.0.58/login', 'http://10.138.0.59/login','http://10.138.0.60/login'] for url in urls: for u in creds: #prepare data for post...
[ 11748, 7007, 198, 2, 79, 4733, 2600, 82, 7560, 416, 1241, 198, 2, 505, 286, 606, 318, 4938, 329, 530, 286, 534, 3992, 598, 220, 220, 198, 6738, 18031, 1330, 2600, 82, 628, 628, 198, 198, 2, 6371, 11639, 4023, 1378, 56, 11698, 62, ...
2.661538
260
from collections import Counter text = "hubba bubba" # def get_char_count(text): # letters = {} # for letter in text: # letters[letter] = text.count(letter) # hidden loop in count # return letters print(get_char_count(text)) count = Counter(text) print(count) print(count.most_comm...
[ 6738, 17268, 1330, 15034, 198, 5239, 796, 366, 40140, 7012, 10015, 7012, 1, 198, 2, 825, 651, 62, 10641, 62, 9127, 7, 5239, 2599, 198, 2, 220, 220, 220, 220, 7475, 796, 23884, 198, 220, 198, 2, 220, 220, 220, 220, 329, 3850, 287, ...
2.507692
130
# Copyright (c) 2018 Forschungszentrum Juelich GmbH # Author: Yann Leprince <y.leprince@fz-juelich.de> # # This software is made available under the MIT licence, see LICENCE.txt. import pathlib import pytest from neuroglancer_scripts.file_accessor import FileAccessor from neuroglancer_scripts.accessor import ( D...
[ 2, 15069, 357, 66, 8, 2864, 27325, 354, 2150, 82, 89, 298, 6582, 449, 2731, 488, 402, 2022, 39, 198, 2, 6434, 25, 575, 1236, 42957, 81, 924, 1279, 88, 13, 293, 1050, 924, 31, 69, 89, 12, 73, 2731, 488, 13, 2934, 29, 198, 2, ...
2.832258
155
// シェーダー空手のやつ //# https://thebookofshaders.com/05/kynd.png #define BPM 90.0 const float PI = acos(-1.0); const float TAU = PI * 2.0; /* sound common */ float timeToBeat(float t) {return t / 60.0 * BPM;} float beatToTime(float b) {return b / BPM * 60.0;} float sine(float phase) { return sin(TAU * phase); } float ...
[ 1003, 220, 15661, 24806, 12045, 222, 6312, 163, 102, 118, 33699, 233, 5641, 1792, 226, 2515, 97, 198, 1003, 2, 3740, 1378, 1169, 2070, 1659, 1477, 9972, 13, 785, 14, 2713, 14, 2584, 358, 13, 11134, 198, 198, 2, 13086, 347, 5868, 410...
1.994337
883
"""Handles incoming ebs requests, invokes methods, returns responses.""" import json from moto.core.responses import BaseResponse from .models import ebs_backends class EBSResponse(BaseResponse): """Handler for EBS requests and responses.""" @property def ebs_backend(self): """Return backend ins...
[ 37811, 12885, 829, 15619, 304, 1443, 7007, 11, 800, 3369, 5050, 11, 5860, 9109, 526, 15931, 198, 11748, 33918, 198, 198, 6738, 285, 2069, 13, 7295, 13, 16733, 274, 1330, 7308, 31077, 198, 6738, 764, 27530, 1330, 304, 1443, 62, 1891, 2...
2.174116
1,499
import unittest import torch.nn from rl_starterpack import AC, OpenAIGym, experiment
[ 11748, 555, 715, 395, 198, 198, 11748, 28034, 13, 20471, 198, 198, 6738, 374, 75, 62, 12339, 8002, 1330, 7125, 11, 4946, 32, 3528, 4948, 11, 6306, 628 ]
3.142857
28
"""Centec OS Support""" from netmiko.cisco_base_connection import CiscoBaseConnection import time
[ 37811, 19085, 721, 7294, 7929, 37811, 198, 6738, 2010, 76, 12125, 13, 66, 4861, 62, 8692, 62, 38659, 1330, 28289, 14881, 32048, 198, 11748, 640, 628, 628 ]
3.740741
27
#Challenge 3 #The program asks the user to inputtheir surname and then their first name. #The program then outputsthe user’s first name and then their surname separately. name2 = input("please enter your surname: ") name1 = input("please enter your first name: ") print(name2) print(name1)
[ 2, 41812, 3540, 513, 201, 198, 2, 464, 1430, 7893, 262, 2836, 284, 5128, 24571, 40358, 290, 788, 511, 717, 1438, 13, 201, 198, 2, 464, 1430, 788, 5072, 301, 258, 2836, 447, 247, 82, 717, 1438, 290, 788, 511, 40358, 13869, 13, 201,...
3.271739
92
# pylint: disable=line-too-long from __future__ import print_function import json import re import traceback import zipfile import arrow import pytz from passive_data_kit.models import DataPoint from passive_data_kit_external_data.models import annotate_field from ..utils import hash_content, encrypt_content, cre...
[ 2, 279, 2645, 600, 25, 15560, 28, 1370, 12, 18820, 12, 6511, 198, 198, 6738, 11593, 37443, 834, 1330, 3601, 62, 8818, 198, 198, 11748, 33918, 198, 11748, 302, 198, 11748, 12854, 1891, 198, 11748, 19974, 7753, 198, 198, 11748, 15452, 1...
3.438596
114
from distutils.core import setup import os from setuptools import find_packages DIR = os.path.dirname(__file__) with open(os.path.join(DIR, "README.md")) as f: readme = f.read().splitlines() setup( name='use_logging', version='0.0.1', packages=find_packages(include='use_logging*'), url='https://github.com/Gamb...
[ 6738, 1233, 26791, 13, 7295, 1330, 9058, 198, 198, 11748, 28686, 198, 6738, 900, 37623, 10141, 1330, 1064, 62, 43789, 198, 198, 34720, 796, 28686, 13, 6978, 13, 15908, 3672, 7, 834, 7753, 834, 8, 198, 198, 4480, 1280, 7, 418, 13, 69...
2.630841
214
from pathlib import Path
[ 6738, 3108, 8019, 1330, 10644, 628 ]
4.333333
6
import math import torch import torch.nn as nn import models import utils from .models import register @register('classifier') @register('linear-classifier') @register('nn-classifier') @register('moco') class MoCo(nn.Module): """ Build a MoCo model with: a query encoder, a key encoder, and a queue...
[ 11748, 10688, 198, 198, 11748, 28034, 198, 11748, 28034, 13, 20471, 355, 299, 77, 198, 198, 11748, 4981, 198, 11748, 3384, 4487, 198, 6738, 764, 27530, 1330, 7881, 628, 198, 31, 30238, 10786, 4871, 7483, 11537, 628, 198, 31, 30238, 1078...
2.110212
1,978
#!/usr/bin/env python3 # 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...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 198, 2, 49962, 284, 262, 24843, 10442, 5693, 357, 1921, 37, 8, 739, 530, 393, 517, 198, 2, 18920, 5964, 11704, 13, 220, 4091, 262, 28536, 2393, 9387, 351, 198, 2, 428, 670, 329...
3.128319
452
import pytest from BlueKumquatAutoDiff.autodiff import *
[ 11748, 12972, 9288, 198, 6738, 4518, 42, 388, 421, 265, 27722, 28813, 13, 2306, 375, 733, 1330, 1635, 628, 628, 628 ]
2.952381
21
# -*- coding: utf-8 -*- from aenum import Flag from .results import Results
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 6738, 257, 44709, 1330, 19762, 198, 6738, 764, 43420, 1330, 15691, 628, 198 ]
2.888889
27
from django.core.management.base import BaseCommand import time from core.services.update import Updater
[ 6738, 42625, 14208, 13, 7295, 13, 27604, 13, 8692, 1330, 7308, 21575, 198, 11748, 640, 198, 198, 6738, 4755, 13, 30416, 13, 19119, 1330, 3205, 67, 729, 628 ]
3.821429
28
import nltk import sys sentence = """At eight o'clock on Thursday morning Arthur didn't feel very good.""" tokens = nltk.word_tokenize(sentence) if tokens != ['At', 'eight', "o'clock", 'on', 'Thursday', 'morning', 'Arthur', 'did', "n't", 'feel', 'very', 'good', '.']: sys.stderr.write("Error in token...
[ 11748, 299, 2528, 74, 198, 11748, 25064, 198, 198, 34086, 594, 796, 37227, 2953, 3624, 267, 6, 15750, 319, 3635, 3329, 13514, 1422, 470, 1254, 845, 922, 526, 15931, 198, 83, 482, 641, 796, 299, 2528, 74, 13, 4775, 62, 30001, 1096, 7...
2.57037
135
import os _data_path_prefix = lambda name:os.sep.join(['www.VyperLogix.com',name])
[ 11748, 28686, 198, 198, 62, 7890, 62, 6978, 62, 40290, 796, 37456, 1438, 25, 418, 13, 325, 79, 13, 22179, 7, 17816, 2503, 13, 53, 88, 525, 11187, 844, 13, 785, 3256, 3672, 12962, 198 ]
2.4
35
import pathlib import pkg_resources from setuptools import setup, find_packages with pathlib.Path('requirements.txt').open() as requirements_txt: install_requires = [ str(requirement) for requirement in pkg_resources.parse_requirements(requirements_txt) ] version = '0.4.2' setup( n...
[ 11748, 3108, 8019, 198, 11748, 279, 10025, 62, 37540, 198, 6738, 900, 37623, 10141, 1330, 9058, 11, 1064, 62, 43789, 198, 198, 4480, 3108, 8019, 13, 15235, 10786, 8897, 18883, 13, 14116, 27691, 9654, 3419, 355, 5359, 62, 14116, 25, 198,...
2.833333
402
import numpy import sklearn.naive_bayes import sklearn.feature_extraction.text import sklearn.pipeline # New additions import mlflow.sklearn mlflow.set_tracking_uri("http://atrium.datmo.com") mlflow.set_experiment("training_module") ... train_and_evaluate_model()
[ 11748, 299, 32152, 198, 11748, 1341, 35720, 13, 2616, 425, 62, 24406, 274, 198, 11748, 1341, 35720, 13, 30053, 62, 2302, 7861, 13, 5239, 198, 11748, 1341, 35720, 13, 79, 541, 4470, 198, 198, 2, 968, 19885, 198, 11748, 285, 1652, 9319,...
2.860215
93
''' Created on Jun 14, 2017 @author: xinguan ''' # import mysql.connector import mysql.connector create_dice_jobs = ( "CREATE TABLE IF NOT EXISTS `dice_jobs` (" " `job_unique_id` varchar(50) NOT NULL," " `job_title` text NOT NULL," " `job_url` text NOT NULL," " `company` text NOT NULL," " ...
[ 7061, 6, 198, 41972, 319, 7653, 1478, 11, 2177, 198, 198, 31, 9800, 25, 2124, 6680, 272, 198, 7061, 6, 198, 2, 1330, 48761, 13, 8443, 273, 198, 11748, 48761, 13, 8443, 273, 198, 198, 17953, 62, 67, 501, 62, 43863, 796, 357, 198, ...
2.123037
382
# !/usr/bin/python # -*- coding: utf-8 -*- import os import sys import logging import asyncio as aio from multiprocessing import set_start_method def get_logger(print_format: str = '[%(asctime)s.%(msecs)03d: %(levelname).1s %(filename)s:%(lineno)s] %(message)s', date_format: str = '%Y-%m-%d %H:%M:%S', ...
[ 2, 5145, 14, 14629, 14, 8800, 14, 29412, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 11748, 28686, 198, 11748, 25064, 198, 11748, 18931, 198, 11748, 30351, 952, 355, 257, 952, 198, 6738, 220, 18540, 305, 919,...
2.254335
519
import os def load_idmap(idmap_file): """Load tab-separated idmap file containing label index and label string Args: idmap_file (str): filepath to idmap Returns: dict: labelmap (key=index, value=string) """ if not os.path.exists(idmap_file): raise FileExistsError(idmap_fi...
[ 11748, 28686, 628, 198, 4299, 3440, 62, 312, 8899, 7, 312, 8899, 62, 7753, 2599, 198, 220, 220, 220, 37227, 8912, 7400, 12, 25512, 515, 4686, 8899, 2393, 7268, 6167, 6376, 290, 6167, 4731, 628, 220, 220, 220, 943, 14542, 25, 198, 22...
2.227074
229
from unittest import TestCase from unittest.mock import Mock, patch import pytest from pytest import approx from functions import mpc_to_mly from voevent import VOEventFromXml, VOEventFromEventId import tests.voevent_test_data as test_data import ligo from ligo.gracedb.exceptions import HTTPError @patch("ligo.grace...
[ 6738, 555, 715, 395, 1330, 6208, 20448, 198, 6738, 555, 715, 395, 13, 76, 735, 1330, 44123, 11, 8529, 198, 198, 11748, 12972, 9288, 198, 6738, 12972, 9288, 1330, 5561, 198, 198, 6738, 5499, 1330, 285, 14751, 62, 1462, 62, 76, 306, 1...
2.673387
248
__author__ = 'Justin McClure' from django.test import TestCase, Client from django.core.urlresolvers import reverse from random import choice from lib.api_calls import APIException # Note: Wait view will probably be removed in the future
[ 834, 9800, 834, 796, 705, 33229, 23780, 495, 6, 198, 198, 6738, 42625, 14208, 13, 9288, 1330, 6208, 20448, 11, 20985, 198, 6738, 42625, 14208, 13, 7295, 13, 6371, 411, 349, 690, 1330, 9575, 198, 6738, 4738, 1330, 3572, 198, 6738, 9195...
3.513889
72
import requests import lxml.html import json # tutorial from An Intro to Web Scraping With lxml and Python – Python Tips # https://pythontips.com/2018/06/20/an-intro-to-web-scraping-with-lxml-and-python/ # html = requests.get("https://www.beatport.com/genre/psy-trance/13/top-100") html = requests.get("https://store.s...
[ 11748, 7007, 198, 11748, 300, 19875, 13, 6494, 198, 11748, 33918, 198, 198, 2, 11808, 422, 1052, 37219, 284, 5313, 1446, 2416, 278, 2080, 300, 19875, 290, 11361, 784, 11361, 27558, 198, 2, 3740, 1378, 79, 5272, 756, 2419, 13, 785, 14,...
2.517532
713
# flake8: noqa from .aen import AdaptiveElasticNet from .aencv import AdaptiveElasticNetCV
[ 2, 781, 539, 23, 25, 645, 20402, 198, 198, 6738, 764, 64, 268, 1330, 30019, 425, 9527, 3477, 7934, 198, 6738, 764, 64, 12685, 85, 1330, 30019, 425, 9527, 3477, 7934, 33538, 198 ]
2.787879
33
from ..misc import binary_digitize import numpy as np import pandas as pd
[ 6738, 11485, 44374, 1330, 13934, 62, 27003, 1096, 198, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 19798, 292, 355, 279, 67 ]
3.363636
22
# This example requires the `message_content` privileged intent for access to message content. import discord intents = discord.Intents.default() intents.message_content = True client = MyClient(intents=intents) client.run("TOKEN")
[ 2, 770, 1672, 4433, 262, 4600, 20500, 62, 11299, 63, 21929, 6824, 329, 1895, 284, 3275, 2695, 13, 198, 198, 11748, 36446, 628, 198, 198, 600, 658, 796, 36446, 13, 5317, 658, 13, 12286, 3419, 198, 600, 658, 13, 20500, 62, 11299, 796,...
3.590909
66
import torch.nn as nn from PIL import Image from torch.utils.data import Dataset import numpy as np from transform_file import cut root='/home/wang/Dataset/Caltech256/' #root='/media/this/02ff0572-4aa8-47c6-975d-16c3b8062013/Caltech256/'
[ 11748, 28034, 13, 20471, 355, 299, 77, 198, 6738, 350, 4146, 1330, 7412, 198, 6738, 28034, 13, 26791, 13, 7890, 1330, 16092, 292, 316, 198, 11748, 299, 32152, 355, 45941, 198, 6738, 6121, 62, 7753, 1330, 2005, 198, 198, 15763, 11639, ...
2.580645
93
"""Data type models""" # Copyright (c) Microsoft Corporation. # Licensed under the MIT license. import datetime import enum from typing import Any, Dict, List, Optional import deserialize def iso8601parse(date_string: Optional[str]) -> Optional[datetime.datetime]: """Parse an ISO8601 date string into a datetim...
[ 37811, 6601, 2099, 4981, 37811, 198, 198, 2, 15069, 357, 66, 8, 5413, 10501, 13, 198, 2, 49962, 739, 262, 17168, 5964, 13, 198, 198, 11748, 4818, 8079, 198, 11748, 33829, 198, 6738, 19720, 1330, 4377, 11, 360, 713, 11, 7343, 11, 322...
2.705357
672
import os import pandas as pd import collections import re import pickle from basic_util.files import * import argparse if __name__ =='__main__': parser = get_parser() args = parser.parse_args() imap = IMap(args.dir_path, args.base_name) imap.learn_dic(args.count_names, args.check_names) imap....
[ 11748, 28686, 198, 11748, 19798, 292, 355, 279, 67, 198, 11748, 17268, 198, 11748, 302, 198, 11748, 2298, 293, 198, 6738, 4096, 62, 22602, 13, 16624, 1330, 1635, 198, 11748, 1822, 29572, 628, 628, 628, 198, 361, 11593, 3672, 834, 6624, ...
2.637037
135
# Generated by Django 3.0.3 on 2020-11-03 07:43 from django.db import migrations
[ 2, 2980, 515, 416, 37770, 513, 13, 15, 13, 18, 319, 12131, 12, 1157, 12, 3070, 8753, 25, 3559, 198, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 628 ]
2.766667
30
import argparse import requests from os import getenv import sys from influxdb import InfluxDBClient from datetime import datetime, timedelta solaredge_api_url = "https://monitoringapi.solaredge.com" required_version = dict(release="1.0.0") if __name__ == "__main__": main()
[ 11748, 1822, 29572, 198, 11748, 7007, 198, 6738, 28686, 1330, 651, 24330, 198, 11748, 25064, 198, 198, 6738, 25065, 9945, 1330, 4806, 22564, 11012, 11792, 198, 6738, 4818, 8079, 1330, 4818, 8079, 11, 28805, 12514, 628, 198, 34453, 1144, 4...
3.020408
98
import urllib3 print(main())
[ 11748, 2956, 297, 571, 18, 198, 198, 4798, 7, 12417, 28955, 198 ]
2.5
12
from lib.dynamo.client import DynamoClientManager async def table_exists(name: str) -> bool: """Check if table exists.""" async with DynamoClientManager() as dynamodb: try: await dynamodb.describe_table(TableName=name) except dynamodb.exceptions.ResourceNotFoundException: ...
[ 6738, 9195, 13, 67, 4989, 78, 13, 16366, 1330, 41542, 11792, 13511, 628, 198, 292, 13361, 825, 3084, 62, 1069, 1023, 7, 3672, 25, 965, 8, 4613, 20512, 25, 198, 220, 220, 220, 37227, 9787, 611, 3084, 7160, 526, 15931, 198, 220, 220, ...
2.501923
520
import numpy as np import torch from lib.models.backbone.models.hypernet import _gen_supernet def build_supernet_DP(flops_maximum=600): """Backbone with Dynamic output position""" set_seed() model, sta_num, size_factor = _gen_supernet( flops_minimum=0, flops_maximum=flops_maximum, ...
[ 11748, 299, 32152, 355, 45941, 198, 11748, 28034, 198, 6738, 9195, 13, 27530, 13, 1891, 15992, 13, 27530, 13, 49229, 3262, 1330, 4808, 5235, 62, 16668, 3262, 628, 628, 198, 4299, 1382, 62, 16668, 3262, 62, 6322, 7, 2704, 2840, 62, 470...
2.194853
272
"Utilities for asking for and processing Morse Code signals." from typing import Final from ktane import ask __all__ = ["valid_morse", "decode", "ask_word"] MORSE_ALPHABET: Final = { "a": ".-", "b": "-...", "c": "-.-.", "d": "-..", "e": ".", "f": "..-.", "g": "--.", "h": "....", ...
[ 1, 18274, 2410, 329, 4737, 329, 290, 7587, 44049, 6127, 10425, 526, 198, 198, 6738, 19720, 1330, 8125, 198, 198, 6738, 479, 83, 1531, 1330, 1265, 198, 198, 834, 439, 834, 796, 14631, 12102, 62, 4491, 325, 1600, 366, 12501, 1098, 1600,...
2.08953
659
import npyscreen import pyperclip import createVm import main import popup import selectableGrid import virtualMachine
[ 11748, 45941, 28349, 1361, 198, 11748, 12972, 525, 15036, 198, 198, 11748, 2251, 53, 76, 198, 11748, 1388, 198, 11748, 46207, 198, 11748, 2922, 540, 41339, 198, 11748, 7166, 37573, 198 ]
3.870968
31
import hashlib import socket import unittest from io import BytesIO from os import remove as rm from os.path import exists from time import sleep import tests.test_helpers as h if __name__ == '__main__': unittest.main()
[ 11748, 12234, 8019, 198, 11748, 17802, 198, 11748, 555, 715, 395, 198, 6738, 33245, 1330, 2750, 4879, 9399, 198, 6738, 28686, 1330, 4781, 355, 42721, 198, 6738, 28686, 13, 6978, 1330, 7160, 198, 6738, 640, 1330, 3993, 198, 198, 11748, 5...
3.150685
73
#!/usr/bin/env python2.7 import sys import pymongo import os import click import datetime import rvo.utils as utils from rvo import __version__ import rvo.config command_folder = os.path.join(os.path.dirname(__file__), 'commands') CONTEXT_SETTINGS = dict(help_option_names=['-h', '--help']) # rvo command class # bas...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 17, 13, 22, 198, 198, 11748, 25064, 198, 11748, 279, 4948, 25162, 198, 11748, 28686, 198, 11748, 3904, 198, 11748, 4818, 8079, 198, 11748, 374, 13038, 13, 26791, 355, 3384, 4487, 198, 6738, ...
2.488294
299
# -*- coding: utf-8 -*- """ This module contains variables that can be changed, but are not exposed to non-expert users. """ import os import multiprocessing #============================================================================== #============================================================================== ...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 198, 1212, 8265, 4909, 9633, 326, 460, 307, 3421, 11, 475, 389, 407, 7362, 284, 1729, 12, 1069, 11766, 2985, 13, 198, 37811, 198, 11748, 28686, 198, 11748, 18540,...
4.16323
582
from django.conf import settings from django.core.validators import MaxValueValidator, MinValueValidator from django.db import models STATE_CHOICES = ((settings.NC_KEY, "North Carolina"),) STATUS_CHOICES = ( ("running", "Running"), ("error", "Error"), ("finished", "Finished"), ) GEOGRAPHY_CHOICES = ( ...
[ 6738, 42625, 14208, 13, 10414, 1330, 6460, 198, 6738, 42625, 14208, 13, 7295, 13, 12102, 2024, 1330, 5436, 11395, 47139, 1352, 11, 1855, 11395, 47139, 1352, 198, 6738, 42625, 14208, 13, 9945, 1330, 4981, 198, 198, 44724, 62, 44899, 34444,...
2.791045
134
from __future__ import absolute_import import cStringIO import types __name__ = 'pyrehol' __author__ = 'James Brown <jbrown@uber.com>' version_info = (0, 3) __version__ = '.'.join(map(str, version_info)) INDENT_CHAR = ' ' PREDEFINED_SERVICES = frozenset([ 'any', 'anystateless', 'all', 'AH', 'apcupsd', 'apc...
[ 6738, 11593, 37443, 834, 1330, 4112, 62, 11748, 198, 198, 11748, 269, 10100, 9399, 198, 11748, 3858, 198, 198, 834, 3672, 834, 796, 705, 9078, 260, 3937, 6, 198, 834, 9800, 834, 796, 705, 14731, 4373, 1279, 73, 33282, 31, 18478, 13, ...
2.185524
1,423
# Tests (scarce) for win32print module import os import unittest import win32print as wprn if __name__ == "__main__": unittest.main()
[ 2, 30307, 357, 13034, 344, 8, 329, 1592, 2624, 4798, 8265, 198, 198, 11748, 28686, 198, 11748, 555, 715, 395, 198, 198, 11748, 1592, 2624, 4798, 355, 266, 1050, 77, 628, 198, 198, 361, 11593, 3672, 834, 6624, 366, 834, 12417, 834, 1...
2.648148
54
#!/usr/bin/env python3 """ Create dataset and experiments. A dataset is a directory with subdirectories, one subdir per class. An experiment is a directory subdirectories, one subdir per participant. """ import os from os.path import join as pjoin from os import listdir as ld import numpy as np import shutil import s...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 198, 37811, 198, 16447, 27039, 290, 10256, 13, 198, 32, 27039, 318, 257, 8619, 351, 850, 12942, 1749, 11, 530, 850, 15908, 583, 1398, 13, 198, 2025, 6306, 318, 257, 8619, 850, 12...
1.95807
1,741
# -*- coding: utf-8 -*- """ MIT License Copyright (c) 2017-2018 Roxanne Gibson 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...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 37811, 198, 36393, 13789, 198, 198, 15269, 357, 66, 8, 2177, 12, 7908, 34821, 21952, 20400, 198, 198, 5990, 3411, 318, 29376, 7520, 11, 1479, 286, 3877, 11, 284, ...
3.165289
726
""" Slack Bot Untrack Command """ import logging from ebr_trackerbot.bot import register_command, get_storage def untrack_command(text, result, payload, config, commands): """ Slack Bot Untrack Command """ logging.debug("Untrack command") test = result.group(1) get_storage()["delete_for_user"...
[ 37811, 198, 11122, 441, 18579, 26970, 39638, 9455, 198, 37811, 198, 11748, 18931, 198, 6738, 304, 1671, 62, 2213, 10735, 13645, 13, 13645, 1330, 7881, 62, 21812, 11, 651, 62, 35350, 628, 198, 4299, 1418, 39638, 62, 21812, 7, 5239, 11, ...
2.782443
262
# EGM skimmer # Author: Rafael Lopes de Sa import FWCore.ParameterSet.Config as cms # Run with the 2017 detector from Configuration.Eras.Era_Run2_2017_cff import Run2_2017 process = cms.Process('SKIM',Run2_2017) # Import the standard packages for reconstruction and digitization process.load('Configuration.StandardSe...
[ 2, 412, 15548, 1341, 10957, 198, 2, 6434, 25, 31918, 406, 13920, 390, 10318, 198, 198, 11748, 48849, 14055, 13, 36301, 7248, 13, 16934, 355, 269, 907, 198, 198, 2, 5660, 351, 262, 2177, 31029, 198, 6738, 28373, 13, 36, 8847, 13, 36,...
1.878007
4,074
""" """ import unittest from runesanalyzer import data __author__ = ["Clément Besnier <clemsciences@aol.com>", ]
[ 37811, 198, 198, 37811, 198, 198, 11748, 555, 715, 395, 198, 6738, 32326, 38200, 9107, 1330, 1366, 198, 198, 834, 9800, 834, 796, 14631, 2601, 2634, 434, 30837, 77, 959, 1279, 2375, 907, 979, 3007, 31, 64, 349, 13, 785, 29, 1600, 23...
2.659091
44
""" spec_uploader.py A tool for uploading apigee specs Usage: spec_uploader.py <apigee_org> <specs_dir> -u <username> -p <password> [-t <apigee_token>] spec_uploader.py (-h | --help) Options: -h --help Show this screen -u Which username to log in with -p Password for login -t Acc...
[ 37811, 198, 16684, 62, 25850, 263, 13, 9078, 198, 198, 32, 2891, 329, 33794, 2471, 328, 1453, 25274, 198, 198, 28350, 25, 198, 220, 1020, 62, 25850, 263, 13, 9078, 1279, 499, 328, 1453, 62, 2398, 29, 1279, 4125, 6359, 62, 15908, 29,...
2.411017
472
from .simple import ( SimpleNER, SimpleMultiLabel, SimpleClassification, ) from .simple_t5 import SimpleT5
[ 6738, 764, 36439, 1330, 357, 198, 220, 220, 220, 17427, 21479, 11, 198, 220, 220, 220, 17427, 29800, 33986, 11, 198, 220, 220, 220, 17427, 9487, 2649, 11, 198, 8, 198, 6738, 764, 36439, 62, 83, 20, 1330, 17427, 51, 20, 198 ]
2.833333
42
import argparse from allennlp.common.params import Params from allennlp.data.dataset_readers.dataset_reader import DatasetReader from allennlp.models.archival import load_archive from summarus.readers import * if __name__ == "__main__": parser = argparse.ArgumentParser() parser.add_argument('--archive-file...
[ 11748, 1822, 29572, 198, 198, 6738, 477, 1697, 34431, 13, 11321, 13, 37266, 1330, 2547, 4105, 198, 6738, 477, 1697, 34431, 13, 7890, 13, 19608, 292, 316, 62, 961, 364, 13, 19608, 292, 316, 62, 46862, 1330, 16092, 292, 316, 33634, 198,...
2.878307
189
__author__ = 'sabe6191' import json import datetime from tempest.common import rest_client
[ 834, 9800, 834, 796, 705, 82, 11231, 21, 26492, 6, 198, 198, 11748, 33918, 198, 11748, 4818, 8079, 198, 198, 6738, 20218, 395, 13, 11321, 1330, 1334, 62, 16366, 198 ]
3.1
30
#!/usr/local/bin/python3 # -*- coding: utf-8 -*- """ Date: 2019/11/27 Author: Xiao-Le Deng Email: xiaoledeng at gmail.com Function: remove duplicates in a given list """ # List1 = [1,1,1] # List2 = ["John","John","John","Mark","David","David","Shalom","Shalom","Shalom"] # print(list_remove_duplicate(List1)) # print...
[ 2, 48443, 14629, 14, 12001, 14, 8800, 14, 29412, 18, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 220, 220, 198, 37811, 198, 10430, 25, 13130, 14, 1157, 14, 1983, 198, 13838, 25, 28249, 12, 3123, 41985, 198, 1533...
2.48227
141
from django.test import TestCase from django.contrib.auth.models import User from .models import healthservices,neighbourhood import datetime as dt # Create your tests here.
[ 6738, 42625, 14208, 13, 9288, 1330, 6208, 20448, 198, 6738, 42625, 14208, 13, 3642, 822, 13, 18439, 13, 27530, 1330, 11787, 198, 6738, 764, 27530, 1330, 1535, 30416, 11, 710, 394, 6084, 2894, 198, 198, 11748, 4818, 8079, 355, 288, 83, ...
3.591837
49
#!/usr/bin/env python from codecs import open from ez_setup import use_setuptools use_setuptools() from setuptools import setup import re main_py = open('morfessor/__init__.py', encoding='utf-8').read() metadata = dict(re.findall("__([a-z]+)__ = '([^']+)'", main_py)) requires = [ # 'progressbar', ] setup(na...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 198, 6738, 40481, 82, 1330, 1280, 198, 6738, 304, 89, 62, 40406, 1330, 779, 62, 2617, 37623, 10141, 198, 1904, 62, 2617, 37623, 10141, 3419, 198, 198, 6738, 900, 37623, 10141, 1330, 90...
2.264815
540
# -*- coding: utf-8 -*- from yapconf.docs import build_markdown_table # flake8: noqa
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 6738, 331, 499, 10414, 13, 31628, 1330, 1382, 62, 4102, 2902, 62, 11487, 628, 198, 2, 781, 539, 23, 25, 645, 20402, 628 ]
2.342105
38
# --depends-on channel_access # --depends-on check_mode # --depends-on commands # --depends-on permissions import enum from src import ModuleManager, utils
[ 2, 1377, 10378, 2412, 12, 261, 6518, 62, 15526, 198, 2, 1377, 10378, 2412, 12, 261, 2198, 62, 14171, 198, 2, 1377, 10378, 2412, 12, 261, 9729, 198, 2, 1377, 10378, 2412, 12, 261, 21627, 198, 198, 11748, 33829, 198, 198, 6738, 12351,...
3.09434
53
import binascii import csv import gzip import io import sys from sqlalchemy import MetaData, Table from pytest_mock_resources.compat import boto3 def _parse_s3_command(statement): """Format, Parse and call patched 'COPY' command.""" statement = strip(statement) params = dict() # deleting copy ...
[ 11748, 9874, 292, 979, 72, 198, 11748, 269, 21370, 198, 11748, 308, 13344, 198, 11748, 33245, 198, 11748, 25064, 198, 198, 6738, 44161, 282, 26599, 1330, 30277, 6601, 11, 8655, 198, 198, 6738, 12972, 9288, 62, 76, 735, 62, 37540, 13, ...
2.170991
2,544
from flask import Flask from flask_sqlalchemy import SQLAlchemy from flask_login import LoginManager from flask_bcrypt import Bcrypt from iotools.config import Config db = SQLAlchemy() bcrypt = Bcrypt() login_manager = LoginManager() login_manager.login_view = 'sessions.login' login_manager.login_message_category = '...
[ 6738, 42903, 1330, 46947, 198, 6738, 42903, 62, 25410, 282, 26599, 1330, 16363, 2348, 26599, 198, 6738, 42903, 62, 38235, 1330, 23093, 13511, 198, 6738, 42903, 62, 15630, 6012, 1330, 347, 29609, 198, 6738, 1312, 313, 10141, 13, 11250, 133...
3.478723
94