content
stringlengths
1
1.05M
input_ids
listlengths
1
883k
ratio_char_token
float64
1
22.9
token_count
int64
1
883k
# -*- coding: utf-8 -*- """ Created on Mon Aug 10 17:49:07 2020 @author: Amir """ import email import imaplib from email.header import decode_header import re
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 201, 198, 37811, 201, 198, 41972, 319, 2892, 2447, 838, 1596, 25, 2920, 25, 2998, 12131, 201, 198, 201, 198, 31, 9800, 25, 43931, 201, 198, 37811, 201, 198, 201, 198, 201, ...
2.183908
87
# coding=utf-8 import numpy as np import imageio from gym import spaces import tkinter as tk from PIL import Image, ImageTk import matplotlib.pyplot as plt import time CELL, BLOCK, AGENT_GOAL, OPPONENT_GOAL, AGENT, OPPONENT = range(6) WIN, LOSE = 5, -5 UP, RIGHT, DOWN, LEFT, HOLD = range(5) UNIT = 40 if __name__...
[ 2, 19617, 28, 40477, 12, 23, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 2939, 952, 198, 6738, 11550, 1330, 9029, 198, 11748, 256, 74, 3849, 355, 256, 74, 198, 6738, 350, 4146, 1330, 7412, 11, 7412, 51, 74, 220, 198, 11748, 2603...
2.302941
340
# Originated from https://github.com/amdegroot/ssd.pytorch from .augmentations import SSDAugmentation
[ 2, 6913, 3898, 422, 3740, 1378, 12567, 13, 785, 14, 321, 13500, 15763, 14, 824, 67, 13, 9078, 13165, 354, 198, 198, 6738, 764, 559, 5154, 602, 1330, 6723, 5631, 1018, 14374, 198 ]
3.121212
33
""" Basic moderation utilities for Birb. """ from .staff import CheckMods from .actions import ModActions
[ 37811, 198, 26416, 34401, 20081, 329, 12817, 65, 13, 198, 37811, 198, 198, 6738, 764, 28120, 1330, 6822, 24239, 198, 6738, 764, 4658, 1330, 3401, 32, 2733, 628 ]
3.857143
28
import os API_KEY = os.getenv('API_KEY') API_SECRET = os.getenv('API_SECRET') ACCESS_TOKEN = os.getenv('ACCESS_TOKEN') ACCESS_TOKEN_SECRET = os.getenv('ACCESS_TOKEN_SECRET') POSTGRES_PASSWORD = os.getenv('POSTGRES_PASSWORD')
[ 11748, 28686, 198, 198, 17614, 62, 20373, 796, 28686, 13, 1136, 24330, 10786, 17614, 62, 20373, 11537, 198, 17614, 62, 23683, 26087, 796, 28686, 13, 1136, 24330, 10786, 17614, 62, 23683, 26087, 11537, 198, 26861, 7597, 62, 10468, 43959, 7...
2.292929
99
# -*- coding: utf-8 -*- """ test_jid ---------------------------------- Tests for `vexmpp.xmpp.jid` module. """ import unittest from vexmpp.jid import Jid, _parse, _prep, InvalidJidError, internJid
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 37811, 198, 9288, 62, 73, 312, 198, 3880, 438, 198, 198, 51, 3558, 329, 4600, 303, 87, 76, 381, 13, 87, 76, 381, 13, 73, 312, 63, 8265, 13, 198, 37811, 198, ...
2.556962
79
# -*- coding: utf-8 -*- """ .. module:: dbu - context :platform: Unix, Windows :synopsis: Contexto Principal por defecto .. moduleauthor:: Diego Gonzalez <dgonzalez.jim@gmail.com> """ from . import configuration from . import models def load_context(request): """ Load Context Description ...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 198, 492, 8265, 3712, 288, 11110, 532, 4732, 198, 220, 220, 1058, 24254, 25, 33501, 11, 3964, 198, 220, 220, 1058, 28869, 24608, 25, 30532, 78, 32641, 16964, 1185...
2.442623
305
from tests.trainer.generic import std_trainer_input_1 from knodle.trainer.multi_trainer import MultiTrainer
[ 6738, 5254, 13, 2213, 10613, 13, 41357, 1330, 14367, 62, 2213, 10613, 62, 15414, 62, 16, 198, 198, 6738, 638, 375, 293, 13, 2213, 10613, 13, 41684, 62, 2213, 10613, 1330, 15237, 2898, 10613, 628 ]
3.142857
35
from django.db import models from django.contrib.auth.models import User
[ 6738, 42625, 14208, 13, 9945, 1330, 4981, 198, 6738, 42625, 14208, 13, 3642, 822, 13, 18439, 13, 27530, 1330, 11787, 198 ]
3.47619
21
import numpy as np from numba import jit
[ 11748, 299, 32152, 355, 45941, 198, 6738, 997, 7012, 1330, 474, 270, 628 ]
3.230769
13
# -*- coding: utf-8 -*- """ doxieapi ~~~~~~~~ A Python library for the developer API of the Doxie Go Wi-Fi document scanner. """ from .api import DoxieScanner __all__ = ['DoxieScanner']
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 37811, 198, 67, 1140, 494, 15042, 198, 15116, 198, 198, 32, 11361, 5888, 329, 262, 8517, 7824, 286, 262, 360, 1140, 494, 1514, 11759, 12, 10547, 3188, 27474, 13, ...
2.690141
71
from pathlib import Path from django.core.management.base import BaseCommand from wagtail.core.models import Page, Site, Locale from django.core.files.images import ImageFile from wagtail.images.models import Image from wagtail_localize.models import Translation from wagtail_localize.views.submit_translations import Tr...
[ 6738, 3108, 8019, 1330, 10644, 198, 6738, 42625, 14208, 13, 7295, 13, 27604, 13, 8692, 1330, 7308, 21575, 198, 6738, 266, 363, 13199, 13, 7295, 13, 27530, 1330, 7873, 11, 14413, 11, 15181, 1000, 198, 6738, 42625, 14208, 13, 7295, 13, ...
3.603448
116
import numpy as np import libs.contact_inhibition_lib as lib #library for simulation routines import libs.data as data import libs.plot as vplt #plotting library from structure.global_constants import * import structure.initialisation as init from structure.cell import Tissue, BasicSpringForceNoGrowth import matplotlib...
[ 11748, 299, 32152, 355, 45941, 198, 11748, 9195, 82, 13, 32057, 62, 259, 24108, 62, 8019, 355, 9195, 1303, 32016, 329, 18640, 31878, 198, 11748, 9195, 82, 13, 7890, 355, 1366, 198, 11748, 9195, 82, 13, 29487, 355, 410, 489, 83, 1303, ...
2.702128
376
from django.contrib import admin from .models import Invoice # Register your models here. admin.site.register(Invoice)
[ 6738, 42625, 14208, 13, 3642, 822, 1330, 13169, 198, 6738, 764, 27530, 1330, 10001, 2942, 198, 198, 2, 17296, 534, 4981, 994, 13, 198, 28482, 13, 15654, 13, 30238, 7, 19904, 2942, 8, 198 ]
3.529412
34
# coding: utf-8 from __future__ import absolute_import from datetime import date, datetime # noqa: F401 from typing import List, Dict # noqa: F401 from tapi_server.models.base_model_ import Model from tapi_server.models.name_and_value import NameAndValue # noqa: F401,E501 from tapi_server.models.operational_state...
[ 2, 19617, 25, 3384, 69, 12, 23, 198, 198, 6738, 11593, 37443, 834, 1330, 4112, 62, 11748, 198, 6738, 4818, 8079, 1330, 3128, 11, 4818, 8079, 220, 1303, 645, 20402, 25, 376, 21844, 198, 198, 6738, 19720, 1330, 7343, 11, 360, 713, 220...
3.054645
183
from urllib.parse import urljoin from appdirs import user_data_dir from notebook.notebookapp import NotebookApp from idom.config import IDOM_WED_MODULES_DIR from tornado.web import StaticFileHandler from tornado.web import Application IDOM_WED_MODULES_DIR.current = user_data_dir("idom-jupyter", "idom-team") # com...
[ 6738, 2956, 297, 571, 13, 29572, 1330, 19016, 22179, 198, 198, 6738, 598, 15908, 82, 1330, 2836, 62, 7890, 62, 15908, 198, 6738, 20922, 13, 11295, 2070, 1324, 1330, 5740, 2070, 4677, 198, 6738, 4686, 296, 13, 11250, 1330, 4522, 2662, ...
2.957447
141
## common class for only dobot with cam import gym from gym import utils from glob import glob from dobot_gym.utils.dobot_controller import DobotController from gym.spaces import MultiDiscrete
[ 2235, 2219, 1398, 329, 691, 466, 13645, 351, 12172, 628, 198, 11748, 11550, 198, 6738, 11550, 1330, 3384, 4487, 198, 6738, 15095, 1330, 15095, 198, 6738, 466, 13645, 62, 1360, 76, 13, 26791, 13, 67, 672, 313, 62, 36500, 1330, 30947, 3...
3.611111
54
######################### #Author: Sam Higginbotham ######################## from WMCore.Configuration import Configuration config = Configuration() #name='Pt11to30' config.section_("General") config.General.requestName = 'PCC_Run2017E_Corrections' config.General.workArea = 'RawPCCZeroBias2017' config.section_("JobT...
[ 14468, 7804, 2, 198, 2, 13838, 25, 3409, 11951, 1655, 16885, 321, 198, 14468, 7804, 198, 6738, 370, 9655, 382, 13, 38149, 1330, 28373, 198, 11250, 796, 28373, 3419, 628, 198, 2, 3672, 11639, 47, 83, 1157, 1462, 1270, 6, 198, 11250, ...
2.517997
639
import cv2 import os import glob import numpy as np from operator import itemgetter # import matplotlib.pyplot as plt import math import scipy.stats as stats #This function select numbers of the most active frame in a segment #this function get the most active frame #https://en.wikipedia.org/wiki/Normal_distribution...
[ 11748, 269, 85, 17, 198, 11748, 28686, 198, 11748, 15095, 198, 11748, 299, 32152, 355, 45941, 198, 6738, 10088, 1330, 2378, 1136, 353, 198, 2, 1330, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 198, 11748, 10688, 198, 11748, 629, ...
3.4375
112
"""Metrics to assess performance on ite prediction task.""" from typing import Optional import numpy as np import pandas as pd def expected_response(y: np.ndarray, w: np.ndarray, policy: np.ndarray, mu: Optional[np.ndarray]=None, ps: Optional[np.ndarray]=None) -> float: """Estimate expected...
[ 37811, 9171, 10466, 284, 4659, 2854, 319, 340, 68, 17724, 4876, 526, 15931, 198, 6738, 19720, 1330, 32233, 198, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 19798, 292, 355, 279, 67, 628, 198, 4299, 2938, 62, 26209, 7, 88, 25, 4594...
2.552692
2,173
from random import randint
[ 6738, 4738, 1330, 43720, 600, 198 ]
4.5
6
from openpyxl import load_workbook def import_msmt_college_registry_xlsx(path, sheet_name): """ Import XLSX from https://regvssp.msmt.cz/registrvssp/cvslist.aspx (list of colleges and faculties). Parameters: path -- path to XLSX file sheet_name -- "ExportVS" or "ExportFakulty" """...
[ 6738, 1280, 9078, 87, 75, 1330, 3440, 62, 1818, 2070, 628, 198, 4299, 1330, 62, 907, 16762, 62, 44107, 62, 2301, 4592, 62, 87, 7278, 87, 7, 6978, 11, 9629, 62, 3672, 2599, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 17267, 1395...
2.342105
266
import unittest import numpy as np from mtrack.graphs import G1 from mtrack.evaluation.matching_graph import MatchingGraph from mtrack.evaluation.voxel_skeleton import VoxelSkeleton from comatch import match_components import json test_data_dir = "./data" if __name__ == "__main__": unittest.main()
[ 11748, 555, 715, 395, 198, 11748, 299, 32152, 355, 45941, 198, 198, 6738, 285, 11659, 13, 34960, 82, 1330, 402, 16, 198, 6738, 285, 11659, 13, 18206, 2288, 13, 15699, 278, 62, 34960, 1330, 13225, 278, 37065, 198, 6738, 285, 11659, 13,...
2.952381
105
""" Functions specifically for working with QC/DQRs from the Atmospheric Radiation Measurement Program (ARM). """ import datetime as dt import numpy as np import requests from act.config import DEFAULT_DATASTREAM_NAME def add_dqr_to_qc( obj, variable=None, assessment='incorrect,suspect', exclude=No...
[ 37811, 198, 24629, 2733, 5734, 329, 1762, 351, 36070, 14, 35, 48, 31273, 422, 198, 1169, 41516, 47532, 24291, 434, 6118, 357, 33456, 737, 198, 198, 37811, 198, 198, 11748, 4818, 8079, 355, 288, 83, 198, 11748, 299, 32152, 355, 45941, ...
2.289727
2,492
import allure from common.constans import PrintedDress, PrintedSummerDress, Colors
[ 11748, 477, 495, 201, 198, 6738, 2219, 13, 9979, 504, 1330, 38482, 35, 601, 11, 38482, 33560, 35, 601, 11, 29792, 201, 198, 201, 198, 201, 198 ]
3.296296
27
# -*- coding: utf-8 -*- """ Created on Sun Mar 21 11:55:27 2021 Snow-Hydrology Repo for Evaluation, Analysis, and Decision-making Dashboard (shread_dash.py) Database Initialization This is part of dashboard loading database and other data into memory. The data for the database relies on a series of retrieval scripts ...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 198, 41972, 319, 3825, 1526, 2310, 1367, 25, 2816, 25, 1983, 33448, 198, 198, 28974, 12, 40436, 31142, 1432, 78, 329, 34959, 11, 14691, 11, 290, 26423, 12, 8601, ...
2.103826
4,286
import cloudscraper import json from bs4 import BeautifulSoup from dotenv import load_dotenv import os scraper = cloudscraper.create_scraper() load_dotenv('lang_code') language = os.getenv("lang_code") def simsimi(question): ''' Function to make the HTTP request to the Simsimi API already with the message typed b...
[ 11748, 6279, 1416, 38545, 198, 11748, 33918, 198, 6738, 275, 82, 19, 1330, 23762, 50, 10486, 198, 6738, 16605, 24330, 1330, 3440, 62, 26518, 24330, 198, 11748, 28686, 198, 198, 1416, 38545, 796, 6279, 1416, 38545, 13, 17953, 62, 1416, 3...
2.955466
247
import sys write()
[ 11748, 25064, 201, 198, 201, 198, 13564, 3419 ]
2.625
8
from rest_framework import serializers from .models import Bid, Item, User
[ 6738, 1334, 62, 30604, 1330, 11389, 11341, 198, 6738, 764, 27530, 1330, 43484, 11, 9097, 11, 11787, 628, 198 ]
4.052632
19
import requests from a01.auth import A01Auth session = requests.Session() # pylint: disable=invalid-name session.auth = A01Auth()
[ 11748, 7007, 198, 6738, 257, 486, 13, 18439, 1330, 317, 486, 30515, 628, 198, 29891, 796, 7007, 13, 36044, 3419, 220, 1303, 279, 2645, 600, 25, 15560, 28, 259, 12102, 12, 3672, 198, 29891, 13, 18439, 796, 317, 486, 30515, 3419, 198 ]
3.166667
42
""" Construct, train neural-SDE models and simulate trajectories from the learnt models. """ # Copyright 2021 Sheng Wang. # Affiliation: Mathematical Institute, University of Oxford # Email: sheng.wang@maths.ox.ac.uk import numpy as np import os import pandas as pd import tensorflow as tf import tensorflow_probabilit...
[ 37811, 198, 42316, 11, 4512, 17019, 12, 50, 7206, 4981, 290, 29308, 20134, 1749, 422, 262, 26338, 198, 27530, 13, 198, 37811, 198, 198, 2, 15069, 33448, 1375, 782, 15233, 13, 198, 2, 6708, 15547, 25, 30535, 605, 5136, 11, 2059, 286, ...
3.412162
148
import random pedra = ''' _______ ---' ____) (_____) (_____) (____) ---.__(___) ''' papel = ''' _______ ---' ____)____ ______) _______) _______) ---.__________) ''' tesoura = ''' _______ ---' ____)____ ______) __________) (____) -...
[ 11748, 4738, 198, 9124, 430, 796, 705, 7061, 198, 220, 220, 220, 220, 37405, 198, 6329, 6, 220, 220, 220, 1427, 8, 198, 220, 220, 220, 220, 220, 357, 29343, 8, 198, 220, 220, 220, 220, 220, 357, 29343, 8, 198, 220, 220, 220, 220...
1.995448
659
print(even_square_sum([1, 2, 3, 4, 5]))
[ 220, 220, 198, 4798, 7, 10197, 62, 23415, 62, 16345, 26933, 16, 11, 362, 11, 513, 11, 604, 11, 642, 60, 4008 ]
1.909091
22
import json file_content = [] with open('vaccine_data.ndjson', 'r', encoding="UTF-8") as f: for row in f.readlines(): rowJson = json.loads(row.replace('\n','')) if rowJson['prefecture'] == '08': del rowJson['prefecture'] if not rowJson['medical_worker']: del rowJson['medical_worker'] ...
[ 11748, 33918, 198, 198, 7753, 62, 11299, 796, 17635, 198, 198, 4480, 1280, 10786, 37839, 500, 62, 7890, 13, 358, 17752, 3256, 705, 81, 3256, 21004, 2625, 48504, 12, 23, 4943, 355, 277, 25, 198, 220, 329, 5752, 287, 277, 13, 961, 661...
2.287719
570
from .system import System from logcat import LogCat # widget.py
[ 198, 6738, 764, 10057, 1330, 4482, 198, 198, 6738, 2604, 9246, 1330, 5972, 21979, 198, 198, 2, 26295, 13, 9078, 198 ]
3.238095
21
import smtplib user = input('Enter your gmail ') password = input('Enter your password ') receiver = input('Enter the receiver ') msg = input('Enter the message ') #num = input('Enter the number of emails you want to send ') #x = 0 #x = int() #num = int() server = smtplib.SMTP('smtp.gmail.com', 587) server....
[ 11748, 895, 83, 489, 571, 201, 198, 201, 198, 7220, 796, 5128, 10786, 17469, 534, 308, 4529, 705, 8, 201, 198, 28712, 796, 5128, 10786, 17469, 534, 9206, 705, 8, 201, 198, 260, 39729, 796, 5128, 10786, 17469, 262, 9733, 705, 8, 201,...
2.727811
169
''' Created on Feb 4, 2015 @author: nirmal ''' from scheme import current_timestamp from spire.schema import * from spire.mesh import Surrogate __all__ = ('Notification',) schema = Schema('narrative') NotificationOwnerIDIndex = Index('notification_ownerid_idx', Notification.ownerid) NotificationRe...
[ 7061, 6, 201, 198, 41972, 319, 3158, 604, 11, 1853, 201, 198, 201, 198, 31, 9800, 25, 299, 2533, 282, 201, 198, 7061, 6, 201, 198, 6738, 7791, 1330, 1459, 62, 16514, 27823, 201, 198, 6738, 599, 557, 13, 15952, 2611, 1330, 1635, 20...
2.822222
135
from entity.message import Message from .databaserepo import DatabaseRepo
[ 6738, 9312, 13, 20500, 1330, 16000, 198, 6738, 764, 19608, 397, 292, 567, 7501, 1330, 24047, 6207, 78, 628 ]
3.947368
19
from tkinter import * from tkinter import messagebox from database import db from client import client from pprint import * import matplotlib matplotlib.use("TkAgg") from matplotlib.backends.backend_tkagg import FigureCanvasTkAgg, NavigationToolbar2TkAgg from matplotlib.figure import Figure import matplotlib.dates as m...
[ 6738, 256, 74, 3849, 1330, 1635, 198, 6738, 256, 74, 3849, 1330, 3275, 3524, 198, 6738, 6831, 1330, 20613, 198, 6738, 5456, 1330, 5456, 198, 6738, 279, 4798, 1330, 1635, 198, 11748, 2603, 29487, 8019, 198, 6759, 29487, 8019, 13, 1904, ...
2.837349
166
import torch import numpy as np import os import sys from fairseq.data.data_utils import collate_tokens from fairseq.models.roberta import RobertaModel import time roberta = RobertaModel.from_pretrained('checkpoints/', checkpoint_file='ck.pt', data_name_or_path='data/processed_RACE/') roberta.eval() eval_one_exa...
[ 11748, 28034, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 28686, 198, 11748, 25064, 198, 6738, 3148, 41068, 13, 7890, 13, 7890, 62, 26791, 1330, 2927, 378, 62, 83, 482, 641, 198, 6738, 3148, 41068, 13, 27530, 13, 305, 4835, 64, 13...
2.856061
132
import soundfile as sf from tqdm import tqdm import src.utils.interface_file_io as io import librosa import wave import multiprocessing import src.utils.interface_multiprocessing as mi import torchaudio import numpy as np import torch.nn.functional as F import torch torchaudio.set_audio_backend("sox_io") # The...
[ 11748, 2128, 7753, 355, 264, 69, 198, 6738, 256, 80, 36020, 1330, 256, 80, 36020, 198, 11748, 12351, 13, 26791, 13, 39994, 62, 7753, 62, 952, 355, 33245, 198, 11748, 9195, 4951, 64, 198, 11748, 6769, 198, 11748, 18540, 305, 919, 278, ...
2.55414
471
import math from typing import MutableSequence, Optional, TypeVar, Union import torch from torch import nn from torch import Tensor from torch.types import Number from einops import repeat T = TypeVar("T") TensorSeq = MutableSequence[Tensor] clamp_with_grad = ClampWithGrad.apply def get_ddpm_schedu...
[ 11748, 10688, 198, 6738, 19720, 1330, 13859, 540, 44015, 594, 11, 32233, 11, 5994, 19852, 11, 4479, 198, 11748, 28034, 198, 6738, 28034, 1330, 299, 77, 198, 6738, 28034, 1330, 309, 22854, 198, 6738, 28034, 13, 19199, 1330, 7913, 198, 67...
2.798419
253
blog1= Blog(title='python bisics', photo='https://images.pexels.com/photos/837140/pexels-photo-837140.jpeg', name='Yasser',date='10-06-2019',content='Hello How r u ?') blog2= Blog(title='python bisics', photo='https://images.pexels.com/photos/837140/pexels-photo-837140.jpeg', name='Mohammed',date='11-16-1979',conte...
[ 198, 14036, 16, 28, 14001, 7, 7839, 11639, 29412, 47457, 873, 3256, 4590, 11639, 5450, 1378, 17566, 13, 24900, 1424, 13, 785, 14, 24729, 14, 23, 2718, 15187, 14, 24900, 1424, 12, 23074, 12, 23, 2718, 15187, 13, 73, 22071, 3256, 220, ...
2.523438
256
import logging from modules.common.GoogleBucketResource import GoogleBucketResource from modules.common.Utils import Utils from modules.common import create_output_dir, remove_output_dir from yapsy.PluginManager import PluginManager from definitions import PIS_OUTPUT_DIR logger = logging.getLogger(__name__)
[ 11748, 18931, 198, 6738, 13103, 13, 11321, 13, 11708, 33, 38811, 26198, 1330, 3012, 33, 38811, 26198, 198, 6738, 13103, 13, 11321, 13, 18274, 4487, 1330, 7273, 4487, 198, 6738, 13103, 13, 11321, 1330, 2251, 62, 22915, 62, 15908, 11, 478...
3.702381
84
import importlib import os conf_module = importlib.import_module("conf.%s" % os.environ['CONFIGURATION']) settings = { key: getattr(conf_module, key) for key in dir(conf_module) if key.isupper() }
[ 11748, 1330, 8019, 198, 11748, 28686, 198, 198, 10414, 62, 21412, 796, 1330, 8019, 13, 11748, 62, 21412, 7203, 10414, 13, 4, 82, 1, 4064, 28686, 13, 268, 2268, 17816, 10943, 16254, 4261, 6234, 6, 12962, 198, 198, 33692, 796, 1391, 198...
2.573171
82
from django.db import models # Create your models here.
[ 6738, 42625, 14208, 13, 9945, 1330, 4981, 198, 198, 2, 13610, 534, 4981, 994, 13 ]
3.733333
15
from dataclasses import dataclass from scipy.stats import nbinom # type: ignore[import] from probs.discrete.rv import DiscreteRV
[ 6738, 4818, 330, 28958, 1330, 4818, 330, 31172, 198, 198, 6738, 629, 541, 88, 13, 34242, 1330, 299, 8800, 296, 220, 1303, 2099, 25, 8856, 58, 11748, 60, 198, 198, 6738, 386, 1443, 13, 15410, 8374, 13, 81, 85, 1330, 8444, 8374, 49, ...
2.955556
45
#!python3 """ A simple script that uses Baidu Place API to search certain kinds of place in a range of circular space. This API can be called maximum 2000 times per day. """ import requests, json # import psycopg2 mykey = "IniXfqhsWAyZQpkmh5FtEVv0" # my developer key city = "" place = "" coor1 = (39.915, 116.404) c...
[ 2, 0, 29412, 18, 198, 37811, 198, 32, 2829, 4226, 326, 3544, 347, 1698, 84, 8474, 7824, 284, 2989, 1728, 6982, 286, 1295, 198, 259, 257, 2837, 286, 18620, 2272, 13, 198, 1212, 7824, 460, 307, 1444, 5415, 4751, 1661, 583, 1110, 13, ...
2.389987
759
# -*- coding: utf-8 -*- import logging from pathlib import Path import click import torch from classifier import Classifier from torchvision import datasets, transforms if __name__ == '__main__': log_fmt = '%(asctime)s - %(name)s - %(levelname)s - %(message)s' logging.basicConfig(level=logging.INFO, format=l...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 11748, 18931, 198, 6738, 3108, 8019, 1330, 10644, 198, 198, 11748, 3904, 198, 11748, 28034, 198, 6738, 1398, 7483, 1330, 5016, 7483, 198, 6738, 28034, 10178, 1330, 40522, ...
2.764228
123
__author__ = 'luigolas' import numpy as np from scipy.stats import cumfreq
[ 834, 9800, 834, 796, 705, 2290, 328, 12456, 6, 198, 198, 11748, 299, 32152, 355, 45941, 198, 6738, 629, 541, 88, 13, 34242, 1330, 10973, 19503, 80, 628 ]
2.75
28
from rhqmetrics_handler import RHQMetricsHandler
[ 6738, 9529, 80, 4164, 10466, 62, 30281, 1330, 35662, 48, 9171, 10466, 25060, 198 ]
3.5
14
from tkinter import* #=====importing self created module which will show the registartion form=======# import registrationform #=====importing self created module which will help in deleting student record from data base======# import deletestudent #=============importing selfcreated update student record ========...
[ 6738, 256, 74, 3849, 1330, 9, 201, 198, 2, 1421, 28, 11748, 278, 2116, 2727, 8265, 543, 481, 905, 262, 4214, 433, 295, 1296, 1421, 18604, 2, 201, 198, 11748, 9352, 687, 201, 198, 2, 1421, 28, 11748, 278, 2116, 2727, 8265, 543, 481...
3.710059
169
from django import forms from django.contrib.auth.models import User from django.contrib.auth.forms import UserCreationForm from .models import Customer, Seller, Product, Order
[ 6738, 42625, 14208, 1330, 5107, 198, 6738, 42625, 14208, 13, 3642, 822, 13, 18439, 13, 27530, 1330, 11787, 198, 6738, 42625, 14208, 13, 3642, 822, 13, 18439, 13, 23914, 1330, 11787, 12443, 341, 8479, 198, 198, 6738, 764, 27530, 1330, 22...
3.66
50
"""Implementation of AvoidBlastMatches.""" from ..Specification import Specification, SpecEvaluation # from .VoidSpecification import VoidSpecification from ..biotools import blast_sequence from ..Location import Location
[ 37811, 3546, 32851, 286, 24390, 3629, 459, 19044, 2052, 526, 15931, 198, 198, 6738, 11485, 22882, 2649, 1330, 18291, 2649, 11, 18291, 36, 2100, 2288, 198, 198, 2, 422, 764, 53, 1868, 22882, 2649, 1330, 18331, 22882, 2649, 198, 6738, 114...
4.090909
55
from aadict import aadict from cachetools import LRUCache import ujson as json import regex from shortuuid import uuid from functools import wraps from glob import glob from time import time import logging import os import shutil import unicodedata _logger = logging.getLogger(__name__) _basepath = None _serialize =...
[ 6738, 257, 324, 713, 1330, 257, 324, 713, 198, 6738, 40428, 3202, 10141, 1330, 37491, 9598, 4891, 198, 11748, 334, 17752, 355, 33918, 198, 11748, 40364, 198, 6738, 1790, 12303, 312, 1330, 334, 27112, 628, 198, 6738, 1257, 310, 10141, 13...
2.573341
1,643
print("x"*25) print("Bem-Vindo a Tabuada v2.0") print("x"*25) n = int(input("Digite um nmero para a tabuada: ")) for t in range(1, 11): print(f"{n} x {t:2} = {n*t}")
[ 4798, 7203, 87, 1, 9, 1495, 8, 198, 4798, 7203, 33, 368, 12, 53, 521, 78, 257, 16904, 84, 4763, 410, 17, 13, 15, 4943, 198, 4798, 7203, 87, 1, 9, 1495, 8, 198, 198, 77, 796, 493, 7, 15414, 7203, 19511, 578, 23781, 299, 647, ...
1.910112
89
n1=17 n2=28 if n1>n2: print('n1 bozorgtar az n2') elif n1<n2: print('n2 bozorgtar az n1') elif n1==n2: print('n1 va n2 barabar hastand')
[ 77, 16, 28, 1558, 198, 77, 17, 28, 2078, 198, 361, 299, 16, 29, 77, 17, 25, 198, 220, 220, 220, 3601, 10786, 77, 16, 1489, 89, 2398, 18870, 35560, 299, 17, 11537, 198, 417, 361, 299, 16, 27, 77, 17, 25, 198, 220, 220, 220, 3...
1.752941
85
"""Adds table for scicrunch rrids Revision ID: 39fa67f45cc0 Revises: 3452ca7b13e9 Create Date: 2020-12-15 18:16:03.581479+00:00 """ import sqlalchemy as sa from alembic import op # revision identifiers, used by Alembic. revision = "39fa67f45cc0" down_revision = "3452ca7b13e9" branch_labels = None depends_on = None ...
[ 37811, 46245, 3084, 329, 629, 291, 81, 3316, 374, 81, 2340, 198, 198, 18009, 1166, 4522, 25, 5014, 13331, 3134, 69, 2231, 535, 15, 198, 18009, 2696, 25, 513, 37730, 6888, 22, 65, 1485, 68, 24, 198, 16447, 7536, 25, 12131, 12, 1065, ...
2.413534
133
import pymysql from tkinter import messagebox # bbdd= pymysql.connect( host= "localhost", user= "root", passwd="", db= "ejemplo1") # cursor= bbdd.cursor() # cursor.execute("DELETE FROM SOCIOS WHERE ID= 3") # bbdd.commit() # bbdd.close() # bbdd= pymysql.connect( host= "localhost", user= "root", passw...
[ 11748, 279, 4948, 893, 13976, 198, 6738, 256, 74, 3849, 1330, 3275, 3524, 628, 198, 2, 275, 65, 1860, 28, 279, 4948, 893, 13976, 13, 8443, 7, 2583, 28, 366, 36750, 1600, 2836, 28, 366, 15763, 1600, 1208, 16993, 2625, 1600, 20613, 28...
2.321138
246
import sys import json import das_client
[ 11748, 25064, 198, 11748, 33918, 198, 11748, 288, 292, 62, 16366, 628 ]
3.5
12
import pickle # pickle can serialize python objects data = {1:"hi", 2: "there"} # convert to byte byte_data = pickle.dumps(data) # convert back to python object data2 = pickle.loads(byte_data) # ----------using with files---------- filename = "" # write to a file pickle.dump(data, open(filename, "wb" )) with op...
[ 11748, 2298, 293, 198, 198, 2, 2298, 293, 460, 11389, 1096, 21015, 5563, 198, 198, 7890, 796, 1391, 16, 11097, 5303, 1600, 362, 25, 366, 8117, 20662, 198, 198, 2, 10385, 284, 18022, 198, 26327, 62, 7890, 796, 2298, 293, 13, 67, 8142...
2.822485
169
from os import sys, path from resolver.models import * sys.path.append(path.dirname(path.dirname(path.abspath(__file__)))) sys.path.append('/home/app') from client.lib.cactus_client import CactusClient
[ 6738, 28686, 1330, 25064, 11, 3108, 198, 198, 6738, 581, 14375, 13, 27530, 1330, 1635, 198, 198, 17597, 13, 6978, 13, 33295, 7, 6978, 13, 15908, 3672, 7, 6978, 13, 15908, 3672, 7, 6978, 13, 397, 2777, 776, 7, 834, 7753, 834, 35514, ...
2.887324
71
import subprocess
[ 11748, 850, 14681 ]
5.666667
3
from characters.models import Character from characters.serializers import CharacterSerializer from rest_framework import generics
[ 6738, 3435, 13, 27530, 1330, 15684, 198, 6738, 3435, 13, 46911, 11341, 1330, 15684, 32634, 7509, 198, 6738, 1334, 62, 30604, 1330, 1152, 873, 628, 198 ]
5.115385
26
from django.conf.urls import url from django.utils.translation import ugettext_lazy as _ from .views import DeleteRole, EditRole, NewRole, RolesList, RoleUsers
[ 6738, 42625, 14208, 13, 10414, 13, 6371, 82, 1330, 19016, 198, 6738, 42625, 14208, 13, 26791, 13, 41519, 1330, 334, 1136, 5239, 62, 75, 12582, 355, 4808, 198, 198, 6738, 764, 33571, 1330, 23520, 47445, 11, 5312, 47445, 11, 968, 47445, ...
3.306122
49
from base import * import utils.neuralrenderer_render as nr
[ 6738, 2779, 1330, 1635, 201, 198, 11748, 3384, 4487, 13, 710, 1523, 10920, 11882, 62, 13287, 355, 299, 81, 201 ]
3.05
20
import wsgiref.util import flask from proxy import proxy # pylint: disable=W0212
[ 11748, 266, 45213, 557, 69, 13, 22602, 198, 198, 11748, 42903, 198, 198, 6738, 15741, 1330, 15741, 198, 198, 2, 279, 2645, 600, 25, 15560, 28, 54, 2999, 1065, 628 ]
2.833333
30
import sys if __name__ == '__main__': main()
[ 11748, 25064, 628, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 628, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 198, 220, 220, 220, 1388, 3419, 198 ]
1.911765
34
import os import numpy as np import argparse import logging import random import pickle from pprint import pformat from exps.data import ParticleNetDataset from settree.set_data import SetDataset, OPERATIONS, merge_init_datasets import exps.eval_utils as eval from exps.eval_utils import create_logger data_root = '/ho...
[ 11748, 28686, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 1822, 29572, 198, 11748, 18931, 198, 11748, 4738, 198, 11748, 2298, 293, 198, 6738, 279, 4798, 1330, 279, 18982, 198, 198, 6738, 409, 862, 13, 7890, 1330, 2142, 1548, 7934, 2...
1.777739
2,866
#!/usr/bin/env python # -*- coding: utf-8 -*- from .blnet_web import BLNETWeb, test_blnet from .blnet_conn import BLNETDirect from .blnet import BLNET
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 6738, 764, 2436, 3262, 62, 12384, 1330, 9878, 12884, 13908, 11, 1332, 62, 2436, 3262, 198, 6738, 764, 2436, 3262, ...
2.576271
59
from psycopg2 import connect import requests import json r = requests.get( "http://localhost:9091/api/getDatabaseContainerByContainerID", params = {"containerID":"Metadatabase"} ) r.json() conn=connect( dbname="metadatabase", user = "postgres", host = r.json()['IpAddress'], password = "postgr...
[ 6738, 17331, 22163, 70, 17, 1330, 2018, 220, 198, 11748, 7007, 198, 11748, 33918, 220, 628, 198, 81, 796, 7007, 13, 1136, 7, 198, 197, 1, 4023, 1378, 36750, 25, 44675, 16, 14, 15042, 14, 1136, 38105, 29869, 3886, 29869, 2389, 1600, ...
2.643275
171
from setuptools import setup setup(name='dcgenerator', version='0.1', description='Generate dc events from time series', url='https://github.com/JurgenPalsma/dcgenerator', author='Flying Circus', author_email='jurgen.palsma@gmail.com', license='MIT', packages=['dcgenerator'], ...
[ 6738, 900, 37623, 10141, 1330, 9058, 198, 198, 40406, 7, 3672, 11639, 17896, 8612, 1352, 3256, 198, 220, 220, 220, 220, 220, 2196, 11639, 15, 13, 16, 3256, 198, 220, 220, 220, 220, 220, 6764, 11639, 8645, 378, 30736, 2995, 422, 640, ...
2.323529
170
"""Manage Wonk's configuration.""" import pathlib from typing import Any, Dict, List import yaml from pydantic import BaseModel from toposort import toposort_flatten # type: ignore from wonk.exceptions import UnknownParentError def load_config(config_path: pathlib.Path = None) -> Config: """Load a configura...
[ 37811, 5124, 496, 23306, 74, 338, 8398, 526, 15931, 198, 198, 11748, 3108, 8019, 198, 6738, 19720, 1330, 4377, 11, 360, 713, 11, 7343, 198, 198, 11748, 331, 43695, 198, 6738, 279, 5173, 5109, 1330, 7308, 17633, 198, 6738, 1353, 418, 4...
2.731959
679
# Copyright 2021 Arm 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 agree...
[ 2, 15069, 33448, 7057, 3457, 13, 1439, 6923, 33876, 13, 198, 2, 220, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 2, 345, 743, 407, 779, 428, 2393, 2845, 287, 11846, 351, 262, 1...
3.138122
543
# 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 # # https://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, ...
2.222841
1,077
#!/user/bin/env python # -*- coding: utf-8 -*- """ ------------------------------------ @Project : opensourcetest @Time : 2020/11/12 15:01 @Auth : chineseluo @Email : 848257135@qq.com @File : cli_test.py @IDE : PyCharm ------------------------------------ """ import os import sys import unittest from op...
[ 2, 48443, 7220, 14, 8800, 14, 24330, 21015, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 37811, 198, 3880, 650, 198, 31, 16775, 1058, 9808, 454, 66, 316, 395, 198, 31, 7575, 220, 220, 220, 1058, 12131, ...
2.713178
129
import socket import struct import config import json import threading import random if __name__ == '__main__': port = random.randint(50_000, 65_000) # pass selected port to the TCP thread, in order to listen on the same port # thread in the background as daemon th = threading.Thread(target=tcp_hand...
[ 11748, 17802, 198, 11748, 2878, 198, 11748, 4566, 198, 11748, 33918, 198, 11748, 4704, 278, 198, 11748, 4738, 628, 628, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 198, 220, 220, 220, 2493, 796, 4738, 13, 25192, 600, ...
3
139
import numpy as np import torch from collections import defaultdict, deque, OrderedDict import heapq from data_structures import DoublyLinkedList, UndirectedGraph,Fragment import time import sys loss = torch.nn.GaussianNLLLoss() def stitch_objects_tsmn_online_2(o, THRESHOLD_MAX=3, VARX=0.03, ...
[ 11748, 299, 32152, 355, 45941, 198, 198, 11748, 28034, 198, 6738, 17268, 1330, 4277, 11600, 11, 390, 4188, 11, 14230, 1068, 35, 713, 198, 11748, 24575, 80, 198, 6738, 1366, 62, 7249, 942, 1330, 5728, 36874, 11280, 276, 8053, 11, 13794, ...
1.928166
9,327
#Copyright (c) 2010 harkon.kr # # ***** BEGIN MIT LICENSE BLOCK ***** # #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...
[ 2, 15269, 357, 66, 8, 3050, 289, 668, 261, 13, 38584, 198, 2, 198, 2, 25998, 9, 347, 43312, 17168, 38559, 24290, 9878, 11290, 25998, 9, 198, 2, 198, 2, 5990, 3411, 318, 29376, 7520, 11, 1479, 286, 3877, 11, 284, 597, 1048, 16727, ...
3.597222
360
from enum import Enum
[ 6738, 33829, 1330, 2039, 388, 628, 628, 628 ]
3.375
8
import os path = os.path.join(os.path.dirname(__file__), 'day01.txt') with open(path) as f: inputdata = f.readlines() print(f"\nAOC 2018 Day 01: \n") print(f"Part 1: {part1()}") print(f"Part 2: {part2()}")
[ 11748, 28686, 198, 6978, 796, 28686, 13, 6978, 13, 22179, 7, 418, 13, 6978, 13, 15908, 3672, 7, 834, 7753, 834, 828, 705, 820, 486, 13, 14116, 11537, 198, 198, 4480, 1280, 7, 6978, 8, 355, 277, 25, 198, 220, 220, 220, 5128, 7890, ...
2.221053
95
#! /usr/bin/env python # # Copyright (C) 2018 Mikko Kotila import os DESCRIPTION = "Signs Text Processing for Deep Learning" LONG_DESCRIPTION = """\ Signs is a utility for text preprocessing, vectorizing, and analysis such as semantic similarity, mainly for the purpose of using unstructured data in deep learning mode...
[ 2, 0, 1220, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 198, 2, 15069, 357, 34, 8, 2864, 17722, 7204, 21702, 10102, 198, 198, 11748, 28686, 198, 198, 30910, 40165, 796, 366, 11712, 82, 8255, 28403, 329, 10766, 18252, 1, 198, 43, 1849...
2.020572
1,118
# -*- coding: utf-8 -*- """ Created on Wed Sep 9 08:46:08 2020 @author: Jon """ from numba import jit import numpy as np
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 198, 41972, 319, 3300, 8621, 220, 860, 8487, 25, 3510, 25, 2919, 12131, 198, 198, 31, 9800, 25, 5966, 198, 37811, 198, 6738, 997, 7012, 1330, 474, 270, 198, 117...
2.46
50
"""Object name: Resistance Function name: serial_sum(R,nori,nend), performs serial sum of a resistance object list from nori to nend Function name: parallel_sum(R,nori,nend), performs parallel sum of a resistance object list from nori to nend """ ### definition of thermal resistance ### from sympy.interactive ...
[ 37811, 10267, 1438, 25, 17363, 198, 220, 220, 15553, 1438, 25, 11389, 62, 16345, 7, 49, 11, 77, 10145, 11, 77, 437, 828, 17706, 11389, 2160, 286, 257, 6625, 2134, 1351, 422, 4249, 72, 284, 299, 437, 198, 220, 220, 15553, 1438, 25, ...
2.663522
318
import csv import MySQLdb from datetime import datetime from tabulate import tabulate #should be changed to sys/argv but this is temporary anyway FILENAME = '/tmp/buttons.csv' NUM_ROWS = 2 if __name__ == '__main__': main()
[ 11748, 269, 21370, 198, 11748, 33476, 9945, 198, 6738, 4818, 8079, 1330, 4818, 8079, 198, 6738, 7400, 5039, 1330, 7400, 5039, 198, 198, 2, 21754, 307, 3421, 284, 25064, 14, 853, 85, 475, 428, 318, 8584, 6949, 198, 46700, 1677, 10067, ...
2.987179
78
from flask import session
[ 6738, 42903, 1330, 6246, 628, 628 ]
4.833333
6
import doctest doctest.testfile("addd.rst")
[ 11748, 10412, 395, 198, 4598, 310, 395, 13, 9288, 7753, 7203, 324, 1860, 13, 81, 301, 4943, 198 ]
2.444444
18
from flask import Flask, request, url_for, redirect, session, flash, jsonify, abort import json # from flask_login import LoginManager, UserMixin, login_required, logout_user from flask_login import login_user, logout_user, login_required import os from flask_restful import Resource, Api from passlib.apps import ...
[ 6738, 42903, 1330, 46947, 11, 2581, 11, 19016, 62, 1640, 11, 18941, 11, 6246, 11, 7644, 11, 33918, 1958, 11, 15614, 201, 198, 11748, 33918, 201, 198, 2, 422, 42903, 62, 38235, 1330, 23093, 13511, 11, 11787, 35608, 259, 11, 17594, 62, ...
2.935135
185
from core_tests_base import CoreTestsBase, FakeTessagon, FakeTileSubClass from tessagon.core.tile_generator import TileGenerator
[ 6738, 4755, 62, 41989, 62, 8692, 1330, 7231, 51, 3558, 14881, 11, 33482, 51, 408, 1840, 11, 33482, 35103, 7004, 9487, 198, 6738, 256, 408, 1840, 13, 7295, 13, 40927, 62, 8612, 1352, 1330, 47870, 8645, 1352, 628 ]
3.421053
38
n = input(); mp = [[int(i) for i in raw_input()] for j in xrange(n)] pnt = [[0 for i in xrange(n)] for j in xrange(n)] x, y = [int(i) for i in raw_input().split()] for i in xrange(1,x): pnt[0][i] = pnt[0][i-1]+mp[0][i]-mp[0][i-1] if mp[0][i]>mp[0][i-1] else pnt[0][i-1] for i in xrange(1,y): pnt[i][0] = pnt[i-1][0]+...
[ 77, 796, 5128, 9783, 198, 3149, 796, 16410, 600, 7, 72, 8, 329, 1312, 287, 8246, 62, 15414, 3419, 60, 329, 474, 287, 2124, 9521, 7, 77, 15437, 198, 79, 429, 796, 16410, 15, 329, 1312, 287, 2124, 9521, 7, 77, 15437, 329, 474, 287...
1.684073
383
from . import config as config_module from .resource import resource_config, Resource from .view import ResourceView __all__ = [ "resource_config", "Resource", "ResourceView", ] __version__ = "1.0a2"
[ 6738, 764, 1330, 4566, 355, 4566, 62, 21412, 198, 6738, 764, 31092, 1330, 8271, 62, 11250, 11, 20857, 198, 6738, 764, 1177, 1330, 20857, 7680, 198, 198, 834, 439, 834, 796, 685, 198, 220, 220, 220, 366, 31092, 62, 11250, 1600, 198, ...
3
72
text = input() key = int(input()) print(decryped_data(text,key))
[ 198, 5239, 796, 5128, 3419, 198, 2539, 796, 493, 7, 15414, 28955, 198, 198, 4798, 7, 12501, 563, 9124, 62, 7890, 7, 5239, 11, 2539, 4008, 198 ]
2.481481
27
#-*- coding: utf-8 -*- from setuptools import setup with open("README.md", "r") as fh: readme = fh.read() setup(name='fala_assis', version='0.0.1', url='https://github.com/OseiasBeu/AssistenteDeFala', license='MIT License', author='Oseias Beu', long_description=readme, long_des...
[ 2, 12, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 201, 198, 6738, 900, 37623, 10141, 1330, 9058, 201, 198, 201, 198, 4480, 1280, 7203, 15675, 11682, 13, 9132, 1600, 366, 81, 4943, 355, 277, 71, 25, 201, 198, 220, 220, 220, ...
2.412451
257
num_int = 5 num_dec = 7.3 val_str = "texto qualquer " print("Primeiro nmero :", num_int) print("O poder do Kakaroto mais de %i mil" %num_dec) print("Ol mundo " + val_str + str(num_int)) print("Concatenando decimal:", num_dec) print("Concatenando decimal: %.10f" %num_dec) print("Concatenando decimal: " + str(num_dec...
[ 22510, 62, 600, 796, 642, 198, 22510, 62, 12501, 796, 767, 13, 18, 198, 2100, 62, 2536, 796, 366, 5239, 78, 4140, 10819, 366, 198, 198, 4798, 7203, 26405, 7058, 299, 647, 78, 1058, 1600, 997, 62, 600, 8, 198, 4798, 7203, 46, 279, ...
2.502793
179
#%% #md """ This script downloads the dataset use in the analysis. __It requires 2 inputs to be specified__ repo_directory and email (see first cell block). """ #%% # Where is the main directory of the repo repo_directory = './' # Pubmed requires you to identify with an email addreesss email = '' #%% import os os...
[ 2, 16626, 198, 2, 9132, 198, 198, 37811, 198, 1212, 4226, 21333, 262, 27039, 779, 287, 262, 3781, 13, 198, 198, 834, 1026, 4433, 362, 17311, 284, 307, 7368, 834, 198, 198, 260, 7501, 62, 34945, 290, 3053, 357, 3826, 717, 2685, 2512,...
2.7887
1,292
# -*- coding: utf-8 -*- from sbdc.preprocessing import ContiguousSegmentSet from sbdc.datasets import bbc_load X = bbc_load() cs = ContiguousSegmentSet( min_segment_length=100, small_segment_vanish_strategy="top") cs.fit(X[:, 2]) text_segments = cs.transform() print text_segments[:2]
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 6738, 264, 17457, 66, 13, 3866, 36948, 1330, 2345, 29709, 41030, 434, 7248, 198, 6738, 264, 17457, 66, 13, 19608, 292, 1039, 1330, 275, 15630, 62, 2220, 198, 198, ...
2.414634
123
import xml.etree.ElementTree as ET from pathlib import Path from argparse import ArgumentParser import dateutil.parser if __name__ == "__main__": main()
[ 11748, 35555, 13, 316, 631, 13, 20180, 27660, 355, 12152, 198, 6738, 3108, 8019, 1330, 10644, 198, 6738, 1822, 29572, 1330, 45751, 46677, 198, 198, 11748, 3128, 22602, 13, 48610, 628, 198, 198, 361, 11593, 3672, 834, 6624, 366, 834, 124...
3.22
50
# Base imports from os import environ # Third party imports from graphene import Field, ObjectType, String, Int # Project imports from graphql_api.tenor.schemas.hacker_gif.result import Result from graphql_api.tenor.resolvers.hacker_gif import resolve_hacker_gifs API_KEY = environ.get('TENOR_API_KEY')
[ 198, 2, 7308, 17944, 198, 6738, 28686, 1330, 551, 2268, 198, 198, 2, 10467, 2151, 17944, 198, 6738, 42463, 1330, 7663, 11, 9515, 6030, 11, 10903, 11, 2558, 198, 198, 2, 4935, 17944, 198, 6738, 4823, 13976, 62, 15042, 13, 1452, 273, ...
3.059406
101
# coding: latin-1 # Flask example: https://realpython.com/flask-by-example-part-1-project-setup/ from flask import Flask from waitress import serve app = Flask(__name__) from functions.date import get_date from functions.connect import connect header = '<html>\n\t<header>\n\t\t<title>\n\t\t\tHome control panel\n\t\...
[ 2, 19617, 25, 3042, 259, 12, 16, 198, 198, 2, 46947, 1672, 25, 3740, 1378, 5305, 29412, 13, 785, 14, 2704, 2093, 12, 1525, 12, 20688, 12, 3911, 12, 16, 12, 16302, 12, 40406, 14, 198, 6738, 42903, 1330, 46947, 198, 6738, 44511, 133...
2.583106
367
# Handlers import json import logging from aiohttp import web def tape_library_handler_wrapper( request, action_name, required_params=None, optional_params=None, skip_lock_check=False, ): """This wrapper performs error handling for the API calls. Raises ------ Multiple exception...
[ 2, 7157, 8116, 198, 198, 11748, 33918, 198, 11748, 18931, 198, 198, 6738, 257, 952, 4023, 1330, 3992, 628, 198, 4299, 9154, 62, 32016, 62, 30281, 62, 48553, 7, 198, 220, 220, 220, 2581, 11, 198, 220, 220, 220, 2223, 62, 3672, 11, ...
1.902194
1,595