content
stringlengths
1
1.05M
input_ids
listlengths
1
883k
ratio_char_token
float64
1
22.9
token_count
int64
1
883k
from elasticapm.contrib.flask import ElasticAPM import os from flask import Flask, request, render_template from flask_migrate import Migrate from flask_sqlalchemy import SQLAlchemy APP = Flask(__name__) APP.config['ELASTIC_APM'] = { } apm = ElasticAPM(APP) APP.config['SQLALCHEMY_TRACK_MODIFICATIONS'] = False APP.co...
[ 6738, 27468, 499, 76, 13, 3642, 822, 13, 2704, 2093, 1330, 48567, 2969, 44, 198, 11748, 28686, 198, 198, 6738, 42903, 1330, 46947, 11, 2581, 11, 8543, 62, 28243, 198, 6738, 42903, 62, 76, 42175, 1330, 337, 42175, 198, 6738, 42903, 62,...
2.680851
282
# -*- coding: utf-8 -*- from sys import platform
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 6738, 25064, 1330, 3859, 198 ]
2.578947
19
# -*- coding: utf-8 -*- from datetime import datetime import logging import os.path import requests import time import urllib from bs4 import BeautifulSoup from utils import mongo
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 6738, 4818, 8079, 1330, 4818, 8079, 198, 11748, 18931, 198, 11748, 28686, 13, 6978, 198, 11748, 7007, 198, 11748, 640, 198, 11748, 2956, 297, 571, 198, 6738, 275, 82, 19...
3.192982
57
from django import template register = template.Library()
[ 6738, 42625, 14208, 1330, 11055, 198, 198, 30238, 796, 11055, 13, 23377, 3419, 628 ]
4.285714
14
import os import boto3 import dj_database_url from mbq import env, metrics SECRET_KEY = 'fake-key' DEBUG = True ATOMIQ = { 'env': 'Test', 'service': 'test-service', } database_url = os.environ.get('DATABASE_URL', 'mysql://root:@mysql:3306/atomiqdb') DATABASES = { 'default': dj_database_url.parse(databa...
[ 11748, 28686, 198, 198, 11748, 275, 2069, 18, 198, 11748, 42625, 62, 48806, 62, 6371, 198, 198, 6738, 285, 65, 80, 1330, 17365, 11, 20731, 628, 198, 23683, 26087, 62, 20373, 796, 705, 30706, 12, 2539, 6, 198, 30531, 796, 6407, 198, ...
2.262097
248
import json import requests
[ 11748, 33918, 198, 198, 11748, 7007, 628, 628, 198 ]
3.666667
9
""" Tools for creating a CA cert and signed server certs. Divined from http://svn.osafoundation.org/m2crypto/trunk/tests/test_x509.py The mk_temporary_xxx calls return a NamedTemporaryFile with certs. Usage ; # Create a temporary CA cert and it's private key cacert, cakey = mk_temporary_cacert() # Create a ...
[ 37811, 198, 33637, 329, 4441, 257, 7257, 5051, 290, 4488, 4382, 27802, 13, 198, 24095, 1389, 422, 2638, 1378, 21370, 77, 13, 418, 1878, 633, 341, 13, 2398, 14, 76, 17, 29609, 78, 14, 2213, 2954, 14, 41989, 14, 9288, 62, 87, 29022, ...
2.399698
1,984
from collections import deque
[ 6738, 17268, 1330, 390, 4188, 198 ]
5
6
import copy from utils.file_utils.dataset_reader_pack.ml_dataset_reader import get_TV_T_dataset, get_T_V_T_dataset from ml_sl.rf.dt_0 import Node, save_node, load_node from ml_sl.ml_data_wrapper import pack_list_2_list, single_point_list_2_list, reform_labeled_dataset_list from ml_sl.ml_data_wrapper import split_label...
[ 11748, 4866, 198, 198, 6738, 3384, 4487, 13, 7753, 62, 26791, 13, 19608, 292, 316, 62, 46862, 62, 8002, 13, 4029, 62, 19608, 292, 316, 62, 46862, 1330, 651, 62, 6849, 62, 51, 62, 19608, 292, 316, 11, 651, 62, 51, 62, 53, 62, 51,...
2.377049
1,769
from SAGIRIBOT.basics.aio_mysql_excute import execute_sql
[ 6738, 311, 4760, 4663, 9865, 2394, 13, 12093, 873, 13, 64, 952, 62, 28744, 13976, 62, 41194, 1133, 1330, 12260, 62, 25410, 628 ]
2.565217
23
from distutils.core import setup setup( name = 'caro-diario', packages = ['caro-diario'], # this must be the same as the name above version = '0.1', description = 'Diario', author = 'Francesco Maida', author_email = 'francesco.maida@gmail.com', url = 'https://github.com/fmaida/caro-diario.git', # use the ...
[ 6738, 1233, 26791, 13, 7295, 1330, 9058, 198, 40406, 7, 198, 220, 1438, 796, 705, 7718, 78, 12, 10989, 4982, 3256, 198, 220, 10392, 796, 37250, 7718, 78, 12, 10989, 4982, 6, 4357, 1303, 428, 1276, 307, 262, 976, 355, 262, 1438, 2029...
2.91018
167
# Copyright 2021 Guillermo Blzquez # # 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 wri...
[ 2, 15069, 33448, 1962, 4665, 5908, 1086, 89, 22281, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 4943, 198, 2, 345, 743, 407, 779, 428, 2393, 2845, 287, 11846, 351, 262, 13789, 13, ...
3.53125
224
# -*- coding: utf-8 -*- """ This file contains tests for tensor.py """ import sys import pathlib import pytest import numpy as np from testing_utils import isclose # Ensure that 'matmodlab2' is imported from parent directory. sys.path.insert(0, str(pathlib.Path(__file__).absolute().parent.parent)) import matmodlab2 i...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 198, 1212, 2393, 4909, 5254, 329, 11192, 273, 13, 9078, 198, 37811, 198, 198, 11748, 25064, 198, 11748, 3108, 8019, 198, 11748, 12972, 9288, 198, 11748, 299, 32152,...
1.778008
3,374
from trumania.core import circus import trumania.core.population as population import trumania.core.random_generators as gen import trumania.core.operations as ops import trumania.core.story as story import trumania.components.time_patterns.profilers as profilers import trumania.core.util_functions as util_functions im...
[ 6738, 491, 3778, 544, 13, 7295, 1330, 33125, 198, 11748, 491, 3778, 544, 13, 7295, 13, 39748, 355, 3265, 198, 11748, 491, 3778, 544, 13, 7295, 13, 25120, 62, 8612, 2024, 355, 2429, 198, 11748, 491, 3778, 544, 13, 7295, 13, 3575, 602...
3.46789
218
import math if __name__ == '__main__': c = map(float, input().split()) d = map(float, input().split()) x = Complex(*c) y = Complex(*d) print(*map(str, [x+y, x-y, x*y, x/y, x.mod(), y.mod()]), sep='\n')
[ 11748, 10688, 198, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 198, 220, 220, 220, 269, 796, 3975, 7, 22468, 11, 5128, 22446, 35312, 28955, 198, 220, 220, 220, 288, 796, 3975, 7, 22468, 11, 5128, 22446, 35312, 28955...
2.15534
103
from itertools import product from hyperparameter_tuner.single_parameter_generator import single_parameter_generator as sgen if __name__ == '__main__': commands = default_commands_generator() for c in commands: print(c)
[ 6738, 340, 861, 10141, 1330, 1720, 198, 198, 6738, 8718, 17143, 2357, 62, 28286, 263, 13, 29762, 62, 17143, 2357, 62, 8612, 1352, 1330, 2060, 62, 17143, 2357, 62, 8612, 1352, 355, 264, 5235, 628, 628, 198, 361, 11593, 3672, 834, 6624,...
2.903614
83
# # Copyright 2017 Barcelona Supercomputing Center (www.bsc.es) # # 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, 198, 2, 220, 15069, 2177, 15142, 3115, 785, 48074, 3337, 357, 2503, 13, 65, 1416, 13, 274, 8, 198, 2, 198, 2, 220, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 2, 220, 345, 743, 40...
3.561404
228
# pylint: disable=C0114 import unittest from origin_response import lambda_handler event = { "Records": [ { "cf": { "config": {"requestId": "thisfakeidisthisfakeidisthisfakeidis"}, "request": {"uri": ""}, "response": {"headers": {}, "status": 0}...
[ 2, 279, 2645, 600, 25, 15560, 28, 34, 486, 1415, 198, 11748, 555, 715, 395, 198, 198, 6738, 8159, 62, 26209, 1330, 37456, 62, 30281, 628, 198, 15596, 796, 1391, 198, 220, 220, 220, 366, 6690, 3669, 1298, 685, 198, 220, 220, 220, 2...
1.933014
209
from abc import ABCMeta, abstractmethod
[ 6738, 450, 66, 1330, 9738, 48526, 11, 12531, 24396, 628 ]
4.1
10
from rest_framework.routers import DefaultRouter from .views import PermissionsViewset, GroupPermissionsViewset permission_router = DefaultRouter() permission_router.register(r'permissions', PermissionsViewset, basename="permissions") permission_router.register(r'grouppermissions', GroupPermissionsViewset, basename="...
[ 6738, 1334, 62, 30604, 13, 472, 1010, 1330, 15161, 49, 39605, 198, 6738, 764, 33571, 1330, 2448, 8481, 7680, 2617, 11, 4912, 5990, 8481, 7680, 2617, 628, 198, 525, 3411, 62, 472, 353, 796, 15161, 49, 39605, 3419, 198, 525, 3411, 62, ...
3.634409
93
#!/usr/bin/env python # encoding: utf-8 """Classes used for rendering (parts) of the canvas. Every parsed :class:`~inscriptis.model.html_element.HtmlElement` writes its textual content to the canvas which is managed by the following three classes: - :class:`Canvas` provides the drawing board on which the HTML page...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 21004, 25, 3384, 69, 12, 23, 198, 198, 37811, 9487, 274, 973, 329, 14837, 357, 42632, 8, 286, 262, 21978, 13, 198, 198, 6109, 44267, 1058, 4871, 25, 63, 93, 1040, 6519, 271, 13,...
3.421053
247
# -*- coding: utf-8 -*- """ zoom.tests.webdriver_tests.test_admin test admin app functions """ from zoom.testing.webtest import AdminTestCase
[ 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 37811, 198, 220, 220, 220, 19792, 13, 41989, 13, 12384, 26230, 62, 41989, 13, 9288, 62, 28482, 628, 220, 220, 220, 1332, 13169, 598, 5499, 198, 37811, 198, 1...
2.689655
58
import json import torch from flask import Flask, request, jsonify from flask_limiter import Limiter from flask_limiter.util import get_remote_address from model.lofi2lofi_model import Decoder as Lofi2LofiDecoder from model.lyrics2lofi_model import Lyrics2LofiModel from server.lofi2lofi_generate import decode from se...
[ 11748, 33918, 198, 198, 11748, 28034, 198, 6738, 42903, 1330, 46947, 11, 2581, 11, 33918, 1958, 198, 6738, 42903, 62, 2475, 2676, 1330, 7576, 2676, 198, 6738, 42903, 62, 2475, 2676, 13, 22602, 1330, 651, 62, 47960, 62, 21975, 198, 198, ...
2.657596
441
#!/usr/bin/env python3 ''' Cryptowat.ch API https://cryptowat.ch/docs/api https://api.cryptowat.ch/markets/prices ''' import urllib.request, json, datetime, time from urllib.request import urlopen from pathlib import Path csv_file_price = Path(__file__).parents[0] / 'data' / 'cryptowatch-bitcoin-price2.csv' if __nam...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 7061, 6, 198, 23919, 322, 265, 13, 354, 7824, 198, 5450, 1378, 29609, 322, 265, 13, 354, 14, 31628, 14, 15042, 198, 5450, 1378, 15042, 13, 29609, 322, 265, 13, 354, 14, 34162, ...
2.253061
245
# -*- coding: utf-8 -*- """actor_critic.ipynb Automatically generated by Colaboratory. Original file is located at https://colab.research.google.com/drive/17Gpya9yswf-xonOvKhoHpmQGhCYpq8x4 """ # !pip install box2d-py # !pip install gym[Box_2D] import torch from torch import nn from torch.nn import functional as...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 11218, 62, 22213, 291, 13, 541, 2047, 65, 198, 198, 38062, 4142, 7560, 416, 1623, 4820, 2870, 13, 198, 198, 20556, 2393, 318, 5140, 379, 198, 220, 220, 220, 374...
2.597701
174
#!/usr/bin/env python # coding: UTF-8 import os import struct from .sta import * import json import copy import base64 from collections import OrderedDict def unpack_obj(stream, **kwargs): """ Convert an stream(sta format) to object(json format) :param stream: Stream of binary sta file :param...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 19617, 25, 41002, 12, 23, 198, 198, 11748, 28686, 198, 11748, 2878, 198, 6738, 764, 38031, 1330, 1635, 198, 11748, 33918, 198, 11748, 4866, 198, 11748, 2779, 2414, 198, 6738, 17268, ...
2.286078
1,573
#!/usr/bin/python3 """ Consider all the leaves of a binary tree. From left to right order, the values of those leaves form a leaf value sequence. For example, in the given tree above, the leaf value sequence is (6, 7, 4, 9, 8). Two binary trees are considered leaf-similar if their leaf value sequence is the same. R...
[ 2, 48443, 14629, 14, 8800, 14, 29412, 18, 198, 37811, 198, 19626, 477, 262, 5667, 286, 257, 13934, 5509, 13, 220, 3574, 1364, 284, 826, 1502, 11, 262, 3815, 198, 1659, 883, 5667, 1296, 257, 12835, 1988, 8379, 13, 198, 198, 1890, 167...
3.627586
145
from datetime import datetime, timedelta from typing import Optional from fastapi import Depends, HTTPException, status from fastapi.security import OAuth2PasswordBearer from jose import JWTError, jwt from passlib.context import CryptContext from apollo.crud import query_first_user from apollo.main import si...
[ 6738, 4818, 8079, 1330, 4818, 8079, 11, 28805, 12514, 201, 198, 6738, 19720, 1330, 32233, 201, 198, 201, 198, 6738, 3049, 15042, 1330, 2129, 2412, 11, 14626, 16922, 11, 3722, 201, 198, 6738, 3049, 15042, 13, 12961, 1330, 440, 30515, 17,...
3
177
from App import App from utils.get_screen_size import get_screen_size if __name__ == "__main__": app = App() h, w, ch = get_screen_size() while True: app.proccessing(h, w, ch)
[ 6738, 2034, 1330, 2034, 198, 6738, 3384, 4487, 13, 1136, 62, 9612, 62, 7857, 1330, 651, 62, 9612, 62, 7857, 628, 198, 361, 11593, 3672, 834, 6624, 366, 834, 12417, 834, 1298, 198, 220, 220, 220, 598, 796, 2034, 3419, 198, 220, 220, ...
2.352941
85
#!/usr/bin/python2.4 # # Copyright 2008 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
[ 2, 48443, 14629, 14, 8800, 14, 29412, 17, 13, 19, 198, 2, 198, 2, 15069, 3648, 3012, 3457, 13, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 2, 345, 743, 407, 779, 428,...
3.495614
228
# Download the data you import os import tarfile import requests
[ 2, 10472, 262, 1366, 345, 198, 11748, 28686, 198, 11748, 13422, 7753, 198, 11748, 7007, 198 ]
4.0625
16
""" A place to implement built-in functions. We use the bytecode for these when doing cross-version interpreting """ from xpython.pyobj import Function, Cell, make_cell from xdis import codeType2Portable, PYTHON_VERSION, IS_PYPY # This code was originally written by Darius Bacon, # but follows code from PEP 3115 l...
[ 37811, 198, 32, 1295, 284, 3494, 3170, 12, 259, 5499, 13, 198, 198, 1135, 779, 262, 18022, 8189, 329, 777, 618, 1804, 3272, 12, 9641, 35391, 198, 37811, 198, 198, 6738, 2124, 29412, 13, 9078, 26801, 1330, 15553, 11, 12440, 11, 787, ...
2.503817
1,703
# import the necessary packages import os # Set the dataset base path here BASE_PATH = "/content/Keras-retinanet-Training-on-custom-datasets-for-Object-Detection--/dataset" # build the path to the annotations and input images ANNOT_PATH = os.path.sep.join([BASE_PATH, 'annotations']) IMAGES_PATH = os.path.sep.join([BA...
[ 2, 1330, 262, 3306, 10392, 198, 11748, 28686, 198, 198, 2, 5345, 262, 27039, 2779, 3108, 994, 198, 33, 11159, 62, 34219, 796, 12813, 11299, 14, 42, 263, 292, 12, 1186, 259, 272, 316, 12, 44357, 12, 261, 12, 23144, 12, 19608, 292, ...
2.738019
313
# -*- coding: utf-8 -*- # Copyright (c) 2016, Silvio Peroni <essepuntato@gmail.com> # # Permission to use, copy, modify, and/or distribute this software for any purpose # with or without fee is hereby granted, provided that the above copyright notice # and this permission notice appear in all copies. # # THE SOFTWARE I...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 15069, 357, 66, 8, 1584, 11, 4243, 85, 952, 2448, 14651, 1279, 35270, 79, 2797, 5549, 31, 14816, 13, 785, 29, 198, 2, 198, 2, 2448, 3411, 284, 779, 11, 4866, 11...
2.569159
1,070
import re import os from collections import OrderedDict as odict from .conf import USER_DIR from .util import cacheattr, setcwd, runsyscmd, logdbg from . import util from . import err _cache_entry = r'^(.*?)(:.*?)=(.*)$' def loadvars(builddir): """if builddir does not exist or does not have a cache, retur...
[ 11748, 302, 198, 11748, 28686, 198, 198, 6738, 17268, 1330, 14230, 1068, 35, 713, 355, 267, 11600, 198, 198, 6738, 764, 10414, 1330, 1294, 1137, 62, 34720, 198, 6738, 764, 22602, 1330, 12940, 35226, 11, 900, 66, 16993, 11, 4539, 28349, ...
2.595097
1,346
#!/usr/bin/env python __author__ = "bt3" import random ''' The simplest way...''' ''' If you don't want to use pythons feature at all and also select pivot randomly''' if __name__ == '__main__': # Checking the Answer seq = [10, 60, 100, 50, 60, 75, 31, 50, 30, 20, 120, 170, 200] #seq = [3, 7...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 198, 834, 9800, 834, 796, 366, 18347, 18, 1, 628, 198, 11748, 4738, 198, 198, 7061, 6, 383, 24043, 835, 986, 7061, 6, 628, 198, 198, 7061, 6, 1002, 345, 836, 470, 765, 284, 779, ...
2.591837
245
import numpy as np import cv2 import sys import os #######################RGB Image Data Analysis############################################################ ###Should follow the data structure of image data: Genotype --> Replicates (Plants) --> Different Views --> Image captured by each Day### # mfold defines the fol...
[ 11748, 299, 32152, 355, 45941, 198, 11748, 269, 85, 17, 220, 198, 11748, 25064, 198, 11748, 28686, 198, 14468, 4242, 21017, 36982, 7412, 6060, 14691, 29113, 14468, 7804, 4242, 198, 21017, 19926, 1061, 262, 1366, 4645, 286, 2939, 1366, 25,...
2.37594
1,197
import numpy as np from . import vector as V def blend_skinning(pts, BW, rbms, method='lbs'): """ perform blend skinning of pts given blend weights BW and the 4x4 rigid body motions in rbms pts should be an array of points, so the shape should be (num_points, 3) BW should be an array of blend...
[ 11748, 299, 32152, 355, 45941, 198, 6738, 764, 1330, 15879, 355, 569, 628, 198, 4299, 13516, 62, 20407, 768, 7, 457, 82, 11, 37869, 11, 374, 65, 907, 11, 2446, 11639, 32133, 6, 2599, 198, 220, 220, 220, 37227, 220, 198, 220, 220, ...
2.431772
491
# coding: utf-8 # Team : uyplayer team # Author uyplayer # Date 2019/11/20 4:22 # Tool PyCharm ''' https://blog.csdn.net/c9Yv2cf9I06K2A9E/article/details/79739287 https://msd.misuland.com/pd/13340603045208861 '''
[ 2, 19617, 25, 3384, 69, 12, 23, 201, 198, 2, 4816, 1058, 220, 334, 88, 7829, 1074, 201, 198, 2, 6434, 334, 88, 7829, 220, 201, 198, 2, 7536, 13130, 14, 1157, 14, 1238, 604, 25, 1828, 201, 198, 2, 16984, 9485, 1925, 1670, 201, ...
2.00885
113
""" Write a Python program that reads a date (from 2016/1/1 to 2016/12/31) and prints the day of the date. Jan. 1, 2016, is Friday. Note that 2016 is a leap year. """ from datetime import date print("Input month and date(separated by a single space): ") m, d = map(int, input().split()) weeks = {1: "Monday", 2: "Tuesda...
[ 37811, 198, 16594, 257, 11361, 1430, 326, 9743, 257, 3128, 357, 6738, 1584, 14, 16, 14, 16, 284, 1584, 14, 1065, 14, 3132, 8, 290, 20842, 262, 1110, 286, 262, 3128, 13, 198, 12128, 13, 352, 11, 1584, 11, 318, 3217, 13, 220, 198, ...
2.906433
171
""" nn : n(1n1000),nn(100), : n 1 9 cap to cat card two too up boat boot boat boot cap card cat to too two up """ list = [] n = int(input()) for i in range(0, n): s = input() list.append(s) list.sort() for i in list: print(i)
[ 37811, 198, 198, 20471, 198, 25, 198, 77, 7, 16, 77, 12825, 828, 20471, 7, 3064, 828, 198, 25, 198, 77, 198, 16, 198, 198, 24, 198, 11128, 198, 1462, 198, 9246, 198, 9517, 198, 11545, 198, 18820, 198, 929, 198, 24482, 198, 18769, ...
1.914063
128
import jsonhandler from LuyckxFeatures import * import timblClassification as timbl import os import numpy as np from collections import Counter dictPath = "c10" jsonhandler.loadJson(dictPath) jsonhandler.loadTraining() candidates = jsonhandler.candidates unknowns = jsonhandler.unknowns authors = list()...
[ 11748, 33918, 30281, 198, 6738, 406, 4669, 694, 87, 23595, 1330, 1635, 198, 11748, 4628, 2436, 9487, 2649, 355, 4628, 2436, 198, 11748, 28686, 198, 11748, 299, 32152, 355, 45941, 198, 6738, 17268, 1330, 15034, 628, 220, 220, 220, 220, 1...
2.409874
871
from bs4 import BeautifulSoup from multiprocessing import Pool import requests if __name__ == "__main__": print(bus())
[ 6738, 275, 82, 19, 1330, 23762, 50, 10486, 198, 6738, 18540, 305, 919, 278, 1330, 19850, 198, 11748, 7007, 198, 220, 220, 220, 220, 220, 220, 220, 220, 198, 361, 11593, 3672, 834, 6624, 366, 834, 12417, 834, 1298, 198, 220, 220, 220...
2.75
48
# -*- coding: utf-8 -*- """ Created on Mon Nov 23 13:54:58 2020 @author: Patrice CHANOL & Corentin MORVAN--CHAUMEIL """ import numpy as np import torch import time import visualisation from datetime import datetime def main(model, criterion, optimizer, scheduler, data_train_loader, data_test_loader, num_epochs, inp...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 198, 41972, 319, 2892, 5267, 2242, 1511, 25, 4051, 25, 3365, 12131, 198, 198, 31, 9800, 25, 3208, 20970, 5870, 1565, 3535, 1222, 7231, 429, 259, 35208, 53, 1565, ...
2.226653
1,906
import numpy as np import pandas as pd import datetime if __name__=='__main__': CreateFeature('EURUSD', 16, 1)
[ 11748, 299, 32152, 355, 45941, 198, 11748, 19798, 292, 355, 279, 67, 198, 11748, 4818, 8079, 198, 198, 361, 11593, 3672, 834, 855, 6, 834, 12417, 834, 10354, 198, 220, 220, 220, 13610, 38816, 10786, 36, 4261, 29072, 3256, 1467, 11, 35...
2.636364
44
import math import os from argparse import ArgumentParser import numpy as np import torch from pytorch_lightning import Trainer from pytorch_lightning import seed_everything from pytorch_lightning.utilities import rank_zero_info from pytorch_lightning.callbacks import XLAStatsMonitor from torch.utils.data import Datas...
[ 11748, 10688, 198, 11748, 28686, 198, 6738, 1822, 29572, 1330, 45751, 46677, 198, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 28034, 198, 6738, 12972, 13165, 354, 62, 2971, 768, 1330, 31924, 198, 6738, 12972, 13165, 354, 62, 2971, 768...
2.445137
802
# -*- coding: utf-8 -* import requests import json
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 198, 11748, 7007, 198, 11748, 33918, 628, 198 ]
2.65
20
import os import numpy as np from .utils import get_class_names from ..abstract import Loader from ..backend.image import resize_image # IMAGES_PATH = '../datasets/fer2013/fer2013.csv' # LABELS_PATH = '../datasets/fer2013/fer2013new.csv'
[ 11748, 28686, 198, 11748, 299, 32152, 355, 45941, 198, 198, 6738, 764, 26791, 1330, 651, 62, 4871, 62, 14933, 198, 6738, 11485, 397, 8709, 1330, 8778, 263, 198, 6738, 11485, 1891, 437, 13, 9060, 1330, 47558, 62, 9060, 198, 198, 2, 453...
2.903614
83
from typing import List
[ 6738, 19720, 1330, 7343 ]
5.75
4
# This Python file uses the following encoding: utf-8 """ MIT License Copyright (c) 2020 Nils DEYBACH & Lo OUDART Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including w...
[ 2, 770, 11361, 2393, 3544, 262, 1708, 21004, 25, 3384, 69, 12, 23, 198, 198, 37811, 198, 36393, 13789, 198, 198, 15269, 357, 66, 8, 12131, 399, 4487, 5550, 56, 33, 16219, 1222, 6706, 440, 8322, 7227, 198, 198, 5990, 3411, 318, 29376...
3.721649
582
from correlcalc import * bins = np.arange(0.002,0.062,0.002) #corrdr12flcdmls=tpcf('/usr3/vstr/yrohin/Downloads/galaxy_DR12v5_CMASS_North.fits',bins,randfile='/usr3/vstr/yrohin/randcat_dr12cmn_2x_pdf10k.dat',estimator='ls',cosmology='lcdm',weights='eq') print("--------------------------------------------") corrdr12flcl...
[ 6738, 10895, 9948, 66, 1330, 1635, 198, 65, 1040, 796, 45941, 13, 283, 858, 7, 15, 13, 21601, 11, 15, 13, 3312, 17, 11, 15, 13, 21601, 8, 198, 2, 10215, 4372, 81, 1065, 2704, 10210, 4029, 82, 28, 34788, 12993, 10786, 14, 14629, ...
2.432039
618
import torch from torchvision import transforms from PIL import Image import numpy as np import math from sklearn.linear_model import LinearRegression from .grid import Grid, grid_split import torch.backends.cudnn as cudnn ''' Global Constants: TASK_NAME: Name of the verification task (deprecate...
[ 11748, 28034, 201, 198, 6738, 28034, 10178, 1330, 31408, 201, 198, 6738, 350, 4146, 1330, 7412, 201, 198, 11748, 299, 32152, 355, 45941, 201, 198, 11748, 10688, 201, 198, 6738, 1341, 35720, 13, 29127, 62, 19849, 1330, 44800, 8081, 2234, ...
2.619256
914
from telnetlib import Telnet from exception.exceptions import * from datetime import date import time import os from dotenv import load_dotenv import json load_dotenv() ROOT_DIR = os.path.dirname(os.path.abspath(__file__)) f = open(f'{ROOT_DIR}/equipamentos.json') equipamentos = json.load(f)['equipamentos'] for sw...
[ 6738, 13632, 3262, 8019, 1330, 12088, 3262, 198, 6738, 6631, 13, 1069, 11755, 1330, 1635, 198, 6738, 4818, 8079, 1330, 3128, 198, 11748, 640, 198, 11748, 28686, 198, 6738, 16605, 24330, 1330, 3440, 62, 26518, 24330, 198, 11748, 33918, 198...
2.383275
287
#!/usr/bin/env python PROJECT = 'musubi' VERSION = '0.2' import distribute_setup distribute_setup.use_setuptools() from setuptools import setup, find_packages try: long_description = open('README.rst', 'rt').read() except IOError: long_description = 'Uh oh, we may need a new hard drive.' setup( name=PR...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 198, 31190, 23680, 796, 705, 14664, 29603, 6, 198, 43717, 796, 705, 15, 13, 17, 6, 198, 198, 11748, 14983, 62, 40406, 198, 17080, 4163, 62, 40406, 13, 1904, 62, 2617, 37623, 10141, 3...
2.273109
714
import os import pandas as pd import click from datetime import date if __name__ == '__main__': preprocess()
[ 11748, 28686, 198, 11748, 19798, 292, 355, 279, 67, 198, 11748, 3904, 198, 198, 6738, 4818, 8079, 1330, 3128, 628, 198, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 198, 220, 220, 220, 662, 14681, 3419, 198 ]
2.925
40
from time import sleep from sys import stdout if __name__ == "__main__": main()
[ 6738, 640, 1330, 3993, 198, 6738, 25064, 1330, 14367, 448, 628, 628, 198, 198, 361, 11593, 3672, 834, 6624, 366, 834, 12417, 834, 1298, 198, 220, 220, 220, 1388, 3419, 198 ]
2.870968
31
from datetime import datetime from sqlalchemy import or_ from app import db from .mixin import ModelMixin
[ 6738, 4818, 8079, 1330, 4818, 8079, 201, 198, 6738, 44161, 282, 26599, 1330, 393, 62, 201, 198, 6738, 598, 1330, 20613, 201, 198, 6738, 764, 19816, 259, 1330, 9104, 35608, 259, 201, 198, 201, 198 ]
3.2
35
# Generated by Django 2.2.4 on 2019-08-30 21:56 from django.db import migrations, models import django.db.models.deletion import django.utils.timezone import model_utils.fields
[ 2, 2980, 515, 416, 37770, 362, 13, 17, 13, 19, 319, 13130, 12, 2919, 12, 1270, 2310, 25, 3980, 198, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 11, 4981, 198, 11748, 42625, 14208, 13, 9945, 13, 27530, 13, 2934, 1616, 295, ...
2.983333
60
from .alien_config import AlienConfig from .alien_connection import AlienConnection from .alien_tag import AlienTag from .alien_tag_list import AlienTagList
[ 6738, 764, 42690, 62, 11250, 1330, 17610, 16934, 198, 6738, 764, 42690, 62, 38659, 1330, 17610, 32048, 198, 6738, 764, 42690, 62, 12985, 1330, 17610, 24835, 198, 6738, 764, 42690, 62, 12985, 62, 4868, 1330, 17610, 24835, 8053 ]
4.105263
38
from subprocess import run, PIPE main()
[ 6738, 850, 14681, 1330, 1057, 11, 350, 4061, 36, 198, 198, 12417, 3419, 198 ]
2.928571
14
import sys as _sys import pandas as _pd from apodeixi.testing_framework.a6i_unit_test import ApodeixiUnitTest from apodeixi.util.formatting_utils import DictionaryFormatter from apodeixi.util.a6i_error import ApodeixiError, FunctionalTrace...
[ 11748, 25064, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 355, 4808, 17597, 198, 11748, 19798, 292, 220, 220, 220, 220, 220, 220,...
2.18552
221
import numpy as np DefaultMate = RandomPickMate
[ 11748, 299, 32152, 355, 45941, 628, 628, 628, 198, 19463, 44, 378, 796, 14534, 31686, 44, 378, 628 ]
3.055556
18
__author__ = 'varun' from django import forms
[ 834, 9800, 834, 796, 705, 7785, 403, 6, 198, 198, 6738, 42625, 14208, 1330, 5107, 198 ]
2.9375
16
# # Copyright (c) 2018 Via Technology Ltd. All Rights Reserved. # Consult your license regarding permissions and restrictions. # """ Administration operations for the geo db. """ import os import socket import time from pru.db.geo.geo_init import load_airspace, remove_all_sectors, tear_down from pru.db.geo.geo_init i...
[ 2, 198, 2, 15069, 357, 66, 8, 2864, 33356, 8987, 12052, 13, 1439, 6923, 33876, 13, 198, 2, 21651, 534, 5964, 5115, 21627, 290, 8733, 13, 198, 2, 198, 198, 37811, 198, 41862, 1358, 4560, 329, 262, 40087, 20613, 13, 198, 37811, 198, ...
2.536527
1,670
from typing import List, Tuple import easymunk as a from easymunk import BB, Vec2d
[ 6738, 19720, 1330, 7343, 11, 309, 29291, 198, 198, 11748, 2562, 76, 2954, 355, 257, 198, 6738, 2562, 76, 2954, 1330, 12597, 11, 38692, 17, 67, 628 ]
3.148148
27
# -*- coding: utf-8 -*- import cffi import ctypes import numpy as np import pandas as pd from darshan.api_def_c import load_darshan_header from darshan.discover_darshan import find_utils from darshan.discover_darshan import check_version API_def_c = load_darshan_header() ffi = cffi.FFI() ffi.cdef(API_def_c) lib...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 11748, 269, 487, 72, 198, 11748, 269, 19199, 198, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 19798, 292, 355, 279, 67, 628, 198, 6738, 288, 5406, 272, 13, 15...
2.263475
5,807
from django.conf import settings from rest_framework import generics, status from rest_framework.response import Response from rest_framework_simplejwt.backends import TokenBackend from rest_framework.permissions import IsAuthenticated from authApp.models.user import User from authApp.serializers.userSerializer import ...
[ 6738, 42625, 14208, 13, 10414, 1330, 6460, 198, 6738, 1334, 62, 30604, 1330, 1152, 873, 11, 3722, 198, 6738, 1334, 62, 30604, 13, 26209, 1330, 18261, 198, 6738, 1334, 62, 30604, 62, 36439, 73, 46569, 13, 1891, 2412, 1330, 29130, 7282, ...
4.1875
80
import time if __name__ == "__main__": main()
[ 11748, 640, 201, 198, 201, 198, 201, 198, 361, 11593, 3672, 834, 6624, 366, 834, 12417, 834, 1298, 201, 198, 220, 220, 220, 1388, 3419, 201, 198 ]
2.111111
27
from django.shortcuts import render, get_object_or_404 from django.views.decorators.cache import cache_page from .models import PhotoAlbum, VideoAlbum from blog.utils import get_pagination_page
[ 6738, 42625, 14208, 13, 19509, 23779, 1330, 8543, 11, 651, 62, 15252, 62, 273, 62, 26429, 198, 6738, 42625, 14208, 13, 33571, 13, 12501, 273, 2024, 13, 23870, 1330, 12940, 62, 7700, 198, 198, 6738, 764, 27530, 1330, 5555, 2348, 4435, ...
3.283333
60
#!/usr/bin/env python3 # -*- coding: utf-8 -*- from __future__ import print_function, division, unicode_literals import unittest import os import json from zhihu import Post from test_utils import TEST_DATA_PATH
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 6738, 11593, 37443, 834, 1330, 3601, 62, 8818, 11, 7297, 11, 28000, 1098, 62, 17201, 874, 198, 11748, 555, 7...
2.986111
72
from tfutils.helpers import import_transformer import_transformer()
[ 6738, 48700, 26791, 13, 16794, 364, 1330, 1330, 62, 7645, 16354, 198, 198, 11748, 62, 7645, 16354, 3419, 198 ]
3.631579
19
from .modules.linear import LazyBilinear from .modules.mlp import MLP from .modules.mlp import LazyMLP from .modules.normalization import LazyBatchNorm from .modules.normalization import LazyBatchNorm1d from .modules.normalization import LazyBatchNorm2d from .modules.normalization import LazyBatchNorm3d from .modules.n...
[ 6738, 764, 18170, 13, 29127, 1330, 406, 12582, 33, 346, 259, 451, 198, 6738, 764, 18170, 13, 4029, 79, 1330, 10373, 47, 198, 6738, 764, 18170, 13, 4029, 79, 1330, 406, 12582, 5805, 47, 198, 6738, 764, 18170, 13, 11265, 1634, 1330, 4...
3.371429
105
import sys import json import numpy as np import imageio from argparse import Namespace def loadenv(config_path): """Load configuration file of Lightmetrica environment""" # Open config file with open(config_path) as f: config = json.load(f) # Add root directory and binary directory to sys.pa...
[ 11748, 25064, 198, 11748, 33918, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 2939, 952, 198, 6738, 1822, 29572, 1330, 28531, 10223, 198, 198, 4299, 3440, 24330, 7, 11250, 62, 6978, 2599, 198, 220, 220, 220, 37227, 8912, 8398, 2393, ...
2.709924
262
s1 = getArray() s2 = getArray() s = merge(s1, s2) output(s)
[ 198, 197, 198, 82, 16, 796, 651, 19182, 3419, 198, 82, 17, 796, 651, 19182, 3419, 198, 82, 796, 20121, 7, 82, 16, 11, 264, 17, 8, 198, 22915, 7, 82, 8, 198 ]
1.909091
33
import csv import json from pprint import pprint import os stockData = ['RIO'] for i in range(0,len(stockData)): csvfile = open(stockData[i]+'.csv', 'r') fieldnames = ("NetworkTime","StockID","Open","High", "Low", "Close", "Adj Close", "Volume") reader = csv.DictReader( csvfile, fieldnames) data = o...
[ 11748, 269, 21370, 198, 11748, 33918, 198, 6738, 279, 4798, 1330, 279, 4798, 198, 11748, 28686, 198, 198, 13578, 6601, 796, 37250, 7112, 46, 20520, 198, 198, 1640, 1312, 287, 2837, 7, 15, 11, 11925, 7, 13578, 6601, 8, 2599, 198, 220, ...
1.904478
670
import requests
[ 11748, 7007, 628 ]
5.666667
3
import time,sys,os import subprocess st = 0 cmd = ['tasklist','/fo','csv'] subs = set('') # win proc = subprocess.Popen(cmd, shell=True, stdout=subprocess.PIPE) while True: if st == 0: st = 1 time.sleep(1) #for sub_pid in subs: # ps_line = line.split(',').replace('\"',''...
[ 198, 11748, 640, 11, 17597, 11, 418, 198, 11748, 850, 14681, 628, 198, 198, 301, 796, 657, 198, 28758, 796, 37250, 35943, 4868, 3256, 26488, 6513, 41707, 40664, 20520, 198, 7266, 82, 796, 900, 7, 7061, 8, 198, 2, 1592, 198, 36942, 7...
2.06015
266
#!/usr/bin/env python """ DBS 3 Migrate REST model unittests The DBS3 Migration Service must be stopped before executing the unittest. In addition, take care that no instance is running on the same DB. Else the single unittests can happen to fail due to race conditions with DBS3 Migration Service. """ from dbsserver_t...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 37811, 198, 35, 4462, 513, 337, 42175, 30617, 2746, 555, 715, 3558, 198, 198, 464, 360, 4462, 18, 36991, 4809, 1276, 307, 5025, 878, 23710, 262, 555, 715, 395, 13, 554, 3090, 11, 101...
3.20524
229
from setuptools import setup, find_packages # from distutils.core import setup # import py2exe # import sys import os del os.link # sys.setrecursionlimit(5000) with open('requirements.txt') as f: required = f.read().splitlines() setup(name='varta-chat', version='1.0', description='Audio Chat framewo...
[ 6738, 900, 37623, 10141, 1330, 9058, 11, 1064, 62, 43789, 198, 2, 422, 1233, 26791, 13, 7295, 1330, 9058, 198, 2, 1330, 12972, 17, 13499, 198, 2, 1330, 25064, 198, 11748, 28686, 198, 12381, 28686, 13, 8726, 198, 198, 2, 25064, 13, 2...
2.397516
322
# # Copyright (C) 2021 Vaticle # # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Versi...
[ 2, 198, 2, 220, 15069, 357, 34, 8, 33448, 569, 1512, 293, 198, 2, 198, 2, 220, 49962, 284, 262, 24843, 10442, 5693, 357, 1921, 37, 8, 739, 530, 198, 2, 220, 393, 517, 18920, 5964, 11704, 13, 220, 4091, 262, 28536, 2393, 198, 2, ...
3.509036
332
# copy of Python 3.5 implementation - probably not needed def gcd(a, b): """Greatest common divisor""" return _gcd_internal(abs(a), abs(b)) def _gcd_internal(a, b): """Greatest common divisor internal""" # Impl. notes: Euler algorithm, both a and b are not negative # There exists faster algori...
[ 198, 198, 2, 4866, 286, 11361, 513, 13, 20, 7822, 532, 2192, 407, 2622, 628, 198, 4299, 308, 10210, 7, 64, 11, 275, 2599, 198, 220, 220, 220, 37227, 13681, 395, 2219, 2659, 271, 273, 37811, 198, 220, 220, 220, 1441, 4808, 70, 1021...
2.537815
238
import sys sys.path.insert(1, './GR_BASS/BASS_only_original/') sys.path.insert(1, './GR_BASS/') import bass as md import numpy as np import sys import bassLibrary as bl # BASS algorithm parameters eps = 0.1 p_d = 0.2 Jthr = 0.15 seed = 0 # Creating synthetic data for process BASS on and to learn the GMM model nbC...
[ 11748, 25064, 198, 17597, 13, 6978, 13, 28463, 7, 16, 11, 705, 19571, 10761, 62, 33, 10705, 14, 33, 10705, 62, 8807, 62, 14986, 14, 11537, 198, 17597, 13, 6978, 13, 28463, 7, 16, 11, 705, 19571, 10761, 62, 33, 10705, 14, 11537, 19...
2.50455
989
from pydantic import BaseModel, EmailStr
[ 6738, 279, 5173, 5109, 1330, 7308, 17633, 11, 9570, 13290, 628 ]
3.818182
11
#! /bin/env python """ Examples ======== **Rectilinear** Create a rectilinear grid that is 2x3:: (0) --- (1) --- (2) | | | | | | | [0] | [1] | | | | | | | (3) --- (4) --- (5) Numbers in parens are node IDs, and numbers in square br...
[ 2, 0, 1220, 8800, 14, 24330, 21015, 198, 37811, 198, 27730, 198, 2559, 198, 198, 1174, 45474, 346, 259, 451, 1174, 198, 198, 16447, 257, 13621, 346, 259, 451, 10706, 326, 318, 362, 87, 18, 3712, 628, 220, 220, 220, 357, 15, 8, 114...
2.133452
562
import pygame from conteudo import Conteudo, Nave, Tiro import random
[ 11748, 12972, 6057, 198, 6738, 542, 68, 12003, 1330, 1482, 660, 12003, 11, 399, 1015, 11, 309, 7058, 198, 11748, 4738, 628, 628, 198 ]
3.083333
24
import inspect import typing from di.api.dependencies import CacheKey from di.dependant import Dependant, Marker from xpresso._utils.typing import Protocol from xpresso.binders.api import SupportsExtractor, SupportsOpenAPI T = typing.TypeVar("T", covariant=True)
[ 11748, 10104, 198, 11748, 19720, 198, 198, 6738, 2566, 13, 15042, 13, 45841, 3976, 1330, 34088, 9218, 198, 6738, 2566, 13, 45841, 415, 1330, 2129, 23048, 11, 2940, 263, 198, 198, 6738, 2124, 18302, 568, 13557, 26791, 13, 774, 13886, 133...
3.448718
78
import sys import unittest as ut import numpy as np import xarray as xr # Import from directory structure if coverage test, or from installed # packages otherwise if "--cov" in str(sys.argv): from src.geocat.f2py import grid_to_triple else: from geocat.f2py import grid_to_triple # Size of the grids ny = 2 mx...
[ 11748, 25064, 198, 11748, 555, 715, 395, 355, 3384, 198, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 2124, 18747, 355, 2124, 81, 198, 198, 2, 17267, 422, 8619, 4645, 611, 5197, 1332, 11, 393, 422, 6589, 198, 2, 10392, 4306, 198, ...
2.083665
502
if __name__ == '__main__': main()
[ 201, 198, 201, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 201, 198, 220, 220, 220, 1388, 3419 ]
2
21
#!/usr/bin/env python # Copyright 2020 The HuggingFace Team. 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...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 15069, 12131, 383, 12905, 2667, 32388, 4816, 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...
3.185751
393
# coding=utf-8 # Copyright 2018 The Google AI Language Team Authors and The 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 cop...
[ 2, 19617, 28, 40477, 12, 23, 198, 2, 15069, 2864, 383, 3012, 9552, 15417, 4816, 46665, 290, 383, 12905, 2667, 32388, 3457, 13, 1074, 13, 198, 2, 15069, 357, 66, 8, 2864, 11, 15127, 23929, 44680, 6234, 13, 220, 1439, 2489, 10395, 13,...
2.738032
752
"""<a href="https://projecteuler.net/problem=12" class="title-custom-link">Highly divisible triangular number</a> The sequence of triangle numbers is generated by adding the natural numbers. So the 7th triangle number would be 1 + 2 + 3 + 4 + 5 + 6 + 7 = 28. The first ten terms would be: 1, 3, 6, 10, 15, 21, 28, 36,...
[ 37811, 27, 64, 13291, 2625, 5450, 1378, 16302, 68, 18173, 13, 3262, 14, 45573, 28, 1065, 1, 1398, 2625, 7839, 12, 23144, 12, 8726, 5320, 11922, 306, 2659, 12843, 46963, 1271, 3556, 64, 29, 198, 464, 8379, 286, 22950, 3146, 318, 7560, ...
2.53578
545
import sqlite3 import os #DB_FILEPATH = "data/chinook.db" DB_FILEPATH = os.path.join(os.path.dirname(__file__), "..", "data", "rpg_db.sqlite3") conn = sqlite3.connect(DB_FILEPATH) conn.row_factory = sqlite3.Row print(type(conn)) #> <class 'sqlite3.Connection'> curs = conn.cursor() print(type(curs)) #> <class 'sqlite3....
[ 11748, 44161, 578, 18, 198, 11748, 28686, 198, 198, 2, 11012, 62, 25664, 34219, 796, 366, 7890, 14, 24658, 566, 13, 9945, 1, 198, 11012, 62, 25664, 34219, 796, 28686, 13, 6978, 13, 22179, 7, 418, 13, 6978, 13, 15908, 3672, 7, 834, ...
2.75969
1,806
#!/usr/bin/env python3 # ISC License # # Copyright (c) 2019, Bryon Vandiver # # Permission to use, copy, modify, and/or distribute this software for any # purpose with or without fee is hereby granted, provided that the above # copyright notice and this permission notice appear in all copies. # # THE SOFT...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 201, 198, 201, 198, 2, 3180, 34, 13789, 201, 198, 2, 220, 201, 198, 2, 15069, 357, 66, 8, 13130, 11, 9092, 261, 35464, 1428, 201, 198, 2, 220, 201, 198, 2, 2448, 3411, 284, 779, ...
2.023482
2,470
############################################################################### # # Copyright (C) 2012 # ASTRON (Netherlands Institute for Radio Astronomy) <http://www.astron.nl/> # P.O.Box 2, 7990 AA Dwingeloo, The Netherlands # # This program is free software: you can redistribute it and/or modify # it under the term...
[ 29113, 29113, 7804, 4242, 21017, 198, 2, 198, 2, 15069, 357, 34, 8, 2321, 198, 2, 317, 18601, 1340, 357, 45, 6750, 4447, 5136, 329, 8829, 25398, 9145, 8, 1279, 4023, 1378, 2503, 13, 459, 1313, 13, 21283, 15913, 198, 2, 350, 13, 46...
3.740809
544
import re
[ 11748, 302, 628, 628 ]
3.25
4
from sqlalchemy import func from application import db from application.helpers.error_handlers import ServerError
[ 6738, 44161, 282, 26599, 1330, 25439, 198, 6738, 3586, 1330, 20613, 198, 6738, 3586, 13, 16794, 364, 13, 18224, 62, 4993, 8116, 1330, 9652, 12331, 628 ]
4.423077
26
import os from unittest.mock import patch import alteia from tests.alteiatest import AlteiaTestBase
[ 11748, 28686, 198, 6738, 555, 715, 395, 13, 76, 735, 1330, 8529, 198, 198, 11748, 435, 660, 544, 198, 6738, 5254, 13, 282, 660, 5375, 395, 1330, 978, 660, 544, 14402, 14881, 628 ]
3.090909
33
from ecgdigitize.signal.extraction.viterbi import * if __name__ == "__main__": print(list(interpolate(Point(0,0), Point(5,5))))
[ 6738, 9940, 70, 27003, 1096, 13, 12683, 282, 13, 2302, 7861, 13, 85, 2676, 8482, 1330, 1635, 628, 198, 361, 11593, 3672, 834, 6624, 366, 834, 12417, 834, 1298, 198, 220, 220, 220, 220, 220, 220, 220, 3601, 7, 4868, 7, 3849, 16104, ...
2.403509
57
from typing import Any, Dict import boto3 import pytest from s3fs import S3FileSystem from peakina.io.s3.s3_fetcher import S3Fetcher
[ 6738, 19720, 1330, 4377, 11, 360, 713, 198, 198, 11748, 275, 2069, 18, 198, 11748, 12972, 9288, 198, 6738, 264, 18, 9501, 1330, 311, 18, 8979, 11964, 198, 198, 6738, 9103, 1437, 13, 952, 13, 82, 18, 13, 82, 18, 62, 34045, 2044, 13...
2.692308
52
# Generated by Django 2.2.7 on 2019-12-02 05:19 from django.db import migrations
[ 2, 2980, 515, 416, 37770, 362, 13, 17, 13, 22, 319, 13130, 12, 1065, 12, 2999, 8870, 25, 1129, 198, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 628 ]
2.766667
30