content
stringlengths
1
1.04M
input_ids
listlengths
1
774k
ratio_char_token
float64
0.38
22.9
token_count
int64
1
774k
from flask import Flask from werkzeug.middleware.proxy_fix import ProxyFix from apis import api app = Flask(__name__) app.wsgi_app = ProxyFix(app.wsgi_app) api.init_app(app) app.run(debug=True)
[ 6738, 42903, 1330, 46947, 201, 198, 6738, 266, 9587, 2736, 1018, 13, 27171, 1574, 13, 36436, 62, 13049, 1330, 38027, 22743, 201, 198, 201, 198, 6738, 2471, 271, 1330, 40391, 201, 198, 201, 198, 1324, 796, 46947, 7, 834, 3672, 834, 8, ...
2.402299
87
import my_data_file d = my_data_file.my_dict print "Hello, my name is %s I am %a years old" % (d['naam'], d['age'])
[ 11748, 616, 62, 7890, 62, 7753, 198, 198, 67, 796, 616, 62, 7890, 62, 7753, 13, 1820, 62, 11600, 198, 198, 4798, 366, 15496, 11, 616, 1438, 318, 4064, 82, 314, 716, 4064, 64, 812, 1468, 1, 4064, 357, 67, 17816, 2616, 321, 6, 435...
2.34
50
import sys from io import StringIO test_input_one = """food, water, materials, metal 5 food - pizza - quantity:10;quality:5 water - mineral - quantity:5;quality:10 materials - wood - quantity:2;quality:5 metal - copper - quantity:3;quality:10 food - burgers - quantity:5;quality:2 """ # test_input_two = """""" sys.std...
[ 11748, 25064, 198, 6738, 33245, 1330, 10903, 9399, 198, 198, 9288, 62, 15414, 62, 505, 796, 37227, 19425, 11, 1660, 11, 5696, 11, 6147, 198, 20, 198, 19425, 532, 14256, 532, 12040, 25, 940, 26, 13237, 25, 20, 198, 7050, 532, 18352, ...
2.701099
455
from rofi_menu import Menu, BackItem, NestedMenu, Operation, constants from rofify.src.TrackMenu import TrackMenu, TrackItem from rofify.src.SpotifyAPI import spotify from rofify.src.config import config class RecentlyPlayedMenu(TrackMenu): """ Display the user a list of their recently played tracks that they ...
[ 6738, 686, 12463, 62, 26272, 1330, 21860, 11, 5157, 7449, 11, 399, 7287, 23381, 11, 14680, 11, 38491, 198, 6738, 686, 69, 1958, 13, 10677, 13, 24802, 23381, 1330, 17762, 23381, 11, 17762, 7449, 198, 6738, 686, 69, 1958, 13, 10677, 13,...
3.061611
211
# with Iterator # with Generator function # def vowels(text): # vowels = {'a', 'e', 'y', 'u', 'o', 'i', # 'A', 'E', 'Y', 'U', 'O', 'I'} # # for char in text: # if char in vowels: # yield char # with generator comprehension # def vowels(text): # vowels = {'a', 'e', 'y', ...
[ 2, 351, 40806, 1352, 198, 198, 2, 351, 35986, 2163, 198, 198, 2, 825, 23268, 1424, 7, 5239, 2599, 198, 2, 220, 220, 220, 220, 23268, 1424, 796, 1391, 6, 64, 3256, 705, 68, 3256, 705, 88, 3256, 705, 84, 3256, 705, 78, 3256, 705, ...
1.958015
262
import os import cv2 import optics import argparse import tfrecord import numpy as np import tensorflow as tf from util import * if __name__ == '__main__': cur_dir = os.path.dirname(os.path.realpath(__file__)) parser = argparse.ArgumentParser() # evaluation parameters parser.add_ar...
[ 11748, 28686, 198, 11748, 269, 85, 17, 198, 11748, 36237, 198, 11748, 1822, 29572, 198, 11748, 48700, 22105, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 11192, 273, 11125, 355, 48700, 198, 6738, 7736, 1330, 1635, 628, 220, 220, 220, ...
1.982149
5,658
""" PDF stream objects - Reference p. 60 """ from functools import partial, reduce from .common import PdfType from ..filters import StreamFilter from ..misc import ensure_list class PdfStream(PdfType): """PDF stream type""" @property def header(self): """Stream header""" return self...
[ 37811, 198, 20456, 4269, 5563, 532, 20984, 279, 13, 3126, 198, 37811, 198, 198, 6738, 1257, 310, 10141, 1330, 13027, 11, 4646, 198, 198, 6738, 764, 11321, 220, 220, 1330, 350, 7568, 6030, 198, 6738, 11485, 10379, 1010, 1330, 13860, 2241...
2.486957
575
import json import re import sys import pandas as pd import benepar from progress.bar import Bar from nltk.tree import * # Would not match: # Quoted text, e.g. A in "The first letter in the alphabet is 'A'." # Partial text, e.g. alpha in "The first letter in the alphabet is 'A'." # Case-insentitive text, e.g. First in...
[ 11748, 33918, 198, 11748, 302, 198, 11748, 25064, 198, 11748, 19798, 292, 355, 279, 67, 198, 11748, 1888, 538, 283, 198, 6738, 4371, 13, 5657, 1330, 2409, 198, 6738, 299, 2528, 74, 13, 21048, 1330, 1635, 198, 198, 2, 10928, 407, 2872,...
2.214286
3,094
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** from enum import Enum __all__ = [ 'AuthenticationType', 'AutoProvision', 'MinimalSeverity', 'Roles', 'State', ] class Authentica...
[ 2, 19617, 28, 40477, 12, 23, 198, 2, 17202, 39410, 25, 428, 2393, 373, 7560, 416, 262, 21624, 12994, 26144, 35986, 13, 17202, 198, 2, 17202, 2141, 407, 4370, 416, 1021, 4556, 345, 821, 1728, 345, 760, 644, 345, 389, 1804, 0, 17202, ...
2.897331
487
#!/usr/bin/env python # -*- coding: utf-8 -*- """ setup ~~~~~ Pyontapi setup script. :copyright: 2010-2015 Schaefer & Tobies SuC GmbH. :author: Markus Grimm <mgr@schaefer-tobies.de>; Uwe W. Schaefer <uws@schaefer-tobies.de> :license: LGPL, see LICENSE for details. """ import dist...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 198, 220, 220, 220, 9058, 198, 220, 220, 220, 220, 8728, 93, 628, 220, 220, 220, 9485, 756, 15042, 9058, 4226,...
2.103917
1,251
# Open the file in read mode text = open("sample.txt", "r") # Create an empty dictionary d = dict() # Loop through each line of the file for line in text: line = line.strip() line = line.lower() words = line.split(" ") for word in words: if word in d: d[word] = d[word] + 1 else...
[ 2, 4946, 262, 2393, 287, 1100, 4235, 220, 201, 198, 5239, 796, 1280, 7203, 39873, 13, 14116, 1600, 366, 81, 4943, 220, 201, 198, 201, 198, 2, 13610, 281, 6565, 22155, 220, 201, 198, 67, 796, 8633, 3419, 220, 201, 198, 201, 198, 2,...
2.212291
179
__all__ = ['bar']
[ 834, 439, 834, 796, 37250, 5657, 20520, 198 ]
2.25
8
from pyvisdk.esxcli.executer import execute_soap from pyvisdk.esxcli.base import Base class NetworkVswitchStandardPortgroup(Base): ''' Commands to list and manipulate Port Groups on an ESX host. ''' moid = 'ha-cli-handler-network-vswitch-standard-portgroup' def add(self, portgroupname, vswitchname...
[ 198, 6738, 12972, 4703, 34388, 13, 274, 87, 44506, 13, 18558, 11894, 1330, 12260, 62, 568, 499, 198, 6738, 12972, 4703, 34388, 13, 274, 87, 44506, 13, 8692, 1330, 7308, 198, 198, 4871, 7311, 53, 31943, 23615, 13924, 8094, 7, 14881, 25...
2.110595
1,076
import numpy as np from sklearn import * import matplotlib.pyplot as plt # Generate a dataset and plot it np.random.seed(0) X, y = datasets.make_gaussian_quantiles(cov=3., n_samples=400, n_features=2, n_classes=3, random_state=0) plt.scatter(X[...
[ 11748, 299, 32152, 355, 45941, 201, 198, 6738, 1341, 35720, 1330, 1635, 201, 198, 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 201, 198, 201, 198, 2, 2980, 378, 257, 27039, 290, 7110, 340, 201, 198, 37659, 13, 25120, 13, ...
2.330532
714
#!/usr/bin/python3 ''' Given an int n, return True if it is within 10 of 100 or 200. Note: abs(num) computes the absolute value of a number. ''' #Additional implementation
[ 2, 48443, 14629, 14, 8800, 14, 29412, 18, 198, 7061, 6, 198, 15056, 281, 493, 299, 11, 1441, 6407, 611, 340, 318, 1626, 838, 286, 1802, 393, 939, 13, 5740, 25, 2352, 7, 22510, 8, 552, 1769, 262, 4112, 1988, 286, 257, 1271, 13, 1...
3.346154
52
#!/usr/bin/env python # coding: utf-8 # In[1]: #config = tf.ConfigProto() #config.gpu_options.allow_growth = True #sess = tf.Session(config=config) #K.set_session(sess) import itertools as it import joblib as jl from keras import backend as K from keras.callbacks import Callback from keras.constraints import maxnorm...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 19617, 25, 3384, 69, 12, 23, 198, 198, 2, 554, 58, 16, 5974, 198, 198, 2, 11250, 796, 48700, 13, 16934, 2964, 1462, 3419, 198, 2, 11250, 13, 46999, 62, 25811, 13, 12154, 62, 2...
2.29085
306
from mpi4py import MPI import numpy as np from numpy.lib.shape_base import column_stack import sys, time comm = MPI.Comm.Get_parent() size = comm.Get_size() rank = comm.Get_rank() dimensions = np.array((0,0)) comm.Bcast(dimensions, root=0) M, N = dimensions[0], dimensions[1] complete = False reqs = [] counter = 0 ...
[ 6738, 285, 14415, 19, 9078, 1330, 4904, 40, 198, 11748, 299, 32152, 355, 45941, 198, 6738, 299, 32152, 13, 8019, 13, 43358, 62, 8692, 1330, 5721, 62, 25558, 198, 11748, 25064, 11, 640, 198, 198, 9503, 796, 4904, 40, 13, 6935, 13, 38...
2.180473
1,014
# BSD 3-Clause License; see https://github.com/scikit-hep/uproot4/blob/master/LICENSE from __future__ import absolute_import import numpy import uproot4.interpretation
[ 2, 347, 10305, 513, 12, 2601, 682, 13789, 26, 766, 3740, 1378, 12567, 13, 785, 14, 36216, 15813, 12, 258, 79, 14, 929, 15763, 19, 14, 2436, 672, 14, 9866, 14, 43, 2149, 24290, 198, 198, 6738, 11593, 37443, 834, 1330, 4112, 62, 117...
2.9
60
from typing import List from django.db.models.query import EmptyQuerySet, QuerySet from django.utils.functional import empty from apps.oob.forms.project_forms import ProjectForm from django.http import response from django.test import TestCase, RequestFactory from django.urls.base import reverse from http import HTTPS...
[ 6738, 19720, 1330, 7343, 198, 6738, 42625, 14208, 13, 9945, 13, 27530, 13, 22766, 1330, 33523, 20746, 7248, 11, 43301, 7248, 198, 6738, 42625, 14208, 13, 26791, 13, 45124, 1330, 6565, 198, 6738, 6725, 13, 78, 672, 13, 23914, 13, 16302, ...
3.370079
127
#!/usr/bin/env python3 '''Global constants for testing.''' import datetime # Credentials API_TOKEN = '92d8c5a0eceef3c05f4149fc04b62bb2cd50d9c6' OMEGAUP_API_ENDPOINT = 'http://localhost:8001' # Date limits DATE_LOWER_LIMIT = datetime.datetime(2005, 1, 1) DATE_UPPER_LIMIT = datetime.datetime.now()
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 198, 7061, 6, 22289, 38491, 329, 4856, 2637, 7061, 198, 198, 11748, 4818, 8079, 198, 198, 2, 327, 445, 14817, 198, 17614, 62, 10468, 43959, 796, 705, 5892, 67, 23, 66, 20, 64, ...
2.246269
134
import gym import numpy as np import argparse import pickle import sys """ Download D4RL dataset and store in lifelong_rl format - Note this script requires having D4RL installed - See: https://github.com/rail-berkeley/d4rl """ parser = argparse.ArgumentParser() parser.add_argument('--task', type=str, ...
[ 11748, 11550, 198, 11748, 299, 32152, 355, 45941, 198, 198, 11748, 1822, 29572, 198, 11748, 2298, 293, 198, 11748, 25064, 628, 198, 37811, 198, 10002, 360, 19, 7836, 27039, 290, 3650, 287, 25837, 62, 45895, 5794, 198, 12, 5740, 428, 422...
2.540687
553
import os import numpy as np import argparse import yaml import chainer import source.yaml_utils as yaml_utils from evaluation import get_batch, save_images if __name__ == '__main__': parser = argparse.ArgumentParser() parser.add_argument('--dir_nir', type=str) parser.add_argument('--dir_rgb', type=st...
[ 11748, 28686, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 1822, 29572, 198, 11748, 331, 43695, 198, 198, 11748, 6333, 263, 198, 198, 11748, 2723, 13, 88, 43695, 62, 26791, 355, 331, 43695, 62, 26791, 198, 6738, 12660, 1330, 651, 62,...
2.752066
242
#importing the random package, able to create psuedo random number for testing purposes import random #allows additional operations such as the itemgetter function import operator #allows the presentation of plots,graphs etc.. will be used to display agents import matplotlib.pyplot #time package will be used to h...
[ 2, 11748, 278, 262, 4738, 5301, 11, 1498, 284, 2251, 26692, 1739, 78, 4738, 1271, 329, 4856, 4959, 201, 198, 11748, 4738, 201, 198, 2, 47205, 3224, 4560, 884, 355, 262, 2378, 1136, 353, 2163, 201, 198, 11748, 10088, 201, 198, 2, 472...
2.757263
1,067
# 1. Two Sum """ Given an array of integers, return indices of the two numbers such that they add up to a specific target. You may assume that each input would have exactly one solution, and you may not use the same element twice. Input: [2, 7, 11, 15], target = 9 Output: [0, 1] """
[ 2, 352, 13, 4930, 5060, 198, 198, 37811, 198, 15056, 281, 7177, 286, 37014, 11, 1441, 36525, 286, 262, 734, 3146, 884, 326, 484, 751, 510, 284, 257, 2176, 2496, 13, 198, 198, 1639, 743, 7048, 326, 1123, 5128, 561, 423, 3446, 530, ...
3.530864
81
import turtle def Screen(title="Title", size=None, tracer=0): """Returns a new turtle screen""" return turtle.Screen(title, size, tracer) class Turtle(turtle.Turtle): """A Turtle""" turtle.Screen = setup_screen(turtle.Screen) if __name__ == "__main__": s = Screen(0) t = Turtle() t.dot() ...
[ 11748, 28699, 198, 198, 4299, 15216, 7, 7839, 2625, 19160, 1600, 2546, 28, 14202, 11, 491, 11736, 28, 15, 2599, 198, 220, 220, 220, 37227, 35561, 257, 649, 28699, 3159, 37811, 198, 220, 220, 220, 1441, 28699, 13, 23901, 7, 7839, 11, ...
2.5
140
from abc import ABCMeta, abstractmethod from typing import Any, Union, List, Dict from core.database.backend import AbstractBackend
[ 6738, 450, 66, 1330, 9738, 48526, 11, 12531, 24396, 198, 6738, 19720, 1330, 4377, 11, 4479, 11, 7343, 11, 360, 713, 198, 198, 6738, 4755, 13, 48806, 13, 1891, 437, 1330, 27741, 7282, 437, 628 ]
3.828571
35
"""Module for conveniently managing a [Hyperopt](https://github.com/hyperopt/hyperopt) cluster.""" import os import time from typing import List, Optional, Union from lazycluster import Runtime, RuntimeGroup, RuntimeTask, _utils from lazycluster.cluster import MasterLauncher, MasterWorkerCluster, WorkerLauncher from ...
[ 37811, 26796, 329, 29801, 11149, 257, 685, 38197, 8738, 16151, 5450, 1378, 12567, 13, 785, 14, 49229, 8738, 14, 49229, 8738, 8, 13946, 526, 15931, 198, 198, 11748, 28686, 198, 11748, 640, 198, 6738, 19720, 1330, 7343, 11, 32233, 11, 447...
2.543356
6,758
# # This file is part of Brazil Data Cube Database module. # Copyright (C) 2019 INPE. # # Brazil Data Cube Database module is free software; you can redistribute it and/or modify it # under the terms of the MIT License; see LICENSE file for more details. # """Model for table ``bdc.providers``.""" from sqlalchemy impo...
[ 2, 198, 2, 770, 2393, 318, 636, 286, 7595, 6060, 23315, 24047, 8265, 13, 198, 2, 15069, 357, 34, 8, 13130, 3268, 11401, 13, 198, 2, 198, 2, 7595, 6060, 23315, 24047, 8265, 318, 1479, 3788, 26, 345, 460, 17678, 4163, 340, 290, 14, ...
3.045775
284
import os import random import numpy as np import torch seed_value = 6977170 set_seed(seed_value) if torch.cuda.is_available(): torch.backends.cudnn.determinstic = True torch.backends.cudnn.benchmark = False device = torch.device("cuda:0") if torch.cuda.is_available() else torch.device("cpu")
[ 11748, 28686, 198, 11748, 4738, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 28034, 198, 198, 28826, 62, 8367, 796, 8644, 3324, 17279, 628, 198, 2617, 62, 28826, 7, 28826, 62, 8367, 8, 198, 198, 361, 28034, 13, 66, 15339, 13, 271, ...
2.765766
111
# Important constants about the project are here, mainly paths of important # files/folders. import os import csv from functools import cached_property from collections import namedtuple from math import inf import textwrap import numpy as np import pandas as pd from .common_utils import get_image, crop_image from ....
[ 2, 28511, 38491, 546, 262, 1628, 389, 994, 11, 8384, 13532, 286, 1593, 198, 2, 3696, 14, 11379, 364, 13, 198, 198, 11748, 28686, 198, 11748, 269, 21370, 198, 6738, 1257, 310, 10141, 1330, 39986, 62, 26745, 198, 6738, 17268, 1330, 3706...
1.977178
5,740
# --- Common libraries import os import unittest import numpy as np from welib.BEM.steadyBEM import * MyDir=os.path.dirname(__file__) class Test(unittest.TestCase): """ See examples/ for more examples """ if __name__ == '__main__': unittest.main()
[ 2, 11420, 8070, 12782, 220, 198, 11748, 28686, 198, 11748, 555, 715, 395, 198, 11748, 299, 32152, 355, 45941, 198, 6738, 5029, 571, 13, 33, 3620, 13, 28044, 88, 33, 3620, 1330, 1635, 198, 198, 3666, 35277, 28, 418, 13, 6978, 13, 159...
2.708333
96
import settings import tweepy import dataset from textblob import TextBlob from sqlalchemy.exc import ProgrammingError import json import time import smtplib import ssl import threading import sys from urllib3.exceptions import ProtocolError as urllib3_protocolError if (sys.version_info > (3, 0)): print("Python 3"...
[ 11748, 6460, 198, 11748, 4184, 538, 88, 198, 11748, 27039, 198, 6738, 2420, 2436, 672, 1330, 8255, 3629, 672, 198, 6738, 44161, 282, 26599, 13, 41194, 1330, 30297, 12331, 198, 11748, 33918, 198, 11748, 640, 198, 11748, 895, 83, 489, 571...
2.741304
920
definition = { 'node_batch_size': 5, 'fields': { 'ad_breaks': {'omit': True}, 'auto_generated_captions': {'omit': True}, 'backdated_time': {}, 'backdated_time_granularity': {}, 'captions': {'omit': True}, 'comments': {'edge_type': 'comment'}, 'content_cate...
[ 46758, 796, 1391, 198, 220, 220, 220, 705, 17440, 62, 43501, 62, 7857, 10354, 642, 11, 198, 220, 220, 220, 705, 25747, 10354, 1391, 198, 220, 220, 220, 220, 220, 220, 220, 705, 324, 62, 30058, 10354, 1391, 6, 296, 270, 10354, 6407, ...
1.955628
924
import racemap import copy import sys import random import time import os.path
[ 11748, 3444, 368, 499, 198, 11748, 4866, 198, 11748, 25064, 198, 11748, 4738, 198, 11748, 640, 198, 11748, 28686, 13, 6978, 198 ]
3.590909
22
# -*- coding: utf-8 -*- import logging from django.db import models from owncloud import Client as NextcloudClient from addons.base import exceptions from addons.base import institutions_utils as inst_utils from addons.base.institutions_utils import ( InstitutionsNodeSettings, InstitutionsStorageAddon ) from ...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 11748, 18931, 198, 198, 6738, 42625, 14208, 13, 9945, 1330, 4981, 198, 6738, 898, 17721, 1330, 20985, 355, 7406, 17721, 11792, 198, 198, 6738, 751, 684, 13, 8692, 1330, ...
3.244131
213
input = """ c num blocks = 1 c num vars = 150 c minblockids[0] = 1 c maxblockids[0] = 150 p cnf 150 667 -11 -87 28 0 -91 18 -5 0 -9 50 -72 0 -15 -93 -2 0 127 -81 39 0 -107 -49 25 0 132 42 -4 0 63 -103 42 0 95 85 -133 0 -57 -74 -15 0 -150 -76 71 0 7 -141 -104 0 107 -19 -150 0 -69 12 -122 0 72 87 -70 0 31 71 -79 0 42 -99...
[ 15414, 796, 37227, 198, 66, 997, 7021, 796, 352, 198, 66, 997, 410, 945, 796, 6640, 198, 66, 949, 9967, 2340, 58, 15, 60, 796, 352, 198, 66, 3509, 9967, 2340, 58, 15, 60, 796, 6640, 198, 79, 269, 77, 69, 6640, 718, 3134, 198, ...
2.056536
4,422
# -*- coding: utf-8 -*- from os import path from setuptools import find_packages, setup setup_dependencies = [ "wheel", "setuptools-scm", ] install_dependencies = [ "importlib-metadata;python_version<'3.8'", "redis", ] try: docs_file = path.join(path.abspath(path.dirname(__file__)), "README.md") ...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 6738, 28686, 1330, 3108, 198, 6738, 900, 37623, 10141, 1330, 1064, 62, 43789, 11, 9058, 198, 198, 40406, 62, 45841, 3976, 796, 685, 198, 220, 220, 220, 366, 22001, 1600,...
2.562092
612
"""Module unittests.test_metadata_algorithms.py This module contains methods to test the metadata_algorithms module via pytest. It uses good_mock_server to validate the positive test cases and bad_mock_server for the negative test cases. """ import pytest import json import click from click.testing import CliRunner fr...
[ 37811, 26796, 555, 715, 3558, 13, 9288, 62, 38993, 62, 282, 7727, 907, 13, 9078, 198, 1212, 8265, 4909, 5050, 284, 1332, 262, 20150, 62, 282, 7727, 907, 8265, 2884, 12972, 9288, 13, 198, 1026, 3544, 922, 62, 76, 735, 62, 15388, 284,...
2.996904
323
#!/usr/bin/env python3 import os import sys import traceback base_path = os.path.dirname(os.path.dirname(os.path.realpath(__file__))) sys.path.insert(0, base_path) from junit.constants import JUNIT_TEST_CMD_JUNIT, JUNIT_TEST_CMD_TRACE, TESTFILES_PREFIX, REPO_TRACE_DIR from junit.utils import parse_command_line_args ...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 198, 11748, 28686, 198, 11748, 25064, 198, 11748, 12854, 1891, 198, 198, 8692, 62, 6978, 796, 28686, 13, 6978, 13, 15908, 3672, 7, 418, 13, 6978, 13, 15908, 3672, 7, 418, 13, 697...
2.260586
1,228
# Generated by Django 3.1.5 on 2021-02-02 07:59 from django.db import migrations
[ 2, 2980, 515, 416, 37770, 513, 13, 16, 13, 20, 319, 33448, 12, 2999, 12, 2999, 8753, 25, 3270, 198, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 628 ]
2.766667
30
# -*- coding: utf-8 -*- # Generated by Django 1.9.1 on 2016-01-18 00:01 from __future__ import unicode_literals from django.db import migrations
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 2980, 515, 416, 37770, 352, 13, 24, 13, 16, 319, 1584, 12, 486, 12, 1507, 3571, 25, 486, 198, 6738, 11593, 37443, 834, 1330, 28000, 1098, 62, 17201, 874, 198, 198...
2.672727
55
''' Used to compare to other results pair predictions it they have different contact map criterium ''' import os, sys import pandas as pd if __name__=="__main__": inPath, cmapPath, resultsPath = sys.argv[1:] main( inPath, cmapPath, resultsPath )
[ 7061, 6, 198, 38052, 284, 8996, 284, 584, 2482, 5166, 16277, 340, 484, 423, 1180, 2800, 3975, 1955, 263, 1505, 198, 7061, 6, 198, 198, 11748, 28686, 11, 25064, 198, 11748, 19798, 292, 355, 279, 67, 628, 220, 220, 220, 220, 198, 361,...
2.921348
89
from googleapiclient.discovery import build from google_auth_oauthlib.flow import InstalledAppFlow import pickle import pprint import datefinder # What the program can access within Calendar # See more at https://developers.google.com/calendar/auth scopes = ["https://www.googleapis.com/auth/calendar"] flow = Installe...
[ 6738, 23645, 499, 291, 75, 1153, 13, 67, 40821, 1330, 1382, 198, 6738, 23645, 62, 18439, 62, 12162, 1071, 8019, 13, 11125, 1330, 2262, 4262, 4677, 37535, 198, 11748, 2298, 293, 198, 11748, 279, 4798, 198, 11748, 3128, 22805, 198, 198, ...
2.564636
673
from flask import Flask app = Flask(__name__) from Webapp import views
[ 6738, 42903, 1330, 46947, 198, 198, 1324, 796, 46947, 7, 834, 3672, 834, 8, 198, 6738, 5313, 1324, 1330, 5009, 198 ]
3.428571
21
# https://leetcode.com/problems/open-the-lock/ # By Jiapeng # Runtime: 544 ms, faster than 86.92% of Python3 online submissions for Open the Lock. # Memory Usage: 15 MB, less than 37.13% of Python3 online submissions for Open the Lock.
[ 2, 3740, 1378, 293, 316, 8189, 13, 785, 14, 1676, 22143, 14, 9654, 12, 1169, 12, 5354, 14, 198, 198, 2, 2750, 29380, 499, 1516, 198, 2, 43160, 25, 642, 2598, 13845, 11, 5443, 621, 9849, 13, 5892, 4, 286, 11361, 18, 2691, 22129, ...
3.202703
74
from django.shortcuts import render from .forms import PostingPost, FormJawab from .models import Penanya from django.http import HttpResponse # Create your views here.
[ 6738, 42625, 14208, 13, 19509, 23779, 1330, 8543, 201, 198, 6738, 764, 23914, 1330, 2947, 278, 6307, 11, 5178, 41, 707, 397, 201, 198, 6738, 764, 27530, 1330, 7507, 34183, 201, 198, 6738, 42625, 14208, 13, 4023, 1330, 367, 29281, 31077,...
3.46
50
import webtech os_list = ["CentOS","Ubuntu","Debian","Microsoft","Windows Server","Red Hat"] #Filter report from webtech and only return web technologies
[ 11748, 3992, 13670, 628, 198, 418, 62, 4868, 796, 14631, 19085, 2640, 2430, 36609, 11157, 2430, 16587, 666, 2430, 15905, 2430, 11209, 9652, 2430, 7738, 10983, 8973, 198, 198, 2, 22417, 989, 422, 3992, 13670, 290, 691, 1441, 3992, 8514, ...
3.829268
41
# -*- coding: utf-8 -*- class Log: """ Describes single log object that embedded to a Meta object. """
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 4871, 5972, 25, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 39373, 22090, 2060, 2604, 2134, 326, 14553, 284, 257, 30277, 2134, 13, 198, 220, 220, 220, 37227, 198 ]
2.613636
44
a = 0 while a < 200: a = a + 1 print(a)
[ 64, 796, 657, 201, 198, 201, 198, 4514, 257, 1279, 939, 25, 201, 198, 220, 220, 220, 257, 796, 257, 220, 1343, 352, 201, 198, 220, 220, 220, 3601, 7, 64, 8, 201, 198, 201, 198 ]
1.583333
36
# simulate prio techniques on ctest dataset import time import threading from concurrent.futures import ThreadPoolExecutor import ordering, parsing_utils, peer, utils from constant import * from pinput import * from metric import Metric TCPS = pinput["tcps"][1] if __name__ == '__main__': main()
[ 2, 29308, 1293, 78, 7605, 319, 269, 9288, 27039, 198, 11748, 640, 198, 11748, 4704, 278, 198, 6738, 24580, 13, 69, 315, 942, 1330, 14122, 27201, 23002, 38409, 198, 198, 11748, 16216, 11, 32096, 62, 26791, 11, 12720, 11, 3384, 4487, 19...
3.326087
92
import srcomapi import srcomapi.datatypes as dt from Levenshtein._levenshtein import distance api = srcomapi.SpeedrunCom() api.debug = 1 game = api.search(srcomapi.datatypes.Game, {"name": "azure dreams"})[0]
[ 11748, 19677, 785, 15042, 198, 11748, 19677, 785, 15042, 13, 19608, 265, 9497, 355, 288, 83, 198, 6738, 1004, 574, 1477, 22006, 13557, 293, 574, 1477, 22006, 1330, 5253, 198, 198, 15042, 796, 19677, 785, 15042, 13, 22785, 5143, 5377, 34...
2.776316
76
ConsumerKey= "EzDbhlelyQmUFnPvPOJTaIeNu" ConsumerSecret = "nn2Aj8PXAtEGiacux9kwIKd38pMa7OQBCVShYht1AK7zxlXHSU"
[ 49106, 9218, 28, 366, 36, 89, 35, 34369, 293, 306, 48, 76, 36820, 77, 47, 85, 16402, 41, 38586, 40, 68, 45, 84, 1, 198, 49106, 23725, 796, 366, 20471, 17, 32, 73, 23, 47, 55, 2953, 7156, 9607, 2821, 24, 46265, 18694, 67, 2548, ...
1.71875
64
from base64 import b64encode from zope.interface.verify import verifyObject from twisted.cred.error import LoginFailed from twisted.web.iweb import ICredentialFactory from twisted.web.http_headers import Headers from fluiddb.testing.basic import FluidinfoTestCase from fluiddb.testing.doubles import FakeRequest from f...
[ 6738, 2779, 2414, 1330, 275, 2414, 268, 8189, 198, 6738, 1976, 3008, 13, 39994, 13, 332, 1958, 1330, 11767, 10267, 198, 198, 6738, 19074, 13, 66, 445, 13, 18224, 1330, 23093, 37, 6255, 198, 6738, 19074, 13, 12384, 13, 72, 12384, 1330,...
3.208955
134
#!/usr/bin/env python3 from altai.gui.main import main if __name__ == '__main__': main()
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 6738, 5988, 1872, 13, 48317, 13, 12417, 1330, 1388, 198, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 198, 220, 220, 220, 1388, 3419, 198 ]
2.473684
38
import numpy as np a = np.random.randint(100, size=(10,)) b = np.zeros(10) try: test_no_return(a, b) except AssertionError as error: print(error) a = np.array([0, 1, 2, 3, 4, 5, 6, 7, 8, 9]) b = np.zeros(10) try: test_with_return(a, b) except AssertionError as error: print(error) a = np.array([0, 1...
[ 11748, 299, 32152, 355, 45941, 198, 198, 64, 796, 45941, 13, 25120, 13, 25192, 600, 7, 3064, 11, 2546, 16193, 940, 11, 4008, 198, 65, 796, 45941, 13, 9107, 418, 7, 940, 8, 198, 198, 28311, 25, 198, 220, 220, 220, 1332, 62, 3919, ...
2.133253
833
# Generated by Django 3.1.13 on 2021-11-02 19:54 from django.db import migrations, models import django.db.models.deletion
[ 2, 2980, 515, 416, 37770, 513, 13, 16, 13, 1485, 319, 33448, 12, 1157, 12, 2999, 678, 25, 4051, 198, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 11, 4981, 198, 11748, 42625, 14208, 13, 9945, 13, 27530, 13, 2934, 1616, 295, ...
2.840909
44
import dash_bootstrap_components as dbc import dash_html_components as html import dash_core_components as dcc panellayout = html.Div([ dcc.Location(id='panel-url', pathname='/panel'), dbc.Container( [ dbc.Row( dbc.Col( ...
[ 11748, 14470, 62, 18769, 26418, 62, 5589, 3906, 355, 288, 15630, 198, 11748, 14470, 62, 6494, 62, 5589, 3906, 355, 27711, 198, 11748, 14470, 62, 7295, 62, 5589, 3906, 355, 288, 535, 628, 198, 6839, 695, 323, 448, 796, 27711, 13, 24095...
1.304768
1,657
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # # Copyright (c) 2020, Wenbin Fei, Email: wenbinfei@gmail.com # All rights reserved. """ Create a logger =============== To create a logger in other files, usingt the following code import logger_ini logger = logger_ini.logger_run() """ import logging.config def logge...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 198, 2, 15069, 357, 66, 8, 12131, 11, 31164, 8800, 39575, 11, 9570, 25, 266, 268, 8800, 5036, 72, 31, 14816,...
3.134545
275
import re import pytest @pytest.mark.parametrize('table, expected', [ pytest.param('__dataset__', re.compile(r'CREATE TABLE __dataset__ \(\n' r'.+\n' r'0', re.DOTALL), id='table=__dataset__'), ])
[ 11748, 302, 198, 198, 11748, 12972, 9288, 628, 198, 31, 9078, 9288, 13, 4102, 13, 17143, 316, 380, 2736, 10786, 11487, 11, 2938, 3256, 685, 198, 220, 220, 220, 12972, 9288, 13, 17143, 10786, 834, 19608, 292, 316, 834, 3256, 302, 13, ...
1.612565
191
from setuptools import setup setup( name='require.py', version='2.0.1', description="Path-based imports in Python, inspired by `require.js`", url='https://github.com/pcattori/require.py', author='Pedro Cattori', author_email='pcattori@gmail.com', license='MIT', packages=['require'], ...
[ 6738, 900, 37623, 10141, 1330, 9058, 198, 198, 40406, 7, 198, 220, 220, 220, 1438, 11639, 46115, 13, 9078, 3256, 198, 220, 220, 220, 2196, 11639, 17, 13, 15, 13, 16, 3256, 198, 220, 220, 220, 6764, 2625, 15235, 12, 3106, 17944, 287,...
2.4947
283
import requests from cloudbot import hook url = 'http://www.discuvver.com/jump2.php' headers = {'Referer': 'http://www.discuvver.com'} @hook.command('randomusefulsite', 'randomwebsite', 'randomsite', 'discuvver')
[ 11748, 7007, 198, 198, 6738, 6279, 13645, 1330, 8011, 198, 198, 6371, 796, 705, 4023, 1378, 2503, 13, 15410, 14795, 332, 13, 785, 14, 43327, 17, 13, 10121, 6, 198, 50145, 796, 1391, 6, 8134, 11882, 10354, 705, 4023, 1378, 2503, 13, ...
2.818182
77
""" Tools for building pagination. """ from math import ceil from itertools import islice, chain from lettersmith.util import chunk, decorate_group_matching_id_path from lettersmith import doc as Doc TEMPLATES = ("list.html", "default.html") OUTPUT_PATH_TEMPLATE = "page/{n}/index.html" def count_pages(length, per_...
[ 37811, 198, 33637, 329, 2615, 42208, 1883, 13, 198, 37811, 198, 198, 6738, 10688, 1330, 2906, 346, 198, 6738, 340, 861, 10141, 1330, 318, 75, 501, 11, 6333, 198, 6738, 7475, 22947, 13, 22602, 1330, 16058, 11, 11705, 378, 62, 8094, 62,...
2.338028
710
import threading import StellarPlayer import os import shutil import traceback import sys import importlib import json from . import douyu #from . import iqiyi #from . import sports_iqiyi #from . import fengbolive #from . import look #from . import ppsport #from . import yangshipin from . import zhibotv from . import...
[ 11748, 4704, 278, 198, 11748, 39336, 14140, 198, 11748, 28686, 198, 11748, 4423, 346, 198, 11748, 12854, 1891, 198, 11748, 25064, 220, 198, 11748, 1330, 8019, 198, 11748, 33918, 198, 198, 6738, 764, 1330, 2255, 24767, 198, 2, 6738, 764, ...
2.805769
520
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # # novault # Copyright (c) 2016 Avner Herskovits # # MIT License # # 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 with...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 198, 2, 220, 220, 220, 645, 85, 1721, 198, 2, 220, 220, 220, 15069, 357, 66, 8, 1584, 5184, 1008, 28492, 2...
2.396788
4,234
from sqlalchemy import Column, String, Integer, ForeignKey, Text from sqlalchemy.orm import relationship from infrastructor.IocManager import IocManager from models.dao.Entity import Entity
[ 6738, 44161, 282, 26599, 1330, 29201, 11, 10903, 11, 34142, 11, 8708, 9218, 11, 8255, 198, 6738, 44161, 282, 26599, 13, 579, 1330, 2776, 198, 6738, 1167, 5685, 1356, 273, 13, 40, 420, 13511, 1330, 314, 420, 13511, 198, 6738, 4981, 13,...
3.897959
49
""" This module can be used without django """ from hashlib import md5 import urllib2 import logging from urllib import urlencode POSTBACK_URL = '/eng/query/validate' POSTBACK_SERVER = 'https://www.payfast.co.za' def signature(data): """ Calculates PayFast signature. 'data' should be a SortedDict or an Or...
[ 37811, 198, 1212, 8265, 460, 307, 973, 1231, 42625, 14208, 198, 37811, 198, 6738, 12234, 8019, 1330, 45243, 20, 198, 11748, 2956, 297, 571, 17, 198, 11748, 18931, 198, 6738, 2956, 297, 571, 1330, 2956, 11925, 8189, 198, 198, 32782, 3109...
2.639785
372
from regex.lexer import tokens from regex.parser import parse from regex.generator import * from regex.regex import Regex
[ 6738, 40364, 13, 2588, 263, 1330, 16326, 198, 6738, 40364, 13, 48610, 1330, 21136, 198, 6738, 40364, 13, 8612, 1352, 1330, 1635, 198, 6738, 40364, 13, 260, 25636, 1330, 797, 25636, 198 ]
3.8125
32
import requests,json,sys,re,os from datetime import datetime from VideoIDHelper import * #if you intend to extend this module #simply call #saveYouTubeAnnotations.retrieveAnnotation # #arg is either an ID, link or shortened link #and location is the location the XML file is to be saved in if __name__== "__main__"...
[ 11748, 7007, 11, 17752, 11, 17597, 11, 260, 11, 418, 198, 6738, 4818, 8079, 1330, 4818, 8079, 198, 198, 6738, 7623, 2389, 47429, 1330, 1635, 198, 198, 2, 361, 345, 14765, 284, 9117, 428, 8265, 198, 2, 14323, 2145, 869, 198, 2, 21928...
3.391753
97
# -*- coding: utf-8 -*- import unittest from selenium import webdriver from selenium.common.exceptions import NoAlertPresentException from selenium.common.exceptions import NoSuchElementException if __name__ == "__main__": unittest.main()
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 11748, 555, 715, 395, 198, 198, 6738, 384, 11925, 1505, 1330, 3992, 26230, 198, 6738, 384, 11925, 1505, 13, 11321, 13, 1069, 11755, 1330, 1400, 36420, 34695, 16922, 198, ...
3.049383
81
from .mlp import * from .resnet import * from .densenet import *
[ 6738, 764, 4029, 79, 1330, 1635, 198, 6738, 764, 411, 3262, 1330, 1635, 198, 6738, 764, 67, 18756, 316, 1330, 1635, 198 ]
2.954545
22
''' Created on Jun 12, 2012 @author: kristof '''
[ 7061, 6, 198, 41972, 319, 7653, 1105, 11, 2321, 198, 198, 31, 9800, 25, 479, 1585, 1659, 198, 7061, 6, 628, 198 ]
2.363636
22
#!/usr/bin/python # -*- coding: utf-8 -*- import xadmin from open_loan.models import Loan, LoanCategory, LoanScraper, LoanWebsite, Legend xadmin.site.register(Loan, LoanAdmin) xadmin.site.register(LoanCategory, LoanCategoryAdmin) xadmin.site.register(LoanScraper, LoanScraperAdmin) xadmin.site.register(LoanWebs...
[ 2, 48443, 14629, 14, 8800, 14, 29412, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 11748, 2124, 28482, 198, 6738, 1280, 62, 5439, 272, 13, 27530, 1330, 32314, 11, 32314, 27313, 11, 32314, 3351, 38545, 11,...
2.969231
130
'''Test code. ''' # pylint: disable=import-error import unittest from VectorMizuno import Vectors if __name__ == "__main__": unittest.main()
[ 7061, 6, 14402, 2438, 13, 198, 7061, 6, 198, 2, 279, 2645, 600, 25, 15560, 28, 11748, 12, 18224, 198, 11748, 555, 715, 395, 198, 198, 6738, 20650, 44, 528, 36909, 1330, 569, 478, 669, 628, 198, 198, 361, 11593, 3672, 834, 6624, 36...
2.525424
59
#!/usr/bin/env python3 # imports go here # # Free Coding session for 2015-02-24 # Written by Matt Warren # if __name__ == '__main__': try: bad_outter() except UnboundLocalError as e: print("bad_outter failed because variable was not scoped correctly") print(good_outter())
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 2, 17944, 467, 994, 198, 198, 2, 198, 2, 3232, 327, 7656, 6246, 329, 1853, 12, 2999, 12, 1731, 198, 2, 22503, 416, 4705, 11328, 198, 2, 628, 628, 198, 361, 11593, 3672, 834, ...
2.646552
116
# flake8: noqa # import all models into this package # if you have many models here with many references from one model to another this may # raise a RecursionError # to avoid this, import only the models that you directly need like: # from from fds.sdk.AxiomaEquityOptimizer.model.pet import Pet # or import this packa...
[ 2, 781, 539, 23, 25, 645, 20402, 198, 198, 2, 1330, 477, 4981, 656, 428, 5301, 198, 2, 611, 345, 423, 867, 4981, 994, 351, 867, 10288, 422, 530, 2746, 284, 1194, 428, 743, 198, 2, 5298, 257, 3311, 24197, 12331, 198, 2, 284, 3368...
3.107692
455
# In this file we will check if each company's grant of stocks is part of a regularly scheduled event # (incentive bonus, 10b5-1 plan, performance award, etc) # Import libraries import bs4 as bs import requests import re # A helper function that checks for key words that identify transaction as being scheduled # ...
[ 2, 554, 428, 2393, 356, 481, 2198, 611, 1123, 1664, 338, 7264, 286, 14420, 318, 636, 286, 257, 7987, 7530, 1785, 198, 2, 220, 357, 42816, 425, 7202, 11, 838, 65, 20, 12, 16, 1410, 11, 2854, 5764, 11, 3503, 8, 198, 198, 2, 17267,...
3.870229
131
import setuptools with open("README.md", "r") as fh: long_description = fh.read() setuptools.setup( name="skilletlib", version="1.2.0", author="Nathan Embery", author_email="nembery@paloaltonetworks.com", description="Tools for working with PAN-OS Skillets in Python 3", license='Apache 2.0...
[ 11748, 900, 37623, 10141, 198, 198, 4480, 1280, 7203, 15675, 11682, 13, 9132, 1600, 366, 81, 4943, 355, 277, 71, 25, 198, 220, 220, 220, 890, 62, 11213, 796, 277, 71, 13, 961, 3419, 198, 198, 2617, 37623, 10141, 13, 40406, 7, 198, ...
2.201479
541
from sqlalchemy import create_engine from sqlalchemy.ext.declarative import declarative_base from sqlalchemy.orm import sessionmaker, Session from fastapi.requests import Request engine = create_engine("sqlite:///./sql_app.db") SessionLocal = sessionmaker(autocommit=False, autoflush=False, bind=engine) Base = declar...
[ 6738, 44161, 282, 26599, 1330, 2251, 62, 18392, 198, 6738, 44161, 282, 26599, 13, 2302, 13, 32446, 283, 876, 1330, 2377, 283, 876, 62, 8692, 198, 6738, 44161, 282, 26599, 13, 579, 1330, 6246, 10297, 11, 23575, 198, 6738, 3049, 15042, ...
3.27451
102
import string import numpy as np from scipy.spatial.distance import pdist, squareform from Bio import Alphabet from Bio.Alphabet import Reduced import random # %% class MSA: ''' Copies trRosetta's methods''' @staticmethod @staticmethod @staticmethod @staticmethod @staticmethod @stati...
[ 11748, 4731, 198, 11748, 299, 32152, 355, 45941, 198, 6738, 629, 541, 88, 13, 2777, 34961, 13, 30246, 1330, 279, 17080, 11, 6616, 687, 198, 198, 6738, 16024, 1330, 45695, 198, 6738, 16024, 13, 2348, 19557, 1330, 39963, 198, 198, 11748, ...
2.271875
320
# -*- coding: utf-8 -*- import sys import os from workflow import Workflow3 import leancloud import util log = None if __name__ == '__main__': wf = Workflow3() log = wf.logger sys.exit(wf.run(main))
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 11748, 25064, 198, 11748, 28686, 198, 6738, 30798, 1330, 5521, 11125, 18, 198, 11748, 10904, 17721, 198, 11748, 7736, 198, 198, 6404, 796, 6045, 628, 628, 628, 198, 198, ...
2.406593
91
from selenium import webdriver import pytest from application import Application @pytest.fixture(scope='module')
[ 6738, 384, 11925, 1505, 1330, 3992, 26230, 198, 11748, 12972, 9288, 198, 6738, 3586, 1330, 15678, 628, 198, 31, 9078, 9288, 13, 69, 9602, 7, 29982, 11639, 21412, 11537, 198 ]
3.833333
30
from django.shortcuts import render # Create your views here. from django.http import HttpResponse from django.shortcuts import render import youtube_dl from .forms import DownloadForm
[ 6738, 42625, 14208, 13, 19509, 23779, 1330, 8543, 198, 198, 2, 13610, 534, 5009, 994, 13, 198, 6738, 42625, 14208, 13, 4023, 1330, 367, 29281, 31077, 198, 6738, 42625, 14208, 13, 19509, 23779, 1330, 8543, 198, 11748, 35116, 62, 25404, 1...
3.895833
48
# Copyright (c) 2020 PaddlePaddle 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 applic...
[ 2, 15069, 357, 66, 8, 12131, 350, 37382, 47, 37382, 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...
3.681992
261
from app.api.v1.models.base_model import BaseModel # model class for products
[ 6738, 598, 13, 15042, 13, 85, 16, 13, 27530, 13, 8692, 62, 19849, 1330, 7308, 17633, 628, 220, 220, 220, 1303, 2746, 1398, 329, 3186 ]
3.28
25
# Copyright 2021 PCL & PKU # 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, software...
[ 2, 15069, 33448, 4217, 43, 1222, 29673, 52, 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, 74...
4.055
200
import random from unittest import TestCase from website import WebsiteMock
[ 11748, 4738, 198, 6738, 555, 715, 395, 1330, 6208, 20448, 198, 198, 6738, 3052, 1330, 15887, 44, 735, 628 ]
4.105263
19
import time from six import string_types from .LambdaBackedCustomResource import LambdaBackedCustomResource class Tags(LambdaBackedCustomResource): """ Custom Resource to extract tags from the CloudFormation Stack, and expose them via GetAtt() to other resources that don't automatically inherit the ...
[ 11748, 640, 198, 198, 6738, 2237, 1330, 4731, 62, 19199, 198, 198, 6738, 764, 43, 4131, 6814, 33, 6021, 15022, 26198, 1330, 21114, 6814, 33, 6021, 15022, 26198, 628, 198, 4871, 44789, 7, 43, 4131, 6814, 33, 6021, 15022, 26198, 2599, 1...
3.120623
257
import os import pytest from pymongo import MongoClient from starlette.testclient import TestClient @pytest.fixture @pytest.yield_fixture(scope='function')
[ 11748, 28686, 198, 198, 11748, 12972, 9288, 198, 6738, 279, 4948, 25162, 1330, 42591, 11792, 198, 6738, 3491, 21348, 13, 9288, 16366, 1330, 6208, 11792, 628, 198, 31, 9078, 9288, 13, 69, 9602, 628, 198, 31, 9078, 9288, 13, 88, 1164, 6...
3.22
50
"""Base core views.""" from django.contrib.auth import mixins as auth_mixins from django.urls import reverse from django.utils.http import is_safe_url from django.views import generic from ..extensions import exts_pool def find_nextlocation(request, user): """Find next location for given user after login.""" ...
[ 37811, 14881, 4755, 5009, 526, 15931, 198, 198, 6738, 42625, 14208, 13, 3642, 822, 13, 18439, 1330, 5022, 1040, 355, 6284, 62, 19816, 1040, 198, 6738, 42625, 14208, 13, 6371, 82, 1330, 9575, 198, 6738, 42625, 14208, 13, 26791, 13, 4023,...
2.651663
511
#!/usr/bin/env python # Advanced Multi-Mission Operations System (AMMOS) Instrument Toolkit (AIT) # Bespoke Link to Instruments and Small Satellites (BLISS) # # Copyright 2016, by the California Institute of Technology. ALL RIGHTS # RESERVED. United States Government Sponsorship acknowledged. Any # commercial use must...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 198, 2, 13435, 15237, 12, 37057, 16205, 4482, 357, 2390, 44, 2640, 8, 42410, 16984, 15813, 357, 32, 2043, 8, 198, 2, 347, 9774, 2088, 7502, 284, 43953, 290, 10452, 311, 7528, 2737, 3...
3.486239
327
import os import jinja2 tilenames = [ 'DES0544-2249', 'DES2122+0001', 'DES2122-0041', 'DES2122+0043', 'DES2122-0124', 'DES2122+0126', 'DES2122-0207', 'DES2122+0209', 'DES2125+0001', 'DES2125-0041', 'DES2125+0043', 'DES2125-0124', 'DES2125+0126', 'DES2125-0207', ...
[ 11748, 28686, 198, 11748, 474, 259, 6592, 17, 198, 198, 47163, 268, 1047, 796, 685, 198, 220, 220, 220, 705, 30910, 2713, 2598, 12, 17, 21626, 3256, 198, 220, 220, 220, 705, 30910, 17, 18376, 10, 18005, 3256, 198, 220, 220, 220, 705...
1.784108
667
"""Exception classes """
[ 37811, 16922, 6097, 198, 37811, 628 ]
4.333333
6
""" Модуль для генерация отчёта со статистикой по урлам """ import sys import asyncio import csv import aiohttp from typing import Tuple, List from argparse import ArgumentParser from aiohttp import ClientSession if __name__ == "__main__": generator_report_stat_nodes = GeneratorReportStatUrls() generat...
[ 37811, 198, 140, 250, 25443, 112, 35072, 30143, 45367, 12466, 112, 30143, 40623, 12466, 111, 16843, 22177, 16843, 21169, 16142, 141, 228, 18849, 40623, 12466, 122, 20375, 141, 229, 141, 239, 20375, 16142, 220, 21727, 15166, 220, 21727, 2037...
2.328947
152
from os import listdir from os.path import isfile, join import argparse import cv2 # pip install opencv-python from pyzbar.pyzbar import decode # decode barcode ap = argparse.ArgumentParser() ap.add_argument("-i", "--image", required=False, help="path to the image file") ap.add_argument("-d", "--dir", required=Fal...
[ 6738, 28686, 1330, 1351, 15908, 198, 6738, 28686, 13, 6978, 1330, 318, 7753, 11, 4654, 198, 11748, 1822, 29572, 198, 11748, 269, 85, 17, 220, 220, 1303, 7347, 2721, 1280, 33967, 12, 29412, 198, 6738, 12972, 89, 5657, 13, 9078, 89, 565...
2.851064
376
# Backwards compatibilty video_captioner = captioner
[ 2, 5157, 2017, 8330, 571, 6267, 198, 15588, 62, 6888, 1159, 263, 796, 8305, 263 ]
3.466667
15
# # Copyright Michael Groys, 2012-2014 # # # This file contains definition of different commands used in mining statement # Each command is responsible to create code text for its generator function # import sys from base import * from async_command import * from accumulate import * from db_command imp...
[ 2, 201, 198, 2, 15069, 3899, 10299, 893, 11, 2321, 12, 4967, 201, 198, 2, 201, 198, 201, 198, 2, 201, 198, 2, 770, 2393, 4909, 6770, 286, 1180, 9729, 973, 287, 9691, 2643, 201, 198, 2, 5501, 3141, 318, 4497, 284, 2251, 2438, 242...
3.203883
309
""" Copyright (c) 2018 iCyP Released under the MIT license https://opensource.org/licenses/mit-license.php """ import bpy, bmesh from mathutils import Vector,Matrix from .. import V_Types as VRM_Types from ..V_Types import nested_json_value_getter as json_get from math import sqrt,pow,radians import numpy import os....
[ 37811, 198, 15269, 357, 66, 8, 2864, 1312, 20418, 47, 198, 45037, 739, 262, 17168, 5964, 198, 5450, 1378, 44813, 1668, 13, 2398, 14, 677, 4541, 14, 2781, 12, 43085, 13, 10121, 198, 198, 37811, 628, 198, 11748, 275, 9078, 11, 275, 76...
3.039735
151
""" Contains models for the export app. These are mainly just to provide some way to track your exports. """ import importlib from django.db import models from django.contrib.auth.models import User class ExportType(models.Model): """ Describes 'Type' of export: Bib Records (as MARC), etc. """ code = ...
[ 37811, 198, 4264, 1299, 4981, 329, 262, 10784, 598, 13, 2312, 389, 8384, 655, 284, 2148, 198, 11246, 835, 284, 2610, 534, 15319, 13, 198, 37811, 198, 11748, 1330, 8019, 198, 198, 6738, 42625, 14208, 13, 9945, 1330, 4981, 198, 6738, 42...
3.042751
538
# -*- coding: utf-8 -*- import time import re import threading from contextlib import contextmanager from ..exceptions import CleoException from ..outputs import Output from .helper import Helper
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 11748, 640, 198, 11748, 302, 198, 11748, 4704, 278, 198, 198, 6738, 4732, 8019, 1330, 4732, 37153, 198, 198, 6738, 11485, 1069, 11755, 1330, 3779, 78, 16922, 198, 6...
3.448276
58
import numpy as np import pandas as pd import aljpy.download import sqlalchemy from sqlalchemy.ext.declarative import declarative_base from sqlalchemy import Column, Integer, Float, String, ForeignKey, create_engine from pavlov import runs, storage import ast from tqdm.auto import tqdm from pathlib import Path from con...
[ 11748, 299, 32152, 355, 45941, 198, 11748, 19798, 292, 355, 279, 67, 198, 11748, 435, 73, 9078, 13, 15002, 198, 11748, 44161, 282, 26599, 198, 6738, 44161, 282, 26599, 13, 2302, 13, 32446, 283, 876, 1330, 2377, 283, 876, 62, 8692, 198...
3.199071
1,723