content
stringlengths
1
1.04M
input_ids
listlengths
1
774k
ratio_char_token
float64
0.38
22.9
token_count
int64
1
774k
from pathlib import Path from wired_components.resource import Root
[ 6738, 3108, 8019, 1330, 10644, 198, 198, 6738, 28217, 62, 5589, 3906, 13, 31092, 1330, 20410, 628, 198 ]
3.944444
18
import math from typing import List import aiohttp_jinja2 from aiohttp import web import sqlalchemy as sa from terial.database import session_scope from terial.models import Exemplar @aiohttp_jinja2.template('list_exemplars.html')
[ 11748, 10688, 198, 6738, 19720, 1330, 7343, 198, 198, 11748, 257, 952, 4023, 62, 18594, 6592, 17, 198, 6738, 257, 952, 4023, 1330, 3992, 198, 11748, 44161, 282, 26599, 355, 473, 198, 198, 6738, 1059, 498, 13, 48806, 1330, 6246, 62, 29...
3.189189
74
from typing import Any
[ 6738, 19720, 1330, 4377, 628 ]
4.8
5
from random import randint import csv #Used for generating grid dataset if __name__ == "__main__": main()
[ 6738, 4738, 1330, 43720, 600, 201, 198, 11748, 269, 21370, 201, 198, 201, 198, 2, 38052, 329, 15453, 10706, 27039, 201, 198, 201, 198, 201, 198, 201, 198, 201, 198, 361, 11593, 3672, 834, 6624, 366, 834, 12417, 834, 1298, 201, 198, ...
2.55102
49
import re from typing import Tuple from utils.collection.collection_utils import flatten from utils.converters.base_word_capitalizer import BaseWordCapitalizer from utils.converters.symbol_name_formatter import SymbolNameFormatter from utils.data.compound_symbol_name import CompoundSymbolName from utils.data.compound...
[ 11748, 302, 198, 198, 6738, 19720, 1330, 309, 29291, 198, 198, 6738, 3384, 4487, 13, 43681, 13, 43681, 62, 26791, 1330, 27172, 268, 198, 6738, 3384, 4487, 13, 1102, 332, 1010, 13, 8692, 62, 4775, 62, 27544, 7509, 1330, 7308, 26449, 39...
3.480392
102
""" TODO write this """ from originexample import logger from originexample.db import atomic from originexample.tasks import celery_app from originexample.technology import Technology from originexample.services.datahub import DataHubService service = DataHubService() @celery_app.task( name='import_technologie...
[ 37811, 198, 51, 3727, 46, 3551, 428, 198, 37811, 198, 6738, 1796, 500, 87, 1403, 1330, 49706, 198, 6738, 1796, 500, 87, 1403, 13, 9945, 1330, 17226, 198, 6738, 1796, 500, 87, 1403, 13, 83, 6791, 1330, 18725, 1924, 62, 1324, 198, 673...
2.780423
378
from django.contrib.auth.decorators import login_required from django.shortcuts import render from posts.models import Post from books import services
[ 6738, 42625, 14208, 13, 3642, 822, 13, 18439, 13, 12501, 273, 2024, 1330, 17594, 62, 35827, 198, 6738, 42625, 14208, 13, 19509, 23779, 1330, 8543, 198, 6738, 6851, 13, 27530, 1330, 2947, 198, 6738, 3835, 1330, 2594, 198 ]
3.973684
38
# Randomly selects ~500 queries to test from the 1.4mil query set import random if __name__ == "__main__": main()
[ 2, 14534, 306, 40573, 5299, 4059, 20743, 284, 1332, 422, 262, 352, 13, 19, 25433, 12405, 900, 198, 198, 11748, 4738, 198, 198, 361, 11593, 3672, 834, 6624, 366, 834, 12417, 834, 1298, 198, 197, 12417, 3419, 198 ]
3.078947
38
import numpy as np import scipy.sparse.linalg as sp import itertools # turn of warning for zero division (occurs due to vectorization) np.seterr(divide='ignore', invalid='ignore') # ----------------------------------- GRID ------------------------------------ Nx = 31 # number of voxels in x-direction...
[ 11748, 299, 32152, 355, 45941, 198, 11748, 629, 541, 88, 13, 82, 29572, 13, 75, 1292, 70, 355, 599, 198, 11748, 340, 861, 10141, 198, 198, 2, 1210, 286, 6509, 329, 6632, 7297, 357, 13966, 1834, 2233, 284, 15879, 1634, 8, 198, 37659,...
2.064637
2,924
def remove_digits(s): """ Returns a string with all digits removed. """ return ''.join(filter(lambda x: not x.isdigit(), s)) def remove_parentheticals(s): """ Removes any parenthetical expression from a string Returns "Bolivia" from "Bolivia (Plurinational State of)" """ ...
[ 4299, 4781, 62, 12894, 896, 7, 82, 2599, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 16409, 257, 4731, 351, 477, 19561, 4615, 13, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 1441, 705, 4458, 22179, 7, 244...
2.703552
732
from django.contrib.auth import get_user_model from django.contrib.auth.decorators import permission_required from django.http import JsonResponse from django.shortcuts import get_object_or_404 from django.template import RequestContext from django.template.loader import render_to_string from django.utils.decorators im...
[ 6738, 42625, 14208, 13, 3642, 822, 13, 18439, 1330, 651, 62, 7220, 62, 19849, 198, 6738, 42625, 14208, 13, 3642, 822, 13, 18439, 13, 12501, 273, 2024, 1330, 7170, 62, 35827, 198, 6738, 42625, 14208, 13, 4023, 1330, 449, 1559, 31077, 1...
3.588608
158
# $Id: aim.py 23 2006-11-08 15:45:33Z dugsong $ # -*- coding: utf-8 -*- """AOL Instant Messenger.""" from __future__ import absolute_import import struct from . import dpkt # OSCAR: http://iserverd1.khstu.ru/oscar/ class FLAP(dpkt.Packet): """Frame Layer Protocol. See more about the FLAP on https://e...
[ 2, 720, 7390, 25, 4031, 13, 9078, 2242, 4793, 12, 1157, 12, 2919, 1315, 25, 2231, 25, 2091, 57, 288, 10339, 506, 720, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 37811, 32, 3535, 24470, 24306, 526, 1...
2.14
500
from typing import Iterable import numpy from ..solver_interface.solver_interface import solve_milp, solve_lp from ..utils.constraint_utilities import constraint_norm from ..utils.general_utils import make_column def chebyshev_ball(A: numpy.ndarray, b: numpy.ndarray, equality_constraints: Iterable[int] = None, ...
[ 6738, 19720, 1330, 40806, 540, 198, 198, 11748, 299, 32152, 198, 198, 6738, 11485, 82, 14375, 62, 39994, 13, 82, 14375, 62, 39994, 1330, 8494, 62, 25433, 79, 11, 8494, 62, 34431, 198, 6738, 11485, 26791, 13, 1102, 2536, 2913, 62, 315,...
2.213836
1,590
"""Model definitions for the contact app.""" from wagtail.core.blocks import RichTextBlock, StreamBlock, StructBlock, TextBlock from wagtail.core.fields import StreamField from home.models import AbstractContentPage, DefaultPageHeaderImageMixin class ContactTypeStreamBlock(StreamBlock): """Model allowing the CMS...
[ 37811, 17633, 17336, 329, 262, 2800, 598, 526, 15931, 198, 198, 6738, 266, 363, 13199, 13, 7295, 13, 27372, 1330, 3998, 8206, 12235, 11, 13860, 12235, 11, 32112, 12235, 11, 8255, 12235, 198, 6738, 266, 363, 13199, 13, 7295, 13, 25747, ...
3.44086
279
A = int(input()) print((A - 1)**A)
[ 32, 796, 493, 7, 15414, 28955, 201, 198, 4798, 19510, 32, 532, 352, 8, 1174, 32, 8, 201, 198 ]
1.947368
19
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Nada """ from menu import Menu
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 201, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 201, 198, 201, 198, 37811, 201, 198, 45, 4763, 201, 198, 37811, 201, 198, 201, 198, 6738, 6859, 1330, 21860, 201, 198...
1.978723
47
import paramiko import tempfile import time import socket import logging from rackattack.ssh import ftp from rackattack.ssh import run from rackattack.ssh import dirftp from rackattack.ssh import tunnel
[ 11748, 5772, 12125, 198, 11748, 20218, 7753, 198, 11748, 640, 198, 11748, 17802, 198, 11748, 18931, 198, 6738, 19127, 20358, 13, 45824, 1330, 10117, 79, 198, 6738, 19127, 20358, 13, 45824, 1330, 1057, 198, 6738, 19127, 20358, 13, 45824, 1...
3.886792
53
import traceback from pygame.rect import Rect import cmg from cmg.color import Color from cmg.widgets.layout_item import LayoutItem from cmg.event import Event from cmg.input import KeyShortcut
[ 11748, 12854, 1891, 198, 6738, 12972, 6057, 13, 2554, 1330, 48599, 198, 11748, 269, 11296, 198, 6738, 269, 11296, 13, 8043, 1330, 5315, 198, 6738, 269, 11296, 13, 28029, 11407, 13, 39786, 62, 9186, 1330, 47639, 7449, 198, 6738, 269, 112...
3.482143
56
""" analyze chemical input/output filetype """ import os import re import argparse import configparser import modlog from . import fileutil BASE_DIR = os.path.dirname(os.path.abspath(__file__)) DEFAULT_FILETYPE_REGEXP_CONF = 'default_filetype.conf' DEFAULT_FILETYPE_REGEXP_CONF = os.path.join( BASE_DIR, DEFAULT_...
[ 37811, 198, 38200, 2736, 5931, 5128, 14, 22915, 2393, 4906, 198, 37811, 628, 198, 11748, 28686, 198, 11748, 302, 198, 11748, 1822, 29572, 198, 11748, 4566, 48610, 198, 11748, 953, 6404, 198, 6738, 764, 1330, 2393, 22602, 628, 198, 33, 1...
2.276423
1,107
from django.db import models, utils from django.contrib.auth.models import AbstractUser from django.contrib.sessions.base_session import AbstractBaseSession from datetime import *
[ 6738, 42625, 14208, 13, 9945, 1330, 4981, 11, 3384, 4487, 198, 6738, 42625, 14208, 13, 3642, 822, 13, 18439, 13, 27530, 1330, 27741, 12982, 198, 6738, 42625, 14208, 13, 3642, 822, 13, 82, 6202, 13, 8692, 62, 29891, 1330, 27741, 14881, ...
3.693878
49
#!/usr/bin/python # coding: utf-8 import log from osgeo import ogr import os import feature SHAPE_DRIVER = ogr.GetDriverByName('ESRI Shapefile') def read(path=''): """ 读取SHP文件 :param path: :return: """ # 读取数据层 datasource = SHAPE_DRIVER.Open(path, 0) # 0 means read-only. 1 means writeabl...
[ 2, 48443, 14629, 14, 8800, 14, 29412, 198, 2, 19617, 25, 3384, 69, 12, 23, 198, 11748, 2604, 198, 6738, 28686, 469, 78, 1330, 267, 2164, 198, 11748, 28686, 198, 11748, 3895, 198, 198, 9693, 45721, 62, 7707, 38757, 796, 267, 2164, 13...
2.177394
637
from collections import namedtuple with open('input.txt', 'r') as f: data = f.read().splitlines() # Figure out array size x_size = max([int(line.split(', ')[0]) for line in data]) + 1 y_size = max([int(line.split(', ')[1]) for line in data]) + 1 grid_list = [[0 for y in range(y_size)] for x in ...
[ 6738, 17268, 1330, 3706, 83, 29291, 628, 628, 198, 4480, 1280, 10786, 15414, 13, 14116, 3256, 705, 81, 11537, 355, 277, 25, 198, 220, 220, 220, 1366, 796, 277, 13, 961, 22446, 35312, 6615, 3419, 628, 220, 220, 220, 1303, 11291, 503, ...
2.169514
761
from django.contrib.auth import get_user_model from db.serializers.user_serializer import UserSerializer from lib.lower_strip import strip_and_lower from app.action import Action from db.models.artist import Artist from db.models.account import Account from ..validations.validate_artist import RegisterArtistValidation ...
[ 6738, 42625, 14208, 13, 3642, 822, 13, 18439, 1330, 651, 62, 7220, 62, 19849, 198, 6738, 20613, 13, 46911, 11341, 13, 7220, 62, 46911, 7509, 1330, 11787, 32634, 7509, 198, 6738, 9195, 13, 21037, 62, 36311, 1330, 10283, 62, 392, 62, 21...
3.86747
83
# -*- coding: utf-8 -*- """Player module.""" import datetime
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 14140, 8265, 526, 15931, 198, 11748, 4818, 8079, 198 ]
2.541667
24
# -*- coding: utf-8 -*- import numpy as np import theano from theano import gof import theano.tensor as tt __all__ = ["spotYlmOp"]
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 262, 5733, 198, 6738, 262, 5733, 1330, 467, 69, 198, 11748, 262, 5733, 13, 83, 22854, 355, 256, 83, 198, 198, 834, 439, 834,...
2.436364
55
#------------------------------------------------------------------------------ # Copyright (c) 2013, Enthought, Inc. # All rights reserved. #------------------------------------------------------------------------------ from types import FunctionType from traits.api import ( Any, Property, Disallow, ReadOnly, C...
[ 2, 10097, 26171, 198, 2, 220, 15069, 357, 66, 8, 2211, 11, 2039, 28895, 11, 3457, 13, 198, 2, 220, 1439, 2489, 10395, 13, 198, 2, 10097, 26171, 198, 6738, 3858, 1330, 15553, 6030, 198, 198, 6738, 12796, 13, 15042, 1330, 357, 198, ...
2.808058
7,372
n1 = int(input("Input first number: ") n2 = int(input("Input second number: ") sum = n1+n2 print("Sum:",sum)
[ 77, 16, 796, 493, 7, 15414, 7203, 20560, 717, 1271, 25, 366, 8, 198, 77, 17, 796, 493, 7, 15414, 7203, 20560, 1218, 1271, 25, 366, 8, 198, 16345, 796, 299, 16, 10, 77, 17, 198, 4798, 7203, 13065, 25, 1600, 16345, 8, 198 ]
2.477273
44
"""Actions to manage challenge clusters""" from .commands import vlan_ifname, BrctlCmd, ComposeCmd from .db import DB import docker import logging import subprocess logger = logging.getLogger(__name__) dockerc = docker.from_env() def cluster_check(user, vpn, cluster): """Check that the cluster is up when Redis ...
[ 37811, 32, 2733, 284, 6687, 4427, 23163, 37811, 198, 198, 6738, 764, 9503, 1746, 1330, 410, 9620, 62, 361, 3672, 11, 1709, 34168, 40109, 11, 3082, 577, 40109, 198, 6738, 764, 9945, 1330, 20137, 198, 11748, 36253, 198, 11748, 18931, 198,...
2.498471
327
# -*- coding: utf-8 -*- """ Created on Sat Jul 13 15:08:56 2019 @author: w """ import __init__ import ffn from pyetf.data import eod from pyetf.alloc import rpw_standard, rpw_ledoit_wolf from pyetf.alloc import rpw_garch from pyetf.alloc import rpw_future from pyetf.alloc import to_weights from pyetf.figure import plo...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 198, 41972, 319, 7031, 5979, 1511, 1315, 25, 2919, 25, 3980, 13130, 198, 198, 31, 9800, 25, 266, 198, 37811, 198, 11748, 11593, 15003, 834, 198, 11748, 277, 22184...
2.264957
585
# -*- coding: utf-8 -*- import re import scrapy from locations.items import GeojsonPointItem from locations.hours import OpeningHours
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 11748, 302, 198, 198, 11748, 15881, 88, 198, 198, 6738, 7064, 13, 23814, 1330, 2269, 13210, 1559, 12727, 7449, 198, 6738, 7064, 13, 24425, 1330, 25522, 39792, 628 ]
3.261905
42
import json import os import sys import tempfile from typing import Any from typing import Optional import lib.core as constances from lib import __file__ as lib_path from lib.app.helpers import split_project_path from lib.app.input_converters.conversion import import_annotation from lib.app.interface.base_interface i...
[ 11748, 33918, 198, 11748, 28686, 198, 11748, 25064, 198, 11748, 20218, 7753, 198, 6738, 19720, 1330, 4377, 198, 6738, 19720, 1330, 32233, 198, 198, 11748, 9195, 13, 7295, 355, 1500, 1817, 198, 6738, 9195, 1330, 11593, 7753, 834, 355, 9195...
2.511514
3,257
#!/usr/bin/env python # -*- coding: utf-8 -*- """ test_pandits ---------------------------------- Tests for `pandits` module. """ ############################################################################## from scipy import stats from pandits import strategies from pandits.bandit import Bandit import pytest ##...
[ 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, 198, 9288, 62, 79, 392, 896, 198, 3880, 438, 198, 198, 51, 3558, 329, 4600, 79, 392, 896, 63, 8265, 13,...
3.012766
235
import requests headers = { 'Origin': 'http://www.realtor.ca', # 'Accept-Encoding': 'gzip, deflate', 'Accept-Language': 'en-US,en;q=0.8', 'User-Agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/45.0.2454.101 Safari/537.36', 'Content-Type': 'appli...
[ 11748, 7007, 198, 198, 50145, 796, 1391, 198, 220, 220, 220, 705, 39688, 10354, 705, 4023, 1378, 2503, 13, 260, 2501, 273, 13, 6888, 3256, 198, 220, 220, 220, 1303, 705, 38855, 12, 27195, 7656, 10354, 705, 70, 13344, 11, 825, 17660, ...
2.241758
546
import pandas as pd import seaborn as sns import matplotlib.pyplot as plt gen_correlation()
[ 11748, 19798, 292, 355, 279, 67, 198, 11748, 384, 397, 1211, 355, 3013, 82, 198, 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 198, 198, 5235, 62, 10215, 49501, 3419 ]
2.875
32
import os import glob import logging logger = logging.getLogger("api_log")
[ 11748, 28686, 198, 11748, 15095, 198, 11748, 18931, 198, 6404, 1362, 796, 18931, 13, 1136, 11187, 1362, 7203, 15042, 62, 6404, 4943, 198 ]
3.26087
23
#!/usr/bin/env python import hashlib,string from numbers import Number from base64 import standard_b64encode,standard_b64decode import filehash try: import warnings except ImportError: warnings = None try: import json except ImportError: json = None #######CONSTANTS####### _PRINTABLE = ''.join(map(ch...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 198, 11748, 12234, 8019, 11, 8841, 198, 6738, 3146, 1330, 7913, 198, 6738, 2779, 2414, 1330, 3210, 62, 65, 2414, 268, 8189, 11, 20307, 62, 65, 2414, 12501, 1098, 198, 11748, 2393, 1783...
2.084889
1,661
import pandas as pd import requests def update_data(): """ Downloads the data and writes them to a new csv file. :return: None """ confirmed_url = "https://data.humdata.org/hxlproxy/api/data-preview.csv?" \ "url=https%3A%2F%2Fraw.githubusercontent.com%2FCSSEGISandData%2FCOVID-...
[ 11748, 19798, 292, 355, 279, 67, 198, 11748, 7007, 628, 198, 4299, 4296, 62, 7890, 33529, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 50093, 262, 1366, 290, 6797, 606, 284, 257, 649, 269, 21370, 2393, 13, 198, 220, 220, 220, 1058...
2.151087
920
from flask import Flask, request import ujson as json kv = {} app = Flask(__name__) @app.route('/kv') if __name__=="__main__": app.run(port=8080)
[ 6738, 42903, 1330, 46947, 11, 2581, 198, 11748, 334, 17752, 355, 33918, 198, 198, 74, 85, 796, 23884, 198, 198, 1324, 796, 46947, 7, 834, 3672, 834, 8, 198, 198, 31, 1324, 13, 38629, 10786, 14, 74, 85, 11537, 198, 198, 361, 11593, ...
2.396825
63
from expression import * changeDegreeGpio([0],[0],5,0.03) time.sleep(0.5) changeDegreeGpio([0],[90],5,0.03) time.sleep(0.5) changeDegreeGpio([0],[180],5,0.03) time.sleep(0.5) changeDegreeGpio([0],[90],5,0.03) time.sleep(0.5)
[ 6738, 5408, 1330, 1635, 198, 198, 3803, 35, 1533, 631, 38, 79, 952, 26933, 15, 38430, 15, 4357, 20, 11, 15, 13, 3070, 8, 198, 2435, 13, 42832, 7, 15, 13, 20, 8, 198, 3803, 35, 1533, 631, 38, 79, 952, 26933, 15, 38430, 3829, 43...
1.923729
118
import ctypes import sys from pydigilent.lowlevel.common import HIF if sys.platform.startswith("win"): _depp = ctypes.cdll.depp else: _depp = ctypes.cdll.LoadLibrary("libdepp.so") _DeppGetVersion = _depp.DeppGetVersion _DeppGetVersion.argtypes = [ctypes.POINTER(ctypes.c_char * 32)] _DeppGetVersion.restype = ...
[ 11748, 269, 19199, 198, 11748, 25064, 198, 198, 6738, 279, 5173, 27187, 298, 13, 9319, 5715, 13, 11321, 1330, 367, 5064, 198, 198, 361, 25064, 13, 24254, 13, 9688, 2032, 342, 7203, 5404, 1, 2599, 198, 220, 220, 220, 4808, 2934, 381, ...
2.332623
938
for i in range(int(input())): n,k = [int(j) for j in input().split()] m,s = set(),set() for j in range(k): a,b = [int(p) for p in input().split()] m.add(a-1) s.add(b-1) c = 0 l = [] for j in range(n): if(j not in m): for k in range(n): ...
[ 1640, 1312, 287, 2837, 7, 600, 7, 15414, 28955, 2599, 198, 220, 220, 220, 299, 11, 74, 796, 685, 600, 7, 73, 8, 329, 474, 287, 5128, 22446, 35312, 3419, 60, 198, 220, 220, 220, 285, 11, 82, 796, 900, 22784, 2617, 3419, 198, 220,...
1.481793
357
# -*- coding: utf-8 -*- # numerical.py from __future__ import division from __future__ import print_function from __future__ import absolute_import from __future__ import unicode_literals import re import numpy as np from collections import Counter, OrderedDict from mipqctool.config import ERROR, LOGGER, DEFAULT_MISS...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 29052, 13, 9078, 198, 198, 6738, 11593, 37443, 834, 1330, 7297, 198, 6738, 11593, 37443, 834, 1330, 3601, 62, 8818, 198, 6738, 11593, 37443, 834, 1330, 4112, 62, 1174...
1.995027
2,212
import unittest from django.test import TestCase from django.test.utils import override_settings from .test_backends import BackendTests @override_settings(WAGTAILSEARCH_BACKENDS={ 'default': { 'BACKEND': 'wagtail.search.backends.database.fallback', } })
[ 11748, 555, 715, 395, 198, 198, 6738, 42625, 14208, 13, 9288, 1330, 6208, 20448, 198, 6738, 42625, 14208, 13, 9288, 13, 26791, 1330, 20957, 62, 33692, 198, 198, 6738, 764, 9288, 62, 1891, 2412, 1330, 5157, 437, 51, 3558, 628, 198, 31,...
2.722772
101
import torch from .. import FF class PositionwiseFF(torch.nn.Module): """Positionwise Feed-forward layer. Arguments: Input: Output: """
[ 11748, 28034, 198, 198, 6738, 11485, 1330, 18402, 628, 198, 4871, 23158, 3083, 5777, 7, 13165, 354, 13, 20471, 13, 26796, 2599, 198, 220, 220, 220, 37227, 26545, 3083, 18272, 12, 11813, 7679, 13, 628, 220, 220, 220, 20559, 2886, 25, 6...
2.745763
59
""" This example evaluates the volume potential and its derivatives over [-1,1]^3 with the Laplace kernel. """ from __future__ import absolute_import, division, print_function __copyright__ = "Copyright (C) 2019 Xiaoyu Wei" __license__ = """ Permission is hereby granted, free of charge, to any person obtaining a ...
[ 37811, 770, 1672, 47850, 262, 6115, 2785, 290, 663, 28486, 198, 220, 220, 220, 625, 25915, 16, 11, 16, 60, 61, 18, 351, 262, 4689, 5372, 9720, 13, 198, 37811, 198, 6738, 11593, 37443, 834, 1330, 4112, 62, 11748, 11, 7297, 11, 3601, ...
2.289058
6,708
import urlparse import os from bs4 import BeautifulSoup import re from article_parser import ArticleParser
[ 11748, 19016, 29572, 198, 11748, 28686, 198, 6738, 275, 82, 19, 1330, 23762, 50, 10486, 198, 11748, 302, 198, 6738, 2708, 62, 48610, 1330, 10172, 46677, 198 ]
3.962963
27
# Copyright (c) 2011, Roger Lew [see LICENSE.txt] # This software is funded in part by NIH Grant P20 RR016454. import unittest import warnings import os import math from random import shuffle, random from collections import Counter,OrderedDict from dictset import DictSet,_rep_generator from math import isnan, isinf,...
[ 198, 198, 2, 15069, 357, 66, 8, 2813, 11, 13637, 8260, 685, 3826, 38559, 24290, 13, 14116, 60, 198, 2, 770, 3788, 318, 10588, 287, 636, 416, 37483, 12181, 350, 1238, 26067, 27037, 34229, 13, 198, 198, 11748, 555, 715, 395, 198, 1174...
3.042453
212
from itertools import repeat from typing import List, Optional, Dict from conditional import conditional from django.core.checks import Error from django.core.exceptions import ValidationError from django.db import transaction, models, IntegrityError, connections from django.db.models import SlugField from django.util...
[ 6738, 340, 861, 10141, 1330, 9585, 198, 6738, 19720, 1330, 7343, 11, 32233, 11, 360, 713, 198, 198, 6738, 26340, 1330, 26340, 198, 6738, 42625, 14208, 13, 7295, 13, 42116, 1330, 13047, 198, 6738, 42625, 14208, 13, 7295, 13, 1069, 11755,...
1.946024
7,596
# coding: utf-8 # 2019/12/30 @ tongshiwei from PIL import Image, ImageDraw, ImageFont __all__ = ["character_glyph"]
[ 2, 19617, 25, 3384, 69, 12, 23, 198, 2, 13130, 14, 1065, 14, 1270, 2488, 10479, 44019, 42990, 198, 198, 6738, 350, 4146, 1330, 7412, 11, 7412, 25302, 11, 7412, 23252, 198, 198, 834, 439, 834, 796, 14631, 22769, 62, 10853, 746, 8973,...
2.704545
44
#!/usr/bin/env python import os.path import sys from setuptools import setup # This is needed for versioneer to be importable when building with PEP 517. # See <https://github.com/warner/python-versioneer/issues/193> and links # therein for more information. sys.path.append(os.path.dirname(__file__)) from _datalad_b...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 11748, 28686, 13, 6978, 198, 11748, 25064, 198, 198, 6738, 900, 37623, 10141, 1330, 9058, 198, 198, 2, 770, 318, 2622, 329, 2196, 28153, 284, 307, 1330, 540, 618, 2615, 351, 350, 8905,...
2.749296
355
#! /usr/bin/env python3 # # Requires requests # import json import requests import sys WEATHER_URL = "https://example.net/api.php?degree=C&location=" if __name__ == '__main__': main()
[ 2, 0, 1220, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 2, 198, 2, 26848, 7007, 198, 2, 198, 198, 11748, 33918, 198, 11748, 7007, 198, 11748, 25064, 198, 198, 8845, 45226, 62, 21886, 796, 366, 5450, 1378, 20688, 13, 3262, 14, 15042,...
2.694444
72
# -*- coding: UTF-8 -*-. # Author Sazxt # My Team : Black Coder crush import os as _osx from py_compile import compile as comp INC = { "onc":["cek","syntax"], "nca":["ok","not"] } class bytecode: """ Memaparkan Pesan ke dalam bytcode """ class cek_ascii: """ Cek Systax ascii mungkin saja tidak bisa di enc...
[ 2, 532, 9, 12, 19617, 25, 41002, 12, 23, 532, 9, 34507, 198, 2, 6434, 311, 1031, 742, 198, 2, 2011, 4816, 1058, 2619, 327, 12342, 19813, 198, 11748, 28686, 355, 4808, 418, 87, 198, 6738, 12972, 62, 5589, 576, 1330, 17632, 355, 552...
2.18264
553
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*- """ Created on Sun Feb 07 14:31:53 2019 @author: Dominic O'Kane """ from math import sqrt from numba import njit, float64, int32 ########################################################################## @njit(float64(float64[:]), fastmath=True, cache=True) def mean...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 198, 41972, 319, 3825, 3158, 8753, 1478, 25, 3132, 25, 4310, 13130, 198, 198, 31, 9800, 25...
2.624588
911
# -*- coding=utf-8 -*- from __future__ import absolute_import, print_function, unicode_literals import os import sys import textwrap from functools import partial import pytest from pip_shims import ( FAVORITE_HASH, USER_CACHE_DIR, BadCommand, BestVersionAlreadyInstalled, CandidatePreferences, ...
[ 2, 532, 9, 12, 19617, 28, 40477, 12, 23, 532, 9, 12, 198, 6738, 11593, 37443, 834, 1330, 4112, 62, 11748, 11, 3601, 62, 8818, 11, 28000, 1098, 62, 17201, 874, 198, 198, 11748, 28686, 198, 11748, 25064, 198, 11748, 2420, 37150, 198, ...
2.479405
874
""" The channel handler, accessed from this module as CHANNEL_HANDLER is a singleton that handles the stored set of channels and how they are represented against the cmdhandler. If there is a channel named 'newbie', we want to be able to just write newbie Hello! For this to work, 'newbie', the name of the channe...
[ 37811, 198, 464, 6518, 21360, 11, 17535, 422, 428, 8265, 355, 5870, 22846, 3698, 62, 39, 6981, 39878, 318, 257, 198, 12215, 10565, 326, 17105, 262, 8574, 900, 286, 9619, 290, 703, 484, 389, 198, 33469, 1028, 262, 23991, 30281, 13, 198...
2.376521
4,438
from django.conf import settings from django.test import tag, TestCase from django.test.client import Client from django.urls import resolve, reverse from django_otp.plugins.otp_totp.models import TOTPDevice from aidants_connect_web.constants import JournalActionKeywords from aidants_connect_web.models import Journal...
[ 6738, 42625, 14208, 13, 10414, 1330, 6460, 198, 6738, 42625, 14208, 13, 9288, 1330, 7621, 11, 6208, 20448, 198, 6738, 42625, 14208, 13, 9288, 13, 16366, 1330, 20985, 198, 6738, 42625, 14208, 13, 6371, 82, 1330, 10568, 11, 9575, 198, 198...
2.969027
226
# ==================================================================== # This is old code intended for testing the attenuation algorithm. # Not for use in beamline operations. # ==================================================================== import logging import h5py import numpy as np from ophyd import Epics...
[ 2, 38093, 18604, 198, 2, 220, 770, 318, 1468, 2438, 5292, 329, 4856, 262, 31919, 2288, 11862, 13, 198, 2, 220, 1892, 329, 779, 287, 15584, 1370, 4560, 13, 198, 2, 38093, 18604, 198, 198, 11748, 18931, 198, 198, 11748, 289, 20, 9078,...
2.074229
6,911
import os import platform import pygments, markdown from flask import render_template_string from flask_flatpages import FlatPages, pygmented_markdown, pygments_style_defs from app import debug # setup articles, this is where you can do code highlight templates and stuff. BLOG_NAME = "blog name" APP_URL = get_url(...
[ 11748, 28686, 198, 11748, 3859, 198, 11748, 12972, 11726, 11, 1317, 2902, 198, 6738, 42903, 1330, 8543, 62, 28243, 62, 8841, 198, 6738, 42903, 62, 38568, 31126, 1330, 21939, 47798, 11, 12972, 5154, 276, 62, 4102, 2902, 11, 12972, 11726, ...
2.40796
402
#!/usr/bin/env python3 # encoding=utf8 from mylib.easy.text import regex_find
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 2, 21004, 28, 40477, 23, 198, 198, 6738, 616, 8019, 13, 38171, 13, 5239, 1330, 40364, 62, 19796, 628, 198 ]
2.7
30
"""Settings for dev environments (overrides base settings).""" import os from .base import * # noqa: F401, F403 # pylint: disable=unused-wildcard-import, wildcard-import ALLOWED_HOSTS = ['*'] SECRET_KEY = '-sg0o=f6(j3!4u6^86!j@0&l^3clslh-#f@02d2^p_4vy0ma0y' if 'TRAVIS' in os.environ: DATABASES = { 'defa...
[ 37811, 26232, 329, 1614, 12493, 357, 2502, 81, 1460, 2779, 6460, 21387, 15931, 198, 11748, 28686, 198, 6738, 764, 8692, 1330, 1635, 220, 1303, 645, 20402, 25, 376, 21844, 11, 376, 31552, 1303, 279, 2645, 600, 25, 15560, 28, 403, 1484, ...
2.005195
385
# -*- coding: utf-8 -*- # # Teak for Adobe AIR documentation build configuration file, created by # sphinx-quickstart on Thu Aug 31 12:44:59 2017. # # This file is execfile()d with the current directory set to its # containing dir. # # Note that not all possible configuration values are present in this # autogenerated ...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 198, 2, 1665, 461, 329, 21771, 31600, 10314, 1382, 8398, 2393, 11, 2727, 416, 198, 2, 599, 20079, 87, 12, 24209, 9688, 319, 26223, 2447, 3261, 1105, 25, 2598, 25, ...
3.24686
1,831
""" test_credit_cards.py Copyright 2011 Andres Riancho This file is part of w3af, http://w3af.org/ . w3af 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 version 2 of the License. w3af is distributed in the hop...
[ 37811, 198, 9288, 62, 43082, 62, 27761, 13, 9078, 198, 198, 15269, 2813, 843, 411, 371, 666, 6679, 198, 198, 1212, 2393, 318, 636, 286, 266, 18, 1878, 11, 2638, 1378, 86, 18, 1878, 13, 2398, 14, 764, 198, 198, 86, 18, 1878, 318, ...
3.276276
333
#!/usr/bin/python # -*- coding: utf-8 -*- """ https://en.wikipedia.org/wiki/Jones_calculus """ import numpy as np import math import cmath import matplotlib.pyplot as plt from matplotlib.patches import Ellipse __author__ = 'Christian Noelleke (https://github.com/Kricki)' class JonesMatrix(np.matrix): """ ...
[ 2, 48443, 14629, 14, 8800, 14, 29412, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 37811, 198, 5450, 1378, 268, 13, 31266, 13, 2398, 14, 15466, 14, 25784, 62, 9948, 17576, 198, 37811, 198, 198, 11748, 2...
2.028266
2,618
from pydantic import BaseModel
[ 6738, 279, 5173, 5109, 1330, 7308, 17633, 628 ]
4
8
import os import setuptools here = os.path.abspath(os.path.dirname(__file__)) info = {} with open(os.path.join(here, 'enmon', '__info__.py'), 'r') as f: exec(f.read(), info) with open('requirements.txt', 'r') as f: requirements = f.read() with open('README.md', 'r') as f: readme = f.read() setuptools.s...
[ 11748, 28686, 198, 11748, 900, 37623, 10141, 198, 198, 1456, 796, 28686, 13, 6978, 13, 397, 2777, 776, 7, 418, 13, 6978, 13, 15908, 3672, 7, 834, 7753, 834, 4008, 198, 198, 10951, 796, 23884, 198, 4480, 1280, 7, 418, 13, 6978, 13, ...
2.482375
539
import datetime from django.urls import reverse from django_webtest import WebTest from employees.views import parse_date from employees.models import UserData from test_common import ProtectedViewTestCase
[ 11748, 4818, 8079, 198, 198, 6738, 42625, 14208, 13, 6371, 82, 1330, 9575, 198, 198, 6738, 42625, 14208, 62, 12384, 9288, 1330, 5313, 14402, 198, 198, 6738, 4409, 13, 33571, 1330, 21136, 62, 4475, 198, 6738, 4409, 13, 27530, 1330, 11787...
3.836364
55
import os p, f = os.path.split(__file__) root_p = os.path.normpath(p) from HSTB.kluster import __version__ as kluster_version # Configuration file for the Sphinx documentation builder. # # This file only contains a selection of the most common options. For a full # list see the documentation: # https://www.sphinx-doc...
[ 11748, 28686, 198, 79, 11, 277, 796, 28686, 13, 6978, 13, 35312, 7, 834, 7753, 834, 8, 198, 15763, 62, 79, 796, 28686, 13, 6978, 13, 27237, 6978, 7, 79, 8, 198, 198, 6738, 367, 2257, 33, 13, 41582, 5819, 1330, 11593, 9641, 834, ...
3.331978
738
from flask import request from app.api.responses import Responses from app.api.routes.models.office import offices
[ 6738, 42903, 1330, 2581, 198, 198, 6738, 598, 13, 15042, 13, 16733, 274, 1330, 20549, 274, 198, 6738, 598, 13, 15042, 13, 81, 448, 274, 13, 27530, 13, 31810, 1330, 9730, 628 ]
3.65625
32
import setuptools from src.version import VERSION with open("README.md", "r") as fh: long_description = fh.read() setuptools.setup( name="fce-ipmi", version=VERSION, author="Przemyslaw Hausman", description="Wrapper for various IPMI-related utilities", license="MIT", long_description=long...
[ 11748, 900, 37623, 10141, 198, 198, 6738, 12351, 13, 9641, 1330, 44156, 2849, 198, 198, 4480, 1280, 7203, 15675, 11682, 13, 9132, 1600, 366, 81, 4943, 355, 277, 71, 25, 198, 220, 220, 220, 890, 62, 11213, 796, 277, 71, 13, 961, 3419...
2.372549
408
#!/usr/bin/env python from Tkinter import Button, END, Label, W from Pmw import initialise, ComboBox, Counter top = initialise() lb = Label(top, text='Animals (in pairs; min: pair, max: dozen)') lb.pack() ct = Counter(top, labelpos=W, label_text='Number:', datatype='integer', entryfield_value=2,...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 201, 198, 201, 198, 6738, 309, 74, 3849, 1330, 20969, 11, 23578, 11, 36052, 11, 370, 201, 198, 6738, 350, 76, 86, 1330, 4238, 786, 11, 34257, 14253, 11, 15034, 201, 198, 201, 198, 4852, ...
2.368421
285
from django.contrib import admin from bike.models import Version,Brand,Category,Bike,Address from message.models import Message # Register your models here. #单车通过验证代码 bike_verify.short_description = "单车通过验证" #单车未通过验证 bike_fail.short_description = "单车未通过验证" @admin.register(Address) @admin.register(Bike) @admin.register...
[ 6738, 42625, 14208, 13, 3642, 822, 1330, 13169, 198, 6738, 7161, 13, 27530, 1330, 10628, 11, 38416, 11, 27313, 11, 33, 522, 11, 20231, 198, 6738, 3275, 13, 27530, 1330, 16000, 198, 2, 17296, 534, 4981, 994, 13, 198, 2, 39355, 243, 1...
2.195402
174
#!/usr/bin/env python # -*- coding: utf-8 -*- ''' urlfetch ~~~~~~~~~~ An easy to use HTTP client based on httplib. :copyright: (c) 2011-2013 by Yue Du. :license: BSD 2-clause License, see LICENSE for more details. ''' __version__ = '0.5.3.1' __author__ = 'Yue Du <ifduyue@gmail.com>' __url__ = 'https://github.com/ifd...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 7061, 6, 198, 333, 1652, 7569, 198, 15116, 4907, 198, 198, 2025, 2562, 284, 779, 14626, 5456, 1912, 319, 1841, 489, 5...
2.212137
13,331
from aiogram.types import InlineKeyboardMarkup, InlineKeyboardButton start_page_keyboard = InlineKeyboardMarkup(row_width=2) new_list_but = InlineKeyboardButton( text='Новый список', callback_data='new_list') user_lists_but = InlineKeyboardButton( text='Мои списки', callback_data='user_lists') start_page_key...
[ 6738, 257, 72, 21857, 13, 19199, 1330, 554, 1370, 9218, 3526, 9704, 929, 11, 554, 1370, 9218, 3526, 21864, 198, 198, 9688, 62, 7700, 62, 2539, 3526, 796, 554, 1370, 9218, 3526, 9704, 929, 7, 808, 62, 10394, 28, 17, 8, 198, 198, 36...
2.404348
230
from django.forms import ModelForm from .models import MainPersonData
[ 6738, 42625, 14208, 13, 23914, 1330, 9104, 8479, 198, 198, 6738, 764, 27530, 1330, 8774, 15439, 6601, 628 ]
4
18
import numpy as np import matplotlib.pyplot as plt import seaborn as sns import pandas as pd import xarray as xr from scipy import stats def plot(data, x, y, type=None, **kwargs): """ Function to plot the corr coeff plot -------------------------- input 3 values data, x and y in this order and use...
[ 11748, 299, 32152, 355, 45941, 198, 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 198, 11748, 384, 397, 1211, 355, 3013, 82, 198, 11748, 19798, 292, 355, 279, 67, 198, 11748, 2124, 18747, 355, 2124, 81, 198, 6738, 629, 541,...
2.034212
2,163
from factory import DjangoModelFactory, Faker, SubFactory from .boards import BoardFactory from .users import UserFactory from ...models import Topic class TopicFactory(DjangoModelFactory): """ Defines topic factory """ subject = Faker("sentence", nb_words=3) board = SubFactory(BoardFactory) ...
[ 6738, 8860, 1330, 37770, 17633, 22810, 11, 376, 3110, 11, 3834, 22810, 198, 198, 6738, 764, 12821, 1330, 5926, 22810, 198, 6738, 764, 18417, 1330, 11787, 22810, 198, 6738, 2644, 27530, 1330, 47373, 628, 198, 4871, 47373, 22810, 7, 35, 7...
3.308411
107
from __future__ import print_function from math import log10 import numpy import h5py import torch import torch.nn as nn import torch.optim as optim from torch.autograd import Variable from torch.utils.data import DataLoader from model import NetARCNN_deform import argparse from datetime import datetime logfile =...
[ 6738, 11593, 37443, 834, 1330, 3601, 62, 8818, 198, 198, 6738, 10688, 1330, 2604, 940, 198, 198, 11748, 299, 32152, 198, 11748, 289, 20, 9078, 198, 198, 11748, 28034, 198, 11748, 28034, 13, 20471, 355, 299, 77, 198, 11748, 28034, 13, ...
2.813466
906
from tokenizers import Tokenizer from tokenizers.models import BPE from tokenizers.pre_tokenizers import * from tokenizers.trainers import BpeTrainer import tokenizers # Required functions def dict_sort(dictionary: dict) -> list: """Takes in a dictionary with integer values and outputs a list of the keys sorted ...
[ 6738, 11241, 11341, 1330, 29130, 7509, 198, 6738, 11241, 11341, 13, 27530, 1330, 347, 11401, 198, 6738, 11241, 11341, 13, 3866, 62, 30001, 11341, 1330, 1635, 198, 6738, 11241, 11341, 13, 27432, 364, 1330, 347, 431, 2898, 10613, 198, 11748...
3.31016
187
__doc__ = 'Auxiliary file for test98.py' class BaseGood: 'Nice base init' class BaseBad: 'Error should print as coming from this file'
[ 834, 15390, 834, 796, 705, 32, 2821, 28129, 2393, 329, 1332, 4089, 13, 9078, 6, 198, 198, 4871, 7308, 10248, 25, 198, 220, 220, 220, 705, 35284, 2779, 2315, 6, 198, 198, 4871, 7308, 22069, 25, 198, 220, 220, 220, 705, 12331, 815, ...
2.843137
51
import json import unittest from flask import Flask from api import api from database.AudioSchema import Song, Podcast, Audiobook # Define test data headers = dict(api_key="2c5a16d9-a951-4f62-ac68-e4df97e7b15d", api_client="jane.doe@email.com" ) # Change ID on run podcastTestID = "6046f...
[ 11748, 33918, 198, 11748, 555, 715, 395, 198, 6738, 42903, 1330, 46947, 198, 6738, 40391, 1330, 40391, 198, 6738, 6831, 13, 21206, 27054, 2611, 1330, 10940, 11, 16036, 11, 26686, 49776, 628, 198, 2, 2896, 500, 1332, 1366, 198, 50145, 79...
2.179537
518
#!/usr/bin/env python # -*- encoding: utf-8 -*- #class for check open ssl Heartbleed vulnerability import socket import urllib2 import httplib import HTMLParser import base64 import sys import time import select import struct import shodan server_vulnerable =[] hello = h2bin(''' 16 03 02 00 dc 01 00 00 d8 03 02 53...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 532, 9, 12, 21004, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 2, 4871, 329, 2198, 1280, 264, 6649, 8894, 903, 276, 15131, 198, 198, 11748, 17802, 198, 11748, 2956, 297, 571, ...
2.259336
482
from direct.showbase.ShowBase import ShowBase from panda3d.core import CollisionTraverser, CollisionNode from panda3d.core import CollisionHandlerQueue, CollisionRay from panda3d.core import TextNode from panda3d.core import LPoint3, LVector3, BitMask32 from direct.actor.Actor import Actor from direct.gui.Onscree...
[ 6738, 1277, 13, 12860, 8692, 13, 15307, 14881, 1330, 5438, 14881, 201, 198, 6738, 279, 5282, 18, 67, 13, 7295, 1330, 7778, 1166, 15721, 690, 263, 11, 7778, 1166, 19667, 201, 198, 6738, 279, 5282, 18, 67, 13, 7295, 1330, 7778, 1166, ...
3.380392
255
from connect_four.evaluation.evaluator import ProofStatus from connect_four.evaluation.evaluator import Evaluator from connect_four.evaluation.evaluator import NodeType from connect_four.evaluation.victor.victor_evaluator import Victor
[ 6738, 2018, 62, 14337, 13, 18206, 2288, 13, 18206, 84, 1352, 1330, 29999, 19580, 198, 6738, 2018, 62, 14337, 13, 18206, 2288, 13, 18206, 84, 1352, 1330, 26439, 84, 1352, 198, 6738, 2018, 62, 14337, 13, 18206, 2288, 13, 18206, 84, 1352...
3.575758
66
import pytest import filecmp import litmus.compose import os import pathlib this_path = pathlib.Path(__file__).parent.resolve()
[ 11748, 12972, 9288, 198, 11748, 2393, 48991, 198, 11748, 6578, 14664, 13, 785, 3455, 198, 11748, 28686, 198, 11748, 3108, 8019, 198, 5661, 62, 6978, 796, 3108, 8019, 13, 15235, 7, 834, 7753, 834, 737, 8000, 13, 411, 6442, 3419 ]
3.175
40
# -*- coding: utf-8 -*- # Copyright 2017, IBM. # # This source code is licensed under the Apache License, Version 2.0 found in # the LICENSE.txt file in the root directory of this source tree. """This module implements the abstract base class for backend jobs When creating a new backend module it is also necessary t...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 2, 15069, 2177, 11, 19764, 13, 198, 2, 198, 2, 770, 2723, 2438, 318, 11971, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 1043, 287, 198, 2, 262, 38559, 24290...
2.846975
562
# ---------------------------------------------------------------------------- # Gimel Studio Copyright 2019-2022 by the Gimel Studio project contributors # # 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...
[ 2, 16529, 10541, 198, 2, 41123, 417, 11733, 15069, 13130, 12, 1238, 1828, 416, 262, 41123, 417, 11733, 1628, 20420, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 2, 345, 74...
4.505263
190
from ._nodes import model_fit, forward_selection, make_report, hyperopt_fit, model_single_fit, onefactor __all__ = ['model_fit', 'forward_selection', 'make_report', 'hyperopt_fit', 'model_single_fit', 'onefactor']
[ 198, 6738, 47540, 77, 4147, 1330, 2746, 62, 11147, 11, 2651, 62, 49283, 11, 787, 62, 13116, 11, 8718, 8738, 62, 11147, 11, 2746, 62, 29762, 62, 11147, 11, 530, 31412, 198, 198, 834, 439, 834, 796, 37250, 19849, 62, 11147, 3256, 705,...
3.115942
69
import json from sanic.log import logger from pubgate.db import User from pubgate.utils import random_object_id
[ 11748, 33918, 198, 198, 6738, 5336, 291, 13, 6404, 1330, 49706, 198, 198, 6738, 2240, 10494, 13, 9945, 1330, 11787, 198, 6738, 2240, 10494, 13, 26791, 1330, 4738, 62, 15252, 62, 312, 628, 628 ]
3.441176
34
""" Bounding regions and bounding boxes. """ __version__='$Revision$' from numpy import inf ### JABALERT: The aarect information should probably be rewritten in ### matrix notation, not list notation, so that it can be scaled, ### translated, etc. easily. ### import param from param.parameterized import get_occupied...
[ 37811, 198, 33, 9969, 7652, 290, 5421, 278, 10559, 13, 198, 37811, 198, 198, 834, 9641, 834, 11639, 3, 18009, 1166, 3, 6, 198, 198, 6738, 299, 32152, 1330, 1167, 198, 198, 21017, 449, 6242, 1847, 17395, 25, 383, 257, 533, 310, 1321,...
2.601161
3,618
#!/usr/bin/env python3 import sys if __name__ == "__main__": main()
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 11748, 25064, 628, 198, 198, 361, 11593, 3672, 834, 6624, 366, 834, 12417, 834, 1298, 198, 220, 220, 220, 1388, 3419, 198 ]
2.34375
32
from operator import attrgetter import pyangbind.lib.xpathhelper as xpathhelper from pyangbind.lib.yangtypes import RestrictedPrecisionDecimalType, RestrictedClassType, TypedListType from pyangbind.lib.yangtypes import YANGBool, YANGListType, YANGDynClass, ReferenceType from pyangbind.lib.base import PybindBase from d...
[ 198, 6738, 10088, 1330, 708, 81, 1136, 353, 198, 11748, 12972, 648, 21653, 13, 8019, 13, 87, 6978, 2978, 525, 355, 2124, 6978, 2978, 525, 198, 6738, 12972, 648, 21653, 13, 8019, 13, 17859, 19199, 1330, 8324, 20941, 6719, 16005, 10707, ...
2.729175
5,306
import numpy as np from pandas import DataFrame import matplotlib.pyplot as plt class anosim(object): ''' Docstring for function ecopy.anosim ==================== Conducts analysis of similarity (ANOSIM) on a distance matrix given one or two factors (groups) Use ---- anosim(dist, f...
[ 11748, 299, 32152, 355, 45941, 198, 6738, 19798, 292, 1330, 6060, 19778, 198, 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 198, 198, 4871, 281, 418, 320, 7, 15252, 2599, 198, 220, 220, 220, 705, 7061, 198, 220, 220, 220, ...
2.800979
613
from unittest.mock import MagicMock from unittest.mock import patch import pytest from kuber import kube_api from kuber.latest import core_v1 def test_execute(): """Should execute the specified action on the service without error.""" service = core_v1.Service() service.metadata.name = "foo" api = M...
[ 6738, 555, 715, 395, 13, 76, 735, 1330, 6139, 44, 735, 198, 6738, 555, 715, 395, 13, 76, 735, 1330, 8529, 198, 198, 11748, 12972, 9288, 198, 198, 6738, 479, 18478, 1330, 479, 3266, 62, 15042, 198, 6738, 479, 18478, 13, 42861, 1330, ...
2.808824
340
#!/usr/bin/python # -*- coding: utf-8 -*- """ Created on Tue May 12 21:03:53 2020 @author: xange """ import pytesseract import os from matplotlib import pyplot as plt import numpy as np import cv2 from PIL import Image from difflib import SequenceMatcher import sys if __name__ == '__main__': localizeCorrectA...
[ 2, 48443, 14629, 14, 8800, 14, 29412, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 198, 41972, 319, 30030, 1737, 1105, 2310, 25, 3070, 25, 4310, 12131, 198, 198, 31, 9800, 25, 2124, 858, 198, 37811, 1...
2.653846
130
# SPDX-FileCopyrightText: 2018 Dean Miller for Adafruit Industries # # SPDX-License-Identifier: MIT """ `adafruit_epd.ssd1608` - Adafruit SSD1608 - ePaper display driver ==================================================================================== CircuitPython driver for Adafruit SSD1608 display breakouts * Au...
[ 2, 30628, 55, 12, 8979, 15269, 8206, 25, 2864, 11325, 7920, 329, 1215, 1878, 4872, 20171, 198, 2, 198, 2, 30628, 55, 12, 34156, 12, 33234, 7483, 25, 17168, 198, 198, 37811, 198, 63, 324, 1878, 4872, 62, 538, 67, 13, 824, 67, 1433,...
2.115688
2,282
tablename = 'users'
[ 8658, 11925, 480, 796, 705, 18417, 6, 198 ]
2.5
8
import subprocess import re import helper #obj = MULSolve(-3, 7) #r = obj.solve() #print(r)
[ 11748, 850, 14681, 198, 11748, 302, 198, 11748, 31904, 198, 198, 2, 26801, 796, 337, 6239, 50, 6442, 32590, 18, 11, 767, 8, 198, 2, 81, 796, 26181, 13, 82, 6442, 3419, 198, 2, 4798, 7, 81, 8 ]
2.421053
38
n = 10 a = [[0 for x in range(n)] for x in range(n)] b = [[0 for x in range(n)] for x in range(n)] c = [[0 for x in range(n)] for x in range(n)] for i in range(n): for j in range(n): c[i][j] = 0 for k in range(n): c[i][j] = c[i][j] + a[i][k] * b[k][j]
[ 77, 796, 838, 198, 64, 796, 16410, 15, 329, 2124, 287, 2837, 7, 77, 15437, 329, 2124, 287, 2837, 7, 77, 15437, 198, 65, 796, 16410, 15, 329, 2124, 287, 2837, 7, 77, 15437, 329, 2124, 287, 2837, 7, 77, 15437, 198, 66, 796, 16410,...
1.893333
150
# Copyright 2014 Mirantis 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...
[ 2, 15069, 1946, 7381, 20836, 3457, 13, 198, 2, 1439, 6923, 33876, 13, 198, 2, 198, 2, 220, 220, 220, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 345, 743, 198, 2, 220, 220, 220, 407, 779, ...
2.18495
1,887
from .mongodb import MongoDBConnection from .pandas import DataFrameConnection from .sqlite import SQLiteConnection
[ 6738, 764, 31059, 375, 65, 1330, 42591, 35, 2749, 261, 1606, 295, 198, 6738, 764, 79, 392, 292, 1330, 6060, 19778, 32048, 198, 6738, 764, 25410, 578, 1330, 16363, 578, 32048, 198 ]
3.625
32