content
stringlengths
1
1.05M
input_ids
listlengths
1
883k
ratio_char_token
float64
1
22.9
token_count
int64
1
883k
from datetime import datetime from dateutil.relativedelta import relativedelta
[ 6738, 4818, 8079, 1330, 4818, 8079, 198, 198, 6738, 3128, 22602, 13, 2411, 265, 1572, 12514, 1330, 48993, 1572, 12514, 628 ]
3.857143
21
import argparse import json from os import openpty if __name__ == "__main__": args = get_parser() main(args)
[ 11748, 1822, 29572, 198, 11748, 33918, 198, 6738, 28686, 1330, 1280, 5835, 198, 198, 361, 11593, 3672, 834, 6624, 366, 834, 12417, 834, 1298, 198, 220, 220, 220, 26498, 796, 651, 62, 48610, 3419, 198, 220, 220, 220, 1388, 7, 22046, 8 ...
2.785714
42
from django import template from django.conf import settings from ..models import Bookmark register = template.Library() RESKIN_MENU_APP_ORDER = settings.RESKIN_MENU_APP_ORDER RESKIN_MENU_MODEL_ORDER = settings.RESKIN_MENU_MODEL_ORDER RESKIN_APP_ICON = settings.RESKIN_APP_ICON
[ 6738, 42625, 14208, 1330, 11055, 198, 6738, 42625, 14208, 13, 10414, 1330, 6460, 198, 198, 6738, 11485, 27530, 1330, 4897, 4102, 198, 198, 30238, 796, 11055, 13, 23377, 3419, 198, 198, 19535, 42, 1268, 62, 49275, 52, 62, 24805, 62, 1253...
2.669811
106
import os import io import urllib.request import zipfile import pandas import fda
[ 11748, 28686, 198, 11748, 33245, 198, 11748, 2956, 297, 571, 13, 25927, 198, 11748, 19974, 7753, 198, 198, 11748, 19798, 292, 198, 198, 11748, 277, 6814, 198, 220, 220, 220, 220, 198 ]
2.78125
32
import numpy as np import matplotlib.pyplot as plt import re as r import easyocr #import os #os.environ['KMP_DUPLICATE_LIB_OK']='True' re = easyocr.Reader(['en']) #pl = [] chk = [] a = '' a1 = '' #pl = [] #sym = ['{', ']', '[', '}']
[ 11748, 299, 32152, 355, 45941, 198, 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 198, 11748, 302, 355, 374, 198, 11748, 2562, 1696, 198, 2, 11748, 28686, 198, 2, 418, 13, 268, 2268, 17816, 42, 7378, 62, 35, 52, 31484, 61...
2.235849
106
# SPDX-FileCopyrightText: 2021 Carnegie Mellon University # # SPDX-License-Identifier: Apache-2.0 import logging import cv2 from busedge_protocol import busedge_pb2 from gabriel_protocol import gabriel_pb2 from sign_filter import SignFilter logger = logging.getLogger(__name__) import argparse import multiprocessing...
[ 2, 30628, 55, 12, 8979, 15269, 8206, 25, 33448, 33976, 49808, 2059, 198, 2, 198, 2, 30628, 55, 12, 34156, 12, 33234, 7483, 25, 24843, 12, 17, 13, 15, 198, 198, 11748, 18931, 198, 198, 11748, 269, 85, 17, 198, 6738, 1323, 14907, 62...
2.675978
358
import click from pathlib import Path # Local imports from .__init__ import * from .utils import parse_time, create_dir, write_file, get_profiles, compress, INVALID_PROFILE, INVALID_DATES from .lambda_log_collector import LambdaLogCollector
[ 11748, 3904, 198, 6738, 3108, 8019, 1330, 10644, 198, 198, 2, 10714, 17944, 198, 6738, 764, 834, 15003, 834, 1330, 1635, 198, 6738, 764, 26791, 1330, 21136, 62, 2435, 11, 2251, 62, 15908, 11, 3551, 62, 7753, 11, 651, 62, 5577, 2915, ...
3.283784
74
import sys sys.path.append('../../../optimus') from optimus.server import app
[ 11748, 25064, 198, 17597, 13, 6978, 13, 33295, 10786, 40720, 40720, 40720, 8738, 20704, 11537, 198, 198, 6738, 6436, 385, 13, 15388, 1330, 598 ]
3.25
24
"""Common MDPs in RL literature.""" from gym.envs.registration import register from .baird_star import BairdStar from .boyan_chain import BoyanChain from .double_chain import DoubleChainProblem from .grid_world import EasyGridWorld from .random_mdp import RandomMDP from .single_chain import SingleChainProblem from .tw...
[ 37811, 17227, 337, 6322, 82, 287, 45715, 9285, 526, 15931, 198, 6738, 11550, 13, 268, 14259, 13, 2301, 33397, 1330, 7881, 198, 198, 6738, 764, 65, 41620, 62, 7364, 1330, 48503, 8248, 198, 6738, 764, 7081, 272, 62, 7983, 1330, 6387, 27...
2.870968
372
import glob import pickle from shutil import copy from tqdm import tqdm #copy_specific_training_data_to_new_folder('F:/Project_Cars_Data/Raw', #'F:/Project_Cars_Data/Watkins Glen International - Short Circuit', # 'Watkins Glen International', 'Short Circuit') # b'Watkins Glen International' # b'Short Circuit' # b...
[ 11748, 15095, 198, 11748, 2298, 293, 198, 6738, 4423, 346, 1330, 4866, 198, 6738, 256, 80, 36020, 1330, 256, 80, 36020, 628, 198, 198, 2, 30073, 62, 11423, 62, 34409, 62, 7890, 62, 1462, 62, 3605, 62, 43551, 10786, 37, 14079, 16775, ...
3.008264
121
from faults.faultmodel import FaultModel from utils import *
[ 6738, 31025, 13, 69, 1721, 19849, 1330, 40050, 17633, 198, 6738, 3384, 4487, 1330, 1635, 628 ]
3.875
16
import pytest from traitlets import TraitError from ipygany import PolyMesh, Warp from .utils import get_test_assets
[ 11748, 12972, 9288, 198, 198, 6738, 1291, 2578, 912, 1330, 4759, 270, 12331, 198, 198, 6738, 20966, 88, 1030, 88, 1330, 12280, 37031, 11, 31382, 198, 198, 6738, 764, 26791, 1330, 651, 62, 9288, 62, 19668, 628, 198 ]
3.210526
38
""" The template of the script for playing the game in the ml mode """
[ 37811, 198, 464, 11055, 286, 262, 4226, 329, 2712, 262, 983, 287, 262, 25962, 4235, 198, 37811, 198 ]
3.944444
18
#!/usr/bin/env python3 # coding:utf-8 if __name__ == "__main__": # data = [1, 3, 3, 3, 3, 4, 5] # k = 2 # k = 3 # k = 4 # k = 6 data = [1, 2, 3, 3, 3, 3] k = 3 s = Solution() ans = s.GetNumberOfK(data, k) print(ans)
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 2, 19617, 25, 40477, 12, 23, 628, 198, 198, 361, 11593, 3672, 834, 6624, 366, 834, 12417, 834, 1298, 198, 220, 220, 220, 1303, 1366, 796, 685, 16, 11, 513, 11, 513, 11, 513, ...
1.825175
143
# Copyright 2022 Canonical Ltd. # See LICENSE file for licensing details. from typing import Union from ops.model import Application, Relation, Unit
[ 2, 15069, 33160, 19507, 605, 12052, 13, 198, 2, 4091, 38559, 24290, 2393, 329, 15665, 3307, 13, 198, 6738, 19720, 1330, 4479, 198, 198, 6738, 39628, 13, 19849, 1330, 15678, 11, 4718, 341, 11, 11801, 628, 628, 628, 628, 628, 628, 628, ...
3.813953
43
import torch import torch.nn as nn from torchvision import models from torch.autograd import Variable from torch.nn.parameter import Parameter from DeepImageDenoiser import LR_THRESHOLD, DIMENSION, LEARNING_RATE from NeuralModels import SpectralNorm ITERATION_LIMIT = int(1e6) SQUEEZENET_CONFIG = {'dnn' : models.squ...
[ 11748, 28034, 198, 11748, 28034, 13, 20471, 355, 299, 77, 198, 6738, 28034, 10178, 1330, 4981, 198, 6738, 28034, 13, 2306, 519, 6335, 1330, 35748, 198, 6738, 28034, 13, 20471, 13, 17143, 2357, 1330, 25139, 2357, 198, 198, 6738, 10766, 5...
2.466049
324
from flask import render_template,request,redirect,url_for from .import main from ..request import get_sources,get_articles from ..models import News_article,News_source
[ 6738, 42903, 1330, 8543, 62, 28243, 11, 25927, 11, 445, 1060, 11, 6371, 62, 1640, 198, 6738, 764, 11748, 1388, 198, 6738, 11485, 25927, 1330, 651, 62, 82, 2203, 11, 1136, 62, 26845, 198, 6738, 11485, 27530, 1330, 3000, 62, 20205, 11, ...
3.755556
45
from models import Mongua
[ 6738, 4981, 1330, 18428, 6413, 628 ]
4.5
6
#!/usr/bin/env python # -*- coding: utf-8 -*- """ File: Party.py Author: Scott Yang(Scott) Email: yangyingfa@skybility.com Copyright: Copyright (c) 2021, Skybility Software Co.,Ltd. All rights reserved. Description: """
[ 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, 8979, 25, 3615, 13, 9078, 198, 13838, 25, 4746, 10998, 7, 19040, 8, 198, 15333, 25, 331, 648, 1112, ...
2.775
80
#!/usr/bin/env python import os import shutil import sqlite3 import unittest import init_db '''name of database to use as master''' master_name = 'projects.db' def setUpModule(): '''create and fill the database''' conn = sqlite3.connect(master_name) init_db.execute_file(conn, 'create_db.sql') init...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 198, 11748, 28686, 198, 11748, 4423, 346, 198, 11748, 44161, 578, 18, 198, 11748, 555, 715, 395, 198, 198, 11748, 2315, 62, 9945, 628, 198, 7061, 6, 3672, 286, 6831, 284, 779, 355, 4...
2.680628
191
import json from django.http.response import JsonResponse from django.db.models import Q from django.contrib.auth import authenticate from rest_framework import viewsets, mixins from rest_framework.permissions import IsAuthenticated from rest_framework.exceptions import ValidationError, AuthenticationFailed from rest_...
[ 11748, 33918, 198, 198, 6738, 42625, 14208, 13, 4023, 13, 26209, 1330, 449, 1559, 31077, 198, 6738, 42625, 14208, 13, 9945, 13, 27530, 1330, 1195, 198, 6738, 42625, 14208, 13, 3642, 822, 13, 18439, 1330, 8323, 5344, 198, 6738, 1334, 62,...
3.710145
207
wordinsquare('SURAJ W', 3)
[ 628, 198, 198, 4775, 1040, 421, 533, 10786, 12564, 3861, 41, 370, 3256, 513, 8, 198 ]
1.9375
16
import os
[ 11748, 28686, 201, 198, 201, 198, 201, 198 ]
1.875
8
from datetime import datetime import logging import json import csv from io import StringIO import pymongo from bson.objectid import ObjectId from . import PUBLICATION_TYPES, PROJECTS, SITES
[ 6738, 4818, 8079, 1330, 4818, 8079, 198, 11748, 18931, 198, 11748, 33918, 198, 11748, 269, 21370, 198, 6738, 33245, 1330, 10903, 9399, 198, 198, 11748, 279, 4948, 25162, 198, 6738, 275, 1559, 13, 15252, 312, 1330, 9515, 7390, 198, 198, ...
3.271186
59
#!/usr/bin/env python3 # Copyright (c) 2015-2021 Agalmic Ventures LLC (www.agalmicventures.com) # # 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 limit...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 198, 2, 15069, 357, 66, 8, 1853, 12, 1238, 2481, 2449, 282, 9383, 41673, 11419, 357, 2503, 13, 363, 282, 9383, 10065, 13, 785, 8, 198, 2, 198, 2, 2448, 3411, 318, 29376, 7520, ...
3.378667
750
import chainer import pytest
[ 11748, 6333, 263, 198, 11748, 12972, 9288, 628, 198 ]
3.444444
9
#!/usr/bin/python import BoostBuild t = BoostBuild.Tester() t.write("test.jam",""" actions unbuilt { } unbuilt all ; ECHO "Hi" ; """) t.run_build_system("-ftest.jam", stdout="Hi\n") t.pass_test()
[ 2, 48443, 14629, 14, 8800, 14, 29412, 198, 198, 11748, 19835, 15580, 198, 198, 83, 796, 19835, 15580, 13, 51, 7834, 3419, 198, 198, 83, 13, 13564, 7203, 9288, 13, 39159, 2430, 15931, 198, 4658, 555, 18780, 1391, 1782, 555, 18780, 477,...
2.380952
84
a, b = MyClass(), MyClass2() c, (d, e) = a.func1, (a.func2, a.func3) c() d() e()
[ 198, 64, 11, 275, 796, 2011, 9487, 22784, 2011, 9487, 17, 3419, 198, 198, 66, 11, 357, 67, 11, 304, 8, 796, 257, 13, 20786, 16, 11, 357, 64, 13, 20786, 17, 11, 257, 13, 20786, 18, 8, 198, 198, 66, 3419, 198, 67, 3419, 198, 6...
1.714286
49
from .language import Language from .user_tweet_raw import UserTweetRaw
[ 6738, 764, 16129, 1330, 15417, 198, 6738, 764, 7220, 62, 83, 7277, 62, 1831, 1330, 11787, 47845, 27369, 198 ]
3.789474
19
import numpy as np from math import ceil,floor
[ 11748, 299, 32152, 355, 45941, 198, 6738, 10688, 1330, 2906, 346, 11, 28300, 198, 220, 220, 220, 220, 220, 220, 220, 220, 198 ]
2.434783
23
""" Encodes SPOT MILP as the structure of a CART tree in order to apply CART's pruning method Also supports traverse() which traverses the tree """ import numpy as np from mtp_SPO2CART import MTP_SPO2CART from decision_problem_solver import* from scipy.spatial import distance
[ 37811, 198, 27195, 4147, 6226, 2394, 31515, 47, 355, 262, 4645, 286, 257, 327, 7227, 5509, 287, 1502, 284, 4174, 327, 7227, 338, 778, 46493, 2446, 198, 7583, 6971, 38138, 3419, 543, 33038, 274, 262, 5509, 198, 37811, 198, 11748, 299, ...
3.297619
84
# This package uses tk to create a simple graphical # output representing the iDrive state import tkinter as tk import numpy as np # why not use the numpy native? but whatever # this class intializes the canvas and all geometrical # objets drawn onto it. The method setState simply # adjusts the co...
[ 2, 770, 5301, 3544, 256, 74, 284, 2251, 257, 2829, 27831, 201, 198, 2, 220, 220, 5072, 10200, 262, 1312, 24825, 1181, 201, 198, 201, 198, 11748, 256, 74, 3849, 355, 256, 74, 201, 198, 11748, 299, 32152, 355, 45941, 201, 198, 201, ...
3.342857
105
import numpy as np from scipy import stats import utils def fit(xdata, ydata): """Calculate 2D regression. Args: xdata (numpy.ndarray): 1D array of independent data [ntim], where ntim is the number of time points (or other independent points). ydata (numpy.ndarray): 2...
[ 11748, 299, 32152, 355, 45941, 198, 6738, 629, 541, 88, 1330, 9756, 198, 198, 11748, 3384, 4487, 628, 198, 4299, 4197, 7, 87, 7890, 11, 331, 7890, 2599, 198, 220, 220, 220, 37227, 9771, 3129, 378, 362, 35, 20683, 13, 628, 220, 220, ...
2.263102
935
from event import Event
[ 6738, 1785, 1330, 8558, 628 ]
5
5
import socket import threading import json PORT = 5000 SERVER = socket.gethostbyname(socket.gethostname()) ADDRESS = ('', PORT) FORMAT = 'utf-8' clients, names = [], [] server = socket.socket(socket.AF_INET, socket.SOCK_STREAM) server.bind(ADDRESS) StartChat()
[ 11748, 17802, 198, 11748, 4704, 278, 198, 11748, 33918, 198, 198, 15490, 796, 23336, 198, 35009, 5959, 796, 17802, 13, 1136, 4774, 1525, 3672, 7, 44971, 13, 1136, 4774, 3672, 28955, 198, 198, 2885, 7707, 7597, 796, 19203, 3256, 350, 986...
2.676471
102
"""Modules related specifically to the handling of synchronous requests from a supplier system."""
[ 37811, 5841, 5028, 3519, 5734, 284, 262, 9041, 286, 18305, 516, 7007, 422, 257, 22693, 1080, 526, 15931, 198 ]
5.210526
19
import gi import time gi.require_version('Gtk', '3.0') from gi.repository import Gtk,GObject,Gdk,Pango,GLib from wta_module import * # Generated By WiredGTK for Python: by Rocky Nuarin, 2018 Phils # #####################www.WireThemAll.com##################### class Handler(usercontrol): #WiredEvent def usercontrolev...
[ 11748, 308, 72, 201, 11748, 640, 201, 12397, 13, 46115, 62, 9641, 10786, 38, 30488, 3256, 705, 18, 13, 15, 11537, 201, 6738, 308, 72, 13, 260, 1930, 37765, 1330, 402, 30488, 11, 38, 10267, 11, 38, 34388, 11, 47, 14208, 11, 8763, 5...
2.502409
1,453
from slam_recognition.constant_convolutions.center_surround import rgby_3 from slam_recognition.util.get_dimensions import get_dimensions import tensorflow as tf
[ 6738, 21158, 62, 26243, 653, 13, 9979, 415, 62, 1102, 10396, 3508, 13, 16159, 62, 11793, 744, 1330, 48670, 1525, 62, 18, 198, 6738, 21158, 62, 26243, 653, 13, 22602, 13, 1136, 62, 27740, 5736, 1330, 651, 62, 27740, 5736, 198, 11748, ...
3.395833
48
""" Adapted from https://github.com/huggingface/transformers/blob/master/examples/run_generation.py """ import re import torch import logging from typing import List from collections import defaultdict from transformers import GPT2Tokenizer, XLNetTokenizer, TransfoXLTokenizer, OpenAIGPTTokenizer from transformers impo...
[ 37811, 198, 48003, 276, 422, 3740, 1378, 12567, 13, 785, 14, 71, 1018, 2667, 2550, 14, 35636, 364, 14, 2436, 672, 14, 9866, 14, 1069, 12629, 14, 5143, 62, 20158, 13, 9078, 198, 37811, 198, 11748, 302, 198, 11748, 28034, 198, 11748, ...
2.775053
938
from .handlers import router as internal_router __all__ = ["internal_router"]
[ 6738, 764, 4993, 8116, 1330, 20264, 355, 5387, 62, 472, 353, 198, 198, 834, 439, 834, 796, 14631, 32538, 62, 472, 353, 8973, 198 ]
3.291667
24
import pprint # message message = ''' Books and doors are the same thing books. You open them, and you go through into another world. ''' # split message to words into a list words = message.split() # define dictionary counter count = {} # traverse every word and accumulate for word in words: if not word[-1].isal...
[ 11748, 279, 4798, 198, 198, 2, 3275, 198, 20500, 796, 705, 7061, 198, 30650, 290, 8215, 389, 262, 976, 1517, 3835, 13, 220, 198, 1639, 1280, 606, 11, 290, 345, 467, 832, 656, 1194, 995, 13, 198, 7061, 6, 198, 198, 2, 6626, 3275, ...
3.098592
142
# Copyright 2021 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
[ 2, 15069, 33448, 3012, 11419, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 2, 345, 743, 407, 779, 428, 2393, 2845, 287, 11846, 351, 262, 13789, 13, 198, 2, 921, 743, 733...
3.762887
194
from dataclasses import dataclass from typing import Iterable from minsk.analysis.syntax.expression import ExpressionSyntax from minsk.analysis.syntax.kind import SyntaxKind from minsk.analysis.syntax.node import SyntaxNode from minsk.analysis.syntax.token import SyntaxToken
[ 6738, 4818, 330, 28958, 1330, 4818, 330, 31172, 198, 6738, 19720, 1330, 40806, 540, 198, 198, 6738, 949, 8135, 13, 20930, 13, 1837, 41641, 13, 38011, 1330, 41986, 13940, 41641, 198, 6738, 949, 8135, 13, 20930, 13, 1837, 41641, 13, 11031...
3.657895
76
#!/usr/bin/python # -*- coding: iso-8859-1 -*- import logging from peachyprinter import config, PrinterAPI import argparse import os import sys import time from Tkinter import * from ui.main_ui import MainUI if __name__ == "__main__": if not os.path.exists(config.PEACHY_PATH): os.makedirs(config.PEACHY...
[ 2, 48443, 14629, 14, 8800, 14, 29412, 198, 2, 532, 9, 12, 19617, 25, 47279, 12, 3459, 3270, 12, 16, 532, 9, 12, 198, 198, 11748, 18931, 198, 6738, 613, 35586, 1050, 3849, 1330, 4566, 11, 1736, 3849, 17614, 198, 11748, 1822, 29572, ...
2.71116
457
from sqlalchemy import create_engine from sqlalchemy.orm import sessionmaker from env_variables import SQL_ALCHEMY_URL _db_url_without_db = '/'.join(SQL_ALCHEMY_URL.split('/')[:-1]) engine = create_engine(f'{_db_url_without_db}', isolation_level='AUTOCOMMIT', echo=True) Session = sessionmaker(engine) if __name__ =...
[ 6738, 44161, 282, 26599, 1330, 2251, 62, 18392, 198, 6738, 44161, 282, 26599, 13, 579, 1330, 6246, 10297, 198, 198, 6738, 17365, 62, 25641, 2977, 1330, 16363, 62, 1847, 3398, 3620, 56, 62, 21886, 198, 198, 62, 9945, 62, 6371, 62, 1941...
2.75969
129
print(threeRailEncrypt("Vineet"))
[ 198, 4798, 7, 15542, 44631, 27195, 6012, 7203, 53, 500, 316, 48774, 198 ]
2.692308
13
import torch from random import random from torch.nn.utils.rnn import pad_sequence from torch.utils.data import Dataset def collate_fn(batch): ''' Batch-wise preprocessing and padding. :param batch: the current batch. :returns: padded sources, targets, alignments stacks an...
[ 11748, 28034, 198, 198, 6738, 4738, 1330, 4738, 198, 6738, 28034, 13, 20471, 13, 26791, 13, 81, 20471, 1330, 14841, 62, 43167, 198, 6738, 28034, 13, 26791, 13, 7890, 1330, 16092, 292, 316, 628, 198, 4299, 2927, 378, 62, 22184, 7, 4350...
2.3281
637
from . import StocklabObject
[ 6738, 764, 1330, 10500, 23912, 10267, 198 ]
4.142857
7
""" A collection of routines for validating, santizing and otherwise messing with content coming in from the web to be :py:class:`tiddlers <tiddlyweb.model.tiddler.Tidder>`, :py:class:`bags <tiddlyweb.model.bag.Bag>` or :py:class:`recipes <tiddlyweb.model.recipe.Recipe>`. The validators can be extended by adding funct...
[ 37811, 198, 32, 4947, 286, 31878, 329, 4938, 803, 11, 264, 415, 2890, 290, 4306, 37241, 198, 4480, 2695, 2406, 287, 422, 262, 3992, 284, 307, 1058, 9078, 25, 4871, 25, 63, 83, 1638, 8116, 198, 27, 83, 1638, 306, 12384, 13, 19849, ...
2.612259
1,403
# -*- coding: utf-8 -*- """ Created on Tue May 11 15:31:31 2021 :copyright: Jared Peacock (jpeacock@usgs.gov) :license: MIT """ from pathlib import Path import pandas as pd import numpy as np import logging from mth5.timeseries import ChannelTS, RunTS from mt_metadata.timeseries import Station, Run def ...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 198, 41972, 319, 30030, 1737, 1367, 1315, 25, 3132, 25, 3132, 33448, 198, 198, 25, 22163, 4766, 25, 220, 198, 220, 220, 220, 19116, 2631, 330, 735, 357, 73, 431...
2.284761
899
import abc import logging import os import pickle from collections import Counter from datetime import datetime from typing import List, Union import numpy as np _logger = logging.getLogger(__name__) class StatelessTransformation(Transformation, abc.ABC): class WhitespaceTokenizer(StatelessTransformation): cla...
[ 11748, 450, 66, 198, 11748, 18931, 198, 11748, 28686, 198, 11748, 2298, 293, 198, 6738, 17268, 1330, 15034, 198, 6738, 4818, 8079, 1330, 4818, 8079, 198, 6738, 19720, 1330, 7343, 11, 4479, 198, 198, 11748, 299, 32152, 355, 45941, 198, 1...
3.654971
171
"""Initialize unittest."""
[ 37811, 24243, 1096, 555, 715, 395, 526, 15931, 198 ]
3
9
import pytest from pytest import param as p from anglicize import anglicize, build_mapping
[ 11748, 12972, 9288, 198, 6738, 12972, 9288, 1330, 5772, 355, 279, 198, 198, 6738, 3550, 677, 1096, 1330, 3550, 677, 1096, 11, 1382, 62, 76, 5912, 628, 198 ]
3.357143
28
import baopig as bp import images as im # TODO : a city defines the style, a district defines the content
[ 198, 198, 11748, 26605, 404, 328, 355, 275, 79, 198, 11748, 4263, 355, 545, 628, 198, 2, 16926, 46, 1058, 257, 1748, 15738, 262, 3918, 11, 257, 4783, 15738, 262, 2695 ]
3.516129
31
from datetime import datetime from flask import render_template, flash, redirect, url_for, request from flask_login import login_user, logout_user, current_user, login_required from werkzeug.urls import url_parse from app import app, db from app.forms import LoginForm, RegistrationForm, EditProfileForm, PostForm, ...
[ 6738, 4818, 8079, 1330, 4818, 8079, 201, 198, 6738, 42903, 1330, 8543, 62, 28243, 11, 7644, 11, 18941, 11, 19016, 62, 1640, 11, 2581, 201, 198, 6738, 42903, 62, 38235, 1330, 17594, 62, 7220, 11, 2604, 448, 62, 7220, 11, 1459, 62, 72...
3.067485
163
# -*- coding: utf-8 -*- from selenium import webdriver from selenium.webdriver.support.ui import WebDriverWait success = True wd = webdriver.Firefox() wait = WebDriverWait(wd, 22) try: wd.get("https://www.python.org/") wd.find_element_by_css_selector("button").click() wd.find_element_by_link_text("Succes...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 6738, 384, 11925, 1505, 1330, 3992, 26230, 198, 6738, 384, 11925, 1505, 13, 12384, 26230, 13, 11284, 13, 9019, 1330, 5313, 32103, 21321, 198, 198, 13138, 796, 6407, 198, ...
2.477356
817
import logging import re from datetime import timezone import pendulum from aioscheduler import TimedScheduler from dateparser import parse from discord.ext import commands from discord.ext.menus import MenuPages import db from cogs import CustomCog, AinitMixin from cogs.Logging import log_usage from const import UNI...
[ 11748, 18931, 198, 11748, 302, 198, 6738, 4818, 8079, 1330, 640, 11340, 198, 198, 11748, 44017, 14452, 198, 6738, 257, 4267, 1740, 18173, 1330, 5045, 276, 50, 1740, 18173, 198, 6738, 3128, 48610, 1330, 21136, 198, 6738, 36446, 13, 2302, ...
3.462069
145
import json import base64 import os import boto3 import zlib # Used for decryption of the received payload import aws_encryption_sdk from aws_encryption_sdk import CommitmentPolicy from aws_encryption_sdk.internal.crypto import WrappingKey from aws_encryption_sdk.key_providers.raw import RawMasterKeyProvider from aws_...
[ 11748, 33918, 198, 11748, 2779, 2414, 198, 11748, 28686, 198, 11748, 275, 2069, 18, 198, 11748, 1976, 8019, 198, 198, 2, 16718, 329, 875, 13168, 286, 262, 2722, 21437, 198, 11748, 3253, 82, 62, 12685, 13168, 62, 21282, 74, 198, 6738, ...
3.048417
537
from django.contrib import admin from .models import Location admin.site.register(Location, LocationAdmin)
[ 6738, 42625, 14208, 13, 3642, 822, 1330, 13169, 198, 198, 6738, 764, 27530, 1330, 13397, 628, 198, 198, 28482, 13, 15654, 13, 30238, 7, 14749, 11, 13397, 46787, 8, 198 ]
3.7
30
# -*- coding: utf-8 -*- # @Date : 2022/4/13 12:07 # @Author : WangYihao # @File : __init__.py.py from SimCam.simcam import SimCam
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 2488, 10430, 220, 220, 220, 1058, 33160, 14, 19, 14, 1485, 1105, 25, 2998, 198, 2, 2488, 13838, 220, 1058, 15233, 56, 72, 23778, 198, 2, 2488, 8979, 220, 220, 220...
2.090909
66
from ixnetwork_restpy.base import Base from ixnetwork_restpy.files import Files
[ 6738, 220, 844, 27349, 62, 2118, 9078, 13, 8692, 1330, 7308, 198, 6738, 220, 844, 27349, 62, 2118, 9078, 13, 16624, 1330, 13283, 628 ]
3.375
24
# Generated by Django 4.0.2 on 2022-02-16 14:11 from django.db import migrations
[ 2, 2980, 515, 416, 37770, 604, 13, 15, 13, 17, 319, 33160, 12, 2999, 12, 1433, 1478, 25, 1157, 198, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 628 ]
2.766667
30
import cv2 import numpy as np from skimage import exposure as ex from skimage import data from PIL import Image import skfuzzy as fuzz import math import timeit import time ''' Histogram equalization with colour YCR_CB and histogram equalization only on Y @img: the image to modify @return: the image with the histogr...
[ 11748, 269, 85, 17, 198, 11748, 299, 32152, 355, 45941, 198, 6738, 1341, 9060, 1330, 7111, 355, 409, 198, 6738, 1341, 9060, 1330, 1366, 198, 6738, 350, 4146, 1330, 7412, 198, 11748, 1341, 69, 4715, 88, 355, 26080, 198, 11748, 10688, 1...
3.170697
703
#!/usr/bin/env python """ make_known_good_cice_masks.py Copy known good CICE masks for use in fixing the HadGEM CICE masks. """ import os import numpy as np from netCDF4 import Dataset OUTPUT_DIR = "/gws/nopw/j04/primavera1/masks/HadGEM3Ocean_fixes/cice_masks" def main(): """main entry""" rootgrp = Dataset...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 37811, 198, 15883, 62, 4002, 62, 11274, 62, 66, 501, 62, 5356, 591, 13, 9078, 198, 198, 29881, 1900, 922, 327, 8476, 20680, 329, 779, 287, 18682, 262, 11161, 38, 3620, 327, 8476, 206...
2.097222
864
from datetime import timedelta
[ 6738, 4818, 8079, 1330, 28805, 12514 ]
5
6
# -*- coding: utf-8 -*- import logging import configparser
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 11748, 18931, 198, 11748, 4566, 48610, 628 ]
2.857143
21
import os import subprocess from dotenv import load_dotenv import pymongo from pymongo import MongoClient from pymongo.cursor import Cursor from pymongo.errors import DuplicateKeyError, BulkWriteError from util.args import Args load_dotenv()
[ 11748, 28686, 198, 11748, 850, 14681, 198, 6738, 16605, 24330, 1330, 3440, 62, 26518, 24330, 198, 198, 11748, 279, 4948, 25162, 198, 6738, 279, 4948, 25162, 1330, 42591, 11792, 198, 6738, 279, 4948, 25162, 13, 66, 21471, 1330, 327, 21471,...
3.369863
73
from enum import Enum from typing import Union from iqa_common.executor import Command, Execution, ExecutorAnsible, CommandAnsible, ExecutorContainer, \ CommandContainer, Executor from iqa_common.utils.docker_util import DockerUtil from messaging_abstract.component import Service, ServiceStatus import logging
[ 6738, 33829, 1330, 2039, 388, 198, 6738, 19720, 1330, 4479, 198, 198, 6738, 1312, 20402, 62, 11321, 13, 18558, 38409, 1330, 9455, 11, 37497, 11, 8393, 38409, 2025, 82, 856, 11, 9455, 2025, 82, 856, 11, 8393, 38409, 29869, 11, 3467, 19...
3.819277
83
import numpy as np from ..mixins import Preprocessor, AlwaysPredictPlotter, AdvantageEstimator from warnings import warn
[ 11748, 299, 32152, 355, 45941, 198, 6738, 11485, 19816, 1040, 1330, 3771, 41341, 11, 16622, 47, 17407, 43328, 353, 11, 45318, 22362, 320, 1352, 198, 6738, 14601, 1330, 9828, 628 ]
4.066667
30
import logging logging.warning('warning message') logging.error('This is an error message') logging.critical('This is a critical error message')
[ 198, 11748, 18931, 198, 198, 6404, 2667, 13, 43917, 10786, 43917, 3275, 11537, 198, 6404, 2667, 13, 18224, 10786, 1212, 318, 281, 4049, 3275, 11537, 198, 6404, 2667, 13, 34666, 10786, 1212, 318, 257, 4688, 4049, 3275, 11537, 198 ]
3.769231
39
from textblob import TextBlob a = str(input("enter your word to check spell") _b = TextBlob(a) print (_b.correct()) # from textblob import Textblob #mylst = ["firt","clor"] #correct_list = [] #for word in mylst: # correct_list.append(TextBlob()) # #for word in correct_list: # print (word.correct())
[ 6738, 2420, 2436, 672, 1330, 8255, 3629, 672, 220, 198, 64, 796, 965, 7, 15414, 7203, 9255, 534, 1573, 284, 2198, 4822, 4943, 198, 62, 65, 796, 8255, 3629, 672, 7, 64, 8, 198, 4798, 44104, 65, 13, 30283, 28955, 198, 198, 2, 422, ...
2.643478
115
from __future__ import division import numpy as np import scipy as sp import matplotlib as mpl import matplotlib.pyplot as plt from mpl_toolkits.mplot3d import Axes3D from scipy.special import jn, jn_zeros import subprocess # Define polar and cartesian coordinates for the drum. theta = np.r_[0:2*np.pi:50j] radius = n...
[ 6738, 11593, 37443, 834, 1330, 7297, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 629, 541, 88, 355, 599, 198, 11748, 2603, 29487, 8019, 355, 285, 489, 198, 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 198, 6738, 285, 4...
2.06694
732
import scrapy from bs4 import BeautifulSoup import requests from QB5.pipelines import dbHandle from QB5.items import Qb5Item
[ 11748, 15881, 88, 198, 6738, 275, 82, 19, 1330, 23762, 50, 10486, 198, 11748, 7007, 198, 6738, 16135, 20, 13, 79, 541, 20655, 1330, 20613, 37508, 198, 6738, 16135, 20, 13, 23814, 1330, 1195, 65, 20, 7449, 198 ]
3.289474
38
""" :mod: 'BookDatabaseUtility' ~~~~~~~~~~~~~~~~~~~~~~~~~~~ .. py:module:: BookDatabaseUtility :copyright: Copyright BitWorks LLC, All rights reserved. :license: MIT :synopsis: SQLAlchemy ORM engine, metadata, and utility functions for working with dynamic sqlite databases :description: Contains the f...
[ 37811, 198, 25, 4666, 25, 705, 10482, 38105, 18274, 879, 6, 198, 27156, 15116, 4907, 93, 198, 198, 492, 220, 12972, 25, 21412, 3712, 4897, 38105, 18274, 879, 198, 220, 220, 220, 1058, 22163, 4766, 25, 15069, 4722, 23044, 11419, 11, 14...
3.396166
939
""" Module for math and statistics related functions. """
[ 37811, 198, 26796, 329, 10688, 290, 7869, 3519, 5499, 13, 198, 37811, 198 ]
4.461538
13
import itertools import numpy as np import constants from utils import file if __name__ == '__main__': train_and_evaluate(constants.DATASET_NAME_TPL.format('100_no_singles'), 100) #train_and_evaluate(constants.DATASET_NAME_TPL.format('50_no_singles'), 50)
[ 11748, 340, 861, 10141, 198, 11748, 299, 32152, 355, 45941, 198, 198, 11748, 38491, 198, 6738, 3384, 4487, 1330, 2393, 628, 198, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 198, 220, 220, 220, 4512, 62, 392, 62, 497...
2.601942
103
ACCURACY :::62.86377259982597
[ 198, 15859, 4261, 43300, 1058, 3712, 5237, 13, 4521, 26514, 1495, 34808, 1495, 5607 ]
2.214286
14
import bsddb.db as bdb import os.path import cPickle from base64 import b64encode, b64decode from struct import pack
[ 198, 11748, 275, 82, 1860, 65, 13, 9945, 355, 275, 9945, 198, 11748, 28686, 13, 6978, 198, 11748, 269, 31686, 293, 198, 6738, 2779, 2414, 1330, 275, 2414, 268, 8189, 11, 275, 2414, 12501, 1098, 198, 6738, 2878, 1330, 2353, 198 ]
2.878049
41
# Copyright 2022 AI Singapore # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing...
[ 2, 15069, 33160, 9552, 12551, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 2, 345, 743, 407, 779, 428, 2393, 2845, 287, 11846, 351, 262, 13789, 13, 198, 2, 921, 743, 733...
3.694444
180
# ============================================================================= # Copyright (c) 2021 SeisSpark (https://github.com/kdeyev/SeisSpark). # # 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 Lice...
[ 2, 38093, 25609, 198, 2, 15069, 357, 66, 8, 33448, 1001, 271, 4561, 668, 357, 5450, 1378, 12567, 13, 785, 14, 74, 2934, 88, 1990, 14, 4653, 271, 4561, 668, 737, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, ...
4.243902
205
from unittest import TestCase from unittest import TestSuite from unittest import main from unittest import makeSuite from mwstools.parsers.notifications import Notification __all__ = [ TestNotification ] if __name__ == '__main__': main(defaultTest='suite')
[ 6738, 555, 715, 395, 1330, 6208, 20448, 198, 6738, 555, 715, 395, 1330, 6208, 5606, 578, 198, 6738, 555, 715, 395, 1330, 1388, 198, 6738, 555, 715, 395, 1330, 787, 5606, 578, 198, 198, 6738, 285, 86, 301, 10141, 13, 79, 945, 364, ...
3
91
import json from pathlib import Path from typing import Union import jsonschema import yaml DEFAULT_CONFIG_PATH = Path(__file__).parent / "settings.yaml" config = Configuration() config.load(DEFAULT_CONFIG_PATH)
[ 11748, 33918, 198, 6738, 3108, 8019, 1330, 10644, 198, 6738, 19720, 1330, 4479, 198, 198, 11748, 44804, 684, 2395, 2611, 198, 11748, 331, 43695, 628, 198, 198, 7206, 38865, 62, 10943, 16254, 62, 34219, 796, 10644, 7, 834, 7753, 834, 737...
3.176471
68
from .Event import Event
[ 6738, 764, 9237, 1330, 8558, 198 ]
4.166667
6
import nltk from nltk.chunk.regexp import ChunkString, ChunkRule, ChinkRule from nltk.tree import Tree from nltk.chunk import RegexpParser from nltk.corpus import conll2000 from nltk.tag import NgramTagger #class for Unigram Chunking #class for Bigram Chunking #class for Ngram Chunking #Rule-based chunking def re...
[ 11748, 299, 2528, 74, 198, 6738, 299, 2528, 74, 13, 354, 2954, 13, 260, 25636, 79, 1330, 609, 2954, 10100, 11, 609, 2954, 31929, 11, 609, 676, 31929, 198, 6738, 299, 2528, 74, 13, 21048, 1330, 12200, 198, 6738, 299, 2528, 74, 13, ...
2.377483
755
# Imports from os.path import join, isfile from os import remove, rmdir from pysav import Save, does_save_exist, does_app_dir_exist, generate_environment_path from utils.random_data import generate_dict # Test def test_answer(): """Does Save work as expected""" # Test Importing # Create file to be importe...
[ 2, 1846, 3742, 198, 6738, 28686, 13, 6978, 1330, 4654, 11, 318, 7753, 198, 6738, 28686, 1330, 4781, 11, 374, 9132, 343, 198, 6738, 279, 893, 615, 1330, 12793, 11, 857, 62, 21928, 62, 38476, 11, 857, 62, 1324, 62, 15908, 62, 38476, ...
2.169906
1,389
import doctest import pytest from insights.parsers import ansible_tower_settings, SkipException from insights.tests import context_wrap ANSIBLE_TOWER_CONFIG_CUSTOM = ''' AWX_CLEANUP_PATHS = False LOGGING['handlers']['tower_warnings']['level'] = 'DEBUG' '''.strip() ANSIBLE_TOWER_CONFIG_CUSTOM_INVALID1 = ''' '''.strip...
[ 11748, 10412, 395, 198, 11748, 12972, 9288, 198, 6738, 17218, 13, 79, 945, 364, 1330, 9093, 856, 62, 36170, 62, 33692, 11, 32214, 16922, 198, 6738, 17218, 13, 41989, 1330, 4732, 62, 37150, 628, 198, 15037, 34563, 62, 51, 36048, 62, 10...
2.525316
158
import os import json from app.config import DATA_PATH """ _id: ID date: eg "2020-02-06T15:24:59.942Z" msg: eg "" status: eg "" a emoji) """ if __name__ == '__main__': DATA_PATH = '../../data' with open('../../../../Node/data/zoneMsg.json', 'r') as f: data = json.load(f) ...
[ 11748, 28686, 198, 11748, 33918, 198, 198, 6738, 598, 13, 11250, 1330, 42865, 62, 34219, 198, 198, 37811, 198, 62, 312, 25, 220, 220, 220, 220, 4522, 198, 4475, 25, 220, 220, 220, 220, 220, 220, 220, 29206, 366, 42334, 12, 2999, 12,...
2.010101
198
import random import pprint import matplotlib.pyplot as plt import numpy as np from cells import * pp = pprint.PrettyPrinter(indent=2) random.seed(5) def get_image_from_state(cells, time, debug=False): """ Generates an image from the cell states """ # print("time: ", time) img = [] for rix,...
[ 11748, 4738, 198, 11748, 279, 4798, 198, 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 198, 11748, 299, 32152, 355, 45941, 198, 6738, 4778, 1330, 1635, 198, 198, 381, 796, 279, 4798, 13, 35700, 6836, 3849, 7, 521, 298, 28, ...
2.330677
251
#! /usr/bin/python3 import time from events import * q = QueueExecutor() q.addEvent(test1, time.time() + 3, 1, 5, "foo", "bar", "baz") q.addEvent(test1, time.time() + .5, .3, 20, "foo2", "bar") print("Main thread asleep at %s" % (time.time(),)) time.sleep(6) print("Main thread awake, terminating...") q.stop()
[ 2, 0, 1220, 14629, 14, 8800, 14, 29412, 18, 198, 11748, 640, 198, 6738, 2995, 1330, 1635, 198, 198, 80, 796, 4670, 518, 23002, 38409, 3419, 198, 198, 80, 13, 2860, 9237, 7, 9288, 16, 11, 640, 13, 2435, 3419, 1343, 513, 11, 352, ...
2.496
125
from typing import Any, Callable, Dict, Iterable, Mapping, Tuple, TypeVar, Union, cast, overload __all__ = ("extract_iterable_from_tuple", "is_iterable", "item_to_tuple", "mapping_merge") KT = TypeVar("KT") VT = TypeVar("VT") T = TypeVar("T") def item_to_tuple(item: Union[T, Iterable[T]]) -> Tuple[T, ...]: # ...
[ 6738, 19720, 1330, 4377, 11, 4889, 540, 11, 360, 713, 11, 40806, 540, 11, 337, 5912, 11, 309, 29291, 11, 5994, 19852, 11, 4479, 11, 3350, 11, 31754, 198, 198, 834, 439, 834, 796, 5855, 2302, 974, 62, 2676, 540, 62, 6738, 62, 83, ...
2.337176
347
import numpy as np from spacetime.potential import Potential
[ 11748, 299, 32152, 355, 45941, 198, 6738, 34752, 8079, 13, 13059, 1843, 1330, 32480, 198 ]
4.066667
15
from typing import Tuple, List from algosdk.v2client.algod import AlgodClient from algosdk.future import transaction from algosdk.logic import get_application_address from algosdk import account, encoding from pyteal import compileTeal, Mode, Keccak256 from tellorflex.methods import report from utils.account import ...
[ 6738, 19720, 1330, 309, 29291, 11, 7343, 198, 198, 6738, 435, 70, 418, 34388, 13, 85, 17, 16366, 13, 14016, 375, 1330, 978, 25344, 11792, 198, 6738, 435, 70, 418, 34388, 13, 37443, 1330, 8611, 198, 6738, 435, 70, 418, 34388, 13, 640...
2.794118
272
#### #### Convert a TSV into a fully parsed JSON list blob that could be #### used by a mustache (or other logicless) template. #### #### Example usage to analyze the usual suspects: #### python3 parse.py --help #### #### Get report of current problems: #### python3 parse-vocab-list.py --tsv ~/Downloads/UCSC_\ -\ \(...
[ 4242, 198, 4242, 38240, 257, 26136, 53, 656, 257, 3938, 44267, 19449, 1351, 44812, 326, 714, 307, 198, 4242, 973, 416, 257, 49303, 357, 273, 584, 9156, 1203, 8, 11055, 13, 198, 4242, 198, 4242, 17934, 8748, 284, 16602, 262, 6678, 1182...
2.850638
549
import builtins, importlib importer = Importer()
[ 11748, 3170, 1040, 11, 1330, 8019, 628, 198, 198, 320, 26634, 796, 1846, 26634, 3419, 198 ]
3.25
16
from app import app, db from app.models import * import datetime import sys sys.path.append('./sanitize') from sanitize_utils import * from trueskill import setup, Rating, quality_1vs1, rate_1vs1 from trueskill_functions import MU, SIGMA, CONS_MU, BETA, TAU, DRAW_PROBABILITY, populate_trueskills from misc_utils impor...
[ 6738, 598, 1330, 598, 11, 20613, 198, 6738, 598, 13, 27530, 1330, 1635, 198, 11748, 4818, 8079, 198, 198, 11748, 25064, 198, 17597, 13, 6978, 13, 33295, 7, 4458, 14, 12807, 270, 1096, 11537, 198, 6738, 5336, 270, 1096, 62, 26791, 1330...
3.786116
533
# coding=utf-8 # # Copyright (c) 2015 EMC Corporation # All Rights Reserved # import httplib import cjson import argparse import sys import os import time import json import uuid import base64 import urllib import requests import email from email.Utils import formatdate import cookielib import telnetlib import xml.etr...
[ 2, 19617, 28, 40477, 12, 23, 198, 2, 198, 2, 15069, 357, 66, 8, 1853, 412, 9655, 10501, 198, 2, 1439, 6923, 33876, 198, 2, 198, 198, 11748, 1841, 489, 571, 198, 11748, 269, 17752, 198, 11748, 1822, 29572, 198, 11748, 25064, 198, 1...
1.988148
29,278
# -*- coding: utf-8 -*- """ @author: stoberblog @detail: This is a configuration file for the Solar Modbus project. """ # MODBUS DETAILS INVERTER_IP = "192.168.1.29" MODBUS_PORT = 7502 METER_ADDR = 240 MODBUS_TIMEOUT = 30 #seconds to wait before failure # METER INSTALLED METER_INSTALLED =...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 201, 198, 37811, 201, 198, 31, 9800, 25, 220, 220, 220, 220, 220, 220, 220, 220, 336, 2023, 14036, 201, 198, 31, 49170, 25, 220, 220, 220, 220, 220, 220, 220, 220, 770, ...
2.233596
381
from async_asgi_testclient import TestClient from myapp import main import pytest
[ 6738, 30351, 62, 292, 12397, 62, 9288, 16366, 1330, 6208, 11792, 198, 6738, 616, 1324, 1330, 1388, 198, 11748, 12972, 9288, 628, 628, 628, 628, 628, 628 ]
3.444444
27
from .backlight_mode import BacklightMode from .angle_unit import AngleUnit from .measurement_unit import MeasurementUnit
[ 6738, 764, 1891, 2971, 62, 14171, 1330, 5157, 2971, 19076, 198, 6738, 764, 9248, 62, 20850, 1330, 42375, 26453, 198, 6738, 764, 1326, 5015, 434, 62, 20850, 1330, 24291, 434, 26453, 198 ]
3.8125
32
import random from operations import abstract_operation
[ 11748, 4738, 198, 198, 6738, 4560, 1330, 12531, 62, 27184, 628 ]
5.272727
11