content
stringlengths
1
1.05M
input_ids
listlengths
1
883k
ratio_char_token
float64
1
22.9
token_count
int64
1
883k
import json import os import re import numpy as np import pandas as pd from src.infer.ExtractDeformableTTA import MAPPINGS_PATH, test_image_set, METADATA_PATH, RCNN0_DETS_DIR WDIR = os.path.dirname(os.path.abspath(__file__)) def flip_box(box): """ box (list, length 4): [x1, y1, w, h] """ # Get top...
[ 11748, 33918, 198, 11748, 28686, 198, 11748, 302, 198, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 19798, 292, 355, 279, 67, 198, 198, 6738, 12351, 13, 259, 2232, 13, 11627, 974, 5005, 687, 540, 51, 5603, 1330, 337, 24805, 20754, ...
2.280038
1,057
from web3 import Web3, HTTPProvider import json w3url = "https://mainnet.infura.io/v3/998f64f3627548bbaf2630599c1eefca" w3 = Web3(HTTPProvider(w3url)) WETH = "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2" YFII = "0xa1d0E215a23d7030842FC67cE582a6aFa3CCaB83" DAI = "0x6B175474E89094C44Da98b954EedeAC495271d0F" iUSDT = "0x...
[ 6738, 3992, 18, 1330, 5313, 18, 11, 14626, 29495, 198, 11748, 33918, 198, 198, 86, 18, 6371, 796, 366, 5450, 1378, 12417, 3262, 13, 10745, 5330, 13, 952, 14, 85, 18, 14, 34808, 69, 2414, 69, 2623, 23195, 2780, 11848, 1878, 2075, 225...
1.899384
487
#!/usr/bin/env python # -*- coding: utf-8 -*- # THIS FILE WAS GENERATED BY generate_classes.py - DO NOT EDIT # # (Generated on 2020-12-20 18:26:33.661372) # from .base_classes import Baserequests ...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 2, 12680, 45811, 21725, 24700, 1137, 11617, 11050, 7716, 62, 37724, 13, 9078, 532, 8410, 5626, 48483, 1303, 198, 2...
2.316547
139
from django.contrib import admin from django.contrib.auth.admin import UserAdmin from .models import CustomUser admin.site.register(CustomUser, UserAdmin)
[ 6738, 42625, 14208, 13, 3642, 822, 1330, 13169, 198, 6738, 42625, 14208, 13, 3642, 822, 13, 18439, 13, 28482, 1330, 11787, 46787, 198, 198, 6738, 764, 27530, 1330, 8562, 12982, 198, 198, 28482, 13, 15654, 13, 30238, 7, 15022, 12982, 11,...
3.488889
45
""" Copyright (c) 2018-2022 Intel Corporation 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 wri...
[ 37811, 198, 15269, 357, 66, 8, 2864, 12, 1238, 1828, 8180, 10501, 198, 198, 26656, 15385, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 5832, 743, 407, 779, 428, 2393, 2845, 287, 11846, 351, 262, ...
3.715054
186
from Cb_constants import DocLoading from basetestcase import ClusterSetup from couchbase_helper.documentgenerator import DocumentGenerator, doc_generator from couchbase_helper.tuq_generators import JsonGenerator from remote.remote_util import RemoteMachineShellConnection from sdk_client3 import SDKClient from com.couc...
[ 6738, 327, 65, 62, 9979, 1187, 1330, 14432, 19031, 198, 6738, 1615, 316, 395, 7442, 1330, 38279, 40786, 198, 6738, 18507, 8692, 62, 2978, 525, 13, 22897, 8612, 1352, 1330, 16854, 8645, 1352, 11, 2205, 62, 8612, 1352, 198, 6738, 18507, ...
3.741071
112
#!/usr/bin/env python3 #-*- coding:utf-8 -*- #Author: ''' 2.xlen()list 3.x def spin_words(sentence): # Your code goes here return " ".join([x[::-1] if len(x) >= 5 else x for x in sentence.split(" ")]) str[::-1] ok '''
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 2, 12, 9, 12, 19617, 25, 40477, 12, 23, 532, 9, 12, 198, 2, 13838, 25, 198, 198, 7061, 6, 198, 362, 13, 87, 11925, 3419, 4868, 513, 13, 87, 628, 220, 220, 198, 198, 4299, ...
2.08547
117
""" Created on 30 May 2017 @author: Bruno Beloff (bruno.beloff@southcoastscience.com) A network socket abstraction, implementing ProcessComms """ import socket import time from scs_core.sys.process_comms import ProcessComms # ----------------------------------------------------------------------------------------...
[ 37811, 198, 41972, 319, 1542, 1737, 2177, 198, 198, 31, 9800, 25, 31045, 3944, 2364, 357, 1671, 36909, 13, 6667, 2364, 31, 35782, 1073, 5773, 4234, 13, 785, 8, 198, 198, 32, 3127, 17802, 34651, 11, 15427, 10854, 5377, 907, 198, 37811,...
4.716216
74
# -*- coding: utf-8 -*- import calendar import collections from datetime import datetime, timedelta from warnings import warn import six import regex as re from dateutil.relativedelta import relativedelta from dateparser.date_parser import date_parser from dateparser.freshness_date_parser import freshness_date_parser...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 11748, 11845, 198, 11748, 17268, 198, 6738, 4818, 8079, 1330, 4818, 8079, 11, 28805, 12514, 198, 6738, 14601, 1330, 9828, 198, 198, 11748, 2237, 198, 11748, 40364, 355, 30...
2.131197
1,654
import chainer import chainer.functions from chainer.utils import type_check from chainer import cuda from chainer import function import numpy as np #from chainer import function_node from utils import clip_grad #class MixtureDensityNetworkFunction(function_node.FunctionNode): def mixture_density_network(x, eos, ...
[ 11748, 6333, 263, 198, 11748, 6333, 263, 13, 12543, 2733, 198, 198, 6738, 6333, 263, 13, 26791, 1330, 2099, 62, 9122, 198, 6738, 6333, 263, 1330, 269, 15339, 198, 6738, 6333, 263, 1330, 2163, 198, 11748, 299, 32152, 355, 45941, 198, 2...
2.160714
560
#!/usr/bin/env python3 # -*- coding: utf-8 -*- __author__ = 'ipetrash' # SOURCE: https://github.com/twbs/bootstrap # SOURCE: https://github.com/gitbrent/bootstrap4-toggle # SOURCE: https://gitbrent.github.io/bootstrap4-toggle/ from flask import Flask, render_template app = Flask(__name__) import logging logging.b...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 834, 9800, 834, 796, 705, 541, 21879, 1077, 6, 628, 198, 2, 311, 31033, 25, 3740, 1378, 12567, 13, 785, 14...
2.417827
359
import pypospack.io.phonts as phonts # <---- additional classes and functions in which to add top # <---- pypospack.io.phonts if __name__ == "__main__":
[ 11748, 12972, 1930, 8002, 13, 952, 13, 746, 756, 82, 355, 872, 756, 82, 198, 198, 2, 1279, 650, 3224, 6097, 290, 5499, 287, 543, 284, 751, 1353, 198, 2, 1279, 650, 220, 220, 220, 220, 12972, 1930, 8002, 13, 952, 13, 746, 756, 82...
2.758621
58
import copy import os import re import string import sys import warnings from contextlib import contextmanager from enum import Enum from textwrap import dedent from typing import ( Any, Dict, Iterator, List, Optional, Tuple, Type, Union, get_type_hints, ) import yaml from .errors ...
[ 11748, 4866, 198, 11748, 28686, 198, 11748, 302, 198, 11748, 4731, 198, 11748, 25064, 198, 11748, 14601, 198, 6738, 4732, 8019, 1330, 4732, 37153, 198, 6738, 33829, 1330, 2039, 388, 198, 6738, 2420, 37150, 1330, 4648, 298, 198, 6738, 1972...
2.436838
3,491
#!/usr/bin/env python3 # # AMBER Clustering import os from time import sleep import yaml import ast import threading import multiprocessing as mp import numpy as np from astropy.time import Time, TimeDelta import astropy.units as u from astropy.coordinates import SkyCoord from darc import DARCBase, VOEventQueueServe...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 2, 198, 2, 3001, 13246, 1012, 436, 1586, 198, 198, 11748, 28686, 198, 6738, 640, 1330, 3993, 198, 11748, 331, 43695, 198, 11748, 6468, 198, 11748, 4704, 278, 198, 11748, 18540, 305...
3.231293
147
import datetime import os import subprocess import base64 from pathlib import Path import shutil import pandas as pd import signal import requests from baselayer.app.env import load_env from baselayer.app.model_util import status, create_tables, drop_tables from social_tornado.models import TornadoStorage from skyport...
[ 11748, 4818, 8079, 198, 11748, 28686, 198, 11748, 850, 14681, 198, 11748, 2779, 2414, 198, 6738, 3108, 8019, 1330, 10644, 198, 11748, 4423, 346, 198, 11748, 19798, 292, 355, 279, 67, 198, 11748, 6737, 198, 11748, 7007, 198, 198, 6738, 1...
1.642127
5,773
# Copyright 2013 University of Maryland. All rights reserved. # Use of this source code is governed by a BSD-style # license that can be found in the LICENSE.TXT file. import sys import os import time from selenium.common.exceptions import NoAlertPresentException import framework
[ 198, 2, 15069, 2211, 2059, 286, 10769, 13, 220, 1439, 2489, 10395, 13, 198, 2, 5765, 286, 428, 2723, 2438, 318, 21825, 416, 257, 347, 10305, 12, 7635, 198, 2, 5964, 326, 460, 307, 1043, 287, 262, 38559, 24290, 13, 51, 25010, 2393, ...
3.826667
75
from .. import types from ... import utils
[ 6738, 11485, 1330, 3858, 198, 6738, 2644, 1330, 3384, 4487, 628 ]
4
11
# -*- coding: utf-8 -*- """ Created on Tue Jul 7 20:14:22 2020 Simple script to join json files @author: SERGI """ import json import sys import os if __name__ == "__main__": print("hello from python", flush=True) jsonPath = str(sys.argv[1]) # =========================================...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 201, 198, 37811, 201, 198, 41972, 319, 30030, 5979, 220, 767, 1160, 25, 1415, 25, 1828, 12131, 201, 198, 201, 198, 26437, 4226, 284, 4654, 33918, 3696, 201, 198, 201, 198, ...
2.2411
618
# Generated by Django 3.0.2 on 2020-01-23 11:02 import re import django.contrib.postgres.fields.citext import django.core.validators from django.db import migrations import grandchallenge.challenges.models
[ 2, 2980, 515, 416, 37770, 513, 13, 15, 13, 17, 319, 12131, 12, 486, 12, 1954, 1367, 25, 2999, 198, 198, 11748, 302, 198, 198, 11748, 42625, 14208, 13, 3642, 822, 13, 7353, 34239, 13, 25747, 13, 66, 578, 742, 198, 11748, 42625, 142...
3
70
import numpy as np import scipy.sparse as sp from HPOlibConfigSpace.configuration_space import ConfigurationSpace from HPOlibConfigSpace.conditions import EqualsCondition, InCondition from HPOlibConfigSpace.hyperparameters import UniformFloatHyperparameter, \ UniformIntegerHyperparameter, CategoricalHyperparameter...
[ 11748, 299, 32152, 355, 45941, 198, 11748, 629, 541, 88, 13, 82, 29572, 355, 599, 198, 198, 6738, 6574, 46, 8019, 16934, 14106, 13, 11250, 3924, 62, 13200, 1330, 28373, 14106, 198, 6738, 6574, 46, 8019, 16934, 14106, 13, 17561, 1756, ...
3.723577
123
# Creating a elif chain alien_color = 'red' if alien_color == 'green': print('Congratulations! You won 5 points!') elif alien_color == 'yellow': print('Congratulations! You won 10 points!') elif alien_color == 'red': print('Congratulations! You won 15 points!')
[ 2, 30481, 257, 1288, 361, 6333, 220, 220, 198, 198, 42690, 62, 8043, 796, 705, 445, 6, 198, 198, 361, 8756, 62, 8043, 6624, 705, 14809, 10354, 198, 220, 220, 220, 3601, 10786, 45048, 0, 921, 1839, 642, 2173, 0, 11537, 198, 417, 36...
3.088889
90
import pandas as pd import numpy as np import seaborn as sns import matplotlib.pyplot as plt from sklearn.model_selection import learning_curve # Plot learning curve # Plot validation curve
[ 11748, 19798, 292, 355, 279, 67, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 384, 397, 1211, 355, 3013, 82, 198, 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 198, 198, 6738, 1341, 35720, 13, 19849, 62, 49283, 1330, 467...
3.327586
58
"""Utilities for downloading comsumption data from Oomi.""" from oomi.oomi_downloader import OomiDownloader, OomiConfig
[ 37811, 18274, 2410, 329, 22023, 401, 16345, 1159, 1366, 422, 440, 12753, 526, 15931, 198, 198, 6738, 267, 12753, 13, 4207, 72, 62, 15002, 263, 1330, 440, 12753, 10002, 263, 11, 440, 12753, 16934, 198 ]
3.457143
35
## @file # This file is used to define class objects of INF file miscellaneous. # Include BootMode/HOB/Event and others. It will consumed by InfParser. # # Copyright (c) 2011 - 2018, Intel Corporation. All rights reserved.<BR> # # SPDX-License-Identifier: BSD-2-Clause-Patent ''' InfMisc ''' import Logger.Log as Logge...
[ 2235, 2488, 7753, 198, 2, 770, 2393, 318, 973, 284, 8160, 1398, 5563, 286, 45594, 2393, 2984, 25673, 13, 198, 2, 40348, 18892, 19076, 14, 39, 9864, 14, 9237, 290, 1854, 13, 632, 481, 13529, 416, 4806, 46677, 13, 198, 2, 198, 2, 15...
2.487356
435
# https://www.codechef.com/START8C/problems/PENALTY for T in range(int(input())): n=list(map(int,input().split())) a=b=0 for i in range(len(n)): if(n[i]==1): if(i%2==0): a+=1 else: b+=1 if(a>b): print(1) elif(b>a): print(2) else: print(0)
[ 2, 3740, 1378, 2503, 13, 19815, 721, 258, 69, 13, 785, 14, 2257, 7227, 23, 34, 14, 1676, 22143, 14, 47, 1677, 1847, 9936, 198, 198, 1640, 309, 287, 2837, 7, 600, 7, 15414, 28955, 2599, 198, 220, 220, 220, 299, 28, 4868, 7, 8899,...
1.706897
174
import matplotlib.pyplot as plt from sklearn.metrics import ConfusionMatrixDisplay, confusion_matrix
[ 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 198, 6738, 1341, 35720, 13, 4164, 10466, 1330, 7326, 4241, 46912, 23114, 11, 10802, 62, 6759, 8609, 628 ]
3.642857
28
import torch import torchvision import torchvision.transforms as transforms import os.path BASE_DIR = os.path.dirname(os.path.abspath(__file__)) transform = transforms.Compose( [transforms.ToTensor(), transforms.Normalize((0.5, 0.5, 0.5), (0.5, 0.5, 0.5))]) root = os.path.join(BASE_DIR, '../data/') trainset ...
[ 11748, 28034, 198, 11748, 28034, 10178, 198, 11748, 28034, 10178, 13, 7645, 23914, 355, 31408, 198, 11748, 28686, 13, 6978, 198, 33, 11159, 62, 34720, 796, 28686, 13, 6978, 13, 15908, 3672, 7, 418, 13, 6978, 13, 397, 2777, 776, 7, 834...
2.052784
1,383
from ... import neodys
[ 198, 6738, 2644, 1330, 497, 375, 893, 628 ]
3.125
8
# -*- coding: utf-8 -*- # Generated by Django 1.11.13 on 2018-05-08 19:56 from __future__ import unicode_literals from __future__ import absolute_import from django.db import migrations
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 2980, 515, 416, 37770, 352, 13, 1157, 13, 1485, 319, 2864, 12, 2713, 12, 2919, 678, 25, 3980, 198, 6738, 11593, 37443, 834, 1330, 28000, 1098, 62, 17201, 874, 198, ...
2.893939
66
# coding=utf-8 # Copyright 2018 The Tensor2Tensor Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable...
[ 2, 19617, 28, 40477, 12, 23, 198, 2, 15069, 2864, 383, 309, 22854, 17, 51, 22854, 46665, 13, 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, 2...
2.531783
3,697
# Generated by Selenium IDE import pytest import time import json from selenium import webdriver from selenium.webdriver.common.by import By from selenium.webdriver.common.action_chains import ActionChains from selenium.webdriver.support import expected_conditions from selenium.webdriver.support.wait import WebDriverWa...
[ 2, 2980, 515, 416, 15300, 47477, 33497, 198, 11748, 12972, 9288, 198, 11748, 640, 198, 11748, 33918, 198, 6738, 384, 11925, 1505, 1330, 3992, 26230, 198, 6738, 384, 11925, 1505, 13, 12384, 26230, 13, 11321, 13, 1525, 1330, 2750, 198, 67...
3.566929
127
from django.contrib import admin from grandchallenge.components.models import ( ComponentInterface, ComponentInterfaceValue, ) admin.site.register(ComponentInterface, ComponentInterfaceAdmin) admin.site.register(ComponentInterfaceValue, ComponentInterfaceValueAdmin)
[ 6738, 42625, 14208, 13, 3642, 822, 1330, 13169, 198, 198, 6738, 4490, 36747, 3540, 13, 5589, 3906, 13, 27530, 1330, 357, 198, 220, 220, 220, 35100, 39317, 11, 198, 220, 220, 220, 35100, 39317, 11395, 11, 198, 8, 628, 628, 198, 28482, ...
3.943662
71
# -*- coding: utf-8 -*- """ Created on Mon Mar 28 15:28:24 2016 @author: Parag Guruji, paragguruji@gmail.com """ from .helpers import setup_env done = setup_env()
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 198, 41972, 319, 2892, 1526, 2579, 1315, 25, 2078, 25, 1731, 1584, 198, 198, 31, 9800, 25, 2547, 363, 38749, 7285, 11, 1582, 9460, 14717, 7285, 31, 14816, 13, 7...
2.538462
65
"""Discover Nanoleaf Aurora devices.""" from . import MDNSDiscoverable
[ 37811, 44596, 18008, 2305, 1878, 22218, 4410, 526, 15931, 198, 6738, 764, 1330, 10670, 8035, 44596, 540, 628 ]
4
18
import os.path as op import numpy as np import pandas as pd from sklearn.pipeline import make_pipeline from sklearn.linear_model import RidgeCV from sklearn.preprocessing import StandardScaler from sklearn.model_selection import KFold, cross_val_score import mne from pyriemann.tangentspace import TangentSpace import ...
[ 11748, 28686, 13, 6978, 355, 1034, 198, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 19798, 292, 355, 279, 67, 198, 6738, 1341, 35720, 13, 79, 541, 4470, 1330, 787, 62, 79, 541, 4470, 198, 6738, 1341, 35720, 13, 29127, 62, 19849, ...
2.229706
579
# Copyright 2017~ mengalong <alongmeng@gmail.com> # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ...
[ 2, 15069, 2177, 93, 1450, 13528, 506, 1279, 24176, 76, 1516, 31, 14816, 13, 785, 29, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 345, 743, 198, 2, 407, 779, 428, 2393, 2845,...
3.548544
206
MATH_BYTECODE = ( "606060405261022e806100126000396000f360606040523615610074576000357c01000000000000" "000000000000000000000000000000000000000000009004806316216f391461007657806361bc22" "1a146100995780637cf5dab0146100bc578063a5f3c23b146100e8578063d09de08a1461011d5780" "63dcf537b11461014057610074565b...
[ 201, 198, 44, 12599, 62, 17513, 51, 2943, 16820, 796, 357, 201, 198, 220, 220, 220, 366, 1899, 1899, 1899, 26598, 2075, 940, 1828, 68, 37988, 3064, 19420, 830, 34107, 830, 69, 15277, 1899, 1899, 26598, 24940, 21599, 44318, 2231, 4304, ...
1.821297
1,634
# -*- coding: utf-8 -*- import os import sys from datetime import timedelta from oslo.config import cfg CONF = cfg.CONF CONF.register_opts([ cfg.StrOpt('log-dir'), cfg.StrOpt('log-file'), cfg.StrOpt('debug'), cfg.StrOpt('verbose'), ], 'log') CONF.register_opts([ cfg.StrOpt('connection'), cf...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 11748, 28686, 198, 11748, 25064, 198, 6738, 4818, 8079, 1330, 28805, 12514, 198, 198, 6738, 28686, 5439, 13, 11250, 1330, 30218, 70, 198, 198, 10943, 37, 796, 30218, ...
1.988304
1,368
from __future__ import print_function import time from rover import Robot from connections import Connections
[ 6738, 11593, 37443, 834, 1330, 3601, 62, 8818, 198, 11748, 640, 198, 6738, 35761, 1330, 16071, 198, 6738, 8787, 1330, 8113, 507, 628, 197, 198, 197, 197, 198 ]
4.142857
28
# # File: $Id: parser.py 1865 2008-10-28 00:47:27Z scanner $ # """ This is where the logic and definition of our wiki markup parser lives. We use the Python Creoleparser (which requires Genshi) We make a custom dialect so that the parser can know the URL base for all of the topics (pages) in the wiki and some additio...
[ 2, 198, 2, 9220, 25, 720, 7390, 25, 30751, 13, 9078, 47801, 3648, 12, 940, 12, 2078, 3571, 25, 2857, 25, 1983, 57, 27474, 720, 198, 2, 198, 37811, 198, 1212, 318, 810, 262, 9156, 290, 6770, 286, 674, 22719, 41485, 30751, 3160, 13,...
2.616695
3,582
import base64 import binascii from datetime import timedelta from django.contrib.auth import authenticate from django.utils import timezone from oauthlib.oauth2 import RequestValidator from oauth_api.models import get_application_model, AccessToken, AuthorizationCode, RefreshToken, AbstractApplication from oauth_api...
[ 11748, 2779, 2414, 198, 11748, 9874, 292, 979, 72, 198, 6738, 4818, 8079, 1330, 28805, 12514, 198, 198, 6738, 42625, 14208, 13, 3642, 822, 13, 18439, 1330, 8323, 5344, 198, 6738, 42625, 14208, 13, 26791, 1330, 640, 11340, 198, 198, 6738...
2.96875
256
x = [1, 2, 3] y = modify(x) print("x == y", x == y) print("x == y", x is y)
[ 87, 796, 685, 16, 11, 362, 11, 513, 60, 201, 198, 88, 796, 13096, 7, 87, 8, 201, 198, 4798, 7203, 87, 6624, 331, 1600, 2124, 6624, 331, 8, 201, 198, 4798, 7203, 87, 6624, 331, 1600, 2124, 318, 331, 8 ]
1.902439
41
import sys, os import tarfile import shutil from edx_gen import _edx_consts from edx_gen import _read_metadata from edx_gen import _write_structure from edx_gen import _write_comps from edx_gen import _write_comp_html from edx_gen import _write_comp_checkboxes from edx_gen import _write_comp_video from edx_gen i...
[ 11748, 25064, 11, 28686, 198, 11748, 13422, 7753, 198, 11748, 4423, 346, 198, 6738, 1225, 87, 62, 5235, 1330, 220, 4808, 276, 87, 62, 1102, 6448, 198, 6738, 1225, 87, 62, 5235, 1330, 220, 4808, 961, 62, 38993, 198, 6738, 1225, 87, 6...
4.625571
219
# 1. Create students score dictionary. students_score = {} # 2. Input student's name and check if input is correct. (Alphabet, period, and blank only.) # 2.1 Creat a function that evaluate the validity of name. while True: # 2.2 Input student's name. name = input("Please input student's name. \n") c...
[ 2, 352, 13, 13610, 2444, 4776, 22155, 13, 198, 19149, 658, 62, 26675, 796, 23884, 198, 198, 2, 362, 13, 23412, 3710, 338, 1438, 290, 2198, 611, 5128, 318, 3376, 13, 357, 2348, 19557, 11, 2278, 11, 290, 9178, 691, 2014, 198, 198, 2...
2.687783
663
import unittest from recipe import utils
[ 11748, 555, 715, 395, 201, 198, 201, 198, 6738, 8364, 1330, 3384, 4487, 201, 198, 201, 198 ]
2.764706
17
import numpy as np import cv2 import os.path as osp import json from human_body_prior.tools.model_loader import load_vposer import torch vposer_ckpt = '/Vol1/dbstore/datasets/a.vakhitov/projects/pykinect_fresh/smplify-x/smplify-x-data/vposer_v1_0/' def batch_rodrigues(rot_vecs, epsilon=1e-8, dtype=torch.float32)...
[ 11748, 299, 32152, 355, 45941, 198, 11748, 269, 85, 17, 198, 11748, 28686, 13, 6978, 355, 267, 2777, 198, 11748, 33918, 198, 198, 6738, 1692, 62, 2618, 62, 3448, 273, 13, 31391, 13, 19849, 62, 29356, 1330, 3440, 62, 85, 1930, 263, 1...
2.2064
625
import docker from dockerfile_generator import render import os import json from tqdm import tqdm from typing import Union, Any, Optional def build_image(repo_url: str, tag: str, path: str) -> None: """ build_image builds the image with the given tag """ client = docker.from_env() print(f"Buildin...
[ 11748, 36253, 198, 6738, 36253, 7753, 62, 8612, 1352, 1330, 8543, 198, 11748, 28686, 198, 11748, 33918, 198, 6738, 256, 80, 36020, 1330, 256, 80, 36020, 198, 198, 6738, 19720, 1330, 4479, 11, 4377, 11, 32233, 628, 198, 4299, 1382, 62, ...
2.511927
545
from VcfFilter import VcfFilter import argparse import os #get command line arguments parser = argparse.ArgumentParser(description='Script to select a certain variant type from a VCF file') #parameters parser.add_argument('--bcftools_folder', type=str, required=True, help='Folder containing the Bcftools binary' ) p...
[ 6738, 569, 12993, 22417, 1330, 569, 12993, 22417, 198, 198, 11748, 1822, 29572, 198, 11748, 28686, 198, 198, 2, 1136, 3141, 1627, 7159, 198, 198, 48610, 796, 1822, 29572, 13, 28100, 1713, 46677, 7, 11213, 11639, 7391, 284, 2922, 257, 17...
2.973684
304
import unittest from test import support import base64 import binascii import os import sys import subprocess def test_main(): support.run_unittest(__name__) if __name__ == '__main__': test_main()
[ 11748, 555, 715, 395, 198, 6738, 1332, 1330, 1104, 198, 11748, 2779, 2414, 198, 11748, 9874, 292, 979, 72, 198, 11748, 28686, 198, 11748, 25064, 198, 11748, 850, 14681, 628, 628, 628, 628, 198, 4299, 1332, 62, 12417, 33529, 198, 220, ...
2.815789
76
# -*- coding: utf-8 -*- # Generated by Django 1.11.29 on 2021-02-25 20:32 from __future__ import unicode_literals from django.db import migrations, models
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 2980, 515, 416, 37770, 352, 13, 1157, 13, 1959, 319, 33448, 12, 2999, 12, 1495, 1160, 25, 2624, 198, 6738, 11593, 37443, 834, 1330, 28000, 1098, 62, 17201, 874, 198...
2.754386
57
"""Retrieve and request tweets from the DS API""" import requests import spacy from .models import DB, Tweet, User nlp = spacy.load("my_model") # Add and updates tweets def add_or_update_user(username): """Adds and updates the user with twiter handle 'username' to our database """ #TODO: Figure out ...
[ 37811, 9781, 30227, 290, 2581, 12665, 422, 262, 17400, 7824, 37811, 198, 11748, 7007, 198, 11748, 599, 1590, 198, 6738, 764, 27530, 1330, 20137, 11, 18752, 11, 11787, 628, 198, 21283, 79, 796, 599, 1590, 13, 2220, 7203, 1820, 62, 19849,...
2.226384
614
import io grid = {} y = 0 x = 0 for l in io.open("day22.in").read().splitlines(): for x in range(len(l)): grid[(y,x)] = l[x] y += 1 y = y // 2 x = x // 2 dx = 0 dy = -1 r = 0 for iter in range(10000000): if (y,x) not in grid or grid[(y,x)] == '.': (dy, dx) = (-dx, dy) grid[(y,x)] = ...
[ 11748, 33245, 198, 198, 25928, 796, 23884, 198, 88, 796, 657, 198, 87, 796, 657, 198, 1640, 300, 287, 33245, 13, 9654, 7203, 820, 1828, 13, 259, 11074, 961, 22446, 35312, 6615, 33529, 198, 220, 220, 220, 329, 2124, 287, 2837, 7, 119...
1.70977
348
from grpc._channel import _InactiveRpcError, _MultiThreadedRendezvous from functools import wraps _COMPLEX_PLOTTING_ERROR_MSG = """ Complex fields cannot be plotted. Use operators to get the amplitude or the result at a defined sweeping phase before plotting. """ _FIELD_CONTAINER_PLOTTING_MSG = """" This fields_conta...
[ 6738, 1036, 14751, 13557, 17620, 1330, 4808, 818, 5275, 49, 14751, 12331, 11, 4808, 29800, 16818, 276, 49, 41913, 31222, 198, 6738, 1257, 310, 10141, 1330, 27521, 198, 198, 62, 41335, 55, 62, 6489, 29089, 2751, 62, 24908, 62, 5653, 38, ...
3.470588
170
''' IO '''
[ 7061, 6, 198, 9399, 198, 7061, 6, 198 ]
1.375
8
from mumodo.mumodoIO import open_intervalframe_from_textgrid import numpy from deep_disfluency.utils.accuracy import wer final_file = open('wer_test.text', "w") ranges1 = [line.strip() for line in open( "/media/data/jh/simple_rnn_disf/rnn_disf_detection/data/disfluency_detection/swda_divisions_disfluency_detectio...
[ 6738, 25682, 24313, 13, 76, 388, 24313, 9399, 1330, 1280, 62, 3849, 85, 1604, 28073, 62, 6738, 62, 5239, 25928, 198, 11748, 299, 32152, 198, 6738, 2769, 62, 67, 4468, 2290, 1387, 13, 26791, 13, 4134, 23843, 1330, 266, 263, 628, 198, ...
2.061538
1,040
from dataclasses import dataclass from dataclasses import field from time import time from typing import Any from typing import Callable from typing import Dict from typing import List from typing import Optional from typing import Tuple
[ 6738, 4818, 330, 28958, 1330, 4818, 330, 31172, 198, 6738, 4818, 330, 28958, 1330, 2214, 198, 6738, 640, 1330, 640, 198, 6738, 19720, 1330, 4377, 198, 6738, 19720, 1330, 4889, 540, 198, 6738, 19720, 1330, 360, 713, 198, 6738, 19720, 133...
4.339286
56
from .document_summary import definition as document_summary_definition from .organization_summary import definition as organization_summmary_definition definition = { "where": "?subj a foaf:Person .", "fields": { "name": { "where": "?subj rdfs:label ?obj ." }, #Contact info...
[ 6738, 764, 22897, 62, 49736, 1330, 6770, 355, 3188, 62, 49736, 62, 46758, 198, 6738, 764, 9971, 1634, 62, 49736, 1330, 6770, 355, 4009, 62, 16345, 3020, 560, 62, 46758, 198, 198, 46758, 796, 1391, 198, 220, 220, 220, 366, 3003, 1298, ...
1.52788
2,457
from django.db.models import Q from hier.search import SearchResult from .models import app_name, Apart, Meter, Bill, Service, Price
[ 6738, 42625, 14208, 13, 9945, 13, 27530, 1330, 1195, 198, 6738, 13550, 13, 12947, 1330, 11140, 23004, 198, 6738, 764, 27530, 1330, 598, 62, 3672, 11, 22596, 11, 46423, 11, 3941, 11, 4809, 11, 7886, 198 ]
3.694444
36
import os import shutil import numpy as np from pyrevolve.custom_logging.logger import logger import sys
[ 11748, 28686, 198, 11748, 4423, 346, 198, 11748, 299, 32152, 355, 45941, 198, 6738, 12972, 18218, 6442, 13, 23144, 62, 6404, 2667, 13, 6404, 1362, 1330, 49706, 198, 11748, 25064, 628 ]
3.419355
31
#$Id$
[ 29953, 7390, 3, 628 ]
1.75
4
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. from setuptools import setup with open("README.md") as f: readme = f.read() setup( name="dpr", version="...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 2, 15069, 357, 66, 8, 3203, 11, 3457, 13, 290, 663, 29116, 13, 198, 2, 198, 2, 770, 2723, 2438, 318, 11971, 739, 262, 17168, 5964, 1043, 287, 262, 198, 2, 38559, 24290, 2393, ...
2.286017
472
# encoding: utf-8 """ @version: v1.0 @author: Richard @license: Apache Licence @contact: billions.richard@qq.com @site: @software: PyCharm @time: 2019/9/12 20:37 """ from pprint import pprint as pp from operator import itemgetter import time from collections import OrderedDict from hard.smallest_range.srcs....
[ 2, 21004, 25, 3384, 69, 12, 23, 220, 220, 198, 198, 37811, 220, 198, 31, 9641, 25, 410, 16, 13, 15, 220, 198, 31, 9800, 25, 6219, 198, 31, 43085, 25, 24843, 10483, 594, 220, 220, 198, 31, 32057, 25, 13188, 13, 7527, 446, 31, 3...
2.020134
596
from pcf.core.gcp_resource import GCPResource from pcf.core import State import logging from google.cloud import storage from google.cloud import exceptions logger = logging.getLogger(__name__)
[ 6738, 279, 12993, 13, 7295, 13, 70, 13155, 62, 31092, 1330, 20145, 4805, 274, 1668, 198, 6738, 279, 12993, 13, 7295, 1330, 1812, 198, 11748, 18931, 198, 6738, 23645, 13, 17721, 1330, 6143, 198, 6738, 23645, 13, 17721, 1330, 13269, 198, ...
3.45614
57
import numpy as np
[ 11748, 299, 32152, 355, 45941, 628 ]
3.333333
6
from __future__ import absolute_import import abc import os import json import glob import shutil from tensorflow.python.estimator import gc from tensorflow.python.estimator import util from tensorflow.python.estimator.canned import metric_keys from tensorflow.python.framework import errors_impl from tensorflow.pytho...
[ 6738, 11593, 37443, 834, 1330, 4112, 62, 11748, 198, 198, 11748, 450, 66, 198, 11748, 28686, 198, 11748, 33918, 198, 11748, 15095, 198, 11748, 4423, 346, 198, 198, 6738, 11192, 273, 11125, 13, 29412, 13, 395, 320, 1352, 1330, 308, 66, ...
2.805063
790
# Copyright: 2005-2012 Brian Harring <ferringb@gmail.com # Copyright: 2006 Marien Zwart <marienz@gentoo.org> # License: BSD/GPL2 """ base restriction class """ from functools import partial from snakeoil import caching, klass from snakeoil.currying import pretty_docs def curry_node_type(cls, node_type, extrad...
[ 2, 15069, 25, 5075, 12, 6999, 8403, 2113, 1806, 1279, 2232, 1806, 65, 31, 14816, 13, 785, 198, 2, 15069, 25, 4793, 1526, 2013, 1168, 24657, 1279, 3876, 2013, 89, 31, 6783, 2238, 13, 2398, 29, 198, 2, 13789, 25, 347, 10305, 14, 38,...
2.75
456
"""extend_ip_field Revision ID: 8da20383f6e1 Revises: eeb702f77d7d Create Date: 2021-01-14 10:50:56.275257 """ import sqlalchemy as sa from alembic import op # revision identifiers, used by Alembic. revision = "8da20383f6e1" down_revision = "eeb702f77d7d" branch_labels = None depends_on = None
[ 37811, 2302, 437, 62, 541, 62, 3245, 198, 198, 18009, 1166, 4522, 25, 807, 6814, 1238, 34741, 69, 21, 68, 16, 198, 18009, 2696, 25, 304, 1765, 36680, 69, 3324, 67, 22, 67, 198, 16447, 7536, 25, 33448, 12, 486, 12, 1415, 838, 25, ...
2.375
128
import ply.lex as lex tokens =["NUM","OPERADORES"] t_NUM = '\d+' t_OPERADORES = '[+|*|-]' t_ignore='\n\t ' lexer = lex.lex() # 1+2 1-2 1*2 # ola mundo import sys for line in sys.stdin: lexer.input(line) for tok in lexer: print(tok)
[ 11748, 35960, 13, 2588, 355, 31191, 198, 198, 83, 482, 641, 796, 14692, 41359, 2430, 31054, 2885, 1581, 1546, 8973, 198, 198, 83, 62, 41359, 796, 705, 59, 67, 10, 6, 198, 83, 62, 31054, 2885, 1581, 1546, 796, 44438, 10, 91, 9, 91,...
1.931298
131
# -*- coding: utf-8 -*- # Generated by Django 1.11.9 on 2018-07-10 20:40 from __future__ import unicode_literals from django.db import migrations, models
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 2980, 515, 416, 37770, 352, 13, 1157, 13, 24, 319, 2864, 12, 2998, 12, 940, 1160, 25, 1821, 198, 6738, 11593, 37443, 834, 1330, 28000, 1098, 62, 17201, 874, 198, ...
2.736842
57
from __future__ import annotations import typing from ctc import spec from . import timestamp_crud from . import metric_crud from . import analytics_spec # def update_payload( # timescale: analytics_spec.Timescale, # old_payload: analytics_spec.AnalyticsPayload, # ) -> analytics_spec.AnalyticsPayload: # ...
[ 6738, 11593, 37443, 834, 1330, 37647, 198, 198, 11748, 19720, 198, 198, 6738, 269, 23047, 1330, 1020, 198, 6738, 764, 1330, 41033, 62, 6098, 463, 198, 6738, 764, 1330, 18663, 62, 6098, 463, 198, 6738, 764, 1330, 23696, 62, 16684, 628, ...
2.291667
312
# Copyright 2016 The TensorFlow Authors All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicab...
[ 2, 15069, 1584, 383, 309, 22854, 37535, 46665, 1439, 6923, 33876, 13, 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,...
2.42576
7,469
load("@rules_jvm_external//:defs.bzl", "artifact") # For more information see # - https://github.com/bmuschko/bazel-examples/blob/master/java/junit5-test/BUILD # - https://github.com/salesforce/bazel-maven-proxy/tree/master/tools/junit5 # - https://github.com/junit-team/junit5-samples/tree/master/junit5-jupiter-starte...
[ 2220, 7203, 31, 38785, 62, 73, 14761, 62, 22615, 1003, 25, 4299, 82, 13, 65, 48274, 1600, 366, 433, 29660, 4943, 198, 198, 2, 1114, 517, 1321, 766, 198, 2, 532, 3740, 1378, 12567, 13, 785, 14, 65, 14664, 354, 7204, 14, 65, 41319, ...
2.163185
766
# This module provides mocked versions of classes and functions provided # by Carla in our runtime environment.
[ 2, 770, 8265, 3769, 29180, 6300, 286, 6097, 290, 5499, 2810, 198, 2, 416, 1879, 5031, 287, 674, 19124, 2858, 13, 628, 628 ]
5
23
#!/usr/bin/env python3 # -*- coding: utf-8 -*- ee = '\033[1m' green = '\033[32m' yellow = '\033[33m' cyan = '\033[36m' line = cyan+'-' * 0x2D print(ee+line) R,G,B = [float(X) / 0xFF for X in input(f'{yellow}RGB: {green}').split()] K = 1-max(R,G,B) C,M,Y = [round(float((1-X-K)/(1-K) * 0x64),1) for X in [R,G,B]] K = r...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 1453, 796, 705, 59, 44427, 58, 16, 76, 6, 198, 14809, 796, 705, 59, 44427, 58, 2624, 76, 6, 198, 36022, ...
1.795556
225
#!/usr/bin/env python """Builds the documentaion. First it runs gendoc to create rst files for the source code. Then it runs sphinx make. .. Warning:: This will delete the content of the output directory first! So you might loose data. You can use updatedoc.py -nod. Usage, just call:: updatedoc.py -h "...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 37811, 15580, 82, 262, 3188, 64, 295, 13, 3274, 340, 4539, 308, 437, 420, 284, 2251, 374, 301, 3696, 329, 262, 2723, 2438, 13, 3244, 340, 4539, 599, 20079, 87, 787, 13, 198, 492, 1...
2.362362
1,998
# 1 + (n-1)*[3 + X] = 1 + 3*(n-1) + X*(n-1) = 1 + 3*(n-1) + (n^2 + n - 2)/2 # = (1 - 3 - 1) + (3n + n/2) + (n^2/2) # The complexity is O(n^2)
[ 198, 2, 352, 1343, 357, 77, 12, 16, 27493, 58, 18, 1343, 1395, 60, 796, 352, 1343, 513, 9, 7, 77, 12, 16, 8, 1343, 1395, 9, 7, 77, 12, 16, 8, 796, 352, 1343, 513, 9, 7, 77, 12, 16, 8, 1343, 357, 77, 61, 17, 1343, 299, ...
1.56044
91
import os from typing import List, Tuple from BridgeOptimizer.datastructure.hypermesh.LoadCollector import LoadCollector from BridgeOptimizer.datastructure.hypermesh.LoadStep import LoadStep from BridgeOptimizer.datastructure.hypermesh.Force import Force from BridgeOptimizer.datastructure.hypermesh.SPC import SPC
[ 11748, 28686, 198, 6738, 19720, 1330, 7343, 11, 309, 29291, 198, 6738, 10290, 27871, 320, 7509, 13, 19608, 459, 5620, 13, 12114, 16321, 5069, 13, 8912, 31337, 273, 1330, 8778, 31337, 273, 198, 6738, 10290, 27871, 320, 7509, 13, 19608, 4...
3.472527
91
tajniBroj = 51 broj = 2 while tajniBroj != broj: broj = int(input("Pogodite tajni broj: ")) if tajniBroj == broj: print("Pogodak!") elif tajniBroj < broj: print("Tajni broj je manji od tog broja.") else: print("Tajni broj je veci od tog broja.") print("Kraj programa")
[ 83, 1228, 8461, 15783, 73, 796, 6885, 198, 7957, 73, 796, 362, 198, 198, 4514, 256, 1228, 8461, 15783, 73, 14512, 1379, 73, 25, 198, 220, 220, 220, 1379, 73, 796, 493, 7, 15414, 7203, 47, 519, 375, 578, 256, 1228, 8461, 1379, 73, ...
1.939394
165
import numpy as np from sklearn import metrics from neupy import algorithms from base import BaseTestCase
[ 11748, 299, 32152, 355, 45941, 198, 6738, 1341, 35720, 1330, 20731, 198, 198, 6738, 497, 929, 88, 1330, 16113, 198, 6738, 2779, 1330, 7308, 14402, 20448, 628 ]
4
27
# Copyright (C) 2013 Google Inc., authors, and contributors <see AUTHORS file> # Licensed under http://www.apache.org/licenses/LICENSE-2.0 <see LICENSE file> # Created By: dan@reciprocitylabs.com # Maintained By: dan@reciprocitylabs.com from sqlalchemy.ext.associationproxy import association_proxy from ggrc import db...
[ 2, 15069, 357, 34, 8, 2211, 3012, 3457, 1539, 7035, 11, 290, 20420, 1279, 3826, 37195, 20673, 2393, 29, 198, 2, 49962, 739, 2638, 1378, 2503, 13, 43073, 13, 2398, 14, 677, 4541, 14, 43, 2149, 24290, 12, 17, 13, 15, 1279, 3826, 385...
3.082192
146
# Copyright 2020-2021 The American University in Cairo and the Cloud V Project. # # This file is part of the DFFRAM Memory Compiler. # See https://github.com/Cloud-V/DFFRAM for further info. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the Lic...
[ 2, 15069, 12131, 12, 1238, 2481, 383, 1605, 2059, 287, 23732, 290, 262, 10130, 569, 4935, 13, 198, 2, 198, 2, 770, 2393, 318, 636, 286, 262, 360, 5777, 24115, 14059, 3082, 5329, 13, 198, 2, 4091, 3740, 1378, 12567, 13, 785, 14, 18...
1.873013
5,977
# noqa: D100 from typing import Optional import numpy as np import xarray from xclim.core.units import ( convert_units_to, declare_units, pint_multiply, rate2amount, units, units2pint, ) from xclim.core.utils import ensure_chunk_size from ._multivariate import ( daily_temperature_range, ...
[ 2, 645, 20402, 25, 360, 3064, 198, 6738, 19720, 1330, 32233, 198, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 2124, 18747, 198, 198, 6738, 2124, 565, 320, 13, 7295, 13, 41667, 1330, 357, 198, 220, 220, 220, 10385, 62, 41667, 62, ...
2.433498
1,624
# Copyright (c) 2013, VHRS and contributors # For license information, please see license.txt from __future__ import unicode_literals import frappe from frappe import _, msgprint from frappe.utils import (cint, cstr, date_diff, flt, getdate, money_in_words, nowdate, rounded, today) from datet...
[ 2, 15069, 357, 66, 8, 2211, 11, 569, 39, 6998, 290, 20420, 198, 2, 1114, 5964, 1321, 11, 3387, 766, 5964, 13, 14116, 198, 198, 6738, 11593, 37443, 834, 1330, 28000, 1098, 62, 17201, 874, 198, 11748, 5306, 27768, 198, 6738, 5306, 277...
3.066176
136
import os DEFAULT_ROOT = './materials' datasets_dt = {}
[ 11748, 28686, 628, 198, 7206, 38865, 62, 13252, 2394, 796, 705, 19571, 33665, 82, 6, 628, 198, 19608, 292, 1039, 62, 28664, 796, 23884, 628, 198 ]
2.384615
26
from .comment import CommentParser from .protobuf import Protobuf from .proto_structures import Syntax
[ 6738, 764, 23893, 1330, 18957, 46677, 198, 6738, 764, 11235, 672, 3046, 1330, 5038, 672, 3046, 198, 6738, 764, 1676, 1462, 62, 7249, 942, 1330, 26375, 897, 628 ]
3.714286
28
from flask import render_template, request, Blueprint core = Blueprint('core', __name__)
[ 6738, 42903, 1330, 8543, 62, 28243, 11, 2581, 11, 39932, 198, 198, 7295, 796, 39932, 10786, 7295, 3256, 11593, 3672, 834, 8, 628, 628 ]
3.875
24
# encoding: utf-8 import functools import os from urllib.parse import urlsplit import boto3 import botocore import pytest from botocore.exceptions import BotoCoreError, ClientError from mock import MagicMock from parameterized import parameterized from ..mirror import MirrorUploader from ..model import ( DataSour...
[ 2, 21004, 25, 3384, 69, 12, 23, 198, 11748, 1257, 310, 10141, 198, 11748, 28686, 198, 6738, 2956, 297, 571, 13, 29572, 1330, 2956, 7278, 489, 270, 198, 198, 11748, 275, 2069, 18, 198, 11748, 10214, 420, 382, 198, 11748, 12972, 9288, ...
2.28184
1,696
"""Set the build version to be 'qa', 'rc', 'release'""" import sys import os import re import logging log = logging.getLogger() log.addHandler(logging.StreamHandler()) log.setLevel(logging.DEBUG) if __name__ == '__main__': sys.exit(main())
[ 37811, 7248, 262, 1382, 2196, 284, 307, 705, 20402, 3256, 705, 6015, 3256, 705, 20979, 6, 37811, 198, 198, 11748, 25064, 198, 11748, 28686, 198, 11748, 302, 198, 11748, 18931, 198, 198, 6404, 796, 18931, 13, 1136, 11187, 1362, 3419, 198...
2.873563
87
#!/usr/bin/python import yaml import os import ast import sys from collections import OrderedDict curr_dir = os.getcwd() work_dir = sys.argv[1] network_type = sys.argv[2] testplan_dict = {} testplan_dict["name"] = "System performance test" testplan_dict["description"] = "This test is to create as much chaincode com...
[ 198, 2, 48443, 14629, 14, 8800, 14, 29412, 198, 198, 11748, 331, 43695, 198, 11748, 28686, 198, 11748, 6468, 198, 11748, 25064, 198, 6738, 17268, 1330, 14230, 1068, 35, 713, 198, 198, 22019, 81, 62, 15908, 796, 28686, 13, 1136, 66, 16...
2.549281
2,780
"""Collection of tests.""" import pytest import dblib.lib f0 = dblib.lib.Finding('CD spook', 'my_PC', 'The CD drive is missing.') f1 = dblib.lib.Finding('Unplugged', 'my_PC', 'The power cord is unplugged.') f2 = dblib.lib.Finding('Monitor switched off', 'my_PC', 'The monitor is switched off.') def test_add_remove(...
[ 37811, 36307, 286, 5254, 526, 15931, 198, 11748, 12972, 9288, 198, 198, 11748, 288, 2436, 571, 13, 8019, 628, 198, 69, 15, 796, 288, 2436, 571, 13, 8019, 13, 36276, 10786, 8610, 599, 566, 3256, 705, 1820, 62, 5662, 3256, 705, 464, 6...
2.285398
452
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # --------------------------------------------------------------------...
[ 2, 16529, 1783, 10541, 198, 2, 15069, 357, 66, 8, 5413, 10501, 13, 1439, 2489, 10395, 13, 198, 2, 49962, 739, 262, 17168, 13789, 13, 4091, 13789, 13, 14116, 287, 262, 1628, 6808, 329, 5964, 1321, 13, 198, 2, 16529, 1783, 10541, 198,...
5.212121
99
# -*- coding: utf-8 -*- # Generated by Django 1.10.4 on 2017-02-25 22:22 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion import django.utils.timezone import django_smalluuid.models
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 2980, 515, 416, 37770, 352, 13, 940, 13, 19, 319, 2177, 12, 2999, 12, 1495, 2534, 25, 1828, 198, 6738, 11593, 37443, 834, 1330, 28000, 1098, 62, 17201, 874, 198, ...
2.829545
88
from aiogram import Bot, types from aiogram.dispatcher import Dispatcher from aiogram.utils import executor TOKEN = "Token for you bot" bot = Bot(token=TOKEN) dp = Dispatcher(bot) if __name__ == '__main__': executor.start_polling(dp)
[ 6738, 257, 72, 21857, 1330, 18579, 11, 3858, 201, 198, 6738, 257, 72, 21857, 13, 6381, 8071, 2044, 1330, 3167, 8071, 2044, 201, 198, 6738, 257, 72, 21857, 13, 26791, 1330, 3121, 273, 201, 198, 10468, 43959, 796, 366, 30642, 329, 345, ...
2.617021
94
from django.core.exceptions import ImproperlyConfigured from importlib import import_module try: from django.utils.encoding import force_text except ImportError: from django.utils.encoding import force_unicode as force_text from django.utils.functional import Promise import json
[ 6738, 42625, 14208, 13, 7295, 13, 1069, 11755, 1330, 12205, 525, 306, 16934, 1522, 198, 6738, 1330, 8019, 1330, 1330, 62, 21412, 198, 198, 28311, 25, 198, 220, 220, 220, 422, 42625, 14208, 13, 26791, 13, 12685, 7656, 1330, 2700, 62, 5...
3.458824
85
# timedpid.py # Source: https://github.com/DrGFreeman/PyTools # # MIT License # # Copyright (c) 2017 Julien de la Bruere-Terreault <drgfreeman@tuta.io> # # 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 th...
[ 2, 28805, 35317, 13, 9078, 198, 2, 8090, 25, 3740, 1378, 12567, 13, 785, 14, 6187, 38, 20366, 8463, 14, 20519, 33637, 198, 2, 198, 2, 17168, 13789, 198, 2, 198, 2, 15069, 357, 66, 8, 2177, 5979, 2013, 390, 8591, 1709, 518, 260, ...
3.704327
416
# # -*- coding: utf-8-*- # receives messages via zmq and executes some simple # operations. # # (c) ISC Clemenz & Weinbrecht GmbH 2018 # import json import requests import zmq import pmon
[ 2, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 12, 9, 12, 198, 2, 11583, 6218, 2884, 1976, 76, 80, 290, 42985, 617, 2829, 198, 2, 4560, 13, 198, 2, 198, 2, 357, 66, 8, 3180, 34, 3779, 3653, 89, 1222, 40966, 4679, 21474,...
2.666667
72
from padmini import operations as op """ def test_ti(): assert S.ti("ta", "e") == "te" assert S.ti("AtAm", "e") == "Ate" def test_antya(): assert S.antya("ti", "u") == "tu" assert S.antya("te", "Am") == "tAm" """
[ 6738, 14841, 45313, 1330, 4560, 355, 1034, 628, 198, 198, 37811, 198, 4299, 1332, 62, 20259, 33529, 198, 220, 220, 220, 6818, 311, 13, 20259, 7203, 8326, 1600, 366, 68, 4943, 6624, 366, 660, 1, 198, 220, 220, 220, 6818, 311, 13, 202...
2.228571
105
# coding: utf-8 #just prints the emails of members of a group to stdout, #both primary and secondary members # run as # $python extractemails_nogui.py "Tidal Disruption Events" from __future__ import print_function '__author__' == 'Federica Bianco, NYU - GitHub: fedhere' import sys import pandas as pd from argparse im...
[ 2, 19617, 25, 3384, 69, 12, 23, 198, 2, 3137, 20842, 262, 7237, 286, 1866, 286, 257, 1448, 284, 14367, 448, 11, 198, 2, 16885, 4165, 290, 9233, 1866, 198, 2, 1057, 355, 198, 2, 720, 29412, 7925, 368, 1768, 62, 77, 519, 9019, 13,...
2.586982
845
from discord.ext import commands, menus import utils import random , discord, os, importlib, mystbin, typing, aioimgur, functools, tweepy import traceback, textwrap from discord.ext.menus.views import ViewMenuPages class SusUsersEmbed(menus.ListPageSource): class TestersEmbed(menus.ListPageSource): def tweep...
[ 6738, 36446, 13, 2302, 1330, 9729, 11, 26798, 198, 11748, 3384, 4487, 198, 11748, 4738, 837, 36446, 11, 28686, 11, 1330, 8019, 11, 21619, 8800, 11, 19720, 11, 257, 952, 19791, 11, 1257, 310, 10141, 11, 4184, 538, 88, 198, 11748, 12854...
2.859316
263
# This file is part of the UFO. # # This file contains definitions for functions that # are extensions of the cmath library, and correspond # either to functions that are in cmath, but inconvenient # to access from there (e.g. z.conjugate()), # or functions that are simply not defined. # # from __future__ import absol...
[ 2, 770, 2393, 318, 636, 286, 262, 19728, 13, 198, 2, 198, 2, 770, 2393, 4909, 17336, 329, 5499, 326, 198, 2, 389, 18366, 286, 262, 269, 11018, 5888, 11, 290, 6053, 198, 2, 2035, 284, 5499, 326, 389, 287, 269, 11018, 11, 475, 375...
2.288396
586