content
stringlengths
1
1.05M
input_ids
listlengths
1
883k
ratio_char_token
float64
1
22.9
token_count
int64
1
883k
import unittest from pterradactyl.util import as_list, memoize, merge_dict, lookup
[ 11748, 555, 715, 395, 198, 6738, 279, 353, 6335, 529, 2645, 13, 22602, 1330, 355, 62, 4868, 11, 16155, 1096, 11, 20121, 62, 11600, 11, 35847, 628 ]
3.111111
27
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import numpy as np import pandas as pd import os import logging from functions.et_helper import findFile,gaze_to_pandas import functions.et_parse as parse import functions.et_make_df as make_df import functions.et_helper as helper import imp # for edfread reload im...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 628, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 19798, 292, 355, 279, 67, 198, 198, 11748, 28686, 198, 11748, 18931...
2.490798
163
import music21 KEY_TO_SEMITONE = {'c': 0, 'c#': 1, 'db': 1, 'd': 2, 'd#': 3, 'eb': 3, 'e': 4, 'f': 5, 'f#': 6, 'gb': 6, 'g': 7, 'g#': 8, 'ab': 8, 'a': 9, 'a#': 10, 'bb': 10, 'b': 11, 'x': None} translate5 = { 46: 0, 48: 1, 50: 2, 51: 3, 53: 4, 55: 5, ...
[ 11748, 2647, 2481, 628, 198, 20373, 62, 10468, 62, 50, 3620, 2043, 11651, 796, 1391, 6, 66, 10354, 657, 11, 705, 66, 2, 10354, 352, 11, 705, 9945, 10354, 352, 11, 705, 67, 10354, 362, 11, 705, 67, 2, 10354, 513, 11, 705, 1765, 1...
1.570815
233
from dsa.lib.math.tests.fixture import MathTestCase
[ 6738, 288, 11400, 13, 8019, 13, 11018, 13, 41989, 13, 69, 9602, 1330, 16320, 14402, 20448, 628, 198 ]
3
18
# import typing # # import boto3 # import typer # # import pacu.data as p # # # if typing.TYPE_CHECKING: # from mypy_boto3_iam import type_defs as t # from mypy_boto3_iam.client import IAMClient # from mypy_boto3_iam.paginator import ListRolesPaginator # # # def fetch(profile_name: typing.Optional[str] = ty...
[ 2, 1330, 19720, 198, 2, 198, 2, 1330, 275, 2069, 18, 198, 2, 1330, 1259, 525, 198, 2, 198, 2, 1330, 23503, 84, 13, 7890, 355, 279, 198, 2, 198, 2, 198, 2, 611, 19720, 13, 25216, 62, 50084, 2751, 25, 198, 2, 220, 220, 220, 22...
2.354938
324
#!/usr/bin/env python # -*- coding: utf-8 -*- import sys import re import http.cookiejar import urllib.request # your v2ex cookie value for key [auth] after login # refer README.md if cannot find cookie [auth] V2EX_COOKIE = '' V2EX_DOMAIN = r'v2ex.com' V2EX_URL_START = r'https://' + V2EX_DOMAIN V2EX_MISSION = V2EX_U...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 11748, 25064, 198, 11748, 302, 198, 11748, 2638, 13, 44453, 9491, 198, 11748, 2956, 297, 571, 13, 25927, 198, 198,...
2.227273
484
# -*- coding: utf-8 -*- import re import shlex import os import inspect __version__ = '1.1.0' try: FileNotFoundError except NameError: # Python 2 FileNotFoundError = IOError ENV = '.env' def read_env(path=None, environ=None, recurse=True): """Reads a .env file into ``environ`` (which defaults to ``os.e...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 11748, 302, 198, 11748, 427, 2588, 198, 11748, 28686, 198, 11748, 10104, 198, 198, 834, 9641, 834, 796, 705, 16, 13, 16, 13, 15, 6, 198, 198, 28311, 25, 198, 220, 22...
2.248296
1,027
import asyncio import sys from types import TracebackType from typing import Any, AsyncContextManager, List, Optional, Sequence, Tuple, Type from trio import MultiError from p2p.asyncio_utils import create_task
[ 11748, 30351, 952, 198, 11748, 25064, 198, 6738, 3858, 1330, 34912, 1891, 6030, 198, 6738, 19720, 1330, 4377, 11, 1081, 13361, 21947, 13511, 11, 7343, 11, 32233, 11, 45835, 11, 309, 29291, 11, 5994, 198, 198, 6738, 19886, 1330, 15237, 1...
3.689655
58
from setuptools import setup, find_packages VERSION = '0.2' setup( name='trybox-django', version=VERSION, description='TryBox:Django', author='Sophilabs', author_email='contact@sophilabs.com', url='https://github.com/sophilabs/trybox-django', download_url='http://github.com/sophilabs/trybo...
[ 6738, 900, 37623, 10141, 1330, 9058, 11, 1064, 62, 43789, 198, 198, 43717, 796, 705, 15, 13, 17, 6, 198, 198, 40406, 7, 198, 220, 220, 220, 1438, 11639, 28311, 3524, 12, 28241, 14208, 3256, 198, 220, 220, 220, 2196, 28, 43717, 11, ...
2.549858
351
from bflib.items import gems
[ 6738, 275, 2704, 571, 13, 23814, 1330, 23685, 628, 198 ]
3.1
10
from Simulacion import Optimizacion from Simulacion import Graficos from Simulacion import Genetico from Simulacion import Model_close from mylib import mylib
[ 6738, 3184, 377, 49443, 1330, 30011, 528, 49443, 198, 6738, 3184, 377, 49443, 1330, 7037, 69, 291, 418, 198, 6738, 3184, 377, 49443, 1330, 5215, 316, 3713, 198, 6738, 3184, 377, 49443, 1330, 9104, 62, 19836, 198, 6738, 616, 8019, 1330, ...
3.674419
43
# This need to be sorted out in a smarter way
[ 2, 770, 761, 284, 307, 23243, 503, 287, 257, 23714, 835, 198, 220, 220, 220, 220, 220, 220, 220, 220 ]
2.7
20
# # Copyright (c) 2017 Cossack Labs Limited # # 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 i...
[ 2, 198, 2, 15069, 357, 66, 8, 2177, 327, 793, 441, 23500, 15302, 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, ...
2.743017
716
'''Tests the rpc middleware and utilities. It uses the calculator example.''' import unittest from pulsar.apps import rpc from pulsar.apps.http import HttpWsgiClient
[ 7061, 6, 51, 3558, 262, 374, 14751, 3504, 1574, 290, 20081, 13, 632, 3544, 262, 28260, 1672, 2637, 7061, 198, 11748, 555, 715, 395, 198, 198, 6738, 22271, 283, 13, 18211, 1330, 374, 14751, 198, 6738, 22271, 283, 13, 18211, 13, 4023, ...
3.428571
49
# -*- coding: utf-8 -*- """EN3-BT MCD Automatically generated by Colaboratory. Original file is located at https://colab.research.google.com/drive/1cnvSgNDexJ0cqrTWGygI_smZ0y8EIWZn """ import torch import numpy as np import tqdm import copy from torch.nn import functional as F from torch.nn.modules.module import...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 1677, 18, 12, 19313, 337, 8610, 198, 198, 38062, 4142, 7560, 416, 1623, 4820, 2870, 13, 198, 198, 20556, 2393, 318, 5140, 379, 198, 220, 220, 220, 3740, 1378, 4...
2.513705
1,131
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'jriver.ui' # # Created by: PyQt5 UI code generator 5.15.2 # # WARNING: Any manual changes made to this file will be lost when pyuic5 is # run again. Do not edit this file unless you know what you are doing. from PyQt5 import QtCore, QtGui...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 2, 5178, 7822, 7560, 422, 3555, 334, 72, 2393, 705, 73, 38291, 13, 9019, 6, 198, 2, 198, 2, 15622, 416, 25, 9485, 48, 83, 20, 12454, 2438, 17301, 642, 13, 131...
3.015748
127
from src.sensors.door_block_sensor import DoorBlockSensor from src.sensors.door_state_sensor import DoorStateSensor from src.sensors.light_sensor import LightSensor from src.sensors.movement_sensor import MovementSensor from src.sensors.smoke_sensor import SmokeSensor from src.sensors.weight_sensor import WeightSensor
[ 6738, 12351, 13, 82, 641, 669, 13, 9424, 62, 9967, 62, 82, 22854, 1330, 19821, 12235, 47864, 198, 6738, 12351, 13, 82, 641, 669, 13, 9424, 62, 5219, 62, 82, 22854, 1330, 19821, 9012, 47864, 198, 6738, 12351, 13, 82, 641, 669, 13, ...
3.265306
98
# ---------------------------------------------------------------------------- # Title: Scientific Visualisation - Python & Matplotlib # Author: Nicolas P. Rougier # License: BSD # ---------------------------------------------------------------------------- import numpy as np import matplotlib.pyplot as plt import m...
[ 2, 16529, 10541, 198, 2, 11851, 25, 220, 220, 22060, 15612, 5612, 532, 11361, 1222, 6550, 29487, 8019, 198, 2, 6434, 25, 220, 29737, 350, 13, 13876, 70, 959, 198, 2, 13789, 25, 347, 10305, 198, 2, 16529, 10541, 198, 11748, 299, 3215...
3.119048
252
import yaml import socket import subprocess, ctypes, os, sys from subprocess import Popen, DEVNULL def check_admin(): """ Force to start application with admin rights """ try: isAdmin = ctypes.windll.shell32.IsUserAnAdmin() except AttributeError: isAdmin = False if not isAdmin: ...
[ 11748, 331, 43695, 198, 11748, 17802, 198, 11748, 850, 14681, 11, 269, 19199, 11, 28686, 11, 25064, 198, 6738, 850, 14681, 1330, 8099, 268, 11, 5550, 53, 33991, 198, 198, 4299, 2198, 62, 28482, 33529, 198, 220, 220, 220, 37227, 5221, ...
2.523511
957
import __init__ from Kite.database import Database from Kite import config from Kite import utils import jieba import pkuseg import logging logging.basicConfig(level=logging.INFO, format='%(asctime)s %(filename)s[line:%(lineno)d] %(levelname)s %(message)s', datefmt='%a, %d %b ...
[ 11748, 11593, 15003, 834, 198, 198, 6738, 509, 578, 13, 48806, 1330, 24047, 198, 6738, 509, 578, 1330, 4566, 198, 6738, 509, 578, 1330, 3384, 4487, 198, 198, 11748, 474, 494, 7012, 198, 11748, 279, 74, 1904, 70, 198, 11748, 18931, 198...
1.8875
480
from app.docs import SAMPLE_OBJECT_IDS ID_DUPLICATION_CHECK_GET = { 'tags': [''], 'description': ' ().', 'parameters': [ { 'name': 'email', 'description': ' ', 'in': 'path', 'type': 'str', 'required': True } ], 'response...
[ 6738, 598, 13, 31628, 1330, 28844, 16437, 62, 9864, 23680, 62, 14255, 198, 198, 2389, 62, 35, 52, 31484, 6234, 62, 50084, 62, 18851, 796, 1391, 198, 220, 220, 220, 705, 31499, 10354, 685, 7061, 4357, 198, 220, 220, 220, 705, 11213, ...
1.637966
1,475
import sys """ Remove """
[ 11748, 25064, 628, 198, 198, 37811, 17220, 37227, 198 ]
3.222222
9
import numpy as np import pandas as pd from collections import OrderedDict, Counter import itertools from typing import * Group = tuple[str, list[int]] Groups = list[Group]
[ 11748, 299, 32152, 355, 45941, 198, 11748, 19798, 292, 355, 279, 67, 198, 6738, 17268, 1330, 14230, 1068, 35, 713, 11, 15034, 198, 11748, 340, 861, 10141, 198, 6738, 19720, 1330, 1635, 198, 198, 13247, 796, 46545, 58, 2536, 11, 1351, ...
3.301887
53
# my_lambdata/my_mod.py def enlarge(n): """ Param n is a number Function will enlarge the number """ return n * 100 # this code breakes our ability to omport enlarge from other files # print("HELLO") # y = int(input("Please choose a number")) # print(y, enlarge(y)) if __name__ == "__main__": ...
[ 2, 616, 62, 2543, 65, 7890, 14, 1820, 62, 4666, 13, 9078, 628, 198, 4299, 27475, 7, 77, 2599, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 25139, 299, 318, 257, 1271, 198, 220, 220, 220, 15553, 481, 27475, 262, 1271, 198, 220, ...
2.825137
183
from allhub.response import Response from enum import Enum
[ 6738, 477, 40140, 13, 26209, 1330, 18261, 198, 198, 6738, 33829, 1330, 2039, 388, 628, 198 ]
3.875
16
# This file is created by generate_build_files.py. Do not edit manually. test_support_sources = [ "src/crypto/aes/internal.h", "src/crypto/asn1/asn1_locl.h", "src/crypto/bio/internal.h", "src/crypto/bn/internal.h", "src/crypto/bn/rsaz_exp.h", "src/crypto/bytestring/internal.h", "src/crypto/...
[ 2, 770, 2393, 318, 2727, 416, 7716, 62, 11249, 62, 16624, 13, 9078, 13, 2141, 407, 4370, 14500, 13, 198, 198, 9288, 62, 11284, 62, 82, 2203, 796, 685, 198, 220, 220, 220, 366, 10677, 14, 29609, 78, 14, 64, 274, 14, 32538, 13, 71...
1.958275
719
# -*- coding: utf-8 -*- """ Author:by on 2021/11/2 13:02 FileName:ci.py in shiyizhonghua_resource Tools:PyCharm python3.8.4 """ from util import get_time_str, get_json, get_file_path, save_json, \ save_split_json if __name__ == '__main__': dir_name = r'./../data/ci' authors = {} ci_jsons = [] p...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 37811, 198, 13838, 25, 1525, 220, 319, 33448, 14, 1157, 14, 17, 1511, 25, 2999, 198, 8979, 5376, 25, 979, 13, 9078, 287, 427, 7745, 528, 71, 19757, 6413, 62, 31...
1.740189
739
# Copyright 2019 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing,...
[ 2, 15069, 13130, 3012, 3457, 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, 13789, 13, 198, 2, 921, 743, ...
2.823745
817
# coding=utf-8 from related.types import TypedSequence, TypedMapping, TypedSet, ImmutableDict from attr.exceptions import FrozenInstanceError from related.converters import str_if_not_none from collections import OrderedDict import pytest
[ 2, 19617, 28, 40477, 12, 23, 198, 6738, 3519, 13, 19199, 1330, 17134, 276, 44015, 594, 11, 17134, 276, 44, 5912, 11, 17134, 276, 7248, 11, 9543, 18187, 35, 713, 198, 6738, 708, 81, 13, 1069, 11755, 1330, 23673, 33384, 12331, 198, 67...
3.43662
71
import tornado.ioloop import tornado.web import tornado.gen import logging from concurrent.futures import ThreadPoolExecutor logger = logging.getLogger() logger.setLevel(logging.DEBUG) executor = ThreadPoolExecutor(max_workers=2) settings = { 'debug': True } application = tornado.web.Application([ (r'/...
[ 11748, 33718, 13, 1669, 11224, 198, 11748, 33718, 13, 12384, 198, 11748, 33718, 13, 5235, 198, 11748, 18931, 198, 6738, 24580, 13, 69, 315, 942, 1330, 14122, 27201, 23002, 38409, 198, 198, 6404, 1362, 796, 18931, 13, 1136, 11187, 1362, ...
2.910615
179
from dpia.modules import * # @primary_assets_required # @supporting_assets_required # supporting-asset add # @supporting_assets_required # @threats_required # @supporting_assets_required # @threats_required # @threat_assessment_required # @risk_assessment_required
[ 6738, 288, 79, 544, 13, 18170, 1330, 1635, 198, 198, 2, 2488, 39754, 62, 19668, 62, 35827, 198, 2, 2488, 11284, 278, 62, 19668, 62, 35827, 628, 198, 2, 6493, 12, 562, 316, 751, 628, 628, 198, 198, 2, 2488, 11284, 278, 62, 19668, ...
3.066667
90
#!/usr/bin/env python import rospy import sys import numpy as np from geometry_msgs.msg import Pose, Twist from nav_msgs.msg import Odometry from sensor_msgs.msg import Range from math import cos, sin, asin, tan, atan2 # msgs and srv for working with the set_model_service from gazebo_msgs.msg import ModelState from ga...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 11748, 686, 2777, 88, 198, 11748, 25064, 198, 198, 11748, 299, 32152, 355, 45941, 198, 6738, 22939, 62, 907, 14542, 13, 19662, 1330, 37557, 11, 44088, 198, 6738, 6812, 62, 907, 14542, ...
2.701128
532
""" package related livefs modification subsystem """
[ 37811, 198, 26495, 3519, 2107, 9501, 17613, 39335, 198, 37811, 198 ]
4.909091
11
# # # : # # # # # preorder =[3,9,20,15,7] # inorder = [9,3,15,20,7] # # # # 3 # / \ # 9 20 # / \ # 15 7 # Related Topics # leetcode submit region begin(Prohibit modification and deletion) # Definition for a binary tree node. # leetcode submit region end(Prohibit modification and deletion)...
[ 2, 220, 198, 2, 198, 2, 1058, 198, 2, 220, 198, 2, 198, 2, 220, 198, 2, 198, 2, 220, 662, 2875, 796, 58, 18, 11, 24, 11, 1238, 11, 1314, 11, 22, 60, 198, 2, 220, 287, 2875, 796, 685, 24, 11, 18, 11, 1314, 11, 1238, 11, ...
2.244755
143
# A child is playing a cloud hopping game. In this game, there are sequentially numbered clouds that can be thunderheads or cumulus clouds. The character must jump from cloud to cloud until it reaches the start again. # There is an array of clouds, e and an energy level e=100. The character starts from c[0] and uses 1...
[ 2, 317, 1200, 318, 2712, 257, 6279, 47153, 983, 13, 554, 428, 983, 11, 612, 389, 4726, 3746, 25840, 15114, 326, 460, 307, 18355, 16600, 393, 10973, 23515, 15114, 13, 383, 2095, 1276, 4391, 422, 6279, 284, 6279, 1566, 340, 12229, 262, ...
3.77381
252
# -*- coding: utf-8 -*- """ computes the lag of the amdf function Args: x: audio signal iBlockLength: block length in samples iHopLength: hop length in samples f_s: sample rate of audio data (unused) Returns: f frequency t time stamp for the frequency value """ import numpy as np impo...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 198, 5589, 1769, 262, 19470, 286, 262, 716, 7568, 2163, 628, 220, 943, 14542, 25, 198, 220, 220, 220, 2124, 25, 6597, 6737, 198, 220, 220, 220, 1312, 12235, 245...
2.79661
118
from google.appengine.ext import ndb ATTACHMENTS = [ 'beforeBegin', 'afterEnd', 'middle' ] TYPES = [ 'strike', 'insert' ]
[ 6738, 23645, 13, 1324, 18392, 13, 2302, 1330, 299, 9945, 198, 198, 17139, 16219, 28957, 796, 685, 198, 220, 705, 19052, 44140, 3256, 198, 220, 705, 8499, 12915, 3256, 198, 220, 705, 27171, 6, 198, 60, 198, 198, 9936, 47, 1546, 796, ...
2.392857
56
import logging logger = logging.getLogger(__name__) GLOBAL_LANG_NAME = 'en'
[ 198, 11748, 18931, 198, 198, 6404, 1362, 796, 18931, 13, 1136, 11187, 1362, 7, 834, 3672, 834, 8, 628, 198, 8763, 9864, 1847, 62, 43, 15567, 62, 20608, 796, 705, 268, 6, 628, 198 ]
2.411765
34
import os import math import numpy as np import time import torch import torch.optim as optim from torch.utils.data import DataLoader from tensorboardX import SummaryWriter import sys sys.path.append(os.path.dirname("../")) from lib.utils.meter import Meter from models.model_MNFEAM import MFEAM_SSN from lib.dataset.s...
[ 11748, 28686, 198, 11748, 10688, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 640, 198, 11748, 28034, 198, 11748, 28034, 13, 40085, 355, 6436, 198, 6738, 28034, 13, 26791, 13, 7890, 1330, 6060, 17401, 198, 6738, 11192, 273, 3526, 55, ...
2.08055
1,018
# -*- coding: utf-8 -*- # Generated by Django 1.11.20 on 2019-05-09 12:19 from __future__ import unicode_literals import core.model_fields import core.models import core.validators import core.wagtail_fields 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, 1157, 13, 1238, 319, 13130, 12, 2713, 12, 2931, 1105, 25, 1129, 198, 6738, 11593, 37443, 834, 1330, 28000, 1098, 62, 17201, 874, 198...
2.958333
96
''' New Integration Test for 2 normal users zstack-cli login @author: MengLai ''' import hashlib import zstackwoodpecker.operations.account_operations as acc_ops import zstackwoodpecker.test_util as test_util import zstackwoodpecker.test_lib as test_lib import zstackwoodpecker.test_state as test_state import...
[ 7061, 6, 201, 198, 3791, 38410, 6208, 329, 362, 3487, 2985, 1976, 25558, 12, 44506, 17594, 201, 198, 201, 198, 31, 9800, 25, 41272, 43, 1872, 201, 198, 7061, 6, 201, 198, 11748, 12234, 8019, 201, 198, 11748, 1976, 25558, 3822, 431, ...
2.908676
219
"""Unit tests for the :mod:`networkx.algorithms.structuralholes` module.""" import math import pytest import networkx as nx
[ 37811, 26453, 5254, 329, 262, 1058, 4666, 25, 63, 27349, 87, 13, 282, 7727, 907, 13, 7249, 1523, 28439, 63, 8265, 526, 15931, 198, 11748, 10688, 198, 11748, 12972, 9288, 198, 11748, 3127, 87, 355, 299, 87, 628 ]
3.289474
38
"""Tests for the logbook component."""
[ 37811, 51, 3558, 329, 262, 2604, 2070, 7515, 526, 15931, 198 ]
3.545455
11
""" Asset Allocation By Patrick Murrell Created 6/17/2020 This program that takes a csv positions file from fidelity.com from a Roth IRA account that contains the investments of SPAXX, FXNAX, FZILX, and FZROX. Since SPAXX is a Money Market fund then it is assumed that the money in here is not meant to be calcul...
[ 37811, 201, 198, 45869, 1439, 5040, 201, 198, 3886, 9925, 5921, 11252, 201, 198, 41972, 718, 14, 1558, 14, 42334, 201, 198, 201, 198, 1212, 1430, 326, 2753, 257, 269, 21370, 6116, 2393, 422, 37744, 13, 785, 422, 257, 16131, 27859, 184...
3.47191
534
#!/usr/bin/env python __author__ = 'Kurohashi-Kawahara Lab, Kyoto Univ.' __email__ = 'contact@nlp.ist.i.kyoto-u.ac.jp' __copyright__ = '' __license__ = 'See COPYING' import os from setuptools import setup, find_packages about = {} here = os.path.abspath(os.path.dirname(__file__)) exec(open(os.path.join(here, 'pyknp'...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 198, 834, 9800, 834, 796, 705, 42, 1434, 71, 12144, 12, 42, 707, 993, 3301, 3498, 11, 36298, 40429, 2637, 198, 834, 12888, 834, 796, 705, 32057, 31, 21283, 79, 13, 396, 13, 72, 13,...
2.504087
367
import collections from supriya import CalculationRate from supriya.ugens.DUGen import DUGen
[ 11748, 17268, 198, 198, 6738, 424, 3448, 3972, 1330, 2199, 14902, 32184, 198, 6738, 424, 3448, 3972, 13, 1018, 641, 13, 35, 7340, 268, 1330, 360, 7340, 268, 628 ]
3.275862
29
from database.models import Team, UserProfile from _main_.utils.massenergize_errors import MassEnergizeAPIError, InvalidResourceError, ServerError, CustomMassenergizeError from _main_.utils.massenergize_response import MassenergizeResponse from _main_.utils.context import Context
[ 6738, 6831, 13, 27530, 1330, 4816, 11, 11787, 37046, 198, 6738, 4808, 12417, 44807, 26791, 13, 22208, 877, 70, 1096, 62, 48277, 1330, 5674, 36, 25649, 1096, 17614, 12331, 11, 17665, 26198, 12331, 11, 9652, 12331, 11, 8562, 20273, 877, 7...
3.888889
72
""" https://oj.leetcode.com/problems/valid-parentheses/ Given a string containing just the characters '(', ')', '{', '}', '[' and ']', determine if the input string is valid. The brackets must close in the correct order, "()" and "()[]{}" are all valid but "(]" and "([)]" are not. """ if __name__ == '__main__': ...
[ 37811, 198, 5450, 1378, 13210, 13, 293, 316, 8189, 13, 785, 14, 1676, 22143, 14, 12102, 12, 8000, 39815, 14, 198, 198, 15056, 257, 4731, 7268, 655, 262, 3435, 29513, 3256, 705, 8, 3256, 705, 90, 3256, 705, 92, 3256, 705, 17816, 290,...
2.673171
205
from random import random print (joga_moeda())
[ 6738, 4738, 1330, 4738, 198, 4798, 357, 73, 10949, 62, 5908, 18082, 28955 ]
3.538462
13
# -*- coding: utf-8 -*- # Generated by Django 1.11.7 on 2017-11-30 16:38 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, 22, 319, 2177, 12, 1157, 12, 1270, 1467, 25, 2548, 198, 6738, 11593, 37443, 834, 1330, 28000, 1098, 62, 17201, 874, 198, ...
2.736842
57
import pytest from model_bakery import baker pytestmark = pytest.mark.django_db
[ 11748, 12972, 9288, 198, 6738, 2746, 62, 65, 33684, 1330, 46412, 198, 198, 9078, 9288, 4102, 796, 12972, 9288, 13, 4102, 13, 28241, 14208, 62, 9945, 628 ]
3.037037
27
import click from dotpyle.commands.add.dotfile import dotfile add.add_command(dotfile)
[ 11748, 3904, 198, 198, 6738, 16605, 79, 2349, 13, 9503, 1746, 13, 2860, 13, 26518, 7753, 1330, 16605, 7753, 628, 198, 198, 2860, 13, 2860, 62, 21812, 7, 26518, 7753, 8, 198 ]
2.84375
32
import sys import os from common.invoker import newRequest from common.invoker import request from common.invoker import threadize port = 8080 if len(sys.argv) > 1: port = int(sys.argv[1]) workload = 10000 req = newRequest( "GET", "http://localhost:{0}/".format(port), headers = { "X-FUNCTION...
[ 11748, 25064, 198, 11748, 28686, 198, 198, 6738, 2219, 13, 16340, 11020, 1330, 649, 18453, 198, 6738, 2219, 13, 16340, 11020, 1330, 2581, 198, 6738, 2219, 13, 16340, 11020, 1330, 4704, 1096, 198, 198, 634, 796, 4019, 1795, 198, 361, 188...
2.563492
252
import sys import numpy as np import h5py import random import os from subprocess import check_output # 1. h5 i/o # 2. segmentation wrapper # 3. evaluation """ def runBash(cmd): fn = '/tmp/tmp_'+str(random.random())[2:]+'.sh' print('tmp bash file:',fn) writetxt(fn, cmd) os.chmod(fn, 0755) out =...
[ 11748, 25064, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 289, 20, 9078, 198, 11748, 4738, 198, 11748, 28686, 198, 198, 6738, 850, 14681, 1330, 2198, 62, 22915, 198, 198, 2, 352, 13, 289, 20, 1312, 14, 78, 628, 198, 2, 362, 13, ...
2.35625
160
#!/usr/bin/env python # This example demonstrates how to extract "computational planes" from # a structured dataset. Structured data has a natural, logical # coordinate system based on i-j-k indices. Specifying imin,imax, # jmin,jmax, kmin,kmax pairs can indicate a point, line, plane, or # volume of data. # # In this ...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 198, 2, 770, 1672, 15687, 703, 284, 7925, 366, 785, 1996, 864, 13016, 1, 422, 198, 2, 257, 20793, 27039, 13, 32112, 1522, 1366, 468, 257, 3288, 11, 12219, 198, 2, 20435, 1080, 1912, ...
2.779474
1,179
from diagrams import Cluster, Diagram, Edge from diagrams.aws.compute import EC2 from diagrams.aws.database import RDS from diagrams.aws.integration import SQS from diagrams.aws.network import ELB from diagrams.aws.storage import S3 from diagrams.onprem.ci import Jenkins from diagrams.onprem.client import Client, User,...
[ 6738, 37067, 1330, 38279, 11, 6031, 6713, 11, 13113, 198, 6738, 37067, 13, 8356, 13, 5589, 1133, 1330, 13182, 17, 198, 6738, 37067, 13, 8356, 13, 48806, 1330, 371, 5258, 198, 6738, 37067, 13, 8356, 13, 18908, 1358, 1330, 49747, 50, 19...
3.300668
449
from django.db import models
[ 6738, 42625, 14208, 13, 9945, 1330, 4981, 198 ]
3.625
8
from __future__ import absolute_import, division, print_function from builtins import * # @UnusedWildImport from mcculw import ul from mcculw.ul import ULError from examples.console import util from examples.props.ai import AnalogInputProps use_device_detection = True if __name__ == '__main__': run_example(...
[ 6738, 11593, 37443, 834, 1330, 4112, 62, 11748, 11, 7297, 11, 3601, 62, 8818, 198, 198, 6738, 3170, 1040, 1330, 1635, 220, 1303, 2488, 3118, 1484, 25946, 20939, 198, 6738, 285, 535, 377, 86, 1330, 14856, 198, 6738, 285, 535, 377, 86, ...
3.156863
102
from oocsi import OOCSI from NAO_Speak import NAO_Speak # (file name followed by class name) import unidecode ################################# IP = "IP_OF_PEPPER_ROBOT" text = "" my_nao = NAO_Speak(IP, 9559) ################################## if __name__ == "__main__": #o = OOCSI('abc', "oocsi.id.tue.nl", callb...
[ 6738, 267, 420, 13396, 1330, 440, 4503, 11584, 198, 6738, 11746, 46, 62, 5248, 461, 1330, 11746, 46, 62, 5248, 461, 220, 1303, 357, 7753, 1438, 3940, 416, 1398, 1438, 8, 198, 11748, 555, 485, 8189, 198, 198, 29113, 2, 198, 4061, 796...
2.573964
169
# encoding:utf-8 import asyncio import os import mimetypes from urllib import parse response = { # 200: [b'HTTP/1.0 200 OK\r\n', # response # b'Connection: close\r\n', # b'Content-Type:text/html; charset=utf-8\r\n', # b'\r\n'], 404: [b'HTTP/1.0 404 Not Found\r\n', # response ...
[ 2, 21004, 25, 40477, 12, 23, 198, 11748, 30351, 952, 198, 11748, 28686, 198, 11748, 17007, 2963, 12272, 198, 6738, 2956, 297, 571, 1330, 21136, 198, 198, 26209, 796, 1391, 198, 220, 220, 220, 1303, 939, 25, 685, 65, 6, 40717, 14, 16...
2.052375
821
from core.object import Object style= Object({ 'btn': { 'bg': '#123321', 'fg': '#dddddd', 'font': ('Ariel', 14, 'bold') } })
[ 6738, 4755, 13, 15252, 1330, 9515, 198, 198, 7635, 28, 9515, 15090, 198, 220, 220, 220, 705, 46118, 10354, 1391, 198, 220, 220, 220, 220, 220, 220, 220, 705, 35904, 10354, 705, 2, 1065, 2091, 2481, 3256, 198, 220, 220, 220, 220, 220...
1.938272
81
t=Test() t.display() print(t.a,t.b)
[ 201, 198, 83, 28, 14402, 3419, 201, 198, 83, 13, 13812, 3419, 201, 198, 4798, 7, 83, 13, 64, 11, 83, 13, 65, 8 ]
1.625
24
from physics import * s1, s2 = Speed(9, 3, unit='cm/s', extra_units=['cm/h']), Speed(9, 2, unit='cm/h', extra_units=['cm/h']) print(s2.distance.unit)
[ 6738, 11887, 1330, 1635, 198, 198, 82, 16, 11, 264, 17, 796, 8729, 7, 24, 11, 513, 11, 4326, 11639, 11215, 14, 82, 3256, 3131, 62, 41667, 28, 17816, 11215, 14, 71, 20520, 828, 8729, 7, 24, 11, 362, 11, 4326, 11639, 11215, 14, 71...
2.253731
67
import random import time from book_book.books_directory import books_requests_queue from book_book.rental_request import RentalRequest
[ 11748, 4738, 198, 198, 11748, 640, 198, 198, 6738, 1492, 62, 2070, 13, 12106, 62, 34945, 1330, 3835, 62, 8897, 3558, 62, 36560, 198, 6738, 1492, 62, 2070, 13, 1156, 282, 62, 25927, 1330, 371, 2470, 18453, 628 ]
3.657895
38
emk.module("java")
[ 368, 74, 13, 21412, 7203, 12355, 4943, 198 ]
2.375
8
# Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed ...
[ 2, 220, 220, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 2, 220, 220, 345, 743, 407, 779, 428, 2393, 2845, 287, 11846, 351, 262, 13789, 13, 198, 2, 220, 220, 921, 743, 7330, 257, 4866,...
3.629032
248
from typing import List import dace from dace import subsets from dace import memlet from dace import dtypes from dace.sdfg.sdfg import InterstateEdge, SDFG from dace.sdfg.state import SDFGState from dace.transformation.interstate.sdfg_nesting import NestSDFG from dace.transformation.optimizer import Optimizer from dac...
[ 6738, 19720, 1330, 7343, 198, 11748, 288, 558, 198, 6738, 288, 558, 1330, 6352, 1039, 198, 6738, 288, 558, 1330, 1066, 1616, 198, 6738, 288, 558, 1330, 288, 19199, 198, 6738, 288, 558, 13, 82, 7568, 70, 13, 82, 7568, 70, 1330, 30739...
3.386525
282
""" WAVECAR parser. --------------- The file parser that handles the parsing of WAVECAR files. """ from aiida_vasp.parsers.file_parsers.parser import BaseFileParser from aiida_vasp.parsers.node_composer import NodeComposer
[ 37811, 198, 54, 10116, 2943, 1503, 30751, 13, 198, 198, 24305, 198, 464, 2393, 30751, 326, 17105, 262, 32096, 286, 370, 10116, 2943, 1503, 3696, 13, 198, 37811, 198, 6738, 257, 72, 3755, 62, 85, 5126, 13, 79, 945, 364, 13, 7753, 62,...
2.960526
76
#! /usr/bin/env python # encoding: utf-8 import re import os import subprocess import json
[ 2, 0, 1220, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 21004, 25, 3384, 69, 12, 23, 198, 198, 11748, 302, 198, 11748, 28686, 198, 11748, 850, 14681, 198, 11748, 33918, 628, 628, 198 ]
2.823529
34
from copy import deepcopy import numpy as np import tensorflow as tf from ampligraph.datasets import NumpyDatasetAdapter, AmpligraphDatasetAdapter from ampligraph.latent_features import SGDOptimizer, constants from ampligraph.latent_features.initializers import DEFAULT_XAVIER_IS_UNIFORM from ampligraph.latent_features...
[ 6738, 4866, 1330, 2769, 30073, 198, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 11192, 273, 11125, 355, 48700, 198, 6738, 12306, 45920, 13, 19608, 292, 1039, 1330, 399, 32152, 27354, 292, 316, 47307, 11, 44074, 45920, 27354, 292, 316,...
3.375
160
# num2txt.py # Jeff Smith ''' Convert a given number into its text representation. e.g. 67 becomes 'sixty-seven'. Handle numbers from 0-99. ''' # Create dictionaries of number-text key pairs ones = {0: '', 1: 'one', 2: 'two', 3: 'three', 4: 'four', 5: 'five', 6: 'six', 7: 'seven', 8: 'eight', 9: 'nine'} twos...
[ 2, 997, 17, 14116, 13, 9078, 198, 2, 5502, 4176, 198, 198, 7061, 6, 198, 3103, 1851, 257, 1813, 1271, 656, 663, 2420, 10552, 13, 198, 68, 13, 70, 13, 8275, 4329, 705, 82, 19404, 12, 26548, 4458, 33141, 3146, 422, 657, 12, 2079, ...
2.408
375
import ctypes from typing import get_type_hints, Any from abc import ABC from .c_pointer import TypedCPointer, attempt_decode from contextlib import suppress
[ 11748, 269, 19199, 201, 198, 6738, 19720, 1330, 651, 62, 4906, 62, 71, 29503, 11, 4377, 201, 198, 6738, 450, 66, 1330, 9738, 201, 198, 6738, 764, 66, 62, 29536, 1330, 17134, 276, 8697, 78, 3849, 11, 2230, 62, 12501, 1098, 201, 198, ...
3.173077
52
__source__ = 'https://leetcode.com/problems/kth-smallest-number-in-multiplication-table/' # Time: O() # Space: O() # # Description: Leetcode # 668. Kth Smallest Number in Multiplication Table # # Nearly every one have used the Multiplication Table. # But could you find out the k-th smallest number quickly from the mul...
[ 834, 10459, 834, 796, 705, 5450, 1378, 293, 316, 8189, 13, 785, 14, 1676, 22143, 14, 74, 400, 12, 17470, 395, 12, 17618, 12, 259, 12, 47945, 3299, 12, 11487, 14, 6, 198, 2, 3862, 25, 220, 440, 3419, 198, 2, 4687, 25, 440, 3419, ...
2.131354
1,987
import ezc3d # This example reads a file that contains 2 force platforms. It thereafter print some metadata and data for one them c3d = ezc3d.c3d("../c3dFiles/ezc3d-testFiles-master/ezc3d-testFiles-master/Qualisys.c3d", extract_forceplat_data=True) print(f"Number of force platform = {len(c3d['data']['platform'])}") ...
[ 11748, 304, 89, 66, 18, 67, 198, 198, 2, 770, 1672, 9743, 257, 2393, 326, 4909, 362, 2700, 9554, 13, 632, 19547, 3601, 617, 20150, 290, 1366, 329, 530, 606, 198, 198, 66, 18, 67, 796, 304, 89, 66, 18, 67, 13, 66, 18, 67, 7203,...
2.56982
444
from __future__ import print_function, unicode_literals import os from io import open from pyNastran.utils.log import get_logger2 import shutil IGNORE_DIRS = ['src', 'dmap', 'solver', '__pycache__', 'op4_old', 'calculix', 'bars', 'case_control', 'pch', 'old', 'solver', 'test', 'dev', 'bkp...
[ 6738, 11593, 37443, 834, 1330, 3601, 62, 8818, 11, 28000, 1098, 62, 17201, 874, 198, 11748, 28686, 198, 6738, 33245, 1330, 1280, 198, 6738, 12972, 45, 459, 2596, 13, 26791, 13, 6404, 1330, 651, 62, 6404, 1362, 17, 198, 11748, 4423, 34...
2.199365
1,259
import pandas as pd from toucan_data_sdk.utils.postprocess import top, top_group def test_top(): """ It should return result for top """ data = pd.DataFrame( [ {'variable': 'toto', 'Category': 1, 'value': 100}, {'variable': 'toto', 'Category': 1, 'value': 200}, {'v...
[ 11748, 19798, 292, 355, 279, 67, 198, 198, 6738, 2819, 5171, 62, 7890, 62, 21282, 74, 13, 26791, 13, 7353, 14681, 1330, 1353, 11, 1353, 62, 8094, 628, 198, 4299, 1332, 62, 4852, 33529, 198, 220, 220, 220, 37227, 632, 815, 1441, 1255...
1.977041
2,352
from Main import db, login_manager from faker import Faker from flask_login import UserMixin from werkzeug.security import generate_password_hash, check_password_hash fake = Faker()
[ 6738, 8774, 1330, 20613, 11, 17594, 62, 37153, 198, 6738, 277, 3110, 1330, 376, 3110, 198, 6738, 42903, 62, 38235, 1330, 11787, 35608, 259, 198, 6738, 266, 9587, 2736, 1018, 13, 12961, 1330, 7716, 62, 28712, 62, 17831, 11, 2198, 62, 2...
3.481481
54
import sys import os import SimpleITK as sitk import pydicom from slugify import slugify import shutil import argparse parser = argparse.ArgumentParser(description='MoveRestructureScript') parser.add_argument("--dicomDir", dest="in_dir", required=True) parser.add_argument("--outDir", dest="out_dir", requi...
[ 11748, 25064, 198, 11748, 28686, 198, 11748, 17427, 2043, 42, 355, 1650, 74, 198, 11748, 279, 5173, 291, 296, 198, 6738, 31065, 1958, 1330, 31065, 1958, 198, 11748, 4423, 346, 198, 11748, 1822, 29572, 198, 220, 220, 220, 220, 220, 220, ...
2.813333
150
from PyQt5 import QtWidgets from .cnmf_viz_pytemplate import Ui_VizualizationWidget from .evaluate_components import EvalComponentsWidgets from mesmerize_core.utils import * from mesmerize_core import * import caiman as cm
[ 6738, 9485, 48, 83, 20, 1330, 33734, 54, 312, 11407, 198, 6738, 764, 66, 21533, 69, 62, 85, 528, 62, 9078, 28243, 1330, 471, 72, 62, 53, 528, 723, 1634, 38300, 198, 6738, 764, 49786, 62, 5589, 3906, 1330, 26439, 7293, 3906, 54, 31...
3.2
70
# SPDX-License-Identifier: BSD-3-Clause # # Configuration file for textgen. This file defines the graphic lumps # that are generated, and the text to show in each one. # import re # Adjustments for character position based on character pairs. Some # pairs of characters can fit more snugly together, which looks more #...
[ 2, 30628, 55, 12, 34156, 12, 33234, 7483, 25, 347, 10305, 12, 18, 12, 2601, 682, 198, 2, 198, 2, 28373, 2393, 329, 2420, 5235, 13, 770, 2393, 15738, 262, 13028, 300, 8142, 198, 2, 326, 389, 7560, 11, 290, 262, 2420, 284, 905, 28...
2.004569
3,721
import fnmatch, os, subprocess from multiprocessing import Pool import tqdm sdkPath = subprocess.check_output('xcodebuild -version -sdk iphonesimulator Path', shell=True).strip() allFns = [] for root, dirnames, filenames in os.walk(sdkPath): # + '/usr/include'): for filename in fnmatch.filter(filenames, '*.h'): al...
[ 11748, 24714, 15699, 11, 28686, 11, 850, 14681, 198, 6738, 18540, 305, 919, 278, 1330, 19850, 198, 11748, 256, 80, 36020, 198, 198, 21282, 74, 15235, 796, 850, 14681, 13, 9122, 62, 22915, 10786, 87, 8189, 11249, 532, 9641, 532, 21282, ...
2.427711
332
""" Tools for waiting for a cluster. """ import click import click_spinner import urllib3 from cli.common.options import ( superuser_password_option, superuser_username_option, ) from ._common import ClusterVMs from ._options import existing_cluster_id_option
[ 37811, 198, 33637, 329, 4953, 329, 257, 13946, 13, 198, 37811, 198, 198, 11748, 3904, 198, 11748, 3904, 62, 2777, 5083, 198, 11748, 2956, 297, 571, 18, 198, 198, 6738, 537, 72, 13, 11321, 13, 25811, 1330, 357, 198, 220, 220, 220, 22...
3.2
85
if __name__ == '__main__': x = Vertex('x') y = Vertex('y') xy = Edge(x, y) g = Graph([x, y], [xy]) print x print xy print g
[ 628, 198, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 198, 220, 220, 220, 2124, 796, 4643, 16886, 10786, 87, 11537, 198, 220, 220, 220, 331, 796, 4643, 16886, 10786, 88, 11537, 198, 220, 220, 220, 2124, 88, 796, 1...
1.879518
83
# -*- coding: utf-8 -*- """Unit test package for graphql_env."""
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 26453, 1332, 5301, 329, 4823, 13976, 62, 24330, 526, 15931, 198 ]
2.5
26
# -*- coding: utf-8 -*- """ Created on Fri Sep 3 20:33:21 2021 @author: zhang """ import os import numpy as np import pandas as pd import tensorflow as tf from sklearn.model_selection import train_test_split from sklearn.utils import shuffle import tensorflow.keras as keras from tensorflow.keras.preprocessing import ...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 198, 41972, 319, 19480, 8621, 220, 513, 1160, 25, 2091, 25, 2481, 33448, 198, 198, 31, 9800, 25, 1976, 33255, 198, 37811, 198, 11748, 28686, 198, 11748, 299, 3215...
2.472505
1,473
import torch import matplotlib.pyplot as plt import numpy as np import glob import cv2 from esim_torch import EventSimulator_torch if __name__ == "__main__": c = 0.2 refractory_period_ns = 5e6 esim_torch = EventSimulator_torch(contrast_threshold_neg=c, contrast_thresh...
[ 11748, 28034, 198, 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 15095, 198, 11748, 269, 85, 17, 198, 198, 6738, 1658, 320, 62, 13165, 354, 1330, 8558, 8890, 8927, 62, 13165, ...
2.143992
1,007
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ load_csv.py This script controlls all load csv information. Created on: Fri Jul 16 15:54:43 2021 Author: Alex K. Chew (alex.chew@schrodinger.com) Copyright Schrodinger, LLC. All rights reserved. """ # Loading modules import os import pandas as pd import numpy as n...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 198, 2220, 62, 40664, 13, 9078, 198, 198, 1212, 4226, 1246, 297, 82, 477, 3440, 269, 21370, 1321, 13, 198,...
2.233356
2,974
from ivory.layers import (activation, affine, convolution, core, dropout, embedding, loss, normalization, recurrent) __all__ = [ "activation", "affine", "convolution", "core", "dropout", "embedding", "loss", "normalization", "recurrent", ]
[ 6738, 32630, 13, 75, 6962, 1330, 357, 48545, 11, 1527, 500, 11, 3063, 2122, 11, 4755, 11, 4268, 448, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220...
2.244444
135
''' The MIT License (MIT) Copyright (c) 2014 NTHUOJ team Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use,...
[ 7061, 6, 198, 220, 220, 220, 383, 17168, 13789, 357, 36393, 8, 198, 220, 220, 220, 15069, 357, 66, 8, 1946, 399, 4221, 52, 46, 41, 1074, 198, 220, 220, 220, 2448, 3411, 318, 29376, 7520, 11, 1479, 286, 3877, 11, 284, 597, 1048, ...
3.598608
431
""" Wrapper to save the training data to different file formats """
[ 37811, 198, 36918, 2848, 284, 3613, 262, 3047, 1366, 284, 1180, 2393, 17519, 198, 37811, 628 ]
4.3125
16
# Generated by Django 2.2 on 2020-03-30 14:01 from django.db import migrations, models
[ 2, 2980, 515, 416, 37770, 362, 13, 17, 319, 12131, 12, 3070, 12, 1270, 1478, 25, 486, 198, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 11, 4981, 628 ]
2.966667
30
""" Copyright (c) 2017-2020 ABBYY Production LLC Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in wr...
[ 37811, 15069, 357, 66, 8, 2177, 12, 42334, 9564, 17513, 56, 19174, 11419, 198, 198, 26656, 15385, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 5832, 743, 407, 779, 428, 2393, 2845, 287, 11846, 351...
5.142157
204
import time import random import pyson content = """ { "time" : time.time(), random.randint(0, 1) : "a random number", "another_level" : { "test" : 5 }, "main level" : True } """ print(pyson.loads(content, globals(), locals()))
[ 11748, 640, 198, 11748, 4738, 198, 198, 11748, 279, 19699, 198, 198, 11299, 796, 37227, 198, 90, 198, 197, 1, 2435, 1, 1058, 640, 13, 2435, 22784, 198, 197, 25120, 13, 25192, 600, 7, 15, 11, 352, 8, 1058, 366, 64, 4738, 1271, 1600...
2.548387
93
import pandas as pd import numpy as np
[ 11748, 19798, 292, 355, 279, 67, 198, 11748, 299, 32152, 355, 45941, 628 ]
3.076923
13
# -*- coding: utf-8 -*- """ This module extends the default output formatting to include HTML. """ import sys import datetime from jinja2 import Template
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 37811, 198, 1212, 8265, 14582, 262, 4277, 5072, 33313, 284, 2291, 11532, 13, 198, 37811, 198, 198, 11748, 25064, 198, 11748, 4818, 8079, 198, 6738, 474, 259, 6592, ...
3.340426
47
#!/usr/bin/env python # -*- coding:utf-8 -*- import NLP if __name__ == "__main__": print(calculate(['50', '', '']))
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 532, 9, 12, 19617, 25, 40477, 12, 23, 532, 9, 12, 198, 198, 11748, 399, 19930, 628, 198, 198, 361, 11593, 3672, 834, 6624, 366, 834, 12417, 834, 1298, 198, 220, 220, 220, 3601, ...
2.137931
58
from marshmallow import fields, validate from .base import BaseSchema
[ 6738, 22397, 42725, 1330, 7032, 11, 26571, 198, 198, 6738, 764, 8692, 1330, 7308, 27054, 2611, 628 ]
4.235294
17
from multiprocessing import Lock from flask import Flask, request, jsonify from constants import HOST, PORT from Database.database import Database from handler.frontendHandler import frontend_handler from handler.iotHandler import iot_handler # Create the flask application app = Flask(__name__) db_name = 'test.db' db...
[ 6738, 18540, 305, 919, 278, 1330, 13656, 198, 6738, 42903, 1330, 46947, 11, 2581, 11, 33918, 1958, 198, 6738, 38491, 1330, 367, 10892, 11, 350, 9863, 198, 6738, 24047, 13, 48806, 1330, 24047, 198, 6738, 21360, 13, 8534, 437, 25060, 1330...
3.313869
137
n = int(input()) result=0 for i in range(1,n+1): result+=i print(result)
[ 77, 796, 493, 7, 15414, 28955, 198, 20274, 28, 15, 198, 1640, 1312, 287, 2837, 7, 16, 11, 77, 10, 16, 2599, 198, 220, 220, 220, 1255, 47932, 72, 198, 4798, 7, 20274, 8 ]
2.235294
34
# Exerccio Python 055 # Leia o peso de 5 pessoas, mostre o maior e o menor maior = 0 menor = 0 for p in range(1, 6): peso = int(input("Digite o peso:")) if p == 1: #com o contador na primeira posio, o maior e o menor so iguais maior = peso menor = peso else: if peso > maior: ...
[ 2, 1475, 263, 535, 952, 11361, 657, 2816, 198, 2, 41212, 267, 32317, 78, 390, 642, 279, 408, 78, 292, 11, 749, 260, 267, 17266, 1504, 304, 267, 1450, 273, 198, 198, 2611, 1504, 796, 657, 198, 3653, 273, 796, 657, 198, 1640, 279, ...
2.0181
221