content
stringlengths
1
1.05M
input_ids
listlengths
1
883k
ratio_char_token
float64
1
22.9
token_count
int64
1
883k
""" WSGI config for server project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/3.1/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault('DJANGO_SETTIN...
[ 37811, 198, 19416, 18878, 4566, 329, 4382, 1628, 13, 198, 198, 1026, 32142, 262, 25290, 18878, 869, 540, 355, 257, 8265, 12, 5715, 7885, 3706, 7559, 31438, 15506, 13, 198, 198, 1890, 517, 1321, 319, 428, 2393, 11, 766, 198, 5450, 1378...
3.298013
302
import os from functools import reduce import boto3 import yaml from copy import deepcopy from cryptography.fernet import Fernet from pycbc import json from pycbc.utils import AttrDict as d s3 = boto3.client('s3') _mapping_tag = yaml.resolver.BaseResolver.DEFAULT_MAPPING_TAG _DEFAULTS = d({ 'users': [], 'enc...
[ 11748, 28686, 198, 6738, 1257, 310, 10141, 1330, 4646, 198, 198, 11748, 275, 2069, 18, 198, 11748, 331, 43695, 198, 6738, 4866, 1330, 2769, 30073, 198, 6738, 45898, 13, 69, 1142, 316, 1330, 38982, 316, 198, 198, 6738, 12972, 66, 15630, ...
1.881387
548
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Module Name Description... """ __author__ = "Vincius Pereira" __copyright__ = "Copyright 2021, Vincius Pereira" __credits__ = ["Vincius Pereira","etc."] __date__ = "2021/04/12" __license__ = "GPL" __version__ = "1.0.0" __pythonversion__ = "3.9.1" __maintainer__...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 37811, 19937, 6530, 628, 220, 220, 220, 12489, 986, 198, 198, 37811, 198, 198, 834, 9800, 834, 796, 366, 53,...
2.320285
281
import time import os #parameters sunset_hr=8 dawn_hr=7 daytime_period_min=60 nighttime_period_min=1 time.localtime() print("program starts at ",time.localtime()); while(1): #Is it day or night? time.localtime() hour = time.localtime()[3] minute = time.localtime()[4] hour_float = 1.0*hour+minute...
[ 11748, 640, 198, 11748, 28686, 198, 198, 2, 17143, 7307, 198, 19155, 2617, 62, 11840, 28, 23, 198, 67, 3832, 62, 11840, 28, 22, 198, 820, 2435, 62, 41007, 62, 1084, 28, 1899, 198, 3847, 2435, 62, 41007, 62, 1084, 28, 16, 198, 198,...
2.088968
1,124
__all__ = ['Element', 'Server', 'ExternalEntity', 'Datastore', 'Actor', 'Process', 'SetOfProcesses', 'Dataflow', 'Boundary', 'TM', 'Action', 'Lambda', 'Threat'] from .pytm import Element, Server, ExternalEntity, Dataflow, Datastore, Actor, Process, SetOfProcesses, Boundary, TM, Action, Lambda, Threat
[ 834, 439, 834, 796, 37250, 20180, 3256, 705, 10697, 3256, 705, 41506, 32398, 3256, 705, 27354, 459, 382, 3256, 705, 40277, 3256, 705, 18709, 3256, 705, 7248, 5189, 18709, 274, 3256, 705, 6601, 11125, 3256, 705, 49646, 560, 3256, 705, 15...
3.166667
96
#!/usr/bin/env python # -*- coding: utf-8 -*- # Copyright(c) 2021 The MITRE Corporation. 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/lice...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 15069, 7, 66, 8, 33448, 383, 17168, 2200, 10501, 13, 1439, 2489, 10395, 13, 198, 2, 198, 2, 49962, 739, 262, 248...
2.224004
1,808
import os import argparse from tqdm import tqdm import torch from torch.autograd import Variable from torch.utils import model_zoo # http://scikit-learn.org from sklearn.metrics import accuracy_score from sklearn.metrics import average_precision_score from sklearn.svm import LinearSVC from sklearn.svm import SVC imp...
[ 11748, 28686, 198, 11748, 1822, 29572, 198, 6738, 256, 80, 36020, 1330, 256, 80, 36020, 198, 198, 11748, 28034, 198, 6738, 28034, 13, 2306, 519, 6335, 1330, 35748, 198, 6738, 28034, 13, 26791, 1330, 2746, 62, 89, 2238, 198, 198, 2, 26...
2.924956
573
import csv import os from collections import deque BASE_DIR = os.path.dirname(os.path.abspath(__file__)) INPUT_PATH = os.path.join(BASE_DIR, 'goods_source.csv') OUTPUT_PATH = os.path.join(BASE_DIR, 'result.csv') FILE_ENCODE = 'shift_jis' INPUT_COLS = ('id', 'goods_name', 'price') def import_csv(): """ """...
[ 11748, 269, 21370, 198, 11748, 28686, 198, 6738, 17268, 1330, 390, 4188, 628, 198, 33, 11159, 62, 34720, 796, 28686, 13, 6978, 13, 15908, 3672, 7, 418, 13, 6978, 13, 397, 2777, 776, 7, 834, 7753, 834, 4008, 198, 1268, 30076, 62, 342...
1.808968
1,628
#!/usr/bin/python n = 100000 while n > 0: x = a(n) n = n - 1 print "x=%d" % x
[ 2, 48443, 14629, 14, 8800, 14, 29412, 198, 198, 77, 796, 1802, 830, 198, 4514, 299, 1875, 657, 25, 198, 197, 87, 796, 257, 7, 77, 8, 198, 197, 77, 796, 299, 532, 352, 198, 4798, 366, 87, 28, 4, 67, 1, 4064, 2124, 198 ]
1.8
45
import pandas as pd import numpy as np import swifter
[ 11748, 19798, 292, 355, 279, 67, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 1509, 18171, 628, 628 ]
3.166667
18
import numpy as np size = 9 percentage_max = 0.08 xis = np.linspace(0.1 * (1-percentage_max), 0.1 * (1+percentage_max), size) E_n = [ 85219342462.9973, 85219254693.4412, 85219173007.4296, 85219096895.7433, 85219025899.6604, 85218959605.1170, 85218897637.6421, 85218839657.9502, 85218785358.0968 ] percentage ...
[ 11748, 299, 32152, 355, 45941, 198, 198, 7857, 796, 860, 198, 25067, 496, 62, 9806, 796, 657, 13, 2919, 198, 87, 271, 796, 45941, 13, 21602, 10223, 7, 15, 13, 16, 1635, 357, 16, 12, 25067, 496, 62, 9806, 828, 657, 13, 16, 1635, ...
1.898413
315
#!/usr/bin/env python # -*- coding: utf-8 -*- from caqe import app app.run(debug=True, threaded=True)
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 6738, 1275, 80, 68, 1330, 598, 198, 198, 1324, 13, 5143, 7, 24442, 28, 17821, 11, 40945, 28, 17821, 8 ]
2.372093
43
"""hydra cli. Usage: hydra cli ls slaves hydra cli ls apps hydra cli ls task <app> hydra cli [force] stop <app> hydra cli scale <app> <scale> hydra cli (-h | --help) hydra cli --version Options: -h --help Show this screen. --version Show version. """ __author__ = 'sushil' from docopt imp...
[ 37811, 15511, 430, 537, 72, 13, 198, 198, 28350, 25, 198, 220, 220, 25039, 537, 72, 43979, 13384, 198, 220, 220, 25039, 537, 72, 43979, 6725, 198, 220, 220, 25039, 537, 72, 43979, 4876, 1279, 1324, 29, 198, 220, 220, 25039, 537, 72,...
2.219758
496
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # --------------------------------------------------------------------...
[ 2, 16529, 1783, 10541, 198, 2, 15069, 357, 66, 8, 5413, 10501, 13, 1439, 2489, 10395, 13, 198, 2, 49962, 739, 262, 17168, 13789, 13, 4091, 13789, 13, 14116, 287, 262, 1628, 6808, 329, 5964, 1321, 13, 198, 2, 16529, 1783, 10541, 198,...
4.95
100
############################ Copyrights and license ############################ # # # Copyright 2017 Chris McBride <thehighlander@users.noreply.github.com> # # Copyright 2017 Simon <spam@esemi.ru> ...
[ 14468, 7804, 4242, 6955, 49158, 290, 5964, 1303, 14468, 7804, 21017, 198, 2, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220...
1.834074
1,350
"""Tests for remote module.""" from unittest.mock import Mock, call, patch from samsungtvws.remote import SamsungTVWS def test_send_key(connection: Mock) -> None: """Ensure simple data can be parsed.""" open_response = ( '{"data": {"token": 123456789}, "event": "ms.channel.connect", "from": "host"}' ...
[ 37811, 51, 3558, 329, 6569, 8265, 526, 15931, 198, 6738, 555, 715, 395, 13, 76, 735, 1330, 44123, 11, 869, 11, 8529, 198, 198, 6738, 264, 30136, 14981, 18504, 13, 47960, 1330, 10397, 6849, 19416, 628, 198, 4299, 1332, 62, 21280, 62, ...
2.290396
1,312
import logging from watchFaceParser.models.elements.common.imageSetElement import ImageSetElement
[ 11748, 18931, 198, 198, 6738, 2342, 32388, 46677, 13, 27530, 13, 68, 3639, 13, 11321, 13, 9060, 7248, 20180, 1330, 7412, 7248, 20180, 198 ]
4.125
24
import inspect import numpy as np
[ 11748, 10104, 198, 11748, 299, 32152, 355, 45941, 628, 198 ]
3.6
10
# -*- coding: utf-8 -*- import unittest from openprocurement.api.tests.base import snitch from openprocurement.api.tests.base import BaseWebTest from openprocurement.tender.belowthreshold.tests.base import test_lots from openprocurement.tender.belowthreshold.tests.tender import TenderResourceTestMixin from openprocur...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 11748, 555, 715, 395, 198, 198, 6738, 1280, 36942, 495, 434, 13, 15042, 13, 41989, 13, 8692, 1330, 3013, 2007, 198, 6738, 1280, 36942, 495, 434, 13, 15042, 13, 41989, ...
2.577818
559
from __future__ import print_function, division import os import numpy as np import h5py def dict_2_h5(fname, dic, append=False): '''Writes a dictionary to a hdf5 file with given filename It will use lzf compression for all numpy arrays Args: fname (str): filename to write to dic (dic...
[ 6738, 11593, 37443, 834, 1330, 3601, 62, 8818, 11, 7297, 198, 11748, 28686, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 289, 20, 9078, 628, 198, 4299, 8633, 62, 17, 62, 71, 20, 7, 69, 3672, 11, 288, 291, 11, 24443, 28, 25101, ...
2.19955
1,333
# -*- coding: utf-8 -*- """ Created on Sat Mar 23 21:57:48 2019 INSTITUTO FEDERAL DE EDUCAO, CINCIA E TECNOLOGIA DO PRA - IFPA ANANINDEUA @author: Prof. Dr. Denis C. L. Costa Discentes: Heictor Alves de Oliveira Costa Lucas Pompeu Neves Grupo de ...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 201, 198, 37811, 201, 198, 41972, 319, 7031, 1526, 2242, 2310, 25, 3553, 25, 2780, 13130, 201, 198, 201, 198, 38604, 2043, 3843, 46, 376, 1961, 27130, 5550, 8392, 52, 8141, ...
1.952899
828
if __name__ == '__main__': res = Solution().trap([]) print(res)
[ 197, 197, 198, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 198, 197, 411, 796, 28186, 22446, 46670, 26933, 12962, 198, 197, 4798, 7, 411, 8 ]
2.37931
29
# list(map(int, input().split())) # int(input()) import sys sys.setrecursionlimit(10 ** 9) ''' DP A[n] = A[n-3] + A[n-4] + ... + A[0] (O(S**2)) A[n-1] = A[n-4] + A[n-5] + ... + A[0] A[n] = A[n-3] + A[n-1](O(S)) ''' mod = 10 ** 9 + 7 if __name__ == '__main__': args = [int(input())] main(*args)
[ 2, 1351, 7, 8899, 7, 600, 11, 5128, 22446, 35312, 3419, 4008, 198, 2, 493, 7, 15414, 28955, 198, 198, 11748, 25064, 198, 17597, 13, 2617, 8344, 24197, 32374, 7, 940, 12429, 860, 8, 198, 198, 7061, 6, 198, 6322, 198, 32, 58, 77, ...
1.797688
173
from openmdao.main.factory import Factory from analysis_server import client, proxy, server
[ 6738, 1280, 9132, 5488, 13, 12417, 13, 69, 9548, 1330, 19239, 198, 198, 6738, 3781, 62, 15388, 1330, 5456, 11, 15741, 11, 4382, 628, 198 ]
3.8
25
# Generated by Django 2.1 on 2018-08-24 09:25 from django.db import migrations, models import web.models
[ 2, 2980, 515, 416, 37770, 362, 13, 16, 319, 2864, 12, 2919, 12, 1731, 7769, 25, 1495, 198, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 11, 4981, 198, 11748, 3992, 13, 27530, 628 ]
3.057143
35
# 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. load("//antlir/bzl:maybe_export_file.bzl", "maybe_export_file") load("//antlir/bzl:shape.bzl", "shape") load( "//antlir/bzl:target_tagger....
[ 2, 15069, 357, 66, 8, 3203, 11, 3457, 13, 290, 663, 29116, 13, 198, 2, 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, ...
2.497829
691
from typing import Tuple, List, Optional import json import sys import os import shlex import asyncio import argparse import logging import tempfile from urllib.parse import urlparse logger = logging.getLogger(__name__) # run psql client # run dbdump # generate alembic migrations ALEMBIC_INIT = '''\ # A generic, s...
[ 6738, 19720, 1330, 309, 29291, 11, 7343, 11, 32233, 198, 11748, 33918, 198, 11748, 25064, 198, 11748, 28686, 198, 11748, 427, 2588, 198, 11748, 30351, 952, 198, 11748, 1822, 29572, 198, 11748, 18931, 198, 11748, 20218, 7753, 198, 6738, 29...
3.141956
634
import requests from sys import stderr import re
[ 11748, 7007, 198, 6738, 25064, 1330, 336, 1082, 81, 198, 11748, 302, 628, 198 ]
3.642857
14
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ @author: Ada Gjermundsen year: 2019 - 2021 This script is used to calculate the eddy-induced overturning in CESM2 and NorESM2 (LM and MM) south of 50S for the CMIP experiments piControl and abrupt-4xCO2 after 150 the average time is 30 years The result is used in FIGU...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 198, 31, 9800, 25, 47395, 402, 73, 7780, 917, 6248, 198, 1941, 25, 13130, 532, 33448, 198, 1212, 4226, 318...
2.503704
405
import json import re
[ 11748, 33918, 198, 11748, 302, 628 ]
3.833333
6
############################################################################## # # Copyright (c) 2004 Zope Foundation and Contributors. # All Rights Reserved. # # This software is subject to the provisions of the Zope Public License, # Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution. # THIS SOF...
[ 29113, 29113, 7804, 4242, 2235, 198, 2, 198, 2, 15069, 357, 66, 8, 5472, 1168, 3008, 5693, 290, 25767, 669, 13, 198, 2, 1439, 6923, 33876, 13, 198, 2, 198, 2, 770, 3788, 318, 2426, 284, 262, 8617, 286, 262, 1168, 3008, 5094, 13789...
3.688462
260
# Generated by Django 2.2 on 2020-11-07 01:03 from django.db import migrations, models
[ 2, 2980, 515, 416, 37770, 362, 13, 17, 319, 12131, 12, 1157, 12, 2998, 5534, 25, 3070, 198, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 11, 4981, 628 ]
2.966667
30
import pkg_resources from fastapi import FastAPI from fastapi.openapi.utils import get_openapi from starlette.responses import RedirectResponse, JSONResponse from routers import auth, media, video, photo, user, igtv, clip, album, story, hashtag, direct app = FastAPI() app.include_router(auth.router) app.include_route...
[ 11748, 279, 10025, 62, 37540, 198, 198, 6738, 3049, 15042, 1330, 12549, 17614, 198, 6738, 3049, 15042, 13, 9654, 15042, 13, 26791, 1330, 651, 62, 9654, 15042, 198, 6738, 3491, 21348, 13, 16733, 274, 1330, 2297, 1060, 31077, 11, 19449, 3...
2.496788
467
#!/usr/bin/env python3 from mycelium import CameraD435 from mycelium_utils import Scripter scripter = ScripterExt(log_source="run_d435") scripter.run()
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 198, 6738, 616, 5276, 1505, 1330, 20432, 35, 40064, 198, 6738, 616, 5276, 1505, 62, 26791, 1330, 1446, 5528, 353, 628, 198, 1416, 5528, 353, 796, 1446, 5528, 353, 11627, 7, 6404, ...
2.672414
58
from PIL import Image from pitop import Pitop pitop = Pitop() miniscreen = pitop.miniscreen rocket = Image.open("/usr/lib/python3/dist-packages/pitop/miniscreen/images/rocket.gif") miniscreen.play_animated_image(rocket)
[ 6738, 350, 4146, 1330, 7412, 198, 198, 6738, 6028, 404, 1330, 16889, 404, 198, 198, 15544, 404, 796, 16889, 404, 3419, 198, 1084, 2304, 1361, 796, 6028, 404, 13, 1084, 2304, 1361, 198, 198, 30431, 796, 7412, 13, 9654, 7203, 14, 14629,...
2.765432
81
#!/usr/bin/python -tt import sys, re, math from decimal import * # TODO: work on naming scheme # TODO: add more ORIs # TODO: assemblytree alignment # TODO: Wobble, SOEing # TODO: (digestion, ligation) redundant products # TODO: for PCR and Sequencing, renormalize based on LCS # TODO: tutorials dna_alphabet = {'A':'A...
[ 2, 48443, 14629, 14, 8800, 14, 29412, 532, 926, 198, 198, 11748, 25064, 11, 302, 11, 10688, 198, 6738, 32465, 1330, 1635, 198, 198, 2, 16926, 46, 25, 670, 319, 19264, 7791, 198, 2, 16926, 46, 25, 751, 517, 6375, 3792, 198, 2, 1692...
2.444518
6,065
# -*- coding: UTF-8 -*- """Helper for working with flask""" import logging from flask import Flask from flask import request from typing import Text
[ 2, 532, 9, 12, 19617, 25, 41002, 12, 23, 532, 9, 12, 198, 37811, 47429, 329, 1762, 351, 42903, 37811, 198, 11748, 18931, 198, 198, 6738, 42903, 1330, 46947, 198, 6738, 42903, 1330, 2581, 198, 6738, 19720, 1330, 8255, 628 ]
3.775
40
# Imports import numpy as np import pandas as pd import sys import tqdm import warnings import time import ternary from ternary.helpers import simplex_iterator import multiprocessing as mp warnings.simplefilter("ignore") if sys.platform == "darwin": sys.path.append("/Users/aymericvie/Documents/GitHub/evology/evol...
[ 2, 1846, 3742, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 19798, 292, 355, 279, 67, 198, 11748, 25064, 198, 11748, 256, 80, 36020, 198, 11748, 14601, 198, 11748, 640, 198, 11748, 1059, 77, 560, 198, 6738, 1059, 77, 560, 13, 16794...
2.462107
541
print("@"*30) print("Alistamento - Servio Militar") print("@"*30) from datetime import date ano_nasc = int(input("Digite seu ano de nascimento: ")) ano_atual = date.today().year idade = ano_atual - ano_nasc print(f"Quem nasceu em {ano_nasc} tem {idade} anos em {ano_atual}") if idade == 18: print(" a hora de se a...
[ 4798, 7203, 31, 1, 9, 1270, 8, 198, 4798, 7203, 2348, 396, 3263, 78, 532, 3116, 952, 4460, 7940, 4943, 198, 4798, 7203, 31, 1, 9, 1270, 8, 198, 198, 6738, 4818, 8079, 1330, 3128, 198, 198, 5733, 62, 77, 3372, 796, 493, 7, 15414,...
2.228395
324
# coding=utf-8 # Licensed Materials - Property of IBM # Copyright IBM Corp. 2017 """Testing support for streaming applications. Allows testing of a streaming application by creation conditions on streams that are expected to become valid during the processing. `Tester` is designed to be used with Python's `unittest` ...
[ 2, 19617, 28, 40477, 12, 23, 198, 2, 49962, 24310, 532, 14161, 286, 19764, 198, 2, 15069, 19764, 11421, 13, 2177, 198, 198, 37811, 44154, 1104, 329, 11305, 5479, 13, 198, 198, 34934, 4856, 286, 257, 11305, 3586, 416, 6282, 3403, 198, ...
2.509965
5,369
from flask import request, jsonify, Blueprint from .. import piglatin main = Blueprint('main', __name__)
[ 6738, 42903, 1330, 2581, 11, 33918, 1958, 11, 39932, 628, 198, 6738, 11485, 1330, 12967, 75, 10680, 628, 198, 12417, 796, 39932, 10786, 12417, 3256, 11593, 3672, 834, 8, 628, 198 ]
3.580645
31
from turtle import Screen from paddle import Paddle from ball import Ball import time from scoreboard import ScoreBoard screen = Screen() screen.bgcolor('black') screen.setup(width=800, height=600) screen.title('pong') # Turn off animation to show paddle after it has been shifted screen.tracer(0) right_paddle = Pad...
[ 6738, 28699, 1330, 15216, 198, 198, 6738, 39517, 1330, 350, 37382, 198, 6738, 2613, 1330, 6932, 198, 11748, 640, 198, 6738, 50198, 1330, 15178, 29828, 198, 198, 9612, 796, 15216, 3419, 198, 9612, 13, 35904, 8043, 10786, 13424, 11537, 198,...
2.48996
498
""" Multistate Sales Tax Calculator """ import os from decimal import Decimal from decimal import InvalidOperation def prompt_decimal(prompt): """ Using the prompt, attempt to get a decimal from the user """ while True: try: return Decimal(input(prompt)) except InvalidOperation: ...
[ 37811, 7854, 396, 378, 17329, 9241, 43597, 37227, 198, 198, 11748, 28686, 198, 6738, 32465, 1330, 4280, 4402, 198, 6738, 32465, 1330, 17665, 32180, 198, 198, 4299, 6152, 62, 12501, 4402, 7, 16963, 457, 2599, 198, 220, 220, 220, 37227, 8...
2.474922
638
r""" :mod:`util.verify` -- Input verification ======================================== Common input verification methods. """ # Mandatory imports import numpy as np __all__ = ['verify_tuple_range'] def verify_tuple_range( input_range: tuple, allow_none: bool = True, name: str = None, step: bool = None, ...
[ 81, 37811, 198, 198, 25, 4666, 25, 63, 22602, 13, 332, 1958, 63, 1377, 23412, 19637, 198, 10052, 2559, 198, 198, 17227, 5128, 19637, 5050, 13, 198, 198, 37811, 628, 198, 2, 47018, 17944, 198, 11748, 299, 32152, 355, 45941, 198, 198, ...
2.351375
1,127
import numpy as np import requests from django.db.models import Q from api.models import Photo, User from api.util import logger from ownphotos.settings import IMAGE_SIMILARITY_SERVER
[ 11748, 299, 32152, 355, 45941, 198, 11748, 7007, 198, 6738, 42625, 14208, 13, 9945, 13, 27530, 1330, 1195, 198, 198, 6738, 40391, 13, 27530, 1330, 5555, 11, 11787, 198, 6738, 40391, 13, 22602, 1330, 49706, 198, 6738, 898, 24729, 13, 336...
3.481481
54
# """ """ # end_pymotw_header import struct import binascii values = (1, "ab".encode("utf-8"), 2.7) print("Original values:", values) endianness = [ ("@", "native, native"), ("=", "native, standard"), ("<", "little-endian"), (">", "big-endian"), ("!", "network"), ] for code, name in endianness:...
[ 2, 198, 37811, 198, 37811, 628, 198, 2, 886, 62, 79, 4948, 313, 86, 62, 25677, 198, 11748, 2878, 198, 11748, 9874, 292, 979, 72, 198, 198, 27160, 796, 357, 16, 11, 366, 397, 1911, 268, 8189, 7203, 40477, 12, 23, 12340, 362, 13, ...
2.334586
266
# -*- coding: utf-8 -*- """Module grouping network-related utilities and functions.""" from queue import Empty, Queue from threading import Thread import requests import urllib3 from requests.adapters import HTTPAdapter import pydov request_timeout = 300
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 26796, 36115, 3127, 12, 5363, 20081, 290, 5499, 526, 15931, 198, 198, 6738, 16834, 1330, 33523, 11, 4670, 518, 198, 6738, 4704, 278, 1330, 14122, 198, 198, 11748, ...
3.52
75
from flask.helpers import make_response from flask.templating import render_template from . import main
[ 6738, 42903, 13, 16794, 364, 1330, 787, 62, 26209, 201, 198, 6738, 42903, 13, 11498, 489, 803, 1330, 8543, 62, 28243, 201, 198, 6738, 764, 1330, 1388, 201, 198, 201, 198 ]
3.516129
31
import sbol2 import pandas as pd import os import logging from openpyxl import load_workbook from openpyxl.worksheet.table import Table, TableStyleInfo from openpyxl.utils.dataframe import dataframe_to_rows from openpyxl.styles import Font, PatternFill, Border, Side from requests_html import HTMLSession #wasderivedfro...
[ 11748, 264, 28984, 17, 198, 11748, 19798, 292, 355, 279, 67, 198, 11748, 28686, 198, 11748, 18931, 198, 6738, 1280, 9078, 87, 75, 1330, 3440, 62, 1818, 2070, 198, 6738, 1280, 9078, 87, 75, 13, 5225, 25473, 13, 11487, 1330, 8655, 11, ...
3.547445
137
# # Copyright 2021 Ocean Protocol Foundation # SPDX-License-Identifier: Apache-2.0 # import json import os import time from collections import namedtuple import requests from eth_utils import remove_0x_prefix from ocean_lib.data_provider.data_service_provider import DataServiceProvider from ocean_lib.enforce_typing_sh...
[ 2, 198, 2, 15069, 33448, 10692, 20497, 5693, 198, 2, 30628, 55, 12, 34156, 12, 33234, 7483, 25, 24843, 12, 17, 13, 15, 198, 2, 198, 11748, 33918, 198, 11748, 28686, 198, 11748, 640, 198, 6738, 17268, 1330, 3706, 83, 29291, 198, 198,...
3.323432
303
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ @author: Frank Nussbaum (frank.nussbaum@uni-jena.de), 2019 """ import numpy as np #import scipy #import abc #import time from scipy.optimize import approx_fprime from scipy.linalg import eigh from scipy import optimize from cgmodsel.utils import _logsumexp_condprob...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 198, 198, 31, 9800, 25, 5278, 399, 1046, 24738, 357, 8310, 962, 13, 77, 1046, 24738, 31, 35657, 12, 73, ...
3.219731
223
""" Linear solvers that are used to solve for the gradient of an OpenMDAO System. (Not to be confused with the OpenMDAO Solver classes.) """ # pylint: disable=E0611, F0401 import numpy as np from scipy.sparse.linalg import gmres, LinearOperator from openmdao.main.mpiwrap import MPI from openmdao.util.graph import fix...
[ 37811, 44800, 1540, 690, 326, 389, 973, 284, 8494, 329, 262, 31312, 286, 281, 4946, 44, 5631, 46, 4482, 13, 198, 7, 3673, 284, 307, 10416, 351, 262, 4946, 44, 5631, 46, 4294, 332, 6097, 2014, 198, 37811, 198, 198, 2, 279, 2645, 60...
2.890411
146
c=50 d=10 print("{0} F is {1}C.".format(c,fahr_to_cels(c))) print("{0}C is {1}F.".format(d,cels_to_fahr(d)))
[ 66, 28, 1120, 198, 67, 28, 940, 198, 4798, 7203, 90, 15, 92, 376, 318, 1391, 16, 92, 34, 526, 13, 18982, 7, 66, 11, 69, 993, 81, 62, 1462, 62, 5276, 82, 7, 66, 22305, 198, 4798, 7203, 90, 15, 92, 34, 318, 1391, 16, 92, 37,...
1.651515
66
import csv import re ''' Delete char in substring of original string. Used this function when, you want to delete a character in a substring but not in the rest of the original string. Returns a string -- PARAMETERS -- text: original string start: start of subString end: end of subString char: char to delete,...
[ 11748, 269, 21370, 198, 11748, 302, 198, 198, 7061, 6, 198, 38727, 1149, 287, 3293, 1806, 286, 2656, 4731, 13, 198, 198, 38052, 428, 2163, 618, 11, 345, 765, 284, 12233, 220, 198, 64, 2095, 287, 257, 3293, 1806, 475, 407, 287, 262, ...
3.056159
552
import arcade from .menu_view import MenuView TEXT_COLOR = arcade.csscolor.WHITE
[ 11748, 27210, 198, 198, 6738, 764, 26272, 62, 1177, 1330, 21860, 7680, 198, 198, 32541, 62, 46786, 796, 27210, 13, 25471, 8043, 13, 12418, 12709, 628 ]
3.230769
26
# -*- coding: utf-8 -*- from __future__ import (absolute_import, division, unicode_literals, print_function) __all__ = ['MultiLayerPerceptronBackend'] import os import sys import math import time import types import logging import itertools log = logging.getLogger('sknn') import numpy import theano import sklearn....
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 6738, 11593, 37443, 834, 1330, 357, 48546, 62, 11748, 11, 7297, 11, 28000, 1098, 62, 17201, 874, 11, 3601, 62, 8818, 8, 198, 198, 834, 439, 834, 796, 37250, 29800, 499...
3.222222
180
import django_filters from django.forms import TextInput from src.accounts.models import User from src.application.models import Quiz, StudentGrade
[ 11748, 42625, 14208, 62, 10379, 1010, 198, 6738, 42625, 14208, 13, 23914, 1330, 8255, 20560, 198, 198, 6738, 12351, 13, 23317, 82, 13, 27530, 1330, 11787, 198, 6738, 12351, 13, 31438, 13, 27530, 1330, 2264, 528, 11, 13613, 42233, 628 ]
3.75
40
# Made by Kerberos # this script is part of the Official L2J Datapack Project. # Visit http://www.l2jdp.com/forum/ for more details. import sys from com.l2jserver.gameserver.instancemanager import QuestManager from com.l2jserver.gameserver.model.quest import State from com.l2jserver.gameserver.model.quest import QuestS...
[ 2, 14446, 416, 17337, 527, 418, 198, 2, 428, 4226, 318, 636, 286, 262, 15934, 406, 17, 41, 16092, 499, 441, 4935, 13, 198, 2, 16440, 2638, 1378, 2503, 13, 75, 17, 73, 26059, 13, 785, 14, 27302, 14, 329, 517, 3307, 13, 198, 11748...
2.933333
180
s = [4, 2] if '2' in s: print(s)
[ 82, 796, 685, 19, 11, 362, 60, 198, 361, 705, 17, 6, 287, 264, 25, 198, 220, 220, 220, 3601, 7, 82, 8, 198 ]
1.541667
24
# Copyright 2018 The AI Safety Gridworlds 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 b...
[ 2, 15069, 2864, 383, 9552, 11233, 24846, 6894, 82, 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, ...
2.73615
1,444
from setuptools import find_packages, setup import deepdow DESCRIPTION = "Portfolio optimization with deep learning" LONG_DESCRIPTION = DESCRIPTION INSTALL_REQUIRES = [ "cvxpylayers", "matplotlib", "mlflow", "numpy>=1.16.5", "pandas", "pillow", "seaborn", "torch>=1.5", "tensorboar...
[ 6738, 900, 37623, 10141, 1330, 1064, 62, 43789, 11, 9058, 198, 198, 11748, 2769, 67, 322, 198, 198, 30910, 40165, 796, 366, 13924, 13652, 23989, 351, 2769, 4673, 1, 198, 43, 18494, 62, 30910, 40165, 796, 22196, 40165, 198, 198, 38604, ...
2.244131
426
""" modeling """ from __future__ import absolute_import from __future__ import division from __future__ import print_function import os import time import shutil import numpy as np import tensorflow as tf from tensorflow.contrib import rnn from tensorflow.contrib import layers from utils_cnn import Norm
[ 37811, 198, 4666, 10809, 198, 37811, 198, 6738, 11593, 37443, 834, 1330, 4112, 62, 11748, 198, 6738, 11593, 37443, 834, 1330, 7297, 198, 6738, 11593, 37443, 834, 1330, 3601, 62, 8818, 198, 198, 11748, 28686, 198, 11748, 640, 198, 11748, ...
3.569767
86
#!/usr/bin/env python3 import io import unittest import unittest.mock from typing import Any, Callable, List, Tuple, Union import torch from captum._utils.typing import BaselineType, TensorOrTupleOfTensorsGeneric from captum.attr._core.kernel_shap import KernelShap from tests.helpers.basic import ( BaseTest, ...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 198, 11748, 33245, 198, 11748, 555, 715, 395, 198, 11748, 555, 715, 395, 13, 76, 735, 198, 6738, 19720, 1330, 4377, 11, 4889, 540, 11, 7343, 11, 309, 29291, 11, 4479, 198, 198, ...
2.842105
190
# -*- coding: utf-8 -*- # Define here the models for your scraped items # # See documentation in: # http://doc.scrapy.org/en/latest/topics/items.html import scrapy
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 2, 2896, 500, 994, 262, 4981, 329, 534, 15881, 276, 3709, 198, 2, 198, 2, 4091, 10314, 287, 25, 198, 2, 2638, 1378, 15390, 13, 1416, 2416, 88, 13, 2398, 14, 2...
2.68254
63
# -*- coding: utf-8 -*- # Copyright (c) 2020-2021 Ramon van der Winkel. # All rights reserved. # Licensed under BSD-3-Clause-Clear. See LICENSE file for details. from django.conf import settings from django.test import TestCase from django.urls import reverse from TestHelpers.e2ehelpers import E2EHelpers # updat...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 2, 220, 15069, 357, 66, 8, 12131, 12, 1238, 2481, 7431, 261, 5719, 4587, 7178, 7750, 13, 198, 2, 220, 1439, 2489, 10395, 13, 198, 2, 220, 49962, 739, 347, 10305...
2.087386
1,316
import FWCore.ParameterSet.Config as cms from L1Trigger.TrackTrigger.ProducerSetup_cff import TrackTriggerSetup from L1Trigger.TrackerTFP.Producer_cfi import TrackerTFPProducer_params from L1Trigger.TrackerTFP.ProducerES_cff import TrackTriggerDataFormats from L1Trigger.TrackerTFP.ProducerLayerEncoding_cff import Trac...
[ 11748, 48849, 14055, 13, 36301, 7248, 13, 16934, 355, 269, 907, 198, 198, 6738, 406, 16, 48344, 13, 24802, 48344, 13, 11547, 2189, 40786, 62, 66, 487, 1330, 17762, 48344, 40786, 198, 6738, 406, 16, 48344, 13, 35694, 51, 5837, 13, 1154...
3.221311
366
"""A python library for intuitively creating CUI/TUI interfaces with pre-built widgets. """ # # Author: Jakub Wlodek # Created: 12-Aug-2019 # Docs: https://jwlodek.github.io/py_cui-docs # License: BSD-3-Clause (New/Revised) # # Some python core library imports import sys import os import time import copy impo...
[ 37811, 32, 21015, 5888, 329, 19933, 306, 4441, 327, 10080, 14, 51, 10080, 20314, 351, 662, 12, 18780, 40803, 13, 198, 37811, 198, 198, 2, 198, 2, 6434, 25, 220, 220, 25845, 549, 370, 75, 375, 988, 198, 2, 15622, 25, 220, 1105, 12,...
2.579016
772
# coding: utf-8 """ Isilon SDK Isilon SDK - Language bindings for the OneFS API # noqa: E501 OpenAPI spec version: 3 Contact: sdk@isilon.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ import pprint import re # noqa: F401 import six def to_str(self): ""...
[ 2, 19617, 25, 3384, 69, 12, 23, 198, 198, 37811, 198, 220, 220, 220, 1148, 33576, 26144, 628, 220, 220, 220, 1148, 33576, 26144, 532, 15417, 34111, 329, 262, 1881, 10652, 7824, 220, 1303, 645, 20402, 25, 412, 33548, 628, 220, 220, 2...
2.525373
335
#!/usr/bin/python3 import pymysql
[ 2, 48443, 14629, 14, 8800, 14, 29412, 18, 201, 198, 11748, 279, 4948, 893, 13976, 201, 198, 201, 198 ]
2
19
"""Generate charts from with .npy files containing custom callables through replay.""" import argparse from datetime import datetime import errno import numpy as np import matplotlib.pyplot as plt import os import pytz import sys def parse_flags(args): """Parse training options user can specify in comma...
[ 37811, 8645, 378, 15907, 422, 351, 764, 77, 9078, 3696, 7268, 2183, 869, 2977, 832, 24788, 526, 15931, 198, 198, 11748, 1822, 29572, 198, 6738, 4818, 8079, 1330, 4818, 8079, 198, 11748, 11454, 3919, 198, 11748, 299, 32152, 355, 45941, 1...
2.097815
2,014
import algoliasearch from os import environ from . import algolia_helper from . import snippeter from . import emails from . import helpers from . import fetchers from .helpdesk_helper import add_note, get_conversation, \ get_emails_from_conversation, get_conversation_url_from_cuid from deployer.src.algolia_inte...
[ 11748, 435, 70, 349, 4448, 3679, 198, 6738, 28686, 1330, 551, 2268, 198, 198, 6738, 764, 1330, 435, 70, 22703, 62, 2978, 525, 198, 6738, 764, 1330, 26911, 2357, 198, 6738, 764, 1330, 7237, 198, 6738, 764, 1330, 49385, 198, 6738, 764, ...
3.076923
117
import sys from sqlalchemy.exc import DatabaseError from . import cli from .configuration import settings, init as init_config from .observer import HelpdeskObserver, MaximumClientsReached from .models import init as init_models, metadata, engine, check_db from .smtp import SMTPConfigurationError __version__ = '0....
[ 198, 11748, 25064, 198, 198, 6738, 44161, 282, 26599, 13, 41194, 1330, 24047, 12331, 198, 198, 6738, 764, 1330, 537, 72, 198, 6738, 764, 11250, 3924, 1330, 6460, 11, 2315, 355, 2315, 62, 11250, 198, 6738, 764, 672, 15388, 1330, 10478, ...
3.383838
99
# -*- coding: utf-8 -*- import scrapy import re from locations.items import GeojsonPointItem DAY_DICT = { 'Mon': 'Mo', 'Tue': 'Tu', 'Wed': 'We', 'Thu': 'Th', 'Fri': 'Fr', 'Sat': 'Sa', 'Sun': 'Su', 'Monday': 'Mo', 'Tuesday': 'Tu', 'Wednesday': 'We', 'Thursday': 'Th', 'Th...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 11748, 15881, 88, 198, 11748, 302, 198, 198, 6738, 7064, 13, 23814, 1330, 2269, 13210, 1559, 12727, 7449, 198, 198, 26442, 62, 35, 18379, 796, 1391, 198, 220, 220, 220, ...
2.083682
239
#!/usr/bin/env python from app import app app.run(debug = True)
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 198, 6738, 598, 1330, 598, 198, 1324, 13, 5143, 7, 24442, 796, 6407, 8, 198 ]
2.708333
24
from unittest.mock import patch from app.twitter_learning_journal.dao.os_env import os_environ
[ 6738, 555, 715, 395, 13, 76, 735, 1330, 8529, 198, 198, 6738, 598, 13, 6956, 62, 40684, 62, 24891, 13, 67, 5488, 13, 418, 62, 24330, 1330, 28686, 62, 268, 2268, 628, 628 ]
3
33
import pymongo myclient = pymongo.MongoClient() mydb = myclient["mydb"] hor = mydb["HoR"] sen = mydb["Senator"] gov = mydb["Governor"]
[ 11748, 279, 4948, 25162, 198, 198, 1820, 16366, 796, 279, 4948, 25162, 13, 44, 25162, 11792, 3419, 198, 1820, 9945, 796, 616, 16366, 14692, 1820, 9945, 8973, 198, 17899, 796, 616, 9945, 14692, 28900, 49, 8973, 198, 6248, 796, 616, 9945,...
2.537037
54
""" Test get_obj_value set_obj_value has_obj_value """ import pytest from dayu_widgets import utils
[ 37811, 198, 14402, 651, 62, 26801, 62, 8367, 900, 62, 26801, 62, 8367, 468, 62, 26801, 62, 8367, 198, 37811, 198, 11748, 12972, 9288, 198, 6738, 1110, 84, 62, 28029, 11407, 1330, 3384, 4487, 628, 198 ]
2.833333
36
import sys, yaml, test_appliance if __name__ == '__main__': main()
[ 198, 11748, 25064, 11, 331, 43695, 11, 1332, 62, 1324, 75, 3610, 198, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 198, 220, 220, 220, 1388, 3419, 628 ]
2.387097
31
""" Webcam Detection with Tensorflow calssifier and object distance calculation """ __version__ = "0.1.0" __author__ = "Tim Rosenkranz" __email__ = "tim.rosenkranz@stud.uni-frankfurt.de" __credits__ = "Special thanks to The Anh Vuong who came up with the original idea." \ "This code is also based off of ...
[ 37811, 5313, 20991, 46254, 351, 309, 22854, 11125, 2386, 824, 7483, 290, 2134, 5253, 17952, 37227, 198, 198, 834, 9641, 834, 796, 366, 15, 13, 16, 13, 15, 1, 198, 834, 9800, 834, 796, 366, 14967, 15564, 74, 2596, 89, 1, 198, 834, ...
3.353873
568
import json import logging import config as cfg from modules.const import Keys, AttrKey from modules.zabbix_sender import send_to_zabbix logger = logging.getLogger(__name__) SMART_ATTR_KEY = "ata_smart_attributes" NVME_ATTR_KEY = "nvme_smart_health_information_log" def send_attribute_discovery(result): """ zab...
[ 11748, 33918, 198, 11748, 18931, 198, 11748, 4566, 355, 30218, 70, 198, 198, 6738, 13103, 13, 9979, 1330, 26363, 11, 3460, 81, 9218, 198, 198, 6738, 13103, 13, 89, 6485, 844, 62, 82, 2194, 1330, 3758, 62, 1462, 62, 89, 6485, 844, 19...
2.581498
454
import itertools from midi_to_statematrix import UPPER_BOUND, LOWER_BOUND
[ 11748, 340, 861, 10141, 198, 6738, 3095, 72, 62, 1462, 62, 14269, 368, 265, 8609, 1330, 471, 10246, 1137, 62, 33, 15919, 11, 406, 36048, 62, 33, 15919, 628, 628, 628, 628 ]
2.53125
32
# The MIT License (MIT) # Copyright (c) 2018 by EUMETSAT # # 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,...
[ 2, 383, 17168, 13789, 357, 36393, 8, 198, 2, 15069, 357, 66, 8, 2864, 416, 4576, 44, 32716, 1404, 198, 2, 198, 2, 2448, 3411, 318, 29376, 7520, 11, 1479, 286, 3877, 11, 284, 597, 1048, 16727, 257, 4866, 286, 198, 2, 428, 3788, 2...
2.502064
2,422
import threading from queue import Queue, Empty from time import sleep from libAnt.drivers.driver import Driver from libAnt.message import *
[ 11748, 4704, 278, 198, 6738, 16834, 1330, 4670, 518, 11, 33523, 198, 6738, 640, 1330, 3993, 198, 198, 6738, 9195, 13217, 13, 36702, 13, 26230, 1330, 12434, 198, 6738, 9195, 13217, 13, 20500, 1330, 1635, 628, 628 ]
3.918919
37
# -*- coding: utf-8 -*- """ Created on Thu Sep 30 12:17:04 2021 @author: Oli """ import pytest import pandas as pd import numpy as np import netCDF4 as nc import os from copy import deepcopy os.chdir(os.path.dirname(os.path.realpath(__file__))) wd = os.getcwd().replace('\\', '/') exec(open("test_set...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 201, 198, 37811, 201, 198, 41972, 319, 26223, 8621, 1542, 1105, 25, 1558, 25, 3023, 33448, 201, 198, 201, 198, 31, 9800, 25, 440, 4528, 201, 198, 37811, 201, 198, 201, 198,...
2.219858
2,115
from django.shortcuts import render, redirect from bookalo.pyrebase_settings import db, auth from bookalo.models import * from bookalo.serializers import * #from bookalo.functions import * from rest_framework import status, permissions from rest_framework.decorators import api_view, permission_classes from rest_...
[ 6738, 42625, 14208, 13, 19509, 23779, 1330, 8543, 11, 18941, 201, 198, 6738, 1492, 7335, 13, 9078, 260, 8692, 62, 33692, 1330, 20613, 11, 6284, 201, 198, 6738, 1492, 7335, 13, 27530, 1330, 1635, 201, 198, 6738, 1492, 7335, 13, 46911, ...
3.521739
230
import os import unittest from nefit import NefitClient, NefitResponseException if __name__ == '__main__': unittest.main()
[ 11748, 28686, 198, 11748, 555, 715, 395, 198, 6738, 497, 11147, 1330, 399, 891, 270, 11792, 11, 399, 891, 270, 31077, 16922, 628, 198, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 198, 220, 220, 220, 555, 715, 395, ...
2.826087
46
import datetime from django.db import transaction def compute_diff(obj1, obj2): """ Given two objects compute a list of differences. Each diff dict has the following keys: field - name of the field new - the new value for the field one - value of the field in o...
[ 11748, 4818, 8079, 198, 6738, 42625, 14208, 13, 9945, 1330, 8611, 628, 198, 4299, 24061, 62, 26069, 7, 26801, 16, 11, 26181, 17, 2599, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 11259, 734, 5563, 24061, 257, ...
1.834199
2,117
# Copyright 2018 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). import itertools from pathlib import PurePath from typing import Iterable from pants.base.build_root import BuildRoot from pants.engine.addresses import Address, Addresses, BuildFileAddre...
[ 2, 15069, 2864, 41689, 1628, 20420, 357, 3826, 27342, 9865, 3843, 20673, 13, 9132, 737, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 3826, 38559, 24290, 737, 198, 198, 11748, 340, 861, 10141, 198, 6738, 3108, 80...
3.384615
208
# Copyright 2014 PerfKitBenchmarker 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 appli...
[ 2, 15069, 1946, 2448, 69, 20827, 44199, 4102, 263, 46665, 13, 1439, 2489, 10395, 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, ...
3.910394
279
# Generated by the protocol buffer compiler. DO NOT EDIT! from google.protobuf import descriptor from google.protobuf import message from google.protobuf import reflection from google.protobuf import descriptor_pb2 # @@protoc_insertion_point(imports) import google.protobuf.descriptor_pb2 import netmessages_pb2 impo...
[ 2, 2980, 515, 416, 262, 8435, 11876, 17050, 13, 220, 8410, 5626, 48483, 0, 198, 198, 6738, 23645, 13, 11235, 672, 3046, 1330, 43087, 198, 6738, 23645, 13, 11235, 672, 3046, 1330, 3275, 198, 6738, 23645, 13, 11235, 672, 3046, 1330, 145...
2.279853
61,643
#!/usr/bin/env python import json from auth0_client.Auth0Client import Auth0Client from auth0_client.menu.menu_helper.common import * from auth0_client.menu.menu_helper.pretty import * try: users = {} client = Auth0Client(auth_config()) results = client.active_users() print(pretty(results)) except...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 198, 11748, 33918, 198, 6738, 6284, 15, 62, 16366, 13, 30515, 15, 11792, 1330, 26828, 15, 11792, 198, 6738, 6284, 15, 62, 16366, 13, 26272, 13, 26272, 62, 2978, 525, 13, 11321, 1330, ...
2.882813
128
from __future__ import absolute_import from django.contrib import admin from .models import Deposit, Withdrawal, Support from .forms import DepositForm, WithdrawalForm # Register your models here. admin.site.register(Support)
[ 6738, 11593, 37443, 834, 1330, 4112, 62, 11748, 198, 198, 6738, 42625, 14208, 13, 3642, 822, 1330, 13169, 198, 198, 6738, 764, 27530, 1330, 44158, 11, 2080, 19334, 282, 11, 7929, 198, 6738, 764, 23914, 1330, 44158, 8479, 11, 2080, 19334...
3.68254
63
import os DEBUG = True DATABASES = { 'default': { 'ENGINE': 'django.db.backends.sqlite3', 'NAME': '/tmp/piston.db' } } DATABASE_ENGINE = 'sqlite3' DATABASE_NAME = '/tmp/piston.db' INSTALLED_APPS = ( 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessi...
[ 11748, 28686, 198, 30531, 796, 6407, 198, 35, 1404, 6242, 1921, 1546, 796, 1391, 198, 220, 220, 220, 705, 12286, 10354, 198, 220, 220, 220, 220, 220, 220, 220, 1391, 198, 220, 220, 220, 220, 220, 220, 220, 705, 26808, 8881, 10354, 7...
2.222826
368
""" Combinatorial maps This module provides a decorator that can be used to add semantic to a Python method by marking it as implementing a *combinatorial map*, that is a map between two :class:`enumerated sets <EnumeratedSets>`:: sage: from sage.combinat.combinatorial_map import combinatorial_map sage: class...
[ 37811, 198, 20575, 20900, 498, 8739, 198, 198, 1212, 8265, 3769, 257, 11705, 1352, 326, 460, 307, 973, 284, 751, 37865, 284, 257, 198, 37906, 2446, 416, 18730, 340, 355, 15427, 257, 1635, 785, 8800, 21592, 3975, 25666, 198, 5562, 318, ...
2.626199
3,336
import os from xdress.utils import apiname package = 'cppproj' packagedir = 'cppproj' includes = ['src'] plugins = ('xdress.autoall', 'xdress.pep8names', 'xdress.cythongen', 'xdress.stlwrap', ) extra_types = 'cppproj_extra_types' # non-default value dtypes = [ ('map', 'str', 'int'), ('set', 'in...
[ 11748, 28686, 198, 6738, 2124, 49380, 13, 26791, 1330, 2471, 259, 480, 198, 198, 26495, 796, 705, 20322, 1676, 73, 6, 198, 8002, 1886, 343, 796, 705, 20322, 1676, 73, 6, 198, 42813, 796, 37250, 10677, 20520, 198, 198, 37390, 796, 1920...
2.173052
2,323
import os import subprocess import routines.config as config import routines.helpers as helpers def get_static_info(): """ Outputs data concerning the computer in the C-AWS station """ startup_time = None data_drive_space = None camera_drive_space = None # Get system startup ...
[ 11748, 28686, 201, 198, 11748, 850, 14681, 201, 198, 201, 198, 11748, 31878, 13, 11250, 355, 4566, 201, 198, 11748, 31878, 13, 16794, 364, 355, 49385, 201, 198, 201, 198, 4299, 651, 62, 12708, 62, 10951, 33529, 201, 198, 220, 220, 220...
2.276673
553
import FWCore.ParameterSet.Config as cms from RecoMuon.TrackingTools.MuonServiceProxy_cff import MuonServiceProxy dtEfficiencyMonitor = cms.EDAnalyzer("DTChamberEfficiency", MuonServiceProxy, debug = cms.untracked.bool(True), TrackCollection = cms.InputTag("standAloneMuons"), theMaxChi2 = cms.do...
[ 11748, 48849, 14055, 13, 36301, 7248, 13, 16934, 355, 269, 907, 198, 198, 6738, 3311, 78, 33239, 261, 13, 2898, 5430, 33637, 13, 33239, 261, 16177, 44148, 62, 66, 487, 1330, 8252, 261, 16177, 44148, 220, 198, 198, 28664, 36, 35590, 35...
2.458647
266
from gym_reinmav.envs.mujoco.mujoco_quad import MujocoQuadEnv from gym_reinmav.envs.mujoco.mujoco_quad_hovering import MujocoQuadHoveringEnv from gym_reinmav.envs.mujoco.mujoco_quad_quat import MujocoQuadQuaternionEnv
[ 6738, 11550, 62, 260, 259, 76, 615, 13, 268, 14259, 13, 76, 23577, 25634, 13, 76, 23577, 25634, 62, 47003, 1330, 8252, 73, 25634, 4507, 324, 4834, 85, 198, 6738, 11550, 62, 260, 259, 76, 615, 13, 268, 14259, 13, 76, 23577, 25634, ...
2.214286
98
#!/usr/bin/env python3 # vim:softtabstop=4:ts=4:sw=4:expandtab:tw=120 from ansimarkup import AnsiMarkup, parse import csv import datetime import operator import os from pathlib import Path import re import sys import traceback _VERBOSE = False user_tags = { 'error' : parse('<bold><red>'), 'nam...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 201, 198, 2, 43907, 25, 4215, 8658, 11338, 28, 19, 25, 912, 28, 19, 25, 2032, 28, 19, 25, 11201, 392, 8658, 25, 4246, 28, 10232, 201, 198, 201, 198, 6738, 9093, 320, 668, 929, 133...
2.308057
211
import unittest import shutil from rdyn.alg.RDyn_v2 import RDynV2 if __name__ == '__main__': unittest.main()
[ 11748, 555, 715, 395, 198, 11748, 4423, 346, 198, 6738, 374, 67, 2047, 13, 14016, 13, 35257, 2047, 62, 85, 17, 1330, 31475, 2047, 53, 17, 628, 198, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 198, 220, 220, 220, ...
2.32
50