content
stringlengths
1
1.04M
input_ids
listlengths
1
774k
ratio_char_token
float64
0.38
22.9
token_count
int64
1
774k
""" MesoNet Authors: Brandon Forys and Dongsheng Xiao, Murphy Lab https://github.com/bf777/MesoNet Licensed under the Creative Commons Attribution 4.0 International License (see LICENSE for details) """ # __init__.py from mesonet.utils import * from mesonet.dlc_predict import predict_dlc from mesonet.predict_regions im...
[ 37811, 198, 44, 274, 78, 7934, 198, 30515, 669, 25, 14328, 376, 652, 82, 290, 28831, 7091, 782, 28249, 11, 14424, 3498, 198, 5450, 1378, 12567, 13, 785, 14, 19881, 29331, 14, 44, 274, 78, 7934, 198, 26656, 15385, 739, 262, 17404, 13...
3.302817
142
# -*- coding: utf-8 -*- #----------------------------------------------------------------------------- # Copyright (c) 2014, Ravi Sharma # # Distributed under the terms of the Lesser GNU General Public License (LGPL) #----------------------------------------------------------------------------- ''' Created on Feb 26, 2...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 10097, 32501, 198, 2, 15069, 357, 66, 8, 1946, 11, 371, 15820, 40196, 198, 2, 198, 2, 4307, 6169, 739, 262, 2846, 286, 262, 12892, 263, 22961, 3611, 5094, 13789, ...
2.948553
622
# # -*- coding: utf-8 -*- import math import random import numpy as np import heapq from io import BytesIO from PIL import Image, ImageOps from server.api.crop_suggestor import CropSuggestorModel from server.api.utils import compress_bg, read_image, nd_deserialize, np_isground, tiling_range, n_dim_iter, \ np_b...
[ 2, 1303, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 11748, 10688, 198, 11748, 4738, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 24575, 80, 198, 198, 6738, 33245, 1330, 2750, 4879, 9399, 198, 6738, 350, 4146, 1330,...
2.386279
1,341
import pylab import tables import math import numpy fig = pylab.figure(2) tr_125 = pylab.loadtxt('../s125/s125-double-shear_totalEnergy') tr_129 = pylab.loadtxt('../s129/s129-double-shear_totalEnergy') tr_130 = pylab.loadtxt('../s130/s130-double-shear_totalEnergy') refTe = tr_125[0,1] pylab.plot(tr_125[:,0], tr_125[...
[ 11748, 279, 2645, 397, 198, 11748, 8893, 198, 11748, 10688, 198, 11748, 299, 32152, 628, 198, 5647, 796, 279, 2645, 397, 13, 26875, 7, 17, 8, 198, 2213, 62, 11623, 796, 279, 2645, 397, 13, 2220, 14116, 10786, 40720, 82, 11623, 14, 8...
2.111111
369
""" A palindromic number reads the same both ways. The largest palindrome made from the product of two 2-digit numbers is 9009 = 91 × 99. Find the largest palindrome made from the product of two 3-digit numbers. """ biggest_number = 0 for i in range(999): for n in range(999): number = i*n if str(number) == str(n...
[ 37811, 198, 32, 6340, 521, 398, 291, 1271, 9743, 262, 976, 1111, 2842, 13, 383, 4387, 6340, 521, 5998, 925, 422, 262, 1720, 286, 734, 362, 12, 27003, 3146, 318, 15897, 24, 796, 10495, 13958, 7388, 13, 198, 16742, 262, 4387, 6340, 52...
3
138
# Copyright 2019 University of Basel, Center for medical Image Analysis and Navigation # # 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 # # U...
[ 2, 15069, 13130, 2059, 286, 6455, 417, 11, 3337, 329, 3315, 7412, 14691, 290, 42115, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 2, 345, 743, 407, 779, 428, 2393, 2845, ...
3.212903
465
#!/usr/bin/python import os from argparse import ArgumentParser import psycopg2.extras import requests from requests.auth import HTTPBasicAuth from ebi_eva_common_pyutils.logger import logging_config from ebi_eva_common_pyutils.metadata_utils import get_metadata_connection_handle from ebi_eva_common_pyutils.pg_utils ...
[ 2, 48443, 14629, 14, 8800, 14, 29412, 198, 11748, 28686, 198, 6738, 1822, 29572, 1330, 45751, 46677, 198, 198, 11748, 17331, 22163, 70, 17, 13, 2302, 8847, 198, 11748, 7007, 198, 6738, 7007, 13, 18439, 1330, 14626, 26416, 30515, 198, 19...
2.754386
228
#!/usr/bin/env python import os import json if __name__ == '__main__': import sys basedir = sys.argv[1] files, replicas = load_files_replicas(basedir) files_path = os.path.join(basedir, 'files.json') with open(files_path, 'w') as ff: ff.write(json.dumps(files, indent=4, sort_keys=True)) ...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 198, 11748, 28686, 198, 11748, 33918, 198, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 198, 220, 220, 220, 1330, 25064, 198, 220, 220, 220, 1912, 343, 796, 25064, 13...
2.342995
207
from flask import render_template, url_for, redirect, flash from flask_login import current_user from .. import db from ..models import User, Tweet from . import user from .forms import TweetForm from ..queries import get_all_tweets, send_tweet, get_user @user.route('/<username>', methods=['GET', 'POST'])
[ 6738, 42903, 1330, 8543, 62, 28243, 11, 19016, 62, 1640, 11, 18941, 11, 7644, 198, 6738, 42903, 62, 38235, 1330, 1459, 62, 7220, 198, 6738, 11485, 1330, 20613, 198, 6738, 11485, 27530, 1330, 11787, 11, 18752, 198, 6738, 764, 1330, 2836,...
3.347826
92
#!/usr/bin/env python from pathlib import Path from setuptools import find_packages, setup packages = find_packages(where="asdf_chunked") packages.append("asdf_chunked.resources") package_dir = { "": "asdf_chunked", "asdf_chunked.resources": "resources", } package_data = {"asdf_chunked.resources": package...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 6738, 3108, 8019, 1330, 10644, 198, 198, 6738, 900, 37623, 10141, 1330, 1064, 62, 43789, 11, 9058, 198, 198, 43789, 796, 1064, 62, 43789, 7, 3003, 2625, 292, 7568, 62, 354, 2954, 276, ...
2.642045
176
import sys from PyQt5.QtWidgets import QMainWindow, QApplication, QWidget, QAction, QTableWidget,QTableWidgetItem,QVBoxLayout from PyQt5.QtGui import QIcon from PyQt5.QtCore import pyqtSlot # @pyqtSlot() # def add_element(self): # des = "HI" # price = 10 # self.tableWidget.insertRow(se...
[ 11748, 25064, 198, 6738, 9485, 48, 83, 20, 13, 48, 83, 54, 312, 11407, 1330, 1195, 13383, 27703, 11, 1195, 23416, 11, 1195, 38300, 11, 1195, 12502, 11, 1195, 10962, 38300, 11, 48, 10962, 38300, 7449, 11, 48, 53, 14253, 32517, 198, 6...
2.291553
367
# Copyright (c) 2017, Oren Kraus All rights reserved. # # Redistribution and use in source and binary forms, with or without modification, # are permitted provided that the following conditions are met: # # 1. Redistributions of source code must retain the above copyright notice, this # list of conditions and the follo...
[ 2, 15069, 357, 66, 8, 2177, 11, 440, 918, 21553, 385, 1439, 2489, 10395, 13, 198, 2, 198, 2, 2297, 396, 3890, 290, 779, 287, 2723, 290, 13934, 5107, 11, 351, 393, 1231, 17613, 11, 198, 2, 389, 10431, 2810, 326, 262, 1708, 3403, ...
3.643357
429
from PIL import Image import requests from io import BytesIO import base64 import os def save_image(src, counter, path): """Method for saving a single image""" cur_dir = os.getcwd() image_root_path = os.path.join(cur_dir, "images") if not os.path.isdir(image_root_path): os.mkdir(image_root_pa...
[ 6738, 350, 4146, 1330, 7412, 198, 11748, 7007, 198, 6738, 33245, 1330, 2750, 4879, 9399, 198, 11748, 2779, 2414, 198, 11748, 28686, 198, 198, 4299, 3613, 62, 9060, 7, 10677, 11, 3753, 11, 3108, 2599, 198, 220, 220, 220, 37227, 17410, ...
2.14841
566
""" Python Expression field, another finite prime field characteristic two definition. field element is defined by bool(Python Expression). This module is reference design for finite field characteristic two. but I recommend that this field should be used only checking Python syntax. """ import logging import operat...
[ 37811, 198, 37906, 41986, 2214, 11, 1194, 27454, 6994, 2214, 16704, 734, 6770, 13, 198, 3245, 5002, 318, 5447, 416, 20512, 7, 37906, 41986, 737, 198, 198, 1212, 8265, 318, 4941, 1486, 329, 27454, 2214, 16704, 734, 13, 198, 4360, 314, ...
2.739933
596
# __init__: let python know this is a package from mpgen import mpgen
[ 2, 220, 11593, 15003, 834, 25, 1309, 21015, 760, 428, 318, 257, 5301, 198, 6738, 29034, 5235, 1330, 29034, 5235, 628, 197 ]
3.318182
22
from flask import Flask, render_template, redirect, jsonify from flask_pymongo import PyMongo from datetime import datetime import json import pandas as pd import os import numpy as np import datetime import csv import pymongo import request # function to save dataframe to collection_name in MongoDB 'wines' ...
[ 6738, 42903, 1330, 46947, 11, 8543, 62, 28243, 11, 18941, 11, 33918, 1958, 198, 6738, 42903, 62, 79, 4948, 25162, 1330, 9485, 44, 25162, 198, 6738, 4818, 8079, 1330, 4818, 8079, 198, 11748, 33918, 198, 11748, 19798, 292, 355, 279, 67, ...
2.825577
2,729
import unittest from docker_image import digest from docker_image import reference
[ 11748, 555, 715, 395, 198, 198, 6738, 36253, 62, 9060, 1330, 16274, 198, 6738, 36253, 62, 9060, 1330, 4941, 628, 198 ]
4.095238
21
import time import sha from pyftpdlib import ftpserver username="user" authorizer = ftpserver.DummyAuthorizer() password = mysha((str(time.time()) + "babble"))[:7] print "user:",username print "password:",password authorizer.add_user(username, password, "./data", perm="elradfmw") #authorizer.add_anonymous(".") ft...
[ 11748, 640, 198, 11748, 427, 64, 198, 6738, 12972, 701, 30094, 8019, 1330, 10117, 862, 18497, 628, 198, 198, 29460, 2625, 7220, 1, 198, 198, 9800, 7509, 796, 10117, 862, 18497, 13, 35, 13513, 13838, 7509, 3419, 198, 198, 28712, 796, 6...
2.871795
195
import os import socket import subprocess import time import signal import sys import struct while True: time.sleep(0.1) main()
[ 11748, 28686, 198, 11748, 17802, 198, 11748, 850, 14681, 198, 11748, 640, 198, 11748, 6737, 198, 11748, 25064, 198, 11748, 2878, 628, 198, 198, 4514, 6407, 25, 198, 220, 220, 220, 640, 13, 42832, 7, 15, 13, 16, 8, 198, 220, 220, 220...
3.021739
46
""" Author: CaptCorpMURICA Project: 100DaysPython File: module1_day07_ranges.py Creation Date: 6/2/2019, 8:55 AM Description: Basic instruction of ranges in python. """ # A range starts with an index of 0 and ends with the declared value. The endpoint of a range in not ...
[ 37811, 198, 220, 220, 220, 6434, 25, 220, 220, 220, 220, 220, 220, 220, 220, 6790, 45680, 44, 4261, 25241, 198, 220, 220, 220, 4935, 25, 220, 220, 220, 220, 220, 220, 220, 1802, 38770, 37906, 198, 220, 220, 220, 9220, 25, 220, 220...
3.177066
593
# -*- coding: utf-8 -*- from .input_argument import InputArgument from .input_option import InputOption def argument(name, description='', required=False, default=None, is_list=False, validator=None): """ Helper function to create a new argument. :param name: The name of the ar...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 6738, 764, 15414, 62, 49140, 1330, 23412, 28100, 1713, 198, 6738, 764, 15414, 62, 18076, 1330, 23412, 19722, 628, 198, 4299, 4578, 7, 3672, 11, 6764, 11639, 3256, 1...
2.809524
798
from django import forms
[ 6738, 42625, 14208, 1330, 5107, 628 ]
4.333333
6
from . import unittest from shapely.algorithms.polylabel import polylabel, Cell from shapely.geometry import LineString, Point, Polygon from shapely.errors import TopologicalError
[ 6738, 764, 1330, 555, 715, 395, 198, 6738, 5485, 306, 13, 282, 7727, 907, 13, 35428, 18242, 1330, 7514, 18242, 11, 12440, 198, 6738, 5485, 306, 13, 469, 15748, 1330, 6910, 10100, 11, 6252, 11, 12280, 14520, 198, 6738, 5485, 306, 13, ...
3.770833
48
import json import unittest import webtest import os from google.appengine.ext import testbed from api.src import main
[ 11748, 33918, 198, 11748, 555, 715, 395, 198, 11748, 3992, 9288, 198, 11748, 28686, 198, 198, 6738, 23645, 13, 1324, 18392, 13, 2302, 1330, 1332, 3077, 628, 198, 6738, 40391, 13, 10677, 1330, 1388, 628, 220, 220, 220, 220, 198, 220, 2...
2.151899
79
import yaml from joblib import load from nltk.corpus import stopwords from nltk.stem.snowball import SnowballStemmer from helpers import preprocess_single_text, load_mapping text = "ki_erstattung_test_topf2.txt Details Activity ki_erstattung_test_topf2.txt Sharing Info. Who has access M General Info. System properties...
[ 11748, 331, 43695, 198, 6738, 1693, 8019, 1330, 3440, 198, 6738, 299, 2528, 74, 13, 10215, 79, 385, 1330, 2245, 10879, 198, 6738, 299, 2528, 74, 13, 927, 13, 82, 2197, 1894, 1330, 7967, 1894, 1273, 368, 647, 198, 6738, 49385, 1330, ...
2.848485
627
#Altere o programa anterior para mostrar no final a soma dos números. n1 = int(input("Digite um número: ")) n2 = int(input("Digite outro número: ")) for i in range(n1 + 1, n2): print(i) for i in range(n2 + 1, n1): print(i) print("Soma dos números: ", i + i)
[ 2, 29161, 567, 267, 1430, 64, 32700, 31215, 749, 20040, 645, 2457, 257, 3870, 64, 23430, 299, 21356, 647, 418, 13, 201, 198, 201, 198, 77, 16, 796, 493, 7, 15414, 7203, 19511, 578, 23781, 299, 21356, 647, 78, 25, 366, 4008, 201, 1...
2.027972
143
# # Provider information sources for `Attitude' - a false horizon display using # accelerometer information. (c) Andrew Flegg 2009 # Released under the Artistic Licence import os.path from math import sin, cos, pi class Dummy: """One of the simplest provide...
[ 2, 198, 2, 32549, 1321, 4237, 329, 4600, 8086, 3984, 6, 532, 257, 3991, 17810, 3359, 1262, 198, 2, 8320, 15635, 1321, 13, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 357, 66, 8, 6858, 12005, 1130, ...
2.507987
313
# эти строки введены для IDE, их нужно закомментировать или удалить """ Список метрик и соответствующих им методов """ metrics = { 'productType': { 'method': getProductType, 'name': 'productType', # данное поле нужно использовать для названия вложенного поля }, 'productColor': { ...
[ 2, 220, 141, 235, 20375, 18849, 220, 21727, 20375, 21169, 25443, 118, 18849, 12466, 110, 38857, 16843, 43666, 16843, 22177, 45035, 12466, 112, 30143, 40623, 33497, 11, 12466, 116, 141, 227, 12466, 121, 35072, 140, 114, 22177, 15166, 12466, ...
1.474488
3,273
import numpy as np import pandas as pd import matplotlib.pyplot as plt import re import time import os from sklearn.svm import SVR import joblib import rdkit from rdkit import Chem from rdkit.Chem import AllChem from rdkit_utils import smiles_dataset from utils import save_dataset model_load = joblib.load('./models...
[ 11748, 299, 32152, 355, 45941, 198, 11748, 19798, 292, 355, 279, 67, 198, 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 198, 11748, 302, 198, 11748, 640, 198, 11748, 28686, 198, 6738, 1341, 35720, 13, 82, 14761, 1330, 311, ...
2.501706
586
# Generated by Django 3.1.12 on 2021-08-13 00:35 from django.db import migrations, models import django.utils.timezone
[ 2, 2980, 515, 416, 37770, 513, 13, 16, 13, 1065, 319, 33448, 12, 2919, 12, 1485, 3571, 25, 2327, 198, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 11, 4981, 198, 11748, 42625, 14208, 13, 26791, 13, 2435, 11340, 628 ]
2.95122
41
r""" Six Vertex Model """ from sage.structure.parent import Parent from sage.structure.unique_representation import UniqueRepresentation from sage.structure.list_clone import ClonableArray from sage.categories.finite_enumerated_sets import FiniteEnumeratedSets from sage.combinat.combinatorial_map import combinatorial_...
[ 81, 37811, 198, 21447, 4643, 16886, 9104, 198, 37811, 198, 198, 6738, 35021, 13, 301, 5620, 13, 8000, 1330, 16774, 198, 6738, 35021, 13, 301, 5620, 13, 34642, 62, 15603, 341, 1330, 30015, 40171, 341, 198, 6738, 35021, 13, 301, 5620, 1...
1.792524
14,286
import numpy as np import random import scipy
[ 11748, 299, 32152, 355, 45941, 198, 11748, 4738, 220, 198, 11748, 629, 541, 88, 628, 198 ]
3.0625
16
from builtins import object from cloudmesh_base.base import HEADING from cloudmesh_pbs.database import pbs_db, pbs_shelve import os
[ 6738, 3170, 1040, 1330, 2134, 198, 6738, 6279, 76, 5069, 62, 8692, 13, 8692, 1330, 39837, 2751, 198, 6738, 6279, 76, 5069, 62, 79, 1443, 13, 48806, 1330, 279, 1443, 62, 9945, 11, 279, 1443, 62, 82, 2978, 303, 198, 11748, 28686, 198 ...
3.069767
43
# -*- coding: utf-8 -*- """Unit tests for Response class""" import pytest from ga4gh.refget.http.response import Response from ga4gh.refget.http.status_codes import StatusCodes as SC from ga4gh.refget.config.constants import CONTENT_TYPE_JSON_REFGET_VND, \ CONTENT_TYPE_TEXT_REFGET_VND testdata_body = [ ("ACGT...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 26453, 5254, 329, 18261, 1398, 37811, 198, 198, 11748, 12972, 9288, 198, 6738, 31986, 19, 456, 13, 5420, 1136, 13, 4023, 13, 26209, 1330, 18261, 198, 6738, 31986, ...
2.375984
508
#!/usr/bin/env python import time import pygame from pygame.locals import * CHECK_LATCHES_INTERVAL = 100 CHECK_LATCHES = pygame.USEREVENT + 1 if __name__ == '__main__': main()
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 198, 11748, 640, 198, 198, 11748, 12972, 6057, 198, 6738, 12972, 6057, 13, 17946, 874, 1330, 1635, 198, 198, 50084, 62, 43, 11417, 1546, 62, 41358, 23428, 796, 1802, 198, 50084, 62, 43...
2.534247
73
from django.shortcuts import redirect
[ 6738, 42625, 14208, 13, 19509, 23779, 1330, 18941, 628 ]
4.333333
9
import numpy as np # import _proj as proj_lib import scipy.sparse as sparse import scipy.sparse.linalg as splinalg ZERO = "f" POS = "l" SOC = "q" PSD = "s" EXP = "ep" EXP_DUAL = "ed" POWER = "p" # The ordering of CONES matches SCS. CONES = [ZERO, POS, SOC, PSD, EXP, EXP_DUAL, POWER] def parse_cone_dict(cone_dict): ...
[ 11748, 299, 32152, 355, 45941, 198, 2, 1330, 4808, 1676, 73, 355, 386, 73, 62, 8019, 198, 11748, 629, 541, 88, 13, 82, 29572, 355, 29877, 198, 11748, 629, 541, 88, 13, 82, 29572, 13, 75, 1292, 70, 355, 4328, 1292, 70, 198, 198, ...
1.908954
5,327
from os import path from setuptools import setup, find_packages here = path.abspath(path.dirname(__file__)) with open(path.join(here, 'README.md'), encoding='utf-8') as f: long_description = f.read() setup( name='Flask-WTF-Decorators', version='0.1.2', license='MIT', url='https://github.com/simp...
[ 6738, 28686, 1330, 3108, 198, 6738, 900, 37623, 10141, 1330, 9058, 11, 1064, 62, 43789, 628, 198, 1456, 796, 3108, 13, 397, 2777, 776, 7, 6978, 13, 15908, 3672, 7, 834, 7753, 834, 4008, 198, 4480, 1280, 7, 6978, 13, 22179, 7, 1456, ...
2.524631
406
from astrolib.solar_system.celestial_objects import CelestialObject from astrolib.solar_system.motion_models import OriginFixedMotionModel from astrolib.solar_system.orientation_models import InertiallyFixedOrientationModel Sun = CelestialObject(OriginFixedMotionModel(),InertiallyFixedOrientationModel()) Mercury = Cel...
[ 6738, 6468, 3225, 571, 13, 82, 6192, 62, 10057, 13, 5276, 21711, 62, 48205, 1330, 37231, 10267, 198, 6738, 6468, 3225, 571, 13, 82, 6192, 62, 10057, 13, 38714, 62, 27530, 1330, 19349, 13715, 45740, 17633, 198, 6738, 6468, 3225, 571, 1...
3.948339
271
#python program - make simple calculator print("1. adiition") print("2. subtraction") print("3. multiplication") print("4. division") print("5. exit") choice = int(input("enter your choice: ")) if (choice>=1 and choice<=4): print("enter two numbers: ") num1 = int(input()) num2 = int(input()) if choice ...
[ 2, 29412, 1430, 532, 787, 2829, 28260, 198, 198, 4798, 7203, 16, 13, 512, 72, 653, 4943, 198, 4798, 7203, 17, 13, 13284, 7861, 4943, 198, 4798, 7203, 18, 13, 48473, 4943, 198, 4798, 7203, 19, 13, 7297, 4943, 198, 4798, 7203, 20, 1...
2.042857
350
""" Code for a database of MOA light curves including non-microlensing, single lensing, and binary lensing collcetions. """ from ramjet.data_interface.moa_data_interface import MoaDataInterface from ramjet.photometric_database.derived.moa_survey_light_curve_collection import MoaSurveyLightCurveCollection from ramjet.ph...
[ 37811, 198, 10669, 329, 257, 6831, 286, 13070, 32, 1657, 23759, 1390, 1729, 12, 24055, 75, 26426, 11, 2060, 10317, 278, 11, 290, 13934, 10317, 278, 2927, 66, 316, 507, 13, 198, 37811, 198, 6738, 15770, 31173, 13, 7890, 62, 39994, 13, ...
3.411504
226
valor = str(input('Valor para saque: ').strip()) last = valor[len(valor) - 1] valor = int(valor) if last == '1': valor += 1 print(f'o valor precisou ser corrigido para R${valor},00 pois não há notas de R$ 1,00 disponíveis') print() tot100 = tot50 = tot20 = tot10 = tot5 = tot2 = 0 while True: ...
[ 2100, 273, 796, 965, 7, 15414, 10786, 7762, 273, 31215, 473, 4188, 25, 705, 737, 36311, 28955, 201, 198, 12957, 796, 1188, 273, 58, 11925, 7, 2100, 273, 8, 532, 352, 60, 201, 198, 2100, 273, 796, 493, 7, 2100, 273, 8, 201, 198, ...
1.703784
925
#!/usr/bin/python3 ''' Module for Whitelisting Access Points ''' # -*- coding: utf-8 -*- # (C) Copyright 2020 Hewlett Packard Enterprise Development LP. # # 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 th...
[ 198, 2, 48443, 14629, 14, 8800, 14, 29412, 18, 198, 7061, 6, 198, 26796, 329, 13183, 417, 9665, 8798, 11045, 198, 7061, 6, 198, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 2, 357, 34, 8, 15069, 12131...
2.551959
1,174
from configuration import * from features.base import BaseFeature, Feature, ConstantFeature from utils import _pprint, get_single_column from pandas import concat, DataFrame, Series, Index import numpy as np
[ 6738, 8398, 1330, 1635, 198, 6738, 3033, 13, 8692, 1330, 7308, 38816, 11, 27018, 11, 20217, 38816, 198, 6738, 3384, 4487, 1330, 4808, 381, 22272, 11, 651, 62, 29762, 62, 28665, 198, 6738, 19798, 292, 1330, 1673, 265, 11, 6060, 19778, ...
3.944444
54
# coding: utf-8 from django import forms from .models import Transaction from .models import Customer
[ 2, 19617, 25, 3384, 69, 12, 23, 198, 6738, 42625, 14208, 1330, 5107, 198, 6738, 764, 27530, 1330, 45389, 198, 6738, 764, 27530, 1330, 22092, 628 ]
3.961538
26
import wx from guikit.plugins import PluginBase, Tab
[ 11748, 266, 87, 198, 198, 6738, 915, 1134, 270, 13, 37390, 1330, 42636, 14881, 11, 16904, 628 ]
3.235294
17
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from .. import...
[ 2, 19617, 28, 40477, 12, 23, 198, 2, 17202, 39410, 25, 428, 2393, 373, 7560, 416, 262, 21624, 12994, 24118, 687, 10290, 357, 27110, 5235, 8, 16984, 13, 17202, 198, 2, 17202, 2141, 407, 4370, 416, 1021, 4556, 345, 821, 1728, 345, 760...
3.496503
143
from sklearn.preprocessing import MinMaxScaler from numpy import loadtxt import numpy as np import matplotlib as plt import pandas as pd from numpy import reshape data = loadtxt('data-time.txt') print(data) #redata = np.reshape(-1,1) #print(redata) scaler = MinMaxScaler() print(scaler.fit(data)) MinMaxScaler(copy=Tru...
[ 6738, 1341, 35720, 13, 3866, 36948, 1330, 1855, 11518, 3351, 36213, 198, 6738, 299, 32152, 1330, 3440, 14116, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 2603, 29487, 8019, 355, 458, 83, 220, 198, 11748, 19798, 292, 355, 279, 67, 19...
2.59893
187
#Copyright(c) 2015, Nathan Miller # The Proving Ground, http://theprovingground.org #Edited and modified by Mehmet Cenk Tunaboylu, to better suit his needs. Removed boundary curves extraction. Added department extraction. import clr # Import RevitAPI clr.AddReference("RevitAPI") import Autodesk from Autodesk...
[ 2, 15269, 7, 66, 8, 1853, 11, 18106, 7920, 201, 198, 2, 383, 1041, 1075, 13706, 11, 2638, 1378, 1169, 1676, 1075, 2833, 13, 2398, 201, 198, 2, 45882, 290, 9518, 416, 37070, 4164, 327, 268, 74, 13932, 397, 726, 2290, 11, 284, 1365,...
2.511848
1,477
#!python3 # -*- coding: utf-8 -*- # author: yinkaisheng@foxmail.com import os import sys import json import ctypes import pickle import shutil # import socket import zipfile import datetime from typing import Any, Callable, Iterator, Dict, List, Tuple _SelfFileName = os.path.split(__file__)[1] def getStrBetween(...
[ 2, 0, 29412, 18, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 1772, 25, 331, 676, 15152, 31753, 31, 12792, 4529, 13, 785, 198, 11748, 28686, 198, 11748, 25064, 198, 11748, 33918, 198, 11748, 269, 19199, 1...
2.036526
5,147
import torch
[ 11748, 28034, 628 ]
4.666667
3
# -*- coding: utf-8 -*- # Copyright 2020 The PsiZ Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless r...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 15069, 12131, 383, 350, 13396, 57, 46665, 13, 1439, 6923, 33876, 13, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, ...
3.334347
329
from discord.ext import commands from loguru import logger from mainDiscord import embedCreator
[ 6738, 36446, 13, 2302, 1330, 9729, 198, 6738, 2604, 14717, 1330, 49706, 198, 6738, 1388, 15642, 585, 1330, 11525, 16719, 273, 628, 198 ]
4.26087
23
exclude_patterns = ['_build'] latex_elements = { 'maxlistdepth': '10', }
[ 1069, 9152, 62, 33279, 82, 796, 37250, 62, 11249, 20520, 198, 198, 17660, 87, 62, 68, 3639, 796, 1391, 198, 220, 220, 220, 705, 9806, 4868, 18053, 10354, 705, 940, 3256, 198, 92, 198 ]
2.294118
34
# -*- coding: utf-8 -*- # Generated by Django 1.11.29 on 2021-07-11 04:08 from __future__ import unicode_literals from django.db import migrations, models
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 2980, 515, 416, 37770, 352, 13, 1157, 13, 1959, 319, 33448, 12, 2998, 12, 1157, 8702, 25, 2919, 198, 6738, 11593, 37443, 834, 1330, 28000, 1098, 62, 17201, 874, 198...
2.754386
57
#!/usr/bin/env python # # Copyright 2013 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. # # Copyright (c) 2014 Intel Corporation. All rights reserved. # Use of this source code is governed by a BSD-style license that can b...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 198, 2, 15069, 2211, 383, 18255, 1505, 46665, 13, 1439, 2489, 10395, 13, 198, 2, 5765, 286, 428, 2723, 2438, 318, 21825, 416, 257, 347, 10305, 12, 7635, 5964, 326, 460, 307, 198, ...
2.8875
400
from setuptools import setup with open("README.md", "r", encoding="utf-8") as fh: long_description = fh.read() setup( name="enhanced", version="4.0.0", description="Enhanced interactions for interactions.py", long_description=long_description, long_description_content_type="text/markdown", ...
[ 6738, 900, 37623, 10141, 1330, 9058, 198, 198, 4480, 1280, 7203, 15675, 11682, 13, 9132, 1600, 366, 81, 1600, 21004, 2625, 40477, 12, 23, 4943, 355, 277, 71, 25, 198, 220, 220, 220, 890, 62, 11213, 796, 277, 71, 13, 961, 3419, 198, ...
2.567823
317
import itertools from typing import List, Dict from .config import PullRequestsConstants from .domain import PullRequest, PullRequestSort, PullRequestStatus, PullRequestsOverview, PullRequestException from .notification import send_notification_pr from ..common.config import get_logger from ..common.icons import Icon,...
[ 11748, 340, 861, 10141, 198, 6738, 19720, 1330, 7343, 11, 360, 713, 198, 198, 6738, 764, 11250, 1330, 21429, 16844, 3558, 34184, 1187, 198, 6738, 764, 27830, 1330, 21429, 18453, 11, 21429, 18453, 42758, 11, 21429, 18453, 19580, 11, 21429,...
3.362416
149
# -*- coding:utf-8 -*- from __future__ import unicode_literals from django.test import SimpleTestCase from yepes.test_mixins import TemplateTagsMixin from marchena.modules.posts.templatetags.posts import ( CalendarTag, GetArchivesTag, GetCategoryTag, GetCategoriesTag, GetNextPostTag, GetPopu...
[ 2, 532, 9, 12, 19617, 25, 40477, 12, 23, 532, 9, 12, 198, 198, 6738, 11593, 37443, 834, 1330, 28000, 1098, 62, 17201, 874, 198, 198, 6738, 42625, 14208, 13, 9288, 1330, 17427, 14402, 20448, 198, 198, 6738, 331, 538, 274, 13, 9288, ...
2.515625
256
"""DeepNeuro: A deep learning python package for neuroimaging data. Created by the Quantitative Tumor Imaging Lab at the Martinos Center (Harvard-MIT Program in Health, Sciences, and Technology / Massachussets General Hospital). """ DOCLINES = __doc__.split("\n") import sys from setuptools import setup, find_pack...
[ 37811, 29744, 8199, 1434, 25, 317, 2769, 4673, 21015, 5301, 329, 7669, 320, 3039, 1366, 13, 198, 198, 41972, 416, 262, 16972, 12464, 309, 388, 273, 48656, 3498, 379, 262, 5780, 418, 3337, 220, 198, 7, 13587, 10187, 12, 36393, 6118, 28...
2.367347
735
from coralquant.models.odl_model import BS_SZ50_Stocks import baostock as bs import pandas as pd from sqlalchemy import String from coralquant.database import engine from coralquant.settings import CQ_Config def get_sz50_stocks(): """ 获取上证50成分股数据 """ #删除数据 BS_SZ50_Stocks.del_all_data() # 登陆系统 ...
[ 6738, 29537, 40972, 13, 27530, 13, 375, 75, 62, 19849, 1330, 24218, 62, 50, 57, 1120, 62, 1273, 3320, 198, 11748, 26605, 455, 735, 355, 275, 82, 198, 11748, 19798, 292, 355, 279, 67, 198, 6738, 44161, 282, 26599, 1330, 10903, 198, 6...
1.80791
531
""" The :mod:`pyswarms.utils.search` module implements various techniques in hyperparameter value optimization. """ from .grid_search import GridSearch from .random_search import RandomSearch __all__ = ["GridSearch", "RandomSearch"]
[ 37811, 198, 464, 1058, 4666, 25, 63, 79, 893, 5767, 907, 13, 26791, 13, 12947, 63, 8265, 23986, 2972, 7605, 287, 198, 49229, 17143, 2357, 1988, 23989, 13, 198, 37811, 198, 198, 6738, 764, 25928, 62, 12947, 1330, 24846, 18243, 198, 673...
3.671875
64
# ------------------------------------------------------------------------------- # Copyright 2018-2020, Christian Pilato <christian.pilato@polimi.it> # # 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 Lic...
[ 2, 16529, 24305, 198, 2, 15069, 2864, 12, 42334, 11, 4302, 12693, 5549, 1279, 43533, 666, 13, 79, 346, 5549, 31, 16104, 25236, 13, 270, 29, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 341...
4.555556
171
heatmap_1_r = imresize(heatmap_1, (50,80)).astype("float32") heatmap_2_r = imresize(heatmap_2, (50,80)).astype("float32") heatmap_3_r = imresize(heatmap_3, (50,80)).astype("float32") heatmap_geom_avg = np.power(heatmap_1_r * heatmap_2_r * heatmap_3_r, 0.333) display_img_and_heatmap("dog.jpg", heatmap_geom_avg)
[ 25080, 8899, 62, 16, 62, 81, 796, 545, 411, 1096, 7, 25080, 8899, 62, 16, 11, 357, 1120, 11, 1795, 29720, 459, 2981, 7203, 22468, 2624, 4943, 198, 25080, 8899, 62, 17, 62, 81, 796, 545, 411, 1096, 7, 25080, 8899, 62, 17, 11, 357...
2.129252
147
import codecs import time import cPickle import gzip import random import os import math import modules.token as tk import modules.perceptron as perceptron import modules.lmi as lmi from modules.evaluation import evaluate from modules.affixes import find_affixes # save the model (weight vectors) to a file: ...
[ 11748, 40481, 82, 198, 11748, 640, 198, 11748, 269, 31686, 293, 198, 11748, 308, 13344, 198, 11748, 4738, 198, 11748, 28686, 198, 11748, 10688, 198, 198, 11748, 13103, 13, 30001, 355, 256, 74, 198, 11748, 13103, 13, 525, 984, 1313, 355,...
2.463158
1,520
# Copyright 2021 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). from dataclasses import dataclass from pants.engine.internals.scheduler import Scheduler @dataclass(frozen=True) class BootstrapScheduler: """A Scheduler that has been configured wi...
[ 2, 15069, 33448, 41689, 1628, 20420, 357, 3826, 27342, 9865, 3843, 20673, 13, 9132, 737, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 3826, 38559, 24290, 737, 198, 198, 6738, 4818, 330, 28958, 1330, 4818, 330, 3...
3.509091
110
from django import template from django.utils.html import format_html register = template.Library() @register.inclusion_tag('django_bootstrap_dynamic_formsets/dynamic_formsets.html') @register.inclusion_tag('django_bootstrap_dynamic_formsets/dynamic_formsets_js.html',takes_context=True)
[ 6738, 42625, 14208, 1330, 11055, 198, 6738, 42625, 14208, 13, 26791, 13, 6494, 1330, 5794, 62, 6494, 198, 198, 30238, 796, 11055, 13, 23377, 3419, 198, 198, 31, 30238, 13, 259, 4717, 62, 12985, 10786, 28241, 14208, 62, 18769, 26418, 62,...
3.063158
95
# Generated by the protocol buffer compiler. DO NOT EDIT! # source: acl.proto from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection from google.protobuf import descriptor_pb2 # @@protoc_insertion_point(imports) imp...
[ 2, 2980, 515, 416, 262, 8435, 11876, 17050, 13, 220, 8410, 5626, 48483, 0, 198, 2, 2723, 25, 257, 565, 13, 1676, 1462, 198, 198, 6738, 23645, 13, 11235, 672, 3046, 1330, 43087, 355, 4808, 20147, 1968, 273, 198, 6738, 23645, 13, 1123...
2.269338
8,636
""" Generate certain RST files used in documentation. """ from __future__ import print_function import sys import argparse from collections import OrderedDict, defaultdict import os from os.path import join, exists from os import mkdir import pandas import logomaker from matplotlib import pyplot from mhcflurry.downl...
[ 37811, 198, 8645, 378, 1728, 371, 2257, 3696, 973, 287, 10314, 13, 198, 37811, 198, 6738, 11593, 37443, 834, 1330, 3601, 62, 8818, 198, 11748, 25064, 198, 11748, 1822, 29572, 198, 6738, 17268, 1330, 14230, 1068, 35, 713, 11, 4277, 11600...
2.500678
737
# face_detector_google3.py # # This version expects a source folder containing folders of images, # as you get with the LFW distribution. # Each folder is named for one person and that folder should contain # only photos of that person. # # Environment Variable: GOOGLE_APPLICATION_CREDENTIALS # C:\pyDev\__My Scripts\f...
[ 2, 1986, 62, 15255, 9250, 62, 13297, 18, 13, 9078, 198, 2, 198, 2, 770, 2196, 13423, 257, 2723, 9483, 7268, 24512, 286, 4263, 11, 198, 2, 355, 345, 651, 351, 262, 406, 24160, 6082, 13, 198, 2, 5501, 9483, 318, 3706, 329, 530, 10...
2.552983
9,673
from pii_crypt.pii_crypt import PIICrypt
[ 6738, 279, 4178, 62, 29609, 13, 79, 4178, 62, 29609, 1330, 30434, 2149, 6012, 198 ]
2.733333
15
from universal import process, clean_csv, add_trans_chunk import sys import re # The infile is the system trancript. infile = sys.argv[1] # Using the system output name, the relevant universal format and full transcripts are gathered. filename_prep = re.search(r"(?<=system-output\/)(.*?)(?=\.txt)", infile).group(0) o...
[ 6738, 10112, 1330, 1429, 11, 3424, 62, 40664, 11, 751, 62, 7645, 62, 354, 2954, 198, 11748, 25064, 198, 11748, 302, 198, 198, 2, 383, 1167, 576, 318, 262, 1080, 491, 1192, 1968, 13, 198, 259, 7753, 796, 25064, 13, 853, 85, 58, 16,...
2.594128
579
/home/sheldon/anaconda3/lib/python3.6/tokenize.py
[ 14, 11195, 14, 7091, 25900, 14, 272, 330, 13533, 18, 14, 8019, 14, 29412, 18, 13, 21, 14, 30001, 1096, 13, 9078 ]
2.227273
22
import pytest import copy from pyconcrete import rebar @pytest.fixture @pytest.fixture @pytest.fixture # def test_real_length(r1, lr1, ur1): # assert r1.real_length == 5 # assert lr1.real_length == 200 # assert ur1.real_length == 250
[ 11748, 12972, 9288, 198, 11748, 4866, 198, 198, 6738, 12972, 1102, 38669, 1330, 3405, 283, 628, 198, 31, 9078, 9288, 13, 69, 9602, 628, 198, 31, 9078, 9288, 13, 69, 9602, 628, 198, 31, 9078, 9288, 13, 69, 9602, 628, 628, 628, 628, ...
2.368421
114
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'C:\Users\Victor\Dropbox\DFR\film2dose\qt_ui\edit_grid.ui' # # Created: Tue Sep 29 14:53:43 2015 # by: pyside-uic 0.2.15 running on PySide 1.2.2 # # WARNING! All changes made in this file will be lost! from PySide import QtCore, QtGui
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 2, 5178, 7822, 7560, 422, 3555, 334, 72, 2393, 705, 34, 7479, 14490, 59, 21944, 273, 59, 26932, 3524, 59, 8068, 49, 59, 26240, 17, 34436, 59, 39568, 62, 9019, 5...
2.56
125
#------------------------------------------------------------------------------- # Name: mwts_makedat # Purpose: mwts dat file creation # # Author: isken # # Created: 28/09/2011 # Copyright: (c) isken 2011 # Licence: <your licence> #-------------------------------------------------------------...
[ 2, 10097, 24305, 198, 2, 6530, 25, 220, 220, 220, 220, 220, 220, 220, 285, 86, 912, 62, 76, 4335, 265, 198, 2, 32039, 25, 220, 220, 220, 220, 285, 86, 912, 4818, 2393, 6282, 198, 2, 198, 2, 6434, 25, 220, 220, 220, 220, 220, ...
2.139221
12,728
# --- # jupyter: # jupytext: # formats: ipynb,py:percent # text_representation: # extension: .py # format_name: percent # format_version: '1.3' # jupytext_version: 1.13.7 # kernelspec: # display_name: Python [conda env:bandit_38] # language: python # name: conda-env-bandi...
[ 2, 11420, 198, 2, 474, 929, 88, 353, 25, 198, 2, 220, 220, 474, 929, 88, 5239, 25, 198, 2, 220, 220, 220, 220, 17519, 25, 20966, 2047, 65, 11, 9078, 25, 25067, 198, 2, 220, 220, 220, 220, 2420, 62, 15603, 341, 25, 198, 2, 22...
2.285
400
import random level1 = "simple operations with numbers 2-9" level2 = "integral squares of 11-29" message = f"Which level do you want? Enter a number:\n1 - {level1}\n2 - {level2}\n " user_choice = choose_level(input(message)) while user_choice == "Incorrect format.": print(user_choice) user_choice = choose_...
[ 11748, 4738, 628, 628, 198, 198, 5715, 16, 796, 366, 36439, 4560, 351, 3146, 362, 12, 24, 1, 198, 5715, 17, 796, 366, 18908, 1373, 24438, 286, 1367, 12, 1959, 1, 198, 20500, 796, 277, 1, 13828, 1241, 466, 345, 765, 30, 6062, 257, ...
2.730496
282
import gc import mock import pytest import pygear from . import noop_serializer @pytest.fixture
[ 11748, 308, 66, 198, 198, 11748, 15290, 198, 11748, 12972, 9288, 198, 11748, 12972, 31763, 198, 198, 6738, 764, 1330, 645, 404, 62, 46911, 7509, 628, 198, 31, 9078, 9288, 13, 69, 9602, 628, 628, 628, 628, 628, 628, 628, 198 ]
2.780488
41
import unittest from happyentropy import vocab if __name__ == '__main__': unittest.main()
[ 11748, 555, 715, 395, 198, 6738, 3772, 298, 28338, 1330, 12776, 397, 198, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 198, 220, 555, 715, 395, 13, 12417, 3419, 198 ]
2.818182
33
import os import sys import importlib.util from typing import Any, Callable, Tuple from collections import defaultdict """ PLANNING So I want the plugin manager to work really similar to how the hook system in Wordpress works: https://developer.wordpress.org/plugins/hooks/ Thats because I already have a lot of exper...
[ 11748, 28686, 198, 11748, 25064, 198, 11748, 1330, 8019, 13, 22602, 198, 198, 6738, 19720, 1330, 4377, 11, 4889, 540, 11, 309, 29291, 198, 6738, 17268, 1330, 4277, 11600, 198, 198, 37811, 198, 6489, 1565, 15871, 198, 198, 2396, 314, 765...
3.070899
3,780
""" """ import argparse import os import h5py import keras.backend.tensorflow_backend as ktf import tensorflow as tf from applications.config import get_siamese_config from applications.siamesenet import run_net from core.data import build_siamese_data, load_siamese_data from core.util import get_session # add dire...
[ 37811, 198, 37811, 198, 198, 11748, 1822, 29572, 198, 11748, 28686, 198, 198, 11748, 289, 20, 9078, 198, 11748, 41927, 292, 13, 1891, 437, 13, 83, 22854, 11125, 62, 1891, 437, 355, 479, 27110, 198, 11748, 11192, 273, 11125, 355, 48700, ...
2.864458
332
# Copyright (c) 2017-2018 CRS4 # # 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, modify, merge, publish, distribut...
[ 2, 15069, 357, 66, 8, 2177, 12, 7908, 327, 6998, 19, 198, 2, 198, 2, 2448, 3411, 318, 29376, 7520, 11, 1479, 286, 3877, 11, 284, 597, 1048, 16727, 257, 4866, 286, 198, 2, 428, 3788, 290, 3917, 10314, 3696, 357, 1169, 366, 25423, ...
2.863147
928
from __future__ import absolute_import from django.core.urlresolvers import reverse from django.utils.http import urlencode from django.http import HttpResponseRedirect from sentry.integrations.pipeline import IntegrationPipeline from sentry.web.frontend.base import BaseView from sentry.models import Organization
[ 6738, 11593, 37443, 834, 1330, 4112, 62, 11748, 198, 198, 6738, 42625, 14208, 13, 7295, 13, 6371, 411, 349, 690, 1330, 9575, 198, 6738, 42625, 14208, 13, 26791, 13, 4023, 1330, 2956, 11925, 8189, 198, 6738, 42625, 14208, 13, 4023, 1330,...
3.666667
87
lis=[(1,2,3),[1,2],['a','hit','less']] ils=[x for i in lis for x in i] print(ils)
[ 27999, 41888, 7, 16, 11, 17, 11, 18, 828, 58, 16, 11, 17, 4357, 17816, 64, 41707, 17945, 41707, 1203, 6, 11907, 201, 198, 201, 198, 201, 198, 4487, 41888, 87, 329, 1312, 287, 300, 271, 329, 2124, 287, 1312, 60, 220, 201, 198, 47...
1.8
50
from PyPDF2 import PdfFileReader, PdfFileWriter file1 = open('pdf1.pdf','rb') file2 = open('output.pdf','wb') filer = PdfFileReader(file1) filew = PdfFileWriter() #Cloning PDF reader with its properties ; see notes to see other ways to do this try: filew.cloneDocumentFromReader(filer) except Exception as e: print('N...
[ 6738, 9485, 20456, 17, 1330, 350, 7568, 8979, 33634, 11, 350, 7568, 8979, 34379, 198, 198, 7753, 16, 796, 1280, 10786, 12315, 16, 13, 12315, 41707, 26145, 11537, 198, 7753, 17, 796, 1280, 10786, 22915, 13, 12315, 41707, 39346, 11537, 19...
2.665782
754
import unittest import commentjson
[ 11748, 555, 715, 395, 198, 198, 11748, 2912, 17752, 628 ]
3.7
10
import discord # type: ignore from discord.ext import commands # type: ignore from discord.commands import permissions # type: ignore from utils import guild_ids #''' #''' ''' def custom_check(): print("Check!") print((ctx.channel.permissions_for(ctx.guild.me)).send_messages) return (ctx.channel.permi...
[ 11748, 36446, 220, 1303, 2099, 25, 8856, 198, 6738, 36446, 13, 2302, 1330, 9729, 220, 1303, 2099, 25, 8856, 198, 6738, 36446, 13, 9503, 1746, 1330, 21627, 220, 1303, 2099, 25, 8856, 198, 198, 6738, 3384, 4487, 1330, 19806, 62, 2340, 1...
2.764192
229
from typing import Any, Dict, Optional import base64 import json import logging import os from shlex import quote as shq from gear.cloud_config import get_global_config from ....batch_configuration import (DOCKER_ROOT_IMAGE, DOCKER_PREFIX, DEFAULT_NAMESPACE, INTERNAL_GATEWAY_IP) f...
[ 6738, 19720, 1330, 4377, 11, 360, 713, 11, 32233, 198, 11748, 2779, 2414, 198, 11748, 33918, 198, 11748, 18931, 198, 11748, 28686, 198, 6738, 427, 2588, 1330, 9577, 355, 427, 80, 198, 198, 6738, 7733, 13, 17721, 62, 11250, 1330, 651, ...
2.687023
262
# coding: utf-8 """ AVACloud API 1.17.3 AVACloud API specification # noqa: E501 OpenAPI spec version: 1.17.3 Generated by: https://github.com/swagger-api/swagger-codegen.git """ import pprint import re # noqa: F401 import six class STLBReferenceDto(object): """NOTE: This class is auto...
[ 2, 19617, 25, 3384, 69, 12, 23, 198, 198, 37811, 198, 220, 220, 220, 14661, 2246, 75, 2778, 7824, 352, 13, 1558, 13, 18, 628, 220, 220, 220, 14661, 2246, 75, 2778, 7824, 20855, 220, 1303, 645, 20402, 25, 412, 33548, 628, 220, 220,...
2.267344
3,344
import aiodownload from aiodownload.example import logger if __name__ == '__main__': main()
[ 11748, 257, 2101, 593, 2220, 198, 6738, 257, 2101, 593, 2220, 13, 20688, 1330, 49706, 628, 628, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 198, 220, 220, 220, 1388, 3419, 198 ]
2.857143
35
# Aula 16 - Vaiaveis compostas: Tuplas lanche = ('hamburger', 'suco', 'pizza', 'pudim') # tupla criada, pode ser criada sem parenteses np python 3 print(lanche) # mostra a tupla em parenteses e os seus elementos print(lanche[1]) # mostra o elemento 1 da tupla print(lanche[-1]) # mostra o elemento -1 da tupla # Tu...
[ 2, 317, 4712, 1467, 532, 17668, 544, 303, 271, 36541, 292, 25, 16749, 489, 292, 628, 198, 75, 6362, 796, 19203, 2763, 6236, 1362, 3256, 705, 2385, 1073, 3256, 705, 79, 9990, 3256, 705, 79, 463, 320, 11537, 220, 1303, 12777, 489, 64,...
2.507897
1,203
VERSION="1.9.4" LOGLEVEL = "INFO"
[ 198, 198, 43717, 2625, 16, 13, 24, 13, 19, 1, 198, 25294, 2538, 18697, 796, 366, 10778, 1 ]
1.944444
18
"""Constants for Airly integration.""" ATTR_API_ADVICE = "ADVICE" ATTR_API_CAQI = "CAQI" ATTR_API_CAQI_DESCRIPTION = "DESCRIPTION" ATTR_API_CAQI_LEVEL = "LEVEL" ATTR_API_HUMIDITY = "HUMIDITY" ATTR_API_PM1 = "PM1" ATTR_API_PM10 = "PM10" ATTR_API_PM10_LIMIT = "PM10_LIMIT" ATTR_API_PM10_PERCENT = "PM10_PERCENT" ATTR_API_P...
[ 37811, 34184, 1187, 329, 3701, 306, 11812, 526, 15931, 198, 1404, 5446, 62, 17614, 62, 2885, 27389, 796, 366, 2885, 27389, 1, 198, 1404, 5446, 62, 17614, 62, 8141, 48, 40, 796, 366, 8141, 48, 40, 1, 198, 1404, 5446, 62, 17614, 62, ...
2.083333
324
from typing import List, Optional from dataclasses import dataclass @dataclass @dataclass @dataclass @dataclass
[ 6738, 19720, 1330, 7343, 11, 32233, 198, 6738, 4818, 330, 28958, 1330, 4818, 330, 31172, 628, 198, 31, 19608, 330, 31172, 628, 198, 31, 19608, 330, 31172, 628, 198, 31, 19608, 330, 31172, 628, 198, 31, 19608, 330, 31172 ]
3.051282
39
import json import api import pymongo import spur from api.common import (check, InternalException, safe_fail, validate, WebException) from voluptuous import Length, Required, Schema server_schema = Schema( { Required("name"): check( ("Name must be a reasonable ...
[ 11748, 33918, 198, 198, 11748, 40391, 198, 11748, 279, 4948, 25162, 198, 11748, 26724, 198, 6738, 40391, 13, 11321, 1330, 357, 9122, 11, 18628, 16922, 11, 3338, 62, 32165, 11, 26571, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 22...
2.422416
4,131
maxn = 10000 isprime = [False] * 2 + [True] * maxn for i in range(2, maxn): if isprime[i]: j = i*i while j < maxn: isprime[j] = False j += i for a in range(1000, 10000): if isprime[a]: code = encode(a) for inc in range(1, 4500): b = a + inc c = a + inc * 2 if c >= 10000: break if isprim...
[ 9806, 77, 796, 33028, 198, 271, 35505, 796, 685, 25101, 60, 1635, 362, 1343, 685, 17821, 60, 1635, 3509, 77, 198, 1640, 1312, 287, 2837, 7, 17, 11, 3509, 77, 2599, 198, 197, 361, 318, 35505, 58, 72, 5974, 198, 197, 197, 73, 796, ...
2.055276
199
from django.db import models from datetime import datetime # date = models.DateField(default=datetime.date.today)
[ 6738, 42625, 14208, 13, 9945, 1330, 4981, 198, 6738, 4818, 8079, 1330, 4818, 8079, 628, 628, 220, 220, 220, 220, 1303, 220, 220, 3128, 796, 4981, 13, 10430, 15878, 7, 12286, 28, 19608, 8079, 13, 4475, 13, 40838, 8, 198 ]
3.1
40
from project.motorcycle import Motorcycle
[ 6738, 1628, 13, 76, 20965, 13696, 1330, 12533, 13696, 198 ]
4.2
10
import argparse import logging import os from src.algorithm import deep_q_learning from torch.utils.tensorboard import SummaryWriter import warnings import gym from src.agent import DQNAgent from src.environment import DQNEnvironment from datetime import datetime if __name__ == '__main__': parser = argparse.Ar...
[ 11748, 1822, 29572, 198, 11748, 18931, 198, 11748, 28686, 198, 198, 6738, 12351, 13, 282, 42289, 1330, 2769, 62, 80, 62, 40684, 198, 6738, 28034, 13, 26791, 13, 83, 22854, 3526, 1330, 21293, 34379, 198, 11748, 14601, 198, 11748, 11550, ...
2.864385
789