content
stringlengths
1
1.04M
input_ids
listlengths
1
774k
ratio_char_token
float64
0.38
22.9
token_count
int64
1
774k
# Python code to demonstrate the working of # complex(), real() and imag() # importing "cmath" for complex number operations import cmath # Initializing real numbers x = 5 y = 3 # converting x and y into complex number z = complex(x, y); s = 5 + 3j # printing real and imaginary part of complex number print("The real...
[ 2, 11361, 2438, 284, 10176, 262, 1762, 286, 198, 2, 3716, 22784, 1103, 3419, 290, 3590, 3419, 198, 198, 2, 33332, 366, 66, 11018, 1, 329, 3716, 1271, 4560, 198, 11748, 269, 11018, 198, 198, 2, 20768, 2890, 1103, 3146, 198, 87, 796, ...
3.352518
139
#jiggle.v.01 #Body_movement #This frame contains words for motions or actions an Agent p #erforms using some part of his/her body. A number of word #s in this frame occur as blends with Communication, in whic #h the action has an Addressee. For example, 'Pat nodded #at Kim.' These examples differ from Communicat...
[ 2, 73, 24082, 13, 85, 13, 486, 198, 2, 25842, 62, 21084, 434, 198, 2, 1212, 5739, 4909, 2456, 329, 25530, 393, 4028, 281, 15906, 279, 198, 2, 263, 23914, 1262, 617, 636, 286, 465, 14, 372, 1767, 13, 220, 220, 317, 1271, 286, 157...
3.535
200
import argparse import os import subprocess import time import sys import ipdb import pickle from utils.meter import * def get_duration(file): """Get the duration of a super_video using ffprobe. -> https://stackoverflow.com/questions/31024968/using-ffmpeg-to-obtain-super_video-durations-in-python""" cmd = 'f...
[ 11748, 1822, 29572, 198, 11748, 28686, 198, 11748, 850, 14681, 198, 11748, 640, 198, 11748, 25064, 198, 11748, 20966, 9945, 198, 11748, 2298, 293, 198, 6738, 3384, 4487, 13, 27231, 1330, 1635, 628, 198, 198, 4299, 651, 62, 32257, 7, 775...
2.197041
1,690
#!/usr/bin/env python # coding: UTF-8 """ %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Simple Python routine to convert JSON to XML Example: python convertjson2xml.py /home/hellsulf/orascript/json2xml/JSON/2020_8_f1.json Note: Requires json2xml pip install json...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 19617, 25, 41002, 12, 23, 198, 198, 37811, 198, 36917, 36917, 36917, 36917, 36917, 36917, 36917, 36917, 36917, 36917, 36917, 36917, 36917, 36917, 36917, 36917, 36917, 36917, 36917, 36917,...
3.174089
247
import neural_network_lyapunov.examples.quadrotor2d.quadrotor_2d as\ quadrotor_2d import neural_network_lyapunov.relu_system as relu_system import neural_network_lyapunov.lyapunov as lyapunov import neural_network_lyapunov.feedback_system as feedback_system import neural_network_lyapunov.train_lyapunov as train_lya...
[ 11748, 17019, 62, 27349, 62, 306, 499, 403, 709, 13, 1069, 12629, 13, 47003, 10599, 273, 17, 67, 13, 47003, 10599, 273, 62, 17, 67, 355, 59, 198, 220, 220, 220, 15094, 10599, 273, 62, 17, 67, 198, 11748, 17019, 62, 27349, 62, 306,...
1.868843
6,923
#!/usr/bin/env python # generate hotindexing undo provisional tests with 2 nested transactions import sys sys.exit(main())
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 7716, 3024, 9630, 278, 23981, 37042, 5254, 351, 362, 28376, 8945, 198, 198, 11748, 25064, 198, 198, 17597, 13, 37023, 7, 12417, 28955, 198 ]
3.676471
34
#!/usr/bin/env python3 # # initializes your docker development environment by creating # random passwords for the database connections # and then updating the configuration files with those passwords # import os import os.path import random import re import shutil import string if __name__ == '__main__': main()
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 2, 198, 2, 4238, 4340, 534, 36253, 2478, 2858, 416, 4441, 198, 2, 4738, 21442, 329, 262, 6831, 8787, 198, 2, 290, 788, 19698, 262, 8398, 3696, 351, 883, 21442, 198, 2, 198, 198...
3.843373
83
import spacy import numpy as np from sklearn.base import BaseEstimator nlp = spacy.load("en_core_web_sm")
[ 11748, 599, 1590, 198, 11748, 299, 32152, 355, 45941, 198, 6738, 1341, 35720, 13, 8692, 1330, 7308, 22362, 320, 1352, 198, 198, 21283, 79, 796, 599, 1590, 13, 2220, 7203, 268, 62, 7295, 62, 12384, 62, 5796, 4943, 628, 628, 628, 628 ]
2.714286
42
# Design a stack that supports push, pop, top, and retrieving the minimum element in constant time. # # push(x) -- Push element x onto stack. # pop() -- Removes the element on top of the stack. # top() -- Get the top element. # getMin() -- Retrieve the minimum element in the stack. # Example: # MinStack minStack = new ...
[ 2, 8495, 257, 8931, 326, 6971, 4574, 11, 1461, 11, 1353, 11, 290, 50122, 262, 5288, 5002, 287, 6937, 640, 13, 198, 2, 198, 2, 4574, 7, 87, 8, 1377, 23691, 5002, 2124, 4291, 8931, 13, 198, 2, 1461, 3419, 1377, 3982, 5241, 262, 50...
3.075581
172
import discord import math client = discord.Client() @client.event @client.event # Здесь должен быть токен client.run('token')
[ 11748, 36446, 198, 11748, 10688, 198, 198, 16366, 796, 36446, 13, 11792, 3419, 628, 198, 31, 16366, 13, 15596, 628, 198, 31, 16366, 13, 15596, 198, 198, 2, 12466, 245, 43666, 16843, 21727, 45367, 12466, 112, 25443, 119, 140, 114, 16843,...
2.180328
61
import subprocess from unittest import mock import pymediainfo from fffw.wrapper import ensure_binary from video_transcoding import transcoding from video_transcoding.tests.base import BaseTestCase class TranscodingTestCase(BaseTestCase): """ Video file transcoding tests.""" # Minimal mediainfo output temp...
[ 11748, 850, 14681, 198, 6738, 555, 715, 395, 1330, 15290, 198, 198, 11748, 12972, 2379, 391, 6513, 198, 6738, 277, 487, 86, 13, 48553, 1330, 4155, 62, 39491, 198, 198, 6738, 2008, 62, 7645, 66, 7656, 1330, 23589, 7656, 198, 6738, 2008...
2.163906
1,147
from egnyte.tests.config import EgnyteTestCase from egnyte.tests.helpers import upload_file EGNYTE_FILE_NAME = '/sample.png' FILE_NAME = 'FILE1.png' COMMENT = 'test comment'
[ 6738, 29206, 3281, 660, 13, 41989, 13, 11250, 1330, 36386, 3281, 660, 14402, 20448, 198, 6738, 29206, 3281, 660, 13, 41989, 13, 16794, 364, 1330, 9516, 62, 7753, 198, 198, 7156, 12805, 9328, 62, 25664, 62, 20608, 796, 31051, 39873, 13, ...
2.793651
63
from setuptools import setup import re requirements = [] for line in open('requirements.txt'): req = line.split('#', 1)[0] # strip comments requirements.append(req.strip()) # follow https://stackoverflow.com/a/7071358/419116 VERSIONFILE = "ncluster/_version.py" verstrline = open(VERSIONFILE, "rt").read() VSRE = ...
[ 6738, 900, 37623, 10141, 1330, 9058, 198, 11748, 302, 198, 198, 8897, 18883, 796, 17635, 198, 1640, 1627, 287, 1280, 10786, 8897, 18883, 13, 14116, 6, 2599, 198, 220, 43089, 796, 1627, 13, 35312, 10786, 2, 3256, 352, 38381, 15, 60, 22...
2.41195
318
# Copyright 2019 Apex.AI, 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, 13130, 49440, 13, 20185, 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, 19...
3.617778
225
# coding: utf-8 """ No descripton provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git Licensed under the Apache License, Version 2.0 (the "License"); you may not use ...
[ 2, 19617, 25, 3384, 69, 12, 23, 198, 198, 37811, 628, 220, 220, 220, 1400, 12145, 261, 2810, 357, 27568, 416, 2451, 7928, 6127, 5235, 3740, 1378, 12567, 13, 785, 14, 2032, 7928, 12, 15042, 14, 2032, 7928, 12, 8189, 5235, 8, 628, 2...
2.705067
5,408
# This file is part of PeachPy package and is licensed under the Simplified BSD license. # See license.rst for the full text of the license. import peachpy.x86_64.abi import peachpy.x86_64.uarch import peachpy.x86_64.isa from peachpy.x86_64.registers import GeneralPurposeRegister, \ GeneralPurposeRegister8, ...
[ 2, 770, 2393, 318, 636, 286, 33230, 20519, 5301, 290, 318, 11971, 739, 262, 45157, 1431, 347, 10305, 5964, 13, 198, 2, 220, 220, 220, 4091, 5964, 13, 81, 301, 329, 262, 1336, 2420, 286, 262, 5964, 13, 628, 198, 11748, 47565, 9078, ...
1.724553
9,225
#!/usr/bin/python import os dir_path = os.path.dirname(os.path.realpath(__file__)) print(dir_path)
[ 2, 48443, 14629, 14, 8800, 14, 29412, 198, 198, 11748, 28686, 198, 15908, 62, 6978, 796, 28686, 13, 6978, 13, 15908, 3672, 7, 418, 13, 6978, 13, 5305, 6978, 7, 834, 7753, 834, 4008, 198, 4798, 7, 15908, 62, 6978, 8, 198 ]
2.380952
42
from setuptools import setup VERSION = "0.0.1" setup( name="fast_docker_web", version=VERSION, description="Wrapps the php web code with Docker environment", long_description_content_type="text/markdown", long_description=readme(), keywords="Docker web php development", url="https://github...
[ 6738, 900, 37623, 10141, 1330, 9058, 198, 198, 43717, 796, 366, 15, 13, 15, 13, 16, 1, 198, 198, 40406, 7, 198, 220, 220, 220, 1438, 2625, 7217, 62, 45986, 62, 12384, 1600, 198, 220, 220, 220, 2196, 28, 43717, 11, 198, 220, 220, ...
2.778846
208
from datetime import date CURRENT_DATE = date.today().strftime("%Y-%m-%e") # FETCH_MEAL_RECORDS = 'SELECT * FROM app_slackuser;' FETCH_MEAL_RECORDS = f""" SELECT to_char(app_mealservice.date, 'DD-MM-YYYY'), app_mealservice.date_modified, app_mealservice.user_id, app_slackuser.firstname, app_slacku...
[ 6738, 4818, 8079, 1330, 3128, 198, 198, 34, 39237, 62, 35, 6158, 796, 3128, 13, 40838, 22446, 2536, 31387, 7203, 4, 56, 12, 4, 76, 12, 4, 68, 4943, 198, 198, 2, 376, 2767, 3398, 62, 11682, 1847, 62, 38827, 1581, 5258, 796, 705, ...
2.068015
544
import requests import pytz from datetime import datetime, timedelta from bs4 import BeautifulSoup from model.news import News from database import Database import locale from urllib.request import Request, urlopen from utils.paragraph_utils import ParagraphUtils from utils.anchor_utils import AnchorUtils from utils.lo...
[ 11748, 7007, 198, 11748, 12972, 22877, 198, 6738, 4818, 8079, 1330, 4818, 8079, 11, 28805, 12514, 198, 6738, 275, 82, 19, 1330, 23762, 50, 10486, 198, 6738, 2746, 13, 10827, 1330, 3000, 198, 6738, 6831, 1330, 24047, 198, 11748, 36693, 1...
2.829736
417
from adaline_gd import * import matplotlib.pyplot as plt import numpy as np # ### Reading-in the Iris data import pandas as pd df = pd.read_csv('https://archive.ics.uci.edu/ml/' 'machine-learning-databases/iris/iris.data', header=None) df.tail() # select setosa and versicolor y = df.iloc[0:100, 4].values y =...
[ 6738, 512, 20663, 62, 21287, 1330, 1635, 198, 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 198, 11748, 299, 32152, 355, 45941, 198, 198, 2, 44386, 11725, 12, 259, 262, 34230, 1366, 198, 11748, 19798, 292, 355, 279, 67, 198...
2.226216
473
from django import template from django.utils.html import escape from django.utils.safestring import mark_safe from django.utils.html import format_html register = template.Library() # Rows @register.simple_tag @register.simple_tag # Columns @register.simple_tag @register.simple_tag # Container @register.simple...
[ 6738, 42625, 14208, 1330, 11055, 198, 6738, 42625, 14208, 13, 26791, 13, 6494, 1330, 6654, 198, 6738, 42625, 14208, 13, 26791, 13, 49585, 395, 1806, 1330, 1317, 62, 21230, 198, 6738, 42625, 14208, 13, 26791, 13, 6494, 1330, 5794, 62, 64...
3.203704
108
import json import chardet import codecs import os.path from . import page from . import entry
[ 11748, 33918, 198, 11748, 442, 446, 316, 198, 11748, 40481, 82, 198, 11748, 28686, 13, 6978, 198, 198, 6738, 764, 1330, 2443, 198, 6738, 764, 1330, 5726, 628 ]
3.464286
28
# Generated by Django 2.2.3 on 2019-08-07 16:56 from django.db import migrations, models
[ 2, 2980, 515, 416, 37770, 362, 13, 17, 13, 18, 319, 13130, 12, 2919, 12, 2998, 1467, 25, 3980, 198, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 11, 4981, 628 ]
2.84375
32
from .io_file import * from .io_data import * from .io_model import * from .io_args import *
[ 6738, 764, 952, 62, 7753, 1330, 1635, 198, 6738, 764, 952, 62, 7890, 1330, 1635, 198, 6738, 764, 952, 62, 19849, 1330, 1635, 198, 6738, 764, 952, 62, 22046, 1330, 1635, 198 ]
2.90625
32
from django.contrib import admin # Register your models here. from .models import Menu admin.site.register(Menu, BaseAdmin)
[ 6738, 42625, 14208, 13, 3642, 822, 1330, 13169, 198, 198, 2, 17296, 534, 4981, 994, 13, 198, 198, 6738, 764, 27530, 1330, 21860, 628, 628, 198, 198, 28482, 13, 15654, 13, 30238, 7, 23381, 11, 7308, 46787, 8, 628, 198 ]
3.325
40
import copy import utils
[ 11748, 4866, 198, 11748, 3384, 4487, 628, 628 ]
3.5
8
import numpy as np import onnx import onnxruntime from layers import * from data import voc, coco import torch import cv2 if __name__ == '__main__': from data import VOC_CLASSES as labels num_classes = 21 cfg = voc priorbox = PriorBox(cfg) with torch.no_grad(): priors = prior...
[ 11748, 220, 299, 32152, 355, 45941, 201, 198, 11748, 319, 77, 87, 201, 198, 11748, 220, 319, 77, 87, 43282, 201, 198, 6738, 11685, 1330, 1635, 201, 198, 6738, 1366, 1330, 12776, 11, 8954, 78, 201, 198, 11748, 28034, 201, 198, 11748, ...
1.908012
1,011
# Generated by the protocol buffer compiler. DO NOT EDIT! # source: Devialet/CallMeMaybe/GeneratorOptions.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protob...
[ 2, 2980, 515, 416, 262, 8435, 11876, 17050, 13, 220, 8410, 5626, 48483, 0, 198, 2, 2723, 25, 6245, 498, 316, 14, 14134, 5308, 13300, 14, 8645, 1352, 29046, 13, 1676, 1462, 198, 198, 11748, 25064, 198, 62, 65, 28, 17597, 13, 9641, ...
2.516469
14,694
import json import pytest from mythx_models.exceptions import ValidationError from mythx_models.response import AuthRefreshResponse from . import common as testdata ACCESS_TOKEN = "my_fancy_access_token" REFRESH_TOKEN = "my_fancy_refresh_token" AUTH_REFRESH = {"access": ACCESS_TOKEN, "refresh": REFRESH_TOKEN} AUTH_...
[ 11748, 33918, 198, 198, 11748, 12972, 9288, 198, 198, 6738, 7918, 87, 62, 27530, 13, 1069, 11755, 1330, 3254, 24765, 12331, 198, 6738, 7918, 87, 62, 27530, 13, 26209, 1330, 26828, 8134, 3447, 31077, 198, 198, 6738, 764, 1330, 2219, 355,...
2.74359
156
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Mon Aug 27 02:08:31 2018 @author: Kazuki """ import pandas as pd import numpy as np import utils, os #utils.start(__file__) #============================================================================== PREF = 'f024_' path_user_id = '../data/user_id_v5.c...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 198, 41972, 319, 2892, 2447, 2681, 7816, 25, 2919, 25, 3132, 2864, 198, 198, 31, 9800, 25, 16385, 11308, 1...
2.360967
1,737
from collections import OrderedDict import numpy as np import tensorflow as tf import deepfnf_utils.tf_utils as tfu
[ 6738, 17268, 1330, 14230, 1068, 35, 713, 198, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 11192, 273, 11125, 355, 48700, 198, 198, 11748, 2769, 22184, 69, 62, 26791, 13, 27110, 62, 26791, 355, 256, 20942, 628 ]
3.216216
37
# Sama kuin 01_neural.xor, paitsi eri syntaksi ja parempi SGD optimoija import numpy as np import tensorflow as tf # Parametrit: 2-4-1 verkko learning_rate = 0.01 n_hidden1 = 4 n_input = 2 n_ouput = 1 inputs = tf.placeholder("float", [None, n_input]) desired_outputs = tf.placeholder("float", [None, n_ouput]) # Ve...
[ 2, 311, 1689, 479, 48441, 5534, 62, 710, 1523, 13, 87, 273, 11, 14187, 896, 72, 1931, 72, 7419, 4730, 72, 45091, 279, 533, 3149, 72, 26147, 35, 6436, 78, 34655, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 11192, 273, 11125, 355,...
2.173752
1,082
import sys import click from pathlib import Path from easy_ftp.setting import Setting from easy_ftp import _print_version, VERSION_HELP, _command_wrapper @click.group() @click.option('--version', is_flag=True, callback=_print_version, expose_value=False, is_eager=True, help=VERSION_HELP) def main(): """ Super...
[ 11748, 25064, 198, 11748, 3904, 198, 6738, 3108, 8019, 1330, 10644, 198, 6738, 2562, 62, 701, 79, 13, 33990, 1330, 25700, 198, 6738, 2562, 62, 701, 79, 1330, 4808, 4798, 62, 9641, 11, 44156, 2849, 62, 39, 3698, 47, 11, 4808, 21812, ...
3.131551
935
# -*- coding: utf-8 -*- """Test cases for the steenzout.barcode.cli package.""" import abc import pytest import unittest from click.testing import CliRunner from steenzout import barcode from steenzout.barcode import cli @pytest.fixture class ClickTestCase(unittest.TestCase): """Abstract class to be used to ...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 14402, 2663, 329, 262, 2876, 19471, 448, 13, 65, 5605, 1098, 13, 44506, 5301, 526, 15931, 198, 198, 11748, 450, 66, 198, 11748, 12972, 9288, 198, 11748, 555, 715,...
3.019802
202
from django.contrib import admin from .models import ImagerProfile admin.site.register(ImagerProfile)
[ 6738, 42625, 14208, 13, 3642, 822, 1330, 13169, 198, 6738, 764, 27530, 1330, 1846, 3536, 37046, 198, 198, 28482, 13, 15654, 13, 30238, 7, 3546, 3536, 37046, 8, 198 ]
3.551724
29
import time from os.path import isfile from os.path import join from uuid import uuid4 import pytest @pytest.mark.recode("no") def test_download(session, tmpdir): """Expect a new file to be created from the 'download' method.""" upload = session.Upload.one() path = tmpdir.mkdir("trident_test_downloads")...
[ 11748, 640, 198, 6738, 28686, 13, 6978, 1330, 318, 7753, 198, 6738, 28686, 13, 6978, 1330, 4654, 198, 6738, 334, 27112, 1330, 334, 27112, 19, 198, 198, 11748, 12972, 9288, 628, 198, 31, 9078, 9288, 13, 4102, 13, 260, 8189, 7203, 3919,...
2.816993
153
#!/usr/bin/env python3 # -*- coding: utf-8 -*- __author__ = 'ipetrash' # https://docs.python.org/3.5/library/enum.html from enum import Enum, IntEnum, unique print(Animal.ANT == Animal.BEE) # False print(Animal.ANT == Animal.ANT) # True print(Animal.ANT is Animal.ANT) # True print(Animal.ANT == 1) # False pri...
[ 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, 834, 9800, 834, 796, 705, 541, 21879, 1077, 6, 628, 198, 2, 3740, 1378, 31628, 13, 29412, 13, 2398, 14, 18...
2.463704
675
# finds solutions to quadratic equations like # ax2 + bx + c = 0, where # a, b and c are real numbers and # a ≠ 0 import cmath import tkinter as tk
[ 2, 7228, 8136, 284, 15094, 81, 1512, 27490, 588, 198, 2, 220, 220, 7877, 17, 1343, 275, 87, 1343, 269, 796, 657, 11, 810, 198, 2, 220, 220, 257, 11, 275, 290, 269, 389, 1103, 3146, 290, 198, 2, 220, 220, 257, 220, 15139, 254, ...
2.590164
61
import numpy as np
[ 11748, 299, 32152, 355, 45941, 198 ]
3.166667
6
# -*- coding: utf-8 -*- import scrapy from bs4 import BeautifulSoup from cultureBigdata.items import CultureEventItem, CultureNewsItem, CultureBasicItem import re from selenium import webdriver from selenium.webdriver.common.keys import Keys from selenium.webdriver.chrome.options import Options from selenium.we...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 201, 198, 11748, 15881, 88, 201, 198, 6738, 275, 82, 19, 1330, 23762, 50, 10486, 201, 198, 6738, 3968, 12804, 7890, 13, 23814, 1330, 17346, 9237, 7449, 11, 17346, 9980, 7449,...
3.304348
138
from gen.java9 import Java9_v2Listener
[ 6738, 2429, 13, 12355, 24, 1330, 7349, 24, 62, 85, 17, 33252, 628, 198 ]
2.928571
14
import textwrap import requests from coinbase_commerce.api_resources.charge import Charge from coinbase_commerce.api_resources.checkout import Checkout from coinbase_commerce.api_resources.event import Event from coinbase_commerce.auth import APIAuth from coinbase_commerce.compat import quote from coinbase_commerce.c...
[ 11748, 2420, 37150, 198, 198, 11748, 7007, 198, 198, 6738, 10752, 8692, 62, 27061, 13, 15042, 62, 37540, 13, 10136, 1330, 20260, 198, 6738, 10752, 8692, 62, 27061, 13, 15042, 62, 37540, 13, 9122, 448, 1330, 6822, 448, 198, 6738, 10752, ...
2.901135
617
from sympy import Eq, Expr, Symbol from sympy import latex
[ 6738, 10558, 88, 1330, 412, 80, 11, 1475, 1050, 11, 38357, 198, 6738, 10558, 88, 1330, 47038, 628, 628, 198 ]
3.15
20
#!/bin/env/python ''' test boss_sbi.galaxies ''' import numpy as np from boss_sbi.halos import Quijote_LHC_HR from boss_sbi import galaxies as Galaxies # read in halo catalog halos = Quijote_LHC_HR(1, z=0.5) # get LOWZ HOD parameters theta_hod = Galaxies.thetahod_lowz_ngc() # apply HOD gals = Galaxies.hodGalaxi...
[ 2, 48443, 8800, 14, 24330, 14, 29412, 198, 7061, 6, 198, 198, 9288, 6478, 62, 82, 8482, 13, 13528, 25472, 198, 198, 7061, 6, 198, 11748, 299, 32152, 355, 45941, 220, 198, 6738, 6478, 62, 82, 8482, 13, 14201, 418, 1330, 2264, 2926, ...
2.341463
164
from random import randint
[ 6738, 4738, 1330, 43720, 600, 628 ]
4.666667
6
import sys, math input = sys.stdin.readline() x1 = int(input.split(',')[0].split('.')[0]) y1 = int(input.split(',')[0].split('.')[1]) x2 = int(input.split(',')[1].split('.')[0]) y2 = int(input.split(',')[1].split('.')[1]) if(x1 == x2 and y1 == y2): print str(0) exit(0) graph = dict() grid_size = 12 # Cover...
[ 11748, 25064, 11, 10688, 628, 198, 15414, 796, 25064, 13, 19282, 259, 13, 961, 1370, 3419, 198, 87, 16, 796, 493, 7, 15414, 13, 35312, 7, 3256, 11537, 58, 15, 4083, 35312, 10786, 2637, 38381, 15, 12962, 198, 88, 16, 796, 493, 7, 1...
2.058419
1,164
# -*- coding: utf-8 -*- # # Copyright (C) 2019 Edward Lau <elau1004@netscape.net> # Licensed under the MIT License. # import os import sys sys.path = [os.getcwd()] + sys.path # VS Code debugger needs it because it default cwd to {workspace}/example. from aiohttp import ClientResponse from etlite.common imp...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 198, 2, 15069, 357, 34, 8, 13130, 10443, 40014, 1279, 417, 559, 3064, 19, 31, 45938, 36435, 13, 3262, 29, 198, 2, 49962, 739, 262, 17168, 13789, 13, 198, 2, 198, ...
2.711765
170
# Copyright (c) Microsoft Corporation. # Licensed under the MIT license. import os import sys sys.path.append("..") sys.path.append("../..") import graph if __name__ == '__main__': output_directory = "compressed_graphs" convert_graph("../baselines/profiles/inception_v3/graph.txt", output_directory, 'inceptio...
[ 2, 15069, 357, 66, 8, 5413, 10501, 13, 198, 2, 49962, 739, 262, 17168, 5964, 13, 198, 198, 11748, 28686, 198, 11748, 25064, 198, 17597, 13, 6978, 13, 33295, 7203, 492, 4943, 198, 17597, 13, 6978, 13, 33295, 7203, 40720, 492, 4943, 1...
2.988701
177
PREVIEW_CHOICES = [ ('slider', 'Slider'), ('pre-order', 'Pre-order'), ('new', 'New'), ('offer', 'Offer'), ('hidden', 'Hidden'), ] CATEGORY_CHOICES = [ ('accesory', 'Accesory'), ('bottom', 'Bottoms'), ('hoodie', 'Hoodies'), ('outerwear', 'Outerwears'), ('sneaker', 'Sneakers'), ...
[ 46437, 28206, 62, 44899, 34444, 796, 685, 198, 220, 220, 220, 19203, 6649, 1304, 3256, 705, 11122, 1304, 33809, 198, 220, 220, 220, 19203, 3866, 12, 2875, 3256, 705, 6719, 12, 2875, 33809, 198, 220, 220, 220, 19203, 3605, 3256, 705, 3...
2.175
160
# -*- coding: utf-8 -*- # Copyright (c) 2015-2016 MIT Probabilistic Computing Project # 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 # Unles...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 2, 15069, 357, 66, 8, 1853, 12, 5304, 17168, 30873, 14991, 2569, 38589, 4935, 198, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, ...
3.463519
233
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # Copyright 2013 UnitedStack 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...
[ 2, 43907, 25, 7400, 11338, 28, 19, 6482, 10394, 28, 19, 2705, 8658, 11338, 28, 19, 198, 198, 2, 15069, 2211, 1578, 25896, 3457, 13, 198, 2, 1439, 6923, 33876, 198, 2, 198, 2, 220, 220, 220, 49962, 739, 262, 24843, 13789, 11, 10628...
3.363184
201
# Tabular Data Classification with AutoML # Import libraries import pandas as pd import tensorflow as tf import autokeras as ak from sklearn.model_selection import train_test_split # Set logging level to hide warnings tf.get_logger().setLevel('ERROR') # Set folder path file_path = "C:/Demos/1 - Tabular Data Classifi...
[ 2, 16904, 934, 6060, 40984, 351, 11160, 5805, 198, 198, 2, 17267, 12782, 198, 11748, 19798, 292, 355, 279, 67, 198, 11748, 11192, 273, 11125, 355, 48700, 198, 11748, 1960, 11020, 292, 355, 47594, 198, 6738, 1341, 35720, 13, 19849, 62, ...
2.395437
789
#!/usr/bin/python # vim: set fileencoding=utf-8 : import os import codecs
[ 2, 48443, 14629, 14, 8800, 14, 29412, 198, 2, 43907, 25, 900, 2393, 12685, 7656, 28, 40477, 12, 23, 1058, 198, 198, 11748, 28686, 198, 11748, 40481, 82, 628, 628, 198 ]
2.548387
31
import asyncio import functools import threading import numpy as np from numba import cuda from numba.core import utils from numba.cuda.testing import unittest, CUDATestCase, skip_on_cudasim asyncio_create_task = asyncio.create_task if utils.PYVERSION >= (3, 7) \ else asyncio.ensure_future @skip_on_cudasim('CU...
[ 11748, 30351, 952, 198, 11748, 1257, 310, 10141, 198, 11748, 4704, 278, 198, 11748, 299, 32152, 355, 45941, 198, 6738, 997, 7012, 1330, 269, 15339, 198, 6738, 997, 7012, 13, 7295, 1330, 3384, 4487, 198, 6738, 997, 7012, 13, 66, 15339, ...
2.829412
170
import sys import os sys.path.insert( 0, os.path.abspath(os.path.join(os.path.dirname(__file__), '..', '..'))) from saltunittest import TestCase, TestLoader, TextTestRunner, skipIf try: from mock import MagicMock, patch has_mock = True except ImportError: has_mock = False import salt.states.rvm as rvm...
[ 11748, 25064, 198, 11748, 28686, 198, 17597, 13, 6978, 13, 28463, 7, 198, 220, 220, 220, 657, 11, 28686, 13, 6978, 13, 397, 2777, 776, 7, 418, 13, 6978, 13, 22179, 7, 418, 13, 6978, 13, 15908, 3672, 7, 834, 7753, 834, 828, 705, ...
2.594714
227
import logging # dump functions for debugging
[ 11748, 18931, 198, 198, 2, 10285, 5499, 329, 28769, 198 ]
4.7
10
import badcrossbar # Applied voltages in volts. # 2D arrays must be used to avoid ambiguity. applied_voltages = [[1.5], [2.3], [1.7]] # Device resistances in ohms. resistances = [[345, 903, 755, 257, 646], [652, 401, 508, 166, 454], [442, 874, 190,...
[ 11748, 2089, 19692, 5657, 198, 198, 2, 27684, 13161, 1095, 287, 46297, 13, 198, 2, 362, 35, 26515, 1276, 307, 973, 284, 3368, 33985, 13, 198, 1324, 18511, 62, 37764, 1095, 796, 16410, 16, 13, 20, 4357, 198, 220, 220, 220, 220, 220, ...
2.94
500
#!/usr/bin/env python import os import json import numpy import tqdm import ltron.settings as settings from ltron.bricks.brick_scene import BrickScene omr_ldraw_directory = os.path.join(settings.paths['omr'], 'ldraw') file_names = list(sorted(os.listdir(omr_ldraw_directory))) path_data = {} for file_name in tqdm...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 11748, 28686, 198, 11748, 33918, 198, 198, 11748, 299, 32152, 198, 198, 11748, 256, 80, 36020, 198, 198, 11748, 300, 83, 1313, 13, 33692, 355, 6460, 198, 6738, 300, 83, 1313, 13, 65, ...
2.256345
788
from django.conf.urls import include,url,static from django.contrib.auth import views as auth_views from django.urls import reverse_lazy from . import views app_name='myuser' urlpatterns = [ url(r'^login/$', auth_views.login, {'template_name':'myuser/login.html'}, name='login'), url(r'^logout/$', auth_views.l...
[ 6738, 42625, 14208, 13, 10414, 13, 6371, 82, 1330, 2291, 11, 6371, 11, 12708, 198, 6738, 42625, 14208, 13, 3642, 822, 13, 18439, 1330, 5009, 355, 6284, 62, 33571, 198, 6738, 42625, 14208, 13, 6371, 82, 1330, 9575, 62, 75, 12582, 198, ...
2.7792
625
import logging # def status(self, payload): # if not self._status_path: # return # if not isinstance(payload, str): # payload = json.dumps(payload, sort_keys=True) # self._mqtt.publish(self._status_path, payload=payload, qos=0, retain=True)
[ 11748, 18931, 628, 198, 220, 220, 220, 1303, 825, 3722, 7, 944, 11, 21437, 2599, 198, 220, 220, 220, 1303, 220, 220, 220, 220, 611, 407, 2116, 13557, 13376, 62, 6978, 25, 198, 220, 220, 220, 1303, 220, 220, 220, 220, 220, 220, 220...
2.225564
133
# Copyright 2020 BULL SAS All rights reserved """This module contains different functions to perform crossover using two chromosomes, i.e. building a child chromosome given two parents.""" # Ignore unused argument kwargs # pylint: disable=unused-argument import numpy as np def single_point_crossover(parent_1, paren...
[ 2, 15069, 12131, 347, 9994, 35516, 1439, 2489, 10395, 198, 37811, 1212, 8265, 4909, 1180, 5499, 284, 1620, 27668, 1262, 734, 198, 28663, 418, 2586, 11, 1312, 13, 68, 13, 2615, 257, 1200, 34348, 1813, 734, 3397, 526, 15931, 198, 198, 2...
2.721875
960
# Copyright (c) 2014-2019. Mount Sinai School of Medicine # # 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 applicabl...
[ 2, 15069, 357, 66, 8, 1946, 12, 23344, 13, 5628, 33745, 3961, 286, 11558, 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...
3.273556
329
class Message: """ Informations needed by the end user to read a message. Think about this structure as a DTO in something like java """ __slots__ = "sender", "time_stamp", "body"
[ 4871, 16000, 25, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 45255, 602, 2622, 416, 262, 886, 2836, 198, 220, 220, 220, 284, 1100, 257, 3275, 13, 11382, 546, 428, 198, 220, 220, 220, 4645, 355, 257, 360, 10468, 287, 1223, 588, ...
2.75
76
#!flask/bin/python from flask import Flask,request,send_from_directory,jsonify,Response import json import sys sys.path.append('modules/') import predict as pre import preprocessing as pro import diacritize as dia app = Flask(__name__) @app.route('/text_classification', methods=['GET']) @app.route('/', metho...
[ 2, 0, 2704, 2093, 14, 8800, 14, 29412, 198, 6738, 42903, 1330, 46947, 11, 25927, 11, 21280, 62, 6738, 62, 34945, 11, 17752, 1958, 11, 31077, 198, 11748, 33918, 198, 11748, 25064, 220, 220, 198, 17597, 13, 6978, 13, 33295, 10786, 18170...
2.708861
158
# # Copyright (C) [2020] Futurewei Technologies, Inc. # # FORCE-RISCV is 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 # # THIS SOFTWARE IS PRO...
[ 2, 198, 2, 15069, 357, 34, 8, 685, 42334, 60, 10898, 42990, 21852, 11, 3457, 13, 198, 2, 198, 2, 7473, 5222, 12, 49, 1797, 33538, 318, 11971, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 2, ...
3.182879
257
from django.urls import path from .views import ( BlockchainCreateView, BlockchainDeleteView, BlockchainDetailView, BlockchainListView, BlockchainUpdateView, ) app_name = "blockchain" urlpatterns = [ path("", BlockchainListView.as_view(), name="blockchain_list"), path("add/", BlockchainCre...
[ 6738, 42625, 14208, 13, 6371, 82, 1330, 3108, 198, 198, 6738, 764, 33571, 1330, 357, 198, 220, 220, 220, 29724, 16447, 7680, 11, 198, 220, 220, 220, 29724, 38727, 7680, 11, 198, 220, 220, 220, 29724, 11242, 603, 7680, 11, 198, 220, ...
2.874419
215
import re from django.http import ( Http404, HttpResponseRedirect, HttpResponse) ACTION_RE = re.compile(r'\w+') class ActionMixin(object): """Mixin for managing actions """
[ 11748, 302, 198, 6738, 42625, 14208, 13, 4023, 1330, 357, 198, 220, 220, 220, 367, 29281, 26429, 11, 198, 220, 220, 220, 367, 29281, 31077, 7738, 1060, 11, 198, 220, 220, 220, 367, 29281, 31077, 8, 198, 198, 44710, 62, 2200, 796, 30...
2.421687
83
# -*- coding: utf-8 -*- import random import re import string import sys import threading import traceback import six from six import string_types # Python3 queue support. try: import Queue except ImportError: import queue as Queue import logging logger = logging.getLogger(__name__) thread_local = threadin...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 11748, 4738, 198, 11748, 302, 198, 11748, 4731, 198, 11748, 25064, 198, 11748, 4704, 278, 198, 11748, 12854, 1891, 198, 198, 11748, 2237, 198, 6738, 2237, 1330, 4731, 62, ...
3.142322
267
#! /usr/bin/env python # File Docstring """STAX Copyright (c) 2010 by Santo Ciaravino""" print __doc__ print # Initialize Psyco try: import psyco psyco.full() except ImportError: print "NOTICE: 'Psyco' could not be initialized!" # Import Python Standard Libraries import __init__ # Directory Import impo...
[ 2, 0, 1220, 14629, 14, 8800, 14, 24330, 21015, 198, 198, 2, 9220, 14432, 8841, 198, 37811, 2257, 25922, 198, 15269, 357, 66, 8, 3050, 416, 10844, 78, 327, 12571, 615, 2879, 37811, 198, 4798, 11593, 15390, 834, 198, 4798, 628, 198, 2...
2.296167
2,296
import abc from random import randint from itertools import chain from utils.dictSet import DictContainer from database import Variable, \ Property, Event, \ SpriteProperty, TextProperty, LineProperty, \ OvalProperty, RectProperty, PolygonProperty, \ UNDEFINED_PARAMETER, KEYWORD_ID ...
[ 11748, 450, 66, 198, 6738, 4738, 1330, 43720, 600, 198, 6738, 340, 861, 10141, 1330, 6333, 198, 198, 6738, 3384, 4487, 13, 11600, 7248, 1330, 360, 713, 29869, 198, 6738, 6831, 1330, 35748, 11, 3467, 198, 220, 220, 220, 14161, 11, 8558...
3.045872
109
############################# # DESCRIPTION # The gen_3d_structure scripts use the EmbedMolecule function of RDKit to generate the 3D structure of compounds, which is then minimized using MM force field within RDKit. # The ChemAxon majorms function is used to determined the protonation state at a pH of 7. # The l...
[ 14468, 7804, 4242, 2, 198, 2, 220, 22196, 40165, 198, 2, 220, 383, 2429, 62, 18, 67, 62, 301, 5620, 14750, 779, 262, 13302, 276, 44, 2305, 23172, 2163, 286, 31475, 20827, 284, 7716, 262, 513, 35, 4645, 286, 16439, 11, 543, 318, 78...
2.390075
1,733
import discord import cogs.utils.checks from discord.ext import commands from cogs.utils.embed import (passembed, errorembed) # Adding the cog to main script
[ 11748, 36446, 198, 11748, 269, 18463, 13, 26791, 13, 42116, 198, 198, 6738, 36446, 13, 2302, 1330, 9729, 198, 6738, 269, 18463, 13, 26791, 13, 20521, 1330, 357, 79, 34455, 276, 11, 1931, 305, 260, 2022, 276, 8, 198, 198, 2, 18247, 2...
3.333333
48
# -*- coding: utf-8 -*- { 'name': 'Import OFX2 Bank Statement', 'summary': "Imports Bank Statements using OFX format from banks like CBA, St George etc", 'description': """ This module adds support for the import of bank statements in `OFX format <https://en.wikipedia.org/wiki/Open_Financial_Excha...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 90, 198, 220, 220, 220, 705, 3672, 10354, 705, 20939, 3963, 55, 17, 5018, 21983, 3256, 628, 220, 220, 220, 705, 49736, 10354, 366, 3546, 3742, 5018, 44936, 1262, 3963, ...
2.619597
347
from . import main, main_dia import argparse from copy import deepcopy import logging if __name__ == '__main__': run()
[ 6738, 764, 1330, 1388, 11, 1388, 62, 67, 544, 198, 11748, 1822, 29572, 198, 6738, 4866, 1330, 2769, 30073, 198, 11748, 18931, 198, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 198, 220, 220, 220, 1057, 3419, 198 ]
3.02439
41
# TODO: define the 'EXPECTED_BAKE_TIME' constant # TODO: consider defining the 'PREPARATION_TIME' constant # equal to the time it takes to prepare a single layer # TODO: define the 'bake_time_remaining()' function def bake_time_remaining(): """Calculate the bake time remaining. :param elapsed_bake_time...
[ 2, 16926, 46, 25, 8160, 262, 705, 49864, 9782, 1961, 62, 4339, 7336, 62, 34694, 6, 6937, 198, 2, 16926, 46, 25, 2074, 16215, 262, 705, 46437, 27082, 6234, 62, 34694, 6, 6937, 198, 2, 220, 220, 220, 220, 220, 220, 4961, 284, 262, ...
3.091603
262
#!/usr/bin/python3.9 # -*- coding: utf-8 -*- # # Copyright (C) 2022 LinYulong. All Rights Reserved # # @Time : 2022/2/7 # @Author : LinYulong # @Description: 逻辑斯蒂回归模型Logistics regression # https://blog.csdn.net/u013421629/article/details/78470020 import pandas as pd import numpy as np from sklearn.metrics import ...
[ 2, 48443, 14629, 14, 8800, 14, 29412, 18, 13, 24, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 198, 2, 15069, 357, 34, 8, 33160, 5164, 56, 377, 506, 13, 1439, 6923, 33876, 220, 198, 2, 198, 2, 2488, ...
1.592593
1,890
"""GitLab source.""" from ..meta.entity import Color, EntityAttributeType from ..meta.source import Source from ..parameters import ( Branch, BranchesToIgnore, Days, FailureType, MergeRequestState, MultipleChoiceParameter, MultipleChoiceWithAdditionParameter, Upvotes, PrivateToken, ...
[ 37811, 38, 270, 17822, 2723, 526, 15931, 198, 198, 6738, 11485, 28961, 13, 26858, 1330, 5315, 11, 20885, 33682, 6030, 198, 6738, 11485, 28961, 13, 10459, 1330, 8090, 198, 6738, 11485, 17143, 7307, 1330, 357, 198, 220, 220, 220, 20551, 1...
2.17911
2,652
""" Interface module defining a url storage API. """ import abc import six @six.add_metaclass(abc.ABCMeta)
[ 37811, 198, 39317, 8265, 16215, 257, 19016, 6143, 7824, 13, 198, 37811, 198, 11748, 450, 66, 198, 11748, 2237, 628, 198, 31, 19412, 13, 2860, 62, 4164, 330, 31172, 7, 39305, 13, 24694, 48526, 8, 198 ]
3.027778
36
""" roundup.anypy - compatibility layer for any Python 2.3+ """ VERSION = '.'.join(map(str, (0, 3, )))
[ 37811, 198, 744, 929, 13, 1092, 9078, 532, 17764, 7679, 329, 597, 11361, 362, 13, 18, 10, 198, 37811, 198, 43717, 796, 705, 2637, 13, 22179, 7, 8899, 7, 2536, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, ...
1.59633
109
# -*- coding: utf-8 -*- import importlib from json.encoder import (_make_iterencode, JSONEncoder, encode_basestring_ascii, INFINITY, encode_basestring) discord = importlib.import_module('discord') fortnitepy = importlib.import_module('fortnitepy')
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 201, 198, 11748, 1330, 8019, 201, 198, 6738, 33918, 13, 12685, 12342, 1330, 44104, 15883, 62, 270, 14226, 8189, 11, 19449, 27195, 12342, 11, 201, 198, 220, 220, 220, 220, 220...
2.059603
151
import boto3 import botocore import json import config import res.utils as utils import res.glob as glob # ======================================================================================================================= # # Supported services : RDS, DynamoDB, ElastiCache, Neptune, Amazon Redshift # Unsuppo...
[ 11748, 275, 2069, 18, 198, 11748, 10214, 420, 382, 198, 11748, 33918, 198, 11748, 4566, 198, 11748, 581, 13, 26791, 355, 3384, 4487, 198, 11748, 581, 13, 4743, 672, 220, 355, 15095, 198, 198, 2, 38093, 10052, 4770, 50155, 198, 2, 198,...
2.677749
1,955
from Sockets import Client from Sockets import Server from argparse import ArgumentParser if __name__ == '__main__': parser = ArgumentParser() parser.add_argument("-m", "--mode", dest="mode", type=str, required=True, help="CLIENT to start a client or SERVER to start a server" ...
[ 6738, 311, 11603, 1330, 20985, 198, 6738, 311, 11603, 1330, 9652, 198, 6738, 1822, 29572, 1330, 45751, 46677, 198, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 628, 197, 48610, 796, 45751, 46677, 3419, 198, 197, 48610, ...
2.434018
341
# The celery CLI points to a module (via the -A argument) # to find tasks. This file exists to be a target for that argument. # Examples: # - See `worker_start_command` in dagster_celery.cli # - deployment-flower.yaml helm chart from .make_app import make_app from .tasks import create_task app = make_app() execut...
[ 2, 383, 18725, 1924, 43749, 2173, 284, 257, 8265, 357, 8869, 262, 532, 32, 4578, 8, 198, 2, 284, 1064, 8861, 13, 770, 2393, 7160, 284, 307, 257, 2496, 329, 326, 4578, 13, 198, 2, 21066, 25, 198, 2, 220, 220, 532, 4091, 4600, 288...
3.117117
111
# standard python imports import re import time import random import zipfile import logging logger = logging.getLogger('utility_to_osm.ssr2') # third party imports from bs4 import BeautifulSoup # shared helper library import utility_to_osm.gentle_requests as gentle_requests def get_geonorge_url_dct(url='https://nedl...
[ 2, 3210, 21015, 17944, 198, 11748, 302, 198, 11748, 640, 198, 11748, 4738, 198, 11748, 19974, 7753, 198, 11748, 18931, 198, 6404, 1362, 796, 18931, 13, 1136, 11187, 1362, 10786, 315, 879, 62, 1462, 62, 418, 76, 13, 824, 81, 17, 11537,...
2.303892
668
# -*- coding: utf-8 -*- # Generated by Django 1.11.20 on 2019-10-31 14:04 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, 1157, 13, 1238, 319, 13130, 12, 940, 12, 3132, 1478, 25, 3023, 198, 6738, 11593, 37443, 834, 1330, 28000, 1098, 62, 17201, 874, 198,...
2.754386
57
import unittest from src.api import Settings from src.api.geom import ProjectionSettings class ProjectionSettingsTestCase(unittest.TestCase): """Tests the ProjectionSettings class.""" def test_as_dict(self): """Test the as_dict() method of the ProjectionSettings class.""" d = self.ps.as_dict() self.assertE...
[ 11748, 555, 715, 395, 198, 198, 6738, 12351, 13, 15042, 1330, 16163, 198, 6738, 12351, 13, 15042, 13, 469, 296, 1330, 4935, 295, 26232, 628, 198, 4871, 4935, 295, 26232, 14402, 20448, 7, 403, 715, 395, 13, 14402, 20448, 2599, 198, 197...
2.917933
329
import numpy as np import numbers import gc def sims_clean_up(): """ This method will clean up data caches created by the sims software stack. Any time a cache is added to the sims software stack, it can be added to the list sims_clean_up.targets. When sims_clean_up() is called, it will loop thro...
[ 11748, 299, 32152, 355, 45941, 198, 11748, 3146, 198, 11748, 308, 66, 628, 198, 4299, 985, 82, 62, 27773, 62, 929, 33529, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 770, 2446, 481, 3424, 510, 1366, 50177, 2727, 416, 262, 985, 82...
2.279835
1,701
import pandas as pd from sklearn.model_selection import train_test_split from keras_text_summarization.library.utility.plot_utils import plot_and_save_history from keras_text_summarization.library.seq2seq import Seq2SeqSummarizer from keras_text_summarization.library.applications.fake_news_loader import fit_text impor...
[ 11748, 19798, 292, 355, 279, 67, 220, 198, 6738, 1341, 35720, 13, 19849, 62, 49283, 1330, 4512, 62, 9288, 62, 35312, 198, 6738, 41927, 292, 62, 5239, 62, 16345, 3876, 1634, 13, 32016, 13, 315, 879, 13, 29487, 62, 26791, 1330, 7110, ...
2.935714
140
#!/usr/bin/env python # -*-coding: utf8 -*- """ Library for multiple alignment and mutation calling in hCov-19 analysis. Copyright 2021 by Regina Kalcsevszki (kalcsevszkiregi@gmail.com), Balázs Ligeti (obalasz@gmail.com). All rights reserved. """ import os from os.path import join from Bio import SeqIO import re imp...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 532, 9, 12, 66, 7656, 25, 3384, 69, 23, 532, 9, 12, 198, 198, 37811, 198, 23377, 329, 3294, 19114, 290, 15148, 4585, 287, 289, 34, 709, 12, 1129, 3781, 13, 198, 15269, 33448, ...
2.553547
719
import logging from mongoengine import connect from flask import Flask from flask_socketio import SocketIO, emit DEBUG = True app = Flask(__name__) app.config.from_object(__name__) socketio = SocketIO(app, host='0.0.0.0', port=5000) logging.basicConfig( level=logging.INFO, format="[%(asctime)s] %(message...
[ 11748, 18931, 198, 198, 6738, 285, 25162, 18392, 1330, 2018, 198, 6738, 42903, 1330, 46947, 198, 6738, 42903, 62, 44971, 952, 1330, 47068, 9399, 11, 27588, 198, 198, 30531, 796, 6407, 198, 198, 1324, 796, 46947, 7, 834, 3672, 834, 8, ...
2.626667
225
##################################################### # export WANDB_START_METHOD=thread # python hydra_wandb_test.py -m +some_param=1,2,3,4 ##################################################### # import os, sys # sys.path.insert(1, os.path.join(sys.path[0], "..")) # print(os.path.abspath(os.curdir)) import hydra i...
[ 29113, 14468, 4242, 2, 198, 2, 10784, 370, 6981, 33, 62, 2257, 7227, 62, 49273, 28, 16663, 198, 2, 21015, 25039, 62, 86, 392, 65, 62, 9288, 13, 9078, 532, 76, 1343, 11246, 62, 17143, 28, 16, 11, 17, 11, 18, 11, 19, 198, 29113, ...
2.913907
151
""" Generate the manifest.json file by recursively reading through the docs/ directory. All sub-directories will be interpreted as modules All image files will be interpreted have type resource All other files will have type topic To modify type, name, or to ignore a file, add it to the .mfconfig file in the root dir...
[ 37811, 198, 8645, 378, 262, 10561, 13, 17752, 2393, 416, 664, 1834, 2280, 3555, 832, 262, 198, 31628, 14, 8619, 13, 198, 198, 3237, 850, 12, 12942, 1749, 481, 307, 16173, 355, 13103, 198, 3237, 2939, 3696, 481, 307, 16173, 423, 2099, ...
2.897143
350
import csv import os from typing import Dict, Tuple import numpy as np from ConfigSpace.read_and_write.pcs import read as read_pcs import ConfigSpace import ConfigSpace.util def load_configuration_data(path: str) -> Tuple[np.ndarray, Dict[int,np.ndarray], Dict[int,np.ndarray]]: """ reads the files in the give...
[ 11748, 269, 21370, 198, 11748, 28686, 198, 6738, 19720, 1330, 360, 713, 11, 309, 29291, 198, 11748, 299, 32152, 355, 45941, 198, 6738, 17056, 14106, 13, 961, 62, 392, 62, 13564, 13, 79, 6359, 1330, 1100, 355, 1100, 62, 79, 6359, 198, ...
2.331069
2,208
# Copyright (c) 2021, NVIDIA CORPORATION. All rights reserved. # # NVIDIA CORPORATION and its licensors retain all intellectual property # and proprietary rights in and to this software, related documentation # and any modifications thereto. Any use, reproduction, disclosure or # distribution of this software and re...
[ 171, 119, 123, 2, 15069, 357, 66, 8, 33448, 11, 15127, 23929, 44680, 6234, 13, 220, 1439, 2489, 10395, 13, 198, 2, 198, 2, 15127, 23929, 44680, 6234, 290, 663, 8240, 669, 12377, 477, 9028, 3119, 198, 2, 290, 20622, 2489, 287, 290, ...
4.866109
239
# Copyright 2017 Google Inc. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # # 1. Redistributions of source code must retain the above copyright notice, # this list of conditions and the following disclaimer. # #...
[ 2, 15069, 2177, 3012, 3457, 13, 198, 2, 198, 2, 2297, 396, 3890, 290, 779, 287, 2723, 290, 13934, 5107, 11, 351, 393, 1231, 198, 2, 17613, 11, 389, 10431, 2810, 326, 262, 1708, 3403, 198, 2, 389, 1138, 25, 198, 2, 198, 2, 352, ...
2.971946
13,474
''' (c) 2011, 2012 Georgia Tech Research Corporation This source code is released under the New BSD license. Please see http://wiki.quantsoftware.org/index.php?title=QSTK_License for license details. Created on Jan 1, 2011 @author:Drew Bratcher @contact: dbratcher@gatech.edu @summary: Contains tutorial for backteste...
[ 7061, 6, 198, 7, 66, 8, 2813, 11, 2321, 7859, 9634, 4992, 10501, 198, 1212, 2723, 2438, 318, 2716, 739, 262, 968, 347, 10305, 5964, 13, 220, 4222, 766, 198, 4023, 1378, 15466, 13, 40972, 43776, 13, 2398, 14, 9630, 13, 10121, 30, 7...
2.545575
757
# Generated by Django 2.0.5 on 2018-06-03 17:13 import django.core.validators from django.db import migrations, models
[ 2, 2980, 515, 416, 37770, 362, 13, 15, 13, 20, 319, 2864, 12, 3312, 12, 3070, 1596, 25, 1485, 198, 198, 11748, 42625, 14208, 13, 7295, 13, 12102, 2024, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 11, 4981, 628 ]
2.95122
41
#!/usr/bin/python # -*- coding: utf-8 -*- # Software License Agreement (BSD License) # # Copyright (c) 2009-2011, Eucalyptus Systems, Inc. # All rights reserved. # # Redistribution and use of this software in source and binary forms, with or # without modification, are permitted provided that the following conditions #...
[ 2, 48443, 14629, 14, 8800, 14, 29412, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 10442, 13789, 12729, 357, 21800, 13789, 8, 198, 2, 198, 2, 15069, 357, 66, 8, 3717, 12, 9804, 11, 412, 1229, 3400, 457,...
3.24136
1,765
from pydantic import BaseModel from pydantic.types import PositiveInt from tortoise.contrib.pydantic.creator import pydantic_model_creator from app.core.models.tortoise.author import Author AuthorOut = pydantic_model_creator(Author)
[ 6738, 279, 5173, 5109, 1330, 7308, 17633, 198, 6738, 279, 5173, 5109, 13, 19199, 1330, 33733, 5317, 198, 6738, 7619, 25678, 13, 3642, 822, 13, 79, 5173, 5109, 13, 45382, 1330, 279, 5173, 5109, 62, 19849, 62, 45382, 198, 6738, 598, 13,...
3.391304
69