content
stringlengths
1
1.05M
input_ids
listlengths
1
883k
ratio_char_token
float64
1
22.9
token_count
int64
1
883k
from django.conf.urls import url from django.urls import path, include,re_path from . import views from rest_framework.authtoken.views import obtain_auth_token urlpatterns = [ path('', views.index, name='index'), path('about', views.about, name='about'), path('projects', views.projects, name='projects'),...
[ 6738, 42625, 14208, 13, 10414, 13, 6371, 82, 1330, 19016, 198, 6738, 42625, 14208, 13, 6371, 82, 1330, 3108, 11, 2291, 11, 260, 62, 6978, 198, 6738, 764, 1330, 5009, 198, 6738, 1334, 62, 30604, 13, 18439, 30001, 13, 33571, 1330, 7330,...
2.748815
211
from six.moves import urllib from kiwi.store.tracking.file_store import FileStore
[ 6738, 2237, 13, 76, 5241, 1330, 2956, 297, 571, 198, 198, 6738, 479, 14246, 72, 13, 8095, 13, 36280, 13, 7753, 62, 8095, 1330, 9220, 22658, 628 ]
3.111111
27
from io import BytesIO import json import urllib.parse from collections import OrderedDict from PIL import Image import numpy as np import pytest def test_get_keys(client, use_testdb): rv = client.get('/keys') expected_response = [ {'key': 'key1'}, {'key': 'akey'}, {'key': 'key2',...
[ 6738, 33245, 1330, 2750, 4879, 9399, 198, 11748, 33918, 198, 11748, 2956, 297, 571, 13, 29572, 198, 6738, 17268, 1330, 14230, 1068, 35, 713, 198, 198, 6738, 350, 4146, 1330, 7412, 198, 11748, 299, 32152, 355, 45941, 198, 198, 11748, 129...
2.265101
2,980
def base_conv(n, input_base=10, output_base=10): """ Converts a number n from base input_base to base output_base. The following symbols are used to represent numbers: 0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ n can be an int if input_base <= 10, and a string otherwise. ...
[ 4299, 2779, 62, 42946, 7, 77, 11, 5128, 62, 8692, 28, 940, 11, 5072, 62, 8692, 28, 940, 2599, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 1482, 24040, 257, 1271, 299, 422, 2779, 5128, 62, 8692, 284, 2779, 5072, 62, 8692, 13, ...
2.230263
760
import logging from typing import Dict, List, Optional import numpy as np import qiskit from qiskit.circuit import Barrier, Delay, Reset from qiskit.circuit.library import (CRXGate, CRYGate, CRZGate, CZGate, PhaseGate, RXGate, RYGate, RZGate, U1Gate, ...
[ 11748, 18931, 198, 6738, 19720, 1330, 360, 713, 11, 7343, 11, 32233, 198, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 10662, 1984, 270, 198, 6738, 10662, 1984, 270, 13, 21170, 5013, 1330, 32804, 11, 42698, 11, 30027, 198, 6738, 1066...
2.029703
404
import IAFNNesterov import numpy as np from scipy import sparse import fil2mat if __name__ == "__main__": print(help())
[ 198, 11748, 314, 8579, 6144, 7834, 709, 198, 11748, 299, 32152, 355, 45941, 198, 6738, 629, 541, 88, 1330, 29877, 198, 11748, 1226, 17, 6759, 628, 198, 361, 11593, 3672, 834, 6624, 366, 834, 12417, 834, 1298, 628, 220, 220, 220, 3601,...
2.782609
46
import itertools import BTrees from persistent import Persistent from ZODB.broken import Broken from zope.interface import implementer _marker = object() from .. import exc from ..interfaces import ( IResultSet, STABLE, )
[ 11748, 340, 861, 10141, 198, 11748, 22205, 6037, 198, 198, 6738, 16218, 1330, 9467, 7609, 198, 6738, 1168, 3727, 33, 13, 25826, 1330, 22607, 198, 6738, 1976, 3008, 13, 39994, 1330, 3494, 263, 198, 198, 62, 4102, 263, 796, 2134, 3419, ...
3.232877
73
# Generated by Django 3.2.3 on 2021-05-30 04:28 from django.db import migrations, models import django.db.models.deletion import django.utils.timezone
[ 2, 2980, 515, 416, 37770, 513, 13, 17, 13, 18, 319, 33448, 12, 2713, 12, 1270, 8702, 25, 2078, 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.886792
53
import asyncio import discord # Just with a function to add to the bot. # A Listener already created with the function from discordEasy.objects import Listener listener_on_message = Listener(on_message)
[ 11748, 30351, 952, 198, 11748, 36446, 628, 198, 2, 2329, 351, 257, 2163, 284, 751, 284, 262, 10214, 13, 198, 198, 2, 317, 7343, 877, 1541, 2727, 351, 262, 2163, 198, 6738, 36446, 28406, 13, 48205, 1330, 7343, 877, 198, 198, 4868, 87...
3.745455
55
import os import random from flask import Flask, request, send_from_directory from werkzeug.utils import secure_filename from pianonet.core.pianoroll import Pianoroll from pianonet.model_inspection.performance_from_pianoroll import get_performance_from_pianoroll app = Flask(__name__) base_path = "/app/" # base_pat...
[ 11748, 28686, 198, 11748, 4738, 198, 198, 6738, 42903, 1330, 46947, 11, 2581, 11, 3758, 62, 6738, 62, 34945, 198, 6738, 266, 9587, 2736, 1018, 13, 26791, 1330, 5713, 62, 34345, 198, 198, 6738, 43923, 36823, 13, 7295, 13, 79, 666, 273,...
2.75641
312
import dash import dash_bootstrap_components as dbc import dash_core_components as dcc import dash_html_components as html import plotly.graph_objects as go from plotly.subplots import make_subplots import logging import json import os import pandas as pd from datetime import datetime from datetime import timedelta fro...
[ 11748, 14470, 198, 11748, 14470, 62, 18769, 26418, 62, 5589, 3906, 355, 288, 15630, 198, 11748, 14470, 62, 7295, 62, 5589, 3906, 355, 288, 535, 198, 11748, 14470, 62, 6494, 62, 5589, 3906, 355, 27711, 198, 11748, 7110, 306, 13, 34960, ...
2.576512
562
# -*- coding: utf-8 -*- __author__ = "Paul Schifferer <dm@sweetrpg.com>" """ """ from flask_rest_jsonapi import ResourceList, ResourceDetail, ResourceRelationship from sweetrpg_library_objects.api.system.schema import SystemAPISchema from sweetrpg_api_core.data import APIData from sweetrpg_library_objects.model.syste...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 834, 9800, 834, 796, 366, 12041, 41665, 11882, 1279, 36020, 31, 34751, 81, 6024, 13, 785, 24618, 198, 37811, 198, 37811, 198, 198, 6738, 42903, 62, 2118, 62, 17752, 1504...
2.659259
270
from robot import __version__ as ROBOT_VERSION import sys import tempfile import textwrap import unittest import shutil import subprocess
[ 6738, 9379, 1330, 11593, 9641, 834, 355, 36449, 2394, 62, 43717, 198, 11748, 25064, 198, 11748, 20218, 7753, 198, 11748, 2420, 37150, 198, 11748, 555, 715, 395, 198, 11748, 4423, 346, 198, 11748, 850, 14681, 628 ]
3.861111
36
#!/usr/bin/python # -*- coding: latin-1 -*- """Setup script.""" try: from setuptools import setup except ImportError: from distutils.core import setup try: import pageviewapi version = pageviewapi.__version__ except ImportError: version = 'Undefined' classifiers = [ 'Development Status :: 4...
[ 2, 48443, 14629, 14, 8800, 14, 29412, 198, 2, 532, 9, 12, 19617, 25, 3042, 259, 12, 16, 532, 9, 12, 198, 198, 37811, 40786, 4226, 526, 15931, 198, 198, 28311, 25, 198, 220, 220, 220, 422, 900, 37623, 10141, 1330, 9058, 198, 16341,...
2.877193
342
#a2_t1b.py #This program is to convert Celsius to Kelvin c = 25.0 f = 100.0 k = c_to_k(c) fa = f_to_c(f) print("Celsius of " + str(c) + " is " + str(k) + " in Kelvin") print("Farenheit of " + str(f) + " is " + str(fa) + " in Celsius")
[ 2, 64, 17, 62, 83, 16, 65, 13, 9078, 198, 2, 1212, 1430, 318, 284, 10385, 34186, 284, 46577, 198, 66, 796, 1679, 13, 15, 198, 69, 796, 1802, 13, 15, 198, 198, 74, 796, 269, 62, 1462, 62, 74, 7, 66, 8, 198, 13331, 796, 277, ...
2.153153
111
from django.contrib import messages from django.contrib.auth.decorators import login_required from django.core.exceptions import PermissionDenied from django.core.urlresolvers import reverse, reverse_lazy from django.core.mail import BadHeaderError, send_mail from django.http import HttpResponse, HttpResponseRedirect f...
[ 6738, 42625, 14208, 13, 3642, 822, 1330, 6218, 198, 6738, 42625, 14208, 13, 3642, 822, 13, 18439, 13, 12501, 273, 2024, 1330, 17594, 62, 35827, 198, 6738, 42625, 14208, 13, 7295, 13, 1069, 11755, 1330, 2448, 3411, 21306, 798, 198, 6738,...
3.5
162
"""Flask App configuration file.""" import logging import os import dotenv import frontend.constants as constants dotenv.load_dotenv(os.path.join(constants.BASEDIR, "frontend.env")) config = { "development": "frontend.config.Development", "staging": "frontend.config.Staging", "production": "front...
[ 37811, 7414, 2093, 2034, 8398, 2393, 526, 15931, 198, 198, 11748, 18931, 198, 11748, 28686, 198, 198, 11748, 16605, 24330, 198, 198, 11748, 2166, 437, 13, 9979, 1187, 355, 38491, 628, 198, 26518, 24330, 13, 2220, 62, 26518, 24330, 7, 41...
2.753927
382
# ElasticQuery # File: tests/test_dsl.py # Desc: tests for ElasticQuery DSL objects (Filter, Query, Aggregate) from os import path from unittest import TestCase from jsontest import JsonTest from elasticquery import Query, Aggregate, Suggester from elasticquery.exceptions import ( NoQueryError, NoAggregateError,...
[ 2, 48567, 20746, 198, 2, 9220, 25, 5254, 14, 9288, 62, 67, 6649, 13, 9078, 198, 2, 39373, 25, 5254, 329, 48567, 20746, 32643, 5563, 357, 22417, 11, 43301, 11, 19015, 49373, 8, 198, 198, 6738, 28686, 1330, 3108, 198, 6738, 555, 715, ...
3.136691
139
import torch ckp_path = './checkpoints/fashion_PATN/latest_net_netG.pth' save_path = './checkpoints/fashion_PATN_v1.0/latest_net_netG.pth' states_dict = torch.load(ckp_path) states_dict_new = states_dict.copy() for key in states_dict.keys(): if "running_var" in key or "running_mean" in key: del states_dict_new[key]...
[ 11748, 28034, 198, 198, 694, 79, 62, 6978, 796, 705, 19571, 9122, 13033, 14, 25265, 62, 47, 1404, 45, 14, 42861, 62, 3262, 62, 3262, 38, 13, 79, 400, 6, 198, 21928, 62, 6978, 796, 705, 19571, 9122, 13033, 14, 25265, 62, 47, 1404, ...
2.465753
146
#!/usr/bin/python # Copyright 2016 Preferred Networks, 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 applicab...
[ 2, 48443, 14629, 14, 8800, 14, 29412, 198, 198, 2, 15069, 1584, 31278, 27862, 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...
3.359684
253
import json import discord from utils.time import format_time from utils import utilities from discord.ext import commands from discord import Embed
[ 11748, 33918, 198, 11748, 36446, 198, 6738, 3384, 4487, 13, 2435, 1330, 5794, 62, 2435, 198, 6738, 3384, 4487, 1330, 20081, 198, 6738, 36446, 13, 2302, 1330, 9729, 198, 6738, 36446, 1330, 13302, 276 ]
4.352941
34
import multiprocessing # ========== #Python3 - concurrent from math import floor, sqrt numbers = [ 112272537195293, 112582718962171, 112272537095293, 115280098190773, 115797840077099, 1099726829285419] # numbers = [33, 44, 55, 275] # ========== #Python3 - concurrent if __name__ == '__main__':...
[ 11748, 18540, 305, 919, 278, 198, 198, 2, 796, 2559, 28, 1303, 37906, 18, 532, 24580, 198, 6738, 10688, 1330, 4314, 11, 19862, 17034, 198, 198, 77, 17024, 796, 685, 198, 220, 220, 220, 13539, 1983, 1495, 2718, 22186, 31675, 11, 198, ...
2.571429
252
from setuptools import find_packages, setup setup( name='src', packages=find_packages(), version='0.1.0', description='Project: Nowcasting the air pollution using online search log', author='Emory University(IR Lab)', license='MIT', )
[ 6738, 900, 37623, 10141, 1330, 1064, 62, 43789, 11, 9058, 198, 198, 40406, 7, 198, 220, 220, 220, 1438, 11639, 10677, 3256, 198, 220, 220, 220, 10392, 28, 19796, 62, 43789, 22784, 198, 220, 220, 220, 2196, 11639, 15, 13, 16, 13, 15,...
2.988506
87
""" Project Euler Problem 48 Self powers Solved by Ahrar Monsur The series, 1^1 + 2^2 + 3^3 + ... + 10^10 = 10405071317. Find the last ten digits of the series, 1^1 + 2^2 + 3^3 + ... + 1000^1000. """ main()
[ 37811, 198, 16775, 412, 18173, 20647, 4764, 198, 24704, 5635, 198, 50, 5634, 416, 7900, 20040, 19853, 333, 198, 198, 464, 2168, 11, 352, 61, 16, 1343, 362, 61, 17, 1343, 513, 61, 18, 1343, 2644, 1343, 838, 61, 940, 796, 838, 1821, ...
2.560976
82
#!/usr/bin/python # -*- coding: utf-8 -*- """ @author: rainsty @file: test.py @time: 2020-01-04 18:36:57 @description: """ import os from pyspark.sql import SparkSession os.environ['JAVA_HOME'] = '/root/jdk' os.environ['SPARK_HOME'] = '/root/spark' os.environ['PYTHON_HOME'] = "/root/python" os.environ['PYSPARK_P...
[ 2, 48443, 14629, 14, 8800, 14, 29412, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 37811, 198, 31, 9800, 25, 6290, 34365, 198, 31, 7753, 25, 220, 220, 1332, 13, 9078, 198, 31, 2435, 25, 220, 220, 1213...
2.342282
298
import numpy as np import timeit numIntervalli = input('inserire il numero di intervalli in [0.0, 1.0] ') deltaIntervallo = 1.0 / float(numIntervalli) print "larghezza intervallo", deltaIntervallo start = timeit.default_timer() xIntervalli = [] yIntervalli = [] i = 0 while i < numIntervalli: xIntervallo = i*de...
[ 11748, 299, 32152, 355, 45941, 198, 11748, 640, 270, 628, 198, 198, 22510, 9492, 85, 36546, 796, 5128, 10786, 1040, 263, 557, 4229, 997, 3529, 2566, 987, 85, 36546, 287, 685, 15, 13, 15, 11, 352, 13, 15, 60, 705, 8, 198, 198, 67, ...
2.54359
390
import ast from json_codegen.generators.python3_marshmallow.utils import Annotations, class_name
[ 11748, 6468, 198, 198, 6738, 33918, 62, 8189, 5235, 13, 8612, 2024, 13, 29412, 18, 62, 76, 5406, 42725, 13, 26791, 1330, 47939, 11, 1398, 62, 3672, 628 ]
3.535714
28
#!/usr/bin/env python # # $Id: ESMP_GridToMeshRegridCsrv.py,v 1.5 2012/04/23 23:00:14 rokuingh Exp $ #=============================================================================== # ESMP/examples/ESMP_GridToMeshRegrid.py #=============================================================================== """...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 198, 2, 720, 7390, 25, 13380, 7378, 62, 41339, 2514, 37031, 8081, 6058, 34, 27891, 85, 13, 9078, 11, 85, 352, 13, 20, 2321, 14, 3023, 14, 1954, 2242, 25, 405, 25, 1415, 686, 7...
2.059277
5,449
# Copyright 2019 IBM Corporation # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
[ 2, 15069, 13130, 19764, 10501, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 2, 345, 743, 407, 779, 428, 2393, 2845, 287, 11846, 351, 262, 13789, 13, 198, 2, 921, 743, 73...
3.978378
185
import json import re import sys def beautify(name): ''' Loading, filtering and saving the JSON tweet file to a newly generated .txt file :type: name: String :rtype: output: .txt ''' filename = name + '.json' output_name = name + "_filtered.txt" with open(filename, "r", encoding="utf-8")...
[ 11748, 33918, 198, 11748, 302, 198, 11748, 25064, 628, 198, 4299, 3566, 1958, 7, 3672, 2599, 198, 220, 220, 220, 705, 7061, 12320, 11, 25431, 290, 8914, 262, 19449, 6126, 2393, 284, 257, 8308, 7560, 764, 14116, 2393, 198, 220, 220, 22...
2.182503
1,726
import BboxToolkit as bt import pickle import copy import numpy as np path1="/home/hnu1/GGM/OBBDetection/work_dir/oriented_obb_contrast_catbalance/dets.pkl" path2="/home/hnu1/GGM/OBBDetection/data/FaIR1M/test/annfiles/ori_annfile.pkl"# with open(path2,'rb') as f: #/home/disk/FAIR1M_1000_split/val/annfiles/ori_...
[ 11748, 347, 3524, 25391, 15813, 355, 275, 83, 198, 11748, 2298, 293, 198, 11748, 4866, 198, 11748, 299, 32152, 355, 45941, 198, 6978, 16, 35922, 11195, 14, 21116, 84, 16, 14, 11190, 44, 14, 9864, 33, 11242, 3213, 14, 1818, 62, 15908, ...
1.690223
1,033
import taichi as ti import utils from apic_extension import *
[ 11748, 20486, 16590, 355, 46668, 198, 11748, 3384, 4487, 198, 6738, 2471, 291, 62, 2302, 3004, 1330, 1635, 628 ]
3.315789
19
from copy import deepcopy import bifrost as bf from bifrost.pipeline import TransformBlock from bifrost.ndarray import copy_array bc = bf.BlockChainer() bc.blocks.read_wav(['hey_jude.wav'], gulp_nframe=4096) bc.custom(copy_block)(space='cuda')# $\tikzmark{gpu-start}$ bc.views.s...
[ 6738, 4866, 1330, 2769, 30073, 198, 220, 198, 11748, 275, 361, 23341, 355, 275, 69, 198, 6738, 275, 361, 23341, 13, 79, 541, 4470, 1330, 26981, 12235, 198, 6738, 275, 361, 23341, 13, 358, 18747, 1330, 4866, 62, 18747, 198, 220, 628, ...
2.222222
333
# (C) Copyright 2016-2017 Hewlett Packard Enterprise Development LP # Copyright 2017 FUJITSU LIMITED # # 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, 357, 34, 8, 15069, 1584, 12, 5539, 30446, 15503, 6400, 446, 14973, 7712, 18470, 198, 2, 15069, 2177, 376, 52, 41, 2043, 12564, 40880, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, ...
2.483577
548
import json your_json = '["foo", {"bar":["baz", null, 1.0, 2]}]' parsed = json.loads(your_json) print(type(your_json)) print(type(parsed)) #print(json.dumps(parsed, indent=4, sort_keys=True))
[ 11748, 33918, 198, 198, 14108, 62, 17752, 796, 705, 14692, 21943, 1600, 19779, 5657, 26358, 65, 1031, 1600, 9242, 11, 352, 13, 15, 11, 362, 48999, 49946, 198, 79, 945, 276, 796, 33918, 13, 46030, 7, 14108, 62, 17752, 8, 198, 4798, 7...
2.37037
81
# -*- coding: utf-8 -*- # Copyright 2020 Green Valley Belgium NV # # 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, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 15069, 12131, 3469, 6916, 15664, 23973, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 2, 345, 743, 407, ...
3.38604
702
import matplotlib matplotlib.use('Agg') import numpy as np from astropy.tests.helper import pytest from .. import FITSFigure
[ 11748, 2603, 29487, 8019, 198, 6759, 29487, 8019, 13, 1904, 10786, 46384, 11537, 198, 198, 11748, 299, 32152, 355, 45941, 198, 6738, 6468, 28338, 13, 41989, 13, 2978, 525, 1330, 12972, 9288, 198, 198, 6738, 11485, 1330, 376, 29722, 11337,...
3.045455
44
import os, sys Project( title='ViZual language environment', about=''' * object (hyper)graph interpreter ''' ).sync()
[ 11748, 28686, 11, 25064, 198, 16775, 7, 198, 220, 220, 220, 3670, 11639, 38432, 57, 723, 3303, 2858, 3256, 198, 220, 220, 220, 546, 28, 7061, 6, 198, 9, 2134, 357, 49229, 8, 34960, 28846, 198, 7061, 6, 198, 737, 27261, 3419, 198 ]
2.930233
43
import asyncio import logging import aiohttp import uvicorn from fastai.vision import * from starlette.applications import Starlette from starlette.middleware.cors import CORSMiddleware from starlette.responses import JSONResponse # put your url here here model_file_url = 'https://www.dropbox.com/s/...?raw=1' model_f...
[ 11748, 30351, 952, 198, 11748, 18931, 198, 198, 11748, 257, 952, 4023, 198, 11748, 334, 25531, 1211, 198, 6738, 3049, 1872, 13, 10178, 1330, 1635, 198, 6738, 3491, 21348, 13, 1324, 677, 602, 1330, 2907, 21348, 198, 6738, 3491, 21348, 13...
2.717718
333
from socket import * serverPort = 12001 serverSocket = socket(AF_INET, SOCK_STREAM) serverSocket.bind(('', serverPort)) serverSocket.listen(1) print("the server is ready to receive") while True: connectionSocket,addr = serverSocket.accept() sentence = connectionSocket.recv(1024).decode() sentence = sentence...
[ 6738, 17802, 1330, 1635, 198, 15388, 13924, 796, 1105, 8298, 198, 15388, 39105, 796, 17802, 7, 8579, 62, 1268, 2767, 11, 311, 11290, 62, 2257, 32235, 8, 198, 15388, 39105, 13, 21653, 7, 10786, 3256, 4382, 13924, 4008, 198, 15388, 39105,...
3.190476
126
"""This module contains the GeneFlow LocalWorkflow class."""
[ 37811, 1212, 8265, 4909, 262, 13005, 37535, 10714, 12468, 11125, 1398, 526, 15931, 198 ]
4.357143
14
from torch.optim.lr_scheduler import StepLR, ReduceLROnPlateau, OneCycleLR def step_lr(optimizer, step_size, gamma=0.1, last_epoch=-1): """Create LR step scheduler. Args: optimizer (torch.optim): Model optimizer. step_size (int): Frequency for changing learning rate. gamma (float): Fa...
[ 6738, 28034, 13, 40085, 13, 14050, 62, 1416, 704, 18173, 1330, 5012, 35972, 11, 44048, 35972, 2202, 3646, 378, 559, 11, 1881, 20418, 2375, 35972, 628, 198, 4299, 2239, 62, 14050, 7, 40085, 7509, 11, 2239, 62, 7857, 11, 34236, 28, 15, ...
2.59
1,100
# Copyright 2019 TerraPower, LLC # # 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 writi...
[ 2, 15069, 13130, 24118, 13434, 11, 11419, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 2, 345, 743, 407, 779, 428, 2393, 2845, 287, 11846, 351, 262, 13789, 13, 198, 2, 9...
3.443182
352
# Generated by Django 3.1.12 on 2021-07-12 19:32 from django.db import migrations, models
[ 2, 2980, 515, 416, 37770, 513, 13, 16, 13, 1065, 319, 33448, 12, 2998, 12, 1065, 678, 25, 2624, 198, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 11, 4981, 628 ]
2.875
32
import aspose.email.mapi.msg as msg from aspose.email.mapi import MapiNote, NoteSaveFormat, NoteColor if __name__ == '__main__': run()
[ 11748, 355, 3455, 13, 12888, 13, 8899, 72, 13, 19662, 355, 31456, 198, 6738, 355, 3455, 13, 12888, 13, 8899, 72, 1330, 9347, 72, 6425, 11, 5740, 16928, 26227, 11, 5740, 10258, 198, 197, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12...
2.711538
52
import functools from string import Formatter from typing import ( TYPE_CHECKING, Any, Set, Dict, List, Type, Tuple, Union, Generic, Mapping, TypeVar, Callable, Optional, Sequence, cast, overload, ) if TYPE_CHECKING: from .message import Message, Mess...
[ 11748, 1257, 310, 10141, 198, 6738, 4731, 1330, 5178, 1436, 198, 6738, 19720, 1330, 357, 198, 220, 220, 220, 41876, 62, 50084, 2751, 11, 198, 220, 220, 220, 4377, 11, 198, 220, 220, 220, 5345, 11, 198, 220, 220, 220, 360, 713, 11, ...
2.386885
305
# -*- coding: utf-8 -*- if __name__ == '__main__': main()
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 201, 198, 201, 198, 201, 198, 201, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 201, 198, 220, 220, 220, 1388, 3419, 201, 198 ]
1.775
40
""" """ names = ['', '', '', '', ''] courses = ['', '', ''] # scores = [[None] * len(courses) for _ in range(len(names))] for row, name in enumerate(names): for col, course in enumerate(courses): scores[row][col] = float(input(f'{name}{course}:')) print(scores)
[ 37811, 198, 198, 37811, 628, 198, 14933, 796, 37250, 3256, 705, 3256, 705, 3256, 705, 3256, 10148, 60, 198, 66, 39975, 796, 37250, 3256, 705, 3256, 10148, 60, 198, 2, 220, 198, 1416, 2850, 796, 16410, 14202, 60, 1635, 18896, 7, 66, ...
2.355372
121
import logging import random import numpy as np import pypinyin import tensorflow as tf from augmentations.augments import Augmentation from utils.speech_featurizers import SpeechFeaturizer from utils.text_featurizers import TextFeaturizer logging.basicConfig(level=logging.INFO, format='%(asctime)s - %(name)s - %(le...
[ 11748, 18931, 198, 11748, 4738, 198, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 279, 4464, 3541, 259, 198, 11748, 11192, 273, 11125, 355, 48700, 198, 198, 6738, 35016, 602, 13, 7493, 902, 1330, 2447, 14374, 198, 6738, 3384, 4487, 1...
3.140351
114
"""empty message Revision ID: 2018_04_20_data_src_refactor Revises: 2018_04_11_add_sandbox_topic Create Date: 2018-04-20 13:03:32.478880 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. from sqlalchemy.dialects.postgresql import ARRAY revision = '2018_04_20_data_src_refac...
[ 37811, 28920, 3275, 198, 198, 18009, 1166, 4522, 25, 2864, 62, 3023, 62, 1238, 62, 7890, 62, 10677, 62, 5420, 11218, 198, 18009, 2696, 25, 2864, 62, 3023, 62, 1157, 62, 2860, 62, 38142, 3524, 62, 26652, 198, 16447, 7536, 25, 2864, 1...
2.647436
156
#!/usr/bin/env python3 # -*- coding:utf-8 -*- # coded by Vikas Kundu https://github.com/vikas-kundu # ------------------------------------------- import sys import getopt import time import config from lib.core.parse import banner from lib.core import util from lib.core import installer
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 201, 198, 2, 532, 9, 12, 19617, 25, 40477, 12, 23, 532, 9, 12, 201, 198, 2, 30817, 416, 10447, 292, 45099, 84, 3740, 1378, 12567, 13, 785, 14, 28930, 292, 12, 74, 917, 84, 201, ...
3.091837
98
# Copyright 2013 - Mirantis, Inc. # Copyright 2015 - StackStorm, Inc. # Copyright 2015 - Huawei Technologies Co. Ltd # # 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:/...
[ 2, 15069, 2211, 532, 7381, 20836, 11, 3457, 13, 198, 2, 15069, 1853, 532, 23881, 32173, 11, 3457, 13, 198, 2, 15069, 1853, 532, 43208, 21852, 1766, 13, 12052, 198, 2, 198, 2, 220, 220, 220, 49962, 739, 262, 24843, 13789, 11, 10628, ...
3.510549
237
import xmltodict import json from .models import Tunein from .utils import _init_session from .Exceptions import APIException base_url = 'http://api.shoutcast.com' tunein_url = 'http://yp.shoutcast.com/{base}?id={id}' tuneins = [Tunein('/sbin/tunein-station.pls'), Tunein('/sbin/tunein-station.m3u'), Tunein('/sbin/tun...
[ 11748, 2124, 76, 2528, 375, 713, 198, 11748, 33918, 198, 6738, 764, 27530, 1330, 42587, 259, 198, 6738, 764, 26791, 1330, 4808, 15003, 62, 29891, 198, 6738, 764, 3109, 11755, 1330, 7824, 16922, 198, 198, 8692, 62, 6371, 796, 705, 4023, ...
2.47482
139
from django.core.management.base import BaseCommand, no_translations from django.contrib.auth.models import Group from django.conf import settings import sys
[ 6738, 42625, 14208, 13, 7295, 13, 27604, 13, 8692, 1330, 7308, 21575, 11, 645, 62, 7645, 49905, 198, 198, 6738, 42625, 14208, 13, 3642, 822, 13, 18439, 13, 27530, 1330, 4912, 198, 198, 6738, 42625, 14208, 13, 10414, 1330, 6460, 198, 1...
3.636364
44
# Copyright (c) 2010-2012 OpenStack Foundation # # 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 agree...
[ 2, 15069, 357, 66, 8, 3050, 12, 6999, 4946, 25896, 5693, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 2, 345, 743, 407, 779, 428, 2393, 2845, 287, 11846, 351, 262, 13789...
2.190524
8,020
"""Prop limits are used to validate the input given to xdl elements. For example, a volume property should be a positive number, optionally followed by volume units. The prop limit is used to check that input supplied is valid for that property. """ import re from typing import List, Optional ################## # Reg...
[ 37811, 24331, 7095, 389, 973, 284, 26571, 262, 5128, 1813, 284, 2124, 25404, 4847, 13, 1114, 198, 20688, 11, 257, 6115, 3119, 815, 307, 257, 3967, 1271, 11, 42976, 3940, 416, 198, 29048, 4991, 13, 383, 2632, 4179, 318, 973, 284, 2198,...
2.540395
3,540
""" Provides usable args and kwargs from inspect.getcallargs. For Python 3.3 and above, this module is unnecessary and can be achieved using features from PEP 362: http://www.python.org/dev/peps/pep-0362/ For example, to override a parameter of some function: >>> import inspect >>> def func(a, b=1, c=2,...
[ 37811, 198, 15946, 1460, 24284, 26498, 290, 479, 86, 22046, 422, 10104, 13, 1136, 13345, 22046, 13, 198, 198, 1890, 11361, 513, 13, 18, 290, 2029, 11, 428, 8265, 318, 13114, 290, 460, 307, 8793, 1262, 198, 40890, 422, 350, 8905, 4570,...
2.609233
1,213
# This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. import json import os import sys import time from marionette import MarionetteTestCase from marionette.by import By fro...
[ 2, 770, 8090, 6127, 5178, 318, 2426, 284, 262, 2846, 286, 262, 29258, 5094, 198, 2, 13789, 11, 410, 13, 362, 13, 15, 13, 1002, 257, 4866, 286, 262, 4904, 43, 373, 407, 9387, 351, 428, 198, 2, 2393, 11, 921, 460, 7330, 530, 379, ...
2.357465
3,992
# This is what is in GWT 1.5 for getAbsoluteLeft. err... #""" # // We cannot use DOMImpl here because offsetLeft/Top return erroneous # // values when overflow is not visible. We have to difference screenX # // here due to a change in getBoxObjectFor which causes inconsistencies # // on whether the calcu...
[ 198, 2, 770, 318, 644, 318, 287, 27164, 51, 352, 13, 20, 329, 651, 24849, 3552, 18819, 13, 220, 11454, 986, 198, 2, 37811, 198, 2, 220, 220, 220, 3373, 775, 2314, 779, 24121, 29710, 994, 780, 11677, 18819, 14, 9126, 1441, 35366, 1...
2.603269
673
# -*- coding: utf-8 -*- # Generated by Django 1.9.6 on 2016-06-10 21:25 from __future__ import unicode_literals from django.db import migrations, models
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 2980, 515, 416, 37770, 352, 13, 24, 13, 21, 319, 1584, 12, 3312, 12, 940, 2310, 25, 1495, 198, 6738, 11593, 37443, 834, 1330, 28000, 1098, 62, 17201, 874, 198, 19...
2.719298
57
from depth_first_search import DFS
[ 6738, 6795, 62, 11085, 62, 12947, 1330, 360, 10652, 628 ]
3.6
10
import pymongo from conf import Configuracoes
[ 11748, 279, 4948, 25162, 198, 6738, 1013, 1330, 17056, 333, 330, 3028, 198 ]
3.538462
13
import machine import pycom import utime from exceptions import Exceptions
[ 11748, 4572, 201, 198, 11748, 12972, 785, 201, 198, 11748, 3384, 524, 201, 198, 201, 198, 6738, 13269, 1330, 1475, 11755, 201, 198 ]
3.521739
23
import torch import argparse from collections import defaultdict import os import json if __name__ == '__main__': main()
[ 198, 11748, 28034, 198, 11748, 1822, 29572, 198, 6738, 17268, 1330, 4277, 11600, 198, 11748, 28686, 198, 11748, 33918, 628, 628, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 198, 197, 12417, 3419, 198 ]
3.432432
37
casa = int(input('Qual o valor da casa? ')) sal = int(input('Qual seu salario? ')) prazo = int(input('Quantos meses deseja pagar ? ')) parcela = casa/prazo margem = sal* (30/100) if parcela > margem: print('Este negocio no foi aprovado, aumente o prazo .') else: print("Negocio aprovado pois a parcela d...
[ 66, 15462, 796, 493, 7, 15414, 10786, 46181, 267, 1188, 273, 12379, 6124, 64, 30, 705, 4008, 201, 198, 21680, 796, 493, 7, 15414, 10786, 46181, 384, 84, 3664, 4982, 30, 705, 4008, 201, 198, 79, 3247, 78, 796, 493, 7, 15414, 10786, ...
2.270588
170
# Generated by Django 3.1.7 on 2021-03-27 18:22 from django.db import migrations, models
[ 2, 2980, 515, 416, 37770, 513, 13, 16, 13, 22, 319, 33448, 12, 3070, 12, 1983, 1248, 25, 1828, 198, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 11, 4981, 628 ]
2.84375
32
# -*- coding: utf-8 -*- """ Created on Wed Jul 22 14:36:48 2020 @author: matth """ import autograd.numpy as np #%% Kernel operations # Returns the norm of the pairwise difference # Returns the pairwise inner product if __name__ == '__main__': print('This is the matrix operations file')
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 198, 41972, 319, 3300, 5979, 2534, 1478, 25, 2623, 25, 2780, 12131, 198, 198, 31, 9800, 25, 2603, 400, 198, 37811, 198, 198, 11748, 1960, 519, 6335, 13, 77, 321...
3.051546
97
import json from wptserve.utils import isomorphic_decode
[ 11748, 33918, 198, 198, 6738, 266, 457, 2655, 303, 13, 26791, 1330, 318, 46374, 62, 12501, 1098, 198 ]
3.222222
18
#!/usr/bin/env python3 from pythonosc import osc_bundle_builder from pythonosc import osc_message_builder from pythonosc import udp_client from .device import DeviceObj # OSC Grid Object
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 198, 6738, 21015, 17500, 1330, 267, 1416, 62, 65, 31249, 62, 38272, 198, 6738, 21015, 17500, 1330, 267, 1416, 62, 20500, 62, 38272, 198, 6738, 21015, 17500, 1330, 334, 26059, 62, 1...
3.275862
58
from .app import db
[ 6738, 764, 1324, 1330, 20613, 628 ]
3.5
6
from iron_cache import * import unittest import requests if __name__ == '__main__': unittest.main()
[ 6738, 6953, 62, 23870, 1330, 1635, 198, 11748, 555, 715, 395, 198, 11748, 7007, 198, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 198, 220, 220, 220, 555, 715, 395, 13, 12417, 3419, 198 ]
2.837838
37
#!/usr/bin/env python # -*- coding: utf-8 -*- # __BEGIN_LICENSE__ # Copyright (c) 2009-2013, United States Government as represented by the # Administrator of the National Aeronautics and Space Administration. All # rights reserved. # # The NGT platform is licensed under the Apache License, Version 2.0 (the # "Lic...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 11593, 33, 43312, 62, 43, 2149, 24290, 834, 198, 2, 220, 15069, 357, 66, 8, 3717, 12, 6390, 11, 1578, 1829, 5070...
2.666213
1,468
#!/usr/bin/env python import argparse DELIMITER = "\t" if __name__ == '__main__': parser = argparse.ArgumentParser( description=__doc__, formatter_class=argparse.RawDescriptionHelpFormatter) parser.add_argument('genotypes') parser.add_argument('GQ') parser.add_argument('fout') ...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 198, 11748, 1822, 29572, 628, 198, 35, 3698, 3955, 2043, 1137, 796, 37082, 83, 1, 628, 198, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 198, 220, 220, 220, 30751, ...
2.477987
159
from .api.server import run_app
[ 6738, 764, 15042, 13, 15388, 1330, 1057, 62, 1324, 198 ]
3.2
10
import tweepy import traceback import time import pymongo from tweepy import OAuthHandler from pymongo import MongoClient from pymongo.cursor import CursorType twitter_consumer_key = "" twitter_consumer_secret = "" twitter_access_token = "" twitter_access_secret = "" auth = OAuthHandler(twitter_consumer_key, twitter_...
[ 11748, 4184, 538, 88, 198, 11748, 12854, 1891, 198, 11748, 640, 198, 11748, 279, 4948, 25162, 198, 6738, 4184, 538, 88, 1330, 440, 30515, 25060, 198, 6738, 279, 4948, 25162, 1330, 42591, 11792, 198, 6738, 279, 4948, 25162, 13, 66, 21471...
2.235105
621
#!/usr/bin/env python """Handles Earth Engine service account configuration.""" import ee # The service account email address authorized by your Google contact. # Set up a service account as described in the README. EE_ACCOUNT = 'your-service-account-id@developer.gserviceaccount.com' # The private key associated wit...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 37811, 12885, 829, 3668, 7117, 2139, 1848, 8398, 526, 15931, 198, 198, 11748, 304, 68, 198, 198, 2, 383, 2139, 1848, 3053, 2209, 10435, 416, 534, 3012, 2800, 13, 198, 2, 5345, 510, 2...
3.276995
213
""" Demonstration of numbers in Python """ # Python has an integer type called int print("int") print("---") print(0) print(1) print(-3) print(70383028364830) print("") # Python has a real number type called float print("float") print("-----") print(0.0) print(7.35) print(-43.2) print("") # Limited precision print...
[ 37811, 198, 35477, 12401, 286, 3146, 287, 11361, 198, 37811, 198, 198, 2, 11361, 468, 281, 18253, 2099, 1444, 493, 198, 4798, 7203, 600, 4943, 198, 4798, 7203, 6329, 4943, 198, 4798, 7, 15, 8, 198, 4798, 7, 16, 8, 198, 4798, 32590, ...
2.883227
942
from source.solving_strategies.strategies.solver import Solver
[ 6738, 2723, 13, 82, 10890, 62, 2536, 2397, 444, 13, 2536, 2397, 444, 13, 82, 14375, 1330, 4294, 332, 628 ]
3.2
20
# -*- coding: utf-8 -*- # Generated by Django 1.11.7 on 2017-11-24 16:22 from __future__ import unicode_literals import datetime from django.db import migrations, models from django.utils.timezone import utc
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 2980, 515, 416, 37770, 352, 13, 1157, 13, 22, 319, 2177, 12, 1157, 12, 1731, 1467, 25, 1828, 198, 6738, 11593, 37443, 834, 1330, 28000, 1098, 62, 17201, 874, 198, ...
2.876712
73
"""Implementation of Rule L024.""" from sqlfluff.core.rules.doc_decorators import document_fix_compatible from sqlfluff.rules.L023 import Rule_L023
[ 37811, 3546, 32851, 286, 14330, 406, 40839, 526, 15931, 628, 198, 6738, 19862, 1652, 75, 1648, 13, 7295, 13, 38785, 13, 15390, 62, 12501, 273, 2024, 1330, 3188, 62, 13049, 62, 38532, 198, 6738, 19862, 1652, 75, 1648, 13, 38785, 13, 43...
3.081633
49
""" Plot CMDs for each component. """ import numpy as np from astropy.table import Table import matplotlib.pyplot as plt import matplotlib.cm as cm plt.ion() # Pretty plots from fig_settings import * ############################################ # Some things are the same for all the plotting scripts and we put # thi...
[ 37811, 198, 43328, 327, 12740, 82, 329, 1123, 7515, 13, 198, 37811, 198, 198, 11748, 299, 32152, 355, 45941, 198, 6738, 6468, 28338, 13, 11487, 1330, 8655, 198, 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 198, 11748, 2603, ...
2.370811
925
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Copyright (c) 2012-2018 Snowflake Computing Inc. All right reserved. # import pytest from snowflake.connector.errors import (ProgrammingError) def test_binding_security(conn_cnx, db_parameters): """ SQL Injection Tests """ try: with conn_cnx()...
[ 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, 66, 8, 2321, 12, 7908, 7967, 47597, 38589, 3457, 13, 1439, 826, 10395, 13, 198, 2, 198, 198,...
1.814651
2,935
# Natural Language Toolkit: Language Models # # Copyright (C) 2001-2008 University of Pennsylvania # Author: Steven Bird <sb@csse.unimelb.edu.au> # URL: <http://nltk.sf.net> # For license information, see LICENSE.TXT
[ 2, 12068, 15417, 16984, 15813, 25, 15417, 32329, 198, 2, 198, 2, 15069, 357, 34, 8, 5878, 12, 11528, 2059, 286, 9589, 198, 2, 6434, 25, 8239, 14506, 1279, 36299, 31, 6359, 325, 13, 403, 320, 417, 65, 13, 15532, 13, 559, 29, 198, ...
3.070423
71
import os from graphene_sqlalchemy import SQLAlchemyObjectType from sqlalchemy import Column, Integer, String, create_engine from sqlalchemy.orm import scoped_session, sessionmaker from sqlalchemy.ext.declarative import declarative_base POSTGRES_CONNECTION_STRING = ( os.environ.get("POSTGRES_CONNECTION_STRING") ...
[ 11748, 28686, 198, 6738, 42463, 62, 25410, 282, 26599, 1330, 16363, 2348, 26599, 10267, 6030, 198, 6738, 44161, 282, 26599, 1330, 29201, 11, 34142, 11, 10903, 11, 2251, 62, 18392, 198, 6738, 44161, 282, 26599, 13, 579, 1330, 629, 19458, ...
2.966667
210
# microsig """ Author: Maximilliano Rossi More detail about the MicroSIG can be found at: Website: https://gitlab.com/defocustracking/microsig-python Publication: Rossi M, Synthetic image generator for defocusing and astigmatic PIV/PTV, Meas. Sci. Technol., 31, 017003 (2020) DOI:10.1088/1361-6501/ab42bb. "...
[ 2, 4580, 82, 328, 198, 198, 37811, 198, 13838, 25, 38962, 359, 10115, 40696, 198, 5167, 3703, 546, 262, 4527, 50, 3528, 460, 307, 1043, 379, 25, 198, 33420, 25, 198, 220, 220, 220, 3740, 1378, 18300, 23912, 13, 785, 14, 4299, 420, ...
2.763052
249
# Copyright 2020 Tier IV, 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 to in writing...
[ 2, 15069, 12131, 15917, 8363, 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, 13789, 13, 198, 2,...
2.017518
2,055
from django.contrib.auth.forms import AuthenticationForm, UserCreationForm from django.contrib.auth.models import User from django import forms # If you don't do this you cannot use Bootstrap CSS
[ 6738, 42625, 14208, 13, 3642, 822, 13, 18439, 13, 23914, 1330, 48191, 8479, 11, 11787, 12443, 341, 8479, 198, 6738, 42625, 14208, 13, 3642, 822, 13, 18439, 13, 27530, 1330, 11787, 198, 6738, 42625, 14208, 1330, 5107, 628, 198, 198, 2, ...
3.703704
54
import pandas as pd from pandas import DataFrame df = pd.read_csv('sp500_ohlc.csv', index_col = 'Date', parse_dates=True) df['H-L'] = df.High - df.Low # Giving us count (rows), mean (avg), std (standard deviation for the entire # set), minimum for the set, maximum for the set, and some %s in that range. print( df.des...
[ 11748, 19798, 292, 355, 279, 67, 198, 6738, 19798, 292, 1330, 6060, 19778, 198, 198, 7568, 796, 279, 67, 13, 961, 62, 40664, 10786, 2777, 4059, 62, 1219, 44601, 13, 40664, 3256, 6376, 62, 4033, 796, 705, 10430, 3256, 21136, 62, 19581,...
2.016083
2,798
import cv2 import numpy as np import threading t1 = threading.Thread(target=test) t1.start()
[ 11748, 269, 85, 17, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 4704, 278, 198, 198, 83, 16, 796, 4704, 278, 13, 16818, 7, 16793, 28, 9288, 8, 198, 83, 16, 13, 9688, 3419, 628 ]
2.714286
35
# Copyright 2013 Cloudbase Solutions Srl # # Author: Claudiu Belu <cbelu@cloudbasesolutions.com> # Alessandro Pilotti <apilotti@cloudbasesolutions.com> # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy o...
[ 2, 15069, 2211, 10130, 8692, 23555, 21714, 75, 198, 2, 198, 2, 6434, 25, 36303, 16115, 3944, 84, 1279, 66, 6667, 84, 31, 17721, 65, 1386, 14191, 13, 785, 29, 198, 2, 220, 220, 220, 220, 220, 220, 220, 220, 47319, 28092, 12693, 263...
3.424779
339
# system from io import IOBase, StringIO import os # 3rd party import click # internal from days import DayFactory # import logging # logger = logging.getLogger(__name__) # logger.setLevel(logging.DEBUG) # ch = logging.StreamHandler() # logger.addHandler(ch) if __name__ == "__main__": # pylint: disable=no-valu...
[ 2, 1080, 198, 6738, 33245, 1330, 314, 9864, 589, 11, 10903, 9399, 198, 11748, 28686, 628, 198, 2, 513, 4372, 2151, 198, 11748, 3904, 198, 198, 2, 5387, 198, 6738, 1528, 1330, 3596, 22810, 198, 198, 2, 1330, 18931, 198, 2, 49706, 796...
2.890756
119
from matplotlib.colors import LinearSegmentedColormap from numpy import nan, inf # Used to reconstruct the colormap in viscm parameters = {'xp': [-5.4895292543686764, 14.790571669586654, 82.5546687431056, 29.15531114139253, -4.1316769886951761, -13.002076438907238], 'yp': [-35.948168839230306, -42.27337...
[ 198, 6738, 2603, 29487, 8019, 13, 4033, 669, 1330, 44800, 41030, 12061, 5216, 579, 499, 198, 6738, 299, 32152, 1330, 15709, 11, 1167, 198, 198, 2, 16718, 284, 31081, 262, 951, 579, 499, 287, 1490, 11215, 198, 17143, 7307, 796, 1391, 6...
1.543683
11,034
import matplotlib.pyplot as plt import numpy as np import math from algorithm.planner.utils.car_utils import Car_C PI = np.pi def draw_car(x, y, yaw, steer, color='black', extended_car=True): if extended_car: car = np.array([[-Car_C.RB, -Car_C.RB, Car_C.RF, Car_C.RF, -Car_C.RB, Car_C.ACTUAL_RF, Car_C....
[ 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 10688, 198, 6738, 11862, 13, 11578, 1008, 13, 26791, 13, 7718, 62, 26791, 1330, 1879, 62, 34, 198, 198, 11901, 796, 45941, 13, 14...
1.849911
1,126
from sqlalchemy import Integer, Text, DateTime, func, Boolean, text from models.database_models import Base, Column
[ 6738, 44161, 282, 26599, 1330, 34142, 11, 8255, 11, 7536, 7575, 11, 25439, 11, 41146, 11, 2420, 198, 198, 6738, 4981, 13, 48806, 62, 27530, 1330, 7308, 11, 29201, 628 ]
3.933333
30
import json import re from datetime import datetime from json.decoder import JSONDecodeError import click from boto3.session import Session from boto3_type_annotations.ecs import Client from botocore.exceptions import ClientError, NoCredentialsError from dateutil.tz.tz import tzlocal from dictdiffer import diff JSON_...
[ 11748, 33918, 198, 11748, 302, 198, 6738, 4818, 8079, 1330, 4818, 8079, 198, 6738, 33918, 13, 12501, 12342, 1330, 19449, 10707, 1098, 12331, 198, 198, 11748, 3904, 198, 6738, 275, 2069, 18, 13, 29891, 1330, 23575, 198, 6738, 275, 2069, ...
1.925081
921
import networkx as nx from scipy.special import comb import attr
[ 11748, 3127, 87, 355, 299, 87, 198, 6738, 629, 541, 88, 13, 20887, 1330, 1974, 198, 11748, 708, 81, 628 ]
3.3
20
from typing import Callable, Collection, Iterable, List, Union from data.anagram import anagram_iter from data.graph import _op_mixin, bloom_mask, bloom_node, bloom_node_reducer Transformer = Callable[['bloom_node.BloomNode'], 'bloom_node.BloomNode'] _SPACE_MASK = bloom_mask.for_alpha(' ') def _normalize_state( ...
[ 6738, 19720, 1330, 4889, 540, 11, 12251, 11, 40806, 540, 11, 7343, 11, 4479, 198, 198, 6738, 1366, 13, 272, 6713, 1330, 281, 6713, 62, 2676, 198, 6738, 1366, 13, 34960, 1330, 4808, 404, 62, 19816, 259, 11, 29955, 62, 27932, 11, 2995...
2.885496
262
import json import re import logging import html.parser import zlib import requests from gogapi import urls from gogapi.base import NotAuthorizedError, logger from gogapi.product import Product, Series from gogapi.search import SearchResult DEBUG_JSON = False GOGDATA_RE = re.compile(r"gogData\.?(.*?) = (.+);") CLIEN...
[ 11748, 33918, 198, 11748, 302, 198, 11748, 18931, 198, 11748, 27711, 13, 48610, 198, 11748, 1976, 8019, 198, 198, 11748, 7007, 198, 198, 6738, 467, 70, 15042, 1330, 2956, 7278, 198, 6738, 467, 70, 15042, 13, 8692, 1330, 1892, 13838, 114...
2.510264
341
import pathlib import os from setuptools import setup # The directory containing this file HERE = pathlib.Path(__file__).parent # The text of the README file README = (HERE / "README.md").read_text() # specify requirements of your package here REQUIREMENTS = ['biopython', 'numpy', 'pandas'] setup(name='stacksPairwi...
[ 11748, 3108, 8019, 198, 11748, 28686, 198, 6738, 900, 37623, 10141, 1330, 9058, 198, 198, 2, 383, 8619, 7268, 428, 2393, 198, 39, 9338, 796, 3108, 8019, 13, 15235, 7, 834, 7753, 834, 737, 8000, 198, 198, 2, 383, 2420, 286, 262, 2083...
2.5625
368
#! /usr/bin/env python import os import sys args = sys.argv[1:] os.system('python -O -m spanningtree.csv_experiment_statistics ' + ' '.join(args))
[ 2, 0, 1220, 14629, 14, 8800, 14, 24330, 21015, 198, 11748, 28686, 198, 11748, 25064, 198, 198, 22046, 796, 25064, 13, 853, 85, 58, 16, 47715, 198, 418, 13, 10057, 10786, 29412, 532, 46, 532, 76, 32557, 21048, 13, 40664, 62, 23100, 3...
2.47619
63