content
stringlengths
1
1.04M
input_ids
listlengths
1
774k
ratio_char_token
float64
0.38
22.9
token_count
int64
1
774k
from yucheng_ner.tplinker_ner import tplinker_ner from yucheng_ner.ner_common import components, utils
[ 6738, 331, 1229, 31753, 62, 1008, 13, 83, 489, 24275, 62, 1008, 1330, 256, 489, 24275, 62, 1008, 198, 6738, 331, 1229, 31753, 62, 1008, 13, 1008, 62, 11321, 1330, 6805, 11, 3384, 4487 ]
3
34
''' Created on Apr 2014 Edited on Oct 2020 @author: Jan Verhoeven @author: Bassem Girgis @copyright: MIT license, see http://opensource.org/licenses/MIT ''' import argparse import signal import sys from typing import Optional, Tuple import zmq # Handle OS signals (like keyboard interrupt) signal.signal(signa...
[ 198, 198, 7061, 6, 198, 41972, 319, 2758, 1946, 198, 45882, 319, 2556, 12131, 198, 198, 31, 9800, 25, 2365, 4643, 38979, 574, 198, 31, 9800, 25, 6455, 43616, 23837, 70, 271, 198, 198, 31, 22163, 4766, 25, 17168, 5964, 11, 766, 2638,...
2.912409
137
# Submitted April 2, 2020 # Team 28: # Nathan MacDiarmid 101098993 # Anita Ntomchukwu 101138391 # Sam Hurd 101146639 # Yahya Shah 101169280 # MILESTONE 3 # IMPORTS from T28_image_filters import * from Cimpl import * # DEFINITIONS def execute_filter(command: tuple) -> Image: """ Returns an image with the fi...
[ 2, 3834, 3291, 3035, 362, 11, 12131, 198, 2, 4816, 2579, 25, 198, 2, 18106, 4100, 18683, 1670, 312, 8949, 2931, 44093, 18, 198, 2, 38992, 399, 39532, 46019, 43812, 8949, 20107, 37710, 198, 2, 3409, 367, 2799, 8949, 1415, 2791, 2670, ...
2.392019
852
""" The prime factors of 13195 are 5, 7, 13 and 29. What is the largest prime factor of the number 600851475143? """ import math INPUT = 600851475143 if __name__ == '__main__': for i in range(math.ceil(math.sqrt(INPUT)), 1, -2): if INPUT % i == 0 and is_prime(i): print(i) break
[ 37811, 198, 464, 6994, 5087, 286, 1511, 22186, 389, 642, 11, 767, 11, 1511, 290, 2808, 13, 198, 198, 2061, 318, 262, 4387, 6994, 5766, 286, 262, 1271, 10053, 5332, 1415, 2425, 21139, 30, 198, 37811, 198, 198, 11748, 10688, 198, 198, ...
2.262411
141
from typing import Tuple import torch import os import tensorflow as tf import networkx as nx import scipy as sp import numpy as np import torch_geometric.utils as tu from torch_geometric.data import Data import gpflow from gpn.utils import ModelConfiguration from .gpflow_gpp import GPFLOWGGP from .matern_ggp_utils i...
[ 6738, 19720, 1330, 309, 29291, 198, 11748, 28034, 198, 11748, 28686, 198, 11748, 11192, 273, 11125, 355, 48700, 198, 11748, 3127, 87, 355, 299, 87, 198, 11748, 629, 541, 88, 355, 599, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 2803...
2.952174
230
# -*- coding: utf-8 -*- """ This is the find module. The find module supplies one function, autocorrelation() """ from statsmodels.tsa.stattools import acf import pandas as pd def autocorrelation( data_frame: pd.DataFrame, unbiased: bool = False, nlags: int = 40, fft: bool = None, alpha: floa...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 198, 1212, 318, 262, 1064, 8265, 13, 198, 464, 1064, 8265, 9416, 530, 2163, 11, 198, 220, 220, 220, 1960, 420, 273, 49501, 3419, 198, 37811, 198, 198, 6738, 975...
2.204573
1,662
#Escreva um progrma que leia a velocidade de um carro. #Se ele ultrapassar 80Km/h, mostre um mensagem de que ele foi multado #A multa vai custar R$7,00 por cada Km acima do limite. v = float(input('Velocidade do carro: ')) if v <= 80: print('Dentro do limite de velocidade. Boa viagem') else: print(f'Velocidade...
[ 2, 47051, 260, 6862, 23781, 1172, 81, 2611, 8358, 443, 544, 257, 11555, 420, 312, 671, 390, 23781, 1097, 305, 13, 198, 2, 4653, 9766, 3789, 2416, 562, 283, 4019, 42, 76, 14, 71, 11, 749, 260, 23781, 285, 641, 363, 368, 390, 8358, ...
2.144279
201
# https://leetcode.com/problems/middle-of-the-linked-list/ # Definition for singly-linked list. # class ListNode: # def __init__(self, x): # self.val = x # self.next = None
[ 2, 3740, 1378, 293, 316, 8189, 13, 785, 14, 1676, 22143, 14, 27171, 12, 1659, 12, 1169, 12, 25614, 12, 4868, 14, 628, 198, 2, 30396, 329, 1702, 306, 12, 25614, 1351, 13, 198, 2, 1398, 7343, 19667, 25, 198, 2, 220, 220, 220, 220,...
2.294118
85
"""Tests for the Amount field""" from decimal import Decimal import pytest from swissdta.fields import Amount from swissdta.records.record import DTARecord FIELD_LENGTH = 8 class ARecord(DTARecord): """Subclass of DTARecord for testing the Numeric field""" field = Amount(length=FIELD_LENGTH) @pytest.mar...
[ 37811, 51, 3558, 329, 262, 26308, 2214, 37811, 198, 198, 6738, 32465, 1330, 4280, 4402, 198, 198, 11748, 12972, 9288, 198, 198, 6738, 1509, 747, 67, 8326, 13, 25747, 1330, 26308, 198, 6738, 1509, 747, 67, 8326, 13, 8344, 3669, 13, 221...
2.215022
679
#!/usr/bin/env python #****************************************************************************** # Name: ct.py # Purpose: determine classification accuracy and contingency table # from test data # Usage: # python ct.py # # Copyright (c) 2018, Mort Canty import numpy as np impo...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 17174, 17174, 46068, 1174, 198, 2, 220, 6530, 25, 220, 220, 220, 220, 269, 83, 13, 9078, 198, 2, 220, 32039, 25, 220, 5004, 17923, 9922, 290, 38820, 3084, 198, 2, 220, 220, 220,...
2.782051
156
import gspread import pandas as pd from datetime import datetime import os import json # print(os.environ.get('google_p_key')) credentials = json.loads(os.environ.get('google_p_key')) gc = gspread.service_account_from_dict(credentials) sh = gc.open_by_key("1b9o6uDO18sLxBqPwl_Gh9bnhW-ev_dABH83M5Vb5L8o") worksheet =...
[ 11748, 308, 43639, 198, 11748, 19798, 292, 355, 279, 67, 198, 6738, 4818, 8079, 1330, 4818, 8079, 198, 11748, 28686, 198, 11748, 33918, 198, 198, 2, 3601, 7, 418, 13, 268, 2268, 13, 1136, 10786, 13297, 62, 79, 62, 2539, 6, 4008, 198...
2.304795
292
#!/usr/bin/python3 import sys filename = sys.argv[1] out_filename = filename[:-3] + "csv" with open(filename, "r", encoding='utf-16le') as inputFile: with open(out_filename, "w") as outputFile: lines = [line.strip() for line in inputFile.readlines()] lines = [line[2:] for line in lines if line.st...
[ 2, 48443, 14629, 14, 8800, 14, 29412, 18, 198, 198, 11748, 25064, 198, 198, 34345, 796, 25064, 13, 853, 85, 58, 16, 60, 198, 448, 62, 34345, 796, 29472, 58, 21912, 18, 60, 1343, 366, 40664, 1, 198, 198, 4480, 1280, 7, 34345, 11, ...
2.208333
312
import bech32 from eth_hash.auto import keccak as keccak_256 DEFAULT_ADDRESS_PREFIX = 'io' def pubkey_to_address(pubkey, prefix=None): """This implements the algorithm described here https://github.com/iotexproject/iotex-address""" if prefix is None: prefix = DEFAULT_ADDRESS_PREFIX if pubkey is...
[ 11748, 307, 354, 2624, 198, 6738, 4555, 62, 17831, 13, 23736, 1330, 885, 535, 461, 355, 885, 535, 461, 62, 11645, 198, 198, 7206, 38865, 62, 2885, 7707, 7597, 62, 47, 31688, 10426, 796, 705, 952, 6, 628, 198, 198, 4299, 2240, 2539, ...
2.5
222
""" Input and output data """ from networktables import NetworkTables import logging logging.basicConfig(level=logging.DEBUG) SD = NetworkTables.getTable("SmartDashboard")
[ 37811, 198, 198, 20560, 290, 5072, 1366, 198, 198, 37811, 198, 198, 6738, 3127, 83, 2977, 1330, 7311, 51, 2977, 198, 198, 11748, 18931, 198, 6404, 2667, 13, 35487, 16934, 7, 5715, 28, 6404, 2667, 13, 30531, 8, 198, 198, 10305, 796, ...
3.277778
54
import time, threading from scapy.all import * listc = [] lists = [] print('debut') x = time.time() p1 = Find(1,50) p2 = Find(50,100) p3 = Find(100, 150) p4 = Find(150,200) p1.start() p2.start() p3.start() p4.start() for i in range(200, 250): print(time.time() - x , 's :', f'192.168.8.{i}...
[ 11748, 640, 11, 4704, 278, 198, 6738, 629, 12826, 13, 439, 1330, 1635, 198, 4868, 66, 796, 17635, 198, 20713, 796, 17635, 198, 4798, 10786, 11275, 315, 11537, 198, 87, 796, 640, 13, 2435, 3419, 198, 220, 220, 220, 220, 220, 220, 220...
2.079327
416
''' TACO: Multi-sample transcriptome assembly from RNA-Seq ''' import os import cStringIO import timeit import numpy as np from taco.lib.dtypes import FLOAT_DTYPE from taco.lib.bedgraph import array_to_bedgraph, bedgraph_to_array from taco.lib.cbedgraph import array_to_bedgraph as c_array_to_bedgraph
[ 7061, 6, 198, 51, 2246, 46, 25, 15237, 12, 39873, 14687, 462, 10474, 422, 25897, 12, 4653, 80, 198, 7061, 6, 198, 11748, 28686, 198, 11748, 269, 10100, 9399, 198, 11748, 640, 270, 198, 11748, 299, 32152, 355, 45941, 198, 198, 6738, ...
2.906542
107
from textwrap import TextWrapper from sqs_workers.utils import ( adv_bind_arguments, adv_validate_arguments, instantiate_from_dict, instantiate_from_string, string_to_object, )
[ 6738, 2420, 37150, 1330, 8255, 36918, 2848, 198, 198, 6738, 19862, 82, 62, 22896, 13, 26791, 1330, 357, 198, 220, 220, 220, 1354, 62, 21653, 62, 853, 2886, 11, 198, 220, 220, 220, 1354, 62, 12102, 378, 62, 853, 2886, 11, 198, 220, ...
2.602564
78
import numpy as np import cPickle """* This file contains everything that has to be loaded from lookuptables e.g., the sound file lengths, the alphabet etc * Lookuptables stored in files, all depend on a root directory""" class AlphabetLoader(FileLoader): """This class contains all the loading functions asso...
[ 198, 11748, 299, 32152, 355, 45941, 198, 11748, 269, 31686, 293, 198, 198, 37811, 9, 770, 2393, 4909, 2279, 326, 468, 284, 307, 9639, 422, 804, 37623, 2977, 304, 13, 70, 1539, 262, 2128, 2393, 20428, 11, 262, 24830, 3503, 198, 220, ...
4.100437
229
import os from flask import Flask, request app = Flask(__name__) @app.route('/', methods=["GET", "POST"]) if __name__ == "__main__": app.run(debug=True)
[ 11748, 28686, 198, 6738, 42903, 1330, 46947, 11, 2581, 628, 198, 1324, 796, 46947, 7, 834, 3672, 834, 8, 628, 198, 31, 1324, 13, 38629, 10786, 14, 3256, 5050, 28, 14692, 18851, 1600, 366, 32782, 8973, 8, 628, 198, 361, 11593, 3672, ...
2.666667
60
from datetime import timedelta from django.conf import settings from money import set_default_currency DEBUG = getattr(settings, "DEBUG", False) if DEBUG: # use sandboxes while in debug mode PAYPAL_ENDPOINT = 'https://svcs.sandbox.paypal.com/AdaptivePayments/' PAYPAL_PAYMENT_HOST = 'https://www.sandbox.p...
[ 6738, 4818, 8079, 1330, 28805, 12514, 198, 6738, 42625, 14208, 13, 10414, 1330, 6460, 198, 6738, 1637, 1330, 900, 62, 12286, 62, 34415, 628, 198, 30531, 796, 651, 35226, 7, 33692, 11, 366, 30531, 1600, 10352, 8, 198, 198, 361, 16959, ...
2.478442
719
"""Create WaveJSON text string from VCD file.""" import sys
[ 37811, 16447, 17084, 40386, 2420, 4731, 422, 569, 8610, 2393, 526, 15931, 198, 11748, 25064, 628, 628, 198 ]
3.555556
18
import time from selenium import webdriver from selenium.webdriver.common.keys import Keys from selenium.webdriver.common.action_chains import ActionChains from selenium.webdriver.support.ui import WebDriverWait from selenium.webdriver.support import expected_conditions as EC from selenium.webdriver.common.by import B...
[ 11748, 640, 198, 198, 6738, 384, 11925, 1505, 1330, 3992, 26230, 198, 6738, 384, 11925, 1505, 13, 12384, 26230, 13, 11321, 13, 13083, 1330, 26363, 198, 6738, 384, 11925, 1505, 13, 12384, 26230, 13, 11321, 13, 2673, 62, 38861, 1330, 7561...
3.45625
160
#!/usr/bin/env python # -*- coding: utf-8 -*- import os import sched import time """ Perform crawling tasks on a regular basis, this module default starts crawler 'fish_simple_crawler' on the everyday. """ scheduler = sched.scheduler(time.time, time.sleep) if __name__ == '__main__': scheduler.enter(0, 0, ...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 11748, 28686, 198, 11748, 6038, 198, 11748, 640, 198, 198, 37811, 198, 5990, 687, 34499, 8861, 319, 257, 3218, 4308, 11...
2.699301
143
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. # from ._utils import _C import torch if torch.__version__.split(".")[0] == "1": from torchvision.ops import nms elif torch.__version__ == "0.4.0": from model.nms.nms_wrapper import nms else: raise RuntimeError("unsupported torch versi...
[ 2, 15069, 357, 66, 8, 3203, 11, 3457, 13, 290, 663, 29116, 13, 1439, 6923, 33876, 13, 198, 2, 422, 47540, 26791, 1330, 4808, 34, 198, 198, 11748, 28034, 198, 361, 28034, 13, 834, 9641, 834, 13, 35312, 7203, 19570, 58, 15, 60, 6624...
2.952703
148
#!/usr/bin/python import RPi.GPIO as GPIO import time #monitor = SonicDistanceMonitor(print_distance) #monitor.start(0.2)
[ 2, 48443, 14629, 14, 8800, 14, 29412, 198, 11748, 25812, 72, 13, 16960, 9399, 355, 50143, 198, 11748, 640, 198, 198, 2, 41143, 796, 18426, 45767, 35479, 7, 4798, 62, 30246, 8, 198, 2, 41143, 13, 9688, 7, 15, 13, 17, 8, 628 ]
2.883721
43
import logging from kfusiontables.kft import KFusionTables logger = logging.getLogger(__name__)
[ 11748, 18931, 198, 198, 6738, 479, 69, 4241, 83, 2977, 13, 74, 701, 1330, 509, 37, 4241, 51, 2977, 628, 198, 6404, 1362, 796, 18931, 13, 1136, 11187, 1362, 7, 834, 3672, 834, 8, 628 ]
2.857143
35
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file '/home/colin/dev/pyQode/pyqode.core/forms/search_panel.ui' # # Created by: PyQt5 UI code generator 5.5.1 # # WARNING! All changes made in this file will be lost! from qtpy import QtCore, QtGui, QtWidgets from pyqode.core.widgets import Prom...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 2, 5178, 7822, 7560, 422, 3555, 334, 72, 2393, 31051, 11195, 14, 4033, 259, 14, 7959, 14, 9078, 48, 1098, 14, 9078, 80, 1098, 13, 7295, 14, 23914, 14, 12947, 62...
2.782946
129
#!/usr/bin/env python import json import re import sys import time from argparse import ArgumentParser from queue import Queue import requests as rq from bs4 import BeautifulSoup from loguru import logger if __name__ == '__main__': main()
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 198, 11748, 33918, 198, 11748, 302, 198, 11748, 25064, 198, 11748, 640, 198, 6738, 1822, 29572, 1330, 45751, 46677, 198, 6738, 16834, 1330, 4670, 518, 198, 198, 11748, 7007, 355, 374, 80...
3.185185
81
#!/usr/bin/env python3 ## # # GraceNET v0.0 # # Predict future anomolies based soley on the past 24 months of # GRACE anomolies. This file generates training and testing data # saving both to json files # ## import random import csv import glob import json import datetime import numpy as np import matplotlib.pyplot ...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 198, 2235, 198, 2, 198, 2, 16156, 12884, 410, 15, 13, 15, 198, 2, 198, 2, 49461, 2003, 281, 296, 349, 444, 1912, 523, 1636, 319, 262, 1613, 1987, 1933, 286, 198, 2, 10863, 11...
2.307176
9,379
"""doc # Train Config This is the main configuration file used for training the approach. """ import os from deeptech.core import Config, cli from deeptech.model.module_from_json import Module from deeptech.training.trainers import SupervisedTrainer from deeptech.training.optimizers import smart_optimizer from torch.o...
[ 37811, 15390, 198, 2, 16835, 17056, 198, 198, 1212, 318, 262, 1388, 8398, 2393, 973, 329, 3047, 262, 3164, 13, 198, 37811, 198, 11748, 28686, 198, 6738, 390, 19598, 3055, 13, 7295, 1330, 17056, 11, 537, 72, 198, 6738, 390, 19598, 3055...
3.354167
192
#!/usr/bin/env python # Copyright (c) 2009, Giampaolo Rodola'. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """FreeBSD platform implementation.""" import errno import os import sys import warnings import _psutil_bsd import _psutil_posix ...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 198, 2, 15069, 357, 66, 8, 3717, 11, 8118, 13299, 14057, 6882, 5708, 4458, 1439, 2489, 10395, 13, 198, 2, 5765, 286, 428, 2723, 2438, 318, 21825, 416, 257, 347, 10305, 12, 7635, 5964...
2.390944
4,108
import singer from tap_kit import TapExecutor from tap_kit.utils import (transform_write_and_count) LOGGER = singer.get_logger()
[ 11748, 14015, 198, 198, 6738, 9814, 62, 15813, 1330, 16880, 23002, 38409, 198, 6738, 9814, 62, 15813, 13, 26791, 1330, 357, 35636, 62, 13564, 62, 392, 62, 9127, 8, 198, 198, 25294, 30373, 796, 14015, 13, 1136, 62, 6404, 1362, 3419, 62...
3.142857
42
# Generated by Django 2.1.14 on 2020-03-10 19:03 from django.db import migrations, models
[ 2, 2980, 515, 416, 37770, 362, 13, 16, 13, 1415, 319, 12131, 12, 3070, 12, 940, 678, 25, 3070, 198, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 11, 4981, 628 ]
2.875
32
""" This package defines database models and relations used """ from . import db from flask_login import UserMixin from werkzeug.security import generate_password_hash, check_password_hash class MovieHandle(db.Model): """ MovieHandle class provides a representation of a movie id for the database """ i...
[ 37811, 198, 1212, 5301, 15738, 6831, 4981, 290, 2316, 973, 198, 37811, 198, 6738, 764, 1330, 20613, 198, 6738, 42903, 62, 38235, 1330, 11787, 35608, 259, 198, 6738, 266, 9587, 2736, 1018, 13, 12961, 1330, 7716, 62, 28712, 62, 17831, 11,...
2.256354
1,810
# -*- coding: utf-8 -*- """ Created on Tue Mar 5 00:39:20 2019 @author: Ham HackerRanch Challenge: Iterable and Iterators The itertools module standardizes a core set of fast, memory efficient tools that are useful by themselves or in combination. Together, they form an iterator algebra making it possible...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 201, 198, 37811, 201, 198, 41972, 319, 30030, 1526, 220, 642, 3571, 25, 2670, 25, 1238, 13130, 201, 198, 201, 198, 31, 9800, 25, 4345, 201, 198, 201, 198, 39, 10735, 49, ...
2.758252
1,121
from setuptools import find_packages, setup setup( name='src', packages=find_packages(), version='0.1.0', description='Fun project to explore numer.ai modelling of market trends', author='Arvpau', license='', )
[ 6738, 900, 37623, 10141, 1330, 1064, 62, 43789, 11, 9058, 198, 198, 40406, 7, 198, 220, 220, 220, 1438, 11639, 10677, 3256, 198, 220, 220, 220, 10392, 28, 19796, 62, 43789, 22784, 198, 220, 220, 220, 2196, 11639, 15, 13, 16, 13, 15,...
2.878049
82
''' This program will convert PDFs into images and read text from those images and print the text over the screen. This can also extract text directly from images and print it out. ''' import os # try is used to keep a check over the import. If there is an error, it will not close # the program, but instead execute th...
[ 7061, 6, 198, 1212, 1430, 481, 10385, 12960, 82, 656, 4263, 290, 1100, 2420, 422, 883, 4263, 198, 392, 3601, 262, 2420, 625, 262, 3159, 13, 198, 1212, 460, 635, 7925, 2420, 3264, 422, 4263, 290, 3601, 340, 503, 13, 198, 7061, 6, 1...
2.693878
1,617
# -*- coding: utf-8 -*- import pytest from rostestplus.ros_comm.asserts import ( AssertException, assert_node_pingable, assert_node_listed, assert_node_listed_on_machine, assert_service_response_success_true, )
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 11748, 12972, 9288, 198, 198, 6738, 686, 301, 395, 9541, 13, 4951, 62, 9503, 13, 30493, 82, 1330, 357, 198, 220, 220, 220, 2195, 861, 16922, 11, 198, 220, 220, ...
2.352381
105
# Copyright (C) 2018-2021 Intel Corporation # SPDX-License-Identifier: Apache-2.0 import unittest import numpy as np from mo.graph.graph import Node from mo.ops.pad import Pad, AttributedPad from mo.utils.unittest.graph import build_graph
[ 2, 15069, 357, 34, 8, 2864, 12, 1238, 2481, 8180, 10501, 198, 2, 30628, 55, 12, 34156, 12, 33234, 7483, 25, 24843, 12, 17, 13, 15, 198, 198, 11748, 555, 715, 395, 198, 198, 11748, 299, 32152, 355, 45941, 198, 198, 6738, 6941, 13, ...
3.115385
78
from ocnn import *
[ 6738, 267, 66, 20471, 1330, 1635, 628, 628, 628, 628, 198 ]
2.454545
11
import sqlalchemy import sqlalchemy.orm from wod_board import config Base = sqlalchemy.orm.declarative_base() engine = sqlalchemy.create_engine(config.DATABASE_URL) Session = sqlalchemy.orm.sessionmaker(bind=engine, class_=sqlalchemy.orm.Session) # Import each model fo Alembic from wod_board.models.equipment im...
[ 11748, 44161, 282, 26599, 198, 11748, 44161, 282, 26599, 13, 579, 198, 198, 6738, 266, 375, 62, 3526, 1330, 4566, 628, 198, 14881, 796, 44161, 282, 26599, 13, 579, 13, 32446, 283, 876, 62, 8692, 3419, 198, 198, 18392, 796, 44161, 282,...
2.819444
216
# Generated by Django 2.1.15 on 2020-12-30 14:55 import os from django.conf import settings from django.db import migrations from django.db.migrations.recorder import MigrationRecorder
[ 2, 2980, 515, 416, 37770, 362, 13, 16, 13, 1314, 319, 12131, 12, 1065, 12, 1270, 1478, 25, 2816, 198, 11748, 28686, 198, 198, 6738, 42625, 14208, 13, 10414, 1330, 6460, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 198, 6738, ...
3.20339
59
from __future__ import unicode_literals from flask import Flask, render_template, request from flask_cors import CORS, cross_origin import requests import dropbox app = Flask(__name__) cors = CORS(app) app.config['CORS_HEADERS'] = 'Content-Type' import praw import requests import youtube_dl import random import time...
[ 6738, 11593, 37443, 834, 1330, 28000, 1098, 62, 17201, 874, 198, 6738, 42903, 1330, 46947, 11, 8543, 62, 28243, 11, 2581, 198, 6738, 42903, 62, 66, 669, 1330, 327, 20673, 11, 3272, 62, 47103, 198, 11748, 7007, 198, 11748, 4268, 3524, ...
2.594005
367
''' Main prediction module for dgaintel package ''' import os import numpy as np from tensorflow.keras.models import load_model DIR_PATH = os.path.dirname(os.path.abspath(__file__)) SAVED_MODEL_PATH = os.path.join(DIR_PATH, 'domain_classifier_model.h5') MODEL = load_model(SAVED_MODEL_PATH) CHAR2IDX = {'-': 0, '.': 1,...
[ 7061, 6, 198, 13383, 17724, 8265, 329, 288, 70, 2913, 417, 5301, 198, 7061, 6, 198, 11748, 28686, 198, 11748, 299, 32152, 355, 45941, 198, 6738, 11192, 273, 11125, 13, 6122, 292, 13, 27530, 1330, 3440, 62, 19849, 198, 198, 34720, 62, ...
2.093324
1,393
""" Created: 11 November 2016 Last Updated: 16 February 2018 Dan Marley daniel.edison.marley@cernSPAMNOT.ch Texas A&M University ----- Base class for plotting deep learning Designed for running on desktop at TAMU with specific set of software installed --> not guaranteed to work in CMSSW environment! Doe...
[ 37811, 198, 41972, 25, 220, 220, 220, 220, 220, 220, 220, 1367, 3389, 220, 1584, 198, 5956, 19433, 25, 220, 220, 1467, 3945, 220, 2864, 198, 198, 21174, 1526, 1636, 198, 67, 6321, 13, 276, 1653, 13, 3876, 1636, 31, 30903, 4303, 2390...
2.030001
8,433
""" Solve Lasso problem as parametric QP by updating iteratively lambda """ import numpy as np import pandas as pd import os from solvers.solvers import SOLVER_MAP # AVOID CIRCULAR DEPENDENCY from problem_classes.lasso import LassoExample from utils.general import make_sure_path_exists # import osqppurepy as osqp impo...
[ 37811, 198, 50, 6442, 406, 28372, 1917, 355, 5772, 19482, 1195, 47, 416, 19698, 11629, 9404, 37456, 198, 37811, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 19798, 292, 355, 279, 67, 198, 11748, 28686, 198, 6738, 1540, 690, 13, 34453...
3.163462
104
#!/usr/bin/env python3 """ Installation script for Datalad and related components ``datalad-installer`` is a script for installing Datalad_, git-annex_, and related components all in a single invocation. It requires no third-party Python libraries, though it does make heavy use of external packaging commands. .. _Da...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 37811, 198, 30838, 4226, 329, 360, 10254, 324, 290, 3519, 6805, 198, 198, 15506, 67, 10254, 324, 12, 17350, 263, 15506, 318, 257, 4226, 329, 15975, 360, 10254, 324, 62, 11, 17606, ...
2.229372
12,495
"""Steady-State Visually Evoked Potentials Paradigms""" import logging from moabb.datasets import utils from moabb.datasets.fake import FakeDataset from moabb.paradigms.base import BaseParadigm log = logging.getLogger(__name__) class BaseSSVEP(BaseParadigm): """Base SSVEP Paradigm Parameters --------...
[ 37811, 7447, 4597, 12, 9012, 6911, 935, 4319, 6545, 6902, 14817, 14853, 328, 907, 37811, 198, 198, 11748, 18931, 198, 198, 6738, 6941, 6485, 13, 19608, 292, 1039, 1330, 3384, 4487, 198, 6738, 6941, 6485, 13, 19608, 292, 1039, 13, 30706,...
2.923304
2,034
import os import subprocess import sys import time modulenames = ", ".join(list(set(sys.modules) & set(globals()))) msg = "---> Automagically imported these packages (if available): {}".format(modulenames) formatted_msg = Style.LINE + Style.BOLD + Style.RED + msg + Style.END print(formatted_msg)
[ 11748, 28686, 198, 11748, 850, 14681, 198, 11748, 25064, 198, 11748, 640, 628, 198, 198, 4666, 377, 268, 1047, 796, 33172, 27071, 22179, 7, 4868, 7, 2617, 7, 17597, 13, 18170, 8, 1222, 900, 7, 4743, 672, 874, 3419, 22305, 198, 19662, ...
3.092784
97
from tests.common import InstantCensusTestCase from utils.parser_helpers import split_standard_separators # from parsers.number_parser import text2int from string import whitespace as WHITESPACE_CHARS # text2int_tests = { # "twenty-two" : 22, # "ninety seven" : 97, # "one hundred thirty seven" : 137, # ...
[ 6738, 5254, 13, 11321, 1330, 24470, 34, 7314, 14402, 20448, 198, 6738, 3384, 4487, 13, 48610, 62, 16794, 364, 1330, 6626, 62, 20307, 62, 25512, 2024, 198, 2, 422, 13544, 364, 13, 17618, 62, 48610, 1330, 2420, 17, 600, 198, 6738, 4731,...
2.237288
354
with open("input", "r") as file: input = file.read() nums = list(input) sum = 0 for i in range(0, len(nums)): if nums[i] == nums[i-1]: sum += int(nums[i]) print(sum)
[ 4480, 1280, 7203, 15414, 1600, 366, 81, 4943, 355, 2393, 25, 198, 220, 220, 220, 5128, 796, 2393, 13, 961, 3419, 198, 220, 220, 220, 997, 82, 796, 1351, 7, 15414, 8, 198, 220, 220, 220, 2160, 796, 657, 198, 220, 220, 220, 329, 1...
1.907407
108
import tensorflow as tf tf_version = int((tf.__version__).split('.')[0]) if tf_version >= 2: import tensorflow.compat.v1 as tf tf.disable_v2_behavior() import os import sys import random import numpy as np import cv2 import skimage.io import warnings; warnings.simplefilter('ignore') import time import h5py # ...
[ 11748, 11192, 273, 11125, 355, 48700, 198, 27110, 62, 9641, 796, 493, 19510, 27110, 13, 834, 9641, 834, 737, 35312, 10786, 2637, 38381, 15, 12962, 198, 361, 48700, 62, 9641, 18189, 362, 25, 198, 220, 220, 220, 1330, 11192, 273, 11125, ...
2.232595
6,277
""" Usage example of the ESP32 over UART using the CircuitPython ESP_ATControl library. Dependencies: * https://github.com/adafruit/Adafruit_CircuitPython_ESP_ATcontrol """ from random import randint import board import busio from digitalio import DigitalInOut # Import Adafruit IO REST Client from adafruit_io.ada...
[ 37811, 198, 28350, 1672, 286, 262, 9428, 2624, 625, 471, 7227, 198, 3500, 262, 13588, 37906, 9428, 62, 1404, 15988, 5888, 13, 198, 198, 35, 2690, 3976, 25, 198, 220, 220, 220, 1635, 3740, 1378, 12567, 13, 785, 14, 324, 1878, 4872, 1...
2.779575
989
#!/usr/bin/env python from __future__ import print_function import argparse import glob import os import subprocess import sys CHR = "c" START = "s" END = "e" DESC = "d" if __name__ == "__main__": main()
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 6738, 11593, 37443, 834, 1330, 3601, 62, 8818, 198, 11748, 1822, 29572, 198, 11748, 15095, 198, 11748, 28686, 198, 11748, 850, 14681, 198, 11748, 25064, 628, 198, 198, 37846, 796, 366, 6...
2.626506
83
#NAME: select.py #DATE: 31/03/2019 import json import time import random import tkinter as tk from PIL import Image, ImageTk coverPath = "noimage.png" root = tk.Tk() root.title("Marvel Movie Generator") root.configure(background='black') #size of the window root.geometry("450x880") frame = tk.Frame(root) frame.pac...
[ 2, 20608, 25, 2922, 13, 9078, 198, 2, 35, 6158, 25, 3261, 14, 3070, 14, 23344, 198, 198, 11748, 33918, 198, 11748, 640, 198, 11748, 4738, 198, 11748, 256, 74, 3849, 355, 256, 74, 198, 6738, 350, 4146, 1330, 7412, 11, 7412, 51, 74,...
2.745527
503
""" Unit tests for utils.py functions. """ import unittest import numpy as np from sympy import Integer, log from radioactivedecay.utils import ( get_metastable_chars, Z_to_elem, elem_to_Z, build_id, build_nuclide_string, NuclideStrError, parse_nuclide_str, parse_id, parse_nuclide, ...
[ 37811, 198, 26453, 5254, 329, 3384, 4487, 13, 9078, 5499, 13, 198, 37811, 198, 198, 11748, 555, 715, 395, 198, 11748, 299, 32152, 355, 45941, 198, 6738, 10558, 88, 1330, 34142, 11, 2604, 198, 6738, 5243, 529, 1572, 721, 323, 13, 26791...
2.058941
7,499
from django.db import models from cms.models.pluginmodel import CMSPlugin from django.utils.http import int_to_base36 # Create your models here.
[ 6738, 42625, 14208, 13, 9945, 1330, 4981, 198, 6738, 269, 907, 13, 27530, 13, 33803, 19849, 1330, 40773, 37233, 198, 6738, 42625, 14208, 13, 26791, 13, 4023, 1330, 493, 62, 1462, 62, 8692, 2623, 198, 2, 13610, 534, 4981, 994, 13, 198 ...
3.452381
42
import json import os from config import Config from level import Level
[ 11748, 33918, 198, 11748, 28686, 198, 198, 6738, 4566, 1330, 17056, 198, 6738, 1241, 1330, 5684, 628 ]
4.352941
17
# Copyright 2015 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
[ 2, 15069, 1853, 383, 309, 22854, 37535, 46665, 13, 1439, 6923, 33876, 13, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 2, 345, 743, 407, 779, 428, 2393, 2845, 287, 11846, ...
3.765517
435
import unittest from desc.plotting import Plot
[ 11748, 555, 715, 395, 198, 198, 6738, 1715, 13, 29487, 889, 1330, 28114, 198 ]
3.428571
14
#!/usr/bin/env python3 # Copyright 2020 Alexis Lopez Zubieta # # 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, cop...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 2, 220, 15069, 220, 12131, 31078, 22593, 47828, 1155, 64, 198, 2, 198, 2, 220, 2448, 3411, 318, 29376, 7520, 11, 1479, 286, 3877, 11, 284, 597, 1048, 16727, 257, 198, 2, 220, 4...
4.020979
286
# coding: utf-8 # <div class="alert alert-block alert-info" style="margin-top: 20px"> # <a href="http://cocl.us/NotebooksPython101"><img src = "https://ibm.box.com/shared/static/yfe6h4az47ktg2mm9h05wby2n7e8kei3.png" width = 750, align = "center"></a> # <a href="https://www.bigdatauniversity.com"><img src = "https:...
[ 198, 2, 19617, 25, 3384, 69, 12, 23, 198, 198, 2, 220, 1279, 7146, 1398, 2625, 44598, 7995, 12, 9967, 7995, 12, 10951, 1, 3918, 2625, 36153, 12, 4852, 25, 1160, 8416, 5320, 198, 2, 220, 1279, 64, 13291, 2625, 4023, 1378, 66, 38679...
2.95372
2,917
import os import json import argparse import pandas as pd from tqdm import tqdm from dateutil.parser import parse parser = argparse.ArgumentParser() parser.add_argument('-input') parser.add_argument('-output_dir') parser.add_argument('-override_file',type=str,default="") args = parser.parse_args() input_ = os.path....
[ 11748, 28686, 198, 11748, 33918, 198, 11748, 1822, 29572, 198, 11748, 19798, 292, 355, 279, 67, 198, 6738, 256, 80, 36020, 1330, 256, 80, 36020, 198, 198, 6738, 3128, 22602, 13, 48610, 1330, 21136, 198, 198, 48610, 796, 1822, 29572, 13,...
2.367454
762
""" @author: Viet Nguyen <nhviet1009@gmail.com> """ import cv2 import numpy as np from collections import OrderedDict # https://github.com/tensorflow/datasets/blob/master/tensorflow_datasets/image_classification/quickdraw_labels.txt # Rule: key of category = index -1, with index from the link above CLASS_IDS = Ordere...
[ 37811, 198, 31, 9800, 25, 8730, 42379, 1279, 77, 71, 85, 1155, 3064, 24, 31, 14816, 13, 785, 29, 198, 37811, 198, 11748, 269, 85, 17, 198, 11748, 299, 32152, 355, 45941, 198, 6738, 17268, 1330, 14230, 1068, 35, 713, 198, 198, 2, 3...
2.439252
321
import boto3 import botocore import os import glob import json import requests from datetime import datetime from time import sleep from time import gmtime, strftime import sys, getopt import argparse import subprocess from shutil import copyfile, rmtree import logging import configparser __CONFIG_FILE_PATH__ ...
[ 11748, 275, 2069, 18, 198, 11748, 10214, 420, 382, 198, 198, 11748, 28686, 198, 11748, 15095, 198, 11748, 33918, 198, 11748, 7007, 198, 198, 6738, 4818, 8079, 1330, 4818, 8079, 198, 6738, 640, 1330, 3993, 198, 6738, 640, 1330, 308, 76, ...
3.144068
118
import os import sys import glob import h5py as h5 import numpy as np import math import argparse as ap import mxnet as mx from mpi4py import MPI if __name__ == "__main__": AP = ap.ArgumentParser() AP.add_argument("--input_directory", type=str, help="Directory with input files", required = True...
[ 11748, 28686, 198, 11748, 25064, 198, 11748, 15095, 198, 11748, 289, 20, 9078, 355, 289, 20, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 10688, 198, 11748, 1822, 29572, 355, 2471, 198, 11748, 285, 87, 3262, 355, 285, 87, 198, 6738, ...
2.800971
206
#!/usr/bin/env python # -*- coding: utf-8 -*- from setuptools import setup, find_packages setup( name='pytorch-cnn-visualization', version='0.0', description='pytorch implementation of CNN visualization techniques', packages=find_packages(), include_package_data=True, install_requires=[ ...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 6738, 900, 37623, 10141, 1330, 9058, 11, 1064, 62, 43789, 198, 198, 40406, 7, 198, 220, 220, 220, 1438, 11639, 9...
1.795238
420
# -*- coding: utf-8 -*- # Copyright 2016 Yelp 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 ag...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 15069, 1584, 44628, 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...
3.713178
258
from __future__ import print_function import sys import warnings from types import ModuleType from contextlib import contextmanager from multiprocessing import cpu_count from distutils.version import StrictVersion from .result import Result from .._util import Capture, DummyBar from ..error import Error, Missing, Mul...
[ 6738, 11593, 37443, 834, 1330, 3601, 62, 8818, 198, 198, 11748, 25064, 198, 11748, 14601, 198, 6738, 3858, 1330, 19937, 6030, 198, 6738, 4732, 8019, 1330, 4732, 37153, 198, 6738, 18540, 305, 919, 278, 1330, 42804, 62, 9127, 198, 6738, 1...
2.188787
3,157
#!/usr/bin/env python # -*- coding: utf-8 -*- """ test_equality ---------------------------------- Tests for the `AnyType` __eq__ method """ import unittest from finitio.types import AnyType if __name__ == '__main__': import sys sys.exit(unittest.main())
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 37811, 198, 9288, 62, 48203, 198, 3880, 438, 198, 198, 51, 3558, 329, 262, 4600, 7149, 6030, 63, 11593, 27363, 8...
2.744898
98
# # DQN agent # # agent hyper parameters # N_EPISODES = 2000 # how many episodes to train # MAX_T = 10000 # maximum steps per episode # EPS_START = 1.0 # start values of epsilon (for epsilon greedy exploration) # EPS_END = 0.01 # minimum value of epsilon # EPS_DECAY = 0.995 # decay rate of epsilon new_eps = old_ep...
[ 2, 1303, 360, 48, 45, 5797, 198, 2, 1303, 5797, 8718, 10007, 198, 2, 399, 62, 8905, 1797, 3727, 1546, 796, 4751, 220, 1303, 703, 867, 8640, 284, 4512, 198, 2, 25882, 62, 51, 796, 33028, 220, 1303, 5415, 4831, 583, 4471, 198, 2, ...
3.026385
758
import imutils # import dlib import cv2 import datetime import glob import sys if __name__ == '__main__': main()
[ 11748, 545, 26791, 198, 2, 1330, 288, 8019, 198, 11748, 269, 85, 17, 198, 11748, 4818, 8079, 198, 11748, 15095, 198, 11748, 25064, 198, 197, 198, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 198, 197, 12417, 3419 ]
2.829268
41
from data_load import load_vocab from hyperparams import Hyperparams as hp from networks import TextEnc, AudioEnc, AudioDec, Attention, SSRN import tensorflow as tf
[ 198, 6738, 1366, 62, 2220, 1330, 3440, 62, 18893, 397, 198, 6738, 8718, 37266, 1330, 15079, 37266, 355, 27673, 198, 6738, 7686, 1330, 8255, 27195, 11, 13491, 27195, 11, 13491, 10707, 11, 47406, 11, 6723, 42336, 198, 11748, 11192, 273, 1...
3.320755
53
import dash import dash_bootstrap_components as dbc from utils import load_config config = load_config() protocol = config['protocol'] app = dash.Dash( __name__, external_stylesheets=[dbc.themes.DARKLY], suppress_callback_exceptions=True, title=f"{protocol} Playgrounds", meta_tags=[{ 'nam...
[ 11748, 14470, 198, 11748, 14470, 62, 18769, 26418, 62, 5589, 3906, 355, 288, 15630, 198, 198, 6738, 3384, 4487, 1330, 3440, 62, 11250, 198, 198, 11250, 796, 3440, 62, 11250, 3419, 198, 11235, 4668, 796, 4566, 17816, 11235, 4668, 20520, ...
2.47486
179
# Python - 3.6.0 test.assert_equals(round(circle_area(Circle(Point(10, 10), 30)), 6), 2827.433388) test.assert_equals(round(circle_area(Circle(Point(25, -70), 30)), 6), 2827.433388) test.assert_equals(round(circle_area(Circle(Point(-15, 5), 0)), 6), 0) test.assert_equals(round(circle_area(Circle(Point(-15, 5), 12.5)),...
[ 2, 11361, 532, 513, 13, 21, 13, 15, 198, 198, 9288, 13, 30493, 62, 4853, 874, 7, 744, 7, 45597, 62, 20337, 7, 31560, 293, 7, 12727, 7, 940, 11, 838, 828, 1542, 36911, 718, 828, 2579, 1983, 13, 42117, 30460, 8, 198, 9288, 13, 3...
2.390071
141
# coding:utf-8 # Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License" # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless req...
[ 2, 19617, 25, 40477, 12, 23, 198, 2, 15069, 357, 66, 8, 33448, 220, 350, 37382, 47, 37382, 46665, 13, 1439, 6923, 33876, 13, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 1, 198, 2...
3.034672
548
import datetime from django import forms from django.test import TestCase from django.utils.translation import activate from institution.models import Institution from users.forms import CustomUserChangeForm from users.forms import CustomUserCreationForm from users.forms import ProfileUpdateForm from users.forms impo...
[ 11748, 4818, 8079, 198, 198, 6738, 42625, 14208, 1330, 5107, 198, 6738, 42625, 14208, 13, 9288, 1330, 6208, 20448, 198, 6738, 42625, 14208, 13, 26791, 13, 41519, 1330, 15155, 198, 198, 6738, 9901, 13, 27530, 1330, 29426, 198, 6738, 2985, ...
4.397849
93
#!/usr/bin/env python import sys, os, subprocess, re, platform from subprocess import PIPE, Popen from os.path import exists TOOLS_DIR = "./tools" DAFNY_PATH = "./tools/dafny/dafny" VALE_PATH = "./tools/vale/bin/vale" DAFNY_LIB_DIR = "./std_lib" DAFNY_LIB_HASH = "84d160538b6442017a5401feb91265147bf34bfc" DAFNY_ZIP_...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 198, 11748, 25064, 11, 28686, 11, 850, 14681, 11, 302, 11, 3859, 198, 6738, 850, 14681, 1330, 350, 4061, 36, 11, 8099, 268, 198, 6738, 28686, 13, 6978, 1330, 7160, 198, 198, 10468, 3...
2.103503
628
import unittest from time import sleep from subprocess import run from src.Socket_Singleton import Socket_Singleton, MultipleSingletonsError if __name__ == "__main__": unittest.main()
[ 11748, 555, 715, 395, 198, 6738, 640, 1330, 3993, 198, 6738, 850, 14681, 1330, 1057, 198, 6738, 12351, 13, 39105, 62, 29974, 10565, 1330, 47068, 62, 29974, 10565, 11, 20401, 29974, 1616, 684, 12331, 628, 628, 198, 220, 220, 220, 220, ...
2.930556
72
from tensorboard import summary from tkinter import * import wikipedia root = Tk() root.title("Wikipedia Search") root.geometry("400x400") frame = Frame(root) input = Entry(frame, width = 30) input.pack() result = "" text = Text(root, font = ("arial", 20)) button = Button(frame, text="Search", command=search) button...
[ 6738, 11192, 273, 3526, 1330, 10638, 198, 6738, 256, 74, 3849, 1330, 1635, 198, 11748, 47145, 11151, 198, 198, 15763, 796, 309, 74, 3419, 198, 15763, 13, 7839, 7203, 48845, 11140, 4943, 198, 15763, 13, 469, 15748, 7203, 7029, 87, 7029, ...
3.023256
129
# Generated by Django 3.1.2 on 2020-11-01 19:06 from django.db import migrations, models
[ 2, 2980, 515, 416, 37770, 513, 13, 16, 13, 17, 319, 12131, 12, 1157, 12, 486, 678, 25, 3312, 198, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 11, 4981, 628 ]
2.84375
32
from three.mathutils.MatrixFactory import * from three.mathutils.Matrix import * from three.mathutils.Curve import * from three.mathutils.CurveFactory import * from three.mathutils.Multicurve import * from three.mathutils.Surface import * from three.mathutils.Hilbert3D import * from three.mathutils.RandomUtils import *...
[ 6738, 1115, 13, 11018, 26791, 13, 46912, 22810, 1330, 1635, 198, 6738, 1115, 13, 11018, 26791, 13, 46912, 1330, 1635, 198, 6738, 1115, 13, 11018, 26791, 13, 26628, 303, 1330, 1635, 198, 6738, 1115, 13, 11018, 26791, 13, 26628, 303, 2281...
3.4
105
import numpy as np import scipy.ndimage.interpolation as inter import tensorflow as tf from keras import backend as K from keras import regularizers from keras.layers import * from keras.layers.convolutional import * from keras.layers.core import * from keras.models import Model, load_model from keras.optimizers import...
[ 11748, 299, 32152, 355, 45941, 198, 11748, 629, 541, 88, 13, 358, 9060, 13, 3849, 16104, 341, 355, 987, 198, 11748, 11192, 273, 11125, 355, 48700, 198, 6738, 41927, 292, 1330, 30203, 355, 509, 198, 6738, 41927, 292, 1330, 3218, 11341, ...
2.452903
2,325
# Copyright 2020 EPAM Systems # # 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 writin...
[ 2, 220, 15069, 12131, 14724, 2390, 11998, 198, 2, 198, 2, 220, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 2, 220, 345, 743, 407, 779, 428, 2393, 2845, 287, 11846, 351, 262, 13789, 13, ...
3.62
200
# зодиак + Результаты последнего тиража
[ 2, 12466, 115, 25443, 112, 18849, 16142, 31583, 1343, 12466, 254, 16843, 140, 115, 35072, 30143, 45367, 20375, 16142, 20375, 45035, 12466, 123, 15166, 21727, 30143, 16843, 43666, 22177, 16843, 140, 111, 15166, 220, 20375, 18849, 21169, 16142,...
0.97619
42
#!/usr/bin/env python # # lobster.py - lobster # # (c) gdifiore 2018 <difioregabe@gmail.com> # import os import sys import json from lobster_json import * from bs4 import BeautifulSoup type = sys.argv[1] file = sys.argv[2] theme = sys.argv[3] if type == "simple": lobster_data = readJSON(file) title = getTit...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 198, 2, 43657, 13, 9078, 532, 43657, 198, 2, 198, 2, 357, 66, 8, 308, 67, 22238, 382, 2864, 1279, 67, 22238, 382, 70, 11231, 31, 14816, 13, 785, 29, 198, 2, 198, 198, 11748, ...
2.479751
321
from . import timestamp from . import contjson
[ 6738, 764, 1330, 41033, 198, 6738, 764, 1330, 542, 17752 ]
4.6
10
import pytest import random import time from torch.distributions.multivariate_normal import MultivariateNormal from matplotlib import pyplot as plt from pyrado.environment_wrappers.domain_randomization import DomainRandWrapperLive from pyrado.environments.pysim.ball_on_beam import BallOnBeamSim from pyrado.environment...
[ 11748, 12972, 9288, 198, 11748, 4738, 198, 11748, 640, 198, 6738, 28034, 13, 17080, 2455, 507, 13, 16680, 42524, 62, 11265, 1330, 7854, 42524, 26447, 198, 198, 6738, 2603, 29487, 8019, 1330, 12972, 29487, 355, 458, 83, 198, 6738, 279, 2...
2.202366
1,606
from setuptools import setup from Cython.Build import cythonize from distutils.extension import Extension from sys import platform as _platform import os import numpy as np #openmp_arg = '-fopenmp' #if _platform == "win32": # openmp_arg = '-openmp' extensions = [ Extension( 'nms_grid', ['nms_grid.pyx'], ...
[ 6738, 900, 37623, 10141, 1330, 9058, 198, 6738, 327, 7535, 13, 15580, 1330, 3075, 400, 261, 1096, 198, 6738, 1233, 26791, 13, 2302, 3004, 1330, 27995, 198, 6738, 25064, 1330, 3859, 355, 4808, 24254, 198, 11748, 28686, 198, 11748, 299, 3...
2.407563
238
# -*- mode: python: return False tab-width: 4: return False indent-tabs-mode: nil: return False python-indent-offset: 4: return False coding: utf-8 -*- import sys import scalgoproto import union from test_base import require2, require, read_in, validate_out, get_v, require_some if __name__ == "__main__": main...
[ 2, 532, 9, 12, 4235, 25, 21015, 25, 1441, 10352, 7400, 12, 10394, 25, 604, 25, 1441, 10352, 33793, 12, 8658, 82, 12, 14171, 25, 18038, 25, 1441, 10352, 21015, 12, 521, 298, 12, 28968, 25, 604, 25, 1441, 10352, 19617, 25, 3384, 69,...
2.963303
109
import sys import pandas as pd import pytest from dagster import execute_pipeline from dagster.utils import script_relative_path from dagster_pandas.examples import ( define_pandas_papermill_pandas_hello_world_pipeline, define_papermill_pandas_hello_world_pipeline, ) @pytest.mark.skip('Must ship over run ...
[ 11748, 25064, 198, 198, 11748, 19798, 292, 355, 279, 67, 198, 11748, 12972, 9288, 198, 198, 6738, 48924, 1706, 1330, 12260, 62, 79, 541, 4470, 198, 6738, 48924, 1706, 13, 26791, 1330, 4226, 62, 43762, 62, 6978, 198, 198, 6738, 48924, ...
2.834586
133
import csv
[ 11748, 269, 21370 ]
3.333333
3
# -*- coding: utf-8 -*- """ Created on Thu Aug 12 05:31:02 2021 @author: 14488 """ import torch import torch.nn as nn import torch.nn.parallel import torch.optim as optim from torch.autograd import Variable import torch import rrc_example_package.scripts.convolutional_rnn from torch.nn.utils.rnn impor...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 201, 198, 37811, 201, 198, 41972, 319, 26223, 2447, 1105, 8870, 25, 3132, 25, 2999, 33448, 201, 198, 201, 198, 31, 9800, 25, 1478, 33646, 201, 198, 37811, 201, 198, 201, 19...
1.854975
593
# Import the gTTS module for text # to speech conversion from gtts import gTTS # This module is imported so that we can # play the converted audio from playsound import playsound # It is a text value that we want to convert to audio text_val = 'Welcome to hacktoberfest 21.Hacktoberfest, in its 8t...
[ 2, 17267, 262, 308, 51, 4694, 8265, 329, 2420, 220, 220, 198, 2, 284, 4046, 11315, 220, 220, 198, 6738, 308, 83, 912, 1330, 308, 51, 4694, 220, 220, 198, 220, 220, 198, 2, 770, 8265, 318, 17392, 523, 326, 356, 460, 220, 220, 198...
3.251592
314
import logging from ._version import get_versions # noqa from .xml_obj import Symbol, DataType, SubItem # noqa from .xml_collector import TmcFile # noqa from . import epics # noqa logger = logging.getLogger(__name__) __version__ = get_versions()['version'] del get_versions __all__ = [ 'DataType', 'SubI...
[ 11748, 18931, 198, 198, 6738, 47540, 9641, 1330, 651, 62, 47178, 220, 1303, 645, 20402, 198, 6738, 764, 19875, 62, 26801, 1330, 38357, 11, 6060, 6030, 11, 3834, 7449, 220, 1303, 645, 20402, 198, 6738, 764, 19875, 62, 33327, 273, 1330, ...
2.577181
149
from pydantic import BaseModel
[ 6738, 279, 5173, 5109, 1330, 7308, 17633, 628 ]
4
8
# -*- coding: utf-8 -*- from hist import Hist, NamedHist, axis import pytest import numpy as np unp = pytest.importorskip("uncertainties.unumpy") plt = pytest.importorskip("matplotlib.pyplot") def test_general_plot1d(): """ Test general plot1d -- whether 1d-Hist can be plotted properly. """ h = His...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 6738, 1554, 1330, 5590, 11, 34441, 13749, 11, 16488, 198, 198, 11748, 12972, 9288, 198, 11748, 299, 32152, 355, 45941, 198, 198, 403, 79, 796, 12972, 9288, 13, 11748, 66...
2.08277
7,104
# -*- coding: utf-8 -*- """ Created on Wed Jul 20 20:21:33 2016 generate the camera's pose conditions by hand @author: sebalander """ # %% import cv2 import numpy as np import numpy.linalg as lin from scipy.linalg import sqrtm, inv import matplotlib.pyplot as plt # %% tVecFile = "PTZsheetTvecInitial.npy" rVecFile ...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 198, 41972, 319, 3300, 5979, 1160, 1160, 25, 2481, 25, 2091, 1584, 198, 198, 8612, 378, 262, 4676, 338, 12705, 220, 3403, 416, 1021, 198, 198, 31, 9800, 25, 384...
1.977867
994
import setuptools with open("README.md", "r") as fh: long_description = fh.read() setuptools.setup( name="clericus", version="0.0.3a27", author="Joseph L Buell V", author_email="jlrbuellv@gmail.com", description= "An async webserver focused on being predictable and self documenting.", ...
[ 11748, 900, 37623, 10141, 198, 198, 4480, 1280, 7203, 15675, 11682, 13, 9132, 1600, 366, 81, 4943, 355, 277, 71, 25, 198, 220, 220, 220, 890, 62, 11213, 796, 277, 71, 13, 961, 3419, 198, 198, 2617, 37623, 10141, 13, 40406, 7, 198, ...
2.155361
457
#!/usr/bin/env python # Copyright (c) 2013 Google Inc. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """ Verifies *_wrapper in environment. """ import os import sys import TestGyp print "This test is currently disabled: https://crbug.com/4...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 198, 2, 15069, 357, 66, 8, 2211, 3012, 3457, 13, 1439, 2489, 10395, 13, 198, 2, 5765, 286, 428, 2723, 2438, 318, 21825, 416, 257, 347, 10305, 12, 7635, 5964, 326, 460, 307, 198, 2,...
2.437075
588