content
stringlengths
1
1.04M
input_ids
listlengths
1
774k
ratio_char_token
float64
0.38
22.9
token_count
int64
1
774k
#!/usr/bin/env python import numpy as np import matplotlib.pyplot as plt data = np.genfromtxt('example-log.csv', delimiter = ',', skip_header = 4, names = ['t', 'T']) plt.plot(data['t'] / 1e3, data['T']) plt.ylabel('T/°C') plt.xlabel('t/s') plt.show()
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 198, 198, 7890, 796, 45941, 13, 5235, 6738, 14116, 10786, 20688, 12, 6404, 13, 40664, ...
2.256637
113
from collections import defaultdict from pycoingecko import CoinGeckoAPI from net_worth_tracker.utils import euro_per_dollar
[ 6738, 17268, 1330, 4277, 11600, 198, 198, 6738, 12972, 1073, 11912, 37549, 1330, 16312, 10082, 37549, 17614, 198, 198, 6738, 2010, 62, 9268, 62, 2213, 10735, 13, 26791, 1330, 11063, 62, 525, 62, 22569, 628, 628 ]
3.611111
36
from __future__ import absolute_import from __future__ import print_function import argparse import os import sys from mimic3benchmark.subject import read_stays, read_diagnoses, read_events, get_events_for_stay, add_hours_elpased_to_events from mimic3benchmark.subject import convert_events_to_timeseries, get_first_v...
[ 6738, 11593, 37443, 834, 1330, 4112, 62, 11748, 198, 6738, 11593, 37443, 834, 1330, 3601, 62, 8818, 198, 198, 11748, 1822, 29572, 198, 198, 11748, 28686, 198, 11748, 25064, 198, 198, 6738, 26332, 18, 26968, 4102, 13, 32796, 1330, 1100, ...
2.470836
1,663
""" Main module to start the catsleep tool """ import os import sys from catsleep.cat import catsleep as ct def start_catsleep(): """ Starting point of catsleep """ catsp = ct.CatSleep() catsp.catsleep_control() if __name__ == '__main__': start_catsleep()
[ 37811, 8774, 8265, 284, 923, 262, 11875, 8892, 2891, 37227, 198, 198, 11748, 28686, 198, 11748, 25064, 198, 198, 6738, 11875, 8892, 13, 9246, 1330, 11875, 8892, 355, 269, 83, 198, 198, 4299, 923, 62, 24619, 8892, 33529, 198, 220, 220, ...
2.895833
96
################################################################### # Copyright (c) 2016 by TAOS Technologies, Inc. # All rights reserved. # # This file is proprietary and confidential to TAOS Technologies. # No part of this file may be reproduced, stored, transmitted, # disclosed or u...
[ 171, 119, 123, 29113, 29113, 21017, 198, 2, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 15069, 357, 66, 8, 1584, 416, 21664, 2640, 21852, 11, 3457, 13, 198, 2, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 22...
3.606383
188
# Generated by Django 2.2.4 on 2020-04-04 15:19 from django.db import migrations, models import django.db.models.deletion
[ 2, 2980, 515, 416, 37770, 362, 13, 17, 13, 19, 319, 12131, 12, 3023, 12, 3023, 1315, 25, 1129, 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
from __future__ import unicode_literals import nose from django.core.files.uploadedfile import SimpleUploadedFile from kgb import SpyAgency from reviewboard.admin.import_utils import has_module from reviewboard.diffviewer.diffutils import (get_original_file, get_patched_f...
[ 6738, 11593, 37443, 834, 1330, 28000, 1098, 62, 17201, 874, 198, 198, 11748, 9686, 198, 6738, 42625, 14208, 13, 7295, 13, 16624, 13, 25850, 276, 7753, 1330, 17427, 41592, 276, 8979, 198, 6738, 14211, 65, 1330, 23688, 32, 4949, 198, 198,...
1.846278
5,562
from django.contrib.auth.models import Permission from graphene import ID, ClientIDMutation, Field, ResolveInfo, String from graphql import GraphQLError from graphql_jwt.decorators import login_required, permission_required, staff_member_required from graphql_relay import from_global_id from .models import Article, Pu...
[ 6738, 42625, 14208, 13, 3642, 822, 13, 18439, 13, 27530, 1330, 2448, 3411, 198, 6738, 42463, 1330, 4522, 11, 20985, 2389, 44, 7094, 11, 7663, 11, 1874, 6442, 12360, 11, 10903, 198, 6738, 4823, 13976, 1330, 29681, 48, 2538, 81, 1472, 1...
3.39726
219
import unittest from TestUtils import TestChecker from AST import * from StaticError import *
[ 11748, 555, 715, 395, 198, 6738, 6208, 18274, 4487, 1330, 6208, 9787, 263, 198, 6738, 29273, 1330, 1635, 198, 6738, 36125, 12331, 1330, 1635, 628, 628, 198 ]
3.62963
27
#!/usr/bin/env python # -*- coding: utf-8 -*- """Implements grpc modules""" import time import grpc import service.service_pb2 as bot_pb from service import service_pb2_grpc from EshebaBot.esheba import EshebaBot from concurrent.futures import ThreadPoolExecutor # end class def run_server(): '''Runs the grpc serv...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 3546, 1154, 902, 1036, 14751, 13103, 37811, 198, 11748, 640, 198, 11748, 1036, 14751, 198, 11748, 2139, 13, 15271,...
2.64
300
#!/usr/bin/env python """ date2dec : Converts calendar dates into decimal dates. This module was written by Arndt Piayda and then enhanced and maintained by Matthias Cuntz while at Department of Computational Hydrosystems, Helmholtz Centre for Environmental Research - UFZ, Leipzig, Germany, and continued by Matthias C...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 37811, 198, 4475, 17, 12501, 1058, 1482, 24040, 11845, 9667, 656, 32465, 9667, 13, 198, 198, 1212, 8265, 373, 3194, 416, 943, 358, 83, 13993, 323, 6814, 290, 788, 13105, 290, 198, 76, ...
1.978679
16,181
from __future__ import print_function import sys
[ 6738, 11593, 37443, 834, 1330, 3601, 62, 8818, 198, 198, 11748, 25064, 628, 628, 198 ]
3.6
15
from datetime import datetime MINUTES_IN_DAY = 60 * 24 SECONDS_IN_MINUTE = 60 class Slice(object): """ A period of time with a start and an end """ DT_FMT = "%Y-%m-%d %H:%M" @property @property @property @property
[ 6738, 4818, 8079, 1330, 4818, 8079, 198, 198, 23678, 3843, 1546, 62, 1268, 62, 26442, 796, 3126, 1635, 1987, 198, 23683, 1340, 5258, 62, 1268, 62, 23678, 37780, 796, 3126, 198, 198, 4871, 3454, 501, 7, 15252, 2599, 198, 220, 220, 220,...
2.290909
110
""" Copyright (C) 2016 Interactive Brokers LLC. All rights reserved. This code is subject to the terms and conditions of the IB API Non-Commercial License or the IB API Commercial License, as applicable. """ """ Simple enum implementation """
[ 37811, 198, 15269, 357, 34, 8, 1584, 21365, 2806, 15949, 11419, 13, 1439, 2489, 10395, 13, 220, 770, 2438, 318, 198, 32796, 284, 262, 2846, 290, 3403, 286, 262, 34782, 7824, 8504, 12, 48401, 13789, 393, 262, 198, 34782, 7824, 22724, 1...
4
64
# -*- coding: utf-8 -*- # @Time : 2021-12-03 1:12 p.m. # @Author : young wang # @FileName: geoCorrection.py # @Software: PyCharm import pydicom import numpy as np from OssiviewBufferReader import OssiviewBufferReader from os.path import join, isfile from pydicom.uid import generate_uid import os from matplotlib i...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 2488, 7575, 220, 220, 220, 1058, 33448, 12, 1065, 12, 3070, 352, 25, 1065, 279, 13, 76, 13, 198, 2, 2488, 13838, 220, 1058, 1862, 266, 648, 198, 2, 2488, 8979, ...
2.103822
3,323
# -*- coding: utf-8 -*- # ***************************************************************************** # NICOS, the Networked Instrument Control System of the MLZ # Copyright (c) 2009-2021 by the NICOS contributors (see AUTHORS) # # This program is free software; you can redistribute it and/or modify it under # the t...
[ 2, 220, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 41906, 17174, 4557, 35625, 198, 2, 45593, 2640, 11, 262, 7311, 276, 42410, 6779, 4482, 286, 262, 10373, 57, 198, 2, 15069, 357, 66, 8, 3717, 12, 1238, 2481, ...
3.111392
1,975
import numpy as np import pandas as pd import spacy # %% Load spaCy model nlp = spacy.load("en_core_web_lg") # %% Load cleaned data df = pd.read_csv('./data/interim/Corpus_Cleaned.csv') # %% Extract document vectors df['Vector'] = df.loc[:, 'Top1':'Top25'].apply(lambda x: nlp(' '.join([str(s) for s in x])).vector, a...
[ 11748, 299, 32152, 355, 45941, 198, 11748, 19798, 292, 355, 279, 67, 198, 11748, 599, 1590, 198, 198, 2, 43313, 8778, 41900, 20418, 2746, 198, 21283, 79, 796, 599, 1590, 13, 2220, 7203, 268, 62, 7295, 62, 12384, 62, 75, 70, 4943, 19...
2.51711
263
import numpy as np import scipy.sparse as sparse from typing import Any from torch.utils.checkpoint import checkpoint import torch import torch.nn as nn import torch.nn.functional as F from torch_scatter import scatter_max from .. import register_model, BaseModel from cogdl.utils import mul_edge_softmax, spmm, get_a...
[ 11748, 299, 32152, 355, 45941, 198, 11748, 629, 541, 88, 13, 82, 29572, 355, 29877, 198, 6738, 19720, 1330, 4377, 198, 6738, 28034, 13, 26791, 13, 9122, 4122, 1330, 26954, 198, 198, 11748, 28034, 198, 11748, 28034, 13, 20471, 355, 299, ...
2.568063
382
# This code is part of Qiskit. # # (C) Copyright IBM 2020. # # This code is licensed under the Apache License, Version 2.0. You may # obtain a copy of this license in the LICENSE.txt file in the root directory # of this source tree or at http://www.apache.org/licenses/LICENSE-2.0. # # Any modifications or derivative wo...
[ 2, 770, 2438, 318, 636, 286, 1195, 1984, 270, 13, 198, 2, 198, 2, 357, 34, 8, 15069, 19764, 12131, 13, 198, 2, 198, 2, 770, 2438, 318, 11971, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 13, 921, 743, 198, 2, 7330, 257, 486...
2.158432
4,412
# uncompyle6 version 3.7.4 # Python bytecode 3.7 (3394) # Decompiled from: Python 3.7.9 (tags/v3.7.9:13c94747c7, Aug 17 2020, 18:58:18) [MSC v.1900 64 bit (AMD64)] # Embedded file name: T:\InGame\Gameplay\Scripts\Server\sims\outfits\outfit_picker_interactions.py # Compiled at: 2017-06-14 00:32:50 # Size of source mod 2...
[ 2, 34318, 2349, 21, 2196, 513, 13, 22, 13, 19, 198, 2, 11361, 18022, 8189, 513, 13, 22, 357, 2091, 5824, 8, 198, 2, 4280, 3361, 3902, 422, 25, 11361, 513, 13, 22, 13, 24, 357, 31499, 14, 85, 18, 13, 22, 13, 24, 25, 1485, 66,...
3.128535
389
class PathData: """ data structure contain open api scheme (sub scheme) and the variable define in the parents of the current scheme """ def __init__(self, scheme: dict, args: dict): """ :param scheme: open api scheme (sub scheme) :param args: the variable define in the parents o...
[ 4871, 10644, 6601, 25, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 1366, 4645, 3994, 1280, 40391, 7791, 357, 7266, 7791, 8, 290, 262, 7885, 8160, 287, 262, 3397, 286, 262, 1459, 7791, 198, 220, 220, 220, 37227, 198, 220, 220, 220...
2.085659
1,541
""" This file deals with preprocessing the images for the featurizer. It gives the user 3 options: 1. Upload a CSV with URL pointers. 2. Upload an image directory with no CSV. The featurizer will generate a CSV automatically. 3. Upload a CSV with an image directory. The CSV will contain pointers to image in the direct...
[ 37811, 198, 1212, 2393, 7529, 351, 662, 36948, 262, 4263, 329, 262, 2218, 333, 7509, 13, 198, 198, 1026, 3607, 262, 2836, 513, 3689, 25, 198, 16, 13, 36803, 257, 44189, 351, 10289, 32007, 13, 198, 17, 13, 36803, 281, 2939, 8619, 351...
2.598162
6,092
class Rule: """Represents a single production rule of a grammar. Rules are usually written using some sort of BNF-like notation, for example, 'list ::= list item' would be a valid rule. A rule always has a single non-terminal symbol on the left and a list (possibly empty) of arbitrary symbols o...
[ 4871, 14330, 25, 198, 220, 220, 220, 37227, 6207, 6629, 257, 2060, 3227, 3896, 286, 257, 23491, 13, 198, 220, 220, 220, 220, 198, 220, 220, 220, 14252, 389, 3221, 3194, 1262, 617, 3297, 286, 347, 21870, 12, 2339, 33274, 11, 198, 220...
2.391519
1,415
""" Use previous output catalogs to investigate correct and incorrect images """ import logging import os import json import pandas as pd import numpy as np from astropy.io import fits from PIL import Image import matplotlib matplotlib.use('Agg') import matplotlib.pyplot as plt import seaborn as sns from tidalclassi...
[ 37811, 198, 11041, 2180, 5072, 18388, 82, 284, 9161, 3376, 290, 11491, 4263, 198, 37811, 198, 11748, 18931, 198, 11748, 28686, 198, 11748, 33918, 198, 198, 11748, 19798, 292, 355, 279, 67, 220, 198, 11748, 299, 32152, 355, 45941, 198, 6...
2.390498
863
''' 1. complete the missing data 2. convert the continous feature into discrete feature 3. one-hot encondes the discrete feature generated by the continous feature 4. one-hot encode all discrete feature ''' import csv import numpy as np from numpy import fabs, random from numpy.lib.function_base import percentile, sor...
[ 7061, 6, 198, 16, 13, 1844, 262, 4814, 1366, 198, 17, 13, 10385, 262, 1261, 516, 3895, 656, 28810, 3895, 198, 18, 13, 530, 12, 8940, 2207, 623, 274, 262, 28810, 3895, 7560, 416, 262, 1261, 516, 3895, 198, 19, 13, 530, 12, 8940, ...
2.935211
355
import sys #operator precedence table Precedence = { '|' : 0, #NFA Union Operator '.' : 1, #NFA Concat Operator '?' : 2, #NFA zero or one Operator '*' : 2, #NFA Closure Operator '+' : 2 #NFA one or more Operator }
[ 11748, 25064, 198, 198, 2, 46616, 38177, 3084, 198, 198, 6719, 771, 594, 796, 1391, 198, 197, 6, 91, 6, 1058, 657, 11, 1303, 45, 7708, 4479, 35946, 198, 197, 6, 2637, 1058, 352, 11, 1303, 45, 7708, 1482, 9246, 35946, 198, 197, 6, ...
2.563218
87
import converter import tkinter as tk from tkinter import messagebox as tkm import tkinter.font as tkf if __name__ == '__main__': # 创建主窗口 window = tk.Tk() window.title('B站 AV/BV号转换器') window.geometry('450x300') window.iconbitmap('BVid2Aid.ico') window.resizable(width=False, height=False) ...
[ 11748, 38394, 198, 11748, 256, 74, 3849, 355, 256, 74, 198, 6738, 256, 74, 3849, 1330, 3275, 3524, 355, 256, 13276, 198, 11748, 256, 74, 3849, 13, 10331, 355, 256, 74, 69, 198, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834,...
2.113798
703
import requests from usecases.screen.exceptions import UnknownResponseFormat STATUS_OK = "OK" STATUS_FAILED = "KO" INFORMATION_MISSING = "N/A"
[ 11748, 7007, 198, 198, 6738, 779, 33964, 13, 9612, 13, 1069, 11755, 1330, 16185, 31077, 26227, 198, 198, 35744, 2937, 62, 11380, 796, 366, 11380, 1, 198, 35744, 2937, 62, 7708, 4146, 1961, 796, 366, 22328, 1, 198, 1268, 35036, 62, 44,...
2.862745
51
import os import uproot3 as uproot import torch import torch.nn as nn import numpy as np from torch.utils.data import Dataset, DataLoader, Sampler from datetime import datetime from tqdm import tqdm data_dir = 'data/' node_features_list = ['trk_d0', 'trk_z0', 'trk_phi', 'trk_ctgtheta', 'trk_pt', 'trk_charge'] jet_feat...
[ 11748, 28686, 198, 11748, 510, 15763, 18, 355, 510, 15763, 198, 11748, 28034, 198, 11748, 28034, 13, 20471, 355, 299, 77, 198, 11748, 299, 32152, 355, 45941, 198, 6738, 28034, 13, 26791, 13, 7890, 1330, 16092, 292, 316, 11, 6060, 17401,...
2.403333
300
# Adapted from: https://github.com/rxn4chemistry/rxnfp/blob/master/nbs/10_results_uspto_1k_tpl.ipynb import pickle import click import tensorflow as tf from tensorflow import keras from tensorflow.keras import layers from sklearn.neural_network import MLPClassifier import numpy as np from pathlib import Path from typi...
[ 2, 30019, 276, 422, 25, 3740, 1378, 12567, 13, 785, 14, 40914, 77, 19, 15245, 4592, 14, 40914, 77, 46428, 14, 2436, 672, 14, 9866, 14, 77, 1443, 14, 940, 62, 43420, 62, 385, 457, 78, 62, 16, 74, 62, 83, 489, 13, 541, 2047, 65,...
2.444921
699
from django.conf.urls import url, include urlpatterns = [ url(r'', include("iiif_api_services.urls")), ]
[ 6738, 42625, 14208, 13, 10414, 13, 6371, 82, 1330, 19016, 11, 2291, 628, 198, 6371, 33279, 82, 796, 685, 198, 197, 6371, 7, 81, 6, 3256, 2291, 7203, 4178, 361, 62, 15042, 62, 30416, 13, 6371, 82, 4943, 828, 198, 60, 198 ]
2.571429
42
import os import logging import requests import json from string import Formatter, Template from datetime import datetime import satsearch.utils as utils import satsearch.config as config import traceback logger = logging.getLogger(__name__) class Scenes(object): """ A collection of Scene objects """ def...
[ 11748, 28686, 198, 11748, 18931, 198, 11748, 7007, 198, 11748, 33918, 198, 6738, 4731, 1330, 5178, 1436, 11, 37350, 198, 6738, 4818, 8079, 1330, 4818, 8079, 198, 11748, 3332, 12947, 13, 26791, 355, 3384, 4487, 198, 11748, 3332, 12947, 13,...
2.249434
1,768
#!/usr/bin/env python import json from vc3master.task import VC3Task
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 198, 11748, 33918, 198, 198, 6738, 410, 66, 18, 9866, 13, 35943, 1330, 26706, 18, 25714, 628, 220, 220, 220, 220, 220, 220, 220, 220, 628 ]
2.342857
35
import asyncio from fastapi_mail import FastMail, MessageSchema from app.core.celery_app import celery_app from app.core.config import settings @celery_app.task
[ 11748, 30351, 952, 198, 198, 6738, 3049, 15042, 62, 4529, 1330, 12549, 25804, 11, 16000, 27054, 2611, 198, 198, 6738, 598, 13, 7295, 13, 7015, 88, 62, 1324, 1330, 18725, 1924, 62, 1324, 198, 6738, 598, 13, 7295, 13, 11250, 1330, 6460,...
3.173077
52
""" 62 / 62 test cases passed. Runtime: 32 ms Memory Usage: 15 MB """
[ 37811, 198, 5237, 1220, 8190, 1332, 2663, 3804, 13, 198, 41006, 25, 3933, 13845, 198, 30871, 29566, 25, 1315, 10771, 198, 37811, 198 ]
3.043478
23
#!/usr/bin/env python3 # encoding: utf-8 # # Copyright (c) 2009 Doug Hellmann All rights reserved. # """ """ # flake8: noqa #end_pymotw_header import gettext gettext.install( 'example', 'locale', names=['ngettext'], ) print(_('This message is in the script.'))
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 2, 21004, 25, 3384, 69, 12, 23, 198, 2, 198, 2, 15069, 357, 66, 8, 3717, 15115, 5783, 9038, 1439, 2489, 10395, 13, 198, 2, 198, 37811, 198, 37811, 198, 2, 781, 539, 23, 25, ...
2.464286
112
from setuptools import setup, find_packages setup( name="spaceship", version="0.8.2", packages=find_packages(), install_requires=[ 'netifaces' ], url = 'https://github.com/antoan-angelov/spaceship/', author="Antoan Angelov", author_email="antoan.angelov+spaceship@gmail.com", ...
[ 6738, 900, 37623, 10141, 1330, 9058, 11, 1064, 62, 43789, 198, 198, 40406, 7, 198, 220, 220, 220, 1438, 2625, 2777, 2114, 1056, 1600, 198, 220, 220, 220, 2196, 2625, 15, 13, 23, 13, 17, 1600, 198, 220, 220, 220, 10392, 28, 19796, ...
2.626424
439
# simplest case: takes a single line and convert it to binary import sys import re # 15 bit addresses predefined_symbols = { 'THAT': '000000000000100', 'R14': '000000000001110', 'R15': '000000000001111', 'R12': '000000000001100', 'R13': '000000000001101', 'R10': '000000000001010', 'R11': '0...
[ 2, 24043, 1339, 25, 2753, 257, 2060, 1627, 290, 10385, 340, 284, 13934, 198, 11748, 25064, 198, 11748, 302, 198, 198, 2, 1315, 1643, 9405, 198, 28764, 18156, 62, 1837, 2022, 10220, 796, 1391, 198, 220, 220, 220, 705, 4221, 1404, 10354...
1.99503
1,006
# 使用import方式进行导入时,只能跟包名或模块名称 # import 包名 import calc2 # import 模块名 import package.module_a # import 包名+取别名 import package.module_b as mb # from 包名 import 模块名 # 使用from...import方式可以导入包、模块、函数、变量 from package import module_a print(package.module_a.a) print(mb.b) print(module_a.a) print(calc2.add(10, 20))
[ 2, 220, 45635, 18796, 101, 11748, 43095, 28156, 237, 32573, 249, 26193, 234, 43380, 120, 17739, 98, 33768, 114, 171, 120, 234, 20998, 103, 47797, 121, 164, 115, 253, 44293, 227, 28938, 235, 22755, 244, 162, 101, 94, 161, 251, 245, 289...
1.470874
206
import functools import time from django.db import connection, reset_queries from django.utils.deprecation import MiddlewareMixin
[ 11748, 1257, 310, 10141, 198, 11748, 640, 198, 198, 6738, 42625, 14208, 13, 9945, 1330, 4637, 11, 13259, 62, 421, 10640, 198, 6738, 42625, 14208, 13, 26791, 13, 10378, 8344, 341, 1330, 6046, 1574, 35608, 259, 198 ]
3.540541
37
# Copyright 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 in wr...
[ 2, 15069, 33448, 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, 198, 2, 921, 743, 733...
3.215385
585
#!/usr/bin/env python try: from setuptools import setup, find_packages except ImportError: raise RuntimeError('setuptools is required') DESCRIPTION = ('pvops is a python library for the analysis of ' + 'field collected operational data for photovoltaic systems.') LONG_DESCRIPTION = """ pvops i...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 198, 28311, 25, 198, 220, 220, 220, 422, 900, 37623, 10141, 1330, 9058, 11, 1064, 62, 43789, 198, 16341, 17267, 12331, 25, 198, 220, 220, 220, 5298, 43160, 12331, 10786, 2617, 37623, 1...
2.527149
884
from __future__ import print_function import os import sys import getopt from os import path from textwrap import dedent from retrying import retry from awsudo.config import CredentialResolver from awsudo.main import cleanEnvironment from boto.iam.connection import IAMConnection from boto.exception import BotoServerEr...
[ 6738, 11593, 37443, 834, 1330, 3601, 62, 8818, 198, 198, 11748, 28686, 198, 11748, 25064, 198, 11748, 651, 8738, 198, 6738, 28686, 1330, 3108, 198, 6738, 2420, 37150, 1330, 4648, 298, 198, 6738, 1005, 14992, 1330, 1005, 563, 198, 6738, ...
2.712452
779
import os import sys import subprocess import traceback import pexpect if False: # This is just needed so mypy will work; it's never executed. from typing import Optional # NOQA MY_DIR = os.path.abspath(os.path.dirname(__file__)) SAUCE_CONNECT_SH_PATH = os.path.join(MY_DIR, 'sauce_connect.sh') LOAD_SAUCE_C...
[ 11748, 28686, 198, 11748, 25064, 198, 11748, 850, 14681, 198, 11748, 12854, 1891, 198, 11748, 613, 87, 806, 198, 198, 361, 10352, 25, 198, 220, 220, 220, 1303, 770, 318, 655, 2622, 523, 616, 9078, 481, 670, 26, 340, 338, 1239, 10945, ...
2.407258
248
from __future__ import absolute_import, division, print_function from six.moves import range # -*- Mode: Python; c-basic-offset: 2; indent-tabs-mode: nil; tab-width: 8 -*- # # LIBTBX_SET_DISPATCHER_NAME cctbx.xfel.stripe_experiment # # Given an LCLS experiment results directory and a trial, group results by # run group...
[ 6738, 11593, 37443, 834, 1330, 4112, 62, 11748, 11, 7297, 11, 3601, 62, 8818, 198, 6738, 2237, 13, 76, 5241, 1330, 2837, 198, 2, 532, 9, 12, 10363, 25, 11361, 26, 269, 12, 35487, 12, 28968, 25, 362, 26, 33793, 12, 8658, 82, 12, ...
2.697328
3,294
from django.conf.urls import url from todos.views import TodoListCreateAPIView, TodoDetailAPIView urlpatterns = [ url(r'^$', TodoListCreateAPIView.as_view(), name="list"), url(r'^(?P<pk>[0-9]+)/$', TodoDetailAPIView.as_view(), name="detail"), ]
[ 6738, 42625, 14208, 13, 10414, 13, 6371, 82, 1330, 19016, 198, 6738, 284, 37427, 13, 33571, 1330, 309, 24313, 8053, 16447, 2969, 3824, 769, 11, 309, 24313, 11242, 603, 2969, 3824, 769, 198, 198, 6371, 33279, 82, 796, 685, 198, 220, 22...
2.364486
107
from typing import Optional from fastapi_camelcase import CamelModel from .common._unit_validators import dB_unit_check_validator, power_unit_validator from .signals.frequency import Frequency class GainFrequency(Gain): """[Gain at a single frequency] Arguments: f {Frequency} -- Single Frequency ...
[ 6738, 19720, 1330, 32233, 198, 198, 6738, 3049, 15042, 62, 66, 17983, 7442, 1330, 43281, 17633, 198, 198, 6738, 764, 11321, 13557, 20850, 62, 12102, 2024, 1330, 30221, 62, 20850, 62, 9122, 62, 12102, 1352, 11, 1176, 62, 20850, 62, 12102...
2.822485
338
# DATA TYPES, NUMBERS, OPERATIONS, TYPE CONVERSION, f-Strings # 1. Data Types # a. String # pulling out an element from the string = subscripting # the index starts from 0 to length-1 print("Hello"[3]) # b. Integer # large integers can be separated with _ print(199_000) # show 199000, but it makes it more readable...
[ 2, 42865, 24412, 47, 1546, 11, 36871, 33, 4877, 11, 43521, 18421, 11, 41876, 7102, 43717, 11, 277, 12, 13290, 654, 198, 198, 2, 352, 13, 6060, 24897, 198, 198, 2, 257, 13, 10903, 198, 2, 10427, 503, 281, 5002, 422, 262, 4731, 796,...
2.985554
623
# Generated by Django 2.0.7 on 2018-08-14 12:53 from django.db import migrations, models
[ 2, 2980, 515, 416, 37770, 362, 13, 15, 13, 22, 319, 2864, 12, 2919, 12, 1415, 1105, 25, 4310, 198, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 11, 4981, 628 ]
2.84375
32
#!/usr/bin/python # Standard library imports from datetime import datetime from optparse import OptionParser import os import sys import time from xml.sax.saxutils import escape as h # Some global variables svn_sep = "------------------------------------------------------------------------" cvs_sep = "----------------...
[ 2, 48443, 14629, 14, 8800, 14, 29412, 198, 2, 8997, 5888, 17944, 198, 6738, 4818, 8079, 1330, 4818, 8079, 198, 6738, 2172, 29572, 1330, 16018, 46677, 198, 11748, 28686, 198, 11748, 25064, 198, 11748, 640, 198, 6738, 35555, 13, 82, 897, ...
1.858954
8,834
"""Packaging settings.""" import sys import os from codecs import open from subprocess import call from setuptools import Command, find_packages, setup from pf9 import __version__ from os import path this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README.md'), encoding='ut...
[ 37811, 11869, 3039, 6460, 526, 15931, 198, 198, 11748, 25064, 198, 11748, 28686, 198, 6738, 40481, 82, 1330, 1280, 198, 6738, 850, 14681, 1330, 869, 198, 198, 6738, 900, 37623, 10141, 1330, 9455, 11, 1064, 62, 43789, 11, 9058, 198, 198,...
2.262226
1,186
memo = {0:0, 1:1} if __name__ == "__main__": print(f"\n0: {fib(0)}") print(f"\n1: {fib(1)}") print(f"\n5: {fib(5)}") print(f"\n10: {fib(10)}") #for k,v in memo.items(): print(f"{k}: {v}")
[ 11883, 78, 796, 1391, 15, 25, 15, 11, 352, 25, 16, 92, 628, 198, 361, 11593, 3672, 834, 6624, 366, 834, 12417, 834, 1298, 198, 220, 220, 220, 3601, 7, 69, 1, 59, 77, 15, 25, 1391, 69, 571, 7, 15, 38165, 4943, 198, 220, 220, ...
1.669291
127
# badges.py # # Application responds to users in the scene and updates the user avatar with name and badge updates. import argparse import yaml from arena import * from gstable import GoogleSheetTable DFT_CONFIG_FILENAME = './config.yaml' ACTUSERS = {} # actual users by camera id config = {} data = [] # pars...
[ 2, 37583, 13, 9078, 198, 2, 198, 2, 15678, 20067, 284, 2985, 287, 262, 3715, 290, 5992, 262, 2836, 30919, 351, 1438, 290, 23009, 5992, 13, 198, 11748, 1822, 29572, 198, 198, 11748, 331, 43695, 198, 6738, 13478, 1330, 1635, 198, 198, ...
2.880399
301
# -*- coding: utf-8 -*- """ legit.cli ~~~~~~~~~ This module povides the CLI interface to legit. """ import os import sys from subprocess import call from time import sleep import clint.resources from clint import args from clint.eng import join as eng_join from clint.textui import colored, puts, columns from .core...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 37811, 198, 1455, 270, 13, 44506, 198, 15116, 93, 198, 198, 1212, 8265, 279, 709, 1460, 262, 43749, 7071, 284, 6984, 13, 198, 37811, 198, 198, 11748, 28686, 198, ...
2.37555
8,180
#!/usr/bin/env python import sys import netsnmp import re import memcache import datetime import MySQLdb import time if __name__ == '__main__': mc = memcache.Client(['10.30.22.49:11216'], debug=0) timestamp = int(time.time()) # year = datetime.datetime.now().strftime("%y") # month = datetime.datetime...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 11748, 25064, 198, 11748, 31720, 77, 3149, 198, 11748, 302, 198, 11748, 1066, 23870, 198, 11748, 4818, 8079, 198, 11748, 33476, 9945, 198, 11748, 640, 628, 198, 198, 361, 11593, 3672, 83...
2.498339
301
import numpy as np import numpy.testing as npt import test_utils as tu
[ 11748, 299, 32152, 355, 45941, 198, 11748, 299, 32152, 13, 33407, 355, 299, 457, 198, 11748, 1332, 62, 26791, 355, 12777, 628 ]
3.272727
22
#!/usr/bin/env python """Non-Pedantic Time ================= .. moduleauthor:: Thomas Grenfell Smith <thomathom@gmail.com> Python's :mod:`datetime` module has many uses, but it has a difficulty: you can't do any arithmetic with :class:`datetime.time`. Only with :class:`datetime.datetime`. Now, there are good reason...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 37811, 15419, 12, 43468, 5109, 3862, 198, 4770, 28, 198, 198, 492, 8265, 9800, 3712, 5658, 19674, 23299, 4176, 1279, 400, 296, 32910, 31, 14816, 13, 785, 29, 198, 198, 37906, 338, 1058...
2.802241
1,785
#!/usr/bin/env python # coding=utf-8 ''' Author: BATU1579 Date: 2021-08-11 15:20:04 LastEditors: BATU1579 LastEditTime: 2021-08-16 22:33:54 Description: file content ''' import logging import library.const as g from time import sleep # 加载不同浏览器的驱动 if g.BROWSER == "edge": # edge驱动设置 from msedge.selenium_tools ...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 19617, 28, 40477, 12, 23, 198, 7061, 6, 198, 13838, 25, 37421, 52, 1314, 3720, 198, 10430, 25, 33448, 12, 2919, 12, 1157, 1315, 25, 1238, 25, 3023, 198, 5956, 18378, 669, 25, 37...
2.485822
529
import os import sys import glob import re from kivy.lang import Builder from kivy.event import EventDispatcher def resource_path(): """ PyInstaller対策。 """ if hasattr(sys, '_MEIPASS'): return os.path.join(sys._MEIPASS) return os.path.join(os.path.dirname(os.path.abspath(__fil...
[ 11748, 28686, 201, 198, 11748, 25064, 201, 198, 11748, 15095, 201, 198, 11748, 302, 201, 198, 6738, 479, 452, 88, 13, 17204, 1330, 35869, 201, 198, 6738, 479, 452, 88, 13, 15596, 1330, 8558, 7279, 8071, 2044, 201, 198, 201, 198, 201, ...
1.785219
433
import os import sys import boto from nose.tools import assert_in, assert_not_in, raises from moto import mock_s3 from radula import RadulaProxy, _parse_args, Radula, RadulaError TEST_BUCKET = "tests" here = os.path.dirname(os.path.realpath(__file__)) TEST_FILE = os.path.join(here, "testdata.txt") REMOTE_FILE = os.p...
[ 11748, 28686, 198, 11748, 25064, 198, 198, 11748, 275, 2069, 198, 6738, 9686, 13, 31391, 1330, 6818, 62, 259, 11, 6818, 62, 1662, 62, 259, 11, 12073, 198, 6738, 285, 2069, 1330, 15290, 62, 82, 18, 198, 6738, 2511, 4712, 1330, 5325, ...
2.360902
266
# coding=utf-8 # Copyright 2021 The Trax Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or a...
[ 2, 19617, 28, 40477, 12, 23, 198, 2, 15069, 33448, 383, 4759, 87, 46665, 13, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 2, 345, 743, 407, 779, 428, 2393, 2845, 287, ...
2.895197
2,290
import datetime as dt import BitcoinNewsProcessor as bitcoin_news import pandas as pd from matplotlib import pyplot as plt from sklearn import linear_model from sklearn.metrics import mean_absolute_error, explained_variance_score from sklearn.model_selection import train_test_split from sklearn.preprocessing import Im...
[ 11748, 4818, 8079, 355, 288, 83, 198, 198, 11748, 6185, 9980, 18709, 273, 355, 8550, 62, 10827, 198, 11748, 19798, 292, 355, 279, 67, 198, 6738, 2603, 29487, 8019, 1330, 12972, 29487, 355, 458, 83, 198, 6738, 1341, 35720, 1330, 14174, ...
3.006504
615
import tensorflow as tf import numpy as np import os import csv from tensorflow.python.framework import ops import warnings from sklearn.model_selection import train_test_split import loadCleanup warnings.filterwarnings("ignore") os.environ['TF_CPP_MIN_LOG_LEVEL'] = '3' ops.reset_default_graph() tf.flags.DEFINE_bo...
[ 11748, 11192, 273, 11125, 355, 48700, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 28686, 198, 198, 11748, 269, 21370, 198, 6738, 11192, 273, 11125, 13, 29412, 13, 30604, 1330, 39628, 198, 11748, 14601, 198, 198, 6738, 1341, 35720, 13,...
2.386528
965
from datetime import timedelta as dt import numpy as np import matplotlib.pyplot as plt from irise import convert, grid from irise.diagnostics import rossby_waves from myscripts.models.um import case_studies def main(cubes, xbins, ybins, xlabel, ylabel, **kwargs): """ """ # Load variables thetapv2 = c...
[ 6738, 4818, 8079, 1330, 28805, 12514, 355, 288, 83, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 198, 6738, 4173, 786, 1330, 10385, 11, 10706, 198, 6738, 4173, 786, 13, 47356, 34558, ...
2.371886
562
from itertools import * X = [] X.extend(list(map(int,input().split()))) X.extend(list(map(int,input().split()))) X.extend(list(map(int,input().split()))) Ans = 81 for P in permutations(range(1,10)): if sum(P[0:3]) == 15 and sum(P[3:6]) == 15 and sum(P[0::3]) == 15 and sum(P[1::3]) == 15 and P[0] + P[4] + P[8] == ...
[ 6738, 340, 861, 10141, 1330, 1635, 198, 198, 55, 796, 17635, 198, 55, 13, 2302, 437, 7, 4868, 7, 8899, 7, 600, 11, 15414, 22446, 35312, 3419, 22305, 198, 55, 13, 2302, 437, 7, 4868, 7, 8899, 7, 600, 11, 15414, 22446, 35312, 3419, ...
2.057143
210
############################################################################## # Copyright (c) 2013-2017, Lawrence Livermore National Security, LLC. # Produced at the Lawrence Livermore National Laboratory. # # This file is part of Spack. # Created by Todd Gamblin, tgamblin@llnl.gov, All rights reserved. # LLNL-CODE-64...
[ 29113, 29113, 7804, 4242, 2235, 198, 2, 15069, 357, 66, 8, 2211, 12, 5539, 11, 13914, 45036, 3549, 2351, 4765, 11, 11419, 13, 198, 2, 21522, 771, 379, 262, 13914, 45036, 3549, 2351, 18643, 13, 198, 2, 198, 2, 770, 2393, 318, 636, ...
1.926094
3,085
import fasttext import os
[ 11748, 3049, 5239, 198, 11748, 28686, 198 ]
3.714286
7
import logging from discord import RawReactionActionEvent as ReactionEvent from discord.ext import commands from discord.utils import get from cationbot.core.bot import Bot from cationbot.core.env import env class AutoRole(commands.Cog): """Add/Remove the tech/misc roles.""" @commands.Cog.listener() as...
[ 11748, 18931, 198, 198, 6738, 36446, 1330, 16089, 3041, 2673, 12502, 9237, 355, 39912, 9237, 198, 6738, 36446, 13, 2302, 1330, 9729, 198, 6738, 36446, 13, 26791, 1330, 651, 198, 198, 6738, 269, 341, 13645, 13, 7295, 13, 13645, 1330, 185...
2.968468
222
#!/usr/bin/env python3 import os import gzip import sys filename_vcf = sys.argv[1] gnomAD_list = dict() dirname_gnomAD = os.path.join(os.path.dirname(os.path.realpath(__file__)), '..', 'data') for tmp_filename in os.listdir(dirname_gnomAD): if not tmp_filename.endswith('vcf.gz'): ...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 11748, 28686, 198, 11748, 308, 13344, 198, 11748, 25064, 198, 198, 34345, 62, 85, 12993, 796, 25064, 13, 853, 85, 58, 16, 60, 198, 198, 4593, 296, 2885, 62, 4868, 796, 8633, 3419...
2.046296
864
with open("day04.txt") as f: data = [line for line in f] identity = lambda s: s anagram = lambda s: "".join(sorted(s)) print("2017 day 4 part 1: %d" % count_good_passwords(data, identity)) print("2017 day 4 part 2: %d" % count_good_passwords(data, anagram))
[ 198, 4480, 1280, 7203, 820, 3023, 13, 14116, 4943, 355, 277, 25, 198, 220, 220, 220, 1366, 796, 685, 1370, 329, 1627, 287, 277, 60, 198, 220, 220, 220, 5369, 796, 37456, 264, 25, 264, 198, 220, 220, 220, 281, 6713, 796, 37456, 264...
2.536364
110
import os from flask import Flask, got_request_exception from flask_jwt_extended.exceptions import JWTExtendedException from jwt.exceptions import PyJWTError from werkzeug.exceptions import HTTPException from sqlalchemy.exc import OperationalError from .apis import urls from .config.celery_config import CeleryConfig ...
[ 11748, 28686, 198, 198, 6738, 42903, 1330, 46947, 11, 1392, 62, 25927, 62, 1069, 4516, 198, 6738, 42903, 62, 73, 46569, 62, 2302, 1631, 13, 1069, 11755, 1330, 449, 54, 9328, 742, 1631, 16922, 198, 6738, 474, 46569, 13, 1069, 11755, 13...
3.019011
263
from setuptools import setup setup( name='k8s-deploy-external-dns', version='1.0.0', packages=['provider'], url='', license='', author='Filippo Ferrazini', author_email='filippo.ferrazini@gmail.com', description='' )
[ 6738, 900, 37623, 10141, 1330, 9058, 198, 198, 40406, 7, 198, 197, 3672, 11639, 74, 23, 82, 12, 2934, 1420, 12, 22615, 12, 67, 5907, 3256, 198, 197, 9641, 11639, 16, 13, 15, 13, 15, 3256, 198, 197, 43789, 28, 17816, 15234, 1304, 6...
2.456522
92
import torch from ..builder import BBOX_ASSIGNERS from ..iou_calculators import build_iou_calculator from .assign_result import AssignResult from .base_assigner import BaseAssigner from ...bbox.iou_calculators.iou2d_calculator import bbox_overlaps @BBOX_ASSIGNERS.register_module() class ATSSCostAssignerCenterAllTopk(...
[ 11748, 28034, 198, 198, 6738, 11485, 38272, 1330, 347, 39758, 62, 10705, 16284, 4877, 198, 6738, 11485, 72, 280, 62, 9948, 3129, 2024, 1330, 1382, 62, 72, 280, 62, 9948, 3129, 1352, 198, 6738, 764, 562, 570, 62, 20274, 1330, 2195, 570...
1.932343
5,720
#Programa Principal escreva('Gustavo Guanabará') escreva('Curso de Python no YouTube') escreva('CeV')
[ 198, 198, 2, 15167, 64, 32641, 198, 3798, 260, 6862, 10786, 38, 436, 615, 78, 42305, 397, 283, 6557, 11537, 198, 3798, 260, 6862, 10786, 26628, 568, 390, 11361, 645, 7444, 11537, 198, 3798, 260, 6862, 10786, 34, 68, 53, 11537 ]
2.512195
41
from application import app from application import decorators from flask import Blueprint, render_template from flask import request, session, redirect, url_for from run import gt from config import BOT_TOKEN from push_notifications import notification import gorbin_tools2 page = Blueprint('reg', __name__, ...
[ 6738, 3586, 1330, 598, 198, 6738, 3586, 1330, 11705, 2024, 198, 6738, 42903, 1330, 39932, 11, 8543, 62, 28243, 198, 6738, 42903, 1330, 2581, 11, 6246, 11, 18941, 11, 19016, 62, 1640, 198, 6738, 1057, 1330, 308, 83, 198, 6738, 4566, 13...
2.725543
736
#A generator is a programming object that produces (that is, generates) a sequence of values if __name__ == '__main__': main()
[ 2, 32, 17301, 318, 257, 8300, 2134, 326, 11073, 357, 5562, 318, 11, 18616, 8, 257, 8379, 286, 3815, 198, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 198, 220, 220, 220, 1388, 3419 ]
3.540541
37
#!/usr/bin/env python3 # -*- coding: utf-8 -*- from os.path import join, dirname, abspath
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 6738, 28686, 13, 6978, 1330, 4654, 11, 26672, 3672, 11, 2352, 6978, 628 ]
2.421053
38
import matplotlib.pyplot as plt from matplotlib import rcParams import numpy as np
[ 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 198, 6738, 2603, 29487, 8019, 1330, 48321, 10044, 4105, 198, 11748, 299, 32152, 355, 45941, 198 ]
3.192308
26
from ocp_resources.resource import NamespacedResource
[ 6738, 267, 13155, 62, 37540, 13, 31092, 1330, 28531, 32416, 26198, 628 ]
4.583333
12
import pygame import sys from pygame.sprite import Group from pygame.sprite import Sprite class Settings(): """A class that stores all settings.""" def __init__(self): """Initialize the game's settings.""" # Screen settings self.screen_width = 1200 self.screen_height = 800 ...
[ 198, 11748, 12972, 6057, 198, 11748, 25064, 198, 198, 6738, 12972, 6057, 13, 34975, 578, 1330, 4912, 198, 6738, 12972, 6057, 13, 34975, 578, 1330, 33132, 628, 198, 4871, 16163, 33529, 198, 220, 220, 220, 37227, 32, 1398, 326, 7000, 477,...
2.657713
1,452
from dataclasses import dataclass from datetime import datetime from typing import Optional @dataclass
[ 6738, 4818, 330, 28958, 1330, 4818, 330, 31172, 198, 6738, 4818, 8079, 1330, 4818, 8079, 198, 6738, 19720, 1330, 32233, 628, 198, 31, 19608, 330, 31172, 198 ]
3.888889
27
""" 时间:2020/9/22 作者:lurui 功能:k8s集群GPU节点打标签 """ import os import sys basedir = os.path.abspath('.') a = sys.argv[1] b = sys.argv[2] start_label_gpu(a, b)
[ 37811, 198, 33768, 114, 29785, 112, 171, 120, 248, 42334, 14, 24, 14, 1828, 198, 43291, 38519, 171, 120, 248, 75, 333, 9019, 198, 27950, 253, 47797, 121, 171, 120, 248, 74, 23, 82, 37239, 228, 163, 122, 97, 33346, 164, 232, 224, 1...
1.427273
110
# -*- coding: utf-8 -*- """ `USGS Emergency Data Distribution Network`_ services .. _USGS Emergency Data Distribution Network: http://eddn.usgs.gov/ """ from .core import decode, get_data
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 198, 220, 220, 220, 4600, 2937, 14313, 18154, 6060, 27484, 7311, 63, 62, 2594, 628, 198, 220, 220, 220, 11485, 4808, 2937, 14313, 18154, 6060, 27484, 7311, 25, 26...
3
66
import itertools from typing import Tuple, Union import matplotlib.pyplot as plt import numpy as np import seaborn as sns
[ 11748, 340, 861, 10141, 198, 6738, 19720, 1330, 309, 29291, 11, 4479, 198, 198, 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 384, 397, 1211, 355, 3013, 82, 628, 628 ]
3.15
40
from __future__ import print_function import argparse import time import json import grpc import helloworld_pb2 import helloworld_pb2_grpc service_config_json = json.dumps({ "methodConfig": [{ "name": [{ "service": "helloworld.Greeter", "method": "SayHello" }], "re...
[ 6738, 11593, 37443, 834, 1330, 3601, 62, 8818, 198, 198, 11748, 1822, 29572, 198, 11748, 640, 198, 11748, 33918, 198, 198, 11748, 1036, 14751, 198, 11748, 5968, 322, 1764, 62, 40842, 17, 198, 11748, 5968, 322, 1764, 62, 40842, 17, 62, ...
2.151329
489
from .api import AdflyApi __all__ = ['AdflyApi']
[ 6738, 764, 15042, 1330, 1215, 12254, 32, 14415, 198, 198, 834, 439, 834, 796, 37250, 2782, 12254, 32, 14415, 20520, 198 ]
2.380952
21
from __main__ import ( app, session, redirect, render_template, request, jsonify, uuid4, USERS, ) from json import ( dumps, ) # https://stackoverflow.com/questions/11994325/how-to-divide-flask-app-into-multiple-py-files ### LOGIN ### @app.route("/login") @app.route("/login", meth...
[ 6738, 11593, 12417, 834, 1330, 357, 198, 220, 220, 220, 598, 11, 198, 220, 220, 220, 6246, 11, 198, 220, 220, 220, 18941, 11, 198, 220, 220, 220, 8543, 62, 28243, 11, 198, 220, 220, 220, 2581, 11, 198, 220, 220, 220, 33918, 1958, ...
2.44
200
""" A queue is a data structure whose primary purpose is to store and return elements in First In First Out order. 1. [X] Implement the Queue class using an array as the underlying storage structure. Make sure the Queue tests pass. 2. [X] Re-implement the Queue class, this time using the linked list implementation ...
[ 37811, 198, 32, 16834, 318, 257, 1366, 4645, 3025, 4165, 4007, 318, 284, 3650, 290, 198, 7783, 4847, 287, 3274, 554, 3274, 3806, 1502, 13, 220, 198, 16, 13, 685, 55, 60, 48282, 262, 4670, 518, 1398, 1262, 281, 7177, 355, 262, 10238,...
3.69382
356
from django.apps import AppConfig
[ 6738, 42625, 14208, 13, 18211, 1330, 2034, 16934, 628 ]
3.888889
9
""" Follow up for N-Queens problem. Now, instead outputting board configurations, return the total number of distinct solutions. """ # @return an integer # First remember this is diff to a normal cheesboard, # placing a n*n chess board # input 1, expect 1 but not 8 # Keep in mind the way to use se...
[ 37811, 198, 7155, 510, 329, 399, 12, 15681, 641, 1917, 13, 198, 198, 3844, 11, 2427, 5072, 889, 3096, 25412, 11, 1441, 262, 2472, 1271, 286, 7310, 8136, 13, 198, 37811, 198, 220, 220, 220, 1303, 2488, 7783, 281, 18253, 628, 220, 220...
3.40404
99
"""Contains all classes related to the Character Bazaar sections in Tibia.com""" import datetime import logging import re import urllib.parse from typing import Dict, List, Optional import bs4 from tibiapy import InvalidContent, Sex, Vocation, abc from tibiapy.abc import BaseCharacter from tibiapy.enums import (Aucti...
[ 37811, 4264, 1299, 477, 6097, 3519, 284, 262, 15684, 347, 34485, 9004, 287, 16653, 544, 13, 785, 37811, 198, 11748, 4818, 8079, 198, 11748, 18931, 198, 11748, 302, 198, 11748, 2956, 297, 571, 13, 29572, 198, 6738, 19720, 1330, 360, 713,...
2.343844
20,614
num = list() pos = 0 while True: num.append(int(input("Digite um valor: "))) option = " " while option not in "SN": option = str(input("Quer continuar? [S/N]: ")).upper().strip()[0] if option == "N": break print("="*30) print(f"Você digitou a seguinte lista {num}") print(f"Foram digi...
[ 198, 198, 22510, 796, 1351, 3419, 198, 1930, 796, 657, 198, 4514, 6407, 25, 198, 220, 220, 220, 997, 13, 33295, 7, 600, 7, 15414, 7203, 19511, 578, 23781, 1188, 273, 25, 366, 22305, 628, 220, 220, 220, 3038, 796, 366, 366, 198, 22...
2.107143
308
""" Django settings for myproject project. Generated by 'django-admin startproject' using Django 2.2. For more information on this file, see https://docs.djangoproject.com/en/2.2/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/2.2/ref/settings/ """ import os im...
[ 37811, 198, 35, 73, 14208, 6460, 329, 616, 16302, 1628, 13, 198, 198, 8645, 515, 416, 705, 28241, 14208, 12, 28482, 923, 16302, 6, 1262, 37770, 362, 13, 17, 13, 198, 198, 1890, 517, 1321, 319, 428, 2393, 11, 766, 198, 5450, 1378, ...
2.232346
2,634
""" Evaluate min. no. train examples to edit to flip test prediction. """ import os import sys import time import hashlib import argparse import resource from datetime import datetime import numpy as np import seaborn as sns import matplotlib.pyplot as plt from scipy.stats import sem from sklearn.metrics import log_lo...
[ 37811, 198, 36, 2100, 4985, 949, 13, 645, 13, 4512, 6096, 284, 4370, 284, 14283, 1332, 17724, 13, 198, 37811, 198, 11748, 28686, 198, 11748, 25064, 198, 11748, 640, 198, 11748, 12234, 8019, 198, 11748, 1822, 29572, 198, 11748, 8271, 198...
3.135135
185
#!/usr/bin/env python3 import json import time from env import env from run_common import AWSCli from run_common import print_message from run_common import print_session options, args = dict(), list() if __name__ == "__main__": from run_common import parse_args options, args = parse_args() #############...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 11748, 33918, 198, 11748, 640, 198, 198, 6738, 17365, 1330, 17365, 198, 6738, 1057, 62, 11321, 1330, 30865, 2601, 72, 198, 6738, 1057, 62, 11321, 1330, 3601, 62, 20500, 198, 6738, ...
3.093023
344
import Sofa import particle # optionnally, script can create a graph...
[ 11748, 1406, 13331, 198, 11748, 18758, 628, 198, 197, 2, 3038, 77, 453, 11, 4226, 460, 2251, 257, 4823, 986, 628, 198 ]
3.5
22
import abc import numpy as np __all__ = ['LeafLineSearcher']
[ 11748, 450, 66, 198, 198, 11748, 299, 32152, 355, 45941, 628, 198, 834, 439, 834, 796, 37250, 3123, 1878, 13949, 50, 50194, 20520, 628, 198 ]
2.64
25
import pytest import spacy from replacy import ReplaceMatcher nlp = spacy.load("en_core_web_sm") # They read us the stories they themselves had written. match_dict = { "match-1": { "patterns": [[ {"LOWER": {"IN": ["they", "she"]}}, {"LEMMA": "read", "TEMPLATE_ID": 1}, ...
[ 11748, 12972, 9288, 198, 11748, 599, 1590, 198, 198, 6738, 2186, 1590, 1330, 40177, 19044, 2044, 198, 198, 21283, 79, 796, 599, 1590, 13, 2220, 7203, 268, 62, 7295, 62, 12384, 62, 5796, 4943, 198, 198, 2, 1119, 1100, 514, 262, 3923, ...
2.200792
1,768
#!/usr/bin/env python3 """ Module to compute positive exons in the bloom filter as follos: - abyss-bloom kmers to get bed coordinates of each transcriptomic kmer in the BF - bedtools merge to join overlapping consecutive intervals by k-1bases - awk to throw away too short intervales (to avoid FPs) - bedtools merge to ...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 198, 37811, 198, 26796, 284, 24061, 3967, 409, 684, 287, 262, 29955, 8106, 355, 22752, 418, 25, 198, 12, 37678, 12, 2436, 4207, 10571, 364, 284, 651, 3996, 22715, 286, 1123, 14687,...
2.394449
1,189
from typing import List, Optional from littlelambocoin.consensus.block_record import BlockRecord from littlelambocoin.consensus.blockchain_interface import BlockchainInterface from littlelambocoin.consensus.constants import ConsensusConstants from littlelambocoin.types.blockchain_format.classgroup import ClassgroupEle...
[ 6738, 19720, 1330, 7343, 11, 32233, 198, 198, 6738, 1310, 2543, 65, 25634, 259, 13, 5936, 7314, 13, 9967, 62, 22105, 1330, 9726, 23739, 198, 6738, 1310, 2543, 65, 25634, 259, 13, 5936, 7314, 13, 9967, 7983, 62, 39994, 1330, 29724, 393...
2.11549
3,273