content
stringlengths
1
1.04M
input_ids
listlengths
1
774k
ratio_char_token
float64
0.38
22.9
token_count
int64
1
774k
import numpy as np import os import pickle def seqrc(string): "returns the reverse complement of a sequence" dic_rc = constant_key_dict({'a':'t','c':'g','g':'c','t':'a','A':'T','C':'G','G':'C','T':'A'}) string_rc = "".join([dic_rc[c] for c in string][::-1]) return string_rc def getFastaWeb(chrom,pos1,po...
[ 11748, 299, 32152, 355, 45941, 198, 11748, 28686, 198, 11748, 2298, 293, 198, 4299, 33756, 6015, 7, 8841, 2599, 198, 220, 220, 220, 366, 7783, 82, 262, 9575, 16829, 286, 257, 8379, 1, 198, 220, 220, 220, 288, 291, 62, 6015, 796, 693...
1.873525
5,764
# -*- coding: utf-8 -*- """Merge reader for SQLite storage files.""" from __future__ import unicode_literals import os import sqlite3 import zlib from plaso.containers import errors from plaso.containers import event_sources from plaso.containers import events from plaso.containers import reports from plaso.containe...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 13102, 469, 9173, 329, 16363, 578, 6143, 3696, 526, 15931, 198, 198, 6738, 11593, 37443, 834, 1330, 28000, 1098, 62, 17201, 874, 198, 198, 11748, 28686, 198, 11748,...
2.75864
3,530
import os from pathlib import Path import pytest from robotidy.app import Robotidy from robotidy.utils import decorate_diff_with_color, split_args_from_name_or_path, GlobalFormattingConfig @pytest.fixture
[ 11748, 28686, 198, 6738, 3108, 8019, 1330, 10644, 198, 198, 11748, 12972, 9288, 198, 198, 6738, 9379, 19325, 13, 1324, 1330, 16071, 19325, 198, 6738, 9379, 19325, 13, 26791, 1330, 11705, 378, 62, 26069, 62, 4480, 62, 8043, 11, 6626, 62,...
3.28125
64
# Generated by Django 3.2 on 2021-06-14 21:05 from django.db import migrations, models
[ 2, 2980, 515, 416, 37770, 513, 13, 17, 319, 33448, 12, 3312, 12, 1415, 2310, 25, 2713, 198, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 11, 4981, 628 ]
2.966667
30
f() print("PASS")
[ 198, 69, 3419, 198, 198, 4798, 7203, 47924, 4943 ]
2.111111
9
# Copyright 2020 Google LLC. 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 a...
[ 2, 15069, 12131, 3012, 11419, 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, ...
3.151857
1,508
from django.views import generic class JalQuerySetView(generic.ListView): """View mixin to render a JSON response for Select2.""" def render_to_response(self, context): """Return a JSON response in Select2 format.""" return 'hello !'
[ 198, 6738, 42625, 14208, 13, 33571, 1330, 14276, 628, 198, 4871, 28649, 20746, 7248, 7680, 7, 41357, 13, 8053, 7680, 2599, 198, 220, 220, 220, 37227, 7680, 5022, 259, 284, 8543, 257, 19449, 2882, 329, 9683, 17, 526, 15931, 628, 220, 2...
3.011494
87
__author__ = 'Devesh Bajpai' ''' https://codeforces.com/problemset/problem/1167/A Solution: From the first occurrence of 8 in the given string s, we should have at least 10 characters. Say that 8 exists on ith index. Then n - 1 - i + 1 = n - i would give the length of the longest string starting with 8. That should b...
[ 834, 9800, 834, 796, 705, 5005, 1158, 71, 347, 1228, 49712, 6, 198, 198, 7061, 6, 198, 5450, 1378, 19815, 891, 273, 728, 13, 785, 14, 1676, 22143, 316, 14, 45573, 14, 1157, 3134, 14, 32, 198, 198, 46344, 25, 3574, 262, 717, 19810,...
2.784314
204
# Copyright 2014 Hewlett-Packard Development Company, L.P. # # Author: Kiall Mac Innes <kiall@hpe.com> # # 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/...
[ 2, 15069, 1946, 30446, 15503, 12, 11869, 446, 7712, 5834, 11, 406, 13, 47, 13, 198, 2, 198, 2, 6434, 25, 21927, 439, 4100, 554, 2516, 1279, 4106, 439, 31, 71, 431, 13, 785, 29, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, ...
3.624413
213
# Generated by Django 4.0 on 2022-03-08 23:22 from django.db import migrations, models
[ 2, 2980, 515, 416, 37770, 604, 13, 15, 319, 33160, 12, 3070, 12, 2919, 2242, 25, 1828, 198, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 11, 4981, 628 ]
2.966667
30
from __future__ import print_function import fileinput import asyncio asyncLib = asyncio.__file__ lineNum = 0 # This script is used to address an issue on Windows with asyncio in the Tornado web server. # See links below for more information # https://github.com/tornadoweb/tornado/issues/2608 # https://www.tornadoweb...
[ 6738, 11593, 37443, 834, 1330, 3601, 62, 8818, 198, 11748, 2393, 15414, 198, 11748, 30351, 952, 198, 198, 292, 13361, 25835, 796, 30351, 952, 13, 834, 7753, 834, 198, 1370, 33111, 796, 657, 198, 198, 2, 770, 4226, 318, 973, 284, 2209,...
2.434959
492
from collections import Counter
[ 6738, 17268, 1330, 15034, 198, 220, 220, 220, 220 ]
4
9
import sys import numpy ensg_gene = open(sys.argv[1], 'r') abun_file = open(sys.argv[2], 'r') output_file = open(sys.argv[3],'w') #set up ensg dict ensg_dict = {} gene_dict = {} gene_list = [] for line in ensg_gene: ensg, gene = line.strip().split() ensg_dict[ ensg ] = gene if gene not in gene_dict: gene_di...
[ 11748, 25064, 198, 11748, 299, 32152, 198, 198, 641, 70, 62, 70, 1734, 796, 1280, 7, 17597, 13, 853, 85, 58, 16, 4357, 705, 81, 11537, 198, 397, 403, 62, 7753, 796, 1280, 7, 17597, 13, 853, 85, 58, 17, 4357, 705, 81, 11537, 198,...
2.255489
501
# coding: utf-8 # /*########################################################################## # Copyright (C) 2021 European Synchrotron Radiation Facility # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # i...
[ 2, 19617, 25, 3384, 69, 12, 23, 198, 2, 11900, 29113, 29113, 7804, 2235, 198, 2, 15069, 357, 34, 8, 33448, 3427, 16065, 354, 10599, 1313, 47532, 29118, 198, 2, 198, 2, 2448, 3411, 318, 29376, 7520, 11, 1479, 286, 3877, 11, 284, 59...
2.462446
1,611
import pygame import os import time import random import requests from rx import Observable, Observer from rx.concurrency import ThreadPoolScheduler from waffles_feels import waffles_feels from waffles_commands import WafflesCMD from waffles_pos import five_second_timer print('0') #Updates the actual displayed image...
[ 11748, 12972, 6057, 198, 11748, 28686, 198, 11748, 640, 198, 11748, 4738, 198, 11748, 7007, 198, 6738, 374, 87, 1330, 19243, 540, 11, 27058, 198, 6738, 374, 87, 13, 1102, 34415, 1330, 14122, 27201, 50, 1740, 18173, 628, 198, 6738, 266, ...
3.125
360
################################################################################## ##########--this is an autogenerated python model definition for proDEX--######### ##--original file: Family_Assessment_v05_forprodex.dxi --## ################################################################################## from .lib....
[ 29113, 29113, 14468, 2235, 198, 7804, 2235, 438, 5661, 318, 281, 1960, 519, 877, 515, 21015, 2746, 6770, 329, 386, 35, 6369, 438, 7804, 2, 198, 2235, 438, 14986, 2393, 25, 7884, 62, 8021, 21687, 62, 85, 2713, 62, 1640, 1676, 67, 106...
2.965936
7,486
if __name__ == "__main__": s = MinStack() s.add(5) s.add(-3) s.add(1) s.add(6) s.add(-1) print(s.pop()) print(s.get_min()) s.add(-10) s.pop()
[ 628, 198, 198, 361, 11593, 3672, 834, 6624, 366, 834, 12417, 834, 1298, 198, 220, 220, 220, 264, 796, 1855, 25896, 3419, 198, 220, 220, 220, 264, 13, 2860, 7, 20, 8, 198, 220, 220, 220, 264, 13, 2860, 32590, 18, 8, 198, 220, 220...
1.646018
113
# -------------- import numpy as np import pandas as pd from sklearn.model_selection import train_test_split # path- variable storing file path df = pd.read_csv(path) df.columns[range(5)] X = df.drop(['Price'], axis = 1) y= df.Price X_train,X_test,y_train,y_test = train_test_split(X , y , test_size = 0.3, r...
[ 2, 220, 26171, 198, 11748, 299, 32152, 355, 45941, 201, 198, 11748, 19798, 292, 355, 279, 67, 201, 198, 6738, 1341, 35720, 13, 19849, 62, 49283, 1330, 4512, 62, 9288, 62, 35312, 201, 198, 201, 198, 2, 3108, 12, 7885, 23069, 2393, 31...
2.521552
696
import numpy as np import parl from parl.utils import logger from parl.utils import action_mapping # 将神经网络输出映射到对应的 实际动作取值范围 内 from parl.utils import ReplayMemory # 经验回放 from rlschool import make_env # 使用 RLSchool 创建飞行器环境 from parl.algorithms import DDPG import paddle.fluid as fluid import parl from parl import la...
[ 11748, 299, 32152, 355, 45941, 198, 11748, 1582, 75, 198, 6738, 1582, 75, 13, 26791, 1330, 49706, 198, 6738, 1582, 75, 13, 26791, 1330, 2223, 62, 76, 5912, 220, 1303, 10263, 108, 228, 15351, 163, 119, 237, 163, 121, 239, 163, 119, 2...
1.68042
1,430
# -*- coding: utf-8 -*- import redis import logging try: import simplejson as json except ImportError: import json _logger = logging.getLogger(__name__)
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 11748, 2266, 271, 198, 11748, 18931, 198, 28311, 25, 198, 220, 220, 220, 1330, 2829, 17752, 355, 33918, 198, 16341, 17267, 12331, 25, 198, 220, 220, 220, 1330, 33918, 19...
2.584615
65
import os import pickle import numpy as np from tqdm import tqdm from argparse import ArgumentParser import optuna optuna.logging.set_verbosity ( optuna.logging.ERROR ) # silence Optuna during trials study import warnings warnings.filterwarnings ( "ignore", category = RuntimeWarning ) from sklearn.model_selec...
[ 11748, 28686, 198, 11748, 2298, 293, 198, 11748, 299, 32152, 355, 45941, 198, 198, 6738, 256, 80, 36020, 220, 220, 220, 220, 1330, 256, 80, 36020, 198, 6738, 1822, 29572, 1330, 45751, 46677, 198, 198, 11748, 2172, 9613, 198, 8738, 9613,...
2.137855
7,283
import dsz, dsz.cmd, dsz.control import ops, ops.pprint import ops.data import traceback, sys from optparse import OptionParser if (__name__ == '__main__'): usage = 'python windows\\eventloqs.py [Options]\n-m, --monitor \n Runs in monitor mode, defaults to false\n-i, --interval [timeinterval]\n Interval betw...
[ 198, 11748, 288, 82, 89, 11, 288, 82, 89, 13, 28758, 11, 288, 82, 89, 13, 13716, 198, 11748, 39628, 11, 39628, 13, 381, 22272, 198, 11748, 39628, 13, 7890, 198, 11748, 12854, 1891, 11, 25064, 198, 6738, 2172, 29572, 1330, 16018, 466...
2.839583
480
version="0.2.1"
[ 9641, 2625, 15, 13, 17, 13, 16, 1 ]
1.875
8
import logging from django.core.management.base import BaseCommand from django.utils.translation import ugettext_lazy as _ from oscar.apps.customer.alerts import utils logger = logging.getLogger(__name__) class Command(BaseCommand): """ Check stock records of products for availability and send ...
[ 11748, 18931, 201, 198, 201, 198, 6738, 42625, 14208, 13, 7295, 13, 27604, 13, 8692, 1330, 7308, 21575, 201, 198, 6738, 42625, 14208, 13, 26791, 13, 41519, 1330, 334, 1136, 5239, 62, 75, 12582, 355, 4808, 201, 198, 201, 198, 6738, 267...
2.755639
266
from __future__ import print_function from collections import OrderedDict import os import shutil import subprocess import tempfile import textwrap import unittest import conda_smithy.lint_recipe as linter if __name__ == '__main__': unittest.main()
[ 6738, 11593, 37443, 834, 1330, 3601, 62, 8818, 198, 6738, 17268, 1330, 14230, 1068, 35, 713, 198, 11748, 28686, 198, 11748, 4423, 346, 198, 11748, 850, 14681, 198, 11748, 20218, 7753, 198, 11748, 2420, 37150, 198, 11748, 555, 715, 395, ...
3.185185
81
#!/usr/bin/env python """A script to split a fasta file into multiple smaller files. Output files will be <original>.xx.fasta """ from __future__ import print_function import argparse import sys import os import re from os.path import join as ospj if __name__ == "__main__": parser = argparse.ArgumentParser(descr...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 37811, 32, 4226, 284, 6626, 257, 3049, 64, 2393, 656, 3294, 4833, 3696, 13, 198, 198, 26410, 3696, 481, 307, 1279, 14986, 28401, 5324, 13, 7217, 64, 198, 37811, 198, 6738, 11593, 37443...
3.130045
223
# -*- coding: utf-8 -*- import dataset,codecs, Names, sqlite3 """ Under MIT-Licence, 2016 Perttu Rautaniemi """ def createtables(): """ Opening the database and tables, create tables if they dont exist """ conn = sqlite3.connect('LuontonurkkaDB.db') conn.execute('''CREATE TABLE `grid` ( `id...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 11748, 27039, 11, 19815, 721, 82, 11, 28531, 11, 44161, 578, 18, 198, 198, 37811, 198, 9203, 17168, 12, 26656, 594, 11, 1584, 350, 861, 28047, 371, 2306, 3216, 43967, ...
2.131849
584
# -*- coding: utf-8 -*- import math import threading import time
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 11748, 10688, 198, 11748, 4704, 278, 198, 11748, 640, 628, 628 ]
2.653846
26
from typing import Any, Tuple from pesto.ws.core.match_apply import MatchApply, Json
[ 6738, 19720, 1330, 4377, 11, 309, 29291, 198, 198, 6738, 28064, 78, 13, 18504, 13, 7295, 13, 15699, 62, 39014, 1330, 13225, 44836, 11, 449, 1559, 628 ]
3.222222
27
# 2019-11-15 00:35:39(JST) import operator as op import sys # import collections # import math # from string import ascii_lowercase, ascii_uppercase, digits # from bisect import bisect_left as bi_l, bisect_right as bi_r # import itertools from functools import reduce # from scipy.misc import comb # float ...
[ 2, 13130, 12, 1157, 12, 1314, 3571, 25, 2327, 25, 2670, 7, 41, 2257, 8, 201, 198, 11748, 10088, 355, 1034, 201, 198, 11748, 25064, 201, 198, 201, 198, 2, 1330, 17268, 201, 198, 2, 1330, 10688, 201, 198, 2, 422, 4731, 1330, 355, ...
2.612903
155
from typing import Sequence, Union
[ 6738, 19720, 1330, 45835, 11, 4479, 198 ]
5
7
r""" CLI === **DO NOT USE (WIP)** This module contains the command line interface for gperc. Is this really needed? I am not sure. But having something along the lines of CLI means that running orchestration jobs would be possible. Add code to your github actions by loading data from one place, dispatch this for trai...
[ 81, 37811, 198, 5097, 40, 198, 18604, 198, 198, 1174, 18227, 5626, 23210, 357, 54, 4061, 8, 1174, 198, 198, 1212, 8265, 4909, 262, 3141, 1627, 7071, 329, 308, 525, 66, 13, 1148, 428, 1107, 2622, 30, 314, 716, 407, 1654, 13, 198, 1...
2.897436
819
"""Python module to request PMU data from a running ANDES """ import logging import time from .dime import Dime from numpy import array, ndarray, zeros from pypmu import Pmu from pypmu.frame import ConfigFrame2, HeaderFrame if __name__ == "__main__": mini = MiniPMU( name='TestPMU', dime_addre...
[ 37811, 37906, 8265, 284, 2581, 3122, 52, 1366, 422, 257, 2491, 5357, 1546, 198, 37811, 198, 198, 11748, 18931, 198, 11748, 640, 198, 198, 6738, 764, 67, 524, 1330, 360, 524, 198, 6738, 299, 32152, 1330, 7177, 11, 299, 67, 18747, 11, ...
2.415663
166
print("St-1") print(2/0) print("St-2")
[ 4798, 7203, 1273, 12, 16, 4943, 198, 4798, 7, 17, 14, 15, 8, 198, 4798, 7203, 1273, 12, 17, 4943, 198 ]
1.857143
21
import torch from torch.utils.data import Dataset import json import os from PIL import Image from utils.trms_util import transform class PascalVOCDataset(Dataset): """ A Dataset class to be used in a DataLoader to create batches. """ def __init__(self, data_folder, split="TEST", keep_difficult=Fals...
[ 11748, 28034, 198, 6738, 28034, 13, 26791, 13, 7890, 1330, 16092, 292, 316, 198, 11748, 33918, 198, 11748, 28686, 198, 6738, 350, 4146, 1330, 7412, 198, 198, 6738, 3384, 4487, 13, 2213, 907, 62, 22602, 1330, 6121, 628, 198, 4871, 35163,...
2.407979
777
#!/usr/bin/env python from distutils.core import setup from setuptools.command.test import test as TestCommand setup(name='neukrill-net', version='1.0', description='Neukrill-net NDSB tools', author='neuroglycerin', author_email='root@finlaymagui.re', packages=['neukrill_net'], tes...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 198, 6738, 1233, 26791, 13, 7295, 1330, 9058, 198, 6738, 900, 37623, 10141, 13, 21812, 13, 9288, 1330, 1332, 355, 6208, 21575, 198, 198, 40406, 7, 3672, 11639, 710, 2724, 20190, 12, 32...
1.755844
385
from tensornetwork.contractors.custom_path_solvers import pathsolvers from tensornetwork.contractors.custom_path_solvers import nconinterface #pylint: disable=line-too-long from tensornetwork.contractors.custom_path_solvers.pathsolvers import greedy_cost_solve, greedy_size_solve, full_solve_complete #pylint: disable=li...
[ 6738, 11192, 1211, 316, 1818, 13, 28484, 669, 13, 23144, 62, 6978, 62, 34453, 690, 1330, 13532, 349, 690, 198, 6738, 11192, 1211, 316, 1818, 13, 28484, 669, 13, 23144, 62, 6978, 62, 34453, 690, 1330, 299, 1102, 39994, 198, 2, 79, 26...
2.980519
154
#!/usr/bin/python2 import os import yaml
[ 2, 48443, 14629, 14, 8800, 14, 29412, 17, 198, 198, 11748, 28686, 198, 11748, 331, 43695, 198 ]
2.470588
17
from .base import * from .site import *
[ 6738, 764, 8692, 1330, 1635, 198, 6738, 764, 15654, 1330, 1635, 198 ]
3.333333
12
import numpy as np from np_model_base import NNModelBase import pandas as pd __author__ = "Christopher Potts" __version__ = "CS224u, Stanford, Spring 2020" if __name__ == '__main__': simple_example()
[ 11748, 299, 32152, 355, 45941, 198, 6738, 45941, 62, 19849, 62, 8692, 1330, 399, 45, 17633, 14881, 198, 11748, 19798, 292, 355, 279, 67, 198, 198, 834, 9800, 834, 796, 366, 38025, 6902, 912, 1, 198, 834, 9641, 834, 796, 366, 7902, 2...
2.929577
71
# Generated by Django 2.0.2 on 2018-02-27 10:01 from django.db import migrations, models
[ 2, 2980, 515, 416, 37770, 362, 13, 15, 13, 17, 319, 2864, 12, 2999, 12, 1983, 838, 25, 486, 198, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 11, 4981, 628 ]
2.84375
32
import os import numpy as np import cv2 import argparse from sklearn.metrics import confusion_matrix import matplotlib.pyplot as plt import seaborn as sns from tensorflow.keras import Input from model import u_net from preprocessing.preprocess_utils import display from experiments import lip_hair_color def make_confu...
[ 11748, 28686, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 269, 85, 17, 198, 11748, 1822, 29572, 198, 6738, 1341, 35720, 13, 4164, 10466, 1330, 10802, 62, 6759, 8609, 198, 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 198,...
2.094695
4,731
import large_image_source_tiff as tiff # from large_image.tilesource.base import GirderTileSource from large_image_source_tiff import girder_source from .tiff_reader import TiledTiffDirectory tiff.TiledTiffDirectory = TiledTiffDirectory
[ 11748, 1588, 62, 9060, 62, 10459, 62, 83, 733, 355, 256, 733, 198, 2, 422, 1588, 62, 9060, 13, 83, 2915, 1668, 13, 8692, 1330, 23837, 1082, 35103, 7416, 198, 6738, 1588, 62, 9060, 62, 10459, 62, 83, 733, 1330, 37370, 1082, 62, 104...
3.2
75
# Auto generated by generator.py. Delete this line if you make modification. from scrapy.spiders import Rule from scrapy.linkextractors import LinkExtractor XPATH = { 'name' : "//div[@class='header_layer_2']/h1", 'price' : "//input[@name='price']/@value", 'category' : "//div[@class='thanh_dinh_huong']/a", ...
[ 2, 11160, 7560, 416, 17301, 13, 9078, 13, 23520, 428, 1627, 611, 345, 787, 17613, 13, 198, 6738, 15881, 88, 13, 2777, 4157, 1330, 14330, 198, 6738, 15881, 88, 13, 2815, 365, 742, 974, 669, 1330, 7502, 11627, 40450, 198, 198, 27481, ...
2.24505
404
# Generated by Django 2.1.3 on 2019-01-08 04:17 from django.db import migrations
[ 2, 2980, 515, 416, 37770, 362, 13, 16, 13, 18, 319, 13130, 12, 486, 12, 2919, 8702, 25, 1558, 198, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 628 ]
2.766667
30
import numpy as np import time import xgboost as xgb from sklearn.model_selection import KFold from regularization.score import myFeval from sklearn.metrics import mean_squared_error from regularization.data_process import data_process s = time.time() X_train, y_train, X_test, train_len, test_len = data_process() prin...
[ 11748, 299, 32152, 355, 45941, 198, 11748, 640, 198, 11748, 2124, 70, 39521, 355, 2124, 22296, 198, 6738, 1341, 35720, 13, 19849, 62, 49283, 1330, 509, 37, 727, 198, 6738, 3218, 1634, 13, 26675, 1330, 616, 37, 18206, 198, 6738, 1341, ...
1.690583
1,338
from django.test import TestCase from apps.datablock.models import DataBlock from apps.fleet.models import Fleet from apps.physicaldevice.models import Device from apps.stream.models import StreamId, StreamVariable from ..test_util import TestMixin from .utils import * from .utils import _get_real_slug
[ 6738, 42625, 14208, 13, 9288, 1330, 6208, 20448, 198, 198, 6738, 6725, 13, 19608, 397, 5354, 13, 27530, 1330, 6060, 12235, 198, 6738, 6725, 13, 33559, 13, 27530, 1330, 20001, 198, 6738, 6725, 13, 42854, 25202, 13, 27530, 1330, 16232, 19...
3.698795
83
# Copyright 2016 Google 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, 1584, 3012, 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, 921, 743, ...
3.605714
175
import nengo model = nengo.Network() with model: a = nengo.Ensemble(n_neurons=100, dimensions=2, radius=1) stim = nengo.Node([0,0]) nengo.Connection(stim, a)
[ 11748, 299, 1516, 78, 198, 198, 19849, 796, 299, 1516, 78, 13, 26245, 3419, 198, 4480, 2746, 25, 198, 220, 220, 220, 257, 796, 299, 1516, 78, 13, 4834, 15140, 7, 77, 62, 710, 333, 684, 28, 3064, 11, 15225, 28, 17, 11, 16874, 28,...
2.068966
87
# 時系列予測の問題に季節項を導入する # 時系列データは、目的変数を観測値の要素の和に分解するのが定石 # Own Library import mcmc_tools import analysis_data as ad import seaborn as sns import matplotlib.pyplot as plt if __name__ == '__main__': spm = SPM('data-ss2.txt', '../model/model12-2') spm.describe() spm.observe_ts() stan_data = spm.create_d...
[ 2, 10545, 25081, 163, 111, 119, 26344, 245, 12859, 230, 162, 116, 105, 15474, 243, 237, 165, 94, 234, 28618, 27764, 96, 163, 107, 222, 165, 254, 227, 31758, 22887, 236, 17739, 98, 33623, 25748, 198, 2, 10545, 25081, 163, 111, 119, 2...
1.520548
365
################################################################################ # # MRC FGU Computational Genomics Group # # $Id$ # # Copyright (C) 2009 Andreas Heger # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # as publish...
[ 29113, 29113, 14468, 198, 2, 198, 2, 220, 220, 337, 7397, 25503, 52, 22476, 864, 5215, 31994, 4912, 198, 2, 198, 2, 220, 220, 720, 7390, 3, 198, 2, 198, 2, 220, 220, 15069, 357, 34, 8, 3717, 33728, 679, 1362, 198, 2, 198, 2, 2...
2.462457
2,930
import webracer import nose.plugins.attrib from . import utils from .apps import kitchen_sink_app utils.app_runner_setup(__name__, kitchen_sink_app.app, 8056) base_config = dict(host='localhost', port=8056) @nose.plugins.attrib.attr('client')
[ 11748, 356, 1671, 11736, 198, 11748, 9686, 13, 37390, 13, 1078, 822, 198, 6738, 764, 1330, 3384, 4487, 198, 6738, 764, 18211, 1330, 9592, 62, 82, 676, 62, 1324, 198, 198, 26791, 13, 1324, 62, 16737, 62, 40406, 7, 834, 3672, 834, 11,...
2.764045
89
from django.db import models from lectures.models import Day # Create your models here.
[ 6738, 42625, 14208, 13, 9945, 1330, 4981, 198, 6738, 25917, 13, 27530, 1330, 3596, 198, 198, 2, 13610, 534, 4981, 994, 13, 628 ]
3.913043
23
from tests.test_helper import * from datetime import date from braintree.dispute import Dispute
[ 6738, 5254, 13, 9288, 62, 2978, 525, 1330, 1635, 198, 6738, 4818, 8079, 1330, 3128, 198, 6738, 865, 2913, 631, 13, 6381, 79, 1133, 1330, 36060, 1133, 198 ]
3.428571
28
"Step 3: Stepping Up to OOP" 'Adding Persistence' # Notice how we still fetch, update, and # reassign to keys to update the shelve. import shelve db = shelve.open('class-shelve') sue = db['sue'] sue.giveRaise(.25) db['sue'] = sue tom = db['tom'] tom.giveRaise(.20) db['tom'] = tom db.close() ''' class instance...
[ 1, 8600, 513, 25, 2441, 2105, 3205, 284, 440, 3185, 1, 198, 6, 32901, 9467, 13274, 6, 198, 2, 17641, 703, 356, 991, 21207, 11, 4296, 11, 290, 220, 198, 2, 12719, 570, 284, 8251, 284, 4296, 262, 7497, 303, 13, 198, 198, 11748, 74...
3.058824
170
#!/usr/bin/python # # Exemplary script to read the annotations generated by the web application # in this repo. # # @author: Luis Carlos Garcia-Peraza Herrera (luiscarlos.gph@gmail.com). # @date : 20 Jan 2021. import argparse import json import cv2 import numpy as np import os # My imports import wat.common def pa...
[ 2, 48443, 14629, 14, 8800, 14, 29412, 198, 2, 220, 198, 2, 1475, 18856, 560, 4226, 284, 1100, 262, 37647, 7560, 416, 262, 3992, 3586, 198, 2, 287, 428, 29924, 13, 198, 2, 198, 2, 2488, 9800, 25, 20894, 17409, 18555, 12, 5990, 7056...
2.967213
305
# Copyright 2018 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 a...
[ 2, 15069, 2864, 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, ...
3.079121
910
import FWCore.ParameterSet.Config as cms from DQMServices.Core.DQMEDHarvester import DQMEDHarvester from DQM.SiPixelPhase1Common.HistogramManager_cfi import * import DQM.SiPixelPhase1Common.TriggerEventFlag_cfi as trigger SiPixelPhase1RecHitsNRecHits = DefaultHistoTrack.clone( name = "rechits", title = "RecHits", ...
[ 11748, 48849, 14055, 13, 36301, 7248, 13, 16934, 355, 269, 907, 198, 6738, 360, 48, 5653, 712, 1063, 13, 14055, 13, 35, 48, 30733, 13587, 1158, 353, 1330, 360, 48, 30733, 13587, 1158, 353, 198, 6738, 360, 48, 44, 13, 42801, 40809, 3...
2.24492
1,821
import os, requests from progressbar import progressbar from caltechdata_api import get_metadata, caltechdata_edit def get_datacite_dates(prefix): """Get sumbitted date for DataCite DOIs with specific prefix""" doi_dates = {} doi_urls = {} url = ( "https://api.datacite.org/dois?query=prefix:" ...
[ 11748, 28686, 11, 7007, 198, 6738, 4371, 5657, 1330, 4371, 5657, 198, 6738, 2386, 13670, 7890, 62, 15042, 1330, 651, 62, 38993, 11, 2386, 13670, 7890, 62, 19312, 628, 198, 4299, 651, 62, 19608, 330, 578, 62, 19581, 7, 40290, 2599, 198...
2.122876
765
import json from app import Category
[ 11748, 33918, 198, 6738, 598, 1330, 21743, 628 ]
4.75
8
"""Transformation between two frames. """ from compas.geometry import Frame from compas.geometry import Point from compas.geometry import Transformation F1 = Frame.worldXY() F2 = Frame([1.5, 1, 0], [0.68, 0.68, 0.27], [-0.67, 0.73, -0.15]) P = Point(2, 2, 2) # local point in F1 # transformation between 2 frames F1, ...
[ 37811, 8291, 1161, 1022, 734, 13431, 13, 198, 37811, 198, 6738, 552, 292, 13, 469, 15748, 1330, 25184, 198, 6738, 552, 292, 13, 469, 15748, 1330, 6252, 198, 6738, 552, 292, 13, 469, 15748, 1330, 49127, 198, 198, 37, 16, 796, 25184, ...
2.85625
160
import os
[ 11748, 28686, 628, 628, 628 ]
3
5
import torch from torch import nn from torchvision import transforms from .faster_rcnn import FasterRCNN from ..builder import DETECTORS from PIL import Image import numpy as np @DETECTORS.register_module()
[ 11748, 28034, 198, 6738, 28034, 1330, 299, 77, 198, 6738, 28034, 10178, 1330, 31408, 198, 198, 6738, 764, 69, 1603, 62, 6015, 20471, 1330, 38996, 7397, 6144, 198, 6738, 11485, 38272, 1330, 38267, 9782, 20673, 198, 6738, 350, 4146, 1330, ...
3.525424
59
from django.conf.urls import url from . import views from django.conf import settings from django.conf.urls.static import static urlpatterns=[ url('^$',views.login_page,name = 'come'), url(r'^new/profile$', views.profile, name='profile'), url(r'^user/', views.user, name='user'), url(r'^search/', v...
[ 6738, 42625, 14208, 13, 10414, 13, 6371, 82, 1330, 19016, 198, 6738, 764, 1330, 5009, 198, 6738, 42625, 14208, 13, 10414, 1330, 6460, 198, 6738, 42625, 14208, 13, 10414, 13, 6371, 82, 13, 12708, 1330, 9037, 628, 198, 6371, 33279, 82, ...
2.627049
244
# Import ROS2 libraries import rclpy from rclpy.node import Node from rclpy.action import ActionClient, ActionServer, GoalResponse, CancelResponse from rclpy.qos import QoSProfile from rclpy.callback_groups import ReentrantCallbackGroup from rclpy.executors import MultiThreadedExecutor # Import message files from geom...
[ 2, 17267, 48263, 17, 12782, 198, 11748, 374, 565, 9078, 198, 6738, 374, 565, 9078, 13, 17440, 1330, 19081, 198, 6738, 374, 565, 9078, 13, 2673, 1330, 7561, 11792, 11, 7561, 10697, 11, 25376, 31077, 11, 27910, 31077, 198, 6738, 374, 56...
3.837719
228
from abc import ABC, abstractmethod from enum import Enum from typing import Optional, Union, Iterable, NoReturn try: # Assume we're a sub-module in a package. from utils import arguments as arg from base.abstract.tree_item import TreeInterface from loggers.extended_logger_interface import ExtendedLoggerI...
[ 6738, 450, 66, 1330, 9738, 11, 12531, 24396, 198, 6738, 33829, 1330, 2039, 388, 198, 6738, 19720, 1330, 32233, 11, 4479, 11, 40806, 540, 11, 1400, 13615, 198, 198, 28311, 25, 220, 1303, 2195, 2454, 356, 821, 257, 850, 12, 21412, 287, ...
3.622951
183
import sys import math BASE=20 Sym2Base={} Base2Sym={} l, h = [int(i) for i in input().split()] for i in range(h): numeral=input() for j in range(BASE): idx=l*j STR=numeral[idx:idx+l] if j in Base2Sym: Base2Sym[j]+=[STR] else: Base2Sym[j]=[STR] for key,...
[ 11748, 25064, 198, 11748, 10688, 198, 198, 33, 11159, 28, 1238, 198, 43094, 17, 14881, 34758, 92, 198, 14881, 17, 43094, 34758, 92, 198, 198, 75, 11, 289, 796, 685, 600, 7, 72, 8, 329, 1312, 287, 5128, 22446, 35312, 3419, 60, 198, ...
2.149047
577
import os import shutil import zipfile import urllib import xml.etree.ElementTree as ET import numpy as np import csv import pandas # from google.colab import drive # from google.colab import files # %matplotlib inline # # automatically reload modules when they have changed # %reload_ext autoreload # %autoreload 2 # ...
[ 11748, 28686, 198, 11748, 4423, 346, 198, 11748, 19974, 7753, 198, 11748, 2956, 297, 571, 198, 11748, 35555, 13, 316, 631, 13, 20180, 27660, 355, 12152, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 269, 21370, 198, 11748, 19798, 292, ...
3.002778
360
"""Clean Code in Python - Chapter 6: Descriptors > A Pythonic Implementation """ class HistoryTracedAttribute: """Trace the values of this attribute into another one given by the name at ``trace_attribute_name``. """ def _needs_to_track_change(self, instance, value) -> bool: """Determine if...
[ 37811, 32657, 6127, 287, 11361, 532, 7006, 718, 25, 2935, 6519, 669, 198, 198, 29, 317, 11361, 291, 46333, 198, 198, 37811, 628, 198, 4871, 7443, 2898, 2286, 33682, 25, 198, 220, 220, 220, 37227, 2898, 558, 262, 3815, 286, 428, 11688,...
2.660312
577
"""Retrieve data from PyPI.""" from distutils.version import LooseVersion from logging import getLogger import xmlrpclib from flask.ext.celery import single_instance from pypi_portal.extensions import celery, db, redis from pypi_portal.models.pypi import Package from pypi_portal.models.redis import POLL_SIMPLE_THROT...
[ 37811, 9781, 30227, 1366, 422, 9485, 11901, 526, 15931, 198, 198, 6738, 1233, 26791, 13, 9641, 1330, 6706, 577, 14815, 198, 6738, 18931, 1330, 651, 11187, 1362, 198, 11748, 35555, 81, 79, 565, 571, 198, 198, 6738, 42903, 13, 2302, 13, ...
2.794243
938
# Project Quex (http://quex.sourceforge.net); License: MIT; # (C) 2005-2020 Frank-Rene Schaefer; #_______________________________________________________________________________ import quex.output.core.state.core as state_coder import quex.output.core.state.entry as entry import quex.output.core.mega_...
[ 2, 4935, 4670, 87, 357, 4023, 1378, 421, 1069, 13, 10459, 30293, 13, 3262, 1776, 13789, 25, 17168, 26, 198, 2, 357, 34, 8, 5075, 12, 42334, 5278, 12, 49, 1734, 35756, 41027, 26, 220, 198, 2, 27193, 2602, 37405, 198, 11748, 627, 10...
2.765805
696
# python-3 # coding: utf-8 ''' Script Name: BuildConsolidatedFeaturesFile.py Created date : Sunday, 27th March Author : Sreejith Menon Description : buildFeatureFl(input file,output file) Reads from a csv file (taken as a parameter) containing a list of image GIDs. Extracts the below features from the IBEIS datas...
[ 2, 21015, 12, 18, 198, 2, 19617, 25, 3384, 69, 12, 23, 198, 7061, 6, 198, 7391, 6530, 25, 10934, 9444, 10180, 515, 23595, 8979, 13, 9078, 198, 198, 41972, 3128, 1058, 3502, 11, 2681, 400, 2805, 198, 198, 13838, 1058, 311, 631, 73,...
2.275402
2,549
# TODO import subprocess import sys import os import re from glob import glob try: from PySide2.QtWidgets import * from PySide2.QtGui import * from PySide2.QtCore import * except: from PySide.QtGui import * from PySide.QtCore import *
[ 2, 16926, 46, 220, 198, 198, 11748, 850, 14681, 198, 11748, 25064, 198, 11748, 28686, 198, 11748, 302, 198, 6738, 15095, 1330, 15095, 198, 198, 28311, 25, 198, 220, 220, 220, 422, 9485, 24819, 17, 13, 48, 83, 54, 312, 11407, 1330, 1...
2.409091
110
# /usr/bin/env python3.6 # -*- mode: python -*- # ============================================================================= # @@-COPYRIGHT-START-@@ # # Copyright (c) 2021, Qualcomm Innovation Center, Inc. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification,...
[ 2, 1220, 14629, 14, 8800, 14, 24330, 21015, 18, 13, 21, 198, 2, 532, 9, 12, 4235, 25, 21015, 532, 9, 12, 198, 2, 38093, 25609, 198, 2, 220, 25248, 12, 34, 3185, 38162, 9947, 12, 2257, 7227, 12, 12404, 198, 2, 198, 2, 220, 1506...
2.415177
3,637
import unittest import logging logging.basicConfig(level=logging.CRITICAL) from aoc2019 import Amplifier
[ 11748, 555, 715, 395, 201, 198, 11748, 18931, 201, 198, 6404, 2667, 13, 35487, 16934, 7, 5715, 28, 6404, 2667, 13, 9419, 2043, 20151, 8, 201, 198, 6738, 257, 420, 23344, 1330, 44074, 7483, 201 ]
3.085714
35
import time from selenium import webdriver import json from crawlpack.helpers import id_gen, connect chrome_options = webdriver.ChromeOptions() chrome_options.add_experimental_option( "prefs",{'profile.managed_default_content_settings.javascript': 2}) driver = webdriver.Chrome(chrome_options=chrome_options) conn, cu...
[ 11748, 640, 198, 6738, 384, 11925, 1505, 1330, 3992, 26230, 198, 11748, 33918, 198, 6738, 27318, 8002, 13, 16794, 364, 1330, 4686, 62, 5235, 11, 2018, 628, 198, 198, 46659, 62, 25811, 796, 3992, 26230, 13, 1925, 5998, 29046, 3419, 198, ...
2.143617
940
from .DepthNet import DepthNet from .MotionNet import MotionNet
[ 6738, 764, 48791, 7934, 1330, 36350, 7934, 198, 6738, 764, 45740, 7934, 1330, 20843, 7934, 198 ]
4
16
from django.test import TestCase from .models import Image, Profile # Create your tests here.
[ 6738, 42625, 14208, 13, 9288, 1330, 6208, 20448, 198, 6738, 764, 27530, 1330, 7412, 11, 13118, 198, 198, 2, 13610, 534, 5254, 994, 13, 198 ]
3.8
25
# # PySNMP MIB module NBS-SIGLANE-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/NBS-SIGLANE-MIB # Produced by pysmi-0.3.4 at Mon Apr 29 20:07:45 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar 27...
[ 2, 198, 2, 9485, 15571, 7378, 337, 9865, 8265, 399, 4462, 12, 50, 3528, 25697, 36, 12, 8895, 33, 357, 4023, 1378, 16184, 76, 489, 8937, 13, 785, 14, 79, 893, 11632, 8, 198, 2, 7054, 45, 13, 16, 2723, 2393, 1378, 14, 14490, 14, ...
2.409369
3,757
from django.contrib import admin from .models import CarMake, CarModel # Register your models here. #admin.site.register(CarMake) #admin.site.register(CarModel) # CarModelInline class # CarModelAdmin class # CarMakeAdmin class with CarModelInline # Register models here admin.site.register(CarModel) admin.site.r...
[ 6738, 42625, 14208, 13, 3642, 822, 1330, 13169, 198, 6738, 764, 27530, 1330, 1879, 12050, 11, 1879, 17633, 628, 198, 2, 17296, 534, 4981, 994, 13, 198, 2, 28482, 13, 15654, 13, 30238, 7, 9914, 12050, 8, 198, 2, 28482, 13, 15654, 13,...
3.25
108
# Copyright (c) Meta Platforms, Inc. and affiliates. # All rights reserved. # This source code is licensed under the license found in the # LICENSE file in the root directory of this source tree. norm_cfg = dict(type='SyncBN', requires_grad=True) model = dict( type='EncoderDecoder', pretrained=None, bac...
[ 2, 15069, 357, 66, 8, 30277, 19193, 82, 11, 3457, 13, 290, 29116, 13, 198, 198, 2, 1439, 2489, 10395, 13, 198, 198, 2, 770, 2723, 2438, 318, 11971, 739, 262, 5964, 1043, 287, 262, 198, 2, 38559, 24290, 2393, 287, 262, 6808, 8619, ...
2.023088
693
# ================================================================================================== # Copyright 2011 Twitter, Inc. # -------------------------------------------------------------------------------------------------- # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use thi...
[ 2, 38093, 10052, 28, 198, 2, 15069, 2813, 3009, 11, 3457, 13, 198, 2, 16529, 3880, 438, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 2, 345, 743, 407, 779, 428, 670, 2845, 287, ...
5.083333
204
__author__ = "Tauseef Hilal Tantary" __title__ = "iCODE-BOT" __version__ = 1.0
[ 834, 9800, 834, 796, 366, 51, 682, 891, 24410, 282, 44116, 560, 1, 198, 834, 7839, 834, 796, 366, 72, 34, 16820, 12, 33, 2394, 1, 198, 834, 9641, 834, 796, 352, 13, 15, 198 ]
2.257143
35
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import pulumi import pulumi.runtime from .. import utilities, tables class DatabaseInstance(pulumi.CustomResource): """ Create...
[ 2, 19617, 28, 40477, 12, 23, 198, 2, 17202, 39410, 25, 428, 2393, 373, 7560, 416, 262, 21624, 12994, 24118, 687, 10290, 357, 27110, 5235, 8, 16984, 13, 17202, 198, 2, 17202, 2141, 407, 4370, 416, 1021, 4556, 345, 821, 1728, 345, 760...
2.742373
885
from django.db import models from django.contrib.auth.models import AbstractUser from django.contrib.auth import get_user_model # Create your models here. class UserProfile(AbstractUser): """ 自定义的用户Model 拓展字段gender, nick_name, mobile, qq """ GENDER_CHOICES = ( ('male', "男"), ('fe...
[ 6738, 42625, 14208, 13, 9945, 1330, 4981, 198, 6738, 42625, 14208, 13, 3642, 822, 13, 18439, 13, 27530, 1330, 27741, 12982, 198, 6738, 42625, 14208, 13, 3642, 822, 13, 18439, 1330, 651, 62, 7220, 62, 19849, 198, 198, 2, 13610, 534, 49...
1.763926
1,508
# Generated by Django 3.2.3 on 2021-06-09 13:27 from django.db import migrations, models
[ 2, 2980, 515, 416, 37770, 513, 13, 17, 13, 18, 319, 33448, 12, 3312, 12, 2931, 1511, 25, 1983, 201, 198, 201, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 11, 4981, 201, 198, 201, 198 ]
2.567568
37
import torch from torch import nn import numpy as np import matplotlib.pyplot as plt # hyper parameters TIME_STEP = 10 INPUT_SIZE = 1 LR = 0.02 steps = np.linspace(0, np.pi * 2, 100, dtype=np.float32) x_np = np.sin(steps) y_np = np.cos(steps) plt.plot(steps, y_np, 'r-', label='target (cos)') plt.plot(...
[ 11748, 28034, 201, 198, 6738, 28034, 1330, 299, 77, 201, 198, 11748, 299, 32152, 355, 45941, 201, 198, 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 201, 198, 201, 198, 201, 198, 2, 8718, 10007, 201, 198, 34694, 62, 42135, ...
2.040562
641
import os import re import collections NOTES_DIR = '/home/dave/nonlinearfunction/gatsby-garden/_notes' md_files = [fname for fname in os.listdir(NOTES_DIR) if fname.endswith('.md')] existing_notes = [fname[:-3] for fname in md_files] refs = collections.defaultdict(int) linked_notes = set() for filename in md_files:...
[ 11748, 28686, 198, 11748, 302, 198, 11748, 17268, 198, 198, 11929, 1546, 62, 34720, 796, 31051, 11195, 14, 67, 1015, 14, 13159, 29127, 8818, 14, 70, 1381, 1525, 12, 70, 5872, 47835, 17815, 6, 198, 198, 9132, 62, 16624, 796, 685, 69, ...
2.04426
723
import pytesseract import numpy as np import cv2
[ 11748, 12972, 83, 408, 263, 529, 198, 11748, 299, 32152, 355, 45941, 220, 198, 11748, 269, 85, 17, 220, 628, 628, 628 ]
2.545455
22
from . import special from . import old_special from .mode_indices import rmax_to_lmax, lmax_to_rmax, mode_indices from .vsh_functions import (Emn, vsh_mode, get_zn, VSH, vsh_normalization_values, get_zn_far, VSH_far, vsh_normalization_values_far) from .vsh_translation import vsh_translati...
[ 6738, 764, 1330, 2041, 198, 6738, 764, 1330, 1468, 62, 20887, 198, 198, 6738, 764, 14171, 62, 521, 1063, 1330, 374, 9806, 62, 1462, 62, 75, 9806, 11, 300, 9806, 62, 1462, 62, 81, 9806, 11, 4235, 62, 521, 1063, 198, 6738, 764, 85, ...
2.488673
309
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Wed Apr 14 10:10:32 2021 @author: carlos.rodriguez1@bsc.es asier.gutierrez@bsc.es carme.armentano@bsc.es """ import spacy import os import json from typing import List, Tuple, Optional from thinc.api import Model from spacy.pipeline import Lemmatizer from ...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 198, 41972, 319, 3300, 2758, 1478, 838, 25, 940, 25, 2624, 33448, 198, 198, 31, 9800, 25, 1097, 33280, 13,...
2.825436
401
from typing import Any
[ 6738, 19720, 1330, 4377, 628, 198 ]
4.166667
6
#!/usr/bin/python3 # -*- coding: utf-8 -*- # Energized Blu import urllib.request import datetime import os import time File = 'energized/blu' List = [] # Thanks to all maintainers of hosts lists. Sources = [ 'https://raw.githubusercontent.com/AdroitAdorKhan/Energized/master/EnergizedHosts/EnergizedHosts', 'https:...
[ 2, 48443, 14629, 14, 8800, 14, 29412, 18, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 2, 412, 25649, 1143, 12391, 220, 198, 198, 11748, 2956, 297, 571, 13, 25927, 198, 11748, 4818, 8079, 198, 11748, 28...
2.681468
2,207
import json import requests from settings import * if __name__ == "__main__": post_rain_notice()
[ 11748, 33918, 198, 11748, 7007, 198, 6738, 6460, 1330, 1635, 628, 628, 198, 198, 361, 11593, 3672, 834, 6624, 366, 834, 12417, 834, 1298, 198, 220, 220, 220, 1281, 62, 3201, 62, 42138, 3419, 198 ]
3.028571
35
from collections import deque from abc import ABC, abstractmethod from multiprocessing import Queue as MQueue from multiprocessing import Process from redrawing.components.stage import Stage class Queue(ABC): '''! Generic queue for communication between stages. ''' @abstractmethod def get...
[ 6738, 17268, 1330, 390, 4188, 198, 6738, 450, 66, 1330, 9738, 11, 12531, 24396, 198, 6738, 18540, 305, 919, 278, 1330, 4670, 518, 355, 337, 34991, 198, 6738, 18540, 305, 919, 278, 1330, 10854, 198, 198, 6738, 2266, 1831, 278, 13, 5589...
1.974973
3,676
""" Contains Python "bindings" to molecule object and Python functions utilizing molecule object key functionalities The intent is to provide a Pythonic interface to mo utilities and, thus, enable easy/consistent use of mo from within python programs. Testing: $ python <path-to-location>/pymo.py """ import os import ...
[ 37811, 198, 4264, 1299, 11361, 366, 21653, 654, 1, 284, 27756, 2134, 290, 11361, 5499, 198, 22602, 2890, 27756, 2134, 1994, 10345, 871, 198, 464, 6824, 318, 284, 2148, 257, 11361, 291, 7071, 284, 6941, 20081, 290, 11, 4145, 11, 198, 2...
2.219023
4,237
import pandas as pd # import pytz import unittest from records_mover.records.pandas import prep_df_for_csv_output from records_mover.records.schema import RecordsSchema from records_mover.records import DelimitedRecordsFormat, ProcessingInstructions
[ 11748, 19798, 292, 355, 279, 67, 198, 2, 1330, 12972, 22877, 198, 11748, 555, 715, 395, 198, 6738, 4406, 62, 76, 2502, 13, 8344, 3669, 13, 79, 392, 292, 1330, 3143, 62, 7568, 62, 1640, 62, 40664, 62, 22915, 198, 6738, 4406, 62, 76...
3.302632
76
import numpy as np from tensorflow.python.keras.utils import Sequence, to_categorical from tensorflow.python.keras.preprocessing.sequence import pad_sequences class TemporalOrderExp6aSequence(Sequence): """ From Hochreiter&Schmidhuber(1997): The goal is to classify sequences. Elements and targets ar...
[ 11748, 299, 32152, 355, 45941, 198, 6738, 11192, 273, 11125, 13, 29412, 13, 6122, 292, 13, 26791, 1330, 45835, 11, 284, 62, 66, 2397, 12409, 198, 6738, 11192, 273, 11125, 13, 29412, 13, 6122, 292, 13, 3866, 36948, 13, 43167, 1330, 148...
2.812992
508
#pilaniamte version 0.4.1 from PIL import Image, ImageDraw, ImageOps, ImageFilter, ImageEnhance, ImageColor, ImageFont, ImageSequence import cv2 import numpy from time import sleep import os, math #functions that draw stuff on #translation functions #transparency functions #UNTESTED #transform #color ...
[ 2, 79, 38239, 1789, 660, 2196, 657, 13, 19, 13, 16, 198, 6738, 350, 4146, 1330, 7412, 11, 7412, 25302, 11, 7412, 41472, 11, 7412, 22417, 11, 7412, 35476, 590, 11, 7412, 10258, 11, 7412, 23252, 11, 7412, 44015, 594, 198, 11748, 269, ...
3.593333
150
import numpy as np from pygsl import statistics as gsl_stat from scipy import stats as sp_stat import ineqpy as ineq from ineqpy import _statistics as ineq_stat # Generate random data x, w = ineq.utils.generate_data_to_test((60,90)) # Replicating weights x_rep, w_rep = ineq.utils.repeat_data_from_weighted(x, w) svy =...
[ 11748, 299, 32152, 355, 45941, 198, 6738, 12972, 70, 6649, 1330, 7869, 355, 308, 6649, 62, 14269, 198, 6738, 629, 541, 88, 1330, 9756, 355, 599, 62, 14269, 198, 198, 11748, 287, 27363, 9078, 355, 287, 27363, 198, 6738, 287, 27363, 907...
2.126029
2,793