content
stringlengths
1
1.04M
input_ids
listlengths
1
774k
ratio_char_token
float64
0.38
22.9
token_count
int64
1
774k
import numpy as np import itertools import math import heapq import random from dataclasses import dataclass, field from typing import Any from copy import deepcopy from flatland.envs.rail_env import RailEnv from flatland.envs.rail_env import RailEnv, RailEnvActions from flatland.core.grid.grid4_utils import ...
[ 11748, 299, 32152, 355, 45941, 201, 198, 11748, 340, 861, 10141, 201, 198, 11748, 10688, 201, 198, 11748, 24575, 80, 201, 198, 11748, 4738, 201, 198, 6738, 4818, 330, 28958, 1330, 4818, 330, 31172, 11, 2214, 201, 198, 6738, 19720, 1330,...
2.169547
10,357
import os BASE_DIR = os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) SECRET_KEY = '6w%v6%=c699i&(yg1*&tnz454o3mn0sl2-bqp1qykze_uoowaf' DEBUG = True ALLOWED_HOSTS = [] INSTALLED_APPS = [ 'jet', 'django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes...
[ 11748, 28686, 198, 198, 33, 11159, 62, 34720, 796, 28686, 13, 6978, 13, 15908, 3672, 7, 418, 13, 6978, 13, 15908, 3672, 7, 418, 13, 6978, 13, 15908, 3672, 7, 418, 13, 6978, 13, 397, 2777, 776, 7, 834, 7753, 834, 35514, 628, 198, ...
2.035692
1,569
from math import pi # Base class for Objects, Loops, and Triggers to inherit from. # Empty method because it is always overriden. # Base parent event to be inherited from. # Represents a fade command. # Represents a movement command. # Represents a movementX command. # Represents a movementY command. # Rep...
[ 6738, 10688, 1330, 31028, 198, 198, 2, 7308, 1398, 329, 35832, 11, 6706, 2840, 11, 290, 833, 328, 5355, 284, 16955, 422, 13, 628, 220, 220, 220, 1303, 33523, 2446, 780, 340, 318, 1464, 625, 6058, 268, 13, 198, 198, 2, 7308, 2560, ...
3.592105
152
import random __all__ = ["random_assignment",] #this code: import with_nolib.unsupervised.clustering.initial_assignments as ias from utils.points_utils import distance
[ 11748, 4738, 198, 834, 439, 834, 796, 14631, 25120, 62, 562, 16747, 1600, 60, 198, 198, 2, 5661, 2438, 25, 1330, 351, 62, 77, 349, 571, 13, 403, 16668, 16149, 13, 565, 436, 1586, 13, 36733, 62, 562, 570, 902, 355, 1312, 292, 198, ...
3.090909
55
# -*- coding: utf-8 -*- from pyshacl import validate from pyshacl.errors import ReportableRuntimeError, ValidationFailure, ConstraintLoadError, ShapeLoadError import json
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 6738, 279, 893, 71, 37779, 1330, 26571, 198, 6738, 279, 893, 71, 37779, 13, 48277, 1330, 6358, 540, 41006, 12331, 11, 3254, 24765, 50015, 11, 1482, 2536, 2913, 8912, 123...
3.307692
52
from benchmark import (bootstrap, stress, nodetool, nodetool_multi, cqlsh, bash, teardown, log_stats, log_set_title, log_add_data, retrieve_logs, restart, start_fincore_capture, stop_fincore_capture, retrieve_fincore_logs, drop_page_cache, wait_for_co...
[ 6738, 18335, 1330, 357, 18769, 26418, 11, 5503, 11, 18666, 316, 970, 11, 18666, 316, 970, 62, 41684, 11, 269, 13976, 1477, 11, 27334, 11, 573, 446, 593, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220...
1.944193
11,719
import numpy as np import matplotlib.pyplot as plt import matplotlib.colors as col import pandas from matplotlib.gridspec import GridSpec # vmax = None
[ 11748, 299, 32152, 355, 45941, 198, 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 198, 11748, 2603, 29487, 8019, 13, 4033, 669, 355, 951, 198, 11748, 19798, 292, 198, 6738, 2603, 29487, 8019, 13, 2164, 2340, 43106, 1330, 2484...
3.102041
49
#!/usr/bin/env python """ Combine with HGDP-1KG subset of gnomAD v3, and select high-quality QC sites for PCA. This script will produce two matrix tables: 1. `--out-hgdp-union-mt` - a union of all input dataset and HGDP-1KG samples, with rows corresponding to the rows shared with datasets, and fitered to high-q...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 198, 37811, 198, 20575, 500, 351, 48698, 6322, 12, 16, 42, 38, 24637, 286, 19967, 296, 2885, 410, 18, 11, 290, 2922, 1029, 12, 13237, 36070, 5043, 329, 4217, 32, 13, 198, 198, 1212, ...
2.476236
2,083
from math import sqrt from raytracer.tuple import ( tuple, point, vector, magnitude, normalize, dot, cross, reflect, Color, ) from raytracer.materials import Material, lighting from raytracer.lights import PointLight from raytracer.spheres import Sphere
[ 6738, 10688, 1330, 19862, 17034, 198, 198, 6738, 26842, 2213, 11736, 13, 83, 29291, 1330, 357, 198, 220, 220, 220, 46545, 11, 198, 220, 220, 220, 966, 11, 198, 220, 220, 220, 15879, 11, 198, 220, 220, 220, 14735, 11, 198, 220, 220, ...
2.690909
110
import sys sys.path.append('core') from PIL import Image import argparse import os import time import numpy as np import torch import torch.nn.functional as F import matplotlib.pyplot as plt import datasets from utils import flow_viz from utils import frame_utils from raft import RAFT from utils.utils import InputPa...
[ 11748, 25064, 198, 17597, 13, 6978, 13, 33295, 10786, 7295, 11537, 198, 198, 6738, 350, 4146, 1330, 7412, 198, 11748, 1822, 29572, 198, 11748, 28686, 198, 11748, 640, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 28034, 198, 11748, 2803...
2.190569
3,075
#!/usr/bin/env python3 import sys import os import glob if len(sys.argv) < 4: print("usage: cleancrcmap <in_map> <out_map> <searchdir>") sys.exit(1) # load and check the old map searchpath = sys.argv[3] inmap = list() with open(sys.argv[1], 'r') as f: for line in f: line = line.strip() if...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 198, 11748, 25064, 198, 11748, 28686, 198, 11748, 15095, 198, 198, 361, 18896, 7, 17597, 13, 853, 85, 8, 1279, 604, 25, 198, 220, 220, 220, 3601, 7203, 26060, 25, 1190, 1192, 601...
1.901813
662
import ast import macropy.core.macros from macropy.core.quotes import macros, q macros = macropy.core.macros.Macros() @macros.expr @macros.expr @macros.expr
[ 11748, 6468, 198, 198, 11748, 8352, 28338, 13, 7295, 13, 20285, 4951, 198, 6738, 8352, 28338, 13, 7295, 13, 421, 6421, 1330, 34749, 11, 10662, 198, 20285, 4951, 796, 8352, 28338, 13, 7295, 13, 20285, 4951, 13, 14155, 4951, 3419, 198, ...
2.596774
62
import sys, json, argparse, requests, re, xml.etree.ElementTree, socket from requests.packages.urllib3.exceptions import InsecureRequestWarning def sendRequest(requestUrl, requestMethod, requestHeaders): """Send the request as passed in.""" r = "" t = float(args.timeout) try: if requestMethod ...
[ 11748, 25064, 11, 33918, 11, 1822, 29572, 11, 7007, 11, 302, 11, 35555, 13, 316, 631, 13, 20180, 27660, 11, 17802, 198, 6738, 7007, 13, 43789, 13, 333, 297, 571, 18, 13, 1069, 11755, 1330, 554, 22390, 18453, 20361, 628, 198, 4299, 3...
2.571552
1,153
import os import sys
[ 11748, 28686, 198, 11748, 25064, 628, 628, 198 ]
3.125
8
""" Variance functions for use with the link functions in statsmodels.family.links """ import numpy as np FLOAT_EPS = np.finfo(float).eps class VarianceFunction(object): """ Relates the variance of a random variable to its mean. Defaults to 1. Methods ------- call Returns an array of ones...
[ 37811, 198, 23907, 590, 5499, 329, 779, 351, 262, 2792, 5499, 287, 9756, 27530, 13, 17989, 13, 28751, 198, 37811, 198, 11748, 299, 32152, 355, 45941, 198, 3697, 46, 1404, 62, 36, 3705, 796, 45941, 13, 69, 10951, 7, 22468, 737, 25386, ...
2.34424
2,170
import numpy as np from scipy.interpolate import interp1d class PDFSampling(object): """ class for approximations with a given pdf sample """ def __init__(self, bin_edges, pdf_array): """ :param bin_edges: bin edges of PDF values :param pdf_array: pdf array of given bins (len(...
[ 11748, 299, 32152, 355, 45941, 198, 6738, 629, 541, 88, 13, 3849, 16104, 378, 1330, 987, 79, 16, 67, 628, 198, 4871, 12960, 16305, 11347, 7, 15252, 2599, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 1398, 329, 5561, 320, 602, 351,...
2.123077
650
from quantopian.algorithm import attach_pipeline, pipeline_output from quantopian.pipeline import Pipeline from quantopian.pipeline import CustomFactor from quantopian.pipeline.factors.morningstar import MarketCap from quantopian.pipeline.data.builtin import USEquityPricing from quantopian.pipeline.data import m...
[ 6738, 5554, 37548, 13, 282, 42289, 1330, 10199, 62, 79, 541, 4470, 11, 11523, 62, 22915, 220, 220, 198, 6738, 5554, 37548, 13, 79, 541, 4470, 1330, 37709, 220, 220, 198, 6738, 5554, 37548, 13, 79, 541, 4470, 1330, 8562, 41384, 220, ...
3.550265
189
#!/usr/bin/env python # Print statistics for given notebook(s) """ usage: python nbstats.py A.ipynb B.ipynb C.ipynb """ import io, os, sys, types, re import nbformat FORMAT = "%35s%6d LOC%7d words" if __name__ == "__main__": total_loc = 0 total_words = 0 for notebook in sys.argv[1:]: notebook_l...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 12578, 7869, 329, 1813, 20922, 7, 82, 8, 198, 37811, 198, 26060, 25, 198, 198, 29412, 299, 65, 34242, 13, 9078, 317, 13, 541, 2047, 65, 347, 13, 541, 2047, 65, 327, 13, 541, 2...
2.296578
263
import unittest import datetime import unittest.mock from distiller.utils.Environment import Environment from distiller.utils.Configuration import Configuration from distiller.core.impl.SimpleScheduler.SimpleScheduler import SimpleScheduler from distiller.core.interfaces.Scheduler import FinishState from distiller.uti...
[ 11748, 555, 715, 395, 198, 11748, 4818, 8079, 198, 11748, 555, 715, 395, 13, 76, 735, 198, 198, 6738, 1233, 4665, 13, 26791, 13, 31441, 1330, 9344, 198, 6738, 1233, 4665, 13, 26791, 13, 38149, 1330, 28373, 198, 6738, 1233, 4665, 13, ...
3.417722
158
# TODO : Clean var ; rem cache import query_retreive as qr import retreiveData as rd import time,pickle from flask import Flask, jsonify,request app = Flask(__name__) ''' ADD TEMPLATE : ''' @app.route('/',methods=["GET"]) if __name__ == "__main__": app.run(debug=True,port=8080)
[ 2, 16926, 46, 1058, 5985, 1401, 2162, 816, 12940, 198, 11748, 12405, 62, 1186, 260, 425, 355, 10662, 81, 198, 11748, 1005, 260, 425, 6601, 355, 374, 67, 198, 11748, 640, 11, 27729, 293, 198, 6738, 42903, 1330, 46947, 11, 33918, 1958, ...
2.466102
118
import aisy_sca from app import * from custom.custom_models.neural_networks import * aisy = aisy_sca.Aisy() aisy.set_resources_root_folder(resources_root_folder) aisy.set_database_root_folder(databases_root_folder) aisy.set_datasets_root_folder(datasets_root_folder) aisy.set_database_name("database_ascad.sqlite") aisy...
[ 11748, 257, 13560, 62, 1416, 64, 198, 6738, 598, 1330, 1635, 198, 6738, 2183, 13, 23144, 62, 27530, 13, 710, 1523, 62, 3262, 5225, 1330, 1635, 198, 198, 64, 13560, 796, 257, 13560, 62, 1416, 64, 13, 32, 13560, 3419, 198, 64, 13560, ...
2.336016
497
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Written by Lucas Sinclair. MIT Licensed. Contact at www.sinclair.bio """ # Built-in modules # import uuid # First party modules # from fasta import FASTQ from autopaths.file_path import FilePath from autopaths.tmp_path import new_temp_dir from plumbing.cache i...
[ 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, 37811, 198, 25354, 416, 15257, 34927, 13, 198, 36393, 49962, 13, 198, 17829, 379, 7324, 13, 31369, 27659, 13, ...
2.503812
1,443
import operator as op import pytest from grabutils.bs.pageobj import ( BsField, BsPageObj, PageObject, Href, Image, Nested, inner_text, stripped, as_attr, List ) @pytest.fixture(scope="module")
[ 11748, 10088, 355, 1034, 198, 198, 11748, 12972, 9288, 198, 198, 6738, 5552, 26791, 13, 1443, 13, 7700, 26801, 1330, 357, 198, 220, 220, 220, 347, 82, 15878, 11, 347, 82, 9876, 49201, 11, 7873, 10267, 11, 367, 5420, 11, 7412, 11, 39...
2.646341
82
# -*- coding: utf-8 -*- # vim: set ts=4 # # Copyright 2019 Linaro Limited # # Author: Rémi Duraffort <remi.duraffort@linaro.org> # # SPDX-License-Identifier: MIT import contextlib import hashlib import pathlib import time from django.db import models from django.db.models import F from django.db.models.aggregates imp...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 43907, 25, 900, 40379, 28, 19, 198, 2, 198, 2, 15069, 13130, 5164, 12022, 15302, 198, 2, 198, 2, 6434, 25, 47957, 11632, 11164, 2001, 419, 1279, 2787, 72, 13, 67,...
2.858268
127
# -*- coding: utf-8 -*- """ fs3Stats.py -- Plugin implimentation handling all statistics calculation -- For more information see : https://github.com/andreasfoulk/FS3 Copyright (c) 2018 Orden Aitchedji, McKenna Duzac, Andreas Foulk, Tanner Lee This software may be modified and distributed...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 628, 220, 220, 220, 43458, 18, 29668, 13, 9078, 1377, 42636, 4114, 3681, 341, 9041, 477, 7869, 17952, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220...
2.777229
4,655
from .FactorizedJetCorrector import FactorizedJetCorrector from .JetResolution import JetResolution from .JetResolutionScaleFactor import JetResolutionScaleFactor from .JetCorrectionUncertainty import JetCorrectionUncertainty from ..analysis_objects.JaggedCandidateArray import JaggedCandidateArray import numpy as np ...
[ 6738, 764, 41384, 1143, 42273, 42779, 273, 1330, 27929, 1143, 42273, 42779, 273, 198, 6738, 764, 42273, 4965, 2122, 1330, 19013, 4965, 2122, 198, 6738, 764, 42273, 4965, 2122, 29990, 41384, 1330, 19013, 4965, 2122, 29990, 41384, 198, 6738, ...
2.10677
3,737
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. from odoo import fields, models
[ 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, 6738, 16298, 2238, 1330, 7032, 11, 4981, 628 ]
3.243902
41
from __future__ import print_function import json import os import sys import logging import click from click import UsageError import mlflow.azureml.cli import mlflow.db import mlflow.experiments import mlflow.models.cli import mlflow.projects as projects import mlflow.runs import mlflow.sagemaker.cli import mlflow...
[ 6738, 11593, 37443, 834, 1330, 3601, 62, 8818, 198, 198, 11748, 33918, 198, 11748, 28686, 198, 11748, 25064, 198, 11748, 18931, 198, 198, 11748, 3904, 198, 6738, 3904, 1330, 29566, 12331, 198, 198, 11748, 285, 1652, 9319, 13, 1031, 495, ...
2.511412
4,951
#!/usr/bin/env python3 import argparse import hashlib import re import urllib.request as req import requests from ocflib.vhost.web import get_vhosts missing_img = 'missing_img.log' missing_disc = 'missing_disc.log' missing_both = 'missing_both.log' errors = 'errors.log' # md5 hashes banner_hashes = { # ocfbadge_mini...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 11748, 1822, 29572, 198, 11748, 12234, 8019, 198, 11748, 302, 198, 11748, 2956, 297, 571, 13, 25927, 355, 43089, 198, 198, 11748, 7007, 198, 6738, 267, 66, 2704, 571, 13, 85, 4774,...
1.927146
1,002
import random # Игрок
[ 11748, 4738, 198, 2, 12466, 246, 140, 111, 21169, 25443, 118, 628, 628, 198 ]
1.857143
14
# http://iraf.net/irafdocs/specwcs.php import string import re import numpy as np import astropy.io.fits as fits from astropy.wcs import WCS from ..spectrum1d import Spectrum1D class IrafFormatError(Exception): ''' ''' pass ''' Missing important things onedspec format LTM, CD keywords, CDELT ''' ### i...
[ 2, 2638, 1378, 343, 1878, 13, 3262, 14, 343, 1878, 31628, 14, 16684, 12712, 13, 10121, 198, 11748, 4731, 198, 11748, 302, 198, 198, 11748, 299, 32152, 355, 45941, 198, 198, 11748, 6468, 28338, 13, 952, 13, 21013, 355, 11414, 198, 6738...
2.198637
4,108
import pytest import hashlib from deepdiff import DeepDiff from a_la_mode import Dag, sha from .shared import eg_dag, encoded_dag
[ 11748, 12972, 9288, 198, 11748, 12234, 8019, 198, 6738, 2769, 26069, 1330, 10766, 28813, 198, 6738, 257, 62, 5031, 62, 14171, 1330, 32167, 11, 427, 64, 198, 198, 6738, 764, 28710, 1330, 29206, 62, 67, 363, 11, 30240, 62, 67, 363, 628 ...
3.142857
42
from src.rules.rule import Rule
[ 6738, 12351, 13, 38785, 13, 25135, 1330, 14330, 628 ]
3.666667
9
# from ga_ows.views import wms, wfs from django.db.models.loading import get_model from django.utils.text import slugify from uuid import uuid4 from zipfile import ZipFile import json from django.contrib.gis.geos import Polygon, GEOSGeometry from django.core.files import File import numpy import os from osgeo import os...
[ 2, 422, 31986, 62, 1666, 13, 33571, 1330, 266, 907, 11, 266, 9501, 198, 6738, 42625, 14208, 13, 9945, 13, 27530, 13, 25138, 1330, 651, 62, 19849, 198, 6738, 42625, 14208, 13, 26791, 13, 5239, 1330, 31065, 1958, 198, 6738, 334, 27112, ...
2.202445
2,045
from django.apps import AppConfig
[ 6738, 42625, 14208, 13, 18211, 1330, 2034, 16934, 628 ]
3.888889
9
import angr
[ 11748, 281, 2164, 628 ]
3.25
4
import hashlib import os import io import math import random import time from datetime import datetime, timedelta import dateparser #TODO: The pysoundfile library does not support opus yet, uncomment these when it does. #import soundfile from django.middleware import csrf from django.http import HttpResponse from dja...
[ 11748, 12234, 8019, 198, 11748, 28686, 198, 11748, 33245, 198, 11748, 10688, 198, 11748, 4738, 198, 11748, 640, 198, 6738, 4818, 8079, 1330, 4818, 8079, 11, 28805, 12514, 198, 11748, 3128, 48610, 198, 198, 2, 51, 3727, 46, 25, 383, 279,...
3.116558
918
import sublime_plugin import sublime from .mixin import UnitTestingMixin
[ 11748, 41674, 62, 33803, 198, 11748, 41674, 198, 6738, 764, 19816, 259, 1330, 11801, 44154, 35608, 259, 628 ]
4.111111
18
from ErrorFunc import MeanSquaredError from Activations import Linear from my_helpers import mini_batch import Layers import numpy as np
[ 6738, 13047, 37, 19524, 1330, 22728, 22266, 1144, 12331, 201, 198, 6738, 13144, 602, 1330, 44800, 201, 198, 6738, 616, 62, 16794, 364, 1330, 9927, 62, 43501, 201, 198, 11748, 406, 6962, 201, 198, 11748, 299, 32152, 355, 45941, 201, 198,...
3.404762
42
import unittest from selsum.utils.helpers.model import create_blocker_mask import torch as T if __name__ == '__main__': unittest.main()
[ 11748, 555, 715, 395, 198, 6738, 384, 7278, 388, 13, 26791, 13, 16794, 364, 13, 19849, 1330, 2251, 62, 9967, 263, 62, 27932, 198, 11748, 28034, 355, 309, 628, 198, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 198, ...
2.75
52
# Copyright 2019 Peter Hawkins # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing,...
[ 2, 15069, 13130, 5613, 32534, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 2, 345, 743, 407, 779, 428, 2393, 2845, 287, 11846, 351, 262, 13789, 13, 198, 2, 921, 743, 733...
2.330682
1,760
cyfra = input("Wpisz tajna cyfre: ") n = int(input("> ")) for i in range(n): x, y = input("> ").split() cyfra = cyfra.replace(x, y) print(cyfra)
[ 948, 69, 430, 796, 5128, 7203, 54, 79, 271, 89, 256, 1228, 2616, 3075, 19503, 25, 366, 8, 198, 198, 77, 796, 493, 7, 15414, 7, 5320, 366, 4008, 198, 198, 1640, 1312, 287, 2837, 7, 77, 2599, 198, 220, 220, 220, 2124, 11, 331, 7...
1.974684
79
# Implementation of CAL, a quality measure for NLDR embeddings. # For more details on the measure, see Caliński, T., & Harabasz, J. (1974). # A dendrite method for cluster analysis. Communications in Statistics-theory and Methods, 3(1), 1-27. # This implementation has been written by Adrien Bibal (University of Namur...
[ 2, 46333, 286, 33290, 11, 257, 3081, 3953, 329, 22879, 7707, 11525, 67, 654, 13, 198, 2, 1114, 517, 3307, 319, 262, 3953, 11, 766, 220, 2199, 72, 129, 226, 20545, 11, 309, 1539, 1222, 2113, 397, 292, 89, 11, 449, 13, 357, 40828, ...
3.437811
201
from ._auto_fight import AutoFight # used directly in testing scripts from ._helpers import fight, get_prefight_info, get_sides from ._sparring import spar from ._spectating import SpectateFight
[ 6738, 47540, 23736, 62, 15481, 1330, 11160, 27365, 220, 1303, 973, 3264, 287, 4856, 14750, 198, 6738, 47540, 16794, 364, 1330, 1907, 11, 651, 62, 3866, 15481, 62, 10951, 11, 651, 62, 82, 1460, 198, 6738, 47540, 82, 1845, 1806, 1330, 3...
3.769231
52
from openbiolink.graph_creation.file_processor.fileProcessor import FileProcessor from openbiolink.graph_creation.metadata_infile.mapping.inMetaMapString import InMetaMapString from openbiolink.graph_creation.types.infileType import InfileType from openbiolink.graph_creation.types.readerType import ReaderType
[ 6738, 1280, 65, 1669, 676, 13, 34960, 62, 38793, 13, 7753, 62, 41341, 13, 7753, 18709, 273, 1330, 9220, 18709, 273, 198, 6738, 1280, 65, 1669, 676, 13, 34960, 62, 38793, 13, 38993, 62, 259, 7753, 13, 76, 5912, 13, 259, 48526, 13912,...
3.545455
88
print("Initiating boot sequence") print("Preparing preboot required files") text_file = open("results.txt", "w") print("Importing external data") from sys import platform import os import random os.remove("results.txt") if platform == "linux" or platform == "linux2": ops = "linux" elif platform == "win32" or platform ...
[ 4798, 7203, 818, 8846, 803, 6297, 8379, 4943, 198, 4798, 7203, 37534, 1723, 662, 18769, 2672, 3696, 4943, 198, 5239, 62, 7753, 796, 1280, 7203, 43420, 13, 14116, 1600, 366, 86, 4943, 198, 4798, 7203, 20939, 278, 7097, 1366, 4943, 198, ...
3
295
from apis.models import Vegetable, Merchandise, MerchandisePrice, MerchandisePhotos, MerchandiseType from apis.models import VegetablePrice, StockedVegetable from apis.models import VegetableType from rest_framework.decorators import api_view, authentication_classes, permission_classes from rest_framework.authenticatio...
[ 6738, 2471, 271, 13, 27530, 1330, 23892, 540, 11, 34414, 18888, 11, 34414, 18888, 18124, 11, 34414, 18888, 21197, 11, 34414, 18888, 6030, 198, 6738, 2471, 271, 13, 27530, 1330, 23892, 540, 18124, 11, 520, 3543, 26979, 1136, 540, 198, 67...
3.469298
228
# Copyright (c) 2019, Danish Technological Institute. # All rights reserved. # # This source code is licensed under the BSD-style license found in the # LICENSE file in the root directory of this source tree. # -*- coding: utf-8 -*- """ Command to stop specific remote """ import click from tracker import remote as ...
[ 2, 15069, 357, 66, 8, 13130, 11, 20849, 5429, 2770, 5136, 13, 198, 2, 1439, 2489, 10395, 13, 198, 2, 198, 2, 770, 2723, 2438, 318, 11971, 739, 262, 347, 10305, 12, 7635, 5964, 1043, 287, 262, 198, 2, 38559, 24290, 2393, 287, 262, ...
3.309677
155
from typing import Callable from combination.equipment_combination import EquipmentCombination from combination.scored_combination import ScoredCombination from header_handlers.header_handler import HeaderHandler
[ 6738, 19720, 1330, 4889, 540, 198, 198, 6738, 6087, 13, 4853, 4667, 62, 24011, 1883, 1330, 22412, 20575, 1883, 198, 6738, 6087, 13, 1416, 1850, 62, 24011, 1883, 1330, 1446, 1850, 20575, 1883, 198, 6738, 13639, 62, 4993, 8116, 13, 25677,...
4.574468
47
""" Source code developed by DI2AG. Thayer School of Engineering at Dartmouth College Authors: Dr. Eugene Santos, Jr Mr. Chase Yakaboski, Mr. Gregory Hyde, Mr. Luke Veenhuis, Dr. Keum Joo Kim """ import requests import json import unittest ...
[ 37811, 198, 220, 220, 220, 8090, 2438, 4166, 416, 14766, 17, 4760, 13, 198, 220, 220, 220, 536, 2794, 3961, 286, 14044, 379, 47888, 5535, 198, 220, 220, 220, 46665, 25, 220, 220, 220, 1583, 13, 24532, 28458, 11, 7504, 198, 220, 220,...
1.694245
3,058
#!/usr/bin/env python # mzk music theory helper - developed by acidvegas in python (https://acid.vegas/mzk) # constants.py circle = ''' major C F G ♮ 1♭ 1♯ ...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 285, 89, 74, 2647, 4583, 31904, 532, 4166, 416, 7408, 303, 22649, 287, 21015, 357, 5450, 1378, 46309, 13, 303, 22649, 14, 76, 89, 74, 8, 198, 2, 38491, 13, 9078, 198, 198, 45597...
1.597758
2,230
# Generated by Django 2.0.2 on 2018-02-28 06:57 from django.db import migrations, models
[ 2, 2980, 515, 416, 37770, 362, 13, 15, 13, 17, 319, 2864, 12, 2999, 12, 2078, 9130, 25, 3553, 198, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 11, 4981, 628 ]
2.84375
32
import unittest from datetime import datetime import pytz from yoti_python_sdk.doc_scan.session.retrieve.media_response import MediaResponse if __name__ == "__main__": unittest.main()
[ 11748, 555, 715, 395, 198, 6738, 4818, 8079, 1330, 4818, 8079, 198, 198, 11748, 12972, 22877, 198, 198, 6738, 331, 5092, 62, 29412, 62, 21282, 74, 13, 15390, 62, 35836, 13, 29891, 13, 1186, 30227, 13, 11431, 62, 26209, 1330, 6343, 310...
2.924242
66
df['pseudonym'] = df['username'].map( lambda x: fakes.user_name()) df['pseudonym'].head()
[ 7568, 17816, 7752, 463, 5177, 20520, 796, 47764, 17816, 29460, 6, 4083, 8899, 7, 198, 220, 220, 220, 220, 220, 220, 220, 37456, 2124, 25, 277, 1124, 13, 7220, 62, 3672, 28955, 198, 7568, 17816, 7752, 463, 5177, 6, 4083, 2256, 3419, ...
2.27907
43
##given length and sum #find length of longest subarr having elements that sum to anumber les than or euql to k # for item in get_all_contiguous_sublists([1, 2, 4, 5, 6, 7, 7]): # print(item) ##one liner for this L = [1, 2, 3] print(subs(L)) lengths_ = [] ds = list(map(lambda x: sums_leng(x, 3), subs...
[ 2235, 35569, 4129, 290, 2160, 201, 198, 2, 19796, 4129, 286, 14069, 850, 3258, 1719, 4847, 326, 2160, 284, 281, 4494, 10287, 621, 393, 304, 84, 13976, 284, 479, 201, 198, 201, 198, 2, 329, 2378, 287, 651, 62, 439, 62, 3642, 29709, ...
2.520833
336
""" convert string captures to various datatypes """ try: from collections.abc import Sequence as _Sequence except ImportError: from collections import Sequence as _Sequence def cast(seq): """ cast each string in a nested sequence to int or float, if possible (recursive) """ if _is_string(seq)...
[ 37811, 10385, 4731, 23007, 284, 2972, 4818, 265, 9497, 198, 37811, 198, 28311, 25, 198, 220, 220, 220, 422, 17268, 13, 39305, 1330, 45835, 355, 4808, 44015, 594, 198, 16341, 17267, 12331, 25, 198, 220, 220, 220, 422, 17268, 1330, 45835,...
2.52862
297
#!/usr/bin/env python import centillion import logging import os log_dir = '/var/log/centillion' log_file = os.path.join(log_dir,'centillion.log') logging.basicConfig(level=logging.INFO, filename=log_file, filemode='w') CONFIG_FILE = 'config_gdrive.py' HERE = os.path.split(os....
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 11748, 1247, 1131, 198, 11748, 18931, 198, 11748, 28686, 198, 198, 6404, 62, 15908, 796, 31051, 7785, 14, 6404, 14, 1087, 1131, 6, 198, 6404, 62, 7753, 796, 28686, 13, 6978, 13, 22179,...
2.21608
199
from django.contrib import admin from django.contrib.auth.models import Group # Register your models here. admin.site.site_header = 'Administração votAluno' admin.site.site_title = 'Administração votAluno' admin.site.index_title = 'Administração votAluno' admin.site.unregister(Group);
[ 6738, 42625, 14208, 13, 3642, 822, 1330, 13169, 198, 6738, 42625, 14208, 13, 3642, 822, 13, 18439, 13, 27530, 1330, 4912, 198, 2, 17296, 534, 4981, 994, 13, 198, 198, 28482, 13, 15654, 13, 15654, 62, 25677, 796, 705, 41862, 430, 16175...
3.075269
93
# coding=utf-8 from time import sleep from collections import namedtuple import readchar from math import * import numpy import json import pigpio from plotter import Plotter, Pen from turtle_plotter import PantoGraphTurtle class PantoGraph(Plotter): """A drawing robot with a pantograph design.""" # ------...
[ 2, 19617, 28, 40477, 12, 23, 198, 198, 6738, 640, 1330, 3993, 198, 6738, 17268, 1330, 3706, 83, 29291, 198, 11748, 1100, 10641, 198, 6738, 10688, 1330, 1635, 198, 11748, 299, 32152, 198, 11748, 33918, 198, 11748, 12967, 79, 952, 198, ...
2.266533
1,497
#!/usr/bin/env python """Wrapper for running the panaroo IMG model esimtator on gene frequencies""" from panaroo.estimate_img_params import main if __name__ == '__main__': main()
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 37811, 36918, 2848, 329, 2491, 262, 3425, 38049, 8959, 38, 2746, 1658, 320, 83, 1352, 319, 9779, 19998, 37811, 198, 198, 6738, 3425, 38049, 13, 395, 1920, 62, 9600, 62, 37266, 1330, 13...
3.032787
61
''' urlycue's private modules ''' type(1 or 0 @ 0) # Python >= 3.5 is required
[ 7061, 6, 198, 333, 306, 15509, 338, 2839, 13103, 198, 7061, 6, 198, 198, 4906, 7, 16, 393, 657, 2488, 657, 8, 220, 1303, 11361, 18189, 513, 13, 20, 318, 2672, 198 ]
2.53125
32
# # PySNMP MIB module APAMI-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/APAMI-MIB # Produced by pysmi-0.3.4 at Mon Apr 29 17:07:15 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar 27 2019, 09:23...
[ 2, 198, 2, 9485, 15571, 7378, 337, 9865, 8265, 3486, 43870, 12, 8895, 33, 357, 4023, 1378, 16184, 76, 489, 8937, 13, 785, 14, 79, 893, 11632, 8, 198, 2, 7054, 45, 13, 16, 2723, 2393, 1378, 14, 14490, 14, 67, 615, 47562, 19, 14, ...
2.484887
1,555
from openpyxl import Workbook from openpyxl import load_workbook # 读取文件 # file = '/Users/jerry/Downloads/佛山.xlsx' # def getDataOnly(file): # wb = load_workbook(file) # ws = wb.worksheets[0] # for row in ws.values: # for value in row: # print(value) # # getDataOnly(file) wb = Workbook(...
[ 6738, 1280, 9078, 87, 75, 1330, 5521, 2070, 198, 6738, 1280, 9078, 87, 75, 1330, 3440, 62, 1818, 2070, 198, 198, 2, 5525, 107, 119, 20998, 244, 23877, 229, 20015, 114, 198, 2, 2393, 796, 31051, 14490, 14, 73, 6996, 14, 10002, 82, ...
1.991342
231
import pandas as pd import seaborn as sns import matplotlib.pyplot as plt from plotnine import ggplot, aes, geom_point from plotnine import * all_info_filename = "/Users/sagnik/work/ABRIDGE/Abridge_analysis_for_MS/all_info_prev.csv" all_info = pd.read_csv(all_info_filename, index_col = 0) all_info = all_info.T # C...
[ 11748, 19798, 292, 355, 279, 67, 198, 11748, 384, 397, 1211, 355, 3013, 82, 198, 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 198, 6738, 7110, 30888, 1330, 308, 70, 29487, 11, 257, 274, 11, 4903, 296, 62, 4122, 198, 6738...
2.087234
1,410
from api.v1.auth import login # noqa from api.v1.auth import logout # noqa from api.v1.auth import register # noqa
[ 6738, 40391, 13, 85, 16, 13, 18439, 1330, 17594, 220, 1303, 645, 20402, 198, 6738, 40391, 13, 85, 16, 13, 18439, 1330, 2604, 448, 220, 1303, 645, 20402, 198, 6738, 40391, 13, 85, 16, 13, 18439, 1330, 7881, 220, 1303, 645, 20402, 198...
2.744186
43
from django.apps import AppConfig
[ 6738, 42625, 14208, 13, 18211, 1330, 2034, 16934, 628 ]
3.888889
9
# -*- coding: utf-8 -*- """ Module to define CONSTANTS used across the project """ import os from webargs import fields from marshmallow import Schema, INCLUDE # identify basedir for the package BASE_DIR = os.path.dirname(os.path.normpath(os.path.dirname(__file__))) # default location for input and output data, e....
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 198, 220, 220, 19937, 284, 8160, 7102, 2257, 1565, 4694, 973, 1973, 262, 1628, 198, 37811, 198, 11748, 28686, 198, 6738, 3992, 22046, 1330, 7032, 198, 6738, 22397, ...
2.30934
1,167
""" This script calculates the Hamming distance (proportion of mis-matching corresponding bits) between two binary arrays """ import bob.bio.base import scipy.spatial.distance algorithm = bob.bio.base.algorithm.Distance( distance_function = scipy.spatial.distance.hamming, is_distance_function = True )
[ 37811, 770, 4226, 43707, 262, 4345, 2229, 5253, 357, 1676, 16864, 286, 2984, 12, 15699, 278, 11188, 10340, 8, 1022, 734, 13934, 26515, 37227, 198, 198, 11748, 29202, 13, 65, 952, 13, 8692, 198, 11748, 629, 541, 88, 13, 2777, 34961, 13...
3.329787
94
''' A simple REST API exposing a swagger schema. ''' import logging import os.path from flask import request from flask_restplus import Resource, fields from common import main, api log = logging.getLogger(__name__) example_ns = api.namespace('example', description="Example operations") # Define some custom fie...
[ 7061, 6, 198, 32, 2829, 30617, 7824, 21294, 257, 1509, 7928, 32815, 13, 198, 7061, 6, 198, 11748, 18931, 198, 11748, 28686, 13, 6978, 198, 198, 6738, 42903, 1330, 2581, 198, 6738, 42903, 62, 2118, 9541, 1330, 20857, 11, 7032, 198, 198...
2
1,360
from pywinauto.application import Application app = Application().Start(cmd_line=u'"B:\\Program Files (x86)\\AbilityCash\\AbilityCash.exe" ') menu_item = app[u'AC-MW'].MenuItem(u'Просмотр->Операции Alt+2').Click() menu_item2 = app[u'AC-MW'].MenuItem(u'Действия->Добавить Insert').Click() window = app.Dialog # <---...
[ 6738, 12972, 86, 1437, 9390, 13, 31438, 1330, 15678, 198, 198, 1324, 796, 15678, 22446, 10434, 7, 28758, 62, 1370, 28, 84, 29653, 33, 25, 6852, 15167, 13283, 357, 87, 4521, 8, 6852, 22453, 35361, 6852, 22453, 35361, 13, 13499, 1, 705,...
1.605603
464
# The MIT License (MIT) # Copyright (c) 2019 by the xcube development team and contributors # # Permission is hereby granted, free of charge, to any person obtaining a copy of # this software and associated documentation files (the "Software"), to deal in # the Software without restriction, including without limitation...
[ 2, 383, 17168, 13789, 357, 36393, 8, 198, 2, 15069, 357, 66, 8, 13130, 416, 262, 2124, 40296, 2478, 1074, 290, 20420, 198, 2, 198, 2, 2448, 3411, 318, 29376, 7520, 11, 1479, 286, 3877, 11, 284, 597, 1048, 16727, 257, 4866, 286, 19...
3.29517
559
# MOSTRA PALAVRAS AO CONTRÁRIO palavra = input("Digite uma palavra para vê-la ao contrário:") a = palavra[::-1] print(a)
[ 2, 337, 10892, 3861, 40795, 10116, 49, 1921, 317, 46, 27342, 127, 223, 7112, 46, 198, 18596, 615, 430, 796, 5128, 7203, 19511, 578, 334, 2611, 6340, 615, 430, 31215, 410, 25792, 12, 5031, 257, 78, 3445, 6557, 27250, 25, 4943, 198, 6...
2.105263
57
import serial # 引用pySerial模組 import binascii import threading from time import sleep, time from random import randint if __name__ == "__main__": usb = usb() usb.AddClient('COM3', 9600, show = True) usb.Run() while True: sleep(1) usb.UserSend() usb.Close()
[ 11748, 11389, 220, 1303, 10263, 120, 243, 18796, 101, 9078, 32634, 162, 101, 94, 163, 113, 226, 198, 11748, 9874, 292, 979, 72, 198, 11748, 4704, 278, 198, 6738, 640, 1330, 3993, 11, 640, 198, 220, 220, 220, 220, 628, 198, 6738, 473...
2.253731
134
from django.apps import apps from django.test import TestCase from drf_imgproxy.apps import DrfImgproxyConfig
[ 6738, 42625, 14208, 13, 18211, 1330, 6725, 198, 6738, 42625, 14208, 13, 9288, 1330, 6208, 20448, 198, 198, 6738, 1553, 69, 62, 9600, 36436, 13, 18211, 1330, 1583, 69, 3546, 70, 36436, 16934, 628 ]
3.294118
34
from .load_backend import backend from .load_backend import load_inference_model from .load_backend import load_training_model from .load_backend import preprocess_image from .load_backend import get_losses from .load_backend import create_generators
[ 6738, 764, 2220, 62, 1891, 437, 1330, 30203, 198, 6738, 764, 2220, 62, 1891, 437, 1330, 3440, 62, 259, 4288, 62, 19849, 198, 6738, 764, 2220, 62, 1891, 437, 1330, 3440, 62, 34409, 62, 19849, 198, 6738, 764, 2220, 62, 1891, 437, 1330...
3.5
72
from py_factorio_blueprints.entity_mixins import * fluid = 'fluid' item = 'item' virtual = 'virtual' tile = 'tile' recipe = 'recipe' defaultentities = { # ADD MORE (vanilla) AS YOU PLEASE (or modded if it's just for you)! # Somebody will probably automate the gathering of this data soon... ...
[ 6738, 12972, 62, 31412, 952, 62, 17585, 17190, 13, 26858, 62, 19816, 1040, 1330, 1635, 198, 35522, 312, 796, 705, 35522, 312, 6, 198, 9186, 796, 705, 9186, 6, 198, 32844, 796, 705, 32844, 6, 198, 40927, 796, 705, 40927, 6, 198, 2910...
1.839415
11,072
# 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 # d...
[ 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, 220, 220, ...
2.320883
2,356
#!/usr/bin/python # # Copyright 2017 The Goma Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. import argparse import subprocess import sys if __name__ == '__main__': main()
[ 2, 48443, 14629, 14, 8800, 14, 29412, 198, 2, 198, 2, 15069, 2177, 383, 402, 6086, 46665, 13, 1439, 2489, 10395, 13, 198, 2, 5765, 286, 428, 2723, 2438, 318, 21825, 416, 257, 347, 10305, 12, 7635, 5964, 326, 460, 307, 198, 2, 1043...
3.3
80
#!/usr/bin/env python #=============================================================================== # Copyright (c) 2014 Geoscience Australia # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: #...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 23926, 25609, 18604, 198, 2, 15069, 357, 66, 8, 220, 1946, 2269, 418, 4234, 4505, 198, 2, 1439, 2489, 10395, 13, 198, 2, 220, 198, 2, 2297, 396, 3890, 290, 779, 287, 2723, 290, ...
3.508966
725
# Copyright 2018 Amazon.com, Inc. or its affiliates. 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. A copy of # the License is located at # # http://aws.amazon.com/apache2.0/ # # or in the "license" file acc...
[ 2, 15069, 2864, 6186, 13, 785, 11, 3457, 13, 393, 663, 29116, 13, 1439, 6923, 33876, 13, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 11074, 921, 198, 2, 743, 407, 779, 428, 2393, ...
3.01528
589
import RPi.GPIO as GPIO import time import subprocess from ScriptRobot import ScriptRobot GPIO.setmode(GPIO.BCM) GPIO.setup(18, GPIO.IN, pull_up_down=GPIO.PUD_UP) while True: input_state = GPIO.input(18) if input_state == True: R = ScriptRobot() R.Connect() R.ParserMove() time.sleep(10)
[ 11748, 25812, 72, 13, 16960, 9399, 355, 50143, 198, 11748, 640, 198, 11748, 850, 14681, 198, 6738, 12327, 14350, 313, 1330, 12327, 14350, 313, 198, 16960, 9399, 13, 2617, 14171, 7, 16960, 9399, 13, 2749, 44, 8, 198, 16960, 9399, 13, 4...
2.333333
135
#!/usr/local/bin/python # -*- coding: utf-8 -*- """ Utility functions for generating "lorem ipsum" Latin text. """ from __future__ import unicode_literals import random COMMON_P = 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad...
[ 2, 48443, 14629, 14, 12001, 14, 8800, 14, 29412, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 37811, 198, 18274, 879, 5499, 329, 15453, 366, 75, 29625, 220, 2419, 388, 1, 9133, 2420, 13, 198, 37811, 198...
2.310587
1,993
import json from mazesolver.src.pathfinding import MazeParser from mazesolver.src.exceptions import MazeparsingError
[ 11748, 33918, 198, 6738, 285, 36096, 14375, 13, 10677, 13, 6978, 41070, 1330, 33412, 46677, 198, 6738, 285, 36096, 14375, 13, 10677, 13, 1069, 11755, 1330, 21625, 538, 945, 278, 12331, 628, 628, 628, 628, 198 ]
3.472222
36
class TestArgument: """Representation of a single test parameter. This class holds the same data as passed to add_argument method in the argparse.ArgumentParser class. """ def __init__(self, flag_names, flag_args): """Create a TestParser class instance. Each parameter passed to th...
[ 4871, 6208, 28100, 1713, 25, 198, 220, 220, 220, 37227, 40171, 341, 286, 257, 2060, 1332, 11507, 13, 628, 220, 220, 220, 770, 1398, 6622, 262, 976, 1366, 355, 3804, 284, 751, 62, 49140, 2446, 287, 262, 198, 220, 220, 220, 1822, 2957...
2.926554
177
#! /usr/bin/env python """ # SCardGetAttrib.py: get SCARD_ATTR_VENDOR_IFD_SERIAL_NO PC/SC attribute # Copyright (C) 2010 Ludovic Rousseau """ # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Fou...
[ 2, 0, 1220, 14629, 14, 8800, 14, 24330, 21015, 198, 198, 37811, 198, 2, 220, 220, 6374, 446, 3855, 8086, 822, 13, 9078, 25, 651, 6374, 9795, 62, 1404, 5446, 62, 53, 10619, 1581, 62, 5064, 35, 62, 35009, 12576, 62, 15285, 4217, 14,...
2.832095
673
#!/usr/bin/env python # vim: tabstop=4 shiftwidth=4 softtabstop=4 """ Name : interactive.py Author : Nitish Krishna Description : This in an implementation of the Cliff InteractiveApp Class This class allows intelligent auto-completion of options in the ciff shell command line """ import cmd2 from cliff.i...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 198, 2, 43907, 25, 7400, 11338, 28, 19, 6482, 10394, 28, 19, 2705, 8658, 11338, 28, 19, 198, 37811, 198, 220, 220, 6530, 1058, 14333, 13, 9078, 198, 220, 220, 6434, 1058, 24282, 680,...
3.630435
138
#! /usr/bin/env python """ Creates the Blueprint for the secondary app """ import sys sys.dont_write_bytecode = True from flask import Blueprint topology_builder = Blueprint("topology_builder", __name__)
[ 2, 0, 1220, 14629, 14, 8800, 14, 24330, 21015, 198, 37811, 198, 16719, 274, 262, 39932, 329, 262, 9233, 598, 198, 37811, 198, 11748, 25064, 198, 198, 17597, 13, 67, 756, 62, 13564, 62, 26327, 8189, 796, 6407, 198, 6738, 42903, 1330, ...
3.322581
62
#!/usr/bin/env python3 __author__ = 'Pavel Polishchuk' import argparse import sys from read_input import read_input from rdkit import Chem from multiprocessing import Pool, cpu_count if __name__ == '__main__': main()
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 198, 834, 9800, 834, 796, 705, 28875, 626, 15945, 46019, 6, 198, 198, 11748, 1822, 29572, 198, 11748, 25064, 198, 6738, 1100, 62, 15414, 1330, 1100, 62, 15414, 198, 6738, 374, 67, ...
2.935897
78
#A quick script to sort the images from the Editied Pictures directory into #Training, Testing and Validation import os import sys import shutil root_dir="C:\\Users\\Noah\\Documents\\CISL\\CISL_HandGesture\\PicturesEdited" train_dir="C:\\Users\\Noah\\Documents\\CISL\\CISL_HandGesture\\Training" test_dir="C:\\Users\\No...
[ 2, 32, 2068, 4226, 284, 3297, 262, 4263, 422, 262, 5312, 798, 20051, 8619, 656, 198, 2, 44357, 11, 23983, 290, 3254, 24765, 198, 11748, 28686, 198, 11748, 25064, 198, 11748, 4423, 346, 198, 198, 15763, 62, 15908, 2625, 34, 25, 6852, ...
2.678201
289
#!/usr/bin/env python3 import argparse import functools import glob import time import os import sys import time import types import shm import signal as _signal from datetime import datetime import subprocess from auvlog.client import log from misc.utils import register_exit_signals from mission.framework.primitive i...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 11748, 1822, 29572, 198, 11748, 1257, 310, 10141, 198, 11748, 15095, 198, 11748, 640, 198, 11748, 28686, 198, 11748, 25064, 198, 11748, 640, 198, 11748, 3858, 198, 11748, 427, 76, 19...
2.576007
2,434
from robot.python.demonstration.replayer_ros import ReplayerRos from robot.python.demonstration.replayer import Replayer import numpy as np import sys import pickle import sapyen_robot import transforms3d if __name__ == '__main__': sapyen_robot.ros.init(sys.argv, "recorder") main()
[ 6738, 9379, 13, 29412, 13, 26567, 12401, 13, 260, 7829, 62, 4951, 1330, 797, 7829, 35740, 198, 6738, 9379, 13, 29412, 13, 26567, 12401, 13, 260, 7829, 1330, 797, 7829, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 25064, 198, 11748, ...
2.95
100
import pandas as pd import numpy as np # import nltk # import re # from nltk.corpus import stopwords # from nltk.tokenize import word_tokenize import math
[ 11748, 19798, 292, 355, 279, 67, 198, 11748, 299, 32152, 355, 45941, 198, 2, 1330, 299, 2528, 74, 198, 2, 1330, 302, 198, 2, 422, 299, 2528, 74, 13, 10215, 79, 385, 1330, 2245, 10879, 198, 2, 422, 299, 2528, 74, 13, 30001, 1096, ...
2.909091
55
import boto3 import ast
[ 11748, 275, 2069, 18, 198, 11748, 6468, 198 ]
3
8
# Copyright 2021 Google 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/licenses/LICENSE-2.0 # # Unless required by applicable law o...
[ 2, 15069, 33448, 3012, 11419, 13, 1439, 6923, 33876, 13, 198, 2, 220, 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.608511
235
"""Collects four images to a quad.""" from itertools import islice import click from PIL import Image from ..param import COLOR from .crop import crop from .resize import resize @click.command(name="quad") @click.option( "-w", "--width", type=click.INT, default=3072, show_default=True, hel...
[ 37811, 31337, 82, 1440, 4263, 284, 257, 15094, 526, 15931, 198, 198, 6738, 340, 861, 10141, 1330, 318, 75, 501, 198, 198, 11748, 3904, 198, 6738, 350, 4146, 1330, 7412, 198, 198, 6738, 11485, 17143, 1330, 20444, 1581, 198, 6738, 764, ...
2.559838
493
from enum import Enum import numpy as np class Graph: """ NodeV vertices[] int n_vertices """ """ Checks whether graph is empty """ """ Checks whether vertex g_dest already has an edge with vertex g_src If it doesn't, insert new edge between them """ """ Sear...
[ 6738, 33829, 1330, 2039, 388, 198, 11748, 299, 32152, 355, 45941, 198, 198, 4871, 29681, 25, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 19081, 53, 9421, 1063, 21737, 198, 220, 220, 220, 493, 299, 62, 1851, 1063, 198, 220, 220, 2...
2.652941
340
#! /usr/bin/env python # coding: utf-8 import os import numpy import sys from pdb import set_trace import getopt # this file/module is seemingly unused ''' TODO: ''' # add path to bbob_pproc #filepath = '/home/fst/coco/BBOB/code/python/bbob_pproc/' #sys.path.append(os.path.join(filepath, os.path.pardir)) if __name__...
[ 2, 0, 1220, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 19617, 25, 3384, 69, 12, 23, 198, 198, 11748, 28686, 198, 11748, 299, 32152, 198, 11748, 25064, 198, 6738, 279, 9945, 1330, 900, 62, 40546, 198, 11748, 651, 8738, 198, 198, 2, ...
2.177157
5,481
import os import numpy as np from PyQt5.QtWidgets import QTextEdit, QListWidgetItem from PyQt5.QtCore import pyqtSlot #### helper functions html_escape_table = { "&": "&amp;", '"': "&quot;", "'": "&apos;", ">": "&gt;", "<": "&lt;", } def html_escape(text): """Produce entities within text...
[ 11748, 28686, 198, 11748, 299, 32152, 355, 45941, 198, 6738, 9485, 48, 83, 20, 13, 48, 83, 54, 312, 11407, 1330, 1195, 8206, 18378, 11, 1195, 8053, 38300, 7449, 198, 6738, 9485, 48, 83, 20, 13, 48, 83, 14055, 1330, 12972, 39568, 389...
2.270588
170
import numpy as np import os, os.path from skimage import io def classify(clf, img, classes): ''' Find image among classes that is closest to img. ''' distances = np.array(list(map(lambda img2: clf.Distance(img, img2), classes))) distances = distances / np.sum(distances) return distances.a...
[ 11748, 299, 32152, 355, 45941, 198, 11748, 28686, 11, 28686, 13, 6978, 198, 6738, 1341, 9060, 1330, 33245, 198, 198, 4299, 36509, 7, 565, 69, 11, 33705, 11, 6097, 2599, 198, 220, 220, 220, 705, 7061, 198, 220, 220, 220, 9938, 2939, ...
2.083591
646
from typing import Dict from .base_checker import BaseEngineStatusChecker, EngineStatus from const.query_execution import QueryEngineStatus
[ 6738, 19720, 1330, 360, 713, 198, 6738, 764, 8692, 62, 9122, 263, 1330, 7308, 13798, 19580, 9787, 263, 11, 7117, 19580, 198, 6738, 1500, 13, 22766, 62, 18558, 1009, 1330, 43301, 13798, 19580, 628 ]
4.147059
34