content
stringlengths
1
1.04M
input_ids
listlengths
1
774k
ratio_char_token
float64
0.38
22.9
token_count
int64
1
774k
print(type(range(3)))
[ 4798, 7, 4906, 7, 9521, 7, 18, 22305, 198 ]
2.444444
9
#!/usr/bin/env python3 from PySide2.QtCore import * from PySide2.QtWidgets import * from mylib.easy import T
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 6738, 9485, 24819, 17, 13, 48, 83, 14055, 1330, 1635, 198, 6738, 9485, 24819, 17, 13, 48, 83, 54, 312, 11407, 1330, 1635, 198, 198, 6738, 616, 8019, 13, 38171, 1330, 309, 628, ...
2.568182
44
# https://leetcode.com/problems/jump-game/ nums = [2, 3, 1, 1, 4] print(Solution().canJump(nums)) nums = [3, 2, 1, 0, 4] print(Solution().canJump(nums))
[ 2, 3740, 1378, 293, 316, 8189, 13, 785, 14, 1676, 22143, 14, 43327, 12, 6057, 14, 628, 198, 198, 77, 5700, 796, 685, 17, 11, 513, 11, 352, 11, 352, 11, 604, 60, 198, 4798, 7, 46344, 22446, 5171, 36046, 7, 77, 5700, 4008, 198, ...
2.197183
71
# Time: O(n * t) # Space: O(max(k, t)) import collections # @param {integer[]} nums # @param {integer} k # @param {integer} t # @return {boolean}
[ 2, 3862, 25, 220, 440, 7, 77, 1635, 256, 8, 198, 2, 4687, 25, 440, 7, 9806, 7, 74, 11, 256, 4008, 198, 198, 11748, 17268, 198, 220, 220, 220, 1303, 2488, 17143, 1391, 41433, 21737, 92, 997, 82, 198, 220, 220, 220, 1303, 2488, ...
2.260274
73
import sys n, k, m, *a = map(int, sys.stdin.read().split()) if __name__ == '__main__': ans = main() print(ans)
[ 11748, 25064, 201, 198, 201, 198, 77, 11, 479, 11, 285, 11, 1635, 64, 796, 3975, 7, 600, 11, 25064, 13, 19282, 259, 13, 961, 22446, 35312, 28955, 201, 198, 201, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 201, 1...
2.081967
61
# (c) Copyright IBM Corp. 2021 # (c) Copyright Instana Inc. 2021 """ Instrumentation for Sanic https://sanicframework.org/en/ """ try: import sanic import wrapt import opentracing from ..log import logger from ..singletons import async_tracer, agent from ..util.secrets import strip_secrets_from...
[ 2, 357, 66, 8, 15069, 19764, 11421, 13, 33448, 198, 2, 357, 66, 8, 15069, 2262, 2271, 3457, 13, 33448, 198, 198, 37811, 198, 818, 43872, 341, 329, 2986, 291, 198, 5450, 1378, 12807, 291, 30604, 13, 2398, 14, 268, 14, 198, 37811, 1...
2.774105
363
import torch from torch import nn
[ 11748, 28034, 198, 6738, 28034, 1330, 299, 77, 198 ]
3.777778
9
# flake8: noqa import os import sys import multiprocessing from time import sleep from datetime import datetime, time from logging import DEBUG # 将repostory的目录i,作为根目录,添加到系统环境中。 ROOT_PATH = os.path.abspath(os.path.join(os.path.dirname(__file__), '..', '..')) if ROOT_PATH not in sys.path: sys.path.append(ROOT_PATH)...
[ 2, 781, 539, 23, 25, 645, 20402, 198, 198, 11748, 28686, 198, 11748, 25064, 198, 11748, 18540, 305, 919, 278, 198, 6738, 640, 1330, 3993, 198, 6738, 4818, 8079, 1330, 4818, 8079, 11, 640, 198, 6738, 18931, 1330, 16959, 198, 198, 2, ...
2.498433
638
#!/usr/bin/env python2 # Futures from __future__ import print_function, division # Standard import os import multiprocessing # Non-standard import cv2 import numpy as np import matplotlib.pyplot as plt def list_images(input_dir): """ Produces a list of all the filenames in the input directory. """ # List the fil...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 17, 198, 198, 2, 24002, 942, 198, 6738, 11593, 37443, 834, 1330, 3601, 62, 8818, 11, 7297, 198, 198, 2, 8997, 198, 11748, 28686, 198, 11748, 18540, 305, 919, 278, 198, 198, 2, 8504, 12, ...
2.782142
2,699
# Copyright (c) 2018 Ultimaker B.V. # Cura is released under the terms of the LGPLv3 or higher. import configparser # An input for some functions we're testing. import os.path # To find the integration test .ini files. import pytest # To register tests with. import unittest.mock # To mock the application, plug-in and ...
[ 2, 15069, 357, 66, 8, 2864, 6172, 320, 3110, 347, 13, 53, 13, 198, 2, 4424, 64, 318, 2716, 739, 262, 2846, 286, 262, 17370, 6489, 85, 18, 393, 2440, 13, 198, 198, 11748, 4566, 48610, 1303, 1052, 5128, 329, 617, 5499, 356, 821, 4...
2.024756
1,333
from django.urls import path from .consumers import ChatConsumer websocket_urlpatterns = [ path(r'ws/chat/<room_name>/', ChatConsumer), ]
[ 6738, 42625, 14208, 13, 6371, 82, 1330, 3108, 198, 6738, 764, 5936, 31260, 1330, 24101, 49106, 628, 198, 732, 1443, 5459, 62, 6371, 33279, 82, 796, 685, 198, 220, 220, 220, 3108, 7, 81, 6, 18504, 14, 17006, 14, 27, 3823, 62, 3672, ...
2.769231
52
#!/usr/bin/env python from wand.image import Image from wand.drawing import Drawing from wand.color import Color import math # http://www.imagemagick.org/Usage/fonts/ # original imagemagick command: # convert -size 320x115 xc:lightblue -font Candice -pointsize 72 \ # -fill Navy -annotate 0x0+12+55 'An...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 198, 6738, 11569, 13, 9060, 1330, 7412, 198, 6738, 11569, 13, 19334, 278, 1330, 40027, 198, 6738, 11569, 13, 8043, 1330, 5315, 198, 11748, 10688, 198, 198, 2, 2638, 1378, 2503, 13, 484...
2.216049
648
import pytest from zeus.exceptions import UnknownRevision from zeus.utils.revisions import identify_revision
[ 11748, 12972, 9288, 198, 198, 6738, 1976, 27650, 13, 1069, 11755, 1330, 16185, 18009, 1166, 198, 6738, 1976, 27650, 13, 26791, 13, 18218, 3279, 1330, 5911, 62, 260, 10178, 628, 628 ]
3.645161
31
# Copyright 2021 Mathew Odden # # 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, 33448, 6550, 6391, 440, 4742, 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.77069
580
#!/usr/bin/env python3 # -*- coding: utf-8 -*- from pdb import set_trace import sys import argparse import os from teixml2lib.ualog import Log import teixml2lib.file_utils as fut __date__ = "'4-01-2021" __version__ = "0.1.0" __author__ = "Marta Materni" logerr = Log("a") if __name__ == "__main__": logerr.open(...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 6738, 279, 9945, 1330, 900, 62, 40546, 198, 11748, 25064, 198, 11748, 1822, 29572, 198, 11748, 28686, 198, 6738, 57...
1.692308
949
from django.db import models from django.contrib.auth.models import User #hello this is priyaa # Create your models here.
[ 6738, 42625, 14208, 13, 9945, 1330, 4981, 198, 6738, 42625, 14208, 13, 3642, 822, 13, 18439, 13, 27530, 1330, 11787, 198, 198, 2, 31373, 428, 318, 1293, 3972, 64, 198, 2, 13610, 534, 4981, 994, 13, 628, 198, 197, 197, 198 ]
3.121951
41
"""Plots graphs of timings""" import matplotlib.pyplot as plt import pandas as pd import seaborn as sns from matplotlib.lines import Line2D def fps_plot(df, title): """plots graphs of timings""" df = df[~df.groupname.str.contains("ffmpeg_unblocked_decoding_speed")] df["groupname"] = df.groupname.str.spl...
[ 37811, 3646, 1747, 28770, 286, 4628, 654, 37811, 198, 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 198, 11748, 19798, 292, 355, 279, 67, 198, 11748, 384, 397, 1211, 355, 3013, 82, 198, 6738, 2603, 29487, 8019, 13, 6615, 13...
2.206239
1,731
#! /usr/bin/env python from ..common.device_base import Device_Base from .device_zwave_base import Device_ZWave_Base paddle_events = {"DON", "DOF", "DIM", "BRT", "DFON", "DFOF"}
[ 2, 0, 1220, 14629, 14, 8800, 14, 24330, 21015, 628, 198, 6738, 11485, 11321, 13, 25202, 62, 8692, 1330, 16232, 62, 14881, 198, 6738, 764, 25202, 62, 89, 19204, 62, 8692, 1330, 16232, 62, 57, 39709, 62, 14881, 198, 198, 79, 37382, 62...
2.577465
71
# native imports # project imports # external imports import sqlalchemy import sqlalchemy.ext.declarative Base = sqlalchemy.ext.declarative.declarative_base() Session = sqlalchemy.orm.scoped_session(sqlalchemy.orm.sessionmaker())
[ 2, 6868, 17944, 198, 198, 2, 1628, 17944, 198, 198, 2, 7097, 17944, 198, 11748, 44161, 282, 26599, 198, 11748, 44161, 282, 26599, 13, 2302, 13, 32446, 283, 876, 198, 198, 14881, 796, 44161, 282, 26599, 13, 2302, 13, 32446, 283, 876, ...
3.205479
73
from trainer import Trainer from tester import Tester from dataset import Dataset, Params if __name__ == "__main__": args = Params() dataset = Dataset(args.dataset) # print("~~~~ Training ~~~~") trainer = Trainer(dataset, args) trainer.train() print("~~~~ Select best epoch on validation se...
[ 6738, 21997, 1330, 31924, 198, 6738, 256, 7834, 1330, 309, 7834, 198, 6738, 27039, 1330, 16092, 292, 316, 11, 2547, 4105, 198, 198, 361, 11593, 3672, 834, 6624, 366, 834, 12417, 834, 1298, 198, 220, 220, 220, 26498, 796, 2547, 4105, 3...
2.674419
215
import gym from gym.utils import seeding import numpy as np import pandas as pd
[ 11748, 11550, 198, 6738, 11550, 13, 26791, 1330, 384, 8228, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 19798, 292, 355, 279, 67, 198 ]
3.333333
24
import os from helper.reddit import RedditConfig import random import json
[ 11748, 28686, 198, 6738, 31904, 13, 10748, 1330, 10750, 16934, 198, 11748, 4738, 198, 11748, 33918, 628 ]
4.470588
17
from django.test import TestCase from django.contrib.auth import get_user_model from socialapp import models from rest_framework.test import APIClient from socialapp import urls class TestREST(TestCase): @classmethod """ def testGetAuthorRemoveFriend(self): client = APIClient() temp1 = s...
[ 6738, 42625, 14208, 13, 9288, 1330, 6208, 20448, 198, 6738, 42625, 14208, 13, 3642, 822, 13, 18439, 1330, 651, 62, 7220, 62, 19849, 198, 6738, 1919, 1324, 1330, 4981, 198, 198, 6738, 1334, 62, 30604, 13, 9288, 1330, 3486, 2149, 75, 11...
2.259813
1,070
from yowsup.layers import YowLayer, YowLayerEvent, YowProtocolLayer from .keystream import KeyStream from yowsup.common.tools import TimeTools from .layer_crypt import YowCryptLayer from yowsup.layers.network import YowNetworkLayer from .autherror import AuthError from .protocolentities import * import base64
[ 6738, 331, 1666, 929, 13, 75, 6962, 1330, 575, 322, 49925, 11, 575, 322, 49925, 9237, 11, 575, 322, 19703, 4668, 49925, 198, 6738, 764, 2539, 5532, 1330, 7383, 12124, 198, 6738, 331, 1666, 929, 13, 11321, 13, 31391, 1330, 3862, 33637,...
3.402174
92
from gym_aima.envs.aima_env import AIMAEnv
[ 6738, 11550, 62, 1385, 64, 13, 268, 14259, 13, 1385, 64, 62, 24330, 1330, 317, 3955, 32, 4834, 85, 198 ]
2.15
20
#!/usr/bin/env python # compatibility with python 2/3: from __future__ import print_function from __future__ import division import sys, os import glob import time import datetime import numpy as np import astropy.io.fits as pyfits import argparse import pkg_resources import appdirs # Directory of this file path =...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 628, 198, 2, 17764, 351, 21015, 362, 14, 18, 25, 198, 6738, 11593, 37443, 834, 1330, 3601, 62, 8818, 198, 6738, 11593, 37443, 834, 1330, 7297, 198, 198, 11748, 25064, 11, 28686, 198, 11748,...
2.301431
5,381
from collections.abc import Iterable from operator import attrgetter from sympy import sympify from devito.symbolics import (retrieve_functions, retrieve_indexed, split_affine, uxreplace) from devito.tools import PartialOrderTuple, filter_sorted, flatten, as_tuple from devito.types impor...
[ 6738, 17268, 13, 39305, 1330, 40806, 540, 198, 6738, 10088, 1330, 708, 81, 1136, 353, 198, 198, 6738, 10558, 88, 1330, 10558, 1958, 198, 198, 6738, 1614, 10094, 13, 1837, 2022, 19615, 1330, 357, 1186, 30227, 62, 12543, 2733, 11, 19818, ...
2.413779
2,395
# https://docs.python.org/3/tutorial/modules.html#standard-modules import sys sys.path.append("../ImageManupilation")
[ 2, 3740, 1378, 31628, 13, 29412, 13, 2398, 14, 18, 14, 83, 44917, 14, 18170, 13, 6494, 2, 20307, 12, 18170, 198, 11748, 25064, 198, 17597, 13, 6978, 13, 33295, 7203, 40720, 5159, 5124, 929, 10520, 4943, 198 ]
3.105263
38
#!/usr/bin/env python # encoding: utf-8 # Thomas Nagy, 2006-2010 (ita) """ TeX/LaTeX/PDFLaTeX/XeLaTeX support Example:: def configure(conf): conf.load('tex') if not conf.env.LATEX: conf.fatal('The program LaTex is required') def build(bld): bld( features = 'tex', type = 'latex', # pdflatex or x...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 21004, 25, 3384, 69, 12, 23, 198, 2, 5658, 15196, 88, 11, 4793, 12, 10333, 357, 5350, 8, 198, 198, 37811, 198, 49568, 14, 14772, 49568, 14, 5760, 3697, 64, 49568, 14, 55, 68, ...
2.37194
4,412
# -*- coding: utf-8 -*- # Generated by Django 1.11 on 2017-04-25 21:34 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, 319, 2177, 12, 3023, 12, 1495, 2310, 25, 2682, 198, 6738, 11593, 37443, 834, 1330, 28000, 1098, 62, 17201, 874, 198, 198, 6738...
2.8
55
# -*- coding: utf-8 -*- import numpy as np import treecode.energy_and_momentum as EM
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 201, 198, 201, 198, 11748, 299, 32152, 355, 45941, 201, 198, 11748, 5509, 8189, 13, 22554, 62, 392, 62, 32542, 298, 388, 355, 17228, 201, 198, 201, 198, 201, 198, 201, 198 ...
2.133333
45
# -*- coding: utf-8 -*- import argparse from yolo import YOLO from cache import detect_cam ,detect_video FLAGS = None if __name__ == '__main__': parser = argparse.ArgumentParser(argument_default=argparse.SUPPRESS) ''' Command line options ''' parser.add_argument( "--camera", nargs='?', type=int, requir...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 11748, 1822, 29572, 198, 6738, 331, 14057, 1330, 575, 3535, 46, 198, 6738, 12940, 1330, 4886, 62, 20991, 837, 15255, 478, 62, 15588, 198, 198, 38948, 50, 796, 6045,...
2.644737
532
from agbot.core.model.context import VerticalContext from .tp_ui import UiTestPoint
[ 6738, 556, 13645, 13, 7295, 13, 19849, 13, 22866, 1330, 38937, 21947, 198, 6738, 764, 34788, 62, 9019, 1330, 471, 72, 14402, 12727, 628 ]
3.541667
24
from typing import Callable, Dict, List # CLI OUTPUT_DIR_HELP: str = "The path to the output directory." PRETTY_HELP: str = "Pretty-print the SVG code." SOURCE_HELP: str = "The source of the emoji to obtain." SOURCES: List[str] = ["Twemoji", "OpenMoji"] # URLs TWEMOJI_URL: str = ( "https://raw.githubusercontent....
[ 6738, 19720, 1330, 4889, 540, 11, 360, 713, 11, 7343, 198, 198, 2, 43749, 198, 2606, 7250, 3843, 62, 34720, 62, 39, 3698, 47, 25, 965, 796, 366, 464, 3108, 284, 262, 5072, 8619, 526, 198, 47, 26087, 9936, 62, 39, 3698, 47, 25, 9...
2.187879
330
from typing import Union, List, Tuple import math from abc import ABC, abstractmethod import numpy as np import torch from torch import nn from torch.nn import functional as F from utils.gen_args import Arguments from memory.common import ReplayBufferAbstract from agents.resnet_head import IMPALAResnet
[ 6738, 19720, 1330, 4479, 11, 7343, 11, 309, 29291, 198, 11748, 10688, 198, 6738, 450, 66, 1330, 9738, 11, 12531, 24396, 198, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 28034, 198, 6738, 28034, 1330, 299, 77, 198, 6738, 28034, 13, ...
3.613636
88
# Store the version of the package __version__ = "2021.08.01"
[ 2, 9363, 262, 2196, 286, 262, 5301, 198, 834, 9641, 834, 796, 366, 1238, 2481, 13, 2919, 13, 486, 1, 198 ]
2.952381
21
DATABASE = 'db_edot' # mysql HOST = 'localhost' PORT = 3306 USER = 'root' PASSWD = '' SQLDB = 'db_edot' from flask import Flask, render_template, request, g app = Flask(__name__) # DB support import MySQLdb # returns a database connection for MySQL # set this line to define database connection DBFUNC = connect_to_d...
[ 35, 1404, 6242, 11159, 796, 705, 9945, 62, 276, 313, 6, 198, 198, 2, 48761, 198, 39, 10892, 796, 705, 36750, 6, 198, 15490, 796, 513, 20548, 198, 29904, 796, 705, 15763, 6, 198, 47924, 22332, 796, 10148, 198, 17861, 11012, 796, 705,...
2.971814
816
import os pluginName = os.path.abspath(__file__).split(os.path.sep)[-2] importline = 'import '+('.'.join(['plugins',pluginName,'models'])+' as models') exec(importline) #import plugins.thisplugin.models as models from corpusslayer.adminModelRegister import registerForMe from django.contrib import admin # Register your...
[ 11748, 28686, 198, 33803, 5376, 796, 28686, 13, 6978, 13, 397, 2777, 776, 7, 834, 7753, 834, 737, 35312, 7, 418, 13, 6978, 13, 325, 79, 38381, 12, 17, 60, 198, 11748, 1370, 796, 705, 11748, 705, 10, 10786, 2637, 13, 22179, 7, 1781...
3.192982
114
import unittest from seven_segment import possible_numbers, seven_segment # class Tests(unittest.TestCase): # TESTS = { # "Basics": [ # { # "input": [['B', 'C', 'b', 'c'], # ['A']], # "answer": 2, # }, # { # ...
[ 11748, 555, 715, 395, 198, 198, 6738, 3598, 62, 325, 5154, 1330, 1744, 62, 77, 17024, 11, 3598, 62, 325, 5154, 628, 198, 198, 2, 1398, 30307, 7, 403, 715, 395, 13, 14402, 20448, 2599, 198, 2, 220, 220, 220, 220, 309, 1546, 4694, ...
1.516791
1,072
from datetime import date from enum import Enum from typing import List, Tuple import matplotlib.pyplot as plt import numpy as np from dateutil.relativedelta import relativedelta from . import query
[ 6738, 4818, 8079, 1330, 3128, 198, 6738, 33829, 1330, 2039, 388, 198, 6738, 19720, 1330, 7343, 11, 309, 29291, 198, 198, 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 198, 11748, 299, 32152, 355, 45941, 198, 6738, 3128, 22602...
3.5
58
from compas.geometry import Point from compas.geometry import Line from compas.geometry import NurbsCurve from compas.artists import Artist from compas.colors import Color line = Line(Point(0, 0, 0), Point(3, 3, 0)) curve = NurbsCurve.from_line(line) # ================================================================...
[ 6738, 552, 292, 13, 469, 15748, 1330, 6252, 198, 6738, 552, 292, 13, 469, 15748, 1330, 6910, 198, 6738, 552, 292, 13, 469, 15748, 1330, 49281, 1443, 26628, 303, 198, 6738, 552, 292, 13, 433, 1023, 1330, 18902, 198, 6738, 552, 292, 1...
3.802721
147
# -*- coding:utf-8 -*- try: import simplejson as json except ImportError: import json
[ 2, 532, 9, 12, 19617, 25, 40477, 12, 23, 532, 9, 12, 198, 28311, 25, 198, 220, 220, 220, 1330, 2829, 17752, 355, 33918, 198, 16341, 17267, 12331, 25, 198, 220, 220, 220, 1330, 33918, 628 ]
2.638889
36
from django.test import TestCase from .factories import CommentFactory from ..models import Activity
[ 6738, 42625, 14208, 13, 9288, 1330, 6208, 20448, 198, 198, 6738, 764, 22584, 1749, 1330, 18957, 22810, 198, 6738, 11485, 27530, 1330, 24641, 628 ]
4.291667
24
from __future__ import absolute_import from __future__ import print_function import sys import os # the next line can be removed after installation sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.dirname( os.path.dirname(os.path.dirname(os.path.abspath(__file__))))))) from veriloggen import * import ve...
[ 6738, 11593, 37443, 834, 1330, 4112, 62, 11748, 198, 6738, 11593, 37443, 834, 1330, 3601, 62, 8818, 198, 11748, 25064, 198, 11748, 28686, 198, 198, 2, 262, 1306, 1627, 460, 307, 4615, 706, 9988, 198, 17597, 13, 6978, 13, 28463, 7, 15,...
2.641791
201
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import argparse import logging import os import time import torch import numpy as np from shared import SharedTensor ...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 198, 2, 15069, 357, 66, 8, 3203, 11, 3457, 13, 290, 663, 29116, 13, 198, 2, 198, 2, 770, 2723, 2438, 318, 11971, 739, 262, 17168, 5964, 1043, 287, 262, 198, 2, 38559, 24290, ...
2.40225
711
import numpy as np if __name__ == "__main__": synclist = synchronize(["AbcdEfG", "cdEFG"]) print([s.get_text() for s in synclist])
[ 11748, 299, 32152, 355, 45941, 628, 628, 198, 361, 11593, 3672, 834, 6624, 366, 834, 12417, 834, 1298, 198, 220, 220, 220, 6171, 565, 396, 796, 18305, 1096, 7, 14692, 4826, 10210, 36, 69, 38, 1600, 366, 10210, 25425, 38, 8973, 8, 19...
2.306452
62
# ******************************************************************************* # # Copyright (c) 2019-2021 David Briant. All rights reserved. # # ******************************************************************************* from coppertop.pipe import * from coppertop.core import Missing from coppertop.std imp...
[ 2, 41906, 17174, 46068, 8162, 198, 2, 198, 2, 220, 220, 220, 15069, 357, 66, 8, 13130, 12, 1238, 2481, 3271, 25866, 415, 13, 1439, 2489, 10395, 13, 198, 2, 198, 2, 41906, 17174, 46068, 8162, 628, 198, 6738, 763, 381, 861, 404, 13,...
3.145374
227
import logging import logging.config import datetime import GetOldTweets3 as Got from typing import List from trend_analyze.src.convert_to_model import ConvertTM from trend_analyze.src.scraping_tweet import TwitterScraper from trend_analyze.config import * from trend_analyze.src.model import * class TwitterFetcher:...
[ 11748, 18931, 198, 11748, 18931, 13, 11250, 198, 11748, 4818, 8079, 198, 198, 11748, 3497, 19620, 32665, 1039, 18, 355, 11853, 198, 6738, 19720, 1330, 7343, 198, 198, 6738, 5182, 62, 38200, 2736, 13, 10677, 13, 1102, 1851, 62, 1462, 62,...
2.233553
1,520
a=123*456 b=(34*99)+22 print(a) print(b)
[ 64, 28, 10163, 9, 29228, 198, 65, 16193, 2682, 9, 2079, 47762, 1828, 198, 198, 4798, 7, 64, 8, 198, 4798, 7, 65, 8, 198 ]
1.68
25
import logging import json import os from typing import Optional from retrying import retry logger = logging.getLogger(__name__) logger.setLevel(logging.INFO) def resolve_project_id(project_id=None) -> Optional[int]: """ Gets project id from following sources in following order of precedence: - default...
[ 11748, 18931, 198, 11748, 33918, 198, 11748, 28686, 198, 6738, 19720, 1330, 32233, 198, 198, 6738, 1005, 14992, 1330, 1005, 563, 628, 198, 6404, 1362, 796, 18931, 13, 1136, 11187, 1362, 7, 834, 3672, 834, 8, 198, 6404, 1362, 13, 2617, ...
2.598662
598
# -*- coding: utf-8 -*- """ CentralReport - Webservices module Contains all entities used with webservices. https://github.com/CentralReport/ """ class Answer: """ This entity contains the result of a webservice """
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 37811, 198, 220, 220, 220, 5694, 19100, 532, 47736, 712, 1063, 8265, 198, 220, 220, 220, 220, 220, 220, 220, 49850, 477, 12066, 973, 351, 2639, 712, 1063, 13, 628...
2.72043
93
# Copyright (C) 2020-2021 Intel Corporation # SPDX-License-Identifier: Apache-2.0 """You may copy this file as the starting point of your own model.""" import tensorflow.keras as ke import os.path from tensorflow.keras import Sequential from tensorflow.keras.layers import Conv2D, Flatten, Dense from openfl.federated...
[ 2, 15069, 357, 34, 8, 12131, 12, 1238, 2481, 8180, 10501, 198, 2, 30628, 55, 12, 34156, 12, 33234, 7483, 25, 24843, 12, 17, 13, 15, 198, 198, 37811, 1639, 743, 4866, 428, 2393, 355, 262, 3599, 966, 286, 534, 898, 2746, 526, 15931,...
2.031821
1,477
__________________________________________________________________________________________________ sample 28 ms submission __________________________________________________________________________________________________ sample 13016 kb submission _______________________________________________________________________...
[ 27193, 10221, 834, 198, 39873, 2579, 13845, 14498, 198, 27193, 10221, 834, 198, 39873, 1511, 27037, 47823, 14498, 198, 27193, 10221, 834, 198 ]
15.130435
23
# -*- coding: utf-8 -*- # snapshottest: v1 - https://goo.gl/zC4yUc from __future__ import unicode_literals from snapshottest import GenericRepr, Snapshot snapshots = Snapshot() snapshots['test_definition_parser_raises_error_schema_str_contains_multiple_types 1'] = GenericRepr("<ExceptionInfo ValueError('MyType clas...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 11495, 1477, 24879, 25, 410, 16, 532, 3740, 1378, 42469, 13, 4743, 14, 89, 34, 19, 88, 52, 66, 198, 6738, 11593, 37443, 834, 1330, 28000, 1098, 62, 17201, 874, 19...
3.114187
289
import os from .exceptions import TooManyLoops, MissingDataError from .lib import (BUILD37, BUILD38, get_data_directory, sorted_nicely, BUILD37_ACCESSIONS, BUILD38_ACCESSIONS, ACCESSION_LENGTHS, RCRS_ACCESSION, MITOCHONDRIA_NAMES)
[ 11748, 28686, 198, 198, 6738, 764, 1069, 11755, 1330, 14190, 7085, 27654, 2840, 11, 25639, 6601, 12331, 198, 6738, 764, 8019, 1330, 357, 19499, 26761, 2718, 11, 20571, 26761, 2548, 11, 651, 62, 7890, 62, 34945, 11, 23243, 62, 44460, 306...
2.279661
118
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Thu Oct 7 13:01:20 2021 @author: Hendrik Timm """ # plotting with matplotlib import pickle from matplotlib import pyplot as plt import numpy as np # create graphs for every extracted feature
[ 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, 41972, 319, 26223, 2556, 220, 767, 1511, 25, 486, 25, 1238, 33448, 198, 198, 31, 9800, 25, 14666, 126...
2.36
125
lpu = "LPU" speciality = "SPECIALLITY" token = "TOKEN" chat_id = "CHAT_NAME" # if u re planing to send
[ 75, 19944, 796, 366, 43, 5105, 1, 201, 198, 20887, 414, 796, 366, 48451, 40, 7036, 9050, 1, 201, 198, 30001, 796, 366, 10468, 43959, 1, 201, 198, 17006, 62, 312, 796, 366, 31542, 62, 20608, 1, 220, 1303, 611, 334, 302, 1410, 278, ...
2.22449
49
import torch import torch.nn import os.path as osp from baseline.utils.parser import get_opts from baseline.nnutils.stream_modules import ActionClassification from baseline.data.ucf101 import UCF101Temporal, split from baseline.logger import Logger from tqdm import tqdm import pdb from tensorboardX import SummaryWriter...
[ 11748, 28034, 198, 11748, 28034, 13, 20471, 198, 11748, 28686, 13, 6978, 355, 267, 2777, 198, 6738, 14805, 13, 26791, 13, 48610, 1330, 651, 62, 404, 912, 198, 6738, 14805, 13, 77, 14930, 4487, 13, 5532, 62, 18170, 1330, 7561, 9487, 26...
3.273292
161
import RPi.GPIO as GPIO # Import GPIO Module from time import sleep # Import sleep Module for timing BUTTON_PIN = 21 LED_PIN = 20 GPIO.setmode(GPIO.BCM) # Configures pin numbering to Broadcom reference GPIO.setwarnings(False) # Disable Warnings GPIO.setup(LED_PIN, GPIO.OUT) #Set our GPIO pin to output GPIO.outp...
[ 11748, 25812, 72, 13, 16960, 9399, 355, 50143, 220, 1303, 17267, 50143, 19937, 198, 6738, 640, 1330, 3993, 220, 1303, 17267, 3993, 19937, 329, 10576, 198, 198, 47526, 11357, 62, 44032, 796, 2310, 198, 30465, 62, 44032, 796, 1160, 198, 1...
2.636719
256
# # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not...
[ 2, 198, 2, 49962, 284, 262, 24843, 10442, 5693, 357, 1921, 37, 8, 739, 530, 198, 2, 393, 517, 18920, 5964, 11704, 13, 220, 4091, 262, 28536, 2393, 198, 2, 9387, 351, 428, 670, 329, 3224, 1321, 198, 2, 5115, 6634, 9238, 13, 220, ...
1.800829
6,999
import collections import time from aspen.network_engines import CooperativeEngine from aspen.sockets import packet from aspen.sockets.loop import Die import tornado.ioloop import tornado.httpserver import tornado.wsgi class TornadoBuffer(collections.deque): """Model a buffer of items. There are two of thes...
[ 11748, 17268, 198, 11748, 640, 198, 198, 6738, 355, 3617, 13, 27349, 62, 1516, 1127, 1330, 43457, 13798, 198, 6738, 355, 3617, 13, 82, 11603, 1330, 19638, 198, 6738, 355, 3617, 13, 82, 11603, 13, 26268, 1330, 6733, 198, 11748, 33718, ...
2.445469
1,302
""" A custom Keras layer to generate anchor boxes. Copyright (C) 2018 Pierluigi Ferrari 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 requir...
[ 37811, 198, 32, 2183, 17337, 292, 7679, 284, 7716, 18021, 10559, 13, 198, 198, 15269, 357, 34, 8, 2864, 13762, 2290, 25754, 23502, 198, 198, 26656, 15385, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 1...
2.300725
8,280
#!/usr/bin/env python """Show FlashBlade Protection Status""" # usage: # ./flashBladeProtectionStatus.py -v mycluster \ # -u myuser \ # -d mydomain.net \ # -f flashblad01 # import pyhesity wrapper module from pyhesity impo...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 37811, 15307, 9973, 47520, 9985, 12678, 37811, 198, 198, 2, 8748, 25, 198, 2, 24457, 34167, 47520, 19703, 3213, 19580, 13, 9078, 532, 85, 616, 565, 5819, 3467, 198, 2, 220, 220, 220, ...
2.654372
732
""" Meaningful composition of shader programs exposed as a library """ __author__ = 'Stephan Gerhard' from .shaders import Shader from .lib import get_shader_code import pyglet.gl as gl # load the vary-line-width-shader
[ 37811, 30563, 913, 11742, 286, 33030, 4056, 7362, 355, 257, 5888, 37227, 198, 834, 9800, 834, 796, 705, 8600, 7637, 13573, 10424, 6, 198, 198, 6738, 764, 1477, 9972, 1330, 911, 5067, 198, 6738, 764, 8019, 1330, 651, 62, 1477, 5067, 62...
3.363636
66
# -*- coding: utf-8 -*- # Generated by Django 1.10.5 on 2017-09-24 15:07 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, 20, 319, 2177, 12, 2931, 12, 1731, 1315, 25, 2998, 198, 6738, 11593, 37443, 834, 1330, 28000, 1098, 62, 17201, 874, 198, ...
2.73913
69
import argparse import re import pickle import numpy as np from sklearn.feature_extraction.text import TfidfVectorizer from sklearn.ensemble import RandomForestClassifier from sklearn.model_selection import train_test_split # import stopwords parser = argparse.ArgumentParser(description='') parser.add_argument('--db-...
[ 11748, 1822, 29572, 198, 11748, 302, 198, 11748, 2298, 293, 198, 198, 11748, 299, 32152, 355, 45941, 198, 6738, 1341, 35720, 13, 30053, 62, 2302, 7861, 13, 5239, 1330, 309, 69, 312, 69, 38469, 7509, 198, 6738, 1341, 35720, 13, 1072, 1...
2.511688
770
import importlib import torch import torch.nn as nn from pretraining_model import Transformer, TransformerWithLMHead
[ 11748, 1330, 8019, 198, 11748, 28034, 198, 11748, 28034, 13, 20471, 355, 299, 77, 198, 198, 6738, 2181, 24674, 62, 19849, 1330, 3602, 16354, 11, 3602, 16354, 3152, 31288, 13847, 628 ]
3.83871
31
from .effnet import efficientnet_lite_b0, efficientnet_lite_b1, efficientnet_lite_b2, efficientnet_lite_b3, efficientnet_lite_b4
[ 6738, 764, 14822, 3262, 1330, 6942, 3262, 62, 36890, 62, 65, 15, 11, 6942, 3262, 62, 36890, 62, 65, 16, 11, 6942, 3262, 62, 36890, 62, 65, 17, 11, 6942, 3262, 62, 36890, 62, 65, 18, 11, 6942, 3262, 62, 36890, 62, 65, 19 ]
2.909091
44
#!/usr/local/bin/python3 from keras.models import model_from_json import numpy as np import cv2 import argparse import os os.environ['TF_CPP_MIN_LOG_LEVEL']='2' import math from pythonosc import udp_client #parser = argparse.ArgumentParser() #parser.add_argument("source") #parser.add_argument("fps") #args = parser.p...
[ 2, 48443, 14629, 14, 12001, 14, 8800, 14, 29412, 18, 198, 198, 6738, 41927, 292, 13, 27530, 1330, 2746, 62, 6738, 62, 17752, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 269, 85, 17, 198, 11748, 1822, 29572, 198, 11748, 28686, 198,...
2.350195
514
import os import argparse import keras2onnx from tensorflow.keras.preprocessing import sequence from tensorflow.keras.models import Sequential from tensorflow.keras.layers import Dense, Embedding, Input from tensorflow.keras.layers import LSTM from tensorflow.keras.datasets import imdb # Training settings parser = arg...
[ 11748, 28686, 198, 11748, 1822, 29572, 198, 11748, 41927, 292, 17, 261, 77, 87, 198, 6738, 11192, 273, 11125, 13, 6122, 292, 13, 3866, 36948, 1330, 8379, 198, 6738, 11192, 273, 11125, 13, 6122, 292, 13, 27530, 1330, 24604, 1843, 198, ...
2.445946
1,258
# coding: utf-8 # Copyright(C) 2019 FireEye, Inc. All Rights Reserved. # # FLASHMINGO! # This finds suspicious constants in the constant pool(s) import os import logging import logging.handlers class Plugin: """ All plugins work on a SWFObject passed as an argument """ def _init_logging(self): ...
[ 2, 19617, 25, 3384, 69, 12, 23, 198, 2, 15069, 7, 34, 8, 13130, 3764, 24876, 11, 3457, 13, 1439, 6923, 33876, 13, 198, 2, 198, 2, 9977, 11211, 44, 2751, 46, 0, 198, 2, 770, 7228, 13678, 38491, 287, 262, 6937, 5933, 7, 82, 8, ...
2.257703
714
""" 1D interpolation by Lagrange method. Bruce Wernick 10 June 2021 """ def lagrange1d(X, Y): "1D Lagrange interpolation" n = len(X) return f # --------------------------------------------------------------------- if __name__ == '__main__': x = [1,2,3,4,5] y = [2,4,6,8,10] fx = lagran...
[ 37811, 201, 198, 16, 35, 39555, 341, 416, 21003, 9521, 2446, 13, 201, 198, 38509, 370, 1142, 624, 201, 198, 940, 2795, 33448, 201, 198, 37811, 201, 198, 201, 198, 4299, 19470, 9521, 16, 67, 7, 55, 11, 575, 2599, 201, 198, 220, 366...
2.333333
150
#!usr/bin/env python3 # -*- coding: utf-8 -*- # @Time : 2021/2/5 # @Author : Shufei Lei # @Software : PyCharm import hashlib import requests import execjs import re headers = { 'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4144.2 Safari/537.36' } ...
[ 2, 0, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 2488, 7575, 220, 220, 220, 220, 1058, 33448, 14, 17, 14, 20, 198, 2, 2488, 13838, 220, 220, 1058, 911, 3046, 2...
2.239766
171
HSDATTR_PROC = "processed" HSDATTR_EQUAL = "equal" HSDATTR_FILE = "file" HSDATTR_LINE = "lines" class HSDException(Exception): """Base class for exceptions in the HSD packages.""" pass class HSDQueryError(HSDException): """Base class for errors detected by the HSDQuery object. Attributes: ...
[ 7998, 35, 1404, 5446, 62, 4805, 4503, 796, 366, 14681, 276, 1, 198, 7998, 35, 1404, 5446, 62, 36, 10917, 1847, 796, 366, 40496, 1, 198, 7998, 35, 1404, 5446, 62, 25664, 796, 366, 7753, 1, 198, 7998, 35, 1404, 5446, 62, 24027, 796,...
2.56748
615
import re from sqlalchemy import ( Column, DateTime, String, Integer, JSON, Text, Float, ForeignKey, insert ) from app.Database import Base, Session
[ 11748, 302, 198, 6738, 44161, 282, 26599, 1330, 357, 198, 220, 220, 220, 29201, 11, 198, 220, 220, 220, 7536, 7575, 11, 198, 220, 220, 220, 10903, 11, 198, 220, 220, 220, 34142, 11, 198, 220, 220, 220, 19449, 11, 198, 220, 220, 22...
2.447368
76
from rest_framework import generics from .models import Todo from .serializers import TodoSerializer
[ 6738, 1334, 62, 30604, 1330, 1152, 873, 198, 198, 6738, 764, 27530, 1330, 309, 24313, 198, 6738, 764, 46911, 11341, 1330, 309, 24313, 32634, 7509, 628, 198 ]
3.851852
27
__version__ = '1.6.0' __author__ = 'Aashutosh Rathi <aashutoshrathi@gmail.com>' __all__ = []
[ 834, 9641, 834, 796, 705, 16, 13, 21, 13, 15, 6, 198, 834, 9800, 834, 796, 705, 32, 1077, 315, 3768, 26494, 72, 1279, 64, 1077, 315, 3768, 81, 44202, 31, 14816, 13, 785, 29, 6, 198, 834, 439, 834, 796, 17635, 198 ]
2.162791
43
# http://docs.opencv.org/trunk/doc/py_tutorials/py_imgproc/py_contours/py_contours_more_functions/py_contours_more_functions.html import cv2 import numpy as np img1 = cv2.imread('a.jpg',0) img2 = cv2.imread('a.jpg',0) ret, thresh = cv2.threshold(img1, 127, 255,0) ret, thresh2 = cv2.threshold(img2, 127, 255,0) contour...
[ 2, 2638, 1378, 31628, 13, 9654, 33967, 13, 2398, 14, 2213, 2954, 14, 15390, 14, 9078, 62, 83, 44917, 82, 14, 9078, 62, 9600, 36942, 14, 9078, 62, 3642, 4662, 14, 9078, 62, 3642, 4662, 62, 3549, 62, 12543, 2733, 14, 9078, 62, 3642,...
2.082988
241
import argparse import os, sys import numpy as np import pytest sys.path.insert(0, os.path.join(os.path.dirname(os.path.abspath(__file__)), '..','..')) from mergeSTR import * TESTDIR = os.path.join(os.path.dirname(os.path.abspath(__file__)), "test_files") COMMDIR = os.path.join(os.path.dirname(os.path.abspath(__file_...
[ 11748, 1822, 29572, 198, 11748, 28686, 11, 25064, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 12972, 9288, 198, 17597, 13, 6978, 13, 28463, 7, 15, 11, 28686, 13, 6978, 13, 22179, 7, 418, 13, 6978, 13, 15908, 3672, 7, 418, 13, 69...
2.363757
756
#!/usr/bin/env python # 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 # # Authors: # - Wen Guan, wen.guan@cern.ch, 2017 import logging from pilot....
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 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, 7...
3.141104
163
""" The LogWidget receives and saves logging output from the ScriptEditor. """ from PySide import QtCore, QtGui from FabricEngine.FabricUI import DFG, Actions
[ 37811, 198, 464, 5972, 38300, 11583, 290, 16031, 18931, 5072, 422, 262, 12327, 17171, 13, 198, 37811, 198, 198, 6738, 9485, 24819, 1330, 33734, 14055, 11, 33734, 8205, 72, 198, 6738, 37759, 13798, 13, 43957, 1173, 10080, 1330, 360, 30386,...
3.72093
43
import pandas as pd import numpy as np from sklearn.preprocessing import OneHotEncoder from sklearn.preprocessing import StandardScaler from sklearn.linear_model import LinearRegression from sklearn.model_selection import train_test_split from sklearn.metrics import mean_absolute_error from sklearn.linear_model import ...
[ 11748, 19798, 292, 355, 279, 67, 198, 11748, 299, 32152, 355, 45941, 198, 6738, 1341, 35720, 13, 3866, 36948, 1330, 1881, 21352, 27195, 12342, 198, 6738, 1341, 35720, 13, 3866, 36948, 1330, 8997, 3351, 36213, 198, 6738, 1341, 35720, 13, ...
2.952381
357
# # Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. # The ASF licenses this file to You under the Apache License, Version 2.0 # (the "License"); you may not us...
[ 2, 198, 2, 49962, 284, 262, 24843, 10442, 5693, 357, 1921, 37, 8, 739, 530, 393, 517, 198, 2, 18920, 5964, 11704, 13, 220, 4091, 262, 28536, 2393, 9387, 351, 198, 2, 428, 670, 329, 3224, 1321, 5115, 6634, 9238, 13, 198, 2, 383, ...
2.771964
5,600
import os import shutil import sys import tempfile import unittest import configbetter if __name__ == '__main__': unittest.main()
[ 11748, 28686, 198, 11748, 4423, 346, 198, 11748, 25064, 198, 11748, 20218, 7753, 198, 11748, 555, 715, 395, 198, 198, 11748, 4566, 27903, 628, 628, 628, 198, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 198, 220, 220, ...
2.897959
49
""" This module contains the 'create_account' node menu. """ from textwrap import dedent def create_account(caller): """Create a new account. This node simply prompts the user to enter a username. The input is redirected to 'create_username'. """ text = "Enter your new account's name." opt...
[ 171, 119, 123, 37811, 198, 1212, 8265, 4909, 262, 705, 17953, 62, 23317, 6, 10139, 6859, 13, 198, 198, 37811, 198, 198, 6738, 2420, 37150, 1330, 4648, 298, 198, 198, 4299, 2251, 62, 23317, 7, 13345, 263, 2599, 198, 220, 220, 220, 37...
2.558974
195
from IntCode import intcode_day7 from time import sleep memory_puzzle = [3, 8, 1001, 8, 10, 8, 105, 1, 0, 0, 21, 34, 47, 72, 93, 110, 191, 272, 353, 434, 99999, 3, 9, 102, 3, 9, 9, 1001, 9, 3, 9, 4, 9, 99, 3, 9, 102, 4, 9, 9, 1001, 9, 4, 9, 4, 9, 99, 3, 9, 101, 3, 9, 9, 1002, 9, 3, 9, 1001, 9, 2, 9, 1002, 9, 2, 9, 101...
[ 6738, 2558, 10669, 1330, 493, 8189, 62, 820, 22, 198, 6738, 640, 1330, 3993, 198, 198, 31673, 62, 79, 9625, 796, 685, 18, 11, 807, 11, 1802, 16, 11, 807, 11, 838, 11, 807, 11, 13343, 11, 352, 11, 657, 11, 657, 11, 2310, 11, 49...
1.709865
2,585
__all__ = ["make_node", "CM_Node"] import bpy import bpy.types import bpy_types import bmesh import bmesh.ops import math import mathutils import pyconspack as cpk from array import array from pyconspack import Conspack from mathutils import Matrix import io_scene_consmodel.consmodel as consmodel from io_scene_con...
[ 834, 439, 834, 796, 14631, 15883, 62, 17440, 1600, 366, 24187, 62, 19667, 8973, 198, 198, 11748, 275, 9078, 198, 11748, 275, 9078, 13, 19199, 198, 11748, 275, 9078, 62, 19199, 198, 198, 11748, 275, 76, 5069, 198, 11748, 275, 76, 5069,...
2.831731
208
import os from urllib.error import HTTPError from urllib.request import urlretrieve class AbstractRemoteFile: """ AbstractRemoteFile provide infrastructure for RemoteFile where only the method fetch() needs to be defined for a concreate implementation. """ @property def local(self): ...
[ 11748, 28686, 198, 6738, 2956, 297, 571, 13, 18224, 1330, 14626, 12331, 198, 6738, 2956, 297, 571, 13, 25927, 1330, 19016, 1186, 30227, 628, 628, 198, 198, 4871, 27741, 36510, 8979, 25, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 2...
2.811034
725
from sys import stdin number = stdin.read() print sum(range(min(int(number), 1), max(int(number), 1) + 1))
[ 6738, 25064, 1330, 14367, 259, 198, 17618, 796, 14367, 259, 13, 961, 3419, 198, 4798, 2160, 7, 9521, 7, 1084, 7, 600, 7, 17618, 828, 352, 828, 3509, 7, 600, 7, 17618, 828, 352, 8, 1343, 352, 4008, 198 ]
2.74359
39
#!/usr/bin/env python # -*- coding: utf-8 -*- """ @Author : Xiaobo Yang @Contact : hal_42@zju.edu.cn @Time : 2021/11/8 21:16 @File : decorators.py @Software: PyCharm @Desc : """ from warnings import warn from .timer import Timer from .color_print import * __all__ = ['deprecated', 'func_runtime_timer'] de...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 198, 31, 13838, 220, 1058, 22450, 20391, 10998, 198, 31, 17829, 1058, 10284, 62, 3682, 31, 89, 14396, 13, 15532,...
2.634615
156
import json, os import boto3 from awake import wol battlestation_mac_address = os.environ['DESKTOP_MAC_ADDR'] sqs = boto3.client('sqs') utility_q_url = os.environ['UTILITY_Q_URL'] while True: response = sqs.receive_message( QueueUrl=utility_q_url, MaxNumberOfMessages=10, MessageAttribute...
[ 11748, 33918, 11, 28686, 198, 198, 11748, 275, 2069, 18, 198, 6738, 21693, 1330, 266, 349, 198, 198, 65, 1078, 75, 27364, 62, 20285, 62, 21975, 796, 28686, 13, 268, 2268, 17816, 30910, 42, 35222, 62, 44721, 62, 2885, 7707, 20520, 198,...
2.15235
617
from django import forms from django.forms import BaseFormSet
[ 6738, 42625, 14208, 1330, 5107, 198, 6738, 42625, 14208, 13, 23914, 1330, 7308, 8479, 7248, 628 ]
3.9375
16
import random
[ 198, 11748, 4738, 628 ]
4
4
# Copyright (c) 2020, Manfred Moitzi # License: MIT License from typing import TYPE_CHECKING, Optional, Iterable, Tuple, List, Dict, cast import struct import math from enum import IntEnum from itertools import repeat from ezdxf.lldxf import const from ezdxf.tools.binarydata import bytes_to_hexstr, ByteStream, BitStrea...
[ 2, 15069, 357, 66, 8, 12131, 11, 1869, 39193, 4270, 4224, 72, 198, 2, 13789, 25, 17168, 13789, 198, 6738, 19720, 1330, 41876, 62, 50084, 2751, 11, 32233, 11, 40806, 540, 11, 309, 29291, 11, 7343, 11, 360, 713, 11, 3350, 198, 11748, ...
3.009132
219
from __future__ import absolute_import import tensorflow as tf import matplotlib.pyplot as plt import os from dataset import Dataset from Yolo import Yolo import ConfigParser if __name__ == '__main__': tf.app.run()
[ 6738, 11593, 37443, 834, 1330, 4112, 62, 11748, 628, 198, 11748, 11192, 273, 11125, 355, 48700, 198, 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 198, 11748, 28686, 198, 6738, 27039, 1330, 16092, 292, 316, 198, 6738, 575, 14...
3.140845
71
# Copyright 2021 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
[ 2, 15069, 33448, 383, 309, 22854, 37535, 46665, 13, 1439, 6923, 33876, 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,...
3.574699
830
import os import glob import torch import numpy as np import torchaudio from torch.nn import functional as F import sippyart PROJ_DIR = sippyart.__path__[0] + "/" PARENT_DIR = PROJ_DIR + "../" # TODO sync_n sample rates
[ 11748, 28686, 198, 11748, 15095, 198, 11748, 28034, 198, 11748, 299, 32152, 355, 45941, 198, 198, 11748, 28034, 24051, 198, 6738, 28034, 13, 20471, 1330, 10345, 355, 376, 198, 198, 11748, 264, 41214, 433, 198, 198, 31190, 41, 62, 34720, ...
2.747126
87
'''Configuration file for gentea.py with basemap FAP_teacup_base''' database = { 'user' : 'app_user', 'passwd' : 'ecohdb', 'host' : 'XXX.XXX.XX.200', 'port' : '1521', 'sid' : 'ecohdb' } input_image = (r'../work/FAP_teacup_base.png') # Both of these are optional. They default to size 11 'Arial.t...
[ 7061, 6, 38149, 2393, 329, 25049, 18213, 13, 9078, 351, 1615, 368, 499, 376, 2969, 62, 660, 330, 929, 62, 8692, 7061, 6, 198, 198, 48806, 796, 1391, 198, 220, 220, 220, 705, 7220, 6, 1058, 705, 1324, 62, 7220, 3256, 198, 220, 220,...
1.876626
2,537
import time from image_recognition import ImageRecognition from text_recognition import TextRecognition
[ 11748, 640, 198, 198, 6738, 2939, 62, 26243, 653, 1330, 7412, 6690, 2360, 653, 198, 6738, 2420, 62, 26243, 653, 1330, 8255, 6690, 2360, 653, 628 ]
4.076923
26
from operator import attrgetter if __name__ == '__main__': users = [User(23), User(3), User(99)] print(users) sorted_users_lambda = sorted(users, key=lambda u: u.user_id) print(sorted_users_lambda) sorted_users_attr = sorted(users, key=attrgetter('user_id')) print(sorted_users_attr)
[ 6738, 10088, 1330, 708, 81, 1136, 353, 628, 198, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 198, 220, 220, 220, 2985, 796, 685, 12982, 7, 1954, 828, 11787, 7, 18, 828, 11787, 7, 2079, 15437, 628, 220, 220, 220, ...
2.544715
123