content
stringlengths
1
1.05M
input_ids
listlengths
1
883k
ratio_char_token
float64
1
22.9
token_count
int64
1
883k
# Copyright (c) 1999-2008 Mark D. Hill and David A. Wood # Copyright (c) 2009 The Hewlett-Packard Development Company # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: redistributions of source co...
[ 2, 15069, 357, 66, 8, 7358, 12, 11528, 2940, 360, 13, 3327, 290, 3271, 317, 13, 5326, 198, 2, 15069, 357, 66, 8, 3717, 383, 30446, 15503, 12, 11869, 446, 7712, 5834, 198, 2, 1439, 2489, 10395, 13, 198, 2, 198, 2, 2297, 396, 3890...
3.710177
452
# #!/usr/bin/python # -*- coding: utf-8 -*- # test_preempt_return.py # pylint: disable=line-too-long,missing-docstring,bad-whitespace, unused-argument, too-many-locals import sys import os import random import unittest DIRNAME_MODULE = os.path.dirname(os.path.dirname(os.path.dirname(os.path.realpath(sys.argv[0]))))...
[ 2, 1303, 48443, 14629, 14, 8800, 14, 29412, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 2, 1332, 62, 3866, 1791, 62, 7783, 13, 9078, 198, 198, 2, 279, 2645, 600, 25, 15560, 28, 1370, 12, 18820, 12, ...
2.914508
386
from __future__ import absolute_import from __future__ import division from __future__ import print_function import numpy as np import ray from ray.rllib.ddpg2.models import DDPGModel from ray.rllib.models.catalog import ModelCatalog from ray.rllib.optimizers import PolicyEvaluator from ray.rllib.utils.filter import ...
[ 6738, 11593, 37443, 834, 1330, 4112, 62, 11748, 198, 6738, 11593, 37443, 834, 1330, 7297, 198, 6738, 11593, 37443, 834, 1330, 3601, 62, 8818, 198, 198, 11748, 299, 32152, 355, 45941, 198, 198, 11748, 26842, 198, 6738, 26842, 13, 81, 297...
3.128205
156
from graphviz import Digraph from collections import namedtuple
[ 6738, 4823, 85, 528, 1330, 7367, 1470, 198, 6738, 17268, 1330, 3706, 83, 29291, 628 ]
4.333333
15
"""Add Huawei 2G managedobjects Revision ID: 1d092815507a Revises: 3fa514f1b7a9 Create Date: 2018-02-13 01:38:59.965000 """ from alembic import op import sqlalchemy as sa import datetime # revision identifiers, used by Alembic. revision = '1d092815507a' down_revision = '3fa514f1b7a9' branch_labels = None depends_on ...
[ 37811, 4550, 43208, 362, 38, 5257, 48205, 198, 198, 18009, 1166, 4522, 25, 352, 67, 2931, 2078, 1314, 35378, 64, 198, 18009, 2696, 25, 513, 13331, 47396, 69, 16, 65, 22, 64, 24, 198, 16447, 7536, 25, 2864, 12, 2999, 12, 1485, 5534, ...
2.51145
131
from math import sqrt from skimage import data from skimage.feature import blob_dog, blob_log, blob_doh from skimage.color import rgb2gray from skimage import io import matplotlib.pyplot as plt image = io.imread("star.jpg") image_gray = rgb2gray(image) blobs_log = blob_log(image_gray, max_sigma=30, num_sigma=10, th...
[ 6738, 10688, 1330, 19862, 17034, 198, 6738, 1341, 9060, 1330, 1366, 198, 6738, 1341, 9060, 13, 30053, 1330, 44812, 62, 9703, 11, 44812, 62, 6404, 11, 44812, 62, 67, 1219, 198, 6738, 1341, 9060, 13, 8043, 1330, 46140, 17, 44605, 198, 6...
2.319923
522
from turtle import Turtle SPEED = 10
[ 6738, 28699, 1330, 33137, 198, 4303, 41841, 796, 838, 628, 198 ]
3.545455
11
from jry2.semantics import Expr
[ 6738, 474, 563, 17, 13, 43616, 29320, 1330, 1475, 1050, 628, 628 ]
2.916667
12
# -*- coding: utf-8 -*- r""" Dirichlet characters A :class:`DirichletCharacter` is the extension of a homomorphism .. MATH:: (\ZZ/N\ZZ)^* \to R^*, for some ring `R`, to the map `\ZZ/N\ZZ \to R` obtained by sending those `x\in\ZZ/N\ZZ` with `\gcd(N,x)>1` to `0`. EXAMPLES:: sage: G = DirichletGroup(35) ...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 81, 37811, 198, 35277, 488, 1616, 3435, 198, 198, 32, 1058, 4871, 25, 63, 35277, 488, 1616, 27275, 63, 318, 262, 7552, 286, 257, 3488, 25831, 1042, 198, 198, 492, 337,...
2.099239
27,721
# This source code is part of the Biotite package and is distributed # under the 3-Clause BSD License. Please see 'LICENSE.rst' for further # information. __name__ = "biotite" __author__ = "Patrick Kunzmann" __all__ = ["File", "TextFile", "InvalidFileError"] import abc import io import warnings from .copyable import ...
[ 2, 770, 2723, 2438, 318, 636, 286, 262, 347, 5151, 578, 5301, 290, 318, 9387, 198, 2, 739, 262, 513, 12, 2601, 682, 347, 10305, 13789, 13, 4222, 766, 705, 43, 2149, 24290, 13, 81, 301, 6, 329, 2252, 198, 2, 1321, 13, 198, 198, ...
2.657512
619
""" Module for sending Push Notifications """ import logging import requests from django.conf import settings from ...models import PushNotificationTranslation from ...models import Region from ...constants import push_notifications as pnt_const logger = logging.getLogger(__name__) # pylint: disable=too-few-public...
[ 37811, 198, 26796, 329, 7216, 23691, 1892, 6637, 198, 37811, 198, 11748, 18931, 198, 11748, 7007, 198, 198, 6738, 42625, 14208, 13, 10414, 1330, 6460, 198, 198, 6738, 2644, 27530, 1330, 23691, 3673, 2649, 48313, 198, 6738, 2644, 27530, 13...
3.696629
89
#coding:utf-8 # # id: functional.index.create.03 # title: CREATE ASC INDEX # decription: CREATE ASC INDEX # # Dependencies: # CREATE DATABASE # CREATE TABLE # SHOW INDEX # tracker_id: # min_versions: [] # versions: 1.0 # qm...
[ 2, 66, 7656, 25, 40477, 12, 23, 198, 2, 198, 2, 4686, 25, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 10345, 13, 9630, 13, 17953, 13, 3070, 198, 2, 3670, 25, 220, 220, 220, 220, 220, 220, 220, 29244, 6158, 25400, 24413, ...
2.102632
380
""" Page object file """
[ 37811, 7873, 2134, 2393, 37227, 198 ]
4.166667
6
# Copyright 2019 Xilinx Inc. # # 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, 13130, 1395, 346, 28413, 3457, 13, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 2, 345, 743, 407, 779, 428, 2393, 2845, 287, 11846, 351, 262, 13789, 13, 198, 2...
3.560185
216
{ "cells": [ { "cell_type": "code", "execution_count": 64, "metadata": {}, "outputs": [], "source": [ "# Import libraries\n", "import os, csv" ] }, { "cell_type": "code", "execution_count": 65, "metadata": {}, "outputs": [], "source": [ "#variables for the script\n", ...
[ 90, 198, 366, 46342, 1298, 685, 198, 220, 1391, 198, 220, 220, 366, 3846, 62, 4906, 1298, 366, 8189, 1600, 198, 220, 220, 366, 18558, 1009, 62, 9127, 1298, 5598, 11, 198, 220, 220, 366, 38993, 1298, 1391, 5512, 198, 220, 220, 366, ...
2.127157
2,202
from ctypes import POINTER, Structure from ..wintypes import VARIANT, dll_import
[ 6738, 269, 19199, 1330, 19922, 41358, 11, 32522, 198, 198, 6738, 11485, 86, 600, 9497, 1330, 569, 33604, 8643, 11, 288, 297, 62, 11748, 628 ]
3.32
25
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # --------------------------------------------------------------------...
[ 2, 16529, 1783, 10541, 198, 2, 15069, 357, 66, 8, 5413, 10501, 13, 1439, 2489, 10395, 13, 198, 2, 49962, 739, 262, 17168, 13789, 13, 4091, 13789, 13, 14116, 287, 262, 1628, 6808, 329, 5964, 1321, 13, 198, 2, 16529, 1783, 10541, 198,...
4.130357
560
import datetime as date from pzd_utils import datetime_to_str
[ 11748, 4818, 8079, 355, 3128, 198, 6738, 279, 89, 67, 62, 26791, 1330, 4818, 8079, 62, 1462, 62, 2536, 198, 220, 220, 220, 220, 220, 220, 220, 220 ]
2.5
28
import numpy as np from defdap.quat import Quat hex_syms = Quat.symEqv("hexagonal") # subset of hexagonal symmetries that give unique orientations when the # Burgers transformation is applied unq_hex_syms = [ hex_syms[0], hex_syms[5], hex_syms[4], hex_syms[2], hex_syms[10], hex_syms[11] ] cubi...
[ 11748, 299, 32152, 355, 45941, 198, 6738, 825, 67, 499, 13, 421, 265, 1330, 2264, 265, 198, 198, 33095, 62, 1837, 907, 796, 2264, 265, 13, 37047, 36, 44179, 7203, 33095, 27923, 4943, 198, 2, 24637, 286, 17910, 27923, 23606, 316, 1678,...
2.212202
377
print('222')
[ 4798, 10786, 23148, 11537, 198 ]
2.6
5
from flask import jsonify, Blueprint, request, json, make_response from werkzeug.security import generate_password_hash, check_password_hash from datetime import datetime from ..utils.validators import Validation from ..models.auth_models import Users v1_auth_blueprint = Blueprint('auth', __name__, url_prefix='/api/v...
[ 6738, 42903, 1330, 33918, 1958, 11, 39932, 11, 2581, 11, 33918, 11, 787, 62, 26209, 198, 6738, 266, 9587, 2736, 1018, 13, 12961, 1330, 7716, 62, 28712, 62, 17831, 11, 2198, 62, 28712, 62, 17831, 198, 6738, 4818, 8079, 1330, 4818, 8079...
3.462264
106
# -*- coding: utf-8 -*- from __future__ import division, unicode_literals, print_function, absolute_import from pint.util import (UnitsContainer) from pint.converters import (ScaleConverter, OffsetConverter) from pint.definitions import (Definition, PrefixDefinition, UnitDefinition, Dime...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 6738, 11593, 37443, 834, 1330, 7297, 11, 28000, 1098, 62, 17201, 874, 11, 3601, 62, 8818, 11, 4112, 62, 11748, 198, 198, 6738, 35245, 13, 22602, 1330, 357, 3118, ...
2.947761
134
#!/usr/bin/env python # # Electrum - lightweight Bitcoin client # Copyright (C) 2015 Thomas Voegtlin # # Permission is hereby granted, free of charge, to any person # obtaining a copy of this software and associated documentation files # (the "Software"), to deal in the Software without restriction, # including without...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 198, 2, 5903, 6582, 532, 18700, 6185, 5456, 198, 2, 15069, 357, 34, 8, 1853, 5658, 20687, 1533, 83, 2815, 198, 2, 198, 2, 2448, 3411, 318, 29376, 7520, 11, 1479, 286, 3877, 11, ...
2.248428
1,272
########################################################################## # # Copyright 2012 Jose Fonseca # All Rights Reserved. # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without res...
[ 29113, 29113, 7804, 2235, 198, 2, 198, 2, 15069, 2321, 5264, 376, 261, 2363, 64, 198, 2, 1439, 6923, 33876, 13, 198, 2, 198, 2, 2448, 3411, 318, 29376, 7520, 11, 1479, 286, 3877, 11, 284, 597, 1048, 16727, 257, 4866, 198, 2, 286, ...
2.161851
28,619
from copy import deepcopy
[ 6738, 4866, 1330, 2769, 30073, 628 ]
4.5
6
# -*- coding: utf-8 -*- """ Created on Tue Jun 26 16:34:21 2018 @author: LiHongWang """ import os import tensorflow as tf from model import fcn_vgg from model import fcn_mobile from model import fcn_resnet_v2 from data import input_data slim = tf.contrib.slim if __name__=='__main__': ...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 201, 198, 37811, 201, 198, 41972, 319, 30030, 7653, 2608, 1467, 25, 2682, 25, 2481, 2864, 201, 198, 201, 198, 31, 9800, 25, 7455, 48559, 54, 648, 201, 198, 37811, 201, 198,...
2.295775
142
#!/usr/bin/env python # -*- coding: utf-8 -*- import codecs from setuptools import find_packages, setup setup( name='filetype', version='1.0.7', description='Infer file type and MIME type of any file/buffer. ' 'No external dependencies.', long_description=codecs.open('README.rst', 'r',...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 11748, 40481, 82, 198, 6738, 900, 37623, 10141, 1330, 1064, 62, 43789, 11, 9058, 198, 198, 40406, 7, 198, 220, 2...
2.414454
678
# make sure templates are present and netmiko knows about them # git clone https://github.com/networktocode/ntc-templates # export NET_TEXTFSM=/home/ntc/ntc-templates/templates/ # see https://github.com/networktocode/ntc-templates/tree/master/templates # for list of templates from netmiko import ConnectHandler import...
[ 2, 787, 1654, 24019, 389, 1944, 290, 2010, 76, 12125, 4206, 546, 606, 198, 2, 17606, 17271, 3740, 1378, 12567, 13, 785, 14, 27349, 40301, 1098, 14, 429, 66, 12, 11498, 17041, 198, 2, 10784, 30502, 62, 51, 6369, 10234, 12310, 33223, ...
2.344394
874
# Copyright 2016 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ...
[ 2, 15069, 1584, 3012, 3457, 13, 1439, 6923, 33876, 13, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 2, 345, 743, 407, 779, 428, 2393, 2845, 287, 11846, 351, 262, 13789, ...
2.666667
1,425
import os,sys; sys.path.insert(0,os.path.dirname(os.path.dirname(__file__))) from htag import Tag """ This example show you how to make a "Calc App" (with physical buttons + keyboard events) There is no work for rendering the layout ;-) Can't be simpler ! """ if __name__=="__main__": # import logging # lo...
[ 11748, 28686, 11, 17597, 26, 25064, 13, 6978, 13, 28463, 7, 15, 11, 418, 13, 6978, 13, 15908, 3672, 7, 418, 13, 6978, 13, 15908, 3672, 7, 834, 7753, 834, 22305, 198, 198, 6738, 289, 12985, 1330, 17467, 198, 198, 37811, 198, 1212, ...
2.777778
243
from giraphics.graphing.graph import Graph g = Graph(800,600,8,6, 'example1.svg') g.bg() g.grid() g.axes() g.graph(func) g.save() g.display()
[ 6738, 37370, 6570, 873, 13, 70, 2416, 722, 13, 34960, 1330, 29681, 628, 198, 70, 796, 29681, 7, 7410, 11, 8054, 11, 23, 11, 21, 11, 705, 20688, 16, 13, 21370, 70, 11537, 198, 198, 70, 13, 35904, 3419, 198, 70, 13, 25928, 3419, 1...
2.132353
68
from tools.geofunc import GeoFunc import pandas as pd import json def getData(index): '''han,jakobs1,jakobs2 ''' '''shapesshirtswimtrousers''' name=["ga","albano","blaz1","blaz2","dighe1","dighe2","fu","han","jakobs1","jakobs2","mao","marques","shapes","shirts","swim","trousers"] print("",name[index],"...
[ 6738, 4899, 13, 469, 1659, 19524, 1330, 32960, 37, 19524, 198, 11748, 19798, 292, 355, 279, 67, 198, 11748, 33918, 198, 198, 4299, 651, 6601, 7, 9630, 2599, 198, 220, 220, 220, 705, 7061, 7637, 11, 73, 461, 8158, 16, 11, 73, 461, ...
2.06414
343
#from trw.utils import collect_hierarchical_module_name, collect_hierarchical_parameter_name, get_batch_n, to_value, \ # safe_lookup, len_batch from .export import as_image_ui8, as_rgb_image, export_image, export_sample, export_as_image from .table_sqlite import TableStream, SQLITE_TYPE_PATTERN, get_table_number_of_...
[ 2, 6738, 491, 86, 13, 26791, 1330, 2824, 62, 71, 959, 998, 605, 62, 21412, 62, 3672, 11, 2824, 62, 71, 959, 998, 605, 62, 17143, 2357, 62, 3672, 11, 651, 62, 43501, 62, 77, 11, 284, 62, 8367, 11, 3467, 198, 2, 220, 220, 220, ...
3
152
############################################################################# # # VFRAME # MIT License # Copyright (c) 2020 Adam Harvey and VFRAME # https://vframe.io # ############################################################################# import click
[ 29113, 29113, 7804, 4242, 2, 220, 198, 2, 198, 2, 569, 10913, 10067, 198, 2, 17168, 13789, 198, 2, 15069, 357, 66, 8, 12131, 7244, 14943, 290, 569, 10913, 10067, 198, 2, 3740, 1378, 85, 14535, 13, 952, 220, 198, 2, 198, 29113, 291...
5.156863
51
import learndash from learndash.api_resources.abstract import ListableAPIResource from learndash.api_resources.abstract import RetrievableAPIResource from learndash.api_resources.abstract import UpdateableAPIResource from learndash.api_resources.abstract import NestedAPIResource from learndash.api_resources.typing imp...
[ 11748, 22454, 358, 1077, 198, 198, 6738, 22454, 358, 1077, 13, 15042, 62, 37540, 13, 397, 8709, 1330, 7343, 540, 2969, 4663, 274, 1668, 198, 6738, 22454, 358, 1077, 13, 15042, 62, 37540, 13, 397, 8709, 1330, 4990, 380, 1990, 540, 2969...
3.272277
202
"""The module defines the abstract interface for resolving container images for tool execution.""" from abc import ( ABCMeta, abstractmethod, abstractproperty, ) import six from galaxy.util.dictifiable import Dictifiable
[ 37811, 464, 8265, 15738, 262, 12531, 7071, 329, 31038, 9290, 4263, 329, 2891, 9706, 526, 15931, 198, 6738, 450, 66, 1330, 357, 198, 220, 220, 220, 9738, 48526, 11, 198, 220, 220, 220, 12531, 24396, 11, 198, 220, 220, 220, 12531, 26745...
3.746032
63
#!/usr/bin/env python3 import glob import os import pandas as pd import dfs SRC_DIR = f"{dfs.get_data_dir()}/adhd_sin_orig" OUT_DIR = f"{dfs.get_data_dir()}/adhd_sin" if __name__ == '__main__': files = glob.glob(f"{SRC_DIR}/*.csv") file_names = list(map(os.path.basename, files)) for file_name in file_names: ...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 198, 11748, 15095, 198, 11748, 28686, 198, 198, 11748, 19798, 292, 355, 279, 67, 198, 198, 11748, 288, 9501, 198, 198, 50, 7397, 62, 34720, 796, 277, 1, 90, 7568, 82, 13, 1136, ...
2.13
500
import pandas as pd import numpy as np import matplotlib.pyplot as plt import os import matplotlib.pyplot as plt import CurveFit import shutil #find all DIRECTORIES containing non-hidden files ending in FILENAME #get all non-hidden data files in DIRECTORY with extension EXT #checking if loss ever doesn't decrease fo...
[ 11748, 19798, 292, 355, 279, 67, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 198, 11748, 28686, 198, 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 198, 11748, 46300, 31805...
3.386598
194
# '(',')','{','}','['']',"()""()[]{}""(]""([)]" # @param s string # @return bool #
[ 2, 29513, 3256, 11537, 41707, 90, 41707, 92, 41707, 58, 7061, 60, 40264, 3419, 15931, 3419, 21737, 90, 92, 15931, 7, 60, 15931, 26933, 15437, 1, 198, 198, 2, 2488, 17143, 264, 4731, 220, 198, 2, 2488, 7783, 20512, 198, 2, 198, 220, ...
1.754386
57
import os.path import time import logging import yaml from piecrust.processing.base import Processor logger = logging.getLogger(__name__)
[ 11748, 28686, 13, 6978, 198, 11748, 640, 198, 11748, 18931, 198, 11748, 331, 43695, 198, 6738, 2508, 6098, 436, 13, 36948, 13, 8692, 1330, 32893, 628, 198, 6404, 1362, 796, 18931, 13, 1136, 11187, 1362, 7, 834, 3672, 834, 8, 628, 628 ...
3.404762
42
from src.events import Event
[ 6738, 12351, 13, 31534, 1330, 8558, 198 ]
4.142857
7
import FWCore.ParameterSet.Config as cms # # module to make the MaxSumPtWMass jet combination # findTtSemiLepJetCombMaxSumPtWMass = cms.EDProducer("TtSemiLepJetCombMaxSumPtWMass", ## jet input jets = cms.InputTag("selectedPatJets"), ## lepton input leps = cms.InputTag("selectedPatMuons"), ## ma...
[ 11748, 48849, 14055, 13, 36301, 7248, 13, 16934, 355, 269, 907, 198, 198, 2, 198, 2, 8265, 284, 787, 262, 5436, 13065, 47, 83, 54, 20273, 12644, 6087, 198, 2, 198, 19796, 51, 83, 13900, 72, 43, 538, 42273, 20575, 11518, 13065, 47, ...
2.610272
331
#!/usr/bin/env python #-*- coding:utf-8 -*- __all__ = ["args", "colors", "libcolors", "routine"] __version__ = "0.96"
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 12, 9, 12, 19617, 25, 40477, 12, 23, 532, 9, 12, 198, 198, 834, 439, 834, 796, 14631, 22046, 1600, 366, 4033, 669, 1600, 366, 8019, 4033, 669, 1600, 366, 81, 28399, 8973, 198, ...
2.203704
54
from baopig.pybao.objectutilities import Object from baopig.pybao.issomething import * # TODO : ButtonRessourcePack.style.create_surface(size) ressources = _RessourcePack()
[ 198, 198, 6738, 26605, 404, 328, 13, 9078, 65, 5488, 13, 15252, 315, 2410, 1330, 9515, 198, 6738, 26605, 404, 328, 13, 9078, 65, 5488, 13, 747, 8370, 1330, 1635, 628, 628, 198, 198, 2, 16926, 46, 1058, 20969, 49, 408, 1668, 11869, ...
2.828125
64
#!/usr/bin/python2.7 """ Extract unique set of station locations (and names) along with number of obs RJHD - Exeter - October 2017 """ # ECMWF import defaults import traceback import sys from eccodes import * # RJHD imports import cartopy import numpy as np import matplotlib as mpl mpl.use('Agg') import matplotli...
[ 2, 48443, 14629, 14, 8800, 14, 29412, 17, 13, 22, 198, 198, 37811, 198, 11627, 974, 3748, 900, 286, 4429, 7064, 357, 392, 3891, 8, 1863, 351, 1271, 286, 10201, 198, 198, 49, 41, 10227, 532, 1475, 2357, 532, 3267, 2177, 198, 198, 3...
2.585784
1,224
from libsaas import http, parsers from libsaas.services import base from libsaas.services.twilio import resource
[ 6738, 9195, 11400, 292, 1330, 2638, 11, 13544, 364, 198, 6738, 9195, 11400, 292, 13, 30416, 1330, 2779, 198, 198, 6738, 9195, 11400, 292, 13, 30416, 13, 4246, 346, 952, 1330, 8271, 628, 628, 628, 628, 628 ]
3.324324
37
# Copyright 2021 Huawei Technologies Co., Ltd # # 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 a...
[ 2, 15069, 33448, 43208, 21852, 1766, 1539, 12052, 201, 198, 2, 201, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 201, 198, 2, 345, 743, 407, 779, 428, 2393, 2845, 287, 11846, 351, 262,...
2.461813
1,964
import re import numpy as np from collections import OrderedDict import pykeops import pykeops.config ############################################################ # define backend ############################################################ def get_tag_backend(backend, variables, str = False): """ entry ...
[ 11748, 302, 198, 11748, 299, 32152, 355, 45941, 198, 6738, 17268, 1330, 14230, 1068, 35, 713, 198, 11748, 12972, 365, 2840, 198, 11748, 12972, 365, 2840, 13, 11250, 198, 198, 29113, 14468, 7804, 4242, 198, 2, 220, 220, 220, 220, 8160, ...
3.346154
156
"""Prepare acoustic features for one-to-one voice conversion. usage: prepare_features_vc.py [options] <DATA_ROOT> <source_speaker> <target_speaker> options: --max_files=<N> Max num files to be collected. [default: 100] --dst_dir=<d> Destination directory [default: data/cmu_arctic_vc]. --ov...
[ 37811, 37534, 533, 26071, 3033, 329, 530, 12, 1462, 12, 505, 3809, 11315, 13, 198, 198, 26060, 25, 198, 220, 220, 220, 8335, 62, 40890, 62, 28435, 13, 9078, 685, 25811, 60, 1279, 26947, 62, 13252, 2394, 29, 1279, 10459, 62, 4125, 31...
2.297122
1,390
# Copyright 2018-2021 Streamlit Inc. # # 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 wr...
[ 2, 15069, 2864, 12, 1238, 2481, 13860, 18250, 3457, 13, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 2, 345, 743, 407, 779, 428, 2393, 2845, 287, 11846, 351, 262, 13789, ...
3.390947
243
# # Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. # The ASF licenses this file to You under the Apache License, Version 2.0 # (the "License"); you may not us...
[ 2, 198, 2, 49962, 284, 262, 24843, 10442, 5693, 357, 1921, 37, 8, 739, 530, 393, 517, 198, 2, 18920, 5964, 11704, 13, 220, 4091, 262, 28536, 2393, 9387, 351, 198, 2, 428, 670, 329, 3224, 1321, 5115, 6634, 9238, 13, 198, 2, 383, ...
2.820056
4,268
#----------------------------------------------------------------------------- # Copyright (c) 2005-2017, PyInstaller Development Team. # # Distributed under the terms of the GNU General Public License with exception # for distributing bootloader. # # The full license is in the file COPYING.txt, distributed with this s...
[ 2, 10097, 32501, 198, 2, 15069, 357, 66, 8, 5075, 12, 5539, 11, 9485, 15798, 263, 7712, 4816, 13, 198, 2, 198, 2, 4307, 6169, 739, 262, 2846, 286, 262, 22961, 3611, 5094, 13789, 351, 6631, 198, 2, 329, 25950, 6297, 29356, 13, 198,...
2.974152
619
from vyper import ast as vy_ast
[ 6738, 410, 88, 525, 1330, 6468, 355, 410, 88, 62, 459, 628, 628, 628 ]
2.642857
14
# -*- coding: utf-8 -*- from .__module__ import Module, dependency, source, version from .tools import Tools from .boost import Boost from .python import Python
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 6738, 764, 834, 21412, 834, 1330, 19937, 11, 20203, 11, 2723, 11, 2196, 198, 6738, 764, 31391, 1330, 20003, 198, 6738, 764, 39521, 1330, 19835, 198, 6738, 764, 29412, 13...
3.521739
46
#!/usr/bin/python import sys import copy stage_length = 16 stage = map(chr, range(ord('a'),ord('a')+stage_length)) def spin(amount): """To save time, this function isn't used except at the end. Normally, a counter marks the start of the stage and this changes instead. """ global stage stage = stag...
[ 2, 48443, 14629, 14, 8800, 14, 29412, 198, 198, 11748, 25064, 198, 11748, 4866, 198, 14247, 62, 13664, 796, 1467, 198, 14247, 796, 3975, 7, 354, 81, 11, 2837, 7, 585, 10786, 64, 33809, 585, 10786, 64, 11537, 10, 14247, 62, 13664, 40...
2.403941
609
import numpy as np from numpy.testing import assert_equal, assert_array_equal from nose.tools import assert_greater from skimage.segmentation import felzenszwalb if __name__ == '__main__': from numpy import testing testing.run_module_suite()
[ 11748, 299, 32152, 355, 45941, 198, 6738, 299, 32152, 13, 33407, 1330, 6818, 62, 40496, 11, 6818, 62, 18747, 62, 40496, 198, 6738, 9686, 13, 31391, 1330, 6818, 62, 18223, 263, 198, 6738, 1341, 9060, 13, 325, 5154, 341, 1330, 10756, 82...
3.135802
81
from masonite.request import Request from masonite.view import View from masonite.auth.Csrf import Csrf from masonite.app import App from masonite.middleware import CsrfMiddleware from masonite.testsuite.TestSuite import generate_wsgi import pytest from masonite.exceptions import InvalidCSRFToken
[ 6738, 285, 888, 578, 13, 25927, 1330, 19390, 198, 6738, 285, 888, 578, 13, 1177, 1330, 3582, 198, 6738, 285, 888, 578, 13, 18439, 13, 34, 27891, 69, 1330, 327, 27891, 69, 198, 6738, 285, 888, 578, 13, 1324, 1330, 2034, 198, 6738, ...
3.25
92
from pyramid.view import view_config import os
[ 6738, 27944, 13, 1177, 1330, 1570, 62, 11250, 198, 11748, 28686, 628, 198 ]
3.769231
13
# -*- coding: utf-8 -*- ########################################################################### # Copyright (c), The AiiDA team. All rights reserved. # # This file is part of the AiiDA code. # # ...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 29113, 29113, 7804, 21017, 198, 2, 15069, 357, 66, 828, 383, 317, 4178, 5631, 1074, 13, 1439, 2489, 10395, 13, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, ...
2.565217
368
"""Process Monitor Usage: processmonitor.py <process_name> <overall_duration> [<sampling_interval>] processmonitor.py -h|--help processmonitor.py -v|--version Options: <process_name> Process name argument. <overall_duration> Overall duration of the monitoring in seconds. <sampling_interval> Sam...
[ 37811, 18709, 18289, 198, 28350, 25, 198, 220, 220, 220, 1429, 41143, 13, 9078, 1279, 14681, 62, 3672, 29, 1279, 2502, 439, 62, 32257, 29, 685, 27, 37687, 11347, 62, 3849, 2100, 37981, 198, 220, 220, 220, 1429, 41143, 13, 9078, 532, ...
3.262136
206
import os import re import numpy as np from Projects.DeepLearningTechniques.MobileNet_v2.tiny_imagenet.constants import *
[ 11748, 28686, 198, 11748, 302, 198, 11748, 299, 32152, 355, 45941, 198, 198, 6738, 29898, 13, 29744, 41730, 25574, 6368, 13, 17066, 7934, 62, 85, 17, 13, 44152, 62, 320, 11286, 316, 13, 9979, 1187, 1330, 1635 ]
3.297297
37
#!/usr/bin/env python3 # Command line flags import os import glob import re import pyinotify import subprocess from sys import stdout, stderr from time import time, sleep from tempfile import gettempdir from distutils.dir_util import copy_tree from shutil import copyfile from weasyprint import HTML import argparse p...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 198, 2, 9455, 1627, 9701, 198, 198, 11748, 28686, 198, 11748, 15095, 198, 11748, 302, 198, 11748, 12972, 259, 313, 1958, 198, 11748, 850, 14681, 198, 6738, 25064, 1330, 14367, 448, ...
2.707758
941
# https://www.acmicpc.net/problem/13023 import sys sys.setrecursionlimit(999999999) if __name__ == '__main__': input = __import__('sys').stdin.readline target_depth = 4 N, M = map(int, input().split()) graph = [list() for _ in range(N)] for _ in range(M): a, b = map(int, input().split(...
[ 2, 3740, 1378, 2503, 13, 330, 9383, 14751, 13, 3262, 14, 45573, 14, 12952, 1954, 198, 198, 11748, 25064, 198, 17597, 13, 2617, 8344, 24197, 32374, 7, 24214, 2079, 17032, 8, 628, 628, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, ...
2.254237
177
"""bst: BigchainDB Sharing Tools""" from setuptools import setup, find_packages install_requires = [ 'base58~=0.2.2', 'PyNaCl~=1.1.0', 'bigchaindb-driver', 'click==6.7', 'colorama', ] setup( name='bst', version='0.1.0', description='bst: BigchainDB Sharing Tools', long_descriptio...
[ 37811, 65, 301, 25, 4403, 7983, 11012, 36644, 20003, 37811, 198, 198, 6738, 900, 37623, 10141, 1330, 9058, 11, 1064, 62, 43789, 628, 198, 17350, 62, 47911, 796, 685, 198, 220, 220, 220, 705, 8692, 3365, 93, 28, 15, 13, 17, 13, 17, ...
2.455696
553
from django.contrib import admin from db.models.job_resources import JobResources admin.site.register(JobResources)
[ 6738, 42625, 14208, 13, 3642, 822, 1330, 13169, 198, 198, 6738, 20613, 13, 27530, 13, 21858, 62, 37540, 1330, 15768, 33236, 198, 198, 28482, 13, 15654, 13, 30238, 7, 33308, 33236, 8, 198 ]
3.575758
33
import numpy as np import sklearn import subprocess from sklearn import model_selection, tree import data import feature_selection import model_sel import os import matplotlib.pyplot as plt import seaborn as sns def separate_weights(X_train, column_names): """ Removes the column containing weights from X_t...
[ 11748, 299, 32152, 355, 45941, 198, 11748, 1341, 35720, 198, 11748, 850, 14681, 198, 6738, 1341, 35720, 1330, 2746, 62, 49283, 11, 5509, 198, 198, 11748, 1366, 198, 11748, 3895, 62, 49283, 198, 11748, 2746, 62, 741, 198, 11748, 28686, 1...
2.875
240
import smart_imports smart_imports.all()
[ 198, 11748, 4451, 62, 320, 3742, 198, 198, 27004, 62, 320, 3742, 13, 439, 3419, 628, 628, 198 ]
2.611111
18
"""Dummy model needed for tests.""" pass
[ 37811, 35, 13513, 2746, 2622, 329, 5254, 526, 15931, 198, 6603, 198 ]
3.416667
12
# This file is part of postcipes # (c) Timofey Mukha # The code is released under the MIT Licence. # See LICENCE.txt and the Legal section in the README for more information from __future__ import absolute_import from __future__ import division from __future__ import print_function from .postcipe import Postcipe impor...
[ 2, 770, 2393, 318, 636, 286, 1281, 66, 18636, 198, 2, 357, 66, 8, 5045, 1659, 2959, 31509, 3099, 198, 2, 383, 2438, 318, 2716, 739, 262, 17168, 10483, 594, 13, 198, 2, 4091, 38559, 18310, 13, 14116, 290, 262, 16027, 2665, 287, 262...
3.333333
132
from cc3d.core.PySteppables import * from cc3d import CompuCellSetup from random import random
[ 6738, 36624, 18, 67, 13, 7295, 13, 20519, 7447, 381, 2977, 1330, 1635, 198, 6738, 36624, 18, 67, 1330, 3082, 84, 28780, 40786, 198, 6738, 4738, 1330, 4738, 628, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 198, 220, ...
2.34
50
from aesara.compile import optdb from aesara.graph.opt import GraphToGPULocalOptGroup, TopoOptimizer, local_optimizer from aesara.graph.optdb import ( EquilibriumDB, LocalGroupDB, OptimizationDatabase, SequenceDB, ) gpu_optimizer = EquilibriumDB() gpu_cut_copies = EquilibriumDB() # Not used for an Eq...
[ 6738, 257, 274, 3301, 13, 5589, 576, 1330, 2172, 9945, 198, 6738, 257, 274, 3301, 13, 34960, 13, 8738, 1330, 29681, 2514, 33346, 14565, 27871, 13247, 11, 5849, 78, 27871, 320, 7509, 11, 1957, 62, 40085, 7509, 198, 6738, 257, 274, 3301...
2.842878
681
""" Module for jenkinsapi Node class """ from jenkinsapi.jenkinsbase import JenkinsBase from jenkinsapi.custom_exceptions import PostRequired import logging try: from urllib import quote as urlquote except ImportError: # Python3 from urllib.parse import quote as urlquote log = logging.getLogger(__name__)...
[ 37811, 198, 26796, 329, 474, 268, 5331, 15042, 19081, 1398, 198, 37811, 198, 198, 6738, 474, 268, 5331, 15042, 13, 48796, 5331, 8692, 1330, 21835, 14881, 198, 6738, 474, 268, 5331, 15042, 13, 23144, 62, 1069, 11755, 1330, 2947, 37374, 1...
3.156863
102
## # This software was developed and / or modified by Raytheon Company, # pursuant to Contract DG133W-05-CQ-1067 with the US Government. # # U.S. EXPORT CONTROLLED TECHNICAL DATA # This software product contains export-restricted data whose # export/transfer/disclosure is restricted by U.S. law. Dissemination # to non...
[ 2235, 198, 2, 770, 3788, 373, 4166, 290, 1220, 393, 9518, 416, 7760, 1169, 261, 5834, 11, 198, 2, 12997, 284, 17453, 46133, 16945, 54, 12, 2713, 12, 34, 48, 12, 940, 3134, 351, 262, 1294, 5070, 13, 198, 2, 220, 198, 2, 471, 13, ...
2.814245
2,471
from pyspark import SparkContext, SparkConf, SparkFiles from pyspark.sql import SQLContext, Row import ConfigParser as configparser from subprocess import Popen, PIPE from datetime import datetime from vina_utils import get_directory_complex_pdb_analysis, get_files_pdb, get_name_model_pdb, get_ligand_from_receptor_liga...
[ 6738, 279, 893, 20928, 1330, 17732, 21947, 11, 17732, 18546, 11, 17732, 25876, 198, 6738, 279, 893, 20928, 13, 25410, 1330, 16363, 21947, 11, 11314, 198, 11748, 17056, 46677, 355, 4566, 48610, 198, 6738, 850, 14681, 1330, 8099, 268, 11, ...
3.126829
205
# Copyright 2019 NEC Corporation # # 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 wri...
[ 2, 15069, 13130, 41804, 10501, 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, 73...
2.032613
4,722
#!/usr/bin/env python3 from typing import Any, Union def main(): q = AnimalQueue() dogs = [Dog("d1"), Dog("d2"), Dog("d3")] cats = [Cat("c1"), Cat("c2"), Cat("c3")] both = [] while cats != []: both.append(cats.pop()) both.append(dogs.pop()) [q.enqueue(animal) for animal ...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 198, 6738, 19720, 1330, 4377, 11, 4479, 628, 628, 628, 628, 198, 4299, 1388, 33529, 198, 220, 220, 220, 10662, 796, 13792, 34991, 3419, 198, 220, 220, 220, 6844, 796, 685, 32942, ...
2.198556
277
# vi: ts=4 sw=4 '''AreaDetector Devices `areaDetector`_ detector abstractions .. _areaDetector: https://areadetector.github.io/master/index.html ''' import warnings from .base import (ADBase, ADComponent as C) from . import cam __all__ = ['DetectorBase', 'AreaDetector', 'AdscDetector', ...
[ 2, 25357, 25, 40379, 28, 19, 1509, 28, 19, 198, 7061, 6, 30547, 11242, 9250, 29362, 198, 198, 63, 20337, 11242, 9250, 63, 62, 31029, 12531, 507, 198, 198, 492, 4808, 20337, 11242, 9250, 25, 3740, 1378, 533, 324, 316, 9250, 13, 12567...
1.87415
588
print('Controle de Terrenos') print('-' * 20) l = float(input('Largura (m): ')) c = float(input('Comprimento (m): ')) area(f'A rea do seu terreno {l}X{c} de {l*c}m.')
[ 198, 198, 4798, 10786, 4264, 18090, 390, 3813, 918, 418, 11537, 198, 4798, 10786, 19355, 1635, 1160, 8, 198, 75, 796, 12178, 7, 15414, 10786, 43, 853, 5330, 357, 76, 2599, 705, 4008, 198, 66, 796, 12178, 7, 15414, 10786, 5377, 1050, ...
2.098765
81
import os from functools import wraps from os.path import join as join_path from dash import Dash from flask import make_response, render_template_string, redirect excluded_resources_endpoints = ( 'static', '_dash_assets.static', '/_favicon.ico', '/login', '/logout', '/_user', '/auth') def add_routes(app,...
[ 11748, 28686, 198, 198, 6738, 1257, 310, 10141, 1330, 27521, 198, 6738, 28686, 13, 6978, 1330, 4654, 355, 4654, 62, 6978, 198, 198, 6738, 14470, 1330, 16189, 198, 6738, 42903, 1330, 787, 62, 26209, 11, 8543, 62, 28243, 62, 8841, 11, 1...
2.615152
660
# Generated by Django 4.0.1 on 2022-04-07 01:20 from django.db import migrations, models
[ 2, 2980, 515, 416, 37770, 604, 13, 15, 13, 16, 319, 33160, 12, 3023, 12, 2998, 5534, 25, 1238, 198, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 11, 4981, 628 ]
2.84375
32
# -*- coding: utf-8 -*- # Generated by Django 1.9 on 2015-12-21 12:22 from __future__ import unicode_literals from django.conf import settings 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, 24, 319, 1853, 12, 1065, 12, 2481, 1105, 25, 1828, 198, 6738, 11593, 37443, 834, 1330, 28000, 1098, 62, 17201, 874, 198, 198, 6738, ...
2.92
75
# -*- coding: utf-8 -*- """Module compliance_suite.exceptions.user_config_exception.py This module contains class definition for user config file exceptions. """
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 26796, 11846, 62, 2385, 578, 13, 1069, 11755, 13, 7220, 62, 11250, 62, 1069, 4516, 13, 9078, 198, 198, 1212, 8265, 4909, 1398, 6770, 329, 2836, 4566, 2393, 13269,...
3.446809
47
#!/usr/bin/env python3 # Advent of Code 2021, Day 15 (https://adventofcode.com/2021/day/15) # Author: Ben Bornstein import collections import heapq Point = collections.namedtuple('Point', ['x', 'y']) Point.__add__ = lambda self, q: Point(self[0] + q[0], self[1] + q[1]) def resize (self, factor): ...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 198, 2, 33732, 286, 6127, 33448, 11, 3596, 1315, 357, 5450, 1378, 324, 1151, 1659, 8189, 13, 785, 14, 1238, 2481, 14, 820, 14, 1314, 8, 198, 2, 6434, 25, 3932, 18889, 5714, 628...
2.364917
781
# This file is part of Indico. # Copyright (C) 2002 - 2020 CERN # # Indico is free software; you can redistribute it and/or # modify it under the terms of the MIT License; see the # LICENSE file for more details. from flask import redirect from indico.modules.events.abstracts.models.abstracts import Abstract from ind...
[ 2, 770, 2393, 318, 636, 286, 1423, 3713, 13, 198, 2, 15069, 357, 34, 8, 6244, 532, 12131, 327, 28778, 198, 2, 198, 2, 1423, 3713, 318, 1479, 3788, 26, 345, 460, 17678, 4163, 340, 290, 14, 273, 198, 2, 13096, 340, 739, 262, 2846,...
3.333333
117
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # # Code generated by Microsoft (R) AutoRest Code Generator. # Changes ...
[ 2, 19617, 28, 40477, 12, 23, 198, 2, 16529, 35937, 198, 2, 15069, 357, 66, 8, 5413, 10501, 13, 1439, 2489, 10395, 13, 198, 2, 49962, 739, 262, 17168, 13789, 13, 4091, 13789, 13, 14116, 287, 262, 1628, 6808, 329, 198, 2, 5964, 1321...
5.035088
114
from parsel import Selector import requests, json, re params = { "q": "richard branson", "tbm": "bks", "gl": "us", "hl": "en" } headers = { "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/98.0.4758.87 Safari/537.36", } html = requests.get("ht...
[ 6738, 1582, 741, 1330, 9683, 273, 198, 11748, 7007, 11, 33918, 11, 302, 198, 198, 37266, 796, 1391, 198, 220, 220, 220, 366, 80, 1298, 366, 7527, 446, 865, 23103, 1600, 198, 220, 220, 220, 366, 83, 20475, 1298, 366, 65, 591, 1600, ...
2.345269
782
r""" Contains classes and methods that can be used when simulating the game Higher-or-Lower and performing statistical analysis on different games. """ from hol import ( cards, constants, ) from hol._hol import ( generate_all_games, should_pick_higher, is_a_winning_game, generate_win_statist...
[ 81, 37811, 198, 198, 4264, 1299, 6097, 290, 5050, 326, 460, 307, 973, 618, 985, 8306, 262, 983, 198, 48708, 12, 273, 12, 31426, 290, 9489, 13905, 3781, 319, 1180, 1830, 13, 198, 198, 37811, 198, 198, 6738, 6039, 1330, 357, 198, 220,...
3
109
# [h] slide selected glyphs from mojo.roboFont import CurrentFont, CurrentGlyph, version from vanilla import * from hTools2 import hDialog from hTools2.modules.fontutils import get_full_name, get_glyphs from hTools2.modules.messages import no_font_open, no_glyph_selected
[ 2, 685, 71, 60, 10649, 6163, 25874, 82, 198, 198, 6738, 6941, 7639, 13, 305, 2127, 23252, 1330, 9236, 23252, 11, 9236, 38, 306, 746, 11, 2196, 198, 6738, 16858, 1330, 1635, 198, 6738, 289, 33637, 17, 1330, 289, 44204, 198, 6738, 289...
3.174419
86
# -*- coding: utf-8 -*- from __future__ import absolute_import, unicode_literals import io import json import os import random import re import string import time from functools import wraps from hashlib import sha1 import six try: from secrets import choice except ImportError: from random import choice str...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 6738, 11593, 37443, 834, 1330, 4112, 62, 11748, 11, 28000, 1098, 62, 17201, 874, 198, 198, 11748, 33245, 198, 11748, 33918, 198, 11748, 28686, 198, 11748, 4738, 198, 11748...
2.334855
657
# Copyright 2015 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
[ 2, 15069, 1853, 383, 309, 22854, 37535, 46665, 13, 1439, 6923, 33876, 13, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 2, 345, 743, 407, 779, 428, 2393, 2845, 287, 11846, ...
3.265599
1,811
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """Test Tango device server for use with scaling tests.""" import sys import time import argparse import tango from tango.server import run from TestDevice import TestDevice def init_callback(): """Report server start up times. This callback is executed post ...
[ 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, 14402, 309, 14208, 3335, 4382, 329, 779, 351, 20796, 5254, 526, 15931, 198, 11748, 25064, 198, 11748, 640, 1...
2.601784
1,233
from pathlib import Path import pytest from haystack.document_store.elasticsearch import ElasticsearchDocumentStore from haystack.pipeline import TranslationWrapperPipeline, JoinDocuments, ExtractiveQAPipeline, Pipeline, FAQPipeline, \ DocumentSearchPipeline, RootNode from haystack.retriever.dense import DensePas...
[ 6738, 3108, 8019, 1330, 10644, 198, 198, 11748, 12972, 9288, 198, 198, 6738, 27678, 25558, 13, 22897, 62, 8095, 13, 417, 3477, 12947, 1330, 48567, 12947, 24941, 22658, 198, 6738, 27678, 25558, 13, 79, 541, 4470, 1330, 33322, 36918, 2848, ...
2.71519
1,106
import sys import os import subprocess import shutil import time import logging from Bio import SeqIO from multiprocessing import Pool import pysam from telr.TELR_utility import mkdir, check_exist, format_time def get_local_contigs( assembler, polisher, contig_dir, vcf_parsed, out, sample_name...
[ 11748, 25064, 198, 11748, 28686, 198, 11748, 850, 14681, 198, 11748, 4423, 346, 198, 11748, 640, 198, 11748, 18931, 198, 6738, 16024, 1330, 1001, 80, 9399, 198, 6738, 18540, 305, 919, 278, 1330, 19850, 198, 11748, 279, 893, 321, 198, 67...
1.875972
7,071
# pylint: disable=protected-access """ Test the wrappers for the C API. """ import os from contextlib import contextmanager import numpy as np import numpy.testing as npt import pandas as pd import pytest import xarray as xr from packaging.version import Version from pygmt import Figure, clib from pygmt.clib.conversio...
[ 2, 279, 2645, 600, 25, 15560, 28, 24326, 12, 15526, 198, 37811, 198, 14402, 262, 7917, 11799, 329, 262, 327, 7824, 13, 198, 37811, 198, 11748, 28686, 198, 6738, 4732, 8019, 1330, 4732, 37153, 198, 198, 11748, 299, 32152, 355, 45941, 1...
2.188321
11,491
"""Type stubs for _pytest._code.""" # This class actually has more functions than are specified here. # We don't use these features, so I don't think its worth including # them in our type stub. We can always change it later.
[ 37811, 6030, 17071, 82, 329, 4808, 9078, 9288, 13557, 8189, 526, 15931, 198, 198, 2, 770, 1398, 1682, 468, 517, 5499, 621, 389, 7368, 994, 13, 198, 2, 775, 836, 470, 779, 777, 3033, 11, 523, 314, 836, 470, 892, 663, 2861, 1390, 19...
3.847458
59
if __name__ == "__main__": n = int(input("Enter a number: ")) print(get_factorization(n))
[ 198, 198, 361, 11593, 3672, 834, 6624, 366, 834, 12417, 834, 1298, 198, 220, 220, 220, 299, 796, 493, 7, 15414, 7203, 17469, 257, 1271, 25, 366, 4008, 198, 220, 220, 220, 3601, 7, 1136, 62, 31412, 1634, 7, 77, 4008, 198 ]
2.380952
42
from __future__ import annotations from datetime import timedelta import operator from sys import getsizeof from typing import ( TYPE_CHECKING, Any, Callable, Hashable, List, cast, ) import warnings import numpy as np from pandas._libs import index as libindex from pandas._libs.lib import no_...
[ 6738, 11593, 37443, 834, 1330, 37647, 198, 198, 6738, 4818, 8079, 1330, 28805, 12514, 198, 11748, 10088, 198, 6738, 25064, 1330, 3011, 1096, 1659, 198, 6738, 19720, 1330, 357, 198, 220, 220, 220, 41876, 62, 50084, 2751, 11, 198, 220, 22...
2.134084
7,458
import torch import torch.nn as nn
[ 11748, 28034, 198, 11748, 28034, 13, 20471, 355, 299, 77, 198 ]
3.181818
11
""" Logging functions for the ``jwql`` automation platform. This module provides decorators to log the execution of modules. Log files are written to the ``logs/`` directory in the ``jwql`` central storage area, named by module name and timestamp, e.g. ``monitor_filesystem/monitor_filesystem_2018-06-20-15:22:51.log`...
[ 198, 37811, 5972, 2667, 5499, 329, 262, 7559, 73, 86, 13976, 15506, 22771, 3859, 13, 198, 198, 1212, 8265, 3769, 11705, 2024, 284, 2604, 262, 9706, 286, 13103, 13, 220, 5972, 198, 16624, 389, 3194, 284, 262, 7559, 6404, 82, 14, 15506,...
2.683025
1,732
from aiohttp import ClientSession from typing import Optional session: Optional[ClientSession] = None __all__ = (session,)
[ 6738, 257, 952, 4023, 1330, 20985, 36044, 198, 6738, 19720, 1330, 32233, 198, 198, 29891, 25, 32233, 58, 11792, 36044, 60, 796, 6045, 198, 198, 834, 439, 834, 796, 357, 29891, 35751, 198 ]
3.787879
33