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 tempfile import TemporaryDirectory import petab from petab.visualize.data_overview import create_report def test_data_overview(): """Data overview generation with Fujita example data from this repository """ with TemporaryDirectory() as temp_dir: outfile = Path(temp_...
[ 6738, 3108, 8019, 1330, 10644, 198, 6738, 20218, 7753, 1330, 46042, 43055, 198, 198, 11748, 4273, 397, 198, 6738, 4273, 397, 13, 41464, 1096, 13, 7890, 62, 2502, 1177, 1330, 2251, 62, 13116, 628, 198, 4299, 1332, 62, 7890, 62, 2502, 1...
2.534615
260
import array __all__ = ["BonelessSimulator", "BonelessError"] # Flag functions # Used to calculate sign bit and also # overflow. # Carry and V use 65xx semantics: # http://www.righto.com/2012/12/the-6502-overflow-flag-explained.html # http://teaching.idallen.com/dat2343/10f/notes/040_overflow.txt # Works with sign...
[ 11748, 7177, 198, 198, 834, 439, 834, 796, 14631, 20682, 5321, 8890, 8927, 1600, 366, 20682, 5321, 12331, 8973, 628, 198, 2, 19762, 5499, 198, 2, 16718, 284, 15284, 1051, 1643, 290, 635, 198, 2, 30343, 13, 198, 198, 2, 36366, 290, 5...
2.39744
3,359
######################################################################################### # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. # # SPDX-License-Identifier: MIT-0 # # ...
[ 29113, 29113, 14468, 7804, 2, 198, 2, 15069, 6186, 13, 785, 11, 3457, 13, 393, 663, 29116, 13, 1439, 6923, 33876, 13, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1303, 198, 2, 3...
2.538462
741
import json import datetime from bson import json_util from tests.TestingSuite import BaseTestingSuite
[ 11748, 33918, 198, 11748, 4818, 8079, 198, 6738, 275, 1559, 1330, 33918, 62, 22602, 198, 198, 6738, 5254, 13, 44154, 5606, 578, 1330, 7308, 44154, 5606, 578, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, ...
2.357143
56
# -*- coding: utf-8 -*- # Generated by Django 1.10.3 on 2017-04-20 09:42 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 2980, 515, 416, 37770, 352, 13, 940, 13, 18, 319, 2177, 12, 3023, 12, 1238, 7769, 25, 3682, 198, 6738, 11593, 37443, 834, 1330, 28000, 1098, 62, 17201, 874, 198, ...
2.73913
69
from django.views.generic import TemplateView from .sites import xplatform from markdown import markdown from .views import ModelBaseApi, PostApi, PutApi
[ 6738, 42625, 14208, 13, 33571, 13, 41357, 1330, 37350, 7680, 198, 6738, 764, 49315, 1330, 220, 2124, 24254, 198, 6738, 1317, 2902, 1330, 1317, 2902, 198, 6738, 764, 33571, 1330, 9104, 14881, 32, 14415, 11, 2947, 32, 14415, 11, 5930, 32,...
3.521739
46
#!/usr/bin/env python """ generated source for module RequestFactory """ # package: org.ggp.base.player.request.factory import java.util.ArrayList import java.util.List import org.ggp.base.player.gamer.Gamer import org.ggp.base.player.request.factory.exceptions.RequestFormatException import org.ggp.base.player.requ...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 37811, 7560, 2723, 329, 8265, 19390, 22810, 37227, 198, 2, 5301, 25, 8745, 13, 1130, 79, 13, 8692, 13, 7829, 13, 25927, 13, 69, 9548, 198, 11748, 20129, 13, 22602, 13, 19182, 8053, 1...
2.400773
2,071
""" Introduction to Binary Tree """ root=Node(1) root.left=Node(2) root.right=Node(3) root.left.left=Node(4)
[ 37811, 22395, 284, 45755, 12200, 37227, 628, 198, 198, 15763, 28, 19667, 7, 16, 8, 198, 15763, 13, 9464, 28, 19667, 7, 17, 8, 198, 15763, 13, 3506, 28, 19667, 7, 18, 8, 198, 15763, 13, 9464, 13, 9464, 28, 19667, 7, 19, 8, 628 ]
2.511111
45
import win32gui if __name__ == "__main__": import time compactPath = 1 total = 100 filenames = ['C:/pagefile.sys', 'C:/Documents and Settings/All Users/Start Menu/' \ 'Programs/Administrative Tools/Computer Management' ] for i in xrange(3): ...
[ 11748, 1592, 2624, 48317, 198, 198, 361, 11593, 3672, 834, 6624, 366, 834, 12417, 834, 1298, 198, 220, 220, 220, 1330, 640, 198, 220, 220, 220, 16001, 15235, 796, 352, 198, 220, 220, 220, 2472, 796, 1802, 198, 220, 220, 220, 1226, 2...
1.906122
980
# Copyright 2019 The Cirq Developers # # 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 ...
[ 2, 15069, 13130, 383, 21239, 80, 34152, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 2, 345, 743, 407, 779, 428, 2393, 2845, 287, 11846, 351, 262, 13789, 13, 198, 2, 921...
2.613503
1,881
from unittest import TestCase from pred.load.download import ModelFiles
[ 6738, 555, 715, 395, 1330, 6208, 20448, 198, 6738, 2747, 13, 2220, 13, 15002, 1330, 9104, 25876, 628, 628, 198 ]
3.8
20
import os from ievv_opensource.utils.logmixin import LogMixin from ievv_opensource.utils.shellcommandmixin import ShellCommandMixin class AbstractDocBuilder(LogMixin, ShellCommandMixin): """ Base class for documentation builders. Each installer defines most of their own API, the only thing they have...
[ 11748, 28686, 198, 198, 6738, 220, 11203, 85, 62, 44813, 1668, 13, 26791, 13, 6404, 19816, 259, 1330, 5972, 35608, 259, 198, 6738, 220, 11203, 85, 62, 44813, 1668, 13, 26791, 13, 29149, 21812, 19816, 259, 1330, 17537, 21575, 35608, 259,...
2.682927
451
import gspread import gspread_pandas as gspd import pydantic import typing import logging import pandas as pd import glob import os import pathlib import numpy as np from .db_base import DBBase import pkg_resources installed_pkg = {pkg.key for pkg in pkg_resources.working_set} if 'ipdb' in installed_pkg: import...
[ 11748, 308, 43639, 198, 11748, 308, 43639, 62, 79, 392, 292, 355, 308, 2777, 67, 198, 11748, 279, 5173, 5109, 198, 11748, 19720, 198, 11748, 18931, 198, 11748, 19798, 292, 355, 279, 67, 198, 11748, 15095, 198, 11748, 28686, 198, 11748, ...
3.072368
152
# pylint: disable=line-too-long,too-many-return-statements,too-many-branches,too-many-locals import abc from typing import Generic, TypeVar from . import group_types as gt OutputType = TypeVar('OutputType')
[ 2, 279, 2645, 600, 25, 15560, 28, 1370, 12, 18820, 12, 6511, 11, 18820, 12, 21834, 12, 7783, 12, 14269, 3196, 11, 18820, 12, 21834, 12, 1671, 12140, 11, 18820, 12, 21834, 12, 17946, 874, 198, 11748, 450, 66, 198, 6738, 19720, 1330, ...
2.884615
78
from FreeTAKServer.model.FTSModel.fts_protocol_object import FTSProtocolObject from FreeTAKServer.model.FTSModelVariables.MimeTypeVariables import MimeTypeVariables as vars
[ 6738, 3232, 5603, 42, 10697, 13, 19849, 13, 37, 4694, 17633, 13, 35594, 62, 11235, 4668, 62, 15252, 1330, 376, 4694, 19703, 4668, 10267, 198, 6738, 3232, 5603, 42, 10697, 13, 19849, 13, 37, 4694, 17633, 23907, 2977, 13, 44, 524, 6030,...
3.245283
53
from __future__ import generators import os, random import gamesrv from bubbob import images from bubbob.images import ActiveSprite from bubbob import boards from bubbob.boards import CELL, HALFCELL, bget from bubbob.monsters import Monster from bubbob.player import Dragon, BubPlayer from bubbob.bubbles import Bubble f...
[ 6738, 11593, 37443, 834, 1330, 27298, 198, 11748, 28686, 11, 4738, 198, 11748, 1830, 81, 85, 198, 6738, 10015, 65, 672, 1330, 4263, 198, 6738, 10015, 65, 672, 13, 17566, 1330, 14199, 38454, 578, 198, 6738, 10015, 65, 672, 1330, 11490, ...
2.067019
1,134
import pygame from sprites import TYPES_NAME
[ 11748, 12972, 6057, 198, 6738, 42866, 1330, 24412, 47, 1546, 62, 20608, 198 ]
3.461538
13
"""Module containg the definition of Error classes inherited from ValueError. The following error are desinged to individuate mispelled or inexistent chemical formulas. """ class EmptyFormula(ValueError): """Error indicating the string that should contain the chemical formula is empty""" pass class Firs...
[ 37811, 26796, 542, 64, 278, 262, 6770, 286, 13047, 6097, 19552, 422, 11052, 12331, 13, 198, 220, 220, 383, 1708, 4049, 389, 748, 24431, 284, 773, 1699, 4985, 2984, 15803, 393, 16087, 7609, 198, 220, 220, 5931, 32126, 13, 198, 37811, 1...
4.010676
281
import torch import torch.nn as nn import torch.nn.functional as F import torch.utils.model_zoo as model_zoo from torch.autograd import Variable import os import cv2 import numpy as np __all__ = ['Inception3', 'inception_v3'] model_urls = { # Inception v3 ported from TensorFlow 'inception_v3_google': 'https...
[ 11748, 28034, 198, 11748, 28034, 13, 20471, 355, 299, 77, 198, 11748, 28034, 13, 20471, 13, 45124, 355, 376, 198, 11748, 28034, 13, 26791, 13, 19849, 62, 89, 2238, 355, 2746, 62, 89, 2238, 198, 6738, 28034, 13, 2306, 519, 6335, 1330, ...
2.543536
379
#!/usr/bin/env python3 import functools import os import pathlib import pprint import subprocess import sys import tempfile import traceback from contextlib import contextmanager import httpx import msgpack import trio from lxml import html from tqdm import tqdm DISABLE_TQDM = "CI" in os.environ HEADERS = {"user-agen...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 11748, 1257, 310, 10141, 198, 11748, 28686, 198, 11748, 3108, 8019, 198, 11748, 279, 4798, 198, 11748, 850, 14681, 198, 11748, 25064, 198, 11748, 20218, 7753, 198, 11748, 12854, 1891, ...
2.353271
535
__author__ = "Liyuan Liu and Frank Xu" __credits__ = ["Liyuan Liu", "Frank Xu", "Jingbo Shang"] __license__ = "Apache License 2.0" __maintainer__ = "Liyuan Liu" __email__ = "llychinalz@gmail.com"
[ 834, 9800, 834, 796, 366, 43, 7745, 7258, 18258, 290, 5278, 33591, 1, 198, 834, 66, 20696, 834, 796, 14631, 43, 7745, 7258, 18258, 1600, 366, 17439, 33591, 1600, 366, 41, 278, 2127, 45797, 8973, 198, 834, 43085, 834, 796, 366, 25189, ...
2.565789
76
# -*- coding:utf-8 -*- import argparse import string import csv import os import pandas as pd import cv2 import torch import torch.backends.cudnn as cudnn import torch.utils.data import torch.nn.functional as F from utils import CTCLabelConverter, AttnLabelConverter from dataset import RawDataset, AlignCo...
[ 2, 532, 9, 12, 19617, 25, 40477, 12, 23, 532, 9, 12, 201, 198, 201, 198, 11748, 1822, 29572, 201, 198, 11748, 4731, 201, 198, 11748, 269, 21370, 201, 198, 11748, 28686, 201, 198, 11748, 19798, 292, 355, 279, 67, 201, 198, 11748, 2...
0.681647
27,391
"""Organize the calculation of statistics for each series in this DataFrame.""" from datetime import datetime from typing import Any, Dict, Optional import pandas as pd from tqdm.auto import tqdm from visions import VisionsTypeset from pandas_profiling.config import Settings from pandas_profiling.model.alerts import ...
[ 37811, 26121, 1096, 262, 17952, 286, 7869, 329, 1123, 2168, 287, 428, 6060, 19778, 526, 15931, 198, 6738, 4818, 8079, 1330, 4818, 8079, 198, 6738, 19720, 1330, 4377, 11, 360, 713, 11, 32233, 198, 198, 11748, 19798, 292, 355, 279, 67, ...
2.386839
2,629
import numpy as np import ZachsModules as zm from multiprocessing import Pool, cpu_count import os import shutil import json ############################################################################ #######################################################...
[ 11748, 299, 32152, 355, 45941, 198, 11748, 18825, 82, 5841, 5028, 355, 1976, 76, 198, 6738, 18540, 305, 919, 278, 1330, 19850, 11, 42804, 62, 9127, 198, 11748, 28686, 198, 11748, 4423, 346, 198, 11748, 33918, 198, 220, 220, 220, 220, ...
2.03212
467
from aws_lambda_typing.events import S3Event
[ 6738, 3253, 82, 62, 50033, 62, 774, 13886, 13, 31534, 1330, 311, 18, 9237, 628 ]
3.066667
15
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from .. import...
[ 2, 19617, 28, 40477, 12, 23, 198, 2, 17202, 39410, 25, 428, 2393, 373, 7560, 416, 262, 21624, 12994, 24118, 687, 10290, 357, 27110, 5235, 8, 16984, 13, 17202, 198, 2, 17202, 2141, 407, 4370, 416, 1021, 4556, 345, 821, 1728, 345, 760...
2.639785
744
from __future__ import absolute_import, division, print_function, unicode_literals from nib import Document, Processor, after @after
[ 6738, 11593, 37443, 834, 1330, 4112, 62, 11748, 11, 7297, 11, 3601, 62, 8818, 11, 28000, 1098, 62, 17201, 874, 198, 198, 6738, 33272, 1330, 16854, 11, 32893, 11, 706, 198, 198, 31, 8499, 198 ]
3.857143
35
#!/usr/bin/env python3 #coding=utf-8 ''' TRG: Text-Reassamble Generator (TRG) ''' __author__ = "Xiao Li" __copyright__ = "Copyright 2018, Xiao Li" __license__ = "MIT" __version__ = "1.0" __email__ = "xiao [dot] li [at] abdn [dot] ac [dot] uk" import VBLS
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 2, 66, 7656, 28, 40477, 12, 23, 198, 198, 7061, 6, 198, 220, 220, 220, 7579, 38, 25, 8255, 12, 3041, 562, 321, 903, 35986, 357, 5446, 38, 8, 198, 7061, 6, 198, 198, 834, 98...
2.220339
118
from django.contrib.gis.db.models.functions import Area, Intersection class ProductPriceCalculator(): """ Price calculation methods. Pass one of the value defined in models.Pricing.PricingType class to the get price method. """ @classmethod def get_price(cls, pricing_type, **kwargs): "...
[ 6738, 42625, 14208, 13, 3642, 822, 13, 70, 271, 13, 9945, 13, 27530, 13, 12543, 2733, 1330, 9498, 11, 4225, 5458, 198, 198, 4871, 8721, 18124, 9771, 3129, 1352, 33529, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 7886, 17952, 5050, ...
2.709302
258
import logging import os from contextlib import contextmanager from pathlib import Path from typing import Any, Dict, Generator, List, Tuple from toxn.config.models.task.base import TaskConfig from toxn.config.models.venv import Install from toxn.util import Loggers class TaskLogging(logging.LoggerAdapter): """...
[ 11748, 18931, 198, 11748, 28686, 198, 6738, 4732, 8019, 1330, 4732, 37153, 198, 6738, 3108, 8019, 1330, 10644, 198, 6738, 19720, 1330, 4377, 11, 360, 713, 11, 35986, 11, 7343, 11, 309, 29291, 198, 198, 6738, 8293, 77, 13, 11250, 13, 2...
3.492958
142
#!/usr/bin/env python # -*- coding: UTF-8 -*- # # generated by wxGlade # import wx # begin wxGlade: dependencies import gettext import wx.grid # end wxGlade # begin wxGlade: extracode # end wxGlade # end of class PyOgg2_MyFrame # end of class MyFrameGrid if __name__ == "__main__": gettext.install("ComplexExa...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 532, 9, 12, 19617, 25, 41002, 12, 23, 532, 9, 12, 198, 2, 198, 2, 7560, 416, 266, 87, 9861, 671, 198, 2, 198, 198, 11748, 266, 87, 198, 198, 2, 2221, 266, 87, 9861, 671, 2...
2.665094
212
import os import csv if __name__ == '__main__': run()
[ 11748, 28686, 198, 11748, 269, 21370, 628, 628, 628, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 198, 220, 220, 220, 1057, 3419, 198 ]
2.37037
27
from zope.interface.common.mapping import IIterableMapping from zope.location.interfaces import ILocation class IItemCollection(IIterableMapping, ILocation): """ An item collection is a read-only iterable mapping of object items, which are usually lazy-fetched and some key type. The key type will be ...
[ 6738, 1976, 3008, 13, 39994, 13, 11321, 13, 76, 5912, 1330, 2873, 353, 540, 44, 5912, 198, 6738, 1976, 3008, 13, 24886, 13, 3849, 32186, 1330, 14639, 5040, 628, 198, 4871, 314, 7449, 36307, 7, 3978, 353, 540, 44, 5912, 11, 14639, 50...
3.182628
898
import hashlib from . import settings from .functions import get_option
[ 11748, 12234, 8019, 198, 6738, 764, 1330, 6460, 198, 6738, 764, 12543, 2733, 1330, 651, 62, 18076, 198 ]
4
18
# This file is part of the pyMOR project (http://www.pymor.org). # Copyright pyMOR developers and contributors. All rights reserved. # License: BSD 2-Clause License (http://opensource.org/licenses/BSD-2-Clause) """This module contains a basic symbolic expression library. The library is used by |ExpressionFunction| an...
[ 2, 770, 2393, 318, 636, 286, 262, 12972, 44, 1581, 1628, 357, 4023, 1378, 2503, 13, 9078, 4491, 13, 2398, 737, 198, 2, 15069, 12972, 44, 1581, 6505, 290, 20420, 13, 1439, 2489, 10395, 13, 198, 2, 13789, 25, 347, 10305, 362, 12, 26...
2.791451
2,129
# Copyright (c) 2011, Roger Lew [see LICENSE.txt] # This software is funded in part by NIH Grant P20 RR016454. # Python 2 to 3 workarounds import sys if sys.version_info[0] == 2: _strobj = str _xrange = xrange elif sys.version_info[0] == 3: _strobj = str _xrange = range import unittest import wa...
[ 198, 198, 2, 15069, 357, 66, 8, 2813, 11, 13637, 8260, 685, 3826, 38559, 24290, 13, 14116, 60, 198, 2, 770, 3788, 318, 10588, 287, 636, 416, 37483, 12181, 350, 1238, 26067, 27037, 34229, 13, 198, 198, 2, 11361, 362, 284, 513, 670, ...
2.563319
229
import platform if platform.system() in ['Linux', 'Darwin']: from ble_serial.ports.linux_pty import UART as platform_uart DEFAULT_PORT = '/tmp/ttyBLE' DEFAULT_PORT_MSG = 'Symlink to virtual serial port' elif platform.system() == 'Windows': from ble_serial.ports.windows_com0com import COM as platform_ua...
[ 11748, 3859, 198, 198, 361, 3859, 13, 10057, 3419, 287, 37250, 19314, 3256, 705, 32708, 5404, 6, 5974, 198, 220, 220, 220, 422, 7245, 62, 46911, 13, 3742, 13, 23289, 62, 5835, 1330, 471, 7227, 355, 3859, 62, 19986, 198, 220, 220, 22...
2.993711
159
import datetime import logging from peewee import CharField, DateTimeField, FloatField, IntegerField from playhouse.signals import Model from playhouse.sqliteq import SqliteQueueDatabase from pikapi.config import get_config logger = logging.getLogger(__name__) # logger = logging.getLogger('peewee') # logger.setLeve...
[ 11748, 4818, 8079, 198, 11748, 18931, 198, 198, 6738, 613, 413, 1453, 1330, 3178, 15878, 11, 7536, 7575, 15878, 11, 48436, 15878, 11, 34142, 15878, 198, 6738, 711, 4803, 13, 12683, 874, 1330, 9104, 198, 6738, 711, 4803, 13, 25410, 578, ...
2.616525
472
import pandas as pd import pytest import responses from mock import Mock from pandas._testing import assert_frame_equal from pytest import fixture from toucan_connectors.json_wrapper import JsonWrapper from toucan_connectors.soap.soap_connector import SoapConnector, SoapDataSource import_path = 'toucan_connectors.soa...
[ 11748, 19798, 292, 355, 279, 67, 198, 11748, 12972, 9288, 198, 11748, 9109, 198, 6738, 15290, 1330, 44123, 198, 6738, 19798, 292, 13557, 33407, 1330, 6818, 62, 14535, 62, 40496, 198, 6738, 12972, 9288, 1330, 29220, 198, 198, 6738, 2819, ...
2.385612
3,086
import numpy as np import matplotlib.pyplot as plt from matplotlib.patches import Circle, RegularPolygon from matplotlib.path import Path from matplotlib.projections.polar import PolarAxes from matplotlib.projections import register_projection from matplotlib.spines import Spine from matplotlib.transforms import Affin...
[ 11748, 299, 32152, 355, 45941, 198, 198, 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 198, 6738, 2603, 29487, 8019, 13, 8071, 2052, 1330, 16291, 11, 23603, 34220, 14520, 198, 6738, 2603, 29487, 8019, 13, 6978, 1330, 10644, 1...
2.271104
1,232
# msp430 shared addressing logic import utils import msp_fr5969_model as model import msp_instr as instr # I think this ends up getting used to control all computed addresses; # would be a good place to handle wrapping off the end of the address space # behavior. # Name is maybe a little confusing for that. # just a...
[ 2, 285, 2777, 31794, 4888, 13593, 9156, 198, 198, 11748, 3384, 4487, 198, 11748, 285, 2777, 62, 8310, 3270, 3388, 62, 19849, 355, 2746, 198, 11748, 285, 2777, 62, 259, 2536, 355, 6480, 198, 198, 2, 314, 892, 428, 5645, 510, 1972, 97...
3.818966
232
#!/usr/bin/env python import sysconfig import subprocess import json import os import sys import platform if os.path.dirname(__file__): os.chdir(os.path.dirname(__file__)) if platform.system() in ('Windows', 'Darwin') or platform.system().startswith('CYGWIN'): sys.exit(0) # test not supported on windows or os...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 11748, 25064, 11250, 198, 11748, 850, 14681, 198, 11748, 33918, 198, 11748, 28686, 198, 11748, 25064, 198, 11748, 3859, 198, 198, 361, 28686, 13, 6978, 13, 15908, 3672, 7, 834, 7753, 834...
2.417373
944
from typing import Tuple, Any, Dict, Callable from memoize.key import KeyExtractor from memoize.storage import CacheStorage class InvalidationSupport(object): """ Allows to manually invalidate cache entries. """ def _initialized(self) -> bool: """ Executed internally by the library. """ retu...
[ 6738, 19720, 1330, 309, 29291, 11, 4377, 11, 360, 713, 11, 4889, 540, 198, 198, 6738, 16155, 1096, 13, 2539, 1330, 7383, 11627, 40450, 198, 6738, 16155, 1096, 13, 35350, 1330, 34088, 31425, 628, 198, 4871, 17665, 341, 15514, 7, 15252, ...
2.873508
419
import pytest from openmmtools.integrators import LangevinIntegrator from openmmtools.testsystems import AlanineDipeptideVacuum from simtk import unit from thresholds import utils, stability testsystem = AlanineDipeptideVacuum() construct_sim = utils.sim_factory(testsystem) tiny_dt = 0.1 * unit.femtoseconds stable_s...
[ 11748, 12972, 9288, 198, 6738, 1280, 3020, 31391, 13, 18908, 18942, 1330, 47579, 7114, 34500, 12392, 198, 6738, 1280, 3020, 31391, 13, 9288, 10057, 82, 1330, 12246, 500, 35, 3757, 457, 485, 53, 330, 13814, 198, 6738, 985, 30488, 1330, 4...
2.932927
164
#import car from car import Car #Car will be directly accessible #myClass = car.Car("audi","a2","2012") myClass = Car("audi","a2","2012") print(myClass.get_des())
[ 2, 11748, 1097, 198, 6738, 1097, 1330, 1879, 220, 220, 220, 1303, 9914, 481, 307, 3264, 9857, 198, 2, 1820, 9487, 796, 1097, 13, 9914, 7203, 31330, 2430, 64, 17, 2430, 6999, 4943, 198, 1820, 9487, 796, 1879, 7203, 31330, 2430, 64, 1...
2.946429
56
#!/usr/bin/env python # coding: utf-8 import math import os.path as osp import argparse import json from tensorboardX import SummaryWriter from lion.data.loader import prepare_loader from lion.data.dataset import LionDataset from lion.data.vocab import Dictionary from lion.common.param import Param from lion.trainin...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 19617, 25, 3384, 69, 12, 23, 198, 198, 11748, 10688, 198, 11748, 28686, 13, 6978, 355, 267, 2777, 198, 11748, 1822, 29572, 198, 11748, 33918, 198, 198, 6738, 11192, 273, 3526, 55, ...
2.350139
2,519
#!/usr/bin/env python3 import boto3 import os.path import sys from botocore.exceptions import ClientError LANGS = "en de fr nl it pl es ru ja pt zh sv " \ "vi uk ca no fi cs hu ko fa id tr ar " \ "ro sk eo da sr lt ms he eu sl bg kk " \ "vo hr war hi et gl az nn simple".split() s3_base = sys...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 198, 11748, 275, 2069, 18, 198, 11748, 28686, 13, 6978, 198, 11748, 25064, 198, 198, 6738, 10214, 420, 382, 13, 1069, 11755, 1330, 20985, 12331, 198, 198, 25697, 14313, 796, 366, 2...
2.107527
372
# -*- coding: utf-8 -*- # Generated by Django 1.11.2 on 2017-06-25 16:09 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, 2, 2980, 515, 416, 37770, 352, 13, 1157, 13, 17, 319, 2177, 12, 3312, 12, 1495, 1467, 25, 2931, 198, 6738, 11593, 37443, 834, 1330, 28000, 1098, 62, 17201, 874, 198, ...
2.736842
57
import abc class Archiver(object): """Archiver is an abstract class.""" __metaclass__ = abc.ABCMeta @abc.abstractmethod
[ 11748, 450, 66, 198, 198, 4871, 5579, 1428, 7, 15252, 2599, 198, 220, 220, 220, 37227, 19895, 1428, 318, 281, 12531, 1398, 526, 15931, 198, 220, 220, 220, 11593, 4164, 330, 31172, 834, 796, 450, 66, 13, 24694, 48526, 628, 220, 220, ...
2.68
50
import pytest from sqlalchemy.exc import IntegrityError from app import User from . import test_constants as tconst @pytest.mark.skip # TODO: This currently fails, is record being committed?
[ 11748, 12972, 9288, 198, 6738, 44161, 282, 26599, 13, 41194, 1330, 39348, 12331, 198, 198, 6738, 598, 1330, 11787, 198, 6738, 764, 1330, 1332, 62, 9979, 1187, 355, 256, 9979, 628, 628, 628, 628, 198, 31, 9078, 9288, 13, 4102, 13, 4826...
3.5
58
"""Participant module.""" class Participant: """Implementation of Participant (init class for participants).""" _total_points = 0 _name = "" def __init__(self, name="default"): """Initialize instance variables.""" self._name = name def get_total_points(self): """__total_...
[ 37811, 34363, 415, 8265, 526, 15931, 628, 198, 4871, 29880, 25, 198, 220, 220, 220, 37227, 3546, 32851, 286, 29880, 357, 15003, 1398, 329, 6809, 21387, 15931, 628, 220, 220, 220, 4808, 23350, 62, 13033, 796, 657, 198, 220, 220, 220, 4...
2.528053
303
""" The engine to run lazy convex outer approximation. TODO: disaggregation, warm start, heuristic posting, starting cuts """ import traceback import gurobipy TOLERANCE = 10**(-5) # Store away some of these nasty callback codes MIPSOL = gurobipy.GRB.Callback.MIPSOL MIPNODE = gurobipy.GRB.Callback.MIPNODE MIPNODE_S...
[ 37811, 198, 464, 3113, 284, 1057, 16931, 24748, 87, 12076, 40874, 13, 198, 198, 51, 3727, 46, 25, 7969, 17097, 11, 5814, 923, 11, 339, 27915, 10754, 11, 3599, 6630, 198, 37811, 198, 198, 11748, 12854, 1891, 198, 198, 11748, 915, 22609...
2.602564
234
# test basic run print("hello from train.py running in docker!") # test xtlib presence import xtlib print("xtlib: ", xtlib.__version__) # test connectivity to mongo db from xtlib.helpers.xt_config import XTConfig config = XTConfig() mongo_cs = config.get_vault_key("xt-sandbox-cosmos") import pymongo from pymongo imp...
[ 2, 1332, 4096, 1057, 198, 4798, 7203, 31373, 422, 4512, 13, 9078, 2491, 287, 36253, 2474, 8, 198, 198, 2, 1332, 220, 742, 8019, 4931, 198, 11748, 220, 742, 8019, 198, 4798, 7203, 742, 8019, 25, 33172, 220, 742, 8019, 13, 834, 9641, ...
2.820225
178
import os from abc import ABCMeta, abstractmethod from collections import OrderedDict import matplotlib.pyplot as plt import numpy as np import pandas as pd import torch from tqdm import tqdm from operators import FanbeamRadon, l2_error # ----- ----- Abstract Base Network ----- ----- class InvNet(torch.nn.Modul...
[ 11748, 28686, 198, 198, 6738, 450, 66, 1330, 9738, 48526, 11, 12531, 24396, 198, 6738, 17268, 1330, 14230, 1068, 35, 713, 198, 198, 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 198, 11748, 299, 32152, 355, 45941, 198, 11748,...
3.167444
1,929
""" Resources of type Process introduced. Revision ID: 5f2648b8ff49 Revises: a2a039e2cff5 Create Date: 2020-10-13 16:20:07.323467 """ from alembic import op from alembic.context import get_context # noqa: F401 from sqlalchemy.dialects.postgresql.base import PGDialect from sqlalchemy.orm.session import sessionmaker f...
[ 37811, 198, 33236, 286, 2099, 10854, 5495, 13, 198, 198, 18009, 1166, 4522, 25, 642, 69, 2075, 2780, 65, 23, 487, 2920, 198, 18009, 2696, 25, 257, 17, 64, 15, 2670, 68, 17, 66, 487, 20, 198, 16447, 7536, 25, 12131, 12, 940, 12, ...
2.837563
197
import click import os import re import sys from .writer import * from .__init__ import __version__ as version LOCAL_PATH = os.getcwd() # Correct LOCAL_PATH in case of empty spaces #21 logo = r""" _ _ | |__ ___ _ __ _ __ ___ (_) ___ _ __ ___ | '_ \ / _ \ '__| '_ ` _ \...
[ 11748, 3904, 198, 11748, 28686, 198, 11748, 302, 198, 11748, 25064, 198, 6738, 764, 16002, 1330, 1635, 198, 6738, 764, 834, 15003, 834, 1330, 11593, 9641, 834, 355, 2196, 198, 198, 29701, 1847, 62, 34219, 796, 28686, 13, 1136, 66, 16993...
2.487705
2,440
# Copyright (c) FULIUCANSHENG. # Licensed under the MIT License. import os import sys import fire import importlib import unitorch.cli from unitorch.cli import cached_path from unitorch.cli import CoreConfigureParser, set_default_setting from unitorch.cli import registered_task, init_registered_module from unitorch_cl...
[ 2, 15069, 357, 66, 8, 376, 6239, 40, 9598, 1565, 9693, 26808, 13, 198, 2, 49962, 739, 262, 17168, 13789, 13, 198, 198, 11748, 28686, 198, 11748, 25064, 198, 11748, 2046, 198, 11748, 1330, 8019, 198, 11748, 555, 2072, 354, 13, 44506, ...
3.239316
117
from __future__ import annotations from contextlib import redirect_stdout from io import StringIO from pathlib import Path HERE = Path(__file__) FILE = HERE.parent / Path("test_logs.log") # FILE = HERE.parent / Path("test_simple.log") if __name__ == "__main__": raise SystemExit(print_logs())
[ 6738, 11593, 37443, 834, 1330, 37647, 198, 198, 6738, 4732, 8019, 1330, 18941, 62, 19282, 448, 198, 6738, 33245, 1330, 10903, 9399, 198, 6738, 3108, 8019, 1330, 10644, 198, 198, 39, 9338, 796, 10644, 7, 834, 7753, 834, 8, 198, 25664, ...
3.070707
99
#coding=utf-8 #嘉宾名单P38 2017.4.11 print('3.4 输出嘉宾名单') guestLists = ['wade','kobe','jordan'] hiGuest() print('\n3.5 修改嘉宾名单') print("it's so sorry that maybe "+guestLists[1]+" don't have time to join us") guestLists[1]='harden' hiGuest() print('\n3.6 添加嘉宾名单') print("amazing! guess what? I just find a bigger table,Let's in...
[ 2, 66, 7656, 28, 40477, 12, 23, 198, 2, 161, 246, 231, 22522, 122, 28938, 235, 39355, 243, 47, 2548, 2177, 13, 19, 13, 1157, 198, 4798, 10786, 18, 13, 19, 5525, 122, 241, 49035, 118, 161, 246, 231, 22522, 122, 28938, 235, 39355, ...
2.196474
397
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # --------------------------------------------------------------------...
[ 2, 16529, 1783, 10541, 198, 2, 15069, 357, 66, 8, 5413, 10501, 13, 1439, 2489, 10395, 13, 198, 2, 49962, 739, 262, 17168, 13789, 13, 4091, 13789, 13, 14116, 287, 262, 1628, 6808, 329, 5964, 1321, 13, 198, 2, 16529, 1783, 10541, 198,...
3.576449
2,191
# coding: utf-8
[ 2, 19617, 25, 3384, 69, 12, 23, 628 ]
2.125
8
""" Immmutable constant refeence data template. To be imported from higher build factory, using local _ConstFactory """ from typing import Tuple from re import search as reg_search from socket import getfqdn as sock_getfqdn from hostname_resolver.custom_datatypes.frozentemplate import FrozenObj class Constants(Froze...
[ 37811, 198, 24675, 76, 18187, 6937, 1006, 68, 594, 1366, 11055, 13, 1675, 307, 17392, 422, 2440, 1382, 8860, 11, 198, 3500, 1957, 4808, 34184, 22810, 198, 37811, 198, 198, 6738, 19720, 1330, 309, 29291, 198, 6738, 302, 1330, 2989, 355, ...
2.681102
508
try: import ConfigParser except ImportError: import configparser as ConfigParser import unittest from impacket import nmb from impacket.structure import hexdump if __name__ == "__main__": suite = unittest.TestLoader().loadTestsFromTestCase(NetBIOSTests) unittest.TextTestRunner(verbosity=1).run(suite)...
[ 28311, 25, 198, 220, 220, 220, 1330, 17056, 46677, 198, 16341, 17267, 12331, 25, 198, 220, 220, 220, 1330, 4566, 48610, 355, 17056, 46677, 198, 11748, 555, 715, 395, 198, 198, 6738, 848, 8317, 1330, 299, 2022, 198, 6738, 848, 8317, 13...
3
107
import numpy as np from pandas import TimedeltaIndex, factorize, timedelta_range import pandas._testing as tm
[ 11748, 299, 32152, 355, 45941, 198, 198, 6738, 19798, 292, 1330, 5045, 276, 12514, 15732, 11, 5766, 1096, 11, 28805, 12514, 62, 9521, 198, 11748, 19798, 292, 13557, 33407, 355, 256, 76, 628 ]
3.393939
33
# Given a linked list, remove the n-th node from the end of list and return its head. # Example: # Given linked list: 1->2->3->4->5, and n = 2. # After removing the second node from the end, the linked list becomes 1->2->3->5. # Note: # Given n will always be valid. # Follow up: # Could you do this in one pass? # De...
[ 2, 11259, 257, 6692, 1351, 11, 4781, 262, 299, 12, 400, 10139, 422, 262, 886, 286, 1351, 290, 1441, 663, 1182, 13, 198, 2, 17934, 25, 198, 198, 2, 11259, 6692, 1351, 25, 352, 3784, 17, 3784, 18, 3784, 19, 3784, 20, 11, 290, 299,...
3.031008
129
import click import pandas import json from clients import s3, redis @click.command() @click.option('--both', 'upload', flag_value='s3_and_redis', default=True, help='Upload metadata to both s3 and Redis') @click.option('--s3', 'upload', flag_value='only_s3', help='Upload metadata only to s3') @click.option('--redis'...
[ 11748, 3904, 198, 11748, 19798, 292, 198, 11748, 33918, 198, 6738, 7534, 1330, 264, 18, 11, 2266, 271, 628, 198, 31, 12976, 13, 21812, 3419, 198, 31, 12976, 13, 18076, 10786, 438, 16885, 3256, 705, 25850, 3256, 6056, 62, 8367, 11639, ...
3.085938
128
"""Exception classes.""" from __future__ import annotations from typing import TYPE_CHECKING, Any, ClassVar, Dict, List, Union from fastapi import status if TYPE_CHECKING: from .domain.page import PageParameterSchema class TimesSquareError(Exception): """Root error for Times Square services.""" error...
[ 37811, 16922, 6097, 526, 15931, 198, 198, 6738, 11593, 37443, 834, 1330, 37647, 198, 198, 6738, 19720, 1330, 41876, 62, 50084, 2751, 11, 4377, 11, 5016, 19852, 11, 360, 713, 11, 7343, 11, 4479, 198, 198, 6738, 3049, 15042, 1330, 3722, ...
3.084295
1,127
import numpy as np with open("input.txt") as f: heightmap = [list(r[:-1]) for r in f.readlines()] heightmap = np.array(heightmap, dtype=int) local_minima = np.full_like(heightmap, fill_value=True, dtype=bool) h_grad = (heightmap[:-1] - heightmap[1:]) v_grad = (heightmap[:,:-1] - heightmap[:, 1:]) local_minima[:-...
[ 11748, 299, 32152, 355, 45941, 198, 198, 4480, 1280, 7203, 15414, 13, 14116, 4943, 355, 277, 25, 198, 220, 220, 220, 6001, 8899, 796, 685, 4868, 7, 81, 58, 21912, 16, 12962, 329, 374, 287, 277, 13, 961, 6615, 3419, 60, 198, 198, 1...
2.23913
322
# -*- coding: utf-8 -*- """ :copyright: © pysecuritas, All Rights Reserved """ from .__version__ import __title__, __description__, __url__, __version__, __license__
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 198, 220, 220, 220, 1058, 22163, 4766, 25, 10673, 12972, 2363, 333, 21416, 11, 1439, 6923, 33876, 198, 37811, 198, 198, 6738, 764, 834, 9641, 834, 1330, 11593, 78...
2.758065
62
import aspose.slides as slides
[ 171, 119, 123, 11748, 355, 3455, 13, 6649, 1460, 355, 19392, 198 ]
2.666667
12
# AWX from awx.main.scheduler.dag_simple import SimpleDAG
[ 198, 2, 14356, 55, 198, 6738, 3253, 87, 13, 12417, 13, 1416, 704, 18173, 13, 67, 363, 62, 36439, 1330, 17427, 35, 4760, 628 ]
2.5
24
from _mappers.entities import attrs from _mappers.entities import dataclasses from _mappers.entities import pydantic from _mappers.exceptions import MapperError
[ 6738, 4808, 76, 46629, 13, 298, 871, 1330, 708, 3808, 198, 6738, 4808, 76, 46629, 13, 298, 871, 1330, 4818, 330, 28958, 198, 6738, 4808, 76, 46629, 13, 298, 871, 1330, 279, 5173, 5109, 198, 6738, 4808, 76, 46629, 13, 1069, 11755, 13...
3.446809
47
import PySimpleGUI as sg from sim import * layout = [[sg.Text('Simulating Infectious Diseases', font=('Times New Roman', 20))], [sg.Text('Name your disease: '), sg.InputText(key='name')], [sg.Text('Population', size=(20, 1)), sg.Slider(range=(20, 150), size=(20, 10), orientation='horizonta...
[ 11748, 9485, 26437, 40156, 355, 264, 70, 201, 198, 6738, 985, 1330, 1635, 201, 198, 201, 198, 39786, 796, 16410, 45213, 13, 8206, 10786, 8890, 8306, 26065, 699, 39988, 3256, 10369, 28, 10786, 28595, 968, 7993, 3256, 1160, 4008, 4357, 20...
2.613153
517
from collections import deque from io import BytesIO from threading import Event, Lock class Chunk(BytesIO): """A single chunk, part of the buffer.""" @property class Buffer(object): """Simple buffer for use in single-threaded consumer/filler. Stores chunks in a deque to avoid inefficient realloca...
[ 6738, 17268, 1330, 390, 4188, 198, 6738, 33245, 1330, 2750, 4879, 9399, 198, 6738, 4704, 278, 1330, 8558, 11, 13656, 628, 198, 4871, 609, 2954, 7, 45992, 9399, 2599, 198, 220, 220, 220, 37227, 32, 2060, 16058, 11, 636, 286, 262, 11876...
3.24375
160
from rest_framework import serializers from .models import Teacher, Student, Lecture, Div, Subject
[ 6738, 1334, 62, 30604, 1330, 11389, 11341, 201, 198, 6738, 764, 27530, 1330, 32019, 11, 13613, 11, 31209, 495, 11, 4777, 11, 15540, 201, 198, 201, 198, 201, 198, 201, 198 ]
3.451613
31
import requests import os from telegram.ext import Updater, CommandHandler, MessageHandler, Filters, CallbackContext from telegram import Update import speech_recognition as sr import ffmpeg
[ 11748, 7007, 198, 11748, 28686, 198, 6738, 573, 30536, 13, 2302, 1330, 3205, 67, 729, 11, 9455, 25060, 11, 16000, 25060, 11, 7066, 1010, 11, 4889, 1891, 21947, 198, 6738, 573, 30536, 1330, 10133, 198, 11748, 4046, 62, 26243, 653, 355, ...
3.618182
55
# Copyright (c) 2016, Quang-Nhat Hoang-Xuan # # 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 t...
[ 2, 15069, 357, 66, 8, 1584, 11, 2264, 648, 12, 45, 5183, 9544, 648, 12, 55, 7258, 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, ...
2.143098
2,970
import os,base64 img_base64 = os.environ.get("IMG") imgdata = base64.b64decode(img_base64) file = open('1.jpg','wb') file.write(imgdata) file.close()
[ 11748, 28686, 11, 8692, 2414, 220, 198, 198, 9600, 62, 8692, 2414, 796, 28686, 13, 268, 2268, 13, 1136, 7203, 3955, 38, 4943, 198, 198, 9600, 7890, 796, 2779, 2414, 13, 65, 2414, 12501, 1098, 7, 9600, 62, 8692, 2414, 8, 198, 7753, ...
2.338462
65
from django import forms from .models import Feedback
[ 6738, 42625, 14208, 1330, 5107, 198, 220, 198, 6738, 764, 27530, 1330, 37774, 198, 220, 198 ]
3.625
16
import torch.nn as nn
[ 11748, 28034, 13, 20471, 355, 299, 77, 628, 628, 628, 628, 628 ]
2.583333
12
import pandas as pd import numpy as np from torch import nn import torch import sys sys.path.append('../') from distil.utils.data_handler import DataHandler_Points from distil.active_learning_strategies.badge import BADGE from distil.active_learning_strategies.entropy_sampling import EntropySampling from dist...
[ 11748, 19798, 292, 355, 279, 67, 220, 201, 198, 11748, 299, 32152, 355, 45941, 201, 198, 6738, 28034, 1330, 299, 77, 201, 198, 11748, 28034, 201, 198, 11748, 25064, 201, 198, 17597, 13, 6978, 13, 33295, 10786, 40720, 11537, 201, 198, ...
2.560395
2,227
# def loop_five(): # for x in range (25): # print(x) # if x==5: # return # # print("This line will not excute.") # # loop_five() res = empty_return(4,5) print(res)
[ 2, 825, 9052, 62, 13261, 33529, 198, 2, 220, 220, 220, 220, 329, 2124, 287, 2837, 357, 1495, 2599, 198, 2, 220, 220, 220, 220, 220, 220, 220, 220, 3601, 7, 87, 8, 198, 2, 220, 220, 220, 220, 220, 220, 220, 220, 611, 2124, 855,...
1.896226
106
from pathlib import Path from typing import Dict import yaml
[ 6738, 3108, 8019, 1330, 10644, 198, 6738, 19720, 1330, 360, 713, 198, 198, 11748, 331, 43695, 628, 198 ]
3.555556
18
# A Backtracking program in Python to solve Sudoku problem # Function to Find the entry in the Grid that is still not used # Searches the grid to find an entry that is still unassigned. If # found, the reference parameters row, col will be set the location # that is unassigned, and true is returned. If no unassigne...
[ 2, 317, 5157, 36280, 1430, 220, 287, 11361, 284, 8494, 14818, 11601, 1917, 628, 198, 2, 15553, 284, 9938, 262, 5726, 287, 262, 24846, 326, 318, 991, 220, 407, 973, 198, 2, 42016, 2052, 262, 10706, 284, 1064, 281, 5726, 326, 318, 991...
4.211604
293
import torch import torch.nn as nn import resnet import torch.nn.functional as F
[ 11748, 28034, 198, 11748, 28034, 13, 20471, 355, 299, 77, 198, 11748, 581, 3262, 198, 11748, 28034, 13, 20471, 13, 45124, 355, 376, 628, 220, 220, 220, 220, 220, 220, 220, 220, 628, 198 ]
2.735294
34
from flask import request from flask_restful import Resource, reqparse from passlib.hash import pbkdf2_sha256 from passlib.utils import saslprep from flask_jwt_extended import jwt_required, get_jwt_identity from jsonschema import validate from app.json_validation_schemas import user_schema, user_patch_schema """" User...
[ 6738, 42903, 1330, 2581, 198, 6738, 42903, 62, 2118, 913, 1330, 20857, 11, 43089, 29572, 198, 6738, 1208, 8019, 13, 17831, 1330, 279, 65, 74, 7568, 17, 62, 26270, 11645, 198, 6738, 1208, 8019, 13, 26791, 1330, 264, 292, 75, 46012, 198...
2.576347
668
from .sed import SED, SEDV2, SEDV3, SEDV4, ConformerSED, ImageSED from .wav2vec import Wav2VecSequenceClassification
[ 6738, 764, 36622, 1330, 311, 1961, 11, 311, 1961, 53, 17, 11, 311, 1961, 53, 18, 11, 311, 1961, 53, 19, 11, 1482, 16354, 50, 1961, 11, 7412, 50, 1961, 198, 6738, 764, 45137, 17, 35138, 1330, 370, 615, 17, 53, 721, 44015, 594, 94...
2.489362
47
import os import glob import numpy as np from optparse import OptionParser import configparser
[ 11748, 28686, 198, 11748, 15095, 198, 11748, 299, 32152, 355, 45941, 198, 6738, 2172, 29572, 1330, 16018, 46677, 198, 11748, 4566, 48610, 198 ]
4.130435
23
# -*- encoding: utf-8 -*- """ @File : test.py @Time : 2020/4/15 22:50 @Author : Alessia K @Email : ------ """ import os from datetime import datetime import numpy as np import torch import torch.nn.functional as F from torch.utils.data import DataLoader from utils.dataset import SingleDatase...
[ 2, 532, 9, 12, 21004, 25, 3384, 69, 12, 23, 532, 9, 12, 201, 198, 37811, 201, 198, 31, 8979, 220, 220, 220, 1058, 1332, 13, 9078, 201, 198, 31, 7575, 220, 220, 220, 1058, 12131, 14, 19, 14, 1314, 2534, 25, 1120, 201, 198, 31, ...
2.428571
294
# -*- coding: utf-8 -*- import base64 import rsa __all__ = ['rsa_encrypt'] def rsa_encrypt(s, pubkey_str): ''' rsa加密 :param s: :param pubkey_str:公钥 :return: ''' key = _str2key(pubkey_str) modulus = int(key[0], 16) exponent = int(key[1], 16) pubkey = rsa.PublicKe...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 201, 198, 11748, 2779, 2414, 201, 198, 11748, 374, 11400, 201, 198, 201, 198, 834, 439, 834, 796, 37250, 3808, 64, 62, 12685, 6012, 20520, 201, 198, 201, 198, 4299, 374, 11...
1.929577
213
# Host aws-bridge # Hostname 52.11.179.66 # IdentityFile ~/.ssh/jm-office-bridge-key.pem # User ubuntu # < SessionData # SessionId = "bridge/cliqr-4.5/cliqr cco" # SessionName = "cliqr cco" # ImageKey = "computer" # Host = "10.201.1.79" # Port = "22" # Proto = "SSH" # PuttySession = "Default Settings" # Username = "ce...
[ 2, 14504, 3253, 82, 12, 9458, 198, 2, 14504, 3672, 6740, 13, 1157, 13, 21738, 13, 2791, 198, 2, 27207, 8979, 39763, 45824, 14, 73, 76, 12, 31810, 12, 9458, 12, 2539, 13, 79, 368, 198, 2, 11787, 20967, 11157, 198, 198, 2, 1279, 2...
2.380984
1,504
from django.views.generic import ListView from . models import Note from . forms import NoteForm from django.views.generic.edit import FormView from django.views.generic.edit import FormMixin from django.views.generic.edit import ModelFormMixin from django.shortcuts import render
[ 6738, 42625, 14208, 13, 33571, 13, 41357, 1330, 7343, 7680, 198, 6738, 764, 4981, 1330, 5740, 198, 6738, 764, 5107, 1330, 5740, 8479, 198, 6738, 42625, 14208, 13, 33571, 13, 41357, 13, 19312, 1330, 5178, 7680, 198, 6738, 42625, 14208, 1...
3.76
75
import pandas as pd import sys import os province = sys.argv[1]; print(province) source_total_cases = 'covid_stats/districts/'+ province + '/' + province + '.csv' cleaned_total_cases = 'covid_stats/districts/'+ province + '/' + province +'_clean.csv' destination_total_cases = 'covid_stats/districts/'+ province + '/' +...
[ 11748, 19798, 292, 355, 279, 67, 198, 11748, 25064, 198, 11748, 28686, 198, 15234, 924, 796, 25064, 13, 853, 85, 58, 16, 11208, 198, 4798, 7, 15234, 924, 8, 198, 10459, 62, 23350, 62, 33964, 796, 705, 66, 709, 312, 62, 34242, 14, ...
2.369722
1,942
import math from component import facing from component import moving_vector from component import position from .system import System from logcat import LogCat # moving.py
[ 198, 11748, 10688, 198, 198, 6738, 7515, 1330, 6476, 198, 6738, 7515, 1330, 3867, 62, 31364, 198, 6738, 7515, 1330, 2292, 198, 198, 6738, 764, 10057, 1330, 4482, 198, 198, 6738, 2604, 9246, 1330, 5972, 21979, 198, 198, 2, 3867, 13, 90...
4.139535
43
# Copyright 2016-2021, Pulumi 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 law or agreed t...
[ 2, 15069, 1584, 12, 1238, 2481, 11, 21624, 12994, 10501, 13, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 2, 345, 743, 407, 779, 428, 2393, 2845, 287, 11846, 351, 262, 1...
3.119355
930
from torchdistill.common import misc_util LOSS_DICT = misc_util.get_classes_as_dict('torch.nn.modules.loss')
[ 6738, 28034, 17080, 359, 13, 11321, 1330, 12747, 62, 22602, 198, 198, 43, 18420, 62, 35, 18379, 796, 12747, 62, 22602, 13, 1136, 62, 37724, 62, 292, 62, 11600, 10786, 13165, 354, 13, 20471, 13, 18170, 13, 22462, 11537, 628 ]
2.775
40
from core.utils.momentjs import momentjs from flask import Flask from decouple import config from core.utils.ig_downloader import IGDownloader from core.utils.yt_downloader import YTDownloader from core.utils.slideshare_downloader import SlideShareDownloader from flask_mail import Mail from flask_socketio import Socket...
[ 6738, 4755, 13, 26791, 13, 32542, 298, 8457, 1330, 2589, 8457, 198, 6738, 42903, 1330, 46947, 198, 6738, 875, 43846, 1330, 4566, 198, 6738, 4755, 13, 26791, 13, 328, 62, 15002, 263, 1330, 35336, 10002, 263, 198, 6738, 4755, 13, 26791, ...
3.205036
278
from parsl import * import parsl workers = ThreadPoolExecutor(max_workers=4) @App('bash', workers) @App('bash', workers) @App('bash', workers) @App('bash', workers) @App('bash', workers)
[ 6738, 13544, 75, 1330, 1635, 198, 11748, 13544, 75, 198, 198, 22896, 796, 14122, 27201, 23002, 38409, 7, 9806, 62, 22896, 28, 19, 8, 198, 31, 4677, 10786, 41757, 3256, 3259, 8, 198, 198, 31, 4677, 10786, 41757, 3256, 3259, 8, 198, 1...
2.782609
69
# -*- coding: utf8 -*- # Copyright (C) 2015 - Philipp Temminghoff <phil65@kodi.tv> # This program is Free Software see LICENSE file for details import sys import xbmc import xbmcplugin import xbmcgui from resources.lib.process import start_info_actions from resources.lib.Utils import * from resources.lib.TheMovieDB i...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 23, 532, 9, 12, 198, 198, 2, 15069, 357, 34, 8, 1853, 532, 9844, 5825, 2229, 36092, 1279, 28864, 2996, 31, 74, 23130, 13, 14981, 29, 198, 2, 770, 1430, 318, 3232, 10442, 766, 38559, 24290, 239...
3
133
# Import modules import numpy as np from matplotlib import pyplot as plt #%% def phi_func(index, phase_angle): """ Phase function that is needed for the reduced magnitude. The function has two versions, depending on the index ('1' or '2'). Parameters ---------- index : str Phase funct...
[ 2, 17267, 13103, 198, 11748, 299, 32152, 355, 45941, 198, 6738, 2603, 29487, 8019, 1330, 12972, 29487, 355, 458, 83, 198, 198, 2, 16626, 198, 198, 4299, 872, 72, 62, 20786, 7, 9630, 11, 7108, 62, 9248, 2599, 198, 220, 220, 220, 3722...
2.267182
2,328