content
stringlengths
1
1.04M
input_ids
listlengths
1
774k
ratio_char_token
float64
0.38
22.9
token_count
int64
1
774k
import h5py import numpy as np import os import torch as pt from torch_geometric.data import Data, Dataset, download_url, extract_tar from tqdm import tqdm
[ 11748, 289, 20, 9078, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 28686, 198, 11748, 28034, 355, 42975, 198, 6738, 28034, 62, 469, 16996, 13, 7890, 1330, 6060, 11, 16092, 292, 316, 11, 4321, 62, 6371, 11, 7925, 62, 18870, 198, 673...
3.12
50
import sys from check_output import * workdir = sys.argv[1] src = "keepgoing_same_step.sv" assert_a = line_ref(workdir, src, "assert(a)") assert_not_a = line_ref(workdir, src, "assert(!a)") assert_0 = line_ref(workdir, src, "assert(0)") assert_false = line_ref(workdir, "extra.smtc", "assert false") assert_distinct =...
[ 11748, 25064, 198, 6738, 2198, 62, 22915, 1330, 1635, 198, 198, 1818, 15908, 796, 25064, 13, 853, 85, 58, 16, 60, 198, 10677, 796, 366, 14894, 5146, 62, 31642, 62, 9662, 13, 21370, 1, 198, 198, 30493, 62, 64, 796, 1627, 62, 5420, ...
2.492891
422
import os from Bio import AlignIO from Bio.AlignIO import MultipleSeqAlignment import logging from sklearn.cluster import KMeans import numpy as np import gzip from make_prg import utils remove_duplicates = utils.remove_duplicates contains_only = utils.contains_only def get_interval_seqs(interval_alignment): """R...
[ 11748, 28686, 198, 6738, 16024, 1330, 978, 570, 9399, 198, 6738, 16024, 13, 2348, 570, 9399, 1330, 20401, 4653, 80, 2348, 16747, 198, 11748, 18931, 198, 6738, 1341, 35720, 13, 565, 5819, 1330, 509, 5308, 504, 198, 11748, 299, 32152, 355...
2.045674
8,911
import tensorflow as tf import tensorflow.contrib.slim as slim import numpy as np import numpy.random as npr from ConfigParser import * import os import cPickle import scipy.io import sys import glob from numpy.linalg import norm from scipy import misc import utils if __name__=='__main__': print '...'
[ 11748, 11192, 273, 11125, 355, 48700, 198, 11748, 11192, 273, 11125, 13, 3642, 822, 13, 82, 2475, 355, 18862, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 299, 32152, 13, 25120, 355, 299, 1050, 198, 6738, 17056, 46677, 1330, 1635, 19...
2.95283
106
#!/usr/bin/python3 from bdl_requests.bdl_request import * from logger import logger
[ 2, 48443, 14629, 14, 8800, 14, 29412, 18, 198, 198, 6738, 275, 25404, 62, 8897, 3558, 13, 17457, 75, 62, 25927, 1330, 1635, 198, 6738, 49706, 1330, 49706, 628, 198 ]
2.9
30
from sqlalchemy import Column, Integer, String, Numeric, func, distinct, Boolean from app import db
[ 6738, 44161, 282, 26599, 1330, 29201, 11, 34142, 11, 10903, 11, 399, 39223, 11, 25439, 11, 7310, 11, 41146, 198, 6738, 598, 1330, 20613, 628 ]
4.04
25
from scp_fetcher_bs4.scp_info import SCPInfo, SCPParsingError import requests _TEMPLATE = """ Information about SCP-{0}: \tObject Class: {1} """ def fetch_scp_173(): """ Fetch the information about SCP-173 from http://scp-wiki.wikidot.com """ req = requests.get('http://scp-wiki.wikidot.com/scp-173')...
[ 6738, 629, 79, 62, 34045, 2044, 62, 1443, 19, 13, 1416, 79, 62, 10951, 1330, 17527, 12360, 11, 6374, 10246, 945, 278, 12331, 198, 11748, 7007, 628, 198, 62, 51, 3620, 6489, 6158, 796, 37227, 198, 21918, 546, 17527, 12, 90, 15, 38362...
2.307692
247
# -------------------------------------------------------- # # Copyright (c) 2017 Microsoft # Licensed under The Apache-2.0 License [see LICENSE for details] # Written by Shuhao Fu # -------------------------------------------------------- """ Proposal Target Operator selects foreground and background roi and ...
[ 2, 20368, 22369, 201, 198, 2, 201, 198, 2, 15069, 357, 66, 8, 2177, 5413, 201, 198, 2, 49962, 739, 383, 24843, 12, 17, 13, 15, 13789, 685, 3826, 38559, 24290, 329, 3307, 60, 201, 198, 2, 22503, 416, 32344, 23778, 13333, 201, 198, ...
3.62585
147
__author__ = 'johnnylee' import geometery as geo import random import matplotlib matplotlib.use('Qt4Agg') import matplotlib.pyplot as plt import numpy as np import math import transformations as xforms import sys points = np.zeros((4, 2)) fig = plt.figure() ax = fig.add_subplot(111, aspect='equal', xlim=(0, 1), ylim...
[ 834, 9800, 834, 796, 705, 30686, 77, 2349, 68, 6, 198, 198, 11748, 4903, 908, 1924, 355, 40087, 198, 11748, 4738, 198, 11748, 2603, 29487, 8019, 198, 6759, 29487, 8019, 13, 1904, 10786, 48, 83, 19, 46384, 11537, 198, 11748, 2603, 2948...
2.194245
417
# -*- coding:utf-8 -*- # # Copyright (C) 2019-2021, Saarland University # Copyright (C) 2019-2021, Maximilian Köhl <koehl@cs.uni-saarland.de> from __future__ import annotations import dataclasses as d import typing as t import collections import enum from . import actions, errors, functions, expressions, types fro...
[ 2, 532, 9, 12, 19617, 25, 40477, 12, 23, 532, 9, 12, 198, 2, 198, 2, 15069, 357, 34, 8, 13130, 12, 1238, 2481, 11, 10318, 283, 1044, 2059, 198, 2, 15069, 357, 34, 8, 13130, 12, 1238, 2481, 11, 5436, 26641, 666, 509, 9101, 1851...
2.452423
7,367
# Generated by Django 2.0.1 on 2018-01-25 10:55 from django.db import migrations
[ 2, 2980, 515, 416, 37770, 362, 13, 15, 13, 16, 319, 2864, 12, 486, 12, 1495, 838, 25, 2816, 198, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 628 ]
2.766667
30
import praw import time from praw.exceptions import APIException import re # The main functions of the bot print("About to run bot") if __name__ == "__main__": cache = [] main()
[ 11748, 279, 1831, 198, 11748, 640, 198, 6738, 279, 1831, 13, 1069, 11755, 1330, 7824, 16922, 198, 11748, 302, 628, 198, 2, 383, 1388, 5499, 286, 262, 10214, 628, 198, 198, 4798, 7203, 8585, 284, 1057, 10214, 4943, 198, 361, 11593, 367...
3.047619
63
import pytest import requests from src.articles import config from tests.e2e.fake_authentication import authenticate @pytest.mark.usefixtures('restart_api') @pytest.mark.usefixtures('restart_api')
[ 11748, 12972, 9288, 198, 11748, 7007, 198, 198, 6738, 12351, 13, 26845, 1330, 4566, 198, 6738, 5254, 13, 68, 17, 68, 13, 30706, 62, 41299, 3299, 1330, 8323, 5344, 628, 198, 31, 9078, 9288, 13, 4102, 13, 1904, 69, 25506, 10786, 2118, ...
3.15625
64
# Generated by Django 3.1.4 on 2021-02-23 12:23 from django.db import migrations, models
[ 2, 2980, 515, 416, 37770, 513, 13, 16, 13, 19, 319, 33448, 12, 2999, 12, 1954, 1105, 25, 1954, 198, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 11, 4981, 628 ]
2.84375
32
# logicPlan.py # ------------ # Licensing Information: You are free to use or extend these projects for # educational purposes provided that (1) you do not distribute or publish # solutions, (2) you retain this notice, and (3) you provide clear # attribution to UC Berkeley, including a link to http://ai.berkeley.edu. ...
[ 2, 9156, 20854, 13, 9078, 198, 2, 220, 10541, 198, 2, 10483, 26426, 6188, 25, 220, 921, 389, 1479, 284, 779, 393, 9117, 777, 4493, 329, 198, 2, 9856, 4959, 2810, 326, 357, 16, 8, 345, 466, 407, 14983, 393, 7715, 198, 2, 8136, 11...
2.430147
4,352
# -*- coding: utf-8 -*- """ Created on Tue Jun 7 12:32:36 2016 @author: user """ import sys sys.path.insert(0, '/Users/user/Desktop/repo_for_pyseries/pyseries/') import pyseries.LoadingData as loading import pyseries.Preprocessing as prep import pyseries.Analysis as analysis
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 198, 41972, 319, 30030, 7653, 220, 767, 1105, 25, 2624, 25, 2623, 1584, 198, 198, 31, 9800, 25, 2836, 198, 37811, 198, 11748, 25064, 198, 17597, 13, 6978, 13, 2...
2.8
100
""" Definition to run a test profile """ from datetime import datetime, timedelta from airflow import DAG from InformaticaPlugin import ExecuteProfile schedule_interval = None default_args = { 'owner': 'Jac. Beekers', 'depends_on_past': False, 'email': ['noone@nowhere.no'], 'email_on_failure': False...
[ 37811, 198, 30396, 284, 1057, 257, 1332, 7034, 198, 37811, 198, 198, 6738, 4818, 8079, 1330, 4818, 8079, 11, 28805, 12514, 198, 6738, 45771, 1330, 360, 4760, 198, 6738, 45255, 1512, 64, 37233, 1330, 8393, 1133, 37046, 198, 198, 15952, 5...
2.553506
271
#!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import absolute_import from __future__ import division from __future__ import print_function import os import socket import time import argparse if __name__ == '__main__': main()
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 6738, 11593, 37443, 834, 1330, 4112, 62, 11748, 198, 6738, 11593, 37443, 834, 1330, 7297, 198, 6738, 11593, 37443, 834, ...
3.1125
80
from argparse import ArgumentParser from collections import OrderedDict import pytest import olutils as lib import olutils.params as lib2
[ 6738, 1822, 29572, 1330, 45751, 46677, 198, 6738, 17268, 1330, 14230, 1068, 35, 713, 198, 11748, 12972, 9288, 198, 198, 11748, 25776, 26791, 355, 9195, 198, 11748, 25776, 26791, 13, 37266, 355, 9195, 17, 628, 628, 628 ]
3.891892
37
# Generated by Django 3.2 on 2021-04-30 00:58 from django.db import migrations, models import django.db.models.deletion
[ 2, 2980, 515, 416, 37770, 513, 13, 17, 319, 33448, 12, 3023, 12, 1270, 3571, 25, 3365, 198, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 11, 4981, 198, 11748, 42625, 14208, 13, 9945, 13, 27530, 13, 2934, 1616, 295, 628 ]
2.904762
42
import timeit import random for i in range (10000, 100000, 20000): t = timeit.Timer("random.randrange(%d) in x"%i, "from __main__ import random, x") x = list(range(i)) list_time = t.timeit(number = 1000) x = {j:None for j in range(i)} dict_time = t.timeit(number = 1000) print "Counter: " + str(i) + " L...
[ 11748, 640, 270, 198, 11748, 4738, 198, 198, 1640, 1312, 287, 2837, 357, 49388, 11, 1802, 830, 11, 939, 405, 2599, 198, 220, 256, 796, 640, 270, 13, 48801, 7203, 25120, 13, 25192, 9521, 7, 4, 67, 8, 287, 2124, 1, 4, 72, 11, 366,...
2.510067
149
# # Copyright (c) 2017 Intel Corporation # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to...
[ 2, 198, 2, 15069, 357, 66, 8, 2177, 8180, 10501, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 2, 345, 743, 407, 779, 428, 2393, 2845, 287, 11846, 351, 262, 13789, 13, ...
3.625714
350
from model.contact import Contact testdata = [ Contact(firstname="", lastname="", address="", homephone="", mobilephone="", workphone="", secondaryphone="", email1="", email2="", email3=""), Contact(firstname="Ivan", lastname="Ivanov", address="SomeWhere St., 4", homephone="+111111111", ...
[ 6738, 2746, 13, 32057, 1330, 14039, 628, 198, 9288, 7890, 796, 685, 198, 220, 220, 220, 14039, 7, 11085, 3672, 2625, 1600, 938, 3672, 2625, 1600, 2209, 2625, 1600, 1363, 4862, 2625, 1600, 5175, 4862, 2625, 1600, 670, 4862, 2625, 1600, ...
2.636364
187
#!/usr/bin/env python # -*- coding: utf-8 -*- # tools.roi_formatter.py """Formatting tools for roi data (dicompyler, Shapely, DVHA)""" # Copyright (c) 2016-2019 Dan Cutright # This file is part of DVH Analytics, released under a BSD license. # See the file LICENSE included with this distribution, also # availabl...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 2, 4899, 13, 305, 72, 62, 687, 1436, 13, 9078, 198, 37811, 26227, 889, 4899, 329, 686, 72, 1366, 357, 67, 291,...
2.287574
4,225
"""Update the pday column Some care has to be made here such that trace values do not accumulate when there are actual measurable precip. Eventually, the DSM or other summary messages come and overwrite the trouble. Run from RUN_10MIN.sh """ from __future__ import print_function import datetime from pyiem.util impor...
[ 37811, 10260, 262, 279, 820, 5721, 198, 198, 4366, 1337, 468, 284, 307, 925, 994, 884, 326, 12854, 3815, 466, 407, 29915, 618, 198, 8117, 389, 4036, 40757, 18812, 13, 220, 16178, 11, 262, 37297, 393, 584, 10638, 198, 37348, 1095, 1282...
2.20023
869
""" Module to send metrics to storage systems. """ # Raspi-sump, a sump pump monitoring system. # Al Audet # http://www.linuxnorth.org/raspi-sump/ # # All configuration changes should be done in raspisump.conf # MIT License -- http://www.linuxnorth.org/raspi-sump/license.html import configparser from raspisump import...
[ 37811, 19937, 284, 3758, 20731, 284, 6143, 3341, 13, 37227, 198, 198, 2, 371, 5126, 72, 12, 82, 931, 11, 257, 264, 931, 8901, 9904, 1080, 13, 198, 2, 978, 7591, 316, 198, 2, 2638, 1378, 2503, 13, 23289, 43588, 13, 2398, 14, 81, ...
2.528588
857
# @ copyright SPARKZZZ """ idk """ from telethon.tl.functions.channels import LeaveChannelRequest from userbot.utils import admin_cmd import time @sparkzzz.on(admin_cmd(pattern="idk", outgoing=True))
[ 2, 2488, 6634, 6226, 14175, 30148, 57, 198, 198, 37811, 198, 198, 312, 74, 198, 198, 37811, 628, 198, 198, 6738, 5735, 400, 261, 13, 28781, 13, 12543, 2733, 13, 354, 8961, 1330, 17446, 29239, 18453, 198, 6738, 2836, 13645, 13, 26791, ...
2.646341
82
######################################################################################################################## # Module: inference/resampling.py # Description: Resampling schemes for converting weighted particles (series of positions/edges/distances) to # unweighted. Notably multinomial resamplin...
[ 29113, 29113, 29113, 14468, 7804, 198, 2, 19937, 25, 32278, 14, 411, 321, 11347, 13, 9078, 198, 2, 12489, 25, 1874, 321, 11347, 16546, 329, 23202, 26356, 13166, 357, 25076, 286, 6116, 14, 276, 3212, 14, 17080, 1817, 8, 284, 198, 2, ...
2.023757
11,281
""" robots.py Robots used to manoeuvre around in the Game-environment. """ from numpy import pi, sqrt from configs.bot_config import BotConfig from environment.entities.sensors import AngularSensor, DeltaDistanceSensor, DistanceSensor, ProximitySensor from utils.vec2d import angle_to_vec, Vec2d class MarXBot: "...
[ 37811, 198, 22609, 1747, 13, 9078, 198, 198, 14350, 1747, 973, 284, 42618, 260, 1088, 287, 262, 3776, 12, 38986, 13, 198, 37811, 198, 6738, 299, 32152, 1330, 31028, 11, 19862, 17034, 198, 198, 6738, 4566, 82, 13, 13645, 62, 11250, 133...
2.440599
3,872
from django.core.cache import cache from django.core.validators import RegexValidator from django.db import models from django.db.models.signals import post_delete from django.db.models.signals import post_save from django.dispatch import receiver from ozpcenter import constants from .external_model import ExternalMod...
[ 6738, 42625, 14208, 13, 7295, 13, 23870, 1330, 12940, 198, 6738, 42625, 14208, 13, 7295, 13, 12102, 2024, 1330, 797, 25636, 47139, 1352, 198, 6738, 42625, 14208, 13, 9945, 1330, 4981, 198, 6738, 42625, 14208, 13, 9945, 13, 27530, 13, 12...
2.526423
492
from collections import Counter from concurrent.futures import ProcessPoolExecutor import concurrent from typing import List, Any, Generator, Tuple, KeysView, ValuesView, Dict import scipy as sp from scipy import sparse import numpy as np from tokenizers.spacy_tokenizer import SpacyTokenizer from logger import logger...
[ 6738, 17268, 1330, 15034, 198, 6738, 24580, 13, 69, 315, 942, 1330, 10854, 27201, 23002, 38409, 198, 11748, 24580, 198, 6738, 19720, 1330, 7343, 11, 4377, 11, 35986, 11, 309, 29291, 11, 26363, 7680, 11, 27068, 7680, 11, 360, 713, 198, ...
2.257803
1,730
# data must be stored in JSON format # data: { "name": "date to timestampe", "author": "nicky", "icon": "numbers.png", "tags": "UNIX date timestamp", "description": "converts a date to a UNIX timestamp", "icon_link": "https://cdn-icons-png.flaticon.com/512/3402/3402135.png" } # data: # any import s...
[ 2, 1366, 1276, 307, 8574, 287, 19449, 5794, 198, 198, 2, 1366, 25, 220, 198, 90, 198, 220, 366, 3672, 1298, 366, 4475, 284, 4628, 395, 321, 431, 1600, 198, 220, 366, 9800, 1298, 366, 17172, 88, 1600, 198, 220, 366, 4749, 1298, 366...
2.764331
157
from django import forms from django.utils.translation import ugettext_lazy as _ from django.utils import timezone from .models import ProblemReport, USER_PROBLEM_CHOICES
[ 6738, 42625, 14208, 1330, 5107, 198, 6738, 42625, 14208, 13, 26791, 13, 41519, 1330, 334, 1136, 5239, 62, 75, 12582, 355, 4808, 198, 6738, 42625, 14208, 13, 26791, 1330, 640, 11340, 198, 198, 6738, 764, 27530, 1330, 20647, 19100, 11, 12...
3.392157
51
#! python3 # pdfParanoia.py - Add password in command line # to every PDF in folder and subfolders. import PyPDF2, os, sys password = sys.argv[1] for foldername, subfolders, filenames in os.walk(os.getcwd()): # Find each PDF after walking through given directory. for filename in filenames: if (filename.endswith...
[ 2, 0, 21015, 18, 198, 2, 37124, 10044, 30661, 13, 9078, 532, 3060, 9206, 287, 3141, 1627, 198, 2, 284, 790, 12960, 287, 9483, 290, 850, 11379, 364, 13, 198, 198, 11748, 9485, 20456, 17, 11, 28686, 11, 25064, 198, 198, 28712, 796, ...
2.619543
481
from contextlib import contextmanager import numpy as np _my_colors = np.array([ [0, 127, 70], [255, 0, 0], [255, 217, 38], [0, 135, 255], [165, 0, 165], [255, 167, 255], [97, 142, 151], [0, 255, 255], [255, 96, 38], [142, 76, 0], [33, 0, 127], [0, 0, 0], ...
[ 6738, 4732, 8019, 1330, 4732, 37153, 201, 198, 11748, 299, 32152, 355, 45941, 201, 198, 201, 198, 62, 1820, 62, 4033, 669, 796, 45941, 13, 18747, 26933, 201, 198, 220, 220, 220, 685, 15, 11, 18112, 11, 4317, 4357, 201, 198, 220, 220...
2.03532
453
from rest_framework.generics import ListAPIView from rest_framework.generics import ListCreateAPIView from apps.meiduo_admin.serializer.users import UserModelSerializer from apps.users.models import User from apps.meiduo_admin.utils import PageNumber
[ 6738, 1334, 62, 30604, 13, 8612, 873, 1330, 7343, 2969, 3824, 769, 198, 6738, 1334, 62, 30604, 13, 8612, 873, 1330, 7343, 16447, 2969, 3824, 769, 198, 6738, 6725, 13, 1326, 312, 20895, 62, 28482, 13, 46911, 7509, 13, 18417, 1330, 1178...
3.614286
70
#Função par print(par(4)) print(par(23))
[ 2, 24629, 16175, 28749, 1582, 198, 4798, 7, 1845, 7, 19, 4008, 198, 4798, 7, 1845, 7, 1954, 4008, 198 ]
2.05
20
from ciscoaxl import axl from decouple import config cucm = config("CUCM_PUBLISHER") username = config("CUCM_AXL_USERNAME") password = config("CUCM_AXL_PASSWORD") version = config("CUCM_VERSION") ucm = axl(username=username, password=password, cucm=cucm, cucm_version=version) # TODO: add below methods for testing ...
[ 6738, 269, 4861, 897, 75, 1330, 7877, 75, 198, 6738, 875, 43846, 1330, 4566, 198, 198, 66, 1229, 76, 796, 4566, 7203, 34, 9598, 44, 62, 5105, 9148, 1797, 16879, 4943, 198, 29460, 796, 4566, 7203, 34, 9598, 44, 62, 25922, 43, 62, 2...
2.180743
2,960
import psycopg2 import logging import pymysql # mysql # connect
[ 11748, 17331, 22163, 70, 17, 198, 11748, 18931, 198, 11748, 279, 4948, 893, 13976, 628, 198, 220, 220, 220, 1303, 48761, 628, 220, 220, 220, 1303, 2018, 198 ]
2.678571
28
#!/usr/bin/python from __future__ import absolute_import, division, print_function __metaclass__ = type ANSIBLE_METADATA = { "metadata_version": "0.1.0", "status": ["preview"], "supported_by": "community", } DOCUMENTATION = r""" --- module: launchdarkly_environment short_description: Create Launchdarkly...
[ 2, 48443, 14629, 14, 8800, 14, 29412, 198, 198, 6738, 11593, 37443, 834, 1330, 4112, 62, 11748, 11, 7297, 11, 3601, 62, 8818, 198, 198, 834, 4164, 330, 31172, 834, 796, 2099, 198, 198, 15037, 34563, 62, 47123, 2885, 13563, 796, 1391, ...
2.621418
1,326
""" Superclass of experiments and related classes. """ import labrad import traceback from treedict import TreeDict class experiment_info(object): ''' Holds informaton about the experiment Attributes ---------- name: str parameters: TreeDict required_parameters: list ''' required_p...
[ 37811, 198, 12442, 4871, 286, 10256, 290, 3519, 6097, 13, 198, 37811, 198, 11748, 2248, 6335, 198, 11748, 12854, 1891, 198, 6738, 2054, 276, 713, 1330, 12200, 35, 713, 198, 198, 4871, 6306, 62, 10951, 7, 15252, 2599, 198, 220, 220, 22...
2.235169
1,416
""" Game fix for Resident Evil 6 / Biohazard 6 """ #pylint: disable=C0103 from protonfixes import util def main(): """ Uses wmp11 """ util.protontricks('wmp11')
[ 37811, 3776, 4259, 329, 22373, 10461, 718, 1220, 16024, 37598, 718, 198, 37811, 198, 2, 79, 2645, 600, 25, 15560, 28, 34, 486, 3070, 198, 198, 6738, 386, 1122, 42624, 1330, 7736, 198, 198, 4299, 1388, 33529, 198, 220, 220, 220, 37227,...
2.666667
66
import os import argparse import random import numpy as np from sklearn.preprocessing import StandardScaler from sklearn.externals import joblib import tensorflow as tf from tensorflow.python import keras as K import gym from fn_framework import FNAgent, Trainer, Observer if __name__ == "__main__": parser = ...
[ 11748, 28686, 198, 11748, 1822, 29572, 198, 11748, 4738, 198, 11748, 299, 32152, 355, 45941, 198, 6738, 1341, 35720, 13, 3866, 36948, 1330, 8997, 3351, 36213, 198, 6738, 1341, 35720, 13, 1069, 759, 874, 1330, 1693, 8019, 198, 11748, 11192...
2.967213
183
############################ # 226. Invert Binary Tree ############################ ''' # Definition for a binary tree node. class TreeNode: def __init__(self, x): self.val = x self.left = None self.right = None class Solution: def invertTree(self, root): """ :type root:...
[ 14468, 7804, 4242, 198, 2, 31510, 13, 554, 1851, 45755, 12200, 198, 14468, 7804, 4242, 198, 7061, 6, 198, 2, 30396, 329, 257, 13934, 5509, 10139, 13, 198, 4871, 12200, 19667, 25, 198, 220, 220, 220, 825, 11593, 15003, 834, 7, 944, 1...
2.208687
1,059
import mnist_loader import network def run_train(): """ The network is trained by executing Network module """ training_data, validation_data, test_data = mnist_loader.load_data_wrapper() net = network.Network([784, 30, 10]) net.SGD(training_data, 30, 10, 3.0, test_data=test_data) network.save_object(net)
[ 11748, 285, 77, 396, 62, 29356, 198, 11748, 3127, 198, 198, 4299, 1057, 62, 27432, 33529, 198, 197, 37811, 383, 3127, 318, 8776, 416, 23710, 7311, 8265, 37227, 198, 197, 198, 197, 34409, 62, 7890, 11, 21201, 62, 7890, 11, 1332, 62, ...
2.881818
110
#!/usr/bin/env python3 # Copyright (c) 2017 Intel Corporation. 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 # # Unle...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 2, 15069, 357, 66, 8, 2177, 8180, 10501, 13, 1439, 2489, 10395, 13, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 2,...
3.6
220
import cv2 import math import argparse def highlightFace(net, frame, conf_threshold=0.7): ''' This function detects faces on the image using the 'net' passed (if any) and returns the detection output as well as the cordinates of the faces detected ''' frameOpencvDnn=frame.copy() #--------savi...
[ 11748, 269, 85, 17, 198, 11748, 10688, 198, 11748, 1822, 29572, 628, 198, 4299, 7238, 32388, 7, 3262, 11, 5739, 11, 1013, 62, 400, 10126, 28, 15, 13, 22, 2599, 198, 220, 220, 220, 705, 7061, 198, 220, 220, 220, 770, 2163, 39382, 6...
2.461538
1,794
import sys import importlib importlib.reload(sys) from os import chdir, getcwd, listdir, path from time import strftime from pdfminer.pdfparser import PDFParser, PDFDocument from pdfminer.pdfinterp import PDFResourceManager, PDFPageInterpreter from pdfminer.converter import PDFPageAggregator from pdfminer.layout import...
[ 11748, 25064, 198, 11748, 1330, 8019, 198, 11748, 8019, 13, 260, 2220, 7, 17597, 8, 198, 6738, 28686, 1330, 442, 15908, 11, 651, 66, 16993, 11, 1351, 15908, 11, 3108, 198, 6738, 640, 1330, 965, 31387, 198, 6738, 37124, 1084, 263, 13, ...
2.23
500
from uuid import UUID import json import logging import traceback import requests from requests.exceptions import ConnectionError as RequestsConnectionError, MissingSchema from sqlalchemy.orm.exc import NoResultFound from .. import app from ..db import Session from ..mappings import * from ..helpers import type_che...
[ 198, 6738, 334, 27112, 1330, 471, 27586, 198, 198, 11748, 33918, 198, 11748, 18931, 198, 11748, 12854, 1891, 198, 11748, 7007, 198, 198, 6738, 7007, 13, 1069, 11755, 1330, 26923, 12331, 355, 9394, 3558, 32048, 12331, 11, 25639, 27054, 261...
2.213964
1,332
import os from pathlib import Path import argparse import datetime import numpy as np import time import torch import json import random # import functools import utils from create_model import create_model from create_datasets.prepare_datasets import build_test_dataset from engine import * from losses import Uptask_L...
[ 11748, 28686, 198, 6738, 3108, 8019, 1330, 10644, 198, 11748, 1822, 29572, 198, 11748, 4818, 8079, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 640, 198, 11748, 28034, 198, 11748, 33918, 198, 11748, 4738, 198, 2, 1330, 1257, 310, 10141...
2.687345
403
import numpy as np import torch import pathlib
[ 11748, 299, 32152, 355, 45941, 198, 11748, 28034, 198, 11748, 3108, 8019, 628, 198 ]
3.5
14
############################################################################# # Copyright (c) Wolf Vollprecht, QuantStack # # # # Distributed under the terms of the BSD 3-Clause License. # # ...
[ 29113, 29113, 7804, 4242, 2, 198, 2, 15069, 357, 66, 8, 8662, 569, 692, 3866, 21474, 11, 16972, 25896, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, ...
2.317204
558
import functools import json import uuid from .common import InfoExtractor from ..utils import ( determine_ext, dict_get, ExtractorError, float_or_none, OnDemandPagedList, traverse_obj, )
[ 11748, 1257, 310, 10141, 198, 11748, 33918, 198, 11748, 334, 27112, 198, 198, 6738, 764, 11321, 1330, 14151, 11627, 40450, 198, 6738, 11485, 26791, 1330, 357, 198, 220, 220, 220, 5004, 62, 2302, 11, 198, 220, 220, 220, 8633, 62, 1136, ...
2.626506
83
# -*- coding: utf-8 -*- # mypy: ignore-errors from itertools import combinations import jax.numpy as jnp import numpy as np import pytest from tinygp.solvers.quasisep.core import ( DiagQSM, LowerTriQSM, SquareQSM, StrictLowerTriQSM, StrictUpperTriQSM, SymmQSM, ) @pytest.fixture(params=["ran...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 616, 9078, 25, 8856, 12, 48277, 198, 198, 6738, 340, 861, 10141, 1330, 17790, 198, 198, 11748, 474, 897, 13, 77, 32152, 355, 474, 37659, 198, 11748, 299, 32152, 355...
2.350746
268
html1 = """<li class="clearfix"> <span class="interface nearby_stations_schools_national_rail_station" title="London Bridge"></span> <span class="nearby_stations_schools_name" title="London Bridge">London Bridge</span> (0.4 miles) </li>""" html2 = """<li class="clearfix"> <span class="interface...
[ 6494, 16, 796, 37227, 27, 4528, 1398, 2625, 20063, 13049, 5320, 198, 27, 12626, 1398, 2625, 39994, 6716, 62, 301, 602, 62, 14347, 82, 62, 14648, 62, 30224, 62, 17529, 1, 3670, 2625, 23421, 10290, 23984, 12626, 29, 198, 27, 12626, 1398...
2.641026
195
# input = "5 1 2 3 7 8 6 4" input = "1 2 5 3 7 8 6 4" # input = "2 1 5 3 4" # input = "2 5 1 3 4" a = list(map(int, input.rstrip().split())) minimumBribes(a)
[ 628, 220, 220, 220, 220, 198, 2, 5128, 796, 366, 20, 352, 362, 513, 767, 807, 718, 604, 1, 198, 15414, 796, 366, 16, 362, 642, 513, 767, 807, 718, 604, 1, 198, 198, 2, 5128, 796, 366, 17, 352, 642, 513, 604, 1, 198, 2, 5128,...
2.061728
81
#!/usr/bin/env python """ model.py Zhiang Chen Nov 24, 2019 """ from __future__ import absolute_import, division, print_function, unicode_literals import tensorflow as tf import pandas as pd import matplotlib.pyplot as plt import os if __name__ == "__main__": inputs = 200 layers = [200, 20, 2] nn = FCL(...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 37811, 198, 19849, 13, 9078, 198, 57, 5303, 648, 12555, 198, 20795, 1987, 11, 13130, 198, 37811, 198, 198, 6738, 11593, 37443, 834, 1330, 4112, 62, 11748, 11, 7297, 11, 3601, 62, 8818,...
2.688
125
# coding=utf-8 # Copyright 2021 TUNiB Inc. # Copyright (c) 2020, NVIDIA CORPORATION. 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/licens...
[ 2, 19617, 28, 40477, 12, 23, 198, 2, 15069, 33448, 309, 4944, 72, 33, 3457, 13, 198, 2, 15069, 357, 66, 8, 12131, 11, 15127, 23929, 44680, 6234, 13, 220, 1439, 2489, 10395, 13, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, ...
2.535411
1,412
import numpy as np
[ 11748, 299, 32152, 355, 45941 ]
3.6
5
import numpy as np
[ 11748, 299, 32152, 355, 45941 ]
3.6
5
#MBA and Asteroid Analysis #Comments are done so for magnitudes less than 18 (LCAM Project standards) import numpy as np import sys file = open("Analysis.txt", "w") Asteroids = np.genfromtxt("Objects_test_asteroids.txt" , comments='#', delimiter = " | ",dtype=None,invalid_raise=False,usecols=(1), encoding=None) ...
[ 2, 44, 4339, 290, 38484, 1868, 14691, 198, 2, 23903, 389, 1760, 523, 329, 7842, 10455, 1342, 621, 1248, 357, 5639, 2390, 4935, 5423, 8, 198, 198, 11748, 299, 32152, 355, 45941, 198, 198, 11748, 25064, 628, 198, 198, 7753, 796, 1280, ...
2.812083
2,549
# -*- coding: utf-8 -*- """ @package tcmi @copyright Copyright (c) 2018+ Fritz Haber Institute of the Max Planck Society, Benjamin Regler <regler@fhi-berlin.mpg.de> @license See LICENSE file for details. Licensed under the Apache License, Version 2.0 (the 'License'). You may not use this file excep...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 198, 31, 26495, 220, 220, 220, 256, 11215, 72, 198, 198, 31, 22163, 4766, 220, 15069, 357, 66, 8, 2864, 10, 45954, 19654, 263, 5136, 286, 262, 5436, 5224, 694, ...
2.923077
273
from ibis.pyspark.client import PySparkClient from ibis.pyspark.compiler import dialect # noqa: F401 def connect(session): """ Create a `SparkClient` for use with Ibis. Pipes **kwargs into SparkClient, which pipes them into SparkContext. See documentation for SparkContext: https://spark.apache.org/do...
[ 6738, 24283, 271, 13, 79, 893, 20928, 13, 16366, 1330, 9485, 4561, 668, 11792, 198, 6738, 24283, 271, 13, 79, 893, 20928, 13, 5589, 5329, 1330, 23637, 220, 1303, 645, 20402, 25, 376, 21844, 628, 198, 4299, 2018, 7, 29891, 2599, 198, ...
3.093633
267
#!/usr/bin/python """ OneLoginClient class Copyright (c) 2017, OneLogin, Inc. All rights reserved. OneLoginClient class of the OneLogin's Python SDK. """ import datetime from dateutil import tz import requests from defusedxml.lxml import fromstring from onelogin.api.util.urlbuilder import UrlBuilder from onelogin...
[ 2, 48443, 14629, 14, 8800, 14, 29412, 198, 198, 37811, 1881, 47790, 11792, 1398, 198, 198, 15269, 357, 66, 8, 2177, 11, 1881, 47790, 11, 3457, 13, 198, 3237, 2489, 10395, 13, 198, 198, 3198, 47790, 11792, 1398, 286, 262, 1881, 47790, ...
2.162483
29,720
# BOJ 1074 import sys si = sys.stdin.readline n, r, c = map(int, si().split()) print(divide(r, c, n))
[ 2, 16494, 41, 838, 4524, 198, 11748, 25064, 198, 198, 13396, 796, 25064, 13, 19282, 259, 13, 961, 1370, 628, 198, 198, 77, 11, 374, 11, 269, 796, 3975, 7, 600, 11, 33721, 22446, 35312, 28955, 198, 4798, 7, 7146, 485, 7, 81, 11, ...
2.163265
49
import unittest import matplotlib.lines from pyrolite.util.plot.style import ( marker_cycle, linekwargs, scatterkwargs, patchkwargs, _mpl_sp_kw_split, ) if __name__ == "__main__": unittest.main()
[ 11748, 555, 715, 395, 201, 198, 11748, 2603, 29487, 8019, 13, 6615, 201, 198, 201, 198, 6738, 12972, 3225, 578, 13, 22602, 13, 29487, 13, 7635, 1330, 357, 201, 198, 220, 220, 220, 18364, 62, 13696, 11, 201, 198, 220, 220, 220, 1627,...
2.115044
113
""" Data output to a binary file. """ # Local imports import brokkr.pipeline.baseoutput import brokkr.pipeline.utils
[ 37811, 198, 6601, 5072, 284, 257, 13934, 2393, 13, 198, 37811, 198, 198, 2, 10714, 17944, 198, 11748, 1379, 28747, 81, 13, 79, 541, 4470, 13, 8692, 22915, 198, 11748, 1379, 28747, 81, 13, 79, 541, 4470, 13, 26791, 628 ]
2.975
40
#Tool by Ghast with some changes with open("path/file.csv", 'r') as file: txt = "".join(file.readlines()) print("([ " + "\n ".join(["[{}],".format(t) for t in txt.split("\n") if t])[:-1] + " ])")
[ 2, 25391, 416, 11972, 459, 351, 617, 2458, 198, 198, 4480, 1280, 7203, 6978, 14, 7753, 13, 40664, 1600, 705, 81, 11537, 355, 2393, 25, 198, 220, 220, 220, 256, 742, 796, 366, 1911, 22179, 7, 7753, 13, 961, 6615, 28955, 198, 220, 2...
2.3
90
from rest_framework.viewsets import ViewSetMixin from pandas_drf_tools import generics, mixins class GenericDataFrameViewSet(ViewSetMixin, generics.GenericDataFrameAPIView): """ The GenericDataFrameViewSet class does not provide any actions by default, but does include the base set of generic view behavi...
[ 6738, 1334, 62, 30604, 13, 1177, 28709, 1330, 3582, 7248, 35608, 259, 198, 198, 6738, 19798, 292, 62, 7109, 69, 62, 31391, 1330, 1152, 873, 11, 5022, 1040, 628, 198, 4871, 42044, 6601, 19778, 7680, 7248, 7, 7680, 7248, 35608, 259, 11,...
2.327902
491
import cgi import time import threading lock = threading.Lock() connections = set() next_test_id = 0 def new_test(request): """Allocate a unique test id.""" global lock, next_test_id with lock: request.response = str(next_test_id) next_test_id += 1 def do_test(request, params): ""...
[ 11748, 269, 12397, 198, 11748, 640, 198, 11748, 4704, 278, 628, 198, 5354, 796, 4704, 278, 13, 25392, 3419, 198, 8443, 507, 796, 900, 3419, 198, 19545, 62, 9288, 62, 312, 796, 657, 628, 198, 198, 4299, 649, 62, 9288, 7, 25927, 2599,...
2.455882
272
#IJPOpen IssueTitles by issue number (used to sort IJPOpen by issuetitle) IJPOPENISSUES = { "Announcement": 1, "Annuals Report": 2, "Book Review Essay": 3, "Book Reviews": 4, "Book and Journal Reviews": 5, "Child and Adolescent Psychoanalysis": 6, "Clinical Communications": 7, "Correcti...
[ 198, 2, 40, 12889, 11505, 18232, 51, 30540, 416, 2071, 1271, 357, 1484, 284, 3297, 314, 12889, 11505, 416, 25731, 316, 2578, 8, 198, 40, 12889, 3185, 1677, 1797, 12564, 1546, 796, 1391, 198, 220, 220, 220, 366, 18858, 8652, 434, 1298,...
2.58871
372
import pytest from abra import Experiment, HypothesisTest from abra.inference.bayesian import get_stan_model_code from abra.inference.bayesian.models.binary import beta_binomial, binomial, bernoulli from abra.inference.bayesian.models.continuous import gaussian, exp_student_t from abra.inference.bayesian.models.counts ...
[ 11748, 12972, 9288, 198, 6738, 450, 430, 1330, 29544, 11, 21209, 313, 8497, 14402, 198, 6738, 450, 430, 13, 259, 4288, 13, 24406, 35610, 1330, 651, 62, 14192, 62, 19849, 62, 8189, 198, 6738, 450, 430, 13, 259, 4288, 13, 24406, 35610, ...
2.927318
399
from django.urls import path from itembase.core.views.staffing_views import ProjectManagerListView, TeamLeadListView, TeamListView, \ TeamMemberCreateView, TeamMemberClientCreateView, TeamMemberDetailView, TeamMemberUpdateView app_name = "staff" urlpatterns = [ # Client URL Patterns path('', TeamListView...
[ 6738, 42625, 14208, 13, 6371, 82, 1330, 3108, 198, 198, 6738, 2378, 8692, 13, 7295, 13, 33571, 13, 28120, 278, 62, 33571, 1330, 4935, 13511, 8053, 7680, 11, 4816, 20451, 8053, 7680, 11, 4816, 8053, 7680, 11, 3467, 198, 220, 220, 220, ...
2.870036
277
#!/usr/bin/python import sys import os import re import subprocess if len(sys.argv) < 3: print("provide problem name and number of nodes") exit(1) problemName = sys.argv[1] nodeCount = sys.argv[2] for file in os.listdir('.'): if not re.match(problemName + '.+\.h$', file): # print(file, "X") ...
[ 2, 48443, 14629, 14, 8800, 14, 29412, 198, 11748, 25064, 198, 11748, 28686, 198, 11748, 302, 198, 11748, 850, 14681, 198, 361, 18896, 7, 17597, 13, 853, 85, 8, 1279, 513, 25, 198, 220, 220, 220, 3601, 7203, 15234, 485, 1917, 1438, 2...
1.987722
733
import os import logging from flask import Flask,request,render_template from flask_cache import Cache from flask_compress import Compress from lib import gscrape from time import time chap = "1blZPkNxrw3ovfLvqD76eUzTuME34N2bl1fSTdaMjX2c" marq = "1wFK2aPJmXjAQAx3rT2vF7H-8NvveWQ7tuXdEoemhZ1M" board = "1JbaMwsPHbN3og_ig...
[ 11748, 28686, 198, 11748, 18931, 198, 6738, 42903, 1330, 46947, 11, 25927, 11, 13287, 62, 28243, 198, 6738, 42903, 62, 23870, 1330, 34088, 198, 6738, 42903, 62, 5589, 601, 1330, 3082, 601, 198, 6738, 9195, 1330, 308, 1416, 13484, 198, 6...
2.152941
595
# Copyright (c) 2021, NVIDIA CORPORATION. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to...
[ 2, 15069, 357, 66, 8, 33448, 11, 15127, 23929, 44680, 6234, 13, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 2, 345, 743, 407, 779, 428, 2393, 2845, 287, 11846, 351, 262...
3.41358
324
import unittest from decode import hex_to_dec, get_bool, hex_to_binary_int_string, hex_to_binary_string_list, invert_string, get_data_status from decode import format_hex, bin_to_dec, binary_to_on_off, get_digital_io_status, get_alarm, get_reverse from decode import get_battery, hex_to_float, make_decimal ...
[ 11748, 555, 715, 395, 198, 198, 6738, 36899, 1330, 17910, 62, 1462, 62, 12501, 11, 651, 62, 30388, 11, 17910, 62, 1462, 62, 39491, 62, 600, 62, 8841, 11, 17910, 62, 1462, 62, 39491, 62, 8841, 62, 4868, 11, 287, 1851, 62, 8841, 11,...
2.240437
183
import smtplib from email.mime.text import MIMEText from email.mime.multipart import MIMEMultipart from email.mime.base import MIMEBase from email import encoders import os email = 'xxxx@xxxx.com' password = 'xxxx' send_to_emails = ['xxxx@xxxx.com', 'xxxx@xxxx.com'] # List of email addresses subject = 'xxxx' message =...
[ 11748, 895, 83, 489, 571, 198, 6738, 3053, 13, 76, 524, 13, 5239, 1330, 337, 3955, 2767, 2302, 198, 6738, 3053, 13, 76, 524, 13, 16680, 541, 433, 1330, 337, 3955, 3620, 586, 541, 433, 198, 6738, 3053, 13, 76, 524, 13, 8692, 1330, ...
2.292517
588
#! /usr/bin/env python from django.core.management.base import BaseCommand from face_manager import models as face_models from facenet_pytorch import MTCNN, InceptionResnetV1 from filepopulator import models as file_models from io import BytesIO from PIL import Image, ExifTags import cv2 import matplotlib.pyplot as pl...
[ 2, 0, 1220, 14629, 14, 8800, 14, 24330, 21015, 198, 198, 6738, 42625, 14208, 13, 7295, 13, 27604, 13, 8692, 1330, 7308, 21575, 198, 6738, 1986, 62, 37153, 1330, 4981, 355, 1986, 62, 27530, 198, 6738, 1777, 268, 316, 62, 9078, 13165, ...
3.267241
116
# encoding=utf-8 from __future__ import unicode_literals, print_function import datetime from django.core.management.base import BaseCommand, CommandError from django.db import transaction from django.utils.translation import ugettext_lazy as _
[ 2, 21004, 28, 40477, 12, 23, 198, 6738, 11593, 37443, 834, 1330, 28000, 1098, 62, 17201, 874, 11, 3601, 62, 8818, 198, 198, 11748, 4818, 8079, 198, 198, 6738, 42625, 14208, 13, 7295, 13, 27604, 13, 8692, 1330, 7308, 21575, 11, 9455, ...
3.557143
70
import tensorflow as tf import tensorflow.keras.layers as KL from utils import conv_block def FCOS(cfg, backbone=None, top_layer=None): """return FCOS as keras model Arguments: cfg: dict backbone: str or keras model top_layer: Returns: keras model of FCOS """ # ...
[ 11748, 11192, 273, 11125, 355, 48700, 198, 11748, 11192, 273, 11125, 13, 6122, 292, 13, 75, 6962, 355, 48253, 198, 198, 6738, 3384, 4487, 1330, 3063, 62, 9967, 628, 198, 4299, 10029, 2640, 7, 37581, 11, 32774, 28, 14202, 11, 1353, 62,...
2.158824
1,190
standard_tickets = 0 student_tickets = 0 kid_tickets = 0 finished = False while not finished: movie = input() seats = int(input()) capacity = seats while True: ticket = input() if ticket == 'Finish' or ticket == 'End': if ticket == 'Finish': ...
[ 20307, 62, 83, 15970, 796, 657, 201, 198, 50139, 62, 83, 15970, 796, 657, 201, 198, 38439, 62, 83, 15970, 796, 657, 201, 198, 201, 198, 43952, 796, 10352, 201, 198, 201, 198, 4514, 407, 5201, 25, 201, 198, 201, 198, 220, 220, 220,...
2.097967
541
import abc import copy import csv import json import multiprocessing import os import time from octue.cloud import storage from octue.cloud.storage.client import GoogleCloudStorageClient from octue.utils.persistence import calculate_disk_usage, get_oldest_file_in_directory logger = multiprocessing.get_logger() DEFA...
[ 11748, 450, 66, 198, 11748, 4866, 198, 11748, 269, 21370, 198, 11748, 33918, 198, 11748, 18540, 305, 919, 278, 198, 11748, 28686, 198, 11748, 640, 198, 198, 6738, 19318, 518, 13, 17721, 1330, 6143, 198, 6738, 19318, 518, 13, 17721, 13, ...
2.496194
3,547
import unittest import sys import numpy as np import src.utils.cifar_10_data as cifar_10
[ 11748, 555, 715, 395, 198, 11748, 25064, 198, 11748, 299, 32152, 355, 45941, 198, 198, 11748, 12351, 13, 26791, 13, 66, 361, 283, 62, 940, 62, 7890, 355, 269, 361, 283, 62, 940, 628 ]
2.676471
34
import qiskit as qk from qiskit import ClassicalRegister, QuantumRegister, QuantumCircuit from qiskit import execute, Aer from qiskit import IBMQ from qiskit.visualization import plot_histogram import matplotlib secret_unitary = "hz" # simple function that applies a series of unitary gates from a given string # Creat...
[ 11748, 10662, 1984, 270, 355, 10662, 74, 198, 6738, 10662, 1984, 270, 1330, 43680, 38804, 11, 29082, 38804, 11, 29082, 31560, 5013, 198, 6738, 10662, 1984, 270, 1330, 12260, 11, 15781, 198, 6738, 10662, 1984, 270, 1330, 19764, 48, 198, ...
2.922727
660
import os import numpy as np import tensorflow as tf import uncertainty_wizard as uwiz from emp_uncertainty.case_studies.case_study import BASE_MODEL_SAVE_FOLDER, BASE_OUTPUTS_SAVE_FOLDER from emp_uncertainty.case_studies.plain_classifiers import cifar10 from emp_uncertainty.dropout_rate.utils import rate_from_model_...
[ 11748, 28686, 198, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 11192, 273, 11125, 355, 48700, 198, 11748, 13479, 62, 86, 8669, 355, 334, 86, 528, 198, 198, 6738, 795, 79, 62, 19524, 1425, 774, 13, 7442, 62, 19149, 444, 13, 7442, ...
2.052838
511
""" Copyright (c) 2021 Aiven Ltd See LICENSE for details """ from astacus.client import create_client_parsers from astacus.common.ipc import Plugin from astacus.common.rohmustorage import ( RohmuCompression, RohmuCompressionType, RohmuConfig, RohmuEncryptionKey, RohmuLocalStorageConfig, RohmuStorageType ) from asta...
[ 37811, 198, 15269, 357, 66, 8, 33448, 317, 1469, 12052, 198, 6214, 38559, 24290, 329, 3307, 198, 37811, 198, 6738, 6468, 48628, 13, 16366, 1330, 2251, 62, 16366, 62, 79, 945, 364, 198, 6738, 6468, 48628, 13, 11321, 13, 541, 66, 1330, ...
2.818301
765
# -*- coding: utf-8; mode: Python; -*- # # 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...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 26, 4235, 25, 11361, 26, 532, 9, 12, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 345, 198, 2, 743, 407, 779, 428, 2393, 2845,...
3.570755
212
base= int(input("Digite o numero base da potencia")) expoente= int(input("Digite o numero expoente da potencia")) if expoente <0: print("Erro: O expoente não pode ser negativo") else: contador= 0 resultado= 1 while contador < expoente: resultado=resultado*base conta...
[ 8692, 28, 493, 7, 15414, 7203, 19511, 578, 267, 997, 3529, 2779, 12379, 1787, 29634, 48774, 198, 1069, 7501, 21872, 28, 493, 7, 15414, 7203, 19511, 578, 267, 997, 3529, 1033, 78, 21872, 12379, 1787, 29634, 48774, 198, 198, 361, 1033, ...
2.136126
191
import requests import html.parser import re H = html.parser.HTMLParser() CONTENT = "https://www.churchofjesuschrist.org/content/api/v2" def clean_html(text): """Takes in html code and cleans it. Note that footnotes are replaced with # for word counting later. Parameters ----------- text : s...
[ 11748, 7007, 198, 11748, 27711, 13, 48610, 198, 11748, 302, 198, 198, 39, 796, 27711, 13, 48610, 13, 28656, 46677, 3419, 198, 37815, 3525, 796, 366, 5450, 1378, 2503, 13, 36964, 1659, 73, 274, 385, 43533, 13, 2398, 14, 11299, 14, 1504...
2.173263
2,274
# author: Bartlomiej "furas" Burek (https://blog.furas.pl) # date: 2022.04.11 from selenium import webdriver from selenium.webdriver.common.by import By #from webdriver_manager.chrome import ChromeDriverManager from webdriver_manager.firefox import GeckoDriverManager import time url = 'https://www.tripadvisor.com/Pro...
[ 2, 1772, 25, 13167, 75, 296, 494, 73, 366, 69, 17786, 1, 347, 495, 74, 357, 5450, 1378, 14036, 13, 69, 17786, 13, 489, 8, 198, 2, 3128, 25, 33160, 13, 3023, 13, 1157, 198, 198, 6738, 384, 11925, 1505, 1330, 3992, 26230, 198, 673...
2.749354
387
#!/usr/bin/env python3 # Required imports # ----------------------------------------------------------------------------- import json import os import functools as ft import multiprocessing as mp import xmltodict as xd # Function definitions # ----------------------------------------------------------------------...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 628, 198, 2, 20906, 17944, 198, 2, 16529, 32501, 628, 198, 11748, 33918, 198, 11748, 28686, 198, 11748, 1257, 310, 10141, 355, 10117, 198, 11748, 18540, 305, 919, 278, 355, 29034, 198, ...
3.072948
658
#!/usr/bin/env python import _init_paths from evb.test import test_net from evb.config import cfg, cfg_from_file, cfg_from_list from datasets.factory import get_imdb import caffe import argparse import pprint import time, os, sys def parse_args(): """ Parse input arguments """ parser = argparse.Argumen...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 11748, 4808, 15003, 62, 6978, 82, 198, 6738, 819, 65, 13, 9288, 1330, 1332, 62, 3262, 198, 6738, 819, 65, 13, 11250, 1330, 30218, 70, 11, 30218, 70, 62, 6738, 62, 7753, 11, 30218, ...
2.108197
1,525
import base64 import os import string from pathlib import Path import pytest import xdelta3 value_one = b'this is a short string to test with. It is suitable for delta encoding.' value_two = b'this is a different short string to test with. It is suitable for delta encoding.' expected_delta = b'\xd6\xc3\xc4\x00\x00\x...
[ 11748, 2779, 2414, 198, 11748, 28686, 198, 11748, 4731, 198, 6738, 3108, 8019, 1330, 10644, 198, 198, 11748, 12972, 9288, 198, 198, 11748, 2124, 67, 12514, 18, 198, 198, 8367, 62, 505, 796, 275, 470, 14363, 318, 257, 1790, 4731, 284, ...
2.690141
142
# Echo client program # This is a simple test client import socket import sys PORT = 80 # The same port as used by the server
[ 2, 21455, 5456, 1430, 198, 2, 770, 318, 257, 2829, 1332, 5456, 198, 11748, 17802, 198, 11748, 25064, 198, 15490, 796, 4019, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1303, 383, 976, 2493, 355, 973, 416, 262, 4382, ...
3.136364
44
import numpy as np ## GEAR FORCES AND POWER LOSS ################################################# ## LINES OF CONTACT ########################################################### ## HERTZIAN CONTACT ###########################################################
[ 11748, 299, 32152, 355, 45941, 198, 2235, 43790, 7473, 34, 1546, 5357, 40295, 406, 18420, 1303, 29113, 14468, 198, 2235, 43277, 1546, 3963, 22904, 10659, 1303, 29113, 14468, 7804, 2235, 198, 2235, 367, 17395, 57, 16868, 22904, 10659, 1303, ...
6
43
# -------------- #Importing header files import pandas as pd import matplotlib.pyplot as plt import seaborn as sns data=pd.read_csv(path) #Code starts here data['Rating'].plot.hist() plt.show() data=data[data['Rating']<=5] data['Rating'].plot.hist() plt.show() #Code ends here # -------------- # code starts here to...
[ 2, 220, 26171, 198, 2, 20939, 278, 13639, 3696, 198, 11748, 19798, 292, 355, 279, 67, 198, 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 198, 11748, 384, 397, 1211, 355, 3013, 82, 198, 198, 7890, 28, 30094, 13, 961, 62, ...
2.967153
1,096
from .imaging_serial import *
[ 198, 6738, 764, 320, 3039, 62, 46911, 1330, 1635, 198 ]
3.1
10
# # Copyright (c) 2020 Intel Corporation, Inc. # # SPDX-License-Identifier: Apache-2.0 # from sqlalchemy import Column from sqlalchemy import DateTime from sqlalchemy import ForeignKey from sqlalchemy import Integer from sqlalchemy import MetaData from sqlalchemy import String from sqlalchemy import Table from sqlalch...
[ 2, 198, 2, 15069, 357, 66, 8, 12131, 8180, 10501, 11, 3457, 13, 198, 2, 198, 2, 30628, 55, 12, 34156, 12, 33234, 7483, 25, 24843, 12, 17, 13, 15, 198, 2, 198, 198, 6738, 44161, 282, 26599, 1330, 29201, 198, 6738, 44161, 282, 265...
2.370332
964
""" Created on Tue Nov 24 21:41:40 2020 @author: mauro """ import os from typing import Dict import graphviz import pandas as pd from sklearn.tree import DecisionTreeRegressor from explanation.ExplanationBase import ExplanationBase from explanation.Global.SurrogatePlot import SurrogatePlot from explanation.Global.Su...
[ 37811, 198, 41972, 319, 30030, 5267, 1987, 2310, 25, 3901, 25, 1821, 12131, 198, 198, 31, 9800, 25, 285, 559, 305, 198, 37811, 198, 11748, 28686, 198, 6738, 19720, 1330, 360, 713, 198, 198, 11748, 4823, 85, 528, 198, 11748, 19798, 292...
2.263874
1,910