content
stringlengths
1
1.04M
input_ids
listlengths
1
774k
ratio_char_token
float64
0.38
22.9
token_count
int64
1
774k
from blockworld_walkway import BlockworldWalkway from bigworld import BlockworldBigworld # from blockworld_env.envs.walkway import BlockworldWalkwayEnv
[ 6738, 2512, 6894, 62, 11152, 1014, 1330, 9726, 6894, 35963, 1014, 198, 6738, 1263, 6894, 1330, 9726, 6894, 12804, 6894, 198, 198, 2, 422, 2512, 6894, 62, 24330, 13, 268, 14259, 13, 11152, 1014, 1330, 9726, 6894, 35963, 1014, 4834, 85, ...
3.642857
42
import rpy2.robjects as ro from rpy2.robjects.packages import importr from rpy2.robjects import pandas2ri from rpy2.robjects.conversion import localconverter
[ 11748, 374, 9078, 17, 13, 22609, 752, 82, 355, 686, 198, 6738, 374, 9078, 17, 13, 22609, 752, 82, 13, 43789, 1330, 1330, 81, 198, 6738, 374, 9078, 17, 13, 22609, 752, 82, 1330, 19798, 292, 17, 380, 198, 6738, 374, 9078, 17, 13, ...
2.854545
55
""" Server """ import asyncio import logging import os from typing import Optional from hypercorn.asyncio import serve from hypercorn.config import Config import uvicorn from sysmon.app import make_application LOGGER = logging.getLogger(__name__) def initialise_logging() -> None: """Initialise logging""" ...
[ 37811, 198, 10697, 198, 37811, 198, 198, 11748, 30351, 952, 198, 11748, 18931, 198, 11748, 28686, 198, 6738, 19720, 1330, 32233, 198, 198, 6738, 8718, 20772, 13, 292, 13361, 952, 1330, 4691, 198, 6738, 8718, 20772, 13, 11250, 1330, 17056,...
2.072619
1,680
# Copyright 2016 EMC Corporation # 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 ...
[ 2, 15069, 1584, 412, 9655, 10501, 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, ...
2.285641
1,943
# encoding: utf8 from django.http.response import JsonResponse from .throttling import AnonRateThrottle from .settings import THROTTLE_TRIGGER_RESPONSE
[ 2, 21004, 25, 3384, 69, 23, 198, 198, 6738, 42625, 14208, 13, 4023, 13, 26209, 1330, 449, 1559, 31077, 198, 198, 6738, 764, 26110, 926, 1359, 1330, 49347, 32184, 817, 305, 23296, 198, 6738, 764, 33692, 1330, 35383, 29089, 2538, 62, 54...
3.1
50
from django.contrib import admin from .models import User # Register your models here. @admin.register(User)
[ 6738, 42625, 14208, 13, 3642, 822, 1330, 13169, 198, 198, 6738, 764, 27530, 1330, 11787, 198, 2, 17296, 534, 4981, 994, 13, 198, 31, 28482, 13, 30238, 7, 12982, 8, 198 ]
3.548387
31
dictionary = dict()
[ 67, 14188, 796, 8633, 3419, 628 ]
3.5
6
### migrates data from titanic.csv to postgresql # load titanic data import pandas as pd url = 'https://raw.githubusercontent.com/jonDuke/DS-Unit-3-Sprint-2-SQL-and-Databases/master/module2-sql-for-analysis/titanic.csv' df = pd.read_csv(url) # df.columns = ['Survived', 'Pclass', 'Name', 'Sex', 'Age', # ...
[ 21017, 15720, 689, 1366, 422, 5259, 26277, 13, 40664, 284, 1281, 34239, 13976, 201, 198, 201, 198, 2, 3440, 5259, 26277, 1366, 201, 198, 11748, 19798, 292, 355, 279, 67, 201, 198, 6371, 796, 705, 5450, 1378, 1831, 13, 12567, 43667, 13...
2.456231
971
import os from typing import List def filtered_search_list(search: str, keys) -> List[str]: """ Filters the search list by a search string :param search: the string prefix :param keys: the list of strings to search :return: filtered list """ return list(filter(lambda x: (search.lower()) i...
[ 11748, 28686, 198, 198, 6738, 19720, 1330, 7343, 628, 198, 4299, 29083, 62, 12947, 62, 4868, 7, 12947, 25, 965, 11, 8251, 8, 4613, 7343, 58, 2536, 5974, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 7066, 1010, 262, 2989, 1351, 416...
2.853875
787
# -*- coding: utf-8 -*- """ Numerical Methods, lab 2 """ import sympy as sy from sympy import Rational as syR from sympy import exp, sin, cos, sqrt, log, ln from sympy import pi, cot, sinh, cosh, atan, tan # Это был Task_db Tasks_db = { 'Task1': [ # 2.1.1 {'f': lambda x: sin(x)**2 - syR(5, 6)*sin(x)...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 198, 45, 6975, 605, 25458, 11, 2248, 362, 198, 37811, 198, 198, 11748, 10558, 88, 355, 827, 198, 6738, 10558, 88, 1330, 46863, 355, 827, 49, 198, 6738, 10558, 8...
1.511923
4,026
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import numpy as np; a = np.array([3.0, 3.0, 2.0, 4.9, 100.2, -8.9]); # 数值微分求标准差梯度 grad = gradient(); print(grad); n1 = func2(0); n2 = func2(1); n3 = func2(2); n4 = func2(3); n5 = func2(4); n6 = func2(5); b = [n1, n2, n3, n4, n5, n6]; print(b);
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 11748, 299, 32152, 355, 45941, 26, 198, 198, 64, 796, 45941, 13, 18747, 26933, 18, 13, 15, 11, 513, 13, 15...
1.609626
187
import argparse import json import numpy as np from utils.file_utils import read_jsonl_lines, read_lines if __name__ == '__main__': parser = argparse.ArgumentParser( description='Script to compute corpus satistics') # Required Parameters parser.add_argument('--input_file', type=str, help='L...
[ 11748, 1822, 29572, 198, 11748, 33918, 198, 11748, 299, 32152, 355, 45941, 198, 198, 6738, 3384, 4487, 13, 7753, 62, 26791, 1330, 1100, 62, 17752, 75, 62, 6615, 11, 1100, 62, 6615, 628, 628, 628, 198, 198, 361, 11593, 3672, 834, 6624,...
2.957143
210
from django.db import models from api.user.models import CustomUser from api.product.models import Product # Create your models here.
[ 6738, 42625, 14208, 13, 9945, 1330, 4981, 198, 6738, 40391, 13, 7220, 13, 27530, 1330, 8562, 12982, 198, 6738, 40391, 13, 11167, 13, 27530, 1330, 8721, 198, 2, 13610, 534, 4981, 994, 13, 628, 198 ]
3.885714
35
from bilibili import bilibili from login import login import time import datetime import asyncio from printer import Printer # 因为休眠时间差不多,所以放到这里,此为实验性功能
[ 6738, 275, 22282, 2403, 1330, 275, 22282, 2403, 198, 6738, 17594, 1330, 17594, 198, 11748, 640, 198, 11748, 4818, 8079, 198, 11748, 30351, 952, 198, 6738, 20632, 1330, 1736, 3849, 628, 628, 220, 220, 220, 1303, 10263, 249, 254, 10310, 1...
1.870588
85
# 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 use ...
[ 2, 49962, 284, 262, 24843, 10442, 5693, 357, 1921, 37, 8, 739, 530, 393, 517, 198, 2, 18920, 5964, 11704, 13, 220, 4091, 262, 28536, 2393, 9387, 351, 198, 2, 428, 670, 329, 3224, 1321, 5115, 6634, 9238, 13, 198, 2, 383, 7054, 37, ...
3.773973
292
# coding=utf-8 """ 文件处理读取写入 """ from __future__ import print_function from __future__ import division from __future__ import absolute_import import logging import os import shutil from contextlib import contextmanager import functools import pandas as pd from .ABuDTUtil import warnings_filter # noinspection PyUn...
[ 2, 19617, 28, 40477, 12, 23, 198, 37811, 198, 220, 220, 220, 10545, 244, 229, 20015, 114, 13783, 226, 49426, 228, 46237, 119, 20998, 244, 37863, 247, 17739, 98, 198, 37811, 198, 6738, 11593, 37443, 834, 1330, 3601, 62, 8818, 198, 6738...
1.382236
7,014
# -*- coding: utf-8 -*- from django.contrib import admin from extra_settings.forms import SettingForm from extra_settings.models import Setting admin.site.register(Setting, SettingAdmin)
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 6738, 42625, 14208, 13, 3642, 822, 1330, 13169, 198, 198, 6738, 3131, 62, 33692, 13, 23914, 1330, 25700, 8479, 198, 6738, 3131, 62, 33692, 13, 27530, 1330, 25700, 6...
3.350877
57
import sqlite3 import re import scrapy from scrapy import Request # 这个类在最终整合后不再使用
[ 11748, 44161, 578, 18, 198, 11748, 302, 198, 11748, 15881, 88, 198, 6738, 15881, 88, 1330, 19390, 198, 198, 2, 5525, 123, 247, 10310, 103, 163, 109, 119, 28839, 101, 17312, 222, 163, 119, 230, 46763, 112, 28938, 230, 28938, 236, 38834...
1.729167
48
"""A global object for debug rendering into images without around.""" import cv2 # ----------------------------------------------------------------------------- # Copyright (C) 2018 Angelos Evripiotis. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in complian...
[ 37811, 32, 3298, 2134, 329, 14257, 14837, 656, 4263, 1231, 1088, 526, 15931, 198, 198, 11748, 269, 85, 17, 628, 198, 198, 2, 16529, 32501, 198, 2, 15069, 357, 34, 8, 2864, 3905, 418, 4319, 5528, 5151, 271, 13, 198, 2, 198, 2, 4996...
4.310881
193
# This file was automatically generated by SWIG (http://www.swig.org). # Version 3.0.12 # # Do not make changes to this file unless you know what you are doing--modify # the SWIG interface file instead. from sys import version_info as _swig_python_version_info if _swig_python_version_info >= (2, 7, 0): _ephemeris_...
[ 2, 770, 2393, 373, 6338, 7560, 416, 12672, 3528, 357, 4023, 1378, 2503, 13, 2032, 328, 13, 2398, 737, 198, 2, 10628, 513, 13, 15, 13, 1065, 198, 2, 198, 2, 2141, 407, 787, 2458, 284, 428, 2393, 4556, 345, 760, 644, 345, 389, 180...
2.882448
1,242
""" Do not import this file. NOTE: THIS RUNS ON PYTHON 3.10 """ # exit codes: # 0: success # 1: indeterminate error # 2: module not resolvable # 3: attribute does not exist # 4: invalid characters, not a valid object path # 5: dynamically created object # 6: is a builtin object, prints module name # 7: invalid metad...
[ 37811, 198, 5211, 407, 1330, 428, 2393, 13, 198, 198, 16580, 25, 12680, 32494, 50, 6177, 350, 56, 4221, 1340, 513, 13, 940, 198, 37811, 628, 198, 2, 8420, 12416, 25, 198, 2, 657, 25, 1943, 198, 2, 352, 25, 773, 13221, 378, 4049, ...
2.182197
2,640
from .base import * DEBUG = True ALLOWED_HOSTS = ['*'] THIRD_PARTY_APPS += ('debug_toolbar',) # Database # https://docs.djangoproject.com/en/2.0/ref/settings/#databases MIDDLEWARE.insert(3, 'debug_toolbar.middleware.DebugToolbarMiddleware') DATABASES = { 'default': { 'ENGINE': 'django.db.backends.sqli...
[ 6738, 764, 8692, 1330, 1635, 198, 198, 30531, 796, 6407, 198, 198, 7036, 3913, 1961, 62, 39, 10892, 50, 796, 37250, 9, 20520, 198, 198, 4221, 46833, 62, 30709, 56, 62, 2969, 3705, 15853, 19203, 24442, 62, 25981, 5657, 3256, 8, 198, ...
2.19209
177
import sortingview as sv import spikeextractors as se recording, sorting = se.example_datasets.toy_example(K=11, duration=60, seed=6) R = sv.LabboxEphysRecordingExtractor.from_memory(recording, serialize=True, serialize_dtype='float32') S = sv.LabboxEphysSortingExtractor.from_memory(sorting, serialize=True) W = sv.c...
[ 11748, 29407, 1177, 355, 38487, 198, 11748, 20240, 2302, 974, 669, 355, 384, 198, 198, 8344, 1284, 11, 29407, 796, 384, 13, 20688, 62, 19608, 292, 1039, 13, 83, 726, 62, 20688, 7, 42, 28, 1157, 11, 9478, 28, 1899, 11, 9403, 28, 21...
2.699681
313
import binascii import os from django.conf import settings from django.db import models from django.utils.translation import ugettext_lazy as _ __all__ = [ 'MultiToken', ] # Prior to Django 1.5, the AUTH_USER_MODEL setting does not exist. # Note that we don't perform this code in the compat module due to # bug r...
[ 11748, 9874, 292, 979, 72, 198, 11748, 28686, 198, 198, 6738, 42625, 14208, 13, 10414, 1330, 6460, 198, 6738, 42625, 14208, 13, 9945, 1330, 4981, 198, 6738, 42625, 14208, 13, 26791, 13, 41519, 1330, 334, 1136, 5239, 62, 75, 12582, 355, ...
2.386513
608
import argparse import glob import itertools import multiprocessing as mp import os from functools import partial from subprocess import run import numpy as np import pandas as pd from qpputils import dataparser as dp from Timer import Timer from crossval import InterTopicCrossValidation from query_features import fe...
[ 11748, 1822, 29572, 198, 11748, 15095, 198, 11748, 340, 861, 10141, 198, 11748, 18540, 305, 919, 278, 355, 29034, 198, 11748, 28686, 198, 6738, 1257, 310, 10141, 1330, 13027, 198, 6738, 850, 14681, 1330, 1057, 198, 198, 11748, 299, 32152,...
2.235961
5,734
from setuptools import setup import os import sys SRC_ROOT, _ = os.path.split(__file__) PROJECT_ROOT = os.path.dirname(SRC_ROOT) REVISION = '0.0.1' PROJECT_NAME = 'neowrapper' PROJECT_AUTHORS = "Salim Fadhley" # Please see readme.rst for a complete list of contributors PROJECT_EMAILS = 'salimfadhley@gmail.com' PROJEC...
[ 6738, 900, 37623, 10141, 1330, 9058, 198, 11748, 28686, 198, 11748, 25064, 198, 198, 50, 7397, 62, 13252, 2394, 11, 4808, 796, 28686, 13, 6978, 13, 35312, 7, 834, 7753, 834, 8, 198, 31190, 23680, 62, 13252, 2394, 796, 28686, 13, 6978,...
2.243537
735
from upguard import UpGuardObject
[ 6738, 510, 14864, 1330, 3205, 24502, 10267, 198 ]
4.25
8
from __future__ import annotations from dataclasses import dataclass, field from enum import Enum from typing import Any, Optional import jwt from .exceptions import InvalidPastaportoError from .tokens import decode_pastaporto @dataclass @dataclass
[ 6738, 11593, 37443, 834, 1330, 37647, 198, 198, 6738, 4818, 330, 28958, 1330, 4818, 330, 31172, 11, 2214, 198, 6738, 33829, 1330, 2039, 388, 198, 6738, 19720, 1330, 4377, 11, 32233, 198, 198, 11748, 474, 46569, 198, 198, 6738, 764, 1069...
3.394737
76
from re import error from django.db import models from ..login.models import User # Create your models here.
[ 6738, 302, 1330, 4049, 198, 6738, 42625, 14208, 13, 9945, 1330, 4981, 198, 6738, 11485, 38235, 13, 27530, 1330, 11787, 198, 2, 13610, 534, 4981, 994, 13 ]
4
27
# -*- coding: utf-8 -*- # Generated by Django 1.11.2 on 2017-07-03 07:24 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 2980, 515, 416, 37770, 352, 13, 1157, 13, 17, 319, 2177, 12, 2998, 12, 3070, 8753, 25, 1731, 198, 6738, 11593, 37443, 834, 1330, 28000, 1098, 62, 17201, 874, 198, ...
2.73913
69
RESOURCE_NOT_FOUND_EXCEPTION = "ResourceNotFoundException"
[ 19535, 31033, 62, 11929, 62, 37, 15919, 62, 6369, 42006, 2849, 796, 366, 26198, 3673, 21077, 16922, 1, 198 ]
3.105263
19
from osim.env import L2M2019CtrlEnv from osim.control.osim_loco_reflex_song2019 import OsimReflexCtrl import sys import numpy as np trial_name = 'trial_190501_L2M2019CtrlEnv_2D_' params = np.ones(37) #params = np.loadtxt('./data/cma/trial_181029_walk_3D_noStand_8_best.txt') if __name__ == '__main__': prob = CMA...
[ 6738, 267, 14323, 13, 24330, 1330, 406, 17, 44, 23344, 40069, 4834, 85, 198, 6738, 267, 14323, 13, 13716, 13, 418, 320, 62, 17946, 78, 62, 5420, 2588, 62, 34050, 23344, 1330, 8834, 320, 8134, 2588, 40069, 198, 198, 11748, 25064, 198, ...
2.269737
304
self.description = "check file type without mtree" self.filesystem = [ "bar/", "foo -> bar/" ] pkg = pmpkg("dummy") pkg.files = [ "foo/" ] self.addpkg2db("local",pkg) self.args = "-Qk" self.addrule("PACMAN_RETCODE=1") self.addrule("PACMAN_OUTPUT=warning.*(File type mismatch)")
[ 944, 13, 11213, 796, 366, 9122, 2393, 2099, 1231, 285, 21048, 1, 198, 198, 944, 13, 16624, 6781, 796, 685, 366, 5657, 14, 1600, 366, 21943, 4613, 2318, 30487, 2361, 198, 198, 35339, 796, 279, 3149, 10025, 7203, 67, 13513, 4943, 198, ...
2.540541
111
import math import torch from torch import nn from ..utils.helpers import wrap_class, null_context from .operations import t, relative_error from ..tensor_network import SingleTensor class MF(nn.Module): """Base module for matrix factorization. X ≈ U t(V), U, V ∈ S """ class TF(nn.Module): ""...
[ 11748, 10688, 198, 198, 11748, 28034, 198, 6738, 28034, 1330, 299, 77, 198, 198, 6738, 11485, 26791, 13, 16794, 364, 1330, 14441, 62, 4871, 11, 9242, 62, 22866, 198, 6738, 764, 3575, 602, 1330, 256, 11, 3585, 62, 18224, 198, 6738, 114...
2.796407
167
"""Logger """ import logging import logging.config logging.config.fileConfig("logging.ini")
[ 37811, 11187, 1362, 198, 37811, 198, 198, 11748, 18931, 198, 11748, 18931, 13, 11250, 628, 198, 6404, 2667, 13, 11250, 13, 7753, 16934, 7203, 6404, 2667, 13, 5362, 4943, 628 ]
3.2
30
# Copyright (c) 2016-2017 Anki, 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 in the file LICENSE.txt or at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appli...
[ 2, 15069, 357, 66, 8, 1584, 12, 5539, 1052, 4106, 11, 3457, 13, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 2, 345, 743, 407, 779, 428, 2393, 2845, 287, 11846, 351, 2...
2.487258
6,553
import argparse import json import random import numpy as np import os import torch.cuda from datetime import datetime import src.utils.interface_file_io as file_io
[ 11748, 1822, 29572, 198, 11748, 33918, 198, 11748, 4738, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 28686, 198, 11748, 28034, 13, 66, 15339, 198, 6738, 4818, 8079, 1330, 4818, 8079, 198, 11748, 12351, 13, 26791, 13, 39994, 62, 7753, ...
3.44898
49
import sys import argparse import pathlib import yaml import subprocess import re COAST_dir = pathlib.Path(__file__).resolve().parent.parent tests_dir = COAST_dir / "tests" # Compile the benchmark for x86 using provided opt_passes # Run the x86 compiled benchmark (must call compile first) if __name__ == "_...
[ 11748, 25064, 198, 11748, 1822, 29572, 198, 11748, 3108, 8019, 198, 11748, 331, 43695, 198, 11748, 850, 14681, 198, 11748, 302, 198, 198, 8220, 11262, 62, 15908, 796, 3108, 8019, 13, 15235, 7, 834, 7753, 834, 737, 411, 6442, 22446, 8000...
3.1
110
# # Copyright 2014 Grupo de Sistemas Inteligentes (GSI) DIT, UPM # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unles...
[ 2, 198, 2, 220, 220, 220, 15069, 1946, 25665, 7501, 390, 311, 396, 368, 292, 8180, 47096, 274, 357, 38, 11584, 8, 360, 2043, 11, 471, 5868, 198, 2, 198, 2, 220, 220, 220, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 35...
3.038462
338
import os import glob from setuptools import find_packages, setup about = {} here = os.path.abspath(os.path.dirname(__file__)) README = open(os.path.join(os.path.dirname(__file__), "README.md")).read() os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir))) extra_files = package_files("recip...
[ 11748, 28686, 198, 11748, 15095, 198, 198, 6738, 900, 37623, 10141, 1330, 1064, 62, 43789, 11, 9058, 198, 198, 10755, 796, 23884, 198, 1456, 796, 28686, 13, 6978, 13, 397, 2777, 776, 7, 418, 13, 6978, 13, 15908, 3672, 7, 834, 7753, ...
2.633833
467
# # (C) 2014-2017 Seiji Matsuoka # Licensed under the MIT License (MIT) # http://opensource.org/licenses/MIT # from rdkit import Chem from rdkit.Chem import AllChem from rdkit.Chem import rdFMCS from rdkit import DataStructs from chorus.model.graphmol import Compound from chorus.model.atom import Atom, atom_number fr...
[ 2, 198, 2, 357, 34, 8, 1946, 12, 5539, 1001, 20770, 337, 19231, 17411, 198, 2, 49962, 739, 262, 17168, 13789, 357, 36393, 8, 198, 2, 2638, 1378, 44813, 1668, 13, 2398, 14, 677, 4541, 14, 36393, 198, 2, 198, 198, 6738, 374, 67, 1...
2.19799
995
from django.core.management.base import BaseCommand from fjord.feedback.models import purge_data
[ 6738, 42625, 14208, 13, 7295, 13, 27604, 13, 8692, 1330, 7308, 21575, 198, 198, 6738, 277, 73, 585, 13, 12363, 1891, 13, 27530, 1330, 35714, 62, 7890, 628 ]
3.535714
28
import numpy as np from config.draco3_config import WalkingState from pnc.state_machine import StateMachine from pnc.planner.locomotion.dcm_planner.footstep import Footstep from pnc.draco3_pnc.draco3_state_provider import Draco3StateProvider
[ 11748, 299, 32152, 355, 45941, 198, 198, 6738, 4566, 13, 7109, 10602, 18, 62, 11250, 1330, 21276, 9012, 198, 6738, 279, 10782, 13, 5219, 62, 30243, 1330, 1812, 37573, 198, 6738, 279, 10782, 13, 11578, 1008, 13, 17946, 296, 9650, 13, 6...
3.128205
78
from math import ceil, floor, sqrt from pathlib import Path from random import randint import matplotlib.pyplot as plt import numpy as np import tensorflow as tf
[ 6738, 10688, 1330, 2906, 346, 11, 4314, 11, 19862, 17034, 198, 6738, 3108, 8019, 1330, 10644, 198, 6738, 4738, 1330, 43720, 600, 198, 198, 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 198, 11748, 299, 32152, 355, 45941, 198,...
3.288462
52
# %% import tensorflow as tf from tensorflow import keras from tensorflow.keras import layers from tensorflow.python.keras.layers.core import Dropout #%% model = tf.keras.models.Sequential([ tf.keras.Input(shape=(2,)), tf.keras.layers.Dense(80, activation='sigmoid'), tf.keras.layers.Dense(2) ]) # %% # x_train=t...
[ 2, 43313, 198, 11748, 11192, 273, 11125, 355, 48700, 198, 6738, 11192, 273, 11125, 1330, 41927, 292, 198, 6738, 11192, 273, 11125, 13, 6122, 292, 1330, 11685, 198, 6738, 11192, 273, 11125, 13, 29412, 13, 6122, 292, 13, 75, 6962, 13, 7...
1.873696
863
import random import stillleben as sl import sl_cutscenes.constants as CONSTANTS def get_lightmap(map_name="random"): """ Fetches the right lightmap given command line argument. """ assert map_name in ["default", "random"] + list(CONSTANTS.ALL_LIGHTMAPS.keys()), f"Unknown lightmap {map_name}..." ...
[ 11748, 4738, 198, 11748, 991, 293, 11722, 355, 1017, 198, 11748, 1017, 62, 8968, 28123, 13, 9979, 1187, 355, 7102, 2257, 1565, 4694, 628, 198, 4299, 651, 62, 2971, 8899, 7, 8899, 62, 3672, 2625, 25120, 1, 2599, 198, 220, 220, 220, 3...
2.572727
220
from .llvm_type import ( char_pointer, i8, i32, i64, ) from .objc import ( objc_ivar, objc_ivar_list, ) __all__ = [ 'char_pointer', 'i8', 'i32', 'i64', 'objc_ivar', 'objc_ivar_list', ]
[ 6738, 764, 297, 14761, 62, 4906, 1330, 357, 198, 220, 220, 220, 1149, 62, 29536, 11, 198, 220, 220, 220, 1312, 23, 11, 198, 220, 220, 220, 1312, 2624, 11, 198, 220, 220, 220, 1312, 2414, 11, 198, 8, 198, 198, 6738, 764, 26801, 6...
1.710145
138
import datetime import json import pprint from django.test import TestCase from scraper import scraper pp = pprint.PrettyPrinter(indent=4)
[ 11748, 4818, 8079, 198, 11748, 33918, 198, 11748, 279, 4798, 198, 198, 6738, 42625, 14208, 13, 9288, 1330, 6208, 20448, 198, 198, 6738, 19320, 525, 1330, 19320, 525, 198, 198, 381, 796, 279, 4798, 13, 35700, 6836, 3849, 7, 521, 298, 2...
3.130435
46
import logging from sith_score_handler import SithScoreHandler from raidtickets_lifetime_handler import RaidticketsLifetimeHandler from guildtickets_lifetime_handler import GuildticketsLifetimeHandler from territory_battle_total_score_handler import TerritoryBattleTotalScoreHandler from territory_battle_total_combat_wa...
[ 11748, 18931, 198, 6738, 264, 342, 62, 26675, 62, 30281, 1330, 26455, 26595, 25060, 198, 6738, 9513, 83, 15970, 62, 36195, 8079, 62, 30281, 1330, 12448, 83, 15970, 43, 361, 8079, 25060, 198, 6738, 19806, 83, 15970, 62, 36195, 8079, 62, ...
4.030303
132
''' @author: Dallas Fraser @id: 20652186 @class: CS686 @date: 2016-02-13 @note: contains a player using a repeat (Pavlov) strategy ''' from DallasPlayers.player import COOPERATE, Player, DEFECT import unittest class RepeatOutcomePlayer(Player): """ Repeat Outcome Player - repeat last choice if good outcome ...
[ 7061, 6, 198, 31, 9800, 25, 8533, 28059, 198, 31, 312, 25, 1160, 43193, 25096, 198, 31, 4871, 25, 9429, 33808, 198, 31, 4475, 25, 1584, 12, 2999, 12, 1485, 198, 31, 11295, 25, 4909, 257, 2137, 1262, 257, 9585, 357, 47, 615, 27086,...
3.114286
105
from adain.cfg.config import Config __all__ = ['Config']
[ 6738, 512, 391, 13, 37581, 13, 11250, 1330, 17056, 201, 198, 201, 198, 834, 439, 834, 796, 37250, 16934, 20520, 201, 198 ]
2.772727
22
# -*- coding: utf-8 -*- # Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 2, 15069, 12131, 3012, 11419, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 2, 345, 743, 407, 779, 4...
2.296251
12,989
# Copyright 2016 RedHat, 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 agreed to in writing...
[ 2, 15069, 1584, 2297, 40483, 11, 3457, 13, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 345, 743, 198, 2, 407, 779, 428, 2393, 2845, 287, 11846, 351, 262, 13789, 13, 921, 743...
2.442004
1,138
from functions_framework._cli import _cli _cli(prog_name="python -m functions_framework")
[ 6738, 5499, 62, 30604, 13557, 44506, 1330, 4808, 44506, 198, 198, 62, 44506, 7, 1676, 70, 62, 3672, 2625, 29412, 532, 76, 5499, 62, 30604, 4943, 198 ]
3.37037
27
# Generated by Django 2.2 on 2019-06-03 10:27 from django.db import migrations, models
[ 2, 2980, 515, 416, 37770, 362, 13, 17, 319, 13130, 12, 3312, 12, 3070, 838, 25, 1983, 198, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 11, 4981, 628 ]
2.966667
30
import threading from .interface import show_message import time def stop_queue(): " Stop all tasks. " for thread in threading.enumerate(): if isinstance(thread, Task): thread.stop() show_message('%s stopped.' % thread.title) def add_task(target, callback=None, buffer=None, ...
[ 11748, 4704, 278, 198, 6738, 764, 39994, 1330, 905, 62, 20500, 198, 11748, 640, 628, 198, 198, 4299, 2245, 62, 36560, 33529, 198, 220, 220, 220, 366, 13707, 477, 8861, 13, 366, 198, 220, 220, 220, 329, 4704, 287, 4704, 278, 13, 268,...
2.395664
369
""" 基于内存进行去重,非持久 """ from base import BaseFilter
[ 37811, 198, 161, 253, 118, 12859, 236, 37863, 227, 27764, 246, 32573, 249, 26193, 234, 43889, 119, 34932, 235, 171, 120, 234, 165, 251, 252, 162, 234, 223, 20046, 227, 198, 37811, 198, 6738, 2779, 1330, 7308, 22417, 628, 628, 198 ]
1.292683
41
from .cli import create, execute from .benefactor_permissions_report import BenefactorPermissionsReport from .benefactor_view import BenefactorView
[ 6738, 764, 44506, 1330, 2251, 11, 12260, 198, 6738, 764, 36934, 11218, 62, 525, 8481, 62, 13116, 1330, 19899, 11218, 5990, 8481, 19100, 198, 6738, 764, 36934, 11218, 62, 1177, 1330, 19899, 11218, 7680, 198 ]
4.228571
35
""" In here we create a discrete state space representation which can be used in learning algorithms such as Q-Learning. The state space is intended to represent a single transaction sufficiently, meaning it should include all relevant information that an agent could use when making a decision; and it should not includ...
[ 37811, 198, 818, 994, 356, 2251, 257, 28810, 1181, 2272, 10552, 198, 4758, 460, 307, 973, 287, 4673, 16113, 884, 355, 1195, 12, 41730, 13, 198, 464, 1181, 2272, 318, 5292, 284, 2380, 257, 2060, 8611, 17338, 11, 198, 24815, 340, 815, ...
3.684932
219
from system.forms import Forms from system.logger import * from dialogs.select_dialog import * @class_wrapper @class_wrapper class NewPurchaseForm(_edit_purch_form): ''' ''' @class_wrapper class EditPurchaseForm(_edit_purch_form): ''' '''
[ 6738, 1080, 13, 23914, 1330, 39196, 198, 6738, 1080, 13, 6404, 1362, 1330, 1635, 198, 6738, 17310, 82, 13, 19738, 62, 38969, 519, 1330, 1635, 198, 198, 31, 4871, 62, 48553, 198, 198, 31, 4871, 62, 48553, 198, 4871, 968, 47651, 8479, ...
2.755319
94
from time import process_time, sleep from PyQt5.QtCore import pyqtRemoveInputHook from exec import pomodoro as pomodoro import gui3 import gui31 from threading import Thread import os import psutil import sys if __name__ == "__main__": #print("buscu") worker1() #worker2() t2 =Thread(target ...
[ 6738, 640, 1330, 1429, 62, 2435, 11, 3993, 201, 198, 6738, 9485, 48, 83, 20, 13, 48, 83, 14055, 1330, 12972, 39568, 27914, 20560, 39, 566, 201, 198, 6738, 2452, 1330, 279, 296, 375, 16522, 355, 279, 296, 375, 16522, 201, 198, 11748,...
2.214286
252
import dash_core_components as dcc import dash_html_components as html from dash.dependencies import Input, Output from app import app data = { 1: 'One', 2: 'Two', 3: 'Three', 4: 'Four' } layout = html.Div([ html.H1('Hello World!'), dcc.Slider(id='demo-slider', min=1, max=4, value=1), htm...
[ 11748, 14470, 62, 7295, 62, 5589, 3906, 355, 288, 535, 198, 11748, 14470, 62, 6494, 62, 5589, 3906, 355, 27711, 198, 6738, 14470, 13, 45841, 3976, 1330, 23412, 11, 25235, 198, 198, 6738, 598, 1330, 598, 198, 198, 7890, 796, 1391, 198,...
2.319372
191
#!/usr/bin/env python import json import os from watson_developer_cloud import PersonalityInsightsV3 def insights(user_text): """ Analyze text using IBM Personality Insights. ``pip install --upgrade watson-developer-cloud`` This code is based on the `IBM Watson Python SDK`_ docs. Environment variables mus...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 198, 11748, 33918, 198, 11748, 28686, 198, 198, 6738, 266, 13506, 62, 16244, 263, 62, 17721, 1330, 30472, 20376, 2337, 53, 18, 628, 198, 4299, 17218, 7, 7220, 62, 5239, 2599, 198, 220,...
2.889163
406
from microbit import * sleep(10000) display.scroll(str(button_a.get_presses()))
[ 6738, 4580, 2545, 1330, 1635, 198, 42832, 7, 49388, 8, 198, 13812, 13, 48728, 7, 2536, 7, 16539, 62, 64, 13, 1136, 62, 8439, 274, 3419, 4008 ]
2.925926
27
VERSION = "0.2.2-SNAPSHOT"
[ 198, 43717, 796, 366, 15, 13, 17, 13, 17, 12, 15571, 2969, 9693, 2394, 1, 198 ]
1.75
16
__author__ = 'sibirrer' from astrofunc.LensingProfiles.spp import SPP from astrofunc.LensingProfiles.spemd_smooth import SPEMD_SMOOTH class SPEMD(object): """ class for smooth power law ellipse mass density profile """ def mass_3d_lens(self, r, theta_E, gamma, q, phi_G): """ computes...
[ 834, 9800, 834, 796, 705, 82, 571, 343, 11751, 6, 198, 198, 6738, 6468, 305, 20786, 13, 43, 26426, 15404, 2915, 13, 82, 381, 1330, 6226, 47, 198, 6738, 6468, 305, 20786, 13, 43, 26426, 15404, 2915, 13, 2777, 368, 67, 62, 5796, 522...
2.142157
408
import gspread import gspread.utils
[ 11748, 308, 43639, 198, 11748, 308, 43639, 13, 26791, 628, 198 ]
3.454545
11
from __future__ import unicode_literals # Python 2/3 compatibility # from __future__ import print_function # Python 2/3 compatibility # import sys import argparse import modelio from parser import TokenParser from trainer import MarkovTrainer from generator import MarkovGenerator parser = argparse.ArgumentParser(d...
[ 6738, 11593, 37443, 834, 1330, 28000, 1098, 62, 17201, 874, 1303, 11361, 362, 14, 18, 17764, 1303, 198, 6738, 11593, 37443, 834, 1330, 3601, 62, 8818, 220, 220, 1303, 11361, 362, 14, 18, 17764, 1303, 198, 198, 11748, 25064, 198, 11748, ...
2.764706
952
import qsharp from BB84 import Start import onetimepad success, aliceKey, BobKey = Start.simulate() binaryKeyAlice = "" binaryKeyBob = "" for each in aliceKey: if each is True: binaryKeyAlice = binaryKeyAlice + "1" else: binaryKeyAlice = binaryKeyAlice + "0" for each in BobKey: if each is...
[ 11748, 10662, 48554, 198, 6738, 12597, 5705, 1330, 7253, 198, 11748, 319, 8079, 15636, 198, 198, 13138, 11, 435, 501, 9218, 11, 5811, 9218, 796, 7253, 13, 14323, 5039, 3419, 198, 198, 39491, 9218, 44484, 796, 13538, 198, 39491, 9218, 18...
2.69697
231
from django.contrib.auth import get_user_model import factory DEFAULT_USER_PASSWORD = 'password'
[ 6738, 42625, 14208, 13, 3642, 822, 13, 18439, 1330, 651, 62, 7220, 62, 19849, 198, 198, 11748, 8860, 628, 198, 7206, 38865, 62, 29904, 62, 47924, 54, 12532, 796, 705, 28712, 6, 628 ]
3.060606
33
"""Exceptions related to PopNet. """ class PopNetError(Exception): """Generic class for exceptions related to PopNet.""" pass class FormatError(PopNetError): """Exceptions related to formatting errors in files handled by PopNet.""" pass class PopNetWarning(Warning): """Generic c...
[ 37811, 3109, 11755, 3519, 284, 8099, 7934, 13, 201, 198, 201, 198, 37811, 201, 198, 201, 198, 4871, 8099, 7934, 12331, 7, 16922, 2599, 201, 198, 220, 220, 220, 37227, 46189, 1398, 329, 13269, 3519, 284, 8099, 7934, 526, 15931, 201, 19...
3.049587
121
# Generated by Django 3.2.7 on 2021-11-15 17:12 from django.db import migrations, models import django.db.models.deletion
[ 2, 2980, 515, 416, 37770, 513, 13, 17, 13, 22, 319, 33448, 12, 1157, 12, 1314, 1596, 25, 1065, 198, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 11, 4981, 198, 11748, 42625, 14208, 13, 9945, 13, 27530, 13, 2934, 1616, 295, ...
2.818182
44
# Copyright (c) 2021, Mahmood Sharif, Keane Lucas, Michael K. Reiter, Lujo Bauer, and Saurabh Shintre # This file is code used in Malware Makeover """ Code to develop/test code-displacement transformations. """ import random import time random.seed(time.time()) import sys sys.path.append('orp') import peLib import ...
[ 2, 15069, 357, 66, 8, 33448, 11, 31556, 702, 44144, 11, 46160, 15257, 11, 3899, 509, 13, 797, 2676, 11, 6026, 7639, 41971, 11, 290, 46197, 397, 71, 911, 600, 260, 198, 2, 770, 2393, 318, 2438, 973, 287, 4434, 1574, 6889, 2502, 198...
2.067138
566
#!/usr/bin/env python3.8 # Copyright 2021 The Fuchsia Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """ Suggests OWNERS for projects in a jiri manifest without owners. For each project in a given jiri manifest file, do the following:...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 13, 23, 198, 2, 15069, 33448, 383, 376, 37533, 544, 46665, 13, 1439, 2489, 10395, 13, 198, 2, 5765, 286, 428, 2723, 2438, 318, 21825, 416, 257, 347, 10305, 12, 7635, 5964, 326, 460, ...
3.160131
306
import json with open("Data/sarcasm.json", 'r') as f: datastore = json.load(f) sentences = [] labels = [] urls = [] for item in datastore: sentences.append(item['headline']) labels.append(item['is_sarcastic']) urls.append(item['article_link']) from tensorflow.keras.preprocessing.text im...
[ 11748, 33918, 201, 198, 201, 198, 4480, 1280, 7203, 6601, 14, 82, 5605, 8597, 13, 17752, 1600, 705, 81, 11537, 355, 277, 25, 201, 198, 220, 220, 220, 4818, 459, 382, 796, 33918, 13, 2220, 7, 69, 8, 201, 198, 201, 198, 34086, 3007,...
2.486395
294
from __future__ import absolute_import, print_function import torch import torch.nn as nn import torch.nn.functional as F from code.models.backbone.ResNet_Dilated import _ConvBnReLU from collections import OrderedDict
[ 6738, 11593, 37443, 834, 1330, 4112, 62, 11748, 11, 3601, 62, 8818, 198, 198, 11748, 28034, 198, 11748, 28034, 13, 20471, 355, 299, 77, 198, 11748, 28034, 13, 20471, 13, 45124, 355, 376, 198, 6738, 2438, 13, 27530, 13, 1891, 15992, 13...
3.421875
64
import os import glob from .env import IS_WINDOWS, IS_CONDA, CONDA_DIR, check_negative_env_flag, gather_paths, lib_paths_from_base from .cuda import USE_CUDA, CUDA_HOME USE_CUDNN = False CUDNN_LIB_DIR = None CUDNN_INCLUDE_DIR = None CUDNN_LIBRARY = None WITH_STATIC_CUDNN = os.getenv("USE_STATIC_CUDNN") if USE_CUDA ...
[ 11748, 28686, 198, 11748, 15095, 198, 198, 6738, 764, 24330, 1330, 3180, 62, 33207, 11, 3180, 62, 10943, 5631, 11, 7102, 5631, 62, 34720, 11, 2198, 62, 31591, 62, 24330, 62, 32109, 11, 6431, 62, 6978, 82, 11, 9195, 62, 6978, 82, 62,...
1.924209
1,834
# # NOTE: This is the settings file for the server at https://testing.onepercentclub.com # This is not for running tests! # try: from .secrets import * except ImportError: import sys sys.exit('secrets.py settings file not found. Please run `prepare.sh` to create one.') from .server import * # # Put...
[ 2, 198, 2, 24550, 25, 770, 318, 262, 6460, 2393, 329, 262, 4382, 379, 3740, 1378, 33407, 13, 505, 25067, 18664, 13, 785, 198, 2, 220, 220, 220, 220, 220, 220, 770, 318, 407, 329, 2491, 5254, 0, 198, 2, 198, 198, 28311, 25, 198, ...
2.757202
243
from unittest import TestCase, mock from click.testing import CliRunner from kfk.commands.configs import kfk from kfk.kubectl_command_builder import Kubectl from kfk.constants import * from kfk.messages import *
[ 6738, 555, 715, 395, 1330, 6208, 20448, 11, 15290, 198, 6738, 3904, 13, 33407, 1330, 1012, 72, 49493, 198, 6738, 479, 69, 74, 13, 9503, 1746, 13, 11250, 82, 1330, 479, 69, 74, 198, 6738, 479, 69, 74, 13, 74, 549, 478, 75, 62, 21...
2.958333
72
'''Create a conftest.py Define the fixture functions in this file to make them accessible across multiple test files. ''' from pathlib import Path import pytest from tempfile import mkdtemp from beetools import rm_tree # from github import Github, GithubException as gh_exc _DESC = __doc__.split('\n')[0] ...
[ 7061, 6, 16447, 257, 369, 701, 395, 13, 9078, 201, 198, 201, 198, 7469, 500, 262, 29220, 5499, 287, 428, 2393, 284, 787, 606, 9857, 1973, 3294, 1332, 3696, 13, 201, 198, 7061, 6, 201, 198, 6738, 3108, 8019, 1330, 10644, 201, 198, ...
2.339672
3,471
from pipelining.pipe_root import ConfigRoot from etl import maxqdata_manager, gold_data_transform_rules from pipelining import data_flow_registry from IPython import embed import main
[ 6738, 7347, 417, 3191, 13, 34360, 62, 15763, 1330, 17056, 30016, 198, 6738, 2123, 75, 1330, 3509, 80, 7890, 62, 37153, 11, 3869, 62, 7890, 62, 35636, 62, 38785, 198, 6738, 7347, 417, 3191, 1330, 1366, 62, 11125, 62, 2301, 4592, 198, ...
3.596154
52
useless_array = [' ','\n','\t','%']
[ 198, 84, 10950, 62, 18747, 796, 37250, 705, 4032, 59, 77, 41707, 59, 83, 41707, 4, 20520 ]
2.117647
17
from django.db import models from django.contrib.auth.models import User # Create your models here.
[ 6738, 42625, 14208, 13, 9945, 1330, 4981, 198, 6738, 42625, 14208, 13, 3642, 822, 13, 18439, 13, 27530, 1330, 11787, 198, 198, 2, 13610, 534, 4981, 994, 13, 198, 220, 220 ]
3.322581
31
from luna.dataset.luna_dataset import LunaDataset from luna.dataset.exceptions import LunaDatasetNotSupportedException, LunaInvalidConfigException class LunaAzureMLFileDataset(LunaFileDataset): """ Download file(s) from Azure ML file dataset. Only supported when running in an Azure ML workspace. """ ...
[ 6738, 300, 9613, 13, 19608, 292, 316, 13, 75, 9613, 62, 19608, 292, 316, 1330, 23694, 27354, 292, 316, 198, 6738, 300, 9613, 13, 19608, 292, 316, 13, 1069, 11755, 1330, 23694, 27354, 292, 316, 3673, 48181, 16922, 11, 23694, 44651, 169...
2.713178
258
#!/usr/bin/python # Copyright 2019 Northern.tech AS # # 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 ap...
[ 2, 48443, 14629, 14, 8800, 14, 29412, 198, 2, 15069, 13130, 8342, 13, 13670, 7054, 198, 2, 198, 2, 220, 220, 220, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 2, 220, 220, 220, 345, 743...
3.257642
229
# -*- coding: utf-8 -*- """Test cascade.""" from compath.constants import EQUIVALENT_TO from compath.models import User from tests.constants import DatabaseMixin, KEGG, REACTOME class TestCascades(DatabaseMixin): """Test that votes are cascaded properly.""" def setUp(self): """Create fakes emails....
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 37811, 14402, 44847, 526, 15931, 628, 198, 6738, 552, 776, 13, 9979, 1187, 1330, 46886, 3824, 1847, 3525, 62, 10468, 198, 6738, 552, 776, 13, 27530, 1330, 11787, 19...
2.108326
1,117
import random import pokeconfig import pokemon_new import pokelist import pokeutils import pokemoves import movelist from telegram.ext import CommandHandler, CallbackQueryHandler from telegram import InputMediaPhoto from datetime import datetime typeTrans = { 'Grass': '🌱', 'Fire': '🔥', 'Water': '💧', ...
[ 11748, 4738, 198, 11748, 22620, 11250, 198, 11748, 43962, 62, 3605, 198, 11748, 22620, 4868, 198, 11748, 22620, 26791, 198, 11748, 22620, 76, 5241, 198, 11748, 6941, 626, 396, 198, 6738, 573, 30536, 13, 2302, 1330, 9455, 25060, 11, 4889, ...
2.093645
299
""" This settings file is an example of what you need to do to use the channels backend. """ from .base import * INSTALLED_APPS += ['channels'] TASK_RUNNER_BACKEND = 'fabric_bolt.task_runners.channels.ChannelsBackend'
[ 37811, 198, 1212, 6460, 2393, 318, 281, 1672, 286, 644, 345, 761, 284, 466, 284, 779, 262, 9619, 30203, 13, 198, 37811, 198, 198, 6738, 764, 8692, 1330, 1635, 198, 198, 38604, 7036, 1961, 62, 2969, 3705, 15853, 37250, 354, 8961, 20520...
2.986486
74
from . import util
[ 6738, 764, 1330, 7736, 628, 628 ]
3.666667
6
# -*- coding: utf-8 -*- import random from dataclasses import dataclass from aiohttp import web from mtpylon import Schema @dataclass schema = Schema(constructors=[Reply], functions=[echo])
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 11748, 4738, 198, 6738, 4818, 330, 28958, 1330, 4818, 330, 31172, 198, 198, 6738, 257, 952, 4023, 1330, 3992, 198, 198, 6738, 285, 34788, 15158, 1330, 10011, 2611, 628, ...
2.940299
67
# ================================================================================== # Copyright (c) 2019 Nokia # Copyright (c) 2018-2019 AT&T Intellectual Property. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # ...
[ 2, 38093, 4770, 28, 198, 2, 220, 220, 220, 220, 220, 220, 15069, 357, 66, 8, 13130, 26182, 198, 2, 220, 220, 220, 220, 220, 220, 15069, 357, 66, 8, 2864, 12, 23344, 5161, 5, 51, 42443, 14161, 13, 198, 2, 198, 2, 220, 220, 4996...
3.827957
372
import tensorflow as tf import numpy as np import argparse import os import random import string import pickle as pkl import glob import design_bench as db from datetime import datetime if __name__ == "__main__": baseline_to_iteration = { "autofocused-cbas": 20, "cbas": 20, ...
[ 11748, 11192, 273, 11125, 355, 48700, 201, 198, 11748, 299, 32152, 355, 45941, 201, 198, 11748, 1822, 29572, 201, 198, 11748, 28686, 201, 198, 11748, 4738, 201, 198, 11748, 4731, 201, 198, 11748, 2298, 293, 355, 279, 41582, 201, 198, 11...
1.923412
1,606
import gi gi.require_version('Handy', '0.0') gi.require_version('Gtk', '3.0') from gi.repository import Gtk, Handy, Gio, GObject Handy.init() # Create Window window = Gtk.Window(title="LibHandy List example") window.set_border_width(10) # Create a Button # button = Gtk.Button.new_from_icon_name('batter...
[ 11748, 308, 72, 198, 198, 12397, 13, 46115, 62, 9641, 10786, 39, 10757, 3256, 705, 15, 13, 15, 11537, 198, 12397, 13, 46115, 62, 9641, 10786, 38, 30488, 3256, 705, 18, 13, 15, 11537, 198, 198, 6738, 308, 72, 13, 260, 1930, 37765, ...
2.455274
749
import unittest from tgl.utils import delete_user_data from tests.utils import setup_credentials, run_command, tgl_stop if __name__ == "__main__": unittest.main()
[ 11748, 555, 715, 395, 198, 198, 6738, 256, 4743, 13, 26791, 1330, 12233, 62, 7220, 62, 7890, 198, 6738, 5254, 13, 26791, 1330, 9058, 62, 66, 445, 14817, 11, 1057, 62, 21812, 11, 256, 4743, 62, 11338, 628, 198, 198, 361, 11593, 3672,...
2.803279
61
import unittest from utils import *
[ 11748, 555, 715, 395, 198, 6738, 3384, 4487, 1330, 1635, 198 ]
3.272727
11
from ..utils import Object class SetAlarm(Object): """ Succeeds after a specified amount of time has passed. Can be called before authorization. Can be called before initialization Attributes: ID (:obj:`str`): ``SetAlarm`` Args: seconds (:obj:`float`): Number of second...
[ 198, 198, 6738, 11485, 26791, 1330, 9515, 628, 198, 4871, 5345, 2348, 1670, 7, 10267, 2599, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 47352, 2707, 82, 706, 257, 7368, 2033, 286, 640, 468, 3804, 13, 1680, 307, 1444, 878, 19601, ...
2.551913
183
import dateutil.utils from alice_blue import * import conf import logging from datetime import datetime import statistics from time import sleep logging.basicConfig(level=logging.DEBUG) ltp = 0 EMA_CROSS_SCRIP = 'INFY' NIFTY_BANK_IDX = '' lots = 1 sl_percentage = 0.25 # exit if it goes more than 25% on either size of ...
[ 11748, 3128, 22602, 13, 26791, 198, 6738, 435, 501, 62, 17585, 1330, 1635, 198, 11748, 1013, 198, 11748, 18931, 198, 6738, 4818, 8079, 1330, 4818, 8079, 198, 11748, 7869, 198, 6738, 640, 1330, 3993, 198, 198, 6404, 2667, 13, 35487, 1693...
2.230476
525
from src.server.token import devFlag import unittest
[ 6738, 12351, 13, 15388, 13, 30001, 1330, 1614, 34227, 201, 198, 11748, 555, 715, 395, 201, 198, 201, 198 ]
3
19
import os from dotenv import load_dotenv as ld
[ 11748, 28686, 198, 198, 6738, 16605, 24330, 1330, 3440, 62, 26518, 24330, 355, 300, 67, 198 ]
3
16
from setuptools import setup, find_packages setup(name='sproutnet', version='0.3.0', author='Sharpkoi', author_email='sharpkoi1222@gmail.com', license='LICENSE', description='neural network for learning and education.', packages=find_packages())
[ 6738, 900, 37623, 10141, 1330, 9058, 11, 1064, 62, 43789, 198, 198, 40406, 7, 3672, 11639, 34975, 448, 3262, 3256, 198, 220, 220, 220, 220, 220, 2196, 11639, 15, 13, 18, 13, 15, 3256, 198, 220, 220, 220, 220, 220, 1772, 11639, 44336...
2.62037
108