content
stringlengths
1
1.05M
input_ids
listlengths
1
883k
ratio_char_token
float64
1
22.9
token_count
int64
1
883k
#encoding:utf-8 from setuptools import setup, find_packages import sys, os version = '0.4.3' setup(name='ici', version=version, description="terminal", long_description="""terminal""", classifiers=[], # Get strings from http://pypi.python.org/pypi?%3Aaction=list_classifiers keywords='pyt...
[ 2, 12685, 7656, 25, 40477, 12, 23, 198, 6738, 900, 37623, 10141, 1330, 9058, 11, 1064, 62, 43789, 198, 11748, 25064, 11, 28686, 198, 198, 9641, 796, 705, 15, 13, 19, 13, 18, 6, 198, 198, 40406, 7, 3672, 11639, 44070, 3256, 198, 22...
2.269231
338
""" Copyright (c) 2015 SONATA-NFV 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 agreed to in...
[ 37811, 198, 15269, 357, 66, 8, 1853, 311, 1340, 13563, 12, 21870, 53, 198, 7036, 371, 34874, 15731, 1137, 53, 1961, 13, 198, 26656, 15385, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 5832, 743, ...
3.370884
577
from datetime import datetime from typing import Union from discord import Member, User, Embed from discord.ext import commands from bot.main import NewCommand
[ 6738, 4818, 8079, 1330, 4818, 8079, 198, 6738, 19720, 1330, 4479, 198, 198, 6738, 36446, 1330, 10239, 11, 11787, 11, 13302, 276, 198, 6738, 36446, 13, 2302, 1330, 9729, 198, 198, 6738, 10214, 13, 12417, 1330, 968, 21575 ]
4.236842
38
print(isinstance(3, int)) lista = ['marina', 2, 'jujuba'] lista2 = [] for i in lista: if isinstance(i, str): lista2.append(i) print(lista2) myList = ['marina', 123, 9.5] print(isinstance(9.5, int)) #strings items = ['marina', 123, 9.5] print(isinstance(9.5, float)) str_items = ['abc', 'Abc','def', 'BBBB','...
[ 4798, 7, 271, 39098, 7, 18, 11, 493, 4008, 198, 198, 4868, 64, 796, 37250, 3876, 1437, 3256, 362, 11, 705, 14396, 73, 22013, 20520, 198, 4868, 64, 17, 796, 17635, 198, 198, 1640, 1312, 287, 1351, 64, 25, 198, 220, 611, 318, 39098,...
2.347826
345
import os import logging APP_NAME = 'psycopg3-connpool' # Set to False to force reporting queries to share pool with non-reporting queries REPORTING_POOL = True POOL_MIN_SIZE = 1 POOL_MAX_SIZE = 10 POOL_MAX_IDLE = 60 POOL_STAT_SLEEP = 300 if not REPORTING_POOL: pool_max_size += 5 CURR_PATH = os.path.abspath(...
[ 11748, 28686, 198, 11748, 18931, 198, 198, 24805, 62, 20608, 796, 705, 13764, 22163, 70, 18, 12, 37043, 7742, 6, 198, 198, 2, 5345, 284, 10352, 284, 2700, 6447, 20743, 284, 2648, 5933, 351, 1729, 12, 49914, 20743, 198, 2200, 15490, 27...
2.384758
538
# coding: utf-8
[ 2, 19617, 25, 3384, 69, 12, 23 ]
2.142857
7
import os import tensorflow as tf import tensorflow.contrib.slim as slim from tensorflow.examples.tutorials.mnist import mnist TRAIN_FILE = 'train.tfrecords' VALIDATION_FILE = 'train.tfrecords' def inputs(train_dir, train, batch_size, num_epochs, one_hot_labels=False): """Reads input data num_epochs times. ...
[ 11748, 28686, 198, 198, 11748, 11192, 273, 11125, 355, 48700, 198, 11748, 11192, 273, 11125, 13, 3642, 822, 13, 82, 2475, 355, 18862, 198, 6738, 11192, 273, 11125, 13, 1069, 12629, 13, 83, 44917, 82, 13, 10295, 396, 1330, 285, 77, 396...
2.422939
837
#!/usr/bin/env python ############################################################################### # # # Copyright 2017 - Ben Frankel # # ...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 29113, 29113, 7804, 4242, 21017, 198, 2, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220,...
2.000759
1,317
#!/usr/bin/python from django.core.management import setup_environ import sys sys.path.append('/var/wsgi/maiznet') sys.path.append('/var/wsgi') from maiznet import settings setup_environ(settings) from maiznet.register.models import Presence wfile_announces = open("/var/wsgi/maiznet/tools/ml/emails_announces","w"...
[ 2, 48443, 14629, 14, 8800, 14, 29412, 198, 198, 6738, 42625, 14208, 13, 7295, 13, 27604, 1330, 9058, 62, 268, 2268, 198, 11748, 25064, 198, 198, 17597, 13, 6978, 13, 33295, 10786, 14, 7785, 14, 18504, 12397, 14, 2611, 528, 3262, 11537...
2.596567
233
# 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 t...
[ 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.715026
193
import torch import torch.nn as nn from program.graph_utils import * from helper import fc_block, LayerNormGRUCell # helper class for GraphEncoder
[ 11748, 28034, 198, 11748, 28034, 13, 20471, 355, 299, 77, 198, 198, 6738, 1430, 13, 34960, 62, 26791, 1330, 1635, 198, 6738, 31904, 1330, 277, 66, 62, 9967, 11, 34398, 35393, 10761, 9598, 695, 628, 198, 2, 31904, 1398, 329, 29681, 271...
3.347826
46
# check with status codes # exceptions # check 'error' and 'status' from socket import inet_pton, inet_aton, AF_INET, error def valid_ipv4(address: str): """ :param address: ip address string :return: if the address is a valid dotted ipv4 address """ try: inet_pton(AF_INET, address) e...
[ 2, 2198, 351, 3722, 12416, 198, 2, 13269, 198, 2, 2198, 705, 18224, 6, 290, 705, 13376, 6, 198, 198, 6738, 17802, 1330, 287, 316, 62, 10972, 11, 287, 316, 62, 13951, 11, 12341, 62, 1268, 2767, 11, 4049, 628, 198, 4299, 4938, 62, ...
2.393665
221
#!/bin/python # -*- coding: utf-8 -*- # @File : __init__.py # @Author: wangms # @Date : 2018/8/7 from flask import Blueprint core = Blueprint('core', __name__) from . import view
[ 2, 48443, 8800, 14, 29412, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 2488, 8979, 220, 1058, 11593, 15003, 834, 13, 9078, 198, 2, 2488, 13838, 25, 266, 648, 907, 198, 2, 2488, 10430, 220, 1058, 2864, ...
2.527778
72
# flake8: noqa """ This file holds code for the Pytorch Trainer creator signatures. It ignores yapf because yapf doesn't allow comments right after code blocks, but we put comments right after code blocks to prevent large white spaces in the documentation. """ # yapf: disable # __torch_model_start__ import torch.nn a...
[ 2, 781, 539, 23, 25, 645, 20402, 198, 37811, 198, 1212, 2393, 6622, 2438, 329, 262, 9485, 13165, 354, 31924, 13172, 17239, 13, 198, 198, 1026, 24245, 331, 499, 69, 780, 331, 499, 69, 1595, 470, 1249, 3651, 826, 706, 2438, 7021, 11, ...
2.815812
1,151
import pytest from baguette.app import Baguette from baguette.httpexceptions import MethodNotAllowed from baguette.responses import make_response from baguette.view import View
[ 11748, 12972, 9288, 198, 198, 6738, 6131, 84, 5857, 13, 1324, 1330, 347, 11433, 5857, 198, 6738, 6131, 84, 5857, 13, 2804, 24900, 11755, 1330, 11789, 3673, 3237, 6972, 198, 6738, 6131, 84, 5857, 13, 16733, 274, 1330, 787, 62, 26209, 1...
3.433962
53
# Copyright 2021 Blue Brain Project / EPFL # # 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...
[ 2, 15069, 33448, 4518, 14842, 4935, 1220, 14724, 3697, 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...
3.577273
220
# # Author: L. Salud, April 26.2018 # import pandas as pd import os import matplotlib.pyplot as plt from sklearn.decomposition import PCA from sklearn.preprocessing import StandardScaler os.getcwd() # Get and place .py in same directory as .xls initially os.chdir('./') # Path to .xls file from pandas import read_ex...
[ 2, 198, 2, 6434, 25, 406, 13, 4849, 463, 11, 3035, 2608, 13, 7908, 198, 2, 198, 11748, 19798, 292, 355, 279, 67, 198, 11748, 28686, 198, 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 198, 198, 6738, 1341, 35720, 13, 125...
2.393636
1,100
import re main()
[ 11748, 302, 628, 628, 628, 198, 12417, 3419, 198 ]
2.555556
9
"""Classes to access the `cltk_data/` directory tree""" __author__ = 'Stephen Margheim <stephen.margheim@gmail.com>' __license__ = 'MIT License. See LICENSE.' import os import site from cltk.cltk import CLTK_DATA_DIR from cltk.cltk.corpus.wrappers.logger import logger # Alias cltk_data = CLTKData()
[ 37811, 9487, 274, 284, 1895, 262, 4600, 565, 30488, 62, 7890, 14, 63, 8619, 5509, 37811, 198, 834, 9800, 834, 796, 705, 24920, 11899, 9096, 1279, 9662, 831, 13, 30887, 9096, 31, 14816, 13, 785, 29, 6, 198, 834, 43085, 834, 796, 705,...
2.798165
109
from .decommission import Decommission from .release_resources import ReleaseResources from .farewell import Farewell
[ 6738, 764, 12501, 2002, 1480, 1330, 4280, 2002, 1480, 198, 6738, 764, 20979, 62, 37540, 1330, 13868, 33236, 198, 6738, 764, 9496, 4053, 1330, 35205, 4053, 198 ]
4.37037
27
# Copyright (c) 2021, NVIDIA CORPORATION. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # * Redistributions of source code must retain the above copyright # notice, this list of conditions a...
[ 2, 15069, 357, 66, 8, 33448, 11, 15127, 23929, 44680, 6234, 13, 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, 2810, 326, 262, 1708...
3.490079
504
import numpy as np import torch def cuboid_inside_outside_function(X, shape_params, epsilon=0.25): """ Arguments: ---------- X: Tensor with size BxNxMx3, containing the 3D points, where B is the batch size and N is the number of points shape_params: Tensor with size BxMx3, con...
[ 198, 11748, 299, 32152, 355, 45941, 198, 11748, 28034, 628, 198, 198, 4299, 13617, 1868, 62, 48787, 62, 43435, 62, 8818, 7, 55, 11, 5485, 62, 37266, 11, 304, 862, 33576, 28, 15, 13, 1495, 2599, 198, 220, 220, 220, 37227, 198, 220, ...
2.2443
8,289
from PyQt5.QtOpenGL import * from OpenGL.GL import * from PyQt5 import QtWidgets, QtCore if __name__ == '__main__': app = QtWidgets.QApplication(['3D OpenGL']) window = App() window.show() app.exec_()
[ 6738, 9485, 48, 83, 20, 13, 48, 83, 11505, 8763, 1330, 1635, 198, 6738, 30672, 13, 8763, 1330, 1635, 198, 198, 6738, 9485, 48, 83, 20, 1330, 33734, 54, 312, 11407, 11, 33734, 14055, 628, 628, 198, 361, 11593, 3672, 834, 6624, 705, ...
2.408602
93
""" Submit a SIP archive to the digital preservation service """ from pathlib import Path import click from passari.config import CONFIG from passari.dpres.package import MuseumObjectPackage from passari.dpres.ssh import connect_dpres_sftp from passari.utils import debugger_enabled def submit_sip(package_dir, objec...
[ 37811, 198, 45135, 257, 311, 4061, 15424, 284, 262, 4875, 22459, 2139, 198, 37811, 198, 6738, 3108, 8019, 1330, 10644, 198, 198, 11748, 3904, 198, 198, 6738, 1208, 2743, 13, 11250, 1330, 25626, 198, 6738, 1208, 2743, 13, 67, 18302, 13, ...
2.560201
598
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.constant.ParamConstants import * from alipay.aop.api.domain.IndirectIsvTerminalInfo import IndirectIsvTerminalInfo
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 11748, 33918, 198, 198, 6738, 435, 541, 323, 13, 64, 404, 13, 15042, 13, 9979, 415, 13, 22973, 34184, 1187, 1330, 163...
2.626667
75
import numpy
[ 11748, 299, 32152, 628 ]
3.5
4
import ast from typing import Optional, Tuple, Union from boa3.model.expression import IExpression from boa3.model.imports.package import Package from boa3.model.symbol import ISymbol from boa3.model.type.classes.classtype import ClassType from boa3.model.type.itype import IType
[ 11748, 6468, 198, 6738, 19720, 1330, 32233, 11, 309, 29291, 11, 4479, 198, 198, 6738, 1489, 64, 18, 13, 19849, 13, 38011, 1330, 314, 16870, 2234, 198, 6738, 1489, 64, 18, 13, 19849, 13, 320, 3742, 13, 26495, 1330, 15717, 198, 6738, ...
3.168539
89
import os import os.path as osp __all__ = [ 'pack_images', 'plot_and_pack', 'save_images' ]
[ 11748, 28686, 198, 11748, 28686, 13, 6978, 355, 267, 2777, 198, 198, 834, 439, 834, 796, 685, 198, 220, 705, 8002, 62, 17566, 3256, 198, 220, 705, 29487, 62, 392, 62, 8002, 3256, 198, 220, 705, 21928, 62, 17566, 6, 198, 60, 198 ]
2.302326
43
import metrics from metrics import timeit from main import * import os def detactor(self, x, u, mode="single", loss_compensation=0.0, increase_step=-1): """detact if there are dangerous state in furture Args: x: current state u: current action mode (str, optional): single(faste...
[ 11748, 20731, 198, 6738, 20731, 1330, 640, 270, 198, 6738, 1388, 1330, 1635, 198, 198, 11748, 28686, 628, 198, 220, 825, 1062, 11218, 7, 944, 11, 2124, 11, 334, 11, 4235, 2625, 29762, 1600, 2994, 62, 5589, 25742, 28, 15, 13, 15, 11,...
2.195215
2,884
##Write a program that reads the contents of a text file. The program should create a diction- ##ary in which the key-value pairs are described as follows: ## Key. The keys are the individual words found in the file. ## Values. Each value is a list that contains the line numbers in the file where the word ##(the key) i...
[ 2235, 16594, 257, 1430, 326, 9743, 262, 10154, 286, 257, 2420, 2393, 13, 383, 1430, 815, 2251, 257, 48589, 12, 198, 2235, 560, 287, 543, 262, 1994, 12, 8367, 14729, 389, 3417, 355, 5679, 25, 198, 2235, 7383, 13, 383, 8251, 389, 262,...
3.924731
372
file_input = open('stack.in', 'r') file_output = open('stack.out', 'w') return True if (top_index == -1) else False self.stack = [] self.top = -1 self.top += 1 self.stack += [''] self.stack[self.top] = value try: if validate_stack(self.top): return else: self.top -= 1 return self.stack[self.top + 1] except IndexError:...
[ 7753, 62, 15414, 796, 1280, 10786, 25558, 13, 259, 3256, 705, 81, 11537, 198, 7753, 62, 22915, 796, 1280, 10786, 25558, 13, 448, 3256, 705, 86, 11537, 198, 7783, 6407, 611, 357, 4852, 62, 9630, 6624, 532, 16, 8, 2073, 10352, 198, 94...
2.644144
222
#!/usr/bin/env python # -*- coding: utf-8 -*- import collections import queue import threading import typing from .constants import S_END_OF_CMD import serial # TODO: rotten """ # PyBoard 1.1 # https://docs.micropython.org/en/latest/pyboard/pyboard/quickref.html # RED: VIN # BLACK: GND # YELLOW: X9 (Board TX) ...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 11748, 17268, 198, 11748, 16834, 198, 11748, 4704, 278, 198, 11748, 19720, 198, 198, 6738, 764, 9979, 1187, 1330, ...
2.53
200
# -*- coding: utf-8 -*- """ Compute essential stats(freq/tf-idf) on a corpus Dependencies: pandas == 0.23 gensim == 3.8 """ __author__ = "Mike Shuser" import pickle import numpy as np import pandas as pd from gensim.models import TfidfModel from gensim.corpora import Dictionary DATA_SRC = "../processed_corp...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 198, 7293, 1133, 6393, 9756, 7, 19503, 80, 14, 27110, 12, 312, 69, 8, 319, 257, 35789, 198, 198, 35, 2690, 3976, 25, 198, 220, 220, 220, 19798, 292, 6624, 657...
1.967033
819
import math def print_matrix(matrix): """ Function to print a matrix """ for row in matrix: for col in row: print("%.3f" % col, end=" ") print() def rows(matrix): """ Returns the no. of rows of a matrix """ if type(matrix) != list: return 1 r...
[ 11748, 10688, 628, 198, 4299, 3601, 62, 6759, 8609, 7, 6759, 8609, 2599, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 15553, 284, 3601, 257, 17593, 198, 220, 220, 220, 37227, 628, 220, 220, 220, 329, 5752, 287, 17593, 25, 198, 220...
2.11752
1,387
#!/usr/bin/env python import os import sys if __name__ == "__main__": try: from django.core.management import execute_from_command_line except ImportError: # The above import may fail for some other reason. Ensure that the # issue is really that Django is missing to avoid masking other ...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 11748, 28686, 198, 11748, 25064, 198, 198, 361, 11593, 3672, 834, 6624, 366, 834, 12417, 834, 1298, 198, 220, 220, 220, 1949, 25, 198, 220, 220, 220, 220, 220, 220, 220, 422, 42625, ...
2.487585
443
import hashlib from datetime import datetime print()
[ 11748, 12234, 8019, 198, 198, 6738, 4818, 8079, 1330, 4818, 8079, 628, 628, 198, 4798, 3419, 198 ]
3.411765
17
""" This file contains tests on the creation of directories """ from __future__ import absolute_import, division, print_function import time import os import shutil import unittest from fitbenchmarking.utils.create_dirs import (figures, group_results, results, support_pa...
[ 37811, 198, 1212, 2393, 4909, 5254, 319, 262, 6282, 286, 29196, 198, 37811, 198, 6738, 11593, 37443, 834, 1330, 4112, 62, 11748, 11, 7297, 11, 3601, 62, 8818, 198, 198, 11748, 640, 198, 11748, 28686, 198, 11748, 4423, 346, 198, 11748, ...
2.585034
147
import os from urllib.parse import urlparse from fastapi import FastAPI, Request from fastapi.middleware.cors import CORSMiddleware from fastapi.responses import RedirectResponse, Response from fastapi.staticfiles import StaticFiles from typing import Optional import api app = FastAPI() app.mount("/files", StaticFi...
[ 11748, 28686, 198, 6738, 2956, 297, 571, 13, 29572, 1330, 19016, 29572, 198, 198, 6738, 3049, 15042, 1330, 12549, 17614, 11, 19390, 198, 6738, 3049, 15042, 13, 27171, 1574, 13, 66, 669, 1330, 23929, 12310, 2509, 1574, 198, 6738, 3049, 1...
3.066667
165
#!/usr/bin/env python # # Get alert notifications from Sysdig Cloud # import os import sys import time sys.path.insert(0, os.path.join(os.path.dirname(os.path.realpath(sys.argv[0])), '..')) from sdcclient import SdcClient # # Parse arguments # if len(sys.argv) != 2: print 'usage: %s <sysdig-token>' % sys.argv[0] ...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 198, 2, 3497, 7995, 19605, 422, 311, 893, 12894, 10130, 198, 2, 198, 198, 11748, 28686, 198, 11748, 25064, 198, 11748, 640, 198, 17597, 13, 6978, 13, 28463, 7, 15, 11, 28686, 13, ...
2.580071
562
from sqlalchemy import Column, Integer, String from sqlalchemy import DateTime from sqlalchemy import Table, Column, Integer, String, MetaData, ForeignKey
[ 6738, 44161, 282, 26599, 1330, 29201, 11, 34142, 11, 10903, 198, 6738, 44161, 282, 26599, 1330, 7536, 7575, 198, 6738, 44161, 282, 26599, 1330, 8655, 11, 29201, 11, 34142, 11, 10903, 11, 30277, 6601, 11, 8708, 9218, 628 ]
4.105263
38
import sys import numpy from distutils.version import LooseVersion assert sys.version_info >= (3, 5) assert LooseVersion(numpy.version.version) >= LooseVersion('1.16'), 'nutils requires numpy 1.16 or higher, got {}'.format(numpy.version.version) version = '8.0a0' version_name = None long_version = ('{} "{}"' if versi...
[ 11748, 25064, 198, 11748, 299, 32152, 198, 6738, 1233, 26791, 13, 9641, 1330, 6706, 577, 14815, 198, 198, 30493, 25064, 13, 9641, 62, 10951, 18189, 357, 18, 11, 642, 8, 198, 30493, 6706, 577, 14815, 7, 77, 32152, 13, 9641, 13, 9641, ...
2.324638
345
# The MIT License (MIT) # # Copyright (c) 2015 addfor s.r.l. # # 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, m...
[ 2, 383, 17168, 13789, 357, 36393, 8, 198, 2, 220, 198, 2, 15069, 357, 66, 8, 1853, 751, 1640, 264, 13, 81, 13, 75, 13, 198, 2, 220, 198, 2, 2448, 3411, 318, 29376, 7520, 11, 1479, 286, 3877, 11, 284, 597, 1048, 16727, 257, 486...
2.213085
2,201
from django.db import models from django.utils import timezone
[ 6738, 42625, 14208, 13, 9945, 1330, 4981, 198, 6738, 42625, 14208, 13, 26791, 1330, 640, 11340, 628, 198 ]
3.611111
18
# http://github.com/timestocome # data # https://www.cs.toronto.edu/~kriz/cifar.html import numpy as np import pickle import matplotlib.pyplot as plt ################################################################################### # read in data ###############################################################...
[ 198, 2, 2638, 1378, 12567, 13, 785, 14, 16514, 395, 420, 462, 628, 198, 2, 1366, 220, 198, 2, 3740, 1378, 2503, 13, 6359, 13, 13165, 5957, 13, 15532, 14, 93, 74, 47847, 14, 66, 361, 283, 13, 6494, 628, 198, 198, 11748, 299, 3215...
3.784483
116
from flask import render_template from app.blueprints.seo_arizona.views import seo_arizona
[ 6738, 42903, 1330, 8543, 62, 28243, 198, 198, 6738, 598, 13, 17585, 17190, 13, 325, 78, 62, 283, 528, 4450, 13, 33571, 1330, 384, 78, 62, 283, 528, 4450, 628, 628 ]
3.064516
31
import flames import unittest if __name__ == '__main__': unittest.main()
[ 11748, 16209, 220, 198, 11748, 555, 715, 395, 628, 198, 220, 220, 220, 220, 220, 220, 220, 220, 198, 220, 220, 220, 220, 220, 220, 220, 220, 198, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 198, 220, 220, 220, 5...
2
50
import traceback from fastapi import Request from fastapi.responses import PlainTextResponse from starlette.status import HTTP_500_INTERNAL_SERVER_ERROR def internal_server_exception_handler( _: Request, exception: Exception ) -> PlainTextResponse: """ Return the traceback of the internal server ...
[ 11748, 12854, 1891, 198, 198, 6738, 3049, 15042, 1330, 19390, 198, 6738, 3049, 15042, 13, 16733, 274, 1330, 28847, 8206, 31077, 198, 6738, 3491, 21348, 13, 13376, 1330, 14626, 62, 4059, 62, 1268, 31800, 1847, 62, 35009, 5959, 62, 24908, ...
2.373563
348
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. """ helper class that supports empty tensors on some nn functions. Ideally, add support directly in PyTorch to empty tensors in those functions. This can be removed once https://github.com/pytorch/pytorch/issues/12013 is implemented """ import m...
[ 2, 15069, 357, 66, 8, 3203, 11, 3457, 13, 290, 663, 29116, 13, 1439, 6923, 33876, 13, 198, 37811, 198, 2978, 525, 1398, 326, 6971, 6565, 11192, 669, 319, 617, 299, 77, 5499, 13, 198, 198, 41452, 453, 11, 751, 1104, 3264, 287, 9485...
2.429129
769
#!/usr/bin/env python3 """ api access for google sheets (and friends) Usage: googapis auth (sheets|docs|drive)... [options] [--drive-scope=<SCOPE>...] Examples: googapis auth sheets Options: --store-file=<PATH>... write to a specific store file -n --readonly set the readonly scope -...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 37811, 40391, 1895, 329, 23645, 15747, 357, 392, 2460, 8, 198, 28350, 25, 198, 220, 220, 220, 467, 519, 499, 271, 6284, 357, 42011, 91, 31628, 91, 19472, 26513, 685, 25811, 60, 6...
2.055891
662
from django.contrib import admin # from models import PasswordReset # # class PasswordResetAdmin(admin.ModelAdmin): # list_display = ["user", "temp_key", "timestamp", "reset"] # # admin.site.register(PasswordReset, PasswordResetAdmin)
[ 6738, 42625, 14208, 13, 3642, 822, 1330, 13169, 198, 198, 2, 422, 4981, 1330, 30275, 4965, 316, 198, 2, 220, 198, 2, 1398, 30275, 4965, 316, 46787, 7, 28482, 13, 17633, 46787, 2599, 198, 2, 220, 220, 220, 220, 1351, 62, 13812, 796, ...
3.063291
79
""" WayScript Errors """
[ 37811, 198, 25309, 7391, 44225, 198, 37811, 198 ]
3.125
8
import numpy as np from itertools import product from tensorflow.keras.models import load_model from sklearn.feature_selection import SelectKBest, f_regression from joblib import load import random as rnd
[ 11748, 299, 32152, 355, 45941, 198, 6738, 340, 861, 10141, 1330, 1720, 198, 6738, 11192, 273, 11125, 13, 6122, 292, 13, 27530, 1330, 3440, 62, 19849, 198, 6738, 1341, 35720, 13, 30053, 62, 49283, 1330, 9683, 42, 13014, 11, 277, 62, 23...
3.709091
55
import xmltodict from browsers import load_firefox GOOGLE_SITEMAP_URL = "https://careers.google.com/jobs/sitemap"
[ 11748, 2124, 76, 2528, 375, 713, 198, 6738, 22616, 1330, 3440, 62, 6495, 12792, 198, 198, 38, 6684, 38, 2538, 62, 50, 2043, 3620, 2969, 62, 21886, 796, 366, 5450, 1378, 6651, 364, 13, 13297, 13, 785, 14, 43863, 14, 82, 9186, 499, ...
2.565217
46
# Testing Upload image feature import tempfile import os from PIL import Image # ---------------- from django.contrib.auth import get_user_model from django.test import TestCase from django.urls import reverse from rest_framework import status from rest_framework import test from rest_framework.test import APIClient ...
[ 2, 23983, 36803, 2939, 3895, 198, 11748, 20218, 7753, 198, 11748, 28686, 198, 6738, 350, 4146, 1330, 7412, 198, 2, 34400, 198, 6738, 42625, 14208, 13, 3642, 822, 13, 18439, 1330, 651, 62, 7220, 62, 19849, 198, 6738, 42625, 14208, 13, ...
3.097416
503
import requests from lxml import html import os import sys sys.path.append("..") header = {"User-Agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3809.100 Safari/537.36"}
[ 11748, 7007, 198, 6738, 300, 19875, 1330, 27711, 198, 11748, 28686, 198, 11748, 25064, 198, 17597, 13, 6978, 13, 33295, 7203, 492, 4943, 198, 198, 25677, 796, 19779, 12982, 12, 36772, 2404, 44, 8590, 5049, 14, 20, 13, 15, 357, 11209, ...
2.521739
92
import pdb import subprocess from functools import partial, wraps from math import prod from pathlib import Path from pprint import pprint from string import ( ascii_lowercase, digits as ascii_digits, ) from typing import Any, Callable, List, Iterable, Optional, Union from toolz import ( # type: ignore com...
[ 11748, 279, 9945, 198, 11748, 850, 14681, 198, 6738, 1257, 310, 10141, 1330, 13027, 11, 27521, 198, 6738, 10688, 1330, 40426, 198, 6738, 3108, 8019, 1330, 10644, 198, 6738, 279, 4798, 1330, 279, 4798, 198, 6738, 4731, 1330, 357, 198, 22...
2.55366
1,407
from abc import ABC, abstractmethod
[ 6738, 450, 66, 1330, 9738, 11, 12531, 24396, 198 ]
4
9
import npyscreen import os import getpass import subprocess #Application starts here if __name__ == "__main__": app = App().run()
[ 11748, 45941, 28349, 1361, 198, 11748, 28686, 198, 11748, 651, 6603, 198, 11748, 850, 14681, 628, 198, 198, 2, 23416, 4940, 994, 628, 198, 361, 11593, 3672, 834, 6624, 366, 834, 12417, 834, 1298, 198, 220, 220, 220, 598, 796, 2034, 22...
3.136364
44
#!/usr/bin/python # # Copyright (c) Facebook, Inc. and its affiliates. # # 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...
[ 2, 48443, 14629, 14, 8800, 14, 29412, 198, 2, 198, 2, 15069, 357, 66, 8, 3203, 11, 3457, 13, 290, 663, 29116, 13, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 2, 345, ...
3.340278
288
3# -*- coding: utf-8 -*- """ Created on Thu May 28 14:31:02 2020 @author: Lucas """ import random acertos = 0 erros = 0 perguntas = 0 print("Programa educativo matematico") print("""Digite a opo desejada [1] para Soma [2] para subtrao [3] para diviso [4] para multiplicao""") opo = int(input("D...
[ 18, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 198, 41972, 319, 26223, 1737, 2579, 1478, 25, 3132, 25, 2999, 12131, 198, 198, 31, 9800, 25, 15257, 198, 37811, 198, 198, 11748, 4738, 198, 330, 861, 418, 7...
1.971645
1,587
# taken largely from https://github.com/ianvonseggern1/note-prediction from pydub import AudioSegment import pydub.scipy_effects import numpy as np import scipy import matplotlib.pyplot as plt from solo_generation_esac import * from utils import frequency_spectrum, \ calculate_distance, \ classify_note_attemp...
[ 2, 2077, 5688, 422, 3740, 1378, 12567, 13, 785, 14, 666, 85, 2591, 1130, 1142, 16, 14, 11295, 12, 28764, 2867, 198, 198, 6738, 279, 5173, 549, 1330, 13491, 41030, 434, 198, 11748, 279, 5173, 549, 13, 1416, 541, 88, 62, 34435, 198, ...
3.180602
299
# Copyright 2021 The Trieste Contributors # # 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...
[ 2, 15069, 33448, 383, 7563, 29872, 25767, 669, 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, ...
3.622896
297
# Generated by Django 2.1.2 on 2018-11-23 23:42 import django.contrib.postgres.fields from django.db import migrations, models
[ 2, 2980, 515, 416, 37770, 362, 13, 16, 13, 17, 319, 2864, 12, 1157, 12, 1954, 2242, 25, 3682, 198, 198, 11748, 42625, 14208, 13, 3642, 822, 13, 7353, 34239, 13, 25747, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 11, 4981, ...
2.931818
44
from compas_cloud import Proxy import time print("\n starting a new Proxy and by default starts a server in background") proxy = Proxy(background=True) time.sleep(3) print("\n restarting the background server and open a new one in a prompt console") proxy.background = False proxy.restart() time.sleep(3) print("\n ch...
[ 6738, 552, 292, 62, 17721, 1330, 38027, 198, 11748, 640, 198, 198, 4798, 7203, 59, 77, 3599, 257, 649, 38027, 290, 416, 4277, 4940, 257, 4382, 287, 4469, 4943, 198, 36436, 796, 38027, 7, 25249, 28, 17821, 8, 198, 2435, 13, 42832, 7,...
3.423611
144
#-----------------SUPERMARKET MANAGEMENT SYSTEM-------------------- items = [] while True: print('------------------Welcome to the supermarket------------------') print('1. View items\n2. Add items for sale\n3. Purchase items\n4. Search items \n5. Edit items\n6. Exit') choice = int(input('Enter the number o...
[ 2, 1783, 12, 40331, 1137, 44, 14175, 2767, 17254, 4760, 12529, 36230, 19351, 198, 23814, 796, 17635, 198, 4514, 6407, 25, 198, 220, 220, 220, 3601, 10786, 1783, 438, 14618, 284, 262, 26454, 1783, 438, 11537, 198, 220, 220, 220, 3601, ...
2.160156
1,792
"""Contains the links that can be downloaded.""" from hashlib import sha1 import logging import os from pathlib import Path import re import warnings from bs4 import BeautifulSoup from requests import Response import unidecode from vcm.core.exceptions import AlgorithmFailureError, MoodleError, ResponseError from vcm....
[ 37811, 4264, 1299, 262, 6117, 326, 460, 307, 15680, 526, 15931, 198, 6738, 12234, 8019, 1330, 427, 64, 16, 198, 11748, 18931, 198, 11748, 28686, 198, 6738, 3108, 8019, 1330, 10644, 198, 11748, 302, 198, 11748, 14601, 198, 198, 6738, 275...
2.245763
2,242
if __name__ == '__main__': r""" CommandLine: source ~/code/VIAME/build/install/setup_viame.sh cd /home/joncrall/code/VIAME/examples/tracking_pipelines ~/code/VIAME/build/install/bin/pipe_to_dot -p simple_tracker.pipe -o g.dot dot -Tpng g.dot > g.png python ~/code/VIAM...
[ 198, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 198, 220, 220, 220, 374, 37811, 198, 220, 220, 220, 9455, 13949, 25, 628, 220, 220, 220, 220, 220, 220, 220, 2723, 47795, 8189, 14, 12861, 10067, 14, 11249, 14, 173...
2.251046
239
from flask import Flask, request, render_template import pandas as pd import joblib # Declare a Flask app app = Flask(__name__) # Running the app if __name__ == '__main__': app.run(debug = True)
[ 6738, 42903, 1330, 46947, 11, 2581, 11, 8543, 62, 28243, 198, 11748, 19798, 292, 355, 279, 67, 198, 11748, 1693, 8019, 628, 198, 2, 16691, 533, 257, 46947, 598, 198, 1324, 796, 46947, 7, 834, 3672, 834, 8, 198, 198, 2, 18162, 262, ...
2.970588
68
from django.urls import path, include from . import views urlpatterns = [ path('', views.index, name='index'), path('faq', views.faq, name='faq'), path('account/me/password/', views.change_password, name='user-password'), path('account/me/', views.view_user, name='user'), path('account/<int:user_id...
[ 6738, 42625, 14208, 13, 6371, 82, 1330, 3108, 11, 2291, 198, 6738, 764, 1330, 5009, 198, 198, 6371, 33279, 82, 796, 685, 198, 220, 220, 220, 3108, 10786, 3256, 5009, 13, 9630, 11, 1438, 11639, 9630, 33809, 198, 220, 220, 220, 3108, ...
2.60241
332
import unittest from dcp.leetcode.str.find_and_replace import findReplaceString
[ 11748, 555, 715, 395, 198, 198, 6738, 288, 13155, 13, 293, 316, 8189, 13, 2536, 13, 19796, 62, 392, 62, 33491, 1330, 1064, 3041, 5372, 10100 ]
3.076923
26
import json from abc import ABCMeta, abstractmethod import six from moto.sts.models import ACCOUNT_ID class NotebookInstanceLifecycleConfigTestConfig(TestConfig): """Test configuration for SageMaker Notebook Instance Lifecycle Configs.""" def get_cloudformation_template(self, include_outputs=True, **kwar...
[ 11748, 33918, 198, 6738, 450, 66, 1330, 9738, 48526, 11, 12531, 24396, 198, 198, 11748, 2237, 198, 198, 6738, 285, 2069, 13, 6448, 13, 27530, 1330, 15859, 28270, 62, 2389, 628, 628, 198, 4871, 5740, 2070, 33384, 43, 361, 47510, 16934, ...
1.886888
1,388
#!/usr/bin/env python # coding: utf-8 # # Virtual environments # #### Attribution # # The conda virtual environment section of this guide # was originally published at http://geohackweek.github.io/ under a CC-BY license # and has been updated to reflect recent changes in conda, # as well as modified slightly to fit ...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 19617, 25, 3384, 69, 12, 23, 198, 198, 2, 1303, 15595, 12493, 198, 198, 2, 1303, 21017, 45336, 198, 2, 220, 198, 2, 383, 1779, 64, 7166, 2858, 2665, 286, 428, 5698, 198, 2, 37...
3.347559
6,842
import base64 import datetime, pytz from re import X import io from matplotlib import pyplot as plt from matplotlib.backends.backend_agg import FigureCanvasAgg as FigureCanvas from scipy import spatial from skyfield.api import load, Star from skyfield.projections import build_stereographic_projection from ..astro.angdi...
[ 11748, 2779, 2414, 198, 11748, 4818, 8079, 11, 12972, 22877, 198, 6738, 302, 1330, 1395, 198, 11748, 33245, 198, 6738, 2603, 29487, 8019, 1330, 12972, 29487, 355, 458, 83, 198, 6738, 2603, 29487, 8019, 13, 1891, 2412, 13, 1891, 437, 62,...
2.302439
410
# 5.2 Write a program that repeatedly prompts a user for integer numbers until the user enters 'done'. Once 'done' is entered, print out the largest and smallest of the numbers. If the user enters anything other than a valid number catch it with a try/except and put out an appropriate message and ignore the number. Ent...
[ 2, 642, 13, 17, 19430, 257, 1430, 326, 7830, 36454, 257, 2836, 329, 18253, 3146, 1566, 262, 2836, 14170, 705, 28060, 4458, 4874, 705, 28060, 6, 318, 5982, 11, 3601, 503, 262, 4387, 290, 18197, 286, 262, 3146, 13, 1002, 262, 2836, 14...
2.753894
321
from pipeline.pipeline import pipeline
[ 6738, 11523, 13, 79, 541, 4470, 1330, 11523 ]
4.75
8
# - *- coding: utf- 8 - *- from aiogram import Router from tgbot.routers.user.user_menu import router_user_menu #
[ 2, 532, 1635, 12, 19617, 25, 3384, 69, 12, 807, 532, 1635, 12, 198, 6738, 257, 72, 21857, 1330, 48538, 198, 198, 6738, 256, 70, 13645, 13, 472, 1010, 13, 7220, 13, 7220, 62, 26272, 1330, 20264, 62, 7220, 62, 26272, 628, 198, 2, ...
2.469388
49
# -*- coding: utf-8 -*- from .grammar import SchemaGrammar
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 6738, 764, 4546, 3876, 1330, 10011, 2611, 38, 859, 3876, 628 ]
2.346154
26
# # PySNMP MIB module ASCEND-MIBVDSL-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/ASCEND-MIBVDSL-MIB # Produced by pysmi-0.3.4 at Wed May 1 11:28:53 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, ...
[ 2, 198, 2, 9485, 15571, 7378, 337, 9865, 8265, 25400, 10619, 12, 8895, 33, 53, 5258, 43, 12, 8895, 33, 357, 4023, 1378, 16184, 76, 489, 8937, 13, 785, 14, 79, 893, 11632, 8, 198, 2, 7054, 45, 13, 16, 2723, 2393, 1378, 14, 14490,...
2.864331
7,334
import time print(time.time()) # DeprecationWarning: time.clock has been deprecated in Python 3.3 and will be removed from Python 3.8: use time.perf_counter or time.process_time instead # print(time.clock()) print(time.process_time()) print(time.perf_counter())
[ 11748, 640, 198, 4798, 7, 2435, 13, 2435, 28955, 198, 2, 2129, 8344, 341, 20361, 25, 640, 13, 15750, 468, 587, 39224, 287, 11361, 513, 13, 18, 290, 481, 307, 4615, 422, 11361, 513, 13, 23, 25, 779, 640, 13, 525, 69, 62, 24588, 3...
3.316456
79
import unittest import strongr.clouddomain.model.gateways import strongr.core import strongr.core.domain.clouddomain
[ 11748, 555, 715, 395, 198, 198, 11748, 1913, 81, 13, 565, 280, 1860, 296, 391, 13, 19849, 13, 10494, 1322, 198, 198, 11748, 1913, 81, 13, 7295, 198, 11748, 1913, 81, 13, 7295, 13, 27830, 13, 565, 280, 1860, 296, 391, 198 ]
2.833333
42
#!/usr/bin/env python ''' Sync markdown notes with an external folder like dropbox. Notes will be named *.txt in the external folder and *.md in git. The script will use proper git commands to do things such as, delete or add new files to git and reflect any git-side changes in the external folder. This script is int...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 7061, 6, 198, 28985, 1317, 2902, 4710, 351, 281, 7097, 9483, 588, 4268, 3524, 13, 198, 198, 16130, 481, 307, 3706, 46866, 14116, 287, 262, 7097, 9483, 290, 46866, 9132, 287, 17606, 13,...
2.68693
329
import abc import logging import zwoasi from catkit.config import CONFIG_INI import catkit.hardware.zwo.ZwoCamera # Convert zwoasi module to a class such that it can be inherited. ZwoASI = type("ZwoASI", (), zwoasi.__dict__)
[ 11748, 450, 66, 198, 11748, 18931, 198, 198, 11748, 1976, 21638, 17053, 198, 6738, 3797, 15813, 13, 11250, 1330, 25626, 62, 1268, 40, 198, 198, 11748, 3797, 15813, 13, 10424, 1574, 13, 89, 21638, 13, 57, 21638, 35632, 628, 198, 2, 382...
2.8875
80
# Copyright 2019 The FastEstimator 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 required by appl...
[ 2, 15069, 13130, 383, 12549, 22362, 320, 1352, 46665, 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, ...
4.039216
204
from .test_config import EMPTY from scripta import parse from unittest import TestCase
[ 6738, 764, 9288, 62, 11250, 1330, 38144, 9936, 198, 6738, 4226, 64, 1330, 21136, 198, 6738, 555, 715, 395, 1330, 6208, 20448, 628 ]
3.826087
23
from pybithumb.core import * from pandas import DataFrame import pandas as pd import datetime import math
[ 201, 198, 6738, 12972, 65, 342, 2178, 13, 7295, 1330, 1635, 201, 198, 6738, 19798, 292, 1330, 6060, 19778, 201, 198, 11748, 19798, 292, 355, 279, 67, 201, 198, 11748, 4818, 8079, 201, 198, 11748, 10688, 201, 198, 201, 198, 201, 198 ]
2.785714
42
import struct import zlib from wrpg.piaf.common import ( header_structure, file_entry_structure, file_entry_size, get_data_offset, header_size, header_check_size, header_data_size) def load_data(buffer, archive, file_sizes): data_offset = 0 for f, file_size in zip(archive["file_ent...
[ 11748, 2878, 198, 11748, 1976, 8019, 198, 6738, 1319, 6024, 13, 79, 544, 69, 13, 11321, 1330, 357, 198, 220, 220, 220, 13639, 62, 301, 5620, 11, 198, 220, 220, 220, 2393, 62, 13000, 62, 301, 5620, 11, 198, 220, 220, 220, 2393, 62,...
2.469828
232
# Generated by Django 3.0.5 on 2020-05-06 22:21 from django.db import migrations, models
[ 2, 2980, 515, 416, 37770, 513, 13, 15, 13, 20, 319, 12131, 12, 2713, 12, 3312, 2534, 25, 2481, 198, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 11, 4981, 628 ]
2.84375
32
import numpy as np import cv2 img = cv2.imread('city2.jpg',0) rows,cols = img.shape M = cv2.getRotationMatrix2D((cols/2,rows/2),90,1) dst = cv2.warpAffine(img,M,(cols,rows)) cv2.imshow('image cv2',dst) cv2.waitKey(0) # to save the image # cv2.imwrite('image1.png',img) cv2.destroyAllWindows()
[ 198, 11748, 299, 32152, 355, 45941, 198, 11748, 269, 85, 17, 628, 198, 9600, 796, 269, 85, 17, 13, 320, 961, 10786, 19205, 17, 13, 9479, 3256, 15, 8, 198, 8516, 11, 4033, 82, 796, 33705, 13, 43358, 198, 198, 44, 796, 269, 85, 17...
2.047619
147
# Copyright 2021, Peter Birch, mailto:peter@lightlogic.co.uk # # 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 l...
[ 2, 15069, 33448, 11, 5613, 47631, 11, 6920, 1462, 25, 79, 2357, 31, 2971, 6404, 291, 13, 1073, 13, 2724, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 2, 345, 743, 407, ...
3.757396
169
#coding:utf-8 import pandas as pd import matplotlib.pyplot as plt import pyecharts.options as opts from pyecharts.charts import Line df = pd.read_csv(u'500.txt', sep='\t') y = df[' (PE Ratio)'] plt.plot(y.values) plt.show()
[ 2, 66, 7656, 25, 40477, 12, 23, 198, 198, 11748, 19798, 292, 355, 279, 67, 198, 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 198, 11748, 12972, 3055, 5889, 13, 25811, 355, 2172, 82, 198, 6738, 12972, 3055, 5889, 13, 354,...
2.364583
96
import tensorflow as tf import tensorflow.contrib.slim as slim from util.util import *
[ 11748, 11192, 273, 11125, 355, 48700, 198, 11748, 11192, 273, 11125, 13, 3642, 822, 13, 82, 2475, 355, 18862, 198, 6738, 7736, 13, 22602, 1330, 1635 ]
3.307692
26
import dataclasses
[ 11748, 4818, 330, 28958, 201, 198, 201, 198, 201, 198, 220, 220, 220, 220, 201, 198 ]
1.875
16
from fit.messages import Message from fit.types.extended import Sport, WorkoutCapabilities, MessageIndex, \ Intensity, WktStepTarget, WktStepDuration from fit.types.general import UInt16, String, UInt32
[ 6738, 4197, 13, 37348, 1095, 1330, 16000, 198, 6738, 4197, 13, 19199, 13, 2302, 1631, 1330, 12771, 11, 5521, 448, 15610, 5738, 11, 16000, 15732, 11, 3467, 198, 220, 220, 220, 2558, 6377, 11, 370, 21841, 8600, 21745, 11, 370, 21841, 86...
3.370968
62
#!/usr/bin/env python # -*- coding: utf-8 -*- from setuptools import setup from fakebotdetector import __version__ def get_long_description(): """Return the README""" return open('README.md', 'r', encoding='utf8').read() setup( name='django-fake-bot-detector', version=__version__, url='https:/...
[ 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, 900, 37623, 10141, 1330, 9058, 198, 198, 6738, 8390, 13645, 15255, 9250, 1330, 11593, 9641, 834, 628, 198, 4...
2.784969
479
/usr/lib64/python3.7/__future__.py
[ 14, 14629, 14, 8019, 2414, 14, 29412, 18, 13, 22, 14, 834, 37443, 834, 13, 9078 ]
2.125
16
from jnpr.junos import Device from lxml import etree dev = Device(host='xxxx', user='demo', password='demo123', gather_facts=False) dev.open() cnf = dev.rpc.get_config() #cnf = dev.rpc.get_config(filter_xml=etree.XML('<configuration><interfaces/></configuration>')) print etree.tostring(cnf)
[ 6738, 474, 77, 1050, 13, 29741, 418, 1330, 16232, 198, 6738, 300, 19875, 1330, 2123, 631, 198, 198, 7959, 796, 16232, 7, 4774, 11639, 12343, 3256, 2836, 11639, 9536, 78, 3256, 9206, 11639, 9536, 78, 10163, 3256, 6431, 62, 37473, 28, 2...
2.625
112
ies = [] ies.append({ "iei" : "", "value" : "Selected NAS security algorithms", "type" : "security algorithms", "reference" : "9.9.3.23", "presence" : "M", "format" : "V", "length" : "1"}) ies.append({ "iei" : "", "value" : "NAS key set identifier", "type" : "key set identifier", "reference" : "9.9.3.21", "presence" : ...
[ 444, 796, 17635, 198, 444, 13, 33295, 15090, 366, 494, 72, 1, 1058, 366, 1600, 366, 8367, 1, 1058, 366, 4653, 12609, 7210, 2324, 16113, 1600, 366, 4906, 1, 1058, 366, 12961, 16113, 1600, 366, 35790, 1, 1058, 366, 24, 13, 24, 13, 1...
2.411215
428
import sys from hummingbot.core.api_throttler.data_types import RateLimit # REST endpoints BASE_PATH_URL = "https://api.kucoin.com" PUBLIC_WS_DATA_PATH_URL = "/api/v1/bullet-public" PRIVATE_WS_DATA_PATH_URL = "/api/v1/bullet-private" TICKER_PRICE_CHANGE_PATH_URL = "/api/v1/market/allTickers" EXCHANGE_INFO_PATH_URL = ...
[ 11748, 25064, 198, 198, 6738, 41465, 13645, 13, 7295, 13, 15042, 62, 26110, 926, 1754, 13, 7890, 62, 19199, 1330, 14806, 39184, 198, 198, 2, 30617, 886, 13033, 198, 33, 11159, 62, 34219, 62, 21886, 796, 366, 5450, 1378, 15042, 13, 230...
2.197556
982
from PIL import Image import numpy as np from tqdm import tqdm
[ 6738, 350, 4146, 1330, 7412, 198, 11748, 299, 32152, 355, 45941, 198, 6738, 256, 80, 36020, 1330, 256, 80, 36020, 628, 628, 628, 628 ]
2.916667
24
import numpy as np from models import SEM, clear_sem from sklearn import metrics import pandas as pd from scipy.special import logsumexp
[ 11748, 299, 32152, 355, 45941, 198, 6738, 4981, 1330, 48603, 11, 1598, 62, 43616, 198, 6738, 1341, 35720, 1330, 20731, 198, 11748, 19798, 292, 355, 279, 67, 198, 6738, 629, 541, 88, 13, 20887, 1330, 2604, 16345, 11201, 198 ]
3.512821
39