content
stringlengths
1
1.04M
input_ids
listlengths
1
774k
ratio_char_token
float64
0.38
22.9
token_count
int64
1
774k
''' Created on 2014-03-23 @author: Nich ''' class SystemSet(object): ''' classdocs '''
[ 7061, 6, 198, 41972, 319, 1946, 12, 3070, 12, 1954, 198, 198, 31, 9800, 25, 12760, 198, 7061, 6, 198, 198, 4871, 4482, 7248, 7, 15252, 2599, 198, 220, 220, 220, 705, 7061, 198, 220, 220, 220, 1398, 31628, 198, 220, 220, 220, 705, ...
1.736842
76
import argparse import warnings warnings.filterwarnings("ignore") import numpy as np import tensorflow as tf import os from helper import AttackEvaluate from helper import load_data, retrain ####for solving some specific problems, don't care config = tf.compat.v1.ConfigProto() config.gpu_options.allow_growth = True ...
[ 11748, 1822, 29572, 198, 11748, 14601, 198, 198, 40539, 654, 13, 24455, 40539, 654, 7203, 46430, 4943, 198, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 11192, 273, 11125, 355, 48700, 198, 11748, 28686, 198, 6738, 31904, 1330, 8307, 36...
2.380567
1,235
# Generated by Django 3.0.4 on 2020-06-10 22:56 from django.db import migrations
[ 2, 2980, 515, 416, 37770, 513, 13, 15, 13, 19, 319, 12131, 12, 3312, 12, 940, 2534, 25, 3980, 198, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 628 ]
2.766667
30
import pandas as pd import os path = r'C:\Users\Vangelis\Desktop\Courses & Projects\Data Analysis Projects\NBA Datasets Analysis\Data' os.chdir(path) #seasonList1 = ['1996_1997'] seasonList = ['1996_1997', '1997_1998', '1998_1999', '1999_2000', '2000_...
[ 11748, 19798, 292, 355, 279, 67, 201, 198, 11748, 28686, 201, 198, 201, 198, 6978, 796, 374, 6, 34, 7479, 14490, 59, 53, 8368, 271, 59, 36881, 59, 34, 39975, 1222, 29898, 59, 6601, 14691, 29898, 59, 32470, 16092, 292, 1039, 14691, 5...
1.648921
695
import chess board = chess.Bitboard() board.push_san("e4") board.push_san("e5") board.push_san("Qh5") board.push_san("Nc6") board.push_san("Bc4") board.push_san("Nf6") board.push_san("Qxf7") print "is_checkmate: " +str(board.is_checkmate()) print "is_stalemate: " +str(board.is_stalemate()) print "is_insufficient_materi...
[ 11748, 19780, 198, 3526, 796, 19780, 13, 13128, 3526, 3419, 198, 3526, 13, 14689, 62, 12807, 7203, 68, 19, 4943, 198, 3526, 13, 14689, 62, 12807, 7203, 68, 20, 4943, 198, 3526, 13, 14689, 62, 12807, 7203, 48, 71, 20, 4943, 198, 3526...
2.491124
169
"""Given a string s, find the length of the longest substring without repeating characters. Example 1: Input: s = "abcabcbb" Output: 3 Explanation: The answer is "abc", with the length of 3. Example 2: Input: s = "bbbbb" Output: 1 Explanation: The answer is "b", with the length of 1. Example 3: Input: s = "pwwkew" O...
[ 37811, 15056, 257, 4731, 264, 11, 1064, 262, 4129, 286, 262, 14069, 3293, 1806, 1231, 20394, 3435, 13, 198, 198, 16281, 352, 25, 198, 20560, 25, 264, 796, 366, 39305, 39305, 11848, 1, 198, 26410, 25, 513, 198, 3109, 11578, 341, 25, ...
3.009756
205
# define string # - method 1 first_name = 'kaveh' # - method 2 last_name = "mehrbanian" # - method 3(multi-line) bio = '''this is about me ''' # - method 4(multi-line) description = """some description about kaveh mehrbanian """ # access characters in string first_name[1] # 'a' first_name[3] # 'e' bio[-2] ...
[ 2, 8160, 4731, 198, 2, 532, 2446, 352, 198, 11085, 62, 3672, 796, 705, 74, 1015, 71, 6, 198, 198, 2, 532, 2446, 362, 198, 12957, 62, 3672, 796, 366, 1326, 11840, 3820, 666, 1, 198, 198, 2, 532, 2446, 513, 7, 41684, 12, 1370, 8...
1.976323
1,436
# Code generated by `typeddictgen`. DO NOT EDIT. """V1NodeSystemInfoDict generated type.""" from typing import TypedDict V1NodeSystemInfoDict = TypedDict( "V1NodeSystemInfoDict", { "architecture": str, "bootID": str, "containerRuntimeVersion": str, "kernelVersion": str, ...
[ 2, 6127, 7560, 416, 4600, 28004, 6048, 713, 5235, 44646, 8410, 5626, 48483, 13, 198, 37811, 53, 16, 19667, 11964, 12360, 35, 713, 7560, 2099, 526, 15931, 198, 6738, 19720, 1330, 17134, 276, 35, 713, 198, 198, 53, 16, 19667, 11964, 123...
2.202586
232
from django.test import TestCase from openhub_django.models import ( InfographicDetail, Organization)
[ 6738, 42625, 14208, 13, 9288, 1330, 6208, 20448, 198, 198, 6738, 1280, 40140, 62, 28241, 14208, 13, 27530, 1330, 357, 198, 220, 220, 220, 4806, 6826, 11242, 603, 11, 198, 220, 220, 220, 12275, 8, 628 ]
3.111111
36
import firebase_admin as fb from firebase_admin import db from json import load from requests import get from fb_folder import fb_exception import logging class Firebase(db.Reference): """Firebase object""" def __init__(self, key_path, options=None): """a main contructor of firebase objects""" ...
[ 11748, 2046, 8692, 62, 28482, 355, 277, 65, 198, 6738, 2046, 8692, 62, 28482, 1330, 20613, 198, 6738, 33918, 1330, 3440, 198, 6738, 7007, 1330, 651, 198, 6738, 277, 65, 62, 43551, 1330, 277, 65, 62, 1069, 4516, 198, 11748, 18931, 628,...
1.995465
3,749
from .base import Env from .env_spec import EnvSpec try: from .servoing_env import ServoingEnv from .panda3d_env import Panda3dEnv from .car_panda3d_env import CarPanda3dEnv, StraightCarPanda3dEnv, SimpleGeometricCarPanda3dEnv, GeometricCarPanda3dEnv from .quad_panda3d_env import SimpleQuadPanda3dEnv, P...
[ 6738, 764, 8692, 1330, 2039, 85, 198, 6738, 764, 24330, 62, 16684, 1330, 2039, 85, 22882, 198, 28311, 25, 198, 220, 220, 220, 422, 764, 3168, 40519, 62, 24330, 1330, 3116, 40519, 4834, 85, 198, 220, 220, 220, 422, 764, 79, 5282, 18,...
2.490347
259
from app import launch_server if __name__ == '__main__': launch_server()
[ 6738, 598, 1330, 4219, 62, 15388, 198, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 198, 220, 220, 220, 4219, 62, 15388, 3419, 198 ]
2.888889
27
from collections import Counter from libraries import Digits from math import factorial
[ 6738, 17268, 1330, 15034, 198, 6738, 12782, 1330, 7367, 896, 198, 6738, 10688, 1330, 1109, 5132, 628, 220, 220, 220, 220 ]
4.428571
21
import sys from ..common import chdir, run from ..common.run_status import RunStatus from ..specs.spec_repos import get_spec_download_url, format_supported_course_list from ..toolkit import global_vars
[ 11748, 25064, 198, 198, 6738, 11485, 11321, 1330, 442, 15908, 11, 1057, 198, 6738, 11485, 11321, 13, 5143, 62, 13376, 1330, 5660, 19580, 198, 6738, 11485, 4125, 6359, 13, 16684, 62, 260, 1930, 1330, 651, 62, 16684, 62, 15002, 62, 6371, ...
3.360656
61
import pandas as pd import datetime import sys import os sys.path.append(os.path.dirname(os.path.abspath(os.path.dirname(__file__)))) sys.path.append(os.path.dirname(os.path.abspath(os.path.dirname(os.path.abspath(os.path.dirname(__file__)))))) from ..model.connect import Query as sc
[ 11748, 19798, 292, 355, 279, 67, 198, 11748, 4818, 8079, 198, 11748, 25064, 198, 11748, 28686, 198, 17597, 13, 6978, 13, 33295, 7, 418, 13, 6978, 13, 15908, 3672, 7, 418, 13, 6978, 13, 397, 2777, 776, 7, 418, 13, 6978, 13, 15908, ...
2.614679
109
from __future__ import absolute_import, print_function from .snake_env import SnakeEnv
[ 6738, 11593, 37443, 834, 1330, 4112, 62, 11748, 11, 3601, 62, 8818, 198, 198, 6738, 764, 16184, 539, 62, 24330, 1330, 16705, 4834, 85, 198 ]
3.52
25
""" Contains all the logic for decoding inform text strings. http://inform-fiction.org/zmachine/standards/z1point0/sect03.html describes the text encoding scheme. This package does not handle custom dictionaries, abbrevations, and v1 files as I have not been able to find any while testing. """ """ The base (a1 and a...
[ 37811, 198, 4264, 1299, 477, 262, 9156, 329, 39938, 4175, 2420, 13042, 13, 198, 198, 4023, 1378, 259, 687, 12, 24046, 13, 2398, 14, 89, 30243, 14, 1481, 1371, 14, 89, 16, 4122, 15, 14, 8831, 3070, 13, 6494, 8477, 262, 2420, 198, 1...
2.196532
1,730
""" Examples from Paul Harrenstein, Marie-Louise Lackner, and Martin Lackner. *A Mathematical Analysis of an Election System Proposed by Gottlob Frege*. To appear in Erkenntnis. 2020. Preprint: https://arxiv.org/abs/1907.03643 """ from __future__ import print_function from frege import frege, modfrege import apportion...
[ 37811, 21066, 422, 198, 12041, 2113, 918, 5714, 11, 20492, 12, 24016, 786, 38289, 1008, 11, 290, 5780, 38289, 1008, 13, 198, 9, 32, 30535, 605, 14691, 286, 281, 14219, 4482, 8772, 1335, 416, 198, 38, 1252, 75, 672, 4848, 469, 24620, ...
2.885694
1,426
from django.apps import AppConfig
[ 6738, 42625, 14208, 13, 18211, 1330, 2034, 16934, 628 ]
3.888889
9
from django.db.models import Q, CharField, TextField from django.apps import apps from anaf.core.models import Object params = [] for model in apps.get_models(): if issubclass(model, Object) and getattr(model, 'searcheable', True): for field in model._meta.fields: if isinstance(field, (CharFi...
[ 6738, 42625, 14208, 13, 9945, 13, 27530, 1330, 1195, 11, 3178, 15878, 11, 8255, 15878, 198, 6738, 42625, 14208, 13, 18211, 1330, 6725, 198, 198, 6738, 281, 1878, 13, 7295, 13, 27530, 1330, 9515, 198, 198, 37266, 796, 17635, 198, 198, ...
2.305376
465
import os from typing import Generator import pytest from neo4j import Driver, GraphDatabase from graphdatascience.graph_data_science import GraphDataScience from graphdatascience.query_runner.neo4j_query_runner import Neo4jQueryRunner URI = os.environ.get("NEO4J_URI", "bolt://localhost:7687") AUTH = None if os.env...
[ 11748, 28686, 198, 6738, 19720, 1330, 35986, 198, 198, 11748, 12972, 9288, 198, 6738, 19102, 19, 73, 1330, 12434, 11, 29681, 38105, 198, 198, 6738, 4823, 19608, 292, 4234, 13, 34960, 62, 7890, 62, 16801, 1330, 29681, 6601, 26959, 198, 6...
2.586364
220
from api.manager import ( deploy_manager_contract, get_proposals, accept_proposal, ) from api.contributor import ( propose_iteration, ) from api.common import ( check_share_value, check_balance, check_total_supply, check_total_value, redeem_shares, )
[ 6738, 40391, 13, 37153, 1330, 357, 198, 220, 220, 220, 6061, 62, 37153, 62, 28484, 11, 198, 220, 220, 220, 651, 62, 1676, 1930, 874, 11, 198, 220, 220, 220, 2453, 62, 1676, 40007, 11, 198, 8, 198, 198, 6738, 40391, 13, 3642, 2455,...
2.478632
117
import pytest from uteis.permutacoes import ( numero_de_permutacoes_caoticas, numero_de_permutacoes_caoticas_com_elementos_fixos, ) @pytest.mark.parametrize('inteiro, perms_esperadas', [(6, 265), (8, 14833), (15, 481066515734)]) @p...
[ 11748, 12972, 9288, 198, 6738, 220, 1133, 271, 13, 16321, 315, 330, 3028, 1330, 357, 198, 220, 220, 220, 997, 3529, 62, 2934, 62, 16321, 315, 330, 3028, 62, 6888, 6210, 292, 11, 198, 220, 220, 220, 997, 3529, 62, 2934, 62, 16321, ...
1.655914
279
# Copyright 2020 the v8App authors. All right reserved. # Use of this source code is governed by the MIT license # that can be found in the LICENSE file.
[ 2, 15069, 12131, 262, 410, 23, 4677, 7035, 13, 1439, 826, 10395, 13, 198, 2, 5765, 286, 428, 2723, 2438, 318, 21825, 416, 262, 17168, 5964, 198, 2, 326, 460, 307, 1043, 287, 262, 38559, 24290, 2393, 13, 198 ]
3.948718
39
# -*- coding: utf-8 -*- from setuptools import setup setup( name='sceptre-resolver-aws-secrets-manager', version="1.0.0", py_modules=['aws_secrets_manager'], entry_points={ 'sceptre.resolvers': [ 'aws_secrets_manager = aws_secrets_manager:AwsSecretsManager', ], } )
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 6738, 900, 37623, 10141, 1330, 9058, 198, 198, 40406, 7, 198, 220, 220, 220, 1438, 11639, 82, 984, 260, 12, 411, 14375, 12, 8356, 12, 2363, 8004, 12, 37153, 3256, 198,...
2.1
150
from typing import List, Tuple from .texture import StudioTexture from ....source_shared.base import Base from ....utilities.byte_io_mdl import ByteIO
[ 6738, 19720, 1330, 7343, 11, 309, 29291, 198, 198, 6738, 764, 41293, 1330, 11733, 32742, 198, 6738, 19424, 10459, 62, 28710, 13, 8692, 1330, 7308, 198, 6738, 19424, 315, 2410, 13, 26327, 62, 952, 62, 9132, 75, 1330, 30589, 9399, 628, ...
3.666667
42
import json import html import string import random import requests from utils import * from create_invoicePDF import create_invoice from flask import * from sqlalchemy.sql.elements import * from database import Database from datetime import date from dateutil.relativedelta import relativedelta dashbo...
[ 11748, 33918, 201, 198, 11748, 27711, 201, 198, 11748, 4731, 201, 198, 11748, 4738, 201, 198, 11748, 7007, 201, 198, 201, 198, 201, 198, 6738, 3384, 4487, 1330, 1635, 201, 198, 6738, 2251, 62, 16340, 2942, 20456, 1330, 2251, 62, 16340, ...
2.501916
522
# Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file # for details. All rights reserved. Use of this source code is governed by a # BSD-style license that can be found in the LICENSE file. # This file contains a set of utilities functions used by other Python-based # scripts. import commands i...
[ 2, 15069, 357, 66, 8, 2321, 11, 262, 29032, 1628, 7035, 13, 220, 4222, 766, 262, 37195, 20673, 2393, 198, 2, 329, 3307, 13, 1439, 2489, 10395, 13, 5765, 286, 428, 2723, 2438, 318, 21825, 416, 257, 198, 2, 347, 10305, 12, 7635, 596...
2.873563
1,044
# -*- coding: utf-8 -*- """ Created on Mon Nov 8 14:48:20 2021 @author: utilisateur """ import numpy as np import heapq import matplotlib.pyplot as plt from PIL import Image # Trouver la zone inexplorée la plus proche du robot M = np.array([[0,0,1,1], [0,1,0.5,1], [0,0,1,1], [1,...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 198, 41972, 319, 2892, 5267, 220, 807, 1478, 25, 2780, 25, 1238, 33448, 198, 198, 31, 9800, 25, 7736, 271, 15093, 198, 37811, 198, 198, 11748, 299, 32152, 355, ...
2.049618
262
#!/usr/bin/python import time import datetime from Libs.Clock import Clock from Libs.PiTFT import Display from Libs.Weather import Weather from Libs.Input import Button from Libs.GStreamer import Speaker from config import configuration # The weather station station_name = configuration.get('weather_stati...
[ 2, 48443, 14629, 14, 8800, 14, 29412, 201, 198, 201, 198, 11748, 640, 201, 198, 11748, 4818, 8079, 201, 198, 6738, 7980, 82, 13, 44758, 1330, 21328, 201, 198, 6738, 7980, 82, 13, 38729, 51, 9792, 1330, 16531, 201, 198, 6738, 7980, 8...
3.150171
293
import unittest from programy.clients.events.console.config import ConsoleConfiguration from programy.config.brain.dynamic import BrainDynamicsConfiguration from programy.config.file.yaml_file import YamlConfigurationFile from programy.dynamic.dynamics import DynamicsCollection from programy.dynamic.sets.numeric impor...
[ 11748, 555, 715, 395, 198, 198, 6738, 1430, 88, 13, 565, 2334, 13, 31534, 13, 41947, 13, 11250, 1330, 24371, 38149, 198, 6738, 1430, 88, 13, 11250, 13, 27825, 13, 67, 28995, 1330, 14842, 35, 4989, 873, 38149, 198, 6738, 1430, 88, 13...
3.668605
172
#!/usr/bin/python3 #.py for test load data.. import sys sys.path.append("../") import insummer from insummer.read_conf import config import pickle duc_conf = config('../../conf/question.conf') if __name__ == "__main__": test_question(duc_conf['duc_question'])
[ 2, 48443, 14629, 14, 8800, 14, 29412, 18, 198, 198, 2, 13, 9078, 329, 1332, 3440, 1366, 492, 198, 198, 11748, 25064, 198, 17597, 13, 6978, 13, 33295, 7203, 40720, 4943, 198, 11748, 1035, 31647, 198, 6738, 1035, 31647, 13, 961, 62, 1...
2.802083
96
from json import load from InquirerPy.utils import color_print from InquirerPy import inquirer from .loadouts_manager import Loadouts_Manager from ..loadout_grid import Loadout_Grid
[ 6738, 33918, 1330, 3440, 198, 6738, 17193, 557, 81, 20519, 13, 26791, 1330, 3124, 62, 4798, 198, 6738, 17193, 557, 81, 20519, 1330, 38212, 81, 220, 198, 198, 6738, 764, 2220, 5269, 62, 37153, 1330, 8778, 5269, 62, 13511, 198, 6738, 11...
3.538462
52
# Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/bigtable/v1/bigtable_service.proto from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symb...
[ 2, 2980, 515, 416, 262, 8435, 11876, 17050, 13, 220, 8410, 5626, 48483, 0, 198, 2, 2723, 25, 23645, 14, 14261, 11487, 14, 85, 16, 14, 14261, 11487, 62, 15271, 13, 1676, 1462, 198, 198, 6738, 23645, 13, 11235, 672, 3046, 1330, 43087,...
2.58804
1,806
# coding=utf-8 # Copyright Huawei Noah's Ark Lab. """ Generates model predictions. """ from __future__ import absolute_import from __future__ import division from __future__ import print_function import os import time import sys import tensorflow as tf from noahnmt.utils import data_utils from noahnmt.utils import...
[ 2, 19617, 28, 40477, 12, 23, 198, 2, 15069, 43208, 18394, 338, 9128, 3498, 13, 198, 198, 37811, 2980, 689, 2746, 16277, 13, 198, 37811, 198, 198, 6738, 11593, 37443, 834, 1330, 4112, 62, 11748, 198, 6738, 11593, 37443, 834, 1330, 7297...
2.99848
658
from __future__ import absolute_import import scipy.stats import autograd.numpy as np from autograd.numpy.numpy_vjps import unbroadcast_f from autograd.extend import primitive, defvjp pdf = primitive(scipy.stats.multivariate_normal.pdf) logpdf = primitive(scipy.stats.multivariate_normal.logpdf) entropy = primit...
[ 6738, 11593, 37443, 834, 1330, 4112, 62, 11748, 198, 11748, 629, 541, 88, 13, 34242, 198, 198, 11748, 1960, 519, 6335, 13, 77, 32152, 355, 45941, 198, 6738, 1960, 519, 6335, 13, 77, 32152, 13, 77, 32152, 62, 85, 73, 862, 1330, 22619...
2.420348
747
""" ============================ Author:柠檬班-木森 Time:2021/5/13 20:52 E-mail:3247119728@qq.com Company:湖南零檬信息技术有限公司 ======= """
[ 37811, 198, 4770, 25609, 198, 13838, 25, 162, 253, 254, 162, 103, 105, 163, 237, 255, 12, 17312, 101, 162, 96, 106, 198, 7575, 25, 1238, 2481, 14, 20, 14, 1485, 1160, 25, 4309, 198, 36, 12, 4529, 25, 33916, 4869, 24991, 2078, 31, ...
1.506024
83
#Ask the user for a number and determine whether the number is prime or not. # (For those who have forgotten, a prime number is a number that has no divisors.). # You can (and should!) use your answer to Exercise 4 to help you. Take this # opportunity to practice using functions, described below. userNumber = int(i...
[ 2, 25214, 262, 2836, 329, 257, 1271, 290, 5004, 1771, 262, 1271, 318, 6994, 393, 407, 13, 220, 198, 2, 357, 1890, 883, 508, 423, 11564, 11, 257, 6994, 1271, 318, 257, 1271, 326, 468, 645, 2659, 271, 669, 15729, 220, 198, 2, 921, ...
3.429577
142
# -*- coding: utf-8 -*- from django import forms from django.test import TestCase from django.utils.encoding import force_text from sortedm2m.forms import SortedMultipleChoiceField from .models import Book, MessyStore, Shelf # regression test
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 6738, 42625, 14208, 1330, 5107, 198, 6738, 42625, 14208, 13, 9288, 1330, 6208, 20448, 198, 6738, 42625, 14208, 13, 26791, 13, 12685, 7656, 1330, 2700, 62, 5239, 198, 6738,...
3.189873
79
import fire from __PACKAGE_NAME__ import ioc from appdirs import user_config_dir from pathlib import Path if __name__ == "__main__": test()
[ 11748, 2046, 198, 6738, 11593, 47, 8120, 11879, 62, 20608, 834, 1330, 1312, 420, 198, 6738, 598, 15908, 82, 1330, 2836, 62, 11250, 62, 15908, 198, 6738, 3108, 8019, 1330, 10644, 628, 628, 198, 361, 11593, 3672, 834, 6624, 366, 834, 12...
2.901961
51
#!/usr/bin/env python3 from aoc_utils import get_input_path, print_elapsed_time from math import ceil, floor import re from timeit import default_timer as timer from typing import List RE_LAST_NUMBER = re.compile(r"(\d+)(?!.*\d)") RE_NUMBER = re.compile(r"\d+") RE_PAIR = re.compile(r"\[\d+,\d+\]") RE_NUMBER_GT_10 = r...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 198, 6738, 257, 420, 62, 26791, 1330, 651, 62, 15414, 62, 6978, 11, 3601, 62, 417, 28361, 62, 2435, 198, 6738, 10688, 1330, 2906, 346, 11, 4314, 198, 11748, 302, 198, 6738, 640, ...
2.441469
1,606
#!/usr/bin/env python # coding: utf-8 # In[1]: get_ipython().system('pip install ibm_watson') # In[2]: from ibm_watson import TextToSpeechV1 from ibm_cloud_sdk_core.authenticators import IAMAuthenticator # In[3]: apikey = '4R5OHrdqVaLXzVXrIVJkYOkUHOzIQb4-GhREAzsm8S5D' url = 'https://api.au-syd.text-to-speech...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 19617, 25, 3384, 69, 12, 23, 198, 198, 2, 554, 58, 16, 5974, 628, 198, 1136, 62, 541, 7535, 22446, 10057, 10786, 79, 541, 2721, 24283, 76, 62, 86, 13506, 11537, 628, 198, 2, 5...
2.288824
689
from pyzil.zilliqa import chain from flask import Flask, jsonify import json app = Flask(__name__) app.config.from_object(__name__) @app.route('/addressState/<address>, 'methods=['GET']) if __name__ == '__main__': # address = "fe001824823b12b58708bf24edd94d8b5e1cfcf7" app.run()
[ 6738, 12972, 89, 346, 13, 89, 50173, 20402, 1330, 6333, 198, 6738, 42903, 1330, 46947, 11, 33918, 1958, 198, 11748, 33918, 198, 198, 1324, 796, 46947, 7, 834, 3672, 834, 8, 198, 1324, 13, 11250, 13, 6738, 62, 15252, 7, 834, 3672, 83...
2.461538
117
# voor nu: qt of wx toolkit = 'qt'
[ 2, 410, 2675, 14364, 25, 10662, 83, 286, 266, 87, 198, 25981, 15813, 796, 705, 39568, 6, 198 ]
1.944444
18
# Generated by Django 3.1.13 on 2021-08-22 17:49 from django.db import migrations, models
[ 2, 2980, 515, 416, 37770, 513, 13, 16, 13, 1485, 319, 33448, 12, 2919, 12, 1828, 1596, 25, 2920, 198, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 11, 4981, 628 ]
2.875
32
""" Solution to Numbers in Words Based off this Algorithm: https://stackoverflow.com/a/3299672/7396801 """ import math zero_to_nineteen_map = [ 'zero', 'one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight', 'nine', 'ten', 'eleven', 'twelve', 'thirteen', 'fourteen', 'fifteen', 's...
[ 37811, 201, 198, 220, 220, 220, 28186, 284, 27797, 287, 23087, 201, 198, 220, 220, 220, 13403, 572, 428, 978, 42289, 25, 3740, 1378, 25558, 2502, 11125, 13, 785, 14, 64, 14, 18, 22579, 43864, 14, 22, 2670, 3104, 486, 201, 198, 37811...
2.194296
561
""" Copyright 2020 Expedia, 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 https://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software...
[ 37811, 198, 15269, 12131, 5518, 5507, 11, 3457, 13, 198, 198, 26656, 15385, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 5832, 743, 407, 779, 428, 2393, 2845, 287, 11846, 351, 262, 13789, 13, 198,...
2.652244
624
""" Simple example set LCD (c) 2016 EKM Metering. """ from ekmmeters import * #set up port my_port_name = "/dev/ttyO4" my_meter_address = "000300001463" # log to console ekm_set_log(ekm_print_log) # init port and create meter port = SerialPort(my_port_name) if (port.initPort() == True): my_meter = V4Meter(my_mete...
[ 37811, 17427, 1672, 900, 23598, 198, 7, 66, 8, 1584, 412, 42, 44, 3395, 1586, 13, 198, 37811, 198, 6738, 304, 74, 3020, 7307, 1330, 1635, 198, 198, 2, 2617, 510, 2493, 198, 1820, 62, 634, 62, 3672, 796, 12813, 7959, 14, 42852, 46,...
2.553191
329
import numpy as np import tensorflow as tf from source.model import Model from source.model_lidar import ModelLiDAR import utils from utils import get_normal_map
[ 11748, 299, 32152, 355, 45941, 198, 11748, 11192, 273, 11125, 355, 48700, 198, 6738, 2723, 13, 19849, 1330, 9104, 198, 6738, 2723, 13, 19849, 62, 75, 312, 283, 1330, 9104, 32304, 35, 1503, 198, 11748, 3384, 4487, 198, 6738, 3384, 4487, ...
3.375
48
import numpy as np import gzip import cPickle as pickle import matplotlib.pyplot as plt import matplotlib.cm as cm import scipy.ndimage.interpolation as scipint import sys sys.path.insert(0, '../mlp_test') from data_utils import load_mnist data_set = load_mnist()[0] index_1 = 4 rotangle = 30 img_arr_1 = data_set[0...
[ 11748, 299, 32152, 355, 45941, 198, 11748, 308, 13344, 198, 11748, 269, 31686, 293, 355, 2298, 293, 198, 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 198, 11748, 2603, 29487, 8019, 13, 11215, 355, 12067, 198, 11748, 629, 541...
2.234463
354
# Next Token Prediction with Transformers # ======================================= # https://pytorch.org/tutorials/beginner/transformer_tutorial.html # # Purpose: Train the transformer model described in "Attention Is All You Need" # (https://arxiv.org/pdf/1706.03762.pdf) on a language modeling task to predict # the ...
[ 2, 7406, 29130, 46690, 351, 39185, 198, 2, 46111, 50155, 198, 2, 3740, 1378, 9078, 13165, 354, 13, 2398, 14, 83, 44917, 82, 14, 27471, 1008, 14, 7645, 16354, 62, 83, 44917, 13, 6494, 198, 2, 220, 198, 2, 32039, 25, 16835, 262, 473...
2.573551
2,760
# Token from Token import botToken, botUsername # Public libraries from aiogram import Bot, Dispatcher, executor, types from aiogram.types.message import ContentType from aiogram.types.inline_keyboard import InlineKeyboardMarkup, InlineKeyboardButton import numberize from threading import Thread import sys from dateti...
[ 2, 29130, 198, 6738, 29130, 1330, 10214, 30642, 11, 10214, 5842, 13292, 198, 198, 2, 5094, 12782, 198, 6738, 257, 72, 21857, 1330, 18579, 11, 3167, 8071, 2044, 11, 3121, 273, 11, 3858, 198, 6738, 257, 72, 21857, 13, 19199, 13, 20500, ...
2.59059
1,424
# -*- 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
# Definition for a binary tree node. # class TreeNode(object): # def __init__(self, x): # self.val = x # self.left = None # self.right = None
[ 2, 30396, 329, 257, 13934, 5509, 10139, 13, 198, 2, 1398, 12200, 19667, 7, 15252, 2599, 198, 2, 220, 220, 220, 220, 825, 11593, 15003, 834, 7, 944, 11, 2124, 2599, 198, 2, 220, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 2100, ...
2.207792
77
import os import sys import dataclasses import openpyxl from typing import Any, List from PySide2.QtCore import ( Qt, QModelIndex, QAbstractTableModel ) # For Sample from PySide2 import QtWidgets, QtCore, QtGui from PySide2.QtCore import * from PySide2.QtGui import * from PySide2.QtWidgets import * path,...
[ 11748, 28686, 198, 11748, 25064, 198, 11748, 4818, 330, 28958, 198, 11748, 1280, 9078, 87, 75, 198, 198, 6738, 19720, 1330, 4377, 11, 7343, 198, 6738, 9485, 24819, 17, 13, 48, 83, 14055, 1330, 357, 198, 220, 220, 220, 33734, 11, 198, ...
2.479167
240
import os import json main()
[ 11748, 28686, 198, 11748, 33918, 628, 628, 198, 12417, 3419, 198 ]
3
11
# Compute GradCam with predicted captions as input from __future__ import absolute_import from __future__ import division from __future__ import print_function import os import glob import sys import json import os.path as osp import scipy import numpy as np import argparse from im2txt import metrics coco_dir = 'da...
[ 2, 3082, 1133, 17701, 21701, 351, 11001, 3144, 507, 355, 5128, 198, 198, 6738, 11593, 37443, 834, 1330, 4112, 62, 11748, 198, 6738, 11593, 37443, 834, 1330, 7297, 198, 6738, 11593, 37443, 834, 1330, 3601, 62, 8818, 198, 198, 11748, 2868...
3.007663
522
''' Created on Jan 31, 2021 @author: mballance ''' from endpoint_mgr import EndpointMgr
[ 7061, 6, 198, 41972, 319, 2365, 3261, 11, 33448, 198, 198, 31, 9800, 25, 285, 1894, 590, 198, 7061, 6, 198, 6738, 36123, 62, 76, 2164, 1330, 5268, 4122, 44, 2164, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220 ]
2.295455
44
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Copyright (c) 2016 Alexander Maul # # Author(s): # # Alexander Maul <alexander.maul@dwd.de> # # 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 F...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 201, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 201, 198, 2, 201, 198, 2, 15069, 357, 66, 8, 1584, 10009, 40580, 201, 198, 2, 201, 198, 2, 6434, 7, 82, 2599, 201...
2.274532
1,763
from collections import OrderedDict import csv import json import requests import time from collections import defaultdict #print code_to_name if __name__ =="__main__": matrix, reversed_matrix, code_to_name = load_matrices() f = open('code_to_name.json','w') code_to_name["WSAHARA"]="Western Sahara", ...
[ 6738, 17268, 1330, 14230, 1068, 35, 713, 198, 11748, 269, 21370, 198, 11748, 33918, 198, 11748, 7007, 198, 11748, 640, 198, 6738, 17268, 1330, 4277, 11600, 198, 198, 2, 4798, 2438, 62, 1462, 62, 3672, 628, 198, 198, 361, 11593, 3672, ...
2.591623
191
# -*- coding: utf-8 -*- """ reference: https://www.kaggle.com/fizzbuzz/toxic-data-preprocessing/code Created on Fri Jun 1 18:00:22 2018 @author: bwhe """ import pandas as pd import copy import re RE_PATTERNS = {'party':['party']} ####################### train title ########...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 201, 198, 37811, 201, 198, 35790, 25, 201, 198, 220, 220, 220, 3740, 1378, 2503, 13, 74, 9460, 293, 13, 785, 14, 69, 6457, 65, 4715, 14, 83, 18047, 12, 7890, 12, 3866, ...
2.492537
268
""" Different Losses """ import torch.nn as nn import torch import torch.nn.functional as F from typing import Optional, Union, List import numpy as np class LogSoftmaxCELoss(Loss): """ log softmax + cross entropy loss """ def __call__(self, preds: torch.tensor, gts: torch.tensor): """ calculat...
[ 37811, 198, 40341, 22014, 274, 198, 37811, 198, 198, 11748, 28034, 13, 20471, 355, 299, 77, 198, 11748, 28034, 198, 11748, 28034, 13, 20471, 13, 45124, 355, 376, 198, 6738, 19720, 1330, 32233, 11, 4479, 11, 7343, 198, 11748, 299, 32152,...
2.098027
1,571
# encoding: utf-8 ################################################## # This script shows how to visualise distribution from a single variable using matplotlib and seaborn # Multiple tutorials inspired the current design but they mostly came from: # https://seaborn.pydata.org/tutorial/distributions.html # References fo...
[ 2, 21004, 25, 3384, 69, 12, 23, 198, 198, 29113, 14468, 2235, 198, 2, 770, 4226, 2523, 703, 284, 5874, 786, 6082, 422, 257, 2060, 7885, 1262, 2603, 29487, 8019, 290, 384, 397, 1211, 198, 2, 20401, 27992, 7867, 262, 1459, 1486, 475, ...
3.362683
477
# Generated with ThrustCoefficientModel # from enum import Enum from enum import auto class ThrustCoefficientModel(Enum): """""" INTERNAL = auto() FORWARD = auto() SEPARATE = auto()
[ 2, 2980, 515, 351, 49794, 34, 2577, 5632, 17633, 198, 2, 220, 198, 6738, 33829, 1330, 2039, 388, 198, 6738, 33829, 1330, 8295, 198, 198, 4871, 49794, 34, 2577, 5632, 17633, 7, 4834, 388, 2599, 198, 220, 220, 220, 13538, 15931, 15931, ...
2.802817
71
# This function is used to predict the rank using Linear Regression import pandas as pd import numpy as np from sklearn.model_selection import train_test_split from sklearn.linear_model import LinearRegression
[ 2, 770, 2163, 318, 973, 284, 4331, 262, 4279, 1262, 44800, 3310, 2234, 198, 198, 11748, 19798, 292, 355, 279, 67, 198, 11748, 299, 32152, 355, 45941, 198, 6738, 1341, 35720, 13, 19849, 62, 49283, 1330, 4512, 62, 9288, 62, 35312, 198, ...
3.907407
54
# -*- coding: utf-8 -*- # Generated by Django 1.11.12 on 2018-05-10 05:28 from __future__ import unicode_literals import sys from django.db import migrations import debug # pyflakes:ignore
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 2980, 515, 416, 37770, 352, 13, 1157, 13, 1065, 319, 2864, 12, 2713, 12, 940, 8870, 25, 2078, 198, 6738, 11593, 37443, 834, 1330, 28000, 1098, 62, 17201, 874, 198, ...
2.28125
96
#!/usr/bin/env python3 from time import sleep from random import random from retry import retry @retry_when((Exception,)) touch()
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 6738, 640, 1330, 3993, 198, 6738, 4738, 1330, 4738, 198, 6738, 1005, 563, 1330, 1005, 563, 628, 198, 31, 1186, 563, 62, 12518, 19510, 16922, 11, 4008, 198, 198, 29332, 3419, 628 ]
3.190476
42
from email import Email from sms import SMS from fbmsg import FBMsg from phone import Phone from bankwire import BankWire from paypal import Paypal from debitcard import DebitCard from contactlesscard import ContactlessCard from tube import Tube from fbstatus import FBStatus from tweet import Tweet
[ 6738, 3053, 1330, 9570, 198, 6738, 895, 82, 1330, 29287, 198, 6738, 277, 65, 19662, 1330, 13186, 50108, 198, 6738, 3072, 1330, 14484, 198, 6738, 3331, 21809, 1330, 5018, 29451, 198, 6738, 1414, 18596, 1330, 7119, 18596, 198, 6738, 30977, ...
4.109589
73
import networkx as nx from ..config.gameconfig import maps
[ 11748, 3127, 87, 355, 299, 87, 198, 198, 6738, 11485, 11250, 13, 6057, 11250, 1330, 8739, 628 ]
3.588235
17
import unittest import evil_mystery_word test_words = ['i', 'spoke', 'to', 'several', 'people', 'with', 'delayed', 'sleep', 'phase', 'a', 'condition', 'that', 'congressional'] if __name__ == '__main__': unittest.main()
[ 11748, 555, 715, 395, 198, 11748, 6181, 62, 1820, 41991, 62, 4775, 198, 198, 9288, 62, 10879, 796, 37250, 72, 3256, 705, 2777, 2088, 3256, 705, 1462, 3256, 705, 28116, 282, 3256, 705, 15332, 3256, 705, 4480, 3256, 705, 12381, 16548, 3...
2.658824
85
from . import training, processing, models
[ 6738, 764, 1330, 3047, 11, 7587, 11, 4981 ]
5.25
8
from .enums.direction import Direction from .enums.event import Event from . import blocks, computer, monitor from .utils.chilog import chilog
[ 6738, 764, 268, 5700, 13, 37295, 1330, 41837, 198, 6738, 764, 268, 5700, 13, 15596, 1330, 8558, 198, 6738, 764, 1330, 7021, 11, 3644, 11, 5671, 198, 6738, 764, 26791, 13, 354, 346, 519, 1330, 442, 346, 519, 198, 220, 220, 220, 220, ...
2.875
56
# Generated by Django 3.0.8 on 2020-09-22 06:41 import json import uuid from django.db import migrations, models def gen_default_lines(): """gen_default_lines.""" template = { "useCountingLine": True, "countingLines": [ { "id": "$UUID_PLACE_HOLDER", ...
[ 2, 2980, 515, 416, 37770, 513, 13, 15, 13, 23, 319, 12131, 12, 2931, 12, 1828, 9130, 25, 3901, 198, 198, 11748, 33918, 198, 11748, 334, 27112, 198, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 11, 4981, 628, 198, 4299, 2429,...
1.854043
507
from __future__ import absolute_import import math import threading from time import sleep import rospy from geometry_msgs.msg import Twist from nav_msgs.msg import Odometry from tf.transformations import euler_from_quaternion import collisions from .exceptions import MovementObstructed from .odometry import Odometer...
[ 6738, 11593, 37443, 834, 1330, 4112, 62, 11748, 198, 11748, 10688, 198, 11748, 4704, 278, 198, 6738, 640, 1330, 3993, 198, 198, 11748, 686, 2777, 88, 198, 6738, 22939, 62, 907, 14542, 13, 19662, 1330, 44088, 198, 6738, 6812, 62, 907, ...
3.822222
90
# ExampleHub = TechnicHub PrimeHub from pybricks.hubs import ExampleHub from pybricks.tools import wait # Initialize the hub. hub = ExampleHub() while True: # Read the tilt values. pitch, roll = hub.imu.tilt() # Print the result. print(pitch, roll) wait(200)
[ 2, 17934, 16066, 796, 5429, 291, 16066, 5537, 16066, 198, 6738, 12972, 65, 23706, 13, 71, 23161, 1330, 17934, 16066, 198, 6738, 12972, 65, 23706, 13, 31391, 1330, 4043, 198, 198, 2, 20768, 1096, 262, 12575, 13, 198, 40140, 796, 17934, ...
2.737864
103
from celery import shared_task from muonic.lib.app import App from muonic.lib.consumers import BufferedConsumer from muonic_django.consumer import Consumer as DjangoConsumer from muonic.lib.analyzers import * from django.conf import settings @shared_task(bind=True)
[ 6738, 18725, 1924, 1330, 4888, 62, 35943, 198, 6738, 38779, 9229, 13, 8019, 13, 1324, 1330, 2034, 198, 6738, 38779, 9229, 13, 8019, 13, 5936, 31260, 1330, 8792, 1068, 49106, 198, 6738, 38779, 9229, 62, 28241, 14208, 13, 49827, 1330, 181...
3.608108
74
import torch import torch.nn as nn import torch.nn.functional as F import torch.nn.init as init from torch.autograd import Variable from core.config import cfg import nn as mynn import utils.net as net_utils import utils.boxes as box_utils import numpy as np # -------------------------------------------------------...
[ 11748, 28034, 198, 11748, 28034, 13, 20471, 355, 299, 77, 198, 11748, 28034, 13, 20471, 13, 45124, 355, 376, 198, 11748, 28034, 13, 20471, 13, 15003, 355, 2315, 198, 6738, 28034, 13, 2306, 519, 6335, 1330, 35748, 198, 198, 6738, 4755, ...
3.5
206
""" Created by Benjamin Bowes, 4-19-19 This script records depth and flood values at each swmm model time step and plots them. """ from pyswmm import Simulation, Nodes, Links, Subcatchments import matplotlib.pyplot as plt from smart_stormwater_rl.pyswmm_utils import save_out control_time_step = 900 # contro...
[ 37811, 201, 198, 41972, 416, 14533, 9740, 274, 11, 604, 12, 1129, 12, 1129, 201, 198, 1212, 4226, 4406, 6795, 290, 6947, 3815, 379, 1123, 1509, 3020, 2746, 640, 2239, 290, 21528, 606, 13, 201, 198, 37811, 201, 198, 201, 198, 6738, 2...
2.138235
1,020
fn = Solution().shortestCompletingWord print(fn(licensePlate="1s3 PSt", words=["step", "steps", "stripe", "stepple"])) print(fn(licensePlate="1s3 456", words=["looks", "pest", "stew", "show"]))
[ 198, 198, 22184, 796, 28186, 22446, 19509, 395, 5377, 47130, 26449, 198, 198, 4798, 7, 22184, 7, 43085, 3646, 378, 2625, 16, 82, 18, 350, 1273, 1600, 2456, 28, 14692, 9662, 1600, 366, 20214, 1600, 366, 33565, 431, 1600, 366, 4169, 381...
2.493671
79
from rest_framework import serializers from authentication.models import User from social.models import Followers, Request from utils import paginator
[ 6738, 1334, 62, 30604, 1330, 11389, 11341, 198, 6738, 18239, 13, 27530, 1330, 11787, 198, 6738, 1919, 13, 27530, 1330, 7281, 364, 11, 19390, 198, 6738, 3384, 4487, 1330, 42208, 20900, 628 ]
4.75
32
import numpy as np import cv2 import imutils import pytesseract from PIL import Image pytesseract.pytesseract.tesseract_cmd = 'C:\\Program Files\\Tesseract-OCR\\tesseract.exe' # Get text from a cropped image of a license plate # Detect a license plate in a picture
[ 11748, 299, 32152, 355, 45941, 198, 11748, 269, 85, 17, 198, 11748, 545, 26791, 198, 11748, 12972, 83, 408, 263, 529, 198, 6738, 350, 4146, 1330, 7412, 198, 9078, 83, 408, 263, 529, 13, 9078, 83, 408, 263, 529, 13, 83, 408, 263, 5...
2.787879
99
#!/usr/bin/env python """ CMakeModules.py ================== This copies cmake/Modules into the installation directory which is necessary to allow building against the release. Usage Example --------------- Note that the destination directory is deleted and populated on every run :: [blyth@localhost ~]$ C...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 37811, 198, 34, 12050, 5841, 5028, 13, 9078, 198, 4770, 855, 198, 198, 1212, 9088, 12067, 539, 14, 5841, 5028, 656, 262, 9988, 8619, 220, 198, 4758, 318, 3306, 284, 1249, 2615, 1028, ...
2.880562
427
# -*- coding: utf-8 -*- """ Created on Mon Jan 13 00:32:45 2020 @author: mam22 """ from flask import Flask, render_template,request,jsonify,session from get_anime_characters_from_database import get_anime_characters_for_quiz import gc app = Flask(__name__) app.secret_key = b'_5#y2L"F4Q8z\n\xec]/' @app.route('/') @a...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 198, 41972, 319, 2892, 2365, 1511, 3571, 25, 2624, 25, 2231, 12131, 198, 198, 31, 9800, 25, 285, 321, 1828, 198, 37811, 198, 198, 6738, 42903, 1330, 46947, 11, ...
2.352041
196
from create_semi_supervised_train_set import filter_train_set from constants import * if __name__ == "__main__": for i in [10, 100, 500, 1000]: for task in LOCALIZATION_TASKS: print("FILTERING TASK: ", task) filter_train_set(task, i)
[ 6738, 2251, 62, 325, 11632, 62, 16668, 16149, 62, 27432, 62, 2617, 1330, 8106, 62, 27432, 62, 2617, 198, 6738, 38491, 1330, 1635, 198, 198, 361, 11593, 3672, 834, 6624, 366, 834, 12417, 834, 1298, 198, 220, 220, 220, 329, 1312, 287, ...
2.29661
118
import sys import json import time import requests from couchbase.bucket import Bucket from couchbase.n1ql import N1QLQuery, N1QLError from couchbase.exceptions import CouchbaseTransientError, CouchbaseNetworkError from requests.exceptions import RequestException from log.config import set_log_config, logging logger...
[ 11748, 25064, 198, 11748, 33918, 198, 11748, 640, 198, 11748, 7007, 198, 198, 6738, 18507, 8692, 13, 27041, 316, 1330, 48353, 198, 6738, 18507, 8692, 13, 77, 16, 13976, 1330, 399, 16, 9711, 20746, 11, 399, 16, 48, 2538, 81, 1472, 198,...
3.66
100
import pytest from lpipe.exceptions import InvalidTaxonomyURI from lpipe.taxonomy import Brand, Company, Product, TaxonomyURI
[ 11748, 12972, 9288, 198, 198, 6738, 300, 34360, 13, 1069, 11755, 1330, 17665, 27017, 30565, 47269, 198, 6738, 300, 34360, 13, 19290, 30565, 1330, 13512, 11, 5834, 11, 8721, 11, 9241, 30565, 47269, 628, 628, 198 ]
3.638889
36
import numpy as np from score_analysis.measure_clusterer import MeasureClusterer from util.dirs import get_musicdata_scores, get_parts if __name__ == '__main__': for score in get_musicdata_scores(follow_parts=False): print('Clustering {}...'.format(score.name)) dist_matrix_path = score / 'dist_mat...
[ 11748, 299, 32152, 355, 45941, 198, 198, 6738, 4776, 62, 20930, 13, 1326, 5015, 62, 565, 436, 11882, 1330, 24291, 2601, 436, 11882, 198, 6738, 7736, 13, 15908, 82, 1330, 651, 62, 28965, 7890, 62, 1416, 2850, 11, 651, 62, 42632, 198, ...
2.298326
657
# -*- coding: utf-8 -*- from __future__ import unicode_literals from __future__ import absolute_import from django.db import models, migrations import jsonfield.fields
[ 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, 11593, 37443, 834, 1330, 4112, 62, 11748, 198, 6738, 42625, 14208, 13, 9945, 1330, 4981, 11, ...
3.269231
52
# Generated by Django 2.2.5 on 2019-09-29 21:17 from django.db import migrations, models
[ 2, 2980, 515, 416, 37770, 362, 13, 17, 13, 20, 319, 13130, 12, 2931, 12, 1959, 2310, 25, 1558, 198, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 11, 4981, 628 ]
2.84375
32
from rest_framework import viewsets, permissions from .serializers import PokemonSerializer from .models import Pokemon
[ 6738, 1334, 62, 30604, 1330, 5009, 1039, 11, 21627, 198, 198, 6738, 764, 46911, 11341, 1330, 14878, 32634, 7509, 198, 6738, 764, 27530, 1330, 14878, 628 ]
4.692308
26
from typing import Callable import torchvision.transforms as T
[ 6738, 19720, 1330, 4889, 540, 198, 198, 11748, 28034, 10178, 13, 7645, 23914, 355, 309, 628 ]
4.0625
16
""" Cartesian grid for fold interpolator """ import logging import numpy as np logger = logging.getLogger(__name__) class StructuredGrid: """ """ def __init__(self, origin=np.zeros(3), nsteps=np.array([10, 10, 10]), step_vector=np.ones(3), ...
[ 37811, 198, 43476, 35610, 10706, 329, 5591, 39555, 1352, 198, 198, 37811, 198, 11748, 18931, 198, 198, 11748, 299, 32152, 355, 45941, 198, 198, 6404, 1362, 796, 18931, 13, 1136, 11187, 1362, 7, 834, 3672, 834, 8, 628, 198, 4871, 32112, ...
1.869991
6,338
# -*- coding: utf-8 -*- from behave import given, when, then from selenium import webdriver from should_dsl import should @given(u'que o usuário abre o navegador') @when(u'acessa a url "{url}"') @then(u'o sistema exibe a pagina de login')
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 6738, 17438, 1330, 1813, 11, 618, 11, 788, 198, 6738, 384, 11925, 1505, 1330, 3992, 26230, 198, 6738, 815, 62, 67, 6649, 1330, 815, 628, 198, 31, 35569, 7, 84, 6, 41...
2.606383
94
""" 仓库服务的库存监控 """ from alarm.page.ding_talk import DingTalk from crontab.config import prod_filter_warehouse_ids, ROBOT_TOKEN from crontab.model.mysql.order_goods import OrderGoods from crontab.model.mysql.order_info import OrderInfo from crontab.model.mysql.product import Product if __name__ == '__main__': Stoc...
[ 37811, 198, 20015, 241, 41753, 241, 17312, 235, 27950, 94, 21410, 41753, 241, 27764, 246, 33566, 239, 162, 236, 100, 198, 37811, 198, 6738, 10436, 13, 7700, 13, 12083, 62, 16620, 1330, 46980, 25685, 198, 6738, 1067, 756, 397, 13, 11250,...
2.612403
129
import tensorflow as tf __all__ = ["batchify"]
[ 11748, 11192, 273, 11125, 355, 48700, 628, 198, 834, 439, 834, 796, 14631, 43501, 1958, 8973, 628 ]
2.941176
17
# shebang goes here import argparse, shutil parser = argparse.ArgumentParser(description='TODO') parser.add_argument('destination', help='Destination to copy files') parser.add_argument('-f',action='count',help='Force script to copy all files regardless of size') args = parser.parse_args() if __name__ == "__main__":...
[ 2, 673, 36668, 2925, 994, 198, 198, 11748, 1822, 29572, 11, 4423, 346, 198, 198, 48610, 796, 1822, 29572, 13, 28100, 1713, 46677, 7, 11213, 11639, 51, 3727, 46, 11537, 198, 48610, 13, 2860, 62, 49140, 10786, 16520, 1883, 3256, 1037, 1...
3.206897
116
#!/usr/bin/env python from os.path import dirname, join from setuptools import setup, find_packages name = "ktop" brand = "ripxl" full_name = "Dead Pixel Collective" with open(join(dirname(__file__), "src", name, "__init__.py")) as fp: for i, line in enumerate(fp.readlines()): if line.startswith("__versio...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 6738, 28686, 13, 6978, 1330, 26672, 3672, 11, 4654, 198, 6738, 900, 37623, 10141, 1330, 9058, 11, 1064, 62, 43789, 198, 198, 3672, 796, 366, 16201, 1, 198, 17938, 796, 366, 5528, 87, ...
2.340796
402
#!/usr/bin/env python """ A python library for the Udacity Project Advanced Lane Lines This library is designed to abstract away some useful functions, so that using this code for images/video becomes almost like calling an API """ import numpy as np import cv2 import glob import pickle from pprint import pprint # T...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 220, 198, 37811, 198, 32, 21015, 5888, 329, 262, 35774, 4355, 4935, 13435, 15016, 26299, 198, 198, 1212, 5888, 318, 3562, 284, 12531, 1497, 617, 4465, 5499, 11, 523, 326, 1262, 428, 2438, 1...
4
197
#!/usr/bin/env python3 # Natural Language Processing example performing # sentiment analysis and setting a Belleds light to # a color matching sentiment. # # Example usage: # echo "I hate you and I'm having a terrible day" | ./sample-sentiment.py # => user is angry, light turns red # echo "I love chocolate. So awesome...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 198, 2, 12068, 15417, 28403, 1672, 9489, 198, 2, 15598, 3781, 290, 4634, 257, 7459, 5379, 1657, 284, 198, 2, 257, 3124, 12336, 15598, 13, 198, 2, 198, 2, 17934, 8748, 25, 198, ...
2.870056
354
from dplaapi import models
[ 198, 6738, 288, 489, 64, 15042, 1330, 4981, 628, 198 ]
3
10