content
stringlengths
1
1.05M
input_ids
listlengths
1
883k
ratio_char_token
float64
1
22.9
token_count
int64
1
883k
#!/usr/bin/env python # -*- coding: utf-8 -*- # Python version: 3.6 import matplotlib matplotlib.use('Agg') import matplotlib.pyplot as plt import copy import numpy as np from torchvision import datasets, transforms import torch import os import torch.distributed as dist from utils.sampling import mnist_iid, mnist_non...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 11361, 2196, 25, 513, 13, 21, 198, 198, 11748, 2603, 29487, 8019, 198, 6759, 29487, 8019, 13, 1904, 10786, 46384, ...
2.125756
5,288
from aws_cdk.aws_lambda import Function, Code, Runtime from aws_cdk.core import Stack, Duration from b_aws_testing_framework.tools.cdk_testing.testing_stack import TestingStack from b_cfn_lambda_layer.package_version import PackageVersion from b_lambda_layer_common.layer import Layer from b_lambda_layer_common_test.un...
[ 6738, 3253, 82, 62, 10210, 74, 13, 8356, 62, 50033, 1330, 15553, 11, 6127, 11, 43160, 198, 6738, 3253, 82, 62, 10210, 74, 13, 7295, 1330, 23881, 11, 22920, 198, 6738, 275, 62, 8356, 62, 33407, 62, 30604, 13, 31391, 13, 10210, 74, ...
3.393939
99
""" This script creates a test that fails when metarl.tf.baselines failed to initialize. """ import tensorflow as tf from metarl.envs import MetaRLEnv from metarl.tf.baselines import ContinuousMLPBaseline from metarl.tf.baselines import GaussianMLPBaseline from tests.fixtures import TfGraphTestCase from tests.fixtures...
[ 37811, 198, 1212, 4226, 8075, 257, 1332, 326, 10143, 618, 198, 4164, 7063, 13, 27110, 13, 12093, 20655, 4054, 284, 41216, 13, 198, 37811, 198, 11748, 11192, 273, 11125, 355, 48700, 198, 198, 6738, 1138, 7063, 13, 268, 14259, 1330, 30277...
3.320755
106
import jinja2 import json from send_email import send_email from app.models import User, MyResourcesAWS, db from app.es.awsdetailedlineitem import AWSDetailedLineitem from sqlalchemy import desc import subprocess import datetime from flask import render_template
[ 11748, 474, 259, 6592, 17, 198, 11748, 33918, 198, 6738, 3758, 62, 12888, 1330, 3758, 62, 12888, 198, 6738, 598, 13, 27530, 1330, 11787, 11, 2011, 33236, 12298, 50, 11, 20613, 198, 6738, 598, 13, 274, 13, 8356, 15255, 6255, 1370, 9186...
3.666667
72
# Ryan Turner (turnerry@iro.umontreal.ca) from __future__ import division, print_function from builtins import range import numpy as np import scipy.stats as ss import mlpaper.constants as cc import mlpaper.mlpaper as bt import mlpaper.perf_curves as pc from mlpaper.classification import DEFAULT_NGRID, curve_boot fr...
[ 2, 6047, 15406, 357, 15344, 6996, 31, 7058, 13, 388, 756, 5305, 13, 6888, 8, 198, 6738, 11593, 37443, 834, 1330, 7297, 11, 3601, 62, 8818, 198, 198, 6738, 3170, 1040, 1330, 2837, 198, 198, 11748, 299, 32152, 355, 45941, 198, 11748, ...
2.427673
477
from typing import Any, Dict import numpy as np import pandas as pd import core.artificial_signal_generators as sig_gen import core.statistics as stats import core.timeseries_study as tss import helpers.unit_test as hut
[ 6738, 19720, 1330, 4377, 11, 360, 713, 198, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 19798, 292, 355, 279, 67, 198, 198, 11748, 4755, 13, 433, 9542, 62, 12683, 282, 62, 8612, 2024, 355, 43237, 62, 5235, 198, 11748, 4755, 13, ...
3.308824
68
#! -*- coding:utf-8 -*- import os import sys import cv2 import numpy as np
[ 2, 0, 532, 9, 12, 19617, 25, 40477, 12, 23, 532, 9, 12, 198, 198, 11748, 28686, 198, 11748, 25064, 198, 11748, 269, 85, 17, 198, 11748, 299, 32152, 355, 45941, 198 ]
2.375
32
# Generated by Django 3.2.7 on 2021-09-23 20:01 import cloudinary.models from django.db import migrations
[ 2, 2980, 515, 416, 37770, 513, 13, 17, 13, 22, 319, 33448, 12, 2931, 12, 1954, 1160, 25, 486, 198, 198, 11748, 6279, 3219, 13, 27530, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 628 ]
3
36
# VAR example from statsmodels.tsa.vector_ar.var_model import VAR from random import random # contrived dataset with dependency data = list() for i in range(100): v1 = i + random() v2 = v1 + random() row = [v1, v2] data.append(row) # fit model model = VAR(data) model_fit = model.fit() # make prediction ...
[ 2, 569, 1503, 1672, 198, 6738, 9756, 27530, 13, 912, 64, 13, 31364, 62, 283, 13, 7785, 62, 19849, 1330, 569, 1503, 198, 6738, 4738, 1330, 4738, 198, 2, 542, 36207, 27039, 351, 20203, 198, 7890, 796, 1351, 3419, 198, 1640, 1312, 287,...
2.60274
146
import json import urllib.request import MySQLdb db = MySQLdb.connect(host="localhost", # your host, usually localhost user="root", # your username passwd="", # your password db="election") cur = db.cursor() # user_agent for sending headers w...
[ 11748, 33918, 198, 11748, 2956, 297, 571, 13, 25927, 198, 11748, 33476, 9945, 198, 9945, 796, 33476, 9945, 13, 8443, 7, 4774, 2625, 36750, 1600, 220, 220, 220, 1303, 534, 2583, 11, 3221, 1957, 4774, 198, 220, 220, 220, 220, 220, 220, ...
2.399103
892
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Fri Jun 9 23:28:21 2017 @author: samriddhi """ import re import sangita.hindi.tokenizer as tok import sangita.hindi.corpora.lemmata as lt if __name__ == '__main__': input_str = ' - - - . ' print(lookupLemmatizer(input...
[ 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, 19480, 7653, 220, 860, 2242, 25, 2078, 25, 2481, 2177, 198, 198, 31, 9800, 25, 6072, 81, ...
2.125
208
# -*- coding: utf-8 -*- # Copyright 2021 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless require...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 15069, 33448, 3012, 3457, 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, ...
3.547619
294
from markdown import markdown from unittest import TestCase from markdown_editing.extension import EditingExtension
[ 6738, 1317, 2902, 1330, 1317, 2902, 198, 6738, 555, 715, 395, 1330, 6208, 20448, 198, 198, 6738, 1317, 2902, 62, 276, 1780, 13, 2302, 3004, 1330, 39883, 11627, 3004, 628, 198 ]
3.83871
31
""" SIREN/DIANA basic functionality testing framework Requires env vars: - GMAIL_USER - GMAIL_APP_PASSWORD - GMAIL_BASE_NAME -- ie, abc -> abc+hobitduke@gmail.com These env vars are set to default: - ORTHANC_PASSWORD - SPLUNK_PASSWORD - SPLUNK_HEC_TOKEN TODO: Move stuff to archive after collected TODO: Write data i...
[ 37811, 198, 50, 4663, 1677, 14, 35, 16868, 32, 4096, 11244, 4856, 9355, 198, 198, 39618, 17365, 410, 945, 25, 198, 12, 402, 5673, 4146, 62, 29904, 198, 12, 402, 5673, 4146, 62, 24805, 62, 47924, 54, 12532, 198, 12, 402, 5673, 4146, ...
2.537169
1,964
# # Copyright (c) 2019 James E. King III # # Use, modification, and distribution are subject to the # Boost Software License, Version 1.0. (See accompanying file # LICENSE_1_0.txt or copy at https://www.boost.org/LICENSE_1_0.txt) # import json import networkx import re from pathlib import Path if __name__ == "__mai...
[ 2, 198, 2, 15069, 357, 66, 8, 13130, 3700, 412, 13, 2677, 6711, 198, 2, 198, 2, 5765, 11, 17613, 11, 290, 6082, 389, 2426, 284, 262, 198, 2, 19835, 10442, 13789, 11, 10628, 352, 13, 15, 13, 357, 6214, 19249, 2393, 198, 2, 38559,...
2.938931
393
from flask import Flask, flash, request, jsonify, render_template, redirect, url_for, g, session, send_from_directory, abort from flask_cors import CORS # from flask import status from datetime import date, datetime, timedelta from calendar import monthrange from dateutil.parser import parse import pytz import os impor...
[ 6738, 42903, 1330, 46947, 11, 7644, 11, 2581, 11, 33918, 1958, 11, 8543, 62, 28243, 11, 18941, 11, 19016, 62, 1640, 11, 308, 11, 6246, 11, 3758, 62, 6738, 62, 34945, 11, 15614, 198, 6738, 42903, 62, 66, 669, 1330, 327, 20673, 198, ...
3.121508
716
""" .. --------------------------------------------------------------------- ___ __ __ __ ___ / | \ | \ | \ / the automatic \__ |__/ |__/ |___| \__ annotation and \ | | | | \ analysis ___/...
[ 37811, 198, 220, 220, 220, 11485, 198, 220, 220, 220, 220, 220, 220, 220, 16529, 30934, 198, 220, 220, 220, 220, 220, 220, 220, 220, 46444, 220, 220, 11593, 220, 220, 220, 11593, 220, 220, 220, 11593, 220, 220, 220, 46444, 198, 220,...
2.732342
538
from mock import patch from django.contrib.contenttypes.models import ContentType from django.contrib.sites.models import Site from django.contrib.auth import get_user_model from django.core import exceptions from django_dynamic_fixture import G from django_webtest import WebTest from icekit.models import Layout from...
[ 6738, 15290, 1330, 8529, 198, 198, 6738, 42625, 14208, 13, 3642, 822, 13, 11299, 19199, 13, 27530, 1330, 14041, 6030, 198, 6738, 42625, 14208, 13, 3642, 822, 13, 49315, 13, 27530, 1330, 14413, 198, 6738, 42625, 14208, 13, 3642, 822, 13,...
3.522727
132
from imshowtools import imshow import cv2 if __name__ == '__main__': image_lenna = cv2.imread("lenna.png") imshow(image_lenna, mode='BGR', window_title="LennaWindow", title="Lenna") image_lenna_bgr = cv2.imread("lenna_bgr.png") imshow(image_lenna, image_lenna_bgr, mode=['BGR', 'RGB'], title=['lenna_...
[ 6738, 545, 12860, 31391, 1330, 545, 12860, 198, 11748, 269, 85, 17, 628, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 628, 220, 220, 220, 2939, 62, 75, 13713, 796, 269, 85, 17, 13, 320, 961, 7203, 75, 13713, 13, ...
2.302521
238
# -*- coding: utf-8 -*- """Provides concept object.""" from __future__ import absolute_import from .. import t1types from ..entity import Entity
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 15946, 1460, 3721, 2134, 526, 15931, 198, 198, 6738, 11593, 37443, 834, 1330, 4112, 62, 11748, 198, 6738, 11485, 1330, 256, 16, 19199, 198, 6738, 11485, 26858, 1330...
3.266667
45
""" Mock up a video feed pipeline """ import asyncio import logging import sys import cv2 logging.basicConfig(format="[%(thread)-5d]%(asctime)s: %(message)s") logger = logging.getLogger('async') logger.setLevel(logging.INFO) def main(): loop = asyncio.get_event_loop() loop.run_until_complete(process_video...
[ 37811, 198, 44, 735, 510, 257, 2008, 3745, 11523, 198, 37811, 198, 11748, 30351, 952, 198, 11748, 18931, 198, 11748, 25064, 198, 198, 11748, 269, 85, 17, 198, 198, 6404, 2667, 13, 35487, 16934, 7, 18982, 2625, 58, 4, 7, 16663, 13219, ...
2.556962
158
#!/usr/bin/python3 """ Read "lspci -v" and "glxinfo" outputs """ import re from dataclasses import dataclass from InputFileNotFoundError import InputFileNotFoundError if __name__ == "__main__": import argparse import json parser = argparse.ArgumentParser(description="Parse lspci/glxinfo output") ...
[ 2, 48443, 14629, 14, 8800, 14, 29412, 18, 198, 198, 37811, 198, 5569, 366, 75, 2777, 979, 532, 85, 1, 290, 366, 4743, 87, 10951, 1, 23862, 198, 37811, 198, 198, 11748, 302, 198, 6738, 4818, 330, 28958, 1330, 4818, 330, 31172, 198, ...
2.197674
430
#!/usr/bin/python import sys from loglib import SNYLogger import ftplib import argparse import re import os import calendar import time #GET LOCAL FILELIST # # login to ftp server # # # get remote files # parser = argparse.ArgumentParser() parser.add_argument("...
[ 2, 48443, 14629, 14, 8800, 14, 29412, 198, 198, 11748, 25064, 198, 6738, 2604, 8019, 1330, 11346, 56, 11187, 1362, 198, 11748, 10117, 489, 571, 198, 11748, 1822, 29572, 198, 11748, 302, 198, 11748, 28686, 198, 11748, 11845, 198, 11748, ...
2.59415
547
#!/usr/bin/env python """ Classify oncodrive gene results and prepare for combination * Configuration parameters: - The ones required by intogen.data.entity.EntityManagerFactory * Input: - oncodrive_ids: The mrna.oncodrive_genes to process * Output: - combinations: The mrna.combination prepared to be calculated ...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 198, 37811, 198, 9487, 1958, 319, 19815, 11590, 9779, 2482, 290, 8335, 329, 6087, 198, 198, 9, 28373, 10007, 25, 198, 198, 12, 383, 3392, 2672, 416, 493, 6644, 13, 7890, 13, 26858, 1...
3.112821
195
def test_get_ip_placeholder(): """placeholder so pytest does not fail""" pass
[ 4299, 1332, 62, 1136, 62, 541, 62, 5372, 13829, 33529, 198, 220, 220, 220, 37227, 5372, 13829, 523, 12972, 9288, 857, 407, 2038, 37811, 198, 220, 220, 220, 1208, 198 ]
2.866667
30
#!/usr/bin/env python from sklearn import svm import csv_io if __name__=="__main__": main()
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 198, 6738, 1341, 35720, 1330, 264, 14761, 198, 11748, 269, 21370, 62, 952, 198, 198, 361, 11593, 3672, 834, 855, 1, 834, 12417, 834, 1298, 198, 220, 220, 220, 1388, 3419, 198 ]
2.390244
41
# -*- coding: utf-8 -*- from matplotlib import colors # max = 148 _COLOR_Genarator = iter( sorted( [ color for name, color in colors.cnames.items() if name not in ["red", "white"] or not name.startswith("light") or "gray" in name ] ) )
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 6738, 2603, 29487, 8019, 1330, 7577, 198, 198, 2, 3509, 796, 22613, 198, 62, 46786, 62, 13746, 283, 1352, 796, 11629, 7, 198, 220, 220, 220, 23243, 7, 198, 220, ...
2.068966
145
from urllib.parse import urlencode from decouple import config import hashlib import requests BASE = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ" auth_key = config('AUTH_KEY') url = 'http://sms.globehost.com/api/sendhttp.php?'
[ 6738, 2956, 297, 571, 13, 29572, 1330, 2956, 11925, 8189, 198, 6738, 875, 43846, 1330, 4566, 198, 11748, 12234, 8019, 198, 11748, 7007, 198, 198, 33, 11159, 796, 366, 486, 1954, 2231, 3134, 4531, 39305, 4299, 456, 2926, 41582, 10295, 40...
2.49505
101
import sys import os sys.path.append(os.pardir) import random import time import requests from contextlib import closing from help import utils from threading import Thread if __name__ == '__main__': t1 = Thread(target=main) t2 = Thread(target=main) t3 = Thread(target=main) t4 = Thread(target=...
[ 11748, 25064, 198, 11748, 28686, 198, 198, 17597, 13, 6978, 13, 33295, 7, 418, 13, 26037, 343, 8, 198, 198, 11748, 4738, 198, 11748, 640, 198, 11748, 7007, 198, 6738, 4732, 8019, 1330, 9605, 198, 6738, 1037, 1330, 3384, 4487, 198, 673...
2.573333
150
import GeneralStats as gs import numpy as np from scipy.stats import skew from scipy.stats import kurtosistest import pandas as pd if __name__ == "__main__": gen=gs.GeneralStats() data=np.array([[1, 1, 2, 2, 3],[2, 2, 3, 3, 5],[1, 4, 3, 3, 3],[2, 4, 5, 5, 3]]) data1=np.array([1,2,3,4,5]) ...
[ 11748, 3611, 29668, 355, 308, 82, 201, 198, 11748, 299, 32152, 355, 45941, 201, 198, 6738, 629, 541, 88, 13, 34242, 1330, 43370, 201, 198, 6738, 629, 541, 88, 13, 34242, 1330, 479, 3325, 418, 396, 395, 201, 198, 11748, 19798, 292, 3...
1.888386
1,989
#!/usr/bin/env python # encoding: utf-8 """ script to install all the necessary things for working on a linux machine with nothing Installing minimum dependencies """ import sys import os import logging import subprocess import xml.etree.ElementTree as ElementTree import xml.dom.minidom as minidom import socket import...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 21004, 25, 3384, 69, 12, 23, 198, 37811, 198, 12048, 284, 2721, 477, 262, 3306, 1243, 198, 1640, 1762, 319, 257, 32639, 4572, 351, 2147, 198, 198, 6310, 9221, 5288, 20086, 198, 37...
2.510062
1,292
""" A simple, good-looking plot =========================== Demoing some simple features of matplotlib """ import numpy as np import matplotlib matplotlib.use('Agg') import matplotlib.pyplot as plt fig = plt.figure(figsize=(5, 4), dpi=72) axes = fig.add_axes([0.01, 0.01, .98, 0.98]) X = np.linspace(0, 2, 200) Y = np...
[ 37811, 198, 32, 2829, 11, 922, 12, 11534, 7110, 198, 4770, 2559, 18604, 198, 198, 11522, 40519, 617, 2829, 3033, 286, 2603, 29487, 8019, 198, 37811, 198, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 2603, 29487, 8019, 198, 6759, 2948...
2.247191
178
import os import re from typing import Tuple from pfio._typing import Union from pfio.container import Container from pfio.io import IO, create_fs_handler
[ 11748, 28686, 198, 11748, 302, 198, 6738, 19720, 1330, 309, 29291, 198, 198, 6738, 279, 69, 952, 13557, 774, 13886, 1330, 4479, 198, 6738, 279, 69, 952, 13, 34924, 1330, 43101, 198, 6738, 279, 69, 952, 13, 952, 1330, 24418, 11, 2251, ...
3.291667
48
import Analisis_Ascendente.Instrucciones.PLPGSQL.EjecutarFuncion as EjecutarFuncion from Analisis_Ascendente.Instrucciones.PLPGSQL.plasignacion import Plasignacion from Analisis_Ascendente.Instrucciones.instruccion import Instruccion from Analisis_Ascendente.Instrucciones.Create.createTable import CreateTable from ...
[ 11748, 1052, 27315, 271, 62, 32, 1416, 437, 21872, 13, 6310, 622, 535, 295, 274, 13, 6489, 6968, 17861, 13, 36, 73, 721, 315, 283, 37, 19524, 295, 355, 412, 73, 721, 315, 283, 37, 19524, 295, 201, 198, 6738, 1052, 27315, 271, 62, ...
2.847666
814
# -*- coding: utf-8 -*- from __future__ import unicode_literals
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 6738, 11593, 37443, 834, 1330, 28000, 1098, 62, 17201, 874, 628 ]
2.6
25
from threading import current_thread from jsbeautifier.javascript.beautifier import remove_redundant_indentation from pyparser.oleparser import OleParser from pyparser.hwp_parser import HwpParser from scan.init_scan import init_hwp5_scan from scan.bindata_scanner import BinData_Scanner from scan.jscript_scanner import...
[ 6738, 4704, 278, 1330, 1459, 62, 16663, 198, 198, 6738, 44804, 40544, 7483, 13, 37495, 13, 40544, 7483, 1330, 4781, 62, 445, 917, 415, 62, 521, 298, 341, 198, 6738, 279, 4464, 28198, 13, 2305, 48610, 1330, 30093, 46677, 198, 6738, 279...
3.133663
202
""" Tests for plugins in core module. Only unit tests for now. """ from unittest.mock import patch import click from nile.core.plugins import get_installed_plugins, load_plugins, skip_click_exit
[ 37811, 198, 51, 3558, 329, 20652, 287, 4755, 8265, 13, 198, 198, 10049, 4326, 5254, 329, 783, 13, 198, 37811, 198, 198, 6738, 555, 715, 395, 13, 76, 735, 1330, 8529, 198, 198, 11748, 3904, 198, 198, 6738, 299, 576, 13, 7295, 13, 3...
3.258065
62
from django.contrib.contenttypes.models import ContentType from django.test import TestCase from django.test.client import Client from model_mommy import mommy from devices.models import Device from users.models import Lageruser
[ 6738, 42625, 14208, 13, 3642, 822, 13, 11299, 19199, 13, 27530, 1330, 14041, 6030, 198, 6738, 42625, 14208, 13, 9288, 1330, 6208, 20448, 198, 6738, 42625, 14208, 13, 9288, 13, 16366, 1330, 20985, 198, 198, 6738, 2746, 62, 32542, 1820, 1...
3.803279
61
# -*- coding: utf-8 -*- from django.core.management.base import BaseCommand, CommandError from django_git_info import get_git_info
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 6738, 42625, 14208, 13, 7295, 13, 27604, 13, 8692, 1330, 7308, 21575, 11, 9455, 12331, 198, 198, 6738, 42625, 14208, 62, 18300, 62, 10951, 1330, 651, 62, 18300, 62, 1095...
2.933333
45
from collections.abc import Callable as _Callable import networkx as _nx from opencog.type_constructors import AtomSpace as _AtomSpace from .args import check_arg as _check_arg def convert(data, graph_annotated=True, graph_directed=True, node_label=None, node_color=None, node_opacity=None, node_size=Non...
[ 6738, 17268, 13, 39305, 1330, 4889, 540, 355, 4808, 14134, 540, 198, 198, 11748, 3127, 87, 355, 4808, 77, 87, 198, 6738, 1280, 66, 519, 13, 4906, 62, 41571, 669, 1330, 33102, 14106, 355, 4808, 2953, 296, 14106, 198, 198, 6738, 764, ...
2.706939
6,067
from builtins import * from pydantic import BaseModel
[ 6738, 3170, 1040, 1330, 1635, 198, 198, 6738, 279, 5173, 5109, 1330, 7308, 17633, 628, 628 ]
3.625
16
# -*- encoding: utf-8 -*- # Copyright (c) 2015 b<>com # # 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 o...
[ 2, 532, 9, 12, 21004, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 15069, 357, 66, 8, 1853, 275, 27, 29, 785, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 2, 345, 743...
3.645946
370
from __future__ import absolute_import, division, print_function from cctbx.array_family import flex from scitbx import matrix import math from libtbx import adopt_init_args import scitbx.lbfgs from mmtbx.bulk_solvent import kbu_refinery from cctbx import maptbx import mmtbx.masks import boost_adaptbx.boost.python as b...
[ 6738, 11593, 37443, 834, 1330, 4112, 62, 11748, 11, 7297, 11, 3601, 62, 8818, 198, 6738, 269, 310, 65, 87, 13, 18747, 62, 17989, 1330, 7059, 198, 6738, 629, 270, 65, 87, 1330, 17593, 198, 11748, 10688, 198, 6738, 9195, 83, 65, 87, ...
2.082721
3,131
#!/usr/bin/env python # -*- coding: utf-8 -*- # Copyright 1999-2018 Alibaba Group Holding Ltd. # # 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, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 15069, 7358, 12, 7908, 41992, 4912, 31703, 12052, 13, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 36...
3.181159
414
import sys import matplotlib matplotlib.use('Agg') sys.path.insert(0, 'lib')
[ 11748, 25064, 198, 11748, 2603, 29487, 8019, 198, 6759, 29487, 8019, 13, 1904, 10786, 46384, 11537, 198, 17597, 13, 6978, 13, 28463, 7, 15, 11, 705, 8019, 11537, 198 ]
2.655172
29
import matplotlib matplotlib.use('Agg') import numpy as np import matplotlib.pyplot as plt from glob import glob from astropy.table import Table, join from os import chdir, system from scipy.stats import norm as gauss_norm from sys import argv from getopt import getopt # turn off polyfit ranking warnings import warnin...
[ 11748, 2603, 29487, 8019, 198, 6759, 29487, 8019, 13, 1904, 10786, 46384, 11537, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 198, 6738, 15095, 1330, 15095, 198, 6738, 6468, 28338, 13, ...
1.780906
6,536
import ast from python_minifier.transforms.suite_transformer import SuiteTransformer
[ 11748, 6468, 198, 198, 6738, 21015, 62, 1084, 7483, 13, 7645, 23914, 13, 2385, 578, 62, 7645, 16354, 1330, 26264, 8291, 16354, 628 ]
3.782609
23
import unittest from pkg import Linear_Algebra import numpy as np if __name__ == '__main__': unittest.main()
[ 11748, 555, 715, 395, 198, 6738, 279, 10025, 1330, 44800, 62, 2348, 29230, 198, 11748, 299, 32152, 355, 45941, 198, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 198, 220, 220, 220, 555, 715, 395, 13, 12417, 3419 ]
2.756098
41
from backend.common.models.mytba import MyTBAModel
[ 6738, 30203, 13, 11321, 13, 27530, 13, 1820, 83, 7012, 1330, 2011, 22737, 2390, 375, 417, 628 ]
3.058824
17
#---------------------------------------------------------------------- # Name: wxPython.lib.filebrowsebutton # Purpose: Composite controls that provide a Browse button next to # either a wxTextCtrl or a wxComboBox. The Browse button # launches a wxFileDialog and loads the result i...
[ 2, 10097, 23031, 198, 2, 6530, 25, 220, 220, 220, 220, 220, 220, 220, 266, 87, 37906, 13, 8019, 13, 7753, 25367, 325, 16539, 198, 2, 32039, 25, 220, 220, 220, 220, 49355, 6973, 326, 2148, 257, 44775, 4936, 1306, 284, 198, 2, 220, ...
3.139942
343
#!/usr/bin/env python # vim: ai ts=4 sts=4 et sw=4 encoding=utf-8 # arch: pacman -S python-pyserial # debian/ubuntu: apt-get install python-serial import serial import re import errors
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 43907, 25, 257, 72, 40379, 28, 19, 39747, 28, 19, 2123, 1509, 28, 19, 21004, 28, 40477, 12, 23, 198, 198, 2, 3934, 25, 23503, 805, 532, 50, 21015, 12, 79, 893, 48499, 198, 2, ...
2.846154
65
# while True: # # ejecuta esto # print("Hola") real = 7 print("Entre un numero entre el 1 y el 10") guess = int(input()) # =/= while guess != real: print("Ese no es el numero") print("Entre un numero entre el 1 y el 10") guess = int(input()) # el resto print("Yay! Lo sacastes!")
[ 2, 981, 6407, 25, 198, 2, 220, 220, 220, 220, 1303, 304, 73, 721, 29822, 1556, 78, 198, 2, 220, 220, 220, 220, 3601, 7203, 39, 5708, 4943, 198, 198, 5305, 796, 767, 198, 198, 4798, 7203, 14539, 260, 555, 997, 3529, 920, 260, 128...
2.283582
134
def rotCode(data): """ The rotCode function encodes/decodes data using string indexing :param data: A string :return: The rot-13 encoded/decoded string """ rot_chars = ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', '...
[ 4299, 5724, 10669, 7, 7890, 2599, 198, 220, 220, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 383, 5724, 10669, 2163, 2207, 4147, 14, 12501, 4147, 1366, 1262, 4731, 6376, 278, 198, 220, 220, 220, 220, 220, 1058, 17143, 1366, ...
1.888742
755
import pickle, sys sys.path.append('../src') import data_io, sim_algo, eval, params ## run # wordfiles = [#'../data/paragram_sl999_small.txt', # need to download it from John Wieting's github (https://github.com/jwieting/iclr2016) # '../data/glove.840B.300d.txt' # need to download it first # ] wordfiles = [#...
[ 11748, 2298, 293, 11, 25064, 198, 17597, 13, 6978, 13, 33295, 10786, 40720, 10677, 11537, 198, 11748, 1366, 62, 952, 11, 985, 62, 282, 2188, 11, 5418, 11, 42287, 628, 198, 2235, 1057, 198, 2, 1573, 16624, 796, 685, 2, 6, 40720, 7890...
2.471248
713
if __name__ == "__main__": f = Foo() b = f.bar() print(b)
[ 198, 198, 361, 11593, 3672, 834, 6624, 366, 834, 12417, 834, 1298, 198, 220, 220, 220, 277, 796, 36080, 3419, 198, 220, 220, 220, 275, 796, 277, 13, 5657, 3419, 198, 220, 220, 220, 3601, 7, 65, 8 ]
1.868421
38
import numpy as np import os from random import shuffle datasets_dir = './../data/'
[ 11748, 299, 32152, 355, 45941, 198, 11748, 28686, 198, 6738, 4738, 1330, 36273, 198, 19608, 292, 1039, 62, 15908, 796, 705, 19571, 40720, 7890, 14, 6, 198 ]
3.111111
27
import math import os import random import re import sys if __name__ == '__main__': fptr = open(os.environ['OUTPUT_PATH'] + 'solucion2.txt', 'w') print("Escribe las notas de a") a = list(map(int, input().rstrip().split())) print("Escribe las notas de b") b = list(map(int, input().rstrip().sp...
[ 11748, 10688, 198, 11748, 28686, 198, 11748, 4738, 198, 11748, 302, 198, 11748, 25064, 198, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 198, 220, 220, 220, 277, 20692, 796, 1280, 7, 418, 13, 268, 2268, 17816, 2606, ...
2.405405
185
#=============================================================== # @author: nityanarayan44@live.com # @written: 08 December 2021 # @desc: Routes for the Backend server #=============================================================== # Import section with referecne of entry file or main file; from __main__ i...
[ 2, 10052, 4770, 25609, 18604, 201, 198, 2, 2488, 9800, 25, 220, 299, 414, 272, 283, 22931, 2598, 31, 12583, 13, 785, 201, 198, 2, 2488, 15266, 25, 8487, 3426, 33448, 201, 198, 2, 2488, 20147, 25, 220, 220, 220, 39602, 274, 329, 26...
4.473846
325
################################################################################# # The Institute for the Design of Advanced Energy Systems Integrated Platform # Framework (IDAES IP) was produced under the DOE Institute for the # Design of Advanced Energy Systems (IDAES), and is copyright (c) 2018-2021 # by the softwar...
[ 29113, 29113, 14468, 2, 198, 2, 383, 5136, 329, 262, 8495, 286, 13435, 6682, 11998, 35432, 19193, 198, 2, 25161, 357, 41957, 1546, 6101, 8, 373, 4635, 739, 262, 46984, 5136, 329, 262, 198, 2, 8495, 286, 13435, 6682, 11998, 357, 41957,...
1.731191
9,025
"""TODO: Move the Threads Here"""
[ 37811, 51, 3727, 46, 25, 10028, 262, 14122, 82, 3423, 37811, 198 ]
2.833333
12
import functools import pickle import kerastuner import tensorflow as tf from tensorflow.python.util import nest from autokeras.hypermodel import base from autokeras.hypermodel import compiler def copy(old_instance): instance = old_instance.__class__() instance.set_state(old_instance.get_state()) re...
[ 11748, 1257, 310, 10141, 198, 11748, 2298, 293, 198, 198, 11748, 41927, 459, 38886, 198, 11748, 11192, 273, 11125, 355, 48700, 198, 6738, 11192, 273, 11125, 13, 29412, 13, 22602, 1330, 16343, 198, 198, 6738, 1960, 11020, 292, 13, 49229, ...
3.252427
103
''' Speed: 95.97% Memory: 24.96% Time complexity: O(n) Space complexity: O(n) '''
[ 7061, 6, 198, 22785, 25, 6957, 13, 5607, 4, 198, 30871, 25, 1987, 13, 4846, 4, 198, 7575, 13357, 25, 440, 7, 77, 8, 198, 14106, 13357, 25, 440, 7, 77, 8, 198, 7061, 6 ]
2.314286
35
from distutils.core import setup, Extension import os.path kw = { 'name':"PyOpenAES", 'version':"0.10.0", 'description':"OpenAES cryptographic library for Python.", 'ext_modules':[ Extension( 'openaes', include_dirs = ['inc', 'src/isaac'], # define_macros=[('ENABLE_PYTHON', '1')], sources = [ os....
[ 6738, 1233, 26791, 13, 7295, 1330, 9058, 11, 27995, 198, 11748, 28686, 13, 6978, 198, 198, 46265, 796, 1391, 198, 197, 6, 3672, 10354, 1, 20519, 11505, 32, 1546, 1600, 198, 197, 1053, 3808, 295, 10354, 1, 15, 13, 940, 13, 15, 1600, ...
2.118483
211
#!/usr/bin/env python # Example taken from: # http://www.mathworks.com/access/helpdesk/help/techdoc/visualize/f5-3371.html from scitools.easyviz import * from time import sleep from scipy import io setp(interactive=False) # Displaying an Isosurface: mri = io.loadmat('mri_matlab_v6.mat') D = mri['D'] #Ds = smooth3(D...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 198, 2, 17934, 2077, 422, 25, 198, 2, 2638, 1378, 2503, 13, 11018, 5225, 13, 785, 14, 15526, 14, 16794, 8906, 74, 14, 16794, 14, 13670, 15390, 14, 41464, 1096, 14, 69, 20, 12, 2091...
2.347087
412
import os import numpy as np import json import util_amira
[ 11748, 28686, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 33918, 198, 198, 11748, 7736, 62, 321, 8704, 628, 628, 628, 220, 220, 220, 220, 628 ]
2.730769
26
"""Blueprint definitions for maDMP integration.""" from flask import Blueprint, jsonify, request from invenio_db import db from .convert import convert_dmp from .models import DataManagementPlan def _summarize_dmp(dmp: DataManagementPlan) -> dict: """Create a summary dictionary for the given DMP.""" res = {...
[ 37811, 14573, 4798, 17336, 329, 17266, 35, 7378, 11812, 526, 15931, 198, 198, 6738, 42903, 1330, 39932, 11, 33918, 1958, 11, 2581, 198, 6738, 287, 574, 952, 62, 9945, 1330, 20613, 198, 198, 6738, 764, 1102, 1851, 1330, 10385, 62, 67, ...
2.768638
389
from django.urls import path from . import views urlpatterns = [ path('', views.index, name='index'), path('retrieval_insert', views.retrieval_insert, name='retrieval_insert'), path('retrieval_get', views.retrieval_get, name='retrieval_get') ]
[ 6738, 42625, 14208, 13, 6371, 82, 1330, 3108, 198, 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, 10786, ...
2.734043
94
import RPi.GPIO as GPIO import threading # r_en_a = 27 # r_en_b = 10 # l_en_a = 5 # l_en_b = 6 # enc_obj = Encoder(27,10,5,6) # def update_encoders(): # threading.Timer(1,update_encoders).start() # print(" looping ") # update_encoders()
[ 11748, 25812, 72, 13, 16960, 9399, 355, 50143, 198, 11748, 4704, 278, 198, 198, 2, 374, 62, 268, 62, 64, 796, 2681, 220, 198, 2, 374, 62, 268, 62, 65, 796, 838, 198, 198, 2, 300, 62, 268, 62, 64, 796, 642, 198, 2, 300, 62, 2...
2.066116
121
from django.conf.urls import url from django.urls import path, include from systori.apps.user.authorization import office_auth from systori.apps.equipment.views import EquipmentListView, EquipmentView, EquipmentCreate, EquipmentDelete, EquipmentUpdate, RefuelingStopCreate, RefuelingStopDelete, RefuelingStopUpdate, Mai...
[ 6738, 42625, 14208, 13, 10414, 13, 6371, 82, 1330, 19016, 198, 6738, 42625, 14208, 13, 6371, 82, 1330, 3108, 11, 2291, 198, 198, 6738, 827, 301, 10145, 13, 18211, 13, 7220, 13, 9800, 1634, 1330, 2607, 62, 18439, 198, 6738, 827, 301, ...
2.154571
1,061
#coding:utf-8 # Generated by the protocol buffer compiler. DO NOT EDIT! # source: check_info.proto import sys _b = sys.version_info[0] < 3 and (lambda x: x) or (lambda x: x.encode('latin1')) from google.protobuf.internal import enum_type_wrapper from google.protobuf import descriptor as _descriptor from google.protob...
[ 2, 66, 7656, 25, 40477, 12, 23, 198, 2, 2980, 515, 416, 262, 8435, 11876, 17050, 13, 220, 8410, 5626, 48483, 0, 198, 2, 2723, 25, 2198, 62, 10951, 13, 1676, 1462, 198, 198, 11748, 25064, 198, 62, 65, 796, 25064, 13, 9641, 62, 10...
1.909522
7,173
from numpy import zeros # Define ab2 function # Define functions # Set initial conditions t0 = 0.0 tf = 1.0 y0 = 1.0 n = 5 # Execute AB2 t, yab2 = ab2(f,t0,tf,y0,n) # Print results print("%5s %8s" % ('t','y')) for i in range(n+1): print("%8.4f %8.4f" % (t[i],yab2[i]))
[ 6738, 299, 32152, 1330, 1976, 27498, 198, 198, 2, 2896, 500, 450, 17, 2163, 220, 198, 198, 2, 2896, 500, 5499, 198, 198, 2, 5345, 4238, 3403, 198, 83, 15, 796, 657, 13, 15, 198, 27110, 796, 352, 13, 15, 198, 88, 15, 796, 352, ...
1.951049
143
# # Copyright 2017 Mycroft AI Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writ...
[ 2, 198, 2, 15069, 2177, 2011, 36714, 9552, 3457, 13, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 2, 345, 743, 407, 779, 428, 2393, 2845, 287, 11846, 351, 262, 13789, 13...
3.482972
323
# !/usr/bin/python # -*- coding: utf-8 -*- # @Time : 2020/9/18 12:02 # @Author : WardenAllen # @File : pluto_ftp.py # @Brief : import paramiko
[ 2, 5145, 14, 14629, 14, 8800, 14, 29412, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 2488, 7575, 220, 220, 220, 1058, 12131, 14, 24, 14, 1507, 1105, 25, 2999, 198, 2, 2488, 13838, 220, 1058, 38498, 399...
2.04
75
# Copyright (c) 2010-2011, Found IT A/S and Piped Project Contributors. # See LICENSE for details.
[ 2, 15069, 357, 66, 8, 3050, 12, 9804, 11, 4062, 7283, 317, 14, 50, 290, 25149, 276, 4935, 25767, 669, 13, 198, 2, 4091, 38559, 24290, 329, 3307, 13, 198 ]
3.3
30
import sys sys.path = ['', '..'] + sys.path[1:] import daemon from assistance_bot import core from functionality.voice_processing import speaking, listening from functionality.commands import * if __name__ == '__main__': speaking.setup_assistant_voice(core.ttsEngine, core.assistant) while True: # st...
[ 11748, 25064, 220, 220, 198, 17597, 13, 6978, 796, 37250, 3256, 705, 492, 20520, 1343, 25064, 13, 6978, 58, 16, 47715, 198, 198, 11748, 33386, 198, 6738, 6829, 62, 13645, 1330, 4755, 198, 6738, 11244, 13, 38888, 62, 36948, 1330, 5486, ...
2.895
200
total = 0 partial_sums = [total := total + v for v in values] print("Total:", total) <ref>
[ 23350, 796, 657, 198, 47172, 62, 82, 5700, 796, 685, 23350, 19039, 2472, 1343, 410, 329, 410, 287, 3815, 60, 198, 4798, 7203, 14957, 25, 1600, 2472, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220...
2.229167
48
# -*- coding: utf8 -*- ######################################################################################## # This file is part of exhale. Copyright (c) 2017-2022, Stephen McDowell. # # Full BSD 3-Clause license available here: # # ...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 23, 532, 9, 12, 198, 29113, 29113, 14468, 7804, 198, 2, 770, 2393, 318, 636, 286, 21847, 1000, 13, 220, 15069, 357, 66, 8, 2177, 12, 1238, 1828, 11, 7970, 23394, 32829, 13, 220, 220, 220, 220,...
2.396442
4,553
import argparse import multiprocessing import os import random import numpy as np from data_utils import DATAFILE_LIST, DATASET_LIST, prepare_data, RESULTS_DIR from models import SumOfBetaEce random.seed(2020) num_cores = multiprocessing.cpu_count() NUM_BINS = 10 NUM_RUNS = 100 N_list = [100, 200, 500, 1000, 2000, 5...
[ 11748, 1822, 29572, 198, 11748, 18540, 305, 919, 278, 198, 11748, 28686, 198, 11748, 4738, 198, 198, 11748, 299, 32152, 355, 45941, 198, 198, 6738, 1366, 62, 26791, 1330, 360, 1404, 8579, 41119, 62, 45849, 11, 360, 1404, 1921, 2767, 62,...
2.67451
510
# # Princeton University licenses this file to You 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 writ...
[ 2, 198, 2, 23173, 2059, 16625, 428, 2393, 284, 921, 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, 220, 921, 743, 7330, 2...
3.610503
457
from ee.clickhouse.sql.clickhouse import KAFKA_COLUMNS, STORAGE_POLICY, kafka_engine from ee.clickhouse.sql.table_engines import CollapsingMergeTree, ReplacingMergeTree from ee.kafka_client.topics import KAFKA_PERSON, KAFKA_PERSON_DISTINCT_ID, KAFKA_PERSON_UNIQUE_ID from posthog.settings import CLICKHOUSE_CLUSTER, CLIC...
[ 6738, 304, 68, 13, 12976, 4803, 13, 25410, 13, 12976, 4803, 1330, 509, 8579, 25123, 62, 25154, 5883, 8035, 11, 46366, 11879, 62, 45472, 2149, 56, 11, 479, 1878, 4914, 62, 18392, 198, 6738, 304, 68, 13, 12976, 4803, 13, 25410, 13, 11...
2.343155
5,091
from sigvisa.learn.train_coda_models import get_shape_training_data import numpy as np X, y, evids = get_shape_training_data(runid=4, site="AS12", chan="SHZ", band="freq_2.0_3.0", phases=["P",], target="amp_transfer", max_acost=np.float("inf"), min_amp=-2) np.savetxt("X.txt", X) np.savetxt("y.txt", y) np.savetxt("evid...
[ 6738, 43237, 4703, 64, 13, 35720, 13, 27432, 62, 66, 11329, 62, 27530, 1330, 651, 62, 43358, 62, 34409, 62, 7890, 198, 11748, 299, 32152, 355, 45941, 198, 198, 55, 11, 331, 11, 819, 2340, 796, 651, 62, 43358, 62, 34409, 62, 7890, ...
2.375887
141
import math import numpy as np # plt.style.use('seaborn') # plt.rcParams['figure.figsize'] = (12, 8)
[ 11748, 10688, 198, 11748, 299, 32152, 355, 45941, 628, 198, 198, 2, 458, 83, 13, 7635, 13, 1904, 10786, 325, 397, 1211, 11537, 198, 2, 458, 83, 13, 6015, 10044, 4105, 17816, 26875, 13, 5647, 7857, 20520, 796, 357, 1065, 11, 807, 8, ...
2.355556
45
greet() greet_again("Hello Again") greet_again_with_type("One Last Time") greet_again_with_type(1234) # multiple types print(multiple_types(-2)) print(multiple_types(10)) # variable arguments var_arguments(1, 2, 3) a = [1, 2, 3] var_arguments(a) var_arguments(*a) # expanding v b = {"first" : "python", "...
[ 628, 198, 198, 70, 2871, 3419, 198, 70, 2871, 62, 17776, 7203, 15496, 6521, 4943, 198, 70, 2871, 62, 17776, 62, 4480, 62, 4906, 7203, 3198, 4586, 3862, 4943, 198, 70, 2871, 62, 17776, 62, 4480, 62, 4906, 7, 1065, 2682, 8, 628, 198...
2.514085
142
from ad9833 import AD9833 # DUMMY classes for testing without board # Code SBI1 = SBI() PIN3 = Pin() wave = AD9833(SBI1, PIN3) wave.set_freq(14500) wave.set_type(2) wave.send() print(wave.shape_type)
[ 6738, 512, 4089, 2091, 1330, 5984, 4089, 2091, 198, 198, 2, 360, 5883, 26708, 6097, 329, 4856, 1231, 3096, 628, 628, 198, 2, 6127, 198, 198, 50, 3483, 16, 796, 311, 3483, 3419, 198, 44032, 18, 796, 13727, 3419, 198, 198, 19204, 796,...
2.311111
90
# Copyright (C) 2018 DataArt # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
[ 2, 15069, 357, 34, 8, 2864, 6060, 8001, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 2, 345, 743, 407, 779, 428, 2393, 2845, 287, 11846, 351, 262, 13789, 13, 198, 2, 9...
4.150602
166
import logging import abstracthandler import os
[ 11748, 18931, 198, 11748, 12531, 30281, 198, 11748, 28686, 628 ]
4.9
10
# Copyright 2019, The TensorFlow Federated Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
[ 2, 15069, 13130, 11, 383, 309, 22854, 37535, 35089, 515, 46665, 13, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 2, 345, 743, 407, 779, 428, 2393, 2845, 287, 11846, 351, ...
3.352423
1,135
from __future__ import print_function import os import shutil import hashlib import requests import click from tempfile import NamedTemporaryFile from hashlib import sha256 from os.path import expanduser, join, exists, basename from .utils import HumanSize from .tar import extract_layer from . import trust from . impor...
[ 6738, 11593, 37443, 834, 1330, 3601, 62, 8818, 198, 11748, 28686, 198, 11748, 4423, 346, 198, 11748, 12234, 8019, 198, 11748, 7007, 198, 11748, 3904, 198, 6738, 20218, 7753, 1330, 34441, 12966, 5551, 8979, 198, 6738, 12234, 8019, 1330, 42...
2.602808
1,211
from DocTest.CompareImage import CompareImage import pytest from pathlib import Path import numpy
[ 6738, 14432, 14402, 13, 41488, 5159, 1330, 27814, 5159, 198, 11748, 12972, 9288, 198, 6738, 3108, 8019, 1330, 10644, 198, 11748, 299, 32152, 198 ]
4.083333
24
from .labels_tableview import LabelsTableView
[ 6738, 764, 23912, 1424, 62, 11487, 1177, 1330, 3498, 1424, 10962, 7680, 198 ]
3.538462
13
import functools import numpy as np import math import argparse import ags_solver import go_problems import nlopt import sys from Simple import SimpleTuner import itertools from scipy.spatial import Delaunay from scipy.optimize import differential_evolution from scipy.optimize import basinhopping from sdaopt import sda...
[ 11748, 1257, 310, 10141, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 10688, 198, 11748, 1822, 29572, 198, 11748, 556, 82, 62, 82, 14375, 198, 11748, 467, 62, 1676, 22143, 198, 11748, 299, 75, 8738, 198, 11748, 25064, 198, 6738, 1742...
2.5
1,040
import arcpy import logging import pathlib import subprocess import gdb import cx_sde
[ 11748, 10389, 9078, 198, 11748, 18931, 198, 11748, 3108, 8019, 198, 11748, 850, 14681, 198, 198, 11748, 308, 9945, 198, 11748, 43213, 62, 82, 2934, 628, 628 ]
3.333333
27
n = input('Digite algo: ') print('O tipo primitivo da varivel : ', type(n)) print('O que foi digitado alfa numrico? ', n.isalnum()) print('O que foi digitado alfabtico? ', n.isalpha()) print('O que foi digitado um decimal? ', n.isdecimal()) print('O que foi digitado minsculo? ', n.islower()) print('O que foi digita...
[ 77, 796, 5128, 10786, 19511, 578, 435, 2188, 25, 705, 8, 198, 4798, 10786, 46, 8171, 78, 2684, 270, 23593, 12379, 1401, 425, 75, 1058, 46083, 2099, 7, 77, 4008, 198, 4798, 10786, 46, 8358, 11511, 72, 16839, 4533, 220, 435, 13331, 99...
2.675799
219
from numpy import * import numpy as np import matplotlib.pyplot as plt from mlp import mlp x = ones((1, 40)) * linspace(0, 1, 40) t = sin(2 * pi * x) + cos(2 * pi * x) + np.random.randn(40) * 0.2 x = transpose(x) t = transpose(t) n_hidden = 3 eta = 0.25 n_iterations = 101 plt.plot(x, t, '.') plt.show() train = x[0:...
[ 6738, 299, 32152, 1330, 1635, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 198, 6738, 25962, 79, 1330, 25962, 79, 198, 198, 87, 796, 3392, 19510, 16, 11, 2319, 4008, 1635, 300, 1040...
2.133333
300
# 2020 . all rights reserved. # <llllllllll@kakao.com> # Apache License 2.0 from .small import * from .medium import * from .large import *
[ 2, 220, 12131, 764, 477, 2489, 10395, 13, 198, 2, 1279, 297, 297, 297, 297, 297, 31, 74, 461, 5488, 13, 785, 29, 198, 2, 24843, 13789, 362, 13, 15, 198, 198, 6738, 764, 17470, 1330, 1635, 198, 6738, 764, 24132, 1330, 1635, 198, ...
2.877551
49
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.constant.ParamConstants import *
[ 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.446809
47
# Copyright 2020 The Tekton Authors # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in wr...
[ 2, 15069, 12131, 383, 33516, 1122, 46665, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 2, 345, 743, 407, 779, 428, 2393, 2845, 287, 11846, 351, 262, 13789, 13, 198, 2, 9...
2.869318
528
import zmq import curses import argparse import configparser import threading import time from curses import wrapper from client import Client from ui import UI if '__main__' == __name__: try: args = parse_args() wrapper(main) except KeyboardInterrupt as e: pass except: ...
[ 11748, 1976, 76, 80, 198, 11748, 43878, 198, 198, 11748, 1822, 29572, 198, 11748, 4566, 48610, 198, 11748, 4704, 278, 198, 11748, 640, 198, 198, 6738, 43878, 1330, 29908, 198, 198, 6738, 5456, 1330, 20985, 198, 6738, 334, 72, 1330, 1245...
2.682927
123
import anonlink from anonlink.candidate_generation import _merge_similarities from entityservice.object_store import connect_to_object_store from entityservice.async_worker import celery, logger from entityservice.settings import Config as config from entityservice.tasks.base_task import TracedTask from entityservice....
[ 11748, 281, 261, 8726, 198, 6738, 281, 261, 8726, 13, 46188, 20540, 62, 20158, 1330, 4808, 647, 469, 62, 38610, 871, 198, 198, 6738, 9312, 15271, 13, 15252, 62, 8095, 1330, 2018, 62, 1462, 62, 15252, 62, 8095, 198, 6738, 9312, 15271, ...
3.821053
95
# -*- coding: utf-8 -*- # Generated by Django 1.11.3 on 2017-08-24 13:41 from __future__ import unicode_literals from django.db import migrations, models
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 2980, 515, 416, 37770, 352, 13, 1157, 13, 18, 319, 2177, 12, 2919, 12, 1731, 1511, 25, 3901, 198, 6738, 11593, 37443, 834, 1330, 28000, 1098, 62, 17201, 874, 198, ...
2.736842
57