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
de925b8f6bd31bfdfd1f04628659847b0761899d
#!/usr/bin/env python # -*- coding: utf-8 -*- """ @author: Allen(Zifeng) An @course: @contact: anz8@mcmaster.ca @file: 17. Letter Combinations of a Phone Number.py @time: 2020/2/2 21:18 """ from typing import List class Solution: def letterCombinations(self, digits: str) -> List[str]: d = {2: "abc", 3: "...
[ 8758, 3392, 52, 1793, 52, 2141, 4406, 222, 40, 8571, 10633, 63, 6471, 50, 61, 8571, 222, 3012, 222, 69, 2133, 63, 3381, 291, 45, 95, 344, 838, 46, 2262, 222, 69, 7642, 63, 222, 69, 5559, 63, 619, 127, 61, 69, 6070, 2611, 51, 1...
[ "#!/", "usr", "/", "bin", "/", "env", "Ġpython", "Ċ", "#", "Ġ-*-", "Ġcoding", ":", "Ġutf", "-", "8", "Ġ-*-", "Ċ", "\"\"\"", "Ċ", "@", "author", ":", "ĠAll", "en", "(", "Z", "if", "eng", ")", "ĠAn", "Ċ", "@", "course", ":", "Ċ", "@", "contact", ...
[ 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, 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, 7, 7, 7, 7, 7, 7, 7...
[ 1, 4, 7, 8, 11, 12, 15, 22, 1, 2, 6, 13, 14, 18, 19, 20, 24, 1, 4, 1, 2, 8, 9, 13, 15, 16, 17, 19, 22, 23, 26, 1, 2, 8, 9, 1, 2, 9, 10, 13, 14, 15, 16, 18, 24, 25, 27, 1, 2, 6, 7, 8, 9, 10, 11, 18, 25, ...
b3d9013ab6facb8dd9361e2a0715a8ed0cdfeaba
from setuptools import setup import imp def get_version(): ver_file = None try: ver_file, pathname, description = imp.find_module("__version__", ["cmakelint"]) vermod = imp.load_module("__version__", ver_file, pathname, description) version = vermod.VERSION return version ...
[ 1097, 29910, 1220, 4721, 222, 222, 485, 1378, 499, 222, 610, 640, 100, 1687, 2284, 303, 2666, 100, 781, 299, 1686, 303, 1614, 63, 310, 2666, 100, 781, 49, 29082, 49, 3066, 299, 1378, 51, 1828, 100, 1663, 27161, 1687, 41451, 3059, 41...
[ "from", "Ġsetuptools", "Ġimport", "Ġsetup", "Ċ", "Ċ", "import", "Ġimp", "ĊĊ", "Ċ", "def", "Ġget", "_", "version", "():", "ĊĠĠĠ", "Ġver", "_", "file", "Ġ=", "ĠNone", "ĊĠĠĠ", "Ġtry", ":", "ĊĠĠĠĠĠĠĠ", "Ġver", "_", "file", ",", "Ġpathname", ",", "Ġdescriptio...
[ 1, 1, 1, 1, 1, 2, 3, 3, 3, 5, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 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, 10, 10, ...
[ 1, 5, 16, 23, 29, 1, 1, 7, 11, 1, 1, 4, 8, 9, 16, 19, 4, 8, 9, 13, 15, 20, 4, 8, 9, 8, 12, 13, 17, 18, 27, 28, 40, 42, 46, 47, 51, 52, 58, 62, 69, 73, 76, 78, 80, 82, 85, 88, 8, 12, 15, 17, 21, 22, 26, 27, ...
359db73de2c2bb5967723dfb78f98fb84b337b9d
from math import degrees, sqrt, sin, cos, atan, radians from pygame import Surface, draw from pygame.sprite import Sprite from constants import ARROW_MAX_SPEED, FLOOR_Y from game_types import Radian, Degree class Arrow(Sprite): def __init__(self, color, screen, character, click_position): Sprite.__init__...
[ 1097, 7820, 1220, 18713, 49, 17130, 49, 9842, 49, 10757, 49, 43203, 49, 35581, 222, 1097, 23967, 1220, 22819, 49, 5194, 222, 1097, 23967, 51, 13999, 1220, 24229, 222, 222, 1097, 12405, 1220, 5500, 9330, 100, 3470, 100, 22808, 49, 525, ...
[ "from", "Ġmath", "Ġimport", "Ġdegrees", ",", "Ġsqrt", ",", "Ġsin", ",", "Ġcos", ",", "Ġatan", ",", "Ġradians", "Ċ", "from", "Ġpygame", "Ġimport", "ĠSurface", ",", "Ġdraw", "Ċ", "from", "Ġpygame", ".", "sprite", "Ġimport", "ĠSprite", "Ċ", "Ċ", "from", "Ġc...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 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, 8, 9, 9, 9, 9, 9, 9...
[ 1, 5, 10, 17, 25, 26, 31, 32, 36, 37, 41, 42, 47, 48, 56, 1, 5, 12, 19, 27, 28, 33, 1, 5, 12, 13, 19, 26, 33, 1, 1, 5, 15, 22, 25, 28, 29, 32, 33, 38, 39, 41, 43, 45, 46, 47, 1, 5, 10, 11, 16, 23, 27, 30, 31,...
97cc29e0d54e5d5e05dff16c92ecc4046363185f
from django.conf import settings from django.conf.urls.static import static from django.contrib import admin from django.urls import path, include from home import views from order import views as OV urlpatterns = [ path("user", include("user.urls")), path("order", include("order.urls")), path("shopcart/",...
[ 1097, 8532, 51, 2982, 1220, 4086, 222, 1097, 8532, 51, 2982, 51, 11420, 51, 1592, 1220, 924, 222, 1097, 8532, 51, 12060, 1220, 5611, 222, 1097, 8532, 51, 11420, 1220, 1536, 49, 2323, 222, 1097, 6780, 1220, 11887, 222, 1097, 2554, 1220...
[ "from", "Ġdjango", ".", "conf", "Ġimport", "Ġsettings", "Ċ", "from", "Ġdjango", ".", "conf", ".", "urls", ".", "static", "Ġimport", "Ġstatic", "Ċ", "from", "Ġdjango", ".", "contrib", "Ġimport", "Ġadmin", "Ċ", "from", "Ġdjango", ".", "urls", "Ġimport", "Ġpa...
[ 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, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9...
[ 1, 5, 12, 13, 17, 24, 33, 1, 5, 12, 13, 17, 18, 22, 23, 29, 36, 43, 1, 5, 12, 13, 20, 27, 33, 1, 5, 12, 13, 17, 24, 29, 30, 38, 1, 5, 10, 17, 23, 1, 5, 11, 18, 24, 27, 29, 30, 1, 1, 4, 12, 14, 16, 4, 9, 11,...
35b24ffa14f8b3c2040d5becc8a35721e86d8b3d
total = totmil = cont = menor = 0 barato = " " print("-" * 40) print("LOJA SUPER BARATÃO") print("-" * 40) while True: produto = str(input("Nome do Produto: ")) preco = float(input("Preço: ")) cont += 1 total += preco if preco > 1000: totmil += 1 if cont == 1 or preco < menor: ba...
[ 3025, 299, 14928, 22719, 299, 729, 299, 10466, 290, 299, 244, 53, 222, 1652, 6599, 299, 332, 332, 222, 1243, 10364, 39, 338, 244, 57, 53, 46, 222, 1243, 459, 1323, 28937, 28102, 546, 45441, 741, 39787, 84, 678, 222, 1243, 10364, 39,...
[ "total", "Ġ=", "Ġtot", "mil", "Ġ=", "Ġcont", "Ġ=", "Ġmen", "or", "Ġ=", "Ġ", "0", "Ċ", "bar", "ato", "Ġ=", "Ġ\"", "Ġ\"", "Ċ", "print", "(\"-", "\"", "Ġ*", "Ġ", "4", "0", ")", "Ċ", "print", "(\"", "LO", "JA", "ĠSUP", "ER", "ĠBAR", "AT", "Ãĥ", "...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 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, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7...
[ 1, 6, 8, 12, 15, 17, 22, 24, 28, 30, 32, 33, 34, 1, 4, 7, 9, 11, 13, 1, 6, 9, 10, 12, 13, 14, 15, 16, 1, 6, 8, 10, 12, 16, 18, 22, 24, 25, 26, 28, 1, 6, 9, 10, 12, 13, 14, 15, 16, 1, 6, 11, 12, 4, 9, 12, ...
709271b98fc2b40c763522c54488be36968f02d8
from base import * try: from .prod_local import * except: pass # we currently don't have an interface that allows an administrator # to create a repository for another user. Until we have added this # capability, allow users to create repos. ELEMENTARY_ALLOW_REPO_CREATION = True
[ 1097, 1712, 1220, 338, 222, 222, 1287, 63, 303, 664, 657, 8615, 100, 1717, 1220, 338, 222, 7364, 63, 303, 3119, 222, 222, 40, 1019, 5937, 2818, 1348, 1178, 619, 2586, 708, 6990, 619, 25486, 222, 40, 391, 1506, 331, 5347, 456, 4691, ...
[ "from", "Ġbase", "Ġimport", "Ġ*", "Ċ", "Ċ", "try", ":", "ĊĠĠĠ", "Ġfrom", "Ġ.", "prod", "_", "local", "Ġimport", "Ġ*", "Ċ", "except", ":", "ĊĠĠĠ", "Ġpass", "Ċ", "Ċ", "#", "Ġwe", "Ġcurrently", "Ġdon", "'t", "Ġhave", "Ġan", "Ġinterface", "Ġthat", "Ġallows...
[ 1, 1, 1, 1, 1, 2, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 6, 6, 7, 8, 8, 8, 8, 8, 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...
[ 1, 5, 10, 17, 19, 1, 1, 4, 5, 4, 9, 11, 15, 16, 21, 28, 30, 1, 7, 8, 4, 9, 1, 1, 2, 5, 15, 19, 21, 26, 29, 39, 44, 51, 54, 68, 1, 2, 5, 12, 14, 25, 29, 37, 42, 43, 47, 49, 52, 57, 63, 68, 1, 2, 13, 14, 20...
edcccc673994a8de281a683b747de52d2115f89e
from configparser import ConfigParser from ef.config.components import * from ef.config.efconf import EfConf from ef.config.section import ConfigSection comp_list = [ BoundaryConditions, InnerRegion, OutputFile, ParticleInteractionModel, ParticleSource, SpatialMesh, TimeGrid, ExternalF...
[ 1097, 1377, 3936, 1220, 3395, 2837, 222, 222, 1097, 28300, 51, 1180, 51, 3545, 1220, 338, 222, 1097, 28300, 51, 1180, 51, 2332, 2982, 1220, 535, 107, 5204, 222, 1097, 28300, 51, 1180, 51, 1923, 1220, 3395, 5434, 222, 222, 998, 100, ...
[ "from", "Ġconfig", "parser", "Ġimport", "ĠConfig", "Parser", "Ċ", "Ċ", "from", "Ġef", ".", "config", ".", "components", "Ġimport", "Ġ*", "Ċ", "from", "Ġef", ".", "config", ".", "ef", "conf", "Ġimport", "ĠE", "f", "Conf", "Ċ", "from", "Ġef", ".", "confi...
[ 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, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 9, 9, 9, 9, 10, 10, 10, 10, 11, 11, 11, ...
[ 1, 5, 12, 18, 25, 32, 38, 1, 1, 5, 8, 9, 15, 16, 26, 33, 35, 1, 5, 8, 9, 15, 16, 18, 22, 29, 31, 32, 36, 1, 5, 8, 9, 15, 16, 23, 30, 37, 44, 1, 1, 5, 6, 10, 12, 14, 4, 10, 13, 23, 24, 4, 10, 16, 17, 4, 11...
38e167630519b73bffea4ff527bc7b7272a49f1a
# -*- coding:utf-8 -*- # Author: hankcs # Date: 2019-01-13 15:01 import pickle import numpy as np from bert_serving.client import BertClient from pyhanlp import * CharTable = JClass("com.hankcs.hanlp.dictionary.other.CharTable") # bc = BertClient(ip='192.168.1.88') # ip address of the server bc = BertClient(ip="127...
[ 40, 8571, 10633, 63, 3330, 50, 61, 8571, 222, 40, 6265, 63, 439, 1387, 1766, 222, 40, 2833, 63, 244, 55, 53, 54, 62, 50, 53, 54, 50, 54, 56, 244, 54, 58, 63, 53, 54, 222, 485, 19892, 222, 222, 485, 6610, 641, 2115, 222, 1097...
[ "#", "Ġ-*-", "Ġcoding", ":", "utf", "-", "8", "Ġ-*-", "Ċ", "#", "ĠAuthor", ":", "Ġh", "ank", "cs", "Ċ", "#", "ĠDate", ":", "Ġ", "2", "0", "1", "9", "-", "0", "1", "-", "1", "3", "Ġ", "1", "5", ":", "0", "1", "Ċ", "import", "Ġpickle", "Ċ",...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3, 4, 4, 4, 5, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8...
[ 1, 2, 6, 13, 14, 17, 18, 19, 23, 1, 2, 9, 10, 12, 15, 17, 1, 2, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 1, 7, 14, 1, 1, 7, 13, 16, 19, 1, 5, 7, 10, 11, 18, 19, 25, 32, 34, ...
816b1a932208a4525230dd886adf8c67dec3af3e
# content of conftest.py # adapted from http://pytest.org/latest/example/special.html import pytest import requests def tear_down(): """conftest.py tear_down - the last to go....""" print("\nTEARDOWN after all tests") @pytest.fixture(scope="session", autouse=True) def set_up(request): """conftest.py se...
[ 40, 1813, 451, 476, 726, 464, 51, 997, 222, 40, 39251, 664, 1930, 574, 12418, 51, 1107, 52, 5341, 52, 2783, 52, 10105, 51, 935, 222, 222, 485, 13090, 222, 485, 5188, 499, 222, 610, 22143, 100, 1772, 2284, 303, 1547, 487, 726, 464,...
[ "#", "Ġcontent", "Ġof", "Ġcon", "ft", "est", ".", "py", "Ċ", "#", "Ġadapted", "Ġfrom", "Ġhttp", "://", "pytest", ".", "org", "/", "latest", "/", "example", "/", "special", ".", "html", "Ċ", "Ċ", "import", "Ġpytest", "Ċ", "import", "Ġrequests", "ĊĊ", ...
[ 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, 3, 4, 4, 4, 5, 5, 5, 7, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 1...
[ 1, 2, 10, 13, 17, 19, 22, 23, 25, 1, 2, 10, 15, 20, 23, 29, 30, 33, 34, 40, 41, 48, 49, 56, 57, 61, 1, 1, 7, 14, 1, 7, 16, 1, 1, 4, 9, 10, 14, 17, 4, 8, 11, 13, 16, 17, 19, 24, 25, 29, 31, 35, 40, 43, 46, 5...
9096ed4b68d2bef92df7db98589e744ddf3efad0
import matplotlib.pyplot as plt from shapely.geometry import MultiLineString, Polygon mls = MultiLineString([[(0, 1), (5, 1)], [(1, 2), (1, 0)]]) p = Polygon([(0.5, 0.5), (0.5, 1.5), (2, 1.5), (2, 0.5)]) results = mls.intersection(p) plt.subplot(1, 2, 1) for ls in mls: plt.plot(*ls.xy) plt.plot(*p.boundary.xy, "-...
[ 485, 13168, 51, 18553, 641, 6020, 222, 1097, 807, 386, 3151, 51, 10132, 1220, 10497, 1829, 671, 49, 30182, 222, 222, 713, 120, 299, 10497, 1829, 671, 2034, 9448, 53, 49, 244, 54, 490, 327, 58, 49, 244, 54, 14237, 10474, 54, 49, 24...
[ "import", "Ġmatplotlib", ".", "pyplot", "Ġas", "Ġplt", "Ċ", "from", "Ġsh", "ap", "ely", ".", "geometry", "Ġimport", "ĠMulti", "Line", "String", ",", "ĠPolygon", "Ċ", "Ċ", "ml", "s", "Ġ=", "ĠMulti", "Line", "String", "([", "[(", "0", ",", "Ġ", "1", ")...
[ 1, 1, 1, 1, 1, 1, 1, 2, 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, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5...
[ 1, 7, 18, 19, 25, 28, 32, 1, 5, 8, 10, 13, 14, 22, 29, 35, 39, 45, 46, 54, 1, 1, 3, 4, 6, 12, 16, 22, 24, 26, 27, 28, 29, 30, 32, 34, 35, 36, 37, 38, 41, 44, 45, 46, 47, 48, 50, 52, 53, 54, 55, 56, 58, 60, 1,...
c99f1333c5ca3221e9932d9a9ba1d95a77924f0d
import sys import math def get_max_sum(arr): max_sum = -math.inf for i in range(1, 5): for j in range(1, 5): temp = ( arr[i][j] + arr[i - 1][j - 1] + arr[i - 1][j] + arr[i - 1][j + 1] + arr[i + 1][j + 1] ...
[ 485, 5263, 222, 485, 7820, 499, 222, 610, 640, 100, 1472, 100, 1055, 45, 865, 731, 303, 1788, 100, 1055, 299, 449, 3851, 51, 5290, 303, 456, 613, 347, 2189, 45, 54, 49, 244, 58, 731, 310, 456, 614, 347, 2189, 45, 54, 49, 244, ...
[ "import", "Ġsys", "Ċ", "import", "Ġmath", "ĊĊ", "Ċ", "def", "Ġget", "_", "max", "_", "sum", "(", "arr", "):", "ĊĠĠĠ", "Ġmax", "_", "sum", "Ġ=", "Ġ-", "math", ".", "inf", "ĊĠĠĠ", "Ġfor", "Ġi", "Ġin", "Ġrange", "(", "1", ",", "Ġ", "5", "):", "ĊĠĠ...
[ 1, 1, 1, 2, 2, 2, 4, 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, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 11, 11, 11...
[ 1, 7, 11, 1, 7, 12, 1, 1, 4, 8, 9, 12, 13, 16, 17, 20, 22, 4, 8, 9, 12, 14, 16, 20, 21, 24, 4, 8, 10, 13, 19, 20, 21, 22, 23, 24, 26, 8, 12, 14, 17, 23, 24, 25, 26, 27, 28, 30, 12, 17, 19, 21, 16, 20, 21, 2...
78c9f92349ba834bc64dc84f884638c4316a9ea4
INPUT_MINBIAS = "/build/RAWReference/MinBias_RAW_320_STARTUP.root" INPUT_TTBAR = "/build/RAWReference/TTbar_RAW_320_STARTUP.root" puSTARTUP_TTBAR = "/build/RAWReference/TTbar_Tauola_PileUp_RAW_320_STARTUP.root" relval = { "step1": { "step": "GEN-HLT", "timesize": (100, ["MinBias", "TTbar"]), ...
[ 10834, 100, 4697, 10037, 1117, 299, 2450, 1848, 52, 20373, 3580, 52, 2944, 22134, 100, 20373, 100, 56, 55, 53, 100, 7393, 2430, 51, 2405, 39, 222, 10834, 100, 6992, 13495, 299, 2450, 1848, 52, 20373, 3580, 52, 6992, 1652, 100, 20373, ...
[ "INPUT", "_", "MIN", "BI", "AS", "Ġ=", "Ġ\"/", "build", "/", "RAW", "Reference", "/", "Min", "Bias", "_", "RAW", "_", "3", "2", "0", "_", "START", "UP", ".", "root", "\"", "Ċ", "INPUT", "_", "TT", "BAR", "Ġ=", "Ġ\"/", "build", "/", "RAW", "Refe...
[ 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, 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, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4...
[ 1, 6, 7, 10, 12, 14, 16, 19, 24, 25, 28, 37, 38, 41, 45, 46, 49, 50, 51, 52, 53, 54, 59, 61, 62, 66, 67, 1, 6, 7, 9, 12, 14, 17, 22, 23, 26, 35, 36, 38, 41, 42, 45, 46, 47, 48, 49, 50, 55, 57, 58, 62, 63, 1, ...
c6b261a09b2982e17704f847586bbf38d27cb786
from ._sinAction import * from ._sinActionFeedback import * from ._sinActionGoal import * from ._sinActionResult import * from ._sinFeedback import * from ._sinGoal import * from ._sinResult import *
[ 1097, 31830, 7137, 1728, 1220, 338, 222, 1097, 31830, 7137, 1728, 15362, 1220, 338, 222, 1097, 31830, 7137, 1728, 17350, 1220, 338, 222, 1097, 31830, 7137, 22575, 1220, 338, 222, 1097, 31830, 7137, 15362, 1220, 338, 222, 1097, 31830, 7137...
[ "from", "Ġ._", "sin", "Action", "Ġimport", "Ġ*", "Ċ", "from", "Ġ._", "sin", "Action", "Feedback", "Ġimport", "Ġ*", "Ċ", "from", "Ġ._", "sin", "Action", "Goal", "Ġimport", "Ġ*", "Ċ", "from", "Ġ._", "sin", "ActionResult", "Ġimport", "Ġ*", "Ċ", "from", "Ġ._...
[ 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7 ]
[ 1, 5, 8, 11, 17, 24, 26, 1, 5, 8, 11, 17, 25, 32, 34, 1, 5, 8, 11, 17, 21, 28, 30, 1, 5, 8, 11, 23, 30, 32, 1, 5, 8, 11, 19, 26, 28, 1, 5, 8, 11, 15, 22, 24, 1, 5, 8, 11, 17, 24, 26 ]
f4306f80330850415b74d729384f360489644e39
import unittest import numpy import pandas as pd import fixtures.examples_validate as examples from cellxgene_schema.validate import Validator from cellxgene_schema.write_labels import AnnDataLabelAppender # Tests for schema compliance of an AnnData object class TestValidAnndata(unittest.TestCase): """ Te...
[ 485, 15790, 222, 222, 485, 6610, 222, 485, 13247, 641, 6451, 222, 222, 485, 37705, 51, 7944, 100, 4647, 641, 8322, 222, 1097, 4046, 125, 16241, 100, 3982, 51, 4647, 1220, 19510, 222, 1097, 4046, 125, 16241, 100, 3982, 51, 1838, 100, ...
[ "import", "Ġunittest", "Ċ", "Ċ", "import", "Ġnumpy", "Ċ", "import", "Ġpandas", "Ġas", "Ġpd", "Ċ", "Ċ", "import", "Ġfixtures", ".", "examples", "_", "validate", "Ġas", "Ġexamples", "Ċ", "from", "Ġcell", "x", "gene", "_", "schema", ".", "validate", "Ġimport"...
[ 1, 1, 1, 2, 3, 3, 3, 4, 4, 4, 4, 4, 5, 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, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 10, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, ...
[ 1, 7, 16, 1, 1, 7, 13, 1, 7, 14, 17, 20, 1, 1, 7, 16, 17, 25, 26, 34, 37, 46, 1, 5, 10, 11, 15, 16, 22, 23, 31, 38, 48, 1, 5, 10, 11, 15, 16, 22, 23, 28, 29, 35, 42, 46, 50, 55, 63, 1, 1, 2, 8, 12, 19, 30, ...
ad3a7221883a847fc9d26097c3801973cbbda38e
from django.urls import path, include from Income import views urlpatterns = [ path("IncomeHome/", views.IncomeHome, name="IncomeHome"), path("IncomeCreate/", views.IncomeCreate.as_view(), name="IncomeCreate"), path("IncomeUpdate/<int:pk>", views.IncomeUpdate.as_view(), name="IncomeUpdate"), path("Inc...
[ 1097, 8532, 51, 11420, 1220, 1536, 49, 2323, 222, 222, 1097, 719, 3772, 1220, 11887, 222, 222, 983, 15735, 299, 447, 303, 1536, 459, 31779, 4637, 10974, 11887, 51, 31779, 4637, 49, 655, 366, 31779, 4637, 2132, 303, 1536, 459, 31779, 1...
[ "from", "Ġdjango", ".", "urls", "Ġimport", "Ġpath", ",", "Ġinclude", "Ċ", "Ċ", "from", "ĠIn", "come", "Ġimport", "Ġviews", "Ċ", "Ċ", "url", "patterns", "Ġ=", "Ġ[", "ĊĠĠĠ", "Ġpath", "(\"", "Income", "Home", "/\",", "Ġviews", ".", "Income", "Home", ",", ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 3, 3, 3, 3, 3, 3, 4, 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, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8...
[ 1, 5, 12, 13, 17, 24, 29, 30, 38, 1, 1, 5, 8, 12, 19, 25, 1, 1, 4, 12, 14, 16, 4, 9, 11, 17, 21, 24, 30, 31, 37, 41, 42, 47, 49, 55, 59, 62, 4, 9, 11, 17, 23, 26, 32, 33, 39, 45, 46, 48, 49, 53, 56, 61, 63, ...
180f7f0ade9770c6669680bd13ac8f2fd55cc8c7
def raizCubica(numero): r = pow(numero, (1 / 3)) return r numeros = [] raices = [] for x in range(5): numeros.insert(x, float(input("Ingrese Numero: "))) raices.insert(x, round(raizCubica(numeros[x]), 3)) print("Numeros: ", numeros) print("Raices: ", raices)
[ 610, 16535, 445, 36108, 5303, 45, 24391, 731, 303, 559, 299, 13157, 45, 24391, 49, 327, 54, 536, 244, 56, 509, 303, 461, 559, 499, 222, 1538, 14731, 299, 1627, 222, 1709, 1362, 299, 1627, 222, 222, 999, 837, 347, 2189, 45, 58, 731...
[ "def", "Ġra", "iz", "Cub", "ica", "(", "numero", "):", "ĊĠĠĠ", "Ġr", "Ġ=", "Ġpow", "(", "numero", ",", "Ġ(", "1", "Ġ/", "Ġ", "3", "))", "ĊĠĠĠ", "Ġreturn", "Ġr", "ĊĊ", "Ċ", "num", "eros", "Ġ=", "Ġ[]", "Ċ", "ra", "ices", "Ġ=", "Ġ[]", "Ċ", "Ċ", ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 5, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 8, 9, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 1...
[ 1, 4, 7, 9, 12, 15, 16, 22, 24, 4, 6, 8, 12, 13, 19, 20, 22, 23, 25, 26, 27, 29, 4, 11, 13, 1, 1, 4, 8, 10, 13, 1, 3, 7, 9, 12, 1, 1, 4, 6, 9, 15, 16, 17, 19, 4, 8, 12, 13, 19, 20, 21, 22, 28, 29, 34, 36,...
97ebdeada3d797a971b5c3851b75f9754595f67c
""" Python package setup file. """ from setuptools import setup setup( name="TF_Speech", version="0.2.0", extras_require={"tensorflow": ["tensorflow"], "tensorflow with gpu": ["tensorflow-gpu"]}, )
[ 3012, 222, 8378, 2670, 4721, 822, 51, 222, 3012, 222, 222, 1097, 29910, 1220, 4721, 222, 222, 5536, 45, 303, 655, 366, 5771, 100, 22023, 411, 303, 1522, 366, 53, 51, 55, 51, 53, 411, 303, 35960, 100, 1999, 8492, 13535, 582, 3059, ...
[ "\"\"\"", "Ċ", "Python", "Ġpackage", "Ġsetup", "Ġfile", ".", "Ċ", "\"\"\"", "Ċ", "Ċ", "from", "Ġsetuptools", "Ġimport", "Ġsetup", "Ċ", "Ċ", "setup", "(", "ĊĠĠĠ", "Ġname", "=\"", "TF", "_", "Speech", "\",", "ĊĠĠĠ", "Ġversion", "=\"", "0", ".", "2", ".",...
[ 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 4, 5, 5, 5, 5, 5, 6, 7, 7, 7, 8, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11 ]
[ 1, 4, 1, 7, 15, 21, 26, 27, 1, 4, 1, 1, 5, 16, 23, 29, 1, 1, 6, 7, 4, 9, 11, 13, 14, 20, 22, 4, 12, 14, 15, 16, 17, 18, 19, 21, 4, 11, 12, 19, 22, 32, 34, 37, 47, 50, 52, 62, 67, 71, 73, 76, 86, 87, 90, 92,...
9f34bf3a0bb24db428b7af1a354aec1d3a72df98
from random import randrange from django.core.exceptions import ValidationError from django.contrib.auth import get_user_model from rest_framework import serializers from rest_framework_simplejwt.serializers import TokenObtainPairSerializer from .models import EmailValidation from ..emails.models import Email from ....
[ 1097, 4051, 1220, 10510, 3623, 222, 222, 1097, 8532, 51, 1284, 51, 11453, 1220, 40026, 222, 1097, 8532, 51, 12060, 51, 2408, 1220, 640, 100, 514, 100, 1184, 222, 222, 1097, 6125, 100, 2863, 1220, 34229, 222, 1097, 6125, 100, 2863, 100...
[ "from", "Ġrandom", "Ġimport", "Ġrand", "range", "Ċ", "Ċ", "from", "Ġdjango", ".", "core", ".", "exceptions", "Ġimport", "ĠValidationError", "Ċ", "from", "Ġdjango", ".", "contrib", ".", "auth", "Ġimport", "Ġget", "_", "user", "_", "model", "Ċ", "Ċ", "from",...
[ 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, 4, 4, 4, 4, 5, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 8, 9, 9, 9, 9, 9, 9, 9, 10, 10, ...
[ 1, 5, 12, 19, 24, 29, 1, 1, 5, 12, 13, 17, 18, 28, 35, 51, 1, 5, 12, 13, 20, 21, 25, 32, 36, 37, 41, 42, 47, 1, 1, 5, 10, 11, 20, 27, 39, 1, 5, 10, 11, 20, 21, 27, 30, 31, 42, 49, 55, 57, 61, 65, 75, 1, 1, ...
2ca91c410b8c8d6306d5ed918783a4d77a091ba8
from typing import List from re import match from utility import ButtonGroup import rumps class RepeatWorkBreak(rumps.App): def __init__(self): rumps.debug_mode(True) self.config = { "app_title": "Repeat Work and Break", "start": "Start", "pause": "Pause Timer"...
[ 1097, 12018, 1220, 1701, 222, 1097, 334, 1220, 2549, 222, 1097, 15479, 1220, 7413, 1582, 222, 485, 559, 2311, 120, 499, 222, 842, 39839, 3003, 10440, 45, 119, 2311, 120, 51, 1306, 731, 303, 684, 1176, 1683, 3232, 803, 731, 310, 559, ...
[ "from", "Ġtyping", "Ġimport", "ĠList", "Ċ", "from", "Ġre", "Ġimport", "Ġmatch", "Ċ", "from", "Ġutility", "Ġimport", "ĠButton", "Group", "Ċ", "import", "Ġr", "ump", "s", "ĊĊ", "Ċ", "class", "ĠRepeat", "Work", "Break", "(", "r", "ump", "s", ".", "App", "...
[ 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 6, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 11, 11, 11, 11, 11, 11, 12, 12, 12, 12...
[ 1, 5, 12, 19, 24, 1, 5, 8, 15, 21, 1, 5, 13, 20, 27, 32, 1, 7, 9, 12, 13, 1, 1, 6, 13, 17, 22, 23, 24, 27, 28, 29, 32, 34, 4, 8, 11, 15, 18, 22, 24, 8, 10, 13, 14, 15, 20, 21, 25, 26, 30, 31, 8, 13, 14, 20,...
8bc40ed4fe1091ecdb40cd55ff9cf53010078823
import requests import json data = json.load(open("dummy_data/data.json")) for one in data: print(one) r = requests.post("http://localhost:8080/sumari", json=one) print(r.text)
[ 485, 5188, 222, 485, 2379, 222, 222, 624, 299, 2379, 51, 963, 45, 1693, 459, 11230, 100, 624, 52, 624, 51, 1279, 2152, 222, 222, 999, 1611, 347, 727, 63, 303, 1489, 45, 677, 46, 303, 559, 299, 5188, 51, 1545, 459, 544, 574, 5112...
[ "import", "Ġrequests", "Ċ", "import", "Ġjson", "Ċ", "Ċ", "data", "Ġ=", "Ġjson", ".", "load", "(", "open", "(\"", "dummy", "_", "data", "/", "data", ".", "json", "\"))", "Ċ", "Ċ", "for", "Ġone", "Ġin", "Ġdata", ":", "ĊĠĠĠ", "Ġprint", "(", "one", ")"...
[ 1, 1, 1, 2, 2, 2, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 6, 6, 6, 6, 6, 6, 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, 9, 9, 9, 9, 9...
[ 1, 7, 16, 1, 7, 12, 1, 1, 5, 7, 12, 13, 17, 18, 22, 24, 29, 30, 34, 35, 39, 40, 44, 47, 1, 1, 4, 8, 11, 16, 17, 4, 10, 11, 14, 15, 4, 6, 8, 17, 18, 22, 24, 28, 31, 40, 41, 42, 43, 44, 45, 46, 49, 52, 54, 59...
4e9a968842c2b3eca79690f0b56c8e176b203138
print((9 * int(input()) / 5) + 32)
[ 1243, 1181, 62, 338, 648, 45, 1151, 1177, 536, 244, 58, 46, 494, 244, 56, 55, 46, 222 ]
[ "print", "((", "9", "Ġ*", "Ġint", "(", "input", "())", "Ġ/", "Ġ", "5", ")", "Ġ+", "Ġ", "3", "2", ")", "Ċ" ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 6, 8, 9, 11, 15, 16, 21, 24, 26, 27, 28, 29, 31, 32, 33, 34, 35 ]
7a1bd2b4734527a414c6173ea8edb150221f8042
import numpy as np import pandas as pd from scipy.optimize import minimize from datetime import datetime import time from functions import weather_scraper def getData(): # # run weather_scraper.py to fetch new weather data # weather_scraper.getData() ## Read in csv file "weather_data.csv" weather_dat...
[ 485, 6610, 641, 2115, 222, 485, 13247, 641, 6451, 222, 1097, 18945, 51, 22990, 1220, 32949, 222, 1097, 7181, 1220, 7181, 222, 485, 1153, 222, 1097, 4465, 1220, 20104, 100, 564, 26877, 499, 222, 610, 22920, 2284, 303, 607, 607, 1441, 2...
[ "import", "Ġnumpy", "Ġas", "Ġnp", "Ċ", "import", "Ġpandas", "Ġas", "Ġpd", "Ċ", "from", "Ġscipy", ".", "optimize", "Ġimport", "Ġminimize", "Ċ", "from", "Ġdatetime", "Ġimport", "Ġdatetime", "Ċ", "import", "Ġtime", "Ċ", "from", "Ġfunctions", "Ġimport", "Ġweather"...
[ 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 8, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 11, ...
[ 1, 7, 13, 16, 19, 1, 7, 14, 17, 20, 1, 5, 11, 12, 20, 27, 36, 1, 5, 14, 21, 30, 1, 7, 12, 1, 5, 15, 22, 30, 31, 33, 38, 1, 1, 4, 12, 15, 4, 6, 8, 12, 20, 21, 23, 28, 29, 31, 34, 40, 44, 52, 57, 4, 6, 14, ...
1bdb19373960e4f63d80d6ab73ec3c0939e40b7f
import contextlib import dask import dask.array as da import packaging.version import pandas import six import sklearn SK_VERSION = packaging.version.parse(sklearn.__version__) DASK_VERSION = packaging.version.parse(dask.__version__) PANDAS_VERSION = packaging.version.parse(pandas.__version__) @contextlib.contextma...
[ 485, 1637, 1379, 222, 222, 485, 362, 933, 222, 485, 362, 933, 51, 977, 641, 5301, 222, 485, 36413, 51, 1687, 222, 485, 13247, 222, 485, 18834, 222, 485, 14415, 222, 222, 9727, 100, 4539, 299, 36413, 51, 1687, 51, 2228, 45, 45974, ...
[ "import", "Ġcontext", "lib", "Ċ", "Ċ", "import", "Ġd", "ask", "Ċ", "import", "Ġd", "ask", ".", "array", "Ġas", "Ġda", "Ċ", "import", "Ġpackaging", ".", "version", "Ċ", "import", "Ġpandas", "Ċ", "import", "Ġsix", "Ċ", "import", "Ġsklearn", "Ċ", "Ċ", "SK...
[ 1, 1, 1, 1, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 7, 7, 7, 8, 8, 8, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, ...
[ 1, 7, 15, 18, 1, 1, 7, 9, 12, 1, 7, 9, 12, 13, 18, 21, 24, 1, 7, 17, 18, 25, 1, 7, 14, 1, 7, 11, 1, 7, 15, 1, 1, 3, 4, 11, 13, 23, 24, 31, 32, 37, 38, 45, 48, 55, 58, 1, 2, 5, 6, 13, 15, 25, 26, 33, 34, ...
a4f932a8566afe0265dc1057d0f6534a608697f7
""" LeetCode Problem: 242. Valid Anagram Link: https://leetcode.com/problems/valid-anagram/ Written by: Mostofa Adib Shakib Language: Python """ class Solution(object): def isAnagram(self, s, t): """ :type s: str :type t: str :rtype: bool """ length1 = len(s) ...
[ 3012, 222, 43608, 18031, 63, 244, 55, 57, 55, 51, 5397, 2262, 8353, 222, 2375, 63, 1698, 574, 19403, 51, 527, 52, 23389, 52, 1346, 50, 297, 8353, 52, 222, 23361, 829, 63, 19576, 1048, 102, 3604, 947, 2432, 793, 947, 222, 5980, 63,...
[ "\"\"\"", "Ċ", "LeetCode", "ĠProblem", ":", "Ġ", "2", "4", "2", ".", "ĠValid", "ĠAn", "agram", "Ċ", "Link", ":", "Ġhttps", "://", "leetcode", ".", "com", "/", "problems", "/", "valid", "-", "an", "agram", "/", "Ċ", "Written", "Ġby", ":", "ĠMost", "...
[ 1, 1, 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, 5, 5, 5, 5, 6, 6, 8, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, ...
[ 1, 4, 1, 9, 17, 18, 19, 20, 21, 22, 23, 29, 32, 37, 1, 5, 6, 12, 15, 23, 24, 27, 28, 36, 37, 42, 43, 45, 50, 51, 1, 8, 11, 12, 17, 19, 20, 23, 25, 28, 30, 32, 1, 9, 10, 17, 1, 4, 1, 1, 6, 15, 16, 22, 24, 4,...
6dd11f71e514a46462bf0b97ddac9ea474e86ad0
import os, glob import numpy as np from ..algorithms.utils import get_file_manager from ..algorithms.clustered_writes import * from ..exp_utils import create_empty_dir def test_get_entity_sizes(): # in C order bytes_per_voxel = 1 R = (10, 9, 10) cs = (5, 3, 2) partition = (2, 3, 5) bs, brs, b...
[ 485, 2355, 49, 12542, 222, 485, 6610, 641, 2115, 222, 222, 1097, 4390, 15097, 51, 2324, 1220, 640, 100, 781, 100, 4031, 222, 1097, 4390, 15097, 51, 5208, 337, 100, 26862, 1220, 338, 222, 1097, 4390, 2858, 100, 2324, 1220, 1506, 100, ...
[ "import", "Ġos", ",", "Ġglob", "Ċ", "import", "Ġnumpy", "Ġas", "Ġnp", "Ċ", "Ċ", "from", "Ġ..", "algorithms", ".", "utils", "Ġimport", "Ġget", "_", "file", "_", "manager", "Ċ", "from", "Ġ..", "algorithms", ".", "cluster", "ed", "_", "writes", "Ġimport", ...
[ 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 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, 8, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 1...
[ 1, 7, 10, 11, 16, 1, 7, 13, 16, 19, 1, 1, 5, 8, 18, 19, 24, 31, 35, 36, 40, 41, 48, 1, 5, 8, 18, 19, 26, 28, 29, 35, 42, 44, 1, 5, 8, 11, 12, 17, 24, 31, 32, 37, 38, 41, 1, 1, 4, 9, 10, 13, 14, 20, 21, 26, ...
c09c02a36a64e9522cfc8c0951bd6c98f404f09c
# Random number guessing game. # 10 July 20 # CTI-110 P5HW1 - Random Number # Thelma Majette import random randomNumber = random.randint(1, 100) # main function def main(): # Create a variable to control the loop. keep_going = "y" while keep_going == "y": # Ask user for a number () guess...
[ 40, 9607, 1470, 11107, 318, 4204, 51, 222, 40, 244, 54, 53, 32853, 244, 55, 53, 222, 40, 409, 1944, 50, 54, 54, 53, 466, 58, 14650, 54, 449, 9607, 5132, 222, 40, 906, 113, 954, 507, 2512, 15837, 222, 222, 485, 4051, 222, 222, ...
[ "#", "ĠRandom", "Ġnumber", "Ġguess", "ing", "Ġgame", ".", "Ċ", "#", "Ġ", "1", "0", "ĠJuly", "Ġ", "2", "0", "Ċ", "#", "ĠC", "TI", "-", "1", "1", "0", "ĠP", "5", "HW", "1", "Ġ-", "ĠRandom", "ĠNumber", "Ċ", "#", "ĠThe", "l", "ma", "ĠM", "aj", ...
[ 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, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 5, 6, 6, 6, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 10, 11, 11, ...
[ 1, 2, 9, 16, 22, 25, 30, 31, 1, 2, 3, 4, 5, 10, 11, 12, 13, 1, 2, 4, 6, 7, 8, 9, 10, 12, 13, 15, 16, 18, 25, 32, 1, 2, 6, 7, 9, 11, 13, 17, 1, 1, 7, 14, 1, 1, 7, 13, 15, 22, 23, 30, 31, 32, 33, 34, 35, ...
798ddd4a6e4febb4664bf1c973877628d1a45c71
from django.conf.urls import patterns, include, url # Uncomment the next two lines to enable the admin: # from django.contrib import admin # admin.autodiscover() urlpatterns = patterns( "accounts.views", url(r"^$", "home", name="home"), url(r"^login/$", "login", name="login"), url(r"^logout/$", "logou...
[ 1097, 8532, 51, 2982, 51, 11420, 1220, 15137, 49, 2323, 49, 2001, 222, 222, 40, 47234, 341, 2371, 3161, 5452, 391, 5362, 341, 5611, 63, 222, 40, 664, 8532, 51, 12060, 1220, 5611, 222, 40, 5611, 51, 4872, 450, 316, 4120, 365, 222, ...
[ "from", "Ġdjango", ".", "conf", ".", "urls", "Ġimport", "Ġpatterns", ",", "Ġinclude", ",", "Ġurl", "Ċ", "Ċ", "#", "ĠUncomment", "Ġthe", "Ġnext", "Ġtwo", "Ġlines", "Ġto", "Ġenable", "Ġthe", "Ġadmin", ":", "Ċ", "#", "Ġfrom", "Ġdjango", ".", "contrib", "Ġim...
[ 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, 3, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 9...
[ 1, 5, 12, 13, 17, 18, 22, 29, 38, 39, 47, 48, 52, 1, 1, 2, 12, 16, 21, 25, 31, 34, 41, 45, 51, 52, 1, 2, 7, 14, 15, 22, 29, 35, 1, 2, 8, 9, 12, 14, 16, 21, 23, 1, 1, 4, 12, 14, 23, 24, 4, 6, 14, 15, 20, 22,...
3340277df91f1421dab8d204eddce65b4604432b
from django.shortcuts import render, redirect from .models import Courses from django.views.generic import CreateView, ListView, UpdateView, DeleteView from .forms import CourceCreateForm from django.urls import reverse_lazy from django.urls import reverse class CourceListView(ListView): model = Courses templ...
[ 1097, 8532, 51, 36264, 1220, 2922, 49, 5675, 222, 1097, 657, 3404, 1220, 26021, 1490, 222, 1097, 8532, 51, 4361, 51, 9957, 1220, 2673, 1089, 49, 29816, 49, 4013, 1089, 49, 6802, 1089, 222, 1097, 657, 8543, 1220, 409, 722, 1940, 1260, ...
[ "from", "Ġdjango", ".", "shortcuts", "Ġimport", "Ġrender", ",", "Ġredirect", "Ċ", "from", "Ġ.", "models", "Ġimport", "ĠCour", "ses", "Ċ", "from", "Ġdjango", ".", "views", ".", "generic", "Ġimport", "ĠCreate", "View", ",", "ĠListView", ",", "ĠUpdate", "View",...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 8, 9, 9, 9, 9...
[ 1, 5, 12, 13, 22, 29, 36, 37, 46, 1, 5, 7, 13, 20, 25, 28, 1, 5, 12, 13, 18, 19, 26, 33, 40, 44, 45, 54, 55, 62, 66, 67, 74, 78, 1, 5, 7, 12, 19, 21, 26, 32, 36, 1, 5, 12, 13, 17, 24, 32, 33, 37, 1, 5, 12, ...
66444047f9e5eea845c8ac2dbaaf16fc2914d6ec
if answ[1] == "дата": apisay(datetime.date.today(), toho, torep)
[ 344, 619, 1605, 96, 54, 98, 630, 332, 4382, 40151, 582, 303, 1863, 316, 414, 45, 6703, 51, 787, 51, 16029, 1046, 391, 3493, 49, 391, 4332, 46, 222 ]
[ "if", "Ġan", "sw", "[", "1", "]", "Ġ==", "Ġ\"", "д", "аÑĤа", "\":", "ĊĠĠĠ", "Ġap", "is", "ay", "(", "datetime", ".", "date", ".", "today", "(),", "Ġto", "ho", ",", "Ġto", "rep", ")", "Ċ" ]
[ 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 ]
[ 1, 3, 6, 8, 9, 10, 11, 14, 16, 17, 20, 22, 4, 7, 9, 11, 12, 20, 21, 25, 26, 31, 34, 37, 39, 40, 43, 46, 47 ]
d2f6d7c779d3d6e61d9da7af01a2931fdabec828
import random choices = ["X", "O"] try: # Choice of X-O given to the player player_sym = input("Choose 'X' or 'O' : ") # raising an exception if the variable is not X or O if player_sym != "X" and player_sym != "O": raise Exception("Symbol not found") except Exception as e: print(e....
[ 485, 4051, 222, 222, 19878, 299, 3059, 93, 411, 332, 84, 1465, 222, 1287, 63, 303, 607, 281, 37461, 451, 1618, 50, 84, 2716, 391, 341, 4376, 303, 4376, 100, 7923, 299, 1533, 459, 21028, 349, 93, 44, 575, 349, 84, 44, 518, 7816, ...
[ "import", "Ġrandom", "Ċ", "Ċ", "choices", "Ġ=", "Ġ[\"", "X", "\",", "Ġ\"", "O", "\"]", "Ċ", "try", ":", "ĊĠĠĠ", "Ġ#", "ĠĠĠĠ", "ĠChoice", "Ġof", "ĠX", "-", "O", "Ġgiven", "Ġto", "Ġthe", "Ġplayer", "ĊĠĠĠ", "Ġplayer", "_", "sym", "Ġ=", "Ġinput", "(\"", ...
[ 1, 1, 1, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 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, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8...
[ 1, 7, 14, 1, 1, 8, 10, 13, 14, 16, 18, 19, 21, 1, 4, 5, 4, 6, 10, 17, 20, 22, 23, 24, 30, 33, 37, 44, 4, 11, 12, 15, 17, 23, 25, 31, 33, 34, 35, 38, 40, 41, 42, 44, 47, 4, 6, 10, 12, 18, 21, 31, 34, 38, 47, ...
b4c6075aabe833f6fe23471f608d928edd25ef63
from .base import paw_test class warning_test(paw_test): def test_warning_badchars(self): self.paw.cset_lookup(self.badchar) self.assertEqual(1, self.paw.wcount)
[ 1097, 657, 1460, 1220, 317, 831, 100, 881, 499, 222, 842, 5987, 100, 881, 45, 117, 831, 100, 881, 731, 303, 684, 913, 100, 5718, 100, 3387, 13004, 45, 803, 731, 310, 649, 51, 117, 831, 51, 104, 489, 100, 10124, 45, 803, 51, 3387...
[ "from", "Ġ.", "base", "Ġimport", "Ġp", "aw", "_", "test", "ĊĊ", "Ċ", "class", "Ġwarning", "_", "test", "(", "p", "aw", "_", "test", "):", "ĊĠĠĠ", "Ġdef", "Ġtest", "_", "warning", "_", "bad", "chars", "(", "self", "):", "ĊĠĠĠĠĠĠĠ", "Ġself", ".", "p"...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7 ]
[ 1, 5, 7, 11, 18, 20, 22, 23, 27, 1, 1, 6, 14, 15, 19, 20, 21, 23, 24, 28, 30, 4, 8, 13, 14, 21, 22, 25, 30, 31, 35, 37, 8, 13, 14, 15, 17, 18, 19, 22, 23, 29, 30, 34, 35, 38, 42, 43, 8, 13, 14, 25, 26, 27, 28...
24c9b562411a63f0d3f2ee509bb60dafe7fbecd1
import os from flask import Flask # from flask_login import LoginManager from flask_sqlalchemy import SQLAlchemy # from flask_bcrypt import Bcrypt from flask_wtf.csrf import CSRFProtect app = Flask(__name__) csrf = CSRFProtect(app) # bcrypt = Bcrypt(app) app.config["SECRET_KEY"] = "v\xf9\xf7\x11\x13\x18\xfaMYp\xed_...
[ 485, 2355, 222, 1097, 18958, 1220, 24033, 222, 222, 40, 664, 18958, 100, 3632, 1220, 10660, 1590, 222, 1097, 18958, 100, 41228, 1220, 4447, 43108, 222, 222, 40, 664, 18958, 100, 45139, 1220, 570, 3712, 222, 1097, 18958, 100, 124, 4274, ...
[ "import", "Ġos", "Ċ", "from", "Ġflask", "Ġimport", "ĠFlask", "Ċ", "Ċ", "#", "Ġfrom", "Ġflask", "_", "login", "Ġimport", "ĠLogin", "Manager", "Ċ", "from", "Ġflask", "_", "sqlalchemy", "Ġimport", "ĠSQL", "Alchemy", "Ċ", "Ċ", "#", "Ġfrom", "Ġflask", "_", "b...
[ 1, 1, 1, 2, 2, 2, 2, 2, 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, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 9, 10, 10, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 11, ...
[ 1, 7, 10, 1, 5, 11, 18, 24, 1, 1, 2, 7, 13, 14, 19, 26, 32, 39, 1, 5, 11, 12, 22, 29, 33, 40, 1, 1, 2, 7, 13, 14, 20, 27, 29, 34, 1, 5, 11, 12, 13, 15, 16, 20, 27, 32, 39, 1, 1, 4, 6, 12, 15, 19, 22, 1, 5...
14a357f3dfb3d59f1d8cfd566edeaf8b0e5bb56d
#!/usr/bin/env python import rospy from geometry_msgs.msg import Twist from sensor_msgs.msg import Joy import serial from sys import platform if platform == "linux" or platform == "linux2": ser = serial.Serial("/dev/ttyACM0") elif platform == "darwin": pass elif platform == "win32": # Windows... ser =...
[ 8758, 3392, 52, 1793, 52, 2141, 4406, 222, 485, 33746, 222, 1097, 13036, 100, 12617, 51, 2093, 1220, 12037, 446, 222, 1097, 11556, 100, 12617, 51, 2093, 1220, 13923, 126, 222, 222, 485, 4569, 222, 1097, 5263, 1220, 5637, 222, 222, 344...
[ "#!/", "usr", "/", "bin", "/", "env", "Ġpython", "Ċ", "import", "Ġrospy", "Ċ", "from", "Ġgeometry", "_", "msgs", ".", "msg", "Ġimport", "ĠTw", "ist", "Ċ", "from", "Ġsensor", "_", "msgs", ".", "msg", "Ġimport", "ĠJo", "y", "Ċ", "Ċ", "import", "Ġserial...
[ 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 6, 6, 6, 7, 7, 7, 7, 7, 8, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, ...
[ 1, 4, 7, 8, 11, 12, 15, 22, 1, 7, 13, 1, 5, 14, 15, 19, 20, 23, 30, 33, 36, 1, 5, 12, 13, 17, 18, 21, 28, 31, 32, 1, 1, 7, 14, 1, 5, 9, 16, 25, 1, 1, 3, 12, 15, 17, 22, 23, 26, 35, 38, 40, 45, 46, 48, 4, ...
1ef9df43725196904ec6c0c881f4a1204174b176
import requests, shutil, os, glob from zipfile import ZipFile import pandas as pd from xlrd import open_workbook import csv # zipfilename = 'desiya_hotels' # try: # # downloading zip file # r = requests.get('http://staticstore.travelguru.com/testdump/1300001176/Excel.zip', auth=('testdump', 'testdump'), verify...
[ 485, 5188, 49, 23074, 49, 2355, 49, 12542, 222, 1097, 8617, 781, 1220, 23049, 991, 222, 485, 13247, 641, 6451, 222, 1097, 32317, 5344, 1220, 2177, 100, 43049, 222, 485, 11490, 222, 222, 40, 8617, 3633, 299, 349, 305, 3450, 9491, 100, ...
[ "import", "Ġrequests", ",", "Ġshutil", ",", "Ġos", ",", "Ġglob", "Ċ", "from", "Ġzip", "file", "Ġimport", "ĠZip", "File", "Ċ", "import", "Ġpandas", "Ġas", "Ġpd", "Ċ", "from", "Ġxl", "rd", "Ġimport", "Ġopen", "_", "workbook", "Ċ", "import", "Ġcsv", "Ċ", ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 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, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 1...
[ 1, 7, 16, 17, 24, 25, 28, 29, 34, 1, 5, 9, 13, 20, 24, 28, 1, 7, 14, 17, 20, 1, 5, 8, 10, 17, 22, 23, 31, 1, 7, 11, 1, 1, 2, 6, 14, 16, 18, 20, 22, 24, 25, 28, 31, 32, 1, 2, 6, 7, 1, 2, 6, 8, 20, 24, 29, ...
7a59c8c883a9aaa723175783e01aa62e23503fde
#!/C:\Program Files (x86)\Python35-32 # importar librarias necesarias from urllib.request import urlopen from bs4 import BeautifulSoup
[ 8758, 72, 3509, 5756, 11105, 327, 125, 61, 59, 5443, 8378, 56, 58, 50, 56, 55, 222, 222, 40, 1220, 301, 34950, 2828, 321, 29269, 2828, 321, 222, 1097, 22296, 51, 1375, 1220, 13387, 33875, 222, 1097, 14270, 57, 1220, 39693, 222 ]
[ "#!/", "C", ":\\", "Program", "ĠFiles", "Ġ(", "x", "8", "6", ")\\", "Python", "3", "5", "-", "3", "2", "Ċ", "Ċ", "#", "Ġimport", "ar", "Ġlibr", "ari", "as", "Ġneces", "ari", "as", "Ċ", "from", "Ġurllib", ".", "request", "Ġimport", "Ġur", "lopen", ...
[ 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, 3, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5 ]
[ 1, 4, 5, 7, 14, 20, 22, 23, 24, 25, 27, 33, 34, 35, 36, 37, 38, 1, 1, 2, 9, 11, 16, 19, 21, 27, 30, 32, 1, 5, 12, 13, 20, 27, 30, 35, 1, 5, 8, 9, 16, 30 ]
48d0bfdc607a4605ef82f5c7dc7fd6fc85c4255f
""" BMI=weight*0.45259227/(hei*0.0254)** """ wht = 2 if wht == 0: print("wht is", wht) else: print("whtsdsb") # 今天也完成了100波比跳 wei = float(input("wei=")) hei = float(input("hei=")) bmi = (wei * 0.45259227) / ((hei * 0.0254) ** 2) print("BMI=", bmi) if bmi < 18.5: print("too light") elif bmi < 25: print("...
[ 3012, 222, 71, 5899, 66, 3327, 47, 53, 51, 57, 58, 55, 58, 62, 55, 55, 60, 13953, 311, 110, 47, 53, 51, 53, 55, 58, 57, 9642, 222, 3012, 222, 222, 124, 403, 299, 244, 55, 222, 344, 360, 403, 630, 244, 53, 63, 303, 1489, 45...
[ "\"\"\"", "Ċ", "B", "MI", "=", "weight", "*", "0", ".", "4", "5", "2", "5", "9", "2", "2", "7", "/(", "he", "i", "*", "0", ".", "0", "2", "5", "4", ")**", "Ċ", "\"\"\"", "Ċ", "Ċ", "w", "ht", "Ġ=", "Ġ", "2", "Ċ", "if", "Ġw", "ht", "Ġ==...
[ 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, 3, 3, 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, 8, 8, 8, 9, 9, 9, 9, 9...
[ 1, 4, 1, 2, 4, 5, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 24, 26, 27, 28, 29, 30, 31, 32, 33, 34, 37, 1, 4, 1, 1, 2, 4, 6, 7, 8, 1, 3, 5, 7, 10, 11, 12, 13, 4, 10, 12, 13, 15, 18, 20, 22, 24, 25, ...
05e4bcc7323b908a7b45d766ada463ce172e25c4
import graphene import f1hub.drivers.schema import f1hub.results.schema import f1hub.constructors.schema import f1hub.races.schema import f1hub.status.schema import f1hub.circuits.schema import f1hub.constructorresults.schema import f1hub.constructorstandings.schema import f1hub.driverstandings.schema import f1hub.lap...
[ 485, 4023, 2126, 222, 222, 485, 315, 54, 8530, 51, 18146, 51, 3982, 222, 485, 315, 54, 8530, 51, 4333, 51, 3982, 222, 485, 315, 54, 8530, 51, 6322, 1758, 51, 3982, 222, 485, 315, 54, 8530, 51, 119, 2576, 51, 3982, 222, 485, 315,...
[ "import", "Ġgraph", "ene", "Ċ", "Ċ", "import", "Ġf", "1", "hub", ".", "drivers", ".", "schema", "Ċ", "import", "Ġf", "1", "hub", ".", "results", ".", "schema", "Ċ", "import", "Ġf", "1", "hub", ".", "construct", "ors", ".", "schema", "Ċ", "import", ...
[ 1, 1, 1, 1, 2, 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, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 9, 9...
[ 1, 7, 13, 16, 1, 1, 7, 9, 10, 13, 14, 21, 22, 28, 1, 7, 9, 10, 13, 14, 21, 22, 28, 1, 7, 9, 10, 13, 14, 23, 26, 27, 33, 1, 7, 9, 10, 13, 14, 15, 19, 20, 26, 1, 7, 9, 10, 13, 14, 20, 21, 27, 1, 7, 9, 10, 1...
7530c2c85f83d1714840ba97c1ec702f063658c5
from typing import List import glm import pxng import OpenGL.GL as gl class VertexArrayObject: def __init__(self, primitive): self._primitive = primitive self._buffers: List[pxng.BufferObject] = [] self._indices = pxng.BufferObject(data_type=self.index_data_type, array_type=gl.GL_ELEMENT...
[ 1097, 12018, 1220, 1701, 222, 222, 485, 16793, 222, 485, 9249, 1159, 222, 222, 485, 26194, 51, 2079, 641, 3978, 499, 222, 842, 15657, 1280, 976, 63, 303, 684, 1176, 1683, 3232, 803, 49, 17135, 731, 310, 649, 1132, 19678, 299, 17135, ...
[ "from", "Ġtyping", "Ġimport", "ĠList", "Ċ", "Ċ", "import", "Ġglm", "Ċ", "import", "Ġpx", "ng", "Ċ", "Ċ", "import", "ĠOpenGL", ".", "GL", "Ġas", "Ġgl", "ĊĊ", "Ċ", "class", "ĠVertex", "Array", "Object", ":", "ĊĠĠĠ", "Ġdef", "Ġ__", "init", "__(", "self", ...
[ 1, 1, 1, 1, 1, 2, 3, 3, 3, 4, 4, 4, 4, 5, 6, 6, 6, 6, 6, 6, 6, 8, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12...
[ 1, 5, 12, 19, 24, 1, 1, 7, 11, 1, 7, 10, 12, 1, 1, 7, 14, 15, 17, 20, 23, 1, 1, 6, 13, 18, 24, 25, 4, 8, 11, 15, 18, 22, 23, 33, 35, 8, 13, 15, 24, 26, 36, 8, 13, 15, 22, 23, 28, 29, 31, 33, 34, 40, 46, 47,...
1f7d770106ea8e7d1c0bb90e1fc576b7ee2f0220
# Generated by Django 3.0.8 on 2020-08-28 17:37 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ("shop", "0003_auto_20200828_1836"), ] operations = [ migrations.AddField( model_name="order", name="total", ...
[ 40, 13046, 829, 18288, 244, 56, 51, 53, 51, 61, 563, 244, 55, 53, 55, 53, 50, 53, 61, 50, 55, 61, 244, 54, 60, 63, 56, 60, 222, 222, 1097, 8532, 51, 1219, 1220, 12520, 49, 4590, 499, 222, 842, 18572, 45, 19772, 51, 12071, 73...
[ "#", "ĠGenerated", "Ġby", "ĠDjango", "Ġ", "3", ".", "0", ".", "8", "Ġon", "Ġ", "2", "0", "2", "0", "-", "0", "8", "-", "2", "8", "Ġ", "1", "7", ":", "3", "7", "Ċ", "Ċ", "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, 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...
[ 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, 1, 6, 16, 17, 27, 28, 37, 39, 4, 17, 19, 21, 8, 11, 15...
01847c9e601eae6775cd4324483740c30e344557
from django.apps import AppConfig class CfCoreConfig(AppConfig): name = "cf_core"
[ 1097, 8532, 51, 7520, 1220, 2013, 1081, 499, 222, 842, 409, 107, 2869, 1081, 45, 42728, 731, 303, 655, 299, 332, 2185, 100, 1284, 39, 222 ]
[ "from", "Ġdjango", ".", "apps", "Ġimport", "ĠApp", "Config", "ĊĊ", "Ċ", "class", "ĠC", "f", "Core", "Config", "(", "AppConfig", "):", "ĊĠĠĠ", "Ġname", "Ġ=", "Ġ\"", "cf", "_", "core", "\"", "Ċ" ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5 ]
[ 1, 5, 12, 13, 17, 24, 28, 34, 1, 1, 6, 8, 9, 13, 19, 20, 29, 31, 4, 9, 11, 13, 15, 16, 20, 21 ]
ca11e9cf0bcfcbd714c45b5c95bd2c2044b65909
"""Woma objects for dealing with HTTP. Request and Response inherit from webob's Request and Response objects, so see http://docs.webob.org/en/latest/ for full documentation. The only things documented here are the customizations. """ from webob import Request as BaseRequest from webob import Response as BaseRespons...
[ 3012, 92, 15809, 4706, 456, 31459, 642, 4818, 51, 222, 222, 1123, 480, 5178, 11096, 664, 1019, 23259, 1200, 4463, 480, 5178, 4706, 49, 1278, 2337, 222, 544, 574, 2198, 51, 1399, 23259, 51, 1107, 52, 291, 52, 5341, 52, 456, 3559, 434...
[ "\"\"\"", "W", "oma", "Ġobjects", "Ġfor", "Ġdealing", "Ġwith", "ĠHTTP", ".", "Ċ", "Ċ", "Request", "Ġand", "ĠResponse", "Ġinherit", "Ġfrom", "Ġwe", "bob", "'s", "ĠRequest", "Ġand", "ĠResponse", "Ġobjects", ",", "Ġso", "Ġsee", "Ċ", "http", "://", "docs", "."...
[ 1, 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, 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, 6, 7, 7, 8, 9, 9, 9...
[ 1, 4, 5, 8, 16, 20, 28, 33, 38, 39, 1, 1, 8, 12, 21, 29, 34, 37, 40, 42, 50, 54, 63, 71, 72, 75, 79, 1, 5, 8, 12, 13, 15, 18, 19, 22, 23, 25, 26, 32, 33, 37, 42, 56, 57, 61, 66, 73, 1, 9, 11, 16, 20, 24, 31, ...
2c22f891f30825bcb97987c78a98988ad2a92210
import os import sys import json import logging import argparse from glob import glob from pricewatcher.tools import ensure_mkdir from pricewatcher.parser.f21 import ForeverParser from pricewatcher.parser.jcrew import JcrewParser from pricewatcher.utils.load_es import bulk_load_es BRAND_PARSERS = {"forever21": Foreve...
[ 485, 2355, 222, 485, 5263, 222, 485, 2379, 222, 485, 5751, 222, 485, 16693, 222, 1097, 12542, 1220, 12542, 222, 222, 1097, 1173, 314, 412, 765, 284, 51, 4303, 1220, 7197, 100, 10211, 222, 1097, 1173, 314, 412, 765, 284, 51, 3936, 51...
[ "import", "Ġos", "Ċ", "import", "Ġsys", "Ċ", "import", "Ġjson", "Ċ", "import", "Ġlogging", "Ċ", "import", "Ġargparse", "Ċ", "from", "Ġglob", "Ġimport", "Ġglob", "Ċ", "Ċ", "from", "Ġpr", "ic", "ew", "atch", "er", ".", "tools", "Ġimport", "Ġensure", "_", ...
[ 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 5, 5, 5, 6, 6, 6, 6, 6, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 9, 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, 1...
[ 1, 7, 10, 1, 7, 11, 1, 7, 12, 1, 7, 15, 1, 7, 16, 1, 5, 10, 17, 22, 1, 1, 5, 8, 10, 12, 16, 18, 19, 24, 31, 38, 39, 44, 1, 5, 8, 10, 12, 16, 18, 19, 25, 26, 27, 28, 29, 36, 41, 44, 50, 1, 5, 8, 10, 12, 16...
3cd7abf9659fe1db0ef3aa58df8dd7fd959e10a6
import os import csv import re totWords = 0 wordLen = 0 totSentWithPunctuation = 0 sourceFile = os.path.join("Resources", "paragraph_2.txt") with open(sourceFile, "r") as paragraph: paragraph = paragraph.read().split("\n\n") for sentence in paragraph: # Remove punctuation from sentences sentWithPunctua...
[ 485, 2355, 222, 485, 11490, 222, 485, 334, 222, 222, 9059, 13587, 299, 244, 53, 222, 1131, 5752, 299, 244, 53, 222, 9059, 10486, 1569, 85, 24768, 299, 244, 53, 222, 222, 1876, 991, 299, 2355, 51, 1005, 51, 2548, 459, 6061, 411, 33...
[ "import", "Ġos", "Ċ", "import", "Ġcsv", "Ċ", "import", "Ġre", "Ċ", "Ċ", "tot", "Words", "Ġ=", "Ġ", "0", "Ċ", "word", "Len", "Ġ=", "Ġ", "0", "Ċ", "tot", "Sent", "With", "P", "unctuation", "Ġ=", "Ġ", "0", "Ċ", "Ċ", "source", "File", "Ġ=", "Ġos", ...
[ 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 7, 7, 8, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 10, 11, 11, 11, 11, 11, 11, 11, 11, 11, 1...
[ 1, 7, 10, 1, 7, 11, 1, 7, 10, 1, 1, 4, 9, 11, 12, 13, 1, 5, 8, 10, 11, 12, 1, 4, 8, 12, 13, 23, 25, 26, 27, 1, 1, 7, 11, 13, 16, 17, 21, 22, 26, 28, 37, 39, 41, 50, 51, 52, 53, 56, 58, 1, 1, 5, 10, 11, 17...
b95619f3f52ff3747e38ecc153123962d0122a4d
# noinspection PyStatementEffect { "name": "ldap_user", "summary": "", "description": "域账号用户管理,登录及查询用户信息", "author": "", "website": "", "source": {"git": "https://github.com/LeiQiao/Parasite-Plugins.git", "branch": "master"}, "category": "", "version": "0.1", "api": { "/user/...
[ 40, 1307, 28924, 4374, 5510, 5572, 222, 128, 303, 332, 444, 582, 332, 19406, 100, 514, 411, 303, 332, 1386, 582, 4343, 303, 332, 2328, 582, 332, 15113, 38074, 7840, 10177, 1140, 17602, 12325, 14768, 7840, 7853, 411, 303, 332, 2133, 58...
[ "#", "Ġno", "inspection", "ĠPy", "Statement", "Effect", "Ċ", "{", "ĊĠĠĠ", "Ġ\"", "name", "\":", "Ġ\"", "ldap", "_", "user", "\",", "ĊĠĠĠ", "Ġ\"", "summary", "\":", "Ġ\"\",", "ĊĠĠĠ", "Ġ\"", "description", "\":", "Ġ\"", "åŁŁ", "è´¦åı·", "ç͍æĪ·", "管çIJĨ", ...
[ 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 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, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8...
[ 1, 2, 5, 15, 18, 27, 33, 1, 2, 4, 6, 10, 12, 14, 18, 19, 23, 25, 4, 6, 13, 15, 19, 4, 6, 17, 19, 21, 22, 24, 26, 28, 29, 31, 32, 34, 36, 38, 40, 4, 6, 12, 14, 18, 4, 6, 13, 15, 19, 4, 6, 12, 14, 17, 20, 22,...
484d104a8481a707a187d0bcb30898c3459a88be
# -*- coding: utf-8 -*- from django.conf.urls import patterns, include, url from apps.virt.views import node, domain, device, cluster, home urlpatterns = patterns( "", # Home url(r"^$", home.HomeView.as_view(), name="home"), # Cluster url(r"^cluster/status/$", cluster.ClusterStatusView.as_view(), ...
[ 40, 8571, 10633, 63, 6471, 50, 61, 8571, 222, 222, 1097, 8532, 51, 2982, 51, 11420, 1220, 15137, 49, 2323, 49, 2001, 222, 1097, 11568, 51, 18316, 51, 4361, 1220, 1560, 49, 5900, 49, 3313, 49, 4925, 49, 6780, 222, 222, 983, 15735, ...
[ "#", "Ġ-*-", "Ġcoding", ":", "Ġutf", "-", "8", "Ġ-*-", "Ċ", "Ċ", "from", "Ġdjango", ".", "conf", ".", "urls", "Ġimport", "Ġpatterns", ",", "Ġinclude", ",", "Ġurl", "Ċ", "from", "Ġapps", ".", "virt", ".", "views", "Ġimport", "Ġnode", ",", "Ġdomain", "...
[ 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, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 6, 6, 6, 6, 6, 6, 7, 7, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9...
[ 1, 2, 6, 13, 14, 18, 19, 20, 24, 1, 1, 5, 12, 13, 17, 18, 22, 29, 38, 39, 47, 48, 52, 1, 5, 10, 11, 15, 16, 21, 28, 33, 34, 41, 42, 49, 50, 58, 59, 64, 1, 1, 4, 12, 14, 23, 24, 4, 8, 4, 6, 11, 4, 8, 9, 10, ...
545794cf4f0b2ab63b6a90951a78f8bdaca3c9e6
from collections import defaultdict as dd def grouping(w): d = dd(list) for k, v in ((len([y for y in x if y.isupper()]), x) for x in sorted(w, key=str.casefold)): d[k].append(v) return dict(sorted(d.items()))
[ 1097, 13722, 1220, 31701, 641, 14713, 499, 222, 610, 33006, 45, 124, 731, 303, 362, 299, 14713, 45, 687, 46, 303, 456, 851, 49, 373, 347, 1849, 1688, 2034, 126, 456, 553, 347, 837, 434, 553, 51, 316, 7647, 365, 5759, 837, 46, 456,...
[ "from", "Ġcollections", "Ġimport", "Ġdefaultdict", "Ġas", "Ġdd", "ĊĊ", "Ċ", "def", "Ġgrouping", "(", "w", "):", "ĊĠĠĠ", "Ġd", "Ġ=", "Ġdd", "(", "list", ")", "ĊĠĠĠ", "Ġfor", "Ġk", ",", "Ġv", "Ġin", "Ġ((", "len", "([", "y", "Ġfor", "Ġy", "Ġin", "Ġx", ...
[ 1, 1, 1, 1, 1, 1, 1, 3, 4, 4, 4, 4, 4, 4, 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, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7...
[ 1, 5, 17, 24, 36, 39, 42, 1, 1, 4, 13, 14, 15, 17, 4, 6, 8, 11, 12, 16, 17, 4, 8, 10, 11, 13, 16, 19, 22, 24, 25, 29, 31, 34, 36, 39, 41, 42, 44, 49, 51, 54, 56, 57, 61, 63, 66, 73, 74, 75, 76, 80, 81, 84, 85...
ab844143ceddf32982682f5092762af0c97db577
from ..translators.translator import Translator
[ 1097, 4390, 1568, 113, 4079, 51, 24802, 1220, 3574, 12044, 222 ]
[ "from", "Ġ..", "trans", "l", "ators", ".", "translator", "Ġimport", "ĠTrans", "lator", "Ċ" ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 5, 8, 13, 14, 19, 20, 30, 37, 43, 48 ]
0762c5bec2d796bb7888e3de45e29fb20f88f491
from starter2 import * from collections import defaultdict import scipy import colors import hair_dryer reload(hair_dryer) import three_loopers_u500 as TL import movie_frames def GE_pearson(this_looper, core_list=None): if core_list is None: core_list = np.unique(this_looper.tr.core_ids) name = th...
[ 1097, 40202, 55, 1220, 338, 222, 1097, 13722, 1220, 31701, 222, 485, 18945, 222, 485, 9660, 222, 222, 485, 42946, 100, 24222, 284, 222, 222, 12998, 45, 32518, 100, 24222, 284, 46, 222, 222, 485, 8058, 100, 335, 116, 3368, 100, 122, ...
[ "from", "Ġstarter", "2", "Ġimport", "Ġ*", "Ċ", "from", "Ġcollections", "Ġimport", "Ġdefaultdict", "Ċ", "import", "Ġscipy", "Ċ", "import", "Ġcolors", "Ċ", "Ċ", "import", "Ġhair", "_", "dry", "er", "Ċ", "Ċ", "reload", "(", "hair", "_", "dry", "er", ")", ...
[ 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 4, 4, 4, 5, 6, 6, 6, 6, 6, 6, 7, 8, 8, 8, 8, 8, 8, 8, 8, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 13, 14, 14, 14, 14, 14...
[ 1, 5, 13, 14, 21, 23, 1, 5, 17, 24, 36, 1, 7, 13, 1, 7, 14, 1, 1, 7, 12, 13, 16, 18, 1, 1, 7, 8, 12, 13, 16, 18, 19, 1, 1, 7, 13, 14, 16, 17, 21, 22, 23, 24, 25, 26, 29, 32, 1, 7, 13, 14, 20, 1, 1, 4, 7, ...
7bbbd30ba1578c1165ccf5c2fff22609c16dfd64
""" Cores no terminal """ a = 3 b = 5 print("Os valores são \033[32m{}\033[m e \033[31m{}\033[m !!!".format(a, b)) # Dicionário de cores: nome = "Kátia" cores = {"limpa": "\033]m", "azul": "\033[34m", "amarelo": "\033[33m", "pretoebranco": "\033[7;30m"} print("Prazer em te conhecer, {}{}{}!!!".format(cores["azul"], ...
[ 3012, 222, 2253, 595, 1307, 10733, 222, 3012, 222, 222, 102, 299, 244, 56, 222, 103, 299, 244, 58, 222, 1243, 459, 14587, 26065, 20976, 788, 53, 56, 56, 96, 56, 55, 114, 29189, 53, 56, 56, 96, 114, 503, 788, 53, 56, 56, 96, 56...
[ "\"\"\"", "Ċ", "Co", "res", "Ġno", "Ġterminal", "Ċ", "\"\"\"", "Ċ", "Ċ", "a", "Ġ=", "Ġ", "3", "Ċ", "b", "Ġ=", "Ġ", "5", "Ċ", "print", "(\"", "Os", "Ġvalores", "Ġsão", "Ġ\\", "0", "3", "3", "[", "3", "2", "m", "{}\\", "0", "3", "3", "[", "m...
[ 1, 1, 2, 2, 2, 2, 2, 3, 3, 4, 5, 5, 5, 5, 5, 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, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 8...
[ 1, 4, 1, 3, 6, 9, 18, 1, 4, 1, 1, 2, 4, 5, 6, 1, 2, 4, 5, 6, 1, 6, 8, 10, 18, 22, 24, 25, 26, 27, 28, 29, 30, 31, 34, 35, 36, 37, 38, 39, 41, 43, 44, 45, 46, 47, 48, 49, 50, 53, 54, 55, 56, 57, 58, 62, 64...
b5ac3695a224d531f5baa53a07d3c894d44e8c4c
import matplotlib.pyplot as plt Ci_MSB = [32, 16, 8, 4, 2, 1] Ci_LSB = [16, 8, 4, 2, 1] CB = 1 CP_B = 0 CP_LSB = (32 - 1) * (CB + CP_B - 1) + 10 print(CP_LSB) CP_MSB = 0 Csum_LSB = sum(Ci_LSB) + CP_LSB Csum_MSB = sum(Ci_MSB) + CP_MSB Cx = Csum_LSB * Csum_MSB + (CB + CP_B) * Csum_LSB + (CB + CP_B) * Csum_MSB Wi_MSB = [...
[ 485, 13168, 51, 18553, 641, 6020, 222, 222, 21392, 100, 39920, 299, 447, 56, 55, 49, 244, 54, 59, 49, 244, 61, 49, 244, 57, 49, 244, 55, 49, 244, 54, 98, 222, 21392, 100, 37722, 299, 447, 54, 59, 49, 244, 61, 49, 244, 57, 49...
[ "import", "Ġmatplotlib", ".", "pyplot", "Ġas", "Ġplt", "Ċ", "Ċ", "Ci", "_", "MSB", "Ġ=", "Ġ[", "3", "2", ",", "Ġ", "1", "6", ",", "Ġ", "8", ",", "Ġ", "4", ",", "Ġ", "2", ",", "Ġ", "1", "]", "Ċ", "Ci", "_", "LSB", "Ġ=", "Ġ[", "1", "6", "...
[ 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, 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, 6, 6, 6, 6, 6...
[ 1, 7, 18, 19, 25, 28, 32, 1, 1, 3, 4, 7, 9, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 1, 3, 4, 7, 9, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 1, ...
c9d12f14fa0e46e4590746d45862fe255b415a1d
# vim: expandtab # -*- coding: utf-8 -*- from poleno.utils.template import Library from chcemvediet.apps.obligees.models import Obligee register = Library() @register.simple_tag def gender(gender, masculine, feminine, neuter, plurale): if gender == Obligee.GENDERS.MASCULINE: return masculine elif ge...
[ 40, 19232, 63, 11782, 3019, 222, 40, 8571, 10633, 63, 6471, 50, 61, 8571, 222, 1097, 7757, 7899, 51, 2324, 51, 2402, 1220, 13395, 222, 1097, 683, 24192, 2256, 6675, 51, 7520, 51, 926, 393, 319, 326, 51, 3404, 1220, 5842, 393, 41067,...
[ "#", "Ġvim", ":", "Ġexpand", "tab", "Ċ", "#", "Ġ-*-", "Ġcoding", ":", "Ġutf", "-", "8", "Ġ-*-", "Ċ", "from", "Ġpol", "eno", ".", "utils", ".", "template", "Ġimport", "ĠLibrary", "Ċ", "from", "Ġch", "cem", "ved", "iet", ".", "apps", ".", "ob", "li",...
[ 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 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, 6, 7, 7, 7, 7, 7, 9, 10, 10, 10, 10, 10, 10, 10, 11, 11, 11, 1...
[ 1, 2, 6, 7, 14, 17, 1, 2, 6, 13, 14, 18, 19, 20, 24, 1, 5, 9, 12, 13, 18, 19, 27, 34, 42, 1, 5, 8, 11, 14, 17, 18, 22, 23, 25, 27, 29, 31, 32, 38, 45, 48, 50, 53, 1, 1, 9, 11, 19, 21, 1, 1, 2, 10, 11, 17, ...
58e023c3c453d1e190fdb5bc457358f42d1bd93f
# https://leetcode.com/problems/how-many-numbers-are-smaller-than-the-current-number/ # BruteForce class BruteForceSolution: def smallerNumbersThanCurrent(self, nums): answer = [] for num in nums: counter = 0 for i in range(len(nums)): if nums[i] < num: ...
[ 40, 1698, 574, 19403, 51, 527, 52, 23389, 52, 6910, 50, 11412, 50, 14995, 50, 605, 50, 47727, 50, 20954, 50, 1402, 50, 1719, 50, 2188, 52, 222, 222, 40, 10360, 1161, 10500, 499, 222, 842, 10360, 1161, 10500, 13667, 63, 303, 684, 1...
[ "#", "Ġhttps", "://", "leetcode", ".", "com", "/", "problems", "/", "how", "-", "many", "-", "numbers", "-", "are", "-", "smaller", "-", "than", "-", "the", "-", "current", "-", "number", "/", "Ċ", "Ċ", "#", "ĠBr", "ute", "Force", "ĊĊ", "Ċ", "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, 2, 3, 3, 3, 3, 3, 5, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 10, 10, 10, 10, 10, 1...
[ 1, 2, 8, 11, 19, 20, 23, 24, 32, 33, 36, 37, 41, 42, 49, 50, 53, 54, 61, 62, 66, 67, 70, 71, 78, 79, 85, 86, 1, 1, 2, 5, 8, 13, 1, 1, 6, 9, 12, 17, 25, 26, 4, 8, 16, 23, 27, 34, 35, 39, 40, 45, 47, 8, 15, 1...
b4b7e20c9558bd1b29a1c1fa24bfca8a2d292b27
import xml.etree.ElementTree as ET # tree = ET.parse('rutas/rutas_prueba.xml') # treeToAdd = ET.parse('rutas/rutas_prueba_agregar.xml') # root = tree.getroot() # git rootToAdd = treeToAdd.getroot() # for child in root: # for test in child: # print(test.tag, test.attrib) # for elem in root.iter(): # ...
[ 485, 5604, 51, 48659, 51, 1325, 3371, 641, 20520, 222, 222, 40, 4369, 299, 20520, 51, 2228, 482, 24919, 321, 52, 24919, 321, 100, 796, 35917, 51, 2608, 704, 222, 40, 4369, 27099, 299, 20520, 51, 2228, 482, 24919, 321, 52, 24919, 321...
[ "import", "Ġxml", ".", "etree", ".", "Element", "Tree", "Ġas", "ĠET", "Ċ", "Ċ", "#", "Ġtree", "Ġ=", "ĠET", ".", "parse", "('", "rut", "as", "/", "rut", "as", "_", "pr", "ueba", ".", "xml", "')", "Ċ", "#", "Ġtree", "ToAdd", "Ġ=", "ĠET", ".", "pa...
[ 1, 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, 3, 4, 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...
[ 1, 7, 11, 12, 17, 18, 25, 29, 32, 35, 1, 1, 2, 7, 9, 12, 13, 18, 20, 23, 25, 26, 29, 31, 32, 34, 38, 39, 42, 44, 1, 2, 7, 12, 14, 17, 18, 23, 25, 28, 30, 31, 34, 36, 37, 39, 43, 44, 46, 51, 52, 55, 57, 1, 1, ...
97bbb181cbc0f5bfbf0b2298133fc226b6217d91
import tensorflow as tf from tensorflow.python.framework import graph_util from net import siameseNet_batchnorm as siameseNet import dataset import numpy as np import cv2 import os batch_size = 64 input_height = 32 input_width = 32 total_epoch_num = 50 snapshot = 100 support_image_extensions = [".jpg", ".png", ".jpeg"...
[ 485, 15196, 641, 5369, 222, 1097, 15196, 51, 2980, 51, 2863, 1220, 4023, 100, 1058, 222, 1097, 3723, 1220, 7087, 340, 296, 3598, 100, 4476, 8005, 641, 7087, 340, 296, 3598, 222, 485, 5984, 222, 485, 6610, 641, 2115, 222, 485, 6781, ...
[ "import", "Ġtensorflow", "Ġas", "Ġtf", "Ċ", "from", "Ġtensorflow", ".", "python", ".", "framework", "Ġimport", "Ġgraph", "_", "util", "Ċ", "from", "Ġnet", "Ġimport", "Ġsi", "ame", "se", "Net", "_", "batch", "norm", "Ġas", "Ġsi", "ame", "se", "Net", "Ċ", ...
[ 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, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 8, 9, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, ...
[ 1, 7, 18, 21, 24, 1, 5, 16, 17, 23, 24, 33, 40, 46, 47, 51, 1, 5, 9, 16, 19, 22, 24, 27, 28, 33, 37, 40, 43, 46, 48, 51, 1, 7, 15, 1, 7, 13, 16, 19, 1, 7, 10, 11, 1, 7, 10, 1, 1, 6, 7, 11, 13, 14, 15, 16, ...
68f3d3fce52d08381adc522ee032ef3181aec82a
# Generated by Django 2.2.3 on 2019-07-27 10:41 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ("beerFriends", "0006_auto_20190726_1504"), ] operations = [ migrations.AlterField( model_name="beer", name="rating", ...
[ 40, 13046, 829, 18288, 244, 55, 51, 55, 51, 56, 563, 244, 55, 53, 54, 62, 50, 53, 60, 50, 55, 60, 244, 54, 53, 63, 57, 54, 222, 222, 1097, 8532, 51, 1219, 1220, 12520, 49, 4590, 499, 222, 842, 18572, 45, 19772, 51, 12071, 73...
[ "#", "ĠGenerated", "Ġby", "ĠDjango", "Ġ", "2", ".", "2", ".", "3", "Ġon", "Ġ", "2", "0", "1", "9", "-", "0", "7", "-", "2", "7", "Ġ", "1", "0", ":", "4", "1", "Ċ", "Ċ", "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, 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...
[ 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, 1, 6, 16, 17, 27, 28, 37, 39, 4, 17, 19, 21, 8, 11, 15...
4775bef3623497e9bbe79ca2d4e9e9da0422c450
# # # # ------------------------------------------------------------------------------------------------------------------------------ # # This program have been developed by Hamed Noori and with citiation of the related publicaitons # can be used without permission. # This program is for a novel architecture for traff...
[ 40, 222, 40, 222, 40, 222, 40, 6549, 5888, 9001, 222, 40, 222, 40, 1369, 3477, 1178, 2602, 18928, 829, 696, 27807, 3155, 15860, 480, 642, 29702, 12926, 451, 341, 5898, 581, 1149, 2632, 222, 40, 902, 545, 1674, 2895, 6504, 51, 222, ...
[ "#", "Ċ", "#", "Ċ", "#", "Ċ", "#", "Ġ----------------------------------------------------------------", "------------------------------------------------", "--------------", "Ċ", "#", "Ċ", "#", "ĠThis", "Ġprogram", "Ġhave", "Ġbeen", "Ġdeveloped", "Ġby", "ĠH", "amed", "ĠNo...
[ 1, 1, 2, 2, 3, 3, 4, 4, 4, 4, 4, 5, 5, 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, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 9, 9...
[ 1, 2, 1, 2, 1, 2, 1, 2, 67, 115, 129, 1, 2, 1, 2, 7, 15, 20, 25, 35, 38, 40, 44, 47, 50, 54, 59, 63, 69, 72, 76, 84, 91, 94, 97, 1, 2, 6, 9, 14, 22, 33, 34, 1, 2, 7, 15, 18, 22, 24, 30, 43, 47, 55, 61, 69, ...
d82412055affc96d634957c953a35ea69b7e702f
"""Turning on or off, toggling and checking the status' of a specific relay""" #!/bin/env python3 from time import sleep from gpiozero import LED RELAYS = [LED(23), LED(24), LED(25), LED(8), LED(7), LED(1), LED(12), LED(16)] def on_action(relay_option, number): """To turn on the chosen relay""" relay_optio...
[ 3012, 13665, 318, 563, 575, 2143, 49, 391, 108, 36065, 480, 11087, 341, 2302, 44, 451, 331, 2835, 31088, 3012, 222, 222, 8758, 1793, 52, 2141, 4406, 56, 222, 222, 1097, 1153, 1220, 9375, 222, 1097, 26092, 6187, 1220, 17827, 222, 222, ...
[ "\"\"\"", "Turn", "ing", "Ġon", "Ġor", "Ġoff", ",", "Ġto", "g", "gling", "Ġand", "Ġchecking", "Ġthe", "Ġstatus", "'", "Ġof", "Ġa", "Ġspecific", "Ġrelay", "\"\"\"", "Ċ", "Ċ", "#!/", "bin", "/", "env", "Ġpython", "3", "Ċ", "Ċ", "from", "Ġtime", "Ġimport"...
[ 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, 6, 6, 6, 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...
[ 1, 4, 8, 11, 14, 17, 21, 22, 25, 26, 31, 35, 44, 48, 55, 56, 59, 61, 70, 76, 79, 1, 1, 4, 7, 8, 11, 18, 19, 1, 1, 5, 10, 17, 23, 1, 5, 10, 14, 21, 25, 1, 1, 3, 6, 7, 9, 11, 14, 15, 16, 17, 19, 23, 24, 25, ...
862b529741d9c3e6cf7ca50272c8af724c56ac62
from wasserstoff.wasserstoff import Config, Environment __all__ = ["Config", "Environment"]
[ 1097, 360, 40088, 289, 1739, 51, 124, 40088, 289, 1739, 1220, 3395, 49, 10584, 222, 222, 523, 483, 523, 299, 3059, 1081, 411, 332, 6342, 1465, 222 ]
[ "from", "Ġw", "asser", "st", "off", ".", "w", "asser", "st", "off", "Ġimport", "ĠConfig", ",", "ĠEnvironment", "Ċ", "Ċ", "__", "all", "__", "Ġ=", "Ġ[\"", "Config", "\",", "Ġ\"", "Environment", "\"]", "Ċ" ]
[ 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, 3, 3 ]
[ 1, 5, 7, 12, 14, 17, 18, 19, 24, 26, 29, 36, 43, 44, 56, 1, 1, 3, 6, 8, 10, 13, 19, 21, 23, 34, 36 ]
6d25b0fedf0d5081a3a0a93ddacc49748464d9d0
# Required python libraries for attack.py import socket import os import sys from termcolor import colored import StringIO import time # need to find Python equivalent libraries for these import stdio import stdlib import unistd # need to find Python equivalent libraries for these import includes import killer impor...
[ 40, 11529, 4406, 11382, 456, 11142, 51, 997, 222, 485, 6241, 222, 485, 2355, 222, 485, 5263, 222, 1097, 5626, 1507, 1220, 38714, 222, 485, 44614, 222, 485, 1153, 222, 222, 40, 1868, 391, 2309, 5006, 13765, 11382, 456, 3301, 222, 222, ...
[ "#", "ĠRequired", "Ġpython", "Ġlibraries", "Ġfor", "Ġattack", ".", "py", "Ċ", "import", "Ġsocket", "Ċ", "import", "Ġos", "Ċ", "import", "Ġsys", "Ċ", "from", "Ġterm", "color", "Ġimport", "Ġcolored", "Ċ", "import", "ĠStringIO", "Ċ", "import", "Ġtime", "Ċ", "...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 7, 7, 7, 8, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 10, 11, 11, 11, 11, 12, 12, 12, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14,...
[ 1, 2, 11, 18, 28, 32, 39, 40, 42, 1, 7, 14, 1, 7, 10, 1, 7, 11, 1, 5, 10, 15, 22, 30, 1, 7, 16, 1, 7, 12, 1, 1, 2, 7, 10, 15, 22, 33, 43, 47, 53, 1, 1, 7, 11, 13, 1, 7, 14, 1, 7, 10, 13, 14, 1, 2, 7, 10...
e57b30a7a1cf987918abfb3cb7d612bdead2ddcd
from django.db import models # Create your models here. class Airlines(models.Model): flight_number = models.CharField(max_length=8, unique=True) airlines_id = models.CharField(max_length=10) source = models.CharField(max_length=20) destination = models.CharField(max_length=20) departure = models....
[ 1097, 8532, 51, 1219, 1220, 4590, 499, 222, 40, 2673, 1390, 4590, 2464, 51, 222, 842, 18982, 4466, 45, 3404, 51, 1262, 731, 303, 26762, 100, 2188, 299, 4590, 51, 16347, 45, 1472, 100, 1340, 66, 61, 49, 5823, 66, 1844, 46, 303, 153...
[ "from", "Ġdjango", ".", "db", "Ġimport", "Ġmodels", "ĊĊ", "Ċ", "#", "ĠCreate", "Ġyour", "Ġmodels", "Ġhere", ".", "Ċ", "class", "ĠAir", "lines", "(", "models", ".", "Model", "):", "ĊĠĠĠ", "Ġflight", "_", "number", "Ġ=", "Ġmodels", ".", "CharField", "(", ...
[ 1, 1, 1, 1, 1, 1, 1, 3, 4, 4, 4, 4, 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, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8...
[ 1, 5, 12, 13, 15, 22, 29, 1, 1, 2, 9, 14, 21, 26, 27, 1, 6, 10, 15, 16, 22, 23, 28, 30, 4, 11, 12, 18, 20, 27, 28, 37, 38, 41, 42, 48, 49, 50, 51, 58, 59, 63, 64, 4, 8, 13, 14, 16, 18, 25, 26, 35, 36, 39, 40,...
2827a56c12c1e15a6fe26ce182aa07d76735d77f
""" MDSANIMA Setup """ import sys import pathlib from setuptools import setup, find_packages HERE = pathlib.Path(__file__).parent CURRENT_PYTHON = sys.version_info[:2] REQUIRED_PYTHON = (3, 6) # This check and everything above must remain compatible with Python 2.7. if CURRENT_PYTHON < REQUIRED_PYTHON: sys.stde...
[ 3012, 222, 82, 4150, 946, 78, 1418, 10840, 222, 3012, 222, 222, 485, 5263, 222, 485, 30293, 222, 1097, 29910, 1220, 4721, 49, 2309, 100, 5051, 222, 222, 4400, 299, 30293, 51, 1233, 4077, 781, 25537, 2562, 222, 222, 13929, 100, 22076, ...
[ "\"\"\"", "Ċ", "M", "DS", "AN", "I", "MA", "ĠSetup", "Ċ", "\"\"\"", "Ċ", "Ċ", "import", "Ġsys", "Ċ", "import", "Ġpathlib", "Ċ", "from", "Ġsetuptools", "Ġimport", "Ġsetup", ",", "Ġfind", "_", "packages", "Ċ", "Ċ", "HERE", "Ġ=", "Ġpathlib", ".", "Path", ...
[ 1, 1, 2, 2, 2, 2, 2, 2, 2, 3, 3, 4, 5, 5, 5, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 7, 7, 8, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 10, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 12, 12, ...
[ 1, 4, 1, 2, 4, 6, 7, 9, 15, 1, 4, 1, 1, 7, 11, 1, 7, 15, 1, 5, 16, 23, 29, 30, 35, 36, 44, 1, 1, 5, 7, 15, 16, 20, 23, 27, 31, 37, 1, 1, 8, 9, 15, 17, 21, 22, 29, 30, 34, 36, 37, 38, 1, 9, 10, 16, 18, 2...
d4ac5c6f08e9baa458fbe0ca7aa90c4d9372844f
import h5py import numpy as np # import tracking dt = h5py.special_dtype(vlen=bytes) def stringDataset(group, name, data, system=None): dset = group.create_dataset(name, (1,), dtype=dt, data=data) if system: addSystemAttribute(dset, system) return dset def addStringAttribute(dset_or_group, name...
[ 485, 439, 58, 997, 222, 485, 6610, 641, 2115, 222, 40, 1220, 15549, 222, 222, 2654, 299, 439, 58, 997, 51, 10105, 100, 12094, 45, 123, 1688, 66, 3669, 46, 499, 222, 610, 821, 9440, 45, 1382, 49, 655, 49, 727, 49, 2684, 66, 2545,...
[ "import", "Ġh", "5", "py", "Ċ", "import", "Ġnumpy", "Ġas", "Ġnp", "Ċ", "#", "Ġimport", "Ġtracking", "Ċ", "Ċ", "dt", "Ġ=", "Ġh", "5", "py", ".", "special", "_", "dtype", "(", "v", "len", "=", "bytes", ")", "ĊĊ", "Ċ", "def", "Ġstring", "Dataset", "...
[ 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 7, 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, 9, 9, 9, 9, 9, 9, 9...
[ 1, 7, 9, 10, 12, 1, 7, 13, 16, 19, 1, 2, 9, 18, 1, 1, 3, 5, 7, 8, 10, 11, 18, 19, 24, 25, 26, 29, 30, 35, 36, 1, 1, 4, 11, 18, 19, 24, 25, 30, 31, 36, 37, 44, 45, 49, 51, 4, 6, 9, 11, 17, 18, 24, 25, 32, ...
4d388c912915c3f1f9e433f1342289f0864b3a11
# /usr/bin/python # File: UdpClient.py # Author: David Zemon # Project: Project1 # # Created with: PyCharm Community Edition """ @description: """ __author__ = "david" import logging from src.UDP import UDPClient logging.basicConfig(level="DEBUG") serverName = "127.0.0.1" serverPort = 12000 client = UDPClient...
[ 40, 536, 3392, 52, 1793, 52, 2980, 222, 40, 2050, 63, 283, 650, 5994, 1503, 51, 997, 222, 40, 6265, 63, 244, 23241, 2538, 6004, 222, 40, 5426, 63, 5426, 54, 222, 40, 222, 40, 6956, 642, 63, 4374, 2674, 114, 20562, 24480, 222, 22...
[ "#", "Ġ/", "usr", "/", "bin", "/", "python", "Ċ", "#", "ĠFile", ":", "ĠĠĠ", "ĠU", "dp", "Client", ".", "py", "Ċ", "#", "ĠAuthor", ":", "Ġ", "ĠDavid", "ĠZ", "emon", "Ċ", "#", "ĠProject", ":", "ĠProject", "1", "Ċ", "#", "Ċ", "#", "ĠCreated", "Ġwi...
[ 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, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 8, 8, 9, 9, 9, 9, 10, 10, 11, 12, 12, 12, 12, 12, 12, 12, 1...
[ 1, 2, 4, 7, 8, 11, 12, 18, 1, 2, 7, 8, 11, 13, 15, 21, 22, 24, 1, 2, 9, 10, 11, 17, 19, 23, 1, 2, 10, 11, 19, 20, 1, 2, 1, 2, 10, 15, 16, 19, 23, 24, 34, 42, 1, 1, 4, 1, 2, 13, 14, 1, 4, 1, 1, 3, 9, 11,...
cd5945631a9dd505bf67089bab8c5a37ad375129
import pandas as pd df1 = pd.read_csv("../final/your_no.tsv", "\t") df2 = pd.read_csv("../../Downloads/me.csv", "\t") final = pd.concat([df1, df2]) final.to_csv("../../Downloads/final_con_final.tsv", sep="\t", index=False)
[ 485, 13247, 641, 6451, 222, 222, 1519, 54, 299, 6451, 51, 870, 100, 4849, 15471, 3242, 52, 8772, 100, 1365, 51, 28729, 411, 2724, 121, 678, 222, 1519, 55, 299, 6451, 51, 870, 100, 4849, 33419, 27467, 52, 308, 51, 4849, 411, 2724, ...
[ "import", "Ġpandas", "Ġas", "Ġpd", "Ċ", "Ċ", "df", "1", "Ġ=", "Ġpd", ".", "read", "_", "csv", "(\"../", "final", "/", "your", "_", "no", ".", "tsv", "\",", "Ġ\"\\", "t", "\")", "Ċ", "df", "2", "Ġ=", "Ġpd", ".", "read", "_", "csv", "(\"../../", ...
[ 1, 1, 1, 1, 1, 2, 3, 3, 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, 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...
[ 1, 7, 14, 17, 20, 1, 1, 3, 4, 6, 9, 10, 14, 15, 18, 23, 28, 29, 33, 34, 36, 37, 40, 42, 45, 46, 48, 1, 3, 4, 6, 9, 10, 14, 15, 18, 26, 35, 36, 38, 39, 42, 44, 47, 48, 50, 1, 6, 8, 11, 12, 18, 20, 22, 23, 24...
16b425d7b8cde1aabe038ccae6922091afb84415
# coding: utf-8 # In[1]: import matplotlib.pyplot as plt import matplotlib import pandas as pd import numpy as np from pandas import DataFrame, Series import os, re # In[2]: OUTPUT_EXCEL = "월별원내약품사용현황.xlsx" # In[3]: # 데이타셋 준비 data_source_dir = "사용량월별통계/원내" dfs = [] for fname in os.listdir(data_source_dir): ...
[ 40, 10633, 63, 6471, 50, 61, 222, 222, 40, 719, 96, 54, 2805, 222, 222, 485, 13168, 51, 18553, 641, 6020, 222, 485, 13168, 222, 485, 13247, 641, 6451, 222, 485, 6610, 641, 2115, 222, 1097, 13247, 1220, 23069, 49, 20956, 222, 485, ...
[ "#", "Ġcoding", ":", "Ġutf", "-", "8", "Ċ", "Ċ", "#", "ĠIn", "[", "1", "]:", "Ċ", "Ċ", "import", "Ġmatplotlib", ".", "pyplot", "Ġas", "Ġplt", "Ċ", "import", "Ġmatplotlib", "Ċ", "import", "Ġpandas", "Ġas", "Ġpd", "Ċ", "import", "Ġnumpy", "Ġas", "Ġnp",...
[ 1, 1, 1, 1, 1, 1, 1, 2, 3, 3, 3, 3, 3, 3, 4, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 12, 13, 13, 13, 13, 13, 13, 14, 15, 15, 15, 15, 15, ...
[ 1, 2, 9, 10, 14, 15, 16, 1, 1, 2, 5, 6, 7, 9, 1, 1, 7, 18, 19, 25, 28, 32, 1, 7, 18, 1, 7, 14, 17, 20, 1, 7, 13, 16, 19, 1, 5, 12, 19, 29, 30, 37, 1, 7, 10, 11, 14, 1, 1, 2, 5, 6, 7, 9, 1, 1, 7, 8, 10...
0eaaa81d3c8bc61368701e1916b42ede88b90d04
# EXERCISE: # Plotting distributions pairwise (2) # In this exercise, you will generate pairwise joint distributions again. This time, you will make two particular # additions: # - You will display regressions as well as scatter plots in the off-diagonal subplots. You will do this with the # argument kind='reg' (whe...
[ 40, 2800, 546, 4264, 825, 63, 222, 222, 40, 19171, 1073, 28654, 6120, 3790, 327, 55, 46, 222, 222, 40, 719, 477, 22467, 49, 863, 1118, 4468, 6120, 3790, 16234, 28654, 4076, 51, 1369, 1153, 49, 863, 1118, 1949, 3161, 8445, 222, 40, ...
[ "#", "ĠEX", "ER", "CI", "SE", ":", "Ċ", "Ċ", "#", "ĠPlot", "ting", "Ġdistributions", "Ġpair", "wise", "Ġ(", "2", ")", "Ċ", "Ċ", "#", "ĠIn", "Ġthis", "Ġexercise", ",", "Ġyou", "Ġwill", "Ġgenerate", "Ġpair", "wise", "Ġjoint", "Ġdistributions", "Ġagain", ...
[ 1, 1, 1, 1, 1, 1, 1, 2, 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, 5, 5, 5, 5, 6, 6, 6, 6, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8...
[ 1, 2, 5, 7, 9, 11, 12, 1, 1, 2, 7, 11, 25, 30, 34, 36, 37, 38, 1, 1, 2, 5, 10, 19, 20, 24, 29, 38, 43, 47, 53, 67, 73, 74, 79, 84, 85, 89, 94, 99, 103, 114, 1, 2, 12, 13, 1, 1, 2, 4, 8, 13, 21, 24, 29, 33, ...
27e9635adf6109f3ab13b9d8dd5809973b61ca03
# Web Scraping # Make sure you have bs4, webbrowser and request installed as your third party modules import bs4, webbrowser, requests try: data = requests.get("http://en.wikipedia.org/wiki/Python") data.raise_for_status() my_data = bs4.BeautifulSoup(data.text, "lxml") print("List of all the header ...
[ 40, 3718, 6918, 1085, 318, 222, 40, 6429, 3673, 863, 1178, 14270, 57, 49, 2692, 7138, 480, 1343, 6733, 641, 1390, 10999, 15280, 7912, 222, 222, 485, 14270, 57, 49, 2692, 7138, 49, 5188, 222, 222, 1287, 63, 303, 727, 299, 5188, 51, ...
[ "#", "ĠWeb", "ĠSc", "rap", "ing", "Ċ", "#", "ĠMake", "Ġsure", "Ġyou", "Ġhave", "Ġbs", "4", ",", "Ġweb", "browser", "Ġand", "Ġrequest", "Ġinstalled", "Ġas", "Ġyour", "Ġthird", "Ġparty", "Ġmodules", "Ċ", "Ċ", "import", "Ġbs", "4", ",", "Ġweb", "browser", ...
[ 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, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 6, 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...
[ 1, 2, 6, 9, 12, 15, 1, 2, 7, 12, 16, 21, 24, 25, 26, 30, 37, 41, 49, 59, 62, 67, 73, 79, 87, 1, 1, 7, 10, 11, 12, 16, 23, 24, 33, 1, 1, 4, 5, 4, 9, 11, 20, 21, 24, 26, 30, 33, 35, 36, 45, 46, 49, 50, 54, 55...
f5f26819be4b98fab3d46e57e1a5431e54342aed
# coding: utf-8 """Supporting model logic for predicting emotional content of user input.""" import pandas as pd import gensim from sklearn.model_selection import train_test_split from sklearn.multiclass import OneVsRestClassifier from sklearn.svm import LinearSVC # load data for emo2vec loc = "https://s3-us-west-1.a...
[ 40, 10633, 63, 6471, 50, 61, 222, 3012, 4417, 318, 1573, 8143, 456, 10889, 318, 47044, 298, 1813, 451, 1275, 1533, 7128, 222, 222, 485, 13247, 641, 6451, 222, 485, 504, 1249, 468, 222, 1097, 14415, 51, 1184, 100, 8402, 1220, 5877, 1...
[ "#", "Ġcoding", ":", "Ġutf", "-", "8", "Ċ", "\"\"\"", "Support", "ing", "Ġmodel", "Ġlogic", "Ġfor", "Ġpredict", "ing", "Ġemotion", "al", "Ġcontent", "Ġof", "Ġuser", "Ġinput", ".\"\"\"", "Ċ", "Ċ", "import", "Ġpandas", "Ġas", "Ġpd", "Ċ", "import", "Ġg", "e...
[ 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 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, 8, 8, 8, 8, 8...
[ 1, 2, 9, 10, 14, 15, 16, 1, 4, 11, 14, 20, 26, 30, 38, 41, 49, 51, 59, 62, 67, 73, 77, 1, 1, 7, 14, 17, 20, 1, 7, 9, 12, 14, 1, 5, 13, 14, 19, 20, 29, 36, 42, 43, 47, 48, 53, 1, 5, 13, 14, 18, 20, 24, 31, 3...
d2e46944ab05c5e8c1979101728b7b25900be342
import pytest from time import sleep from timeflux.helpers.background import Task class DummyWorker: def echo(self, message="hello", delay=0, fail=False): sleep(delay) if fail: raise Exception("failed") self.message = message return self.message def test_default(worki...
[ 485, 13090, 222, 1097, 1153, 1220, 9375, 222, 1097, 1153, 12045, 51, 8789, 51, 4175, 1220, 4211, 499, 222, 842, 25222, 8077, 63, 303, 684, 2264, 45, 803, 49, 1492, 366, 7670, 411, 7826, 66, 53, 49, 3562, 66, 2737, 731, 310, 9375, ...
[ "import", "Ġpytest", "Ċ", "from", "Ġtime", "Ġimport", "Ġsleep", "Ċ", "from", "Ġtime", "flux", ".", "helpers", ".", "background", "Ġimport", "ĠTask", "ĊĊ", "Ċ", "class", "ĠDummy", "Worker", ":", "ĊĠĠĠ", "Ġdef", "Ġecho", "(", "self", ",", "Ġmessage", "=\"", ...
[ 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 5, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 11, 11, 11, 11, 1...
[ 1, 7, 14, 1, 5, 10, 17, 23, 1, 5, 10, 14, 15, 22, 23, 33, 40, 45, 1, 1, 6, 12, 18, 19, 4, 8, 13, 14, 18, 19, 27, 29, 34, 36, 42, 43, 44, 45, 50, 51, 56, 58, 8, 14, 15, 20, 21, 8, 11, 16, 17, 12, 18, 28, 30, ...
b2f2f1e4b7070ac867b71e538f759e527eb1ffb9
from pymouse import PyMouse m = PyMouse() w, h = m.screen_size() class base_controller: def __init__(self): pass def move(self, xy: list): """ 移动 """ m.move(xy[0] * w, xy[1] * h) def click(self, xy: list): """ 点击 """ m.click(xy[0] ...
[ 1097, 3643, 7079, 1220, 4374, 6042, 222, 222, 114, 299, 4374, 6042, 365, 222, 124, 49, 439, 299, 364, 51, 4475, 100, 911, 365, 499, 222, 842, 1712, 100, 4641, 63, 303, 684, 1176, 1683, 3232, 803, 731, 310, 3119, 465, 684, 5187, 45...
[ "from", "Ġpy", "mouse", "Ġimport", "ĠPy", "Mouse", "Ċ", "Ċ", "m", "Ġ=", "ĠPy", "Mouse", "()", "Ċ", "w", ",", "Ġh", "Ġ=", "Ġm", ".", "screen", "_", "size", "()", "ĊĊ", "Ċ", "class", "Ġbase", "_", "controller", ":", "ĊĠĠĠ", "Ġdef", "Ġ__", "init", "...
[ 1, 1, 1, 1, 1, 1, 1, 2, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 6, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 8, 9, 9, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 12, 12, 13, 13, 13, 14, 14, 15, 15,...
[ 1, 5, 8, 13, 20, 23, 28, 1, 1, 2, 4, 7, 12, 14, 1, 2, 3, 5, 7, 9, 10, 16, 17, 21, 23, 1, 1, 6, 11, 12, 22, 23, 4, 8, 11, 15, 18, 22, 24, 8, 13, 4, 8, 13, 14, 18, 19, 22, 23, 28, 30, 8, 12, 8, 9, 11, 8, ...
ec9efeca7eef7b8ee25c1e089e675bdb1e53413b
# -*- coding:utf-8 -*- # Author: washing # DateTime: 2022/5/18 10:28 # File: 0668.py # Desc: CV class Solution: def findKthNumber(self, m: int, n: int, k: int) -> int: return bisect_left(range(m * n), k, key=lambda x: x // n * n + sum(x // i for i in range(x // n + 1, m + 1)))
[ 40, 8571, 10633, 63, 3330, 50, 61, 8571, 222, 40, 6265, 63, 360, 22413, 222, 40, 6674, 63, 244, 55, 53, 55, 55, 52, 58, 52, 54, 61, 244, 54, 53, 63, 55, 61, 222, 40, 2050, 63, 244, 53, 59, 59, 61, 51, 997, 222, 40, 44152, ...
[ "#", "Ġ-*-", "Ġcoding", ":", "utf", "-", "8", "Ġ-*-", "Ċ", "#", "ĠAuthor", ":", "Ġw", "ashing", "Ċ", "#", "ĠDateTime", ":", "Ġ", "2", "0", "2", "2", "/", "5", "/", "1", "8", "Ġ", "1", "0", ":", "2", "8", "Ċ", "#", "ĠFile", ":", "Ġ", "0", ...
[ 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, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 7, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 9...
[ 1, 2, 6, 13, 14, 17, 18, 19, 23, 1, 2, 9, 10, 12, 18, 1, 2, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 1, 2, 7, 8, 9, 10, 11, 12, 13, 14, 16, 1, 2, 7, 8, 11, 1, 1, 6, 15, 16, ...
13342922022f0a0e8928c81c1c4716125af0b2c4
import matplotlib.pyplot as plt import numpy as np plt.rcParams["savefig.dpi"] = 300 # 图片像素 plt.rcParams["figure.dpi"] = 300 # 分辨率 plt.rcParams["font.sans-serif"] = ["SimHei"] plt.rcParams["axes.unicode_minus"] = False x_axis = [20, 40, 60, 80, 100] rf = [184, 174, 166, 159, 157.5] anns = [186, 179, 170, 164, 161] ...
[ 485, 13168, 51, 18553, 641, 6020, 222, 485, 6610, 641, 2115, 222, 222, 6670, 51, 46695, 1388, 26203, 51, 16568, 1465, 299, 244, 56, 53, 53, 244, 607, 244, 14738, 13323, 11828, 222, 6670, 51, 46695, 1388, 7770, 51, 16568, 1465, 299, ...
[ "import", "Ġmatplotlib", ".", "pyplot", "Ġas", "Ġplt", "Ċ", "import", "Ġnumpy", "Ġas", "Ġnp", "Ċ", "Ċ", "plt", ".", "rcParams", "[\"", "savefig", ".", "dpi", "\"]", "Ġ=", "Ġ", "3", "0", "0", "Ġ", "Ġ#", "Ġ", "åĽ¾çīĩ", "åĥı", "ç´ł", "Ċ", "plt", ".", ...
[ 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, 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, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6...
[ 1, 7, 18, 19, 25, 28, 32, 1, 7, 13, 16, 19, 1, 1, 4, 5, 13, 15, 22, 23, 26, 28, 30, 31, 32, 33, 34, 35, 37, 38, 40, 41, 42, 1, 4, 5, 13, 15, 21, 22, 25, 27, 29, 30, 31, 32, 33, 34, 36, 38, 38, 39, 40, 1, 4, ...
cb08b95e3b9c80fb74d4415b3798ddbb36cd76e7
import unittest """ Find the largest 0 to 9 pandigital that can be formed by concatenating products Take the number 6 and multiply it by each of 1273 and 9854: 6 × 1273 = 7638 6 × 9854 = 59124 By concatenating these products we get the 1 to 9 pandigital 763859124. We will call 763859124 the "concatenated product of ...
[ 485, 15790, 222, 222, 3012, 222, 4882, 341, 22936, 244, 53, 391, 244, 62, 317, 382, 384, 4729, 708, 902, 545, 38765, 829, 40920, 1761, 10062, 222, 222, 18305, 341, 1470, 244, 59, 480, 22277, 580, 829, 2531, 451, 244, 54, 55, 60, 5...
[ "import", "Ġunittest", "Ċ", "Ċ", "\"\"\"", "Ċ", "Find", "Ġthe", "Ġlargest", "Ġ", "0", "Ġto", "Ġ", "9", "Ġp", "and", "ig", "ital", "Ġthat", "Ġcan", "Ġbe", "Ġformed", "Ġby", "Ġconcaten", "ating", "Ġproducts", "Ċ", "Ċ", "Take", "Ġthe", "Ġnumber", "Ġ", "6"...
[ 1, 1, 1, 2, 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, 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...
[ 1, 7, 16, 1, 1, 4, 1, 5, 9, 17, 18, 19, 22, 23, 24, 26, 29, 31, 35, 40, 44, 47, 54, 57, 66, 71, 80, 1, 1, 5, 9, 16, 17, 18, 22, 31, 34, 37, 42, 45, 46, 47, 48, 49, 50, 54, 55, 56, 57, 58, 59, 60, 1, 2, 4, 5...
e695b9458c0e98521e560dbb291f6f05bda1549f
from savers.saver import SaverInterface import os from config import SaverConfig import mysql.connector import json import logging class SQLSaver(SaverInterface): # This class takes in json files and will interpret the jsons as follows. # {'tablename':[{'columnname01':'somevalue','columnname02':'somevalue'},{...
[ 1097, 4276, 5257, 51, 2473, 443, 1220, 377, 15243, 3058, 222, 485, 2355, 222, 1097, 1377, 1220, 377, 15243, 1081, 222, 485, 13062, 51, 11636, 222, 485, 2379, 222, 485, 5751, 499, 222, 842, 4447, 42039, 45, 42039, 3058, 731, 303, 607, ...
[ "from", "Ġsa", "vers", ".", "sa", "ver", "Ġimport", "ĠS", "aver", "Interface", "Ċ", "import", "Ġos", "Ċ", "from", "Ġconfig", "Ġimport", "ĠS", "aver", "Config", "Ċ", "import", "Ġmysql", ".", "connector", "Ċ", "import", "Ġjson", "Ċ", "import", "Ġlogging", ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 6, 6, 6, 8, 9, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11,...
[ 1, 5, 8, 12, 13, 15, 18, 25, 27, 31, 40, 1, 7, 10, 1, 5, 12, 19, 21, 25, 31, 1, 7, 13, 14, 23, 1, 7, 12, 1, 7, 15, 1, 1, 6, 10, 15, 16, 21, 30, 32, 4, 6, 11, 17, 23, 26, 31, 37, 41, 46, 56, 60, 65, 66, 69, ...
c55991e738c89ee09dabd79d514e710e0fcbac85
from splinter import Browser from time import sleep from datetime import datetime, timedelta import os, sys import urllib import cv2 import numpy as np from PIL import Image import imutils import csv class Scraper: start_date = datetime(2018, 1, 8) url = "http://spaceweather.com/" def scrape(self): ...
[ 1097, 14804, 1164, 1220, 14154, 222, 1097, 1153, 1220, 9375, 222, 1097, 7181, 1220, 7181, 49, 30864, 222, 485, 2355, 49, 5263, 222, 485, 22296, 222, 485, 6781, 55, 222, 485, 6610, 641, 2115, 222, 1097, 35991, 1220, 4393, 222, 485, 398...
[ "from", "Ġspl", "inter", "Ġimport", "ĠBrowser", "Ċ", "from", "Ġtime", "Ġimport", "Ġsleep", "Ċ", "from", "Ġdatetime", "Ġimport", "Ġdatetime", ",", "Ġtimedelta", "Ċ", "import", "Ġos", ",", "Ġsys", "Ċ", "import", "Ġurllib", "Ċ", "import", "Ġcv", "2", "Ċ", "im...
[ 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 9, 9, 9, 9, 10, 10, 10, 12, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14, 14, ...
[ 1, 5, 9, 14, 21, 29, 1, 5, 10, 17, 23, 1, 5, 14, 21, 30, 31, 41, 1, 7, 10, 11, 15, 1, 7, 14, 1, 7, 10, 11, 1, 7, 13, 16, 19, 1, 5, 9, 16, 22, 1, 7, 10, 15, 1, 7, 11, 1, 1, 6, 9, 14, 15, 4, 10, 11, 15, 1...
b767519229058b50183d78bb97121f050e5b6bad
# defining private variables class Privacy: def __init__(self, val): self.__val = 900 print("Private data member =", self.__val, "\n") value = Privacy(800) print("Value not changable\n") value.__val
[ 40, 20774, 964, 4918, 222, 842, 43630, 63, 303, 684, 1176, 1683, 3232, 803, 49, 928, 731, 310, 649, 3688, 718, 299, 244, 62, 53, 53, 310, 1489, 459, 6533, 727, 5817, 299, 411, 649, 3688, 718, 49, 2724, 115, 678, 499, 222, 872, 2...
[ "#", "Ġdefining", "Ġprivate", "Ġvariables", "Ċ", "class", "ĠPrivacy", ":", "ĊĠĠĠ", "Ġdef", "Ġ__", "init", "__(", "self", ",", "Ġval", "):", "ĊĠĠĠĠĠĠĠ", "Ġself", ".__", "val", "Ġ=", "Ġ", "9", "0", "0", "ĊĠĠĠĠĠĠĠ", "Ġprint", "(\"", "Private", "Ġdata", "Ġme...
[ 1, 1, 1, 1, 1, 2, 2, 2, 2, 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, 5, 5, 5, 5, 5, 5, 5, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 1...
[ 1, 2, 11, 19, 29, 1, 6, 14, 15, 4, 8, 11, 15, 18, 22, 23, 27, 29, 8, 13, 16, 19, 21, 22, 23, 24, 25, 8, 14, 16, 23, 28, 35, 37, 39, 44, 47, 50, 51, 54, 55, 57, 1, 1, 6, 8, 16, 17, 18, 19, 20, 21, 1, 6, 8, 1...
b679444fde7cd8eb819443922f37ee54c0f29de4
from pirates.teleport.AreaTeleportActor import AreaTeleportActor class DoorTeleportActor(AreaTeleportActor): pass
[ 1097, 317, 495, 1218, 51, 11448, 644, 51, 5585, 46432, 10459, 1220, 21725, 46432, 10459, 499, 222, 842, 47874, 46432, 10459, 45, 5585, 46432, 10459, 731, 303, 3119, 222 ]
[ "from", "Ġp", "ir", "ates", ".", "tele", "port", ".", "Area", "Teleport", "Actor", "Ġimport", "ĠArea", "Teleport", "Actor", "ĊĊ", "Ċ", "class", "ĠDoor", "Teleport", "Actor", "(", "Area", "Teleport", "Actor", "):", "ĊĠĠĠ", "Ġpass", "Ċ" ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5 ]
[ 1, 5, 7, 9, 13, 14, 18, 22, 23, 27, 35, 40, 47, 52, 60, 65, 1, 1, 6, 11, 19, 24, 25, 29, 37, 42, 44, 4, 9 ]
f714c7006f50379cc7508a13d710d902d38d2d1f
import torch import torch.nn as nn import torch.nn.functional as F # Const. low-rank version class xCNNlow(torch.nn.Module): def __init__(self, channels, filters, kernel_size, padding=0, stride=1, groups=1, rank=1, bias=True): super(xCNNlow, self).__init__() self.filters = filters self.tim...
[ 485, 5665, 222, 485, 5665, 51, 4042, 641, 8507, 222, 485, 5665, 51, 4042, 51, 18678, 641, 525, 499, 222, 40, 7967, 51, 7487, 50, 6571, 1522, 222, 842, 837, 38852, 760, 45, 7808, 51, 4042, 51, 2478, 731, 303, 684, 1176, 1683, 3232,...
[ "import", "Ġtorch", "Ċ", "import", "Ġtorch", ".", "nn", "Ġas", "Ġnn", "Ċ", "import", "Ġtorch", ".", "nn", ".", "functional", "Ġas", "ĠF", "ĊĊ", "Ċ", "#", "ĠConst", ".", "Ġlow", "-", "rank", "Ġversion", "Ċ", "class", "Ġx", "CNN", "low", "(", "torch", ...
[ 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 5, 6, 6, 6, 6, 6, 6, 6, 6, 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...
[ 1, 7, 13, 1, 7, 13, 14, 16, 19, 22, 1, 7, 13, 14, 16, 17, 27, 30, 32, 1, 1, 2, 8, 9, 13, 14, 18, 26, 1, 6, 8, 11, 14, 15, 20, 21, 23, 24, 30, 32, 4, 8, 11, 15, 18, 22, 23, 32, 33, 41, 42, 49, 50, 54, 55, 63...
726f133bcf592315c42f8701be8308422ffbf0d9
from flask import Flask, render_template from flask_ask import Ask, statement, question, session import reverse_geocoder as rg from geopy import distance from geopy.geocoders import Nominatim import requests import time """ :::::::: ::::::::: ::: :::::::: :::::::::: ::: ::: ::: ::: ...
[ 1097, 18958, 1220, 24033, 49, 2922, 100, 2402, 222, 1097, 18958, 100, 933, 1220, 31749, 49, 7627, 49, 7013, 49, 3541, 222, 485, 10170, 100, 8544, 3496, 641, 9334, 222, 1097, 3244, 1210, 1220, 7336, 222, 1097, 3244, 1210, 51, 8544, 271...
[ "from", "Ġflask", "Ġimport", "ĠFlask", ",", "Ġrender", "_", "template", "Ċ", "from", "Ġflask", "_", "ask", "Ġimport", "ĠAsk", ",", "Ġstatement", ",", "Ġquestion", ",", "Ġsession", "Ċ", "import", "Ġreverse", "_", "geo", "coder", "Ġas", "Ġrg", "Ċ", "from", ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 7, 7, 7, 9, 10, 10, 11, 11, 11, 11, 11, ...
[ 1, 5, 11, 18, 24, 25, 32, 33, 41, 1, 5, 11, 12, 15, 22, 26, 27, 37, 38, 47, 48, 56, 1, 7, 15, 16, 19, 24, 27, 30, 1, 5, 8, 11, 18, 27, 1, 5, 8, 11, 12, 15, 21, 28, 32, 34, 36, 38, 1, 7, 16, 1, 7, 12, 1, 1, ...
cae49da8dd436fc51b472c4a88703d8bc6c79bda
import SCons.Util import xml.dom.minidom, re, os.path ################################################################################ # DocBook pseudobuilder # TODO: Only generate the output formats that are known ################################################################################ def generate(env): ...
[ 485, 377, 8412, 51, 1747, 222, 485, 5604, 51, 4734, 51, 907, 333, 437, 49, 334, 49, 2355, 51, 1005, 222, 222, 31362, 222, 40, 11235, 6597, 26714, 4179, 222, 40, 4314, 63, 9303, 4468, 341, 1716, 15488, 708, 904, 8998, 222, 31362, 4...
[ "import", "ĠS", "Cons", ".", "Util", "Ċ", "import", "Ġxml", ".", "dom", ".", "min", "id", "om", ",", "Ġre", ",", "Ġos", ".", "path", "Ċ", "Ċ", "################################################################################", "Ċ", "#", "ĠDoc", "Book", "Ġpseudo"...
[ 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 9, 10, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 11, 11, 11, 11, 1...
[ 1, 7, 9, 13, 14, 18, 1, 7, 11, 12, 15, 16, 19, 21, 23, 24, 27, 28, 31, 32, 36, 1, 1, 81, 1, 2, 6, 10, 17, 24, 1, 2, 7, 8, 13, 22, 26, 33, 41, 46, 50, 56, 1, 81, 1, 1, 4, 13, 14, 17, 19, 4, 8, 15, 16, 23, ...
c139cbc3e693d75ad196e10257ff3028aa835709
# Complete the hurdleRace function below. def hurdleRace(k, height): if k < max(height): return max(height) - k return 0 print(hurdleRace(2, [2, 5, 4, 5, 2]))
[ 40, 22309, 341, 36381, 105, 293, 31548, 686, 4834, 51, 222, 610, 36381, 105, 293, 31548, 45, 112, 49, 2401, 731, 303, 434, 851, 350, 1788, 45, 2296, 731, 310, 461, 1788, 45, 2296, 46, 449, 851, 303, 461, 244, 53, 499, 222, 1243, ...
[ "#", "ĠComplete", "Ġthe", "Ġhur", "d", "le", "Race", "Ġfunction", "Ġbelow", ".", "Ċ", "def", "Ġhur", "d", "le", "Race", "(", "k", ",", "Ġheight", "):", "ĊĠĠĠ", "Ġif", "Ġk", "Ġ<", "Ġmax", "(", "height", "):", "ĊĠĠĠĠĠĠĠ", "Ġreturn", "Ġmax", "(", "heigh...
[ 1, 1, 1, 1, 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, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8...
[ 1, 2, 11, 15, 19, 20, 22, 26, 35, 41, 42, 1, 4, 8, 9, 11, 15, 16, 17, 18, 25, 27, 4, 7, 9, 11, 15, 16, 22, 24, 8, 15, 19, 20, 26, 27, 29, 31, 4, 11, 12, 13, 1, 1, 6, 7, 10, 11, 13, 17, 18, 19, 20, 22, 23, 2...
77971b088a7e076e3bf6d7aa320981a50e7756ce
from flask import Flask from flask_ask import Ask, statement, question, session # import json, requests import random app = Flask(__name__) ask = Ask(app, "/") def get_cat_fact(): myFacts = [ "Cats should not be fed tuna exclusively, as it lacks taurine, an essential nutrient required for good feline h...
[ 1097, 18958, 1220, 24033, 222, 1097, 18958, 100, 933, 1220, 31749, 49, 7627, 49, 7013, 49, 3541, 222, 222, 40, 1220, 2379, 49, 5188, 222, 485, 4051, 499, 222, 745, 299, 24033, 4077, 444, 8238, 222, 933, 299, 31749, 45, 745, 49, 4427...
[ "from", "Ġflask", "Ġimport", "ĠFlask", "Ċ", "from", "Ġflask", "_", "ask", "Ġimport", "ĠAsk", ",", "Ġstatement", ",", "Ġquestion", ",", "Ġsession", "Ċ", "Ċ", "#", "Ġimport", "Ġjson", ",", "Ġrequests", "Ċ", "import", "Ġrandom", "ĊĊ", "Ċ", "app", "Ġ=", "ĠFl...
[ 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 4, 4, 4, 4, 4, 4, 5, 5, 5, 7, 8, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 9, 11, 12, 12, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 13, 14, ...
[ 1, 5, 11, 18, 24, 1, 5, 11, 12, 15, 22, 26, 27, 37, 38, 47, 48, 56, 1, 1, 2, 9, 14, 15, 24, 1, 7, 14, 1, 1, 4, 6, 12, 15, 19, 22, 1, 4, 6, 10, 11, 14, 15, 20, 1, 1, 4, 8, 9, 12, 13, 17, 20, 4, 7, 11, 12, ...
124d7da330aa7c869320e10f4f89cc1c872f85f2
import matplotlib.pyplot as plt import sys sys.path.append("coin_flipping_src") from monte_carlo import monte_carlo from probability import probability plt.style.use("bmh") x_coords = range(10) probablility_results = [probability(x, 10) for x in x_coords] plt.plot(x_coords, probablility_results, linewidth=2.5) # plt....
[ 485, 13168, 51, 18553, 641, 6020, 222, 485, 5263, 222, 222, 3750, 51, 1005, 51, 1713, 459, 8546, 100, 107, 393, 11787, 100, 1634, 678, 222, 1097, 31323, 106, 100, 3745, 335, 1220, 31323, 106, 100, 3745, 335, 222, 1097, 16753, 1220, ...
[ "import", "Ġmatplotlib", ".", "pyplot", "Ġas", "Ġplt", "Ċ", "import", "Ġsys", "Ċ", "Ċ", "sys", ".", "path", ".", "append", "(\"", "coin", "_", "f", "li", "pping", "_", "src", "\")", "Ċ", "from", "Ġmont", "e", "_", "car", "lo", "Ġimport", "Ġmont", "...
[ 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, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 9, 9...
[ 1, 7, 18, 19, 25, 28, 32, 1, 7, 11, 1, 1, 4, 5, 9, 10, 16, 18, 22, 23, 24, 26, 31, 32, 35, 37, 1, 5, 10, 11, 12, 15, 17, 24, 29, 30, 31, 34, 36, 1, 5, 17, 24, 36, 1, 1, 4, 5, 10, 11, 14, 16, 18, 19, 21, 1, ...
502da0f0dafe42d3464fabb1d92ae1b0d7ef11f3
# Check given matrix is valid sudoku or Not.
[ 40, 3471, 2716, 5083, 458, 2101, 328, 33269, 575, 3204, 51, 222 ]
[ "#", "ĠCheck", "Ġgiven", "Ġmatrix", "Ġis", "Ġvalid", "Ġs", "udoku", "Ġor", "ĠNot", ".", "Ċ" ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 2, 8, 14, 21, 24, 30, 32, 37, 40, 44, 45 ]
4e31c2a80bec77a1f5aafc8a91617fb4b2941788
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Author: André Pacheco E-mail: pacheco.comp@gmail.com This file implements the methods and functions to load the image as a PyTorch dataset If you find any bug or have some suggestion, please, email me. """ from PIL import Image from torch.utils import data import t...
[ 8758, 3392, 52, 1793, 52, 2141, 4406, 56, 222, 40, 8571, 10633, 63, 6471, 50, 61, 8571, 222, 222, 3012, 222, 4372, 63, 4262, 42773, 466, 914, 352, 222, 74, 50, 2215, 63, 317, 914, 352, 51, 998, 69, 7265, 51, 527, 222, 222, 2287,...
[ "#!/", "usr", "/", "bin", "/", "env", "Ġpython", "3", "Ċ", "#", "Ġ-*-", "Ġcoding", ":", "Ġutf", "-", "8", "Ġ-*-", "Ċ", "Ċ", "\"\"\"", "Ċ", "Author", ":", "ĠAnd", "ré", "ĠP", "ache", "co", "Ċ", "E", "-", "mail", ":", "Ġp", "ache", "co", ".", ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 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, 8, 8, 8, 8, 8, 8, 9, 10, 10, ...
[ 1, 4, 7, 8, 11, 12, 15, 22, 23, 1, 2, 6, 13, 14, 18, 19, 20, 24, 1, 1, 4, 1, 7, 8, 12, 14, 16, 20, 22, 1, 2, 3, 7, 8, 10, 14, 16, 17, 21, 22, 27, 28, 31, 1, 1, 5, 10, 21, 25, 33, 37, 47, 50, 55, 59, 65, 6...
75133dd924f8f3f028075c5d2109bb79ddc7fe87
import pymysql def testeSelect(db): # 创建查询游标 cur1 = db.cursor() # 使用 execute() 方法执行 SQL 查询 cur1.execute("SELECT VERSION()") # 使用 fetchone() 方法获取单条数据. data = cur1.fetchone() print(dir(data)) print("cur1 : %s " % cur1) print("Database version : %s " % data) def dropTable(db): ...
[ 485, 317, 2225, 5547, 499, 222, 610, 913, 106, 1926, 45, 1219, 731, 303, 607, 23611, 14768, 26523, 7044, 303, 2756, 54, 299, 3100, 51, 7033, 365, 465, 607, 20682, 5755, 365, 244, 32631, 10719, 4447, 30266, 303, 2756, 54, 51, 4540, 4...
[ "import", "Ġp", "ym", "ysql", "ĊĊ", "Ċ", "def", "Ġtest", "e", "Select", "(", "db", "):", "ĊĠĠĠ", "Ġ#", "ĠåĪĽå»º", "æŁ¥è¯¢", "游", "æłĩ", "ĊĠĠĠ", "Ġcur", "1", "Ġ=", "Ġdb", ".", "cursor", "()", "ĊĊĠĠĠ", "Ġ#", "Ġ使ç͍", "Ġexecute", "()", "Ġ", "Ġæĸ¹æ³ķ...
[ 1, 1, 1, 1, 1, 3, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 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, 11, 11, 11, 11, 11, 11, 11, 12, ...
[ 1, 7, 9, 11, 15, 1, 1, 4, 9, 10, 16, 17, 19, 21, 4, 6, 9, 11, 12, 13, 4, 8, 9, 11, 14, 15, 21, 23, 4, 6, 9, 17, 19, 20, 23, 25, 29, 32, 4, 8, 9, 10, 17, 19, 25, 33, 35, 37, 4, 6, 9, 15, 18, 20, 23, 25, 26...
de347b41cd88947690cb42e043880a80d81e2c5c
# Generated by Django 3.2.7 on 2021-09-11 19:38 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ("cryptocurrency", "0012_rename_cancel_exists_order_cancel_exist"), ] operations = [ migrations.AlterField( model_name="order", ...
[ 40, 13046, 829, 18288, 244, 56, 51, 55, 51, 60, 563, 244, 55, 53, 55, 54, 50, 53, 62, 50, 54, 54, 244, 54, 62, 63, 56, 61, 222, 222, 1097, 8532, 51, 1219, 1220, 12520, 49, 4590, 499, 222, 842, 18572, 45, 19772, 51, 12071, 73...
[ "#", "ĠGenerated", "Ġby", "ĠDjango", "Ġ", "3", ".", "2", ".", "7", "Ġon", "Ġ", "2", "0", "2", "1", "-", "0", "9", "-", "1", "1", "Ġ", "1", "9", ":", "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, 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...
[ 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, 1, 6, 16, 17, 27, 28, 37, 39, 4, 17, 19, 21, 8, 11, 16...
8e85740123467889bdeb6b27d5eaa4b39df280ed
from .celery import app from home.models import Banner from settings.const import BANNER_COUNT from home.serializers import BannerModelSerializer from django.core.cache import cache from django.conf import settings @app.task def update_banner_list(): # 获取最新内容 banner_query = Banner.objects.filter(is_delete=Fa...
[ 1097, 657, 3331, 852, 1220, 1142, 222, 222, 1097, 6780, 51, 3404, 1220, 46512, 222, 1097, 4086, 51, 931, 1220, 570, 946, 13726, 100, 7516, 222, 1097, 6780, 51, 34191, 1220, 46512, 1262, 7271, 222, 1097, 8532, 51, 1284, 51, 2630, 1220,...
[ "from", "Ġ.", "cel", "ery", "Ġimport", "Ġapp", "Ċ", "Ċ", "from", "Ġhome", ".", "models", "Ġimport", "ĠBanner", "Ċ", "from", "Ġsettings", ".", "const", "Ġimport", "ĠB", "AN", "NER", "_", "COUNT", "Ċ", "from", "Ġhome", ".", "serializers", "Ġimport", "ĠBann...
[ 1, 1, 1, 1, 1, 1, 1, 2, 3, 3, 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, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 9, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11...
[ 1, 5, 7, 10, 13, 20, 24, 1, 1, 5, 10, 11, 17, 24, 31, 1, 5, 14, 15, 20, 27, 29, 31, 34, 35, 40, 1, 5, 10, 11, 22, 29, 36, 41, 51, 1, 5, 12, 13, 17, 18, 23, 30, 36, 1, 5, 12, 13, 17, 24, 33, 1, 1, 2, 5, 6, ...
a2421a8673a524c32539555596711a71a8e00dbf
import os import argparse import torch import model.model as module_arch from utils.util import remove_weight_norms from train import get_instance from librosa import load from librosa.output import write_wav from time import time def main(config, resume, infile, outfile, sigma, dur, half): # build model architec...
[ 485, 2355, 222, 485, 16693, 222, 485, 5665, 222, 485, 1573, 51, 1184, 641, 2313, 100, 1022, 222, 1097, 8767, 51, 1058, 1220, 3365, 100, 3327, 100, 8005, 120, 222, 1097, 5877, 1220, 640, 100, 2403, 222, 1097, 5053, 309, 2473, 1220, 2...
[ "import", "Ġos", "Ċ", "import", "Ġargparse", "Ċ", "import", "Ġtorch", "Ċ", "import", "Ġmodel", ".", "model", "Ġas", "Ġmodule", "_", "arch", "Ċ", "from", "Ġutils", ".", "util", "Ġimport", "Ġremove", "_", "weight", "_", "norm", "s", "Ċ", "from", "Ġtrain", ...
[ 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, 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, 9, 9, 9, 9, 9, 11, 12, 12, ...
[ 1, 7, 10, 1, 7, 16, 1, 7, 13, 1, 7, 13, 14, 19, 22, 29, 30, 34, 1, 5, 11, 12, 16, 23, 30, 31, 37, 38, 42, 43, 1, 5, 11, 18, 22, 23, 31, 1, 5, 9, 11, 13, 20, 25, 1, 5, 9, 11, 13, 14, 20, 27, 33, 34, 37, 1, ...
6154979cd2853dd2bd26d1ae5df7365efa0141c2
from sqlalchemy import Column, MetaData, Table, BigInteger, String, DateTime, Integer from migrate import * meta = MetaData() table = Table( "accesses", meta, Column("id", BigInteger, primary_key=True, nullable=False), Column("uuid", String(255), nullable=False), Column("created_at", DateTime), ) ...
[ 1097, 30936, 1220, 7747, 49, 11990, 768, 49, 5565, 49, 21721, 49, 910, 49, 6674, 49, 4418, 222, 1097, 22631, 1220, 338, 222, 222, 2874, 299, 11990, 768, 365, 222, 1292, 299, 5565, 45, 303, 332, 348, 8278, 411, 303, 6096, 49, 303, ...
[ "from", "Ġsqlalchemy", "Ġimport", "ĠColumn", ",", "ĠMeta", "Data", ",", "ĠTable", ",", "ĠBigInteger", ",", "ĠString", ",", "ĠDateTime", ",", "ĠInteger", "Ċ", "from", "Ġmigrate", "Ġimport", "Ġ*", "Ċ", "Ċ", "meta", "Ġ=", "ĠMeta", "Data", "()", "Ċ", "table", ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 7, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9...
[ 1, 5, 16, 23, 30, 31, 36, 40, 41, 47, 48, 59, 60, 67, 68, 77, 78, 86, 1, 5, 13, 20, 22, 1, 1, 5, 7, 12, 16, 18, 1, 6, 8, 14, 15, 4, 6, 8, 14, 16, 4, 9, 10, 4, 11, 13, 15, 17, 28, 29, 37, 38, 41, 42, 46, 47,...
813354c9c294c0323c1b54cda7074fbffa49cdb3
from django.utils import timezone from factory import DjangoModelFactory from djtriggers.tests.models import DummyTrigger class DummyTriggerFactory(DjangoModelFactory): class Meta: model = DummyTrigger trigger_type = "dummy_trigger_test" source = "tests" date_received = timezone.now() da...
[ 1097, 8532, 51, 2324, 1220, 22145, 222, 1097, 7769, 1220, 18288, 1262, 2232, 222, 222, 1097, 362, 23834, 13464, 51, 4895, 51, 3404, 1220, 25222, 7903, 499, 222, 842, 25222, 7903, 2232, 45, 36075, 1262, 2232, 731, 303, 462, 11990, 63, ...
[ "from", "Ġdjango", ".", "utils", "Ġimport", "Ġtimezone", "Ċ", "from", "Ġfactory", "Ġimport", "ĠDjango", "Model", "Factory", "Ċ", "Ċ", "from", "Ġd", "jt", "riggers", ".", "tests", ".", "models", "Ġimport", "ĠDummy", "Trigger", "ĊĊ", "Ċ", "class", "ĠDummy", ...
[ 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, 4, 6, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 9, 9, 9, 9, 9, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 12, 12,...
[ 1, 5, 12, 13, 18, 25, 34, 1, 5, 13, 20, 27, 32, 39, 1, 1, 5, 7, 9, 16, 17, 22, 23, 29, 36, 42, 49, 1, 1, 6, 12, 19, 26, 27, 33, 38, 45, 47, 4, 10, 15, 16, 8, 14, 16, 22, 29, 4, 12, 13, 17, 19, 21, 26, 27, 3...
aebc918d6a1d1d2473f74d77b8a915ac25548e3a
import cachetools cache = cachetools.LRUCache(maxsize=3) cache["PyCon"] = "India" cache["year"] = "2017" print("Older: " + cache["year"]) cache["year"] = "2018" print("Newer: " + cache["year"]) print(cache) cache["sdate"] = "05/09/2018" print(cache) cache["edate"] = "09/09/2018" print(cache)
[ 485, 3337, 4303, 222, 222, 2630, 299, 3337, 4303, 51, 14909, 90, 2610, 45, 1472, 911, 66, 56, 46, 222, 2630, 1388, 5019, 628, 1465, 299, 332, 402, 5600, 39, 222, 2630, 1388, 4614, 1465, 299, 332, 55, 53, 54, 60, 39, 222, 1243, 4...
[ "import", "Ġcache", "tools", "Ċ", "Ċ", "cache", "Ġ=", "Ġcache", "tools", ".", "LR", "U", "Cache", "(", "max", "size", "=", "3", ")", "Ċ", "cache", "[\"", "Py", "Con", "\"]", "Ġ=", "Ġ\"", "In", "dia", "\"", "Ċ", "cache", "[\"", "year", "\"]", "Ġ="...
[ 1, 1, 1, 1, 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, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 8, 8, 8, 8, 8, 8, 8, 8...
[ 1, 7, 13, 18, 1, 1, 6, 8, 14, 19, 20, 22, 23, 28, 29, 32, 36, 37, 38, 39, 1, 6, 8, 10, 13, 15, 17, 19, 21, 24, 25, 1, 6, 8, 12, 14, 16, 18, 19, 20, 21, 22, 23, 1, 6, 8, 10, 13, 14, 16, 18, 24, 26, 30, 33, 1...
cd234911c1f990b8029dfa792d132847bf39a6aa
import math def vol_shell(r1, r2): a = abs((4 / 3) * math.pi * ((r1**3) - (r2**3))) return round(a, 3) print(vol_shell(3, 3))
[ 485, 7820, 499, 222, 610, 3937, 100, 7890, 45, 119, 54, 49, 559, 55, 731, 303, 331, 299, 11397, 1181, 57, 536, 244, 56, 46, 338, 7820, 51, 1314, 338, 1849, 119, 54, 345, 56, 46, 449, 327, 119, 55, 345, 56, 2636, 303, 461, 7880...
[ "import", "Ġmath", "ĊĊ", "Ċ", "def", "Ġvol", "_", "shell", "(", "r", "1", ",", "Ġr", "2", "):", "ĊĠĠĠ", "Ġa", "Ġ=", "Ġabs", "((", "4", "Ġ/", "Ġ", "3", ")", "Ġ*", "Ġmath", ".", "pi", "Ġ*", "Ġ((", "r", "1", "**", "3", ")", "Ġ-", "Ġ(", "r", ...
[ 1, 1, 1, 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, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 8, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9...
[ 1, 7, 12, 1, 1, 4, 8, 9, 14, 15, 16, 17, 18, 20, 21, 23, 4, 6, 8, 12, 14, 15, 17, 18, 19, 20, 22, 27, 28, 30, 32, 35, 36, 37, 39, 40, 41, 43, 45, 46, 47, 49, 50, 53, 4, 11, 17, 18, 19, 20, 21, 22, 23, 1, 1, ...
7b5713c9a5afa911df1c2939751de30412162f15
from collections import OrderedDict import copy import numpy as np from scipy.optimize import curve_fit from ... import Operation as opmod from ...Operation import Operation from ....tools import saxstools class SpectrumFit(Operation): """ Use a measured SAXS spectrum (I(q) vs. q), to optimize the param...
[ 1097, 13722, 1220, 34279, 222, 485, 1948, 222, 222, 485, 6610, 641, 2115, 222, 1097, 18945, 51, 22990, 1220, 14574, 100, 4803, 222, 222, 1097, 2437, 1220, 11957, 641, 3107, 1820, 222, 1097, 2437, 3786, 1220, 11957, 222, 1097, 23249, 430...
[ "from", "Ġcollections", "Ġimport", "ĠOrderedDict", "Ċ", "import", "Ġcopy", "Ċ", "Ċ", "import", "Ġnumpy", "Ġas", "Ġnp", "Ċ", "from", "Ġscipy", ".", "optimize", "Ġimport", "Ġcurve", "_", "fit", "Ċ", "Ċ", "from", "Ġ...", "Ġimport", "ĠOperation", "Ġas", "Ġop", ...
[ 1, 1, 1, 1, 1, 2, 2, 2, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 7, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 9, 9, 11, 12, 12, 12, 12, 12, 12, 12, 12, 13, 13, 14, 14, 14,...
[ 1, 5, 17, 24, 36, 1, 7, 12, 1, 1, 7, 13, 16, 19, 1, 5, 11, 12, 20, 27, 33, 34, 37, 1, 1, 5, 9, 16, 26, 29, 32, 35, 1, 5, 9, 18, 25, 35, 1, 5, 10, 15, 22, 24, 26, 28, 32, 1, 1, 6, 12, 15, 18, 19, 28, 30, 4...
595912753d778a0fa8332f0df00e06a9da5cde93
################################################################################ # # # This file is part of the Potato Engine (PE). # # ...
[ 31362, 222, 40, 48565, 607, 222, 40, 1369, 822, 458, 1760, 451, 341, 23678, 6599, 10092, 327, 1321, 566, 1229, 607, 222, 40, 48565, 607, 222, 40, 2657, 327, 72, 46, 244, 55, 53, 53, 60, 50, 55, 53, 54, 53, 45106, 309, 18601, 257...
[ "################################################################################", "Ċ", "#", "ĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġ#", "Ċ", "#", "ĠThis", "Ġfile", "Ġis", "Ġpart", "Ġof", "Ġthe", "ĠPot", "ato", "ĠEngine", "Ġ(", "PE", ")...
[ 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 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, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6...
[ 1, 81, 1, 2, 79, 81, 1, 2, 7, 12, 15, 20, 23, 27, 31, 34, 41, 43, 45, 47, 79, 81, 1, 2, 79, 81, 1, 2, 12, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 32, 34, 37, 42, 46, 49, 51, 53, 56, 58, 79, 81, 1,...
3b42e218acf1c93fab3a0893efa8bf32a274eb23
# Generated by Django 2.2.6 on 2019-11-13 13:11 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ("interface", "0010_auto_20191104_2107"), ] operations = [ migrations.AlterField( model_name="submission", name="review...
[ 40, 13046, 829, 18288, 244, 55, 51, 55, 51, 59, 563, 244, 55, 53, 54, 62, 50, 54, 54, 50, 54, 56, 244, 54, 56, 63, 54, 54, 222, 222, 1097, 8532, 51, 1219, 1220, 12520, 49, 4590, 499, 222, 842, 18572, 45, 19772, 51, 12071, 73...
[ "#", "ĠGenerated", "Ġby", "ĠDjango", "Ġ", "2", ".", "2", ".", "6", "Ġon", "Ġ", "2", "0", "1", "9", "-", "1", "1", "-", "1", "3", "Ġ", "1", "3", ":", "1", "1", "Ċ", "Ċ", "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, 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...
[ 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, 1, 6, 16, 17, 27, 28, 37, 39, 4, 17, 19, 21, 8, 11, 20...
13b69ec61d6b2129f1974ce7cae91c84100b3b58
import tensorflow.keras from PIL import Image, ImageOps from os import listdir from os.path import isfile, join import numpy as np import glob import cv2 np.set_printoptions(suppress=True) # Load the model model = tensorflow.keras.models.load_model("./converted_keras/keras_model.h5") # Create the array of the right ...
[ 485, 15196, 51, 16350, 222, 1097, 35991, 1220, 4393, 49, 4393, 11200, 222, 1097, 2355, 1220, 1168, 1537, 222, 1097, 2355, 51, 1005, 1220, 458, 781, 49, 7163, 222, 485, 6610, 641, 2115, 222, 485, 12542, 222, 485, 6781, 55, 222, 222, ...
[ "import", "Ġtensorflow", ".", "keras", "Ċ", "from", "ĠPIL", "Ġimport", "ĠImage", ",", "ĠImage", "Ops", "Ċ", "from", "Ġos", "Ġimport", "Ġlist", "dir", "Ċ", "from", "Ġos", ".", "path", "Ġimport", "Ġis", "file", ",", "Ġjoin", "Ċ", "import", "Ġnumpy", "Ġas",...
[ 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 7, 7, 7, 7, 8, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 10, 11, 11, 11, 11, 11, 12, 12, ...
[ 1, 7, 18, 19, 24, 1, 5, 9, 16, 22, 23, 29, 32, 1, 5, 8, 15, 20, 23, 1, 5, 8, 9, 13, 20, 23, 27, 28, 33, 1, 7, 13, 16, 19, 1, 7, 12, 1, 7, 10, 11, 1, 1, 3, 4, 7, 8, 13, 20, 21, 29, 30, 34, 35, 1, 1, 2, 7...
68d537cb8488ae4f2c8300e885be78540952dec0
#!/usr/bin/env python2 # coding=utf8 from __future__ import absolute_import, division, print_function from sqlalchemy import func from walis.model.walis import walis_session from walis.model.zeus import zeus_session, zeus_db_handler from walis.model.zeus.activity import ( SubsidyProcessRecord, SubsidyPayReco...
[ 8758, 3392, 52, 1793, 52, 2141, 4406, 55, 222, 40, 10633, 66, 3330, 61, 222, 222, 1097, 1176, 9689, 523, 1220, 7984, 100, 485, 49, 20707, 49, 1489, 100, 1144, 222, 222, 1097, 30936, 1220, 3439, 222, 222, 1097, 360, 46475, 51, 1184, ...
[ "#!/", "usr", "/", "bin", "/", "env", "Ġpython", "2", "Ċ", "#", "Ġcoding", "=", "utf", "8", "Ċ", "Ċ", "from", "Ġ__", "future", "__", "Ġimport", "Ġabsolute", "_", "import", ",", "Ġdivision", ",", "Ġprint", "_", "function", "Ċ", "Ċ", "from", "Ġsqlalche...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 6, 6, 6, 6, 6, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9...
[ 1, 4, 7, 8, 11, 12, 15, 22, 23, 1, 2, 9, 10, 13, 14, 1, 1, 5, 8, 14, 16, 23, 32, 33, 39, 40, 49, 50, 56, 57, 65, 1, 1, 5, 16, 23, 28, 1, 1, 5, 7, 11, 12, 17, 18, 21, 23, 30, 32, 36, 37, 44, 1, 5, 7, 11, 1...
a32fb683f8d46f901e8dcd2d075ace22ee81e076
import base64 import string def hexStringtoBytes(hexstring): byteArray = bytes.fromhex(hexstring) return byteArray def xorBytes(bytes1, bytes2): xored = bytes([x ^ bytes2[i] for i, x in enumerate(bytes1)]) return xored def xorAgainstCharacter(byteArray, character): str2 = [ord(character)] * le...
[ 485, 1712, 59, 57, 222, 485, 821, 499, 222, 610, 9965, 671, 471, 3656, 45, 6961, 819, 731, 303, 41558, 299, 3534, 51, 1097, 6961, 45, 6961, 819, 46, 303, 461, 41558, 499, 222, 610, 22090, 3656, 45, 3669, 54, 49, 3534, 55, 731, 3...
[ "import", "Ġbase", "6", "4", "Ċ", "import", "Ġstring", "ĊĊ", "Ċ", "def", "Ġhex", "String", "to", "Bytes", "(", "hex", "string", "):", "ĊĠĠĠ", "ĠbyteArray", "Ġ=", "Ġbytes", ".", "from", "hex", "(", "hex", "string", ")", "ĊĠĠĠ", "Ġreturn", "ĠbyteArray", ...
[ 1, 1, 1, 1, 1, 2, 2, 2, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 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, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11...
[ 1, 7, 12, 13, 14, 1, 7, 14, 1, 1, 4, 8, 14, 16, 21, 22, 25, 31, 33, 4, 14, 16, 22, 23, 27, 30, 31, 34, 40, 41, 4, 11, 21, 1, 1, 4, 8, 13, 14, 19, 20, 21, 27, 28, 30, 4, 6, 10, 12, 18, 20, 21, 23, 29, 30, 31...
9b581df505765e895047584c5bb586faef95295f
import dash import dash_core_components as dcc import dash_html_components as html import dash_table as dt import plotly.express as px import pandas as pd import plotly.graph_objects as go import numpy as np from datetime import datetime as dat from sklearn.model_selection import train_test_split from sklearn.linear_mo...
[ 485, 27442, 222, 485, 27442, 100, 1284, 100, 3545, 641, 362, 1172, 222, 485, 27442, 100, 935, 100, 3545, 641, 4177, 222, 485, 27442, 100, 1292, 641, 8837, 222, 485, 7036, 651, 51, 9450, 641, 9249, 222, 485, 13247, 641, 6451, 222, 48...
[ "import", "Ġdash", "Ċ", "import", "Ġdash", "_", "core", "_", "components", "Ġas", "Ġd", "cc", "Ċ", "import", "Ġdash", "_", "html", "_", "components", "Ġas", "Ġhtml", "Ċ", "import", "Ġdash", "_", "table", "Ġas", "Ġdt", "Ċ", "import", "Ġplot", "ly", ".",...
[ 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9...
[ 1, 7, 12, 1, 7, 12, 13, 17, 18, 28, 31, 33, 35, 1, 7, 12, 13, 17, 18, 28, 31, 36, 1, 7, 12, 13, 18, 21, 24, 1, 7, 12, 14, 15, 22, 25, 28, 1, 7, 14, 17, 20, 1, 7, 12, 14, 15, 20, 21, 28, 31, 34, 1, 7, 13, 16...