content
stringlengths
1
1.05M
input_ids
listlengths
1
883k
ratio_char_token
float64
1
22.9
token_count
int64
1
883k
from sphinx import cmdline import sys cmdline.main(sys.argv)
[ 6738, 599, 20079, 87, 1330, 23991, 1370, 198, 11748, 25064, 198, 198, 28758, 1370, 13, 12417, 7, 17597, 13, 853, 85, 8, 198 ]
2.695652
23
import logging from .store.user import User from .errors import SlackInactiveDispatcher, SlackNoThread logger = logging.getLogger(__name__)
[ 11748, 18931, 198, 198, 6738, 764, 8095, 13, 7220, 1330, 11787, 198, 6738, 764, 48277, 1330, 36256, 818, 5275, 7279, 8071, 2044, 11, 36256, 2949, 16818, 198, 198, 6404, 1362, 796, 18931, 13, 1136, 11187, 1362, 7, 834, 3672, 834, 8, 62...
3.404762
42
import warnings warnings.filterwarnings('ignore') #ignore warnings to print values properly import logging import pandas as pd import numpy as np import matplotlib.pyplot as plt from matplotlib.colors import ListedColormap from sklearn.model_selection import train_test_split from sklearn.tree import DecisionTreeClassif...
[ 11748, 14601, 198, 40539, 654, 13, 24455, 40539, 654, 10786, 46430, 11537, 1303, 46430, 14601, 284, 3601, 3815, 6105, 198, 11748, 18931, 198, 11748, 19798, 292, 355, 279, 67, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 2603, 29487, 80...
3.748148
135
from typing import Dict, List mtbs_colormaps: Dict[str, Dict[int, List[int]]] = { "mtbs-severity": { 0: [0, 0, 0, 0], 1: [0, 100, 0, 255], 2: [127, 255, 212, 255], 3: [255, 255, 0, 255], 4: [255, 0, 0, 255], 5: [127, 255, 0, 255], 6: [255, 255, 255, 255], ...
[ 6738, 19720, 1330, 360, 713, 11, 7343, 198, 198, 16762, 1443, 62, 4033, 579, 1686, 25, 360, 713, 58, 2536, 11, 360, 713, 58, 600, 11, 7343, 58, 600, 11907, 60, 796, 1391, 198, 220, 220, 220, 366, 16762, 1443, 12, 28116, 414, 1298,...
1.752688
186
import sys from app import app, socketio if __name__ == "__main__": if len(sys.argv) > 1: port = int(sys.argv[1]) else: port=5000 socketio.run(app, host="0.0.0.0", port=port)
[ 11748, 25064, 198, 198, 6738, 598, 1330, 598, 11, 17802, 952, 198, 198, 361, 11593, 3672, 834, 6624, 366, 834, 12417, 834, 1298, 198, 197, 361, 18896, 7, 17597, 13, 853, 85, 8, 1875, 352, 25, 198, 197, 197, 634, 796, 493, 7, 17597...
2.204819
83
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import sys import numpy as np import pylab as pl from txtTools import openIOFile # =*=*=*=* FUNCTION DEFINITIONS *=*=*=*=*=*=*=*=*=*=*=* # =*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=* try: factor = sys.argv[1] except: factor = 1. factor = float(factor) f =...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 11748, 25064, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 279, 2645, 397, 355, 458, 198, 6738, 256, 742, 33637,...
1.897375
419
import unittest from fluentcheck import Is from fluentcheck.exceptions import CheckError # noinspection PyStatementEffect
[ 11748, 555, 715, 395, 198, 6738, 43472, 9122, 1330, 1148, 198, 6738, 43472, 9122, 13, 1069, 11755, 1330, 6822, 12331, 628, 198, 2, 645, 1040, 14978, 9485, 48682, 18610, 198 ]
4.133333
30
# Generated by Django 2.0.2 on 2018-02-18 17:06 from django.db import migrations, models
[ 2, 2980, 515, 416, 37770, 362, 13, 15, 13, 17, 319, 2864, 12, 2999, 12, 1507, 1596, 25, 3312, 198, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 11, 4981, 628 ]
2.84375
32
from django.db import models from django.core.exceptions import ValidationError from rest_framework.exceptions import ValidationError as DRFValidationError from api.models import TimestampedModel
[ 6738, 42625, 14208, 13, 9945, 1330, 4981, 198, 6738, 42625, 14208, 13, 7295, 13, 1069, 11755, 1330, 3254, 24765, 12331, 198, 6738, 1334, 62, 30604, 13, 1069, 11755, 1330, 3254, 24765, 12331, 355, 10560, 37, 7762, 24765, 12331, 198, 198, ...
3.96
50
"""Box for specifying initial guess for the fitting algorithm.""" from typing import Callable, List, Optional import numpy as np import toga from eddington import EddingtonException from toga.style import Pack from eddington_gui.boxes.line_box import LineBox from eddington_gui.consts import SMALL_INPUT_WIDTH
[ 37811, 14253, 329, 31577, 4238, 4724, 329, 262, 15830, 11862, 526, 15931, 198, 6738, 19720, 1330, 4889, 540, 11, 7343, 11, 32233, 198, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 284, 4908, 198, 6738, 1225, 67, 9557, 1330, 1717, 67,...
3.516854
89
""" examples.select =============== An example that demonstrates the Select child class. """ from cues.cues import Select if __name__ == '__main__': main()
[ 37811, 198, 1069, 12629, 13, 19738, 198, 25609, 18604, 198, 198, 2025, 1672, 326, 15687, 262, 9683, 1200, 1398, 13, 198, 37811, 198, 198, 6738, 25288, 13, 66, 947, 1330, 9683, 628, 198, 198, 361, 11593, 3672, 834, 6624, 705, 834, 1241...
3.235294
51
import json import unittest from functools import partial import ckan.model as model import responses from ckanext.satreasury.plugin import SATreasuryDatasetPlugin from mock import MagicMock, Mock, PropertyMock, patch TRAVIS_ENDPOINT = "https://api.travis-ci.org/repo/vulekamali%2Fstatic-budget-portal" TRAVIS_COMMIT_M...
[ 11748, 33918, 198, 11748, 555, 715, 395, 198, 6738, 1257, 310, 10141, 1330, 13027, 198, 198, 11748, 269, 27541, 13, 19849, 355, 2746, 198, 11748, 9109, 198, 6738, 269, 74, 1531, 742, 13, 82, 10562, 11579, 13, 33803, 1330, 29020, 260, ...
2.776398
161
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Routines to evaluate the system. """ import logging from collections import Counter from . import db logger = logging.getLogger(__name__) def get_exhaustive_samples(corpus_tag): """ Use the document_sample table to get which documents have been exhaustively...
[ 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, 49, 448, 1127, 284, 13446, 262, 1080, 13, 198, 37811, 198, 198, 11748, 18931, 198, 6738, 17268, 1330, ...
2.429907
321
#! /usr/bin/env python import os import sys from .api import install as install_mmd def model_data_dir(name, datarootdir=None): """Get a model's data dir. Parameters ---------- name : str The name of the model. Returns ------- str The absolute path to the data directory ...
[ 2, 0, 1220, 14629, 14, 8800, 14, 24330, 21015, 198, 11748, 28686, 198, 11748, 25064, 198, 198, 6738, 764, 15042, 1330, 2721, 355, 2721, 62, 3020, 67, 628, 198, 4299, 2746, 62, 7890, 62, 15908, 7, 3672, 11, 4818, 283, 1025, 15908, 28...
2.577778
180
#!/usr/bin/python3 import os import subprocess import re import pymysql from datetime import datetime strPath = r"/etc/webmin/servers";# file dir files = os.listdir(strPath) lists = [];# file lists host = []; user = []; pwd = []; val = 0;# extractServer use test = "";# grep host test1 = "";# grep user test2 = "";# gre...
[ 2, 48443, 14629, 14, 8800, 14, 29412, 18, 198, 11748, 28686, 198, 11748, 850, 14681, 198, 11748, 302, 198, 11748, 279, 4948, 893, 13976, 198, 6738, 4818, 8079, 1330, 4818, 8079, 198, 198, 2536, 15235, 796, 374, 1, 14, 14784, 14, 12384...
2.214351
3,275
"""Tree level width module.""" from collections import deque def tree_level_width(tree): """Return a list containing the width of each level of the specified tree.""" result = [] count = 0 queue = deque([tree.root, "s"]) while len(queue) > 0: node = queue.popleft() if node == "s": ...
[ 37811, 27660, 1241, 9647, 8265, 526, 15931, 198, 198, 6738, 17268, 1330, 390, 4188, 198, 198, 4299, 5509, 62, 5715, 62, 10394, 7, 21048, 2599, 198, 220, 220, 220, 37227, 13615, 257, 1351, 7268, 262, 9647, 286, 1123, 1241, 286, 262, 73...
2.053191
282
import os import unittest import clib from clib.utils import Box if __name__ == '__main__': unittest.main()
[ 11748, 28686, 198, 11748, 555, 715, 395, 198, 198, 11748, 537, 571, 198, 6738, 537, 571, 13, 26791, 1330, 8315, 628, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 198, 220, 220, 220, 555, 715, 395, 13, 12417, 3419, ...
2.674419
43
# coding: utf-8 """ IriusRisk API Products API # noqa: E501 OpenAPI spec version: 1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import import re # noqa: F401 # python 2 and python 3 compatibility library import six from iriusrisk_py...
[ 2, 19617, 25, 3384, 69, 12, 23, 198, 198, 37811, 198, 220, 220, 220, 314, 48969, 49, 1984, 7824, 628, 220, 220, 220, 18675, 7824, 220, 1303, 645, 20402, 25, 412, 33548, 628, 220, 220, 220, 4946, 17614, 1020, 2196, 25, 352, 198, 22...
2.807692
130
# This file is placed in the Public Domain. import queue import threading from .dpt import Dispatcher from .obj import Object from .thr import launch from .utl import get_exception
[ 2, 770, 2393, 318, 4624, 287, 262, 5094, 20021, 13, 628, 198, 11748, 16834, 198, 11748, 4704, 278, 628, 198, 6738, 764, 67, 457, 1330, 3167, 8071, 2044, 198, 6738, 764, 26801, 1330, 9515, 198, 6738, 764, 400, 81, 1330, 4219, 198, 67...
3.576923
52
import json import logging from io import BytesIO from typing import List from typing import Optional import matplotlib.pyplot as plt import pandas as pd import seaborn as sns from telegram import InputMediaPhoto def _unpack_telegram_document(update) -> dict: """ This function retrieves JSONrepresentation o...
[ 11748, 33918, 198, 11748, 18931, 198, 6738, 33245, 1330, 2750, 4879, 9399, 198, 6738, 19720, 1330, 7343, 198, 6738, 19720, 1330, 32233, 198, 198, 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 198, 11748, 19798, 292, 355, 279, ...
2.593897
426
# coding=UTF-8 # ex:ts=4:sw=4:et=on # Copyright (c) 2013, Mathijs Dumon # All rights reserved. # Complete license can be found in the LICENSE file. from io import StringIO from scipy.optimize import fmin_l_bfgs_b from .exceptions import wrap_exceptions
[ 2, 19617, 28, 48504, 12, 23, 198, 2, 409, 25, 912, 28, 19, 25, 2032, 28, 19, 25, 316, 28, 261, 198, 198, 2, 15069, 357, 66, 8, 2211, 11, 16320, 2926, 82, 30933, 261, 198, 2, 1439, 2489, 10395, 13, 198, 2, 13248, 5964, 460, 3...
2.793478
92
import functools
[ 11748, 1257, 310, 10141, 628 ]
3.6
5
# encoding: UTF-8 from __future__ import print_function import sys try: reload(sys) # Python 2 sys.setdefaultencoding('utf8') except NameError: pass # Python 3 import multiprocessing from time import sleep from datetime import datetime, time from cyvn.trader.vtEvent import EVENT_LOG, EVENT_REC...
[ 2, 21004, 25, 41002, 12, 23, 628, 198, 198, 6738, 11593, 37443, 834, 1330, 3601, 62, 8818, 198, 11748, 25064, 198, 28311, 25, 198, 220, 220, 220, 18126, 7, 17597, 8, 220, 1303, 11361, 362, 198, 220, 220, 220, 25064, 13, 2617, 12286,...
2.19635
1,370
# Python3 a, b = [int(i) for i in input().split()] if a>b: gcd = euclid_gcd(a, b) else: gcd = euclid_gcd(b, a) print(a*b//gcd)
[ 2, 11361, 18, 198, 198, 64, 11, 275, 796, 685, 600, 7, 72, 8, 329, 1312, 287, 5128, 22446, 35312, 3419, 60, 198, 198, 361, 257, 29, 65, 25, 198, 220, 220, 220, 308, 10210, 796, 304, 36616, 312, 62, 70, 10210, 7, 64, 11, 275, ...
1.734177
79
import os current_dir = os.path.dirname(os.path.realpath(__file__)) import gym from gym.envs.registration import registry, make, spec register(id="RandomWalkEnv-v0", entry_point="environments.mocap_envs:RandomWalkEnv") register(id="TargetEnv-v0", entry_point="environments.mocap_envs:TargetEnv") register(id="Joysti...
[ 11748, 28686, 198, 198, 14421, 62, 15908, 796, 28686, 13, 6978, 13, 15908, 3672, 7, 418, 13, 6978, 13, 5305, 6978, 7, 834, 7753, 834, 4008, 198, 198, 11748, 11550, 198, 6738, 11550, 13, 268, 14259, 13, 2301, 33397, 1330, 20478, 11, ...
2.644231
208
import datetime from django.test import TestCase from libya_elections.utils import at_noon
[ 11748, 4818, 8079, 198, 198, 6738, 42625, 14208, 13, 9288, 1330, 6208, 20448, 198, 6738, 9195, 3972, 62, 9509, 507, 13, 26791, 1330, 379, 62, 6357, 628 ]
3.444444
27
from django.conf.urls import url from website.apps.statistics.views import statistics urlpatterns = [ url(r'^$', statistics, name="statistics"), ]
[ 6738, 42625, 14208, 13, 10414, 13, 6371, 82, 1330, 19016, 198, 198, 6738, 3052, 13, 18211, 13, 14269, 3969, 13, 33571, 1330, 7869, 198, 198, 6371, 33279, 82, 796, 685, 198, 220, 220, 220, 19016, 7, 81, 6, 61, 3, 3256, 7869, 11, 14...
3
51
from skimage import measure import pydicom from pydicom.dataset import Dataset, FileDataset from pydicom.sequence import Sequence import os import numpy as np import SimpleITK as sITK import time import glob import sitk_ct_io as imio from skimage.draw import polygon # for debugging # import matplotlib.p...
[ 6738, 1341, 9060, 1330, 3953, 201, 198, 11748, 279, 5173, 291, 296, 201, 198, 6738, 279, 5173, 291, 296, 13, 19608, 292, 316, 1330, 16092, 292, 316, 11, 9220, 27354, 292, 316, 201, 198, 6738, 279, 5173, 291, 296, 13, 43167, 1330, 45...
2.73913
138
# -*- coding: utf-8 -*- """ Created on Mon Apr 20 14:03:18 2020 @author: Nicolai """ import sys sys.path.append("../differential_evolution") from JADE import JADE import numpy as np import scipy as sc import testFunctions as tf def downhillsimplex(population, function, minError, maxFeval): ''' implementatio...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 198, 41972, 319, 2892, 2758, 1160, 1478, 25, 3070, 25, 1507, 12131, 198, 198, 31, 9800, 25, 40513, 1872, 198, 37811, 198, 198, 11748, 25064, 198, 17597, 13, 6978,...
2.251429
1,050
from selenium import webdriver from selenium.webdriver.common.keys import Keys import time import random import pandas as pd import os
[ 6738, 384, 11925, 1505, 1330, 3992, 26230, 198, 6738, 384, 11925, 1505, 13, 12384, 26230, 13, 11321, 13, 13083, 1330, 26363, 198, 11748, 640, 198, 11748, 4738, 198, 11748, 19798, 292, 355, 279, 67, 198, 11748, 28686, 628 ]
3.578947
38
""" Geological features """ import logging import numpy as np logger = logging.getLogger(__name__)
[ 37811, 198, 10082, 2770, 3033, 198, 37811, 198, 11748, 18931, 198, 198, 11748, 299, 32152, 355, 45941, 198, 198, 6404, 1362, 796, 18931, 13, 1136, 11187, 1362, 7, 834, 3672, 834, 8, 628, 198, 220, 220, 220, 220 ]
2.815789
38
from typing import Set import utils data = utils.getLinesFromFile("day8.input") # data = ['be cfbegad cbdgef fgaecd cgeb fdcge agebfd fecdb fabcd edb | fdgacbe cefdb cefbgd gcbe','edbfga begcd cbg gc gcadebf fbgde acbgfd abcde gfcbed gfec | fcgedb cgb dgebacf gc','fgaebd cg bdaec gdafb agbcfd gdcbef bgcad gfac gcb cdg...
[ 6738, 19720, 1330, 5345, 198, 11748, 3384, 4487, 198, 7890, 796, 3384, 4487, 13, 1136, 43, 1127, 4863, 8979, 7203, 820, 23, 13, 15414, 4943, 198, 198, 2, 1366, 796, 37250, 1350, 30218, 1350, 70, 324, 269, 17457, 469, 69, 277, 4908, ...
2.043333
600
num1 = 5 num2 = 4 max_num = max(num1,num2) print("Max between {0} and {1} is {2}".format(num1,num2,max_num))
[ 22510, 16, 796, 642, 198, 22510, 17, 796, 604, 198, 9806, 62, 22510, 796, 3509, 7, 22510, 16, 11, 22510, 17, 8, 198, 4798, 7203, 11518, 1022, 1391, 15, 92, 290, 1391, 16, 92, 318, 1391, 17, 92, 1911, 18982, 7, 22510, 16, 11, 225...
2.117647
51
# ANOVA example from Sokal & Rohlf (fourth ed.), Box 11.1 import numpy as np from anova import anova_twoway_balanced consumption = np.array( [[[709, 679, 699], [592, 538, 476]], [[657, 594, 677], [508, 505, 539]]]) result = anova_twoway_balanced(consumption) print(result)
[ 2, 3537, 41576, 1672, 422, 37641, 282, 1222, 32694, 1652, 357, 49393, 1225, 12179, 8315, 1367, 13, 16, 198, 198, 11748, 299, 32152, 355, 45941, 198, 6738, 281, 10071, 1330, 281, 10071, 62, 4246, 41788, 62, 27753, 628, 198, 5936, 24098, ...
2.365079
126
""" Optimizers class """ import torch import torch.optim as optim from torch.nn.utils import clip_grad_norm_ import operator import functools from copy import copy from math import sqrt def noam_decay(step, warmup_steps, model_size): """ Learning rate schedule described in https://arxiv.org/pdf/1706.037...
[ 37811, 30011, 11341, 1398, 37227, 198, 11748, 28034, 198, 11748, 28034, 13, 40085, 355, 6436, 198, 6738, 28034, 13, 20471, 13, 26791, 1330, 10651, 62, 9744, 62, 27237, 62, 198, 11748, 10088, 198, 11748, 1257, 310, 10141, 198, 6738, 4866, ...
2.541841
478
import inspect # class Meta(type): # def __new__(meta, name, bases, attr): # """Meta description of class definition""" # return super(Meta, meta).__new__(meta, name, bases, attr) # def __init__(cls, name, bases, attr, compound): # """ Meta intervention on class instantiation """ # return super(Meta, cls...
[ 11748, 10104, 628, 628, 198, 2, 1398, 30277, 7, 4906, 2599, 198, 197, 2, 825, 11593, 3605, 834, 7, 28961, 11, 1438, 11, 12536, 11, 708, 81, 2599, 198, 197, 2, 220, 197, 37811, 48526, 6764, 286, 1398, 6770, 37811, 198, 197, 2, 220,...
2.778409
176
from django.contrib import admin from .models import Product from .forms import CreateProductForm # Improves upon the basic admin page functionality by # displaying the database as a formatted table admin.site.register(Product, CreateProductAdmin)
[ 6738, 42625, 14208, 13, 3642, 822, 1330, 13169, 198, 6738, 764, 27530, 1330, 8721, 198, 6738, 764, 23914, 1330, 13610, 15667, 8479, 198, 198, 2, 12205, 1158, 2402, 262, 4096, 13169, 2443, 11244, 416, 198, 2, 220, 220, 19407, 262, 6831, ...
4.163934
61
#!/usr/bin/python3 import unittest from unittest.mock import patch from keyman_config.gnome_keyboards_util import is_gnome_shell, _reset_gnome_shell if __name__ == '__main__': unittest.main()
[ 2, 48443, 14629, 14, 8800, 14, 29412, 18, 198, 11748, 555, 715, 395, 198, 6738, 555, 715, 395, 13, 76, 735, 1330, 8529, 198, 198, 6738, 1994, 805, 62, 11250, 13, 4593, 462, 62, 2539, 12821, 62, 22602, 1330, 318, 62, 4593, 462, 62,...
2.597403
77
"""This contains all of the forms used by the Users application.""" # Django Imports from django.contrib.admin.widgets import FilteredSelectMultiple from django.contrib.auth import forms, get_user_model from django.contrib.auth.forms import UserChangeForm from django.contrib.auth.models import Group from django.core.e...
[ 37811, 1212, 4909, 477, 286, 262, 5107, 973, 416, 262, 18987, 3586, 526, 15931, 198, 198, 2, 37770, 1846, 3742, 198, 6738, 42625, 14208, 13, 3642, 822, 13, 28482, 13, 28029, 11407, 1330, 7066, 4400, 17563, 31217, 198, 6738, 42625, 14208...
3.679144
187
import numpy as np import scipy.linalg as la from statsmodels.tsa.api import SimpleExpSmoothing, Holt """ @desc: From activity probe, calculate spike patterns """ """ @desc: Calculate cross correlation between spike trains of two neurons """ """ @desc: Filter spike train @pars: spikeTrain: has N rows (number of neur...
[ 11748, 299, 32152, 355, 45941, 198, 11748, 629, 541, 88, 13, 75, 1292, 70, 355, 8591, 198, 6738, 9756, 27530, 13, 912, 64, 13, 15042, 1330, 17427, 16870, 7556, 1025, 722, 11, 28330, 198, 198, 37811, 198, 31, 20147, 25, 3574, 3842, 1...
3.455814
215
lanche = ('Hamburguer', 'Suco', 'Pizza', 'Pudim') for c in range(0, len(lanche)): print(lanche[c])
[ 75, 6362, 796, 19203, 39, 4131, 3686, 15573, 3256, 705, 5606, 1073, 3256, 705, 47, 9990, 3256, 705, 47, 463, 320, 11537, 198, 1640, 269, 287, 2837, 7, 15, 11, 18896, 7, 75, 6362, 8, 2599, 198, 220, 220, 220, 3601, 7, 75, 6362, 5...
2.170213
47
SOAP_HOST = '127.0.0.1' SOAP_PORT = 8083
[ 15821, 2969, 62, 39, 10892, 796, 705, 16799, 13, 15, 13, 15, 13, 16, 6, 201, 198, 15821, 2969, 62, 15490, 796, 41241, 18, 201, 198 ]
1.653846
26
from visualize import pprint
[ 6738, 38350, 1330, 279, 4798, 198 ]
4.833333
6
# -*- coding: utf-8 -*- # Generated by Django 1.11.5 on 2017-12-02 20:04 from __future__ import unicode_literals from django.db import migrations, models
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 2980, 515, 416, 37770, 352, 13, 1157, 13, 20, 319, 2177, 12, 1065, 12, 2999, 1160, 25, 3023, 198, 6738, 11593, 37443, 834, 1330, 28000, 1098, 62, 17201, 874, 198, ...
2.736842
57
import unittest from hamcrest import equal_to, assert_that from structural.adapter.adapter import InvokerTargetAdapter from structural.adapter.target import InvokerTarget
[ 11748, 555, 715, 395, 198, 6738, 8891, 66, 2118, 1330, 4961, 62, 1462, 11, 6818, 62, 5562, 198, 6738, 13204, 13, 324, 3429, 13, 324, 3429, 1330, 10001, 11020, 21745, 47307, 198, 6738, 13204, 13, 324, 3429, 13, 16793, 1330, 10001, 1102...
3.844444
45
import re # "degree CS": print reverse_str(" CS degree") print reverse_str("CS degree") print reverse_str("CS degree ") print reverse_str(" CS degree")
[ 11748, 302, 198, 198, 2, 366, 16863, 9429, 1298, 198, 4798, 9575, 62, 2536, 7203, 220, 220, 9429, 4922, 4943, 198, 4798, 9575, 62, 2536, 7203, 7902, 220, 220, 220, 4922, 4943, 198, 4798, 9575, 62, 2536, 7203, 7902, 4922, 220, 220, 3...
2.813559
59
"""Unit test package for Design."""
[ 37811, 26453, 1332, 5301, 329, 8495, 526, 15931, 198 ]
4
9
# Generated by Django 2.1.3 on 2019-05-05 07:38 from django.db import migrations, models
[ 2, 2980, 515, 416, 37770, 362, 13, 16, 13, 18, 319, 13130, 12, 2713, 12, 2713, 8753, 25, 2548, 198, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 11, 4981, 628 ]
2.84375
32
from ..annotation.attribute import Attribute from ..annotation.relation import Relation from .knowledge_graph_edge import KnowledgeGraphEdge from ontology_learning.utils.hash import get_hash
[ 6738, 11485, 1236, 14221, 13, 42348, 1330, 3460, 4163, 198, 6738, 11485, 1236, 14221, 13, 49501, 1330, 4718, 341, 198, 6738, 764, 45066, 62, 34960, 62, 14907, 1330, 20414, 37065, 37021, 198, 6738, 39585, 1435, 62, 40684, 13, 26791, 13, ...
4.222222
45
from neopixel import Color import time
[ 6738, 497, 404, 7168, 1330, 5315, 198, 11748, 640, 628 ]
4
10
'''Problem 29 from project Euler: Distinct powers https://projecteuler.net/problem=29''' RESULT = 9183 def solve(): '''Main function''' vals = set() limit = 100 for i in xrange(2, limit + 1): for j in xrange(2, limit + 1): vals.add(i**j) return len(vals) if __name__ == '__...
[ 7061, 6, 40781, 2808, 422, 1628, 412, 18173, 25, 4307, 4612, 5635, 198, 5450, 1378, 16302, 68, 18173, 13, 3262, 14, 45573, 28, 1959, 7061, 6, 628, 198, 19535, 16724, 796, 860, 24839, 628, 198, 4299, 8494, 33529, 198, 220, 220, 220, ...
2.313333
150
import asyncio from pyrogram.raw import functions from pyrogram.types import Message from tronx import app, gen app.CMD_HELP.update( {"group" : ( "group", { "bgroup [group name]" : "Creates a basic group.", "sgroup [group name]" : "Creates a super group.", "unread" : "Mark a chat as unread in your tele...
[ 11748, 30351, 952, 198, 198, 6738, 12972, 39529, 13, 1831, 1330, 5499, 198, 6738, 12972, 39529, 13, 19199, 1330, 16000, 198, 198, 6738, 491, 261, 87, 1330, 598, 11, 2429, 628, 628, 198, 1324, 13, 34, 12740, 62, 39, 3698, 47, 13, 191...
2.762821
156
"""Affine tests package"""
[ 37811, 35191, 500, 5254, 5301, 37811, 198 ]
3.857143
7
from IPython.display import display, HTML import time import math import re import sys import inspect """ Original Created at: 23rd October 2018 by: Tolga Atam v2.1.0 Updated at: 15th March 2021 by: Tolga Atam Module for drawing classic Turtle figures on Google Colab notebooks. It uses html capabilit...
[ 6738, 6101, 7535, 13, 13812, 1330, 3359, 11, 11532, 198, 11748, 640, 198, 11748, 10688, 198, 11748, 302, 198, 11748, 25064, 198, 11748, 10104, 198, 198, 37811, 220, 198, 20556, 15622, 379, 25, 2242, 4372, 3267, 2864, 198, 220, 220, 220,...
2.372168
5,914
# Copyright 2020 Google LLC # # 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, 15069, 12131, 3012, 11419, 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, 351, 262, 13789, 13, 198, 2, 921, 743, 733...
2.957606
401
from ctypes import Structure, sizeof, c_int, c_int32, c_float, c_wchar # Credits # https://github.com/dabde/acc_shared_mem_access_python # https://github.com/rrennoir/PyAccSharedMemory
[ 6738, 269, 19199, 1330, 32522, 11, 39364, 11, 269, 62, 600, 11, 269, 62, 600, 2624, 11, 269, 62, 22468, 11, 269, 62, 86, 10641, 198, 198, 2, 29501, 198, 2, 3740, 1378, 12567, 13, 785, 14, 67, 397, 2934, 14, 4134, 62, 28710, 62, ...
2.685714
70
import matplotlib.pyplot as plt import script_util as su import pandas as pd import numpy as np import argparse if __name__=="__main__": parser = argparse.ArgumentParser() parser.add_argument("design") parser.add_argument("pA", type=float) parser.add_argument("pB", type=float) parser.add_arg...
[ 198, 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 198, 11748, 4226, 62, 22602, 355, 424, 198, 11748, 19798, 292, 355, 279, 67, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 1822, 29572, 628, 628, 628, 198, 361, 11593, 36...
1.804044
643
""" Minimax algorithm with alpha-beta pruning applied to the Connect 4 game. Inspired by https://youtu.be/l-hh51ncgDI """ import os import copy import math def minimax(game, depth, maximize, alpha=None, beta=None): """Minimax algorithm, using (optionally) alpha-beta pruning.""" if depth == 0: # Max...
[ 37811, 198, 9452, 320, 897, 11862, 351, 17130, 12, 31361, 778, 46493, 5625, 284, 262, 8113, 604, 983, 13, 198, 198, 41502, 1202, 416, 3740, 1378, 32594, 13, 1350, 14, 75, 12, 12337, 4349, 10782, 70, 17931, 198, 37811, 198, 198, 11748,...
2.485896
2,198
import argparse parser = argparse.ArgumentParser() parser.add_argument("--group") args = parser.parse_args() import yaml import numpy as np from lfd import registration, tps import os.path as osp tps.VERBOSE=False np.seterr(all='raise') np.set_printoptions(precision=3) with open("ground_truth.yaml","r") as fh: ...
[ 11748, 1822, 29572, 198, 48610, 796, 1822, 29572, 13, 28100, 1713, 46677, 3419, 198, 48610, 13, 2860, 62, 49140, 7203, 438, 8094, 4943, 198, 22046, 796, 30751, 13, 29572, 62, 22046, 3419, 198, 198, 11748, 331, 43695, 198, 11748, 299, 32...
2.143917
674
from argparse import ArgumentParser from pathlib import Path import pickle import os from tqdm import tqdm from tokenizers import Tokenizer from tokenizers.processors import RobertaProcessing from transformers import AutoTokenizer if __name__ == '__main__': main()
[ 6738, 1822, 29572, 1330, 45751, 46677, 198, 6738, 3108, 8019, 1330, 10644, 198, 11748, 2298, 293, 198, 11748, 28686, 198, 198, 6738, 256, 80, 36020, 1330, 256, 80, 36020, 198, 6738, 11241, 11341, 1330, 29130, 7509, 198, 6738, 11241, 11341...
3.584416
77
from channels.generic.websocket import WebsocketConsumer import json from asgiref.sync import async_to_sync
[ 6738, 9619, 13, 41357, 13, 732, 1443, 5459, 1330, 47736, 5459, 49106, 198, 11748, 33918, 198, 6738, 355, 70, 557, 69, 13, 27261, 1330, 30351, 62, 1462, 62, 27261, 198 ]
3.6
30
co = float(input('Comprimento do cateto oposto: ')) ca = float(input('Comprimento do cateto adjacente: ')) hy = ((co**2 + ca**2) ** (1/2)) print('A hipotenusa mede {:.2f}'.format(hy))
[ 1073, 796, 12178, 7, 15414, 10786, 5377, 1050, 3681, 78, 466, 3797, 27206, 1034, 455, 78, 25, 705, 4008, 198, 6888, 796, 12178, 7, 15414, 10786, 5377, 1050, 3681, 78, 466, 3797, 27206, 15909, 68, 25, 705, 4008, 198, 12114, 796, 14808,...
2.371795
78
array = [1,2,3] for v in array: print(v)
[ 18747, 796, 685, 16, 11, 17, 11, 18, 60, 198, 1640, 410, 287, 7177, 25, 198, 220, 220, 220, 3601, 7, 85, 8, 198 ]
1.875
24
#-*- coding: utf-8 -*- import time from animations.abstractanimation import AbstractAnimation from animations.noanimation.noanimation import MultiLineNoAnimation
[ 2, 12, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 11748, 640, 198, 198, 6738, 22407, 13, 397, 8709, 11227, 341, 1330, 27741, 39520, 198, 6738, 22407, 13, 3919, 11227, 341, 13, 3919, 11227, 341, 1330, 15237, 13949, 2949, ...
3.622222
45
"""Viewsets for the 'healthchecks' app""" # Built-in import logging from enum import Enum from functools import wraps from secrets import token_urlsafe # Django from django.core.cache import cache from django.core.exceptions import FieldError, ImproperlyConfigured, ObjectDoesNotExist from django.db import connection ...
[ 37811, 7680, 28709, 329, 262, 705, 13948, 42116, 6, 598, 37811, 198, 198, 2, 28477, 12, 259, 198, 11748, 18931, 198, 6738, 33829, 1330, 2039, 388, 198, 6738, 1257, 310, 10141, 1330, 27521, 198, 6738, 13141, 1330, 11241, 62, 6371, 21230,...
4.189504
343
send_message_to_slack('Deployment has been completed.... ')
[ 198, 21280, 62, 20500, 62, 1462, 62, 6649, 441, 10786, 49322, 434, 468, 587, 5668, 1106, 705, 8, 198 ]
3.210526
19
from typing import Any, TypeVar, Generic, Callable, List import numpy as np import torch TWord = TypeVar('TWord') TIdx = TypeVar('TIdx')
[ 6738, 19720, 1330, 4377, 11, 5994, 19852, 11, 42044, 11, 4889, 540, 11, 7343, 198, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 28034, 628, 198, 198, 51, 26449, 796, 5994, 19852, 10786, 51, 26449, 11537, 198, 51, 7390, 87, 796, 599...
2.843137
51
# Generated by Django 3.0.6 on 2020-05-09 11:51 import django.contrib.postgres.fields from django.db import migrations, models import apps.attachment.models.attachment
[ 2, 2980, 515, 416, 37770, 513, 13, 15, 13, 21, 319, 12131, 12, 2713, 12, 2931, 1367, 25, 4349, 198, 198, 11748, 42625, 14208, 13, 3642, 822, 13, 7353, 34239, 13, 25747, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 11, 4981, ...
3.053571
56
import math import os import time from unittest import TestCase import mock from tests.StubTimer import StubTimer from tests.StubUTime import StubUTime
[ 11748, 10688, 198, 11748, 28686, 198, 11748, 640, 198, 6738, 555, 715, 395, 1330, 6208, 20448, 198, 11748, 15290, 198, 198, 6738, 5254, 13, 1273, 549, 48801, 1330, 41135, 48801, 198, 6738, 5254, 13, 1273, 549, 3843, 524, 1330, 41135, 38...
3.581395
43
#!/usr/local/bin/python import sys import Pycluster as pc from pylab import * from collections import defaultdict colors = ('green', 'blue', 'orange', 'cyan', 'magenta', 'red', 'yellow', 'pink', 'purple', 'brown') def main(): """docstring fo...
[ 2, 48443, 14629, 14, 12001, 14, 8800, 14, 29412, 198, 198, 11748, 25064, 198, 11748, 9485, 565, 5819, 355, 40653, 198, 6738, 279, 2645, 397, 1330, 1635, 198, 6738, 17268, 1330, 4277, 11600, 198, 198, 4033, 669, 796, 19203, 14809, 3256, ...
1.884309
3,760
"""A modified image folder class We modify the official PyTorch image folder (https://github.com/pytorch/vision/blob/master/torchvision/datasets/folder.py) so that this class can load images from both current directory and its subdirectories. """ import torch.utils.data as data from PIL import Image import nibabel a...
[ 37811, 32, 9518, 2939, 9483, 1398, 198, 198, 1135, 13096, 262, 1743, 9485, 15884, 354, 2939, 9483, 357, 5450, 1378, 12567, 13, 785, 14, 9078, 13165, 354, 14, 10178, 14, 2436, 672, 14, 9866, 14, 13165, 354, 10178, 14, 19608, 292, 1039,...
2.84456
193
from pathlib import Path import pytest from powrap import powrap FIXTURE_DIR = Path(__file__).resolve().parent
[ 6738, 3108, 8019, 1330, 10644, 198, 198, 11748, 12972, 9288, 198, 198, 6738, 7182, 2416, 1330, 7182, 2416, 198, 198, 47084, 51, 11335, 62, 34720, 796, 10644, 7, 834, 7753, 834, 737, 411, 6442, 22446, 8000, 628, 198 ]
3.052632
38
#! /usr/bin/env python # -*- coding: utf-8 -*- # This file is part of cryptidy module """ The cryptidy module wraps PyCrpytodome(x) functions into simple symmetric and asymmetric functions """ __intname__ = "cryptidy" __author__ = "Orsiris de Jong" __copyright__ = "Copyright (C) 2018-2021 Orsiris de Jong" __descri...
[ 2, 0, 1220, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 220, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 2, 770, 2393, 318, 636, 286, 8194, 19325, 8265, 198, 198, 37811, 198, 464, 8194, 19325, 8265, 27521, 9485...
2.878049
164
import praw import ctypes import shutil import requests import requests_cache from PIL import Image import os import io requests_cache.install_cache('bg_cache') filepath = "reddit.creds.txt" with open(filepath, "r") as fin: client_id = fin.readline().replace("\n", "") # TODO: update code to accept...
[ 11748, 279, 1831, 201, 198, 11748, 269, 19199, 201, 198, 11748, 4423, 346, 201, 198, 11748, 7007, 201, 198, 11748, 7007, 62, 23870, 201, 198, 6738, 350, 4146, 1330, 7412, 201, 198, 11748, 28686, 201, 198, 11748, 33245, 201, 198, 201, ...
2.994318
352
import json import faiss import pickle import os import tqdm import numpy as np import argparse import time from functools import wraps parser = argparse.ArgumentParser() parser.add_argument('--d', type=int, default=768, help='dimension size') parser.add_argument('--buffer_size', type=int, default=50000) parser.add_ar...
[ 11748, 33918, 198, 11748, 24685, 747, 198, 11748, 2298, 293, 198, 11748, 28686, 198, 11748, 256, 80, 36020, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 1822, 29572, 198, 11748, 640, 198, 6738, 1257, 310, 10141, 1330, 27521, 198, 198, ...
2.476033
1,210
#Unzip Tuples #Unzip the cast tuple into two names and heights tuples. cast = (("Barney", 72), ("Robin", 68), ("Ted", 72), ("Lily", 66), ("Marshall", 76)) # define names and heights here names, heights = zip(*cast) # unzips cast into two tuples(names and heights) print(names) print(heights)
[ 2, 3118, 13344, 16749, 2374, 198, 2, 3118, 13344, 262, 3350, 46545, 656, 734, 3891, 290, 23245, 12777, 2374, 13, 198, 198, 2701, 796, 357, 7203, 10374, 1681, 1600, 7724, 828, 5855, 40656, 1600, 8257, 828, 5855, 38972, 1600, 7724, 828, ...
3.041237
97
import djclick as click from django.contrib.auth.models import User, Group from django.db import transaction from django.core.management.base import CommandError
[ 11748, 42625, 12976, 355, 3904, 198, 198, 6738, 42625, 14208, 13, 3642, 822, 13, 18439, 13, 27530, 1330, 11787, 11, 4912, 198, 6738, 42625, 14208, 13, 9945, 1330, 8611, 198, 6738, 42625, 14208, 13, 7295, 13, 27604, 13, 8692, 1330, 9455,...
3.711111
45
import configargparse
[ 11748, 4566, 853, 29572 ]
5.25
4
from typing import List import numpy as np from mmhuman3d.utils.path_utils import ( Existence, check_path_existence, check_path_suffix, ) from .human_data import HumanData
[ 6738, 19720, 1330, 7343, 198, 198, 11748, 299, 32152, 355, 45941, 198, 198, 6738, 8085, 10734, 18, 67, 13, 26791, 13, 6978, 62, 26791, 1330, 357, 198, 220, 220, 220, 1475, 13274, 11, 198, 220, 220, 220, 2198, 62, 6978, 62, 41084, 11...
2.80597
67
from typing import List import math import configargparse import numpy as np import sqlalchemy import yaml import sys import tqdm from IPython import embed from celery import group from angular_solver import solve, bulk_solve from database import Config, ConfigHolder, Graph, Task, TaskJobs, get_session from solver im...
[ 6738, 19720, 1330, 7343, 198, 11748, 10688, 198, 11748, 4566, 853, 29572, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 44161, 282, 26599, 198, 11748, 331, 43695, 198, 11748, 25064, 198, 11748, 256, 80, 36020, 198, 6738, 6101, 7535, 133...
3.118519
135
import os from typing import AnyStr from run_kotlin_kernel.run_kernel import module_install_path if __name__ == "__main__": detect_jars_location()
[ 11748, 28686, 198, 6738, 19720, 1330, 4377, 13290, 198, 198, 6738, 1057, 62, 74, 313, 2815, 62, 33885, 13, 5143, 62, 33885, 1330, 8265, 62, 17350, 62, 6978, 628, 198, 198, 361, 11593, 3672, 834, 6624, 366, 834, 12417, 834, 1298, 198, ...
2.924528
53
from .value_function import NNVFunction, NNQFunction, NNDiscriminatorFunction
[ 6738, 764, 8367, 62, 8818, 1330, 399, 27159, 22203, 11, 399, 45, 48, 22203, 11, 399, 8575, 2304, 3036, 20900, 22203, 198 ]
3.545455
22
"""Generic room model""" import argparse import os from frads import radgeom from frads import radutil, util def make_room(dimension: dict): """Make a side-lit shoebox room as a Room object.""" theroom = Room(float(dimension['width']), float(dimension['depth']), float(d...
[ 37811, 46189, 2119, 2746, 37811, 198, 198, 11748, 1822, 29572, 198, 11748, 28686, 198, 6738, 1216, 5643, 1330, 2511, 469, 296, 198, 6738, 1216, 5643, 1330, 2511, 22602, 11, 7736, 628, 198, 198, 4299, 787, 62, 3823, 7, 46156, 25, 8633, ...
2.264359
1,358
from django.apps import AppConfig
[ 6738, 42625, 14208, 13, 18211, 1330, 2034, 16934, 628 ]
3.888889
9
""" python test.py my-api-key """ import ondemand import sys od = ondemand.OnDemandClient(api_key=sys.argv[1]) od.debug = True # Get that Crypto resp = od.crypto('^BTCUSD,^LTCUSD') print('') print(resp) print('') # Get a Quote resp = od.quote('AAPL', 'bid,ask') print('') print(resp) print('') ...
[ 37811, 201, 198, 29412, 1332, 13, 9078, 616, 12, 15042, 12, 2539, 201, 198, 37811, 201, 198, 201, 198, 11748, 319, 28550, 201, 198, 11748, 25064, 201, 198, 201, 198, 375, 796, 319, 28550, 13, 2202, 42782, 11792, 7, 15042, 62, 2539, ...
2.323991
892
from allauth.socialaccount.providers.oauth2.urls import default_urlpatterns from .provider import CorrectivProvider urlpatterns = default_urlpatterns(CorrectivProvider)
[ 6738, 477, 18439, 13, 14557, 23317, 13, 15234, 4157, 13, 12162, 1071, 17, 13, 6371, 82, 1330, 4277, 62, 6371, 33279, 82, 198, 6738, 764, 15234, 1304, 1330, 22941, 452, 29495, 198, 198, 6371, 33279, 82, 796, 4277, 62, 6371, 33279, 82, ...
3.541667
48
import random
[ 11748, 4738, 628 ]
5
3
import os import requests from requests.auth import HTTPBasicAuth from ..integration.os.process import Command from ..integration.os.utils import chdir
[ 11748, 28686, 198, 198, 11748, 7007, 198, 6738, 7007, 13, 18439, 1330, 14626, 26416, 30515, 198, 198, 6738, 11485, 18908, 1358, 13, 418, 13, 14681, 1330, 9455, 198, 6738, 11485, 18908, 1358, 13, 418, 13, 26791, 1330, 442, 15908, 628 ]
3.875
40
# Generated by Django 3.0.1 on 2020-08-05 19:55 from django.db import migrations, models
[ 2, 2980, 515, 416, 37770, 513, 13, 15, 13, 16, 319, 12131, 12, 2919, 12, 2713, 678, 25, 2816, 198, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 11, 4981, 628 ]
2.84375
32
#Found stateFile, trying to restore the crawler state. dictSet_0 = [('das', u'Bearbeiten', u'editing a document'), ('der', u'Politiker', u'politician; centrist'), ('der', u'Januar', u'January'), ('der', u'August', u'August'), ('der', u'Komponist', u'composer'), ('der', u'Mai', u'May'), ('die', u'T\xfcrkei', u'T\xfcrk...
[ 2, 21077, 1181, 8979, 11, 2111, 284, 11169, 262, 27784, 1754, 1181, 13, 201, 198, 11600, 7248, 62, 15, 796, 220, 685, 10786, 67, 292, 3256, 334, 6, 36352, 15357, 268, 3256, 334, 6, 276, 1780, 257, 3188, 33809, 19203, 1082, 3256, 334...
2.800023
324,413
from tkinter import * from tkinter.ttk import * from frontend.gui.widgets import ToggleFrame from frontend.mod.automaton import * from frontend.mod.constants import * from frontend.mod.hyir import * from frontend.mod.session import Session
[ 6738, 256, 74, 3849, 1330, 1635, 198, 6738, 256, 74, 3849, 13, 926, 74, 1330, 1635, 198, 6738, 2166, 437, 13, 48317, 13, 28029, 11407, 1330, 34098, 19778, 198, 6738, 2166, 437, 13, 4666, 13, 2306, 296, 13951, 1330, 1635, 198, 6738, ...
3.253333
75
"""In this code we wanna plot real-time data.""" # import random from itertools import count import pandas as pd import matplotlib.pyplot as plt from matplotlib.animation import FuncAnimation plt.style.use('fivethirtyeight') x_vals = [] y_vals = [] index = count() def animate(i): """Plot the gr...
[ 37811, 818, 428, 2438, 356, 18869, 7110, 1103, 12, 2435, 1366, 526, 15931, 201, 198, 2, 1330, 4738, 201, 198, 6738, 340, 861, 10141, 1330, 954, 201, 198, 11748, 19798, 292, 355, 279, 67, 201, 198, 11748, 2603, 29487, 8019, 13, 9078, ...
2.256024
332
#!/usr/bin/env python3 import os, sys, re import logging as L import shutil from argparse import ArgumentParser, ArgumentDefaultsHelpFormatter from pprint import pformat, pprint DRY_RUN = [] TALLIES = dict( runs = 0, fastqdirs = 0 ) # Could import this from hesiod/__init__.py but I don't want the deps...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 11748, 28686, 11, 25064, 11, 302, 198, 11748, 18931, 355, 406, 198, 11748, 4423, 346, 198, 6738, 1822, 29572, 1330, 45751, 46677, 11, 45751, 7469, 13185, 22087, 8479, 1436, 198, 6738...
2.290923
3,922
import audio_visual import argparse import sys if __name__ == "__main__": parser = argparse.ArgumentParser(prog='Audio visualization', conflict_handler='resolve') parser.add_argument('-e', '--effect', help='visualization effect: 1d or 2d or 3d') parser.add_argument('-f', '--filenam...
[ 11748, 6597, 62, 41464, 198, 11748, 1822, 29572, 198, 11748, 25064, 628, 198, 361, 11593, 3672, 834, 6624, 366, 834, 12417, 834, 1298, 198, 220, 220, 220, 30751, 796, 1822, 29572, 13, 28100, 1713, 46677, 7, 1676, 70, 11639, 21206, 32704...
2.035813
726
import logging from celery import shared_task from .models import Feed
[ 11748, 18931, 201, 198, 201, 198, 6738, 18725, 1924, 1330, 4888, 62, 35943, 201, 198, 201, 198, 6738, 764, 27530, 1330, 18272, 201, 198, 201, 198 ]
3.076923
26
ANSIBLE_METADATA = { 'metadata_version': '1.1', 'status': ['preview'], 'supported_by': 'community' } DOCUMENTATION = ''' --- module: tetration_application_query short_description: Search the application api for scope id's or details version_added: '2.9' description: - "Search the Application API by ...
[ 15037, 34563, 62, 47123, 2885, 13563, 796, 1391, 198, 220, 220, 220, 705, 38993, 62, 9641, 10354, 705, 16, 13, 16, 3256, 198, 220, 220, 220, 705, 13376, 10354, 37250, 3866, 1177, 6, 4357, 198, 220, 220, 220, 705, 15999, 62, 1525, 10...
2.866541
1,596
import datetime import json import os import random import re import string import unittest from mock import patch, Mock from six import string_types import payjp NOW = datetime.datetime.now() DUMMY_CARD = { 'number': '4242424242424242', 'exp_month': NOW.month, 'exp_year': NOW.year + 4 } DUMMY_CHARGE ...
[ 11748, 4818, 8079, 198, 11748, 33918, 198, 11748, 28686, 198, 11748, 4738, 198, 11748, 302, 198, 11748, 4731, 198, 11748, 555, 715, 395, 198, 198, 6738, 15290, 1330, 8529, 11, 44123, 198, 198, 6738, 2237, 1330, 4731, 62, 19199, 198, 198...
2.302251
311
import sublime import sublime_plugin import subprocess import re import time import threading
[ 11748, 41674, 198, 11748, 41674, 62, 33803, 198, 11748, 850, 14681, 198, 11748, 302, 198, 11748, 640, 198, 11748, 4704, 278, 198 ]
4.272727
22
#!/usr/bin/env python # -*- coding: utf-8 -*- # @Author : EXP # ----------------------------------------------- import os import re import numbers def _parse_dict(conf_dict) : ''' :param conf_dict: :return: ''' result_dict = {} for key, val in conf_dict.items() : if isinstance...
[ 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, 13838, 1058, 25703, 198, 2, 20368, 24305, 628, 198, 11748, 28686, 198, 11748, 302, 198, 11748, 3146, 628, 198,...
1.956781
1,342
from .extension import MKAutoDocExtension, makeExtension __version__ = "0.1.0" __all__ = ["MKAutoDocExtension", "makeExtension"]
[ 198, 6738, 764, 2302, 3004, 1330, 20553, 27722, 23579, 11627, 3004, 11, 787, 11627, 3004, 628, 198, 834, 9641, 834, 796, 366, 15, 13, 16, 13, 15, 1, 198, 834, 439, 834, 796, 14631, 44, 25123, 9390, 23579, 11627, 3004, 1600, 366, 158...
2.808511
47