content
stringlengths
1
1.04M
input_ids
listlengths
1
774k
ratio_char_token
float64
0.38
22.9
token_count
int64
1
774k
import database MAX_HEIGHT = 7 # maximum cupoid size in the diagram # the protoDeclare class represents one whole protoDeclare tag in the html file # the class saves the field nodes, appearance, form and the shape of the protoDeclare node. # the class represents the field values in the protoDeclare class
[ 11748, 6831, 628, 198, 22921, 62, 13909, 9947, 796, 767, 1303, 5415, 6508, 1868, 2546, 287, 262, 16362, 198, 2, 262, 44876, 37835, 533, 1398, 6870, 530, 2187, 44876, 37835, 533, 7621, 287, 262, 27711, 2393, 198, 2, 262, 1398, 16031, 2...
4.173333
75
import numpy as np from scipy.spatial.distance import cdist import torch import os from torch.optim import Adam, lr_scheduler from opt import opt from data import Data from mgn_ptl import MGN_PTL from mgn import MGN from loss import Loss from functions import mean_ap, cmc, re_ranking if __name__ == '__main__': as...
[ 11748, 299, 32152, 355, 45941, 198, 6738, 629, 541, 88, 13, 2777, 34961, 13, 30246, 1330, 269, 17080, 198, 11748, 28034, 198, 11748, 28686, 198, 6738, 28034, 13, 40085, 1330, 7244, 11, 300, 81, 62, 1416, 704, 18173, 198, 6738, 2172, 1...
2.271845
618
# -*- coding: utf-8 -*- from django.conf import settings from django.contrib.sites.models import Site from ionyweb.administration.tests import test_reverse, AdministrationTests from time import time
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 6738, 42625, 14208, 13, 10414, 1330, 6460, 198, 6738, 42625, 14208, 13, 3642, 822, 13, 49315, 13, 27530, 1330, 14413, 198, 6738, 22088, 88, 12384, 13, 39081, 1358, 13, 4...
3.389831
59
from tests.thing import Thing thing = Thing() a = thing.__dict__ thing.test()
[ 6738, 5254, 13, 1197, 1330, 21561, 198, 198, 1197, 796, 21561, 3419, 198, 64, 796, 1517, 13, 834, 11600, 834, 198, 1197, 13, 9288, 3419, 198 ]
3.038462
26
#!/usr/bin/env python # -*- coding: utf-8 -*- # ***********************IMPORTANT NMAP LICENSE TERMS************************ # * * # * The Nmap Security Scanner is (C) 1996-2013 Insecure.Com LLC. Nmap is * # * also a registered trademark of Inse...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 2, 220, 8412, 2466, 8162, 3955, 15490, 8643, 28692, 2969, 38559, 24290, 28994, 5653, 8412, 4557, 198, 2, 1635, 220...
2.391898
4,098
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: hetero-kmeans-param.proto import sys _b = sys.version_info[0] < 3 and (lambda x: x) or (lambda x: x.encode('latin1')) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from g...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 2980, 515, 416, 262, 8435, 11876, 17050, 13, 220, 8410, 5626, 48483, 0, 198, 2, 2723, 25, 14445, 78, 12, 74, 1326, 504, 12, 17143, 13, 1676, 1462, 198, 198, 11748...
2.216285
3,537
from rest_framework import serializers from django.contrib.auth.models import User from . import models
[ 6738, 1334, 62, 30604, 1330, 11389, 11341, 201, 198, 6738, 42625, 14208, 13, 3642, 822, 13, 18439, 13, 27530, 1330, 11787, 201, 198, 6738, 764, 1330, 4981, 201, 198, 201, 198, 201 ]
3.4375
32
# --TASK-- visualize located objects based on datafile import bpy, json from calibration import get_calibration from generate_mesh import generate_mesh # load data data_file = open('<source_datafile_path>', 'r') data = json.loads(data_file.read()) data_file.close() # iterate frames in data for frame_coun...
[ 2, 1377, 51, 1921, 42, 438, 38350, 5140, 5563, 1912, 319, 1366, 7753, 201, 198, 201, 198, 11748, 275, 9078, 11, 33918, 201, 198, 6738, 36537, 1330, 651, 62, 9948, 571, 1358, 201, 198, 6738, 7716, 62, 76, 5069, 1330, 7716, 62, 76, ...
2.38193
487
from typing import Dict, List, Optional from pydantic import BaseModel from typing_extensions import Literal from aws_lambda_powertools.utilities.parser.models import ( DynamoDBStreamChangedRecordModel, DynamoDBStreamModel, DynamoDBStreamRecordModel, EventBridgeModel, SnsModel, SnsNotification...
[ 6738, 19720, 1330, 360, 713, 11, 7343, 11, 32233, 198, 198, 6738, 279, 5173, 5109, 1330, 7308, 17633, 198, 6738, 19720, 62, 2302, 5736, 1330, 25659, 1691, 198, 198, 6738, 3253, 82, 62, 50033, 62, 6477, 31391, 13, 315, 2410, 13, 48610,...
2.884058
138
import dataclasses @dataclasses.dataclass
[ 11748, 4818, 330, 28958, 198, 198, 31, 19608, 330, 28958, 13, 19608, 330, 31172 ]
3
14
# This is a python implementation of the Vigenere Cipher, it employs a form of polyalphabetic substitution and remained unbreakable for three centuries # Reference can be found at: https://en.wikipedia.org/wiki/Vigen%C3%A8re_cipher # In this implementaion we will use the keyword: LEMON import math # Examples: ...
[ 2, 770, 318, 257, 21015, 7822, 286, 262, 569, 9324, 567, 44334, 11, 340, 24803, 257, 1296, 286, 7514, 17307, 33312, 32097, 290, 6150, 555, 9032, 540, 329, 1115, 10675, 220, 198, 2, 20984, 460, 307, 1043, 379, 25, 3740, 1378, 268, 13...
3.49
100
# Copyright 2019 Zrna Research LLC # # Licensed under the Apache License, Version 2.0 (the "License"); you may not # use this file except in compliance with the License. You may obtain a copy of # the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing...
[ 2, 15069, 13130, 1168, 81, 2616, 4992, 11419, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 345, 743, 407, 198, 2, 779, 428, 2393, 2845, 287, 11846, 351, 262, 13789, 13, 921, ...
3.128535
389
# -*- coding: utf-8 -*- """Invitation related logic.""" from __future__ import unicode_literals from json import dumps from .. import models from .. import users from ..decorators import requires_auth class Invitation(models.GitHubCore): """Representation of an invitation to collaborate on a repository. ....
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 19904, 3780, 3519, 9156, 526, 15931, 198, 6738, 11593, 37443, 834, 1330, 28000, 1098, 62, 17201, 874, 198, 198, 6738, 33918, 1330, 45514, 198, 198, 6738, 11485, 133...
2.521806
1,307
while True: t = int(input('Quer ver a tabuada de qual valor?')) if t < 0: break print('-' * 32) for c in range(1, 11): print(f'{t} x {c:2} = {t*c}') print('Programa Tabuada Encerrado.Volte Sempre!')
[ 4514, 6407, 25, 198, 220, 220, 220, 256, 796, 493, 7, 15414, 10786, 4507, 263, 3326, 257, 7400, 84, 4763, 390, 4140, 1188, 273, 8348, 4008, 198, 220, 220, 220, 611, 256, 1279, 657, 25, 198, 220, 220, 220, 220, 220, 220, 220, 2270,...
2.008696
115
import os import subprocess import shutil import numpy as np import glob from multiprocessing import Pool #gather files for creating symbolic links #make sure nproc is greater than or equal to 1 # if self.nproc < 1: # print 'Need to have at least 1 processor allocated' # rai...
[ 11748, 28686, 198, 11748, 850, 14681, 198, 11748, 4423, 346, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 15095, 198, 6738, 18540, 305, 919, 278, 1330, 19850, 198, 220, 220, 220, 220, 220, 220, 220, 220, 198, 220, 220, 220, 220, 19...
2.615385
195
# -*- coding: utf-8 -*- # # Copyright (C) 2020 CERN. # # Flask-Resources is free software; you can redistribute it and/or modify # it under the terms of the MIT License; see LICENSE file for more details. """Flask Resources module to create REST APIs.""" from werkzeug.exceptions import HTTPException from ..args.pars...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 198, 2, 15069, 357, 34, 8, 12131, 327, 28778, 13, 198, 2, 198, 2, 46947, 12, 33236, 318, 1479, 3788, 26, 345, 460, 17678, 4163, 340, 290, 14, 273, 13096, 198, 2...
2.554965
1,883
import time from base import SeleniumBaseTest
[ 11748, 640, 198, 6738, 2779, 1330, 15300, 47477, 14881, 14402, 198 ]
4.181818
11
#!/usr/bin/python import math import time from roberta import Hal from roberta import BlocklyMethods h = Hal() item = BlocklyMethods.createListWith(0, 0, 0) item2 = BlocklyMethods.createListWith() item3 = BlocklyMethods.createListWith() item4 = BlocklyMethods.createListWith() item5 = BlocklyMethods.createListWith() ...
[ 2, 48443, 14629, 14, 8800, 14, 29412, 198, 198, 11748, 10688, 198, 11748, 640, 198, 6738, 686, 4835, 64, 1330, 11023, 198, 6738, 686, 4835, 64, 1330, 9726, 306, 46202, 198, 71, 796, 11023, 3419, 628, 198, 9186, 796, 9726, 306, 46202, ...
3.008403
119
import re from re import MULTILINE, DOTALL from comments import CommentExtractor class CommentExtractorPython(CommentExtractor): """ Comment extractor for Python code """ def __process_single_line_match(self, match): """ Process a regular expression match object for a single line comment and return ...
[ 11748, 302, 198, 6738, 302, 1330, 337, 16724, 4146, 8881, 11, 42743, 7036, 198, 6738, 3651, 1330, 18957, 11627, 40450, 198, 198, 4871, 18957, 11627, 40450, 37906, 7, 21357, 11627, 40450, 2599, 198, 220, 220, 220, 37227, 18957, 7925, 273, ...
2.413168
1,048
#!/usr/bin/python # Authors: Chris Tung # Ignacio Taboada # """Example script that simulates a population of sources with a luminosity distribution that is dependent on redshift""" # General imports # from __future__ import division import argparse # Numpy / Scipy import numpy as np # Firesong code from ...
[ 2, 48443, 14629, 14, 8800, 14, 29412, 198, 2, 46665, 25, 5180, 309, 2150, 198, 2, 220, 220, 220, 220, 220, 220, 220, 220, 220, 16583, 48711, 16904, 1170, 64, 198, 2, 198, 198, 37811, 16281, 4226, 326, 985, 15968, 257, 3265, 286, 4...
2.236902
2,634
# -*- coding: utf-8 -*- """ Package configuration for clik-wtforms. :author: Joe Joyce <joe@decafjoe.com> :copyright: Copyright (c) Joe Joyce and contributors, 2017-2019. :license: BSD """ import os from setuptools import find_packages, setup name = 'clik-wtforms' version = '0.90.2' requires = ( 'clik', 'w...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 198, 27813, 8398, 329, 537, 1134, 12, 46569, 23914, 13, 198, 198, 25, 9800, 25, 5689, 25936, 1279, 73, 2577, 31, 12501, 1878, 73, 2577, 13, 785, 29, 198, 25, ...
2.628205
624
""" this is the doc string of this model i'll just write it someday just yeah thats all """ import time import random def composite_numbers(): ''' -It generates composite numbers which are just opposite of prime numbers,, it means real numbers that aren't a prime number is a composite number ''' n = 2 while ...
[ 37811, 198, 5661, 318, 262, 2205, 4731, 286, 428, 2746, 198, 72, 1183, 655, 3551, 340, 25580, 655, 10194, 29294, 477, 198, 37811, 198, 198, 11748, 640, 198, 11748, 4738, 628, 198, 4299, 24185, 62, 77, 17024, 33529, 198, 197, 7061, 6, ...
2.697722
1,975
""" Prime Time Have the function PrimeTime(num) take the num parameter being passed and return the string true if the parameter is a prime number, otherwise return the string false. The range will be between 1 and 2^16. Examples Input: 19 Output: true Input: 110 Output: false Author: Eda AYDIN """ # keep this fu...
[ 37811, 198, 26405, 3862, 198, 11980, 262, 2163, 5537, 7575, 7, 22510, 8, 1011, 262, 997, 11507, 852, 3804, 290, 198, 7783, 262, 4731, 2081, 611, 262, 11507, 318, 257, 6994, 1271, 11, 4306, 1441, 262, 4731, 3991, 13, 198, 464, 2837, ...
3.538462
104
# ***************************************************************** # Copyright 2013 MIT Lincoln Laboratory # Project: SPAR # Authors: SY # Description: Constants for TA1 analytics. # # # Modifications: # Date Name Modification # ---- ...
[ 2, 41906, 17174, 9, 198, 2, 220, 15069, 2211, 17168, 12406, 18643, 220, 220, 198, 2, 220, 4935, 25, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 6226, 1503, 198, 2, 220, 46665, 25, 220, 220, 220, 220, 220, 220, 220, 22...
1.920606
9,774
from abc import abstractmethod from typing import List, Any
[ 6738, 450, 66, 1330, 12531, 24396, 198, 6738, 19720, 1330, 7343, 11, 4377, 628, 628, 628, 628 ]
3.941176
17
# Copyright 2019-2020 Typo. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed...
[ 2, 15069, 13130, 12, 42334, 17134, 78, 13, 1439, 6923, 33876, 13, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 2, 345, 743, 407, 779, 428, 2393, 2845, 287, 11846, 351, 2...
3.217391
322
#Menu for the circuit configurations (returns circuit string) # ------------------------------------------------------ # Copyright (C) 2020 Gustavo Rodriguez Gutierrez # Licensed under the MIT license, see LICENSE. # ------------------------------------------------------ from tkinter import * from PIL import Im...
[ 2, 23381, 329, 262, 10349, 25412, 357, 7783, 82, 10349, 4731, 8, 201, 198, 2, 20368, 19351, 438, 201, 198, 2, 15069, 357, 34, 8, 12131, 43715, 78, 19391, 48283, 201, 198, 2, 49962, 739, 262, 17168, 5964, 11, 766, 38559, 24290, 13, ...
2.787645
259
from discord.ext import commands import arrow import sqlite3 from libraries import emoji_literals SQLDATABASE = "data/database.db"
[ 6738, 36446, 13, 2302, 1330, 9729, 198, 11748, 15452, 198, 11748, 44161, 578, 18, 198, 6738, 12782, 1330, 44805, 62, 17201, 874, 628, 198, 17861, 35, 1404, 6242, 11159, 796, 366, 7890, 14, 48806, 13, 9945, 1, 628, 628 ]
3.487179
39
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from . import ...
[ 2, 19617, 28, 40477, 12, 23, 198, 2, 17202, 39410, 25, 428, 2393, 373, 7560, 416, 262, 21624, 12994, 24118, 687, 10290, 357, 27110, 5235, 8, 16984, 13, 17202, 198, 2, 17202, 2141, 407, 4370, 416, 1021, 4556, 345, 821, 1728, 345, 760...
3.464567
127
#!/usr/bin/env python3 # -*- coding: utf-8 -*- '枚举类的练习' __author__ = 'Jacklee' # 导入模块 #import types # 月份常量 JAN = 1 FEB = 2 MAR = 3 # 枚举类 from enum import Enum, unique ## 第一种定义方式 @unique ## 第二种定义方式 WeekDay = Enum('WeekDay', ('Mon', 'Tue', 'Wed', 'Tru', 'Fri', 'Sat', 'Sun')) ## 类的组成,JAN ... 是一个类成员 print('Month类的成...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 6, 162, 252, 248, 10310, 122, 163, 109, 119, 21410, 163, 119, 225, 20046, 254, 6, 198, 198, 834, 9800, 834...
1.525316
316
#!/usr/bin/env python # Copyright 2019 Jon Azpiazu # # 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 a...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 198, 2, 220, 220, 220, 15069, 13130, 5966, 7578, 79, 17890, 84, 198, 2, 198, 2, 220, 220, 220, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, ...
3.095794
428
''' Helper classes for handling SAT Formulas '''
[ 7061, 6, 198, 47429, 6097, 329, 9041, 29020, 5178, 25283, 198, 7061, 6 ]
3.692308
13
#!/usr/bin/env python # X86 architectures # Author: Matej Kastak from . import Architecture
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 1395, 4521, 45619, 198, 2, 6434, 25, 24787, 73, 509, 459, 461, 198, 198, 6738, 764, 1330, 29778, 628, 198 ]
3.166667
30
# https://www.hackerrank.com/challenges/cut-the-sticks n = int(input().strip()) arr = list(map(int, input().strip().split(' '))) while len(arr) > 0: arr2 = [] for e in arr: e -= min(arr) if e > 0: arr2.append(e) print(len(arr)) arr = arr2
[ 2, 3740, 1378, 2503, 13, 31153, 8056, 962, 13, 785, 14, 36747, 34120, 14, 8968, 12, 1169, 12, 34810, 628, 198, 77, 796, 493, 7, 15414, 22446, 36311, 28955, 198, 3258, 796, 1351, 7, 8899, 7, 600, 11, 5128, 22446, 36311, 22446, 35312,...
2.072464
138
import pytest from betamax import Betamax from currencycloud import Client, Config from currencycloud.errors import NotFoundError from currencycloud.resources import *
[ 11748, 12972, 9288, 198, 6738, 731, 321, 897, 1330, 5147, 321, 897, 198, 198, 6738, 7395, 17721, 1330, 20985, 11, 17056, 198, 6738, 7395, 17721, 13, 48277, 1330, 1892, 21077, 12331, 198, 6738, 7395, 17721, 13, 37540, 1330, 1635, 628 ]
4.25
40
from django.conf.urls import include, url from django.contrib import admin import project.views admin.autodiscover() urlpatterns = [ url(r'^$', project.views.home), url(r'^catalog/', include('catalog.urls')), url(r'^tenders/', include('tenders.urls')), url(r'^admin/', include(admin.site.urls)), url(r'^article...
[ 6738, 42625, 14208, 13, 10414, 13, 6371, 82, 1330, 2291, 11, 19016, 198, 6738, 42625, 14208, 13, 3642, 822, 1330, 13169, 198, 198, 11748, 1628, 13, 33571, 198, 198, 28482, 13, 2306, 375, 29392, 3419, 198, 198, 6371, 33279, 82, 796, 68...
2.617582
455
import itertools # from .... import global_tools, global_var def incremental_programs(ax, df_programs, diff_init = False, smoother = None, ): """ Draws in a subplot the expected availability programs ...
[ 198, 198, 11748, 340, 861, 10141, 198, 2, 198, 6738, 19424, 1330, 3298, 62, 31391, 11, 3298, 62, 7785, 628, 198, 198, 4299, 29497, 62, 23065, 82, 7, 897, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, ...
1.698722
1,487
#!/usr/bin/env python #!/usr/bin/env python # -*- coding: utf-8 -*- import unittest from {{cookiecutter.project_name}} import skeleton if __name__ == "__main__": from unittest import TestLoader, TextTestRunner suite = TestLoader().loadTestsFromTestCase(SkeletonTestCase) TextTestRunner(verbosity=2).run(...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 11748, 555, 715, 395, 198, 6738, 22935, 44453, 8968, 353, 13, ...
2.771186
118
import pygame from settings import * from player import Player from map import world_map ''' pygame.draw.line(screen, RED, player.pos, (player.x + RENDER_DIST * math.cos(player.angle) , player.y + RENDER_DIST * math.sin(player.angle))) pygame.draw.line(screen, PURP...
[ 11748, 12972, 6057, 198, 6738, 6460, 1330, 1635, 198, 6738, 2137, 1330, 7853, 198, 6738, 3975, 1330, 995, 62, 8899, 628, 198, 7061, 6, 198, 220, 220, 220, 12972, 6057, 13, 19334, 13, 1370, 7, 9612, 11, 23848, 11, 2137, 13, 1930, 11,...
1.841432
1,173
# Copyright 2018 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
[ 2, 15069, 2864, 383, 309, 22854, 37535, 46665, 13, 1439, 6923, 33876, 13, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 2, 345, 743, 407, 779, 428, 2393, 2845, 287, 11846, ...
3.752508
299
#!/usr/bin/env python # Copyright (c) 2019: Jianyu Chen (jianyuchen@berkeley.edu). # # This file is modified from <https://github.com/carla-simulator/carla>: # Copyright (c) 2018 Intel Labs. # authors: German Ros (german.ros@intel.com) # # This work is licensed under the terms of the MIT license. # For a copy, see <ht...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 198, 2, 15069, 357, 66, 8, 13130, 25, 40922, 24767, 12555, 357, 73, 666, 88, 1229, 831, 31, 527, 13490, 13, 15532, 737, 198, 2, 198, 2, 770, 2393, 318, 9518, 422, 1279, 5450, 1378,...
3.170635
756
__copyright__ = "Copyright (c) 2021 Jina AI Limited. All rights reserved." __license__ = "Apache-2.0" import time from typing import Optional, Dict import numpy as np from jina.executors.decorators import batching, as_ndarray from jina.executors.devices import TorchDevice from jina.executors.encoders import BaseEnc...
[ 834, 22163, 4766, 834, 796, 366, 15269, 357, 66, 8, 33448, 449, 1437, 9552, 15302, 13, 1439, 2489, 10395, 526, 198, 834, 43085, 834, 796, 366, 25189, 4891, 12, 17, 13, 15, 1, 198, 198, 11748, 640, 198, 198, 6738, 19720, 1330, 32233,...
2.380559
2,181
tagcomponent = "disagg"
[ 12985, 42895, 796, 366, 6381, 9460, 1, 198 ]
3
8
# stdlib from typing import Any from typing import Dict from typing import List from typing import Optional from typing import Tuple from typing import Union # third party from google.protobuf.reflection import GeneratedProtocolMessageType from nacl.signing import VerifyKey # syft absolute import syft as sy # relati...
[ 2, 14367, 8019, 198, 6738, 19720, 1330, 4377, 198, 6738, 19720, 1330, 360, 713, 198, 6738, 19720, 1330, 7343, 198, 6738, 19720, 1330, 32233, 198, 6738, 19720, 1330, 309, 29291, 198, 6738, 19720, 1330, 4479, 198, 198, 2, 2368, 2151, 198,...
2.742782
1,905
#!/usr/bin/env python3 # -*- coding: utf-8 -*- #################################################################################################################################################################################################################################### ############################################...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 29113, 29113, 29113, 29113, 29113, 29113, 29113, 4242, 198, 29113, 29113, 29113, 7804, 22814, 12, 7206, 20032, 1961, ...
6.862275
1,837
import os import json config = { "secret": "", "uuid": "", "endpointURL": "" } def is_file_empty(file_path): """ Check if file is empty by confirming if its size is 0 bytes""" # Check if file exist and it is empty return os.path.exists(file_path) and os.stat(file_path).st_size == 0 and os....
[ 11748, 28686, 198, 11748, 33918, 198, 198, 11250, 796, 1391, 198, 220, 220, 220, 366, 21078, 1298, 366, 1600, 198, 220, 220, 220, 366, 12303, 312, 1298, 366, 1600, 198, 220, 220, 220, 366, 437, 4122, 21886, 1298, 13538, 198, 92, 628, ...
2.631579
133
import copy from pathlib import Path import tempfile from allennlp.common.testing import ModelTestCase from allennlp.common.params import Params from allennlp.data import Batch from allennlp.data.vocabulary import Vocabulary from allennlp.models import Model from allennlp.nn import InitializerApplicator, Initializer f...
[ 11748, 4866, 198, 6738, 3108, 8019, 1330, 10644, 198, 11748, 20218, 7753, 198, 198, 6738, 477, 1697, 34431, 13, 11321, 13, 33407, 1330, 9104, 14402, 20448, 198, 6738, 477, 1697, 34431, 13, 11321, 13, 37266, 1330, 2547, 4105, 198, 6738, ...
3.674242
132
import datetime import enum import json import os from pathlib import Path, PureWindowsPath class SubfileMissingError(Exception): """Subfile is Missing Exception.""" @enum.unique @enum.unique if __name__ == '__main__': create_json_for_parts('ldraw_studcount.json')
[ 11748, 4818, 8079, 198, 11748, 33829, 198, 11748, 33918, 198, 11748, 28686, 198, 198, 6738, 3108, 8019, 1330, 10644, 11, 17129, 11209, 15235, 628, 198, 4871, 3834, 7753, 43730, 12331, 7, 16922, 2599, 198, 220, 220, 220, 37227, 7004, 7753,...
3.052083
96
from marshmallow import fields, Schema
[ 6738, 22397, 42725, 1330, 7032, 11, 10011, 2611, 628, 628 ]
4.2
10
import frappe from frappe.utils import today @frappe.whitelist() @frappe.whitelist() @frappe.whitelist() @frappe.whitelist() @frappe.whitelist() @frappe.whitelist() @frappe.whitelist()
[ 11748, 5306, 27768, 198, 6738, 5306, 27768, 13, 26791, 1330, 1909, 628, 198, 31, 69, 430, 27768, 13, 1929, 270, 46331, 3419, 198, 198, 31, 69, 430, 27768, 13, 1929, 270, 46331, 3419, 198, 220, 220, 220, 220, 220, 220, 220, 220, 198,...
2.082474
97
#!/usr/bin/env python3 # -*- coding: utf-8 -*- __author__ = 'ipetrash' """Парсер курса доллара и евро за текущую дату от сайта центробанка России.""" if __name__ == '__main__': from datetime import date date_req = date.today().strftime('%d.%m.%Y') url = 'https://www.cbr.ru/currency_base/daily.aspx?date...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 834, 9800, 834, 796, 705, 541, 21879, 1077, 6, 628, 198, 37811, 140, 253, 16142, 21169, 21727, 16843, 21169, ...
1.978448
464
# -*- coding: utf-8 -*- import os import re from sphinx_testing import with_app import unittest CR = '\r?\n' rackdiag_fontpath = '/usr/share/fonts/truetype/ipafont/ipagp.ttf' with_png_app = with_app(srcdir='tests/docs/rackdiag', buildername='latex', write_docstring=Tr...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 11748, 28686, 198, 11748, 302, 198, 6738, 599, 20079, 87, 62, 33407, 1330, 351, 62, 1324, 198, 198, 11748, 555, 715, 395, 198, 198, 9419, 796, 705, 59, 81, 30, ...
1.636792
848
# Copyright 2019 Xilinx Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
[ 2, 15069, 13130, 1395, 346, 28413, 3457, 13, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 2, 345, 743, 407, 779, 428, 2393, 2845, 287, 11846, 351, 262, 13789, 13, 198, 2...
3.506944
288
import os import numpy as np from scipy import fftpack import matplotlib.pyplot as plt from astropy.io import fits from astropy.wcs import WCS from astropy.stats import SigmaClip from astropy.stats import gaussian_fwhm_to_sigma from astropy.convolution import Gaussian2DKernel from astropy.coordinates import SkyCoord fr...
[ 11748, 28686, 198, 11748, 299, 32152, 355, 45941, 198, 6738, 629, 541, 88, 1330, 277, 701, 8002, 198, 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 198, 6738, 6468, 28338, 13, 952, 1330, 11414, 198, 6738, 6468, 28338, 13, 1...
2.073749
5,817
from __future__ import annotations import typing as t if t.TYPE_CHECKING: from .context import Context from ..utils import maybe_coro __all__ = ("Command",)
[ 6738, 11593, 37443, 834, 1330, 37647, 198, 198, 11748, 19720, 355, 256, 198, 198, 361, 256, 13, 25216, 62, 50084, 2751, 25, 198, 220, 220, 220, 422, 764, 22866, 1330, 30532, 198, 198, 6738, 11485, 26791, 1330, 3863, 62, 10215, 78, 198...
3.150943
53
from runners.python import Submission
[ 6738, 19323, 13, 29412, 1330, 42641, 628 ]
5.571429
7
import settings import handlers.base_handler import csv
[ 11748, 6460, 198, 11748, 32847, 13, 8692, 62, 30281, 198, 11748, 269, 21370, 198 ]
4
14
# Copyright (c) 2021 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 appli...
[ 2, 15069, 357, 66, 8, 33448, 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.63388
183
from con_reader import CONreaderVM from dicom_reader import DCMreaderVM from utils import get_logger from domain.patient_data import PatientData import numpy as np import pickle import os import sys import cv2 as cv logger = get_logger(__name__) in_dir = sys.argv[1] out_dir = sys.argv[2] if not os.path.isdir(in_dir)...
[ 6738, 369, 62, 46862, 1330, 7102, 46862, 15996, 198, 6738, 288, 291, 296, 62, 46862, 1330, 6257, 44, 46862, 15996, 198, 6738, 3384, 4487, 1330, 651, 62, 6404, 1362, 198, 6738, 7386, 13, 26029, 62, 7890, 1330, 35550, 6601, 198, 11748, ...
2.685714
210
from day_data import DayData import datetime # получить планы на указанный день недели - смещение от текущего if __name__ == '__main__': wd = WeekData() print( wd.get_plan_day( 0 ) ) print( wd.get_plan_day( 1 ) ) print( wd.get_plan_day( 2 ) ) print( wd.get_plan_day( 3 ) ) print( wd.get_p...
[ 6738, 1110, 62, 7890, 1330, 3596, 6601, 198, 11748, 4818, 8079, 628, 220, 220, 220, 1303, 12466, 123, 25443, 119, 35072, 141, 229, 18849, 20375, 45367, 12466, 123, 30143, 16142, 22177, 45035, 12466, 121, 16142, 220, 35072, 31583, 16142, 1...
1.725322
233
import matplotlib.pyplot as plt import numpy as np import math import os np.set_printoptions(threshold=np.inf) # prepare some coordinates # [3, 4, 13, 14, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 154, 155, 156, 157, 158] # 2 2 2 # /home/jianrenw/prox/tslam/data/local/agent/20210506/resetnormal/gtsample/voxel...
[ 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 10688, 198, 11748, 28686, 198, 198, 37659, 13, 2617, 62, 4798, 25811, 7, 400, 10126, 28, 37659, 13, 10745, 8, 198, 198, 2, 8335, ...
2.11996
2,009
from PIL import Image,ImageDraw,ImageFont import os grayscale=[] unicodeblocks = [(32,126),(174,846),(910,1366),(1421,1479),(5761,5788),(6656,6678),(7680,7957),(8448,8587),(9312,9472),(9696,10495),(10854,10956),(12032,12245),(11200,11208)] for block in unicodeblocks: for i in range(block[0],block[1]+1): to...
[ 6738, 350, 4146, 1330, 7412, 11, 5159, 25302, 11, 5159, 23252, 198, 11748, 28686, 198, 198, 2164, 592, 38765, 28, 21737, 198, 46903, 1098, 27372, 796, 47527, 2624, 11, 19420, 828, 7, 22985, 11, 23, 3510, 828, 7, 43234, 11, 1485, 2791,...
2.035573
506
# Copyright (c) 2020, Xilinx # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # * Redistributions of source code must retain the above copyright notice, this # list of conditions and the follow...
[ 2, 15069, 357, 66, 8, 12131, 11, 1395, 346, 28413, 198, 2, 1439, 2489, 10395, 13, 198, 2, 198, 2, 2297, 396, 3890, 290, 779, 287, 2723, 290, 13934, 5107, 11, 351, 393, 1231, 198, 2, 17613, 11, 389, 10431, 2810, 326, 262, 1708, 3...
3.56367
534
# -*- coding: utf-8 -*- """ Herman Sanghera November 2, 2019 CodingBat Solutions (Python) This is a python file containing my own solutions to the different Python List-1 exercises on codingbat.com """ """ List-1 > first_last6: Given an array of ints, return True if 6 appears as either the first or las...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 201, 198, 37811, 201, 198, 39, 2224, 30043, 372, 64, 201, 198, 21159, 362, 11, 13130, 201, 198, 34, 7656, 24541, 23555, 357, 37906, 8, 201, 198, 201, 198, 1212, 318, 257, ...
2.910326
736
# -*- coding: utf-8 -*- from app import (ChocolateApp, DatabaseNotEnabledError, InvalidAuthSettingsError, InvalidPyDALParameterError) from server import ChocolateServer, NonChocolateAppError
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 6738, 598, 1330, 357, 1925, 9140, 4677, 11, 24047, 3673, 20491, 12331, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, ...
2.985714
70
import os
[ 11748, 28686, 628, 220, 220, 220, 220 ]
2.142857
7
import shutil import simplejson import sys import time import traceback from django.core.management.base import BaseCommand from src.settings import * from src.util.stats import *
[ 11748, 4423, 346, 198, 11748, 2829, 17752, 198, 11748, 25064, 198, 11748, 640, 198, 11748, 12854, 1891, 198, 198, 6738, 42625, 14208, 13, 7295, 13, 27604, 13, 8692, 1330, 7308, 21575, 198, 198, 6738, 12351, 13, 33692, 1330, 1635, 198, 6...
3.68
50
#!/usr/bin/env python3.8 # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. # SPDX-License-Identifier: MIT-0 """Lex Bot Conversation Runner""" import boto3 from botocore.config import Config as BotoCoreConfig CLIENT_CONFIG = BotoCoreConfig( retries={"mode": "adaptive", "max_attempts": 5}, ) CLIEN...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 13, 23, 198, 2, 15069, 6186, 13, 785, 11, 3457, 13, 393, 663, 29116, 13, 1439, 6923, 33876, 13, 198, 2, 30628, 55, 12, 34156, 12, 33234, 7483, 25, 17168, 12, 15, 198, 37811, 45117, ...
2.92607
257
import torch import torch.nn as nn from timm.models.layers import DropPath, to_2tuple, trunc_normal_ from detectron2.modeling.backbone import Backbone from detectron2.modeling.backbone.build import BACKBONE_REGISTRY from detectron2.modeling.backbone.fpn import FPN, LastLevelP6P7, LastLevelMaxPool from detectron2.layer...
[ 11748, 28034, 198, 11748, 28034, 13, 20471, 355, 299, 77, 198, 198, 6738, 4628, 76, 13, 27530, 13, 75, 6962, 1330, 14258, 15235, 11, 284, 62, 17, 83, 29291, 11, 40122, 62, 11265, 62, 198, 6738, 4886, 1313, 17, 13, 4666, 10809, 13, ...
2.270774
1,396
# encoding: utf-8 # Copyright 2009 California Institute of Technology. ALL RIGHTS # RESERVED. U.S. Government Sponsorship acknowledged. # # Run EDRN Public Portal tests import subprocess, os, os.path, sys, ConfigParser _executable = os.path.join('bin', 'instance-debug') _logDir = os.path.join('var', 'testlogs') def ...
[ 2, 21004, 25, 3384, 69, 12, 23, 198, 2, 15069, 3717, 3442, 5136, 286, 8987, 13, 11096, 371, 34874, 198, 2, 15731, 1137, 53, 1961, 13, 471, 13, 50, 13, 5070, 18972, 11094, 10810, 13, 198, 2, 198, 2, 5660, 412, 7707, 45, 5094, 256...
2.299572
701
from .sqlstore import SQLTable, SQLView K_STR=1 # a single string value K_INT=2 # a numeric field K_CSV=3 # class Settings(object): """Application Settings backed by a database provides a basic key/value store for Strings, Integers, and List-Of-Strings """ __instance = None @staticmethod ...
[ 198, 198, 6738, 764, 25410, 8095, 1330, 16363, 10962, 11, 16363, 7680, 198, 198, 42, 62, 18601, 28, 16, 1303, 257, 2060, 4731, 1988, 198, 42, 62, 12394, 28, 17, 1303, 257, 35575, 2214, 198, 42, 62, 7902, 53, 28, 18, 1303, 198, 198...
2.000864
1,158
from discord.ext import commands
[ 6738, 36446, 13, 2302, 1330, 9729, 198 ]
4.714286
7
from Ensemble.Ensemble import Ensemble from log import logger class BottomTrack: """ Ensemble Data DataSet. Integer values that give details about the ensemble. """ def decode(self, data): """ Take the data bytearray. Decode the data to populate the velocities. :p...
[ 6738, 2039, 15140, 13, 4834, 15140, 1330, 2039, 15140, 198, 6738, 2604, 1330, 49706, 628, 198, 4871, 24530, 24802, 25, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 2039, 15140, 6060, 6060, 7248, 13, 198, 220, 220, 220, 34142, 3815, ...
2.397158
2,533
# ================================================================================================================ # ---------------------------------------------------------------------------------------------------------------- # DBSCAN # -----------------------------------------------------------...
[ 2, 38093, 10052, 25609, 18604, 198, 2, 16529, 47232, 198, 2, 197, 197, 197, 197, 197, 197, 197, 197, 197, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 360, 4462, 44565, 198, 2, 16529, 47232, 198, 2, 38093, 10052, 25609, ...
5.411392
158
""" Page Order ========== Adds a `page_order` attribute to all pages if one is not defined. """ from pelican import signals
[ 37811, 198, 9876, 8284, 198, 2559, 855, 198, 198, 46245, 257, 4600, 7700, 62, 2875, 63, 11688, 284, 477, 5468, 611, 530, 318, 407, 5447, 13, 198, 37811, 198, 198, 6738, 16176, 7490, 1330, 10425, 198 ]
3.5
36
import collections.abc import functools from ..properties import lazy from .linkedlist import List, Nil def on_parts(func): """ Distribute methods on left and right parts. """ @functools.wraps(func) return method def as_list(func): """ Apply method as if queue was a list and return qu...
[ 11748, 17268, 13, 39305, 198, 11748, 1257, 310, 10141, 198, 198, 6738, 11485, 48310, 1330, 16931, 198, 6738, 764, 25614, 4868, 1330, 7343, 11, 29213, 628, 198, 4299, 319, 62, 42632, 7, 20786, 2599, 198, 220, 220, 220, 37227, 198, 220, ...
2.359562
1,919
#!/usr/bin/env pypy import dpkt import gzip import zlib import struct import sys from collections import defaultdict from cStringIO import StringIO from tcpsession import TCPSession, tcp_flags
[ 2, 48443, 14629, 14, 8800, 14, 24330, 279, 4464, 88, 198, 198, 11748, 288, 79, 21841, 198, 11748, 308, 13344, 198, 11748, 1976, 8019, 198, 11748, 2878, 198, 11748, 25064, 198, 6738, 17268, 1330, 4277, 11600, 198, 6738, 269, 10100, 9399,...
3.3
60
import os import pickle import nltk from discopy.confusion_matrix import * from discopy.conn_head_mapper import * from discopy.utils import discourse_adverbial, coordinating_connective, subordinating_connective def extract_ps_arguments(clauses, conn_head, indices, ptree, arg2): """ If Arg1 is in the...
[ 11748, 28686, 198, 11748, 2298, 293, 198, 198, 11748, 299, 2528, 74, 198, 198, 6738, 1221, 11081, 13, 10414, 4241, 62, 6759, 8609, 1330, 1635, 198, 6738, 1221, 11081, 13, 37043, 62, 2256, 62, 76, 11463, 1330, 1635, 198, 6738, 1221, 11...
2.847258
766
from object.job import Job as Job1 from object.scheduler import Scheduler as Scheduler1 import os import copy import pickle import argparse INPUT_DIRECTORY = "input" OUTPUT_DIRECTORY = "output" if __name__ == '__main__': arg = arg_parser() if arg.method == "NMC": if "task1" in arg.input_name: ...
[ 6738, 2134, 13, 21858, 1330, 15768, 355, 15768, 16, 198, 6738, 2134, 13, 1416, 704, 18173, 1330, 27774, 18173, 355, 27774, 18173, 16, 198, 11748, 28686, 198, 11748, 4866, 198, 11748, 2298, 293, 198, 11748, 1822, 29572, 198, 198, 1268, 3...
2.167102
766
import requests from random import choice import dns.message import dns.query import dns.rdatatype dohservers = ['https://dns.google/dns-query', 'https://cloudflare-dns.com/dns-query', 'https://doh.appliedprivacy.net/query'] server = choice(dohservers)
[ 11748, 7007, 198, 6738, 4738, 1330, 3572, 198, 198, 11748, 288, 5907, 13, 20500, 198, 11748, 288, 5907, 13, 22766, 198, 11748, 288, 5907, 13, 4372, 265, 265, 2981, 198, 198, 67, 1219, 2655, 690, 796, 37250, 5450, 1378, 67, 5907, 13, ...
2.771739
92
""" * * Author: Juarez Paulino(coderemite) * Email: juarez.paulino@gmail.com * """ I=lambda:map(int,input().split()) a,b=I() c,d=I() print((max(1,abs(a-c))+max(1,abs(b-d))<<1)+4)
[ 37811, 198, 1635, 198, 1635, 6434, 25, 220, 12585, 19655, 3362, 2879, 7, 19815, 567, 32937, 8, 198, 1635, 9570, 25, 7544, 19655, 13, 79, 2518, 2879, 31, 14816, 13, 785, 198, 1635, 198, 37227, 198, 40, 28, 50033, 25, 8899, 7, 600, ...
2.021978
91
from common.block import Block, BlockHeader from common.io_blockchain import store_blockchain_in_memory from common.values import NUMBER_OF_LEADING_ZEROS from node.transaction_validation.transaction_validation import Transaction
[ 6738, 2219, 13, 9967, 1330, 9726, 11, 9726, 39681, 198, 6738, 2219, 13, 952, 62, 9967, 7983, 1330, 3650, 62, 9967, 7983, 62, 259, 62, 31673, 198, 6738, 2219, 13, 27160, 1330, 36871, 13246, 62, 19238, 62, 2538, 2885, 2751, 62, 57, 11...
3.666667
63
#!/usr/bin/env python # # -*- coding: utf-8 -*- # pylint: disable=invalid-name, line-too-long # # (c) 2019-2020 Timothy Lin <timothy.gh.lin@gmail.com>, BSD 3-Clause License. # """ This is the project configuration file as well the starter script for iPug. """ import os # These UDK tag source trees have been build-t...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 279, 2645, 600, 25, 15560, 28, 259, 12102, 12, 3672, 11, 1627, 12, 18820, 12, 6511, 198, 2, 198, 2, 35...
2.103491
802
#!/usr/bin/env python2 import argparse, sys, os, binascii if len(sys.argv) != 3: print 'pick a file to extract and a directory to put all the files in' print ' extractfail.py myarchive.fail directory' sys.exit() if not os.path.isfile(sys.argv[1]): print sys.argv[1] + ' doesn\'t exist' sys.exit() ...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 17, 198, 11748, 1822, 29572, 11, 25064, 11, 28686, 11, 9874, 292, 979, 72, 198, 198, 361, 18896, 7, 17597, 13, 853, 85, 8, 14512, 513, 25, 198, 220, 220, 220, 3601, 705, 27729, 257, 239...
2.493506
770
#!/usr/bin/env python3.5 import raspi_io.utility as utility from raspi_io import SoftPWM, GPIO if __name__ == '__main__': address = utility.scan_server()[0] pwm20 = SoftPWM(address, GPIO.BCM, 20, 500) pwm21 = SoftPWM(address, GPIO.BCM, 21, 1000) pwm21.start(100) pwm21.start(50) pwm21.start(10...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 13, 20, 198, 11748, 374, 5126, 72, 62, 952, 13, 315, 879, 355, 10361, 198, 6738, 374, 5126, 72, 62, 952, 1330, 8297, 47, 22117, 11, 50143, 628, 198, 361, 11593, 3672, 834, 6624, 705...
2.074257
202
#!/usr/bin/env python """ Copyright (c) 2018 Alex Forencich Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merg...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 37811, 198, 198, 15269, 357, 66, 8, 2864, 4422, 4558, 10782, 488, 198, 198, 5990, 3411, 318, 29376, 7520, 11, 1479, 286, 3877, 11, 284, 597, 1048, 16727, 257, 4866, 198, 1659, 428, 3...
3.273756
442
#!/usr/bin/env python # -*- coding: utf-8 -*- """ data.py Functions for grabbing/manipulating/reporting on data """ __author__ = 'Scott Burns <scott.s.burns@vanderbilt.edu>' __copyright__ = 'Copyright 2014 Vanderbilt University. All Rights Reserved' import os import pandas as pd from redcap import Project def get_...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 37811, 1366, 13, 9078, 198, 198, 24629, 2733, 329, 23256, 14, 805, 541, 8306, 14, 49914, 319, 1366, 198, 37811, ...
2.880282
284
import wave, struct import numpy as np import scipy.signal as ss import matplotlib.pyplot as plt from tqdm import tqdm if __name__ == '__main__': fs = 48000 # sampling rate (Hz) # duration = 20 # seconds # N = int(duration * fs) # n = np.arange(N) # t = n / fs # f = 21e3 # Hz # samples ...
[ 11748, 6769, 11, 2878, 198, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 629, 541, 88, 13, 12683, 282, 355, 37786, 198, 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 198, 6738, 256, 80, 36020, 1330, 256, 80, 36020, 198, ...
2.082333
1,166
import pytest # FIXME finish live testing # due to the complexity of the JavaCard world we'll test the framework using a fixed and # only example attack LIVE_ATR = [59, 123, 24, 0, 0, 0, 49, 192, 100, 119, 227, 3, 0, 130, 144, 0] @pytest.mark.live @pytest.mark.live
[ 11748, 12972, 9288, 198, 198, 2, 44855, 11682, 5461, 2107, 4856, 198, 2, 2233, 284, 262, 13357, 286, 262, 7349, 16962, 995, 356, 1183, 1332, 262, 9355, 1262, 257, 5969, 290, 198, 2, 691, 1672, 1368, 628, 198, 43, 9306, 62, 1404, 49,...
2.84375
96
from django.db import models from django.contrib.auth.models import User from post.models import Post from cloudinary.models import CloudinaryField from django.db.models.signals import post_save from PIL import Image from django.conf import settings import os # Create your models here. post_save.connect(c...
[ 6738, 42625, 14208, 13, 9945, 1330, 4981, 201, 198, 6738, 42625, 14208, 13, 3642, 822, 13, 18439, 13, 27530, 1330, 11787, 201, 198, 6738, 1281, 13, 27530, 1330, 2947, 201, 198, 6738, 6279, 3219, 13, 27530, 1330, 10130, 3219, 15878, 201,...
3.224
125
from typing import Any, Dict
[ 6738, 19720, 1330, 4377, 11, 360, 713, 198 ]
3.625
8
"""Vizio SmartCast API command and class for emulating remote key presses.""" from typing import List, Tuple from pyvizio.api._protocol import ENDPOINT, KEY_ACTION from pyvizio.api.base import CommandBase class KeyPressEvent(object): """Emulated remote key press.""" def __init__( self, key_code: Tu...
[ 37811, 53, 528, 952, 10880, 19248, 7824, 3141, 290, 1398, 329, 795, 8306, 6569, 1994, 31048, 526, 15931, 198, 198, 6738, 19720, 1330, 7343, 11, 309, 29291, 198, 198, 6738, 12972, 85, 528, 952, 13, 15042, 13557, 11235, 4668, 1330, 12964,...
2.627792
403
from SaveAndLoad.JSONSerializer import JSONSerializer import os from PyQt5 import QtCore from PyQt5.QtWidgets import QSizePolicy, QGridLayout, QFrame, QLabel, QPushButton, QTextEdit, QSpinBox, QMessageBox, QAction, QInputDialog from Core.DiceRoller import DiceRollerWithPresetRolls from Interface.Dialogs.AddPresetRoll...
[ 6738, 12793, 1870, 8912, 13, 40386, 32634, 7509, 1330, 19449, 32634, 7509, 198, 11748, 28686, 198, 198, 6738, 9485, 48, 83, 20, 1330, 33734, 14055, 198, 6738, 9485, 48, 83, 20, 13, 48, 83, 54, 312, 11407, 1330, 1195, 10699, 36727, 11,...
3.32
225
#!/usr/bin/env python import sys import os import lightgbm as lgbm from rdkit import Chem from rdkit.Chem import Descriptors if __name__ == "__main__": main()
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 198, 11748, 25064, 198, 11748, 28686, 198, 11748, 1657, 70, 20475, 355, 300, 70, 20475, 198, 6738, 374, 67, 15813, 1330, 12870, 198, 6738, 374, 67, 15813, 13, 41829, 1330, 2935, 6519, ...
2.709677
62
import board import busio import sdcardio import storage import digitalio spi = None sd = None vfs = None path = "/sd" det = digitalio.DigitalInOut(board.SD_DET) det.switch_to_input(pull = digitalio.Pull.UP) # det.value == False if sd card is inserted. mount()
[ 11748, 3096, 198, 11748, 1323, 952, 198, 11748, 45647, 9517, 952, 198, 11748, 6143, 198, 11748, 4875, 952, 198, 198, 2777, 72, 796, 6045, 198, 21282, 220, 796, 6045, 198, 85, 9501, 796, 6045, 198, 198, 6978, 796, 12813, 21282, 1, 198,...
2.8
95
from django.contrib import admin from .models import Store admin.site.register(Store, StoreAdmin)
[ 6738, 42625, 14208, 13, 3642, 822, 1330, 13169, 198, 6738, 764, 27530, 1330, 9363, 628, 198, 198, 28482, 13, 15654, 13, 30238, 7, 22658, 11, 9363, 46787, 8, 198 ]
3.482759
29
"""List of supported formats """ from collections import namedtuple _FORMAT = namedtuple('FormatDefinition', 'mime_type,' 'extension, schema') _FORMATS = namedtuple('FORMATS', 'GEOJSON, JSON, SHP, GML, GEOTIFF, WCS,' 'WCS100, WCS110, WCS20, WFS, WFS100,' ...
[ 37811, 8053, 286, 4855, 17519, 198, 37811, 198, 6738, 17268, 1330, 3706, 83, 29291, 198, 198, 62, 21389, 1404, 796, 3706, 83, 29291, 10786, 26227, 36621, 3256, 705, 76, 524, 62, 4906, 4032, 198, 220, 220, 220, 220, 220, 220, 220, 220,...
2.116547
695
from logging import getLogger from constance import config from django.conf import settings from ..base import DispatcherOptions from ..registry import dispatcher_registry from .email import Email logger = getLogger(__name__) @dispatcher_registry.register
[ 6738, 18931, 1330, 651, 11187, 1362, 198, 198, 6738, 1500, 590, 1330, 4566, 198, 6738, 42625, 14208, 13, 10414, 1330, 6460, 198, 198, 6738, 11485, 8692, 1330, 3167, 8071, 2044, 29046, 198, 6738, 11485, 2301, 4592, 1330, 49952, 62, 2301, ...
3.589041
73
# uncompyle6 version 3.7.4 # Python bytecode 3.7 (3394) # Decompiled from: Python 3.7.9 (tags/v3.7.9:13c94747c7, Aug 17 2020, 18:58:18) [MSC v.1900 64 bit (AMD64)] # Embedded file name: T:\InGame\Gameplay\Scripts\Server\display_snippet_tuning.py # Compiled at: 2020-01-29 22:49:46 # Size of source mod 2**32: 20461 bytes...
[ 2, 34318, 2349, 21, 2196, 513, 13, 22, 13, 19, 198, 2, 11361, 18022, 8189, 513, 13, 22, 357, 2091, 5824, 8, 198, 2, 4280, 3361, 3902, 422, 25, 11361, 513, 13, 22, 13, 24, 357, 31499, 14, 85, 18, 13, 22, 13, 24, 25, 1485, 66,...
1.601367
9,071
from twisted.internet.defer import succeed
[ 6738, 19074, 13, 37675, 13, 4299, 263, 1330, 6758, 628 ]
4.4
10