content
stringlengths
1
1.04M
input_ids
listlengths
1
774k
ratio_char_token
float64
0.38
22.9
token_count
int64
1
774k
import spacy
[ 11748, 599, 1590, 628 ]
3.5
4
from django.db import models # Create your models here. TaskStatuses = { 'New': 'New', 'Ready': 'Ready', 'InProgress': 'In Progress', 'Done': 'Done' }
[ 6738, 42625, 14208, 13, 9945, 1330, 4981, 198, 198, 2, 13610, 534, 4981, 994, 13, 198, 198, 25714, 17126, 2664, 796, 1391, 198, 220, 220, 220, 705, 3791, 10354, 705, 3791, 3256, 198, 220, 220, 220, 705, 35474, 10354, 705, 35474, 3256,...
2.507246
69
#!/usr/bin/env python """ This file is part of the package FUNtoFEM for coupled aeroelastic simulation and design optimization. Copyright (C) 2015 Georgia Tech Research Corporation. Additional copyright (C) 2015 Kevin Jacobson, Jan Kiviaho and Graeme Kennedy. All rights reserved. FUNtoFEM is licensed under the Apache...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 37811, 198, 1212, 2393, 318, 636, 286, 262, 5301, 29397, 1462, 37, 3620, 329, 18064, 257, 3529, 417, 3477, 18640, 198, 392, 1486, 23989, 13, 198, 198, 15269, 357, 34, 8, 1853, 7859, ...
3.073913
460
from .downloadMessages import * __all__=["DownloadGmaneData", "LoadMessages", "ListDataStructures", "InteractionNetwork", "NetworkMeasures", "compoundPartitioning", "NetworkPartitioning", "NetworkDrawer", "NetworkEvolution", "NetworkPCA", "circularStatistics", "TimeStatistics", "AgentStatistics", "EvolutionTimelines", ...
[ 6738, 764, 15002, 36479, 1095, 1330, 1635, 198, 834, 439, 834, 28, 14692, 10002, 38, 805, 68, 6601, 1600, 198, 1, 8912, 36479, 1095, 1600, 198, 1, 8053, 6601, 44909, 942, 1600, 198, 1, 9492, 2673, 26245, 1600, 198, 1, 26245, 5308, 1...
3.486
500
from transbank import *
[ 6738, 1007, 17796, 1330, 1635, 198 ]
4
6
#-*- coding: utf-8 -*- """ what : MLP, CNN data : .. """ import tensorflow as tf import os import time import argparse import datetime import random from model import * from model_cnn import * from process_data import * from evaluation import * from params import * # for training ...
[ 2, 12, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 37811, 198, 10919, 220, 220, 220, 1058, 10373, 47, 11, 8100, 198, 7890, 220, 220, 220, 1058, 11485, 198, 37811, 198, 11748, 11192, 273, 11125, 355, 48700, 198, 11748...
2.180818
1,272
"""HacsLogger""" class HacsLogger: """Custom logger class for HACS.""" import logging prefix = "custom_components.hacs" def debug(self, message, part=None): """Info messages.""" if part is None: part = self.prefix else: part = "{}.{}".f...
[ 37811, 39, 16436, 11187, 1362, 37811, 201, 198, 201, 198, 201, 198, 4871, 367, 16436, 11187, 1362, 25, 201, 198, 220, 220, 220, 37227, 15022, 49706, 1398, 329, 367, 2246, 50, 526, 15931, 201, 198, 201, 198, 220, 220, 220, 1330, 18931,...
2.041607
697
import os from typing import Generator, Callable import pandas as pd import pytest import requests from _pytest.monkeypatch import MonkeyPatch @pytest.fixture() def data_dir() -> str: """ Returns the path to the tests data directory """ this_dir = os.path.dirname(os.path.realpath(__file__)) r...
[ 11748, 28686, 198, 6738, 19720, 1330, 35986, 11, 4889, 540, 198, 198, 11748, 19798, 292, 355, 279, 67, 198, 11748, 12972, 9288, 198, 11748, 7007, 198, 198, 6738, 4808, 9078, 9288, 13, 49572, 17147, 1330, 26997, 33952, 198, 198, 31, 9078...
2.500517
967
"""Run Offline CQL learning.""" from acme import specs from acme.agents.jax import actor_core from acme.agents.jax import actors from acme.jax import variable_utils from acme.utils import counting import jax import ml_collections import optax from magi.agents import cql from magi.agents import sac from magi.projects.b...
[ 37811, 10987, 49749, 327, 9711, 4673, 526, 15931, 198, 6738, 936, 1326, 1330, 25274, 198, 6738, 936, 1326, 13, 49638, 13, 73, 897, 1330, 8674, 62, 7295, 198, 6738, 936, 1326, 13, 49638, 13, 73, 897, 1330, 10544, 198, 6738, 936, 1326, ...
3.291971
137
import subprocess import csv import iocsv if __name__ == "__main__": pull_out = open('data.csv', 'w') w_pull_out = csv.writer(pull_out) db_user = os.environ['DB_USER'] db_host = os.environ['DB_HOST'] db_port = os.environ['DB_PORT'] db_pass = os.environ['DB_PASS'] command = f"mysql -ss -u ...
[ 11748, 850, 14681, 198, 11748, 269, 21370, 198, 11748, 1312, 420, 21370, 198, 198, 361, 11593, 3672, 834, 6624, 366, 834, 12417, 834, 1298, 198, 220, 220, 220, 2834, 62, 448, 796, 1280, 10786, 7890, 13, 40664, 3256, 705, 86, 11537, 19...
1.944154
573
import random import time lance = JogaDados() Verificar_jogada(lance)
[ 11748, 4738, 198, 11748, 640, 198, 198, 23215, 796, 449, 10949, 35, 22484, 3419, 198, 13414, 811, 283, 62, 73, 519, 4763, 7, 23215, 8 ]
2.8
25
import abc import time import numpy as np import torch from cell import utils DEVICE = "cpu" DTYPE = torch.float32 class Callback(abc.ABC): """Abstract Class to customize train loops. Applications include logging, printing or the implementation of stopping conditions. Attributes: invoke_every(i...
[ 11748, 450, 66, 198, 11748, 640, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 28034, 198, 6738, 2685, 1330, 3384, 4487, 198, 198, 7206, 27389, 796, 366, 36166, 1, 198, 35, 25216, 796, 28034, 13, 22468, 2624, 628, 198, 4871, 4889, 1...
2.452479
3,388
# External Attribute Logging Test # import sys,os import numpy as np # sys.path.insert(0, os.path.join(sys.path[0], '..')) import extattrib as xa # xa.params = { 'Inputs': ['Input1'], 'Parallel' : False } # # xa.doCompute = doCompute # xa.run(sys.argv[1:])
[ 2, 34579, 3460, 4163, 5972, 2667, 6208, 198, 2, 198, 11748, 25064, 11, 418, 198, 11748, 299, 32152, 355, 45941, 198, 2, 198, 17597, 13, 6978, 13, 28463, 7, 15, 11, 28686, 13, 6978, 13, 22179, 7, 17597, 13, 6978, 58, 15, 4357, 705,...
2.247863
117
# Generated by Django 3.2.4 on 2021-06-18 01:45 from django.db import migrations, models
[ 2, 2980, 515, 416, 37770, 513, 13, 17, 13, 19, 319, 33448, 12, 3312, 12, 1507, 5534, 25, 2231, 198, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 11, 4981, 628 ]
2.84375
32
"""Reaper switch.""" import json import logging from typing import Any, Dict from homeassistant.components.switch import SwitchEntity from homeassistant.config_entries import ConfigEntry from homeassistant.core import HomeAssistant from homeassistant.helpers.entity_platform import AddEntitiesCallback from homeassistan...
[ 37811, 3041, 2136, 5078, 526, 15931, 198, 11748, 33918, 198, 11748, 18931, 198, 6738, 19720, 1330, 4377, 11, 360, 713, 198, 198, 6738, 1363, 562, 10167, 13, 5589, 3906, 13, 31943, 1330, 14645, 32398, 198, 6738, 1363, 562, 10167, 13, 112...
2.561935
2,212
# -*- coding: utf-8 -*- import math with open('mailaddress.txt', 'w') as madd: for x in range(1, 32): b = bin(x).replace('0b', '') c = [b for b in b] i = int(29 - math.floor(math.log(x, 2))) - 1 for j in range(i): c.insert(0, '0') d = "a78569433778569433778569433...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 11748, 10688, 198, 198, 4480, 1280, 10786, 4529, 21975, 13, 14116, 3256, 705, 86, 11537, 355, 285, 2860, 25, 198, 220, 220, 220, 329, 2124, 287, 2837, 7, 16, 11, 3933,...
1.761246
289
# https://projecteuler.net/problem=3 # 600851475143 is currently to big print(big_prime_factor(big_to_small_factors(600851475143)))
[ 2, 3740, 1378, 16302, 68, 18173, 13, 3262, 14, 45573, 28, 18, 628, 198, 2, 10053, 5332, 1415, 2425, 21139, 318, 3058, 284, 1263, 220, 198, 4798, 7, 14261, 62, 35505, 62, 31412, 7, 14261, 62, 1462, 62, 17470, 62, 22584, 669, 7, 805...
2.72
50
""" Splits concatenated summaries to three different files. Writes them to files. This can be used for separate evaluation of verdicts, pros, and cons. """ from argparse import ArgumentParser from shared_lib.utils.helpers.formatting import format_all_summs from shared_lib.utils.helpers.io import read_data, write_data f...
[ 37811, 198, 26568, 896, 1673, 36686, 515, 30114, 3166, 284, 1115, 1180, 3696, 13, 12257, 274, 606, 284, 3696, 13, 198, 1212, 460, 307, 973, 329, 4553, 12660, 286, 15593, 82, 11, 10360, 11, 290, 762, 13, 198, 37811, 198, 6738, 1822, ...
2.711694
496
import os import csv import numpy as np import optunity from hyperopt import hp, tpe, fmin from pils.optimizers import Optimizer from pils.settings import BIN_FOLDER, clean_lines from pils.problems.tsp.settings import TSP_INSTANCES_FOLDER, TSP_INSTANCES, NAIVE_COST_CSV, OPT_COST_CSV, \ TSP_OPTS_FOLDER class Loc...
[ 11748, 28686, 198, 11748, 269, 21370, 198, 11748, 299, 32152, 355, 45941, 198, 198, 11748, 2172, 9531, 198, 6738, 8718, 8738, 1330, 27673, 11, 256, 431, 11, 277, 1084, 198, 198, 6738, 279, 4487, 13, 40085, 11341, 1330, 30011, 7509, 198,...
2.183566
2,288
from django.shortcuts import render, redirect from django.http import HttpResponse from django.core.mail import send_mail from django.conf import settings import random from .forms import SignupForm, OTPVerifyForm from .models import UserRegister sent_otp = gen_otp() print("1111111---Sent OTP : ", sent_otp) d...
[ 6738, 42625, 14208, 13, 19509, 23779, 1330, 8543, 11, 18941, 198, 6738, 42625, 14208, 13, 4023, 1330, 367, 29281, 31077, 198, 6738, 42625, 14208, 13, 7295, 13, 4529, 1330, 3758, 62, 4529, 198, 6738, 42625, 14208, 13, 10414, 1330, 6460, ...
2.790076
262
import axi import time # servo levels ("min"/"max") # - SC,5,Z (up) or SC,4,Z (dn) # - Z in [1,65535] (for Axidraw [7500,28000]) # - controls a pulse width in ns for a servo controller # - units of 83ns of duty cycle (units of 1/12000th of a second) # - e.g. 16000 * 83ns = 1.33ms # - wider pulse makes the pen go hi...
[ 11748, 7877, 72, 198, 11748, 640, 628, 198, 2, 1113, 78, 2974, 5855, 1084, 1, 30487, 9806, 4943, 198, 2, 532, 6374, 11, 20, 11, 57, 357, 929, 8, 393, 6374, 11, 19, 11, 57, 357, 32656, 8, 198, 2, 532, 1168, 287, 685, 16, 11, ...
2.170465
7,415
default_app_config = "misago.cache.apps.MisagoCacheConfig"
[ 12286, 62, 1324, 62, 11250, 796, 366, 25413, 3839, 13, 23870, 13, 18211, 13, 31281, 3839, 30562, 16934, 1, 198 ]
2.95
20
## This uses repl.it, Before using this for your code make sure you know that from flask import Flask, request import random from threading import Thread from replit import db db = [] app = Flask(__name__) @app.route('/') @app.route('/new') @app.route('/data/<code>', methods = ["GET", "POST"]) @app.route('/delete/...
[ 2235, 770, 3544, 2186, 13, 270, 11, 7413, 1262, 428, 329, 534, 2438, 787, 1654, 345, 760, 326, 198, 198, 6738, 42903, 1330, 46947, 11, 2581, 198, 11748, 4738, 198, 6738, 4704, 278, 1330, 14122, 198, 6738, 2186, 270, 1330, 20613, 198, ...
2.857143
147
# -*- coding: utf-8 -*- # emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*- # vi: set ft=python sts=4 ts=4 sw=4 et: """ """ from calamities import ( MultiNumberInputView, TextInputView, TextView, SpacerView, MultipleChoiceInputView, MultiCombinedNumberAndSingleChoiceInpu...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 795, 16436, 25, 532, 9, 12, 4235, 25, 21015, 26, 12972, 12, 521, 298, 12, 28968, 25, 604, 26, 33793, 12, 8658, 82, 12, 14171, 25, 18038, 532, 9, 12, 198, 2, 2...
2.659624
852
from Feature import Feature import numpy as np from sklearn.model_selection import train_test_split from sklearn.preprocessing import StandardScaler import time import glob from sklearn.svm import LinearSVC import pickle def get_image_paths(dataset='cars'): """ Loads image paths for selected dataset. :par...
[ 6738, 27018, 1330, 27018, 198, 11748, 299, 32152, 355, 45941, 198, 6738, 1341, 35720, 13, 19849, 62, 49283, 1330, 4512, 62, 9288, 62, 35312, 198, 6738, 1341, 35720, 13, 3866, 36948, 1330, 8997, 3351, 36213, 198, 11748, 640, 198, 11748, ...
2.267442
774
# -*- coding: utf-8 -*- from setuptools import setup, find_packages setup( name = 'textsummarizetool', packages = find_packages(exclude=['unittest']), package_data = { 'finalproject': ['README', 'LICENSE'] }, version = '0.0.1', description = 'A text summarization tool', long_descri...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 6738, 900, 37623, 10141, 1330, 9058, 11, 1064, 62, 43789, 198, 198, 40406, 7, 198, 220, 220, 220, 1438, 796, 705, 5239, 16345, 3876, 528, 316, 970, 3256, 198, 220...
2.286842
380
""" Auto-generated class for CoreStateResult """ from . import client_support class CoreStateResult(object): """ auto-generated. don't touch. """ @staticmethod def create(cpu, rss, swap, vms): """ :type cpu: float :type rss: int :type swap: int :type vms: ...
[ 37811, 198, 27722, 12, 27568, 1398, 329, 7231, 9012, 23004, 198, 37811, 198, 198, 6738, 764, 1330, 5456, 62, 11284, 628, 198, 4871, 7231, 9012, 23004, 7, 15252, 2599, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 8295, 12, 27568, 13,...
1.964427
253
import numpy from flask_monitoringdashboard.database import Request from flask_monitoringdashboard.database.count_group import get_value, count_requests_group from flask_monitoringdashboard.database.data_grouped import get_two_columns_grouped from flask_monitoringdashboard.database.endpoint import get_endpoint_by_name...
[ 11748, 299, 32152, 198, 198, 6738, 42903, 62, 41143, 278, 42460, 3526, 13, 48806, 1330, 19390, 198, 6738, 42903, 62, 41143, 278, 42460, 3526, 13, 48806, 13, 9127, 62, 8094, 1330, 651, 62, 8367, 11, 954, 62, 8897, 3558, 62, 8094, 198, ...
2.802649
755
import FWCore.ParameterSet.Config as cms import CalibTracker.Configuration.Common.PoolDBESSource_cfi siStripFedCabling = CalibTracker.Configuration.Common.PoolDBESSource_cfi.poolDBESSource.clone() #replace siStripFedCabling.DBParameters.authenticationPath="/afs/cern.ch/cms/DB/conddb" #replace siStripFedCabling.DBParam...
[ 11748, 48849, 14055, 13, 36301, 7248, 13, 16934, 355, 269, 907, 198, 198, 11748, 2199, 571, 35694, 13, 38149, 13, 17227, 13, 27201, 11012, 1546, 7416, 62, 66, 12463, 198, 13396, 1273, 5528, 42268, 34, 11716, 796, 2199, 571, 35694, 13, ...
2.703863
233
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Copyright (C) 2018 Alex Watson # Authors: Alex Watson <zredlined@gmail.com> # All Rights Reserved """ Quietcool AWS Shadow delta listener """ from AWSIoTPythonSDK.MQTTLib import AWSIoTMQTTShadowClient import logging import time import json import argparse import reque...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 198, 2, 15069, 357, 34, 8, 2864, 4422, 14959, 198, 2, 46665, 25, 4422, 14959, 1279, 89, 445, 10837, 31, 14816, 1...
3.219388
196
from unittest.mock import patch from contextlib import redirect_stdout, contextmanager from io import StringIO import pytest import adstrangerlib from adstrangerlib import Pattern, when, _handle_command, say, Room, Item, Bag orig_commands = adstrangerlib.commands[:] @contextmanager def active_context(ctx): """...
[ 6738, 555, 715, 395, 13, 76, 735, 1330, 8529, 198, 6738, 4732, 8019, 1330, 18941, 62, 19282, 448, 11, 4732, 37153, 198, 6738, 33245, 1330, 10903, 9399, 198, 198, 11748, 12972, 9288, 198, 198, 11748, 512, 2536, 2564, 8019, 198, 6738, 5...
2.74289
2,602
""" Copyright 2019 Goldman Sachs. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software di...
[ 37811, 198, 15269, 13130, 18740, 25158, 13, 198, 26656, 15385, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 5832, 743, 407, 779, 428, 2393, 2845, 287, 11846, 351, 262, 13789, 13, 198, 1639, 743, 7...
3.020704
483
from __future__ import unicode_literals from django.utils.translation import ugettext_lazy as _ from django.db import models from django_extensions.db.models import TimeStampedModel class {{ cookiecutter.model_name }}(TimeStampedModel): name = models.CharField( verbose_name=_('name'), max_length...
[ 6738, 11593, 37443, 834, 1330, 28000, 1098, 62, 17201, 874, 198, 198, 6738, 42625, 14208, 13, 26791, 13, 41519, 1330, 334, 1136, 5239, 62, 75, 12582, 355, 4808, 198, 6738, 42625, 14208, 13, 9945, 1330, 4981, 198, 198, 6738, 42625, 14208...
2.594406
143
name = True creds = None messages = [] hnews = None lnu = None max_news = 90 musei = { 'roma_arte': 'None', 'roma_film': 'None', 'roma_musica': 'None', 'roma_teatro': 'None', 'roma_incroci': 'None', 'roma_camminando': 'None', 'comingsoon': 'None', 'eventi': 'None' }
[ 3672, 796, 6407, 198, 66, 445, 82, 796, 6045, 198, 198, 37348, 1095, 796, 17635, 198, 198, 71, 10827, 796, 6045, 198, 198, 18755, 84, 796, 6045, 198, 9806, 62, 10827, 796, 4101, 198, 198, 76, 1904, 72, 796, 1391, 198, 220, 220, 22...
2.118881
143
from random import randint as rint from math import floor fruits = ['Cherry', 'Bell', 'Lemon', 'Orange', 'Star', 'Skull'] credit = 1.0 while True: credit -= 0.2 if credit < 0: print('You don\'t have enough money!') break slot1 = rint(0,5) slot2 = rint(0,5) slot3 = rint(0,5) p...
[ 6738, 4738, 1330, 43720, 600, 355, 374, 600, 198, 6738, 10688, 1330, 4314, 628, 628, 198, 69, 50187, 796, 37250, 34, 13372, 3256, 705, 36488, 3256, 705, 43, 7966, 3256, 705, 40141, 3256, 705, 8248, 3256, 705, 15739, 724, 20520, 198, 4...
2.17931
580
#!/bin/env python # Copyright (c) 2013, 2018 National Technology and Engineering Solutions of Sandia, LLC . Under the terms of Contract # DE-NA0003525 with National Technology and Engineering Solutions of Sandia, LLC, the U.S. Government # retains certain rights in this software. """Compute a parameter image plus mod...
[ 2, 48443, 8800, 14, 24330, 21015, 198, 198, 2, 15069, 357, 66, 8, 2211, 11, 2864, 2351, 8987, 290, 14044, 23555, 286, 3837, 544, 11, 11419, 764, 4698, 262, 2846, 286, 17453, 198, 2, 5550, 12, 4535, 830, 2327, 1495, 351, 2351, 8987, ...
3.212157
4,195
import math
[ 11748, 10688 ]
5.5
2
from django.conf.urls import patterns, url from OOMMPPAA import views urlpatterns = patterns('', url(r'^(?P<target_id>\d+)/demoviewer/$', views.demoviewer, name='demoviewer'), url(r'^(?P<target_id>\d+)/viewer/$', views.viewer, name='viewer'), url(r'^$', views.index, name='index'), url(r'^fil...
[ 201, 198, 6738, 42625, 14208, 13, 10414, 13, 6371, 82, 1330, 7572, 11, 19016, 201, 198, 201, 198, 6738, 440, 2662, 7378, 47, 3838, 1330, 5009, 201, 198, 201, 198, 6371, 33279, 82, 796, 7572, 10786, 3256, 201, 198, 220, 220, 220, 190...
2.34466
206
_base_ = '../faster_rcnn/faster_rcnn_r50_fpn_1x_coco.py' model = dict( backbone=dict( type='ResNeXt', depth=101, groups=64, base_width=4, num_stages=4, out_indices=(0, 1, 2, 3), frozen_stages=1, norm_cfg=dict(type='BN', requires_grad=True), sty...
[ 62, 8692, 62, 796, 705, 40720, 69, 1603, 62, 6015, 20471, 14, 69, 1603, 62, 6015, 20471, 62, 81, 1120, 62, 69, 21999, 62, 16, 87, 62, 66, 25634, 13, 9078, 6, 198, 19849, 796, 8633, 7, 198, 220, 220, 220, 32774, 28, 11600, 7, 1...
2.038776
980
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. # SPDX-License-Identifier: MIT-0 import os import boto3 import cfnresponse TABLE_NAME = os.environ['TABLE_NAME']
[ 2, 15069, 6186, 13, 785, 11, 3457, 13, 393, 663, 29116, 13, 1439, 6923, 33876, 13, 198, 2, 30628, 55, 12, 34156, 12, 33234, 7483, 25, 17168, 12, 15, 198, 198, 11748, 28686, 198, 11748, 275, 2069, 18, 198, 11748, 269, 22184, 26209, ...
3.155172
58
# -*- encoding: utf-8 -*- """" Memory Usage Test using Generator """ # Defining a Generator # Calling the Generator for n in fibonacci_gen(100000): print(n) # Usage: 690 MB of memory
[ 2, 532, 9, 12, 21004, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 15931, 15931, 198, 30871, 29566, 6208, 1262, 35986, 198, 37811, 198, 2, 2896, 3191, 257, 35986, 198, 198, 2, 32677, 262, 35986, 198, 1640, 299, 287, 12900, 261, 44456, 6...
2.80597
67
# -*- coding: utf-8 -*- """ Created on Sat Mar 21 20:48:22 2021 @author: Sebastian """ import sys import argparse import common.globalcontainer as glob import logging import os import datetime import engines.grabstocks import engines.scaffold import engines.analysis from dataobjects.stock import Stock import pandas...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 198, 41972, 319, 7031, 1526, 2310, 1160, 25, 2780, 25, 1828, 33448, 198, 198, 31, 9800, 25, 26190, 198, 37811, 198, 198, 11748, 25064, 198, 11748, 1822, 29572, 19...
2.239048
2,100
import os from .. import FileBuilder from .. import FileComparison from .file_builder_test import FileBuilderTest class FileComparisonTest(FileBuilderTest): """Tests ``FileBuilder`` with different ``FileComparisons``. Tests the behavior of ``FileBuilder`` methods when we pass in different ``FileComparis...
[ 11748, 28686, 198, 198, 6738, 11485, 1330, 9220, 32875, 198, 6738, 11485, 1330, 9220, 50249, 1653, 198, 6738, 764, 7753, 62, 38272, 62, 9288, 1330, 9220, 32875, 14402, 628, 198, 4871, 9220, 50249, 1653, 14402, 7, 8979, 32875, 14402, 2599,...
1.930589
6,584
#!/usr/bin/env python from pygecko.Messages import Twist, Image, IMU, Joystick, Vector, Array, Dictionary from pygecko.Messages import Pose, Compass, Range, Quaternion from pygecko.Messages import Buttons, Axes from pygecko.Messages import serialize, deserialize # from pygecko.lib.ZmqClass import Pub, Sub import numpy...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 198, 6738, 12972, 469, 37549, 13, 36479, 1095, 1330, 44088, 11, 7412, 11, 8959, 52, 11, 14087, 13915, 11, 20650, 11, 15690, 11, 28261, 198, 6738, 12972, 469, 37549, 13, 36479, 1095, 13...
3.112
125
import serial import time import string import pynmea2 while True: port = "/dev/ttyS0" ser=serial.Serial(port, baudrate=9600, timeout=0.5) dataout = pynmea2.NMEAStreamReader() newdata=ser.readline().decode("utf-8") if newdata[0:6] == "$GPRMC": newmsg=pynmea2.parse(newdata) lat=new...
[ 11748, 11389, 198, 11748, 640, 198, 11748, 4731, 198, 11748, 279, 2047, 1326, 64, 17, 198, 198, 4514, 6407, 25, 198, 220, 220, 220, 2493, 796, 12813, 7959, 14, 42852, 50, 15, 1, 198, 220, 220, 220, 1055, 28, 46911, 13, 32634, 7, 6...
2.098131
214
from __future__ import absolute_import from __future__ import print_function import sys import os import functools # 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 i...
[ 6738, 11593, 37443, 834, 1330, 4112, 62, 11748, 198, 6738, 11593, 37443, 834, 1330, 3601, 62, 8818, 198, 11748, 25064, 198, 11748, 28686, 198, 11748, 1257, 310, 10141, 198, 198, 2, 262, 1306, 1627, 460, 307, 4615, 706, 9988, 198, 17597,...
2.774566
173
import interactions as inter import const
[ 11748, 12213, 355, 987, 198, 11748, 1500, 628 ]
5.375
8
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: bilibili/im/type.proto """Generated protocol buffer code.""" from google.protobuf.internal import enum_type_wrapper from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from goog...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 2980, 515, 416, 262, 8435, 11876, 17050, 13, 220, 8410, 5626, 48483, 0, 198, 2, 2723, 25, 275, 22282, 2403, 14, 320, 14, 4906, 13, 1676, 1462, 198, 37811, 8645, 5...
2.231478
20,611
from ._utils import _gen_id, _task_type_for, _is_tuple from ._serialisation import DefaultSerialiser from ._types import _TaskEntry, _GroupEntry from ._context import _TaskContext from ._pipeline_utils import _get_initial_tasks, _mark_task_complete, _get_task_entry, _get_next_step_in_pipeline, \ _extend_args, _save...
[ 6738, 47540, 26791, 1330, 4808, 5235, 62, 312, 11, 4808, 35943, 62, 4906, 62, 1640, 11, 4808, 271, 62, 83, 29291, 198, 6738, 47540, 46911, 5612, 1330, 15161, 32634, 5847, 198, 6738, 47540, 19199, 1330, 4808, 25714, 30150, 11, 4808, 1324...
3.260116
173
from django.forms import ModelForm from .models import User
[ 6738, 42625, 14208, 13, 23914, 1330, 9104, 8479, 201, 198, 6738, 764, 27530, 1330, 11787, 201, 198 ]
3.647059
17
from ambra_sdk.service.entrypoints.generated.tag import Tag as GTag class Tag(GTag): """Tag."""
[ 6738, 4915, 430, 62, 21282, 74, 13, 15271, 13, 13000, 13033, 13, 27568, 13, 12985, 1330, 17467, 355, 7963, 363, 628, 198, 4871, 17467, 7, 19555, 363, 2599, 198, 220, 220, 220, 37227, 24835, 526, 15931, 198 ]
2.756757
37
# Copyright (c) Microsoft Corporation. # Licensed under the MIT license. # -*- coding: utf-8 -*- """ # @Time : 2019/5/25 # @Author : Jiaqi&Zecheng # @File : model.py # @Software: PyCharm """ import numpy as np import torch import torch.nn as nn import torch.nn.functional as F import torch.nn.utils from torch.au...
[ 2, 15069, 357, 66, 8, 5413, 10501, 13, 198, 2, 49962, 739, 262, 17168, 5964, 13, 198, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 198, 2, 2488, 7575, 220, 220, 220, 1058, 13130, 14, 20, 14, 1495, ...
3.010363
193
import json with open('project.json') as f: df = json.load(f) r = {} for skey in df['targets'][0]['blocks']: k = df['targets'][0]['blocks'][skey]['opcode'] if k in r: r[k] += 1 else: r[k] = 1 print(sorted(r.items(), key=lambda x:x[0]))
[ 11748, 33918, 198, 198, 4480, 1280, 10786, 16302, 13, 17752, 11537, 355, 277, 25, 198, 220, 47764, 796, 33918, 13, 2220, 7, 69, 8, 198, 198, 81, 796, 23884, 198, 1640, 264, 2539, 287, 47764, 17816, 83, 853, 1039, 6, 7131, 15, 7131, ...
2.065041
123
"""Generated client library for healthcare version v1beta1.""" # NOTE: This file is autogenerated and should not be edited by hand. from apitools.base.py import base_api from googlecloudsdk.third_party.apis.healthcare.v1beta1 import healthcare_v1beta1_messages as messages class HealthcareV1beta1(base_api.BaseApiClien...
[ 37811, 8645, 515, 5456, 5888, 329, 11409, 2196, 410, 16, 31361, 16, 526, 15931, 198, 2, 24550, 25, 770, 2393, 318, 1960, 519, 877, 515, 290, 815, 407, 307, 13012, 416, 1021, 13, 198, 6738, 2471, 270, 10141, 13, 8692, 13, 9078, 1330,...
2.605831
54,360
# Copyright 2017 IoT-Lab Team # Contributor(s) : see AUTHORS file # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # 1. Redistributions of source code must retain the above copyright notice, # this list of conditions a...
[ 2, 15069, 2177, 38488, 12, 17822, 4816, 198, 2, 25767, 273, 7, 82, 8, 1058, 766, 37195, 20673, 2393, 198, 2, 198, 2, 2297, 396, 3890, 290, 779, 287, 2723, 290, 13934, 5107, 11, 351, 393, 1231, 198, 2, 17613, 11, 389, 10431, 2810, ...
2.608247
2,134
""" Class to Represent Recognizing State """ from .base_state import State import speech_recognition as sr class RecognizingState(State): """ Recognizing State inherits from Base State class. In this state, audio is recorded from the microphone and recognized with the Speech Recognition Engine set as default ...
[ 37811, 5016, 284, 10858, 31517, 2890, 1812, 198, 37811, 198, 6738, 764, 8692, 62, 5219, 1330, 1812, 198, 11748, 4046, 62, 26243, 653, 355, 19677, 628, 198, 4871, 31517, 2890, 9012, 7, 9012, 2599, 198, 220, 220, 220, 37227, 31517, 2890, ...
2.411699
889
import logging from collections import OrderedDict from typing import Dict, TypeVar R = TypeVar("R") S = TypeVar("S") logger = logging.getLogger(__name__) def sorted_dict(d: Dict[S, R]) -> Dict[S, R]: """ Returns dict sorted by ascending key :param d: dict :return: OrderedDict """ return Ord...
[ 11748, 18931, 198, 6738, 17268, 1330, 14230, 1068, 35, 713, 198, 6738, 19720, 1330, 360, 713, 11, 5994, 19852, 198, 198, 49, 796, 5994, 19852, 7203, 49, 4943, 198, 50, 796, 5994, 19852, 7203, 50, 4943, 198, 198, 6404, 1362, 796, 18931...
2.597015
134
# Copyright 2014-2018 The PySCF Developers. 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 appl...
[ 2, 15069, 1946, 12, 7908, 383, 9485, 6173, 37, 34152, 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...
2.567493
726
from UE4Parse.BinaryReader import BinaryStream from UE4Parse.Assets.Objects.FText import FText
[ 6738, 27595, 19, 10044, 325, 13, 33, 3219, 33634, 1330, 45755, 12124, 198, 6738, 27595, 19, 10044, 325, 13, 8021, 1039, 13, 10267, 82, 13, 37, 8206, 1330, 376, 8206, 628 ]
3.096774
31
"""Relate rotomaps to eachother.""" import copy import cv2 import numpy import mel.lib.debugrenderer import mel.lib.math import mel.rotomap.moles import mel.rotomap.tricolour _DEBUG_RENDERER = mel.lib.debugrenderer.GlobalContext() # After experimentation with 'mel-debug bench-relate --reset-uuids 1', it turns # ou...
[ 37811, 6892, 378, 5724, 296, 1686, 284, 1123, 847, 526, 15931, 198, 198, 11748, 4866, 198, 198, 11748, 269, 85, 17, 198, 11748, 299, 32152, 198, 198, 11748, 7758, 13, 8019, 13, 24442, 10920, 11882, 198, 11748, 7758, 13, 8019, 13, 1101...
2.936
2,000
from astropy.io import fits import numpy as np from scipy.io import loadmat import matplotlib.pyplot as plt from mpl_toolkits.axes_grid1 import AxesGrid from iminuit import Minuit import time from reid14_cordes02 import lbd2vlsr from epsDetectS import epsDetect from mPSV import multiPSV_chi2 # my version from pseudoV...
[ 6738, 6468, 28338, 13, 952, 1330, 11414, 198, 11748, 299, 32152, 355, 45941, 198, 6738, 629, 541, 88, 13, 952, 1330, 3440, 6759, 198, 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 198, 6738, 285, 489, 62, 25981, 74, 896, ...
2.959677
124
# coding: utf-8 # # Copyright 2019 Amazon.com, Inc. or its affiliates. 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. A copy of the License is located at # # http://aws.amazon.com/apache2.0/ # # or in the "lice...
[ 2, 19617, 25, 3384, 69, 12, 23, 198, 198, 2, 198, 2, 15069, 13130, 6186, 13, 785, 11, 3457, 13, 393, 663, 29116, 13, 1439, 6923, 33876, 13, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, ...
2.54802
2,374
import json import sys import re import requests import websocket # static type checking, mainly for testing # python versions <3.5 don't have this in the standard library, # but they can be installed from pip. it's not a big deal if the # user doesn't have `typing` - they just won't be able to run it # through mypy. ...
[ 11748, 33918, 198, 11748, 25064, 198, 11748, 302, 198, 11748, 7007, 198, 11748, 2639, 5459, 198, 198, 2, 9037, 2099, 10627, 11, 8384, 329, 4856, 198, 2, 21015, 6300, 1279, 18, 13, 20, 836, 470, 423, 428, 287, 262, 3210, 5888, 11, 19...
2.202591
3,628
# Generated by Django 2.2.16 on 2020-10-14 12:59 from django.db import migrations, models
[ 2, 2980, 515, 416, 37770, 362, 13, 17, 13, 1433, 319, 12131, 12, 940, 12, 1415, 1105, 25, 3270, 198, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 11, 4981, 628 ]
2.875
32
import collections import heapq from typing import List
[ 11748, 17268, 198, 11748, 24575, 80, 198, 6738, 19720, 1330, 7343, 628, 628, 628, 628, 628, 628, 628, 628, 628, 628, 628, 628, 628, 628, 628, 628, 628, 628, 628, 628, 628, 628, 628, 628, 628, 628, 628, 628 ]
2.846154
39
__version__ = "0.0.1" import intake from .intake_sql_adapter import (SQLTable)
[ 834, 9641, 834, 796, 366, 15, 13, 15, 13, 16, 1, 198, 198, 11748, 10337, 198, 6738, 764, 600, 539, 62, 25410, 62, 324, 3429, 1330, 357, 17861, 10962, 8 ]
2.633333
30
import typing as t import pytest from pca.data.dao import InMemoryDao from pca.data.errors import QueryError, QueryErrors from pca.data.predicate import where pred_a = where('char') == 'a' pred_not_a = ~(where('char') == 'a') pred_c = where('char') == 'c' pred_z = where('char') == 'z' @pytest.fixture
[ 11748, 19720, 355, 256, 198, 198, 11748, 12972, 9288, 198, 198, 6738, 279, 6888, 13, 7890, 13, 67, 5488, 1330, 554, 30871, 35, 5488, 198, 6738, 279, 6888, 13, 7890, 13, 48277, 1330, 43301, 12331, 11, 43301, 9139, 5965, 198, 6738, 279,...
2.635593
118
# -*- coding: utf-8 -*- """ Created on Fri Sep 18 18:42:30 2020 @author: Mingcong Li """ import numpy as np import pandas as pd import os from sklearn import metrics # 改变工作目录 os.chdir(r"C:\Users\Mingcong Li\Desktop\携程网点评内容情感分析") # 读取数据 test_pred = np.load("test_pred.npy") y_test = np.load("y_test.npy") y_train = np...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 198, 41972, 319, 19480, 8621, 1248, 1248, 25, 3682, 25, 1270, 12131, 198, 198, 31, 9800, 25, 26980, 36801, 7455, 198, 37811, 198, 198, 11748, 299, 32152, 355, 459...
1.686347
542
# Generated by Django 3.0.2 on 2020-01-13 19:47 import datetime from django.conf import settings from django.db import migrations, models import django.db.models.deletion from django.utils.timezone import utc import eLearningApp.fields import taggit.managers
[ 2, 2980, 515, 416, 37770, 513, 13, 15, 13, 17, 319, 12131, 12, 486, 12, 1485, 678, 25, 2857, 198, 198, 11748, 4818, 8079, 198, 6738, 42625, 14208, 13, 10414, 1330, 6460, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 11, 4981,...
3.182927
82
from app.routes.admin import login, add_students, add_classes
[ 6738, 598, 13, 81, 448, 274, 13, 28482, 1330, 17594, 11, 751, 62, 19149, 658, 11, 751, 62, 37724, 198 ]
3.1
20
import os from typing import Optional from fastapi import Depends, FastAPI from fastapi.security import OAuth2PasswordRequestForm from starlette.responses import Response, RedirectResponse from fastapi_login import LoginManager from fastapi_login.exceptions import InvalidCredentialsException fake_db = { 'john@do...
[ 11748, 28686, 198, 6738, 19720, 1330, 32233, 198, 198, 6738, 3049, 15042, 1330, 2129, 2412, 11, 12549, 17614, 198, 6738, 3049, 15042, 13, 12961, 1330, 440, 30515, 17, 35215, 18453, 8479, 198, 6738, 3491, 21348, 13, 16733, 274, 1330, 18261...
2.580189
424
"""### Linear Regression Diagonostics and Residual Plots - linear regression assumptions, residual plots, robust standard errors - outliers, leverage, multicollinearity - statsmodels, St Louis Fed FRED Terence Lim License: MIT """ import numpy as np import pandas as pd from pandas import DataFrame, Series import matp...
[ 37811, 21017, 44800, 3310, 2234, 6031, 1840, 34558, 290, 1874, 312, 723, 1345, 1747, 198, 198, 12, 14174, 20683, 14895, 11, 29598, 21528, 11, 12373, 3210, 8563, 198, 12, 41528, 3183, 11, 16094, 11, 47368, 692, 259, 451, 414, 198, 12, ...
2.453202
1,624
import uuid from django.db import models MAX_URL_LENGTH = 256
[ 11748, 334, 27112, 198, 6738, 42625, 14208, 13, 9945, 1330, 4981, 628, 198, 22921, 62, 21886, 62, 43, 49494, 796, 17759, 628, 628, 220, 220, 220, 220 ]
2.62963
27
import os import stat import pytest from ddb.__main__ import load_registered_features, register_actions_in_event_bus from ddb.feature import features from ddb.feature.core import CoreFeature from ddb.feature.jinja import JinjaFeature from ddb.feature.file import FileFeature, FileWalkAction from ddb.feature.permission...
[ 11748, 28686, 198, 11748, 1185, 198, 198, 11748, 12972, 9288, 198, 198, 6738, 288, 9945, 13, 834, 12417, 834, 1330, 3440, 62, 33736, 62, 40890, 11, 7881, 62, 4658, 62, 259, 62, 15596, 62, 10885, 198, 6738, 288, 9945, 13, 30053, 1330, ...
3.382609
115
"""Services API Tests for Version 1.0. This is a testing template for the generated ServicesAPI Class. """ import unittest import requests import secrets from py3canvas.apis.services import ServicesAPI class TestServicesAPI(unittest.TestCase): """Tests for the ServicesAPI.""" def test_get_kaltura_config(sel...
[ 37811, 31007, 7824, 30307, 329, 10628, 352, 13, 15, 13, 198, 198, 1212, 318, 257, 4856, 11055, 329, 262, 7560, 6168, 17614, 5016, 13, 198, 37811, 198, 11748, 555, 715, 395, 198, 11748, 7007, 198, 11748, 13141, 198, 6738, 12972, 18, 51...
3.10917
229
## assuming that the intent is already classified. # initially working with only persons identified by the current extractor. # very basic mail bot. # author : A.M.D.Srinivas from entity_extraction.entity_extractor import data_extractor import smtplib from email.mime.multipart import MIMEMultipart from e...
[ 2235, 13148, 326, 262, 6824, 318, 1541, 10090, 13, 201, 198, 201, 198, 2, 7317, 1762, 351, 691, 6506, 5174, 416, 262, 1459, 7925, 273, 13, 201, 198, 201, 198, 2, 845, 4096, 6920, 10214, 13, 201, 198, 201, 198, 2, 1772, 1058, 317, ...
3.102941
136
# landcover-barren1
[ 2, 1956, 9631, 12, 5657, 918, 16, 198 ]
2.5
8
# -*- encoding: utf-8 -*- """ keri.app.cli.commands module """ import argparse import os parser = argparse.ArgumentParser(description='Print version of KLI') parser.set_defaults(handler=lambda args: exit())
[ 2, 532, 9, 12, 21004, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 198, 6122, 72, 13, 1324, 13, 44506, 13, 9503, 1746, 8265, 198, 198, 37811, 198, 11748, 1822, 29572, 198, 11748, 28686, 198, 198, 48610, 796, 1822, 29572, 13, 2810...
2.957746
71
from flask_wtf import FlaskForm from wtforms import Form, StringField, PasswordField, ValidationError, TextAreaField, SelectField, IntegerField,validators
[ 6738, 42903, 62, 86, 27110, 1330, 46947, 8479, 198, 6738, 266, 83, 23914, 1330, 5178, 11, 10903, 15878, 11, 30275, 15878, 11, 3254, 24765, 12331, 11, 8255, 30547, 15878, 11, 9683, 15878, 11, 34142, 15878, 11, 12102, 2024, 628, 628, 628,...
3.813953
43
from django import forms from . import models
[ 6738, 42625, 14208, 1330, 5107, 198, 198, 6738, 764, 1330, 4981, 628 ]
4
12
import os import shutil import subprocess from pathlib import Path import dask.array as da import numpy as np import zarr from .exceptions import InvalidDataDaskFillError from .metadata import Metadata from .vc import VCS # class VersionedIndexArray(object): #
[ 11748, 28686, 198, 11748, 4423, 346, 198, 11748, 850, 14681, 198, 6738, 3108, 8019, 1330, 10644, 198, 198, 11748, 288, 2093, 13, 18747, 355, 12379, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 1976, 3258, 198, 198, 6738, 764, 1069, 1...
3.486842
76
"""Helper functions for loading state-level datasets.""" import os import pathlib import numpy as np import pandas as pd import geopandas as gpd from typing import Dict NATIONAL_DATASETS = { 'states': 'cb_2018_us_state_500k/cb_2018_us_state_500k.shp', 'hospitals': 'Hospitals/Hospitals.shp', 'ed_inst': 'Col...
[ 37811, 47429, 5499, 329, 11046, 1181, 12, 5715, 40522, 526, 15931, 198, 11748, 28686, 198, 11748, 3108, 8019, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 19798, 292, 355, 279, 67, 198, 11748, 30324, 392, 292, 355, 27809, 67, 198, 67...
2.124587
5,145
import random from . import calculations calculations.questions.append(multiplication)
[ 11748, 4738, 198, 198, 6738, 764, 1330, 16765, 198, 198, 9948, 3129, 602, 13, 6138, 507, 13, 33295, 7, 47945, 3299, 8, 198 ]
3.869565
23
''' Em uma determinada competição de saltos ornamentais, cada salto recebe um grau de dificuldade e é avaliado por sete juízes. Após cada salto, os juízes, que não se comunicam uns com os outros, mostram suas notas. Um salto é cotado entre zero e dez pontos. Depois de apresentadas as notas, a mais alta e a mais baixa s...
[ 7061, 6, 198, 10161, 334, 2611, 3416, 4763, 2307, 72, 16175, 28749, 390, 8268, 418, 45618, 15152, 11, 269, 4763, 3664, 1462, 1407, 1350, 23781, 7933, 84, 390, 288, 811, 32926, 671, 304, 38251, 1196, 7344, 4533, 16964, 900, 68, 7544, 8...
2.452781
773
from __future__ import annotations import getpass import os import sys import time import webbrowser from typing import TYPE_CHECKING, Any, Callable, List, Optional, Tuple from gradio import encryptor, networking, queueing, strings, utils # type: ignore from gradio.process_examples import cache_interface_examples i...
[ 6738, 11593, 37443, 834, 1330, 37647, 198, 198, 11748, 651, 6603, 198, 11748, 28686, 198, 11748, 25064, 198, 11748, 640, 198, 11748, 3992, 40259, 198, 6738, 19720, 1330, 41876, 62, 50084, 2751, 11, 4377, 11, 4889, 540, 11, 7343, 11, 322...
2.304452
4,605
from keyboards.inline.main_menu import inline_start from keyboards.inline.second_menu import menu_inline_kb from aiogram.types import CallbackQuery from loader import dp, bot @dp.callback_query_handler(text="cancel") @dp.callback_query_handler(text="submenu") @dp.callback_query_handler(text="go_bac_to_second_menu...
[ 6738, 34512, 13, 45145, 13, 12417, 62, 26272, 1330, 26098, 62, 9688, 198, 6738, 34512, 13, 45145, 13, 12227, 62, 26272, 1330, 6859, 62, 45145, 62, 32812, 198, 6738, 257, 72, 21857, 13, 19199, 1330, 4889, 1891, 20746, 198, 6738, 40213, ...
3.141667
120
results_folder = "/content/ACDC2017/out/" # set this to where you want to save the results path_acdc_2d = "/content/ACDC2017/train_set_2d" # where to save preprocessed data for 3d network path_acdc_3d = "/content/ACDC2017/train_set_3d" # where to save preprocessed data for 2d network
[ 43420, 62, 43551, 796, 12813, 11299, 14, 2246, 9697, 5539, 14, 448, 30487, 220, 1303, 900, 428, 284, 810, 345, 765, 284, 3613, 262, 2482, 198, 6978, 62, 330, 17896, 62, 17, 67, 796, 12813, 11299, 14, 2246, 9697, 5539, 14, 27432, 62,...
2.938776
98
import cv2 import numpy as np cap = cv2.VideoCapture('http://192.168.55.6:8080/video') fgbg = cv2.createBackgroundSubtractorMOG2() cv2.namedWindow('original') cv2.createTrackbar('LOW', 'original', 0, 255, nothing) cv2.setTrackbarPos('LOW', 'original', 180) while True: contrast_low = cv2.getTrackbarPos('LOW', '...
[ 11748, 269, 85, 17, 198, 11748, 299, 32152, 355, 45941, 198, 198, 11128, 796, 269, 85, 17, 13, 10798, 49630, 10786, 4023, 1378, 17477, 13, 14656, 13, 2816, 13, 21, 25, 1795, 1795, 14, 15588, 11537, 198, 69, 22296, 70, 796, 269, 85, ...
2.205128
351
#!/usr/bin/env python import sys keywords = ['points','supported','scored','win','time','league','games','team','season','game'] # input comes from STDIN (standard input) for line in sys.stdin: # remove leading and trailing whitespace line = line.strip() # split the line into words found = foundKeywo...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 198, 11748, 25064, 198, 198, 2539, 10879, 796, 37250, 13033, 41707, 15999, 41707, 1416, 1850, 41707, 5404, 41707, 2435, 41707, 19316, 41707, 19966, 41707, 15097, 41707, 6230, 41707, 6057, 20...
2.562814
199
# Brain Tumor Classification # Test 3D Multi-Scale CNN. # Author: Qixun QU # Copyleft: MIT Licience # ,,, ,,, # ;" '; ;' ", # ; @.ss$$$$$$s.@ ; # `s$$$$$$$$$$$$$$$' # $$$$$$$$$$$$$$$$$$ # $$$$P""Y$$$Y""W$$$$$ # $$$$ p"$$$"q $$$$$ # $$$$ .$$$$$. $$$$' # $$$DaU$$O$$DaU$$$' # '$$...
[ 2, 14842, 309, 388, 273, 40984, 198, 2, 6208, 513, 35, 15237, 12, 29990, 8100, 13, 198, 2, 6434, 25, 1195, 844, 403, 19604, 198, 2, 6955, 2349, 701, 25, 17168, 10483, 1240, 198, 198, 2, 220, 220, 220, 220, 837, 9832, 220, 220, 2...
2.07377
1,586
from random import randint, random # TODO : should read only writed lba
[ 6738, 4738, 1330, 43720, 600, 11, 4738, 628, 220, 220, 220, 1303, 16926, 46, 1058, 815, 1100, 691, 1991, 276, 300, 7012 ]
3.454545
22
"""liteacc.py.""" # python3 eepayroll.py ssyHjfYWS5mw7s5SCvevuvBnNYXqC # rpECnbnC25HKgweeDCkWaYN7AuFbn9CLsz # ssyHjfYWS5mw7s5SCvevuvBnNYXqC import os import sys import binascii import time import json from xrpl.clients import WebsocketClient from xrpl.wallet import Wallet from xrpl.utils import xrp_to_drops from xrpl....
[ 37811, 36890, 4134, 13, 9078, 526, 15931, 198, 2, 21015, 18, 304, 538, 323, 2487, 13, 9078, 264, 1837, 39, 73, 69, 56, 19416, 20, 76, 86, 22, 82, 20, 6173, 303, 85, 14795, 33, 77, 12805, 55, 80, 34, 198, 2, 374, 79, 2943, 77, ...
2.233634
886
import os from os.path import join from runs.network import Network def check_and_train(opt, output_path): """ Check if the experiments has already been performed. If it is not, train otherwise retrieve the path relative to the experiment. :param opt: Experiment instance. It contains the output path for ...
[ 11748, 28686, 198, 6738, 28686, 13, 6978, 1330, 4654, 198, 6738, 4539, 13, 27349, 1330, 7311, 628, 198, 198, 4299, 2198, 62, 392, 62, 27432, 7, 8738, 11, 5072, 62, 6978, 2599, 198, 220, 220, 220, 37227, 6822, 611, 262, 10256, 468, 1...
2.898123
373
# -*- coding: utf-8 -*- # Generated by Django 1.9.2 on 2016-06-28 13:39 from __future__ import unicode_literals from django.db import migrations
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 2980, 515, 416, 37770, 352, 13, 24, 13, 17, 319, 1584, 12, 3312, 12, 2078, 1511, 25, 2670, 198, 6738, 11593, 37443, 834, 1330, 28000, 1098, 62, 17201, 874, 198, 1...
2.672727
55
from threading import Lock from mesh.standard import OperationError, ValidationError from scheme import Boolean, Text from scheme.supplemental import ObjectReference from sqlalchemy import MetaData, Table, create_engine, event from sqlalchemy.engine.reflection import Inspector from sqlalchemy.exc import NoSuchTableEr...
[ 6738, 4704, 278, 1330, 13656, 198, 198, 6738, 19609, 13, 20307, 1330, 14680, 12331, 11, 3254, 24765, 12331, 198, 198, 6738, 7791, 1330, 41146, 11, 8255, 198, 6738, 7791, 13, 18608, 1732, 282, 1330, 9515, 26687, 198, 6738, 44161, 282, 26...
3.497959
245
#!/usr/bin/python ''' only for generating for c++ code ''' import os, sys, time, functools, re, shutil, traceback _generator = "thrift-0.10.0.exe" _thrift_dir_name = "gen-cpp/" _generate_dir_name = "gen_files" _config_info = {} _proto_dic = {} _args = ( #'--gen csharp', '--gen cpp', #'--gen cpp:mov...
[ 2, 48443, 14629, 14, 8800, 14, 29412, 198, 7061, 6, 198, 220, 220, 220, 691, 329, 15453, 329, 269, 4880, 2438, 198, 7061, 6, 198, 198, 11748, 28686, 11, 25064, 11, 640, 11, 1257, 310, 10141, 11, 302, 11, 4423, 346, 11, 12854, 1891...
2.071106
1,772
import os import uuid from cauldron.cli.commands.steps import renaming as step_support from cauldron.environ import Response from cauldron.session import projects def remove_step( response: Response, project: 'projects.Project', name: str, keep_file: bool = False ) -> Response: ""...
[ 11748, 28686, 198, 11748, 334, 27112, 198, 198, 6738, 269, 45637, 13, 44506, 13, 9503, 1746, 13, 20214, 1330, 8851, 3723, 355, 2239, 62, 11284, 198, 6738, 269, 45637, 13, 268, 2268, 1330, 18261, 198, 6738, 269, 45637, 13, 29891, 1330, ...
2.269679
686
'''Computes RPN expressions''' import argparse def calculate(num1, num2, operator): '''Perform computation for the numbers :param num1: first number :param num2: second number :param operator: valid math operator :return int: result''' if operator == '+': return num1 + num...
[ 7061, 6, 7293, 1769, 371, 13137, 14700, 7061, 6, 198, 198, 11748, 1822, 29572, 198, 198, 4299, 15284, 7, 22510, 16, 11, 997, 17, 11, 10088, 2599, 198, 220, 220, 220, 705, 7061, 5990, 687, 29964, 329, 262, 3146, 198, 220, 220, 220, ...
2.326923
624
from helper import get_input if __name__ == '__main__': main()
[ 6738, 31904, 1330, 651, 62, 15414, 628, 198, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 198, 220, 220, 220, 1388, 3419, 198 ]
2.692308
26
import math import torch import numpy as np from src.utils.utils import l2_normalize
[ 11748, 10688, 198, 11748, 28034, 198, 11748, 299, 32152, 355, 45941, 198, 198, 6738, 12351, 13, 26791, 13, 26791, 1330, 300, 17, 62, 11265, 1096, 628, 628, 628 ]
3.25
28