content
stringlengths
1
1.05M
input_ids
listlengths
1
883k
ratio_char_token
float64
1
22.9
token_count
int64
1
883k
import requests from bs4 import BeautifulSoup from news import News from .abstract_news_extractor import AbstractNewsExtractor
[ 11748, 7007, 198, 6738, 275, 82, 19, 1330, 23762, 50, 10486, 198, 198, 6738, 1705, 1330, 3000, 198, 6738, 764, 397, 8709, 62, 10827, 62, 2302, 40450, 1330, 27741, 9980, 11627, 40450, 198 ]
3.878788
33
""" Provides a simple Python client for RBI REST API """ from . import exceptions import requests __version__ = "0.1.0"
[ 37811, 198, 15946, 1460, 257, 2829, 11361, 5456, 329, 20948, 30617, 7824, 198, 37811, 198, 6738, 764, 1330, 13269, 198, 198, 11748, 7007, 628, 198, 834, 9641, 834, 796, 366, 15, 13, 16, 13, 15, 1, 628 ]
3.351351
37
#!/usr/bin/env python __author__ = 'Sergei F. Kliver' import argparse import os from copy import deepcopy from Bio import SeqIO from Bio.Seq import Seq parser = argparse.ArgumentParser() parser.add_argument("-i", "--input_file", action="store", dest="input_file", help="Input file with sequences...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 834, 9800, 834, 796, 705, 7089, 469, 72, 376, 13, 14770, 1428, 6, 198, 198, 11748, 1822, 29572, 198, 11748, 28686, 198, 6738, 4866, 1330, 2769, 30073, 198, 6738, 16024, 1330, 1001, 80,...
2.532584
445
teste = list() teste.append('Gustavo') teste.append(40) galera = [] galera.append(teste) #neste caso estamos criando uma ligao entre as duas listas teste[0] = 'Maria' teste[1] = 22 galera.append(teste) print(teste) print(galera) # No caso os elementos no se acumularam porque no foi feita uma cpia dos elementos da lista...
[ 9288, 68, 796, 1351, 3419, 198, 9288, 68, 13, 33295, 10786, 38, 436, 615, 78, 11537, 198, 9288, 68, 13, 33295, 7, 1821, 8, 198, 13528, 8607, 796, 17635, 198, 13528, 8607, 13, 33295, 7, 9288, 68, 8, 1303, 77, 29872, 6124, 78, 1556,...
2.405556
180
from py_db import db import NSBL_helpers as helper db = db("NSBL") table_dict = {"register_batting_analytical": "a.player_name" , "register_batting_primary": "a.player_name" , "register_batting_secondary": "a.player_name" , "register_batting_splits": "a.player_name" , "register_pitching_analytical":...
[ 6738, 12972, 62, 9945, 1330, 20613, 198, 198, 11748, 10896, 9148, 62, 16794, 364, 355, 31904, 198, 198, 9945, 796, 20613, 7203, 8035, 9148, 4943, 628, 198, 11487, 62, 11600, 796, 19779, 30238, 62, 8664, 889, 62, 38200, 22869, 1298, 366,...
2.215156
739
#!/usr/bin/env python3 # # I waive copyright and related rights in the this work worldwide # through the CC0 1.0 Universal public domain dedication. # https://creativecommons.org/publicdomain/zero/1.0/legalcode # # Author(s): # Tom Parker <tparker@usgs.gov> """ watch for new webcam images.""" import zmq import to...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 2, 198, 2, 314, 40307, 6634, 290, 3519, 2489, 287, 262, 428, 670, 8688, 198, 2, 832, 262, 12624, 15, 352, 13, 15, 14499, 1171, 7386, 22445, 13, 198, 2, 3740, 1378, 20123, 425, ...
3.053097
113
import numpy as np import matplotlib.pyplot as plt from tqdm import tqdm
[ 11748, 299, 32152, 355, 45941, 198, 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 198, 6738, 256, 80, 36020, 1330, 256, 80, 36020, 198 ]
2.807692
26
from PyQt5 import QtWidgets, QtCore from math import floor import numpy as np from . _base import _SelectableArtist2D class SourceLandmarks(_DraggablePoints): color_active = 0.98, 0.7, 0.3 zorder = 1 class TemplateLandmarks(_DraggablePoints): color_active = 0.3, 0.3, 0....
[ 198, 6738, 9485, 48, 83, 20, 1330, 33734, 54, 312, 11407, 11, 33734, 14055, 198, 6738, 10688, 1330, 4314, 198, 11748, 299, 32152, 355, 45941, 198, 6738, 764, 4808, 8692, 1330, 4808, 17563, 540, 43020, 17, 35, 628, 628, 197, 198, 197, ...
2.188679
159
#!/usr/bin/env python # # Download and convert TartanAir data <https://theairlab.org/tartanair-dataset/>. # # NOTE The whole dataset is several terabytes, so be sure to tune the `LEVELS` and # `DATASETS` variables before running. # # It is recommended to install "AzCopy", an official tool for Azure, to get tolerable # ...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 198, 2, 10472, 290, 10385, 37109, 272, 16170, 1366, 1279, 5450, 1378, 1169, 958, 23912, 13, 2398, 14, 83, 433, 272, 958, 12, 19608, 292, 316, 15913, 13, 198, 2, 198, 2, 24550, 3...
2.759936
629
# -*- coding: utf-8 -*- """ Module for testing TsDB class """ from qats import TimeSeries, TsDB import unittest import os import numpy as np import sys # todo: add tests for listing subset(s) based on specifying parameter `names` (with and wo param. `keys`) # todo: add test for getm() with fullkey=False (...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 201, 198, 37811, 201, 198, 26796, 329, 4856, 13146, 11012, 1398, 201, 198, 37811, 201, 198, 6738, 10662, 1381, 1330, 3862, 27996, 11, 13146, 11012, 201, 198, 11748, 555, 715, ...
2.725
160
# Solution of; # Project Euler Problem 105: Special subset sums: testing # https://projecteuler.net/problem=105 # # Let S(A) represent the sum of elements in set A of size n. # We shall call it a special sum set if for any two non-empty disjoint # subsets, B and C, the following properties are true: # # S(B) S(C); ...
[ 2, 28186, 286, 26, 198, 2, 4935, 412, 18173, 20647, 13343, 25, 6093, 24637, 21784, 25, 4856, 198, 2, 3740, 1378, 16302, 68, 18173, 13, 3262, 14, 45573, 28, 13348, 198, 2, 220, 198, 2, 3914, 311, 7, 32, 8, 2380, 262, 2160, 286, 4...
2.919431
422
# Copyright (c) 2006-2013 Regents of the University of Minnesota. # For licensing terms, see the file LICENSE. import conf import g from item import attachment from item import item_base from item import item_versioned from item.util.item_type import Item_Type from util_.streetaddress import ccp_stop_words log = g.l...
[ 2, 15069, 357, 66, 8, 4793, 12, 6390, 3310, 658, 286, 262, 2059, 286, 8919, 13, 198, 2, 1114, 15665, 2846, 11, 766, 262, 2393, 38559, 24290, 13, 198, 198, 11748, 1013, 198, 11748, 308, 198, 198, 6738, 2378, 1330, 18231, 198, 6738, ...
3.480392
102
from nurses_2.app import App from .sandbox import Sandbox SandboxApp().run()
[ 6738, 20669, 62, 17, 13, 1324, 1330, 2034, 198, 6738, 764, 38142, 3524, 1330, 3837, 3524, 628, 198, 198, 18471, 3524, 4677, 22446, 5143, 3419, 198 ]
3.076923
26
#!/usr/bin/env python3 import os import numpy as np from midas2.common.utils import tsprint, command, split, OutputStream def build_bowtie2_db(bt2_db_dir, bt2_db_name, downloaded_files, num_cores): """ Build Bowtie2 database for the collections of fasta files """ bt2_db_prefix = f"{bt2_db_dir}/{bt2_db_name}...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 11748, 28686, 198, 11748, 299, 32152, 355, 45941, 198, 6738, 3095, 292, 17, 13, 11321, 13, 26791, 1330, 40379, 4798, 11, 3141, 11, 6626, 11, 25235, 12124, 628, 198, 198, 4299, 1382...
2.103512
1,623
import numpy as np import cv2
[ 11748, 299, 32152, 355, 45941, 198, 11748, 269, 85, 17, 628 ]
2.818182
11
import time from datetime import datetime from datetime import timedelta from bson import ObjectId from bson.errors import InvalidId from dynaconf import settings from ibutsu_server.mongo import mongo from ibutsu_server.tasks.queues import task from ibutsu_server.tasks.results import add_result_start_time from ibutsu_...
[ 11748, 640, 198, 6738, 4818, 8079, 1330, 4818, 8079, 198, 6738, 4818, 8079, 1330, 28805, 12514, 198, 198, 6738, 275, 1559, 1330, 9515, 7390, 198, 6738, 275, 1559, 13, 48277, 1330, 17665, 7390, 198, 6738, 37860, 7807, 69, 1330, 6460, 198...
3.441341
179
# Generated by Django 2.1.7 on 2019-05-14 20:36 from django.db import migrations from blocks.models import AnimationName, AnimationTrigger import anki_vector def generate_names(apps, schema_editor): """ Helper function to populate names of animations and triggers and update their status """ def __update_or_...
[ 2, 2980, 515, 416, 37770, 362, 13, 16, 13, 22, 319, 13130, 12, 2713, 12, 1415, 1160, 25, 2623, 198, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 198, 6738, 7021, 13, 27530, 1330, 23535, 5376, 11, 23535, 48344, 198, 198, 1174...
2.93135
437
from django.apps import AppConfig
[ 6738, 42625, 14208, 13, 18211, 1330, 2034, 16934, 628 ]
3.888889
9
from collections import namedtuple # tipo um dicionario, mais lento, mas imutvel! #Jogador a classe | #Atributos da classe J = namedtuple('Jogador', ['nome', 'time', 'camisa', 'numero']) j = J('Abel Hernadez', 'Flu', 99, 100) #Adicionando valores j2 = J('Fred', 'Fluminense', 9, 157) ...
[ 6738, 17268, 1330, 3706, 83, 29291, 201, 198, 2, 220, 8171, 78, 23781, 288, 47430, 4982, 11, 220, 285, 15152, 26269, 78, 11, 12422, 220, 545, 315, 626, 0, 201, 198, 201, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, ...
2.368876
347
import sys from typing import List import click from decker.conf import Config from decker.utils import print_done from .pool import FormatterBackendPool from .services import run_format
[ 11748, 25064, 198, 6738, 19720, 1330, 7343, 198, 198, 11748, 3904, 198, 198, 6738, 6203, 263, 13, 10414, 1330, 17056, 198, 6738, 6203, 263, 13, 26791, 1330, 3601, 62, 28060, 198, 198, 6738, 764, 7742, 1330, 5178, 1436, 7282, 437, 27201,...
3.82
50
from app import app, db from app.models import Category, Priority, Status from sqlalchemy.exc import SQLAlchemyError category = 'Uncategorized' priorities = ['Low', 'Medium', 'High', 'Urgent'] statuses = ['Open', 'Resolved', 'Pending', 'Closed'] with app.app_context(): if db_commit(): for priority, status in zip(p...
[ 6738, 598, 1330, 598, 11, 20613, 198, 6738, 598, 13, 27530, 1330, 21743, 11, 34416, 11, 12678, 198, 6738, 44161, 282, 26599, 13, 41194, 1330, 16363, 2348, 26599, 12331, 198, 198, 22872, 796, 705, 3118, 66, 47467, 1143, 6, 198, 3448, 2...
2.993976
166
from .objectives import MSELoss, CrossEntropyLoss from .models import Sequential, Model, Module from .grad_fn import Parameter, Tensor from .td_functional import *
[ 6738, 764, 15252, 1083, 1330, 6579, 3698, 793, 11, 6372, 14539, 28338, 43, 793, 198, 6738, 764, 27530, 1330, 24604, 1843, 11, 9104, 11, 19937, 198, 6738, 764, 9744, 62, 22184, 1330, 25139, 2357, 11, 309, 22854, 198, 6738, 764, 8671, 6...
3.565217
46
# plot prd scores import os import json from matplotlib import pyplot as plt import argparse parser = argparse.ArgumentParser() parser.add_argument("json_files", nargs="*") parser.add_argument("--output_fig", type=str, default='prd.png') args = parser.parse_args() def plot(precision_recall_pairs, labels=None, out_pat...
[ 2, 7110, 778, 67, 8198, 198, 11748, 28686, 198, 11748, 33918, 198, 6738, 2603, 29487, 8019, 1330, 12972, 29487, 355, 458, 83, 198, 198, 11748, 1822, 29572, 198, 48610, 796, 1822, 29572, 13, 28100, 1713, 46677, 3419, 198, 48610, 13, 2860...
2.60511
861
import numpy as np import matplotlib.pyplot as plt import keras
[ 11748, 299, 32152, 355, 45941, 198, 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 198, 11748, 41927, 292, 628, 198 ]
3
22
#!/usr/bin/env python3.4 import stats.data import stats.plot import stats.preprocess import pandas import numpy as np import matplotlib.pyplot as plt import matplotlib.dates import datetime from statsmodels.tsa.api import VAR, DynamicVAR sse_indices = stats.data.sse_indices() for i in sse_indices: d = stats.data.g...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 13, 19, 198, 11748, 9756, 13, 7890, 198, 11748, 9756, 13, 29487, 198, 11748, 9756, 13, 3866, 14681, 198, 11748, 19798, 292, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 2603, 29487, ...
2.242979
819
from typing import Dict, List from classifier.preprocessing.article_theme_tokenizer import ArticleThemeTokenizer from data_models.ThemeStat import ThemeStat
[ 6738, 19720, 1330, 360, 713, 11, 7343, 198, 198, 6738, 1398, 7483, 13, 3866, 36948, 13, 20205, 62, 43810, 62, 30001, 7509, 1330, 10172, 47863, 30642, 7509, 198, 6738, 1366, 62, 27530, 13, 47863, 17126, 1330, 26729, 17126, 198 ]
4.051282
39
#!/usr/bin/python from pssh import SSHClient, ParallelSSHClient, utils import datetime import time import random import sys output = [] hosts = ['client0', 'client1', 'client2','client3', 'client4'] client = ParallelSSHClient(hosts) values = ["bear","cake","fork","pipe","gun"] #if you need to get a response back f...
[ 2, 48443, 14629, 14, 8800, 14, 29412, 198, 198, 6738, 279, 45824, 1330, 33825, 11792, 11, 42945, 5432, 39, 11792, 11, 3384, 4487, 198, 11748, 4818, 8079, 198, 11748, 640, 198, 11748, 4738, 198, 11748, 25064, 198, 198, 22915, 796, 17635,...
3.134503
171
# -*- coding: utf-8 -*- """Cache Recommender. dump : run topN predict item for each user, and dump them to file like object(disk file or memory). load : recover from file like object, return CacheRecommender. Note that this recommender just a tiny version of the original one, which can...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 37811, 30562, 19237, 2194, 13, 198, 220, 220, 220, 10285, 1058, 1057, 1353, 45, 4331, 2378, 329, 1123, 2836, 11, 290, 220, 198, 220, 220, 220, 220, 220, 220, 220,...
2.306413
1,263
import logging from typing import ( Any, Sequence, Tuple, Type, ) from eth_utils.toolz import accumulate from p2p.abc import ( CommandAPI, ProtocolAPI, TransportAPI, ) from p2p.constants import P2P_PROTOCOL_COMMAND_LENGTH from p2p.typing import Capability def get_cmd_offsets(protocol_ty...
[ 11748, 18931, 198, 6738, 19720, 1330, 357, 198, 220, 220, 220, 4377, 11, 198, 220, 220, 220, 45835, 11, 198, 220, 220, 220, 309, 29291, 11, 198, 220, 220, 220, 5994, 11, 198, 8, 198, 198, 6738, 4555, 62, 26791, 13, 25981, 89, 1330...
2.733524
349
import binascii import json import time import jsonschema from .crypter import AESCipher from .exceptions import AccessTokenValidationError, RefreshTokenValidationError, TokenExpiredError, TokenSchemaError
[ 11748, 9874, 292, 979, 72, 198, 11748, 33918, 198, 11748, 640, 198, 198, 11748, 44804, 684, 2395, 2611, 198, 198, 6738, 764, 20470, 42104, 1330, 34329, 34, 10803, 198, 6738, 764, 1069, 11755, 1330, 8798, 30642, 7762, 24765, 12331, 11, 2...
3.655172
58
from serial import Serial import struct from math import log10, sin, cos, acos, atan2, asin, pi, sqrt import time from collections import namedtuple from colorama import Fore # agmpt_t = namedtuple("agmpt_t", "accel gyro mag pressure temperature timestamp") # ImageIMU = namedtuple("ImageIMU","image accel gyro tempera...
[ 198, 6738, 11389, 1330, 23283, 198, 11748, 2878, 198, 6738, 10688, 1330, 2604, 940, 11, 7813, 11, 8615, 11, 936, 418, 11, 379, 272, 17, 11, 355, 259, 11, 31028, 11, 19862, 17034, 198, 11748, 640, 198, 6738, 17268, 1330, 3706, 83, 29...
2.727273
275
import base64 import svgwrite import svgwrite.container import svgwrite.shapes import svgwrite.image import bs4 import os from urllib.request import urlopen from selenium import webdriver index = 0 code = input(' .> ') os.mkdir(code) url = 'https://pokemoncard.co.kr/recipe/search?code=' + code driver = webdriver.P...
[ 11748, 2779, 2414, 198, 198, 11748, 38487, 70, 13564, 198, 11748, 38487, 70, 13564, 13, 34924, 198, 11748, 38487, 70, 13564, 13, 1477, 7916, 198, 11748, 38487, 70, 13564, 13, 9060, 198, 11748, 275, 82, 19, 198, 11748, 28686, 198, 198, ...
2.1743
786
#!/usr/bin/python from database_tables import DrawingHistory from webserver_utils import verify_id import cgi import cgitb import datetime cgitb.enable() q = cgi.FieldStorage() history = q.getfirst("history", "") layers = q.getfirst("layers", "") title = q.getfirst("title", "") artist = verify_id() matches = Dra...
[ 2, 48443, 14629, 14, 8800, 14, 29412, 198, 6738, 6831, 62, 83, 2977, 1330, 40027, 18122, 198, 6738, 2639, 18497, 62, 26791, 1330, 11767, 62, 312, 628, 198, 11748, 269, 12397, 198, 11748, 269, 18300, 65, 198, 11748, 4818, 8079, 628, 19...
2.914894
188
''' 2019-08-07 00:01 Method: 20 x 5 grid over (camera x lighting) ''' VIEW_NUM, LIGHTING_NUM = 20, 5 import os, sys sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) from src.param_decomposer import AllParams
[ 7061, 6, 198, 23344, 12, 2919, 12, 2998, 3571, 25, 486, 198, 17410, 25, 198, 1238, 2124, 642, 10706, 625, 357, 25695, 2124, 12019, 8, 198, 7061, 6, 198, 28206, 62, 41359, 11, 406, 9947, 2751, 62, 41359, 796, 1160, 11, 642, 220, 19...
2.463918
97
import plotly.graph_objects as go import plotly.figure_factory as ff import numpy as np import calculations as calc from plotly.subplots import make_subplots
[ 11748, 7110, 306, 13, 34960, 62, 48205, 355, 467, 198, 11748, 7110, 306, 13, 26875, 62, 69, 9548, 355, 31246, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 16765, 355, 42302, 198, 198, 6738, 7110, 306, 13, 7266, 489, 1747, 1330, 787...
3.346939
49
from opendart.config.config import *
[ 6738, 1034, 437, 433, 13, 11250, 13, 11250, 1330, 1635 ]
3.6
10
"""A SSH Interface class. An interface to ssh on posix systems, and plink (part of the Putty suite) on Win32 systems. By Rasjid Wilcox. Copyright (c) 2002. Version: 0.2 Last modified 4 September 2002. Drawing on ideas from work by Julian Schaefer-Jasinski, Guido's telnetlib and version 0.1 of pyssh (htt...
[ 37811, 32, 33825, 26491, 1398, 13, 201, 198, 201, 198, 2025, 7071, 284, 26678, 319, 1426, 844, 3341, 11, 290, 458, 676, 357, 3911, 286, 262, 5930, 774, 201, 198, 2385, 578, 8, 319, 7178, 2624, 3341, 13, 201, 198, 201, 198, 3886, 2...
2.12036
1,778
from clifford import g3c import numpy as np import scipy.optimize as opt from pygacal.rotation.costfunction import restrictedImageCostFunction, restrictedMultiViewImageCostFunction from pygacal.rotation import minimizeError from pygacal.rotation.mapping import BivectorLineImageMapping, BivectorLineMapping, LineProper...
[ 198, 198, 6738, 19516, 585, 1330, 308, 18, 66, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 629, 541, 88, 13, 40085, 1096, 355, 2172, 198, 6738, 12972, 70, 330, 282, 13, 10599, 341, 13, 15805, 8818, 1330, 10770, 5159, 13729, 22203,...
2.404432
361
import unittest from collections import OrderedDict from dbcut.utils import sorted_nested_dict
[ 11748, 555, 715, 395, 198, 6738, 17268, 1330, 14230, 1068, 35, 713, 198, 198, 6738, 20613, 8968, 13, 26791, 1330, 23243, 62, 77, 7287, 62, 11600, 628, 628, 198 ]
3.448276
29
# -*- coding: utf-8 -*- # Copyright 2019, Sprout Development Team # Distributed under the terms of the Apache License 2.0 import os import asyncio import asyncpg from tortoise import Tortoise import sprout def create_schemas(self, app=None, schemas=None): """Initialize db schemas""" self.app = a...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 15069, 13130, 11, 5522, 448, 7712, 4816, 198, 2, 4307, 6169, 739, 262, 2846, 286, 262, 24843, 13789, 362, 13, 15, 198, 198, 11748, 28686, 198, 11748, 30351, 952, 19...
2.395582
498
#!/usr/bin/env/python3 import unittest from pi_gpio_service import service
[ 2, 48443, 14629, 14, 8800, 14, 24330, 14, 29412, 18, 198, 198, 11748, 555, 715, 395, 198, 6738, 31028, 62, 31197, 952, 62, 15271, 1330, 2139, 628 ]
2.851852
27
import string import regex import pandas as pd from pandas.tests.io.parser import index_col sangam_text_folder = "./sangam_tamil_text/" sangam_poem_folder = "./sangam_tamil_poems/" sangam_csv_folder = "./sangam_tamil_csv/" data_files = ['agananuru','purananuru','ainkurunuru','kalithokai', 'kurunthokai', 'natrinai', 'p...
[ 11748, 4731, 198, 11748, 40364, 198, 11748, 19798, 292, 355, 279, 67, 198, 6738, 19798, 292, 13, 41989, 13, 952, 13, 48610, 1330, 6376, 62, 4033, 198, 82, 648, 321, 62, 5239, 62, 43551, 796, 366, 19571, 82, 648, 321, 62, 83, 321, ...
2.096522
1,150
from django.contrib.auth import get_user_model from django.shortcuts import get_object_or_404 from rest_framework import permissions from rest_framework import viewsets from django.views.decorators.csrf import csrf_exempt from django.core.files.storage import FileSystemStorage from rest_framework.generics import ( ...
[ 6738, 42625, 14208, 13, 3642, 822, 13, 18439, 1330, 651, 62, 7220, 62, 19849, 198, 6738, 42625, 14208, 13, 19509, 23779, 1330, 651, 62, 15252, 62, 273, 62, 26429, 198, 6738, 1334, 62, 30604, 1330, 21627, 198, 6738, 1334, 62, 30604, 13...
3.14978
227
""" Flask Extension for OPA """ import requests from flask.app import Flask __version__ = "1.0.0"
[ 37811, 198, 7414, 2093, 27995, 329, 440, 4537, 198, 37811, 198, 11748, 7007, 198, 6738, 42903, 13, 1324, 1330, 46947, 198, 198, 834, 9641, 834, 796, 366, 16, 13, 15, 13, 15, 1, 628, 628, 628, 198 ]
2.837838
37
import sys import os import csv from random import shuffle import cv2 import numpy as np import matplotlib.pyplot as plt import sklearn from sklearn.model_selection import train_test_split from keras.models import Sequential from keras.layers import Flatten,\ Dense,\ ...
[ 11748, 25064, 198, 11748, 28686, 198, 11748, 269, 21370, 198, 6738, 4738, 1330, 36273, 198, 198, 11748, 269, 85, 17, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 198, 11748, 1341, 357...
2.504922
3,149
#! -*- encoding: utf-8 -*- from openerp import addons from openerp.osv import fields, osv, orm from openerp import tools from openerp.tools.translate import _
[ 2, 0, 532, 9, 12, 21004, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 6738, 21996, 79, 1330, 751, 684, 198, 6738, 21996, 79, 13, 418, 85, 1330, 7032, 11, 267, 21370, 11, 393, 76, 198, 6738, 21996, 79, 1330, 4899, 198, 6738, 21996, 7...
2.962963
54
from machaon.app import AppRoot, deploy_directory, transfer_deployed_directory from machaon.process import Spirit, TempSpirit from machaon.types.shell import Path
[ 6738, 3235, 64, 261, 13, 1324, 1330, 2034, 30016, 11, 6061, 62, 34945, 11, 4351, 62, 2934, 1420, 276, 62, 34945, 198, 6738, 3235, 64, 261, 13, 14681, 1330, 7710, 11, 24189, 41910, 198, 6738, 3235, 64, 261, 13, 19199, 13, 29149, 1330...
3.644444
45
#Securities array access to Security Objects: self.Securities["IBM"].Price
[ 2, 6558, 10886, 7177, 1895, 284, 4765, 35832, 25, 198, 944, 13, 6558, 10886, 14692, 9865, 44, 1, 4083, 18124 ]
3.7
20
"""empty message Revision ID: 1d09e9261d5 Revises: 40d93619b7d Create Date: 2016-12-16 11:38:41.336859 """ # revision identifiers, used by Alembic. revision = '1d09e9261d5' down_revision = '40d93619b7d' from alembic import op import sqlalchemy as sa
[ 37811, 28920, 3275, 198, 198, 18009, 1166, 4522, 25, 352, 67, 2931, 68, 24, 30057, 67, 20, 198, 18009, 2696, 25, 2319, 67, 24, 2623, 1129, 65, 22, 67, 198, 16447, 7536, 25, 1584, 12, 1065, 12, 1433, 1367, 25, 2548, 25, 3901, 13, ...
2.348624
109
""" API for attaching, detaching, and reading extended metadata to HopsFS files/directories. It uses the Hopsworks /xattrs REST API """ from hops import constants, util, hdfs from hops.exceptions import RestAPIError import urllib def set_xattr(hdfs_path, xattr_name, value): """ Attach an extended attribute to...
[ 37811, 198, 17614, 329, 39550, 11, 1062, 8103, 11, 290, 3555, 7083, 20150, 284, 367, 2840, 10652, 3696, 14, 12942, 1749, 13, 198, 1026, 3544, 262, 9996, 2032, 3647, 1220, 87, 1078, 3808, 30617, 7824, 198, 37811, 198, 6738, 29438, 1330, ...
2.303859
2,488
from .vis import df_from_file, df_from_dir, filter_by, PivotTable from .lines import plot_lines
[ 6738, 764, 4703, 1330, 47764, 62, 6738, 62, 7753, 11, 47764, 62, 6738, 62, 15908, 11, 8106, 62, 1525, 11, 350, 45785, 10962, 198, 6738, 764, 6615, 1330, 7110, 62, 6615, 198 ]
3
32
# 5 27 20 # 5 25 20 # added import import math # 3 tries # 5.18.20 # forgot that sliding window is in while loop shinking bc last val might ewaql 3 first vals def smallest_subarray_with_given_sum(s, arr): # TODO: Write your code here ''' - have starting index, have currLen, minLen - one found t...
[ 2, 220, 642, 2681, 1160, 628, 198, 2, 642, 1679, 1160, 198, 2, 2087, 1330, 198, 11748, 10688, 198, 2, 220, 513, 8404, 628, 198, 198, 2, 642, 13, 1507, 13, 1238, 198, 2, 16453, 326, 22292, 4324, 318, 287, 981, 9052, 427, 8040, 47...
2.508046
435
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # Copyright 2014 Lukas Kemmer # # Licensed under the Apache License, Version 2.0 (the "License"); you # may not use this file except in compliance with the License. You # may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless require...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 2, 15069, 1946, 28102, 292, 24854, 647, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, ...
2.744604
834
obj = Solution(A=[3,2,1], B=[3,2,1]) obj.printAlternativelySameSize() """ Given two arrays, print each element alternatively For example) arr1 = [a,b,c,d] arr2 = [e,f,g,h,i,j,k] => a e b f c g d h i j k """ obj = Solution(['a', 'b', 'c', 'd'], ['e','f','g','h','i','j','k']) obj.print_lists()...
[ 201, 198, 26801, 796, 28186, 7, 32, 41888, 18, 11, 17, 11, 16, 4357, 347, 41888, 18, 11, 17, 11, 16, 12962, 201, 198, 26801, 13, 4798, 44163, 30556, 10699, 3419, 201, 198, 201, 198, 37811, 201, 198, 201, 198, 15056, 734, 26515, 11...
1.98773
163
import unittest from pokeher.theaigame_bot import TheAiGameBot
[ 11748, 555, 715, 395, 198, 6738, 22620, 372, 13, 1169, 64, 328, 480, 62, 13645, 1330, 383, 32, 72, 8777, 20630, 198 ]
2.863636
22
import unittest from matterix import Tensor import numpy as np
[ 11748, 555, 715, 395, 198, 6738, 2300, 844, 1330, 309, 22854, 198, 11748, 299, 32152, 355, 45941, 628 ]
3.555556
18
#!/usr/bin/env python2 # -*- Mode: python -*- # # DESCRIPTION: Setup and run n chord nodes. # # import getopt import os import sys import time import random import signal import threading if __name__ == "__main__": try: flags, args = parse_cmdline(sys.argv) except: print_usage() sys.exi...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 17, 198, 2, 532, 9, 12, 10363, 25, 21015, 532, 9, 12, 198, 2, 198, 2, 22196, 40165, 25, 31122, 290, 1057, 299, 25594, 13760, 13, 198, 2, 198, 2, 198, 11748, 651, 8738, 198, 11748, 286...
1.994403
536
""" 2.4. """ from unittest import TestCase, main from fractions import Fraction from tasks import task_2_4 if __name__ == "__main__": main(verbosity=2)
[ 37811, 198, 220, 220, 362, 13, 19, 13, 198, 37811, 198, 198, 6738, 555, 715, 395, 1330, 6208, 20448, 11, 1388, 198, 6738, 49876, 1330, 376, 7861, 198, 6738, 8861, 1330, 4876, 62, 17, 62, 19, 628, 628, 198, 361, 11593, 3672, 834, 6...
2.688525
61
from aiohttp import web from aiohttp_security import authorized_userid from aioweb.conf import settings
[ 6738, 257, 952, 4023, 1330, 3992, 198, 6738, 257, 952, 4023, 62, 12961, 1330, 10435, 62, 7220, 312, 198, 6738, 257, 72, 322, 1765, 13, 10414, 1330, 6460, 628, 628 ]
3.566667
30
a = Solution() print(a.subarraySum([1, 2, 1, 2], 3))
[ 198, 64, 796, 28186, 3419, 198, 4798, 7, 64, 13, 7266, 18747, 13065, 26933, 16, 11, 362, 11, 352, 11, 362, 4357, 513, 4008, 198 ]
2.16
25
""" Helper script that copies all of the files for an arrays sample into the dev aou input bucket. This will trigger the submit_aou_workload cloud function for each file. When all files have been uploaded, it will launch an arrays workflow via the workflow launcher (but only if a workflow with that chipwell barcode & a...
[ 37811, 5053, 525, 4226, 326, 9088, 477, 286, 262, 3696, 329, 281, 26515, 6291, 656, 262, 1614, 257, 280, 5128, 19236, 13, 770, 481, 7616, 198, 1169, 9199, 62, 64, 280, 62, 1818, 2220, 6279, 2163, 329, 1123, 2393, 13, 1649, 477, 3696...
2.689815
432
import numpy as np import cv2 from src import lane_finder as lf from src import parameters import argparse parser = argparse.ArgumentParser(description='Visualizes the warp transform.') parser.add_argument('filename') args = parser.parse_args() image = cv2.imread(args.filename) params = parameters.LaneFinderParams...
[ 11748, 299, 32152, 355, 45941, 198, 11748, 269, 85, 17, 198, 6738, 12351, 1330, 11193, 62, 22805, 355, 300, 69, 198, 6738, 12351, 1330, 10007, 198, 11748, 1822, 29572, 198, 198, 48610, 796, 1822, 29572, 13, 28100, 1713, 46677, 7, 11213,...
3.146341
123
############### # Ballot Parser for UC Berkeley Results # # This ballot parser has been tailored to the ballot # system used by UCB. If you use another software # to define ballots, ensure the data returned by the # ballot parser returns data in the following fashion: # # [ # { # "ballot_id": "unique_ballot_i...
[ 7804, 4242, 21017, 198, 2, 6932, 313, 23042, 263, 329, 14417, 14727, 15691, 198, 2, 198, 2, 770, 11100, 30751, 468, 587, 27571, 284, 262, 11100, 198, 2, 1080, 973, 416, 14417, 33, 13, 1002, 345, 779, 1194, 3788, 198, 2, 284, 8160, ...
2.023644
719
import collections import inspect import time import re # module config: disable_tracing = False indent = True # indentation for log output _log_indent = dict() def indent_str(cnt, end=False): """ indent string :param cnt: indentation count :param end: close actual indentation? :return: ""...
[ 11748, 17268, 198, 11748, 10104, 198, 11748, 640, 198, 11748, 302, 628, 198, 2, 8265, 4566, 25, 198, 40223, 62, 2213, 4092, 796, 10352, 198, 521, 298, 796, 6407, 198, 198, 2, 33793, 341, 329, 2604, 5072, 198, 62, 6404, 62, 521, 298,...
2.432034
949
#!python3 #encoding:utf-8 from urllib.request import build_opener, HTTPCookieProcessor from urllib.parse import urlencode from http.cookiejar import CookieJar import pprint import dataset if __name__ == '__main__': hatena_id = 'ytyaru' client = HatenaSite( path_hatena_accounts_sqlite3 ...
[ 2, 0, 29412, 18, 198, 2, 12685, 7656, 25, 40477, 12, 23, 198, 6738, 2956, 297, 571, 13, 25927, 1330, 1382, 62, 404, 877, 11, 7154, 51, 5662, 18055, 18709, 273, 198, 6738, 2956, 297, 571, 13, 29572, 1330, 2956, 11925, 8189, 198, 67...
2.380368
163
# -*- coding: utf-8 -*- # Copyright (c) 2015, Bravo Logistics and contributors # For license information, please see license.txt from __future__ import unicode_literals import frappe from frappe.model.document import Document
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 15069, 357, 66, 8, 1853, 11, 38990, 5972, 3969, 290, 20420, 198, 2, 1114, 5964, 1321, 11, 3387, 766, 5964, 13, 14116, 198, 198, 6738, 11593, 37443, 834, 1330, 28000...
3.342857
70
#!coding:utf-8 import json import pymysql import pandas as pd
[ 2, 0, 66, 7656, 25, 40477, 12, 23, 198, 198, 11748, 33918, 198, 11748, 279, 4948, 893, 13976, 198, 11748, 19798, 292, 355, 279, 67, 198, 220, 220, 220, 220, 220, 220, 220, 220, 628, 198 ]
2.055556
36
# -*- coding: utf-8 -*- from xml.dom import minidom import re # Thrown on any dictionary error _iter_dict_sorted = lambda dic: sorted( dic.iteritems(), key=(lambda key_value: _dict_sort_key(key_value)) ) DATATYPE_ROOT_DICT = 0 DATATYPE_KEY = 1 DATATYPE_ATTR = 2 DATATYPE_ATTRS = 3 # Recursive core function
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 6738, 35555, 13, 3438, 1330, 949, 312, 296, 198, 11748, 302, 198, 198, 2, 536, 2053, 319, 597, 22155, 4049, 198, 198, 62, 2676, 62, 11600, 62, 82, 9741, 796, 37...
2.306569
137
import cv2 import argparse import numpy as np ap = argparse.ArgumentParser() ap.add_argument('-i', required = True, help = 'Enter the path of Image') args = vars(ap.parse_args()) image = cv2.imread(args['i']) def rotate(image, point, angle, scale): """ this function will take an image and rotate it through the g...
[ 11748, 269, 85, 17, 198, 11748, 1822, 29572, 198, 11748, 299, 32152, 355, 45941, 628, 198, 499, 796, 1822, 29572, 13, 28100, 1713, 46677, 3419, 198, 499, 13, 2860, 62, 49140, 10786, 12, 72, 3256, 2672, 796, 6407, 11, 1037, 796, 705, ...
2.833333
354
import getflightdata import requests from bs4 import BeautifulSoup import random import json import pymongo import datetime from Utils.config import config # import config mongoConf = config['mongo'] feichangzun = 'http://www.variflight.com/flight/fnum/' feichangzunhouzui = '.html?AE71649A58c77&fdate=' # # fl...
[ 11748, 651, 22560, 7890, 198, 11748, 7007, 198, 6738, 275, 82, 19, 1330, 23762, 50, 10486, 198, 11748, 4738, 198, 11748, 33918, 198, 11748, 279, 4948, 25162, 198, 11748, 4818, 8079, 198, 6738, 7273, 4487, 13, 11250, 1330, 4566, 198, 198...
2.740506
158
import numpy as np import cv2 import face_recognition import time # Load a sample picture and learn how to recognize it. me_image = face_recognition.load_image_file("known/joakim.png") me_face_encoding = face_recognition.face_encodings(me_image)[0] known_face_encodings = [ me_face_encoding, ] known_face_names = [...
[ 11748, 299, 32152, 355, 45941, 198, 11748, 269, 85, 17, 198, 11748, 1986, 62, 26243, 653, 198, 11748, 640, 628, 198, 2, 8778, 257, 6291, 4286, 290, 2193, 703, 284, 7564, 340, 13, 198, 1326, 62, 9060, 796, 1986, 62, 26243, 653, 13, ...
2.314066
1,038
# coding: utf-8 """ xlTables - Load/generate table data with Excel from python dictionary structures cunningr - 2020 Requires openpyxl >= 2.6.2, jsonschema """ import os import openpyxl from openpyxl import Workbook from sdtables import xlTables from tabulate import tabulate # Retrieve a list o...
[ 2, 19617, 25, 3384, 69, 12, 23, 628, 198, 37811, 198, 220, 220, 220, 2124, 75, 51, 2977, 532, 8778, 14, 8612, 378, 3084, 1366, 351, 24134, 198, 220, 220, 220, 422, 21015, 22155, 8573, 628, 220, 220, 220, 34218, 81, 532, 12131, 628...
3.091549
142
""" --- Compare Functions --- Simple Two functions f and g are provided as inputs to checkio. The first function f is the primary function and the second function g is the backup. Use your coding skills to return a third function h which returns the same output as f unless f raises an exception or returns None. In thi...
[ 37811, 11420, 27814, 40480, 11420, 17427, 198, 198, 7571, 5499, 277, 290, 308, 389, 2810, 355, 17311, 284, 2198, 952, 13, 198, 464, 717, 2163, 277, 318, 262, 4165, 2163, 290, 262, 1218, 198, 8818, 308, 318, 262, 11559, 13, 5765, 534, ...
3.174129
402
""" yawndb.sync ~~~~~~~~~~~ Sync YAWNDB transport. Use standart socket object methods. """ import time import json import socket import urllib2 import logging from collections import deque from yawndb._base import _YAWNDBBase _logger = logging.getLogger(__name__)
[ 37811, 198, 220, 220, 220, 331, 707, 358, 65, 13, 27261, 198, 220, 220, 220, 220, 15116, 4907, 93, 628, 220, 220, 220, 35908, 575, 12298, 8575, 33, 4839, 13, 5765, 1302, 433, 17802, 2134, 5050, 13, 198, 37811, 198, 198, 11748, 640, ...
2.907216
97
from setuptools import setup, find_packages with open('README.rst', 'r') as infile: read_me = infile.read() setup( packages=find_packages(), name='depq', version='1.5.5', description='Double-ended priority queue', long_description=read_me, author='Ofek Lev', author_email='ofekmeister@...
[ 6738, 900, 37623, 10141, 1330, 9058, 11, 1064, 62, 43789, 198, 198, 4480, 1280, 10786, 15675, 11682, 13, 81, 301, 3256, 705, 81, 11537, 355, 1167, 576, 25, 198, 220, 220, 220, 1100, 62, 1326, 796, 1167, 576, 13, 961, 3419, 198, 198,...
2.534591
477
from hypothesis import strategies from rithm import Fraction from rene import MIN_CONTOUR_VERTICES_COUNT from rene.exact import (Contour, Point) integers = strategies.integers() non_zero_integers = integers.filter(bool) scalars = (integers | strategies.fractions() | strategies.build...
[ 6738, 14078, 1330, 10064, 198, 6738, 374, 342, 76, 1330, 376, 7861, 198, 198, 6738, 302, 710, 1330, 20625, 62, 37815, 11698, 62, 15858, 34444, 62, 34, 28270, 198, 6738, 302, 710, 13, 1069, 529, 1330, 357, 4264, 454, 11, 198, 220, 22...
2.205514
399
/* Bendy and the Ink Machine, BATIM, and all graphics and sounds are The Meatly NOT AN OFFICIAL BENDY AND THE INK MACHINE PRODUCT. NOT APPROVED BY OR ASSOCIATED WITH THEMEATLY GAMES, LTD. Code below released under GPLv2 */ import wx import subprocess from random import randint from time import sleep I...
[ 15211, 198, 220, 220, 220, 26874, 88, 290, 262, 33068, 10850, 11, 37421, 3955, 11, 290, 477, 9382, 290, 5238, 389, 220, 383, 19145, 306, 198, 220, 220, 220, 5626, 3537, 47601, 12576, 347, 10619, 56, 5357, 3336, 3268, 42, 337, 16219, ...
2.296512
344
#!/usr/bin/env python3 import os from skimage import io from skimage import color from PIL import Image #TODO Multi-thread def avg_brightness(image_list): """ A list of grey scale images """ brightness_per_block=[] for image in image_list: img_shape = image.shape img_Size = image...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 11748, 28686, 198, 6738, 1341, 9060, 1330, 33245, 198, 6738, 1341, 9060, 1330, 3124, 198, 6738, 350, 4146, 1330, 7412, 198, 198, 2, 51, 3727, 46, 15237, 12, 16663, 198, 198, 4299, ...
2.30721
319
# Copyright 2021 DAI Foundation # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at: http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing,...
[ 2, 220, 15069, 33448, 17051, 40, 5693, 198, 2, 198, 2, 220, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 2, 220, 345, 743, 407, 779, 428, 2393, 2845, 287, 11846, 351, 262, 13789, 13, 19...
3.327087
587
# Copyright 2019 DeepMind Technologies Ltd. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appl...
[ 2, 15069, 13130, 10766, 28478, 21852, 12052, 13, 1439, 2489, 10395, 13, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 2, 345, 743, 407, 779, 428, 2393, 2845, 287, 11846, 35...
3.396552
348
from PyQt6.QtWidgets import QApplication, QWidget import sys # komentarz app = QApplication(sys.argv) # ([]) -bez argumentw window = QWidget() window.show() app.exec()
[ 198, 6738, 9485, 48, 83, 21, 13, 48, 83, 54, 312, 11407, 1330, 1195, 23416, 11, 1195, 38300, 198, 198, 11748, 25064, 220, 1303, 479, 296, 298, 283, 89, 198, 198, 1324, 796, 1195, 23416, 7, 17597, 13, 853, 85, 8, 220, 1303, 29565, ...
2.536232
69
import argparse import os import subprocess from typing import List, Sequence, Text import textwrap import numpy as np import pandas as pd import sklearn import tensorflow as tf import tensorflow_addons as tfa import transformers import data import models import ga if __name__ == "__main__": parser = argpars...
[ 11748, 1822, 29572, 198, 11748, 28686, 198, 11748, 850, 14681, 198, 6738, 19720, 1330, 7343, 11, 45835, 11, 8255, 198, 11748, 2420, 37150, 198, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 19798, 292, 355, 279, 67, 198, 11748, 1341, ...
2.553537
1,046
import sys from kb import * #receives a list of setences if it is in test mode if __name__ == '__main__': print(main())
[ 11748, 25064, 198, 6738, 47823, 1330, 1635, 198, 198, 2, 260, 344, 1083, 257, 1351, 286, 900, 3007, 611, 340, 318, 287, 1332, 4235, 628, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 198, 220, 220, 220, 3601, 7, 124...
2.822222
45
from .base_mixins import BaseLoggingMixin from .models import APIRequestLog
[ 6738, 764, 8692, 62, 19816, 1040, 1330, 7308, 11187, 2667, 35608, 259, 198, 6738, 764, 27530, 1330, 7824, 18453, 11187, 628, 198 ]
3.545455
22
from typing import Iterator, List, Optional, Sequence, Tuple, TypeVar _T1 = TypeVar("_T1") _T2 = TypeVar("_T2") def rzip_longest( seq1: Sequence[_T1], seq2: Sequence[_T2] ) -> Iterator[Tuple[_T1, Optional[_T2]]]: """Make an iterator over tuples, with elements from the input sequences. If the second sequ...
[ 6738, 19720, 1330, 40806, 1352, 11, 7343, 11, 32233, 11, 45835, 11, 309, 29291, 11, 5994, 19852, 198, 198, 62, 51, 16, 796, 5994, 19852, 7203, 62, 51, 16, 4943, 198, 62, 51, 17, 796, 5994, 19852, 7203, 62, 51, 17, 4943, 628, 198, ...
2.50165
303
# -*- coding: UTF-8 -*- import os import json import time import rsa import base64 import urllib import binascii import traceback import requests import pandas as pd from lxml import etree from datetime import datetime def main(): blacklist_file = 'blacklist.txt' # config = { 'query': '', # ...
[ 2, 532, 9, 12, 19617, 25, 41002, 12, 23, 532, 9, 12, 198, 11748, 28686, 198, 11748, 33918, 198, 11748, 640, 198, 11748, 374, 11400, 198, 11748, 2779, 2414, 198, 11748, 2956, 297, 571, 198, 11748, 9874, 292, 979, 72, 198, 11748, 1285...
2.029586
676
from spoty.commands.first_list_commands import \ count_command, \ export_command, \ print_command from spoty.commands.second_list_commands import \ filter_second_group, \ find_duplicates_second_command,\ find_deezer_second_group, \ find_spotify_second_group from spoty.commands import get_gro...
[ 6738, 4136, 88, 13, 9503, 1746, 13, 11085, 62, 4868, 62, 9503, 1746, 1330, 3467, 198, 220, 220, 220, 954, 62, 21812, 11, 3467, 198, 220, 220, 220, 10784, 62, 21812, 11, 3467, 198, 220, 220, 220, 3601, 62, 21812, 198, 6738, 4136, 8...
2.814947
281
# encoding=utf8 import jenkins_job_wrecker.modules.base from jenkins_job_wrecker.helpers import get_bool, Mapper
[ 2, 21004, 28, 40477, 23, 198, 198, 11748, 474, 268, 5331, 62, 21858, 62, 39238, 263, 13, 18170, 13, 8692, 198, 6738, 474, 268, 5331, 62, 21858, 62, 39238, 263, 13, 16794, 364, 1330, 651, 62, 30388, 11, 337, 11463, 628, 628, 628, 6...
2.695652
46
#!/usr/bin/env python # -*- coding: utf-8 -*- import sys import re import regex import argparse # The variables below need to be adjusted for a language pair and dataset. # To add a new language, define the list of alpha characters in the dict below. MIN_LENGTH = 1 # minimum number of words in a sentence MAX_L...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 11748, 25064, 198, 11748, 302, 198, 11748, 40364, 198, 11748, 1822, 29572, 628, 198, 2, 383, 9633, 2174, 761, 284,...
1.957616
755
from pathlib import Path from requests import post from random import randint from json import loads, dumps import random, datetime, rubika.encryption # because should be exist ! adminsAccess = { "pin":"PinMessages", "newAdmin":"SetAdmin", "editInfo":"ChangeInfo", "banMember":"BanMember", "changeLink":"SetJoinLin...
[ 6738, 3108, 8019, 1330, 10644, 198, 6738, 7007, 1330, 1281, 198, 6738, 4738, 1330, 43720, 600, 198, 6738, 33918, 1330, 15989, 11, 45514, 198, 11748, 4738, 11, 4818, 8079, 11, 6437, 9232, 13, 12685, 13168, 198, 198, 2, 780, 815, 307, 2...
3.251497
167
people = 30 cars = 40 buses = 15 if cars > people: print "We should take the cars." elif cars < people: print "we should not take the cars." else: print "we can't decide." if buses > cars: print " That's too many buses" elif buses < cars: print " Maybe we could take the bus." else: print "we stil can't decide."...
[ 15332, 796, 1542, 198, 37993, 796, 2319, 198, 65, 2664, 796, 1315, 198, 198, 361, 5006, 1875, 661, 25, 198, 197, 4798, 366, 1135, 815, 1011, 262, 5006, 526, 198, 417, 361, 5006, 1279, 661, 25, 198, 197, 4798, 366, 732, 815, 407, 1...
3.007092
141
import logging import random import string from scrapy.http.request.form import _get_inputs as get_form_data logger = logging.getLogger(__name__) SEARCH_TERMS = list(string.ascii_lowercase) + list('123456789 *%.?')
[ 11748, 18931, 198, 11748, 4738, 198, 11748, 4731, 198, 198, 6738, 15881, 88, 13, 4023, 13, 25927, 13, 687, 1330, 4808, 1136, 62, 15414, 82, 355, 651, 62, 687, 62, 7890, 628, 198, 6404, 1362, 796, 18931, 13, 1136, 11187, 1362, 7, 834...
2.846154
78
import numpy as np import matplotlib.pyplot as plt pid_file = open("pid.txt", "w") x = np.linspace(0, 2 * np.pi, 100) print x pid_file.write(x) y1, y2 = np.sin(x), np.cos(x) plt.plot(x, y1, label='y = sin(x)') plt.plot(x, y2, label='y = cos(x)') plt.legend() plt.show()
[ 11748, 299, 32152, 355, 45941, 198, 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 198, 220, 198, 198, 35317, 62, 7753, 796, 1280, 7203, 35317, 13, 14116, 1600, 366, 86, 4943, 198, 198, 87, 796, 45941, 13, 21602, 10223, 7, ...
1.978571
140
# -*- coding: utf-8 -*- import info from Package.CMakePackageBase import *
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 11748, 7508, 198, 198, 6738, 15717, 13, 34, 12050, 27813, 14881, 1330, 1635, 628 ]
2.75
28
"""Test config_generator.py module""" from unittest import TestCase from projector_installer.config_generator import token_quote
[ 37811, 14402, 4566, 62, 8612, 1352, 13, 9078, 8265, 37811, 198, 6738, 555, 715, 395, 1330, 6208, 20448, 198, 198, 6738, 43396, 62, 17350, 263, 13, 11250, 62, 8612, 1352, 1330, 11241, 62, 22708, 628 ]
3.742857
35
import os import re import logging import zipfile logger = logging.getLogger(__name__) def get_compiled_modules(project_trees_file): with open(project_trees_file) as f: try: str_trees = split_trees([l.rstrip() for l in f.readlines()]) except: logger.error...
[ 11748, 28686, 198, 11748, 302, 198, 11748, 18931, 198, 11748, 19974, 7753, 198, 198, 6404, 1362, 796, 18931, 13, 1136, 11187, 1362, 7, 834, 3672, 834, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 628, 198, 220, 220, 220, 220, 198...
1.837079
890
from ..schema.nexusphp import Attendance from ..schema.site_base import Work, SignState from ..utils.net_utils import NetUtils
[ 6738, 11485, 15952, 2611, 13, 44520, 10121, 1330, 46502, 590, 198, 6738, 11485, 15952, 2611, 13, 15654, 62, 8692, 1330, 5521, 11, 5865, 9012, 198, 6738, 11485, 26791, 13, 3262, 62, 26791, 1330, 3433, 18274, 4487, 628 ]
3.459459
37
from garage.envs import GymEnv from garage.tf.algos.rl2 import RL2Worker from tests.fixtures import TfGraphTestCase from tests.fixtures.envs.dummy import DummyBoxEnv from tests.fixtures.policies import DummyPolicy
[ 6738, 15591, 13, 268, 14259, 1330, 31187, 4834, 85, 198, 6738, 15591, 13, 27110, 13, 14016, 418, 13, 45895, 17, 1330, 45715, 17, 12468, 263, 198, 198, 6738, 5254, 13, 69, 25506, 1330, 309, 69, 37065, 14402, 20448, 198, 6738, 5254, 13,...
3.042254
71
#Uche Ogbuji exercises format-number on Brad Marshall's behalf from Xml.Xslt import test_harness sheet_1 = """\ <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> <xsl:template match = "/"> <xsl:value-of select='format-number(10000000000.75 + 10000000000.50, "##.##"...
[ 2, 52, 2395, 25686, 11110, 7285, 13565, 5794, 12, 17618, 319, 8114, 13606, 338, 8378, 198, 198, 6738, 1395, 4029, 13, 55, 82, 2528, 1330, 1332, 62, 9869, 1108, 198, 198, 21760, 62, 16, 796, 37227, 59, 198, 27, 87, 6649, 25, 47720, ...
2.372449
196
import typing as t import pytest as pt from fastapi_mailman import BadHeaderError, EmailMessage if t.TYPE_CHECKING: from fastapi_mailman import Mail
[ 11748, 19720, 355, 256, 198, 198, 11748, 12972, 9288, 355, 42975, 198, 198, 6738, 3049, 15042, 62, 4529, 805, 1330, 7772, 39681, 12331, 11, 9570, 12837, 198, 198, 361, 256, 13, 25216, 62, 50084, 2751, 25, 198, 220, 220, 220, 422, 3049...
3.134615
52