content
stringlengths
1
1.04M
input_ids
listlengths
1
774k
ratio_char_token
float64
0.38
22.9
token_count
int64
1
774k
from os import path
[ 6738, 28686, 1330, 3108, 628 ]
4.2
5
import pygame if __name__ == '__main__': import sys sys.exit(main(sys.argv[1]))
[ 11748, 12972, 6057, 201, 198, 201, 198, 201, 198, 201, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 201, 198, 220, 220, 220, 1330, 25064, 201, 198, 220, 220, 220, 25064, 13, 37023, 7, 12417, 7, 17597, 13, 853, 85, ...
2
49
# -*- coding: utf-8 -*- import os from lxml import etree as xml_parser from dependencies_result import DependenciesResult from dependency import Dependency from helper import convert_dictionaries_to_csv, check_file_exists # find dependencies # main if __name__ == '__main__': main()
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 11748, 28686, 198, 198, 6738, 300, 19875, 1330, 2123, 631, 355, 35555, 62, 48610, 198, 198, 6738, 20086, 62, 20274, 1330, 37947, 3976, 23004, 198, 6738, 20203, 1330, ...
3.159574
94
from sqlalchemy import Column, ForeignKey, Integer, String from sqlalchemy.orm import relationship from base import Base from iso_metadata import ISOMetadata
[ 6738, 44161, 282, 26599, 1330, 29201, 11, 8708, 9218, 11, 34142, 11, 10903, 198, 6738, 44161, 282, 26599, 13, 579, 1330, 2776, 198, 198, 6738, 2779, 1330, 7308, 198, 6738, 47279, 62, 38993, 1330, 3180, 2662, 316, 14706, 628 ]
4.102564
39
"""Leonardos Monorail https://adventofcode.com/2016/day/12 - four registers (a, b, c, and d) that start at 0 and can hold any integer - cpy x y copies x (either an integer or the value of a register) into register y. - inc x increases the value of register x by one. - dec x decreases the value of register x by...
[ 37811, 36185, 446, 418, 2892, 273, 603, 198, 198, 5450, 1378, 324, 1151, 1659, 8189, 13, 785, 14, 5304, 14, 820, 14, 1065, 198, 198, 12, 1440, 28441, 357, 64, 11, 275, 11, 269, 11, 290, 288, 8, 220, 198, 220, 326, 923, 379, 657,...
2.830986
355
import librosa import librosa.filters import math import numpy as np from scipy import signal from hparams import hparams from scipy.io import wavfile import lws def inv_spectrogram(spectrogram): '''Converts spectrogram to waveform using librosa''' S = _db_to_amp(_denormalize(spectrogram) + hparams.ref_...
[ 11748, 9195, 4951, 64, 198, 11748, 9195, 4951, 64, 13, 10379, 1010, 198, 11748, 10688, 198, 11748, 299, 32152, 355, 45941, 198, 6738, 629, 541, 88, 1330, 6737, 198, 6738, 289, 37266, 1330, 289, 37266, 198, 6738, 629, 541, 88, 13, 952,...
2.65
220
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.apps import AppConfig from django.utils.translation import ugettext_lazy as _
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 6738, 11593, 37443, 834, 1330, 28000, 1098, 62, 17201, 874, 198, 198, 6738, 42625, 14208, 13, 18211, 1330, 2034, 16934, 198, 6738, 42625, 14208, 13, 26791, 13, 41519,...
2.962264
53
import tensorflow as tf import tflearn import numpy as np from .utils import Network from .base_networks import VTN, VoxelMorph, VTNAffineStem from .spatial_transformer import Dense3DSpatialTransformer, Fast3DTransformer from .trilinear_sampler import TrilinearSampler def mask_metrics(seg1, seg2): ''' Given two ...
[ 11748, 11192, 273, 11125, 355, 48700, 198, 11748, 256, 27919, 1501, 198, 11748, 299, 32152, 355, 45941, 198, 198, 6738, 764, 26791, 1330, 7311, 198, 6738, 764, 8692, 62, 3262, 5225, 1330, 32751, 45, 11, 28035, 417, 44, 13425, 11, 32751,...
2.202105
475
""" """ from lists_and_dicts import * from methods_and_classes import * import numpy as np import pandas as pd import matplotlib.pyplot as plt from matplotlib import ticker import seaborn as sns import hvplot import panel as pn import plotly.express as px import xarray as xr import hvplot.xarray # noqa import hvplot.p...
[ 37811, 198, 198, 37811, 198, 6738, 8341, 62, 392, 62, 11600, 82, 1330, 1635, 198, 6738, 5050, 62, 392, 62, 37724, 1330, 1635, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 19798, 292, 355, 279, 67, 198, 11748, 2603, 29487, 8019, 13,...
2.788876
881
"""Constants for Met component.""" from homeassistant.components.weather import ( ATTR_CONDITION_CLEAR_NIGHT, ATTR_CONDITION_CLOUDY, ATTR_CONDITION_FOG, ATTR_CONDITION_LIGHTNING_RAINY, ATTR_CONDITION_PARTLYCLOUDY, ATTR_CONDITION_POURING, ATTR_CONDITION_RAINY, ATTR_CONDITION_SNOWY, AT...
[ 37811, 34184, 1187, 329, 3395, 7515, 526, 15931, 198, 6738, 1363, 562, 10167, 13, 5589, 3906, 13, 23563, 1330, 357, 198, 220, 220, 220, 5161, 5446, 62, 10943, 35, 17941, 62, 29931, 1503, 62, 45, 9947, 11, 198, 220, 220, 220, 5161, 5...
1.929577
2,982
# Trabajo Machine Learning # @authors: Vicente Cifre, Mikel Ardanaz import numpy as np import re import scipy.io.matlab as matlab import matplotlib.pyplot as plt from sklearn.mixture import GaussianMixture from sklearn.cluster import KMeans from sklearn.ensemble import RandomForestClassifier, AdaBoostClassifier, ExtraT...
[ 2, 833, 397, 34944, 10850, 18252, 198, 2, 2488, 41617, 25, 24017, 21872, 327, 361, 260, 11, 4995, 75, 943, 25604, 1031, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 302, 198, 11748, 629, 541, 88, 13, 952, 13, 6759, 23912, 355, 26...
2.211243
8,147
# Copyright 2019 Kakao Brain # # Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. # # This source code is licensed under the BSD license found in the # LICENSE file in the root directory of this source tree. """Provides isolated namespace of skip tensors.""" import abc from functools import total_o...
[ 2, 15069, 13130, 31250, 5488, 14842, 198, 2, 198, 2, 15069, 357, 66, 8, 3203, 11, 3457, 13, 290, 663, 29116, 13, 1439, 2489, 10395, 13, 198, 2, 198, 2, 770, 2723, 2438, 318, 11971, 739, 262, 347, 10305, 5964, 1043, 287, 262, 198, ...
3.392361
288
from __future__ import annotations from typing import Optional, List from Branches.Actions.Action import Action from Branches.Actions.Actions import Actions from Branches.Actions.Issuer.IssueBuilder import IssueBuilder from Branches.Actions.Topicer.TopicBuilder import TopicBuilder from VersionControl.Branch import Br...
[ 6738, 11593, 37443, 834, 1330, 37647, 198, 198, 6738, 19720, 1330, 32233, 11, 7343, 198, 198, 6738, 1709, 12140, 13, 32, 2733, 13, 12502, 1330, 7561, 198, 6738, 1709, 12140, 13, 32, 2733, 13, 32, 2733, 1330, 24439, 198, 6738, 1709, 12...
4.167939
131
from os import walk f = [] for (dirpath, dirnames, filenames) in walk("/Users/uli/Desktop"): f.extend(filenames) break print f
[ 6738, 28686, 1330, 2513, 198, 198, 69, 796, 17635, 198, 1640, 357, 15908, 6978, 11, 26672, 14933, 11, 1226, 268, 1047, 8, 287, 2513, 7203, 14, 14490, 14, 32176, 14, 36881, 1, 2599, 198, 220, 220, 220, 277, 13, 2302, 437, 7, 10379, ...
2.446429
56
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations, models
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 6738, 11593, 37443, 834, 1330, 28000, 1098, 62, 17201, 874, 198, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 11, 4981, 628 ]
2.891892
37
try: from pandas.plotting._converter import DatetimeConverter except ImportError: from pandas.tseries.converter import DatetimeConverter from .pandas_vb_common import * import pandas as pd import datetime as dt try: import pandas.tseries.holiday except ImportError: pass from pandas.tseries.frequencies i...
[ 28311, 25, 198, 220, 220, 220, 422, 19798, 292, 13, 29487, 889, 13557, 1102, 332, 353, 1330, 16092, 8079, 3103, 332, 353, 198, 16341, 17267, 12331, 25, 198, 220, 220, 220, 422, 19798, 292, 13, 912, 10640, 13, 1102, 332, 353, 1330, 1...
3.195122
164
print('-'*20) print('{:-^40}'.format('LOJAS SUPER BARATÃO')) print('-'*20) total=0 maiormil=0 mais_barato=0 cont=0 barato='' while True: nome=str(input("Nome do produto ")).upper() preco=float(input('Preço R$ ')) cont+=1 if cont==1: mais_barato=preco barato=nome else: if prec...
[ 4798, 10786, 19355, 9, 1238, 8, 198, 4798, 10786, 90, 21912, 61, 1821, 92, 4458, 18982, 10786, 21982, 41, 1921, 33088, 31597, 1404, 5746, 46, 6, 4008, 198, 4798, 10786, 19355, 9, 1238, 8, 198, 23350, 28, 15, 198, 76, 1872, 579, 346,...
1.997468
395
#-*-coding: utf-8-*- from itertools import product from sys import argv from optparse import OptionParser as opt from codecs import open as copen from time import strftime as time from lib import * from hashlib import md5, sha1, sha224, sha256, sha384, sha3_224, sha3_256, sha3_384, sha3_512, sha512 getDate = lambda: ti...
[ 2, 12, 9, 12, 66, 7656, 25, 3384, 69, 12, 23, 12, 9, 12, 198, 6738, 340, 861, 10141, 1330, 1720, 198, 6738, 25064, 1330, 1822, 85, 198, 6738, 2172, 29572, 1330, 16018, 46677, 355, 2172, 198, 6738, 40481, 82, 1330, 1280, 355, 2243,...
2.441718
163
""" Defines the possible rewards for rollout. Can be augmented for more complex policies using simialr scheme as Rollout or UCT policies. Is defined through CLI in the Tree script. """ class RolloutRewards(object): """ Defines penalty and rewards for the rollout if it's in the chasis. """ def __repr__...
[ 37811, 198, 7469, 1127, 262, 1744, 11530, 329, 38180, 13, 198, 6090, 307, 30259, 329, 517, 3716, 4788, 1262, 985, 498, 81, 7791, 355, 8299, 448, 393, 471, 4177, 4788, 13, 198, 3792, 5447, 832, 43749, 287, 262, 12200, 4226, 13, 198, ...
3.158192
177
import os os.environ["CUDA_DEVICE_ORDER"] = "PCI_BUS_ID" import torch import torch.nn as nn import numpy as np import pandas as pd from utils import load_data from utils import EarlyStopping, set_random_seed from utils import train, validate from preprocess_gene import get_STRING_graph, get_predefine_cluster...
[ 11748, 28686, 201, 198, 201, 198, 418, 13, 268, 2268, 14692, 43633, 5631, 62, 7206, 27389, 62, 12532, 1137, 8973, 796, 366, 5662, 40, 62, 45346, 62, 2389, 1, 201, 198, 11748, 28034, 201, 198, 11748, 28034, 13, 20471, 355, 299, 77, 2...
2.630303
165
import torch from e3nn.tensor.irrep_tensor import IrrepTensor from e3nn import rs, o3
[ 11748, 28034, 198, 6738, 304, 18, 20471, 13, 83, 22854, 13, 343, 7856, 62, 83, 22854, 1330, 5686, 7856, 51, 22854, 198, 6738, 304, 18, 20471, 1330, 44608, 11, 267, 18, 628 ]
2.71875
32
#! /usr/bin/python3 # -*- coding: utf-8 -*- # # # riak_python_update.py # # Feb/09/2015 # # ------------------------------------------------------------------ import cgi import sys # import json # sys.path.append ('/var/www/data_base/common/python_common') # from cgi_manipulate import parse_parameter # from riak_ma...
[ 2, 0, 1220, 14629, 14, 8800, 14, 29412, 18, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 198, 2, 198, 2, 197, 380, 461, 62, 29412, 62, 19119, 13, 9078, 198, 2, 198, 2, 197, 197, 197, 197, 197, 15146...
3.218954
306
#!/usr/bin/env python3 import sys with open(sys.argv[1], "r") as f: lines = [l for l in f.read().split("\n") if l] ilist = [] imap = {} total = 0 result = 0 other = 0 while True: x = 0 y = 0 rot = 90 for l in lines: a = l[0] v = int(l[1:]) if a == "N": y +=...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 198, 11748, 25064, 198, 198, 4480, 1280, 7, 17597, 13, 853, 85, 58, 16, 4357, 366, 81, 4943, 355, 277, 25, 198, 220, 220, 220, 3951, 796, 685, 75, 329, 300, 287, 277, 13, 961...
1.620743
646
# -*- coding: utf-8 -*- """ Created on Sun Jan 11 18:39:41 2015 @author: nymph """ import sys if __name__ == '__main__': # Part 2 wordCount = word_count(sys.argv[1]) print_dict(wordCount) topK = top_k(10, wordCount) print_dict(wordCount) # Part 3 wordCount2 = word_count_2() pri...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 198, 41972, 319, 3825, 2365, 1367, 1248, 25, 2670, 25, 3901, 1853, 198, 198, 31, 9800, 25, 299, 20896, 198, 37811, 198, 11748, 25064, 198, 198, 361, 11593, 3672, ...
2.019417
309
import torch import torch.nn.functional as F # regression # hand mask loss # huawei dataset
[ 11748, 28034, 198, 11748, 28034, 13, 20471, 13, 45124, 355, 376, 628, 198, 2, 20683, 198, 198, 2, 1021, 9335, 2994, 628, 198, 2, 289, 84, 38247, 27039 ]
3.428571
28
import logging from flask import Flask from .views import auth, main, photos log = logging.getLogger(__name__) def create_http_app(config): """ Create new http application with selected config :param config: Object config for app :return: Http application """ app = Flask(__name__) app....
[ 11748, 18931, 198, 198, 6738, 42903, 1330, 46947, 198, 198, 6738, 764, 33571, 1330, 6284, 11, 1388, 11, 5205, 198, 198, 6404, 796, 18931, 13, 1136, 11187, 1362, 7, 834, 3672, 834, 8, 628, 198, 4299, 2251, 62, 4023, 62, 1324, 7, 1125...
2.869369
222
""" @author: Gabriele Girelli @contact: gigi.ga90@gmail.com """ from copy import copy from ifpd2.const import DEFAULT_DATABASE_INDEX_BIN_SIZE import logging from os.path import isdir, isfile from typing import Any, Dict, List, Set
[ 37811, 198, 31, 9800, 25, 12300, 5034, 293, 402, 557, 15516, 198, 31, 32057, 25, 12526, 72, 13, 4908, 3829, 31, 14816, 13, 785, 198, 37811, 198, 198, 6738, 4866, 1330, 4866, 198, 6738, 611, 30094, 17, 13, 9979, 1330, 5550, 38865, 62...
2.841463
82
from UQpy.surrogates.kriging.correlation_models.baseclass.Correlation import *
[ 6738, 471, 48, 9078, 13, 11793, 3828, 689, 13, 74, 4359, 278, 13, 10215, 49501, 62, 27530, 13, 8692, 4871, 13, 10606, 49501, 1330, 1635, 628 ]
3.076923
26
from .gen_cloud import gen_word_cloud
[ 6738, 764, 5235, 62, 17721, 1330, 2429, 62, 4775, 62, 17721 ]
3.363636
11
# # btf_to_manifest.py # # Extract the kernel functions which takes skb as an argument # from BTF information and generate the ipftrace manifest file # # Usage: # $ pahole -JV /lib/modules/`uname -r`/build/vmlinux # $ bpftool -j btf dump file /lib/modules/`uname -r`/build/vmlinux | python btf_to_manifest.py # import s...
[ 2, 198, 2, 275, 27110, 62, 1462, 62, 805, 8409, 13, 9078, 198, 2, 198, 2, 29677, 262, 9720, 5499, 543, 2753, 1341, 65, 355, 281, 4578, 198, 2, 422, 347, 10234, 1321, 290, 7716, 262, 20966, 701, 16740, 10561, 2393, 198, 2, 198, 2...
2.2173
474
class InvalidAdjacencyMatrixException(Exception): """docstring for InvalidAdjacencyMatrixException""" pass
[ 4871, 17665, 2782, 30482, 1387, 46912, 16922, 7, 16922, 2599, 198, 197, 37811, 15390, 8841, 329, 17665, 2782, 30482, 1387, 46912, 16922, 37811, 198, 197, 6603, 198 ]
4.037037
27
#!/usr/bin/env python from __future__ import division import rospy from std_msgs.msg import Float64 from std_msgs.msg import Empty from std_msgs.msg import Int8MultiArray, Int16 from pololu import PololuController, WeightedAverage DRIVE_INDEX = 0 YAW_INDEX = 1 <<<<<<< HEAD newFrontAvg = self.frontWeightedAvg.g...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 6738, 11593, 37443, 834, 1330, 7297, 198, 11748, 686, 2777, 88, 198, 6738, 14367, 62, 907, 14542, 13, 19662, 1330, 48436, 2414, 198, 6738, 14367, 62, 907, 14542, 13, 19662, 1330, 33523, ...
2.199161
477
# !/usr/bin/env python # -- coding: utf-8 -- # @Author zengxiaohui # Datatime:8/20/2021 4:09 PM # @File:APR import copy from PIL import Image, ImageOps, ImageEnhance import io import random from PIL import Image import numpy as np def int_parameter(level, maxval): """Helper function to scale `val` between 0 and m...
[ 2, 5145, 14, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 1377, 19617, 25, 3384, 69, 12, 23, 1377, 198, 2, 2488, 13838, 1976, 1516, 36072, 1219, 9019, 198, 2, 16092, 265, 524, 25, 23, 14, 1238, 14, 1238, 2481, 604, 25, 2931, 3122, ...
2.665698
688
deps = { "ACT": { "url": "https://github.com/EQAditu/AdvancedCombatTracker/releases/download/3.4.6.267/ACTv3.zip", "dest": "plugin/ThirdParty/ACT", "strip": 0, "hash": ["sha256", "adf13a38d0938ce90f8e674f8365b227d933b91636ddf72b26c85702f6e3b808"], }, "OverlayPlugin": {...
[ 10378, 82, 796, 1391, 201, 198, 220, 220, 220, 366, 10659, 1298, 1391, 201, 198, 220, 220, 220, 220, 220, 220, 220, 366, 6371, 1298, 366, 5450, 1378, 12567, 13, 785, 14, 36, 48, 2782, 34272, 14, 28809, 38667, 35694, 14, 260, 29329, ...
1.897516
322
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. { 'name': 'Point of Sale', 'version': '1.0.1', 'category': 'Sales/Point of Sale', 'sequence': 40, 'summary': 'User-friendly PoS interface for shops and restaurants', 'description': "", 'depend...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 2142, 286, 10529, 2238, 13, 4091, 38559, 24290, 2393, 329, 1336, 6634, 290, 15665, 3307, 13, 198, 198, 90, 198, 220, 220, 220, 705, 3672, 10354, 705, 12727, 286, 16...
2.304674
2,803
from core.world.area import Area from core.world.level import Level, LevelStub from core.world.region import Region from core.world.room import Room
[ 6738, 4755, 13, 6894, 13, 20337, 1330, 9498, 198, 6738, 4755, 13, 6894, 13, 5715, 1330, 5684, 11, 5684, 1273, 549, 198, 6738, 4755, 13, 6894, 13, 36996, 1330, 17718, 198, 6738, 4755, 13, 6894, 13, 3823, 1330, 10096, 198 ]
3.725
40
from setuptools import setup setup(name='the_beyond', version='0.01', description='Data Processing Tools for Machine Learning and Data Analysis.', url='https://github.com/2yan/the_beyond', author='Ryan Francis', author_email='2yan@outlook.com', license='MIT', packages=['the_be...
[ 6738, 900, 37623, 10141, 1330, 9058, 198, 198, 40406, 7, 3672, 11639, 1169, 62, 1350, 3243, 3256, 198, 220, 220, 220, 220, 220, 2196, 11639, 15, 13, 486, 3256, 198, 220, 220, 220, 220, 220, 6764, 11639, 6601, 28403, 20003, 329, 10850,...
2.526316
152
import wx import wx.adv try: from kikit.plugin import importAllPlugins importAllPlugins() except ImportError: dialog = MissingKiKitDialog() dialog.Show() if __name__ == "__main__": # Run test dialog app = wx.App() dialog = MissingKiKitDialog() dialog.ShowModal()
[ 11748, 266, 87, 198, 11748, 266, 87, 13, 32225, 628, 198, 28311, 25, 198, 220, 220, 220, 422, 479, 1134, 270, 13, 33803, 1330, 1330, 3237, 23257, 1040, 628, 220, 220, 220, 1330, 3237, 23257, 1040, 3419, 198, 16341, 17267, 12331, 25, ...
2.586207
116
def sortedSquaredArrayNormal(array): """ This function takes in a sorted array and return another sorted array which is formed by squared of elements in the input array. O(nlogn) time complexity and O(n) space complexity. args: --------- array : sorted array with numbers output: --------- array : which con...
[ 198, 4299, 23243, 22266, 1144, 19182, 26447, 7, 18747, 2599, 198, 197, 37811, 770, 2163, 2753, 287, 257, 23243, 7177, 290, 1441, 1194, 23243, 7177, 220, 198, 197, 4758, 318, 7042, 416, 44345, 286, 4847, 287, 262, 5128, 7177, 13, 440, ...
3.021786
459
#!/usr/bin/env python # -*- coding: utf-8 -*- # SPDX-License-Identifier: Apache-2.0 # SPDX-FileCopyrightText: © 2021 Massachusetts Institute of Technology. # SPDX-FileCopyrightText: © 2021 Lee McCuller <mcculler@mit.edu> # NOTICE: authors should document their contributions in concisely in NOTICE # with details inline ...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 30628, 55, 12, 34156, 12, 33234, 7483, 25, 24843, 12, 17, 13, 15, 198, 2, 30628, 55, 12, 8979, 15269, 8206, 25, ...
3.497537
203
# Python program to perform binary search using iterations # Learn more about this algorithm here: https://www.khanacademy.org/computing/computer-science/algorithms/binary-search/a/binary-search arr = [0,3,5,7,20,99,100] item = 20 position = binary_search(arr, item) print(f"Item {item} found at position {position}")
[ 2, 11361, 1430, 284, 1620, 13934, 2989, 1262, 34820, 198, 2, 14365, 517, 546, 428, 11862, 994, 25, 3740, 1378, 2503, 13, 74, 7637, 330, 324, 3065, 13, 2398, 14, 785, 48074, 14, 33215, 12, 16801, 14, 282, 7727, 907, 14, 39491, 12, ...
3.158416
101
import sys import signal import time signal.signal(signal.SIGINT, ignore) signal.signal(signal.SIGTERM, ignore) while True: print(time.time()) time.sleep(1)
[ 11748, 25064, 198, 11748, 6737, 198, 11748, 640, 198, 198, 12683, 282, 13, 12683, 282, 7, 12683, 282, 13, 50, 3528, 12394, 11, 8856, 8, 198, 12683, 282, 13, 12683, 282, 7, 12683, 282, 13, 50, 3528, 5781, 44, 11, 8856, 8, 198, 198,...
2.470588
68
def resolve(): ''' code here ''' import collections import itertools N = int(input()) Ss = [input()[0] for _ in range(N)] march_letter = [item for item in Ss if item in ['M', 'A', 'R', 'C', 'H']] march_cnt = collections.Counter(march_letter) if len(march_cnt) < 3: res =...
[ 4299, 10568, 33529, 198, 220, 220, 220, 705, 7061, 198, 220, 220, 220, 2438, 994, 198, 220, 220, 220, 705, 7061, 198, 220, 220, 220, 1330, 17268, 198, 220, 220, 220, 1330, 340, 861, 10141, 198, 220, 220, 220, 399, 796, 493, 7, 154...
2.138462
260
#!/usr/bin/env python import rospy import VL53L0X from sensor_msgs.msg import Range if __name__ == '__main__': node = Sensors() node.run()
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 198, 11748, 686, 2777, 88, 198, 11748, 569, 43, 4310, 43, 15, 55, 198, 6738, 12694, 62, 907, 14542, 13, 19662, 1330, 13667, 198, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 83...
2.42623
61
# Generated by Django 3.1.4 on 2021-01-05 00:37 from django.db import migrations
[ 2, 2980, 515, 416, 37770, 513, 13, 16, 13, 19, 319, 33448, 12, 486, 12, 2713, 3571, 25, 2718, 198, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 628 ]
2.766667
30
import torch import torch.utils.data as Data x = torch.linspace(1, 10, 10) # x data (torch tensor) y = torch.linspace(20, 1, 10) # y data (torch tensor) metrics1 = { 'y_pred': [x,y,x] } metrics2 = { 'y_pred': [y,x,y] } if __name__ == '__main__': batch_sum = torch.tensor([], device='cpu') ...
[ 11748, 28034, 198, 11748, 28034, 13, 26791, 13, 7890, 355, 6060, 198, 198, 87, 796, 28034, 13, 21602, 10223, 7, 16, 11, 838, 11, 838, 8, 220, 220, 220, 220, 220, 220, 1303, 2124, 1366, 357, 13165, 354, 11192, 273, 8, 198, 88, 796,...
2.246106
321
#!/usr/bin/env python # -*- coding:utf-8 -*- ''' @author: alishtory @site: https://github.com/alishtory @file: ServerManager.py @time: 2017/3/7 15:28 @description: 多用户版本中,启动、关闭、更新流量的管理模块 ''' import logging, threading from abc import ABCMeta, abstractmethod from server_pool import ServerPool from shadowsocks import eve...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 532, 9, 12, 19617, 25, 40477, 12, 23, 532, 9, 12, 198, 7061, 6, 198, 31, 9800, 25, 435, 680, 83, 652, 198, 31, 15654, 25, 3740, 1378, 12567, 13, 785, 14, 282, 680, 83, 652, ...
2.178808
151
""" MorphologicalSkeleton ===================== **MorphologicalSkeleton** thins an image into a single-pixel wide skeleton. See `this tutorial <https://scikit-image.org/docs/0.14.x/auto_examples/xx_applications/plot_morphology.html#skeletonize>`__ for more information. | ============ ============ =============== Sup...
[ 37811, 198, 44, 13425, 2770, 50, 38800, 198, 4770, 1421, 28, 198, 198, 1174, 44, 13425, 2770, 50, 38800, 1174, 294, 1040, 281, 2939, 656, 257, 2060, 12, 32515, 3094, 18328, 13, 4091, 4600, 5661, 11808, 1279, 5450, 1378, 36216, 15813, ...
3.296703
182
from datetime import datetime import inspect import xmlrpc.client import os import robot.api.logger as log from robot.libraries.BuiltIn import BuiltIn draw_rects_on_screenshots = True try: from PIL import Image, ImageDraw except ModuleNotFoundError as e: log.warn(f"Pillow not found, drawing rectangles on scre...
[ 6738, 4818, 8079, 1330, 4818, 8079, 198, 11748, 10104, 198, 11748, 35555, 81, 14751, 13, 16366, 198, 11748, 28686, 198, 198, 11748, 9379, 13, 15042, 13, 6404, 1362, 355, 2604, 198, 6738, 9379, 13, 75, 11127, 13, 39582, 818, 1330, 28477,...
3.190722
194
# # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not...
[ 2, 198, 2, 49962, 284, 262, 24843, 10442, 5693, 357, 1921, 37, 8, 739, 530, 198, 2, 393, 517, 18920, 5964, 11704, 13, 220, 4091, 262, 28536, 2393, 198, 2, 9387, 351, 428, 670, 329, 3224, 1321, 198, 2, 5115, 6634, 9238, 13, 220, ...
2.262931
1,856
import math import numpy as np import tensorflow_probability as tfp from TrainSetGenerator import TrainSetGenerator from scipy.io import wavfile tfd = tfp.distributions class TestSetGenerator(TrainSetGenerator): """ The TestSetGenerator consumes pre-merged files. Provided X is a list of merged files, Y a c...
[ 11748, 10688, 198, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 11192, 273, 11125, 62, 1676, 65, 1799, 355, 256, 46428, 198, 198, 6738, 16835, 7248, 8645, 1352, 1330, 16835, 7248, 8645, 1352, 198, 6738, 629, 541, 88, 13, 952, 1330, ...
2.389105
1,028
# pylint: disable=C0302 """ Manage VMware vCenter servers and ESXi hosts. .. versionadded:: 2015.8.4 :codeauthor: Alexandru Bleotu <alexandru.bleotu@morganstaley.com> Dependencies ============ - pyVmomi Python Module - ESXCLI pyVmomi ------- PyVmomi can be installed via pip: .. code-block:: bash pip install...
[ 2, 279, 2645, 600, 25, 15560, 28, 34, 15, 22709, 198, 37811, 198, 5124, 496, 37754, 410, 23656, 9597, 290, 13380, 42528, 11453, 13, 198, 198, 492, 2196, 29373, 3712, 1853, 13, 23, 13, 19, 198, 198, 25, 8189, 9800, 25, 21000, 622, ...
2.539851
5,370
# -*- coding: utf-8 -*- # # Authors: Tomi Jylhä-Ollila, Finland 2013-2019 # Toni Ruottu, Finland 2013-2014 # # This file is part of Kunquat. # # CC0 1.0 Universal, http://creativecommons.org/publicdomain/zero/1.0/ # # To the extent possible under law, Kunquat Affirmers have waived all # copyright and related ...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 2, 198, 2, 46665, 25, 4186, 72, 449, 2645, 71, 11033, 12, 46, 297, 10102, 11, 17837, 2211, 12, 23344, 198, 2, 220, 220, 220, 220, 220, 220, 220, 220, 220, 309...
2.927602
221
import os os.environ['MPLBACKEND'] = 'template' import sys import pytest import importlib import clmm #@pytest.fixture(scope="module", params=["ccl", "nc", "ct", "notabackend", "testnotabackend"]) @pytest.fixture(scope="module", params=[{'nick': 'ccl', 'cosmo_reltol': 8.0e-8, 'dataops_reltol': 3.0e-8, 'theory_reltol':...
[ 11748, 28686, 198, 418, 13, 268, 2268, 17816, 44, 6489, 31098, 10619, 20520, 796, 705, 28243, 6, 198, 11748, 25064, 198, 11748, 12972, 9288, 198, 11748, 1330, 8019, 198, 11748, 537, 3020, 198, 198, 2, 31, 9078, 9288, 13, 69, 9602, 7, ...
1.723794
601
# -*- coding: utf-8 -*- from azure.storage.blob import BlockBlobService import UtilityHelper
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 6738, 35560, 495, 13, 35350, 13, 2436, 672, 1330, 9726, 3629, 672, 16177, 198, 11748, 34030, 47429 ]
2.967742
31
#!/bin/python3 # PYTHON_ARGCOMPLETE_OK # coding=utf-8 # ------------------------------------------------------------------------------ # Created on September 29 11:03 2021 # (c) Copyright 2021 Micro Focus or one of its affiliates. # ------------------------------------------------------------------------------ import a...
[ 2, 48443, 8800, 14, 29412, 18, 198, 2, 350, 56, 4221, 1340, 62, 1503, 38, 41335, 9328, 62, 11380, 198, 2, 19617, 28, 40477, 12, 23, 198, 2, 16529, 26171, 198, 2, 15622, 319, 2693, 2808, 1367, 25, 3070, 33448, 198, 2, 357, 66, 8,...
3.610329
426
from django.contrib import admin from django.urls import path,include from . import views from django.conf import settings from django.conf.urls.static import static urlpatterns=[ path('login',views.login,name='login'), path('logout',views.logout,name='logout'), path('register',views.register,name='registe...
[ 6738, 42625, 14208, 13, 3642, 822, 1330, 13169, 198, 6738, 42625, 14208, 13, 6371, 82, 1330, 3108, 11, 17256, 198, 6738, 764, 1330, 5009, 198, 6738, 42625, 14208, 13, 10414, 1330, 6460, 198, 6738, 42625, 14208, 13, 10414, 13, 6371, 82, ...
2.963855
249
# Remember to put FFMPEG in variable path import math import os import cv2 import ffmpeg from src.constants import frame_size_threshold
[ 2, 11436, 284, 1234, 18402, 7378, 7156, 287, 7885, 3108, 198, 198, 11748, 10688, 198, 11748, 28686, 198, 198, 11748, 269, 85, 17, 198, 11748, 31246, 43913, 198, 198, 6738, 12351, 13, 9979, 1187, 1330, 5739, 62, 7857, 62, 400, 10126, 6...
3.302326
43
#!/usr/bin/env python import os, sys from os.path import dirname, abspath os.environ['DJANGO_SETTINGS_MODULE'] = 'test_settings' parent = dirname(dirname(dirname(abspath(__file__)))) sys.path.insert(0, parent) from django.test.simple import DjangoTestSuiteRunner if __name__ == '__main__': DjangoTestSuiteRunne...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 198, 11748, 28686, 11, 25064, 198, 6738, 28686, 13, 6978, 1330, 26672, 3672, 11, 2352, 6978, 198, 198, 418, 13, 268, 2268, 17816, 35028, 1565, 11230, 62, 28480, 51, 20754, 62, 33365, 2...
2.688312
154
#!/bin/env python3 if __name__ == "__main__": DemoProject()
[ 2, 48443, 8800, 14, 24330, 21015, 18, 628, 198, 198, 361, 11593, 3672, 834, 6624, 366, 834, 12417, 834, 1298, 198, 220, 220, 220, 34588, 16775, 3419, 198 ]
2.392857
28
import pytest EXPLORATION_TYPES = "ParameterNoise GaussianNoise".split(" ") @pytest.fixture @pytest.fixture( params=EXPLORATION_TYPES, ids=tuple(s.split(".")[-1] for s in EXPLORATION_TYPES), )
[ 11748, 12972, 9288, 198, 198, 6369, 6489, 1581, 6234, 62, 9936, 47, 1546, 796, 366, 36301, 2949, 786, 12822, 31562, 2949, 786, 1911, 35312, 7203, 366, 8, 628, 198, 31, 9078, 9288, 13, 69, 9602, 628, 198, 31, 9078, 9288, 13, 69, 9602...
2.225806
93
from thefuck.specific.git import git_support @git_support @git_support
[ 6738, 262, 31699, 13, 11423, 13, 18300, 1330, 17606, 62, 11284, 628, 198, 31, 18300, 62, 11284, 628, 198, 31, 18300, 62, 11284, 198 ]
3.125
24
if False: pass DEFAULT_TIMEOUT = 10 logger = logging.getLogger("graphql.errors") class GraphQLDeciderBackend(GraphQLCachedBackend): """GraphQLDeciderBackend will offload the document generation to the main backend in a new thread, serving meanwhile the document from the fallback backend""" _worker = None fa...
[ 361, 10352, 25, 198, 197, 6603, 198, 7206, 38865, 62, 34694, 12425, 796, 838, 198, 6404, 1362, 796, 18931, 13, 1136, 11187, 1362, 7203, 34960, 13976, 13, 48277, 4943, 198, 4871, 29681, 9711, 10707, 1304, 7282, 437, 7, 37065, 48, 5639, ...
3.055556
252
""" ARMA Model =============================================================================== Overview ------------------------------------------------------------------------------- This module contains ARMA models using SciPy's minimization method. Examples -------------------------------------------------------...
[ 37811, 198, 198, 1503, 5673, 9104, 198, 23926, 25609, 18604, 198, 198, 29064, 198, 10097, 24305, 198, 198, 1212, 8265, 4909, 5923, 5673, 4981, 1262, 10286, 20519, 338, 10356, 1634, 2446, 13, 198, 198, 27730, 198, 10097, 24305, 198, 198, ...
2.100353
3,119
import matplotlib.pyplot as plt from matplotlib import style style.use("bmh") #style.use("classic") #style.use("dark_background") x1=[2,4,8] y1=[4,8,24] x2=[3,6,9] y2=[10,15,30] plt.plot(x1,y1) plt.plot(x2,y2) plt.title("Test") plt.xlabel("Time(s)") plt.ylabel("Force(N)") plt.show()
[ 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 198, 6738, 2603, 29487, 8019, 1330, 3918, 198, 198, 7635, 13, 1904, 7203, 20475, 71, 4943, 198, 2, 7635, 13, 1904, 7203, 49421, 4943, 198, 2, 7635, 13, 1904, 7203, 21953, 62, ...
1.914474
152
import copy import itertools from puzzle import SolutionError, DIGITS, BANDS, ROW_ITER, COL_ITER, BLOCK_ITER def update_peers(puzzle, row, col, val, unit_type=''): """Remove a value from the candidate lists of a cell's peers. If removing a candidate solves a cell, recursively update that cell's peers. ...
[ 11748, 4866, 198, 11748, 340, 861, 10141, 198, 198, 6738, 15027, 1330, 28186, 12331, 11, 360, 3528, 29722, 11, 347, 1565, 5258, 11, 371, 3913, 62, 2043, 1137, 11, 20444, 62, 2043, 1137, 11, 9878, 11290, 62, 2043, 1137, 628, 198, 4299,...
2.129619
3,464
from flask import Flask from flask_sqlalchemy import SQLAlchemy from flask_migrate import Migrate from flask_login import LoginManager from config import AppConfig app = Flask(__name__) app.config.from_object(AppConfig) db = SQLAlchemy(app) migrate = Migrate(app, db) login_manager = LoginManager(app) login_manager...
[ 6738, 42903, 1330, 46947, 198, 6738, 42903, 62, 25410, 282, 26599, 1330, 16363, 2348, 26599, 198, 6738, 42903, 62, 76, 42175, 1330, 337, 42175, 198, 6738, 42903, 62, 38235, 1330, 23093, 13511, 198, 198, 6738, 4566, 1330, 2034, 16934, 198,...
3.226087
115
import json import logging import os from datetime import datetime
[ 11748, 33918, 198, 11748, 18931, 198, 11748, 28686, 198, 6738, 4818, 8079, 1330, 4818, 8079, 628 ]
4.25
16
import Gramatica as g import tablasimbolos as TS from expresiones import * from instrucciones import * from reporteAST import * listaInstrucciones = [] #Metodos para graficar el ast
[ 11748, 20159, 1512, 64, 355, 308, 198, 11748, 7400, 21921, 14107, 349, 418, 355, 26136, 198, 6738, 1033, 411, 295, 274, 1330, 1635, 198, 6738, 916, 622, 535, 295, 274, 1330, 1635, 198, 6738, 989, 68, 11262, 1330, 1635, 198, 198, 4868,...
2.344086
93
# (C) Datadog, Inc. 2020-present # All rights reserved # Licensed under a 3-clause BSD style license (see LICENSE) from .....utils.time import get_timestamp def get_time_elapsed(check, metric_name, modifiers, global_options): """ This sends the number of seconds elapsed from a time in the past as a `gauge`. ...
[ 2, 357, 34, 8, 16092, 324, 519, 11, 3457, 13, 12131, 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, 6738, 11485, 986, 26791, 13, 2435, 133...
2.979592
147
# File: utils/plotters.py """Functions to assist with plotting. """ from la_funding_analysis import PROJECT_DIR from la_funding_analysis.utils.jitter_functions import jitter import pandas as pd import numpy as np import matplotlib.pyplot as plt import matplotlib.ticker as mtick # STACKED HORIZONTAL BAR PLOTS def s...
[ 2, 9220, 25, 3384, 4487, 14, 29487, 1010, 13, 9078, 198, 37811, 24629, 2733, 284, 3342, 351, 29353, 13, 198, 37811, 198, 6738, 8591, 62, 25032, 62, 20930, 1330, 21965, 23680, 62, 34720, 198, 6738, 8591, 62, 25032, 62, 20930, 13, 26791...
2.326865
5,617
# -*- coding = utf-8 -*- # @Time : 2021/8/1 13:23 # @Author : 水神与月神 # @File : GetNoBurstFile.py # @Software : PyCharm import os import datetime # %% path_log = r"G:\CulgooraData\log\1994-2015合并时间分割.xlsx" path_image = r"G:\LearmonthData\learmonth_pics2\{:0>2d}" file_name_format = "LM{:0>2d}{:0>2d}{:0>2d}.srs.png" data...
[ 2, 532, 9, 12, 19617, 796, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 2488, 7575, 1058, 33448, 14, 23, 14, 16, 1511, 25, 1954, 198, 2, 2488, 13838, 1058, 10545, 108, 112, 15351, 10310, 236, 17312, 230, 15351, 198, 2, 2488, 8979, 1058...
2.11405
605
from tensorflow.keras import backend from tensorflow.keras.callbacks import ModelCheckpoint import os import json
[ 6738, 11192, 273, 11125, 13, 6122, 292, 1330, 30203, 198, 6738, 11192, 273, 11125, 13, 6122, 292, 13, 13345, 10146, 1330, 9104, 9787, 4122, 198, 198, 11748, 28686, 198, 11748, 33918, 628 ]
3.625
32
import timeit import time import random from typing import Union import matplotlib.pyplot as plt from tqdm import tqdm from binary_search_tree import BinarySearchTree if __name__ == "__main__": data: dict[str, list[Union[float, int]]] = {"n": [], "time": []} lst = list(range(0, 20000)) # random.shuffle...
[ 11748, 640, 270, 198, 11748, 640, 198, 11748, 4738, 198, 6738, 19720, 1330, 4479, 198, 198, 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 198, 6738, 256, 80, 36020, 1330, 256, 80, 36020, 198, 198, 6738, 13934, 62, 12947, 62...
2.020668
629
from __future__ import absolute_import from __future__ import division from __future__ import print_function import re import random import json __all__ = ['moga'] TPL = """ ================================================================================ MOGA summary ================================...
[ 6738, 11593, 37443, 834, 1330, 4112, 62, 11748, 201, 198, 6738, 11593, 37443, 834, 1330, 7297, 201, 198, 6738, 11593, 37443, 834, 1330, 3601, 62, 8818, 201, 198, 201, 198, 11748, 302, 201, 198, 11748, 4738, 201, 198, 11748, 33918, 201, ...
2.082189
21,852
import os import json import time import base64 from selenium import webdriver from selenium.webdriver.chrome.options import Options from django.utils.translation import ugettext_lazy as _ from .settings import * MODULE_PATH = os.path.abspath(__file__) # Get path of current module file (modules.py file) DIR_PAT...
[ 11748, 28686, 198, 11748, 33918, 198, 11748, 640, 198, 11748, 2779, 2414, 198, 198, 6738, 384, 11925, 1505, 1330, 3992, 26230, 198, 6738, 384, 11925, 1505, 13, 12384, 26230, 13, 46659, 13, 25811, 1330, 18634, 198, 6738, 42625, 14208, 13, ...
2.415592
1,629
# -*- coding: utf-8 -*- import json import argparse import time import os from utils import parse_dis_data, batchify_dis_data, make_batch_inputs, parse_pred_data from datasets import Dataset from transformers import BertTokenizer, PreTrainedModel, BertModel, BertConfig from transformers import Trainer, TrainingArgumen...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 11748, 33918, 198, 11748, 1822, 29572, 198, 11748, 640, 198, 11748, 28686, 198, 6738, 3384, 4487, 1330, 21136, 62, 6381, 62, 7890, 11, 15458, 1958, 62, 6381, 62, 78...
2.561376
1,279
"""Top-level package for Daltons.""" __author__ = """LINHD POSTDATA Project""" __email__ = 'info@linhd.uned.es' __version__ = '0.0.1'
[ 37811, 9126, 12, 5715, 5301, 329, 360, 2501, 684, 526, 15931, 198, 198, 834, 9800, 834, 796, 37227, 34509, 10227, 24582, 26947, 4935, 37811, 198, 834, 12888, 834, 796, 705, 10951, 31, 2815, 31298, 13, 40881, 13, 274, 6, 198, 834, 9641...
2.596154
52
# -*- coding: utf-8 -*- # # Copyright (C) 2020 CESNET # # oarepo-s3 is free software; you can redistribute it and/or modify it # under the terms of the MIT License; see LICENSE file for more details. """Pytest configuration.""" from __future__ import absolute_import, print_function import hashlib import os import shut...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 198, 2, 15069, 357, 34, 8, 12131, 42700, 12884, 198, 2, 198, 2, 267, 533, 7501, 12, 82, 18, 318, 1479, 3788, 26, 345, 460, 17678, 4163, 340, 290, 14, 273, 13096...
2.247808
5,932
# Time: 0.19 s dp = [1] for i in range(int(input())): dp.append(sum(dp[-6:]) % 1000000007) print(dp[-1])
[ 2, 3862, 25, 657, 13, 1129, 264, 198, 26059, 796, 685, 16, 60, 198, 1640, 1312, 287, 2837, 7, 600, 7, 15414, 28955, 2599, 198, 197, 26059, 13, 33295, 7, 16345, 7, 26059, 58, 12, 21, 25, 12962, 4064, 1802, 10535, 22, 8, 198, 4798...
2.038462
52
import FWCore.ParameterSet.Config as cms from RecoEgamma.EgammaElectronProducers.gsfElectronSequence_cff import * from RecoEgamma.EgammaElectronProducers.uncleanedOnlyElectronSequence_cff import * from RecoEgamma.EgammaPhotonProducers.photonSequence_cff import * from RecoEgamma.EgammaPhotonProducers.conversionSequence...
[ 11748, 48849, 14055, 13, 36301, 7248, 13, 16934, 355, 269, 907, 198, 198, 6738, 3311, 78, 36, 28483, 2611, 13, 36, 28483, 2611, 19453, 1313, 11547, 7999, 13, 14542, 69, 19453, 1313, 44015, 594, 62, 66, 487, 1330, 1635, 198, 6738, 3311...
2.626428
2,013
# Generated by Django 2.0.7 on 2018-07-26 10:15 from django.conf import settings from django.db import migrations, models import django.db.models.deletion
[ 2, 2980, 515, 416, 37770, 362, 13, 15, 13, 22, 319, 2864, 12, 2998, 12, 2075, 838, 25, 1314, 198, 198, 6738, 42625, 14208, 13, 10414, 1330, 6460, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 11, 4981, 198, 11748, 42625, 1420...
3.019231
52
import conf import errors from model import display, autocommit from api import get, post, delete, AdminApi, put from api.check_params import check_params from api.validator import IntRange, String, TokenId, List, Choose, LocalizedName, ModelId, Visibility, Integer from api.admin.role import TokenAdmin, TokenAccount, T...
[ 11748, 1013, 198, 11748, 8563, 198, 6738, 2746, 1330, 3359, 11, 1960, 420, 2002, 270, 198, 6738, 40391, 1330, 651, 11, 1281, 11, 12233, 11, 32053, 32, 14415, 11, 1234, 198, 6738, 40391, 13, 9122, 62, 37266, 1330, 2198, 62, 37266, 198,...
3.696078
204
#coding=utf-8 #!/bin/python3 SEP = "/" INPUT_DATA_FOLDER = "library-in-files" INPUT_DATA_FILES = [ "a_example", # 7 days "e_so_many_books", # 200 days "f_libraries_of_the_world" # 700 days "b_read_on", # 1000 days "d_tough_choices", # 30001 days "c_incunabula", # 100000 days ] INPUT_DATA_...
[ 2, 66, 7656, 28, 40477, 12, 23, 198, 2, 48443, 8800, 14, 29412, 18, 198, 198, 5188, 47, 796, 12813, 1, 198, 1268, 30076, 62, 26947, 62, 37, 3535, 14418, 796, 366, 32016, 12, 259, 12, 16624, 1, 198, 1268, 30076, 62, 26947, 62, 46...
2.132701
211
#!/usr/bin/env python3 from setuptools import setup, find_packages with open("README.md", "r") as fh: long_description = fh.read() setup( name='miidl', version='0.0.5', description='A Python package for microbial biomarkers identification powered by interpretable deep learning', url='https://githu...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 198, 6738, 900, 37623, 10141, 1330, 9058, 11, 1064, 62, 43789, 198, 198, 4480, 1280, 7203, 15675, 11682, 13, 9132, 1600, 366, 81, 4943, 355, 277, 71, 25, 198, 220, 220, 220, 890,...
2.407328
464
#!/usr/bin/env python3 from sys import ps1 import rospy import numpy as np from os import system import time import threading import Microcontroller_Manager_Serial as Serial import IMU_Functions as IMU import Pressure_Functions as Pressure import Modem_Functions as Modem import threading import time from time import...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 198, 6738, 25064, 1330, 26692, 16, 198, 11748, 686, 2777, 88, 198, 11748, 299, 32152, 355, 45941, 198, 6738, 28686, 1330, 1080, 198, 11748, 640, 198, 11748, 4704, 278, 198, 11748, ...
3.146667
225
# AMZ-Driverless # Copyright (c) 2019 Authors: # - Huub Hendrikx <hhendrik@ethz.ch> # # 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 ...
[ 2, 3001, 57, 12, 32103, 1203, 198, 2, 220, 15069, 357, 66, 8, 13130, 46665, 25, 198, 2, 220, 220, 532, 11256, 549, 14666, 12602, 87, 1279, 71, 15631, 12602, 31, 2788, 89, 13, 354, 29, 198, 2, 198, 2, 2448, 3411, 318, 29376, 7520...
3.688761
347
import datetime import json import logging import os import sys import time from urllib.parse import urlparse import boto3 import click import numpy as np import pandas as pd logging.basicConfig( format="[%(asctime)s] %(message)s", level=logging.INFO, datefmt="%Y-%m-%d %H:%M:%S" ) timeout_seconds = 10800 SEED = 1...
[ 11748, 4818, 8079, 198, 11748, 33918, 198, 11748, 18931, 198, 11748, 28686, 198, 11748, 25064, 198, 11748, 640, 198, 6738, 2956, 297, 571, 13, 29572, 1330, 19016, 29572, 198, 198, 11748, 275, 2069, 18, 198, 11748, 3904, 198, 11748, 299, ...
2.509923
3,779
s = "" i = 0 while i < 777: s += '*' i += 1 print(s)
[ 82, 796, 13538, 198, 72, 796, 657, 198, 198, 4514, 1312, 1279, 35534, 25, 198, 220, 220, 220, 264, 15853, 705, 9, 6, 198, 220, 220, 220, 1312, 15853, 352, 198, 198, 4798, 7, 82, 8 ]
1.722222
36
from typing import Generic, Any, TypeVar, Optional, Dict, Union from unipipeline.message.uni_message import UniMessage from unipipeline.worker.uni_worker_consumer_manager import UniWorkerConsumerManager from unipipeline.worker.uni_worker_consumer_message import UniWorkerConsumerMessage TInputMessage = TypeVar('TInput...
[ 6738, 19720, 1330, 42044, 11, 4377, 11, 5994, 19852, 11, 32233, 11, 360, 713, 11, 4479, 198, 198, 6738, 555, 541, 541, 4470, 13, 20500, 13, 35657, 62, 20500, 1330, 43376, 12837, 198, 6738, 555, 541, 541, 4470, 13, 28816, 13, 35657, ...
3.62069
116
# -------------- # Importing header files import numpy as np import pandas as pd from scipy.stats import mode import warnings warnings.filterwarnings('ignore') #Reading file bank_data = pd.read_csv(path) #step1 #Code starts here bank=pd.DataFrame(bank_data) #print(bank) categorical_var=bank.sele...
[ 2, 220, 26171, 198, 2, 17267, 278, 13639, 3696, 201, 198, 11748, 299, 32152, 355, 45941, 201, 198, 11748, 19798, 292, 355, 279, 67, 201, 198, 6738, 629, 541, 88, 13, 34242, 1330, 4235, 220, 201, 198, 220, 201, 198, 11748, 14601, 201...
2.280936
598
INPUT_TO_MERGE_EDGES = [("dwi_file", "in1"), ("fmap_file", "in2")] MERGE_TO_MRCAT_EDGES = [("out", "in_files")] MRCAT_TO_SDC_EDGES = [("out_file", "in_file")] # INPUT_TO_SDC_EDGES = [("dwi_pe_dir", "pe_dir")] SDC_TO_OUTPUT_EDGES = [("out_file", "dwi_preproc")]
[ 1268, 30076, 62, 10468, 62, 29296, 8264, 62, 1961, 48075, 796, 685, 7203, 67, 37686, 62, 7753, 1600, 366, 259, 16, 12340, 5855, 69, 8899, 62, 7753, 1600, 366, 259, 17, 4943, 60, 198, 29296, 8264, 62, 10468, 62, 44, 7397, 1404, 62, ...
1.905109
137
# Generated by Django 3.1.7 on 2021-03-06 05:09 from django.db import migrations, models
[ 2, 2980, 515, 416, 37770, 513, 13, 16, 13, 22, 319, 33448, 12, 3070, 12, 3312, 8870, 25, 2931, 198, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 11, 4981, 628 ]
2.84375
32
# coding: utf-8 from django import forms from django.template.loader import render_to_string from django.core.mail import EmailMultiAlternatives from decouple import config from evoluirmais.core.models import Subscription
[ 2, 19617, 25, 3384, 69, 12, 23, 198, 6738, 42625, 14208, 1330, 5107, 198, 6738, 42625, 14208, 13, 28243, 13, 29356, 1330, 8543, 62, 1462, 62, 8841, 198, 6738, 42625, 14208, 13, 7295, 13, 4529, 1330, 9570, 29800, 23081, 2929, 198, 6738...
3.571429
63
from django.urls import path from django.urls.conf import include from . import views from django.contrib.auth import views as auth_views urlpatterns = [ path('login/',auth_views.LoginView.as_view(template_name='registration/login.html'),name='login'), path('logout_page/',views.logout_page,name='logout_pa...
[ 6738, 42625, 14208, 13, 6371, 82, 1330, 3108, 198, 6738, 42625, 14208, 13, 6371, 82, 13, 10414, 1330, 2291, 198, 6738, 764, 1330, 5009, 198, 6738, 42625, 14208, 13, 3642, 822, 13, 18439, 1330, 5009, 355, 6284, 62, 33571, 628, 198, 637...
2.708061
459
from django import forms from django.contrib.auth.forms import AuthenticationForm from django.contrib.auth.forms import PasswordResetForm from django.contrib.auth.forms import UserCreationForm from .models import User
[ 6738, 42625, 14208, 1330, 5107, 198, 6738, 42625, 14208, 13, 3642, 822, 13, 18439, 13, 23914, 1330, 48191, 8479, 198, 6738, 42625, 14208, 13, 3642, 822, 13, 18439, 13, 23914, 1330, 30275, 4965, 316, 8479, 198, 6738, 42625, 14208, 13, 36...
3.655738
61
""" 119. Pascal's Triangle II Given a non-negative index k where k ≤ 33, return the kth index row of the Pascal's triangle. Note that the row index starts from 0. In Pascal's triangle, each number is the sum of the two numbers directly above it. Example: Input: 3 Output: [1,3,3,1] """
[ 37811, 198, 16315, 13, 35163, 338, 33233, 2873, 198, 15056, 257, 1729, 12, 31591, 6376, 479, 810, 479, 41305, 4747, 11, 1441, 262, 479, 400, 6376, 5752, 286, 262, 35163, 338, 22950, 13, 198, 198, 6425, 326, 262, 5752, 6376, 4940, 422,...
3.333333
87
# Copyright 2019 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. DEPS = [ 'cq', 'properties', 'step', ]
[ 2, 15069, 13130, 383, 18255, 1505, 46665, 13, 1439, 2489, 10395, 13, 198, 2, 5765, 286, 428, 2723, 2438, 318, 21825, 416, 257, 347, 10305, 12, 7635, 5964, 326, 460, 307, 198, 2, 1043, 287, 262, 38559, 24290, 2393, 13, 198, 198, 7206...
3.181818
66
from .counterfactual_gap import CounterfactualGap from .prob_stats import ProbDiffStats from .significance_test import * from .expect_test import INV, DIR, MFT from .prob_scores import * from .pred_scores import *
[ 6738, 764, 24588, 22584, 723, 62, 43554, 1330, 15034, 22584, 723, 38, 499, 198, 6738, 764, 1676, 65, 62, 34242, 1330, 30873, 28813, 29668, 198, 6738, 764, 12683, 811, 590, 62, 9288, 1330, 1635, 198, 6738, 764, 1069, 806, 62, 9288, 133...
3.179104
67
""" Testing and utility functions for anomaly-detector """ import pandas as pd import numpy as np import pytest import anomaly_detection as ad @pytest.mark.skip(reason="simple python functionality") def _ensure_is_list(obj): """ Return an object in a list if not already wrapped. Useful when you want to ...
[ 37811, 198, 44154, 290, 10361, 5499, 329, 32172, 12, 15255, 9250, 198, 37811, 198, 198, 11748, 19798, 292, 355, 279, 67, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 12972, 9288, 198, 11748, 32172, 62, 15255, 3213, 355, 512, 628, 198...
2.118568
1,341