content
stringlengths
1
1.05M
input_ids
listlengths
1
883k
ratio_char_token
float64
1
22.9
token_count
int64
1
883k
import random import sys import subprocess try: import requests except: print("'requests' module not found! Trying to install... ") pip_install("requests") import requests print_header() user_nitro_type = get_nitro_type() print("Enter the number of Nitro Codes you want: ") ...
[ 11748, 4738, 201, 198, 11748, 25064, 201, 198, 11748, 850, 14681, 201, 198, 201, 198, 201, 198, 201, 198, 28311, 25, 201, 198, 220, 220, 220, 1330, 7007, 201, 198, 16341, 25, 201, 198, 220, 220, 220, 3601, 7203, 6, 8897, 3558, 6, ...
2.305598
661
import sys import itertools if __name__ == "__main__": print optimal(readfile(sys.stdin))
[ 11748, 25064, 198, 11748, 340, 861, 10141, 198, 198, 361, 11593, 3672, 834, 6624, 366, 834, 12417, 834, 1298, 198, 197, 4798, 16586, 7, 961, 7753, 7, 17597, 13, 19282, 259, 4008, 198 ]
2.787879
33
import socket import sys import traceback import struct import threading; from threading import Thread; import time; import datetime; import json #import buffered_message; import hashlib from Crypto.PublicKey import RSA from connection_state import ConnectionState # publickey = RSA.importKey(key_string) import tcp; im...
[ 11748, 17802, 198, 11748, 25064, 198, 11748, 12854, 1891, 198, 11748, 2878, 198, 11748, 4704, 278, 26, 198, 6738, 4704, 278, 1330, 14122, 26, 198, 11748, 640, 26, 198, 11748, 4818, 8079, 26, 198, 11748, 33918, 198, 2, 11748, 6940, 1068,...
3.200965
1,244
import os import unittest import json import types from http.client import BadStatusLine from io import BytesIO import pytest wptserve = pytest.importorskip("wptserve") from .base import TestUsingServer, TestUsingH2Server, doc_root if __name__ == '__main__': unittest.main()
[ 11748, 28686, 198, 11748, 555, 715, 395, 198, 11748, 33918, 198, 11748, 3858, 198, 198, 6738, 2638, 13, 16366, 1330, 7772, 19580, 13949, 198, 6738, 33245, 1330, 2750, 4879, 9399, 198, 198, 11748, 12972, 9288, 198, 198, 86, 457, 2655, 30...
2.947917
96
# -*- coding: utf-8 -*- """ Copyright (c) 2017 beyond-blockchain.org. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable l...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 198, 15269, 357, 66, 8, 2177, 3675, 12, 9967, 7983, 13, 2398, 13, 198, 198, 26656, 15385, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156,...
3.29661
236
""" Usage: main.py [<project>] Options: <project> Path to the .uvprojx file (Keil Vision5 Project File). The .uvoptx file (Keil Vision5 Project Options file) will be located automatically as it shall be adjacent to the .uvprojx file, having the same filename. ...
[ 37811, 198, 28350, 25, 198, 220, 220, 220, 1388, 13, 9078, 685, 27, 16302, 37981, 198, 198, 29046, 25, 198, 220, 220, 220, 1279, 16302, 29, 220, 220, 10644, 284, 262, 764, 14795, 1676, 73, 87, 2393, 357, 8896, 346, 19009, 20, 4935, ...
2.367417
3,511
import UserList import base_info
[ 198, 11748, 11787, 8053, 198, 11748, 2779, 62, 10951, 198 ]
3.4
10
#!/usr/bin/env python3 from utils.model_config_helpers import run_model_test run_model_test()
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 198, 6738, 3384, 4487, 13, 19849, 62, 11250, 62, 16794, 364, 1330, 1057, 62, 19849, 62, 9288, 198, 198, 5143, 62, 19849, 62, 9288, 3419, 198 ]
2.666667
36
from glob import glob import sys import os import numpy as np import random from mpunet.utils import create_folders import argparse def _add_to_file_list_fallback(rel_image_path, image_path, fname="LIST_OF_FILES.txt"): """ On some system synlinks are not supported, if --fi...
[ 6738, 15095, 1330, 15095, 198, 11748, 25064, 198, 11748, 28686, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 4738, 198, 6738, 29034, 403, 316, 13, 26791, 1330, 2251, 62, 11379, 364, 198, 11748, 1822, 29572, 628, 628, 628, 198, 198, 4...
2.755668
397
#!/usr/bin/python """ (C) Copyright 2018 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 ...
[ 2, 48443, 14629, 14, 8800, 14, 29412, 198, 37811, 198, 220, 357, 34, 8, 15069, 2864, 8180, 10501, 13, 628, 220, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 220, 345, 743, 407, 779, 428, ...
2.584211
760
import cPickle import argparse parser = argparse.ArgumentParser( "Computes the coverage of a shortlist in a corpus file") parser.add_argument("--vocab", required=True, help="Vocabulary to use (.pkl)") parser.add_argument("--text", required=True, help="Beam size, turn...
[ 11748, 269, 31686, 293, 198, 11748, 1822, 29572, 198, 198, 48610, 796, 1822, 29572, 13, 28100, 1713, 46677, 7, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 366, 7293, 1769, 262, 5197, 286, 257, 1790, 4868, 287, 257, 3...
2.249412
425
# encoding: utf-8 import datetime from south.db import db from south.v2 import SchemaMigration from django.db import models
[ 2, 21004, 25, 3384, 69, 12, 23, 198, 11748, 4818, 8079, 198, 6738, 5366, 13, 9945, 1330, 20613, 198, 6738, 5366, 13, 85, 17, 1330, 10011, 2611, 44, 4254, 198, 6738, 42625, 14208, 13, 9945, 1330, 4981, 198 ]
3.263158
38
# -*- coding: utf-8 -*- import datetime from south.db import db from south.v2 import SchemaMigration from django.db import models
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 11748, 4818, 8079, 198, 6738, 5366, 13, 9945, 1330, 20613, 198, 6738, 5366, 13, 85, 17, 1330, 10011, 2611, 44, 4254, 198, 6738, 42625, 14208, 13, 9945, 1330, 4981, 198 ]
2.954545
44
import numpy as np import sys sys.path.append('/homes/rlreed/workspace/unotran/src') from coarseBounds import computeBounds, Grouping import pickle from makeDLPbasis import makeBasis as makeDLP from makeKLTbasis import makeBasis as makeKLT import sph import sph_dgm import pydgm if __name__ == '__main__': np.set_p...
[ 11748, 299, 32152, 355, 45941, 198, 11748, 25064, 198, 17597, 13, 6978, 13, 33295, 10786, 14, 71, 2586, 14, 45895, 15977, 14, 5225, 10223, 14, 403, 313, 2596, 14, 10677, 11537, 198, 6738, 36076, 33, 3733, 1330, 24061, 33, 3733, 11, 49...
2.19863
438
# coding: utf-8 # Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved. # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may c...
[ 2, 19617, 25, 3384, 69, 12, 23, 198, 2, 15069, 357, 66, 8, 1584, 11, 33448, 11, 18650, 290, 14, 273, 663, 29116, 13, 220, 1439, 2489, 10395, 13, 198, 2, 770, 3788, 318, 10668, 12, 36612, 284, 345, 739, 262, 14499, 2448, 33532, 1...
3.097561
164
from .gcore.queries import GetNetworkFee, GetBalance from .gcore.mutations import SendCoin from typing import List, Optional from .exc import SendLimitError, InvalidClientObject
[ 6738, 764, 70, 7295, 13, 421, 10640, 1330, 3497, 26245, 37, 1453, 11, 3497, 45866, 198, 6738, 764, 70, 7295, 13, 21973, 602, 1330, 16290, 24387, 198, 6738, 19720, 1330, 7343, 11, 32233, 198, 6738, 764, 41194, 1330, 16290, 39184, 12331, ...
3.891304
46
# -*- coding: utf-8 -*- try: from urlparse import urlparse, urlunsplit except ImportError: from urllib.parse import urlparse, urlunsplit
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 28311, 25, 198, 220, 220, 220, 422, 19016, 29572, 1330, 19016, 29572, 11, 19016, 13271, 489, 270, 198, 16341, 17267, 12331, 25, 198, 220, 220, 220, 422, 2956, 297, ...
2.625
56
from .base import Service from ..requests.dimension import CreateDimensionsRequest, DimensionsListRequest
[ 6738, 764, 8692, 1330, 4809, 198, 6738, 11485, 8897, 3558, 13, 46156, 1330, 13610, 29271, 5736, 18453, 11, 41265, 8053, 18453, 198 ]
4.818182
22
from typing import List from typing import Union from pyspark.sql import DataFrame from pyspark.sql import functions as F from pyspark.sql.window import Window def filter_all_not_null(df: DataFrame, reference_columns: List[str]) -> DataFrame: """ Filter rows which have NULL values in all the specified column...
[ 6738, 19720, 1330, 7343, 198, 6738, 19720, 1330, 4479, 198, 198, 6738, 279, 893, 20928, 13, 25410, 1330, 6060, 19778, 198, 6738, 279, 893, 20928, 13, 25410, 1330, 5499, 355, 376, 198, 6738, 279, 893, 20928, 13, 25410, 13, 17497, 1330, ...
2.798627
2,622
# Copyright 2016-2020 Swiss National Supercomputing Centre (CSCS/ETH Zurich) # ReFrame Project Developers. See the top-level LICENSE file for details. # # SPDX-License-Identifier: BSD-3-Clause import os import reframe.utility.sanity as sn import reframe as rfm
[ 2, 15069, 1584, 12, 42334, 14780, 2351, 3115, 785, 48074, 9072, 357, 34, 6173, 50, 14, 20702, 43412, 8, 198, 2, 797, 19778, 4935, 34152, 13, 4091, 262, 1353, 12, 5715, 38559, 24290, 2393, 329, 3307, 13, 198, 2, 198, 2, 30628, 55, ...
3.259259
81
from sympy import ( limit, Symbol, oo, sqrt, Rational, log, exp, cos, sin, tan, pi, asin, together, root, S, ) # Numbers listed with the tests refer to problem numbers in the book # "Anti-demidovich, problemas resueltos, Ed. URSS" x = Symbol("x") ...
[ 6738, 10558, 88, 1330, 357, 198, 220, 220, 220, 4179, 11, 198, 220, 220, 220, 38357, 11, 198, 220, 220, 220, 267, 78, 11, 198, 220, 220, 220, 19862, 17034, 11, 198, 220, 220, 220, 46863, 11, 198, 220, 220, 220, 2604, 11, 198, 22...
2.12987
154
from notion.client import NotionClient from notion.settings import Settings
[ 6738, 9495, 13, 16366, 1330, 1892, 295, 11792, 198, 6738, 9495, 13, 33692, 1330, 16163, 628 ]
4.8125
16
#!/usr/bin/env python import os try: from setuptools import setup except ImportError: from distutils.core import setup def read(*paths): """Build a file path from *paths* and return the contents.""" with open(os.path.join(*paths), 'r') as f: return f.read() install_requires = [] # install_re...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 11748, 28686, 198, 28311, 25, 198, 220, 220, 220, 422, 900, 37623, 10141, 1330, 9058, 198, 16341, 17267, 12331, 25, 198, 220, 220, 220, 422, 1233, 26791, 13, 7295, 1330, 9058, 628, 198...
2.491172
623
from .base import * from .string import * from .categorical import * from .numerical import * __all__ = ["Converter", "converter_dict"]
[ 6738, 764, 8692, 1330, 1635, 198, 6738, 764, 8841, 1330, 1635, 198, 6738, 764, 66, 2397, 12409, 1330, 1635, 198, 6738, 764, 77, 6975, 605, 1330, 1635, 628, 198, 834, 439, 834, 796, 14631, 3103, 332, 353, 1600, 366, 1102, 332, 353, 6...
3
46
def hello_world(): """Hello world""" message = 'hello world' print(message.title()) hello_world()
[ 4299, 23748, 62, 6894, 33529, 198, 220, 220, 220, 37227, 15496, 995, 37811, 198, 220, 220, 220, 3275, 796, 705, 31373, 995, 6, 198, 220, 220, 220, 3601, 7, 20500, 13, 7839, 28955, 628, 198, 31373, 62, 6894, 3419, 198 ]
2.8
40
import unittest from Observers import Observer, ObserverMailServer, ObserverPbx from Subjects import Subject, SubjectEflow if __name__ == '__main__': unittest.main()
[ 11748, 555, 715, 395, 198, 6738, 11086, 263, 690, 1330, 27058, 11, 27058, 25804, 10697, 11, 27058, 47, 65, 87, 198, 6738, 43815, 1330, 15540, 11, 15540, 36, 11125, 628, 198, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 1035...
3.264151
53
""" Day 04 """ from logger import logger def main() -> None: """ Import the puzzle input, process and display the results. """ puzzle_input = import_list() logger.debug(puzzle_input) final_score = play_bingo(puzzle_input) for result in final_score: logger.info(f"The final score i...
[ 37811, 198, 12393, 8702, 198, 198, 37811, 198, 6738, 49706, 1330, 49706, 628, 198, 4299, 1388, 3419, 4613, 6045, 25, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 17267, 262, 15027, 5128, 11, 1429, 290, 3359, 262, 2482, 13, 628, 220,...
2.082884
2,039
from durations import Duration from typing import Any, Dict, Optional from timeeval import Algorithm, TrainingType, InputDimensionality from timeeval.adapters import DockerAdapter from timeeval.params import ParameterConfig _eif_parameters: Dict[str, Dict[str, Any]] = { "extension_level": { "defaultValue": None, ...
[ 6738, 288, 20074, 1330, 22920, 198, 6738, 19720, 1330, 4377, 11, 360, 713, 11, 32233, 198, 198, 6738, 640, 18206, 1330, 978, 42289, 11, 13614, 6030, 11, 23412, 29271, 3004, 1483, 198, 6738, 640, 18206, 13, 324, 12126, 1330, 25716, 47307...
3.097619
420
""" Convenience classes for assembling graph models. """ from __future__ import print_function from __future__ import division from __future__ import unicode_literals __author__ = "Han Altae-Tran and Bharath Ramsundar" __copyright__ = "Copyright 2016, Stanford University" __license__ = "MIT" import tensorflow as tf f...
[ 37811, 198, 3103, 574, 1240, 6097, 329, 40525, 4823, 4981, 13, 198, 37811, 198, 6738, 11593, 37443, 834, 1330, 3601, 62, 8818, 198, 6738, 11593, 37443, 834, 1330, 7297, 198, 6738, 11593, 37443, 834, 1330, 28000, 1098, 62, 17201, 874, 19...
3.48
125
# Generated by the protocol buffer compiler. DO NOT EDIT! # source: yandex/cloud/access/access.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) from google.protobuf.internal import enum_type_wrapper from google.protobuf import descriptor as _descriptor from google.protobuf i...
[ 2, 2980, 515, 416, 262, 8435, 11876, 17050, 13, 220, 8410, 5626, 48483, 0, 198, 2, 2723, 25, 331, 392, 1069, 14, 17721, 14, 15526, 14, 15526, 13, 1676, 1462, 198, 198, 11748, 25064, 198, 62, 65, 28, 17597, 13, 9641, 62, 10951, 58,...
2.472544
8,122
from django.urls import path from .views import ( UserListView, UserUpdateView, UserProfileView, UserDeleteView, AcceptInvitationView, SpecialtyListView, SpecialtyCreateView, SpecialtyUpdateView, SpecialtyDeleteView ) app_name = 'users' urlpatterns = [ path('', UserListView.as_view(), name='list'), ...
[ 6738, 42625, 14208, 13, 6371, 82, 1330, 3108, 198, 198, 6738, 764, 33571, 1330, 357, 198, 220, 220, 220, 11787, 8053, 7680, 11, 11787, 10260, 7680, 11, 11787, 37046, 7680, 11, 11787, 38727, 7680, 11, 198, 220, 220, 220, 21699, 19904, ...
2.763231
359
# This code is part of Qiskit. # # (C) Copyright IBM 2021. # # This code is licensed under the Apache License, Version 2.0. You may # obtain a copy of this license in the LICENSE.txt file in the root directory # of this source tree or at http://www.apache.org/licenses/LICENSE-2.0. # # Any modifications or derivative wo...
[ 2, 770, 2438, 318, 636, 286, 1195, 1984, 270, 13, 198, 2, 198, 2, 357, 34, 8, 15069, 19764, 33448, 13, 198, 2, 198, 2, 770, 2438, 318, 11971, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 13, 921, 743, 198, 2, 7330, 257, 486...
2.496849
952
#!/usr/bin/env python # encoding: utf-8 import sys import getopt import re import os import pylab as plt import numpy as np # Define the variables for which the residuals will be plotted variables = ["Ux", "Uy", "T", "p_rgh", "k", "epsilon"] # Get the arguments of the script try: options, args = getopt.getopt(s...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 21004, 25, 3384, 69, 12, 23, 198, 198, 11748, 25064, 198, 11748, 651, 8738, 198, 11748, 302, 198, 11748, 28686, 198, 11748, 279, 2645, 397, 355, 458, 83, 198, 11748, 299, 32152, 3...
2.624856
869
# Generate the vitae.json file used to populate the Vitae section of the website. import pandas as pd import re from datetime import datetime from collections import defaultdict import json # Publications if __name__ == "__main__": # FILEPATH = "D:/Dropbox/projects/personal_cv/vitae.xlsx" # We can p...
[ 2, 2980, 378, 262, 9090, 3609, 13, 17752, 2393, 973, 284, 48040, 262, 18271, 3609, 2665, 286, 262, 3052, 13, 201, 198, 201, 198, 11748, 19798, 292, 355, 279, 67, 201, 198, 11748, 302, 201, 198, 6738, 4818, 8079, 1330, 4818, 8079, 20...
2.464789
355
""" Cement generate extension module. """ import re import os import inspect import yaml import shutil from .. import Controller, minimal_logger, shell from ..utils.version import VERSION, get_version LOG = minimal_logger(__name__)
[ 37811, 198, 34, 972, 7716, 7552, 8265, 13, 198, 37811, 198, 198, 11748, 302, 198, 11748, 28686, 198, 11748, 10104, 198, 11748, 331, 43695, 198, 11748, 4423, 346, 198, 6738, 11485, 1330, 22741, 11, 10926, 62, 6404, 1362, 11, 7582, 198, ...
3.449275
69
from . import forms from . import views ADMIN_ROLE = "Administrator" MEMBER_ROLE = "Member" GUEST_ROLE = "Guest" DEFAULT_ROLES = [ADMIN_ROLE, MEMBER_ROLE, GUEST_ROLE]
[ 6738, 764, 1330, 5107, 198, 6738, 764, 1330, 5009, 198, 198, 2885, 23678, 62, 13252, 2538, 796, 366, 41862, 12392, 1, 198, 44, 28952, 62, 13252, 2538, 796, 366, 27608, 1, 198, 38022, 6465, 62, 13252, 2538, 796, 366, 42481, 1, 198, 1...
2.414286
70
from .gpxfile import get_hr_measurements from .utils import interpolate from operator import itemgetter def __calculate_moving_sums(points, window): """ Calculates hr moving sums of the window len """ time, hrs = zip(*points) moving_sum = sum(hrs[0:window]) sums = [(time[0], moving_sum)] for i, t ...
[ 6738, 764, 70, 8416, 7753, 1330, 651, 62, 11840, 62, 1326, 5015, 902, 198, 6738, 764, 26791, 1330, 39555, 378, 198, 6738, 10088, 1330, 2378, 1136, 353, 628, 198, 4299, 11593, 9948, 3129, 378, 62, 31462, 62, 82, 5700, 7, 13033, 11, 4...
2.62635
463
#! /usr/bin/env python3 # This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. import argparse import xml.etree.ElementTree as ET import os import sys import shutil import ate...
[ 2, 0, 1220, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 2, 770, 8090, 6127, 5178, 318, 2426, 284, 262, 2846, 286, 262, 29258, 5094, 198, 2, 13789, 11, 410, 13, 362, 13, 15, 13, 1002, 257, 4866, 286, 262, 4904, 43, 373, 407, 9387...
2.42892
2,870
from discord.ext import commands import discord
[ 6738, 36446, 13, 2302, 1330, 9729, 198, 11748, 36446, 628, 198 ]
4.545455
11
from ml_model.model import KickModel import numpy as np import pandas as pd import eli5 import joblib import flask from flask import Flask, render_template, request, jsonify app = Flask(__name__) model_oh = joblib.load('ml_model/estimators/model_oh.sav') model_hel = joblib.load('ml_model/estimators/model_hel.sav') e...
[ 6738, 25962, 62, 19849, 13, 19849, 1330, 10279, 17633, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 19798, 292, 355, 279, 67, 198, 11748, 1288, 72, 20, 198, 11748, 1693, 8019, 198, 11748, 42903, 220, 198, 6738, 42903, 1330, 46947, 11...
2.708134
209
from snowddl.blueprint import PrimaryKeyBlueprint from snowddl.resolver.abc_schema_object_resolver import AbstractSchemaObjectResolver, ResolveResult, ObjectType
[ 6738, 6729, 1860, 75, 13, 17585, 4798, 1330, 21087, 9218, 14573, 4798, 198, 6738, 6729, 1860, 75, 13, 411, 14375, 13, 39305, 62, 15952, 2611, 62, 15252, 62, 411, 14375, 1330, 27741, 27054, 2611, 10267, 4965, 14375, 11, 1874, 6442, 23004...
3.622222
45
import os import compas from compas.datastructures import Mesh from compas_rhino.artists import MeshArtist HERE = os.path.dirname(__file__) DATA = os.path.join(HERE, 'data') FILE = os.path.join(DATA, 'faces.obj') mesh = Mesh.from_obj(FILE) artist = MeshArtist(mesh, layer="Mesh") artist.draw_vertices( color={ke...
[ 11748, 28686, 198, 11748, 552, 292, 198, 198, 6738, 552, 292, 13, 19608, 459, 1356, 942, 1330, 47529, 198, 6738, 552, 292, 62, 17179, 2879, 13, 433, 1023, 1330, 47529, 43020, 198, 198, 39, 9338, 796, 28686, 13, 6978, 13, 15908, 3672, ...
2.490775
271
# The Pokemon class should receive a name (string) and health (int) upon initialization. # It should also have a method called pokemon_details that returns the information about the pokemon: # "{pokemon_name} with health {pokemon_health}"
[ 2, 383, 14878, 1398, 815, 3328, 257, 1438, 357, 8841, 8, 290, 1535, 357, 600, 8, 2402, 37588, 13, 198, 2, 632, 815, 635, 423, 257, 2446, 1444, 43962, 62, 36604, 326, 5860, 262, 1321, 546, 262, 43962, 25, 198, 2, 45144, 79, 12717, ...
4.267857
56
"""Tests for the pandas helpers in the pd_helpers.py module.""" import pytest from pandas.testing import assert_frame_equal from tests.conftest import create_dataframe from ons_utils.pandas import * def test_nested_dict_to_df(): """Test for nested_dict_to_df.""" input_d = { 'bones': { 'f...
[ 37811, 51, 3558, 329, 262, 19798, 292, 49385, 287, 262, 279, 67, 62, 16794, 364, 13, 9078, 8265, 526, 15931, 198, 11748, 12972, 9288, 198, 198, 6738, 19798, 292, 13, 33407, 1330, 6818, 62, 14535, 62, 40496, 198, 198, 6738, 5254, 13, ...
2.080979
531
""":mod:`lsf_ibutils.ibsub` -- Interactive batch submission utility """
[ 15931, 1298, 4666, 25, 63, 7278, 69, 62, 571, 26791, 13, 571, 7266, 63, 1377, 21365, 15458, 14498, 10361, 198, 37811, 198 ]
3.272727
22
import os splited_path = os.path.realpath(__file__).split('\\')[:-1] fish_path = '\\'.join(splited_path) fish_json_name = "fish.json" fish_json_path = os.path.join(fish_path, fish_json_name)
[ 11748, 28686, 198, 198, 22018, 863, 62, 6978, 796, 28686, 13, 6978, 13, 5305, 6978, 7, 834, 7753, 834, 737, 35312, 10786, 6852, 11537, 58, 21912, 16, 60, 198, 11084, 62, 6978, 796, 705, 6852, 4458, 22179, 7, 22018, 863, 62, 6978, 8,...
2.4125
80
# # Created by Soldoskikh Kirill. # Copyright 2018 Intuition. All rights reserved. # import os import platform from setuptools import setup from setuptools.command.build_ext import build_ext from distutils.extension import Extension from Cython.Build import cythonize from rbp_setup_tools.code_generation import gener...
[ 2, 198, 2, 220, 15622, 416, 12324, 418, 74, 13848, 7385, 359, 13, 198, 2, 220, 15069, 2864, 2558, 84, 653, 13, 1439, 2489, 10395, 13, 198, 2, 198, 198, 11748, 28686, 198, 11748, 3859, 198, 6738, 900, 37623, 10141, 1330, 9058, 198, ...
2.138508
2,628
from django.contrib.auth import login, authenticate, REDIRECT_FIELD_NAME, get_user_model from django.contrib import messages from django.contrib.auth.mixins import LoginRequiredMixin from django.contrib.auth.views import PasswordResetView as BasePasswordResetView, SuccessURLAllowedHostsMixin from django.shortcuts impor...
[ 6738, 42625, 14208, 13, 3642, 822, 13, 18439, 1330, 17594, 11, 8323, 5344, 11, 23848, 40, 23988, 62, 44603, 62, 20608, 11, 651, 62, 7220, 62, 19849, 198, 6738, 42625, 14208, 13, 3642, 822, 1330, 6218, 198, 6738, 42625, 14208, 13, 3642...
3.313725
357
from ..conversations.corpus import Conversation from ..conversations.emails import Email from collections import Counter import matplotlib import pandas as pd import json from neo4j import GraphDatabase
[ 6738, 11485, 1102, 690, 602, 13, 10215, 79, 385, 1330, 42427, 198, 6738, 11485, 1102, 690, 602, 13, 368, 1768, 1330, 9570, 628, 198, 198, 6738, 17268, 1330, 15034, 198, 11748, 2603, 29487, 8019, 198, 11748, 19798, 292, 355, 279, 67, 1...
2.558824
102
import numpy as np from PIL import Image from keras.models import load_model img_gray = Image.open('1002.png') number = np.array(img_gray) print(number.shape) print('shape',number.flatten().shape) print('number:',number) number = number.astype('float32') number = number/255 # number = number.flatten() print('number....
[ 11748, 299, 32152, 355, 45941, 198, 6738, 350, 4146, 1330, 7412, 198, 6738, 41927, 292, 13, 27530, 1330, 3440, 62, 19849, 198, 198, 9600, 62, 44605, 796, 7412, 13, 9654, 10786, 3064, 17, 13, 11134, 11537, 198, 17618, 796, 45941, 13, 1...
2.770732
205
{ "includes": [ "../common.gypi" ], "targets": [ { "target_name": "libgdal_ogr_mem_frmt", "type": "static_library", "sources": [ "../gdal/ogr/ogrsf_frmts/mem/ogrmemdatasource.cpp", "../gdal/ogr/ogrsf_frmts/mem/ogrmemlayer.cpp", "../gdal/ogr/ogrsf_frmts/mem/ogrmemdriver.cpp" ], "include...
[ 90, 198, 197, 1, 42813, 1298, 685, 198, 197, 197, 1, 40720, 11321, 13, 1360, 14415, 1, 198, 197, 4357, 198, 197, 1, 83, 853, 1039, 1298, 685, 198, 197, 197, 90, 198, 197, 197, 197, 1, 16793, 62, 3672, 1298, 366, 8019, 21287, 282...
1.710407
221
from dataclasses import dataclass, field from typing import Mapping, List, Any from datetime import datetime import logging import pandas as pd import glob import numpy as np import logging import os from collections import OrderedDict import nrrd import vtk import vedo from vtk.util.numpy_support import numpy_to_vtk ...
[ 6738, 4818, 330, 28958, 1330, 4818, 330, 31172, 11, 2214, 198, 6738, 19720, 1330, 337, 5912, 11, 7343, 11, 4377, 198, 6738, 4818, 8079, 1330, 4818, 8079, 198, 11748, 18931, 198, 11748, 19798, 292, 355, 279, 67, 198, 11748, 15095, 198, ...
2.948837
215
# # For licensing see accompanying LICENSE file. # Copyright (C) 2021 Apple Inc. All Rights Reserved. # ''' Dataset file ''' import sys import time import json import copy from itertools import chain from tqdm import tqdm, trange import torch from torch.utils.data import DataLoader, RandomSampler SPECIAL_TOKENS = {...
[ 2, 198, 2, 1114, 15665, 766, 19249, 38559, 24290, 2393, 13, 198, 2, 15069, 357, 34, 8, 33448, 4196, 3457, 13, 1439, 6923, 33876, 13, 198, 2, 198, 198, 7061, 6, 198, 27354, 292, 316, 2393, 198, 7061, 6, 198, 198, 11748, 25064, 198,...
2.354839
279
# Copyright (c) 2013 Nicolas Dandrimont <nicolas.dandrimont@crans.org> # # Permission is hereby granted, free of charge, to any person obtaining a # copy of this software and associated documentation files (the "Software"), # to deal in the Software without restriction, including without limitation # the rights to use,...
[ 2, 15069, 357, 66, 8, 2211, 29737, 360, 392, 3036, 756, 1279, 6988, 12456, 13, 67, 392, 3036, 756, 31, 6098, 504, 13, 2398, 29, 198, 2, 198, 2, 2448, 3411, 318, 29376, 7520, 11, 1479, 286, 3877, 11, 284, 597, 1048, 16727, 257, 1...
2.537578
958
# Python provides a built-in method called random.shuffle that will shuffle the list data type. Do not use this. # For this assignment, you are to create your own shuffle algorithm that will take as input a sorted list and randomly shuffle the items before returning the list. Try to make your algorithm as efficient a...
[ 2, 11361, 3769, 257, 3170, 12, 259, 2446, 1444, 4738, 13, 1477, 18137, 326, 481, 36273, 262, 1351, 1366, 2099, 13, 220, 2141, 407, 779, 428, 13, 198, 2, 1114, 428, 16237, 11, 345, 389, 284, 2251, 534, 898, 36273, 11862, 326, 481, ...
3.882155
297
# -*- coding: utf-8 -*- """Template Helpers used in workbox""" import logging import socket from datetime import datetime from markupsafe import Markup import psutil import tg log = logging.getLogger(__name__) def current_year(): """ Return current year. """ now = datetime.now() return now.strftime('%Y...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 30800, 10478, 364, 973, 287, 670, 3524, 37811, 198, 198, 11748, 18931, 198, 11748, 17802, 198, 6738, 4818, 8079, 1330, 4818, 8079, 198, 6738, 1317, 4739, 8635, 1330...
2.8307
443
import csv import os from pathlib import Path from xml.etree import ElementTree as ET from tqdm import tqdm from scipy.spatial.transform import Rotation from skimage.io import imread import numpy as np from tadataka.camera import CameraModel, CameraParameters, FOV from tadataka.dataset.frame import Frame from tadatak...
[ 11748, 269, 21370, 198, 11748, 28686, 198, 6738, 3108, 8019, 1330, 10644, 198, 6738, 35555, 13, 316, 631, 1330, 11703, 27660, 355, 12152, 198, 198, 6738, 256, 80, 36020, 1330, 256, 80, 36020, 198, 6738, 629, 541, 88, 13, 2777, 34961, ...
3.457364
129
from typing import Callable, TypeVar, Union, Tuple from krogon.infix import Infix A = TypeVar('A') B = TypeVar('B') E = TypeVar('E') Maybe = Union[Tuple['just', A], Tuple['nothing']] def _cast_to_maybe(result): if result is None: return nothing() if isinstance(result, tuple) and len(result...
[ 6738, 19720, 1330, 4889, 540, 11, 5994, 19852, 11, 4479, 11, 309, 29291, 198, 6738, 479, 3828, 261, 13, 10745, 844, 1330, 4806, 844, 198, 198, 32, 796, 5994, 19852, 10786, 32, 11537, 198, 33, 796, 5994, 19852, 10786, 33, 11537, 198, ...
2.521277
188
# Desafio 009 # Faa um programa que leia um numero inteiro qualquer # e mostre na tela a sua tabuada. n = int(input('digite um numero. ')) r1 = n * 1 r2 = (n * 2) r3 = (n * 3) r4 = (n * 4) r5 = (n * 5) r6 = (n * 6) r7 = (n * 7) r8 = (n * 8) r9 = (n * 9) r10 = (n * 10) print('A Tabuada de {} '.format(n)) print ('{} x 1...
[ 2, 2935, 1878, 952, 3571, 24, 198, 2, 376, 7252, 23781, 1430, 64, 8358, 443, 544, 23781, 997, 3529, 493, 68, 7058, 4140, 10819, 198, 2, 304, 749, 260, 12385, 256, 10304, 257, 424, 64, 7400, 84, 4763, 13, 198, 198, 77, 796, 493, ...
2.023217
603
from tools.TelloEdu import TelloEdu from tools.Controller import * from tools.SocketObject import SocketClient
[ 6738, 4899, 13, 51, 11109, 36, 646, 1330, 309, 11109, 36, 646, 198, 6738, 4899, 13, 22130, 1330, 1635, 198, 6738, 4899, 13, 39105, 10267, 1330, 47068, 11792 ]
3.928571
28
# Copyright (c) 2015 Red Hat, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ...
[ 2, 15069, 357, 66, 8, 1853, 2297, 10983, 11, 3457, 13, 198, 2, 198, 2, 220, 220, 220, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 345, 743, 198, 2, 220, 220, 220, 407, 779, 428, 2393, 284...
2.902676
411
import json from .base_serializer import BaseSerializer
[ 11748, 33918, 198, 198, 6738, 764, 8692, 62, 46911, 7509, 1330, 7308, 32634, 7509, 628 ]
3.866667
15
import requests locations = ['', '', ''] payload = {'mnTq': '', 'lang': 'ru'} for location in locations: response = requests.get(f'http://wttr.in/{location}', params=payload) response.raise_for_status() print(response.text)
[ 11748, 7007, 198, 198, 17946, 602, 796, 37250, 3256, 705, 3256, 10148, 60, 198, 15577, 2220, 796, 1391, 6, 10295, 51, 80, 10354, 705, 3256, 705, 17204, 10354, 705, 622, 6, 92, 198, 198, 1640, 4067, 287, 7064, 25, 198, 220, 220, 220,...
2.615385
91
"""Added model for photo comments Revision ID: 576712576c48 Revises: 75bb906df167 Create Date: 2018-03-30 02:06:22.877079 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = '576712576c48' down_revision = '75bb906df167' branch_labels = None depends_o...
[ 37811, 13003, 2746, 329, 4590, 3651, 201, 198, 201, 198, 18009, 1166, 4522, 25, 7632, 3134, 1065, 37452, 66, 2780, 201, 198, 18009, 2696, 25, 5441, 11848, 24, 3312, 7568, 21940, 201, 198, 16447, 7536, 25, 2864, 12, 3070, 12, 1270, 781...
2.42029
138
import basic_http.session basic_http.session.LIB_VERSION = 'v0.0.4-beta' basic_http.session.DEFAULT_AGENT = 'basic-http version ' + basic_http.session.LIB_VERSION
[ 11748, 4096, 62, 4023, 13, 29891, 198, 198, 35487, 62, 4023, 13, 29891, 13, 40347, 62, 43717, 796, 705, 85, 15, 13, 15, 13, 19, 12, 31361, 6, 198, 35487, 62, 4023, 13, 29891, 13, 7206, 38865, 62, 4760, 3525, 796, 705, 35487, 12, ...
2.827586
58
from datetime import datetime import warnings import logging from django.db.models import Q, Case, Value, When from django.core.cache import caches, CacheKeyWarning import django.apps from usaspending_api.references.models import Agency, Location, RefCountryCode from usaspending_api.references.helpers import canonica...
[ 6738, 4818, 8079, 1330, 4818, 8079, 198, 11748, 14601, 198, 11748, 18931, 198, 198, 6738, 42625, 14208, 13, 9945, 13, 27530, 1330, 1195, 11, 8913, 11, 11052, 11, 1649, 198, 6738, 42625, 14208, 13, 7295, 13, 23870, 1330, 50177, 11, 34088...
2.39625
4,000
from flask_marshmallow import Marshmallow{% if cookiecutter.use_celery == 'yes'%} from celery import Celery celery = Celery(){% endif %} ma = Marshmallow()
[ 6738, 42903, 62, 76, 5406, 42725, 1330, 9786, 42725, 90, 4, 611, 19751, 8968, 353, 13, 1904, 62, 7015, 88, 6624, 705, 8505, 6, 4, 92, 198, 6738, 18725, 1924, 1330, 15248, 1924, 198, 198, 7015, 88, 796, 15248, 1924, 39893, 4, 45762, ...
3.038462
52
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Wed Oct 21 11:11:56 2020 This program is use to plot polarization map from vlbi fits image. You should specify the input fits images by -i or --infile, output file by -o or --output, contour levs by -l or --levs contour base by -c or --cmul polarization...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 198, 41972, 319, 3300, 2556, 2310, 1367, 25, 1157, 25, 3980, 12131, 198, 198, 1212, 1430, 318, 779, 284, 7...
2.472262
703
# Copyright 2011 OpenStack Foundation # 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 requ...
[ 2, 15069, 2813, 4946, 25896, 5693, 198, 2, 1439, 6923, 33876, 13, 198, 2, 198, 2, 220, 220, 220, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 345, 743, 198, 2, 220, 220, 220, 407, 779, 428, ...
3.463054
203
#!/usr/bin/env python import time import numpy as np import tomograpy import lo # object obj = tomograpy.centered_cubic_map(10, 64) obj[:] = tomograpy.phantom.shepp_logan(obj.shape) # data radius = 200 a = tomograpy.fov(obj, radius) data = tomograpy.centered_stack(a, 128, n_images=60, radius=radius, max_lon=np.pi) # m...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 11748, 640, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 16667, 7113, 88, 198, 11748, 2376, 198, 2, 2134, 198, 26801, 796, 16667, 7113, 88, 13, 38050, 62, 66, 549, 291, 62, 8899, ...
2.393401
394
import logging from urllib import urlencode from urllib2 import urlopen import simplejson import xml from xml.parsers.expat import ExpatError from geopy.geocoders.base import Geocoder from geopy import Point, Location, util
[ 11748, 18931, 198, 198, 6738, 2956, 297, 571, 1330, 2956, 11925, 8189, 198, 6738, 2956, 297, 571, 17, 1330, 19016, 9654, 198, 11748, 2829, 17752, 198, 198, 11748, 35555, 198, 6738, 35555, 13, 79, 945, 364, 13, 1069, 8071, 1330, 5518, ...
3.225352
71
# source: https://www.youtube.com/watch?v=U0sVp1xLiyo from tkinter import * master = Tk() c = Canvas(master, width=600, height=400, bg='white') c.pack(expand=True, fill=BOTH) c.bind('<B1-Motion>', paint) master.mainloop()
[ 2, 2723, 25, 3740, 1378, 2503, 13, 11604, 13, 785, 14, 8340, 30, 85, 28, 52, 15, 82, 53, 79, 16, 87, 43, 7745, 78, 198, 6738, 256, 74, 3849, 1330, 1635, 628, 198, 9866, 796, 309, 74, 3419, 198, 198, 66, 796, 1680, 11017, 7, ...
2.306122
98
""" insert default serverInfo """ from yoyo import step __depends__ = {'20220114_02_lHBKM-new-table-serverinfo'} steps = [ step("INSERT INTO `serverInfo` (`onlineMinute`) VALUES (0);") ]
[ 37811, 198, 28463, 4277, 4382, 12360, 198, 37811, 198, 198, 6738, 331, 726, 78, 1330, 2239, 198, 198, 834, 10378, 2412, 834, 796, 1391, 6, 19004, 1264, 1415, 62, 2999, 62, 75, 32886, 42, 44, 12, 3605, 12, 11487, 12, 15388, 10951, 6,...
2.487179
78
# Copyright 2017 FUJITSU LIMITED # 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 req...
[ 2, 220, 220, 220, 15069, 2177, 376, 52, 41, 2043, 12564, 40880, 198, 2, 220, 220, 220, 1439, 6923, 33876, 13, 198, 2, 198, 2, 220, 220, 220, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 345,...
2.706215
885
TINY_WAIT = 1 SMALL_WAIT = 3 MEDIUM_WAIT = 5 BIG_WAIT = 10 SECURITY_WAIT = 15 BATTLE_FINISH_DETECT = 12 BATTLE_NONE_DETECT_TIME = 90 BATTLE_END_SIGNAL_MAX_EXECUTE_TIME = 15 # FLAGS_START_BATTLE_BIAS = (50, 25) FLAGS_ENSURE_TEAM_INFO_BIAS = (25, 50) # FLAGS_CLICK_BIAS_TINY = (3, 3) FLAGS_CLICK_BIAS_SMALL = (5, 5) F...
[ 51, 1268, 56, 62, 15543, 2043, 796, 352, 198, 12310, 7036, 62, 15543, 2043, 796, 513, 198, 30733, 41796, 62, 15543, 2043, 796, 642, 198, 3483, 38, 62, 15543, 2043, 796, 838, 198, 23683, 4261, 9050, 62, 15543, 2043, 796, 1315, 198, 3...
1.819788
283
# Licensed to Elasticsearch B.V. under one or more contributor # license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright # ownership. Elasticsearch B.V. licenses this file to you under # the Apache License, Version 2.0 (the "License"); you may # not use ...
[ 2, 220, 49962, 284, 48567, 12947, 347, 13, 53, 13, 739, 530, 393, 517, 18920, 198, 2, 220, 5964, 11704, 13, 4091, 262, 28536, 2393, 9387, 351, 198, 2, 220, 428, 670, 329, 3224, 1321, 5115, 6634, 198, 2, 220, 9238, 13, 48567, 12947...
3.79386
228
#!/usr/bin/env python import os import requests import re import shutil from arvind import ArvindVideo, ArvindLanguage, YOUTUBE_CACHE_DIR from bs4 import BeautifulSoup from bs4.element import NavigableString from ricecooker.chefs import SushiChef from ricecooker.classes.files import YouTubeVideoFile from ricecooker...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 198, 11748, 28686, 198, 11748, 7007, 198, 11748, 302, 198, 11748, 4423, 346, 198, 198, 6738, 610, 50172, 1330, 943, 50172, 10798, 11, 943, 50172, 32065, 11, 7013, 51, 10526, 36, 62, 34...
2.032763
2,747
from rest_framework.viewsets import ModelViewSet,GenericViewSet from rest_framework.response import Response from api.serializers.domain import * from api.pagination.page import MyPageNumberPagination from api.models import *
[ 6738, 1334, 62, 30604, 13, 1177, 28709, 1330, 9104, 7680, 7248, 11, 46189, 7680, 7248, 198, 6738, 1334, 62, 30604, 13, 26209, 1330, 18261, 198, 198, 6738, 40391, 13, 46911, 11341, 13, 27830, 1330, 1635, 198, 6738, 40391, 13, 79, 363, ...
3.786885
61
#!/usr/local/bin/python3.7 # -*- coding: utf-8 -*- from typing import List '''90. II nums : : [1,2,2] : [ [2], [1], [1,2,2], [2,2], [1,2], [] ] LeetCode https://leetcode-cn.com/problems/subsets-ii ''' if __name__ == '__main__': main()
[ 2, 48443, 14629, 14, 12001, 14, 8800, 14, 29412, 18, 13, 22, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 6738, 19720, 1330, 7343, 198, 198, 7061, 6, 3829, 13, 220, 2873, 628, 997, 82, 628, 198, 198, 25, ...
1.832168
143
import json from .accuracy_tool import gen_micro_macro_result
[ 11748, 33918, 201, 198, 201, 198, 6738, 764, 4134, 23843, 62, 25981, 1330, 2429, 62, 24055, 62, 20285, 305, 62, 20274, 201, 198, 201, 198, 201, 198 ]
2.592593
27
# Copyright 2017 AT&T Intellectual Property. All other 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...
[ 2, 15069, 2177, 5161, 5, 51, 42443, 14161, 13, 220, 1439, 584, 2489, 10395, 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,...
3.536232
345
# 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://www.apache.org/licenses/LICENSE-2.0 # # or in the "licens...
[ 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, 34156, 11074, 198, 2, 921, 743, 407, 779, 428, 2393, ...
3.06875
480
import sys from abc import ABCMeta, abstractmethod from collections import namedtuple from six import add_metaclass
[ 11748, 25064, 198, 6738, 450, 66, 1330, 9738, 48526, 11, 12531, 24396, 198, 6738, 17268, 1330, 3706, 83, 29291, 198, 198, 6738, 2237, 1330, 751, 62, 4164, 330, 31172, 628, 628, 628, 628 ]
3.757576
33
_base_ = ['./tracktor_faster-rcnn_r50_fpn_4e_mot17-public-half.py'] model = dict( pretrains=dict( detector= # noqa: E251 'https://download.openmmlab.com/mmtracking/mot/faster_rcnn/faster-rcnn_r50_fpn_4e_mot17-ffa52ae7.pth' # noqa: E501 )) data_root = 'data/MOT17/' test_set = 'test' data = dict...
[ 62, 8692, 62, 796, 685, 4458, 14, 11659, 13165, 62, 69, 1603, 12, 6015, 20471, 62, 81, 1120, 62, 69, 21999, 62, 19, 68, 62, 27926, 1558, 12, 11377, 12, 13959, 13, 9078, 20520, 198, 19849, 796, 8633, 7, 198, 220, 220, 220, 2181, ...
2.148148
351
from threading import Thread from time import sleep from selenium import webdriver from selenium.webdriver.common.keys import Keys from selenium.webdriver.common.desired_capabilities import DesiredCapabilities from selenium.common.exceptions import TimeoutException from selenium.webdriver.support.ui import WebDriverWai...
[ 6738, 4704, 278, 1330, 14122, 198, 6738, 640, 1330, 3993, 198, 6738, 384, 11925, 1505, 1330, 3992, 26230, 198, 6738, 384, 11925, 1505, 13, 12384, 26230, 13, 11321, 13, 13083, 1330, 26363, 198, 6738, 384, 11925, 1505, 13, 12384, 26230, 1...
2.818
500
# -*- coding: utf-8 -*- from __future__ import unicode_literals import random from random import choice from string import digits from faker import Faker fake = Faker("fi_FI")
[ 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, 11748, 4738, 198, 6738, 4738, 1330, 3572, 198, 6738, 4731, 1330, 19561, 198, 198, 6738, 277, 3110, ...
2.887324
71
#!/usr/bin/env python3 # # -*- mode:python; coding:utf-8 -*- # Copyright (c) 2020 IBM Corp. 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 # # https://www.apache.org...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 2, 1303, 532, 9, 12, 4235, 25, 29412, 26, 19617, 25, 40477, 12, 23, 532, 9, 12, 198, 2, 15069, 357, 66, 8, 12131, 19764, 11421, 13, 1439, 2489, 10395, 13, 198, 2, 198, 2, 4...
3.40416
673
from rest_framework import permissions
[ 6738, 1334, 62, 30604, 1330, 21627, 628, 628, 628 ]
4.888889
9
import os import shutil import sys import multiprocessing import glob if __name__ == '__main__': main()
[ 11748, 28686, 198, 11748, 4423, 346, 198, 11748, 25064, 198, 11748, 18540, 305, 919, 278, 198, 11748, 15095, 628, 628, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 198, 220, 220, 220, 1388, 3419, 198 ]
2.947368
38
# This file is part of Ansible # # Ansible is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # Ansible is distributed in the hope that ...
[ 2, 770, 2393, 318, 636, 286, 28038, 856, 198, 2, 198, 2, 28038, 856, 318, 1479, 3788, 25, 345, 460, 17678, 4163, 340, 290, 14, 273, 13096, 198, 2, 340, 739, 262, 2846, 286, 262, 22961, 3611, 5094, 13789, 355, 3199, 416, 198, 2, ...
3.764368
174
#!/usr/bin/env python from setuptools import setup with open("README.md") as readme_file: readme = readme_file.read() setup( author="Ron Klinkien", author_email="ron@cyberjunky.nl", classifiers=[ "Programming Language :: Python :: 3", "License :: OSI Approved :: MIT License", ...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 198, 6738, 900, 37623, 10141, 1330, 9058, 198, 198, 4480, 1280, 7203, 15675, 11682, 13, 9132, 4943, 355, 1100, 1326, 62, 7753, 25, 198, 220, 220, 220, 1100, 1326, 796, 1100, 1326, 62, ...
2.633987
306
# Copyright 2012 Grid Dynamics # 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...
[ 2, 15069, 2321, 24846, 33806, 198, 2, 1439, 6923, 33876, 13, 198, 2, 198, 2, 220, 220, 220, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 345, 743, 198, 2, 220, 220, 220, 407, 779, 428, 2393,...
3.448819
254
"""Tests of the email subscription mechanism.""" import binascii import flask_webtest import mock import pytest import webtest.app import dnstwister import dnstwister.tools import patches def test_bad_error_codes(webapp): """Test the email error codes being weird doesn't break the page.""" no...
[ 37811, 51, 3558, 286, 262, 3053, 14569, 9030, 526, 15931, 201, 198, 11748, 9874, 292, 979, 72, 201, 198, 11748, 42903, 62, 12384, 9288, 201, 198, 11748, 15290, 201, 198, 11748, 12972, 9288, 201, 198, 11748, 3992, 9288, 13, 1324, 201, ...
2.365546
238
""" 1. 2. 3. """ import csv import datetime import logging import multiprocessing as mp import re import time from collections import OrderedDict import requests from pyquery import PyQuery from requests import RequestException base_url = r'https://sh.lianjia.com/ershoufang' # URL+ seen_urls = set() lock = mp....
[ 37811, 628, 198, 16, 13, 220, 198, 17, 13, 220, 198, 18, 13, 220, 628, 198, 37811, 198, 11748, 269, 21370, 198, 11748, 4818, 8079, 198, 11748, 18931, 198, 11748, 18540, 305, 919, 278, 355, 29034, 198, 11748, 302, 198, 11748, 640, 19...
2.031228
2,882
# Copyright 2016 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ag...
[ 2, 15069, 1584, 3012, 3457, 13, 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, 262, 13789, ...
3.135135
333
import itertools import os from django.conf import settings from django.core.management import call_command from django.core.management.base import BaseCommand
[ 11748, 340, 861, 10141, 198, 11748, 28686, 198, 198, 6738, 42625, 14208, 13, 10414, 1330, 6460, 198, 6738, 42625, 14208, 13, 7295, 13, 27604, 1330, 869, 62, 21812, 198, 6738, 42625, 14208, 13, 7295, 13, 27604, 13, 8692, 1330, 7308, 2157...
3.857143
42
#!/usr/bin/env python3 import argparse import os import glob import csv import sys import re from shutil import which import datetime if __name__ == '__main__': parser = argparse.ArgumentParser(description="OpenLANE summary tool") group = parser.add_mutually_exclusive_group(required=True) # either choose...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 198, 11748, 1822, 29572, 198, 11748, 28686, 198, 11748, 15095, 198, 11748, 269, 21370, 198, 11748, 25064, 198, 11748, 302, 198, 6738, 4423, 346, 1330, 543, 198, 11748, 4818, 8079, 19...
2.429876
2,738
# Copyright 2013-2022 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack import *
[ 2, 15069, 2211, 12, 1238, 1828, 13914, 45036, 3549, 2351, 4765, 11, 11419, 290, 584, 198, 2, 1338, 441, 4935, 34152, 13, 4091, 262, 1353, 12, 5715, 27975, 38162, 9947, 2393, 329, 3307, 13, 198, 2, 198, 2, 30628, 55, 12, 34156, 12, ...
3.421875
64
import logging from functools import wraps import status from httpx import exceptions from .exceptions import AuthError, ClientConnectionError, ClientError, NotFoundError, ServerError logger = logging.getLogger(__name__)
[ 11748, 18931, 198, 6738, 1257, 310, 10141, 1330, 27521, 198, 198, 11748, 3722, 198, 6738, 2638, 87, 1330, 13269, 198, 198, 6738, 764, 1069, 11755, 1330, 26828, 12331, 11, 20985, 32048, 12331, 11, 20985, 12331, 11, 1892, 21077, 12331, 11, ...
3.847458
59
from HPOBenchExperimentUtils.resource_manager.file_resource_manager import FileBasedResourceManager
[ 6738, 6574, 9864, 24421, 20468, 3681, 18274, 4487, 13, 31092, 62, 37153, 13, 7753, 62, 31092, 62, 37153, 1330, 9220, 15001, 26198, 13511, 198 ]
4.166667
24