content
stringlengths
1
1.04M
input_ids
listlengths
1
774k
ratio_char_token
float64
0.38
22.9
token_count
int64
1
774k
import requests from PIL import Image header = {'Authorization': 'Basic cmVwZWF0OnN3aXRjaA==', } response = requests.get('http://www.pythonchallenge.com/pc/ring/yankeedoodle.csv', headers=header) with open('yankeedoodle.csv', 'wb') as f: f.write(response.content) with open('yankeedoodle.csv', 'r') as f: data ...
[ 11748, 7007, 198, 6738, 350, 4146, 1330, 7412, 198, 198, 25677, 796, 1391, 6, 13838, 1634, 10354, 705, 26416, 12067, 53, 86, 57, 48397, 15, 2202, 45, 18, 64, 55, 49, 6592, 32, 855, 3256, 1782, 198, 26209, 796, 7007, 13, 1136, 10786,...
2.431193
436
import sys import json import urllib import logging import requests import argparse from urlparse import urljoin from bs4 import BeautifulSoup # parse arguments parser = argparse.ArgumentParser(prog="npmjs_dependents", description="Parse arguments") parser.add_argument("name", help="Name of the package to query depen...
[ 11748, 25064, 198, 11748, 33918, 198, 11748, 2956, 297, 571, 198, 11748, 18931, 198, 11748, 7007, 198, 11748, 1822, 29572, 198, 6738, 19016, 29572, 1330, 19016, 22179, 198, 6738, 275, 82, 19, 1330, 23762, 50, 10486, 628, 198, 2, 21136, ...
3.063694
314
# v1: Com Radix Sort LSD (A2) (Lado Direito -> Lado Esquerdo) Atua Sobre Digitos e Nao Bits (Para inteiros) | # Ex.: 1999 >>> 1 <- 9 <- 9 <- 9 # *** VERSAO RELATORIO *** | Tabela 2 e 3 # #### BIBLIOTECAS #### import sys import time import msvcrt from io import StringIO # #### CONSTANTES #### CMD_IN_GLOBAL = "PESQ_G...
[ 2, 410, 16, 25, 955, 5325, 844, 33947, 27483, 357, 32, 17, 8, 357, 43, 4533, 34177, 10094, 4613, 406, 4533, 8678, 10819, 4598, 8, 1629, 6413, 36884, 260, 7367, 270, 418, 304, 399, 5488, 44733, 357, 47, 3301, 493, 20295, 4951, 8, 9...
2.138587
368
""" Runtime: 1626 ms, faster than 5.01% of Python3 online submissions for Linked List Cycle II. Memory Usage: 17.3 MB, less than 73.61% of Python3 online submissions for Linked List Cycle II. """ from typing import List from typing import Optional if __name__ == "__main__": main()
[ 37811, 198, 41006, 25, 1467, 2075, 13845, 11, 5443, 621, 642, 13, 486, 4, 286, 11361, 18, 2691, 22129, 329, 7502, 276, 7343, 26993, 2873, 13, 198, 30871, 29566, 25, 1596, 13, 18, 10771, 11, 1342, 621, 8854, 13, 5333, 4, 286, 11361, ...
3.416667
84
# ============================================================================= # periscope-ps (blipp) # # Copyright (c) 2013-2016, Trustees of Indiana University, # All rights reserved. # # This software may be modified and distributed under the terms of the BSD # license. See the COPYING file for details. # # ...
[ 2, 38093, 25609, 198, 2, 220, 583, 2304, 3008, 12, 862, 357, 2436, 3974, 8, 198, 2, 198, 2, 220, 15069, 357, 66, 8, 2211, 12, 5304, 11, 9870, 2841, 286, 10278, 2059, 11, 198, 2, 220, 1439, 2489, 10395, 13, 198, 2, 198, 2, 220,...
4
163
import os import sys sys.path.append(os.getcwd()) import h5py import tests.vis_gui import torch import numpy as np import skimage.transform import matplotlib.colors import matplotlib.pyplot import pyrenderer if __name__ == "__main__": #ui = UIStepsize(os.path.join(os.getcwd(), "..\\..\\results\\stepsize\\skull4...
[ 11748, 28686, 198, 11748, 25064, 198, 198, 17597, 13, 6978, 13, 33295, 7, 418, 13, 1136, 66, 16993, 28955, 198, 198, 11748, 289, 20, 9078, 198, 11748, 5254, 13, 4703, 62, 48317, 198, 11748, 28034, 198, 11748, 299, 32152, 355, 45941, 1...
2.547059
170
"""Django tests to ensure that the app is working correctly are written and run here.""" import tempfile import datetime from django.db.models.fields.files import ImageFieldFile from django.test import TestCase from django.core.exceptions import ValidationError from django.core.files.uploadedfile import SimpleUploaded...
[ 37811, 35, 73, 14208, 5254, 284, 4155, 326, 262, 598, 318, 1762, 9380, 389, 3194, 290, 1057, 994, 526, 15931, 198, 11748, 20218, 7753, 198, 11748, 4818, 8079, 198, 198, 6738, 42625, 14208, 13, 9945, 13, 27530, 13, 25747, 13, 16624, 13...
2.823421
4,321
import sys import importlib from src.models import Apo, Locusdbentity, Referencedbentity, Phenotypeannotation, \ Source, PhenotypeannotationCond, Taxonomy, Chebi, Phenotype, Allele, Reporter, Chebi from scripts.loading.database_session import get_session from scripts.loading.util import get_strain_taxid_mapping __...
[ 11748, 25064, 198, 11748, 1330, 8019, 198, 6738, 12351, 13, 27530, 1330, 5949, 78, 11, 406, 10901, 9945, 26858, 11, 6524, 14226, 771, 65, 26858, 11, 34828, 8690, 1236, 14221, 11, 3467, 198, 220, 220, 220, 8090, 11, 34828, 8690, 1236, ...
2.585366
410
# data dict dict_path = "dataset/dict.txt" # Data shape data_shape = [1, 60, -1] # Minibatch size. batch_size = 128 # Learning rate. lr = 1e-3 # Learning rate decay strategy. 'piecewise_decay' or None is valid. lr_decay_strategy = None # L2 decay rate. l2decay = 4e-4 # Momentum rate. momentum = 0.9 # The threshold of g...
[ 2, 1366, 8633, 198, 11600, 62, 6978, 796, 366, 19608, 292, 316, 14, 11600, 13, 14116, 1, 198, 2, 6060, 5485, 198, 7890, 62, 43358, 796, 685, 16, 11, 3126, 11, 532, 16, 60, 198, 2, 1855, 571, 963, 2546, 13, 198, 43501, 62, 7857, ...
2.949896
479
# This file is executed on every boot (including wake-boot from deepsleep) import uos import gc import network import sys # import webrepl # import esp from wifi import * sys.path.reverse() # uos.dupterm(None, 1) # disable REPL on UART(0) # esp.osdebug(None) # webrepl.start() gc.collect() # Se inicia la conexión Wi...
[ 2, 770, 2393, 318, 10945, 319, 790, 6297, 357, 8201, 7765, 12, 18769, 422, 2769, 42832, 8, 198, 198, 11748, 334, 418, 198, 11748, 308, 66, 198, 11748, 3127, 198, 11748, 25064, 198, 2, 1330, 3992, 35666, 198, 2, 1330, 15024, 198, 673...
2.958333
144
# -*- conding: utf8 -*- """ @author: Muhammed Zeba (parice02) """ import time import sqlite3 from re import compile, I from typing import List, Dict from pathlib import Path import json def regexp(motif: str, item: str) -> bool: """retourne True si le motif regex a été satisfait dans l'item False sinon "...
[ 2, 532, 9, 12, 1779, 278, 25, 3384, 69, 23, 532, 9, 12, 198, 198, 37811, 198, 31, 9800, 25, 8252, 2763, 1150, 1168, 1765, 64, 357, 1845, 501, 2999, 8, 198, 37811, 198, 198, 11748, 640, 198, 11748, 44161, 578, 18, 198, 6738, 302,...
2.135041
859
import discord import emc from emc.async_ import get_data from discord.ext import commands
[ 11748, 36446, 198, 11748, 795, 66, 198, 6738, 795, 66, 13, 292, 13361, 62, 1330, 651, 62, 7890, 198, 6738, 36446, 13, 2302, 1330, 9729, 198 ]
3.5
26
from typing import List import numpy as np from ..base import BaseAudioEncoder from ...helper import batching
[ 628, 198, 6738, 19720, 1330, 7343, 198, 198, 11748, 299, 32152, 355, 45941, 198, 198, 6738, 11485, 8692, 1330, 7308, 21206, 27195, 12342, 198, 6738, 2644, 2978, 525, 1330, 15458, 278, 628 ]
3.625
32
# pylint: disable=too-few-public-methods, W0231, print-statement, useless-object-inheritance # pylint: disable=no-classmethod-decorator """Test external access to protected class members.""" from __future__ import print_function class MyClass(object): """Class with protected members.""" _cls_protected = 5 ...
[ 2, 279, 2645, 600, 25, 15560, 28, 18820, 12, 32146, 12, 11377, 12, 24396, 82, 11, 370, 15, 25667, 11, 3601, 12, 26090, 11, 13894, 12, 15252, 12, 259, 372, 42942, 198, 2, 279, 2645, 600, 25, 15560, 28, 3919, 12, 4871, 24396, 12, ...
2.544939
1,057
from .html_generator import build_html_generator if __name__ == "__main__": image2html()
[ 6738, 764, 6494, 62, 8612, 1352, 1330, 1382, 62, 6494, 62, 8612, 1352, 628, 628, 198, 361, 11593, 3672, 834, 6624, 366, 834, 12417, 834, 1298, 198, 220, 220, 220, 2939, 17, 6494, 3419, 198 ]
2.771429
35
bob = 0 for i in range(len(s)-2): if s[i:i+3] == 'bob': bob += 1 print('Number of times bob occurs is:', bob)
[ 65, 672, 796, 657, 198, 1640, 1312, 287, 2837, 7, 11925, 7, 82, 13219, 17, 2599, 198, 220, 220, 220, 611, 264, 58, 72, 25, 72, 10, 18, 60, 6624, 705, 65, 672, 10354, 198, 220, 220, 220, 220, 220, 220, 220, 29202, 15853, 352, 1...
2.067797
59
from marshmallow import ValidationError from src.app.ma import ma from src.app.db import db from src.app.controllers.cliente import Cliente, ClienteList from src.app.controllers.favoritos import FavoritoList, Favorito from src.app.controllers.usuario import UsuarioAuth, Usuario from src.app.server.instance import ser...
[ 6738, 22397, 42725, 1330, 3254, 24765, 12331, 198, 198, 6738, 12351, 13, 1324, 13, 2611, 1330, 17266, 198, 6738, 12351, 13, 1324, 13, 9945, 1330, 20613, 198, 6738, 12351, 13, 1324, 13, 3642, 36667, 13, 16366, 68, 1330, 20985, 68, 11, ...
2.692308
364
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from . import ...
[ 2, 19617, 28, 40477, 12, 23, 198, 2, 17202, 39410, 25, 428, 2393, 373, 7560, 416, 262, 21624, 12994, 24118, 687, 10290, 357, 27110, 5235, 8, 16984, 13, 17202, 198, 2, 17202, 2141, 407, 4370, 416, 1021, 4556, 345, 821, 1728, 345, 760...
3.382114
123
import logging from .ranker import AbstractAndArticle from .tfidf import TfIdf logging.basicConfig(format='%(asctime)s - %(name)s - %(levelname)s - %(message)s', level=logging.DEBUG) __all__ = ("AbstractAndArticle", "TfIdf")
[ 11748, 18931, 198, 198, 6738, 764, 43027, 263, 1330, 27741, 1870, 14906, 198, 6738, 764, 27110, 312, 69, 1330, 309, 69, 7390, 69, 198, 198, 6404, 2667, 13, 35487, 16934, 7, 18982, 11639, 4, 7, 292, 310, 524, 8, 82, 532, 4064, 7, 3...
2.682353
85
from random import choice banner1=(''' ██ ██████ ████ ██ ██████ ██ ████ ██ ██ ...
[ 6738, 4738, 1330, 3572, 198, 198, 3820, 1008, 16, 16193, 7061, 6, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 22...
1.238682
6,406
# Generated by Django 3.1.2 on 2020-10-20 18:25 from django.db import migrations, models
[ 2, 2980, 515, 416, 37770, 513, 13, 16, 13, 17, 319, 12131, 12, 940, 12, 1238, 1248, 25, 1495, 198, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 11, 4981, 628 ]
2.84375
32
# This should define the abstract regulator import threading from LocalTimer import LocalTimerClass from DummyMeter import Bedna from numpy import array
[ 2, 770, 815, 8160, 262, 12531, 24161, 198, 11748, 4704, 278, 198, 6738, 10714, 48801, 1330, 10714, 48801, 9487, 198, 6738, 360, 13513, 44, 2357, 1330, 15585, 2616, 198, 6738, 299, 32152, 1330, 7177, 198, 220, 220, 220, 220, 628 ]
3.975
40
import json from os import abort from flask import Flask, request from flask_cors import CORS from bson import ObjectId import flask_login from requests import api import permission import requests from Util.db import rule_db, keywords_db, bili_mtr_db, user_db, permission_db, api_db from rule import keywords, update_ke...
[ 11748, 33918, 198, 6738, 28686, 1330, 15614, 198, 6738, 42903, 1330, 46947, 11, 2581, 198, 6738, 42903, 62, 66, 669, 1330, 327, 20673, 198, 6738, 275, 1559, 1330, 9515, 7390, 198, 11748, 42903, 62, 38235, 198, 6738, 7007, 1330, 40391, 1...
2.81014
927
# Autogenerated file. Do not edit. from jacdac.bus import Bus, Client, EventHandlerFn, UnsubscribeFn from .constants import * from typing import Optional class JacscriptManagerClient(Client): """ Allows for deployment and control over Jacscript virtual machine. * * Programs start automatically afte...
[ 2, 5231, 519, 877, 515, 2393, 13, 2141, 407, 4370, 13, 198, 6738, 474, 330, 67, 330, 13, 10885, 1330, 5869, 11, 20985, 11, 8558, 25060, 37, 77, 11, 791, 7266, 12522, 37, 77, 198, 6738, 764, 9979, 1187, 1330, 1635, 198, 6738, 19720...
2.616679
1,367
#example: a = range(1,25) print(binarySearch(a,1,debug=True))
[ 2, 20688, 25, 198, 64, 796, 2837, 7, 16, 11, 1495, 8, 198, 4798, 7, 39491, 18243, 7, 64, 11, 16, 11, 24442, 28, 17821, 4008 ]
2.346154
26
# Copyright (c) 2021 Food-X Technologies # # This file is part of foodx_devops_tools. # # You should have received a copy of the MIT License along with # foodx_devops_tools. If not, see <https://opensource.org/licenses/MIT>. """Subscriptions deployment configuration I/O.""" import pathlib import typing import py...
[ 2, 220, 15069, 357, 66, 8, 33448, 7318, 12, 55, 21852, 198, 2, 198, 2, 220, 770, 2393, 318, 636, 286, 2057, 87, 62, 7959, 2840, 62, 31391, 13, 198, 2, 198, 2, 220, 921, 815, 423, 2722, 257, 4866, 286, 262, 17168, 13789, 1863, ...
3.032379
803
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Mon Jun 28 15:39:49 2021 Copyright 2021 by Hadrien Montanelli. """ import numpy as np from numpy.linalg import norm from scipy.optimize import minimize def singint(A, x0, n, p, trans=[True, True, True], optim='BFGS', quad='numerical'): """ Compute ...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 198, 41972, 319, 2892, 7653, 2579, 1315, 25, 2670, 25, 2920, 33448, 198, 198, 15269, 33448, 416, 11161, 1535...
2.133333
1,215
from Activities.advice_commissions_consulting import Advice_Commission_Consulting from Activities.dir_mgmt import Direction_Management from Activities.internship import Intership from Activities.research import Research from Activities.teaching import Teaching from Activities.technical_scientific import TechnicalScient...
[ 6738, 36270, 13, 324, 28281, 62, 785, 8481, 62, 5936, 586, 278, 1330, 42708, 62, 50246, 62, 9444, 586, 278, 198, 6738, 36270, 13, 15908, 62, 11296, 16762, 1330, 41837, 62, 48032, 198, 6738, 36270, 13, 23124, 6720, 1330, 554, 1010, 105...
4.815789
76
# tools for analysing topologial quantities for various systems import numpy as np from scipy.integrate import quad, dblquad from scipy import pi, log, imag from quantum_util.operators import ParameterizedWavefunction # 1D topology class TorusState2D(object): """Docstring for TorusState2D. Todo: Add some...
[ 2, 4899, 329, 11090, 278, 1353, 928, 498, 17794, 329, 2972, 3341, 198, 11748, 299, 32152, 355, 45941, 198, 6738, 629, 541, 88, 13, 18908, 4873, 1330, 15094, 11, 288, 2436, 47003, 198, 6738, 629, 541, 88, 1330, 31028, 11, 2604, 11, 3...
2.483146
445
import csv from django.contrib import messages from django.contrib.auth.decorators import login_required from django.shortcuts import redirect, render from django.urls import reverse from django.utils import timezone from dfirtrack_config.models import SystemImporterFileCsvFormbasedConfigModel from dfirtrack_main.impor...
[ 11748, 269, 21370, 198, 6738, 42625, 14208, 13, 3642, 822, 1330, 6218, 198, 6738, 42625, 14208, 13, 3642, 822, 13, 18439, 13, 12501, 273, 2024, 1330, 17594, 62, 35827, 198, 6738, 42625, 14208, 13, 19509, 23779, 1330, 18941, 11, 8543, 19...
2.214895
2,578
import os basedir = os.path.abspath(os.path.dirname(__file__))
[ 11748, 28686, 198, 3106, 343, 796, 28686, 13, 6978, 13, 397, 2777, 776, 7, 418, 13, 6978, 13, 15908, 3672, 7, 834, 7753, 834, 4008, 198 ]
2.423077
26
import os from pathlib import Path import warnings import pygeos as pg import geopandas as gp from pyogrio import read_dataframe, write_dataframe from analysis.constants import CRS, STATES PREVIOUS_STATES = { "AL", "AR", "AZ", "CO", "FL", "GA", "IA", "KS", "KY", "LA", "MO"...
[ 11748, 28686, 198, 6738, 3108, 8019, 1330, 10644, 198, 11748, 14601, 198, 198, 11748, 12972, 469, 418, 355, 23241, 198, 11748, 30324, 392, 292, 355, 27809, 198, 6738, 12972, 519, 27250, 1330, 1100, 62, 7890, 14535, 11, 3551, 62, 7890, 1...
2.369912
1,130
from pathlib import Path from deliverable_model.serving.remote_model.model_endpoint_base import ModelEndpointBase _endpoint_type_registry = {}
[ 6738, 3108, 8019, 1330, 10644, 198, 198, 6738, 5203, 540, 62, 19849, 13, 31293, 13, 47960, 62, 19849, 13, 19849, 62, 437, 4122, 62, 8692, 1330, 9104, 12915, 4122, 14881, 198, 198, 62, 437, 4122, 62, 4906, 62, 2301, 4592, 796, 23884, ...
3.363636
44
# -*- coding: utf-8 -*- # Generated by Django 1.10.3 on 2017-08-13 23:50 from __future__ import unicode_literals from django.db import migrations, models
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 2980, 515, 416, 37770, 352, 13, 940, 13, 18, 319, 2177, 12, 2919, 12, 1485, 2242, 25, 1120, 198, 6738, 11593, 37443, 834, 1330, 28000, 1098, 62, 17201, 874, 198, ...
2.736842
57
from ts_app import run_in_cli if __name__ == "__main__": run_in_cli()
[ 6738, 40379, 62, 1324, 1330, 1057, 62, 259, 62, 44506, 198, 198, 361, 11593, 3672, 834, 6624, 366, 834, 12417, 834, 1298, 198, 220, 220, 220, 1057, 62, 259, 62, 44506, 3419, 198 ]
2.272727
33
import subprocess monitor_deamons()
[ 11748, 850, 14681, 198, 198, 41143, 62, 2934, 321, 684, 3419 ]
3.272727
11
em_default_config = { # GENERAL "seed": None, "verbose": True, "show_plots": True, # Network # The first value is the output dim of the input module (or the sum of # the output dims of all the input modules if multitask=True and # multiple input modules are provided). The last value is t...
[ 368, 62, 12286, 62, 11250, 796, 1391, 198, 220, 220, 220, 1303, 41877, 198, 220, 220, 220, 366, 28826, 1298, 6045, 11, 198, 220, 220, 220, 366, 19011, 577, 1298, 6407, 11, 198, 220, 220, 220, 366, 12860, 62, 489, 1747, 1298, 6407, ...
2.271639
2,172
LOG_STDOUT = True AUTHOR_AFFILIATION_SOLRQUERY_URL = "http://api.adsabs.harvard.edu/v1/search/bigquery" AUTHOR_AFFILATION_SERVICE_MAX_RECORDS_SOLR = 1000 # must be here for adsmutils to override it using env vars # but if left empty (resolving to False) it won't be used SERVICE_TOKEN = None
[ 198, 25294, 62, 36886, 796, 6407, 198, 198, 32, 24318, 1581, 62, 32, 5777, 4146, 40, 6234, 62, 50, 3535, 49, 10917, 19664, 62, 21886, 796, 366, 4023, 1378, 15042, 13, 5643, 8937, 13, 9869, 10187, 13, 15532, 14, 85, 16, 14, 12947, ...
2.573913
115
# Generated by Django 2.0.3 on 2018-04-22 21:04 from django.db import migrations, models
[ 2, 2980, 515, 416, 37770, 362, 13, 15, 13, 18, 319, 2864, 12, 3023, 12, 1828, 2310, 25, 3023, 198, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 11, 4981, 628 ]
2.84375
32
# ##### BEGIN GPL LICENSE BLOCK ##### # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # as published by the Free Software Foundation; either version 2 # of the License, or (at your option) any later version. # # This program is distrib...
[ 2, 46424, 347, 43312, 38644, 38559, 24290, 9878, 11290, 46424, 198, 2, 198, 2, 220, 770, 1430, 318, 1479, 3788, 26, 345, 460, 17678, 4163, 340, 290, 14, 273, 198, 2, 220, 13096, 340, 739, 262, 2846, 286, 262, 22961, 3611, 5094, 1378...
2.418417
12,141
import copy from functools import reduce from operator import mul from polyaxon.automl.matrix.utils import get_length, sample from polyaxon.automl.search_managers.base import BaseManager from polyaxon.automl.search_managers.spec import SuggestionSpec from polyaxon.automl.search_managers.utils import get_random_genera...
[ 11748, 4866, 198, 198, 6738, 1257, 310, 10141, 1330, 4646, 198, 6738, 10088, 1330, 35971, 198, 198, 6738, 7514, 897, 261, 13, 2306, 296, 75, 13, 6759, 8609, 13, 26791, 1330, 651, 62, 13664, 11, 6291, 198, 6738, 7514, 897, 261, 13, 2...
3.529412
153
# Generated by Django 3.0.7 on 2020-07-18 18:17 from django.db import migrations, models
[ 2, 2980, 515, 416, 37770, 513, 13, 15, 13, 22, 319, 12131, 12, 2998, 12, 1507, 1248, 25, 1558, 198, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 11, 4981, 628 ]
2.84375
32
#! /usr/bin/env python """ Początkowy moduł """ import argparse import numpy from bitmap_mapper.min_max_difference_coordinates_bitmap_mapper import MinMaxDifferenceCoordinatesBitmapMapper from data_parsers.classify_data import ClassifyData from data_parsers.learning_data import LearningData from feature.simple_featu...
[ 2, 0, 1220, 14629, 14, 8800, 14, 24330, 21015, 198, 198, 37811, 198, 47, 420, 89, 128, 227, 30488, 322, 88, 953, 84, 41615, 198, 37811, 198, 11748, 1822, 29572, 198, 198, 11748, 299, 32152, 198, 198, 6738, 1643, 8899, 62, 76, 11463,...
3.239726
2,044
def truncate(number, decimals=0): """ Returns a value truncated to a specific number of decimal places. """ if not isinstance(decimals, int): raise TypeError("decimal places must be an integer.") elif decimals < 0: raise ValueError("decimal places has to be 0 or more.") elif dec...
[ 198, 4299, 40122, 378, 7, 17618, 11, 875, 320, 874, 28, 15, 2599, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 16409, 257, 1988, 40122, 515, 284, 257, 2176, 1271, 286, 32465, 4113, 13, 198, 220, 220, 220, 37227, 198, 220, 220, 2...
2.656805
169
#!/usr/bin/env python3 import sys import os import subprocess import hashlib import typing import dataclasses DOCKERFILE_BASIC = """ FROM archlinux # Update the system RUN pacman --noconfirm -Syu # We will append commands to install packages later. See the function `construct_dockerfile()` """ @dataclasses.datacl...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 198, 11748, 25064, 198, 11748, 28686, 198, 11748, 850, 14681, 198, 11748, 12234, 8019, 198, 11748, 19720, 198, 11748, 4818, 330, 28958, 198, 198, 35, 11290, 1137, 25664, 62, 33, 1921...
2.77377
305
import requests from .models import TestResponse from typing import Union,Dict
[ 11748, 7007, 198, 6738, 764, 27530, 1330, 6208, 31077, 198, 6738, 19720, 1330, 4479, 11, 35, 713, 628, 628, 628, 628, 628, 628 ]
3.913043
23
import os import xarray as xr dir_path = os.path.dirname(os.path.realpath(__file__)) parent_path = os.path.dirname(dir_path) import numpy as np np.random.seed(10) import matplotlib.pyplot as plt from utils import plot_averaged_errors, plot_windowed_errors, plot_contours, plot_bars if __name__ == '__main__': ...
[ 11748, 28686, 198, 11748, 2124, 18747, 355, 2124, 81, 220, 198, 15908, 62, 6978, 796, 28686, 13, 6978, 13, 15908, 3672, 7, 418, 13, 6978, 13, 5305, 6978, 7, 834, 7753, 834, 4008, 198, 8000, 62, 6978, 796, 28686, 13, 6978, 13, 15908,...
2.738095
126
import os import subprocess import torch import torch.nn as nn import torch.nn.functional as F import torch.optim as optim from torch.nn.functional import interpolate from loguru import logger from tqdm import tqdm import numpy as np import wandb from draw_concat import draw_concat from generate_noise import generate...
[ 11748, 28686, 198, 11748, 850, 14681, 198, 198, 11748, 28034, 198, 11748, 28034, 13, 20471, 355, 299, 77, 198, 11748, 28034, 13, 20471, 13, 45124, 355, 376, 198, 11748, 28034, 13, 40085, 355, 6436, 198, 6738, 28034, 13, 20471, 13, 45124...
1.927007
7,124
import shutil import subprocess from pathlib import Path from appimagelint.models import TestResult from ..models import AppImage from . import CheckBase
[ 11748, 4423, 346, 198, 11748, 850, 14681, 198, 6738, 3108, 8019, 1330, 10644, 198, 198, 6738, 598, 48466, 417, 600, 13, 27530, 1330, 6208, 23004, 198, 6738, 11485, 27530, 1330, 2034, 5159, 198, 6738, 764, 1330, 6822, 14881, 628 ]
4
39
#!/usr/bin/env python """Plot all graph metrics as histograms""" import itertools import sys import operator import numpy as np import argparse from general_seq import conv from general_seq import seq_IO from plot import conv as pconv from plot import hist from collections import Counter import matplotlib.pyplot as pl...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 198, 37811, 43328, 477, 4823, 20731, 355, 1554, 26836, 37811, 198, 11748, 340, 861, 10141, 198, 11748, 25064, 198, 11748, 10088, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 1822, 29572...
3.33463
257
# Left side navigator import __global__,os import PyQt5.QtCore as QtCore import PyQt5.QtGui as QtGui import PyQt5.QtWidgets as QtWidgets NAVIGATION_STYLE_SHEET=""" QWidget { color: #1f1f1f; background-color: #1f1f1f; } QPushButton { font-size: 32px; border: none; padding: 0px; font-si...
[ 2, 9578, 1735, 20436, 1352, 220, 198, 11748, 11593, 20541, 834, 11, 418, 198, 198, 11748, 9485, 48, 83, 20, 13, 48, 83, 14055, 220, 220, 220, 355, 33734, 14055, 198, 11748, 9485, 48, 83, 20, 13, 48, 83, 8205, 72, 220, 220, 220, ...
2.099476
573
# -*- coding: utf-8 -*- """ Exceptions that are used by SoCo """ class SoCoException(Exception): """ base exception raised by SoCo, containing the UPnP error code """ class UnknownSoCoException(SoCoException): """ raised if reason of the error can not be extracted The exception object will contain the...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 37811, 1475, 11755, 326, 389, 973, 416, 1406, 7222, 37227, 628, 198, 4871, 1406, 7222, 16922, 7, 16922, 2599, 198, 220, 220, 220, 37227, 2779, 6631, 4376, 416, 1406...
3.58371
221
from chia_rs import Spend, SpendBundleConditions __all__ = ["Spend", "SpendBundleConditions"]
[ 6738, 442, 544, 62, 3808, 1330, 48293, 11, 48293, 33, 31249, 25559, 1756, 198, 198, 834, 439, 834, 796, 14631, 4561, 437, 1600, 366, 4561, 437, 33, 31249, 25559, 1756, 8973, 198 ]
2.96875
32
# Copyright 2002 by Andrew Dalke. All rights reserved. # Revisions 2007-2008 by Peter Cock. # This code is part of the Biopython distribution and governed by its # license. Please see the LICENSE file that should have been included # as part of this package. # # Note that BioSQL (including the database schema and scr...
[ 2, 15069, 6244, 416, 6858, 12348, 365, 13, 220, 1439, 2489, 10395, 13, 198, 2, 5416, 3279, 4343, 12, 11528, 416, 5613, 23769, 13, 198, 2, 770, 2438, 318, 636, 286, 262, 8436, 404, 7535, 6082, 290, 21825, 416, 663, 198, 2, 5964, 13...
2.698953
382
from selenium.webdriver.common.by import By
[ 6738, 384, 11925, 1505, 13, 12384, 26230, 13, 11321, 13, 1525, 1330, 2750, 628 ]
3.214286
14
from .ConfigManager import ConfigManager from .ConfigManagerCorona import ConfigManagerCorona from .JsonFunction import JsonFunction
[ 6738, 764, 16934, 13511, 1330, 17056, 13511, 198, 6738, 764, 16934, 13511, 10606, 4450, 1330, 17056, 13511, 10606, 4450, 198, 6738, 764, 41, 1559, 22203, 1330, 449, 1559, 22203 ]
4.551724
29
"""General helper classes and functions for all products.""" import netCDF4 import cloudnetpy.utils as utils class CategorizeBits: """Class holding information about category and quality bits. Args: categorize_file (str): Categorize file name. Attributes: category_bits (dict): Dictionary...
[ 37811, 12218, 31904, 6097, 290, 5499, 329, 477, 3186, 526, 15931, 198, 11748, 2010, 34, 8068, 19, 198, 11748, 6279, 3262, 9078, 13, 26791, 355, 3384, 4487, 628, 198, 4871, 327, 47467, 1096, 33, 896, 25, 198, 220, 220, 220, 37227, 9487...
2.539367
1,105
from typing import Optional, Dict, List #: The redlock caches INIESTA_CACHES: Dict[str, dict] = { "iniesta1": {"HOST": "localhost", "PORT": 6379, "DATABASE": 1}, "iniesta2": {"HOST": "localhost", "PORT": 6379, "DATABASE": 2}, "iniesta3": {"HOST": "localhost", "PORT": 6379, "DATABASE": 3}, } #: The initial...
[ 6738, 19720, 1330, 32233, 11, 360, 713, 11, 7343, 198, 198, 2, 25, 383, 2266, 5354, 50177, 198, 1268, 11015, 5603, 62, 34, 16219, 1546, 25, 360, 713, 58, 2536, 11, 8633, 60, 796, 1391, 198, 220, 220, 220, 366, 5362, 18059, 16, 129...
2.732491
871
"""The main API module. """ from __future__ import absolute_import, print_function from .compiler import State, SplitState, Match, compile from .tokenizer import to_postfix def match(pattern, s): """Apply a pattern to a string and return the result of the match. :param pattern: A POSIX-like regular express...
[ 37811, 464, 1388, 7824, 8265, 13, 37227, 198, 6738, 11593, 37443, 834, 1330, 4112, 62, 11748, 11, 3601, 62, 8818, 198, 6738, 764, 5589, 5329, 1330, 1812, 11, 27758, 9012, 11, 13225, 11, 17632, 198, 6738, 764, 30001, 7509, 1330, 284, 6...
2.908425
273
from typing import List, Union from ornitho import APIRequester
[ 6738, 19720, 1330, 7343, 11, 4479, 198, 198, 6738, 25322, 342, 78, 1330, 7824, 16844, 7834, 628 ]
3.882353
17
#!/usr/bin/python3 # coding=utf-8 __version__ = "3.0.0-dev"
[ 2, 48443, 14629, 14, 8800, 14, 29412, 18, 198, 2, 19617, 28, 40477, 12, 23, 198, 198, 834, 9641, 834, 796, 366, 18, 13, 15, 13, 15, 12, 7959, 1, 198 ]
1.967742
31
import time from distask import util from distask.tiggers.base import Tigger class IntervalTigger(Tigger): '''每隔相同的时间会触发''' def __getstate__(self): """Return state values to be pickled.""" return (self.microseconds) def __setstate__(self, state): """Restore state from the unpi...
[ 11748, 640, 198, 198, 6738, 1233, 2093, 1330, 7736, 198, 6738, 1233, 2093, 13, 83, 328, 5355, 13, 8692, 1330, 14189, 1362, 628, 198, 4871, 4225, 2100, 51, 15249, 7, 51, 15249, 2599, 198, 220, 220, 220, 705, 7061, 162, 107, 237, 4969...
2.354037
161
import gym from monte_carlo import Agent if __name__=='__main__': env=gym.make("Blackjack-v0") agent=Agent() n_episodes=500000 for i in range(n_episodes): if i%50000==0: print(f'starting episode {i}') observation=env.reset() done=False while not d...
[ 11748, 11550, 201, 198, 6738, 937, 660, 62, 7718, 5439, 1330, 15906, 201, 198, 201, 198, 361, 11593, 3672, 834, 855, 6, 834, 12417, 834, 10354, 201, 198, 220, 220, 220, 17365, 28, 1360, 76, 13, 15883, 7203, 9915, 19650, 12, 85, 15, ...
2.011331
353
#!/bin/python3 # Copyright (C) 2020 Matheus Fernandes Bigolin <mfrdrbigolin@disroot.org> # SPDX-License-Identifier: MIT """Day Seven, Handy Haversacks.""" # I had to postpone this day because I was not aware of the techniques of # graph theory to solve this problem. from sys import argv from re import findall fro...
[ 2, 48443, 8800, 14, 29412, 18, 198, 198, 2, 15069, 357, 34, 8, 12131, 6550, 258, 385, 26366, 274, 4403, 24910, 1279, 76, 69, 4372, 81, 14261, 24910, 31, 6381, 15763, 13, 2398, 29, 198, 2, 30628, 55, 12, 34156, 12, 33234, 7483, 25,...
2.389527
783
import signal from time import sleep from nerddiary.asynctools.delayedsignal import DelayedKeyboardInterrupt
[ 11748, 6737, 198, 6738, 640, 1330, 3993, 198, 198, 6738, 17156, 1860, 8042, 13, 292, 2047, 310, 10141, 13, 40850, 5379, 570, 282, 1330, 4216, 16548, 9218, 3526, 9492, 3622, 628, 198 ]
3.5
32
# ------------------------------------------------------------------------ # Deformable DETR # Copyright (c) 2020 SenseTime. All Rights Reserved. # Licensed under the Apache License, Version 2.0 [see LICENSE for details] # ------------------------------------------------------------------------ # Modified from DETR (ht...
[ 2, 16529, 982, 198, 2, 1024, 687, 540, 38267, 49, 198, 2, 15069, 357, 66, 8, 12131, 24956, 7575, 13, 1439, 6923, 33876, 13, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 685, 3826, 38559, 24290, 329, 3307, 60, 198...
3.554217
415
from ..utils import action, results_formatter from functools import partial import arep import pytest import os results_formatter = partial(results_formatter, name=os.path.basename(__file__)) results_with_elif = results_formatter({ (2, 0), (13, 0) }) results_with_else = results_formatter({ (2, 0), (11, 5) })...
[ 6738, 11485, 26791, 1330, 2223, 11, 2482, 62, 687, 1436, 198, 6738, 1257, 310, 10141, 1330, 13027, 198, 11748, 389, 79, 198, 11748, 12972, 9288, 198, 11748, 28686, 198, 198, 43420, 62, 687, 1436, 796, 13027, 7, 43420, 62, 687, 1436, 1...
2.512535
359
## 1. Sample Space ## coin_toss_omega = {'TH','HT','HH','TT'} ## 2. Probability of Events ## p_sum_6 = 5/ 36 p_lower_15 = 36/ 36 p_greater_13 = 0/ 36 ## 3. Certain and Impossible Events ## p_2_or_4 = 4/ 36 p_12_or_13 = 1/ 36 ## 4. The Addition Rule ## p_5_or_9 = (4/36) + (4/36) p_even_or_less_2 = (18/36) + (0...
[ 2235, 352, 13, 27565, 4687, 22492, 198, 198, 3630, 62, 83, 793, 62, 462, 4908, 796, 1391, 6, 4221, 41707, 6535, 41707, 16768, 41707, 15751, 6, 92, 198, 198, 2235, 362, 13, 30873, 1799, 286, 18715, 22492, 198, 198, 79, 62, 16345, 62,...
2.032967
364
Funcao(1,2,3, 'fabio') ''' a utilização do args serve para poder passa mais de um parametro cqunado declaramos a função ou uma classe sempre utilizamos * ou ** para transformar em tupla ou dicionario ''' F1(nome ='Fabio',idade=25)
[ 198, 37, 19524, 5488, 7, 16, 11, 17, 11, 18, 11, 705, 36434, 952, 11537, 198, 7061, 6, 198, 64, 7736, 23638, 16175, 28749, 466, 26498, 4691, 31215, 279, 12342, 1208, 64, 285, 15152, 390, 23781, 5772, 316, 305, 269, 80, 403, 4533, ...
2.306931
101
# A simple logger to export events to omnisci from __future__ import absolute_import, division import geoip2.database import pymapd as pmd from twisted.python import log import cowrie.core.output from cowrie.core.config import CowrieConfig class Output(cowrie.core.output.Output): """ OmniSciDB Output ...
[ 2, 317, 2829, 49706, 284, 10784, 2995, 284, 22284, 271, 979, 198, 198, 6738, 11593, 37443, 834, 1330, 4112, 62, 11748, 11, 7297, 198, 198, 11748, 40087, 541, 17, 13, 48806, 198, 198, 11748, 279, 4948, 499, 67, 355, 9114, 67, 198, 19...
3.104762
105
import datetime import sys import pprint date_start = datetime.date(2015, 10, 5) date_end = datetime.date(2016, 2, 8) date_delta = datetime.timedelta(days=1) whatsapp_file = sys.argv[1] with open(whatsapp_file, 'r') as fp: lines = fp.readlines() day_count = {} while date_start <= date_end: date_start += da...
[ 11748, 4818, 8079, 198, 11748, 25064, 198, 11748, 279, 4798, 198, 198, 4475, 62, 9688, 796, 4818, 8079, 13, 4475, 7, 4626, 11, 838, 11, 642, 8, 198, 4475, 62, 437, 796, 4818, 8079, 13, 4475, 7, 5304, 11, 362, 11, 807, 8, 198, 44...
2.396104
308
test = { 'name': 'question 3.4', 'points': 1, 'suites': [ { 'cases': [ { 'code': r""" >>> type(my_factorial) == types.FunctionType True """, 'hidden': False, 'locked': False }, { 'code': r""" >>> len(...
[ 9288, 796, 1391, 198, 220, 705, 3672, 10354, 705, 25652, 513, 13, 19, 3256, 198, 220, 705, 13033, 10354, 352, 11, 198, 220, 705, 2385, 2737, 10354, 685, 198, 220, 220, 220, 1391, 198, 220, 220, 220, 220, 220, 705, 33964, 10354, 685,...
1.719577
756
from django.urls import path from .api.views import link_search_view, link_view app_name = "links" urlpatterns = [ path("", view=link_view), path("search", link_search_view), ]
[ 6738, 42625, 14208, 13, 6371, 82, 1330, 3108, 198, 198, 6738, 764, 15042, 13, 33571, 1330, 2792, 62, 12947, 62, 1177, 11, 2792, 62, 1177, 198, 198, 1324, 62, 3672, 796, 366, 28751, 1, 198, 6371, 33279, 82, 796, 685, 198, 220, 220, ...
2.671429
70
import os import stat import sys from .base import TempAppDirTestCase from http_prompt import xdg
[ 11748, 28686, 198, 11748, 1185, 198, 11748, 25064, 198, 198, 6738, 764, 8692, 1330, 24189, 4677, 35277, 14402, 20448, 198, 6738, 2638, 62, 16963, 457, 1330, 2124, 67, 70, 628 ]
3.333333
30
import torch import torch.nn as nn import torch.nn.functional as F from torch.utils.data import Dataset, DataLoader from torchvision.transforms.functional import to_tensor, to_pil_image from captcha.image import ImageCaptcha from tqdm import tqdm import random import numpy as np from collections import Order...
[ 11748, 28034, 201, 198, 11748, 28034, 13, 20471, 355, 299, 77, 201, 198, 11748, 28034, 13, 20471, 13, 45124, 355, 376, 201, 198, 6738, 28034, 13, 26791, 13, 7890, 1330, 16092, 292, 316, 11, 6060, 17401, 201, 198, 6738, 28034, 10178, 1...
3.237624
101
import discord, os from discord.ext import commands from utils import checks, output, parsing from aiohttp import ClientSession import urllib.request import json
[ 11748, 36446, 11, 28686, 198, 6738, 36446, 13, 2302, 1330, 9729, 198, 6738, 3384, 4487, 1330, 8794, 11, 5072, 11, 32096, 198, 6738, 257, 952, 4023, 1330, 20985, 36044, 198, 11748, 2956, 297, 571, 13, 25927, 198, 11748, 33918, 628 ]
4.075
40
# Author : Andreas Mussgiller # Date : July 1st, 2010 # last update: $Date: 2010/03/17 18:17:34 $ by $Author: mussgill $ import FWCore.ParameterSet.Config as cms #_________________________________HLT bits___________________________________________ import HLTrigger.HLTfilters.hltHighLevel_cfi ALCARECOTkAlCos...
[ 2, 6434, 220, 220, 220, 220, 1058, 33728, 43309, 70, 4665, 198, 2, 7536, 220, 220, 220, 220, 220, 220, 1058, 2901, 352, 301, 11, 3050, 198, 2, 938, 4296, 25, 720, 10430, 25, 3050, 14, 3070, 14, 1558, 1248, 25, 1558, 25, 2682, 72...
2.77354
839
# <Copyright 2019, Argo AI, LLC. Released under the MIT license.> import argparse import glob import json import logging import os import pathlib from typing import Any, Dict, List, TextIO, Union import motmetrics as mm import numpy as np from argoverse.evaluation.eval_utils import get_pc_inside_bbox, label_to_bbox, ...
[ 2, 1279, 15269, 13130, 11, 943, 2188, 9552, 11, 11419, 13, 28728, 739, 262, 17168, 5964, 13, 29, 198, 11748, 1822, 29572, 198, 11748, 15095, 198, 11748, 33918, 198, 11748, 18931, 198, 11748, 28686, 198, 11748, 3108, 8019, 198, 6738, 197...
2.120802
3,990
from scapy.all import sniff, sendp import struct import sys if __name__ == '__main__': main()
[ 6738, 629, 12826, 13, 439, 1330, 26300, 11, 3758, 79, 198, 11748, 2878, 198, 11748, 25064, 198, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 198, 220, 220, 220, 1388, 3419, 198 ]
2.828571
35
"""Derivation of variable ``xco2``.""" from iris import Constraint from ._baseclass import DerivedVariableBase from ._shared import column_average class DerivedVariable(DerivedVariableBase): """Derivation of variable ``xco2``.""" @staticmethod def required(project): """Declare the variables nee...
[ 37811, 28532, 26939, 286, 7885, 7559, 87, 1073, 17, 15506, 526, 15931, 198, 198, 6738, 4173, 271, 1330, 1482, 2536, 2913, 198, 198, 6738, 47540, 8692, 4871, 1330, 9626, 1572, 43015, 14881, 198, 6738, 47540, 28710, 1330, 5721, 62, 23913, ...
2.266795
521
# -*- coding: utf-8 -*- import yaml
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 11748, 331, 43695, 628, 198 ]
1.95
20
from datetime import timedelta import simplekv import simplekv.memory from flask import Flask, request, jsonify from flask_jwt_extended import JWTManager, jwt_required, \ get_jwt_identity, revoke_token, unrevoke_token, \ get_stored_tokens, get_all_stored_tokens, create_access_token, \ create_refresh_token...
[ 6738, 4818, 8079, 1330, 28805, 12514, 198, 198, 11748, 2829, 74, 85, 198, 11748, 2829, 74, 85, 13, 31673, 198, 6738, 42903, 1330, 46947, 11, 2581, 11, 33918, 1958, 198, 198, 6738, 42903, 62, 73, 46569, 62, 2302, 1631, 1330, 449, 39386...
2.858995
617
n = input( "Name: ") print(f"My name is {n}")
[ 77, 796, 5128, 7, 366, 5376, 25, 366, 8, 198, 4798, 7, 69, 1, 3666, 1438, 318, 1391, 77, 92, 4943 ]
2.142857
21
"""Testing TcEx Input module field types.""" # standard library from typing import TYPE_CHECKING, Dict, List, Optional, Union # third-party import pytest from pydantic import BaseModel, validator # first-party from tcex.input.field_types import String, always_array, conditional_required, string from tcex.pleb.scoped_...
[ 37811, 44154, 309, 66, 3109, 23412, 8265, 2214, 3858, 526, 15931, 198, 2, 3210, 5888, 198, 6738, 19720, 1330, 41876, 62, 50084, 2751, 11, 360, 713, 11, 7343, 11, 32233, 11, 4479, 198, 198, 2, 2368, 12, 10608, 198, 11748, 12972, 9288, ...
1.916925
7,740
import time import base64 import hashlib import functools from flask import g, request, session, current_app from flask import flash, url_for, redirect, abort from flask.ext.babel import lazy_gettext as _ from .models import Asset_model
[ 11748, 640, 198, 11748, 2779, 2414, 198, 11748, 12234, 8019, 198, 11748, 1257, 310, 10141, 198, 6738, 42903, 1330, 308, 11, 2581, 11, 6246, 11, 1459, 62, 1324, 198, 6738, 42903, 1330, 7644, 11, 19016, 62, 1640, 11, 18941, 11, 15614, 1...
3.661538
65
from __future__ import absolute_import, print_function from datetime import datetime import json import urllib import time from pprint import pprint from tweepy.streaming import StreamListener from tweepy import OAuthHandler from tweepy import Stream from tweepy import API from itertools import ifilter if __nam...
[ 6738, 11593, 37443, 834, 1330, 4112, 62, 11748, 11, 3601, 62, 8818, 198, 6738, 4818, 8079, 1330, 4818, 8079, 198, 11748, 33918, 198, 11748, 2956, 297, 571, 198, 11748, 640, 198, 198, 6738, 279, 4798, 1330, 279, 4798, 198, 198, 6738, 4...
2.869955
223
from torch.nn.modules.module import Module from ..functions.hough_voting import HoughVotingFunction # from functions.hough_voting import HoughVotingFunction
[ 6738, 28034, 13, 20471, 13, 18170, 13, 21412, 1330, 19937, 198, 6738, 11485, 12543, 2733, 13, 71, 619, 62, 85, 10720, 1330, 367, 619, 53, 10720, 22203, 198, 2, 422, 5499, 13, 71, 619, 62, 85, 10720, 1330, 367, 619, 53, 10720, 22203,...
3.568182
44
import rnn import csv, random from functions import * #get the price and volume data from file if __name__ == '__main__': main()
[ 11748, 374, 20471, 198, 198, 11748, 269, 21370, 11, 4738, 198, 198, 6738, 5499, 1330, 1635, 198, 198, 2, 1136, 262, 2756, 290, 6115, 1366, 422, 2393, 198, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 198, 220, 220, ...
2.978261
46
"""CelebA Dataset. Notes: - `http://mmlab.ie.cuhk.edu.hk/projects/CelebA.html` """ # default packages import logging import pathlib import shutil import typing as t import zipfile # third party packages import pandas as pd import requests import tqdm as tqdm_std # my packages import src.data.dataset as dataset i...
[ 37811, 42741, 65, 32, 16092, 292, 316, 13, 198, 198, 16130, 25, 198, 220, 220, 220, 532, 4600, 4023, 1378, 3020, 23912, 13, 494, 13, 66, 7456, 74, 13, 15532, 13, 71, 74, 14, 42068, 14, 42741, 65, 32, 13, 6494, 63, 198, 37811, 19...
2.099908
1,091
# Aula 6 - Desafio 3: Somando dois numeros num1 = int(input('1º numero: ')) num2 = int(input('2º numero: ')) soma = (num1 + num2) print(f'A soma entre {num1} e {num2} eh igual a \033[7;33m{soma}\033[m')
[ 2, 317, 4712, 718, 532, 2935, 1878, 952, 513, 25, 9995, 25440, 466, 271, 5470, 418, 198, 198, 22510, 16, 796, 493, 7, 15414, 10786, 16, 36165, 997, 3529, 25, 705, 4008, 198, 22510, 17, 796, 493, 7, 15414, 10786, 17, 36165, 997, 35...
2.080808
99
#!/usr/bin/env python3 from __future__ import absolute_import from __future__ import division from __future__ import print_function import argparse import numpy as np import torch as th import torchvision from tqdm import tqdm if __name__ == "__main__": parser = argparse.ArgumentParser() parser.add_argume...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 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, 1822, 29572, 198, ...
2.98895
181
#!/usr/bin/env python # -*- coding: utf-8 -*- """Test writing to stdout and stderr.""" import os import sys import pytest import colorise @pytest.mark.skip_on_windows
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 37811, 14402, 3597, 284, 14367, 448, 290, 336, 1082, 81, 526, 15931, 198, 198, 11748, 28686, 198, 11748, 25064, 19...
2.597015
67
import datetime import os import torch import torch.nn.functional as F from torch.utils.data import DataLoader, RandomSampler, TensorDataset from torch.utils.data.distributed import DistributedSampler from tqdm import tqdm from tqdm import trange from common.evaluators.bert_evaluator import BertEvaluator from dataset...
[ 11748, 4818, 8079, 198, 11748, 28686, 198, 198, 11748, 28034, 198, 11748, 28034, 13, 20471, 13, 45124, 355, 376, 198, 6738, 28034, 13, 26791, 13, 7890, 1330, 6060, 17401, 11, 14534, 16305, 20053, 11, 309, 22854, 27354, 292, 316, 198, 67...
2.574007
831
#!/usr/bin/env python # -*- coding: utf-8 -*- # noris network AG 2020 # Tim Zöllner __date__ = '2020-06-22' __version__ = '0.4.2' #from docopt import docopt import argparse import sys import ssl import json import requests from requests.auth import HTTPBasicAuth from datetime import datetime # check elasticsearch modu...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 4249, 271, 3127, 13077, 12131, 198, 2, 5045, 1168, 9101, 297, 1008, 198, 834, 4475, 834, 796, 705, 42334, 12, 3312...
1.891808
1,941
#!/usr/bin/env python # -*- coding: utf-8 -*- import os, sys import numpy as np #--- for matplotlib import matplotlib matplotlib.use('Agg') import matplotlib.pyplot as plt import matplotlib.ticker as tick from matplotlib import cm #import seaborn as sns #------------------------- NUM_MULTIPLE = 5 NUM_SECTION = 500 #-...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 11748, 28686, 11, 25064, 198, 11748, 299, 32152, 355, 45941, 198, 198, 2, 6329, 329, 2603, 29487, 8019, 198, 11748, 260...
2.963504
137
from .base import BaseField
[ 6738, 764, 8692, 1330, 7308, 15878, 628 ]
4.142857
7
from tests import ScraperTest from recipe_scrapers.cookpad import CookPad
[ 6738, 5254, 1330, 1446, 38545, 14402, 198, 198, 6738, 8364, 62, 1416, 2416, 364, 13, 27916, 15636, 1330, 8261, 26114, 628 ]
3.619048
21
from setuptools import setup setup( name='qrgen', version='0.0.1', entry_points={ 'console_scripts': [ 'qrgen=qrgen:run' ] } )
[ 6738, 900, 37623, 10141, 1330, 9058, 198, 40406, 7, 198, 220, 220, 220, 1438, 11639, 80, 81, 5235, 3256, 198, 220, 220, 220, 2196, 11639, 15, 13, 15, 13, 16, 3256, 198, 220, 220, 220, 5726, 62, 13033, 34758, 198, 220, 220, 220, 22...
1.847826
92
from django.db import models from django.urls import reverse from django.template.defaultfilters import slugify
[ 6738, 42625, 14208, 13, 9945, 1330, 4981, 198, 6738, 42625, 14208, 13, 6371, 82, 1330, 9575, 198, 6738, 42625, 14208, 13, 28243, 13, 12286, 10379, 1010, 1330, 31065, 1958, 220, 628 ]
3.677419
31
# -*- coding: utf-8 -*- # Generated by Django 1.10.1 on 2016-09-14 22:38 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 2980, 515, 416, 37770, 352, 13, 940, 13, 16, 319, 1584, 12, 2931, 12, 1415, 2534, 25, 2548, 198, 6738, 11593, 37443, 834, 1330, 28000, 1098, 62, 17201, 874, 198, ...
2.73913
69