content
stringlengths
1
1.05M
input_ids
listlengths
1
883k
ratio_char_token
float64
1
22.9
token_count
int64
1
883k
#!/usr/bin/env python3.6 import random #importing random module from user import User #importing class User from credential import Credential #importing class Credential def create_credential(username,accountname,password): """ create_credential function that creates an instance of the class credential ...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 13, 21, 198, 220, 198, 11748, 4738, 220, 1303, 11748, 278, 4738, 8265, 198, 6738, 2836, 1330, 11787, 1303, 11748, 278, 1398, 11787, 198, 6738, 49920, 1330, 327, 445, 1843, 1303, 11748, ...
3.167539
764
'''Line up operators...''' import cp_actions as cp import re def act(controller, bundle, options): ''' Required action method ''' context = cp.get_context(controller) line_ending = cp.get_line_ending(context) lines, range = cp.lines_and_range(context) newlines = line_ending.join(balance_...
[ 7061, 6, 13949, 510, 12879, 986, 7061, 6, 198, 198, 11748, 31396, 62, 4658, 355, 31396, 198, 11748, 302, 198, 198, 4299, 719, 7, 36500, 11, 18537, 11, 3689, 2599, 198, 220, 220, 220, 705, 7061, 198, 220, 220, 220, 20906, 2223, 2446,...
2.82716
162
import numpy as np import pandas as pd import itertools ''' Section below creates lists for your reaction parameters. Change names of lists where appropriate ''' #For bigger lists use np.arange(min_value, max_value, step) Pyridine = [0.1, 0.2, 0.3] # in mmol Aldehyde = [0.1, 0.2, 0.3] # in mmol Isocyanide = [0.1, 0....
[ 11748, 299, 32152, 355, 45941, 198, 11748, 19798, 292, 355, 279, 67, 198, 11748, 340, 861, 10141, 628, 198, 7061, 6, 198, 16375, 2174, 8075, 8341, 329, 534, 6317, 10007, 13, 9794, 3891, 286, 8341, 810, 5035, 198, 7061, 6, 198, 198, ...
2.788703
478
import enum
[ 11748, 33829, 628 ]
4.333333
3
""" rpath task function """ from mechlib import filesys from mechlib.filesys import build_fs from mechlib.filesys import root_locs def rpath_fs(ts_dct, tsname, mod_ini_thy_info, es_keyword_dct, run_prefix, save_prefix): """ reaction path filesystem """ # Set up coo...
[ 37811, 374, 6978, 4876, 2163, 198, 37811, 198, 198, 6738, 36571, 8019, 1330, 3696, 893, 198, 6738, 36571, 8019, 13, 16624, 893, 1330, 1382, 62, 9501, 198, 6738, 36571, 8019, 13, 16624, 893, 1330, 6808, 62, 17946, 82, 628, 198, 4299, 3...
1.943625
1,153
# -*- coding: utf-8 -*- """ Created on Tue Sep 29 14:38:54 2020 @author: https://stackoverflow.com/questions/18262293/how-to-open-every-file-in-a-folder """ import os #os module imported here location = os.getcwd() # get present working directory location here counter = 0 #keep a count of all files found csvf...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 201, 198, 37811, 201, 198, 41972, 319, 30030, 8621, 2808, 1478, 25, 2548, 25, 4051, 12131, 201, 198, 201, 198, 31, 9800, 25, 3740, 1378, 25558, 2502, 11125, 13, 785, 14, 61...
2.342513
581
from urllib.parse import quote from social_core.utils import sanitize_redirect, user_is_authenticated, \ user_is_active, partial_pipeline_data, setting_url
[ 6738, 2956, 297, 571, 13, 29572, 1330, 9577, 198, 198, 6738, 1919, 62, 7295, 13, 26791, 1330, 5336, 270, 1096, 62, 445, 1060, 11, 2836, 62, 271, 62, 41299, 3474, 11, 3467, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220...
2.542857
70
#!/usr/bin/python # Oct 2019 JMA # make_samples.py Use the splits_aggregator module to create samples ''' Write a short description of what the program does here. Usage: $ ./make_samples.py [-v] [-d ROOT_DIR] [-c pair_cnt] -v verbose output -d data directory to read from -c number of randomly ...
[ 2, 48443, 14629, 14, 8800, 14, 29412, 201, 198, 2, 2556, 13130, 220, 449, 5673, 201, 198, 2, 787, 62, 82, 12629, 13, 9078, 220, 5765, 262, 30778, 62, 9460, 2301, 1352, 8265, 284, 2251, 8405, 201, 198, 7061, 6, 201, 198, 16594, 257...
2.340029
697
# -*- coding: utf-8 -*- # Resource object code # # Created: Di. Feb 3 12:11:53 2015 # by: The Resource Compiler for PySide (Qt v4.8.4) # # WARNING! All changes made in this file will be lost! from PySide import QtCore qt_resource_data = b"\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x009QStatusBar::...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 2, 20857, 2134, 2438, 198, 2, 198, 2, 15622, 25, 6031, 13, 3158, 513, 1105, 25, 1157, 25, 4310, 1853, 198, 2, 220, 220, 220, 220, 220, 416, 25, 383, 20857, 30...
1.492027
878
from unittest import TestCase from unittest.mock import patch, Mock import lineflow from lineflow import Dataset from lineflow.core import ConcatDataset, ZipDataset from lineflow.core import RandomAccessConcat, RandomAccessZip
[ 6738, 555, 715, 395, 1330, 6208, 20448, 198, 6738, 555, 715, 395, 13, 76, 735, 1330, 8529, 11, 44123, 198, 198, 11748, 1627, 11125, 198, 6738, 1627, 11125, 1330, 16092, 292, 316, 198, 6738, 1627, 11125, 13, 7295, 1330, 1482, 9246, 273...
3.455882
68
import math import numpy as np def eng_string(x, format='%.3g', si=True): ''' Taken from: https://stackoverflow.com/questions/17973278/python-decimal-engineering-notation-for-mili-10e-3-and-micro-10e-6/40691220 Returns float/int value <x> formatted in a simplified engineering format - using an expone...
[ 11748, 10688, 198, 11748, 299, 32152, 355, 45941, 628, 198, 4299, 1786, 62, 8841, 7, 87, 11, 5794, 11639, 7225, 18, 70, 3256, 33721, 28, 17821, 2599, 198, 220, 220, 220, 705, 7061, 198, 220, 220, 220, 30222, 422, 25, 3740, 1378, 255...
2.177281
581
# Directory.py # Import from flask import Blueprint, render_template # Make Blueprint for __init__.py Directory = Blueprint("Directory", __name__) # App Welcome Page # Strain JSON Page # Strain Table Page
[ 2, 27387, 13, 9078, 628, 198, 198, 2, 17267, 198, 198, 6738, 42903, 1330, 39932, 11, 8543, 62, 28243, 628, 198, 2, 6889, 39932, 329, 11593, 15003, 834, 13, 9078, 198, 198, 43055, 796, 39932, 7203, 43055, 1600, 11593, 3672, 834, 8, 6...
3.460317
63
# Generated by Django 3.1.1 on 2020-09-16 15:11 from django.db import migrations, models
[ 2, 2980, 515, 416, 37770, 513, 13, 16, 13, 16, 319, 12131, 12, 2931, 12, 1433, 1315, 25, 1157, 198, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 11, 4981, 628 ]
2.84375
32
__author__ = 'yinjun' """ Definition of TreeNode: class TreeNode: def __init__(self, val): this.val = val this.left, this.right = None, None """
[ 834, 9800, 834, 796, 705, 88, 259, 29741, 6, 198, 198, 37811, 198, 36621, 286, 12200, 19667, 25, 198, 4871, 12200, 19667, 25, 198, 220, 220, 220, 825, 11593, 15003, 834, 7, 944, 11, 1188, 2599, 198, 220, 220, 220, 220, 220, 220, 2...
2.338028
71
# -*- coding: utf-8 -*- from setuptools import setup, find_packages with open('requirements.txt') as f: install_requires = f.read().strip().split('\n') # get version from __version__ variable in mtrh_dev/__init__.py from mtrh_dev import __version__ as version setup( name='mtrh_dev', version=version, description=...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 6738, 900, 37623, 10141, 1330, 9058, 11, 1064, 62, 43789, 198, 198, 4480, 1280, 10786, 8897, 18883, 13, 14116, 11537, 355, 277, 25, 198, 197, 17350, 62, 47911, 796, 277,...
2.789474
190
#!/usr/bin/env python3 import subprocess as sub import time import simplejson as json import os from sys import stderr import subprocess import platform import sys import stat import pwd import grp import BrewPiUtil as util import brewpiVersion import expandLogMessage from packaging import version from MigrateSettings...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 198, 11748, 850, 14681, 355, 850, 198, 11748, 640, 198, 11748, 2829, 17752, 355, 33918, 198, 11748, 28686, 198, 6738, 25064, 1330, 336, 1082, 81, 198, 11748, 850, 14681, 198, 11748, ...
3.686441
118
""" MassOpenCloud / Hardware Isolation Layer (MOC/HIL) Slurm and *NX Subprocess Command Helpers May 2017, Tim Donahue tpd001@gmail.com """ import os from pwd import getpwnam, getpwuid from subprocess import Popen, PIPE from time import time from hil_slurm_constants import (HIL_RESNAME_PREFIX, HIL_RESNAME_FIELD_SEPA...
[ 37811, 198, 20273, 11505, 18839, 1220, 28715, 1148, 21417, 34398, 357, 44, 4503, 14, 39, 4146, 8, 198, 198, 11122, 333, 76, 290, 1635, 45, 55, 3834, 14681, 9455, 10478, 364, 198, 198, 6747, 2177, 11, 5045, 2094, 993, 518, 197, 83, 3...
2.309913
4,156
# -*- coding: utf-8 -*- # PyContourlet # # A Python library for the Contourlet Transform. # # Copyright (C) 2011 Mazay Jimnez # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation v...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 220, 220, 220, 9485, 4264, 454, 1616, 198, 2, 198, 2, 220, 220, 220, 317, 11361, 5888, 329, 262, 2345, 454, 1616, 26981, 13, 198, 2, 198, 2, 220, 220, 220, 1506...
1.669355
10,540
""" External libraries packaged with for version stability """ from .tabulate import tabulate
[ 37811, 198, 41506, 12782, 25555, 351, 329, 2196, 10159, 198, 37811, 628, 198, 6738, 764, 8658, 5039, 1330, 7400, 5039, 198 ]
4.571429
21
# -*- coding: utf-8 -*- from boltons.statsutils import Stats
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 6738, 18100, 684, 13, 34242, 26791, 1330, 20595, 628, 198 ]
2.625
24
import os import pprint import json import random accept = False colors = { "Vo": "#e05ab4", "Da": "#59afe1", "Vi": "#e0e05a" } with open('idols.json') as f: idols = (json.load(f))["idols"] # Insert 23 data
[ 11748, 28686, 198, 11748, 279, 4798, 198, 11748, 33918, 198, 11748, 4738, 198, 198, 13635, 796, 10352, 198, 198, 4033, 669, 796, 1391, 198, 220, 220, 220, 366, 42144, 1298, 25113, 68, 2713, 397, 19, 1600, 198, 220, 220, 220, 366, 2653...
2.292929
99
"""Plot Widgets for the UWB Simulation GUI This file contains several plot widgets that can be used to plot simulation data in real time and redraw the plots with matplotlib for better quality. Classes: QLivePlot: Base class for real time plots QLivePlot_Groundtrack: Real time plot for groundtrack QLiveP...
[ 37811, 43328, 24801, 11407, 329, 262, 33436, 33, 41798, 25757, 198, 198, 1212, 2393, 4909, 1811, 7110, 40803, 326, 460, 307, 973, 284, 7110, 220, 198, 14323, 1741, 1366, 287, 1103, 640, 290, 2266, 1831, 262, 21528, 351, 2603, 29487, 801...
3.158416
202
#!/usr/bin/env python from pda.dataset import init_aggregate_and_appliance_dataset_figure import matplotlib.pyplot as plt from scipy.stats import * import numpy as np subplots, chan = init_aggregate_and_appliance_dataset_figure( start_date='2013/6/4 10:00', end_date='2013/6/4 13:30', n_subplots=2, date_format...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 198, 6738, 279, 6814, 13, 19608, 292, 316, 1330, 2315, 62, 9460, 49373, 62, 392, 62, 1324, 75, 3610, 62, 19608, 292, 316, 62, 26875, 198, 11748, 2603, 29487, 8019, 13, 9078, 29487, 3...
2.184549
466
import socket import json import struct from sciibo.core.helpers import Queue from .thread import SocketThread
[ 11748, 17802, 198, 11748, 33918, 198, 11748, 2878, 198, 198, 6738, 20681, 26762, 13, 7295, 13, 16794, 364, 1330, 4670, 518, 198, 198, 6738, 764, 16663, 1330, 47068, 16818, 628 ]
3.8
30
# Copyright (C) 2008 Jimmy Do <jimmydo@users.sourceforge.net> # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This...
[ 2, 15069, 357, 34, 8, 3648, 12963, 2141, 1279, 73, 320, 1820, 4598, 31, 18417, 13, 10459, 30293, 13, 3262, 29, 198, 2, 198, 2, 770, 1430, 318, 1479, 3788, 26, 345, 460, 17678, 4163, 340, 290, 14, 273, 13096, 198, 2, 340, 739, 26...
3.736607
224
import arcade import timeit BALL_DRAG = 0.001 NO_FLIPPER = 0 FLIPPER_UP = 1 window = MyApplication(800, 1000, resizable=False) window.set_size(700, 700) arcade.run()
[ 11748, 27210, 198, 11748, 640, 270, 198, 198, 45463, 62, 35, 33202, 796, 657, 13, 8298, 198, 15285, 62, 3697, 4061, 18973, 796, 657, 198, 3697, 4061, 18973, 62, 8577, 796, 352, 628, 198, 17497, 796, 2011, 23416, 7, 7410, 11, 8576, 1...
2.560606
66
import json from loguru import logger from .config import PERFORMATIVE, PERFORMATIVE_PACK, PERFORMATIVE_PACK_TAKEN, TEAM, X, Y, Z, NAME, ACTION, CREATE, \ TYPE from .agent import AbstractAgent, LONG_RECEIVE_WAIT from .vector import Vector3D from spade.message import Message from spade.behaviour import OneShotBehav...
[ 11748, 33918, 198, 6738, 2604, 14717, 1330, 49706, 198, 198, 6738, 764, 11250, 1330, 19878, 21389, 37045, 11, 19878, 21389, 37045, 62, 47, 8120, 11, 19878, 21389, 37045, 62, 47, 8120, 62, 5603, 43959, 11, 33536, 11, 1395, 11, 575, 11, ...
2.611765
255
import numpy as np import pybullet as p
[ 11748, 299, 32152, 355, 45941, 201, 198, 11748, 12972, 15065, 1616, 355, 279, 201, 198 ]
2.8
15
import tensorflow.keras as keras # pad_sequences from pad_sequences import pad_sequences_adjacency from pad_sequences import pad_sequences_sparse
[ 11748, 11192, 273, 11125, 13, 6122, 292, 355, 41927, 292, 220, 1303, 14841, 62, 3107, 3007, 198, 6738, 14841, 62, 3107, 3007, 1330, 14841, 62, 3107, 3007, 62, 324, 30482, 1387, 198, 6738, 14841, 62, 3107, 3007, 1330, 14841, 62, 3107, ...
3.145833
48
import unittest import threading from g1.threads import locks if __name__ == '__main__': unittest.main()
[ 11748, 555, 715, 395, 198, 198, 11748, 4704, 278, 198, 198, 6738, 308, 16, 13, 16663, 82, 1330, 19253, 628, 628, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 198, 220, 220, 220, 555, 715, 395, 13, 12417, 3419, 198 ...
2.674419
43
""" Here definitions and attributes of all statistical distributions that are used in the simulation are defined""" from abc import ABCMeta, abstractmethod import random #import np
[ 37811, 3423, 17336, 290, 12608, 286, 477, 13905, 24570, 326, 389, 973, 287, 262, 18640, 389, 5447, 37811, 198, 6738, 450, 66, 1330, 9738, 48526, 11, 12531, 24396, 198, 11748, 4738, 198, 2, 11748, 45941, 628, 628, 628 ]
4.894737
38
#!/usr/bin/env python3 import csv import xml.etree.ElementTree as ET import sys import os.path def xml_to_csv(xml_filename): """ Parses .xml files generated by newer versions of iClicker software in SessionData A CSV file will be written to the same path as the XML file, so it is important that any path,...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 11748, 269, 21370, 198, 11748, 35555, 13, 316, 631, 13, 20180, 27660, 355, 12152, 198, 11748, 25064, 198, 11748, 28686, 13, 6978, 628, 198, 198, 4299, 35555, 62, 1462, 62, 40664, 7...
1.802639
3,410
import dash import dash_core_components as dcc import dash_html_components as html divider_text = ' '
[ 11748, 14470, 201, 198, 11748, 14470, 62, 7295, 62, 5589, 3906, 355, 288, 535, 201, 198, 11748, 14470, 62, 6494, 62, 5589, 3906, 355, 27711, 201, 198, 201, 198, 7146, 1304, 62, 5239, 796, 705, 220, 220, 220, 220, 220, 705, 201 ]
2.666667
42
/home/runner/.cache/pip/pool/68/e2/05/188e3a14bbe42690f0cbce7c7c576b1dbc9d3d1bb571a2d3908f144cea
[ 14, 11195, 14, 16737, 11757, 23870, 14, 79, 541, 14, 7742, 14, 3104, 14, 68, 17, 14, 2713, 14, 20356, 68, 18, 64, 1415, 65, 1350, 42780, 3829, 69, 15, 21101, 344, 22, 66, 22, 66, 37452, 65, 16, 9945, 66, 24, 67, 18, 67, 16, ...
1.684211
57
# -*- coding: utf-8 -*- """ Created on Tue May 24 11:14:03 2016 @author: Wajih-PC """ import numpy as np
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 201, 198, 37811, 201, 198, 41972, 319, 30030, 1737, 1987, 1367, 25, 1415, 25, 3070, 1584, 201, 198, 201, 198, 31, 9800, 25, 370, 1228, 4449, 12, 5662, 201, 198, 37811, 201,...
2.071429
56
import pandas as pd import numpy as np # df1 = pd.DataFrame(np.ones((3, 4)) * 0, columns=['a', 'b', 'c', 'd']) df2 = pd.DataFrame(np.ones((3, 4)) * 1, columns=['a', 'b', 'c', 'd']) df3 = pd.DataFrame(np.ones((3, 4)) * 2, columns=['a', 'b', 'c', 'd']) #concat axis=0axis=1 res = pd.concat([df1, df2, df3], axis=1) # pr...
[ 11748, 19798, 292, 355, 279, 67, 198, 11748, 299, 32152, 355, 45941, 198, 198, 2, 198, 7568, 16, 796, 279, 67, 13, 6601, 19778, 7, 37659, 13, 1952, 19510, 18, 11, 604, 4008, 1635, 657, 11, 15180, 28, 17816, 64, 3256, 705, 65, 3256...
1.912921
712
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 6738, 11593, 37443, 834, 1330, 28000, 1098, 62, 17201, 874, 198, 198, 6738, 42625, 14208, 13, 9945, 1330, 4981, 11, 15720, 602, 628 ]
2.891892
37
import urllib import sched import time from threading import Thread from token import Token from ..utils.http import do_basic_secure_post from ..exceptions.exceptions import BasicAuthenticationFailedException
[ 11748, 2956, 297, 571, 198, 11748, 6038, 198, 11748, 640, 198, 6738, 4704, 278, 1330, 14122, 198, 198, 6738, 11241, 1330, 29130, 198, 6738, 11485, 26791, 13, 4023, 1330, 466, 62, 35487, 62, 22390, 62, 7353, 198, 6738, 11485, 1069, 11755...
4.057692
52
from elasticsearch import Elasticsearch, RequestsHttpConnection from requests_aws4auth import AWS4Auth import boto3 def get_es_client(conn, silent=False): """ Returns the elasticsearch client connected through port forwarding settings """ elastic_url = "https://localhost:9222" protocol_config = { ...
[ 6738, 27468, 12947, 1330, 48567, 12947, 11, 9394, 3558, 43481, 32048, 198, 6738, 7007, 62, 8356, 19, 18439, 1330, 30865, 19, 30515, 198, 11748, 275, 2069, 18, 628, 198, 4299, 651, 62, 274, 62, 16366, 7, 37043, 11, 10574, 28, 25101, 25...
2.566751
397
from pprint import pprint import pytest from flask_taxonomies.proxies import current_flask_taxonomies from flask_taxonomies.term_identification import TermIdentification from invenio_records import Record from oarepo_taxonomies.exceptions import DeleteAbortedError from oarepo_taxonomies.signals import lock_term from ...
[ 6738, 279, 4798, 1330, 279, 4798, 198, 198, 11748, 12972, 9288, 198, 6738, 42903, 62, 19290, 6326, 444, 13, 1676, 87, 444, 1330, 1459, 62, 2704, 2093, 62, 19290, 6326, 444, 198, 6738, 42903, 62, 19290, 6326, 444, 13, 4354, 62, 738, ...
3.333333
111
from django.core.mail import send_mail, BadHeaderError from django.http import HttpResponse from django.shortcuts import render, redirect from .forms import ContactForm from profiles.models import UserProfile
[ 6738, 42625, 14208, 13, 7295, 13, 4529, 1330, 3758, 62, 4529, 11, 7772, 39681, 12331, 198, 6738, 42625, 14208, 13, 4023, 1330, 367, 29281, 31077, 198, 6738, 42625, 14208, 13, 19509, 23779, 1330, 8543, 11, 18941, 198, 6738, 764, 23914, 1...
3.981132
53
from tests.utils import _mock_gql create_deposit_response = dict( createDepositAccount=dict( accountNumber="123", accountName="john doe", accountType="deposit", bankName="Providus", accountReference="ref", ) )
[ 6738, 5254, 13, 26791, 1330, 4808, 76, 735, 62, 70, 13976, 628, 198, 17953, 62, 10378, 7434, 62, 26209, 796, 8633, 7, 198, 220, 220, 220, 2251, 12156, 7434, 30116, 28, 11600, 7, 198, 220, 220, 220, 220, 220, 220, 220, 1848, 15057, ...
2.351351
111
from fabric.decorators import task, roles from haus_vars import APP_INFO, parse_vars from fabric.api import run, execute from fabric.context_managers import cd from heroku import create_fixture_on_s3, grab_fixture_on_s3 import cStringIO
[ 6738, 9664, 13, 12501, 273, 2024, 1330, 4876, 11, 9176, 198, 198, 6738, 387, 385, 62, 85, 945, 1330, 43504, 62, 10778, 11, 21136, 62, 85, 945, 198, 6738, 9664, 13, 15042, 1330, 1057, 11, 12260, 198, 6738, 9664, 13, 22866, 62, 805, ...
3.049383
81
from umysqldb import connections from umysqldb import cursors Connection = Connect = connect
[ 6738, 23781, 893, 80, 335, 65, 1330, 8787, 198, 6738, 23781, 893, 80, 335, 65, 1330, 13882, 669, 628, 198, 32048, 796, 8113, 796, 2018 ]
3.76
25
import re import networkx import itertools import argparse import json if __name__ == '__main__': argparser = argparse.ArgumentParser(description='Build a network from the given usage log file, then write it to an edge list.') argparser.add_argument('--filename',type=str,help='provide the memory log file for...
[ 11748, 302, 198, 11748, 3127, 87, 198, 11748, 340, 861, 10141, 198, 11748, 1822, 29572, 198, 11748, 33918, 628, 198, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 198, 220, 220, 220, 1822, 48610, 796, 1822, 29572, 13, ...
3.262357
263
from sys import argv from random import randint from time import time import matplotlib.pyplot as plt if __name__ == '__main__': if len(argv) > 1: sz = int(argv[1]) arr = [randint(1, 1000) for _ in range(sz)] #print(arr) start = time() insertion_sort(arr) ...
[ 6738, 25064, 1330, 1822, 85, 201, 198, 6738, 4738, 1330, 43720, 600, 201, 198, 6738, 640, 1330, 640, 201, 198, 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 201, 198, 201, 198, 201, 198, 361, 11593, 3672, 834, 6624, 705, ...
1.842025
652
from invoke import Collection, task from opstrich.invoke import check, openssl namespace = Collection(check, openssl, deploy, ci_deploy)
[ 6738, 26342, 1330, 12251, 11, 4876, 198, 6738, 1034, 2536, 488, 13, 37669, 1330, 2198, 11, 9808, 6649, 628, 628, 198, 14933, 10223, 796, 12251, 7, 9122, 11, 9808, 6649, 11, 6061, 11, 269, 72, 62, 2934, 1420, 8, 198 ]
3.525
40
import torch import numpy as np import copy if __name__ == "__main__": path = "/home/seungjae/Desktop/lunarlander/replay_buffer.pt" remove(path)
[ 11748, 28034, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 4866, 628, 198, 198, 361, 11593, 3672, 834, 6624, 366, 834, 12417, 834, 1298, 198, 220, 220, 220, 3108, 796, 12813, 11195, 14, 325, 2150, 73, 3609, 14, 36881, 14, 75, 403, ...
2.583333
60
""" Content negotiation deals with selecting an appropriate renderer given the incoming request. Typically this will be based on the request's Accept header. """ import flask as fl from . import exc
[ 37811, 198, 19746, 24462, 7529, 351, 17246, 281, 5035, 9851, 11882, 1813, 262, 198, 259, 4976, 2581, 13, 220, 27095, 428, 481, 307, 1912, 319, 262, 2581, 338, 21699, 13639, 13, 198, 37811, 198, 198, 11748, 42903, 355, 781, 198, 6738, ...
4.434783
46
# Generated by Django 3.0.8 on 2020-08-11 14:16 from django.db import migrations, models
[ 2, 2980, 515, 416, 37770, 513, 13, 15, 13, 23, 319, 12131, 12, 2919, 12, 1157, 1478, 25, 1433, 198, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 11, 4981, 628 ]
2.84375
32
import pprint import sys import re FILE = sys.stdin #FILE = open('sample.in') #import ipdb;ipdb.set_trace() test_cases = range(int(FILE.readline())) #import ipdb; ipdb.set_trace() for tc in test_cases: n = int(FILE.readline().strip()) total_sum_count = 1 n = reverse_add(n) while not is_palindrome(n):...
[ 11748, 279, 4798, 198, 11748, 25064, 198, 11748, 302, 198, 198, 25664, 796, 25064, 13, 19282, 259, 198, 2, 25664, 796, 1280, 10786, 39873, 13, 259, 11537, 198, 198, 2, 11748, 20966, 9945, 26, 541, 9945, 13, 2617, 62, 40546, 3419, 220,...
2.3125
176
from .baseprocessor import BaseProcessor
[ 6738, 764, 12093, 538, 305, 919, 273, 1330, 7308, 18709, 273, 628 ]
3.5
12
import time import os import pathlib import sys from subprocess import call #TODO: Maybe make a pip_handler file idk try: from pypresence import presence except: pip_install("pypresence") STATUS_TEXT = str(sys.argv) IMGID_CONSTS = ['furcock_img', 'blacked_img', 'censored_img', 'goon_img', ...
[ 11748, 640, 201, 198, 11748, 28686, 201, 198, 11748, 3108, 8019, 201, 198, 11748, 25064, 201, 198, 6738, 850, 14681, 1330, 869, 201, 198, 201, 198, 2, 51, 3727, 46, 25, 6674, 787, 257, 7347, 62, 30281, 2393, 4686, 74, 201, 198, 201,...
2.198473
393
import bpy import subprocess REBUILD = 0 if REBUILD: subprocess.call([ "g++", bpy.path.abspath('//../main.cpp'), bpy.path.abspath('//../PtTree.cpp'), "-o", bpy.path.abspath('//PtTree') ]) # Collect the input data. verts = bpy.data.meshes['PointCloud'].vertices quer...
[ 11748, 275, 9078, 198, 11748, 850, 14681, 198, 198, 2200, 19499, 26761, 796, 657, 198, 361, 4526, 19499, 26761, 25, 198, 220, 220, 220, 850, 14681, 13, 13345, 26933, 198, 220, 220, 220, 220, 220, 220, 220, 366, 70, 4880, 1600, 198, ...
2.20284
493
# zschema sub-schema for zgrab2's ssh module (modules/ssh.go) # Registers zgrab2-ssh globally, and ssh with the main zgrab2 schema. from zschema.leaves import * from zschema.compounds import * import zschema.registry import zcrypto_schemas.zcrypto as zcrypto from . import zgrab2 # NOTE: Despite the fact that we have...
[ 2, 1976, 15952, 2611, 850, 12, 15952, 2611, 329, 1976, 32393, 17, 338, 26678, 8265, 357, 18170, 14, 45824, 13, 2188, 8, 198, 2, 3310, 6223, 1976, 32393, 17, 12, 45824, 18309, 11, 290, 26678, 351, 262, 1388, 1976, 32393, 17, 32815, 1...
2.558267
4,016
from flask import render_template,request,redirect,url_for,abort from ..models import User,Post,Comment,Subscriber from ..requests import get_quotes from . import main from .forms import PostForm,CommentForm,DelForm,UpdateProfile from app.auth.forms import SubscriptionForm from .. import db,photos from flask_login impo...
[ 6738, 42903, 1330, 8543, 62, 28243, 11, 25927, 11, 445, 1060, 11, 6371, 62, 1640, 11, 397, 419, 198, 6738, 11485, 27530, 1330, 11787, 11, 6307, 11, 21357, 11, 7004, 1416, 24735, 198, 6738, 11485, 8897, 3558, 1330, 651, 62, 421, 6421, ...
2.345692
917
# int, float, complex Numeric Types # Float are nothing but decimal values pi = 3.14 print(pi)
[ 2, 493, 11, 12178, 11, 3716, 220, 220, 399, 39223, 24897, 628, 198, 2, 48436, 389, 2147, 475, 32465, 3815, 198, 198, 14415, 796, 513, 13, 1415, 198, 4798, 7, 14415, 8, 198 ]
3.030303
33
from django.conf import settings from django.contrib.auth.decorators import login_required from django.http import HttpResponse from uw_saml.utils import is_member_of_group # Create your views here.
[ 6738, 42625, 14208, 13, 10414, 1330, 6460, 198, 6738, 42625, 14208, 13, 3642, 822, 13, 18439, 13, 12501, 273, 2024, 1330, 17594, 62, 35827, 198, 6738, 42625, 14208, 13, 4023, 1330, 367, 29281, 31077, 198, 198, 6738, 334, 86, 62, 37687, ...
3.311475
61
#! /usr/bin/env python -u # coding=utf-8 from shutil import copyfile from genoml.steps import PhenoScale, StepBase from genoml.utils import DescriptionLoader __author__ = 'Sayed Hadi Hashemi'
[ 2, 0, 1220, 14629, 14, 8800, 14, 24330, 21015, 532, 84, 198, 2, 19617, 28, 40477, 12, 23, 198, 6738, 4423, 346, 1330, 4866, 7753, 198, 198, 6738, 2429, 296, 75, 13, 20214, 1330, 34828, 78, 29990, 11, 5012, 14881, 198, 6738, 2429, ...
2.954545
66
from typing import Tuple, List from resotocore.dependencies import parse_args from resotocore.types import JsonElement
[ 6738, 19720, 1330, 309, 29291, 11, 7343, 198, 198, 6738, 581, 313, 420, 382, 13, 45841, 3976, 1330, 21136, 62, 22046, 198, 6738, 581, 313, 420, 382, 13, 19199, 1330, 449, 1559, 20180, 628 ]
3.558824
34
############################################################################## # Copyright 2018 Rigetti Computing # # 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://ww...
[ 29113, 29113, 7804, 4242, 2235, 198, 2, 15069, 2864, 24666, 24851, 38589, 198, 2, 198, 2, 220, 220, 220, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 2, 220, 220, 220, 345, 743, 407, 779,...
3.666667
333
n = input(" . ") collatz(n)
[ 77, 796, 5128, 7203, 220, 220, 220, 764, 220, 366, 8, 198, 198, 26000, 27906, 7, 77, 8, 198 ]
1.736842
19
if __name__ == '__main__': t = int(input()) for _ in range(t): L,N = [int(x) for x in input().split()] arr = [int(x) for x in input().split()] solObj = Solution() if(solObj.findPair(arr,L, N)): print(1) else: print(-1)
[ 198, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 628, 220, 220, 220, 256, 796, 493, 7, 15414, 28955, 628, 220, 220, 220, 329, 4808, 287, 2837, 7, 83, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 406, 11, 45, ...
1.84472
161
from dataclasses import dataclass from tlh.const import RomVariant from intervaltree import IntervalTree, Interval
[ 6738, 4818, 330, 28958, 1330, 4818, 330, 31172, 198, 6738, 256, 75, 71, 13, 9979, 1330, 3570, 23907, 415, 198, 6738, 16654, 21048, 1330, 4225, 2100, 27660, 11, 4225, 2100, 198 ]
3.709677
31
from django.db import models from djangoyearlessdate.models import YearlessDateField, YearField from djangoyearlessdate.helpers import YearlessDate
[ 6738, 42625, 14208, 13, 9945, 1330, 4981, 198, 6738, 42625, 648, 726, 451, 1203, 4475, 13, 27530, 1330, 6280, 1203, 10430, 15878, 11, 6280, 15878, 198, 6738, 42625, 648, 726, 451, 1203, 4475, 13, 16794, 364, 1330, 6280, 1203, 10430, 628...
3.571429
42
from ror.RORParameters import RORParameters from ror.RORResult import RORResult from ror.AbstractTieResolver import AbstractTieResolver from ror.result_aggregator_utils import Rank
[ 6738, 374, 273, 13, 16411, 48944, 1330, 371, 1581, 48944, 198, 6738, 374, 273, 13, 16411, 23004, 1330, 371, 1581, 23004, 198, 6738, 374, 273, 13, 23839, 51, 494, 4965, 14375, 1330, 27741, 51, 494, 4965, 14375, 198, 6738, 374, 273, 13,...
3.480769
52
""" util This package is for util modules """
[ 37811, 198, 22602, 198, 198, 1212, 5301, 318, 329, 7736, 13103, 198, 37811, 198 ]
3.357143
14
# Time: O(n) # Space: O(1)
[ 2, 3862, 25, 220, 440, 7, 77, 8, 198, 2, 4687, 25, 440, 7, 16, 8, 198 ]
1.647059
17
import itertools import logging from typing import Dict, Tuple from tilapia.lib.basic import bip44 from tilapia.lib.basic.functional.require import require from tilapia.lib.hardware import interfaces as hardware_interfaces from tilapia.lib.provider import data from tilapia.lib.provider.chains import btc from tilapia.l...
[ 11748, 340, 861, 10141, 198, 11748, 18931, 198, 6738, 19720, 1330, 360, 713, 11, 309, 29291, 198, 198, 6738, 21502, 499, 544, 13, 8019, 13, 35487, 1330, 14141, 2598, 198, 6738, 21502, 499, 544, 13, 8019, 13, 35487, 13, 45124, 13, 4611...
3.323944
142
""" DFA Automata Implementation """ def compile(): """ Create our automaton """ # Creating an DFA with two states; 0 points to themselves, and 1 points to the other. (checking for even parity) # Compile is standard terminoligy for creating something like this # Create start state start = State(T...
[ 37811, 360, 7708, 17406, 1045, 46333, 37227, 628, 198, 4299, 17632, 33529, 198, 220, 220, 220, 37227, 13610, 674, 3557, 13951, 37227, 198, 220, 220, 220, 1303, 30481, 281, 360, 7708, 351, 734, 2585, 26, 657, 2173, 284, 2405, 11, 290, ...
2.751515
330
# Generated by Django 2.2.3 on 2019-08-29 15:30 from django.db import migrations, models
[ 2, 2980, 515, 416, 37770, 362, 13, 17, 13, 18, 319, 13130, 12, 2919, 12, 1959, 1315, 25, 1270, 198, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 11, 4981, 628 ]
2.84375
32
import sys import os
[ 11748, 25064, 198, 11748, 28686, 628 ]
3.666667
6
""" _ _ _ _ _ _ __ | |_| |_ __ ___ | (_) |__ | '_ \| __| | '_ ` _ \| | | '_ \ | | | | |_| | | | | | | | | |_) | |_| |_|\__|_|_| |_| |_|_|_|_.__/ A robust, fast and efficient 'first-class' Python Library for NTLM authentication, signing and encryption (c) 2015, Ian Clegg <ian.clegg@sour...
[ 37811, 198, 220, 220, 220, 220, 220, 220, 220, 220, 4808, 220, 220, 4808, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4808, 4808, 4808, 198, 220, 220, 4808, 11593, 930, 930, 62, 91, 930, 62, 11593, 46444, 930, 44104, 8, 930,...
3.102273
352
import unittest from flipper.conditions.operators.set_membership_operator import SetMembershipOperator
[ 11748, 555, 715, 395, 198, 198, 6738, 781, 14710, 13, 17561, 1756, 13, 3575, 2024, 13, 2617, 62, 30814, 1056, 62, 46616, 1330, 5345, 25341, 1056, 18843, 1352, 628 ]
3.62069
29
from collections import namedtuple from typing import Tuple, List, NewType, Optional, Dict from pangtreebuild.mafgraph.graph import Block from pangtreebuild.mafgraph.graph.Arc import Arc from pangtreebuild.mafgraph.mafreader import start_position from pangtreebuild.pangenome import graph from pangtreebuild.pangenome i...
[ 6738, 17268, 1330, 3706, 83, 29291, 198, 6738, 19720, 1330, 309, 29291, 11, 7343, 11, 968, 6030, 11, 32233, 11, 360, 713, 198, 198, 6738, 279, 648, 21048, 11249, 13, 76, 1878, 34960, 13, 34960, 1330, 9726, 198, 6738, 279, 648, 21048, ...
1.981575
1,194
from launchable.utils.gzipgen import compress import gzip from unittest import TestCase
[ 6738, 4219, 540, 13, 26791, 13, 70, 13344, 5235, 1330, 27413, 198, 11748, 308, 13344, 198, 6738, 555, 715, 395, 1330, 6208, 20448, 628 ]
3.708333
24
from django.urls import path from .views import project_list_view urlpatterns = [ path('', project_list_view, name='project_list'), ]
[ 6738, 42625, 14208, 13, 6371, 82, 1330, 3108, 198, 6738, 764, 33571, 1330, 1628, 62, 4868, 62, 1177, 198, 198, 6371, 33279, 82, 796, 685, 198, 220, 220, 220, 3108, 10786, 3256, 1628, 62, 4868, 62, 1177, 11, 1438, 11639, 16302, 62, 4...
3
46
# -*- coding: UTF-8 -*- import talib as ta import numpy as np from util import StockUtil as su from tech import StockTechIndicator if __name__ == "__main__": b = CCI() print b.calculate('chbtc', 'btc_cny', '5min', 1497449100)
[ 2, 532, 9, 12, 19617, 25, 41002, 12, 23, 532, 9, 12, 198, 11748, 3305, 571, 355, 20486, 198, 11748, 299, 32152, 355, 45941, 198, 6738, 7736, 1330, 10500, 18274, 346, 355, 424, 198, 6738, 7261, 1330, 10500, 17760, 5497, 26407, 628, 1...
2.510638
94
# -*- coding: utf-8 -*- """ Created on Thu Dec 6 21:22:33 2018 @author: vangi """ from timeit import timeit setup = ''' import numpy as np np.random.seed(0) N_array = 200000 a_np = np.random.randn(N_array) b_np = np.random.randn(N_array) c_np = np.empty(N_array) def no_ufunc(a_np, b_np, c_np): c_np = a_np * ...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 198, 41972, 319, 26223, 4280, 220, 718, 2310, 25, 1828, 25, 2091, 2864, 198, 198, 31, 9800, 25, 410, 648, 72, 198, 37811, 198, 198, 6738, 640, 270, 1330, 640, ...
1.934021
485
# # ------------------------------------------------------------------------- # Copyright (c) 2015-2017 AT&T Intellectual Property # # 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 # # ...
[ 2, 198, 2, 16529, 45537, 198, 2, 220, 220, 15069, 357, 66, 8, 1853, 12, 5539, 5161, 5, 51, 42443, 14161, 198, 2, 198, 2, 220, 220, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 2, 220,...
3.873984
246
from urllib.parse import urlencode as _urlencode, quote as _quote from urllib.request import urlopen as _urlopen from hashlib import md5 as _md5 from ast import literal_eval as _literal_eval from collections import OrderedDict as _OrderedDict _DEBUG = False
[ 6738, 2956, 297, 571, 13, 29572, 1330, 2956, 11925, 8189, 355, 4808, 6371, 268, 8189, 11, 9577, 355, 4808, 22708, 198, 6738, 2956, 297, 571, 13, 25927, 1330, 19016, 9654, 355, 4808, 6371, 9654, 198, 6738, 12234, 8019, 1330, 45243, 20, ...
3.2625
80
import os import inspect import torch import numpy as np import numbers def get_data_path(fn, subfolder='data'): """Return path to filename ``fn`` in the data folder. During testing it is often necessary to load data files. This function returns the full path to files in the ``data`` subfolder by def...
[ 11748, 28686, 198, 11748, 10104, 198, 11748, 28034, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 3146, 628, 198, 4299, 651, 62, 7890, 62, 6978, 7, 22184, 11, 850, 43551, 11639, 7890, 6, 2599, 198, 220, 220, 220, 37227, 13615, 3108, ...
2.506903
1,014
import asyncio import time import socket import argparse import aiohttp if __name__ == '__main__': import logging logging.getLogger().addHandler(logging.NullHandler()) parser = argparse.ArgumentParser( description='GitHub IP ') parser.add_argument('proto', nargs='*', default=['http'...
[ 11748, 30351, 952, 198, 11748, 640, 198, 11748, 17802, 198, 11748, 1822, 29572, 198, 198, 11748, 257, 952, 4023, 198, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 198, 220, 1330, 18931, 198, 220, 18931, 13, 1136, 11187...
2.261146
314
#!/usr/bin/env python """ CREATED AT: 2021/8/28 Des: https://leetcode.com/problems/longest-uncommon-subsequence-ii/ GITHUB: https://github.com/Jiezhi/myleetcode """ from typing import List if __name__ == '__main__': test()
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 37811, 198, 43387, 11617, 5161, 25, 33448, 14, 23, 14, 2078, 198, 5960, 25, 198, 5450, 1378, 293, 316, 8189, 13, 785, 14, 1676, 22143, 14, 6511, 395, 12, 403, 11321, 12, 7266, 43167,...
2.452632
95
# Advent of Code 2020 Day # https://adventofcode.com/2020/ import cProfile import itertools import math import numpy as np from collections import namedtuple from pprint import pformat, pprint from typing import List, Optional from numpy.typing import ArrayLike USE_EXAMPLE1 = False # example input or full input D...
[ 2, 33732, 286, 6127, 12131, 3596, 198, 2, 3740, 1378, 324, 1151, 1659, 8189, 13, 785, 14, 42334, 14, 628, 198, 11748, 269, 37046, 198, 11748, 340, 861, 10141, 198, 11748, 10688, 198, 11748, 299, 32152, 355, 45941, 198, 198, 6738, 1726...
2.126111
8,889
import socket import select from server_info import ServerInfo from client_handler.client_thread import ClientThread from server_handler.server_thread import ServerThread from server_handler.server_thread_proxy import ServerThreadProxy from logger import Logger
[ 11748, 17802, 198, 11748, 2922, 198, 6738, 4382, 62, 10951, 1330, 9652, 12360, 198, 6738, 5456, 62, 30281, 13, 16366, 62, 16663, 1330, 20985, 16818, 198, 6738, 4382, 62, 30281, 13, 15388, 62, 16663, 1330, 9652, 16818, 198, 6738, 4382, 6...
4.440678
59
# 1. Pea a idade do usurio e imprima se ele maior ou menor de 18 anos; idade = int (input ('Digite sua idade:')) if idade < 18: print ('Voc tem menos de 18 anos') else: print ('Voc tem 18 anos ou mais') # 2. Pea um nmero e mostre se ele positivo ou negativo; numero = float (input ('Digite um nmero qualquer:...
[ 2, 352, 13, 2631, 64, 257, 4686, 671, 466, 39954, 952, 304, 848, 3036, 64, 384, 9766, 220, 17266, 1504, 267, 84, 1450, 273, 390, 1248, 281, 418, 26, 198, 312, 671, 796, 493, 357, 15414, 19203, 19511, 578, 424, 64, 4686, 671, 32105...
2.26758
3,797
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Tue Mar 2 20:41:01 2021 @author: marina Interesting: - T2000_NPOP100_NGEN500_NEU2-10-5-2-1_05-04-2021_19-08-51: Really smooth and contained between (-3,3) - T2000_NPOP100_NGEN500_NEU2-10-5-2-1_05-04-2021_19-25-20 """ # Set absolute package path i...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 198, 41972, 319, 30030, 1526, 220, 362, 1160, 25, 3901, 25, 486, 33448, 198, 198, 31, 9800, 25, 1667, 1437...
2.255295
897
#!/bin/python3 # The Captain's Room # https://www.hackerrank.com/challenges/py-the-captains-room/problem from collections import Counter if __name__ == '__main__': k = int(input()) room_captain = Counter(map(int, input().split())).most_common()[:-2:-1] print(room_captain[0][0])
[ 2, 48443, 8800, 14, 29412, 18, 198, 2, 383, 8599, 338, 10096, 198, 2, 3740, 1378, 2503, 13, 31153, 8056, 962, 13, 785, 14, 36747, 34120, 14, 9078, 12, 1169, 12, 27144, 1299, 12, 3823, 14, 45573, 198, 198, 6738, 17268, 1330, 15034, ...
2.63964
111
from __future__ import absolute_import from __future__ import unicode_literals # Registry from transformer_2.data.processing._registry import PROCESSOR_REGISTRY, \ BaseProcessor, register_processor, Compose, make_processor_from_list # Generic processors from transformer_2.data.processing.general import HtmlUnesca...
[ 6738, 11593, 37443, 834, 1330, 4112, 62, 11748, 198, 6738, 11593, 37443, 834, 1330, 28000, 1098, 62, 17201, 874, 198, 198, 2, 33432, 198, 6738, 47385, 62, 17, 13, 7890, 13, 36948, 13557, 2301, 4592, 1330, 41755, 7597, 1581, 62, 31553, ...
3.10303
495
""" PyDMC API Client """ import requests
[ 37811, 198, 20519, 35, 9655, 7824, 20985, 198, 37811, 198, 11748, 7007, 628, 628, 628, 628 ]
3
16
from .archery_range import ArcheryRange from .barrack import Barrack from .building import Building from .dock import Dock from .farm import Farm from .granary import Granary from .market import Market from .military_building import MilitaryBuilding from .stable import Stable from .storage_building import StorageBuildi...
[ 6738, 764, 283, 31132, 62, 9521, 1330, 19333, 88, 17257, 198, 6738, 764, 65, 3258, 441, 1330, 27883, 441, 198, 6738, 764, 16894, 1330, 11819, 198, 6738, 764, 67, 735, 1330, 36444, 198, 6738, 764, 43323, 1330, 11272, 198, 6738, 764, 46...
3.092937
269
#: Okay True and False #: E271 True and False #: E272 True and False #: E271 if 1: #: E273 True and False #: E273 E274 True and False #: E271 a and b #: E271 1 and b #: E271 a and 2 #: E271 E272 1 and b #: E271 E272 a and 2 #: E272 this and False #: E273 a and b #: E274 a and b #: E273 E274 this and Fal...
[ 2, 25, 16805, 198, 17821, 290, 10352, 198, 2, 25, 412, 28977, 198, 17821, 290, 220, 10352, 198, 2, 25, 412, 29807, 198, 17821, 220, 290, 10352, 198, 2, 25, 412, 28977, 198, 361, 220, 220, 352, 25, 198, 2, 25, 412, 27367, 198, 17...
1.957576
165
from threading import Thread,Lock from api.GIS.config import GIS_mgdb_config from api.GIS.database.mongoDB import MGO import json from api.GIS.GISStaticsFun import GisStaticsFun
[ 6738, 4704, 278, 1330, 14122, 11, 25392, 198, 6738, 40391, 13, 38, 1797, 13, 11250, 1330, 402, 1797, 62, 11296, 9945, 62, 11250, 198, 6738, 40391, 13, 38, 1797, 13, 48806, 13, 76, 25162, 11012, 1330, 337, 11230, 198, 11748, 33918, 198...
2.685714
70
import pygame
[ 11748, 12972, 6057 ]
4.333333
3
from django import template register = template.Library() # import re # class SetVarNode(template.Node):
[ 6738, 42625, 14208, 1330, 11055, 201, 198, 201, 198, 30238, 796, 11055, 13, 23377, 3419, 201, 198, 201, 198, 2, 220, 220, 220, 220, 201, 198, 201, 198, 11748, 302, 201, 198, 201, 198, 201, 198, 2, 220, 220, 220, 220, 220, 201, 198...
2.339286
56
#!/bin/env python3 import sys import plac import webcolors import os _COLOR_FILTERS = { '#': '', '(': '', ')': '', } LIGHT_CONTROLS = { 'left': '/sys/class/leds/system76::kbd_backlight/color_left', 'center': '/sys/class/leds/system76::kbd_backlight/color_center', 'right': '/sys/class/leds/sys...
[ 2, 48443, 8800, 14, 24330, 21015, 18, 198, 11748, 25064, 198, 198, 11748, 21957, 198, 11748, 3992, 4033, 669, 198, 11748, 28686, 198, 198, 62, 46786, 62, 46700, 51, 4877, 796, 1391, 198, 220, 220, 220, 705, 2, 10354, 705, 3256, 198, ...
2.248619
181
from .field import Field from .re_field import ReField from .matrix import Matrix inf = Field(is_inf=True) IDM = Matrix(1, 0, 0, 1) G0 = Matrix(0, -1, 1, 0) G1 = Matrix(0, 1, -1, 1) G1_2 = G1 ** 2 G0_ = Matrix(0, 1, -1, 0) G1_ = Matrix(1, 1, -1, 0) G1_2_ = G1_ ** 2 G_ = Matrix(1, -1, 0, 1) G__ = Matrix(1, 0, -1, 1)...
[ 6738, 764, 3245, 1330, 7663, 198, 6738, 764, 260, 62, 3245, 1330, 797, 15878, 198, 6738, 764, 6759, 8609, 1330, 24936, 198, 198, 10745, 796, 7663, 7, 271, 62, 10745, 28, 17821, 8, 198, 198, 2389, 44, 796, 24936, 7, 16, 11, 657, 11...
1.926606
218
import unittest import unittest.mock as mock from unittest.mock import patch __all__ = ['unittest','mock','patch']
[ 11748, 555, 715, 395, 198, 11748, 555, 715, 395, 13, 76, 735, 355, 15290, 198, 6738, 555, 715, 395, 13, 76, 735, 1330, 8529, 198, 198, 834, 439, 834, 796, 37250, 403, 715, 395, 41707, 76, 735, 41707, 17147, 20520, 198 ]
2.829268
41
#!/usr/bin/env python ''' Reporte bsqueda de alquileres de Inmuebles --------------------------- Autor: Inove Coding School Version: 1.0 Descripcion: Este script realiza reportes de los datos adquiridos de alquileres de inmuebles Reporte N 0: Visualizar todos los reportes juntos de estudio por ambientes y m...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 201, 198, 7061, 6, 201, 198, 19100, 68, 275, 16485, 18082, 390, 435, 421, 576, 411, 390, 554, 76, 518, 7689, 201, 198, 22369, 6329, 201, 198, 16541, 273, 25, 554, 659, 327, 7656, 3961, ...
2.475588
553