content
stringlengths
1
1.04M
input_ids
listlengths
1
774k
ratio_char_token
float64
0.38
22.9
token_count
int64
1
774k
from rest_framework import generics from .serializers import GlassesModelListSerializer, GlassesModelSerializer from ..services import get_all_glasses
[ 6738, 1334, 62, 30604, 1330, 1152, 873, 198, 198, 6738, 764, 46911, 11341, 1330, 12158, 274, 17633, 8053, 32634, 7509, 11, 12158, 274, 17633, 32634, 7509, 198, 198, 6738, 11485, 30416, 1330, 651, 62, 439, 62, 4743, 13978, 198 ]
3.923077
39
# Numeric - int, float, complex # String - list of characters # List - can be changed or modified, variable length # Tuple - immutable nature, fixed length # Boolean # Set - Hash Set # Dictionary - Hash Maps # Numeric a = 5 print("Type of a: ", type(a)) b = 5.0 print("\nType of b: ", type(b)) c = 2 + 4j print("\nTy...
[ 2, 399, 39223, 532, 493, 11, 12178, 11, 3716, 198, 2, 10903, 532, 1351, 286, 3435, 198, 2, 7343, 532, 460, 307, 3421, 393, 9518, 11, 7885, 4129, 198, 2, 309, 29291, 532, 40139, 3450, 11, 5969, 4129, 198, 2, 41146, 198, 2, 5345, ...
2.510145
345
""" This is copied and adapted from https://github.com/EISy-as-Py/eisy """ import sys import os import setuptools from setuptools import setup # Get version and release info, which #is all stored in shablona/version.py ver_file = os.path.join('crystalmaths', 'version.py') with open(ver_file) as f: exec(f.read...
[ 37811, 198, 1212, 318, 18984, 290, 16573, 422, 3740, 1378, 12567, 13, 785, 14, 36, 1797, 88, 12, 292, 12, 20519, 14, 68, 13560, 198, 37811, 198, 198, 11748, 25064, 198, 11748, 28686, 198, 11748, 900, 37623, 10141, 198, 6738, 900, 3762...
2.4618
589
""" This file is part of the Fourier-Bessel Particle-In-Cell code (FB-PIC) It imports the Ionizer object, for generation of electrons through ionization. """ from .ionizer import Ionizer __all__ = ['Ionizer']
[ 37811, 198, 1212, 2393, 318, 636, 286, 262, 34296, 5277, 12, 33, 7878, 2142, 1548, 12, 818, 12, 28780, 2438, 357, 26001, 12, 47, 2149, 8, 198, 1026, 17944, 262, 36404, 7509, 2134, 11, 329, 5270, 286, 28722, 832, 22088, 1634, 13, 198...
3.28125
64
lista_computador = ["RTX 2080Ti", "Gabinete Cooler Master", "i5 7400", "Memória RAM 8gb", "Fonte 500W"] print("Lista de itens para montar o computador: {}".format(lista_computador)) lista_computador.remove("RTX 2080Ti") lista_computador.remove("Gabinete Cooler Master") print("Como a RTX 2080Ti e o Gabinete Cooler Maste...
[ 4868, 64, 62, 785, 1996, 7079, 796, 14631, 14181, 55, 1160, 1795, 40533, 1600, 366, 38, 6014, 14471, 15226, 263, 5599, 1600, 366, 72, 20, 767, 7029, 1600, 366, 13579, 10205, 7496, 13931, 807, 22296, 1600, 366, 37, 38599, 5323, 54, 897...
2.605381
223
import configparser from os.path import isfile import humanfriendly import logging from general_conf import path_config logger = logging.getLogger(__name__)
[ 11748, 4566, 48610, 198, 6738, 28686, 13, 6978, 1330, 318, 7753, 198, 11748, 1692, 13120, 198, 11748, 18931, 198, 6738, 2276, 62, 10414, 1330, 3108, 62, 11250, 198, 6404, 1362, 796, 18931, 13, 1136, 11187, 1362, 7, 834, 3672, 834, 8, ...
3.738095
42
from typing import List import numpy as np from .types import Candidate, LabeledData, LabelValue from .transforms import CandidateTransform
[ 6738, 19720, 1330, 7343, 198, 198, 11748, 299, 32152, 355, 45941, 198, 198, 6738, 764, 19199, 1330, 40327, 11, 3498, 18449, 6601, 11, 36052, 11395, 198, 6738, 764, 7645, 23914, 1330, 40327, 41762, 628 ]
4.205882
34
a,b,c = map(int, input().split()) i = int(str(a)+str(b))+c i2= int(str(b)+str(a))+c j = int(str(b)+str(c))+a j2= int(str(c)+str(b))+a k = int(str(c)+str(a))+b k2= int(str(a)+str(c))+b n = max(i,i2,j,j2,k,k2) print(n)
[ 64, 11, 65, 11, 66, 796, 3975, 7, 600, 11, 5128, 22446, 35312, 28955, 198, 72, 796, 493, 7, 2536, 7, 64, 47762, 2536, 7, 65, 4008, 10, 66, 198, 72, 17, 28, 493, 7, 2536, 7, 65, 47762, 2536, 7, 64, 4008, 10, 66, 198, 73, 79...
1.631579
133
from django.shortcuts import render import shopify from shopify_app.decorators import shop_login_required from bs4 import BeautifulSoup from .forms import CreateCollectionForm @shop_login_required @shop_login_required @shop_login_required @shop_login_required @shop_login_required
[ 6738, 42625, 14208, 13, 19509, 23779, 1330, 8543, 198, 11748, 6128, 1958, 198, 6738, 6128, 1958, 62, 1324, 13, 12501, 273, 2024, 1330, 6128, 62, 38235, 62, 35827, 198, 6738, 275, 82, 19, 1330, 23762, 50, 10486, 198, 6738, 764, 23914, ...
3.03
100
import matplotlib.pyplot as plt import numpy as np import os import sys from pathlib import Path from os.path import isdir, join, isfile from os import listdir import fnmatch from itertools import cycle from random import randint dir_path = os.path.dirname(os.path.realpath(__file__)) sys.path.insert(0, dir_path) # i...
[ 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 28686, 198, 11748, 25064, 198, 6738, 3108, 8019, 1330, 10644, 198, 6738, 28686, 13, 6978, 1330, 318, 15908, 11, 4654, 11, 318, 7753...
2.783784
444
"""Pytest Fixtures and Helpers.""" class MockEvent(dict): """Mock Document Object.""" @property def id(self): """Access for "id".""" return self.get("id") class BetfundResponse(dict): """Mock Response Object.""" @property def results(self): """Access for "results"."...
[ 37811, 20519, 9288, 376, 25506, 290, 10478, 364, 526, 15931, 628, 198, 4871, 44123, 9237, 7, 11600, 2599, 198, 220, 220, 220, 37227, 44, 735, 16854, 9515, 526, 15931, 628, 220, 220, 220, 2488, 26745, 198, 220, 220, 220, 825, 4686, 7, ...
2.603133
383
#!/bin/python3 import math import os import random import re import sys # Complete the rotLeft function below. if __name__ == '__main__': fptr = open(os.environ['OUTPUT_PATH'], 'w') nd = input().split() n = int(nd[0]) d = int(nd[1]) a = list(map(int, input().rstrip().split())) result = r...
[ 2, 48443, 8800, 14, 29412, 18, 198, 198, 11748, 10688, 198, 11748, 28686, 198, 11748, 4738, 198, 11748, 302, 198, 11748, 25064, 198, 198, 2, 13248, 262, 5724, 18819, 2163, 2174, 13, 198, 198, 361, 11593, 3672, 834, 6624, 705, 834, 124...
2.363636
176
# https://www.cnblogs.com/mxjhaima/p/13775844.html # https://www.cnblogs.com/mxjhaima/p/13775844.html # https://blog.csdn.net/weixin_43930694/article/details/90142678 from lxml import etree import requests from prettytable import PrettyTable import datetime # 使用BeautifulSoup解析网页 from bs4 import BeautifulSoup import db_...
[ 2, 3740, 1378, 2503, 13, 31522, 49096, 13, 785, 14, 36802, 73, 71, 1385, 64, 14, 79, 14, 19708, 38569, 2598, 13, 6494, 198, 2, 3740, 1378, 2503, 13, 31522, 49096, 13, 785, 14, 36802, 73, 71, 1385, 64, 14, 79, 14, 19708, 38569, 2...
2.089404
302
# -*- coding: utf-8 -*- # @Time : 2020/8/7 pm3:11 # @Author : cmk # @File : utils.py.py import pickle import matplotlib.pyplot as plt import matplotlib.animation as animation import os import imageio from tqdm import tqdm import re import numpy as np import math from enum import Enum import random import multiprocessi...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 2488, 7575, 1058, 12131, 14, 23, 14, 22, 9114, 18, 25, 1157, 198, 2, 2488, 13838, 1058, 12067, 74, 198, 2, 2488, 8979, 1058, 3384, 4487, 13, 9078, 13, 9078, 198, ...
2.153365
639
from bpy.types import NodeSocket import bpy
[ 6738, 275, 9078, 13, 19199, 1330, 19081, 39105, 198, 11748, 275, 9078, 628 ]
3.461538
13
import os from random import random import numpy as np import torch def set_seed(seed=42): """Sets the seed of the entire notebook so results are the same every time we run. This is for REPRODUCIBILITY.""" np.random.seed(seed) random.seed(seed) torch.manual_seed(seed) torch.cuda.manual_seed(s...
[ 11748, 28686, 198, 6738, 4738, 1330, 4738, 198, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 28034, 628, 198, 4299, 900, 62, 28826, 7, 28826, 28, 3682, 2599, 198, 220, 220, 220, 37227, 50, 1039, 262, 9403, 286, 262, 2104, 20922, 52...
2.746411
209
#!/usr/bin/env python #-*- coding: utf-8 -*- from lib import script from lib import general ID = { #eventid: itemid 11000416: 10031301, #ヘアカラー・チェリーレッド 11000417: 10031302, #ヘアカラー・ジェードパープル 11000418: 10031303, #ヘアカラー・ブルー 11000419: 10031304, #ヘアカラー・アイスブルー 11000420: 10031305, #ヘアカラー・グリーン 11000421: 10031306, #ヘアカラー・ライ...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 12, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 6738, 9195, 1330, 4226, 198, 6738, 9195, 1330, 2276, 198, 198, 2389, 796, 1391, 1303, 15596, 312, 25, 2378, 312, 198, ...
1.569199
961
import tensorflow as tf import cv2 import os import sys import numpy as np import facenet.src.align.detect_face as FaceDet from scipy import misc import torch def load_imgdir(source_imgdir, resize=None): """ Load images in source dir for further use. Args: source_imgdir: Path where victim ima...
[ 11748, 11192, 273, 11125, 355, 48700, 198, 11748, 269, 85, 17, 198, 11748, 28686, 198, 11748, 25064, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 1777, 268, 316, 13, 10677, 13, 31494, 13, 15255, 478, 62, 2550, 355, 15399, 11242, 198,...
2.189582
1,171
from couchdbkit.ext.django.schema import Document, BooleanProperty, StringProperty from casexml.apps.stock.models import DocDomainMapping from corehq.toggles import STOCK_AND_RECEIPT_SMS_HANDLER from toggle.shortcuts import update_toggle_cache, namespaced_item from toggle.models import Toggle from corehq.toggles import...
[ 6738, 18507, 9945, 15813, 13, 2302, 13, 28241, 14208, 13, 15952, 2611, 1330, 16854, 11, 41146, 21746, 11, 10903, 21746, 198, 6738, 1339, 19875, 13, 18211, 13, 13578, 13, 27530, 1330, 14432, 43961, 44, 5912, 198, 6738, 4755, 71, 80, 13, ...
3.356436
101
BLACK = (0, 0, 0) WHITE = (255, 255, 255) GREEN = (0, 255, 0) SHADOW = (192, 192, 192) DARKGREEN = (0, 200, 0) BLUE = (0, 0, 128) LIGHTBLUE= (0, 0, 255) RED= (200, 0, 0) LIGHTRED= (255, 100, 100) PURPLE = (102, 0, 102) LIGHTPURPLE= (153, 0, 153) GOLD = (255, 215, 0) WIDTH = 1000 HEIGHT = 850
[ 9148, 8120, 796, 357, 15, 11, 657, 11, 657, 8, 198, 12418, 12709, 796, 357, 13381, 11, 14280, 11, 14280, 8, 198, 43016, 796, 357, 15, 11, 14280, 11, 657, 8, 198, 9693, 2885, 3913, 796, 357, 17477, 11, 17817, 11, 17817, 8, 198, 3...
1.946667
150
num = int(input('Type a number: ')) for c in range(1, 11): print('{} x {} = {}'.format(num, c, num * c))
[ 22510, 796, 493, 7, 15414, 10786, 6030, 257, 1271, 25, 705, 4008, 198, 1640, 269, 287, 2837, 7, 16, 11, 1367, 2599, 198, 220, 220, 220, 3601, 10786, 90, 92, 2124, 23884, 796, 23884, 4458, 18982, 7, 22510, 11, 269, 11, 997, 1635, 2...
2.4
45
import math import torch import pandas as pd import matplotlib.pyplot as plt from src.utils.OptimalTiling import count_buffers, count_params, count_trainable import seaborn as sns sns.set() X = 'evals' X_LIM = (0, 1e9) Y_LIM = None GRID = True folders = [ 'asteroids', 'Amidar', # 'Assault', # 'Asterix...
[ 11748, 10688, 198, 11748, 28034, 198, 11748, 19798, 292, 355, 279, 67, 198, 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 198, 6738, 12351, 13, 26791, 13, 27871, 4402, 51, 4386, 1330, 954, 62, 36873, 364, 11, 954, 62, 37266...
2.048471
1,733
from twython import TwythonStreamer import random import config import ast from collections import namedtuple class MarkovChain: ''' dead-simple markov chain ''' def load_corpus(self, corpus_data): ''' this is stupidly insecure/unsafe ''' self.tokens = eval(corpus_data) def learn_word(sel...
[ 6738, 665, 7535, 1330, 1815, 7535, 28696, 198, 11748, 4738, 198, 11748, 4566, 198, 11748, 6468, 198, 6738, 17268, 1330, 3706, 83, 29291, 198, 198, 4871, 2940, 709, 35491, 25, 198, 220, 220, 220, 705, 7061, 2636, 12, 36439, 1317, 709, ...
2.089117
1,167
import requests import json from random import randrange # api = PokeAPI() # print(json.dumps(api.getPokemon(randrange(10)), indent=2))
[ 11748, 7007, 198, 11748, 33918, 198, 6738, 4738, 1330, 43720, 9521, 628, 198, 2, 40391, 796, 41163, 17614, 3419, 198, 2, 3601, 7, 17752, 13, 67, 8142, 7, 15042, 13, 1136, 48034, 7, 25192, 9521, 7, 940, 36911, 33793, 28, 17, 4008 ]
3.261905
42
from ypc import tag_utils
[ 6738, 331, 14751, 1330, 7621, 62, 26791, 628, 198 ]
3.111111
9
''' created by S.Basu Date: 20-Oct-2017 ''' import os, sys ''' a handy dictionary to map space group number and name along with lattice types for 65 chiral space groups (proteins only..) aP = triclinic Primitive, mP = monoclinic Primitive, mC = monoclinic C-centered, oP = orthorhombic Primitive, oC = orthorhombic C-ce...
[ 7061, 6, 198, 25598, 416, 311, 13, 15522, 84, 198, 10430, 25, 1160, 12, 12349, 12, 5539, 198, 7061, 6, 198, 198, 11748, 28686, 11, 25064, 198, 7061, 6, 198, 64, 15728, 22155, 284, 3975, 2272, 1448, 1271, 290, 1438, 1863, 351, 47240,...
2.053498
972
import os import sys import sqlite3 import pandas as pd sys.path.append(os.path.abspath("..")) from survey._app import CODE_DIR, app from survey.db import get_db import argparse db = ":memory:" STATS_FUNCTIONS = {} DEMOGRAPHICS_FUNCTIONS = {} ETHNICITIES = dict([ ("american_indian_or_alaska_native", "Americ...
[ 11748, 28686, 198, 11748, 25064, 198, 11748, 44161, 578, 18, 198, 198, 11748, 19798, 292, 355, 279, 67, 628, 198, 17597, 13, 6978, 13, 33295, 7, 418, 13, 6978, 13, 397, 2777, 776, 7203, 492, 48774, 198, 198, 6738, 5526, 13557, 1324, ...
2.76583
837
import json import urllib2 import os from string import Template from decimal import Decimal # database stuff from sqlalchemy.exc import DBAPIError from sqlalchemy import or_ from climasng.models import * from climasng.parsing.prosemaker import ProseMaker
[ 198, 11748, 33918, 198, 11748, 2956, 297, 571, 17, 198, 11748, 28686, 198, 6738, 4731, 1330, 37350, 198, 6738, 32465, 1330, 4280, 4402, 198, 198, 2, 6831, 3404, 198, 6738, 44161, 282, 26599, 13, 41194, 1330, 20137, 17614, 12331, 198, 67...
3.397436
78
"""Builds the Pytorch computational graph. Tensors flowing into a single vertex are added together for all vertices except the output, which is concatenated instead. Tensors flowing out of input are always added. If interior edge channels don't match, drop the extra channels (channels are guaranteed non-decreasing). ...
[ 37811, 15580, 82, 262, 9485, 13165, 354, 31350, 4823, 13, 198, 198, 51, 641, 669, 17609, 656, 257, 2060, 37423, 389, 2087, 1978, 329, 477, 9421, 1063, 198, 16341, 262, 5072, 11, 543, 318, 1673, 36686, 515, 2427, 13, 40280, 669, 17609,...
2.882696
1,543
import munch import numpy as np import pytest from astropy.io import fits from matplotlib import pyplot as plt import amical from amical import load from amical import loadc from amical.get_infos_obs import get_pixel_size # import numpy as np # from amical.mf_pipeline.ami_function import find_bad_BL_BS # from amical...
[ 11748, 285, 3316, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 12972, 9288, 198, 6738, 6468, 28338, 13, 952, 1330, 11414, 198, 6738, 2603, 29487, 8019, 1330, 12972, 29487, 355, 458, 83, 198, 198, 11748, 716, 605, 198, 6738, 716, 605,...
2.026604
1,278
'''Helper functions for rosenbrock optimization examples.''' import downhill import numpy as np import theano from theano.sandbox.rng_mrg import MRG_RandomStreams as RandomStreams COLORS = ('#d62728 #1f77b4 #2ca02c #9467bd #ff7f0e ' '#e377c2 #8c564b #bcbd22 #7f7f7f #17becf').split() FLOAT = 'df'[theano.co...
[ 7061, 6, 47429, 5499, 329, 686, 6248, 7957, 694, 23989, 6096, 2637, 7061, 198, 198, 11748, 35390, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 262, 5733, 198, 198, 6738, 262, 5733, 13, 38142, 3524, 13, 81, 782, 62, 76, 41345, 1330,...
2.498523
1,354
# # Copyright 2013-2021 The Foundry Visionmongers Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by app...
[ 2, 198, 2, 220, 220, 15069, 2211, 12, 1238, 2481, 383, 4062, 563, 19009, 31059, 364, 12052, 198, 2, 198, 2, 220, 220, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 2, 220, 220, 345, 743,...
3.228774
424
import os import json import requests import thingspeak import datetime import pandas as pd from functools import reduce from itertools import tee def pairwise(iterable): "s -> (s0,s1), (s1,s2), (s2, s3), ..." a, b = tee(iterable) next(b, None) return zip(a, b) sensor_list = pd.read_csv('pa_sensor...
[ 11748, 28686, 198, 11748, 33918, 198, 11748, 7007, 198, 11748, 1243, 36729, 198, 198, 11748, 4818, 8079, 198, 11748, 19798, 292, 355, 279, 67, 220, 198, 198, 6738, 1257, 310, 10141, 1330, 4646, 198, 6738, 340, 861, 10141, 1330, 30479, 1...
2.4102
902
''' Created on 2017-5-30 @author: 3xtrees ''' # coding: UTF-8 import tushare as ts ''' ma20 strategy ''' def parse(stock, start_date): '''''process stock''' is_buy = 0 buy_val = [] buy_date = [] sell_val = [] sell_date = [] df = ts.get_hist_data(stock, start=start_date) ma20...
[ 7061, 6, 198, 41972, 319, 2177, 12, 20, 12, 1270, 198, 31, 9800, 25, 513, 742, 6037, 198, 7061, 6, 198, 198, 2, 19617, 25, 41002, 12, 23, 198, 11748, 256, 1530, 533, 355, 40379, 198, 198, 7061, 6, 198, 2611, 1238, 4811, 198, 706...
1.805987
902
# -*- coding: utf-8 -*- # @Author: kjjdas # @Date: 2018-11-13 00:45:32 # @Last Modified time: 2018-11-17 16:36:39
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 2488, 13838, 25, 479, 41098, 67, 292, 198, 2, 2488, 10430, 25, 220, 220, 2864, 12, 1157, 12, 1485, 3571, 25, 2231, 25, 2624, 198, 2, 2488, 5956, 40499, 640, 25, ...
2.035088
57
# BOJ 2573 빙산 from collections import deque import sys sys.setrecursionlimit(100000) sys.stdin = open("../input.txt", "r") si = sys.stdin.readline dy = [-1, 1, 0, 0] dx = [0, 0, -1, 1] # def dfs(y, x, visited, label_number): # if y < 0 or y >= N or x < 0 or x >= M: # return False # if graph[y][x] =...
[ 2, 16494, 41, 1679, 4790, 31619, 117, 247, 168, 224, 108, 198, 6738, 17268, 1330, 390, 4188, 198, 11748, 25064, 198, 198, 17597, 13, 2617, 8344, 24197, 32374, 7, 3064, 830, 8, 198, 17597, 13, 19282, 259, 796, 1280, 7203, 40720, 15414,...
1.714982
821
""" Contains path and filesystem related utilities. """ from collections.abc import Generator, Iterable from pathlib import Path # https://stackoverflow.com/questions/6639394/what-is-the-python-way-to-walk-a-directory-tree def walk_dirs(head_dirs: Iterable[Path]) -> Generator[Path, None, None]: """ Walks the...
[ 37811, 198, 4264, 1299, 3108, 290, 29905, 3519, 20081, 13, 198, 37811, 198, 198, 6738, 17268, 13, 39305, 1330, 35986, 11, 40806, 540, 198, 6738, 3108, 8019, 1330, 10644, 628, 198, 2, 3740, 1378, 25558, 2502, 11125, 13, 785, 14, 6138, ...
2.425197
254
import argparse import io import os import os.path import pandas as pd import sacrebleu from dotenv import load_dotenv from pdfminer.converter import TextConverter from pdfminer.layout import LAParams from pdfminer.pdfinterp import PDFResourceManager, PDFPageInterpreter from pdfminer.pdfpage import PDFPage from ..comm...
[ 11748, 1822, 29572, 198, 11748, 33245, 198, 11748, 28686, 198, 11748, 28686, 13, 6978, 198, 198, 11748, 19798, 292, 355, 279, 67, 198, 11748, 5360, 260, 903, 84, 198, 6738, 16605, 24330, 1330, 3440, 62, 26518, 24330, 198, 6738, 37124, 1...
2.245074
4,974
#!/usr/bin/env python # Author: Alex Tereschenko <alext.mkrs@gmail.com> # Copyright (c) 2016 Alex Tereschenko. # # SPDX-License-Identifier: MIT import mraa as m import unittest as u from i2c_checks_shared import * if __name__ == "__main__": u.main()
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 198, 2, 6434, 25, 4422, 1665, 411, 45059, 1279, 1000, 742, 13, 28015, 3808, 31, 14816, 13, 785, 29, 198, 2, 15069, 357, 66, 8, 1584, 4422, 1665, 411, 45059, 13, 198, 2, 198, 2, 3...
2.585859
99
#QT import sip sip.setapi('QVariant',2) sip.setapi('QString',2) from PyQt4 import QtCore,QtGui,QtNetwork from .processListModel import ProcessListModel from klusta_process_manager.general.consoleView import ConsoleView #--------------------------------------------------------------------------------------------------...
[ 2, 48, 51, 198, 11748, 31145, 198, 82, 541, 13, 2617, 15042, 10786, 48, 23907, 415, 3256, 17, 8, 198, 82, 541, 13, 2617, 15042, 10786, 48, 10100, 3256, 17, 8, 198, 6738, 9485, 48, 83, 19, 1330, 33734, 14055, 11, 48, 83, 8205, 72...
7.128472
288
# -*- coding: utf-8 -*- """Application commandline functions published as entry points in setup.py (matplotlib is not a listed package dependency, but is required when commands are invoked with the --plot option.) """ from __future__ import division from sys import stderr import os.path from optparse import OptionP...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 23416, 198, 198, 21812, 1370, 5499, 3199, 355, 5726, 2173, 287, 9058, 13, 9078, 198, 198, 7, 6759, 29487, 8019, 318, 407, 257, 5610, 5301, 20203, 11, 475, 318, ...
2.209478
5,972
#! /usr/bin/env python3 import argparse import json import logging import logging.config import os import sys import time import re from concurrent import futures from datetime import datetime import pandas as pd import numpy as np from fbprophet import Prophet import json import math # Add Generated folder to module ...
[ 2, 0, 1220, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 11748, 1822, 29572, 198, 11748, 33918, 198, 11748, 18931, 198, 11748, 18931, 13, 11250, 198, 11748, 28686, 198, 11748, 25064, 198, 11748, 640, 198, 11748, 302, 198, 6738, 24580, 13...
2.160824
9,128
# -*- coding: utf-8 -*- import random import operator from genetix.chromosome import Chromosome
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 11748, 4738, 198, 11748, 10088, 198, 198, 6738, 2429, 316, 844, 13, 28663, 418, 462, 1330, 18255, 418, 462, 628, 198 ]
2.777778
36
from functools import partial from typing import List from stateful.representable import Representable import pandas as pd from collections import defaultdict import numpy as np
[ 6738, 1257, 310, 10141, 1330, 13027, 198, 6738, 19720, 1330, 7343, 198, 198, 6738, 1181, 913, 13, 15603, 540, 1330, 10858, 540, 198, 11748, 19798, 292, 355, 279, 67, 198, 6738, 17268, 1330, 4277, 11600, 198, 11748, 299, 32152, 355, 4594...
4.209302
43
p1=Point(2,3) p2=Point(-1,2) print(p1+p2)
[ 201, 198, 79, 16, 28, 12727, 7, 17, 11, 18, 8, 201, 198, 79, 17, 28, 12727, 32590, 16, 11, 17, 8, 201, 198, 4798, 7, 79, 16, 10, 79, 17, 8, 201, 198 ]
1.382353
34
import sys sys.dont_write_bytecode = True import json from PyQt5.QtWidgets import QApplication from models.Authenticate import Dialog from models.Base import MainWindow if __name__ == "__main__": try: cfg_file = open("config.json","r") config = json.loads(cfg_file.read()) ip = config['server_ip'] p...
[ 11748, 25064, 198, 17597, 13, 67, 756, 62, 13564, 62, 26327, 8189, 796, 6407, 198, 11748, 33918, 198, 198, 6738, 9485, 48, 83, 20, 13, 48, 83, 54, 312, 11407, 1330, 1195, 23416, 198, 6738, 4981, 13, 47649, 5344, 1330, 21269, 519, 19...
2.60596
302
# -*- coding: utf-8 -*- """ Tests of the ValidationFramework TestsView. """ from test_base import *
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 198, 51, 3558, 286, 262, 3254, 24765, 21055, 6433, 30307, 7680, 13, 198, 37811, 198, 198, 6738, 1332, 62, 8692, 1330, 1635, 628, 628 ]
2.666667
39
#!/usr/bin/python from http_sockets import * soc = sock("csec380-core.csec.rit.edu", 82) tok = soc.post('http://csec380-core.csec.rit.edu:82/getSecure') tok = tok.split()[-1].strip('"') print(tok) capt = soc.post('http://csec380-core.csec.rit.edu:82/getFlag3Challenge', {'token' : tok }) capt = capt.split()[-1].strip(...
[ 2, 48443, 14629, 14, 8800, 14, 29412, 198, 6738, 2638, 62, 82, 11603, 1330, 1635, 198, 198, 35634, 796, 32263, 7203, 66, 2363, 23734, 12, 7295, 13, 66, 2363, 13, 799, 13, 15532, 1600, 9415, 8, 198, 83, 482, 796, 1307, 13, 7353, 10...
2.293233
266
import os from django.contrib.auth.models import Group from django.core.mail import EmailMultiAlternatives from django.template import Context, loader from apps.empleado.models import DatosUsuarioEmpleado from apps.punto_control.models import PuntoControl from control_accesos_v2_server import settings ...
[ 11748, 28686, 201, 198, 201, 198, 6738, 42625, 14208, 13, 3642, 822, 13, 18439, 13, 27530, 1330, 4912, 201, 198, 6738, 42625, 14208, 13, 7295, 13, 4529, 1330, 9570, 29800, 23081, 2929, 201, 198, 6738, 42625, 14208, 13, 28243, 1330, 3053...
2.981818
110
import cv2 frame=cv2.imread("d.jpg") # Webcam waitframe = 100 # frames per second while True: face(frame) ch = cv2.waitKey(waitframe) if ch == 27 or ch == ord('q') or ch == ord('Q'): cv2.waitKey(300) print('Quitt...
[ 11748, 269, 85, 17, 201, 198, 201, 198, 201, 198, 14535, 28, 33967, 17, 13, 320, 961, 7203, 67, 13, 9479, 4943, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, ...
1.722222
216
import sys import os import pickle import numpy as np import pytorch_lightning as pl import torch import torch.nn as nn import torch.nn.functional as F import torch.optim.lr_scheduler as lr_sched from pointnet2_ops.pointnet2_modules import PointnetFPModule, PointnetSAModule, PointnetSAModuleMSG from torch.utils.data im...
[ 11748, 25064, 198, 11748, 28686, 198, 11748, 2298, 293, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 12972, 13165, 354, 62, 2971, 768, 355, 458, 198, 11748, 28034, 198, 11748, 28034, 13, 20471, 355, 299, 77, 198, 11748, 28034, 13, 20...
3.183486
218
import json import random import socket import sys import threading import time from .calculator import Vector2, Vector3 # Network object class Network: """Performs networking with Unity""" def connect(self): """Connects...""" print('connecting to %s port %s' % self.server_address) s...
[ 11748, 33918, 198, 11748, 4738, 198, 11748, 17802, 198, 11748, 25064, 198, 11748, 4704, 278, 198, 11748, 640, 198, 198, 6738, 764, 9948, 3129, 1352, 1330, 20650, 17, 11, 20650, 18, 628, 198, 2, 7311, 2134, 198, 4871, 7311, 25, 198, 22...
1.913984
1,802
import os from resource_management.core.resources.system import Directory, Execute, File from resource_management.libraries.resources.xml_config import XmlConfig from resource_management.core.source import Template, InlineTemplate from resource_management.core.resources.system import Execute from resource_management.li...
[ 11748, 28686, 198, 6738, 8271, 62, 27604, 13, 7295, 13, 37540, 13, 10057, 1330, 27387, 11, 8393, 1133, 11, 9220, 198, 6738, 8271, 62, 27604, 13, 75, 11127, 13, 37540, 13, 19875, 62, 11250, 1330, 1395, 4029, 16934, 198, 6738, 8271, 62,...
4.313253
83
#!/usr/bin/python3 # -*- coding: UTF-8 -*- import os import sys import time import enum import warnings from common import match_regex if __name__ == "__main__": filename = "test.dump.annot" (start_stamp, end_stamp) = extract_stamp(filename) print("(start_stamp, end_stamp) = ", (start_stamp, end_stam...
[ 2, 48443, 14629, 14, 8800, 14, 29412, 18, 198, 2, 532, 9, 12, 19617, 25, 41002, 12, 23, 532, 9, 12, 198, 11748, 28686, 198, 11748, 25064, 198, 11748, 640, 198, 11748, 33829, 198, 11748, 14601, 198, 198, 6738, 2219, 1330, 2872, 62, ...
2.592
125
#!venv/bin/python from app import app app.run(debug = False)
[ 2, 0, 574, 85, 14, 8800, 14, 29412, 198, 6738, 598, 1330, 598, 198, 1324, 13, 5143, 7, 24442, 796, 10352, 8 ]
2.727273
22
# -*- coding: utf-8 -*- import pytest from pyramid_oereb.lib.config import Config from pyramid_oereb.lib.sources import Base from pyramid_oereb.lib.readers.glossary import GlossaryReader from pyramid_oereb.lib.records.glossary import GlossaryRecord from tests.mockrequest import MockParameter @pytest.mark.run(order=2...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 11748, 12972, 9288, 198, 198, 6738, 27944, 62, 78, 567, 65, 13, 8019, 13, 11250, 1330, 17056, 198, 6738, 27944, 62, 78, 567, 65, 13, 8019, 13, 82, 2203, 1330, 7308, ...
2.822581
124
import logging import threading from server import ConnectionClosedException log = logging.getLogger("thread") def stop_threads(threads): """ Stops all threads and disconnects each NNTP connection. """ for thread in threads: thread.stop = True thread.join() class SegmentCheckerThread...
[ 11748, 18931, 198, 11748, 4704, 278, 198, 198, 6738, 4382, 1330, 26923, 2601, 1335, 16922, 198, 198, 6404, 796, 18931, 13, 1136, 11187, 1362, 7203, 16663, 4943, 198, 198, 4299, 2245, 62, 16663, 82, 7, 16663, 82, 2599, 198, 220, 220, 2...
2.846715
137
from setuptools import find_packages, setup import pathlib here = pathlib.Path(__file__).parent.resolve() long_description = (here / 'README.md').read_text(encoding='utf-8') setup( name="harrix-test-package", version="0.3", description="Test package", long_description=long_description, long_descrip...
[ 6738, 900, 37623, 10141, 1330, 1064, 62, 43789, 11, 9058, 198, 11748, 3108, 8019, 198, 1456, 796, 3108, 8019, 13, 15235, 7, 834, 7753, 834, 737, 8000, 13, 411, 6442, 3419, 198, 6511, 62, 11213, 796, 357, 1456, 1220, 705, 15675, 11682,...
2.723301
206
import unittest import src.preprocess.preprocess as preprocess
[ 11748, 555, 715, 395, 198, 11748, 12351, 13, 3866, 14681, 13, 3866, 14681, 355, 662, 14681 ]
3.875
16
import orco # Build function for our configurations @orco.builder() # Create a global runtime environment for ORCO. # All data will be stored in file on provided path. # If file does not exists, it is created orco.start_runtime("sqlite:///my.db") # Invoke computations, builder.ref(...) creates a "reference into a ...
[ 11748, 393, 1073, 628, 198, 2, 10934, 2163, 329, 674, 25412, 198, 31, 273, 1073, 13, 38272, 3419, 628, 198, 2, 13610, 257, 3298, 19124, 2858, 329, 6375, 8220, 13, 198, 2, 1439, 1366, 481, 307, 8574, 287, 2393, 319, 2810, 3108, 13, ...
2.743056
288
# coding:utf-8 """ 通用logger """ import functools import logging import traceback import uuid from logging.handlers import RotatingFileHandler
[ 2, 19617, 25, 40477, 12, 23, 201, 198, 37811, 201, 198, 34460, 248, 18796, 101, 6404, 1362, 201, 198, 37811, 201, 198, 11748, 1257, 310, 10141, 201, 198, 11748, 18931, 201, 198, 11748, 12854, 1891, 201, 198, 11748, 334, 27112, 201, 19...
2.616667
60
from django.contrib import admin from .models import Profile, Message from .forms import ProfileForm @admin.register(Profile) @admin.register(Message)
[ 6738, 42625, 14208, 13, 3642, 822, 1330, 13169, 198, 198, 6738, 764, 27530, 1330, 13118, 11, 16000, 198, 6738, 764, 23914, 1330, 13118, 8479, 198, 198, 31, 28482, 13, 30238, 7, 37046, 8, 628, 198, 31, 28482, 13, 30238, 7, 12837, 8, ...
3.604651
43
from django.utils.translation import ugettext_lazy as _ from .models import TouristicContent, TouristicEvent from geotrek.common.forms import CommonForm from crispy_forms.layout import Div
[ 6738, 42625, 14208, 13, 26791, 13, 41519, 1330, 334, 1136, 5239, 62, 75, 12582, 355, 4808, 198, 198, 6738, 764, 27530, 1330, 9852, 2569, 19746, 11, 9852, 2569, 9237, 198, 6738, 4903, 313, 37818, 13, 11321, 13, 23914, 1330, 8070, 8479, ...
3.641509
53
import logging import time import torch from tqdm.auto import tqdm from pvi.servers import Server logger = logging.getLogger(__name__)
[ 11748, 18931, 198, 11748, 640, 198, 11748, 28034, 198, 198, 6738, 256, 80, 36020, 13, 23736, 1330, 256, 80, 36020, 198, 6738, 279, 8903, 13, 2655, 690, 1330, 9652, 198, 198, 6404, 1362, 796, 18931, 13, 1136, 11187, 1362, 7, 834, 3672,...
3.021739
46
import os import sys sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), '../src'))) from ActivityEvent import ActivityEvent from Timer import Timer
[ 11748, 28686, 220, 198, 11748, 25064, 220, 198, 17597, 13, 6978, 13, 28463, 7, 15, 11, 28686, 13, 6978, 13, 397, 2777, 776, 7, 418, 13, 6978, 13, 22179, 7, 418, 13, 6978, 13, 15908, 3672, 7, 834, 7753, 834, 828, 705, 40720, 10677,...
2.793651
63
import logging import requests from django.conf import settings from premailer import Premailer
[ 11748, 18931, 198, 198, 11748, 7007, 198, 6738, 42625, 14208, 13, 10414, 1330, 6460, 198, 6738, 4199, 603, 263, 1330, 6929, 603, 263, 628, 198 ]
3.96
25
import pandas as pd
[ 11748, 19798, 292, 355, 279, 67, 628 ]
3
7
import sys s1, s2 = sys.stdin.read().split() if __name__ == "__main__": ans = main() print(ans)
[ 11748, 25064, 201, 198, 201, 198, 82, 16, 11, 264, 17, 796, 25064, 13, 19282, 259, 13, 961, 22446, 35312, 3419, 201, 198, 201, 198, 201, 198, 201, 198, 361, 11593, 3672, 834, 6624, 366, 834, 12417, 834, 1298, 201, 198, 220, 220, 2...
1.983051
59
#Embedded file name: ACEStream\Core\Multicast\__init__.pyo from Multicast import *
[ 2, 31567, 47238, 2393, 1438, 25, 40488, 12124, 59, 14055, 59, 15205, 291, 459, 59, 834, 15003, 834, 13, 79, 8226, 198, 6738, 7854, 291, 459, 1330, 1635, 198 ]
2.862069
29
from threading import current_thread # type: ignore # pylint: disable=no-name-in-module
[ 6738, 4704, 278, 1330, 1459, 62, 16663, 220, 1303, 2099, 25, 8856, 1303, 279, 2645, 600, 25, 15560, 28, 3919, 12, 3672, 12, 259, 12, 21412, 628 ]
3.333333
27
from unittest import TestCase
[ 6738, 555, 715, 395, 1330, 6208, 20448, 628 ]
3.875
8
# Copyright (c) 2013 by Enthought, Inc., Austin, TX # All rights reserved. # # This software is provided without warranty under the terms of the BSD # license included in enthought/LICENSE.txt and may be redistributed only # under the conditions described in the aforementioned license. The license # is also available ...
[ 2, 15069, 357, 66, 8, 2211, 416, 2039, 28895, 11, 3457, 1539, 9533, 11, 15326, 198, 2, 1439, 2489, 10395, 13, 198, 2, 198, 2, 770, 3788, 318, 2810, 1231, 18215, 739, 262, 2846, 286, 262, 347, 10305, 198, 2, 5964, 3017, 287, 920, ...
2.594154
1,471
from types import SimpleNamespace import pytest import src @pytest.mark.parametrize("testCase", [ {"website": {"name": "site", "root_url": "https://someURL"}, "name": "GoodA", "expectedName": "GoodA", "price": "404", "original_price": 404, "url": "https://someURL/pruduct"}, {"websit...
[ 6738, 3858, 1330, 17427, 36690, 10223, 198, 198, 11748, 12972, 9288, 198, 198, 11748, 12351, 628, 198, 31, 9078, 9288, 13, 4102, 13, 17143, 316, 380, 2736, 7203, 9288, 20448, 1600, 685, 198, 220, 220, 220, 19779, 732, 12485, 1298, 19779...
2.180039
511
from setuptools import setup from g1.devtools import buildtools setup( name='g1.scripts', cmdclass={ 'bdist_zipapp': buildtools.make_bdist_zipapp(main_optional=True), }, packages=[ 'g1.scripts', ], install_requires=[ 'g1.bases', ], extras_require={ 'part...
[ 6738, 900, 37623, 10141, 1330, 9058, 198, 198, 6738, 308, 16, 13, 7959, 31391, 1330, 1382, 31391, 198, 198, 40406, 7, 198, 220, 220, 220, 1438, 11639, 70, 16, 13, 46521, 3256, 198, 220, 220, 220, 23991, 4871, 34758, 198, 220, 220, 2...
2.005155
194
#! /usr/bin/env python3 import os import requests import re # Inputs descriptions_dir = "/home/student/supplier-data/descriptions/" upload_url = "http://xxx.xxx.xxx.xxx/fruits/" # Get list of all .txt files in folder file_list = os.listdir(descriptions_dir) txt_paths = [descriptions_dir + item for item in file_list ...
[ 2, 0, 1220, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 198, 11748, 28686, 198, 11748, 7007, 198, 11748, 302, 198, 198, 2, 23412, 82, 198, 20147, 1968, 507, 62, 15908, 796, 12813, 11195, 14, 50139, 14, 18608, 2505, 12, 7890, 14, 201...
2.654867
339
#!/usr/bin/python3 """ FLOODS - Scenario Application __date__ = '20220228' __version__ = '1.9.1' __author__ = 'Fabio Delogu (fabio.delogu@cimafoundation.org)', 'Flavio Pignone (flavio.pignone@cimafoundation.org)', 'Rocco Masi (rocco.masi@cimafoundation.org)', 'Lorenzo Campo (lorenzo.cam...
[ 2, 48443, 14629, 14, 8800, 14, 29412, 18, 198, 37811, 198, 3697, 22808, 50, 532, 1446, 39055, 15678, 198, 198, 834, 4475, 834, 796, 705, 1238, 17572, 23815, 6, 198, 834, 9641, 834, 796, 705, 16, 13, 24, 13, 16, 6, 198, 834, 9800, ...
3.843109
682
from pathlib import Path from typing import List from src.user_errors import NoItemToRenameError from src.user_types import Inode, InodesPaths def paths_to_inodes_paths(paths: List[Path]) -> InodesPaths: """ Given a list of paths, return a mapping from inodes to paths. Args: paths: list of Path ...
[ 6738, 3108, 8019, 1330, 10644, 198, 6738, 19720, 1330, 7343, 198, 198, 6738, 12351, 13, 7220, 62, 48277, 1330, 1400, 7449, 2514, 49, 12453, 12331, 198, 6738, 12351, 13, 7220, 62, 19199, 1330, 554, 1098, 11, 554, 4147, 15235, 82, 628, ...
2.450363
413
from django.db import models from django.urls import reverse from datetime import date, datetime from django.utils import timezone from django.contrib.auth.models import User from django.template.defaultfilters import slugify #------------------------------------------------------------------ #------------------------...
[ 6738, 42625, 14208, 13, 9945, 1330, 4981, 198, 6738, 42625, 14208, 13, 6371, 82, 1330, 9575, 198, 6738, 4818, 8079, 1330, 3128, 11, 4818, 8079, 198, 6738, 42625, 14208, 13, 26791, 1330, 640, 11340, 198, 6738, 42625, 14208, 13, 3642, 822...
6.720588
136
import sys sys.path.append( "../psml" ) from typeguard.importhook import install_import_hook install_import_hook('psml') from psml import * ( sphere( 15 ) + vector( 0, 0, 18 ) ** ( sphere( 10 ) + rotate( 90, 0, 0 ) ** cylinder( 2, 15 ))).write()
[ 11748, 25064, 198, 17597, 13, 6978, 13, 33295, 7, 366, 40720, 862, 4029, 1, 1267, 198, 198, 6738, 2099, 14864, 13, 11011, 1506, 566, 1330, 2721, 62, 11748, 62, 25480, 198, 17350, 62, 11748, 62, 25480, 10786, 862, 4029, 11537, 198, 198...
2.553398
103
import os import sys import qm3.mol import qm3.problem import qm3.engines.lio import qm3.maths.matrix try: import cStringIO as io except: import io os.environ["LIOHOME"] = "./bin/slio" os.environ["OMP_NUM_THREADS"] = "2" os.environ["QM3_LIBLIO"] = "./bin/lio.so" f = open( "r.lio", "wt" ) f.write( """...
[ 11748, 28686, 198, 11748, 25064, 198, 11748, 10662, 76, 18, 13, 43132, 198, 11748, 10662, 76, 18, 13, 45573, 198, 11748, 10662, 76, 18, 13, 1516, 1127, 13, 48590, 198, 11748, 10662, 76, 18, 13, 11018, 82, 13, 6759, 8609, 198, 28311, ...
2.119048
294
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. ''' This tool wraps `yum` and its successor `dnf` to ensure more hermetic behavior. - This code should only ever be ...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 2, 15069, 357, 66, 8, 3203, 11, 3457, 13, 290, 663, 29116, 13, 198, 2, 198, 2, 770, 2723, 2438, 318, 11971, 739, 262, 17168, 5964, 1043, 287, 262, 198, 2, 38559, 24290, 2393, ...
2.610849
6,157
from panda3d.core import * from direct.interval.IntervalGlobal import * import random from toontown.effects.FireworkGlobals import * from toontown.effects.Glow import Glow from toontown.effects.GlowTrail import GlowTrail from toontown.effects.SparksTrail import SparksTrail from toontown.effects.SparksTrailLong import S...
[ 6738, 279, 5282, 18, 67, 13, 7295, 1330, 1635, 198, 6738, 1277, 13, 3849, 2100, 13, 9492, 2100, 22289, 1330, 1635, 198, 11748, 4738, 198, 6738, 284, 756, 593, 13, 34435, 13, 13543, 1818, 9861, 672, 874, 1330, 1635, 198, 6738, 284, 7...
3.019417
515
import Keypad import oled_config #print(online())
[ 11748, 7383, 15636, 198, 11748, 267, 992, 62, 11250, 198, 220, 220, 220, 220, 220, 220, 220, 220, 198, 2, 4798, 7, 25119, 28955, 198 ]
2.36
25
import geopandas import starepandas world = geopandas.read_file(geopandas.datasets.get_path('naturalearth_lowres')) west = world[world['continent'].isin(['Europe', 'North America'])] west = starepandas.STAREDataFrame(west, add_sids=True, resolution=4, add_trixels=False)
[ 11748, 30324, 392, 292, 198, 11748, 24170, 79, 392, 292, 198, 198, 6894, 796, 30324, 392, 292, 13, 961, 62, 7753, 7, 469, 404, 392, 292, 13, 19608, 292, 1039, 13, 1136, 62, 6978, 10786, 11802, 16442, 62, 9319, 411, 6, 4008, 198, 7...
2.74
100
# -*- coding: utf-8 -*- # import matplotlib.image as mpimg from wbia.plottool import viz_image2 from wbia.plottool import interact_annotations from . import draw_func2 as df2 from wbia.plottool import plot_helpers as ph from wbia.plottool import interact_helpers as ih from wbia.plottool import abstract_interaction fro...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 1330, 2603, 29487, 8019, 13, 9060, 355, 29034, 9600, 198, 6738, 266, 23339, 13, 489, 1252, 970, 1330, 48569, 62, 9060, 17, 198, 6738, 266, 23339, 13, 489, 1252, 970...
2.194157
2,704
from typing import List from etk.extractor import Extractor, InputType from etk.extraction import Extraction from etk.etk_exceptions import ExtractorError
[ 6738, 19720, 1330, 7343, 198, 6738, 2123, 74, 13, 2302, 40450, 1330, 29677, 273, 11, 23412, 6030, 198, 6738, 2123, 74, 13, 2302, 7861, 1330, 5683, 7861, 198, 6738, 2123, 74, 13, 316, 74, 62, 1069, 11755, 1330, 29677, 273, 12331, 628 ]
3.714286
42
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. from setuptools import setup, find_packages import sys if sys.version_info < (3, 6): sys.exit('Sorry, Python >=3.6...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 198, 2, 15069, 357, 66, 8, 3203, 11, 3457, 13, 290, 663, 29116, 13, 198, 2, 770, 2723, 2438, 318, 11971, 739, 262, 17168, 5964, 1043, 287, 262, 198, 2, 38559, 24290, 2393, 287,...
2.447137
454
import logging from . import _version, linter, parser, pragmas from .record import EPICSRecord, RecordPackage logger = logging.getLogger(__name__) __version__ = _version.get_versions()['version'] __all__ = [ 'EPICSRecord', 'RecordPackage', 'linter', 'logger', 'parser', 'pragmas', ]
[ 11748, 18931, 198, 198, 6738, 764, 1330, 4808, 9641, 11, 300, 3849, 11, 30751, 11, 23864, 5356, 198, 6738, 764, 22105, 1330, 14724, 19505, 23739, 11, 13266, 27813, 198, 198, 6404, 1362, 796, 18931, 13, 1136, 11187, 1362, 7, 834, 3672, ...
2.635593
118
from math import ceil test_no = 1 while True: r, n = list(map(int, input().split())) if r == n == 0: break if n >= r: print("Case {}: 0".format(test_no)) else: sol = int(ceil((r - n) / n)) if sol <= 26: print("Case {}: {}".format(test_no, sol)) else: print("Case {}: impossib...
[ 6738, 10688, 1330, 2906, 346, 198, 198, 9288, 62, 3919, 796, 352, 198, 4514, 6407, 25, 198, 220, 374, 11, 299, 796, 1351, 7, 8899, 7, 600, 11, 5128, 22446, 35312, 3419, 4008, 198, 220, 220, 198, 220, 611, 374, 6624, 299, 6624, 657...
2.253165
158
import sys import fileModPassArg num = int(sys.argv[1]) print(fileModPassArg(num))
[ 11748, 25064, 201, 198, 11748, 2393, 5841, 14478, 28100, 201, 198, 22510, 796, 493, 7, 17597, 13, 853, 85, 58, 16, 12962, 201, 198, 4798, 7, 7753, 5841, 14478, 28100, 7, 22510, 4008, 201, 198 ]
2.485714
35
# srelu1.py """ Created on Fri Jun 1 01:33:17 2018 @author: Wentao Huang """ #import ipdb from collections import OrderedDict import torch as tc from ..utils.data import OrderedDataset from ..utils.helper import copy_params_in, to_Param, get_keys_vals from ..utils.methods import pre_weights, init_weights from . impor...
[ 2, 264, 260, 2290, 16, 13, 9078, 198, 37811, 198, 41972, 319, 19480, 7653, 220, 352, 5534, 25, 2091, 25, 1558, 2864, 198, 198, 31, 9800, 25, 29866, 5488, 31663, 198, 37811, 198, 2, 11748, 20966, 9945, 198, 6738, 17268, 1330, 14230, ...
2.27593
511
from tests.wordlist import FlaskUnsignWordlistTestCase
[ 6738, 5254, 13, 4775, 4868, 1330, 46947, 3118, 12683, 26449, 4868, 14402, 20448, 198 ]
3.928571
14
""" .. module:: djstripe.exceptions. :synopsis: dj-stripe Exceptions. .. moduleauthor:: @kavdev """ class MultipleSubscriptionException(Exception): """Raised when a Customer has multiple Subscriptions and only one is expected.""" pass class StripeObjectManipulationException(Exception): """Raised ...
[ 37811, 198, 492, 8265, 3712, 42625, 33565, 431, 13, 1069, 11755, 13, 628, 220, 220, 1058, 28869, 24608, 25, 42625, 12, 33565, 431, 1475, 11755, 13, 198, 198, 492, 8265, 9800, 3712, 2488, 74, 615, 7959, 198, 198, 37811, 628, 198, 4871,...
3.520325
123
"""Implementation of the 'user_switch' operation.""" from collections import defaultdict from functools import reduce from itertools import product from .. import lib from ..lib import ( ANYTHING, CloneRemapper, Constant, Graph, GraphCloner, MyiaTypeError, force_pending, macro, uni...
[ 37811, 3546, 32851, 286, 262, 705, 7220, 62, 31943, 6, 4905, 526, 15931, 198, 198, 6738, 17268, 1330, 4277, 11600, 198, 6738, 1257, 310, 10141, 1330, 4646, 198, 6738, 340, 861, 10141, 1330, 1720, 198, 198, 6738, 11485, 1330, 9195, 198, ...
2.239246
3,394
#!/usr/bin/env python ''' COPYRIGHT (C) 2016 changjin.hong@gmail.com author: changjin.hong@gmail.com ''' from ped_parser import FamilyParser from gcn.lib.utils import lib_utils, filter_cj import gcn.lib.io.vcf as vcf UNKNOWN,MALE,FEMALE = range(3) HEALTHY,AFFECTED = range(1,3)
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 7061, 6, 198, 34, 3185, 38162, 9947, 357, 34, 8, 1584, 1488, 18594, 13, 71, 506, 31, 14816, 13, 785, 198, 9800, 25, 1488, 18594, 13, 71, 506, 31, 14816, 13, 785, 198, 7061, 6, 19...
2.393162
117
# -*- coding: utf-8 -*- """ IMProToo Improved MRR Processing Tool """ from __future__ import division from .core2 import * from .core2 import __version__ from .tools2 import *
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 198, 3955, 2964, 23307, 198, 35453, 17242, 49, 28403, 16984, 198, 37811, 198, 6738, 11593, 37443, 834, 1330, 7297, 628, 198, 6738, 764, 7295, 17, 1330, 1635, 198, ...
3.016949
59
import random import sys import os from xbee import ZigBee from serial import Serial import time PORT = '/dev/ttyUSB1' BAUD = 9600 DEST_ADDR_LONG = "\x00\x13\xA2\x00\x40\xD5\xD3\xD7" DEST_ADDR = "\xE5\x3F" #DEST_ADDR_LONG = "\x00\x13\xA2\x00\x40\xD5\xD5\xDD" #DEST_ADDR = "\x17\xF7" ser = Serial(PORT, BAUD) xbee = ...
[ 198, 198, 11748, 4738, 198, 11748, 25064, 198, 11748, 28686, 198, 198, 6738, 2124, 20963, 1330, 24992, 49512, 198, 6738, 11389, 1330, 23283, 198, 11748, 640, 198, 198, 15490, 796, 31051, 7959, 14, 42852, 27155, 16, 6, 198, 4339, 8322, 7...
2.118421
304
# Okta intel module - utility functions from okta.framework.ApiClient import ApiClient def is_last_page(response): """ Determine if we are at the last page of a Paged result flow :param response: server response :return: boolean indicating if we are at the last page or not """ # from https://g...
[ 2, 6762, 8326, 33649, 8265, 532, 10361, 5499, 198, 6738, 12876, 8326, 13, 30604, 13, 32, 14415, 11792, 1330, 5949, 72, 11792, 628, 198, 4299, 318, 62, 12957, 62, 7700, 7, 26209, 2599, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 4...
2.594427
323
import pyperclip txttoclean = pyperclip.paste() # txttoclean = txttoclean.replace('<!-- /wp:paragraph -->','') # txttoclean = txttoclean.replace('<!-- wp:paragraph -->','') # # txttoclean = txttoclean.replace('<!-- /wp:heading -->','') # txttoclean = txttoclean.replace('<!-- wp:heading -->','') # # txttoclean = txttoc...
[ 11748, 12972, 525, 15036, 198, 198, 14116, 40301, 13087, 796, 12972, 525, 15036, 13, 34274, 3419, 198, 2, 256, 742, 40301, 13087, 796, 256, 742, 40301, 13087, 13, 33491, 10786, 27, 28112, 1220, 24142, 25, 20360, 14610, 3256, 7061, 8, 19...
2.432593
675
from blog import urls from django.contrib import admin from django.urls import path from django.conf.urls import re_path , include from django.contrib.auth import views as auth_views urlpatterns = [ re_path(r'^admin/', admin.site.urls), re_path(r'', include('blog.urls')), re_path(r'' , include('...
[ 198, 6738, 4130, 1330, 2956, 7278, 198, 6738, 42625, 14208, 13, 3642, 822, 1330, 13169, 198, 6738, 42625, 14208, 13, 6371, 82, 1330, 3108, 198, 6738, 42625, 14208, 13, 10414, 13, 6371, 82, 1330, 302, 62, 6978, 837, 2291, 198, 6738, 42...
2.431127
559