content
stringlengths
1
1.05M
input_ids
listlengths
1
883k
ratio_char_token
float64
1
22.9
token_count
int64
1
883k
''' File: lotka-volterra.py Authors: - Sjoerd Wenker, 10617558 - Tristan van Vaalen, 10551832 Contains a Lotka-Volterra Model which is simulated using the RK4 method. ''' from integration import RungeKutta4 import matplotlib.pyplot as plt from matplotlib.widgets import Slider ''' Method that simulates a Lotka-Volte...
[ 7061, 6, 198, 8979, 25, 1256, 4914, 12, 10396, 353, 430, 13, 9078, 198, 30515, 669, 25, 198, 532, 311, 7639, 45744, 31164, 6122, 11, 15696, 1558, 40486, 198, 532, 833, 4103, 5719, 17668, 282, 268, 11, 838, 2816, 1507, 2624, 198, 198...
2.210325
523
#!/usr/bin/env python3 # Common Imports import io import rospy import sys import unittest # Specific Imports import time import wave from harmoni_common_lib.action_client import HarmoniActionClient from harmoni_common_lib.constants import ActionType, DetectorNameSpace, SensorNameSpace, State from audio_common_msgs.m...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 198, 2, 8070, 1846, 3742, 198, 11748, 33245, 198, 11748, 686, 2777, 88, 198, 11748, 25064, 198, 11748, 555, 715, 395, 198, 198, 2, 17377, 1846, 3742, 198, 11748, 640, 198, 11748, ...
2.896947
262
# coding: utf-8 from __future__ import absolute_import, unicode_literals from optparse import make_option import time from django import VERSION from django.core.management.base import NoArgsCommand from smoked import default_registry from smoked.runner import run_tests stats_msg = """ Results ======= Total: {total}...
[ 2, 19617, 25, 3384, 69, 12, 23, 198, 6738, 11593, 37443, 834, 1330, 4112, 62, 11748, 11, 28000, 1098, 62, 17201, 874, 198, 6738, 2172, 29572, 1330, 787, 62, 18076, 198, 198, 11748, 640, 198, 6738, 42625, 14208, 1330, 44156, 2849, 198,...
3.258333
120
''' Testing your data with asserts Here, you'll practice writing assert statements using the Ebola dataset from previous chapters to programmatically check for missing values and to confirm that all values are positive. The dataset has been pre-loaded into a DataFrame called ebola. In the video, you saw Dan use the ....
[ 7061, 6, 198, 44154, 534, 1366, 351, 29348, 198, 198, 4342, 11, 345, 1183, 3357, 3597, 6818, 6299, 1262, 262, 15825, 27039, 422, 2180, 15754, 284, 1430, 49454, 2198, 329, 4814, 3815, 290, 284, 6216, 326, 477, 3815, 389, 3967, 13, 383,...
3.830022
453
COLLIDER_SUITE_OFFSHOOT_RANGE = (0, 100) COLLIDER_SUITE_SPLIT_ABS_RANGE = (0, 10) COLLIDER_SUITE_SPLIT_REL_RANGE = (-1, 1, 2) COLLIDER_SUITE_ASSIMILATE_SIZE_RANGE = (0, 10) TAPE_FRAME_SEARCH_LIMIT_RANGE = (1, 100000) TAPE_PIXEL_SEARCH_LIMIT_RANGE = (1, 1000000) DEFAULT_CALIBRATION_ENCLOSURE_SIZE_RANGE = (0, 1000) COLL...
[ 8220, 3069, 41237, 62, 12564, 12709, 62, 27977, 9693, 46, 2394, 62, 49, 27746, 796, 357, 15, 11, 1802, 8, 198, 8220, 3069, 41237, 62, 12564, 12709, 62, 4303, 43, 2043, 62, 32, 4462, 62, 49, 27746, 796, 357, 15, 11, 838, 8, 198, ...
1.854167
336
from ._http import (HTTPClient, get_id, Route, GET, PUT, DELETE, ) import asyncio
[ 6738, 47540, 4023, 1330, 357, 40717, 11792, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 651, 62, 312, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 22...
1.355705
149
import json
[ 11748, 33918, 628, 628 ]
3.75
4
# Copyright 2019 Spotify AB # # 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, s...
[ 2, 15069, 13130, 26778, 9564, 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, 921, 743, 733...
3.84472
161
# Generated by Django 2.2.4 on 2019-08-10 14:04 from django.db import migrations, models
[ 2, 2980, 515, 416, 37770, 362, 13, 17, 13, 19, 319, 13130, 12, 2919, 12, 940, 1478, 25, 3023, 198, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 11, 4981, 628 ]
2.84375
32
#!/usr/bin/env python3 import tkinter as tk from tkinter import filedialog from tkinter import messagebox from tkinter import ttk import os import sys print_n = sys.stdout.write STAT_TXT = ("ST", "MA", "VI", "AG") # Characters CHAR_OFFSET = "0x24" CHAR_ID = ("0x75", 2) CHAR_LVL = ("0x79", 1) CHAR_EXP = ("0x7C", 2) ...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 198, 11748, 256, 74, 3849, 355, 256, 74, 198, 6738, 256, 74, 3849, 1330, 5717, 498, 519, 198, 6738, 256, 74, 3849, 1330, 3275, 3524, 198, 6738, 256, 74, 3849, 1330, 256, 30488, ...
2.003318
14,767
import json import matplotlib.animation as animation import matplotlib.pyplot as plt import numpy as np import scipy.signal as signal import yaml from mpl_toolkits.mplot3d.axes3d import Axes3D from scipy.interpolate import interp1d from tf_pwa.config_loader import ConfigLoader from tf_pwa.experimental.extra_amp impor...
[ 11748, 33918, 198, 198, 11748, 2603, 29487, 8019, 13, 11227, 341, 355, 11034, 198, 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 629, 541, 88, 13, 12683, 282, 355, 6737, 198, ...
1.786699
2,466
''' A script for accessing visualization data (saving images at validation steps during training) and saving them to a local directory. ''' import pymongo as pm import pickle import os import gridfs import cPickle import numpy as np from PIL import Image dbname = 'future_pred_test' collname = 'asymmetric' port = 27017...
[ 7061, 6, 198, 32, 4226, 329, 22534, 32704, 1366, 357, 29336, 4263, 379, 21201, 4831, 1141, 3047, 8, 290, 8914, 606, 284, 257, 1957, 8619, 13, 198, 7061, 6, 198, 11748, 279, 4948, 25162, 355, 9114, 198, 11748, 2298, 293, 198, 11748, ...
2.475751
1,299
""" BASICS Creates the necessary tables and users. """ import os import psycopg2 con = psycopg2.connect (host = os.environ["POSTGRES_URL"], database = os.environ["POSTGRES_DB"], user = os.environ["POSTGRES_USER"], password = os.environ["POSTGRES_PASSWORD"]) cur = con.cursor() # Creates main user table cur.execut...
[ 37811, 198, 33, 1921, 19505, 198, 198, 16719, 274, 262, 3306, 8893, 290, 2985, 13, 198, 37811, 198, 198, 11748, 28686, 628, 198, 11748, 17331, 22163, 70, 17, 198, 198, 1102, 796, 17331, 22163, 70, 17, 13, 8443, 357, 4774, 796, 28686, ...
2.692845
573
from collections import defaultdict computing_graph = defaultdict(list)#defaultdict(list),valuelist """ for (key, value) in data: result[key].append(value) print(result)#defaultdict(<class 'list'>, {'p': [1, 2, 3], 'h': [1, 2, 3]}) """ n = 'p' m = [1,2,23] computing_graph[n].append(m) print(computing_gr...
[ 6738, 17268, 1330, 4277, 11600, 201, 198, 201, 198, 785, 48074, 62, 34960, 796, 4277, 11600, 7, 4868, 8, 2, 12286, 11600, 7, 4868, 828, 2100, 2731, 396, 201, 198, 37811, 201, 198, 1640, 357, 2539, 11, 1988, 8, 287, 1366, 25, 201, ...
2.362319
138
#!/usr/bin/env python3 from botlib.curl import Curl from botlib.html2list import HTML2List, MatchGroup URL = 'https://www.vice.com/en/topic/motherboard' SOURCE = Curl.get(URL, cache_only=True) SELECT = '.vice-card__content' match = MatchGroup({ 'url': r'<a href="([^"]*)"', 'title': r'<h3[^>]*><a [^>]*>([\s\S]...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 6738, 10214, 8019, 13, 66, 6371, 1330, 4424, 75, 198, 6738, 10214, 8019, 13, 6494, 17, 4868, 1330, 11532, 17, 8053, 11, 13225, 13247, 198, 198, 21886, 796, 705, 5450, 1378, 2503, ...
2.087413
286
from collections import OrderedDict import itertools import sys from tensorflow.keras.layers import Input from tensorflow.keras.models import Model from tensorflow.keras.optimizers import Adam from flowket.callbacks import TensorBoard from flowket.callbacks.exact import default_wave_function_callbacks_factory, ExactO...
[ 6738, 17268, 1330, 14230, 1068, 35, 713, 198, 11748, 340, 861, 10141, 198, 11748, 25064, 198, 198, 6738, 11192, 273, 11125, 13, 6122, 292, 13, 75, 6962, 1330, 23412, 198, 6738, 11192, 273, 11125, 13, 6122, 292, 13, 27530, 1330, 9104, ...
2.52194
1,299
#!/usr/bin/python # Copyright (c) 2014 The Native Client Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """A archive_info is a json file describing a single package archive.""" import collections import hashlib import json import os ...
[ 2, 48443, 14629, 14, 8800, 14, 29412, 198, 2, 15069, 357, 66, 8, 1946, 383, 12547, 20985, 46665, 13, 1439, 2489, 10395, 13, 198, 2, 5765, 286, 428, 2723, 2438, 318, 21825, 416, 257, 347, 10305, 12, 7635, 5964, 326, 460, 307, 198, ...
3.166667
282
"""Ad hoc tests of the LsstLatexDoc class. Other test modules rigorously verify LsstLatexDoc against sample documents. """ from pybtex.database import BibliographyData import pytest from lsstprojectmeta.tex.lsstdoc import LsstLatexDoc def test_no_short_title(): """title without a short title.""" sample = r"...
[ 37811, 2782, 39158, 5254, 286, 262, 406, 82, 301, 26302, 87, 23579, 1398, 13, 3819, 1332, 13103, 7805, 24882, 11767, 198, 43, 82, 301, 26302, 87, 23579, 1028, 6291, 4963, 13, 198, 37811, 198, 198, 6738, 12972, 65, 16886, 13, 48806, 13...
2.448812
1,094
frase = str(input('Digite o seu nome completo para a anlise ser feita:')).strip() print('-' * 50) print('Analisando nome...') print('O seu nome em maisculas {}.'.format(frase.upper())) print('O seu nome em minsculas {}.'.format(frase.lower())) print('O seu nome tem ao todo {} letras.'.format(len(frase) - frase.count(...
[ 8310, 589, 796, 965, 7, 15414, 10786, 19511, 578, 267, 384, 84, 299, 462, 1224, 1462, 31215, 257, 281, 75, 786, 1055, 730, 5350, 25, 11537, 737, 36311, 3419, 198, 4798, 10786, 19355, 1635, 2026, 8, 198, 4798, 10786, 2025, 27315, 25440...
2.58046
174
from functools import partial import logging import msgpack import msgpack_numpy as mpn from confluent_kafka.cimpl import KafkaException import numpy as np import pickle import pytest from bluesky_kafka import Publisher, BlueskyConsumer from bluesky_kafka.tests.conftest import get_all_documents_from_queue from blues...
[ 6738, 1257, 310, 10141, 1330, 13027, 198, 11748, 18931, 198, 198, 11748, 31456, 8002, 198, 11748, 31456, 8002, 62, 77, 32152, 355, 285, 21999, 198, 198, 6738, 1013, 28216, 62, 74, 1878, 4914, 13, 66, 23928, 1330, 46906, 16922, 198, 1174...
3.084507
213
import time import heapq pq = PriorityQueue() pq.add(f2, priority=1) pq.add(f1, priority=0) pq.pop()() pq.pop()()
[ 11748, 640, 198, 11748, 24575, 80, 628, 198, 79, 80, 796, 34416, 34991, 3419, 198, 79, 80, 13, 2860, 7, 69, 17, 11, 8475, 28, 16, 8, 198, 79, 80, 13, 2860, 7, 69, 16, 11, 8475, 28, 15, 8, 198, 79, 80, 13, 12924, 3419, 3419, ...
2.109091
55
import requests import sys from lxml import html #csv_file_name = sys.argv[1] # output file csv_file_name = "../webshot_data/popular-web-sites.csv" csv_file = open(csv_file_name, "w") categories = ["Arts", "Business", "Computers", "Games", "Health", "Home", "Kids_and_Teens", "News", "Recreation", "Reference", "Regio...
[ 11748, 7007, 198, 11748, 25064, 198, 6738, 300, 19875, 1330, 27711, 198, 198, 2, 40664, 62, 7753, 62, 3672, 796, 25064, 13, 853, 85, 58, 16, 60, 1303, 5072, 2393, 198, 40664, 62, 7753, 62, 3672, 796, 366, 40720, 732, 1443, 8940, 62,...
2.4
450
""" Common solar physics coordinate systems. This submodule implements various solar physics coordinate frames for use with the `astropy.coordinates` module. """ from __future__ import absolute_import, division import numpy as np from astropy import units as u from astropy.coordinates.representation import (Cartesia...
[ 37811, 198, 17227, 6591, 11887, 20435, 3341, 13, 198, 198, 1212, 850, 21412, 23986, 2972, 6591, 11887, 20435, 13431, 329, 779, 351, 198, 1169, 4600, 459, 28338, 13, 37652, 17540, 63, 8265, 13, 198, 37811, 198, 6738, 11593, 37443, 834, 1...
2.569476
439
import pytest import os import sys import numpy as np import ray from ray import serve from ray.serve.api import _get_deployments_from_node from ray.serve.handle import PipelineHandle from ray.serve.pipeline.pipeline_input_node import PipelineInputNode def test_single_node_deploy_success(serve_instance): m1...
[ 11748, 12972, 9288, 198, 11748, 28686, 198, 11748, 25064, 198, 198, 11748, 299, 32152, 355, 45941, 198, 198, 11748, 26842, 198, 6738, 26842, 1330, 4691, 198, 6738, 26842, 13, 2655, 303, 13, 15042, 1330, 4808, 1136, 62, 2934, 1420, 902, ...
2.47772
965
#helpers
[ 198, 198, 2, 16794, 364, 198 ]
1.833333
6
from kafka import KafkaProducer from kafka.errors import KafkaError import json # produce json messages producer = KafkaProducer(bootstrap_servers='kafka:9092', security_protocol='PLAINTEXT', value_serializer=lambda m: json.dumps(m).encode('ascii')) result = producer.send('ktig', {'measure_i...
[ 6738, 479, 1878, 4914, 1330, 46906, 11547, 2189, 198, 6738, 479, 1878, 4914, 13, 48277, 1330, 46906, 12331, 198, 11748, 33918, 198, 198, 2, 4439, 33918, 6218, 198, 18230, 2189, 796, 46906, 11547, 2189, 7, 18769, 26418, 62, 2655, 690, 11...
2.076389
288
try: import uasyncio.core as asyncio except: import asyncio loop = asyncio.get_event_loop() loop.call_soon(cb, "test", "test2") loop.run_forever() print("OK")
[ 28311, 25, 198, 220, 220, 220, 1330, 334, 292, 13361, 952, 13, 7295, 355, 30351, 952, 198, 16341, 25, 198, 220, 220, 220, 1330, 30351, 952, 628, 198, 198, 26268, 796, 30351, 952, 13, 1136, 62, 15596, 62, 26268, 3419, 198, 26268, 13,...
2.428571
70
""" Provides a mock for the plx_gpib_ethernet package used in the Ando devices. """ from unittest.mock import Mock # The commands that are used in the methods of the # ANDO devices and typical responses. QUERY_COMMANDS = { # Spectrum Analyzer commands "*IDN?": "ANDO dummy\r\n", "SWEEP?": "0\r\...
[ 37811, 198, 15946, 1460, 257, 15290, 329, 262, 458, 87, 62, 31197, 571, 62, 316, 2881, 316, 5301, 973, 287, 262, 198, 1870, 78, 4410, 13, 198, 37811, 198, 6738, 555, 715, 395, 13, 76, 735, 1330, 44123, 198, 198, 2, 383, 9729, 326,...
1.894366
284
import sys from inspect import getmembers, isclass from typing import Union from hearthstone.simulator.core.cards import MonsterCard from hearthstone.simulator.core.events import CardEvent, EVENTS, BuyPhaseContext, CombatPhaseContext from hearthstone.simulator.core.monster_types import MONSTER_TYPES REMOVED_CARD...
[ 11748, 25064, 198, 6738, 10104, 1330, 651, 30814, 11, 318, 4871, 198, 6738, 19720, 1330, 4479, 198, 198, 6738, 3285, 400, 6440, 13, 14323, 8927, 13, 7295, 13, 27761, 1330, 12635, 16962, 198, 6738, 3285, 400, 6440, 13, 14323, 8927, 13, ...
2.183673
294
# -*- coding: utf-8 -*- """Scan views.""" from flask import Blueprint, render_template, flash, redirect, url_for, session from flask_login import current_user from .forms import ScanForm from .service import ScanService from cookiecutter_mbam.utils import flash_errors blueprint = Blueprint('scan', __name__, url_prefix...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 33351, 5009, 526, 15931, 198, 6738, 42903, 1330, 39932, 11, 8543, 62, 28243, 11, 7644, 11, 18941, 11, 19016, 62, 1640, 11, 6246, 198, 6738, 42903, 62, 38235, 1330...
3.473214
112
import pytest import dbstore inMemFile = ":memory:" measurementTable = "measurements" alertTable = "alerts" timestampTestData = "2021-04-29T23:25:44Z"
[ 11748, 12972, 9288, 198, 11748, 20613, 8095, 198, 198, 259, 13579, 8979, 796, 366, 25, 31673, 11097, 198, 198, 1326, 5015, 434, 10962, 796, 366, 1326, 5015, 902, 1, 198, 44598, 10962, 796, 366, 44598, 82, 1, 628, 628, 198, 220, 220, ...
2.375
72
import importlib _NOTIFICATION_BACKENDS = None
[ 11748, 1330, 8019, 198, 198, 62, 11929, 30643, 6234, 62, 31098, 1677, 5258, 796, 6045, 628 ]
3.0625
16
import numpy as np import cv2 labels = ['dog', 'cat', 'panda'] np.random.seed(1) # Simulate model already trained W = np.random.randn(3, 3072) b = np.random.randn(3) orig = cv2.imread('beagle.png') image = cv2.resize(orig, (32, 32)).flatten() scores = W.dot(image) + b for (label, score) in zip(labels, scores): ...
[ 198, 11748, 299, 32152, 355, 45941, 198, 11748, 269, 85, 17, 198, 198, 23912, 1424, 796, 37250, 9703, 3256, 705, 9246, 3256, 705, 79, 5282, 20520, 198, 37659, 13, 25120, 13, 28826, 7, 16, 8, 198, 198, 2, 3184, 5039, 2746, 1541, 8776...
1.929712
313
import pandas as pd import numpy as np import matplotlib.pyplot as plt from .signal_processing import ( resample_data, normalize_signal, calculate_magnitude, calculate_offset_in_seconds_using_cross_correlation, calculate_sampling_frequency_from_timestamps, ) def get_synchronization_offset( vi...
[ 11748, 19798, 292, 355, 279, 67, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 198, 198, 6738, 764, 12683, 282, 62, 36948, 1330, 357, 198, 220, 220, 220, 581, 1403, 62, 7890, 11, 1...
2.350085
1,174
s = 'vpoboooboboobooboboo' y = 0 counter = 0 times_run = 0 start = 0 end = 3 for letter in s: sc = s[start:end] start += 1 end += 1 if sc == str('bob'): counter += 1 print('Number of times bob occurs is: ', counter)
[ 82, 796, 705, 36133, 672, 2238, 672, 20391, 20391, 672, 672, 2238, 6, 198, 88, 796, 657, 198, 24588, 796, 657, 198, 22355, 62, 5143, 796, 657, 198, 9688, 796, 657, 198, 437, 796, 513, 628, 198, 197, 198, 1640, 3850, 287, 264, 25, ...
2.178571
112
#! /usr/bin/env python2 # -*- coding: utf-8 -*- import random import unittest import sfml as sf if __name__ == '__main__': unittest.main()
[ 2, 0, 1220, 14629, 14, 8800, 14, 24330, 21015, 17, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 11748, 4738, 198, 11748, 555, 715, 395, 198, 198, 11748, 264, 38122, 355, 264, 69, 628, 628, 628, 198, 1...
2.268657
67
# -*- coding: utf-8 -*- """ @author:XuMing(xuming624@qq.com) @description: Word level augmentations including Replace words with uniform random words or TF-IDF based word replacement. """ import collections import copy import math import numpy as np from textgen.utils.log import logger min_token_num = 3 def g...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 198, 31, 9800, 25, 55, 84, 44, 278, 7, 87, 12595, 21, 1731, 31, 38227, 13, 785, 8, 198, 31, 11213, 25, 9678, 1241, 35016, 602, 1390, 40177, 2456, 351, 8187, ...
2.211538
520
from . import three_D_resnet from .kernel import get_kernel_to_name def build_three_d_resnet(input_shape, output_shape, repetitions, output_activation, regularizer=None, squeeze_and_excitation=False, use_bottleneck=False, kernel_size=3, kernel_name='3D'): """Return a full customizable res...
[ 6738, 764, 1330, 1115, 62, 35, 62, 411, 3262, 198, 6738, 764, 33885, 1330, 651, 62, 33885, 62, 1462, 62, 3672, 628, 198, 4299, 1382, 62, 15542, 62, 67, 62, 411, 3262, 7, 15414, 62, 43358, 11, 5072, 62, 43358, 11, 46152, 1756, 11, ...
2.529594
2,585
from matplotlib import use use('WXAgg') import pylab as plt import numpy as np plt.figure(figsize=(8,5)) ax = plt.subplot(111) fil = './spectrum_GOME.out' data = np.loadtxt(fil) y = data[:,1] x = data[:,0] pl_list = [] pl, = ax.plot(x,y,'r') pl_list.append(pl) y = 10*data[:,3] pl, = ax.plot(x,y,'...
[ 6738, 2603, 29487, 8019, 1330, 779, 198, 1904, 10786, 54, 55, 46384, 11537, 198, 11748, 279, 2645, 397, 355, 458, 83, 198, 11748, 299, 32152, 355, 45941, 198, 198, 489, 83, 13, 26875, 7, 5647, 7857, 16193, 23, 11, 20, 4008, 198, 198...
2.186131
548
# -*- coding: utf-8 -*- # Generated by Django 1.11.5 on 2017-10-30 23:53 from __future__ import unicode_literals from django.db import migrations from tasks.models import BeneficiariesMatching
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 2980, 515, 416, 37770, 352, 13, 1157, 13, 20, 319, 2177, 12, 940, 12, 1270, 2242, 25, 4310, 198, 6738, 11593, 37443, 834, 1330, 28000, 1098, 62, 17201, 874, 198, ...
2.925373
67
""" An AWS Python3+Flask web app. """ from flask import Flask, redirect, url_for, request, session, flash, get_flashed_messages, render_template, escape from flask_oauthlib.client import OAuth import boto3,botocore import jinja2 from boto3.dynamodb.conditions import Key, Attr import urllib.request import json import c...
[ 37811, 198, 2025, 30865, 11361, 18, 10, 7414, 2093, 3992, 598, 13, 198, 37811, 198, 198, 6738, 42903, 1330, 46947, 11, 18941, 11, 19016, 62, 1640, 11, 2581, 11, 6246, 11, 7644, 11, 651, 62, 2704, 5263, 62, 37348, 1095, 11, 8543, 62,...
3.316652
1,099
import json from newsapi import covid_news
[ 11748, 33918, 198, 6738, 1705, 15042, 1330, 39849, 312, 62, 10827, 220 ]
3.583333
12
#!/usr/bin/env python3 # imports go here import atexit # # Free Coding session for 2015-02-10 # Written by Matt Warren # if __name__ == '__main__': atexit.register(clean_up) try: import time while True: time.sleep(1) except KeyboardInterrupt: pass
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 2, 17944, 467, 994, 198, 11748, 379, 37023, 198, 198, 2, 198, 2, 3232, 327, 7656, 6246, 329, 1853, 12, 2999, 12, 940, 198, 2, 22503, 416, 4705, 11328, 198, 2, 628, 198, 198, ...
2.290076
131
#!/usr/bin/env python # -*- coding: utf-8 -*- """ apscheduler. """ import subprocess from apscheduler.scheduler import Scheduler from apscheduler.jobstores.shelve_store import ShelveJobStore from datetime import date, datetime, timedelta import os import shelve import zmq from core.config.settings import logger ...
[ 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, 257, 862, 1740, 18173, 13, 220, 37227, 198, 198, 11748, 850, 14681, 198, 6738, 257, 862, 1740, 18173, 13, ...
3.008333
120
import warnings from .base import TorchFramework from .dqn import DQN from .dqn_per import DQNPer from .rainbow import RAINBOW from .ddpg import DDPG from .hddpg import HDDPG from .td3 import TD3 from .ddpg_per import DDPGPer from .a2c import A2C from .a3c import A3C from .ppo import PPO from .sac import SAC from ....
[ 11748, 14601, 198, 6738, 764, 8692, 1330, 34868, 21055, 6433, 198, 198, 6738, 764, 49506, 77, 1330, 360, 48, 45, 198, 6738, 764, 49506, 77, 62, 525, 1330, 360, 48, 45, 5990, 198, 6738, 764, 3201, 8176, 1330, 17926, 1268, 33, 3913, 1...
2.125592
422
# Generated by Django 3.2.7 on 2021-09-24 02:31 from django.db import migrations, models import django.db.models.deletion
[ 2, 2980, 515, 416, 37770, 513, 13, 17, 13, 22, 319, 33448, 12, 2931, 12, 1731, 7816, 25, 3132, 198, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 11, 4981, 198, 11748, 42625, 14208, 13, 9945, 13, 27530, 13, 2934, 1616, 295, ...
2.818182
44
# -*- coding: utf-8 -*- """The hashers CLI arguments helper.""" from plaso.cli import tools from plaso.cli.helpers import interface from plaso.cli.helpers import manager from plaso.lib import errors manager.ArgumentHelperManager.RegisterHelper(HashersArgumentsHelper)
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 464, 468, 7084, 43749, 7159, 31904, 526, 15931, 198, 198, 6738, 458, 292, 78, 13, 44506, 1330, 4899, 198, 6738, 458, 292, 78, 13, 44506, 13, 16794, 364, 1330, 7...
3.162791
86
# Generated by Django 3.1.5 on 2021-01-11 08:07 from django.db import migrations, models import django.db.models.deletion import django_mysql.models import utils.models
[ 2, 2980, 515, 416, 37770, 513, 13, 16, 13, 20, 319, 33448, 12, 486, 12, 1157, 8487, 25, 2998, 198, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 11, 4981, 198, 11748, 42625, 14208, 13, 9945, 13, 27530, 13, 2934, 1616, 295, ...
2.898305
59
#!/usr/bin/env python """ Convert the output of Noise Cancelling Repeat Finder to bed format. """ from sys import argv,stdin,stdout,stderr,exit from os import path as os_path from ncrf_parse import alignments,parse_noise_rate if __name__ == "__main__": main()
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 37811, 198, 3103, 1851, 262, 5072, 286, 30964, 43780, 2680, 30021, 42500, 284, 3996, 5794, 13, 198, 37811, 198, 198, 6738, 25064, 220, 220, 220, 220, 220, 220, 220, 1330, 1822, 85, 11,...
2.718447
103
# Copyright (c) 2018-present, Royal Bank of Canada. # All rights reserved. # # This source code is licensed under the license found in the # LICENSE file in the root directory of this source tree. # import warnings import numpy as np import torch import torchvision.transforms.functional as F from advertorch.utils im...
[ 2, 15069, 357, 66, 8, 2864, 12, 25579, 11, 8111, 5018, 286, 3340, 13, 198, 2, 1439, 2489, 10395, 13, 198, 2, 198, 2, 770, 2723, 2438, 318, 11971, 739, 262, 5964, 1043, 287, 262, 198, 2, 38559, 24290, 2393, 287, 262, 6808, 8619, ...
3.366667
210
from __future__ import division import itertools import matplotlib.pyplot as plt from matplotlib.pyplot import savefig import random from random import shuffle from collections import Counter def term_frequency(somelist): """Returns the term frequency of each unique token in the term list""" somelist =...
[ 6738, 11593, 37443, 834, 1330, 7297, 198, 11748, 340, 861, 10141, 198, 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 198, 6738, 2603, 29487, 8019, 13, 9078, 29487, 1330, 3613, 5647, 198, 11748, 4738, 198, 6738, 4738, 1330, 36...
2.534328
670
from PyQt5.QtCore import pyqtSlot from channels.channel import Channel from operators.base import OutputOperator import numpy as np
[ 6738, 9485, 48, 83, 20, 13, 48, 83, 14055, 1330, 12972, 39568, 38963, 198, 6738, 9619, 13, 17620, 1330, 11102, 198, 6738, 12879, 13, 8692, 1330, 25235, 18843, 1352, 198, 11748, 299, 32152, 355, 45941, 628 ]
3.694444
36
if "__main__" == __name__: solution = Solution() n = 1025 res = solution.isPowerOfTwo(n) print(res)
[ 628, 628, 198, 198, 361, 366, 834, 12417, 834, 1, 6624, 11593, 3672, 834, 25, 628, 220, 220, 220, 4610, 796, 28186, 3419, 198, 220, 220, 220, 220, 198, 220, 220, 220, 299, 796, 838, 1495, 198, 220, 220, 220, 581, 796, 4610, 13, ...
2.152542
59
from celery.task import task from django.conf import settings from social_core.backends.utils import get_backend
[ 6738, 18725, 1924, 13, 35943, 1330, 4876, 198, 6738, 42625, 14208, 13, 10414, 1330, 6460, 198, 6738, 1919, 62, 7295, 13, 1891, 2412, 13, 26791, 1330, 651, 62, 1891, 437, 628 ]
3.677419
31
#pathList = [ #"/global/project/projectdirs/als/spade/warehouse/als/bl832/phosemann/20160512_092220_tensile7_T700_240mic/raw/20160512_092220_tensile7_T700_240mic.h5", #"/global/project/projectdirs/als/spade/warehouse/als/bl832/phosemann/20160512_085327_tensile7_T700_200mic/raw/20160512_085327_tensile7_T700_200mic.h...
[ 201, 198, 2, 6978, 8053, 796, 685, 201, 198, 2, 1, 14, 20541, 14, 16302, 14, 16302, 15908, 82, 14, 874, 14, 2777, 671, 14, 1574, 4803, 14, 874, 14, 2436, 23, 2624, 14, 746, 577, 9038, 14, 1264, 1899, 25836, 62, 2931, 1828, 1238,...
1.855673
4,178
import asyncio import json import discord from discord.ext import commands, tasks from discal.bot import Bot from datetime import datetime, timedelta from discal.logger import get_module_logger logger = get_module_logger(__name__)
[ 11748, 30351, 952, 198, 11748, 33918, 198, 11748, 36446, 198, 6738, 36446, 13, 2302, 1330, 9729, 11, 8861, 198, 6738, 1221, 282, 13, 13645, 1330, 18579, 198, 6738, 4818, 8079, 1330, 4818, 8079, 11, 28805, 12514, 198, 6738, 1221, 282, 13...
3.455882
68
#!/usr/bin/env python2 # -*- coding: utf-8 -*- # Copyright (c) 2015 David I. Urbina, david.urbina@utdallas.edu # # 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...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 17, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 15069, 357, 66, 8, 1853, 3271, 314, 13, 8799, 65, 1437, 11, 21970, 13, 5945, 1437, 31, 315, 67, 7826, 13, ...
3.488665
397
n = int(input()) words = [''] * n for i in range(n): words[i] = input() # merge_sort(words) insertion_sort(words, n) for w in words: print(w)
[ 628, 198, 77, 796, 493, 7, 15414, 28955, 198, 10879, 796, 685, 7061, 60, 1635, 299, 198, 198, 1640, 1312, 287, 2837, 7, 77, 2599, 198, 220, 220, 220, 2456, 58, 72, 60, 796, 5128, 3419, 198, 198, 2, 20121, 62, 30619, 7, 10879, 8,...
2.211268
71
from django.db import models
[ 6738, 42625, 14208, 13, 9945, 1330, 4981, 628 ]
3.75
8
# -*- coding: utf-8 -*- # URI Judge - Problema 1017 tempo = int(input()) velocidade = int(input()) litros = (velocidade / 12.0) * tempo print("%.3f" % litros)
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 43975, 8974, 532, 1041, 903, 2611, 8949, 22, 198, 198, 11498, 7501, 796, 493, 7, 15414, 28955, 198, 626, 420, 312, 671, 796, 493, 7, 15414, 28955, 198, 198, 18250, ...
2.25
72
''' Date: 2021-08-10 17:17:35 LastEditors: Liuliang LastEditTime: 2021-08-10 18:27:56 Description: ''' import random import sys sys.path.append("..") from bacic_module.random_int_list import random_int_list c = random_int_list(0,10,10) print(c) p = qks(c,0,len(c)-1) print(c)
[ 7061, 6, 198, 10430, 25, 33448, 12, 2919, 12, 940, 1596, 25, 1558, 25, 2327, 198, 5956, 18378, 669, 25, 7455, 377, 15483, 198, 5956, 18378, 7575, 25, 33448, 12, 2919, 12, 940, 1248, 25, 1983, 25, 3980, 198, 11828, 25, 220, 198, 70...
2.217054
129
import os import json create_json_CYC_envs("/home/geoff/Dropbox")
[ 11748, 28686, 201, 198, 11748, 33918, 201, 198, 201, 198, 201, 198, 201, 198, 17953, 62, 17752, 62, 34, 44816, 62, 268, 14259, 7203, 14, 11195, 14, 469, 2364, 14, 26932, 3524, 4943, 201, 198 ]
2.142857
35
import unittest import drawzero ################################################################################ if __name__ == "__main__": unittest.main()
[ 11748, 555, 715, 395, 198, 11748, 3197, 22570, 628, 198, 198, 29113, 29113, 14468, 198, 198, 361, 11593, 3672, 834, 6624, 366, 834, 12417, 834, 1298, 198, 220, 220, 220, 555, 715, 395, 13, 12417, 3419, 198 ]
4.432432
37
import numpy as np from fedot.api.api_utils.api_data import ApiDataProcessor from fedot.api.api_utils.api_data_analyser import DataAnalyser from fedot.api.main import Fedot from fedot.core.data.data import InputData from fedot.core.repository.dataset_types import DataTypesEnum from fedot.core.repository.tasks import T...
[ 11748, 299, 32152, 355, 45941, 198, 198, 6738, 11672, 313, 13, 15042, 13, 15042, 62, 26791, 13, 15042, 62, 7890, 1330, 5949, 72, 6601, 18709, 273, 198, 6738, 11672, 313, 13, 15042, 13, 15042, 62, 26791, 13, 15042, 62, 7890, 62, 272, ...
2.52468
1,641
from multiprocessing import cpu_count, Manager, Process from time import sleep
[ 6738, 18540, 305, 919, 278, 1330, 42804, 62, 9127, 11, 9142, 11, 10854, 198, 6738, 640, 1330, 3993, 628 ]
4.210526
19
# # SFA XML-RPC and SOAP interfaces # import sys import os import traceback import string import xmlrpclib import sfa.util.xmlrpcprotocol as xmlrpcprotocol from sfa.util.sfalogging import logger from sfa.trust.auth import Auth from sfa.util.config import * from sfa.util.faults import * from sfa.util.cache import Cache...
[ 2, 198, 2, 311, 7708, 23735, 12, 49, 5662, 290, 12809, 2969, 20314, 198, 2, 198, 198, 11748, 25064, 198, 11748, 28686, 198, 11748, 12854, 1891, 198, 11748, 4731, 198, 11748, 35555, 81, 79, 565, 571, 198, 11748, 264, 13331, 13, 22602, ...
2.459
1,000
__author__ = 'rknight' import os import csv import logging import datetime from requests_futures.sessions import FuturesSession def dlrequest(reports, dlkeys): ''' Primary function to get data for a range of dates Returns a dict. Structure should be: {'outname': {'data': [all the da...
[ 834, 9800, 834, 796, 705, 81, 74, 3847, 6, 198, 11748, 28686, 198, 11748, 269, 21370, 198, 11748, 18931, 198, 11748, 4818, 8079, 198, 6738, 7007, 62, 69, 315, 942, 13, 82, 6202, 1330, 24002, 942, 36044, 628, 628, 198, 4299, 288, 75,...
2.212609
1,491
# coding: utf-8 from __future__ import absolute_import from datetime import date, datetime # noqa: F401 from typing import List, Dict # noqa: F401 from anchore_engine.services.policy_engine.api.models.base_model_ import Model from anchore_engine.services.policy_engine.api import util
[ 2, 19617, 25, 3384, 69, 12, 23, 198, 198, 6738, 11593, 37443, 834, 1330, 4112, 62, 11748, 198, 6738, 4818, 8079, 1330, 3128, 11, 4818, 8079, 220, 1303, 645, 20402, 25, 376, 21844, 198, 198, 6738, 19720, 1330, 7343, 11, 360, 713, 220...
3.233333
90
"""Module for machine learning models.""" from dataclasses import dataclass from typing import Any, Optional, Union import numpy as np import pandas as pd from bayes_opt import BayesianOptimization from catboost import CatBoostClassifier from sklearn.discriminant_analysis import ( LinearDiscriminantAnalysis, ...
[ 37811, 26796, 329, 4572, 4673, 4981, 526, 15931, 198, 198, 6738, 4818, 330, 28958, 1330, 4818, 330, 31172, 198, 6738, 19720, 1330, 4377, 11, 32233, 11, 4479, 198, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 19798, 292, 355, 279, 67,...
2.672498
1,029
#!/usr/bin/env python3 # The MIT License (MIT) # # Copyright (c) 2015 Lucas Koegel # # 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 rig...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 198, 2, 383, 17168, 13789, 357, 36393, 8, 198, 2, 198, 2, 15069, 357, 66, 8, 1853, 15257, 17634, 1533, 417, 198, 2, 198, 2, 2448, 3411, 318, 29376, 7520, 11, 1479, 286, 3877, ...
2.302939
3,301
import matplotlib.pyplot as plt import numpy as np from matplotlib.patches import Ellipse NUM = 250 ells = [Ellipse(xy=np.random.rand(2) * 10, width=np.random.rand(), height=np.random.rand(), angle=np.random.rand() * 360) for i in range(NUM)] fig, ax = plt.subplots(subplot_kw={'aspect': 'equal'}) for e in ells: ...
[ 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 198, 11748, 299, 32152, 355, 45941, 198, 6738, 2603, 29487, 8019, 13, 8071, 2052, 1330, 7122, 541, 325, 198, 198, 41359, 796, 8646, 198, 198, 19187, 796, 685, 30639, 541, 325, 7...
2.211982
217
from enum import Enum
[ 6738, 33829, 1330, 2039, 388, 628 ]
3.833333
6
#import OpenStack connection class from the SDK from openstack import connection # Create a connection object by calling the constructor and pass the security information conn = connection.Connection(auth_url="http://192.168.0.106/identity", project_name="demo", username="admin", password="manoj", user_domain_id="defa...
[ 2, 11748, 4946, 25896, 4637, 1398, 422, 262, 26144, 198, 6738, 1280, 25558, 1330, 4637, 198, 198, 2, 13610, 257, 4637, 2134, 416, 4585, 262, 23772, 290, 1208, 262, 2324, 1321, 198, 37043, 796, 4637, 13, 32048, 7, 18439, 62, 6371, 2625...
3.732673
101
from sympy import * import pandas as pd print(bisection(10, 50, 0.01, '3*x**2 - 120*x + 100'))
[ 6738, 10558, 88, 1330, 1635, 198, 11748, 19798, 292, 355, 279, 67, 198, 198, 4798, 7, 41907, 3213, 7, 940, 11, 2026, 11, 657, 13, 486, 11, 705, 18, 9, 87, 1174, 17, 532, 7982, 9, 87, 1343, 1802, 6, 4008 ]
2.317073
41
"""Main module for operating on crypted/encoded strings in Geometry Dash""" from gd.utils.crypto.coders import Coder from gd.utils.crypto.xor_cipher import XORCipher as xor
[ 37811, 13383, 8265, 329, 5361, 319, 8194, 276, 14, 12685, 9043, 13042, 287, 2269, 15748, 16189, 37811, 201, 198, 6738, 308, 67, 13, 26791, 13, 29609, 78, 13, 19815, 364, 1330, 327, 12342, 201, 198, 6738, 308, 67, 13, 26791, 13, 29609,...
2.983051
59
from pid import PID import pdb #for anonymous objects Object = lambda **kwargs: type("Object", (), kwargs)
[ 6738, 46514, 1330, 37022, 198, 11748, 279, 9945, 198, 198, 2, 1640, 11614, 5563, 198, 10267, 796, 37456, 12429, 46265, 22046, 25, 2099, 7203, 10267, 1600, 29994, 479, 86, 22046, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 198, 220...
2.288136
59
import tkinter as tk from tkinter import filedialog from tkinter import messagebox from tkinter import scrolledtext from tkinter import ttk import tkcalendar as tkc from shiftscheduler.data_types import data_types from shiftscheduler.excel import output as excel_output from shiftscheduler.gui import constants from ...
[ 198, 11748, 256, 74, 3849, 355, 256, 74, 198, 6738, 256, 74, 3849, 1330, 5717, 498, 519, 198, 6738, 256, 74, 3849, 1330, 3275, 3524, 198, 6738, 256, 74, 3849, 1330, 629, 8375, 5239, 198, 6738, 256, 74, 3849, 1330, 256, 30488, 198, ...
3.043716
183
# Generated by Django 2.1.5 on 2019-01-26 19:42 import datetime from django.db import migrations, models
[ 2, 2980, 515, 416, 37770, 362, 13, 16, 13, 20, 319, 13130, 12, 486, 12, 2075, 678, 25, 3682, 198, 198, 11748, 4818, 8079, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 11, 4981, 628 ]
2.972222
36
from setuptools import setup, find_packages setup( name='selfstoredict', version='0.6', packages=find_packages(), url='https://github.com/markus61/selfstoredict', license='MIT', author='markus', author_email='ms@dom.de', description='a python class delivering a dict that stores itself in...
[ 6738, 900, 37623, 10141, 1330, 9058, 11, 1064, 62, 43789, 198, 40406, 7, 198, 220, 220, 220, 1438, 11639, 944, 301, 1850, 713, 3256, 198, 220, 220, 220, 2196, 11639, 15, 13, 21, 3256, 198, 220, 220, 220, 10392, 28, 19796, 62, 43789,...
2.846774
124
sum = add(2,5,6,5) print(sum) calculate(add=3, mul=5) my_car = Car(make="Nissan") print(my_car.model)
[ 201, 198, 201, 198, 16345, 796, 751, 7, 17, 11, 20, 11, 21, 11, 20, 8, 201, 198, 4798, 7, 16345, 8, 201, 198, 201, 198, 9948, 3129, 378, 7, 2860, 28, 18, 11, 35971, 28, 20, 8, 201, 198, 201, 198, 1820, 62, 7718, 796, 1879, ...
1.793651
63
# -*- coding: utf-8 -*- import os import sys import logging import json from urllib import urlencode import urlparse #for CSRF state tokens import time import base64 # Get available json parser try: # should be the fastest on App Engine py27. import json except ImportError: try: import simplejson as json ...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 11748, 28686, 198, 11748, 25064, 198, 11748, 18931, 198, 11748, 33918, 198, 198, 6738, 2956, 297, 571, 1330, 2956, 11925, 8189, 198, 11748, 19016, 29572, 198, 198, 2, 1640...
2.815126
357
#!/usr/bin/env python3 from __future__ import print_function import os import pythondata_cpu_ibex print("Found ibex @ version", pythondata_cpu_ibex.version_str, "(with data", pythondata_cpu_ibex.data_version_str, ")") print() print("Data is in", pythondata_cpu_ibex.data_location) assert os.path.exists(pythondata_cp...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 198, 6738, 11593, 37443, 834, 1330, 3601, 62, 8818, 198, 198, 11748, 28686, 198, 198, 11748, 279, 5272, 623, 1045, 62, 36166, 62, 571, 1069, 198, 198, 4798, 7203, 21077, 24283, 106...
2.43949
314
"""LAPKT-BFWS https://github.com/nirlipo/BFWS-public """ import re import os import sys import subprocess import tempfile from pddlgym_planners.pddl_planner import PDDLPlanner from pddlgym_planners.planner import PlanningFailure import numpy as np from utils import FilesInCommonTempDirectory DOCKER_IMAGE = 'khodeir/b...
[ 37811, 43, 2969, 42176, 12, 29499, 19416, 198, 5450, 1378, 12567, 13, 785, 14, 77, 1901, 541, 78, 14, 29499, 19416, 12, 11377, 198, 37811, 198, 198, 11748, 302, 198, 11748, 28686, 198, 11748, 25064, 198, 11748, 850, 14681, 198, 11748, ...
2.837607
117
import csv import re import sys import requests import json import Data # data container, replace with your own orgName = Data.orgName # replace with your own apiKey = Data.apiKey # provide your own API token api_token = "SSWS " + apiKey headers = {'Accept': 'application/json', 'Content-Type': 'application...
[ 11748, 269, 21370, 198, 11748, 302, 198, 11748, 25064, 198, 11748, 7007, 198, 11748, 33918, 198, 198, 11748, 6060, 1303, 1366, 9290, 11, 6330, 351, 534, 898, 198, 198, 2398, 5376, 796, 6060, 13, 2398, 5376, 1303, 6330, 351, 534, 898, ...
2.895833
144
import random import PySimpleGUI as sg simulador = SimuladorDeDado() simulador.Iniciar()
[ 11748, 4738, 198, 11748, 9485, 26437, 40156, 355, 264, 70, 628, 198, 14323, 377, 7079, 796, 3184, 377, 7079, 5005, 35, 4533, 3419, 198, 14323, 377, 7079, 13, 818, 291, 12571, 3419, 198 ]
2.757576
33
import math from typing import List, Iterable, Union Numeric = Union[int, float] def vdot(p: List[Numeric], q: List[Numeric]) -> float: """Vector dot product.""" if len(p) == 0: raise ValueError("p must not be None or empty") if len(q) == 0: raise ValueError("q must not be No...
[ 11748, 10688, 201, 198, 6738, 19720, 1330, 7343, 11, 40806, 540, 11, 4479, 201, 198, 201, 198, 45, 39223, 796, 4479, 58, 600, 11, 12178, 60, 201, 198, 201, 198, 201, 198, 201, 198, 4299, 410, 26518, 7, 79, 25, 7343, 58, 45, 39223,...
2.249564
573
# Written 9/10/14 by dh4gan # Code reads in output eigenvalue file from tache # Computes statistics import numpy as np import matplotlib.pyplot as plt import io_tache as io # Read in inputs from command line filename = ff.find_local_input_files('eigenvalues*') threshold = input("What is the threshold for classificat...
[ 2, 22503, 860, 14, 940, 14, 1415, 416, 34590, 19, 1030, 198, 2, 6127, 9743, 287, 5072, 304, 9324, 8367, 2393, 422, 256, 4891, 198, 2, 3082, 1769, 7869, 198, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 2603, 29487, 8019, 13, 9078...
2.591579
475
from django.views.generic.edit import CreateView, FormMixin from django.views.generic.list import ListView from django.views.generic.detail import DetailView from django import forms from django.urls import reverse from reportlab.pdfgen import canvas from django.http import HttpResponse from forwarder.models import A...
[ 6738, 42625, 14208, 13, 33571, 13, 41357, 13, 19312, 1330, 13610, 7680, 11, 5178, 35608, 259, 198, 6738, 42625, 14208, 13, 33571, 13, 41357, 13, 4868, 1330, 7343, 7680, 198, 6738, 42625, 14208, 13, 33571, 13, 41357, 13, 49170, 1330, 425...
3.062385
545
import h5py # torch imports import torch from torch.utils.data import Dataset # generic imports import os import sys import numpy as np import random import pandas as pd import cv2 from decord import VideoReader from decord import cpu, gpu from matplotlib import pyplot as plt import gc # create data loader
[ 11748, 289, 20, 9078, 198, 198, 2, 28034, 17944, 198, 11748, 28034, 198, 6738, 28034, 13, 26791, 13, 7890, 1330, 16092, 292, 316, 198, 198, 2, 14276, 17944, 198, 11748, 28686, 198, 11748, 25064, 198, 11748, 299, 32152, 355, 45941, 198, ...
3.294737
95
""" @file: sklearn_method.py @time: 2020-12-09 17:38:38 """ import pandas as pd import seaborn as sns from tqdm import tqdm from sklearn.feature_extraction.text import TfidfVectorizer from sklearn.linear_model import LogisticRegression from sklearn.ensemble import RandomForestClassifier from sklearn.naive_bayes import...
[ 37811, 198, 31, 7753, 25, 1341, 35720, 62, 24396, 13, 9078, 198, 31, 2435, 25, 12131, 12, 1065, 12, 2931, 1596, 25, 2548, 25, 2548, 198, 37811, 198, 198, 11748, 19798, 292, 355, 279, 67, 198, 11748, 384, 397, 1211, 355, 3013, 82, ...
2.584288
611
import tempfile from django.conf import settings from django.contrib.auth.models import User from django.core.files.uploadedfile import SimpleUploadedFile from django.test import TestCase from filer.models import Image from handypackages.tag.models import Tag from .models import Gallery
[ 11748, 20218, 7753, 198, 198, 6738, 42625, 14208, 13, 10414, 1330, 6460, 198, 6738, 42625, 14208, 13, 3642, 822, 13, 18439, 13, 27530, 1330, 11787, 198, 6738, 42625, 14208, 13, 7295, 13, 16624, 13, 25850, 276, 7753, 1330, 17427, 41592, ...
3.65
80
import os import typing import jk_typing from .ProcessFilter import ProcessFilter #
[ 628, 628, 628, 198, 11748, 28686, 198, 11748, 19720, 198, 198, 11748, 474, 74, 62, 774, 13886, 198, 198, 6738, 764, 18709, 22417, 1330, 10854, 22417, 628, 628, 628, 198, 2, 628, 628, 628 ]
3.058824
34
/home/runner/.cache/pip/pool/ab/0b/2c/7ae80e56fd2208fbee5ef317ac009972f468b5601f62f8f799f9d9279a
[ 14, 11195, 14, 16737, 11757, 23870, 14, 79, 541, 14, 7742, 14, 397, 14, 15, 65, 14, 17, 66, 14, 22, 3609, 1795, 68, 3980, 16344, 17572, 23, 69, 20963, 20, 891, 34125, 330, 405, 2079, 4761, 69, 38472, 65, 3980, 486, 69, 5237, 69,...
1.777778
54
""" Loader and Parser for the xml format. Version: 0.01-alpha """ from xml.dom import minidom from konbata.Data.Data import DataNode, DataTree from konbata.Formats.Format import Format def xml_toTree(file, delimiter, options=None): """ Function transforms a xml file into a DataTree. Parameters ...
[ 37811, 198, 220, 220, 220, 8778, 263, 290, 23042, 263, 329, 262, 35555, 5794, 13, 628, 220, 220, 220, 10628, 25, 657, 13, 486, 12, 26591, 198, 198, 37811, 198, 198, 6738, 35555, 13, 3438, 1330, 949, 312, 296, 198, 6738, 479, 261, ...
2.492857
840
#!/usr/env python import pandas as pd import os import sys import numpy as np if len(sys.argv) != 3: sys.exit('[usage] python %s <repeat_index table> <indel cutoff>') ref_table = sys.argv[1] indel_cut_off = int(sys.argv[2]) for gdf in pd.read_csv(ref_table, sep='\t', chunksize = 10000): for contig, contig...
[ 2, 48443, 14629, 14, 24330, 21015, 198, 198, 11748, 19798, 292, 355, 279, 67, 198, 11748, 28686, 198, 11748, 25064, 198, 11748, 299, 32152, 355, 45941, 628, 198, 361, 18896, 7, 17597, 13, 853, 85, 8, 14512, 513, 25, 198, 220, 220, 2...
1.829268
902
# -*- coding: utf-8 -*- """ .. Authors: Novimir Pablant <npablant@pppl.gov> Define the :class:`InteractNone` class. """ import numpy as np from copy import deepcopy from xicsrt.tools.xicsrt_doc import dochelper from xicsrt.optics._InteractObject import InteractObject
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 198, 492, 46665, 25, 198, 220, 220, 220, 5267, 13057, 350, 23117, 415, 1279, 37659, 23117, 415, 31, 381, 489, 13, 9567, 29, 198, 198, 7469, 500, 262, 1058, 4871...
2.686275
102
print('='*30) nome = str(input('Nome do Jogador: ')) gols = str(input('Nmero de Gols: ')) ficha(nome, gols)
[ 198, 198, 4798, 10786, 11639, 9, 1270, 8, 198, 77, 462, 796, 965, 7, 15414, 10786, 45, 462, 466, 449, 519, 7079, 25, 705, 4008, 198, 70, 10220, 796, 965, 7, 15414, 10786, 45, 647, 78, 390, 402, 10220, 25, 705, 4008, 198, 69, 488...
2.037037
54
#!/usr/bin/env python """ ZMQ Subscriber for 1602 display Queue: INF and CMD """ import wiringpi2 as wiringpi import datetime import time import json import Adafruit_DHT import traceback import zmq import sys import pprint infoSocket = "tcp://localhost:5550" cmdSocket = "tcp://localhost:5560" wiringpi.wiringPiSetu...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 37811, 198, 198, 57, 49215, 3834, 1416, 24735, 329, 1467, 2999, 3359, 198, 34991, 25, 45594, 290, 327, 12740, 198, 198, 37811, 198, 11748, 29477, 14415, 17, 355, 29477, 14415, 198, 11748...
2.541738
587
from typing import List, Dict from fastapi import APIRouter, UploadFile, File, Depends, HTTPException from pydantic import create_model from starlette.responses import StreamingResponse from app.business_layers.domain import Work from app.business_layers.repository import WorkRepository from app.business_layers.use_c...
[ 6738, 19720, 1330, 7343, 11, 360, 713, 198, 198, 6738, 3049, 15042, 1330, 3486, 4663, 39605, 11, 36803, 8979, 11, 9220, 11, 2129, 2412, 11, 14626, 16922, 198, 6738, 279, 5173, 5109, 1330, 2251, 62, 19849, 198, 6738, 3491, 21348, 13, 1...
3.152
250
from essentials_kit_management.interactors.storages.storage_interface \ import StorageInterface from essentials_kit_management.interactors.presenters.presenter_interface \ import PresenterInterface
[ 6738, 41954, 62, 15813, 62, 27604, 13, 3849, 529, 669, 13, 301, 273, 1095, 13, 35350, 62, 39994, 3467, 198, 220, 220, 220, 1330, 20514, 39317, 198, 6738, 41954, 62, 15813, 62, 27604, 13, 3849, 529, 669, 13, 25579, 364, 13, 25579, 26...
3.763636
55