content
stringlengths
1
1.04M
input_ids
listlengths
1
774k
ratio_char_token
float64
0.38
22.9
token_count
int64
1
774k
#TESTS is a dict with all you tests. #Keys for this will be categories' names. #Each test is dict with # "input" -- input data for user function # "answer" -- your right answer # "explanation" -- not necessary key, it's using for additional info in animation. TESTS = { "1. Small By Hand 1 (Example)": [ { ...
[ 2, 51, 1546, 4694, 318, 257, 8633, 351, 477, 345, 5254, 13, 198, 2, 40729, 329, 428, 481, 307, 9376, 6, 3891, 13, 198, 2, 10871, 1332, 318, 8633, 351, 198, 2, 197, 1, 15414, 1, 1377, 5128, 1366, 329, 2836, 2163, 198, 2, 197, 1...
1.607461
9,543
# Generated by Django 2.0 on 2018-02-24 15:05 from django.db import migrations, models import django.db.models.deletion
[ 2, 2980, 515, 416, 37770, 362, 13, 15, 319, 2864, 12, 2999, 12, 1731, 1315, 25, 2713, 198, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 11, 4981, 198, 11748, 42625, 14208, 13, 9945, 13, 27530, 13, 2934, 1616, 295, 628 ]
2.904762
42
from .attrdict import AttrDict from .magic import mproperty, magic_tuple __version__ = (0, 1, 0) __all__ = ('AttrDict', 'mproperty', 'magic_tuple')
[ 6738, 764, 1078, 4372, 713, 1330, 3460, 81, 35, 713, 198, 6738, 764, 32707, 1330, 285, 26745, 11, 5536, 62, 83, 29291, 198, 198, 834, 9641, 834, 796, 357, 15, 11, 352, 11, 657, 8, 198, 198, 834, 439, 834, 796, 19203, 8086, 81, 3...
2.586207
58
# # PySNMP MIB module CISCO-WAN-ATM-CONN-STAT-CAPABILITY (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/CISCO-WAN-ATM-CONN-STAT-CAPABILITY # Produced by pysmi-0.3.4 at Mon Apr 29 18:03:46 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using...
[ 2, 198, 2, 9485, 15571, 7378, 337, 9865, 8265, 36159, 8220, 12, 54, 1565, 12, 1404, 44, 12, 10943, 45, 12, 35744, 12, 33177, 32, 25382, 357, 4023, 1378, 16184, 76, 489, 8937, 13, 785, 14, 79, 893, 11632, 8, 198, 2, 7054, 45, 13,...
2.469314
1,662
import os import pathlib import pandas as pd import pyarrow as pa import pyarrow.parquet as pq from matching.partition import get_args, partition_data
[ 11748, 28686, 198, 11748, 3108, 8019, 198, 198, 11748, 19798, 292, 355, 279, 67, 198, 11748, 12972, 6018, 355, 14187, 198, 11748, 12972, 6018, 13, 1845, 21108, 355, 279, 80, 198, 198, 6738, 12336, 13, 3911, 653, 1330, 651, 62, 22046, ...
3.297872
47
import pandas as pd import numpy as np import copy from sklearn.naive_bayes import GaussianNB from sklearn.model_selection import cross_val_score, train_test_split, GridSearchCV from sklearn.feature_selection import mutual_info_classif, SelectKBest import matplotlib.pyplot as plt from sklearn import svm from sk...
[ 11748, 19798, 292, 355, 279, 67, 201, 198, 11748, 299, 32152, 355, 45941, 201, 198, 11748, 4866, 201, 198, 6738, 1341, 35720, 13, 2616, 425, 62, 24406, 274, 1330, 12822, 31562, 32819, 201, 198, 6738, 1341, 35720, 13, 19849, 62, 49283, ...
2.849363
3,140
import xarray as xr from climate_toolbox.utils.utils import * def standardize_climate_data(ds): """ Read climate data and standardize units to: - lon and lat, - lon to -180 to 180 and Parameters ---------- ds: xr.Dataset Returns ------- xr.Dataset """ ds = ...
[ 11748, 2124, 18747, 355, 2124, 81, 198, 198, 6738, 4258, 62, 25981, 3524, 13, 26791, 13, 26791, 1330, 1635, 628, 198, 4299, 3210, 1096, 62, 42570, 62, 7890, 7, 9310, 2599, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 4149, 4258, 1...
2.339695
524
import re from json import * import requests import StaticVars from OverleafDownloaderException import OverleafDownloaderException
[ 11748, 302, 198, 6738, 33918, 1330, 1635, 198, 11748, 7007, 198, 198, 11748, 36125, 53, 945, 198, 6738, 3827, 33201, 10002, 263, 16922, 1330, 3827, 33201, 10002, 263, 16922, 628 ]
4.433333
30
from setuptools import setup, find_packages setup( name='jupyterhub-canvasauthenticator', version='0.1dev', python_requires='>=3.5', packages=find_packages(), install_requires=[ 'oauthenticator', ] )
[ 6738, 900, 37623, 10141, 1330, 9058, 11, 1064, 62, 43789, 198, 198, 40406, 7, 198, 220, 220, 220, 1438, 11639, 73, 929, 88, 353, 40140, 12, 5171, 11017, 41299, 26407, 3256, 198, 220, 220, 220, 2196, 11639, 15, 13, 16, 7959, 3256, 19...
2.452632
95
import json import os def load_fixture(path): """Load a JSON fixture given a relative path to it.""" if not path.endswith('.json'): path += '.json' # Build the absolute path to the fixture. path = os.path.join( os.path.dirname(__file__), 'fixtures', path, ) ...
[ 11748, 33918, 198, 11748, 28686, 628, 198, 198, 4299, 3440, 62, 69, 9602, 7, 6978, 2599, 198, 220, 220, 220, 37227, 8912, 257, 19449, 29220, 1813, 257, 3585, 3108, 284, 340, 526, 15931, 628, 220, 220, 220, 611, 407, 3108, 13, 437, 2...
2.335404
161
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations, models from postgresqleu.util.fields import LowercaseEmailField
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 6738, 11593, 37443, 834, 1330, 28000, 1098, 62, 17201, 874, 198, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 11, 4981, 198, 6738, 1281, 34239, 80, 293, 84, 13, ...
3.09434
53
import copy import datetime import jwt import pytest from lms.validation.authentication._helpers import _jwt
[ 11748, 4866, 198, 11748, 4818, 8079, 198, 198, 11748, 474, 46569, 198, 11748, 12972, 9288, 198, 198, 6738, 300, 907, 13, 12102, 341, 13, 41299, 3299, 13557, 16794, 364, 1330, 4808, 73, 46569, 628, 198 ]
3.228571
35
import unittest import norwegian_numbers.__main__ as internal
[ 11748, 555, 715, 395, 198, 11748, 4249, 20684, 62, 77, 17024, 13, 834, 12417, 834, 355, 5387, 628 ]
3.5
18
import scrapy from scrapy.http import request
[ 11748, 15881, 88, 198, 6738, 15881, 88, 13, 4023, 1330, 2581, 628 ]
3.916667
12
from django.test import TestCase from zentral.core.events import event_types from zentral.core.events.base import EventMetadata from zentral.core.probes.base import PayloadFilter from zentral.core.probes.models import ProbeSource from tests.inventory.utils import MockMetaMachine payload_template = { "unattended":...
[ 6738, 42625, 14208, 13, 9288, 1330, 6208, 20448, 198, 6738, 1976, 298, 1373, 13, 7295, 13, 31534, 1330, 1785, 62, 19199, 198, 6738, 1976, 298, 1373, 13, 7295, 13, 31534, 13, 8692, 1330, 8558, 9171, 14706, 198, 6738, 1976, 298, 1373, 1...
2.537037
270
import unittest from knwopt.dispatcher import dispatcher
[ 11748, 555, 715, 395, 198, 6738, 638, 86, 8738, 13, 6381, 8071, 2044, 1330, 49952 ]
3.733333
15
from distutils.command.build_ext import build_ext from distutils.errors import (CCompilerError, DistutilsExecError, DistutilsPlatformError) from setuptools import Extension, setup try: from Cython.Build import cythonize USE_CYTHON = True except ImportError: USE_CYTHON = False...
[ 6738, 1233, 26791, 13, 21812, 13, 11249, 62, 2302, 1330, 1382, 62, 2302, 198, 6738, 1233, 26791, 13, 48277, 1330, 357, 4093, 3361, 5329, 12331, 11, 4307, 26791, 23002, 12331, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, ...
2.800554
361
# coding: utf-8 # # Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file # except in compliance with the License. A copy of the License is located at # # http://aws.amazon.com/apache2.0/ # # or in the "lice...
[ 2, 19617, 25, 3384, 69, 12, 23, 198, 198, 2, 198, 2, 15069, 13130, 6186, 13, 785, 11, 3457, 13, 393, 663, 29116, 13, 1439, 6923, 33876, 13, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, ...
3.079348
920
# -*- coding: utf-8 -*- import httplib2 from apiclient.discovery import build from oauth2client.client import flow_from_clientsecrets from oauth2client.file import Storage from oauth2client.tools import run import base64 from email.mime.audio import MIMEAudio from email.mime.base import MIMEBase from email.mime.image ...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 11748, 1841, 489, 571, 17, 198, 198, 6738, 2471, 291, 75, 1153, 13, 67, 40821, 1330, 1382, 198, 6738, 267, 18439, 17, 16366, 13, 16366, 1330, 5202, 62, 6738, 62, 16366...
2.510471
1,146
# import the necessary packages from threading import Thread import cv2, time from FLIR_pubsub.FLIR_client_utils import * class Flir_VideoStream: """ Maintain live FLIRCam feed without buffering. """ def __init__(self, src=0, name="FlirVideoStream", verbose = False): """ src: the path to an RTSP server. sh...
[ 2, 1330, 262, 3306, 10392, 198, 6738, 4704, 278, 1330, 14122, 198, 198, 11748, 269, 85, 17, 11, 640, 198, 6738, 9977, 4663, 62, 12984, 7266, 13, 3697, 4663, 62, 16366, 62, 26791, 1330, 1635, 198, 198, 4871, 1610, 343, 62, 10798, 121...
2.684573
726
from output.models.sun_data.ctype.p_substitutions.p_substitutions00101m.p_substitutions00101m_xsd.p_substitutions00101m import ( A, B, C, E, ) __all__ = [ "A", "B", "C", "E", ]
[ 6738, 5072, 13, 27530, 13, 19155, 62, 7890, 13, 310, 2981, 13, 79, 62, 7266, 301, 270, 3508, 13, 79, 62, 7266, 301, 270, 3508, 8298, 486, 76, 13, 79, 62, 7266, 301, 270, 3508, 8298, 486, 76, 62, 87, 21282, 13, 79, 62, 7266, 30...
1.794872
117
# %% import subprocess import sys from networkx.algorithms.bipartite.basic import color reqs = subprocess.check_output([sys.executable, '-m', 'pip', 'freeze']) installed_packages = [r.decode().split('==')[0] for r in reqs.split()] if not 'matplotlib' in installed_packages: subprocess.run('pip install matplotlib', ...
[ 2, 43313, 198, 11748, 850, 14681, 198, 11748, 25064, 198, 198, 6738, 3127, 87, 13, 282, 7727, 907, 13, 65, 541, 433, 578, 13, 35487, 1330, 3124, 198, 42180, 82, 796, 850, 14681, 13, 9122, 62, 22915, 26933, 17597, 13, 18558, 18187, 1...
1.991919
990
###################################################################### # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. # # SPDX-License-Identifier: MIT-0 # ###################################################################### import os import torch import torch...
[ 29113, 29113, 4242, 2235, 198, 2, 15069, 6186, 13, 785, 11, 3457, 13, 393, 663, 29116, 13, 1439, 6923, 33876, 13, 1303, 198, 2, 30628, 55, 12, 34156, 12, 33234, 7483, 25, 17168, 12, 15, 220, 220, 220, 220, 220, 220, 220, 220, 220,...
2.744526
822
# 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, software # distrib...
[ 2, 220, 220, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 345, 743, 198, 2, 220, 220, 407, 779, 428, 2393, 2845, 287, 11846, 351, 262, 13789, 13, 921, 743, 7330, 198, 2, 220, 220, 257, 4866,...
2.358707
959
import os import re from pytorch_lightning.utilities import rank_zero_warn, rank_zero_only from pytorch_lightning.callbacks import ModelCheckpoint import torch import omlet.utils as U from typing import Optional from . import omlet_logger as _log
[ 11748, 28686, 198, 11748, 302, 198, 6738, 12972, 13165, 354, 62, 2971, 768, 13, 315, 2410, 1330, 4279, 62, 22570, 62, 40539, 11, 4279, 62, 22570, 62, 8807, 198, 6738, 12972, 13165, 354, 62, 2971, 768, 13, 13345, 10146, 1330, 9104, 978...
3.444444
72
import zlib import os import sys import re ''' 동화나라 침공 계획 동화나라 추출기 5판 2021년 04월 30일 ''' print('동화나라 추출기 5판') print('2021년 04월 30일') 입력받은파일경로 = sys.argv[1] 메인프로그램(입력받은파일경로) ''' def search(dirname): for (path, dir, files) in os.walk(dirname): for filename in files: ex...
[ 11748, 1976, 8019, 220, 201, 198, 11748, 28686, 201, 198, 11748, 25064, 201, 198, 11748, 302, 201, 198, 7061, 6, 201, 198, 167, 237, 247, 169, 247, 242, 167, 224, 246, 167, 251, 120, 23821, 117, 101, 166, 111, 113, 220, 166, 111, ...
1.200903
443
# This file is dual licensed under the terms of the Apache License, Version # 2.0, and the BSD License. See the LICENSE file in the root of this repository # for complete details. INCLUDES = """ #include <openssl/ssl.h> /* * This is part of a work-around for the difficulty cffi has in dealing with * `STACK_OF(foo)...
[ 2, 770, 2393, 318, 10668, 11971, 739, 262, 2846, 286, 262, 24843, 13789, 11, 10628, 198, 2, 362, 13, 15, 11, 290, 262, 347, 10305, 13789, 13, 4091, 262, 38559, 24290, 2393, 287, 262, 6808, 286, 428, 16099, 198, 2, 329, 1844, 3307, ...
2.112008
4,089
if __name__ == "__main__": import sys, os ioutputs = [42, 48, 60, 70, 80, 90, 100, 106] NN = int(sys.argv[1]) weights_fname = "/lustre/scratch/astro/ds381/simulations/baryfrac/bc03_fesc2_nohm/neural-net2/NN%i.weights" % NN # weights_fname = "/lustre/scratch/astro/ds381/simulations/baryfrac/bc03_f...
[ 198, 198, 361, 11593, 3672, 834, 6624, 366, 834, 12417, 834, 1298, 198, 220, 220, 220, 1330, 25064, 11, 28686, 198, 220, 220, 220, 1312, 22915, 82, 796, 685, 3682, 11, 4764, 11, 3126, 11, 4317, 11, 4019, 11, 4101, 11, 1802, 11, 15...
2.166969
551
from collections import namedtuple import dataclasses Asset = namedtuple("Asset", ["namespace", "app_name", "catalog_id"]) CatalogItem = namedtuple("CatalogItem", ["id", "title", "categories"]) @dataclasses.dataclass @dataclasses.dataclass
[ 6738, 17268, 1330, 3706, 83, 29291, 198, 11748, 4818, 330, 28958, 198, 198, 45869, 796, 3706, 83, 29291, 7203, 45869, 1600, 14631, 14933, 10223, 1600, 366, 1324, 62, 3672, 1600, 366, 9246, 11794, 62, 312, 8973, 8, 198, 49015, 7449, 796,...
3.05
80
import csv import matplotlib.pyplot as plt import datetime import numpy as np plt.style.use('ggplot') age_data = './coronavirus-data-master/archive/case-hosp-death.csv' txt = [] with open(age_data, 'r', newline='') as file: reader = csv.reader(file) for line in reader: txt.append(line) header = txt[...
[ 11748, 269, 21370, 198, 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 198, 11748, 4818, 8079, 198, 11748, 299, 32152, 355, 45941, 198, 198, 489, 83, 13, 7635, 13, 1904, 10786, 1130, 29487, 11537, 198, 198, 496, 62, 7890, 79...
1.982587
804
from tensorflow.keras import Input from tensorflow.keras.layers import Dropout, Dense from tensorflow.keras.optimizers import Adam from tensorflow.keras import regularizers from tensorflow.keras.losses import SparseCategoricalCrossentropy from graphgallery.nn.layers.tensorflow import GraphEdgeConvolution, Gather from ...
[ 6738, 11192, 273, 11125, 13, 6122, 292, 1330, 23412, 198, 6738, 11192, 273, 11125, 13, 6122, 292, 13, 75, 6962, 1330, 14258, 448, 11, 360, 1072, 198, 6738, 11192, 273, 11125, 13, 6122, 292, 13, 40085, 11341, 1330, 7244, 198, 6738, 111...
3.393162
117
import logging import test_wrap @test_wrap.timeCountWrapper @test_wrap.setupConfigsWrapper @test_wrap.loopAntennaWrapper @test_wrap.loopPowerWrapper @test_wrap.loopChannelWrapper logging.basicConfig(level=logging.INFO) logging.info('Start~') res = method_run(logging) print(len(res)) print(res)
[ 11748, 18931, 198, 11748, 1332, 62, 37150, 628, 198, 31, 9288, 62, 37150, 13, 2435, 12332, 36918, 2848, 198, 31, 9288, 62, 37150, 13, 40406, 16934, 82, 36918, 2848, 198, 31, 9288, 62, 37150, 13, 26268, 13217, 13713, 36918, 2848, 198, ...
2.794393
107
# ZUBSPOIL # https://www.codechef.com/problems/ZUBSPOIL testCase = input() line2 = [int(i) for i in input().split()] array = [int(i) for i in input().split()] testList = [] for noOfTest in range(line2[1]): testList.append([int(i) for i in input().split()]) print ("Case: " + testCase) for k in range(len(testL...
[ 2, 1168, 10526, 4303, 49713, 198, 2, 3740, 1378, 2503, 13, 19815, 721, 258, 69, 13, 785, 14, 1676, 22143, 14, 57, 10526, 4303, 49713, 198, 220, 220, 220, 220, 198, 9288, 20448, 796, 5128, 3419, 198, 198, 1370, 17, 796, 685, 600, 7...
2.473054
167
from django.contrib import admin # Register your models here. from django.contrib import admin from TestModel.models import Test # Register your models here. admin.site.register(Test)
[ 6738, 42625, 14208, 13, 3642, 822, 1330, 13169, 198, 198, 2, 17296, 534, 4981, 994, 13, 628, 198, 6738, 42625, 14208, 13, 3642, 822, 1330, 13169, 198, 6738, 6208, 17633, 13, 27530, 1330, 6208, 198, 198, 2, 17296, 534, 4981, 994, 13, ...
3.666667
51
# -*- coding: utf-8 -*- import re from amplify.agent.common.util import subp from amplify.agent.common.context import context __author__ = "Mike Belov" __copyright__ = "Copyright (C) Nginx, Inc. All rights reserved." __license__ = "" __maintainer__ = "Mike Belov" __email__ = "dedm@nginx.com" DEFAULT_PREFIX = '/usr/l...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 11748, 302, 198, 198, 6738, 47366, 13, 25781, 13, 11321, 13, 22602, 1330, 22718, 198, 6738, 47366, 13, 25781, 13, 11321, 13, 22866, 1330, 4732, 198, 198, 834, 9800, 834,...
2.284228
2,403
from .classe_viagem import * from .passagem import * from .pessoa import *
[ 6738, 764, 565, 21612, 62, 8903, 363, 368, 1330, 1635, 198, 6738, 764, 6603, 363, 368, 1330, 1635, 198, 6738, 764, 79, 408, 12162, 1330, 1635, 198 ]
2.777778
27
from mcpi.minecraft import Minecraft mc = Minecraft.create() import pickle # Открываем файл и загружаем трехмерный список structure myFile = open("myFile.txt", "rb") structure = pickle.load(myFile) myFile.close() pos = mc.player.getTilePos() x = pos.x y = pos.y z = pos.z buildStructure(x, y, z, str...
[ 6738, 285, 13155, 72, 13, 17761, 1330, 24609, 201, 198, 23209, 796, 24609, 13, 17953, 3419, 201, 198, 11748, 2298, 293, 201, 198, 220, 220, 220, 220, 220, 220, 220, 220, 201, 198, 2, 12466, 252, 20375, 31583, 21169, 45035, 38857, 1614...
1.923977
171
''' Controls: To move your ship up and down, press and hold the up and down keys respectively. To fire a laser at enemy ships, press the space key. (Only one may be on screen at a time.) When the game has ended, press R to Restart the game. Your ship begins with 3 shields. After the 3 are depleted...
[ 7061, 6, 220, 198, 220, 220, 220, 36357, 25, 198, 220, 220, 220, 1675, 1445, 534, 4074, 510, 290, 866, 11, 1803, 290, 1745, 262, 510, 290, 866, 8251, 8148, 13, 198, 220, 220, 220, 1675, 2046, 257, 12855, 379, 4472, 7937, 11, 1803,...
3.402344
256
from typing import TYPE_CHECKING, Any, Dict, Optional, cast from cx_core.action_type.base import ActionType from cx_core.integration import EventData if TYPE_CHECKING: from cx_core.type_controller import Entity, TypeController
[ 6738, 19720, 1330, 41876, 62, 50084, 2751, 11, 4377, 11, 360, 713, 11, 32233, 11, 3350, 198, 198, 6738, 43213, 62, 7295, 13, 2673, 62, 4906, 13, 8692, 1330, 7561, 6030, 198, 6738, 43213, 62, 7295, 13, 18908, 1358, 1330, 8558, 6601, ...
3.441176
68
""" Entrt point for TwitOff""" from .app import create_app APP = create_app()
[ 37811, 7232, 17034, 966, 329, 1815, 270, 9362, 37811, 198, 6738, 764, 1324, 1330, 2251, 62, 1324, 198, 198, 24805, 796, 2251, 62, 1324, 3419, 628 ]
3.076923
26
from utils._texbasics import * from utils._validate import _validate_options from pandatex.pandatex import TexTable
[ 6738, 3384, 4487, 13557, 16886, 12093, 873, 1330, 1635, 198, 6738, 3384, 4487, 13557, 12102, 378, 1330, 4808, 12102, 378, 62, 25811, 198, 6738, 19798, 378, 87, 13, 79, 392, 378, 87, 1330, 3567, 10962 ]
3.285714
35
from flask import Flask, render_template, request, Blueprint from twit_app.models import User, Tweet, en, db from sklearn.linear_model import LogisticRegression import os, pickle import numpy as np from dotenv import load_dotenv load_dotenv() import tweepy apikey= os.environ.get('apikey') apipw = os.environ.get('apip...
[ 6738, 42903, 1330, 46947, 11, 8543, 62, 28243, 11, 2581, 11, 39932, 198, 6738, 665, 270, 62, 1324, 13, 27530, 1330, 11787, 11, 18752, 11, 551, 11, 20613, 198, 6738, 1341, 35720, 13, 29127, 62, 19849, 1330, 5972, 2569, 8081, 2234, 198,...
2.518293
328
from zorrom import mrom ''' The row and column decode logic should be up and right Reference https://siliconpr0n.org/map/sega/315-5571/mz_mit20x/ Rotate 90 CW to get expected rotation Think MB86233/MB86234 is the same layout '''
[ 6738, 1976, 273, 398, 1330, 285, 398, 198, 7061, 6, 198, 464, 5752, 290, 5721, 36899, 9156, 815, 307, 510, 290, 826, 198, 198, 26687, 198, 5450, 1378, 18217, 4749, 1050, 15, 77, 13, 2398, 14, 8899, 14, 325, 4908, 14, 27936, 12, 28...
2.9
80
from flask import Flask, render_template, request from threading import Thread from bokeh.embed import server_document from bokeh.server.server import Server from tornado.ioloop import IOLoop import sys sys.path.append("..") from Bokeh.Decision_Tree.Plot.plot_decision_tree import create_figure from Bokeh.K_Means.kmean...
[ 6738, 42903, 1330, 46947, 11, 8543, 62, 28243, 11, 2581, 198, 6738, 4704, 278, 1330, 14122, 198, 198, 6738, 1489, 365, 71, 13, 20521, 1330, 4382, 62, 22897, 198, 6738, 1489, 365, 71, 13, 15388, 13, 15388, 1330, 9652, 198, 6738, 33718,...
2.968454
317
from .arnparse import arnparse
[ 6738, 764, 1501, 29572, 1330, 610, 77, 29572, 198 ]
3.444444
9
##################################### ## Set Variable for Logger Path ##### from dataclasses import dataclass, field, asdict import os import json from typing import Iterator, List, Dict os.environ['KIVY_HOME'] = os.getcwd() import kivy.logger ################################### ## Kivy Import import kivy kivy.require...
[ 29113, 4242, 2, 198, 2235, 5345, 35748, 329, 5972, 1362, 10644, 46424, 198, 6738, 4818, 330, 28958, 1330, 220, 4818, 330, 31172, 11, 2214, 11, 355, 11600, 198, 11748, 28686, 198, 11748, 33918, 198, 6738, 19720, 1330, 40806, 1352, 11, 73...
3.578947
437
from .errors import MissingScriptError # from .registry import Component, get_script from .top import find_script from .decorators import Component from .util import autofill_args from omnibelt import get_printer prt = get_printer(__name__) @Component('run_mode/default') class Run_Mode: ''' Run mo...
[ 201, 198, 6738, 764, 48277, 1330, 25639, 7391, 12331, 201, 198, 2, 422, 764, 2301, 4592, 1330, 35100, 11, 651, 62, 12048, 201, 198, 6738, 764, 4852, 1330, 1064, 62, 12048, 201, 198, 6738, 764, 12501, 273, 2024, 1330, 35100, 201, 198, ...
2.883772
456
## This script open freeview with MRI images, MELD predictions and surfaces for quality check of segmentation ## To run : python new_pt_qc_script.py -id <sub_id> import os import sys import argparse import subprocess as sub import glob from meld_classifier.paths import MELD_DATA_PATH, FS_SUBJECTS_PATH if __nam...
[ 2235, 770, 4226, 1280, 1479, 1177, 351, 30278, 4263, 11, 337, 24639, 16277, 290, 16649, 329, 3081, 2198, 286, 10618, 341, 628, 198, 2235, 1675, 1057, 1058, 21015, 649, 62, 457, 62, 80, 66, 62, 12048, 13, 9078, 532, 312, 1279, 7266, ...
2.147037
1,333
import unittest # Time complexity: O(log(N)) # Space complexity: O(1) if __name__ == "__main__": unittest.main()
[ 11748, 555, 715, 395, 628, 628, 198, 2, 3862, 13357, 25, 440, 7, 6404, 7, 45, 4008, 198, 2, 4687, 13357, 25, 440, 7, 16, 8, 628, 198, 198, 361, 11593, 3672, 834, 6624, 366, 834, 12417, 834, 1298, 198, 220, 220, 220, 555, 715, ...
2.48
50
import os,sys sys.path.insert(0, "/mnt/f/dev/git/miRExplore/python/") import time from textdb.MiGenRelDB import MiGenRelDB from textdb.SentenceDB import SentenceDB from collections import defaultdict from natsort import natsorted sentDB, _ = SentenceDB.loadFromFile("./test/", "./development/pmid2sent", returnAll=T...
[ 11748, 28686, 11, 17597, 198, 198, 17597, 13, 6978, 13, 28463, 7, 15, 11, 12813, 76, 429, 14, 69, 14, 7959, 14, 18300, 14, 11632, 2200, 87, 489, 382, 14, 29412, 14, 4943, 198, 198, 11748, 640, 198, 198, 6738, 2420, 9945, 13, 41541...
2.155661
14,917
import pam_mujoco MUJOCO_ID = "pam_demos_contacts" ROBOT_SEGMENT_ID = "robot" BALL_SEGMENT_ID = "ball"
[ 11748, 279, 321, 62, 76, 23577, 25634, 198, 198, 42422, 41, 4503, 46, 62, 2389, 796, 366, 79, 321, 62, 9536, 418, 62, 3642, 8656, 1, 198, 49, 9864, 2394, 62, 5188, 38, 10979, 62, 2389, 796, 366, 305, 13645, 1, 198, 45463, 62, 51...
1.945455
55
from .datetime_picker import ( DatePickerWidget, DateTimePickerWidget, TimePickerWidget, ) from .file import BootstrapFileInputWidget from .numeric import ( NumericIntegerWidget, NumericPositiveIntegerWidget, NumericWidget, )
[ 6738, 764, 19608, 8079, 62, 79, 15799, 1330, 357, 198, 220, 220, 220, 7536, 47, 15799, 38300, 11, 7536, 7575, 47, 15799, 38300, 11, 3862, 47, 15799, 38300, 11, 198, 8, 198, 6738, 764, 7753, 1330, 18892, 26418, 8979, 20560, 38300, 198,...
3.295775
71
undefined for (i = 0; i < document.getElementsByTagName("code").length; i++) { console.log(document.getElementsByTagName("code")[i].innerText); }
[ 198, 917, 18156, 198, 1640, 357, 72, 796, 657, 26, 1312, 1279, 3188, 13, 1136, 36, 3639, 3886, 24835, 5376, 7203, 8189, 11074, 13664, 26, 1312, 29577, 1391, 220, 220, 220, 220, 8624, 13, 6404, 7, 22897, 13, 1136, 36, 3639, 3886, 248...
2.763636
55
#!/usr/bin/env python3 """ Evaluate the proximity of statements in pre-defined clusters. """ import json import logging import sys import warnings from pathlib import Path import numpy as np import tokenizers as tk import torch from theissues import clustering, training, utils def distances_euclid(x: np.ndarray, ...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 198, 37811, 198, 36, 2100, 4985, 262, 20387, 286, 6299, 287, 662, 12, 23211, 23163, 13, 198, 37811, 198, 198, 11748, 33918, 198, 11748, 18931, 198, 11748, 25064, 198, 11748, 14601, ...
2.722814
469
# -*- coding: utf-8 -*- # Copyright 2018 The Blueoil 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 # # Unles...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 15069, 2864, 383, 4518, 9437, 46665, 13, 1439, 6923, 33876, 13, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341,...
3.619681
376
# -*- coding: utf-8 -*- from __future__ import absolute_import from __future__ import division from __future__ import print_function import csv import numpy as np import os import sys from observations.util import maybe_download_and_extract def wage(path): """Mid-Atlantic Wage Data Wage and other data for a gr...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 6738, 11593, 37443, 834, 1330, 4112, 62, 11748, 198, 6738, 11593, 37443, 834, 1330, 7297, 198, 6738, 11593, 37443, 834, 1330, 3601, 62, 8818, 198, 198, 11748, 269, 21370, ...
2.709924
917
from django.db import models from django.contrib.auth.models import User GENDER_CHOICES = ( ('Male', 'Male'), ('Female', 'Female'), ('Not specified', 'Not specified') ) class UserProfile(models.Model): """ Model to store the user profile. """ user = models.OneToOneField(User, on_delete=mod...
[ 6738, 42625, 14208, 13, 9945, 1330, 4981, 198, 198, 6738, 42625, 14208, 13, 3642, 822, 13, 18439, 13, 27530, 1330, 11787, 628, 198, 38, 10619, 1137, 62, 44899, 34444, 796, 357, 198, 220, 220, 220, 19203, 25486, 3256, 705, 25486, 33809, ...
2.775744
437
import pytest import minid PROD_HDL = 'hdl:20.500.12582/prod_ident_xyz' TEST_HDL = 'hdl:20.500.12633/test_ident_xyz' PROD_MINID = 'minid:prod_ident_xyz' TEST_MINID = 'minid.test:test_ident_xyz' # The ordering is ('identifier', 'to_type', 'expected_result') VALID_MINID_TRANSLATIONS = [ (PROD_HDL, 'minid', PROD_MI...
[ 11748, 12972, 9288, 198, 198, 11748, 949, 312, 198, 198, 4805, 3727, 62, 10227, 43, 796, 705, 71, 25404, 25, 1238, 13, 4059, 13, 1065, 46044, 14, 1676, 67, 62, 738, 62, 5431, 89, 6, 198, 51, 6465, 62, 10227, 43, 796, 705, 71, 25...
2.052721
588
from selenium import webdriver from selenium.webdriver.common.by import By import os # This can be tested at heroku.com in 'Run console' with command: python webscraper.py chrome_options = webdriver.ChromeOptions() chrome_options.add_argument("--headless") chrome_options.add_argument("--disable-dev-shm-usage") chrome_...
[ 6738, 384, 11925, 1505, 1330, 3992, 26230, 198, 6738, 384, 11925, 1505, 13, 12384, 26230, 13, 11321, 13, 1525, 1330, 2750, 198, 11748, 28686, 198, 2, 770, 460, 307, 6789, 379, 4293, 23063, 13, 785, 287, 705, 10987, 8624, 6, 351, 3141,...
2.57594
665
# https://leetcode.com/problems/continuous-subarray-sum from itertools import accumulate from collections import defaultdict
[ 2, 3740, 1378, 293, 316, 8189, 13, 785, 14, 1676, 22143, 14, 18487, 5623, 12, 7266, 18747, 12, 16345, 198, 198, 6738, 340, 861, 10141, 1330, 29915, 198, 6738, 17268, 1330, 4277, 11600, 628 ]
3.735294
34
# GENERATED BY KOMAND SDK - DO NOT EDIT import insightconnect_plugin_runtime import json
[ 2, 24700, 1137, 11617, 11050, 509, 2662, 6981, 26144, 532, 8410, 5626, 48483, 198, 11748, 11281, 8443, 62, 33803, 62, 43282, 198, 11748, 33918, 628, 198, 220, 220, 220, 220, 198, 220, 220, 220, 220, 628 ]
2.833333
36
# -*- coding: utf-8 -*- import logging from channels import Group from channels.generic.websockets import JsonWebsocketConsumer from django.contrib import messages from edd import utilities from .backend import DefaultBroker logger = logging.getLogger(__name__) class NotifySubscribeConsumer(JsonWebsocketConsumer...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 11748, 18931, 198, 198, 6738, 9619, 1330, 4912, 198, 6738, 9619, 13, 41357, 13, 732, 1443, 11603, 1330, 449, 1559, 1135, 1443, 5459, 49106, 198, 6738, 42625, 14208, ...
3.235294
170
import numpy as np from PyAstronomy import pyasl from PyAstronomy.pyaC import pyaErrors as PE def stringlength_norm(m, norm): """ Normalize string length data set. Parameters ---------- m : array Data array norm : string, {default, no} If 'default' (default), the data poin...
[ 11748, 299, 32152, 355, 45941, 198, 6738, 9485, 33751, 1313, 9145, 1330, 12972, 292, 75, 198, 6738, 9485, 33751, 1313, 9145, 13, 79, 3972, 34, 1330, 279, 3972, 9139, 5965, 355, 18468, 220, 198, 198, 4299, 4731, 13664, 62, 27237, 7, 76...
2.28337
1,828
# -*- coding: utf-8 -*- import fabric from fabric.api import run import fabtools
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 11748, 9664, 198, 6738, 9664, 13, 15042, 1330, 1057, 198, 11748, 7843, 31391, 628, 198 ]
2.8
30
# fmt: off PINKFILE = """ UklGRvIEAgBXQVZFZm10IBAAAAABAAEAIlYAAESsAAACABAAZGF0Yc4EAgAAALEA3ABmAukA1wCb/8QA9P+y/2D7QgIvBXUL3wpvAff7P/X0+Lb7OApo/OkBhwE3AbwIHxO1DCMOVAYeCOsTCRdNB6oQgBeeCb3/1AErDCMH8gMQBh0IgAb++r8M3Ql4EEgbtR4MDPMHzQPSBpQNIRjVGfcarwd2FF0W0RpYDF4Y1Q2DDhIcHRdxINwOSR70FsEbMiFsGO8M3waaER0elBVRCncFPg70Dm0AxwkkC...
[ 2, 46996, 25, 572, 198, 198, 47, 17248, 25664, 796, 37227, 198, 28425, 75, 10761, 85, 10008, 10262, 33, 55, 48, 53, 57, 37, 57, 76, 940, 9865, 17922, 6242, 3838, 16412, 33666, 56, 3838, 1546, 82, 3838, 2246, 6242, 3838, 57, 21713, ...
1.288475
632,851
""" APRON (String) Variables - Unit Tests ===================================== :Author: Caterina Urban """ import unittest from copy import deepcopy from apronpy.var import PyVar if __name__ == '__main__': unittest.main()
[ 37811, 198, 2969, 45806, 357, 10100, 8, 15965, 2977, 532, 11801, 30307, 198, 10052, 1421, 28, 198, 198, 25, 13838, 25, 40742, 1437, 14665, 198, 37811, 198, 11748, 555, 715, 395, 198, 6738, 4866, 1330, 2769, 30073, 198, 198, 6738, 257, ...
3.222222
72
# -*- coding: utf-8 -*- import matplotlib.pyplot as plt from matplotlib.image import imread #img= imread('suzume.jpg') img= imread('../images/suzume.jpg') plt.imshow(img) plt.show()
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 198, 6738, 2603, 29487, 8019, 13, 9060, 1330, 545, 961, 198, 198, 2, 9600, 28, 545, 961, 10786, 2385, 89, 2454...
2.3
80
import sys from rdkit import Chem from rdkit.Chem import AllChem from rdkit.Chem import rdFMCS from rdkit.Chem import rdMolAlign from rdkit.Chem import rdMolTransforms from rdkit.Geometry.rdGeometry import Point3D from rdkit.Chem.rdchem import Atom import utils import numpy as np import math import glob import random i...
[ 11748, 25064, 198, 6738, 374, 67, 15813, 1330, 12870, 198, 6738, 374, 67, 15813, 13, 41829, 1330, 1439, 41829, 198, 6738, 374, 67, 15813, 13, 41829, 1330, 374, 67, 23264, 7902, 198, 6738, 374, 67, 15813, 13, 41829, 1330, 374, 67, 44, ...
2.635906
596
import asyncio from typing import Any, Dict, Optional import botocore.exceptions from astronomer.providers.amazon.aws.hooks.base_aws_async import AwsBaseHookAsync class RedshiftHookAsync(AwsBaseHookAsync): """Interact with AWS Redshift using aiobotocore python library""" async def cluster_status(self, clus...
[ 11748, 30351, 952, 198, 6738, 19720, 1330, 4377, 11, 360, 713, 11, 32233, 198, 198, 11748, 10214, 420, 382, 13, 1069, 11755, 198, 198, 6738, 47603, 13, 15234, 4157, 13, 33103, 13, 8356, 13, 25480, 82, 13, 8692, 62, 8356, 62, 292, 13...
2.288599
3,219
from api import models, settings, utils
[ 6738, 40391, 1330, 4981, 11, 6460, 11, 3384, 4487, 628 ]
4.1
10
bl_info = { "name": "Export to AVS/UCD.ASCII (.inp)", "author": "Florian Sonner", "version": (1, 0), "blender": (2, 7, 4), "location": "File > Export > AVS/UCD.ASCII (.inp)", "description": "Export 2d polygonials to AVS/UCD file format (ASCII variant) and assigns colors to edges. Ignores z coordinates.", ...
[ 2436, 62, 10951, 796, 1391, 198, 197, 197, 1, 3672, 1298, 366, 43834, 284, 14661, 50, 14, 52, 8610, 13, 42643, 3978, 20262, 259, 79, 42501, 198, 197, 197, 1, 9800, 1298, 366, 26953, 666, 6295, 1008, 1600, 198, 197, 197, 1, 9641, 1...
2.632035
231
from typing import List from typish import get_args import jsons from jsons import default_list_deserializer from yellowdog_client.common.json import object_deserializer from .images_client import ImagesClient from .images_client_impl import ImagesClientImpl from .images_service_proxy import ImagesServiceProxy from ....
[ 6738, 19720, 1330, 7343, 198, 198, 6738, 2170, 680, 1330, 651, 62, 22046, 198, 11748, 44804, 684, 198, 6738, 44804, 684, 1330, 4277, 62, 4868, 62, 8906, 48499, 7509, 198, 198, 6738, 7872, 9703, 62, 16366, 13, 11321, 13, 17752, 1330, 2...
3.19774
177
from abc import ABC, abstractmethod
[ 6738, 450, 66, 1330, 9738, 11, 12531, 24396, 628 ]
4.111111
9
import time import cv2 import numpy as np cap = cv2.VideoCapture("0degree.mp4") fps = cap.get(cv2.CAP_PROP_FPS) print(fps) count = 0 sum_x1 = 0 sum_y1 = 0 sum_x2 = 0 sum_y2 = 0 while(True): ret, frame = cap.read() ysize = frame.shape[0] xsize = frame.shape[1] left = frame[0:ysize, 0:int(xsize/2)] right = fra...
[ 11748, 640, 198, 11748, 269, 85, 17, 198, 11748, 299, 32152, 355, 45941, 198, 198, 11128, 796, 269, 85, 17, 13, 10798, 49630, 7203, 15, 16863, 13, 3149, 19, 4943, 198, 29647, 796, 1451, 13, 1136, 7, 33967, 17, 13, 33177, 62, 4805, ...
1.965228
834
''' Applies the Aria-2 function element-wise: .. math:: Aria2(x, \\alpha, \\beta) = (1+e^{-\\beta*x})^{-\\alpha} See Aria paper: https://arxiv.org/abs/1805.08878 ''' # import pytorch import torch from torch import nn # import activation functions import echoAI.Activation.Torch.functional as Func class Aria2(n...
[ 7061, 6, 198, 4677, 13508, 262, 6069, 64, 12, 17, 2163, 5002, 12, 3083, 25, 198, 198, 492, 10688, 3712, 628, 220, 220, 220, 6069, 64, 17, 7, 87, 11, 26867, 26591, 11, 26867, 31361, 8, 796, 357, 16, 10, 68, 36796, 12, 6852, 31361...
2.310398
654
from contextlib import suppress from io import BytesIO from urllib.parse import quote import discord import requests from discord.ext import commands from discord_slash import SlashContext, cog_ext from discord_slash.utils.manage_commands import create_option from PIL import Image
[ 6738, 4732, 8019, 1330, 18175, 198, 6738, 33245, 1330, 2750, 4879, 9399, 198, 6738, 2956, 297, 571, 13, 29572, 1330, 9577, 198, 198, 11748, 36446, 198, 11748, 7007, 198, 6738, 36446, 13, 2302, 1330, 9729, 198, 6738, 36446, 62, 6649, 107...
3.851351
74
from __future__ import print_function import requests import json import boto3 ############################## # Required Intents ############################## ############################## # On Launch ############################## ############################## # Routing ##############################...
[ 6738, 11593, 37443, 834, 1330, 3601, 62, 8818, 198, 198, 11748, 7007, 198, 11748, 33918, 198, 11748, 275, 2069, 18, 628, 220, 198, 220, 628, 628, 198, 14468, 7804, 4242, 2235, 198, 2, 20906, 2558, 658, 198, 14468, 7804, 4242, 2235, 62...
2.684604
669
# coding: utf-8 # BlackSmith mark.2 # exp_name = "game" # /code.py v.x2 # Id: 26~2c # Code © (2011) by WitcherGeralt [alkorgun@gmail.com] del GameChrLS, GameRules
[ 2, 19617, 25, 3384, 69, 12, 23, 198, 198, 2, 220, 2619, 17919, 1317, 13, 17, 198, 2, 1033, 62, 3672, 796, 366, 6057, 1, 1303, 1220, 8189, 13, 9078, 410, 13, 87, 17, 198, 2, 220, 5121, 25, 2608, 93, 17, 66, 198, 2, 220, 6127,...
2.210526
76
# Generated by Django 3.2.4 on 2021-07-18 11:50 from django.db import migrations
[ 2, 2980, 515, 416, 37770, 513, 13, 17, 13, 19, 319, 33448, 12, 2998, 12, 1507, 1367, 25, 1120, 198, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 628 ]
2.766667
30
# Interview Question 17.6 # Time complexity: O(n^2) # Auxiliary space complexity: O(n) if __name__ == '__main__': integers = [] print(min_unsorted_seq(integers)) integers = [1, 2, 4, 7, 10, 11, 7, 12, 6, 7, 16, 18, 19] print(min_unsorted_seq(integers)) integers = list(range(13)) print(min_...
[ 2, 19371, 18233, 1596, 13, 21, 628, 198, 2, 3862, 13357, 25, 440, 7, 77, 61, 17, 8, 198, 2, 47105, 28129, 2272, 13357, 25, 440, 7, 77, 8, 628, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 198, 220, 220, 220, ...
2.422535
142
""" Wrappers for the operations to take the meta-learning gradient updates into account. """ import torch.autograd as autograd import torch.nn.functional as F from torch.autograd import Variable """ The following are the new methods for 2D-Unet: Conv2d, batchnorm2d, GroupNorm, InstanceNorm2d, MaxPool2d, UpSample ...
[ 37811, 198, 36918, 11799, 329, 262, 4560, 284, 1011, 262, 13634, 12, 40684, 31312, 198, 929, 19581, 656, 1848, 13, 198, 37811, 198, 11748, 28034, 13, 2306, 519, 6335, 355, 1960, 519, 6335, 198, 11748, 28034, 13, 20471, 13, 45124, 355, ...
3.196581
117
from setuptools import setup setup( name='Keymatrix', version='0.3', packages=['keypad'], license='MIT', author='Ruslan Walch', long_description=open('README.md').read(), install_requires=['rpi.gpio'], )
[ 6738, 900, 37623, 10141, 1330, 9058, 198, 198, 40406, 7, 198, 220, 220, 220, 1438, 11639, 9218, 6759, 8609, 3256, 198, 220, 220, 220, 2196, 11639, 15, 13, 18, 3256, 198, 220, 220, 220, 10392, 28, 17816, 2539, 15636, 6, 4357, 198, 22...
2.427083
96
from pygments.lexer import RegexLexer, bygroups from pygments.token import Text, Keyword, Operator
[ 6738, 12972, 11726, 13, 2588, 263, 1330, 797, 25636, 45117, 263, 11, 416, 24432, 198, 6738, 12972, 11726, 13, 30001, 1330, 8255, 11, 7383, 4775, 11, 35946, 628 ]
3.571429
28
"""EntryPointCalculator Entry/Buy: price > btm + atr/2 Exit/Sell: price < top - atr/2 """ BUY = 1 SELL = 2
[ 37811, 30150, 12727, 9771, 3129, 1352, 198, 198, 30150, 14, 14518, 25, 2756, 1875, 275, 17209, 1343, 379, 81, 14, 17, 198, 30337, 14, 50, 695, 25, 2756, 1279, 1353, 532, 379, 81, 14, 17, 198, 37811, 198, 198, 19499, 56, 796, 352, ...
2.244898
49
import datetime import os import pandas as pd import requests import sys from requests_html import HTML if __name__ == '__main__': try: start = int(sys.argv[1]) except: start = None try: count = int(sys.argv[2]) except: count = 0 run(start_year=start, years_ago=count) # python test.py 2...
[ 198, 11748, 4818, 8079, 198, 11748, 28686, 198, 11748, 19798, 292, 355, 279, 67, 198, 11748, 7007, 198, 11748, 25064, 198, 6738, 7007, 62, 6494, 1330, 11532, 628, 628, 628, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, ...
2.620968
124
from django.urls import path from django.conf.urls import include from .api import api from .views import Surveys2022Index app_name = "surveys22" urlpatterns = [ path("", Surveys2022Index.as_view(), name="surveys22_index"), path("api/", include(api.urls)), ]
[ 6738, 42625, 14208, 13, 6371, 82, 1330, 3108, 198, 6738, 42625, 14208, 13, 10414, 13, 6371, 82, 1330, 2291, 198, 6738, 764, 15042, 1330, 40391, 198, 198, 6738, 764, 33571, 1330, 28095, 893, 1238, 1828, 15732, 198, 198, 1324, 62, 3672, ...
2.7
100
"""This script converts a hdf5 table into a CERN ROOT Ttree. """ import tables as tb import numpy as np import ctypes import progressbar import os import math import ROOT as r from pybar.fei4 import register_utils from pybar.analysis.RawDataConverter import data_struct if __name__ == "__main__": import matplot...
[ 37811, 1212, 4226, 26161, 257, 289, 7568, 20, 3084, 656, 257, 327, 28778, 15107, 2394, 309, 21048, 13, 198, 37811, 198, 11748, 8893, 355, 256, 65, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 269, 19199, 198, 11748, 4371, 5657, 198, ...
2.305603
1,178
import socket import struct import sys import time NTP_SERVER = "0.uk.pool.ntp.org" TIME1970 = 2208988800L if __name__ =='__main__': sntp_client()
[ 11748, 17802, 198, 11748, 2878, 198, 11748, 25064, 198, 11748, 640, 198, 198, 45, 7250, 62, 35009, 5959, 796, 366, 15, 13, 2724, 13, 7742, 13, 429, 79, 13, 2398, 1, 198, 34694, 30986, 796, 15629, 4531, 3459, 7410, 43, 628, 220, 220,...
2.378788
66
#Faça um Programa que pergunte em que turno você estuda. Peça para digitar M-matutino ou # VVespertino ou N- Noturno. Imprima a mensagem "Bom Dia!", "Boa Tarde!" ou "Boa Noite!" ou #"Valor Inválido!", conforme o caso shift = input("Informe o Turno que voce estuda M-matutino ou V-Vespertino ou N- Noturno: ") if(shi...
[ 2, 50110, 50041, 23781, 6118, 64, 8358, 583, 70, 6311, 795, 8358, 1210, 78, 12776, 25792, 1556, 15339, 13, 2631, 50041, 31215, 3100, 7940, 337, 12, 6759, 315, 2879, 267, 84, 220, 198, 2, 569, 190, 53, 274, 11766, 2879, 267, 84, 399,...
2.209607
229
import os import shutil from subprocess import check_call, CalledProcessError import copy
[ 11748, 28686, 198, 11748, 4423, 346, 198, 6738, 850, 14681, 1330, 2198, 62, 13345, 11, 34099, 18709, 12331, 198, 11748, 4866, 628 ]
4.136364
22
# -*- coding: utf8 -*- import pygame, math, vector, game_object, game center_point = (400,300) yellow = (255, 255, 0) red = (255, 0, 0) green = (0, 255, 0) pygame.init() win = pygame.display.set_mode((800, 600)) pygame.display.set_caption("Angle finding test") class EmptyLevel(pygame.sprite.Sprite): """ Level...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 23, 532, 9, 12, 198, 11748, 12972, 6057, 11, 10688, 11, 15879, 11, 983, 62, 15252, 11, 983, 628, 198, 16159, 62, 4122, 796, 357, 7029, 11, 6200, 8, 198, 198, 36022, 796, 357, 13381, 11, 14280,...
2.463415
738
import json from difflib import get_close_matches data = json.load(open("/home/coreman/Downloads/dictionary.json")) s = input() result = retrieve_def(s) if type(result) == list: for item in result: print("-", item) else: print("-", result)
[ 11748, 33918, 198, 6738, 814, 8019, 1330, 651, 62, 19836, 62, 6759, 2052, 628, 198, 7890, 796, 33918, 13, 2220, 7, 9654, 7203, 14, 11195, 14, 7295, 805, 14, 10002, 82, 14, 67, 14188, 13, 17752, 48774, 628, 198, 198, 82, 796, 5128, ...
2.60396
101
import unittest from solution import solution_part_one, solution_part_two TEST_INPUT = """flqrgnkx""" if __name__ == "__main__": unittest.main()
[ 11748, 555, 715, 395, 198, 198, 6738, 4610, 1330, 4610, 62, 3911, 62, 505, 11, 4610, 62, 3911, 62, 11545, 628, 198, 51, 6465, 62, 1268, 30076, 796, 37227, 2704, 80, 81, 4593, 74, 87, 37811, 628, 198, 198, 361, 11593, 3672, 834, 66...
2.583333
60
import abc
[ 11748, 450, 66, 198 ]
2.75
4
VERSION = '0.0.1' DIR_KIND = { 'cache': {'search': '__pycache__', 'help': 'Delete the pycache folders'}, 'egg': {'search': 'egg-info', 'help': 'Delete the egg folders'}, } FILE_KIND = { 'pyc': {'search': '.pyc', 'help': 'Delete the pyc files'}, }
[ 43717, 796, 705, 15, 13, 15, 13, 16, 6, 198, 198, 34720, 62, 42, 12115, 796, 1391, 198, 220, 220, 220, 705, 23870, 10354, 1391, 6, 12947, 10354, 705, 834, 9078, 23870, 834, 3256, 705, 16794, 10354, 705, 38727, 262, 12972, 23870, 245...
2.351351
111
from ddtrace.internal.compat import ensure_pep562 ensure_pep562(__name__)
[ 6738, 49427, 40546, 13, 32538, 13, 5589, 265, 1330, 4155, 62, 431, 79, 43918, 628, 198, 198, 641, 495, 62, 431, 79, 43918, 7, 834, 3672, 834, 8, 198 ]
2.655172
29
import sys from dataclasses import dataclass # import sqlparse - available if you need it! from .record_parser import parse_record from .varint_parser import parse_varint database_file_path = sys.argv[1] command = sys.argv[2] @dataclass(init=False) if command == ".dbinfo": with open(database_file_path, "rb...
[ 11748, 25064, 198, 198, 6738, 4818, 330, 28958, 1330, 4818, 330, 31172, 198, 198, 2, 1330, 44161, 29572, 532, 1695, 611, 345, 761, 340, 0, 198, 198, 6738, 764, 22105, 62, 48610, 1330, 21136, 62, 22105, 198, 6738, 764, 7785, 600, 62, ...
2.343797
669
import numpy as np from . import coordinates, bases, expansions
[ 11748, 299, 32152, 355, 45941, 198, 6738, 764, 1330, 22715, 11, 12536, 11, 36383, 628, 198 ]
4.125
16
# https://leetcode.com/problems/merge-k-sorted-lists/ import heapq from typing import Optional # Definition for singly-linked list. # Wrapper class for ListNodes, so we can compare them by values.
[ 2, 3740, 1378, 293, 316, 8189, 13, 785, 14, 1676, 22143, 14, 647, 469, 12, 74, 12, 82, 9741, 12, 20713, 14, 198, 198, 11748, 24575, 80, 198, 6738, 19720, 1330, 32233, 628, 198, 2, 30396, 329, 1702, 306, 12, 25614, 1351, 13, 628, ...
3.222222
63
# -*- coding: utf-8 -*- """ Created on Fri Apr 24 12:26:12 2020 @author: gritti """ import tqdm import os # import sys # sys.path.append(os.path.join('..')) from orgseg.GUIs.manualmask import makeManualMask from orgseg.DatasetTools import io #########################################################################...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 198, 41972, 319, 19480, 2758, 1987, 1105, 25, 2075, 25, 1065, 12131, 198, 198, 31, 9800, 25, 1036, 715, 72, 198, 37811, 198, 198, 11748, 256, 80, 36020, 198, 11...
2.940559
286