content
stringlengths
1
1.04M
input_ids
listlengths
1
774k
ratio_char_token
float64
0.38
22.9
token_count
int64
1
774k
# -*- coding: utf-8 -*- # Note that this files starts with a '_' so that it's always on top of the order # of loadings (preventing circular imports) class NeuroKitWarning(RuntimeWarning): """Category for runtime warnings that occur within the NeuroKit library."""
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 2, 5740, 326, 428, 3696, 4940, 351, 257, 705, 62, 6, 523, 326, 340, 338, 1464, 319, 1353, 286, 262, 1502, 198, 2, 286, 3440, 654, 357, 3866, 1151, 278, 18620, ...
3.519481
77
# -*-coding:utf-8-*- # @File : 2021/8/4 下午4:26 # @Author : Rosetta0 # @File : 5.3_channels.py import torch from d2l import torch as d2l #多通道输入互相关运算 #多通道输入、输出 #1 * 1卷积(利用全连接实现) if __name__ == "__main__": #多输入单输出 X = torch.tensor([[[0.0, 1.0, 2.0], [3.0, 4.0, 5.0], [6.0, 7.0, 8.0]], ...
[ 2, 532, 9, 12, 66, 7656, 25, 40477, 12, 23, 12, 9, 12, 198, 2, 2488, 8979, 220, 220, 220, 220, 1058, 220, 220, 33448, 14, 23, 14, 19, 220, 10310, 233, 39355, 230, 19, 25, 2075, 198, 2, 2488, 13838, 220, 220, 1058, 220, 220, ...
1.4494
583
from setuptools import setup, find_packages import os DESCRIPTION = """ MEANS: python package for Moment Expansion Approximation, iNference and Simulation A free, user-friendly tool implementing an efficient moment expansion approximation with parametric closures that integrates well with the IPython interactive envi...
[ 6738, 900, 37623, 10141, 1330, 9058, 11, 1064, 62, 43789, 198, 11748, 28686, 198, 198, 30910, 40165, 796, 37227, 198, 11682, 15037, 25, 21015, 5301, 329, 29278, 25042, 2034, 13907, 18991, 11, 1312, 45, 4288, 290, 41798, 198, 198, 32, 14...
3.14267
764
from twisted.internet.defer import DeferredLock as _Lock
[ 6738, 19074, 13, 37675, 13, 4299, 263, 1330, 2896, 17436, 25392, 355, 4808, 25392, 628 ]
3.866667
15
import matplotlib.pyplot as plt import pandas as pd import numpy as np import os from os import path import re from .plots import experiment_VI_plots, VI_plot, plot_experiment_APs, plot_experiment_no_diff import pandas as pd from skimage.measure import regionprops from skimage.metrics import variation_of_information i...
[ 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 198, 11748, 19798, 292, 355, 279, 67, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 28686, 198, 6738, 28686, 1330, 3108, 198, 11748, 302, 198, 6738, 764, 489, 1747, 1330, 6306, ...
2.508341
1,139
import pandas as pd import os from django.contrib.staticfiles.storage import staticfiles_storage from django.conf import settings import json
[ 11748, 19798, 292, 355, 279, 67, 198, 198, 11748, 28686, 198, 6738, 42625, 14208, 13, 3642, 822, 13, 12708, 16624, 13, 35350, 1330, 9037, 16624, 62, 35350, 198, 198, 6738, 42625, 14208, 13, 10414, 1330, 6460, 628, 198, 11748, 33918, 628...
3.52381
42
from situations.situation import Situation from situations.situation_complex import SituationComplexCommon, CommonSituationState, SituationStateData
[ 6738, 7445, 13, 48937, 2288, 1330, 49465, 198, 6738, 7445, 13, 48937, 2288, 62, 41887, 1330, 49465, 5377, 11141, 17227, 11, 8070, 46655, 2288, 9012, 11, 49465, 9012, 6601, 198 ]
4.966667
30
#!/usr/bin/env python import sys from setuptools import setup from setuptools.command.test import test as TestCommand setup( name='shopy', version='0.0.1', packages=['shopy'], package_data={'shopy': ['LICENSE', 'README.md']}, url='https://github.com/MrLeeh/shopy', license='OSI Approved :: MIT...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 11748, 25064, 198, 6738, 900, 37623, 10141, 1330, 9058, 198, 6738, 900, 37623, 10141, 13, 21812, 13, 9288, 1330, 1332, 355, 6208, 21575, 628, 198, 198, 40406, 7, 198, 220, 220, 220, 14...
2.462312
398
__all__ = ['lob', 'roc', 'roc_results', 'model', 'gdf_pca']
[ 834, 439, 834, 796, 37250, 75, 672, 3256, 705, 12204, 3256, 705, 12204, 62, 43420, 3256, 705, 19849, 3256, 705, 70, 7568, 62, 79, 6888, 20520, 198 ]
2.222222
27
from random import Random from time import time import inspyred if __name__ == '__main__': prng = Random() prng.seed(time()) problem = inspyred.benchmarks.Rastrigin(2) ea = inspyred.ec.ES(prng) ea.observer = my_observer ea.terminator = inspyred.ec.terminators.evaluation_termination fi...
[ 6738, 4738, 1330, 14534, 198, 6738, 640, 1330, 640, 198, 11748, 1035, 9078, 445, 198, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 198, 220, 220, 220, 778, 782, 796, 14534, 3419, 198, 220, 220, 220, 778, 782, 13, 2...
1.966197
355
''' Created on Dec 21, 2013 @author: nkyrt ''' # from src.irbase import * # from src.isas.isabase import * # from src.isas.armv7 import * from sympy import sympify from src.irbase import RValue, VecAccess, VecDest, V, Pointer, AddressOf, Comment, MovStatement, Mov, sa from src.isas.isabase import ISA...
[ 7061, 6, 198, 220, 220, 220, 15622, 319, 4280, 2310, 11, 2211, 198, 220, 220, 220, 220, 198, 220, 220, 220, 2488, 9800, 25, 299, 74, 2417, 83, 198, 220, 220, 220, 705, 7061, 198, 2, 422, 12351, 13, 343, 8692, 1330, 1635, 198, 2,...
2.549418
6,354
from urllib import request from urllib.parse import urljoin from bs4 import BeautifulSoup from dotFoods.celery import app from dotFoods import settings from wikiboto.utils import \ url_name_of, \ url_name_of_cat,\ LINK_FILTERS, \ bs_preprocess, \ can_access from wikipage.models import \ WikiL...
[ 6738, 2956, 297, 571, 1330, 2581, 198, 6738, 2956, 297, 571, 13, 29572, 1330, 19016, 22179, 198, 6738, 275, 82, 19, 1330, 23762, 50, 10486, 198, 198, 6738, 16605, 24602, 82, 13, 7015, 88, 1330, 598, 198, 6738, 16605, 24602, 82, 1330, ...
2.545064
233
""" Router for Config routes """ import subprocess import tarfile from fnmatch import fnmatch from hashlib import sha256 from io import BytesIO from os import DirEntry, scandir from typing import Any, Dict, List, Optional, Set from fastapi import APIRouter, Body, File, status from fastapi.datastructures import Upload...
[ 37811, 198, 49, 39605, 329, 17056, 11926, 198, 37811, 198, 198, 11748, 850, 14681, 198, 11748, 13422, 7753, 198, 6738, 24714, 15699, 1330, 24714, 15699, 198, 6738, 12234, 8019, 1330, 427, 64, 11645, 198, 6738, 33245, 1330, 2750, 4879, 939...
2.330998
2,855
# File: dataset.py # import torch from torch.utils.data import dataset from mechamodlearn.odesolver import odeint, ActuatedODEWrapper from mechamodlearn import utils
[ 2, 9220, 25, 27039, 13, 9078, 198, 2, 198, 11748, 28034, 198, 198, 6738, 28034, 13, 26791, 13, 7890, 1330, 27039, 198, 198, 6738, 36571, 321, 375, 35720, 13, 4147, 14375, 1330, 267, 2934, 600, 11, 2191, 6605, 3727, 6217, 430, 2848, ...
3.207547
53
import csv import sklearn import util
[ 11748, 269, 21370, 198, 11748, 1341, 35720, 198, 11748, 7736, 628 ]
3.545455
11
# -*- coding: utf-8 -*- """Interface module to dtw-python package. Exposes basic interface, excluding multivariate case. """ __author__ = ["fkiraly"] import numpy as np import pandas as pd from sklearn import clone from sktime.alignment.base import BaseAligner from sktime.utils.validation._dependencies import _chec...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 39317, 8265, 284, 288, 4246, 12, 29412, 5301, 13, 198, 198, 3109, 4832, 4096, 7071, 11, 23494, 1963, 42524, 1339, 13, 198, 37811, 198, 198, 834, 9800, 834, 796, ...
2.481459
4,854
# Copyright 2018 The Fuchsia Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. # DO NOT MANUALLY EDIT! # Generated by //scripts/sdk/bazel/generate.py. load("@io_bazel_rules_dart//dart/build_rules/internal:pub.bzl", "pub_repository")
[ 2, 15069, 2864, 383, 376, 37533, 544, 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, ...
2.971963
107
# Generated by Django 3.0.7 on 2020-07-16 16:33 from django.conf import settings from django.db import migrations, models import django.db.models.deletion
[ 2, 2980, 515, 416, 37770, 513, 13, 15, 13, 22, 319, 12131, 12, 2998, 12, 1433, 1467, 25, 2091, 198, 198, 6738, 42625, 14208, 13, 10414, 1330, 6460, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 11, 4981, 198, 11748, 42625, 14...
3.019231
52
from spacepy.pybats import PbData import math import numpy as np import matplotlib.pyplot as plt # from mayavi import mlab __author__ = 'artem' import Parameters import Utils params = Parameters.Parameters
[ 6738, 34752, 538, 88, 13, 9078, 50199, 1330, 350, 65, 6601, 198, 11748, 10688, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 198, 198, 2, 422, 743, 15820, 1330, 285, 23912, 198, 198,...
3.19697
66
#========================================================== # # This prepare the hdf5 datasets of the DRIVE database # #============================================================ import os import h5py import numpy as np from PIL import Image #content/add2/E2/DRIVE_datasets_training_testing #------------Path of t...
[ 2, 10052, 4770, 2559, 855, 198, 2, 198, 2, 220, 770, 8335, 262, 289, 7568, 20, 40522, 286, 262, 10560, 9306, 6831, 198, 2, 198, 2, 10052, 4770, 25609, 198, 198, 11748, 28686, 198, 11748, 289, 20, 9078, 198, 11748, 299, 32152, 355, ...
2.921899
653
import os import six import torch import random import numbers import numpy as np import cv2 import math import scipy.io as scio import torch.utils.data as data from torchvision import transforms import torchvision.transforms.functional as tF import sys if sys.version_info[0] == 2: import cPickle ...
[ 11748, 28686, 201, 198, 11748, 2237, 201, 198, 11748, 28034, 201, 198, 11748, 4738, 201, 198, 11748, 3146, 201, 198, 11748, 299, 32152, 355, 45941, 201, 198, 11748, 269, 85, 17, 201, 198, 11748, 10688, 201, 198, 11748, 629, 541, 88, 1...
2.738806
134
import numpy as np import argparse import os os.environ["KERAS_BACKEND"]="tensorflow" import importlib.machinery import re from mimic3benchmark.util import * from mimic3models.readmission import utils from mimic3benchmark.readers import ReadmissionReader from mimic3models.preprocessing import Discretizer, Normalize...
[ 11748, 299, 32152, 355, 45941, 198, 11748, 1822, 29572, 198, 11748, 28686, 198, 418, 13, 268, 2268, 14692, 42839, 1921, 62, 31098, 10619, 8973, 2625, 83, 22854, 11125, 1, 198, 198, 11748, 1330, 8019, 13, 76, 620, 15451, 198, 11748, 302,...
2.237653
3,766
import shutil import sys import os from unittest import mock import pytest from stograde.common import chdir from stograde.toolkit.__main__ import main if os.getenv('SKIP_E2E') is not None: pytest.skip('Skipping Integration Tests', allow_module_level=True) _dir = os.path.dirname(os.path.realpath(__file__)) ci_a...
[ 11748, 4423, 346, 198, 11748, 25064, 198, 11748, 28686, 198, 6738, 555, 715, 395, 1330, 15290, 198, 198, 11748, 12972, 9288, 198, 198, 6738, 336, 519, 27585, 13, 11321, 1330, 442, 15908, 198, 6738, 336, 519, 27585, 13, 25981, 15813, 13,...
2.321678
858
__author__ = 'Alexander Gorkun' __email__ = 'mindkilleralexs@gmail.com' import json import base64 from django import shortcuts from django import http from django.contrib.auth.decorators import permission_required from xanderhorkunspider.web.websites import models from xanderhorkunspider.web.websites import forms fr...
[ 834, 9800, 834, 796, 705, 38708, 49882, 403, 6, 198, 834, 12888, 834, 796, 705, 10155, 32156, 1000, 34223, 31, 14816, 13, 785, 6, 198, 198, 11748, 33918, 198, 11748, 2779, 2414, 198, 198, 6738, 42625, 14208, 1330, 32953, 198, 6738, 42...
2.462224
3,256
import argparse import torch import yaml from termcolor import colored from utils.common_config import get_val_dataset, get_val_transformations, get_val_dataloader,\ get_model from utils.evaluate_utils import get_predictions, hungarian_evaluate from utils.memory import MemoryBank from u...
[ 11748, 1822, 29572, 198, 11748, 28034, 198, 11748, 331, 43695, 198, 6738, 3381, 8043, 1330, 16396, 198, 6738, 3384, 4487, 13, 11321, 62, 11250, 1330, 651, 62, 2100, 62, 19608, 292, 316, 11, 651, 62, 2100, 62, 35636, 602, 11, 651, 62, ...
2.815972
288
from __future__ import unicode_literals import requests import youtube_dl from googleapiclient.discovery import build import google.auth from simple_youtube_api.Channel import Channel from simple_youtube_api.LocalVideo import LocalVideo import urllib.request import os import time from datetime import datetime...
[ 6738, 11593, 37443, 834, 1330, 28000, 1098, 62, 17201, 874, 201, 198, 11748, 7007, 201, 198, 11748, 35116, 62, 25404, 201, 198, 6738, 23645, 499, 291, 75, 1153, 13, 67, 40821, 1330, 1382, 201, 198, 11748, 23645, 13, 18439, 201, 198, 6...
2.625436
574
import re from typing import List from django.contrib.auth.models import User from django.contrib.auth.tokens import PasswordResetTokenGenerator from django.core.mail import EmailMultiAlternatives from django.urls import reverse from django.utils.encoding import force_bytes from django.utils.http import urlsafe_base64...
[ 11748, 302, 198, 6738, 19720, 1330, 7343, 198, 198, 6738, 42625, 14208, 13, 3642, 822, 13, 18439, 13, 27530, 1330, 11787, 198, 6738, 42625, 14208, 13, 3642, 822, 13, 18439, 13, 83, 482, 641, 1330, 30275, 4965, 316, 30642, 8645, 1352, ...
3.113208
159
"""Tests for my functions. """ from my_module.functions import zodiac_function, zodiac_horoscope, zodiac_compatibility #Tests to make sure proper zodiac sign assigned.
[ 37811, 51, 3558, 329, 616, 5499, 13, 198, 37811, 198, 198, 6738, 616, 62, 21412, 13, 12543, 2733, 1330, 1976, 40096, 62, 8818, 11, 1976, 40096, 62, 17899, 40326, 11, 1976, 40096, 62, 5589, 25901, 628, 198, 2, 51, 3558, 284, 787, 165...
3.392157
51
import io from .STDFRecordTest import STDFRecordTest from Semi_ATE.STDF import PMR # Pin Map Record # Function: # Provides indexing of tester channel names, and maps them to physical and # logical pinnames. EachPMRdefines the information for a single channel/pin # combination. # ToDo: Test JSON output
[ 11748, 33245, 198, 198, 6738, 764, 2257, 8068, 23739, 14402, 1330, 3563, 8068, 23739, 14402, 198, 6738, 35525, 62, 6158, 13, 2257, 8068, 1330, 3122, 49, 198, 198, 2, 220, 220, 13727, 9347, 13266, 198, 2, 220, 220, 15553, 25, 198, 2, ...
3.168317
101
from typing import Dict, Tuple, List, AnyStr from xml.etree.ElementTree import Element from defusedxml import ElementTree as ET from mhs_common.messages.ebxml_envelope import NAMESPACES as NS, EBXML_NAMESPACE as EBXML_PREFIX ERROR_LIST = 'ErrorList' ERROR = 'Error' ERR_CODE_CTX = 'codeContext' ERR_CODE = 'errorCode'...
[ 6738, 19720, 1330, 360, 713, 11, 309, 29291, 11, 7343, 11, 4377, 13290, 198, 6738, 35555, 13, 316, 631, 13, 20180, 27660, 1330, 11703, 198, 198, 6738, 825, 1484, 19875, 1330, 11703, 27660, 355, 12152, 198, 198, 6738, 285, 11994, 62, 1...
2.664286
140
from ptrlib import * import re import time libc = ELF("./libc-2.27.so") sock = Process("./babylist")#Socket("localhost", 4001) #sock = Socket("challenges3.fbctf.com", 1343) main_arena = 0x3ebc40 + 0x60 one_gadget = 0x10a38c create("0") # 0 for i in range(0x50 // 4): add(0, 0x1111) dup(0, "1") # 1 for i in range(0...
[ 6738, 50116, 8019, 1330, 1635, 198, 11748, 302, 198, 11748, 640, 198, 198, 8019, 66, 796, 17852, 37, 7, 1911, 14, 8019, 66, 12, 17, 13, 1983, 13, 568, 4943, 198, 82, 735, 796, 10854, 7, 1911, 14, 65, 397, 2645, 396, 4943, 2, 391...
2.123355
608
from typing import List from engine.engine import Engine from player.player import Player from tetris.tetris import Tetris from tetris.tetris import GameState from tetris.block import BlockFactory ANALYTIC_BASE = 500
[ 6738, 19720, 1330, 7343, 198, 198, 6738, 3113, 13, 18392, 1330, 7117, 198, 6738, 2137, 13, 7829, 1330, 7853, 198, 6738, 28408, 2442, 13, 83, 316, 2442, 1330, 27351, 2442, 198, 6738, 28408, 2442, 13, 83, 316, 2442, 1330, 3776, 9012, 19...
3.453125
64
# -*- coding: utf-8 -*- """Routines for interpreting data from the IAU Minor Planet Center.""" import pandas as pd MPCORB_URL = 'https://www.minorplanetcenter.net/iau/MPCORB/MPCORB.DAT.gz' _MPCORB_COLUMNS = [ ('designation', (0, 7)), ('magnitude_H', (8, 13)), ('magnitude_G', (14, 19)), ('epoch_packed...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 49, 448, 1127, 329, 35391, 1366, 422, 262, 314, 26830, 15367, 11397, 3337, 526, 15931, 198, 198, 11748, 19798, 292, 355, 279, 67, 198, 198, 44, 5662, 1581, 33, ...
2.377108
1,957
# Qual seria o valor acumulado em 7, 8 e 9 anos? E se eu investir R$2.000, # R$10.000 e R$100.000? # # Lembrete: rendimento de 0,469% ao mês # Sugestão: use variáveis para os valores que mudam interest_rate_month = 0.469 / 100 amount = 1000 time_year = 7 print(amount * (1 + interest_rate_month) ** (time_year * 12)) ...
[ 2, 9537, 1055, 544, 267, 1188, 273, 936, 388, 377, 4533, 795, 767, 11, 807, 304, 860, 281, 418, 30, 412, 384, 304, 84, 1325, 343, 371, 3, 17, 13, 830, 11, 198, 2, 371, 3, 940, 13, 830, 304, 371, 3, 3064, 13, 830, 30, 198, ...
2.599265
272
import re if __name__ == '__main__': with open('V:\Dropbox\Books\Stars and Sand\Draft 02\ch01 The Pump.rtf', 'r') as infile: content = infile.read() content = content.strip() lines = content.splitlines() html = '<html>\n<body>\n' for line in lines: if line.startswith('{') or line....
[ 11748, 302, 628, 198, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 198, 220, 220, 220, 351, 1280, 10786, 53, 7479, 26932, 3524, 59, 30650, 59, 29366, 290, 3837, 59, 37741, 7816, 59, 354, 486, 383, 23220, 13, 17034, ...
2.007899
633
#!/usr/bin/env python import sys # Please edit under line to point the site-packages directory where `MySQLdb` installed sys.path.append('/usr/lib64/python2.7/site-packages') import time import requests import MySQLdb from checks import AgentCheck from hashlib import md5 SQL_TEMPLATE = """ SELECT item.value, item....
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 198, 11748, 25064, 198, 198, 2, 4222, 4370, 739, 1627, 284, 966, 262, 2524, 12, 43789, 8619, 810, 4600, 3666, 17861, 9945, 63, 6589, 198, 17597, 13, 6978, 13, 33295, 10786, 14, 14629, ...
2.676692
399
from train.loss.proxynca import ProxyNCALoss from train.loss.proxyanchor import ProxyAnchorLoss from train.loss.utils import orthogonality import tensorflow as tf import tensorflow_addons as tfa
[ 6738, 4512, 13, 22462, 13, 1676, 87, 2047, 6888, 1330, 38027, 7792, 1847, 793, 198, 6738, 4512, 13, 22462, 13, 36436, 3702, 273, 1330, 38027, 2025, 354, 273, 43, 793, 198, 6738, 4512, 13, 22462, 13, 26791, 1330, 29617, 519, 261, 1483,...
3.229508
61
import pytest from hypothesis import given, settings from hypothesis import strategies as st from vyper import ast as vy_ast variables = "abcdefghij" @pytest.mark.fuzzing @settings(max_examples=50, deadline=1000) @given(values=st.lists(st.booleans(), min_size=2, max_size=10)) @pytest.mark.parametrize("comparator", ...
[ 11748, 12972, 9288, 198, 6738, 14078, 1330, 1813, 11, 6460, 198, 6738, 14078, 1330, 10064, 355, 336, 198, 198, 6738, 410, 88, 525, 1330, 6468, 355, 410, 88, 62, 459, 198, 198, 25641, 2977, 796, 366, 39305, 4299, 456, 2926, 1, 628, 1...
2.569444
216
import tkinter import json import books_api as books import sql import sqlite3 import misc_python from win32com.shell import shell, shellcon
[ 11748, 256, 74, 3849, 201, 198, 11748, 33918, 201, 198, 11748, 3835, 62, 15042, 355, 3835, 201, 198, 11748, 44161, 201, 198, 11748, 44161, 578, 18, 201, 198, 11748, 12747, 62, 29412, 201, 198, 6738, 1592, 2624, 785, 13, 29149, 1330, 7...
2.77193
57
""" Author Fengyao Yan/University of South Carolina All Rights Reserved """ from selenium import webdriver from selenium.webdriver import ActionChains from selenium.webdriver.common.by import By from selenium.webdriver.support.wait import WebDriverWait from selenium.webdriver.support import expected_conditions as exp ...
[ 37811, 198, 13838, 19426, 1360, 5488, 10642, 14, 21009, 286, 2520, 5913, 198, 3237, 6923, 33876, 198, 37811, 198, 198, 6738, 384, 11925, 1505, 1330, 3992, 26230, 198, 6738, 384, 11925, 1505, 13, 12384, 26230, 1330, 7561, 1925, 1299, 198, ...
1.950748
1,137
from can_tools.scrapers.official.TX.tx_state import Texas
[ 6738, 460, 62, 31391, 13, 1416, 2416, 364, 13, 16841, 13, 29551, 13, 17602, 62, 5219, 1330, 3936, 198 ]
3.052632
19
import torch import torch.nn.functional as F from sklearn.metrics import classification_report import argparse import albumentations as A from albumentations.pytorch import ToTensorV2 import os from cnn.dataset import Mit67Dataset import json from transfer.utils import load_model from transfer.models import TransferMod...
[ 11748, 28034, 198, 11748, 28034, 13, 20471, 13, 45124, 355, 376, 198, 6738, 1341, 35720, 13, 4164, 10466, 1330, 17923, 62, 13116, 198, 11748, 1822, 29572, 198, 11748, 435, 65, 1713, 602, 355, 317, 198, 6738, 435, 65, 1713, 602, 13, 90...
2.488667
1,103
# Generated by the protocol buffer compiler. DO NOT EDIT! # source: membership.proto from google.protobuf.internal import enum_type_wrapper from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection from google.protobuf i...
[ 2, 2980, 515, 416, 262, 8435, 11876, 17050, 13, 220, 8410, 5626, 48483, 0, 198, 2, 2723, 25, 9931, 13, 1676, 1462, 198, 198, 6738, 23645, 13, 11235, 672, 3046, 13, 32538, 1330, 33829, 62, 4906, 62, 48553, 198, 6738, 23645, 13, 11235...
2.269222
17,194
#!/usr/bin/env python # -*- coding: utf-8 -*- # vim: set expandtab tabstop=4 shiftwidth=4: # # xGDSImport.py - Import GDS into Xpedition # # (c) June 2016 - Mentor Graphics Corporation # # Mike Walsh - mike_walsh@mentor.com # # Mentor Graphics Corporation # 1001 Winstead Drive, Suite 380 # Cary, North Carolina...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 43907, 25, 900, 4292, 8658, 7400, 11338, 28, 19, 6482, 10394, 28, 19, 25, 198, 2, 198, 2, 220, 2124, 38, 5258, ...
2.914544
1,767
first_fun("Prabhdeep") first_fun(55) print("After return but before call") print("Cub of 3 is: " + str(cube(3)))
[ 198, 198, 11085, 62, 12543, 7203, 6836, 397, 71, 22089, 4943, 198, 11085, 62, 12543, 7, 2816, 8, 628, 198, 198, 4798, 7203, 3260, 1441, 475, 878, 869, 4943, 198, 198, 4798, 7203, 43632, 286, 513, 318, 25, 366, 1343, 965, 7, 40296, ...
2.531915
47
import uuid import zxcvbn_password.fields from django import forms from django.conf import settings from django.contrib.auth import forms as auth_forms, get_user_model from django.utils.translation import ugettext_lazy as _ from two_factor.utils import default_device from forsta_auth.exceptions import TwoFactorDisabl...
[ 11748, 334, 27112, 198, 198, 11748, 1976, 25306, 85, 9374, 62, 28712, 13, 25747, 198, 6738, 42625, 14208, 1330, 5107, 198, 6738, 42625, 14208, 13, 10414, 1330, 6460, 198, 6738, 42625, 14208, 13, 3642, 822, 13, 18439, 1330, 5107, 355, 62...
3.414414
111
# 1.解一元二次方程 # import math # a = float(input("请输入a的值:")) # b = float(input("请输入b的值:")) # c = float(input("请输入c的值:")) # p = float(b*b - 4 * a * c) # d = (-b + math.sqrt(p)) / (2 * a) # e = (-b - math.sqrt(p)) / (2 * a) # if p > 0: # print('x1 = (-%f + math.sqrt(%f)/(2*%f) = %f'%(b,p,a,d)) # print('x2 = ...
[ 2, 352, 13, 164, 100, 96, 31660, 17739, 225, 12859, 234, 162, 105, 94, 43095, 163, 101, 233, 201, 198, 2, 1330, 10688, 201, 198, 2, 257, 796, 12178, 7, 15414, 7203, 46237, 115, 164, 122, 241, 17739, 98, 64, 21410, 161, 222, 120, ...
1.476844
5,031
#%% import numpy as np import pandas as pd import csv import tensorflow as tf from data_utils import Data from keras.models import Model, load_model from keras.layers import Input, Dense, Flatten, Convolution1D, MaxPooling1D, Embedding, ThresholdedReLU, Dropout from keras.metrics import Precision, Recall from sklearn....
[ 2, 16626, 198, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 19798, 292, 355, 279, 67, 198, 11748, 269, 21370, 198, 11748, 11192, 273, 11125, 355, 48700, 198, 6738, 1366, 62, 26791, 1330, 6060, 198, 6738, 41927, 292, 13, 27530, 1330, ...
2.699062
1,492
# -*- coding: utf-8 -*- # See: # - https://docs.datadoghq.com/developers/write_agent_check/ import time import mock # the following try/except block will make the custom check compatible with any Agent version try: # first, try to import the base class from old versions of the Agent... from checks import ...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 2, 4091, 25, 198, 2, 220, 220, 532, 3740, 1378, 31628, 13, 19608, 4533, 456, 80, 13, 785, 14, 16244, 364, 14, 13564, 62, 25781, 62, 9122, 14, 198, 198, 11748, ...
3.352941
221
from django.conf.urls import patterns, include, url from django.contrib import admin from django.views.generic import TemplateView, RedirectView urlpatterns = patterns('', url(r'^admin/', include(admin.site.urls)), url(r'^api/v1/', include('tars.api.urls')), url(r'^(surface/)?', include("tars.surface.urls...
[ 6738, 42625, 14208, 13, 10414, 13, 6371, 82, 1330, 7572, 11, 2291, 11, 19016, 198, 6738, 42625, 14208, 13, 3642, 822, 1330, 13169, 198, 6738, 42625, 14208, 13, 33571, 13, 41357, 1330, 37350, 7680, 11, 2297, 1060, 7680, 628, 198, 6371, ...
2.165829
398
from django.urls import path from structure.views import * app_name = 'structure' urlpatterns = [ # TaskResult path('tasks/<pk>/revoke', PendingTaskDelete.as_view(), name='remove-task'), path('error-reports/<pk>', ErrorReportDetailView.as_view(), name='generate-error-report'), # MrMapGroups path(...
[ 6738, 42625, 14208, 13, 6371, 82, 1330, 3108, 198, 6738, 4645, 13, 33571, 1330, 1635, 198, 198, 1324, 62, 3672, 796, 705, 301, 5620, 6, 198, 6371, 33279, 82, 796, 685, 628, 220, 220, 220, 1303, 15941, 23004, 198, 220, 220, 220, 3108...
2.995062
810
import os import shutil import tempfile import pytest from mock import Mock, patch, mock_open from pip.exceptions import ( PreviousBuildDirError, InvalidWheelFilename, UnsupportedWheel, ) from pip.index import PackageFinder from pip.log import logger from pip.req import (InstallRequirement, RequirementSet, ...
[ 11748, 28686, 198, 11748, 4423, 346, 198, 11748, 20218, 7753, 198, 198, 11748, 12972, 9288, 198, 198, 6738, 15290, 1330, 44123, 11, 8529, 11, 15290, 62, 9654, 198, 6738, 7347, 13, 1069, 11755, 1330, 357, 198, 220, 220, 220, 21801, 15580...
2.3543
1,558
import elist.elist as elel import spaint.spaint as spaint
[ 11748, 1288, 396, 13, 46331, 355, 9766, 75, 198, 11748, 599, 2913, 13, 2777, 2913, 355, 599, 2913, 198 ]
3.052632
19
# Generated by Django 2.0.6 on 2018-06-27 21:45 from django.db import migrations, models import django.db.models.deletion
[ 2, 2980, 515, 416, 37770, 362, 13, 15, 13, 21, 319, 2864, 12, 3312, 12, 1983, 2310, 25, 2231, 198, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 11, 4981, 198, 11748, 42625, 14208, 13, 9945, 13, 27530, 13, 2934, 1616, 295, ...
2.818182
44
import gzip import os import pandas as pd import swiftclient from io import BytesIO, TextIOWrapper from retry import retry from bso.server.main.logger import get_logger logger = get_logger(__name__) SWIFT_SIZE = 10000 key = os.getenv('OS_PASSWORD') project_name = os.getenv('OS_PROJECT_NAME') project_id = os.getenv('...
[ 11748, 308, 13344, 198, 11748, 28686, 198, 11748, 19798, 292, 355, 279, 67, 198, 11748, 14622, 16366, 198, 198, 6738, 33245, 1330, 2750, 4879, 9399, 11, 8255, 40, 3913, 430, 2848, 198, 6738, 1005, 563, 1330, 1005, 563, 198, 198, 6738, ...
2.309302
430
# Copyright (C) 2014 Stefan C. Mueller import unittest from pydron.translation import utils from pydron.translation.deinterrupt import DeInterrupt
[ 2, 15069, 357, 34, 8, 1946, 28842, 327, 13, 17768, 198, 198, 11748, 555, 715, 395, 198, 198, 6738, 279, 5173, 1313, 13, 41519, 1330, 3384, 4487, 198, 6738, 279, 5173, 1313, 13, 41519, 13, 2934, 3849, 3622, 1330, 1024, 9492, 3622, 62...
3.4
45
# -*- coding: utf-8 -*- """ Created on Thu Mar 26 18:05:34 2020 @author: panton01 """ import numpy as np from numba import jit from scipy import signal def find_nearest(array,value,**kwargs): """ idx = find_nearest(array,value,**kwargs) idx = find_nearest(a,2,start = 1,order = 1) Parameters -...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 198, 41972, 319, 26223, 1526, 2608, 1248, 25, 2713, 25, 2682, 12131, 198, 198, 31, 9800, 25, 15857, 261, 486, 198, 37811, 198, 11748, 299, 32152, 355, 45941, 198,...
2.193207
2,738
from s2e2.error import ExpressionError from s2e2.functions.function_replace import FunctionReplace import pytest
[ 6738, 264, 17, 68, 17, 13, 18224, 1330, 41986, 12331, 198, 6738, 264, 17, 68, 17, 13, 12543, 2733, 13, 8818, 62, 33491, 1330, 15553, 3041, 5372, 198, 198, 11748, 12972, 9288, 628, 628, 628, 628, 628, 628, 628, 628, 628, 198 ]
3.142857
42
import time import RPi.GPIO as GPIO import logging GPIO.setmode(GPIO.BOARD) GPIO.setwarnings(False) bl=23 GPIO.setup(bl, GPIO.OUT) p = GPIO.PWM(bl, 1000) p.start(0) while True: for dc in range(0, 101, 2): p.ChangeDutyCycle(dc) time.sleep(0.03) for dc in range(100, -1, -2): p.ChangeD...
[ 11748, 640, 220, 198, 11748, 25812, 72, 13, 16960, 9399, 355, 50143, 198, 11748, 18931, 198, 198, 16960, 9399, 13, 2617, 14171, 7, 16960, 9399, 13, 8202, 9795, 8, 198, 16960, 9399, 13, 2617, 40539, 654, 7, 25101, 8, 198, 198, 2436, ...
1.967033
182
# -*- coding: utf-8 -*- """ Unit tests for the SwaggerSchema class. """ from __future__ import absolute_import import mock import pytest from pyramid_swagger.ingest import compile_swagger_schema from pyramid_swagger.ingest import get_resource_listing from pyramid_swagger.model import partial_path_match from pyramid_s...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 198, 26453, 5254, 329, 262, 2451, 7928, 27054, 2611, 1398, 13, 198, 37811, 198, 6738, 11593, 37443, 834, 1330, 4112, 62, 11748, 198, 198, 11748, 15290, 198, 11748, ...
2.457698
721
from functools import reduce import operator import os import pickle import numpy as np import pandas as pd import torch from torch.utils.data import Dataset import transformers class TURLColTypeColwiseDataset(Dataset): """TURL column type prediction column-wise (single-column)""" class TURLRelExtColwise...
[ 6738, 1257, 310, 10141, 1330, 4646, 198, 11748, 10088, 198, 11748, 28686, 198, 11748, 2298, 293, 198, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 19798, 292, 355, 279, 67, 198, 11748, 28034, 198, 6738, 28034, 13, 26791, 13, 7890, 13...
3.28
125
''' Create an unified test_stub to share test operations @author: Youyk @author: Liu Lei ''' import zstackwoodpecker.test_util as test_util import zstackwoodpecker.test_state as test_state import zstackwoodpecker.test_lib as test_lib import zstackwoodpecker.operations.resource_operations as res_ops import zstackwoodpe...
[ 7061, 6, 198, 16447, 281, 22706, 1332, 62, 301, 549, 284, 2648, 1332, 4560, 198, 31, 9800, 25, 921, 48361, 198, 31, 9800, 25, 18258, 48579, 198, 7061, 6, 198, 198, 11748, 1976, 25558, 3822, 431, 15280, 13, 9288, 62, 22602, 355, 1332...
3.274038
208
# -*- coding: utf-8 -*- """ Uncertainty Estimation """ import numpy as np from copy import deepcopy
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 198, 220, 220, 220, 28304, 1425, 774, 10062, 18991, 198, 37811, 198, 11748, 299, 32152, 355, 45941, 198, 6738, 4866, 1330, 2769, 30073, 628, 628, 628, 628, 628 ]
2.627907
43
# Copyright (c) 2020 Graphcore Ltd. All rights reserved. # Copyright Johns Hopkins University 2020. """Load Covid-19 data extracted from the JHU CSSE COVID-19 Data. https://github.com/CSSEGISandData/COVID-19 Terms of Use: #. This data set is licensed under the Creative Commons Attribution 4.0 Internationa...
[ 2, 15069, 357, 66, 8, 12131, 29681, 7295, 12052, 13, 1439, 2489, 10395, 13, 198, 2, 15069, 25824, 21183, 2059, 12131, 13, 198, 37811, 8912, 39751, 312, 12, 1129, 1366, 21242, 422, 262, 449, 39, 52, 9429, 5188, 7375, 11008, 12, 1129, ...
1.800632
7,910
# -*- coding: utf-8 -*- # ============================================================================= # Ural URL Is Typo Url Function # ============================================================================= # # A function returning True if its argument is detected as typo. # from ural.strip_protocol import str...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 38093, 25609, 198, 2, 471, 1373, 10289, 1148, 17134, 78, 8799, 75, 15553, 198, 2, 38093, 25609, 198, 2, 198, 2, 317, 2163, 8024, 6407, 611, 663, 4578, 318, 12326, ...
2.280606
1,650
"""Import processors from 3rd party sources.""" import contextlib import sys import pkg_resources from ._misc import parameters @parameters( jsonschema={ "type": "object", "properties": { "imports": {"type": "array", "items": {"type": "string"}}, "from_": {"type": "strin...
[ 37811, 20939, 20399, 422, 513, 4372, 2151, 4237, 526, 15931, 198, 198, 11748, 4732, 8019, 198, 11748, 25064, 198, 198, 11748, 279, 10025, 62, 37540, 198, 198, 6738, 47540, 44374, 1330, 10007, 628, 198, 31, 17143, 7307, 7, 198, 220, 220,...
2.388889
144
# -*- 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
from django.shortcuts import render from django.http import Http404 from . import forms FLEXIAPP_NAMES = ("simple_message", "simple_menu", "concurrent_calls", "voicemail", "forward")
[ 6738, 42625, 14208, 13, 19509, 23779, 1330, 8543, 198, 6738, 42625, 14208, 13, 4023, 1330, 367, 29281, 26429, 198, 6738, 764, 1330, 5107, 198, 198, 37, 2538, 55, 40, 24805, 62, 45, 29559, 796, 5855, 36439, 62, 20500, 1600, 198, 220, 2...
1.940299
134
#-*- coding: utf-8 -*- """ ``make_rubrics_by_publications_attributes`` --------------------- ``make_rubrics_by_publications_attributes`` - make sub rubrics structure by additional publications attributes. """ from django.core.management.base import NoArgsCommand, CommandError from optparse import make_option from p...
[ 2, 12, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 198, 15506, 15883, 62, 25089, 10466, 62, 1525, 62, 11377, 602, 62, 1078, 7657, 15506, 198, 19351, 12, 198, 198, 15506, 15883, 62, 25089, 10466, 62, 1525, 62, 11377...
3.638889
144
import uuid import datetime from django.db import models from contents.models import ContentsModel
[ 11748, 334, 27112, 198, 11748, 4818, 8079, 198, 6738, 42625, 14208, 13, 9945, 1330, 4981, 198, 6738, 10154, 13, 27530, 1330, 26714, 17633, 628, 198 ]
4.04
25
# Copyright © 2019 National Institute of Advanced Industrial Science and Technology (AIST). All rights reserved. from flask import request from flask_restful import Resource from marshmallow import ValidationError from injector import inject from qlib.utils.logging import get_logger, log from ..dto import ResultSchema...
[ 2, 15069, 10673, 13130, 2351, 5136, 286, 13435, 19034, 5800, 290, 8987, 27332, 120, 230, 32, 8808, 171, 120, 231, 13, 1439, 2489, 10395, 13, 198, 6738, 42903, 1330, 2581, 198, 6738, 42903, 62, 2118, 913, 1330, 20857, 198, 6738, 22397, ...
3.680952
210
import discord, os, json, typing, sys, traceback, asyncio, logging from discord.ext import commands import cogs import config cfg = config.load_config() def get_prefix(client, message): """A callable Prefix for our bot. This could be edited to allow per server prefixes.""" with open("./src/prefixes.json", ...
[ 11748, 36446, 11, 28686, 11, 33918, 11, 19720, 11, 25064, 11, 12854, 1891, 11, 30351, 952, 11, 18931, 198, 6738, 36446, 13, 2302, 1330, 9729, 198, 11748, 269, 18463, 198, 11748, 4566, 628, 198, 37581, 796, 4566, 13, 2220, 62, 11250, 3...
2.714286
252
import pygtk import gtk if __name__ == '__main__': main()
[ 11748, 12972, 13655, 74, 198, 11748, 308, 30488, 198, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 198, 197, 12417, 3419, 198 ]
2.4
25
#!/usr/bin/env python """Tells us the day of the week.""" from datetime import datetime import calendar DAYS = list(calendar.day_name) def find_day_if_week(): """Returns the day of week as a string, e.g. 'Monday'""" now = datetime.now() weekday = now.weekday() return DAYS[weekday] def main(): ...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 37811, 51, 19187, 514, 262, 1110, 286, 262, 1285, 526, 15931, 198, 198, 6738, 4818, 8079, 1330, 4818, 8079, 198, 11748, 11845, 198, 26442, 50, 796, 1351, 7, 9948, 9239, 13, 820, 62, ...
2.479167
192
from opentrons.drivers.temp_deck.driver import TempDeck, SimulatingDriver __all__ = [ 'TempDeck', 'SimulatingDriver' ]
[ 6738, 1034, 298, 12212, 13, 36702, 13, 29510, 62, 35875, 13, 26230, 1330, 24189, 5005, 694, 11, 3184, 8306, 32103, 198, 198, 834, 439, 834, 796, 685, 198, 220, 220, 220, 705, 30782, 5005, 694, 3256, 198, 220, 220, 220, 705, 8890, 83...
2.666667
48
import pytest from gym_cellular_automata import Operator # Recyclable function for testing operators @pytest.mark.skip(reason="WIP") @pytest.fixture(scope="session") # Module testing @pytest.mark.skip(reason="WIP")
[ 11748, 12972, 9288, 198, 198, 6738, 11550, 62, 3846, 934, 62, 2306, 296, 1045, 1330, 35946, 198, 198, 2, 3311, 88, 565, 540, 2163, 329, 4856, 12879, 628, 198, 31, 9078, 9288, 13, 4102, 13, 48267, 7, 41181, 2625, 54, 4061, 4943, 198,...
2.96
75
from pyspeedup import concurrent @concurrent.Cache def gcd(a,b): '''Using the extended Euclidean algorithm, finds the gcd between a and b. For example:: >>> gcd(5,10) 5 >>> gcd(1024,768) 256 >>> gcd(1474038573,183508437983) 1 ''' r=a%b if r==0: ...
[ 6738, 279, 893, 39492, 929, 1330, 24580, 198, 198, 31, 1102, 14421, 13, 30562, 198, 4299, 308, 10210, 7, 64, 11, 65, 2599, 198, 220, 220, 220, 705, 7061, 12814, 262, 7083, 48862, 485, 272, 11862, 11, 7228, 262, 308, 10210, 1022, 257...
1.972973
222
# Copyright 2019 Huawei Technologies Co., Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to...
[ 2, 15069, 13130, 43208, 21852, 1766, 1539, 12052, 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.785425
247
from django.urls import path, include from . import views urlpatterns = [ path('logout/', views.logout, name="logout"), path('login/', views.login_user, name="login"), path('signup/', views.signup, name="signup"), path('signupcustomer/', views.signup_customer, name="signup_customer"), path('signup...
[ 6738, 42625, 14208, 13, 6371, 82, 1330, 3108, 11, 2291, 198, 6738, 764, 1330, 5009, 198, 198, 6371, 33279, 82, 796, 685, 198, 220, 220, 220, 3108, 10786, 6404, 448, 14, 3256, 5009, 13, 6404, 448, 11, 1438, 2625, 6404, 448, 12340, 19...
2.62701
311
import gzip import sys import argparse from contextlib import contextmanager from typing import IO from lhc.binf.genomic_coordinate import GenomicInterval from lhc.io.bed.iterator import BedLineIterator @contextmanager @contextmanager if __name__ == '__main__': sys.exit(main())
[ 11748, 308, 13344, 198, 11748, 25064, 198, 11748, 1822, 29572, 198, 198, 6738, 4732, 8019, 1330, 4732, 37153, 198, 6738, 19720, 1330, 24418, 198, 6738, 300, 71, 66, 13, 8800, 69, 13, 5235, 10179, 62, 37652, 4559, 1330, 5215, 10179, 9492...
3.172043
93
import os import tensorflow as tf from Common.Module import Module from Inference.model.MDN import MDN
[ 11748, 28686, 198, 11748, 11192, 273, 11125, 355, 48700, 198, 198, 6738, 8070, 13, 26796, 1330, 19937, 198, 198, 6738, 554, 4288, 13, 19849, 13, 12740, 45, 1330, 10670, 45, 198 ]
3.387097
31
''' O mesmo professor do desafio anterior quer sortear a ordem de apresentação de trabalhos dos alunos. Faça um programa que leia o nome dos quatro alunos e mostre a ordem sorteada. ''' from random import shuffle a1 = input('Digite o nome do 1° aluno: ') a2 = input('Digite o nome do 2° aluno: ') a3 = input('Digite o ...
[ 7061, 6, 198, 46, 18842, 5908, 6240, 466, 748, 1878, 952, 32700, 42517, 3297, 451, 257, 2760, 368, 198, 2934, 2471, 2028, 64, 16175, 28749, 390, 491, 44349, 71, 418, 23430, 435, 403, 418, 13, 18350, 50041, 23781, 1430, 64, 8358, 198, ...
2.144044
361
from src.pod_condition import PodCondition from src.pod_container_status import PodContainerStatus from kubernetes.client import CoreV1Api, AppsV1beta2Api, V1beta2Deployment, V1Event from src.notifier import Notifier
[ 6738, 12351, 13, 33320, 62, 31448, 1330, 17437, 48362, 198, 6738, 12351, 13, 33320, 62, 34924, 62, 13376, 1330, 17437, 29869, 19580, 198, 6738, 479, 18478, 3262, 274, 13, 16366, 1330, 7231, 53, 16, 32, 14415, 11, 27710, 53, 16, 31361, ...
3.353846
65
import datetime from flask.ext.sqlalchemy import SQLAlchemy from flask.ext.security import UserMixin, RoleMixin from sqlalchemy.orm import backref from .utils import get_current_time from .rendering import computed_field from sqlalchemy.dialects.postgresql import JSON, JSONB db = SQLAlchemy() test_error = db.Ta...
[ 11748, 4818, 8079, 198, 198, 6738, 42903, 13, 2302, 13, 25410, 282, 26599, 1330, 16363, 2348, 26599, 198, 6738, 42903, 13, 2302, 13, 12961, 1330, 11787, 35608, 259, 11, 20934, 35608, 259, 198, 198, 6738, 44161, 282, 26599, 13, 579, 1330...
1.829688
640
from io import BytesIO from tds.tokens import Login7Stream from .base import Request
[ 6738, 33245, 1330, 2750, 4879, 9399, 201, 198, 201, 198, 6738, 256, 9310, 13, 83, 482, 641, 1330, 23093, 22, 12124, 201, 198, 6738, 764, 8692, 1330, 19390, 201, 198, 201, 198 ]
2.875
32
from django.shortcuts import render from django.contrib.auth.decorators import login_required from . import APP_NAME, __version__ from cartoview.app_manager.views import StandardAppViews, AppsThumbnail from geonode.maps.views import _PERMISSION_MSG_VIEW import json from django.http import HttpResponse from geonode.maps...
[ 6738, 42625, 14208, 13, 19509, 23779, 1330, 8543, 198, 6738, 42625, 14208, 13, 3642, 822, 13, 18439, 13, 12501, 273, 2024, 1330, 17594, 62, 35827, 198, 6738, 764, 1330, 43504, 62, 20608, 11, 11593, 9641, 834, 198, 6738, 6383, 709, 769, ...
3.373494
166
import torch import torch.nn.functional as F from coding import MapOrdering
[ 11748, 28034, 198, 11748, 28034, 13, 20471, 13, 45124, 355, 376, 198, 198, 6738, 19617, 1330, 9347, 18743, 278, 628 ]
3.9
20
import random import time import os import sys input("Welcome to guess the number! press enter to start.") print("How many tries do you want? (5 is standard.)") tries = int(input()) number = random.randint(0, 10) while tries > 0: print("choose a number. (0-10)") guess = int(input()) i...
[ 11748, 4738, 201, 198, 11748, 640, 201, 198, 11748, 28686, 201, 198, 11748, 25064, 201, 198, 201, 198, 15414, 7203, 14618, 284, 4724, 262, 1271, 0, 1803, 3802, 284, 923, 19570, 201, 198, 201, 198, 4798, 7203, 2437, 867, 8404, 466, 345...
1.905882
850
import turtle import random turtle.tracer(1,0) turtle.shape("square") turtle.penup() turtle.goto(0,200) boxes_list=[] number_of_boxes=random.randint(1,3) for i in range (number_of_boxes): x = turtle.clone() x.shape("square") boxes_list.append(x) for c in boxes_list: c.goto(random.randint(-200,200),200)...
[ 11748, 28699, 198, 11748, 4738, 198, 83, 17964, 13, 2213, 11736, 7, 16, 11, 15, 8, 198, 83, 17964, 13, 43358, 7203, 23415, 4943, 198, 83, 17964, 13, 3617, 929, 3419, 198, 83, 17964, 13, 70, 2069, 7, 15, 11, 2167, 8, 198, 198, 29...
2.337931
145
import torch import torch.nn as nn import torch.optim import torch.nn.functional as F if __name__=='__main__': test_main()
[ 11748, 28034, 198, 11748, 28034, 13, 20471, 355, 299, 77, 198, 11748, 28034, 13, 40085, 198, 11748, 28034, 13, 20471, 13, 45124, 355, 376, 198, 361, 11593, 3672, 834, 855, 6, 834, 12417, 834, 10354, 198, 220, 220, 220, 1332, 62, 12417...
2.930233
43
""" Copyright 2020 Jackpine Technologies 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.org/licenses/LICENSE-2.0 Unless required by applicable ...
[ 37811, 198, 220, 220, 15069, 12131, 3619, 23908, 21852, 10501, 628, 220, 220, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 220, 220, 345, 743, 407, 779, 428, 2393, 2845, 287, 11846, 351, 26...
2.323258
5,856
from enum import Enum from os import stat from typing import Dict, Optional, Tuple import torch import torch.distributed as dist import torch.nn as nn from colossalai.amp.naive_amp.grad_scaler import DynamicGradScaler from colossalai.context.parallel_mode import ParallelMode from colossalai.core import global_context ...
[ 6738, 33829, 1330, 2039, 388, 198, 6738, 28686, 1330, 1185, 198, 6738, 19720, 1330, 360, 713, 11, 32233, 11, 309, 29291, 198, 198, 11748, 28034, 198, 11748, 28034, 13, 17080, 6169, 355, 1233, 198, 11748, 28034, 13, 20471, 355, 299, 77, ...
2.807902
1,468
""" Captivity main import. Imports all other captivity modules that do the actual work, and handles the flagging of issues. To change captivity from exception to warning mode use `import captivity; captivity.warning_mode();` or `captivity.exception_mode()` to go back. """ import warnings def warning_mode(): "...
[ 37811, 198, 198, 19209, 3458, 1388, 1330, 13, 1846, 3742, 477, 584, 33763, 13103, 326, 466, 262, 4036, 670, 11, 290, 17105, 262, 6056, 2667, 286, 2428, 13, 198, 2514, 1487, 33763, 422, 6631, 284, 6509, 4235, 779, 4600, 11748, 33763, 2...
3.659751
241
# coding:utf-8 import requests from bs4 import BeautifulSoup import re import json from multiprocessing.dummy import Pool as tp import subprocess import os import base64 from ebooklib import epub # 是否抓取内链内容 getinline = False # 连接线程数 threads = 32 # 增加原作者信息 orginfo = True # 创建epub makeepub = True # 创建总txt maketxt = Tr...
[ 2, 19617, 25, 40477, 12, 23, 198, 198, 11748, 7007, 198, 6738, 275, 82, 19, 1330, 23762, 50, 10486, 198, 11748, 302, 198, 11748, 33918, 198, 6738, 18540, 305, 919, 278, 13, 67, 13513, 1330, 19850, 355, 256, 79, 198, 11748, 850, 1468...
1.503562
1,825
#/usr/bin/env python # -*- coding: Utf8 -*- import event
[ 2, 14, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 532, 9, 12, 19617, 25, 7273, 69, 23, 532, 9, 12, 198, 198, 11748, 1785, 628, 628 ]
2.259259
27
import datetime import logging import re from fractions import Fraction from glob import glob from pathlib import Path from pprint import pprint as pp from ped_parser import FamilyParser from scout.constants import PHENOTYPE_MAP, SEX_MAP from scout.exceptions import PedigreeError from scout.parse.models import ScoutL...
[ 11748, 4818, 8079, 198, 11748, 18931, 198, 11748, 302, 198, 6738, 49876, 1330, 376, 7861, 198, 6738, 15095, 1330, 15095, 198, 6738, 3108, 8019, 1330, 10644, 198, 6738, 279, 4798, 1330, 279, 4798, 355, 9788, 198, 198, 6738, 7190, 62, 486...
2.23607
5,079
import logging import sys import torch from mmdet.core import (bbox_mapping, merge_aug_bboxes, bbox2roi, dbbox2roi, dbbox_mapping, multiclass_nms_rbbox) logger = logging.getLogger(__name__) if sys.version_info >= (3, 7): from mmdet.utils.contextmanagers import comp...
[ 11748, 18931, 198, 11748, 25064, 198, 198, 11748, 28034, 198, 198, 6738, 8085, 15255, 13, 7295, 1330, 357, 65, 3524, 62, 76, 5912, 11, 20121, 62, 7493, 62, 65, 29305, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, ...
2.18
150
#https://github.com/mit-han-lab/data-efficient-gans/blob/3a5ba9f66fe258a04ce8be3b358b44e23941a290/DiffAugment-biggan-cifar/DiffAugment_pytorch.py # Differentiable Augmentation for Data-Efficient GAN Training # Shengyu Zhao, Zhijian Liu, Ji Lin, Jun-Yan Zhu, and Song Han # https://arxiv.org/pdf/2006.10738 import torch...
[ 2, 5450, 1378, 12567, 13, 785, 14, 2781, 12, 7637, 12, 23912, 14, 7890, 12, 16814, 12, 39352, 14, 2436, 672, 14, 18, 64, 20, 7012, 24, 69, 2791, 5036, 25600, 64, 3023, 344, 23, 1350, 18, 65, 31128, 65, 2598, 68, 23516, 3901, 64,...
2.575758
198
""" """ from twisted.python import log from xshtoom.audio.converters import MediaLayer _device = None
[ 37811, 198, 37811, 198, 198, 6738, 19074, 13, 29412, 1330, 2604, 198, 6738, 2124, 1477, 1462, 296, 13, 24051, 13, 1102, 332, 1010, 1330, 6343, 49925, 628, 198, 198, 62, 25202, 796, 6045, 198 ]
3.117647
34
from django.test import TestCase from chat.models import Response from user.models import User from io import BytesIO from PIL import Image from django.core.files.base import File
[ 6738, 42625, 14208, 13, 9288, 1330, 6208, 20448, 198, 6738, 8537, 13, 27530, 1330, 18261, 198, 6738, 2836, 13, 27530, 1330, 11787, 198, 198, 6738, 33245, 1330, 2750, 4879, 9399, 198, 6738, 350, 4146, 1330, 7412, 198, 6738, 42625, 14208, ...
3.714286
49