content
stringlengths
1
1.05M
input_ids
listlengths
1
883k
ratio_char_token
float64
1
22.9
token_count
int64
1
883k
# # Copyright (c) 2019 Intel Corporation # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to...
[ 2, 198, 2, 15069, 357, 66, 8, 13130, 8180, 10501, 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, ...
2.801242
483
# Copyright 2013-2021 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack import *
[ 2, 15069, 2211, 12, 1238, 2481, 13914, 45036, 3549, 2351, 4765, 11, 11419, 290, 584, 198, 2, 1338, 441, 4935, 34152, 13, 4091, 262, 1353, 12, 5715, 27975, 38162, 9947, 2393, 329, 3307, 13, 198, 2, 198, 2, 30628, 55, 12, 34156, 12, ...
3.421875
64
from requests import get import matplotlib.pyplot as plt import matplotlib.animation as animation import datetime as dt from bme280 import BME280 try: from smbus2 import SMBus except ImportError: from smbus import SMBus fig = plt.figure() ax = fig.add_subplot(1, 1, 1) xs = [] ys =[] bus = SMBus(1) bme280 = ...
[ 6738, 7007, 1330, 651, 198, 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 198, 11748, 2603, 29487, 8019, 13, 11227, 341, 355, 11034, 198, 11748, 4818, 8079, 355, 288, 83, 198, 198, 6738, 275, 1326, 21033, 1330, 347, 11682, ...
2.558824
170
from bootstrapvz.base import Task from bootstrapvz.common import phases from bootstrapvz.common.tasks import workspace import os import shutil assets = os.path.normpath(os.path.join(os.path.dirname(__file__), 'assets'))
[ 6738, 6297, 26418, 85, 89, 13, 8692, 1330, 15941, 198, 6738, 6297, 26418, 85, 89, 13, 11321, 1330, 21164, 198, 6738, 6297, 26418, 85, 89, 13, 11321, 13, 83, 6791, 1330, 44573, 198, 11748, 28686, 198, 11748, 4423, 346, 198, 198, 19668,...
3.040541
74
# 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.org/en/master/usage/configuration.html # -- Path setup -------------------------------------------------------------- # If ex...
[ 2, 28373, 2393, 329, 262, 45368, 28413, 10314, 27098, 13, 198, 2, 198, 2, 770, 2393, 691, 4909, 257, 6356, 286, 262, 749, 2219, 3689, 13, 1114, 257, 1336, 198, 2, 1351, 766, 262, 10314, 25, 198, 2, 3740, 1378, 2503, 13, 82, 746, ...
3.128801
1,118
# -*- coding: utf-8 -*- # # Copyright (c) 2019~2999 - Cologler <skyoflw@gmail.com> # ---------- # some object for parser # ---------- from typing import List import enum import dis from collections import defaultdict # instrs def add_instr(self, instr: dis.Instruction): ''' add a handled instructi...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 198, 2, 15069, 357, 66, 8, 13130, 93, 1959, 2079, 532, 327, 928, 1754, 1279, 15688, 1659, 75, 86, 31, 14816, 13, 785, 29, 198, 2, 24200, 438, 198, 2, 617, 2134,...
2.320642
1,681
from django import forms from django.contrib.auth.models import User from django.contrib.contenttypes.models import ContentType from django.utils.safestring import mark_safe from django.utils.translation import gettext as _ from dcim.models import DeviceRole, DeviceType, Platform, Region, Site, SiteGroup from tenancy....
[ 6738, 42625, 14208, 1330, 5107, 198, 6738, 42625, 14208, 13, 3642, 822, 13, 18439, 13, 27530, 1330, 11787, 198, 6738, 42625, 14208, 13, 3642, 822, 13, 11299, 19199, 13, 27530, 1330, 14041, 6030, 198, 6738, 42625, 14208, 13, 26791, 13, 4...
3.396285
323
import torch import torch.nn as nn import torch.nn.functional as F from models.misc import modules constrain_path = { ('threeD', 'normal'): (True, True, ''), ('threeD', 'depth'): (True, True, ''), ('normal', 'depth'): (True, True, ''), ('depth', 'normal'): (True, True, ''), }
[ 11748, 28034, 198, 11748, 28034, 13, 20471, 355, 299, 77, 198, 11748, 28034, 13, 20471, 13, 45124, 355, 376, 198, 6738, 4981, 13, 44374, 1330, 13103, 198, 198, 1102, 2536, 391, 62, 6978, 796, 1391, 198, 220, 220, 220, 19203, 15542, 35...
2.619469
113
import configparser import os import hashlib import json import shutil import sys import tempfile import subprocess import tarfile import re import stat from functools import cmp_to_key from contextlib import closing from gzip import GzipFile from pathlib import Path from urllib.error import HTTPError from urllib.reque...
[ 11748, 4566, 48610, 198, 11748, 28686, 198, 11748, 12234, 8019, 198, 11748, 33918, 198, 11748, 4423, 346, 198, 11748, 25064, 198, 11748, 20218, 7753, 198, 11748, 850, 14681, 198, 11748, 13422, 7753, 198, 11748, 302, 198, 11748, 1185, 198, ...
2.406662
1,591
""" Query BGP neighbor table on a Juniper network device. """ import sys from jnpr.junos import Device from jnpr.junos.factory import loadyaml def juniper_bgp_state(dev, bgp_neighbor): """ This function queries the BGP neighbor table on a Juniper network device. dev = Juniper device connection bgp_ne...
[ 37811, 198, 20746, 347, 16960, 4780, 3084, 319, 257, 7653, 9346, 3127, 3335, 13, 198, 37811, 198, 198, 11748, 25064, 198, 6738, 474, 77, 1050, 13, 29741, 418, 1330, 16232, 198, 6738, 474, 77, 1050, 13, 29741, 418, 13, 69, 9548, 1330, ...
2.429577
284
import cherrypy from cherrypy.test import helper
[ 11748, 23612, 9078, 198, 6738, 23612, 9078, 13, 9288, 1330, 31904, 628, 198 ]
3.923077
13
#!/usr/bin/env python from typing import List import aoc from collections import defaultdict with open('test2.txt', 'r') as f: inp = f.read() print("Part 1:", solve(inp)) print("Part 2:", solve(inp, True)) with open('input.txt', 'r') as f: inp = f.read() print("Part 1:", solve(inp)) print(...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 198, 6738, 19720, 1330, 7343, 198, 11748, 257, 420, 198, 6738, 17268, 1330, 4277, 11600, 628, 628, 198, 4480, 1280, 10786, 9288, 17, 13, 14116, 3256, 705, 81, 11537, 355, 277, 25, 198,...
2.440559
143
import numpy as np from ltr.data import transforms import ltr.data.processing_utils as prutils from pytracking.libs import TensorDict
[ 11748, 299, 32152, 355, 45941, 201, 198, 201, 198, 6738, 300, 2213, 13, 7890, 1330, 31408, 201, 198, 11748, 300, 2213, 13, 7890, 13, 36948, 62, 26791, 355, 778, 26791, 201, 198, 6738, 12972, 36280, 13, 8019, 82, 1330, 309, 22854, 35, ...
2.862745
51
import logging from os.path import expanduser #TQ_API_ROOT_URL = 'http://127.0.1.1:8090/dataset' TQ_API_ROOT_URL = 'http://elb-tranquant-ecs-cluster-tqapi-1919110681.us-west-2.elb.amazonaws.com/dataset' LOG_PATH = expanduser('~/tqcli.log') # the chunk size must be at least 5MB for multipart upload DEFAULT_CHUNK_SIZE ...
[ 11748, 18931, 198, 6738, 28686, 13, 6978, 1330, 4292, 7220, 198, 198, 2, 51, 48, 62, 17614, 62, 13252, 2394, 62, 21886, 796, 705, 4023, 1378, 16799, 13, 15, 13, 16, 13, 16, 25, 1795, 3829, 14, 19608, 292, 316, 6, 198, 51, 48, 62...
2.711656
326
from abc import ABC, abstractmethod import os import numpy as np import torch from torch.utils.tensorboard import SummaryWriter from fqf_iqn_qrdqn.memory import LazyMultiStepMemory, \ LazyPrioritizedMultiStepMemory from fqf_iqn_qrdqn.utils import RunningMeanStats, LinearAnneaer
[ 6738, 450, 66, 1330, 9738, 11, 12531, 24396, 198, 11748, 28686, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 28034, 198, 6738, 28034, 13, 26791, 13, 83, 22854, 3526, 1330, 21293, 34379, 198, 198, 6738, 277, 80, 69, 62, 25011, 77, 6...
3.097826
92
# Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. from typing import List, Pattern from recognizers_text.utilities import RegExpUtility from recognizers_text.extractor import Extractor from recognizers_number.number.italian.extractors import ItalianIntegerExtractor from ....
[ 2, 220, 15069, 357, 66, 8, 5413, 10501, 13, 1439, 2489, 10395, 13, 198, 2, 220, 49962, 739, 262, 17168, 13789, 13, 198, 198, 6738, 19720, 1330, 7343, 11, 23939, 198, 198, 6738, 3018, 11341, 62, 5239, 13, 315, 2410, 1330, 3310, 16870...
4.135417
192
#quartet_condor.py #version 2.0.2 import random, sys def addToDict(d): ''' Ensures each quartet has three concordance factors (CFs) a dictionary d has less than three CFs, add CFs with the value 0 until there are three Input: a dictionary containing CFs, a counter of how many CFs are in the dictionar...
[ 2, 36008, 316, 62, 17561, 273, 13, 9078, 198, 2, 9641, 362, 13, 15, 13, 17, 198, 198, 11748, 4738, 11, 25064, 628, 198, 4299, 751, 2514, 35, 713, 7, 67, 2599, 198, 220, 220, 220, 705, 7061, 198, 220, 220, 220, 48221, 942, 1123, ...
2.11157
242
from django import forms from models import UserInputModel
[ 6738, 42625, 14208, 1330, 5107, 198, 6738, 4981, 1330, 11787, 20560, 17633, 198 ]
4.538462
13
from pathlib import Path import pytest from oval_graph.arf_xml_parser.arf_xml_parser import ARFXMLParser
[ 6738, 3108, 8019, 1330, 10644, 198, 198, 11748, 12972, 9288, 198, 198, 6738, 41186, 62, 34960, 13, 37595, 62, 19875, 62, 48610, 13, 37595, 62, 19875, 62, 48610, 1330, 5923, 17213, 5805, 46677, 628, 628, 628 ]
3.111111
36
import os import logging import argparse import sys import signal import subprocess from functools import wraps from dotenv import load_dotenv load_dotenv(verbose=True) from app.config import configure_app from app.bot import TrumpBotScheduler from app.sentimentbot import SentimentBot parser = argparse.ArgumentParse...
[ 11748, 28686, 198, 11748, 18931, 198, 11748, 1822, 29572, 198, 11748, 25064, 198, 11748, 6737, 198, 11748, 850, 14681, 198, 6738, 1257, 310, 10141, 1330, 27521, 198, 198, 6738, 16605, 24330, 1330, 3440, 62, 26518, 24330, 198, 2220, 62, 26...
2.315141
1,136
#! /usr/bin/env python3 import itertools import typing as tp if __name__ == '__main__': main()
[ 2, 0, 1220, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 198, 11748, 340, 861, 10141, 198, 11748, 19720, 355, 256, 79, 628, 628, 628, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 198, 220, 220, 220, 1388, 3419, 198 ...
2.465116
43
from setuptools import setup, Extension, find_packages import subprocess import errno import re import os import shutil import sys import zipfile from urllib.request import urlretrieve import numpy from Cython.Build import cythonize isWindows = os.name == 'nt' isMac = sys.platform == 'darwin' is64Bit = sys.maxsize...
[ 6738, 900, 37623, 10141, 1330, 9058, 11, 27995, 11, 1064, 62, 43789, 198, 11748, 850, 14681, 198, 11748, 11454, 3919, 198, 11748, 302, 198, 11748, 28686, 198, 11748, 4423, 346, 198, 11748, 25064, 198, 11748, 19974, 7753, 198, 6738, 2956, ...
2.646625
1,763
"The mailtools Utility Package" 'Initialization File' """ ################################################################################## mailtools package: interface to mail server transfers, used by pymail2, PyMailGUI, and PyMailCGI; does loads, sends, parsing, composing, and deleting, with part attachments, e...
[ 1, 464, 6920, 31391, 34030, 15717, 1, 198, 6, 24243, 1634, 9220, 6, 628, 198, 37811, 198, 29113, 29113, 14468, 2235, 198, 4529, 31391, 5301, 25, 7071, 284, 6920, 4382, 16395, 11, 973, 416, 12972, 4529, 17, 11, 9485, 25804, 40156, 11, ...
4.045283
530
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Thu Nov 8 15:25:03 2018 @author: bathmann """ from .BelowgroundCompetition import BelowgroundCompetition from .SimpleTest import SimpleTest from .FON import FON from .OGSWithoutFeedback import OGSWithoutFeedback from .OGSLargeScale3D import OGSLargeScale3...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 198, 41972, 319, 26223, 5267, 220, 807, 1315, 25, 1495, 25, 3070, 2864, 198, 198, 31, 9800, 25, 7837, 9038...
3.15625
128
from flask import Flask, render_template from flask_socketio import SocketIO, send, emit app = Flask(__name__) app.config['SECRET_KEY'] = 'secret!' socketio = SocketIO(app) if __name__ == '__main__': socketio.run(app)
[ 6738, 42903, 1330, 46947, 11, 8543, 62, 28243, 198, 6738, 42903, 62, 44971, 952, 1330, 47068, 9399, 11, 3758, 11, 27588, 198, 198, 1324, 796, 46947, 7, 834, 3672, 834, 8, 198, 1324, 13, 11250, 17816, 23683, 26087, 62, 20373, 20520, 79...
2.896104
77
""" Post processing on detected objects """ import pymongo from pymongo import MongoClient import time import logging logging.basicConfig(format='%(levelname)s :: %(asctime)s :: %(message)s', level=logging.DEBUG) from joblib import Parallel, delayed import click from xgboost_model.inference import run_inference, Postpr...
[ 37811, 198, 6307, 7587, 319, 12326, 5563, 198, 37811, 198, 11748, 279, 4948, 25162, 198, 6738, 279, 4948, 25162, 1330, 42591, 11792, 198, 11748, 640, 198, 11748, 18931, 198, 6404, 2667, 13, 35487, 16934, 7, 18982, 11639, 4, 7, 5715, 367...
3.34188
117
""" Copyright (C) 2018-2021 Intel Corporation Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to i...
[ 37811, 198, 15069, 357, 34, 8, 2864, 12, 1238, 2481, 8180, 10501, 628, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 345, 743, 407, 779, 428, 2393, 2845, 287, 11846, 351, 262, 13789, 13, 1...
2.824289
387
#!/usr/bin/env python ############################################################################ # Copyright (C) 2009, Willow Garage, Inc. # # Copyright (C) 2013 by Ralf Kaestner # # ralf.kaestner@gmail.com ...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 29113, 29113, 7804, 4242, 198, 2, 220, 220, 220, 15069, 357, 34, 8, 3717, 11, 33021, 45502, 11, 3457, 13, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220,...
2.000896
2,232
#!/usr/bin/env python3 import argparse import os import subprocess parser = argparse.ArgumentParser(description='Produce a dep file from ninja.') parser.add_argument( '--build-dir', help='The build directory.', required=True) parser.add_argument( '--base-dir', help='The directory for which depende...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 198, 11748, 1822, 29572, 198, 11748, 28686, 198, 11748, 850, 14681, 198, 198, 48610, 796, 1822, 29572, 13, 28100, 1713, 46677, 7, 11213, 11639, 11547, 344, 257, 1207, 2393, 422, 3704...
2.602679
672
''' Created on 2011-6-22 @author: dholer '''
[ 7061, 6, 198, 41972, 319, 2813, 12, 21, 12, 1828, 198, 198, 31, 9800, 25, 288, 3937, 263, 198, 7061, 6, 198 ]
2.090909
22
"""Tests for the `sendoff` library.""" """ The `sendoff` library tests validate the expected function of the library. """
[ 37811, 51, 3558, 329, 262, 4600, 21280, 2364, 63, 5888, 526, 15931, 198, 37811, 198, 464, 4600, 21280, 2364, 63, 5888, 5254, 26571, 262, 2938, 2163, 286, 262, 5888, 13, 198, 37811, 198 ]
3.69697
33
# # Copyright (c) 2018-2019 Wind River Systems, Inc. # # SPDX-License-Identifier: Apache-2.0 # from sysinv.common import constants from sysinv.common import exception from sysinv.common import utils from sysinv.helm import common from sysinv.helm import base
[ 2, 198, 2, 15069, 357, 66, 8, 2864, 12, 23344, 3086, 5866, 11998, 11, 3457, 13, 198, 2, 198, 2, 30628, 55, 12, 34156, 12, 33234, 7483, 25, 24843, 12, 17, 13, 15, 198, 2, 198, 198, 6738, 25064, 16340, 13, 11321, 1330, 38491, 198,...
3.346154
78
#!/usr/bin/env python """Generate frame counts dict for a dataset. Usage: frame_counter.py [options] Options: -h, --help Print help message --root=<str> Path to root of dataset (should contain video folders that contain images) [default: /vision/vision_users/azou/data/hmdb5...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 37811, 8645, 378, 5739, 9853, 8633, 329, 257, 27039, 13, 198, 198, 28350, 25, 198, 220, 220, 220, 5739, 62, 24588, 13, 9078, 685, 25811, 60, 198, 198, 29046, 25, 198, 220, 220, 220, ...
2.447419
523
total = 0 for n in range(1000, 1000000): suma = 0 for i in str(n): suma += int(i)**5 if (n == suma): total += n print(total)
[ 23350, 796, 657, 198, 198, 1640, 299, 287, 2837, 7, 12825, 11, 1802, 2388, 2599, 198, 220, 220, 220, 2160, 64, 796, 657, 198, 220, 220, 220, 329, 1312, 287, 965, 7, 77, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 2160, 64, 158...
1.962025
79
"""Settings for generic fuel cycle code.""" import re import os from armi.settings import setting from armi.operators import settingsValidation CONF_ASSEMBLY_ROTATION_ALG = "assemblyRotationAlgorithm" CONF_ASSEM_ROTATION_STATIONARY = "assemblyRotationStationary" CONF_CIRCULAR_RING_MODE = "circularRingMode" CONF_CIRCU...
[ 37811, 26232, 329, 14276, 5252, 6772, 2438, 526, 15931, 198, 11748, 302, 198, 11748, 28686, 198, 198, 6738, 3211, 72, 13, 33692, 1330, 4634, 198, 6738, 3211, 72, 13, 3575, 2024, 1330, 6460, 7762, 24765, 198, 198, 10943, 37, 62, 10705, ...
2.199611
2,059
from nltk.corpus import gutenberg from nltk import ConditionalFreqDist from random import choice #create the distribution object cfd = ConditionalFreqDist() ## for each token count the current word given the previous word prev_word = None for word in gutenberg.words('austen-persuasion.txt'): cfd[prev_word][word]...
[ 198, 6738, 299, 2528, 74, 13, 10215, 79, 385, 1330, 308, 19028, 198, 6738, 299, 2528, 74, 1330, 9724, 1859, 20366, 80, 20344, 198, 6738, 4738, 1330, 3572, 198, 198, 2, 17953, 262, 6082, 2134, 198, 12993, 67, 796, 9724, 1859, 20366, ...
2.976303
211
#!/usr/bin/env python # Copyright (c) 2016 The Johns Hopkins University/Applied Physics Laboratory # 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.ap...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 198, 2, 15069, 357, 66, 8, 1584, 383, 25824, 21183, 2059, 14, 4677, 18511, 23123, 18643, 198, 2, 1439, 6923, 33876, 13, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362,...
3.421456
261
# # test_tempo_event.py # crest-python # # Copyright (C) 2017 Rue Yokaze # Distributed under the MIT License. # import crest_loader import unittest from crest.events.meta import TempoEvent if (__name__ == '__main__'): unittest.main()
[ 2, 198, 2, 220, 220, 1332, 62, 11498, 7501, 62, 15596, 13, 9078, 198, 2, 220, 220, 36893, 12, 29412, 198, 2, 198, 2, 220, 220, 15069, 357, 34, 8, 2177, 45363, 45138, 6201, 198, 2, 220, 220, 4307, 6169, 739, 262, 17168, 13789, 13...
2.648936
94
# Copyright 2020 The TensorFlow Quantum 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...
[ 2, 15069, 12131, 383, 309, 22854, 37535, 29082, 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,...
3.762987
308
import unittest import numpy.testing as testing import numpy as np import fitsio import tempfile import os from redmapper import ColorBackground from redmapper import ColorBackgroundGenerator from redmapper import Configuration if __name__=='__main__': unittest.main()
[ 11748, 555, 715, 395, 198, 11748, 299, 32152, 13, 33407, 355, 4856, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 11414, 952, 198, 11748, 20218, 7753, 198, 11748, 28686, 198, 198, 6738, 2266, 76, 11463, 1330, 5315, 21756, 198, 6738, 2...
3.525641
78
# Copyright (c) 2008,2015,2016,2017,2018,2019 MetPy Developers. # Distributed under the terms of the BSD 3-Clause License. # SPDX-License-Identifier: BSD-3-Clause """Contains a collection of basic calculations. These include: * wind components * heat index * windchill """ import warnings import numpy as np from scip...
[ 2, 15069, 357, 66, 8, 3648, 11, 4626, 11, 5304, 11, 5539, 11, 7908, 11, 23344, 3395, 20519, 34152, 13, 198, 2, 4307, 6169, 739, 262, 2846, 286, 262, 347, 10305, 513, 12, 2601, 682, 13789, 13, 198, 2, 30628, 55, 12, 34156, 12, 33...
2.795918
490
from rest_framework.response import Response from rest_framework.decorators import api_view from rest_framework.reverse import reverse from rest_framework_simplejwt.tokens import RefreshToken
[ 6738, 1334, 62, 30604, 13, 26209, 1330, 18261, 198, 6738, 1334, 62, 30604, 13, 12501, 273, 2024, 1330, 40391, 62, 1177, 198, 6738, 1334, 62, 30604, 13, 50188, 1330, 9575, 198, 6738, 1334, 62, 30604, 62, 36439, 73, 46569, 13, 83, 482, ...
4.020408
49
from rest_framework import serializers from .models import Post, Comment, Like from django.contrib.auth.models import User
[ 6738, 1334, 62, 30604, 1330, 11389, 11341, 198, 6738, 764, 27530, 1330, 2947, 11, 18957, 11, 4525, 198, 6738, 42625, 14208, 13, 3642, 822, 13, 18439, 13, 27530, 1330, 11787, 628, 628, 220, 220, 220, 220, 628 ]
3.567568
37
from ..embeddings.base import Embeddings from flair.data import Sentence
[ 6738, 11485, 20521, 67, 654, 13, 8692, 1330, 13302, 6048, 654, 198, 198, 6738, 37457, 13, 7890, 1330, 11352, 594, 628 ]
3.571429
21
# !/usr/local/bin/python # -*- coding:utf-8 -*- import YunBi import CNBTC import json import threading import Queue import time import logging import numpy import message import random open_platform = [True,True,True,True] numpy.set_printoptions(suppress=True) # logging.basicConfig(level=logging.DEBUG, # ...
[ 2, 5145, 14, 14629, 14, 12001, 14, 8800, 14, 29412, 198, 2, 532, 9, 12, 19617, 25, 40477, 12, 23, 532, 9, 12, 198, 11748, 20757, 23286, 198, 11748, 31171, 35964, 198, 11748, 33918, 198, 11748, 4704, 278, 198, 11748, 4670, 518, 198, ...
1.97659
17,813
#!/usr/bin/python3 """ Author: Robert Cudmore Date: 20181013 Purpose: Send a Tweet with IP and MAC address of a Raspberry Pi Install: pip3 install tweepy Usage: python3 startuptweet.py 'this is my tweet' """ import tweepy import sys import socket import subprocess from uuid import getnode as get_mac from datetime i...
[ 2, 48443, 14629, 14, 8800, 14, 29412, 18, 198, 198, 37811, 198, 13838, 25, 5199, 327, 463, 3549, 198, 10430, 25, 2864, 8784, 18, 198, 30026, 3455, 25, 16290, 257, 18752, 351, 6101, 290, 20582, 2209, 286, 257, 24244, 13993, 198, 15798,...
2.870416
409
#!/usr/bin/python from bs4 import BeautifulSoup import sqlite3
[ 2, 48443, 14629, 14, 8800, 14, 29412, 198, 198, 6738, 275, 82, 19, 1330, 23762, 50, 10486, 198, 11748, 44161, 578, 18, 198 ]
2.782609
23
""" Copyright (c) 2015-2019 Raj Patel(raj454raj@gmail.com), StopStalk Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights ...
[ 37811, 198, 220, 220, 220, 15069, 357, 66, 8, 1853, 12, 23344, 13308, 33110, 7, 430, 73, 34229, 430, 73, 31, 14816, 13, 785, 828, 13707, 1273, 971, 628, 220, 220, 220, 2448, 3411, 318, 29376, 7520, 11, 1479, 286, 3877, 11, 284, 59...
2.33867
1,624
# ------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # -------------------------------------------------------------------------- import te...
[ 2, 16529, 45537, 198, 2, 15069, 357, 66, 8, 5413, 10501, 13, 1439, 2489, 10395, 13, 198, 2, 49962, 739, 262, 17168, 13789, 13, 4091, 13789, 13, 14116, 287, 262, 1628, 6808, 329, 198, 2, 5964, 1321, 13, 198, 2, 16529, 35937, 198, 1...
3.086957
966
"""Objects representing regions in space.""" import math import random import itertools import numpy import scipy.spatial import shapely.geometry import shapely.ops from scenic.core.distributions import Samplable, RejectionException, needsSampling from scenic.core.lazy_eval import valueInContext from scenic.core.vec...
[ 37811, 10267, 82, 10200, 7652, 287, 2272, 526, 15931, 198, 198, 11748, 10688, 198, 11748, 4738, 198, 11748, 340, 861, 10141, 198, 198, 11748, 299, 32152, 198, 11748, 629, 541, 88, 13, 2777, 34961, 198, 11748, 5485, 306, 13, 469, 15748, ...
3.352041
392
#!/usr/bin/env python # -*- coding: utf-8 -*- import sys import logging import time import json import click import matplotlib.pyplot as plt import orangery as o from orangery.cli import defaults, util from orangery.tools.plotting import get_scale_factor
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 11748, 25064, 198, 11748, 18931, 198, 11748, 640, 198, 198, 11748, 33918, 198, 11748, 3904, 198, 11748, 2603, 29487,...
3.011628
86
import os, sys DICTIONARY_FILE = os.path.join(sys.prefix, 'dictionaries/ice_pron_dict_standard_clear.csv') HEAD_FILE = os.path.join(sys.prefix, 'data/head_map.csv') MODIFIER_FILE = os.path.join(sys.prefix, 'data/modifier_map.csv') VOWELS_FILE = os.path.join(sys.prefix, 'data/vowels_sampa.txt') CONS_CLUSTERS_FILE = os.p...
[ 11748, 28686, 11, 25064, 198, 35, 18379, 2849, 13153, 62, 25664, 796, 28686, 13, 6978, 13, 22179, 7, 17597, 13, 40290, 11, 705, 67, 2867, 3166, 14, 501, 62, 31186, 62, 11600, 62, 20307, 62, 20063, 13, 40664, 11537, 198, 37682, 62, 2...
2.426752
157
from pylabelbuddy import _annotations_notebook
[ 6738, 279, 2645, 9608, 65, 21584, 1330, 4808, 34574, 602, 62, 11295, 2070, 628 ]
3.428571
14
from flask import Flask from flask_cors import CORS from flask_restful import Api from flask_sqlalchemy import SQLAlchemy from flask_jwt_extended import JWTManager app = Flask(__name__) CORS(app) api = Api(app) app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:///app.db' app.config['SQLALCHEMY_TRACK_MODIFICATIONS'] =...
[ 6738, 42903, 1330, 46947, 198, 6738, 42903, 62, 66, 669, 1330, 327, 20673, 198, 6738, 42903, 62, 2118, 913, 1330, 5949, 72, 198, 6738, 42903, 62, 25410, 282, 26599, 1330, 16363, 2348, 26599, 198, 6738, 42903, 62, 73, 46569, 62, 2302, ...
2.848315
356
nome = input('Qual o seu nome? ') dia = input('Que dia do ms voc nasceu? ') mes = input('Qual o ms em que voc nasceu? ') ano = input('Qual o ano em que voc nasceu? ') print(nome, 'nasceu em', dia,'de',mes,'do ano',ano)
[ 77, 462, 796, 5128, 10786, 46181, 267, 384, 84, 299, 462, 30, 705, 8, 198, 67, 544, 796, 5128, 10786, 15681, 288, 544, 466, 13845, 12776, 25221, 344, 84, 30, 705, 8, 198, 6880, 796, 5128, 10786, 46181, 267, 13845, 795, 8358, 12776, ...
2.369565
92
# ---------------------------------------------------------------------- # CISCO-VLAN-MEMBERSHIP-MIB # Compiled MIB # Do not modify this file directly # Run ./noc mib make-cmib instead # ---------------------------------------------------------------------- # Copyright (C) 2007-2020 The NOC Project # See LICENSE for de...
[ 2, 16529, 23031, 198, 2, 36159, 8220, 12, 53, 25697, 12, 44, 3620, 33, 4877, 39, 4061, 12, 8895, 33, 198, 2, 3082, 3902, 337, 9865, 198, 2, 2141, 407, 13096, 428, 2393, 3264, 198, 2, 5660, 24457, 77, 420, 285, 571, 787, 12, 1121...
1.578373
3,209
# (C) Datadog, Inc. 2019-present # All rights reserved # Licensed under a 3-clause BSD style license (see LICENSE) import pytest from mock import MagicMock from requests import HTTPError from datadog_checks.base import AgentCheck from datadog_checks.dev.http import MockResponse from .common import HARBOR_COMPONENTS, ...
[ 2, 357, 34, 8, 16092, 324, 519, 11, 3457, 13, 13130, 12, 25579, 198, 2, 1439, 2489, 10395, 198, 2, 49962, 739, 257, 513, 12, 565, 682, 347, 10305, 3918, 5964, 357, 3826, 38559, 24290, 8, 198, 11748, 12972, 9288, 198, 6738, 15290, ...
2.636234
701
# module for adapting templates on the fly if components are reused # check that all reused components are defined consistently -> else: exception # check and return number of reuses # return adapted templates with adapted reused components and exactly one arc per port (allows proportional output)
[ 2, 8265, 329, 35135, 24019, 319, 262, 6129, 611, 6805, 389, 46823, 201, 198, 201, 198, 201, 198, 2, 2198, 326, 477, 46823, 6805, 389, 5447, 9835, 4613, 2073, 25, 6631, 201, 198, 201, 198, 201, 198, 2, 2198, 290, 1441, 1271, 286, 3...
4.375
72
# Copyright 2012 Nebula, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agree...
[ 2, 15069, 2321, 46915, 11, 3457, 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, 428, 2393, 2845, 287, 11846, 351, ...
3.424242
198
# Copyright (C) 2013 Deutsche Telekom AG # 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 r...
[ 2, 15069, 357, 34, 8, 2211, 36763, 14318, 74, 296, 13077, 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, ...
2.77193
627
from .chainOpen import chainOpen __all__ = [ 'chainOpen' ]
[ 6738, 764, 7983, 11505, 1330, 6333, 11505, 201, 198, 201, 198, 834, 439, 834, 796, 685, 201, 198, 220, 220, 220, 705, 7983, 11505, 6, 201, 198, 60 ]
2.392857
28
import unittest from QuerySciGraph import QuerySciGraph if __name__ == '__main__': unittest.main()
[ 11748, 555, 715, 395, 198, 6738, 43301, 50, 979, 37065, 1330, 43301, 50, 979, 37065, 628, 198, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 198, 220, 220, 220, 555, 715, 395, 13, 12417, 3419, 198 ]
2.717949
39
from typing import Any from ledis import Ledis from ledis.exceptions import InvalidUsage
[ 6738, 19720, 1330, 4377, 198, 198, 6738, 2957, 271, 1330, 22964, 271, 198, 6738, 2957, 271, 13, 1069, 11755, 1330, 17665, 28350, 628 ]
3.956522
23
#group 1: Question 1(b) # A control system for positioning the head of a laser printer has the closed loop transfer function: # !pip install control import matplotlib.pyplot as plt import control a=10 #Value for a b=50 #value for b sys1 = control.tf(20*b,[1,20+a,b+20*a,20*b]) print('3rd order system transfer funct...
[ 2, 8094, 352, 25, 18233, 352, 7, 65, 8, 198, 2, 317, 1630, 1080, 329, 22097, 262, 1182, 286, 257, 12855, 20632, 468, 262, 4838, 9052, 4351, 2163, 25, 198, 2, 5145, 79, 541, 2721, 1630, 220, 198, 198, 11748, 2603, 29487, 8019, 13, ...
2.547059
340
import re from precise_bbcode.bbcode.tag import BBCodeTag from precise_bbcode.tag_pool import tag_pool color_re = re.compile(r'^([a-z]+|#[0-9abcdefABCDEF]{3,6})$') tag_pool.register_tag(SubTag) tag_pool.register_tag(PreTag) tag_pool.register_tag(SizeTag) tag_pool.register_tag(FruitTag) tag_pool.register_tag...
[ 11748, 302, 198, 198, 6738, 7141, 62, 11848, 8189, 13, 11848, 8189, 13, 12985, 1330, 7823, 1098, 24835, 198, 6738, 7141, 62, 11848, 8189, 13, 12985, 62, 7742, 1330, 7621, 62, 7742, 628, 198, 8043, 62, 260, 796, 302, 13, 5589, 576, 7...
2.473054
167
## Program: VMTK ## Language: Python ## Date: January 10, 2018 ## Version: 1.4 ## Copyright (c) Richard Izzo, Luca Antiga, All rights reserved. ## See LICENSE file for details. ## This software is distributed WITHOUT ANY WARRANTY; without even ## the implied warranty of MERCHANTABILITY or FITNES...
[ 2235, 6118, 25, 569, 13752, 42, 198, 2235, 15417, 25, 220, 11361, 198, 2235, 7536, 25, 220, 220, 220, 220, 220, 3269, 838, 11, 2864, 198, 2235, 10628, 25, 220, 220, 352, 13, 19, 198, 198, 2235, 220, 220, 15069, 357, 66, 8, 6219, ...
3.015625
192
# -*- coding: utf8 -*- # Copyright 1999-2017 Tencent Ltd. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable l...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 23, 532, 9, 12, 198, 2, 15069, 7358, 12, 5539, 9368, 1087, 12052, 13, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 2, 345, 743, 4...
3.077739
283
#!/usr/bin/env python """Distribution functions This module provides functions for dealing with normal distributions and generating error maps. When called directly as main, it allows for converting a threshold map into an error map. ``` $ python -m mlcsim.dist --help usage: dist.py [-h] [-b {1,2,3,4}] -f F [-o O]...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 198, 37811, 20344, 3890, 5499, 198, 198, 1212, 8265, 3769, 5499, 329, 7219, 351, 3487, 24570, 198, 392, 15453, 4049, 8739, 13, 198, 198, 2215, 1444, 3264, 355, 1388, 11, 340, 3578, 329...
2.435055
1,278
earth = { "Asia": {'Japan': ("Tokyo", 377975, 125620000)}, "Europe": {'Austria': ("Vienna", 83800, 8404000), 'Germany': ("Berlin", 357000, 81751000), 'Great Britain': ("London", 244800, 62700000), 'Iceland': ("Reykjavk", 103000, 317630), 'Italy': ("Rome", 3014...
[ 16442, 796, 1391, 198, 220, 220, 220, 366, 38555, 1298, 198, 220, 220, 220, 220, 220, 220, 220, 1391, 6, 16504, 10354, 5855, 19042, 8226, 1600, 513, 40393, 2425, 11, 1105, 3980, 2167, 405, 8, 5512, 198, 220, 220, 220, 366, 16112, 12...
2.228374
289
"""Declare runtime dependencies These are needed for local dev, and users must install them as well. See https://docs.bazel.build/versions/main/skylark/deploying.html#dependencies """ load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") load("@bazel_tools//tools/build_defs/repo:utils.bzl", "maybe") #...
[ 37811, 37835, 533, 19124, 20086, 198, 198, 4711, 389, 2622, 329, 1957, 1614, 11, 290, 2985, 1276, 2721, 606, 355, 880, 13, 198, 6214, 3740, 1378, 31628, 13, 65, 41319, 13, 11249, 14, 47178, 14, 12417, 14, 15688, 75, 668, 14, 2934, 1...
3.594059
202
import pytest from playhouse.test_utils import assert_query_count from data.registry_model import registry_model from data.database import Manifest from endpoints.api.test.shared import conduct_api_call from endpoints.test.shared import client_with_identity from endpoints.api.tag import RepositoryTag, RestoreTag, Li...
[ 11748, 12972, 9288, 198, 198, 6738, 711, 4803, 13, 9288, 62, 26791, 1330, 6818, 62, 22766, 62, 9127, 198, 198, 6738, 1366, 13, 2301, 4592, 62, 19849, 1330, 20478, 62, 19849, 198, 6738, 1366, 13, 48806, 1330, 36757, 198, 198, 6738, 886...
3.627451
102
import json import os import random import requests from passlib.hash import pbkdf2_sha256 as pbk from PyQt5.QtSql import QSqlDatabase, QSqlQuery from pprint import pprint ENCODING = 'utf-8' DB_PATH = os.path.join(os.path.curdir, 'inventory.db') def scrambleWord(word): """Randomize the letters in word and retur...
[ 11748, 33918, 198, 11748, 28686, 198, 11748, 4738, 198, 11748, 7007, 198, 6738, 1208, 8019, 13, 17831, 1330, 279, 65, 74, 7568, 17, 62, 26270, 11645, 355, 279, 65, 74, 198, 6738, 9485, 48, 83, 20, 13, 48, 83, 50, 13976, 1330, 1195, ...
2.339104
2,657
import requests from flask import abort, redirect, request, url_for from lnurl import LnurlWithdrawResponse, handle as handle_lnurl from lnurl.exceptions import LnurlException from time import sleep from lnbits.core import core_app from lnbits.helpers import Status from lnbits.settings import WALLET from ..crud impo...
[ 11748, 7007, 198, 198, 6738, 42903, 1330, 15614, 11, 18941, 11, 2581, 11, 19016, 62, 1640, 198, 6738, 300, 77, 6371, 1330, 406, 77, 6371, 3152, 19334, 31077, 11, 5412, 355, 5412, 62, 18755, 6371, 198, 6738, 300, 77, 6371, 13, 1069, ...
3.486239
109
# Import libraries import argparse from azureml.core import Run import joblib import json import os import pandas as pd import shutil # Import functions from train.py from train import split_data, train_model, get_model_metrics # Get the output folder for the model from the '--output_folder' parameter parser = argpar...
[ 2, 17267, 12782, 198, 11748, 1822, 29572, 198, 6738, 35560, 495, 4029, 13, 7295, 1330, 5660, 198, 11748, 1693, 8019, 198, 11748, 33918, 198, 11748, 28686, 198, 11748, 19798, 292, 355, 279, 67, 198, 11748, 4423, 346, 198, 198, 2, 17267, ...
3.15272
478
from lua_imports import lua_importer lua_importer.register()
[ 6738, 300, 6413, 62, 320, 3742, 1330, 300, 6413, 62, 320, 26634, 198, 198, 40211, 62, 320, 26634, 13, 30238, 3419, 198 ]
2.818182
22
from sqlalchemy import Column, Integer, String, Float from app.database.base_class import Base
[ 6738, 44161, 282, 26599, 1330, 29201, 11, 34142, 11, 10903, 11, 48436, 198, 198, 6738, 598, 13, 48806, 13, 8692, 62, 4871, 1330, 7308, 628 ]
3.88
25
import glob import os import re import errno import shutil def get_sub_dirs_and_files(path, abs_path=False): """ Gets the direct child sub-files and sub-folders of the given directory Args: path: Absolute path to the directory abs_path: If set to True, it returns a list of absolute paths ...
[ 11748, 15095, 198, 11748, 28686, 198, 11748, 302, 198, 11748, 11454, 3919, 198, 11748, 4423, 346, 628, 198, 4299, 651, 62, 7266, 62, 15908, 82, 62, 392, 62, 16624, 7, 6978, 11, 2352, 62, 6978, 28, 25101, 2599, 198, 220, 220, 220, 37...
2.515835
2,747
"""The `alignment` module provides an implementation of the Needleman-Wunsch alignment algorithm.""" from typing import Tuple, Literal, List from math import floor import numpy as np from stats import variance MOVE_DIAGONAL = 0 MOVE_RIGHT = 1 MOVE_DOWN = 2 EditMove = Literal[MOVE_DIAGONAL, MOVE_RIGHT, MOVE_DOWN] ...
[ 37811, 464, 4600, 282, 16747, 63, 8265, 3769, 281, 7822, 286, 262, 10664, 293, 805, 12, 54, 13271, 354, 19114, 11862, 526, 15931, 198, 198, 6738, 19720, 1330, 309, 29291, 11, 25659, 1691, 11, 7343, 198, 6738, 10688, 1330, 4314, 198, 1...
2.173585
1,590
from mock_gripper_op import MockGripType from std_msgs.msg import Bool from erdos.op import Op from erdos.data_stream import DataStream from erdos.message import Message
[ 6738, 15290, 62, 70, 380, 2848, 62, 404, 1330, 44123, 38, 5528, 6030, 198, 6738, 14367, 62, 907, 14542, 13, 19662, 1330, 347, 970, 198, 198, 6738, 1931, 37427, 13, 404, 1330, 8670, 198, 6738, 1931, 37427, 13, 7890, 62, 5532, 1330, 6...
3.245283
53
# -*- coding: utf-8 -*- import pygraphviz as gv # type: ignore import itertools as it from typing import ( List, Optional, ) from pyfsa.lib.types import TransitionsTable def get_state_graph( transitions: TransitionsTable, start: Optional[str] = None, end: Optional[str] = None, nodes: Option...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 11748, 12972, 34960, 85, 528, 355, 308, 85, 220, 1303, 2099, 25, 8856, 198, 11748, 340, 861, 10141, 355, 340, 198, 198, 6738, 19720, 1330, 357, 198, 220, 220, 220, 734...
2.386909
1,543
import torch import sys import os sys.path.append(os.getcwd()) from utils.helper_modules import Sequential2 from unimodals.common_models import Linear, MLP, MaxOut_MLP from datasets.imdb.get_data import get_dataloader from fusions.common_fusions import Concat from objective_functions.objectives_for_supervised_learnin...
[ 11748, 28034, 198, 11748, 25064, 198, 11748, 28686, 198, 198, 17597, 13, 6978, 13, 33295, 7, 418, 13, 1136, 66, 16993, 28955, 198, 198, 6738, 3384, 4487, 13, 2978, 525, 62, 18170, 1330, 24604, 1843, 17, 198, 6738, 28418, 375, 874, 13,...
2.445887
693
# Generated by Django 4.0.2 on 2022-06-01 04:43 from django.db import migrations, models import django.db.models.deletion
[ 2, 2980, 515, 416, 37770, 604, 13, 15, 13, 17, 319, 33160, 12, 3312, 12, 486, 8702, 25, 3559, 198, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 11, 4981, 198, 11748, 42625, 14208, 13, 9945, 13, 27530, 13, 2934, 1616, 295, ...
2.818182
44
# -*- coding: utf-8 -*- """ ViewFactor module - VF calculation helper files for bifacial-viewfactor @author Bill Marion @translated to python by sayala 06/09/17 """ # ensure python3 compatible division and printing from __future__ import division, print_function, absolute_import import math import numpy as np fr...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 198, 7680, 41384, 8265, 532, 569, 37, 17952, 31904, 3696, 329, 275, 361, 18150, 12, 1177, 31412, 198, 220, 220, 220, 220, 198, 31, 9800, 3941, 32473, 198, 31, 7...
1.937812
40,683
from slisonner import decoder, encoder from tests import mocker from tempfile import mkdtemp from shutil import rmtree
[ 6738, 1017, 1653, 1008, 1330, 875, 12342, 11, 2207, 12342, 198, 6738, 5254, 1330, 285, 12721, 198, 6738, 20218, 7753, 1330, 33480, 67, 29510, 198, 6738, 4423, 346, 1330, 374, 16762, 631, 628 ]
3.636364
33
# -*- coding: utf-8 -*- # Copyright (c) 2018, Tridots Tech Pvt. Ltd. and contributors # For license information, please see license.txt from __future__ import unicode_literals import frappe from frappe.website.website_generator import WebsiteGenerator
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 15069, 357, 66, 8, 2864, 11, 833, 312, 1747, 9634, 18367, 83, 13, 12052, 13, 290, 20420, 198, 2, 1114, 5964, 1321, 11, 3387, 766, 5964, 13, 14116, 198, 198, 6738,...
3.315789
76
import matplotlib.pyplot as plt import math xtab = [] ytab = [] for i in range(0, 628): # Calculate polar coordinates for provided equation phi = float(i) / 100.0 r = 4 * math.cos(2 * phi) # Convert to Cartesian and store in lists x = r * math.cos(phi) y = r * math.sin(phi) xtab.append(x)...
[ 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 198, 11748, 10688, 628, 198, 742, 397, 796, 17635, 198, 88, 8658, 796, 17635, 198, 198, 1640, 1312, 287, 2837, 7, 15, 11, 718, 2078, 2599, 198, 220, 220, 220, 1303, 27131, 378...
2.282209
163
# Copyright (c) 2003-2010 LOGILAB S.A. (Paris, FRANCE). # http://www.logilab.fr/ -- mailto:contact@logilab.fr # # This program is free software; you can redistribute it and/or modify it under # the terms of the GNU Lesser General Public License as published by the Free Software # Foundation; either version 2 of the Lic...
[ 2, 15069, 357, 66, 8, 5816, 12, 10333, 41605, 4146, 6242, 311, 13, 32, 13, 357, 40313, 11, 8782, 19240, 737, 198, 2, 2638, 1378, 2503, 13, 6404, 346, 397, 13, 8310, 14, 1377, 6920, 1462, 25, 32057, 31, 6404, 346, 397, 13, 8310, ...
3.278481
948
import torch import torch.nn as nn
[ 11748, 28034, 198, 11748, 28034, 13, 20471, 355, 299, 77, 628, 220, 220, 220, 220, 198 ]
2.5625
16
import fire import gtfparse from pathlib import Path GENCODE_CATEGORY_MAP = { 'IG_C_gene': 'protein_coding', 'IG_D_gene': 'protein_coding', 'IG_J_gene': 'protein_coding', 'IG_V_gene': 'protein_coding', 'IG_LV_gene': 'protein_coding', 'TR_C_gene': 'protein_coding', 'TR_J_gene': 'protein_cod...
[ 11748, 2046, 198, 11748, 308, 27110, 29572, 198, 6738, 3108, 8019, 1330, 10644, 628, 198, 38, 24181, 16820, 62, 34, 6158, 38, 15513, 62, 33767, 796, 1391, 198, 220, 220, 220, 705, 3528, 62, 34, 62, 70, 1734, 10354, 705, 48693, 62, 6...
2.121931
1,181
import math q1=Q(1,2) q2=Q(1,3) print(q1/q2)
[ 11748, 10688, 201, 198, 201, 198, 201, 198, 80, 16, 28, 48, 7, 16, 11, 17, 8, 201, 198, 80, 17, 28, 48, 7, 16, 11, 18, 8, 201, 198, 4798, 7, 80, 16, 14, 80, 17, 8 ]
1.342105
38
from __future__ import unicode_literals import glob import os from dbdiff.fixture import Fixture from .base import TestImportBase, FixtureDir from ..settings import DATA_DIR
[ 6738, 11593, 37443, 834, 1330, 28000, 1098, 62, 17201, 874, 198, 198, 11748, 15095, 198, 11748, 28686, 198, 198, 6738, 288, 17457, 733, 13, 69, 9602, 1330, 376, 9602, 198, 6738, 764, 8692, 1330, 6208, 20939, 14881, 11, 376, 9602, 35277,...
3.490196
51
import datetime import logging import voluptuous as vol from homeassistant.components.sensor import PLATFORM_SCHEMA from homeassistant.const import CONF_PASSWORD, CONF_USERNAME import homeassistant.helpers.config_validation as cv from .const import ( CONF_PLANT_ID, ) _LOGGER = logging.getLogger(__name__) MIN_T...
[ 11748, 4818, 8079, 198, 11748, 18931, 198, 198, 11748, 2322, 37623, 5623, 355, 2322, 198, 198, 6738, 1363, 562, 10167, 13, 5589, 3906, 13, 82, 22854, 1330, 9297, 1404, 21389, 62, 50, 3398, 27630, 198, 6738, 1363, 562, 10167, 13, 9979, ...
2.411765
238
from flask import Blueprint, redirect, render_template, request, flash, session from database import base from database.base import User from forms import UserForm, LoginForm, MyPageUserForm from flask_login import login_required, login_user, logout_user, current_user import requests auth_blueprint = Blueprint('auth'...
[ 6738, 42903, 1330, 39932, 11, 18941, 11, 8543, 62, 28243, 11, 2581, 11, 7644, 11, 6246, 198, 198, 6738, 6831, 1330, 2779, 198, 6738, 6831, 13, 8692, 1330, 11787, 198, 6738, 5107, 1330, 11787, 8479, 11, 23093, 8479, 11, 2011, 9876, 129...
2.545781
557
import matplotlib.pyplot as plt def model(): """Solve u'' = -1, u(0)=0, u'(1)=0.""" import sympy as sym x, c_0, c_1, = sym.symbols('x c_0 c_1') u_x = sym.integrate(1, (x, 0, x)) + c_0 u = sym.integrate(u_x, (x, 0, x)) + c_1 r = sym.solve([u.subs(x,0) - 0, sym.diff(u,x).subs(x...
[ 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 198, 198, 4299, 2746, 33529, 198, 220, 220, 220, 37227, 50, 6442, 334, 7061, 796, 532, 16, 11, 334, 7, 15, 47505, 15, 11, 334, 6, 7, 16, 47505, 15, 526, 15931, 198, 220, 2...
1.861888
572
from sklearn.mixture import GaussianMixture import operator import numpy as np import math
[ 6738, 1341, 35720, 13, 76, 9602, 1330, 12822, 31562, 44, 9602, 198, 11748, 10088, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 10688, 198 ]
3.791667
24
from .heatmaploss import HeatmapLoss from .offsetloss import OffsetLoss from .refineloss import RefineLoss
[ 6738, 764, 25080, 2611, 489, 793, 1330, 12308, 8899, 43, 793, 198, 6738, 764, 28968, 22462, 1330, 3242, 2617, 43, 793, 198, 6738, 764, 5420, 20538, 793, 1330, 6524, 500, 43, 793 ]
3.3125
32
from typing import Sequence from eth.constants import ZERO_HASH32 from eth_typing import Hash32 import ssz from ssz.sedes import Vector, bytes32 from eth2.configs import Eth2Config from .defaults import default_tuple, default_tuple_of_size
[ 6738, 19720, 1330, 45835, 198, 198, 6738, 4555, 13, 9979, 1187, 1330, 1168, 34812, 62, 39, 11211, 2624, 198, 6738, 4555, 62, 774, 13886, 1330, 21059, 2624, 198, 11748, 37786, 89, 198, 6738, 37786, 89, 13, 36622, 274, 1330, 20650, 11, ...
3.210526
76
import os from pydantic import BaseSettings
[ 11748, 28686, 198, 198, 6738, 279, 5173, 5109, 1330, 7308, 26232, 628 ]
3.833333
12
import numpy as np import xarray as xr def create_bathymetry_from_land_mask(land_mask: xr.DataArray) -> xr.DataArray: """Method: identifies the lower depth bound of the shallowest ocean cell (non-null) in each vertical grid column. :param land_mask: dimensions {time, depth, lat, lon}, boloean array, T...
[ 11748, 299, 32152, 355, 45941, 198, 11748, 2124, 18747, 355, 2124, 81, 628, 198, 4299, 2251, 62, 65, 10036, 41935, 62, 6738, 62, 1044, 62, 27932, 7, 1044, 62, 27932, 25, 2124, 81, 13, 6601, 19182, 8, 4613, 2124, 81, 13, 6601, 19182,...
2.461818
550
""" A simple python module for converting kilometers to miles or vice versa. So simple that it doesn't even have any dependencies. """ def kilometers_to_miles(dist_in_km): """ Actually does the conversion of distance from km to mi. PARAMETERS -------- dist_in_km: float A distance in kilometers. RETURNS -...
[ 37811, 198, 32, 2829, 21015, 8265, 329, 23202, 18212, 284, 4608, 393, 7927, 25470, 13, 198, 2396, 2829, 326, 340, 1595, 470, 772, 423, 597, 20086, 13, 198, 37811, 198, 198, 4299, 18212, 62, 1462, 62, 76, 2915, 7, 17080, 62, 259, 62,...
2.906122
245