content
stringlengths
1
1.04M
input_ids
listlengths
1
774k
ratio_char_token
float64
0.38
22.9
token_count
int64
1
774k
from tkinter import Tk, StringVar, Label, Entry, OptionMenu, RIDGE, mainloop master = Tk() master.title("Star-Wars-Years") # Calculate and Return Conversion Formulae Map # Calculate Year in BBY # Convert Calendars # List of Calendars CalendarList = list(GetFormulae(0).keys()) # Default Calendar ...
[ 6738, 256, 74, 3849, 1330, 309, 74, 11, 10903, 19852, 11, 36052, 11, 21617, 11, 16018, 23381, 11, 371, 2389, 8264, 11, 1388, 26268, 201, 198, 201, 198, 9866, 796, 309, 74, 3419, 201, 198, 9866, 13, 7839, 7203, 8248, 12, 41508, 12, ...
3.0369
813
# 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 # distributed under the...
[ 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, 743, 7330, 257, 4866, 286, 262, 13789, 379, 198, 2,...
3.625442
283
import json import os import pickle import sys import cv2 import numpy as np this_filepath = os.path.dirname(os.path.abspath(__file__)) sys.path.append(os.path.join(this_filepath, '../src/detectron2/projects/DensePose/')) from densepose import add_densepose_config, add_hrnet_config from densepose.data.structures imp...
[ 11748, 33918, 198, 11748, 28686, 198, 11748, 2298, 293, 198, 11748, 25064, 198, 198, 11748, 269, 85, 17, 198, 11748, 299, 32152, 355, 45941, 198, 198, 5661, 62, 7753, 6978, 796, 28686, 13, 6978, 13, 15908, 3672, 7, 418, 13, 6978, 13, ...
2.691964
448
from typing import Tuple, List, Dict, Any, NamedTuple E = NamedTuple('E', [('input_name', str), ('key', str)] ) AdaptingRecipe = Any Results = Dict[str, Any] AllInputs = Dict[str, Any]
[ 6738, 19720, 1330, 309, 29291, 11, 7343, 11, 360, 713, 11, 4377, 11, 34441, 51, 29291, 198, 198, 36, 796, 34441, 51, 29291, 10786, 36, 3256, 685, 10786, 15414, 62, 3672, 3256, 965, 828, 198, 220, 220, 220, 220, 220, 220, 220, 220, ...
2.102804
107
from unittest.mock import call from commands.command import Command from handlers.handler import Handler ONCE_HANDLED_DATA = 'ONCE_HANDLED_DATA' HANDLED_DATA = None
[ 6738, 555, 715, 395, 13, 76, 735, 1330, 869, 198, 198, 6738, 9729, 13, 21812, 1330, 9455, 198, 6738, 32847, 13, 30281, 1330, 32412, 198, 198, 1340, 5222, 62, 39, 6981, 30465, 62, 26947, 796, 705, 1340, 5222, 62, 39, 6981, 30465, 62,...
3.053571
56
# Import Python Packages import os import spacy import streamlit as st from sumy.nlp.tokenizers import Tokenizer from sumy.parsers.plaintext import PlaintextParser from sumy.summarizers.lex_rank import LexRankSummarizer from textblob import TextBlob from gensim.summarization import summarize # Function to Perform S...
[ 2, 17267, 11361, 6400, 1095, 198, 198, 11748, 28686, 198, 11748, 599, 1590, 198, 11748, 4269, 18250, 355, 336, 198, 198, 6738, 2160, 88, 13, 21283, 79, 13, 30001, 11341, 1330, 29130, 7509, 198, 6738, 2160, 88, 13, 79, 945, 364, 13, ...
2.793953
893
# -*- coding: utf-8 -*- ''' File name: code\nim\sol_301.py Author: Vaidic Joshi Date created: Oct 20, 2018 Python Version: 3.x ''' # Solution to Project Euler Problem #301 :: Nim # # For more information see: # https://projecteuler.net/problem=301 # Problem Statement ''' Nim is a game played with h...
[ 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 7061, 6, 198, 220, 220, 220, 9220, 1438, 25, 2438, 59, 77, 320, 59, 34453, 62, 18938, 13, 9078, 198, 220, 220, 220, 6434, 25, 569, 1698, 291, 8518, 72, 198, 2...
3.335366
492
# -*- coding: utf-8 -*- """ sphinx.util.typing ~~~~~~~~~~~~~~~~~~ The composit types for Sphinx. :copyright: Copyright 2007-2018 by the Sphinx team, see AUTHORS. :license: BSD, see LICENSE for details. """ from typing import Callable, Dict, List, Tuple from docutils import nodes from docutils.pa...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 198, 220, 220, 220, 599, 20079, 87, 13, 22602, 13, 774, 13886, 198, 220, 220, 220, 220, 27156, 4907, 628, 220, 220, 220, 383, 552, 7434, 3858, 329, 45368, 28413...
2.715415
253
import json from OpenSSL import crypto import logging import jose from cryptography.hazmat.primitives import hashes from cryptography.hazmat.primitives.asymmetric import padding from flask import Flask, request from utils import dec_b64 from base64 import b64decode app = Flask(__name__) app.logger.setLevel(logging.DEB...
[ 11748, 33918, 198, 6738, 4946, 31127, 1330, 21473, 198, 11748, 18931, 198, 11748, 474, 577, 198, 6738, 45898, 13, 71, 1031, 6759, 13, 19795, 20288, 1330, 46621, 198, 6738, 45898, 13, 71, 1031, 6759, 13, 19795, 20288, 13, 4107, 3020, 194...
1.547788
1,130
# coding=utf-8 # Copyright 2021 The Google Research Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicab...
[ 2, 19617, 28, 40477, 12, 23, 198, 2, 15069, 33448, 383, 3012, 4992, 46665, 13, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 2, 345, 743, 407, 779, 428, 2393, 2845, 287, ...
2.389313
1,048
from sys import path from os.path import dirname as dir path.append(dir(path[0])) from analizer_pl.modules import code import analizer_pl.modules.expressions as expression from analizer_pl.abstract.expression import incTemp from analizer_pl.abstract.expression import newTemp from analizer_pl.abstract.expression import...
[ 6738, 25064, 1330, 3108, 198, 6738, 28686, 13, 6978, 1330, 26672, 3672, 355, 26672, 198, 198, 6978, 13, 33295, 7, 15908, 7, 6978, 58, 15, 60, 4008, 198, 6738, 2037, 7509, 62, 489, 13, 18170, 1330, 2438, 198, 11748, 2037, 7509, 62, 4...
1.998927
27,954
ice_cream = "ice cream" print("cream" in ice_cream) # print boolean result directly contains = type here print(contains)
[ 501, 62, 36277, 796, 366, 501, 8566, 1, 198, 4798, 7203, 36277, 1, 287, 4771, 62, 36277, 8, 220, 220, 220, 1303, 3601, 25131, 1255, 3264, 198, 198, 3642, 1299, 796, 2099, 994, 198, 4798, 7, 3642, 1299, 8, 198 ]
3.125
40
from testtools import TestCase, ExpectedException from moto import mock_s3 from mock import Mock, patch import monoprocessing
[ 198, 6738, 1332, 31391, 1330, 6208, 20448, 11, 1475, 7254, 16922, 198, 6738, 285, 2069, 1330, 15290, 62, 82, 18, 198, 6738, 15290, 1330, 44123, 11, 8529, 198, 11748, 15848, 305, 919, 278, 628 ]
3.764706
34
from unittest import TestCase from pyinflux.parser import LineTokenizer, LineParser, parse_lines from pyinflux.client import Line from funcparserlib.lexer import Token from funcparserlib.parser import NoParseError
[ 6738, 555, 715, 395, 1330, 6208, 20448, 198, 6738, 12972, 10745, 22564, 13, 48610, 1330, 6910, 30642, 7509, 11, 6910, 46677, 11, 21136, 62, 6615, 198, 6738, 12972, 10745, 22564, 13, 16366, 1330, 6910, 198, 6738, 1257, 13155, 28198, 8019, ...
3.616667
60
import uuid, filecmp, os, sys, requests, time from datetime import datetime as Datetime from nose.tools import assert_raises import synapseclient.client as client import synapseclient.utils as utils from synapseclient import Activity, Entity, Project, Folder, File, Data from synapseclient.exceptions import * import i...
[ 11748, 334, 27112, 11, 2393, 48991, 11, 28686, 11, 25064, 11, 7007, 11, 640, 198, 6738, 4818, 8079, 1330, 4818, 8079, 355, 16092, 8079, 198, 6738, 9686, 13, 31391, 1330, 6818, 62, 430, 2696, 198, 198, 11748, 6171, 7512, 16366, 13, 163...
3.84
100
""" Generate a tradeoff slip/opp curve for a stock """ import string BASE_DIR="/spare/local/apratap/costanalysis" import sys crange=["-100","-3","-2.5","-2","-1.5","-1","-0.5","0","0.5","1","1.5","2"] date_range=["20100104","20100105","20100106","20100107","20100108","20100111","20100112","20100113","2...
[ 37811, 198, 8645, 378, 257, 3292, 2364, 13819, 14, 10365, 12133, 329, 257, 4283, 198, 37811, 198, 198, 11748, 4731, 198, 33, 11159, 62, 34720, 35922, 2777, 533, 14, 12001, 14, 499, 10366, 499, 14, 15805, 20930, 1, 198, 11748, 25064, 6...
2.216301
319
#!/usr/bin/env python # -*- coding: utf-8 -*- # Created by Hao Luo at 4/22/19 """Step_refine_pipeline_part03_amino_acids.py :description : script to refine amino acids :param : :returns: :rtype: """ import os import cobra import matplotlib.pyplot as plt import numpy as np import pandas as pd os.chdir('../../Complem...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 15622, 416, 367, 5488, 25956, 379, 604, 14, 1828, 14, 1129, 198, 198, 37811, 8600, 62, 5420, 500, 62, 79, 541, 4...
1.980754
3,741
import logzero import os os.makedirs('outputs', exist_ok=True) log_file = 'outputs/logs.txt' logger = logzero.logger logzero.loglevel('DEBUG') logzero.logfile(log_file, maxBytes=1e6, backupCount=3)
[ 11748, 2604, 22570, 198, 11748, 28686, 628, 198, 418, 13, 76, 4335, 17062, 10786, 22915, 82, 3256, 2152, 62, 482, 28, 17821, 8, 198, 6404, 62, 7753, 796, 705, 22915, 82, 14, 6404, 82, 13, 14116, 6, 198, 6404, 1362, 796, 2604, 22570,...
2.5
80
# Copyright 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 writing, ...
[ 2, 15069, 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, 921, 743, ...
3.767544
228
#Analisando assinantes da newsletter import pandas as pd import seaborn as sns from matplotlib import pyplot as plt from pandas.plotting import autocorrelation_plot from analise_de_vendas import plot_comparacao assinantes = pd.read_csv('arquivos/newsletter_alucar.csv') assinantes.head() assinantes.dtypes print('Q...
[ 2, 2025, 27315, 25440, 840, 259, 39781, 12379, 13129, 198, 198, 11748, 19798, 292, 355, 279, 67, 198, 11748, 384, 397, 1211, 355, 3013, 82, 198, 6738, 2603, 29487, 8019, 1330, 12972, 29487, 355, 458, 83, 198, 6738, 19798, 292, 13, 294...
2.697917
288
import os, json, tempfile, filecmp from nose.tools import assert_raises from mock import MagicMock, patch import unit import synapseclient from synapseclient.retry import _with_retry from synapseclient.exceptions import *
[ 11748, 28686, 11, 33918, 11, 20218, 7753, 11, 2393, 48991, 198, 6738, 9686, 13, 31391, 1330, 6818, 62, 430, 2696, 198, 6738, 15290, 1330, 6139, 44, 735, 11, 8529, 198, 11748, 4326, 198, 11748, 6171, 7512, 16366, 198, 6738, 6171, 7512, ...
3.571429
63
# coding: utf-8 from __future__ import unicode_literals, absolute_import from .table import Table, ParentLookupException from dbfread import DBF, FieldParser
[ 2, 19617, 25, 3384, 69, 12, 23, 198, 6738, 11593, 37443, 834, 1330, 28000, 1098, 62, 17201, 874, 11, 4112, 62, 11748, 198, 198, 6738, 764, 11487, 1330, 8655, 11, 16774, 8567, 929, 16922, 198, 198, 6738, 288, 19881, 961, 1330, 20137, ...
3.346939
49
import networkx as nx from emmaa.filter_functions import filter_chem_mesh_go, \ filter_to_internal_edges from indra.statements import Agent from indra.explanation.pathfinding import get_subgraph edges = [ (1, 2, {'statements': [{'internal': True}]}), (2, 3, {'statements': [{'internal': False}]}), (3, 4...
[ 11748, 3127, 87, 355, 299, 87, 198, 6738, 795, 2611, 64, 13, 24455, 62, 12543, 2733, 1330, 8106, 62, 15245, 62, 76, 5069, 62, 2188, 11, 3467, 198, 220, 220, 220, 8106, 62, 1462, 62, 32538, 62, 276, 3212, 198, 6738, 773, 430, 13, ...
2.489083
229
from flask import Flask import pika import time from flask_mail import Mail from flask_mail import Message import sys from datetime import datetime import json canal_con_error="" uuid_peticion="" arrayValidar = {} app = Flask(__name__) sleepTime = 20 print(' [*] Inicia en ', sleepTime, ' segundos.') time.sleep(...
[ 6738, 42903, 1330, 46947, 198, 11748, 279, 9232, 198, 11748, 640, 198, 6738, 42903, 62, 4529, 1330, 11099, 198, 6738, 42903, 62, 4529, 1330, 16000, 198, 11748, 25064, 198, 6738, 4818, 8079, 1330, 4818, 8079, 198, 11748, 33918, 198, 198, ...
2.743017
358
""" Tests are based on the torch7 bindings for warp-ctc. Reference numbers are also obtained from the tests. """ import unittest import torch from torch.autograd import Variable from warpctc_pytorch import CTCLoss ctc_loss = CTCLoss() places = 5 use_cuda = torch.cuda.is_available() if __name__ == '__main__': ...
[ 37811, 198, 51, 3558, 389, 1912, 319, 262, 28034, 22, 34111, 329, 25825, 12, 310, 66, 13, 20984, 3146, 389, 635, 6492, 422, 262, 5254, 13, 198, 37811, 198, 11748, 555, 715, 395, 198, 198, 11748, 28034, 198, 6738, 28034, 13, 2306, 51...
2.896552
116
print(s(int(input('Enter number: '))))
[ 198, 4798, 7, 82, 7, 600, 7, 15414, 10786, 17469, 1271, 25, 705, 35514 ]
2.785714
14
from django.http import HttpResponse from django.shortcuts import render # Create your views here. from django.views import View from .models import User class User_manage(View): ''' 用户管理页面 支持用户更换头像 用户修改密码 ''' def post(self, request): ''' 用户修改个人信息 修改手机号码和用户名 ...
[ 6738, 42625, 14208, 13, 4023, 1330, 367, 29281, 31077, 198, 6738, 42625, 14208, 13, 19509, 23779, 1330, 8543, 198, 198, 2, 13610, 534, 5009, 994, 13, 198, 6738, 42625, 14208, 13, 33571, 1330, 3582, 198, 198, 6738, 764, 27530, 1330, 1178...
1.72973
333
# Copyright 2017 - 2018 Modoolar <info@modoolar.com> # Copyright 2018 Brainbean Apps # Copyright 2020 Manuel Calero # Copyright 2020 CorporateHub (https://corporatehub.eu) # License LGPLv3.0 or later (https://www.gnu.org/licenses/lgpl-3.0.en.html). { "name": "Web Actions Multi", "summary": "Enables triggering ...
[ 2, 15069, 2177, 532, 2864, 3401, 970, 283, 1279, 10951, 31, 4666, 970, 283, 13, 785, 29, 198, 2, 15069, 2864, 14842, 14289, 27710, 198, 2, 15069, 12131, 25995, 2199, 3529, 198, 2, 15069, 12131, 26040, 16066, 357, 5450, 1378, 10215, 38...
2.644269
253
################################################## ## Author: Tiago Prata (https://github.com/TiagoPrata) ## Date: 22-Mar-2021 ################################################## # References: # https://www.tensorflow.org/datasets/catalog/coco # https://github.com/IntelAI/models/blob/master/docs/object_detection/tens...
[ 29113, 14468, 2235, 198, 2235, 220, 6434, 25, 16953, 3839, 1736, 1045, 357, 5450, 1378, 12567, 13, 785, 14, 51, 29601, 6836, 1045, 8, 198, 2235, 220, 7536, 25, 2534, 12, 7676, 12, 1238, 2481, 198, 29113, 14468, 2235, 198, 198, 2, 31...
2.20979
3,146
""" 1. Pick 10 random numbers 2. Sort the numbers in decreasing order 3. Print those numbers 4. Repeat 2 more times """ import random if __name__ == "__main__": main()
[ 37811, 198, 16, 13, 12346, 838, 4738, 3146, 198, 17, 13, 33947, 262, 3146, 287, 24030, 1502, 198, 18, 13, 12578, 883, 3146, 198, 19, 13, 30021, 362, 517, 1661, 198, 37811, 628, 198, 11748, 4738, 198, 198, 361, 11593, 3672, 834, 6624...
3.222222
54
sigma = 4.65 # standard deviation for observation noise num_sample = 200 # number of simulations to run for each stopping time stop_time_list = np.arange(1, 150, 10) # Stopping times to play with def simulate_accuracy_vs_stoptime(sigma, stop_time_list, num_sample): """Calculate the average decision accuracy vs. st...
[ 82, 13495, 796, 604, 13, 2996, 220, 1303, 3210, 28833, 329, 13432, 7838, 198, 22510, 62, 39873, 796, 939, 220, 1303, 1271, 286, 27785, 284, 1057, 329, 1123, 12225, 640, 198, 11338, 62, 2435, 62, 4868, 796, 45941, 13, 283, 858, 7, 16...
2.997821
459
""" Faster R-CNN baseline Average Precision (AP) @[ IoU=0.50:0.95 | area= all | maxDets=100 ] = -1.000 Average Precision (AP) @[ IoU=0.50 | area= all | maxDets=3000 ] = 0.594 Average Precision (AP) @[ IoU=0.75 | area= all | maxDets=3000 ] = 0.373 Average Precision (AP) @[ IoU=0.50:0.95 | area= smal...
[ 37811, 198, 37, 1603, 371, 12, 18474, 14805, 198, 198, 26287, 39281, 220, 357, 2969, 8, 2488, 58, 27853, 52, 28, 15, 13, 1120, 25, 15, 13, 3865, 930, 1989, 28, 220, 220, 477, 930, 3509, 35, 1039, 28, 3064, 2361, 796, 532, 16, 13...
2.186228
639
stack_base_name = "skyer9-test" region_name = "ap-northeast-2" acm_certificate_arn = "arn:aws:acm:us-east-1:061175447448:certificate/d6c212a8-8871-XXXXXXXXXXXXXXX" acm_cluster_certificate_arn = "arn:aws:acm:ap-northeast-2:061175447448:certificate/45a14cb8-3da4-4XXXXXXXXXXXXXXX" # for assets root_domain_name = "10x10.i...
[ 25558, 62, 8692, 62, 3672, 796, 366, 15688, 263, 24, 12, 9288, 1, 198, 36996, 62, 3672, 796, 366, 499, 12, 77, 419, 9522, 12, 17, 1, 198, 330, 76, 62, 22583, 22460, 62, 1501, 796, 366, 1501, 25, 8356, 25, 330, 76, 25, 385, 12,...
2.138122
543
"""Module for testing Coding DNA DelIns Validator.""" import unittest from variation.validators import CodingDNADelIns from variation.classifiers import CodingDNADelInsClassifier from .validator_base import ValidatorBase class TestCodingDNADelInsValidator(ValidatorBase, unittest.TestCase): """A class to test the...
[ 37811, 26796, 329, 4856, 327, 7656, 7446, 4216, 20376, 48951, 1352, 526, 15931, 198, 11748, 555, 715, 395, 198, 198, 6738, 12291, 13, 12102, 2024, 1330, 327, 7656, 35504, 2885, 417, 20376, 198, 6738, 12291, 13, 4871, 13350, 1330, 327, 7...
2.988048
251
# An attempt to replicate http://www.nature.com/nature/journal/v518/n7540/full/nature14236.html # (You can download it from Scihub) from __future__ import print_function, division import tensorflow as tf import numpy as np import gym from collections import namedtuple import random import os import h5py from itertools...
[ 2, 1052, 2230, 284, 24340, 2638, 1378, 2503, 13, 21353, 13, 785, 14, 21353, 14, 24891, 14, 85, 44085, 14, 77, 2425, 1821, 14, 12853, 14, 21353, 1415, 24940, 13, 6494, 198, 2, 357, 1639, 460, 4321, 340, 422, 10286, 40140, 8, 198, 1...
2.833977
259
""" 面试题 17.16. 按摩师 一个有名的按摩师会收到源源不断的预约请求,每个预约都可以选择接或不接。 在每次预约服务之间要有休息时间,因此她不能接受相邻的预约。 给定一个预约请求序列,替按摩师找到最优的预约集合(总预约时间最长), 返回总的分钟数。 注意:本题相对原题稍作改动 输入: [1,2,3,1] 输出: 4 解释: 选择 1 号预约和 3 号预约,总时长 = 1 + 3 = 4。 输入: [2,7,9,3,1] 输出: 12 解释: 选择 1 号预约、 3 号预约和 5 号预约,总时长 = 2 + 9 + 1 = 12。 输入: [2,1,4,5,3,1,1,3] 输出: 12 解释: 选择 1 号预约、 3...
[ 37811, 198, 165, 251, 95, 46237, 243, 165, 95, 246, 1596, 13, 1433, 13, 10545, 234, 231, 162, 239, 102, 30585, 230, 198, 31660, 10310, 103, 17312, 231, 28938, 235, 21410, 162, 234, 231, 162, 239, 102, 30585, 230, 27670, 248, 162, 24...
0.850941
691
#!/usr/bin/env python3 # Povolene knihovny: copy, math # Import jakekoli jine knihovny neprojde vyhodnocovaci sluzbou. # IB002 Domaci uloha 4. # # Hammingovu vzdalenost dvou stejne dlouhych binarnich retezcu # definujeme jako pocet bitu, ve kterych se retezce lisi. # # Vasim ukolem je implementovat funkci hamming_dis...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 198, 2, 350, 709, 349, 1734, 638, 4449, 709, 3281, 25, 4866, 11, 10688, 198, 2, 17267, 474, 539, 74, 11106, 474, 500, 638, 4449, 709, 3281, 497, 1676, 73, 2934, 410, 88, 2065, ...
2.020339
885
# coding=utf-8 # import numpy as np from numpy import * import matplotlib.pyplot as plt # # Calcul du log du temps equivalent Agarwal - 1980 # # Ezekwe 12.16 # # # Algorithme de dérivation d'après Bourdet et al - 1989 # # Différences centrées à pas variable # # Voir Ezekwe - 2010 - 12C.1 pour le calcul # # # Dans ...
[ 2, 19617, 28, 40477, 12, 23, 198, 2, 198, 198, 11748, 299, 32152, 355, 45941, 198, 6738, 299, 32152, 1330, 1635, 198, 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 198, 198, 2, 198, 2, 27131, 7043, 2604, 7043, 2169, 862, ...
2.486047
430
from abc import ABC, abstractmethod
[ 6738, 450, 66, 1330, 9738, 11, 12531, 24396, 628 ]
4.111111
9
from . import support import numpy as np import tensorflow as tf
[ 6738, 764, 1330, 1104, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 11192, 273, 11125, 355, 48700, 628, 628 ]
3.578947
19
# Generated by Django 3.2 on 2021-04-30 03:47 import courses.models from django.db import migrations, models
[ 2, 2980, 515, 416, 37770, 513, 13, 17, 319, 33448, 12, 3023, 12, 1270, 7643, 25, 2857, 198, 198, 11748, 10902, 13, 27530, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 11, 4981, 628 ]
3.171429
35
import logging import os import math from plato.config import Config from plato.datasources import base from examples.ms_nnrt.ms_nnrt_datasource_yolo_utils import COCOYoloDataset class DataSource(base.DataSource): """The YOLO dataset.""" def classes(self): """Obtains a list of class n...
[ 11748, 18931, 201, 198, 11748, 28686, 201, 198, 11748, 10688, 201, 198, 6738, 458, 5549, 13, 11250, 1330, 17056, 201, 198, 6738, 458, 5549, 13, 19608, 292, 2203, 1330, 2779, 201, 198, 6738, 6096, 13, 907, 62, 20471, 17034, 13, 907, 62...
2.671329
143
''' Created by: Craig Fouts Created on: 11/13/2020 ''' import inspect import json import logging import os import pydre import time from PySide2.QtWidgets import QFileDialog, QInputDialog from gui.config import Config, CONFIG_PATH, GUI_PATH, PROJECT_PATH from gui.customs import ProjectTree from gui.handlers import Pyd...
[ 7061, 6, 198, 41972, 416, 25, 13854, 376, 5269, 198, 41972, 319, 25, 1367, 14, 1485, 14, 42334, 198, 7061, 6, 198, 198, 11748, 10104, 198, 11748, 33918, 198, 11748, 18931, 198, 11748, 28686, 198, 11748, 279, 5173, 260, 198, 11748, 640...
2.150917
6,434
# WZN: Note here we unify all LIDAR points to camera frame!!! __author__ = 'yuxiang' # derived from honda.py by fyang import datasets import datasets.kitti_mv3d import os import time import PIL import datasets.imdb import numpy as np from matplotlib import pyplot as plt import scipy.sparse from utils.cyt...
[ 2, 370, 57, 45, 25, 5740, 994, 356, 555, 1958, 477, 406, 2389, 1503, 2173, 284, 4676, 5739, 10185, 201, 198, 201, 198, 834, 9800, 834, 796, 705, 88, 2821, 15483, 6, 1303, 10944, 422, 289, 13533, 13, 9078, 416, 277, 17859, 201, 198...
2.447977
346
from preprocessing.calculus import * x = combination(10, 10) y = (lambda x: x ** 2)(10) z = (lambda x, y: x * y)(2, 3) func = lambda x, y: x * y if (x > y) else x ** 3 print(x) print(y) print(z) print(func(10, 12)) print((lambda x, y, z: x * y * z)(3, 4, 5))
[ 6738, 662, 36948, 13, 9948, 17576, 1330, 1635, 198, 198, 87, 796, 6087, 7, 940, 11, 838, 8, 198, 198, 88, 796, 357, 50033, 2124, 25, 2124, 12429, 362, 5769, 940, 8, 198, 198, 89, 796, 357, 50033, 2124, 11, 331, 25, 2124, 1635, 3...
2.180328
122
# ---------------------------------------------------------------------------- # Copyright (c) 2020 Legorooj <legorooj@protonmail.com> # Copyright (c) 2020 FluffyKoalas <github.com/fluffykoalas> # This file and all others in this project are licensed under the MIT license. # Please see the LICENSE file in the root of t...
[ 2, 16529, 10541, 198, 2, 15069, 357, 66, 8, 12131, 3564, 273, 2238, 73, 1279, 1455, 273, 2238, 73, 31, 1676, 1122, 4529, 13, 785, 29, 198, 2, 15069, 357, 66, 8, 12131, 1610, 15352, 48735, 282, 292, 1279, 12567, 13, 785, 14, 2704, ...
4.609091
110
# ------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # -------------------------------------------------------------------------- from jinja...
[ 2, 16529, 45537, 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, 13, 198, 2, 16529, 35937, 198, 6...
6.431034
58
#!/usr/bin/env python import unittest import os if __name__ == "__main__": unittest.main()
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 11748, 555, 715, 395, 198, 11748, 28686, 198, 198, 361, 11593, 3672, 834, 6624, 366, 834, 12417, 834, 1298, 198, 220, 220, 220, 555, 715, 395, 13, 12417, 3419 ]
2.5
38
from django.test import TestCase # Create your tests here. # from django.contrib.auth.views import LoginView,PasswordChangeDoneView,PasswordResetView #LoginView,处理登录表单填写和登录功能 #LogoutView,退出登录 #PasswordChangeView,处理修改密码的表单,然后修改密码 #PasswordChangeDoneView,成功修改密码之后执行的视图 #PasswordResetView,用户选择重置密码功能的视图,生成一个一次性重置密码链接和对应的验...
[ 6738, 42625, 14208, 13, 9288, 1330, 6208, 20448, 198, 198, 2, 13610, 534, 5254, 994, 13, 198, 198, 2, 422, 42625, 14208, 13, 3642, 822, 13, 18439, 13, 33571, 1330, 23093, 7680, 11, 35215, 19400, 45677, 7680, 11, 35215, 4965, 316, 7680...
1.233813
278
import joblib import subprocess def run_cmd(args_list): """ run linux commands """ # import subprocess print('Running system command: {0}'.format(' '.join(args_list))) proc = subprocess.Popen(args_list, stdout=subprocess.PIPE, stderr=subprocess.PIPE) s_output, s_err = proc.communicate() ...
[ 11748, 1693, 8019, 198, 11748, 850, 14681, 198, 198, 4299, 1057, 62, 28758, 7, 22046, 62, 4868, 2599, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 1057, 32639, 9729, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 1303, 1330, 850, ...
2.490566
371
from source.rabbit import ( connections, consumer, router )
[ 6738, 2723, 13, 81, 14229, 1330, 357, 198, 220, 220, 220, 8787, 11, 198, 220, 220, 220, 7172, 11, 198, 220, 220, 220, 20264, 198, 8, 198 ]
2.666667
27
from itertools import chain from arekit.common.experiment.data_type import DataType from arekit.common.folding.nofold import NoFolding from arekit.contrib.experiment_rusentrel.exp_ds.utils import read_ruattitudes_in_memory from arekit.contrib.source.rusentrel.io_utils import RuSentRelIOUtils from arelight.network.nn....
[ 6738, 340, 861, 10141, 1330, 6333, 198, 198, 6738, 389, 15813, 13, 11321, 13, 23100, 3681, 13, 7890, 62, 4906, 1330, 6060, 6030, 198, 6738, 389, 15813, 13, 11321, 13, 11379, 278, 13, 77, 1659, 727, 1330, 1400, 37, 33266, 198, 6738, ...
3.076923
117
"""Platform Models.""" from marshmallow import fields, Schema from marshmallow.validate import OneOf from ..enums import * from ..models.BaseSchema import BaseSchema from .StoreAddressJson import StoreAddressJson
[ 37811, 37148, 32329, 526, 15931, 198, 198, 6738, 22397, 42725, 1330, 7032, 11, 10011, 2611, 198, 6738, 22397, 42725, 13, 12102, 378, 1330, 1881, 5189, 198, 6738, 11485, 268, 5700, 1330, 1635, 198, 6738, 11485, 27530, 13, 14881, 27054, 261...
3.246753
77
"""`gen` tests under PEP 563.""" from __future__ import annotations from dataclasses import dataclass from attr import define from cattrs import GenConverter from cattrs.gen import make_dict_structure_fn, make_dict_unstructure_fn # These need to be at the top level for `attr.resolve_types` to work. @define @defi...
[ 37811, 63, 5235, 63, 5254, 739, 350, 8905, 642, 5066, 526, 15931, 198, 6738, 11593, 37443, 834, 1330, 37647, 198, 198, 6738, 4818, 330, 28958, 1330, 4818, 330, 31172, 198, 198, 6738, 708, 81, 1330, 8160, 198, 198, 6738, 269, 1078, 380...
2.968
125
import requests from flask import render_template, request from app import app @app.route('/pokemon', methods=['GET', 'POST'])
[ 11748, 7007, 198, 6738, 42903, 1330, 8543, 62, 28243, 11, 2581, 198, 6738, 598, 1330, 598, 628, 198, 31, 1324, 13, 38629, 10786, 14, 79, 12717, 3256, 5050, 28, 17816, 18851, 3256, 705, 32782, 6, 12962, 628 ]
3.513514
37
# Generated by Django 3.1.4 on 2020-12-23 07:55 from django.db import migrations, models
[ 2, 2980, 515, 416, 37770, 513, 13, 16, 13, 19, 319, 12131, 12, 1065, 12, 1954, 8753, 25, 2816, 198, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 11, 4981, 628 ]
2.84375
32
# Sample Input # 5 # 12 9 61 5 14 # Sample Output # True # Explanation # Condition 1: All the integers in the list are positive. # Condition 2: 5 is a palindromic integer. # Hence, the output is True. if __name__ == '__main__': count, numbers = input(), input().split() msg = "True" if any(map(is_palindromic,...
[ 2, 27565, 23412, 198, 2, 642, 198, 2, 1105, 860, 8454, 642, 1478, 198, 198, 2, 27565, 25235, 198, 2, 6407, 198, 198, 2, 50125, 341, 198, 2, 24295, 352, 25, 1439, 262, 37014, 287, 262, 1351, 389, 3967, 13, 198, 2, 24295, 362, 25,...
2.787671
146
from django.urls import path, include from rest_framework import routers from user import views router = routers.DefaultRouter() router.register('', views.UserViewSet, base_name='users') app_name = 'user' urlpatterns = [ path('', include(router.urls)), ]
[ 6738, 42625, 14208, 13, 6371, 82, 1330, 3108, 11, 2291, 198, 198, 6738, 1334, 62, 30604, 1330, 41144, 198, 198, 6738, 2836, 1330, 5009, 628, 198, 472, 353, 796, 41144, 13, 19463, 49, 39605, 3419, 198, 472, 353, 13, 30238, 10786, 3256,...
3.011364
88
################################################## ## EC2 ImageBuilder AMI distribution setting targetAccountIds ## is not supported by CloudFormation (as of September 2021). ## https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-imagebuilder-distributionconfiguration.html ## ## This lambda func...
[ 29113, 14468, 2235, 198, 2235, 13182, 17, 7412, 32875, 3001, 40, 6082, 4634, 2496, 30116, 7390, 82, 198, 2235, 318, 407, 4855, 416, 10130, 8479, 341, 357, 292, 286, 2693, 33448, 737, 198, 2235, 3740, 1378, 31628, 13, 8356, 13, 33103, ...
4.223529
170
""" The MidiAnimationController gets MIDI messages from the MidiServer and sends animation messages to the LED strip clients """ # TODO
[ 37811, 198, 464, 7215, 72, 39520, 22130, 3011, 33439, 6218, 422, 262, 7215, 72, 10697, 290, 198, 82, 2412, 11034, 6218, 284, 262, 12365, 10283, 7534, 198, 37811, 198, 2, 16926, 46, 198 ]
4.121212
33
import numpy as np import os import pydensecrf.densecrf as dcrf
[ 11748, 299, 32152, 355, 45941, 198, 11748, 28686, 198, 11748, 279, 5173, 1072, 6098, 69, 13, 67, 1072, 6098, 69, 355, 288, 6098, 69, 628, 628, 628, 628 ]
2.535714
28
from typing import List, Optional, Iterable from pluggy import HookspecMarker hookspec = HookspecMarker("autofile") @hookspec(firstresult=True) def get_template_value( filepath: str, field: str, subfield: str, default: List[str] ) -> Optional[List[Optional[str]]]: """Called by template.py to get template va...
[ 6738, 19720, 1330, 7343, 11, 32233, 11, 40806, 540, 198, 198, 6738, 6107, 1360, 1330, 18531, 16684, 9704, 263, 198, 198, 25480, 16684, 796, 18531, 16684, 9704, 263, 7203, 2306, 1659, 576, 4943, 628, 198, 31, 25480, 16684, 7, 11085, 2027...
3.569106
246
# MNIST # import mnist.fc # import mnist.lenet5 # import mnist.lenet5_loader # import mnist.alex # CIFAR10 # import cifar.lenet5 # import cifar.alex # import cifar.vgg16 # Data Preparation # import data.mnist # import data.cifar # import data.fashion_mnist # Data Augmentation # import data_augmentation.ds_builder...
[ 2, 29060, 8808, 198, 2, 1330, 285, 77, 396, 13, 16072, 198, 2, 1330, 285, 77, 396, 13, 11925, 316, 20, 198, 2, 1330, 285, 77, 396, 13, 11925, 316, 20, 62, 29356, 198, 2, 1330, 285, 77, 396, 13, 1000, 87, 628, 198, 2, 327, 50...
2.992908
282
''' Created on 30.03.2020 @author: JM '''
[ 7061, 6, 198, 41972, 319, 1542, 13, 3070, 13, 42334, 198, 198, 31, 9800, 25, 47726, 198, 7061, 6, 198 ]
2.15
20
''' Copyright (C) 2021 CG Cookie http://cgcookie.com hello@cgcookie.com Created by Jonathan Denning, Jonathan Williamson This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 ...
[ 7061, 6, 198, 15269, 357, 34, 8, 33448, 29925, 39606, 198, 4023, 1378, 66, 36484, 18055, 13, 785, 198, 31373, 31, 66, 36484, 18055, 13, 785, 198, 198, 41972, 416, 11232, 5601, 768, 11, 11232, 34974, 628, 220, 220, 220, 770, 1430, 31...
3.217771
1,373
# 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 @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.655914
93
import argparse import matplotlib.pyplot as plt import numpy as np import json import collections import os import pickle import seaborn as sns if __name__ == "__main__": paritions = ["train_2020.json", "test_seen_2020.json", "test_unseen_2020.json"] parser = argparse.ArgumentParser() parser.add_argument("--pa...
[ 11748, 1822, 29572, 198, 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 33918, 198, 11748, 17268, 198, 11748, 28686, 198, 11748, 2298, 293, 198, 11748, 384, 397, 1211, 355, 3013, ...
2.698482
461
from ._version import __version__ # noqa # All created brower-instances are listed here for a reference to avoid having # them garbage-collected prematurely. _browser_instances = list()
[ 6738, 47540, 9641, 1330, 11593, 9641, 834, 220, 1303, 645, 20402, 198, 198, 2, 1439, 2727, 4772, 263, 12, 8625, 1817, 389, 5610, 994, 329, 257, 4941, 284, 3368, 1719, 198, 2, 606, 15413, 12, 4033, 12609, 41370, 13, 198, 62, 40259, 6...
3.836735
49
import pandas as pd import numpy as np ISO_COUNTRY_CODES = { 'Brazil': 76, 'China': 156, 'India': 356, 'Nigeria': 566 } FAOSTAT_COUNTRY_CODES = { 'Brazil': 21, 'China': 351, 'India': 100, 'Nigeria': 159 } CLASSES = {'SEAFOOD': [ 'Aquatic Animals, Others', 'Cephalopods', 'Crustacean...
[ 11748, 19798, 292, 355, 279, 67, 220, 198, 11748, 299, 32152, 355, 45941, 198, 198, 40734, 62, 34, 19385, 40405, 62, 34, 3727, 1546, 796, 1391, 198, 220, 220, 220, 705, 39190, 10354, 8684, 11, 198, 220, 220, 220, 705, 14581, 10354, ...
2.270677
665
from math import pow, sqrt t=int(input()) while t > 0: t-=1 r = float(input()) chef = [int(x) for x in input().split(' ')] head = [int(x) for x in input().split(' ')] sous = [int(x) for x in input().split(' ')] dists = [getDist(chef, head), getDist(chef, sous), getDist(sous, head)] if len([x for x in dis...
[ 6738, 10688, 1330, 7182, 11, 19862, 17034, 198, 198, 83, 28, 600, 7, 15414, 28955, 198, 4514, 256, 1875, 657, 25, 198, 220, 256, 12, 28, 16, 198, 220, 374, 796, 12178, 7, 15414, 28955, 198, 220, 21221, 796, 685, 600, 7, 87, 8, 3...
2.351852
162
from str_utils import normalize if __name__ == '__main__': print(normalize(' main '))
[ 6738, 965, 62, 26791, 1330, 3487, 1096, 198, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 220, 198, 220, 220, 220, 3601, 7, 11265, 1096, 10786, 1388, 705, 4008, 198 ]
2.787879
33
""" Given an int array length 2, return True if it contains a 2 or a 3. has23([2, 5]) → True has23([4, 3]) → True has23([4, 5]) → False @author unobatbayar """
[ 37811, 198, 198, 15056, 281, 493, 7177, 4129, 362, 11, 1441, 6407, 611, 340, 4909, 257, 362, 393, 257, 513, 13, 628, 198, 10134, 1954, 26933, 17, 11, 642, 12962, 15168, 6407, 198, 10134, 1954, 26933, 19, 11, 513, 12962, 15168, 6407, ...
2.578125
64
""" This package is responsible for encoding/decoding RTMP amf messages. This package contains classes/methods to establish a connection to a RTMP server and to read/write amf messages on a connected stream. It also contains the PySocks (https://github.com/Anorov/PySocks) module to enable a connection to a RTMP server...
[ 37811, 198, 1212, 5301, 318, 4497, 329, 21004, 14, 12501, 7656, 11923, 7378, 716, 69, 6218, 13, 198, 198, 1212, 5301, 4909, 6097, 14, 24396, 82, 284, 4474, 257, 4637, 284, 257, 11923, 7378, 4382, 198, 392, 284, 1100, 14, 13564, 716, ...
3.340909
132
#!/usr/bin/env python import os import distutils.core if os.environ.get('USER', '') == 'vagrant': del os.link distutils.core.setup( name='arago-hiro-actionhandler-stonebranch', version='1.0.0', author='Johannes Harth', author_email='jharth@arago.co', description='Arago HIRO ActionHandler plugi...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 11748, 28686, 198, 11748, 1233, 26791, 13, 7295, 198, 198, 361, 28686, 13, 268, 2268, 13, 1136, 10786, 29904, 3256, 10148, 8, 6624, 705, 29821, 5250, 10354, 198, 220, 220, 220, 1619, 2...
2.161261
1,110
from ofx2xlsmbr.writer.IWriterController import IWriterController
[ 6738, 286, 87, 17, 87, 75, 5796, 1671, 13, 16002, 13, 40, 34379, 22130, 1330, 314, 34379, 22130, 628 ]
3.526316
19
import mne from .utils import add_annotations_from_events, map_aux def read_raw_fif(fname): """ Read raw FIF files saved with BSL StreamRecorder. Parameters ---------- fname : file-like Path to the -raw.fif file to load. Returns ------- raw : Raw MNE raw instance. ...
[ 11748, 285, 710, 198, 198, 6738, 764, 26791, 1330, 751, 62, 34574, 602, 62, 6738, 62, 31534, 11, 3975, 62, 14644, 628, 198, 4299, 1100, 62, 1831, 62, 32041, 7, 69, 3672, 2599, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 4149, 8...
1.981092
476
#!/usr/bin/env python3 #python3 analyze_video.py {path/video_filename.mp4} {ID Folder Name} # initalize import sys import argparse import tensorflow as tf import cv2 import dlib import numpy as np import detect_and_align import os from model import OpenNsfwModel from image_utils import create_yahoo_image_loader from ...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 2, 29412, 18, 16602, 62, 15588, 13, 9078, 1391, 6978, 14, 15588, 62, 34345, 13, 3149, 19, 92, 1391, 2389, 48107, 6530, 92, 198, 198, 2, 287, 1287, 1096, 198, 11748, 25064, 198, ...
2.667368
475
import copy from collections import defaultdict from python_util.geometry.polygon import Polygon, list_to_polygon_object from python_util.geometry.rectangle import Rectangle from python_util.geometry.util import ortho_connect, smooth_surrounding_polygon, polygon_clip, convex_hull, \ bounding_box, merge_rectangles ...
[ 11748, 4866, 198, 6738, 17268, 1330, 4277, 11600, 198, 198, 6738, 21015, 62, 22602, 13, 469, 15748, 13, 35428, 14520, 1330, 12280, 14520, 11, 1351, 62, 1462, 62, 35428, 14520, 62, 15252, 198, 6738, 21015, 62, 22602, 13, 469, 15748, 13, ...
2.301213
6,185
"""A simple log mechanism styled after PEP 282.""" # The class here is styled after PEP 282 so that it could later be # replaced with a standard Python logging implementation. import sys DEBUG = 1 INFO = 2 WARN = 3 ERROR = 4 FATAL = 5 _global_log = Log() log = _global_log.log debug = _global_log.debug info = _glo...
[ 37811, 32, 2829, 2604, 9030, 45552, 706, 350, 8905, 41810, 526, 15931, 198, 198, 2, 383, 1398, 994, 318, 45552, 706, 350, 8905, 41810, 523, 326, 340, 714, 1568, 307, 198, 2, 6928, 351, 257, 3210, 11361, 18931, 7822, 13, 198, 198, 11...
3.044444
135
from typing import Any, Dict, Tuple from flask import Request from pymongo.cursor import Cursor
[ 6738, 19720, 1330, 4377, 11, 360, 713, 11, 309, 29291, 198, 198, 6738, 42903, 1330, 19390, 198, 6738, 279, 4948, 25162, 13, 66, 21471, 1330, 327, 21471, 628, 628, 198 ]
3.366667
30
# Copyright (c) 2019 Horizon Robotics. 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 applicab...
[ 2, 15069, 357, 66, 8, 13130, 22776, 47061, 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, 35...
2.668317
404
#Refazer o Desafio 51 da PA usando o "while" primeirotermo = int(input('Digite o primeiro termo da PA: ')); razao = int(input('Agora digite a razão da PA: ')); vezes = 10; cont = 0; pa = primeirotermo; print(f'Os {vezes} termos da PA são: {pa}', end=' '); cont += 1; while cont < vezes: pa = pa + razao;...
[ 2, 8134, 19178, 267, 2935, 1878, 952, 6885, 12379, 8147, 514, 25440, 267, 366, 4514, 1, 201, 198, 201, 198, 35505, 7058, 4354, 78, 796, 493, 7, 15414, 10786, 19511, 578, 267, 6994, 7058, 3381, 78, 12379, 8147, 25, 705, 18125, 201, 1...
2.028571
210
# Playing with Digits # 6 kyu # https://www.codewars.com/kata/5552101f47fc5178b1000050 # # w r i t t e n b y # oooo https://github.com/lcsm29 .oooo. .ooooo. # `888 .dP""Y88b 888' `Y88. # 888 .ooooo. .oooo.o ooo. .oo. .oo. ]8...
[ 2, 220, 23911, 351, 7367, 896, 198, 2, 220, 718, 479, 24767, 198, 2, 220, 3740, 1378, 2503, 13, 19815, 413, 945, 13, 785, 14, 74, 1045, 14, 31046, 2481, 486, 69, 2857, 16072, 20, 23188, 65, 49388, 1120, 198, 2, 198, 2, 220, 220,...
1.588294
1,008
# -*- coding: utf-8; -*- # flake8: noqa from .agent import Agent from .agency import Agency from .const import VERSION from .rules import Rules __title__ = 'customs' __version__ = VERSION
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 26, 532, 9, 12, 198, 2, 781, 539, 23, 25, 645, 20402, 198, 6738, 764, 25781, 220, 1330, 15906, 198, 6738, 764, 40955, 1330, 7732, 198, 6738, 764, 9979, 220, 1330, 44156, 2849, 198, 673...
2.771429
70
""" This Project is a game , name - Egg Catcher. """ #Importing libraries from itertools import cycle from random import randrange from tkinter import Tk , Canvas , messagebox , font #Creating variable for canvas size canvas_width = 800 canvas_height = 400 win = Tk() #Win starts #Giving title win.title("The Egg Catc...
[ 37811, 198, 1212, 4935, 318, 257, 983, 837, 1438, 532, 14562, 5181, 2044, 13, 198, 37811, 198, 198, 2, 20939, 278, 12782, 198, 6738, 340, 861, 10141, 1330, 6772, 198, 6738, 4738, 1330, 43720, 9521, 198, 6738, 256, 74, 3849, 1330, 309,...
3.038323
835
# -*- coding: utf-8 -*- """ config """ import os import re import pwd import sys import time import logging import sh from decouple import UndefinedValueError, AutoConfig, config LOG_LEVELS = ["DEBUG", "INFO", "WARNING", "ERROR", "CRITICAL"] LOG_LEVEL = config("LOG_LEVEL", logging.WARNING, cast=int) logging.basicC...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 198, 11250, 198, 37811, 198, 198, 11748, 28686, 198, 11748, 302, 198, 11748, 279, 16993, 198, 11748, 25064, 198, 11748, 640, 198, 11748, 18931, 198, 11748, 427, 198...
1.977386
3,405
# -*- coding: utf-8 -*- import pandas as pd from .common import _getJson def latestFX(symbols=None, token='', version='', filter=''): '''This endpoint returns real-time foreign currency exchange rates data updated every 250 milliseconds. https://iexcloud.io/docs/api/#latest-currency-rates 5pm Sun-4pm Fri...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 11748, 19798, 292, 355, 279, 67, 198, 6738, 764, 11321, 1330, 4808, 1136, 41, 1559, 628, 198, 4299, 3452, 17213, 7, 1837, 2022, 10220, 28, 14202, 11, 11241, 11639, 3256,...
2.736301
1,752
#If there is an existing db, it should be deleted before loading otherwise #the frequency information will be invalid. import sys sys.path.append(r'../../Lib') from ac_oanc_lemma_frequency import * ac_load_oanc_shelve(r'BCCWJ_frequencylist-FrqGE3.csv', r'BCCWJ_frequencylist-FrqGE3.db', 'Jp')
[ 2, 1532, 612, 318, 281, 4683, 20613, 11, 340, 815, 307, 13140, 878, 11046, 4306, 198, 2, 1169, 8373, 1321, 481, 307, 12515, 13, 198, 198, 11748, 25064, 198, 198, 17597, 13, 6978, 13, 33295, 7, 81, 6, 40720, 40720, 25835, 11537, 198,...
2.801887
106
# -*- coding: utf-8 -*- import os import logging from bs4 import BeautifulSoup import re 'def' import codecs import functools from pymongo import MongoClient import datetime import time if __name__ == '__main__': os.chdir(os.getcwd()) os.chdir('..') os.chdir('..') os.chdir('data') os....
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 11748, 28686, 198, 11748, 18931, 198, 6738, 275, 82, 19, 1330, 23762, 50, 10486, 198, 11748, 302, 198, 198, 1549, 891, 6, 198, 11748, 40481, 82, 198, 11748, 1257, 310, ...
2.212121
231
# Generated by Django 3.2.8 on 2021-11-05 09:20 from django.db import migrations
[ 2, 2980, 515, 416, 37770, 513, 13, 17, 13, 23, 319, 33448, 12, 1157, 12, 2713, 7769, 25, 1238, 198, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 628 ]
2.766667
30
# Copyright (c) 2018 UFCG-LSD. # # 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,...
[ 2, 15069, 357, 66, 8, 2864, 11448, 38, 12, 6561, 35, 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, 137...
3.438538
301
from logging import Logger from pathlib import Path from leaf_focus.support.location import Location from leaf_focus.pdf.info.component import Component class Operation: """A pipeline building block that creates the pdf info file.""" def run(self, pdf_path: Path, file_hash: str): """Run the operatio...
[ 6738, 18931, 1330, 5972, 1362, 198, 6738, 3108, 8019, 1330, 10644, 198, 198, 6738, 12835, 62, 37635, 13, 11284, 13, 24886, 1330, 13397, 198, 6738, 12835, 62, 37635, 13, 12315, 13, 10951, 13, 42895, 1330, 35100, 628, 198, 4871, 14680, 25...
2.926267
217
from ._block import AbstractBlock __all__ = ["AbstractBlock"]
[ 6738, 47540, 9967, 1330, 27741, 12235, 198, 198, 834, 439, 834, 796, 14631, 23839, 12235, 8973, 198 ]
3.705882
17
from fastlane.cli.core import main # NOQA
[ 6738, 3049, 33533, 13, 44506, 13, 7295, 1330, 1388, 220, 1303, 8005, 48, 32, 198 ]
2.866667
15
# register blue print
[ 2, 7881, 220, 4171, 3601, 628 ]
4
6
"""Repository of common GLSL functions."""
[ 37811, 6207, 13264, 286, 2219, 402, 6561, 43, 5499, 526, 15931, 198 ]
3.583333
12
import datetime from os import path from urllib.request import urlopen from xml.dom import minidom from utils import save_image, set_wallpaper_permanent # get today's date date = str(datetime.date.today())
[ 11748, 4818, 8079, 198, 6738, 28686, 1330, 3108, 198, 6738, 2956, 297, 571, 13, 25927, 1330, 19016, 9654, 198, 6738, 35555, 13, 3438, 1330, 949, 312, 296, 198, 198, 6738, 3384, 4487, 1330, 3613, 62, 9060, 11, 900, 62, 11930, 20189, 62...
3.246154
65
import requests from linebot.models import * # text_get_search_bitcoin_address('1CVyyJ6C8z3t5g25BJ8sBSqpwXTdz3HKiy')
[ 11748, 7007, 198, 198, 6738, 1627, 13645, 13, 27530, 1330, 1635, 198, 198, 2, 2420, 62, 1136, 62, 12947, 62, 35395, 62, 21975, 10786, 16, 33538, 22556, 41, 21, 34, 23, 89, 18, 83, 20, 70, 1495, 33, 41, 23, 82, 4462, 80, 79, 86, ...
2.269231
52
from hc.accounts.models import Profile
[ 6738, 289, 66, 13, 23317, 82, 13, 27530, 1330, 13118, 628 ]
3.636364
11
# Copyright (c) 2014-2017, iocage # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted providing that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and th...
[ 2, 15069, 357, 66, 8, 1946, 12, 5539, 11, 1312, 420, 496, 198, 2, 1439, 2489, 10395, 13, 198, 2, 198, 2, 2297, 396, 3890, 290, 779, 287, 2723, 290, 13934, 5107, 11, 351, 393, 1231, 198, 2, 17613, 11, 389, 10431, 4955, 326, 262, ...
2.405765
1,353