content
stringlengths
1
1.04M
input_ids
listlengths
1
774k
ratio_char_token
float64
0.38
22.9
token_count
int64
1
774k
from rubygems_utils import RubyGemsTestUtils
[ 6738, 6437, 35641, 5232, 62, 26791, 1330, 10888, 38, 5232, 14402, 18274, 4487, 628 ]
3.285714
14
# Core from fsociety.core.menu import tools_cli from .gitgraber import gitgraber from .hydrarecon import hydrarecon from .s3scanner import s3scanner from .sherlock import sherlock from .sqlmap import sqlmap from .striker import striker from .sublist3r import sublist3r __tools__ = [sqlmap, striker, sublist3r, sherlock...
[ 2, 7231, 198, 6738, 277, 35634, 1905, 13, 7295, 13, 26272, 1330, 4899, 62, 44506, 198, 198, 6738, 764, 18300, 2164, 27359, 1330, 17606, 2164, 27359, 198, 6738, 764, 15511, 430, 260, 1102, 1330, 25039, 260, 1102, 198, 6738, 764, 82, 18...
3
119
# Copyright 2015 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, 1853, 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.846523
417
""" Unit Tests for Py-ART's graph/gridmapdisplay.py module. """ # execute this script to create figure_gridmapdisplay_*.png files. # TODO use matplotlib's @image_comparison decorator to compare to file # in baseline_images directory. Current this test only determines if files can # be created, not that they are correc...
[ 37811, 11801, 30307, 329, 9485, 12, 7227, 338, 4823, 14, 25928, 8899, 13812, 13, 9078, 8265, 13, 37227, 198, 2, 12260, 428, 4226, 284, 2251, 3785, 62, 25928, 8899, 13812, 62, 24620, 11134, 3696, 13, 198, 198, 2, 16926, 46, 779, 2603, ...
3.196911
259
# coding: utf-8 from email import encoders from email.header import Header from email.mime.base import MIMEBase from email.mime.text import MIMEText from email.mime.multipart import MIMEMultipart from email.utils import parseaddr, formataddr import smtplib # from_addr = input('From: ') from_addr = '176462329@qq.co...
[ 2, 19617, 25, 3384, 69, 12, 23, 198, 198, 6738, 3053, 1330, 2207, 375, 364, 198, 6738, 3053, 13, 25677, 1330, 48900, 198, 6738, 3053, 13, 76, 524, 13, 8692, 1330, 337, 12789, 14881, 198, 6738, 3053, 13, 76, 524, 13, 5239, 1330, 33...
1.880834
1,007
"""Management command to check defined domains.""" from datetime import datetime from datetime import timedelta import ipaddress import dns.resolver import gevent from gevent import socket from django.conf import settings from django.core.management.base import BaseCommand from django.template.loader import render_...
[ 37811, 48032, 3141, 284, 2198, 5447, 18209, 526, 15931, 198, 198, 6738, 4818, 8079, 1330, 4818, 8079, 198, 6738, 4818, 8079, 1330, 28805, 12514, 198, 11748, 20966, 21975, 198, 198, 11748, 288, 5907, 13, 411, 14375, 198, 198, 11748, 4903, ...
2.030811
4,771
from __future__ import unicode_literals def select(composer): """ binds the django_productline base feature """ # no introductions or refinements necessary - # django_productline acts as base feature pass
[ 6738, 11593, 37443, 834, 1330, 28000, 1098, 62, 17201, 874, 628, 198, 4299, 2922, 7, 785, 1930, 263, 2599, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 37354, 262, 42625, 14208, 62, 11167, 1370, 2779, 3895, 198, 220, 220, 220, 37227...
3.08
75
import logging from spaceone.core.service import * from spaceone.statistics.error import * from spaceone.statistics.manager.resource_manager import ResourceManager from spaceone.statistics.manager.schedule_manager import ScheduleManager from spaceone.statistics.manager.history_manager import HistoryManager _LOGGER = ...
[ 11748, 18931, 198, 198, 6738, 2272, 505, 13, 7295, 13, 15271, 1330, 1635, 198, 6738, 2272, 505, 13, 14269, 3969, 13, 18224, 1330, 1635, 198, 6738, 2272, 505, 13, 14269, 3969, 13, 37153, 13, 31092, 62, 37153, 1330, 20857, 13511, 198, 6...
3.77193
114
import datetime import json import logging import logging.config import os import traceback from os.path import join as pjoin import unittest2 as unittest from observation.obs_virtual.ObsVirtualUtils import is_unique_points
[ 11748, 4818, 8079, 198, 11748, 33918, 198, 11748, 18931, 198, 11748, 18931, 13, 11250, 198, 11748, 28686, 198, 11748, 12854, 1891, 198, 6738, 28686, 13, 6978, 1330, 4654, 355, 279, 22179, 198, 198, 11748, 555, 715, 395, 17, 355, 555, 71...
3.66129
62
# Time: O(n^2) # Space: O(n)
[ 2, 3862, 25, 220, 440, 7, 77, 61, 17, 8, 198, 2, 4687, 25, 440, 7, 77, 8, 628 ]
1.631579
19
""" @author: Andrea Domenico Giuliano @contact: andreadomenico.giuliano@studenti.unipd.it @organization: University of Padua """ import Time_Calcolation as t_c #File contenente le funzioni riguardanti la creazione di una lista degli item utili per un determinato user # e per l'attribuizione degli score relai...
[ 37811, 201, 198, 31, 9800, 25, 23174, 360, 3674, 3713, 35267, 10115, 201, 198, 31, 32057, 25, 290, 961, 3674, 3713, 13, 12397, 377, 10115, 31, 50139, 72, 13, 403, 541, 67, 13, 270, 201, 198, 31, 9971, 1634, 25, 2059, 286, 15744, 6...
2.870968
124
import sqlite3 # connect to database conn = sqlite3.connect('customer.db') # Create a cursor c = conn.cursor() c = conn.execute("""CREATE TABLE customers ( first TEXT, last TEXT, email text)""") print("Sucessfully Did what I had to!!") # Commit our command conn.commi...
[ 11748, 44161, 578, 18, 198, 198, 2, 2018, 284, 6831, 198, 37043, 796, 44161, 578, 18, 13, 8443, 10786, 23144, 263, 13, 9945, 11537, 198, 198, 2, 13610, 257, 23493, 198, 66, 796, 48260, 13, 66, 21471, 3419, 198, 198, 66, 796, 48260, ...
2.445946
148
from django.urls import path from donate import views urlpatterns = [ # Donate path('donate/', views.DonateCreateView.as_view()), ]
[ 6738, 42625, 14208, 13, 6371, 82, 1330, 3108, 198, 198, 6738, 16565, 1330, 5009, 198, 198, 6371, 33279, 82, 796, 685, 198, 220, 220, 220, 1303, 2094, 378, 198, 220, 220, 220, 3108, 10786, 9099, 378, 14, 3256, 5009, 13, 3987, 378, 16...
2.679245
53
import csv import os import json from googleapiclient.discovery import build # * IMPORTANT query = r'python tutorial' # read secret api key with open('./SECRETS.json', 'r') as f: secrets = json.load(f) api_token = secrets['api_token'] # Functions # creating data directory to save data if not os.path.exists('./...
[ 11748, 269, 21370, 198, 11748, 28686, 198, 11748, 33918, 198, 198, 6738, 23645, 499, 291, 75, 1153, 13, 67, 40821, 1330, 1382, 198, 198, 2, 1635, 30023, 9863, 8643, 198, 22766, 796, 374, 6, 29412, 11808, 6, 198, 198, 2, 1100, 3200, ...
2.029058
3,407
import os import binascii import logging import typing import asyncio from lbrynet.blob import MAX_BLOB_SIZE from lbrynet.stream.descriptor import StreamDescriptor if typing.TYPE_CHECKING: from lbrynet.blob.blob_manager import BlobFileManager from lbrynet.blob.blob_info import BlobInfo from lbrynet.blob.blo...
[ 11748, 28686, 198, 11748, 9874, 292, 979, 72, 198, 11748, 18931, 198, 11748, 19720, 198, 11748, 30351, 952, 198, 6738, 18360, 563, 3262, 13, 2436, 672, 1330, 25882, 62, 9148, 9864, 62, 33489, 198, 6738, 18360, 563, 3262, 13, 5532, 13, ...
2.82963
135
from .get_report import get_report from ..call_rest import call_rest
[ 6738, 764, 1136, 62, 13116, 1330, 651, 62, 13116, 198, 6738, 11485, 13345, 62, 2118, 1330, 869, 62, 2118, 628 ]
3.5
20
# Copyright 2017 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 accom...
[ 2, 15069, 2177, 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, 198, 2, 921, 743, 407, 779, 428, 2393, ...
3.184746
590
#!/usr/bin/env python2 # -*- coding: utf-8 -*- ################################################## # GNU Radio Python Flow Graph # Title: Wifi Rx Rftap # Generated: Sun Feb 18 16:11:24 2018 ################################################## if __name__ == '__main__': import ctypes import sys if sys.platform...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 17, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 29113, 14468, 2235, 198, 2, 22961, 8829, 11361, 27782, 29681, 198, 2, 11851, 25, 370, 22238, 49715, 371, 701, 499, ...
2.710227
352
#price = float(input('Enter The Price: ')) # int() to convert the inputs into float so we can compare it with tax #if price >= 2.0: #tax = 0.07 #else: # tax = 0.00 #print(f'The Tax for this price is: ', {tax}, '\n \n') # note that the print statements without indentations so it will wait the if and else ...
[ 2, 20888, 796, 12178, 7, 15414, 10786, 17469, 383, 7886, 25, 705, 4008, 220, 1303, 493, 3419, 284, 10385, 262, 17311, 656, 12178, 523, 356, 460, 8996, 340, 351, 1687, 201, 198, 201, 198, 2, 361, 2756, 18189, 362, 13, 15, 25, 201, ...
2.581527
1,061
##Unpackers and Emulator of BMTF-TwinMux import FWCore.ParameterSet.Config as cms process = cms.Process("TwinMuxRawToDigi") process.load("FWCore.MessageService.MessageLogger_cfi") process.MessageLogger.cerr.FwkReport.reportEvery = 1000 process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")...
[ 2235, 3118, 8002, 364, 290, 2295, 8927, 286, 29944, 10234, 12, 5080, 259, 44, 2821, 198, 198, 11748, 48849, 14055, 13, 36301, 7248, 13, 16934, 355, 269, 907, 198, 198, 14681, 796, 269, 907, 13, 18709, 7203, 5080, 259, 44, 2821, 27369,...
2.251117
2,015
from __future__ import annotations import logging
[ 6738, 11593, 37443, 834, 1330, 37647, 198, 11748, 18931, 628 ]
5.1
10
# Copyright (C) 2019-2021 Zilliz. 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 ag...
[ 2, 15069, 357, 34, 8, 13130, 12, 1238, 2481, 1168, 359, 528, 13, 1439, 2489, 10395, 13, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 345, 743, 407, 779, 428, 2393, 2845, 198,...
3.277641
407
test = { 'name': 'q3d', 'points': 2, 'suites': [ { 'cases': [ { 'code': ">>> np.all(sorted(top_5_acc) == sorted(np.array(['ROSELAND COLLEGIATE PREP', 'GRANGE SCHOOL THE', 'FELICITAS GONZALO MENDEZ HS', 'ALLIANCE M&E STERN " "MATH SCI SCH', 'SOUTH HIGH SCH...
[ 9288, 796, 1391, 220, 220, 705, 3672, 10354, 705, 80, 18, 67, 3256, 198, 220, 220, 220, 705, 13033, 10354, 362, 11, 198, 220, 220, 220, 705, 2385, 2737, 10354, 685, 220, 220, 1391, 220, 220, 705, 33964, 10354, 685, 220, 220, 1391, ...
1.516734
747
from .orm import Category
[ 6738, 764, 579, 1330, 21743, 198 ]
4.333333
6
import random as rnd import re import string import requests from xeger import Xeger from bs4 import BeautifulSoup def create_strings_from_file(filename, count): """ Create all strings by reading lines in specified files """ strings = [] with open(filename, "r", encoding="utf8") as f: ...
[ 11748, 4738, 355, 374, 358, 198, 11748, 302, 198, 11748, 4731, 198, 11748, 7007, 198, 198, 6738, 2124, 11893, 1330, 1395, 11893, 198, 6738, 275, 82, 19, 1330, 23762, 50, 10486, 628, 198, 4299, 2251, 62, 37336, 62, 6738, 62, 7753, 7, ...
2.240132
1,520
import logging from collections import defaultdict from django.core.exceptions import FieldDoesNotExist from django.db.models import Count, Field, Q from unplugged import JSONAPIObject, command from .models import BaseMetadataResolutionLink, BaseUpdatable logger = logging.getLogger(__name__) class ListingItemRelin...
[ 11748, 18931, 198, 6738, 17268, 1330, 4277, 11600, 198, 198, 6738, 42625, 14208, 13, 7295, 13, 1069, 11755, 1330, 7663, 13921, 3673, 3109, 396, 198, 6738, 42625, 14208, 13, 9945, 13, 27530, 1330, 2764, 11, 7663, 11, 1195, 198, 6738, 555...
3.320261
153
import torch from torch import nn from torch import optim from collections import OrderedDict from PIL import Image import torchvision.transforms as transforms import torchvision.models as models densenet121 = models.densenet121(pretrained=True) vgg16 = models.vgg16(pretrained=True) models = { "densenet": { ...
[ 11748, 28034, 198, 6738, 28034, 1330, 299, 77, 198, 6738, 28034, 1330, 6436, 198, 6738, 17268, 1330, 14230, 1068, 35, 713, 198, 6738, 350, 4146, 1330, 7412, 198, 11748, 28034, 10178, 13, 7645, 23914, 355, 31408, 198, 11748, 28034, 10178, ...
2.566474
173
''' __author__ : Priyank Parmar __tested_on__ : 4th June, 2017 __description__ : To test different encoding and decoding methods ''' ## Taking the Input from user str = raw_input('Enter String :') print "==================================================" ## Encoded String print "Encoded Strings" # UTF-8 Encoding enco...
[ 7061, 6, 198, 834, 9800, 834, 220, 197, 25, 4389, 88, 962, 47796, 283, 198, 834, 39612, 62, 261, 834, 197, 25, 604, 400, 2795, 11, 2177, 198, 834, 11213, 834, 1058, 1675, 1332, 1180, 21004, 290, 39938, 5050, 198, 7061, 6, 198, 223...
2.937785
659
# -*- coding: utf-8 -*- # ----------------------------------------------------------------------------- # Copyright (c) 2014 Bryant E. McDonnell # # Licensed under the terms of the BSD2 License # See LICENSE.txt for details # ----------------------------------------------------------------------------- """SWMM5 compile...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 16529, 32501, 198, 2, 15069, 357, 66, 8, 1946, 16754, 412, 13, 39441, 198, 2, 198, 2, 49962, 739, 262, 2846, 286, 262, 347, 10305, 17, 13789, 198, 2, 4091, 38559,...
2.280072
1,671
from enum import Enum from typing import Dict, Union
[ 6738, 33829, 1330, 2039, 388, 198, 6738, 19720, 1330, 360, 713, 11, 4479, 628, 198 ]
3.666667
15
"""empty message Revision ID: 7ef3c4f2ba0c Revises: Create Date: 2020-12-28 10:48:53.012083 """ from alembic import op import sqlalchemy as sa from sqlalchemy.dialects import postgresql # revision identifiers, used by Alembic. revision = '7ef3c4f2ba0c' down_revision = None branch_labels = None depends_on = None
[ 37811, 28920, 3275, 198, 198, 18009, 1166, 4522, 25, 767, 891, 18, 66, 19, 69, 17, 7012, 15, 66, 198, 18009, 2696, 25, 220, 198, 16447, 7536, 25, 12131, 12, 1065, 12, 2078, 838, 25, 2780, 25, 4310, 13, 486, 1238, 5999, 198, 198, ...
2.572581
124
pkgname = "ffmpeg" pkgver = "4.4.1" pkgrel = 0 build_style = "configure" configure_args = [ "--prefix=/usr", "--enable-shared", "--enable-static", "--enable-gpl", "--enable-version3", "--enable-runtime-cpudetect", "--enable-lto", "--enable-openssl", "--enable-librtmp", "--enable-...
[ 35339, 3672, 796, 366, 487, 43913, 1, 198, 35339, 332, 796, 366, 19, 13, 19, 13, 16, 1, 198, 35339, 2411, 796, 657, 198, 11249, 62, 7635, 796, 366, 11250, 495, 1, 198, 11250, 495, 62, 22046, 796, 685, 198, 220, 220, 220, 366, 43...
2.133414
1,649
import numpy as np
[ 11748, 299, 32152, 355, 45941, 628, 198 ]
3
7
import boto3 import time import os import csv from datetime import datetime import json if __name__ == '__main__': main()
[ 11748, 275, 2069, 18, 198, 11748, 640, 198, 11748, 28686, 198, 11748, 269, 21370, 198, 6738, 4818, 8079, 1330, 4818, 8079, 198, 11748, 33918, 198, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 198, 220, 220, 220, 1388, ...
2.953488
43
import importlib, warnings from pyinstrument.vendor.decorator import decorator @decorator def deprecated(func, *args, **kwargs): ''' Marks a function as deprecated. ''' warnings.warn( '{} is deprecated and should no longer be used.'.format(func), DeprecationWarning, stacklevel=3 ) ...
[ 11748, 1330, 8019, 11, 14601, 198, 6738, 12972, 259, 43872, 13, 85, 18738, 13, 12501, 273, 1352, 1330, 11705, 1352, 198, 198, 31, 12501, 273, 1352, 198, 4299, 39224, 7, 20786, 11, 1635, 22046, 11, 12429, 46265, 22046, 2599, 198, 220, ...
2.782353
170
# Generated by Django 4.0.2 on 2022-02-22 17:05 from django.db import migrations, models
[ 2, 2980, 515, 416, 37770, 604, 13, 15, 13, 17, 319, 33160, 12, 2999, 12, 1828, 1596, 25, 2713, 198, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 11, 4981, 628 ]
2.84375
32
import json import numbers from pathlib import Path import numpy as np import samplerate import soundfile from cached_property import cached_property from lazy_dataset import Dataset, FilterException from lazy_dataset.core import DynamicTimeSeriesBucket from scipy.interpolate import make_interp_spline from scipy.sign...
[ 198, 11748, 33918, 198, 11748, 3146, 198, 6738, 3108, 8019, 1330, 10644, 198, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 6072, 20053, 378, 198, 11748, 2128, 7753, 198, 6738, 39986, 62, 26745, 1330, 39986, 62, 26745, 198, 6738, 16931,...
2.051963
1,732
# Copyright 2021 Google LLC. # # 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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing,...
[ 2, 15069, 33448, 3012, 11419, 13, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 2, 345, 743, 407, 779, 428, 2393, 2845, 287, 11846, 351, 262, 13789, 13, 198, 2, 921, 743,...
3.057613
486
#!/usr/bin/env python3 import argparse from Gaugi import Pool from Gaugi import Logger mainLogger = Logger.getModuleLogger("prun.job") parser = argparse.ArgumentParser(description = '', add_help = False) parser = argparse.ArgumentParser() parser.add_argument('-o','--outputFile', action='store', dest='outputFile...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 11748, 1822, 29572, 198, 6738, 402, 7493, 72, 1330, 19850, 198, 6738, 402, 7493, 72, 1330, 5972, 1362, 628, 198, 12417, 11187, 1362, 796, 5972, 1362, 13, 1136, 26796, 11187, 1362, ...
2.791574
451
from pedal.assertions.feedbacks import AssertionFeedback from pedal.core.report import MAIN_REPORT class missing_function(AssertionFeedback): """ Unconditionally asserts that the function is missing. """ title = "Missing Function" message_template = "No function named {name_message} was found." class du...
[ 6738, 26667, 13, 30493, 507, 13, 12363, 10146, 1330, 2195, 861, 295, 18332, 1891, 198, 6738, 26667, 13, 7295, 13, 13116, 1330, 8779, 1268, 62, 2200, 15490, 628, 198, 4871, 4814, 62, 8818, 7, 8021, 861, 295, 18332, 1891, 2599, 198, 220...
2.827519
1,032
# GENERATED BY KOMAND SDK - DO NOT EDIT import insightconnect_plugin_runtime import json
[ 2, 24700, 1137, 11617, 11050, 509, 2662, 6981, 26144, 532, 8410, 5626, 48483, 198, 11748, 11281, 8443, 62, 33803, 62, 43282, 198, 11748, 33918, 628, 198, 220, 220, 220, 220, 198, 220, 220, 220, 220, 628 ]
2.833333
36
# -*- coding: utf-8 -*- ######################################################################### # # Copyright (C) 2016 OSGeo # # 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 Foundation, either version 3 ...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 29113, 29113, 7804, 2, 198, 2, 198, 2, 15069, 357, 34, 8, 1584, 7294, 10082, 78, 198, 2, 198, 2, 770, 1430, 318, 1479, 3788, 25, 345, 460, 17678, 4163, 340, 290, 1...
3.674208
442
from .api import MediaFileHistory
[ 198, 6738, 764, 15042, 1330, 6343, 8979, 18122, 628 ]
4
9
#This was not written by sonicrules1234, look in namecoindnsserver.py at the top for the actual author import struct
[ 2, 1212, 373, 407, 3194, 416, 36220, 38785, 1065, 2682, 11, 804, 287, 1438, 1073, 521, 77, 824, 18497, 13, 9078, 379, 262, 1353, 329, 262, 4036, 1772, 198, 11748, 2878, 628 ]
3.6875
32
from setuptools import setup setup( name='pylrc', packages=['pylrc'], version='0.1.0', description='A library for parsing .lrc files', long_description=open('README.rst').read(), author='doakey3, SimonIT', author_email='pylrc.dmodo@spamgourmet.com', url='https://github.com/doakey3/pylrc...
[ 6738, 900, 37623, 10141, 1330, 9058, 198, 198, 40406, 7, 198, 220, 220, 220, 1438, 11639, 79, 2645, 6015, 3256, 198, 220, 220, 220, 10392, 28, 17816, 79, 2645, 6015, 6, 4357, 198, 220, 220, 220, 2196, 11639, 15, 13, 16, 13, 15, 32...
2.308511
188
# -*- coding: utf-8 -*- from modules_lib.bleextop.models import roledao, permissiondao import datetime import re #/** #* Return the application permissions for the given user #* @params data An array containing the user model and the application_id #* @return Array containing the permissions and succe...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 6738, 13103, 62, 8019, 13, 903, 2302, 404, 13, 27530, 1330, 686, 992, 5488, 11, 7170, 67, 5488, 198, 11748, 4818, 8079, 198, 11748, 302, 628, 198, 220, 220, 220, 1303,...
3.41875
160
import logging from typing import BinaryIO, Optional import requests from injector import Module, ProviderOf, inject, singleton from werkzeug import Request, Response from werkzeug.routing import Rule from rep0st.db.post import PostRepository, PostRepositoryModule from rep0st.framework.data.transaction import transac...
[ 11748, 18931, 198, 6738, 19720, 1330, 45755, 9399, 11, 32233, 198, 198, 11748, 7007, 198, 6738, 8677, 273, 1330, 19937, 11, 32549, 5189, 11, 8677, 11, 2060, 1122, 198, 6738, 266, 9587, 2736, 1018, 1330, 19390, 11, 18261, 198, 6738, 266,...
3.724324
185
import os import testinfra.utils.ansible_runner testinfra_hosts = testinfra.utils.ansible_runner.AnsibleRunner( os.environ['MOLECULE_INVENTORY_FILE'] ).get_hosts('all')
[ 11748, 28686, 198, 198, 11748, 1332, 10745, 430, 13, 26791, 13, 504, 856, 62, 16737, 198, 198, 9288, 10745, 430, 62, 4774, 82, 796, 1332, 10745, 430, 13, 26791, 13, 504, 856, 62, 16737, 13, 2025, 82, 856, 49493, 7, 198, 220, 220, ...
2.452055
73
########################################################################## # Hopla - Copyright (C) AGrigis, 2015 - 2016 # Distributed under the terms of the CeCILL-B license, as published by # the CEA-CNRS-INRIA. Refer to the LICENSE file or to # http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html # for details...
[ 29113, 29113, 7804, 2235, 198, 2, 9996, 5031, 532, 15069, 357, 34, 8, 13077, 4359, 271, 11, 1853, 532, 1584, 198, 2, 4307, 6169, 739, 262, 2846, 286, 262, 20101, 34, 8267, 12, 33, 5964, 11, 355, 3199, 416, 198, 2, 262, 327, 16412,...
2.147295
5,601
from simx.base.testutil import import_assert_functions import_assert_functions(globals()) from simx.base import TossimBase from simx.base import Node from TOSSIM import Tossim _tossim = Tossim([]) tossim = None a = None b = None c = None # PST- due to overflow bugs in Tossim (and that there is no way to # clear t...
[ 6738, 985, 87, 13, 8692, 13, 9288, 22602, 1330, 1330, 62, 30493, 62, 12543, 2733, 198, 11748, 62, 30493, 62, 12543, 2733, 7, 4743, 672, 874, 28955, 198, 198, 6738, 985, 87, 13, 8692, 1330, 309, 793, 320, 14881, 198, 6738, 985, 87, ...
2.914634
164
from tests.utils.runtest import makesuite, run from tests.utils.testcase import TestCase from tests.utils.gc import gcwait from System import NullReferenceException, WeakReference from System.Runtime.InteropServices import Marshal from Ironclad import BadMappingException, CPyMarshal, InterestingPtrMap, P...
[ 201, 198, 6738, 5254, 13, 26791, 13, 81, 2797, 395, 1330, 1838, 84, 578, 11, 1057, 201, 198, 6738, 5254, 13, 26791, 13, 9288, 7442, 1330, 6208, 20448, 201, 198, 201, 198, 6738, 5254, 13, 26791, 13, 36484, 1330, 308, 66, 17077, 201, ...
2.681967
305
# -*- coding: utf-8 -*- import datetime from south.db import db from south.v2 import SchemaMigration from django.db import models
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 11748, 4818, 8079, 198, 6738, 5366, 13, 9945, 1330, 20613, 198, 6738, 5366, 13, 85, 17, 1330, 10011, 2611, 44, 4254, 198, 6738, 42625, 14208, 13, 9945, 1330, 4981, 198 ]
2.954545
44
import pytest from django.core.files.uploadedfile import SimpleUploadedFile from portfolio.portfolioapp.tests.factories import PortfolioProjectFactory from portfolio.templatematching.tests.factories import UploadedImageFactory from portfolio.tftchampions.tests.factories import ChampionFactory from portfolio.users.mode...
[ 11748, 12972, 9288, 198, 6738, 42625, 14208, 13, 7295, 13, 16624, 13, 25850, 276, 7753, 1330, 17427, 41592, 276, 8979, 198, 198, 6738, 15320, 13, 634, 13652, 1324, 13, 41989, 13, 22584, 1749, 1330, 4347, 13652, 16775, 22810, 198, 6738, ...
3.369942
173
from django.urls import path from app1.dateview.addDepartments import * from app1.dateview.showDepartments import * from app1.dateview.updateDepartment import * from app1.dateview.delDepartment import * urlpatterns =[ path("addDepartments",addDepartments,name="addDepartments"), path("showDepartments",showDepar...
[ 6738, 42625, 14208, 13, 6371, 82, 1330, 3108, 198, 6738, 598, 16, 13, 4475, 1177, 13, 2860, 12156, 32514, 1330, 1635, 198, 6738, 598, 16, 13, 4475, 1177, 13, 12860, 12156, 32514, 1330, 1635, 198, 6738, 598, 16, 13, 4475, 1177, 13, 1...
3.446809
141
from openpnm.algorithms import TransientReactiveTransport, IonicConduction from openpnm.utils import logging, Docorator, GenericSettings logger = logging.getLogger(__name__) docstr = Docorator() @docstr.get_sections(base='TransientIonicConductionSettings', sections=['Parameters']) @docstr.dedent ...
[ 6738, 1280, 79, 21533, 13, 282, 7727, 907, 1330, 3602, 1153, 3041, 5275, 8291, 634, 11, 314, 9229, 25559, 8110, 198, 6738, 1280, 79, 21533, 13, 26791, 1330, 18931, 11, 14432, 273, 1352, 11, 42044, 26232, 198, 6404, 1362, 796, 18931, 1...
2.947368
437
import tenseal as ts
[ 11748, 20170, 282, 355, 40379, 628 ]
3.666667
6
#!/usr/bin/env python # -- coding: utf-8 -- """ Copyright (c) 2021. All rights reserved. Created by C. L. Wang on 6.12.21 """ import os import math import random from PIL import Image from myutils.cv_utils import * from root_dir import DATA_DIR def get_params(img, scale, ratio): """Get parameters for ``crop`` fo...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 1377, 19617, 25, 3384, 69, 12, 23, 1377, 198, 37811, 198, 15269, 357, 66, 8, 33448, 13, 1439, 2489, 10395, 13, 198, 41972, 416, 327, 13, 406, 13, 15233, 319, 718, 13, 1065, 13, ...
2.204216
759
from bentso import CachingDataClient from bentso.db import get_database import numpy as np import os import pandas as pd import pytest FIXTURES = os.path.join( os.path.dirname(os.path.realpath(__file__)), "fixtures", )
[ 6738, 17157, 568, 1330, 327, 8103, 6601, 11792, 198, 6738, 17157, 568, 13, 9945, 1330, 651, 62, 48806, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 28686, 198, 11748, 19798, 292, 355, 279, 67, 198, 11748, 12972, 9288, 198, 198, 47084...
2.704545
88
# coding: utf-8 from __future__ import unicode_literals from io import StringIO from mock import Mock, patch # pylint:disable=import-error import pytest # pylint:enable=import-error from flaky import flaky from flaky import _flaky_plugin from flaky.flaky_pytest_plugin import ( CallInfo, FlakyPlugin, FlakyX...
[ 2, 19617, 25, 3384, 69, 12, 23, 198, 198, 6738, 11593, 37443, 834, 1330, 28000, 1098, 62, 17201, 874, 198, 6738, 33245, 1330, 10903, 9399, 198, 6738, 15290, 1330, 44123, 11, 8529, 198, 2, 279, 2645, 600, 25, 40223, 28, 11748, 12, 18...
2.354415
838
# Copyright 2019 gRPC 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 or agreed to in writing...
[ 2, 15069, 13130, 308, 49, 5662, 7035, 13, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 2, 345, 743, 407, 779, 428, 2393, 2845, 287, 11846, 351, 262, 13789, 13, 198, 2, ...
2.612223
1,898
import json import ntpath from modeci_mdf.functions.standard import mdf_functions, create_python_expression from typing import List, Tuple, Dict, Optional, Set, Any, Union from modeci_mdf.utils import load_mdf, print_summary from modeci_mdf.mdf import * from modeci_mdf.full_translator import * from modeci_mdf.executio...
[ 11748, 33918, 198, 11748, 299, 83, 6978, 198, 198, 6738, 953, 721, 72, 62, 76, 7568, 13, 12543, 2733, 13, 20307, 1330, 285, 7568, 62, 12543, 2733, 11, 2251, 62, 29412, 62, 38011, 198, 6738, 19720, 1330, 7343, 11, 309, 29291, 11, 360...
2.916667
144
__author__ = 'dimd' from NetCatKS.Validators.api.interfaces.message import IMessage from NetCatKS.Validators.api.implementers.validators.default import BaseValidator from zope.component import adapts from zope.component import getGlobalSiteManager from lxml import etree gsm = getGlobalSiteManager() gsm.registerSub...
[ 834, 9800, 834, 796, 705, 27740, 67, 6, 198, 198, 6738, 3433, 21979, 27015, 13, 47139, 2024, 13, 15042, 13, 3849, 32186, 13, 20500, 1330, 8959, 7589, 198, 6738, 3433, 21979, 27015, 13, 47139, 2024, 13, 15042, 13, 320, 26908, 364, 13, ...
3.398058
103
# Generated by Django 3.1.7 on 2021-03-24 09:36 from django.db import migrations
[ 2, 2980, 515, 416, 37770, 513, 13, 16, 13, 22, 319, 33448, 12, 3070, 12, 1731, 7769, 25, 2623, 198, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 628 ]
2.766667
30
import asyncio import time import kopf # Sync daemons in threads are non-interruptable, they must check for the `stopped` flag. # This daemon exits after 3 attempts and then 30 seconds of running (unless stopped). @kopf.daemon('zalando.org', 'v1', 'kopfexamples', backoff=3) # Async daemons do not need the `stopped...
[ 11748, 30351, 952, 198, 11748, 640, 198, 198, 11748, 479, 404, 69, 628, 198, 2, 35908, 12379, 368, 684, 287, 14390, 389, 1729, 12, 3849, 3622, 540, 11, 484, 1276, 2198, 329, 262, 4600, 301, 38333, 63, 6056, 13, 198, 2, 770, 33386, ...
2.870849
271
from django.core import checks from . import settings as djpaypal_settings VALID_MODES = ("live", "sandbox") @checks.register("djpaypal") def check_paypal_api_key(app_configs=None, **kwargs): """Check that the Paypal API keys are configured correctly""" messages = [] mode = getattr(djpaypal_settings, ...
[ 6738, 42625, 14208, 13, 7295, 1330, 8794, 198, 198, 6738, 764, 1330, 6460, 355, 42625, 15577, 18596, 62, 33692, 628, 198, 23428, 2389, 62, 33365, 1546, 796, 5855, 12583, 1600, 366, 38142, 3524, 4943, 628, 198, 31, 42116, 13, 30238, 7203...
2.554124
388
# Script to clean response into one-response-per-line format
[ 2, 12327, 284, 3424, 2882, 656, 530, 12, 26209, 12, 525, 12, 1370, 5794 ]
4.285714
14
__all__ = [ 'character', 'common', 'corpus', 'document', ] from .common import * from .character import Character from .corpus import Corpus from .document import Document
[ 834, 439, 834, 796, 685, 198, 220, 220, 220, 705, 22769, 3256, 198, 220, 220, 220, 705, 11321, 3256, 198, 220, 220, 220, 705, 10215, 79, 385, 3256, 198, 220, 220, 220, 705, 22897, 3256, 198, 60, 198, 198, 6738, 764, 11321, 1330, 1...
2.907692
65
import anybadge
[ 11748, 597, 14774, 469, 628 ]
3.4
5
import os from vent.api.plugins import Plugin from vent.api.templates import Template def test_add(): """ Test the add function """ instance = Plugin() status = instance.add('https://github.com/cyberreboot/vent', build=False) assert isinstance(status, tuple) assert status[0] == True status = i...
[ 11748, 28686, 198, 198, 6738, 7435, 13, 15042, 13, 37390, 1330, 42636, 198, 6738, 7435, 13, 15042, 13, 11498, 17041, 1330, 37350, 198, 198, 4299, 1332, 62, 2860, 33529, 198, 220, 220, 220, 37227, 6208, 262, 751, 2163, 37227, 198, 220, ...
3.010065
1,391
from dashboard.models import Table, Dataset import json import csv import zipfile
[ 6738, 30415, 13, 27530, 1330, 8655, 11, 16092, 292, 316, 198, 11748, 33918, 198, 11748, 269, 21370, 198, 11748, 19974, 7753, 198 ]
3.727273
22
#! /usr/bin/python import json
[ 2, 0, 1220, 14629, 14, 8800, 14, 29412, 198, 198, 11748, 33918, 628 ]
2.538462
13
#!/usr/bin/python3 from aip import AipNlp import numpy as np APP_ID = '10791703' API_KEY = 'YNMY6eSAz6QlDCeM7KB9GKHC' SECRET_KEY = 'tSqTt0OikFiYXVIt5kAXZyL0FdciRp5t' client = AipNlp(APP_ID, API_KEY, SECRET_KEY) def get_dependency(text): """ :param text: prepare to analysis the dependecy of tokens :return...
[ 2, 48443, 14629, 14, 8800, 14, 29412, 18, 198, 6738, 257, 541, 1330, 317, 541, 45, 34431, 198, 11748, 299, 32152, 355, 45941, 198, 198, 24805, 62, 2389, 796, 705, 940, 3720, 1558, 3070, 6, 198, 17614, 62, 20373, 796, 705, 40760, 267...
2.451444
381
from collections import ChainMap from typing import Dict, List, Optional import pandas as pd from graphrole.features.prune import FeaturePruner from graphrole.graph import interface from graphrole.types import DataFrameDict, DataFrameLike class RecursiveFeatureExtractor: """ Compute recursive features for node...
[ 6738, 17268, 1330, 21853, 13912, 198, 6738, 19720, 1330, 360, 713, 11, 7343, 11, 32233, 198, 198, 11748, 19798, 292, 355, 279, 67, 198, 198, 6738, 4823, 18090, 13, 40890, 13, 1050, 1726, 1330, 27018, 47, 5143, 263, 198, 6738, 4823, 18...
2.505859
2,560
# -*- coding: utf-8 -*- # Generated by Django 1.10.4 on 2017-08-16 03:36 from __future__ import unicode_literals from django.db import migrations, models
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 2980, 515, 416, 37770, 352, 13, 940, 13, 19, 319, 2177, 12, 2919, 12, 1433, 7643, 25, 2623, 198, 6738, 11593, 37443, 834, 1330, 28000, 1098, 62, 17201, 874, 198, ...
2.736842
57
from datetime import datetime from random import random import random import webbrowser import pyttsx3 import datetime import urllib.request import re import speech_recognition as sr import wikipedia import os engine=pyttsx3.init('sapi5') voices=engine.getProperty('voices') engine.setProperty('voice',voi...
[ 6738, 4818, 8079, 1330, 4818, 8079, 201, 198, 6738, 4738, 1330, 4738, 201, 198, 11748, 4738, 201, 198, 11748, 3992, 40259, 201, 198, 201, 198, 11748, 12972, 83, 912, 87, 18, 201, 198, 11748, 4818, 8079, 201, 198, 11748, 2956, 297, 571...
1.867515
2,121
""" Command peer """ from .command_base import CommandBase from .help_command import HelpCommand from .peer_create_command import PeerCreateCommand
[ 37811, 628, 220, 220, 220, 9455, 12720, 198, 198, 37811, 198, 198, 6738, 764, 21812, 62, 8692, 1330, 9455, 14881, 198, 6738, 764, 16794, 62, 21812, 1330, 10478, 21575, 198, 6738, 764, 33350, 62, 17953, 62, 21812, 1330, 41139, 16447, 215...
3.714286
42
# System import json,re # SBaaS from .stage01_quantification_peakInformation_query import stage01_quantification_peakInformation_query from .stage01_quantification_MQResultsTable_query import stage01_quantification_MQResultsTable_query # Resources from io_utilities.base_importData import base_importData from io_utilit...
[ 171, 119, 123, 2, 4482, 198, 11748, 33918, 11, 260, 198, 2, 18056, 7252, 50, 198, 6738, 764, 14247, 486, 62, 40972, 2649, 62, 36729, 21918, 62, 22766, 1330, 3800, 486, 62, 40972, 2649, 62, 36729, 21918, 62, 22766, 198, 6738, 764, 14...
3.343949
157
""" Balance Sheet Entries """ from datetime import timedelta from matilda import config from matilda.data_pipeline.db_crud import read_financial_statement_entry, companies_in_classification def cash_and_cash_equivalents(stock, date=None, lookback_period: timedelta = timedelta(days=0), period: str = 'Q'): """ ...
[ 37811, 198, 45866, 21616, 7232, 1678, 198, 37811, 198, 198, 6738, 4818, 8079, 1330, 28805, 12514, 198, 198, 6738, 2603, 27281, 1330, 4566, 198, 6738, 2603, 27281, 13, 7890, 62, 79, 541, 4470, 13, 9945, 62, 6098, 463, 1330, 1100, 62, 4...
2.440654
2,081
import serial ANGLE_ERROR_CODE = 65535 # -1 signed int if __name__ == '__main__': arduino = SerialCommunication('COM3', 9600) arduino.setGrabber(GrabberState.CLOSE) print arduino.getRawBeta(), arduino.getRawAlpha()
[ 11748, 11389, 198, 198, 15567, 2538, 62, 24908, 62, 34, 16820, 796, 45021, 2327, 197, 2, 532, 16, 4488, 493, 628, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 198, 220, 220, 220, 610, 24493, 796, 23283, 30813, 3299, ...
2.694118
85
import importlib import pickle import glob from excut.utils.logging import logger def restore_model(model_name_path=None, module_name="ampligraph.latent_features"): """Restore a saved model from disk. See also :meth:`save_model`. Parameters ---------- model_name_path: string ...
[ 11748, 1330, 8019, 198, 11748, 2298, 293, 198, 198, 11748, 15095, 198, 198, 6738, 2859, 315, 13, 26791, 13, 6404, 2667, 1330, 49706, 628, 198, 4299, 11169, 62, 19849, 7, 19849, 62, 3672, 62, 6978, 28, 14202, 11, 8265, 62, 3672, 2625, ...
2.270588
1,360
from src.analysis.adjacencyAnalysis import * from src.vendor.Xilinx.S7.x7s import * from src.vendor.Xilinx.S7.x7s_filters import * from src.vendor.Xilinx.S7.x7s_clusterings import *
[ 6738, 12351, 13, 20930, 13, 324, 30482, 1387, 32750, 1330, 1635, 198, 6738, 12351, 13, 85, 18738, 13, 55, 346, 28413, 13, 50, 22, 13, 87, 22, 82, 1330, 1635, 198, 198, 6738, 12351, 13, 85, 18738, 13, 55, 346, 28413, 13, 50, 22, ...
2.38961
77
# -*- coding: utf-8 -*- #-----------------------------------------------------------------------------# # Import Librairies # #-----------------------------------------------------------------------------# import tool_kit as tk #--------------------------------...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 2, 10097, 32501, 2, 198, 2, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, ...
2.071775
2,884
import preprocess from sklearn.preprocessing import StandardScaler from sklearn.decomposition import PCA import pandas as pd import plotly.express as px from sklearn.decomposition import FastICA import matplotlib.pyplot as plt import numpy as np dataPath = r"C:\Users\shalev\Desktop\Introduction_to_AI\Introduction-to-A...
[ 11748, 662, 14681, 198, 6738, 1341, 35720, 13, 3866, 36948, 1330, 8997, 3351, 36213, 198, 6738, 1341, 35720, 13, 12501, 296, 9150, 1330, 4217, 32, 198, 11748, 19798, 292, 355, 279, 67, 198, 11748, 7110, 306, 13, 42712, 355, 279, 87, 1...
2.798319
238
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # Copyright 2014 Violin Memory, 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...
[ 2, 43907, 25, 7400, 11338, 28, 19, 6482, 10394, 28, 19, 2705, 8658, 11338, 28, 19, 198, 198, 2, 15069, 1946, 13085, 259, 14059, 11, 3457, 13, 198, 2, 1439, 6923, 33876, 13, 198, 2, 198, 2, 220, 220, 220, 49962, 739, 262, 24843, ...
2.411466
1,378
# ALLOW_RETRIES: 3 # RUN: false
[ 2, 11096, 3913, 62, 2200, 5446, 11015, 25, 513, 198, 198, 2, 32494, 25, 3991, 198 ]
2.0625
16
""" From: https://taxfoundation.org/2017-tax-brackets/ Rate |Taxable Income Bracket |Tax Owed :--- |:--------------------- |:-------- 10% |$0 to $9,325 |10% of Taxable Income 15% |$9,325 to $37,950 |$932.50 plus 15% of the excess over $9325 25% |$37,950 to $91,900 |$5,226.25 p...
[ 37811, 198, 4863, 25, 3740, 1378, 19290, 42526, 13, 2398, 14, 5539, 12, 19290, 12, 1671, 25180, 14, 198, 198, 32184, 220, 220, 220, 930, 27017, 540, 19003, 1709, 8317, 220, 930, 27017, 11960, 276, 198, 25, 6329, 220, 220, 220, 930, ...
2.019084
786
''' This is how to track a white ball example using SimpleCV The parameters may need to be adjusted to match the RGB color of your object. The demo video can be found at: http://www.youtube.com/watch?v=jihxqg3kr-g ''' print __doc__ import SimpleCV display = SimpleCV.Display() cam = SimpleCV.Camera() normaldisplay =...
[ 7061, 6, 198, 1212, 318, 703, 284, 2610, 257, 2330, 2613, 1672, 1262, 17427, 33538, 198, 198, 464, 10007, 743, 761, 284, 307, 12328, 284, 2872, 262, 25228, 3124, 198, 1659, 534, 2134, 13, 198, 198, 464, 13605, 2008, 460, 307, 1043, ...
2.639881
336
import sys import re import os if __name__ == '__main__': images, bootstrap_crds, phapptemplates_dir = sys.argv[1:] section("Inputs") print("images.yaml => {}".format(images)) print("crds.yaml => {}".format(bootstrap_crds)) print("ph-app-templates => {}".format(phapptemplates_dir)) mai...
[ 11748, 25064, 198, 11748, 302, 198, 11748, 28686, 628, 628, 628, 628, 198, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 198, 220, 220, 220, 4263, 11, 6297, 26418, 62, 66, 4372, 82, 11, 872, 1324, 11498, 17041, 62, ...
2.441176
170
from py2exe_converter.converter import convert convert('example.py', 'requirements.txt', 'icon_one.png')
[ 6738, 12972, 17, 13499, 62, 1102, 332, 353, 13, 1102, 332, 353, 1330, 10385, 198, 198, 1102, 1851, 10786, 20688, 13, 9078, 3256, 705, 8897, 18883, 13, 14116, 3256, 705, 4749, 62, 505, 13, 11134, 11537 ]
2.916667
36
import Foundation
[ 11748, 5693, 198 ]
6
3
# Lib import logging import pandas as pd # App from ..models import ( FG_PROBE_SUBSETS, ArrayType, Channel, ProbeType, ) from ..files import IdatDataset from ..utils import inner_join_data from ..utils.progress_bar import * # checks environment and imports tqdm appropriately. from collections import Cou...
[ 2, 7980, 198, 11748, 18931, 198, 11748, 19798, 292, 355, 279, 67, 198, 2, 2034, 198, 6738, 11485, 27530, 1330, 357, 198, 220, 220, 220, 25503, 62, 4805, 9864, 36, 62, 12564, 4462, 32716, 11, 198, 220, 220, 220, 15690, 6030, 11, 198,...
2.451623
3,235
import numpy as np import matplotlib.pyplot as plt import matplotlib.colors as c from Perceptron import Perceptron # Simple kernel # Do not change these three lines. data = np.loadtxt("data.csv", delimiter=',') X = data[:, :2] Y = data[:, 2] # These are the parameters for the models. Please play with these a...
[ 198, 198, 11748, 299, 32152, 355, 45941, 220, 198, 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 198, 11748, 2603, 29487, 8019, 13, 4033, 669, 355, 269, 198, 6738, 2448, 984, 1313, 1330, 2448, 984, 1313, 628, 198, 2, 17427,...
3.021807
321
from a10sdk.common.A10BaseClass import A10BaseClass class BroadcastRateLimit(A10BaseClass): """This class does not support CRUD Operations please use parent. :param rate: {"description": "packets per second. Default is 500. (packets per second. Please specify an even number. Default is 500)", "format": ...
[ 6738, 257, 940, 21282, 74, 13, 11321, 13, 32, 940, 14881, 9487, 1330, 317, 940, 14881, 9487, 628, 198, 4871, 44244, 32184, 39184, 7, 32, 940, 14881, 9487, 2599, 198, 220, 220, 220, 220, 198, 220, 220, 220, 37227, 1212, 1398, 857, 40...
3.104588
1,482
from distutils.core import setup setup( name="asyncio-irc", version="0.2.1", description="irc based on asyncio", author="Fox Wilson", author_email="fwilson@fwilson.me", url="https://github.com/watchtower/asyncirc", install_requires=["blinker"], packages=[...
[ 6738, 1233, 26791, 13, 7295, 1330, 9058, 198, 198, 40406, 7, 198, 220, 220, 220, 220, 220, 220, 220, 1438, 2625, 292, 13361, 952, 12, 1980, 1600, 198, 220, 220, 220, 220, 220, 220, 220, 2196, 2625, 15, 13, 17, 13, 16, 1600, 198, ...
2.240506
158
from unittest import mock from unittest.mock import patch from src.generate_new_site.site_data_structs import site from pathlib import Path ################ # Test write() # ################ @patch('jinja2.Template.render') @patch('src.generate_new_site.site_data_structs.site.Index.update_href') @patch('src.gene...
[ 6738, 555, 715, 395, 1330, 15290, 198, 6738, 555, 715, 395, 13, 76, 735, 1330, 8529, 198, 6738, 12351, 13, 8612, 378, 62, 3605, 62, 15654, 13, 15654, 62, 7890, 62, 7249, 82, 1330, 2524, 198, 6738, 3108, 8019, 1330, 10644, 628, 198, ...
3.197044
203
""" fractional_part function divides the numerator by the denominator, and returns just the fractional part (a number between 0 and 1). Complete the body of the function so that it returns the right number. Note: Since division by 0 produces an error, if the denominator is 0, the function should return 0 instead of at...
[ 37811, 201, 198, 69, 7861, 282, 62, 3911, 2163, 36319, 262, 5470, 1352, 416, 262, 31457, 1352, 11, 290, 5860, 655, 262, 13390, 282, 636, 357, 64, 1271, 1022, 657, 290, 352, 737, 13248, 262, 1767, 286, 262, 2163, 523, 326, 340, 5860,...
3.177665
197
from setuptools import setup, find_packages setup( name='openvpp-agents', version='0.1.0', author='Martin Tröschel', author_email='martin.troeschel@gmail.com', description=('The Open VPP multi-agent system'), # long_description=(open('README.txt').read() + '\n\n' + # open...
[ 6738, 900, 37623, 10141, 1330, 9058, 11, 1064, 62, 43789, 628, 198, 40406, 7, 198, 220, 220, 220, 1438, 11639, 9654, 85, 381, 12, 49638, 3256, 198, 220, 220, 220, 2196, 11639, 15, 13, 16, 13, 15, 3256, 198, 220, 220, 220, 1772, 11...
1.958696
460
#/usr/bin/env python import os from setuptools import setup, find_packages ROOT_DIR = os.path.dirname(__file__) SOURCE_DIR = os.path.join(ROOT_DIR) setup( name="haikus", description="Some classes for finding haikus in text", author="Grant Thomas", author_email="grant.thomas@wk.com", url="https://g...
[ 2, 14, 14629, 14, 8800, 14, 24330, 21015, 198, 11748, 28686, 198, 6738, 900, 37623, 10141, 1330, 9058, 11, 1064, 62, 43789, 198, 198, 13252, 2394, 62, 34720, 796, 28686, 13, 6978, 13, 15908, 3672, 7, 834, 7753, 834, 8, 198, 47690, 6...
2.593023
344
# perform gwas, use sub functions import argparse import torch import numpy as np from itertools import repeat from perform_gwas import model, kin, perm from preprocessing import load_files, prepare_data import time def gwas(arguments: argparse.Namespace, X: torch.tensor, y: torch.tensor, K: torch.tensor, covs: torch...
[ 2, 1620, 308, 9776, 11, 779, 850, 5499, 198, 11748, 1822, 29572, 198, 11748, 28034, 198, 11748, 299, 32152, 355, 45941, 198, 6738, 340, 861, 10141, 1330, 9585, 198, 6738, 1620, 62, 70, 9776, 1330, 2746, 11, 18967, 11, 9943, 198, 6738,...
2.308578
4,080
import face_detection as m import time m.init('./models/ncnn/') print('warming up') m.detect('./images_480p/1_854x480.jpg') m.detect('./images_480p/1_854x480.jpg') m.detect('./images_480p/1_854x480.jpg') m.detect('./images_480p/1_854x480.jpg') m.detect('./images_480p/1_854x480.jpg') start = time.time() for i in range...
[ 11748, 1986, 62, 15255, 3213, 355, 285, 198, 11748, 640, 198, 198, 76, 13, 15003, 7, 4458, 14, 27530, 14, 10782, 20471, 14, 11537, 198, 4798, 10786, 48133, 510, 11537, 198, 76, 13, 15255, 478, 7, 4458, 14, 17566, 62, 22148, 79, 14, ...
2.320158
253