content
stringlengths
1
1.05M
input_ids
listlengths
1
883k
ratio_char_token
float64
1
22.9
token_count
int64
1
883k
# GridGain Community Edition Licensing # Copyright 2019 GridGain Systems, Inc. # # Licensed under the Apache License, Version 2.0 (the "License") modified with Commons Clause # Restriction; you may not use this file except in compliance with the License. You may obtain a # copy of th...
[ 2, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 24846, 38, 391, 8108, 5061, 10483, 26426, 198, 2, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, ...
2.548508
13,338
#!/usr/bin/env python import sys, os import itertools, shutil path = os.path.abspath(__file__) path = os.path.split(path)[0] os.chdir(path) print path device_ssh_ip = "" ssh_device = device_ssh_ip.split(",") path_tcs = path + "/tcs" path_result= path + "/result" path_allpairs = path + "/allpairs" path_resource = path ...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 11748, 25064, 11, 28686, 198, 11748, 340, 861, 10141, 11, 4423, 346, 198, 198, 6978, 796, 28686, 13, 6978, 13, 397, 2777, 776, 7, 834, 7753, 834, 8, 198, 6978, 796, 28686, 13, 6978, ...
2.658602
372
"""Command models to open a Thermocycler's lid.""" from __future__ import annotations from typing import Optional, TYPE_CHECKING from typing_extensions import Literal, Type from pydantic import BaseModel, Field from ..command import AbstractCommandImpl, BaseCommand, BaseCommandCreate from opentrons.protocol_engine.ty...
[ 37811, 21575, 4981, 284, 1280, 257, 12634, 76, 13733, 22902, 338, 19789, 526, 15931, 198, 6738, 11593, 37443, 834, 1330, 37647, 198, 6738, 19720, 1330, 32233, 11, 41876, 62, 50084, 2751, 198, 6738, 19720, 62, 2302, 5736, 1330, 25659, 1691...
3.615385
156
def multiple_replace(text: str, chars_to_mapping: dict): """ This function is used to replace a dictionary of characters inside a text string :param text: :param chars_to_mapping: :return: """ import re pattern = "|".join(map(re.escape, chars_to_mapping.keys())) return re.sub(patter...
[ 4299, 3294, 62, 33491, 7, 5239, 25, 965, 11, 34534, 62, 1462, 62, 76, 5912, 25, 8633, 2599, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 770, 2163, 318, 973, 284, 6330, 257, 22155, 286, 3435, 2641, 257, 2420, 4731, 198, 220, 220...
2.702899
138
import marshal as ms import zlib import base64 as bs data=b'x\xda\xedZ\xdb\x96\xaa\xc8\xb2\xfd\xa4\x06,\xbb\x8bG\xa1\x04A\xa5\x96\xa2\x80\xbc\t\x94\x80\\t/\xaf\xf8\xf5{F&\xe0\xa5\xac\xd5\xbd\xba\xcf^c\x9cs\xf6\x03\xa3,M"3\xe32cFd\xbe\x04\xafE\xaf\xd7[\x1b}\xf1\x18v\xa6yX\x8e\x87KW<\x05\x1dS0t\xf9\xa2\x16\xf9>\xd4\xe5*...
[ 11748, 22397, 282, 355, 13845, 198, 11748, 1976, 8019, 198, 11748, 2779, 2414, 355, 275, 82, 198, 198, 7890, 28, 65, 6, 87, 59, 87, 6814, 59, 87, 276, 57, 59, 87, 9945, 59, 87, 4846, 59, 87, 7252, 59, 25306, 23, 59, 30894, 17, ...
1.27387
11,133
from django.db import models # Create your models here.
[ 6738, 42625, 14208, 13, 9945, 1330, 4981, 628, 198, 2, 13610, 534, 4981, 994, 13, 198 ]
3.625
16
from django.contrib import admin from users.models import Friendship admin.site.register(Friendship) # Register your models here.
[ 6738, 42625, 14208, 13, 3642, 822, 1330, 13169, 198, 6738, 2985, 13, 27530, 1330, 39993, 628, 198, 28482, 13, 15654, 13, 30238, 7, 23331, 6720, 8, 198, 198, 2, 17296, 534, 4981, 994, 13, 198 ]
3.8
35
import docx doc = docx.Document('demo.docx') print('paragraphs number: %s' % len(doc.paragraphs)) print('1st paragraph: %s' % doc.paragraphs[0].text) print('2nd paragraph: %s' % doc.paragraphs[1].text) print('paragraphs runs: %s' % len(doc.paragraphs[1].runs)) print('1st paragraph run: %s' % doc.paragraphs[1].r...
[ 11748, 2205, 87, 201, 198, 201, 198, 15390, 796, 2205, 87, 13, 24941, 10786, 9536, 78, 13, 15390, 87, 11537, 201, 198, 4798, 10786, 20360, 82, 1271, 25, 4064, 82, 6, 4064, 18896, 7, 15390, 13, 20360, 82, 4008, 201, 198, 4798, 10786,...
2.519048
210
# Analysis the data generated from on policy simulations of QL, QLP and GQL. from BD.sim.sims import sims_analysis, merge_sim_files, extract_run_rew from BD.util.paths import Paths if __name__ == '__main__': sims_analysis_BD() sims_analysis_GQL_BD() data = merge_sim_files(lambda x: True, Paths.rest_pa...
[ 2, 14691, 262, 1366, 7560, 422, 319, 2450, 27785, 286, 1195, 43, 11, 1195, 19930, 290, 402, 9711, 13, 198, 198, 6738, 28023, 13, 14323, 13, 82, 12078, 1330, 985, 82, 62, 20930, 11, 20121, 62, 14323, 62, 16624, 11, 7925, 62, 5143, ...
2.392749
331
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import os import re import glob import random import struct if __name__ == '__main__': main()
[ 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, 11748, 28686, 198, 11748, 302, 198, 11748, 15095, 198, 11748, 4738, 198, 11748, 2878, 628, 628, 628, 198, 198,...
2.508197
61
from subprocess import run, PIPE, TimeoutExpired, CompletedProcess from codes import exitcodes
[ 6738, 850, 14681, 1330, 1057, 11, 350, 4061, 36, 11, 3862, 448, 3109, 6474, 11, 32983, 18709, 198, 6738, 12416, 1330, 8420, 40148 ]
4.086957
23
import json from pfm.pf_command.base import BaseCommand from pfm.util.log import logger
[ 11748, 33918, 198, 198, 6738, 279, 38353, 13, 79, 69, 62, 21812, 13, 8692, 1330, 7308, 21575, 198, 6738, 279, 38353, 13, 22602, 13, 6404, 1330, 49706, 628 ]
3.214286
28
#!/usr/bin/python # # Copyright 2009 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable...
[ 2, 48443, 14629, 14, 8800, 14, 29412, 198, 2, 198, 2, 15069, 3717, 3012, 3457, 13, 198, 2, 198, 2, 220, 220, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 2, 220, 220, 345, 743, 407, 7...
3.269504
282
import os from pathlib import Path __all__ = ['list_files_recur', 'scan_and_create_dir_tree', 'get_all_data_files', 'get_subsubdirs'] def list_files_recur(path): """ Cheater function that wraps path.rglob(). :param Path path: path to list recursively :return list: list of Path objects """ fi...
[ 11748, 28686, 198, 6738, 3108, 8019, 1330, 10644, 198, 198, 834, 439, 834, 796, 37250, 4868, 62, 16624, 62, 8344, 333, 3256, 705, 35836, 62, 392, 62, 17953, 62, 15908, 62, 21048, 3256, 705, 1136, 62, 439, 62, 7890, 62, 16624, 3256, ...
2.625148
843
# Copyright (C) 2018-2022 Intel Corporation # SPDX-License-Identifier: Apache-2.0 import numpy as np from openvino.tools.mo.front.common.partial_infer.utils import dynamic_dimension_value, shape_array, set_input_shapes from openvino.tools.mo.ops.op import Op
[ 2, 15069, 357, 34, 8, 2864, 12, 1238, 1828, 8180, 10501, 198, 2, 30628, 55, 12, 34156, 12, 33234, 7483, 25, 24843, 12, 17, 13, 15, 198, 198, 11748, 299, 32152, 355, 45941, 198, 198, 6738, 1280, 85, 2879, 13, 31391, 13, 5908, 13, ...
3.011494
87
#!/usr/bin/env python import numpy as np, os, sys from get_sepsis_score import load_sepsis_model, get_sepsis_score if __name__ == '__main__': # Parse arguments. if len(sys.argv) != 3: raise Exception('Include the input and output directories as arguments, e.g., python driver.py input output.') in...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 198, 11748, 299, 32152, 355, 45941, 11, 28686, 11, 25064, 198, 6738, 651, 62, 325, 862, 271, 62, 26675, 1330, 3440, 62, 325, 862, 271, 62, 19849, 11, 651, 62, 325, 862, 271, 62, 26...
2.275701
642
#!/usr/bin/python3.5 # -*-coding: utf-8 -* from collections import defaultdict from threading import Thread from time import perf_counter, time from LspLibrary import bcolors import time import matplotlib.pyplot as plt
[ 2, 48443, 14629, 14, 8800, 14, 29412, 18, 13, 20, 198, 2, 532, 9, 12, 66, 7656, 25, 3384, 69, 12, 23, 532, 9, 198, 198, 6738, 17268, 1330, 4277, 11600, 198, 6738, 4704, 278, 1330, 14122, 198, 6738, 640, 1330, 23035, 62, 24588, 1...
3.142857
70
from .python.parser import PythonParser all_parsers = [PythonParser]
[ 6738, 764, 29412, 13, 48610, 1330, 11361, 46677, 198, 198, 439, 62, 79, 945, 364, 796, 685, 37906, 46677, 60, 198 ]
3.333333
21
import pandas as pd import numpy as np import matplotlib.pyplot as plt import seaborn as sns from pathlib import Path #app import methylcheck # uses .load; get_sex uses methylprep models too and detect_array() import logging LOGGER = logging.getLogger(__name__) logging.basicConfig(level=logging.INFO) def _get_copy_n...
[ 11748, 19798, 292, 355, 279, 67, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 198, 11748, 384, 397, 1211, 355, 3013, 82, 198, 6738, 3108, 8019, 1330, 10644, 198, 2, 1324, 198, 11748...
2.471633
8,390
# Generated by Django 3.1.2 on 2020-11-15 15:37 import django.core.validators from django.db import migrations, models
[ 2, 2980, 515, 416, 37770, 513, 13, 16, 13, 17, 319, 12131, 12, 1157, 12, 1314, 1315, 25, 2718, 198, 198, 11748, 42625, 14208, 13, 7295, 13, 12102, 2024, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 11, 4981, 628 ]
2.95122
41
import subprocess from git_fortune._compat import fix_line_endings from git_fortune.version import __version__ def test_noargs(capfd): """just make sure it doesn't crashfail""" subprocess.check_call(["git-fortune"]) captured = capfd.readouterr() assert "GIT TIP #" in captured.out # from the box ...
[ 11748, 850, 14681, 198, 198, 6738, 17606, 62, 37359, 13557, 5589, 265, 1330, 4259, 62, 1370, 62, 437, 654, 198, 6738, 17606, 62, 37359, 13, 9641, 1330, 11593, 9641, 834, 628, 628, 628, 198, 4299, 1332, 62, 3919, 22046, 7, 11128, 16344...
2.917098
193
_base_ = [ '../_base_/models/faster_rcnn_r50_fpn.py' ] model = dict( type='FasterRCNN', # pretrained='torchvision://resnet50', backbone=dict( type='ResNet', depth=50, num_stages=4, out_indices=(0, 1, 2, 3), frozen_stages=1, norm_cfg=dict(type='BN', requir...
[ 62, 8692, 62, 796, 685, 198, 220, 220, 220, 705, 40720, 62, 8692, 62, 14, 27530, 14, 69, 1603, 62, 6015, 20471, 62, 81, 1120, 62, 69, 21999, 13, 9078, 6, 198, 60, 198, 198, 19849, 796, 8633, 7, 198, 220, 220, 220, 2099, 11639, ...
1.765082
1,409
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. import torch, math from torch import nn from torch.autograd import Function from torch.autograd.function import once_differentiable from torch.nn.modules.utils import _pair from SparseConvNet.sparseconvnet.tools_3d_2d import sparse_3d_to_dense_2d i...
[ 2, 15069, 357, 66, 8, 3203, 11, 3457, 13, 290, 663, 29116, 13, 1439, 6923, 33876, 13, 198, 11748, 28034, 11, 10688, 198, 6738, 28034, 1330, 299, 77, 198, 6738, 28034, 13, 2306, 519, 6335, 1330, 15553, 198, 6738, 28034, 13, 2306, 519...
3.007874
127
import numpy as np import os from .logger import printLog UNK = "$UNK$" NUM = "$NUM$" NONE = "O" # Class that iterates over CoNLL Dataset #Create a dictionary from dataset def getDictionary(datasets): printLog("Building dictionary: ") dictWords = set() dictTags = set() for dataset in datasets: ...
[ 11748, 299, 32152, 355, 45941, 198, 11748, 28686, 198, 6738, 764, 6404, 1362, 1330, 3601, 11187, 198, 198, 4944, 42, 796, 17971, 4944, 42, 3, 1, 198, 41359, 796, 17971, 41359, 3, 1, 198, 45, 11651, 796, 366, 46, 1, 198, 198, 2, 50...
2.205579
968
import nox FILE_PATHS = ["utils", "main.py"]
[ 11748, 645, 87, 198, 198, 25664, 62, 47, 1404, 7998, 796, 14631, 26791, 1600, 366, 12417, 13, 9078, 8973, 198 ]
2.3
20
import os import df2img import disnake import pandas as pd from PIL import Image import discordbot.config_discordbot as cfg from discordbot.config_discordbot import logger from discordbot.helpers import autocrop_image from gamestonk_terminal.economy import wsj_model
[ 11748, 28686, 198, 198, 11748, 47764, 17, 9600, 198, 11748, 595, 77, 539, 198, 11748, 19798, 292, 355, 279, 67, 198, 6738, 350, 4146, 1330, 7412, 198, 198, 11748, 36446, 13645, 13, 11250, 62, 15410, 585, 13645, 355, 30218, 70, 198, 67...
3.253012
83
import os import yaml import logging logger = logging.getLogger(__name__) # the following model structures for recipes / layers / queries allows searching up the chain # for attributes. If not found in the root recipes level then it will check the server configs.
[ 11748, 28686, 198, 11748, 331, 43695, 198, 11748, 18931, 198, 198, 6404, 1362, 796, 18931, 13, 1136, 11187, 1362, 7, 834, 3672, 834, 8, 198, 198, 2, 262, 1708, 2746, 8573, 329, 14296, 1220, 11685, 1220, 20743, 3578, 10342, 510, 262, 6...
4.060606
66
from .torch2onnx import torch2onnx from .onnx2trt import onnx2trt from .torch2trt import torch2trt from .base import load, save
[ 6738, 764, 13165, 354, 17, 261, 77, 87, 1330, 28034, 17, 261, 77, 87, 198, 6738, 764, 261, 77, 87, 17, 2213, 83, 1330, 319, 77, 87, 17, 2213, 83, 198, 6738, 764, 13165, 354, 17, 2213, 83, 1330, 28034, 17, 2213, 83, 198, 6738, ...
2.461538
52
import numpy as np import torch import framework.ops import t2vretrieval.encoders.mlsent import t2vretrieval.encoders.mlvideo import t2vretrieval.models.globalmatch from t2vretrieval.models.criterion import cosine_sim from t2vretrieval.models.globalmatch import VISENC, TXTENC
[ 11748, 299, 32152, 355, 45941, 198, 11748, 28034, 198, 11748, 9355, 13, 2840, 198, 11748, 256, 17, 85, 1186, 380, 18206, 13, 12685, 375, 364, 13, 4029, 34086, 198, 11748, 256, 17, 85, 1186, 380, 18206, 13, 12685, 375, 364, 13, 4029, ...
2.868687
99
#!/usr/bin/env python # -*- coding: utf-8 -*- # # login.py # @Author : Gustavo Freitas (gustavo@gmf-tech.com) # @Link : # @Date : 12/12/2019, 11:43:07 AM from typing import Optional, Any from fastapi import APIRouter, Body, Depends, HTTPException from fastapi import Header, Security from authentication.models.users...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 198, 2, 17594, 13, 9078, 198, 2, 2488, 13838, 1058, 43715, 78, 4848, 21416, 357, 70, 436, 615, 78, 31, 39870, 69...
3.099707
341
#DronePool module which handles interaction with SITLs from dronekit import Vehicle, VehicleMode, connect from dronekit_sitl import SITL from threading import Lock import node, time import mavparser import threadrunner drone_pool = {} instance_count = 0 env_test = False q = None mq = None lock = Lock()
[ 2, 6187, 505, 27201, 8265, 543, 17105, 10375, 351, 311, 2043, 43, 82, 198, 198, 6738, 12170, 15813, 1330, 21501, 11, 21501, 19076, 11, 2018, 198, 6738, 12170, 15813, 62, 48937, 75, 1330, 311, 2043, 43, 198, 6738, 4704, 278, 1330, 1365...
3.347826
92
# @Title: (Longest String Chain) # @Author: KivenC # @Date: 2019-05-26 20:35:25 # @Runtime: 144 ms # @Memory: 13.3 MB
[ 198, 2, 2488, 19160, 25, 220, 357, 14617, 395, 10903, 21853, 8, 198, 2, 2488, 13838, 25, 509, 1469, 34, 198, 2, 2488, 10430, 25, 13130, 12, 2713, 12, 2075, 1160, 25, 2327, 25, 1495, 198, 2, 2488, 41006, 25, 20224, 13845, 198, 2, ...
2.307692
52
from ctrlUI_lib import createClav2, createSphere import maya.cmds as cmds import maya.OpenMaya as om from functools import partial # Buttons +1 and +3 count = 0 showUI()
[ 6738, 269, 14859, 10080, 62, 8019, 1330, 2251, 2601, 615, 17, 11, 2251, 38882, 198, 11748, 743, 64, 13, 28758, 82, 355, 23991, 82, 198, 11748, 743, 64, 13, 11505, 6747, 64, 355, 39030, 198, 6738, 1257, 310, 10141, 1330, 13027, 198, ...
2.526316
76
#!/usr/bin/env python3 # Copyright 2012-13 Qtrac Ltd. All rights reserved. # This program or module 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) ...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 201, 198, 2, 15069, 220, 2321, 12, 1485, 1195, 2213, 330, 12052, 13, 1439, 2489, 10395, 13, 201, 198, 2, 770, 1430, 393, 8265, 318, 1479, 3788, 25, 345, 460, 17678, 4163, 340, 201, ...
3.385714
280
from abc import ( ABCMeta, ) from concurrent.futures.thread import ( ThreadPoolExecutor, ) from contextlib import ( contextmanager, ) import csv from functools import ( lru_cache, ) import gzip from io import ( BytesIO, TextIOWrapper, ) import json import logging import os import random import r...
[ 6738, 450, 66, 1330, 357, 198, 220, 220, 220, 9738, 48526, 11, 198, 8, 198, 6738, 24580, 13, 69, 315, 942, 13, 16663, 1330, 357, 198, 220, 220, 220, 14122, 27201, 23002, 38409, 11, 198, 8, 198, 6738, 4732, 8019, 1330, 357, 198, 22...
2.525132
756
import connexion import six from openapi_server import query_manager from openapi_server.utils.vars import DATATRANSFORMATION_TYPE_NAME, DATATRANSFORMATION_TYPE_URI from openapi_server.models.data_transformation import DataTransformation # noqa: E501 from openapi_server import util def custom_datasetspecifications_i...
[ 11748, 369, 12413, 295, 198, 11748, 2237, 198, 6738, 1280, 15042, 62, 15388, 1330, 12405, 62, 37153, 198, 6738, 1280, 15042, 62, 15388, 13, 26791, 13, 85, 945, 1330, 360, 1404, 1404, 49, 15037, 35036, 62, 25216, 62, 20608, 11, 360, 14...
2.665576
1,833
import numpy as np import scipy import warnings try: import matplotlib.pyplot as pl import matplotlib except ImportError: warnings.warn("matplotlib could not be loaded!") pass from . import labels from . import colors def monitoring_plot(ind, shap_values, features, feature_names=None): """ Create ...
[ 11748, 299, 32152, 355, 45941, 198, 11748, 629, 541, 88, 198, 11748, 14601, 198, 28311, 25, 198, 220, 220, 220, 1330, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 198, 220, 220, 220, 1330, 2603, 29487, 8019, 198, 16341, 17267, 12331, ...
2.399805
1,028
import re import os import cmd import sys import common from getpass import getpass from kp import KeePassError, get_password from configmanager import ConfigManager, ConfigManagerError common.init()
[ 11748, 302, 198, 11748, 28686, 198, 11748, 23991, 198, 11748, 25064, 198, 11748, 2219, 198, 6738, 651, 6603, 1330, 651, 6603, 198, 6738, 479, 79, 1330, 19799, 14478, 12331, 11, 651, 62, 28712, 220, 198, 6738, 4566, 37153, 1330, 220, 170...
3.830189
53
# -*- coding: utf-8 -*- """ Created on Mon Apr 13 14:57:32 2020 @author: Nicolai """ import sys import os importpath = os.path.dirname(os.path.realpath(__file__)) + "/../" sys.path.append(importpath) from FemPdeBase import FemPdeBase import numpy as np # import from ngsolve import ngsolve as ngs from netgen.geom2d i...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 198, 41972, 319, 2892, 2758, 1511, 1478, 25, 3553, 25, 2624, 12131, 198, 198, 31, 9800, 25, 40513, 1872, 198, 37811, 198, 198, 11748, 25064, 198, 11748, 28686, 19...
1.990909
1,100
import numpy as np from cvxpy import * import copy import time # data for power flow problem import numpy as np n = 12 # total number of nodes m = 18 # number of edges (transmission lines) k = 4 # number of generators # transmission line capacities = TIME = 0 Pmax = np.matrix(""" 4.8005, 1.9246,...
[ 11748, 299, 32152, 355, 45941, 198, 6738, 269, 85, 87, 9078, 1330, 1635, 198, 11748, 4866, 198, 11748, 640, 198, 198, 2, 1366, 329, 1176, 5202, 1917, 198, 11748, 299, 32152, 355, 45941, 198, 77, 796, 1105, 220, 220, 220, 220, 1303, ...
1.868465
1,779
# Binary Search Tree # Given a binary search tree with non-negative values, find the minimum absolute difference between values of any two nodes. # # Example: # # Input: # # 1 # \ # 3 # / # 2 # # Output: # 1 # # Explanation: # The minimum absolute difference is 1, which is the difference between 2 a...
[ 2, 45755, 11140, 12200, 198, 198, 2, 11259, 257, 13934, 2989, 5509, 351, 1729, 12, 31591, 3815, 11, 1064, 262, 5288, 4112, 3580, 1022, 3815, 286, 597, 734, 13760, 13, 198, 2, 198, 2, 17934, 25, 198, 2, 198, 2, 23412, 25, 198, 2, ...
2.623711
194
from company.choices import fr as choices from mighty.errors import BackendError import datetime, logging logger = logging.getLogger(__name__) CHOICES_APE = dict(choices.APE) CHOICES_LEGALFORM = dict(choices.LEGALFORM) CHOICES_SLICE = dict(choices.SLICE_EFFECTIVE)
[ 6738, 1664, 13, 6679, 1063, 1330, 1216, 355, 7747, 198, 6738, 18680, 13, 48277, 1330, 5157, 437, 12331, 198, 11748, 4818, 8079, 11, 18931, 198, 6404, 1362, 796, 18931, 13, 1136, 11187, 1362, 7, 834, 3672, 834, 8, 198, 198, 44899, 3444...
2.944444
90
from sqlalchemy import create_engine, engine from sqlalchemy.ext.declarative import declarative_base from sqlalchemy.orm import sessionmaker import os SQLALCHEMY_DATABASE_URL = os.getenv("DATABASE_URL").replace("postgres://", "postgresql+psycopg2://") engine = create_engine(SQLALCHEMY_DATABASE_URL) SessionLocal = se...
[ 6738, 44161, 282, 26599, 1330, 2251, 62, 18392, 11, 3113, 198, 6738, 44161, 282, 26599, 13, 2302, 13, 32446, 283, 876, 1330, 2377, 283, 876, 62, 8692, 198, 6738, 44161, 282, 26599, 13, 579, 1330, 6246, 10297, 198, 11748, 28686, 198, 1...
2.866197
142
import sys import os import boto import boto.s3.connection import json import inspect import pickle import bunch import yaml import ConfigParser import rados from boto.s3.key import Key from nose.plugins.attrib import attr from nose.tools import eq_ as eq from .reqs import _make_admin_request ragweed_env = None suite...
[ 11748, 25064, 198, 11748, 28686, 198, 11748, 275, 2069, 198, 11748, 275, 2069, 13, 82, 18, 13, 38659, 198, 11748, 33918, 198, 11748, 10104, 198, 11748, 2298, 293, 198, 11748, 7684, 198, 11748, 331, 43695, 198, 11748, 17056, 46677, 198, ...
1.979839
496
""" ``exposing`` """ __version__ = '0.2.2'
[ 37811, 198, 15506, 1069, 32927, 15506, 198, 37811, 198, 198, 834, 9641, 834, 796, 705, 15, 13, 17, 13, 17, 6, 198 ]
2
22
from django.contrib import admin from opensteer.teams.models import Team, Member admin.site.register(Team) admin.site.register(Member)
[ 6738, 42625, 14208, 13, 3642, 822, 1330, 13169, 198, 6738, 1280, 4169, 263, 13, 660, 4105, 13, 27530, 1330, 4816, 11, 10239, 198, 198, 28482, 13, 15654, 13, 30238, 7, 15592, 8, 198, 28482, 13, 15654, 13, 30238, 7, 27608, 8, 198 ]
3.238095
42
from src.utils import check_direction, direction_config, is_intersect # pylint:disable=unexpected-keyword-arg
[ 6738, 12351, 13, 26791, 1330, 2198, 62, 37295, 11, 4571, 62, 11250, 11, 318, 62, 3849, 8831, 198, 198, 2, 279, 2645, 600, 25, 40223, 28, 403, 40319, 12, 2539, 4775, 12, 853, 628, 198 ]
3.228571
35
_all__ = ["db_handler","coin_value_handler"]
[ 62, 439, 834, 796, 14631, 9945, 62, 30281, 2430, 3630, 62, 8367, 62, 30281, 8973 ]
2.933333
15
import unittest from caravan.tables import Tables from caravan.parameter_set import ParameterSet if __name__ == '__main__': unittest.main()
[ 11748, 555, 715, 395, 198, 6738, 44321, 13, 83, 2977, 1330, 33220, 198, 6738, 44321, 13, 17143, 2357, 62, 2617, 1330, 25139, 2357, 7248, 628, 198, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 198, 220, 220, 220, 555,...
3.0625
48
import pytest from pydantic import ValidationError from overhave.transport import OverhaveS3ManagerSettings
[ 11748, 12972, 9288, 198, 6738, 279, 5173, 5109, 1330, 3254, 24765, 12331, 198, 198, 6738, 625, 14150, 13, 7645, 634, 1330, 3827, 14150, 50, 18, 13511, 26232, 628 ]
3.928571
28
"""A generic class to build line-oriented command interpreters. Interpreters constructed with this class obey the following conventions: 1. End of file on input is processed as the command 'EOF'. 2. A command is parsed out of each line by collecting the prefix composed of characters in the identchars member. 3. A ...
[ 37811, 32, 14276, 1398, 284, 1382, 1627, 12, 17107, 3141, 16795, 1010, 13, 198, 198, 9492, 3866, 1010, 12006, 351, 428, 1398, 22389, 262, 1708, 21396, 25, 198, 198, 16, 13, 5268, 286, 2393, 319, 5128, 318, 13686, 355, 262, 3141, 705, ...
3.71131
672
from django.contrib import admin from .models import Order, receiverInfo
[ 6738, 42625, 14208, 13, 3642, 822, 1330, 13169, 198, 198, 6738, 764, 27530, 1330, 8284, 11, 9733, 12360, 628 ]
3.947368
19
from node import Node
[ 6738, 10139, 1330, 19081, 628, 198 ]
4
6
import FWCore.ParameterSet.Config as cms process = cms.Process("LIKELIHOODPDFDBREADER") # process.load("MuonAnalysis.MomentumScaleCalibration.local_CSA08_Y_cff") process.source = cms.Source("EmptySource", numberEventsInRun = cms.untracked.uint32(1), firstRun = cms.untracked.uint32(1) ) process.load("Configur...
[ 11748, 48849, 14055, 13, 36301, 7248, 13, 16934, 355, 269, 907, 198, 198, 14681, 796, 269, 907, 13, 18709, 7203, 43, 18694, 3698, 40, 39, 22808, 20456, 11012, 15675, 1137, 4943, 198, 2, 1429, 13, 2220, 7203, 33239, 261, 32750, 13, 292...
2.482484
628
from transformers import AutoModel, AutoModelForSequenceClassification, AutoTokenizer, AutoConfig from sklearn.model_selection import StratifiedKFold import numpy as np import torch from fast_fine_tuna.dataset import MainDatasetDouble, MainDataset from transformers import AdamW from torch.utils.data import DataLoader i...
[ 6738, 6121, 364, 1330, 11160, 17633, 11, 11160, 17633, 1890, 44015, 594, 9487, 2649, 11, 11160, 30642, 7509, 11, 11160, 16934, 198, 6738, 1341, 35720, 13, 19849, 62, 49283, 1330, 29186, 1431, 42, 37, 727, 198, 11748, 299, 32152, 355, 45...
3.594828
116
# Message class Implementation # @author: Gaurav Yeole <gauravyeole@gmail.com>
[ 2, 16000, 1398, 46333, 198, 2, 2488, 9800, 25, 402, 2899, 615, 11609, 2305, 1279, 70, 2899, 2830, 68, 2305, 31, 14816, 13, 785, 29 ]
3.12
25
#!/usr/bin/python from mod_pywebsocket import msgutil import time
[ 2, 48443, 14629, 14, 8800, 14, 29412, 198, 198, 6738, 953, 62, 9078, 732, 1443, 5459, 1330, 31456, 22602, 198, 11748, 640, 198 ]
2.913043
23
# # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not...
[ 2, 198, 2, 49962, 284, 262, 24843, 10442, 5693, 357, 1921, 37, 8, 739, 530, 198, 2, 393, 517, 18920, 5964, 11704, 13, 220, 4091, 262, 28536, 2393, 198, 2, 9387, 351, 428, 670, 329, 3224, 1321, 198, 2, 5115, 6634, 9238, 13, 220, ...
3.908425
273
# Copyright 2016 The Chromium Authors. All rights reserved. # Use of this source code is govered by a BSD-style # license that can be found in the LICENSE file or at # https://developers.google.com/open-source/licenses/bsd """Convert Monorail PB objects to API PB objects""" import datetime import logging import time ...
[ 2, 15069, 1584, 383, 18255, 1505, 46665, 13, 1439, 2489, 10395, 13, 198, 2, 5765, 286, 428, 2723, 2438, 318, 467, 21917, 416, 257, 347, 10305, 12, 7635, 198, 2, 5964, 326, 460, 307, 1043, 287, 262, 38559, 24290, 2393, 393, 379, 198,...
2.502048
6,836
""" This module contains the rule-based inference (rulebased_deduction engine) """ import itertools from collections import defaultdict from itertools import chain from excut.explanations_mining.descriptions import dump_explanations_to_file from excut.explanations_mining.descriptions_new import Description2, Atom, loa...
[ 37811, 198, 1212, 8265, 4909, 262, 3896, 12, 3106, 32278, 357, 25135, 3106, 62, 9395, 8110, 3113, 8, 198, 37811, 198, 11748, 340, 861, 10141, 198, 6738, 17268, 1330, 4277, 11600, 198, 6738, 340, 861, 10141, 1330, 6333, 198, 198, 6738, ...
2.350866
1,502
import torch.utils.data as data from PIL import Image import os import os.path import numpy as np import pdb import glob IMG_EXTENSIONS = [ '.jpg', '.JPG', '.jpeg', '.JPEG', '.png', '.PNG', '.ppm', '.PPM', '.bmp', '.BMP', ]
[ 11748, 28034, 13, 26791, 13, 7890, 355, 1366, 198, 198, 6738, 350, 4146, 1330, 7412, 198, 11748, 28686, 198, 11748, 28686, 13, 6978, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 279, 9945, 198, 11748, 15095, 198, 198, 3955, 38, 62, ...
2.473684
95
from floodcomparison.core import floodcomparison
[ 6738, 6947, 785, 1845, 1653, 13, 7295, 1330, 6947, 785, 1845, 1653, 198 ]
3.769231
13
import logging import random from datetime import timedelta from typing import TYPE_CHECKING from duration import to_iso8601 from pyramid.httpexceptions import HTTPBadRequest, HTTPCreated, HTTPNotFound, HTTPOk from weaver import sort from weaver.config import WEAVER_CONFIGURATION_ADES, WEAVER_CONFIGURATION_EMS, get_w...
[ 11748, 18931, 198, 11748, 4738, 198, 6738, 4818, 8079, 1330, 28805, 12514, 198, 6738, 19720, 1330, 41876, 62, 50084, 2751, 198, 198, 6738, 9478, 1330, 284, 62, 26786, 4521, 486, 198, 6738, 27944, 13, 2804, 24900, 11755, 1330, 14626, 22069...
3.139194
546
# # PySNMP MIB module CISCO-VSI-CONTROLLER-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/CISCO-VSI-CONTROLLER-MIB # Produced by pysmi-0.3.4 at Mon Apr 29 18:03:33 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7....
[ 2, 198, 2, 9485, 15571, 7378, 337, 9865, 8265, 36159, 8220, 12, 53, 11584, 12, 10943, 5446, 46, 3069, 1137, 12, 8895, 33, 357, 4023, 1378, 16184, 76, 489, 8937, 13, 785, 14, 79, 893, 11632, 8, 198, 2, 7054, 45, 13, 16, 2723, 239...
2.564039
2,436
import base64 import os import arrow import httpx import streamlit as st import sweat from bokeh.models.widgets import Div APP_URL = os.environ["APP_URL"] STRAVA_CLIENT_ID = os.environ["STRAVA_CLIENT_ID"] STRAVA_CLIENT_SECRET = os.environ["STRAVA_CLIENT_SECRET"] STRAVA_AUTHORIZATION_URL = "https://www.strava.com/oau...
[ 11748, 2779, 2414, 198, 11748, 28686, 198, 198, 11748, 15452, 198, 11748, 2638, 87, 198, 11748, 4269, 18250, 355, 336, 198, 11748, 15488, 198, 6738, 1489, 365, 71, 13, 27530, 13, 28029, 11407, 1330, 4777, 628, 198, 24805, 62, 21886, 796...
2.368159
201
#!/usr/bin/env python #shamelessy stolen from: https://gitlab.com/dhj/easyufw # A thin wrapper over the thin wrapper that is ufw # Usage: # import easyufw as ufw # ufw.disable() # disable firewall # ufw.enable() # enable firewall # ufw.allow() # default allow -- allow all # ufw.allow...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 198, 2, 1477, 39942, 88, 9909, 422, 25, 3740, 1378, 18300, 23912, 13, 785, 14, 34985, 73, 14, 38171, 3046, 86, 198, 198, 2, 317, 7888, 29908, 625, 262, 7888, 29908, 326, 318, 334, ...
2.512295
488
import libsalt # for vehicle in runnings: # print("Running Vehicle)", vehicle.id, ":", libsalt.vehicle.getRoute(vehicle.id).toString()) # print("Running Vehicle)", vehicle.id, ":", vehicle.toString()) #print("#Standby Vehicles: ", len(standbys)) #for vehicle in standbys: # print("S...
[ 11748, 9195, 82, 2501, 220, 198, 198, 2, 220, 220, 220, 329, 4038, 287, 1057, 23400, 25, 198, 220, 220, 220, 220, 220, 220, 220, 1303, 3601, 7203, 28768, 21501, 42501, 4038, 13, 312, 11, 366, 25, 1600, 9195, 82, 2501, 13, 33892, 1...
2.567901
243
#MenuTitle: Copy Layer to Layer # -*- coding: utf-8 -*- __doc__=""" Copies one master to another master in selected glyphs. """ import GlyphsApp import vanilla import math MasterFiller()
[ 2, 23381, 19160, 25, 17393, 34398, 284, 34398, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 834, 15390, 834, 2625, 15931, 198, 13379, 444, 530, 4958, 284, 1194, 4958, 287, 6163, 25874, 82, 13, 198, 37811, 198,...
2.909091
66
# 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/. # # Copyright (c) 2014-2018, Lars Asplund lars.anders.asplund@gmail.com """ Test of the general tokenizer """ from unit...
[ 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, 351, 428, 2393, 11, 198, 2, 921, 460, 7330, 530, 379, ...
2.508946
503
# STAR aligner single end mode, second pass # # This module runs the second pass of the STAR aligner 2 path # strategy. The goal is to align reads taking in account splice # junction found in the fist pass.. # # Inputs: # - sample_trim.fastq.gz # - splicing junction files (.tab) # # Output: # ...
[ 2, 25424, 10548, 263, 2060, 886, 4235, 11, 1218, 1208, 198, 2, 198, 2, 220, 220, 770, 8265, 4539, 262, 1218, 1208, 286, 262, 25424, 10548, 263, 362, 3108, 198, 2, 220, 220, 4811, 13, 383, 3061, 318, 284, 10548, 9743, 2263, 287, 18...
2.018519
972
from django.db import models
[ 6738, 42625, 14208, 13, 9945, 1330, 4981, 628 ]
3.75
8
from django.shortcuts import render,redirect from django.contrib.auth.models import User from django.contrib import messages from .forms import PictureUploadForm,CommentForm from .models import Image,Profile,Likes,Comments from django.contrib.auth.decorators import login_required from django.contrib .auth import authen...
[ 6738, 42625, 14208, 13, 19509, 23779, 1330, 8543, 11, 445, 1060, 198, 6738, 42625, 14208, 13, 3642, 822, 13, 18439, 13, 27530, 1330, 11787, 198, 6738, 42625, 14208, 13, 3642, 822, 1330, 6218, 198, 6738, 764, 23914, 1330, 17741, 41592, 8...
3.037356
348
"""Create diapivot annotation.""" import logging import pickle import xml.etree.ElementTree as etree import sparv.util as util from sparv import Annotation, Model, ModelOutput, Output, annotator, modelbuilder log = logging.getLogger(__name__) PART_DELIM1 = "^1" # @annotator("Diapivot annotation", language=["swe-1...
[ 37811, 16447, 2566, 499, 45785, 23025, 526, 15931, 198, 198, 11748, 18931, 198, 11748, 2298, 293, 198, 11748, 35555, 13, 316, 631, 13, 20180, 27660, 355, 2123, 631, 198, 198, 11748, 37331, 85, 13, 22602, 355, 7736, 198, 6738, 37331, 85,...
2.325795
1,636
import os
[ 11748, 28686, 628, 628 ]
3.25
4
from django.utils.html import format_html from wagtail.wagtailcore import hooks
[ 6738, 42625, 14208, 13, 26791, 13, 6494, 1330, 5794, 62, 6494, 198, 6738, 266, 363, 13199, 13, 86, 363, 13199, 7295, 1330, 26569, 628 ]
3.375
24
from conftest import QL_URL import requests
[ 6738, 369, 701, 395, 1330, 1195, 43, 62, 21886, 198, 11748, 7007, 198 ]
3.384615
13
from buildbot.process.remotecommand import RemoteCommand from buildbot.interfaces import WorkerTooOldError import stat
[ 6738, 1382, 13645, 13, 14681, 13, 2787, 313, 721, 2002, 392, 1330, 21520, 21575, 198, 6738, 1382, 13645, 13, 3849, 32186, 1330, 35412, 23307, 19620, 12331, 198, 11748, 1185, 628, 198 ]
3.903226
31
from matplotlib import style from tqdm import tqdm style.use("ggplot") from gym_combat.envs.Arena.CState import State from gym_combat.envs.Arena.Entity import Entity from gym_combat.envs.Arena.Environment import Environment, Episode from gym_combat.envs.Common.constants import * from gym_combat.envs.Qtable import Qtab...
[ 6738, 2603, 29487, 8019, 1330, 3918, 198, 6738, 256, 80, 36020, 1330, 256, 80, 36020, 198, 198, 7635, 13, 1904, 7203, 1130, 29487, 4943, 198, 6738, 11550, 62, 39969, 13, 268, 14259, 13, 43199, 64, 13, 34, 9012, 1330, 1812, 198, 6738, ...
2.30181
2,210
"""Hyper-distributions.""" from libqif.core.secrets import Secrets from libqif.core.channel import Channel from numpy import array, arange, zeros from numpy import delete as npdelete
[ 37811, 38197, 12, 17080, 2455, 507, 526, 15931, 198, 198, 6738, 9195, 80, 361, 13, 7295, 13, 2363, 8004, 1330, 23561, 198, 6738, 9195, 80, 361, 13, 7295, 13, 17620, 1330, 11102, 198, 6738, 299, 32152, 1330, 7177, 11, 610, 858, 11, 1...
3.407407
54
#!/usr/bin/python from __future__ import (absolute_import, division, print_function) # Copyright 2019 Fortinet, Inc. # # This program 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 Lic...
[ 2, 48443, 14629, 14, 8800, 14, 29412, 198, 6738, 11593, 37443, 834, 1330, 357, 48546, 62, 11748, 11, 7297, 11, 3601, 62, 8818, 8, 198, 2, 15069, 13130, 6401, 42504, 11, 3457, 13, 198, 2, 198, 2, 770, 1430, 318, 1479, 3788, 25, 345...
1.649291
21,639
from ElementoMapa import ElementoMapa
[ 6738, 11703, 78, 13912, 64, 1330, 11703, 78, 13912, 64, 628, 628 ]
3.416667
12
""" # Step 1 - Create the App # Step 2 - Create the Game # Step 3 - Build the Game # Step 4 - Run the App """ from kivy.app import App from kivy.uix.widget import Widget from kivy.properties import NumericProperty, ReferenceListProperty, ObjectProperty from kivy.vector import Vector from kivy.clock import C...
[ 37811, 201, 198, 2, 5012, 352, 532, 13610, 262, 2034, 201, 198, 2, 5012, 362, 532, 13610, 262, 3776, 201, 198, 2, 5012, 513, 532, 10934, 262, 3776, 201, 198, 2, 5012, 604, 532, 5660, 262, 2034, 201, 198, 37811, 201, 198, 201, 198,...
3.164251
207
""" CS 238 Final Project: Bridge RL Agent Eric Lou & Kimberly Tran """ import copy import datetime import numpy as np import random from collections import namedtuple """''''''''''''''''''''''''''''''''''''''''''''''''''''''''' REPRESENTATIONS OF BRIDGE Representing a "Card" as an integer: Cards 0 -> 12 are Club...
[ 37811, 198, 7902, 32544, 8125, 4935, 25, 10290, 45715, 15906, 198, 25004, 4768, 1222, 48685, 833, 272, 198, 37811, 198, 11748, 4866, 198, 11748, 4818, 8079, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 4738, 198, 198, 6738, 17268, 1330...
3.165764
923
"""Data Test Suite.""" from aiogithubapi.objects import repository import pytest import os from homeassistant.core import HomeAssistant from custom_components.hacs.hacsbase.data import HacsData from custom_components.hacs.helpers.classes.repository import HacsRepository from custom_components.hacs.hacsbase.configuratio...
[ 37811, 6601, 6208, 26264, 526, 15931, 198, 6738, 257, 72, 519, 10060, 15042, 13, 48205, 1330, 16099, 198, 11748, 12972, 9288, 198, 11748, 28686, 198, 6738, 1363, 562, 10167, 13, 7295, 1330, 5995, 48902, 198, 6738, 2183, 62, 5589, 3906, ...
3.465649
131
from collections import namedtuple from contextlib import contextmanager from threading import Barrier from typing import List, Callable import numpy from ._dtype import DType, combine_types SolveResult = namedtuple('SolveResult', [ 'method', 'x', 'residual', 'iterations', 'function_evaluations', 'converged', '...
[ 6738, 17268, 1330, 3706, 83, 29291, 198, 6738, 4732, 8019, 1330, 4732, 37153, 198, 6738, 4704, 278, 1330, 32804, 198, 6738, 19720, 1330, 7343, 11, 4889, 540, 198, 198, 11748, 299, 32152, 198, 198, 6738, 47540, 67, 4906, 1330, 360, 6030,...
2.456931
14,709
import re from curtsies.formatstring import fmtstr, FmtStr from curtsies.termformatconstants import ( FG_COLORS, BG_COLORS, colors as CURTSIES_COLORS, ) from functools import partial from ..lazyre import LazyReCompile COLORS = CURTSIES_COLORS + ("default",) CNAMES = dict(zip("krgybmcwd", COLORS)) # hack...
[ 11748, 302, 198, 198, 6738, 1090, 912, 444, 13, 18982, 8841, 1330, 46996, 2536, 11, 376, 16762, 13290, 198, 6738, 1090, 912, 444, 13, 4354, 18982, 9979, 1187, 1330, 357, 198, 220, 220, 220, 25503, 62, 25154, 20673, 11, 198, 220, 220, ...
2.08508
811
# -*- coding: utf-8 -*- from ..tre_elements import TREExtension, TREElement __classification__ = "UNCLASSIFIED" __author__ = "Thomas McCullough"
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 6738, 11485, 33945, 62, 68, 3639, 1330, 309, 11587, 742, 3004, 11, 309, 11587, 1732, 198, 198, 834, 4871, 2649, 834, 796, 366, 4944, 45449, 1, 198, 834, 9800, 834...
2.830189
53
from ..imports import * from .. import utils as U from ..core import GenLearner
[ 6738, 11485, 320, 3742, 1330, 1635, 198, 6738, 11485, 1330, 3384, 4487, 355, 471, 198, 6738, 11485, 7295, 1330, 5215, 14961, 1008, 628, 628, 628, 198 ]
3.307692
26
__author__ = "Yuyu Luo" import json import pandas
[ 834, 9800, 834, 796, 366, 56, 4669, 84, 25956, 1, 198, 198, 11748, 33918, 198, 11748, 19798, 292, 628 ]
2.736842
19
"""Library for executing user-defined dance.""" import logging from typing import Any, Dict, Optional, Callable import datetime import ac import ac.blocks from ac import ACs, AC JC = Dict[str, Any] def track_is_occupied(block: ac.Block) -> bool: return bool(block['blockState']['state'] == 'occupied')
[ 37811, 23377, 329, 23710, 2836, 12, 23211, 9280, 526, 15931, 198, 198, 11748, 18931, 198, 6738, 19720, 1330, 4377, 11, 360, 713, 11, 32233, 11, 4889, 540, 198, 11748, 4818, 8079, 198, 198, 11748, 936, 198, 11748, 936, 13, 27372, 198, ...
3.106796
103
"""Provide the ReportableMixin class.""" from ....const import API_PATH
[ 37811, 15946, 485, 262, 6358, 540, 35608, 259, 1398, 526, 15931, 198, 6738, 19424, 9979, 1330, 7824, 62, 34219, 628 ]
3.65
20
import collections import os.path from zope import component from zope import interface from zope.component.factory import Factory from sparc.configuration import container import mellon mellonByteFileFromFilePathAndConfigFactory = Factory(MellonByteFileFromFilePathAndConfig) mellonUnicodeFileFromFilePathAndConfigFacto...
[ 11748, 17268, 198, 11748, 28686, 13, 6978, 198, 6738, 1976, 3008, 1330, 7515, 198, 6738, 1976, 3008, 1330, 7071, 198, 6738, 1976, 3008, 13, 42895, 13, 69, 9548, 1330, 19239, 198, 6738, 599, 5605, 13, 11250, 3924, 1330, 9290, 198, 11748,...
3.75
160
"""Predefined Datasources. """ # toolbox imports from ...datasource import Datasource Datasource.register_instance('imagenet-val', __name__ + '.imagenet', 'ImageNet', section='val') # section='train' Datasource.register_instance('dogsandcats', __name__ + '.dogsandcats', ...
[ 37811, 39156, 18156, 16092, 292, 2203, 13, 198, 37811, 198, 198, 2, 2891, 3524, 17944, 198, 6738, 2644, 19608, 292, 1668, 1330, 16092, 292, 1668, 198, 198, 27354, 292, 1668, 13, 30238, 62, 39098, 10786, 320, 11286, 316, 12, 2100, 3256, ...
2.415449
479
# -*- coding: utf-8 -*- """ Created on Tue Oct 22 15:58:44 2019 @author: babin """ posits_def = [251, 501, 751, 1001, 1251, 1501, 1751, 2001, 2251, 2501, 2751, 3001, 3215] dist_whole_align_ref = {'AB048704.1_genotype_C_': [0.88, 0.938, 0.914, 0.886, 0.89, 0.908, 0.938, 0.948, 0.948, 0.886, 0.8...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 198, 41972, 319, 30030, 2556, 2534, 1315, 25, 3365, 25, 2598, 13130, 198, 198, 31, 9800, 25, 275, 6014, 198, 37811, 198, 198, 1930, 896, 62, 4299, 796, 685, 280...
1.615034
1,317
import numpy as np # This class generates a 2D dataset with two classes, "positive" and "negative". # Each class follows a Gaussian distribution.
[ 11748, 299, 32152, 355, 45941, 198, 198, 2, 770, 1398, 18616, 257, 362, 35, 27039, 351, 734, 6097, 11, 366, 24561, 1, 290, 366, 31591, 1911, 198, 2, 5501, 1398, 5679, 257, 12822, 31562, 6082, 13, 628, 220, 220, 220, 220, 198 ]
3.642857
42
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # # Break repeating-key XOR # # It is officially on, now. # # This challenge isn't conceptually hard, but it involves actual # error-prone coding. The other challenges in this set are there to bring # you up to speed. This one is there to qualify you. If you can do t...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 198, 2, 12243, 20394, 12, 2539, 1395, 1581, 198, 2, 198, 2, 632, 318, 8720, 319, 11, 783, 13, 198, 2, 198,...
2.798392
1,493
import torch import torch.nn as nn import torch.nn.functional as f from prettytable import PrettyTable from c2nl.modules.char_embedding import CharEmbedding from c2nl.modules.embeddings import Embeddings from c2nl.modules.highway import Highway from c2nl.encoders.transformer import TransformerEncoder from c2nl.decoder...
[ 11748, 28034, 198, 11748, 28034, 13, 20471, 355, 299, 77, 198, 11748, 28034, 13, 20471, 13, 45124, 355, 277, 198, 198, 6738, 2495, 11487, 1330, 20090, 10962, 198, 6738, 269, 17, 21283, 13, 18170, 13, 10641, 62, 20521, 12083, 1330, 3178,...
3.426036
169
import logging from cattle import Config from cattle.utils import reply, popen from .compute import DockerCompute from cattle.agent.handler import BaseHandler from cattle.progress import Progress from cattle.type_manager import get_type, MARSHALLER from . import docker_client import subprocess import os import time ...
[ 11748, 18931, 198, 198, 6738, 17025, 1330, 17056, 198, 6738, 17025, 13, 26791, 1330, 10971, 11, 1461, 268, 198, 6738, 764, 5589, 1133, 1330, 25716, 7293, 1133, 198, 6738, 17025, 13, 25781, 13, 30281, 1330, 7308, 25060, 198, 6738, 17025, ...
3.869565
92
import sys import pytz #import xml.utils.iso8601 import time import numpy from datetime import date, datetime, timedelta from matplotlib import pyplot as plt from exchange import cb_exchange as cb_exchange from exchange import CoinbaseExchangeAuth from abc import ABCMeta, abstractmethod
[ 11748, 25064, 198, 11748, 12972, 22877, 198, 2, 11748, 35555, 13, 26791, 13, 26786, 4521, 486, 198, 11748, 640, 198, 11748, 299, 32152, 198, 6738, 4818, 8079, 1330, 3128, 11, 4818, 8079, 11, 28805, 12514, 198, 6738, 2603, 29487, 8019, 1...
3.6
80
import numpy as np # Perceptron neural_network = neuron(neuron(inputs, weights1), weights2)
[ 11748, 299, 32152, 355, 45941, 198, 198, 2, 2448, 984, 1313, 198, 198, 710, 1523, 62, 27349, 796, 43164, 7, 710, 44372, 7, 15414, 82, 11, 19590, 16, 828, 19590, 17, 8, 198 ]
2.848485
33