content
stringlengths
1
1.04M
input_ids
listlengths
1
774k
ratio_char_token
float64
0.38
22.9
token_count
int64
1
774k
from django.apps import AppConfig
[ 6738, 42625, 14208, 13, 18211, 1330, 2034, 16934, 628 ]
3.888889
9
# MP3 stream header information support for Mutagen. # Copyright 2006 Joe Wreschnig # # This program is free software; you can redistribute it and/or modify # it under the terms of version 2 of the GNU General Public License as # published by the Free Software Foundation. """MPEG audio stream information and tags.""" ...
[ 2, 4904, 18, 4269, 13639, 1321, 1104, 329, 13859, 11286, 13, 198, 2, 15069, 4793, 5689, 370, 411, 1349, 328, 198, 2, 198, 2, 770, 1430, 318, 1479, 3788, 26, 345, 460, 17678, 4163, 340, 290, 14, 273, 13096, 198, 2, 340, 739, 262, ...
2.264484
1,985
from bika.lims.workflow import skip from bika.lims.workflow import doActionFor
[ 6738, 275, 9232, 13, 2475, 82, 13, 1818, 11125, 1330, 14267, 198, 6738, 275, 9232, 13, 2475, 82, 13, 1818, 11125, 1330, 466, 12502, 1890, 198 ]
3.038462
26
from pygame import * from time import sleep, time as timer font.init() font2 = font.Font(None, 36) score1 = 0 score2 = 0 win_width = 700 win_height = 500 window = display.set_mode((win_width,win_height)) display.set_caption("Лабиринт") background = transform.scale(image.load("galaxy.jpg"),(win_width,win...
[ 6738, 12972, 6057, 1330, 1635, 201, 198, 6738, 640, 1330, 3993, 11, 640, 355, 19781, 201, 198, 201, 198, 10331, 13, 15003, 3419, 201, 198, 10331, 17, 796, 10369, 13, 23252, 7, 14202, 11, 4570, 8, 201, 198, 201, 198, 26675, 16, 796, ...
1.989583
768
from collections import defaultdict from itertools import permutations people = defaultdict(dict) names = set() for l in open('input.txt').readlines(): a = l.rstrip('.\r\n').split(' ') #names is a set, no need to check if name already there names.add(a[0]) amount = int(a[3]) if a[2] == ...
[ 6738, 17268, 1330, 4277, 11600, 201, 198, 6738, 340, 861, 10141, 1330, 9943, 32855, 201, 198, 201, 198, 15332, 796, 4277, 11600, 7, 11600, 8, 201, 198, 14933, 796, 900, 3419, 201, 198, 201, 198, 1640, 300, 287, 1280, 10786, 15414, 13,...
2.385281
231
#coding=utf8 from uliweb.utils.pyini import * def test_sorteddict(): """ >>> d = SortedDict() >>> d <SortedDict {}> >>> d.name = 'limodou' >>> d['class'] = 'py' >>> d <SortedDict {'class':'py', 'name':'limodou'}> >>> d.keys() ['name', 'class'] >>> d.values() ['limodou', ...
[ 2, 66, 7656, 28, 40477, 23, 198, 6738, 334, 4528, 12384, 13, 26791, 13, 9078, 5362, 1330, 1635, 198, 198, 4299, 1332, 62, 30619, 6048, 713, 33529, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 13163, 288, 796, 311, 9741, 35, 713, ...
2.045881
4,686
__author__ = "Christian Kongsgaard" __license__ = 'MIT' # -------------------------------------------------------------------------------------------------------------------- # # IMPORTS # Modules import os import json import pandas as pd import xmltodict import shutil # RiBuild Modules from delphin_6_automation.dat...
[ 834, 9800, 834, 796, 366, 20298, 9071, 82, 36232, 1, 198, 834, 43085, 834, 796, 705, 36393, 6, 198, 198, 2, 16529, 3880, 19351, 1303, 198, 2, 30023, 33002, 198, 198, 2, 3401, 5028, 198, 11748, 28686, 198, 11748, 33918, 198, 11748, 1...
2.289365
1,448
import torch from netharn import util from netharn.analytic import output_shape_for class Reshape(torch.nn.Module, util.ModuleMixin): """ Wrapper class around `torch.view` that implements `output_shape_for` TODO: [ ] - Can we implement receptive_feild_for for this layer? Args: *shape...
[ 11748, 28034, 198, 6738, 2010, 71, 1501, 1330, 7736, 198, 6738, 2010, 71, 1501, 13, 38200, 13370, 1330, 5072, 62, 43358, 62, 1640, 628, 198, 4871, 1874, 71, 1758, 7, 13165, 354, 13, 20471, 13, 26796, 11, 7736, 13, 26796, 35608, 259, ...
2.049075
1,243
# -*- coding: utf-8 -*- # Python3 compatibility from __future__ import absolute_import, division, print_function, unicode_literals from QOpenScienceFramework.widgets import LoginWindow from QOpenScienceFramework.compat import * from QOpenScienceFramework import events import QOpenScienceFramework.connection as osf fr...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 2, 11361, 18, 17764, 198, 6738, 11593, 37443, 834, 1330, 4112, 62, 11748, 11, 7297, 11, 3601, 62, 8818, 11, 28000, 1098, 62, 17201, 874, 198, 198, 6738, 1195, 115...
2.457857
18,532
from django.apps import AppConfig
[ 6738, 42625, 14208, 13, 18211, 1330, 2034, 16934, 628 ]
3.888889
9
# pip install opentelemetry-api # pip install opentelemetry-sdk # pip install opentelemetry-exporter-otlp-proto-http # pip install opentelemetry-instrumentation-wsgi # python3 oteltest.py & disown from opentelemetry import trace from opentelemetry.exporter.otlp.proto.http.trace_exporter import OTLPSpanExporter from ope...
[ 2, 7347, 2721, 1034, 298, 11129, 41935, 12, 15042, 198, 2, 7347, 2721, 1034, 298, 11129, 41935, 12, 21282, 74, 198, 2, 7347, 2721, 1034, 298, 11129, 41935, 12, 1069, 26634, 12, 313, 34431, 12, 1676, 1462, 12, 4023, 198, 2, 7347, 272...
2.848806
377
import logging from src.Settings import WIKI_SETTINGS, SEARCH_SETTINGS, ASSISTANT_SETTINGS, PLAY_SETTINGS, OPEN_SETTINGS from src.Actions.Open import open_page_or_file from src.Actions.Play import play_youtube_video_for from src.Actions.Search import search_web_for from src.Actions.Wiki import open_wiki_results_for f...
[ 11748, 18931, 198, 198, 6738, 12351, 13, 26232, 1330, 370, 18694, 40, 62, 28480, 51, 20754, 11, 7946, 31315, 62, 28480, 51, 20754, 11, 24994, 8808, 8643, 62, 28480, 51, 20754, 11, 28180, 62, 28480, 51, 20754, 11, 38303, 62, 28480, 51,...
2.745348
1,881
from easyprocess import EasyProcess from pyvirtualdisplay.smartdisplay import SmartDisplay from discogui.imgutil import grab_no_blink with SmartDisplay() as disp: with EasyProcess(["zenity", "--entry"]) as p: disp.waitgrab() im = grab_no_blink() im.save("blink.png")
[ 6738, 2562, 14681, 1330, 16789, 18709, 198, 6738, 12972, 32844, 13812, 13, 27004, 13812, 1330, 10880, 23114, 198, 198, 6738, 1221, 519, 9019, 13, 9600, 22602, 1330, 5552, 62, 3919, 62, 2436, 676, 198, 198, 4480, 10880, 23114, 3419, 355, ...
2.7
110
import pytest from sqlalchemy import create_engine import db from model import model from model.model import * from db import Session, sessionScope from sqlalchemy.exc import IntegrityError import bcrypt import pdb import inspect, os @pytest.yield_fixture(scope="module") @pytest.yield_fixture
[ 11748, 12972, 9288, 198, 6738, 44161, 282, 26599, 1330, 2251, 62, 18392, 198, 11748, 20613, 198, 6738, 2746, 1330, 2746, 198, 6738, 2746, 13, 19849, 1330, 1635, 198, 6738, 20613, 1330, 23575, 11, 6246, 43642, 198, 6738, 44161, 282, 26599,...
3.448276
87
from forms_api.fields.select_field import SelectField from tests.fields.utils import FieldTestCase
[ 6738, 5107, 62, 15042, 13, 25747, 13, 19738, 62, 3245, 1330, 9683, 15878, 198, 6738, 5254, 13, 25747, 13, 26791, 1330, 7663, 14402, 20448, 628 ]
4
25
# Copyright (c) 2013, Frappe Technologies Pvt. Ltd. and contributors # For license information, please see license.txt from __future__ import unicode_literals import frappe from frappe import _ from frappe.utils import flt,cstr
[ 2, 15069, 357, 66, 8, 2211, 11, 39313, 27768, 21852, 18367, 83, 13, 12052, 13, 290, 20420, 198, 2, 1114, 5964, 1321, 11, 3387, 766, 5964, 13, 14116, 198, 198, 6738, 11593, 37443, 834, 1330, 28000, 1098, 62, 17201, 874, 198, 11748, 5...
3.634921
63
from . import tritam_tracking from . import tritam_api_constant from . import tritam_sms
[ 6738, 764, 1330, 491, 270, 321, 62, 36280, 198, 6738, 764, 1330, 491, 270, 321, 62, 15042, 62, 9979, 415, 198, 6738, 764, 1330, 491, 270, 321, 62, 82, 907, 198 ]
2.870968
31
import click from pycman import config import eyapm from eyapm import transaction @click.command('reinstall') @click.pass_context @click.option( '--config-file', 'config_file', default=eyapm.default.config_file) @click.option( '-y', '--yes', 'quiet', is_flag=True, default=False ) @cl...
[ 201, 198, 201, 198, 11748, 3904, 201, 198, 6738, 12972, 66, 805, 1330, 4566, 201, 198, 201, 198, 11748, 1926, 499, 76, 201, 198, 6738, 1926, 499, 76, 1330, 8611, 201, 198, 201, 198, 201, 198, 201, 198, 31, 12976, 13, 21812, 10786, ...
2.440789
152
# -*- coding: utf-8 -*- """ Created on Wed Jan 25 09:41:54 2017 @author: ozsanos """ from ModTest import Pi print(Pi())
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 201, 198, 37811, 201, 198, 41972, 319, 3300, 2365, 1679, 7769, 25, 3901, 25, 4051, 2177, 201, 198, 201, 198, 31, 9800, 25, 15649, 12807, 418, 201, 198, 37811, 201, 198, 673...
2.220339
59
import select import socket import threading import wx import wx.lib.pubsub if __name__ == "__main__": app = wx.App(False) frame = MainFrame() app.MainLoop()
[ 11748, 2922, 198, 11748, 17802, 198, 11748, 4704, 278, 198, 11748, 266, 87, 198, 11748, 266, 87, 13, 8019, 13, 12984, 7266, 628, 198, 361, 11593, 3672, 834, 6624, 366, 834, 12417, 834, 1298, 198, 220, 220, 220, 598, 796, 266, 87, 13...
2.606061
66
from django.shortcuts import render, redirect from .models import video from .forms import VideoForm # Create your views here.
[ 6738, 42625, 14208, 13, 19509, 23779, 1330, 8543, 11, 18941, 198, 6738, 764, 27530, 1330, 2008, 198, 6738, 764, 23914, 1330, 7623, 8479, 198, 2, 13610, 534, 5009, 994, 13, 628 ]
4.129032
31
import abc from functools import partial import typing from .tree import Node, LiteralNode, RuleNode, MultiNode from ..validation.validity import Validity from ..validation import group_types as gt from ..validation.transform_validation import get_return_type if typing.TYPE_CHECKING: from .transform import Languag...
[ 11748, 450, 66, 198, 6738, 1257, 310, 10141, 1330, 13027, 198, 11748, 19720, 198, 198, 6738, 764, 21048, 1330, 19081, 11, 25659, 1691, 19667, 11, 14330, 19667, 11, 15237, 19667, 198, 6738, 11485, 12102, 341, 13, 12102, 414, 1330, 3254, ...
3.174641
418
# Generated by Django 3.1.6 on 2021-02-04 17:27 from django.db import migrations, models import elearn.models
[ 2, 2980, 515, 416, 37770, 513, 13, 16, 13, 21, 319, 33448, 12, 2999, 12, 3023, 1596, 25, 1983, 198, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 11, 4981, 198, 198, 11748, 9766, 1501, 13, 27530, 628 ]
2.897436
39
from django.conf.urls import url, include from quiz import views from rest_framework import routers router = routers.DefaultRouter() urlpatterns = [ url(r'^api/', include(router.urls)), url(r'^$', views.welcome, name="welcome"), url(r'^create/', views.create_user, name="create_user"), url(r'^valida...
[ 6738, 42625, 14208, 13, 10414, 13, 6371, 82, 1330, 19016, 11, 2291, 198, 6738, 38964, 1330, 5009, 198, 198, 6738, 1334, 62, 30604, 1330, 41144, 198, 198, 472, 353, 796, 41144, 13, 19463, 49, 39605, 3419, 628, 198, 6371, 33279, 82, 796...
2.586873
259
''' for- in 구문 연습 ''' # 피보나치 수열(fibonacci sequence) # f[0] = 0, f[1] = 1 # f[n] = f[n-1] +f[n-2], n >=2 # 피보나치 수열 원소 20개 짜리 리스트를 생성 f = [0, 1] for n in range(2,20): f.append(f[n - 1] + f[n - 2]) print(f) # 소수(prime number): 1과 자기자신으로 나누어지는 정수 # 2부터 10까지의 정수들 중에서 소수를 찾아서 출력 for n in range(2,11): isprime = Tr...
[ 7061, 6, 198, 1640, 12, 287, 220, 166, 113, 105, 167, 105, 116, 23821, 245, 108, 168, 232, 113, 198, 7061, 6, 198, 2, 220, 169, 242, 120, 167, 111, 112, 167, 224, 246, 168, 117, 246, 23821, 230, 246, 168, 245, 112, 7, 69, 571,...
1.085746
898
#!/usr/bin/env python3 # coding:utf-8 ''' n + 100 = i^2, n + 268 = j^2 => n -> i^2 -> j^2 i^2 - 100 <= 10000 => i < 100.5 又 i 为整数 => i 的上限为 100 同理,由 j^2 - 268 <= 10000 => j 的上限为 101 其实,借鉴 004_04.py 可知 i 与 j 的上限分别为 83 与 84 算式 sqrt(n + 100) 与 sqrt(n + 268) 成立,且分别对应 i 与 j => n >= -100 => sqrt(n + 100) >= 0,即 i >=...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 2, 19617, 25, 40477, 12, 23, 198, 198, 7061, 6, 198, 77, 1343, 1802, 796, 1312, 61, 17, 11, 299, 1343, 36678, 796, 474, 61, 17, 198, 14804, 299, 220, 4613, 220, 1312, 61, 17,...
1.291429
525
""" @brief test log(time=93s) """ import sys import os import unittest from pyquickhelper.loghelper.flog import fLOG from pyquickhelper.filehelper import explore_folder_iterfile from pyquickhelper.pycode import ExtTestCase try: import src except ImportError: path = os.path.normpath( os.path.absp...
[ 37811, 198, 31, 65, 3796, 220, 220, 220, 220, 220, 1332, 2604, 7, 2435, 28, 6052, 82, 8, 198, 37811, 198, 198, 11748, 25064, 198, 11748, 28686, 198, 11748, 555, 715, 395, 198, 6738, 12972, 24209, 2978, 525, 13, 6404, 2978, 525, 13, ...
2.132075
265
from src.server import Quotes from src.text import get_text from static import consts SERVER = Quotes.get_instance()
[ 6738, 12351, 13, 15388, 1330, 2264, 6421, 198, 6738, 12351, 13, 5239, 1330, 651, 62, 5239, 198, 198, 6738, 9037, 1330, 1500, 82, 198, 198, 35009, 5959, 796, 2264, 6421, 13, 1136, 62, 39098, 3419, 628 ]
3.333333
36
import argparse import json from tqdm import tqdm from common.dataset.reader import JSONLineReader from common.util.log_helper import LogHelper if __name__ == '__main__': parser = argparse.ArgumentParser() parser.add_argument('input', help='/path/to/input/file') parser.add_argument('output', help='/path/...
[ 11748, 1822, 29572, 198, 11748, 33918, 198, 198, 6738, 256, 80, 36020, 1330, 256, 80, 36020, 198, 198, 6738, 2219, 13, 19608, 292, 316, 13, 46862, 1330, 19449, 13949, 33634, 198, 6738, 2219, 13, 22602, 13, 6404, 62, 2978, 525, 1330, 5...
2.357995
419
if __name__=="__main__": array= [] size = int(input()) for i in range(size) : ele = int(input()) array.append(ele) print("Original array : ",array) print("Array with zero at the end of it: ",moveZero(array)) if __name__=="__main__": size = int(input(...
[ 361, 11593, 3672, 834, 855, 1, 834, 12417, 834, 1298, 201, 198, 220, 220, 220, 7177, 28, 17635, 220, 201, 198, 220, 220, 220, 2546, 796, 493, 7, 15414, 28955, 220, 220, 201, 198, 220, 220, 220, 329, 1312, 287, 2837, 7, 7857, 8, ...
2.071101
436
# -*- coding: utf-8 -*- """ Created on Tue Dec 04 Copyright (c) 2018, Vu Hoang Minh. All rights reserved. @author: Vu Hoang Minh @email: minh.vu@umu.se @license: BSD 3-clause. """ import os import ntpath from unet3d.utils.print_utils import print_processing, print_section, print_separator import numpy as np from un...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 198, 41972, 319, 30030, 4280, 8702, 198, 15269, 357, 66, 8, 2864, 11, 35816, 9544, 648, 1855, 71, 13, 1439, 2489, 10395, 13, 198, 31, 9800, 25, 220, 35816, 9544...
2.703226
155
import cx_Freeze import sys import matplotlib base = None if sys.platform == 'Win32': base = 'Win32' executables = [cx_Freeze.Executable("VasoTracker.py", base=base, icon="ICON.ICO")] additional_mods = ['cv2','atexit','numpy.core._methods', 'numpy.lib.format', "matplotlib.backends.backend_tkagg"] excludes = ["wi...
[ 11748, 43213, 62, 11146, 2736, 198, 11748, 25064, 198, 11748, 2603, 29487, 8019, 198, 198, 8692, 796, 6045, 198, 198, 361, 25064, 13, 24254, 6624, 705, 16643, 2624, 10354, 198, 220, 220, 220, 2779, 796, 705, 16643, 2624, 6, 198, 198, ...
2.487603
363
from django.contrib import admin from cardapio.models import Product, Category admin.site.register(Product, ProductAdmin) admin.site.register(Category, CategoryAdmin)
[ 6738, 42625, 14208, 13, 3642, 822, 1330, 13169, 198, 6738, 2657, 499, 952, 13, 27530, 1330, 8721, 11, 21743, 198, 198, 28482, 13, 15654, 13, 30238, 7, 15667, 11, 8721, 46787, 8, 198, 28482, 13, 15654, 13, 30238, 7, 27313, 11, 21743, ...
3.795455
44
""" This module contains a task for starting and monitoring Fivetran connector sync jobs """
[ 37811, 198, 1212, 8265, 4909, 257, 4876, 329, 3599, 290, 9904, 10579, 2213, 272, 21716, 17510, 3946, 198, 37811, 198 ]
4.65
20
import unittest from pax import core, datastructure if __name__ == '__main__': unittest.main()
[ 11748, 555, 715, 395, 198, 198, 6738, 279, 897, 1330, 4755, 11, 4818, 459, 5620, 628, 198, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 198, 220, 220, 220, 555, 715, 395, 13, 12417, 3419, 198 ]
2.641026
39
import requests import json import time # urls independent_reserve_url = "https://api.independentreserve.com/Public/GetMarketSummary?primaryCurrencyCode=eth&secondaryCurrencyCode=aud" acx_url = "https://acx.io//api/v2/tickers/ethaud.json" btcm_url = "https://api.btcmarkets.net/market/ETH/AUD/tick" coinspot_url = "http...
[ 11748, 7007, 198, 11748, 33918, 198, 11748, 640, 198, 198, 2, 2956, 7278, 198, 34750, 62, 411, 3760, 62, 6371, 796, 366, 5450, 1378, 15042, 13, 34750, 411, 3760, 13, 785, 14, 15202, 14, 3855, 27470, 22093, 30, 39754, 34, 13382, 10669,...
2.583333
216
import os
[ 11748, 28686, 198 ]
3.333333
3
# -*- coding: utf-8 -*- from ....Methods.Slot.Slot import SlotCheckError from ....Methods.Slot.SlotW26 import * def check(self): """Check that the SlotW26 object is correct Parameters ---------- self : SlotW26 A SlotW26 object Returns ------- None Raises ------- S26...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 6738, 19424, 46202, 13, 38963, 13, 38963, 1330, 32026, 9787, 12331, 198, 6738, 19424, 46202, 13, 38963, 13, 38963, 54, 2075, 1330, 1635, 628, 198, 4299, 2198, 7, 94...
2.352041
196
# Copyright 2013 by Rackspace Hosting, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed t...
[ 2, 15069, 2211, 416, 37927, 13200, 14504, 278, 11, 3457, 13, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 2, 345, 743, 407, 779, 428, 2393, 2845, 287, 11846, 351, 262, 1...
2.503413
3,955
from random import choice, sample import numpy as np from discord.ext.commands import Cog, Context, command from xythrion.bot import Xythrion from xythrion.utils import DefaultEmbed class Randoms(Cog): """Picking a bunch of different things at random (games based on random chance).""" @command(aliases=("ro...
[ 6738, 4738, 1330, 3572, 11, 6291, 198, 198, 11748, 299, 32152, 355, 45941, 198, 6738, 36446, 13, 2302, 13, 9503, 1746, 1330, 327, 519, 11, 30532, 11, 3141, 198, 198, 6738, 2124, 5272, 81, 295, 13, 13645, 1330, 1395, 5272, 81, 295, 1...
2.63145
407
import argparse import csv import os import sys import traceback from pynus.modes import classes, forums from pynus.utils import progress, webbrowser VERSION = 'v0.2.2' BUILD = '20210524' # Check for positive integer in argument if __name__ == '__main__': main()
[ 11748, 1822, 29572, 198, 11748, 269, 21370, 198, 11748, 28686, 198, 11748, 25064, 198, 11748, 12854, 1891, 198, 6738, 279, 2047, 385, 13, 76, 4147, 1330, 6097, 11, 14216, 198, 6738, 279, 2047, 385, 13, 26791, 1330, 4371, 11, 3992, 40259...
2.915789
95
n = float(input('massa da substancia em gramas: ')) meiavida = n tempo = 0 while meiavida >= 0.05: meiavida *= 0.5 tempo +=50 print('para q a substancia de massa {}g atinja 0.05g , levou {:.0f}s'.format(n,tempo))
[ 77, 796, 12178, 7, 15414, 10786, 22208, 64, 12379, 3293, 1192, 544, 795, 14599, 292, 25, 705, 4008, 198, 1326, 544, 85, 3755, 796, 299, 198, 11498, 7501, 796, 657, 198, 4514, 502, 544, 85, 3755, 18189, 657, 13, 2713, 25, 198, 220, ...
2.2
100
from ..db_interface.read import ReadFromDatabase as ReadDb from ..db_interface.write import WriteToDatabase as WriteDb import os __all__ = ["ReadDb", "WriteDb"] __location__ = os.path.realpath( os.path.join(os.getcwd(), os.path.dirname(__file__))) __congress__ = os.path.join(__location__, "congress.pickle")
[ 6738, 11485, 9945, 62, 39994, 13, 961, 1330, 4149, 4863, 38105, 355, 4149, 43832, 198, 6738, 11485, 9945, 62, 39994, 13, 13564, 1330, 19430, 2514, 38105, 355, 19430, 43832, 198, 11748, 28686, 198, 198, 834, 439, 834, 796, 14631, 5569, 4...
2.855856
111
list1 = [] n = int(input("Enter number of elements :")) for i in range(0,n): ele = int(input()) if ele > 0: list1.append(ele) print("The positive numbers are: ",list1, end='')
[ 4868, 16, 796, 17635, 220, 628, 198, 77, 796, 493, 7, 15414, 7203, 17469, 1271, 286, 4847, 1058, 48774, 628, 198, 198, 1640, 1312, 287, 2837, 7, 15, 11, 77, 2599, 198, 220, 9766, 796, 493, 7, 15414, 28955, 198, 220, 611, 9766, 187...
2.567568
74
from mesh import Mesh1D from mesh import QuadMesh from fem import DofHandler from function import Function from function import Nodal from fem import QuadFE from assembler import Kernel from assembler import Form from fem import Basis from assembler import Assembler from solver import LinearSystem from solver import LS...
[ 6738, 19609, 1330, 47529, 16, 35, 198, 6738, 19609, 1330, 20648, 37031, 198, 6738, 2796, 1330, 360, 1659, 25060, 198, 6738, 2163, 1330, 15553, 198, 6738, 2163, 1330, 399, 375, 282, 198, 6738, 2796, 1330, 20648, 15112, 198, 6738, 11156, ...
2.229385
1,334
from dnnsvg.layers.layer import Layer from dnnsvg.layers.fully_connected import FullyConnected from dnnsvg.svgeables import Tensor3D from dnnsvg.svgeables import Line from dnnsvg.svgeables import Text from dnnsvg.svgeables import ArcArrow import dnnsvg.svgeables import math
[ 6738, 288, 77, 5907, 45119, 13, 75, 6962, 13, 29289, 1330, 34398, 198, 6738, 288, 77, 5907, 45119, 13, 75, 6962, 13, 2759, 62, 15236, 1330, 40234, 13313, 276, 198, 6738, 288, 77, 5907, 45119, 13, 21370, 469, 2977, 1330, 309, 22854, ...
2.875
96
from .base import * SECRET_KEY = env('DJANGO_SECRET_KEY', default='0j=^hh2ehem36vg7l%j7g^1)d(h=s2na2#z6=812l^95+%wify') DEBUG = env.bool('DJANGO_DEBUG', default=True)
[ 6738, 764, 8692, 1330, 1635, 198, 198, 23683, 26087, 62, 20373, 796, 17365, 10786, 35028, 1565, 11230, 62, 23683, 26087, 62, 20373, 3256, 4277, 11639, 15, 73, 28, 61, 12337, 17, 68, 4411, 2623, 45119, 22, 75, 4, 73, 22, 70, 61, 16, ...
1.988372
86
from kivy.uix.label import Label from kivy.uix.image import AsyncImage from kivy.uix.widget import Widget from kivy.uix.boxlayout import BoxLayout from kivy.uix.gridlayout import GridLayout from kivy.graphics import Color, Rectangle #from kivy.loader import Loader #Loader.loading_image = '' import sys import math imp...
[ 6738, 479, 452, 88, 13, 84, 844, 13, 18242, 1330, 36052, 198, 6738, 479, 452, 88, 13, 84, 844, 13, 9060, 1330, 1081, 13361, 5159, 198, 6738, 479, 452, 88, 13, 84, 844, 13, 42655, 1330, 370, 17484, 198, 6738, 479, 452, 88, 13, 84...
3.102941
136
import numpy as np import matplotlib.pyplot as plt greyhounds = 500 # dog type labs = 500 # dog type grey_height = 28 + 4*np.random.randn(greyhounds) # average height plus random lab_height = 24 + 4*np.random.randn(labs) # average height plus random # vis plot will show us overlapping in the middle with about 50...
[ 11748, 299, 32152, 355, 45941, 198, 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 198, 198, 49502, 71, 3733, 796, 5323, 220, 1303, 3290, 2099, 198, 75, 8937, 796, 5323, 220, 1303, 3290, 2099, 198, 198, 49502, 62, 17015, 796...
2.931973
147
from .learn import RepairModel __all__ = ['RepairModel']
[ 6738, 764, 35720, 1330, 28912, 17633, 198, 198, 834, 439, 834, 796, 37250, 6207, 958, 17633, 20520, 198 ]
3.222222
18
''' Created on Jan 14, 2012 @author: ntd ''' import urllib2 from BeautifulSoup import * from urlparse import urljoin from sqlite3 import dbapi2 as sqlite ignorewords=set(['the', 'of', 'to', 'and', 'a', 'in', 'is', 'it']) # get entry-id: the first column content # index page(url) # g...
[ 7061, 6, 198, 41972, 319, 2365, 1478, 11, 2321, 198, 31, 9800, 25, 299, 8671, 198, 7061, 6, 198, 198, 11748, 2956, 297, 571, 17, 198, 6738, 23762, 50, 10486, 1330, 1635, 198, 6738, 19016, 29572, 1330, 19016, 22179, 198, 6738, 44161, ...
2.324519
416
while True: try: EPR = 0 EHD = 0 INTRUSOS = 0 for i in range(int(input())): a = input().split() c = a[1] if c == "EPR": EPR += 1 elif c == "EHD": EHD += 1 else: ...
[ 4514, 6407, 25, 201, 198, 220, 220, 220, 1949, 25, 201, 198, 220, 220, 220, 220, 220, 220, 220, 412, 4805, 796, 657, 201, 198, 220, 220, 220, 220, 220, 220, 220, 412, 10227, 796, 657, 201, 198, 220, 220, 220, 220, 220, 220, 220,...
1.448378
339
""" Test of importing a model from PySCes systems biology tool. Requires PySCes to have been installed. R. Clewley, 2012 """ from PyDSTool import * from PyDSTool.Toolbox.PySCes_SBML import * print("Modify the path variable to indicate where your PySCes models are...") path = '/pysces/pscmodels/' #fname = 'pysces_test...
[ 37811, 198, 14402, 286, 33332, 257, 2746, 422, 9485, 6173, 274, 3341, 17219, 2891, 13, 26848, 9485, 6173, 274, 284, 423, 587, 6589, 13, 198, 198, 49, 13, 3779, 86, 1636, 11, 2321, 198, 37811, 198, 6738, 9485, 35, 2257, 970, 1330, 16...
2.493776
241
from typing import Union from boa3.builtin import public @public
[ 6738, 19720, 1330, 4479, 198, 198, 6738, 1489, 64, 18, 13, 18780, 259, 1330, 1171, 628, 198, 31, 11377, 198 ]
3.4
20
# -*- coding: utf-8 -*- # Copyright 2016 Google Inc. 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 # # Un...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 220, 15069, 1584, 3012, 3457, 13, 1439, 6923, 33876, 13, 198, 2, 220, 220, 198, 2, 220, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 341...
3.47343
207
import numpy as np def linear_divide(x, a, b, c): """ Find the best two dividing point for a linear array made up with three different characters. """ n = len(x) ab_penalty = (np.append(0, (np.array(x) == b).cumsum()) + np.append((np.array(x) == a)[::-1].cumsum()[::-1], 0)) b...
[ 11748, 299, 32152, 355, 45941, 628, 198, 4299, 14174, 62, 7146, 485, 7, 87, 11, 257, 11, 275, 11, 269, 2599, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 9938, 262, 1266, 734, 27241, 966, 329, 257, 14174, 7177, 925, 510, 351, 11...
2.294787
1,055
from flask import current_app as app from flask import redirect from flask import render_template as rt from flask import request, send_from_directory, url_for from htmlmin.main import minify @app.route("/") def create(): """View to create a secret.""" return rt("create.html") @app.route("/c") def created(...
[ 6738, 42903, 1330, 1459, 62, 1324, 355, 598, 198, 6738, 42903, 1330, 18941, 198, 6738, 42903, 1330, 8543, 62, 28243, 355, 374, 83, 198, 6738, 42903, 1330, 2581, 11, 3758, 62, 6738, 62, 34945, 11, 19016, 62, 1640, 198, 198, 6738, 27711...
2.752887
433
# Generated by Django 2.0.9 on 2018-11-25 15:36 from django.db import migrations, models
[ 2, 2980, 515, 416, 37770, 362, 13, 15, 13, 24, 319, 2864, 12, 1157, 12, 1495, 1315, 25, 2623, 198, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 11, 4981, 628 ]
2.84375
32
# -*- coding: utf-8 -*- # Copyright 2018 The OpenAI Team Authors and HuggingFace Inc. team. # Copyright (c) 2018, NVIDIA CORPORATION. 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 th...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 15069, 2864, 383, 4946, 20185, 4816, 46665, 290, 12905, 2667, 32388, 3457, 13, 1074, 13, 198, 2, 15069, 357, 66, 8, 2864, 11, 15127, 23929, 44680, 6234, 13, 220, 14...
2.436757
5,218
show_rate_scale() my_wine = Wine("X", "X", "X", "X", "X", 9, 8, 10, 9, 9, 9, 10, 10, "X") print(round(my_wine.get_rating()))
[ 201, 198, 197, 201, 198, 12860, 62, 4873, 62, 9888, 3419, 201, 198, 201, 198, 1820, 62, 39002, 796, 20447, 7203, 55, 1600, 366, 55, 1600, 366, 55, 1600, 366, 55, 1600, 366, 55, 1600, 860, 11, 807, 11, 838, 11, 860, 11, 860, 11, ...
1.901408
71
### ybyra v0.2 ### ### simple exploratory Y-chromosome caller ### ### TP 06/21 (thomaz.pinotti AT gmail.com) BAM = [line.rstrip() for line in open("ysamples.bam")] # list bam files SITES = "/path/to/SNPindex/10Mb_callable/SNPindex_all-10Mb.angsd" # change as desired MIN_DEPTH = "1" # minimum read depth at a region to ...
[ 21017, 197, 88, 1525, 430, 410, 15, 13, 17, 198, 21017, 198, 21017, 2829, 39180, 2870, 575, 12, 28663, 418, 462, 24955, 198, 21017, 198, 21017, 24525, 9130, 14, 2481, 357, 400, 296, 1031, 13, 11635, 26380, 5161, 308, 4529, 13, 785, ...
2.12987
770
import inspect class Event(object): """ A simple implementation of the Observer-Pattern. The user can specify an event signature upon inizializazion, defined by kwargs in the form of argumentname=class (e.g. id=int). The arguments' types are not checked in this implementation though. Callables...
[ 11748, 10104, 628, 198, 4871, 8558, 7, 15252, 2599, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 317, 2829, 7822, 286, 262, 27058, 12, 47546, 13, 198, 220, 220, 220, 383, 2836, 460, 11986, 281, 1785, 9877, 2402, 287, 528, 498, 528...
2.923497
366
from framework import * root.title("Rotated text") for rot in range(0, 360, 45): canv.create_text(100, 200, text = "Rotated %s deg" % rot, angle = rot, fill = random_color(), font = ("Helvetica", 8), anchor = W, ) for rot in range(0, 360, 45): canv.create_text(300, 200, text = "Rotated %s deg" % rot,...
[ 6738, 9355, 1330, 1635, 198, 198, 15763, 13, 7839, 7203, 24864, 515, 2420, 4943, 198, 198, 1640, 5724, 287, 2837, 7, 15, 11, 11470, 11, 4153, 2599, 198, 197, 5171, 85, 13, 17953, 62, 5239, 7, 3064, 11, 939, 11, 198, 197, 197, 5239...
2.234742
213
# Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the Apache 2.0 License. from enum import Enum
[ 2, 15069, 357, 66, 8, 5413, 10501, 13, 1439, 2489, 10395, 13, 198, 2, 49962, 739, 262, 24843, 362, 13, 15, 13789, 13, 198, 198, 6738, 33829, 1330, 2039, 388, 628 ]
4.032258
31
"""Change ISP deposit API method.""" from ibsng.handler.handler import Handler class changeISPDeposit(Handler): """Change ISP deposit method class.""" def control(self): """Validate inputs after method setup. :rtype: None :return: None """ self.is_valid(self.isp_name,...
[ 37811, 19400, 33086, 14667, 7824, 2446, 526, 15931, 198, 6738, 24283, 82, 782, 13, 30281, 13, 30281, 1330, 32412, 628, 198, 4871, 1487, 1797, 5760, 538, 7434, 7, 25060, 2599, 198, 220, 220, 220, 37227, 19400, 33086, 14667, 2446, 1398, 5...
2.416168
334
import numpy as np from scipy.ndimage.measurements import label from scipy.ndimage.morphology import distance_transform_edt from scipy import ndimage as ndi from skimage.feature import peak_local_max from skimage.segmentation import random_walker, watershed from scipy.signal import convolve2d from skimage.transform imp...
[ 11748, 299, 32152, 355, 45941, 198, 6738, 629, 541, 88, 13, 358, 9060, 13, 1326, 5015, 902, 1330, 6167, 198, 6738, 629, 541, 88, 13, 358, 9060, 13, 24503, 1435, 1330, 5253, 62, 35636, 62, 276, 83, 198, 6738, 629, 541, 88, 1330, 29...
3.495238
105
from ..base import BaseFeature import numpy as np import torch from .. import register_feature @register_feature("graph")
[ 6738, 11485, 8692, 1330, 7308, 38816, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 28034, 198, 6738, 11485, 1330, 7881, 62, 30053, 628, 198, 31, 30238, 62, 30053, 7203, 34960, 4943, 198 ]
3.875
32
# -*- coding: utf-8 -*- # Copyright 2020 Minh Nguyen (@dathudeptrai) # # 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 ...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 15069, 12131, 1855, 71, 42379, 4275, 67, 776, 2507, 457, 430, 72, 8, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156,...
2.188152
2,971
# (C) Datadog, Inc. 2018 # All rights reserved # Licensed under a 3-clause BSD style license (see LICENSE) import os import json from collections import OrderedDict import click from six import string_types from ..console import CONTEXT_SETTINGS, abort, echo_failure, echo_info, echo_success from ...constants import g...
[ 2, 357, 34, 8, 16092, 324, 519, 11, 3457, 13, 2864, 198, 2, 1439, 2489, 10395, 198, 2, 49962, 739, 257, 513, 12, 565, 682, 347, 10305, 3918, 5964, 357, 3826, 38559, 24290, 8, 198, 11748, 28686, 198, 11748, 33918, 198, 6738, 17268, ...
2.052228
2,738
import json from flask import request, current_app, make_response from jsonschema import validate, ValidationError import sqlalchemy as sa import sqlalchemy.orm as orm from flask_mrest.mrest import Application from flask_mrest.models import SABase, SuperModel, UserModel, query_to_json from flask_mrest.errorhandlers im...
[ 11748, 33918, 198, 6738, 42903, 1330, 2581, 11, 1459, 62, 1324, 11, 787, 62, 26209, 198, 6738, 44804, 684, 2395, 2611, 1330, 26571, 11, 3254, 24765, 12331, 198, 11748, 44161, 282, 26599, 355, 473, 198, 11748, 44161, 282, 26599, 13, 579,...
2.794203
345
from django.test import TestCase from django.urls import reverse from rest_framework import status
[ 6738, 42625, 14208, 13, 9288, 1330, 6208, 20448, 198, 6738, 42625, 14208, 13, 6371, 82, 1330, 9575, 198, 6738, 1334, 62, 30604, 1330, 3722, 198 ]
3.96
25
from sqlalchemy import ForeignKey from app import db class All_mixin(object): """ This mixin is included in all of the sqlalchemy models. """ __bind_key__ = "db2" # SQLALCHEMY_BINDS in config.py
[ 6738, 44161, 282, 26599, 1330, 8708, 9218, 198, 6738, 598, 1330, 20613, 198, 198, 4871, 1439, 62, 19816, 259, 7, 15252, 2599, 198, 220, 220, 220, 37227, 770, 5022, 259, 318, 3017, 287, 477, 286, 262, 44161, 282, 26599, 4981, 13, 198, ...
2.776316
76
## # Copyright (c) 2005-2017 Apple Inc. 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 applicable l...
[ 2235, 198, 2, 15069, 357, 66, 8, 5075, 12, 5539, 4196, 3457, 13, 1439, 2489, 10395, 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, ...
3.055422
830
from .ManagerBase import ManagerBase from .Document import Document
[ 6738, 764, 13511, 14881, 1330, 9142, 14881, 198, 6738, 764, 24941, 1330, 16854, 198 ]
4.857143
14
from dataclasses import dataclass import pandas as pd import xarray as xr import numpy as np import matplotlib as mpl import matplotlib.pyplot as plt from seaborn import utils from seaborn.palettes import blend_palette GREEN = "#679436" RED = "#A01914" BLUE = "#4F6DB8" YELLOW = "#FABC3C" GREY = "#C0C0C0" COLOR = BLUE...
[ 6738, 4818, 330, 28958, 1330, 4818, 330, 31172, 198, 198, 11748, 19798, 292, 355, 279, 67, 198, 11748, 2124, 18747, 355, 2124, 81, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 2603, 29487, 8019, 355, 285, 489, 198, 11748, 2603, 29487...
2.159204
804
# coding=utf-8 THANKS = "Tack för att du sålt på S:t Pers barnloppis, 30% av intäkterna skänks till välgörande ändamål genom Svenska kyrkan och diakonin i Uppsalas arbete med utsatta barnfamiljer. <br><br> Vid frågor kontakta oss på loppis.stper@gmail.com för allmänna frågor,<br>saljnummer.stper@gmail.com för säljrela...
[ 2, 19617, 28, 40477, 12, 23, 198, 198, 4221, 15154, 50, 796, 366, 51, 441, 277, 30570, 708, 7043, 264, 29090, 2528, 279, 29090, 311, 25, 83, 9467, 25203, 39590, 271, 11, 1542, 4, 1196, 493, 11033, 74, 759, 64, 1341, 11033, 77, 591...
1.789952
2,090
"""Utils for ViViT-based regression models.""" from typing import Any from absl import logging import flax import jax.numpy as jnp import ml_collections import numpy as np from scenic.common_lib import debug_utils from scenic.projects.vivit import model_utils as vivit_model_utils average_frame_initializer = vivit_m...
[ 37811, 18274, 4487, 329, 16049, 38432, 51, 12, 3106, 20683, 4981, 526, 15931, 198, 198, 6738, 19720, 1330, 4377, 198, 198, 6738, 2352, 75, 1330, 18931, 198, 11748, 781, 897, 198, 11748, 474, 897, 13, 77, 32152, 355, 474, 37659, 198, 1...
2.485153
4,277
#!/usr/bin/env python ################################################################################ # Build script for slick-reporter ################################################################################ __author__ = 'Jason Corbett' import distribute_setup distribute_setup.use_setuptools() from setupto...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 29113, 29113, 14468, 198, 2, 10934, 4226, 329, 29395, 12, 260, 26634, 198, 29113, 29113, 14468, 198, 198, 834, 9800, 834, 796, 705, 26497, 2744, 48138, 6, 198, 198, 11748, 14983, 62, 4...
3.294498
309
from collections import OrderedDict import importlib import inspect import six import warnings calculators = OrderedDict() # active calculators # all the calculators including those cannot be activated # (not disclosed to outside, but used by make_details_md.py) all_calculators = OrderedDict() def check_signatu...
[ 6738, 17268, 1330, 14230, 1068, 35, 713, 198, 11748, 1330, 8019, 198, 11748, 10104, 198, 11748, 2237, 198, 11748, 14601, 198, 198, 9948, 3129, 2024, 796, 14230, 1068, 35, 713, 3419, 220, 220, 220, 220, 1303, 4075, 5204, 2024, 198, 198, ...
2.715909
880
import traceback from PySide2.QtCore import QFile from PySide2.QtWidgets import QApplication
[ 11748, 12854, 1891, 198, 6738, 9485, 24819, 17, 13, 48, 83, 14055, 1330, 1195, 8979, 198, 6738, 9485, 24819, 17, 13, 48, 83, 54, 312, 11407, 1330, 1195, 23416, 628, 198 ]
3.064516
31
import logging import requests import time from datetime import datetime import gevent from gevent.event import Event from gevent.queue import Queue from ..base.service import BaseService INITIAL_TIMEOUT = 5 MAX_TIMEOUT = 600 WORKER_COUNT = 20 logger = logging.getLogger(__name__)
[ 11748, 18931, 198, 11748, 7007, 198, 11748, 640, 198, 6738, 4818, 8079, 1330, 4818, 8079, 198, 198, 11748, 4903, 1151, 198, 6738, 4903, 1151, 13, 15596, 1330, 8558, 198, 6738, 4903, 1151, 13, 36560, 1330, 4670, 518, 198, 198, 6738, 1148...
3.235955
89
import re from django import forms from dal import autocomplete from django.forms.formsets import BaseFormSet from data_wrapper.models import LSTSData, SeqData, ResFinderData, SeqTracking, OLN, CultureData
[ 11748, 302, 198, 6738, 42625, 14208, 1330, 5107, 198, 6738, 288, 282, 1330, 1960, 42829, 6677, 198, 6738, 42625, 14208, 13, 23914, 13, 23914, 1039, 1330, 7308, 8479, 7248, 198, 6738, 1366, 62, 48553, 13, 27530, 1330, 406, 2257, 50, 6601...
3.185714
70
import os def check_path(path: str): """Check if a path exists, if some directory is missing it creates it. """ if not os.path.isdir(os.path.split(path)[0]) and os.sep in path: # Check that the required path doesn't exist and there is a slash in it directories_list = split_path(os.path.split(path)[0]) # Get all d...
[ 11748, 28686, 198, 198, 4299, 2198, 62, 6978, 7, 6978, 25, 965, 2599, 198, 197, 37811, 9787, 611, 257, 3108, 7160, 11, 611, 617, 8619, 318, 4814, 340, 8075, 340, 13, 198, 197, 37811, 198, 197, 361, 407, 28686, 13, 6978, 13, 9409, ...
3.188802
768
from flask import Flask from app.api.controllers import api # Define the WSGI application object app = Flask(__name__) # Configurations app.config.from_object('config') # Register blueprint(s) app.register_blueprint(api) # global routes @app.errorhandler(400) @app.errorhandler(404) @app.errorhandler(405)
[ 6738, 42903, 1330, 46947, 198, 6738, 598, 13, 15042, 13, 3642, 36667, 1330, 40391, 198, 198, 2, 2896, 500, 262, 25290, 18878, 3586, 2134, 198, 1324, 796, 46947, 7, 834, 3672, 834, 8, 198, 198, 2, 17056, 20074, 198, 1324, 13, 11250, ...
3.088235
102
"""Has binance enums.""" from typing import Final, Literal class BinanceOrderType: """Binance order types.""" LIMIT: Final[Literal["LIMIT"]] = "LIMIT" MARKET: Final[Literal["MARKET"]] = "MARKET" STOP_LOSS: Final[Literal["STOP_LOSS"]] = "STOP_LOSS" STOP_LOSS_LIMIT: Final[Literal["STOP_LOSS_LIMIT"...
[ 37811, 19242, 9874, 590, 551, 5700, 526, 15931, 198, 198, 6738, 19720, 1330, 8125, 11, 25659, 1691, 628, 198, 4871, 347, 14149, 18743, 6030, 25, 198, 220, 220, 220, 37227, 33, 14149, 1502, 3858, 526, 15931, 628, 220, 220, 220, 27564, ...
2.077871
3,326
import functools import asyncio
[ 11748, 1257, 310, 10141, 198, 11748, 30351, 952, 628, 198 ]
3.4
10
from django import forms from paper_forms.composers.bootstrap4 import Bootstrap4 from ._models import SampleModel from .utils import get_bound_field
[ 6738, 42625, 14208, 1330, 5107, 198, 198, 6738, 3348, 62, 23914, 13, 785, 1930, 364, 13, 18769, 26418, 19, 1330, 18892, 26418, 19, 198, 198, 6738, 47540, 27530, 1330, 27565, 17633, 198, 6738, 764, 26791, 1330, 651, 62, 7784, 62, 3245, ...
3.511111
45
# TODO update all 2p stim related attr's to naparm submodule from dataclasses import dataclass import glob import os import signal import time from typing import Union import matplotlib.pyplot as plt import numpy as np import pandas as pd import scipy.stats as stats import tifffile as tf from packerlabimaging import ...
[ 2, 16926, 46, 4296, 477, 362, 79, 7132, 3519, 708, 81, 338, 284, 25422, 1670, 850, 21412, 198, 6738, 4818, 330, 28958, 1330, 4818, 330, 31172, 198, 11748, 15095, 198, 11748, 28686, 198, 11748, 6737, 198, 11748, 640, 198, 6738, 19720, ...
2.359859
15,595
"""Models for Ambee.""" from __future__ import annotations from dataclasses import dataclass from typing import Any @dataclass class AirQuality: """Object representing an AirQuality response from Ambee.""" particulate_matter_2_5: float | None particulate_matter_10: float | None sulphur_dioxide: floa...
[ 37811, 5841, 1424, 329, 1703, 20963, 526, 15931, 198, 6738, 11593, 37443, 834, 1330, 37647, 198, 198, 6738, 4818, 330, 28958, 1330, 4818, 330, 31172, 198, 6738, 19720, 1330, 4377, 628, 198, 31, 19608, 330, 31172, 198, 4871, 3701, 35013, ...
2.193
2,057
# Ler dois valores para as variáveis A e B e efetuar a troca dos valores de forma que a variável A passe a possuir o valor da variável B e a variável B passe a possuir o valor da variável A. Apresentar os valores após a efetivação do processamento da troca. A = input('valor de A: ') B = input('Valor de B: ') Aux = ...
[ 2, 31831, 466, 271, 1188, 2850, 31215, 355, 5553, 6557, 303, 271, 317, 304, 347, 304, 304, 34045, 84, 283, 257, 4161, 6888, 23430, 1188, 2850, 390, 1296, 64, 8358, 257, 5553, 6557, 626, 317, 279, 21612, 257, 1184, 84, 343, 267, 1188...
2.453416
161
import logging import numpy as np import pandas as pd # PCA from sklearn import decomposition # THIS IS WHAT WE NEED TO LOOK AT! from sklearn import preprocessing as preproc # from sklearn.preprocessing import StandardScaler logger = logging.getLogger(__name__)
[ 11748, 18931, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 19798, 292, 355, 279, 67, 198, 198, 2, 4217, 32, 198, 6738, 1341, 35720, 1330, 26969, 9150, 628, 198, 2, 12680, 3180, 25003, 12887, 36465, 5390, 48045, 5161, 0, 198, 6738, ...
3.467532
77
from flask import Flask from flask_cors import CORS from flask_graphql import GraphQLView from schema import Schema if __name__ == '__main__': app = create_app(graphiql=True) CORS(app, resources={r'/graphql': {'origins': '*'}}) app.run()
[ 6738, 42903, 1330, 46947, 198, 6738, 42903, 62, 66, 669, 1330, 327, 20673, 198, 6738, 42903, 62, 34960, 13976, 1330, 29681, 9711, 7680, 198, 6738, 32815, 1330, 10011, 2611, 628, 198, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 83...
2.72043
93
# -*- coding: utf-8 -*- from __future__ import (unicode_literals, print_function, division, absolute_import) """ Bridge between this package and the nose package """ __copyright__ = "Copyright 2020, Datera, Inc." def _prepare_sys_path(): """ Raises ImportError on failure. Tries t...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 6738, 11593, 37443, 834, 1330, 357, 46903, 1098, 62, 17201, 874, 11, 3601, 62, 8818, 11, 7297, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2...
2.584375
320
import numpy as np import matplotlib.pyplot as plt import pcl import sys import os.path as path import argparse ### TODO # implement command line args! #inputfile = "test2.csv" # the input test data parser = argparse.ArgumentParser(description='Generate Pointclouds out of VR-3000 csv data') parser.add_argument('...
[ 11748, 299, 32152, 355, 45941, 198, 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 198, 11748, 279, 565, 198, 11748, 25064, 198, 11748, 28686, 13, 6978, 355, 3108, 198, 11748, 1822, 29572, 628, 198, 21017, 16926, 46, 198, 2, ...
2.492615
1,151
#!/usr/local/bin/python3.0 import apache_tools import json import log_tools import os import sql_connector import sys import urllib.request from datetime import datetime main()
[ 2, 48443, 14629, 14, 12001, 14, 8800, 14, 29412, 18, 13, 15, 198, 198, 11748, 2471, 4891, 62, 31391, 198, 11748, 33918, 198, 11748, 2604, 62, 31391, 198, 11748, 28686, 198, 11748, 44161, 62, 8443, 273, 198, 11748, 25064, 198, 11748, 2...
3.067797
59
# -*- coding: utf-8 -*- from django import forms from children.functions import get_last_date from dictionaries.models import Dictionary
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 6738, 42625, 14208, 1330, 5107, 198, 198, 6738, 1751, 13, 12543, 2733, 1330, 651, 62, 12957, 62, 4475, 198, 6738, 48589, 3166, 13, 27530, 1330, 28261, 628 ]
3.390244
41
""" ======================================================================================================================= Filename: c03_ex02-saudacoes.py Author: Henrique Rodrigues Description: CURSO INTENSIVO DE PYTHON - Eric Matthes 3.2 Saudações: Comece com a lista usada no Exercí...
[ 37811, 198, 23926, 10052, 4770, 1421, 18604, 198, 35063, 25, 220, 220, 220, 220, 220, 220, 269, 3070, 62, 1069, 2999, 12, 82, 3885, 330, 3028, 13, 9078, 198, 13838, 25, 220, 220, 220, 220, 220, 220, 220, 220, 6752, 33865, 16114, 947...
2.632219
329
import abc
[ 11748, 450, 66, 628 ]
3
4
# numpy ndarray import numpy as np data=np.random.randn(2,3) data1=[6,7.5,8,0,1] arr1=np.array(data1) print(arr1) # array= 다차원 동일자료형 np.arange(15) arrayList=np.arange(10) numList=[] for i in range(0,10): numList.append(i) numList[5:8] arrayList[5:8]=12 print(numList,"\n",arrayList) # array[0][2] == array[0,2] ...
[ 2, 299, 32152, 299, 67, 18747, 198, 11748, 299, 32152, 355, 45941, 198, 198, 7890, 28, 37659, 13, 25120, 13, 25192, 77, 7, 17, 11, 18, 8, 198, 198, 7890, 16, 41888, 21, 11, 22, 13, 20, 11, 23, 11, 15, 11, 16, 60, 198, 3258, ...
1.729258
229
""" Streamlit App for displaying results. """ import logging import requests import streamlit as st from stock import search logger = logging.getLogger(__name__) pexels_reference = """ <a href="https://www.pexels.com">Photos provided by Pexels</a> """ @st.cache(show_spinner=False) def load_image(url) -> bytes...
[ 37811, 198, 12124, 18250, 2034, 329, 19407, 2482, 13, 198, 37811, 198, 198, 11748, 18931, 198, 198, 11748, 7007, 198, 11748, 4269, 18250, 355, 336, 198, 198, 6738, 4283, 1330, 2989, 628, 198, 6404, 1362, 796, 18931, 13, 1136, 11187, 136...
2.785366
205