content
stringlengths
1
1.05M
input_ids
listlengths
1
883k
ratio_char_token
float64
1
22.9
token_count
int64
1
883k
import asyncio import traceback import unittest
[ 11748, 30351, 952, 198, 11748, 12854, 1891, 198, 11748, 555, 715, 395, 628 ]
3.769231
13
from django.shortcuts import render, render_to_response, redirect from django.contrib import auth from django.contrib.auth.forms import UserCreationForm from django.template.context_processors import csrf from django.http import HttpResponseRedirect
[ 6738, 42625, 14208, 13, 19509, 23779, 1330, 8543, 11, 8543, 62, 1462, 62, 26209, 11, 18941, 198, 6738, 42625, 14208, 13, 3642, 822, 1330, 6284, 198, 6738, 42625, 14208, 13, 3642, 822, 13, 18439, 13, 23914, 1330, 11787, 12443, 341, 8479,...
3.577465
71
from Facepatchindependenttrain import runPatch import sys if len(sys.argv)==6: runPatch(GPU_Device_ID=1, FacePatchID=int(sys.argv[1]), trainpklID=int(sys.argv[2]), testpklID=int(sys.argv[3]), NetworkType=int(sys.argv[4]), runs=int(sys.argv[5])) ...
[ 6738, 13585, 538, 963, 34750, 27432, 1330, 1057, 33952, 201, 198, 11748, 25064, 201, 198, 201, 198, 361, 18896, 7, 17597, 13, 853, 85, 8, 855, 21, 25, 201, 198, 220, 220, 220, 1057, 33952, 7, 33346, 62, 24728, 62, 2389, 28, 16, 11...
1.977578
223
#!/usr/bin/env python # -*- coding: utf-8 -*- from translate.convert import po2tmx from translate.convert import test_convert from translate.misc import wStringIO from translate.storage import tmx from translate.storage import lisa
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 6738, 15772, 13, 1102, 1851, 1330, 745, 17, 17209, 87, 198, 6738, 15772, 13, 1102, 1851, 1330, 1332, 62, 1102, 1...
3.263889
72
# coding: utf-8 # Module: commands # Created on: 28.07.2015 # Author: Roman Miroshnychenko aka Roman V.M. (romanvm@yandex.ua) # Licence: GPL v.3: http://www.gnu.org/copyleft/gpl.html """ Context menu commands """ import sys import xbmc import xbmcgui import json_requests as jsonrq from simpleplugin import Addon addon...
[ 2, 19617, 25, 3384, 69, 12, 23, 198, 2, 19937, 25, 9729, 198, 2, 15622, 319, 25, 2579, 13, 2998, 13, 4626, 198, 2, 6434, 25, 7993, 337, 7058, 1477, 3281, 45059, 22430, 7993, 569, 13, 44, 13, 357, 47119, 14761, 31, 88, 392, 1069,...
1.883509
1,425
#!/usr/bin/env python from distutils.core import setup setup(name='Mimik', version='1.0', description='Python framework for markov models', author='George Dittmar', author_email='georgedittmar@gmail.com', url='https://www.python.org/sigs/distutils-sig/', packages=['distutils', 'dis...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 198, 6738, 1233, 26791, 13, 7295, 1330, 9058, 198, 198, 40406, 7, 3672, 11639, 44, 320, 1134, 3256, 198, 220, 220, 220, 220, 220, 2196, 11639, 16, 13, 15, 3256, 198, 220, 220, 220, ...
2.471429
140
import os import shutil import sqlite3 import tarfile from datetime import datetime import bagit
[ 11748, 28686, 198, 11748, 4423, 346, 198, 11748, 44161, 578, 18, 198, 11748, 13422, 7753, 198, 6738, 4818, 8079, 1330, 4818, 8079, 198, 11748, 6131, 270, 628, 198 ]
3.535714
28
def evalRec(env, rec): """hl_reportable""" return (len(set(rec.Genes) & { 'ABHD12', 'ACTG1', 'ADGRV1', 'AIFM1', 'ATP6V1B1', 'BCS1L', 'BSND', 'CABP2', 'CACNA1D', 'CDC14A', '...
[ 4299, 5418, 6690, 7, 24330, 11, 664, 2599, 198, 220, 220, 220, 37227, 18519, 62, 13116, 540, 37811, 198, 220, 220, 220, 1441, 357, 11925, 7, 2617, 7, 8344, 13, 13746, 274, 8, 1222, 198, 220, 220, 220, 220, 220, 220, 220, 1391, 198...
1.234917
1,873
import sklearn import pandas import seaborn as sns import matplotlib.pyplot as pyplot from functools import reduce # import numpy as np
[ 11748, 1341, 35720, 198, 11748, 19798, 292, 198, 11748, 384, 397, 1211, 355, 3013, 82, 198, 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 12972, 29487, 198, 6738, 1257, 310, 10141, 1330, 4646, 198, 2, 1330, 299, 32152, 355, 45941, 628...
3.227273
44
import warnings from unittest.mock import patch from django.apps import apps from django.core import management from django.core.management.base import CommandError from django.db import models from django.db.utils import ProgrammingError from django.test import TransactionTestCase, tag from django_pgschemas.checks i...
[ 11748, 14601, 198, 6738, 555, 715, 395, 13, 76, 735, 1330, 8529, 198, 198, 6738, 42625, 14208, 13, 18211, 1330, 6725, 198, 6738, 42625, 14208, 13, 7295, 1330, 4542, 198, 6738, 42625, 14208, 13, 7295, 13, 27604, 13, 8692, 1330, 9455, 1...
3.401408
142
# Lint as: python2, python3 # Copyright 2019 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 req...
[ 2, 406, 600, 355, 25, 21015, 17, 11, 21015, 18, 198, 2, 15069, 13130, 3012, 11419, 13, 1439, 6923, 33876, 13, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 2, 345, 743, ...
3.822222
315
# https://github.com/git/git/blob/master/Documentation/technical/index-format.txt
[ 2, 3740, 1378, 12567, 13, 785, 14, 18300, 14, 18300, 14, 2436, 672, 14, 9866, 14, 24941, 341, 14, 47944, 14, 9630, 12, 18982, 13, 14116, 198 ]
3.037037
27
# -*- coding: utf-8 -*- """ Created on Wed Oct 13 14:47:13 2021 @author: huzongxiang """ import tensorflow as tf from tensorflow.keras import layers
[ 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 198, 41972, 319, 3300, 2556, 1511, 1478, 25, 2857, 25, 1485, 33448, 198, 198, 31, 9800, 25, 289, 10277, 506, 87, 15483, 198, 37811, 198, 198, 11748, 11192, ...
2.492063
63
from .demo import * SITE.verbose_name = SITE.verbose_name + " (:memory:)" # SITE = Site(globals(), title=Site.title+" (:memory:)") DATABASES['default']['NAME'] = ':memory:'
[ 6738, 764, 9536, 78, 1330, 1635, 198, 50, 12709, 13, 19011, 577, 62, 3672, 796, 311, 12709, 13, 19011, 577, 62, 3672, 1343, 366, 357, 25, 31673, 25, 16725, 198, 2, 311, 12709, 796, 14413, 7, 4743, 672, 874, 22784, 3670, 28, 29123, ...
2.402778
72
from django.urls import path from . import views app_name = 'reservation' urlpatterns = [ path('', views.reserve_table, name = 'reserve_table'), ]
[ 6738, 42625, 14208, 13, 6371, 82, 1330, 3108, 198, 6738, 764, 1330, 5009, 198, 198, 1324, 62, 3672, 796, 705, 411, 13208, 6, 198, 198, 6371, 33279, 82, 796, 685, 198, 220, 220, 220, 3108, 10786, 3256, 5009, 13, 411, 3760, 62, 11487,...
2.814815
54
__version__ = '7.8.0' _optional_dependencies = [ { 'name': 'CuPy', 'packages': [ 'cupy-cuda120', 'cupy-cuda114', 'cupy-cuda113', 'cupy-cuda112', 'cupy-cuda111', 'cupy-cuda110', 'cupy-cuda102', 'cupy-cud...
[ 834, 9641, 834, 796, 705, 22, 13, 23, 13, 15, 6, 628, 198, 62, 25968, 62, 45841, 3976, 796, 685, 198, 220, 220, 220, 1391, 198, 220, 220, 220, 220, 220, 220, 220, 705, 3672, 10354, 705, 46141, 20519, 3256, 198, 220, 220, 220, 22...
1.543893
524
# coding=UTF-8 # This Python file uses the following encoding: utf-8 import cv2 import numpy as np import xml.etree.cElementTree as ET from random import sample #default args: default_args = {'noise_prob': 0.1, 'gasuss_mean': 0, 'gasuss_var': 0.001, 'rand_hug': 30, ...
[ 2, 19617, 28, 48504, 12, 23, 198, 2, 770, 11361, 2393, 3544, 262, 1708, 21004, 25, 3384, 69, 12, 23, 198, 198, 11748, 269, 85, 17, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 35555, 13, 316, 631, 13, 66, 20180, 27660, 355, 121...
1.894932
2,427
#!/usr/bin/env python3 """ Author : Roman Koziy <koziyroman@gmail.com> Date : 2021-12-15 Purpose: Working with lists """ import argparse # -------------------------------------------------- def get_args(): """Get command-line arguments""" parser = argparse.ArgumentParser( description="Working with...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 37811, 198, 13838, 1058, 7993, 40772, 7745, 1279, 7204, 89, 7745, 47119, 31, 14816, 13, 785, 29, 198, 10430, 220, 220, 1058, 33448, 12, 1065, 12, 1314, 198, 30026, 3455, 25, 14594,...
2.255988
668
side_a=int(input("Enter the first side(a):")) side_b=int(input("Enter the second side(b):")) side_c=int(input("Enter the third side(c):")) if side_a==side_b and side_a==side_c: print("The triangle is an equilateral triangle.") elif side_a==side_b or side_a==side_c or side_b==side_c: print("The triangle is...
[ 1589, 62, 64, 28, 600, 7, 15414, 7203, 17469, 262, 717, 1735, 7, 64, 2599, 48774, 201, 198, 1589, 62, 65, 28, 600, 7, 15414, 7203, 17469, 262, 1218, 1735, 7, 65, 2599, 48774, 201, 198, 1589, 62, 66, 28, 600, 7, 15414, 7203, 1746...
2.684564
149
# -*- coding: utf-8 -*- from flask import Blueprint, request from david.lib.template import st from .model import Artist bp = Blueprint('artist', __name__)
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 6738, 42903, 1330, 39932, 11, 2581, 198, 6738, 21970, 13, 8019, 13, 28243, 1330, 336, 198, 6738, 764, 19849, 1330, 18902, 198, 198, 46583, 796, 39932, 10786, 49016, 3256, ...
3.291667
48
import numpy as np import cv2 import os import json import glob from PIL import Image, ImageDraw plate_diameter = 25 #cm plate_depth = 1.5 #cm plate_thickness = 0.2 #cm img = cv2.imread("out.png",0) print(get_volume(img,"test.json"))
[ 11748, 299, 32152, 355, 45941, 198, 11748, 269, 85, 17, 198, 11748, 28686, 198, 11748, 33918, 198, 11748, 15095, 198, 6738, 350, 4146, 1330, 7412, 11, 7412, 25302, 198, 198, 6816, 62, 67, 13173, 796, 1679, 1303, 11215, 198, 6816, 62, ...
2.604396
91
#!/usr/bin/env python """ A script to create tags for CMT managed packages. Call from within cmt/ directory """ import subprocess import sys import os from optparse import OptionParser __author__ = 'Tianlu Yuan' __email__ = 'tianlu.yuan [at] colorado.edu' # Ignore large external packages for now IGNORES = ['CMT', ...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 37811, 198, 32, 4226, 284, 2251, 15940, 329, 327, 13752, 5257, 10392, 13, 198, 198, 14134, 422, 1626, 12067, 83, 14, 8619, 198, 37811, 198, 11748, 850, 14681, 198, 11748, 25064, 198, 1...
2.244413
2,148
# -*- coding: utf-8 -*- ''' This module contains all of the routines needed to set up a master server, this involves preparing the three listeners and the workers needed by the master. ''' from __future__ import absolute_import # Import python libs import fnmatch import logging import os import re import time import s...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 7061, 6, 198, 1212, 8265, 4909, 477, 286, 262, 31878, 2622, 284, 900, 510, 257, 4958, 4382, 11, 428, 198, 16340, 9010, 10629, 262, 1115, 22054, 290, 262, 3259, 2622, 4...
1.991634
3,586
# coding: utf-8 # # Copyright 2017 The Oppia Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless requi...
[ 2, 19617, 25, 3384, 69, 12, 23, 198, 2, 198, 2, 15069, 2177, 383, 9385, 544, 46665, 13, 1439, 6923, 33876, 13, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 2, 345, 743...
3.690196
255
from __future__ import absolute_import from __future__ import division from __future__ import print_function import cntk as C import numpy as np from .common import floatx, epsilon, image_dim_ordering, image_data_format from collections import defaultdict from contextlib import contextmanager import warnings C.set_g...
[ 6738, 11593, 37443, 834, 1330, 4112, 62, 11748, 198, 6738, 11593, 37443, 834, 1330, 7297, 198, 6738, 11593, 37443, 834, 1330, 3601, 62, 8818, 198, 198, 11748, 269, 429, 74, 355, 327, 198, 11748, 299, 32152, 355, 45941, 198, 6738, 764, ...
2.608533
1,336
# -*- coding: utf-8 -*- """ oauthlib.oauth1.rfc5849.endpoints.resource ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ This module is an implementation of the resource protection provider logic of OAuth 1.0 RFC 5849. """ from __future__ import absolute_import, unicode_literals from oauthlib.common import log from .base i...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 198, 12162, 1071, 8019, 13, 12162, 1071, 16, 13, 81, 16072, 3365, 2920, 13, 437, 13033, 13, 31092, 198, 27156, 27156, 15116, 4907, 198, 198, 1212, 8265, 318, 281,...
3.480769
104
#################################################### # # @ Authors : SEKHRI Aymen # MOHAMMED HACENE Tarek # # @ Hint: you have to install all requirements # from requirements.txt # #################################################### import numpy as np import cv2 as cv import matplotl...
[ 29113, 14468, 4242, 220, 220, 198, 2, 198, 2, 220, 197, 31, 46665, 1058, 7946, 42, 39, 7112, 13709, 3653, 198, 2, 220, 197, 197, 197, 197, 11770, 33363, 30733, 367, 2246, 39267, 309, 533, 74, 198, 2, 197, 198, 2, 220, 197, 31, 3...
2.968191
503
from utils.misc import calculate_iou, xywh_to_xyxy __all__ = ['NewHitRateEvaluator', 'CtxHitRateEvaluator']
[ 6738, 3384, 4487, 13, 44374, 1330, 15284, 62, 72, 280, 11, 2124, 88, 1929, 62, 1462, 62, 5431, 5431, 628, 198, 834, 439, 834, 796, 37250, 3791, 17889, 32184, 36, 2100, 84, 1352, 3256, 705, 34, 17602, 17889, 32184, 36, 2100, 84, 1352...
2.434783
46
# -*- coding: utf-8 -*- """ Created on Sat Aug 22 19:07:30 2020 @author: Abhishek Mukherjee """
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 201, 198, 37811, 201, 198, 41972, 319, 7031, 2447, 2534, 678, 25, 2998, 25, 1270, 12131, 201, 198, 201, 198, 31, 9800, 25, 2275, 14363, 258, 74, 31509, 372, 34589, 201, 198...
2.170213
47
from contextlib import contextmanager from django.db import DatabaseError from ..core.tracing import traced_atomic_transaction
[ 6738, 4732, 8019, 1330, 4732, 37153, 198, 198, 6738, 42625, 14208, 13, 9945, 1330, 24047, 12331, 198, 198, 6738, 11485, 7295, 13, 2213, 4092, 1330, 23246, 62, 47116, 62, 7645, 2673, 628 ]
4.0625
32
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # --------------------------------------------------------------------...
[ 2, 16529, 1783, 10541, 198, 2, 15069, 357, 66, 8, 5413, 10501, 13, 1439, 2489, 10395, 13, 198, 2, 49962, 739, 262, 17168, 13789, 13, 4091, 13789, 13, 14116, 287, 262, 1628, 6808, 329, 5964, 1321, 13, 198, 2, 16529, 1783, 10541, 198,...
6.606557
61
import glob import os.path import subprocess import sys import unittest import tests.bam import tests.base_test import tests.gtf import tests.output_parser as output_parser import tests.test_config import tests.util if __name__ == '__main__': unittest.main(verbosity=2)
[ 11748, 15095, 198, 11748, 28686, 13, 6978, 198, 11748, 850, 14681, 198, 11748, 25064, 198, 11748, 555, 715, 395, 198, 198, 11748, 5254, 13, 65, 321, 198, 11748, 5254, 13, 8692, 62, 9288, 198, 11748, 5254, 13, 13655, 69, 198, 11748, 52...
3.054945
91
# Natural Language Toolkit: Aligner Utilities # # Copyright (C) 2001-2015 NLTK Project # Author: Anna Garbar # URL: <http://www.nltk.org/> # For license information, see LICENSE.TXT from nltk.align.api import Alignment def pharaohtext2tuples(pharaoh_text): """ Converts pharaoh text format into an Alignment ob...
[ 2, 12068, 15417, 16984, 15813, 25, 978, 570, 263, 41086, 198, 2, 198, 2, 15069, 357, 34, 8, 5878, 12, 4626, 22879, 51, 42, 4935, 198, 2, 6434, 25, 11735, 7164, 5657, 198, 2, 10289, 25, 1279, 4023, 1378, 2503, 13, 77, 2528, 74, 1...
2.503279
610
#!/usr/bin/env python # -*- encoding: utf-8 -*- """A module with test cases for the YARA database method.""" import os from grr_response_server.databases import db from grr_response_server.rdfvalues import objects as rdf_objects
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 532, 9, 12, 21004, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 32, 8265, 351, 1332, 2663, 329, 262, 575, 24401, 6831, 2446, 526, 15931, 198, 198, 11748, 28686, 198, 198, 6738,...
3.093333
75
#!/usr/bin/env python3 import copy import math import torch from ..distributions import MultivariateNormal from ..lazy import DiagLazyTensor, LowRankRootAddedDiagLazyTensor, LowRankRootLazyTensor, MatmulLazyTensor, delazify from ..mlls import InducingPointKernelAddedLossTerm from ..models import exact_prediction_str...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 198, 11748, 4866, 198, 11748, 10688, 198, 198, 11748, 28034, 198, 198, 6738, 11485, 17080, 2455, 507, 1330, 7854, 42524, 26447, 198, 6738, 11485, 75, 12582, 1330, 6031, 363, 43, 1258...
3.173228
127
import logging import os from flask import Flask from flask_cors import CORS from app.extensions import api from app.extensions.database import db from app.extensions.schema import ma from app.views import albums, artists, hello, tracks
[ 11748, 18931, 198, 11748, 28686, 198, 198, 6738, 42903, 1330, 46947, 198, 6738, 42903, 62, 66, 669, 1330, 327, 20673, 198, 198, 6738, 598, 13, 2302, 5736, 1330, 40391, 198, 6738, 598, 13, 2302, 5736, 13, 48806, 1330, 20613, 198, 6738, ...
3.75
64
from flask import Flask, url_for, request, redirect from flask import render_template as render from flask_mysqldb import MySQL import yaml import json import MySQLdb import decimal # Setting up the flask instance app = Flask(__name__) # Configure the database db = yaml.load(open('db.yaml')) app.config['MYSQL_HOST'...
[ 6738, 42903, 1330, 46947, 11, 19016, 62, 1640, 11, 2581, 11, 18941, 198, 6738, 42903, 1330, 8543, 62, 28243, 355, 8543, 198, 6738, 42903, 62, 28744, 80, 335, 65, 1330, 33476, 198, 11748, 331, 43695, 198, 11748, 33918, 198, 11748, 33476,...
2.758772
228
# Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appli...
[ 2, 15069, 357, 66, 8, 33448, 350, 37382, 47, 37382, 46665, 13, 1439, 6923, 33876, 13, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 2, 345, 743, 407, 779, 428, 2393, 2845...
3.632184
261
_base_ = [ '../_base_/models/cascade_rcnn_r50_fpn.py', './dataset_base.py', './scheduler_base.py', '../_base_/default_runtime.py' ] model = dict( pretrained='open-mmlab://resnext101_32x4d', backbone=dict( type='DetectoRS_ResNeXt', pretrained='open-mmlab://resnext101_32x4d', ...
[ 62, 8692, 62, 796, 685, 198, 220, 220, 220, 705, 40720, 62, 8692, 62, 14, 27530, 14, 66, 28966, 62, 6015, 20471, 62, 81, 1120, 62, 69, 21999, 13, 9078, 3256, 198, 220, 220, 220, 705, 19571, 19608, 292, 316, 62, 8692, 13, 9078, 3...
1.622697
1,357
# ---------------------------------------------------------------------------- # Copyright (c) 2013--, scikit-bio development team. # # Distributed under the terms of the Modified BSD License. # # The full license is in the file COPYING.txt, distributed with this software. # --------------------------------------------...
[ 2, 16529, 10541, 198, 2, 15069, 357, 66, 8, 2211, 438, 11, 629, 1134, 270, 12, 65, 952, 2478, 1074, 13, 198, 2, 198, 2, 4307, 6169, 739, 262, 2846, 286, 262, 40499, 347, 10305, 13789, 13, 198, 2, 198, 2, 383, 1336, 5964, 318, ...
3.307958
289
from lmsrvcore.api.interfaces.user import User from lmsrvcore.api.interfaces.git import GitCommit, GitRef, GitRepository
[ 6738, 300, 907, 81, 85, 7295, 13, 15042, 13, 3849, 32186, 13, 7220, 1330, 11787, 198, 6738, 300, 907, 81, 85, 7295, 13, 15042, 13, 3849, 32186, 13, 18300, 1330, 15151, 6935, 270, 11, 15151, 8134, 11, 15151, 6207, 13264, 628 ]
2.97561
41
# Copyright 2018 The TensorFlow Probability Authors. # # 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, 2864, 383, 309, 22854, 37535, 30873, 1799, 46665, 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.679558
362
#!/usr/bin/env python # -*- coding: utf-8 -*- ################################################################### # Author: Mu yanru # Date : 2019.2 # Email : muyanru345@163.com ################################################################### """ MAlert class. """ import six import functools from dayu_widgets.avat...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 29113, 29113, 21017, 198, 2, 6434, 25, 8252, 331, 272, 622, 198, 2, 7536, 220, 1058, 13130, 13, 17, 198, 2, 9570, 1...
3.393064
173
input_str = input(" . >> ") print(" ", len(input_str), ".")
[ 15414, 62, 2536, 796, 5128, 7203, 220, 764, 9609, 366, 8, 198, 4798, 7203, 220, 33172, 18896, 7, 15414, 62, 2536, 828, 366, 19570, 198 ]
2.48
25
# SCH1101.sh --> JB_SALES_HIERARCHY_FLAG_N_SR.py #************************************************************************************************************** # # Created by : bibin # Version : 1.0 # # Description : # 1. This script will load the data into 'SALES_HIERARCHY' table based on stre...
[ 2, 22374, 1157, 486, 13, 1477, 220, 14610, 449, 33, 62, 50, 1847, 1546, 62, 25374, 1137, 31315, 56, 62, 38948, 62, 45, 62, 12562, 13, 9078, 628, 198, 2, 17174, 17174, 17174, 46068, 1174, 198, 2, 198, 2, 15622, 416, 220, 1058, 275,...
2.895787
451
# t is a nine item tuple returned by the time module. This method converts it to # MythTV's standard representation used on filenames
[ 198, 2, 256, 318, 257, 5193, 2378, 46545, 4504, 416, 262, 640, 8265, 13, 770, 2446, 26161, 340, 284, 198, 2, 18900, 6849, 338, 3210, 10552, 973, 319, 1226, 268, 1047, 198 ]
4.21875
32
#!/usr/bin/env python3 import argparse import openem import os import cv2 import numpy as np from openem.tracking import * import json import sys import datetime import tator from pprint import pprint from collections import defaultdict import yaml import math import subprocess import sys if __name__=="__main__":...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 198, 11748, 1822, 29572, 198, 11748, 1280, 368, 198, 11748, 28686, 198, 11748, 269, 85, 17, 198, 11748, 299, 32152, 355, 45941, 198, 6738, 1280, 368, 13, 36280, 1330, 1635, 198, 11...
2.014712
4,622
import tensorflow as tf import numpy as np import hyperchamber as hc from hypergan.losses.base_loss import BaseLoss from hypergan.multi_component import MultiComponent TINY=1e-8
[ 11748, 11192, 273, 11125, 355, 48700, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 8718, 354, 7789, 355, 289, 66, 198, 198, 6738, 8718, 1030, 13, 22462, 274, 13, 8692, 62, 22462, 1330, 7308, 43, 793, 198, 6738, 8718, 1030, 13, 4168...
3.084746
59
import logging from typing import Any, Dict, List from fastapi import APIRouter, Body, Depends, Security from fastapi_pagination import ( Page, Params, ) from fastapi_pagination.bases import AbstractPage from fastapi_pagination.ext.sqlalchemy import paginate from fidesops.schemas.shared_schemas import FidesOp...
[ 11748, 18931, 198, 6738, 19720, 1330, 4377, 11, 360, 713, 11, 7343, 198, 198, 6738, 3049, 15042, 1330, 3486, 4663, 39605, 11, 12290, 11, 2129, 2412, 11, 4765, 198, 6738, 3049, 15042, 62, 79, 363, 1883, 1330, 357, 198, 220, 220, 220, ...
2.864463
605
import emoji import sentiment_analysis.src.report.cons_report as cons import sentiment_analysis.src.constants as global_cons from utils.data_connection.api_data_manager import APISourcesFetcher from utils.utilities import read_json_file, CUSTOM_YEAR_WEEK_AGG, extract_dimension, extract_question from sentiment_analysis...
[ 11748, 44805, 198, 11748, 15598, 62, 20930, 13, 10677, 13, 13116, 13, 5936, 62, 13116, 355, 762, 198, 11748, 15598, 62, 20930, 13, 10677, 13, 9979, 1187, 355, 3298, 62, 5936, 198, 198, 6738, 3384, 4487, 13, 7890, 62, 38659, 13, 15042,...
3.565217
138
resource ='human ad machime'
[ 31092, 796, 6, 10734, 512, 3235, 524, 6, 198, 220, 220, 220, 220, 220, 220, 220, 220 ]
2.176471
17
# -*- coding: UTF-8 -*- # Copyright 2010-2018 Rumma & Ko Ltd # License: BSD (see file COPYING for details) from builtins import object from django.contrib.contenttypes.models import * from django.conf import settings from django.utils.translation import ugettext_lazy as _ from django.utils.text import format_lazy ...
[ 2, 532, 9, 12, 19617, 25, 41002, 12, 23, 532, 9, 12, 198, 2, 15069, 3050, 12, 7908, 25463, 2611, 1222, 17634, 12052, 198, 2, 13789, 25, 347, 10305, 357, 3826, 2393, 27975, 45761, 329, 3307, 8, 628, 198, 6738, 3170, 1040, 1330, 213...
3.184397
141
import cv2 import numpy as np from imutils import contours from imutils.perspective import four_point_transform import imutils import cv2 import matplotlib.pyplot as plt import numpy as np from imutils import contours from imutils.perspective import four_point_transform,order_points import imutils cevap_an...
[ 11748, 269, 85, 17, 201, 198, 11748, 299, 32152, 355, 45941, 201, 198, 6738, 545, 26791, 1330, 542, 4662, 201, 198, 6738, 545, 26791, 13, 19276, 806, 425, 1330, 1440, 62, 4122, 62, 35636, 201, 198, 11748, 545, 26791, 201, 198, 11748, ...
1.817814
741
# Copyright (c) 2013, Gustav Tiger # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # * Redistributions of source code must retain the above copyright notice, this # list of conditions and th...
[ 2, 15069, 357, 66, 8, 2211, 11, 43715, 17030, 198, 2, 1439, 2489, 10395, 13, 198, 2, 220, 198, 2, 2297, 396, 3890, 290, 779, 287, 2723, 290, 13934, 5107, 11, 351, 393, 1231, 198, 2, 17613, 11, 389, 10431, 2810, 326, 262, 1708, 3...
3.186373
499
import unittest from nzmath.matrix import * import nzmath.vector as vector import nzmath.rational as rational import nzmath.poly.uniutil as uniutil Ra = rational.Rational Poly = uniutil.polynomial Int = rational.theIntegerRing # sub test try: from test.testMatrixFiniteField import * except: try: from...
[ 198, 11748, 555, 715, 395, 198, 6738, 299, 89, 11018, 13, 6759, 8609, 1330, 1635, 198, 11748, 299, 89, 11018, 13, 31364, 355, 15879, 198, 11748, 299, 89, 11018, 13, 20310, 355, 9377, 198, 11748, 299, 89, 11018, 13, 35428, 13, 35657, ...
1.957746
1,207
# Module Level # Function Level # Target Func test_func_1.setUp = func_1_setup test_func_1.tearDown = func_1_teardown
[ 2, 19937, 5684, 198, 198, 2, 15553, 5684, 198, 198, 2, 12744, 11138, 66, 198, 9288, 62, 20786, 62, 16, 13, 2617, 4933, 796, 25439, 62, 16, 62, 40406, 198, 9288, 62, 20786, 62, 16, 13, 83, 451, 8048, 796, 25439, 62, 16, 62, 660, ...
2.520833
48
import requests import redis import json import ast import sys import time import urllib import re import sys from threading import Thread from concurrent.futures import ThreadPoolExecutor import argparse if __name__ == '__main__': options = get_options() redis_conf = dict( ip=options.sentinel_ip, ...
[ 11748, 7007, 198, 11748, 2266, 271, 198, 11748, 33918, 198, 11748, 6468, 198, 11748, 25064, 198, 11748, 640, 198, 11748, 2956, 297, 571, 198, 11748, 302, 198, 11748, 25064, 198, 6738, 4704, 278, 1330, 14122, 198, 6738, 24580, 13, 69, 31...
2.37014
643
from collections import namedtuple import logging from dataclasses import dataclass from typing import Optional, Tuple import math import torch from torch import nn from torch.nn import CrossEntropyLoss, LayerNorm from torch.autograd.function import Function from transformers.file_utils import ( ModelOutput, ) ...
[ 6738, 17268, 1330, 3706, 83, 29291, 198, 11748, 18931, 198, 6738, 4818, 330, 28958, 1330, 4818, 330, 31172, 198, 6738, 19720, 1330, 32233, 11, 309, 29291, 198, 11748, 10688, 198, 198, 11748, 28034, 198, 6738, 28034, 1330, 299, 77, 198, ...
2.850123
407
import time import psutil import pymysql from fastapi import APIRouter from api.utils import response_code router = APIRouter()
[ 11748, 640, 198, 198, 11748, 26692, 22602, 198, 11748, 279, 4948, 893, 13976, 198, 6738, 3049, 15042, 1330, 3486, 4663, 39605, 198, 198, 6738, 40391, 13, 26791, 1330, 2882, 62, 8189, 198, 198, 472, 353, 796, 3486, 4663, 39605, 3419, 628...
3.190476
42
import torch import torch.nn as nn import numpy as np import math
[ 11748, 28034, 198, 11748, 28034, 13, 20471, 355, 299, 77, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 10688, 628, 198 ]
3.238095
21
# -*- coding: utf-8 -*- # # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the #...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 198, 2, 49962, 284, 262, 24843, 10442, 5693, 357, 1921, 37, 8, 739, 530, 198, 2, 393, 517, 18920, 5964, 11704, 13, 220, 4091, 262, 28536, 2393, 198, 2, 9387, 351,...
3.434447
389
import pygame, math from game import map, ui window = pygame.display.set_mode([800, 600]) ui.window = window screen = "game" s = {"fullscreen": False} running = True gamedata = {"level": 0, "coal": 0, "iron": 1, "copper":0} tiles = pygame.sprite.Group() rails = pygame.sprite.Group() carts = pygame.sprite.Group() inter...
[ 11748, 12972, 6057, 11, 10688, 198, 6738, 983, 1330, 3975, 11, 334, 72, 198, 198, 17497, 796, 12972, 6057, 13, 13812, 13, 2617, 62, 14171, 26933, 7410, 11, 10053, 12962, 198, 9019, 13, 17497, 796, 4324, 198, 9612, 796, 366, 6057, 1, ...
1.926829
1,927
# Written by Kamran Bigdely # Example for Compose Methods: Extract Method. import math print('distance', get_distance()) # *** somewhere else in your program *** print('length', get_length())
[ 2, 22503, 416, 12670, 2596, 4403, 2934, 306, 198, 2, 17934, 329, 3082, 577, 25458, 25, 29677, 11789, 13, 198, 11748, 10688, 628, 198, 198, 4798, 10786, 30246, 3256, 651, 62, 30246, 28955, 628, 198, 2, 17202, 7382, 2073, 287, 534, 1430...
3.685185
54
""" Algorithms for solving Parametric Risch Differential Equations. The methods used for solving Parametric Risch Differential Equations parallel those for solving Risch Differential Equations. See the outline in the docstring of rde.py for more information. The Parametric Risch Differential Equation problem is, giv...
[ 37811, 198, 2348, 7727, 907, 329, 18120, 25139, 19482, 371, 25308, 20615, 498, 7889, 602, 13, 198, 198, 464, 5050, 973, 329, 18120, 25139, 19482, 371, 25308, 20615, 498, 7889, 602, 10730, 198, 25591, 329, 18120, 371, 25308, 20615, 498, ...
2.135987
23,745
from pprint import pprint import yaml import netmiko import paramiko if __name__ == "__main__": with open("devices.yaml") as f: devices = yaml.safe_load(f) r1 = devices[0] out = send_cmd_with_prompt( r1, "copy run start", wait_for="Destination filename", confirmation="\n" ...
[ 6738, 279, 4798, 1330, 279, 4798, 198, 11748, 331, 43695, 198, 11748, 2010, 76, 12125, 198, 11748, 5772, 12125, 628, 198, 198, 361, 11593, 3672, 834, 6624, 366, 834, 12417, 834, 1298, 198, 220, 220, 220, 351, 1280, 7203, 42034, 13, 88...
2.352632
190
# GROWNG BEYOND EARTH CONTROL BOX Traning # RASPBERRY PI PICO / MICROPYTHON # FAIRCHILD TROPICAL BOTANIC GARDEN, Oct 18, 2021 # The Growing Beyond Earth (GBE) control box is a device that controls # the LED lights and fan in a GBE growth chamber. It can also control # accessories including a 12v water pump and enviro...
[ 2, 10863, 3913, 10503, 9348, 56, 18672, 31834, 4221, 49833, 45216, 833, 7574, 198, 2, 371, 1921, 47, 13246, 18276, 30434, 350, 22707, 1220, 35878, 49, 3185, 56, 4221, 1340, 198, 198, 2, 9677, 4663, 3398, 26761, 7579, 3185, 20151, 347, ...
3.019488
821
import os import yaml from core import plugintools from core import constants from core.searchtools import SearchDef from core.issues.issue_utils import IssueEntry LAUNCHPAD = "launchpad" MASTER_YAML_KNOWN_BUGS_KEY = "bugs-detected" KNOWN_BUGS = {MASTER_YAML_KNOWN_BUGS_KEY: []} def _get_known_bugs(): """ F...
[ 11748, 28686, 198, 11748, 331, 43695, 198, 198, 6738, 4755, 1330, 6107, 600, 10141, 198, 6738, 4755, 1330, 38491, 198, 6738, 4755, 13, 12947, 31391, 1330, 11140, 7469, 198, 6738, 4755, 13, 37165, 13, 21949, 62, 26791, 1330, 18232, 30150, ...
2.4338
929
import SimpleXMLRPCServer as xmls server = echoserver(('127.0.0.1', 8001)) server.register_function(echo, 'echo') print 'Listening on port 8001' try: server.serve_forever() except: server.server_close()
[ 11748, 17427, 55, 5805, 49, 5662, 10697, 355, 35555, 82, 198, 198, 15388, 796, 304, 354, 13416, 332, 7, 10786, 16799, 13, 15, 13, 15, 13, 16, 3256, 807, 8298, 4008, 198, 15388, 13, 30238, 62, 8818, 7, 30328, 11, 705, 30328, 11537, ...
2.585366
82
# Copyright 2018 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
[ 2, 15069, 2864, 383, 309, 22854, 37535, 46665, 13, 1439, 6923, 33876, 13, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 2, 345, 743, 407, 779, 428, 2393, 2845, 287, 11846, ...
3.440415
386
from firebase import firebase import os import datetime import json import logging from boto.s3.connection import S3Connection from boto.s3.key import Key from github3 import login firebase_url = os.environ['FIREBASE_DB'] firebase_secret = os.environ['FIREBASE_SECRET'] firebase_path = os.environ['FIREBASE_PATH'] fireb...
[ 6738, 2046, 8692, 1330, 2046, 8692, 198, 11748, 28686, 198, 11748, 4818, 8079, 198, 11748, 33918, 198, 11748, 18931, 198, 6738, 275, 2069, 13, 82, 18, 13, 38659, 1330, 311, 18, 32048, 198, 6738, 275, 2069, 13, 82, 18, 13, 2539, 1330, ...
2.706935
447
import sys sys.dont_write_bytecode = True if __name__ == '__main__': main()
[ 11748, 25064, 198, 17597, 13, 67, 756, 62, 13564, 62, 26327, 8189, 796, 6407, 198, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 198, 220, 220, 220, 1388, 3419 ]
2.5
32
# -*- coding: utf-8 -*- # Copyright 2014 - 2016 OpenMarket Ltd # # 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 applic...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 15069, 1946, 532, 1584, 4946, 27470, 12052, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 2, 345, 743, ...
3.027203
919
from decimal import Decimal from prices import Money, TaxedMoney from ...discount import DiscountValueType, VoucherType from ...discount.utils import get_product_discount_on_sale from ..base_calculations import ( base_checkout_total, base_tax_rate, calculate_base_line_total_price, calculate_base_line_...
[ 6738, 32465, 1330, 4280, 4402, 198, 198, 6738, 4536, 1330, 12911, 11, 9241, 276, 26788, 198, 198, 6738, 2644, 15410, 608, 1330, 43474, 11395, 6030, 11, 569, 280, 2044, 6030, 198, 6738, 2644, 15410, 608, 13, 26791, 1330, 651, 62, 11167, ...
2.984962
133
#!/usr/bin/env python # -*- coding: utf-8 -*- """Tests for `ged4py.date` module.""" import unittest from ged4py.calendar import ( CalendarType, CalendarDate, FrenchDate, GregorianDate, HebrewDate, JulianDate, CalendarDateVisitor ) from ged4py.date import ( DateValue, DateValueAbout, DateValueAfter, DateV...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 37811, 51, 3558, 329, 4600, 2004, 19, 9078, 13, 4475, 63, 8265, 526, 15931, 198, 198, 11748, 555, 715, 395, 198,...
2.929348
184
from __future__ import annotations import asyncio import copy from contextvars import ContextVar # noqa # contextvars not understood as stdlib from typing import Any # noqa # contextvars not understood as stdlib from typing import Callable, Dict, Optional
[ 6738, 11593, 37443, 834, 1330, 37647, 198, 198, 11748, 30351, 952, 198, 11748, 4866, 198, 6738, 4732, 85, 945, 1330, 30532, 19852, 220, 1303, 645, 20402, 1303, 4732, 85, 945, 407, 7247, 355, 14367, 8019, 198, 6738, 19720, 1330, 4377, 22...
3.969697
66
import time import h5py import hdbscan import numpy as np import torch from sklearn.cluster import MeanShift from pytorch3dunet.datasets.hdf5 import SliceBuilder from pytorch3dunet.unet3d.utils import get_logger from pytorch3dunet.unet3d.utils import unpad logger = get_logger('UNet3DPredictor') class StandardPred...
[ 11748, 640, 198, 198, 11748, 289, 20, 9078, 198, 11748, 289, 9945, 35836, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 28034, 198, 6738, 1341, 35720, 13, 565, 5819, 1330, 22728, 33377, 198, 198, 6738, 12972, 13165, 354, 18, 67, 403, ...
2.733298
1,901
# Copyright 2013-2019 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) import os.path as osp
[ 2, 15069, 2211, 12, 23344, 13914, 45036, 3549, 2351, 4765, 11, 11419, 290, 584, 198, 2, 1338, 441, 4935, 34152, 13, 4091, 262, 1353, 12, 5715, 27975, 38162, 9947, 2393, 329, 3307, 13, 198, 2, 198, 2, 30628, 55, 12, 34156, 12, 33234,...
3.384615
65
#usr/bin/env python ## useful imports import time import io import os import re import sys from sys import argv import subprocess ## ARGV if len (sys.argv) < 5: print ("\nUsage:") print ("python3 %s bam_file folder bedtools_bin samtools_bin logfile\n" %os.path.realpath(__file__)) exit() bam_file = os.path.abspath...
[ 2, 14629, 14, 8800, 14, 24330, 21015, 198, 198, 2235, 4465, 17944, 198, 11748, 640, 198, 11748, 33245, 198, 11748, 28686, 198, 11748, 302, 198, 11748, 25064, 198, 6738, 25064, 1330, 1822, 85, 198, 11748, 850, 14681, 198, 198, 2235, 5923...
2.4179
1,486
a="Betty Bought a butter the butter was bitter so betty bought a better butter which was not bitter" v=[a[-1] for a in a.split() if(len(a)%2==0)] print(v)
[ 64, 2625, 13056, 774, 29888, 257, 9215, 262, 9215, 373, 12922, 523, 731, 774, 5839, 257, 1365, 9215, 543, 373, 407, 12922, 1, 198, 85, 41888, 64, 58, 12, 16, 60, 329, 257, 287, 257, 13, 35312, 3419, 611, 7, 11925, 7, 64, 8, 4, ...
2.851852
54
# -*- coding: utf-8 -*- #!/usr/bin/env python """Writer class based on InfluxDB This implementation does its best to follow the Robert Martin's Clean code guidelines. The comments follows the Google Python Style Guide: https://github.com/google/styleguide/blob/gh-pages/pyguide.md """ __copyright__ = 'Copyright 2...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 198, 37811, 34379, 1398, 1912, 319, 4806, 22564, 11012, 198, 198, 1212, 7822, 857, 663, 1266, 284, 1061, 262, 5199, 578...
3.312796
211
#!/usr/bin/env python3 from sys import stderr, exit, argv from random import randrange #from TALinputs import TALinput from multilanguage import Env, Lang, TALcolors # METADATA OF THIS TAL_SERVICE: problem="tiling_mxn-boards_with_1x2-boards" service="is_tilable" args_list = [ ('m',int), ('n',int), ('my_co...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 6738, 25064, 1330, 336, 1082, 81, 11, 8420, 11, 1822, 85, 198, 6738, 4738, 1330, 43720, 9521, 198, 198, 2, 6738, 309, 1847, 15414, 82, 1330, 309, 1847, 15414, 198, 6738, 1963, 34...
2.243073
794
import pytest from jina.enums import RemoteAccessType from jina.flow import Flow from jina.parser import set_pea_parser, set_pod_parser from jina.peapods.pods import BasePod from jina.peapods.runtimes.remote.ssh import SSHRuntime from jina.proto import jina_pb2
[ 11748, 12972, 9288, 198, 198, 6738, 474, 1437, 13, 268, 5700, 1330, 21520, 15457, 6030, 198, 6738, 474, 1437, 13, 11125, 1330, 27782, 198, 6738, 474, 1437, 13, 48610, 1330, 900, 62, 431, 64, 62, 48610, 11, 900, 62, 33320, 62, 48610, ...
2.934066
91
from dataclasses import dataclass
[ 6738, 4818, 330, 28958, 1330, 4818, 330, 31172, 628, 628 ]
3.7
10
if __name__ =='__main__': print main('{(abc})')
[ 198, 198, 361, 11593, 3672, 834, 6624, 6, 834, 12417, 834, 10354, 198, 220, 220, 220, 3601, 1388, 10786, 90, 7, 39305, 30072, 11537, 198 ]
2.16
25
import os import sys from copy import deepcopy import traceback import functools from collections import defaultdict import yaml from argparse import ArgumentParser,\ RawDescriptionHelpFormatter, ArgumentDefaultsHelpFormatter from sgains.configuration.parser import SgainsValidator, Config from sgains.configurat...
[ 11748, 28686, 198, 11748, 25064, 198, 6738, 4866, 1330, 2769, 30073, 198, 198, 11748, 12854, 1891, 198, 11748, 1257, 310, 10141, 198, 6738, 17268, 1330, 4277, 11600, 198, 198, 11748, 331, 43695, 198, 198, 6738, 1822, 29572, 1330, 45751, 4...
2.449111
1,238
# Copyright (c) 2017-present, Facebook, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed...
[ 2, 15069, 357, 66, 8, 2177, 12, 25579, 11, 3203, 11, 3457, 13, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 2, 345, 743, 407, 779, 428, 2393, 2845, 287, 11846, 351, 26...
3.871245
233
#!/usr/env/bin python # -*- coding: utf-8 -*- import io import os import sys from shutil import rmtree from setuptools import setup, find_packages, Command about = {} here = os.path.abspath(os.path.dirname(__file__)) with io.open(os.path.join(here, 'xmind2testcase', '__about__.py'), encoding='utf-8') as f: # custom ...
[ 2, 48443, 14629, 14, 24330, 14, 8800, 21015, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 11748, 33245, 198, 11748, 28686, 198, 11748, 25064, 198, 6738, 4423, 346, 1330, 374, 16762, 631, 198, 6738, 900, 37623, ...
2.407519
665
# -*- coding: utf-8 -*- """ Created on Thu Sep 17 21:33:24 2015 @author: Tillsten """ import matplotlib import matplotlib.pyplot as plt import numpy as np tableau20 = [(31, 119, 180), (174, 199, 232), (255, 127, 14), (255, 187, 120), (44, 160, 44), (152, 223, 138), (214, 39, 40), (255, 152, 15...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 201, 198, 37811, 201, 198, 41972, 319, 26223, 8621, 1596, 2310, 25, 2091, 25, 1731, 1853, 201, 198, 201, 198, 31, 9800, 25, 17888, 26400, 201, 198, 37811, 201, 198, 11748, ...
1.778814
1,501
# coding: utf-8 # Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved. # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may c...
[ 2, 19617, 25, 3384, 69, 12, 23, 198, 2, 15069, 357, 66, 8, 1584, 11, 33448, 11, 18650, 290, 14, 273, 663, 29116, 13, 220, 1439, 2489, 10395, 13, 198, 2, 770, 3788, 318, 10668, 12, 36612, 284, 345, 739, 262, 14499, 2448, 33532, 1...
3.136364
176
from __future__ import absolute_import import pytest import os # is_code def test_get_inputs_fleur(): ''' Tests if get_inputs_fleur assembles inputs correctly. Note it is the work of FleurCalculation to check if input types are correct i.e. 'code' is a Fleur code etc. ''' from aiida_fleur.to...
[ 6738, 11593, 37443, 834, 1330, 4112, 62, 11748, 198, 11748, 12972, 9288, 198, 11748, 28686, 628, 198, 2, 318, 62, 8189, 628, 198, 4299, 1332, 62, 1136, 62, 15414, 82, 62, 27919, 333, 33529, 198, 220, 220, 220, 705, 7061, 198, 220, 2...
1.972222
5,148
""" Random Variables. This module implements random variables. Random variables are the main in- and outputs of probabilistic numerical methods. """ from typing import Any, Callable, Dict, Generic, Optional, Tuple, TypeVar, Union import numpy as np from probnum import utils as _utils from probnum.type import ( ...
[ 37811, 198, 29531, 15965, 2977, 13, 198, 198, 1212, 8265, 23986, 4738, 9633, 13, 14534, 9633, 389, 262, 1388, 287, 12, 290, 23862, 198, 1659, 1861, 14991, 2569, 29052, 5050, 13, 198, 37811, 198, 198, 6738, 19720, 1330, 4377, 11, 4889, ...
2.278697
3,685
# Copyright 2012 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or a...
[ 2, 15069, 2321, 3012, 3457, 13, 1439, 6923, 33876, 13, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 2, 345, 743, 407, 779, 428, 2393, 2845, 287, 11846, 351, 262, 13789, ...
3.452055
292
# Generated by Django 3.1.5 on 2021-02-05 00:00 import django.contrib.postgres.fields from django.db import migrations, models
[ 2, 2980, 515, 416, 37770, 513, 13, 16, 13, 20, 319, 33448, 12, 2999, 12, 2713, 3571, 25, 405, 198, 198, 11748, 42625, 14208, 13, 3642, 822, 13, 7353, 34239, 13, 25747, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 11, 4981, ...
2.931818
44
#!/usr/bin/env python # Copyright 2018 The Emscripten Authors. All rights reserved. # Emscripten is available under two separate licenses, the MIT license and the # University of Illinois/NCSA Open Source License. Both these licenses can be # found in the LICENSE file. """Utility tools that extracts DWARF informatio...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 15069, 2864, 383, 412, 907, 6519, 268, 46665, 13, 220, 1439, 2489, 10395, 13, 198, 2, 412, 907, 6519, 268, 318, 1695, 739, 734, 4553, 16625, 11, 262, 17168, 5964, 290, 262, 198, ...
3.393617
376
# # PySNMP MIB module ENTERASYS-NAC-APPLIANCE-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/ENTERASYS-NAC-APPLIANCE-MIB # Produced by pysmi-0.3.4 at Wed May 1 13:04:09 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python versio...
[ 2, 198, 2, 9485, 15571, 7378, 337, 9865, 8265, 46962, 1921, 16309, 12, 45, 2246, 12, 2969, 6489, 16868, 5222, 12, 8895, 33, 357, 4023, 1378, 16184, 76, 489, 8937, 13, 785, 14, 79, 893, 11632, 8, 198, 2, 7054, 45, 13, 16, 2723, 2...
2.782339
4,507
import os import cv2 import argparse from utils import * from tqdm import tqdm from glob import glob from pathlib import Path parser = argparse.ArgumentParser( description='build a "frame dataset" from a given video') parser.add_argument('-input', dest="input", required=True, help='''Path to a single video o...
[ 11748, 28686, 198, 11748, 269, 85, 17, 198, 11748, 1822, 29572, 198, 6738, 3384, 4487, 1330, 1635, 198, 6738, 256, 80, 36020, 1330, 256, 80, 36020, 198, 6738, 15095, 1330, 15095, 198, 6738, 3108, 8019, 1330, 10644, 628, 198, 198, 48610,...
2.896288
916
# modified "example traffic redirector" # https://raw.githubusercontent.com/PortSwigger/example-traffic-redirector/master/python/TrafficRedirector.py # Idea: https://github.com/pajswigger/filter-options/blob/master/src/filter-options.kt # Usage: Put both files in a directory and add filter-options.py to Burp. Nees ...
[ 2, 9518, 366, 20688, 4979, 18941, 273, 1, 220, 201, 198, 2, 3740, 1378, 1831, 13, 12567, 43667, 13, 785, 14, 13924, 10462, 15249, 14, 20688, 12, 9535, 2108, 12, 445, 1060, 273, 14, 9866, 14, 29412, 14, 15721, 2108, 7738, 1060, 273, ...
2.772455
334
#!/usr/bin/env python # # Copyright 2007 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 198, 2, 15069, 4343, 3012, 3457, 13, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 2, 345, 743, 407, 779, 428, 2393, ...
2.772645
3,312
# # Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. # The ASF licenses this file to You under the Apache License, Version 2.0 # (the "License"); you may not us...
[ 2, 198, 2, 49962, 284, 262, 24843, 10442, 5693, 357, 1921, 37, 8, 739, 530, 393, 517, 198, 2, 18920, 5964, 11704, 13, 220, 4091, 262, 28536, 2393, 9387, 351, 198, 2, 428, 670, 329, 3224, 1321, 5115, 6634, 9238, 13, 198, 2, 383, ...
3.840116
344
from collections import defaultdict from functools import wraps from itertools import chain from sympy.core import sympify from .precedence import precedence from .codeprinter import CodePrinter _kw_py2and3 = { 'and', 'as', 'assert', 'break', 'class', 'continue', 'def', 'del', 'elif', 'else', 'except', 'finall...
[ 6738, 17268, 1330, 4277, 11600, 198, 6738, 1257, 310, 10141, 1330, 27521, 198, 6738, 340, 861, 10141, 1330, 6333, 198, 6738, 10558, 88, 13, 7295, 1330, 10558, 1958, 198, 6738, 764, 3866, 771, 594, 1330, 38177, 198, 6738, 764, 19815, 538...
2.162351
1,429