content
stringlengths
1
1.04M
input_ids
listlengths
1
774k
ratio_char_token
float64
0.38
22.9
token_count
int64
1
774k
#!/usr/bin/env python3 """ doc: https://raw.githubusercontent.com/nasa/SC/master/docs/users_guide/CFS%20SC%20User%20Guide%20Doc%20No%20582-2012-003%20Ver%201.1%202014_12-18.pdf Table specifications: https://github.com/nasa/SC/tree/master/fsw/tables Table image examples: https://github.com/solar-wine/flatsat_data_firm...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 37811, 198, 15390, 25, 3740, 1378, 1831, 13, 12567, 43667, 13, 785, 14, 77, 15462, 14, 6173, 14, 9866, 14, 31628, 14, 18417, 62, 41311, 14, 34, 10652, 4, 1238, 6173, 4, 1238, 1...
2.08651
682
import cv2 cap = cv2.VideoCapture(0) # 0 => pc kamerası, 1 => usb'ye bağlı kamera, 2 => # video'yu kaydetmek için fourcc = cv2.VideoWriter_fourcc(*'XVID') # 4 byte'lık video codec kodu alarak int veri döndürür. out = cv2.VideoWriter('img/output.avi', fourcc, 20.0, (640,480)) # video adı, codec code, fps, video size ...
[ 11748, 269, 85, 17, 198, 198, 11128, 796, 269, 85, 17, 13, 10798, 49630, 7, 15, 8, 1303, 657, 5218, 40653, 479, 2382, 292, 30102, 11, 352, 5218, 38551, 6, 5948, 26605, 33133, 75, 30102, 479, 18144, 11, 362, 5218, 220, 198, 198, 2,...
2.071588
447
c = 0 while True: n = int(input('Digite um número para ver sua tabuada: ')) c += 1 if n < 0: print('Programa encerrado!') break else: for m in range(1, 11): print(f'{n} x {m} = {n * m}')
[ 66, 796, 657, 198, 4514, 6407, 25, 198, 220, 220, 220, 299, 796, 493, 7, 15414, 10786, 19511, 578, 23781, 299, 21356, 647, 78, 31215, 3326, 424, 64, 7400, 84, 4763, 25, 705, 4008, 198, 220, 220, 220, 269, 15853, 352, 198, 220, 220...
1.832061
131
from django.template import Template, RequestContext
[ 6738, 42625, 14208, 13, 28243, 1330, 37350, 11, 19390, 21947, 628 ]
4.909091
11
__all__ = ["allchecks", "checkrsa", "checkpubkey", "checkprivkey", "checkcrt", "checkcsr", "checksshpubkey", "detectandcheck"] from .checks import (allchecks, checkrsa, checkpubkey, checkprivkey, checkcrt, checkcsr, checksshpubkey, detectandcheck)
[ 834, 439, 834, 796, 14631, 439, 42116, 1600, 366, 9122, 3808, 64, 1600, 366, 9122, 12984, 2539, 1600, 366, 9122, 13776, 2539, 1600, 366, 9122, 6098, 83, 1600, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 366, 9122, 6359, 8...
2.413793
116
#!/usr/bin/env python from __future__ import print_function import sys import argparse from json.decoder import JSONDecodeError from seqgen import Sequences parser = argparse.ArgumentParser( formatter_class=argparse.ArgumentDefaultsHelpFormatter, description=('Create genetic sequences according to a ' ...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 198, 6738, 11593, 37443, 834, 1330, 3601, 62, 8818, 198, 198, 11748, 25064, 198, 11748, 1822, 29572, 198, 6738, 33918, 13, 12501, 12342, 1330, 19449, 10707, 1098, 12331, 198, 6738, 33756, ...
2.78438
589
from Calculator.calculator import Calculator from StatsCalculations.mean import mean from StatsCalculations.median import median from StatsCalculations.mode import mode from StatsCalculations.variance import variance from StatsCalculations.standardDeviation import standard_deviation # Source for mean, median, and mo...
[ 6738, 43597, 13, 9948, 3129, 1352, 1330, 43597, 198, 6738, 20595, 9771, 3129, 602, 13, 32604, 1330, 1612, 198, 6738, 20595, 9771, 3129, 602, 13, 1150, 666, 1330, 14288, 198, 6738, 20595, 9771, 3129, 602, 13, 14171, 1330, 4235, 198, 6738...
3.520958
167
import nml import locator from ooo import main
[ 11748, 299, 4029, 198, 11748, 1179, 1352, 198, 6738, 267, 2238, 1330, 1388, 198 ]
3.357143
14
import os import unittest from ..test.factory import suite from ..test.protein import Protein_Test from ..test.general import General_Test from ..calculators.gebf_dft import GEBF_DFT from ..calculators.gebf_pm6 import GEBF_PM6 path = os.path.join(os.getcwd(), "data", "systems") proteins_path = os.path.join(path, "pr...
[ 11748, 28686, 198, 198, 11748, 555, 715, 395, 198, 198, 6738, 11485, 9288, 13, 69, 9548, 1330, 18389, 198, 6738, 11485, 9288, 13, 48693, 1330, 31702, 62, 14402, 198, 6738, 11485, 9288, 13, 24622, 1330, 3611, 62, 14402, 198, 6738, 11485,...
2.788136
118
from setuptools import setup setup(name='venv_easy', version='0.1', description='Easily automating virtual environment creation and implementation from within your Python3 Application.', url='https://github.com/AndrewNeudegg/venv_easy', author='Andrew Neudegg', author_email='andrew.neudeg...
[ 6738, 900, 37623, 10141, 1330, 9058, 198, 198, 40406, 7, 3672, 11639, 574, 85, 62, 38171, 3256, 198, 220, 220, 220, 220, 220, 2196, 11639, 15, 13, 16, 3256, 198, 220, 220, 220, 220, 220, 6764, 11639, 36, 292, 813, 3557, 803, 7166, ...
2.695364
151
import tensorflow as tf import numpy as np import os batch_size = 10 img_path = "/gpfs/fs01/user/s076-844c78348e985f-04662317cedd/notebook/work/Dataset/flickr30k-images/" try: files = sorted(np.array(os.listdir("/gpfs/fs01/user/s076-844c78348e985f-04662317cedd/notebook/work/Dataset/flickr30k-images/"))) n_batc...
[ 11748, 11192, 273, 11125, 355, 48700, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 28686, 198, 198, 43501, 62, 7857, 796, 838, 198, 9600, 62, 6978, 796, 12813, 31197, 9501, 14, 9501, 486, 14, 7220, 14, 82, 2998, 21, 12, 23, 2598, ...
2.170872
872
from flask import Flask,render_template app = Flask(__name__) @app.route("/") @app.route("/pagina2") if __name__ == "__main__": app.run(debug=True)
[ 6738, 42903, 1330, 46947, 11, 13287, 62, 28243, 198, 198, 1324, 796, 46947, 7, 834, 3672, 834, 8, 198, 198, 31, 1324, 13, 38629, 7203, 14, 4943, 198, 198, 31, 1324, 13, 38629, 7203, 14, 79, 363, 1437, 17, 4943, 198, 220, 220, 220,...
2.120482
83
import unittest from predict_model import main
[ 11748, 555, 715, 395, 198, 198, 6738, 4331, 62, 19849, 1330, 1388, 628 ]
3.769231
13
""" This file contains custom elements defined by Adriaan Rol and Felix Schmidt The intention is that these get merged into SchemDraw.elements after cleaning up so as to merge them into the master of CDelker """ import numpy as np import SchemDraw.elements as e # TODO: SQUID # TODO: SQUID with flux bias line # TODO: S...
[ 37811, 198, 1212, 2393, 4909, 2183, 4847, 5447, 416, 1215, 7496, 272, 371, 349, 290, 29721, 24740, 198, 464, 6778, 318, 326, 777, 651, 23791, 656, 1446, 4411, 25302, 13, 68, 3639, 706, 12724, 198, 929, 523, 355, 284, 20121, 606, 656, ...
1.669052
2,795
import logging import time from datetime import datetime, timedelta from logging import LogRecord, StreamHandler from typing import List import httpx from pytest_zebrunner.api.client import ZebrunnerAPI from pytest_zebrunner.api.models import LogRecordModel from pytest_zebrunner.context import zebrunner_context cla...
[ 11748, 18931, 198, 11748, 640, 198, 6738, 4818, 8079, 1330, 4818, 8079, 11, 28805, 12514, 198, 6738, 18931, 1330, 5972, 23739, 11, 13860, 25060, 198, 6738, 19720, 1330, 7343, 198, 198, 11748, 2638, 87, 198, 198, 6738, 12972, 9288, 62, 2...
2.238095
840
import os import time import warnings from queue import Queue from typing import Any, Dict, Optional, Tuple, Union import gym import numpy as np import tensorflow as tf from stable_baselines.bench import load_results from stable_baselines.common.callbacks import BaseCallback, EventCallback from stable_baselines.common...
[ 11748, 28686, 198, 11748, 640, 198, 11748, 14601, 198, 6738, 16834, 1330, 4670, 518, 198, 6738, 19720, 1330, 4377, 11, 360, 713, 11, 32233, 11, 309, 29291, 11, 4479, 198, 198, 11748, 11550, 198, 11748, 299, 32152, 355, 45941, 198, 11748...
3.079775
890
# conversion constants to atomic units hbar = 1.0 m_e = 1.0 a_0 = 1.0 e = 1.0 hartree = 1.0 Eh = hartree nm = 1.8897261246257702e1 Å = 1.8897261246257702 eV = 0.03674932217565499 ps = 4.134137333518212e4 fs = 4.134137333518212 V = 0.03674932217565499 V_m = 1.9446903811488876e-12 T = 4.254382157326325e-06 m = 1.889726...
[ 2, 11315, 38491, 284, 17226, 4991, 198, 198, 71, 5657, 796, 352, 13, 15, 198, 76, 62, 68, 796, 352, 13, 15, 198, 64, 62, 15, 796, 352, 13, 15, 198, 68, 796, 352, 13, 15, 198, 18647, 631, 796, 352, 13, 15, 198, 43894, 796, 28...
1.963068
352
import os import json
[ 11748, 28686, 201, 198, 11748, 33918, 201, 198, 201, 198, 201, 198, 201, 198, 201, 198 ]
2
16
from unittest import skip from django.core.management import call_command from django.test import TestCase class ProductAvailabilityTest(TestCase): """Test bootstrap_devsite script (touching many codepaths)""" @skip def test_bootstrap_script(self): """If no orders have been made, the product is ...
[ 6738, 555, 715, 395, 1330, 14267, 198, 198, 6738, 42625, 14208, 13, 7295, 13, 27604, 1330, 869, 62, 21812, 198, 6738, 42625, 14208, 13, 9288, 1330, 6208, 20448, 628, 198, 4871, 8721, 29841, 14402, 7, 14402, 20448, 2599, 198, 220, 220, ...
3.157025
121
""" jans.pycloudlib.pki ~~~~~~~~~~~~~~~~~~~ This module contains various Public Key Infrastucture (PKI) helpers. """ import os from datetime import datetime from datetime import timedelta from ipaddress import IPv4Address from cryptography.hazmat.backends import default_backend from cryptography import x509 from cry...
[ 37811, 198, 73, 504, 13, 9078, 17721, 8019, 13, 79, 4106, 198, 27156, 4907, 93, 198, 198, 1212, 8265, 4909, 2972, 5094, 7383, 4806, 5685, 4782, 495, 357, 47, 37845, 8, 49385, 13, 198, 37811, 198, 198, 11748, 28686, 198, 6738, 4818, ...
2.285789
3,849
from django.conf.urls.defaults import * # Uncomment this for admin: #from django.contrib import admin urlpatterns = patterns('', # Example: # (r'^{{ project_name }}/', include('{{ project_name }}.foo.urls')), # Uncomment this for admin docs: #(r'^admin/doc/', include('django.contrib.admindocs.urls'))...
[ 6738, 42625, 14208, 13, 10414, 13, 6371, 82, 13, 12286, 82, 1330, 1635, 198, 198, 2, 791, 23893, 428, 329, 13169, 25, 198, 2, 6738, 42625, 14208, 13, 3642, 822, 1330, 13169, 198, 198, 6371, 33279, 82, 796, 7572, 10786, 3256, 198, 22...
2.588235
153
""" configuration object that holds data about the language detection api """ config = { "url": 'https://ws.detectlanguage.com/0.2/detect', "headers": { 'User-Agent': 'Detect Language API Python Client 1.4.0', 'Authorization': 'Bearer {}', } }
[ 37811, 198, 11250, 3924, 2134, 326, 6622, 1366, 546, 262, 3303, 13326, 40391, 198, 37811, 198, 198, 11250, 796, 1391, 198, 220, 220, 220, 366, 6371, 1298, 705, 5450, 1378, 18504, 13, 15255, 478, 16129, 13, 785, 14, 15, 13, 17, 14, 1...
2.650485
103
# # This file is part of Python Module for Cube Builder AWS. # Copyright (C) 2019-2021 INPE. # # Cube Builder AWS is free software; you can redistribute it and/or modify it # under the terms of the MIT License; see LICENSE file for more details. # import json import os import re import shutil from copy import deepcopy...
[ 2, 198, 2, 770, 2393, 318, 636, 286, 11361, 19937, 329, 23315, 35869, 30865, 13, 198, 2, 15069, 357, 34, 8, 13130, 12, 1238, 2481, 3268, 11401, 13, 198, 2, 198, 2, 23315, 35869, 30865, 318, 1479, 3788, 26, 345, 460, 17678, 4163, 3...
2.725146
684
""" Precisely APIs Enhance & enrich your data, applications, business processes, and workflows with rich location, information, and identify APIs. # noqa: E501 The version of the OpenAPI document: 11.9.3 Generated by: https://openapi-generator.tech """ import re # noqa: F401 import sys # noqa: F4...
[ 37811, 198, 220, 220, 220, 28737, 786, 306, 23113, 628, 220, 220, 220, 32999, 1222, 22465, 534, 1366, 11, 5479, 11, 1597, 7767, 11, 290, 670, 44041, 351, 5527, 4067, 11, 1321, 11, 290, 5911, 23113, 13, 220, 1303, 645, 20402, 25, 412...
2.056978
8,828
import mitdeeplearning.util import mitdeeplearning.lab1 import mitdeeplearning.lab2 import mitdeeplearning.lab3
[ 11748, 10255, 22089, 40684, 13, 22602, 198, 198, 11748, 10255, 22089, 40684, 13, 23912, 16, 198, 11748, 10255, 22089, 40684, 13, 23912, 17, 198, 11748, 10255, 22089, 40684, 13, 23912, 18, 198 ]
3.53125
32
from AdmissibleSet import (AdmissibleSparseGridNodeSet, RefinableNodesSet) from LocalRefinementStrategy import (CreateAllChildrenRefinement, ANOVARefinement, AddNode) from RefinementManager import RefinementManager from...
[ 6738, 1215, 21597, 7248, 1330, 357, 2782, 21597, 50, 29572, 41339, 19667, 7248, 11, 198, 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, 6524, 259, ...
1.66212
953
"""A setuptools based setup module.""" # Always prefer setuptools over distutils from setuptools import setup, find_packages from os import path # Extract the tag from the system from subimage import __version__ # Get the long description from the README file with open("README.md", encoding="utf-8") as f: long_d...
[ 37811, 32, 900, 37623, 10141, 1912, 9058, 8265, 526, 15931, 198, 198, 2, 16622, 4702, 900, 37623, 10141, 625, 1233, 26791, 198, 6738, 900, 37623, 10141, 1330, 9058, 11, 1064, 62, 43789, 198, 6738, 28686, 1330, 3108, 198, 198, 2, 29677, ...
2.944625
307
''' Created on Jan 11, 2012 @author: Mirna Lerotic, 2nd Look Consulting http://www.2ndlookconsulting.com/ Copyright (c) 2013, Stefan Vogt, Argonne National Laboratory All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided th...
[ 7061, 6, 201, 198, 41972, 319, 2365, 1367, 11, 2321, 201, 198, 201, 198, 31, 9800, 25, 7381, 2616, 31831, 6210, 11, 362, 358, 6803, 41005, 201, 198, 220, 220, 220, 220, 220, 220, 220, 220, 2638, 1378, 2503, 13, 17, 358, 5460, 5936...
3.231884
690
""" Copyright (c) 2016-present, Facebook, Inc. All rights reserved. This source code is licensed under the BSD-style license found in the LICENSE file in the root directory of this source tree. An additional grant of patent rights can be found in the PATENTS file in the same directory. """ import unittest import time ...
[ 37811, 198, 15269, 357, 66, 8, 1584, 12, 25579, 11, 3203, 11, 3457, 13, 198, 3237, 2489, 10395, 13, 198, 1212, 2723, 2438, 318, 11971, 739, 262, 347, 10305, 12, 7635, 5964, 1043, 287, 262, 198, 43, 2149, 24290, 2393, 287, 262, 6808,...
3.463415
123
class MyClass: "This is my second class" a = 10 # Output: 10 print(MyClass.a) # Output: <function MyClass.func at 0x0000000003079BF8> print(MyClass.func.self) # Output: 'This is my second class' print(MyClass.__doc__)
[ 4871, 2011, 9487, 25, 201, 198, 197, 1, 1212, 318, 616, 1218, 1398, 1, 201, 198, 197, 64, 796, 838, 201, 198, 201, 198, 2, 25235, 25, 838, 201, 198, 4798, 7, 3666, 9487, 13, 64, 8, 201, 198, 201, 198, 2, 25235, 25, 1279, 8818,...
2.427083
96
"""This module contains functions that sets up material models .. codeauthor:: Knut Andreas Meyer """ # Abaqus imports from abaqusConstants import * import material def add_material(the_model, material_spec, name): """Add a material to the_model according to material_spec with name=name. :param the_mode...
[ 37811, 1212, 8265, 4909, 5499, 326, 5621, 510, 2587, 4981, 198, 198, 492, 2438, 9800, 3712, 6102, 315, 33728, 23975, 198, 37811, 198, 2, 2275, 30188, 385, 17944, 198, 6738, 450, 30188, 385, 34184, 1187, 1330, 1635, 198, 11748, 2587, 628...
2.104279
2,033
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. import logging import torch import torch.nn as nn import torch.nn.functional as F import torch.nn.init as init from ml.rl import types as rlt from ml.rl.models.base import ModelBase from ml.rl.models.fully_connected_network...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 2, 15069, 357, 66, 8, 3203, 11, 3457, 13, 290, 663, 29116, 13, 1439, 2489, 10395, 13, 198, 198, 11748, 18931, 198, 198, 11748, 28034, 198, 11748, 28034, 13, 20471, 355, 299, 77, ...
3.266667
135
# -*- coding: utf-8 -*- import pytest import IP2Location apikey = "demo" package = "WS24" usessl = True addons = ["continent", "country", "region", "city", "geotargeting", "country_groupings", "time_zone_info"] language = "en" ws = IP2Location.IP2LocationWebService(apikey,package,usessl)
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 11748, 12972, 9288, 198, 198, 11748, 6101, 17, 14749, 198, 198, 499, 522, 88, 796, 366, 9536, 78, 1, 198, 26495, 796, 366, 19416, 1731, 1, 198, 385, 408, 75, 79...
2.607143
112
import graphene # cookbook/schema.py from graphene_django import DjangoObjectType from ingredients.models import Category, Ingredient schema = graphene.Schema(query=MainQuery)
[ 11748, 42463, 628, 628, 198, 2, 4255, 2070, 14, 15952, 2611, 13, 9078, 198, 6738, 42463, 62, 28241, 14208, 1330, 37770, 10267, 6030, 198, 198, 6738, 9391, 13, 27530, 1330, 21743, 11, 17589, 445, 1153, 628, 628, 628, 628, 628, 628, 628...
3.37931
58
import logging import requests from urllib.parse import urljoin from .context import ContextManager, ctx logger = logging.getLogger(__name__)
[ 11748, 18931, 198, 11748, 7007, 198, 6738, 2956, 297, 571, 13, 29572, 1330, 19016, 22179, 198, 198, 6738, 764, 22866, 1330, 30532, 13511, 11, 269, 17602, 198, 198, 6404, 1362, 796, 18931, 13, 1136, 11187, 1362, 7, 834, 3672, 834, 8, 6...
3.418605
43
from django.db import migrations, models
[ 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 11, 4981, 628 ]
3.818182
11
# -*- coding: utf-8 -*- import logging import os import sys import csv import codecs from io import BytesIO from django_extensions.management.signals import post_command, pre_command def _make_writeable(filename): """ Make sure that the file is writeable. Useful if our source is read-only. """ ...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 11748, 18931, 198, 11748, 28686, 198, 11748, 25064, 198, 11748, 269, 21370, 198, 11748, 40481, 82, 198, 198, 6738, 33245, 1330, 2750, 4879, 9399, 198, 198, 6738, 42625, 14...
2.57716
648
from gazette.spiders.base.fecam import FecamGazetteSpider
[ 6738, 308, 1031, 5857, 13, 2777, 4157, 13, 8692, 13, 69, 721, 321, 1330, 376, 721, 321, 38, 1031, 5857, 41294, 628 ]
2.681818
22
# -*- coding:utf8 -*- # Performance optimization model(Maybe Only Linux) if __name__ == "__main__": from main import app from werkzeug.contrib.profiler import ProfilerMiddleware from config import GLOBAL Host = GLOBAL.get('Host') Port = GLOBAL.get('Port') app.config['PROFILE'] = True app.ws...
[ 2, 532, 9, 12, 19617, 25, 40477, 23, 532, 9, 12, 198, 2, 15193, 23989, 2746, 7, 13300, 5514, 7020, 8, 198, 198, 361, 11593, 3672, 834, 6624, 366, 834, 12417, 834, 1298, 198, 220, 220, 220, 422, 1388, 1330, 598, 198, 220, 220, 22...
2.664596
161
import collections from typing import Tuple, Union, List import numpy as np from .mapping_utils import * class SimpleInstance: """ Detected instance inside an image > processes like so: output.pred_classes, output.scores, output.pred_boxes.tensor """ class IntermediateOutput: """ Contains al...
[ 11748, 17268, 198, 6738, 19720, 1330, 309, 29291, 11, 4479, 11, 7343, 198, 11748, 299, 32152, 355, 45941, 198, 6738, 764, 76, 5912, 62, 26791, 1330, 1635, 628, 198, 4871, 17427, 33384, 25, 198, 220, 220, 220, 37227, 198, 220, 220, 220...
3.391837
245
# -*- coding: utf-8 -*-
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198 ]
1.714286
14
from __future__ import unicode_literals from django.db import models # Create your models here. RIDE_STATUS_CHOICES = ( ('waiting', 'Waiting'), ('ongoing', 'Ongoing'), ('complete', 'Complete') ) AVAILABLE_DRIVER_CHOICES = ( (1, 'Driver 1'), (2, 'Driver 2'), (3, 'Driver 3'), (4, 'Driver 4'...
[ 6738, 11593, 37443, 834, 1330, 28000, 1098, 62, 17201, 874, 198, 198, 6738, 42625, 14208, 13, 9945, 1330, 4981, 198, 198, 2, 13610, 534, 4981, 994, 13, 198, 49, 14114, 62, 35744, 2937, 62, 44899, 34444, 796, 357, 198, 220, 220, 220, ...
2.353741
147
"""Test bench for the Verilog module 'nt_gen_replay_top'.""" # The MIT License # # Copyright (c) 2017-2019 by the author(s) # # 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 restricti...
[ 37811, 14402, 7624, 329, 262, 4643, 346, 519, 8265, 705, 429, 62, 5235, 62, 260, 1759, 62, 4852, 30827, 15931, 198, 2, 383, 17168, 13789, 198, 2, 198, 2, 15069, 357, 66, 8, 2177, 12, 23344, 416, 262, 1772, 7, 82, 8, 198, 2, 198,...
2.37776
6,115
__all__ = ["Deskew", "YAMLBits", "ImageUtils"]
[ 834, 439, 834, 796, 14631, 5960, 365, 86, 1600, 366, 56, 2390, 30501, 896, 1600, 366, 5159, 18274, 4487, 8973, 628 ]
2.285714
21
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # # The MIT License (MIT) # # Copyright (c) 2017 Sean Robertson # # 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...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 198, 2, 383, 17168, 13789, 357, 36393, 8, 198, 2, 198, 2, 15069, 357, 66, 8, 2177, 11465, 23590, 198, 2, 1...
2.88958
1,929
""" Utility functions related to mesh processing """ import numpy as np def save_point_cloud_ply(output_fname, pts, colors=None): """ Save a 3D point cloud in PLY acii format Parameters ---------- output_fname : str Filename to save to pts : array_like The 3D points. Shape = Nx3 ...
[ 37811, 34030, 5499, 3519, 284, 19609, 7587, 37227, 198, 11748, 299, 32152, 355, 45941, 628, 198, 4299, 3613, 62, 4122, 62, 17721, 62, 2145, 7, 22915, 62, 69, 3672, 11, 43344, 11, 7577, 28, 14202, 2599, 198, 220, 220, 220, 37227, 12793...
2.119777
2,154
""" ''' Description: Problem 1897 (Redistribute Characters to Make All Strings Equal) - Solution 1 Version: 1.0.0.20220322 Author: Arvin Zhao Date: 2022-03-10 13:58:02 Last Editors: Arvin Zhao LastEditTime: 2022-03-22 19:36:37 ''' """ from typing import List
[ 37811, 198, 7061, 6, 198, 11828, 25, 20647, 49429, 357, 7738, 396, 4163, 26813, 284, 6889, 1439, 4285, 654, 28701, 8, 532, 28186, 352, 198, 14815, 25, 352, 13, 15, 13, 15, 13, 1238, 17572, 37283, 198, 13838, 25, 943, 7114, 29436, 19...
2.932584
89
import os try: print(os.environ['PYTHONPATH'].split(os.pathsep)) finally: pass try: import neoradio2 print(neoradio2.__file__) except Exception as ex: input(str(ex)) import time if __name__ == "__main__": for device in neoradio2.find(): print("Opening {} {}...".format(device.name, dev...
[ 11748, 28686, 198, 28311, 25, 198, 220, 220, 220, 3601, 7, 418, 13, 268, 2268, 17816, 47, 56, 4221, 1340, 34219, 6, 4083, 35312, 7, 418, 13, 6978, 325, 79, 4008, 198, 69, 3289, 25, 198, 220, 220, 220, 1208, 198, 198, 28311, 25, ...
1.829778
6,656
from .models import * from django.forms import ModelForm from django import forms from .views import * from django.contrib.auth.forms import UserCreationForm from django.contrib.auth.models import User # class bill_form(ModelForm): # class Meta: # model = bill # fields = ['name', 'amount', 'email...
[ 6738, 764, 27530, 1330, 1635, 198, 6738, 42625, 14208, 13, 23914, 1330, 9104, 8479, 198, 6738, 42625, 14208, 1330, 5107, 198, 6738, 764, 33571, 1330, 1635, 198, 6738, 42625, 14208, 13, 3642, 822, 13, 18439, 13, 23914, 1330, 11787, 12443, ...
2.918919
111
from brownie import accounts, interface, Contract from brownie import (Bank, SimpleBankConfig, SimplePriceOracle, PancakeswapGoblin, StrategyAllHTOnly, StrategyLiquidate, StrategyWithdrawMinimizeTrading, StrategyAddTwoSidesOptimal, PancakeswapGoblinConfig, TripleSlopeModel, ConfigurableInterestBank...
[ 6738, 7586, 494, 1330, 5504, 11, 7071, 11, 17453, 198, 6738, 7586, 494, 1330, 357, 28650, 11, 17427, 28650, 16934, 11, 17427, 18124, 48625, 11, 49957, 1124, 86, 499, 38, 672, 2815, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 22...
3.323171
164
#!/usr/bin/env python __author__ = 'Florian Hase' #======================================================================== import numpy as np from ObservationParser.hierarchies import HierarchicalLossShaper from Utils.utils import VarDictParser, ObsDictParser #====================================================...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 198, 834, 9800, 834, 796, 705, 26953, 666, 367, 589, 6, 198, 198, 2, 23926, 2559, 198, 198, 11748, 299, 32152, 355, 45941, 220, 198, 198, 6738, 11086, 13208, 46677, 13, 71, 959, 998,...
4.776596
94
from models import User SQL_CRIAR_USUARIO = 'INSERT INTO users (name, email, username, password) values (%s, %s, %s, %s)' SQL_LOGIN_USUARIO = 'SELECT id, name, email, username, password from users where email = %s'
[ 6738, 4981, 1330, 11787, 198, 198, 17861, 62, 34, 7112, 1503, 62, 2937, 52, 1503, 9399, 796, 705, 20913, 17395, 39319, 2985, 357, 3672, 11, 3053, 11, 20579, 11, 9206, 8, 3815, 37633, 82, 11, 4064, 82, 11, 4064, 82, 11, 4064, 82, 3...
2.765432
81
from django.contrib import admin from .models import getintouch # Register your models here. admin.site.register(getintouch)
[ 6738, 42625, 14208, 13, 3642, 822, 1330, 13169, 198, 6738, 764, 27530, 1330, 651, 600, 7673, 198, 198, 2, 17296, 534, 4981, 994, 13, 198, 198, 28482, 13, 15654, 13, 30238, 7, 1136, 600, 7673, 8, 198 ]
3.432432
37
#!/usr/bin/env python # -*- coding: utf-8 -*- import os import graphene from fastapi import FastAPI from starlette.graphql import GraphQLApp from graphvl.schema import Query, Mutation app = FastAPI() app.add_route("/", GraphQLApp(schema=graphene.Schema(query=Query, mutation=Mutation)))
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 11748, 28686, 198, 11748, 42463, 198, 198, 6738, 3049, 15042, 1330, 12549, 17614, 198, 6738, 3491, 21348, 13, 34960,...
2.891089
101
from rook.serverless import serverless_rook @serverless_rook
[ 6738, 10929, 13, 15388, 1203, 1330, 4382, 1203, 62, 305, 482, 198, 198, 31, 15388, 1203, 62, 305, 482, 198 ]
3.1
20
"""Tools for Python database scripts.""" _symbols = { # skytools.adminscript 'AdminScript': 'skytools.adminscript:AdminScript', # skytools.config 'Config': 'skytools.config:Config', # skytools.dbservice 'DBService': 'skytools.dbservice:DBService', 'ServiceContext': 'skytools.dbservice:Serv...
[ 198, 37811, 33637, 329, 11361, 6831, 14750, 526, 15931, 198, 198, 62, 1837, 2022, 10220, 796, 1391, 198, 220, 220, 220, 1303, 6766, 31391, 13, 324, 42951, 6519, 198, 220, 220, 220, 705, 46787, 7391, 10354, 705, 15688, 31391, 13, 324, ...
2.35037
4,050
# coding=utf-8 # Copyright 2022 The Google Research Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicab...
[ 2, 19617, 28, 40477, 12, 23, 198, 2, 15069, 33160, 383, 3012, 4992, 46665, 13, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 2, 345, 743, 407, 779, 428, 2393, 2845, 287, ...
2.483598
4,024
from .pillar_encoder import PillarFeatureNet, PointPillarsScatter from .voxel_encoder import SimpleVoxel, VFEV3_ablation, VoxelFeatureExtractorV3 from .feature_normalizer import FeatureNormalizer __all__ = [ "VoxelFeatureExtractorV3", "SimpleVoxel", "PillarFeatureNet", "PointPillarsScatter", "VFEV...
[ 6738, 764, 41643, 62, 12685, 12342, 1330, 39179, 38816, 7934, 11, 6252, 47, 359, 945, 3351, 1436, 198, 6738, 764, 85, 1140, 417, 62, 12685, 12342, 1330, 17427, 53, 1140, 417, 11, 569, 15112, 53, 18, 62, 397, 7592, 11, 28035, 417, 38...
2.620438
137
# -*- coding: utf-8 -*- """ Object Detection Viewer """ import serial, os, copy import sys import ctypes #setup sdl os.environ["PYSDL2_DLL_PATH"] = "..\env" from sdl2 import * from math import sin, cos, radians import sdl2.ext import sdl2.sdlgfx as gfx
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 9515, 46254, 3582, 263, 37227, 198, 11748, 11389, 11, 28686, 11, 4866, 198, 11748, 25064, 198, 11748, 269, 19199, 198, 198, 2, 40406, 264, 25404, 198, 418, 13, 26...
2.392857
112
import pandas as pd import xarray as xr from . import parameterized, randn, requires_dask
[ 11748, 19798, 292, 355, 279, 67, 198, 198, 11748, 2124, 18747, 355, 2124, 81, 198, 198, 6738, 764, 1330, 11507, 1143, 11, 43720, 77, 11, 4433, 62, 67, 2093, 628, 628 ]
3.064516
31
# Copyright 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. # SPDX-License-Identifier: MIT-0 import base64 import boto3 import os import json import time import uuid trackingId = os.environ['TRACKING_ID'] personalize_events = boto3.client(service_name='personalize-events')
[ 2, 15069, 12131, 6186, 13, 785, 11, 3457, 13, 393, 663, 29116, 13, 1439, 6923, 33876, 13, 198, 2, 30628, 55, 12, 34156, 12, 33234, 7483, 25, 17168, 12, 15, 198, 198, 11748, 2779, 2414, 198, 11748, 275, 2069, 18, 198, 11748, 28686, ...
3.186813
91
import logging import os import uuid import warnings import sys import click import mal_tier_list_bbcode_gen.exceptions as exceptions from flask import Flask, render_template, request, send_from_directory from mal_tier_list_bbcode_gen.tierlistgenerator import TierListGenerator from waitress import serve from werkzeug...
[ 11748, 18931, 198, 11748, 28686, 198, 11748, 334, 27112, 198, 11748, 14601, 198, 11748, 25064, 198, 198, 11748, 3904, 198, 11748, 6428, 62, 24948, 62, 4868, 62, 11848, 8189, 62, 5235, 13, 1069, 11755, 355, 13269, 198, 198, 6738, 42903, ...
2.824926
337
# Generated by Django 3.2.5 on 2022-02-15 20:45 from django.db import migrations, models
[ 2, 2980, 515, 416, 37770, 513, 13, 17, 13, 20, 319, 33160, 12, 2999, 12, 1314, 1160, 25, 2231, 198, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 11, 4981, 628 ]
2.84375
32
# # ovirt-engine-setup -- ovirt engine setup # # Copyright oVirt Authors # SPDX-License-Identifier: Apache-2.0 # # """Grafana Database plugin.""" import gettext from otopi import constants as otopicons from otopi import filetransaction from otopi import plugin from otopi import util from ovirt_engine_setup import...
[ 2, 198, 2, 19643, 2265, 12, 18392, 12, 40406, 1377, 19643, 2265, 3113, 9058, 198, 2, 198, 2, 15069, 267, 53, 2265, 46665, 198, 2, 30628, 55, 12, 34156, 12, 33234, 7483, 25, 24843, 12, 17, 13, 15, 198, 2, 198, 2, 628, 198, 37811,...
2.691218
353
# Generated by Django 3.2.4 on 2022-03-18 12:09 from django.db import migrations, models import django.db.models.deletion
[ 2, 2980, 515, 416, 37770, 513, 13, 17, 13, 19, 319, 33160, 12, 3070, 12, 1507, 1105, 25, 2931, 198, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 11, 4981, 198, 11748, 42625, 14208, 13, 9945, 13, 27530, 13, 2934, 1616, 295, ...
2.818182
44
import matplotlib.pyplot as plt import numpy as np from sklearn import datasets, linear_model from sklearn.metrics import mean_squared_error diabetes = datasets.load_diabetes() # (['data', 'target', 'frame', 'DESCR', 'feature_names', 'data_filename', 'target_filename']) # print(diabetes.keys()) # print(dia...
[ 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 201, 198, 11748, 299, 32152, 355, 45941, 201, 198, 6738, 1341, 35720, 1330, 40522, 11, 14174, 62, 19849, 201, 198, 6738, 1341, 35720, 13, 4164, 10466, 1330, 1612, 62, 16485, 1144,...
2.597872
470
# (c) 2021 Amazon Web Services, Inc. or its affiliates. All Rights Reserved. # This AWS Content is provided subject to the terms of the AWS Customer Agreement available at # https://aws.amazon.com/agreement/ or other written agreement between Customer # and Amazon Web Services, Inc. """Notifier. Provies core logic fo...
[ 2, 357, 66, 8, 33448, 6186, 5313, 6168, 11, 3457, 13, 393, 663, 29116, 13, 1439, 6923, 33876, 13, 198, 2, 770, 30865, 14041, 318, 2810, 2426, 284, 262, 2846, 286, 262, 30865, 22092, 12729, 1695, 379, 198, 2, 3740, 1378, 8356, 13, ...
3.679104
134
import json import sys import github access_key = sys.argv[-1] git = github.Github(access_key) symfem = git.get_repo("mscroggs/symfem") branch = symfem.get_branch("main") ref = symfem.get_git_ref("heads/main") base_tree = symfem.get_git_tree(branch.commit.sha) vfile1 = symfem.get_contents("VERSION", branch.commit.s...
[ 11748, 33918, 198, 11748, 25064, 198, 11748, 33084, 198, 198, 15526, 62, 2539, 796, 25064, 13, 853, 85, 58, 12, 16, 60, 198, 198, 18300, 796, 33084, 13, 38, 10060, 7, 15526, 62, 2539, 8, 198, 198, 37047, 69, 368, 796, 17606, 13, 1...
2.465409
318
from flask import Blueprint, render_template, redirect, url_for, flash from flask_login import login_required, current_user views = Blueprint("views", __name__) @views.route("/") @views.route("/home") @login_required
[ 6738, 42903, 1330, 39932, 11, 8543, 62, 28243, 11, 18941, 11, 19016, 62, 1640, 11, 7644, 198, 6738, 42903, 62, 38235, 1330, 17594, 62, 35827, 11, 1459, 62, 7220, 198, 198, 33571, 796, 39932, 7203, 33571, 1600, 11593, 3672, 834, 8, 628...
3.363636
66
from sqlalchemy.ext.declarative import DeclarativeMeta from sqlalchemy.orm.collections import InstrumentedList from spiderlib.db.db_modules.quote import Quote from spiderlib.db.db_modules.author import Author from spiderlib.db.db_modules.tag import Tag import json class DBEncoderJson(json.JSONEncoder): """ ...
[ 198, 198, 6738, 44161, 282, 26599, 13, 2302, 13, 32446, 283, 876, 1330, 16691, 283, 876, 48526, 198, 6738, 44161, 282, 26599, 13, 579, 13, 4033, 26448, 1330, 42410, 276, 8053, 198, 198, 6738, 19230, 8019, 13, 9945, 13, 9945, 62, 18170...
2.082636
956
from django.apps import AppConfig """ this models require wallets module """
[ 6738, 42625, 14208, 13, 18211, 1330, 2034, 16934, 198, 198, 37811, 428, 4981, 2421, 29608, 8265, 37227, 628 ]
4.388889
18
import equipment import logging import os import time import numpy import scipy.io as sio import mks import util
[ 11748, 5112, 198, 11748, 18931, 198, 11748, 28686, 198, 11748, 640, 198, 198, 11748, 299, 32152, 198, 11748, 629, 541, 88, 13, 952, 355, 264, 952, 198, 198, 11748, 285, 591, 198, 11748, 7736, 628, 198, 220, 220, 220, 220, 220, 220, ...
2.527273
55
"""Definitions for the primitive `Jinv`.""" from ..abstract.infer import compute_jinv_type from ..lib import bprop_to_grad_transform, standard_prim from ..operations import J from . import primitives as P @standard_prim(P.Jinv) async def infer_Jinv(self, engine, x): """Infer the return type of primitive `Jinv`."...
[ 37811, 7469, 50101, 329, 262, 20049, 4600, 41, 16340, 63, 526, 15931, 198, 198, 6738, 11485, 397, 8709, 13, 259, 2232, 1330, 24061, 62, 73, 16340, 62, 4906, 198, 6738, 11485, 8019, 1330, 275, 22930, 62, 1462, 62, 9744, 62, 35636, 11, ...
2.546269
335
# -*- coding: utf-8 -*- # Simple Bot (SimpBot) # Copyright 2016-2017, Ismael Lugo (kwargs) import time from simpbot import envvars from simpbot import localedata
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 17427, 18579, 357, 8890, 79, 20630, 8, 198, 2, 15069, 1584, 12, 5539, 11, 1148, 2611, 417, 31541, 78, 357, 46265, 22046, 8, 198, 198, 11748, 640, 198, 6738, 985, ...
2.688525
61
from odoo import models
[ 6738, 16298, 2238, 1330, 4981, 628 ]
4.166667
6
list=[2,5,9,6] print(revers(list)) # def revers(arr): # new_array=[] # for i in range(len(arr)-1,-1,-1): # print(i) # new_array.append(arr[i]) # print(new_array) # revers(list) # def revers(arr): # new_array=[0 for i in arr ] # for i in range(0,len(arr)): # new_array[i]=a...
[ 4868, 41888, 17, 11, 20, 11, 24, 11, 21, 60, 198, 198, 4798, 7, 260, 690, 7, 4868, 4008, 198, 198, 2, 825, 10372, 7, 3258, 2599, 198, 2, 220, 220, 220, 220, 649, 62, 18747, 28, 21737, 198, 2, 220, 220, 220, 220, 329, 1312, 2...
1.88
200
# -*- coding: utf-8 -*- ### ----------------------------- IMPORTS --------------------------- ### import click import os import json ### ----------------------------------------------------------------- ### def check_main(folder, data_dir, csv_dir): """ Check if folders exist and if h5 files match csv files....
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 21017, 34400, 32501, 30023, 33002, 220, 22369, 6329, 44386, 198, 11748, 3904, 198, 11748, 28686, 198, 11748, 33918, 198, 21017, 16529, 12, 44386, 628, 198, 4299, 2198, ...
2.179169
5,972
import json # import function unused for now, until we have a sample JSON file. class Processing: """Contains logic for processing json from wrapper. :mean: defines mean price of input prices from mean :location: defines average lat and long for input. :average: defines average. :median: defines ...
[ 11748, 33918, 220, 1303, 1330, 2163, 21958, 329, 783, 11, 1566, 356, 423, 257, 6291, 19449, 2393, 13, 198, 198, 4871, 28403, 25, 198, 220, 220, 220, 37227, 4264, 1299, 9156, 329, 7587, 33918, 422, 29908, 13, 628, 220, 220, 220, 1058, ...
2.737617
747
import json, logging, pytest from decimal import Decimal from cryptoadvance.specter.helpers import alias, generate_mnemonic from cryptoadvance.specter.key import Key from cryptoadvance.specter.rpc import BitcoinRPC from cryptoadvance.specter.specter import get_rpc, Specter from cryptoadvance.specter.specter_error impor...
[ 11748, 33918, 11, 18931, 11, 12972, 9288, 198, 6738, 32465, 1330, 4280, 4402, 198, 6738, 8194, 1170, 19259, 13, 4443, 263, 13, 16794, 364, 1330, 16144, 11, 7716, 62, 10295, 50016, 198, 6738, 8194, 1170, 19259, 13, 4443, 263, 13, 2539, ...
3.558824
136
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Wed Aug 5 22:34:12 2020 @author: arti """ import pandas as pd dict_data = {'c0':[1,2,3], 'c1':[4,5,6], 'c2':[7,8,9], 'c3':[10,11,12], 'c4':[13,14,15]} df = pd.DataFrame(dict_data, index=['r0', 'r1', 'r2']) print(df); print('--') ndf = df.sort_index(asc...
[ 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, 41972, 319, 3300, 2447, 220, 642, 2534, 25, 2682, 25, 1065, 12131, 198, 198, 31, 9800, 25, 1242, 72, ...
2
202
import graphene from django.test import TestCase from django.contrib.auth.models import User from chigre.models import Brewery, BeerType, KegType, TapType, Beer, Keg, Tap, Pub from chigreQL.schema import Query # Create your tests here.
[ 11748, 42463, 198, 198, 6738, 42625, 14208, 13, 9288, 1330, 6208, 20448, 198, 6738, 42625, 14208, 13, 3642, 822, 13, 18439, 13, 27530, 1330, 11787, 198, 6738, 442, 328, 260, 13, 27530, 1330, 31003, 11, 16971, 6030, 11, 509, 1533, 6030, ...
3.260274
73
#!/usr/bin/env python3 import os import pathlib import smtplib import ssl import config from message import Message
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 198, 11748, 28686, 198, 11748, 3108, 8019, 198, 11748, 895, 83, 489, 571, 198, 11748, 264, 6649, 198, 198, 11748, 4566, 198, 6738, 3275, 1330, 16000, 628 ]
3.216216
37
import numpy as np import xpress as xp
[ 11748, 299, 32152, 355, 45941, 198, 11748, 2124, 8439, 355, 36470 ]
3.454545
11
import deriva.core.ermrest_model as em from deriva.core import ErmrestCatalog, get_credential from deriva.core.ermrest_config import tag as chaise_tags from requests.exceptions import HTTPError from attrdict import AttrDict def default_table_config(catalog, schema_name, table_name): """ This function adds t...
[ 11748, 4587, 12151, 13, 7295, 13, 7780, 2118, 62, 19849, 355, 795, 198, 6738, 4587, 12151, 13, 7295, 1330, 5256, 76, 2118, 49015, 11, 651, 62, 66, 445, 1843, 198, 6738, 4587, 12151, 13, 7295, 13, 7780, 2118, 62, 11250, 1330, 7621, 3...
2.458401
1,226
from django.urls import path from .views import TaskListCreateView, TaskUpdateDeleteView urlpatterns = [ path('', TaskListCreateView.as_view()), path('<int:pk>/', TaskUpdateDeleteView.as_view()), ]
[ 6738, 42625, 14208, 13, 6371, 82, 1330, 3108, 198, 6738, 764, 33571, 1330, 15941, 8053, 16447, 7680, 11, 15941, 10260, 38727, 7680, 198, 198, 6371, 33279, 82, 796, 685, 198, 220, 220, 220, 3108, 10786, 3256, 15941, 8053, 16447, 7680, 13...
2.835616
73
import link_cpp link_cpp.main() import mathx_cpp mathx_cpp.main() import mathx print(mathx.inverse(2.0))
[ 11748, 2792, 62, 20322, 198, 8726, 62, 20322, 13, 12417, 3419, 198, 198, 11748, 10688, 87, 62, 20322, 198, 11018, 87, 62, 20322, 13, 12417, 3419, 198, 198, 11748, 10688, 87, 198, 4798, 7, 11018, 87, 13, 259, 4399, 7, 17, 13, 15, 4...
2.409091
44
#!/usr/bin/python3.8 import sys import unittest from pprint import pprint from jinja2 import Template sys.path.append('sphinxcontrib') from src import ExtIndexRack as IndexRack from . import util #------------------------------------------------------------------- #kana_text_word_listの上書き testcase01in = { 'doc01': [...
[ 2, 48443, 14629, 14, 8800, 14, 29412, 18, 13, 23, 198, 11748, 25064, 198, 11748, 555, 715, 395, 198, 6738, 279, 4798, 1330, 279, 4798, 198, 6738, 474, 259, 6592, 17, 1330, 37350, 198, 198, 17597, 13, 6978, 13, 33295, 10786, 82, 746,...
1.852807
659
import os import yaml import tempfile from abstract_tts import AbstractMp3TTSEngine from src import diagnose from src import paths try: import gtts except ImportError: pass class GoogleTTS(AbstractMp3TTSEngine): """ Uses the Google TTS online translator Requires pymad and gTTS to be available ...
[ 11748, 28686, 198, 11748, 331, 43695, 198, 11748, 20218, 7753, 198, 198, 6738, 12531, 62, 83, 912, 1330, 27741, 28861, 18, 51, 4694, 13798, 198, 6738, 12351, 1330, 37489, 198, 6738, 12351, 1330, 13532, 198, 198, 28311, 25, 198, 220, 220...
2.871429
140
#!/usr/bin/env python # Copyright (c) 2014 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. """Downloads a patch and changed files from Rietveld. Prints the patch of the most recent patchset to stdout. """ try: import ba...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 15069, 357, 66, 8, 1946, 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, ...
3.05694
281
#!/usr/bin/env python import socket import select import errno import os import sys import time import getopt import string import shutil import configuration_client import log_client import udp_client import library_manager_client import e_errors import enstore_functions2 import Trace import enstore_mail interval = ...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 198, 11748, 17802, 198, 11748, 2922, 198, 11748, 11454, 3919, 198, 11748, 28686, 198, 11748, 25064, 198, 11748, 640, 198, 11748, 651, 8738, 198, 11748, 4731, 198, 11748, 4423, 346, 198, ...
1.951799
2,863
#!/usr/bin/env python import roslib import rospy import math import tf import geometry_msgs.msg from pycrazyswarm import * import datetime import csv import time import julia jl = julia.Julia(compiled_modules=False) from julia import Main # Enable or disable using Julia MPC algorithm USE_JULIA = True # Assemble file...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 11748, 686, 6649, 571, 198, 11748, 686, 2777, 88, 198, 11748, 10688, 198, 11748, 48700, 198, 11748, 22939, 62, 907, 14542, 13, 19662, 198, 6738, 12972, 66, 3247, 893, 31975, 1330, 1635, ...
2.313576
1,046
from calendar import timegm from decimal import Decimal as MyDecimal, ROUND_HALF_EVEN from email.utils import formatdate import six from sanic_restful_api import marshal __all__ = ["String", "FormattedString", "DateTime", "Float", "Integer", "Arbitrary", "Nested", "List", "Raw", "Boolean", "Fixe...
[ 198, 6738, 11845, 1330, 640, 39870, 198, 6738, 32465, 1330, 4280, 4402, 355, 2011, 10707, 4402, 11, 371, 15919, 62, 39, 1847, 37, 62, 20114, 1677, 198, 6738, 3053, 13, 26791, 1330, 5794, 4475, 198, 11748, 2237, 198, 6738, 5336, 291, 6...
2.72584
2,411
from flask import render_template, request, current_app, jsonify, redirect, session from init import app from utils.interceptors import jsonRequest, loginRequiredJSON, loginOptional from utils.jsontools import * from utils.exceptions import UserError from utils import getDefaultJSON from services.rating import rateV...
[ 198, 6738, 42903, 1330, 8543, 62, 28243, 11, 2581, 11, 1459, 62, 1324, 11, 33918, 1958, 11, 18941, 11, 6246, 198, 198, 6738, 2315, 1330, 598, 198, 6738, 3384, 4487, 13, 3849, 984, 669, 1330, 33918, 18453, 11, 17594, 37374, 40386, 11, ...
3.298077
312
import fnmatch import os def custom_import_module(full_config_path): """ Import and execute a python file as a module. Useful for import the experiment module and the analysis module. Args: full_config_path: Full path to the python file. Returns: The python file as a module """ i...
[ 11748, 24714, 15699, 198, 11748, 28686, 628, 198, 4299, 2183, 62, 11748, 62, 21412, 7, 12853, 62, 11250, 62, 6978, 2599, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 17267, 290, 12260, 257, 21015, 2393, 355, 257, 8265, 13, 49511, 32...
2.75125
800
"""pymodel config""" import tracemultiplexer tracemultiplexer.unsynchronized = True # ignore tracelock, may corrupt log file
[ 37811, 9078, 19849, 4566, 37811, 198, 198, 11748, 491, 330, 368, 586, 2480, 87, 263, 198, 198, 2213, 330, 368, 586, 2480, 87, 263, 13, 403, 28869, 11413, 1143, 796, 6407, 1303, 8856, 491, 330, 417, 735, 11, 743, 10622, 2604, 2393, 6...
2.976744
43
from django.urls import path, include from pages import views urlpatterns = [ path('', views.index, name='index'), path('about', views.about, name='about') ]
[ 6738, 42625, 14208, 13, 6371, 82, 1330, 3108, 11, 2291, 201, 198, 6738, 5468, 1330, 5009, 201, 198, 201, 198, 6371, 33279, 82, 796, 685, 201, 198, 220, 220, 220, 3108, 10786, 3256, 5009, 13, 9630, 11, 1438, 11639, 9630, 33809, 201, ...
2.707692
65
# -*- coding: utf-8 -*- import re
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 11748, 302, 628, 198 ]
2
18
import Constant
[ 11748, 20217, 628 ]
5.666667
3
"""This module tests the `/withdraw` endpoint.""" import json from unittest.mock import patch import pytest from stellar_sdk.keypair import Keypair from stellar_sdk.transaction_envelope import TransactionEnvelope from polaris import settings from polaris.helpers import format_memo_horizon from polaris.management.comm...
[ 37811, 1212, 8265, 5254, 262, 4600, 14, 4480, 19334, 63, 36123, 526, 15931, 198, 11748, 33918, 198, 6738, 555, 715, 395, 13, 76, 735, 1330, 8529, 198, 198, 11748, 12972, 9288, 198, 6738, 25041, 62, 21282, 74, 13, 2539, 24874, 1330, 73...
2.602355
5,095
#-*- coding:utf-8 -*- import tensorflow as tf from tensorflow.contrib import predictor from sklearn.metrics.pairwise import cosine_similarity, euclidean_distances import pdb import traceback import pickle import logging import multiprocessing from functools import partial import os,sys ROOT_PATH = '/'.join(os.path.absp...
[ 2, 12, 9, 12, 19617, 25, 40477, 12, 23, 532, 9, 12, 198, 11748, 11192, 273, 11125, 355, 48700, 198, 6738, 11192, 273, 11125, 13, 3642, 822, 1330, 41568, 198, 6738, 1341, 35720, 13, 4164, 10466, 13, 24874, 3083, 1330, 8615, 500, 62, ...
3.08642
162