content
stringlengths
1
1.04M
input_ids
listlengths
1
774k
ratio_char_token
float64
0.38
22.9
token_count
int64
1
774k
"""Module for VHDLTest application class.""" import argparse import sys from typing import Optional, Dict from junit_xml import TestSuite, TestCase from datetime import datetime from .simulator.SimulatorBase import SimulatorBase from .simulator.SimulatorFactory import SimulatorFactory from .Configuration import Config...
[ 37811, 26796, 329, 569, 10227, 43, 14402, 3586, 1398, 526, 15931, 198, 198, 11748, 1822, 29572, 198, 11748, 25064, 198, 6738, 19720, 1330, 32233, 11, 360, 713, 198, 6738, 10891, 270, 62, 19875, 1330, 6208, 5606, 578, 11, 6208, 20448, 19...
2.313836
4,069
# -*- coding: utf-8 -*- import pytest from returns.primitives.exceptions import UnwrapFailedError from returns.result import Failure, Success def test_unwrap_success(): """Ensures that unwrap works for Success container.""" assert Success(5).unwrap() == 5 def test_unwrap_failure(): """Ensures that unw...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 11748, 12972, 9288, 198, 198, 6738, 5860, 13, 19795, 20288, 13, 1069, 11755, 1330, 791, 37150, 37, 6255, 12331, 198, 6738, 5860, 13, 20274, 1330, 25743, 11, 16282, ...
2.825455
275
# Copyright 2016-2020 Blue Marble Analytics LLC. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ag...
[ 2, 15069, 1584, 12, 42334, 4518, 36891, 30437, 11419, 13, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 2, 345, 743, 407, 779, 428, 2393, 2845, 287, 11846, 351, 262, 13789,...
2.174695
3,114
## Copyright 2017 Knossos authors, see NOTICE file ## ## 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...
[ 2235, 15069, 2177, 6102, 793, 418, 7035, 11, 766, 28536, 2393, 198, 2235, 198, 2235, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 2235, 345, 743, 407, 779, 428, 2393, 2845, 287, 11846, 351,...
3.707042
355
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** 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 from .. import _utilitie...
[ 2, 19617, 28, 40477, 12, 23, 198, 2, 17202, 39410, 25, 428, 2393, 373, 7560, 416, 262, 21624, 12994, 24118, 687, 10290, 357, 27110, 5235, 8, 16984, 13, 17202, 198, 2, 17202, 2141, 407, 4370, 416, 1021, 4556, 345, 821, 1728, 345, 760...
3.59
100
# // Authored by : chj3748 # // Co-authored by : - # // Link : http://boj.kr/28603d67d3014c79af724768c75865af import sys for T in range(int(input())): status = list(map(int, input())) if origami(0, len(status) - 1): answer = 'YES' else: answer = 'NO' print(answer)
[ 2, 3373, 26828, 1850, 416, 1058, 442, 73, 2718, 2780, 198, 2, 3373, 1766, 12, 39351, 416, 1058, 532, 198, 2, 3373, 7502, 1058, 2638, 1378, 2127, 73, 13, 38584, 14, 2078, 35642, 67, 3134, 67, 18938, 19, 66, 3720, 1878, 22, 23753, 3...
2.2
135
import PIL.Image as pilimg import os import tkinter.messagebox as msg # Using Pillow and EasyTkinter # making a new folder in the working directory current_directory = os.getcwd() folder_name = os.path.join(current_directory, r'cropped_images') if not os.path.exists(folder_name): os.makedirs(folder_name) ...
[ 11748, 350, 4146, 13, 5159, 355, 5560, 9600, 201, 198, 11748, 28686, 201, 198, 11748, 256, 74, 3849, 13, 20500, 3524, 355, 31456, 201, 198, 2, 8554, 19770, 322, 290, 16789, 51, 74, 3849, 201, 198, 201, 198, 2, 1642, 257, 649, 9483, ...
2.460888
473
from skeleton import sum
[ 6738, 18328, 1330, 2160, 628 ]
5.2
5
"""An example of using Nettigo Air Monitor package.""" import asyncio import logging import async_timeout from aiohttp import ClientConnectorError, ClientError, ClientSession from nettigo_air_monitor import ( ApiError, AuthFailed, ConnectionOptions, InvalidSensorData, NettigoAirMonitor, ) loggin...
[ 37811, 2025, 1672, 286, 1262, 399, 3087, 14031, 3701, 18289, 5301, 526, 15931, 198, 198, 11748, 30351, 952, 198, 11748, 18931, 198, 198, 11748, 30351, 62, 48678, 198, 6738, 257, 952, 4023, 1330, 20985, 34525, 12331, 11, 20985, 12331, 11, ...
2.494715
473
''' Imaging tests for the 14B-088 continuum (I) data. ''' import os from tasks import tclean vis = "14B-088_continuum_I.ms" output_path = "imaging_nosub" if not os.path.exists(output_path): os.mkdir(output_path) tclean(vis=vis, datacolumn='data', imagename=os.path.join(output_path, 'M33_14B-088...
[ 198, 7061, 6, 198, 3546, 3039, 5254, 329, 262, 1478, 33, 12, 46556, 44422, 357, 40, 8, 1366, 13, 198, 7061, 6, 198, 198, 11748, 28686, 198, 198, 6738, 8861, 1330, 256, 27773, 198, 198, 4703, 796, 366, 1415, 33, 12, 46556, 62, 1848...
1.942356
399
__version__ = 'v0.2.0' __author__ = 'Nathan Henrie' __email__ = 'nate@n8henrie.com' from pdupes.duplicatefinder import DuplicateFinder
[ 834, 9641, 834, 796, 705, 85, 15, 13, 17, 13, 15, 6, 198, 834, 9800, 834, 796, 705, 45, 6696, 6752, 5034, 6, 198, 834, 12888, 834, 796, 705, 77, 378, 31, 77, 23, 831, 5034, 13, 785, 6, 198, 198, 6738, 279, 646, 12272, 13, 64...
2.428571
56
# -*- coding: utf-8 -*- # Generated by Django 1.9 on 2016-02-26 17:39 from __future__ import unicode_literals import django.db.models.deletion from django.db import migrations, models
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 2980, 515, 416, 37770, 352, 13, 24, 319, 1584, 12, 2999, 12, 2075, 1596, 25, 2670, 198, 6738, 11593, 37443, 834, 1330, 28000, 1098, 62, 17201, 874, 198, 198, 11748,...
2.776119
67
#! /usr/bin/env python import tensorflow as tf import data_helpers from sklearn.feature_extraction.text import TfidfVectorizer from xgboost import XGBClassifier from sklearn import metrics # Parameters from sklearn.cross_validation import train_test_split # ================================================== # Data lo...
[ 2, 0, 1220, 14629, 14, 8800, 14, 24330, 21015, 198, 198, 11748, 11192, 273, 11125, 355, 48700, 198, 11748, 1366, 62, 16794, 364, 198, 6738, 1341, 35720, 13, 30053, 62, 2302, 7861, 13, 5239, 1330, 309, 69, 312, 69, 38469, 7509, 198, ...
2.744275
524
"""Contains controllers that deal with user accounts""" from flask_login import logout_user from runtrack.views.forms import LoginForm from runtrack.models import db from flask import render_template, url_for, flash, redirect, Blueprint from flask_login import login_user, current_user from runtrack.views.forms import ...
[ 37811, 4264, 1299, 20624, 326, 1730, 351, 2836, 5504, 37811, 198, 198, 6738, 42903, 62, 38235, 1330, 2604, 448, 62, 7220, 198, 6738, 1057, 11659, 13, 33571, 13, 23914, 1330, 23093, 8479, 198, 6738, 1057, 11659, 13, 27530, 1330, 20613, 1...
2.814815
675
from django.http import HttpResponse import sys, os import re as rgx import random as rnd import pkg_resources as pkg import json as jsn import gevent as gvt import django_eel.browsers as brw _js_root_dir = os.sep.join(['django_eel', 'static', 'eel', 'js']) _eel_js_file = pkg.resource_filename(pkg.Requirement.parse('d...
[ 6738, 42625, 14208, 13, 4023, 1330, 367, 29281, 31077, 198, 11748, 25064, 11, 28686, 198, 11748, 302, 355, 48670, 87, 198, 11748, 4738, 355, 374, 358, 198, 11748, 279, 10025, 62, 37540, 355, 279, 10025, 198, 11748, 33918, 355, 474, 1618...
2.529126
412
import traceback from helpers import resource_path import sys import time
[ 11748, 12854, 1891, 198, 6738, 49385, 1330, 8271, 62, 6978, 198, 11748, 25064, 198, 11748, 640, 628, 198 ]
4.222222
18
""" This file contains custom elements defined by Adriaan Rol 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 LOW_PASS = { 'name': 'LOW_PASS', 'base': e.RBOX, 'paths': [[[0...
[ 37811, 198, 1212, 2393, 4909, 2183, 4847, 5447, 416, 1215, 7496, 272, 371, 349, 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, 262, 4958, 286, 6...
1.545705
2,177
import sys from python.util.conll_scorer.conll import mention """ Extracting gold parse annotation according to the CoNLL format """ """ Extracting automatic parse annotation """
[ 11748, 25064, 198, 198, 6738, 21015, 13, 22602, 13, 1102, 297, 62, 1416, 11934, 13, 1102, 297, 1330, 3068, 628, 628, 198, 198, 37811, 198, 11627, 974, 278, 3869, 21136, 23025, 1864, 284, 262, 1766, 45, 3069, 5794, 198, 37811, 198, 198...
3.528302
53
from __future__ import absolute_import from __future__ import print_function import logging import os import sys from dxlbootstrap.util import MessageUtils from dxlclient.client import DxlClient from dxlclient.client_config import DxlClientConfig root_dir = os.path.dirname(os.path.abspath(__file__)) sys.path.append(r...
[ 6738, 11593, 37443, 834, 1330, 4112, 62, 11748, 198, 6738, 11593, 37443, 834, 1330, 3601, 62, 8818, 198, 11748, 18931, 198, 11748, 28686, 198, 11748, 25064, 198, 198, 6738, 44332, 75, 18769, 26418, 13, 22602, 1330, 16000, 18274, 4487, 198...
2.955954
613
roll_width = 64.5 overrun = 3 orders = { 6.77: 10, 7.56: 40, 17.46: 33, 18.76: 10 }
[ 2487, 62, 10394, 796, 5598, 13, 20, 198, 2502, 5143, 796, 513, 198, 6361, 796, 1391, 198, 220, 220, 220, 718, 13, 3324, 25, 838, 11, 198, 220, 220, 220, 767, 13, 3980, 25, 2319, 11, 198, 220, 220, 220, 1596, 13, 3510, 25, 4747, ...
1.724138
58
# # Copyright (c) 2021 Citrix Systems, Inc. # # Licensed under the Apache License, Version 2.0 (the "License") # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or...
[ 2, 198, 2, 15069, 357, 66, 8, 33448, 15792, 8609, 11998, 11, 3457, 13, 198, 2, 198, 2, 220, 220, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 4943, 198, 2, 220, 220, 345, 743, 407, 779, 428, 2393...
2.973194
6,118
""" Copyright 2019 Acacia Shop Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to...
[ 37811, 198, 220, 220, 220, 15069, 13130, 4013, 47431, 13705, 628, 220, 220, 220, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 220, 220, 220, 345, 743, 407, 779, 428, 2393, 2845, 287, 11846,...
2.371785
2,488
import numpy as np import unittest import os from openmdao.api import Problem from openmdao.utils.assert_utils import assert_check_partials from pycycle.elements.ambient import Ambient fpath = os.path.dirname(os.path.realpath(__file__)) ref_data = np.loadtxt(fpath + "/reg_data/ambient.csv", d...
[ 11748, 299, 32152, 355, 45941, 198, 11748, 555, 715, 395, 198, 11748, 28686, 198, 198, 6738, 1280, 9132, 5488, 13, 15042, 1330, 20647, 198, 6738, 1280, 9132, 5488, 13, 26791, 13, 30493, 62, 26791, 1330, 6818, 62, 9122, 62, 3911, 8231, ...
2.468293
205
from JumpScale import j j.base.loader.makeAvailable(j, 'tools') j.tools._register('admin', cb)
[ 6738, 15903, 29990, 1330, 474, 198, 73, 13, 8692, 13, 29356, 13, 15883, 10493, 7, 73, 11, 705, 31391, 11537, 198, 198, 73, 13, 31391, 13557, 30238, 10786, 28482, 3256, 269, 65, 8, 198 ]
2.823529
34
import numpy as np import torch import torch.nn as nn import torch.nn.functional as F import torch.optim as optim from ding.utils import MODEL_REGISTRY, deep_merge_dicts from ding.config import read_config from dizoo.gfootball.model.conv1d.conv1d_default_config import conv1d_default_config @MODEL_REGISTRY.register('c...
[ 11748, 299, 32152, 355, 45941, 198, 11748, 28034, 198, 11748, 28034, 13, 20471, 355, 299, 77, 198, 11748, 28034, 13, 20471, 13, 45124, 355, 376, 198, 11748, 28034, 13, 40085, 355, 6436, 198, 6738, 44852, 13, 26791, 1330, 19164, 3698, 62...
3.037037
108
import requests import json import bddtests.config as c
[ 11748, 7007, 198, 11748, 33918, 198, 11748, 275, 1860, 41989, 13, 11250, 355, 269, 628, 628, 628, 628, 198 ]
3.368421
19
from sklearn.neighbors import KNeighborsClassifier import numpy as np from sklearn.model_selection import KFold,train_test_split kf=KFold(n_splits=10) train_y = [] #Actual result of the data used in testing of the valence train_a = [] #Actual result of the data used in testing of the arousal train_x = np.genfrom...
[ 6738, 1341, 35720, 13, 710, 394, 32289, 1330, 509, 46445, 32289, 9487, 7483, 201, 198, 11748, 299, 32152, 355, 45941, 201, 198, 6738, 1341, 35720, 13, 19849, 62, 49283, 1330, 509, 37, 727, 11, 27432, 62, 9288, 62, 35312, 201, 198, 74,...
2.419735
679
"""Exit utility for catching errors and printing unified error messages""" __author__ = "Jens Thomas & Felix Simkovic" __date__ = "08 May 2017" __version__ = "1.1" import logging import os import sys import traceback try: import pyrvapi except ImportError: pyrvapi = None def _debug_logfile(logger): """...
[ 37811, 30337, 10361, 329, 16508, 8563, 290, 13570, 22706, 4049, 6218, 37811, 198, 198, 834, 9800, 834, 796, 366, 41, 641, 5658, 1222, 29721, 3184, 74, 17215, 1, 198, 834, 4475, 834, 796, 366, 2919, 1737, 2177, 1, 198, 834, 9641, 834, ...
2.325646
1,084
from pathlib import Path import click import torch from sklearn.metrics import f1_score, roc_auc_score, jaccard_score from torch.utils import data import datahandler from model import createDeepLabv3 from trainer import train_model @click.command() @click.option("--data-directory", required=True, ...
[ 6738, 3108, 8019, 1330, 10644, 198, 198, 11748, 3904, 198, 11748, 28034, 198, 6738, 1341, 35720, 13, 4164, 10466, 1330, 277, 16, 62, 26675, 11, 686, 66, 62, 14272, 62, 26675, 11, 474, 4134, 446, 62, 26675, 198, 6738, 28034, 13, 26791,...
2.495356
323
# (C) Datadog, Inc. 2018-present # All rights reserved # Licensed under Simplified BSD License (see LICENSE) import mock import pytest from datadog_checks.vsphere.legacy.vsphere_legacy import VSphereLegacyCheck from .utils import disable_thread_pool, get_mocked_server def _instance(): """ Create a default i...
[ 2, 357, 34, 8, 16092, 324, 519, 11, 3457, 13, 2864, 12, 25579, 198, 2, 1439, 2489, 10395, 198, 2, 49962, 739, 45157, 1431, 347, 10305, 13789, 357, 3826, 38559, 24290, 8, 198, 11748, 15290, 198, 11748, 12972, 9288, 198, 198, 6738, 48...
2.9
340
# import colorgram from turtle import * import random import turtle as t timy = t.Turtle() t.listen() t.onkey(key = "w", fun = moveForward) t.onkey(key = "a", fun = turnLeft) t.onkey(key = "d", fun = turnRight) t.onkey(key = "s", fun = moveBackward) t.onkey(key = "c", fun = timy.reset) the_scre...
[ 2, 1330, 951, 2398, 859, 198, 6738, 28699, 1330, 1635, 198, 11748, 4738, 198, 11748, 28699, 355, 256, 628, 198, 16514, 88, 796, 256, 13, 51, 17964, 3419, 628, 198, 220, 220, 220, 220, 198, 220, 220, 220, 220, 198, 198, 83, 13, 486...
2.316456
158
#!/usr/bin/env python # coding: utf-8 import os import re import sys try: from setuptools import setup except ImportError: from distutils.core import setup if sys.version < '3': import codecs else: if sys.argv[-1] == 'publish': os.system('python setup.py sdist upload') sys.exit() setup( name=u('sofart'), v...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 19617, 25, 3384, 69, 12, 23, 198, 198, 11748, 28686, 198, 11748, 302, 198, 11748, 25064, 198, 198, 28311, 25, 198, 197, 6738, 900, 37623, 10141, 1330, 9058, 198, 16341, 17267, 12331...
2.868766
381
import xml.etree.cElementTree as et import urllib2 import pandas as pd import mongomanager import logging import inspect import requestswrapper from joblib import Parallel, delayed import multiprocessing from random import shuffle if __name__ == "__main__": logging.basicConfig(filename=inspect.stack()[0][1].replace(...
[ 11748, 35555, 13, 316, 631, 13, 66, 20180, 27660, 355, 2123, 198, 11748, 2956, 297, 571, 17, 198, 11748, 19798, 292, 355, 279, 67, 198, 11748, 285, 506, 5185, 3536, 198, 11748, 18931, 198, 11748, 10104, 198, 11748, 2581, 2032, 430, 28...
2.932886
149
# Copyright 2019 Google LLC. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or a...
[ 2, 15069, 13130, 3012, 11419, 13, 1439, 6923, 33876, 13, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 2, 345, 743, 407, 779, 428, 2393, 2845, 287, 11846, 351, 262, 13789, ...
3.305755
556
# Copyright 2018-2022 Streamlit Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in wr...
[ 2, 15069, 2864, 12, 1238, 1828, 13860, 18250, 3457, 13, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 2, 345, 743, 407, 779, 428, 2393, 2845, 287, 11846, 351, 262, 13789, ...
3.243421
304
import locale from datetime import datetime from typing import Generator, List, Any, Optional import scrapy from scrapy.http import HtmlResponse
[ 11748, 36693, 198, 6738, 4818, 8079, 1330, 4818, 8079, 198, 6738, 19720, 1330, 35986, 11, 7343, 11, 4377, 11, 32233, 198, 198, 11748, 15881, 88, 198, 6738, 15881, 88, 13, 4023, 1330, 367, 20369, 31077, 628 ]
4.083333
36
#!/usr/bin/env python3 # # Copyright (c) 2019 Roberto Riggio # # 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 applicabl...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 2, 198, 2, 15069, 357, 66, 8, 13130, 32076, 371, 6950, 952, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 2, 345, ...
2.735484
465
#!/usr/bin/env python """ :: run ~/opticks/ana/debug_buffer.py """ import os, numpy as np np.set_printoptions(suppress=True) os.environ.setdefault("OPTICKS_EVENT_BASE",os.path.expandvars("/tmp/$USER/opticks")) path = os.path.expandvars("$OPTICKS_EVENT_BASE/G4OKTest/evt/g4live/natural/1/dg.npy") dg = np.load(pa...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 37811, 198, 3712, 628, 220, 220, 220, 1057, 47795, 8738, 3378, 14, 2271, 14, 24442, 62, 22252, 13, 9078, 220, 220, 198, 198, 37811, 198, 11748, 28686, 11, 299, 32152, 355, 45941, 198, ...
2.269962
263
import threading import pygame import time import sys import os from pygame.locals import * import numpy as np from collections import deque import torch from torch.autograd import Variable from Tank_AI import Linear_QNet, QTrainer import random FPS = 1000 SQM = 64 EAGLE_Y = [] EAGLE_G = [] BULLETS_Y_...
[ 11748, 4704, 278, 201, 198, 11748, 12972, 6057, 201, 198, 11748, 640, 201, 198, 11748, 25064, 201, 198, 11748, 28686, 201, 198, 6738, 12972, 6057, 13, 17946, 874, 1330, 1635, 201, 198, 11748, 299, 32152, 355, 45941, 201, 198, 6738, 1726...
2.332007
1,759
import matplotlib.pyplot as plot import matplotlib.dates as md from matplotlib.dates import date2num import datetime # from pylab import * from numpy import polyfit import numpy as np f = open("deviations.csv") values = [] timestamps = [] for (i, line) in enumerate(f): if i >= 1: lineArray = line.split(",...
[ 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 7110, 198, 11748, 2603, 29487, 8019, 13, 19581, 355, 45243, 198, 6738, 2603, 29487, 8019, 13, 19581, 1330, 3128, 17, 22510, 198, 11748, 4818, 8079, 198, 2, 422, 279, 2645, 397, 1330, 1635,...
2.367033
455
import argparse import pexpect import sys import time import timeit import zmq parser = argparse.ArgumentParser('Run a range of tests and write the results to a file') parser.add_argument('runs', type=int, help='The number of runs for each approach') parser.add_argument('min_number', type=int, help='The starting numbe...
[ 11748, 1822, 29572, 198, 11748, 613, 87, 806, 198, 11748, 25064, 198, 11748, 640, 198, 11748, 640, 270, 198, 11748, 1976, 76, 80, 198, 198, 48610, 796, 1822, 29572, 13, 28100, 1713, 46677, 10786, 10987, 257, 2837, 286, 5254, 290, 3551, ...
2.699234
522
"""XML Encoding Rules (XER) codec. """ import time import sys from xml.etree import ElementTree import binascii import datetime from ..parser import EXTENSION_MARKER from . import EncodeError from . import DecodeError from . import compiler from . import format_or from . import utc_time_to_datetime from . import utc...
[ 37811, 55, 5805, 14711, 7656, 14252, 357, 55, 1137, 8, 40481, 13, 198, 198, 37811, 198, 198, 11748, 640, 198, 11748, 25064, 198, 6738, 35555, 13, 316, 631, 1330, 11703, 27660, 198, 11748, 9874, 292, 979, 72, 198, 11748, 4818, 8079, 19...
3.109756
164
# Test file foo.py exit
[ 2, 6208, 2393, 22944, 13, 9078, 198, 198, 37023, 198 ]
2.5
10
"""AyudaEnPython: https://www.facebook.com/groups/ayudapython Crear una aplicación de consola que permita al usuario programar alarmas de tiempo. Para realizar esta aplicación deberá presentarle al usuario las siguientes opciones: ver alarmas activas, agregar nueva alarma, agregar nueva alarma con tiempo aleatorio, ed...
[ 37811, 42012, 15339, 4834, 37906, 25, 3740, 1378, 2503, 13, 19024, 13, 785, 14, 24432, 14, 323, 463, 499, 7535, 198, 198, 12443, 283, 555, 64, 257, 489, 291, 32009, 18840, 390, 762, 5708, 8358, 8749, 64, 435, 514, 84, 4982, 1430, 28...
2.253968
1,008
import http1 response = http1.request('http://www.google.com') print(f'Status: {response.status} ({response.message})') print(f'Headers: {response.headers}') #print(f'Body: {response.body.strip()}')
[ 11748, 2638, 16, 198, 198, 26209, 796, 2638, 16, 13, 25927, 10786, 4023, 1378, 2503, 13, 13297, 13, 785, 11537, 198, 4798, 7, 69, 6, 19580, 25, 1391, 26209, 13, 13376, 92, 37913, 26209, 13, 20500, 30072, 11537, 198, 4798, 7, 69, 6, ...
2.857143
70
import ctypes print( '<' + __name__ + ' file=\'' + __file__ + '\'>' ) Scalar = ctypes.c_double Unsigned = ctypes.c_uint Integer = ctypes.c_int Size = ctypes.c_size_t VoidPtr = ctypes.c_void_p print( '</' + __name__ + ' file=\'' + __file__ + '\'>' )
[ 11748, 269, 19199, 201, 198, 201, 198, 4798, 7, 705, 27, 6, 1343, 11593, 3672, 834, 1343, 705, 2393, 28, 59, 7061, 1343, 220, 220, 11593, 7753, 834, 1343, 705, 43054, 29, 6, 1267, 201, 198, 201, 198, 3351, 282, 283, 220, 220, 796,...
2.022059
136
from __future__ import absolute_import, unicode_literals from celery import shared_task from .models import Stock @shared_task @shared_task @shared_task @shared_task
[ 6738, 11593, 37443, 834, 1330, 4112, 62, 11748, 11, 28000, 1098, 62, 17201, 874, 198, 6738, 18725, 1924, 1330, 4888, 62, 35943, 198, 6738, 764, 27530, 1330, 10500, 198, 198, 31, 28710, 62, 35943, 198, 198, 31, 28710, 62, 35943, 198, 1...
3.25
52
__author__ = 'Patrick Farrell' __credits__ = ['Patrick Farrell', 'Mike Giles'] __license__ = 'GPL-3' __maintainer__ = 'Patrick Farrell' __email__ = 'patrick.farrell@maths.ox.ac.uk' from .mlmc_plot_100 import mlmc_plot_100 from .mlmc_plot import mlmc_plot from .mlmc_test import mlmc_test from .mlmc_fn i...
[ 198, 834, 9800, 834, 220, 220, 220, 220, 796, 705, 32718, 37568, 6, 198, 834, 66, 20696, 834, 220, 220, 220, 796, 37250, 32718, 37568, 3256, 705, 16073, 37538, 20520, 198, 834, 43085, 834, 220, 220, 220, 796, 705, 38, 6489, 12, 18, ...
2.514085
142
from django.db import models # from dbapi.settings import * # Create your models here.
[ 6738, 42625, 14208, 13, 9945, 1330, 4981, 201, 198, 2, 422, 20613, 15042, 13, 33692, 1330, 1635, 201, 198, 2, 13610, 534, 4981, 994, 13, 201, 198, 201, 198, 201, 198 ]
3.032258
31
from .field import * from .dataset import * from torch.utils.data import DataLoader as TorchDataLoader
[ 6738, 764, 3245, 1330, 1635, 198, 6738, 764, 19608, 292, 316, 1330, 1635, 198, 6738, 28034, 13, 26791, 13, 7890, 1330, 6060, 17401, 355, 34868, 6601, 17401 ]
3.777778
27
"""implementation of F_CTRM Author: Keisuke Okumura / Ryo Yonetani Affiliation: TokyoTech & OSX / OSX """ from __future__ import annotations from dataclasses import dataclass from functools import reduce from operator import add from typing import Optional import torch import torch.nn as nn from torch.distributions....
[ 37811, 320, 32851, 286, 376, 62, 4177, 29138, 198, 13838, 25, 3873, 271, 4649, 6762, 388, 5330, 1220, 371, 8226, 575, 36823, 3216, 198, 35191, 15547, 25, 11790, 17760, 1222, 7294, 55, 1220, 7294, 55, 198, 37811, 198, 198, 6738, 11593, ...
2.067779
1,918
#!/usr/bin/env python import numpy as np import cv2 if __name__ == '__main__': arr = np.random.rand(512, 512) * 255 print("arr {} | {} -- {} | {}".format(arr.shape, np.amin(arr), np.amax(arr), arr.dtype)) cv2.imwrite("arr.jpg", arr)
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 269, 85, 17, 198, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 198, 220, 220, 220, 5240, 796, 45941, 13, 25120, 13, 25192, ...
2.320755
106
# In this script Kth Nearest Neighbor (Knn) machine learning algorithm used on dataset.csv # This dataset consist of 1000 samples with 26 features each # https://scikit-learn.org/stable/modules/neighbors.html import numpy as np from utils import load_analytic_data, save_sklearn_model from sklearn.model_selection impor...
[ 2, 554, 428, 4226, 509, 400, 3169, 12423, 28708, 357, 42, 20471, 8, 4572, 4673, 11862, 973, 319, 27039, 13, 40664, 198, 2, 770, 27039, 3473, 286, 8576, 8405, 351, 2608, 3033, 1123, 198, 2, 3740, 1378, 36216, 15813, 12, 35720, 13, 23...
3.054404
386
import numpy as np import tensorflow as tf from tensorflow import keras from tensorflow.keras import layers import csv import time from queue import Queue import math a=[] a1 = 0.0001 * np.ones((1, 2, 4, 4), np.float64) a2 = 0.000001 * np.ones((1, 2, 4, 4), np.float64) a3 = 0.00000001 * np.ones((1, 2, 4, 4),...
[ 11748, 299, 32152, 355, 45941, 201, 198, 11748, 11192, 273, 11125, 355, 48700, 201, 198, 6738, 11192, 273, 11125, 1330, 41927, 292, 201, 198, 6738, 11192, 273, 11125, 13, 6122, 292, 1330, 11685, 201, 198, 11748, 269, 21370, 201, 198, 11...
2.100604
497
"function (and parameter space) definitions for hyperband" "binary classification with XGBoost" from common_defs import * # a dict with x_train, y_train, x_test, y_test from load_data_for_regression import data from xgboost import XGBRegressor as XGB # trees_per_iteration = 5 space = { 'learning_r...
[ 1, 8818, 357, 392, 11507, 2272, 8, 17336, 329, 8718, 3903, 1, 201, 198, 1, 39491, 17923, 351, 1395, 4579, 78, 455, 1, 201, 198, 201, 198, 6738, 2219, 62, 4299, 82, 1330, 1635, 201, 198, 201, 198, 2, 257, 8633, 351, 2124, 62, 274...
1.970326
674
from django.urls import path from trains.views import * urlpatterns = [ #path('', home, name = 'home'), path('', TrainListView.as_view(), name = 'home'), # The name of the function that allows you to generate the address dynamically path('detail/<int:pk>/', TrainDetailView.as_view(), name = 'detail'),...
[ 6738, 42625, 14208, 13, 6371, 82, 1330, 3108, 198, 198, 6738, 13404, 13, 33571, 1330, 1635, 198, 198, 6371, 33279, 82, 796, 685, 198, 220, 220, 220, 1303, 6978, 10786, 3256, 1363, 11, 1438, 796, 705, 11195, 33809, 198, 220, 220, 220, ...
2.788382
241
""" Mako Templates -------------- Mako templating code was based on the code and discussion at http://tools.cherrypy.org/wiki/Mako To use the Mako renderer: cherrypy.tools.mako = cherrypy.Tool('on_start_resource', MakoLoader(directories=['/path/to/templates'])) Then in your h...
[ 37811, 198, 198, 44, 25496, 5825, 17041, 198, 26171, 198, 198, 44, 25496, 2169, 489, 803, 2438, 373, 1912, 319, 262, 2438, 290, 5114, 379, 198, 4023, 1378, 31391, 13, 2044, 563, 9078, 13, 2398, 14, 15466, 14, 44, 25496, 198, 198, 25...
2.694545
275
# Copyright (C) 2017 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writi...
[ 2, 15069, 357, 34, 8, 2177, 3012, 3457, 13, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 2, 345, 743, 407, 779, 428, 2393, 2845, 287, 11846, 351, 262, 13789, 13, 198, ...
2.574799
3,476
import datetime import os import time import numpy as np from PIL import Image # Hide the Pygame support message os.environ['PYGAME_HIDE_SUPPORT_PROMPT'] = str() import pygame from .constants import BLACK, WHITE, DRAWING_SIZE, TITLE_BAR_HEIGHT, BORDER_WIDTH from .helper_fns import get_bezier_curve, alpha_blend ...
[ 11748, 4818, 8079, 198, 11748, 28686, 198, 11748, 640, 198, 11748, 299, 32152, 355, 45941, 198, 6738, 350, 4146, 1330, 7412, 628, 198, 2, 10415, 262, 9485, 6057, 1104, 3275, 198, 418, 13, 268, 2268, 17816, 47, 56, 47109, 62, 39, 14114...
2.857143
126
#Script developed by Ryan C. Johnson, University of Alabama for the #Salt Lake City Climate Vulnerability Project. #Date: 3/4/2022 # coding: utf-8 import xgboost as xgb from xgboost.sklearn import XGBRegressor from xgboost import cv import time import pickle import joblib from pickle import dump import numpy as np im...
[ 2, 7391, 4166, 416, 6047, 327, 13, 5030, 11, 2059, 286, 9266, 329, 262, 198, 2, 43061, 6233, 2254, 13963, 569, 40920, 4935, 13, 198, 2, 10430, 25, 513, 14, 19, 14, 1238, 1828, 198, 2, 19617, 25, 3384, 69, 12, 23, 628, 198, 11748...
2.391519
1,014
# THIS FILE IS AUTO-GENERATED. DO NOT EDIT from verta._swagger.base_type import BaseType
[ 2, 12680, 45811, 3180, 47044, 46, 12, 35353, 1137, 11617, 13, 8410, 5626, 48483, 198, 6738, 9421, 64, 13557, 2032, 7928, 13, 8692, 62, 4906, 1330, 31783, 198 ]
3.178571
28
# -*- coding: utf-8 -*- # # The MIT License (MIT) # # Copyright (c) 2018-2022 Dmitriy Yefremov # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitat...
[ 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, 2864, 12, 1238, 1828, 35438, 380, 88, 575, 891, 2787, 709, 198, 2, 198, 2, 2448, ...
2.249889
2,249
# Generated by Django 3.1.4 on 2020-12-22 09:51 from django.db import migrations, models
[ 2, 2980, 515, 416, 37770, 513, 13, 16, 13, 19, 319, 12131, 12, 1065, 12, 1828, 7769, 25, 4349, 198, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 11, 4981, 628 ]
2.84375
32
from import_export import resources from .models import Application2017, Draft from opencon.rating.models import User, Round0Rating, Round1Rating, Round2Rating
[ 6738, 1330, 62, 39344, 1330, 4133, 198, 6738, 764, 27530, 1330, 15678, 5539, 11, 13650, 198, 6738, 1280, 1102, 13, 8821, 13, 27530, 1330, 11787, 11, 10485, 15, 29321, 11, 10485, 16, 29321, 11, 10485, 17, 29321, 198 ]
4.210526
38
# -*- coding: utf-8 -*-
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 628, 198 ]
1.733333
15
a = [[4, 5, 3, 2], [2, 10, 1, 4]] t = [[0, 7, 4, 5], [0, 9, 2, 8]] e = [10, 12] x = [18, 7] print carAssembly(a,t,e,x)
[ 198, 220, 220, 220, 198, 64, 796, 16410, 19, 11, 642, 11, 513, 11, 362, 4357, 685, 17, 11, 838, 11, 352, 11, 604, 11907, 198, 83, 796, 16410, 15, 11, 767, 11, 604, 11, 642, 4357, 685, 15, 11, 860, 11, 362, 11, 807, 11907, 19...
1.636364
77
from django.db import models from cms.models import CMSPlugin ###
[ 6738, 42625, 14208, 13, 9945, 1330, 4981, 198, 198, 6738, 269, 907, 13, 27530, 1330, 40773, 37233, 628, 628, 198, 198, 21017, 628, 628, 198 ]
3.04
25
"""add groups thumbnail Revision ID: bb305829cf83 Revises: 1ca14c33e65c Create Date: 2020-06-02 12:06:21.302890+00:00 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = 'bb305829cf83' down_revision = '1ca14c33e65c' branch_labels = None depends_on = None
[ 37811, 2860, 2628, 40901, 198, 198, 18009, 1166, 4522, 25, 275, 65, 1270, 3365, 1959, 12993, 5999, 198, 18009, 2696, 25, 352, 6888, 1415, 66, 2091, 68, 2996, 66, 198, 16447, 7536, 25, 12131, 12, 3312, 12, 2999, 1105, 25, 3312, 25, 2...
2.496
125
import json from movie import Actor, Movie
[ 11748, 33918, 198, 6738, 3807, 1330, 27274, 11, 15875, 198 ]
4.3
10
from raptiformica.settings.meshnet import update_cjdns_config from tests.testcase import TestCase
[ 6738, 38404, 6933, 3970, 13, 33692, 13, 76, 5069, 3262, 1330, 4296, 62, 66, 73, 67, 5907, 62, 11250, 198, 6738, 5254, 13, 9288, 7442, 1330, 6208, 20448, 628 ]
3.413793
29
import os import pandas as pd from fooltrader import settings # 获取存档的代理列表 if not os.path.exists(get_proxy_dir()): os.makedirs(get_proxy_dir()) http_proxy_df = get_http_proxy() https_proxy_df = get_https_proxy() socks_proxy_df = get_socks_proxy()
[ 11748, 28686, 198, 198, 11748, 19798, 292, 355, 279, 67, 198, 198, 6738, 9192, 2213, 5067, 1330, 6460, 628, 198, 2, 5525, 236, 115, 20998, 244, 27764, 246, 162, 94, 96, 21410, 47987, 49426, 228, 26344, 245, 26193, 101, 628, 628, 628, ...
2.198347
121
"""Multiple return values. Write a function _foo that returns a _string and a _boolean value. Source: MLKo """ # Implementation author: Oldboy # Created on 2017-10-28T09:19:40.922778Z # Last modified on 2017-10-28T09:19:40.922778Z # Version 1
[ 37811, 31217, 1441, 3815, 13, 198, 198, 16594, 257, 2163, 4808, 21943, 326, 5860, 257, 4808, 8841, 290, 257, 4808, 2127, 21052, 1988, 13, 198, 198, 7416, 25, 10373, 48735, 198, 37811, 198, 198, 2, 46333, 1772, 25, 5706, 7081, 198, 2, ...
2.872093
86
# Generated by Django 2.1.7 on 2019-03-14 03:14 import autoslug.fields from django.db import migrations, models import django.db.models.deletion
[ 2, 2980, 515, 416, 37770, 362, 13, 16, 13, 22, 319, 13130, 12, 3070, 12, 1415, 7643, 25, 1415, 198, 198, 11748, 44619, 75, 1018, 13, 25747, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 11, 4981, 198, 11748, 42625, 14208, 13,...
2.882353
51
import pylab as pb import numpy as np from math import pi from scipy . spatial . distance import cdist from scipy.stats import multivariate_normal import matplotlib.pyplot as plt import math #Prior #Create a GP-prior with a squared exponential co-variance function. xdata=[] x=np.arange(-math.pi,math.pi+0.1,0.05) x=np...
[ 11748, 279, 2645, 397, 355, 279, 65, 198, 11748, 299, 32152, 355, 45941, 198, 6738, 10688, 1330, 31028, 198, 6738, 629, 541, 88, 764, 21739, 764, 5253, 1330, 269, 17080, 198, 6738, 629, 541, 88, 13, 34242, 1330, 1963, 42524, 62, 11265...
2.485149
404
#!/usr/bin/env python # -*- coding: utf-8 -*- # @Author: mcxiaoke # @Date: 2015-07-13 22:43:21 import socket HOST = '' PORT = 12345 s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) s.bind((HOST, PORT)) s.listen(1) conn, addr = s.accept() print 'Connected from', addr while True: data = conn.r...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 201, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 201, 198, 2, 2488, 13838, 25, 36650, 36072, 2088, 201, 198, 2, 2488, 10430, 25, 220, 220, 1853, 12, 2998, 12, 1485, ...
2.104712
191
# This is just an example how to use faker # faker is extrimly slow. # check out data_gen_saprk for fas code import csv from faker import Faker import datetime if __name__ == '__main__': records = 100000000 headers = ["Email Id", "Prefix", "Name", "Birth Date", "Phone Number", "Additional Email Id", ...
[ 2, 770, 318, 655, 281, 1672, 703, 284, 779, 277, 3110, 198, 2, 277, 3110, 318, 1070, 3036, 306, 3105, 13, 198, 2, 2198, 503, 1366, 62, 5235, 62, 82, 499, 81, 74, 329, 277, 292, 2438, 198, 11748, 269, 21370, 198, 6738, 277, 3110,...
2.775862
174
# -*- coding: utf-8 -*- """Simple debug application runner.""" import uvicorn from core import config if __name__ == "__main__": uvicorn.run( "api:app", reload=True, host=f"{config.API_HOST}", port=config.API_PORT, loop="uvloop", )
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 26437, 14257, 3586, 17490, 526, 15931, 198, 198, 11748, 334, 25531, 1211, 198, 198, 6738, 4755, 1330, 4566, 198, 198, 361, 11593, 3672, 834, 6624, 366, 834, 12417, ...
2.080882
136
#Retorno de Variáveis r1 = somar(2, 4) r2 = somar(3, 5, 4) r3 = somar(8) print(f'Os cálculos foram {r1}, {r2} e {r3}.')
[ 2, 9781, 46447, 390, 15965, 6557, 303, 271, 198, 198, 81, 16, 796, 3870, 283, 7, 17, 11, 604, 8, 198, 81, 17, 796, 3870, 283, 7, 18, 11, 642, 11, 604, 8, 198, 81, 18, 796, 3870, 283, 7, 23, 8, 198, 4798, 7, 69, 6, 16748, ...
1.714286
70
# # Copyright (c) 2011-2014 Exxeleron GmbH # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agre...
[ 2, 198, 2, 220, 15069, 357, 66, 8, 2813, 12, 4967, 1475, 87, 417, 263, 261, 402, 2022, 39, 198, 2, 198, 2, 220, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 2, 220, 345, 743, 407, 7...
3.536965
257
# This source code file is a part of SigProfilerTopography # SigProfilerTopography is a tool included as part of the SigProfiler # computational framework for comprehensive analysis of mutational # signatures from next-generation sequencing of cancer genomes. # SigProfilerTopography provides the downstream data analysi...
[ 2, 770, 2723, 2438, 2393, 318, 257, 636, 286, 21984, 15404, 5329, 9126, 4867, 198, 2, 21984, 15404, 5329, 9126, 4867, 318, 257, 2891, 3017, 355, 636, 286, 262, 21984, 15404, 5329, 198, 2, 31350, 9355, 329, 9815, 3781, 286, 4517, 864, ...
3.204759
5,841
from typing import * from itertools import count import os from pprint import pformat import logging import cytoolz as toolz import numpy as np import yaml import argparse import voluptuous from mincall.common import * from mincall import train from mincall.train import DataDir, TrainConfig from voluptuous.humanize imp...
[ 6738, 19720, 1330, 1635, 198, 6738, 340, 861, 10141, 1330, 954, 198, 11748, 28686, 198, 6738, 279, 4798, 1330, 279, 18982, 198, 11748, 18931, 198, 11748, 3075, 25981, 89, 355, 2891, 89, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 33...
3.506667
150
# Name: logout.py # Author: HuangHao # Time: 2020/9/30 22:17 from django.http import JsonResponse from zooapi.models import User def logout(request): """ 注销登录 GET @param request: @return: """ request.session.flush() return JsonResponse({'result': 'success', 'success': '注销成功'})
[ 2, 6530, 25, 2604, 448, 13, 9078, 198, 2, 6434, 25, 31663, 39, 5488, 198, 2, 3862, 25, 12131, 14, 24, 14, 1270, 2534, 25, 1558, 198, 198, 6738, 42625, 14208, 13, 4023, 1330, 449, 1559, 31077, 198, 6738, 26626, 15042, 13, 27530, 13...
2.284672
137
# -*- coding: utf-8 -*- from pythainlp.tokenize import sent_tokenize, word_tokenize text = "ฉันรักภาษาไทย เพราะฉันใช้ภาษาไทย " print(text) print(sent_tokenize(text)) # ['ฉันรักภาษาไทย', 'เพราะฉันใช้ภาษาไทย', ''] print(word_tokenize(text)) # ['ฉัน', 'รัก', 'ภาษาไทย', ' ', 'เพราะ', 'ฉัน', 'ใช้', 'ภาษาไทย', ' '] prin...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 6738, 279, 5272, 391, 34431, 13, 30001, 1096, 1330, 1908, 62, 30001, 1096, 11, 1573, 62, 30001, 1096, 198, 198, 5239, 796, 366, 19567, 231, 19567, 109, 19567, 247, ...
1.121145
454
from setuptools import setup setup(name='zsur', version='0.1.0', packages=['zsur'], entry_points={ 'console_scripts': [ 'zsur = zsur.__main__:main' ] }, )
[ 6738, 900, 37623, 10141, 1330, 9058, 198, 198, 40406, 7, 3672, 11639, 89, 11793, 3256, 198, 220, 220, 220, 220, 220, 2196, 11639, 15, 13, 16, 13, 15, 3256, 198, 220, 220, 220, 220, 220, 10392, 28, 17816, 89, 11793, 6, 4357, 198, 2...
1.818182
121
# from . import RNN # from . import reparameterization from . import fp16_utils from . import parallel from . import amp try: from . import optimizers except ImportError: # An attempt to fix https://github.com/NVIDIA/apex/issues/97. I'm not sure why 97 is even # happening because Python modules should only...
[ 2, 422, 764, 1330, 371, 6144, 198, 2, 422, 764, 1330, 1128, 41158, 2357, 1634, 198, 6738, 764, 1330, 277, 79, 1433, 62, 26791, 198, 6738, 764, 1330, 10730, 198, 6738, 764, 1330, 20766, 198, 28311, 25, 198, 220, 220, 220, 422, 764, ...
3.028881
277
from datetime import date from string import Template from namex.services.name_request.auto_analyse import AnalysisIssueCodes # Import DTOs from .abstract import AnalysisResponseIssue from ..response_objects import NameAnalysisIssue from ..response_objects import NameAction, NameActions, Conflict
[ 6738, 4818, 8079, 1330, 3128, 198, 6738, 4731, 1330, 37350, 198, 198, 6738, 1438, 87, 13, 30416, 13, 3672, 62, 25927, 13, 23736, 62, 38200, 325, 1330, 14691, 45147, 34, 4147, 198, 198, 2, 17267, 360, 10468, 82, 198, 6738, 764, 397, ...
4.123288
73
from fabric.api import * from fabric.colors import cyan from fabric.contrib import files packages = ( 'build-essential', 'git', 'mercurial', 'rsync', 'vim', ) def create_deploy_user(): "creates deployment user" username = 'deploy' # create deploy user & home without password ...
[ 6738, 9664, 13, 15042, 1330, 1635, 198, 6738, 9664, 13, 4033, 669, 1330, 36818, 198, 6738, 9664, 13, 3642, 822, 1330, 3696, 198, 198, 43789, 796, 357, 198, 220, 220, 220, 705, 11249, 12, 31195, 3256, 198, 220, 220, 220, 705, 18300, ...
2.508678
749
""" Copyright (c) Facebook, Inc. and its affiliates. 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. """ from __future__ import absolute_import, division, print_function, unicode_literals import os import sox
[ 37811, 198, 15269, 357, 66, 8, 3203, 11, 3457, 13, 290, 663, 29116, 13, 198, 3237, 2489, 10395, 13, 198, 198, 1212, 2723, 2438, 318, 11971, 739, 262, 347, 10305, 12, 7635, 5964, 1043, 287, 262, 198, 43, 2149, 24290, 2393, 287, 262, ...
3.694118
85
from struct import pack from bgapi.base_command import command from bgapi.types import (MessageType, MessageClass)
[ 6738, 2878, 1330, 2353, 198, 198, 6738, 275, 70, 15042, 13, 8692, 62, 21812, 1330, 3141, 198, 6738, 275, 70, 15042, 13, 19199, 1330, 357, 12837, 6030, 11, 16000, 9487, 8, 628, 628, 198 ]
3.529412
34
#!/usr/bin/env python # -*-coding:utf-8-*- import tensorflow as tf import numpy as np from tensorflow.contrib.crf import viterbi_decode
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 532, 9, 12, 66, 7656, 25, 40477, 12, 23, 12, 9, 12, 628, 198, 198, 11748, 11192, 273, 11125, 355, 48700, 198, 11748, 299, 32152, 355, 45941, 198, 6738, 11192, 273, 11125, 13, 36...
2.482759
58
from FPSim2 import FPSim2Engine import time # Variable loaded from the Settings to prevent circular references FPSIM2_FILE_PATH = None FPSIM_ENGINE = None def get_similar_molregnos(query_string, similarity=0.7): """ :param query_string: the smiles, inchi or molfile representation of the query :param simil...
[ 6738, 22082, 320, 17, 1330, 22082, 320, 17, 13798, 198, 11748, 640, 198, 198, 2, 35748, 9639, 422, 262, 16163, 284, 2948, 18620, 10288, 198, 37, 3705, 3955, 17, 62, 25664, 62, 34219, 796, 6045, 198, 37, 3705, 3955, 62, 26808, 8881, ...
3.155779
199
from src.db_models.models import (dict_db_models, CompanyRoot, Company, Partners, CompanyRootSimples, CompanyTaxRegime, RefDate)
[ 6738, 12351, 13, 9945, 62, 27530, 13, 27530, 1330, 357, 11600, 62, 9945, 62, 27530, 11, 5834, 30016, 11, 5834, 11, 14205, 11, 5834, 30016, 8890, 2374, 11, 5834, 27017, 8081, 524, 11, 201, 198, 220, 220, 220, 220, 220, 220, 220, 220,...
2.057471
87
from website.filters import formatdatestring
[ 6738, 3052, 13, 10379, 1010, 1330, 5794, 19608, 395, 1806, 628, 198 ]
3.916667
12
""" Unit tests for '.config'. """ import os import pytest from yaml.parser import ParserError from yaml.representer import RepresenterError from myproj.config import ConfigParser from myproj.models import Parameters # Test parameters FILE_OK = os.path.join( os.path.dirname(__file__), "files", "yaml", ) F...
[ 37811, 198, 26453, 5254, 329, 45302, 11250, 4458, 198, 37811, 198, 11748, 28686, 198, 198, 11748, 12972, 9288, 198, 6738, 331, 43695, 13, 48610, 1330, 23042, 263, 12331, 198, 6738, 331, 43695, 13, 15603, 263, 1330, 10858, 263, 12331, 198,...
2.074468
658
#!/usr/bin/env python import os import sys # CHANGE THE LINE BELOW TO POINT TO YOUR PYTHON SITE PACKAGES sys.path.append("/path/to/site-packages") import opentimelineio as otio resolve = bmd.scriptapp("Resolve") fu = resolve.Fusion() ui = fu.UIManager disp = bmd.UIDispatcher(fu.UIManager) TRACK_TYPES = { "video"...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 198, 11748, 28686, 198, 11748, 25064, 198, 2, 5870, 27746, 3336, 48920, 45339, 5390, 19922, 12394, 5390, 16592, 350, 56, 4221, 1340, 311, 12709, 47035, 25552, 198, 17597, 13, 6978, 13, 3...
1.869048
756
import pymongo import os import datetime,time import pandas as pd import glob import zipfile import json,codecs import shutil dflist=[] m=[] os.chdir(r"D:\NSEDATA\2021") myclient = pymongo.MongoClient("mongodb://localhost:27017/") mydb = myclient["NSEDATA2020FinalDataCopy"] mycol = mydb["BHAVCOPY1"] #mydb.mycol.creat...
[ 11748, 279, 4948, 25162, 198, 11748, 28686, 198, 11748, 4818, 8079, 11, 2435, 198, 198, 11748, 19798, 292, 355, 279, 67, 198, 11748, 15095, 198, 11748, 19974, 7753, 198, 11748, 33918, 11, 19815, 721, 82, 198, 11748, 4423, 346, 198, 198,...
2.34399
782
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations, models import image_cropping.fields
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 6738, 11593, 37443, 834, 1330, 28000, 1098, 62, 17201, 874, 198, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 11, 4981, 198, 198, 11748, 2939, 62, 19915, 2105, 1...
2.978261
46
# Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appli...
[ 2, 15069, 357, 66, 8, 33448, 350, 37382, 47, 37382, 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...
3.701389
288
# ################################################################################################ # ------------------------------------------------------------------------------------------------ # File: vision_detection_app.py # Author: Luis Monteiro # # Created on nov 8, 2019, 22:00 PM # -------------------------...
[ 2, 1303, 29113, 29113, 14468, 7804, 4242, 21017, 198, 2, 16529, 3880, 198, 2, 9220, 25, 220, 220, 5761, 62, 15255, 3213, 62, 1324, 13, 9078, 198, 2, 6434, 25, 20894, 22489, 7058, 198, 2, 198, 2, 15622, 319, 645, 85, 807, 11, 13130...
3.702247
1,068
import unittest from lizard import analyze_file, FileAnalyzer, get_extensions
[ 11748, 555, 715, 395, 198, 6738, 42406, 1330, 16602, 62, 7753, 11, 9220, 37702, 9107, 11, 651, 62, 2302, 5736, 628, 628 ]
3.681818
22