content
stringlengths
1
1.04M
input_ids
listlengths
1
774k
ratio_char_token
float64
0.38
22.9
token_count
int64
1
774k
# For GAN
[ 2, 1114, 402, 1565, 198 ]
2
5
"""sqlaclhemy models for tracker and class""" import random import pandas as pd import numpy as np import pdfkit from flask import url_for, make_response, render_template, request from thelper import APP, DB, admin_views from thelper import models @APP.route("/") @APP.route("/bingo") def get_bingo_card(): """ge...
[ 37811, 25410, 37779, 36598, 4981, 329, 30013, 290, 1398, 37811, 198, 11748, 4738, 198, 11748, 19798, 292, 355, 279, 67, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 37124, 15813, 198, 6738, 42903, 1330, 19016, 62, 1640, 11, 787, 62, ...
2.675115
434
#!/bin/python3 import sys import os import Markov if __name__ == "__main__": if (len(sys.argv) < 2 or len(sys.argv) > 3): print("usage: {} sourcefile.txt [existingbrain.json]".format( sys.argv[0])) sys.exit(-1) if (not os.path.exists(sys.argv[1])): print("Can't find sourc...
[ 2, 48443, 8800, 14, 29412, 18, 198, 198, 11748, 25064, 198, 11748, 28686, 198, 11748, 2940, 709, 628, 198, 361, 11593, 3672, 834, 6624, 366, 834, 12417, 834, 1298, 198, 220, 220, 220, 611, 357, 11925, 7, 17597, 13, 853, 85, 8, 1279,...
2.140449
356
import jwt from django.conf import settings from rest_framework import serializers from backend.users.models import ClientUser
[ 11748, 474, 46569, 198, 6738, 42625, 14208, 13, 10414, 1330, 6460, 198, 6738, 1334, 62, 30604, 1330, 11389, 11341, 198, 6738, 30203, 13, 18417, 13, 27530, 1330, 20985, 12982, 628 ]
4.266667
30
import os import csv import joblib protocol_names = [ 'QUIC', 'DNS', 'ARP', 'TCP', 'UDP', 'SSDP', 'IGMPv2', 'SSL', 'TLSv1.2', 'DB-LSP-DISC', 'MDNS', 'TLSv1', 'BROWSER', 'ICMP', 'HTTP', 'HTTP/XML' ]
[ 11748, 28686, 198, 11748, 269, 21370, 198, 11748, 1693, 8019, 198, 198, 11235, 4668, 62, 14933, 796, 685, 198, 220, 220, 220, 705, 10917, 2149, 3256, 705, 35, 8035, 3256, 705, 36035, 3256, 705, 4825, 47, 3256, 705, 52, 6322, 3256, 705...
1.911504
113
#!python import os import sys site_packages_folder_name = 'site-packages' site_package_dir = [c for c in sys.path if site_packages_folder_name in c[-len(site_packages_folder_name):]] if site_package_dir: site_package_dir = site_package_dir[0] {{ cookiecutter.python_libname }}_pth_file = os.path.join(si...
[ 2, 0, 29412, 201, 198, 201, 198, 11748, 28686, 201, 198, 11748, 25064, 201, 198, 201, 198, 15654, 62, 43789, 62, 43551, 62, 3672, 796, 705, 15654, 12, 43789, 6, 201, 198, 15654, 62, 26495, 62, 15908, 796, 685, 66, 329, 269, 287, 2...
2.465228
417
from abc import ABC, abstractmethod from ..frames import Frame_ABC, KeepAliveFrame from .abstract_connection import AbstractConnection import rx.operators as op import threading
[ 6738, 450, 66, 1330, 9738, 11, 12531, 24396, 198, 6738, 11485, 37805, 1330, 25184, 62, 24694, 11, 9175, 2348, 425, 19778, 198, 6738, 764, 397, 8709, 62, 38659, 1330, 27741, 32048, 198, 11748, 374, 87, 13, 3575, 2024, 355, 1034, 198, 1...
3.913043
46
import numpy as np import pandas as pd import os import re import functools import itertools import json import traceback from collections import deque, defaultdict from Tournament_Iterator import Tournament_Iterator from parse_results_rows import parse_results_rows from get_outstanding_students import get_outstanding...
[ 11748, 299, 32152, 355, 45941, 198, 11748, 19798, 292, 355, 279, 67, 198, 11748, 28686, 198, 11748, 302, 198, 11748, 1257, 310, 10141, 198, 11748, 340, 861, 10141, 198, 11748, 33918, 198, 11748, 12854, 1891, 198, 6738, 17268, 1330, 390, ...
2.554731
539
# Copyright (c) 2021, NVIDIA CORPORATION. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to...
[ 2, 15069, 357, 66, 8, 33448, 11, 15127, 23929, 44680, 6234, 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...
3.607004
257
#!/usr/bin python3 import numpy as np import time from typing import Tuple from DGSQP.types import VehicleState from DGSQP.solvers.abstract_solver import AbstractSolver from DGSQP.solvers.solver_types import PIDParams class PID(): ''' Base class for PID controller Meant to be packaged for use in actual...
[ 2, 48443, 14629, 14, 8800, 21015, 18, 198, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 640, 198, 198, 6738, 19720, 1330, 309, 29291, 198, 198, 6738, 360, 14313, 48, 47, 13, 19199, 1330, 21501, 9012, 198, 198, 6738, 360, 14313, 48,...
3.048257
373
import unittest import json import yaml from Pinger import Pinger, Entities, GeneArt, Validator # Test file which can be successfully valideted by the API. with open('./examples/seqinf_geneart.json') as json_file: data = json.load(json_file) example_list = [] # Create a list of 'SequenceInformation' objects where...
[ 11748, 555, 715, 395, 198, 11748, 33918, 198, 11748, 331, 43695, 198, 6738, 350, 3889, 1330, 350, 3889, 11, 7232, 871, 11, 13005, 8001, 11, 48951, 1352, 198, 198, 2, 6208, 2393, 543, 460, 307, 7675, 4938, 316, 276, 416, 262, 7824, 1...
2.753623
276
from django.db import models from ccnsc.constant import CATEGORIES, PROVINCES # Create your models here.
[ 6738, 42625, 14208, 13, 9945, 1330, 4981, 198, 198, 6738, 269, 31522, 1416, 13, 9979, 415, 1330, 327, 6158, 38, 1581, 11015, 11, 36592, 30158, 1546, 198, 2, 13610, 534, 4981, 994, 13, 628 ]
3.147059
34
import argparse parser = argparse.ArgumentParser(description="control voa and take megadata") parser.add_argument("--power", default=5, type=float, help="On voltage of VOA") parser.add_argument("--delay", default=10, type=float, help="Delay between starting megadaq and turning on voa (in ms)") parser.add_argument(...
[ 628, 198, 198, 11748, 1822, 29572, 198, 48610, 796, 1822, 29572, 13, 28100, 1713, 46677, 7, 11213, 2625, 13716, 7608, 64, 290, 1011, 17243, 14706, 4943, 198, 198, 48610, 13, 2860, 62, 49140, 7203, 438, 6477, 1600, 4277, 28, 20, 11, 20...
2.368799
1,532
import numpy as np import torch from medpy import metric from scipy.ndimage import zoom import torch.nn as nn import SimpleITK as sitk
[ 11748, 299, 32152, 355, 45941, 198, 11748, 28034, 198, 6738, 1117, 9078, 1330, 18663, 198, 6738, 629, 541, 88, 13, 358, 9060, 1330, 19792, 198, 11748, 28034, 13, 20471, 355, 299, 77, 198, 11748, 17427, 2043, 42, 355, 1650, 74, 628, 62...
3.285714
42
r"""Train GB1 variational autoencoder (VAE) model. The model encodes information about the input `x` into a latent variable `z` (through `mu` and `logvar`) so that the decoder network can generate the reconstructed output `x'` (such that `x \approx x'`) [1]. The latent variable `z` allows us to generate samples from ...
[ 81, 37811, 44077, 13124, 16, 5553, 864, 1960, 6571, 66, 12342, 357, 11731, 36, 8, 2746, 13, 198, 198, 464, 2746, 2207, 4147, 1321, 546, 262, 5128, 4600, 87, 63, 656, 257, 41270, 7885, 198, 63, 89, 63, 357, 9579, 4600, 30300, 63, 2...
3.041616
1,658
# defining "gross_domestic_product_per_capita" and "life_expectancy" lists gross_domestic_product_per_capita = [ 974.5803384, 5937.029525999998, 6223.367465, 4797.231267, 12779.37964, 34435.367439999995, 36126.4927, 29796.04834, 1391.253792, 33692.60508, 1441.284873, 3822.137084, 7446.298803, 12569.85177, 9065.8008...
[ 2, 16215, 366, 47181, 62, 3438, 4699, 62, 11167, 62, 525, 62, 11128, 5350, 1, 290, 366, 6042, 62, 1069, 806, 3883, 1, 8341, 198, 47181, 62, 3438, 4699, 62, 11167, 62, 525, 62, 11128, 5350, 796, 685, 198, 220, 220, 220, 860, 4524, ...
2.185494
3,240
from django.db import models from django.contrib.auth.models import AbstractBaseUser, PermissionsMixin,BaseUserManager # Create your models here. class UserProfileManager(BaseUserManager): """Manager For user Profiles""" def create_user(self,email,name,password=None): """Create a NEw SUer Profile""" ...
[ 6738, 42625, 14208, 13, 9945, 1330, 4981, 198, 6738, 42625, 14208, 13, 3642, 822, 13, 18439, 13, 27530, 1330, 27741, 14881, 12982, 11, 2448, 8481, 35608, 259, 11, 14881, 12982, 13511, 198, 198, 2, 13610, 534, 4981, 994, 13, 198, 198, ...
2.595674
601
# Exports your ham and spam folders to a standard SpamBayes test directory. import sys, os, shutil from manager import GetManager NUM_BUCKETS = 10 DEFAULT_DIRECTORY = "..\\testtools\\Data" import re mime_header_re = re.compile(r""" ^ content- (type | transfer-encoding) : [^\n]* \n ([ \t] [^\n]* \n)* # suck ...
[ 2, 1475, 3742, 534, 8891, 290, 18084, 24512, 284, 257, 3210, 1338, 321, 15262, 274, 1332, 8619, 13, 198, 198, 11748, 25064, 11, 28686, 11, 4423, 346, 198, 6738, 4706, 1330, 3497, 13511, 198, 198, 41359, 62, 33, 16696, 32716, 796, 838,...
3.030837
454
import numpy as np # linear algebra import pandas as pd # data processing, CSV file I/O (e.g. pd.read_csv) import requests import json import os # Import dataset with text ids. df = pd.read_csv("../input/dialect-datasetcsv/dialect_dataset.csv") # create a new column to store feched text in df['tweets'] = np.nan # chan...
[ 11748, 299, 32152, 355, 45941, 1303, 14174, 37139, 198, 11748, 19798, 292, 355, 279, 67, 1303, 1366, 7587, 11, 44189, 2393, 314, 14, 46, 357, 68, 13, 70, 13, 279, 67, 13, 961, 62, 40664, 8, 198, 11748, 7007, 198, 11748, 33918, 198, ...
2.821632
527
from nltk.corpus import wordnet as wn import nltk import numpy as np import pm4py from pm4py.objects.log.log import EventLog from nlp_label_quality.analysis import matrix_eval from typing import Dict, List, Tuple, Union, Any from nlp_label_quality.analysis.attribute_value import Attribute, AttributeValue import tim...
[ 6738, 299, 2528, 74, 13, 10215, 79, 385, 1330, 1573, 3262, 355, 266, 77, 198, 11748, 299, 2528, 74, 198, 11748, 299, 32152, 355, 45941, 198, 198, 11748, 9114, 19, 9078, 198, 6738, 9114, 19, 9078, 13, 48205, 13, 6404, 13, 6404, 1330,...
2.117036
6,545
############################################################################################################################## # This program simulates a DVS sensor. The input images are specified as a directory in the program # Author: Ashish Rao M # email: ashish.rao.m@gmail.com ######################################...
[ 29113, 29113, 29113, 14468, 7804, 4242, 2235, 198, 2, 770, 1430, 985, 15968, 257, 360, 20304, 12694, 13, 383, 5128, 4263, 389, 7368, 355, 257, 8619, 287, 262, 1430, 198, 2, 6434, 25, 7844, 680, 48395, 337, 198, 2, 3053, 25, 12530, 6...
2.133067
1,503
from django.template.loaders.filesystem import Loader as FilesystemLoader from .mixins import TemplateMinifierMixin
[ 6738, 42625, 14208, 13, 28243, 13, 2220, 364, 13, 16624, 6781, 1330, 8778, 263, 355, 13283, 6781, 17401, 198, 6738, 764, 19816, 1040, 1330, 37350, 9452, 7483, 35608, 259, 628 ]
3.9
30
#!/usr/bin/env python3
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 628 ]
2.4
10
from rest_framework import status from rest_framework.response import Response from rest_framework.viewsets import ( GenericViewSet, mixins ) from .models import FileAudio from .serializers import FileAudioSerializer from .tasks import async_cut_file class FileViewSet(mixins.CreateModelMixin, ...
[ 6738, 1334, 62, 30604, 1330, 3722, 198, 6738, 1334, 62, 30604, 13, 26209, 1330, 18261, 198, 6738, 1334, 62, 30604, 13, 1177, 28709, 1330, 357, 198, 220, 220, 220, 42044, 7680, 7248, 11, 198, 220, 220, 220, 5022, 1040, 198, 8, 198, 6...
2.619247
239
import os from livestyled.schemas.ticket_integration import TicketIntegrationSchema FIXTURES_DIR = os.path.join(os.path.dirname(__file__), 'fixtures') TEST_API_DOMAIN = 'test.livestyled.com'
[ 11748, 28686, 198, 198, 6738, 17717, 9673, 992, 13, 1416, 4411, 292, 13, 43350, 62, 18908, 1358, 1330, 24014, 34500, 1358, 27054, 2611, 628, 198, 47084, 51, 29514, 62, 34720, 796, 28686, 13, 6978, 13, 22179, 7, 418, 13, 6978, 13, 1590...
2.746479
71
# Import libraries from dash import Dash, dash_table, dcc, Input, Output, State import dash_bootstrap_components as dbc import pandas as pd import plotly.express as px # Import data into Pandas dataframe df = px.data.gapminder() # Filter data with a list of countries we're interested in exploring country_list = ['Ca...
[ 2, 17267, 12782, 198, 6738, 14470, 1330, 16189, 11, 14470, 62, 11487, 11, 288, 535, 11, 23412, 11, 25235, 11, 1812, 198, 11748, 14470, 62, 18769, 26418, 62, 5589, 3906, 355, 288, 15630, 198, 11748, 19798, 292, 355, 279, 67, 198, 11748...
2.630872
596
from unittest import TestCase from ..client import NLUClient TEST_MODEL_ID = ['5566', '7788', '1024'] TEST_MODEL_NAME = ['random', 'name', 'here']
[ 6738, 555, 715, 395, 1330, 6208, 20448, 198, 198, 6738, 11485, 16366, 1330, 22879, 52, 11792, 628, 198, 51, 6465, 62, 33365, 3698, 62, 2389, 796, 37250, 2816, 2791, 3256, 705, 3324, 3459, 3256, 705, 35500, 20520, 198, 51, 6465, 62, 33...
2.684211
57
import numpy as np import meshio from gdist import compute_gdist as geo_dist from matplotlib import pyplot as plt from mpl_toolkits.mplot3d import Axes3D import open3d as o3d from scipy import sparse from scipy.stats import uniform #o3d.geometry.TriangleMesh.compute_vertex_normals # write mesh to obj # normalize mes...
[ 11748, 299, 32152, 355, 45941, 198, 11748, 19609, 952, 198, 6738, 308, 17080, 1330, 24061, 62, 70, 17080, 355, 40087, 62, 17080, 198, 6738, 2603, 29487, 8019, 1330, 12972, 29487, 355, 458, 83, 198, 6738, 285, 489, 62, 25981, 74, 896, ...
2.630824
558
""" test for individual iterators """ from pycgp.graph_iterator import iterate_active_nodes
[ 37811, 1332, 329, 1981, 11629, 2024, 37227, 198, 198, 6738, 12972, 66, 31197, 13, 34960, 62, 48727, 1330, 11629, 378, 62, 5275, 62, 77, 4147, 220, 628 ]
3.518519
27
import tensorflow as tf
[ 11748, 11192, 273, 11125, 355, 48700, 198 ]
3.428571
7
""" ------------------------------------------------------------------------- AIOpener - client command line client for aiopener-server operations - allows login, start/list projects - submission of games for solving - check job status created: 2017/06/05 in PyCharm (c) 2017 Sven - ducandu GmbH --------...
[ 37811, 198, 16529, 45537, 198, 317, 9399, 79, 877, 532, 220, 198, 5456, 198, 220, 198, 3141, 1627, 5456, 329, 257, 14922, 877, 12, 15388, 4560, 198, 532, 3578, 17594, 11, 923, 14, 4868, 4493, 198, 532, 14498, 286, 1830, 329, 18120, ...
3.657289
391
#!/usr/bin/env python3 -u # Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. """ Run inference for pre-processed data with a trained model. """ import ast import logging import math import os ...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 532, 84, 198, 2, 15069, 357, 66, 8, 3203, 11, 3457, 13, 290, 663, 29116, 13, 198, 2, 198, 2, 770, 2723, 2438, 318, 11971, 739, 262, 17168, 5964, 1043, 287, 262, 198, 2, 38559, 242...
3.242647
544
import os, docx2txt, PyPDF2 filepath = "A:/ECE9013A_Fall2019.pdf" text = get_doc_text(filepath) print(text)
[ 11748, 28686, 11, 2205, 87, 17, 14116, 11, 9485, 20456, 17, 201, 198, 201, 198, 201, 198, 201, 198, 7753, 6978, 796, 366, 32, 14079, 2943, 36, 24, 30273, 32, 62, 24750, 23344, 13, 12315, 1, 201, 198, 5239, 796, 651, 62, 15390, 62,...
2.070175
57
import unittest if __name__ == '__main__': unittest.main()
[ 11748, 555, 715, 395, 628, 628, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 198, 220, 220, 220, 555, 715, 395, 13, 12417, 3419, 198 ]
2.392857
28
import pandas as pd from sklearn.linear_model import LinearRegression import numpy as np from sklearn.metrics import mean_squared_error from sklearn import preprocessing from sklearn.model_selection import train_test_split import sklearn from pathlib import Path import matplotlib.pyplot as plt from sklearn.preprocessin...
[ 11748, 19798, 292, 355, 279, 67, 198, 6738, 1341, 35720, 13, 29127, 62, 19849, 1330, 44800, 8081, 2234, 198, 11748, 299, 32152, 355, 45941, 198, 6738, 1341, 35720, 13, 4164, 10466, 1330, 1612, 62, 16485, 1144, 62, 18224, 198, 6738, 1341...
2.566301
2,006
""" Test Factory to make fake objects for testing """ import factory from datetime import datetime from factory.fuzzy import FuzzyChoice from service.models import WishList, Item class ItemFactory(factory.Factory): """ Creates fake Addresses """ id = factory.Sequence(lambda n: n) # account_id = ??? nam...
[ 37811, 198, 14402, 19239, 284, 787, 8390, 5563, 329, 4856, 198, 37811, 198, 11748, 8860, 198, 6738, 4818, 8079, 1330, 4818, 8079, 198, 6738, 8860, 13, 69, 4715, 88, 1330, 376, 4715, 88, 46770, 198, 6738, 2139, 13, 27530, 1330, 23447, ...
3.005051
198
#!/usr/bin/env python3.7 from daemon import GitUpDaemon import os # The repository information is stored in this file. if __name__ == "__main__": start_daemon()
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 13, 22, 198, 6738, 33386, 1330, 15151, 4933, 26531, 7966, 198, 11748, 28686, 198, 198, 2, 383, 16099, 1321, 318, 8574, 287, 428, 2393, 13, 198, 220, 220, 220, 198, 361, 11593, 3672, 8...
2.898305
59
""" An example to download OpenNeuro dataset and stream it as BIDS-I. This example uses OpenNeuro Dataset ds003030_sub01 """ from projects.OpenNeuroSample.OpenNeuroProto import OpenNeuroOverview from projects.OpenNeuroSample.openNeuroUpdate import OutputUpdate if __name__ == "__main__": main()
[ 37811, 198, 2025, 1672, 284, 4321, 4946, 8199, 1434, 27039, 290, 4269, 340, 355, 347, 14255, 12, 40, 13, 198, 1212, 1672, 3544, 4946, 8199, 1434, 16092, 292, 316, 288, 82, 405, 1270, 1270, 62, 7266, 486, 198, 37811, 198, 198, 6738, ...
3.225806
93
#!/usr/bin/env python3 """Project 0x03. Probability""" class Binomial: """Class that represents an Binomial distribution""" e = 2.7182818285 pi = 3.1415926536 def __init__(self, data=None, n=1, p=0.5): """Constructor of Binomial Parameters: data (list): list of the data to ...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 198, 37811, 16775, 657, 87, 3070, 13, 30873, 1799, 37811, 628, 198, 4871, 20828, 49070, 25, 198, 220, 220, 220, 37227, 9487, 326, 6870, 281, 20828, 49070, 6082, 37811, 628, 220, 22...
2.086483
1,376
import pycritic if __name__ == "__main__": main()
[ 11748, 12972, 22213, 291, 628, 198, 361, 11593, 3672, 834, 6624, 366, 834, 12417, 834, 1298, 198, 220, 220, 220, 1388, 3419, 198 ]
2.434783
23
""" Default configuration and configuration related helpers. """ import copy import os import importlib.util from yozuch.view import view PACKAGE_DIR = os.path.dirname(__file__)
[ 37811, 198, 19463, 8398, 290, 8398, 3519, 49385, 13, 198, 37811, 198, 198, 11748, 4866, 198, 11748, 28686, 198, 11748, 1330, 8019, 13, 22602, 198, 6738, 331, 8590, 794, 13, 1177, 1330, 1570, 628, 198, 47, 8120, 11879, 62, 34720, 796, ...
3.388889
54
# SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to # this file be licensed under the Apache-2.0 license or a # compatible open source license. import logging from ci_workflow.ci_check_lists import CiCheckLists from ci_workflow.ci_manifest import CiManifest from ci_work...
[ 2, 30628, 55, 12, 34156, 12, 33234, 7483, 25, 24843, 12, 17, 13, 15, 198, 2, 198, 2, 383, 4946, 18243, 25767, 669, 2421, 9284, 925, 284, 198, 2, 428, 2393, 307, 11971, 739, 262, 24843, 12, 17, 13, 15, 5964, 393, 257, 198, 2, 1...
3.629921
127
import matplotlib.pyplot as plt from matplotlib import * from numpy import * from matplotlib.animation import * name = "Line"
[ 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 198, 6738, 2603, 29487, 8019, 1330, 1635, 198, 6738, 299, 32152, 1330, 1635, 198, 6738, 2603, 29487, 8019, 13, 11227, 341, 1330, 1635, 628, 198, 3672, 796, 366, 13949, 1, 198 ]
3.121951
41
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. import uuid from collections import Counter, OrderedDict from itertools import product from werkzeug import urls import random from odoo import api, fields, models, _ from odoo.exceptions import UserError from odoo.osv...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 2142, 286, 10529, 2238, 13, 4091, 38559, 24290, 2393, 329, 1336, 6634, 290, 15665, 3307, 13, 198, 198, 11748, 334, 27112, 198, 198, 6738, 17268, 1330, 15034, 11, 1423...
2.471044
10,723
import pandas as pd import re import config as config # 네이버 리뷰 전처리 # 카카오 리뷰 전처리 # 네이버와 카카오 리뷰 concat # review table # reviewer table
[ 11748, 19798, 292, 355, 279, 67, 198, 11748, 302, 198, 11748, 4566, 355, 4566, 628, 198, 220, 220, 220, 1303, 31619, 226, 97, 35975, 112, 167, 110, 226, 31619, 99, 105, 167, 115, 108, 23821, 254, 226, 168, 110, 246, 167, 99, 105, ...
1.280576
139
""":mod:`gitconfig_parser.metadata` --- Project metadata Information describing the project. """ # The package name, which is also the "UNIX name" for the project. package = 'gitconfig_parser' project = "gitconfig parser" project_no_spaces = project.replace(' ', '') version = '0.1' description = 'Parse a .gitconfig f...
[ 15931, 1298, 4666, 25, 63, 18300, 11250, 62, 48610, 13, 38993, 63, 11420, 4935, 20150, 198, 198, 21918, 12059, 262, 1628, 13, 198, 37811, 198, 198, 2, 383, 5301, 1438, 11, 543, 318, 635, 262, 366, 4944, 10426, 1438, 1, 329, 262, 162...
3.09816
163
import numpy as np import bisect from ..common import exec_gromacs def pofn(systeminfo, neiblist, fname="neighbortype_distribution.dat"): ''' Creates datafile < fname > with columns: < time > < residue > < resname > < N comp 1 > < N comp 2 > ... < N comp i > ''' components = systeminfo.mo...
[ 11748, 299, 32152, 355, 45941, 198, 11748, 47457, 478, 198, 6738, 11485, 11321, 1330, 2452, 62, 70, 398, 16436, 628, 198, 4299, 745, 22184, 7, 10057, 10951, 11, 497, 571, 4868, 11, 277, 3672, 2625, 710, 394, 65, 419, 2981, 62, 17080, ...
1.725748
2,742
import argparse import importlib.util import os import yaml from datetime import datetime from descriptors import cachedproperty from argcmdr import RootCommand, Command, main, cmdmethod from sqlalchemy.engine.url import URL from triage.component.architect.feature_generators import FeatureGenerator from triage.compo...
[ 11748, 1822, 29572, 198, 11748, 1330, 8019, 13, 22602, 198, 11748, 28686, 198, 11748, 331, 43695, 628, 198, 6738, 4818, 8079, 1330, 4818, 8079, 198, 198, 6738, 12145, 669, 1330, 39986, 26745, 198, 6738, 1822, 11215, 7109, 1330, 20410, 215...
2.988691
1,238
import argparse import os import csv import random import logging from tqdm import tqdm, trange import numpy as np import torch import torch.nn as nn from torch.utils.data import (DataLoader, RandomSampler, SequentialSampler, TensorDataset) from pytorch_pretrained_bert import (OpenAIGPTDoubleHeadsModel, OpenA...
[ 11748, 1822, 29572, 198, 11748, 28686, 198, 11748, 269, 21370, 198, 11748, 4738, 198, 11748, 18931, 198, 6738, 256, 80, 36020, 1330, 256, 80, 36020, 11, 491, 858, 198, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 28034, 198, 11748, 2...
2.801673
3,706
import os, json, shutil # coco_annotation_json_path = "/home/centos/datasets/ai_challenger_2018/ai_challenger_keypoint_train_20170909/keypoint_train_annotations_20170909.json" # image_source_dir_path = "/home/centos/datasets/ai_challenger_2018/ai_challenger_keypoint_train_20170909/keypoint_train_images_201...
[ 11748, 28686, 11, 33918, 11, 4423, 346, 198, 198, 2, 8954, 78, 62, 1236, 14221, 62, 17752, 62, 6978, 796, 220, 220, 220, 220, 12813, 11195, 14, 1087, 418, 14, 19608, 292, 1039, 14, 1872, 62, 36747, 6540, 62, 7908, 14, 1872, 62, 36...
2.559041
4,463
""" events.py Defines a simple event handler system similar to that used in C#. Events allow multicast delegates and arbitrary message passing. They use weak references so they don't keep their handlers alive if they are otherwise out of scope. """ import weakref import maya.utils from functools import partial, wrap...
[ 37811, 198, 31534, 13, 9078, 198, 198, 7469, 1127, 257, 2829, 1785, 21360, 1080, 2092, 284, 326, 973, 287, 327, 2, 13, 220, 18715, 1249, 198, 16680, 291, 459, 15265, 290, 14977, 3275, 6427, 13, 1119, 779, 4939, 10288, 523, 198, 9930, ...
2.495479
2,654
import pytest from abridger.extraction_model import Relation from abridger.schema import SqliteSchema from test.unit.extractor.base import TestExtractorBase
[ 11748, 12972, 9288, 198, 198, 6738, 450, 6058, 1362, 13, 2302, 7861, 62, 19849, 1330, 4718, 341, 198, 6738, 450, 6058, 1362, 13, 15952, 2611, 1330, 311, 13976, 578, 27054, 2611, 198, 6738, 1332, 13, 20850, 13, 2302, 40450, 13, 8692, 1...
3.382979
47
from transbank.error.transbank_error import TransbankError
[ 6738, 1007, 17796, 13, 18224, 13, 7645, 17796, 62, 18224, 1330, 3602, 17796, 12331, 628 ]
4
15
import json import sys import os.path as path from flask import render_template, jsonify, request from app import app base_directory = path.dirname(path.dirname(path.abspath(__file__))) sys.path.append(path.join(base_directory, 'engine')) import engine import metrics optimisation_functions = {'Maximise': max, 'Minim...
[ 11748, 33918, 198, 11748, 25064, 198, 11748, 28686, 13, 6978, 355, 3108, 198, 198, 6738, 42903, 1330, 8543, 62, 28243, 11, 33918, 1958, 11, 2581, 198, 6738, 598, 1330, 598, 198, 198, 8692, 62, 34945, 796, 3108, 13, 15908, 3672, 7, 697...
2.512346
972
# -*- coding: utf-8 -* import pandas as pd import pygraphviz import numpy as np import pygemmes as pgm import networkx as nx import matplotlib.pyplot as plt from graph_tools import Graph import graph_tools as gt import pygraphviz as pgv A = pgv.AGraph(directed=True,) model = 'GK' hub = pgm.Hub(model, verb=False) R = ...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 198, 198, 11748, 19798, 292, 355, 279, 67, 198, 11748, 12972, 34960, 85, 528, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 12972, 24090, 6880, 355, 23241, 76, 198, 11748, 3127, ...
2.143946
1,181
#!/usr/bin/env python from heat_cfntools.cfntools import cfn_helper import json import sys if __name__ == '__main__': sys.exit(main(sys.argv))
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 6738, 4894, 62, 12993, 429, 10141, 13, 12993, 429, 10141, 1330, 269, 22184, 62, 2978, 525, 198, 11748, 33918, 198, 11748, 25064, 628, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, ...
2.525424
59
from flask import request from sqlalchemy.engine.url import make_url from .cli import logger_cli from .models import RequestLog, ResponseLog from .api import RequestLogAPI, ResponseLogAPI, LogAPI
[ 6738, 42903, 1330, 2581, 198, 6738, 44161, 282, 26599, 13, 18392, 13, 6371, 1330, 787, 62, 6371, 198, 198, 6738, 764, 44506, 1330, 49706, 62, 44506, 198, 6738, 764, 27530, 1330, 19390, 11187, 11, 18261, 11187, 198, 6738, 764, 15042, 133...
3.807692
52
# Copyright 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. # SPDX-License-Identifier: Apache-2.0 """Tests the network throughput of Firecracker uVMs.""" import json import logging import time import concurrent.futures import pytest from conftest import _test_images_s3_bucket from framework.artifacts im...
[ 2, 15069, 12131, 6186, 13, 785, 11, 3457, 13, 393, 663, 29116, 13, 1439, 6923, 33876, 13, 198, 2, 30628, 55, 12, 34156, 12, 33234, 7483, 25, 24843, 12, 17, 13, 15, 198, 37811, 51, 3558, 262, 3127, 41997, 286, 3764, 6098, 10735, 33...
1.963592
8,652
""" Functions for setting up starting heads """ import shutil from mfsetup.fileio import save_array, setup_external_filepaths from mfsetup.mf5to6 import get_variable_name, get_variable_package_name from mfsetup.sourcedata import ( ArraySourceData, MFArrayData, MFBinaryArraySourceData, get_source_data_f...
[ 37811, 198, 24629, 2733, 329, 4634, 510, 3599, 6665, 198, 37811, 198, 11748, 4423, 346, 198, 198, 6738, 285, 69, 40406, 13, 7753, 952, 1330, 3613, 62, 18747, 11, 9058, 62, 22615, 62, 7753, 6978, 82, 198, 6738, 285, 69, 40406, 13, 76...
2.907692
130
import unittest import mock from mock import call from src.v3.async_report import AsyncReport
[ 11748, 555, 715, 395, 198, 198, 11748, 15290, 198, 6738, 15290, 1330, 869, 198, 198, 6738, 12351, 13, 85, 18, 13, 292, 13361, 62, 13116, 1330, 1081, 13361, 19100, 628 ]
3.233333
30
from project.reptile import Reptile
[ 6738, 1628, 13, 260, 457, 576, 1330, 44319, 576 ]
3.888889
9
#### ## see EOF where you have to set the listening IP, that's the only edit from flask import Flask, request, make_response from flask_restful import Resource, Api from flask_jsonpify import jsonify from json import dumps from sqlalchemy import create_engine # post_id # title # body db_connect = create_engine('sqli...
[ 4242, 198, 2235, 766, 412, 19238, 810, 345, 423, 284, 900, 262, 8680, 6101, 11, 326, 338, 262, 691, 4370, 220, 198, 198, 6738, 42903, 1330, 46947, 11, 2581, 11, 787, 62, 26209, 198, 6738, 42903, 62, 2118, 913, 1330, 20857, 11, 5949,...
2.858333
240
import torch import torch.nn as nn import torch.nn.functional as F import torchvision import torchvision.transforms as transforms import cv2 import numpy as np from PIL import Image from matplotlib import pyplot as plt if __name__ == '__main__': unloader = transforms.ToPILImage() device = torch.device('cuda:0...
[ 11748, 28034, 198, 11748, 28034, 13, 20471, 355, 299, 77, 198, 11748, 28034, 13, 20471, 13, 45124, 355, 376, 198, 11748, 28034, 10178, 198, 11748, 28034, 10178, 13, 7645, 23914, 355, 31408, 198, 11748, 269, 85, 17, 198, 11748, 299, 3215...
3.11215
107
import logging import urllib.request import xml.etree.ElementTree as ET import re from . import HTMLView import homeassistant.core as ha _LOGGER = logging.getLogger(__name__)
[ 11748, 18931, 198, 198, 11748, 2956, 297, 571, 13, 25927, 198, 11748, 35555, 13, 316, 631, 13, 20180, 27660, 355, 12152, 198, 11748, 302, 198, 198, 6738, 764, 1330, 11532, 7680, 198, 11748, 1363, 562, 10167, 13, 7295, 355, 387, 198, 1...
3.122807
57
default_app_config = 'datahub.omis.payment.apps.PaymentConfig'
[ 12286, 62, 1324, 62, 11250, 796, 705, 19608, 993, 549, 13, 296, 271, 13, 37301, 13, 18211, 13, 19197, 434, 16934, 6, 198 ]
2.73913
23
# -*- coding: utf-8 -*- from django.conf.urls import patterns, url urlpatterns = patterns( 'Utuputki.manager.views', url(r'^$', 'index', name="index"), url(r'^linklist/$', 'linklist', name="linklist"), url(r'^reqskip/$', 'request_skip', name="reqskip"), url(r'^getdata/$', 'get_data', name="getdata...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 6738, 42625, 14208, 13, 10414, 13, 6371, 82, 1330, 7572, 11, 19016, 198, 198, 6371, 33279, 82, 796, 7572, 7, 198, 220, 220, 220, 705, 18274, 929, 315, 4106, 13, ...
2.362319
138
# Python program to play a video # in reverse mode using opencv # import cv2 library import cv2 import os import shutil if os.path.isdir("images"): shutil.rmtree("images") os.mkdir("images") fileName = input("type the file path: ") # videoCapture method of cv2 return video object # Pass absolute address of video fil...
[ 2, 11361, 1430, 284, 711, 257, 2008, 198, 2, 287, 9575, 4235, 1262, 1280, 33967, 198, 198, 2, 1330, 269, 85, 17, 5888, 198, 11748, 269, 85, 17, 198, 11748, 28686, 198, 11748, 4423, 346, 198, 198, 361, 28686, 13, 6978, 13, 9409, 34...
3.001522
657
# Variaveis i = 1 # Definir o vetor no escopo lista = [] a = 0 while i <= 6: lista.append(float(input())) if(lista[i] > 0): a += 1 i += 1 pass print ('Os valores foram: ') j = 0 num_Cont = len(a) while j < num_Cont: print(a) j += 1 pass
[ 2, 569, 10312, 303, 271, 198, 72, 796, 352, 198, 2, 29589, 343, 267, 1569, 13165, 645, 3671, 404, 78, 198, 4868, 64, 796, 17635, 198, 64, 796, 657, 198, 4514, 1312, 19841, 718, 25, 198, 220, 220, 220, 1351, 64, 13, 33295, 7, 224...
1.950355
141
import json import unittest import PyPDF2 import io import os import time import requests from integration_tests.deed_data import valid_deed from gatekeeper.main import app
[ 11748, 33918, 198, 11748, 555, 715, 395, 198, 11748, 9485, 20456, 17, 198, 11748, 33245, 198, 11748, 28686, 198, 11748, 640, 198, 198, 11748, 7007, 198, 6738, 11812, 62, 41989, 13, 67, 2308, 62, 7890, 1330, 4938, 62, 67, 2308, 198, 67...
3.571429
49
import weakref import pytest from python2.client import Py2Error, Py2Object def test_unique_proxy_objects(py2): """ Test that identical Python 2 objects are represented by the same `Py2Object` object. """ f = py2.eval("lambda x: (x, x)") o1, o2 = f(py2.object())._ assert o1 is o2 p...
[ 11748, 4939, 5420, 198, 198, 11748, 12972, 9288, 198, 198, 6738, 21015, 17, 13, 16366, 1330, 9485, 17, 12331, 11, 9485, 17, 10267, 628, 198, 198, 4299, 1332, 62, 34642, 62, 36436, 62, 48205, 7, 9078, 17, 2599, 198, 220, 220, 220, 37...
2.433962
371
import pygame
[ 11748, 12972, 6057, 198 ]
3.5
4
import streamlit as st import json from PIL import Image import pandas as pd import streamlit.components.v1 as components import plotly.graph_objects as go from streamlit_folium import folium_static from visual import plot_summary,load_point2layer,plot_map from utils import load_pickle from config import MODE, mobile_p...
[ 11748, 4269, 18250, 355, 336, 198, 11748, 33918, 198, 6738, 350, 4146, 1330, 7412, 198, 11748, 19798, 292, 355, 279, 67, 198, 11748, 4269, 18250, 13, 5589, 3906, 13, 85, 16, 355, 6805, 198, 11748, 7110, 306, 13, 34960, 62, 48205, 355,...
3.362963
135
#!/usr/bin/env python2 # -*- coding: utf-8 -*- """ Created on Fri Apr 27 20:57:14 2018 @author: dhubel """ import os Test()
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 17, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 198, 41972, 319, 19480, 2758, 2681, 1160, 25, 3553, 25, 1415, 2864, 198, 198, 31, 9800, 25, 34590, 549, 41...
2.245614
57
from typing import Dict, Optional from pydantic import BaseModel import requests from requests.exceptions import RequestException from .exceptions import *
[ 6738, 19720, 1330, 360, 713, 11, 32233, 198, 198, 6738, 279, 5173, 5109, 1330, 7308, 17633, 198, 11748, 7007, 198, 6738, 7007, 13, 1069, 11755, 1330, 19390, 16922, 198, 198, 6738, 764, 1069, 11755, 1330, 1635, 628, 628, 198 ]
4.153846
39
import click import input_helper as ih import easy_workflow_manager as ewm from pprint import pprint @click.command() def main(): """Select a recent remote commit on SOURCE_BRANCH to tag""" success = ewm.tag_release() if success: print('\nSuccessfully tagged') if __name__ == '__main__': main...
[ 11748, 3904, 198, 11748, 5128, 62, 2978, 525, 355, 1312, 71, 198, 11748, 2562, 62, 1818, 11125, 62, 37153, 355, 304, 26377, 198, 6738, 279, 4798, 1330, 279, 4798, 628, 198, 31, 12976, 13, 21812, 3419, 198, 4299, 1388, 33529, 198, 220,...
2.808696
115
# # Copyright (c) 2017 Idiap Research Institute, http://www.idiap.ch/ # Written by Angelos Katharopoulos <angelos.katharopoulos@idiap.ch> # from .metrics import MetricLayer, TripletLossLayer from .normalization import BatchRenormalization, LayerNormalization, \ StatsBatchNorm, GroupNormalization from .scores impor...
[ 2, 198, 2, 15069, 357, 66, 8, 2177, 5121, 72, 499, 4992, 5136, 11, 2638, 1378, 2503, 13, 19830, 499, 13, 354, 14, 198, 2, 22503, 416, 3905, 418, 18341, 283, 20338, 1279, 8368, 418, 13, 74, 776, 283, 20338, 31, 19830, 499, 13, 35...
3.280374
107
# This code was adapted from Python Twitter Tools (MIT license) # https://github.com/sixohsix/twitter/blob/master/twitter/oauth_dance.py # Authors: Mike Verdone, Robert T. McGibbon from __future__ import print_function import os import time import webbrowser from requests_oauthlib import OAuth1Session try: _input...
[ 2, 770, 2438, 373, 16573, 422, 11361, 3009, 20003, 357, 36393, 5964, 8, 198, 2, 3740, 1378, 12567, 13, 785, 14, 19412, 1219, 19412, 14, 6956, 14, 2436, 672, 14, 9866, 14, 6956, 14, 12162, 1071, 62, 67, 590, 13, 9078, 198, 2, 46665...
2.701771
1,073
from apns import APNs from apns import Frame from apns import Payload from flask import request from flask import abort from flask import render_template as flask_render_template from subprocess import call from flask import Flask from flask import url_for from flask import redirect from sklearn.decomposition import Tr...
[ 6738, 2471, 5907, 1330, 3486, 47503, 198, 6738, 2471, 5907, 1330, 25184, 198, 6738, 2471, 5907, 1330, 7119, 2220, 198, 6738, 42903, 1330, 2581, 198, 6738, 42903, 1330, 15614, 198, 6738, 42903, 1330, 8543, 62, 28243, 355, 42903, 62, 13287,...
2.589418
3,232
# # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # ...
[ 2, 198, 2, 220, 220, 220, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 345, 743, 198, 2, 220, 220, 220, 407, 779, 428, 2393, 2845, 287, 11846, 351, 262, 13789, 13, 921, 743, 7330, 198, 2, ...
2.944444
468
import os from setuptools import setup, find_packages def clean(): """Custom clean command to tidy up the project root.""" if "posix" in os.name: os.system("rm -vrf ./build ./dist ./*.pyc ./*.tgz ./*.egg-info ./*__pycache__/") elif "nt" == os.name: # possible to-do: also remove directories...
[ 11748, 28686, 198, 6738, 900, 37623, 10141, 1330, 9058, 11, 1064, 62, 43789, 628, 198, 4299, 3424, 33529, 198, 220, 220, 220, 37227, 15022, 3424, 3141, 284, 43044, 510, 262, 1628, 6808, 526, 15931, 198, 220, 220, 220, 611, 366, 1930, ...
2.24714
437
import numpy as np import csv
[ 11748, 299, 32152, 355, 45941, 198, 11748, 269, 21370 ]
3.222222
9
# Copyright (c) 2004-2006 gocept gmbh & co. kg # See also LICENSE.txt # $Id$ """Work item base classes""" import DateTime import persistent.list import zope.interface import zope.component from AccessControl import ClassSecurityInfo, getSecurityManager from Globals import InitializeClass import zope.app.annotation.int...
[ 2, 15069, 357, 66, 8, 5472, 12, 13330, 467, 984, 308, 2022, 71, 1222, 763, 13, 14211, 198, 2, 4091, 635, 38559, 24290, 13, 14116, 198, 2, 720, 7390, 3, 198, 37811, 12468, 2378, 2779, 6097, 37811, 198, 198, 11748, 7536, 7575, 198, ...
2.716643
2,121
from dataclasses import dataclass from bindings.wfs.property_type import PropertyType __NAMESPACE__ = "http://www.opengis.net/wfs/2.0" @dataclass
[ 6738, 4818, 330, 28958, 1330, 4818, 330, 31172, 198, 6738, 34111, 13, 86, 9501, 13, 26745, 62, 4906, 1330, 14161, 6030, 198, 198, 834, 45, 29559, 47, 11598, 834, 796, 366, 4023, 1378, 2503, 13, 404, 1516, 271, 13, 3262, 14, 86, 9501...
2.709091
55
import numpy as np import math def dim(v) -> int: """ 获取向量维度. """ return len(v) def vec(val): """ 数值向量化. """ return np.array(val, dtype=np.float) def dist(pos0, pos1=None) -> float: """ 计算向量距离(模). """ pos = (vec(pos0) - vec(pos1)) if pos1 is not None else vec(pos0) return np.linalg.nor...
[ 11748, 299, 32152, 355, 45941, 198, 11748, 10688, 628, 198, 4299, 5391, 7, 85, 8, 4613, 493, 25, 198, 220, 220, 220, 37227, 5525, 236, 115, 20998, 244, 28938, 239, 34932, 237, 163, 119, 112, 41753, 99, 13, 37227, 198, 220, 220, 220,...
1.599688
642
# -*- coding: utf-8 -*- # Copyright 2016-2018 Rumma & Ko Ltd # License: BSD (see file COPYING for details) """Runs some tests about ticket and vote workflow. You can run only these tests by issuing:: $ go team $ python manage.py test tests.test_workflow """ from __future__ import unicode_literals from __future...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 15069, 1584, 12, 7908, 25463, 2611, 1222, 17634, 12052, 198, 2, 13789, 25, 347, 10305, 357, 3826, 2393, 27975, 45761, 329, 3307, 8, 198, 198, 37811, 10987, 82, 617, ...
3.139785
186
#создай приложение для запоминания информации #подключение библиотек from PyQt5.QtCore import Qt from PyQt5.QtWidgets import QApplication,QWidget,QPushButton,QLabel,QVBoxLayout,QRadioButton,QMessageBox,QHBoxLayout, QGroupBox, QPushButton, QButtonGroup from random import shuffle, randint question_list = [] question_li...
[ 2, 21727, 25443, 115, 43666, 16142, 140, 117, 12466, 123, 21169, 18849, 30143, 25443, 114, 16843, 22177, 18849, 16843, 12466, 112, 30143, 40623, 12466, 115, 16142, 140, 123, 25443, 120, 18849, 22177, 16142, 22177, 18849, 40623, 12466, 116, ...
1.895692
1,323
# This file captures expected CPU allocator behavior when the podpools # policy is started with the test default cri-resmgr configuration on # n4c16 topology. # cri-resmgr output on constructed pools. expected_podpools_output = """ podpools policy pools: - pool 0: reserved[0]{cpus:15, mems:3, pods:0/0, containers:0} -...
[ 2, 770, 2393, 23007, 2938, 9135, 36836, 1352, 4069, 618, 262, 24573, 7742, 82, 198, 2, 2450, 318, 2067, 351, 262, 1332, 4277, 269, 380, 12, 411, 76, 2164, 8398, 319, 198, 2, 299, 19, 66, 1433, 1353, 1435, 13, 198, 198, 2, 269, 3...
2.442478
565
from bhr_client.rest import login_from_env from bhr_client.block_manager import BlockManager, DummyStdoutBlocker if __name__ == "__main__": main()
[ 6738, 275, 11840, 62, 16366, 13, 2118, 1330, 17594, 62, 6738, 62, 24330, 198, 6738, 275, 11840, 62, 16366, 13, 9967, 62, 37153, 1330, 9726, 13511, 11, 360, 13513, 1273, 67, 448, 12235, 263, 198, 198, 361, 11593, 3672, 834, 6624, 366, ...
2.867925
53
import sys sys.path.insert(0, '/var/www/radar') from radar import app as application
[ 11748, 25064, 198, 17597, 13, 6978, 13, 28463, 7, 15, 11, 31051, 7785, 14, 2503, 14, 6335, 283, 11537, 198, 6738, 13428, 1330, 598, 355, 3586, 198 ]
3.148148
27
import os import cv2 import numpy as np import math from sizing import getWidth, getHeight
[ 11748, 28686, 198, 11748, 269, 85, 17, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 10688, 198, 6738, 47016, 1330, 651, 30916, 11, 651, 23106, 628, 628, 198 ]
3.392857
28
import json from django.http import HttpResponse from django.shortcuts import render, redirect from django.db import transaction from print3d.forms import * from filament.models import * from print3d.models import * # Create your views here.
[ 11748, 33918, 201, 198, 201, 198, 6738, 42625, 14208, 13, 4023, 1330, 367, 29281, 31077, 201, 198, 6738, 42625, 14208, 13, 19509, 23779, 1330, 8543, 11, 18941, 201, 198, 6738, 42625, 14208, 13, 9945, 1330, 8611, 201, 198, 201, 198, 6738...
3.282051
78
"""Tests for get route of features associated with embedding interval data.""" import os import gzip import json import unittest from unittest.mock import patch import numpy as np from hicognition.test_helpers import LoginTestCase, TempDirTestCase # add path to import app # import sys # sys.path.append("./") from app ...
[ 37811, 51, 3558, 329, 651, 6339, 286, 3033, 3917, 351, 11525, 12083, 16654, 1366, 526, 15931, 198, 11748, 28686, 198, 11748, 308, 13344, 198, 11748, 33918, 198, 11748, 555, 715, 395, 198, 6738, 555, 715, 395, 13, 76, 735, 1330, 8529, ...
2.122583
3,361
from setuptools import setup setup( name = "sgraphic", version = "0.1.2", author = "Rene Czepluch Thomsen", author_email = "sepluk1@gmail.com", description = ("Fast and simple graphics. "), url="https://github.com/ReneTC/Simple-graphics", license = "BSD", keywords = "graphics package 2d...
[ 6738, 900, 37623, 10141, 1330, 9058, 198, 198, 40406, 7, 198, 220, 220, 220, 1438, 796, 366, 45213, 22262, 1600, 198, 220, 220, 220, 2196, 796, 366, 15, 13, 16, 13, 17, 1600, 198, 220, 220, 220, 1772, 796, 366, 49, 1734, 327, 2736...
2.39267
191
''' Middleware for AIController: handles requests and updates to and from the database. 2019-20 Benjamin Kellenberger ''' from datetime import datetime import uuid import re import json from constants.annotationTypes import ANNOTATION_TYPES from ai import PREDICTION_MODELS, ALCRITERION_MODELS from modules.AIC...
[ 7061, 6, 198, 220, 220, 220, 6046, 1574, 329, 317, 2149, 756, 10646, 25, 17105, 7007, 290, 5992, 284, 290, 422, 262, 6831, 13, 628, 220, 220, 220, 13130, 12, 1238, 14533, 25043, 268, 21041, 198, 7061, 6, 198, 198, 6738, 4818, 8079, ...
3.538721
297
import hashlib from typing import Union from config.config import dht_config def generate_id(key: Union[bytes, str]) -> str: """Generate id for key or node on the ring. Args: key (string): Key or node-ip to hash Returns: string: the first m bits from the key hash. """ _ke...
[ 11748, 12234, 8019, 198, 6738, 19720, 1330, 4479, 198, 198, 6738, 4566, 13, 11250, 1330, 288, 4352, 62, 11250, 628, 198, 4299, 7716, 62, 312, 7, 2539, 25, 4479, 58, 33661, 11, 965, 12962, 4613, 965, 25, 198, 220, 220, 220, 37227, 86...
2.342369
996
from . import inject # noqa from .elements import DomainInvalidation # noqa from .elements import Invalidation # noqa from .elements import Invalidator # noqa from .elements import InvalidatorTrigger # noqa from .elements import InvalidatorTriggers # noqa from .elements import Materializer # noqa from .planning ...
[ 6738, 764, 1330, 8677, 220, 1303, 645, 20402, 198, 6738, 764, 68, 3639, 1330, 20021, 44651, 341, 220, 1303, 645, 20402, 198, 6738, 764, 68, 3639, 1330, 17665, 341, 220, 1303, 645, 20402, 198, 6738, 764, 68, 3639, 1330, 17665, 1352, 22...
3.6
100
from multiprocessing import Pool import numpy as np from interval import interval from logzero import logger from BITS.util.io import save_pickle from BITS.util.interval import intvl_len, subtract_intvl from .io import load_tr_reads, load_paths from ..types import TRUnit def find_units(start_dbid, end_dbid, n_core, d...
[ 6738, 18540, 305, 919, 278, 1330, 19850, 198, 11748, 299, 32152, 355, 45941, 198, 6738, 16654, 1330, 16654, 198, 6738, 2604, 22570, 1330, 49706, 198, 6738, 347, 29722, 13, 22602, 13, 952, 1330, 3613, 62, 27729, 293, 198, 6738, 347, 2972...
2.507596
1,909
import environ from django.urls import reverse_lazy # ---------- Basic settings ---------- env = environ.Env() root = environ.Path(__file__) - 3 BASE_DIR = root() SECRET_KEY = env('SECRET_KEY') DEBUG = env.bool('DEBUG', default=False) SITE_ID = env.int('SITE_ID', default=1) ALLOWED_HOSTS = env.list('ALLOWED_HOSTS'...
[ 11748, 551, 2268, 198, 198, 6738, 42625, 14208, 13, 6371, 82, 1330, 9575, 62, 75, 12582, 628, 198, 2, 24200, 438, 14392, 6460, 24200, 438, 198, 198, 24330, 796, 551, 2268, 13, 4834, 85, 3419, 198, 15763, 796, 551, 2268, 13, 15235, 7...
2.298377
1,602
from SqlAnalyzer.parser.SqlListener import SqlListener
[ 6738, 311, 13976, 37702, 9107, 13, 48610, 13, 50, 13976, 33252, 1330, 311, 13976, 33252 ]
3.6
15
import os import shutil import json import argparse from pathlib import Path class TikTokFiles: """A simple class to model various file operations on tiktok files.""" def __init__(self, args): """Initializing various attributes.""" self.start_folder = Path(args.filepath) ...
[ 11748, 28686, 201, 198, 11748, 4423, 346, 201, 198, 11748, 33918, 201, 198, 11748, 1822, 29572, 201, 198, 6738, 3108, 8019, 1330, 10644, 201, 198, 201, 198, 201, 198, 4871, 46338, 19042, 25876, 25, 201, 198, 220, 220, 220, 37227, 32, ...
2.00067
5,966