content
stringlengths
1
1.04M
input_ids
listlengths
1
774k
ratio_char_token
float64
0.38
22.9
token_count
int64
1
774k
import pymongo from django.shortcuts import render from main.secrets import connect_string from django.http import HttpResponse my_client = pymongo.MongoClient(connect_string) dbname = my_client['plates'] glass = dbname["glass"] archives = dbname["archives"]
[ 11748, 279, 4948, 25162, 198, 6738, 42625, 14208, 13, 19509, 23779, 1330, 8543, 198, 6738, 1388, 13, 2363, 8004, 1330, 2018, 62, 8841, 198, 198, 6738, 42625, 14208, 13, 4023, 1330, 367, 29281, 31077, 198, 198, 1820, 62, 16366, 796, 279,...
3.275
80
# -*- coding: utf-8 -*- from pyfeedbacker.app import stage from pyfeedbacker.app.controller import base
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 6738, 12972, 12363, 49978, 13, 1324, 1330, 3800, 198, 6738, 12972, 12363, 49978, 13, 1324, 13, 36500, 1330, 2779, 628, 198 ]
2.972222
36
#!/usr/bin/env python #Create the rsrc/audio.swf containing all mp3s in the rsrc folder import os, os.path, string, sys, shutil print "Testing Flash" os.system("bin/createImportAllForSwc.py src src/TestHydraxCompilation.hx") os.system("haxe -main TestHydraxCompilation -cp src -swf build/delete.swf -lib polygonal -lib...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 198, 2, 16447, 262, 374, 10677, 14, 24051, 13, 2032, 69, 7268, 477, 29034, 18, 82, 287, 262, 374, 10677, 9483, 198, 11748, 28686, 11, 28686, 13, 6978, 11, 4731, 11, 25064, 11, 4423, ...
2.652439
328
import argparse import paddle import numpy as np from model_pp import Generator from tqdm import tqdm from PIL import Image if __name__ == "__main__": parser = argparse.ArgumentParser(description="Generate samples from the generator") parser.add_argument( "--size", type=int, default=1024, help="out...
[ 11748, 1822, 29572, 198, 198, 11748, 39517, 198, 11748, 299, 32152, 355, 45941, 198, 6738, 2746, 62, 381, 1330, 35986, 198, 6738, 256, 80, 36020, 1330, 256, 80, 36020, 198, 6738, 350, 4146, 1330, 7412, 628, 198, 198, 361, 11593, 3672, ...
2.357043
717
import pytest import os import json import shutil # Getting absolute paths, names and regexes TEST_DIR = os.path.dirname(os.path.abspath(__file__)) ROOT_DIR = os.path.dirname(TEST_DIR) SERVICE_CONFIG_NAME = "service_manifest.yml" SERVICE_CONFIG_PATH = os.path.join(ROOT_DIR, SERVICE_CONFIG_NAME) TEMP_SERVICE_CONFIG_PAT...
[ 11748, 12972, 9288, 198, 11748, 28686, 198, 11748, 33918, 198, 11748, 4423, 346, 198, 198, 2, 18067, 4112, 13532, 11, 3891, 290, 40364, 274, 198, 51, 6465, 62, 34720, 796, 28686, 13, 6978, 13, 15908, 3672, 7, 418, 13, 6978, 13, 397, ...
2.225275
546
from queryutils.databases import PostgresDB l = "lupe" p = PostgresDB(l, l, l) #p.connect() ##cursor = p.execute("SELECT id, text, time, is_interactive, is_suspicious, search_type, \ ## earliest_event, latest_event, range, is_realtime, \ ## splunk_search_id, execution_time, saved_search_n...
[ 6738, 12405, 26791, 13, 19608, 18826, 1330, 2947, 34239, 11012, 198, 75, 796, 366, 2290, 431, 1, 198, 79, 796, 2947, 34239, 11012, 7, 75, 11, 300, 11, 300, 8, 198, 198, 2, 79, 13, 8443, 3419, 198, 2235, 66, 21471, 796, 279, 13, ...
2.181077
613
#!/usr/bin/env python3 import datetime import argparse from botocore.exceptions import ClientError from copy import deepcopy import time
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 11748, 4818, 8079, 198, 198, 11748, 1822, 29572, 198, 6738, 10214, 420, 382, 13, 1069, 11755, 1330, 20985, 12331, 198, 6738, 4866, 1330, 2769, 30073, 198, 11748, 640, 628 ]
3.564103
39
from .draw_card import * from .draw_card_row import * from .draw_card_stack import * from .draw_sjuan_stack import *
[ 6738, 764, 19334, 62, 9517, 1330, 1635, 198, 6738, 764, 19334, 62, 9517, 62, 808, 1330, 1635, 198, 6738, 764, 19334, 62, 9517, 62, 25558, 1330, 1635, 198, 6738, 764, 19334, 62, 82, 73, 7258, 62, 25558, 1330, 1635, 198 ]
2.925
40
# Copyright 2009-2012 James P Goodwin ped tiny python editor """ module that implements the keymapping and translation of keys to command identifiers """ import curses import curses.ascii import sys import os from ped_core import cmd_names from ped_core import keytab import pprint import time # default keymap for the ...
[ 2, 15069, 3717, 12, 6999, 3700, 350, 46653, 7190, 7009, 21015, 5464, 198, 37811, 8265, 326, 23986, 262, 1994, 76, 5912, 290, 11059, 286, 8251, 284, 3141, 42814, 37227, 198, 11748, 43878, 198, 11748, 43878, 13, 292, 979, 72, 198, 11748, ...
1.95524
8,177
# Copyright Notice: # Copyright 2017-2019 DMTF. All rights reserved. # License: BSD 3-Clause License. For full text see link: https://github.com/DMTF/Redfish-Interface-Emulator/blob/master/LICENSE.md # Manager Template File import copy import strgen _TEMPLATE = \ { "@Redfish.Copyright": "Copyright 2014-2019 DMTF...
[ 2, 15069, 17641, 25, 198, 2, 15069, 2177, 12, 23344, 14848, 10234, 13, 1439, 2489, 10395, 13, 198, 2, 13789, 25, 347, 10305, 513, 12, 2601, 682, 13789, 13, 1114, 1336, 2420, 766, 2792, 25, 3740, 1378, 12567, 13, 785, 14, 23127, 1023...
2.089613
1,964
import networkx as nx import pickle import abc import logging
[ 11748, 3127, 87, 355, 299, 87, 198, 11748, 2298, 293, 198, 11748, 450, 66, 198, 11748, 18931, 198 ]
3.444444
18
from __future__ import annotations from spark_auto_mapper_fhir.fhir_types.uri import FhirUri from spark_auto_mapper_fhir.value_sets.generic_type import GenericTypeCode from spark_auto_mapper.type_definitions.defined_types import AutoMapperTextInputType # This file is auto-generated by generate_classes so do not edi...
[ 6738, 11593, 37443, 834, 1330, 37647, 198, 198, 6738, 9009, 62, 23736, 62, 76, 11463, 62, 69, 71, 343, 13, 69, 71, 343, 62, 19199, 13, 9900, 1330, 376, 71, 343, 52, 380, 198, 198, 6738, 9009, 62, 23736, 62, 76, 11463, 62, 69, 71...
2.865462
498
# from django import forms from fitbox.cadastro_paciente.models import CadastroPaciente from bootstrap_modal_forms.forms import BSModalModelForm
[ 2, 422, 42625, 14208, 1330, 5107, 198, 198, 6738, 4197, 3524, 13, 66, 324, 459, 305, 62, 33587, 1153, 68, 13, 27530, 1330, 20517, 459, 305, 18844, 1153, 68, 198, 6738, 6297, 26418, 62, 4666, 282, 62, 23914, 13, 23914, 1330, 24218, 5...
3.12766
47
from .writer import MzIdentMLWriter, default_cv_list __all__ = [ "MzIdentMLWriter", "default_cv_list" ]
[ 6738, 764, 16002, 1330, 337, 89, 33234, 5805, 34379, 11, 4277, 62, 33967, 62, 4868, 628, 198, 834, 439, 834, 796, 685, 198, 220, 220, 220, 366, 44, 89, 33234, 5805, 34379, 1600, 198, 220, 220, 220, 366, 12286, 62, 33967, 62, 4868, ...
2.425532
47
import pytest import numpy as np import scipy.sparse as sp from joblib import cpu_count from sklearn.utils._testing import assert_almost_equal from sklearn.utils._testing import assert_array_equal from sklearn.utils._testing import assert_array_almost_equal from sklearn import datasets from sklearn.base impor...
[ 11748, 12972, 9288, 201, 198, 11748, 299, 32152, 355, 45941, 201, 198, 11748, 629, 541, 88, 13, 82, 29572, 355, 599, 201, 198, 6738, 1693, 8019, 1330, 42804, 62, 9127, 201, 198, 201, 198, 6738, 1341, 35720, 13, 26791, 13557, 33407, 13...
2.602941
1,836
import os import filecmp import unittest from ccquery.data import json_controller from ccquery.utils import io_utils class TestJsonController(unittest.TestCase): """Test the json controller methods""" def setUp(self): """Set up local variables""" self.jsonl_file = os.path.join( os...
[ 11748, 28686, 198, 11748, 2393, 48991, 198, 11748, 555, 715, 395, 198, 6738, 36624, 22766, 13, 7890, 1330, 33918, 62, 36500, 198, 6738, 36624, 22766, 13, 26791, 1330, 33245, 62, 26791, 198, 198, 4871, 6208, 41, 1559, 22130, 7, 403, 715,...
2.249425
1,740
# -*- coding: utf-8 -*- # @Time : 2020/9/2 13:35 # @Author : KevinHoo # @Site : # @File : URLdecoder.py.py # @Software: PyCharm # @Email : hu.rui0530@gmail.com from decodeAllinOne import jsdecode decode_dict = { ' ': '%20', '"': '%22', '#': '%23', '%': '%25', '&': '%26', '(': '%28', ')':...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 2488, 7575, 1058, 12131, 14, 24, 14, 17, 1511, 25, 2327, 198, 2, 2488, 13838, 1058, 7939, 39, 2238, 198, 2, 2488, 29123, 1058, 220, 198, 2, 2488, 8979, 1058, 1028...
1.504992
1,202
# Copyright (C) 2016-2018 Alibaba Group Holding Limited # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable...
[ 2, 15069, 357, 34, 8, 1584, 12, 7908, 41992, 4912, 31703, 15302, 198, 2, 220, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 2, 345, 743, 407, 779, 428, 2393, 2845, 287, 11846, 35...
3.946602
206
# -*- coding: utf-8 -*- """ Created on Fri Feb 11 00:19:06 2022 @author: Moritz Hobein """ import argparse import numpy as np import pandas as pd from scipy.cluster.hierarchy import linkage, fcluster from scipy.spatial.distance import squareform from os.path import commonprefix if __name__ == '__...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 198, 41972, 319, 19480, 3158, 1367, 3571, 25, 1129, 25, 3312, 33160, 198, 198, 31, 9800, 25, 3461, 4224, 367, 5910, 259, 198, 37811, 198, 11748, 1822, 29572, 198,...
2.518519
135
import attr @attr.s class Ellipsoid: """Ellipsoid used for mesh calculations Args: a (float): semi-major axis b (float): semi-minor axis """ a: float = attr.ib() b: float = attr.ib() e2: float = attr.ib(init=False)
[ 11748, 708, 81, 628, 198, 31, 35226, 13, 82, 198, 4871, 7122, 541, 568, 312, 25, 198, 220, 220, 220, 37227, 30639, 541, 568, 312, 973, 329, 19609, 16765, 628, 220, 220, 220, 943, 14542, 25, 198, 220, 220, 220, 220, 220, 220, 220, ...
2.176471
119
from pyEyeTrack.EyeTracking.PupilTrackingClass import PupilTracking from pyEyeTrack.EyeTracking.BlinkingClass import Blinking from pyEyeTrack.EyeTracking.PupilBlinkingClass import PupilBlinking from pyEyeTrack.AudioVideoRecording.VideoRecordingClass import VideoRecorder from pyEyeTrack.AudioVideoRecording.AudioRecordin...
[ 6738, 12972, 24876, 24802, 13, 24876, 2898, 5430, 13, 47, 929, 346, 2898, 5430, 9487, 1330, 350, 929, 346, 2898, 5430, 198, 6738, 12972, 24876, 24802, 13, 24876, 2898, 5430, 13, 3629, 8040, 9487, 1330, 1086, 8040, 198, 6738, 12972, 2487...
2.389504
2,801
"""----------------------------------------------------------------------------- Name: thematic_accuracy.py Purpose: Creates the themtic accuracy score from the feature level metadata. Description: This tool scores the thematic accuracy of a TDS 6.1 curve feature class. The tool uses global population data to i...
[ 37811, 10097, 32501, 198, 5376, 25, 606, 1512, 62, 4134, 23843, 13, 9078, 198, 30026, 3455, 25, 7921, 274, 262, 606, 13370, 9922, 4776, 422, 262, 3895, 1241, 20150, 13, 198, 11828, 25, 770, 2891, 8198, 262, 606, 1512, 9922, 286, 257, ...
1.941756
6,696
from rest_framework import serializers
[ 6738, 1334, 62, 30604, 1330, 11389, 11341, 628 ]
5
8
# Generated by Django 3.2 on 2021-04-19 15:20 import django.db.models.deletion from django.db import migrations, models
[ 2, 2980, 515, 416, 37770, 513, 13, 17, 319, 33448, 12, 3023, 12, 1129, 1315, 25, 1238, 201, 198, 201, 198, 11748, 42625, 14208, 13, 9945, 13, 27530, 13, 2934, 1616, 295, 201, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 11, ...
2.645833
48
from django.shortcuts import render, redirect from users.models import User from django.contrib.auth.hashers import make_password from django.contrib.auth.decorators import login_required import os from django.conf import settings from django.core.files.storage import default_storage @login_required(login_url='/login...
[ 6738, 42625, 14208, 13, 19509, 23779, 1330, 8543, 11, 18941, 198, 6738, 2985, 13, 27530, 1330, 11787, 198, 6738, 42625, 14208, 13, 3642, 822, 13, 18439, 13, 10134, 7084, 1330, 787, 62, 28712, 198, 6738, 42625, 14208, 13, 3642, 822, 13, ...
2.337526
954
import os from tempfile import gettempdir import zipfile from urllib.request import urlretrieve URL = "http://cdstar.shh.mpg.de//bitstreams/EAEA0-A662-A618-386E-0/ldh_description.bib.zip"
[ 11748, 28686, 198, 6738, 20218, 7753, 1330, 651, 29510, 15908, 198, 11748, 19974, 7753, 198, 6738, 2956, 297, 571, 13, 25927, 1330, 19016, 1186, 30227, 198, 198, 21886, 796, 366, 4023, 1378, 10210, 7364, 13, 1477, 71, 13, 3149, 70, 13, ...
2.567568
74
import json from pprint import pprint with open('metric-1-list.json') as data_file: data = json.load(data_file) pprint(data["rows"]["panels"]["targets"][0])
[ 11748, 33918, 198, 6738, 279, 4798, 1330, 279, 4798, 198, 198, 4480, 1280, 10786, 4164, 1173, 12, 16, 12, 4868, 13, 17752, 11537, 355, 1366, 62, 7753, 25, 220, 220, 220, 220, 198, 220, 220, 220, 1366, 796, 33918, 13, 2220, 7, 7890, ...
2.426471
68
# -*- coding: utf-8 -*- """ idfy_rest_client.models.konsern_link This file was automatically generated for Idfy by APIMATIC v2.0 ( https://apimatic.io ) """ class KonsernLink(object): """Implementation of the 'KonsernLink' model. TODO: type model description here. Attributes: ...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 201, 198, 201, 198, 37811, 201, 198, 220, 220, 220, 4686, 24928, 62, 2118, 62, 16366, 13, 27530, 13, 74, 684, 1142, 62, 8726, 201, 198, 201, 198, 220, 220, 220, 770, 2393...
2.103647
2,084
from NodeDefender.mqtt.command import fire, topic_format
[ 6738, 19081, 7469, 2194, 13, 76, 80, 926, 13, 21812, 1330, 2046, 11, 7243, 62, 18982, 198 ]
3.352941
17
from src.utils.helper_embedding import reshape_df import pandas as pd from sklearn.feature_extraction.text import TfidfVectorizer df = pd.read_csv(filepath_or_buffer='data/processed/content_store_clean.csv') # convert dtype object to unicode string df['text_clean'] = df['text_clean'].astype('U').values df = df.sam...
[ 6738, 12351, 13, 26791, 13, 2978, 525, 62, 20521, 12083, 1330, 27179, 1758, 62, 7568, 198, 198, 11748, 19798, 292, 355, 279, 67, 198, 6738, 1341, 35720, 13, 30053, 62, 2302, 7861, 13, 5239, 1330, 309, 69, 312, 69, 38469, 7509, 628, ...
2.060942
722
import unittest from helpers import absolute_sample_path from pdfminer.high_level import extract_text from pdfminer.layout import LAParams test_strings = { "simple1.pdf": "Hello \n\nWorld\n\nHello \n\nWorld\n\n" "H e l l o \n\nW o r l d\n\n" "H e l l o \n\nW o r l d\n\n\...
[ 11748, 555, 715, 395, 198, 198, 6738, 49385, 1330, 4112, 62, 39873, 62, 6978, 198, 6738, 37124, 1084, 263, 13, 8929, 62, 5715, 1330, 7925, 62, 5239, 198, 6738, 37124, 1084, 263, 13, 39786, 1330, 406, 2969, 283, 4105, 628, 628, 198, ...
1.778689
366
import lime from lime import lime_image from lime.wrappers.scikit_image import SegmentationAlgorithm import tensorflow as tf import keras.backend as K import numpy as np from smerf.models import * # Uses LIME library to obtain feature attributions
[ 11748, 28738, 198, 6738, 28738, 1330, 28738, 62, 9060, 198, 6738, 28738, 13, 29988, 11799, 13, 36216, 15813, 62, 9060, 1330, 1001, 5154, 341, 2348, 42289, 198, 11748, 11192, 273, 11125, 355, 48700, 198, 11748, 41927, 292, 13, 1891, 437, ...
3.594203
69
# -*- coding: utf-8 -*- import enum import collections from typing import NamedTuple, Optional, Union, Collection from mpl_events import MplEventDispatcher, MplObject_Type class MouseButton(enum.Enum): """ """ ANY = 0 LEFT = 1 MIDDLE = 2 RIGHT = 3 class AxisType(enum.Enum): """ ""...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 11748, 33829, 198, 11748, 17268, 198, 6738, 19720, 1330, 34441, 51, 29291, 11, 32233, 11, 4479, 11, 12251, 198, 198, 6738, 285, 489, 62, 31534, 1330, 337, 489, 9237...
2.15411
876
import io from typing import Tuple, Callable, Sequence, Iterator, Optional, Any import ipywidgets as widgets from functools import wraps from ipycanvas import Canvas from PIL import Image from palettable.colorbrewer.qualitative import Set2_8 def set_colors() -> Iterator[str]: """An infinite iterator over the Set...
[ 11748, 33245, 198, 6738, 19720, 1330, 309, 29291, 11, 4889, 540, 11, 45835, 11, 40806, 1352, 11, 32233, 11, 4377, 198, 11748, 20966, 88, 28029, 11407, 355, 40803, 198, 6738, 1257, 310, 10141, 1330, 27521, 198, 6738, 20966, 88, 5171, 110...
2.777939
689
""" Scene-related inference and estimation """ from .scene import estimate_scene_description
[ 37811, 198, 36542, 12, 5363, 32278, 290, 31850, 198, 37811, 198, 198, 6738, 764, 29734, 1330, 8636, 62, 29734, 62, 11213 ]
4.428571
21
# type: ignore from multiprocessing import Process, Queue import pytest import tempfile import time from click.testing import CliRunner from chaosiqagent.cli import cli cfg = b""" DEBUG=0 LOG_FORMAT="plain" AGENT_URL=https://console.chaosiq.dev AGENT_ACCESS_TOKEN=1234 """ invalid_cfg = b""" """ pytestmark = pytes...
[ 2, 2099, 25, 8856, 198, 198, 6738, 18540, 305, 919, 278, 1330, 10854, 11, 4670, 518, 198, 11748, 12972, 9288, 198, 11748, 20218, 7753, 198, 11748, 640, 198, 198, 6738, 3904, 13, 33407, 1330, 1012, 72, 49493, 198, 198, 6738, 11918, 250...
2.798319
119
""" Coleção de funções para extração das características julgadas relevantes para o terinamento do modelo ML """ import pandas as pd import numpy as np import scipy.stats as stats from scipy import signal from scipy import integrate def extract_features(signals, fft, fft_amplitude, ratio = 10): """Função princip...
[ 37811, 198, 46509, 16175, 28749, 390, 1257, 16175, 127, 113, 274, 31215, 3131, 16175, 28749, 288, 292, 1097, 7321, 8836, 11268, 292, 474, 377, 70, 38768, 198, 49659, 274, 31215, 267, 1059, 259, 3263, 78, 466, 2746, 78, 10373, 198, 37811...
2.20538
3,160
import binascii import urllib2 import json from hashlib import sha1 import base64 import datetime import calendar import time __author__ = 'DeStars'
[ 11748, 9874, 292, 979, 72, 198, 11748, 2956, 297, 571, 17, 198, 11748, 33918, 198, 6738, 12234, 8019, 1330, 427, 64, 16, 198, 11748, 2779, 2414, 198, 11748, 4818, 8079, 198, 11748, 11845, 198, 11748, 640, 198, 198, 834, 9800, 834, 796...
3.212766
47
import cv2 import os import numpy as np # Load HAAR face classifier face_classifier = cv2.CascadeClassifier( cv2.data.haarcascades + "haarcascade_frontalface_default.xml" ) # Load functions # Initialize Webcam cap = cv2.VideoCapture(0) while True: name = input("Enter candidate name:") check_make_dir(...
[ 11748, 269, 85, 17, 198, 11748, 28686, 198, 11748, 299, 32152, 355, 45941, 198, 198, 2, 8778, 14558, 1503, 1986, 1398, 7483, 198, 2550, 62, 4871, 7483, 796, 269, 85, 17, 13, 34, 28966, 9487, 7483, 7, 198, 220, 220, 220, 269, 85, 1...
1.942577
714
"""URLs to run the tests.""" from django.contrib import admin from django.urls import include, path urlpatterns = [ path('admin/', admin.site.urls), path('hijack/', include('hijack.urls', namespace='hijack')), path('hello/', include('hijack.tests.test_app.urls', 'test_app')), ]
[ 37811, 21886, 82, 284, 1057, 262, 5254, 526, 15931, 198, 6738, 42625, 14208, 13, 3642, 822, 1330, 13169, 198, 6738, 42625, 14208, 13, 6371, 82, 1330, 2291, 11, 3108, 198, 198, 6371, 33279, 82, 796, 685, 198, 220, 220, 220, 3108, 10786...
2.607143
112
""" Copyright (c) 2022 Huawei Technologies Co.,Ltd. openGauss is licensed under Mulan PSL v2. You can use this software according to the terms and conditions of the Mulan PSL v2. You may obtain a copy of Mulan PSL v2 at: http://license.coscl.org.cn/MulanPSL2 THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, W...
[ 37811, 198, 15269, 357, 66, 8, 33160, 43208, 21852, 1766, 1539, 43, 8671, 13, 198, 198, 9654, 35389, 1046, 318, 11971, 739, 17996, 272, 6599, 43, 410, 17, 13, 198, 1639, 460, 779, 428, 3788, 1864, 284, 262, 2846, 290, 3403, 286, 262...
2.226804
388
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from .. import _utilities from...
[ 2, 19617, 28, 40477, 12, 23, 198, 2, 17202, 39410, 25, 428, 2393, 373, 7560, 416, 262, 21624, 12994, 26144, 35986, 13, 17202, 198, 2, 17202, 2141, 407, 4370, 416, 1021, 4556, 345, 821, 1728, 345, 760, 644, 345, 389, 1804, 0, 17202, ...
3.5
126
# -*- encoding: utf-8 -*- import yaml from sysl.core import syslx from sysl.util import datamodel from sysl.util import java from sysl.util import rex from sysl.proto import sysl_pb2 TYPE_MAP = { sysl_pb2.Type.ANY: {'type': 'object'}, sysl_pb2.Type.BOOL: {'type': 'boolean'}, sysl_pb2.Type.INT: {'type':...
[ 2, 532, 9, 12, 21004, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 11748, 331, 43695, 198, 198, 6738, 827, 6649, 13, 7295, 1330, 827, 6649, 87, 198, 198, 6738, 827, 6649, 13, 22602, 1330, 4818, 321, 375, 417, 198, 6738, 827, 6649, 13,...
2.374416
1,071
from pybuilder.core import Logger, Project from pybuilder.reactor import Reactor from pybuilder_integration.exec_utility import exec_command
[ 6738, 12972, 38272, 13, 7295, 1330, 5972, 1362, 11, 4935, 198, 6738, 12972, 38272, 13, 260, 11218, 1330, 797, 11218, 198, 198, 6738, 12972, 38272, 62, 18908, 1358, 13, 18558, 62, 315, 879, 1330, 2452, 62, 21812, 628, 628, 628 ]
3.675
40
""" Unit tests for ``EpidemicRegressor``. """ import io import os import pickle import unittest import warnings import numpy from numpy.testing import assert_almost_equal from pandas import read_csv from aftercovid.models import EpidemicRegressor, CovidSIRD, CovidSIRDc if __name__ == '__main__': unittest.main()...
[ 37811, 198, 26453, 5254, 329, 7559, 13807, 312, 5314, 8081, 44292, 15506, 13, 198, 37811, 198, 11748, 33245, 198, 11748, 28686, 198, 11748, 2298, 293, 198, 11748, 555, 715, 395, 198, 11748, 14601, 198, 11748, 299, 32152, 198, 6738, 299, ...
3.028302
106
import cv2 ##length 150 # 그림 그리는거 label_txt = open("dataset/integrated_label(validation).txt" , "r") labels = label_txt.readlines() head_batch_label, gaze_batch_label = loadLabel_gazetest(labels,[filename]) ##end 포인트 가져오는것 image = cv2.imread(os.path.join(args.im_path, image_file_name)) output_image = np.copy(colo...
[ 11748, 269, 85, 17, 628, 198, 2235, 13664, 6640, 198, 198, 2, 220, 166, 115, 116, 167, 99, 120, 220, 166, 115, 116, 167, 99, 105, 167, 232, 242, 166, 109, 108, 628, 198, 18242, 62, 14116, 796, 1280, 7203, 19608, 292, 316, 14, 18...
2.149533
321
import unittest.mock as mock from unittest import TestCase from esrally import config from esrally.mechanic import provisioner
[ 11748, 555, 715, 395, 13, 76, 735, 355, 15290, 198, 6738, 555, 715, 395, 1330, 6208, 20448, 198, 198, 6738, 1658, 81, 453, 1330, 4566, 198, 6738, 1658, 81, 453, 13, 1326, 3147, 291, 1330, 8287, 263, 628 ]
3.394737
38
from .cloudpickle import load, loads, register_pickle_by_value # noqa from .cloudpickle_fast import dumps, dump # noqa
[ 6738, 764, 17721, 27729, 293, 1330, 3440, 11, 15989, 11, 7881, 62, 27729, 293, 62, 1525, 62, 8367, 220, 1303, 645, 20402, 198, 6738, 764, 17721, 27729, 293, 62, 7217, 1330, 45514, 11, 10285, 220, 1303, 645, 20402, 628, 628 ]
3.1
40
#!/usr/bin/env python """The setup script.""" from setuptools import setup, find_packages with open('README.md') as readme_file: readme = readme_file.read() with open('HISTORY.md') as history_file: history = history_file.read() requirements = ['requests>=2.27.1'] test_requirements = ['pytest>=3', ] setup...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 198, 37811, 464, 9058, 4226, 526, 15931, 198, 198, 6738, 900, 37623, 10141, 1330, 9058, 11, 1064, 62, 43789, 198, 198, 4480, 1280, 10786, 15675, 11682, 13, 9132, 11537, 355, 1100, 1326, ...
2.565809
661
"""Device tracker constants.""" from datetime import timedelta import logging LOGGER = logging.getLogger(__package__) DOMAIN = 'device_tracker' ENTITY_ID_FORMAT = DOMAIN + '.{}' PLATFORM_TYPE_LEGACY = 'legacy' PLATFORM_TYPE_ENTITY = 'entity_platform' SOURCE_TYPE_GPS = 'gps' SOURCE_TYPE_ROUTER = 'router' SOURCE_TYPE...
[ 37811, 24728, 30013, 38491, 526, 15931, 198, 6738, 4818, 8079, 1330, 28805, 12514, 198, 11748, 18931, 198, 198, 25294, 30373, 796, 18931, 13, 1136, 11187, 1362, 7, 834, 26495, 834, 8, 198, 198, 39170, 29833, 796, 705, 25202, 62, 2213, 1...
2.373171
410
from core.config.base import * from core.config.rock import *
[ 198, 6738, 4755, 13, 11250, 13, 8692, 1330, 1635, 198, 6738, 4755, 13, 11250, 13, 10823, 1330, 1635 ]
3.444444
18
import tkinter as tk #imports the GUI framework
[ 11748, 256, 74, 3849, 355, 256, 74, 1303, 320, 3742, 262, 25757, 9355, 201 ]
3.428571
14
from pyfirmata2 import Arduino from config import ConfigArduino
[ 6738, 12972, 69, 2533, 1045, 17, 1330, 27634, 198, 6738, 4566, 1330, 17056, 3163, 24493, 198 ]
4
16
from PySide6 import QtGui, QtWidgets app = QtWidgets.QApplication() window1 = TestWindow() window1.show() app.exec()
[ 6738, 9485, 24819, 21, 1330, 33734, 8205, 72, 11, 33734, 54, 312, 11407, 201, 198, 201, 198, 201, 198, 201, 198, 1324, 796, 33734, 54, 312, 11407, 13, 48, 23416, 3419, 201, 198, 17497, 16, 796, 6208, 27703, 3419, 201, 198, 17497, 16...
2.37037
54
""" Tests communication with and data acquisition from a Measurement Computing USB1608G DAQ. The tests run by this script are very simple and are by no means exhaustive. It just sets different numbers of channels and ensures the data received is the correct shape. """ import argparse from pymcc import MccDaq SAMPLE_...
[ 37811, 198, 51, 3558, 6946, 351, 290, 1366, 12673, 422, 257, 24291, 434, 38589, 198, 27155, 1433, 2919, 38, 17051, 48, 13, 198, 198, 464, 5254, 1057, 416, 428, 4226, 389, 845, 2829, 290, 389, 416, 645, 1724, 36049, 13, 632, 198, 313...
2.759076
303
# Generated by Django 3.0.3 on 2020-05-14 15:51 from django.db import migrations, models
[ 2, 2980, 515, 416, 37770, 513, 13, 15, 13, 18, 319, 12131, 12, 2713, 12, 1415, 1315, 25, 4349, 198, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 11, 4981, 628 ]
2.84375
32
# Copyright 2016 The Johns Hopkins University Applied Physics Laboratory # # 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 ...
[ 2, 15069, 1584, 383, 25824, 21183, 2059, 27684, 23123, 18643, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 2, 345, 743, 407, 779, 428, 2393, 2845, 287, 11846, 351, 262, 13...
2.738823
3,534
## # Copyright (c) 2010-2017 Apple Inc. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable l...
[ 2235, 198, 2, 15069, 357, 66, 8, 3050, 12, 5539, 4196, 3457, 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, ...
2.27721
6,854
#!/usr/bin/env python import vtk from vtk.test import Testing from vtk.util.misc import vtkGetDataRoot VTK_DATA_ROOT = vtkGetDataRoot() # # display text over an image # ellipse = vtk.vtkImageEllipsoidSource() mapImage = vtk.vtkImageMapper() mapImage.SetInputConnection(ellipse.GetOutputPort()) mapImage.SetColorWindow(2...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 11748, 410, 30488, 198, 6738, 410, 30488, 13, 9288, 1330, 23983, 198, 6738, 410, 30488, 13, 22602, 13, 44374, 1330, 410, 30488, 3855, 6601, 30016, 198, 36392, 42, 62, 26947, 62, 13252, ...
2.593923
362
import datetime import os import uuid from django.shortcuts import render from django.views.decorators.csrf import csrf_exempt from django.http import JsonResponse, HttpResponse, Http404 from django.conf import settings from django.shortcuts import get_object_or_404 from rest_framework.views import APIView from rest_...
[ 11748, 4818, 8079, 198, 11748, 28686, 198, 11748, 334, 27112, 198, 198, 6738, 42625, 14208, 13, 19509, 23779, 1330, 8543, 198, 6738, 42625, 14208, 13, 33571, 13, 12501, 273, 2024, 13, 6359, 41871, 1330, 269, 27891, 69, 62, 42679, 198, 6...
3.546012
163
""" Played.to urlresolver plugin Copyright (C) 2013/2014 TheHighway This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This progr...
[ 37811, 198, 11002, 276, 13, 1462, 19016, 411, 14375, 13877, 198, 15269, 357, 34, 8, 2211, 14, 4967, 383, 11922, 1014, 198, 198, 1212, 1430, 318, 1479, 3788, 25, 345, 460, 17678, 4163, 340, 290, 14, 273, 13096, 340, 739, 262, 2846, 2...
3.943966
232
# automatically generated by the FlatBuffers compiler, do not modify # namespace: Contact import flatbuffers from flatbuffers.compat import import_numpy np = import_numpy()
[ 2, 6338, 7560, 416, 262, 21939, 36474, 364, 17050, 11, 466, 407, 13096, 198, 198, 2, 25745, 25, 14039, 198, 198, 11748, 6228, 36873, 364, 198, 6738, 6228, 36873, 364, 13, 5589, 265, 1330, 1330, 62, 77, 32152, 198, 37659, 796, 1330, ...
3.723404
47
# Copyright 2019 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
[ 2, 15069, 13130, 383, 309, 22854, 37535, 46665, 13, 1439, 6923, 33876, 13, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 2, 345, 743, 407, 779, 428, 2393, 2845, 287, 11846,...
2.438801
6,340
from io import StringIO from html.parser import HTMLParser
[ 6738, 33245, 1330, 10903, 9399, 198, 6738, 27711, 13, 48610, 1330, 11532, 46677, 628, 198 ]
4.066667
15
from setuptools import setup, find_packages with open("requirements.txt") as f: install_requires = f.read().strip().split("\n") # get version from __version__ variable in flegeapp/__init__.py from flegeapp import __version__ as version setup( name="flegeapp", version=version, description="Healthcare App", autho...
[ 6738, 900, 37623, 10141, 1330, 9058, 11, 1064, 62, 43789, 198, 198, 4480, 1280, 7203, 8897, 18883, 13, 14116, 4943, 355, 277, 25, 198, 197, 17350, 62, 47911, 796, 277, 13, 961, 22446, 36311, 22446, 35312, 7203, 59, 77, 4943, 198, 198,...
3.032051
156
"""empty message Revision ID: 8c56a59f4f05 Revises: 8d8c816257ce Create Date: 2021-02-11 21:01:07.818791 """ from alembic import op import sqlalchemy as sa from sqlalchemy.dialects import postgresql # revision identifiers, used by Alembic. revision = '8c56a59f4f05' down_revision = '8d8c816257ce' branch_labels = None...
[ 37811, 28920, 3275, 198, 198, 18009, 1166, 4522, 25, 807, 66, 3980, 64, 3270, 69, 19, 69, 2713, 198, 18009, 2696, 25, 807, 67, 23, 66, 23, 1433, 28676, 344, 198, 16447, 7536, 25, 33448, 12, 2999, 12, 1157, 2310, 25, 486, 25, 2998,...
2.453237
139
from typing import List import ibis from ibis.expr.operations import Literal import pytest from sql_to_ibis import query from sql_to_ibis.tests.utils import assert_ibis_equal_show_diff, assert_state_not_change @assert_state_not_change def test_where_clause(forest_fires): """ Test where clause :return: ...
[ 6738, 19720, 1330, 7343, 198, 198, 11748, 24283, 271, 198, 6738, 24283, 271, 13, 31937, 13, 3575, 602, 1330, 25659, 1691, 198, 11748, 12972, 9288, 198, 198, 6738, 44161, 62, 1462, 62, 571, 271, 1330, 12405, 198, 6738, 44161, 62, 1462, ...
2.265937
3,561
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.dispatch import Signal topic_poll_pre_vote = Signal(providing_args=['poll, user']) topic_poll_post_vote = Signal(providing_args=['poll, user'])
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 6738, 11593, 37443, 834, 1330, 28000, 1098, 62, 17201, 874, 198, 198, 6738, 42625, 14208, 13, 6381, 17147, 1330, 26484, 628, 198, 26652, 62, 30393, 62, 3866, 62, 27...
2.765432
81
"""Self contained util to collect number of forks of a github project.""" import json import os from github import Github from cache import Cache SCRIPT_DIR = os.path.dirname(__file__) CONFIG_PATH = os.path.join(SCRIPT_DIR, './config.json') CACHE = Cache(os.path.join(SCRIPT_DIR, "./forks_cache.json")) def get_total...
[ 37811, 24704, 7763, 7736, 284, 2824, 1271, 286, 43378, 286, 257, 33084, 1628, 526, 15931, 198, 198, 11748, 33918, 198, 11748, 28686, 198, 6738, 33084, 1330, 38994, 198, 198, 6738, 12940, 1330, 34088, 198, 198, 6173, 46023, 62, 34720, 796,...
2.502985
670
from __future__ import absolute_import from __future__ import division from __future__ import print_function import sys from experiments.utils import get_observer from xview.datasets import Cityscapes_GAN from xview.datasets import get_dataset from xview.models import get_model from xview.settings import EXP_OUT im...
[ 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, 25064, 198, 198, 6738, 10256, 13, 26791, 1330, 651, 62, 672, 15388, 198, 198,...
2.938005
742
from pyramid.testing import DummyRequest from dbas.tests.utils import TestCaseWithConfig, construct_dummy_request from dbas.validators import core from dbas.validators.core import validate
[ 6738, 27944, 13, 33407, 1330, 360, 13513, 18453, 198, 198, 6738, 288, 12093, 13, 41989, 13, 26791, 1330, 6208, 20448, 3152, 16934, 11, 5678, 62, 67, 13513, 62, 25927, 198, 6738, 288, 12093, 13, 12102, 2024, 1330, 4755, 198, 6738, 288, ...
3.730769
52
import glob import os BASE_CONFIG = os.path.join(os.path.dirname(__file__), 'base.cfg')
[ 11748, 15095, 198, 11748, 28686, 198, 198, 33, 11159, 62, 10943, 16254, 796, 28686, 13, 6978, 13, 22179, 7, 418, 13, 6978, 13, 15908, 3672, 7, 834, 7753, 834, 828, 705, 8692, 13, 37581, 11537, 628 ]
2.5
36
import torch import torch.nn.functional as F from torch.nn.modules.dropout import Dropout from sig.nn.models.base_model import BaseClassifier from torch_geometric.nn import GATConv, global_mean_pool class GAT(BaseClassifier): """ Graph Attention Network. Args: input_size (int): Number o...
[ 11748, 28034, 201, 198, 11748, 28034, 13, 20471, 13, 45124, 355, 376, 201, 198, 6738, 28034, 13, 20471, 13, 18170, 13, 14781, 448, 1330, 14258, 448, 201, 198, 6738, 43237, 13, 20471, 13, 27530, 13, 8692, 62, 19849, 1330, 7308, 9487, 7...
2.152565
1,501
from filters.siat import SiatEntry, SiatListing, AvcListing, MmmListing, MmmEntry, NhlListing, LackhandEntry, LackhandListing from filters.ssss import SsssEntry, SsssListing from filters.veb import VebEntry, VebListing ENTRY_FILTERS = [ LackhandEntry(), MmmEntry(), SiatEntry(), SsssEntry(), VebEntry(), ] EN...
[ 6738, 16628, 13, 82, 5375, 1330, 311, 5375, 30150, 11, 311, 5375, 8053, 278, 11, 5184, 66, 8053, 278, 11, 337, 3020, 8053, 278, 11, 337, 3020, 30150, 11, 399, 18519, 8053, 278, 11, 38289, 4993, 30150, 11, 38289, 4993, 8053, 278, 198...
2.627551
196
import connexion import datetime import json import os import sys import time import acme.challenges import acme.client import acme.jose import click from cryptography import x509 from cryptography.hazmat.backends import default_backend from cryptography.hazmat.primitives import hashes, serialization from cryptograp...
[ 11748, 369, 12413, 295, 198, 11748, 4818, 8079, 198, 11748, 33918, 198, 11748, 28686, 198, 11748, 25064, 198, 11748, 640, 198, 198, 11748, 936, 1326, 13, 36747, 34120, 198, 11748, 936, 1326, 13, 16366, 198, 11748, 936, 1326, 13, 73, 577...
2.742466
365
#!/usr/bin/env python # coding: utf-8 # In[8]: import pandas as pd from sklearn import tree # In[9]: df = pd.read_csv("E:\GIT\-CSE-0408-Summer-2021\Final\Decision\Tahmina.csv") # In[10]: x = df.iloc[:,:-1] # In[11]: x # In[12]: y=df.iloc[:,3] # In[13]: y # In[14]: classify_ = tree.DecisionTre...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 19617, 25, 3384, 69, 12, 23, 198, 198, 2, 554, 58, 23, 5974, 628, 198, 11748, 19798, 292, 355, 279, 67, 198, 6738, 1341, 35720, 1330, 5509, 628, 198, 2, 554, 58, 24, 5974, 628...
2.060086
233
""" File to define Dataset and Dataloader""" import os from typing import Optional, Tuple, List, Dict import pandas as pd import torch from loguru import logger from pytorch_lightning import LightningDataModule from torch.utils.data import DataLoader, Dataset from tqdm import tqdm from experiment.sentiment_tokenizer i...
[ 37811, 9220, 284, 8160, 16092, 292, 316, 290, 360, 10254, 1170, 263, 37811, 198, 11748, 28686, 198, 6738, 19720, 1330, 32233, 11, 309, 29291, 11, 7343, 11, 360, 713, 198, 198, 11748, 19798, 292, 355, 279, 67, 198, 11748, 28034, 198, 6...
2.968085
188
import numpy as np import gym from lagom.envs.spaces import Discrete from lagom.envs.spaces import Box from lagom.envs import Env from lagom.envs import make_gym_env from lagom.envs.wrappers import Wrapper from lagom.envs.wrappers import GymWrapper from lagom.envs.wrappers import FrameStack from lagom.envs.wrappers...
[ 11748, 299, 32152, 355, 45941, 198, 198, 11748, 11550, 198, 198, 6738, 19470, 296, 13, 268, 14259, 13, 2777, 2114, 1330, 8444, 8374, 198, 6738, 19470, 296, 13, 268, 14259, 13, 2777, 2114, 1330, 8315, 198, 198, 6738, 19470, 296, 13, 26...
2.949275
138
# -*- coding: utf-8 -*- # Generated by Django 1.11.27 on 2020-02-06 09:32 from __future__ import unicode_literals from django.db import migrations, models """ This migration was triggered by black formatting. It doesn't actually change anything to our models, only text that was formatted differently. Please ignore th...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 2980, 515, 416, 37770, 352, 13, 1157, 13, 1983, 319, 12131, 12, 2999, 12, 3312, 7769, 25, 2624, 198, 6738, 11593, 37443, 834, 1330, 28000, 1098, 62, 17201, 874, 198...
3.654867
113
#Main Program for encryption. from sys import argv import os import sys from cryptography.hazmat.primitives.ciphers import Cipher, algorithms, modes from cryptography.hazmat.backends import default_backend from cryptography.hazmat.primitives import serialization from cryptography.hazmat.primitives.asymmetric i...
[ 2, 13383, 6118, 329, 15835, 13, 201, 198, 201, 198, 6738, 25064, 1330, 1822, 85, 201, 198, 11748, 28686, 201, 198, 11748, 25064, 201, 198, 6738, 45898, 13, 71, 1031, 6759, 13, 19795, 20288, 13, 66, 541, 7084, 1330, 44334, 11, 16113, ...
2.848387
310
import torch import torch.nn as nn import torch.nn.functional as F
[ 11748, 28034, 198, 11748, 28034, 13, 20471, 355, 299, 77, 198, 11748, 28034, 13, 20471, 13, 45124, 355, 376, 628, 628, 628, 628, 198 ]
3.125
24
# test script to preform prediction on test images inside # dataset/test/ # -- image_1.jpg # -- image_2.jpg # ... # organize imports from __future__ import print_function # keras imports from keras.applications.vgg16 import VGG16, preprocess_input from keras.applications.vgg19 import VGG19, preproce...
[ 2, 1332, 4226, 284, 662, 687, 17724, 319, 1332, 4263, 2641, 220, 201, 198, 2, 27039, 14, 9288, 14, 201, 198, 2, 220, 220, 1377, 2939, 62, 16, 13, 9479, 201, 198, 2, 220, 220, 1377, 2939, 62, 17, 13, 9479, 201, 198, 2, 220, 220...
2.626838
1,632
""" Question Source:Leetcode Level: Hard Topic: Binary search Solver: Tayyrov Date: 31.03.2022 """ from typing import List
[ 37811, 201, 198, 24361, 8090, 25, 3123, 316, 8189, 201, 198, 4971, 25, 6912, 201, 198, 33221, 25, 45755, 2989, 201, 198, 50, 14375, 25, 25569, 88, 18657, 201, 198, 10430, 25, 3261, 13, 3070, 13, 1238, 1828, 201, 198, 37811, 201, 198...
2.64
50
import os
[ 11748, 28686, 628 ]
3.666667
3
from os.path import join import matplotlib.pyplot as plt from Tests import save_validation_path as save_path from Tests import TEST_DATA_DIR from pyleecan.Classes.Simu1 import Simu1 from pyleecan.Classes.DXFImport import DXFImport from pyleecan.Classes.InputCurrent import InputCurrent from pyleecan.Classes.MagFEMM im...
[ 6738, 28686, 13, 6978, 1330, 4654, 198, 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 198, 6738, 30307, 1330, 3613, 62, 12102, 341, 62, 6978, 355, 3613, 62, 6978, 198, 6738, 30307, 1330, 43001, 62, 26947, 62, 34720, 198, 67...
2.26435
1,324
import datetime from erpres import attempt
[ 11748, 4818, 8079, 198, 6738, 1931, 18302, 1330, 2230 ]
4.666667
9
""" Abero Runner (c) 2020 Rodney Maniego Jr. File analysis tool """ import sys import argparse import abero from arkivist import Arkivist if __name__ == "__main__": runner()
[ 37811, 198, 220, 220, 220, 27700, 78, 21529, 198, 220, 220, 220, 357, 66, 8, 12131, 34895, 1869, 494, 2188, 7504, 13, 198, 220, 220, 220, 9220, 3781, 2891, 198, 37811, 198, 198, 11748, 25064, 198, 11748, 1822, 29572, 198, 198, 11748, ...
2.71831
71
import io import time import requests import pandas as pd import tensordata.gfile as gfile from tensordata.utils._utils import assert_dirs from linora.image import save_image, array_to_image __all__ = ['mnist_tibetan'] def mnist_tibetan(root): """Tibetan-MNIST from https://github.com/bat67/TibetanMNIST. ...
[ 11748, 33245, 198, 11748, 640, 198, 198, 11748, 7007, 198, 11748, 19798, 292, 355, 279, 67, 198, 11748, 11192, 585, 1045, 13, 70, 7753, 355, 308, 7753, 198, 6738, 11192, 585, 1045, 13, 26791, 13557, 26791, 1330, 6818, 62, 15908, 82, 1...
2.344037
1,090
from enum import Enum import re
[ 6738, 33829, 1330, 2039, 388, 198, 11748, 302, 628 ]
3.666667
9
# https://leetcode.com/problems/open-the-lock from typing import List from collections import defaultdict, deque
[ 2, 3740, 1378, 293, 316, 8189, 13, 785, 14, 1676, 22143, 14, 9654, 12, 1169, 12, 5354, 198, 198, 6738, 19720, 1330, 7343, 198, 6738, 17268, 1330, 4277, 11600, 11, 390, 4188, 628 ]
3.484848
33
# SPDX-FileCopyrightText: 2018 Kattni Rembor for Adafruit Industries # # SPDX-License-Identifier: MIT # CircuitPython AnalogIn Demo import time import board from analogio import AnalogIn analog_in = AnalogIn(board.A1) while True: print((get_voltage(analog_in),)) time.sleep(0.1)
[ 2, 30628, 55, 12, 8979, 15269, 8206, 25, 2864, 509, 1078, 8461, 3982, 2865, 329, 1215, 1878, 4872, 20171, 198, 2, 198, 2, 30628, 55, 12, 34156, 12, 33234, 7483, 25, 17168, 198, 198, 2, 13588, 37906, 50088, 818, 34588, 198, 198, 1174...
2.773585
106
# Generated by Django 2.0.4 on 2018-05-25 08:19 from django.db import migrations, models
[ 2, 2980, 515, 416, 37770, 362, 13, 15, 13, 19, 319, 2864, 12, 2713, 12, 1495, 8487, 25, 1129, 198, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 11, 4981, 628 ]
2.84375
32
from PyQt5 import QtCore from model import group class GroupsModel(QtCore.QAbstractListModel): ''' an item model for groups combobox items are mostly represented as strings (captions) ''' # a feedback signal for the window - if new filter rules means that inputs should change # this feedback...
[ 6738, 9485, 48, 83, 20, 1330, 33734, 14055, 198, 198, 6738, 2746, 1330, 1448, 198, 198, 4871, 27441, 17633, 7, 48, 83, 14055, 13, 48, 23839, 8053, 17633, 2599, 198, 220, 220, 220, 705, 7061, 198, 220, 220, 220, 281, 2378, 2746, 329,...
2.725552
317
# @copyright@ # Copyright (c) 2006 - 2019 Teradata # All rights reserved. Stacki(r) v5.x stacki.com # https://github.com/Teradata/stacki/blob/master/LICENSE.txt # @copyright@ import random from stack.api import Call, ReturnCode HOST = 'backend-1000-0' ENVIRONMENT = 'pytest' def test_attr(table=None, owner=Non...
[ 2, 2488, 22163, 4766, 31, 198, 2, 15069, 357, 66, 8, 4793, 532, 13130, 3813, 14706, 198, 2, 1439, 2489, 10395, 13, 23881, 72, 7, 81, 8, 410, 20, 13, 87, 8931, 72, 13, 785, 198, 2, 3740, 1378, 12567, 13, 785, 14, 15156, 14706, ...
2.692308
468
"""Defines the Calc objects which are used to run calculations The purpose of the concrete classes is to handle all of the specificities of each program so as to be able to call a calculation and read its output in the same way from the main program regardless of which program it is. As such if any clunky code is nec...
[ 37811, 7469, 1127, 262, 2199, 66, 5563, 543, 389, 973, 284, 1057, 16765, 198, 198, 464, 4007, 286, 262, 10017, 6097, 318, 284, 5412, 477, 286, 262, 2176, 871, 286, 198, 27379, 1430, 523, 355, 284, 307, 1498, 284, 869, 257, 17952, 29...
2.206414
9,573
import os import sys import time import torch import torch.nn.functional as F import numpy as np import pandas as pd
[ 11748, 28686, 201, 198, 11748, 25064, 201, 198, 11748, 640, 201, 198, 11748, 28034, 201, 198, 11748, 28034, 13, 20471, 13, 45124, 355, 376, 201, 198, 11748, 299, 32152, 355, 45941, 201, 198, 11748, 19798, 292, 355, 279, 67, 201, 198, ...
2.844444
45
""" Date: 2022.04.27 22:18 Description: Omit LastEditors: Rustle Karl LastEditTime: 2022.04.27 22:18 """ from .render import render_templates
[ 37811, 198, 10430, 25, 33160, 13, 3023, 13, 1983, 2534, 25, 1507, 198, 11828, 25, 440, 2781, 198, 5956, 18378, 669, 25, 17103, 293, 15415, 198, 5956, 18378, 7575, 25, 33160, 13, 3023, 13, 1983, 2534, 25, 1507, 198, 37811, 198, 6738, ...
2.86
50
#!/usr/bin/env python import rospy from std_msgs.msg import Bool from dbw_mkz_msgs.msg import ThrottleCmd, SteeringCmd, BrakeCmd, SteeringReport from geometry_msgs.msg import TwistStamped import math from data_types import ControlParameters, Velocity, ControlCommand from twist_controller import Controller """ Keep i...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 198, 11748, 686, 2777, 88, 198, 6738, 14367, 62, 907, 14542, 13, 19662, 1330, 347, 970, 198, 6738, 20613, 86, 62, 28015, 89, 62, 907, 14542, 13, 19662, 1330, 47854, 23296, 40109, 11, ...
3.648352
273
from icemet_sensor import Context, version, homedir from icemet_sensor.config import create_config_file, SensorConfig from icemet_sensor.measure import Measure from icemet_sensor.sender import Sender from icemet_sensor.util import collect_garbage import aioftp import argparse import asyncio from datetime import datet...
[ 6738, 14158, 19261, 62, 82, 22854, 1330, 30532, 11, 2196, 11, 3488, 276, 343, 198, 6738, 14158, 19261, 62, 82, 22854, 13, 11250, 1330, 2251, 62, 11250, 62, 7753, 11, 35367, 16934, 198, 6738, 14158, 19261, 62, 82, 22854, 13, 1326, 5015...
3.005181
193
from datetime import datetime as dt import dash import dash_html_components as html import dash_core_components as dcc external_stylesheets = ['https://codepen.io/chriddyp/pen/bWLwgP.css'] app = dash.Dash(__name__, external_stylesheets=external_stylesheets) app.layout = html.Div([ dcc.DatePickerRange( id=...
[ 6738, 4818, 8079, 1330, 4818, 8079, 355, 288, 83, 198, 11748, 14470, 198, 11748, 14470, 62, 6494, 62, 5589, 3906, 355, 27711, 198, 11748, 14470, 62, 7295, 62, 5589, 3906, 355, 288, 535, 198, 198, 22615, 62, 47720, 258, 1039, 796, 3725...
2.421348
356