content
stringlengths
1
1.04M
input_ids
listlengths
1
774k
ratio_char_token
float64
0.38
22.9
token_count
int64
1
774k
from colorsys import hls_to_rgb from rpi_ws281x import Color
[ 6738, 7577, 893, 1330, 289, 7278, 62, 1462, 62, 81, 22296, 198, 6738, 374, 14415, 62, 18504, 30368, 87, 1330, 5315, 198 ]
2.772727
22
from typing import Optional, Union, Tuple, Set, List, Dict from loguru import logger from nonebot.adapters import Bot, Event from nonebot.handler import Handler from nonebot.permission import Permission from nonebot.typing import T_Handler from nonutils.command import Command from nonutils.stringres import Rstr cla...
[ 6738, 19720, 1330, 32233, 11, 4479, 11, 309, 29291, 11, 5345, 11, 7343, 11, 360, 713, 198, 198, 6738, 2604, 14717, 1330, 49706, 198, 6738, 4844, 13645, 13, 324, 12126, 1330, 18579, 11, 8558, 198, 6738, 4844, 13645, 13, 30281, 1330, 32...
1.846705
698
import pdb import ipywidgets as widgets from IPython.display import display import subprocess from pathlib import Path class ControlPanel(): """ Ipywidgets panel allowing high-level control of the HITs creation,confirmation validation and deletion along with monitoring of number of HITs per worker ...
[ 11748, 279, 9945, 198, 198, 11748, 20966, 88, 28029, 11407, 355, 40803, 198, 6738, 6101, 7535, 13, 13812, 1330, 3359, 198, 11748, 850, 14681, 198, 6738, 3108, 8019, 1330, 10644, 628, 198, 198, 4871, 6779, 26639, 33529, 198, 220, 220, 22...
2.302181
2,568
from django.contrib import admin from . models import Doctor, Contact,Prescription_pictures,Bloodds # Register your models here. admin.site.register(Doctor) admin.site.register(Contact) admin.site.register(Prescription_pictures) admin.site.register(Bloodds)
[ 6738, 42625, 14208, 13, 3642, 822, 1330, 13169, 198, 6738, 764, 4981, 1330, 9356, 11, 14039, 11, 25460, 6820, 62, 18847, 942, 11, 21659, 9310, 198, 2, 17296, 534, 4981, 994, 13, 198, 28482, 13, 15654, 13, 30238, 7, 37564, 8, 198, 28...
3.48
75
import math import itertools import collections from sqlalchemy.orm import joinedload from pycldf import Sources from clldutils.misc import nfilter from clldutils.color import qualitative_colors from clldutils.text import strip_brackets from clld.cliutil import Data, bibtex2source from clld.db.meta import DBSession fr...
[ 11748, 10688, 198, 11748, 340, 861, 10141, 198, 11748, 17268, 198, 198, 6738, 44161, 282, 26599, 13, 579, 1330, 5399, 2220, 198, 6738, 12972, 66, 335, 69, 1330, 26406, 198, 6738, 269, 297, 67, 26791, 13, 44374, 1330, 299, 24455, 198, ...
2.929775
356
from django.db import models
[ 6738, 42625, 14208, 13, 9945, 1330, 4981, 628 ]
3.75
8
## from model import data_processing import util import pandas as pd from sklearn import metrics from sklearn.model_selection import GridSearchCV from model.estimator import FBProphetEstimator x_train = pd.DataFrame({"ds": data_processing.X_TRAIN}) y_train = pd.DataFrame({"y": data_processing.Y_TRAIN}) x_test = pd.Da...
[ 2235, 198, 6738, 2746, 1330, 1366, 62, 36948, 198, 11748, 7736, 198, 11748, 19798, 292, 355, 279, 67, 198, 6738, 1341, 35720, 1330, 20731, 198, 6738, 1341, 35720, 13, 19849, 62, 49283, 1330, 24846, 18243, 33538, 198, 6738, 2746, 13, 395...
2.417582
364
import os from src.context import Context from src.errors import RTError from src.ast.tokens import TokType from src.ast.nodes import * from src.buildchain import BuildCache from src.buildchain import Visitor from src.valtypes import Value from src.valtypes.array import Array from src.valtypes.dict import Dict from src...
[ 11748, 28686, 198, 6738, 12351, 13, 22866, 1330, 30532, 198, 6738, 12351, 13, 48277, 1330, 11923, 12331, 198, 6738, 12351, 13, 459, 13, 83, 482, 641, 1330, 9453, 6030, 198, 6738, 12351, 13, 459, 13, 77, 4147, 1330, 1635, 198, 6738, 12...
3.634921
126
""" Copyright 2020 The OneFlow Authors. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agr...
[ 37811, 198, 15269, 12131, 383, 1881, 37535, 46665, 13, 1439, 2489, 10395, 13, 198, 198, 26656, 15385, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 5832, 743, 407, 779, 428, 2393, 2845, 287, 11846, ...
3.882979
188
import click from halo import Halo from .svm import Shop, DummyShop from .exceptions import Failure shop = w if (w := Shop.load(silent=True)) else DummyShop() @click.group() @click.command() @click.command() @click.option('--reason', help="The changes made in this commit", default="Made changes") @click.command() ...
[ 11748, 3904, 198, 6738, 289, 7335, 1330, 18597, 198, 6738, 764, 82, 14761, 1330, 13705, 11, 360, 13513, 29917, 198, 6738, 764, 1069, 11755, 1330, 25743, 198, 198, 24643, 796, 266, 611, 357, 86, 19039, 13705, 13, 2220, 7, 18217, 298, 2...
2.951482
371
#!/usr/bin/env python # -*- coding: utf8 -*- # vim: ts=4 sw=4 et ai: from distutils.core import setup long_description = """\ Copyright, Michael P. Soulier, 2010. About Release 0.7.0: ==================== Various bugfixes and refactoring for improved logging. Now requiring python 2.7+ and tightening syntax in prepar...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 23, 532, 9, 12, 198, 2, 43907, 25, 40379, 28, 19, 1509, 28, 19, 2123, 257, 72, 25, 198, 198, 6738, 1233, 26791, 13, 7295, 1330, 9058, 198, 1...
3.361227
1,434
import gdxpds as gd import pandas as pd import numpy as np import matplotlib.pyplot as plt ### This file reads optimal load scheduling from Julia ouput and generates aggregated ### consumption of alll categories, as in as in section 7.2.3 - step 2, following project report. ### Result is saved in csv and then conver...
[ 11748, 308, 34350, 79, 9310, 355, 308, 67, 198, 11748, 19798, 292, 355, 279, 67, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 628, 198, 198, 21017, 770, 2393, 9743, 16586, 3440, 269...
2.189997
3,179
import sys from numba import extension_types from numba import * @jit class MyExtension(object): """ >>> obj = MyExtension(10.0) >>> obj.value 10.0 >>> obj._numba_attrs.value 10.0 >>> obj.setvalue(20.0) >>> obj.getvalue() 20.0 >>> obj.value 20.0 >>> obj.getvalue.__name_...
[ 11748, 25064, 198, 198, 6738, 997, 7012, 1330, 7552, 62, 19199, 198, 6738, 997, 7012, 1330, 1635, 198, 198, 31, 45051, 198, 4871, 2011, 11627, 3004, 7, 15252, 2599, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 13163, 26181, 796, 201...
2.17402
816
from setuptools import setup, find_packages setup( name="alesisvsysex", version="0.0.1", install_requires=["pytest", "python-rtmidi", "mido", "vext.pyqt5"], packages=find_packages(), entry_points={ 'console_scripts': ['alesisvsysex=alesisvsysex.__main__:main'], } )
[ 6738, 900, 37623, 10141, 1330, 9058, 11, 1064, 62, 43789, 198, 198, 40406, 7, 198, 220, 220, 220, 1438, 2625, 2040, 271, 85, 1837, 8044, 1600, 198, 220, 220, 220, 2196, 2625, 15, 13, 15, 13, 16, 1600, 198, 220, 220, 220, 2721, 62,...
2.34375
128
""" Module with all Payment Expirience Web Profiles related entities. """ from enum import Enum from typing import Type, List from pypaypal.entities.base import ( T, PayPalEntity, ResponseType ) class FlowConfig(PayPalEntity): """Webexp Flow configuration object representation. """ ...
[ 37811, 198, 220, 220, 220, 19937, 351, 477, 28784, 1475, 4063, 1240, 5313, 4415, 2915, 3519, 12066, 13, 198, 37811, 198, 198, 6738, 33829, 1330, 2039, 388, 198, 6738, 19720, 1330, 5994, 11, 7343, 198, 198, 6738, 279, 4464, 323, 18596, ...
2.829091
275
#!/usr/bin/python class Problem9: ''' Special Pythagorean triplet Problem 9 31875000 A Pythagorean triplet is a set of three natural numbers, a < b < c, for which, a^2 + b^2 = c^2 For example, 3^2 + 4^2 = 9 + 16 = 25 = 5^2. There exists exactly one Pythagorean triplet for which a + b...
[ 2, 48443, 14629, 14, 8800, 14, 29412, 198, 198, 4871, 20647, 24, 25, 198, 220, 220, 220, 705, 7061, 198, 220, 220, 220, 6093, 48657, 363, 29456, 15055, 83, 198, 220, 220, 220, 20647, 860, 198, 220, 220, 220, 39320, 2425, 830, 628, ...
2.472393
163
from main import *
[ 6738, 1388, 1330, 1635, 198 ]
3.8
5
import os import cv2 import numpy as np import argparse import zipfile import _pickle as pickle def parse_args(): """ Parse input arguments """ parser = argparse.ArgumentParser(description='Visualization crop results') parser.add_argument('--annotation', dest='annotation', ...
[ 11748, 28686, 198, 11748, 269, 85, 17, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 1822, 29572, 198, 11748, 19974, 7753, 198, 11748, 4808, 27729, 293, 355, 2298, 293, 628, 198, 4299, 21136, 62, 22046, 33529, 198, 220, 220, 220, 3722...
1.896091
972
#!/usr/bin/env python """Usage: psutil-procsmem [-h] [-s SORT] Options: -h --help # print this help -s [SORT] --sort [SORT] # sort by column, either uss, pss, swap or pss Description: Show "real" (USS) memory usage about all (querable) processes. "USS" (Unique Set Size) memory is probably the...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 198, 37811, 28350, 25, 26692, 22602, 12, 36942, 5796, 368, 25915, 71, 60, 25915, 82, 311, 9863, 60, 198, 198, 29046, 25, 198, 220, 532, 71, 1377, 16794, 220, 220, 220, 220, 220, 220,...
3.155172
290
from __future__ import unicode_literals import django_cache_url
[ 6738, 11593, 37443, 834, 1330, 28000, 1098, 62, 17201, 874, 198, 198, 11748, 42625, 14208, 62, 23870, 62, 6371, 628, 198 ]
3.190476
21
# graph_modifications.py # ------------------------------------------------------------------------- # This script creates a simple plot with two lines, then modifies many # features of the plot, including axis labels, labels and legend, line # style, tick labels, and title. # ------------------------------------------...
[ 2, 4823, 62, 4666, 6637, 13, 9078, 198, 2, 16529, 45537, 198, 2, 770, 4226, 8075, 257, 2829, 7110, 351, 734, 3951, 11, 788, 953, 6945, 867, 198, 2, 3033, 286, 262, 7110, 11, 1390, 16488, 14722, 11, 14722, 290, 8177, 11, 1627, 198,...
3.137736
530
import json import os import shutil import uuid from distutils.dir_util import copy_tree import requests from kaos_cli.constants import DOCKER, MINIKUBE, AWS, BACKEND, INFRASTRUCTURE, GCP, LOCAL_CONFIG_DICT, \ CONTEXTS, ACTIVE, BACKEND_CACHE, DEFAULT, USER, REMOTE, KAOS_STATE_DIR from kaos_cli.exceptions.exception...
[ 11748, 33918, 198, 11748, 28686, 198, 11748, 4423, 346, 198, 11748, 334, 27112, 198, 6738, 1233, 26791, 13, 15908, 62, 22602, 1330, 4866, 62, 21048, 198, 198, 11748, 7007, 198, 6738, 479, 7495, 62, 44506, 13, 9979, 1187, 1330, 360, 1129...
2.570674
757
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Mon Jul 20 09:58:50 2020 @author: duttar Description: Inverting for ALT from the seasonal subsidence results Using mixed soil conditions: a) .9 porosity for top organic layer b) exponential decay of porosity below organic layer c) .44 porosity ...
[ 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, 5979, 1160, 7769, 25, 3365, 25, 1120, 12131, 198, 198, 31, 9800, 25, 288, 15318, 28...
2.377797
1,162
"""Types for geojson_pydantic models""" from typing import Tuple, Union NumType = Union[float, int] BBox = Union[ Tuple[NumType, NumType, NumType, NumType], # 2D bbox Tuple[NumType, NumType, NumType, NumType, NumType, NumType], # 3D bbox ] Position = Union[Tuple[NumType, NumType], Tuple[NumType, NumType, Nu...
[ 37811, 31431, 329, 4903, 13210, 1559, 62, 79, 5173, 5109, 4981, 37811, 198, 198, 6738, 19720, 1330, 309, 29291, 11, 4479, 198, 198, 33111, 6030, 796, 4479, 58, 22468, 11, 493, 60, 198, 33, 14253, 796, 4479, 58, 198, 220, 220, 220, 3...
2.666667
123
MAX_ITERATIONS = 15 TOLERANCE = 0.001 # https://en.wikipedia.org/wiki/B%C3%A9zier_curve # P0(0, 0), P1(x1, y1), P2(x2, y2), P3(1, 1) # B(t) = ((1-t)^3)*P0 + (3t(1-t)^2)*P1 + (3t^2(1-t))*P2 + t^3*P3 # = (3t(1-t)^2)*P1 + (3t^2(1-t))*P2 + t^3 # Returns f(t) or z(t) by given value x1, x2 or y1, ...
[ 22921, 62, 2043, 1137, 18421, 796, 1315, 201, 198, 51, 3535, 1137, 19240, 796, 657, 13, 8298, 201, 198, 201, 198, 2, 3740, 1378, 268, 13, 31266, 13, 2398, 14, 15466, 14, 33, 4, 34, 18, 4, 32, 24, 89, 959, 62, 22019, 303, 201, ...
1.567213
305
# -*- encoding: utf-8 -*- from .base import BaseConfig
[ 2, 532, 9, 12, 21004, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 6738, 764, 8692, 1330, 7308, 16934, 628 ]
2.666667
21
"""All URLs for the WeGovNow extension.""" from django.conf.urls import include, url from rest_framework.urlpatterns import format_suffix_patterns from geokey_wegovnow import views # ########################### # ADMIN VIEWS # ########################### adminpatterns = [ url(r'^admin/profile/settings/$', ...
[ 37811, 3237, 32336, 329, 262, 775, 23774, 3844, 7552, 526, 15931, 198, 198, 6738, 42625, 14208, 13, 10414, 13, 6371, 82, 1330, 2291, 11, 19016, 198, 198, 6738, 1334, 62, 30604, 13, 6371, 33279, 82, 1330, 5794, 62, 37333, 844, 62, 3327...
2.578348
351
import os import json import random import boto3 from time import sleep from notification import SnsNotification region = os.getenv('AWS_REGION','ap-northeast-1') SNS_ARN = os.environ['sns_arn'] CHANNEL = os.environ['channel'] REPO_OMMIT = os.environ['repo_ommit'] alb = boto3.client('elbv2', region_name=region) ecs =...
[ 11748, 28686, 198, 11748, 33918, 198, 11748, 4738, 198, 11748, 275, 2069, 18, 198, 6738, 640, 1330, 3993, 198, 198, 6738, 14483, 1330, 5489, 82, 3673, 2649, 198, 198, 36996, 796, 28686, 13, 1136, 24330, 10786, 12298, 50, 62, 31553, 2849...
2.681698
377
import re from selenium.webdriver.common.by import By from selenium.webdriver.support.ui import WebDriverWait from selenium.webdriver.support import expected_conditions from selenium.webdriver.remote import webdriver, webelement
[ 11748, 302, 198, 6738, 384, 11925, 1505, 13, 12384, 26230, 13, 11321, 13, 1525, 1330, 2750, 198, 6738, 384, 11925, 1505, 13, 12384, 26230, 13, 11284, 13, 9019, 1330, 5313, 32103, 21321, 198, 6738, 384, 11925, 1505, 13, 12384, 26230, 13,...
3.5
66
from __future__ import annotations import os import subprocess import sys import time from dataclasses import dataclass from threading import Timer from typing import TypeVar import cptk.constants import cptk.utils from cptk.core.system import System from cptk.local.problem import LocalProblem from cptk.scrape import...
[ 6738, 11593, 37443, 834, 1330, 37647, 198, 198, 11748, 28686, 198, 11748, 850, 14681, 198, 11748, 25064, 198, 11748, 640, 198, 6738, 4818, 330, 28958, 1330, 4818, 330, 31172, 198, 6738, 4704, 278, 1330, 5045, 263, 198, 6738, 19720, 1330, ...
2.278012
2,133
import os import re from uuid import uuid4 from cs50 import SQL from flask import Flask, flash, render_template, redirect, request, session, json from flask_session import Session from tempfile import mkdtemp from helpers import login_required from werkzeug.security import generate_password_hash, check_password_hash fr...
[ 11748, 28686, 198, 11748, 302, 198, 6738, 334, 27112, 1330, 334, 27112, 19, 198, 6738, 50115, 1120, 1330, 16363, 198, 6738, 42903, 1330, 46947, 11, 7644, 11, 8543, 62, 28243, 11, 18941, 11, 2581, 11, 6246, 11, 33918, 198, 6738, 42903, ...
2.585947
797
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # Copyright 2011 OpenStack LLC. # 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, 2813, 4946, 25896, 11419, 13, 198, 2, 1439, 6923, 33876, 13, 198, 2, 198, 2, 220, 220, 220, 49962, 739, 262, 24843, 13789, 11, ...
3.410646
263
from .some_function import some_function from .SomeClass import SomeClass from .SomeClass import SOME_CONSTANT
[ 198, 6738, 764, 11246, 62, 8818, 1330, 617, 62, 8818, 198, 6738, 764, 4366, 9487, 1330, 2773, 9487, 198, 6738, 764, 4366, 9487, 1330, 41670, 62, 10943, 2257, 8643, 198 ]
3.733333
30
import unittest from project.figure.circle import Circle
[ 11748, 555, 715, 395, 198, 198, 6738, 1628, 13, 26875, 13, 45597, 1330, 16291, 628, 198 ]
3.75
16
#!/usr/bin/env python # coding=utf-8 """Module Description Copyright (c) 2017 Jianfeng Li <lee_jianfeng@sjtu.edu.cn> This code is free software; you can redistribute it and/or modify it under the terms of the MIT License. @sam: Sam File Class @status: experimental @version: 0.0.1 @author: Jianfeng Li @contact: lee_ji...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 19617, 28, 40477, 12, 23, 198, 37811, 26796, 12489, 198, 15269, 357, 66, 8, 2177, 40922, 69, 1516, 7455, 1279, 7197, 62, 73, 666, 69, 1516, 31, 82, 73, 28047, 13, 15532, 13, 315...
2.757322
239
import pytest import numpy as np import pandas as pd from gym.spaces import Box from tensortrade.features import FeatureTransformer from tensortrade.features.stationarity import FractionalDifference @pytest.fixture
[ 11748, 12972, 9288, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 19798, 292, 355, 279, 67, 198, 198, 6738, 11550, 13, 2777, 2114, 1330, 8315, 198, 198, 6738, 11192, 419, 27585, 13, 40890, 1330, 27018, 8291, 16354, 198, 6738, 11192, 4...
3.548387
62
"""Detection model trainer. This file provides a generic training method to train a DetectionModel. """ import datetime import os import tensorflow as tf import time import monopsr from monopsr.builders import optimizer_builder, net_builder from monopsr.core import checkpoint_utils from monopsr.core import summary_ut...
[ 37811, 11242, 3213, 2746, 21997, 13, 198, 198, 1212, 2393, 3769, 257, 14276, 3047, 2446, 284, 4512, 257, 198, 11242, 3213, 17633, 13, 198, 37811, 198, 11748, 4818, 8079, 198, 11748, 28686, 198, 11748, 11192, 273, 11125, 355, 48700, 198, ...
2.440574
3,273
# Net01.py # Server # command A 창에서 실행 from socket import * svrIP = '59.29.224.54' # Host IP svrPort = 64000 svrAddr = (svrIP,svrPort) svrSocket = socket(AF_INET,SOCK_STREAM) svrSocket.bind(svrAddr) svrSocket.listen(0) # Listening 상태 완료 # Connect 허락 cliSocket, cliAddr = svrSocket.accept() # 메세지 전송(send) cliSocket....
[ 2, 3433, 486, 13, 9078, 198, 2, 9652, 198, 2, 3141, 317, 23821, 108, 121, 168, 245, 238, 168, 226, 250, 23821, 233, 97, 169, 244, 231, 220, 198, 6738, 17802, 1330, 1635, 198, 21370, 81, 4061, 796, 705, 3270, 13, 1959, 13, 24137, ...
1.767932
237
from scapy.all import * from someip_fuzzer.config import config from someip_fuzzer.log import log_info from someip_fuzzer.types import * from queue import Queue import threading import time load_contrib("automotive.someip")
[ 6738, 629, 12826, 13, 439, 1330, 1635, 198, 6738, 617, 541, 62, 69, 4715, 263, 13, 11250, 1330, 4566, 198, 6738, 617, 541, 62, 69, 4715, 263, 13, 6404, 1330, 2604, 62, 10951, 198, 6738, 617, 541, 62, 69, 4715, 263, 13, 19199, 1330...
3.082192
73
#!/usr/bin/env python3 import pathlib import typing as t import mimetypes mimetypes.add_type("text/gemini", ".gmi")
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 628, 198, 11748, 3108, 8019, 198, 11748, 19720, 355, 256, 198, 11748, 17007, 2963, 12272, 628, 198, 76, 320, 2963, 12272, 13, 2860, 62, 4906, 7203, 5239, 14, 24090, 5362, 1600, 27071, 7...
2.673913
46
import re from setuptools import setup, find_packages if __name__ == '__main__': # get requirements with open('requirements.txt') as f: requirements = f.read() requirements = [ r for r in requirements.splitlines() if r != ''] # get readme with open('README.rst') as f: ...
[ 11748, 302, 198, 198, 6738, 900, 37623, 10141, 1330, 9058, 11, 1064, 62, 43789, 198, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 628, 220, 220, 220, 1303, 651, 5359, 198, 220, 220, 220, 351, 1280, 10786, 8897, 18883...
2.181955
665
from dataclasses import dataclass from datetime import datetime from app.core import ( DbAddTransactionIn, DbAddTransactionOut, DbAddUserIn, DbAddUserOut, DbAddWalletIn, DbAddWalletOut, DbFetchStatisticsIn, DbFetchStatisticsOut, DbGetUserWalletCountIn, DbGetUserWalletCountOut, ...
[ 6738, 4818, 330, 28958, 1330, 4818, 330, 31172, 198, 6738, 4818, 8079, 1330, 4818, 8079, 198, 198, 6738, 598, 13, 7295, 1330, 357, 198, 220, 220, 220, 360, 65, 4550, 48720, 818, 11, 198, 220, 220, 220, 360, 65, 4550, 48720, 7975, 11...
2.522222
270
import numpy as np import matplotlib.pyplot as plt import scipy.integrate as inte import astropy.constants as con import astropy.units as u from tqdm import tqdm import os import utils as utl import irlf as irlf # LF Parameters zdo = np.array([0.0, 0.3, 0.45, 0.6, 0.8, 1.0, 1.2, 1.7, 2.0, 2.5, 3.0, 4.2, 5.0]) zup = np...
[ 11748, 299, 32152, 355, 45941, 198, 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 198, 11748, 629, 541, 88, 13, 18908, 4873, 355, 493, 68, 198, 11748, 6468, 28338, 13, 9979, 1187, 355, 369, 198, 11748, 6468, 28338, 13, 4166...
1.941118
3,023
import base64 WRITE_MODE = 'w' READ_MODE = 'r' READ_WRITE_MODE = 'r+' READ_BINARY_MODE = 'rb' WRITE_BINARY_MODE = 'wb' KEY_MAP_FILE_NAME = 'key.map' FILE_MAP_FILE_NAME = 'file.map' POSITION_MAP_FILE_NAME = 'position.map' STASH_FOLDER_NAME = 'stash' CLOUD_MAP_FILE_NAME = 'cloud.map' LOG_FILE_NAME = 'pyoram.log'
[ 11748, 2779, 2414, 198, 198, 18564, 12709, 62, 49058, 796, 705, 86, 6, 198, 15675, 62, 49058, 796, 705, 81, 6, 198, 15675, 62, 18564, 12709, 62, 49058, 796, 705, 81, 10, 6, 198, 15675, 62, 33, 1268, 13153, 62, 49058, 796, 705, 261...
2.12
150
#!/usr/bin/env python # -*- coding:utf-8 -*- # @Author: Jialiang Shi from sonarqube.utils.rest_client import RestClient from sonarqube.utils.config import ( API_MEASURES_COMPONENT_ENDPOINT, API_MEASURES_COMPONENT_TREE_ENDPOINT, API_MEASURES_SEARCH_HISTORY_ENDPOINT, ) from sonarqube.utils.common import GET, ...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 532, 9, 12, 19617, 25, 40477, 12, 23, 532, 9, 12, 198, 2, 2488, 13838, 25, 449, 498, 15483, 16380, 198, 6738, 3367, 283, 421, 1350, 13, 26791, 13, 2118, 62, 16366, 1330, 8324, ...
2.548728
2,083
import HoodTracker from CommonUtils import * import PySide2.QtWidgets as QtWidgets
[ 11748, 17233, 35694, 198, 6738, 8070, 18274, 4487, 1330, 1635, 198, 11748, 9485, 24819, 17, 13, 48, 83, 54, 312, 11407, 355, 33734, 54, 312, 11407, 198 ]
3.074074
27
"""Abstract object containing information about plots.""" # This file is part of the 'tomate' project # (http://github.com/Descanonge/tomate) and subject # to the MIT License as defined in the file 'LICENSE', # at the root of this project. © 2020 Clément HAËCK from typing import Any, Dict, List, Union, TYPE_CHECKING...
[ 37811, 23839, 2134, 7268, 1321, 546, 21528, 526, 15931, 198, 198, 2, 770, 2393, 318, 636, 286, 262, 705, 39532, 378, 6, 1628, 198, 2, 357, 4023, 1378, 12567, 13, 785, 14, 24564, 272, 14220, 14, 39532, 378, 8, 290, 2426, 198, 2, 28...
2.181818
5,038
# Reference Source: https://github.com/llSourcell/linear_regression_live/blob/master/demo.py import pandas as pd import numpy as np from sklearn.model_selection import train_test_split from sklearn.preprocessing import StandardScaler import matplotlib.pyplot as plt from sklearn.utils import shuffle from sklearn.metric...
[ 2, 20984, 8090, 25, 3740, 1378, 12567, 13, 785, 14, 297, 7416, 297, 14, 29127, 62, 2301, 2234, 62, 12583, 14, 2436, 672, 14, 9866, 14, 9536, 78, 13, 9078, 198, 198, 11748, 19798, 292, 355, 279, 67, 198, 11748, 299, 32152, 355, 459...
2.153646
1,920
import setuptools with open("README.rst", "r") as fh: long_description = fh.read() setuptools.setup( name='sparsedlist', version='0.4', packages=[''], url='https://github.com/bdragon300/sparsedlist', license='Apache-2.0', author='Igor Derkach', author_email='gosha753951@gmail.com', ...
[ 11748, 900, 37623, 10141, 198, 198, 4480, 1280, 7203, 15675, 11682, 13, 81, 301, 1600, 366, 81, 4943, 355, 277, 71, 25, 198, 220, 220, 220, 890, 62, 11213, 796, 277, 71, 13, 961, 3419, 198, 198, 2617, 37623, 10141, 13, 40406, 7, 1...
2.5625
352
import time import numpy as np import random # np.random.seed(5) # random.seed(5) import sys import os import argparse sys.path.insert(1, '../utils/') from coord_helper import * from data_helper import * import bullet_client as bc if __name__ == '__main__': parser = argparse.ArgumentParser() parser.add_argument("...
[ 11748, 640, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 4738, 198, 2, 45941, 13, 25120, 13, 28826, 7, 20, 8, 198, 2, 4738, 13, 28826, 7, 20, 8, 198, 11748, 25064, 198, 11748, 28686, 198, 11748, 1822, 29572, 198, 17597, 13, 6978,...
2.256592
986
# -*- coding: utf-8 -*- ''' Anagram Difference - https://www.hackerrank.com/challenges/anagram/problem '''
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 7061, 6, 198, 2025, 6713, 43795, 532, 3740, 1378, 2503, 13, 31153, 8056, 962, 13, 785, 14, 36747, 34120, 14, 272, 6713, 14, 45573, 198, 7061, 6 ]
2.547619
42
from django.apps import AppConfig
[ 6738, 42625, 14208, 13, 18211, 1330, 2034, 16934, 628 ]
3.888889
9
import requests import json
[ 11748, 7007, 198, 11748, 33918 ]
5.4
5
# Generated by Django 3.0.8 on 2020-08-21 17:43 from django.db import migrations, models
[ 2, 2980, 515, 416, 37770, 513, 13, 15, 13, 23, 319, 12131, 12, 2919, 12, 2481, 1596, 25, 3559, 198, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 11, 4981, 628 ]
2.84375
32
# -*- coding: utf-8 -*- from __future__ import (absolute_import, division, print_function) import codecs import gzip import pickle from functools import reduce from itertools import chain from operator import mul from pyodesys.symbolic import SymbolicSys radiolysis1 = """ H4sIAGqdpVgC/42YD1BURRjA7x0gpliplalYYhes4...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 6738, 11593, 37443, 834, 1330, 357, 48546, 62, 11748, 11, 7297, 11, 3601, 62, 8818, 8, 198, 198, 11748, 40481, 82, 198, 11748, 308, 13344, 198, 11748, 2298, 293, 198, ...
1.408029
1,669
import os import pytest import json import time from pytapo import Tapo import mock user = os.environ.get("PYTAPO_USER") password = os.environ.get("PYTAPO_PASSWORD") invalidPassword = "{password}_invalid".format(password=password) host = os.environ.get("PYTAPO_IP") """ util functions for unit tests """ """ unit t...
[ 11748, 28686, 198, 11748, 12972, 9288, 198, 11748, 33918, 198, 11748, 640, 198, 6738, 12972, 83, 41817, 1330, 16880, 78, 198, 11748, 15290, 198, 198, 7220, 796, 28686, 13, 268, 2268, 13, 1136, 7203, 47, 56, 51, 2969, 46, 62, 29904, 49...
2.695652
138
import pandas as pd dfcsv=pd.read_csv('gruppen-zeitslots-vers3.csv') dfcsv.T.to_json('gruppen-zeitslots.json')
[ 11748, 19798, 292, 355, 279, 67, 198, 7568, 40664, 28, 30094, 13, 961, 62, 40664, 10786, 48929, 381, 268, 12, 2736, 896, 75, 1747, 12, 690, 18, 13, 40664, 11537, 198, 7568, 40664, 13, 51, 13, 1462, 62, 17752, 10786, 48929, 381, 268,...
2.156863
51
from time import time from urllib.request import Request, urlopen urls = [ "https://www.google.com/search?q=" + i for i in ["apple", "pear", "grape", "pineapple", "orange", "strawberry", "pie", "helloworld"] ] begin = time() result = [] for url in urls: request = Request(url, headers={"User-Agent": "Mozil...
[ 6738, 640, 1330, 640, 198, 6738, 2956, 297, 571, 13, 25927, 1330, 19390, 11, 19016, 9654, 198, 198, 6371, 82, 796, 685, 198, 220, 220, 220, 366, 5450, 1378, 2503, 13, 13297, 13, 785, 14, 12947, 30, 80, 2625, 1343, 1312, 198, 220, ...
2.39801
201
from unittest.mock import patch from django.contrib.auth import get_user_model from django.test import TestCase from django.urls import reverse from rest_framework import status from rest_framework.test import APIClient FACEBOOK_URL = reverse('authentication:facebook') GOOGLE_URL = reverse('authentication:google') T...
[ 6738, 555, 715, 395, 13, 76, 735, 1330, 8529, 198, 198, 6738, 42625, 14208, 13, 3642, 822, 13, 18439, 1330, 651, 62, 7220, 62, 19849, 198, 6738, 42625, 14208, 13, 9288, 1330, 6208, 20448, 198, 6738, 42625, 14208, 13, 6371, 82, 1330, ...
3.383085
201
from express.properties.non_scalar import NonScalarProperty class InchiKey(NonScalarProperty): """ Inchi key property class. """
[ 6738, 4911, 13, 48310, 13, 13159, 62, 1416, 282, 283, 1330, 8504, 3351, 282, 283, 21746, 628, 198, 4871, 554, 11072, 9218, 7, 15419, 3351, 282, 283, 21746, 2599, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 554, 11072, 1994, 3119, ...
2.86
50
import argparse import glob import sys import os import time sys.path.insert(0, os.path.abspath(os.path.join(__file__, '../', '../'))) from libs.utils import load_chars from libs.font_utils import check_font_chars, load_font if __name__ == '__main__': parser = argparse.ArgumentParser(description='Find chars not s...
[ 11748, 1822, 29572, 198, 11748, 15095, 198, 11748, 25064, 198, 11748, 28686, 198, 11748, 640, 198, 198, 17597, 13, 6978, 13, 28463, 7, 15, 11, 28686, 13, 6978, 13, 397, 2777, 776, 7, 418, 13, 6978, 13, 22179, 7, 834, 7753, 834, 11, ...
2.067299
1,159
# Import libraries import discord import re TOKEN = "XXXX" ADMIN_ROLES = [00000000000000000, 00000000000000000] # insert numerical IDs of admin roles here - bot will ignore changes made by these users BOT_ROLE_ID = 00000000000000000 # numerical ID of the role given to this bot - changes made by this role will be ignor...
[ 2, 17267, 12782, 198, 11748, 36446, 198, 11748, 302, 198, 198, 10468, 43959, 796, 366, 24376, 1, 198, 2885, 23678, 62, 49, 3535, 1546, 796, 685, 8269, 10535, 830, 11, 27551, 10535, 830, 60, 1303, 7550, 29052, 32373, 286, 13169, 9176, ...
2.832869
359
from django.contrib import admin from models import City admin.site.register(City)
[ 6738, 42625, 14208, 13, 3642, 822, 1330, 13169, 198, 6738, 4981, 1330, 2254, 198, 198, 28482, 13, 15654, 13, 30238, 7, 14941, 8, 198 ]
3.5
24
import os from dotenv import load_dotenv # Load environmental variables load_dotenv() api_key = os.environ.get("API_KEY")
[ 11748, 28686, 198, 198, 6738, 16605, 24330, 1330, 3440, 62, 26518, 24330, 198, 198, 2, 8778, 6142, 9633, 198, 2220, 62, 26518, 24330, 3419, 198, 15042, 62, 2539, 796, 28686, 13, 268, 2268, 13, 1136, 7203, 17614, 62, 20373, 4943, 198 ]
3.02439
41
""" Script goal, Predict future FRI based on current climate """ #============================================================================== __title__ = "FRI Prediction" __author__ = "Arden Burrell" __version__ = "v1.0(27.11.2019)" __email__ = "arden.burrell@gmail.com" #===========================...
[ 37811, 201, 198, 7391, 3061, 11, 220, 201, 198, 201, 198, 47, 17407, 2003, 48167, 1912, 319, 1459, 4258, 201, 198, 201, 198, 37811, 201, 198, 2, 23926, 25609, 855, 201, 198, 201, 198, 834, 7839, 834, 796, 366, 37, 7112, 46690, 1, ...
3.108696
828
r""" The transient advection-diffusion equation with a given divergence-free advection velocity. Find :math:`u` such that: .. math:: \int_{\Omega} s \pdiff{u}{t} + \int_{\Omega} s \nabla \cdot \left(\ul{v} u \right) + \int_{\Omega} D \nabla s \cdot \nabla u = 0 \;, \quad \forall s \;. View the re...
[ 81, 37811, 198, 464, 32361, 512, 303, 596, 12, 26069, 4241, 16022, 351, 257, 1813, 43366, 12, 5787, 198, 324, 303, 596, 15432, 13, 198, 198, 16742, 1058, 11018, 25, 63, 84, 63, 884, 326, 25, 198, 198, 492, 10688, 3712, 198, 220, 2...
1.905896
882
""" shows deep stats for the MPD - calculates similarity and multiplies it with the track popularity - if the track was unknown, decrease its similarity weight usage: python deeper_stats.py path-to-mpd-data/ """ #import sys import json import re import collections import os import gzip import p...
[ 37811, 198, 220, 220, 220, 2523, 2769, 9756, 329, 262, 4904, 35, 198, 220, 220, 220, 532, 43707, 26789, 290, 15082, 444, 340, 351, 262, 2610, 11533, 198, 220, 220, 220, 532, 611, 262, 2610, 373, 6439, 11, 10070, 663, 26789, 3463, 19...
2.621469
708
# Copyright 2021 Jacob Baumbach # # 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 writin...
[ 2, 15069, 33448, 12806, 8999, 2178, 620, 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, 92...
1.87822
1,708
# filefuzzer.py # # python script # # "file fuzzer" # # generates a bunch of random data using os.urandom then writes it to fuzzy.csv # this was used to generate fuzzy.csv # fuzzy.csv is used to test error handling when reading data import os with open('fuzzy.csv', 'wb') as fout: fout.write(os.urandom(1024*50)) # ...
[ 2, 2393, 69, 4715, 263, 13, 9078, 198, 2, 198, 2, 21015, 4226, 198, 2, 198, 2, 366, 7753, 26080, 263, 1, 198, 2, 198, 2, 18616, 257, 7684, 286, 4738, 1366, 1262, 28686, 13, 333, 3749, 788, 6797, 340, 284, 34669, 13, 40664, 198, ...
3.091667
120
#!/usr/bin/python3 # -*- coding: utf-8 -*- import os import argparse import json import jinja2 if __name__ == '__main__': main()
[ 2, 48443, 14629, 14, 8800, 14, 29412, 18, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 11748, 28686, 198, 11748, 1822, 29572, 198, 11748, 33918, 198, 11748, 474, 259, 6592, 17, 198, 198, 361, 11593, 3672,...
2.327586
58
import pytest from frictionless import Table, exceptions # Loader @pytest.mark.ci @pytest.mark.ci @pytest.mark.ci
[ 11748, 12972, 9288, 198, 6738, 23822, 1203, 1330, 8655, 11, 13269, 628, 198, 2, 8778, 263, 628, 198, 31, 9078, 9288, 13, 4102, 13, 979, 628, 198, 31, 9078, 9288, 13, 4102, 13, 979, 628, 198, 31, 9078, 9288, 13, 4102, 13, 979, 198 ...
2.772727
44
# Copyright 2017 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
[ 2, 15069, 2177, 383, 309, 22854, 37535, 46665, 13, 1439, 6923, 33876, 13, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 2, 345, 743, 407, 779, 428, 2393, 2845, 287, 11846, ...
3.59952
417
import logging import os from signalwire.relay.consumer import Consumer r = Receiver() r.run()
[ 11748, 18931, 198, 11748, 28686, 198, 6738, 6737, 21809, 13, 2411, 323, 13, 49827, 1330, 18110, 198, 198, 81, 796, 39106, 3419, 198, 81, 13, 5143, 3419, 198 ]
3.428571
28
from bob.errors import ParseError import fnmatch import platform # TODO: support more architectures; support musl/dietlibc # get host architecture # get host autoconf triple # set or replace vendor field in autoconf triplet manifest = { 'apiVersion' : "0.15", 'stringFunctions' : { "gen-autoconf" : ...
[ 6738, 29202, 13, 48277, 1330, 2547, 325, 12331, 198, 11748, 24714, 15699, 198, 11748, 3859, 198, 198, 2, 16926, 46, 25, 1104, 517, 45619, 26, 1104, 1928, 75, 14, 67, 1155, 8019, 66, 198, 198, 2, 651, 2583, 10959, 198, 198, 2, 651, ...
2.58125
160
from utils.layers import * from utils.convolve4d import * from vgg19.vgg19 import VGG19 from tool.log_config import * class HDDRNet(object): ''' The HDDRNet framework '''
[ 6738, 3384, 4487, 13, 75, 6962, 1330, 1635, 198, 6738, 3384, 4487, 13, 42946, 6442, 19, 67, 1330, 1635, 198, 6738, 410, 1130, 1129, 13, 85, 1130, 1129, 1330, 569, 11190, 1129, 198, 6738, 2891, 13, 6404, 62, 11250, 1330, 1635, 628, 1...
2.583333
72
from .models import Btc, Ltc, Dash, Doge # Bcy from rest_framework import viewsets from rest_framework import status from rest_framework.response import Response from .serializers import (BtcSerializer, LtcSerializer, DashSerializer, DogeSerializer, WithdrawSerializer) # BcySerializer from...
[ 6738, 764, 27530, 1330, 347, 23047, 11, 19090, 66, 11, 16189, 11, 2141, 469, 220, 1303, 347, 948, 198, 6738, 1334, 62, 30604, 1330, 5009, 1039, 198, 6738, 1334, 62, 30604, 1330, 3722, 198, 6738, 1334, 62, 30604, 13, 26209, 1330, 18261...
2.907378
637
from django import template register = template.Library() @register.filter def cut_text(value): """ returns a cut string if its length is greater than 50 chars """ return value if len(value) <= 50 else f"{value[:50]}..."
[ 6738, 42625, 14208, 1330, 11055, 198, 198, 30238, 796, 11055, 13, 23377, 3419, 198, 198, 31, 30238, 13, 24455, 198, 4299, 2005, 62, 5239, 7, 8367, 2599, 198, 220, 220, 220, 37227, 5860, 257, 2005, 4731, 611, 663, 4129, 318, 3744, 621,...
3.382353
68
import click @click.group() @click.pass_obj @remote_entry_point.command() @click.option('-n', '--name', required=True, type=str) @click.option('-u', '--url', required=True, type=str) @click.pass_obj @remote_entry_point.command() @click.option('-n', '--name', required=True, type=str) @click.pass_obj @remote_entr...
[ 11748, 3904, 628, 198, 31, 12976, 13, 8094, 3419, 198, 31, 12976, 13, 6603, 62, 26801, 628, 198, 31, 47960, 62, 13000, 62, 4122, 13, 21812, 3419, 198, 31, 12976, 13, 18076, 10786, 12, 77, 3256, 705, 438, 3672, 3256, 2672, 28, 17821,...
2.641791
134
# Copyright 2018 DataStax, 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 writin...
[ 2, 15069, 2864, 6060, 1273, 897, 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,...
3.692308
195
from my_functions import ssh_command2 from my_devices import devices_list from concurrent.futures import ProcessPoolExecutor, as_completed from datetime import datetime start_time = datetime.now() max_procs = 5 pool = ProcessPoolExecutor(max_procs) future_list = [] for device in devices_list: future = pool.submi...
[ 6738, 616, 62, 12543, 2733, 1330, 26678, 62, 21812, 17, 198, 6738, 616, 62, 42034, 1330, 4410, 62, 4868, 198, 6738, 24580, 13, 69, 315, 942, 1330, 10854, 27201, 23002, 38409, 11, 355, 62, 785, 16838, 198, 6738, 4818, 8079, 1330, 4818,...
2.949239
197
import sys,os import random sys.path.append(os.getcwd()) from Process.process import * import torch as th from torch_scatter import scatter_mean import torch.nn.functional as F import numpy as np from tools.earlystopping import EarlyStopping from torch_geometric.data import DataLoader from tqdm import tqdm from Process...
[ 11748, 25064, 11, 418, 198, 11748, 4738, 198, 17597, 13, 6978, 13, 33295, 7, 418, 13, 1136, 66, 16993, 28955, 198, 6738, 10854, 13, 14681, 1330, 1635, 198, 11748, 28034, 355, 294, 198, 6738, 28034, 62, 1416, 1436, 1330, 41058, 62, 326...
2.176996
1,678
import torch.nn as nn import torch
[ 11748, 28034, 13, 20471, 355, 299, 77, 198, 11748, 28034 ]
3.4
10
import argparse import random import itertools import os import sys import rule_classifier as paper_classifier import urllib.request import bs4 as bs import time def label_paper(paper_id = None, paper_meta = None, cased_regexes = None, feature = None): """Label one paper :param paper_id: The paper ID :param ...
[ 11748, 1822, 29572, 198, 11748, 4738, 198, 11748, 340, 861, 10141, 198, 11748, 28686, 198, 11748, 25064, 198, 11748, 3896, 62, 4871, 7483, 355, 3348, 62, 4871, 7483, 198, 11748, 2956, 297, 571, 13, 25927, 198, 11748, 275, 82, 19, 355, ...
2.358859
2,664
# -*- coding: utf-8 -*- """ Microsoft-Windows-Store GUID : 9c2a37f3-e5fd-5cae-bcd1-43dafeee1ff0 """ from construct import Int8sl, Int8ul, Int16ul, Int16sl, Int32sl, Int32ul, Int64sl, Int64ul, Bytes, Double, Float32l, Struct from etl.utils import WString, CString, SystemTime, Guid from etl.dtyp import Sid from etl.parse...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 198, 15905, 12, 11209, 12, 22658, 198, 38, 27586, 1058, 860, 66, 17, 64, 2718, 69, 18, 12, 68, 20, 16344, 12, 20, 66, 3609, 12, 65, 10210, 16, 12, 3559, 67,...
1.871545
615
# -*- coding: utf-8 -*- """Defines the app context and commands.""" import os import click from nxstart import app from nxstart.utils.strings import TITLE_TEXT, VERSION_STRING from nxstart.version import __version__ as version class Context(object): """ Context to be passed to the sub-commands. """ ...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 37811, 7469, 1127, 262, 598, 4732, 290, 9729, 526, 15931, 198, 198, 11748, 28686, 198, 198, 11748, 3904, 198, 198, 6738, 299, 87, 9688, 1330, 598, 198, 6738, 299, ...
2.59362
721
#!/usr/bin/env python import os import click from ..log import echo_info, echo_normal, get_logger, verbosity_option from ..release import get_gitlab_instance from . import bdt from .runners import ( _get_project, _get_projects_from_file, _get_projects_from_group, ) logger = get_logger(__name__) def _...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 628, 198, 11748, 28686, 198, 198, 11748, 3904, 198, 198, 6738, 11485, 6404, 1330, 9809, 62, 10951, 11, 9809, 62, 11265, 11, 651, 62, 6404, 1362, 11, 15942, 16579, 62, 18076, 198, 6738, 1148...
2.139209
1,997
from django.db import models from django.contrib.auth.models import User from django.contrib.auth import authenticate # Create your models here.
[ 6738, 42625, 14208, 13, 9945, 1330, 4981, 198, 6738, 42625, 14208, 13, 3642, 822, 13, 18439, 13, 27530, 1330, 11787, 198, 6738, 42625, 14208, 13, 3642, 822, 13, 18439, 1330, 8323, 5344, 198, 2, 13610, 534, 4981, 994, 13, 198 ]
3.625
40
import sys import os import math import argparse import json import caffe from caffe import layers as L # pseudo module using __getattr__ magic to generate protobuf messages from caffe import params as P # pseudo module using __getattr__ magic to generate protobuf messages if __name__ == "__main__": # sys.ar...
[ 11748, 25064, 198, 11748, 28686, 198, 11748, 10688, 198, 11748, 1822, 29572, 198, 11748, 33918, 198, 11748, 21121, 198, 6738, 21121, 1330, 11685, 355, 406, 220, 1303, 24543, 8265, 1262, 11593, 1136, 35226, 834, 5536, 284, 7716, 1237, 672, ...
2.164489
1,684
from django.test import TestCase from django.http import HttpRequest from django.core.exceptions import ValidationError from django.contrib.auth import get_user_model from django.contrib.auth.models import AnonymousUser from rest_framework.request import Request from django_user_interaction_log.scripts import (check_if...
[ 6738, 42625, 14208, 13, 9288, 1330, 6208, 20448, 198, 6738, 42625, 14208, 13, 4023, 1330, 367, 29281, 18453, 198, 6738, 42625, 14208, 13, 7295, 13, 1069, 11755, 1330, 3254, 24765, 12331, 198, 6738, 42625, 14208, 13, 3642, 822, 13, 18439, ...
3.47651
149
import pytest from brainscore.benchmarks.cadena2017 import AssemblyLoader from . import check_standard_format @pytest.mark.private_access
[ 11748, 12972, 9288, 198, 198, 6738, 14290, 7295, 13, 26968, 14306, 13, 66, 38047, 5539, 1330, 10006, 17401, 198, 6738, 764, 1330, 2198, 62, 20307, 62, 18982, 628, 198, 31, 9078, 9288, 13, 4102, 13, 19734, 62, 15526, 198 ]
3.615385
39
from pathlib import Path from setuptools import setup BASEDIR = Path(__file__).resolve().parent setup(name='randomness', version='0.1', description='Generates random secrets (passwords, etc).', long_description=((BASEDIR / 'README.rst').read_text()), url='https://github.com/crowsonkb/random...
[ 6738, 3108, 8019, 1330, 10644, 198, 198, 6738, 900, 37623, 10141, 1330, 9058, 628, 198, 33, 42827, 4663, 796, 10644, 7, 834, 7753, 834, 737, 411, 6442, 22446, 8000, 628, 198, 40406, 7, 3672, 11639, 25120, 1108, 3256, 198, 220, 220, 22...
2.518519
243
import atexit import sys import ctypes as ct from multiprocessing import Process, Event, Pipe, Value, Array import serial from .sensor import ReSkinBase, ReSkinSettings, ReSkinData class ReSkinProcess(Process): """ ReSkin Sensor process. Keeps datastream running in the background. Attr...
[ 11748, 379, 37023, 201, 198, 11748, 25064, 201, 198, 11748, 269, 19199, 355, 269, 83, 201, 198, 6738, 18540, 305, 919, 278, 1330, 10854, 11, 8558, 11, 36039, 11, 11052, 11, 15690, 201, 198, 201, 198, 11748, 11389, 201, 198, 201, 198, ...
2.020646
4,456
from typing import cast, TYPE_CHECKING, Optional from pyteal.types import TealType, require_type from pyteal.config import NUM_SLOTS from pyteal.errors import TealInputError, TealInternalError from pyteal.ast.expr import Expr if TYPE_CHECKING: from pyteal.compiler import CompileOptions class ScratchSlot: ""...
[ 6738, 19720, 1330, 3350, 11, 41876, 62, 50084, 2751, 11, 32233, 198, 198, 6738, 12972, 660, 282, 13, 19199, 1330, 1665, 282, 6030, 11, 2421, 62, 4906, 198, 6738, 12972, 660, 282, 13, 11250, 1330, 36871, 62, 8634, 33472, 198, 6738, 129...
2.336838
2,378
from django.contrib import admin from django.contrib.auth.admin import UserAdmin from authapp.models import KpkUser admin.site.register(KpkUser, KpkAdmin)
[ 6738, 42625, 14208, 13, 3642, 822, 1330, 13169, 198, 6738, 42625, 14208, 13, 3642, 822, 13, 18439, 13, 28482, 1330, 11787, 46787, 198, 198, 6738, 6284, 1324, 13, 27530, 1330, 509, 79, 74, 12982, 628, 198, 198, 28482, 13, 15654, 13, 30...
2.944444
54
import pymysql as py conn = py.Connect("172.21.4.120","ash","password","test") if conn: print("Successfully Connected") cursor = conn.cursor() rows = cursor.execute("SHOW TABLES") data = cursor.fetchall() for row in data: print(row[0]) conn.close()
[ 11748, 279, 4948, 893, 13976, 355, 12972, 198, 198, 37043, 796, 12972, 13, 13313, 7203, 23628, 13, 2481, 13, 19, 13, 10232, 2430, 1077, 2430, 28712, 2430, 9288, 4943, 198, 361, 48260, 25, 198, 220, 220, 220, 3601, 7203, 33244, 2759, 8...
2.659794
97
from torch import nn from torch.nn import functional as F import torch
[ 198, 6738, 28034, 1330, 299, 77, 198, 6738, 28034, 13, 20471, 1330, 10345, 355, 376, 198, 11748, 28034, 628, 198, 220, 220, 220, 220, 198 ]
3.16
25
""" This module defines the Env class that describes a data setup for experiments and runs the sampling. """ import logging from time import perf_counter as pc from datetime import datetime import numpy as np import tensorflow as tf from sklearn.model_selection import KFold import evaluation.metrics as metrics import u...
[ 37811, 770, 8265, 15738, 262, 2039, 85, 1398, 326, 8477, 257, 1366, 9058, 329, 10256, 290, 4539, 262, 19232, 13, 37227, 198, 11748, 18931, 198, 6738, 640, 1330, 23035, 62, 24588, 355, 40653, 198, 6738, 4818, 8079, 1330, 4818, 8079, 198,...
2.199359
5,613
import logging import numpy as np import torch import torch.nn as nn
[ 11748, 18931, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 28034, 198, 11748, 28034, 13, 20471, 355, 299, 77, 628 ]
3.5
20
import os # Database connection setup
[ 11748, 28686, 628, 198, 2, 24047, 4637, 9058, 198 ]
4.444444
9
from typing import List, Optional, Dict, Tuple from secrets import token_bytes from blspy import PrivateKey, AugSchemeMPL from src.types.condition_var_pair import ConditionVarPair from src.types.condition_opcodes import ConditionOpcode from src.types.program import Program from src.types.coin import Coin from src.typ...
[ 6738, 19720, 1330, 7343, 11, 32233, 11, 360, 713, 11, 309, 29291, 198, 198, 6738, 13141, 1330, 11241, 62, 33661, 198, 6738, 698, 2777, 88, 1330, 15348, 9218, 11, 2447, 27054, 1326, 44, 6489, 198, 198, 6738, 12351, 13, 19199, 13, 31448...
2.917706
401