content
stringlengths
1
1.04M
input_ids
listlengths
1
774k
ratio_char_token
float64
0.38
22.9
token_count
int64
1
774k
#!/usr/bin/env python # -*- coding: utf-8 -*- """Helper functions: exceptions, print style, Party, ...""" from dataclasses import dataclass, field # import random from typing import List from .constants import GERMAN_PARTIES # type: ignore # noqa class NotInRange(Exception): """For state NRW only terms 14 to c...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 47429, 5499, 25, 13269, 11, 3601, 3918, 11, 3615, 11, 35713, 15931, 198, 6738, 4818, 330, 28958, 1330, 4818, 330...
2.498716
1,558
import json import os import io import hashlib import dataset import dataset_util from pycocotools.coco import COCO import tensorflow as tf import PIL
[ 11748, 33918, 198, 11748, 28686, 220, 198, 11748, 33245, 198, 11748, 12234, 8019, 198, 198, 11748, 27039, 198, 11748, 27039, 62, 22602, 198, 198, 6738, 12972, 66, 420, 313, 10141, 13, 66, 25634, 1330, 327, 4503, 46, 198, 11748, 11192, 2...
3.163265
49
funnyRect = FunnyRect() funnyRect1 = FunnyRect() counter = 0 cx = 0 cy = 0 fsize = 0
[ 198, 12543, 3281, 45474, 796, 40473, 45474, 3419, 198, 12543, 3281, 45474, 16, 796, 40473, 45474, 3419, 198, 24588, 796, 657, 198, 66, 87, 796, 657, 198, 948, 796, 657, 198, 69, 7857, 796, 657, 198 ]
2.388889
36
from tabulate import tabulate # a = routeTable("127.0.0.1") # b = routeTable("127.0.0.2") # a.updateRoute(["127.0.0.3", "127.0.0.2", 2]) # a.print() # b.updateRoute(["127.0.0.3","127.0.0.3",1]) # b.updateRouteTable(a.getTable()) # b.print() # def RIPadvertise(ip):
[ 6738, 7400, 5039, 1330, 7400, 5039, 198, 198, 2, 257, 796, 6339, 10962, 7203, 16799, 13, 15, 13, 15, 13, 16, 4943, 198, 2, 275, 796, 6339, 10962, 7203, 16799, 13, 15, 13, 15, 13, 17, 4943, 198, 2, 257, 13, 19119, 43401, 7, 14692...
2.134921
126
from django.shortcuts import render_to_response from django.conf import settings from zookeeper_dashboard.zkadmin.models import ZKServer ZOOKEEPER_SERVERS = getattr(settings,'ZOOKEEPER_SERVERS').split(',')
[ 6738, 42625, 14208, 13, 19509, 23779, 1330, 8543, 62, 1462, 62, 26209, 198, 6738, 42625, 14208, 13, 10414, 1330, 6460, 198, 198, 6738, 40565, 2088, 5723, 62, 42460, 3526, 13, 89, 74, 28482, 13, 27530, 1330, 1168, 42, 10697, 198, 198, ...
3.104478
67
# Copyright 2018 The TensorFlow Probability Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
[ 2, 15069, 2864, 383, 309, 22854, 37535, 30873, 1799, 46665, 13, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 2, 345, 743, 407, 779, 428, 2393, 2845, 287, 11846, 351, 262, ...
2.411343
5,854
#!/usr/bin/env python # -*- coding: utf-8 -*- from datetime import timedelta from django.utils import timezone from factory import Faker, Sequence, SubFactory, post_generation from factory.django import DjangoModelFactory from reprohack_hub.models import Event, Paper, Review from typing import Any, Sequence as Typin...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 6738, 4818, 8079, 1330, 28805, 12514, 198, 198, 6738, 42625, 14208, 13, 26791, 1330, 640, 11340, 198, 6738, 8860, ...
3.441441
111
from js import print_div from RobotRaconteur.Client import * import traceback print_div("Begin test_multiple") c1 = None RRN.SetLogLevel(RR.LogLevel_Debug) loop = RR.WebLoop() loop.call_soon(test_await_func())
[ 6738, 44804, 1330, 3601, 62, 7146, 198, 6738, 16071, 49, 7807, 660, 333, 13, 11792, 1330, 1635, 198, 11748, 12854, 1891, 198, 198, 4798, 62, 7146, 7203, 44140, 1332, 62, 48101, 4943, 198, 198, 66, 16, 796, 6045, 198, 198, 21095, 45, ...
2.630952
84
from inspect import isclass from .props import props class SubclassWithMeta(metaclass=SubclassWithMeta_Meta): """This class improves __init_subclass__ to receive automatically the options from meta""" def __init_subclass__(cls, **meta_options): """This method just terminates the super() chain""" ...
[ 6738, 10104, 1330, 318, 4871, 198, 198, 6738, 764, 1676, 862, 1330, 25744, 628, 198, 198, 4871, 3834, 4871, 3152, 48526, 7, 4164, 330, 31172, 28, 7004, 4871, 3152, 48526, 62, 48526, 2599, 198, 220, 220, 220, 37227, 1212, 1398, 19575, ...
2.167192
634
from hypothesis import given from tests.port_tests.hints import PortedSegment from tests.utils import pickle_round_trip from . import strategies @given(strategies.segments)
[ 6738, 14078, 1330, 1813, 198, 198, 6738, 5254, 13, 634, 62, 41989, 13, 71, 29503, 1330, 4347, 276, 41030, 434, 198, 6738, 5254, 13, 26791, 1330, 2298, 293, 62, 744, 62, 39813, 198, 6738, 764, 1330, 10064, 628, 198, 31, 35569, 7, 253...
3.52
50
########################################################################### # ################ Created By Basil Abu-Ragheef May-2019 ################ # ########################################################################### import numpy as np import numpy import pylab as pl import matplotlib.pyplot as plt ...
[ 29113, 29113, 7804, 21017, 201, 198, 2, 1303, 7804, 4242, 21017, 15622, 2750, 32520, 13098, 12, 49, 363, 258, 891, 1737, 12, 23344, 1303, 7804, 4242, 21017, 1303, 201, 198, 29113, 29113, 7804, 21017, 201, 198, 201, 198, 11748, 299, 3215...
2.520174
917
from setuptools import setup, find_packages from pglookout import __version__ import os setup( name = "pglookout", version = os.getenv("VERSION") or __version__, zip_safe = False, packages = find_packages(exclude=["test"]), install_requires = ['psycopg2 >= 2.0.0', 'requests >= 1.2.0'], extras_r...
[ 6738, 900, 37623, 10141, 1330, 9058, 11, 1064, 62, 43789, 198, 6738, 279, 4743, 566, 448, 1330, 11593, 9641, 834, 198, 11748, 28686, 198, 198, 40406, 7, 198, 220, 220, 220, 1438, 796, 366, 79, 4743, 566, 448, 1600, 198, 220, 220, 22...
2.34127
252
# -*- coding: utf-8 -*- import numpy as np from sklearn import preprocessing a = [ 1., 2., 0.] b = [1,-1,2] print np.var(a) print np.mean(a) print (a - np.mean(a)) / np.sqrt(np.var(a)) # print preprocessing.scale(a) # print preprocessing.scale(b)
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 11748, 299, 32152, 355, 45941, 198, 6738, 1341, 35720, 1330, 662, 36948, 198, 64, 796, 685, 352, 1539, 362, 1539, 220, 657, 8183, 198, 65, 796, 685, 16, 12095, 16...
2.317757
107
""" 进行训练 """ import sys from elegantrl.agent import AgentDQN, AgentDoubleDQN, AgentD3QN, AgentDiscretePPO from elegantrl.config import get_gym_env_args, Arguments from elegantrl.run import train_and_evaluate_mp import gym from gym import register, envs from gym.vector.utils import CloudpickleWrapper from tiny_mark...
[ 37811, 198, 198, 32573, 249, 26193, 234, 164, 106, 255, 163, 119, 225, 198, 198, 37811, 198, 11748, 25064, 198, 198, 6738, 19992, 45895, 13, 25781, 1330, 15906, 35, 48, 45, 11, 15906, 25628, 35, 48, 45, 11, 15906, 35, 18, 48, 45, ...
2.130971
649
from datetime import datetime, timezone import pytest from arti import Version from arti.versions import GitCommit, SemVer, String, Timestamp, _Source @pytest.mark.parametrize( ["major", "minor", "patch", "fingerprint"], ( (0, 0, 0, -4875916080982812485), (0, 0, 1, -6022020963282911891), ...
[ 6738, 4818, 8079, 1330, 4818, 8079, 11, 640, 11340, 198, 198, 11748, 12972, 9288, 198, 198, 6738, 1242, 72, 1330, 10628, 198, 6738, 1242, 72, 13, 47178, 1330, 15151, 6935, 270, 11, 12449, 13414, 11, 10903, 11, 5045, 27823, 11, 4808, 7...
1.997199
357
from functools import partial import numpy as onp import torch import kruskals_cpp def kruskals_pytorch_batched(weights_and_edges, n): """weights_and_edges are shape (batch_size, n * (n - 1) / 2, 3), where weights_and_edges[.][i] = [weight_i, node1_i, node2_i] for edge i.""" device = weights_and_edge...
[ 6738, 1257, 310, 10141, 1330, 13027, 198, 11748, 299, 32152, 355, 319, 79, 198, 198, 11748, 28034, 198, 11748, 479, 14932, 74, 874, 62, 20322, 628, 628, 628, 198, 4299, 479, 14932, 74, 874, 62, 9078, 13165, 354, 62, 8664, 1740, 7, 4...
2.061667
3,827
# TODO: want path appends to be done in # venv, so can import modules correctly # and not using relative paths that may change # in future releases import sys sys.path.append('../../..') # LCBD modules from preprocessing.scripts import argParser from preprocessing.src import Plots import os, shutil from os.path impor...
[ 2, 16926, 46, 25, 765, 3108, 598, 2412, 284, 307, 1760, 287, 198, 2, 8710, 85, 11, 523, 460, 1330, 13103, 9380, 198, 2, 290, 407, 1262, 3585, 13532, 326, 743, 1487, 198, 2, 287, 2003, 10050, 198, 11748, 25064, 198, 17597, 13, 6978...
2.79562
411
from abc import ABC, abstractmethod from enum import Enum from functools import reduce from string import ascii_letters, digits, whitespace import re # Inclusive-inclusive interval POSITION = [-100, 100] # 0 is intentionally missing INDEX = [-5, -4, -3, -2, -1, 1, 2, 3, 4, 5] # Picking the first few for convenience #...
[ 6738, 450, 66, 1330, 9738, 11, 12531, 24396, 198, 6738, 33829, 1330, 2039, 388, 198, 6738, 1257, 310, 10141, 1330, 4646, 198, 6738, 4731, 1330, 355, 979, 72, 62, 15653, 11, 19561, 11, 13216, 10223, 198, 11748, 302, 628, 198, 2, 554, ...
2.852459
183
# -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incor...
[ 2, 16529, 35937, 198, 2, 15069, 357, 66, 8, 5413, 10501, 13, 1439, 2489, 10395, 13, 198, 2, 49962, 739, 262, 17168, 13789, 13, 4091, 13789, 13, 14116, 287, 262, 1628, 6808, 329, 198, 2, 5964, 1321, 13, 198, 2, 198, 2, 6127, 7560, ...
3.605128
195
# Copyright 2016 Quantopian, 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 writ...
[ 2, 15069, 1584, 16972, 37548, 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, 262, 13789, 13, 198, 2,...
3.225309
324
import re import pytest from django.utils.encoding import force_bytes from capdb.models import VolumeMetadata, CaseMetadata, CaseImage, CaseBodyCache, CaseXML, fetch_relations, Jurisdiction, \ Reporter, Court, EditLog from capdb.tasks import retrieve_images_from_cases from scripts.helpers import nsmap, parse_xml,...
[ 11748, 302, 198, 11748, 12972, 9288, 198, 198, 6738, 42625, 14208, 13, 26791, 13, 12685, 7656, 1330, 2700, 62, 33661, 198, 198, 6738, 1451, 9945, 13, 27530, 1330, 14701, 9171, 14706, 11, 8913, 9171, 14706, 11, 8913, 5159, 11, 8913, 2584...
2.505747
435
import redis import random red = redis.Redis(host='localhost', port=6379, db=0) zodiac = ['aries', 'taurus', 'gemini', 'cancer', 'leo', 'virgo', 'libra', 'scorpio', 'sagittarius', 'capricorn', 'aquarius', 'pisces'] horoscope = { 1: 'Ваше сострадание и понимание бесконечны. Вы подобны ангелу во плоти. Вам ...
[ 11748, 2266, 271, 198, 11748, 4738, 198, 198, 445, 796, 2266, 271, 13, 7738, 271, 7, 4774, 11639, 36750, 3256, 2493, 28, 21, 29088, 11, 20613, 28, 15, 8, 198, 198, 89, 40096, 796, 37250, 3166, 3256, 705, 83, 22302, 3256, 705, 24090,...
1.061828
1,860
import pygame, sys, os, CONST from pygame import * shipX, shipY = 0,0 MOVEshipX, MOVEshipY = 0,0 screen = pygame.display.set_mode((600,400)) clock = pygame.time.Clock() fighter = pygame.image.load(os.path.join("data","xWingSide.png")).convert_alpha() bg = pygame.image.load("data\\title_background(600x400).jpg").con...
[ 11748, 12972, 6057, 11, 25064, 11, 28686, 11, 7102, 2257, 198, 6738, 12972, 6057, 1330, 1635, 628, 198, 6720, 55, 11, 4074, 56, 796, 657, 11, 15, 198, 11770, 6089, 6720, 55, 11, 13070, 6089, 6720, 56, 796, 657, 11, 15, 198, 9612, ...
2.236607
448
from pathlib import Path from setuptools import setup, find_packages with open("README.md", "r") as fh: long_description = fh.read() with open("VERSION",'r') as fh: version = fh.read() with open("./bfio/VERSION",'w') as fw: fw.write(version) setup( name="bfio", version=version, a...
[ 6738, 3108, 8019, 1330, 10644, 198, 198, 6738, 900, 37623, 10141, 1330, 9058, 11, 1064, 62, 43789, 198, 198, 4480, 1280, 7203, 15675, 11682, 13, 9132, 1600, 366, 81, 4943, 355, 277, 71, 25, 198, 220, 220, 220, 890, 62, 11213, 796, 2...
2.084022
726
#!/usr/bin/python DOCUMENTATION = ''' --- module: targetcli_backstore short_description: TargetCLI backstore module description: - module for handling backstore objects in targetcli ('/backstores'). version_added: "2.0" options: backstore_type: description: - Type of storage in TargetCLI (block, filei...
[ 2, 48443, 14629, 14, 8800, 14, 29412, 198, 198, 38715, 5883, 3525, 6234, 796, 705, 7061, 198, 6329, 198, 21412, 25, 2496, 44506, 62, 1891, 8095, 198, 19509, 62, 11213, 25, 12744, 5097, 40, 736, 8095, 8265, 198, 11213, 25, 198, 220, ...
2.898367
551
# -*- coding:utf-8 -*- import numpy as np from maddpg.common.logger import logger
[ 2, 532, 9, 12, 19617, 25, 40477, 12, 23, 532, 9, 12, 198, 11748, 299, 32152, 355, 45941, 198, 198, 6738, 285, 2860, 6024, 13, 11321, 13, 6404, 1362, 1330, 49706, 628, 628, 198 ]
2.558824
34
# -*- coding: utf-8 -*- ''' .. _module_mc_cloud_docker: mc_cloud_docker / docker registry for compute nodes =================================================== ''' # Import python libs import logging import os from mc_states import saltapi # early in mcpillar, we dont have __salt__ from mc_states.grains.makina_g...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 7061, 6, 198, 198, 492, 4808, 21412, 62, 23209, 62, 17721, 62, 45986, 25, 198, 198, 23209, 62, 17721, 62, 45986, 1220, 36253, 20478, 329, 24061, 13760, 198, 10052, 4770,...
1.805699
1,930
from __future__ import absolute_import import logging from clims.legacy.domain import Container, Artifact, Sample class LegacyService(object): """ General service for handling objects in Legacy. Note that artifacts (e.g. Analytes) are still handled in the ArtifactService """ def update(self, do...
[ 6738, 11593, 37443, 834, 1330, 4112, 62, 11748, 198, 198, 11748, 18931, 198, 6738, 5424, 82, 13, 1455, 1590, 13, 27830, 1330, 43101, 11, 45908, 11, 27565, 628, 198, 4871, 14843, 16177, 7, 15252, 2599, 198, 220, 220, 220, 37227, 198, 2...
2.6875
624
from podman import ApiConnection, system, images, containers from podman.domain import volumes import json import six # Provide a URI path for the libpod service. In libpod, the URI can be a unix # domain socket(UDS) or TCP. The TCP connection has not been implemented in this # package yet. from ansible.module...
[ 6738, 24573, 805, 1330, 5949, 72, 32048, 11, 1080, 11, 4263, 11, 16472, 198, 6738, 24573, 805, 13, 27830, 1330, 15343, 198, 11748, 33918, 198, 11748, 2237, 198, 2, 44290, 257, 43975, 3108, 329, 262, 9195, 33320, 2139, 13, 220, 554, 91...
3.265152
132
import os import sys import json from common import util, schemaParser, builtInTypes, sampleGenerator from . import misc _builtInTypeToJavaTypeMap = { 'string': 'String', 'bool': 'boolean', 'float': 'double', 'int8': 'byte', 'int16': 'short', 'int32': 'int', 'int64': 'long', 'uint8': ...
[ 11748, 28686, 198, 11748, 25064, 198, 11748, 33918, 198, 198, 6738, 2219, 1330, 7736, 11, 32815, 46677, 11, 3170, 818, 31431, 11, 6291, 8645, 1352, 198, 6738, 764, 1330, 12747, 198, 198, 62, 18780, 818, 6030, 2514, 29584, 6030, 13912, 7...
2.166389
14,412
# Generated by Django 3.0.3 on 2020-03-13 20:27 from django.db import migrations, models
[ 2, 2980, 515, 416, 37770, 513, 13, 15, 13, 18, 319, 12131, 12, 3070, 12, 1485, 1160, 25, 1983, 198, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 11, 4981, 628 ]
2.84375
32
""" Receives the validation set and the test set, runs the baseline system for proposition extraction, and prints analysis logs of propositions Author: Hitesh Golchha """ import sys sys.path.append('../../../common') sys.path.append('../../../agreement') sys.path.append('../..') from okr import * from docopt impo...
[ 37811, 198, 3041, 344, 1083, 262, 21201, 900, 290, 262, 1332, 900, 11, 4539, 262, 14805, 1080, 329, 19168, 22236, 11, 198, 392, 20842, 3781, 17259, 286, 40743, 198, 198, 13838, 25, 367, 2737, 71, 26849, 354, 3099, 198, 37811, 198, 198...
3.193966
464
import decorators @decorators.pre_process_inputs(int, str, dict(a=1, b=2))
[ 198, 11748, 11705, 2024, 198, 198, 31, 12501, 273, 2024, 13, 3866, 62, 14681, 62, 15414, 82, 7, 600, 11, 965, 11, 8633, 7, 64, 28, 16, 11, 275, 28, 17, 4008, 198 ]
2.333333
33
from typing import List, Dict, Type ComponentId = int EntityId = int # default simulator sim = ECS()
[ 6738, 19720, 1330, 7343, 11, 360, 713, 11, 5994, 198, 198, 21950, 7390, 796, 493, 198, 32398, 7390, 796, 493, 628, 628, 628, 198, 2, 4277, 35375, 198, 14323, 796, 412, 7902, 3419, 198 ]
3.176471
34
import readline import os from connection import SQLConnection from formatting import to_string
[ 11748, 1100, 1370, 198, 11748, 28686, 198, 198, 6738, 4637, 1330, 16363, 32048, 198, 6738, 33313, 1330, 284, 62, 8841, 198 ]
4.619048
21
print ('meu primeiro programa em Python') a = 2 b = 3 soma = a + b print (soma)
[ 4798, 19203, 1326, 84, 6994, 7058, 1430, 64, 795, 11361, 11537, 198, 64, 796, 362, 198, 65, 796, 513, 198, 82, 6086, 796, 257, 1343, 275, 198, 4798, 357, 82, 6086, 8 ]
2.46875
32
print(7+1-3) print('Hello World)
[ 4798, 7, 22, 10, 16, 12, 18, 8, 198, 4798, 10786, 15496, 2159, 8, 198 ]
2.2
15
#!/usr/bin/env python # # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # # Michael A.G. Aivazis # California Institute of Technology # (C) 1998-2003 All Rights Reserved # # <LicenseText> # # ~~~~~~~~~~~~~~~~...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 198, 2, 220, 27156, 27156, 27156, 27156, 27156, 198, 2, 198, 2, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2...
2.656716
201
import testinfra
[ 11748, 1332, 10745, 430, 628 ]
3.6
5
import operator from functools import reduce dir(operator) operator.add(1, 2) # 3 operator.mul(2, 3) # 6 operator.pow(2, 3) # 8 operator.mod(13, 2) # 1 operator.floordiv(13, 2) # 6 operator.truediv(3, 2) # 1.5 reduce(lambda x, y: x*y, [1, 2, 3, 4]) # 24 reduce(operator.mul, [1, 2, 3, 4]) # 24 ## Comparison and ...
[ 11748, 10088, 198, 6738, 1257, 310, 10141, 1330, 4646, 628, 198, 15908, 7, 46616, 8, 628, 198, 46616, 13, 2860, 7, 16, 11, 362, 8, 198, 2, 513, 198, 198, 46616, 13, 76, 377, 7, 17, 11, 513, 8, 198, 2, 718, 198, 46616, 13, 79, ...
2.114919
496
#!/usr/bin/python # -*- coding: utf-8 -*- # Imports from bridge.carla.core.SensorData import SensorData
[ 2, 48443, 14629, 14, 8800, 14, 29412, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 2, 1846, 3742, 198, 6738, 7696, 13, 7718, 5031, 13, 7295, 13, 47864, 6601, 1330, 35367, 6601, 628 ]
2.585366
41
from django import forms from django.contrib import admin from django.contrib.auth.admin import UserAdmin as AuthUserAdmin from django.contrib.auth.forms import UserChangeForm, UserCreationForm from django.template.response import TemplateResponse from django.contrib.admin import helpers from .models import ( U...
[ 6738, 42625, 14208, 1330, 5107, 198, 6738, 42625, 14208, 13, 3642, 822, 1330, 13169, 198, 6738, 42625, 14208, 13, 3642, 822, 13, 18439, 13, 28482, 1330, 11787, 46787, 355, 26828, 12982, 46787, 198, 6738, 42625, 14208, 13, 3642, 822, 13, ...
2.914894
188
"""Compare if two binary trees are identical.""" # def compare(a, b): # """Compare two binary trees to determine if they are identical.""" # if a is None and b is None: # return True # if a is not None and b is not None: # return (a.val == b.val) and compare(a.left, b.left)\ # ...
[ 37811, 41488, 611, 734, 13934, 7150, 389, 10411, 526, 15931, 628, 198, 2, 825, 8996, 7, 64, 11, 275, 2599, 198, 2, 220, 220, 220, 220, 37227, 41488, 734, 13934, 7150, 284, 5004, 611, 484, 389, 10411, 526, 15931, 198, 2, 220, 220, ...
2.351464
239
from django.contrib import admin from basics.models import * admin.site.register(Document, DocumentAdmin) admin.site.register(Party, PartyAdmin) admin.site.register(Function, FunctionAdmin) admin.site.register(RegularStatement, RegularStatementAdmin) admin.site.register(Speaker, SpeakerAdmin)
[ 6738, 42625, 14208, 13, 3642, 822, 1330, 13169, 198, 6738, 19165, 13, 27530, 1330, 1635, 628, 628, 628, 198, 198, 28482, 13, 15654, 13, 30238, 7, 24941, 11, 16854, 46787, 8, 198, 28482, 13, 15654, 13, 30238, 7, 33553, 11, 3615, 46787,...
3.619048
84
# # Test script for Crypto.Util.randpool. # __revision__ = "$Id: test_randpool.py,v 1.3 2003/02/28 15:24:01 akuchling Exp $" from sancho.unittest import TestScenario, parse_args, run_scenarios from Crypto.Hash import SHA from Crypto.Util import randpool tested_modules = [ "Crypto.Util.randpool" ] # class RandomPool...
[ 2, 198, 2, 6208, 4226, 329, 36579, 13, 18274, 346, 13, 25192, 7742, 13, 198, 2, 198, 198, 834, 260, 10178, 834, 796, 17971, 7390, 25, 1332, 62, 25192, 7742, 13, 9078, 11, 85, 352, 13, 18, 5816, 14, 2999, 14, 2078, 1315, 25, 1731...
2.650307
163
from graphene import AbstractType, String from .UpdateMurmurations import UpdateRecords
[ 6738, 42463, 1330, 27741, 6030, 11, 10903, 198, 198, 6738, 764, 10260, 23830, 76, 20074, 1330, 10133, 6690, 3669, 628 ]
4.5
20
# -*- coding: utf-8 -*_ """ Read and Compile Data Sets -------------------------------------------------------------------------------- Author(s): Soichi Hirokawa and Griffin Chure Last Modified: September 25, 2019 License: MIT Description -------------------------------------------------------------------------------...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 62, 198, 37811, 198, 5569, 290, 3082, 576, 6060, 21394, 198, 10097, 1783, 198, 13838, 7, 82, 2599, 1406, 16590, 25940, 74, 6909, 290, 16525, 609, 495, 198, 5956, 40499, 25, 2693,...
2.847156
844
# from default import NewSetPaths, ExcelToData from default.sets.init_email import EmailExecutor from default.sets import InitialSetting class PgDasmailSender(EmailExecutor, InitialSetting): f''' <h3> -> A previsão da data de vencimento do boleto é: {ntt('span' + red, self.__venc_das)} </h3> <...
[ 2, 422, 4277, 1330, 968, 7248, 15235, 82, 11, 24134, 2514, 6601, 198, 6738, 4277, 13, 28709, 13, 15003, 62, 12888, 1330, 9570, 23002, 38409, 198, 6738, 4277, 13, 28709, 1330, 20768, 34149, 628, 198, 4871, 350, 70, 35, 292, 4529, 50, ...
2.14693
456
import argparse import torch from torchvision import utils from model import Generator from tqdm import tqdm import os if __name__ == "__main__": device = "cuda" parser = argparse.ArgumentParser(description="Generate samples from the generator") parser.add_argument( "--size", type=int, default...
[ 11748, 1822, 29572, 198, 198, 11748, 28034, 198, 6738, 28034, 10178, 1330, 3384, 4487, 198, 6738, 2746, 1330, 35986, 198, 6738, 256, 80, 36020, 1330, 256, 80, 36020, 198, 11748, 28686, 628, 198, 198, 361, 11593, 3672, 834, 6624, 366, 83...
2.316556
755
import os import cv2 import tqdm import numpy as np if __name__ == "__main__": mask_dir = "/home/arturo/datasets/sequence_12/mask/" outdir = "/home/arturo/datasets/testset_glass/" position = 4 mex = MaskExtract(mask_dir, outdir, position) mex.save_all()
[ 11748, 28686, 198, 11748, 269, 85, 17, 198, 11748, 256, 80, 36020, 198, 11748, 299, 32152, 355, 45941, 628, 198, 198, 361, 11593, 3672, 834, 6624, 366, 834, 12417, 834, 1298, 198, 220, 220, 220, 9335, 62, 15908, 796, 12813, 11195, 14,...
2.387931
116
# -*- coding: utf-8 -*- """ Set of unit tests for UCPErrorsSource """ import unittest import json import os.path from ..sources import UCPErrorsSource class UCPErrorsSourceTestClass(unittest.TestCase): """ Unit tests for UCPErrorsSource class """
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 198, 7248, 286, 4326, 5254, 329, 471, 8697, 9139, 5965, 7416, 198, 37811, 198, 11748, 555, 715, 395, 198, 11748, 33918, 198, 11748, 28686, 13, 6978, 198, 198, 673...
2.747368
95
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 6738, 11593, 37443, 834, 1330, 28000, 1098, 62, 17201, 874, 198, 198, 6738, 42625, 14208, 13, 9945, 1330, 4981, 11, 15720, 602, 628 ]
2.891892
37
import re import requests from jsonview.views import JsonView from py2casefold import casefold from django.conf import settings from django.contrib.auth import get_user_model from django.contrib.auth.decorators import login_required from django.core.exceptions import ImproperlyConfigured from django.shortcuts import ...
[ 11748, 302, 198, 198, 11748, 7007, 198, 6738, 33918, 1177, 13, 33571, 1330, 449, 1559, 7680, 198, 6738, 12972, 17, 7442, 11379, 1330, 1339, 11379, 198, 198, 6738, 42625, 14208, 13, 10414, 1330, 6460, 198, 6738, 42625, 14208, 13, 3642, 8...
2.821474
1,574
import os # Try running on CPU os.environ['CUDA_VISIBLE_DEVICES'] = '-1' import numpy as np import cv2 from keras.models import load_model R = 2 ** 4 MODEL_NAME = './model1.h5' model = load_model(MODEL_NAME) model.summary() for root, dirs, files in os.walk('./input', topdown=False): for name in files: ...
[ 11748, 28686, 198, 198, 2, 9993, 2491, 319, 9135, 198, 418, 13, 268, 2268, 17816, 43633, 5631, 62, 29817, 34563, 62, 39345, 34444, 20520, 796, 705, 12, 16, 6, 198, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 269, 85, 17, 198, 67...
2.137405
393
import pathlib from pathlib import Path ENVS_DIR = Path(__file__).resolve().parent parameteres_default_file = ENVS_DIR / 'config' / 'task_day_custom.yaml' render_file = ENVS_DIR / 'config' / 'render_options.yaml' #TODO: one day we should make a function to search for yamls with rglob TEMPLATES_DIR = [_ for _ in ENV...
[ 11748, 3108, 8019, 198, 6738, 3108, 8019, 1330, 10644, 198, 198, 1677, 20304, 62, 34720, 796, 10644, 7, 834, 7753, 834, 737, 411, 6442, 22446, 8000, 198, 198, 17143, 14471, 411, 62, 12286, 62, 7753, 796, 12964, 20304, 62, 34720, 1220, ...
2.705882
153
import datetime import pytest import mock from copy import deepcopy import os import json import shutil import tempfile import time import botocore.auth import iotbotocredentialprovider.AWS import iotbotocredentialprovider.FakeMetadata metadata = { 'account_id': '0123456789', 'certificate_id': 'mycertificatei...
[ 11748, 4818, 8079, 198, 11748, 12972, 9288, 198, 11748, 15290, 198, 6738, 4866, 1330, 2769, 30073, 198, 11748, 28686, 198, 11748, 33918, 198, 11748, 4423, 346, 198, 11748, 20218, 7753, 198, 11748, 640, 198, 11748, 10214, 420, 382, 13, 184...
2.633205
259
# # 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.819315
321
from __future__ import unicode_literals import logging import os import pykka from mopidy import backend from .library import YLELibraryProvider from .playback import YLEPlaybackProvider from .yleapi import YLEAPI logger = logging.getLogger(__name__)
[ 6738, 11593, 37443, 834, 1330, 28000, 1098, 62, 17201, 874, 198, 198, 11748, 18931, 198, 11748, 28686, 198, 11748, 12972, 74, 4914, 198, 6738, 285, 404, 19325, 1330, 30203, 198, 198, 6738, 764, 32016, 1330, 575, 2538, 23377, 29495, 198, ...
3.4
75
from cvpro import SelfiSegmentation import cv2 cap = cv2.VideoCapture(0) cap.set(3, 1280) cap.set(4, 720) segmentor = SelfiSegmentation(model=1) while True: success, img = cap.read() imgOut = segmentor.removeBG(img, threshold=0.5) cv2.imshow("Image", img) cv2.imshow("Image Out", imgOut) ...
[ 6738, 269, 85, 1676, 1330, 12189, 72, 41030, 14374, 201, 198, 11748, 269, 85, 17, 201, 198, 201, 198, 11128, 796, 269, 85, 17, 13, 10798, 49630, 7, 15, 8, 201, 198, 11128, 13, 2617, 7, 18, 11, 37674, 8, 201, 198, 11128, 13, 2617...
2.105556
180
from dlex import Params from dlex.datasets.tf import Dataset from dlex.tf import BaseModelV1
[ 6738, 288, 2588, 1330, 2547, 4105, 201, 198, 6738, 288, 2588, 13, 19608, 292, 1039, 13, 27110, 1330, 16092, 292, 316, 201, 198, 6738, 288, 2588, 13, 27110, 1330, 7308, 17633, 53, 16, 201, 198, 201, 198, 201, 198 ]
2.564103
39
from abc import ABC, abstractmethod from argparse import ArgumentParser
[ 6738, 450, 66, 1330, 9738, 11, 12531, 24396, 198, 6738, 1822, 29572, 1330, 45751, 46677, 628, 198 ]
4.352941
17
#!/usr/bin/python3 import logging from copy import deepcopy if __name__ == "__main__": logging.basicConfig(level=logging.INFO) data = None with open("day11.txt") as f: data = list(map(list, map(str.strip, f.readlines()))) print(run(data))
[ 2, 48443, 14629, 14, 8800, 14, 29412, 18, 198, 198, 11748, 18931, 198, 198, 6738, 4866, 1330, 2769, 30073, 628, 628, 198, 198, 361, 11593, 3672, 834, 6624, 366, 834, 12417, 834, 1298, 198, 220, 220, 220, 18931, 13, 35487, 16934, 7, ...
2.463636
110
#!/usr/bin/env python #capture joystick events using ROS and convert to AirSim Car API commands #to enable: # rosrun joy joy_node import rospy import threading import sensor_msgs import sensor_msgs.msg import airsim_ros_pkgs as air import airsim_ros_pkgs.msg if __name__ == '__main__': rospy.init_node('car_joy') ...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 198, 2, 27144, 495, 49485, 2995, 1262, 48263, 290, 10385, 284, 3701, 8890, 1879, 7824, 9729, 198, 2, 1462, 7139, 25, 198, 2, 686, 82, 5143, 8716, 8716, 62, 17440, 198, 198, 11748, 68...
2.774436
133
import random import os set_secret_key()
[ 11748, 4738, 198, 11748, 28686, 628, 628, 198, 2617, 62, 21078, 62, 2539, 3419, 198 ]
3
15
from flask import Flask, jsonify import os from pymongo import MongoClient from bson.json_util import dumps import datetime app = Flask(__name__) client = MongoClient(os.environ.get('DB')) db = client.blog @app.route('/') @app.route('/posts') if __name__ == "__main__": insert() app.run(host='0.0.0.0', deb...
[ 6738, 42903, 1330, 46947, 11, 33918, 1958, 198, 11748, 28686, 198, 6738, 279, 4948, 25162, 1330, 42591, 11792, 198, 6738, 275, 1559, 13, 17752, 62, 22602, 1330, 45514, 198, 11748, 4818, 8079, 198, 198, 1324, 796, 46947, 7, 834, 3672, 83...
2.624
125
# -*- coding: utf-8 -*- """ Created on Thu Jun 18 18:07:25 2020 @author: dkreitler resolution filter and psi angle filter work 19Jun2020 Can filter based on spot threshold, resolution, psi histogram of psi angles is good sanity check 19Jun2020 """ from mxscreen.experimentparams import experimentparams as ep impor...
[ 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 198, 41972, 319, 26223, 7653, 1248, 1248, 25, 2998, 25, 1495, 12131, 198, 198, 31, 9800, 25, 288, 74, 260, 270, 1754, 198, 198, 29268, 8106, 290, 46231, 98...
3.170213
141
""" Write integration tests for your model interface code here. The TestCase class below is supplied a `container` to each test method. This `container` object is a proxy to the Dockerized application running your model. It exposes a single method: ``` predict_batch(instances: List[Instance]) -> List[Prediction] ``` ...
[ 37811, 198, 16594, 11812, 5254, 329, 534, 2746, 7071, 2438, 994, 13, 198, 198, 464, 6208, 20448, 1398, 2174, 318, 14275, 257, 4600, 34924, 63, 198, 1462, 1123, 1332, 2446, 13, 770, 4600, 34924, 63, 2134, 318, 257, 15741, 284, 262, 198...
2.285143
11,254
from django.shortcuts import render, redirect from django.http import Http404, HttpResponse, StreamingHttpResponse from django.conf import settings from os.path import abspath, getsize, isdir, isfile, join import os def view_test_data(request, input_file_name=None): """ NOT FOR PROD. Retrieves a file from...
[ 6738, 42625, 14208, 13, 19509, 23779, 1330, 8543, 11, 18941, 198, 6738, 42625, 14208, 13, 4023, 1330, 367, 29281, 26429, 11, 367, 29281, 31077, 11, 43124, 43481, 31077, 198, 6738, 42625, 14208, 13, 10414, 1330, 6460, 198, 6738, 28686, 13,...
2.74271
583
from io import open from setuptools import find_packages, setup setup( name="bert_score", version='0.3.2', author="Tianyi Zhang*, Varsha Kishore*, Felix Wu*, Kilian Q. Weinberger, and Yoav Artzi", author_email="tzhang@asapp.com", description="PyTorch implementation of BERT score", long_descript...
[ 6738, 33245, 1330, 1280, 198, 6738, 900, 37623, 10141, 1330, 1064, 62, 43789, 11, 9058, 198, 198, 40406, 7, 198, 220, 220, 220, 1438, 2625, 4835, 62, 26675, 1600, 198, 220, 220, 220, 2196, 11639, 15, 13, 18, 13, 17, 3256, 198, 220, ...
2.082739
701
from .distributions import * from .excess_time_statistics import * from .second_order_statistics import ( acorr, psd, PSD_periodic_arrivals, autocorr_periodic_arrivals, ) __version__ = "0.1.2"
[ 6738, 764, 17080, 2455, 507, 1330, 1635, 198, 6738, 764, 1069, 919, 62, 2435, 62, 14269, 3969, 1330, 1635, 198, 6738, 764, 12227, 62, 2875, 62, 14269, 3969, 1330, 357, 198, 220, 220, 220, 936, 38890, 11, 198, 220, 220, 220, 279, 212...
2.359551
89
############################################################################## # # Copyright (c) 2009 Zope Foundation and Contributors. # # This software is subject to the provisions of the Zope Public License, # Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution. # THIS SOFTWARE IS PROVIDED "AS I...
[ 29113, 29113, 7804, 4242, 2235, 198, 2, 198, 2, 15069, 357, 66, 8, 3717, 1168, 3008, 5693, 290, 25767, 669, 13, 198, 2, 198, 2, 770, 3788, 318, 2426, 284, 262, 8617, 286, 262, 1168, 3008, 5094, 13789, 11, 198, 2, 10628, 362, 13, ...
3.963855
166
from pyxb.bundles.wssplat.raw.wsu import *
[ 6738, 12972, 30894, 13, 65, 917, 829, 13, 86, 824, 489, 265, 13, 1831, 13, 86, 2385, 1330, 1635, 198 ]
2.15
20
# Time: O(n) # Space: O(n) # 1324 weekly contest 172 1/18/2020 # Given a string s. Return all the words vertically in the same order in which they appear in s. # Words are returned as a list of strings, complete with spaces when is necessary. (Trailing spaces are not allowed). # Each word would be put on only one co...
[ 2, 3862, 25, 220, 440, 7, 77, 8, 198, 2, 4687, 25, 440, 7, 77, 8, 198, 198, 2, 1511, 1731, 10273, 8414, 23120, 352, 14, 1507, 14, 42334, 198, 198, 2, 11259, 257, 4731, 264, 13, 8229, 477, 262, 2456, 31677, 287, 262, 976, 1502,...
2.984556
259
from chibi.file.snippets import exists from tests.snippet.files import Test_with_files
[ 6738, 442, 27567, 13, 7753, 13, 16184, 3974, 1039, 1330, 7160, 198, 6738, 5254, 13, 16184, 3974, 316, 13, 16624, 1330, 6208, 62, 4480, 62, 16624, 628 ]
3.259259
27
import click import pandas as pd from datetime import datetime from flask import current_app as app from flask.cli import with_appcontext from flask_security.cli import users import plotly.express as px from plotly.subplots import make_subplots import backend.models as md @users.command() @with_appcontext def coun...
[ 11748, 3904, 198, 11748, 19798, 292, 355, 279, 67, 198, 6738, 4818, 8079, 1330, 4818, 8079, 198, 198, 6738, 42903, 1330, 1459, 62, 1324, 355, 598, 198, 6738, 42903, 13, 44506, 1330, 351, 62, 1324, 22866, 198, 6738, 42903, 62, 12961, 1...
2.573228
635
# Generated by Django 2.1 on 2018-08-30 15:28 from django.db import migrations, models
[ 2, 2980, 515, 416, 37770, 362, 13, 16, 319, 2864, 12, 2919, 12, 1270, 1315, 25, 2078, 198, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 11, 4981, 628 ]
2.966667
30
# -*- coding: utf-8 -*- from django.test import TestCase import json from plogical.CyberCPLogFileWriter import CyberCPLogFileWriter as logging import requests import time from plogical.processUtilities import ProcessUtilities import urllib3 urllib3.disable_warnings() # Create your tests here.
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 628, 198, 6738, 42625, 14208, 13, 9288, 1330, 6208, 20448, 198, 11748, 33918, 198, 6738, 458, 30766, 13, 20418, 527, 34, 6489, 519, 8979, 34379, 1330, 15101, 34, 6489, 519, 8...
3.285714
91
# -*- coding: utf-8 -*- # Copyright 2014 Objectif Libre # # 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, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 15069, 1946, 9515, 361, 44384, 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, ...
3.019342
517
"""Generate shell scripts to run. This is a template script. Filling out the stuff below each time before running new experiments helps with organization and avoids the messiness once there are many experiments. date: purpose: notes: Rerun but disable label joint cost. run: python -m interpreting_shifts.launc...
[ 37811, 8645, 378, 7582, 14750, 284, 1057, 13, 198, 198, 1212, 318, 257, 11055, 4226, 13, 376, 4509, 503, 262, 3404, 2174, 1123, 640, 878, 2491, 198, 3605, 10256, 5419, 351, 4009, 290, 30940, 262, 2085, 1272, 1752, 612, 389, 198, 21834...
3.371795
156
from django.shortcuts import render, redirect from django.contrib.auth.decorators import login_required from django.views import generic from .models import DownloadDetails from django.views.decorators.http import require_POST from django.http import HttpResponse import json from wenku.loginbaidu import LoginBaidu h...
[ 6738, 42625, 14208, 13, 19509, 23779, 1330, 8543, 11, 18941, 198, 6738, 42625, 14208, 13, 3642, 822, 13, 18439, 13, 12501, 273, 2024, 1330, 17594, 62, 35827, 198, 6738, 42625, 14208, 13, 33571, 1330, 14276, 198, 6738, 764, 27530, 1330, ...
1.859768
1,034
#!/usr/bin/env python3 import sqlite3 import os from os.path import expanduser import argparse import shutil if __name__ == '__main__': main()
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 198, 11748, 44161, 578, 18, 198, 11748, 28686, 198, 6738, 28686, 13, 6978, 1330, 4292, 7220, 198, 11748, 1822, 29572, 198, 11748, 4423, 346, 198, 198, 361, 11593, 3672, 834, 6624, ...
2.811321
53
from django import template import time import os #import lis register = template.Library() @register.simple_tag
[ 6738, 42625, 14208, 1330, 11055, 198, 11748, 640, 198, 11748, 28686, 198, 2, 11748, 300, 271, 198, 30238, 796, 11055, 13, 23377, 3419, 198, 198, 31, 30238, 13, 36439, 62, 12985, 198 ]
3.5625
32
# -*- coding: utf-8 -*- """ Created on Sat Jan 2 22:03:53 2021 @author: saran """ from biorefineries.HP.system import spec
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 198, 41972, 319, 7031, 2365, 220, 362, 2534, 25, 3070, 25, 4310, 33448, 198, 198, 31, 9800, 25, 264, 19173, 198, 37811, 198, 198, 6738, 3182, 382, 69, 48858, 13...
2.470588
51
#!/usr/bin/env python __version__ = '1.0' from Bio import SeqIO import os, sys if __name__ == "__main__": main()
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 198, 834, 9641, 834, 796, 705, 16, 13, 15, 6, 198, 198, 6738, 16024, 1330, 1001, 80, 9399, 198, 11748, 28686, 11, 25064, 198, 198, 361, 11593, 3672, 834, 6624, 366, 834, 12417, 834, ...
2.352941
51
import asyncio import io import json import os from PIL import Image from pyppeteer import launch from .js_function import retrieve_input_props, transform_svg_element, transform_output_element, wait_function chromium = os.environ.get("CHROMIUM_EXECUTABLE_PATH") empty_page = os.environ.get("EMPTY_PAGE_URL", "about:bl...
[ 11748, 30351, 952, 198, 11748, 33245, 198, 11748, 33918, 198, 11748, 28686, 198, 198, 6738, 350, 4146, 1330, 7412, 198, 6738, 12972, 381, 14471, 263, 1330, 4219, 198, 198, 6738, 764, 8457, 62, 8818, 1330, 19818, 62, 15414, 62, 1676, 862...
3.037037
108
# -*- coding: utf-8 -*- from ..Helpers.types import Types from ..Helpers.commands import Store
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 6738, 11485, 12621, 19276, 13, 19199, 1330, 24897, 198, 6738, 11485, 12621, 19276, 13, 9503, 1746, 1330, 9363, 628 ]
2.852941
34
import turtle # creating window win = turtle.Screen() win.bgcolor('black') win.setup(600,600) # border turtle border = turtle.Turtle() border.speed(8) border.color('white') border.width(5) border.hideturtle() # text turle text = turtle.Turtle() text.color('white') text.hideturtle() # spinner turle s = turtle.Turtle...
[ 11748, 28699, 198, 198, 2, 4441, 4324, 198, 5404, 796, 28699, 13, 23901, 3419, 198, 5404, 13, 35904, 8043, 10786, 13424, 11537, 198, 5404, 13, 40406, 7, 8054, 11, 8054, 8, 198, 198, 2, 4865, 28699, 198, 20192, 796, 28699, 13, 51, 17...
2.638418
177
# Python program to print positive Numbers in a List # list of numbers list1 = [12, -7, 5, 64, -14] # iterating each number in list for num in list1: # checking condition if num >= 0: print(num, end = " ")
[ 2, 11361, 1430, 284, 3601, 3967, 27797, 287, 257, 7343, 201, 198, 220, 220, 201, 198, 2, 1351, 286, 3146, 201, 198, 4868, 16, 796, 685, 1065, 11, 532, 22, 11, 642, 11, 5598, 11, 532, 1415, 60, 201, 198, 201, 198, 2, 11629, 803, ...
2.438776
98
import json from unittest.case import TestCase import pytest from django.urls import reverse from rest_framework import status from rest_framework.test import APIClient, APITestCase from environments.identities.models import Identity from environments.identities.traits.models import Trait from environments.models imp...
[ 11748, 33918, 198, 6738, 555, 715, 395, 13, 7442, 1330, 6208, 20448, 198, 198, 11748, 12972, 9288, 198, 6738, 42625, 14208, 13, 6371, 82, 1330, 9575, 198, 6738, 1334, 62, 30604, 1330, 3722, 198, 6738, 1334, 62, 30604, 13, 9288, 1330, ...
3.976563
128
from wallaby import * import constants as c import actions as a import servos as s
[ 6738, 3355, 3930, 1330, 1635, 198, 11748, 38491, 355, 269, 198, 11748, 4028, 355, 257, 198, 11748, 1113, 418, 355, 264 ]
3.904762
21
''' This is a unified interface/wrapper of general/generalized linear models from sklearn/statsmodels packages. Problems with sklearn: 1. No Generalized linear models available. 2. Does not estimate standard error of coefficients. 3. Logistic regression does not handle 1 class case. 4. For 2 class logistic regression,...
[ 7061, 6, 198, 1212, 318, 257, 22706, 7071, 14, 48553, 286, 2276, 14, 24622, 1143, 14174, 4981, 422, 198, 8135, 35720, 14, 34242, 27530, 10392, 13, 198, 198, 2964, 22143, 351, 1341, 35720, 25, 198, 16, 13, 1400, 3611, 1143, 14174, 4981...
2.196378
24,850
# Volatility # Copyright (C) 2007-2013 Volatility Foundation # # This file is part of Volatility. # # Volatility 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 2 of the License, or # (at your o...
[ 2, 4709, 18486, 198, 2, 15069, 357, 34, 8, 4343, 12, 6390, 4709, 18486, 5693, 198, 2, 198, 2, 770, 2393, 318, 636, 286, 4709, 18486, 13, 198, 2, 198, 2, 4709, 18486, 318, 1479, 3788, 26, 345, 460, 17678, 4163, 340, 290, 14, 273,...
3.486239
327
# -*- coding: UTF-8 -*- from twisted.names import dns import pytest from openvpnzone import InMemoryAuthority @pytest.fixture
[ 2, 532, 9, 12, 19617, 25, 41002, 12, 23, 532, 9, 12, 198, 6738, 19074, 13, 14933, 1330, 288, 5907, 198, 11748, 12972, 9288, 198, 198, 6738, 1280, 85, 21999, 11340, 1330, 554, 30871, 13838, 414, 628, 198, 198, 31, 9078, 9288, 13, 6...
2.78
50
# -*- coding: utf-8 -*- """ @time : 2020/05/10 12:25 @author : 姚明伟 """
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 198, 31, 2435, 220, 220, 1058, 12131, 14, 2713, 14, 940, 1105, 25, 1495, 198, 31, 9800, 1058, 10263, 100, 248, 23626, 236, 27670, 253, 198, 37811 ]
1.714286
42
from flask import request import LoadingNetwork #from io import BytesIO import base64 from flask import Flask, send_file import io #@app.route('/') #def abc(): # return "hello" app = Flask(__name__) @app.route('/', methods=['GET'])
[ 6738, 42903, 1330, 2581, 198, 11748, 12320, 26245, 198, 2, 6738, 33245, 1330, 2750, 4879, 9399, 198, 11748, 2779, 2414, 198, 6738, 42903, 1330, 46947, 11, 3758, 62, 7753, 198, 11748, 33245, 198, 198, 2, 31, 1324, 13, 38629, 10786, 14, ...
2.925
80
import grequests TIMEOUT = 5
[ 11748, 308, 8897, 3558, 198, 34694, 12425, 796, 642, 198 ]
2.9
10
"""Generate feature statistics for training set. Example: python global_stats.py --model_type librispeech --dataset_path /home/librispeech """ import json import logging import pathlib from argparse import ArgumentParser, RawTextHelpFormatter import torch import torchaudio from common import ( MODEL_TYPE_LIBRISP...
[ 37811, 8645, 378, 3895, 7869, 329, 3047, 900, 13, 198, 198, 16281, 25, 198, 29412, 3298, 62, 34242, 13, 9078, 1377, 19849, 62, 4906, 9195, 2442, 431, 3055, 1377, 19608, 292, 316, 62, 6978, 1220, 11195, 14, 8019, 2442, 431, 3055, 198, ...
2.846561
189
import requests from urllib3.exceptions import InsecureRequestWarning from pprint import pprint requests.packages.urllib3.disable_warnings(category=InsecureRequestWarning) if __name__ == "__main__": url = "https://netbox.lasthop.io/api/dcim" http_headers = {} http_headers["accept"] = "application/...
[ 11748, 7007, 198, 6738, 2956, 297, 571, 18, 13, 1069, 11755, 1330, 554, 22390, 18453, 20361, 198, 6738, 279, 4798, 1330, 279, 4798, 198, 8897, 3558, 13, 43789, 13, 333, 297, 571, 18, 13, 40223, 62, 40539, 654, 7, 22872, 28, 818, 223...
2.683616
177
# Copyright 2017 By_syk # # 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, softw...
[ 2, 15069, 2177, 2750, 62, 1837, 74, 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, 13, 198, 2, 921, ...
3.595506
178
import json import yaml import sys from .collect import collectjson from .setversion import setversion from .appcache import appcache from .compilers import optimize, scss, mustache from .init import init
[ 11748, 33918, 198, 11748, 331, 43695, 198, 11748, 25064, 198, 198, 6738, 764, 33327, 1330, 2824, 17752, 198, 6738, 764, 2617, 9641, 1330, 900, 9641, 198, 6738, 764, 1324, 23870, 1330, 598, 23870, 198, 6738, 764, 5589, 34393, 1330, 27183, ...
3.980769
52