content
stringlengths
1
1.04M
input_ids
listlengths
1
774k
ratio_char_token
float64
0.38
22.9
token_count
int64
1
774k
#!/usr/bin/env python3 # ============================================================== # author: Lars Gabriel # # gff32gtf.py: Convert gff3 to gtf # ============================================================== import argparse def parseCmd(): """Parse command line arguments Returns: dictionary: Dict...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 2, 46111, 4770, 25609, 28, 198, 2, 1772, 25, 31239, 17371, 198, 2, 198, 2, 308, 487, 2624, 13655, 69, 13, 9078, 25, 38240, 308, 487, 18, 284, 308, 27110, 198, 2, 46111, 4770, ...
3.07907
215
import numpy as np import numpy.testing as npt import pandas as pd import pandas.testing as pdt import pytest import datetime from pandas.api.types import is_numeric_dtype import timeserio.ini as ini from timeserio.data.mock import mock_fit_data from timeserio.preprocessing import PandasDateTimeFeaturizer from timeser...
[ 11748, 299, 32152, 355, 45941, 198, 11748, 299, 32152, 13, 33407, 355, 299, 457, 198, 11748, 19798, 292, 355, 279, 67, 198, 11748, 19798, 292, 13, 33407, 355, 279, 28664, 198, 11748, 12972, 9288, 198, 11748, 4818, 8079, 198, 6738, 19798...
2.040462
1,384
# ----------------------------------------------------------------------------- # @brief: # Define some signals used during parallel # @author: # Tingwu Wang # ----------------------------------------------------------------------------- TRAIN_SIGNAL = 1 SAVE_SIGNAL = 2 # it makes the main trpo agent ...
[ 2, 16529, 32501, 198, 2, 220, 220, 2488, 65, 3796, 25, 198, 2, 220, 220, 220, 220, 220, 220, 2896, 500, 617, 10425, 973, 1141, 10730, 198, 2, 220, 220, 2488, 9800, 25, 198, 2, 220, 220, 220, 220, 220, 220, 309, 278, 43812, 15233...
3.016588
422
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may...
[ 2, 220, 49962, 284, 262, 24843, 10442, 5693, 357, 1921, 37, 8, 739, 530, 198, 2, 220, 393, 517, 18920, 5964, 11704, 13, 220, 4091, 262, 28536, 2393, 198, 2, 220, 9387, 351, 428, 670, 329, 3224, 1321, 198, 2, 220, 5115, 6634, 9238,...
3.20202
594
import os from typing import Union, Tuple import numpy as np import open3d as o3d import trimesh from easy_o3d.utils import get_camera_parameters_from_blenderproc_bopwriter, convert_depth_image_to_point_cloud from scipy.spatial.transform import Rotation from src.common import coord2index, normalize_coord, look_at, ge...
[ 11748, 28686, 198, 6738, 19720, 1330, 4479, 11, 309, 29291, 198, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 1280, 18, 67, 355, 267, 18, 67, 198, 11748, 491, 999, 71, 198, 6738, 2562, 62, 78, 18, 67, 13, 26791, 1330, 651, 62, ...
2.16532
5,940
#!usr/bin/env python # -*- coding:utf-8 -*- """ @author:sqin @file: serializes.py @time: 2019/01/02 """ from flask_marshmallow import Schema from marshmallow import fields from .models import * from . import ma
[ 2, 0, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 532, 9, 12, 19617, 25, 40477, 12, 23, 532, 9, 12, 198, 37811, 198, 31, 9800, 25, 31166, 259, 198, 31, 7753, 25, 11389, 4340, 13, 9078, 198, 31, 2435, 25, 13130, 14, 486, 14, 299...
2.766234
77
import pytest from django.contrib.auth.models import User from django.utils.datetime_safe import datetime from mixer.backend.django import mixer from escola.models import Turma, Profile, Aluno, Professor, MateriaDaTurma, CargoTurma, Horario from escola.utils import dar_permissao_user pytestmark = pytest.mark.django_d...
[ 11748, 12972, 9288, 198, 6738, 42625, 14208, 13, 3642, 822, 13, 18439, 13, 27530, 1330, 11787, 198, 6738, 42625, 14208, 13, 26791, 13, 19608, 8079, 62, 21230, 1330, 4818, 8079, 198, 6738, 33938, 13, 1891, 437, 13, 28241, 14208, 1330, 33...
3.114286
105
from .ACE import settings as st from .ACE.encoder import Encoder from .netNormExtended import netNormExtended from .utilities import * """ The implementation of RESNets framework. Details can be found in the original paper: will be filled when accepted -------------------------------------------------------------...
[ 6738, 764, 11598, 1330, 6460, 355, 336, 198, 6738, 764, 11598, 13, 12685, 12342, 1330, 14711, 12342, 198, 6738, 764, 3262, 35393, 11627, 1631, 1330, 2010, 35393, 11627, 1631, 198, 6738, 764, 315, 2410, 1330, 1635, 198, 198, 37811, 198, ...
2.455607
856
from .is_openff_Molecule import is_openff_Molecule from .to_molsysmt_MolSys import to_molsysmt_MolSys from .to_molsysmt_Topology import to_molsysmt_Topology from .to_molsysmt_Structures import to_molsysmt_Structures from .to_openff_Topology import to_openff_Topology from .to_openmm_Topology import to_openmm_Topology
[ 6738, 764, 271, 62, 9654, 487, 62, 44, 2305, 23172, 1330, 318, 62, 9654, 487, 62, 44, 2305, 23172, 198, 6738, 764, 1462, 62, 76, 10220, 893, 16762, 62, 44, 349, 44387, 1330, 284, 62, 76, 10220, 893, 16762, 62, 44, 349, 44387, 198,...
2.572581
124
from .my_api import test_api from flask import Flask
[ 6738, 764, 1820, 62, 15042, 1330, 1332, 62, 15042, 198, 6738, 42903, 1330, 46947, 628 ]
3.6
15
#!/usr/bin/env python3 -B from PIL import Image from utils import lerp, ccir601 import sys if __name__ == "__main__": im1 = Image.open(sys.argv[1]) im2 = Image.open(sys.argv[2]) pal1 = sorted(getcolors(im1), key=ccir601) pal2 = sorted(getcolors(im2), key=ccir601) im = Image.new('RGB', (16, 16)...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 532, 33, 198, 198, 6738, 350, 4146, 1330, 7412, 198, 6738, 3384, 4487, 1330, 300, 263, 79, 11, 36624, 343, 41706, 198, 11748, 25064, 628, 198, 198, 361, 11593, 3672, 834, 6624, 366, 8...
1.88
350
import time from threading import Thread if __name__ == "__main__": Main()
[ 11748, 640, 198, 6738, 4704, 278, 1330, 14122, 628, 220, 220, 220, 220, 220, 220, 198, 361, 11593, 3672, 834, 6624, 366, 834, 12417, 834, 1298, 198, 220, 8774, 3419, 198, 220, 220, 198 ]
2.588235
34
from typing import Any import aiosqlite from chia.util.byte_types import hexstr_to_bytes from chia.util.db_wrapper import DBWrapper from chia.util.streamable import Streamable class KeyValStore: """ Multipurpose persistent key-value store """ db_connection: aiosqlite.Connection db_wrapper: DBWr...
[ 6738, 19720, 1330, 4377, 198, 198, 11748, 257, 4267, 13976, 578, 198, 198, 6738, 442, 544, 13, 22602, 13, 26327, 62, 19199, 1330, 17910, 2536, 62, 1462, 62, 33661, 198, 6738, 442, 544, 13, 22602, 13, 9945, 62, 48553, 1330, 20137, 3691...
2.368209
497
import os import openai class GPT: """Base object for GPT-3 completions""" api_key = os.environ.get('OPENAI_API_KEY') @classmethod def requires_key(cls, func): """Decorator function which allows passing API key as keyword argument""" return wrapped
[ 11748, 28686, 198, 198, 11748, 1280, 1872, 628, 198, 4871, 402, 11571, 25, 198, 220, 220, 220, 37227, 14881, 2134, 329, 402, 11571, 12, 18, 1224, 45240, 37811, 628, 220, 220, 220, 40391, 62, 2539, 796, 28686, 13, 268, 2268, 13, 1136, ...
2.733333
105
from transformers import BertTokenizerFast model_path = '/Users/joezhao/Documents/pretrain model/chinese_roberta_wwm_ext_L-12_H-768_A-12' tokenizer = BertTokenizerFast.from_pretrained(model_path) print(tokenizer.decode(tokenizer('朝阳区嘉翔大厦A座0000室')['input_ids']))
[ 6738, 6121, 364, 1330, 22108, 30642, 7509, 22968, 198, 198, 19849, 62, 6978, 796, 31051, 14490, 14, 73, 2577, 89, 23778, 14, 38354, 14, 5310, 3201, 2746, 14, 354, 3762, 62, 305, 4835, 64, 62, 1383, 76, 62, 2302, 62, 43, 12, 1065, ...
2.348214
112
from collections import Mapping, MutableMapping
[ 6738, 17268, 1330, 337, 5912, 11, 13859, 540, 44, 5912, 628 ]
4.454545
11
""" Given a string containing just the characters '(', ')', '{', '}', '[' and ']', determine if the input string is valid. An input string is valid if: Open brackets must be closed by the same type of brackets. Open brackets must be closed in the correct order. Note that an empty string is also considered valid. E...
[ 37811, 198, 198, 15056, 257, 4731, 7268, 655, 262, 3435, 29513, 3256, 705, 8, 3256, 705, 90, 3256, 705, 92, 3256, 705, 17816, 290, 705, 60, 3256, 220, 198, 67, 2357, 3810, 611, 262, 5128, 4731, 318, 4938, 13, 198, 198, 2025, 5128, ...
2.53125
384
import time import os import re def counter(file = 'README.md'): """ read .md or .txt format file :param file: .md or .txt format file :return: data """ num = 0 with open(file, 'r', encoding='UTF-8') as f: lines = f.readlines() for line in lines: p1 = re.compile(r'[{](.*...
[ 11748, 640, 198, 11748, 28686, 198, 11748, 302, 198, 4299, 3753, 7, 7753, 796, 705, 15675, 11682, 13, 9132, 6, 2599, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 1100, 764, 9132, 393, 764, 14116, 5794, 2393, 198, 220, 220, 220, 10...
2.096429
280
# Christopher Ryba, 2016 # This code calculates the character values \chi_\mu^\lambda of the # symmetric groups. Here \lambda and \mu are partitions of the same size, # represented as either lists or tuples of integers without trailing zeros. # The function that returns the character value is char_val, so an example ...
[ 2, 12803, 11089, 7012, 11, 1584, 198, 198, 2, 770, 2438, 43707, 262, 2095, 3815, 3467, 11072, 62, 59, 30300, 61, 59, 50033, 286, 262, 220, 198, 2, 23606, 19482, 2628, 13, 3423, 3467, 50033, 290, 3467, 30300, 389, 43869, 286, 262, 97...
3.994253
348
import sqlite3 from sqlite3 import Error import pathlib import logging import sys import os, shutil import time from pydriller import GitRepository from Model_commits_info import Model_commits_info_Controller from Project_commits_info import Project_commits_info_Controller from Project_commits_verbatim import Project...
[ 11748, 44161, 578, 18, 198, 6738, 44161, 578, 18, 1330, 13047, 198, 11748, 3108, 8019, 198, 11748, 18931, 198, 11748, 25064, 198, 11748, 28686, 11, 4423, 346, 198, 11748, 640, 198, 198, 6738, 279, 5173, 81, 4665, 1330, 15151, 6207, 1326...
2.774067
509
""" The wappsto encoding module. Handles encoding object instances to a JSON file. """ import logging from ..connection.seluxit_rpc import SeluxitRpc class WappstoEncoder: """ The wappsto encoding class. Handles encoding the current runtime object instances into JSON. This allows the system to be sa...
[ 37811, 198, 464, 266, 1324, 301, 78, 21004, 8265, 13, 198, 198, 12885, 829, 21004, 2134, 10245, 284, 257, 19449, 2393, 13, 198, 37811, 198, 11748, 18931, 198, 6738, 11485, 38659, 13, 741, 2821, 270, 62, 81, 14751, 1330, 15300, 2821, 2...
2.030199
2,616
# Download the Python helper library from twilio.com/docs/python/install from twilio.rest import TwilioTaskRouterClient # Your Account Sid and Auth Token from twilio.com/user/account account_sid = "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" auth_token = "your_auth_token" workspace_sid = "WSXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" w...
[ 2, 10472, 262, 11361, 31904, 5888, 422, 665, 346, 952, 13, 785, 14, 31628, 14, 29412, 14, 17350, 198, 6738, 665, 346, 952, 13, 2118, 1330, 1815, 346, 952, 25714, 49, 39605, 11792, 198, 198, 2, 3406, 10781, 15686, 290, 26828, 29130, ...
3.15859
227
#!/usr/bin/env python3 from collections import OrderedDict assert make_palindrome("") == "" assert make_palindrome("a") == "a" assert make_palindrome("aab") == "aba" assert make_palindrome("aaa") == "aaa" assert(make_palindrome("bbaa")) == "baab" assert(make_palindrome("aaaabbc")) == "aabcbaa" assert(make_palindrome(...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 198, 6738, 17268, 1330, 14230, 1068, 35, 713, 198, 198, 30493, 787, 62, 18596, 521, 5998, 7203, 4943, 6624, 13538, 198, 30493, 787, 62, 18596, 521, 5998, 7203, 64, 4943, 6624, 366,...
2.612403
129
from setuptools import setup, find_packages import carton with open("README.md", "r", encoding="utf-8") as fh: long_description = fh.read() setup( name='py3-django-enriched-carton', version=carton.__version__, description=carton.__doc__, packages=find_packages(), url='https://github.com/kny...
[ 6738, 900, 37623, 10141, 1330, 9058, 11, 1064, 62, 43789, 198, 198, 11748, 6383, 261, 628, 198, 4480, 1280, 7203, 15675, 11682, 13, 9132, 1600, 366, 81, 1600, 21004, 2625, 40477, 12, 23, 4943, 355, 277, 71, 25, 198, 220, 220, 220, 8...
2.561798
356
from model.project import Project testdata = [ Project(name="name1", description="1"), Project(name="name2", description="2") ]
[ 6738, 2746, 13, 16302, 1330, 4935, 628, 198, 9288, 7890, 796, 685, 198, 220, 220, 220, 4935, 7, 3672, 2625, 3672, 16, 1600, 6764, 2625, 16, 12340, 198, 220, 220, 220, 4935, 7, 3672, 2625, 3672, 17, 1600, 6764, 2625, 17, 4943, 198, ...
3.066667
45
#!/usr/bin/env/ python # coding=utf-8 __author__ = 'Achelics' __Date__ = '2017/05/16' from data_pre_process.split_banner_man import * import os import json as _json def get_ip_banner(path, filename, protocol_validity_json): """ 提取ip和标语 :param path: 标语文件所在路径 :param filename: 标语文件名称 :param prot...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 14, 21015, 198, 2, 19617, 28, 40477, 12, 23, 198, 834, 9800, 834, 796, 705, 32, 2395, 677, 82, 6, 198, 834, 10430, 834, 796, 705, 5539, 14, 2713, 14, 1433, 6, 198, 198, 6738, 1366, 62, 3866,...
2.038429
1,171
import os
[ 11748, 28686 ]
4.5
2
import requirements from requirements import * engine = pyttsx3.init('sapi5') client = wolframalpha.Client('33UPA7-YGAUU4EYQA') voices = engine.getProperty('voices') #engine.setProperty('voice', voices[2].id) engine.setProperty('voices',voices[len(voices)-1]) #engine.setProperty('voice', voices[1].id) eng...
[ 11748, 5359, 201, 198, 6738, 5359, 1330, 1635, 201, 198, 201, 198, 18392, 796, 12972, 83, 912, 87, 18, 13, 15003, 10786, 82, 15042, 20, 11537, 201, 198, 201, 198, 16366, 796, 17481, 859, 26591, 13, 11792, 10786, 2091, 52, 4537, 22, ...
2.03801
1,789
# 无参数 print_hello() # 带参数 fuckfuck r = print_str("fuck") print(r) # 带默认参数 print_default() print_default("default") # 不定长参数 print_args("hello") print_args("hello", "world", "1") # 参数次序可以变 print_two(a="a", b="b") print_two(b="b", a="a")
[ 2, 10545, 245, 254, 20998, 224, 46763, 108, 628, 198, 4798, 62, 31373, 3419, 628, 198, 2, 10263, 116, 99, 20998, 224, 46763, 108, 220, 5089, 31699, 628, 198, 81, 796, 3601, 62, 2536, 7203, 31699, 4943, 198, 4798, 7, 81, 8, 628, 19...
1.671053
152
''' Get the coordinates of a wikipage from some KML. Joe Collins 26 March 2011 ''' import re # for regular expressions import string kml = '''<?xml version="1.0" encoding="UTF-8"?> <kml xmlns="http://earth.google.com/kml/2.1"> <Document> <name><![CDATA[Bedford Museum & Art Gallery]]></name> <open>1</open> <Folder>...
[ 7061, 6, 198, 3855, 262, 22715, 286, 257, 47145, 541, 496, 422, 617, 509, 5805, 13, 198, 198, 19585, 14006, 198, 2075, 2805, 2813, 198, 198, 7061, 6, 198, 11748, 302, 1303, 329, 3218, 14700, 198, 11748, 4731, 198, 74, 4029, 796, 705...
2.497748
444
from ProjectEulerCommons.Base import * Answer( count_summation_way(200, [200, 100, 50, 20, 10, 5, 2, 1]) ) """ ------------------------------------------------ ProjectEuler.Problem.031.py The Answer is: 73682 Time Elasped: 0.07277131080627441sec ------------------------------------------------ """
[ 6738, 4935, 36, 18173, 6935, 684, 13, 14881, 1330, 1635, 198, 198, 33706, 7, 198, 220, 220, 220, 954, 62, 82, 13929, 341, 62, 1014, 7, 2167, 11, 685, 2167, 11, 1802, 11, 2026, 11, 1160, 11, 838, 11, 642, 11, 362, 11, 352, 12962,...
3.270833
96
from __future__ import unicode_literals from django.apps import AppConfig
[ 6738, 11593, 37443, 834, 1330, 28000, 1098, 62, 17201, 874, 198, 6738, 42625, 14208, 13, 18211, 1330, 2034, 16934, 628 ]
3.75
20
#!/usr/bin/env python import sys import logging import os from tuna.runners import AllenNlpRunner from tuna.executors import RayExecutor if os.environ.get("TUNA_DEBUG"): LEVEL = logging.DEBUG else: LEVEL = logging.INFO logging.basicConfig( format="%(asctime)s - %(levelname)s - %(name)s - %(message)s", le...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 11748, 25064, 198, 11748, 18931, 198, 11748, 28686, 198, 198, 6738, 38883, 13, 36740, 1330, 9659, 45, 34431, 49493, 198, 6738, 38883, 13, 18558, 315, 669, 1330, 7760, 23002, 38409, 198, ...
2.590278
144
from django.urls import path, re_path from . import views urlpatterns = [path('', views.index, name="inicio"), path('vista', views.vista), re_path(r'^claves/(?P<clave>[0-9]{4}$)', views.clave), path('claves/<int:numero>', views.numero), path('clave...
[ 6738, 42625, 14208, 13, 6371, 82, 1330, 3108, 11, 302, 62, 6978, 220, 201, 198, 6738, 764, 1330, 5009, 201, 198, 201, 198, 201, 198, 6371, 33279, 82, 796, 685, 6978, 10786, 3256, 5009, 13, 9630, 11, 1438, 2625, 259, 46441, 12340, 22...
1.898955
287
#!/usr/bin/env python3 ###################################### # Steem Peers Scanner - Main Python Script # Part of https://github.com/someguy123/steem-peers # # Usage: # # sudo -H pip3 install -r requirements.txt # sudo ./update_geoip.sh # sudo ./peers.py # # # Environment Options (place in .env or pass on comma...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 29113, 4242, 2235, 198, 2, 2441, 368, 2631, 364, 20937, 1008, 532, 8774, 11361, 12327, 220, 198, 2, 2142, 286, 3740, 1378, 12567, 13, 785, 14, 11246, 22932, 10163, 14, 4169, 368, ...
2.688196
898
from ...factory.factory import UefiCallFactory from .ReadSaveState import ReadSaveStateCall from .WriteSaveState import WriteSaveStateCall SmmCpuCallsFactory = UefiCallFactory() SmmCpuCallsFactory.register('ReadSaveState', ReadSaveStateCall) SmmCpuCallsFactory.register('WriteSaveState', WriteSaveStateCall)
[ 6738, 2644, 69, 9548, 13, 69, 9548, 1330, 471, 891, 72, 14134, 22810, 198, 198, 6738, 764, 5569, 16928, 9012, 1330, 4149, 16928, 9012, 14134, 198, 6738, 764, 16594, 16928, 9012, 1330, 19430, 16928, 9012, 14134, 198, 198, 50, 3020, 34, ...
3.237113
97
#!/usr/bin/env python # Copyright (C) 2013 Jive Software. All rights reserved. """Context manager marking a path with a .lock directory for exclusive access. """ import os import time class Error(Exception): """Base exception class for this module.""" class ProtectedFilePath(object): """Context manager for ex...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 15069, 357, 34, 8, 2211, 449, 425, 10442, 13, 1439, 2489, 10395, 13, 198, 198, 37811, 21947, 4706, 18730, 257, 3108, 351, 257, 764, 5354, 8619, 329, 8568, 1895, 13, 198, 37811, 19...
2.46679
542
from pygame.draw import aaline from math import ceil
[ 6738, 12972, 6057, 13, 19334, 1330, 257, 20663, 198, 6738, 10688, 1330, 2906, 346 ]
3.714286
14
from spddb import * db = ziverdb("hello.db") db.insert("hello", "world") print db.have("hello") == True print db.get("hello") == "world" print db.getsize() == 18 print db.getkeys() == ['hello'] db.delete("hello") print db.have("hello") == False print db.get("hello") == False print db.getsize() == 2 o...
[ 6738, 599, 1860, 65, 1330, 1635, 220, 628, 198, 198, 9945, 796, 1976, 1428, 9945, 7203, 31373, 13, 9945, 4943, 198, 198, 9945, 13, 28463, 7203, 31373, 1600, 366, 6894, 4943, 628, 198, 198, 4798, 20613, 13, 14150, 7203, 31373, 4943, 66...
2.574359
195
import os from deep_rl.actor_critic import Unreal as UnrealTrainer, UnrealAgent from deep_rl.actor_critic.unreal.unreal import without_last_item from deep_rl.actor_critic.unreal.utils import autocrop_observations from deep_rl.utils import KeepTensor, detach_all, expand_time_dimension, pytorch_call from deep_rl.common.p...
[ 11748, 28686, 198, 6738, 2769, 62, 45895, 13, 11218, 62, 22213, 291, 1330, 42536, 355, 42536, 2898, 10613, 11, 42536, 36772, 198, 6738, 2769, 62, 45895, 13, 11218, 62, 22213, 291, 13, 403, 5305, 13, 403, 5305, 1330, 1231, 62, 12957, 6...
3.425197
127
import requests import json import datetime url = "http://api-gateway-dbs-techtrek.ap-southeast-1.elasticbeanstalk.com/transactions/10" querystring = {"from":"01-01-2019","to":"01-31-2019"} payload = "" headers = { 'identity': "Group11", 'token': "bf38d9ac-fade-40ef-b7d2-eabdb183acce", 'cache-control': "...
[ 11748, 7007, 198, 11748, 33918, 198, 11748, 4818, 8079, 220, 198, 6371, 796, 366, 4023, 1378, 15042, 12, 10494, 1014, 12, 67, 1443, 12, 13670, 33945, 74, 13, 499, 12, 82, 14474, 12, 16, 13, 417, 3477, 14289, 301, 971, 13, 785, 14, ...
2.445026
382
import calendar month = int(input("Enter the month: ")) year = int(input("Enter the year: ")) Calendar = calendar.month(year, month) print(Calendar)
[ 11748, 11845, 198, 8424, 796, 493, 7, 15414, 7203, 17469, 262, 1227, 25, 366, 4008, 197, 198, 1941, 796, 493, 7, 15414, 7203, 17469, 262, 614, 25, 366, 4008, 197, 198, 220, 220, 220, 198, 9771, 9239, 796, 11845, 13, 8424, 7, 1941, ...
2.758621
58
#!/usr/bin/env python import PySimpleGUI as sg import glob import ntpath import subprocess LOCATION_OF_YOUR_SCRIPTS = '' # Execute the command. Will not see the output from the command until it completes. # Executes command and immediately returns. Will not see anything the script outputs if __name__ == '__ma...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 11748, 9485, 26437, 40156, 355, 264, 70, 198, 11748, 15095, 198, 11748, 299, 83, 6978, 198, 11748, 850, 14681, 198, 198, 29701, 6234, 62, 19238, 62, 56, 11698, 62, 6173, 32618, 4694, 7...
3.330097
103
#!/usr/bin/env python """ FCKeditor - The text editor for Internet - http://www.fckeditor.net Copyright (C) 2003-2010 Frederico Caldeira Knabben == BEGIN LICENSE == Licensed under the terms of any of the following licenses at your choice: - GNU General Public License Version 2 or later (the "GPL") h...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 201, 198, 201, 198, 37811, 201, 198, 4851, 42, 35352, 532, 383, 2420, 5464, 329, 4455, 532, 2638, 1378, 2503, 13, 69, 694, 35352, 13, 3262, 201, 198, 15269, 357, 34, 8, 5816, 12, 10333, ...
2.835452
1,495
class DictField(Field): """ MSG Pack in Blob field as Dict """ field_type = 'blob' _dict = {} pass
[ 4871, 360, 713, 15878, 7, 15878, 2599, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 49064, 6400, 287, 1086, 672, 2214, 355, 360, 713, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 2214, 62, 4906, 796, 705, 2436, 672, 6, 198, 22...
2.196429
56
#!/usr/bin/env python3 from LoLIM.stationTimings.autoCorrelator3_fromLOC import save_EventByLoc ## these lines are anachronistic and should be fixed at some point from LoLIM import utilities utilities.default_raw_data_loc = "/exp_app2/appexp1/public/raw_data" utilities.default_processed_data_loc = "/home/brian/proces...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 198, 6738, 6706, 43, 3955, 13, 17529, 14967, 654, 13, 23736, 10606, 2411, 1352, 18, 62, 6738, 29701, 1330, 3613, 62, 9237, 3886, 33711, 198, 198, 2235, 777, 3951, 389, 281, 620, ...
1.840191
1,045
import numpy as np from pymatting import ( load_image, cf_laplacian, make_linear_system, cg, jacobi, ichol, vcycle, CounterCallback, )
[ 11748, 299, 32152, 355, 45941, 198, 6738, 279, 4948, 265, 889, 1330, 357, 198, 220, 220, 220, 3440, 62, 9060, 11, 198, 220, 220, 220, 30218, 62, 5031, 489, 330, 666, 11, 198, 220, 220, 220, 787, 62, 29127, 62, 10057, 11, 198, 220,...
2.04878
82
"""Maintains a cache in a file. In general, the idea is that cache acts as a map. However, any time a modification to the map is made, it is immediately saved to disk. The format of caches is considered an implementation detail. """ from pathlib import Path import pickle def _ensure_cache_file(path: Path): ""...
[ 37811, 44, 2913, 1299, 257, 12940, 287, 257, 2393, 13, 198, 198, 818, 2276, 11, 262, 2126, 318, 326, 12940, 6529, 355, 257, 3975, 13, 220, 2102, 11, 597, 640, 257, 17613, 284, 262, 3975, 198, 271, 925, 11, 340, 318, 3393, 7448, 28...
2.336887
1,407
"""Tests for Yet Another Twitch Toolkit.""" from unittest import TestCase, mock from io import StringIO import datetime import sqlalchemy import server as s import model as m from model import connect_to_db, db from seed_testdb import sample_data import template_helpers as temp_help import twitch_helpers ############...
[ 37811, 51, 3558, 329, 6430, 6023, 23835, 16984, 15813, 526, 15931, 198, 6738, 555, 715, 395, 1330, 6208, 20448, 11, 15290, 198, 6738, 33245, 1330, 10903, 9399, 198, 11748, 4818, 8079, 198, 11748, 44161, 282, 26599, 198, 11748, 4382, 355, ...
2.15553
10,416
import os import numpy as np from scipy.spatial import distance from scipy.stats import skew from Bio.PDB.vectors import calc_dihedral from utils.structure import get_atoms_coords, get_bb_atoms_coords from utils.stride import SS_CODE_TO_INT, single_stride class Representation: """An abstract class to implement...
[ 11748, 28686, 198, 198, 11748, 299, 32152, 355, 45941, 198, 198, 6738, 629, 541, 88, 13, 2777, 34961, 1330, 5253, 198, 6738, 629, 541, 88, 13, 34242, 1330, 43370, 198, 198, 6738, 16024, 13, 5760, 33, 13, 303, 5217, 1330, 42302, 62, ...
2.012252
7,346
"""Class implementing the Key Management Entity (KME). """ import random from api import helper import configparser from typing import List from api import crawler class KME: """ Class for the KME on each node. This class also defines the related methods for manipulating the keys. Most of the configuratio...
[ 37811, 9487, 15427, 262, 7383, 8549, 20885, 357, 42, 11682, 737, 198, 37811, 198, 11748, 4738, 198, 6738, 40391, 1330, 31904, 198, 11748, 4566, 48610, 198, 6738, 19720, 1330, 7343, 198, 6738, 40391, 1330, 27784, 1754, 628, 198, 4871, 509,...
2.383535
3,134
from __future__ import annotations import asyncio from asyncio import Queue from contextlib import contextmanager import logging from typing import ( Any, Callable, Dict, Sequence, overload, Generic, TypeVar, cast, TYPE_CHECKING, ) from typing_extensions import Literal from opentron...
[ 6738, 11593, 37443, 834, 1330, 37647, 198, 11748, 30351, 952, 198, 6738, 30351, 952, 1330, 4670, 518, 198, 6738, 4732, 8019, 1330, 4732, 37153, 198, 11748, 18931, 198, 6738, 19720, 1330, 357, 198, 220, 220, 220, 4377, 11, 198, 220, 220,...
2.985981
214
import abc class SortingAlgorithm(abc.ABC): """Base class for all sorting algorithms.""" @abc.abstractmethod def sort(self, unordered_list: list) -> list: """Sorts an unordered list of numbers. Parameters ---------- unordered_list: an unordered list of numbers that needs ...
[ 11748, 450, 66, 628, 198, 4871, 311, 24707, 2348, 42289, 7, 39305, 13, 24694, 2599, 198, 220, 220, 220, 37227, 14881, 1398, 329, 477, 29407, 16113, 526, 15931, 628, 220, 220, 220, 2488, 39305, 13, 397, 8709, 24396, 198, 220, 220, 220,...
2.834025
241
import os import json import codecs sqljson_file = './sqljson.json' output_file = './commonnames.json' # the sqljson.json file holds a giant array that # looks like this: # [ # { "spp": "Abrothrix_andinus", # "commonNames": [ # "Andean Altiplano Mouse", # "Andean Akodont" # ...
[ 198, 11748, 28686, 198, 11748, 33918, 198, 11748, 40481, 82, 198, 198, 25410, 17752, 62, 7753, 796, 705, 19571, 25410, 17752, 13, 17752, 6, 198, 22915, 62, 7753, 796, 705, 19571, 11321, 14933, 13, 17752, 6, 198, 198, 2, 262, 44161, 17...
2.363229
446
import copy from sfcsim.classes.vnf import * class node(): ''' ************************************************************************************************ node类,表示网络中的一个节点,包含接入节点和服务器节点两种类型,详情见network基础类设计文档 属性值: id 节点id,节点唯一标识 atts 节点资源属性,可以有cpu、memory、...
[ 11748, 4866, 198, 6738, 264, 69, 6359, 320, 13, 37724, 13, 85, 77, 69, 1330, 1635, 198, 4871, 10139, 33529, 198, 220, 220, 220, 705, 7061, 198, 17174, 17174, 17174, 198, 220, 220, 220, 10139, 163, 109, 119, 11, 26193, 101, 163, 97, ...
1.276407
1,013
from django.db.models import Q from dal import autocomplete from django.core.exceptions import ObjectDoesNotExist from vocabs.models import SkosConcept, SkosTechnicalCollection
[ 6738, 42625, 14208, 13, 9945, 13, 27530, 1330, 1195, 198, 6738, 288, 282, 1330, 1960, 42829, 6677, 198, 6738, 42625, 14208, 13, 7295, 13, 1069, 11755, 1330, 9515, 13921, 3673, 3109, 396, 198, 6738, 12776, 8937, 13, 27530, 1330, 3661, 41...
3.58
50
from api import ma from api.models.SearchTeam import SearchTeam search_team_schema = SearchTeamSchema() search_teams_schema = SearchTeamSchema(many=True)
[ 6738, 40391, 1330, 17266, 198, 6738, 40391, 13, 27530, 13, 18243, 15592, 1330, 11140, 15592, 628, 198, 198, 12947, 62, 15097, 62, 15952, 2611, 796, 11140, 15592, 27054, 2611, 3419, 198, 12947, 62, 660, 4105, 62, 15952, 2611, 796, 11140, ...
3.204082
49
# This module is automatically generated by autogen.sh. DO NOT EDIT. from . import _IBM # Aliases
[ 2, 770, 8265, 318, 6338, 7560, 416, 1960, 6644, 13, 1477, 13, 8410, 5626, 48483, 13, 198, 198, 6738, 764, 1330, 4808, 9865, 44, 628, 198, 198, 2, 12104, 1386, 198 ]
3.290323
31
""" For detailed information please see http://shotgunsoftware.github.com/shotgunEvents/api.html ## shotgun_logArgs: Logs all events that occur and generates a logfile in the specified directory found in the shotgun_logging.conf file ## """ rootSoftwareDir = [r'\\intrepid\Server\Tools'] dffxModulesExists = '' config...
[ 37811, 198, 1890, 6496, 1321, 3387, 766, 198, 198, 4023, 1378, 9442, 7145, 43776, 13, 12567, 13, 785, 14, 9442, 7145, 37103, 14, 15042, 13, 6494, 198, 198, 2235, 18607, 62, 6404, 42035, 25, 5972, 82, 477, 2995, 326, 3051, 290, 18616, ...
2.228631
1,907
# -*- coding: utf-8 -*- """ TencentBlueKing is pleased to support the open source community by making 蓝鲸智云-节点管理(BlueKing-BK-NODEMAN) available. Copyright (C) 2017-2021 THL A29 Limited, a Tencent company. All rights reserved. Licensed under the MIT License (the "License"); you may not use this file except in compliance ...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 198, 24893, 1087, 14573, 15708, 318, 10607, 284, 1104, 262, 1280, 2723, 2055, 416, 1642, 5525, 241, 251, 165, 110, 116, 162, 247, 118, 12859, 239, 12, 164, 232, ...
2.448316
861
#Shape of capital D: def for_D(): """printing capital 'D' using for loop""" for row in range(5): for col in range(5): if col==1 or row in(0,4) and col!=4 or col==4 and row not in(0,4): print("*",end=" ") else: print(" ",end=" ") p...
[ 2, 33383, 286, 3139, 360, 25, 201, 198, 4299, 329, 62, 35, 33529, 201, 198, 220, 220, 220, 37227, 4798, 278, 220, 3139, 705, 35, 6, 1262, 329, 9052, 37811, 201, 198, 220, 220, 220, 329, 5752, 287, 2837, 7, 20, 2599, 201, 198, 22...
1.68059
407
# -*- coding: utf-8 -*- from django.apps import AppConfig
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 628, 198, 6738, 42625, 14208, 13, 18211, 1330, 2034, 16934, 628 ]
2.541667
24
import binascii import hashlib import os import random import string import subprocess import sys import time import threading import Queue BIN_PATH = "./build/test_random_sha1" NTHREADS = 2 NTESTS = 10 NBYTES = 20 global still_making_input still_making_input = True tests = Queue.Queue() failures = list() # # Help...
[ 11748, 9874, 292, 979, 72, 198, 11748, 12234, 8019, 198, 11748, 28686, 198, 11748, 4738, 198, 11748, 4731, 198, 11748, 850, 14681, 198, 11748, 25064, 198, 11748, 640, 198, 11748, 4704, 278, 198, 11748, 4670, 518, 198, 198, 33, 1268, 62,...
2.682292
960
from django.conf import settings from django.shortcuts import render from djtools.decorators.auth import group_required @group_required(settings.ADMINISTRATORS_GROUP) def home(request): ''' Home page view ''' return render( request, 'home.html' )
[ 6738, 42625, 14208, 13, 10414, 1330, 6460, 198, 6738, 42625, 14208, 13, 19509, 23779, 1330, 8543, 198, 198, 6738, 42625, 31391, 13, 12501, 273, 2024, 13, 18439, 1330, 1448, 62, 35827, 628, 198, 31, 8094, 62, 35827, 7, 33692, 13, 2885, ...
2.735294
102
# -*- coding: utf-8 -*- # formata os comandos em quádruplas e insere na tabela
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 220, 220, 220, 220, 198, 220, 220, 220, 1303, 1296, 1045, 28686, 401, 392, 418, 795, 627, 6557, 67, 622, 489, 292, 304, 287, 325, 260, 12385, 7400, 10304 ]
2.023256
43
from tkinter import Tk, StringVar, ttk, E, W, Event from typing import Callable from savings import SavingsObserver, PresentRequiredEarningsObserver
[ 6738, 256, 74, 3849, 1330, 309, 74, 11, 10903, 19852, 11, 256, 30488, 11, 412, 11, 370, 11, 8558, 198, 6738, 19720, 1330, 4889, 540, 198, 198, 6738, 10653, 1330, 40947, 31310, 18497, 11, 21662, 37374, 49725, 654, 31310, 18497, 628 ]
3.682927
41
from collections import defaultdict import re from this import d, s _zen = ''.join(d.get(c, c) for c in s) _zen_lines = _zen.splitlines()[2:] index = defaultdict(set) for line in _zen_lines: for word in line.split(): index[re.search(r'\w*', word.lower()).group()].add(line)
[ 6738, 17268, 1330, 4277, 11600, 198, 11748, 302, 198, 6738, 428, 1330, 288, 11, 264, 198, 198, 62, 4801, 796, 705, 4458, 22179, 7, 67, 13, 1136, 7, 66, 11, 269, 8, 329, 269, 287, 264, 8, 198, 62, 4801, 62, 6615, 796, 4808, 4801,...
2.539823
113
from tests.integration.integration_test_case import IntegrationTestCase
[ 6738, 5254, 13, 18908, 1358, 13, 18908, 1358, 62, 9288, 62, 7442, 1330, 38410, 14402, 20448, 628 ]
4.294118
17
#!/usr/bin/env python3 # Copyright 2009-2017 BHG http://bw.org/ x = 1 if x>= 5: print('verdadeiro porque {} >= 5'.format(x)) elif x == 3: print('{} == 3'.format(x)) else: print('{} é menor que 5'.format(x))
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 2, 15069, 3717, 12, 5539, 347, 39, 38, 2638, 1378, 65, 86, 13, 2398, 14, 198, 198, 87, 796, 352, 198, 198, 361, 2124, 29, 28, 642, 25, 198, 220, 220, 220, 3601, 10786, 332, ...
2.166667
102
from gpiozero import LED, Button import time #decoder inputs DEC_C = 17 DEC_B = 27 DEC_A = 22 #mux inputs MUX_C = 23 MUX_B = 24 MUX_A = 25 #mux outputs M1_OUT = 12 #output of multiplexer controlling columns 0-5 M2_OUT = 4 #output of multiplexer controlling columns 6-11 """ generally set an output to a value, 0 for o...
[ 6738, 27809, 952, 22570, 1330, 12365, 11, 20969, 198, 11748, 640, 198, 198, 2, 12501, 12342, 17311, 198, 41374, 62, 34, 796, 1596, 198, 41374, 62, 33, 796, 2681, 198, 41374, 62, 32, 796, 2534, 198, 2, 76, 2821, 17311, 198, 44, 31235...
2.695906
513
ida = int(input()) vuelta = int(input()) print('Ana tiene un total de {0} euros'.format((ida+vuelta)))
[ 3755, 796, 493, 7, 15414, 28955, 198, 40939, 12514, 796, 493, 7, 15414, 28955, 198, 198, 4798, 10786, 2025, 64, 46668, 1734, 555, 2472, 390, 1391, 15, 92, 21138, 4458, 18982, 19510, 3755, 10, 40939, 12514, 22305, 198 ]
2.736842
38
import random from collections import deque, namedtuple import numpy as np from accel.replay_buffers.binary_tree import MinTree, SumTree Transition = namedtuple( 'Transition', ('state', 'action', 'next_state', 'reward', 'valid'))
[ 11748, 4738, 198, 6738, 17268, 1330, 390, 4188, 11, 3706, 83, 29291, 198, 198, 11748, 299, 32152, 355, 45941, 198, 198, 6738, 936, 5276, 13, 260, 1759, 62, 36873, 364, 13, 39491, 62, 21048, 1330, 1855, 27660, 11, 5060, 27660, 198, 198...
3.090909
77
from app.views.observer import observer
[ 6738, 598, 13, 33571, 13, 672, 15388, 1330, 22890 ]
4.333333
9
import os import sys import torch import argparse import numpy as np from PIL import Image from mtcnn.mtcnn import MTCNN from torch.utils.data import DataLoader from torchvision import datasets, transforms from mtcnn.utils.align_trans import get_reference_facial_points, warp_and_crop_face def save_landmark(landmark,...
[ 11748, 28686, 198, 11748, 25064, 198, 11748, 28034, 198, 11748, 1822, 29572, 198, 11748, 299, 32152, 355, 45941, 198, 6738, 350, 4146, 1330, 7412, 198, 6738, 285, 23047, 20471, 13, 16762, 66, 20471, 1330, 337, 4825, 6144, 198, 6738, 28034...
2.617857
280
plan = [] # replace stock one import sys sys.modules['atexit'] = sys.modules['aio.atexit']
[ 11578, 796, 17635, 628, 198, 198, 2, 6330, 4283, 530, 198, 11748, 25064, 198, 17597, 13, 18170, 17816, 378, 10198, 20520, 796, 220, 25064, 13, 18170, 17816, 64, 952, 13, 378, 10198, 20520, 198 ]
2.794118
34
#stock_screener.py from pandas_datareader import data as pdr from yahoo_fin import stock_info as si # import yahoo_fin #from pandas import ExcelWriter import yfinance as yf import pandas as pd # import requests import datetime import time from pprint import pprint from collections import OrderedDict import base64 # ...
[ 2, 13578, 62, 1416, 260, 877, 13, 9078, 198, 198, 6738, 19798, 292, 62, 19608, 533, 5067, 1330, 1366, 355, 279, 7109, 198, 6738, 331, 12992, 62, 15643, 1330, 4283, 62, 10951, 355, 33721, 198, 2, 1330, 331, 12992, 62, 15643, 198, 2, ...
2.208287
3,572
from flask import request from operator import or_ from zeus.models import FileCoverage, Revision from zeus.utils.builds import fetch_build_for_revision from .base_revision import BaseRevisionResource from ..schemas import FileCoverageSchema filecoverage_schema = FileCoverageSchema(many=True)
[ 6738, 42903, 1330, 2581, 198, 6738, 10088, 1330, 393, 62, 198, 198, 6738, 1976, 27650, 13, 27530, 1330, 9220, 7222, 1857, 11, 46604, 198, 6738, 1976, 27650, 13, 26791, 13, 11249, 82, 1330, 21207, 62, 11249, 62, 1640, 62, 260, 10178, 1...
3.465116
86
# License: Apache-2.0 from ..util import util from feature_gen_str import string_length from typing import List, Union import numpy as np import pandas as pd import databricks.koalas as ks from._base_string_feature import _BaseStringFeature pd.options.mode.chained_assignment = None class StringLength(_BaseStringFeatu...
[ 2, 13789, 25, 24843, 12, 17, 13, 15, 198, 6738, 11485, 22602, 1330, 7736, 198, 6738, 3895, 62, 5235, 62, 2536, 1330, 4731, 62, 13664, 198, 6738, 19720, 1330, 7343, 11, 4479, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 19798, 292, ...
2.070745
1,880
"""This module gets a dataframe of seattle building permits checks column names""" import pandas as pd import collections def get_permits(data_frame=pd.read_csv("https://data.seattle.gov/api/views/76t5-zqzr/rows.csv?accessType=DOWNLOAD", usecols=["PermitClass", "PermitTypeDesc",...
[ 37811, 1212, 8265, 3011, 257, 1366, 14535, 286, 384, 1999, 2615, 13892, 8794, 5721, 3891, 37811, 198, 11748, 19798, 292, 355, 279, 67, 198, 11748, 17268, 628, 198, 4299, 651, 62, 16321, 896, 7, 7890, 62, 14535, 28, 30094, 13, 961, 62,...
2.404651
430
# This file is part of the CERN Indico plugins. # Copyright (C) 2014 - 2022 CERN # # The CERN Indico plugins are free software; you can redistribute # them and/or modify them under the terms of the MIT License; see # the LICENSE file for more details. from datetime import date, timedelta from flask import request fro...
[ 2, 770, 2393, 318, 636, 286, 262, 327, 28778, 1423, 3713, 20652, 13, 198, 2, 15069, 357, 34, 8, 1946, 532, 33160, 327, 28778, 198, 2, 198, 2, 383, 327, 28778, 1423, 3713, 20652, 389, 1479, 3788, 26, 345, 460, 17678, 4163, 198, 2, ...
3.654378
217
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Wed Mar 27 08:17:57 2019 @author: ts-fernando.takada """ import numpy as np import pandas as pd import matplotlib.pyplot as plt consNumHc = 5 dataset = pd.read_csv("Mall_Customers.csv") x = dataset.iloc[:,[3, 4]].values # y = dataset.iloc[:,].values # U...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 198, 41972, 319, 3300, 1526, 2681, 8487, 25, 1558, 25, 3553, 13130, 198, 198, 31, 9800, 25, 40379, 12, 69,...
2.378893
578
import os from unittest import TestCase from ievv_coderefactor.file_or_directory_renamer import FileOrDirectoryRenamer from ievv_coderefactor.replacer_registry import RegexReplacer from tests.directory_and_file_mixin import DirectoryAndFileMixin
[ 11748, 28686, 198, 6738, 555, 715, 395, 1330, 6208, 20448, 198, 198, 6738, 220, 11203, 85, 62, 19815, 567, 31412, 13, 7753, 62, 273, 62, 34945, 62, 918, 2382, 1330, 9220, 5574, 43055, 26764, 2382, 198, 6738, 220, 11203, 85, 62, 19815,...
3.351351
74
from artron import _py6
[ 198, 6738, 1242, 1313, 1330, 4808, 9078, 21, 628, 628 ]
2.8
10
import time import sys # Meant to be used with client-adapter to enable communicating via stdin/stdout. seq = ["u"] * 3 + ["r"] * 20 + ["d"] * 5 + ["l"] * 5 print("seq_bot_txt") counter = 0 while True: data = input() if data in ["WIN", "LOSS", "TIE"]: print(data) break my_pos, their_pos = ...
[ 11748, 640, 198, 11748, 25064, 198, 198, 2, 2185, 415, 284, 307, 973, 351, 5456, 12, 324, 3429, 284, 7139, 22889, 2884, 14367, 259, 14, 19282, 448, 13, 198, 198, 41068, 796, 14631, 84, 8973, 1635, 513, 1343, 14631, 81, 8973, 1635, 1...
2.454955
222
default_app_config ='profiles.apps.ProfilesConfig'
[ 12286, 62, 1324, 62, 11250, 796, 6, 5577, 2915, 13, 18211, 13, 15404, 2915, 16934, 6 ]
3.125
16
from docs_conf.conf import * #extensions = ['recommonmark']
[ 6738, 34165, 62, 10414, 13, 10414, 1330, 1635, 198, 198, 2, 2302, 5736, 796, 37250, 260, 11321, 4102, 20520 ]
3.157895
19
"""Python code/sdk/application/ApplicationConfig.py.""" from typing import Dict from ..common.constants import APPLICATION_MIN_TOKEN_LENGTH, DEFAULT_DOMAIN from ..common.exceptions import FDKInvalidCredentialError
[ 37811, 37906, 2438, 14, 21282, 74, 14, 31438, 14, 23416, 16934, 13, 9078, 526, 15931, 198, 198, 6738, 19720, 1330, 360, 713, 198, 198, 6738, 11485, 11321, 13, 9979, 1187, 1330, 39421, 6234, 62, 23678, 62, 10468, 43959, 62, 43, 49494, ...
3.444444
63
# load TTM model and checkpoint of choice # generate appropriate Ground-truth-aligned spectrograms from source dataset # (maybe) use Dynamic-Time-Warping for cases where Teacher-Forcing cannot be used. # write new "postnet_path|grapheme_transcript|phoneme_transcript|speaker_id|sample_rate|emotion_id|noise_level" oc...
[ 198, 2, 3440, 309, 15972, 2746, 290, 26954, 286, 3572, 198, 198, 2, 7716, 5035, 13706, 12, 35310, 12, 41634, 5444, 3828, 9474, 422, 2723, 27039, 198, 198, 2, 357, 25991, 8, 779, 26977, 12, 7575, 12, 54, 5117, 278, 329, 2663, 810, ...
3.343137
102
from panther_base_helpers import deep_get # Remove any unapproved login methods APPROVED_LOGIN_TYPES = { "exchange", "google_password", "reauth", "saml", "unknown", }
[ 6738, 15857, 372, 62, 8692, 62, 16794, 364, 1330, 2769, 62, 1136, 198, 198, 2, 17220, 597, 555, 29137, 17594, 5050, 198, 2969, 41283, 1961, 62, 25294, 1268, 62, 9936, 47, 1546, 796, 1391, 198, 220, 220, 220, 366, 1069, 3803, 1600, 1...
2.435897
78
#!/usr/bin/env python from subprocess import call import os Import("env") # built in targets: (buildprog, size, upload, program, buildfs, uploadfs, uploadfsota) env.AddPreAction("buildprog", clean)
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 6738, 850, 14681, 1330, 869, 198, 11748, 28686, 198, 20939, 7203, 24330, 4943, 198, 198, 2, 220, 3170, 287, 6670, 25, 357, 11249, 1676, 70, 11, 2546, 11, 9516, 11, 1430, 11, 1382, 95...
3.092308
65
# 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. import io from pathlib import Path import testslide from ....tests import setup from ..async_server_connection import create_memory_text_rea...
[ 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, 287, 262, 6808, 8619, 286, 428, 2723, 5509, 13, 198, ...
3.394366
142
# Copyright 2015 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """Updates the Git cache zips for a project. Example invocation: ./run.py infra.tools.git_cache_updater --project <googlesource.com url> """ # This file is u...
[ 2, 15069, 1853, 383, 18255, 1505, 46665, 13, 1439, 2489, 10395, 13, 198, 2, 5765, 286, 428, 2723, 2438, 318, 21825, 416, 257, 347, 10305, 12, 7635, 5964, 326, 460, 307, 198, 2, 1043, 287, 262, 38559, 24290, 2393, 13, 198, 37811, 493...
3.097938
194
# ------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License (MIT). See LICENSE in the repo root for license information. # ----------------------------------------------------------------------...
[ 2, 16529, 22369, 6329, 198, 2, 15069, 357, 66, 8, 5413, 10501, 13, 1439, 2489, 10395, 13, 198, 2, 49962, 739, 262, 17168, 13789, 357, 36393, 737, 4091, 38559, 24290, 287, 262, 29924, 6808, 329, 5964, 1321, 13, 198, 2, 16529, 22369, ...
4.268519
216
# defining useful type aliases from typing import Tuple, Union # defining useful type aliases SimTime = Union[int, float] EventPriority = int EventID = int ProcessID = int ProcessName = str ResourceID = int ResourceName = str ResourceCapacity = Union[int, float] TimeInterval = Tuple[SimTime]
[ 2, 16215, 4465, 2099, 47217, 198, 6738, 19720, 1330, 309, 29291, 11, 4479, 628, 198, 2, 16215, 4465, 2099, 47217, 198, 8890, 7575, 796, 4479, 58, 600, 11, 12178, 60, 198, 9237, 22442, 414, 796, 493, 198, 9237, 2389, 796, 493, 198, 1...
3.511905
84
from twisted.trial.unittest import TestCase from twisted.internet.error import ConnectionDone from twisted.internet import protocol, defer, reactor from carnifex.endpoint import InductorEndpoint from .mocks import MockProcessInductor stdout, stderr = 1, 2 class InductorEndpointTest(TestCase): """Test connecting ...
[ 6738, 19074, 13, 45994, 13, 403, 715, 395, 1330, 6208, 20448, 198, 6738, 19074, 13, 37675, 13, 18224, 1330, 26923, 45677, 198, 6738, 19074, 13, 37675, 1330, 8435, 11, 29135, 11, 21905, 198, 6738, 18466, 901, 87, 13, 437, 4122, 1330, 1...
3.646465
99
# coding=utf-8 from os.path import join, dirname from typing import List import numpy as np from .config import load_config from .pose_detection.detections import extract_detections from .pose_detection.mscoco import MSCOCO from .pose_detection.nnet.predict import setup_pose_prediction, extract_cnn_output from .pose_...
[ 2, 19617, 28, 40477, 12, 23, 198, 6738, 28686, 13, 6978, 1330, 4654, 11, 26672, 3672, 198, 6738, 19720, 1330, 7343, 198, 198, 11748, 299, 32152, 355, 45941, 198, 198, 6738, 764, 11250, 1330, 3440, 62, 11250, 198, 6738, 764, 3455, 62, ...
2.462151
753
import os from flask import Flask, flash, render_template, redirect, request, url_for APP_ROOT = os.path.dirname(os.path.abspath(__file__)) app = Flask(__name__) app.config['SECRET_KEY'] = "supertopsecretprivatekey1234" @app.route('/', methods=['GET', 'POST']) if __name__ == "__main__": app.run('127.0.0.1')
[ 11748, 28686, 198, 6738, 42903, 1330, 46947, 11, 7644, 11, 8543, 62, 28243, 11, 18941, 11, 2581, 11, 19016, 62, 1640, 198, 198, 24805, 62, 13252, 2394, 796, 28686, 13, 6978, 13, 15908, 3672, 7, 418, 13, 6978, 13, 397, 2777, 776, 7, ...
2.569106
123
#! /usr/bin/python # TODO: make chromedriver executable on linux systems # TODO: finish this doc string: """The first script to be run in this project. If this is the first time running in this directory, it should look something like this: penguin-website-colors/ examples/ ... .gitig...
[ 2, 0, 1220, 14629, 14, 8800, 14, 29412, 198, 198, 2, 16926, 46, 25, 787, 15358, 276, 38291, 28883, 319, 32639, 3341, 198, 2, 16926, 46, 25, 5461, 428, 2205, 4731, 25, 198, 37811, 464, 717, 4226, 284, 307, 1057, 287, 428, 1628, 13,...
2.545943
5,583
from typing import Optional import torch from torch import nn, Tensor from torch.autograd import grad def vfga(model: nn.Module, inputs: Tensor, labels: Tensor, targeted: bool, max_iter: Optional[int] = None, n_samples: int = 10, large_memory: bool = False) -> Te...
[ 6738, 19720, 1330, 32233, 198, 198, 11748, 28034, 198, 6738, 28034, 1330, 299, 77, 11, 309, 22854, 198, 6738, 28034, 13, 2306, 519, 6335, 1330, 3915, 628, 198, 4299, 410, 69, 4908, 7, 19849, 25, 299, 77, 13, 26796, 11, 198, 220, 220...
2.325355
2,465
''' Problem 19 14 June 2002 You are given the following information, but you may prefer to do some research for yourself. - 1 Jan 1900 was a Monday. - Thirty days has September, April, June and November. All the rest have thirty-one, Saving February alone, Which has twenty-eight, rain o...
[ 7061, 6, 201, 198, 40781, 678, 201, 198, 1415, 2795, 6244, 201, 198, 201, 198, 1639, 389, 1813, 262, 1708, 1321, 11, 475, 345, 743, 4702, 284, 466, 617, 2267, 329, 3511, 13, 201, 198, 201, 198, 220, 532, 352, 2365, 21489, 373, 257...
2.872727
385