content
stringlengths
1
1.04M
input_ids
listlengths
1
774k
ratio_char_token
float64
0.38
22.9
token_count
int64
1
774k
#!/usr/local/bin/python ##/usr/bin/env python import sys #XXX hack if __name__ == "__main__": outputString = "invert:\n%s\n" % ( obfs(sys.argv[1])[0] ) #print( outputString )
[ 2, 48443, 14629, 14, 12001, 14, 8800, 14, 29412, 198, 2235, 14, 14629, 14, 8800, 14, 24330, 21015, 198, 198, 11748, 25064, 198, 198, 2, 43145, 8156, 628, 198, 361, 11593, 3672, 834, 6624, 366, 834, 12417, 834, 1298, 198, 220, 220, 2...
2.130435
92
from flask_restful import Resource from service import UserSocialService from flask_jwt_extended import get_jwt_identity, jwt_required
[ 6738, 42903, 62, 2118, 913, 1330, 20857, 198, 6738, 2139, 1330, 11787, 20636, 16177, 198, 6738, 42903, 62, 73, 46569, 62, 2302, 1631, 1330, 651, 62, 73, 46569, 62, 738, 414, 11, 474, 46569, 62, 35827, 628 ]
3.675676
37
import json # https://www.akershus.no/ansvarsomrader/opplering/akershusoppleringen/visma-inschool/ TARGET_FILE = "schools.json" schoolString = """ <option value="https://asker-vgs.inschool.visma.no">Asker videregående skole</option> <option value="https://bjertnes-vgs.inschool.visma.no">Bjertnes videregående skole</...
[ 11748, 33918, 198, 198, 2, 3740, 1378, 2503, 13, 3979, 7537, 13, 3919, 14, 504, 85, 945, 296, 81, 5067, 14, 10365, 75, 1586, 14, 3979, 7537, 10365, 75, 1586, 268, 14, 85, 38017, 12, 1040, 1251, 14, 198, 198, 51, 46095, 62, 25664, ...
2.635031
1,296
from random import shuffle aluno1 = str(input('Primeiro aluno: ')) aluno2 = str(input('Segundo aluno: ')) aluno3 = str(input('Terceiro aluno: ')) aluno4 = str(input('Quarto aluno: ')) lista = [aluno1, aluno2, aluno3, aluno4] shuffle(lista) print(f'A ordem de apresentação será{lista}')
[ 6738, 4738, 1330, 36273, 198, 282, 36909, 16, 796, 965, 7, 15414, 10786, 26405, 7058, 435, 36909, 25, 705, 4008, 198, 282, 36909, 17, 796, 965, 7, 15414, 10786, 41030, 41204, 435, 36909, 25, 705, 4008, 198, 282, 36909, 18, 796, 965, ...
2.394958
119
# Generated by Django 3.1.9 on 2021-05-12 05:36 from django.db import migrations
[ 2, 2980, 515, 416, 37770, 513, 13, 16, 13, 24, 319, 33448, 12, 2713, 12, 1065, 8870, 25, 2623, 198, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 628 ]
2.766667
30
import binascii from eth_utils import int_to_big_endian from rlp.utils import ALL_BYTES from trie.constants import NIBBLE_TERMINATOR, hex_to_int, TT256 def encode_int(v): """encodes an integer into serialization""" if not isinstance(v, int) or v < 0 or v >= TT256: raise Exception("Integer invalid...
[ 11748, 9874, 292, 979, 72, 198, 198, 6738, 4555, 62, 26791, 1330, 493, 62, 1462, 62, 14261, 62, 437, 666, 198, 6738, 374, 34431, 13, 26791, 1330, 11096, 62, 17513, 51, 1546, 198, 198, 6738, 1333, 68, 13, 9979, 1187, 1330, 399, 9865,...
2.080165
1,210
# -*- coding: utf-8 -*- # Copyright (c) 2019, Officexlr Business Solutions Pvt Ltd. and Contributors # For license information, please see license.txt from __future__ import unicode_literals import frappe from frappe.model.document import Document import jwt, json, time
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 15069, 357, 66, 8, 13130, 11, 4452, 87, 14050, 7320, 23555, 18367, 83, 12052, 13, 290, 25767, 669, 198, 2, 1114, 5964, 1321, 11, 3387, 766, 5964, 13, 14116, 198, ...
3.443038
79
from cx_Freeze import setup, Executable executables = [ Executable( 'manageservice/manage-service.py', base = None, targetName = 'manage-service' ) ] setup( name='Manage Service', version = '1.0.0', description = 'A python service that can b...
[ 6738, 43213, 62, 11146, 2736, 1330, 9058, 11, 8393, 18187, 628, 198, 18558, 315, 2977, 796, 685, 198, 220, 220, 220, 220, 220, 220, 220, 8393, 18187, 7, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 705, 805, 1095, 7...
2.287293
181
lang_code = {'aar': 'Afar', 'abk': 'Abkhaz', 'ace': 'Achinese', 'ach': 'Acoli', 'ada': 'Adangme', 'ady': 'Adygei', 'afa': 'Afroasiatic (Other)', 'afh': 'Afrihili (Artificial language)', 'afr': 'Afrikaans', ...
[ 17204, 62, 8189, 796, 1391, 6, 64, 283, 10354, 705, 32, 16370, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 705, 397, 74, 10354, 705, 4826, 14636, 1031, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 220, ...
1.514701
11,496
""" * endpoint: API endpoint relative path, when added to the base URL, creates the full path * kind: type of record to be updated ('account' or 'visitor') * group: type of Pendo attribute to be updated ('agent' or 'custom') """ # create and store {kind} for stream's url path # build ...
[ 37811, 1635, 36123, 25, 7824, 36123, 3585, 3108, 11, 618, 2087, 284, 262, 2779, 10289, 11, 8075, 262, 1336, 3108, 198, 220, 220, 220, 1635, 1611, 25, 2099, 286, 1700, 284, 307, 6153, 19203, 23317, 6, 393, 705, 4703, 2072, 11537, 198, ...
3.058824
136
__author__ = 'Jana Lasser' __copyright__ = 'Copyright 2021, Patient Dynamics Simulation' __credits__ = ['Jana Lasser', 'Ruggiero LoSardo','Michaela Kaleta'] __license__ = 'MIT' __status__ = 'Dev' # std imports import warnings from importlib import reload from os.path import join import argparse # third pa...
[ 834, 9800, 834, 796, 705, 41, 2271, 406, 24929, 6, 201, 198, 834, 22163, 4766, 834, 796, 705, 15269, 33448, 11, 35550, 33806, 41798, 6, 201, 198, 834, 66, 20696, 834, 796, 37250, 41, 2271, 406, 24929, 3256, 705, 49, 6837, 959, 78, ...
2.049662
6,222
from .common_functions import *
[ 6738, 764, 11321, 62, 12543, 2733, 1330, 1635 ]
3.875
8
import json class Responses: """Class used to create the responses that will be sent through the http protocol""" @staticmethod def response(data: dict): '''Create a ``json`` for http responses Parameters ---------- data: dict The data that will be sent ...
[ 11748, 33918, 628, 198, 4871, 20549, 274, 25, 628, 220, 220, 220, 37227, 9487, 973, 284, 2251, 262, 9109, 326, 481, 307, 1908, 832, 262, 2638, 8435, 37811, 628, 220, 220, 220, 2488, 12708, 24396, 198, 220, 220, 220, 825, 2882, 7, 78...
2.211679
274
""" Python 3 Script to dump CloudFormation templates aws configure configure your AWS credentials you should have permission for listing and downloading CloudFormation stacks """ import os import boto3 import requests import yaml import shutil from cfn_flip import to_json if __name__ == "__main__": print("CloudF...
[ 37811, 198, 37906, 513, 198, 7391, 284, 10285, 10130, 8479, 341, 24019, 198, 8356, 17425, 198, 198, 11250, 495, 534, 30865, 18031, 198, 5832, 815, 423, 7170, 329, 13487, 290, 22023, 10130, 8479, 341, 24285, 198, 37811, 198, 11748, 28686, ...
2.729008
262
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 6738, 11593, 37443, 834, 1330, 28000, 1098, 62, 17201, 874, 198, 198, 6738, 42625, 14208, 13, 9945, 1330, 4981, 11, 15720, 602, 628 ]
2.891892
37
a1 = int(input('Digite o primeiro termo da PA: ')) r = int(input('Digite a razão da PA: ')) a10 = a1 + (10 * r) for c in range(a1, a10, r): print(c)
[ 64, 16, 796, 493, 7, 15414, 10786, 19511, 578, 267, 6994, 7058, 3381, 78, 12379, 8147, 25, 705, 4008, 198, 81, 796, 493, 7, 15414, 10786, 19511, 578, 257, 374, 1031, 28749, 12379, 8147, 25, 705, 4008, 198, 64, 940, 796, 257, 16, 1...
2.125
72
# ---------------------------------------------------------------------------- # CLASSES: nightly # # Test Case: line3d.py # # Tests: mesh - 3D unstructured, single domain # plots - Pseudocolor # annotations - Line3D # # Programmer: Kathleen Biagas # Date: August...
[ 2, 16529, 10541, 198, 2, 220, 42715, 1546, 25, 37862, 198, 2, 198, 2, 220, 6208, 8913, 25, 220, 1627, 18, 67, 13, 9078, 198, 2, 198, 2, 220, 30307, 25, 220, 220, 220, 220, 220, 19609, 220, 220, 220, 220, 220, 220, 220, 532, 51...
2.699301
858
"""Provides access to PyDSS result data.""" from collections import defaultdict from datetime import datetime import json import logging import os import re from pathlib import Path import h5py import numpy as np import pandas as pd from PyDSS.common import DatasetPropertyType from PyDSS.dataset_buffer import Datase...
[ 37811, 15946, 1460, 1895, 284, 9485, 5258, 50, 1255, 1366, 526, 15931, 198, 6738, 17268, 1330, 4277, 11600, 198, 6738, 4818, 8079, 1330, 4818, 8079, 198, 11748, 33918, 198, 11748, 18931, 198, 11748, 28686, 198, 11748, 302, 198, 6738, 3108...
2.247629
11,283
__version__=''' $Id''' __doc__='''basic tests.''' from reportlab.lib.testutils import setOutDir,makeSuiteForClasses, printLocation setOutDir(__name__) import unittest #noruntests if __name__ == "__main__": unittest.TextTestRunner().run(makeSuite()) printLocation()
[ 834, 9641, 834, 28, 7061, 6, 720, 7390, 7061, 6, 201, 198, 834, 15390, 834, 28, 7061, 6, 35487, 5254, 2637, 7061, 201, 198, 6738, 989, 23912, 13, 8019, 13, 9288, 26791, 1330, 900, 7975, 35277, 11, 15883, 5606, 578, 1890, 9487, 274, ...
2.530973
113
from numpy import * from matplotlib import * from pylab import * if __name__ == "__main__": x = arange(-2*pi,2*pi,0.01) figure(1) plot(x,sin(x)) xlabel('x') ylabel('\dot{x}')
[ 6738, 299, 32152, 1330, 1635, 198, 6738, 2603, 29487, 8019, 1330, 1635, 198, 6738, 279, 2645, 397, 1330, 1635, 198, 198, 361, 11593, 3672, 834, 6624, 366, 834, 12417, 834, 1298, 198, 220, 220, 220, 2124, 796, 610, 858, 32590, 17, 9, ...
2.020202
99
#Define some basic colors BLACK = ( 0, 0, 0) BLUE = ( 50, 50, 255) WHITE = (255, 255, 255) GREEN = ( 0, 255, 0) RED = (255, 0, 0) GOLD = (255, 215, 0) GOLDEN_ROD = (218, 165, 32)
[ 198, 198, 2, 7469, 500, 617, 4096, 7577, 198, 9148, 8120, 220, 220, 220, 220, 220, 796, 357, 220, 657, 11, 220, 220, 657, 11, 220, 220, 657, 8, 198, 9148, 8924, 220, 220, 220, 220, 220, 220, 796, 357, 2026, 11, 220, 2026, 11, ...
1.673913
138
# encoding=utf-8 import numpy as np def fusion(perm_score_sets, perm_list, ftype): """fusion method for combining scores output by different components Args: perm_score_sets (3d-array): List of permission scores. Each element is the score set output by one method. The size of the element is ...
[ 2, 21004, 28, 40477, 12, 23, 198, 198, 11748, 299, 32152, 355, 45941, 198, 198, 4299, 21748, 7, 16321, 62, 26675, 62, 28709, 11, 9943, 62, 4868, 11, 277, 4906, 2599, 198, 220, 220, 220, 37227, 69, 4241, 2446, 329, 19771, 8198, 5072,...
2.571429
413
import struct import re __all__ = ["GlasgowConfig"] class GlasgowConfig: """ Glasgow EEPROM configuration data. :ivar int size: Total size of configuration block (currently 64). :ivar str[1] revision: Revision letter, ``A``-``Z``. :ivar str[16] serial: Serial number, i...
[ 11748, 2878, 198, 11748, 302, 628, 198, 834, 439, 834, 796, 14631, 9861, 292, 21175, 16934, 8973, 628, 198, 4871, 23995, 16934, 25, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 23995, 27254, 4805, 2662, 8398, 1366, 13, 628, 220, 220...
2.166333
998
import numpy as np """ Helper script to convert original DSC data to the 'standard' Vanilla format I use for the data """ src = '../../data/hexevent' trgt = '../../data/hexevent' cons = np.load(f'{src}/cons_original_format.npy') high = np.load(f'{src}/high_original_format.npy') low = np.load(f'{src}/low_original_for...
[ 11748, 299, 32152, 355, 45941, 198, 198, 37811, 198, 47429, 4226, 284, 10385, 2656, 360, 6173, 1366, 284, 262, 705, 20307, 6, 33897, 5794, 314, 779, 329, 262, 1366, 198, 37811, 198, 198, 10677, 796, 705, 40720, 40720, 7890, 14, 33095, ...
2.513353
337
import os import json from types import CodeType import networkx as nx from util.constant import * from .utils import get_api_name_from_entity_id from .config import HOMURA_COMMUNITY_API_RECOMMEND_STORE_PATH, COMMUNITY_RECOMMEND_ENTRY_THREADS_STORE_PATH, API_THREAD_ID_MAP_STORE_PATH, API_THREAD_ID_RESORT_MAP_STORE_PA...
[ 11748, 28686, 198, 11748, 33918, 198, 6738, 3858, 1330, 6127, 6030, 198, 11748, 3127, 87, 355, 299, 87, 198, 198, 6738, 7736, 13, 9979, 415, 1330, 1635, 198, 198, 6738, 764, 26791, 1330, 651, 62, 15042, 62, 3672, 62, 6738, 62, 26858, ...
2.8
210
#!/usr/bin/env python3 import unittest import torch import learn2learn as l2l import pytorch_lightning as pl from learn2learn.utils.lightning import EpisodicBatcher from learn2learn.algorithms import LightningANIL if __name__ == "__main__": unittest.main()
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 198, 11748, 555, 715, 395, 198, 11748, 28034, 198, 11748, 2193, 17, 35720, 355, 300, 17, 75, 198, 11748, 12972, 13165, 354, 62, 2971, 768, 355, 458, 198, 198, 6738, 2193, 17, 357...
2.934066
91
# --- # jupyter: # jupytext: # text_representation: # extension: .py # format_name: light # format_version: '1.5' # jupytext_version: 1.11.3 # kernelspec: # display_name: Python 3 # name: python3 # --- # + [markdown] id="view-in-github" colab_type="text" # <a href="https://colab...
[ 2, 11420, 198, 2, 474, 929, 88, 353, 25, 198, 2, 220, 220, 474, 929, 88, 5239, 25, 198, 2, 220, 220, 220, 220, 2420, 62, 15603, 341, 25, 198, 2, 220, 220, 220, 220, 220, 220, 7552, 25, 764, 9078, 198, 2, 220, 220, 220, 220, ...
2.288902
6,857
print([i for i in [1, 2, 3 ,4 ,5 , 8, 13, 21, 34, 55, 89] if i <= 5])
[ 4798, 26933, 72, 329, 1312, 287, 685, 16, 11, 362, 11, 513, 837, 19, 837, 20, 837, 807, 11, 1511, 11, 2310, 11, 4974, 11, 5996, 11, 9919, 60, 611, 1312, 19841, 642, 12962, 198 ]
2
35
# -*- coding: utf-8 -*- from urllib.parse import urljoin from lxml import etree from framework.core.linkextractors import BaseLinkExtractor from framework.utils.href import HREF class LxmlLinkExtractor(BaseLinkExtractor): """base class for extractor,base_url可以为'',否则必须是绝对url """ def _extract_links(self,...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 6738, 2956, 297, 571, 13, 29572, 1330, 19016, 22179, 198, 198, 6738, 300, 19875, 1330, 2123, 631, 198, 198, 6738, 9355, 13, 7295, 13, 2815, 365, 742, 974, 669, 1330, 7...
1.815315
666
from utils import ingest INPUT_FILE = '02.in' EXPECTED_ANSWERS = (1588178, 3783758, ) if __name__ == '__main__': main()
[ 6738, 3384, 4487, 1330, 26151, 628, 198, 1268, 30076, 62, 25664, 796, 705, 2999, 13, 259, 6, 198, 49864, 9782, 1961, 62, 15037, 54, 4877, 796, 357, 1314, 3459, 23188, 11, 45473, 22318, 23, 11, 1267, 628, 628, 198, 198, 361, 11593, 3...
2.298246
57
######################################### ## SPADE sibilant full analysis script ## ######################################### ## Processes and extracts linguistic and acoustic information pertaining to sibilants ## for *all* sibilant segments in the corpus ## Used for extracting data collected as part of the SPeech Ac...
[ 29113, 7804, 2, 198, 2235, 6226, 19266, 264, 571, 37794, 1336, 3781, 4226, 22492, 198, 29113, 7804, 2, 198, 198, 2235, 10854, 274, 290, 32139, 29929, 290, 26071, 1321, 27113, 284, 264, 571, 346, 1187, 198, 2235, 329, 1635, 439, 9, 264...
2.96334
1,473
import threading from queue import Empty, Full from time import time from .container import Container from .adapter.database import DatabaseWarning
[ 11748, 4704, 278, 198, 6738, 16834, 1330, 33523, 11, 6462, 198, 6738, 640, 1330, 640, 198, 6738, 764, 34924, 1330, 43101, 198, 6738, 764, 324, 3429, 13, 48806, 1330, 24047, 20361, 628, 198 ]
4.545455
33
import aiohttp import discord import discord.ext.commands from discord.ext import commands from discord import Webhook, AsyncWebhookAdapter
[ 11748, 257, 952, 4023, 198, 11748, 36446, 198, 11748, 36446, 13, 2302, 13, 9503, 1746, 198, 6738, 36446, 13, 2302, 1330, 9729, 198, 6738, 36446, 1330, 5313, 25480, 11, 1081, 13361, 13908, 25480, 47307, 628, 198 ]
3.944444
36
import random import numpy as np import matplotlib.pyplot as plt x = [random.gauss(3, 1) for _ in range(400)] y = [random.gauss(4, 2) for _ in range(400)] bins = np.linspace(-10, 10, 100) plt.hist(x, bins, alpha=0.5, label='x') plt.hist(y, bins, alpha=0.5, label='y') plt.legend(loc='upper left') plt.title('Title 1')...
[ 11748, 4738, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 198, 198, 87, 796, 685, 25120, 13, 4908, 1046, 7, 18, 11, 352, 8, 329, 4808, 287, 2837, 7, 7029, 15437, 198, 88, 796, 6...
2.292208
154
from src import utils from src.Logging import Logger as log from . import colors import itertools COMMIT_URL = "https://github.com/%s/commit/%s" COMMIT_RANGE_URL = "https://github.com/%s/compare/%s...%s" CREATE_URL = "https://github.com/%s/tree/%s" PR_COMMIT_RANGE_URL = "https://github.com/%s/pull/%s/files/%s..%s" P...
[ 6738, 12351, 1330, 3384, 4487, 198, 6738, 12351, 13, 11187, 2667, 1330, 5972, 1362, 355, 2604, 198, 6738, 764, 1330, 7577, 198, 11748, 340, 861, 10141, 628, 198, 9858, 36393, 62, 21886, 796, 366, 5450, 1378, 12567, 13, 785, 14, 4, 82,...
2.229014
1,227
import argparse import logging import os import sys import threading from typing import Optional from orangeshare import Orangeshare def get_args() -> argparse.Namespace: """ Gets all commandline arguments and validates them. :return: The arguments """ parser = argparse.ArgumentParser(descripti...
[ 11748, 1822, 29572, 198, 11748, 18931, 198, 11748, 28686, 198, 11748, 25064, 198, 11748, 4704, 278, 198, 6738, 19720, 1330, 32233, 198, 198, 6738, 393, 648, 5069, 533, 1330, 1471, 648, 5069, 533, 628, 198, 4299, 651, 62, 22046, 3419, 46...
2.664666
1,166
""" specialized utilities and PDSVersionConverter / PDS4Writer subclasses for converting m3 products. """ from ast import literal_eval import datetime as dt import os import re import shutil import numpy as np import pandas as pd import rasterio from toolz import merge from converter import PDSVersionC...
[ 37811, 201, 198, 20887, 1143, 20081, 290, 350, 5258, 14815, 3103, 332, 353, 1220, 350, 5258, 19, 34379, 850, 37724, 329, 201, 198, 1102, 48820, 285, 18, 3186, 13, 201, 198, 37811, 201, 198, 6738, 6468, 1330, 18875, 62, 18206, 201, 198...
1.971649
16,296
# -*- coding: utf-8 -*- __author__ = """Julien Duponchelle""" __email__ = 'julien@duponchelle.info' __version__ = '0.9.0' from .serialization import serialize from .deserialization import deserialize, _flat, _resolve, _parse_included # keeps backwards compatibility parse = deserialize __all__ = ['serialize', 'dese...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 834, 9800, 834, 796, 37227, 16980, 2013, 360, 27287, 29232, 293, 37811, 198, 834, 12888, 834, 796, 705, 73, 377, 2013, 31, 646, 79, 261, 29232, 293, 13, 10951, 6,...
2.781955
133
"""Integration test cases for the raceplans route.""" from copy import deepcopy from datetime import datetime from json import dumps import os from aiohttp import hdrs from aiohttp.test_utils import TestClient as _TestClient from aioresponses import aioresponses import jwt import pytest from pytest_mock import MockFix...
[ 37811, 34500, 1358, 1332, 2663, 329, 262, 3234, 489, 504, 6339, 526, 15931, 198, 6738, 4866, 1330, 2769, 30073, 198, 6738, 4818, 8079, 1330, 4818, 8079, 198, 6738, 33918, 1330, 45514, 198, 11748, 28686, 198, 198, 6738, 257, 952, 4023, 1...
2.007807
14,602
""" Unit tests of components in pgic.py. This should be run via pytest """ import numpy as np import pgs_correct.pgic as pgic import pytest ########################################### ########################################### ########################################### #########################################...
[ 37811, 198, 26453, 5254, 286, 6805, 287, 23241, 291, 13, 9078, 13, 220, 770, 815, 307, 1057, 2884, 12972, 9288, 198, 37811, 198, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 279, 14542, 62, 30283, 13, 6024, 291, 355, 23241, 291, 19...
2.490148
1,218
import os import uuid import time import logging import numpy as np import torch import torch.optim as optim import torch.nn as nn from src.data import CarDataset from src.data import batchfy,test_batchfy from src.utils import to_device,write_to_txt from src.evaluate import evaluate_dataset,draw_result,test_raw_datas...
[ 11748, 28686, 198, 11748, 334, 27112, 198, 11748, 640, 198, 11748, 18931, 198, 11748, 299, 32152, 355, 45941, 198, 198, 11748, 28034, 198, 11748, 28034, 13, 40085, 355, 6436, 198, 11748, 28034, 13, 20471, 355, 299, 77, 198, 198, 6738, 1...
2.953125
192
from .device import Device from .peripheral import Peripheral from .sample import Sample from .measurement import Measurement def jsonToDeviceDict(json): """Convert json to list of Device objects.""" deviceDict = {} for jsonDevice in json: mac = jsonDevice.get("mac") address = jsonDevice.ge...
[ 6738, 764, 25202, 1330, 16232, 198, 6738, 764, 525, 10803, 282, 1330, 2448, 10803, 282, 198, 6738, 764, 39873, 1330, 27565, 198, 6738, 764, 1326, 5015, 434, 1330, 24291, 434, 198, 198, 4299, 33918, 2514, 24728, 35, 713, 7, 17752, 2599, ...
2.824635
958
import os import instaloader if __name__ == "__main__": user=input("Enter Insta Account: ") picture_download(user)
[ 11748, 28686, 198, 11748, 916, 282, 1170, 263, 198, 198, 361, 11593, 3672, 834, 6624, 366, 834, 12417, 834, 1298, 198, 220, 220, 220, 2836, 28, 15414, 7203, 17469, 2262, 64, 10781, 25, 366, 8, 198, 220, 220, 220, 4286, 62, 15002, 7,...
2.344828
58
#!/usr/bin/env python # -*- coding:utf-8 -*- ############################################################ # @Author : Sean # @Date : 2022-02-22 19:05:52 # @LastEditors : Sean # @LastEditTime : 2022-03-10 15:26:49 # @Description : 这是由 Sean 创建 # @FilePath : /run.py # @Copyright : Copyright ©2019-20...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 532, 9, 12, 19617, 25, 40477, 12, 23, 532, 9, 12, 198, 29113, 14468, 7804, 4242, 198, 2, 2488, 13838, 220, 220, 220, 220, 220, 220, 1058, 11465, 198, 2, 2488, 10430, 220, 220, ...
2.666667
198
from forms_api.fields.base_field import Field from forms_api.html import generate_submit
[ 6738, 5107, 62, 15042, 13, 25747, 13, 8692, 62, 3245, 1330, 7663, 198, 6738, 5107, 62, 15042, 13, 6494, 1330, 7716, 62, 46002, 628 ]
3.75
24
from django.test import TestCase from django.urls import reverse from django.contrib.auth.models import User from myapp import models
[ 6738, 42625, 14208, 13, 9288, 1330, 6208, 20448, 198, 6738, 42625, 14208, 13, 6371, 82, 1330, 9575, 198, 6738, 42625, 14208, 13, 3642, 822, 13, 18439, 13, 27530, 1330, 11787, 198, 198, 6738, 616, 1324, 1330, 4981 ]
3.621622
37
# Copyright 2020 Open Climate Tech Contributors # # 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 agr...
[ 2, 15069, 12131, 4946, 13963, 9634, 25767, 669, 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, ...
3.794118
272
# Third party code # # The following code are copied or modified from: # https://github.com/ray-project/ray/blob/master/python/ray/rllib/utils/filter.py import numpy as np class SharedNoiseTable(object): """Shared noise table used by learner and actor. Learner and actor will create a same noise table by pas...
[ 2, 10467, 2151, 2438, 198, 2, 198, 2, 383, 1708, 2438, 389, 18984, 393, 9518, 422, 25, 198, 2, 3740, 1378, 12567, 13, 785, 14, 2433, 12, 16302, 14, 2433, 14, 2436, 672, 14, 9866, 14, 29412, 14, 2433, 14, 81, 297, 571, 14, 26791,...
3.398601
143
n, m = [int(i) for i in input().split()] a = [input().split() for i in range(n)] while n%2==0: if a[:n//2] == a[n//2:n][::-1]: n //= 2 else: break print(n)
[ 77, 11, 285, 796, 685, 600, 7, 72, 8, 329, 1312, 287, 5128, 22446, 35312, 3419, 60, 198, 64, 796, 685, 15414, 22446, 35312, 3419, 329, 1312, 287, 2837, 7, 77, 15437, 198, 4514, 299, 4, 17, 855, 15, 25, 198, 220, 220, 220, 611, ...
1.836735
98
from .motifprogram import MotifProgram import os from subprocess import Popen, PIPE class Yamda(MotifProgram): """ Predict motifs using YAMDA. Reference: Quang et al., 2018, https://doi.org/10.1093/bioinformatics/bty396 """ def _parse_params(self, params=None): """ Parse paramet...
[ 6738, 764, 27926, 361, 23065, 1330, 6543, 361, 15167, 198, 11748, 28686, 198, 6738, 850, 14681, 1330, 8099, 268, 11, 350, 4061, 36, 628, 198, 4871, 14063, 6814, 7, 47733, 361, 15167, 2599, 628, 220, 220, 220, 37227, 198, 220, 220, 220...
2.073998
973
# -*- coding: utf-8 -*- # ███╗ ███╗ █████╗ ███╗ ██╗██╗ ██████╗ ██████╗ ███╗ ███╗██╗ ██████╗ # ████╗ ████║██╔══██╗████╗ ██║██║██╔════╝██╔═══██╗████╗ ████║██║██╔═══██╗ # ██╔████╔██║███████║██╔██╗ ██║██║██║ ██║ ██║██╔████╔██║██║██║ ██║ # ██║╚██╔╝██║██╔══██║██║╚██╗██║██║██║ ██║ ██║██║╚██╔╝██║██║██║ █...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 23287, 9968, 22880, 245, 220, 220, 23287, 9968, 22880, 245, 23287, 20503, 22880, 245, 23287, 9968, 22880, 245, 220, 220, 23287, 8115, 22880, 245, 9968, 22880, 245, 2328...
1.43266
594
# Project Euler 11 - Largest product in a grid # GitHub: urtuba import numpy as np def load_2d_array(filename: str) -> np.ndarray: ''' Reads a txt file into 2d numpy integer array. :param filename: name of the txt file. :return: 2d numpy array ''' with open(filename, 'r') as file: arr...
[ 2, 4935, 412, 18173, 1367, 532, 406, 853, 395, 1720, 287, 257, 10706, 198, 2, 21722, 25, 2956, 83, 22013, 198, 198, 11748, 299, 32152, 355, 45941, 198, 198, 4299, 3440, 62, 17, 67, 62, 18747, 7, 34345, 25, 965, 8, 4613, 45941, 13,...
2.504525
442
# QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. # Lean CLI v1.0. Copyright 2021 QuantConnect Corporation. # # 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...
[ 2, 19604, 1565, 4825, 1340, 48842, 13, 9858, 532, 9755, 2890, 15007, 11, 2295, 6477, 278, 34884, 13, 198, 2, 45661, 43749, 410, 16, 13, 15, 13, 15069, 33448, 16972, 13313, 10501, 13, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11...
3.548837
645
import random from timeit import timeit if __name__ == '__main__': # Correctness print(main([10, 2, 3, 4, 5, 11, 6, 7, 8, 9], 19)) # True print(main([10, 2, 3, 4, 5, 11, 6, 7, 8, 9], 40)) # False items = [random.choice(range(10_000)) for _ in range(10_000)] res1 = timeit("main(items, 17)", number...
[ 11748, 4738, 198, 6738, 640, 270, 1330, 640, 270, 628, 198, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 198, 220, 220, 220, 1303, 22941, 1108, 198, 220, 220, 220, 3601, 7, 12417, 26933, 940, 11, 362, 11, 513, 11, ...
2.348101
158
import os import subprocess import pytest from pre_commit_hooks.destroyed_symlinks import find_destroyed_symlinks from pre_commit_hooks.destroyed_symlinks import main TEST_SYMLINK = 'test_symlink' TEST_SYMLINK_TARGET = '/doesnt/really/matters' TEST_FILE = 'test_file' TEST_FILE_RENAMED = f'{TEST_FILE}_renamed' @pyt...
[ 11748, 28686, 198, 11748, 850, 14681, 198, 198, 11748, 12972, 9288, 198, 198, 6738, 662, 62, 41509, 62, 25480, 82, 13, 41659, 276, 62, 37047, 28751, 1330, 1064, 62, 41659, 276, 62, 37047, 28751, 198, 6738, 662, 62, 41509, 62, 25480, 8...
2.581395
129
import numpy as np from itertools import combinations from tabulate import tabulate from scipy.stats import wilcoxon, ttest_rel, ttest_ind import matplotlib.pyplot as plt from tabulate import tabulate from matplotlib import rcParams ### E1 get end np.set_printoptions(precision=3) alpha = 0.05 results = np.load("re...
[ 11748, 299, 32152, 355, 45941, 198, 6738, 340, 861, 10141, 1330, 17790, 198, 6738, 7400, 5039, 1330, 7400, 5039, 198, 6738, 629, 541, 88, 13, 34242, 1330, 39716, 1073, 23813, 11, 256, 9288, 62, 2411, 11, 256, 9288, 62, 521, 198, 11748...
2.107047
1,121
from .apiattr import ApiAttributeMixin from .files import GoogleDriveFile from .files import GoogleDriveFileList from .auth import LoadAuth import auth class GoogleDrive(ApiAttributeMixin, object): """Main Google Drive class.""" def __init__(self, auth=None): """Create an instance of GoogleDrive. ...
[ 6738, 764, 15042, 35226, 1330, 5949, 72, 33682, 35608, 259, 198, 6738, 764, 16624, 1330, 3012, 24825, 8979, 198, 6738, 764, 16624, 1330, 3012, 24825, 8979, 8053, 198, 6738, 764, 18439, 1330, 8778, 30515, 198, 11748, 6284, 628, 198, 4871, ...
2.992687
547
{ "make_global_settings": [ ["CC", "/usr/bin/clang"], ["CXX", "/usr/bin/clang++"] ], "targets": [ { "target_name": "OSLogger", "sources": ["OSLogger.mm", "functions.cc"], "include_dirs": ["<!(node -e \"require('nan')\")"], "xcode_settings": { "CC": "clang", "MA...
[ 90, 198, 220, 366, 15883, 62, 20541, 62, 33692, 1298, 685, 198, 220, 220, 220, 14631, 4093, 1600, 12813, 14629, 14, 8800, 14, 565, 648, 33116, 198, 220, 220, 220, 14631, 34, 8051, 1600, 12813, 14629, 14, 8800, 14, 565, 648, 4880, 89...
1.791798
317
from datetime import datetime, timedelta import logging from math import ceil from django.contrib.auth.mixins import LoginRequiredMixin from django.core.exceptions import ObjectDoesNotExist from django.urls import reverse, reverse_lazy from django.http import Http404, HttpResponseRedirect from django.shortcuts import g...
[ 6738, 4818, 8079, 1330, 4818, 8079, 11, 28805, 12514, 198, 11748, 18931, 198, 6738, 10688, 1330, 2906, 346, 198, 6738, 42625, 14208, 13, 3642, 822, 13, 18439, 13, 19816, 1040, 1330, 23093, 37374, 35608, 259, 198, 6738, 42625, 14208, 13, ...
2.391129
744
from selector import get_user from utils.hashing import decode_token, verify_password
[ 6738, 31870, 1330, 651, 62, 7220, 198, 6738, 3384, 4487, 13, 71, 2140, 1330, 36899, 62, 30001, 11, 11767, 62, 28712, 628, 198 ]
3.826087
23
from datetime import date from django.core.cache import cache from django.db.models import Q,F from django.shortcuts import render from django.shortcuts import get_object_or_404 from django.http import HttpResponse,HttpRequest from django.views.generic import ListView, DetailView from blog.models import Post, Categ...
[ 6738, 4818, 8079, 1330, 3128, 198, 198, 6738, 42625, 14208, 13, 7295, 13, 23870, 1330, 220, 12940, 198, 6738, 42625, 14208, 13, 9945, 13, 27530, 1330, 1195, 11, 37, 198, 6738, 42625, 14208, 13, 19509, 23779, 1330, 8543, 198, 6738, 42625...
2.348348
666
#!/usr/bin/env python from ZODB.FileStorage import FileStorage from ZODB.DB import DB storage = FileStorage('Data.fs') db = DB(storage) connection = db.open() root = connection.root() print root.keys() print root.items() print print 'account-list-1:' for aa in root['account-list-1']: print aa.__dict__ print p...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 628, 198, 6738, 1168, 3727, 33, 13, 8979, 31425, 1330, 9220, 31425, 198, 6738, 1168, 3727, 33, 13, 11012, 1330, 20137, 198, 198, 35350, 796, 9220, 31425, 10786, 6601, 13, 9501, 11537, 198, ...
2.684564
149
import jwt from django.conf import settings from rest_framework import authentication, exceptions from .models import User class JWTAuthentication(authentication.BaseAuthentication): """Configure JWT Here""" def get_authentication_credencials(self, request, token): """ Try to authenticate t...
[ 11748, 474, 46569, 198, 198, 6738, 42625, 14208, 13, 10414, 1330, 6460, 198, 198, 6738, 1334, 62, 30604, 1330, 18239, 11, 13269, 198, 6738, 764, 27530, 1330, 11787, 628, 198, 4871, 449, 54, 5603, 315, 6925, 3299, 7, 41299, 3299, 13, 1...
2.619718
426
from rest_framework.exceptions import APIException
[ 6738, 1334, 62, 30604, 13, 1069, 11755, 1330, 7824, 16922, 628 ]
4.727273
11
from flask import Blueprint, render_template main_blueprint = Blueprint("main", __name__, template_folder="templates") @main_blueprint.route("/") @main_blueprint.route("/main") def main(): """ View method to render the home.html page - https://www.abhishekpednekar.com/ Returns ------- home.html:...
[ 6738, 42903, 1330, 39932, 11, 8543, 62, 28243, 198, 198, 12417, 62, 17585, 4798, 796, 39932, 7203, 12417, 1600, 11593, 3672, 834, 11, 11055, 62, 43551, 2625, 11498, 17041, 4943, 628, 198, 31, 12417, 62, 17585, 4798, 13, 38629, 7203, 14,...
2.903704
135
import random import time from twisted.internet import reactor
[ 11748, 4738, 198, 11748, 640, 198, 6738, 19074, 13, 37675, 1330, 21905 ]
5.166667
12
from datetime import datetime from time import sleep from typing import List, Tuple from rich.console import Group from rich.live import Live from rich.panel import Panel from ..controller import GithubPullRequestController, GitlabPullRequestController, PullRequestController from ..layout import ( RenderLayoutMan...
[ 6738, 4818, 8079, 1330, 4818, 8079, 198, 6738, 640, 1330, 3993, 198, 6738, 19720, 1330, 7343, 11, 309, 29291, 198, 198, 6738, 5527, 13, 41947, 1330, 4912, 198, 6738, 5527, 13, 12583, 1330, 7547, 198, 6738, 5527, 13, 35330, 1330, 18810, ...
2.25947
2,640
from nightwatch.model import API # TODO: Add CMake support. """ cmake_minimum_required(VERSION 3.12) find_package(PkgConfig REQUIRED) pkg_check_modules(GLIB REQUIRED glib-2.0) include_directories(${GLIB_INCLUDE_DIRS}) link_directories(${GLIB_LIBRARY_DIRS} ../../cmake-build-debug/guestlib ../../cmake-build-debug/wor...
[ 6738, 1755, 8340, 13, 19849, 1330, 7824, 628, 198, 198, 2, 16926, 46, 25, 3060, 327, 12050, 1104, 13, 198, 37811, 198, 11215, 539, 62, 39504, 62, 35827, 7, 43717, 513, 13, 1065, 8, 198, 19796, 62, 26495, 7, 47, 10025, 16934, 4526, ...
2.590244
410
import keyboard import time import os while True: if keyboard.is_pressed('Windows')and keyboard.is_pressed('`'): delay() time.sleep(5)
[ 11748, 10586, 201, 198, 11748, 640, 201, 198, 11748, 28686, 201, 198, 4514, 6407, 25, 201, 198, 220, 220, 220, 611, 10586, 13, 271, 62, 45477, 10786, 11209, 11537, 392, 10586, 13, 271, 62, 45477, 10786, 63, 6, 2599, 201, 198, 220, 2...
2.41791
67
# -*- coding: utf-8 -*- import numpy as np import torch from torch.utils.data import Sampler class CategoriesSampler(Sampler): """A Sampler to sample a FSL task. Args: Sampler (torch.utils.data.Sampler): Base sampler from PyTorch. """ def __init__( self, label_list, l...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 28034, 198, 6738, 28034, 13, 26791, 13, 7890, 1330, 3409, 20053, 628, 198, 4871, 45486, 16305, 20053, 7, 16305, 20053, 2599, 198...
2.035343
962
import os import numpy as np import numpy.typing as npt from dataclasses import dataclass from bicpl.types import SurfProp, Colour @dataclass(frozen=True) class PolygonObj: """ Polygonal mesh in `.obj` file format. http://www.bic.mni.mcgill.ca/users/mishkin/mni_obj_format.pdf Note: the data represe...
[ 11748, 28686, 198, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 299, 32152, 13, 774, 13886, 355, 299, 457, 198, 6738, 4818, 330, 28958, 1330, 4818, 330, 31172, 198, 6738, 275, 291, 489, 13, 19199, 1330, 43771, 24331, 11, 38773, 628, ...
2.190219
3,149
"""empty message Revision ID: 247c9e7de059 Revises: None Create Date: 2015-12-02 15:03:20.582541 """ # revision identifiers, used by Alembic. revision = '247c9e7de059' down_revision = None from alembic import op import sqlalchemy as sa
[ 37811, 28920, 3275, 198, 198, 18009, 1166, 4522, 25, 30179, 66, 24, 68, 22, 2934, 46712, 198, 18009, 2696, 25, 6045, 198, 16447, 7536, 25, 1853, 12, 1065, 12, 2999, 1315, 25, 3070, 25, 1238, 13, 3365, 1495, 3901, 198, 198, 37811, 19...
2.659341
91
r""" Interface to LattE integrale programs """ #***************************************************************************** # Copyright (C) 2017 Vincent Delecroix <vincent.delecroix@gmail.com> # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public...
[ 81, 37811, 198, 39317, 284, 406, 1078, 36, 4132, 81, 1000, 4056, 198, 37811, 198, 2, 17174, 17174, 4557, 35625, 198, 2, 220, 220, 220, 220, 220, 220, 15069, 357, 34, 8, 2177, 18653, 42226, 19915, 844, 1279, 7114, 1087, 13, 2934, 293...
2.264036
7,249
# # Copyright (c) nexB Inc. and others. All rights reserved. # http://nexb.com and https://github.com/nexB/vulnerablecode/ # The VulnerableCode software is licensed under the Apache License version 2.0. # Data generated with VulnerableCode require an acknowledgment. # # You may not use this software except in complian...
[ 2, 198, 2, 15069, 357, 66, 8, 220, 497, 87, 33, 3457, 13, 290, 1854, 13, 1439, 2489, 10395, 13, 198, 2, 2638, 1378, 12413, 65, 13, 785, 290, 3740, 1378, 12567, 13, 785, 14, 12413, 33, 14, 85, 38828, 8189, 14, 198, 2, 383, 569,...
3.743478
460
import urllib #urllib2是一个标准库,安装python之后就自带了,并且只在于python2中 #在python3中,已经把urllib,urllib2等的合并为一个包urllib了。
[ 11748, 2956, 297, 571, 198, 198, 2, 333, 297, 571, 17, 42468, 31660, 10310, 103, 43718, 229, 49035, 228, 41753, 241, 171, 120, 234, 22522, 231, 35318, 29412, 45298, 28938, 236, 22887, 109, 164, 229, 103, 30585, 99, 12859, 228, 171, 12...
0.981132
106
import os import shutil if __name__ == '__main__': path = os.path.dirname(os.path.dirname(os.path.realpath(__file__))) dirs_to_remove = ['output'] clean_output(path, dirs_to_remove)
[ 11748, 28686, 198, 11748, 4423, 346, 628, 198, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 198, 220, 220, 220, 3108, 796, 28686, 13, 6978, 13, 15908, 3672, 7, 418, 13, 6978, 13, 15908, 3672, 7, 418, 13, 6978, 13, ...
2.414634
82
from skidl import SKIDL, TEMPLATE, Part, Pin, SchLib SKIDL_lib_version = '0.0.1' dc_dc = SchLib(tool=SKIDL).add_parts(*[ Part(name='ADP1108',dest=TEMPLATE,tool=SKIDL,keywords='switching buck boost converter step-down step-up',description='Micropower DC-DC conveter, step-up or step-down operation, 2V-30Vin, ad...
[ 6738, 1341, 312, 75, 1330, 14277, 2389, 43, 11, 309, 3620, 6489, 6158, 11, 2142, 11, 13727, 11, 3059, 25835, 198, 198, 18831, 2389, 43, 62, 8019, 62, 9641, 796, 705, 15, 13, 15, 13, 16, 6, 198, 198, 17896, 62, 17896, 796, 3059, ...
1.917387
42,245
############################################ # Project: PyAN # File: chat_state.py # By: ProgrammingIncluded # Website: ProgrammingIncluded.com # Desc: File to hold chat screen and logic. ############################################ import input_buffer as ib import connect as cnt from command import print_buf import c...
[ 29113, 7804, 4242, 198, 2, 4935, 25, 9485, 1565, 198, 2, 9220, 25, 8537, 62, 5219, 13, 9078, 198, 2, 2750, 25, 30297, 818, 10341, 198, 2, 15887, 25, 30297, 818, 10341, 13, 785, 198, 2, 39373, 25, 9220, 284, 1745, 8537, 3159, 290, ...
3.742475
598
from math import sqrt, acos, pi from model.model import Model from data_processing import csv_processing from sympy import * from sympy.abc import x, y, z from scipy.optimize import fsolve import math csv_data = csv_processing.get_data('data/data2.csv') # 叉乘 # data1############################################...
[ 6738, 10688, 1330, 19862, 17034, 11, 936, 418, 11, 31028, 198, 6738, 2746, 13, 19849, 1330, 9104, 198, 6738, 1366, 62, 36948, 1330, 269, 21370, 62, 36948, 198, 6738, 10558, 88, 1330, 1635, 198, 6738, 10558, 88, 13, 39305, 1330, 2124, ...
1.871437
5,017
from distutils.core import setup setup(name='inbox_personal_parser', version='1.0', install_requires=[ 'matplotlib', 'numpy','pandas' ], py_modules=['inbox_personal_parser'] )
[ 6738, 1233, 26791, 13, 7295, 1330, 9058, 198, 40406, 7, 3672, 11639, 259, 3524, 62, 22682, 62, 48610, 3256, 198, 220, 220, 220, 220, 220, 2196, 11639, 16, 13, 15, 3256, 198, 220, 220, 220, 220, 220, 2721, 62, 47911, 41888, 198, 220,...
2.226804
97
""" pgoapi - Pokemon Go API Copyright (c) 2016 tjado <https://github.com/tejado> 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 t...
[ 37811, 201, 198, 79, 2188, 15042, 532, 14878, 1514, 7824, 201, 198, 15269, 357, 66, 8, 1584, 256, 73, 4533, 1279, 5450, 1378, 12567, 13, 785, 14, 660, 73, 4533, 29, 201, 198, 5990, 3411, 318, 29376, 7520, 11, 1479, 286, 3877, 11, ...
2.846723
946
from ._cube_lattice import cube_lattice from ._sphere_lattice import sphere_lattice
[ 6738, 47540, 40296, 62, 75, 1078, 501, 1330, 23441, 62, 75, 1078, 501, 198, 6738, 47540, 2777, 1456, 62, 75, 1078, 501, 1330, 16558, 62, 75, 1078, 501, 198 ]
2.896552
29
# coding=utf-8 from totalvoice.cliente.api.helper import utils from totalvoice.cliente.api.helper.routes import Routes from totalvoice.cliente.api.totalvoice import Totalvoice import json, requests
[ 2, 19617, 28, 40477, 12, 23, 198, 198, 6738, 2472, 38888, 13, 16366, 68, 13, 15042, 13, 2978, 525, 1330, 3384, 4487, 198, 6738, 2472, 38888, 13, 16366, 68, 13, 15042, 13, 2978, 525, 13, 81, 448, 274, 1330, 39602, 274, 198, 6738, 2...
3.225806
62
from decimal import Decimal from unittest import TestCase from dirtyjson.compat import StringIO import dirtyjson
[ 6738, 32465, 1330, 4280, 4402, 198, 6738, 555, 715, 395, 1330, 6208, 20448, 198, 6738, 11841, 17752, 13, 5589, 265, 1330, 10903, 9399, 198, 198, 11748, 11841, 17752, 628 ]
3.965517
29
import logging import sys import time from pprint import pformat from rich.logging import RichHandler from rich.console import Console from swordfish.endpoints import EndPoint from swordfish.minotour_api import MinotourAPI from swordfish.utils import validate_mt_connection, write_toml_file, get_original_toml_settings...
[ 11748, 18931, 198, 11748, 25064, 198, 11748, 640, 198, 6738, 279, 4798, 1330, 279, 18982, 198, 198, 6738, 5527, 13, 6404, 2667, 1330, 3998, 25060, 198, 6738, 5527, 13, 41947, 1330, 24371, 198, 198, 6738, 8429, 11084, 13, 437, 13033, 133...
2.435415
2,338
# Copyright 2021 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. """Service for tracking CAS reference from RBE and looking them up by builder and commit. RBE is the Remote Build Execution used for building and storing the...
[ 2, 15069, 33448, 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, 16...
2.779988
1,609
# wordle.py - Play Wordle in the command line # Usage: wordle.py [-h] [--hard] [--answer ANSWER] [--show-answer] # # options: # -h, --help show this help message and exit # --hard Enable hard mode # -a ANSWER, --answer ANSWER # Provide the answer # --show-answe...
[ 2, 1573, 293, 13, 9078, 532, 3811, 9678, 293, 287, 262, 3141, 1627, 198, 198, 2, 29566, 25, 1573, 293, 13, 9078, 25915, 71, 60, 685, 438, 10424, 60, 685, 438, 41484, 3537, 17887, 1137, 60, 685, 438, 12860, 12, 41484, 60, 198, 2, ...
2.587349
332
from functools import partial from typing import List, Callable import albumentations as A import numpy as np import torch from sklearn.externals._pilutil import bytescale from torchvision.ops import nms def normalize_01(inp: np.ndarray): """Squash image input to the value range [0, 1] (no clipping)""" inp_o...
[ 6738, 1257, 310, 10141, 1330, 13027, 198, 6738, 19720, 1330, 7343, 11, 4889, 540, 198, 198, 11748, 435, 65, 1713, 602, 355, 317, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 28034, 198, 6738, 1341, 35720, 13, 1069, 759, 874, 13557, ...
2.569718
1,420
from actuator.register import fm; from .task import * import data.db as database import copy this = self_handlers() @fm.route("szse.com","stock_run") @this.route("stock_run") @fm.route("szse.com","stocks_all") @this.route("stocks_all") @fm.route("szse.com","stock_list") @this.route("stock_list") @fm.route("szse.c...
[ 6738, 43840, 1352, 13, 30238, 1330, 277, 76, 26, 220, 198, 6738, 764, 35943, 1330, 1635, 198, 11748, 1366, 13, 9945, 355, 6831, 198, 11748, 4866, 198, 198, 5661, 796, 2116, 62, 4993, 8116, 3419, 198, 198, 31, 38353, 13, 38629, 7203, ...
2.477387
199
"""Python Implementation of Multi-Layer Perceptron""" import numpy as np from numpy.random import seed # ================= # Utility functions # ================= import random random.seed(123) # calculate a random number where: a <= rand < b # Make a matrix # our sigmoid function # derivative of our sigmoid fu...
[ 37811, 37906, 46333, 286, 15237, 12, 49925, 2448, 984, 1313, 37811, 198, 198, 11748, 299, 32152, 355, 45941, 198, 6738, 299, 32152, 13, 25120, 1330, 9403, 198, 198, 2, 36658, 198, 2, 34030, 5499, 198, 2, 36658, 198, 198, 11748, 4738, ...
2.212452
3,116
#!/usr/bin/env python3 """ Common constants """ # put constants here
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 37811, 198, 17227, 38491, 198, 37811, 198, 198, 2, 1234, 38491, 994, 198 ]
3.043478
23
#!/usr/bin/python # Copyright (c) 2020, Sine Nomine Associates # BSD 2-Clause License ANSIBLE_METADATA = { 'metadata_version': '1.1.', 'status': ['preview'], 'supported_by': 'community', } DOCUMENTATION = r''' --- module: openafs_store_facts short_description: Store OpenAFS facts in a json file descript...
[ 2, 48443, 14629, 14, 8800, 14, 29412, 198, 2, 15069, 357, 66, 8, 12131, 11, 311, 500, 21198, 500, 29306, 198, 2, 347, 10305, 362, 12, 2601, 682, 13789, 198, 198, 15037, 34563, 62, 47123, 2885, 13563, 796, 1391, 198, 220, 220, 220, ...
2.477558
557
from collections import defaultdict import datetime import json import logging import os import sys import time from urllib.parse import urlparse import boto3 from botocore.exceptions import ClientError import click logging.basicConfig(format="%(message)s", level=logging.INFO) def read_json(json_file): """ (fi...
[ 6738, 17268, 1330, 4277, 11600, 198, 11748, 4818, 8079, 198, 11748, 33918, 198, 11748, 18931, 198, 11748, 28686, 198, 11748, 25064, 198, 11748, 640, 198, 6738, 2956, 297, 571, 13, 29572, 1330, 19016, 29572, 198, 198, 11748, 275, 2069, 18,...
2.623064
2,454
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union from ... import _utilities, _tables from...
[ 2, 19617, 28, 40477, 12, 23, 198, 2, 17202, 39410, 25, 428, 2393, 373, 7560, 416, 262, 21624, 12994, 26144, 35986, 13, 17202, 198, 2, 17202, 2141, 407, 4370, 416, 1021, 4556, 345, 821, 1728, 345, 760, 644, 345, 389, 1804, 0, 17202, ...
2.443788
14,045
# Distributed under the MIT License. # See LICENSE.txt for details. from spectre.Domain import ElementId1D, ElementId2D, ElementId3D, SegmentId import unittest if __name__ == '__main__': unittest.main(verbosity=2)
[ 2, 4307, 6169, 739, 262, 17168, 13789, 13, 198, 2, 4091, 38559, 24290, 13, 14116, 329, 3307, 13, 198, 198, 6738, 5444, 260, 13, 43961, 1330, 11703, 7390, 16, 35, 11, 11703, 7390, 17, 35, 11, 11703, 7390, 18, 35, 11, 1001, 5154, 73...
2.846154
78
from spira.core.parameters.variables import DictParameter from spira.core.parameters.initializer import ParameterInitializer from spira.core.parameters.descriptor import Parameter from spira.yevon.process.all import * from spira.yevon.process import get_rule_deck RDD = get_rule_deck() __all__ = ['MapGdsiiToPhysical...
[ 6738, 599, 8704, 13, 7295, 13, 17143, 7307, 13, 25641, 2977, 1330, 360, 713, 36301, 198, 6738, 599, 8704, 13, 7295, 13, 17143, 7307, 13, 36733, 7509, 1330, 25139, 2357, 24243, 7509, 198, 6738, 599, 8704, 13, 7295, 13, 17143, 7307, 13,...
3.016129
248
"""Defines exceptions that can occur when interacting with Scan configuration""" from util.exceptions import ValidationException class InvalidScanConfiguration(ValidationException): """Exception indicating that the provided Scan configuration was invalid""" def __init__(self, description): """Construc...
[ 37811, 7469, 1127, 13269, 326, 460, 3051, 618, 24986, 351, 20937, 8398, 37811, 198, 6738, 7736, 13, 1069, 11755, 1330, 3254, 24765, 16922, 198, 198, 4871, 17665, 33351, 38149, 7, 7762, 24765, 16922, 2599, 198, 220, 220, 220, 37227, 16922,...
3.653061
147
#!/usr/bin/env python # encoding: utf-8 # # Copyright SAS Institute # # 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...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 21004, 25, 3384, 69, 12, 23, 198, 2, 198, 2, 15069, 35516, 5136, 198, 2, 198, 2, 220, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 13789, 1776, 198, 2, 22...
2.367659
2,554
import pytest from selenium import webdriver from selenium.webdriver.support.wait import WebDriverWait from selenium.webdriver.support import expected_conditions as EC from selenium.webdriver.common.by import By from selenium.common.exceptions import NoSuchElementException @pytest.fixture
[ 11748, 12972, 9288, 201, 198, 6738, 384, 11925, 1505, 1330, 3992, 26230, 201, 198, 6738, 384, 11925, 1505, 13, 12384, 26230, 13, 11284, 13, 17077, 1330, 5313, 32103, 21321, 201, 198, 6738, 384, 11925, 1505, 13, 12384, 26230, 13, 11284, ...
3.223404
94
OntCversion = '2.0.0' import ontology.builtins import ontology.libont
[ 45984, 34, 9641, 796, 705, 17, 13, 15, 13, 15, 6, 198, 11748, 39585, 1435, 13, 18780, 1040, 198, 11748, 39585, 1435, 13, 8019, 756, 198 ]
2.692308
26