content
stringlengths
1
1.05M
input_ids
listlengths
1
883k
ratio_char_token
float64
1
22.9
token_count
int64
1
883k
# Copyright 2021 Research Institute of Systems Planning, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
[ 2, 15069, 33448, 4992, 5136, 286, 11998, 21913, 11, 3457, 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, 11846, 351, 262, ...
3.919643
224
from thkc_disrank import *
[ 6738, 294, 74, 66, 62, 6381, 43027, 1330, 1635, 201, 198 ]
2.545455
11
import torch import torch.nn as nn import torch.nn.functional as F import dgl.function as fn """ GIN: Graph Isomorphism Networks HOW POWERFUL ARE GRAPH NEURAL NETWORKS? (Keyulu Xu, Weihua Hu, Jure Leskovec and Stefanie Jegelka, ICLR 2019) https://arxiv.org/pdf/1810.00826.pdf """
[ 11748, 28034, 198, 11748, 28034, 13, 20471, 355, 299, 77, 198, 11748, 28034, 13, 20471, 13, 45124, 355, 376, 198, 11748, 288, 4743, 13, 8818, 355, 24714, 198, 198, 37811, 198, 220, 220, 220, 402, 1268, 25, 29681, 1148, 25831, 1042, 27...
2.568966
116
""" *mus . it . dia* The simple diatonic intervals. """ from .second import MinorSecond from .second import MajorSecond from .third import MinorThird from .third import MajorThird from .fourth import PerfectFourth from .fifth import Tritone from .fifth import PerfectFifth from .sixth import MinorSixth from .s...
[ 37811, 628, 220, 220, 220, 1635, 14664, 764, 340, 764, 288, 544, 9, 628, 220, 383, 2829, 2566, 265, 9229, 20016, 13, 198, 198, 37811, 198, 198, 6738, 764, 12227, 1330, 15367, 12211, 198, 6738, 764, 12227, 1330, 8386, 12211, 198, 6738,...
2.888412
233
# this file holds some common testing functions from selenium.webdriver.support.wait import WebDriverWait from selenium.webdriver.support import expected_conditions as EC from selenium.webdriver.common.by import By depurl = "localhost:3000"
[ 2, 428, 2393, 6622, 617, 2219, 4856, 5499, 198, 6738, 384, 11925, 1505, 13, 12384, 26230, 13, 11284, 13, 17077, 1330, 5313, 32103, 21321, 198, 6738, 384, 11925, 1505, 13, 12384, 26230, 13, 11284, 1330, 2938, 62, 17561, 1756, 355, 13182,...
3.707692
65
#-- coding: utf-8 -- import sys reload(sys) sys.setdefaultencoding('utf-8') import os import time import collections from PIL import Image, ImageOps, ImageDraw, ImageFont code_2_icono = collections.defaultdict(lambda : '38') kor_2_eng = collections.defaultdict(lambda : 'UNKNOWN') code_2_icono['SKY_O00'] = ['38'] ...
[ 2, 438, 19617, 25, 3384, 69, 12, 23, 1377, 198, 198, 11748, 25064, 198, 260, 2220, 7, 17597, 8, 198, 17597, 13, 2617, 12286, 12685, 7656, 10786, 40477, 12, 23, 11537, 198, 198, 11748, 28686, 198, 11748, 640, 198, 198, 11748, 17268, ...
1.985251
678
from .catchment import regime, flow_duration_curve from . import indices
[ 6738, 764, 40198, 434, 1330, 7142, 11, 5202, 62, 32257, 62, 22019, 303, 198, 6738, 764, 1330, 36525 ]
4
18
# # (C) Copyright 1996- ECMWF. # # This software is licensed under the terms of the Apache Licence Version 2.0 # which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. # In applying this licence, ECMWF does not waive the privileges and immunities # granted to it by virtue of its status as an intergovernme...
[ 2, 198, 2, 357, 34, 8, 15069, 8235, 12, 13182, 14326, 37, 13, 198, 2, 198, 2, 770, 3788, 318, 11971, 739, 262, 2846, 286, 262, 24843, 10483, 594, 10628, 362, 13, 15, 198, 2, 543, 460, 307, 6492, 379, 2638, 1378, 2503, 13, 43073,...
2.880734
436
# Copyright (C) 2022 Intel Corporation # SPDX-License-Identifier: BSD-3-Clause """Assistant utility for automatically load network from network description.""" import torch
[ 2, 15069, 357, 34, 8, 33160, 8180, 10501, 198, 2, 30628, 55, 12, 34156, 12, 33234, 7483, 25, 220, 347, 10305, 12, 18, 12, 2601, 682, 198, 198, 37811, 48902, 10361, 329, 6338, 3440, 3127, 422, 3127, 198, 11213, 526, 15931, 198, 198, ...
3.847826
46
""" Inspired by example from https://github.com/Vict0rSch/deep_learning/tree/master/keras/recurrent Uses the TensorFlow backend The basic idea is to detect anomalies in a time-series. """ import matplotlib.pyplot as plt import numpy as np import time from keras.layers.core import Dense, Activation, Dropout from keras.l...
[ 37811, 45827, 416, 1672, 422, 198, 5450, 1378, 12567, 13, 785, 14, 21944, 15, 81, 14874, 14, 22089, 62, 40684, 14, 21048, 14, 9866, 14, 6122, 292, 14, 8344, 6657, 198, 5842, 274, 262, 309, 22854, 37535, 30203, 198, 464, 4096, 2126, ...
2.544371
755
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations import datetime
[ 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, 4981, 11, 15720, 602, 198, 11748, 4818, 8079, 628 ]
3
41
__title__ = 'har2case' __description__ = 'Convert HAR(HTTP Archive) to YAML/JSON testcases for HttpRunner.' __url__ = 'https://github.com/HttpRunner/har2case' __version__ = '0.2.0' __author__ = 'debugtalk' __author_email__ = 'mail@debugtalk.com' __license__ = 'Apache-2.0' __copyright__ = 'Copyright 2017 debugtalk'
[ 834, 7839, 834, 796, 705, 9869, 17, 7442, 6, 198, 834, 11213, 834, 796, 705, 3103, 1851, 43638, 7, 40717, 20816, 8, 284, 575, 2390, 43, 14, 40386, 1332, 33964, 329, 367, 29281, 49493, 2637, 198, 834, 6371, 834, 796, 705, 5450, 1378,...
2.73913
115
import os from pathlib import Path from data_utils import get_data_path, get_image_data_path, get_image_extension
[ 11748, 28686, 198, 6738, 3108, 8019, 1330, 10644, 198, 198, 6738, 1366, 62, 26791, 1330, 651, 62, 7890, 62, 6978, 11, 651, 62, 9060, 62, 7890, 62, 6978, 11, 651, 62, 9060, 62, 2302, 3004, 628, 628, 628, 628 ]
3.128205
39
#!/usr/bin/env python import boto3 import random import os BUCKET=os.environ.get('EXPORT_S3_BUCKET_URL') if (BUCKET != None): s3 = boto3.client('s3') with open("maze.txt", "rb") as f: s3.upload_fileobj(f, BUCKET, "maze"+str(random.randrange(100000))+".txt") else: print("EXPORT_S3_BUCKET_URL was not ...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 11748, 275, 2069, 18, 198, 11748, 4738, 198, 11748, 28686, 198, 33, 16696, 2767, 28, 418, 13, 268, 2268, 13, 1136, 10786, 6369, 15490, 62, 50, 18, 62, 33, 16696, 2767, 62, 21886, 115...
2.230769
156
import sys from typing import Any from argparse import ArgumentParser from zerver.models import Realm from zerver.lib.management import ZulipBaseCommand
[ 198, 11748, 25064, 198, 198, 6738, 19720, 1330, 4377, 198, 6738, 1822, 29572, 1330, 45751, 46677, 198, 198, 6738, 1976, 18497, 13, 27530, 1330, 23651, 198, 6738, 1976, 18497, 13, 8019, 13, 27604, 1330, 1168, 377, 541, 14881, 21575, 198 ]
3.9
40
# Copyright (c) 2006-2010 Mitch Garnaat http://garnaat.org/ # Copyright (c) 2009, Eucalyptus Systems, Inc. # All rights reserved. # # 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 res...
[ 2, 15069, 357, 66, 8, 4793, 12, 10333, 20472, 402, 28610, 265, 2638, 1378, 70, 28610, 265, 13, 2398, 14, 198, 2, 15069, 357, 66, 8, 3717, 11, 412, 1229, 3400, 457, 385, 11998, 11, 3457, 13, 198, 2, 1439, 2489, 10395, 13, 198, 2,...
3.650259
386
# coding: utf-8 """ DocuSign REST API The DocuSign REST API provides you with a powerful, convenient, and simple Web services API for interacting with DocuSign. # noqa: E501 OpenAPI spec version: v2.1 Contact: devcenter@docusign.com Generated by: https://github.com/swagger-api/swagger-codegen.gi...
[ 2, 19617, 25, 3384, 69, 12, 23, 198, 198, 37811, 198, 220, 220, 220, 14432, 84, 11712, 30617, 7824, 628, 220, 220, 220, 383, 14432, 84, 11712, 30617, 7824, 3769, 345, 351, 257, 3665, 11, 11282, 11, 290, 2829, 5313, 2594, 7824, 329, ...
2.657143
420
from django.apps import AppConfig from django.core.checks import register from . import checks
[ 6738, 42625, 14208, 13, 18211, 1330, 2034, 16934, 198, 6738, 42625, 14208, 13, 7295, 13, 42116, 1330, 7881, 198, 198, 6738, 764, 1330, 8794, 628 ]
3.88
25
""" Get all TM1 transactions for all cubes starting to a specific date. """ import configparser config = configparser.ConfigParser() config.read('..\config.ini') from datetime import datetime from TM1py.Services import TM1Service with TM1Service(**config['tm1srv01']) as tm1: # Timestamp for Message-Log parsin...
[ 37811, 198, 3855, 477, 21232, 16, 8945, 329, 477, 34896, 3599, 284, 257, 2176, 3128, 13, 198, 37811, 198, 198, 11748, 4566, 48610, 198, 11250, 796, 4566, 48610, 13, 16934, 46677, 3419, 198, 11250, 13, 961, 10786, 492, 59, 11250, 13, 5...
2.916279
215
import logging import numpy as np from scipy.stats import entropy from patteRNA.Transcript import Transcript from patteRNA import filelib logger = logging.getLogger(__name__)
[ 11748, 18931, 198, 11748, 299, 32152, 355, 45941, 198, 6738, 629, 541, 88, 13, 34242, 1330, 40709, 198, 6738, 1458, 660, 27204, 13, 8291, 6519, 1330, 42978, 198, 6738, 1458, 660, 27204, 1330, 2393, 8019, 198, 198, 6404, 1362, 796, 18931...
3.470588
51
import library import json def updateModel(model, list_weights): """ list_weights : 3D list of shape : (clientNumber,modelOuter, modelInner) It contains all the models for each client """ # this part will change developer to developer # one can just take avg # or one can discard sm...
[ 11748, 5888, 198, 11748, 33918, 198, 198, 4299, 4296, 17633, 7, 19849, 11, 1351, 62, 43775, 2599, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 1351, 62, 43775, 1058, 513, 35, 1351, 286, 5485, 1058, 357, 16366, ...
2.944969
636
from molecule import api
[ 6738, 27756, 1330, 40391, 628 ]
5.2
5
import numpy as np from coffeine.covariance_transformers import ( Diag, LogDiag, ExpandFeatures, Riemann, RiemannSnp, NaiveVec) from coffeine.spatial_filters import ( ProjIdentitySpace, ProjCommonSpace, ProjLWSpace, ProjRandomSpace, ProjSPoCSpace) from sklearn.compose impor...
[ 11748, 299, 32152, 355, 45941, 198, 6738, 763, 16658, 500, 13, 66, 709, 2743, 590, 62, 35636, 364, 1330, 357, 198, 220, 220, 220, 6031, 363, 11, 198, 220, 220, 220, 5972, 18683, 363, 11, 198, 220, 220, 220, 49368, 23595, 11, 198, ...
2.627882
4,598
from games import Game from math import nan, isnan from queue import PriorityQueue from copy import deepcopy from utils import isnumber from grading.util import print_table def q2list(mq): list = [] while not mq.empty(): list.append(mq.get(1).rcv()) return list def movesInRow(board, r): mQ...
[ 6738, 1830, 1330, 3776, 198, 6738, 10688, 1330, 15709, 11, 2125, 272, 198, 6738, 16834, 1330, 34416, 34991, 198, 6738, 4866, 1330, 2769, 30073, 198, 6738, 3384, 4487, 1330, 2125, 4494, 198, 6738, 43165, 13, 22602, 1330, 3601, 62, 11487, ...
1.979857
2,383
import os import df2img import disnake import numpy as np import pandas as pd from menus.menu import Menu from PIL import Image import discordbot.config_discordbot as cfg from discordbot.config_discordbot import gst_imgur, logger from discordbot.helpers import autocrop_image from gamestonk_terminal.stocks.options imp...
[ 11748, 28686, 198, 198, 11748, 47764, 17, 9600, 198, 11748, 595, 77, 539, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 19798, 292, 355, 279, 67, 198, 6738, 26798, 13, 26272, 1330, 21860, 198, 6738, 350, 4146, 1330, 7412, 198, 198, ...
3.333333
102
#%% import packages import numpy as np import pandas as pd import multiprocessing from time import time import json from premiumFinance.constants import ( MORTALITY_TABLE_CLEANED_PATH, PROCESSED_PROFITABILITY_PATH, ) from premiumFinance.financing import calculate_lender_profit, yield_curve mortality_experien...
[ 2, 16626, 1330, 10392, 198, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 19798, 292, 355, 279, 67, 198, 11748, 18540, 305, 919, 278, 198, 6738, 640, 1330, 640, 198, 11748, 33918, 198, 198, 6738, 8683, 37, 14149, 13, 9979, 1187, 133...
2.25167
449
# Copyright 2018 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. """Caches processed query results in memcache and datastore. Memcache is not very reliable for the perf dashboard. Prometheus team explained that memcache is...
[ 2, 15069, 2864, 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, 37811, 34,...
3.21322
1,407
# -*- coding:utf-8 -*- """ """ import cudf from hypergbm import make_experiment from hypernets.tabular import get_tool_box from hypernets.tabular.datasets import dsutils if __name__ == '__main__': main(target='y', reward_metric='auc', ensemble_size=10, pos_label='yes', log_level='info', max_trials=10) # m...
[ 2, 532, 9, 12, 19617, 25, 40477, 12, 23, 532, 9, 12, 198, 37811, 198, 198, 37811, 198, 198, 11748, 269, 463, 69, 198, 198, 6738, 8718, 70, 20475, 1330, 787, 62, 23100, 3681, 198, 6738, 8718, 45938, 13, 8658, 934, 1330, 651, 62, ...
2.534296
277
# Copyright (c) Facebook, Inc. and its affiliates. # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import concurrent.futures import numpy as np import os from PIL import Image import torchvision from datasets import base from platforms.platf...
[ 2, 15069, 357, 66, 8, 3203, 11, 3457, 13, 290, 663, 29116, 13, 198, 198, 2, 770, 2723, 2438, 318, 11971, 739, 262, 17168, 5964, 1043, 287, 262, 198, 2, 38559, 24290, 2393, 287, 262, 6808, 8619, 286, 428, 2723, 5509, 13, 198, 198, ...
3.968421
95
#!/usr/bin/env python # -*- encoding: utf-8 -*- """ @File : sm4.py @Description : sm4 @Date : 2021/10/28 15:59:51 @Author : ZelKnow @Github : https://github.com/ZelKnow """ __author__ = "ZelKnow" from argparse import ArgumentParser, ArgumentError from binascii import hexlify, unhexlif...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 532, 9, 12, 21004, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 198, 31, 8979, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1058, 895, 19, 13, 9078, 198, 31, 11828, 220, 22...
2.084385
1,268
import json import requests from random import randint
[ 11748, 33918, 198, 11748, 7007, 198, 6738, 4738, 1330, 43720, 600, 628 ]
4.666667
12
if __name__ == '__main__': # s = '(()())(())' # s = '(()())(())(()(()))' s = '()()' ret = Solution().removeOuterParentheses(s) print(ret)
[ 198, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 198, 220, 220, 220, 1303, 264, 796, 29513, 3419, 3419, 5769, 28955, 6, 198, 220, 220, 220, 1303, 264, 796, 29513, 3419, 3419, 5769, 3419, 5769, 3419, 7, 3419, 4008, ...
2.051282
78
n = int(input('Digite um nmero para ver sua tabuada: ')) for c in range(0, 11): print(f'{n} * {c} = {n * c}')
[ 77, 796, 493, 7, 15414, 10786, 19511, 578, 23781, 299, 647, 78, 31215, 3326, 424, 64, 7400, 84, 4763, 25, 705, 4008, 198, 1640, 269, 287, 2837, 7, 15, 11, 1367, 2599, 198, 220, 220, 220, 3601, 7, 69, 6, 90, 77, 92, 1635, 1391, ...
2.072727
55
# coding=utf-8 from .translators import translate_js, DEFAULT_HEADER from .es6 import js6_to_js5 import sys import time import json import six import os import hashlib import codecs __all__ = [ 'EvalJs', 'translate_js', 'import_js', 'eval_js', 'translate_file', 'eval_js6', 'translate_js6', 'run_file', 'disable...
[ 2, 19617, 28, 40477, 12, 23, 198, 6738, 764, 7645, 75, 2024, 1330, 15772, 62, 8457, 11, 5550, 38865, 62, 37682, 1137, 198, 6738, 764, 274, 21, 1330, 44804, 21, 62, 1462, 62, 8457, 20, 198, 11748, 25064, 198, 11748, 640, 198, 11748, ...
2.567059
1,275
#!/usr/bin/python3 from setuptools import setup, find_packages setup( package_dir = { '': 'src' }, packages = find_packages( where='src' ), )
[ 2, 48443, 14629, 14, 8800, 14, 29412, 18, 198, 198, 6738, 900, 37623, 10141, 1330, 9058, 11, 1064, 62, 43789, 198, 198, 40406, 7, 198, 220, 220, 220, 5301, 62, 15908, 796, 1391, 10148, 25, 705, 10677, 6, 8964, 198, 220, 220, 220, ...
2.666667
57
#!/usr/bin/env python # # Copyright (C) 2018 The Android Open Source Project # # 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 req...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 198, 2, 15069, 357, 34, 8, 2864, 383, 5565, 4946, 8090, 4935, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 2, 345, ...
2.622036
2,024
#!/usr/bin/env python """org archive to html table converter""" import os import datetime import itertools from .utils.date import minutestr, total_minutes def rootname_from_archive_olpath(node): """ Find rootname from ARCHIVE_OLPATH property. Return None if not found. """ olpath = node.get_prop...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 37811, 2398, 15424, 284, 27711, 3084, 38394, 37811, 198, 198, 11748, 28686, 198, 11748, 4818, 8079, 198, 11748, 340, 861, 10141, 198, 198, 6738, 764, 26791, 13, 4475, 1330, 949, 315, 395...
2.31659
1,513
# 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 u...
[ 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, 383, 7054,...
3.736402
239
""" MIT License Copyright (c) 2019 Simon Olofsson Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish...
[ 37811, 198, 36393, 13789, 198, 198, 15269, 357, 66, 8, 13130, 11288, 6544, 1659, 16528, 198, 198, 5990, 3411, 318, 29376, 7520, 11, 1479, 286, 3877, 11, 284, 597, 1048, 16727, 257, 4866, 198, 1659, 428, 3788, 290, 3917, 10314, 3696, 3...
3.586294
394
#!/usr/bin/env python """ The pozyx ranging demo (c) Pozyx Labs please check out https://www.pozyx.io/Documentation/Tutorials/getting_started/Python This demo requires one (or two) pozyx shields. It demonstrates the 3D orientation and the functionality to remotely read register data from a pozyx device. Connect one of...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 37811, 198, 464, 745, 7357, 87, 12897, 13605, 357, 66, 8, 7695, 7357, 87, 23500, 198, 29688, 2198, 503, 3740, 1378, 2503, 13, 7501, 7357, 87, 13, 952, 14, 24941, 341, 14, 51, 44917, ...
2.580882
1,904
#!/usr/bin/env python # -*- coding=utf-8 -*- # # Author: huangnj # Time: 2019/09/27 import traceback from functools import wraps from hdfs_kernel.constants import EXPECTED_ERROR_MSG, INTERNAL_ERROR_MSG from hdfs.util import HdfsError # == EXCEPTIONS == # option parse Error # == DECORATORS FOR EXCEPTION HANDLING =...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 532, 9, 12, 19617, 28, 40477, 12, 23, 532, 9, 12, 198, 2, 198, 2, 6434, 25, 289, 84, 648, 77, 73, 198, 2, 3862, 25, 13130, 14, 2931, 14, 1983, 198, 198, 11748, 12854, 1891, ...
3.050373
536
# Copyright 2017 Red Hat, Inc. # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or a...
[ 2, 15069, 2177, 2297, 10983, 11, 3457, 13, 198, 2, 1439, 6923, 33876, 13, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 345, 743, 198, 2, 407, 779, 428, 2393, 2845, 287, 11846...
3.90458
262
# Copyright 2020 The FedLearner Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
[ 2, 15069, 12131, 383, 10169, 14961, 1008, 46665, 13, 1439, 6923, 33876, 13, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 2, 345, 743, 407, 779, 428, 2393, 2845, 287, 11846...
3.471125
329
""" aiohttpHTTP """ import asyncio import time import aiohttp from asyncrates import get_rates SYMBOLS = ('USD', 'EUR', 'PLN', 'NOK', 'CZK') BASES = ('USD', 'EUR', 'PLN', 'NOK', 'CZK') if __name__ == "__main__": started = time.time() loop = asyncio.get_event_loop() loop.run_until_complete(main()) ...
[ 37811, 198, 198, 64, 952, 4023, 40717, 198, 198, 37811, 198, 11748, 30351, 952, 198, 11748, 640, 198, 198, 11748, 257, 952, 4023, 198, 198, 6738, 355, 2047, 6098, 689, 1330, 651, 62, 9700, 198, 198, 23060, 10744, 3535, 50, 796, 19203,...
2.272727
176
#!/usr/bin/env python from __future__ import print_function import logging import os import signal from time import sleep from subprocess import Popen, PIPE import socket from core.common_functions import * from core.run import Runner
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 6738, 11593, 37443, 834, 1330, 3601, 62, 8818, 198, 198, 11748, 18931, 198, 11748, 28686, 198, 11748, 6737, 198, 6738, 640, 1330, 3993, 198, 6738, 850, 14681, 1330, 8099, 268, 11, 350, ...
3.621212
66
# -*- coding: utf-8 -*- import unittest from tavi.base.documents import BaseDocument
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 11748, 555, 715, 395, 198, 6738, 256, 15820, 13, 8692, 13, 15390, 2886, 1330, 7308, 24941, 628 ]
2.774194
31
"""Test file sequence discovery on disk.""" # "Future" Libraries from __future__ import print_function # Standard Libraries import os import unittest # Third Party Libraries import mock from builtins import range from future.utils import lrange from . import (DirEntry, generate_entries, initialise_mock_scandir_data...
[ 37811, 14402, 2393, 8379, 9412, 319, 11898, 526, 15931, 198, 198, 2, 366, 29783, 1, 46267, 198, 6738, 11593, 37443, 834, 1330, 3601, 62, 8818, 198, 198, 2, 8997, 46267, 198, 11748, 28686, 198, 11748, 555, 715, 395, 198, 198, 2, 10467,...
2.298398
1,498
import urllib.request import pandas as pd import sqlite3 import re from bs4 import BeautifulSoup # Parameters postcodes_list = ["W1F7EY"] db_name = "scraped.db" # This is so that Deliveroo think the scraper is Google Chrome # as opposed to a web scraper hdr = {'User-Agent': 'Mozilla/5.0 (X11; Linux x86_64) AppleWeb...
[ 11748, 2956, 297, 571, 13, 25927, 198, 11748, 19798, 292, 355, 279, 67, 198, 11748, 44161, 578, 18, 198, 11748, 302, 198, 6738, 275, 82, 19, 1330, 23762, 50, 10486, 628, 198, 2, 40117, 198, 7353, 40148, 62, 4868, 796, 14631, 54, 16,...
2.217158
373
from django.contrib import admin from wouso.core.security.models import Report admin.site.register(Report)
[ 6738, 42625, 14208, 13, 3642, 822, 1330, 13169, 198, 6738, 266, 516, 78, 13, 7295, 13, 12961, 13, 27530, 1330, 6358, 198, 198, 28482, 13, 15654, 13, 30238, 7, 19100, 8, 198 ]
3.375
32
#### Reading Data from The Things Network Data and Automatically Storing it to a Google Spreadsheet # Author: Dilip Rajkumar # Email: d.rajkumar@hbksaar.de # Date: 19/01/2018 # Revision: version#1 # License: MIT License import pandas as pd import requests from df2gspread import df2gspread as d2g import time ## Set I...
[ 4242, 11725, 6060, 422, 383, 11597, 7311, 6060, 290, 17406, 4142, 520, 3255, 340, 284, 257, 3012, 31843, 21760, 198, 198, 2, 6434, 25, 29328, 541, 13308, 74, 44844, 198, 2, 9570, 25, 288, 13, 430, 73, 74, 44844, 31, 71, 65, 591, 6...
2.617271
938
import xmltodict from share.transform.chain import * # noqa EXAMPLE = ''' <entry> <id>http://arxiv.org/abs/cond-mat/0102536v1</id> <updated>2001-02-28T20:12:09Z</updated> <published>2001-02-28T20:12:09Z</published> <title>Impact of Electron-Electron Cusp on Configuration Interaction Energies</t...
[ 11748, 2124, 76, 2528, 375, 713, 198, 198, 6738, 2648, 13, 35636, 13, 7983, 1330, 1635, 220, 1303, 645, 20402, 628, 198, 6369, 2390, 16437, 796, 705, 7061, 198, 1279, 13000, 29, 198, 220, 220, 220, 1279, 312, 29, 4023, 1378, 283, 87...
2.814075
1,151
from __future__ import annotations from typing import TypeVar, Generic, Callable, Optional, Any, cast, Tuple import rx from returns import pipeline from returns.functions import identity from returns.maybe import Maybe, Nothing from rx import Observable from rx.subject import BehaviorSubject from . import ReactiveVa...
[ 6738, 11593, 37443, 834, 1330, 37647, 198, 198, 6738, 19720, 1330, 5994, 19852, 11, 42044, 11, 4889, 540, 11, 32233, 11, 4377, 11, 3350, 11, 309, 29291, 198, 198, 11748, 374, 87, 198, 6738, 5860, 1330, 11523, 198, 6738, 5860, 13, 1254...
3.888889
99
""" Argo Server API You can get examples of requests and responses by using the CLI with `--gloglevel=9`, e.g. `argo list --gloglevel=9` # noqa: E501 The version of the OpenAPI document: VERSION Generated by: https://openapi-generator.tech """ import re # noqa: F401 import sys # noqa: F401 from ...
[ 37811, 198, 220, 220, 220, 943, 2188, 9652, 7824, 628, 220, 220, 220, 921, 460, 651, 6096, 286, 7007, 290, 9109, 416, 1262, 262, 43749, 351, 4600, 438, 4743, 2467, 626, 28, 24, 47671, 304, 13, 70, 13, 4600, 9448, 1351, 1377, 4743, ...
2.650558
269
#!/usr/bin/env python # # Copyright (C) 2018 Intel Corporation # # SPDX-License-Identifier: MIT from __future__ import absolute_import, division, print_function import argparse import os import glog as log import numpy as np import cv2 from lxml import etree from tqdm import tqdm def parse_args(): """Parse argu...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 198, 2, 15069, 357, 34, 8, 2864, 8180, 10501, 198, 2, 198, 2, 30628, 55, 12, 34156, 12, 33234, 7483, 25, 17168, 198, 198, 6738, 11593, 37443, 834, 1330, 4112, 62, 11748, 11, 729...
2.532609
552
""" ========================== Callosal bundles using AFQ API ========================== An example using the AFQ API to find callosal bundles using the templates from: http://hdl.handle.net/1773/34926 """ import os.path as op import plotly from AFQ import api from AFQ.mask import RoiMask import AFQ.data as afd ####...
[ 37811, 198, 4770, 2559, 855, 198, 14134, 40725, 36344, 1262, 12341, 48, 7824, 198, 4770, 2559, 855, 198, 2025, 1672, 1262, 262, 12341, 48, 7824, 284, 1064, 869, 40725, 36344, 1262, 262, 24019, 422, 25, 198, 4023, 1378, 71, 25404, 13, ...
3.137519
669
import time import Queue import random import socket import struct import logging import threading from convert import * from protocol import ethernet, ip, tcp, udp ETH_P_IP = 0x0800 # IP protocol ETH_P_ALL = 0x0003 # Every packet NSCRIPT_PATH = 'nscript' # NSCRIPT PATH PAYLOAD = { 53:('\x5d\x0d\x01\x00\x00\x01\x00...
[ 11748, 640, 198, 11748, 4670, 518, 198, 11748, 4738, 198, 11748, 17802, 198, 11748, 2878, 198, 11748, 18931, 198, 11748, 4704, 278, 198, 6738, 10385, 1330, 1635, 198, 6738, 8435, 1330, 28475, 3262, 11, 20966, 11, 48265, 11, 334, 26059, ...
2.041742
551
import sys from flask import Blueprint, request, jsonify from flaskApp import db from flaskApp.assignment.utils import * from flaskApp.error.error_handlers import * import json from flaskApp.helpers import getAssignmentData assignment = Blueprint('assignment', __name__) '''Test method, keep just in case. Will prob be...
[ 11748, 25064, 198, 6738, 42903, 1330, 39932, 11, 2581, 11, 33918, 1958, 198, 6738, 42903, 4677, 1330, 20613, 198, 6738, 42903, 4677, 13, 562, 16747, 13, 26791, 1330, 1635, 198, 6738, 42903, 4677, 13, 18224, 13, 18224, 62, 4993, 8116, 13...
3.928571
112
####################################################################################################################### # Given a string, find the length of the longest substring which has no repeating characters. # # Input: String="aabccbb" # Output: 3 # Explanation: The longest substring without any repeating charact...
[ 29113, 29113, 29113, 14468, 4242, 21017, 198, 2, 11259, 257, 4731, 11, 1064, 262, 4129, 286, 262, 14069, 3293, 1806, 543, 468, 645, 20394, 3435, 13, 198, 2, 198, 2, 23412, 25, 10903, 2625, 64, 397, 535, 11848, 1, 198, 2, 25235, 25, ...
3.780669
269
import sys sys.path.insert(0, '.') from pyspark import SparkContext, SparkConf from commons.Utils import Utils if __name__ == "__main__": ''' Create a Spark program to read the airport data from in/airports.text; generate a pair RDD with airport name being the key and country name being the v...
[ 11748, 25064, 201, 198, 17597, 13, 6978, 13, 28463, 7, 15, 11, 705, 2637, 8, 201, 198, 201, 198, 201, 198, 6738, 279, 893, 20928, 1330, 17732, 21947, 11, 17732, 18546, 201, 198, 6738, 36523, 13, 18274, 4487, 1330, 7273, 4487, 201, 1...
2.428571
581
#!/usr/bin/python3 # Keyboard details window import logging import json from os import path import qrcode import tempfile import gi from gi.repository import Gtk from keyman_config import KeymanComUrl, _, secure_lookup from keyman_config.accelerators import init_accel from keyman_config.kmpmetadata import parsemeta...
[ 2, 48443, 14629, 14, 8800, 14, 29412, 18, 198, 198, 2, 31973, 3307, 4324, 198, 198, 11748, 18931, 198, 11748, 33918, 198, 6738, 28686, 1330, 3108, 198, 11748, 10662, 6015, 1098, 198, 11748, 20218, 7753, 198, 198, 11748, 308, 72, 198, ...
3.410628
207
import os import shutil SOURCE_DIR = '../deploy/runtime' TARGET_DIR = 'SAM.app/Contents/runtime' if os.path.exists(TARGET_DIR): shutil.rmtree(TARGET_DIR) shutil.copytree(SOURCE_DIR, TARGET_DIR, ignore=shutil.ignore_patterns('.git')) SOURCE_DIR = '../deploy/solar_resource' TARGET_DIR = 'SAM.app/Contents/solar_re...
[ 11748, 28686, 198, 11748, 4423, 346, 198, 198, 47690, 62, 34720, 796, 705, 40720, 2934, 1420, 14, 43282, 6, 198, 51, 46095, 62, 34720, 796, 705, 49302, 13, 1324, 14, 15842, 14, 43282, 6, 198, 198, 361, 28686, 13, 6978, 13, 1069, 102...
2.422164
379
""" path_util contains helpers for working with local filesystem paths. There are a few classes of methods provided here: Functions to normalize paths and check that they are in normal form: normalize, check_isvalid, check_isdir, check_isfile, path_is_url Functions to list directories and to deal with subpath...
[ 37811, 198, 6978, 62, 22602, 4909, 49385, 329, 1762, 351, 1957, 29905, 13532, 13, 198, 1858, 389, 257, 1178, 6097, 286, 5050, 2810, 994, 25, 628, 220, 40480, 284, 3487, 1096, 13532, 290, 2198, 326, 484, 389, 287, 3487, 1296, 25, 198, ...
2.745285
4,083
# -*- coding: utf-8 -*- """Tests of GLSAR and diagnostics against Gretl Created on Thu Feb 02 21:15:47 2012 Author: Josef Perktold License: BSD-3 """ import os import numpy as np from numpy.testing import (assert_almost_equal, assert_equal, assert_allclose, assert_array_less) from stats...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 51, 3558, 286, 402, 6561, 1503, 290, 6689, 34558, 1028, 35877, 75, 198, 198, 41972, 319, 26223, 3158, 7816, 2310, 25, 1314, 25, 2857, 2321, 198, 198, 13838, 25, ...
2.11004
4,044
import requests import django.contrib.auth as auth from django.shortcuts import render, redirect, get_object_or_404 from django.http import HttpResponse, JsonResponse, Http404 from django.contrib.auth.decorators import login_required from django.core.serializers import serialize from core.serializers import * from core...
[ 11748, 7007, 198, 11748, 42625, 14208, 13, 3642, 822, 13, 18439, 355, 6284, 198, 6738, 42625, 14208, 13, 19509, 23779, 1330, 8543, 11, 18941, 11, 651, 62, 15252, 62, 273, 62, 26429, 198, 6738, 42625, 14208, 13, 4023, 1330, 367, 29281, ...
3.317881
151
from __future__ import absolute_import __author__ = 'kaizhuang' """ Package implementing features for simulating bioreactor operation. """ from .base import Organism, Bioreactor from .bioreactors import ANAEROBIC, AEROBIC, MICROAEROBIC from .bioreactors import Bioreactor_ox, IdealBatch, IdealFedbatch from framed.biore...
[ 6738, 11593, 37443, 834, 1330, 4112, 62, 11748, 198, 834, 9800, 834, 796, 705, 4914, 528, 13415, 648, 6, 198, 37811, 198, 27813, 15427, 3033, 329, 985, 8306, 3182, 382, 11218, 4905, 13, 198, 37811, 198, 198, 6738, 764, 8692, 1330, 722...
3.196262
107
from ssg.utils import parse_template_boolean_value
[ 6738, 37786, 70, 13, 26791, 1330, 21136, 62, 28243, 62, 2127, 21052, 62, 8367, 628 ]
3.466667
15
# -*- coding: UTF-8 -*- """ This file is part of Pondus, a personal weight manager. Copyright (C) 2011 Eike Nicklas <eike@ephys.de> This program is free software licensed under the MIT license. For details see LICENSE or http://www.opensource.org/licenses/mit-license.php """ __all__ = ['csv_backend', 'sportstracker...
[ 2, 532, 9, 12, 19617, 25, 41002, 12, 23, 532, 9, 12, 198, 198, 37811, 198, 1212, 2393, 318, 636, 286, 41598, 385, 11, 257, 2614, 3463, 4706, 13, 198, 15269, 357, 34, 8, 2813, 220, 412, 522, 8047, 21921, 1279, 68, 522, 31, 27446,...
2.772059
136
import pathlib from setuptools import find_packages, setup # The directory containing this file HERE = pathlib.Path(__file__).parent # The text of the README file README = (HERE / "README.md").read_text() # This call to setup() does all the work setup( name="chpy", version="0.1.1", descripti...
[ 11748, 3108, 8019, 201, 198, 6738, 900, 37623, 10141, 1330, 1064, 62, 43789, 11, 9058, 201, 198, 201, 198, 2, 383, 8619, 7268, 428, 2393, 201, 198, 39, 9338, 796, 3108, 8019, 13, 15235, 7, 834, 7753, 834, 737, 8000, 201, 198, 201, ...
2.537349
415
from __future__ import absolute_import import six from sentry.utils.safe import get_path, trim from sentry.utils.strings import truncatechars from .base import BaseEvent
[ 6738, 11593, 37443, 834, 1330, 4112, 62, 11748, 198, 198, 11748, 2237, 198, 198, 6738, 1908, 563, 13, 26791, 13, 21230, 1330, 651, 62, 6978, 11, 15797, 198, 6738, 1908, 563, 13, 26791, 13, 37336, 1330, 40122, 40340, 945, 198, 198, 673...
3.571429
49
from unittest import TestCase from datetime import date from keras_en_parser_and_analyzer.library.pipmp_my_cv_classify import detect_date
[ 6738, 555, 715, 395, 1330, 6208, 20448, 198, 6738, 4818, 8079, 1330, 3128, 198, 6738, 41927, 292, 62, 268, 62, 48610, 62, 392, 62, 38200, 9107, 13, 32016, 13, 79, 541, 3149, 62, 1820, 62, 33967, 62, 4871, 1958, 1330, 4886, 62, 4475,...
3.111111
45
# Copyright 2015 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # unless required by applicable law or a...
[ 2, 15069, 1853, 3012, 3457, 13, 1439, 6923, 33876, 13, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 2, 345, 743, 407, 779, 428, 2393, 2845, 287, 11846, 351, 262, 13789, ...
3.768924
251
import warnings import numba import numpy as np import strax import straxen DEFAULT_MAX_SAMPLES = 20_000
[ 11748, 14601, 198, 198, 11748, 997, 7012, 198, 11748, 299, 32152, 355, 45941, 198, 198, 11748, 3534, 87, 198, 11748, 3534, 87, 268, 198, 198, 7206, 38865, 62, 22921, 62, 49302, 6489, 1546, 796, 1160, 62, 830, 628, 628 ]
2.846154
39
from collections import namedtuple from cryptoconditions import crypto CryptoKeypair = namedtuple('CryptoKeypair', ('signing_key', 'verifying_key')) def generate_keypair(): """Generates a cryptographic key pair. Returns: :class:`~bigchaindb_driver.crypto.CryptoKeypair`: A :obj:`collections...
[ 6738, 17268, 1330, 3706, 83, 29291, 198, 198, 6738, 15149, 623, 1756, 1330, 21473, 628, 198, 23919, 78, 9218, 24874, 796, 3706, 83, 29291, 10786, 23919, 78, 9218, 24874, 3256, 19203, 12683, 278, 62, 2539, 3256, 705, 332, 4035, 62, 2539,...
2.568966
232
from __future__ import unicode_literals from django.utils import six from djblets.util.decorators import augment_method_from from reviewboard.changedescs.models import ChangeDescription from reviewboard.reviews.fields import get_review_request_field from reviewboard.webapi.base import WebAPIResource from reviewboard....
[ 6738, 11593, 37443, 834, 1330, 28000, 1098, 62, 17201, 874, 198, 198, 6738, 42625, 14208, 13, 26791, 1330, 2237, 198, 6738, 42625, 903, 912, 13, 22602, 13, 12501, 273, 2024, 1330, 35016, 62, 24396, 62, 6738, 198, 198, 6738, 2423, 3526, ...
3.659574
141
# Dependencies from aurora import Controller, View, Forms from models import Users, Notes from aurora.security import login_required, get_session from flask import request from datetime import datetime # The controller class
[ 2, 37947, 3976, 198, 6738, 45714, 5799, 1330, 22741, 11, 3582, 11, 39196, 198, 6738, 4981, 1330, 18987, 11, 11822, 198, 6738, 45714, 5799, 13, 12961, 1330, 17594, 62, 35827, 11, 651, 62, 29891, 198, 6738, 42903, 1330, 2581, 198, 6738, ...
4.283019
53
# -------------- #Importing header files import pandas as pd import matplotlib.pyplot as plt import seaborn as sns #Code starts here data = pd.read_csv(path) data['Rating'].hist() data = data[data['Rating']<=5] data['Rating'].hist() #Code ends here # -------------- # code starts here total_null = data.isnull().sum...
[ 2, 220, 26171, 198, 2, 20939, 278, 13639, 3696, 198, 11748, 19798, 292, 355, 279, 67, 198, 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 198, 11748, 384, 397, 1211, 355, 3013, 82, 628, 198, 2, 10669, 4940, 994, 198, 7890,...
2.731949
1,011
import numpy as np from openpnm.algorithms import ReactiveTransport from openpnm.models.physics import generic_source_term as gst from openpnm.utils import logging logger = logging.getLogger(__name__)
[ 11748, 299, 32152, 355, 45941, 198, 6738, 1280, 79, 21533, 13, 282, 7727, 907, 1330, 797, 5275, 8291, 634, 198, 6738, 1280, 79, 21533, 13, 27530, 13, 746, 23154, 1330, 14276, 62, 10459, 62, 4354, 355, 308, 301, 198, 6738, 1280, 79, ...
3.258065
62
from jno.util import interpret_configs from jno.util import run_arduino_process from jno.util import create_build_directory from jno.util import get_common_parameters from jno.util import verify_arduino_dir from jno.util import verify_and_get_port from jno.util import JnoException from jno.commands.command import Comma...
[ 6738, 474, 3919, 13, 22602, 1330, 6179, 62, 11250, 82, 198, 6738, 474, 3919, 13, 22602, 1330, 1057, 62, 446, 84, 2879, 62, 14681, 198, 6738, 474, 3919, 13, 22602, 1330, 2251, 62, 11249, 62, 34945, 198, 6738, 474, 3919, 13, 22602, 13...
3.309091
110
import argparse import json import logging import os import torch from transformers.file_utils import ModelOutput from typing import Dict, Optional, Tuple from torch.utils.data import DataLoader, SequentialSampler from transformers.modeling_outputs import Seq2SeqLMOutput import train_seq2seq_utils import single_head_ut...
[ 11748, 1822, 29572, 198, 11748, 33918, 198, 11748, 18931, 198, 11748, 28686, 198, 11748, 28034, 198, 6738, 6121, 364, 13, 7753, 62, 26791, 1330, 9104, 26410, 198, 6738, 19720, 1330, 360, 713, 11, 32233, 11, 309, 29291, 198, 6738, 28034, ...
2.014301
1,888
import logging
[ 11748, 18931, 628, 628, 198 ]
3.8
5
# you just need to add some informations here
[ 2, 345, 655, 761, 284, 751, 617, 4175, 602, 994, 201, 198 ]
3.916667
12
from .IFileConverter import IFileConverter
[ 6738, 764, 5064, 576, 3103, 332, 353, 1330, 314, 8979, 3103, 332, 353, 198 ]
3.071429
14
from functools import wraps from agave.blueprints.decorators import copy_attributes
[ 6738, 1257, 310, 10141, 1330, 27521, 198, 198, 6738, 556, 1015, 13, 17585, 17190, 13, 12501, 273, 2024, 1330, 4866, 62, 1078, 7657, 628, 628 ]
3.52
25
# Copyright 2019 The MACE Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable la...
[ 2, 15069, 13130, 383, 337, 11598, 46665, 13, 1439, 6923, 33876, 13, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 2, 345, 743, 407, 779, 428, 2393, 2845, 287, 11846, 351, ...
2.694332
988
# -*- coding: utf-8 -*- # Copyright 2019 Pierre-Luc Delisle. All Rights Reserved. # # Licensed under the MIT License; # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://opensource.org/licenses/MIT # # Unless required by applicable law or agreed t...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 15069, 13130, 21204, 12, 22946, 4216, 20919, 13, 1439, 6923, 33876, 13, 198, 2, 198, 2, 49962, 739, 262, 17168, 13789, 26, 198, 2, 345, 743, 407, 779, 428, 2393, ...
2.03955
7,282
#!/usr/bin/env python # -*- coding: utf-8 -*- # ClientOpenCV # Server: Jetson TX2 # Client: Jetson TX2/Raspberry Pi3 Docker # 1. FFMPEG UDP StreamingClientAWS10FPS,Jetson TX21FPS # 2. Server # 3. Client # # lib/camera.py: vid = cv2.VideoCapture() # lib/object_detection.py: /home/ubuntu/notebooks/github/SSD-Tensorflow/...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 20985, 11505, 33538, 198, 2, 9652, 25, 14728, 261, 15326, 17, 198, 2, 20985, 25, 14728, 261, 15326, 17, 14, 49, ...
2.458774
473
from collections import defaultdict import json import re import redis import threading import time import traceback import uuid import base64 import binascii TTL = 2 hash_keys = ('cmd', 'user') cmd_hash_keys = { 'comment': ('addr',), 'extra_comment': ('addr',), 'area_comment': ('addr',), 'rename': ('...
[ 6738, 17268, 1330, 4277, 11600, 198, 11748, 33918, 198, 11748, 302, 198, 11748, 2266, 271, 198, 11748, 4704, 278, 198, 11748, 640, 198, 11748, 12854, 1891, 198, 11748, 334, 27112, 198, 11748, 2779, 2414, 198, 11748, 9874, 292, 979, 72, ...
2.350467
428
# -*- coding: utf-8 -*- """URLs to manipulate columns.""" from django.urls import path from ontask.condition import views app_name = 'condition' urlpatterns = [ # # FILTERS # path( '<int:pk>/create_filter/', views.FilterCreateView.as_view(), name='create_filter'), path('<...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 37811, 21886, 82, 284, 18510, 15180, 526, 15931, 198, 6738, 42625, 14208, 13, 6371, 82, 1330, 3108, 198, 198, 6738, 319, 35943, 13, 31448, 1330, 5009, 198, 198, 132...
2.170254
511
"""Copyright 2020 Google LLC Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at https://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distr...
[ 37811, 15269, 12131, 3012, 11419, 198, 198, 26656, 15385, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 5832, 743, 407, 779, 428, 2393, 2845, 287, 11846, 351, 262, 13789, 13, 198, 1639, 743, 7330, ...
3.993789
161
""" Collection of Jax math functions, wrapped to fit Ivy syntax and signature. """ # global import jax as _jax import jax.numpy as _jnp tan = _jnp.tan acos = _jnp.arccos atan = _jnp.arctan atan2 = _jnp.arctan2 cosh = _jnp.cosh atanh = _jnp.arctanh log = _jnp.log exp = _jnp.exp erf = _jax.scipy.special.erf
[ 37811, 198, 36307, 286, 449, 897, 10688, 5499, 11, 12908, 284, 4197, 27386, 15582, 290, 9877, 13, 198, 37811, 198, 198, 2, 3298, 198, 11748, 474, 897, 355, 4808, 73, 897, 198, 11748, 474, 897, 13, 77, 32152, 355, 4808, 73, 37659, 62...
2.230216
139
from pymongo import MongoClient from pyltp import Segmentor if __name__ == '__main__': # insert_questions_from_answered_question() # insert_questions_from_followed_question() # insert_questions_from_asked_question() # insert_questions_from_collected_question() #delete_noise_question() ...
[ 6738, 279, 4948, 25162, 1330, 42591, 11792, 198, 6738, 12972, 2528, 79, 1330, 1001, 5154, 273, 628, 628, 628, 628, 628, 628, 628, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 198, 220, 220, 220, 1303, 7550, 62, 6138,...
2.709524
210
import sys import unittest import os import tempfile from netCDF4 import Dataset import numpy as np from numpy.testing import assert_array_equal FILE_NAME = tempfile.NamedTemporaryFile(suffix='.nc', delete=False).name VL_NAME = 'vlen_type' VL_BASETYPE = np.int16 DIM1_NAME = 'lon' DIM2_NAME = 'lat' nlons = 5; nlats = 5...
[ 11748, 25064, 198, 11748, 555, 715, 395, 198, 11748, 28686, 198, 11748, 20218, 7753, 198, 6738, 2010, 34, 8068, 19, 1330, 16092, 292, 316, 198, 11748, 299, 32152, 355, 45941, 198, 6738, 299, 32152, 13, 33407, 1330, 6818, 62, 18747, 62, ...
2.218232
362
# Copyright 2019 The Sonnet Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable l...
[ 2, 15069, 13130, 383, 6295, 3262, 46665, 13, 1439, 6923, 33876, 13, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 2, 345, 743, 407, 779, 428, 2393, 2845, 287, 11846, 351, ...
2.962575
668
import piarm import time import numpy as np import cv2 import random
[ 11748, 31028, 1670, 198, 11748, 640, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 269, 85, 17, 198, 11748, 4738, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220 ]
2.454545
33
# Copyright 2015, Google Inc. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # * Redistributions of source code must retain the above copyright # notice, this list of conditions and the f...
[ 2, 15069, 1853, 11, 3012, 3457, 13, 198, 2, 1439, 2489, 10395, 13, 198, 2, 198, 2, 2297, 396, 3890, 290, 779, 287, 2723, 290, 13934, 5107, 11, 351, 393, 1231, 198, 2, 17613, 11, 389, 10431, 2810, 326, 262, 1708, 3403, 389, 198, ...
3.494755
572
import os, glob import subprocess from subprocess import DEVNULL, STDOUT abspath = os.path.abspath(__file__) dir_ = os.path.dirname(abspath) files = glob.glob(dir_ + "/_progress_board_tests/_test_progress_board_*.py") for file_path in files: file_name = str(file_path.rsplit("/", maxsplit=1)[1]) try: ...
[ 11748, 28686, 11, 15095, 198, 11748, 850, 14681, 198, 6738, 850, 14681, 1330, 5550, 53, 33991, 11, 48571, 12425, 628, 198, 397, 2777, 776, 796, 28686, 13, 6978, 13, 397, 2777, 776, 7, 834, 7753, 834, 8, 198, 15908, 62, 796, 28686, 1...
2.357414
263
import csv import datetime from collections import defaultdict from django.contrib import messages from django.http.response import FileResponse from django.shortcuts import redirect, render from django.utils import timezone from django.views.decorators.http import require_GET, require_http_methods, require_POST from...
[ 11748, 269, 21370, 198, 11748, 4818, 8079, 198, 6738, 17268, 1330, 4277, 11600, 198, 198, 6738, 42625, 14208, 13, 3642, 822, 1330, 6218, 198, 6738, 42625, 14208, 13, 4023, 13, 26209, 1330, 9220, 31077, 198, 6738, 42625, 14208, 13, 19509, ...
3.422018
436
from __future__ import division from .transformation import Transformation from pyparsing import (Literal, CaselessLiteral, Word, Combine, Group, Optional, ZeroOrMore, Forward, nums, alphas, oneOf) import math import re import operator __author__ = 'Paul McGuire' __version__ = '$Revision: 0.0 $...
[ 6738, 11593, 37443, 834, 1330, 7297, 198, 198, 6738, 764, 7645, 1161, 1330, 49127, 198, 6738, 279, 4464, 945, 278, 1330, 357, 43, 270, 1691, 11, 11294, 5321, 43, 270, 1691, 11, 9678, 11, 29176, 11, 4912, 11, 32233, 11, 198, 220, 220...
2.684211
228
# # this manager stores directly into the db wit Database update from cloudmesh.mongo.DataBaseDecorator import DatabaseUpdate from cloudmesh.mongo.CmDatabase import CmDatabase from cloudmesh.common.console import Console from cloudmesh.storage.Provider import Provider import os from datetime import datetime
[ 2, 198, 2, 428, 4706, 7000, 3264, 656, 262, 20613, 20868, 24047, 4296, 198, 198, 6738, 6279, 76, 5069, 13, 76, 25162, 13, 6601, 14881, 10707, 273, 1352, 1330, 24047, 10260, 198, 6738, 6279, 76, 5069, 13, 76, 25162, 13, 34, 76, 38105...
3.8875
80
import json import logging from redash.query_runner import * from redash.utils import JSONEncoder logger = logging.getLogger(__name__) try: from influxdb import InfluxDBClusterClient enabled = True except ImportError: enabled = False register(InfluxDB)
[ 11748, 33918, 198, 11748, 18931, 198, 198, 6738, 2266, 1077, 13, 22766, 62, 16737, 1330, 1635, 198, 6738, 2266, 1077, 13, 26791, 1330, 19449, 27195, 12342, 198, 198, 6404, 1362, 796, 18931, 13, 1136, 11187, 1362, 7, 834, 3672, 834, 8, ...
3.067416
89