content
stringlengths
1
1.04M
input_ids
listlengths
1
774k
ratio_char_token
float64
0.38
22.9
token_count
int64
1
774k
# -*- coding: utf-8 -*- # space level: 4 """this module is the most importing in thie app. """ from dserver import ServerSocket as server from config import ConfManage as conf if __name__ == "__main__": # would manage conf class hostdata = conf("./conf/base.json") hostdata.setup_logging() server = se...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 2272, 1241, 25, 604, 198, 37811, 5661, 8265, 318, 262, 749, 33332, 287, 294, 494, 598, 13, 198, 37811, 198, 198, 6738, 288, 15388, 1330, 9652, 39105, 355, 4382, 198...
2.87218
133
from . import db # Add your own utility classes and functions here.
[ 6738, 764, 1330, 20613, 628, 198, 198, 2, 3060, 534, 898, 10361, 6097, 290, 5499, 994, 13, 198 ]
3.944444
18
''' Search Controller Module ''' import math from bson.json_util import dumps from flask import current_app from datetime import datetime from app.models.mongodb.posts import Posts from app.models.mongodb.user import User from app.models.mongodb.search_log import SearchLog def v1_search(mongo_cur, keywords, order, us...
[ 7061, 6, 198, 18243, 22741, 19937, 198, 7061, 6, 198, 11748, 10688, 198, 6738, 275, 1559, 13, 17752, 62, 22602, 1330, 45514, 198, 6738, 42903, 1330, 1459, 62, 1324, 198, 6738, 4818, 8079, 1330, 4818, 8079, 198, 6738, 598, 13, 27530, 1...
1.780157
2,288
# Copyright 2017 ZTE Corporation. # # 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 ...
[ 2, 15069, 2177, 1168, 9328, 10501, 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, 921,...
2.681081
370
# Jan28Report on General Accureacy ##################################################################################### # date = 'Jan-23-2020-22-N-noneSpark-R0-noOpt' # notes = 'noneSpark-R0-noOpt' # date = 'Jan-23-2020-21-N-UseSpark-R0-noOpt' # notes = 'UseSpark-R0-noOpt' # date = 'Jan-24-2020-2-N-UseSpark-R1-noOpt' ...
[ 2, 2365, 2078, 19100, 319, 3611, 6366, 495, 1590, 1303, 29113, 29113, 14468, 4242, 198, 2, 3128, 796, 705, 12128, 12, 1954, 12, 42334, 12, 1828, 12, 45, 12, 23108, 4561, 668, 12, 49, 15, 12, 3919, 27871, 6, 198, 2, 4710, 796, 705,...
2.483117
385
from typing import Tuple, Any, Union, List import scipy.stats from pandas import Series, DataFrame from pandas.core.generic import NDFrame from scipy.stats import zscore from IMLearn.learners.regressors import PolynomialFitting from IMLearn.utils import split_train_test import numpy as np import pandas as pd import ...
[ 6738, 19720, 1330, 309, 29291, 11, 4377, 11, 4479, 11, 7343, 198, 198, 11748, 629, 541, 88, 13, 34242, 198, 6738, 19798, 292, 1330, 7171, 11, 6060, 19778, 198, 6738, 19798, 292, 13, 7295, 13, 41357, 1330, 25524, 19778, 198, 6738, 629,...
2.363671
2,659
import os from datetime import datetime from functools import wraps actions = dict() @action @action @action # TODO: Remove this before releasing scbt @action
[ 11748, 28686, 198, 6738, 4818, 8079, 1330, 4818, 8079, 198, 6738, 1257, 310, 10141, 1330, 27521, 198, 198, 4658, 796, 8633, 3419, 198, 198, 31, 2673, 198, 198, 31, 2673, 198, 198, 31, 2673, 198, 198, 2, 16926, 46, 25, 17220, 428, 87...
3.28
50
import requests import json from bs4 import BeautifulSoup import urlparse burp0_url = "https://business.facebook.com/ufi/reaction/profile/browser/fetch/?limit=5000&total_count=5000&ft_ent_identifier=108566350975276&fb_dtsg_ag=AQxhzRLE9rpjfoRo1DHdRZ0DSQntKVunKgX-keo45t7N2Q:AQzSCWY38h7fU8ix7KUq66CzW1lEBK6d7q6b9qF1GVuN...
[ 11748, 7007, 220, 198, 11748, 33918, 198, 6738, 275, 82, 19, 1330, 23762, 50, 10486, 220, 198, 11748, 19016, 29572, 220, 198, 6236, 79, 15, 62, 6371, 796, 366, 5450, 1378, 22680, 13, 19024, 13, 785, 14, 3046, 72, 14, 260, 2673, 14, ...
1.879913
2,290
from django.db import models # Create your models here.
[ 6738, 42625, 14208, 13, 9945, 1330, 4981, 198, 198, 2, 13610, 534, 4981, 994, 13, 198 ]
3.5625
16
""" *Element* A CSS Element. """ from abc import ABCMeta
[ 37811, 628, 220, 220, 220, 1635, 20180, 9, 628, 220, 317, 17391, 11703, 13, 198, 198, 37811, 198, 198, 6738, 450, 66, 1330, 9738, 48526, 628 ]
2.615385
26
from django.db import models from django.conf import settings from django.contrib.auth.models import User , auth from django.utils import timezone # Create your models here.
[ 6738, 42625, 14208, 13, 9945, 1330, 4981, 198, 6738, 42625, 14208, 13, 10414, 1330, 6460, 198, 6738, 42625, 14208, 13, 3642, 822, 13, 18439, 13, 27530, 1330, 11787, 837, 6284, 220, 198, 198, 6738, 42625, 14208, 13, 26791, 1330, 640, 113...
3.591837
49
"""Unit tests.""" # pylint: disable=C0116,R0903,E0401,W0703,W1201,redefined-outer-name,missing-function-docstring,E0401,C0114,W0511,W1203,C0200,C0103,W1203 from main import run_main def test_run_main( get_args_create_section_processor, get_args_refresh_links_processor, get_args_refresh_puml_processor, ...
[ 37811, 26453, 5254, 526, 15931, 198, 2, 279, 2645, 600, 25, 15560, 28, 34, 486, 1433, 11, 49, 2931, 3070, 11, 36, 3023, 486, 11, 54, 15, 36809, 11, 54, 1065, 486, 11, 445, 18156, 12, 39605, 12, 3672, 11, 45688, 12, 8818, 12, 153...
2.418462
325
from imaginarium.storage.utils import create_database_pool
[ 6738, 25007, 17756, 13, 35350, 13, 26791, 1330, 2251, 62, 48806, 62, 7742, 628, 198 ]
4.066667
15
from .GNNExplainer_ import GNNExplainer_
[ 6738, 764, 38, 6144, 18438, 10613, 62, 1330, 402, 6144, 18438, 10613, 62, 198 ]
2.928571
14
import unittest from unittest.mock import patch, MagicMock from mypy_boto3_builder.import_helpers.internal_import_record import ( InternalImportRecord, ) from mypy_boto3_builder.import_helpers.import_string import ImportString
[ 11748, 555, 715, 395, 198, 6738, 555, 715, 395, 13, 76, 735, 1330, 8529, 11, 6139, 44, 735, 198, 198, 6738, 616, 9078, 62, 65, 2069, 18, 62, 38272, 13, 11748, 62, 16794, 364, 13, 32538, 62, 11748, 62, 22105, 1330, 357, 198, 220, ...
3.106667
75
from datetime import datetime, timedelta import numpy from tradingkit.pubsub.core.event import Event from tradingkit.pubsub.core.publisher import Publisher from tradingkit.pubsub.core.subscriber import Subscriber from tradingkit.pubsub.event.book import Book from tradingkit.pubsub.event.candle import Candle from trad...
[ 6738, 4818, 8079, 1330, 4818, 8079, 11, 28805, 12514, 198, 198, 11748, 299, 32152, 198, 198, 6738, 7313, 15813, 13, 12984, 7266, 13, 7295, 13, 15596, 1330, 8558, 198, 6738, 7313, 15813, 13, 12984, 7266, 13, 7295, 13, 12984, 8191, 1330, ...
3.664706
170
import django.db.models.deletion from django.db import migrations, models
[ 11748, 42625, 14208, 13, 9945, 13, 27530, 13, 2934, 1616, 295, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 11, 4981, 628 ]
3.26087
23
import unittest from namecom import Transfer, Domain
[ 11748, 555, 715, 395, 198, 198, 6738, 1438, 785, 1330, 20558, 11, 20021, 198 ]
3.857143
14
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # # Code generated by Microsoft (R) AutoRest Code Generator. # Changes ...
[ 2, 19617, 28, 40477, 12, 23, 198, 2, 16529, 35937, 198, 2, 15069, 357, 66, 8, 5413, 10501, 13, 1439, 2489, 10395, 13, 198, 2, 49962, 739, 262, 17168, 13789, 13, 4091, 13789, 13, 14116, 287, 262, 1628, 6808, 329, 198, 2, 5964, 1321...
3.331776
428
# coding=utf-8 # Copyright 2021 DeepMind Technologies 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 applic...
[ 2, 19617, 28, 40477, 12, 23, 198, 2, 15069, 33448, 10766, 28478, 21852, 15302, 13, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 2, 345, 743, 407, 779, 428, 2393, 2845, 2...
2.901267
2,289
from django.contrib import admin from .models import * admin.site.register(Profession) admin.site.register(Service, ServiceAdmin) admin.site.register(Rating, RatingAdmin) admin.site.register(Rent, RentAdmin) admin.site.register(PriceList, PriceListAdmin) admin.site.register(Order)
[ 6738, 42625, 14208, 13, 3642, 822, 1330, 13169, 198, 198, 6738, 764, 27530, 1330, 1635, 628, 628, 628, 198, 28482, 13, 15654, 13, 30238, 7, 15404, 2521, 8, 198, 28482, 13, 15654, 13, 30238, 7, 16177, 11, 4809, 46787, 8, 198, 28482, ...
3.247191
89
import torch from torch.nn import functional as F from torchmetrics import Metric from models.components.utils import AttentionMask
[ 11748, 28034, 198, 6738, 28034, 13, 20471, 1330, 10345, 355, 376, 198, 6738, 28034, 4164, 10466, 1330, 3395, 1173, 198, 198, 6738, 4981, 13, 5589, 3906, 13, 26791, 1330, 47406, 45195, 198 ]
4.15625
32
"""Test about view""" import pytest @pytest.mark.django_db def test_about(api_request): """Test about GET endpoint""" response = api_request("get", "common:about") assert response.status_code == 200 assert "product_name" in response.data assert "version" in response.data
[ 37811, 14402, 546, 1570, 37811, 198, 11748, 12972, 9288, 628, 198, 31, 9078, 9288, 13, 4102, 13, 28241, 14208, 62, 9945, 198, 4299, 1332, 62, 10755, 7, 15042, 62, 25927, 2599, 198, 220, 220, 220, 37227, 14402, 546, 17151, 36123, 37811, ...
3.030928
97
if __name__ == "__main__": list1 = [1,4,2,5,6,5,3] print('\n\n-----Stalin Sorting Algorithm-----\n') print('unsorted list: '+str(list1)) print('sorted list: '+str(stalinSort(list1)))
[ 198, 198, 361, 11593, 3672, 834, 6624, 366, 834, 12417, 834, 1298, 198, 220, 220, 220, 1351, 16, 796, 685, 16, 11, 19, 11, 17, 11, 20, 11, 21, 11, 20, 11, 18, 60, 198, 220, 220, 220, 3601, 10786, 59, 77, 59, 77, 30934, 1273, ...
2.080808
99
import numpy import tflearn import tensorflow import json import random import datetime from utils.utils import net, label, kata, data, sekantung_kata model = tflearn.DNN(net) model.load("model/model.tfl") if __name__ == '__main__': chat()
[ 11748, 299, 32152, 198, 11748, 256, 27919, 1501, 198, 11748, 11192, 273, 11125, 198, 11748, 33918, 198, 11748, 4738, 198, 11748, 4818, 8079, 198, 6738, 3384, 4487, 13, 26791, 1330, 2010, 11, 6167, 11, 479, 1045, 11, 1366, 11, 384, 74, ...
2.744444
90
if __name__ == '__main__': n = 4 Solution().tower_of_hanoi(n, 'A', 'B', 'C')
[ 220, 220, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 198, 220, 299, 796, 604, 198, 220, 28186, 22446, 36170, 62, 1659, 62, 71, 5733, 72, 7, 77, 11, 705, 32, 3256, 705, 33, 3256, 705, 34, 11537, 198 ]
2
42
from typing import List from fastapi.encoders import jsonable_encoder from sqlalchemy.orm import Session from app.core.security import encrypt_secret from app.crud.base import CRUDBase from app.models.item import Item from app.schemas.item import ItemCreate, ItemUpdate import json item = CRUDItem(Item)
[ 6738, 19720, 1330, 7343, 198, 6738, 3049, 15042, 13, 12685, 375, 364, 1330, 33918, 540, 62, 12685, 12342, 198, 6738, 44161, 282, 26599, 13, 579, 1330, 23575, 198, 6738, 598, 13, 7295, 13, 12961, 1330, 34117, 62, 21078, 198, 6738, 598, ...
3.477273
88
for i in range(0, 10): print (i),
[ 1640, 220, 1312, 287, 2837, 7, 15, 11, 838, 2599, 198, 220, 220, 220, 3601, 357, 72, 828 ]
2.111111
18
from mongoengine import *
[ 198, 6738, 285, 25162, 18392, 1330, 1635, 198 ]
3.375
8
# -*- coding: utf-8 -*- import scrapy from vendors.items import VendorWine from vendors.utils import float_or_none
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 11748, 15881, 88, 198, 198, 6738, 17192, 13, 23814, 1330, 39896, 54, 500, 198, 6738, 17192, 13, 26791, 1330, 12178, 62, 273, 62, 23108, 628, 198 ]
2.95
40
from fisher_py.net_wrapping import NetWrapperBase from fisher_py.data import FileHeader, FileError, SequenceInfo from fisher_py.data.business import SampleInformation, BracketType from typing import List
[ 6738, 17685, 62, 9078, 13, 3262, 62, 29988, 2105, 1330, 3433, 36918, 2848, 14881, 198, 6738, 17685, 62, 9078, 13, 7890, 1330, 9220, 39681, 11, 9220, 12331, 11, 45835, 12360, 198, 6738, 17685, 62, 9078, 13, 7890, 13, 22680, 1330, 27565, ...
3.886792
53
import contextlib from pathlib import Path from typing import NamedTuple import ir_datasets from ir_datasets.util import GzipExtract, DownloadConfig, _DownloadConfig from ir_datasets.datasets.base import Dataset, YamlDocumentation from ir_datasets.formats import TsvDocs, CLIRMatrixQueries, CLIRMatrixQrels NAME = 'clir...
[ 11748, 4732, 8019, 198, 6738, 3108, 8019, 1330, 10644, 198, 6738, 19720, 1330, 34441, 51, 29291, 198, 11748, 4173, 62, 19608, 292, 1039, 198, 6738, 4173, 62, 19608, 292, 1039, 13, 22602, 1330, 402, 13344, 11627, 974, 11, 10472, 16934, 1...
2.399015
203
n=int(input()) m=1000000007 dp=[0]*(n+1) dp[0]=1 for i in range(1,n+1): for j in range(1,7): if i-j >= 0: dp[i]=(dp[i]+dp[i-j])%m else: break print(dp[n])
[ 77, 28, 600, 7, 15414, 28955, 198, 76, 28, 16, 8269, 22, 198, 26059, 41888, 15, 60, 9, 7, 77, 10, 16, 8, 198, 26059, 58, 15, 22241, 16, 198, 1640, 1312, 287, 2837, 7, 16, 11, 77, 10, 16, 2599, 198, 220, 220, 220, 329, 474, ...
1.534884
129
# This is a small python snippet which introduces how to create a class with a constructor, # some functions inside the class and their usage. # Creating an instance of object x = Store("Security Books") # Adding items in stock x.add_item("Gray Hat Hacking", 34) x.add_item("Rafay Baloch", 34.42) # Total of stock ite...
[ 2, 770, 318, 257, 1402, 21015, 39442, 543, 20718, 703, 284, 2251, 257, 1398, 351, 257, 23772, 11, 198, 2, 617, 5499, 2641, 262, 1398, 290, 511, 8748, 13, 198, 198, 2, 30481, 281, 4554, 286, 2134, 198, 87, 796, 9363, 7203, 24074, 1...
3.485981
107
""" The client class has a request method that allows all sorts of generic API requests to Adobe's v1.4 REST API. To get a comprehensive overview of available APIs and methods check out the official Adobe Analytics API Explorer: https://marketing.adobe.com/developer/api-explorer """ from adobe_analytics import Client ...
[ 37811, 198, 464, 5456, 1398, 468, 257, 2581, 2446, 326, 3578, 477, 10524, 286, 14276, 7824, 7007, 284, 21771, 338, 410, 16, 13, 19, 30617, 7824, 13, 198, 198, 2514, 651, 257, 9815, 16700, 286, 1695, 23113, 290, 5050, 2198, 503, 262, ...
2.665428
269
import os from io import BytesIO from luabins import decode_luabins, encode_luabins
[ 11748, 28686, 198, 6738, 33245, 1330, 2750, 4879, 9399, 198, 198, 6738, 300, 84, 397, 1040, 1330, 36899, 62, 2290, 397, 1040, 11, 37773, 62, 2290, 397, 1040, 628 ]
2.965517
29
from django.test import TestCase import datetime from django.utils import timezone from article.models import ArticlePost from django.contrib.auth.models import User from time import sleep from django.urls import reverse
[ 6738, 42625, 14208, 13, 9288, 1330, 6208, 20448, 198, 11748, 4818, 8079, 198, 6738, 42625, 14208, 13, 26791, 1330, 640, 11340, 198, 6738, 2708, 13, 27530, 1330, 10172, 6307, 198, 6738, 42625, 14208, 13, 3642, 822, 13, 18439, 13, 27530, ...
3.844828
58
import json import os from mlserver import MLModel from mlserver.types import InferenceRequest, InferenceResponse from mlserver.utils import get_model_uri from .serve.base import BaseModel from .serve.constants import ENV_TEMPO_RUNTIME_OPTIONS from .serve.loader import load from .serve.metadata import ModelFramework,...
[ 11748, 33918, 198, 11748, 28686, 198, 198, 6738, 25962, 15388, 1330, 10373, 17633, 198, 6738, 25962, 15388, 13, 19199, 1330, 554, 4288, 18453, 11, 554, 4288, 31077, 198, 6738, 25962, 15388, 13, 26791, 1330, 651, 62, 19849, 62, 9900, 198, ...
3.463636
110
from __future__ import absolute_import from __future__ import division from __future__ import print_function import math import tensorflow as tf import tensorflow.contrib.slim as slim model_params = { 'basic': ([0, 0, 0, 0], [16, 32, 64, 128]), 'test': ([0, 1, 2, 3, 2], [64, [64,128], [128,256], [256,512], [2...
[ 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, 10688, 198, 11748, 11192, 273, 11125, 355, 48700, 198, 11748, 11192, 273, 11125...
2.077891
2,542
#!/usr/bin/env python from __future__ import print_function import logging import sys import os import yaml import base64 import subprocess import tempfile logger = logging.getLogger() def run_command(command, env=None, cwd=None, stdin=None, get_stdout=True, get_stderr=True): """returns triple (...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 6738, 11593, 37443, 834, 1330, 3601, 62, 8818, 198, 11748, 18931, 198, 198, 11748, 25064, 198, 11748, 28686, 198, 11748, 331, 43695, 198, 11748, 2779, 2414, 198, 11748, 850, 14681, 198, ...
1.742747
2,068
from flask import render_template from app import app @app.route('/', methods=['GET', 'POST']) if __name__ == '__main__': app.run(debug=True, host="0.0.0.0")
[ 6738, 42903, 1330, 8543, 62, 28243, 198, 6738, 598, 1330, 598, 628, 198, 31, 1324, 13, 38629, 10786, 14, 3256, 5050, 28, 17816, 18851, 3256, 705, 32782, 6, 12962, 628, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 198...
2.59375
64
# Copyright (c) ZenML GmbH 2021. 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: # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applic...
[ 2, 220, 15069, 357, 66, 8, 14760, 5805, 402, 2022, 39, 33448, 13, 1439, 6923, 33876, 13, 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, 779, ...
2.749417
4,290
import torch import torch.nn as nn from mmcv.cnn import normal_init from torch.autograd import Function import numpy as np from ..builder import HEADS from ...core import top_k_accuracy from .base import AvgConsensus, BaseHead @HEADS.register_module()
[ 11748, 28034, 198, 11748, 28034, 13, 20471, 355, 299, 77, 198, 6738, 8085, 33967, 13, 66, 20471, 1330, 3487, 62, 15003, 198, 6738, 28034, 13, 2306, 519, 6335, 1330, 15553, 198, 11748, 299, 32152, 355, 45941, 198, 198, 6738, 11485, 38272...
3.311688
77
import sys import argparse PROG = "tree" USAGE = "%(prog)s <Path> [options]" DESCRIPTION = "Featureful tree utility in Python"
[ 11748, 25064, 198, 11748, 1822, 29572, 198, 198, 4805, 7730, 796, 366, 21048, 1, 198, 2937, 11879, 796, 36521, 7, 1676, 70, 8, 82, 1279, 15235, 29, 685, 25811, 30866, 198, 30910, 40165, 796, 366, 38816, 913, 5509, 10361, 287, 11361, 1...
2.954545
44
""" SAX driver for the Pyexpat C module, based on xml.sax.expatdriver. $Id: drv_pyexpat.py,v 1.6 2000/09/26 19:53:43 loewis Exp $ """ # XXX: todo list of old drv_pyexpat.py, check whether any of these # have been fixed. # Todo on driver: # - make it support external entities (wait for pyexpat.c) # - enable configur...
[ 37811, 198, 4090, 55, 4639, 329, 262, 9485, 1069, 8071, 327, 8265, 11, 1912, 319, 35555, 13, 82, 897, 13, 1069, 8071, 26230, 13, 198, 198, 3, 7390, 25, 1553, 85, 62, 9078, 1069, 8071, 13, 9078, 11, 85, 352, 13, 21, 4751, 14, 293...
3.067308
208
import time import random from pprint import pprint global env env= { "BATTERY_LEVEL": 100, "SPOT": False, "SPOT_LOCATION": (3.0, 7.0), "GENERAL": False, "DUSTY_SPOT": False, "DUSTY_SPOT_LOCATION": (0.0, -4.0), "HOME_PATH": [], "LOCATION": (-3.0, 5.0), "FACING": (0, 1) } NODE_INITI...
[ 11748, 640, 198, 11748, 4738, 198, 6738, 279, 4798, 1330, 279, 4798, 198, 198, 20541, 17365, 198, 24330, 28, 1391, 198, 220, 220, 220, 366, 47379, 5781, 56, 62, 2538, 18697, 1298, 1802, 11, 198, 220, 220, 220, 366, 4303, 2394, 1298, ...
1.97377
305
import nox BLACK_PATHS = ["helpers", "."] @nox.session(python="3.8") def blacken(session): """Run black. Format code to uniform standard. """ session.install("black") session.run( "black", *BLACK_PATHS, ) @nox.session(python="3.8") def unit(session): """Run the unit test...
[ 11748, 645, 87, 198, 198, 9148, 8120, 62, 47, 1404, 7998, 796, 14631, 16794, 364, 1600, 366, 526, 60, 628, 198, 31, 35420, 13, 29891, 7, 29412, 2625, 18, 13, 23, 4943, 198, 4299, 2042, 268, 7, 29891, 2599, 198, 220, 220, 220, 3722...
2.331325
166
""" Provides EventEmitter class. """ import asyncio from functools import partial from typing import ( Callable, Dict, Type, Union, Coroutine, Set, ) from .event import BaseEvent from .subscription import Subscription # pylint: disable=invalid-name EventCallbackType = Callable[[BaseEvent], U...
[ 37811, 198, 15946, 1460, 8558, 10161, 1967, 1398, 13, 198, 37811, 198, 198, 11748, 30351, 952, 198, 6738, 1257, 310, 10141, 1330, 13027, 198, 6738, 19720, 1330, 357, 198, 220, 220, 220, 4889, 540, 11, 198, 220, 220, 220, 360, 713, 11,...
2.482166
1,514
#! /usr/bin/env python ''' A script to fix CEDAR's ASCII dispersion solution output. ABOUT: This script can be used to modify .txt files that CEDAR produce when dispersion solution output has been saved. USAGE: CEDARDispersionTXTFixer.py [-h] [-v] [-r] [-c] [-f] string [-o] srtring ...
[ 2, 0, 1220, 14629, 14, 8800, 14, 24330, 21015, 198, 7061, 6, 198, 32, 4226, 284, 4259, 327, 1961, 1503, 338, 37101, 4596, 6900, 4610, 5072, 13, 198, 198, 6242, 12425, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 770, 4226, 460...
1.963568
3,980
# # Author: Henrique Pereira Coutada Miranda # Run a IP calculation using yambo # from __future__ import print_function import sys from yambopy import * from qepy import * import argparse #parse options parser = argparse.ArgumentParser(description='Test the yambopy script.') parser.add_argument('-dg','--doublegrid', a...
[ 2, 198, 2, 6434, 25, 6752, 33865, 17229, 8704, 40253, 4763, 29575, 198, 2, 5660, 257, 6101, 17952, 1262, 331, 22651, 198, 2, 198, 6738, 11593, 37443, 834, 1330, 3601, 62, 8818, 198, 11748, 25064, 198, 6738, 331, 4131, 11081, 1330, 163...
2.367989
731
# Generated by Django 3.1.12 on 2021-09-21 16:11 from django.db import migrations, models
[ 2, 2980, 515, 416, 37770, 513, 13, 16, 13, 1065, 319, 33448, 12, 2931, 12, 2481, 1467, 25, 1157, 198, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 11, 4981, 628 ]
2.875
32
from __future__ import absolute_import from __future__ import division from __future__ import print_function from .sample.ddd import DddDataset from .sample.exdet import EXDetDataset from .sample.ctdet import CTDetDataset from .sample.multi_pose import MultiPoseDataset from .dataset.coco import COCO from .dataset.pas...
[ 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, 6738, 764, 39873, 13, 1860, 67, 1330, 360, 1860, 27354, 292, 316, 198, 6738, 764, ...
2.459215
331
# -*- coding: utf-8 -*- # Generated by Django 1.10.3 on 2016-11-24 00:55 from __future__ import unicode_literals 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, 940, 13, 18, 319, 1584, 12, 1157, 12, 1731, 3571, 25, 2816, 198, 6738, 11593, 37443, 834, 1330, 28000, 1098, 62, 17201, 874, 198, ...
2.736842
57
__all__ = ('MessageActivity', ) from .preinstanced import MessageActivityType class MessageActivity: """ Might be sent with a ``Message``, if it has rich presence-related chat embeds. Attributes ---------- party_id : `str` The message application's party's id. Can be empty string. ...
[ 834, 439, 834, 796, 19203, 12837, 16516, 3256, 1267, 198, 198, 6738, 764, 3866, 8625, 2903, 1330, 16000, 16516, 6030, 198, 198, 4871, 16000, 16516, 25, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 24213, 307, 1908, 351, 257, 7559, 1...
2.379898
587
import contextlib import warnings
[ 11748, 4732, 8019, 198, 11748, 14601, 628 ]
5
7
VERSION = '0.2.26'
[ 43717, 796, 705, 15, 13, 17, 13, 2075, 6, 198 ]
1.9
10
from flask_wtf import FlaskForm from wtforms import StringField,PasswordField,SubmitField,BooleanField,SubmitField,TextAreaField,RadioField from wtforms.validators import Required,Email,EqualTo from wtforms import ValidationError
[ 198, 6738, 42903, 62, 86, 27110, 1330, 46947, 8479, 198, 6738, 266, 83, 23914, 1330, 10903, 15878, 11, 35215, 15878, 11, 45135, 15878, 11, 46120, 13087, 15878, 11, 45135, 15878, 11, 8206, 30547, 15878, 11, 26093, 15878, 198, 6738, 266, ...
3.640625
64
from setuptools import setup, find_packages with open('requirements.txt') as f: requirements = f.readlines() setup( name ='TChatBot', version ='0.1.0', author ='Deepraj Baidya', author_email ='bdeeprajrkm1@gmail.com', url ='https://github.com/deepraj1729/TChatBot', description ='A ChatBot framew...
[ 6738, 900, 37623, 10141, 1330, 9058, 11, 1064, 62, 43789, 220, 198, 198, 4480, 1280, 10786, 8897, 18883, 13, 14116, 11537, 355, 277, 25, 220, 198, 197, 8897, 18883, 796, 277, 13, 961, 6615, 3419, 220, 198, 198, 40406, 7, 220, 198, 1...
2.657534
365
# ----------------------------------------------------------------------------- # Program Name: calvo_trainer.py # Program Description: Rodan wrapper for Fast Calvo's classifier training # ----------------------------------------------------------------------------- # Core import logging import sys # Third-p...
[ 2, 16529, 32501, 198, 2, 6118, 6530, 25, 220, 220, 220, 220, 220, 220, 220, 220, 2386, 13038, 62, 2213, 10613, 13, 9078, 198, 2, 6118, 12489, 25, 220, 6882, 272, 29908, 329, 12549, 2199, 13038, 338, 1398, 7483, 3047, 198, 2, 16529, ...
3.850932
161
from pynflate.lz77 import Lz77
[ 6738, 279, 2047, 2704, 378, 13, 75, 89, 3324, 1330, 406, 89, 3324, 628 ]
2.285714
14
from django import forms from .models import Inscricao, Hospedagem
[ 6738, 42625, 14208, 1330, 5107, 198, 198, 6738, 764, 27530, 1330, 554, 1416, 1173, 5488, 11, 39946, 276, 363, 368, 628, 198 ]
3.181818
22
# coding=utf-8 from flask import Response from app import app @app.route("/assert-xpath") @app.route("/assert-xpath-svg") @app.route("/assert-xpath-simple-namespaces") @app.route("/assert-xpath-namespaces")
[ 2, 19617, 28, 40477, 12, 23, 198, 6738, 42903, 1330, 18261, 198, 6738, 598, 1330, 598, 628, 198, 31, 1324, 13, 38629, 7203, 14, 30493, 12, 87, 6978, 4943, 628, 198, 31, 1324, 13, 38629, 7203, 14, 30493, 12, 87, 6978, 12, 21370, 70...
2.6875
80
# The `pyspark` shell command can be used to run an interactive shell for debugging purposes (preferably only on smaller datasets) import sys from pyspark import SparkContext, SparkConf conf = SparkConf().setAppName("Ex1") sc = SparkContext(conf=conf) text_file = sc.textFile("hdfs://localhost:9000/input/") output =...
[ 2, 383, 4600, 79, 893, 20928, 63, 7582, 3141, 460, 307, 973, 284, 1057, 281, 14333, 7582, 329, 28769, 4959, 357, 3866, 2232, 1346, 691, 319, 4833, 40522, 8, 198, 11748, 25064, 198, 6738, 279, 893, 20928, 1330, 17732, 21947, 11, 17732,...
3.170543
129
# coding: utf-8 """ Yapily API To access endpoints that require authentication, use your application key and secret created in the Dashboard (https://dashboard.yapily.com) # noqa: E501 OpenAPI spec version: 0.0.155 Generated by: https://github.com/swagger-api/swagger-codegen.git """ import pp...
[ 2, 19617, 25, 3384, 69, 12, 23, 198, 198, 37811, 198, 220, 220, 220, 575, 499, 813, 7824, 628, 220, 220, 220, 1675, 1895, 886, 13033, 326, 2421, 18239, 11, 779, 534, 3586, 1994, 290, 3200, 2727, 287, 262, 16189, 3526, 357, 5450, 1...
2.446533
9,576
"""Classes for interacting with the Twitter API.""" import datetime import oauth2 from urllib.parse import urlencode import json from typing import Any REQUEST_TOKEN_URL = "https://api.twitter.com/oauth/request_token" AUTHORIZE_URL = "https://api.twitter.com/oauth/authorize" ACCESS_TOKEN_URL = "https://api.twitter.com...
[ 37811, 9487, 274, 329, 24986, 351, 262, 3009, 7824, 526, 15931, 198, 11748, 4818, 8079, 198, 11748, 267, 18439, 17, 198, 6738, 2956, 297, 571, 13, 29572, 1330, 2956, 11925, 8189, 198, 11748, 33918, 198, 6738, 19720, 1330, 4377, 198, 198...
2.640951
4,835
#snake_case #camelCase #StudlyCase #kebab-case o slug # Clase A # Clase B # Clase C # Cliente utiliza Clase A o un contenedor con objetos tipo Clase A # e.g. lista = [] de solo tipo Clase A from typing import List class Grupo: """docstring for Banda""" class GrupoMusical(Grupo): """docstring for...
[ 2, 16184, 539, 62, 7442, 198, 2, 66, 17983, 20448, 198, 2, 13007, 306, 20448, 198, 2, 365, 65, 397, 12, 7442, 267, 31065, 198, 198, 2, 1012, 589, 317, 198, 220, 220, 220, 1303, 1012, 589, 347, 198, 220, 220, 220, 1303, 1012, 589...
2.414474
456
from gym import spaces import numpy as np from scipy import interpolate import yaml from navrep.envs.navreptrainenv import NavRepTrainEnv from navrep.rosnav_models.utils.reward import RewardCalculator from navrep.rosnav_models.utils.reward import RewardCalculator class RosnavTrainEncodedEnv(NavRepTrainEnv): """ ...
[ 6738, 11550, 1330, 9029, 198, 11748, 299, 32152, 355, 45941, 198, 6738, 629, 541, 88, 1330, 39555, 378, 198, 11748, 331, 43695, 198, 198, 6738, 6812, 7856, 13, 268, 14259, 13, 28341, 260, 457, 3201, 24330, 1330, 13244, 6207, 44077, 4834...
2.057292
960
from ehi_utils import load_json, dict2dotdict from mygraph import Graph_Int, Graph_Str import argparse import copy import pickle if __name__ == "__main__": parser = argparse.ArgumentParser(description="Parser feature file generator") parser.add_argument("--json_path", type=str, requ...
[ 6738, 304, 5303, 62, 26791, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1330, 3440, 62, 17752, 11, 8633, 17, 26518, 11600, 198, 6738, 616, 34960, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220...
2.732558
172
''' Demonstrates creating objects, object instancing, and object translation. ''' from pymxs import runtime as rt # pylint: disable=import-error INST = rt.Name("instance") def create_borg(obj, num, spacing): """Create a bunch of clones of the provided object""" for i in range(num): for j in range(...
[ 7061, 6, 198, 220, 220, 220, 7814, 2536, 689, 4441, 5563, 11, 2134, 916, 5077, 11, 290, 2134, 11059, 13, 198, 7061, 6, 198, 6738, 279, 4948, 34223, 1330, 19124, 355, 374, 83, 1303, 279, 2645, 600, 25, 15560, 28, 11748, 12, 18224, ...
2.338816
304
import willie @willie.module.commands('sandero')
[ 11748, 481, 494, 198, 198, 31, 10594, 494, 13, 21412, 13, 9503, 1746, 10786, 38142, 3529, 11537 ]
2.882353
17
import math import numpy as np import random import timeit from threading import Thread import functools dist_ar = [] # 거리표(global) # limit_time = 36 # 제한시간(global) cities_count = 0 # 도시 수(global) dots_list = [] # 도시 리스트(global) # Hyper Parameter limits = (60) * 36 # 제한시간 MUT = 0.2 # 변이확률 SEL = 0.85 # 선택압 chrCOUNT = ...
[ 11748, 10688, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 4738, 198, 11748, 640, 270, 198, 6738, 4704, 278, 1330, 14122, 198, 11748, 1257, 310, 10141, 198, 198, 17080, 62, 283, 796, 17635, 1303, 220, 166, 109, 108, 167, 99, 105, 1...
1.033333
1,650
#!/usr/bin/env python3 if __name__ == "__main__": target = 999 answer = sum_divisible_upto(target, 3) + sum_divisible_upto(target, 5) - sum_divisible_upto(target, 3 * 5) print(answer)
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 198, 361, 11593, 3672, 834, 6624, 366, 834, 12417, 834, 1298, 198, 220, 220, 220, 2496, 796, 36006, 198, 220, 220, 220, 3280, 796, 2160, 62, 7146, 12843, 62, 37623, 78, 7, 16793,...
2.373494
83
import asyncio import json import logging from pathlib import Path from crawler.queues import UniqueQueue from crawler.scrapers import URLScraper logging.basicConfig( level=logging.INFO, format="%(asctime)s %(levelname)s: %(message)s", datefmt="%H:%M:%S", )
[ 11748, 30351, 952, 198, 11748, 33918, 198, 11748, 18931, 198, 6738, 3108, 8019, 1330, 10644, 198, 198, 6738, 27784, 1754, 13, 4188, 947, 1330, 30015, 34991, 198, 6738, 27784, 1754, 13, 1416, 2416, 364, 1330, 10289, 3351, 38545, 198, 198, ...
2.650485
103
from pathlib import Path from alphafold.Data.Tools import utils from typing import Optional, Callable, Any, Mapping, Sequence
[ 6738, 3108, 8019, 1330, 10644, 198, 6738, 435, 746, 1878, 727, 13, 6601, 13, 33637, 1330, 3384, 4487, 198, 6738, 19720, 1330, 32233, 11, 4889, 540, 11, 4377, 11, 337, 5912, 11, 45835 ]
3.787879
33
"""Distributed simulation service. """ # Ensure .config is loaded - it sets up our Dask config. from .config import Config def create_app(**kws): """Create and return the simulation server Flask app. kws is passed to the SocketIO constructor. Also start up coroutines to periodically sync tasks a...
[ 37811, 20344, 6169, 18640, 2139, 13, 198, 37811, 198, 198, 2, 48987, 764, 11250, 318, 9639, 532, 340, 5621, 510, 674, 360, 2093, 4566, 13, 198, 6738, 764, 11250, 1330, 17056, 198, 198, 4299, 2251, 62, 1324, 7, 1174, 74, 18504, 2599, ...
2.634499
829
# Source : https://leetcode.com/problems/invert-binary-tree/ # Author : penpenps # Time : 2019-08-01 # BFS, iterative # Time Complexity: O(n), the number of tree's nodes # Space Complexity: O(n), the max node number by level # Definition for a binary tree node. # class TreeNode: # def __init__(self, x): # ...
[ 2, 8090, 1058, 3740, 1378, 293, 316, 8189, 13, 785, 14, 1676, 22143, 14, 259, 1851, 12, 39491, 12, 21048, 14, 198, 2, 6434, 1058, 3112, 3617, 862, 198, 2, 3862, 220, 220, 1058, 13130, 12, 2919, 12, 486, 198, 198, 2, 347, 10652, ...
2.459627
161
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.response.AlipayResponse import AlipayResponse from alipay.aop.api.domain.QuestInstanceDTO import QuestInstanceDTO
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 11748, 33918, 198, 198, 6738, 435, 541, 323, 13, 64, 404, 13, 15042, 13, 26209, 13, 2348, 541, 323, 31077, 1330, 978,...
2.732394
71
# ============================================================================== # Copyright (c) 2018, Yamagishi Laboratory, National Institute of Informatics # Author: Yusuke Yasuda (yasuda@nii.ac.jp) # All rights reserved. # ============================================================================== """ Models. ""...
[ 2, 38093, 25609, 28, 198, 2, 15069, 357, 66, 8, 2864, 11, 14063, 363, 21644, 18643, 11, 2351, 5136, 286, 554, 18982, 873, 198, 2, 6434, 25, 41749, 4649, 25957, 15339, 357, 88, 292, 15339, 31, 77, 4178, 13, 330, 13, 34523, 8, 198, ...
4.124031
129
# -*- coding: utf-8 -*- from mirari.mirari.models import * from .vars import * ######################################################################################## ######################################################################################## VARS = { 'NAME':'Catálogo', 'PLURAL':'Catálogos', ...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 6738, 5720, 2743, 13, 10793, 2743, 13, 27530, 1330, 1635, 198, 6738, 764, 85, 945, 1330, 1635, 628, 198, 29113, 29113, 14468, 7804, 198, 29113, 29113, 14468, 7804, 198, ...
2.066723
3,522
# coding: utf-8 import os import itertools import torch from tqdm import tqdm import numpy as np import toolz as tz import napari from napari.qt import thread_worker from skimage.exposure import rescale_intensity from . import unet from . import watershed as ws u_state_fn = os.path.join( os.path.dirname(__fi...
[ 2, 19617, 25, 3384, 69, 12, 23, 198, 11748, 28686, 198, 11748, 340, 861, 10141, 198, 11748, 28034, 198, 6738, 256, 80, 36020, 1330, 256, 80, 36020, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 2891, 89, 355, 256, 89, 198, 11748, ...
2.171392
1,552
''' 3. 利用map()函数将用户输入的不规范的英文名字,变为首字母大写,其他字符小写的形式 1) 假定用户输入的是["lambDA", “LILY”, “aliCe”] ''' l=["lambDA","LILY","aliCe"] print(list(map([i[:1].upper()+i[1:].lower()for i in l,l])))
[ 7061, 6, 198, 18, 13, 10263, 230, 102, 18796, 101, 8899, 3419, 49035, 121, 46763, 108, 49546, 18796, 101, 22755, 115, 164, 122, 241, 17739, 98, 21410, 38834, 164, 100, 226, 164, 234, 225, 21410, 164, 233, 109, 23877, 229, 28938, 235, ...
1.082353
170
#103 # Time: O(n) # Space: O(n) # Given a binary tree, return the zigzag level order traversal of # its nodes' values. (ie, from left to right, then right to left # for the next level and alternate between). # # For example: # Given binary tree [3,9,20,null,null,15,7], # 3 # / \ # 9 20 # / \ # 1...
[ 2, 15197, 198, 198, 2, 3862, 25, 220, 440, 7, 77, 8, 198, 2, 4687, 25, 440, 7, 77, 8, 628, 198, 2, 11259, 257, 13934, 5509, 11, 1441, 262, 1976, 328, 50183, 1241, 1502, 33038, 282, 286, 220, 198, 2, 663, 13760, 6, 3815, 13, ...
2.294444
180
from setuptools import setup setup( name="electrum-server-cesc", version="1.0.20160803", scripts=['run_electrum_server_cesc','electrum-server-cesc'], install_requires=['plyvel','jsonrpclib', 'irc >= 11, <=14.0'], package_dir={ 'electrumservercesc':'src' }, py_modules=[ ...
[ 6738, 900, 37623, 10141, 1330, 9058, 198, 198, 40406, 7, 198, 220, 220, 220, 1438, 2625, 9509, 6582, 12, 15388, 12, 728, 66, 1600, 220, 198, 220, 220, 220, 2196, 2625, 16, 13, 15, 13, 1264, 1899, 43564, 1600, 198, 220, 220, 220, 1...
2.35426
446
from pandac.PandaModules import * from toontown.toonbase.ToontownGlobals import * from direct.interval.IntervalGlobal import * from direct.fsm import ClassicFSM, State from toontown.safezone import SafeZoneLoader import random from toontown.launcher import DownloadForceAcknowledge import House import Estate import Hous...
[ 6738, 19798, 330, 13, 47, 5282, 5841, 5028, 1330, 1635, 198, 6738, 284, 756, 593, 13, 1462, 261, 8692, 13, 2514, 756, 593, 9861, 672, 874, 1330, 1635, 198, 6738, 1277, 13, 3849, 2100, 13, 9492, 2100, 22289, 1330, 1635, 198, 6738, 12...
3.584
125
# Copyright (c) Meta Platforms, Inc. and affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. from typing import List, Optional, Union, cast import torch import theseus import theseus.constants from .lie_group import LieGroup from ...
[ 2, 15069, 357, 66, 8, 30277, 19193, 82, 11, 3457, 13, 290, 29116, 13, 198, 2, 198, 2, 770, 2723, 2438, 318, 11971, 739, 262, 17168, 5964, 1043, 287, 262, 198, 2, 38559, 24290, 2393, 287, 262, 6808, 8619, 286, 428, 2723, 5509, 13, ...
3.330645
124
import typing import apache_beam as beam
[ 11748, 19720, 198, 198, 11748, 2471, 4891, 62, 40045, 355, 15584, 628, 198 ]
3.384615
13
""" Tests for :mod:`greenday_core.youtube_thumbnails_cache <greenday_core.youtube_thumbnails_cache>` """ from greenday_core.tests.base import AppengineTestBed from greenday_core.youtube_thumbnails_cache import YTThumbnailsCache class YTThumbnailClientTestCase(AppengineTestBed): """ Tests for :class:`g...
[ 37811, 198, 220, 220, 220, 30307, 329, 1058, 4666, 25, 63, 16694, 437, 323, 62, 7295, 13, 11604, 62, 18670, 62, 23870, 1279, 16694, 437, 323, 62, 7295, 13, 11604, 62, 18670, 62, 23870, 29, 63, 198, 37811, 198, 6738, 10536, 437, 323,...
2.491903
494
import torch # torch.autograd.set_detect_anomaly(True) import torch.nn as nn import torch.nn.functional as F import numpy as np import pdb from skimage.metrics import structural_similarity, peak_signal_noise_ratio from lpips import LPIPS from hash_encoding import HashEmbedder, SHEncoder, XYZplusT_HashEmbedder from tim...
[ 11748, 28034, 198, 2, 28034, 13, 2306, 519, 6335, 13, 2617, 62, 15255, 478, 62, 272, 24335, 7, 17821, 8, 198, 11748, 28034, 13, 20471, 355, 299, 77, 198, 11748, 28034, 13, 20471, 13, 45124, 355, 376, 198, 11748, 299, 32152, 355, 459...
2.376963
764
import configparser import os from pathlib import Path import annofabapi from annofabcli.__main__ import main out_dir = Path("./tests/out/instruction") data_dir = Path("./tests/data/instruction") # プロジェクトトップに移動する os.chdir(os.path.dirname(os.path.abspath(__file__)) + "/../") inifile = configparser.ConfigParser() ini...
[ 11748, 4566, 48610, 198, 11748, 28686, 198, 6738, 3108, 8019, 1330, 10644, 198, 198, 11748, 1529, 1659, 397, 15042, 198, 198, 6738, 1529, 1659, 397, 44506, 13, 834, 12417, 834, 1330, 1388, 198, 198, 448, 62, 15908, 796, 10644, 7, 1911, ...
2.492147
191
soma = 0 count = 0 maior = 0 menor = 0 r = 'Y' while r=='Y': n = int(input('Digite um numero: ')) if count == 0 or n > maior: maior = n if count == 0 or n < menor: menor = n soma = soma + n count = count + 1 r = str(input('Quer continuar? [Y/N]: ')).upper().strip() media = soma/c...
[ 82, 6086, 796, 657, 198, 9127, 796, 657, 198, 2611, 1504, 796, 657, 198, 3653, 273, 796, 657, 198, 81, 796, 705, 56, 6, 198, 4514, 374, 855, 6, 56, 10354, 198, 220, 220, 220, 299, 796, 493, 7, 15414, 10786, 19511, 578, 23781, 99...
2.208122
197
import unittest import datetime from http_clients import ByteportHttpGetClient, ByteportHttpPostClient
[ 11748, 555, 715, 395, 198, 11748, 4818, 8079, 198, 198, 6738, 2638, 62, 565, 2334, 1330, 2750, 83, 45813, 43481, 3855, 11792, 11, 2750, 83, 45813, 43481, 6307, 11792, 628 ]
3.5
30
""" Stack-In-A-WSGI: stackinawsgi.admin.admin.StackInAWsgiSessionManager """ import datetime import json import unittest import ddt from stackinabox.services.service import StackInABoxService from stackinabox.services.hello import HelloService from stackinawsgi.admin.admin import StackInAWsgiAdmin from stackinawsgi....
[ 37811, 198, 25896, 12, 818, 12, 32, 12, 19416, 18878, 25, 8931, 259, 8356, 12397, 13, 28482, 13, 28482, 13, 25896, 818, 12298, 82, 12397, 36044, 13511, 198, 37811, 198, 11748, 4818, 8079, 198, 11748, 33918, 198, 11748, 555, 715, 395, ...
2.116793
8,194
"""Prepare subset regions of full NIST NA12878 reference materials for evaluation. Allows preparation of exome or targeted reference materials from the full NIST NA12878 genome. Requires: vcflib: https://github.com/ekg/vcflib bedtools: http://bedtools.readthedocs.org/en/latest/ Usage: prep_rm_subset.py <input_...
[ 37811, 37534, 533, 24637, 7652, 286, 1336, 399, 8808, 11746, 12762, 3695, 4941, 5696, 329, 12660, 13, 198, 198, 34934, 11824, 286, 409, 462, 393, 7977, 4941, 5696, 422, 198, 1169, 1336, 399, 8808, 11746, 12762, 3695, 19270, 13, 198, 198...
2.967532
154
#!/usr/bin/python # -*- coding: utf8 -*- import csv import argparse if __name__ == "__main__": parser = argparse.ArgumentParser(description='This generates a t2t bible.') parser.add_argument('-p', '--plan', help='plan to be used', default="nouveau-testament-commente") #parser.add_...
[ 2, 48443, 14629, 14, 8800, 14, 29412, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 23, 532, 9, 12, 198, 198, 11748, 269, 21370, 198, 11748, 1822, 29572, 628, 198, 361, 11593, 3672, 834, 6624, 366, 834, 12417, 834, 1298, 198, 220, 220,...
2.15309
712
Scale.default = 'indian' Root.default = 0 Clock.bpm = 80 print(Scale.names()) print(SynthDefs) print(FxList) print(PatternMethods) print(Samples) print(Clock.playing) var.ch = var([0,1],[15,3]) ~p1 >> play('W', amp=.5, dur=6, shape=.5, rate=.5, room=1, formant=[1,1,2]) ~p2 >> play('m', amp=.8, dur=2/3, sample=[0,1,0...
[ 29990, 13, 12286, 796, 705, 521, 666, 6, 198, 30016, 13, 12286, 796, 657, 198, 44758, 13, 65, 4426, 796, 4019, 198, 198, 4798, 7, 29990, 13, 14933, 28955, 198, 4798, 7, 29934, 400, 7469, 82, 8, 198, 4798, 7, 37, 87, 8053, 8, 198...
1.867698
582
from collections import OrderedDict import graphene from graphene.types.generic import GenericScalar from graphene.types.objecttype import ObjectTypeOptions from graphene_sqlalchemy import SQLAlchemyConnectionField from graphene_sqlalchemy.types import sort_argument_for_object_type from graphene_sqlalchemy_auto.filter...
[ 6738, 17268, 1330, 14230, 1068, 35, 713, 198, 198, 11748, 42463, 198, 6738, 42463, 13, 19199, 13, 41357, 1330, 42044, 3351, 282, 283, 198, 6738, 42463, 13, 19199, 13, 15252, 4906, 1330, 9515, 6030, 29046, 198, 6738, 42463, 62, 25410, 28...
3.57754
187
from classytags.arguments import Argument from classytags.core import Tag, Options from django import template from cms.plugin_rendering import render_placeholder from cms.stacks.models import Stack register = template.Library() register.tag(StackNode)
[ 6738, 1398, 20760, 3775, 13, 853, 2886, 1330, 45751, 198, 6738, 1398, 20760, 3775, 13, 7295, 1330, 17467, 11, 18634, 198, 6738, 42625, 14208, 1330, 11055, 198, 198, 6738, 269, 907, 13, 33803, 62, 13287, 278, 1330, 8543, 62, 5372, 13829,...
3.597222
72
from collections import namedtuple import pprint from enum import Enum Track = namedtuple('Track', 'direction x_low x_high y_low y_high') def make_tracks(xs, ys, points): """ Give a list of xs columns and ys rows and points, return a list of Track's and connections between the tracks. An assert w...
[ 6738, 17268, 1330, 3706, 83, 29291, 198, 11748, 279, 4798, 198, 6738, 33829, 1330, 2039, 388, 198, 198, 24802, 796, 3706, 83, 29291, 10786, 24802, 3256, 705, 37295, 2124, 62, 9319, 2124, 62, 8929, 331, 62, 9319, 331, 62, 8929, 11537, ...
2.00806
1,613
from PyQt4 import QtGui, QtCore from easypyqt.widget import basicwidget class ButtonGroupWidget(basicwidget.BasicWidget): """ A group of widgets with horizontal or vertical layout. EXAMPLE:: buttonList = [('test1', 'TestONE'), ('test2', 'TestTWO')] fw = ButtonGroupWidget(button_...
[ 6738, 9485, 48, 83, 19, 1330, 33734, 8205, 72, 11, 33734, 14055, 198, 198, 6738, 2562, 9078, 39568, 13, 42655, 1330, 4096, 42655, 628, 198, 4871, 20969, 13247, 38300, 7, 35487, 42655, 13, 26416, 38300, 2599, 198, 220, 220, 220, 37227, ...
2.313525
1,464
import pytest from docopt import docopt, DocoptExit from we_get.core.we_get import WG from we_get.core import we_get @pytest.mark.parametrize( 'argv, exp_res', [ [None, {'arguments': None, 'parguments': {}, 'we_get_run': 0}], [['--search', 'ubuntu'], { 'arguments': { ...
[ 11748, 12972, 9288, 198, 6738, 2205, 8738, 1330, 2205, 8738, 11, 14432, 8738, 30337, 198, 198, 6738, 356, 62, 1136, 13, 7295, 13, 732, 62, 1136, 1330, 370, 38, 198, 6738, 356, 62, 1136, 13, 7295, 1330, 356, 62, 1136, 628, 198, 31, ...
1.671698
795