content
stringlengths
1
1.04M
input_ids
listlengths
1
774k
ratio_char_token
float64
0.38
22.9
token_count
int64
1
774k
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'mainwindowtest.ui' # # Created by: PyQt5 UI code generator 5.15.2 # # WARNING: Any manual changes made to this file will be lost when pyuic5 is # run again. Do not edit this file unless you know what you are doing. from PyQt5 import QtCor...
[ 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, 12417, 17497, 9288, 13, 9019, 6, 198, 2, 198, 2, 15622, 416, 25, 9485, 48, 83, 20, 12454, 2438, 17301, 642, ...
3.08547
117
#!/usr/bin/python #-*- coding: utf-8 -*- """.. module:: blueprints """ import json from flask import request, abort, current_app
[ 2, 48443, 14629, 14, 8800, 14, 29412, 198, 2, 12, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 492, 8265, 3712, 4171, 17190, 37227, 198, 11748, 33918, 198, 198, 6738, 42903, 1330, 2581, 11, 15614, 11, 1459, 62, 1324...
2.911111
45
from rest_framework.permissions import BasePermission, SAFE_METHODS ''' If the name is arabinda then allow all methods If the name is not arabinda and the name contains even number of characters then allow only SAFE_METHODS otherwise not allowed to perform any operation. '''
[ 6738, 1334, 62, 30604, 13, 525, 8481, 1330, 7308, 5990, 3411, 11, 37630, 36, 62, 49273, 50, 628, 628, 628, 198, 7061, 6, 198, 1532, 262, 1438, 318, 610, 397, 22261, 788, 1249, 477, 5050, 1002, 262, 1438, 318, 407, 610, 397, 22261, ...
3.736842
76
################################################################################# # Copyright (c) 2018 Creative Sphere Limited. # All rights reserved. This program and the accompanying materials # are made available under the terms of the Apache License v2.0 # which accompanies this distribution, and is available at # ...
[ 29113, 29113, 14468, 2, 198, 2, 15069, 357, 66, 8, 2864, 17404, 31798, 15302, 13, 198, 2, 1439, 2489, 10395, 13, 770, 1430, 290, 262, 19249, 5696, 198, 2, 389, 925, 1695, 739, 262, 2846, 286, 262, 24843, 13789, 410, 17, 13, 15, 19...
4.758621
116
# test12.py a = _n('a') b = _n('b') c = _n('c') root = a + a + a^b + b^a + a^(b|c)
[ 2, 1332, 1065, 13, 9078, 198, 198, 64, 796, 4808, 77, 10786, 64, 11537, 198, 65, 796, 4808, 77, 10786, 65, 11537, 198, 66, 796, 4808, 77, 10786, 66, 11537, 198, 198, 15763, 796, 257, 1343, 257, 1343, 257, 61, 65, 1343, 275, 61, ...
1.584906
53
"""This module is for sending scripts through Adams/PPT """ import os import subprocess import re import time import platform import jinja2 from numpy import genfromtxt import matplotlib.pyplot as plt from thornpy.signal import manually_clean_sig, remove_data_point, manually_clean_sigs, low_pass from thornpy.signal i...
[ 37811, 1212, 8265, 318, 329, 7216, 14750, 832, 12620, 14, 10246, 51, 198, 198, 37811, 198, 11748, 28686, 198, 11748, 850, 14681, 198, 11748, 302, 198, 11748, 640, 198, 11748, 3859, 198, 198, 11748, 474, 259, 6592, 17, 198, 6738, 299, ...
2.476938
5,095
""" Move this to wherever once we establish a setup for the Application Framework """ import re from collections import deque from typing import Callable, Deque from time import perf_counter from cloudcix_metrics import prepare_metrics from django.http.response import HttpResponseBase from rest_framework.request impor...
[ 37811, 198, 21774, 428, 284, 14530, 1752, 356, 4474, 257, 9058, 329, 262, 15678, 25161, 198, 37811, 198, 11748, 302, 198, 6738, 17268, 1330, 390, 4188, 198, 6738, 19720, 1330, 4889, 540, 11, 1024, 4188, 198, 6738, 640, 1330, 23035, 62, ...
2.752855
1,226
from socket import * while True: choc = str(input("[1] Host\n[2] Connect\n[0] Exit\n")) if choc == '1': hirc() elif choc == '2': circ() elif choc == '0': exit(0) else: print("wrong input, try again")
[ 6738, 17802, 1330, 1635, 198, 198, 4514, 6407, 25, 198, 197, 354, 420, 796, 965, 7, 15414, 7203, 58, 16, 60, 14504, 59, 77, 58, 17, 60, 8113, 59, 77, 58, 15, 60, 29739, 59, 77, 48774, 198, 197, 361, 442, 420, 6624, 705, 16, 10...
2.14
100
from tramway.analyzer import * import numpy as np import pandas as pd from ..data import project_dir datafile = project_dir / 'data/Image_traj.txt'
[ 6738, 29957, 1014, 13, 38200, 9107, 1330, 1635, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 19798, 292, 355, 279, 67, 198, 198, 6738, 11485, 7890, 1330, 1628, 62, 15908, 198, 198, 7890, 7753, 796, 1628, 62, 15908, 1220, 705, 7890, ...
3
50
import os import sys sys.path.append(os.path.normpath(os.path.join(os.path.abspath(__file__), '..', '..', '..', "common"))) from env_indigo import * indigo = Indigo() indigo.setOption("molfile-saving-skip-date", "1") testReactionInstrumentation()
[ 11748, 28686, 198, 11748, 25064, 198, 17597, 13, 6978, 13, 33295, 7, 418, 13, 6978, 13, 27237, 6978, 7, 418, 13, 6978, 13, 22179, 7, 418, 13, 6978, 13, 397, 2777, 776, 7, 834, 7753, 834, 828, 705, 492, 3256, 705, 492, 3256, 705, ...
2.524752
101
try: a = int(input('digite um valor')) b = int(input('di')) r = a / b except (ValueError, TypeError): print('Houve um problema com dados digitados!') except KeyboardInterrupt: print('preferio não continuar') else: print(f'o resultado é {r:.2f:}') finally: print('Volte sempre! Muito obrigado...
[ 28311, 25, 198, 220, 220, 220, 257, 796, 493, 7, 15414, 10786, 12894, 578, 23781, 1188, 273, 6, 4008, 198, 220, 220, 220, 275, 796, 493, 7, 15414, 10786, 10989, 6, 4008, 198, 220, 220, 220, 374, 796, 257, 1220, 275, 198, 16341, 35...
2.355072
138
from myhdl import * from hex_reader import * @block def BRAM(clk,addr,di,enstore,we,re,do,done, A_WIDTH=5, W_WIDTH=32,B_WIDTH=8): """ """ assert len(addr) == A_WIDTH, "Error: Address width mismatch." if do is not None: assert len(di) == len(do) == W_WIDTH, "Error: Data width mismatch in p...
[ 6738, 616, 71, 25404, 1330, 1635, 197, 198, 6738, 17910, 62, 46862, 1330, 1635, 197, 198, 198, 31, 9967, 198, 4299, 11177, 2390, 7, 565, 74, 11, 29851, 11, 10989, 11, 268, 8095, 11, 732, 11, 260, 11, 4598, 11, 28060, 11, 198, 220,...
2.069808
573
from sqlalchemy import Column, Integer, String, ForeignKey from sqlalchemy.ext.declarative import declarative_base from sqlalchemy.orm import relationship ModelBase = declarative_base()
[ 6738, 44161, 282, 26599, 1330, 29201, 11, 34142, 11, 10903, 11, 8708, 9218, 198, 6738, 44161, 282, 26599, 13, 2302, 13, 32446, 283, 876, 1330, 2377, 283, 876, 62, 8692, 198, 6738, 44161, 282, 26599, 13, 579, 1330, 2776, 198, 198, 1763...
3.686275
51
""" --- Atom data --- Written by D. J. Whiting (2017) ** Modified by F. S. Ponciano Ojeda (2021) ** Quantum Light & Matter Group, Durham University, UK Simple database for housing atomic species data for use in calculations of energy levels. """ def atomic_structure_coefficients(atom,I,L,J): ''' ...
[ 37811, 11420, 33102, 1366, 11420, 628, 197, 25354, 416, 360, 13, 449, 13, 854, 1780, 357, 5539, 8, 198, 197, 1174, 40499, 416, 376, 13, 311, 13, 50210, 66, 10115, 440, 73, 18082, 357, 1238, 2481, 8, 12429, 198, 197, 24915, 388, 4401...
1.423295
2,112
import sqlalchemy as sa
[ 11748, 44161, 282, 26599, 355, 473, 628, 628 ]
3.375
8
import numpy as np import scipy.optimize as so class mlp_cg: """ A Multi-Layer Perceptron""" def __init__(self,inputs,targets,nhidden,beta=1,momentum=0.9,outtype='logistic'): """ Constructor """ # Set up network size self.nin = np.shape(inputs)[1] self.nout = np.shape(targe...
[ 11748, 299, 32152, 355, 45941, 198, 11748, 629, 541, 88, 13, 40085, 1096, 355, 523, 198, 198, 4871, 25962, 79, 62, 66, 70, 25, 198, 220, 220, 220, 37227, 317, 15237, 12, 49925, 2448, 984, 1313, 37811, 198, 220, 220, 220, 220, 198, ...
2.089592
1,518
import taichi as ti from solar_system import SolarSystem, Sun, Planet from datetime import datetime ti.init(arch=ti.gpu) if __name__ == "__main__": main()
[ 11748, 20486, 16590, 355, 46668, 198, 6738, 6591, 62, 10057, 1330, 12347, 11964, 11, 3825, 11, 11397, 198, 6738, 4818, 8079, 1330, 4818, 8079, 198, 198, 20259, 13, 15003, 7, 998, 28, 20259, 13, 46999, 8, 628, 628, 198, 361, 11593, 367...
2.963636
55
import abc from controller.itranslator import ITranslator
[ 11748, 450, 66, 198, 198, 6738, 10444, 13, 270, 26084, 41880, 1330, 314, 8291, 41880, 628 ]
3.75
16
from django.urls import reverse from django.views import View from django.http import HttpResponse from django.contrib.sessions.middleware import SessionMiddleware from django.test import TestCase, RequestFactory from django.core.exceptions import PermissionDenied from datetime import timedelta from tables.models impo...
[ 6738, 42625, 14208, 13, 6371, 82, 1330, 9575, 198, 6738, 42625, 14208, 13, 33571, 1330, 3582, 198, 6738, 42625, 14208, 13, 4023, 1330, 367, 29281, 31077, 198, 6738, 42625, 14208, 13, 3642, 822, 13, 82, 6202, 13, 27171, 1574, 1330, 23575...
2.437242
1,697
""" Unit tests for the algorithm.py module """ # pragma pylint: disable=redefined-outer-name import numpy as np import pytest from traveling_salesperson import algorithm @pytest.fixture() def pyramid_distance_matrix_fixture(): r"""A distance matrix, corresponding to a lopsided pyramid, for testing the neares...
[ 37811, 198, 26453, 5254, 329, 262, 11862, 13, 9078, 8265, 198, 37811, 198, 2, 23864, 2611, 279, 2645, 600, 25, 15560, 28, 445, 18156, 12, 39605, 12, 3672, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 12972, 9288, 198, 198, 6738, 11...
2.085573
2,232
# -*- coding: utf-8 -*- import gc import uos import utime import hw_urequests import machine import portable_firmware_constants strMAC = ''.join(['%02X'%i for i in machine.unique_id()]) # # Watchdog # objWdt = None feedWatchdog = lambda: None '''True if power on. False if reboot by software or watchdog.''' bPowerO...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 11748, 308, 66, 198, 11748, 334, 418, 198, 11748, 3384, 524, 198, 11748, 289, 86, 62, 495, 421, 3558, 198, 11748, 4572, 198, 11748, 17726, 62, 69, 2533, 1574, 62,...
2.738942
1,153
# coding: utf-8 """ RTRAttributes.py The Clear BSD License Copyright (c) – 2016, NetApp, Inc. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted (subject to the limitations in the disclaimer below) provided that the following conditions are met: ...
[ 2, 19617, 25, 3384, 69, 12, 23, 198, 198, 37811, 198, 14181, 3861, 926, 7657, 13, 9078, 628, 383, 11459, 347, 10305, 13789, 628, 15069, 357, 66, 8, 784, 1584, 11, 3433, 4677, 11, 3457, 13, 1439, 2489, 10395, 13, 628, 2297, 396, 38...
2.473499
2,849
import gym, ray #Import any agents you want to train, list found here: https://docs.ray.io/en/latest/rllib/rllib-algorithms.html from ray.rllib.agents import ppo,dqn,a3c from environments.defender_game import PowerGrid import pypsa import numpy as np from ray.tune.registry import register_env import pickle import time ...
[ 11748, 11550, 11, 26842, 198, 2, 20939, 597, 6554, 345, 765, 284, 4512, 11, 1351, 1043, 994, 25, 3740, 1378, 31628, 13, 2433, 13, 952, 14, 268, 14, 42861, 14, 81, 297, 571, 14, 81, 297, 571, 12, 282, 7727, 907, 13, 6494, 198, 67...
2.711423
499
import random # mod-sqrt
[ 11748, 4738, 198, 198, 2, 953, 12, 31166, 17034 ]
2.777778
9
from sqlalchemy import create_engine from sqlalchemy.orm import sessionmaker import sys # Supporting Python3 try: import urllib.request as request except ImportError: import urllib as request import xml.etree.ElementTree as ET import argparse import pymysql import pyodbc import psycopg2 # ###...
[ 6738, 44161, 282, 26599, 1330, 2251, 62, 18392, 201, 198, 6738, 44161, 282, 26599, 13, 579, 1330, 6246, 10297, 201, 198, 11748, 25064, 201, 198, 201, 198, 2, 44188, 11361, 18, 201, 198, 28311, 25, 201, 198, 220, 220, 220, 1330, 2956, ...
2.424426
2,481
""" Module containing functions to differentiate functions using pytorch. """ import functools import warnings import numpy as np try: import torch except ImportError: torch = None else: from torch import autograd from ._backend import Backend from .. import make_tracing_backend_decorator from ...tools im...
[ 37811, 198, 26796, 7268, 5499, 284, 28754, 5499, 1262, 12972, 13165, 354, 13, 198, 37811, 198, 11748, 1257, 310, 10141, 198, 11748, 14601, 198, 198, 11748, 299, 32152, 355, 45941, 198, 28311, 25, 198, 220, 220, 220, 1330, 28034, 198, 16...
3.274074
135
import os from pathlib import Path import sys # Taking input print_string = """ Type Path of the directory OR Press enter for running the script on current directory: OR Type quit """ print(print_string + "\n\n") input_path = input("Input:") print("\n\n") # Script will terminate if input is 'quit' if input_path == "q...
[ 11748, 28686, 198, 6738, 3108, 8019, 1330, 10644, 198, 11748, 25064, 198, 198, 2, 20879, 5128, 198, 4798, 62, 8841, 796, 37227, 198, 6030, 10644, 286, 262, 8619, 198, 1581, 198, 13800, 3802, 329, 2491, 262, 4226, 319, 1459, 8619, 25, ...
2.864865
851
import time from selenium import webdriver from selenium import common import func_timeout import datetime import requests import logging import zipfile import winreg import sys import os MAX_RETRIES = 0 def send_massage(content: str): """ 发送短信/邮件 :param content: 邮件内容 :return...
[ 11748, 640, 201, 198, 201, 198, 6738, 384, 11925, 1505, 1330, 3992, 26230, 201, 198, 6738, 384, 11925, 1505, 1330, 2219, 201, 198, 11748, 25439, 62, 48678, 201, 198, 11748, 4818, 8079, 201, 198, 11748, 7007, 201, 198, 11748, 18931, 201,...
1.820931
4,166
# Generated by Django 3.0.5 on 2020-08-03 14:19 from django.db import migrations, models
[ 2, 2980, 515, 416, 37770, 513, 13, 15, 13, 20, 319, 12131, 12, 2919, 12, 3070, 1478, 25, 1129, 198, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 11, 4981, 628 ]
2.84375
32
# python manage.py test api.tests.tests.test_models from django.test import TestCase, TransactionTestCase from django.contrib.auth.models import User from django.db.utils import IntegrityError from django.test.testcases import LiveServerTestCase, LiveServerThread from mixer.backend.django import mixer from datetime i...
[ 2, 21015, 6687, 13, 9078, 1332, 40391, 13, 41989, 13, 41989, 13, 9288, 62, 27530, 198, 198, 6738, 42625, 14208, 13, 9288, 1330, 6208, 20448, 11, 45389, 14402, 20448, 198, 6738, 42625, 14208, 13, 3642, 822, 13, 18439, 13, 27530, 1330, ...
2.682943
1,495
# File: forescoutcounteract_consts.py # Copyright (c) 2018-2021 Splunk Inc. # # Licensed under Apache 2.0 (https://www.apache.org/licenses/LICENSE-2.0.txt) # # -- # Define your constants here FS_DEX_HOST_ENDPOINT = '/fsapi/niCore/Hosts' FS_DEX_LIST_ENDPOINT = '/fsapi/niCore/Lists' FS_DEX_TEST_CONNECTIVITY = \ """...
[ 2, 9220, 25, 1674, 1416, 448, 24588, 529, 62, 1102, 6448, 13, 9078, 198, 2, 15069, 357, 66, 8, 2864, 12, 1238, 2481, 13341, 2954, 3457, 13, 198, 2, 198, 2, 49962, 739, 24843, 362, 13, 15, 357, 5450, 1378, 2503, 13, 43073, 13, 23...
2.067663
1,271
from flask_static_digest import parse_digest_host_url import pytest as pt @pt.mark.parametrize( "digest_host_url, expected", [ ( "https://cdn.example.com", ("https://cdn.example.com", "") ), ( "https://cdn.example.com/", ("https://cdn.exampl...
[ 6738, 42903, 62, 12708, 62, 12894, 395, 1330, 21136, 62, 12894, 395, 62, 4774, 62, 6371, 198, 198, 11748, 12972, 9288, 355, 42975, 628, 198, 31, 457, 13, 4102, 13, 17143, 316, 380, 2736, 7, 198, 220, 220, 220, 366, 12894, 395, 62, ...
1.845161
465
from .model import get_cam_model, get_model MODEL_FACTORY = {'vgg_base': get_model, 'vgg_cam': get_cam_model}
[ 6738, 764, 19849, 1330, 651, 62, 20991, 62, 19849, 11, 651, 62, 19849, 198, 198, 33365, 3698, 62, 37, 10659, 15513, 796, 1391, 6, 85, 1130, 62, 8692, 10354, 651, 62, 19849, 11, 705, 85, 1130, 62, 20991, 10354, 651, 62, 20991, 62, ...
2.413043
46
import socket conn = socket.socket(socket.AF_INET, socket.SOCK_STREAM) conn.connect (("127.0.0.1", 14900)) hels = "Hello, server" conn.send(bytes(hels, "utf-8")) data = conn.recv(16384) udata = data.decode("utf-8") print(udata) conn.close()
[ 11748, 17802, 198, 198, 37043, 796, 17802, 13, 44971, 7, 44971, 13, 8579, 62, 1268, 2767, 11, 17802, 13, 50, 11290, 62, 2257, 32235, 8, 198, 37043, 13, 8443, 357, 7203, 16799, 13, 15, 13, 15, 13, 16, 1600, 1478, 12865, 4008, 198, ...
2.359223
103
from cpstats.models.model import VERDICT_AC, Task from flask import render_template from cpstats.models import model from cpstats import app @app.route('/') @app.route('/index') SUBNAV = [ 'general', 'submissions', 'tasks', 'achievements' ] @app.route('/user/<string:username>') @app.route('/user/<s...
[ 6738, 31396, 34242, 13, 27530, 13, 19849, 1330, 33310, 35, 18379, 62, 2246, 11, 15941, 198, 6738, 42903, 1330, 8543, 62, 28243, 198, 6738, 31396, 34242, 13, 27530, 1330, 2746, 198, 6738, 31396, 34242, 1330, 598, 198, 198, 31, 1324, 13, ...
2.61745
149
"""Flreportviewer module.""" from PyQt5 import QtWidgets, QtCore, QtXml from pineboolib.core import decorators from pineboolib.application.qsatypes.sysbasetype import SysBaseType from pineboolib.fllegacy.flutil import FLUtil # from pineboolib.fllegacy.flpicture import FLPicture from .flsqlquery import FLSqlQuery fro...
[ 37811, 7414, 13116, 1177, 263, 8265, 526, 15931, 198, 6738, 9485, 48, 83, 20, 1330, 33734, 54, 312, 11407, 11, 33734, 14055, 11, 33734, 55, 4029, 198, 198, 6738, 20161, 30388, 571, 13, 7295, 1330, 11705, 2024, 198, 6738, 20161, 30388, ...
2.210905
7,079
# MIT License # Copyright (c) 2018-2019 Groupe Allo-Media # 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...
[ 2, 17168, 13789, 198, 198, 2, 15069, 357, 66, 8, 2864, 12, 23344, 402, 472, 431, 1439, 78, 12, 13152, 198, 198, 2, 2448, 3411, 318, 29376, 7520, 11, 1479, 286, 3877, 11, 284, 597, 1048, 16727, 257, 4866, 198, 2, 286, 428, 3788, ...
2.964036
1,001
""" Matrix multiply generator. Generates an Eigen matrix multiply override kernel. """
[ 37811, 628, 220, 24936, 29162, 17301, 13, 2980, 689, 281, 412, 9324, 17593, 29162, 20957, 9720, 13, 198, 198, 37811, 628 ]
4.380952
21
import datetime import importlib import logging import sys from redash.query_runner import * from redash.utils import json_dumps, json_loads from redash import models from RestrictedPython import compile_restricted from RestrictedPython.Guards import safe_builtins logger = logging.getLogger(__name__) class CustomP...
[ 11748, 4818, 8079, 198, 11748, 1330, 8019, 198, 11748, 18931, 198, 11748, 25064, 198, 198, 6738, 2266, 1077, 13, 22766, 62, 16737, 1330, 1635, 198, 6738, 2266, 1077, 13, 26791, 1330, 33918, 62, 67, 8142, 11, 33918, 62, 46030, 198, 6738,...
3.585366
123
#-*- coding: utf-8 -*- ''' Created on 21 06 2019 @author: lukhnevsn ''' #import packages ############################################## from java.io import BufferedReader ,FileReader, IOException; from java.sql import PreparedStatement,Connection,DriverManager,SQLException,Statement,Types, ResultSet; from java.n...
[ 2, 12, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 220, 198, 7061, 6, 198, 41972, 319, 2310, 9130, 13130, 220, 198, 198, 31, 9800, 25, 300, 2724, 71, 710, 14259, 77, 198, 7061, 6, 628, 198, 198, 2, 11748, 10392, 198, 29113...
2.396858
3,883
import mock import pytest from paasta_tools import tron_tools from paasta_tools.tron_tools import MASTER_NAMESPACE from paasta_tools.utils import InvalidInstanceConfig from paasta_tools.utils import NoConfigurationForServiceError from paasta_tools.utils import NoDeploymentsAvailable @mock.patch('service_configur...
[ 11748, 15290, 198, 11748, 12972, 9288, 198, 198, 6738, 14187, 40197, 62, 31391, 1330, 491, 261, 62, 31391, 198, 6738, 14187, 40197, 62, 31391, 13, 83, 1313, 62, 31391, 1330, 32337, 5781, 62, 45, 29559, 47, 11598, 198, 6738, 14187, 40197...
3.09434
212
fun=generator() fun.__next__()
[ 201, 198, 201, 198, 12543, 28, 8612, 1352, 3419, 201, 198, 12543, 13, 834, 19545, 834, 3419 ]
2.058824
17
import matplotlib.pyplot as plt import numpy as np # Displays the probability that the current trajectory matches the stored trajectores at every instant in time. def plot_distribution(dof_names, mean, upper_bound, lower_bound): """Plots a given probability distribution. """ figures_per_plot = np.min([4, m...
[ 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 198, 11748, 299, 32152, 355, 45941, 198, 198, 2, 3167, 26024, 262, 12867, 326, 262, 1459, 22942, 7466, 262, 8574, 20134, 2850, 379, 790, 9113, 287, 640, 13, 198, 4299, 7110, 62,...
2.414013
1,570
"""Guarde en lista `naturales` los primeros 100 números naturales (desde el 1) usando el bucle while """ naturales = [] i = 1 while i <= 100: naturales.append(i) i += 1 """Guarde en `acumulado` una lista con el siguiente patrón: ['1','1 2','1 2 3','1 2 3 4','1 2 3 4 5',...,'...47 48 49 50'] Hasta el número 5...
[ 198, 37811, 24502, 68, 551, 1351, 64, 4600, 11802, 274, 63, 22346, 2684, 27498, 1802, 299, 21356, 647, 418, 3288, 274, 357, 8906, 2934, 1288, 352, 8, 220, 198, 385, 25440, 1288, 809, 2375, 981, 198, 37811, 198, 198, 11802, 274, 796, ...
2.254758
2,049
from abc import abstractmethod from typing import Callable, List, Optional, Type import redbot.core.commands as commands from redbot.core.commands import Cog, Command from .helper_classes import CogABCMeta
[ 6738, 450, 66, 1330, 12531, 24396, 198, 6738, 19720, 1330, 4889, 540, 11, 7343, 11, 32233, 11, 5994, 198, 198, 11748, 2266, 13645, 13, 7295, 13, 9503, 1746, 355, 9729, 198, 6738, 2266, 13645, 13, 7295, 13, 9503, 1746, 1330, 327, 519, ...
3.508197
61
# coding:utf-8 """ 354. Russian Doll Envelopes Hard You have a number of envelopes with widths and heights given as a pair of integers (w, h). One envelope can fit into another if and only if both the width and height of one envelope is greater than the width and height of the other envelope. What is the maximum num...
[ 2, 19617, 25, 40477, 12, 23, 198, 198, 37811, 198, 32182, 13, 3394, 22209, 2039, 1091, 274, 198, 17309, 198, 198, 1639, 423, 257, 1271, 286, 16441, 274, 351, 9647, 82, 290, 23245, 1813, 355, 257, 5166, 286, 37014, 357, 86, 11, 289, ...
2.859649
285
from airflow.dags.common import config from airflow.models import Variable # Test variables, state and xcom passing values
[ 6738, 45771, 13, 67, 3775, 13, 11321, 1330, 4566, 198, 6738, 45771, 13, 27530, 1330, 35748, 628, 198, 2, 6208, 9633, 11, 1181, 290, 2124, 785, 6427, 3815, 198 ]
4.310345
29
import json from typing import Optional import pulumi_aws as aws from infra.lambda_ import Lambda, LambdaArgs from infra.metric_forwarder import MetricForwarder from infra.network import Network import pulumi class QueueDrivenLambda(pulumi.ComponentResource): """ A lambda function that is triggered by an SQS qu...
[ 11748, 33918, 198, 6738, 19720, 1330, 32233, 198, 198, 11748, 17472, 12994, 62, 8356, 355, 3253, 82, 198, 6738, 1167, 430, 13, 50033, 62, 1330, 21114, 6814, 11, 21114, 6814, 42035, 198, 6738, 1167, 430, 13, 4164, 1173, 62, 11813, 263, ...
3.427083
96
import asyncio import re import time import datetime import aiohttp from bs4 import BeautifulSoup
[ 11748, 30351, 952, 198, 11748, 302, 198, 11748, 640, 198, 11748, 4818, 8079, 198, 11748, 257, 952, 4023, 198, 198, 6738, 275, 82, 19, 1330, 23762, 50, 10486, 198 ]
3.413793
29
# This script will scrape all the internships with given url # and create a CSV sheet out of it. # Necessary imports import requests from bs4 import BeautifulSoup import pandas as pd # A dictionary that will initially hold all scraped values scraped_data = { 'heading': [], 'company': [], 'stip...
[ 2, 770, 4226, 481, 42778, 477, 262, 1788, 26313, 351, 1813, 19016, 201, 198, 2, 290, 2251, 257, 44189, 9629, 503, 286, 340, 13, 201, 198, 201, 198, 2, 19652, 408, 560, 17944, 201, 198, 11748, 7007, 201, 198, 6738, 275, 82, 19, 133...
2.485566
1,732
# Date: 24/06/2019 # Author: Callum Bruce # Earth, Moon example. # To run, ensure 'de430.bsp' is downloaded to the working directory. See https://naif.jpl.nasa.gov/pub/naif/generic_kernels/spk/planets/. import numpy as np from mayavi import mlab import datetime from jplephem.spk import SPK import pysamss # Step 1: Set...
[ 2, 7536, 25, 1987, 14, 3312, 14, 23344, 198, 2, 6434, 25, 4889, 388, 11088, 198, 2, 3668, 11, 6869, 1672, 13, 198, 2, 1675, 1057, 11, 4155, 705, 2934, 31794, 13, 24145, 6, 318, 15680, 284, 262, 1762, 8619, 13, 4091, 3740, 1378, ...
2.693982
781
# http://www.codewars.com/kata/vasya-clerk/python import unittest import vasya_clerk
[ 2, 2638, 1378, 2503, 13, 19815, 413, 945, 13, 785, 14, 74, 1045, 14, 11017, 3972, 12, 565, 9587, 14, 29412, 198, 198, 11748, 555, 715, 395, 198, 11748, 34439, 3972, 62, 565, 9587, 628 ]
2.485714
35
from requests import Session import requests import os # NLP_ENGINE_URL = "http://127.0.0.1:5001" # INTENTS_MANAGMENT_URL = "http://127.0.0.1:5002" # CONTEXT_MANAGMENT_URL = "http://127.0.0.1:5003" NLP_ENGINE_URL = os.environ.get('NLP_ENGINE_URL') INTENTS_MANAGMENT_URL = os.environ.get('INTENTS_MANAGMENT_URL') CONTEX...
[ 6738, 7007, 1330, 23575, 198, 11748, 7007, 198, 11748, 28686, 198, 198, 2, 399, 19930, 62, 26808, 8881, 62, 21886, 796, 366, 4023, 1378, 16799, 13, 15, 13, 15, 13, 16, 25, 4059, 16, 1, 198, 2, 17828, 15365, 62, 10725, 4760, 10979, ...
2.484499
2,516
import re if __name__ == '__main__': main()
[ 11748, 302, 198, 220, 220, 220, 220, 220, 220, 220, 220, 198, 220, 220, 220, 220, 220, 220, 220, 220, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 198, 220, 220, 220, 1388, 3419 ]
1.756757
37
""" Join two sets of intervals using their overlap as the key. The intervals MUST be sorted by chrom(lexicographically), start(arithmetically) and end(arithmetically). This works by simply walking through the inputs in O(n) time. """ import math from bx.intervals.io import GenomicInterval from .quicksect import Int...
[ 37811, 198, 18234, 734, 5621, 286, 20016, 1262, 511, 21721, 355, 262, 1994, 13, 220, 383, 198, 3849, 12786, 17191, 307, 23243, 416, 15358, 7, 2588, 291, 33145, 828, 198, 9688, 7, 283, 342, 4164, 1146, 8, 290, 886, 7, 283, 342, 4164,...
3.515789
95
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Thu Nov 5 09:45:45 2020 @author: hien """ import numpy as np import torch from src.deep_q_network import Critic, Actor from src.replay_memory import ReplayBuffer from random import random, randint, choices, uniform from src import utils from src.utils impo...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 198, 41972, 319, 26223, 5267, 220, 642, 7769, 25, 2231, 25, 2231, 12131, 198, 198, 31, 9800, 25, 289, 2013...
3.302632
152
#!/usr/bin/env python # coding: utf8 ''' @author: qitan @contact: qqing_lai@hotmail.com @file: myinclusion.py @time: 2017/3/30 15:32 @desc: ''' from django import template from django.db.models import Q from deploy.models import * from userauth.models import * register = template.Library() def show_single_minions(...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 19617, 25, 3384, 69, 23, 198, 7061, 6, 198, 31, 9800, 25, 10662, 18642, 198, 31, 32057, 25, 10662, 80, 278, 62, 75, 1872, 31, 8940, 4529, 13, 785, 198, 31, 7753, 25, 616, 259,...
1.956995
1,744
# call this script with `python -m evaluation.evaluate_poselines_globalaction` import numpy as np from numpy.core.fromnumeric import sort import pandas as pd import datetime import torch from torch.functional import norm from tqdm import tqdm from . import eval_utils import cv2 from .compare_deepfeatures import negati...
[ 2, 869, 428, 4226, 351, 4600, 29412, 532, 76, 12660, 13, 49786, 62, 3455, 6615, 62, 20541, 2673, 63, 198, 11748, 299, 32152, 355, 45941, 198, 6738, 299, 32152, 13, 7295, 13, 6738, 77, 39223, 1330, 3297, 198, 11748, 19798, 292, 355, ...
2.95
260
import torch.autograd import torch.nn as nn from dataset import Dataset2 if __name__ == '__main__': num_epoch = 500 data_vector_dim = 20 item_of_single_class = 10 train_dataset = Dataset2(item_of_single_class=item_of_single_class, data_vector_dim=data_vector_dim) test_dataset = Datas...
[ 11748, 28034, 13, 2306, 519, 6335, 201, 198, 11748, 28034, 13, 20471, 355, 299, 77, 201, 198, 6738, 27039, 1330, 16092, 292, 316, 17, 201, 198, 201, 198, 201, 198, 201, 198, 201, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 83...
2.187779
671
#!/usr/bin/env python # -*- coding: utf-8 """ Taxonomy Resolver :copyright: (c) 2020-2021. :license: Apache 2.0, see LICENSE for more details. """ import io import zipfile import pandas as pd from taxonresolver.utils import parse_tax_ids from taxonresolver.utils import print_and_exit from taxonresolver.utils import...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 198, 198, 37811, 198, 27017, 30565, 1874, 14375, 198, 198, 25, 22163, 4766, 25, 357, 66, 8, 12131, 12, 1238, 2481, 13, 198, 25, 43085, ...
2.506801
3,676
import json import threading import time import datetime import socket import asyncio from collections import deque from queue import Empty, Queue from game.const import * from game.world import Chunk from kademlia.server import DHTServer
[ 11748, 33918, 198, 11748, 4704, 278, 198, 11748, 640, 198, 11748, 4818, 8079, 198, 11748, 17802, 198, 11748, 30351, 952, 198, 6738, 17268, 1330, 390, 4188, 198, 6738, 16834, 1330, 33523, 11, 4670, 518, 198, 198, 6738, 983, 13, 9979, 133...
3.784615
65
import os os.environ['DECORRELATE'] = "False" from DeepJetCore.training.training_base import training_base from Losses import loss_NLL, loss_meansquared from DeepJetCore.modeltools import fixLayersContaining,printLayerInfosAndWeights import subprocess import tensorflow as tf from keras import backend as k config ...
[ 11748, 28686, 198, 418, 13, 268, 2268, 17816, 41374, 1581, 16448, 6158, 20520, 796, 366, 25101, 1, 198, 6738, 10766, 42273, 14055, 13, 34409, 13, 34409, 62, 8692, 1330, 3047, 62, 8692, 198, 6738, 22014, 274, 1330, 2994, 62, 45, 3069, ...
1.92296
1,311
import cv2 cv2.namedWindow("test") cv2.namedWindow("test1") cam = cv2.VideoCapture(0) detector = cv2.CascadeClassifier("haarcascade_frontalface_alt.xml") while True: temp , frame = cam.read() if not temp: break; faces = detector.detectMultiScale(frame) cv2.imshow("test1" , frame) for face in...
[ 11748, 269, 85, 17, 198, 33967, 17, 13, 13190, 27703, 7203, 9288, 4943, 198, 33967, 17, 13, 13190, 27703, 7203, 9288, 16, 4943, 198, 20991, 796, 269, 85, 17, 13, 10798, 49630, 7, 15, 8, 198, 15255, 9250, 796, 269, 85, 17, 13, 34, ...
2.143382
272
import pandas as pd def assess_NA(data): """ Returns a pandas dataframe denoting the total number of NA values and the percentage of NA values in each column. The column names are noted on the index. Parameters ---------- data: dataframe """ # pandas series denoting f...
[ 11748, 19798, 292, 355, 279, 67, 201, 198, 201, 198, 201, 198, 4299, 4659, 62, 4535, 7, 7890, 2599, 201, 198, 220, 220, 220, 37227, 201, 198, 220, 220, 220, 16409, 257, 19798, 292, 1366, 14535, 2853, 10720, 262, 2472, 1271, 286, 117...
2.550409
367
import colored
[ 11748, 16396 ]
7
2
l = [['felipe', 99], ['tamara', 50], ['fernando', 60]] l1 = sorted(l) l = sorted(l) print(l) print(l1)
[ 75, 796, 16410, 6, 69, 417, 3757, 3256, 7388, 4357, 37250, 83, 47848, 3256, 2026, 4357, 37250, 69, 13023, 78, 3256, 3126, 11907, 198, 75, 16, 796, 23243, 7, 75, 8, 198, 75, 796, 23243, 7, 75, 8, 198, 4798, 7, 75, 8, 198, 4798, ...
2.081633
49
""" This module implements the `se interactive-replace` command. """ import argparse import curses from pathlib import Path import os from math import floor from typing import Tuple import regex import se TAB_SIZE = 8 def _get_text_dimensions(text: str) -> Tuple[int, int]: """ Get the number of rows and column...
[ 37811, 198, 1212, 8265, 23986, 262, 4600, 325, 14333, 12, 33491, 63, 3141, 13, 198, 37811, 198, 198, 11748, 1822, 29572, 198, 11748, 43878, 198, 6738, 3108, 8019, 1330, 10644, 198, 11748, 28686, 198, 6738, 10688, 1330, 4314, 198, 6738, ...
2.555872
6,327
default_style = { 'alpha': .6, 'width': 1, 'node_size': 100, 'node_color': '#2EB1E6', 'edge_color': '#cccccc', } solution_style = default_style.copy() solution_style.update(node_color='#ff0000')
[ 12286, 62, 7635, 796, 1391, 198, 220, 220, 220, 705, 26591, 10354, 764, 21, 11, 198, 220, 220, 220, 705, 10394, 10354, 352, 11, 198, 220, 220, 220, 705, 17440, 62, 7857, 10354, 1802, 11, 198, 220, 220, 220, 705, 17440, 62, 8043, 1...
2.181818
99
"""empty message Revision ID: bff862ed6870 Revises: 2ee4f69c4623 Create Date: 2019-11-28 17:42:47.448962 """ from alembic import op import sqlalchemy as sa from sqlalchemy.dialects import mysql # revision identifiers, used by Alembic. revision = 'bff862ed6870' down_revision = '2ee4f69c4623' branch_labels = None depe...
[ 37811, 28920, 3275, 198, 198, 18009, 1166, 4522, 25, 275, 487, 4521, 17, 276, 3104, 2154, 198, 18009, 2696, 25, 362, 1453, 19, 69, 3388, 66, 3510, 1954, 198, 16447, 7536, 25, 13130, 12, 1157, 12, 2078, 1596, 25, 3682, 25, 2857, 13, ...
2.545455
132
import random import warnings import numpy as np from nose.tools import raises, assert_not_equal from nose.tools import assert_true, assert_raises from numpy.testing import assert_array_almost_equal from numpy.testing import assert_array_equal from numpy.testing import assert_equal, assert_almost_equal from sklearn i...
[ 11748, 4738, 198, 11748, 14601, 198, 11748, 299, 32152, 355, 45941, 198, 198, 6738, 9686, 13, 31391, 1330, 12073, 11, 6818, 62, 1662, 62, 40496, 198, 6738, 9686, 13, 31391, 1330, 6818, 62, 7942, 11, 6818, 62, 430, 2696, 198, 6738, 299...
2.292837
6,157
"""Python Objects Onto HDF5 """ __version__ = '0.1.dev0' from ._h5io import read_hdf5, write_hdf5, _TempDir, object_diff # noqa, analysis:ignore
[ 37811, 37906, 35832, 9463, 78, 5572, 37, 20, 198, 37811, 198, 198, 834, 9641, 834, 796, 705, 15, 13, 16, 13, 7959, 15, 6, 198, 198, 6738, 47540, 71, 20, 952, 1330, 1100, 62, 71, 7568, 20, 11, 3551, 62, 71, 7568, 20, 11, 4808, ...
2.466667
60
"""Select2 support for DAL.""" # default_app_config = 'dal_select2.apps.DefaultApp'
[ 37811, 17563, 17, 1104, 329, 360, 1847, 526, 15931, 198, 198, 2, 4277, 62, 1324, 62, 11250, 796, 705, 31748, 62, 19738, 17, 13, 18211, 13, 19463, 4677, 6, 198 ]
2.833333
30
from django.core.files.storage import FileSystemStorage from django.core.files.move import file_move_safe from django.contrib.auth.models import User from django.apps import apps from fnmatch import fnmatch from whatisit.settings import ( MEDIA_ROOT, MEDIA_URL ) import errno import itertools import os import...
[ 6738, 42625, 14208, 13, 7295, 13, 16624, 13, 35350, 1330, 9220, 11964, 31425, 198, 6738, 42625, 14208, 13, 7295, 13, 16624, 13, 21084, 1330, 2393, 62, 21084, 62, 21230, 198, 6738, 42625, 14208, 13, 3642, 822, 13, 18439, 13, 27530, 1330,...
4.157025
121
import unittest2 from datetime import date, datetime from helpers.season_helper import SeasonHelper
[ 11748, 555, 715, 395, 17, 198, 6738, 4818, 8079, 1330, 3128, 11, 4818, 8079, 198, 198, 6738, 49385, 13, 6230, 62, 2978, 525, 1330, 7369, 47429, 628 ]
3.777778
27
from django.apps import AppConfig
[ 6738, 42625, 14208, 13, 18211, 1330, 2034, 16934, 201, 198, 201, 198 ]
3.083333
12
import os import numpy as np from sklearn.utils import shuffle
[ 11748, 28686, 198, 11748, 299, 32152, 355, 45941, 198, 6738, 1341, 35720, 13, 26791, 1330, 36273, 198 ]
3.705882
17
import os, sys name = sys.argv[1] root_dir = sys.argv[2] header_dir = os.path.join(root_dir, name) if not os.path.exists(header_dir): os.makedirs(header_dir) files = [] dirs = [("", root_dir)] for i in range(4): subdirs = [] for (p, d) in dirs: files = files + [os.path.join(p, item) for item in os.l...
[ 11748, 28686, 11, 25064, 198, 3672, 796, 25064, 13, 853, 85, 58, 16, 60, 198, 15763, 62, 15908, 796, 25064, 13, 853, 85, 58, 17, 60, 198, 25677, 62, 15908, 796, 28686, 13, 6978, 13, 22179, 7, 15763, 62, 15908, 11, 1438, 8, 198, ...
2.213836
318
"""Generic reaction image commands.""" import json import secrets from sailor import commands from sailor.exceptions import UserInputError def setup(processor): """Set up reaction commands.""" with open("reactions.json") as file_object: reactions = json.load(file_object) last_image_for_command...
[ 37811, 46189, 6317, 2939, 9729, 526, 15931, 198, 198, 11748, 33918, 198, 11748, 13141, 198, 198, 6738, 43272, 1330, 9729, 198, 6738, 43272, 13, 1069, 11755, 1330, 11787, 20560, 12331, 628, 198, 4299, 9058, 7, 41341, 2599, 198, 220, 220, ...
2.423503
902
from __future__ import print_function, absolute_import, division from future.builtins import * from future import standard_library standard_library.install_aliases() # Copyright 2017 Autodesk Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with ...
[ 6738, 11593, 37443, 834, 1330, 3601, 62, 8818, 11, 4112, 62, 11748, 11, 7297, 198, 6738, 2003, 13, 18780, 1040, 1330, 1635, 198, 6738, 2003, 1330, 3210, 62, 32016, 198, 20307, 62, 32016, 13, 17350, 62, 7344, 1386, 3419, 198, 198, 2, ...
2.471345
2,565
#!./venv/bin/python from netbox.views import generic from .models import Number, VoiceCircuit from . import filters from . import forms from . import tables from django.conf import settings from packaging import version NETBOX_CURRENT_VERSION = version.parse(settings.VERSION)
[ 2, 0, 19571, 574, 85, 14, 8800, 14, 29412, 198, 198, 6738, 2010, 3524, 13, 33571, 1330, 14276, 198, 6738, 764, 27530, 1330, 7913, 11, 15282, 31560, 5013, 198, 6738, 764, 1330, 16628, 198, 6738, 764, 1330, 5107, 198, 6738, 764, 1330, ...
3.554217
83
# Copyright 2020 Google LLC # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # https://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, sof...
[ 2, 15069, 12131, 3012, 11419, 198, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 2, 345, 743, 407, 779, 428, 2393, 2845, 287, 11846, 351, 262, 13789, 13, 198, 2, 921, 743, 7330, ...
2.436055
1,298
from . import controllers from . import messages from grow.common import urls from grow.translations import locales from datetime import datetime import fnmatch import hashlib import mimetypes import os import re import time import webob import yaml mimetypes.add_type('application/font-woff', '.woff') mimetypes.add_ty...
[ 6738, 764, 1330, 20624, 198, 6738, 764, 1330, 6218, 198, 6738, 1663, 13, 11321, 1330, 2956, 7278, 198, 6738, 1663, 13, 7645, 49905, 1330, 1957, 274, 198, 6738, 4818, 8079, 1330, 4818, 8079, 198, 11748, 24714, 15699, 198, 11748, 12234, 8...
2.903084
227
# -*- mode:python; coding:utf-8 -*- # Copyright (c) 2020 IBM Corp. 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 # # https://www.apache.org/licenses/LICENSE-2.0 # ...
[ 2, 532, 9, 12, 4235, 25, 29412, 26, 19617, 25, 40477, 12, 23, 532, 9, 12, 198, 198, 2, 15069, 357, 66, 8, 12131, 19764, 11421, 13, 1439, 2489, 10395, 13, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 3...
2.957813
640
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # Copyright (C) 2013 PolyBeacon, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless...
[ 2, 43907, 25, 7400, 11338, 28, 19, 6482, 10394, 28, 19, 2705, 8658, 11338, 28, 19, 198, 198, 2, 15069, 357, 34, 8, 2211, 12280, 3856, 7807, 11, 3457, 13, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357...
2.37069
696
import os import shutil import nox nox.options.reuse_existing_virtualenvs = True PYTHON_VERSIONS = ['3.6', '3.7', '3.8'] @nox.session(python=PYTHON_VERSIONS[-1]) def lint(session): """Performs pep8 and security checks.""" source_code = 'configuror' session.install('flake8==3.7.9', 'bandit==1.6.2') ...
[ 11748, 28686, 198, 11748, 4423, 346, 198, 198, 11748, 645, 87, 198, 198, 35420, 13, 25811, 13, 260, 1904, 62, 25687, 62, 32844, 268, 14259, 796, 6407, 198, 198, 47, 56, 4221, 1340, 62, 28884, 11053, 796, 37250, 18, 13, 21, 3256, 705...
2.469761
711
# coding:utf-8 # # The MIT License (MIT) # # Copyright (c) 2018-2020 azai/Rgveda/GolemQuant # # 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...
[ 2, 19617, 25, 40477, 12, 23, 198, 2, 198, 2, 383, 17168, 13789, 357, 36393, 8, 198, 2, 198, 2, 15069, 357, 66, 8, 2864, 12, 42334, 257, 35142, 14, 49, 70, 1079, 64, 14, 38, 2305, 76, 24915, 198, 2, 198, 2, 2448, 3411, 318, 2...
1.763962
10,278
from .frankwolfe import FrankWolfe from .sampling import ImportanceSampling, UniformSampling from .giga import GIGA from .orthopursuit import OrthoPursuit
[ 6738, 764, 8310, 962, 18829, 68, 1330, 5278, 32069, 68, 198, 6738, 764, 37687, 11347, 1330, 17267, 590, 16305, 11347, 11, 35712, 16305, 11347, 198, 6738, 764, 70, 13827, 1330, 402, 3528, 32, 198, 6738, 764, 1506, 404, 1834, 5013, 1330, ...
3.297872
47
#!/usr/bin/env python3 # -*- coding=utf-8 -*- import cv2 as cv import imutils import time import math import numpy as np """ """ if "__main__" == __name__: main() cv.destroyAllWindows()
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 201, 198, 2, 532, 9, 12, 19617, 28, 40477, 12, 23, 532, 9, 12, 201, 198, 201, 198, 11748, 269, 85, 17, 355, 269, 85, 201, 198, 11748, 545, 26791, 201, 198, 11748, 640, 201, 198, ...
2.055556
108
#crie um programa que leia o nome e o preço de varios produtos #dever perguntar se o usuário quer continuar, no final mostre: #qual é o total gasto nas compras # quantos produtos custam mais de R$ 1000 #qual o nome do produto mais barato? print('-=-'*10) print(' MERCADÂO BARATO ') print('-=-'*10) preco = 0 m...
[ 2, 66, 5034, 23781, 1430, 64, 8358, 443, 544, 267, 299, 462, 304, 267, 662, 16175, 78, 390, 1401, 4267, 40426, 315, 418, 198, 2, 67, 964, 583, 70, 2797, 283, 384, 267, 514, 84, 6557, 27250, 42517, 11143, 283, 11, 645, 2457, 749, ...
2.191209
455
""" Author: Paul Saves This package is distributed under New BSD license. """ import numpy as np import unittest import inspect from collections import OrderedDict from smt.problems import Sphere, TensorProduct, Rosenbrock, Branin from smt.sampling_methods import LHS from smt.utils.sm_test_case import SMTestCase ...
[ 37811, 198, 13838, 25, 3362, 311, 3080, 220, 198, 198, 1212, 5301, 318, 9387, 739, 968, 347, 10305, 5964, 13, 198, 37811, 198, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 555, 715, 395, 198, 11748, 10104, 198, 198, 6738, 17268, 13...
3.148472
229
class ADC: '' class ADCAll: '' class Accel: '' class ExtInt: '' EVT_FALLING = 270663680 EVT_RISING = 269615104 EVT_RISING_FALLING = 271712256 IRQ_FALLING = 270598144 IRQ_RISING = 269549568 IRQ_RISING_FALLING = 271646720 class Flash: '' class I2C: '' MASTER ...
[ 198, 4871, 49169, 25, 198, 220, 220, 220, 10148, 628, 198, 4871, 49169, 3237, 25, 198, 220, 220, 220, 10148, 628, 198, 4871, 4013, 5276, 25, 198, 220, 220, 220, 10148, 628, 198, 4871, 5683, 5317, 25, 198, 220, 220, 220, 10148, 198, ...
1.75
932
import pytest from django.conf import settings from index_auth_service.friends.models import Friendship from index_auth_service.users.tests.factories import UserFactory from .factories import FriendshipFactory pytestmark = pytest.mark.django_db
[ 11748, 12972, 9288, 198, 6738, 42625, 14208, 13, 10414, 1330, 6460, 198, 198, 6738, 6376, 62, 18439, 62, 15271, 13, 36154, 13, 27530, 1330, 39993, 198, 198, 6738, 6376, 62, 18439, 62, 15271, 13, 18417, 13, 41989, 13, 22584, 1749, 1330, ...
3.716418
67
import mesh.patch as patch import mesh.reconstruction_f as reconstruction_f import mesh.array_indexer as ai
[ 11748, 19609, 13, 17147, 355, 8529, 198, 11748, 19609, 13, 260, 9979, 2762, 62, 69, 355, 25056, 62, 69, 198, 11748, 19609, 13, 18747, 62, 9630, 263, 355, 257, 72, 198 ]
3.483871
31
import os from typing import Generator from src.abstract_folder_iterator import FolderIterator
[ 11748, 28686, 198, 6738, 19720, 1330, 35986, 198, 198, 6738, 12351, 13, 397, 8709, 62, 43551, 62, 48727, 1330, 48107, 37787, 628 ]
4.409091
22
pkgname = "mpv" pkgver = "0.34.1" pkgrel = 0 build_style = "waf" configure_args = [ "--confdir=/etc/mpv", "--docdir=/usr/share/examples/mpv", "--zshdir=/usr/share/zsh/site-functions", "--enable-libmpv-shared", "--enable-cplugins", "--enable-cdda", "--enable-dvbin", "--enable-dvdnav", "--enable-libarchiv...
[ 35339, 3672, 796, 366, 3149, 85, 1, 198, 35339, 332, 796, 366, 15, 13, 2682, 13, 16, 1, 198, 35339, 2411, 796, 657, 198, 11249, 62, 7635, 796, 366, 86, 1878, 1, 198, 11250, 495, 62, 22046, 796, 685, 198, 220, 220, 220, 366, 438,...
2.193095
782
# Definition for a binary tree node. # class TreeNode: # def __init__(self, val=0, left=None, right=None): # self.val = val # self.left = left # self.right = right """ 78 / 78 test cases passed. Runtime: 52 ms Memory Usage: 17.6 MB """
[ 2, 30396, 329, 257, 13934, 5509, 10139, 13, 198, 2, 1398, 12200, 19667, 25, 198, 2, 220, 220, 220, 220, 825, 11593, 15003, 834, 7, 944, 11, 1188, 28, 15, 11, 1364, 28, 14202, 11, 826, 28, 14202, 2599, 198, 2, 220, 220, 220, 220,...
2.387387
111
from __future__ import print_function, absolute_import import argparse import os.path as osp import numpy as np import sys import torch from torch import nn from torch.backends import cudnn from torch.utils.data import DataLoader import tkinter as tk from tkinter import ttk import tkinter.font as tkFont from reid imp...
[ 6738, 11593, 37443, 834, 1330, 3601, 62, 8818, 11, 4112, 62, 11748, 198, 11748, 1822, 29572, 198, 11748, 28686, 13, 6978, 355, 267, 2777, 198, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 25064, 198, 11748, 28034, 198, 6738, 28034, 1...
3.32107
299
import expressions
[ 11748, 14700, 628, 628 ]
5.5
4
from .dgmr import DGMR from .generators import Sampler, Generator from .discriminators import SpatialDiscriminator, TemporalDiscriminator, Discriminator from .common import LatentConditioningStack, ContextConditioningStack
[ 6738, 764, 67, 39870, 81, 1330, 46133, 13599, 198, 6738, 764, 8612, 2024, 1330, 3409, 20053, 11, 35986, 198, 6738, 764, 15410, 3036, 47721, 1330, 1338, 34961, 15642, 3036, 20900, 11, 5825, 35738, 15642, 3036, 20900, 11, 8444, 3036, 20900,...
3.982143
56
from contextlib import suppress from pyopenproject.api_connection.exceptions.request_exception import RequestError from pyopenproject.api_connection.requests.patch_request import PatchRequest from pyopenproject.business.exception.business_error import BusinessError from pyopenproject.business.services.command.time_ent...
[ 6738, 4732, 8019, 1330, 18175, 198, 198, 6738, 12972, 9654, 16302, 13, 15042, 62, 38659, 13, 1069, 11755, 13, 25927, 62, 1069, 4516, 1330, 19390, 12331, 198, 6738, 12972, 9654, 16302, 13, 15042, 62, 38659, 13, 8897, 3558, 13, 17147, 62,...
4.108911
101