content
stringlengths
1
1.05M
input_ids
listlengths
1
883k
ratio_char_token
float64
1
22.9
token_count
int64
1
883k
""" Setup. python setup.py build_ext --inplace """ from distutils.core import setup from Cython.Build import cythonize setup(ext_modules=cythonize('splay_tree.pyx'))
[ 37811, 198, 40786, 13, 198, 198, 29412, 9058, 13, 9078, 1382, 62, 2302, 1377, 259, 5372, 198, 37811, 198, 198, 6738, 1233, 26791, 13, 7295, 1330, 9058, 198, 198, 6738, 327, 7535, 13, 15580, 1330, 3075, 400, 261, 1096, 628, 198, 40406,...
2.758065
62
from WebApp.mainapp import app import dash_html_components as html import flask from REST_API.rest_api import API from WebApp.Layout import Layout app.layout = Layout() app.server.register_blueprint(API) server = app.server if __name__ == '__main__': # app.run_server(debug=False, host='0.0.0.0', port=90) app....
[ 6738, 5313, 4677, 13, 12417, 1324, 1330, 598, 198, 11748, 14470, 62, 6494, 62, 5589, 3906, 355, 27711, 198, 11748, 42903, 198, 6738, 30617, 62, 17614, 13, 2118, 62, 15042, 1330, 7824, 198, 6738, 5313, 4677, 13, 32517, 1330, 47639, 198, ...
2.811475
122
''' Leia 2 valores inteiros (A e B). Aps, o programa deve mostrar uma mensagem "Sao Multiplos" ou "Nao sao Multiplos", indicando se os valores lidos so mltiplos entre si. ''' data = str(input()) values = data.split(' ') first_value = int(values[0]) second_value = int(values[1]) if(second_value > first_value): r...
[ 7061, 6, 198, 3123, 544, 362, 1188, 2850, 493, 20295, 4951, 357, 32, 304, 347, 737, 317, 862, 11, 267, 1430, 64, 390, 303, 749, 20040, 334, 2611, 285, 641, 363, 368, 366, 50, 5488, 15237, 489, 418, 1, 267, 84, 198, 1, 45, 5488, ...
2.494774
287
import re from slack_bolt import App from app.onboarding import ( message_multi_users_select, message_multi_users_select_lazy, ) from app.tutorials import ( tutorial_page_transition, tutorial_page_transition_lazy, app_home_opened, app_home_opened_lazy, page1_home_tab_button_click, page...
[ 11748, 302, 198, 198, 6738, 30740, 62, 25593, 1330, 2034, 198, 198, 6738, 598, 13, 261, 27794, 1330, 357, 198, 220, 220, 220, 3275, 62, 41684, 62, 18417, 62, 19738, 11, 198, 220, 220, 220, 3275, 62, 41684, 62, 18417, 62, 19738, 62, ...
2.414439
374
import nltk import re from nltk.corpus import wordnet # This method reads the file and redacts names in it and writes redacted data to file with extension python3.redacted
[ 11748, 299, 2528, 74, 198, 11748, 302, 198, 6738, 299, 2528, 74, 13, 10215, 79, 385, 1330, 1573, 3262, 198, 198, 2, 770, 2446, 9743, 262, 2393, 290, 2266, 8656, 3891, 287, 340, 290, 6797, 44740, 1366, 284, 2393, 351, 7552, 21015, 18...
3.702128
47
# Space : O(n) # Time : O(m*n)
[ 2, 4687, 220, 220, 220, 220, 1058, 440, 7, 77, 8, 198, 2, 3862, 220, 220, 220, 220, 220, 1058, 440, 7, 76, 9, 77, 8, 198 ]
1.481481
27
import os from datetime import datetime import time import pandas as pd from datasets.linear import LinearProblem from regresion.linear.feature import PolFeatures from regresion.linear.linear import LinearRegression # lr = LinearRegression() # p = ParkingProblem(lr) # p.fit_solving()
[ 11748, 28686, 198, 6738, 4818, 8079, 1330, 4818, 8079, 198, 11748, 640, 198, 198, 11748, 19798, 292, 355, 279, 67, 198, 198, 6738, 40522, 13, 29127, 1330, 44800, 40781, 198, 6738, 842, 411, 295, 13, 29127, 13, 30053, 1330, 2165, 23595, ...
3.452381
84
from output.models.nist_data.atomic.name.schema_instance.nistschema_sv_iv_atomic_name_max_length_1_xsd.nistschema_sv_iv_atomic_name_max_length_1 import NistschemaSvIvAtomicNameMaxLength1 __all__ = [ "NistschemaSvIvAtomicNameMaxLength1", ]
[ 6738, 5072, 13, 27530, 13, 77, 396, 62, 7890, 13, 47116, 13, 3672, 13, 15952, 2611, 62, 39098, 13, 77, 1023, 2395, 2611, 62, 21370, 62, 452, 62, 47116, 62, 3672, 62, 9806, 62, 13664, 62, 16, 62, 87, 21282, 13, 77, 1023, 2395, 26...
2.392157
102
""" 1. Normalizing the entire dataset with mean and variance, shuffle, compression=9 runs for more than 8 hours on ocelote and results in a file of more than 150GB. 2. Try normalizing with only variance and without shuffle. """ import os.path import sys import time import h5py import numpy as np def calculate_...
[ 37811, 198, 16, 13, 14435, 2890, 262, 2104, 27039, 351, 1612, 290, 24198, 11, 36273, 11, 19794, 28, 24, 4539, 329, 517, 621, 807, 2250, 319, 198, 220, 220, 267, 5276, 1258, 290, 2482, 287, 257, 2393, 286, 517, 621, 6640, 4579, 13, ...
2.315217
828
from flask_restful import fields from .custom import Num, EdgeUrl, PaginateUrl getCommentField = { "id": fields.Integer, "time": fields.DateTime(attribute="timestamp"), "author_name": fields.String(attribute="username"), "article_id": fields.Integer(attribute="postid"), "body": fields.String, "...
[ 6738, 42903, 62, 2118, 913, 1330, 7032, 198, 6738, 764, 23144, 1330, 31835, 11, 13113, 28165, 11, 31525, 4559, 28165, 198, 198, 1136, 21357, 15878, 796, 1391, 198, 220, 220, 220, 366, 312, 1298, 7032, 13, 46541, 11, 198, 220, 220, 220...
2.698962
289
from django import template from faq.forms import FaqInstanceForm, FaqAnswerForm from faq.models import FaqInstance, FaqAnswer register = template.Library()
[ 6738, 42625, 14208, 1330, 11055, 198, 198, 6738, 24685, 80, 13, 23914, 1330, 18350, 80, 33384, 8479, 11, 18350, 80, 33706, 8479, 198, 6738, 24685, 80, 13, 27530, 1330, 18350, 80, 33384, 11, 18350, 80, 33706, 628, 198, 30238, 796, 11055,...
3.521739
46
# flake8: noqa """ MarkFlow MarkDown Section Detection Library This library provide this functions MarkFlow uses to split a document into it's individual text types. """ from .atx_heading import * from .blank_line import * from .block_quote import * from .fenced_code_block import * from .indented_code_block import * f...
[ 2, 781, 539, 23, 25, 645, 20402, 198, 37811, 198, 9704, 37535, 2940, 8048, 7275, 46254, 10074, 198, 198, 1212, 5888, 2148, 428, 5499, 2940, 37535, 3544, 284, 6626, 257, 3188, 656, 340, 338, 198, 43129, 2420, 3858, 13, 198, 37811, 198,...
3.6
135
from django import forms from apps.forms import FormMixin from django.core import validators from .models import User from django.core.cache import cache
[ 6738, 42625, 14208, 1330, 5107, 198, 6738, 6725, 13, 23914, 1330, 5178, 35608, 259, 198, 6738, 42625, 14208, 13, 7295, 1330, 4938, 2024, 198, 6738, 764, 27530, 1330, 11787, 198, 6738, 42625, 14208, 13, 7295, 13, 23870, 1330, 12940, 628, ...
3.829268
41
import pytest from receives.receiver import Receiver
[ 198, 11748, 12972, 9288, 198, 6738, 11583, 13, 260, 39729, 1330, 39106, 628 ]
4.230769
13
import json import logging from django.core.exceptions import ValidationError from django.db import transaction from django.forms import DateField, CharField import requests import requests.exceptions from . import models from contracts.crawler_forms import EntityForm, ContractForm, \ TenderForm, clean_place, Pr...
[ 11748, 33918, 198, 11748, 18931, 198, 198, 6738, 42625, 14208, 13, 7295, 13, 1069, 11755, 1330, 3254, 24765, 12331, 198, 6738, 42625, 14208, 13, 9945, 1330, 8611, 198, 6738, 42625, 14208, 13, 23914, 1330, 7536, 15878, 11, 3178, 15878, 198...
3.596154
104
""" Precisely APIs Enhance & enrich your data, applications, business processes, and workflows with rich location, information, and identify APIs. # noqa: E501 The version of the OpenAPI document: 11.9.3 Generated by: https://openapi-generator.tech """ import re # noqa: F401 import sys # noqa: F4...
[ 37811, 198, 220, 220, 220, 28737, 786, 306, 23113, 628, 220, 220, 220, 32999, 1222, 22465, 534, 1366, 11, 5479, 11, 1597, 7767, 11, 290, 670, 44041, 351, 5527, 4067, 11, 1321, 11, 290, 5911, 23113, 13, 220, 1303, 645, 20402, 25, 412...
2.661654
266
from .api_handler import DefaultFourHundredResponse from .api_keys import ApiKeys from .xray import XRay
[ 6738, 764, 15042, 62, 30281, 1330, 15161, 15137, 39, 3229, 31077, 198, 6738, 764, 15042, 62, 13083, 1330, 5949, 72, 40729, 198, 6738, 764, 87, 2433, 1330, 1395, 19591, 198 ]
3.5
30
import copy import json import os from unittest.mock import MagicMock, call from bravado.client import SwaggerClient import bravado.exception from bravado_falcon import FalconHttpClient import falcon import pytest import pytest_falcon.plugin import responses import yaml from data_acquisition.acquisition_request impor...
[ 11748, 4866, 198, 11748, 33918, 198, 11748, 28686, 198, 6738, 555, 715, 395, 13, 76, 735, 1330, 6139, 44, 735, 11, 869, 198, 198, 6738, 49025, 4533, 13, 16366, 1330, 2451, 7928, 11792, 198, 11748, 49025, 4533, 13, 1069, 4516, 198, 673...
2.576336
524
import sys import platform from neo4j import ServiceUnavailable from GraphOfDocs.neo4j_wrapper import Neo4jDatabase from GraphOfDocs.utils import generate_words, read_dataset, clear_screen from GraphOfDocs.parse_args import parser from GraphOfDocs.create import * if __name__ == '__main__': # If only one ...
[ 11748, 25064, 201, 198, 11748, 3859, 201, 198, 6738, 19102, 19, 73, 1330, 4809, 3118, 15182, 201, 198, 6738, 29681, 5189, 23579, 82, 13, 710, 78, 19, 73, 62, 48553, 1330, 21227, 19, 73, 38105, 201, 198, 6738, 29681, 5189, 23579, 82, ...
2.682183
623
# # Autogenerated by Frugal Compiler (3.4.3) # # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING # from threading import Lock from frugal.middleware import Method from frugal.exceptions import TApplicationExceptionType from frugal.exceptions import TTransportExceptionType from frugal.processor impo...
[ 2, 198, 2, 5231, 519, 877, 515, 416, 376, 2143, 282, 3082, 5329, 357, 18, 13, 19, 13, 18, 8, 198, 2, 198, 2, 8410, 5626, 48483, 4725, 48481, 7013, 15986, 311, 11335, 14603, 7013, 35876, 25003, 7013, 15986, 8410, 2751, 198, 2, 628,...
3.039886
351
# 279. Perfect Squares # Runtime: 60 ms, faster than 96.81% of Python3 online submissions for Perfect Squares. # Memory Usage: 14.7 MB, less than 42.95% of Python3 online submissions for Perfect Squares.
[ 2, 39466, 13, 16374, 5056, 3565, 198, 198, 2, 43160, 25, 3126, 13845, 11, 5443, 621, 9907, 13, 6659, 4, 286, 11361, 18, 2691, 22129, 329, 16374, 5056, 3565, 13, 198, 198, 2, 14059, 29566, 25, 1478, 13, 22, 10771, 11, 1342, 621, 54...
3.551724
58
""" Definitions for Card, Suit, Pip, etc. WARN: DO NOT CHANGE THE ENUMS IN THIS FILE! Changing the values might affect the ordering of the state/action space of agents, and will break compatibility with previously saved model checkpoints. """ from enum import IntEnum pip_scores = { Pip.sieben: 0, Pip.ach...
[ 37811, 198, 7469, 50101, 329, 5172, 11, 28871, 11, 25149, 11, 3503, 13, 198, 198, 37771, 25, 8410, 5626, 5870, 27746, 3336, 12964, 52, 5653, 3268, 12680, 45811, 0, 198, 48333, 262, 3815, 1244, 2689, 262, 16216, 286, 262, 1181, 14, 267...
2.660194
206
MAX_COPIES = 2 RECV_SIZE = 1024 SEND_SIZE = 1024 SERVER_IP = "172.24.1.107" SERVER_PORT = 10000 # Error Codes CODE_SUCCESS = 300 CODE_FAILURE = 400
[ 198, 22921, 62, 34, 3185, 11015, 796, 362, 198, 2200, 33538, 62, 33489, 796, 28119, 198, 50, 10619, 62, 33489, 796, 28119, 198, 35009, 5959, 62, 4061, 796, 366, 23628, 13, 1731, 13, 16, 13, 15982, 1, 198, 35009, 5959, 62, 15490, 796...
2.217391
69
if __name__ == '__main__': key = "train" base_path = "./data/Twitter/" src_path = base_path + key + "_post.txt" conv_path = base_path + key + "_conv.txt" tag_path = base_path + key + "_tag.txt" srcs = read_file(src_path) convs = read_file(conv_path) tags = read_file(tag_path) new...
[ 628, 198, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 198, 220, 220, 220, 1994, 796, 366, 27432, 1, 198, 220, 220, 220, 2779, 62, 6978, 796, 366, 19571, 7890, 14, 14254, 30487, 198, 220, 220, 220, 12351, 62, 6978,...
2.254098
244
import mock
[ 11748, 15290, 628, 628, 198 ]
3.2
5
"""Script that establishes a session in a wireless network managed by Cisco Web Authentication. This script requests for re-establishing a session in a wireless network managed by Cisco Web Authentication. Copyright 2013 Dario B. darizotas at gmail dot com This software is licensed under a new BSD License. Unported...
[ 37811, 7391, 326, 30742, 257, 6246, 287, 257, 12521, 3127, 5257, 416, 28289, 5313, 48191, 13, 198, 198, 1212, 4226, 7007, 329, 302, 12, 40037, 278, 257, 6246, 287, 257, 12521, 3127, 5257, 416, 28289, 5313, 220, 198, 47649, 3299, 13, 1...
3.038571
700
from django.urls import path from qr_code import views app_name = 'qr_code' urlpatterns = [ path('images/serve-qr-code-image/', views.serve_qr_code_image, name='serve_qr_code_image') ]
[ 6738, 42625, 14208, 13, 6371, 82, 1330, 3108, 198, 198, 6738, 10662, 81, 62, 8189, 1330, 5009, 628, 198, 1324, 62, 3672, 796, 705, 80, 81, 62, 8189, 6, 198, 6371, 33279, 82, 796, 685, 198, 220, 220, 220, 3108, 10786, 17566, 14, 26...
2.37037
81
""" Stable Marriage Problem solution using Gale-Shapley. Copyright 2020. Siwei Wang. """ # pylint: disable=no-value-for-parameter from typing import Optional from click import command, option, Path from read_validate import get_smp from marriage import compute_smp from write import print_results if __name__ == '__m...
[ 37811, 198, 1273, 540, 24509, 20647, 4610, 1262, 36483, 12, 2484, 499, 1636, 13, 198, 198, 15269, 12131, 13, 15638, 42990, 15233, 13, 198, 37811, 198, 2, 279, 2645, 600, 25, 15560, 28, 3919, 12, 8367, 12, 1640, 12, 17143, 2357, 198, ...
3.356436
101
import pysam import json import bisect import subprocess Main(InputFileSAM = "/Data/NGS_Data/20211228_NGS_MinjaF_Pool/Results/Human_HiC/K1/splits/8_S73_L003.fastq.gz.filtered.sam", OutputFileTXT = "test_mergednodups.txt.gz", InterPairsTXT = "test_interpairs.txt.gz", MappingQualityFailedSAM = "/dev/null", ChimericAmbig...
[ 11748, 279, 893, 321, 198, 11748, 33918, 198, 11748, 47457, 478, 198, 11748, 850, 14681, 198, 198, 13383, 7, 20560, 8979, 49302, 796, 12813, 6601, 14, 10503, 50, 62, 6601, 14, 1238, 2481, 1065, 2078, 62, 10503, 50, 62, 9452, 6592, 37,...
2.602339
171
# https://open.kattis.com/problems/carrots import sys print sys.stdin.read().split()[1]
[ 2, 3740, 1378, 9654, 13, 74, 1078, 271, 13, 785, 14, 1676, 22143, 14, 7718, 24744, 201, 198, 201, 198, 11748, 25064, 201, 198, 201, 198, 4798, 25064, 13, 19282, 259, 13, 961, 22446, 35312, 3419, 58, 16, 60, 201, 198 ]
2.317073
41
from abc import ABC, abstractmethod from typing import Any, List, Optional import pandas as pd from yacht.config import Config ####################################################################################################################### transforms_registry = { 'RelativeClosePriceScaling': Relativ...
[ 6738, 450, 66, 1330, 9738, 11, 12531, 24396, 198, 6738, 19720, 1330, 4377, 11, 7343, 11, 32233, 198, 198, 11748, 19798, 292, 355, 279, 67, 198, 198, 6738, 43207, 13, 11250, 1330, 17056, 628, 628, 198, 198, 29113, 29113, 29113, 14468, ...
4.517647
85
import csv import logging import os import discord from discord.ext import commands, tasks from discord.utils import get # logging config logging.basicConfig( filename=".log/reg.log", format="%(asctime)s - %(message)s", level=logging.INFO, datefmt="%d-%b-%y %H:%M:%S", ) # set up channel ids and enviro...
[ 11748, 269, 21370, 198, 11748, 18931, 198, 11748, 28686, 198, 11748, 36446, 198, 6738, 36446, 13, 2302, 1330, 9729, 11, 8861, 198, 6738, 36446, 13, 26791, 1330, 651, 198, 198, 2, 18931, 4566, 198, 6404, 2667, 13, 35487, 16934, 7, 198, ...
2.608247
388
#!/usr/bin/env python # skeleton from http://kmkeen.com/socketserver/2009-04-03-13-45-57-003.html import socketserver, subprocess, sys from threading import Thread from pprint import pprint import json my_unix_command = ['bc'] HOST = 'localhost' PORT = 12321 with open('storage.json') as data_file: JSONdata = js...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 198, 2, 18328, 422, 2638, 1378, 13276, 365, 268, 13, 785, 14, 82, 11603, 18497, 14, 10531, 12, 3023, 12, 3070, 12, 1485, 12, 2231, 12, 3553, 12, 11245, 13, 6494, 198, 198, 11748, 3...
2.395349
301
from keycloakclient.aio.mixins import WellKnownMixin from keycloakclient.openid_connect import ( KeycloakOpenidConnect as SyncKeycloakOpenidConnect, PATH_WELL_KNOWN, ) __all__ = ( 'KeycloakOpenidConnect', )
[ 6738, 1994, 565, 15877, 16366, 13, 64, 952, 13, 19816, 1040, 1330, 3894, 29870, 35608, 259, 198, 6738, 1994, 565, 15877, 16366, 13, 9654, 312, 62, 8443, 1330, 357, 198, 220, 220, 220, 7383, 565, 15877, 11505, 312, 13313, 355, 35908, 9...
2.662651
83
""" Handles operator precedence. """ from jedi._compatibility import unicode from jedi.parser import representation as pr from jedi import debug from jedi.common import PushBackIterator from jedi.evaluate.compiled import CompiledObject, create, builtin from jedi.evaluate import analysis def create_precedence(expr...
[ 37811, 198, 12885, 829, 10088, 38177, 13, 198, 37811, 198, 198, 6738, 474, 13740, 13557, 5589, 25901, 1330, 28000, 1098, 198, 6738, 474, 13740, 13, 48610, 1330, 10552, 355, 778, 198, 6738, 474, 13740, 1330, 14257, 198, 6738, 474, 13740, ...
2.468531
572
#!/usr/bin/env python __author__ = 'Will Kamp' __copyright__ = 'Copyright 2013, Matrix Mariner Inc.' __license__ = 'BSD' __email__ = 'will@mxmariner.com' __status__ = 'Development' # 'Prototype', 'Development', or 'Production' import os # def __walker(self, args, p_dir, p_file): # map_extensions, include...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 198, 834, 9800, 834, 796, 705, 8743, 45327, 6, 198, 834, 22163, 4766, 834, 796, 705, 15269, 2211, 11, 24936, 1526, 7274, 3457, 2637, 198, 834, 43085, 834, 796, 705, 21800, 6, 198, 83...
2.268608
309
"""Command line interface for fsh-validator.""" import os import sys import argparse from pathlib import Path import yaml from .fsh_validator import ( print_box, run_sushi, validate_all_fsh, validate_fsh, download_validator, bcolors, VALIDATOR_BASENAME, store_log, assert_sushi_instal...
[ 37811, 21575, 1627, 7071, 329, 277, 1477, 12, 12102, 1352, 526, 15931, 198, 11748, 28686, 198, 11748, 25064, 198, 11748, 1822, 29572, 198, 6738, 3108, 8019, 1330, 10644, 198, 11748, 331, 43695, 198, 6738, 764, 69, 1477, 62, 12102, 1352, ...
2.220705
2,270
import os from enum import Enum def getPackageDirectory(package: AppPackage, version: str = None): "Gets the directory where the specified package is installed." varName = f'AZ_BATCH_APP_PACKAGE_{package.value}' if version != None: varName = f'{varName}#{version}' return os.environ[varName...
[ 11748, 28686, 198, 198, 6738, 33829, 1330, 2039, 388, 628, 198, 198, 4299, 651, 27813, 43055, 7, 26495, 25, 2034, 27813, 11, 2196, 25, 965, 796, 6045, 2599, 198, 220, 220, 220, 366, 38, 1039, 262, 8619, 810, 262, 7368, 5301, 318, 65...
2.824561
114
""" This file should be imported at the bottom of configure.py TODO: All of this may be moved into a single function in the future so people can choose a reactor in configure.py """ from twisted.internet import reactor from twisted.internet.task import LoopingCall from threading import currentThread, Thread...
[ 37811, 201, 198, 1212, 2393, 815, 307, 17392, 379, 262, 4220, 286, 17425, 13, 9078, 201, 198, 201, 198, 51, 3727, 46, 25, 201, 198, 3237, 286, 428, 743, 307, 3888, 656, 257, 2060, 2163, 287, 262, 2003, 201, 198, 568, 661, 460, 385...
3.532164
171
import random import time import requests
[ 198, 11748, 4738, 198, 11748, 640, 198, 11748, 7007, 628 ]
4.4
10
from django.shortcuts import render from django.views import View # Create your views here.
[ 6738, 42625, 14208, 13, 19509, 23779, 1330, 8543, 198, 6738, 42625, 14208, 13, 33571, 1330, 3582, 198, 198, 2, 13610, 534, 5009, 994, 13 ]
3.833333
24
#!/usr/bin/python # -*- coding: utf-8 -*- """hashvis by Peter Hosey Reads from standard input or files, and prints what it reads, along with colorized versions of any hashes or signatures found in each line. The goal here is visual comparability. You should be able to tell whether two hashes are the same at a glance...
[ 2, 48443, 14629, 14, 8800, 14, 29412, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 37811, 17831, 4703, 416, 5613, 367, 577, 88, 198, 198, 5569, 82, 422, 3210, 5128, 393, 3696, 11, 290, 20842, 644, 340, ...
2.339118
4,264
# https://projecteuler.net/problem=7 import math print(sum(sieve(2000000)))
[ 2, 3740, 1378, 16302, 68, 18173, 13, 3262, 14, 45573, 28, 22, 201, 198, 201, 198, 11748, 10688, 201, 198, 201, 198, 4798, 7, 16345, 7, 82, 12311, 7, 2167, 2388, 22305, 201, 198 ]
2.441176
34
"""Add new types Revision ID: 32053847c4db Revises: 05a62958a9cc Create Date: 2019-06-11 10:36:14.456629 """ from alembic import context from sqlalchemy.orm import sessionmaker # revision identifiers, used by Alembic. revision = '32053847c4db' down_revision = '05a62958a9cc' branch_labels = None depends_on = None a...
[ 37811, 4550, 649, 3858, 198, 198, 18009, 1166, 4522, 25, 20959, 49561, 2857, 66, 19, 9945, 198, 18009, 2696, 25, 8870, 64, 48602, 3365, 64, 24, 535, 198, 16447, 7536, 25, 13130, 12, 3312, 12, 1157, 838, 25, 2623, 25, 1415, 13, 2231,...
2.084052
928
from advanced_tools.IO_path_utils import * from advanced_tools.algorithm_utils import *
[ 6738, 6190, 62, 31391, 13, 9399, 62, 6978, 62, 26791, 1330, 1635, 198, 6738, 6190, 62, 31391, 13, 282, 42289, 62, 26791, 1330, 1635, 198 ]
3.52
25
import os import pickle import functools import errno import shutil from urllib.request import urlopen #import definitions def disk_cache(basename, directory, method=False): """ Function decorator for caching pickleable return values on disk. Uses a hash computed from the function arguments for ...
[ 11748, 28686, 201, 198, 11748, 2298, 293, 201, 198, 11748, 1257, 310, 10141, 201, 198, 11748, 11454, 3919, 201, 198, 11748, 4423, 346, 201, 198, 6738, 2956, 297, 571, 13, 25927, 1330, 19016, 9654, 201, 198, 2, 11748, 17336, 201, 198, ...
2.773124
573
import cv2 import time import numpy as np import imutils camera= 0 cam = cv2.VideoCapture(camera) fgbg = cv2.createBackgroundSubtractorMOG2(history=1000,varThreshold=0,detectShadows=False) width=600 height=480 fps_time = 0 while True: ret_val,image = cam.read() image = cv2.resize(image,(width,height)) imag...
[ 11748, 269, 85, 17, 198, 11748, 640, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 545, 26791, 198, 25695, 28, 657, 198, 20991, 796, 269, 85, 17, 13, 10798, 49630, 7, 25695, 8, 198, 69, 22296, 70, 796, 269, 85, 17, 13, 17953, 21...
1.916908
1,035
#Given a positive integer num, write a function which returns True if num is a perfect square else False.
[ 2, 15056, 257, 3967, 18253, 997, 11, 3551, 257, 2163, 543, 5860, 6407, 611, 997, 318, 257, 2818, 6616, 2073, 10352, 13, 198 ]
4.608696
23
from minescrubber_core import abstract from . import mainwindow def run(): controller = Controller() controller.run(ui_class=UI)
[ 6738, 949, 3798, 25089, 527, 62, 7295, 1330, 12531, 628, 198, 6738, 764, 1330, 1388, 17497, 628, 628, 198, 4299, 1057, 33529, 198, 220, 220, 220, 10444, 796, 22741, 3419, 198, 220, 220, 220, 10444, 13, 5143, 7, 9019, 62, 4871, 28, 1...
3.177778
45
from .power_group import PowerGroup
[ 6738, 764, 6477, 62, 8094, 1330, 4333, 13247, 198 ]
4
9
""" .. module:: elementtype.py :platform: Linux .. moduleauthor:: Michael Schilonka <michael@schilonka.de> """ import logging
[ 37811, 198, 492, 8265, 3712, 5002, 4906, 13, 9078, 198, 220, 220, 1058, 24254, 25, 7020, 198, 198, 492, 8265, 9800, 3712, 3899, 3059, 33576, 4914, 1279, 76, 40302, 31, 20601, 33576, 4914, 13, 2934, 29, 628, 198, 37811, 198, 198, 11748...
2.836735
49
# coding=utf-8 from OTLMOW.OTLModel.Classes.Put import Put from OTLMOW.OTLModel.Classes.PutRelatie import PutRelatie from OTLMOW.GeometrieArtefact.VlakGeometrie import VlakGeometrie # Generated with OTLClassCreator. To modify: extend, do not edit
[ 2, 19617, 28, 40477, 12, 23, 198, 6738, 440, 14990, 44, 3913, 13, 2394, 43, 17633, 13, 9487, 274, 13, 11588, 1330, 5930, 198, 6738, 440, 14990, 44, 3913, 13, 2394, 43, 17633, 13, 9487, 274, 13, 11588, 6892, 265, 494, 1330, 5930, 6...
2.648936
94
# get the training data D, sample the Generator with random z to produce r N = X_train z = np.random.uniform(-1, 1, (1, z_dim)) r = G.predict_on_batch(z) # define our distance measure S to be L1 S = lambda n, r: np.sum(np.abs(n - r)) # compute the distances between the reference and the samples in N using the...
[ 2, 651, 262, 3047, 1366, 360, 11, 6291, 262, 35986, 351, 4738, 1976, 284, 4439, 374, 201, 198, 45, 796, 1395, 62, 27432, 201, 198, 89, 796, 45941, 13, 25120, 13, 403, 6933, 32590, 16, 11, 352, 11, 357, 16, 11, 1976, 62, 27740, 4...
2.358261
575
import os import boto3 # import subprocess from subprocess import Popen, PIPE from time import sleep import json import ast from datetime import datetime, time, timedelta, date import logging import logging.handlers import sys, getopt import glob import shutil logger = logging.getLogger() logger.setLevel(logging.INFO)...
[ 11748, 28686, 198, 11748, 275, 2069, 18, 198, 2, 1330, 850, 14681, 198, 6738, 850, 14681, 1330, 8099, 268, 11, 350, 4061, 36, 198, 6738, 640, 1330, 3993, 198, 11748, 33918, 198, 11748, 6468, 198, 6738, 4818, 8079, 1330, 4818, 8079, 11...
3.021898
137
#!/usr/bin/env python # -*- coding: utf-8 -*- # @Date : 2020-10-21 # @Author : Emily Wenger (ewenger@uchicago.edu) import time import numpy as np import tensorflow as tf import tensorflow_addons as tfa from keras.utils import Progbar
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 2488, 10430, 220, 220, 220, 1058, 12131, 12, 940, 12, 2481, 198, 2, 2488, 13838, 220, 1058, 17608, 31415, 357, 413...
2.648352
91
from abc import ABCMeta, abstractmethod import database from . import w_l
[ 6738, 450, 66, 1330, 9738, 48526, 11, 12531, 24396, 198, 11748, 6831, 198, 198, 6738, 764, 1330, 266, 62, 75, 198 ]
3.571429
21
from typing import Callable
[ 6738, 19720, 1330, 4889, 540, 628, 628, 198 ]
4
8
import setuptools setuptools.setup( name= 'ramCOH', version= '0.1', description= '...', author= 'Thomas van Gerve', packages= setuptools.find_packages( exclude= ['examples'] ), # package_dir= {'' : 'petroPy'}, package_data= {'ramCOH': ['static/*']}, install_requi...
[ 11748, 900, 37623, 10141, 198, 198, 2617, 37623, 10141, 13, 40406, 7, 198, 220, 220, 220, 1438, 28, 705, 859, 8220, 39, 3256, 198, 220, 220, 220, 2196, 28, 705, 15, 13, 16, 3256, 198, 220, 220, 220, 6764, 28, 705, 986, 3256, 198, ...
2.082474
194
from chess_game._board import make_board from chess_game.chess_game import ChessGame from chess_game.play_game import get_user_input, game_event_loop if __name__ == "__main__": game_board = make_board() # pawn = Pawn('x', 'y', None, None, None) # pawn.move() print('Chess') print(' : Rules') pr...
[ 6738, 19780, 62, 6057, 13557, 3526, 1330, 787, 62, 3526, 198, 6738, 19780, 62, 6057, 13, 2395, 824, 62, 6057, 1330, 25774, 8777, 198, 6738, 19780, 62, 6057, 13, 1759, 62, 6057, 1330, 651, 62, 7220, 62, 15414, 11, 983, 62, 15596, 62,...
2.860215
279
""" Given a binary tree, find its maximum depth. The maximum depth is the number of nodes along the longest path from the root node down to the farthest leaf node. Note: A leaf is a node with no children. Example: Given binary tree [3,9,20,null,null,15,7], 3 / \ 9 20 / \ 15 7 return its depth =...
[ 37811, 198, 15056, 257, 13934, 5509, 11, 1064, 663, 5415, 6795, 13, 198, 198, 464, 5415, 6795, 318, 262, 1271, 286, 13760, 1863, 262, 14069, 3108, 422, 262, 6808, 10139, 866, 284, 262, 15189, 3634, 12835, 10139, 13, 198, 198, 6425, 25...
2.784
125
# time 15 mins # used time 15 mins # time 15 mins # used time 15 mins # this is actually a correct solution # the code i submitted a day ago, which passed lintcode, is actually wrong after i looked KMP up # the previous version does not take care of the situations where the target contains repeatitive elements
[ 2, 640, 1315, 23550, 198, 2, 973, 640, 1315, 23550, 198, 198, 2, 640, 1315, 23550, 198, 2, 973, 640, 1315, 23550, 198, 198, 2, 428, 318, 1682, 257, 3376, 4610, 198, 2, 262, 2438, 1312, 8948, 257, 1110, 2084, 11, 543, 3804, 300, ...
4.131579
76
# -*- coding: cp1252 -*- # -*- coding: utf-8 -*- """ Algoritmos y Estructuras de Datos Proyecto Final Antonio Reyes #17273 Esteban Cabrera #17781 Miguel #17102 """ import random import xlrd file_location = "C:/Users/Antonio/Desktop/Recommendation-System-python-neo4J-master/Database.xlsx" workbook = xlrd.ope...
[ 2, 532, 9, 12, 19617, 25, 31396, 1065, 4309, 532, 9, 12, 201, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 201, 198, 37811, 201, 198, 2348, 7053, 270, 16785, 331, 412, 7249, 17786, 390, 16092, 418, 201, 198, 29...
2.733119
933
from flask import Flask import time from _thread import get_ident app=Flask(__name__) if __name__=="__main__": app.run(port=6003)
[ 198, 6738, 42903, 1330, 46947, 198, 11748, 640, 198, 6738, 220, 4808, 16663, 1330, 651, 62, 738, 198, 198, 1324, 28, 7414, 2093, 7, 834, 3672, 834, 8, 198, 198, 361, 11593, 3672, 834, 855, 1, 834, 12417, 834, 1298, 198, 220, 220, ...
2.584906
53
import unittest import util.strings as strings if __name__ == '__main__': unittest.main()
[ 11748, 555, 715, 395, 198, 198, 11748, 7736, 13, 37336, 355, 13042, 628, 198, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 198, 220, 220, 220, 555, 715, 395, 13, 12417, 3419, 198 ]
2.722222
36
# Data sources database( thermoLibraries = ['primaryThermoLibrary'], reactionLibraries = [('C3', False)], seedMechanisms = ['GRI-Mech3.0'], kineticsDepositories = ['training'], kineticsFamilies = 'default', kineticsEstimator = 'rate rules', ) # List of species species( label='ethane', r...
[ 2, 6060, 4237, 198, 48806, 7, 198, 220, 220, 220, 10811, 5908, 43, 11127, 796, 37250, 39754, 35048, 5908, 23377, 6, 4357, 198, 220, 220, 220, 6317, 43, 11127, 796, 685, 10786, 34, 18, 3256, 10352, 8, 4357, 198, 220, 220, 220, 9403, ...
2.279412
612
# Copyright (c) 2019-2021 by University of Kassel, Tu Dortmund, RWTH Aachen University and Fraunhofer # Institute for Energy Economics and Energy System Technology (IEE) Kassel and individual # contributors (see AUTHORS file for details). All rights reserved. __version__ = "1.3.0" __author__ = "smeinecke" import os s...
[ 2, 15069, 357, 66, 8, 13130, 12, 1238, 2481, 416, 2059, 286, 15035, 741, 11, 16749, 36888, 11, 33212, 4221, 317, 330, 831, 2059, 290, 39313, 403, 71, 30288, 198, 2, 5136, 329, 6682, 18963, 290, 6682, 4482, 8987, 357, 40, 6500, 8, ...
3.244444
135
import assistantResume from speak_module import speak from database import speak_is_on
[ 11748, 8796, 4965, 2454, 198, 6738, 2740, 62, 21412, 1330, 2740, 198, 6738, 6831, 1330, 2740, 62, 271, 62, 261 ]
4.3
20
import vk_api from vk_api.utils import get_random_id from vk_bot.core.sql.vksql import *
[ 11748, 410, 74, 62, 15042, 198, 6738, 410, 74, 62, 15042, 13, 26791, 1330, 651, 62, 25120, 62, 312, 198, 6738, 410, 74, 62, 13645, 13, 7295, 13, 25410, 13, 85, 591, 13976, 1330, 1635 ]
2.514286
35
"""Wallpaper Downloader Main Module.""" import argparse import asyncio import logging import sys from datetime import datetime from wallpaperdownloader.downloader import download, LOGGER_NAME def abort(*args): """Print message to the stderr and exit the program.""" print(*args, file=sys.stderr) sys.exit...
[ 37811, 22401, 20189, 10472, 263, 8774, 19937, 526, 15931, 198, 198, 11748, 1822, 29572, 198, 11748, 30351, 952, 198, 11748, 18931, 198, 11748, 25064, 198, 6738, 4818, 8079, 1330, 4818, 8079, 198, 198, 6738, 39328, 15002, 263, 13, 15002, 2...
2.816129
620
""" Functions shared across the main window, the welcome window and the system tray. """ import os import qcrash.api as qcrash from PyQt5 import QtWidgets from hackedit.app import templates, settings from hackedit.app.dialogs.dlg_about import DlgAbout from hackedit.app.dialogs.dlg_template_answers import DlgTemplate...
[ 37811, 198, 24629, 2733, 4888, 1973, 262, 1388, 4324, 11, 262, 7062, 4324, 290, 262, 1080, 198, 2213, 323, 13, 198, 198, 37811, 198, 11748, 28686, 198, 198, 11748, 10662, 6098, 1077, 13, 15042, 355, 10662, 6098, 1077, 198, 6738, 9485, ...
2.159641
1,115
""" pygame-menu https://github.com/ppizarror/pygame-menu LOCALS Local constants. License: ------------------------------------------------------------------------------- The MIT License (MIT) Copyright 2017-2021 Pablo Pizarro R. @ppizarror Permission is hereby granted, free of charge, to any person obtaining a copy ...
[ 37811, 198, 9078, 6057, 12, 26272, 198, 5450, 1378, 12567, 13, 785, 14, 381, 528, 283, 1472, 14, 9078, 6057, 12, 26272, 198, 198, 29701, 23333, 198, 14565, 38491, 13, 198, 198, 34156, 25, 198, 10097, 24305, 198, 464, 17168, 13789, 357...
2.52537
1,892
import os import sys from enum import Enum from enum import unique from typing import List # Set system constants based on the current platform if sys.platform.startswith("win32"): DEFAULT_SYSTEM_CONFIG_PATH = os.path.join(os.environ["APPDATA"], "config") elif sys.platform.startswith("linux"): DEFAULT_SYSTEM_C...
[ 11748, 28686, 198, 11748, 25064, 198, 6738, 33829, 1330, 2039, 388, 198, 6738, 33829, 1330, 3748, 198, 6738, 19720, 1330, 7343, 198, 198, 2, 5345, 1080, 38491, 1912, 319, 262, 1459, 3859, 198, 361, 25064, 13, 24254, 13, 9688, 2032, 342,...
2.625654
382
#- Copyright 2014 GOTO 10. #- Licensed under the Apache License, Version 2.0 (see LICENSE). ## Utilities used for creating build extensions. from abc import ABCMeta, abstractmethod # Abstract superclass of the tool sets loaded implicitly into each context. # There can be many of these, one for each context. # Cont...
[ 2, 12, 15069, 1946, 402, 26631, 838, 13, 198, 2, 12, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 3826, 38559, 24290, 737, 198, 198, 2235, 41086, 973, 329, 4441, 1382, 18366, 13, 198, 198, 6738, 450, 66, 1330, 9738, ...
4.039216
102
# -*- coding: utf-8 -*- ''' REFERENCES: [1] Y. Bar-Shalom, X. R. Li, and T. Kirubarajan, "Estimation with Applications to Tracking and Navigation," New York: John Wiley and Sons, Inc, 2001. [2] R. A. Singer, "Estimating Optimal Tracking Filter Performance for Manned Maneuvering Targets," in IEEE Transactions on Aerospa...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 7061, 6, 198, 2200, 24302, 24181, 1546, 25, 198, 58, 16, 60, 575, 13, 2409, 12, 2484, 282, 296, 11, 1395, 13, 371, 13, 7455, 11, 290, 309, 13, 7385, 549, 283, 1228...
2.367861
6,951
# Generated by Django 3.2.4 on 2021-06-19 08:48 from django.db import migrations, models
[ 2, 2980, 515, 416, 37770, 513, 13, 17, 13, 19, 319, 33448, 12, 3312, 12, 1129, 8487, 25, 2780, 198, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 11, 4981, 628 ]
2.84375
32
""" Orchestrate experiment execution. """ import typing as tp import attr from benchbuild.experiment import Experiment from benchbuild.project import Project from benchbuild.utils import actions, tasks ExperimentCls = tp.Type[Experiment] Experiments = tp.List[ExperimentCls] ProjectCls = tp.Type[Project] Projects = t...
[ 37811, 198, 5574, 2395, 23104, 6306, 9706, 13, 198, 37811, 198, 11748, 19720, 355, 256, 79, 198, 198, 11748, 708, 81, 198, 198, 6738, 7624, 11249, 13, 23100, 3681, 1330, 29544, 198, 6738, 7624, 11249, 13, 16302, 1330, 4935, 198, 6738, ...
3.118421
152
""" Mask R-CNN Dataset functions and classes. Copyright (c) 2017 Matterport, Inc. Licensed under the MIT License (see LICENSE for details) Written by Waleed Abdulla """ import numpy as np import tensorflow as tf import keras.backend as KB import keras.layers as KL import keras.initiali...
[ 37811, 198, 45195, 371, 12, 18474, 198, 27354, 292, 316, 5499, 290, 6097, 13, 198, 198, 15269, 357, 66, 8, 2177, 16900, 634, 11, 3457, 13, 198, 26656, 15385, 739, 262, 17168, 13789, 357, 3826, 38559, 24290, 329, 3307, 8, 198, 25354, ...
2.28989
2,463
import numpy as np import pandas as pd import matplotlib.pyplot as plt import seaborn as sns def plot_well_map(df_logs, fig_size=(10, 10)): """ Simple map of locations of nearby wells """ f, ax = plt.subplots(figsize=fig_size) df = df_logs.drop_duplicates(subset=['HACKANAME', 'X', 'Y']) plt.scatter...
[ 11748, 299, 32152, 355, 45941, 198, 11748, 19798, 292, 355, 279, 67, 198, 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 198, 11748, 384, 397, 1211, 355, 3013, 82, 628, 198, 4299, 7110, 62, 4053, 62, 8899, 7, 7568, 62, 640...
2.024482
1,062
#!/usr/bin/env python """ cc_plugin_eustace.eustace_global_attrs Compliance Test Suite: Check core global attributes in EUSTACE files """ import os from netCDF4 import Dataset # Import base objects from compliance checker from compliance_checker.base import Result, BaseNCCheck, GenericFile # Restrict which vocabs w...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 37811, 198, 535, 62, 33803, 62, 68, 436, 558, 13, 68, 436, 558, 62, 20541, 62, 1078, 3808, 198, 198, 38143, 3610, 6208, 26264, 25, 6822, 4755, 3298, 12608, 287, 4576, 2257, 11598, 36...
3.121795
156
import unittest import translator if __name__ == "__main__": unittest.main()
[ 11748, 555, 715, 395, 198, 11748, 33417, 198, 220, 220, 220, 220, 198, 361, 11593, 3672, 834, 6624, 366, 834, 12417, 834, 1298, 198, 220, 220, 220, 555, 715, 395, 13, 12417, 3419 ]
2.575758
33
s1 = Student("Harry", 12) # access instance variables print('Student:', s1.name, s1.age) # access class variable print('School name:', Student.school_name) # Modify instance variables s1.name = 'Jessa' s1.age = 14 print('Student:', s1.name, s1.age) # Modify class variables Student.school_name = 'XYZ School' print(...
[ 198, 198, 82, 16, 796, 13613, 7203, 18308, 1600, 1105, 8, 198, 2, 1895, 4554, 9633, 198, 4798, 10786, 38778, 25, 3256, 264, 16, 13, 3672, 11, 264, 16, 13, 496, 8, 198, 198, 2, 1895, 1398, 7885, 198, 4798, 10786, 26130, 1438, 25, ...
2.879032
124
# -*- coding: utf-8 -*- from . import base from .audit_log import * from .channel import * from .emoji import * from .gateway import * from .guild import * from .invite import * from .oauth import * from .user import * from .voice import * from .webhook import *
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 6738, 764, 1330, 2779, 198, 6738, 764, 3885, 270, 62, 6404, 1330, 1635, 198, 6738, 764, 17620, 1330, 1635, 198, 6738, 764, 368, 31370, 1330, 1635, 198, 6738, 764, ...
2.966292
89
#!/usr/bin/python # -*- coding: utf-8 -*- import os import datetime import hamster.client import reports import argparse import pdfkit import gettext gettext.install('brainz', '../datas/translations/') # custom settings: reportTitle = "My Activities Report" activityFilter = "unfiled" # find dates: today = datetime...
[ 2, 48443, 14629, 14, 8800, 14, 29412, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 11748, 28686, 198, 11748, 4818, 8079, 198, 11748, 8891, 1706, 13, 16366, 198, 11748, 3136, 198, 11748, 1822, 29572, 198, ...
3.100559
537
from functools import wraps # created by PL # git hello world if __name__ == '__main__': s = SingleTon(1) t = SingleTon(2) print (s is t) print (s.a, t.a) print (s.val, t.val) print ('test') print ("git test")
[ 6738, 1257, 310, 10141, 1330, 27521, 201, 198, 2, 2727, 416, 9297, 201, 198, 2, 17606, 23748, 995, 201, 198, 201, 198, 201, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 201, 198, 220, 220, 220, 264, 796, 14206, 354...
2.127119
118
# Custo da viagem distancia = float(input('Qual a distncia da sua viagem? ')) valor1 = distancia * 0.5 valor2 = distancia * 0.45 print('Voc est prestes a comear uma viagem de {}Km/h.'.format(distancia)) if distancia <= 200: print('O preo de sua passagem ser de R${:.2f}.'.format(valor1)) else: print('O preo de s...
[ 2, 40619, 78, 12379, 25357, 363, 368, 198, 17080, 1192, 544, 796, 12178, 7, 15414, 10786, 46181, 257, 1233, 10782, 544, 12379, 424, 64, 25357, 363, 368, 30, 705, 4008, 198, 2100, 273, 16, 796, 1233, 1192, 544, 1635, 657, 13, 20, 198...
2.2875
160
"""Difference classes.""" __all__ = [ 'BaseDifference', 'Missing', 'Extra', 'Invalid', 'Deviation', ] from cmath import isnan from datetime import timedelta from ._compatibility.builtins import * from ._compatibility import abc from ._compatibility.contextlib import suppress from ._utils import _...
[ 37811, 28813, 1945, 6097, 526, 15931, 198, 198, 834, 439, 834, 796, 685, 198, 220, 220, 220, 705, 14881, 28813, 1945, 3256, 198, 220, 220, 220, 705, 43730, 3256, 198, 220, 220, 220, 705, 27726, 3256, 198, 220, 220, 220, 705, 44651, ...
2.526844
1,695
from django.conf.urls import include, url, re_path from rest_framework import routers from . import views urlpatterns = [ re_path(r"^api/dashboard/(?P<slug>[a-zA-Z0-9-_]+)/versiontime", views.get_last_processed_time), re_path(r"^api/dashboard/(?P<slug>[a-zA-Z0-9-_]+)/players", views.get_player_list), re_p...
[ 6738, 42625, 14208, 13, 10414, 13, 6371, 82, 1330, 2291, 11, 19016, 11, 302, 62, 6978, 198, 6738, 1334, 62, 30604, 1330, 41144, 198, 198, 6738, 764, 1330, 5009, 198, 198, 6371, 33279, 82, 796, 685, 198, 220, 220, 220, 302, 62, 6978,...
1.980449
1,381
from typing import Any, Dict, List, Sequence import numpy as np import torch from detectron2.engine import DefaultPredictor
[ 6738, 19720, 1330, 4377, 11, 360, 713, 11, 7343, 11, 45835, 198, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 28034, 198, 6738, 4886, 1313, 17, 13, 18392, 1330, 15161, 47, 17407, 273, 628 ]
3.705882
34
from user_agent2.base import ( generate_user_agent, generate_navigator, generate_navigator_js, )
[ 6738, 2836, 62, 25781, 17, 13, 8692, 1330, 357, 198, 220, 220, 220, 7716, 62, 7220, 62, 25781, 11, 198, 220, 220, 220, 7716, 62, 28341, 23823, 11, 198, 220, 220, 220, 7716, 62, 28341, 23823, 62, 8457, 11, 198, 8, 198 ]
2.595238
42
import glob import random import uuid import numpy as np from multiprocessing import Pool from sklearn.metrics import ( recall_score, precision_score, accuracy_score, f1_score, mean_squared_error) from mutagene.io.profile import read_profile_file, write_profile, read_signatures from mutagene.signatures.identify i...
[ 11748, 15095, 198, 11748, 4738, 198, 11748, 334, 27112, 198, 11748, 299, 32152, 355, 45941, 198, 198, 6738, 18540, 305, 919, 278, 1330, 19850, 198, 6738, 1341, 35720, 13, 4164, 10466, 1330, 357, 198, 220, 220, 220, 10014, 62, 26675, 11,...
3.263804
163
# -*- coding: utf-8 -*- # Generated by Django 1.10.5 on 2017-02-01 13:47 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 2980, 515, 416, 37770, 352, 13, 940, 13, 20, 319, 2177, 12, 2999, 12, 486, 1511, 25, 2857, 198, 6738, 11593, 37443, 834, 1330, 28000, 1098, 62, 17201, 874, 198, 1...
2.73913
69
import argparse import os import sys from ckl.values import ( ValueList, ValueString, NULL ) from ckl.errors import ( CklSyntaxError, CklRuntimeError ) from ckl.interpreter import Interpreter if __name__ == "__main__": main()
[ 11748, 1822, 29572, 198, 11748, 28686, 198, 11748, 25064, 198, 198, 6738, 269, 41582, 13, 27160, 1330, 357, 198, 220, 220, 220, 11052, 8053, 11, 198, 220, 220, 220, 11052, 10100, 11, 198, 220, 220, 220, 15697, 198, 8, 198, 6738, 269, ...
2.565657
99
import datetime import fnmatch import hashlib import json import time import arrow import os from botocore.exceptions import ClientError from boto.s3.key import Key from security_monkey.alerters import custom_alerter from security_monkey.common.sts_connect import connect from security_monkey import app, db from securi...
[ 11748, 4818, 8079, 198, 11748, 24714, 15699, 198, 11748, 12234, 8019, 198, 11748, 33918, 198, 11748, 640, 198, 11748, 15452, 198, 11748, 28686, 198, 198, 6738, 10214, 420, 382, 13, 1069, 11755, 1330, 20985, 12331, 198, 6738, 275, 2069, 13...
3.675
120
# noinspection PyPackageRequirements from telegram import InlineKeyboardMarkup, InlineKeyboardButton
[ 2, 645, 1040, 14978, 9485, 27813, 42249, 198, 6738, 573, 30536, 1330, 554, 1370, 9218, 3526, 9704, 929, 11, 554, 1370, 9218, 3526, 21864, 628 ]
4.08
25
import urllib2 import json FAKE_PACKAGES = ( 'south', 'django-debug-toolbar', 'django-extensions', 'django-social-auth', ) fetcher = GuitarWebAPI('http://localhost:8000/api/v1/')
[ 11748, 2956, 297, 571, 17, 198, 11748, 33918, 198, 198, 7708, 7336, 62, 47, 8120, 25552, 796, 357, 198, 220, 220, 220, 705, 35782, 3256, 198, 220, 220, 220, 705, 28241, 14208, 12, 24442, 12, 25981, 5657, 3256, 198, 220, 220, 220, 70...
2.313953
86
import zipfile from getpass import getpass import os import stat import tempfile from os import path from .crypto import encrypt
[ 11748, 19974, 7753, 198, 6738, 651, 6603, 1330, 651, 6603, 198, 198, 11748, 28686, 198, 11748, 1185, 198, 11748, 20218, 7753, 198, 6738, 28686, 1330, 3108, 198, 198, 6738, 764, 29609, 78, 1330, 34117, 628 ]
3.771429
35
from typing import List #
[ 6738, 19720, 1330, 7343, 628, 198, 2, 220, 198, 220, 220, 220, 220, 220, 220, 220, 220 ]
2.176471
17
""" File: pages/page.py Author: Luke Mason Description: Main part of the application, the actual graph page. """ # Application imports from message import log, error, success from settings import APP_NAME, COLOR, FONT, FONT_SIZE, SCREEN_WIDTH, SCREEN_HEIGHT, WIDTH, HEIGHT, PAD, _QUIT from sprites.vertex import Vertex ...
[ 37811, 198, 8979, 25, 5468, 14, 7700, 13, 9078, 198, 13838, 25, 11336, 14737, 198, 198, 11828, 25, 8774, 636, 286, 262, 3586, 11, 262, 4036, 4823, 2443, 13, 198, 37811, 198, 2, 15678, 17944, 198, 6738, 3275, 1330, 2604, 11, 4049, 11...
3.080569
211
import brownie
[ 11748, 7586, 494, 628 ]
4
4
# Filenames : <tahm1d> # Python bytecode : 2.7 # Time decompiled : Thu Sep 10 23:29:38 2020 # Selector <module> in line 4 file <tahm1d> # Timestamp in code: 2020-09-02 17:33:14 import os, sys, time from os import system from time import sleep if __name__ == '__main__': menu()
[ 2, 7066, 268, 1047, 1058, 1279, 83, 993, 76, 16, 67, 29, 198, 2, 11361, 18022, 8189, 1058, 362, 13, 22, 198, 2, 3862, 38237, 3902, 1058, 26223, 8621, 838, 2242, 25, 1959, 25, 2548, 12131, 198, 2, 9683, 273, 1279, 21412, 29, 287, ...
2.623853
109