content
stringlengths
1
1.04M
input_ids
listlengths
1
774k
ratio_char_token
float64
0.38
22.9
token_count
int64
1
774k
from pathlib import Path from random import randint import pygame as pg from core.tools import Point
[ 6738, 3108, 8019, 1330, 10644, 198, 6738, 4738, 1330, 43720, 600, 198, 198, 11748, 12972, 6057, 355, 23241, 198, 198, 6738, 4755, 13, 31391, 1330, 6252, 628 ]
3.851852
27
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'vertdef.ui' # # Created by: PyQt5 UI code generator 5.6 # # WARNING! All changes made in this file will be lost! from PyQt5 import QtCore, QtGui, QtWidgets
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 2, 5178, 7822, 7560, 422, 3555, 334, 72, 2393, 705, 1851, 4299, 13, 9019, 6, 198, 2, 198, 2, 15622, 416, 25, 9485, 48, 83, 20, 12454, 2438, 17301, 642, 13, 21...
2.855422
83
import sys if __name__ == '__main__': file_name = sys.argv[1] with open(file_name) as f: raw_lst = f.read() lst = raw_lst.splitlines() print(day06(lst)) print(day06_prime(lst))
[ 11748, 25064, 628, 198, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 198, 220, 220, 220, 2393, 62, 3672, 796, 25064, 13, 853, 85, 58, 16, 60, 628, 220, 220, 220, 351, 1280, 7, 7753, 62, 3672, 8, 355, 277, 25, 1...
1.954955
111
from train import Trainer from option import args if __name__ == '__main__': main()
[ 6738, 4512, 1330, 31924, 198, 6738, 3038, 1330, 26498, 628, 198, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 198, 220, 220, 220, 1388, 3419 ]
3.214286
28
import httplib2 import oauth2client import os from apiclient import discovery from oauth2client import client from oauth2client import tools class Calendar: """Stores data to make Google Calendar API happy""" secret_path = "" application_name = "" credentials = "" http = "" service = "" de...
[ 11748, 1841, 489, 571, 17, 198, 11748, 267, 18439, 17, 16366, 198, 11748, 28686, 198, 6738, 2471, 291, 75, 1153, 1330, 9412, 198, 6738, 267, 18439, 17, 16366, 1330, 5456, 198, 6738, 267, 18439, 17, 16366, 1330, 4899, 198, 198, 4871, 2...
2.590381
603
import os import os.path import seissolxdmf import shutil import recreateXdmf import numpy as np import argparse parser = argparse.ArgumentParser(description="resample output file and write as binary files") parser.add_argument("xdmfFilename", help="xdmf output file") parser.add_argument("--add2prefix", help="string t...
[ 11748, 28686, 198, 11748, 28686, 13, 6978, 198, 11748, 384, 747, 349, 24954, 76, 69, 198, 11748, 4423, 346, 198, 11748, 32049, 55, 36020, 69, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 1822, 29572, 198, 198, 48610, 796, 1822, 29572...
2.338591
2,853
from apps.base.mappers import (PagingRequestSchema, PagingResponseSchema) from apps.story.mappers import (StorySchema, GetStoryRequestSchema, PostStoryRequestSchema, PutStoryRequestSchema, DeleteStoryRequestSchema) from contracts.base import (LIMIT_NAME, OFFSET_NAME, SORT_NAME, COUNT_NAM...
[ 6738, 6725, 13, 8692, 13, 76, 46629, 1330, 357, 47, 3039, 18453, 27054, 2611, 11, 350, 3039, 31077, 27054, 2611, 8, 198, 6738, 6725, 13, 13571, 13, 76, 46629, 1330, 357, 11605, 27054, 2611, 11, 3497, 11605, 18453, 27054, 2611, 11, 294...
2.176259
834
import json from rec_process import rec_for_you_process
[ 11748, 33918, 198, 6738, 664, 62, 14681, 1330, 664, 62, 1640, 62, 5832, 62, 14681, 628 ]
3.5625
16
# Generated by Django 2.2.6 on 2020-03-11 13:09 from django.db import migrations import enumfields.fields import leasing.enums
[ 2, 2980, 515, 416, 37770, 362, 13, 17, 13, 21, 319, 12131, 12, 3070, 12, 1157, 1511, 25, 2931, 198, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 198, 11748, 33829, 25747, 13, 25747, 198, 11748, 42150, 13, 268, 5700, 628 ]
3.071429
42
from collections import defaultdict import json ###########################
[ 6738, 17268, 1330, 4277, 11600, 198, 11748, 33918, 628, 197, 14468, 7804, 21017 ]
5.923077
13
import logging from abc import ABC from django.conf import settings from django.db.models.base import Model from json2model.services import data_type_transform from json2model.services.dynamic_model import dynamic_model_utils as dm_utils from json2model.services.dynamic_model.i_json_iterator import IJsonIterator log...
[ 11748, 18931, 198, 6738, 450, 66, 1330, 9738, 198, 198, 6738, 42625, 14208, 13, 10414, 1330, 6460, 198, 6738, 42625, 14208, 13, 9945, 13, 27530, 13, 8692, 1330, 9104, 198, 198, 6738, 33918, 17, 19849, 13, 30416, 1330, 1366, 62, 4906, ...
3.224806
129
#!/usr/bin/env python import os import sys import subprocess from androguard.core.bytecodes.apk import APK as APK if (len(sys.argv) < 5): print("main.py <apk_dir> <result dir> <device_serial_number>" "<device_codename>") exit(0) apk_dir = os.path.abspath(sys.argv[1]) res_dir = os.path.abspath(sys.a...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 198, 11748, 28686, 198, 11748, 25064, 198, 11748, 850, 14681, 198, 6738, 290, 3828, 84, 446, 13, 7295, 13, 26327, 40148, 13, 499, 74, 1330, 3486, 42, 355, 3486, 42, 198, 198, 361, 35...
1.877907
1,204
from a10sdk.common.A10BaseClass import A10BaseClass class Stats(A10BaseClass): """This class does not support CRUD Operations please use parent. :param icmp_freed: {"optional": true, "size": "8", "type": "number", "oid": "3", "format": "counter"} :param tcp_freed: {"optional": true, "size": "8", "ty...
[ 6738, 257, 940, 21282, 74, 13, 11321, 13, 32, 940, 14881, 9487, 1330, 317, 940, 14881, 9487, 628, 198, 4871, 20595, 7, 32, 940, 14881, 9487, 2599, 198, 220, 220, 220, 220, 198, 220, 220, 220, 37227, 1212, 1398, 857, 407, 1104, 8740,...
2.754057
801
from imdb import IMDb instance = IMDb()
[ 6738, 545, 9945, 1330, 8959, 43832, 198, 198, 39098, 796, 8959, 43832, 3419, 628, 628, 628, 628, 628 ]
2.777778
18
# -*- coding:utf-8 -*- # 4293 """ 299 200 333 340 399 443 531 504 461 536 493 562 503 423 516 316 554 500 543 491 537 509 459 467 551 489 519 614 576 510 498 542 """ """ 425.3813 339.3123 425.4084 426.7195 346.5619 342.1731 346.4786 389.6992 427.9460 426.4859 393.6239 428.2821 329.8853 ...
[ 2, 532, 9, 12, 19617, 25, 40477, 12, 23, 532, 9, 12, 628, 198, 2, 604, 31675, 628, 198, 37811, 198, 22579, 198, 2167, 198, 20370, 198, 23601, 198, 28771, 198, 34938, 198, 20, 3132, 198, 33580, 198, 40652, 198, 44468, 198, 43134, 1...
1.847134
471
import collections from sim_objs import * from mapper import * # ############################################ Scher ########################################### #
[ 11748, 17268, 198, 198, 6738, 985, 62, 672, 8457, 1330, 1635, 198, 6738, 285, 11463, 1330, 1635, 198, 198, 2, 1303, 29113, 7804, 21017, 220, 47956, 220, 1303, 29113, 7804, 2235, 1303, 198 ]
5.030303
33
from django.shortcuts import render, redirect, get_object_or_404 from django.http import HttpResponseBadRequest, HttpResponse from django.core.paginator import Paginator, EmptyPage, PageNotAnInteger from bootcamp.confcreator.forms import ConfCreatorForm from bootcamp.confcreator.models import ConfCreator from django.co...
[ 6738, 42625, 14208, 13, 19509, 23779, 1330, 8543, 11, 18941, 11, 651, 62, 15252, 62, 273, 62, 26429, 198, 6738, 42625, 14208, 13, 4023, 1330, 367, 29281, 31077, 22069, 18453, 11, 367, 29281, 31077, 198, 6738, 42625, 14208, 13, 7295, 13,...
2.161731
3,512
import scipy.optimize import numpy as np #analytic soln G=1 m=1 M=1 mu=1 t=1 eps=1 turn=np.zeros(1)
[ 11748, 629, 541, 88, 13, 40085, 1096, 198, 11748, 299, 32152, 355, 45941, 198, 2, 38200, 13370, 1540, 77, 198, 38, 28, 16, 198, 76, 28, 16, 198, 44, 28, 16, 198, 30300, 28, 16, 198, 83, 28, 16, 198, 25386, 28, 16, 198, 15344, ...
1.867925
53
######################################## # MIT License # # Copyright (c) 2020 Miguel Ramos Pernas ######################################## ''' Definition of the interface functions and classes with :mod:`iminuit`. ''' from ..base import data_types from ..base import parameters from . import core import contextlib impo...
[ 29113, 7804, 198, 2, 17168, 13789, 198, 2, 198, 2, 15069, 357, 66, 8, 12131, 29825, 36692, 350, 1142, 292, 198, 29113, 7804, 198, 7061, 6, 198, 36621, 286, 262, 7071, 5499, 290, 6097, 351, 1058, 4666, 25, 63, 320, 259, 5013, 44646, ...
3.145336
461
# -*- coding: utf-8 -*- # Resource object code # # Created by: The Resource Compiler for PyQt5 (Qt v5.15.2) # # WARNING! All changes made in this file will be lost! from PyQt5 import QtCore qt_resource_data = b"\ \x00\x00\x00\xa0\ \x89\ \x50\x4e\x47\x0d\x0a\x1a\x0a\x00\x00\x00\x0d\x49\x48\x44\x52\x00\ \x00\x00\x06\...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 2, 20857, 2134, 2438, 198, 2, 198, 2, 15622, 416, 25, 383, 20857, 3082, 5329, 329, 9485, 48, 83, 20, 357, 48, 83, 410, 20, 13, 1314, 13, 17, 8, 198, 2, 198,...
1.230209
40,107
import os import filecmp import argparse from os.path import join, abspath, dirname, pardir from regresspy import compare_utils, regression ABS_ROOT = abspath(join(dirname(__file__), pardir, pardir)) REGR_DIR = join("tests", "regression") TBTS = join("tests", "inputs", "tbt_files") MODELS = join("tests", "inputs", "...
[ 11748, 28686, 198, 11748, 2393, 48991, 198, 11748, 1822, 29572, 198, 6738, 28686, 13, 6978, 1330, 4654, 11, 2352, 6978, 11, 26672, 3672, 11, 41746, 343, 198, 6738, 50252, 9078, 1330, 8996, 62, 26791, 11, 20683, 628, 198, 32, 4462, 62, ...
1.91224
3,897
# coding: utf-8 import os import sys sys.path.append(os.pardir) # 親ディレクトリのファイルをインポートするための設定 import numpy as np from dataset.mnist import load_mnist from common.multi_layer_net_extend import MultiLayerNetExtend # データの読み込み (x_train, t_train), (x_test, t_test) = load_mnist(normalize=True, one_hot_label=True) network =...
[ 2, 19617, 25, 3384, 69, 12, 23, 198, 11748, 28686, 198, 11748, 25064, 198, 198, 17597, 13, 6978, 13, 33295, 7, 418, 13, 26037, 343, 8, 220, 1303, 5525, 99, 103, 40629, 24186, 14099, 13298, 12675, 5641, 41939, 11482, 9202, 31758, 11482...
2.18314
344
from pathlib import Path import argparse from preprocess import process_files if __name__ == '__main__': parser = argparse.ArgumentParser() parser.add_argument('index_file', help='index file') parser.add_argument('audio_dir', help='input audio folder') parser.add_argument('data_dir', help='output dat...
[ 6738, 3108, 8019, 1330, 10644, 198, 11748, 1822, 29572, 198, 198, 6738, 662, 14681, 1330, 1429, 62, 16624, 628, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 198, 220, 220, 220, 30751, 796, 1822, 29572, 13, 28100, 1713,...
1.972061
859
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # Copyright 2012 California Institute of Technology. ALL RIGHTS RESERVED. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of th...
[ 2, 27156, 27156, 27156, 27156, 15116, 8728, 4907, 93, 198, 2, 15069, 2321, 3442, 5136, 286, 8987, 13, 11096, 371, 34874, 15731, 1137, 53, 1961, 13, 198, 2, 220, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 116...
3.58124
597
from concurrent.futures.thread import ThreadPoolExecutor from nbdler.handler import ( SpeedAdjuster, AIOReaderWriter, BlockSlicer, FileTempData, ClientWorker, URIStatusManager, GatherException, h, Handlers) from .client import get_policy, ClientPolicy from .version import VERSION from ....
[ 198, 6738, 24580, 13, 69, 315, 942, 13, 16663, 1330, 14122, 27201, 23002, 38409, 198, 6738, 299, 17457, 1754, 13, 30281, 1330, 357, 198, 220, 220, 220, 8729, 39668, 263, 11, 198, 220, 220, 220, 9552, 1581, 1329, 263, 34379, 11, 198, ...
2.95122
164
#! /usr/bin/env python import os travis_tag = os.getenv("TRAVIS_TAG") addon = os.getenv("ADDON") docker_build = "docker run --rm --privileged " \ "-v /var/run/docker.sock:/var/run/docker.sock " \ "-v ~/.docker:/root/.docker " \ "-v $(pwd):/docker " \ "hassi...
[ 2, 0, 1220, 14629, 14, 8800, 14, 24330, 21015, 198, 11748, 28686, 628, 198, 83, 16956, 62, 12985, 796, 28686, 13, 1136, 24330, 7203, 51, 3861, 29817, 62, 42197, 4943, 198, 48078, 796, 28686, 13, 1136, 24330, 7203, 29266, 1340, 4943, 1...
1.977778
315
# Generated by Django 3.2.12 on 2022-02-25 11:08 import django.db.models.deletion from django.db import migrations, models
[ 2, 2980, 515, 416, 37770, 513, 13, 17, 13, 1065, 319, 33160, 12, 2999, 12, 1495, 1367, 25, 2919, 198, 198, 11748, 42625, 14208, 13, 9945, 13, 27530, 13, 2934, 1616, 295, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 11, 4981,...
2.840909
44
from cached_property import cached_property import rlp from rlp.sedes import ( big_endian_int, binary, ) from eth_typing import ( Address ) from eth_hash.auto import keccak from eth_utils import ( ValidationError, ) from eth.abc import ( BaseTransactionAPI, ComputationAPI, SignedTransacti...
[ 6738, 39986, 62, 26745, 1330, 39986, 62, 26745, 198, 11748, 374, 34431, 198, 6738, 374, 34431, 13, 36622, 274, 1330, 357, 198, 220, 220, 220, 1263, 62, 437, 666, 62, 600, 11, 198, 220, 220, 220, 13934, 11, 198, 8, 198, 198, 6738, ...
2.462898
283
import sys from email.mime.multipart import MIMEMultipart from email.mime.text import MIMEText import aiosmtplib from jinja2 import Environment, PackageLoader, Template from alarme import Action
[ 11748, 25064, 198, 6738, 3053, 13, 76, 524, 13, 16680, 541, 433, 1330, 337, 3955, 3620, 586, 541, 433, 198, 6738, 3053, 13, 76, 524, 13, 5239, 1330, 337, 3955, 2767, 2302, 198, 198, 11748, 257, 4267, 16762, 489, 571, 198, 6738, 474,...
3.193548
62
# Generated by Django 2.0.4 on 2018-04-17 11:11 from django.db import migrations, models import django.utils.timezone
[ 2, 2980, 515, 416, 37770, 362, 13, 15, 13, 19, 319, 2864, 12, 3023, 12, 1558, 1367, 25, 1157, 198, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 11, 4981, 198, 11748, 42625, 14208, 13, 26791, 13, 2435, 11340, 628 ]
2.926829
41
# Pyrogram - Telegram MTProto API Client Library for Python # Copyright (C) 2017-2021 Dan <https://github.com/delivrance> # # This file is part of Pyrogram. # # Pyrogram is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License as published # by the Free...
[ 2, 220, 9485, 39529, 532, 50203, 19308, 2964, 1462, 7824, 20985, 10074, 329, 11361, 198, 2, 220, 15069, 357, 34, 8, 2177, 12, 1238, 2481, 6035, 1279, 5450, 1378, 12567, 13, 785, 14, 12381, 452, 8132, 29, 198, 2, 198, 2, 220, 770, ...
2.438869
2,192
""" Not yet implemented added FMC v6.5.0 Appears to only be valid for Firepower 1010 devices. """
[ 37811, 198, 3673, 1865, 9177, 198, 29373, 376, 9655, 410, 21, 13, 20, 13, 15, 198, 4677, 4127, 284, 691, 307, 4938, 329, 3764, 6477, 8949, 15, 4410, 13, 198, 37811, 198 ]
3.0625
32
SIZEOF_BYTE = 8 SIZEOF_INT_16 = 16 // SIZEOF_BYTE SIZEOF_INT_32 = 32 // SIZEOF_BYTE
[ 11584, 57, 4720, 37, 62, 17513, 9328, 796, 807, 198, 198, 11584, 57, 4720, 37, 62, 12394, 62, 1433, 796, 1467, 3373, 311, 14887, 4720, 37, 62, 17513, 9328, 198, 11584, 57, 4720, 37, 62, 12394, 62, 2624, 796, 3933, 3373, 311, 14887, ...
1.734694
49
import setuptools setuptools.setup( name="deepspeech", version="0.3.0", description="train and evaluate a DeepSpeech or DeepSpeech2 network", author="myrtle.ai", author_email="mlperf@myrtle.ai", packages=setuptools.find_packages('src'), package_dir={'': 'src'}, python_requires='>=3.5', ...
[ 11748, 900, 37623, 10141, 198, 198, 2617, 37623, 10141, 13, 40406, 7, 198, 220, 220, 220, 1438, 2625, 22089, 45862, 1600, 198, 220, 220, 220, 2196, 2625, 15, 13, 18, 13, 15, 1600, 198, 220, 220, 220, 6764, 2625, 27432, 290, 13446, 2...
2.449102
167
#!/usr/bin/env python # -*- coding: latin-1 -*- # # Copyright 2016-2021 Blaise Frederick # # 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/LICEN...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 532, 9, 12, 19617, 25, 3042, 259, 12, 16, 532, 9, 12, 198, 2, 198, 2, 220, 220, 15069, 1584, 12, 1238, 2481, 1086, 64, 786, 26113, 198, 2, 198, 2, 220, 220, 49962, 739, 262,...
2.936986
365
# Copyright (c) 2009, 2012-2013, 2015-2020 ARM Limited # All rights reserved. # # The license below extends only to copyright in the software and shall # not be construed as granting a license to any other intellectual # property including but not limited to intellectual property relating # to a hardware implementation...
[ 2, 15069, 357, 66, 8, 3717, 11, 2321, 12, 6390, 11, 1853, 12, 42334, 20359, 15302, 198, 2, 1439, 2489, 10395, 13, 198, 2, 198, 2, 383, 5964, 2174, 14582, 691, 284, 6634, 287, 262, 3788, 290, 2236, 198, 2, 407, 307, 30816, 355, 2...
3.948307
561
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Median is the middle value in an ordered integer list. If the size of the list is even, there is no middle value. So the median is the mean of the two middle value. Examples: [2,3,4] , the median is 3 [2,3], the median is (2 + 3) / 2 = 2.5 Design a data structure th...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 198, 9921, 666, 318, 262, 3504, 1988, 287, 281, 6149, 18253, 1351, 13, 1002, 262, 2546, 286, 262, 1351, 198, 2...
2.547739
398
from .client import Tiingo
[ 6738, 764, 16366, 1330, 16953, 32735 ]
4.333333
6
""" # # Sina Farhadi # # @2019 All Rights Served # # This Is Logger Code # # This Module is Use To Print Debugging Process # """ # Colors debug = True # Error Log # Info Log
[ 37811, 198, 2, 198, 2, 220, 220, 28743, 6755, 71, 9189, 198, 2, 220, 220, 220, 198, 2, 220, 220, 2488, 23344, 1439, 6923, 3116, 276, 198, 2, 198, 2, 220, 220, 770, 1148, 5972, 1362, 6127, 198, 2, 198, 2, 220, 220, 770, 19937, ...
2.506667
75
""" A set of tests for using the QCEngine project """ import copy import numpy as np import tempfile import logging import math from geometric.molecule import bohr2ang logger = logging.getLogger(__name__) from . import addons import geometric.optimize as gt from geometric.internal import CartesianCoordinates,\ ...
[ 37811, 198, 32, 900, 286, 5254, 329, 1262, 262, 1195, 5222, 782, 500, 1628, 198, 37811, 198, 198, 11748, 4866, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 20218, 7753, 198, 11748, 18931, 198, 11748, 10688, 198, 6738, 38445, 13, 76, ...
1.966015
3,119
import inspect class RpcConnectionError(Exception): """Raised (in the caller) if the connection to the broker is lost while waiting for an rpc reply""" class ContainerBeingKilled(Exception): """Raised by :meth:`Container.spawn_worker` if it has started a ``kill`` sequence. Entrypoint provider...
[ 11748, 10104, 628, 628, 198, 4871, 371, 14751, 32048, 12331, 7, 16922, 2599, 198, 220, 220, 220, 37227, 21762, 1417, 357, 259, 262, 24955, 8, 611, 262, 4637, 284, 262, 20426, 318, 2626, 981, 198, 220, 220, 220, 4953, 329, 281, 374, ...
2.832944
856
from .sync_result import sync_table # noqa
[ 6738, 764, 27261, 62, 20274, 1330, 17510, 62, 11487, 1303, 645, 20402, 198 ]
3.307692
13
from absl import app from absl import flags from collections import OrderedDict import itertools import pandas as pd from pathlib import Path import pickle from sklearn.model_selection import ParameterGrid from proteingnn.model import get_default_trainer from proteingnn.example.data import DefaultDatamodule, read_Deep...
[ 6738, 2352, 75, 1330, 598, 198, 6738, 2352, 75, 1330, 9701, 198, 6738, 17268, 1330, 14230, 1068, 35, 713, 198, 11748, 340, 861, 10141, 198, 11748, 19798, 292, 355, 279, 67, 198, 6738, 3108, 8019, 1330, 10644, 198, 11748, 2298, 293, 19...
3.006342
473
n = str(input('Qual seu nome? ')).strip() nome = n.split() print('O seu primeiro nome é {} '.format(nome[0])) print('O seu último nome é {}'.format(nome[len(nome)-1]))
[ 198, 77, 796, 965, 7, 15414, 10786, 46181, 384, 84, 299, 462, 30, 705, 29720, 36311, 3419, 198, 77, 462, 796, 299, 13, 35312, 3419, 198, 4798, 10786, 46, 384, 84, 6994, 7058, 299, 462, 38251, 23884, 45302, 18982, 7, 77, 462, 58, 1...
2.253333
75
import math import numpy import torch from torch import nn class MultiHeadedAttention(nn.Module): """Multi-Head Attention layer :param int n_head: the number of head s :param int n_feat: the number of features :param float dropout_rate: dropout rate """ def forward(self, query, key, value, ...
[ 11748, 10688, 198, 198, 11748, 299, 32152, 198, 11748, 28034, 198, 6738, 28034, 1330, 299, 77, 628, 198, 4871, 15237, 13847, 276, 8086, 1463, 7, 20471, 13, 26796, 2599, 198, 220, 220, 220, 37227, 29800, 12, 13847, 47406, 7679, 628, 220,...
2.011774
1,274
from enum import Enum from pydantic import BaseModel class Direction(str, Enum): """ The text direction of the paragraph/section. If unset, default to `LEFT_TO_RIGHT` since paragraph/section direction is not inherited. """ UNSPECIFIED = "CONTENT_DIRECTION_UNSPECIFIED" LEFT_TO_RIGHT = "LEFT_TO...
[ 6738, 33829, 1330, 2039, 388, 198, 6738, 279, 5173, 5109, 1330, 7308, 17633, 628, 198, 4871, 41837, 7, 2536, 11, 2039, 388, 2599, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 383, 2420, 4571, 286, 262, 7322, 14, 5458, 13, 1002, 55...
2.762712
236
import os os.chdir(r'C:\Temp\Wolfenstein') print(os.getcwd()) CHAR8 = 1 INT16 = 2 INT32 = 4 f = open('MAPHEAD-1.2.WL1', 'rb') h = f.read() f.close() magic = h[0:0+INT16] # uint16le = 2x8 print(magic == b'\xcd\xab') ptr = h[2:INT32 * 100 + 2] levels = [] for i in range(100): levels.append(int.from_bytes(ptr[i*INT...
[ 11748, 28686, 198, 418, 13, 354, 15908, 7, 81, 6, 34, 7479, 30782, 59, 32069, 37975, 11537, 198, 4798, 7, 418, 13, 1136, 66, 16993, 28955, 198, 198, 38019, 23, 796, 352, 198, 12394, 1433, 796, 362, 198, 12394, 2624, 796, 604, 198, ...
2.013279
979
# Run as: # python3 part1.py [input|sample] import sys if __name__ == '__main__': main()
[ 2, 5660, 355, 25, 198, 2, 21015, 18, 636, 16, 13, 9078, 685, 15414, 91, 39873, 60, 198, 198, 11748, 25064, 628, 198, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 198, 220, 1388, 3419, 198 ]
2.435897
39
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Contains base class for computing the log likeihood and gradient for a single pulsar, including an outlier parameter to detect outlying TOAs. Any coordinate transformations to be applied build off of this base class. Class methods include computing white noise vectors...
[ 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, 4264, 1299, 2779, 1398, 329, 14492, 262, 2604, 588, 72, 2894, 290, 31312, 329, 257, 2060, 198, 79, 57...
1.946688
6,115
"""A module that checks docstrings in Python files. """ import inspect import os import sys from typing import Any, Dict, List, Tuple from numdoclint import helper VERBOSE_DISABLED: int = 0 VERBOSE_ENABLED: int = 1 def check_python_module( py_module_path: str, verbose: int = 1, ignore_func_name_pre...
[ 37811, 32, 8265, 326, 8794, 2205, 37336, 287, 11361, 3696, 13, 198, 37811, 198, 198, 11748, 10104, 198, 11748, 28686, 198, 11748, 25064, 198, 6738, 19720, 1330, 4377, 11, 360, 713, 11, 7343, 11, 309, 29291, 198, 198, 6738, 997, 15390, ...
2.339404
16,034
# -*- coding: utf-8 -*- """ Created on Thu Jan 19 16:29:03 2012 Rewritten on Tue July 28 13:09:00 2015 @author: Fesh0r, LexManos @version: v7.0 """ import sys import os import fnmatch import shutil import re import zipfile import time from contextlib import closing from optparse import OptionParser from pprint impor...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 198, 41972, 319, 26223, 2365, 220, 678, 1467, 25, 1959, 25, 3070, 2321, 198, 30003, 9108, 319, 30030, 2901, 2579, 1511, 25, 2931, 25, 405, 1853, 198, 198, 31, 9...
2.468812
3,014
r""" A module defining some "nicer" fourier transform functions. We define only two functions -- an arbitrary-dimension forward transform, and its inverse. In each case, the transform is designed to replicate the continuous transform. That is, the transform is volume-normalised and obeys correct Fourier conventions. ...
[ 81, 37811, 198, 32, 8265, 16215, 617, 366, 6988, 263, 1, 46287, 5277, 6121, 5499, 13, 198, 198, 1135, 8160, 691, 734, 5499, 1377, 281, 14977, 12, 46156, 2651, 6121, 11, 290, 663, 34062, 13, 554, 1123, 1339, 11, 262, 6121, 198, 271, ...
2.798686
3,502
from rest_framework.viewsets import ViewSet from rest_framework.response import Response from rest_framework.mixins import ListModelMixin from rest_framework import status, permissions from servers.models import Server from .models import Hosts, Functions, Triggers from products.models import Product class ZabbixH...
[ 198, 6738, 1334, 62, 30604, 13, 1177, 28709, 1330, 3582, 7248, 198, 6738, 1334, 62, 30604, 13, 26209, 1330, 18261, 198, 6738, 1334, 62, 30604, 13, 19816, 1040, 1330, 7343, 17633, 35608, 259, 198, 6738, 1334, 62, 30604, 1330, 3722, 11, ...
2.029412
918
# -*- coding: utf-8 -*- import os.path import platform import sys import shutil import time
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 11748, 28686, 13, 6978, 198, 11748, 3859, 198, 11748, 25064, 198, 11748, 4423, 346, 198, 11748, 640, 628, 628, 198 ]
2.771429
35
import pytest # noqa: F401
[ 198, 11748, 12972, 9288, 220, 1303, 645, 20402, 25, 376, 21844, 628 ]
2.5
12
from selenium import webdriver import time from selenium.common.exceptions import NoSuchElementException, StaleElementReferenceException from selenium.webdriver.support.select import Select from bs4 import BeautifulSoup from urllib.request import urlopen
[ 6738, 384, 11925, 1505, 1330, 3992, 26230, 198, 11748, 640, 198, 6738, 384, 11925, 1505, 13, 11321, 13, 1069, 11755, 1330, 1400, 16678, 20180, 16922, 11, 520, 1000, 20180, 26687, 16922, 198, 6738, 384, 11925, 1505, 13, 12384, 26230, 13, ...
3.923077
65
from pathlib import Path from shu.kanunu import make_ebook urls = """ http://www.kanunu8.com/files/chinese/201102/1777.html http://www.kanunu8.com/files/chinese/201102/1778.html http://www.kanunu8.com/files/chinese/201102/1766.html http://www.kanunu8.com/files/chinese/201102/1779.html http://www.kanunu8.com/files/chi...
[ 6738, 3108, 8019, 1330, 10644, 198, 6738, 427, 84, 13, 27541, 403, 84, 1330, 787, 62, 16497, 628, 198, 6371, 82, 796, 37227, 198, 4023, 1378, 2503, 13, 27541, 403, 84, 23, 13, 785, 14, 16624, 14, 354, 3762, 14, 1264, 15377, 14, 15...
2.2875
320
import json import tempfile import uuid import mock import pytest from decimal import Decimal from tests.acceptance import query_json_file, query_parquet_file, download_and_decrypt pytestmark = [ pytest.mark.acceptance, pytest.mark.jobs, pytest.mark.usefixtures("empty_jobs"), ] @pytest.mark.auth @pytes...
[ 11748, 33918, 198, 11748, 20218, 7753, 198, 11748, 334, 27112, 198, 198, 11748, 15290, 198, 11748, 12972, 9288, 198, 6738, 32465, 1330, 4280, 4402, 198, 198, 6738, 5254, 13, 13635, 590, 1330, 12405, 62, 17752, 62, 7753, 11, 12405, 62, 1...
2.551913
183
import requests from bs4 import BeautifulSoup NO_INFORMATION = 'Sorry, no info about the next episode of {} is available yet.' SHOW_FINISHED = 'The show has finished streaming all its episodes. (No further information available)' WRONG_SHOW_NAME = '**ERROR** The TV Show name you entered is not correct.' DATES_FOUND ...
[ 11748, 7007, 198, 198, 6738, 275, 82, 19, 1330, 23762, 50, 10486, 628, 198, 15285, 62, 1268, 35036, 796, 705, 14385, 11, 645, 7508, 546, 262, 1306, 4471, 286, 23884, 318, 1695, 1865, 2637, 198, 9693, 3913, 62, 20032, 18422, 1961, 796,...
3.435897
117
pkgname = "perl" pkgver = "5.34.0" pkgrel = 0 _perl_cross_ver = "1.3.6" build_style = "gnu_configure" make_cmd = "gmake" make_check_target = "test" hostmakedepends = ["gmake", "less"] makedepends = ["zlib-devel", "libbz2-devel"] checkdepends = ["iana-etc", "perl-AnyEvent", "perl-Test-Pod", "procps-ng"] depends = ["less...
[ 35339, 3672, 796, 366, 525, 75, 1, 198, 35339, 332, 796, 366, 20, 13, 2682, 13, 15, 1, 198, 35339, 2411, 796, 657, 198, 62, 525, 75, 62, 19692, 62, 332, 796, 366, 16, 13, 18, 13, 21, 1, 198, 11249, 62, 7635, 796, 366, 41791, ...
2.113594
537
import random print('''Which type of e-mail you want? --> G-mail(g) OR --> Ramdom email(r)''') value1="qwertyuiopasdfghjklzxcvbnm" e1=random.choice(value1) e2=random.choice(value1) e3=random.choice(value1) e4=random.choice(value1) e5=random.choice(value1) a=input() if a=='r': ...
[ 11748, 4738, 201, 198, 4798, 7, 7061, 6, 13828, 2099, 286, 304, 12, 4529, 345, 765, 30, 201, 198, 220, 220, 220, 220, 220, 220, 220, 14610, 402, 12, 4529, 7, 70, 8, 201, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2...
1.711744
281
from django import forms from django.contrib.auth.forms import (AuthenticationForm, PasswordChangeForm, ReadOnlyPasswordHashField) from django.db.models import Q from .models import User, UserFaceImage from .utils import base64_file from accounts.models import Profile from PIL im...
[ 6738, 42625, 14208, 1330, 5107, 198, 6738, 42625, 14208, 13, 3642, 822, 13, 18439, 13, 23914, 1330, 357, 47649, 3299, 8479, 11, 30275, 19400, 8479, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, ...
3.274272
412
"""Author: Brandon Trabucco, Copyright 2019""" import tensorflow as tf from abc import ABC from mineral.distributions.gaussians.gaussian import Gaussian
[ 37811, 13838, 25, 14328, 833, 397, 18863, 78, 11, 15069, 13130, 37811, 201, 198, 201, 198, 201, 198, 11748, 11192, 273, 11125, 355, 48700, 201, 198, 6738, 450, 66, 1330, 9738, 201, 198, 6738, 18352, 13, 17080, 2455, 507, 13, 4908, 104...
3.075472
53
import pytest import json import sys from subprocess import check_output from tests import PROJECT_DIR, TESTDATA MYTH = str(PROJECT_DIR / "myth") test_data = ( ( "flag_array.sol.o", { "TX_COUNT": 1, "TX_OUTPUT": 1, "MODULE": "EtherThief", "ISSUE_COUN...
[ 11748, 12972, 9288, 198, 11748, 33918, 198, 11748, 25064, 198, 198, 6738, 850, 14681, 1330, 2198, 62, 22915, 198, 6738, 5254, 1330, 21965, 23680, 62, 34720, 11, 43001, 26947, 198, 198, 26708, 4221, 796, 965, 7, 31190, 23680, 62, 34720, ...
1.828571
420
from .Module import *
[ 6738, 764, 26796, 1330, 1635, 198 ]
3.666667
6
# Copyright 2014 Hewlett-Packard # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writ...
[ 2, 15069, 1946, 30446, 15503, 12, 11869, 446, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 345, 743, 198, 2, 407, 779, 428, 2393, 2845, 287, 11846, 351, 262, 13789, 13, 921, ...
3.733333
180
''' module for scraping Livetracklist Page and give an Iterable ''' from typing import Iterable from bs4 import BeautifulSoup import requests class Livetracklist: ''' Livetracklist.com Scraper ''' def tracklist(self) -> Iterable: ''' livetracklist.com scraper get tracklist in t...
[ 7061, 6, 198, 21412, 329, 46743, 7547, 11659, 4868, 7873, 290, 1577, 281, 40806, 540, 198, 7061, 6, 198, 6738, 19720, 1330, 40806, 540, 198, 6738, 275, 82, 19, 1330, 23762, 50, 10486, 198, 11748, 7007, 198, 198, 4871, 7547, 11659, 486...
2.467914
374
# Copyright 2013 Red Hat, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agr...
[ 198, 2, 15069, 2211, 2297, 10983, 11, 3457, 13, 198, 2, 198, 2, 220, 220, 220, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 345, 743, 198, 2, 220, 220, 220, 407, 779, 428, 2393, 2845, 287, ...
2.959248
319
#!/usr/bin/env python3 import unittest import os import glob from python_utils import import_vars, set_env_var, print_input_args, \ print_info_msg, print_err_msg_exit, create_symlink_to_file, \ define_macos_utilities, check_var_valid_value, \ ...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 198, 11748, 555, 715, 395, 198, 11748, 28686, 198, 11748, 15095, 198, 198, 6738, 21015, 62, 26791, 1330, 1330, 62, 85, 945, 11, 900, 62, 24330, 62, 7785, 11, 3601, 62, 15414, 62,...
2.453686
6,661
my_first_square = StarSquare(7) my_first_square.print() my_first_square.change_n(5) my_first_square.print() my_second_square = StarSquare(2) my_second_square.print()
[ 198, 1820, 62, 11085, 62, 23415, 796, 2907, 48011, 7, 22, 8, 198, 1820, 62, 11085, 62, 23415, 13, 4798, 3419, 198, 1820, 62, 11085, 62, 23415, 13, 3803, 62, 77, 7, 20, 8, 198, 1820, 62, 11085, 62, 23415, 13, 4798, 3419, 198, 198...
2.569231
65
import numpy as np import matplotlib.pyplot as plt import matplotlib.patches as mp from skimage.filter.rank import entropy,otsu from skimage.filter import threshold_otsu from skimage.morphology import square,rectangle,label,closing,disk,binary_erosion,opening from skimage.color import label2rgb,rgb2gray from skimage.se...
[ 11748, 299, 32152, 355, 45941, 198, 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 198, 11748, 2603, 29487, 8019, 13, 8071, 2052, 355, 29034, 198, 6738, 1341, 9060, 13, 24455, 13, 43027, 1330, 40709, 11, 1747, 84, 198, 6738, ...
2.386768
393
# # def arista.avd.add_md_toc # from __future__ import (absolute_import, division, print_function) __metaclass__ = type from jinja2.runtime import Undefined from io import StringIO import sys import re try: import md_toc HAS_MD_TOC = True except ImportError: HAS_MD_TOC = False def add_md_toc(md_input, sk...
[ 2, 198, 2, 825, 610, 12523, 13, 615, 67, 13, 2860, 62, 9132, 62, 40301, 198, 2, 198, 6738, 11593, 37443, 834, 1330, 357, 48546, 62, 11748, 11, 7297, 11, 3601, 62, 8818, 8, 198, 834, 4164, 330, 31172, 834, 796, 2099, 198, 198, 67...
2.401628
737
import shutil import sys import os num_copies = int(sys.argv[1]) original_dir = sys.argv[2] pack_filename = sys.argv[3] for i in range(num_copies): shutil.copy2(original_dir + pack_filename + '.bin', original_dir+pack_filename + str(i) + '.bin' )
[ 11748, 4423, 346, 198, 11748, 25064, 198, 11748, 28686, 198, 198, 22510, 62, 22163, 444, 796, 493, 7, 17597, 13, 853, 85, 58, 16, 12962, 198, 14986, 62, 15908, 796, 25064, 13, 853, 85, 58, 17, 60, 198, 8002, 62, 34345, 796, 25064, ...
2.480769
104
import time from app import app, db, cache from app.models import Machine import app.utils as utils @cache.cached(timeout=3) # limit_time 为检测多久时间间隔内的机器 , offline_time 表示超过offline_time 时间,判断为失联
[ 11748, 640, 198, 6738, 598, 1330, 598, 11, 20613, 11, 12940, 198, 6738, 598, 13, 27530, 1330, 10850, 198, 11748, 598, 13, 26791, 355, 3384, 4487, 198, 31, 23870, 13, 66, 2317, 7, 48678, 28, 18, 8, 198, 2, 4179, 62, 2435, 220, 1031...
1.754545
110
#! /usr/bin/env python3 import numpy as np from cv2 import aruco # import matplotlib.pyplot as plt import csv from cv2 import cv2 if __name__ == "__main__": main()
[ 2, 0, 1220, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 11748, 299, 32152, 355, 45941, 198, 6738, 269, 85, 17, 1330, 610, 84, 1073, 198, 2, 1330, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 198, 11748, 269, 21370, 198, 6738, ...
2.418919
74
import threading from unittest import TestCase import multiprocessing import multiprocessing_utils
[ 11748, 4704, 278, 198, 6738, 555, 715, 395, 1330, 6208, 20448, 198, 198, 11748, 18540, 305, 919, 278, 198, 198, 11748, 18540, 305, 919, 278, 62, 26791, 628, 628 ]
3.586207
29
from social.backends.linkedin import LinkedinOAuth as LinkedinBackend, \ LinkedinOAuth2 as LinkedinOAuth2Backend
[ 6738, 1919, 13, 1891, 2412, 13, 25614, 259, 1330, 7502, 27152, 23621, 1071, 355, 7502, 27152, 7282, 437, 11, 3467, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, ...
2.112676
71
import paho.mqtt.client as mqtt mqttc = mqtt.Client("C1") mqttc.connect("test.mosquitto.org", 1883) mqttc.publish("topic/yourTopic", "Hello world") mqttc.loop(2)
[ 11748, 279, 17108, 13, 76, 80, 926, 13, 16366, 355, 285, 80, 926, 198, 198, 76, 80, 926, 66, 796, 285, 80, 926, 13, 11792, 7203, 34, 16, 4943, 198, 76, 80, 926, 66, 13, 8443, 7203, 9288, 13, 16785, 421, 37606, 13, 2398, 1600, ...
2.116883
77
#Script_json_maker_vulnerabilities_adder0.4 import json codecov="-" Branchcov="-" Vulnerability_detected="No" #Read from file Vulnerabilities_detected = [] #Vulnerabilities_detected = ",".join(Vulnerabilities_detected) File_path= "vuln_json.json"
[ 2, 7391, 62, 17752, 62, 10297, 62, 85, 5697, 5738, 62, 26676, 15, 13, 19, 198, 11748, 33918, 198, 198, 19815, 721, 709, 2625, 21215, 198, 33, 25642, 66, 709, 2625, 21215, 198, 53, 40920, 62, 15255, 11197, 2625, 2949, 1, 1303, 5569, ...
2.775281
89
import unittest from scrapers.journalscrapers import WileyScraper
[ 11748, 555, 715, 395, 198, 198, 6738, 15881, 364, 13, 73, 18408, 66, 2416, 364, 1330, 43424, 3351, 38545, 198 ]
3.35
20
import subprocess from py_buildsystem.common import logger
[ 11748, 850, 14681, 201, 198, 201, 198, 6738, 12972, 62, 11249, 10057, 13, 11321, 1330, 49706, 201, 198, 201, 198 ]
3.25
20
import expand_task_dict import make_tasks def expand_ros_task(taskdict, nav, name = '', index = None): """ Turn a task dict from params (or from tasks_from_wps) into a task object """ task = make_tasks.expand_task(taskdict, nav, name, index) return task
[ 11748, 4292, 62, 35943, 62, 11600, 198, 11748, 787, 62, 83, 6791, 628, 198, 4299, 4292, 62, 4951, 62, 35943, 7, 35943, 11600, 11, 6812, 11, 1438, 796, 705, 3256, 6376, 796, 6045, 2599, 198, 220, 220, 220, 37227, 198, 220, 220, 220, ...
2.701923
104
# Copyright 2013 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. from measurements import memory import page_sets from telemetry import benchmark @benchmark.Enabled('android') @benchmark.Disabled @benchmark.Disabled ...
[ 2, 15069, 2211, 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, 198, 6738,...
3.367816
174
import torch import torch.nn as nn from torch.autograd import Function import cupy from string import Template @cupy.util.memoize(for_each_device=True) CUDA_NUM_THREADS = 1024 Stream = namedtuple('Stream', ['ptr']) class RoI(Function): """ NOTE:only CUDA-compatible """
[ 11748, 28034, 198, 11748, 28034, 13, 20471, 355, 299, 77, 198, 6738, 28034, 13, 2306, 519, 6335, 1330, 15553, 198, 11748, 6508, 88, 198, 6738, 4731, 1330, 37350, 628, 198, 31, 25244, 88, 13, 22602, 13, 11883, 78, 1096, 7, 1640, 62, ...
2.71028
107
''' Directly manage the salt fileserver plugins ''' # Import salt libs import salt.fileserver def update(): ''' Execute an update for all of the configured fileserver backends ''' fileserver = salt.fileserver.Fileserver(__opts__) fileserver.update()
[ 7061, 6, 198, 13470, 306, 6687, 262, 8268, 3696, 18497, 20652, 198, 7061, 6, 198, 198, 2, 17267, 8268, 9195, 82, 198, 11748, 8268, 13, 16624, 18497, 628, 198, 4299, 4296, 33529, 198, 220, 220, 220, 705, 7061, 198, 220, 220, 220, 839...
3
91
import asyncio from math import ceil import discord from discord import Colour from discord.ext import commands from classes.classic_solver import ClassicSolver from classes.repeat_solver import RepeatSolver from classes.detective_solver import DetectiveSolver from classes.custom_solver import CustomSolver from class...
[ 11748, 30351, 952, 198, 6738, 10688, 1330, 2906, 346, 198, 198, 11748, 36446, 198, 6738, 36446, 1330, 38773, 198, 6738, 36446, 13, 2302, 1330, 9729, 198, 198, 6738, 6097, 13, 49421, 62, 82, 14375, 1330, 13449, 50, 14375, 198, 6738, 6097...
4.103448
87
"maths director class that aggregates the course builder" from course_factory.course_builder import CourseBuilder class MathsDirector: "maths director class" @staticmethod
[ 1, 11018, 82, 3437, 1398, 326, 13262, 689, 262, 1781, 27098, 1, 198, 198, 6738, 1781, 62, 69, 9548, 13, 17319, 62, 38272, 1330, 20537, 32875, 628, 198, 4871, 16320, 82, 28702, 25, 198, 220, 220, 220, 366, 11018, 82, 3437, 1398, 1, ...
3.4
55
# -*- coding:utf8 -*- # ============================================================================== # Copyright 2017 Baidu.com, Inc. All Rights Reserved # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of th...
[ 2, 532, 9, 12, 19617, 25, 40477, 23, 532, 9, 12, 198, 2, 38093, 25609, 28, 198, 2, 15069, 2177, 347, 1698, 84, 13, 785, 11, 3457, 13, 1439, 6923, 33876, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 35...
2.318571
1,400
#!/usr/bin/env python """ This module implements a version of pymatgen's Transmuter to generate TransformedStructures from DB data sources. They enable the high-throughput generation of new structures and input files. """ from __future__ import division __author__ = "Shyue Ping Ong" __copyright__ = "Copyright 2012,...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 198, 37811, 198, 1212, 8265, 23986, 257, 2196, 286, 279, 4948, 265, 5235, 338, 3602, 76, 11894, 284, 7716, 198, 8291, 12214, 44909, 942, 422, 20137, 1366, 4237, 13, 1119, 7139, 262, 19...
2.34898
980
from django import template from blog.models import Post, Category, Comment register = template.Library() @register.simple_tag @register.simple_tag(name='counter') @register.simple_tag(name='comment_count') @register.simple_tag @register.filter @register.inclusion_tag('blog/blog-latestposts.html') ...
[ 6738, 42625, 14208, 1330, 11055, 198, 6738, 4130, 13, 27530, 1330, 2947, 11, 21743, 11, 18957, 628, 198, 30238, 796, 11055, 13, 23377, 3419, 198, 198, 31, 30238, 13, 36439, 62, 12985, 628, 198, 31, 30238, 13, 36439, 62, 12985, 7, 3672...
3.169118
136
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations, models
[ 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, 15720, 602, 11, 4981, 628 ]
2.891892
37
# # cogs/navi/task/factory.py # # futaba - A Discord Mod bot for the Programming server # Copyright (c) 2017-2020 Jake Richardson, Ammon Smith, jackylam5 # # futaba is available free of charge under the terms of the MIT # License. You are free to redistribute and/or modify it under those # terms. It is distributed in t...
[ 2, 198, 2, 269, 18463, 14, 77, 15820, 14, 35943, 14, 69, 9548, 13, 9078, 198, 2, 198, 2, 13294, 15498, 532, 317, 39462, 3401, 10214, 329, 262, 30297, 4382, 198, 2, 15069, 357, 66, 8, 2177, 12, 42334, 14757, 21679, 11, 1703, 2144, ...
3.184211
342
from django.http import HttpRequest, HttpResponse from typing import List, Union from zerver.decorator import has_request_variables, REQ from zerver.lib.actions import check_send_typing_notification, \ extract_recipients from zerver.lib.response import json_success from zerver.models import UserProfile @has_reque...
[ 6738, 42625, 14208, 13, 4023, 1330, 367, 29281, 18453, 11, 367, 29281, 31077, 198, 6738, 19720, 1330, 7343, 11, 4479, 198, 198, 6738, 1976, 18497, 13, 12501, 273, 1352, 1330, 468, 62, 25927, 62, 25641, 2977, 11, 4526, 48, 198, 6738, 1...
3.363636
99
import itertools maxCount = 0 per = None set = set() for permutation in itertools.combinations([1,2,3,4,5,6,7,8,9], 4): permutation = list(permutation) set.clear() generate([False, False, False, False, True, True, True], 0, "", permutation[:]) generate([False, False, False, True, False, True, True], ...
[ 11748, 340, 861, 10141, 628, 198, 9806, 12332, 796, 657, 198, 525, 796, 6045, 198, 2617, 796, 900, 3419, 198, 198, 1640, 9943, 7094, 287, 340, 861, 10141, 13, 24011, 7352, 26933, 16, 11, 17, 11, 18, 11, 19, 11, 20, 11, 21, 11, 2...
2.266816
446
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # File : dataloader.py # Author : Chi Han, Jiayuan Mao # Email : haanchi@gmail.com, maojiayuan@gmail.com # Date : 23.07.2019 # Last Modified Date: 19.11.2019 # Last Modified By : Chi Han # # This file is part of the VCML co...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 9220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1058, 4818, 282, 1170, 263, 13, 9078,...
2.278409
176
"""Copyright 2020 Google LLC Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at https://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distr...
[ 37811, 15269, 12131, 3012, 11419, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 345, 743, 407, 779, 428, 2393, 2845, 287, 11846, 351, 262, 13789, 13, 198, 198, 1639, 743, 7330, 257, 4866, 286, 26...
3.318634
703
# Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed unde...
[ 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 345, 743, 198, 2, 407, 779, 428, 2393, 2845, 287, 11846, 351, 262, 13789, 13, 921, 743, 7330, 198, 2, 257, 4866, 286, 262, 13789, 379, 198, 2,...
3.654008
237
import pyexasol import time from influxdb import InfluxDBClient # Settings section ############################################################################### # InfluxDB connection influx_db = { 'host': '127.0.0.1', 'port': '8086', 'user': 'root', 'pass': 'root', 'db' : 'pyexamon...
[ 11748, 12972, 1069, 292, 349, 201, 198, 11748, 640, 201, 198, 6738, 25065, 9945, 1330, 4806, 22564, 11012, 11792, 201, 198, 201, 198, 2, 16163, 2665, 201, 198, 29113, 29113, 7804, 4242, 21017, 201, 198, 201, 198, 2, 4806, 22564, 11012, ...
2.3031
871
from setuptools import setup, find_packages with open("README.md", "r") as fh: long_description = fh.read() setup( name="nyumytimecli", version="0.0.4", author="Matteo Sandrin", long_description=long_description, long_description_content_type="text/markdown", description="A command-line interface for NY...
[ 6738, 900, 37623, 10141, 1330, 9058, 11, 1064, 62, 43789, 628, 198, 4480, 1280, 7203, 15675, 11682, 13, 9132, 1600, 366, 81, 4943, 355, 277, 71, 25, 198, 220, 220, 220, 890, 62, 11213, 796, 277, 71, 13, 961, 3419, 198, 198, 40406, ...
2.656126
253
# Standard Imports # 3rd Party Imports import discord from discord.ext import commands # Custom Imports from database import Database from finance import Finances
[ 2, 8997, 1846, 3742, 198, 198, 2, 513, 4372, 3615, 1846, 3742, 198, 11748, 36446, 198, 6738, 36446, 13, 2302, 1330, 9729, 198, 198, 2, 8562, 1846, 3742, 198, 6738, 6831, 1330, 24047, 198, 6738, 9604, 1330, 4463, 1817, 198 ]
4.125
40