blob_id
stringlengths
40
40
formatted
stringlengths
15
1.74M
input_ids
listlengths
7
1.19M
tokens
listlengths
7
1.19M
rows
listlengths
7
1.19M
cols
listlengths
7
1.19M
a4ecc578a163ee4657a2c9302f79f15c2e4e39de
class Leg: __smelly = True def bend_knee(self): print("knee bent") @property def smelly(self): return self.__smelly @smelly.setter def smelly(self, smell): self.__smelly = smell def is_smelly(self): return self.__smelly
[ 842, 17209, 63, 303, 1176, 120, 42153, 126, 299, 2969, 465, 684, 342, 435, 100, 112, 25189, 45, 803, 731, 310, 1489, 459, 112, 25189, 342, 323, 678, 465, 496, 2449, 303, 684, 328, 42153, 126, 45, 803, 731, 310, 461, 649, 3688, 120...
[ "class", "ĠLeg", ":", "ĊĠĠĠ", "Ġ__", "s", "mell", "y", "Ġ=", "ĠTrue", "ĊĊĠĠĠ", "Ġdef", "Ġb", "end", "_", "k", "nee", "(", "self", "):", "ĊĠĠĠĠĠĠĠ", "Ġprint", "(\"", "k", "nee", "Ġb", "ent", "\")", "ĊĊĠĠĠ", "Ġ@", "property", "ĊĠĠĠ", "Ġdef", "Ġs", "m...
[ 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 7, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 11, 11, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 12, 12,...
[ 1, 6, 10, 11, 4, 7, 8, 12, 13, 15, 20, 4, 8, 10, 13, 14, 15, 18, 19, 23, 25, 8, 14, 16, 17, 20, 22, 25, 27, 4, 6, 14, 4, 8, 10, 14, 15, 16, 20, 22, 8, 15, 20, 23, 24, 28, 29, 4, 6, 7, 11, 12, 13, 19, 4, 8, ...
a85a7ad6ffb2b9aa5f5326d11c75ddbee680fac4
import sys import sucessor import expande from collections import deque def busca_caminho(nodo_final, nodo_inicial): pilha_acoes = deque() # iremos empilhar as acoes já que a estaremos com a ordem reversa a priori v = nodo_final while v != nodo_inicial: pilha_acoes.append(v.acao) v = v.pa...
[ 485, 5263, 222, 485, 7345, 690, 290, 222, 485, 2928, 13710, 222, 1097, 13722, 1220, 41848, 499, 222, 610, 6885, 1192, 100, 7218, 285, 3493, 45, 115, 6049, 100, 3242, 49, 329, 6049, 100, 285, 9328, 731, 303, 317, 354, 4958, 100, 4293...
[ "import", "Ġsys", "Ċ", "import", "Ġsu", "cess", "or", "Ċ", "import", "Ġexp", "ande", "Ċ", "from", "Ġcollections", "Ġimport", "Ġdeque", "ĊĊ", "Ċ", "def", "Ġbus", "ca", "_", "cam", "in", "ho", "(", "n", "odo", "_", "final", ",", "Ġn", "odo", "_", "in...
[ 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 6, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8...
[ 1, 7, 11, 1, 7, 10, 14, 16, 1, 7, 11, 15, 1, 5, 17, 24, 30, 1, 1, 4, 8, 10, 11, 14, 16, 18, 19, 20, 23, 24, 29, 30, 32, 35, 36, 38, 43, 45, 4, 6, 8, 10, 11, 16, 18, 24, 26, 27, 29, 33, 36, 40, 42, 45, 48, 5...
42d2d8717ec2c25a99302e8de3090d600f8e80ff
# Copyright 2021 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). from pants.backend.scala.goals.tailor import classify_source_files from pants.backend.scala.target_types import ( ScalaJunitTestsGeneratorTarget, ScalaSourcesGeneratorTarget, ...
[ 40, 2657, 244, 55, 53, 55, 54, 466, 2392, 2091, 13356, 327, 2987, 13654, 51, 973, 566, 222, 40, 4773, 1549, 341, 3954, 1196, 49, 3050, 244, 55, 51, 53, 327, 2987, 7621, 566, 499, 222, 1097, 317, 2392, 51, 7887, 51, 6508, 51, 319...
[ "#", "ĠCopyright", "Ġ", "2", "0", "2", "1", "ĠP", "ants", "Ġproject", "Ġcontributors", "Ġ(", "see", "ĠCONTRIBUTORS", ".", "md", ").", "Ċ", "#", "ĠLicensed", "Ġunder", "Ġthe", "ĠApache", "ĠLicense", ",", "ĠVersion", "Ġ", "2", ".", "0", "Ġ(", "see", "ĠLI...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6...
[ 1, 2, 12, 13, 14, 15, 16, 17, 19, 23, 31, 44, 46, 49, 62, 63, 65, 67, 1, 2, 11, 17, 21, 28, 36, 37, 45, 46, 47, 48, 49, 51, 54, 62, 64, 1, 1, 5, 7, 11, 12, 19, 20, 25, 26, 31, 32, 36, 38, 45, 54, 55, 61, 62, ...
b2fa6104f03dc76522a51f352101cef199ddc665
# Generated by Django 2.2.7 on 2019-11-15 23:43 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ("quizzapp", "0005_auto_20191115_2339"), ] operations = [ migrations.RemoveField( model_name="question", name="titre", ...
[ 40, 13046, 829, 18288, 244, 55, 51, 55, 51, 60, 563, 244, 55, 53, 54, 62, 50, 54, 54, 50, 54, 58, 244, 55, 56, 63, 57, 56, 222, 222, 1097, 8532, 51, 1219, 1220, 12520, 499, 222, 842, 18572, 45, 19772, 51, 12071, 731, 303, 64...
[ "#", "ĠGenerated", "Ġby", "ĠDjango", "Ġ", "2", ".", "2", ".", "7", "Ġon", "Ġ", "2", "0", "1", "9", "-", "1", "1", "-", "1", "5", "Ġ", "2", "3", ":", "4", "3", "Ċ", "Ċ", "from", "Ġdjango", ".", "db", "Ġimport", "Ġmigrations", "ĊĊ", "Ċ", "cla...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 3, 3, 3, 3, 3, 3, 3, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8...
[ 1, 2, 12, 15, 22, 23, 24, 25, 26, 27, 28, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 1, 1, 5, 12, 13, 15, 22, 33, 1, 1, 6, 16, 17, 27, 28, 37, 39, 4, 17, 19, 21, 8, 11, 13, 16, 19...
07bd3c7cacbf8d0e39d06b21456258ad92cb2294
# module: order functionality # HW2: complete this func def process_option(food, option): # print(food.keys()) food_name = list(food.keys())[option - 1] food_price = food[food_name] print(food_price) print("You have chosen: ", option, food_name, "!", " For unit price: ", food_price) # HW2...
[ 40, 2313, 63, 2554, 8923, 499, 222, 40, 29090, 55, 63, 6179, 477, 3439, 499, 222, 610, 2183, 100, 1779, 45, 18377, 49, 2489, 731, 303, 607, 1489, 45, 18377, 51, 3519, 1177, 303, 17909, 100, 444, 299, 1168, 45, 18377, 51, 3519, 481...
[ "#", "Ġmodule", ":", "Ġorder", "Ġfunctionality", "ĊĊ", "Ċ", "#", "ĠHW", "2", ":", "Ġcomplete", "Ġthis", "Ġfunc", "ĊĊ", "Ċ", "def", "Ġprocess", "_", "option", "(", "food", ",", "Ġoption", "):", "ĊĠĠĠ", "Ġ#", "Ġprint", "(", "food", ".", "keys", "())", ...
[ 1, 1, 1, 1, 1, 1, 3, 4, 4, 4, 4, 4, 4, 4, 4, 6, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, ...
[ 1, 2, 9, 10, 16, 30, 1, 1, 2, 5, 6, 7, 16, 21, 26, 1, 1, 4, 12, 13, 19, 20, 24, 25, 32, 34, 4, 6, 12, 13, 17, 18, 22, 25, 4, 9, 10, 14, 16, 21, 22, 26, 27, 31, 35, 41, 43, 44, 45, 46, 4, 9, 10, 15, 17, 22, ...
37f610457e51599a29168accd95eaa6699c6f777
# Generated by Django 2.2 on 2020-11-05 16:33 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ("accounts", "0011_auto_20201104_0936"), ] operations = [ migrations.AddField( model_name="users", name="isadmin", ...
[ 40, 13046, 829, 18288, 244, 55, 51, 55, 563, 244, 55, 53, 55, 53, 50, 54, 54, 50, 53, 58, 244, 54, 59, 63, 56, 56, 222, 222, 1097, 8532, 51, 1219, 1220, 12520, 49, 4590, 499, 222, 842, 18572, 45, 19772, 51, 12071, 731, 303, ...
[ "#", "ĠGenerated", "Ġby", "ĠDjango", "Ġ", "2", ".", "2", "Ġon", "Ġ", "2", "0", "2", "0", "-", "1", "1", "-", "0", "5", "Ġ", "1", "6", ":", "3", "3", "Ċ", "Ċ", "from", "Ġdjango", ".", "db", "Ġimport", "Ġmigrations", ",", "Ġmodels", "ĊĊ", "Ċ", ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8...
[ 1, 2, 12, 15, 22, 23, 24, 25, 26, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 1, 1, 5, 12, 13, 15, 22, 33, 34, 41, 1, 1, 6, 16, 17, 27, 28, 37, 39, 4, 17, 19, 21, 8, 11, 19, 21, 23...
d786e89b9d478dcff3c541c89731247075d078c3
""" @author: Ken Venner @contact: ken@venerllc.com @version: 1.13 Read in a file of wine names and create consistent wine descriptions from these names. """ import kvutil import kvcsv import re import sys import shutil # may comment out in the future import pprint pp = pprint.PrettyPrinter(indent=4) ppFlag = ...
[ 3012, 222, 69, 2133, 63, 280, 48433, 694, 291, 1403, 222, 69, 5559, 63, 244, 851, 291, 69, 123, 766, 629, 104, 51, 527, 222, 69, 1687, 63, 280, 54, 51, 54, 56, 222, 222, 2248, 347, 331, 822, 451, 24156, 4492, 480, 1506, 14500, ...
[ "\"\"\"", "Ċ", "@", "author", ":", "ĠĠ", "ĠKen", "ĠV", "en", "ner", "Ċ", "@", "contact", ":", "Ġ", "Ġk", "en", "@", "v", "ener", "ll", "c", ".", "com", "Ċ", "@", "version", ":", "ĠĠ", "1", ".", "1", "3", "Ċ", "Ċ", "Read", "Ġin", "Ġa", "Ġfil...
[ 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 8, 9, 9, 10, 11, 11, 11, 11, 12, ...
[ 1, 4, 1, 2, 8, 9, 11, 15, 17, 19, 22, 1, 2, 9, 10, 11, 13, 15, 16, 17, 21, 23, 24, 25, 28, 1, 2, 9, 10, 12, 13, 14, 15, 16, 1, 1, 5, 8, 10, 15, 18, 23, 29, 33, 40, 51, 56, 69, 1, 5, 11, 17, 18, 1, 1, 4, 1...
c6cce2edafd7683af766b932d90ca170359e648a
"""Usage: sharedprint.py INPUT [--output=out.mrc] sharedprint.py INPUT [--csv=greenglass.csv] Process Koha MARC export for SCELC Shared Print. The two uses above either 1) create a subset of the MARC input that's limited to circulating items only or 2) performs a comparison between what's in the catalog and w...
[ 3012, 6786, 63, 303, 7187, 1243, 51, 997, 20581, 29274, 2051, 66, 560, 51, 114, 918, 98, 303, 7187, 1243, 51, 997, 20581, 29274, 4849, 66, 5013, 838, 405, 51, 4849, 98, 222, 222, 2877, 36181, 4958, 507, 32960, 4184, 456, 377, 1973, ...
[ "\"\"\"", "Usage", ":", "ĊĠĠĠ", "Ġshared", "print", ".", "py", "ĠINPUT", "Ġ[--", "output", "=", "out", ".", "m", "rc", "]", "ĊĠĠĠ", "Ġshared", "print", ".", "py", "ĠINPUT", "Ġ[--", "csv", "=", "gre", "eng", "lass", ".", "csv", "]", "Ċ", "Ċ", "Proce...
[ 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7...
[ 1, 4, 9, 10, 4, 11, 16, 17, 19, 25, 29, 35, 36, 39, 40, 41, 43, 44, 4, 11, 16, 17, 19, 25, 29, 32, 33, 36, 39, 43, 44, 47, 48, 1, 1, 8, 11, 13, 15, 18, 25, 29, 31, 33, 35, 42, 48, 49, 1, 1, 4, 8, 13, 19, 26, ...
3d45fd7dcb3b382efaefe2797ebeb33216a840fa
from django import forms from .models import Picture class PictureUploadForm(forms.ModelForm): class Meta: model = Picture exclude = () def __init__(self, *args, **kwargs): super().__init__(*args, **kwargs) for field_name, field in self.fields.items(): field.widget...
[ 1097, 8532, 1220, 10556, 222, 1097, 657, 3404, 1220, 35317, 499, 222, 842, 35317, 7847, 1260, 45, 8543, 51, 1262, 1260, 731, 303, 462, 11990, 63, 310, 1573, 299, 35317, 310, 11270, 299, 1423, 465, 684, 1176, 1683, 3232, 803, 49, 338, ...
[ "from", "Ġdjango", "Ġimport", "Ġforms", "Ċ", "from", "Ġ.", "models", "Ġimport", "ĠPicture", "ĊĊ", "Ċ", "class", "ĠPicture", "Upload", "Form", "(", "forms", ".", "Model", "Form", "):", "ĊĠĠĠ", "Ġclass", "ĠMeta", ":", "ĊĠĠĠĠĠĠĠ", "Ġmodel", "Ġ=", "ĠPicture", ...
[ 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 8, 8, 8, 8, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 12,...
[ 1, 5, 12, 19, 25, 1, 5, 7, 13, 20, 28, 1, 1, 6, 14, 20, 24, 25, 30, 31, 36, 40, 42, 4, 10, 15, 16, 8, 14, 16, 24, 8, 16, 18, 21, 4, 8, 11, 15, 18, 22, 23, 25, 29, 30, 33, 39, 41, 8, 14, 19, 23, 27, 31, 32, ...
d84641ce2854d4af26cd46abbe9557d6006cfc2e
import time from selenium import webdriver from webdriver_manager.chrome import ChromeDriverManager from webdriver_manager.firefox import GeckoDriverManager from webdriver_manager.microsoft import EdgeChromiumDriverManager import os # caps = {'browserName': os.getenv('BROWSER', 'firefox')} # browser = webdriver.Remo...
[ 485, 1153, 222, 222, 1097, 35822, 1220, 48594, 222, 1097, 48594, 100, 4031, 51, 11232, 1220, 11764, 6641, 1590, 222, 1097, 48594, 100, 4031, 51, 35148, 1220, 26281, 6641, 1590, 222, 1097, 48594, 100, 4031, 51, 3800, 1220, 11284, 846, 23...
[ "import", "Ġtime", "Ċ", "Ċ", "from", "Ġselenium", "Ġimport", "Ġwebdriver", "Ċ", "from", "Ġwebdriver", "_", "manager", ".", "chrome", "Ġimport", "ĠChrome", "Driver", "Manager", "Ċ", "from", "Ġwebdriver", "_", "manager", ".", "firefox", "Ġimport", "ĠGecko", "Dri...
[ 1, 1, 1, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, ...
[ 1, 7, 12, 1, 1, 5, 14, 21, 31, 1, 5, 15, 16, 23, 24, 30, 37, 44, 50, 57, 1, 5, 15, 16, 23, 24, 31, 38, 44, 50, 57, 1, 5, 15, 16, 23, 24, 33, 40, 45, 47, 53, 59, 66, 1, 7, 10, 1, 1, 2, 7, 9, 12, 19, 23, 25, ...
bad719d968b4e358f863b7ef13bc12127f726806
# -*- coding: utf-8 -*- """Testing constants for Bio2BEL FlyBase.""" import logging import os log = logging.getLogger(__name__) dir_path = os.path.dirname(os.path.realpath(__file__)) TEST_FILE = os.path.join(dir_path, "test_gene_map_table.tsv.gz")
[ 40, 8571, 10633, 63, 6471, 50, 61, 8571, 222, 222, 3012, 10870, 12405, 456, 18638, 55, 71, 2165, 45966, 1778, 7128, 222, 222, 485, 5751, 222, 485, 2355, 222, 222, 769, 299, 5751, 51, 10588, 4077, 444, 8238, 222, 222, 1537, 100, 1005...
[ "#", "Ġ-*-", "Ġcoding", ":", "Ġutf", "-", "8", "Ġ-*-", "Ċ", "Ċ", "\"\"\"", "Testing", "Ġconstants", "Ġfor", "ĠBio", "2", "B", "EL", "ĠFly", "Base", ".\"\"\"", "Ċ", "Ċ", "import", "Ġlogging", "Ċ", "import", "Ġos", "Ċ", "Ċ", "log", "Ġ=", "Ġlogging", "....
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 5, 5, 5, 6, 6, 6, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11...
[ 1, 2, 6, 13, 14, 18, 19, 20, 24, 1, 1, 4, 11, 21, 25, 29, 30, 31, 33, 37, 41, 45, 1, 1, 7, 15, 1, 7, 10, 1, 1, 4, 6, 14, 15, 24, 27, 31, 34, 1, 1, 4, 5, 9, 11, 14, 15, 19, 20, 27, 28, 30, 31, 35, 36, 44, ...
0ff6e22f8704a0c6c0ffff3c53761b9d3a531b6d
# This is a sample Python script. # Press Shift+F10 to execute it or replace it with your code. # Press Double Shift to search everywhere for classes, files, tool windows, actions, and settings. from PyQt5 import QtWidgets, uic import sys import pymysql import mysql.connector class Ui_Login(QtWidgets.QDialog): ...
[ 40, 1369, 458, 331, 4002, 5006, 3273, 51, 222, 222, 40, 22497, 26105, 48, 75, 54, 53, 391, 5755, 580, 575, 7112, 580, 642, 1390, 1361, 51, 222, 40, 22497, 6938, 26105, 391, 3252, 38629, 456, 6052, 49, 2293, 49, 4572, 11309, 49, 69...
[ "#", "ĠThis", "Ġis", "Ġa", "Ġsample", "ĠPython", "Ġscript", ".", "Ċ", "Ċ", "#", "ĠPress", "ĠShift", "+", "F", "1", "0", "Ġto", "Ġexecute", "Ġit", "Ġor", "Ġreplace", "Ġit", "Ġwith", "Ġyour", "Ġcode", ".", "Ċ", "#", "ĠPress", "ĠDouble", "ĠShift", "Ġto", ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 8, 8...
[ 1, 2, 7, 10, 12, 19, 26, 33, 34, 1, 1, 2, 8, 14, 15, 16, 17, 18, 21, 29, 32, 35, 43, 46, 51, 56, 61, 62, 1, 2, 8, 15, 21, 24, 31, 42, 46, 54, 55, 61, 62, 67, 75, 76, 84, 85, 89, 98, 99, 1, 1, 5, 10, 11, 18, ...
5ff7a3843314dfd3914c5e96164385d61fbe7fa5
import sys import time import math from neopixel import * count = int(sys.argv[1]) percent = int(sys.argv[2]) # LED strip configuration: LED_COUNT = count # Number of LED pixels. LED_PIN = 18 # GPIO pin connected to the pixels (must support PWM!). LED_FREQ_HZ = 800000 # LED signal frequency in hertz (usually 800khz...
[ 485, 5263, 222, 485, 1153, 222, 485, 7820, 222, 1097, 1188, 539, 3175, 1220, 338, 222, 222, 1016, 299, 648, 45, 3750, 51, 6129, 96, 54, 1156, 222, 11701, 299, 648, 45, 3750, 51, 6129, 96, 55, 1156, 222, 40, 17827, 16481, 3505, 63,...
[ "import", "Ġsys", "Ċ", "import", "Ġtime", "Ċ", "import", "Ġmath", "Ċ", "from", "Ġne", "op", "ixel", "Ġimport", "Ġ*", "Ċ", "Ċ", "count", "Ġ=", "Ġint", "(", "sys", ".", "argv", "[", "1", "])", "Ċ", "percent", "Ġ=", "Ġint", "(", "sys", ".", "argv", ...
[ 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10...
[ 1, 7, 11, 1, 7, 12, 1, 7, 12, 1, 5, 8, 10, 14, 21, 23, 1, 1, 6, 8, 12, 13, 16, 17, 21, 22, 23, 25, 1, 8, 10, 14, 15, 18, 19, 23, 24, 25, 27, 1, 2, 6, 12, 26, 27, 1, 4, 5, 10, 12, 18, 19, 21, 28, 31, 35, 4...
07d574060ded0d98734b4f184dcba7377b3a5480
from datetime import datetime import whois def age_domain(url): try: w = whois.whois(url) if w: for l in w.expiration_date: d1 = datetime.date(l) print(d1) for l1 in w.creation_date: d2 = datetime.date(l1) print(d2) ...
[ 1097, 7181, 1220, 7181, 222, 222, 485, 6574, 316, 499, 222, 610, 11505, 100, 4136, 45, 983, 731, 303, 1614, 63, 310, 360, 299, 6574, 316, 51, 19482, 316, 45, 983, 46, 310, 434, 360, 63, 343, 456, 475, 347, 360, 51, 26894, 100, 7...
[ "from", "Ġdatetime", "Ġimport", "Ġdatetime", "Ċ", "Ċ", "import", "Ġwho", "is", "ĊĊ", "Ċ", "def", "Ġage", "_", "domain", "(", "url", "):", "ĊĠĠĠ", "Ġtry", ":", "ĊĠĠĠĠĠĠĠ", "Ġw", "Ġ=", "Ġwho", "is", ".", "who", "is", "(", "url", ")", "ĊĠĠĠĠĠĠĠ", "Ġif",...
[ 1, 1, 1, 1, 1, 2, 3, 3, 3, 3, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 12, 12, ...
[ 1, 5, 14, 21, 30, 1, 1, 7, 11, 13, 1, 1, 4, 8, 9, 15, 16, 19, 21, 4, 8, 9, 8, 10, 12, 16, 18, 19, 22, 24, 25, 28, 29, 8, 11, 13, 14, 12, 16, 18, 21, 23, 24, 34, 35, 39, 40, 16, 18, 19, 21, 30, 31, 35, 36, 3...
a4db12fee72989f983c1069839dc0a5ede4561a3
from django.contrib.postgres.fields import JSONField from django.db import models from service.models import TimeStampedModel class Praise(TimeStampedModel): class Meta: verbose_name = "칭찬" verbose_name_plural = verbose_name content = models.CharField(verbose_name="내용", unique=True, max_leng...
[ 1097, 8532, 51, 12060, 51, 12254, 51, 4169, 1220, 3411, 1195, 222, 1097, 8532, 51, 1219, 1220, 4590, 222, 222, 1097, 2733, 51, 3404, 1220, 3734, 12964, 337, 1262, 499, 222, 842, 466, 13227, 45, 27130, 337, 1262, 731, 303, 462, 11990, ...
[ "from", "Ġdjango", ".", "contrib", ".", "postgres", ".", "fields", "Ġimport", "ĠJSON", "Field", "Ċ", "from", "Ġdjango", ".", "db", "Ġimport", "Ġmodels", "Ċ", "Ċ", "from", "Ġservice", ".", "models", "Ġimport", "ĠTime", "Stamp", "ed", "Model", "ĊĊ", "Ċ", "...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 6, 7, 7, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, ...
[ 1, 5, 12, 13, 20, 21, 29, 30, 36, 43, 48, 53, 1, 5, 12, 13, 15, 22, 29, 1, 1, 5, 13, 14, 20, 27, 32, 37, 39, 44, 1, 1, 6, 8, 13, 14, 23, 25, 30, 32, 4, 10, 15, 16, 8, 16, 17, 21, 23, 25, 25, 26, 26, 27, 28, ...
c70aa1a373530ac73553753e62d3989f5bc79287
#!/usr/bin/env python import urllib class LicenseChecker(object): def __init__(self): self.url = "http://logon.guidoaccardo.com.ar/" self.count_offline = 15 def __countTimes(self): ff = open("times.ehead", "r") bb = ff.read() ff.close() return int(bb) de...
[ 8758, 3392, 52, 1793, 52, 2141, 4406, 222, 222, 485, 22296, 499, 222, 842, 1196, 14003, 45, 1491, 731, 303, 684, 1176, 1683, 3232, 803, 731, 310, 649, 51, 983, 299, 332, 544, 574, 769, 286, 51, 12355, 116, 348, 2310, 116, 51, 527,...
[ "#!/", "usr", "/", "bin", "/", "env", "Ġpython", "Ċ", "Ċ", "import", "Ġurllib", "ĊĊ", "Ċ", "class", "ĠLicense", "Checker", "(", "object", "):", "ĊĠĠĠ", "Ġdef", "Ġ__", "init", "__(", "self", "):", "ĊĠĠĠĠĠĠĠ", "Ġself", ".", "url", "Ġ=", "Ġ\"", "http", ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 2, 3, 3, 3, 5, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 11, 11, 11, 11, 11...
[ 1, 4, 7, 8, 11, 12, 15, 22, 1, 1, 7, 14, 1, 1, 6, 14, 21, 22, 28, 30, 4, 8, 11, 15, 18, 22, 24, 8, 13, 14, 17, 19, 21, 25, 28, 31, 33, 34, 38, 39, 41, 45, 46, 47, 50, 51, 53, 55, 8, 13, 14, 19, 20, 27, 29, ...
8680c033662a89ed6fc73e65ec544b93558c4208
from .feature import slide_show def main(args=None): if args: slide_show(args[0])
[ 1097, 657, 3317, 1220, 11376, 100, 2276, 499, 222, 610, 2594, 45, 1150, 66, 2545, 731, 303, 434, 2194, 63, 310, 11376, 100, 2276, 45, 1150, 96, 53, 1156, 222 ]
[ "from", "Ġ.", "feature", "Ġimport", "Ġslide", "_", "show", "ĊĊ", "Ċ", "def", "Ġmain", "(", "args", "=", "None", "):", "ĊĠĠĠ", "Ġif", "Ġargs", ":", "ĊĠĠĠĠĠĠĠ", "Ġslide", "_", "show", "(", "args", "[", "0", "])", "Ċ" ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 3, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6 ]
[ 1, 5, 7, 14, 21, 27, 28, 32, 1, 1, 4, 9, 10, 14, 15, 19, 21, 4, 7, 12, 13, 8, 14, 15, 19, 20, 24, 25, 26, 28 ]
56892e125934d5de937b92a08bd7707c12c70928
# 4, [[1,0],[2,0],[3,1],[3,2]] # 3->1->0 # \ ^ # \ | # \> 2 # 1,0,2,3 # stack 3 # # 0 1 2 3 # 1,0 # stack 1 # 0 # # def findOrder(numCourses, prerequisites): # if len(prerequisites) == 0: # order = [] # for i in range(0, numCourses): # order.append(i) # return or...
[ 40, 244, 57, 49, 3834, 54, 49, 53, 15130, 55, 49, 53, 15130, 56, 49, 54, 15130, 56, 49, 55, 3234, 222, 222, 40, 244, 56, 415, 54, 415, 53, 222, 40, 244, 788, 283, 5317, 222, 40, 280, 788, 280, 542, 222, 40, 283, 43175, 244, ...
[ "#", "Ġ", "4", ",", "Ġ[[", "1", ",", "0", "],[", "2", ",", "0", "],[", "3", ",", "1", "],[", "3", ",", "2", "]]", "Ċ", "Ċ", "#", "Ġ", "3", "->", "1", "->", "0", "Ċ", "#", "Ġ", "Ġ\\", "ĠĠĠ", "Ġ^", "Ċ", "#", "ĠĠ", "Ġ\\", "ĠĠ", "Ġ|", "...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9...
[ 1, 2, 3, 4, 5, 8, 9, 10, 11, 14, 15, 16, 17, 20, 21, 22, 23, 26, 27, 28, 29, 31, 1, 1, 2, 3, 4, 6, 7, 9, 10, 1, 2, 3, 5, 8, 10, 1, 2, 4, 6, 8, 10, 1, 2, 5, 8, 9, 10, 1, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10...
efca954e1977a6f6ac9a966b3c84ba80f5b7a663
import sys sys.stdin = open("10989.txt", "r") counting_list = [0 for _ in range(10001)] N = int(sys.stdin.readline()) for n in range(N): counting_list[int(sys.stdin.readline())] += 1 for i, v in enumerate(counting_list): if v: sys.stdout.write((str(i) + "\n") * v)
[ 485, 5263, 222, 222, 3750, 51, 21660, 299, 2177, 459, 54, 53, 62, 61, 62, 51, 2787, 411, 332, 119, 678, 222, 222, 1016, 318, 100, 687, 299, 447, 53, 456, 634, 347, 2189, 45, 54, 53, 53, 53, 54, 2201, 222, 83, 299, 648, 45, 3...
[ "import", "Ġsys", "Ċ", "Ċ", "sys", ".", "stdin", "Ġ=", "Ġopen", "(\"", "1", "0", "9", "8", "9", ".", "txt", "\",", "Ġ\"", "r", "\")", "Ċ", "Ċ", "count", "ing", "_", "list", "Ġ=", "Ġ[", "0", "Ġfor", "Ġ_", "Ġin", "Ġrange", "(", "1", "0", "0", ...
[ 1, 1, 1, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8...
[ 1, 7, 11, 1, 1, 4, 5, 10, 12, 17, 19, 20, 21, 22, 23, 24, 25, 28, 30, 32, 33, 35, 1, 1, 6, 9, 10, 14, 16, 18, 19, 23, 25, 28, 34, 35, 36, 37, 38, 39, 40, 42, 1, 2, 4, 8, 9, 12, 13, 18, 19, 27, 30, 1, 4, 6, ...
0709d413ddbe41a0c97f94b7819fdfded241d3fc
# -*- coding: utf-8 -*- """ Created on Tue Oct 9 16:22:21 2018 @author: SDis """ # import Code.Members_module class Resources: """Parent class for Books and eResources containg the main data fields and related setters and getters""" def __init__(self, title, author, publisher, year): self.title = t...
[ 40, 8571, 10633, 63, 6471, 50, 61, 8571, 222, 3012, 222, 6880, 563, 18555, 13103, 280, 62, 244, 54, 59, 63, 55, 55, 63, 55, 54, 244, 55, 53, 54, 61, 222, 222, 69, 2133, 63, 377, 1744, 222, 3012, 222, 40, 1220, 4420, 51, 9651, ...
[ "#", "Ġ-*-", "Ġcoding", ":", "Ġutf", "-", "8", "Ġ-*-", "Ċ", "\"\"\"", "Ċ", "Created", "Ġon", "ĠTue", "ĠOct", "ĠĠ", "9", "Ġ", "1", "6", ":", "2", "2", ":", "2", "1", "Ġ", "2", "0", "1", "8", "Ċ", "Ċ", "@", "author", ":", "ĠS", "Dis", "Ċ", ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 5, 5, 5, 5, 5, 5, 6, 6, 7, 7, 7, 7, 7, 7, 7, 7, 9, 10, 10, 10, 10, 11, 11, 11, 11, 11, 11, 11, ...
[ 1, 2, 6, 13, 14, 18, 19, 20, 24, 1, 4, 1, 8, 11, 15, 19, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 1, 1, 2, 8, 9, 11, 14, 1, 4, 1, 2, 9, 14, 15, 22, 23, 29, 1, 1, 6, 16, 17, 4, 8, 14...
9156ee034ceb8a39fc1eb3a18c1597c737814c72
# from django.test import TestCase ,LiveServerTestCase,Client # from MeetUps.models import* # from django.shortcuts import reverse # from .forms import RegistrationForm # class MeetUpViewTest(TestCase): # @classmethod # def setupTestDat(cls): # #create or get all meetups # def test_index(reque...
[ 40, 664, 8532, 51, 881, 1220, 19189, 1737, 11088, 2077, 7246, 49, 1503, 222, 222, 40, 664, 3130, 383, 90, 1088, 51, 3404, 1220, 47, 222, 40, 664, 8532, 51, 36264, 244, 1220, 10170, 222, 40, 664, 657, 8543, 1220, 27512, 1260, 222, ...
[ "#", "Ġfrom", "Ġdjango", ".", "test", "Ġimport", "ĠTestCase", "Ġ,", "Live", "Server", "TestCase", ",", "Client", "Ċ", "Ċ", "#", "Ġfrom", "ĠMe", "et", "U", "ps", ".", "models", "Ġimport", "*", "Ċ", "#", "Ġfrom", "Ġdjango", ".", "shortcuts", "Ġ", "Ġimpor...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 6, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 8, 9, 9, 9, 9, 9, 10, 10, ...
[ 1, 2, 7, 14, 15, 19, 26, 35, 37, 41, 47, 55, 56, 62, 1, 1, 2, 7, 10, 12, 13, 15, 16, 22, 29, 30, 1, 2, 7, 14, 15, 24, 25, 32, 40, 1, 2, 7, 9, 14, 21, 34, 38, 1, 1, 2, 8, 11, 13, 15, 19, 23, 24, 32, 34, 1, ...
afcadc11d23fb921eb6f8038a908de02ee763ca4
from __future__ import absolute_import import sys from apscheduler.executors.base import BaseExecutor, run_job try: import gevent except ImportError: # pragma: nocover raise ImportError("GeventExecutor requires gevent installed") class GeventExecutor(BaseExecutor): """ Runs jobs as greenlets. ...
[ 1097, 1176, 9689, 523, 1220, 7984, 100, 485, 222, 485, 5263, 222, 222, 1097, 1863, 13273, 51, 2510, 21770, 51, 1460, 1220, 3787, 7592, 49, 1441, 100, 3267, 499, 222, 1287, 63, 303, 1220, 3244, 672, 222, 7364, 29994, 63, 244, 607, 30...
[ "from", "Ġ__", "future", "__", "Ġimport", "Ġabsolute", "_", "import", "Ċ", "import", "Ġsys", "Ċ", "Ċ", "from", "Ġap", "scheduler", ".", "exec", "utors", ".", "base", "Ġimport", "ĠBase", "Executor", ",", "Ġrun", "_", "job", "ĊĊ", "Ċ", "try", ":", "ĊĠĠĠ"...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 6, 7, 7, 7, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 12, 13,...
[ 1, 5, 8, 14, 16, 23, 32, 33, 39, 1, 7, 11, 1, 1, 5, 8, 17, 18, 22, 27, 28, 32, 39, 44, 52, 53, 57, 58, 61, 1, 1, 4, 5, 4, 11, 14, 18, 1, 7, 19, 20, 21, 23, 30, 31, 34, 39, 4, 10, 22, 24, 25, 30, 38, 47, 50,...
bf51da12632013c62aa543ae7f02415057138c7a
# Copyright 2015 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
[ 40, 2657, 244, 55, 53, 54, 58, 906, 30802, 14006, 51, 3381, 12902, 11921, 51, 222, 40, 222, 40, 4773, 1549, 341, 3954, 1196, 49, 3050, 244, 55, 51, 53, 327, 1402, 332, 3801, 742, 222, 40, 863, 1648, 666, 813, 477, 822, 2959, 347...
[ "#", "ĠCopyright", "Ġ", "2", "0", "1", "5", "ĠThe", "ĠTensorFlow", "ĠAuthors", ".", "ĠAll", "ĠRights", "ĠReserved", ".", "Ċ", "#", "Ċ", "#", "ĠLicensed", "Ġunder", "Ġthe", "ĠApache", "ĠLicense", ",", "ĠVersion", "Ġ", "2", ".", "0", "Ġ(", "the", "Ġ\"", ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6...
[ 1, 2, 12, 13, 14, 15, 16, 17, 21, 32, 40, 41, 45, 52, 61, 62, 1, 2, 1, 2, 11, 17, 21, 28, 36, 37, 45, 46, 47, 48, 49, 51, 54, 56, 63, 66, 1, 2, 6, 10, 14, 18, 23, 28, 35, 38, 49, 54, 58, 66, 67, 1, 2, 6, 10, ...
3887516e4222504defe439e62bd24b12db3cdd84
from django import forms from .models import HhRequest class WorkRequestForm(forms.ModelForm): """Форма заявки на премию""" class Meta: model = HhRequest fields = ("profile", "sphere", "experience", "work_request", "resume") widgets = { "profile": forms.Select(attrs={"id...
[ 1097, 8532, 1220, 10556, 222, 222, 1097, 657, 3404, 1220, 696, 109, 1123, 499, 222, 842, 6352, 1123, 1260, 45, 8543, 51, 1262, 1260, 731, 303, 1547, 42879, 25923, 1147, 8031, 23942, 3717, 10721, 9504, 6474, 7295, 1286, 6214, 3012, 465, ...
[ "from", "Ġdjango", "Ġimport", "Ġforms", "Ċ", "Ċ", "from", "Ġ.", "models", "Ġimport", "ĠH", "h", "Request", "ĊĊ", "Ċ", "class", "ĠWork", "Request", "Form", "(", "forms", ".", "Model", "Form", "):", "ĊĠĠĠ", "Ġ\"\"\"", "Ф", "оÑĢм", "а", "Ġз", "аÑı", ...
[ 1, 1, 1, 1, 1, 2, 3, 3, 3, 3, 3, 3, 3, 3, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 11, 11, 11, 11, 1...
[ 1, 5, 12, 19, 25, 1, 1, 5, 7, 13, 20, 22, 23, 30, 1, 1, 6, 11, 18, 22, 23, 28, 29, 34, 38, 40, 4, 8, 9, 12, 13, 15, 17, 18, 20, 23, 26, 28, 29, 30, 33, 4, 10, 15, 16, 8, 14, 16, 18, 19, 26, 8, 15, 17, 20, 2...
c19c3f580d7555379bd7e077b0264a3784179e93
import sqlite3 import pandas as pd # %matplotlib inline import matplotlib.pyplot as plt db_filename = "readonly/dinofunworld.db" conn = sqlite3.connect(db_filename) c = conn.cursor() c.execute( "SELECT a.Name, count(c.visitorID) \ FROM attraction as a, checkin c \ WHERE \ a.AttractionID = c.attraction \ AND a.Cat...
[ 485, 17743, 56, 222, 485, 13247, 641, 6451, 222, 222, 40, 925, 26366, 4467, 222, 485, 13168, 51, 18553, 641, 6020, 222, 222, 1219, 100, 3633, 299, 332, 12363, 52, 37431, 1048, 330, 5879, 51, 1219, 39, 222, 3795, 299, 17743, 56, 51, ...
[ "import", "Ġsqlite", "3", "Ċ", "import", "Ġpandas", "Ġas", "Ġpd", "Ċ", "Ċ", "#", "Ġ%", "matplotlib", "Ġinline", "Ċ", "import", "Ġmatplotlib", ".", "pyplot", "Ġas", "Ġplt", "Ċ", "Ċ", "db", "_", "filename", "Ġ=", "Ġ\"", "readonly", "/", "din", "of", "un"...
[ 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 6, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 1...
[ 1, 7, 14, 15, 1, 7, 14, 17, 20, 1, 1, 2, 4, 14, 21, 1, 7, 18, 19, 25, 28, 32, 1, 1, 3, 4, 12, 14, 16, 24, 25, 28, 30, 32, 37, 38, 40, 41, 1, 5, 7, 14, 15, 16, 23, 24, 26, 27, 35, 36, 1, 2, 4, 9, 10, 16, 1...
978f3979aee1c4361483fd61b54352e7fff8d3b3
"""Functions for parsing various strings to RGB tuples.""" import json import re from pathlib import Path import importlib.resources as resources from pilutils.basic import hex_to_rgb __all__ = [ "parse_hex6", "parse_hex3", "parse_rgbfunc_int", "parse_rgbfunc_float", "parse_rgbfunc_percent", ...
[ 3012, 10910, 456, 11713, 10329, 5872, 391, 15351, 24572, 7128, 222, 222, 485, 2379, 222, 485, 334, 222, 1097, 30293, 1220, 5404, 222, 485, 46233, 51, 5390, 641, 6091, 222, 222, 1097, 317, 354, 2324, 51, 6404, 1220, 9965, 100, 471, 100...
[ "\"\"\"", "Functions", "Ġfor", "Ġparsing", "Ġvarious", "Ġstrings", "Ġto", "ĠRGB", "Ġtuples", ".\"\"\"", "Ċ", "Ċ", "import", "Ġjson", "Ċ", "import", "Ġre", "Ċ", "from", "Ġpathlib", "Ġimport", "ĠPath", "Ċ", "import", "Ġimportlib", ".", "resources", "Ġas", "Ġreso...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 9, 10, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 11, 11, 12, 12, 1...
[ 1, 4, 13, 17, 25, 33, 41, 44, 48, 55, 59, 1, 1, 7, 12, 1, 7, 10, 1, 5, 13, 20, 25, 1, 7, 17, 18, 27, 30, 40, 1, 1, 5, 7, 9, 14, 15, 20, 27, 31, 32, 34, 35, 38, 1, 1, 3, 6, 8, 10, 12, 4, 6, 11, 12, 15, 16,...
8a773448383a26610f4798e12fb514248e71dc4b
import importlib if __name__ == "__main__": module = importlib.import_module("UserFile") print(module.if_new_message) print(module.ID)
[ 485, 46233, 499, 222, 344, 1176, 444, 523, 630, 9609, 1850, 18021, 303, 2313, 299, 46233, 51, 485, 100, 1663, 459, 1259, 991, 678, 303, 1489, 45, 1663, 51, 344, 100, 909, 100, 1454, 46, 303, 1489, 45, 1663, 51, 798, 46, 222 ]
[ "import", "Ġimportlib", "ĊĊ", "Ċ", "if", "Ġ__", "name", "__", "Ġ==", "Ġ\"__", "main", "__\":", "ĊĠĠĠ", "Ġmodule", "Ġ=", "Ġimportlib", ".", "import", "_", "module", "(\"", "User", "File", "\")", "ĊĠĠĠ", "Ġprint", "(", "module", ".", "if", "_", "new", "_...
[ 1, 1, 1, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7 ]
[ 1, 7, 17, 1, 1, 3, 6, 10, 12, 15, 19, 23, 27, 4, 11, 13, 23, 24, 30, 31, 37, 39, 43, 47, 49, 4, 10, 11, 17, 18, 20, 21, 24, 25, 32, 33, 4, 10, 11, 17, 18, 20, 21 ]
8ce2db0a28de8ddd504b744f3c9210d1a0ed7d45
import json from .errors import TorrentNotValid, TorrentHashNotFound, FailedLogin, HttpException class QBittorrentClient: """ QBittorent client """ def __init__(self, *, connector): self.connector = connector def login(self, username: str, password: str): return self.connector....
[ 485, 2379, 222, 222, 1097, 657, 4312, 1220, 413, 17592, 1355, 2320, 49, 413, 17592, 2899, 5972, 49, 12233, 5333, 49, 4699, 1002, 499, 222, 842, 1931, 4596, 30341, 1503, 63, 303, 1547, 303, 1931, 4596, 471, 16538, 2060, 465, 1547, 465,...
[ "import", "Ġjson", "Ċ", "Ċ", "from", "Ġ.", "errors", "Ġimport", "ĠT", "orrent", "Not", "Valid", ",", "ĠT", "orrent", "Hash", "NotFound", ",", "ĠFailed", "Login", ",", "ĠHttp", "Exception", "ĊĊ", "Ċ", "class", "ĠQ", "Bit", "torrent", "Client", ":", "ĊĠĠĠ"...
[ 1, 1, 1, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 5, 6, 6, 6, 6, 6, 6, 6, 7, 7, 8, 8, 8, 8, 8, 8, 10, 10, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 13, 15, 15...
[ 1, 7, 12, 1, 1, 5, 7, 13, 20, 22, 28, 31, 36, 37, 39, 45, 49, 57, 58, 65, 70, 71, 76, 85, 1, 1, 6, 8, 11, 18, 24, 25, 4, 8, 4, 6, 9, 11, 15, 22, 4, 8, 4, 8, 11, 15, 18, 22, 23, 26, 36, 38, 8, 13, 14, 23, ...
360e661d8538a8f40b7546a54e9a9582fa64bd67
import numpy as np from sklearn.metrics import mutual_info_score def mimic_binary(max_iter=100, fitness_func=None, space=None): assert fitness_func is not None assert space is not None idx = np.random.permutation(np.arange(len(space))) pool = space[idx[: int(len(space) / 2)]] # randomly sample 50% o...
[ 485, 6610, 641, 2115, 222, 1097, 14415, 51, 8113, 1220, 4047, 1050, 100, 1357, 100, 5142, 499, 222, 610, 364, 37985, 100, 7038, 45, 1472, 100, 1751, 66, 54, 53, 53, 49, 34195, 100, 1316, 66, 2545, 49, 5153, 66, 2545, 731, 303, 121...
[ "import", "Ġnumpy", "Ġas", "Ġnp", "Ċ", "from", "Ġsklearn", ".", "metrics", "Ġimport", "Ġmut", "ual", "_", "info", "_", "score", "ĊĊ", "Ċ", "def", "Ġm", "imic", "_", "binary", "(", "max", "_", "iter", "=", "1", "0", "0", ",", "Ġfitness", "_", "func"...
[ 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 9, 9, 9, 9, 9, 9, 9...
[ 1, 7, 13, 16, 19, 1, 5, 13, 14, 21, 28, 32, 35, 36, 40, 41, 46, 1, 1, 4, 6, 10, 11, 17, 18, 21, 22, 26, 27, 28, 29, 30, 31, 39, 40, 44, 45, 49, 50, 56, 57, 61, 63, 4, 11, 19, 20, 24, 27, 31, 36, 4, 11, 17, 20...
f489058c922d405754ad32a737f67bc03c08772b
# Copyright 2018 dhtech # # Use of this source code is governed by a BSD-style # license that can be found in the LICENSE file import lib import urlparse import yaml MANIFEST_PATH = "/etc/manifest" HTTP_BASIC_AUTH = None def blackbox(name, backend, targets, params, target="target", path="/probe", labels=None): ...
[ 40, 2657, 244, 55, 53, 54, 61, 362, 403, 8165, 222, 40, 222, 40, 4443, 451, 477, 1932, 1361, 458, 17546, 829, 331, 11898, 50, 1639, 222, 40, 3553, 708, 902, 545, 2448, 347, 341, 7621, 822, 222, 485, 5053, 222, 485, 2001, 2228, 2...
[ "#", "ĠCopyright", "Ġ", "2", "0", "1", "8", "Ġd", "ht", "ech", "Ċ", "#", "Ċ", "#", "ĠUse", "Ġof", "Ġthis", "Ġsource", "Ġcode", "Ġis", "Ġgoverned", "Ġby", "Ġa", "ĠBSD", "-", "style", "Ċ", "#", "Ġlicense", "Ġthat", "Ġcan", "Ġbe", "Ġfound", "Ġin", "Ġt...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, ...
[ 1, 2, 12, 13, 14, 15, 16, 17, 19, 21, 24, 1, 2, 1, 2, 6, 9, 14, 21, 26, 29, 38, 41, 43, 47, 48, 53, 1, 2, 10, 15, 19, 22, 28, 31, 35, 43, 48, 1, 7, 11, 1, 7, 11, 16, 1, 7, 12, 1, 1, 4, 9, 10, 14, 16, 19, ...
5299f2c66fd287be667ecbe11b8470263eafab5c
import logging class ConsoleLogger: handlers = [(logging.StreamHandler, dict(), "[%(name)s]\t %(asctime)s [%(levelname)s] %(message)s ", logging.DEBUG)] def set_level(self, level): self.logger.setLevel(level) def debug(self, message): self.logger.debug(message) def info(self, messag...
[ 485, 5751, 499, 222, 842, 6497, 3716, 63, 303, 15089, 299, 10474, 7506, 51, 1880, 1985, 49, 5473, 1046, 7195, 42715, 444, 46, 120, 10850, 121, 18207, 321, 27760, 46, 120, 18010, 45, 2675, 444, 46, 120, 98, 18207, 1454, 46, 120, 3021...
[ "import", "Ġlogging", "ĊĊ", "Ċ", "class", "ĠConsole", "Logger", ":", "ĊĠĠĠ", "Ġhandlers", "Ġ=", "Ġ[(", "logging", ".", "Stream", "Handler", ",", "Ġdict", "(),", "Ġ\"[", "%(", "name", ")", "s", "]\\", "t", "Ġ%(", "as", "ctime", ")", "s", "Ġ[%", "(", "...
[ 1, 1, 1, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8...
[ 1, 7, 15, 1, 1, 6, 14, 20, 21, 4, 13, 15, 18, 25, 26, 32, 39, 40, 45, 48, 51, 53, 57, 58, 59, 61, 62, 65, 67, 72, 73, 74, 77, 78, 83, 87, 88, 89, 90, 93, 100, 101, 102, 105, 113, 114, 119, 121, 4, 8, 12, 13, 18, ...
e73e40a63b67ee1a6cca53a328af05e3eb3d8519
import pytest from debbiedowner import make_it_negative, complain_about def test_negativity(): assert make_it_negative(8) == -8 assert complain_about("enthusiasm") == "I hate enthusiasm. Totally boring." def test_easy(): assert 1 == 1 def test_cleverness(): assert make_it_negative(-3) == 3
[ 485, 13090, 222, 222, 1097, 428, 2901, 4850, 5645, 1220, 1949, 100, 302, 100, 15327, 49, 19132, 524, 100, 7476, 499, 222, 610, 913, 100, 8141, 43820, 2284, 303, 1217, 1949, 100, 302, 100, 15327, 45, 61, 46, 630, 449, 61, 303, 1217, ...
[ "import", "Ġpytest", "Ċ", "Ċ", "from", "Ġde", "bb", "ied", "owner", "Ġimport", "Ġmake", "_", "it", "_", "negative", ",", "Ġcompl", "ain", "_", "about", "ĊĊ", "Ċ", "def", "Ġtest", "_", "neg", "ativity", "():", "ĊĠĠĠ", "Ġassert", "Ġmake", "_", "it", "_...
[ 1, 1, 1, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 5, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8...
[ 1, 7, 14, 1, 1, 5, 8, 10, 13, 18, 25, 30, 31, 33, 34, 42, 43, 49, 52, 53, 58, 1, 1, 4, 9, 10, 13, 20, 23, 4, 11, 16, 17, 19, 20, 28, 29, 30, 31, 34, 36, 37, 4, 11, 17, 20, 21, 26, 28, 31, 34, 37, 38, 40, 43, ...
eeb87891d1a02484a61537745ec6f13387017929
import os import shutil import json from django.shortcuts import render, HttpResponse from django.utils.encoding import escape_uri_path from django.db import transaction from web_pan.settings import files_folder from disk import models # Create your views here. def logined(func): def wrapper(request, *args, **k...
[ 485, 2355, 222, 485, 23074, 222, 485, 2379, 222, 1097, 8532, 51, 36264, 1220, 2922, 49, 17857, 222, 1097, 8532, 51, 2324, 51, 8657, 1220, 15821, 100, 3469, 100, 1005, 222, 1097, 8532, 51, 1219, 1220, 6148, 222, 1097, 2692, 100, 7489, ...
[ "import", "Ġos", "Ċ", "import", "Ġshutil", "Ċ", "import", "Ġjson", "Ċ", "from", "Ġdjango", ".", "shortcuts", "Ġimport", "Ġrender", ",", "ĠHttpResponse", "Ċ", "from", "Ġdjango", ".", "utils", ".", "encoding", "Ġimport", "Ġescape", "_", "uri", "_", "path", "...
[ 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 10, 11, 11, 11, 11, 11, 11, 11, ...
[ 1, 7, 10, 1, 7, 14, 1, 7, 12, 1, 5, 12, 13, 22, 29, 36, 37, 50, 1, 5, 12, 13, 18, 19, 27, 34, 41, 42, 45, 46, 50, 1, 5, 12, 13, 15, 22, 34, 1, 5, 9, 10, 13, 14, 22, 29, 35, 36, 42, 1, 5, 10, 17, 24, 1, 1, ...
1b529d8bafc81ef4dd9ff355de6abbd6f4ebddf1
import logging from xdcs.app import xdcs logger = logging.getLogger(__name__) def asynchronous(func): def task(*args, **kwargs): try: func(*args, **kwargs) except Exception as e: logger.exception("Exception during asynchronous execution: " + str(e)) raise e ...
[ 485, 5751, 222, 222, 1097, 837, 105, 1766, 51, 745, 1220, 837, 105, 1766, 222, 222, 4089, 299, 5751, 51, 10588, 4077, 444, 8238, 499, 222, 610, 15307, 45, 1316, 731, 303, 684, 2918, 2761, 1150, 49, 1137, 5350, 731, 310, 1614, 63, ...
[ "import", "Ġlogging", "Ċ", "Ċ", "from", "Ġx", "d", "cs", ".", "app", "Ġimport", "Ġx", "d", "cs", "Ċ", "Ċ", "logger", "Ġ=", "Ġlogging", ".", "getLogger", "(__", "name", "__)", "ĊĊ", "Ċ", "def", "Ġasynchronous", "(", "func", "):", "ĊĠĠĠ", "Ġdef", "Ġtas...
[ 1, 1, 1, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 7, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 11, 11, 11, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 12, 13, 13,...
[ 1, 7, 15, 1, 1, 5, 7, 8, 10, 11, 14, 21, 23, 24, 26, 1, 1, 7, 9, 17, 18, 27, 30, 34, 37, 1, 1, 4, 17, 18, 22, 24, 4, 8, 13, 15, 19, 20, 23, 29, 31, 8, 12, 13, 12, 17, 19, 23, 24, 27, 33, 34, 8, 15, 25, 28, ...
cb48a1601798f72f9cf3759d3c13969bc824a0f6
from pyplasm import * import random as r def gen_windows(plan_grid, n, m, window_model): return STRUCT( [ T([1, 2])([j, i])(gen_cube_windows(plan_grid, window_model)(i, j, n, m)) for i in range(n) for j in range(m) if plan_grid[i][j] ] ) def ge...
[ 1097, 3643, 576, 7741, 1220, 338, 222, 485, 4051, 641, 559, 499, 222, 610, 4515, 100, 5921, 45, 5649, 100, 3393, 49, 329, 49, 364, 49, 3240, 100, 1184, 731, 303, 461, 9324, 7010, 45, 310, 447, 343, 413, 2034, 54, 49, 244, 55, 11...
[ "from", "Ġpy", "pl", "asm", "Ġimport", "Ġ*", "Ċ", "import", "Ġrandom", "Ġas", "Ġr", "ĊĊ", "Ċ", "def", "Ġgen", "_", "windows", "(", "plan", "_", "grid", ",", "Ġn", ",", "Ġm", ",", "Ġwindow", "_", "model", "):", "ĊĠĠĠ", "Ġreturn", "ĠSTR", "UCT", "(",...
[ 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8...
[ 1, 5, 8, 10, 13, 20, 22, 1, 7, 14, 17, 19, 1, 1, 4, 8, 9, 16, 17, 21, 22, 26, 27, 29, 30, 32, 33, 40, 41, 46, 48, 4, 11, 15, 18, 19, 8, 10, 12, 14, 16, 17, 18, 19, 20, 22, 24, 25, 26, 28, 30, 31, 34, 35, 39, ...
7d3355ee775f759412308ab68a7aa409b9c74b20
""" 使用random模块,如何产生 50~150之间的数? """ import random num1 = random.randint(50, 151) print(num1)
[ 3012, 222, 4707, 3917, 22753, 1140, 18813, 34495, 244, 58, 53, 131, 54, 58, 53, 42038, 2378, 9621, 222, 3012, 222, 222, 485, 4051, 222, 222, 1538, 54, 299, 4051, 51, 21732, 45, 58, 53, 49, 244, 54, 58, 54, 46, 222, 1243, 45, 153...
[ "\"\"\"", "Ċ", "使ç͍", "random", "模åĿĹ", "ï¼Į", "å¦Ĥä½ķ", "产çĶŁ", "Ġ", "5", "0", "~", "1", "5", "0", "ä¹ĭéĹ´çļĦ", "æķ°", "ï¼Ł", "Ċ", "\"\"\"", "Ċ", "Ċ", "import", "Ġrandom", "Ċ", "Ċ", "num", "1", "Ġ=", "Ġrandom", ".", "randint", "(", "5", "0"...
[ 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 4, 5, 5, 5, 6, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8 ]
[ 1, 4, 1, 3, 9, 11, 12, 14, 16, 17, 18, 19, 20, 21, 22, 23, 26, 27, 28, 1, 4, 1, 1, 7, 14, 1, 1, 4, 5, 7, 14, 15, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 1, 6, 7, 10, 11, 12 ]
7554b00f8c4d40f1d3ee2341f118048ca7ad10ea
import datetime class Event(object): def __init__(self): self.id = None self.raw = None self.create_dt = datetime.datetime.now() self.device_id = None self.collector_id = None self.device_hostname = None self.device_domain_name = None self.device_ip_...
[ 485, 7181, 499, 222, 842, 3916, 45, 1491, 731, 303, 684, 1176, 1683, 3232, 803, 731, 310, 649, 51, 333, 299, 1686, 310, 649, 51, 1312, 299, 1686, 310, 649, 51, 1315, 100, 2654, 299, 7181, 51, 6703, 51, 2192, 365, 310, 649, 51, 2...
[ "import", "Ġdatetime", "ĊĊ", "Ċ", "class", "ĠEvent", "(", "object", "):", "ĊĠĠĠ", "Ġdef", "Ġ__", "init", "__(", "self", "):", "ĊĠĠĠĠĠĠĠ", "Ġself", ".", "id", "Ġ=", "ĠNone", "ĊĠĠĠĠĠĠĠ", "Ġself", ".", "raw", "Ġ=", "ĠNone", "ĊĠĠĠĠĠĠĠ", "Ġself", ".", "create...
[ 1, 1, 1, 3, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 11, ...
[ 1, 7, 16, 1, 1, 6, 12, 13, 19, 21, 4, 8, 11, 15, 18, 22, 24, 8, 13, 14, 16, 18, 23, 8, 13, 14, 17, 19, 24, 8, 13, 14, 20, 21, 23, 25, 34, 35, 43, 44, 47, 49, 8, 13, 14, 20, 21, 23, 25, 30, 8, 13, 14, 23, 24, ...
f9db3c96bc3fd4911640d0428672c87072564b0d
"""Access IP Camera in Python OpenCV""" import cv2 # stream = cv2.VideoCapture('protocol://IP:port/1') # Use the next line if your camera has a username and password stream = cv2.VideoCapture("rtsp://SeniorDesign:1Hwe2Dxy@10.9.27.28:554/video") while True: r, f = stream.read() cv2.imshow("IP Camera stream",...
[ 3012, 2807, 4618, 15910, 347, 5006, 43490, 3012, 222, 222, 485, 6781, 55, 222, 222, 40, 3458, 299, 6781, 55, 51, 6086, 11882, 482, 5732, 574, 2046, 63, 644, 52, 54, 704, 222, 222, 40, 4443, 341, 2371, 1646, 434, 1390, 8630, 1421, ...
[ "\"\"\"", "Access", "ĠIP", "ĠCamera", "Ġin", "ĠPython", "ĠOpenCV", "\"\"\"", "Ċ", "Ċ", "import", "Ġcv", "2", "Ċ", "Ċ", "#", "Ġstream", "Ġ=", "Ġcv", "2", ".", "Video", "Capture", "('", "protocol", "://", "IP", ":", "port", "/", "1", "')", "Ċ", "Ċ", ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 3, 3, 3, 3, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8...
[ 1, 4, 10, 13, 20, 23, 30, 37, 40, 1, 1, 7, 10, 11, 1, 1, 2, 9, 11, 14, 15, 16, 21, 28, 30, 38, 41, 43, 44, 48, 49, 50, 52, 1, 1, 2, 6, 10, 15, 20, 23, 28, 35, 39, 41, 50, 54, 63, 1, 7, 9, 12, 13, 14, 19, 26...
7da2be1b530faa8ce9a8570247887e8e0d74c310
import pandas as pd # 1. 读入数据 # 从本地读入“wheat.csv”文件,指定index_col参数为00,即将第一列作为每行的索引。用head()函数查看前几行数据。 data = pd.read_csv("wheat.csv", index_col=0) print(data.head(6)) # 2. 缺失值处理 # 该数据集中包含部分缺失值,在模型训练时会遇到特征值为空的问题,故对缺失值进行处理, ## 用DataFrame的fillna方法进行缺失值填充,填充值为用mean方法得到的该列平均值。 data = data.fillna(data.mean()) print(data) # ...
[ 485, 13247, 641, 6451, 222, 222, 40, 244, 54, 51, 244, 13033, 5039, 4857, 222, 40, 34399, 25803, 13033, 5039, 7194, 124, 23429, 51, 4849, 4842, 6162, 1140, 10908, 1076, 100, 770, 8917, 3397, 53, 53, 1140, 12886, 6832, 26590, 6723, 213...
[ "import", "Ġpandas", "Ġas", "Ġpd", "Ċ", "Ċ", "#", "Ġ", "1", ".", "Ġ", "读", "åħ¥", "æķ°æį®", "Ċ", "#", "Ġä»İ", "æľ¬åľ°", "读", "åħ¥", "âĢľ", "w", "heat", ".", "csv", "âĢĿ", "æĸĩä»¶", "ï¼Į", "æĮĩå®ļ", "index", "_", "col", "åıĤæķ°", "为", "0", "...
[ 1, 1, 1, 1, 1, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5...
[ 1, 7, 14, 17, 20, 1, 1, 2, 3, 4, 5, 6, 7, 8, 10, 1, 2, 4, 6, 7, 8, 9, 10, 14, 15, 18, 19, 21, 22, 24, 29, 30, 33, 35, 36, 37, 38, 39, 40, 41, 43, 44, 46, 47, 48, 49, 51, 52, 53, 57, 59, 61, 63, 64, 65, 66, ...
7036ae5f74e6cb04518c20bb52122a1dfae76f23
import json from bokeh.plotting import figure, output_file from bokeh.io import show from bokeh.palettes import inferno from bokeh.models import ColumnDataSource, FactorRange from bokeh.transform import factor_cmap from bokeh.models import HoverTool # from bokeh.io import export_svgs def read_summary(summary_file): ...
[ 485, 2379, 222, 222, 1097, 2978, 36893, 51, 3570, 1073, 1220, 11038, 49, 1716, 100, 781, 222, 1097, 2978, 36893, 51, 735, 1220, 2539, 222, 1097, 2978, 36893, 51, 4554, 749, 1610, 1220, 21664, 1365, 222, 1097, 2978, 36893, 51, 3404, 12...
[ "import", "Ġjson", "Ċ", "Ċ", "from", "Ġbo", "keh", ".", "plot", "ting", "Ġimport", "Ġfigure", ",", "Ġoutput", "_", "file", "Ċ", "from", "Ġbo", "keh", ".", "io", "Ġimport", "Ġshow", "Ċ", "from", "Ġbo", "keh", ".", "pa", "let", "tes", "Ġimport", "Ġinfe...
[ 1, 1, 1, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8...
[ 1, 7, 12, 1, 1, 5, 8, 11, 12, 16, 20, 27, 34, 35, 42, 43, 47, 1, 5, 8, 11, 12, 14, 21, 26, 1, 5, 8, 11, 12, 14, 17, 20, 27, 33, 35, 1, 5, 8, 11, 12, 18, 25, 32, 42, 43, 50, 55, 1, 5, 8, 11, 12, 21, 28, 35, ...
5eb5388ffe7a7c880d8fcfaa137c2c9a133a0636
import wikipedia input_ = input("Type in your question ") print(wikipedia.summary(input_))
[ 485, 360, 30419, 222, 222, 1151, 100, 299, 1533, 459, 638, 347, 1390, 7013, 7816, 222, 1243, 45, 12464, 51, 1386, 45, 1151, 37430, 222 ]
[ "import", "Ġw", "ikipedia", "Ċ", "Ċ", "input", "_", "Ġ=", "Ġinput", "(\"", "Type", "Ġin", "Ġyour", "Ġquestion", "Ġ\")", "Ċ", "print", "(", "wikipedia", ".", "summary", "(", "input", "_))", "Ċ" ]
[ 1, 1, 1, 1, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4 ]
[ 1, 7, 9, 17, 1, 1, 6, 7, 9, 15, 17, 21, 24, 29, 38, 41, 1, 6, 7, 16, 17, 24, 25, 30, 33 ]
51540a80c7b29dc0bbb6342ee45008108d54b6f2
# -*- coding: utf-8 -*- import numpy as np def gauss_seidel(relax, est, stop): """ Método iterativo de Gauss-Seidel para o sistema linear do trabalho. Onde relax é o fator de relaxação, est é o valor inicial, stop é o critério de parada, n é a quantidade de linhas do sistema e k é o número de iter...
[ 40, 8571, 10633, 63, 6471, 50, 61, 8571, 222, 485, 6610, 641, 2115, 499, 222, 610, 14211, 7830, 100, 296, 41456, 45, 31658, 49, 3263, 49, 4739, 731, 303, 1547, 303, 507, 1329, 10445, 3881, 12286, 428, 21371, 7830, 50, 921, 41456, 39...
[ "#", "Ġ-*-", "Ġcoding", ":", "Ġutf", "-", "8", "Ġ-*-", "Ċ", "import", "Ġnumpy", "Ġas", "Ġnp", "ĊĊ", "Ċ", "def", "Ġga", "uss", "_", "se", "idel", "(", "relax", ",", "Ġest", ",", "Ġstop", "):", "ĊĠĠĠ", "Ġ\"\"\"", "ĊĠĠĠ", "ĠM", "é", "todo", "Ġiter", ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8...
[ 1, 2, 6, 13, 14, 18, 19, 20, 24, 1, 7, 13, 16, 19, 1, 1, 4, 7, 10, 11, 13, 17, 18, 23, 24, 28, 29, 34, 36, 4, 8, 4, 6, 7, 11, 16, 21, 24, 27, 30, 31, 33, 37, 42, 44, 52, 59, 62, 71, 72, 4, 7, 9, 15, 17, 19,...
0beb5c5c5db9247d66a5a49cfff7282ead52a9b7
#!/usr/bin/env python import h5py class HDF5_Parser(object): # noqa: N801 """ Examples -------- >>> import h5py >>> indata = h5py.File('test.hdf5') >>> dataset = indata.create_dataset("mydataset", (10,), dtype='i') >>> indata.close() >>> with open('test.hdf5') as f: ... da...
[ 8758, 3392, 52, 1793, 52, 2141, 4406, 222, 222, 485, 439, 58, 997, 499, 222, 842, 44585, 58, 100, 2837, 45, 1491, 731, 244, 607, 16390, 63, 508, 61, 53, 54, 303, 1547, 465, 15965, 303, 24603, 465, 8257, 1220, 439, 58, 997, 303, ...
[ "#!/", "usr", "/", "bin", "/", "env", "Ġpython", "Ċ", "Ċ", "import", "Ġh", "5", "py", "ĊĊ", "Ċ", "class", "ĠHDF", "5", "_", "Parser", "(", "object", "):", "Ġ", "Ġ#", "Ġnoqa", ":", "ĠN", "8", "0", "1", "ĊĠĠĠ", "Ġ\"\"\"", "ĊĊĠĠĠ", "ĠExamples", "ĊĠĠ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 2, 3, 3, 3, 3, 3, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 9, 9, 10, 10, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, ...
[ 1, 4, 7, 8, 11, 12, 15, 22, 1, 1, 7, 9, 10, 12, 1, 1, 6, 10, 11, 12, 18, 19, 25, 27, 28, 30, 35, 36, 38, 39, 40, 41, 4, 8, 4, 13, 4, 13, 4, 8, 15, 17, 18, 20, 4, 8, 11, 15, 17, 19, 20, 22, 23, 27, 29, 33, ...
93d4c6b6aef827d6746afc684c32a9cf1d0229e4
# 가위, 바위, 보 게임 # 컴퓨터 가위, 바위, 보 리스트에서 랜덤하게 뽑기 위해 random 함수 호출 import random # 컴퓨터 가위, 바위, 보 리스트 list_b = ["가위", "바위", "보"] # 이긴횟수, 진 횟수 카운팅 하기 위한 변수 person_win_count = 0 person_lose_count = 0 while person_win_count < 4 or person_lose_count < 4: # 가위, 바위, 보 입력 받기 player = input("가위, 바위, 보 중 어떤 것을 낼래요? ") ...
[ 40, 13745, 25364, 49, 33794, 25364, 49, 21155, 8918, 258, 36052, 499, 222, 40, 43863, 205, 265, 139, 10725, 13745, 25364, 49, 33794, 25364, 49, 21155, 32505, 25172, 11342, 1866, 276, 274, 19569, 135, 33865, 1866, 159, 263, 8244, 42011, ...
[ "#", "Ġê°Ģ", "ìľĦ", ",", "Ġë°Ķ", "ìľĦ", ",", "Ġë³´", "Ġê²", "Į", "ìŀĦ", "ĊĊ", "Ċ", "#", "Ġì»´", "í", "ĵ", "¨", "íĦ°", "Ġê°Ģ", "ìľĦ", ",", "Ġë°Ķ", "ìľĦ", ",", "Ġë³´", "Ġ리", "ìĬ¤íĬ¸", "ìĹIJìĦľ", "Ġë", "ŀ", "ľ", "ëį", "¤", "íķĺê²Į", "Ġë", "½", ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 6, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7...
[ 1, 2, 4, 5, 6, 8, 9, 10, 12, 13, 14, 15, 1, 1, 2, 4, 4, 4, 5, 6, 8, 9, 10, 12, 13, 14, 16, 18, 20, 22, 23, 23, 24, 24, 25, 27, 28, 28, 29, 30, 33, 40, 43, 46, 1, 7, 14, 1, 1, 2, 4, 4, 4, 5, 6, 8, 9, 10,...
d7d94cfed0b819297069c3434c70359a327403cd
from django.contrib import admin from . import models admin.site.register(models.Comentario) # Register your models here.
[ 1097, 8532, 51, 12060, 1220, 5611, 222, 1097, 657, 1220, 4590, 222, 222, 2317, 51, 2870, 51, 3334, 45, 3404, 51, 1251, 323, 3454, 46, 222, 222, 40, 7017, 1390, 4590, 2464, 51, 222 ]
[ "from", "Ġdjango", ".", "contrib", "Ġimport", "Ġadmin", "Ċ", "from", "Ġ.", "Ġimport", "Ġmodels", "Ċ", "Ċ", "admin", ".", "site", ".", "register", "(", "models", ".", "Com", "ent", "ario", ")", "Ċ", "Ċ", "#", "ĠRegister", "Ġyour", "Ġmodels", "Ġhere", "....
[ 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 6, 6, 6, 6, 6, 6, 6 ]
[ 1, 5, 12, 13, 20, 27, 33, 1, 5, 7, 14, 21, 1, 1, 6, 7, 11, 12, 20, 21, 27, 28, 31, 34, 38, 39, 1, 1, 2, 11, 16, 23, 28, 29 ]
32f9b5c32acbb6411fe6ab99616d8459acfd7c74
import os import pubmed_parser as pp nlpPath = "/Users/kapmayn/Desktop/nlp" articlesFolderPath = nlpPath + "/articles" abstractsFilePath = nlpPath + "/abstracts.txt" articlesFileNameList = os.listdir(articlesFolderPath) articlesFileNameList(reverse=True) resultFile = open(abstractsFilePath, "w") for fileName in arti...
[ 485, 2355, 222, 485, 2563, 1987, 100, 3936, 641, 12059, 222, 222, 26275, 1233, 299, 2450, 3715, 52, 25999, 17340, 115, 52, 13050, 52, 26275, 39, 222, 11510, 40937, 299, 329, 1935, 1233, 494, 2450, 11510, 39, 222, 9431, 120, 9141, 299,...
[ "import", "Ġos", "Ċ", "import", "Ġpub", "med", "_", "parser", "Ġas", "Ġpp", "Ċ", "Ċ", "nlp", "Path", "Ġ=", "Ġ\"/", "Users", "/", "kap", "may", "n", "/", "Desktop", "/", "nlp", "\"", "Ċ", "articles", "FolderPath", "Ġ=", "Ġn", "lp", "Path", "Ġ+", "Ġ\...
[ 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8...
[ 1, 7, 10, 1, 7, 11, 14, 15, 21, 24, 27, 1, 1, 4, 8, 10, 13, 18, 19, 22, 25, 26, 27, 34, 35, 38, 39, 1, 9, 19, 21, 23, 25, 29, 31, 34, 42, 43, 1, 9, 10, 18, 20, 22, 24, 28, 30, 33, 41, 42, 43, 46, 47, 1, 1, ...
373c102018fdcc5211263304c368c2e8beef3257
# -- coding: utf-8 -- from django.conf.urls import url from myapp.view import views from myapp.view import story from myapp.view import img # 添加 from myapp.view import login from myapp.view import tuling from myapp.view import utilView from myapp.view.wechat import wechat_modules from myapp.view import router urlpatt...
[ 40, 790, 10633, 63, 6471, 50, 61, 790, 222, 1097, 8532, 51, 2982, 51, 11420, 1220, 2001, 222, 1097, 1690, 745, 51, 1090, 1220, 11887, 222, 1097, 1690, 745, 51, 1090, 1220, 15246, 222, 1097, 1690, 745, 51, 1090, 1220, 4838, 244, 607,...
[ "#", "Ġ--", "Ġcoding", ":", "Ġutf", "-", "8", "Ġ--", "Ċ", "from", "Ġdjango", ".", "conf", ".", "urls", "Ġimport", "Ġurl", "Ċ", "from", "Ġmy", "app", ".", "view", "Ġimport", "Ġviews", "Ċ", "from", "Ġmy", "app", ".", "view", "Ġimport", "Ġstory", "Ċ", ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 8...
[ 1, 2, 5, 12, 13, 17, 18, 19, 22, 1, 5, 12, 13, 17, 18, 22, 29, 33, 1, 5, 8, 11, 12, 16, 23, 29, 1, 5, 8, 11, 12, 16, 23, 29, 1, 5, 8, 11, 12, 16, 23, 27, 28, 30, 33, 1, 5, 8, 11, 12, 16, 23, 29, 1, 5, 8, ...
622b388beb56eba85bbb08510c2bcea55f23da9a
data = " Ramya , Deepa,LIRIL ,amma, dad, Kiran, 12321 , Suresh, Jayesh, Ramesh,Balu" lst = data.split(",") for name in lst: name = name.strip().upper() rname = name[::-1] if name == rname: print(name) girlsdata = "Tanvi,Dhatri,Haadya,Deepthi,Deepa,Ramya" # Name which start with DEE get those name...
[ 624, 299, 332, 40860, 9491, 1737, 14795, 102, 49, 43232, 1484, 1737, 6867, 49, 362, 358, 49, 1242, 19211, 49, 244, 54, 55, 56, 55, 54, 1737, 33136, 635, 49, 990, 414, 5587, 49, 578, 340, 635, 49, 10352, 122, 39, 222, 222, 10015, ...
[ "data", "Ġ=", "Ġ\"", "ĠRam", "ya", "Ġ,", "ĠDeep", "a", ",", "LIR", "IL", "Ġ,", "amma", ",", "Ġd", "ad", ",", "ĠK", "iran", ",", "Ġ", "1", "2", "3", "2", "1", "Ġ,", "ĠSure", "sh", ",", "ĠJ", "ay", "esh", ",", "ĠR", "ame", "sh", ",", "Bal", ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 3, 3, 3, 3, 3, 3, 3, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6...
[ 1, 5, 7, 9, 13, 15, 17, 22, 23, 24, 27, 29, 31, 35, 36, 38, 40, 41, 43, 47, 48, 49, 50, 51, 52, 53, 54, 56, 61, 63, 64, 66, 68, 71, 72, 74, 77, 79, 80, 83, 84, 85, 1, 1, 4, 6, 11, 12, 17, 22, 1, 1, 4, 9, 12, ...
f3167d8f1a806c38fb10672605d8e94265d2fc9c
from database import db from database import ma from datetime import datetime from sqlalchemy import ForeignKeyConstraint from models.admin import Admin, admin_limited_schema from models.event_status import EventStatus, event_status_schema from models.org_unit import org_unit_schema class Event(db.Model): # class...
[ 1097, 3520, 1220, 3100, 222, 1097, 3520, 1220, 13016, 222, 1097, 7181, 1220, 7181, 222, 1097, 30936, 1220, 34028, 971, 9019, 222, 1097, 4590, 51, 2317, 1220, 9132, 49, 5611, 100, 17631, 100, 3982, 222, 1097, 4590, 51, 1585, 100, 1535, ...
[ "from", "Ġdatabase", "Ġimport", "Ġdb", "Ċ", "from", "Ġdatabase", "Ġimport", "Ġma", "Ċ", "from", "Ġdatetime", "Ġimport", "Ġdatetime", "Ċ", "from", "Ġsqlalchemy", "Ġimport", "ĠForeign", "Key", "Constraint", "Ċ", "from", "Ġmodels", ".", "admin", "Ġimport", "ĠAdmin"...
[ 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7...
[ 1, 5, 14, 21, 24, 1, 5, 14, 21, 24, 1, 5, 14, 21, 30, 1, 5, 16, 23, 31, 34, 44, 1, 5, 12, 13, 18, 25, 31, 32, 38, 39, 46, 47, 53, 1, 5, 12, 13, 18, 19, 25, 32, 38, 44, 45, 51, 52, 58, 59, 65, 1, 5, 12, 13, ...
a26cab29f0777764f014eeff13745be60e55b62d
import requests # try make the request try: r = requests.get("http://skitter.com") print(r) # see the results # catch a failue except (requests.ConnectionError, requests.Timeout) as x: pass
[ 485, 5188, 222, 222, 40, 1614, 1949, 341, 1343, 222, 1287, 63, 303, 559, 299, 5188, 51, 390, 459, 544, 574, 2009, 4473, 51, 527, 678, 303, 1489, 45, 119, 46, 244, 607, 2337, 341, 3300, 222, 222, 40, 2385, 331, 3562, 359, 222, 73...
[ "import", "Ġrequests", "Ċ", "Ċ", "#", "Ġtry", "Ġmake", "Ġthe", "Ġrequest", "Ċ", "try", ":", "ĊĠĠĠ", "Ġr", "Ġ=", "Ġrequests", ".", "get", "(\"", "http", "://", "sk", "itter", ".", "com", "\")", "ĊĠĠĠ", "Ġprint", "(", "r", ")", "Ġ", "Ġ#", "Ġsee", "Ġt...
[ 1, 1, 1, 2, 3, 3, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 10, 10 ]
[ 1, 7, 16, 1, 1, 2, 6, 11, 15, 23, 1, 4, 5, 4, 6, 8, 17, 18, 21, 23, 27, 30, 32, 37, 38, 41, 43, 4, 10, 11, 12, 13, 14, 16, 20, 24, 32, 1, 1, 2, 8, 10, 15, 17, 1, 7, 9, 17, 18, 28, 33, 34, 43, 44, 51, 52, ...
de77edaccdaada785f41828135ad2da4ae2b403e
from django.db import models from django.contrib.auth.models import User from django.db.models.signals import post_save from django.dispatch import receiver from django.core.mail import EmailMultiAlternatives from django.template import loader from django.conf import settings from django.contrib.sites.shortcuts import ...
[ 1097, 8532, 51, 1219, 1220, 4590, 222, 1097, 8532, 51, 12060, 51, 2408, 51, 3404, 1220, 2694, 222, 1097, 8532, 51, 1219, 51, 3404, 51, 28744, 1220, 2381, 100, 2882, 222, 1097, 8532, 51, 7154, 1220, 13570, 222, 1097, 8532, 51, 1284, ...
[ "from", "Ġdjango", ".", "db", "Ġimport", "Ġmodels", "Ċ", "from", "Ġdjango", ".", "contrib", ".", "auth", ".", "models", "Ġimport", "ĠUser", "Ċ", "from", "Ġdjango", ".", "db", ".", "models", ".", "signals", "Ġimport", "Ġpost", "_", "save", "Ċ", "from", ...
[ 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7...
[ 1, 5, 12, 13, 15, 22, 29, 1, 5, 12, 13, 20, 21, 25, 26, 32, 39, 44, 1, 5, 12, 13, 15, 16, 22, 23, 30, 37, 42, 43, 47, 1, 5, 12, 13, 21, 28, 37, 1, 5, 12, 13, 17, 18, 22, 29, 35, 40, 46, 52, 1, 5, 12, 13, 21, ...
c3efaeab600ec9a7a9fffdfad5c9dc1faad8fee7
try: from LoggerPlugin import LoggerPlugin except ImportError: from RTOC.LoggerPlugin import LoggerPlugin from .holdPeak_VC820.vc820py.vc820 import MultimeterMessage import serial import sys import traceback from PyQt5 import uic from PyQt5 import QtWidgets import logging as log log.basicConfig(level=log.INF...
[ 1287, 63, 303, 664, 7145, 4168, 1220, 7145, 4168, 222, 7364, 29994, 63, 303, 664, 578, 25773, 51, 3716, 4168, 1220, 7145, 4168, 222, 222, 1097, 657, 8208, 34418, 100, 8418, 61, 55, 53, 51, 4831, 61, 55, 53, 997, 51, 4831, 61, 55, ...
[ "try", ":", "ĊĠĠĠ", "Ġfrom", "ĠLogger", "Plugin", "Ġimport", "ĠLogger", "Plugin", "Ċ", "except", "ĠImportError", ":", "ĊĠĠĠ", "Ġfrom", "ĠR", "TOC", ".", "Logger", "Plugin", "Ġimport", "ĠLogger", "Plugin", "Ċ", "Ċ", "from", "Ġ.", "hold", "Peak", "_", "VC", ...
[ 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 8, 8, 8, 9, 9, 9, 10, 11, 11, 11,...
[ 1, 4, 5, 4, 9, 16, 22, 29, 36, 42, 1, 7, 19, 20, 4, 9, 11, 14, 15, 21, 27, 34, 41, 47, 1, 1, 5, 7, 11, 15, 16, 18, 19, 20, 21, 22, 24, 25, 26, 27, 29, 30, 32, 33, 34, 35, 42, 47, 53, 60, 1, 7, 14, 1, 7, 11,...
60b5e515c7275bfa0f79e22f54302a578c2f7b79
def find_happy_number(num): slow, fast = num, num while True: slow = find_square_sum(slow) # move one step fast = find_square_sum(find_square_sum(fast)) # move two steps if slow == fast: # found the cycle break return slow == 1 # see if the cycle is stuck on the numbe...
[ 610, 2309, 100, 39300, 100, 2188, 45, 1538, 731, 303, 12920, 49, 8160, 299, 1952, 49, 1952, 303, 2236, 2969, 63, 310, 12920, 299, 2309, 100, 9732, 100, 1055, 45, 20140, 46, 244, 607, 5187, 1611, 3138, 310, 8160, 299, 2309, 100, 9732...
[ "def", "Ġfind", "_", "happy", "_", "number", "(", "num", "):", "ĊĠĠĠ", "Ġslow", ",", "Ġfast", "Ġ=", "Ġnum", ",", "Ġnum", "ĊĠĠĠ", "Ġwhile", "ĠTrue", ":", "ĊĠĠĠĠĠĠĠ", "Ġslow", "Ġ=", "Ġfind", "_", "square", "_", "sum", "(", "slow", ")", "Ġ", "Ġ#", "Ġm...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6...
[ 1, 4, 9, 10, 15, 16, 22, 23, 26, 28, 4, 9, 10, 15, 17, 21, 22, 26, 4, 10, 15, 16, 8, 13, 15, 20, 21, 27, 28, 31, 32, 36, 37, 38, 40, 45, 49, 54, 8, 13, 15, 20, 21, 27, 28, 31, 32, 36, 37, 43, 44, 47, 48, 52, ...
af1a6c6009b21962228fbe737f27c22bf9460762
from gevent.event import Event from gevent.queue import Queue from ping_pong_chat.aio_queue import AGQueue received_event = Event() leave_rooms_event = Event() exit_event = Event() output_message_queue = AGQueue() input_message_queue = AGQueue() matrix_to_aio_queue = AGQueue() aio_to_matrix_queue = AGQueue() sync_to_...
[ 1097, 3244, 672, 51, 1585, 1220, 3916, 222, 1097, 3244, 672, 51, 3941, 1220, 14317, 222, 1097, 16993, 100, 117, 805, 100, 6184, 51, 30144, 100, 3941, 1220, 26630, 4098, 222, 222, 15642, 100, 1585, 299, 3916, 365, 222, 12898, 100, 2106...
[ "from", "Ġge", "vent", ".", "event", "Ġimport", "ĠEvent", "Ċ", "from", "Ġge", "vent", ".", "queue", "Ġimport", "ĠQueue", "Ċ", "from", "Ġping", "_", "p", "ong", "_", "chat", ".", "aio", "_", "queue", "Ġimport", "ĠAG", "Queue", "Ċ", "Ċ", "received", "_...
[ 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8...
[ 1, 5, 8, 12, 13, 18, 25, 31, 1, 5, 8, 12, 13, 18, 25, 31, 1, 5, 10, 11, 12, 15, 16, 20, 21, 24, 25, 30, 37, 40, 45, 1, 1, 9, 10, 15, 17, 23, 25, 1, 6, 7, 12, 13, 18, 20, 26, 28, 1, 5, 6, 11, 13, 19, 21, 1, ...
ed80f5f898548ca012779543051ccff5b34e4fcc
from django.shortcuts import render import requests from bs4 import BeautifulSoup import json from rest_framework.response import Response from rest_framework.decorators import api_view, authentication_classes, permission_classes from rest_framework import status from django.contrib.staticfiles.storage import staticfil...
[ 1097, 8532, 51, 36264, 1220, 2922, 222, 485, 5188, 222, 1097, 14270, 57, 1220, 39693, 222, 485, 2379, 222, 1097, 6125, 100, 2863, 51, 2003, 1220, 5178, 222, 1097, 6125, 100, 2863, 51, 28466, 1220, 4142, 100, 1090, 49, 9162, 100, 4844,...
[ "from", "Ġdjango", ".", "shortcuts", "Ġimport", "Ġrender", "Ċ", "import", "Ġrequests", "Ċ", "from", "Ġbs", "4", "Ġimport", "ĠBeautifulSoup", "Ċ", "import", "Ġjson", "Ċ", "from", "Ġrest", "_", "framework", ".", "response", "Ġimport", "ĠResponse", "Ċ", "from", ...
[ 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8...
[ 1, 5, 12, 13, 22, 29, 36, 1, 7, 16, 1, 5, 8, 9, 16, 30, 1, 7, 12, 1, 5, 10, 11, 20, 21, 29, 36, 45, 1, 5, 10, 11, 20, 21, 31, 38, 42, 43, 47, 48, 63, 64, 71, 72, 83, 84, 91, 1, 5, 10, 11, 20, 27, 34, 1, 5, ...
53fae0103168f4074ba0645c33e4640fcefdfc96
from urllib.error import URLError from urllib.request import urlopen from bs4 import BeautifulSoup import re import pymysql import ssl from pymysql import Error def decode_page(page_bytes, charsets=("utf-8",)): """通过指定的字符集对页面进行解码(不是每个网站都将字符集设置为utf-8)""" page_html = None for charset in charsets: tr...
[ 1097, 22296, 51, 750, 1220, 27997, 43158, 222, 1097, 22296, 51, 1375, 1220, 13387, 33875, 222, 1097, 14270, 57, 1220, 39693, 222, 485, 334, 222, 485, 317, 2225, 5547, 222, 485, 17763, 222, 1097, 317, 2225, 5547, 1220, 3099, 499, 222, ...
[ "from", "Ġurllib", ".", "error", "Ġimport", "ĠUR", "LError", "Ċ", "from", "Ġurllib", ".", "request", "Ġimport", "Ġur", "lopen", "Ċ", "from", "Ġbs", "4", "Ġimport", "ĠBeautifulSoup", "Ċ", "import", "Ġre", "Ċ", "import", "Ġp", "ym", "ysql", "Ċ", "import", ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10,...
[ 1, 5, 12, 13, 18, 25, 28, 34, 1, 5, 12, 13, 20, 27, 30, 35, 1, 5, 8, 9, 16, 30, 1, 7, 10, 1, 7, 9, 11, 15, 1, 7, 11, 1, 5, 7, 9, 13, 20, 26, 1, 1, 4, 11, 12, 16, 17, 21, 22, 27, 28, 33, 37, 38, 40, 43, 44...
45fcafdd30f890ddf5eaa090152fde2e2da4dbef
# 튜플(tuple) - 리스트와 구조가 비슷함 # 변경, 삭제 할 수 없다. t = ("코스모스", "민들레", "국화") print(t) print(t[:2]) print(t[1:]) # del t[0] - 삭제 안됨 # t[2] ="매화" - 수정 안됨 t2 = (1, 2, 3) t3 = (4,) # 1개 추가하기 (쉼표를 붙임) print(t2) print(t3) print(t2 + t3) # 요소 더하기
[ 40, 28058, 274, 35902, 45, 7304, 46, 449, 32505, 25172, 16868, 17475, 26379, 7153, 28672, 5875, 153, 25965, 222, 40, 41200, 49, 41350, 279, 14455, 29771, 9371, 23728, 3940, 51, 222, 222, 121, 299, 2903, 204, 20092, 8071, 32186, 8071, 41...
[ "#", "ĠíĬ", "ľ", "íĶĮ", "(", "tuple", ")", "Ġ-", "Ġ리", "ìĬ¤íĬ¸", "ìĻĢ", "Ġ구", "ì¡°", "ê°Ģ", "Ġë¹Ħ", "ìĬ", "·", "íķ¨", "Ċ", "#", "Ġë³Ģê²½", ",", "ĠìĤ", "Ń", "ìłľ", "Ġíķł", "ĠìĪĺ", "ĠìĹĨ", "ëĭ¤", ".", "Ċ", "Ċ", "t", "Ġ=", "Ġ(\"", "ì", "½Ķ", ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6...
[ 1, 2, 3, 4, 5, 6, 11, 12, 14, 16, 18, 19, 21, 22, 23, 25, 25, 26, 27, 1, 2, 5, 6, 7, 8, 9, 11, 13, 15, 16, 17, 1, 1, 2, 4, 7, 7, 8, 9, 10, 11, 13, 15, 15, 16, 17, 18, 20, 22, 23, 24, 26, 1, 6, 7, 8, 9, ...
73e7e43e9cfb3c0884480809bc03ade687d641d6
from os import wait import cv2 import numpy as np import math import sys import types import operator ## orb 및 bf matcher 선언 orb = cv2.cv2.ORB_create( nfeatures=5000, scaleFactor=1.2, nlevels=8, edgeThreshold=31, firstLevel=0, WTA_K=2, scoreType=cv2.ORB_FAST_SCORE, patchSize=31, fas...
[ 1097, 2355, 1220, 4483, 222, 485, 6781, 55, 222, 485, 6610, 641, 2115, 222, 485, 7820, 222, 485, 5263, 222, 485, 3756, 222, 485, 4156, 222, 222, 452, 575, 103, 30263, 32493, 20633, 27748, 43165, 222, 42326, 299, 6781, 55, 51, 4167, ...
[ "from", "Ġos", "Ġimport", "Ġwait", "Ċ", "import", "Ġcv", "2", "Ċ", "import", "Ġnumpy", "Ġas", "Ġnp", "Ċ", "import", "Ġmath", "Ċ", "import", "Ġsys", "Ċ", "import", "Ġtypes", "Ċ", "import", "Ġoperator", "Ċ", "Ċ", "##", "Ġor", "b", "Ġë°ı", "Ġbf", "Ġmatche...
[ 1, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 6, 6, 6, 7, 7, 7, 8, 9, 9, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 11, 11, 11, 11, ...
[ 1, 5, 8, 15, 20, 1, 7, 10, 11, 1, 7, 13, 16, 19, 1, 7, 12, 1, 7, 11, 1, 7, 13, 1, 7, 16, 1, 1, 3, 6, 7, 9, 12, 20, 22, 23, 1, 4, 6, 9, 10, 11, 13, 14, 15, 17, 18, 19, 25, 26, 4, 6, 14, 15, 16, 17, 18, 1...
d9538c030c0225c4255100da70d6bf23f550a64f
# -*- coding: utf-8 -*- ############################################################################## # # OpenERP, Open Source Management Solution # Copyright (C) 2011 NovaPoint Group LLC (<http://www.novapointgroup.com>) # Copyright (C) 2004-2010 OpenERP SA (<http://www.openerp.com>) # # This program is f...
[ 40, 8571, 10633, 63, 6471, 50, 61, 8571, 222, 19989, 14308, 222, 40, 222, 40, 283, 3944, 546, 85, 49, 3944, 6391, 13128, 12219, 222, 40, 283, 2657, 327, 72, 46, 244, 55, 53, 54, 54, 508, 11120, 1962, 7072, 21000, 11310, 544, 574, ...
[ "#", "Ġ-*-", "Ġcoding", ":", "Ġutf", "-", "8", "Ġ-*-", "Ċ", "########################################################################", "######", "Ċ", "#", "Ċ", "#", "ĠĠĠ", "ĠOpen", "ER", "P", ",", "ĠOpen", "ĠSource", "ĠManagement", "ĠSolution", "Ċ", "#", "ĠĠĠ", ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6...
[ 1, 2, 6, 13, 14, 18, 19, 20, 24, 1, 73, 79, 1, 2, 1, 2, 5, 10, 12, 13, 14, 19, 26, 37, 46, 1, 2, 5, 15, 17, 18, 19, 20, 21, 22, 23, 24, 26, 29, 34, 40, 44, 47, 51, 54, 57, 58, 61, 63, 67, 72, 73, 76, 78, 1, ...
4e8a5b0ba13921fb88d5d6371d50e7120ab01265
from metricsManager import MetricsManager def TestDrawGraphs(): manager = MetricsManager() manager.displayMetricsGraph() return def main(): TestDrawGraphs() if __name__ == "__main__": main()
[ 1097, 8681, 1590, 1220, 25867, 1590, 499, 222, 610, 2128, 2900, 43455, 2284, 303, 7886, 299, 25867, 1590, 365, 303, 7886, 51, 2784, 9509, 3418, 365, 303, 461, 499, 222, 610, 2594, 2284, 303, 2128, 2900, 43455, 365, 499, 222, 344, 1176...
[ "from", "Ġmetrics", "Manager", "Ġimport", "ĠMetrics", "Manager", "ĊĊ", "Ċ", "def", "ĠTest", "Draw", "Graphs", "():", "ĊĠĠĠ", "Ġmanager", "Ġ=", "ĠMetrics", "Manager", "()", "ĊĠĠĠ", "Ġmanager", ".", "display", "Metrics", "Graph", "()", "ĊĠĠĠ", "Ġreturn", "ĊĊ", ...
[ 1, 1, 1, 1, 1, 1, 1, 3, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 7, 7, 9, 10, 10, 10, 10, 11, 11, 11, 11, 11, 13, 14, 14, 14, 14, 14, 14, 14, 14, 14, 15, 15, 15 ]
[ 1, 5, 13, 20, 27, 35, 42, 1, 1, 4, 9, 13, 19, 22, 4, 12, 14, 22, 29, 31, 4, 12, 13, 20, 27, 32, 34, 4, 11, 1, 1, 4, 9, 12, 4, 9, 13, 19, 21, 1, 1, 3, 6, 10, 12, 15, 19, 23, 27, 4, 9, 11 ]
f1f708f00e05941c9a18a24b9a7556558583c3c7
TRAIN_INPUT_PATH = "~/Projects/competitions/titanic/data/train.csv" TEST_INPUT_PATH = "~/Projects/competitions/titanic/data/test.csv" OUTPUT_PATH = "output/" TRAIN_VAL_SPLIT = 0.75 RANDOM_SEED = 42 MODEL = "LOGISTIC_REGRESSION" LOG_PATH = "logs/"
[ 30845, 100, 10834, 100, 4088, 299, 46262, 10942, 52, 33888, 7628, 52, 17928, 297, 314, 52, 624, 52, 3441, 51, 4849, 39, 222, 3780, 100, 10834, 100, 4088, 299, 46262, 10942, 52, 33888, 7628, 52, 17928, 297, 314, 52, 624, 52, 881, 51,...
[ "TRAIN", "_", "INPUT", "_", "PATH", "Ġ=", "Ġ\"~/", "Projects", "/", "compet", "itions", "/", "tit", "an", "ic", "/", "data", "/", "train", ".", "csv", "\"", "Ċ", "TEST", "_", "INPUT", "_", "PATH", "Ġ=", "Ġ\"~/", "Projects", "/", "compet", "itions", ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4...
[ 1, 6, 7, 12, 13, 17, 19, 23, 31, 32, 38, 44, 45, 48, 50, 52, 53, 57, 58, 63, 64, 67, 68, 1, 5, 6, 11, 12, 16, 18, 22, 30, 31, 37, 43, 44, 47, 49, 51, 52, 56, 57, 61, 62, 65, 66, 1, 7, 8, 12, 14, 16, 22, 24, 1...
911631e96d21bdf22a219007f1bdc04a5e6965dc
__author__ = "Administrator" # 抓取IP的主要逻辑 from urllib import request import urllib.parse import logging from multiprocessing import pool from time import sleep import random from lxml import etree def getRandomUserAgnet(): user_agents = [ "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like...
[ 523, 2133, 523, 299, 332, 32181, 39, 222, 40, 29885, 265, 4798, 2046, 1096, 22980, 29150, 222, 1097, 22296, 1220, 1343, 222, 485, 22296, 51, 2228, 222, 485, 5751, 222, 1097, 43085, 1220, 6937, 222, 1097, 1153, 1220, 9375, 222, 485, 40...
[ "__", "author", "__", "Ġ=", "Ġ\"", "Administrator", "\"", "Ċ", "#", "ĠæĬ", "ĵ", "åıĸ", "IP", "çļĦ", "主è¦ģ", "éĢ»è¾ij", "Ċ", "from", "Ġurllib", "Ġimport", "Ġrequest", "Ċ", "import", "Ġurllib", ".", "parse", "Ċ", "import", "Ġlogging", "Ċ", "from", "Ġmulti...
[ 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 11, 12, 12, 12, 12, 12, 12, 12, 13, 13, 13, ...
[ 1, 3, 9, 11, 13, 15, 28, 29, 1, 2, 3, 4, 5, 7, 8, 10, 12, 1, 5, 12, 19, 27, 1, 7, 14, 15, 20, 1, 7, 15, 1, 5, 21, 28, 33, 1, 5, 10, 17, 23, 1, 7, 14, 1, 5, 7, 10, 17, 20, 23, 1, 1, 4, 14, 18, 20, 23, 26...
bc890f0f40a7e9c916628d491e473b5ecfa9bb9b
from random import random import numpy as np class TemperatureSensor: sensor_type = "temperature" unit = "celsius" instance_id = "283h62gsj" # initialisation def __init__(self, average_temperature, temperature_variation, min_temperature, max_temperature): self.average_temperature = aver...
[ 1097, 4051, 1220, 4051, 222, 222, 485, 6610, 641, 2115, 499, 222, 842, 33925, 11813, 63, 303, 11556, 100, 700, 299, 332, 17569, 39, 303, 4220, 299, 332, 3331, 120, 3279, 39, 303, 1998, 100, 333, 299, 332, 55, 61, 56, 109, 59, 55, ...
[ "from", "Ġrandom", "Ġimport", "Ġrandom", "Ċ", "Ċ", "import", "Ġnumpy", "Ġas", "Ġnp", "ĊĊ", "Ċ", "class", "ĠTemperature", "Sensor", ":", "ĊĠĠĠ", "Ġsensor", "_", "type", "Ġ=", "Ġ\"", "temperature", "\"", "ĊĠĠĠ", "Ġunit", "Ġ=", "Ġ\"", "cel", "s", "ius", "\"...
[ 1, 1, 1, 1, 1, 2, 3, 3, 3, 3, 3, 5, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 11, 11, 11, 11, 13, 13, 13, 13, 13, 13, 13, 13, 13, ...
[ 1, 5, 12, 19, 26, 1, 1, 7, 13, 16, 19, 1, 1, 6, 18, 24, 25, 4, 11, 12, 16, 18, 20, 31, 32, 4, 9, 11, 13, 16, 17, 20, 21, 4, 13, 14, 16, 18, 20, 21, 22, 23, 24, 25, 26, 28, 29, 30, 4, 6, 14, 21, 4, 8, 11, 15...
fe597ad4462b1af3f3f99346c759c5fa8a7c14f4
def check_ip_or_mask(temp_str): IPv4_regex = r"(?:[0-9]{1,3}\.){3}[0-9]{1,3}" temp_list_ip_mask = re.findall(IPv4_regex, temp_str) binary_temp_list_ip_mask = [] temp_binary_ip_mask = "" for x in range(len(temp_list_ip_mask)): split_ip_address = re.split(r"\.", temp_list_ip_mask[x]) f...
[ 610, 1524, 100, 658, 100, 290, 100, 3988, 45, 1452, 100, 484, 731, 303, 17405, 57, 100, 7927, 299, 559, 39, 18465, 96, 53, 50, 62, 8283, 54, 49, 56, 4127, 51, 1528, 56, 12904, 53, 50, 62, 8283, 54, 49, 56, 3864, 303, 1798, 100...
[ "def", "Ġcheck", "_", "ip", "_", "or", "_", "mask", "(", "temp", "_", "str", "):", "ĊĠĠĠ", "ĠIPv", "4", "_", "regex", "Ġ=", "Ġr", "\"", "(?:", "[", "0", "-", "9", "]{", "1", ",", "3", "}\\", ".", "){", "3", "}[", "0", "-", "9", "]{", "1",...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3...
[ 1, 4, 10, 11, 13, 14, 16, 17, 21, 22, 26, 27, 30, 32, 4, 8, 9, 10, 15, 17, 19, 20, 23, 24, 25, 26, 27, 29, 30, 31, 32, 34, 35, 37, 38, 40, 41, 42, 43, 45, 46, 47, 48, 50, 4, 9, 10, 14, 15, 17, 18, 22, 24, 27, ...
0528d7761cbbf3dbe881ff05b81060f3d97e7f6c
import collections import copy import threading import typing as tp from ..decorators.decorators import wraps from ..typing import K, V, T class Monitor: """ Base utility class for creating monitors (the synchronization thingies!) These are NOT re-entrant! Use it like that: >>> class MyProtec...
[ 485, 13722, 222, 485, 1948, 222, 485, 26311, 222, 485, 12018, 641, 12929, 222, 222, 1097, 4390, 28466, 51, 28466, 1220, 33839, 222, 222, 1097, 4390, 33481, 1220, 1242, 49, 694, 49, 413, 499, 222, 842, 16645, 63, 303, 1547, 303, 3787, ...
[ "import", "Ġcollections", "Ċ", "import", "Ġcopy", "Ċ", "import", "Ġthreading", "Ċ", "import", "Ġtyping", "Ġas", "Ġtp", "Ċ", "Ċ", "from", "Ġ..", "decorators", ".", "decorators", "Ġimport", "Ġwraps", "Ċ", "Ċ", "from", "Ġ..", "typing", "Ġimport", "ĠK", ",", "...
[ 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 4, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 10, 11, 11, 11, 11, 12, 12, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 15, 15, 15, 15...
[ 1, 7, 19, 1, 7, 12, 1, 7, 17, 1, 7, 14, 17, 20, 1, 1, 5, 8, 18, 19, 29, 36, 42, 1, 1, 5, 8, 14, 21, 23, 24, 26, 27, 29, 1, 1, 6, 14, 15, 4, 8, 4, 9, 17, 23, 27, 36, 44, 45, 47, 50, 66, 72, 75, 77, 4, 10, ...
8c336edddadbf4689721b474c254ded061ecf4b5
from . import scramsha1, scrammer
[ 1097, 657, 1220, 2240, 4344, 5578, 54, 49, 2240, 4344, 2322, 222 ]
[ "from", "Ġ.", "Ġimport", "Ġsc", "ram", "sha", "1", ",", "Ġsc", "ram", "mer", "Ċ" ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 5, 7, 14, 17, 20, 23, 24, 25, 28, 31, 34 ]
0fb288e3ab074e021ec726d71cbd5c8546a8455b
import shutil import tempfile import salt.runners.net as net from tests.support.mixins import LoaderModuleMockMixin from tests.support.mock import MagicMock from tests.support.runtests import RUNTIME_VARS from tests.support.unit import TestCase, skipIf @skipIf(not net.HAS_NAPALM, "napalm module required for this tes...
[ 485, 23074, 222, 485, 29651, 222, 222, 485, 17953, 51, 33732, 51, 1317, 641, 3723, 222, 1097, 3326, 51, 3608, 51, 38814, 1220, 12400, 2478, 3672, 13983, 222, 1097, 3326, 51, 3608, 51, 3628, 1220, 25839, 3672, 222, 1097, 3326, 51, 3608...
[ "import", "Ġshutil", "Ċ", "import", "Ġtempfile", "Ċ", "Ċ", "import", "Ġsalt", ".", "runners", ".", "net", "Ġas", "Ġnet", "Ċ", "from", "Ġtests", ".", "support", ".", "mixins", "Ġimport", "ĠLoader", "Module", "Mock", "Mixin", "Ċ", "from", "Ġtests", ".", "s...
[ 1, 1, 1, 2, 2, 2, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8...
[ 1, 7, 14, 1, 7, 16, 1, 1, 7, 12, 13, 20, 21, 24, 27, 31, 1, 5, 11, 12, 19, 20, 26, 33, 40, 46, 50, 55, 1, 5, 11, 12, 19, 20, 24, 31, 37, 41, 1, 5, 11, 12, 19, 20, 21, 24, 28, 35, 39, 43, 44, 48, 1, 5, 11, 1...
b12c8d0cb1cd1e48df6246fe3f16467b2db296e0
import sys def dir_slash(): slash = "/" if "win" in sys.platform: slash = "\\" return slash
[ 485, 5263, 499, 222, 610, 4937, 100, 16226, 2284, 303, 29626, 299, 13198, 303, 434, 332, 4481, 39, 347, 5263, 51, 5146, 63, 310, 29626, 299, 2724, 1508, 303, 461, 29626, 222 ]
[ "import", "Ġsys", "ĊĊ", "Ċ", "def", "Ġdir", "_", "slash", "():", "ĊĠĠĠ", "Ġslash", "Ġ=", "Ġ\"/\"", "ĊĠĠĠ", "Ġif", "Ġ\"", "win", "\"", "Ġin", "Ġsys", ".", "platform", ":", "ĊĠĠĠĠĠĠĠ", "Ġslash", "Ġ=", "Ġ\"\\", "\\\"", "ĊĠĠĠ", "Ġreturn", "Ġslash", "Ċ" ]
[ 1, 1, 1, 3, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 8, 8, 8 ]
[ 1, 7, 11, 1, 1, 4, 8, 9, 14, 17, 4, 10, 12, 16, 4, 7, 9, 12, 13, 16, 20, 21, 29, 30, 8, 14, 16, 19, 21, 4, 11, 17 ]
a09bc84a14718422894127a519d67dc0c6b13bc9
# n = int(input()) # s = input() n, m = map(int, input().split()) # s, t = input().split() # n, m, l = map(int, input().split()) # s, t, r = input().split() # a = map(int, input().split()) # a = input().split() a = [int(input()) for _ in range(n)] # a = [input() for _ in range(n)] # t = input() # m = int(input()) # p,...
[ 40, 329, 299, 648, 45, 1151, 1177, 222, 40, 328, 299, 1533, 365, 222, 115, 49, 364, 299, 2010, 45, 429, 49, 1533, 941, 3045, 1177, 222, 40, 328, 49, 292, 299, 1533, 941, 3045, 365, 222, 40, 329, 49, 364, 49, 475, 299, 2010, 45...
[ "#", "Ġn", "Ġ=", "Ġint", "(", "input", "())", "Ċ", "#", "Ġs", "Ġ=", "Ġinput", "()", "Ċ", "n", ",", "Ġm", "Ġ=", "Ġmap", "(", "int", ",", "Ġinput", "().", "split", "())", "Ċ", "#", "Ġs", ",", "Ġt", "Ġ=", "Ġinput", "().", "split", "()", "Ċ", "#"...
[ 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6...
[ 1, 2, 4, 6, 10, 11, 16, 19, 1, 2, 4, 6, 12, 14, 1, 2, 3, 5, 7, 11, 12, 15, 16, 22, 25, 30, 33, 1, 2, 4, 5, 7, 9, 15, 18, 23, 25, 1, 2, 4, 5, 7, 8, 10, 12, 16, 17, 20, 21, 27, 30, 35, 38, 1, 2, 4, 5, 7, ...
330b843501e0fdaff21cc4eff1ef930d54ab6e8d
""" Temperature Container """ class TempHolder: range_start = 0 range_end = 0 star_count_lst = [0, 0, 0, 0, 0, 0] counter = 0 def __init__(self, in_range_start, in_range_end): self.range_start = in_range_start self.range_end = in_range_end self.counter = 0 self.st...
[ 3012, 222, 19417, 9103, 222, 3012, 499, 222, 842, 5979, 6773, 63, 303, 2189, 100, 1384, 299, 244, 53, 303, 2189, 100, 435, 299, 244, 53, 465, 12922, 100, 1016, 100, 10015, 299, 447, 53, 49, 244, 53, 49, 244, 53, 49, 244, 53, 49,...
[ "\"\"\"", "Ċ", "Temperature", "ĠContainer", "Ċ", "\"\"\"", "ĊĊ", "Ċ", "class", "ĠTemp", "Holder", ":", "ĊĠĠĠ", "Ġrange", "_", "start", "Ġ=", "Ġ", "0", "ĊĠĠĠ", "Ġrange", "_", "end", "Ġ=", "Ġ", "0", "ĊĊĠĠĠ", "Ġstar", "_", "count", "_", "lst", "Ġ=", "Ġ[...
[ 1, 1, 2, 2, 2, 3, 3, 5, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 8, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 1...
[ 1, 4, 1, 12, 22, 1, 4, 1, 1, 6, 11, 17, 18, 4, 10, 11, 16, 18, 19, 20, 4, 10, 11, 14, 16, 17, 18, 4, 9, 10, 15, 16, 19, 21, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 4, 12, 14, ...
28d8f9d9b39c40c43a362e57a7907c0a38a6bd05
""" Platformer Game """ import arcade import os from Toad_arcade import Toad # Constants SCREEN_WIDTH = 1920 SCREEN_HEIGHT = 1080 SCREEN_TITLE = "PyToads - Battletoads reimplementation" # Constants used to scale our sprites from their original size CHARACTER_SCALING = 1 TILE_SCALING = 0.5 COIN_SCALING = 0.5 MOVEMENT...
[ 3012, 222, 6851, 284, 6067, 222, 3012, 222, 222, 485, 2119, 9017, 222, 485, 2355, 222, 1097, 2634, 358, 100, 301, 9017, 1220, 2634, 358, 222, 222, 40, 14072, 222, 19900, 100, 10582, 299, 244, 54, 62, 55, 53, 222, 19900, 100, 15000, ...
[ "\"\"\"", "Ċ", "Platform", "er", "ĠGame", "Ċ", "\"\"\"", "Ċ", "Ċ", "import", "Ġar", "cade", "Ċ", "import", "Ġos", "Ċ", "from", "ĠTo", "ad", "_", "ar", "cade", "Ġimport", "ĠTo", "ad", "Ċ", "Ċ", "#", "ĠConstants", "Ċ", "SCREEN", "_", "WIDTH", "Ġ=", "...
[ 1, 1, 2, 2, 2, 2, 3, 3, 4, 5, 5, 5, 5, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 8, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 12, 12, 12, ...
[ 1, 4, 1, 9, 11, 16, 1, 4, 1, 1, 7, 10, 14, 1, 7, 10, 1, 5, 8, 10, 11, 13, 17, 24, 27, 29, 1, 1, 2, 12, 1, 7, 8, 13, 15, 16, 17, 18, 19, 20, 1, 7, 8, 14, 16, 17, 18, 19, 20, 21, 1, 7, 8, 13, 15, 17, 19, ...
b51591de921f6e153c1dd478cec7fad42ff4251a
from flask import request, Flask import ldap3 app = Flask(__name__) @app.route("/normal") def normal(): """ A RemoteFlowSource is used directly as DN and search filter """ unsafe_dc = request.args["dc"] unsafe_filter = request.args["username"] dn = "dc={}".format(unsafe_dc) search_filte...
[ 1097, 18958, 1220, 1343, 49, 24033, 222, 485, 33912, 56, 222, 222, 745, 299, 24033, 4077, 444, 8238, 499, 222, 69, 745, 51, 4363, 4229, 4434, 678, 222, 610, 4330, 2284, 303, 1547, 303, 418, 13598, 4078, 2044, 458, 1674, 7045, 641, 4...
[ "from", "Ġflask", "Ġimport", "Ġrequest", ",", "ĠFlask", "Ċ", "import", "Ġldap", "3", "Ċ", "Ċ", "app", "Ġ=", "ĠFlask", "(__", "name", "__)", "ĊĊ", "Ċ", "@", "app", ".", "route", "(\"/", "normal", "\")", "Ċ", "def", "Ġnormal", "():", "ĊĠĠĠ", "Ġ\"\"\"", ...
[ 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 3, 4, 4, 4, 4, 4, 4, 4, 6, 7, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 13, 13, 13, 13, 13, 13, 13, 13, 13...
[ 1, 5, 11, 18, 26, 27, 33, 1, 7, 12, 13, 1, 1, 4, 6, 12, 15, 19, 22, 1, 1, 2, 5, 6, 11, 14, 20, 22, 1, 4, 11, 14, 4, 8, 4, 6, 13, 17, 23, 26, 31, 40, 43, 45, 46, 50, 57, 64, 4, 8, 4, 11, 12, 14, 16, 24, 25...
555f4e41661ff4cbf4b9d72feab41ca8b7da2d5f
# -*- coding: utf-8 -*- """ Created on Sun Jan 28 12:54:27 2018 @author: Alex """ import numpy as np def saveListToCSV(filepath, _list): with open(filepath, "ab") as f: np.savetxt(f, [_list], delimiter=",", fmt="%f")
[ 40, 8571, 10633, 63, 6471, 50, 61, 8571, 222, 3012, 222, 6880, 563, 21437, 14336, 244, 55, 61, 244, 54, 55, 63, 58, 57, 63, 55, 60, 244, 55, 53, 54, 61, 222, 222, 69, 2133, 63, 21199, 222, 3012, 222, 222, 485, 6610, 641, 2115,...
[ "#", "Ġ-*-", "Ġcoding", ":", "Ġutf", "-", "8", "Ġ-*-", "Ċ", "\"\"\"", "Ċ", "Created", "Ġon", "ĠSun", "ĠJan", "Ġ", "2", "8", "Ġ", "1", "2", ":", "5", "4", ":", "2", "7", "Ġ", "2", "0", "1", "8", "Ċ", "Ċ", "@", "author", ":", "ĠAlex", "Ċ", ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 5, 5, 5, 5, 5, 6, 6, 7, 8, 8, 8, 8, 8, 10, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 12,...
[ 1, 2, 6, 13, 14, 18, 19, 20, 24, 1, 4, 1, 8, 11, 15, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 1, 1, 2, 8, 9, 14, 1, 4, 1, 1, 7, 13, 16, 19, 1, 1, 4, 9, 13, 15, 18, 19, 27, 2...
81f5753e8d0004244b4ee8e26895cb2b38fbb8b6
# coding=utf-8 import shutil import zipfile # shutil.copyfile("file03.txt","file05.txt") #拷贝 # shutil.copytree("movie/大陆","电影") #拷贝文件夹 # 忽略不需要拷贝的文件 # shutil.copytree("movie/大陆","电影",ignore=shutil.ignore_patterns("*.txt","*.html")) # 压缩和解压缩 # shutil.make_archive("电影/压缩","zip","movie/大陆") z1 = zipfile.ZipFile("...
[ 40, 10633, 66, 3330, 50, 61, 222, 222, 485, 23074, 222, 485, 8617, 781, 222, 40, 23074, 51, 3014, 781, 459, 781, 53, 56, 51, 2787, 1479, 781, 53, 58, 51, 2787, 678, 244, 607, 5678, 153, 46241, 222, 222, 40, 23074, 51, 3014, 3266...
[ "#", "Ġcoding", "=", "utf", "-", "8", "Ċ", "Ċ", "import", "Ġshutil", "Ċ", "import", "Ġzip", "file", "Ċ", "#", "Ġshutil", ".", "copy", "file", "(\"", "file", "0", "3", ".", "txt", "\",\"", "file", "0", "5", ".", "txt", "\")", "Ġ", "Ġ#", "æĭ", "·...
[ 1, 1, 1, 1, 1, 1, 1, 2, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 8, 9, 9...
[ 1, 2, 9, 10, 13, 14, 15, 1, 1, 7, 14, 1, 7, 11, 15, 1, 2, 9, 10, 14, 18, 20, 24, 25, 26, 27, 30, 33, 37, 38, 39, 40, 43, 45, 46, 48, 48, 49, 50, 1, 1, 2, 9, 10, 14, 18, 20, 25, 26, 27, 28, 31, 32, 33, 35, 3...
ea2e9399a8384600d8457a9de3f263db44dc883d
import pandas as pd # 데이터 로드 train_data = pd.read_csv("./dataset/train_park_daycare.csv") cctv = pd.read_csv("./dataset/cctv_origin.csv", encoding="EUC-KR") ## 데이터 전처리 # 데이터 추출 cctv = cctv.iloc[1:, :2] # 구 매핑 gu_dict_num = { "용산구": 0, "양천구": 1, "강동구": 2, "관악구": 3, "노원구": 4, "영등포": 5, "영등포...
[ 485, 13247, 641, 6451, 222, 222, 40, 19209, 33935, 10603, 222, 3441, 100, 624, 299, 6451, 51, 870, 100, 4849, 12031, 5709, 52, 3441, 100, 8436, 100, 3386, 12818, 51, 4849, 678, 222, 104, 307, 123, 299, 6451, 51, 870, 100, 4849, 1203...
[ "import", "Ġpandas", "Ġas", "Ġpd", "Ċ", "Ċ", "#", "Ġëį°ìĿ´íĦ°", "Ġë¡ľ", "ëĵľ", "Ċ", "train", "_", "data", "Ġ=", "Ġpd", ".", "read", "_", "csv", "(\"./", "dataset", "/", "train", "_", "park", "_", "day", "care", ".", "csv", "\")", "Ċ", "c", "ct", ...
[ 1, 1, 1, 1, 1, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 7, 7...
[ 1, 7, 14, 17, 20, 1, 1, 2, 6, 8, 9, 1, 6, 7, 11, 13, 16, 17, 21, 22, 25, 29, 36, 37, 42, 43, 47, 48, 51, 55, 56, 59, 61, 1, 2, 4, 5, 7, 10, 11, 15, 16, 19, 23, 30, 31, 32, 34, 35, 36, 42, 43, 46, 48, 57, 59...
86d42716e05155f9e659b22c42635a8f5b8c4a60
import tensorflow as tf from typing import Optional, Tuple, Union, Callable _data_augmentation = tf.keras.Sequential( [ tf.keras.layers.experimental.preprocessing.RandomFlip("horizontal"), tf.keras.layers.experimental.preprocessing.RandomRotation(0.2), ] ) def _freeze_model( model: tf.ker...
[ 485, 15196, 641, 5369, 222, 1097, 12018, 1220, 5663, 49, 11724, 49, 16546, 49, 27052, 222, 222, 100, 624, 100, 34650, 387, 299, 5369, 51, 16350, 51, 17399, 45, 303, 447, 310, 5369, 51, 16350, 51, 8367, 51, 19782, 51, 34334, 51, 6124...
[ "import", "Ġtensorflow", "Ġas", "Ġtf", "Ċ", "from", "Ġtyping", "Ġimport", "ĠOptional", ",", "ĠTuple", ",", "ĠUnion", ",", "ĠCallable", "Ċ", "Ċ", "_", "data", "_", "augment", "ation", "Ġ=", "Ġtf", ".", "keras", ".", "Sequential", "(", "ĊĠĠĠ", "Ġ[", "ĊĠĠĠĠ...
[ 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7...
[ 1, 7, 18, 21, 24, 1, 5, 12, 19, 28, 29, 35, 36, 42, 43, 52, 1, 1, 2, 6, 7, 14, 19, 21, 24, 25, 30, 31, 41, 42, 4, 6, 8, 11, 12, 17, 18, 24, 25, 37, 38, 51, 52, 58, 62, 64, 74, 77, 8, 11, 12, 17, 18, 24, 25, ...
cac9d84f20a79b115c84ff4fe8cf4640182a42d7
"""Those things that are core to tests. This module provides the most fundamental test entities, which include such things as: - Tests - Suites - Test states """ from __future__ import print_function __docformat__ = "restructuredtext" import os import textwrap import time import weakref import inspect from cleve...
[ 3012, 1047, 2500, 6397, 708, 904, 5305, 391, 3326, 51, 222, 222, 2287, 2313, 7388, 341, 4665, 40344, 913, 11762, 49, 1532, 2323, 3774, 222, 28106, 641, 63, 222, 222, 50, 11399, 222, 50, 39933, 4160, 222, 50, 2128, 10134, 222, 222, 3...
[ "\"\"\"", "Th", "ose", "Ġthings", "Ġthat", "Ġare", "Ġcore", "Ġto", "Ġtests", ".", "Ċ", "Ċ", "This", "Ġmodule", "Ġprovides", "Ġthe", "Ġmost", "Ġfundamental", "Ġtest", "Ġentities", ",", "Ġwhich", "Ġinclude", "Ġsuch", "Ċ", "things", "Ġas", ":", "Ċ", "Ċ", "-",...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 6, 6, 6, 7, 7, 7, 7, 8, 8, 8, 8, 9, 10, 10, 11, 12, 12, 12, 12, 12, 12, 12, 12, 12, 13, 14, 14, 14, 14, 14, ...
[ 1, 4, 6, 9, 16, 21, 25, 30, 33, 39, 40, 1, 1, 5, 12, 21, 25, 30, 42, 47, 56, 57, 63, 71, 76, 1, 7, 10, 11, 1, 1, 2, 8, 1, 2, 5, 9, 1, 2, 7, 14, 1, 1, 4, 1, 1, 5, 8, 14, 16, 23, 29, 30, 38, 1, 1, 3, 6, ...
7b1c7228c1fc9501ab857cba62a7e073691e75c9
""" @Description: @Author : HCQ @Contact_1: 1756260160@qq.com @Project : pytorch @File : call_test @Time : 2022/5/24 下午10:19 @Last Modify Time @Version @Desciption -------------------- -------- ----------- 2022/5/24 下午10:19 1.0 None """ class Person: def __call_...
[ 3012, 222, 69, 3250, 63, 222, 69, 4372, 280, 518, 696, 20748, 222, 69, 5883, 100, 54, 63, 244, 54, 60, 58, 59, 55, 59, 53, 54, 59, 53, 69, 10903, 51, 527, 222, 69, 3214, 244, 518, 38165, 222, 69, 991, 281, 518, 1495, 100, 88...
[ "\"\"\"", "Ċ", "@", "Description", ":", "Ċ", "@", "Author", "ĠĠ", "Ġ:", "ĠH", "CQ", "Ċ", "@", "Contact", "_", "1", ":", "Ġ", "1", "7", "5", "6", "2", "6", "0", "1", "6", "0", "@", "qq", ".", "com", "Ċ", "@", "Project", "Ġ", "Ġ:", "Ġpytorch"...
[ 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7...
[ 1, 4, 1, 2, 13, 14, 1, 2, 8, 10, 12, 14, 16, 1, 2, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 26, 27, 30, 1, 2, 9, 10, 12, 20, 1, 2, 6, 10, 12, 17, 18, 22, 1, 2, 6, 10, 12, 13, 14, 15, ...
6a7e5a78f516cecf083ca3900bdaaf427bedd497
# -*- coding: utf-8 -*- """ Created on Tue May 22 15:01:21 2018 @author: Weiyu_Lee """ import numpy as np import pandas as pd import pickle import matplotlib.pyplot as plt from datetime import datetime, timedelta import config as conf def get_stock_time_series(data_df, stock_id): curr_ID_data = data_df.loc[sto...
[ 40, 8571, 10633, 63, 6471, 50, 61, 8571, 222, 3012, 222, 6880, 563, 18555, 10712, 244, 55, 55, 244, 54, 58, 63, 53, 54, 63, 55, 54, 244, 55, 53, 54, 61, 222, 222, 69, 2133, 63, 2726, 16120, 122, 100, 81, 1310, 222, 3012, 222, ...
[ "#", "Ġ-*-", "Ġcoding", ":", "Ġutf", "-", "8", "Ġ-*-", "Ċ", "\"\"\"", "Ċ", "Created", "Ġon", "ĠTue", "ĠMay", "Ġ", "2", "2", "Ġ", "1", "5", ":", "0", "1", ":", "2", "1", "Ġ", "2", "0", "1", "8", "Ċ", "Ċ", "@", "author", ":", "ĠWe", "iy", "...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 7, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 10, 10, 10, 11, 11, 1...
[ 1, 2, 6, 13, 14, 18, 19, 20, 24, 1, 4, 1, 8, 11, 15, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 1, 1, 2, 8, 9, 12, 14, 15, 16, 17, 19, 1, 4, 1, 1, 7, 13, 16, 19, 1, 7, 14, 17, ...
5a33aeffa740a41bd0bd1d80f45796ae37377a4c
from django.contrib.postgres.fields import JSONField from django.db import models from core.utils.time import get_now class BaseManager(models.Manager): """ Our basic manager is used to order all child models of AbstractLayer by created time (descending), therefore it creates a LIFO order, causing th...
[ 1097, 8532, 51, 12060, 51, 12254, 51, 4169, 1220, 3411, 1195, 222, 1097, 8532, 51, 1219, 1220, 4590, 222, 222, 1097, 5305, 51, 2324, 51, 1021, 1220, 640, 100, 2192, 499, 222, 842, 3787, 1590, 45, 3404, 51, 1590, 731, 303, 1547, 303,...
[ "from", "Ġdjango", ".", "contrib", ".", "postgres", ".", "fields", "Ġimport", "ĠJSON", "Field", "Ċ", "from", "Ġdjango", ".", "db", "Ġimport", "Ġmodels", "Ċ", "Ċ", "from", "Ġcore", ".", "utils", ".", "time", "Ġimport", "Ġget", "_", "now", "ĊĊ", "Ċ", "cl...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 6, 7, 7, 7, 7, 7, 7, 7, 7, 7, 8, 8, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 1...
[ 1, 5, 12, 13, 20, 21, 29, 30, 36, 43, 48, 53, 1, 5, 12, 13, 15, 22, 29, 1, 1, 5, 10, 11, 16, 17, 21, 28, 32, 33, 36, 1, 1, 6, 11, 18, 19, 25, 26, 33, 35, 4, 8, 4, 8, 14, 22, 25, 30, 33, 39, 43, 49, 56, 59, ...
5cfd7744f98c80483cb4dd318c17a7cd83ed3ae3
""" Given an array of integers, 1 ≤ a[i] ≤ n (n = size of array), some elements appear twice and others appear once. Find all the elements that appear twice in this array. Could you do it without extra space and in O(n) runtime? Example: Input: [4,3,2,7,8,2,3,1] Output: [2,3] """ # O(n) TC and SC class Solution: ...
[ 3012, 222, 16634, 619, 1437, 451, 18789, 49, 244, 54, 21453, 135, 331, 96, 110, 98, 21453, 135, 329, 327, 115, 299, 1354, 451, 1437, 490, 1649, 4725, 9268, 19487, 480, 10739, 9268, 5065, 51, 222, 4882, 1187, 341, 4725, 708, 9268, 19...
[ "\"\"\"", "Ċ", "Given", "Ġan", "Ġarray", "Ġof", "Ġintegers", ",", "Ġ", "1", "Ġâī", "¤", "Ġa", "[", "i", "]", "Ġâī", "¤", "Ġn", "Ġ(", "n", "Ġ=", "Ġsize", "Ġof", "Ġarray", "),", "Ġsome", "Ġelements", "Ġappear", "Ġtwice", "Ġand", "Ġothers", "Ġappear", "...
[ 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4...
[ 1, 4, 1, 6, 9, 15, 18, 27, 28, 29, 30, 31, 32, 34, 35, 36, 37, 38, 39, 41, 43, 44, 46, 51, 54, 60, 62, 67, 76, 83, 89, 93, 100, 107, 112, 113, 1, 5, 9, 13, 22, 27, 34, 40, 43, 48, 54, 55, 1, 6, 10, 13, 16, 24, ...
cfa862988edf9d70aa5e975cca58b4e61a4de847
""" USAGE: o install in develop mode: navigate to the folder containing this file, and type 'python setup.py develop --user'. (ommit '--user' if you want to install for all users) """ from setuptools import setup setup( ...
[ 3012, 222, 25934, 63, 682, 356, 2462, 347, 10245, 2945, 63, 19196, 391, 341, 4865, 6663, 477, 822, 49, 4997, 480, 847, 349, 2980, 4721, 51, 997, 10245, 790, 514, 2503, 4997, 327, 437, 930, 11418, 514, 44, 434, 863, 2660, 391, 2462, ...
[ "\"\"\"", "Ċ", "USAGE", ":", "ĊĠĠ", "Ġo", "Ġinstall", "Ġin", "Ġdevelop", "Ġmode", ":", "Ġnavigate", "Ġto", "Ġthe", "Ġfolder", "Ġcontaining", "Ġthis", "Ġfile", ",", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġand", "Ġtype", "Ġ'", "python", "Ġsetup", ".", "py", "Ġdevelop"...
[ 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 8, 9, 9, 9, 9, 9, 10, 11, 11, 11, 12, 1...
[ 1, 4, 1, 6, 7, 3, 5, 13, 16, 24, 29, 30, 39, 42, 46, 53, 64, 69, 74, 75, 30, 34, 39, 41, 47, 53, 54, 56, 64, 67, 71, 73, 30, 32, 34, 37, 41, 45, 46, 49, 53, 58, 61, 69, 73, 31, 35, 41, 42, 1, 4, 1, 1, 5, 16, ...
7b9660bba6fcb8c725251971f3733a1cc915c0e7
""" Rectangles: Compute overlapping region of two rectangles. Point(x: number, y: number): Cartesian coordinate pair Rect(ll: Point, ur: Point): A rectangle defined by lower left and upper right coordinates Rect.overlaps(other: Rect) -> boolean: True if non-empty overlap Rect.intersect(other: Rect...
[ 3012, 222, 4377, 13330, 63, 244, 12923, 40075, 6727, 451, 3161, 7597, 13330, 51, 353, 6460, 45, 125, 63, 1470, 49, 553, 63, 1470, 731, 244, 18978, 18314, 12676, 6120, 353, 11015, 45, 629, 63, 6460, 49, 13387, 63, 6460, 731, 418, 193...
[ "\"\"\"", "Ċ", "Rect", "angles", ":", "Ġ", "ĠCompute", "Ġoverlapping", "Ġregion", "Ġof", "Ġtwo", "Ġrect", "angles", ".", "ĊĠ", "ĠPoint", "(", "x", ":", "Ġnumber", ",", "Ġy", ":", "Ġnumber", "):", "Ġ", "ĠCart", "esian", "Ġcoordinate", "Ġpair", "ĊĠ", "ĠRec...
[ 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6...
[ 1, 4, 1, 5, 11, 12, 13, 21, 33, 40, 43, 47, 52, 58, 59, 2, 8, 9, 10, 11, 18, 19, 21, 22, 29, 31, 32, 37, 42, 53, 58, 2, 7, 8, 10, 11, 17, 18, 21, 22, 28, 30, 32, 42, 50, 53, 59, 64, 5, 9, 15, 21, 33, 5, 10, ...
f25351a3cb7bf583152baa8e7ec47b0f2161cb9c
# Copyright 2014 The crabapple Authors. All rights reserved. # Use of this source code is governed by a BSD-style # license that can be found in the LICENSE file. import abc class Notifier(object): __metaclass__ = abc.ABCMeta def __init__(self): pass @abc.abstractmethod def config(self, kwa...
[ 40, 2657, 244, 55, 53, 54, 57, 906, 5584, 380, 9515, 14006, 51, 3381, 4760, 5225, 51, 222, 40, 4443, 451, 477, 1932, 1361, 458, 17546, 829, 331, 11898, 50, 1639, 222, 40, 3553, 708, 902, 545, 2448, 347, 341, 7621, 822, 51, 222, ...
[ "#", "ĠCopyright", "Ġ", "2", "0", "1", "4", "ĠThe", "Ġcr", "ab", "apple", "ĠAuthors", ".", "ĠAll", "Ġrights", "Ġreserved", ".", "Ċ", "#", "ĠUse", "Ġof", "Ġthis", "Ġsource", "Ġcode", "Ġis", "Ġgoverned", "Ġby", "Ġa", "ĠBSD", "-", "style", "Ċ", "#", "Ġl...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 5, 5, 5, 7, 8, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 9...
[ 1, 2, 12, 13, 14, 15, 16, 17, 21, 24, 26, 31, 39, 40, 44, 51, 60, 61, 1, 2, 6, 9, 14, 21, 26, 29, 38, 41, 43, 47, 48, 53, 1, 2, 10, 15, 19, 22, 28, 31, 35, 43, 48, 49, 1, 1, 7, 11, 1, 1, 6, 10, 15, 16, 22, ...
d0eb6ea2e816ac59ae93684edb38ff3a49909633
def usage_list(self): print("Available modules") print("=================") for module in sorted(self.list()): if "module" not in self.mods[module]: self.import_module(module) if not self.mods[module]["module"].__doc__: continue text = self.mods[module]["modul...
[ 610, 6898, 100, 687, 45, 803, 731, 303, 1489, 459, 8590, 7912, 678, 303, 1489, 459, 1298, 33619, 303, 456, 2313, 347, 8635, 45, 803, 51, 687, 22942, 310, 434, 332, 1663, 39, 666, 347, 649, 51, 22862, 96, 1663, 2805, 343, 649, 51, ...
[ "def", "Ġusage", "_", "list", "(", "self", "):", "ĊĠĠĠ", "Ġprint", "(\"", "Available", "Ġmodules", "\")", "ĊĠĠĠ", "Ġprint", "(\"", "================", "=\")", "ĊĠĠĠ", "Ġfor", "Ġmodule", "Ġin", "Ġsorted", "(", "self", ".", "list", "()):", "ĊĠĠĠĠĠĠĠ", "Ġif", ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7...
[ 1, 4, 10, 11, 15, 16, 20, 22, 4, 10, 12, 21, 29, 31, 4, 10, 12, 28, 31, 4, 8, 15, 18, 25, 26, 30, 31, 35, 39, 8, 11, 13, 19, 20, 24, 27, 32, 33, 37, 38, 44, 46, 12, 17, 18, 24, 25, 31, 32, 38, 39, 8, 11, 15, ...
f3329962004a4454c04327da56d8dd1d0f1d45e7
import csv import datetime import json import re import requests import os r = requests.get("https://www.hithit.com/cs/project/4067/volebni-kalkulacka-on-steroids") path = os.path.dirname(os.path.realpath(__file__)) + "/" if r.status_code == 200: text = r.text pattern = "Přispěvatel" m = re.search(patter...
[ 485, 11490, 222, 485, 7181, 222, 485, 2379, 222, 485, 334, 222, 485, 5188, 222, 485, 2355, 222, 222, 119, 299, 5188, 51, 390, 459, 662, 574, 1516, 51, 109, 469, 302, 51, 527, 52, 1766, 52, 2268, 52, 57, 53, 59, 60, 52, 2103, 2...
[ "import", "Ġcsv", "Ċ", "import", "Ġdatetime", "Ċ", "import", "Ġjson", "Ċ", "import", "Ġre", "Ċ", "import", "Ġrequests", "Ċ", "import", "Ġos", "Ċ", "Ċ", "r", "Ġ=", "Ġrequests", ".", "get", "(\"", "https", "://", "www", ".", "h", "ith", "it", ".", "com...
[ 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 5, 5, 5, 6, 6, 6, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 9, 10, ...
[ 1, 7, 11, 1, 7, 16, 1, 7, 12, 1, 7, 10, 1, 7, 16, 1, 7, 10, 1, 1, 2, 4, 13, 14, 17, 19, 24, 27, 30, 31, 32, 35, 37, 38, 41, 42, 44, 45, 52, 53, 54, 55, 56, 57, 58, 60, 62, 63, 65, 66, 67, 70, 72, 75, 76, 77...
2c505f3f1dfdefae8edbea0916873229bcda901f
from flask import Blueprint class NestableBlueprint(Blueprint): def register_blueprint(self, blueprint, **options): def deferred(state): # state.url_prefix => 自己url前缀 + blueprint.url_prefix => /v3/api/cmdb/ url_prefix = (state.url_prefix or "") + (options.get("url_prefix", blueprin...
[ 1097, 18958, 1220, 34660, 499, 222, 842, 508, 464, 463, 17604, 45, 17604, 731, 303, 684, 3923, 100, 27309, 45, 803, 49, 47020, 49, 1137, 2200, 731, 310, 684, 18328, 45, 1311, 731, 343, 607, 1621, 51, 983, 100, 4271, 551, 244, 15672,...
[ "from", "Ġflask", "Ġimport", "ĠBlueprint", "ĊĊ", "Ċ", "class", "ĠN", "est", "able", "Blueprint", "(", "Blueprint", "):", "ĊĠĠĠ", "Ġdef", "Ġregister", "_", "blueprint", "(", "self", ",", "Ġblueprint", ",", "Ġ**", "options", "):", "ĊĠĠĠĠĠĠĠ", "Ġdef", "Ġdeferre...
[ 1, 1, 1, 1, 1, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 8...
[ 1, 5, 11, 18, 28, 1, 1, 6, 8, 11, 15, 24, 25, 34, 36, 4, 8, 17, 18, 27, 28, 32, 33, 43, 44, 47, 54, 56, 8, 12, 21, 22, 27, 29, 12, 14, 20, 21, 24, 25, 31, 34, 35, 37, 40, 41, 42, 44, 54, 55, 58, 59, 65, 68, 7...
5721786b61cf8706b1d401a46d06f2d32153df8b
n = int(input("enter the number\n")) sum = 0 for i in range(1, n - 1): rem = n % i if rem == 0: sum = sum + i if sum == n: print("the number is perfect") else: print("not prime")
[ 115, 299, 648, 45, 1151, 459, 1422, 341, 1470, 97, 115, 2152, 222, 1055, 299, 244, 53, 222, 999, 613, 347, 2189, 45, 54, 49, 329, 449, 244, 54, 731, 303, 5396, 299, 329, 925, 613, 303, 434, 5396, 630, 244, 53, 63, 310, 3668, 2...
[ "n", "Ġ=", "Ġint", "(", "input", "(\"", "enter", "Ġthe", "Ġnumber", "\\", "n", "\"))", "Ċ", "sum", "Ġ=", "Ġ", "0", "Ċ", "for", "Ġi", "Ġin", "Ġrange", "(", "1", ",", "Ġn", "Ġ-", "Ġ", "1", "):", "ĊĠĠĠ", "Ġrem", "Ġ=", "Ġn", "Ġ%", "Ġi", "ĊĠĠĠ", "...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8...
[ 1, 2, 4, 8, 9, 14, 16, 21, 25, 32, 33, 34, 37, 1, 4, 6, 7, 8, 1, 4, 6, 9, 15, 16, 17, 18, 20, 22, 23, 24, 26, 4, 8, 10, 12, 14, 16, 4, 7, 11, 14, 15, 16, 17, 8, 12, 14, 18, 20, 22, 1, 3, 7, 10, 12, 13, 4,...
24f87bd6aab0ff65cf2153e27df31122818ad0ac
import unittest from Spreadsheet.HTML import Table class TestColGroup(unittest.TestCase): def test_colgroup(self): return data = [ ["a", "b", "c"], [1, 2, 3], [4, 5, 6], ] gen = Table({"data": data, "colgroup": {"span": 3, "width": 100}, "attr_...
[ 485, 15790, 222, 1097, 5034, 18597, 51, 4438, 1220, 5565, 499, 222, 842, 2128, 889, 1582, 45, 18959, 51, 7246, 731, 303, 684, 913, 100, 19531, 45, 803, 731, 310, 461, 603, 727, 299, 447, 343, 3059, 102, 411, 332, 103, 411, 332, 10...
[ "import", "Ġunittest", "Ċ", "from", "ĠSp", "readsheet", ".", "HTML", "Ġimport", "ĠTable", "ĊĊ", "Ċ", "class", "ĠTest", "Col", "Group", "(", "unittest", ".", "TestCase", "):", "ĊĠĠĠ", "Ġdef", "Ġtest", "_", "colgroup", "(", "self", "):", "ĊĠĠĠĠĠĠĠ", "Ġreturn...
[ 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 12, 12, 12, ...
[ 1, 7, 16, 1, 5, 8, 17, 18, 22, 29, 35, 1, 1, 6, 11, 14, 19, 20, 28, 29, 37, 39, 4, 8, 13, 14, 22, 23, 27, 29, 8, 15, 8, 13, 15, 17, 12, 15, 16, 18, 20, 21, 23, 25, 26, 29, 12, 14, 15, 16, 17, 18, 19, 20, 21, ...
2a0172641c48c47f048bf5e9f1889b29abbb0b7c
#!/usr/bin/env python3 # coding=utf8 from __future__ import division, absolute_import, print_function, unicode_literals import argparse, csv, sys, subprocess, time NR_THREAD = 20 def shell(cmd): subprocess.call(cmd, shell=True) print("Done! {0}.".format(cmd)) start = time.time() cmd = "mkdir FTRL/tmp -p" ...
[ 8758, 3392, 52, 1793, 52, 2141, 4406, 56, 222, 40, 10633, 66, 3330, 61, 222, 1097, 1176, 9689, 523, 1220, 20707, 49, 7984, 100, 485, 49, 1489, 100, 1144, 49, 15393, 100, 30828, 222, 485, 16693, 49, 11490, 49, 5263, 49, 16606, 49, ...
[ "#!/", "usr", "/", "bin", "/", "env", "Ġpython", "3", "Ċ", "#", "Ġcoding", "=", "utf", "8", "Ċ", "from", "Ġ__", "future", "__", "Ġimport", "Ġdivision", ",", "Ġabsolute", "_", "import", ",", "Ġprint", "_", "function", ",", "Ġunicode", "_", "literals", ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 6, 6, 6, 6, 6, 6, 6, 6, 8, 9, 9, 9, 9, 9, 9, 10, 10, ...
[ 1, 4, 7, 8, 11, 12, 15, 22, 23, 1, 2, 9, 10, 13, 14, 1, 5, 8, 14, 16, 23, 32, 33, 42, 43, 49, 50, 56, 57, 65, 66, 74, 75, 83, 1, 7, 16, 17, 21, 22, 26, 27, 38, 39, 44, 1, 1, 3, 4, 10, 12, 13, 14, 15, 1, 1, ...
eab5bf4776582349615ad56ee1ed93bc8f868565
from common import * import serial CMD_BAUD = chr(129) BAUD_RATES = [300, 600, 1200, 2400, 4800, 9600, 14400, 19200, 28800, 38400, 57600, 115200] class Communication(Module): def __init__(self, parent, port_name, baud_rate): self.parent = parent if not isinstance(port_name, str): r...
[ 1097, 4959, 1220, 338, 222, 222, 485, 4569, 222, 222, 8193, 100, 6807, 3807, 299, 21747, 45, 54, 55, 62, 46, 222, 222, 6807, 3807, 100, 22635, 959, 299, 447, 56, 53, 53, 49, 244, 59, 53, 53, 49, 244, 54, 55, 53, 53, 49, 244, ...
[ "from", "Ġcommon", "Ġimport", "Ġ*", "Ċ", "Ċ", "import", "Ġserial", "Ċ", "Ċ", "CMD", "_", "BA", "UD", "Ġ=", "Ġchr", "(", "1", "2", "9", ")", "Ċ", "Ċ", "BA", "UD", "_", "RAT", "ES", "Ġ=", "Ġ[", "3", "0", "0", ",", "Ġ", "6", "0", "0", ",", "...
[ 1, 1, 1, 1, 1, 2, 3, 3, 3, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7...
[ 1, 5, 12, 19, 21, 1, 1, 7, 14, 1, 1, 4, 5, 7, 9, 11, 15, 16, 17, 18, 19, 20, 1, 1, 3, 5, 6, 9, 11, 13, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40,...
abbad57e945d2195021948a0e0838c6bfd9c6a1e
# connect4_JayNa.py # Jay Na # CS111 Spring 2018 # This file creates a version of the game Connect4, where the user plays against an AI from graphics import * import random class ConnectWindow: def __init__(self): self.window = GraphWin("Connect Four", 690, 590) self.window.setMouseHandler(self.h...
[ 40, 5023, 57, 100, 79, 414, 20407, 51, 997, 222, 40, 990, 414, 19843, 222, 40, 15708, 54, 54, 54, 16036, 244, 55, 53, 54, 61, 222, 40, 1369, 822, 9602, 331, 1522, 451, 341, 4204, 11736, 57, 49, 2174, 341, 1275, 41282, 8209, 619,...
[ "#", "Ġconnect", "4", "_", "J", "ay", "Na", ".", "py", "Ċ", "#", "ĠJ", "ay", "ĠNa", "Ċ", "#", "ĠCS", "1", "1", "1", "ĠSpring", "Ġ", "2", "0", "1", "8", "Ċ", "#", "ĠThis", "Ġfile", "Ġcreates", "Ġa", "Ġversion", "Ġof", "Ġthe", "Ġgame", "ĠConnect"...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 6, 6, 6, 6, 6, 7, 7, 7, 9, 10, 10, 10, 10, 10, 1...
[ 1, 2, 10, 11, 12, 13, 15, 17, 18, 20, 1, 2, 4, 6, 9, 1, 2, 5, 6, 7, 8, 15, 16, 17, 18, 19, 20, 1, 2, 7, 12, 20, 22, 30, 33, 37, 42, 50, 51, 52, 58, 62, 67, 73, 81, 84, 87, 1, 1, 5, 14, 21, 23, 1, 7, 14, 1...
96d5cf948a9b0f622889977e8b26993299bceead
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Wed Jul 18 13:37:10 2018 @author: ninja1mmm """ import os import numpy as np import pandas as pd from sklearn import preprocessing def file_name(file_dir): root_tmp = [] dirs_tmp = [] files_tmp = [] for root, dirs, files in os.walk(file_d...
[ 8758, 3392, 52, 1793, 52, 2141, 4406, 56, 222, 40, 8571, 10633, 63, 6471, 50, 61, 8571, 222, 3012, 222, 6880, 563, 19731, 11023, 244, 54, 61, 244, 54, 56, 63, 56, 60, 63, 54, 53, 244, 55, 53, 54, 61, 222, 222, 69, 2133, 63, ...
[ "#!/", "usr", "/", "bin", "/", "env", "Ġpython", "3", "Ċ", "#", "Ġ-*-", "Ġcoding", ":", "Ġutf", "-", "8", "Ġ-*-", "Ċ", "\"\"\"", "Ċ", "Created", "Ġon", "ĠWed", "ĠJul", "Ġ", "1", "8", "Ġ", "1", "3", ":", "3", "7", ":", "1", "0", "Ġ", "2", "0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 8, 9, 9, 9, 10, 10, 10, 10, 10...
[ 1, 4, 7, 8, 11, 12, 15, 22, 23, 1, 2, 6, 13, 14, 18, 19, 20, 24, 1, 4, 1, 8, 11, 15, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 1, 1, 2, 8, 9, 11, 15, 16, 18, 19, 1, 4, 1, 1, ...
d09984c6e6a0ce82389dbbbade63507e9687355d
# Generated by Django 2.2.6 on 2019-12-23 16:38 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ("Pages", "0014_auto_20191223_2032"), ] operations = [ migrations.AlterField( model_name="dept", ...
[ 40, 13046, 829, 18288, 244, 55, 51, 55, 51, 59, 563, 244, 55, 53, 54, 62, 50, 54, 55, 50, 55, 56, 244, 54, 59, 63, 56, 61, 222, 222, 1097, 8532, 51, 1219, 1220, 12520, 49, 4590, 222, 485, 8532, 51, 1219, 51, 3404, 51, 30530,...
[ "#", "ĠGenerated", "Ġby", "ĠDjango", "Ġ", "2", ".", "2", ".", "6", "Ġon", "Ġ", "2", "0", "1", "9", "-", "1", "2", "-", "2", "3", "Ġ", "1", "6", ":", "3", "8", "Ċ", "Ċ", "from", "Ġdjango", ".", "db", "Ġimport", "Ġmigrations", ",", "Ġmodels", ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 6, 7, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 9, 9, 9...
[ 1, 2, 12, 15, 22, 23, 24, 25, 26, 27, 28, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 1, 1, 5, 12, 13, 15, 22, 33, 34, 41, 1, 7, 14, 15, 17, 18, 24, 25, 33, 1, 1, 6, 16, 17, 27, 28...
5d4ef314bb7169f5de4795e5c1aca62a1a060bae
from django.db import models # Login Admin Model class AdminLoginModel(models.Model): user_name = models.CharField(max_length=30, unique=True) password = models.CharField(max_length=16) # Swiggy Admin State Table class AdminStateModel(models.Model): state_id = models.AutoField(primary_key=True) st...
[ 1097, 8532, 51, 1219, 1220, 4590, 499, 222, 40, 10660, 9132, 3707, 222, 842, 9132, 5333, 1262, 45, 3404, 51, 1262, 731, 303, 1275, 100, 444, 299, 4590, 51, 16347, 45, 1472, 100, 1340, 66, 56, 53, 49, 5823, 66, 1844, 46, 303, 3894,...
[ "from", "Ġdjango", ".", "db", "Ġimport", "Ġmodels", "ĊĊ", "Ċ", "#", "ĠLogin", "ĠAdmin", "ĠModel", "Ċ", "class", "ĠAdmin", "Login", "Model", "(", "models", ".", "Model", "):", "ĊĠĠĠ", "Ġuser", "_", "name", "Ġ=", "Ġmodels", ".", "CharField", "(", "max", ...
[ 1, 1, 1, 1, 1, 1, 1, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 9, 10, 10, 10, 10, 10...
[ 1, 5, 12, 13, 15, 22, 29, 1, 1, 2, 8, 14, 20, 1, 6, 12, 17, 22, 23, 29, 30, 35, 37, 4, 9, 10, 14, 16, 23, 24, 33, 34, 37, 38, 44, 45, 46, 47, 48, 55, 56, 60, 61, 4, 13, 15, 22, 23, 32, 33, 36, 37, 43, 44, 45,...
5c5f00084f37837b749e1fbb52a18d515e09ba06
import graph as Graph def BFS(graph: Graph.Graph, start, end): visited = set() parent = dict() parent[start] = None queue = [] queue.append(start) visited.add(start) while queue: current = queue.pop(0) if current == end: break for v in graph.neighbo...
[ 485, 4023, 641, 6478, 499, 222, 610, 570, 6900, 45, 2275, 63, 6478, 51, 3418, 49, 1496, 49, 962, 731, 303, 21316, 299, 758, 365, 465, 2952, 299, 5473, 365, 303, 2952, 96, 1384, 98, 299, 1686, 465, 5535, 299, 1627, 303, 5535, 51, ...
[ "import", "Ġgraph", "Ġas", "ĠGraph", "ĊĊ", "Ċ", "def", "ĠB", "FS", "(", "graph", ":", "ĠGraph", ".", "Graph", ",", "Ġstart", ",", "Ġend", "):", "ĊĠĠĠ", "Ġvisited", "Ġ=", "Ġset", "()", "ĊĊĠĠĠ", "Ġparent", "Ġ=", "Ġdict", "()", "ĊĠĠĠ", "Ġparent", "[", "...
[ 1, 1, 1, 1, 1, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 8, 10, 10, 10, 10, 11, 11, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 12, 12, 14, 14, 14, ...
[ 1, 7, 13, 16, 22, 1, 1, 4, 6, 8, 9, 14, 15, 21, 22, 27, 28, 34, 35, 39, 41, 4, 12, 14, 18, 20, 4, 11, 13, 18, 20, 4, 11, 12, 17, 18, 20, 25, 4, 10, 12, 15, 4, 10, 11, 17, 18, 23, 24, 4, 12, 13, 16, 17, 22, ...
6b785502e8a8983c164ebdffdd304da47c926acb
from django.apps import AppConfig class LaughsappConfig(AppConfig): name = "laughsApp"
[ 1097, 8532, 51, 7520, 1220, 2013, 1081, 499, 222, 842, 10728, 2967, 120, 745, 1081, 45, 42728, 731, 303, 655, 299, 332, 3104, 2967, 120, 1306, 39, 222 ]
[ "from", "Ġdjango", ".", "apps", "Ġimport", "ĠApp", "Config", "ĊĊ", "Ċ", "class", "ĠLa", "ugh", "s", "app", "Config", "(", "AppConfig", "):", "ĊĠĠĠ", "Ġname", "Ġ=", "Ġ\"", "la", "ugh", "s", "App", "\"", "Ċ" ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5 ]
[ 1, 5, 12, 13, 17, 24, 28, 34, 1, 1, 6, 9, 12, 13, 16, 22, 23, 32, 34, 4, 9, 11, 13, 15, 18, 19, 22, 23 ]
4a7f8221208e8252c7f5c0adff2949f0e552def1
from azureml.core import Workspace from azureml.pipeline.core import Pipeline from azureml.core import Experiment from azureml.pipeline.steps import PythonScriptStep import requests ws = Workspace.from_config() # Step to run a Python script step1 = PythonScriptStep( name="prepare data", source_directory="scripts"...
[ 1097, 16559, 713, 51, 1284, 1220, 33128, 222, 1097, 16559, 713, 51, 9319, 51, 1284, 1220, 18686, 222, 1097, 16559, 713, 51, 1284, 1220, 21400, 222, 1097, 16559, 713, 51, 9319, 51, 7495, 1220, 5006, 3223, 3549, 222, 485, 5188, 222, 222...
[ "from", "Ġazure", "ml", ".", "core", "Ġimport", "ĠWorkspace", "Ċ", "from", "Ġazure", "ml", ".", "pipeline", ".", "core", "Ġimport", "ĠPipeline", "Ċ", "from", "Ġazure", "ml", ".", "core", "Ġimport", "ĠExperiment", "Ċ", "from", "Ġazure", "ml", ".", "pipeline...
[ 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 6, 7, 7, 7, 7, 7, 7, 7, 7, 7, 8, 9, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, ...
[ 1, 5, 11, 13, 14, 18, 25, 35, 1, 5, 11, 13, 14, 22, 23, 27, 34, 43, 1, 5, 11, 13, 14, 18, 25, 36, 1, 5, 11, 13, 14, 22, 23, 28, 35, 42, 48, 52, 1, 7, 16, 1, 1, 3, 5, 15, 16, 20, 21, 27, 29, 1, 1, 2, 7, 10, ...
03fb1cf0aac0c37858dd8163562a7139ed4e1179
import dtw import stats import glob import argparse import matplotlib.pyplot as plt GRAPH = False PERCENTAGE = False VERBOSE = False def buildExpectations(queryPath, searchPatternPath): """ Based on SpeechCommand_v0.02 directory structure. """ expectations = [] currentDirectory = "" queryFil...
[ 485, 362, 4176, 222, 485, 8652, 222, 222, 485, 12542, 222, 485, 16693, 222, 485, 13168, 51, 18553, 641, 6020, 222, 222, 17312, 299, 3208, 222, 40845, 3484, 299, 3208, 222, 28121, 299, 3208, 499, 222, 610, 1984, 47398, 45, 1234, 1233, ...
[ "import", "Ġd", "tw", "Ċ", "import", "Ġstats", "Ċ", "Ċ", "import", "Ġglob", "Ċ", "import", "Ġargparse", "Ċ", "import", "Ġmatplotlib", ".", "pyplot", "Ġas", "Ġplt", "Ċ", "Ċ", "GRAPH", "Ġ=", "ĠFalse", "Ċ", "PERCENT", "AGE", "Ġ=", "ĠFalse", "Ċ", "VERBOSE", ...
[ 1, 1, 1, 1, 2, 2, 2, 3, 4, 4, 4, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 7, 8, 8, 8, 8, 9, 9, 9, 9, 9, 10, 10, 10, 10, 12, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 14, 14, 15, 15, 15, 15, 15, 15, 15, 15, ...
[ 1, 7, 9, 11, 1, 7, 13, 1, 1, 7, 12, 1, 7, 16, 1, 7, 18, 19, 25, 28, 32, 1, 1, 6, 8, 14, 1, 8, 11, 13, 19, 1, 8, 10, 16, 1, 1, 4, 10, 22, 23, 28, 32, 33, 40, 47, 51, 53, 4, 8, 4, 10, 13, 20, 27, 28, 29, ...
303a8609cb21c60a416160264c3d3da805674920
import tensorflow as tf import tensorflow_probability as tfp import pytest import numpy as np from estimators import NormalizingFlowNetwork tfd = tfp.distributions tf.random.set_seed(22) np.random.seed(22) @pytest.mark.slow def test_x_noise_reg(): x_train = np.linspace(-3, 3, 300, dtype=np.float32).reshape((300,...
[ 485, 15196, 641, 5369, 222, 485, 15196, 100, 31167, 641, 292, 4448, 222, 485, 13090, 222, 485, 6610, 641, 2115, 222, 1097, 3263, 468, 4079, 1220, 13616, 6206, 4078, 4723, 222, 222, 121, 3016, 299, 292, 4448, 51, 39690, 222, 4274, 51, ...
[ "import", "Ġtensorflow", "Ġas", "Ġtf", "Ċ", "import", "Ġtensorflow", "_", "probability", "Ġas", "Ġt", "fp", "Ċ", "import", "Ġpytest", "Ċ", "import", "Ġnumpy", "Ġas", "Ġnp", "Ċ", "from", "Ġest", "im", "ators", "Ġimport", "ĠNormal", "izing", "Flow", "Network",...
[ 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 7, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 11, ...
[ 1, 7, 18, 21, 24, 1, 7, 18, 19, 30, 33, 35, 37, 1, 7, 14, 1, 7, 13, 16, 19, 1, 5, 9, 11, 16, 23, 30, 35, 39, 46, 1, 1, 2, 4, 6, 8, 10, 11, 24, 1, 3, 4, 10, 11, 14, 15, 19, 20, 21, 22, 23, 1, 3, 4, 10, 11,...