content
stringlengths
1
1.05M
input_ids
listlengths
1
883k
ratio_char_token
float64
1
22.9
token_count
int64
1
883k
import warnings import click from ai.backend.cli.extensions import ExtendedCommandGroup from ai.backend.client import __version__ from ai.backend.client.output import get_output_handler from ai.backend.client.config import APIConfig, set_config from ai.backend.client.cli.types import CLIContext, OutputMode
[ 11748, 14601, 198, 198, 11748, 3904, 198, 198, 6738, 257, 72, 13, 1891, 437, 13, 44506, 13, 2302, 5736, 1330, 24204, 21575, 13247, 198, 6738, 257, 72, 13, 1891, 437, 13, 16366, 1330, 11593, 9641, 834, 198, 6738, 257, 72, 13, 1891, 4...
3.273684
95
""" The country module contains the processing_country class. """ from os import path import geoip2.database from cybercaptain.utils.exceptions import ValidationError from cybercaptain.processing.base import processing_base from cybercaptain.utils.jsonFileHandler import json_file_reader, json_file_writer
[ 37811, 198, 464, 1499, 8265, 4909, 262, 7587, 62, 19315, 1398, 13, 198, 37811, 198, 6738, 28686, 1330, 3108, 198, 11748, 40087, 541, 17, 13, 48806, 198, 6738, 10075, 27144, 391, 13, 26791, 13, 1069, 11755, 1330, 3254, 24765, 12331, 198,...
4.013158
76
# Generated by Django 3.0.2 on 2020-01-21 06:04 from django.db import migrations, models
[ 2, 2980, 515, 416, 37770, 513, 13, 15, 13, 17, 319, 12131, 12, 486, 12, 2481, 9130, 25, 3023, 198, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 11, 4981, 628 ]
2.84375
32
# skeleton benz = Car("Benz", 25, 100) benz.brrr(10000) benz.gas_station() benz.brrr(1000) benz.gas_station()
[ 2, 18328, 198, 198, 11722, 89, 796, 1879, 7203, 42484, 1600, 1679, 11, 1802, 8, 198, 11722, 89, 13, 1671, 21062, 7, 49388, 8, 198, 11722, 89, 13, 22649, 62, 17529, 3419, 198, 11722, 89, 13, 1671, 21062, 7, 12825, 8, 198, 11722, 89...
2.22
50
import socket import pynput from gevent import pywsgi from flask_sockets import Sockets from flask import Flask, request, render_template from geventwebsocket.handler import WebSocketHandler app = Flask(__name__) sockets = Sockets(app) mouse = pynput.mouse.Controller() def getIp(): s = socket.socket(socket....
[ 11748, 17802, 198, 11748, 279, 2047, 1996, 198, 6738, 4903, 1151, 1330, 12972, 18504, 12397, 198, 6738, 42903, 62, 82, 11603, 1330, 311, 11603, 198, 6738, 42903, 1330, 46947, 11, 2581, 11, 8543, 62, 28243, 198, 6738, 4903, 1151, 732, 14...
2.551095
274
from pathlib import Path from typing import Tuple from netCDF4 import Dataset import xarray import numpy as np from datetime import datetime, timedelta from dateutil.parser import parse def load( fn: Path, tlim: Tuple[datetime, datetime] = None, elevlim: Tuple[float, float] = None ) -> xarray.Dataset: """ ...
[ 6738, 3108, 8019, 1330, 10644, 198, 6738, 19720, 1330, 309, 29291, 198, 6738, 2010, 34, 8068, 19, 1330, 16092, 292, 316, 198, 11748, 2124, 18747, 198, 11748, 299, 32152, 355, 45941, 198, 6738, 4818, 8079, 1330, 4818, 8079, 11, 28805, 12...
2.157852
1,229
# -*- encoding: utf-8 -*- # # Copyright 2017 Red Hat, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicab...
[ 2, 532, 9, 12, 21004, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 198, 2, 15069, 220, 2177, 2297, 10983, 11, 3457, 13, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 345, 743...
3.168582
261
# This implementation as of July 19 2017 has these resource utilizations of the mongodb container: # - 2 million entries: 1.50 Gb # - 3 million entries: 2.05 Gb # The entire docker application was given 6 Gb to use, when given the default 2 Gb, # the process would frequently crash before 1 million entries were down...
[ 2, 770, 7822, 355, 286, 2901, 678, 2177, 468, 777, 8271, 7736, 4582, 286, 262, 285, 506, 375, 65, 9290, 25, 198, 2, 220, 220, 532, 362, 1510, 12784, 25, 352, 13, 1120, 402, 65, 198, 2, 220, 220, 532, 513, 1510, 12784, 25, 362, ...
2.327144
1,131
"""Module describes a :class:`DatabaseSource` for local postgres databases.""" import subprocess from galaxy.util import unicodify from planemo.io import communicate from .interface import DatabaseSource __all__ = ( "LocalPostgresDatabaseSource", )
[ 37811, 26796, 8477, 257, 1058, 4871, 25, 63, 38105, 7416, 63, 329, 1957, 1281, 34239, 20083, 526, 15931, 198, 198, 11748, 850, 14681, 198, 198, 6738, 16161, 13, 22602, 1330, 28000, 375, 1958, 198, 198, 6738, 1410, 41903, 13, 952, 1330, ...
3.625
72
#!/usr/bin/env python # Copyright 2017 British Broadcasting Corporation # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 198, 2, 15069, 2177, 3517, 32250, 10501, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 2, 345, 743, 407, 779, 428, 2393, ...
3.714953
214
from django.shortcuts import render from django.contrib.auth.decorators import login_required from .models import Post from .forms import PostForm
[ 6738, 42625, 14208, 13, 19509, 23779, 1330, 8543, 198, 6738, 42625, 14208, 13, 3642, 822, 13, 18439, 13, 12501, 273, 2024, 1330, 17594, 62, 35827, 198, 6738, 764, 27530, 1330, 2947, 198, 6738, 764, 23914, 1330, 2947, 8479, 628 ]
3.794872
39
""" Utilities - CVPRO BY: MOHAK BAJAJ CODING HEAVEN """ import math import time import logging import cv2 import numpy as np import copy def stackImages(_imgList, cols, scale): """ Stack Images together to display in a single window :param _imgList: list of images to stack :param co...
[ 37811, 201, 198, 18274, 2410, 532, 26196, 31190, 201, 198, 17513, 25, 13070, 7801, 42, 23715, 37048, 41, 201, 198, 34, 3727, 2751, 11179, 10116, 1677, 201, 198, 37811, 201, 198, 201, 198, 11748, 10688, 201, 198, 11748, 640, 201, 198, ...
2.076245
2,610
""" Library of functions to retrieve frequency information from a Gaussian 09e output file. Frequencies currently supported: (1) Harmonic Vibrational Frequencies (2) Harmonic Zero-Point Vibrational Energy """ __authors__ = "Kevin Moore, Andreas Copan" __updated__ = "2019-01-15" from ..rere import parse as repar fro...
[ 37811, 198, 23377, 286, 5499, 284, 19818, 8373, 1321, 422, 257, 12822, 31562, 7769, 68, 5072, 2393, 13, 198, 198, 37, 8897, 3976, 3058, 4855, 25, 198, 7, 16, 8, 17925, 9229, 569, 2889, 864, 22192, 3976, 198, 7, 17, 8, 17925, 9229, ...
2.240979
1,635
import time import sys from graphics import GraphApp, GraphWin, Text, Point, _root from menu import MainMenu from graphs import Graph, ShortestPaths from maps import RoadMap from cars import Car, CarShape, CarFactory from gps import GPS from info_window import InfoWindow, RoadInfoWindow from collision import GridColli...
[ 11748, 640, 198, 11748, 25064, 198, 198, 6738, 9382, 1330, 29681, 4677, 11, 29681, 16643, 11, 8255, 11, 6252, 11, 4808, 15763, 198, 6738, 6859, 1330, 8774, 23381, 198, 6738, 28770, 1330, 29681, 11, 10073, 395, 15235, 82, 198, 6738, 8739...
2.932243
856
""" 1. quadratic algorithm 2. """ ''' >>> This file creates modules that can do forward, backward pass as well as bound propagation ''' import torch import torch.nn as nn import torch.nn.functional as F from torch.nn.parameter import Parameter from abc import ABCMeta, abstractmethod import numpy as np from .linear...
[ 37811, 198, 198, 16, 13, 15094, 81, 1512, 11862, 198, 17, 13, 220, 198, 37811, 198, 198, 7061, 6, 198, 33409, 770, 2393, 8075, 13103, 326, 460, 466, 2651, 11, 19528, 1208, 355, 880, 355, 5421, 43594, 198, 7061, 6, 198, 11748, 28034,...
3.0875
160
""" main.py ---------- """ import argparse import os import runpy import sys from . import console parser = argparse.ArgumentParser( formatter_class=argparse.RawDescriptionHelpFormatter, description="Description", ) parser.add_argument( "source", nargs="?", help="""Name of the script to be run a...
[ 37811, 198, 12417, 13, 9078, 198, 35937, 628, 198, 37811, 198, 11748, 1822, 29572, 198, 11748, 28686, 198, 11748, 1057, 9078, 198, 11748, 25064, 198, 198, 6738, 764, 1330, 8624, 198, 198, 48610, 796, 1822, 29572, 13, 28100, 1713, 46677, ...
2.958904
146
#python Libraries from StringIO import StringIO from collections import namedtuple import Queue import os # Third-party Libraries try: import pexpect except ImportError as error: #print error pass # apetools Libraries from apetools.baseclass import BaseClass from apetools.commons.errors import Connection...
[ 198, 2, 29412, 46267, 198, 6738, 10903, 9399, 1330, 10903, 9399, 198, 6738, 17268, 1330, 3706, 83, 29291, 198, 11748, 4670, 518, 198, 11748, 28686, 198, 198, 2, 10467, 12, 10608, 46267, 198, 28311, 25, 198, 220, 220, 220, 1330, 613, 8...
2.782927
410
import os import logging import xml.etree.ElementTree as ET from . import Security, Ldap
[ 11748, 28686, 198, 11748, 18931, 198, 11748, 35555, 13, 316, 631, 13, 20180, 27660, 355, 12152, 198, 6738, 764, 1330, 4765, 11, 406, 67, 499, 198 ]
3.423077
26
# implementation of card game - Memory import simplegui import random # for repeatition check # helper function to initialize globals # define event handlers # cards are logically 50x100 pixels in size # create frame and add a button and labels frame = simplegui...
[ 2, 7822, 286, 2657, 983, 532, 14059, 198, 198, 11748, 2829, 48317, 198, 11748, 4738, 198, 198, 2, 329, 9585, 653, 2198, 198, 198, 2, 31904, 2163, 284, 41216, 15095, 874, 198, 220, 220, 220, 220, 198, 2, 8160, 1785, 32847, 198, 220, ...
2.845771
201
''' Created on Mar 22, 2018 @author: msanchez ''' import requests from html.parser import HTMLParser import urllib
[ 7061, 6, 198, 41972, 319, 1526, 2534, 11, 2864, 198, 198, 31, 9800, 25, 13845, 20364, 198, 7061, 6, 198, 198, 11748, 7007, 198, 6738, 27711, 13, 48610, 1330, 11532, 46677, 198, 11748, 2956, 297, 571 ]
3.222222
36
import abc import logging from typing import List, Optional from asyncio import Queue import zmq.asyncio from zmq.error import ZMQBaseError from schematics import Model from schematics.types import StringType, IntType, ListType
[ 11748, 450, 66, 198, 11748, 18931, 198, 6738, 19720, 1330, 7343, 11, 32233, 198, 6738, 30351, 952, 1330, 4670, 518, 198, 198, 11748, 1976, 76, 80, 13, 292, 13361, 952, 198, 6738, 1976, 76, 80, 13, 18224, 1330, 1168, 49215, 14881, 1233...
3.484848
66
def do_format(result): print('''a_value: {a:list} b_value: {b:comma} '''.format_map(result)) a = [{'a':'5'}, {'a':'6'}] final = SafeDict({}) formatter = MetaVarFormatter() for D in a: for key, value in D.items(): # in python 2 use D.iteritems() instead final[key] = final.get(key,MetaVarLis...
[ 628, 198, 4299, 466, 62, 18982, 7, 20274, 2599, 198, 220, 220, 220, 3601, 7, 7061, 6, 64, 62, 8367, 25, 220, 198, 198, 90, 64, 25, 4868, 92, 220, 198, 65, 62, 8367, 25, 1391, 65, 25, 785, 2611, 92, 198, 220, 220, 220, 10148, ...
2.304348
184
import theano import unittest import numpy from nose.plugins.skip import SkipTest from theano import tensor as T from theano.tensor.nnet import conv2d from theano.sandbox import mkl numpy.random.seed(123) if not mkl.mkl_available: raise SkipTest('Optional package MKL disabled') if theano.config.mode == 'FAST_COM...
[ 11748, 262, 5733, 198, 11748, 555, 715, 395, 198, 11748, 299, 32152, 198, 6738, 9686, 13, 37390, 13, 48267, 1330, 32214, 14402, 198, 6738, 262, 5733, 1330, 11192, 273, 355, 309, 198, 6738, 262, 5733, 13, 83, 22854, 13, 77, 3262, 1330,...
2.633962
265
"""Run tests against our custom views.""" from flask.ext.stormpath.models import User from .helpers import StormpathTestCase
[ 37811, 10987, 5254, 1028, 674, 2183, 5009, 526, 15931, 628, 198, 6738, 42903, 13, 2302, 13, 12135, 6978, 13, 27530, 1330, 11787, 198, 198, 6738, 764, 16794, 364, 1330, 8865, 6978, 14402, 20448, 628, 628 ]
3.742857
35
x = 9 y = 3 # Arithmetic Operators print(x+y) #addtion print(x-y) #subtraction print(x*y) #multiplication print(x/y) #division print(x%y) #modulus provides remainder after we do long divison print(x**y) #Exponentiation x = 9.191823 print("Floor divide:", x//y) #Floor divison, how many times does a nu...
[ 87, 796, 860, 201, 198, 88, 796, 513, 201, 198, 201, 198, 2, 943, 29848, 6564, 2024, 201, 198, 4798, 7, 87, 10, 88, 8, 220, 1303, 2860, 5378, 201, 198, 4798, 7, 87, 12, 88, 8, 220, 1303, 7266, 83, 7861, 201, 198, 4798, 7, 87...
2.247951
488
from django.db import models # Create your models here.
[ 6738, 42625, 14208, 13, 9945, 1330, 4981, 198, 198, 2, 13610, 534, 4981, 994, 13 ]
3.733333
15
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. import argparse import cv2 from maskrcnn_benchmark.config import cfg from predictor import COCODemo import torch import time from PIL import Image import numpy from matplotlib import pyplot if __name__ == "__main__": main()
[ 2, 15069, 357, 66, 8, 3203, 11, 3457, 13, 290, 663, 29116, 13, 1439, 6923, 33876, 13, 198, 11748, 1822, 29572, 198, 11748, 269, 85, 17, 198, 198, 6738, 9335, 6015, 20471, 62, 26968, 4102, 13, 11250, 1330, 30218, 70, 198, 6738, 41568...
3.304348
92
#coding:utf-8 from flask import request,render_template, redirect,session from . import app from dbutil import DB from collections import OrderedDict import json import datetime # from dell_racadm import check_client_ip,check_dell_racadm_ip,dell_racadm_achieve_ip_info,achieve_dell_cacadm_comman,check_dell_racadm_info...
[ 2, 66, 7656, 25, 40477, 12, 23, 198, 6738, 42903, 1330, 2581, 11, 13287, 62, 28243, 11, 18941, 11, 29891, 198, 6738, 764, 1330, 598, 198, 6738, 288, 4360, 346, 1330, 20137, 198, 6738, 17268, 1330, 14230, 1068, 35, 713, 198, 11748, 3...
2.418712
652
import os from configparser import RawConfigParser import constants import utils
[ 11748, 28686, 198, 6738, 4566, 48610, 1330, 16089, 16934, 46677, 198, 11748, 38491, 198, 11748, 3384, 4487, 628 ]
4.555556
18
from libs.primelib import Prime import cProfile import time # Test variable's primeindex = 100000 primecheck = 1000000000000 if __name__ == '__main__': main()
[ 6738, 9195, 82, 13, 19795, 417, 571, 1330, 5537, 198, 11748, 269, 37046, 198, 11748, 640, 198, 198, 2, 6208, 7885, 338, 198, 35505, 9630, 796, 1802, 830, 198, 35505, 9122, 796, 1802, 8269, 405, 628, 198, 198, 361, 11593, 3672, 834, ...
3.036364
55
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # ROS import rospy from std_msgs.msg import String # Robonomics communication from robonomics_msgs.msg import Demand, Result from ipfs_common.msg import Multihash from ipfs_common.ipfs_rosbag import IpfsRosBag if __name__ == "__main__": WorkerNode().spin()
[ 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, 2, 48263, 198, 11748, 686, 2777, 88, 198, 6738, 14367, 62, 907, 14542, 13, 19662, 1330, 10903, 198, 198, 2, ...
2.689655
116
#!/usr/bin/env python # encoding: utf-8 """ copyright (c) 2016-2017 Earth Advantage. All rights reserved. ..codeauthor::Paul Munday <paul@paulmunday.net> Unit tests for dubplate. """ # Imports from Standard Library import datetime import json import sys import six import unittest # Imports from Third Party Modules fr...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 21004, 25, 3384, 69, 12, 23, 198, 37811, 198, 22163, 4766, 357, 66, 8, 1584, 12, 5539, 3668, 45318, 13, 1439, 2489, 10395, 13, 198, 492, 8189, 9800, 3712, 12041, 33324, 323, 1279,...
2.874372
199
import subprocess import cli
[ 11748, 850, 14681, 198, 198, 11748, 537, 72, 628, 628, 198 ]
3.090909
11
# DISTRIBUTION STATEMENT A. Approved for public release: distribution unlimited. # # This material is based upon work supported by the Assistant Secretary of Defense for Research and # Engineering under Air Force Contract No. FA8721-05-C-0002 and/or FA8702-15-D-0001. Any opinions, # findings, conclusions or recommendat...
[ 2, 34957, 9865, 35354, 15486, 12529, 317, 13, 20010, 1079, 329, 1171, 2650, 25, 6082, 15822, 13, 198, 2, 198, 2, 770, 2587, 318, 1912, 2402, 670, 4855, 416, 262, 15286, 4986, 286, 5947, 329, 4992, 290, 198, 2, 14044, 739, 3701, 5221...
2.680494
1,133
import discord from config import *
[ 11748, 36446, 198, 6738, 4566, 1330, 1635 ]
5
7
import textwrap import click
[ 11748, 2420, 37150, 198, 198, 11748, 3904, 628 ]
3.875
8
# board.py # abstract class for zorg and edge import time from ocan import *
[ 2, 3096, 13, 9078, 198, 2, 12531, 1398, 329, 1976, 2398, 290, 5743, 198, 198, 11748, 640, 198, 198, 6738, 267, 5171, 1330, 1635, 628 ]
3.2
25
import rob import sys # 1404927386.fasta analyzed_sequences.txt annotations.txt # faf=None try: faf=sys.argv[1] except IndexError: sys.stderr.write("Please provide a fasta file\n") sys.exit(0) fa = rob.readFasta(faf) analyzed=[] with open('analyzed_sequences.txt', 'r') as asf: for line in asf...
[ 198, 198, 11748, 3857, 198, 11748, 25064, 198, 198, 2, 12713, 2920, 1983, 21734, 13, 7217, 64, 220, 15475, 62, 3107, 3007, 13, 14116, 220, 37647, 13, 14116, 198, 2, 198, 198, 69, 1878, 28, 14202, 198, 198, 28311, 25, 198, 220, 220, ...
2.191344
439
import os import tqdm import torch import numpy as np from parser import parse_args from scene.data import DataSet from torchtext.data import Iterator from scene.data.loaders import BatchWrapper from scene.models import BiLSTM if __name__=='__main__': main()
[ 11748, 28686, 198, 11748, 256, 80, 36020, 220, 198, 198, 11748, 28034, 198, 11748, 299, 32152, 355, 45941, 198, 6738, 30751, 1330, 21136, 62, 22046, 198, 198, 6738, 3715, 13, 7890, 1330, 6060, 7248, 198, 6738, 28034, 5239, 13, 7890, 133...
3.139535
86
# -*- coding: utf-8 -*- """ Unit tests for the RandomTester class. @author: m.utting@uq.edu.au """ import unittest import random from pathlib import Path import sklearn.utils.estimator_checks from typing import Tuple, List, Set, Dict, Optional, Any import agilkia THIS_DIR = Path(__file__).parent WSDL_EG = "http://...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 198, 26453, 5254, 329, 262, 14534, 51, 7834, 1398, 13, 198, 198, 31, 9800, 25, 285, 13, 315, 889, 31, 84, 80, 13, 15532, 13, 559, 198, 37811, 198, 198, 11748,...
2.423868
243
# extract the Salamunnicar data from the XLS file import pandas as pd import pkg_resources import logging import os def extract_salamuniccar(filename, tables=None, output_prefix=None, output_filename=None): """Extract the lat,long, diameter from the Salamuniccar ca...
[ 2, 7925, 262, 38170, 403, 6988, 283, 1366, 422, 262, 1395, 6561, 2393, 198, 11748, 19798, 292, 355, 279, 67, 198, 11748, 279, 10025, 62, 37540, 198, 11748, 18931, 198, 11748, 28686, 198, 198, 4299, 7925, 62, 21680, 321, 46903, 7718, 7...
2.155649
1,195
from ARLO.environment.environment import *
[ 6738, 5923, 21982, 13, 38986, 13, 38986, 1330, 1635 ]
4.666667
9
from typing import Optional from dagster import solid, Int, Failure, Nothing, configured, String, DagsterLogManager from dagster.core.execution.context.compute import AbstractComputeExecutionContext from dagster_utils.typing import DagsterConfigDict from data_repo_client import JobModel, ApiException, RepositoryApi f...
[ 6738, 19720, 1330, 32233, 198, 198, 6738, 48924, 1706, 1330, 4735, 11, 2558, 11, 25743, 11, 10528, 11, 17839, 11, 10903, 11, 32167, 1706, 11187, 13511, 198, 6738, 48924, 1706, 13, 7295, 13, 18558, 1009, 13, 22866, 13, 5589, 1133, 1330, ...
2.62982
389
# # Author: Igor Ivanov # 2019 # import time import os from termcolor import colored from datetime import datetime import colorama colorama.init() """ Small print tool for implementing chat in the terminal """
[ 2, 198, 2, 6434, 25, 46157, 21798, 709, 198, 2, 13130, 198, 2, 198, 11748, 640, 198, 11748, 28686, 198, 6738, 3381, 8043, 1330, 16396, 198, 6738, 4818, 8079, 1330, 4818, 8079, 198, 11748, 3124, 1689, 198, 198, 8043, 1689, 13, 15003, ...
3.59322
59
""" This class is used by test_pageobjects """ from cumulusci.robotframework.pageobjects import ListingPage, pageobject # The point of this class is to test out using an alias
[ 37811, 198, 1212, 1398, 318, 973, 416, 1332, 62, 7700, 48205, 198, 37811, 198, 6738, 10973, 23515, 979, 13, 305, 13645, 30604, 13, 7700, 48205, 1330, 7343, 278, 9876, 11, 2443, 15252, 628, 198, 2, 383, 966, 286, 428, 1398, 318, 284, ...
3.708333
48
logreg_params = dict(multi_class='ovr', class_weight=None, random_state=43, max_iter=300, n_jobs=-1, penalty='l2', C=0.5) rnn_params = dict( # df="../coleridgeinitiative-show-us-the-...
[ 6404, 2301, 62, 37266, 796, 8633, 7, 41684, 62, 4871, 11639, 709, 81, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1398, 62, 6551, 28, 14202, 11, 198, 220, 220, 2...
1.825059
423
from typing import NoReturn, Union import ziopy.services.console as console import ziopy.services.system as system from ziopy.environments import ConsoleSystemEnvironment from ziopy.services.console import Console, LiveConsole from ziopy.zio import ZIO, ZIOMonad, monadic, unsafe_run, Environment p = program().provi...
[ 6738, 19720, 1330, 1400, 13615, 11, 4479, 198, 198, 11748, 1976, 72, 11081, 13, 30416, 13, 41947, 355, 8624, 198, 11748, 1976, 72, 11081, 13, 30416, 13, 10057, 355, 1080, 198, 6738, 1976, 72, 11081, 13, 268, 12103, 1330, 24371, 11964, ...
3.049327
223
import os import struct import unittest import numpy as np # # based on https://gist.github.com/akesling/5358964 # Which contains comment. # > Loosely inspired by http://abel.ee.ucla.edu/cvxopt/_downloads/mnist.py # > which is GPL licensed. # # # Unit Tests. # # # Execute the UnitTests. # if __name__ == ...
[ 11748, 28686, 198, 11748, 2878, 198, 11748, 555, 715, 395, 198, 198, 11748, 299, 32152, 355, 45941, 628, 198, 2, 198, 2, 1912, 319, 3740, 1378, 70, 396, 13, 12567, 13, 785, 14, 1124, 1359, 14, 44465, 4531, 2414, 198, 2, 220, 220, ...
2.606742
178
from .gotypes import Player, Point __all__ = ['HASH_CODE', 'EMPTY_BOARD'] HASH_CODE = { (Point(row=1, col=1), Player.black): 5769035980899136028, (Point(row=1, col=1), Player.white): 4195353792250980257, (Point(row=1, col=2), Player.black): 2939556709560817954, (Point(row=1, col=2), Player.white): 770...
[ 6738, 764, 70, 13567, 1330, 7853, 11, 6252, 198, 198, 834, 439, 834, 796, 37250, 39, 11211, 62, 34, 16820, 3256, 705, 39494, 9936, 62, 8202, 9795, 20520, 198, 198, 39, 11211, 62, 34, 16820, 796, 1391, 198, 220, 220, 220, 357, 12727,...
2.219071
20,523
import h5py import numpy as np import matplotlib.pyplot as plt import matplotlib.animation as animation # Load in data: filename = input('Enter data filename: ') data_file = h5py.File('../../data/{}.hdf5'.format(filename), 'r') psi_plus = data_file['wavefunction/psi_plus'] psi_0 = data_file['wavefunction/psi_0'] psi_...
[ 11748, 289, 20, 9078, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 198, 11748, 2603, 29487, 8019, 13, 11227, 341, 355, 11034, 198, 198, 2, 8778, 287, 1366, 25, 198, 34345, 796, 5128...
2.137066
1,554
import attr import yaml from boltun.engine import Engine
[ 11748, 708, 81, 198, 11748, 331, 43695, 198, 198, 6738, 18100, 403, 13, 18392, 1330, 7117, 628 ]
3.470588
17
from abstract.apps import AbstractConfig from .loader import CVK2015Loader from .elastic_models import ElasticCVK2015Model, cvk_2015_idx
[ 6738, 12531, 13, 18211, 1330, 27741, 16934, 198, 6738, 764, 29356, 1330, 26196, 42, 4626, 17401, 198, 6738, 764, 417, 3477, 62, 27530, 1330, 48567, 33538, 42, 4626, 17633, 11, 269, 85, 74, 62, 4626, 62, 312, 87, 198 ]
3.512821
39
# -*- coding: UTF-8 -*- """ PIL libpip install PIL """ from PIL import Image,ImageFont,ImageDraw,ImageFilter import os import random import time import json if __name__ == '__main__': main()
[ 2, 532, 9, 12, 19617, 25, 41002, 12, 23, 532, 9, 12, 198, 37811, 198, 47, 4146, 9195, 79, 541, 2721, 350, 4146, 198, 37811, 198, 6738, 350, 4146, 1330, 7412, 11, 5159, 23252, 11, 5159, 25302, 11, 5159, 22417, 198, 11748, 28686, 19...
2.753425
73
import os import time import csv import pickle import numpy as np import torch import torch.nn as nn import torch.nn.functional as F from torch.utils.data.dataloader import DataLoader from torch.nn.utils import clip_grad_norm_ as clip_grad_norm from sklearn.metrics import accuracy_score import matplotlib.pyplot as plt...
[ 11748, 28686, 198, 11748, 640, 198, 11748, 269, 21370, 198, 11748, 2298, 293, 198, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 28034, 198, 11748, 28034, 13, 20471, 355, 299, 77, 198, 11748, 28034, 13, 20471, 13, 45124, 355, 376, 198...
2.114155
1,533
import psycopg2 # import sqlite3 DB_NAME = "ekasuicm" DB_USER = "ekasuicm" DB_PASSWORD = "5xL04dTyJuqjmPNeDPWsHjZsCnMmqpbM" DB_HOST = "ruby.db.elephantsql.com" connection = psycopg2.connect(dbname=DB_NAME, user=DB_USER, password=DB_PASSWORD, host=DB_HOST) print("CONNECTION", ...
[ 11748, 17331, 22163, 70, 17, 201, 198, 2, 1330, 44161, 578, 18, 201, 198, 201, 198, 11012, 62, 20608, 796, 366, 988, 27345, 291, 76, 1, 201, 198, 11012, 62, 29904, 796, 366, 988, 27345, 291, 76, 1, 201, 198, 11012, 62, 47924, 54, ...
2.077778
270
#!/usr/bin/env python # -*- coding: utf-8 -*- import logging logging.basicConfig(level=logging.DEBUG, format='%(asctime)s - %(name)s - %(levelname)s - %(message)s') logger = logging.getLogger(__name__) from telegram import Updater from commands import history, cat, cd, get, ls, pwd, save from sett...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 11748, 18931, 198, 198, 6404, 2667, 13, 35487, 16934, 7, 5715, 28, 6404, 2667, 13, 30531, 11, 198, 220, 220, 220...
2.588865
467
from abc import ABC
[ 6738, 450, 66, 1330, 9738, 198, 220, 220, 220, 220 ]
2.4
10
# Generated by Django 3.2.8 on 2021-11-10 05:17 from django.db import migrations, models
[ 2, 2980, 515, 416, 37770, 513, 13, 17, 13, 23, 319, 33448, 12, 1157, 12, 940, 8870, 25, 1558, 198, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 11, 4981, 628 ]
2.84375
32
import os from config import config
[ 11748, 28686, 198, 6738, 4566, 1330, 4566, 628 ]
4.625
8
from click.exceptions import FileError from scipy.optimize import curve_fit import matplotlib.pyplot as plt from . import util import numpy as np import click import sys import csv import os def pt1(t, K, T): """ time-domain solution/formula for a first-order/pt1 system Args: t (float): time K (float): ...
[ 6738, 3904, 13, 1069, 11755, 1330, 9220, 12331, 198, 6738, 629, 541, 88, 13, 40085, 1096, 1330, 12133, 62, 11147, 198, 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 198, 6738, 764, 1330, 7736, 198, 11748, 299, 32152, 355, 4...
2.235974
1,212
'''What is premium?''' from discord.ext import commands from packages.utils import Embed, ImproperType
[ 7061, 6, 2061, 318, 8683, 30, 7061, 6, 198, 6738, 36446, 13, 2302, 1330, 9729, 198, 6738, 10392, 13, 26791, 1330, 13302, 276, 11, 12205, 525, 6030 ]
3.777778
27
from cmd import Cmd import sys from select import poll, POLLIN import string from subprocess import call from wireless_emulator import * from wireless_emulator.clean import cleanup
[ 6738, 23991, 1330, 327, 9132, 198, 11748, 25064, 198, 6738, 2922, 1330, 3278, 11, 19922, 3069, 1268, 198, 11748, 4731, 198, 6738, 850, 14681, 1330, 869, 198, 198, 6738, 12521, 62, 368, 8927, 1330, 1635, 198, 6738, 12521, 62, 368, 8927, ...
3.956522
46
from django.db import models # Create your models here. #helth_department = ((0,"daily task"),(1,"work jobs"),(2,"house needs"))
[ 6738, 42625, 14208, 13, 9945, 1330, 4981, 198, 198, 2, 13610, 534, 4981, 994, 13, 198, 198, 2, 2978, 400, 62, 10378, 1823, 796, 14808, 15, 553, 29468, 4876, 12340, 7, 16, 553, 1818, 3946, 12340, 7, 17, 553, 4803, 2476, 48774, 198 ]
3.046512
43
# Generated by Django 3.0.3 on 2021-12-22 00:19 from django.db import migrations, models
[ 2, 2980, 515, 416, 37770, 513, 13, 15, 13, 18, 319, 33448, 12, 1065, 12, 1828, 3571, 25, 1129, 198, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 11, 4981, 628 ]
2.84375
32
import math s = 0.0 k = 1 n = int(input()) for i in range(n+1): k*=max(1,i) s += 1/k print(s)
[ 11748, 10688, 198, 82, 796, 657, 13, 15, 198, 74, 796, 352, 198, 77, 796, 493, 7, 15414, 28955, 198, 1640, 1312, 287, 2837, 7, 77, 10, 16, 2599, 198, 220, 220, 220, 479, 9, 28, 9806, 7, 16, 11, 72, 8, 198, 220, 220, 220, 264...
1.803571
56
from unittest import TestCase from ..Model import Model from ..Simulation import Simulation from os.path import dirname, join import numpy as np import math
[ 6738, 555, 715, 395, 1330, 6208, 20448, 198, 6738, 11485, 17633, 1330, 9104, 198, 6738, 11485, 8890, 1741, 1330, 41798, 198, 6738, 28686, 13, 6978, 1330, 26672, 3672, 11, 4654, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 10688, 628, ...
3.878049
41
""" mxn 0 dp[i][j]=max(dp[i-1][j],dp[i][j-1])+arr[i][j] """ s = Solution() print(s.GetGiftMaxValue([[1, 10, 3, 8], [12, 2, 9, 6], [5, 7, 4, 11], [3, 7, 16, 5]])) print(s.GetGiftMaxValue(None)) print(s.GetGiftMaxValue([[1, 4, 2]])) print(s.GetGiftMaxValue([[1], [4], [2]]))
[ 37811, 628, 220, 220, 220, 220, 285, 87, 77, 657, 220, 220, 198, 220, 220, 220, 220, 220, 220, 220, 220, 198, 220, 288, 79, 58, 72, 7131, 73, 22241, 9806, 7, 26059, 58, 72, 12, 16, 7131, 73, 4357, 26059, 58, 72, 7131, 73, 12, ...
1.777108
166
#!/usr/bin/env python # -*- coding: utf-8 -*- # @File : doubanRequest.py # @Author: G # @Date : 2018/8/5 import requests url = 'https://movie.douban.com' doubanText = requests.get(url).text print(doubanText)
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 2488, 8979, 220, 1058, 3385, 272, 18453, 13, 9078, 198, 2, 2488, 13838, 25, 402, 198, 2, 2488, 10430, 220, 1058, ...
2.294737
95
import json import unittest from flask_caching import Cache from app import app, db from apps.shop.models import ( ShopItems, ShopCategories, ShopItemsCategoriesMapping, ShopItemLogos, ShopItemsURLMapping ) from apps.users.models import Users, UsersAccessTokens, UsersAccessLevels, Use...
[ 11748, 33918, 201, 198, 11748, 555, 715, 395, 201, 198, 201, 198, 6738, 42903, 62, 66, 8103, 1330, 34088, 201, 198, 201, 198, 6738, 598, 1330, 598, 11, 20613, 201, 198, 6738, 6725, 13, 24643, 13, 27530, 1330, 357, 201, 198, 220, 220...
2.867133
143
# The MIT License (MIT) # Copyright (c) 2017 Massachusetts Institute of Technology # # Author: Cody Rude # This software has been created in projects supported by the US National # Science Foundation and NASA (PI: Pankratius) # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this sof...
[ 2, 383, 17168, 13789, 357, 36393, 8, 198, 2, 15069, 357, 66, 8, 2177, 10140, 5136, 286, 8987, 198, 2, 198, 2, 6434, 25, 27035, 371, 2507, 198, 2, 770, 3788, 468, 587, 2727, 287, 4493, 4855, 416, 262, 1294, 2351, 198, 2, 5800, 56...
2.493065
1,442
import json from urllib.parse import urlencode from flask import Response from werkzeug.http import HTTP_STATUS_CODES
[ 11748, 33918, 198, 198, 6738, 2956, 297, 571, 13, 29572, 1330, 2956, 11925, 8189, 198, 198, 6738, 42903, 1330, 18261, 198, 6738, 266, 9587, 2736, 1018, 13, 4023, 1330, 14626, 62, 35744, 2937, 62, 34, 3727, 1546, 628, 628 ]
3.153846
39
import argparse import time import torch import torch.nn as nn import torch.nn.functional as F import torch.optim as optim import numpy as np from dgl.nn.pytorch import GraphConv import dgl.multiprocessing as mp from torch.nn.parallel import DistributedDataParallel import os import sys import samgraph.torch as sam impo...
[ 11748, 1822, 29572, 198, 11748, 640, 198, 11748, 28034, 198, 11748, 28034, 13, 20471, 355, 299, 77, 198, 11748, 28034, 13, 20471, 13, 45124, 355, 376, 198, 11748, 28034, 13, 40085, 355, 6436, 198, 11748, 299, 32152, 355, 45941, 198, 673...
2.580583
515
import serial # Using SERIAL module to connect to comm ports via ARDUINO Arduino_Serial = serial.Serial('/dev/ttyACM0',9600) # Connecting via ttyACM0 port (LINUX) print (Arduino_Serial.readline()) # Status print ("Please enter --------> 1 <------- to TURN...
[ 11748, 11389, 220, 220, 220, 220, 220, 220, 220, 220, 1303, 8554, 18871, 12576, 8265, 284, 2018, 284, 725, 14090, 2884, 5923, 35, 52, 46016, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, ...
2.018156
716
import os import pathlib import numpy as np import matplotlib matplotlib.use('Agg') import matplotlib.pyplot as plt import matplotlib.cm as cm import pandas as pd from collections import OrderedDict
[ 11748, 28686, 198, 11748, 3108, 8019, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 2603, 29487, 8019, 198, 6759, 29487, 8019, 13, 1904, 10786, 46384, 11537, 198, 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 198, 11748, 2603...
3.1875
64
# AFM font ZapfDingbats (path: /usr/share/fonts/afms/adobe/pzdr.afm). # Derived from Ghostscript distribution. # Go to www.cs.wisc.edu/~ghost to get the Ghostcript source code. import dir dir.afm["ZapfDingbats"] = (500, 500, 500, 500, 500, 500, 500, 500, 500, 500, 500, 500, 500, 500, 500, 500, 500, 500, 500, 500, 500, ...
[ 2, 12341, 44, 10369, 36079, 69, 35, 278, 50199, 357, 6978, 25, 1220, 14629, 14, 20077, 14, 10331, 82, 14, 1878, 907, 14, 36752, 14, 79, 89, 7109, 13, 1878, 76, 737, 198, 2, 9626, 1572, 422, 9897, 12048, 6082, 13, 198, 2, 1514, 2...
1.954188
764
import bs import random import math def _dropPowerups(self, standardPoints=False, forceFirst=None): """ Generic powerup drop """ # if its been a minute since our last wave finished emerging, stop # giving out land-mine powerups. (prevents players from waiting # around for them on ...
[ 11748, 275, 82, 198, 11748, 4738, 198, 11748, 10688, 628, 198, 220, 220, 220, 825, 4808, 14781, 13434, 4739, 7, 944, 11, 3210, 40710, 28, 25101, 11, 2700, 5962, 28, 14202, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 37227, 42044, ...
1.997143
700
#!/usr/bin/python3 from plano import * ENV["BACKEND_SERVICE_HOST"] = "localhost" ENV["BACKEND_SERVICE_PORT"] = backend_port = str(get_random_port()) ENV["FRONTEND_SERVICE_PORT"] = frontend_port = str(get_random_port()) backend_url = f"http://localhost:{backend_port}/api/hello" frontend_url = f"http://localhost:{fron...
[ 2, 48443, 14629, 14, 8800, 14, 29412, 18, 198, 198, 6738, 1410, 78, 1330, 1635, 198, 198, 1677, 53, 14692, 31098, 10619, 62, 35009, 27389, 62, 39, 10892, 8973, 796, 366, 36750, 1, 198, 1677, 53, 14692, 31098, 10619, 62, 35009, 27389, ...
2.327869
305
"""Python C API alternative to `fractions` module.""" __version__ = '1.4.0' try: from _cfractions import Fraction except ImportError: import numbers as _numbers from fractions import Fraction as _Fraction from typing import (Any as _Any, Dict as _Dict, O...
[ 37811, 37906, 327, 7824, 5559, 284, 4600, 69, 37810, 63, 8265, 526, 15931, 198, 198, 834, 9641, 834, 796, 705, 16, 13, 19, 13, 15, 6, 198, 198, 28311, 25, 198, 220, 220, 220, 422, 4808, 12993, 37810, 1330, 376, 7861, 198, 16341, 1...
1.716201
4,475
import numpy as np import pandas as pd from sklearn.feature_extraction.text import TfidfVectorizer from sklearn.preprocessing import LabelBinarizer from sklearn.linear_model.logistic import LogisticRegression from sklearn.model_selection import train_test_split, cross_val_score from sklearn.metrics import classificat...
[ 11748, 299, 32152, 355, 45941, 220, 198, 11748, 19798, 292, 355, 279, 67, 220, 198, 6738, 1341, 35720, 13, 30053, 62, 2302, 7861, 13, 5239, 1330, 309, 69, 312, 69, 38469, 7509, 198, 6738, 1341, 35720, 13, 3866, 36948, 1330, 36052, 33,...
2.747059
510
import numpy as np from lane_pixel_finder import find_lane_pixels ''' Calculates the curvature of polynomial functions in meters. ''' # Define conversions in x and y from pixels space to meters ym_per_pix = 30/720 # meters per pixel in y dimension xm_per_pix = 3.7/700 # meters per pixel in x dimension
[ 11748, 299, 32152, 355, 45941, 198, 6738, 11193, 62, 32515, 62, 22805, 1330, 1064, 62, 33533, 62, 79, 14810, 198, 198, 7061, 6, 198, 9771, 3129, 689, 262, 46171, 1300, 286, 745, 6213, 49070, 5499, 287, 10700, 13, 198, 7061, 6, 198, ...
3.223404
94
#----------------------------------------------------------------------------- # Name: Catching Exceptions (try-except.py) # Purpose: To provide example of a simple input loop using try-catch # # Author: Mr. Brooks # Created: 01-Oct-2020 # Updated: 01-March-2021 #--------------------------------...
[ 2, 10097, 32501, 198, 2, 6530, 25, 220, 220, 220, 220, 220, 220, 220, 327, 19775, 1475, 11755, 357, 28311, 12, 16341, 13, 9078, 8, 198, 2, 32039, 25, 220, 220, 220, 220, 1675, 2148, 1672, 286, 257, 2829, 5128, 9052, 1262, 1949, 12...
3.05618
267
# coding: utf-8 r"""Tabby rear suspension assembly""" from car_assemblies import make_rear_suspension_assembly from osvcad.view import view_assembly, view_assembly_graph assembly = make_rear_suspension_assembly() if __name__ == "__main__": view_assembly(assembly) view_assembly_graph(assembly)
[ 2, 19617, 25, 3384, 69, 12, 23, 198, 198, 81, 37811, 33349, 1525, 8286, 11461, 10474, 37811, 198, 198, 6738, 1097, 62, 34455, 13508, 1330, 787, 62, 260, 283, 62, 40409, 3004, 62, 41873, 198, 6738, 267, 21370, 66, 324, 13, 1177, 1330...
3.029703
101
############################ # This example shows how to run pygosolnp with Truncated Normal distribution using Numpy and Scipy ############################ from typing import List, Optional # Numpy random has the PCG64 generator which according to some research is better than Mersenne Twister from numpy.random impor...
[ 14468, 7804, 4242, 198, 2, 770, 1672, 2523, 703, 284, 1057, 12972, 70, 418, 10875, 79, 351, 833, 19524, 515, 14435, 6082, 1262, 399, 32152, 290, 1446, 541, 88, 198, 14468, 7804, 4242, 198, 198, 6738, 19720, 1330, 7343, 11, 32233, 198,...
2.694259
749
from .utils import GenomeFile, split_locus_tag def rename_custom_annotations(file: str, out: str, new_locus_tag_prefix: str, old_locus_tag_prefix: str = None, validate: bool = False): """ Change the locus tags in a custom annotations file :param file: input file :param out: output file :param ne...
[ 6738, 764, 26791, 1330, 5215, 462, 8979, 11, 6626, 62, 75, 10901, 62, 12985, 628, 198, 198, 4299, 36265, 62, 23144, 62, 34574, 602, 7, 7753, 25, 965, 11, 503, 25, 965, 11, 649, 62, 75, 10901, 62, 12985, 62, 40290, 25, 965, 11, 1...
2.49827
289
import argparse, joblib, csv, sys, os import numpy as np import matplotlib.pyplot as plt import matplotlib.patches as mpatches import pandas as pd from mpl_toolkits.mplot3d import Axes3D from yellowbrick.text import TSNEVisualizer from sklearn.cluster import KMeans from sklearn.svm import SVC, LinearSVC from sklearn...
[ 11748, 1822, 29572, 11, 1693, 8019, 11, 269, 21370, 11, 25064, 11, 28686, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 198, 11748, 2603, 29487, 8019, 13, 8071, 2052, 355, 285, 8071, ...
2.30451
3,481
from yaml.composer import Composer as YamlComposer, ComposerError
[ 6738, 331, 43695, 13, 785, 1930, 263, 1330, 29936, 263, 355, 14063, 75, 5377, 1930, 263, 11, 29936, 263, 12331, 628 ]
3.190476
21
import platform from setuptools import Extension import numpy from Cython.Build import cythonize compile_args = [] link_args = [] pf = platform.system() if pf == "Windows": # for MSVC compile_args = ["/std:c++14", "/DNOMINMAX", "/O2", "/openmp"] elif pf == "Darwin": # for clang compile_args = ["-std=...
[ 11748, 3859, 198, 6738, 900, 37623, 10141, 1330, 27995, 198, 198, 11748, 299, 32152, 198, 6738, 327, 7535, 13, 15580, 1330, 3075, 400, 261, 1096, 198, 198, 5589, 576, 62, 22046, 796, 17635, 198, 8726, 62, 22046, 796, 17635, 198, 198, ...
2.295858
507
import logging from django.views import View from .models import Users, Tokens from libs.response_extra import response_failure, response_success, user_does_not_exists, view_exception from libs.tool_decorator import cvb_params from .decorator import cvb_token_check log = logging.getLogger(__name__) """ : { "use...
[ 11748, 18931, 198, 6738, 42625, 14208, 13, 33571, 1330, 3582, 198, 198, 6738, 764, 27530, 1330, 18987, 11, 47365, 198, 6738, 9195, 82, 13, 26209, 62, 26086, 1330, 2882, 62, 32165, 495, 11, 2882, 62, 13138, 11, 2836, 62, 22437, 62, 166...
2.533019
212
from compas_plotters.artists import Artist from matplotlib.patches import Circle as CirclePatch # from matplotlib.transforms import ScaledTranslation __all__ = ['CircleArtist']
[ 6738, 552, 292, 62, 29487, 1010, 13, 433, 1023, 1330, 18902, 198, 6738, 2603, 29487, 8019, 13, 8071, 2052, 1330, 16291, 355, 16291, 33952, 198, 2, 422, 2603, 29487, 8019, 13, 7645, 23914, 1330, 1446, 3021, 48313, 198, 198, 834, 439, 8...
3.653061
49
# -*- coding: utf-8 -*- """ Created on Tue Sep 18 21:06:14 2018 Taken from Data Structures and Algorithms using Python """
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 198, 41972, 319, 30030, 8621, 1248, 2310, 25, 3312, 25, 1415, 2864, 198, 198, 51, 1685, 422, 6060, 32112, 942, 290, 978, 7727, 907, 1262, 11361, 198, 37811 ]
2.860465
43
# Copyright 2016 F5 Networks Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writi...
[ 2, 15069, 1584, 376, 20, 27862, 3457, 13, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 2, 345, 743, 407, 779, 428, 2393, 2845, 287, 11846, 351, 262, 13789, 13, 198, 2, ...
2.405881
3,979
#!/usr/env python import pprocess # parallel computing module import os # os utilitites import time # keep track of time import astropy.io.fits as fits # FITS manipulating library import matplotlib.pyplot as plt import numpy as np # numeric python for array manipulation import myscitools # my personal tools ...
[ 2, 48443, 14629, 14, 24330, 21015, 198, 198, 11748, 279, 14681, 220, 1303, 10730, 14492, 8265, 198, 11748, 28686, 220, 1303, 28686, 3384, 6392, 2737, 198, 11748, 640, 220, 1303, 1394, 2610, 286, 640, 198, 198, 11748, 6468, 28338, 13, 95...
2.702959
845
import requests import urllib3 from urllib3 import HTTPConnectionPool if __name__ == '__main__': print(HttpsClient.get('http://127.0.0.1:5000/test'))
[ 11748, 7007, 198, 11748, 2956, 297, 571, 18, 198, 6738, 2956, 297, 571, 18, 1330, 14626, 32048, 27201, 628, 198, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 198, 220, 220, 220, 3601, 7, 39, 926, 862, 11792, 13, 11...
2.616667
60
import os import sys from dataclasses import field from typing import List, Optional, Set, cast from unittest import skipUnless from aio_rom import Model from aio_rom.attributes import RedisModelSet if sys.version_info >= (3, 8): from unittest.async_case import IsolatedAsyncioTestCase as TestCase ASYNCTEST =...
[ 11748, 28686, 198, 11748, 25064, 198, 6738, 4818, 330, 28958, 1330, 2214, 198, 6738, 19720, 1330, 7343, 11, 32233, 11, 5345, 11, 3350, 198, 6738, 555, 715, 395, 1330, 14267, 28042, 198, 198, 6738, 257, 952, 62, 398, 1330, 9104, 198, 6...
3.051948
154
# Copyright (c) 2019-present, Facebook, Inc. # All rights reserved. # # This source code is licensed under the license found in the # LICENSE file in the root directory of this source tree. # #TOFILL if __name__ == '__main__': param = [ ('ydYdV',), ('4446057',), ('0111',), ('keEj',), ('642861...
[ 2, 15069, 357, 66, 8, 13130, 12, 25579, 11, 3203, 11, 3457, 13, 198, 2, 1439, 2489, 10395, 13, 198, 2, 198, 2, 770, 2723, 2438, 318, 11971, 739, 262, 5964, 1043, 287, 262, 198, 2, 38559, 24290, 2393, 287, 262, 6808, 8619, 286, 4...
2.270463
281
from .utils import return_response, api_get_request
[ 6738, 764, 26791, 1330, 1441, 62, 26209, 11, 40391, 62, 1136, 62, 25927, 628 ]
3.785714
14
from django.apps import AppConfig
[ 6738, 42625, 14208, 13, 18211, 1330, 2034, 16934, 628 ]
3.888889
9
# Space: O(1) # Time: O(logn)
[ 198, 2, 4687, 25, 440, 7, 16, 8, 198, 2, 3862, 25, 440, 7, 75, 2360, 8, 628, 628 ]
1.789474
19
import time import numpy as np from typing import Dict, List, Tuple from nxs_libs.interface.workload_manager import ( NxsBaseWorkloadManagerPolicy, ) from nxs_types.frontend import FrontendModelPipelineWorkloadReport from nxs_types.message import ( NxsMsgPinWorkload, NxsMsgType, NxsMsgReportInputWorkloa...
[ 11748, 640, 198, 11748, 299, 32152, 355, 45941, 198, 6738, 19720, 1330, 360, 713, 11, 7343, 11, 309, 29291, 198, 6738, 299, 34223, 62, 8019, 82, 13, 39994, 13, 1818, 2220, 62, 37153, 1330, 357, 198, 220, 220, 220, 399, 34223, 14881, ...
2.826389
144
# -*- coding: utf-8 -*- import os import uuid import platform import warnings from pathlib import Path from collections import defaultdict from dataclasses import replace import numpy as np import pandas as pd import matplotlib import matplotlib.pyplot as plt from convergence import Convergence from snl_d3d_cec_veri...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 11748, 28686, 198, 11748, 334, 27112, 198, 11748, 3859, 198, 11748, 14601, 198, 6738, 3108, 8019, 1330, 10644, 198, 6738, 17268, 1330, 4277, 11600, 198, 6738, 4818, 3...
1.757483
1,303