content
stringlengths
1
1.04M
input_ids
listlengths
1
774k
ratio_char_token
float64
0.38
22.9
token_count
int64
1
774k
import os from oauthlib.oauth2 import WebApplicationClient GOOGLE_CLIENT_ID = os.environ.get('GOOGLE_CLIENT_ID', None) GOOGLE_CLIENT_SECRET = os.environ.get('GOOGLE_CLIENT_SECRET', None) GOOGLE_DISCOVERY_URL = ( "https://accounts.google.com/.well-known/openid-configuration" ) # OAuth 2 client setup client = WebAp...
[ 11748, 28686, 198, 6738, 267, 18439, 8019, 13, 12162, 1071, 17, 1330, 5313, 23416, 11792, 198, 198, 38, 6684, 38, 2538, 62, 5097, 28495, 62, 2389, 796, 28686, 13, 268, 2268, 13, 1136, 10786, 38, 6684, 38, 2538, 62, 5097, 28495, 62, ...
2.458333
144
from django.db import models, migrations
[ 6738, 42625, 14208, 13, 9945, 1330, 4981, 11, 15720, 602, 628 ]
3.818182
11
#!/usr/bin/env python3 # coding: utf8 ## # HectorHardware.py API class for Hector9000 hardware # # imports from __future__ import division devEnvironment = True import time import sys import Adafruit_PCA9685 from HectorConfig import config # Uncomment to enable debug output. import logging if not devEnvironment: ...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 2, 19617, 25, 3384, 69, 23, 198, 2235, 198, 2, 197, 39, 9250, 49865, 13, 9078, 197, 197, 17614, 1398, 329, 42621, 24, 830, 6890, 198, 2, 198, 2, 17944, 198, 6738, 11593, 37443,...
2.277778
594
import pytest from ormik import fields, FieldError class MockModel(object): """ Mock Model """ _pk = fields.AutoField(name='id') @classmethod
[ 11748, 12972, 9288, 198, 198, 6738, 393, 76, 1134, 1330, 7032, 11, 7663, 12331, 628, 198, 4871, 44123, 17633, 7, 15252, 2599, 198, 220, 220, 220, 37227, 44123, 9104, 37227, 628, 220, 220, 220, 4808, 79, 74, 796, 7032, 13, 27722, 15878...
2.892857
56
import numpy as np from dnnv.nn.graph import OperationGraph from dnnv.nn.layers import InputLayer from dnnv.nn.operations import *
[ 11748, 299, 32152, 355, 45941, 198, 198, 6738, 288, 20471, 85, 13, 20471, 13, 34960, 1330, 14680, 37065, 198, 6738, 288, 20471, 85, 13, 20471, 13, 75, 6962, 1330, 23412, 49925, 198, 6738, 288, 20471, 85, 13, 20471, 13, 3575, 602, 1330...
3
45
from django.contrib import admin from luz.conta.models import Conta @admin.register(Conta)
[ 6738, 42625, 14208, 13, 3642, 822, 1330, 13169, 198, 198, 6738, 300, 10277, 13, 3642, 64, 13, 27530, 1330, 2345, 64, 628, 198, 31, 28482, 13, 30238, 7, 4264, 64, 8, 198 ]
2.9375
32
# When you create a new test file, make sure to add it here. # Simply import the class from your file, and then add that class to the '__all__' array. from game.test_suite.tests.test_example import TestExample __all__ = [ 'TestExample' ]
[ 2, 1649, 345, 2251, 257, 649, 1332, 2393, 11, 787, 1654, 284, 751, 340, 994, 13, 198, 2, 17973, 1330, 262, 1398, 422, 534, 2393, 11, 290, 788, 751, 326, 1398, 284, 262, 705, 834, 439, 834, 6, 7177, 13, 198, 198, 6738, 983, 13, ...
3.24
75
#!/usr/bin/python3 import pandas as pd import pickle import sys # Simple script that takes in the Canada Post .add file # and outputs a pickled data frame. # # Input/Output files must be specified on the command line # convert_canada_add.py input_file output_file # # File must conform to specification located at: ...
[ 2, 48443, 14629, 14, 8800, 14, 29412, 18, 198, 198, 11748, 19798, 292, 355, 279, 67, 198, 11748, 2298, 293, 198, 11748, 25064, 198, 198, 2, 17427, 4226, 326, 2753, 287, 262, 3340, 2947, 764, 2860, 2393, 220, 198, 2, 290, 23862, 257,...
2.265849
978
from django.conf import settings SETTINGS = getattr(settings, 'ACTSTREAM_SETTINGS', {}) def get_action_manager(): """ Returns the class of the action manager to use from ACTSTREAM_SETTINGS['MANAGER'] """ mod = SETTINGS.get('MANAGER', 'actstream.managers.ActionManager') mod_path = mod.split('.') ...
[ 6738, 42625, 14208, 13, 10414, 1330, 6460, 628, 198, 28480, 51, 20754, 796, 651, 35226, 7, 33692, 11, 705, 10659, 2257, 32235, 62, 28480, 51, 20754, 3256, 23884, 8, 628, 198, 4299, 651, 62, 2673, 62, 37153, 33529, 198, 220, 220, 220, ...
2.289398
349
# -*- coding:utf-8 -*- # https://leetcode.com/problems/valid-number/description/
[ 2, 532, 9, 12, 19617, 25, 40477, 12, 23, 532, 9, 12, 198, 2, 3740, 1378, 293, 316, 8189, 13, 785, 14, 1676, 22143, 14, 12102, 12, 17618, 14, 11213, 14 ]
2.580645
31
# Copyright Amazon.com, Inc. or its affiliates. # 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. # A copy of the License is located at # # http://aws.amazon.com/apache2.0/ # # or in the "license" file accompa...
[ 2, 15069, 6186, 13, 785, 11, 3457, 13, 393, 663, 29116, 13, 198, 2, 1439, 6923, 33876, 13, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 11074, 198, 2, 921, 743, 407, 779, 428, 239...
3.534946
372
# Generated by Django 2.2.4 on 2019-08-24 20:18 from django.db import migrations, models
[ 2, 2980, 515, 416, 37770, 362, 13, 17, 13, 19, 319, 13130, 12, 2919, 12, 1731, 1160, 25, 1507, 198, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 11, 4981, 628 ]
2.84375
32
# Generated by Django 2.0.5 on 2018-09-19 14:12 from django.db import migrations
[ 2, 2980, 515, 416, 37770, 362, 13, 15, 13, 20, 319, 2864, 12, 2931, 12, 1129, 1478, 25, 1065, 198, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 628, 198 ]
2.709677
31
import copy import datetime from .attachment import Attachment from .errors import BugException VALID_STATUS = ["ASSIGNED", "NEW", "REOPENED", "RESOLVED", "UNCONFIRMED", "VERIFIED"] VALID_RESOLUTION = ["DUPLICATE", "FIXED", "INACTIVE", "INCOMPLETE", "INVALID", "MOVED", "WONTFIX", "WORKSFORME"] ARR...
[ 11748, 4866, 198, 11748, 4818, 8079, 198, 198, 6738, 764, 1078, 15520, 1330, 3460, 15520, 198, 6738, 764, 48277, 1330, 15217, 16922, 198, 198, 23428, 2389, 62, 35744, 2937, 796, 14631, 10705, 16284, 1961, 1600, 366, 13965, 1600, 366, 2200...
2.137968
3,769
import random execute(100)
[ 11748, 4738, 628, 198, 41049, 7, 3064, 8, 198 ]
3.222222
9
HERO = {'B': 'Batman', 'J': 'Joker', 'R': 'Robin'} OUTPUT = '{}: {}'.format
[ 16879, 46, 796, 1391, 6, 33, 10354, 705, 37039, 3256, 705, 41, 10354, 705, 41, 11020, 3256, 705, 49, 10354, 705, 40656, 6, 92, 198, 2606, 7250, 3843, 796, 705, 90, 38362, 23884, 4458, 18982, 628 ]
2.138889
36
import asyncio import datetime import logging import os import pytest import requests_mock from fhempy.lib.pkg_installer import check_and_install_dependencies from tests.utils import mock_fhem def load_fixture(filename): """Load a fixture.""" path = os.path.join(os.path.dirname(__file__), "fixtures", filenam...
[ 11748, 30351, 952, 198, 11748, 4818, 8079, 198, 11748, 18931, 198, 11748, 28686, 198, 198, 11748, 12972, 9288, 198, 11748, 7007, 62, 76, 735, 198, 6738, 277, 258, 3149, 88, 13, 8019, 13, 35339, 62, 17350, 263, 1330, 2198, 62, 392, 62,...
2.734177
158
# -*- coding: UTF-8 -*- from __future__ import absolute_import from f3utils.service_meta import _ServiceMeta class DOM_Meta(_ServiceMeta): """Metaclass for `DOMScope` ones. Prepares a dictionary of descriptors that the scope can apply to components or pages under it. Operates at clas...
[ 2, 532, 9, 12, 19617, 25, 41002, 12, 23, 532, 9, 12, 198, 198, 6738, 11593, 37443, 834, 1330, 4112, 62, 11748, 198, 6738, 277, 18, 26791, 13, 15271, 62, 28961, 1330, 4808, 16177, 48526, 628, 198, 4871, 24121, 62, 48526, 28264, 16177...
2.849206
126
from django.contrib.auth.decorators import login_required from django.shortcuts import render, get_object_or_404,redirect, reverse, render_to_response from django.http import HttpResponse, HttpResponseRedirect from django.template import loader, RequestContext from django.urls import reverse from django.views import ge...
[ 6738, 42625, 14208, 13, 3642, 822, 13, 18439, 13, 12501, 273, 2024, 1330, 17594, 62, 35827, 198, 6738, 42625, 14208, 13, 19509, 23779, 1330, 8543, 11, 651, 62, 15252, 62, 273, 62, 26429, 11, 445, 1060, 11, 9575, 11, 8543, 62, 1462, ...
3.581227
277
import copy from typing import List import logging import gunpowder as gp logger = logging.getLogger(__name__) logger.setLevel(logging.INFO) class DeepCopyArrays(gp.BatchFilter): """ Deep-copy arrays Args: arrays (List[gp.ArrayKey]): ArrayKeys to be copied output_arrays (List[gp.ArrayKey]):...
[ 11748, 4866, 198, 6738, 19720, 1330, 7343, 198, 11748, 18931, 198, 198, 11748, 2485, 45855, 355, 27809, 198, 198, 6404, 1362, 796, 18931, 13, 1136, 11187, 1362, 7, 834, 3672, 834, 8, 198, 6404, 1362, 13, 2617, 4971, 7, 6404, 2667, 13,...
2.776923
130
"""Module contains a mouth state estimator see `mouth state`_ """ from typing import Union, Dict from FaceEngine import MouthEstimation, IMouthEstimatorPtr # pylint: disable=E0611,E0401 from lunavl.sdk.base import BaseEstimation from lunavl.sdk.errors.errors import LunaVLError from lunavl.sdk.errors.exceptions impo...
[ 37811, 26796, 4909, 257, 5422, 1181, 3959, 1352, 198, 198, 3826, 4600, 14775, 1181, 63, 62, 198, 37811, 198, 6738, 19720, 1330, 4479, 11, 360, 713, 198, 198, 6738, 15399, 13798, 1330, 44764, 22362, 18991, 11, 8959, 1536, 22362, 320, 135...
2.319549
1,064
# # Copyright (c) 2014 Chris Jerdonek. All rights reserved. # # Permission is hereby granted, free of charge, to any person obtaining a # copy of this software and associated documentation files (the "Software"), # to deal in the Software without restriction, including without limitation # the rights to use, copy, modi...
[ 2, 198, 2, 15069, 357, 66, 8, 1946, 5180, 4230, 28060, 74, 13, 1439, 2489, 10395, 13, 198, 2, 198, 2, 2448, 3411, 318, 29376, 7520, 11, 1479, 286, 3877, 11, 284, 597, 1048, 16727, 257, 198, 2, 4866, 286, 428, 3788, 290, 3917, 10...
2.834371
803
from setuptools import setup with open("README.md", "r") as fh: long_description = fh.read() setup(name="pdfoutliner", version="0.0.3", author="GHPen", description="Command line interface for generating pdftk-style bookmark files in a user-friendly way, and (optionally) outputs a PDF file with t...
[ 6738, 900, 37623, 10141, 1330, 9058, 198, 198, 4480, 1280, 7203, 15675, 11682, 13, 9132, 1600, 366, 81, 4943, 355, 277, 71, 25, 198, 220, 220, 220, 890, 62, 11213, 796, 277, 71, 13, 961, 3419, 198, 198, 40406, 7, 3672, 2625, 12315, ...
2.509091
330
from django.db.models import Count from django.http import HttpResponse from django.shortcuts import render from functools import wraps from time import sleep # Create your views here. from messenger.models import Message from users.models import CustomUser from django.db import connection, reset_queries i...
[ 6738, 42625, 14208, 13, 9945, 13, 27530, 1330, 2764, 201, 198, 6738, 42625, 14208, 13, 4023, 1330, 367, 29281, 31077, 201, 198, 6738, 42625, 14208, 13, 19509, 23779, 1330, 8543, 201, 198, 201, 198, 6738, 1257, 310, 10141, 1330, 27521, 2...
2.811224
196
# -*- coding: utf-8 -*- """ Display the different computation steps for sensor to cubemap This file will allow to demonstrate the various computation setp associated with a cubemap transfer calculation @author: Brice Dubost Copyright 2020 Brice Dubost Licensed under the Apache License, Version 2.0 (the "Licen...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 198, 23114, 262, 1180, 29964, 4831, 329, 12694, 284, 13617, 368, 499, 198, 198, 1212, 2393, 481, 1249, 284, 10176, 262, 2972, 29964, 900, 79, 3917, 351, 257, 1361...
2.578231
1,470
#!/usr/bin/env python # 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 writing, software # d...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 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, 9...
3.757576
198
# Sort a k increasing and decreasing array # [1, 2, 3, 3, 2, 1, 0, 4, 5] # find all the decreasing intervals and reverse them # add the result to a list # merge UP, DOWN = 0, 1 if __name__ == '__main__': test_cases = [ ([1, 2, 3, 4, 3, 1, 2, 4]), ] for test_case in test_cases: print...
[ 2, 33947, 257, 479, 3649, 290, 24030, 7177, 198, 2, 685, 16, 11, 362, 11, 513, 11, 513, 11, 362, 11, 352, 11, 657, 11, 604, 11, 642, 60, 628, 198, 2, 1064, 477, 262, 24030, 20016, 290, 9575, 606, 198, 2, 751, 262, 1255, 284, ...
2.34375
160
from uuid import uuid4 from .base import AbstractRPCCommLayer from aioredis import create_redis from ..models import RPCStack, RPCResult, RPCBase, SERIALIZABLE_MODELS RESULT_EXPIRE_TIME = 300 # seconds class RPCRedisCommLayer(AbstractRPCCommLayer): """ Redis remote procedure call communication layer """...
[ 6738, 334, 27112, 1330, 334, 27112, 19, 198, 6738, 764, 8692, 1330, 27741, 20031, 4093, 2002, 49925, 198, 6738, 257, 72, 1850, 271, 1330, 2251, 62, 445, 271, 198, 6738, 11485, 27530, 1330, 39400, 25896, 11, 39400, 23004, 11, 39400, 1488...
2.2608
2,500
# import requests import os, sys, io import re import logging import datetime from pathlib import Path import csv Output_Path = str(os.path.join(os.getcwd(), 'Outputs')) Storage_Path = str(os.path.join(Output_Path,"APOPND_THSR_Ok.csv")) Latilongi_Keyword = "經緯座標"
[ 198, 2, 1330, 7007, 198, 11748, 28686, 11, 25064, 11, 33245, 198, 11748, 302, 198, 11748, 18931, 198, 11748, 4818, 8079, 198, 6738, 3108, 8019, 1330, 10644, 198, 11748, 269, 21370, 198, 198, 26410, 62, 15235, 796, 965, 7, 418, 13, 697...
2.384615
117
__author__ = u'schmatz' from systemConfiguration import SystemConfiguration import os import directoryController import errors
[ 834, 9800, 834, 796, 334, 338, 354, 6759, 89, 6, 198, 6738, 1080, 38149, 1330, 4482, 38149, 198, 11748, 28686, 198, 11748, 8619, 22130, 198, 11748, 8563, 628, 628 ]
4.482759
29
"""Run doctests on choices.py and helpers.py""" import doctest import sys from . import choices, helpers failures = 0 failures += doctest.testmod(m=choices, report=True)[0] failures += doctest.testmod(m=helpers, report=True)[0] if failures > 0: sys.exit(1)
[ 37811, 10987, 10412, 3558, 319, 7747, 13, 9078, 290, 49385, 13, 9078, 37811, 198, 198, 11748, 10412, 395, 198, 11748, 25064, 198, 6738, 764, 1330, 7747, 11, 49385, 198, 198, 32165, 942, 796, 657, 198, 198, 32165, 942, 15853, 10412, 395,...
2.789474
95
import torch # must be imported before anything from torchshapelets from .discrepancies import CppDiscrepancy, L2Discrepancy, LogsignatureDiscrepancy from .regularisation import similarity_regularisation from .shapelet_transform import GeneralisedShapeletTransform __version__ = '0.1.0' del torch
[ 11748, 28034, 220, 1303, 1276, 307, 17392, 878, 1997, 422, 28034, 43358, 5289, 198, 198, 6738, 764, 15410, 7856, 16183, 1330, 327, 381, 15642, 7856, 3883, 11, 406, 17, 15642, 7856, 3883, 11, 5972, 12683, 1300, 15642, 7856, 3883, 198, 67...
3.7625
80
# # Copyright 2015 Quantopian, Inc. # Modifications Copyright 2018 Alpaca # # 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 require...
[ 2, 198, 2, 15069, 1853, 16972, 37548, 11, 3457, 13, 198, 2, 3401, 6637, 15069, 2864, 978, 79, 22260, 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, ...
2.261185
10,751
#!/usr/bin/env python # -*- coding: utf-8 -*- import urllib.request, urllib.error import json import os import subprocess import logging import traceback import yaml from datetime import datetime import dateutil.parser from TwitterAPI import TwitterAPI import eyed3 from enum import Enum import shutil import uuid # 通知用...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 11748, 2956, 297, 571, 13, 25927, 11, 2956, 297, 571, 13, 18224, 198, 11748, 33918, 198, 11748, 28686, 198, 11748, 850,...
2.902256
133
""" Overlap Matrix Consolidation """ import numpy as np import scipy.sparse as sp from .. import overlap def apply_chunk_id_maps(overlap_arr, chunk_id_maps): """ Applies id maps to each overlap matrix, returns a combined overlap mat """ rs, cs, vs = list(), list(), list() for (overlap, id_map) ...
[ 37811, 3827, 37796, 24936, 43419, 341, 37227, 628, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 629, 541, 88, 13, 82, 29572, 355, 599, 198, 198, 6738, 11485, 1330, 21721, 628, 198, 4299, 4174, 62, 354, 2954, 62, 312, 62, 31803, 7, ...
2.35
240
if __name__ == "__main__": print("start") # arr = [ # [1, 0, 1, 0, 0], # [1, 0, 1, 1, 1], # [0, 1, 1, 1, 1], # [1, 0, 0, 1, 0] # ] # arr = [ # [1, 1, 1], # [1, 1, 1], # [0, 1, 1] # ] # maximal_square(arr) arr = [ [1,...
[ 628, 628, 198, 198, 361, 11593, 3672, 834, 6624, 366, 834, 12417, 834, 1298, 198, 220, 220, 220, 3601, 7203, 9688, 4943, 198, 220, 220, 220, 1303, 5240, 796, 685, 198, 220, 220, 220, 1303, 220, 220, 220, 220, 685, 16, 11, 657, 11,...
1.466667
555
""" 1383. Maximum Performance of a Team There are n engineers numbered from 1 to n and two arrays: speed and efficiency, where speed[i] and efficiency[i] represent the speed and efficiency for the i-th engineer respectively. Return the maximum performance of a team composed of at most k engineers, since the answer can ...
[ 37811, 198, 1485, 5999, 13, 22246, 15193, 286, 257, 4816, 198, 1858, 389, 299, 12037, 25840, 422, 352, 284, 299, 290, 734, 26515, 25, 2866, 290, 9332, 11, 810, 2866, 58, 72, 60, 290, 9332, 58, 72, 60, 2380, 262, 2866, 290, 9332, 3...
3.184122
592
# -*- coding:utf-8 -*- from flask import Blueprint from flask import session from flask import request from flask import redirect from flask import render_template from flask import current_app from flask.ext.babel import gettext from flask.ext.login import login_required from flask.ext.login import login_user from ...
[ 2, 532, 9, 12, 19617, 25, 40477, 12, 23, 532, 9, 12, 198, 198, 6738, 42903, 1330, 39932, 198, 6738, 42903, 1330, 6246, 198, 6738, 42903, 1330, 2581, 198, 6738, 42903, 1330, 18941, 198, 6738, 42903, 1330, 8543, 62, 28243, 198, 6738, ...
3.329457
258
#!/usr/bin/env python # -*- coding: utf-8 -*- '''Hello Peewee.''' from datetime import datetime, timedelta from flask import Flask, jsonify, request, render_template, abort from flask.ext.classy import FlaskView from flask_peewee.db import Database from flask_peewee.utils import get_object_or_404 import peewee as pw ...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 7061, 6, 15496, 2631, 413, 1453, 2637, 7061, 198, 6738, 4818, 8079, 1330, 4818, 8079, 11, 28805, 12514, 198, 198, 6738,...
2.5625
528
from bisect import bisect_right from torch.optim.lr_scheduler import _LRScheduler
[ 6738, 47457, 478, 1330, 47457, 478, 62, 3506, 198, 6738, 28034, 13, 40085, 13, 14050, 62, 1416, 704, 18173, 1330, 4808, 43, 6998, 1740, 18173, 628 ]
3.192308
26
#! /usr/bin/env python3 import RPi.GPIO as GPIO import time import signal import sys # The Noctua PWM control actually wants 25 kHz (kilo!), see page 6 on: # https://noctua.at/pub/media/wysiwyg/Noctua_PWM_specifications_white_paper.pdf # However, the RPi.GPIO library causes high CPU usage when using high # frequencies...
[ 2, 0, 1220, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 11748, 25812, 72, 13, 16960, 9399, 355, 50143, 198, 11748, 640, 198, 11748, 6737, 198, 11748, 25064, 198, 198, 2, 383, 32809, 6413, 350, 22117, 1630, 1682, 3382, 1679, 37597, 357...
2.530612
588
import pathlib import shutil import logging from flask import Flask, current_app from flask_sqlalchemy import SQLAlchemy from flask_smorest import Api from variance.extensions import db
[ 11748, 3108, 8019, 198, 11748, 4423, 346, 198, 11748, 18931, 198, 6738, 42903, 1330, 46947, 11, 1459, 62, 1324, 198, 6738, 42903, 62, 25410, 282, 26599, 1330, 16363, 2348, 26599, 198, 6738, 42903, 62, 82, 3549, 301, 1330, 5949, 72, 198,...
3.74
50
#!/usr/bin/env python # Run using python3 N50_Calculator <Input Path> <GenomeSize (Optional)> import sys import os import scipy if __name__ == "__main__": if len(sys.argv) == 2: if os.path.isfile(sys.argv[1]): NGorN50(file_path=sys.argv[1]) else: print ('Improper Input Path ...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 5660, 1262, 21015, 18, 399, 1120, 62, 9771, 3129, 1352, 1279, 20560, 10644, 29, 1279, 13746, 462, 10699, 357, 30719, 8, 29, 198, 11748, 25064, 198, 11748, 28686, 198, 11748, 629, 54...
2.091518
448
from collections import defaultdict from corehq import feature_previews, toggles from corehq.apps.custom_data_fields.models import CustomDataFieldsDefinition from corehq.apps.data_dictionary.models import CaseType, CaseProperty from corehq.apps.fixtures.dbaccessors import get_fixture_data_type_by_tag, get_fixture_item...
[ 6738, 17268, 1330, 4277, 11600, 198, 198, 6738, 4755, 71, 80, 1330, 3895, 62, 3866, 33571, 11, 284, 32723, 198, 6738, 4755, 71, 80, 13, 18211, 13, 23144, 62, 7890, 62, 25747, 13, 27530, 1330, 8562, 6601, 15878, 82, 36621, 198, 6738, ...
3.373541
257
#!/usr/bin/env python3 # Copyright (c) 2018, CNRS-LAAS # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # * Redistributions of source code must retain the above copyright notice, this # list...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 198, 2, 15069, 357, 66, 8, 2864, 11, 31171, 6998, 12, 13534, 1921, 198, 2, 1439, 2489, 10395, 13, 198, 2, 198, 2, 2297, 396, 3890, 290, 779, 287, 2723, 290, 13934, 5107, 11, ...
3.127065
787
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import os import sys import random from datetime import datetime, timedelta from pony import orm from flask import url_for from flask_babel import format_timedelta from smilepack.database import db from smilepack import models
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 11748, 28686, 198, 11748, 25064, 198, 11748, 4738, 198, 6738, 4818, 8079, 1330, 4818, 8079, 11, 28805, 12514, ...
3.213483
89
""" ${NAME} """ from __future__ import absolute_import, division, print_function, unicode_literals import logging import numpy from mcedit2.rendering.modelmesh import BlockModelMesh from mcedit2.rendering import layers from mcedit2.rendering.chunkmeshes.chunksections import ChunkSectionsRenderer from mcedit2.rend...
[ 37811, 198, 220, 220, 220, 25597, 20608, 92, 198, 37811, 198, 6738, 11593, 37443, 834, 1330, 4112, 62, 11748, 11, 7297, 11, 3601, 62, 8818, 11, 28000, 1098, 62, 17201, 874, 198, 11748, 18931, 198, 198, 11748, 299, 32152, 198, 6738, 28...
3.180822
365
# Code generated by lark_sdk_gen. DO NOT EDIT. from pylark.lark_request import RawRequestReq, _new_method_option from pylark import lark_type, lark_type_sheet, lark_type_approval import attr import typing import io @attr.s @attr.s
[ 2, 6127, 7560, 416, 300, 668, 62, 21282, 74, 62, 5235, 13, 8410, 5626, 48483, 13, 198, 198, 6738, 279, 2645, 668, 13, 75, 668, 62, 25927, 1330, 16089, 18453, 3041, 80, 11, 4808, 3605, 62, 24396, 62, 18076, 198, 6738, 279, 2645, 66...
2.724138
87
from .filemanager import MDFileManager # NOQA F401
[ 6738, 764, 7753, 37153, 1330, 337, 8068, 576, 13511, 220, 1303, 8005, 48, 32, 376, 21844, 198 ]
3.058824
17
#!/usr/bin/python # -*- coding:utf-8 -*- # Powered By KK Studio # Wrapper Database from sqlalchemy import create_engine from sqlalchemy.orm import sessionmaker, scoped_session
[ 2, 48443, 14629, 14, 8800, 14, 29412, 198, 2, 532, 9, 12, 19617, 25, 40477, 12, 23, 532, 9, 12, 198, 2, 45090, 2750, 509, 42, 11733, 198, 2, 27323, 2848, 24047, 198, 198, 6738, 44161, 282, 26599, 1330, 2251, 62, 18392, 198, 6738, ...
3.033898
59
"""Tests of asynchronous tasks.""" def test_byeworld_async(byeworld): """Test of ByWorld asynchronous task method.""" task = byeworld.asynchronous.delay('test') assert task.get(timeout=10) == {'async': 'test'}
[ 37811, 51, 3558, 286, 39354, 8861, 526, 15931, 628, 198, 4299, 1332, 62, 1525, 38136, 62, 292, 13361, 7, 1525, 38136, 2599, 198, 220, 220, 220, 37227, 14402, 286, 2750, 10603, 39354, 4876, 2446, 526, 15931, 198, 220, 220, 220, 4876, 7...
2.947368
76
import unittest from typing import Dict, Optional, Any if __name__ == "__main__": unittest.main()
[ 11748, 555, 715, 395, 198, 6738, 19720, 1330, 360, 713, 11, 32233, 11, 4377, 628, 628, 198, 198, 361, 11593, 3672, 834, 6624, 366, 834, 12417, 834, 1298, 198, 220, 220, 220, 555, 715, 395, 13, 12417, 3419, 198 ]
2.74359
39
from PyQt5 import QtCore, QtOpenGL from PyQt5.QtCore import Qt ##----------------------------------------------------------------##
[ 6738, 9485, 48, 83, 20, 1330, 33734, 14055, 11, 33734, 11505, 8763, 198, 6738, 9485, 48, 83, 20, 13, 48, 83, 14055, 1330, 33734, 628, 198, 198, 2235, 10097, 2235, 198 ]
4.354839
31
import cv2 import matplotlib.pyplot as plt from utils import * from darknet import Darknet import keras import cv2 import os import numpy as np import pandas as pd from os import listdir from os.path import isfile, join, isdir from PIL import Image import numpy as np import shelve import matplotlib.pyplot as plt # ...
[ 11748, 269, 85, 17, 198, 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 198, 198, 6738, 3384, 4487, 1330, 1635, 198, 6738, 3223, 3262, 1330, 3801, 3262, 198, 198, 11748, 41927, 292, 198, 11748, 269, 85, 17, 198, 11748, 28686...
2.965157
287
import pytest from topaz import mapdict
[ 11748, 12972, 9288, 198, 198, 6738, 1353, 1031, 1330, 3975, 11600, 628, 198 ]
3.307692
13
from itertools import chain import numpy as np import pandas as pd from tqdm import tqdm from ..preprocessing import SW as stop_words from .base import BaseTextFeatureExtractor, TextFeature def _compute_linguistic_features(words_corpus, show_progress=True, extreme_thresh=[2, 0.75]...
[ 6738, 340, 861, 10141, 1330, 6333, 198, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 19798, 292, 355, 279, 67, 198, 198, 6738, 256, 80, 36020, 1330, 256, 80, 36020, 198, 198, 6738, 11485, 3866, 36948, 1330, 12672, 355, 2245, 62, 10...
2.279776
2,141
# Actual file used is kept in scantron/ansible-playbooks/roles/console/templates/production.py.j2
[ 2, 33520, 2393, 973, 318, 4030, 287, 35183, 1313, 14, 504, 856, 12, 1759, 12106, 14, 305, 829, 14, 41947, 14, 11498, 17041, 14, 25493, 13, 9078, 13, 73, 17, 198 ]
3.16129
31
from sympy import * # Verify SymTrace in MultiBspline.hpp # The first part of this script verifies the expression for the trace of the product of a # symmetric matrix (H) and a general matrix (G). # The second part creates body of the SymTrace test in test_multi_spline.cpp. G = MatrixSymbol('G', 3, 3) H = MatrixSy...
[ 198, 6738, 10558, 88, 1330, 1635, 198, 198, 2, 49899, 15845, 2898, 558, 287, 15237, 33, 22018, 500, 13, 71, 381, 198, 198, 2, 383, 717, 636, 286, 428, 4226, 3326, 6945, 262, 5408, 329, 262, 12854, 286, 262, 1720, 286, 257, 198, 2,...
1.832117
1,096
# 4673 셀프넘버 set_number = [d(n) for n in range(1, 10000 + 1)] self_number = [n for n in range(1, 10000 + 1) if n not in set_number] for s in self_number: print(s)
[ 2, 604, 45758, 23821, 227, 222, 169, 242, 226, 167, 226, 246, 167, 110, 226, 628, 198, 2617, 62, 17618, 796, 685, 67, 7, 77, 8, 329, 299, 287, 2837, 7, 16, 11, 33028, 1343, 352, 15437, 198, 944, 62, 17618, 796, 685, 77, 329, 2...
2.08642
81
# Copyright (c) Microsoft Corporation. # Licensed under the MIT license. import os import pickle import re import torch import nni.retiarii.nn.pytorch as nn from nni.retiarii.nn.pytorch import LayerChoice from nni.retiarii.serializer import model_wrapper from blocks import ShuffleNetBlock, ShuffleXceptionBlock @mo...
[ 2, 15069, 357, 66, 8, 5413, 10501, 13, 198, 2, 49962, 739, 262, 17168, 5964, 13, 198, 198, 11748, 28686, 198, 11748, 2298, 293, 198, 11748, 302, 198, 198, 11748, 28034, 198, 11748, 299, 8461, 13, 1186, 72, 2743, 72, 13, 20471, 13, ...
3.171429
105
import logging from functools import partial from multiprocessing.dummy import Pool as ThreadPool from taskcat._s3_sync import S3Sync from taskcat.exceptions import TaskCatException LOG = logging.getLogger(__name__)
[ 11748, 18931, 198, 6738, 1257, 310, 10141, 1330, 13027, 198, 6738, 18540, 305, 919, 278, 13, 67, 13513, 1330, 19850, 355, 14122, 27201, 198, 198, 6738, 4876, 9246, 13557, 82, 18, 62, 27261, 1330, 311, 18, 28985, 198, 6738, 4876, 9246, ...
3.415385
65
import json from back.models import helper
[ 11748, 33918, 198, 198, 6738, 736, 13, 27530, 1330, 31904, 628, 198 ]
3.833333
12
import re from collections import defaultdict, ChainMap, OrderedDict from dictknife.langhelpers import make_dict import yaml from yaml.representer import SafeRepresenter load = yaml.load dump = yaml.dump
[ 11748, 302, 198, 6738, 17268, 1330, 4277, 11600, 11, 21853, 13912, 11, 14230, 1068, 35, 713, 198, 6738, 8633, 48810, 13, 17204, 16794, 364, 1330, 787, 62, 11600, 198, 11748, 331, 43695, 198, 6738, 331, 43695, 13, 15603, 263, 1330, 19978...
3.466667
60
from __future__ import absolute_import, division, print_function # LIBTBX_SET_DISPATCHER_NAME phenix.evalurama from mmtbx.programs import evalurama from iotbx.cli_parser import run_program run_program(evalurama.Program)
[ 6738, 11593, 37443, 834, 1330, 4112, 62, 11748, 11, 7297, 11, 3601, 62, 8818, 198, 2, 45651, 22737, 55, 62, 28480, 62, 26288, 47, 11417, 1137, 62, 20608, 6566, 844, 13, 18206, 333, 1689, 198, 198, 6738, 8085, 83, 65, 87, 13, 23065, ...
2.96
75
import pybullet from pybullet_utils import bullet_client import numpy as np import cv2, os import time import gym from datetime import datetime from collections import OrderedDict from pybullet_data import getDataPath from bullet_envs.utils import seeding_np_random, AddNoise robot_diameter = 0.4 initZ = 0.
[ 11748, 12972, 15065, 1616, 198, 6738, 12972, 15065, 1616, 62, 26791, 1330, 10492, 62, 16366, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 269, 85, 17, 11, 28686, 198, 11748, 640, 198, 11748, 11550, 198, 6738, 4818, 8079, 1330, 4818, ...
3.13
100
""" Description: 20. Valid Parentheses Difficulty: Easy Given a string s containing just the characters '(', ')', '{', '}', '[' and ']', determine if the input string is valid. An input string is valid if: Open brackets must be closed by the same type of brackets. Open brackets must be closed in the correct order. ...
[ 37811, 198, 11828, 25, 1160, 13, 48951, 16774, 39815, 198, 28813, 22402, 25, 16789, 198, 198, 15056, 257, 4731, 264, 7268, 655, 262, 3435, 29513, 3256, 705, 8, 3256, 705, 90, 3256, 705, 92, 3256, 705, 17816, 290, 705, 60, 3256, 220, ...
3.145161
186
# -*- coding: utf-8 -*- # Copyright 2020 Green Valley Belgium NV # # 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 appl...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 15069, 12131, 3469, 6916, 15664, 23973, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 2, 345, 743, 407, ...
2.887439
613
print("This is a .py file")
[ 4798, 7203, 1212, 318, 257, 764, 9078, 2393, 4943, 198 ]
2.8
10
import itertools d = dict(itertools.izip(the_keys, the_values))
[ 11748, 340, 861, 10141, 198, 67, 796, 8633, 7, 270, 861, 10141, 13, 528, 541, 7, 1169, 62, 13083, 11, 262, 62, 27160, 4008, 198 ]
2.56
25
"""This module provides some functionality to evaluate different explanation methods on several evaluation criteria.""" from typing import Union, Callable, Dict import numpy as np from .metrics import * from .helpers.constants import * from .helpers.model_interface import ModelInterface def evaluate( metrics: dic...
[ 37811, 1212, 8265, 3769, 617, 11244, 284, 13446, 1180, 7468, 5050, 319, 1811, 12660, 9987, 526, 15931, 198, 6738, 19720, 1330, 4479, 11, 4889, 540, 11, 360, 713, 198, 11748, 299, 32152, 355, 45941, 198, 6738, 764, 4164, 10466, 1330, 163...
1.951852
1,890
from django.contrib.auth import get_user_model, authenticate from rest_framework import serializers from . import models, constants User = get_user_model()
[ 6738, 42625, 14208, 13, 3642, 822, 13, 18439, 1330, 651, 62, 7220, 62, 19849, 11, 8323, 5344, 198, 6738, 1334, 62, 30604, 1330, 11389, 11341, 198, 6738, 764, 1330, 4981, 11, 38491, 198, 198, 12982, 796, 651, 62, 7220, 62, 19849, 3419,...
3.613636
44
import torch import time
[ 11748, 28034, 198, 11748, 640, 628 ]
4.333333
6
import numpy as np import os from utils import IntersectList, image_ids_to_pair_id, pair_id_to_image_ids, blob_to_array from matches_list import MatchesList from database import COLMAPDatabase # def RegenerateMatches(num_images, is_geo_neighbors, matches_list): # # subject to simplications. For now we mimic the o...
[ 11748, 299, 32152, 355, 45941, 198, 11748, 28686, 198, 198, 6738, 3384, 4487, 1330, 4225, 8831, 8053, 11, 2939, 62, 2340, 62, 1462, 62, 24874, 62, 312, 11, 5166, 62, 312, 62, 1462, 62, 9060, 62, 2340, 11, 44812, 62, 1462, 62, 18747,...
2.033223
602
import json from random import choice import config import modules from templates.quick_replies import add_quick_reply from templates.text import TextTemplate
[ 11748, 33918, 198, 6738, 4738, 1330, 3572, 198, 198, 11748, 4566, 198, 11748, 13103, 198, 6738, 24019, 13, 24209, 62, 35666, 444, 1330, 751, 62, 24209, 62, 47768, 198, 6738, 24019, 13, 5239, 1330, 8255, 30800, 628 ]
4.351351
37
import tensorflow as tf import tensorflow.contrib.slim as slim import numpy as np import sys import random # from contact_point_dataset_torch_multi_label import MyDataset from simple_dataset import MyDataset import os import time import argparse from functools import partial from torch.utils.data import DataLoader i...
[ 11748, 11192, 273, 11125, 355, 48700, 198, 11748, 11192, 273, 11125, 13, 3642, 822, 13, 82, 2475, 355, 18862, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 25064, 198, 11748, 4738, 198, 2, 422, 2800, 62, 4122, 62, 19608, 292, 316, 6...
2.58439
3,549
import random from blubber_orm import Reservations, Items, Users, Orders
[ 11748, 4738, 198, 198, 6738, 698, 549, 527, 62, 579, 1330, 40425, 602, 11, 17230, 11, 18987, 11, 30689, 198 ]
3.7
20
#used as a configuration file def fan: pin = 4 dependencies = [“python3”,”gpiozero”]
[ 2, 1484, 355, 257, 8398, 2393, 198, 198, 4299, 4336, 25, 198, 220, 220, 220, 6757, 796, 604, 198, 198, 45841, 3976, 796, 685, 447, 250, 29412, 18, 447, 251, 11, 447, 251, 31197, 952, 22570, 447, 251, 60, 198 ]
2.275
40
from .numpy_backend import NumPyBackend from .numba_backend import numba_backend_lazy from .qasm_output_backend import QasmOutputBackend from .ibmq_backend import ibmq_backend from .sympy_backend import SympyBackend from .onequbitgate_transpiler import OneQubitGateCompactionTranspiler from .twoqubitgate_transpiler impo...
[ 6738, 764, 77, 32152, 62, 1891, 437, 1330, 31835, 20519, 7282, 437, 198, 6738, 764, 77, 2178, 64, 62, 1891, 437, 1330, 997, 7012, 62, 1891, 437, 62, 75, 12582, 198, 6738, 764, 80, 8597, 62, 22915, 62, 1891, 437, 1330, 1195, 8597, ...
2.495495
333
from django.shortcuts import render, redirect # Create your views here. from .forms import PostForm from .models import Post
[ 6738, 42625, 14208, 13, 19509, 23779, 1330, 8543, 11, 18941, 198, 198, 2, 13610, 534, 5009, 994, 13, 198, 6738, 764, 23914, 1330, 2947, 8479, 198, 6738, 764, 27530, 1330, 2947, 198 ]
3.9375
32
#!/usr/bin/env python # -*- coding:utf-8 -*- """ Created on 17/10/27 09:53:55 @author: Changzhi Sun """ import argparse import os import json import utils parser = argparse.ArgumentParser() parser.add_argument( "--config", help="path to json config", required=True ) args = parser.parse_args() config_file...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 532, 9, 12, 19617, 25, 40477, 12, 23, 532, 9, 12, 198, 37811, 198, 41972, 319, 1596, 14, 940, 14, 1983, 7769, 25, 4310, 25, 2816, 198, 198, 31, 9800, 25, 22597, 89, 5303, 3825...
2.375556
450
#!/usr/bin/env python import numpy as np import time, sys import matplotlib.pyplot as plt import matplotlib from generic_seg import GenericSegmenter import cv2 from sklearn.neighbors import BallTree from scipy.stats import pearsonr, spearmanr import utils k_closest = 5 aspect_thresh = 0.45 type_thresh = -2.8 plt....
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 640, 11, 25064, 198, 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 198, 11748, 2603, 29487, 8019, 198, 198, 6738, 14276, 62, ...
2.221638
3,041
# -*- coding: utf-8 -*- # ____ ____ # / ___| ___ _ __ ___ ___ _ __ | _ \ _ _ # \___ \ / __| '__/ _ \/ _ \ '_ \| |_) | | | | # ___) | (__| | | __/ __/ | | | __/| |_| | # |____/ \___|_| \___|\___|_| |_|_| ...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 628, 198, 2, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1427, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220,...
1.556745
467
try: import comet_ml except ModuleNotFoundError as e: print("comet_ml not found, ignoring") import sys import os import yaml import json from datetime import datetime import glob import random import platform import numpy as np from pathlib import Path import click from tqdm import tqdm import shutil from func...
[ 28311, 25, 198, 220, 220, 220, 1330, 31733, 62, 4029, 198, 16341, 19937, 3673, 21077, 12331, 355, 304, 25, 198, 220, 220, 220, 3601, 7203, 785, 316, 62, 4029, 407, 1043, 11, 15482, 4943, 198, 198, 11748, 25064, 198, 11748, 28686, 198,...
2.631987
4,383
cont18 = homem = mulher20 = 0 while True: idade = int(input('\033[30mDigite a sua idade:\033[m ')) sexo = str(input('\033[30mDigite o seu sexo [M/F]:\033[m ')).upper().strip() run = str(input('\033[30mVocê gostaria de continuar? [S/N]\033[m ')).upper().strip() if idade >= 18: cont18 += 1 ...
[ 3642, 1507, 796, 3488, 368, 796, 35971, 372, 1238, 796, 657, 201, 198, 4514, 6407, 25, 201, 198, 220, 220, 220, 4686, 671, 796, 493, 7, 15414, 10786, 59, 44427, 58, 1270, 76, 19511, 578, 257, 424, 64, 4686, 671, 7479, 44427, 58, 7...
1.870813
418
if __name__ == '__main__': main()
[ 198, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 198, 220, 220, 220, 1388, 3419, 198 ]
2.105263
19
import turtle colors = ['red','purple','blue','green','yellow','orange'] t=turtle.Pen() t.speed(0) turtle.bgcolor("black") for x in range(360): t.pencolor(colors[x % 6]) t.width(x/100 + 1) t.forward(x) t.left(59) turtle.done()
[ 11748, 28699, 201, 198, 4033, 669, 796, 37250, 445, 41707, 14225, 1154, 41707, 17585, 41707, 14809, 41707, 36022, 41707, 43745, 20520, 201, 198, 83, 28, 83, 17964, 13, 25553, 3419, 201, 198, 83, 13, 12287, 7, 15, 8, 201, 198, 83, 1796...
2.135593
118
""" _InsertStreamCMSSWVersion_ Oracle implementation of InsertStreamCMSSWVersion """ from WMCore.Database.DBFormatter import DBFormatter
[ 37811, 198, 62, 44402, 12124, 24187, 5432, 54, 14815, 62, 198, 198, 48625, 7822, 286, 35835, 12124, 24187, 5432, 54, 14815, 198, 198, 37811, 198, 198, 6738, 370, 9655, 382, 13, 38105, 13, 11012, 8479, 1436, 1330, 20137, 8479, 1436, 198 ...
3.414634
41
# Copyright 2017 Google Inc. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ...
[ 2, 15069, 2177, 3012, 3457, 13, 1439, 2489, 10395, 13, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 2, 345, 743, 407, 779, 428, 2393, 2845, 287, 11846, 351, 262, 13789, ...
3.741294
201
nome = str(input('Digite seu nome Completo: ')).strip() print('Analisando seu nome...') print('Seu nome em maiúsculas é {}.'.format(nome.upper())) print('Seu nome em minuscula é {}.'.format(nome.lower())) print('Seu nome ao todo tem {} letras.'.format(len(nome) - nome.count(' '))) #dividido = nome.split() #print('Seu p...
[ 77, 462, 796, 965, 7, 15414, 10786, 19511, 578, 384, 84, 299, 462, 955, 1154, 1462, 25, 705, 29720, 36311, 3419, 198, 4798, 10786, 2025, 27315, 25440, 384, 84, 299, 462, 986, 11537, 198, 4798, 10786, 4653, 84, 299, 462, 795, 285, 18...
2.5
176
# -*- coding: utf-8 -*- """ formlayout ========== Module creating Qt form dialogs/layouts to edit various type of parameters formlayout License Agreement (MIT License) ------------------------------------------ Copyright (c) 2009-2015 Pierre Raybaut Permission is hereby granted, free of charge, to any person obtai...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 198, 687, 39786, 198, 2559, 855, 198, 198, 26796, 4441, 33734, 1296, 17310, 82, 14, 10724, 5269, 284, 4370, 2972, 2099, 286, 10007, 628, 198, 687, 39786, 13789, 1...
2.444401
5,117
#!/usr/bin/env python # -*- coding: UTF-8 -*- # --------------------------------------------------------------------------- # ___ __ __ __ ___ # / | \ | \ | \ / Automatic # \__ |__/ |__/ |___| \__ Annotation # \ | | |...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 532, 9, 12, 19617, 25, 41002, 12, 23, 532, 9, 12, 198, 2, 16529, 32284, 198, 2, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 46444, 220, 220, 11593, 220, 220, 220, ...
2.584274
2,836
""" Python Easy Language Translator PyElant is a python tool for easily performing translations and storing it on the clipboard. Input can be received via microphone, command line or the clipboard itself. @brief PyElant @author Paulo Marcos @date 2021-03-19 Copyright (c) 2021 paulomarcosdj <@> outlook.com "...
[ 37811, 198, 37906, 16789, 15417, 3602, 41880, 9485, 9527, 415, 318, 257, 21015, 2891, 329, 3538, 9489, 198, 7645, 49905, 290, 23069, 340, 319, 262, 47999, 13, 198, 20560, 460, 307, 2722, 2884, 21822, 11, 3141, 1627, 393, 262, 47999, 234...
2.272944
1,678
from getratings.models.ratings import Ratings
[ 6738, 651, 10366, 654, 13, 27530, 13, 10366, 654, 1330, 36826, 201, 198, 201, 198 ]
3.266667
15
import torch import torch.nn as nn from utils import custom_init # self.weight_init() # # def weight_init(self): # for block in self._modules: # try: # for m in self._modules[block]: # custom_init(m) # except: # custom...
[ 11748, 28034, 198, 11748, 28034, 13, 20471, 355, 299, 77, 198, 6738, 3384, 4487, 1330, 2183, 62, 15003, 628, 198, 220, 220, 220, 1303, 220, 220, 220, 220, 2116, 13, 6551, 62, 15003, 3419, 198, 220, 220, 220, 1303, 198, 220, 220, 220...
1.826748
329
#!/usr/bin/env python # -*- coding: utf-8 -*- #Created on Mon Jan 22 13:36:32 2018 #@author: bas #First create the boxes to stack. Move the robot to the first box to pick. Add the box to the robot with attache_box(link, name). Move the arm to the place point. Release the box with remove_attached_object(link, name). Re...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 41972, 319, 2892, 2365, 2534, 1511, 25, 2623, 25, 2624, 2864, 198, 2, 31, 9800, 25, 1615, 198, 198, 2, 5962, 225...
3.11
200
__version__ = "0.9.2" import os from django.core.exceptions import ImproperlyConfigured # load plugins from django.conf import settings try: plugins_config = getattr(settings, "FASTAPP_PLUGINS_CONFIG", {}) plugins = plugins_config.keys() plugins = plugins + getattr(settings, "FASTAPP_PLUGINS", []) fo...
[ 834, 9641, 834, 796, 366, 15, 13, 24, 13, 17, 1, 198, 198, 11748, 28686, 198, 198, 6738, 42625, 14208, 13, 7295, 13, 1069, 11755, 1330, 12205, 525, 306, 16934, 1522, 198, 198, 2, 3440, 20652, 198, 6738, 42625, 14208, 13, 10414, 1330...
2.721519
158
import cv2, time, pandas from datetime import datetime first_frame=None #fill list with two empty items status_list=[None,None] times=[] df=pandas.DataFrame(columns=["Start", "End"]) video=cv2.VideoCapture(0) while True: check, frame = video.read() status=0 gray=cv2.cvtColor(frame,cv2.COLOR_BGR2GRAY) ...
[ 11748, 269, 85, 17, 11, 640, 11, 19798, 292, 198, 6738, 4818, 8079, 1330, 4818, 8079, 198, 198, 11085, 62, 14535, 28, 14202, 198, 2, 20797, 1351, 351, 734, 6565, 3709, 198, 13376, 62, 4868, 41888, 14202, 11, 14202, 60, 198, 22355, 2...
2.535065
1,155
import imgaug as ia import imgaug.augmenters as iaa import os import cv2 import numpy as np from util import sequence anno_INPUT_DIR = r'annotation_files/' img_INPUT_DIR = r'image_files/' OUTPUT_DIR = 'output_dir/' AUGMENT_SIZE = 6 if __name__ == '__main__': main()
[ 11748, 33705, 7493, 355, 220, 544, 198, 11748, 33705, 7493, 13, 559, 5154, 364, 355, 220, 544, 64, 198, 11748, 28686, 198, 11748, 269, 85, 17, 198, 11748, 299, 32152, 355, 45941, 198, 6738, 7736, 1330, 8379, 198, 198, 1236, 78, 62, ...
2.464286
112
from glob import glob from os import chdir from os.path import dirname import pandas as pd import numpy as np from pandas.core.frame import DataFrame import matplotlib.pyplot as plt from numpy.fft import rfft, rfftfreq from scipy import signal from math import pi WINDOW = "sg" # sg for savgol filter WINDOW = "hamming...
[ 6738, 15095, 1330, 15095, 198, 6738, 28686, 1330, 442, 15908, 198, 6738, 28686, 13, 6978, 1330, 26672, 3672, 198, 11748, 19798, 292, 355, 279, 67, 198, 11748, 299, 32152, 355, 45941, 198, 6738, 19798, 292, 13, 7295, 13, 14535, 1330, 606...
2.53
200
# from os import popen from pathlib import Path from qbay.models import * import subprocess # Set the current folder current_folder = Path(__file__).parent # Creating two Users for testing of order functionality register("OrderUser1", "order_user1@qbay.com", "Password99@") register("OrderUser2", ...
[ 2, 422, 28686, 1330, 1461, 268, 198, 6738, 3108, 8019, 1330, 10644, 198, 6738, 10662, 24406, 13, 27530, 1330, 1635, 198, 11748, 850, 14681, 198, 198, 2, 5345, 262, 1459, 9483, 198, 14421, 62, 43551, 796, 10644, 7, 834, 7753, 834, 737,...
2.530242
1,488