content
stringlengths
1
1.04M
input_ids
listlengths
1
774k
ratio_char_token
float64
0.38
22.9
token_count
int64
1
774k
"""sophon python module """
[ 37811, 82, 48982, 21015, 8265, 198, 37811, 198 ]
3.5
8
import utils import read from argparser import args, need_to_compare, project_dir settings = read.read_settings_file(f'{project_dir}/{args.project}.parameters.xml', mel=args.mel, recon=args.recon) for gloss in utils.all_glosses(read.read_attested_l...
[ 11748, 3384, 4487, 198, 11748, 1100, 198, 6738, 1822, 48610, 1330, 26498, 11, 761, 62, 1462, 62, 5589, 533, 11, 1628, 62, 15908, 198, 198, 33692, 796, 1100, 13, 961, 62, 33692, 62, 7753, 7, 69, 6, 90, 16302, 62, 15908, 92, 14, 90,...
2.063584
173
# 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! *** _SNAKE_TO_CAMEL_CASE_TABLE = { "availability_zones": "availabilityZones", "backend_services": "backendServices", "beanstalk...
[ 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.64986
2,856
# Copyright 2015 Hewlett-Packard Development Company, L.P. # # Author: Endre Karlson <endre.karlson@hp.com> # # 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/lice...
[ 2, 15069, 1853, 30446, 15503, 12, 11869, 446, 7712, 5834, 11, 406, 13, 47, 13, 198, 2, 198, 2, 6434, 25, 5268, 260, 15415, 1559, 1279, 437, 260, 13, 74, 7063, 1559, 31, 24831, 13, 785, 29, 198, 2, 198, 2, 49962, 739, 262, 24843,...
3.634021
194
import cv2 import numpy as np face_cascade = cv2.CascadeClassifier('haarcascade_frontalface_default.xml') eye_cascade=cv2.CascadeClassifier('haarcascade_eye.xml') cap = cv2.VideoCapture(0) while True: ret,img = cap.read() gray=cv2.cvtColor(img,cv2.COLOR_BGR2GRAY) faces=face_cascade.detectMul...
[ 11748, 269, 85, 17, 201, 198, 11748, 299, 32152, 355, 45941, 201, 198, 201, 198, 2550, 62, 66, 28966, 796, 269, 85, 17, 13, 34, 28966, 9487, 7483, 10786, 3099, 5605, 28966, 62, 8534, 1604, 558, 62, 12286, 13, 19875, 11537, 201, 198,...
1.789709
447
# # Copyright 2019 The FATE 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 appli...
[ 2, 198, 2, 220, 15069, 13130, 383, 376, 6158, 46665, 13, 1439, 6923, 33876, 13, 198, 2, 198, 2, 220, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 2, 220, 345, 743, 407, 779, 428, 2393, ...
3.07907
1,075
from ophyd import EpicsSignal from ..CommonFunctions.functions import run_report from ..Base.mirrors import HexapodMirror, FMBHexapodMirror run_report(__file__) mir2_type = EpicsSignal( "XF:07ID1-OP{Mono:PGM1-Ax:MirX}Mtr_TYPE_MON", name="SST 1 Mirror 2 Stripe" ) mir4OLD = HexapodMirror( "XF:07ID2-OP{Mir:M4...
[ 6738, 267, 746, 5173, 1330, 4551, 873, 11712, 282, 198, 198, 6738, 11485, 17227, 24629, 2733, 13, 12543, 2733, 1330, 1057, 62, 13116, 198, 6738, 11485, 14881, 13, 10793, 5965, 1330, 22212, 499, 375, 27453, 1472, 11, 376, 10744, 39, 1069...
2.0875
400
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Telegram bot @RaspberyPi3Bot """ """ from telegram.ext import Updater, CommandHandler, MessageHandler, Filters, Job import telegram import logging import pickle import os from subprocess import call import datetime import sys if not 'win' in sys.plat...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 201, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 201, 198, 2, 201, 198, 2, 50203, 10214, 2488, 49, 5126, 13001, 38729, 18, 20630, 201, 198, 201, 198, 37811, 201, 198,...
2.048137
644
import re from src.util import merge_params, unparsed_to_map import subprocess from termcolor import colored from src.config import get_config, persist_config import click import tempfile from pathlib import Path pathDataRe = re.compile(r"path\.data\s?=", re.IGNORECASE) @click.command(context_settings=dict( ign...
[ 11748, 302, 198, 6738, 12351, 13, 22602, 1330, 20121, 62, 37266, 11, 8593, 945, 276, 62, 1462, 62, 8899, 198, 11748, 850, 14681, 198, 198, 6738, 3381, 8043, 1330, 16396, 198, 6738, 12351, 13, 11250, 1330, 651, 62, 11250, 11, 21160, 62...
2.78726
832
# coding=utf-8 import socket import select s = socket.socket() # host = socket.gethostname() host = '127.0.0.1' port = 1234 s.bind((host, port)) s.listen(5) inputs = [s] while True: rs, ws, es = select.select(inputs, [], [], 5) # select函数 for r in rs: if r is s: c, address = s.accept() ...
[ 2, 19617, 28, 40477, 12, 23, 198, 11748, 17802, 198, 11748, 2922, 198, 198, 82, 796, 17802, 13, 44971, 3419, 198, 198, 2, 2583, 796, 17802, 13, 1136, 4774, 3672, 3419, 198, 4774, 796, 705, 16799, 13, 15, 13, 15, 13, 16, 6, 198, ...
1.151261
952
import numpy as np import random from keras.models import Sequential, Model from keras.layers import Dense, LSTM, Dropout, merge, Input from keras.layers.embeddings import Embedding from keras.regularizers import l2 from keras.callbacks import ModelCheckpoint import cPickle # Create data matrices and labels list from...
[ 11748, 299, 32152, 355, 45941, 198, 11748, 4738, 198, 6738, 41927, 292, 13, 27530, 1330, 24604, 1843, 11, 9104, 198, 6738, 41927, 292, 13, 75, 6962, 1330, 360, 1072, 11, 406, 2257, 44, 11, 14258, 448, 11, 20121, 11, 23412, 220, 198, ...
2.714133
1,868
"""Classifier for ARDA. guarantee learned domain-invariant representations are discriminative enough to accomplish the final classification task """ import torch.nn.functional as F from torch import nn class Classifier(nn.Module): """LeNet classifier model for ARDA.""" def __init__(self): """Init L...
[ 37811, 9487, 7483, 329, 5923, 5631, 13, 198, 198, 5162, 4741, 1453, 4499, 7386, 12, 16340, 2743, 415, 24612, 389, 6534, 259, 876, 1576, 198, 1462, 9989, 262, 2457, 17923, 4876, 198, 37811, 198, 198, 11748, 28034, 13, 20471, 13, 45124, ...
2.647577
227
# encoding: utf-8 from django import template from django.utils.safestring import mark_safe from django.utils.html import escape import re register = template.Library() @register.filter @register.filter @register.filter def wikilink(value): """ Produce wiki style links to other pages within the database,...
[ 2, 21004, 25, 3384, 69, 12, 23, 198, 6738, 42625, 14208, 1330, 11055, 198, 6738, 42625, 14208, 13, 26791, 13, 49585, 395, 1806, 1330, 1317, 62, 21230, 198, 6738, 42625, 14208, 13, 26791, 13, 6494, 1330, 6654, 198, 11748, 302, 198, 198...
2.258348
569
from notebooks.computer_science.high_performance_python.profiling.utils_timing import timefn @timefn @timefn for i in range(1, 10000): pass for i in xrange(1, 10000): pass
[ 6738, 43935, 13, 33215, 62, 16801, 13, 8929, 62, 26585, 62, 29412, 13, 5577, 4386, 13, 26791, 62, 16514, 278, 1330, 640, 22184, 198, 198, 31, 2435, 22184, 198, 198, 31, 2435, 22184, 628, 198, 1640, 1312, 287, 2837, 7, 16, 11, 33028,...
2.776119
67
# Create your views here. from django.views.generic.list import ListView from django_gotolong.amfi.models import Amfi from django_gotolong.bhav.models import Bhav from django_gotolong.corpact.models import Corpact from django_gotolong.dematsum.models import DematSum from django_gotolong.demattxn.models import Dema...
[ 2, 13610, 534, 5009, 994, 13, 198, 198, 6738, 42625, 14208, 13, 33571, 13, 41357, 13, 4868, 1330, 7343, 7680, 198, 198, 6738, 42625, 14208, 62, 23442, 349, 506, 13, 321, 12463, 13, 27530, 1330, 1703, 12463, 198, 198, 6738, 42625, 1420...
2.891975
324
# Characters # Write a Python program to create # a dictionary from a string where # the keys are the characters # and the values are the frequency # of the characters. # # Your program should ask the user # to enter a string, convert it into # the dictionary described above, # and print the resulting dictionary. # # E...
[ 2, 26813, 198, 2, 19430, 257, 11361, 1430, 284, 2251, 198, 2, 257, 22155, 422, 257, 4731, 810, 198, 2, 262, 8251, 389, 262, 3435, 198, 2, 290, 262, 3815, 389, 262, 8373, 198, 2, 286, 262, 3435, 13, 198, 2, 198, 2, 3406, 1430, ...
3.045455
198
""" Create 3d elevation plots of model runs and then animate them """ from LSDPlottingTools import LSDMap_GDALIO as IO import matplotlib.pyplot as plt from mayavi import mlab from mayavi.modules.grid_plane import GridPlane from matplotlib import cm import numpy as np import os from sys import platform import sys from...
[ 37811, 198, 16447, 513, 67, 22910, 21528, 286, 2746, 4539, 290, 788, 43828, 606, 198, 37811, 628, 198, 6738, 27483, 43328, 889, 33637, 1330, 27483, 13912, 62, 45113, 1847, 9399, 355, 24418, 198, 11748, 2603, 29487, 8019, 13, 9078, 29487, ...
3.312212
868
# Apache License Version 2.0 # # Copyright (c) 2021., Redis Labs Modules # All rights reserved. # import csv import json import logging import datetime import redis from redistimeseries.client import Client from redisbench_admin.export.common.common import split_tags_string from redisbench_admin.run.git import git...
[ 2, 220, 24843, 13789, 10628, 362, 13, 15, 198, 2, 198, 2, 220, 15069, 357, 66, 8, 33448, 1539, 2297, 271, 23500, 3401, 5028, 198, 2, 220, 1439, 2489, 10395, 13, 198, 2, 198, 11748, 269, 21370, 198, 11748, 33918, 198, 11748, 18931, ...
3.111702
188
ALL_COMPLETED = 1 ANY_COMPLETED = 2 ALWAYS = 3
[ 7036, 62, 41335, 36493, 796, 352, 198, 31827, 62, 41335, 36493, 796, 362, 198, 1847, 42451, 796, 513, 198 ]
2.473684
19
from typing import List import numpy as np def calculate_dice( true_positives: np.array, false_positives: np.array, false_negatives: np.array, ) -> np.array: """ Calculate list of Dice coefficients. Args: true_positives: true positives numpy tensor false_positives: false posi...
[ 6738, 19720, 1330, 7343, 198, 198, 11748, 299, 32152, 355, 45941, 628, 198, 4299, 15284, 62, 67, 501, 7, 198, 220, 220, 220, 2081, 62, 1930, 20288, 25, 45941, 13, 18747, 11, 198, 220, 220, 220, 3991, 62, 1930, 20288, 25, 45941, 13, ...
2.353896
616
from eventstore_grpc.operations.merge_indexes import merge_indexes from eventstore_grpc.operations.resign_node import resign_node from eventstore_grpc.operations.restart_persistent_subscritions import ( restart_persistent_subscriptions, ) from eventstore_grpc.operations.set_node_priority import set_node_priority fr...
[ 6738, 1785, 8095, 62, 2164, 14751, 13, 3575, 602, 13, 647, 469, 62, 9630, 274, 1330, 20121, 62, 9630, 274, 198, 6738, 1785, 8095, 62, 2164, 14751, 13, 3575, 602, 13, 411, 570, 62, 17440, 1330, 10931, 62, 17440, 198, 6738, 1785, 8095...
3.213836
159
import pytest from base.webdriverfactory import WebDriverFactory from pages.home.login_page import LoginPage @pytest.yield_fixture() @pytest.yield_fixture(scope="class") @pytest.fixture(scope="session") @pytest.fixture(scope="session")
[ 11748, 12972, 9288, 198, 6738, 2779, 13, 12384, 26230, 69, 9548, 1330, 5313, 32103, 22810, 198, 6738, 5468, 13, 11195, 13, 38235, 62, 7700, 1330, 23093, 9876, 198, 198, 31, 9078, 9288, 13, 88, 1164, 62, 69, 9602, 3419, 198, 198, 31, ...
2.950617
81
import contextlib import json import os import sys import urllib import urllib2 from google.appengine.api import users from google.appengine.ext import ndb import jinja2 import webapp2 # ------------------------------------------------------------------------- # API_KEY = "8e635b5992d237d6" JINJA_ENVIRONMENT = ji...
[ 11748, 4732, 8019, 198, 11748, 33918, 198, 11748, 28686, 198, 11748, 25064, 198, 11748, 2956, 297, 571, 198, 11748, 2956, 297, 571, 17, 198, 198, 6738, 23645, 13, 1324, 18392, 13, 15042, 1330, 2985, 198, 6738, 23645, 13, 1324, 18392, 13...
2.811182
2,039
#!/user/bin/env python # -*- coding: UTF-8 -*- __author__ = 'miaoChenLiang' # ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ # # import++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ # # ↓++++++++++++++++++++++++++++++...
[ 2, 48443, 7220, 14, 8800, 14, 24330, 21015, 198, 2, 532, 9, 12, 19617, 25, 41002, 12, 23, 532, 9, 12, 198, 834, 9800, 834, 796, 705, 76, 13481, 34, 831, 43, 15483, 6, 198, 198, 2, 1343, 44627, 44627, 44627, 44627, 44627, 44627, ...
5.75625
160
import array from samples.abstract_song import Song import time
[ 11748, 7177, 198, 6738, 8405, 13, 397, 8709, 62, 34050, 1330, 10940, 198, 11748, 640, 198 ]
4
16
# (c) 2020 Kazuki KOHZUKI import cpu from utils import * BOARD = [[ [[ 0, 0, 0, 0], [ 0, 0, 0, 0], [ 0, 0, 0, 0], [ 0, 0, 0, 0]], [[ 0, 0, 0, 0], [ 0, 0, 0, 0], [ 0, 0, 0, 0], [ 0, 0, 0, 0]], [[ 0, 0, 0, 0], [ 0, 0, 0, 0], [ 0, 0, 0, 0], [ 0, 0, 0, 0]], [[ 0, 0, ...
[ 198, 2, 357, 66, 8, 12131, 16385, 11308, 509, 12096, 57, 15039, 40, 198, 198, 11748, 42804, 198, 6738, 3384, 4487, 1330, 1635, 198, 198, 8202, 9795, 796, 16410, 198, 197, 197, 30109, 657, 11, 220, 657, 11, 220, 657, 11, 220, 657, ...
1.504644
969
num1 = input() num2 = input() nums = [num1, num2] result = '' result += 'Before:\n' result += f'a = {nums[0]}\n' result += f'b = {nums[1]}\n' result += 'After:\n' result += f'a = {nums[1]}\n' result += f'b = {nums[0]}' print(result)
[ 22510, 16, 796, 5128, 3419, 198, 22510, 17, 796, 5128, 3419, 198, 77, 5700, 796, 685, 22510, 16, 11, 997, 17, 60, 198, 198, 20274, 796, 10148, 198, 20274, 15853, 705, 8421, 7479, 77, 6, 198, 20274, 15853, 277, 6, 64, 796, 1391, 77...
2.108108
111
import shutil import numpy as np from scp import SCP import robots import yaml import argparse import subprocess import time import random import copy import shutil from collections import defaultdict import tempfile from pathlib import Path import msgpack import sys import os sys.path.append(os.getcwd()) import main...
[ 11748, 4423, 346, 198, 11748, 299, 32152, 355, 45941, 198, 6738, 629, 79, 1330, 17527, 198, 11748, 14193, 198, 11748, 331, 43695, 198, 11748, 1822, 29572, 198, 11748, 850, 14681, 198, 11748, 640, 198, 11748, 4738, 198, 11748, 4866, 198, ...
3.134831
178
print("Test-1------------------------") print(rearrange_digits([4, 6, 2, 5, 9, 8])) # [964, 852] print(rearrange_digits([1, 2, 3, 4, 5])) # [42, 531] print("Test-2------------------------") print(rearrange_digits([])) # At least 2 numbers required print("Test-3------------------------") print(rearrange_digits([1...
[ 220, 220, 198, 198, 4798, 7203, 14402, 12, 16, 22369, 4943, 198, 4798, 7, 260, 3258, 858, 62, 12894, 896, 26933, 19, 11, 718, 11, 362, 11, 642, 11, 860, 11, 807, 60, 4008, 198, 2, 685, 24, 2414, 11, 807, 4309, 60, 198, 4798, 7...
2.70229
131
#!/usr/bin/env python """ Analyze Merfish data ======================== This tutorial shows how to apply Squidpy for the analysis of Merfish data. The data used here was obtained from :cite:`Moffitt2018-me`. We provide a pre-processed subset of the data, in :class:`anndata.AnnData` format. For details on how it was p...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 37811, 198, 37702, 2736, 4638, 11084, 1366, 198, 4770, 2559, 198, 198, 1212, 11808, 2523, 703, 284, 4174, 48799, 9078, 329, 262, 3781, 286, 4638, 11084, 1366, 13, 198, 198, 464, 1366, ...
3.442494
1,652
#!/usr/bin/env python # -*- coding: utf-8 -*- from flask import Blueprint from . import views message_api = Blueprint('message', __name__) # 消息入口 message_api.add_url_rule('/entry', view_func=views.EntryView.as_view('entry')) # 查询任务状态 message_api.add_url_rule( '/notify_task/<task_id>', view_func=views.NotifyT...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 6738, 42903, 1330, 39932, 198, 198, 6738, 764, 1330, 5009, 198, 198, 20500, 62, 15042, 796, 39932, 10786, 20500, 3256, ...
2.099462
372
import datetime from ..api import project_data_from_master, project_data_from_master_month from ..core.temporal import Month
[ 11748, 4818, 8079, 198, 198, 6738, 11485, 15042, 1330, 1628, 62, 7890, 62, 6738, 62, 9866, 11, 1628, 62, 7890, 62, 6738, 62, 9866, 62, 8424, 198, 6738, 11485, 7295, 13, 11498, 35738, 1330, 16061, 628, 198 ]
3.459459
37
import json import xml.etree.ElementTree as et # class Song: # def __init__(self, song_id, title, artist): # self.song_id = song_id # self.title = title # self.artist = artist # # # class SongSerializer: # def serialize(self, song, format): # if format == "JSON": # ...
[ 11748, 33918, 198, 11748, 35555, 13, 316, 631, 13, 20180, 27660, 355, 2123, 628, 198, 2, 1398, 10940, 25, 198, 2, 220, 220, 220, 220, 825, 11593, 15003, 834, 7, 944, 11, 3496, 62, 312, 11, 3670, 11, 6802, 2599, 198, 2, 220, 220, ...
2.433333
600
import os from step_impl.utils.driver import Driver from getgauge.python import step @step("Give an option to Log In") @step("Show the log in status for user <name>") @step("Login as name <name> and <password>")
[ 11748, 28686, 198, 6738, 2239, 62, 23928, 13, 26791, 13, 26230, 1330, 12434, 198, 6738, 651, 70, 559, 469, 13, 29412, 1330, 2239, 198, 198, 31, 9662, 7203, 23318, 281, 3038, 284, 5972, 554, 4943, 198, 198, 31, 9662, 7203, 15307, 262, ...
3.19403
67
#IMPORTANT: pydevd_constants must be the 1st thing defined because it'll keep a reference to the original sys._getframe from pydevd_constants import * #@UnusedWildImport import pydev_imports from pydevd_comm import CMD_CHANGE_VARIABLE, \ CMD_EVALUATE_EXPRESSION, \ CMD_...
[ 2, 3955, 15490, 8643, 25, 279, 5173, 1990, 67, 62, 9979, 1187, 1276, 307, 262, 352, 301, 1517, 5447, 780, 340, 1183, 1394, 257, 4941, 284, 262, 2656, 25064, 13557, 1136, 14535, 198, 6738, 279, 5173, 1990, 67, 62, 9979, 1187, 1330, 1...
2.044336
21,247
#!/usr/bin/env python '''Simple functions and variables for easily accessing common files and choices of parameters. ''' import os import linefinder.config as l_config ######################################################################## ######################################################################## ...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 7061, 6, 26437, 5499, 290, 9633, 329, 3538, 22534, 2219, 3696, 290, 7747, 198, 1659, 10007, 13, 198, 7061, 6, 198, 198, 11748, 28686, 198, 198, 11748, 1627, 22805, 13, 11250, 355, 300,...
7.738372
172
""" Support module for recruiter, will generate a notification email to recruiter when admin gives suggestions """ import json from django.shortcuts import render from django.http.response import HttpResponse from django.contrib.auth.decorators import login_required from django.conf import settings from django...
[ 37811, 198, 220, 220, 220, 7929, 8265, 329, 8921, 2676, 11, 481, 7716, 257, 14483, 198, 220, 220, 220, 3053, 284, 8921, 2676, 618, 13169, 3607, 11776, 198, 37811, 198, 198, 11748, 33918, 198, 6738, 42625, 14208, 13, 19509, 23779, 1330, ...
2.336973
7,968
import idautils import idaapi import idc import subprocess import pycparser import ida_typeinf import ida_nalt sdk_funcs_file = open(idc.ARGV[1], "w") sdk_funcs_header = open(idc.ARGV[2], "w") # Uses demumble as a drop in replacment cppfilt_path = idc.ARGV[3] print "Wait for auto analysis" idc.auto_wait() # Disable ...
[ 11748, 4686, 2306, 4487, 198, 11748, 220, 3755, 15042, 198, 11748, 4686, 66, 198, 11748, 850, 14681, 198, 11748, 12972, 13155, 28198, 198, 11748, 220, 3755, 62, 4906, 10745, 198, 11748, 220, 3755, 62, 77, 2501, 198, 198, 21282, 74, 62, ...
2.449896
958
import os import math from concurrent.futures import ProcessPoolExecutor import multiprocessing as mp import logging import pandas as pd def df_map(func, df: pd.DataFrame, no_of_cores: int = None, no_of_cores_perc: float = None) -> pd.DataFrame: """ Maps function func to DataFrame df using multithreading ...
[ 11748, 28686, 198, 11748, 10688, 198, 6738, 24580, 13, 69, 315, 942, 1330, 10854, 27201, 23002, 38409, 198, 11748, 18540, 305, 919, 278, 355, 29034, 198, 11748, 18931, 198, 11748, 19798, 292, 355, 279, 67, 628, 198, 4299, 47764, 62, 889...
2.272727
847
#[Super SloMo] ##High Quality Estimation of Multiple Intermediate Frames for Video Interpolation import argparse import torch import torchvision import torchvision.transforms as transforms import torch.nn as nn from model import superslomo_half as superslomo from model.extraction import center, ends, MPRNet from ut...
[ 198, 2, 58, 12442, 3454, 78, 16632, 60, 198, 2235, 11922, 14156, 10062, 18991, 286, 20401, 42540, 36291, 329, 7623, 4225, 16104, 341, 198, 198, 11748, 1822, 29572, 198, 198, 11748, 28034, 198, 11748, 28034, 10178, 198, 11748, 28034, 10178...
2.961934
972
from math import inf from .player import AbstractPlayer, player_type from .board import Outcome @player_type
[ 6738, 10688, 1330, 1167, 198, 198, 6738, 764, 7829, 1330, 27741, 14140, 11, 2137, 62, 4906, 198, 6738, 764, 3526, 1330, 3806, 2958, 628, 198, 198, 31, 7829, 62, 4906, 198 ]
3.645161
31
import numpy as np import string as s with open("input.txt") as f: lines = f.readlines() chars = [list(x.strip()) for x in lines] oxy_arr = np.array(chars, dtype=int) co2_arr = np.copy(oxy_arr) num_cols = len(chars[0]) for i in range(num_cols): keep_val = int(np.median(oxy_arr[:,i]) + 0.5) # +0.5 to...
[ 11748, 299, 32152, 355, 45941, 201, 198, 11748, 4731, 355, 264, 201, 198, 201, 198, 4480, 1280, 7203, 15414, 13, 14116, 4943, 355, 277, 25, 201, 198, 220, 3951, 796, 277, 13, 961, 6615, 3419, 201, 198, 201, 198, 354, 945, 796, 685, ...
2.081281
406
from cleo import Command from pyfiglet import Figlet
[ 6738, 1190, 78, 1330, 9455, 198, 6738, 12972, 5647, 1616, 1330, 12138, 1616, 198 ]
3.785714
14
from ase.data import covalent_radii as ase_covalent_radii from ase.data import chemical_symbols default_element_radii = {} default_hard_radii = {} for z in range(len(ase_covalent_radii)): default_element_radii[chemical_symbols[z]] = ase_covalent_radii[z] default_hard_radii[chemical_symbols[z]] = 0.9*ase...
[ 628, 198, 6738, 257, 325, 13, 7890, 1330, 269, 8325, 298, 62, 6335, 4178, 355, 257, 325, 62, 66, 8325, 298, 62, 6335, 4178, 198, 6738, 257, 325, 13, 7890, 1330, 5931, 62, 1837, 2022, 10220, 628, 198, 12286, 62, 30854, 62, 6335, 41...
2.084381
557
import pytest import numpy as np from discolight.annotations import (annotations_to_numpy_array) from discolight.augmentations.motionblur import MotionBlur, Direction @pytest.mark.usefixtures("sample_image") @pytest.mark.parametrize("direction", [ Direction.UP, Direction.DOWN, Direction.RIGHT, Direction.LEFT, ...
[ 11748, 12972, 9288, 198, 11748, 299, 32152, 355, 45941, 198, 198, 6738, 1221, 349, 432, 13, 34574, 602, 1330, 357, 34574, 602, 62, 1462, 62, 77, 32152, 62, 18747, 8, 198, 6738, 1221, 349, 432, 13, 559, 5154, 602, 13, 38714, 2436, 33...
2.942857
140
# Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under t...
[ 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, 7330, 257, 4866, 286, 262, 13789, 379, 198, 2,...
2.328167
6,387
""" Establish a websocket connection and replace local terminal with a pty that sends all output to the server. """ import asyncio import base64 import datetime import json import os import pty import signal import ssl import sys import webbrowser from math import floor from typing import Callable, List, Optional from...
[ 37811, 198, 22362, 17148, 257, 2639, 5459, 4637, 290, 6330, 1957, 12094, 351, 257, 279, 774, 198, 5562, 12800, 477, 5072, 284, 262, 4382, 13, 198, 37811, 198, 198, 11748, 30351, 952, 198, 11748, 2779, 2414, 198, 11748, 4818, 8079, 198, ...
2.356405
968
#!/usr/bin/python class Error(Exception): """Base class for exceptions """ pass class BlockError(Error): """Raised when Block processing fails. Rollback not required Attributes: reason -- what caused the block to fail (eg instruction that is invalid) id -- id of the block that faile...
[ 2, 48443, 14629, 14, 8800, 14, 29412, 198, 198, 4871, 13047, 7, 16922, 2599, 198, 220, 220, 220, 37227, 14881, 1398, 329, 13269, 37227, 198, 220, 220, 220, 1208, 628, 198, 4871, 9726, 12331, 7, 12331, 2599, 198, 220, 220, 220, 37227, ...
3.17033
182
import logging from flask import jsonify from kgeditor import db, models from kgeditor.utils.common import login_required from kgeditor.utils.response_code import RET from kgeditor.models import Graph from . import api @api.route("/demo") @api.route('/public_graph', methods=['GET'])
[ 11748, 18931, 198, 6738, 42903, 1330, 33918, 1958, 198, 6738, 479, 2004, 2072, 1330, 20613, 11, 4981, 198, 6738, 479, 2004, 2072, 13, 26791, 13, 11321, 1330, 17594, 62, 35827, 198, 6738, 479, 2004, 2072, 13, 26791, 13, 26209, 62, 8189, ...
3.287356
87
import dash import dash_html_components as html app = dash.Dash(__name__) app.layout = html.Div([html.Div(className="circle")]) # className属性を設定 if __name__ == "__main__": app.run_server(debug=True)
[ 11748, 14470, 198, 11748, 14470, 62, 6494, 62, 5589, 3906, 355, 27711, 198, 198, 1324, 796, 14470, 13, 43041, 7, 834, 3672, 834, 8, 198, 198, 1324, 13, 39786, 796, 27711, 13, 24095, 26933, 6494, 13, 24095, 7, 4871, 5376, 2625, 45597, ...
2.406977
86
# encoding: utf-8 """Settings class and default values for an API client. """ from os import environ from .version import __version__ # Default API endpoint API_ENDPOINT = "https://api.github.com/" # Default WEB endpoint WEB_ENDPOINT = "https://github.com" # Default User Agent header string USER_AGENT = "octokit....
[ 2, 21004, 25, 3384, 69, 12, 23, 198, 198, 37811, 26232, 1398, 290, 4277, 3815, 329, 281, 7824, 5456, 13, 198, 37811, 198, 198, 6738, 28686, 1330, 551, 2268, 198, 6738, 764, 9641, 1330, 11593, 9641, 834, 628, 198, 2, 15161, 7824, 361...
2.520599
534
from __future__ import print_function import numpy as np
[ 6738, 11593, 37443, 834, 1330, 3601, 62, 8818, 198, 11748, 299, 32152, 355, 45941, 628, 198, 220, 220, 220, 220, 198 ]
3.047619
21
import numpy as np import json from pathlib import Path from tensorflow import keras
[ 11748, 299, 32152, 355, 45941, 198, 11748, 33918, 198, 6738, 3108, 8019, 1330, 10644, 198, 6738, 11192, 273, 11125, 1330, 41927, 292, 628, 628, 628, 628 ]
3.538462
26
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'apiwindow.ui' # # Created by: PyQt5 UI code generator 5.6 # # WARNING! All changes made in this file will be lost! from PyQt5 import QtCore, QtGui, QtWidgets
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 2, 5178, 7822, 7560, 422, 3555, 334, 72, 2393, 705, 15042, 17497, 13, 9019, 6, 198, 2, 198, 2, 15622, 416, 25, 9485, 48, 83, 20, 12454, 2438, 17301, 642, 13, ...
2.879518
83
# Copyright (C) 2012 Andy Balaam and The Pepper Developers # Released under the MIT License. See the file COPYING.txt for details. from assert_parser_result import assert_parser_result from assert_parser_result import assert_parser_result_from_code
[ 2, 15069, 357, 34, 8, 2321, 12382, 347, 6081, 321, 290, 383, 24346, 34152, 198, 2, 28728, 739, 262, 17168, 13789, 13, 220, 4091, 262, 2393, 27975, 45761, 13, 14116, 329, 3307, 13, 198, 198, 6738, 6818, 62, 48610, 62, 20274, 1330, 68...
3.820896
67
# Generated by Django 3.1.6 on 2021-02-13 15:35 from django.db import migrations, models import django.db.models.deletion
[ 2, 2980, 515, 416, 37770, 513, 13, 16, 13, 21, 319, 33448, 12, 2999, 12, 1485, 1315, 25, 2327, 198, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 11, 4981, 198, 11748, 42625, 14208, 13, 9945, 13, 27530, 13, 2934, 1616, 295, ...
2.818182
44
#!/usr/bin/env python3 # -*- coding:UTF-8 -*- __author__ = 'zachary' """ File Name: case.py Created Time: 2020-04-04 19:32:10 Last Modified: """ import requests import os import re from parsel import Selector if __name__ == "__main__": # url = '' # resp = requests.get(url) resp = open('./html/flight.html...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 2, 532, 9, 12, 19617, 25, 48504, 12, 23, 532, 9, 12, 198, 834, 9800, 834, 796, 705, 89, 620, 560, 6, 198, 37811, 198, 8979, 6530, 25, 1339, 13, 9078, 198, 41972, 3862, 25, ...
2.171733
658
import unittest import mock from Pubsub import Publisher, Broker, Channel, Subscriber if __name__ == '__main__': unittest.main()
[ 11748, 555, 715, 395, 198, 11748, 15290, 198, 6738, 8525, 7266, 1330, 28045, 11, 2806, 6122, 11, 11102, 11, 3834, 1416, 24735, 628, 628, 198, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 198, 220, 220, 220, 555, 715,...
2.93617
47
# -*- coding: utf-8 -*- from anmodel import models
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 6738, 281, 19849, 1330, 4981, 628, 220, 220, 220, 220 ]
2.28
25
#! /usr/bin/env python ''' Adam Saland CSCI 330 Command line interface for cpu scheduling simulations ''' import sys from optparse import OptionParser import random parser = OptionParser() parser.add_option("-s", "--seed", default=0, help="random", action="store", type="int", dest="seed") parser.add_option("-p", "--pr...
[ 2, 0, 1220, 14629, 14, 8800, 14, 24330, 21015, 198, 7061, 6, 198, 23159, 4849, 392, 198, 34, 6173, 40, 25508, 198, 21575, 1627, 7071, 329, 42804, 26925, 27785, 198, 7061, 6, 198, 11748, 25064, 198, 6738, 2172, 29572, 1330, 16018, 4667...
2.308279
2,754
# This code is part of Qiskit. # # (C) Copyright IBM 2022. # # This code is licensed under the Apache License, Version 2.0. You may # obtain a copy of this license in the LICENSE.txt file in the root directory # of this source tree or at http://www.apache.org/licenses/LICENSE-2.0. # # Any modifications or derivative wo...
[ 2, 770, 2438, 318, 636, 286, 1195, 1984, 270, 13, 198, 2, 198, 2, 357, 34, 8, 15069, 19764, 33160, 13, 198, 2, 198, 2, 770, 2438, 318, 11971, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 13, 921, 743, 198, 2, 7330, 257, 486...
2.434936
1,414
from configparser import ConfigParser
[ 6738, 4566, 48610, 1330, 17056, 46677, 628, 198 ]
5
8
import unittest import os import json from uitester import config
[ 11748, 555, 715, 395, 198, 11748, 28686, 198, 11748, 33918, 198, 6738, 334, 2737, 353, 1330, 4566, 628 ]
3.722222
18
from meross_iot.controller.device import BaseDevice from meross_iot.controller.mixins.toggle import ToggleXMixin class MSS420F(ToggleXMixin, BaseDevice): """ MSS420F power strip """ class MSS425E(ToggleXMixin, BaseDevice): """ MSS425E power strip """ class MSS425F(ToggleXMixin, BaseDevice)...
[ 6738, 4017, 793, 62, 5151, 13, 36500, 13, 25202, 1330, 7308, 24728, 198, 6738, 4017, 793, 62, 5151, 13, 36500, 13, 19816, 1040, 13, 44256, 1330, 34098, 55, 35608, 259, 628, 198, 4871, 337, 5432, 27211, 37, 7, 51, 20258, 55, 35608, 2...
2.586592
179
import os from math import exp from parsable import parsable import pomagma.util import util SPECS = {} SPECS['sk'] = { 'binary_probs': { 'APP': 0.374992, 'COMP': 0.198589, }, 'nullary_weights': { 'B': 1.0, 'C': 1.30428, 'CB': 1.35451, 'CI': 1.74145, ...
[ 11748, 28686, 198, 6738, 10688, 1330, 1033, 198, 198, 6738, 13544, 540, 1330, 13544, 540, 198, 198, 11748, 279, 296, 363, 2611, 13, 22602, 198, 11748, 7736, 198, 198, 48451, 50, 796, 23884, 198, 198, 48451, 50, 17816, 8135, 20520, 796, ...
1.620089
2,698
import configargparse from dataset import dataloader as loader from fastspeech import FeedForwardTransformer import sys import torch from dataset.texts import valid_symbols import os from utils.hparams import HParam, load_hparam_str import numpy as np def get_parser(): """Get parser of training arguments.""" ...
[ 11748, 4566, 853, 29572, 198, 6738, 27039, 1330, 4818, 282, 1170, 263, 355, 40213, 198, 6738, 3049, 45862, 1330, 18272, 39746, 8291, 16354, 198, 11748, 25064, 198, 11748, 28034, 198, 6738, 27039, 13, 5239, 82, 1330, 4938, 62, 1837, 2022, ...
2.512987
770
""" A test script to repair cassandra. """ import logging from cassandra_interface import NODE_TOOL from subprocess import call def run(): """ Starts up cassandra. """ logging.warning("Repairing Cassandra") call([NODE_TOOL, 'repair']) logging.warning("Done!") if __name__ == '__main__': run()
[ 37811, 317, 1332, 4226, 284, 9185, 30606, 15918, 13, 37227, 198, 11748, 18931, 198, 198, 6738, 30606, 15918, 62, 39994, 1330, 399, 16820, 62, 10468, 3535, 198, 6738, 850, 14681, 1330, 869, 198, 198, 4299, 1057, 33529, 220, 198, 220, 372...
3.009615
104
# This file is part of the NESi software. # # Copyright (c) 2020 # Original Software Design by Ilya Etingof <https://github.com/etingof>. # # Software adapted by inexio <https://github.com/inexio>. # - Janis Groß <https://github.com/unkn0wn-user> # - Philip Konrath <https://github.com/Connyko65> # - Alexander Dincher <...
[ 2, 770, 2393, 318, 636, 286, 262, 31925, 72, 3788, 13, 198, 2, 198, 2, 15069, 357, 66, 8, 12131, 198, 2, 13745, 10442, 8495, 416, 49804, 64, 412, 889, 1659, 1279, 5450, 1378, 12567, 13, 785, 14, 13629, 1659, 28401, 198, 2, 198, ...
3.074866
187
import gym from gym import error, spaces, utils from gym.utils import seeding # import cityflow import pandas as pd import os import numpy as np import json import math from gym.spaces import Discrete, Box # metadata = {'render.modes': ['human']} # def render(self, mode='human', close=False): ...
[ 11748, 11550, 201, 198, 6738, 11550, 1330, 4049, 11, 9029, 11, 3384, 4487, 201, 198, 6738, 11550, 13, 26791, 1330, 384, 8228, 201, 198, 2, 201, 198, 11748, 1748, 11125, 201, 198, 11748, 19798, 292, 355, 279, 67, 201, 198, 11748, 28686...
2.693548
124
from couchbase_core.subdocument import Spec from .options import Seconds, FiniteDuration, forward_args from couchbase_core.transcodable import Transcodable from couchbase_core._libcouchbase import Result as SDK2Result from couchbase_core.result import MultiResult, SubdocResult from typing import * from boltons.funcutil...
[ 6738, 18507, 8692, 62, 7295, 13, 7266, 22897, 1330, 18291, 198, 6738, 764, 25811, 1330, 40876, 11, 4463, 578, 26054, 11, 2651, 62, 22046, 198, 6738, 18507, 8692, 62, 7295, 13, 7645, 19815, 540, 1330, 3602, 19815, 540, 198, 6738, 18507, ...
3.407216
194
#!/usr/bin/env python3 from abc import ABC import typing
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 6738, 450, 66, 1330, 9738, 198, 11748, 19720, 628 ]
3.052632
19
import os import subprocess from datetime import datetime from time import time from os.path import isdir, exists, join, abspath main() # os.chdir(r'C:\Users\SANA-Sirius\Desktop\Software\AutoHotkey\repo') # main() if __name__ == '__main__': input()
[ 11748, 28686, 201, 198, 11748, 850, 14681, 201, 198, 6738, 4818, 8079, 1330, 4818, 8079, 201, 198, 6738, 640, 1330, 640, 201, 198, 6738, 28686, 13, 6978, 1330, 318, 15908, 11, 7160, 11, 4654, 11, 2352, 6978, 201, 198, 201, 198, 201, ...
2.556604
106
# Copyright (c) 2019, Palo Alto Networks # # Permission to use, copy, modify, and/or distribute this software for any # purpose with or without fee is hereby granted, provided that the above # copyright notice and this permission notice appear in all copies. # # THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS...
[ 2, 15069, 357, 66, 8, 13130, 11, 44878, 34317, 27862, 198, 2, 198, 2, 2448, 3411, 284, 779, 11, 4866, 11, 13096, 11, 290, 14, 273, 14983, 428, 3788, 329, 597, 198, 2, 4007, 351, 393, 1231, 6838, 318, 29376, 7520, 11, 2810, 326, ...
3.255639
798
from django.test import TestCase from django.contrib.auth import get_user_model from django.urls import reverse from rest_framework.test import APIClient from rest_framework import status CREATE_USER_URL = reverse("user:create") TOKEN_URL = reverse("user:token") ME_URL = reverse("user:me") # defining create here to...
[ 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, 42625, 14208, 13, 6371, 82, 1330, 9575, 198, 198, 6738, 1334, 62, 30604, 13, 9288, 1330, 34...
2.359687
2,302
import os from datetime import datetime import gym import gym_kuka_mujoco import numpy as np from stable_baselines import PPO2 from stable_baselines.common.vec_env import DummyVecEnv, SubprocVecEnv, VecNormalize from stable_baselines.common.policies import MlpPolicy if __name__=='__main__': # Visualize the solut...
[ 11748, 28686, 220, 198, 6738, 4818, 8079, 1330, 4818, 8079, 198, 11748, 11550, 198, 11748, 11550, 62, 74, 14852, 62, 76, 23577, 25634, 198, 11748, 299, 32152, 355, 45941, 198, 198, 6738, 8245, 62, 12093, 20655, 1330, 350, 16402, 17, 198...
2.114504
655
from email.mime.text import MIMEText from email.mime.multipart import MIMEMultipart from email.Utils import formatdate import smtplib date_fmt = '%m/%d/%y %H:%M'
[ 6738, 3053, 13, 76, 524, 13, 5239, 1330, 337, 3955, 2767, 2302, 198, 6738, 3053, 13, 76, 524, 13, 16680, 541, 433, 1330, 337, 3955, 3620, 586, 541, 433, 198, 6738, 3053, 13, 18274, 4487, 1330, 5794, 4475, 198, 198, 11748, 895, 83, ...
2.411765
68
from hubcheck.pageobjects.widgets.form_base import FormBase from hubcheck.pageobjects.basepageelement import Text class LoginRemindForm_Locators_Base(object): """locators for LoginRemindForm object""" locators = { 'base' : "css=#hubForm", 'email' : "css=#email", 'submit' :...
[ 6738, 12575, 9122, 13, 7700, 48205, 13, 28029, 11407, 13, 687, 62, 8692, 1330, 5178, 14881, 198, 6738, 12575, 9122, 13, 7700, 48205, 13, 12093, 538, 496, 30854, 1330, 8255, 628, 198, 4871, 23093, 8413, 521, 8479, 62, 33711, 2024, 62, ...
2.510638
141
import asyncio import aiohttp import time from aiohttp_requests import requests try: from aiohttp import ClientError except: from aiohttp import ClientProxyConnectionError as ProxyConnectionError from proxypool.db import RedisClient from proxypool.setting import * if __name__ == '__main__': Tester().run...
[ 11748, 30351, 952, 198, 11748, 257, 952, 4023, 198, 11748, 640, 198, 6738, 257, 952, 4023, 62, 8897, 3558, 1330, 7007, 198, 198, 28311, 25, 198, 220, 220, 220, 422, 257, 952, 4023, 1330, 20985, 12331, 198, 16341, 25, 198, 220, 220, ...
3.262626
99
import threading import signal import os import time P1 = threading.Thread(target = func) P1.start() P1.join() print "fuck!!!!!" while 1: pass
[ 11748, 4704, 278, 198, 11748, 6737, 198, 11748, 28686, 198, 11748, 640, 198, 220, 220, 220, 220, 220, 220, 220, 220, 628, 628, 198, 198, 47, 16, 796, 4704, 278, 13, 16818, 7, 16793, 796, 25439, 8, 198, 198, 47, 16, 13, 9688, 3419,...
2.469697
66
# Generated by Django 1.11.29 on 2020-06-18 18:26 from django.db import migrations, models
[ 2, 2980, 515, 416, 37770, 352, 13, 1157, 13, 1959, 319, 12131, 12, 3312, 12, 1507, 1248, 25, 2075, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 11, 4981, 628 ]
2.967742
31
import pytest import peewee
[ 11748, 12972, 9288, 198, 11748, 613, 413, 1453, 628, 198 ]
3
10
import requests as req import datetime try: import numpy as np import pandas as pd except: pass from bs4 import BeautifulSoup from io import StringIO, BytesIO from nsepy.archives import date_to_str, __raw_zip_data_to_str PRICE_LIST_URL = 'http://www1.nseindia.com/content/historical/DERIVATIVES/%s/%s/fo%...
[ 11748, 7007, 355, 43089, 198, 11748, 4818, 8079, 198, 28311, 25, 198, 220, 220, 220, 1330, 299, 32152, 355, 45941, 198, 220, 220, 220, 1330, 19798, 292, 355, 279, 67, 198, 16341, 25, 198, 220, 220, 220, 1208, 198, 198, 6738, 275, 82...
2.536797
231
from django.shortcuts import render,redirect from django.contrib import messages, auth from django.contrib.auth.models import User from contacts.models import Contact # Create your views here.
[ 6738, 42625, 14208, 13, 19509, 23779, 1330, 8543, 11, 445, 1060, 198, 6738, 42625, 14208, 13, 3642, 822, 1330, 6218, 11, 6284, 198, 6738, 42625, 14208, 13, 3642, 822, 13, 18439, 13, 27530, 1330, 11787, 198, 6738, 13961, 13, 27530, 1330,...
3.88
50
"""Utility module for sentiment analysis.""" from __future__ import absolute_import from __future__ import division from __future__ import print_function import numpy as np START_CHAR = 1 END_CHAR = 2 OOV_CHAR = 3 def pad_sentence(sentence, sentence_length): """Pad the given sentense at the end. ...
[ 37811, 18274, 879, 8265, 329, 15598, 3781, 526, 15931, 201, 198, 201, 198, 6738, 11593, 37443, 834, 1330, 4112, 62, 11748, 201, 198, 6738, 11593, 37443, 834, 1330, 7297, 201, 198, 6738, 11593, 37443, 834, 1330, 3601, 62, 8818, 201, 198,...
2.853896
308
from pseudoairspeed.analysis import pseudo, load import argparse import os import pandas # source: https://www.youtube.com/watch?v=_2XDyqGhHI0 csv_fn = os.path.join('..', 'data', 'flight_pawel_wing_2017.09.csv') if __name__ == '__main__': main()
[ 6738, 24543, 3468, 39492, 13, 20930, 1330, 24543, 11, 3440, 198, 11748, 1822, 29572, 198, 11748, 28686, 198, 11748, 19798, 292, 198, 198, 2, 2723, 25, 3740, 1378, 2503, 13, 11604, 13, 785, 14, 8340, 30, 85, 28, 62, 17, 55, 35, 88, ...
2.534653
101
# Copyright (C) 2013 by Brian Neal. # This file is part of m209, the M-209 simulation. # m209 is released under the MIT License (see LICENSE.txt). __version__ = '0.1.0' class M209Error(Exception): """Base Exception class for all M209 errors""" pass
[ 2, 15069, 357, 34, 8, 2211, 416, 8403, 29189, 13, 198, 2, 770, 2393, 318, 636, 286, 285, 22567, 11, 262, 337, 12, 22567, 18640, 13, 198, 2, 285, 22567, 318, 2716, 739, 262, 17168, 13789, 357, 3826, 38559, 24290, 13, 14116, 737, 19...
3.047059
85
from django.shortcuts import render, get_object_or_404 from .models import Person, Document # Create your views here. from django.http import HttpResponse
[ 6738, 42625, 14208, 13, 19509, 23779, 1330, 8543, 11, 651, 62, 15252, 62, 273, 62, 26429, 198, 6738, 764, 27530, 1330, 7755, 11, 16854, 198, 198, 2, 13610, 534, 5009, 994, 13, 198, 198, 6738, 42625, 14208, 13, 4023, 1330, 367, 29281, ...
3.5
46
""" Description taken from: https://archive.ics.uci.edu/ml/datasets/wine 1. Title of Database: Wine recognition data Updated Sept 21, 1998 by C.Blake : Added attribute information 2. Sources: (a) Forina, M. et al, PARVUS - An Extendible Package for Data Exploration, Classification and Correlation. Insti...
[ 37811, 198, 11828, 2077, 422, 25, 3740, 1378, 17474, 13, 873, 13, 42008, 13, 15532, 14, 4029, 14, 19608, 292, 1039, 14, 39002, 198, 198, 16, 13, 11851, 286, 24047, 25, 20447, 9465, 1366, 198, 220, 220, 220, 19433, 2362, 2310, 11, 77...
2.934295
1,872
# -*- coding: utf-8 -*- """ *************************************************************************** AddScriptFromTemplateAction.py --------------------- Date : August 2012 Copyright : (C) 2018 by Matteo Ghetta Email : matteo dot ghetta at gmail dot com ...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 37811, 198, 17174, 17174, 4557, 8162, 198, 220, 220, 220, 3060, 7391, 4863, 30800, 12502, 13, 9078, 198, 220, 220, 220, 41436, 12, 198, 220, 220, 220, 7536, 220, ...
2.533698
549
from .privx_api import PrivXAPI, PrivXAPIResponse, InternalAPIException
[ 6738, 764, 13776, 87, 62, 15042, 1330, 9243, 55, 17614, 11, 9243, 55, 2969, 4663, 9774, 2591, 11, 18628, 17614, 16922, 198 ]
3.272727
22
""" Mask Resolver ------------- This module provides functionality to resolve and write script masks for ``HTCondor`` jobs submission. """ import logging import re from pathlib import Path import pandas as pd from pylhc_submitter.htc.utils import COLUMN_JOB_DIRECTORY, COLUMN_JOB_FILE LOG = logging.ge...
[ 37811, 201, 198, 45195, 1874, 14375, 201, 198, 32501, 201, 198, 201, 198, 1212, 8265, 3769, 11244, 284, 10568, 290, 3551, 4226, 20680, 329, 7559, 39, 4825, 623, 273, 15506, 3946, 201, 198, 7266, 3411, 13, 201, 198, 37811, 201, 198, 11...
2.567932
1,185
from gui import Gui myGui: Gui = Gui() myGui.run()
[ 198, 6738, 11774, 1330, 1962, 72, 198, 198, 1820, 8205, 72, 25, 1962, 72, 796, 1962, 72, 3419, 198, 1820, 8205, 72, 13, 5143, 3419, 198 ]
2.038462
26
import matplotlib.pyplot as plt import matplotlib.animation as animation
[ 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 198, 11748, 2603, 29487, 8019, 13, 11227, 341, 355, 11034, 198 ]
3.47619
21
from collections import deque from .arrange_base import ArrangeBase class ArrangeRotate(ArrangeBase): """ Class to rotate through windows """ def do(self, dummy): """ Main function that performs the arrangement """ windows = self._screen.get_all_windows() amount_of_windows = len(wi...
[ 6738, 17268, 1330, 390, 4188, 198, 198, 6738, 764, 3258, 858, 62, 8692, 1330, 943, 9521, 14881, 628, 198, 198, 4871, 943, 9521, 24864, 378, 7, 3163, 9521, 14881, 2599, 198, 220, 220, 220, 37227, 5016, 284, 23064, 832, 9168, 37227, 628...
2.350245
611
from .downloads import *
[ 6738, 764, 15002, 82, 1330, 1635, 198 ]
3.571429
7
from setuptools import setup, find_packages setup( name='yyam', version='0.1.4', packages=find_packages(), description="include-yy's account manager", author='include-yy', author_email='969041171@qq.com', url='https://github.com/include-yy/account-manager', license='MIT', install_...
[ 6738, 900, 37623, 10141, 1330, 9058, 11, 1064, 62, 43789, 628, 198, 40406, 7, 198, 220, 220, 220, 1438, 11639, 22556, 321, 3256, 198, 220, 220, 220, 2196, 11639, 15, 13, 16, 13, 19, 3256, 198, 220, 220, 220, 10392, 28, 19796, 62, ...
2.211268
284
#!/usr/bin/env python """Tests for `latex_admin` package.""" import unittest from click.testing import CliRunner # from latex_admin import latex_admin from latex_admin import cli class TestLatexAdmin(unittest.TestCase): """Tests for `latex_admin` package.""" def setUp(self): """Set up test fixtur...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 198, 37811, 51, 3558, 329, 4600, 17660, 87, 62, 28482, 63, 5301, 526, 15931, 628, 198, 11748, 555, 715, 395, 198, 198, 6738, 3904, 13, 33407, 1330, 1012, 72, 49493, 198, 2, 422, 4703...
2.530556
360
from typing import Dict from pytorch_lightning import LightningDataModule import pandas as pd from sklearn.base import TransformerMixin from sklearn.preprocessing import OrdinalEncoder from sklearn.preprocessing import StandardScaler from torch.utils.data import DataLoader from lit_saint.dataset import SaintDataset ...
[ 6738, 19720, 1330, 360, 713, 198, 198, 6738, 12972, 13165, 354, 62, 2971, 768, 1330, 12469, 6601, 26796, 198, 11748, 19798, 292, 355, 279, 67, 198, 6738, 1341, 35720, 13, 8692, 1330, 3602, 16354, 35608, 259, 198, 6738, 1341, 35720, 13, ...
2.469499
2,754
import unittest from vat_validator.validators import vat_is_valid_pt
[ 11748, 555, 715, 395, 198, 198, 6738, 410, 265, 62, 12102, 1352, 13, 12102, 2024, 1330, 410, 265, 62, 271, 62, 12102, 62, 457, 628 ]
2.84
25
#!/usr/bin/env python import os from setuptools import setup # Allow setup.py to be run from any path os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir))) setup( name='lbcapi', version='1.0.2', packages=['lbcapi'], include_package_data=True, license='MIT License', des...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 11748, 28686, 198, 6738, 900, 37623, 10141, 1330, 9058, 198, 198, 2, 22507, 9058, 13, 9078, 284, 307, 1057, 422, 597, 3108, 198, 418, 13, 354, 15908, 7, 418, 13, 6978, 13, 27237, 697...
2.502488
201