content
stringlengths
1
1.05M
input_ids
listlengths
1
883k
ratio_char_token
float64
1
22.9
token_count
int64
1
883k
# Generated by Django 2.1.7 on 2019-03-31 10:31 from django.conf import settings from django.db import migrations, models import django.db.models.deletion
[ 2, 2980, 515, 416, 37770, 362, 13, 16, 13, 22, 319, 13130, 12, 3070, 12, 3132, 838, 25, 3132, 198, 198, 6738, 42625, 14208, 13, 10414, 1330, 6460, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 11, 4981, 198, 11748, 42625, 142...
3.019231
52
#!/usr/bin/env python3 # encoding: utf-8 # Douglas Crockford's idea for making generators # basically "why do you need a `yield` keyword when you can just maintain some state" # in my view, a class would be a better way to do this, and indeed, in python, # that's how Iterators are defined. gen = iter([1,2,3]) for _ i...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 2, 21004, 25, 3384, 69, 12, 23, 198, 198, 2, 15796, 9325, 694, 3841, 338, 2126, 329, 1642, 27298, 198, 2, 6209, 366, 22850, 466, 345, 761, 257, 4600, 88, 1164, 63, 21179, 618, ...
3.117117
111
from time import time from ss.utils import INF import sys import os import shutil TEMP_DIR = 'temp/' DOMAIN_INPUT = 'domain.pddl' PROBLEM_INPUT = 'problem.pddl' TRANSLATE_OUTPUT = 'output.sas' SEARCH_OUTPUT = 'sas_plan' ENV_VAR = 'FD_PATH' FD_BIN = 'bin' TRANSLATE_DIR = 'translate/' SEARCH_COMMAND = 'downward --inter...
[ 6738, 640, 1330, 640, 198, 6738, 37786, 13, 26791, 1330, 45594, 198, 11748, 25064, 198, 11748, 28686, 198, 11748, 4423, 346, 198, 198, 51, 39494, 62, 34720, 796, 705, 29510, 14, 6, 198, 39170, 29833, 62, 1268, 30076, 796, 705, 27830, ...
2.053229
1,409
import requests from api import config
[ 11748, 7007, 198, 6738, 40391, 1330, 4566, 628 ]
5
8
''' Library for gcode commands objects that render to strings. ''' from .number import num2str from .point import XYZ
[ 7061, 6, 198, 23377, 329, 308, 8189, 9729, 5563, 326, 8543, 284, 13042, 13, 198, 7061, 6, 198, 6738, 764, 17618, 1330, 997, 17, 2536, 198, 6738, 764, 4122, 1330, 41420, 57, 628, 628, 628, 628, 628, 628, 628, 628, 628, 198 ]
3.238095
42
''' Description: Problem 3 (rearrange the code) Version: 1.0.1.20210116 Author: Arvin Zhao Date: 2021-01-14 22:51:16 Last Editors: Arvin Zhao LastEditTime: 2021-01-16 04:11:18 ''' if __name__ == '__main__': # It is strongly recommended to add this line. main()
[ 7061, 6, 198, 11828, 25, 20647, 513, 357, 260, 3258, 858, 262, 2438, 8, 198, 14815, 25, 352, 13, 15, 13, 16, 13, 1238, 2481, 486, 1433, 198, 13838, 25, 943, 7114, 29436, 198, 10430, 25, 33448, 12, 486, 12, 1415, 2534, 25, 4349, ...
2.663366
101
from tensorflow import keras # Make sure the tf_trees directory is in the search path. from tf_trees import TEL # The documentation of TEL can be accessed as follows print(TEL.__doc__) # We will fit TEL on the Boston Housing regression dataset. # First, load the dataset. from keras.datasets import boston_housing (x_t...
[ 6738, 11192, 273, 11125, 1330, 41927, 292, 198, 2, 6889, 1654, 262, 48700, 62, 83, 6037, 8619, 318, 287, 262, 2989, 3108, 13, 198, 6738, 48700, 62, 83, 6037, 1330, 309, 3698, 198, 198, 2, 383, 10314, 286, 309, 3698, 460, 307, 17535,...
3.094675
338
#!/usr/bin/env python # Core Library modules import argparse import os # Third party modules import pytest # First party modules import nntoolkit.utils as utils
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 198, 2, 7231, 10074, 13103, 198, 11748, 1822, 29572, 198, 11748, 28686, 198, 198, 2, 10467, 2151, 13103, 198, 11748, 12972, 9288, 198, 198, 2, 3274, 2151, 13103, 198, 11748, 299, 429, ...
3.32
50
sum = 0 for x in range(1,1000): if x%3 == 0 or x%5 == 0: sum += x print ("Total is:", sum)
[ 16345, 796, 657, 201, 198, 201, 198, 1640, 2124, 287, 2837, 7, 16, 11, 12825, 2599, 201, 198, 197, 361, 2124, 4, 18, 6624, 657, 393, 2124, 4, 20, 6624, 657, 25, 201, 198, 197, 197, 16345, 15853, 2124, 201, 198, 201, 198, 4798, 5...
1.980392
51
import smtplib import os from email.mime.text import MIMEText from email.utils import formataddr from email.mime.image import MIMEImage from email.mime.multipart import MIMEMultipart from email.mime.text import MIMEText from email.header import Header try: from src.config import CONFIG except ImportError: Zemail ...
[ 11748, 895, 83, 489, 571, 198, 11748, 28686, 198, 6738, 3053, 13, 76, 524, 13, 5239, 1330, 337, 3955, 2767, 2302, 198, 6738, 3053, 13, 26791, 1330, 5794, 29851, 198, 6738, 3053, 13, 76, 524, 13, 9060, 1330, 337, 12789, 5159, 198, 67...
2.972028
143
from typing import List, Optional from can_decoder.Signal import Signal
[ 6738, 19720, 1330, 7343, 11, 32233, 198, 198, 6738, 460, 62, 12501, 12342, 13, 11712, 282, 1330, 26484, 628 ]
3.894737
19
largura = float(input('Digite a largura da parede: ')) altura = float(input('Digite a altura da parede: ')) area = largura * altura tinta = area / 2 print('A rea da parede de {}'.format(area)) print('Ser necessrio para pintar {} litros de tinta'.format(tinta))
[ 15521, 5330, 796, 12178, 7, 15414, 10786, 19511, 578, 257, 2552, 5330, 12379, 279, 1144, 68, 25, 705, 4008, 198, 2501, 5330, 796, 12178, 7, 15414, 10786, 19511, 578, 257, 5988, 5330, 12379, 279, 1144, 68, 25, 705, 4008, 198, 198, 2033...
2.693878
98
#Kyle Slater import re
[ 2, 42516, 44289, 198, 11748, 302 ]
3.666667
6
import os import tempfile import requests api_url = "http://127.0.0.1:8989" def test_no_token(): """Request home without token""" response = requests.get(api_url+"/isvalid") print(response.status_code) assert response.status_code == 401
[ 11748, 28686, 198, 11748, 20218, 7753, 198, 11748, 7007, 198, 198, 15042, 62, 6371, 796, 366, 4023, 1378, 16799, 13, 15, 13, 15, 13, 16, 25, 23, 42520, 1, 198, 198, 4299, 1332, 62, 3919, 62, 30001, 33529, 198, 220, 220, 220, 37227, ...
2.752688
93
#!/usr/bin/python3 # MIT License # # Copyright (c) 2021 gh0$t # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy,...
[ 2, 48443, 14629, 14, 8800, 14, 29412, 18, 198, 198, 2, 17168, 13789, 198, 2, 220, 198, 2, 15069, 357, 66, 8, 33448, 24997, 15, 3, 83, 198, 2, 220, 198, 2, 2448, 3411, 318, 29376, 7520, 11, 1479, 286, 3877, 11, 284, 597, 1048, ...
3.39593
1,081
# Generated by Django 3.1.2 on 2021-09-23 21:54 from django.db import migrations
[ 2, 2980, 515, 416, 37770, 513, 13, 16, 13, 17, 319, 33448, 12, 2931, 12, 1954, 2310, 25, 4051, 198, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 628 ]
2.766667
30
import tensorflow as tf import keras import numpy as np
[ 11748, 11192, 273, 11125, 355, 48700, 198, 11748, 41927, 292, 198, 11748, 299, 32152, 355, 45941, 628 ]
3.352941
17
import os MONGO_HOST = os.getenv('OPENSHIFT_NOSQL_DB_HOST') MONGO_PORT = os.getenv('OPENSHIFT_NOSQL_DB_PORT') MONGO_USERNAME = os.getenv('OPENSHIFT_NOSQL_DB_USERNAME') MONGO_PASSWORD = os.getenv('OPENSHIFT_NOSQL_DB_PASSWORD') MONGO_DBNAME = 'speakeasy' PRIV_KEY_FILE = os.getenv('OPENSHIFT_DATA_DIR') + '/server_privat...
[ 11748, 28686, 198, 198, 27857, 11230, 62, 39, 10892, 796, 28686, 13, 1136, 24330, 10786, 3185, 1677, 9693, 32297, 62, 45, 2640, 9711, 62, 11012, 62, 39, 10892, 11537, 198, 27857, 11230, 62, 15490, 796, 28686, 13, 1136, 24330, 10786, 318...
2.179372
223
r''' perl_io - Opens a file or pipe in the Perl style Copyright (c) 2016 Yoichi Hariguchi 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...
[ 81, 7061, 6, 48746, 62, 952, 532, 8670, 641, 257, 2393, 393, 12656, 287, 262, 24316, 3918, 198, 198, 15269, 357, 66, 8, 1584, 25455, 16590, 2113, 328, 22200, 198, 198, 5990, 3411, 318, 29376, 7520, 11, 1479, 286, 3877, 11, 284, 597,...
2.969064
1,293
from .. import bp from flask import request, render_template, flash, redirect, url_for from flask_login import current_user, login_required from app.lib.base.provider import Provider from app.lib.base.decorators import admin_required
[ 6738, 11485, 1330, 275, 79, 198, 6738, 42903, 1330, 2581, 11, 8543, 62, 28243, 11, 7644, 11, 18941, 11, 19016, 62, 1640, 198, 6738, 42903, 62, 38235, 1330, 1459, 62, 7220, 11, 17594, 62, 35827, 198, 6738, 598, 13, 8019, 13, 8692, 13...
3.730159
63
#!/usr/bin/env python # Copyright 2014 Open Connectome Project (http://openconnecto.me) # # 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 # #...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 198, 2, 15069, 1946, 4946, 8113, 462, 4935, 357, 4023, 1378, 9654, 8443, 78, 13, 1326, 8, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 341...
2.521832
1,878
# Copyright 2017 reinforce.io. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or...
[ 2, 15069, 2177, 19594, 13, 952, 13, 1439, 6923, 33876, 13, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 2, 345, 743, 407, 779, 428, 2393, 2845, 287, 11846, 351, 262, 137...
4.198198
222
import os import re import time from selenium import webdriver from selenium.webdriver.common.keys import Keys from selenium.webdriver.common.by import By from selenium.webdriver.support.ui import WebDriverWait from selenium.webdriver.support import expected_conditions as EC from selenium.webdriver import Chrome from s...
[ 11748, 28686, 198, 11748, 302, 198, 11748, 640, 198, 6738, 384, 11925, 1505, 1330, 3992, 26230, 198, 6738, 384, 11925, 1505, 13, 12384, 26230, 13, 11321, 13, 13083, 1330, 26363, 198, 6738, 384, 11925, 1505, 13, 12384, 26230, 13, 11321, ...
2.196035
4,540
import os import tempfile import shutil import requests import sys import logging import json from src.server.dependency import ModelData import tensorflow as tf def train_model(training_id, model_data: ModelData): """ Train model(s) based on a given model and hyperparameters Now supporting two hyperpara...
[ 11748, 28686, 198, 11748, 20218, 7753, 198, 11748, 4423, 346, 198, 11748, 7007, 198, 11748, 25064, 198, 11748, 18931, 198, 11748, 33918, 198, 198, 6738, 12351, 13, 15388, 13, 45841, 1387, 1330, 9104, 6601, 198, 11748, 11192, 273, 11125, 3...
2.247742
3,100
from flask import Flask from flask import render_template from flask import request from model import MovieWebDAO import json from ml import Forcast app = Flask(__name__) if __name__ == '__main__': print("http://localhost:15001") app.run(host='0.0.0.0', debug=True, port=15001)
[ 6738, 42903, 1330, 46947, 198, 6738, 42903, 1330, 8543, 62, 28243, 198, 6738, 42903, 1330, 2581, 198, 6738, 2746, 1330, 15875, 13908, 5631, 46, 198, 11748, 33918, 198, 6738, 25962, 1330, 1114, 2701, 198, 198, 1324, 796, 46947, 7, 834, 3...
3.010417
96
import h5py import numpy as np import cv2 """ Just gets rid of the negatives by only reading the positives, then writing them to replace the existing archive """ archive_dir="positive_augmented_samples.h5" x,y = read_new(archive_dir) write_new(archive_dir, x, y)
[ 11748, 289, 20, 9078, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 269, 85, 17, 198, 198, 37811, 198, 5703, 3011, 5755, 286, 262, 42510, 416, 691, 3555, 262, 38548, 11, 788, 3597, 606, 284, 6330, 262, 4683, 15424, 198, 37811, 198, ...
3.117647
85
# -*- coding: utf-8 -*- """ Automate WhatsApp - Sending WhatsApp message @author: DELL Ishvina Kapoor """ #importing the necessary modules import pywhatkit as pkt import getpass as gp #displaying a welcome message print("Automating Whatsapp!") #capturing the target phone number from the user phone_...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 201, 198, 37811, 201, 198, 38062, 378, 37666, 532, 32038, 37666, 3275, 201, 198, 201, 198, 31, 9800, 25, 5550, 3069, 24303, 85, 1437, 27344, 2675, 201, 198, 37811, 201, 198, ...
2.990741
216
import gast as ast from beniget import Ancestors, DefUseChains as DUC, UseDefChains from beniget.beniget import Def __all__ = ["Ancestors", "DefUseChains", "UseDefChains"] # this import has to be after the definition of DefUseChains from transonic.analyses.extast import CommentLine # noqa: E402
[ 11748, 21956, 355, 6468, 198, 198, 6738, 1888, 328, 316, 1330, 31200, 669, 11, 2896, 11041, 1925, 1299, 355, 360, 9598, 11, 5765, 7469, 1925, 1299, 198, 198, 6738, 1888, 328, 316, 13, 11722, 328, 316, 1330, 2896, 628, 198, 834, 439, ...
3.070707
99
# -*- coding: utf-8 -*- """ Created on Thu Sep 3 16:43:28 2020 @author: nicholls """
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 198, 41972, 319, 26223, 8621, 220, 513, 1467, 25, 3559, 25, 2078, 12131, 198, 198, 31, 9800, 25, 299, 488, 33421, 198, 37811, 628 ]
2.25641
39
from collections import Counter print(main('day16.txt'))
[ 6738, 17268, 1330, 15034, 628, 628, 198, 220, 220, 220, 220, 220, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 198, 4798, 7, 12417, 10786, 820, 1433, 13, 14116, 6, 4008, 198 ]
2.264706
34
# Author: Ibrahim Alhas - ID: 1533204. # MODEL 3: CNN with built-in tensorflow tokenizer. # This is the final version of the model (not the base). # Packages and libraries used for this model. # ** Install these if not installed already **. import numpy as np import pandas as pd import matplotlib.pyplot ...
[ 2, 220, 220, 6434, 25, 30917, 978, 10134, 532, 4522, 25, 1315, 2091, 18638, 13, 198, 198, 2, 220, 220, 19164, 3698, 513, 25, 220, 220, 220, 8100, 351, 3170, 12, 259, 11192, 273, 11125, 11241, 7509, 13, 198, 2, 220, 220, 770, 318, ...
2.836017
3,354
#!/usr/bin/env python2 # -*- coding: utf8 -*- # # Copyright (c) 2017 unfoldingWord # http://creativecommons.org/licenses/MIT/ # See LICENSE file for details. # # Contributors: # Richard Mahn <rich.mahn@unfoldingword.org> """ This script generates the HTML tN documents for each book of the Bible """ from __future_...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 17, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 23, 532, 9, 12, 198, 2, 198, 2, 220, 15069, 357, 66, 8, 2177, 34502, 26449, 198, 2, 220, 2638, 1378, 20123, 425, 9503, 684, 13, 2398, 14...
2.647654
1,087
import pandas as pd import numpy as np from tqdm import tqdm import argparse from pyscenic.aucell import aucell from .aucell import create_gene_signatures from .aucell import assign_bootstrap if __name__ == "__main__": main()
[ 11748, 19798, 292, 355, 279, 67, 198, 11748, 299, 32152, 355, 45941, 198, 6738, 256, 80, 36020, 1330, 256, 80, 36020, 198, 11748, 1822, 29572, 198, 6738, 279, 28349, 35866, 13, 559, 3846, 1330, 35851, 3846, 198, 6738, 764, 559, 3846, ...
3
76
"""Custom topology example s7 ---- s8 ---- s9 / \ / \ / \ h1 h2 h3 h4 h5 h6 """ from mininet.topo import Topo print('Loading MyTopo') topos = {'mytopo': (lambda: MyTopo())}
[ 37811, 15022, 1353, 1435, 1672, 628, 220, 220, 220, 264, 22, 13498, 264, 23, 13498, 264, 24, 198, 220, 220, 1220, 220, 3467, 220, 220, 220, 1220, 220, 3467, 220, 220, 220, 1220, 220, 3467, 198, 220, 289, 16, 220, 289, 17, 220, 289...
2.082474
97
from rule_condition import Condition from rule_action import Action from rule_template import RuleTemplate from rule_engine import RuleEngine from rule import Rule from rule_data import Data from rule_scope import Scope from action_handler_send_email import SendEmailHandler from action_handler_report_alarm import Repor...
[ 6738, 3896, 62, 31448, 1330, 24295, 198, 6738, 3896, 62, 2673, 1330, 7561, 198, 6738, 3896, 62, 28243, 1330, 14330, 30800, 198, 6738, 3896, 62, 18392, 1330, 14330, 13798, 198, 6738, 3896, 1330, 14330, 198, 6738, 3896, 62, 7890, 1330, 60...
3.495495
111
from django.urls import path from .views import * rest_urls = list(map(lambda x: path(x[0], x[1], name=x[2]), [ ('login/', login, 'login'), ('issue_asset/', issue_asset, 'issue_asset'), ('buy/', buy, 'buy'), ('get_assets/', get_assets, 'get_assets'), ('get_transactions/', get_transactions, 'get_tr...
[ 6738, 42625, 14208, 13, 6371, 82, 1330, 3108, 198, 198, 6738, 764, 33571, 1330, 1635, 198, 198, 2118, 62, 6371, 82, 796, 1351, 7, 8899, 7, 50033, 2124, 25, 3108, 7, 87, 58, 15, 4357, 2124, 58, 16, 4357, 1438, 28, 87, 58, 17, 465...
2.42953
149
import os import numpy as np import monai import math import torch import glob from skimage.morphology import remove_small_holes, remove_small_objects from monai.transforms import ( LoadImaged, AddChanneld, Orientationd, Spacingd, ScaleIntensityRanged, SpatialPadd, RandAffined, RandCropB...
[ 11748, 28686, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 937, 1872, 198, 11748, 10688, 198, 11748, 28034, 198, 11748, 15095, 198, 6738, 1341, 9060, 13, 24503, 1435, 1330, 4781, 62, 17470, 62, 28439, 11, 4781, 62, 17470, 62, 48205, ...
2.198847
694
import json import pytest from unittest import TestCase from rest_framework.test import APIClient from ..models import Group, Prediction
[ 11748, 33918, 198, 11748, 12972, 9288, 198, 198, 6738, 555, 715, 395, 1330, 6208, 20448, 198, 6738, 1334, 62, 30604, 13, 9288, 1330, 3486, 2149, 75, 1153, 198, 6738, 11485, 27530, 1330, 4912, 11, 46690, 628, 198 ]
3.783784
37
import stringdist def levenshtein(stru1, stru2): """ Measures the Levenshtein distance between two strings Parameters --------------- stru1 First string stru2 Second string Returns --------------- levens_dist Levenshtein distance """ return stringd...
[ 11748, 4731, 17080, 628, 198, 4299, 443, 574, 1477, 22006, 7, 19554, 16, 11, 2874, 17, 2599, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 45040, 262, 1004, 574, 1477, 22006, 5253, 1022, 734, 13042, 628, 220, 220, 220, 40117, 198, ...
2.562044
137
"""Specification for the RoboMaker delete. simulation application component.""" # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless require...
[ 37811, 22882, 2649, 329, 262, 39702, 48890, 12233, 13, 18640, 3586, 7515, 526, 15931, 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...
2.98
650
DOWNLOADS_PER_DATASET = ''' /* VER 1.2 used for total downloads from 2016-08-01 which is used to sort datasets by "most downloads" for the "XXX downloads" counter on /search and on each individual dataset gets all download events and counts occurrences of unique combinations of user, resource, and dataset, and day, t...
[ 41925, 35613, 50, 62, 18973, 62, 35, 1404, 1921, 2767, 796, 705, 7061, 198, 15211, 33310, 352, 13, 17, 198, 198, 1484, 329, 2472, 21333, 422, 1584, 12, 2919, 12, 486, 543, 318, 973, 284, 3297, 40522, 416, 366, 1712, 21333, 1, 329, ...
2.955253
2,570
""" Profile ../profile-datasets-py/div83/077.py file automaticaly created by prof_gen.py script """ self["ID"] = "../profile-datasets-py/div83/077.py" self["Q"] = numpy.array([ 3.01408100e+00, 3.40341800e+00, 3.94918400e+00, 4.08209300e+00, 4.65722800e+00, 5.59385900e+00, 5.9688...
[ 37811, 198, 220, 220, 220, 13118, 11485, 14, 13317, 12, 19608, 292, 1039, 12, 9078, 14, 7146, 5999, 14, 2998, 22, 13, 9078, 198, 220, 220, 220, 220, 220, 220, 220, 2393, 3557, 39056, 88, 2727, 416, 1534, 62, 5235, 13, 9078, 4226, ...
1.63417
8,165
#!/usr/bin/python import fnmatch import logging sflow_sub_database=[]
[ 2, 48443, 14629, 14, 8800, 14, 29412, 198, 11748, 24714, 15699, 198, 11748, 18931, 198, 198, 82, 11125, 62, 7266, 62, 48806, 28, 21737, 220, 198 ]
2.769231
26
""" A script to run XFaster for gcorr calculation. Called by iterate.py. """ import os import xfaster as xf import argparse as ap from configparser import ConfigParser # Change XFaster options here to suit your purposes opts = dict( likelihood=False, residual_fit=False, foreground_fit=False, # change o...
[ 37811, 198, 32, 4226, 284, 1057, 1395, 37, 1603, 329, 308, 10215, 81, 17952, 13, 34099, 416, 11629, 378, 13, 9078, 13, 198, 37811, 198, 11748, 28686, 198, 11748, 2124, 69, 1603, 355, 2124, 69, 198, 11748, 1822, 29572, 355, 2471, 198, ...
2.344006
1,343
import unittest from src.examples.c_decisions.decisions import is_letter_consonant, logical_op_precedence, num_is_not_in_range_or, number_is_in_range_and, test_config from src.examples.c_decisions.decisions import get_letter_grade from src.examples.c_decisions.decisions import logical_op_precedence from src.examples.c...
[ 11748, 555, 715, 395, 198, 198, 6738, 12351, 13, 1069, 12629, 13, 66, 62, 12501, 3279, 13, 12501, 3279, 1330, 318, 62, 9291, 62, 5936, 261, 415, 11, 12219, 62, 404, 62, 3866, 771, 594, 11, 997, 62, 271, 62, 1662, 62, 259, 62, 95...
2.913386
127
from .client import MQTT_Client
[ 6738, 764, 16366, 1330, 337, 48, 15751, 62, 11792, 198 ]
3.2
10
# 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, software # distributed under the...
[ 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 2, 345, 743, 407, 779, 428, 2393, 2845, 287, 11846, 351, 262, 13789, 13, 198, 2, 921, 743, 7330, 257, 4866, 286, 262, 13789, 379, 198, 2,...
1.989873
7,801
from mezzanine.conf import register_setting register_setting( name="PAGEDOWN_SERVER_SIDE_PREVIEW", description="Render previews on the server using the same " "converter that generates the actual pages.", editable=False, default=False, ) register_setting( name="PAGEDOWN_MARKDOWN_E...
[ 6738, 502, 3019, 272, 500, 13, 10414, 1330, 7881, 62, 33990, 628, 198, 30238, 62, 33990, 7, 198, 220, 220, 220, 1438, 2625, 4537, 38, 1961, 14165, 62, 35009, 5959, 62, 50, 14114, 62, 46437, 28206, 1600, 198, 220, 220, 220, 6764, 262...
2.828025
157
""" --- Day 5: Hydrothermal Venture --- You come across a field of hydrothermal vents on the ocean floor! These vents constantly produce large, opaque clouds, so it would be best to avoid them if possible. They tend to form in lines; the submarine helpfully produces a list of nearby lines of vents (your puzzle input)...
[ 37811, 198, 6329, 3596, 642, 25, 32116, 490, 7617, 35686, 11420, 198, 198, 1639, 1282, 1973, 257, 2214, 286, 17173, 490, 7617, 42777, 319, 262, 9151, 4314, 0, 2312, 42777, 7558, 4439, 198, 11664, 11, 32191, 15114, 11, 523, 340, 561, 3...
2.91942
1,241
from typing import Callable tests = [ ( ([4, 2, 5, 7],), [4, 5, 2, 7], ), ( ([2, 3],), [2, 3], ), ( ([2, 3, 1, 1, 4, 0, 0, 4, 3, 3],), [2, 3, 4, 1, 4, 3, 0, 1, 0, 3], ), ]
[ 6738, 19720, 1330, 4889, 540, 628, 198, 198, 41989, 796, 685, 198, 220, 220, 220, 357, 198, 220, 220, 220, 220, 220, 220, 220, 29565, 19, 11, 362, 11, 642, 11, 767, 4357, 828, 198, 220, 220, 220, 220, 220, 220, 220, 685, 19, 11,...
1.50303
165
from flask_sqlalchemy import SQLAlchemy # Initialize the Flask-SQLAlchemy extension instance db = SQLAlchemy()
[ 6738, 42903, 62, 25410, 282, 26599, 1330, 16363, 2348, 26599, 198, 198, 2, 20768, 1096, 262, 46947, 12, 17861, 2348, 26599, 7552, 4554, 198, 9945, 796, 16363, 2348, 26599, 3419, 198 ]
3.612903
31
import re UNITS_XML_FILE = 'poscUnits22.xml' UNITS_PICKLE_FILE = 'units.pickle' OUTPUT_DECIMALS = 6 SOURCE_PATTERN = r'^(?P<quantity>.*[\d.]+)\s*(?P<from>[^\d\s]([^\s]*|.+?))' SOURCE_RE = re.compile(SOURCE_PATTERN + '$', re.IGNORECASE | re.VERBOSE) FULL_PATTERN = r'(\s+as|\s+to|\s+in|\s*>|\s*=)\s(?P<to>[^\d\s][^\s...
[ 11748, 302, 198, 198, 4944, 29722, 62, 55, 5805, 62, 25664, 796, 705, 1930, 66, 3118, 896, 1828, 13, 19875, 6, 198, 4944, 29722, 62, 47, 11860, 2538, 62, 25664, 796, 705, 41667, 13, 27729, 293, 6, 198, 198, 2606, 7250, 3843, 62, 4...
2.073108
1,956
print('----- or -----') RetT() or RetF() RetF() or RetT() # print('----- and -----') RetT() and RetF() # RetF() and RetT() # print('----- not -----') print(not True and True) print(False or not True) print(not True == True) #print(True == not True) #SyntaxError: invalid syntax print(True == (not True))
[ 198, 4798, 10786, 30934, 393, 37404, 11537, 198, 9781, 51, 3419, 393, 4990, 37, 3419, 198, 9781, 37, 3419, 393, 4990, 51, 3419, 1303, 198, 198, 4798, 10786, 30934, 290, 37404, 11537, 198, 9781, 51, 3419, 290, 4990, 37, 3419, 1303, 198...
2.842593
108
from enum import Enum from pathlib import Path import click from mbox.click import EnumChoice, ParsedDate, PathParam
[ 6738, 33829, 1330, 2039, 388, 198, 6738, 3108, 8019, 1330, 10644, 198, 198, 11748, 3904, 198, 198, 6738, 285, 3524, 13, 12976, 1330, 2039, 388, 46770, 11, 23042, 276, 10430, 11, 10644, 22973, 628, 628, 198 ]
3.416667
36
import math import matplotlib.pyplot as plt import json import os import warnings warnings.filterwarnings("ignore") if __name__ == "__main__": plotPBT('/home/kreitnerl/mrs-gan/ray_results/test_feat/')
[ 11748, 10688, 198, 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 198, 11748, 33918, 198, 11748, 28686, 198, 11748, 14601, 198, 40539, 654, 13, 24455, 40539, 654, 7203, 46430, 4943, 198, 198, 361, 11593, 3672, 834, 6624, 366, ...
2.710526
76
import agenda23 agenda23.le('Agenda.txt') while True: opcao = agenda23.menu() if opcao == 0: break elif opcao == 1: agenda23.novo() elif opcao == 2: agenda23.altera() elif opcao == 3: agenda23.apaga() elif opcao == 4: agenda23.lista() elif opcao == 5:...
[ 11748, 8666, 1954, 198, 198, 363, 7438, 1954, 13, 293, 10786, 10262, 7438, 13, 14116, 11537, 198, 4514, 6407, 25, 198, 220, 220, 220, 1034, 66, 5488, 796, 8666, 1954, 13, 26272, 3419, 198, 220, 220, 220, 611, 1034, 66, 5488, 6624, 6...
1.857143
266
try: import os import pkg_resources # part of setuptools __version__ = pkg_resources.get_distribution(os.path.dirname(__file__)).version except: pass from .qualtrics import *
[ 28311, 25, 198, 220, 220, 220, 1330, 28686, 198, 220, 220, 220, 1330, 279, 10025, 62, 37540, 220, 1303, 636, 286, 900, 37623, 10141, 198, 220, 220, 220, 11593, 9641, 834, 796, 279, 10025, 62, 37540, 13, 1136, 62, 17080, 3890, 7, 418...
2.704225
71
from django.apps import AppConfig
[ 6738, 42625, 14208, 13, 18211, 1330, 2034, 16934, 201, 198, 201, 198 ]
3.083333
12
import time import requests import xml.dom.minidom from lxml import etree from django.shortcuts import render from django.http import HttpResponse from django.contrib import messages from django.core.urlresolvers import reverse_lazy from django.views.generic import ListView, DetailView from django.views.generic.edit im...
[ 11748, 640, 198, 11748, 7007, 198, 11748, 35555, 13, 3438, 13, 1084, 312, 296, 198, 6738, 300, 19875, 1330, 2123, 631, 198, 6738, 42625, 14208, 13, 19509, 23779, 1330, 8543, 198, 6738, 42625, 14208, 13, 4023, 1330, 367, 29281, 31077, 19...
3.079449
944
from amlb.utils import call_script_in_same_dir
[ 6738, 716, 23160, 13, 26791, 1330, 869, 62, 12048, 62, 259, 62, 31642, 62, 15908, 628, 198 ]
2.882353
17
from itunes_app_scraper.util import AppStoreException, AppStoreCollections, AppStoreCategories, AppStoreUtils import json import pytest import os
[ 6738, 340, 4015, 62, 1324, 62, 1416, 38545, 13, 22602, 1330, 2034, 22658, 16922, 11, 2034, 22658, 5216, 26448, 11, 2034, 22658, 34, 26129, 11, 2034, 22658, 18274, 4487, 198, 198, 11748, 33918, 198, 11748, 12972, 9288, 198, 11748, 28686 ]
3.65
40
from .record import Record
[ 198, 6738, 764, 22105, 1330, 13266, 628, 628, 198 ]
3.555556
9
from __future__ import print_function from bingads.service_client import _CAMPAIGN_OBJECT_FACTORY_V13 from bingads.v13.internal.bulk.string_table import _StringTable from bingads.v13.internal.bulk.entities.single_record_bulk_entity import _SingleRecordBulkEntity from bingads.v13.internal.bulk.mappings import _SimpleBul...
[ 6738, 11593, 37443, 834, 1330, 3601, 62, 8818, 198, 6738, 275, 278, 5643, 13, 15271, 62, 16366, 1330, 4808, 34, 2390, 4537, 16284, 62, 9864, 23680, 62, 37, 10659, 15513, 62, 53, 1485, 198, 6738, 275, 278, 5643, 13, 85, 1485, 13, 325...
3.008
125
""" Tests for the LTI outcome service handlers, both in outcomes.py and in tasks.py """ from unittest.mock import MagicMock, patch import ddt from django.test import TestCase from opaque_keys.edx.locator import BlockUsageLocator, CourseLocator import lms.djangoapps.lti_provider.tasks as tasks from common.djangoapps...
[ 37811, 198, 51, 3558, 329, 262, 406, 25621, 8055, 2139, 32847, 11, 1111, 287, 10906, 13, 9078, 290, 287, 8861, 13, 9078, 198, 37811, 628, 198, 6738, 555, 715, 395, 13, 76, 735, 1330, 6139, 44, 735, 11, 8529, 198, 198, 11748, 288, ...
3.262411
141
from loser_agent import * if __name__ == '__main__': main()
[ 6738, 30256, 62, 25781, 1330, 1635, 628, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 198, 220, 220, 220, 1388, 3419, 198 ]
2.64
25
from .base.api_handler import APIBaseHandler
[ 6738, 764, 8692, 13, 15042, 62, 30281, 1330, 7824, 14881, 25060, 628 ]
3.833333
12
import random if __name__ == '__main__': main()
[ 11748, 4738, 628, 198, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 198, 220, 220, 220, 1388, 3419, 198 ]
2.5
22
# Problem Reduction: variation of n-th staircase with n = [1, 2] steps. # Approach: We generate a bottom up DP table. # The tricky part is handling the corner cases (e.g. s = "30"). # Most elegant way to deal with those error/corner cases, is to allocate an extra space, dp[0]. # Let dp[ i ] = the number of ways to ...
[ 2, 20647, 33396, 25, 12291, 286, 299, 12, 400, 27656, 351, 299, 796, 685, 16, 11, 362, 60, 4831, 13, 198, 198, 2, 38066, 25, 775, 7716, 257, 4220, 510, 27704, 3084, 13, 198, 198, 2, 383, 17198, 636, 318, 9041, 262, 5228, 2663, 3...
2.722727
220
""" Tile svs/scn files Created on 11/01/2018 @author: RH """ import time import matplotlib import os import shutil import pandas as pd matplotlib.use('Agg') import Slicer import staintools import re # Get all images in the root directory # cut; each level is 2 times difference (20x, 10x, 5x) # Run as main if _...
[ 37811, 198, 35103, 264, 14259, 14, 1416, 77, 3696, 198, 198, 41972, 319, 1367, 14, 486, 14, 7908, 198, 198, 31, 9800, 25, 35662, 198, 37811, 198, 198, 11748, 640, 198, 11748, 2603, 29487, 8019, 198, 11748, 28686, 198, 11748, 4423, 346...
2.614907
161
from __future__ import division import numpy as np import matplotlib.pyplot as plt m = 4 b = -.2 bl = -.1 br = -.1 sh = .13 from visualizations import show_bboxes
[ 6738, 11593, 37443, 834, 1330, 7297, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 198, 198, 76, 796, 604, 198, 65, 796, 532, 13, 17, 198, 2436, 796, 532, 13, 16, 198, 1671, 796, ...
2.677419
62
# # PySNMP MIB module DPS-MIB-V38 (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/DPS-MIB-V38 # Produced by pysmi-0.3.4 at Mon Apr 29 18:39:21 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar 27 2019, 0...
[ 2, 198, 2, 9485, 15571, 7378, 337, 9865, 8265, 25366, 12, 8895, 33, 12, 53, 2548, 357, 4023, 1378, 16184, 76, 489, 8937, 13, 785, 14, 79, 893, 11632, 8, 198, 2, 7054, 45, 13, 16, 2723, 2393, 1378, 14, 14490, 14, 67, 615, 47562, ...
2.293396
9,131
import numpy as np
[ 11748, 299, 32152, 355, 45941, 198 ]
3.166667
6
import time from smqtk.utils import SmqtkObject
[ 11748, 640, 198, 198, 6738, 895, 80, 30488, 13, 26791, 1330, 2439, 80, 30488, 10267, 628 ]
3.125
16
arr = ['', 'Rolien', 'Naej', 'Elehcim', 'Odranoel'] n = int(input()) while n != 0: n -= 1 k = int(input()) while k != 0: k -= 1 num = int(input()) print(arr[num])
[ 3258, 796, 37250, 3256, 705, 49, 349, 2013, 3256, 705, 45, 3609, 73, 3256, 705, 28827, 71, 66, 320, 3256, 705, 46, 67, 35823, 417, 20520, 201, 198, 77, 796, 493, 7, 15414, 28955, 201, 198, 4514, 299, 14512, 657, 25, 201, 198, 220,...
1.839286
112
import socket, time, sys import argparse __version__="0.1" min_port=0 #max_port=65535 max_port=10000 parser = argparse.ArgumentParser(description="a simple python port scanner",epilog="author: blackc8") parser.add_argument("hostname",metavar="<hostname>",help="host to scan") parser.add_argument("-dp","--ddport",help=...
[ 11748, 17802, 11, 640, 11, 25064, 198, 11748, 1822, 29572, 198, 198, 834, 9641, 834, 2625, 15, 13, 16, 1, 198, 1084, 62, 634, 28, 15, 198, 2, 9806, 62, 634, 28, 35916, 2327, 198, 9806, 62, 634, 28, 49388, 198, 198, 48610, 796, 1...
2.903346
269
# -*- coding: utf-8 -*- """ Created on Mon Sep 16 20:15:55 2019 @author: Shinelon """ import numpy as np import pandas as pd import matplotlib.pyplot as plt path='ex2data1.txt' data=pd.read_csv(path,header=None,names=['Exam1','Exam2','Admitted']) data.head() # positive=data[data['Admitted'].isin([1])] negative=data[d...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 198, 41972, 319, 2892, 8621, 1467, 1160, 25, 1314, 25, 2816, 13130, 198, 198, 31, 9800, 25, 11466, 417, 261, 198, 37811, 198, 11748, 299, 32152, 355, 45941, 198, ...
2.076132
1,458
# Generated by Django 2.1.9 on 2019-09-01 09:10 from django.conf import settings from django.db import migrations, models import django.db.models.deletion
[ 2, 2980, 515, 416, 37770, 362, 13, 16, 13, 24, 319, 13130, 12, 2931, 12, 486, 7769, 25, 940, 198, 198, 6738, 42625, 14208, 13, 10414, 1330, 6460, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 11, 4981, 198, 11748, 42625, 1420...
3.019231
52
# Code from Chapter 5 of Machine Learning: An Algorithmic Perspective (2nd Edition) # by Stephen Marsland (http://stephenmonika.net) # You are free to use, change, or redistribute the code in any way you wish for # non-commercial purposes, but please maintain the name of the original author. # This code comes with no...
[ 198, 2, 6127, 422, 7006, 642, 286, 10850, 18252, 25, 1052, 978, 7727, 9383, 42051, 357, 17, 358, 5061, 8, 198, 2, 416, 7970, 8706, 1044, 357, 4023, 1378, 9662, 831, 2144, 9232, 13, 3262, 8, 198, 198, 2, 921, 389, 1479, 284, 779, ...
3.684211
114
#!/usr/bin/env python3 """ Gradients for inner product. """ import tensorflow as tf from tensorflow.python.framework import ops from tensorflow.python.ops import array_ops from tensorflow.python.ops import sparse_ops correlation_grad_module = tf.load_op_library('./build/libcorrelation_grad.so')
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 37811, 198, 42731, 2334, 329, 8434, 1720, 13, 198, 37811, 198, 220, 198, 11748, 11192, 273, 11125, 355, 48700, 198, 6738, 11192, 273, 11125, 13, 29412, 13, 30604, 1330, 39628, 198, ...
3.136842
95
from ._scorer import make_ts_scorer from ._scorer import get_scorer __all__ = [ "get_scorer", "make_ts_scorer", ]
[ 6738, 47540, 1416, 11934, 1330, 787, 62, 912, 62, 1416, 11934, 198, 6738, 47540, 1416, 11934, 1330, 651, 62, 1416, 11934, 198, 198, 834, 439, 834, 796, 685, 198, 220, 220, 220, 366, 1136, 62, 1416, 11934, 1600, 198, 220, 220, 220, 3...
2.320755
53
# This file is part of sner4 project governed by MIT license, see the LICENSE.txt file. """ auth.views.user selenium tests """ from flask import url_for from selenium.webdriver.common.by import By from selenium.webdriver.support import expected_conditions as EC from sner.server.auth.models import User from sner.serve...
[ 2, 770, 2393, 318, 636, 286, 264, 1008, 19, 1628, 21825, 416, 17168, 5964, 11, 766, 262, 38559, 24290, 13, 14116, 2393, 13, 198, 37811, 198, 18439, 13, 33571, 13, 7220, 384, 11925, 1505, 5254, 198, 37811, 198, 198, 6738, 42903, 1330, ...
2.669231
1,040
# -*- coding: utf-8 -*- from .box import indent from .box import read_box
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 201, 198, 6738, 764, 3524, 1330, 33793, 201, 198, 6738, 764, 3524, 1330, 1100, 62, 3524, 201, 198, 201, 198 ]
2.393939
33
Python 3.4.1 (v3.4.1:c0e311e010fc, May 18 2014, 10:38:22) [MSC v.1600 32 bit (Intel)] on win32 Type "copyright", "credits" or "license()" for more information. >>> ================================ RESTART ================================ >>> >>> ================================ RESTART ================================...
[ 37906, 513, 13, 19, 13, 16, 357, 85, 18, 13, 19, 13, 16, 25, 66, 15, 68, 36244, 68, 20943, 16072, 11, 1737, 1248, 1946, 11, 838, 25, 2548, 25, 1828, 8, 685, 5653, 34, 410, 13, 36150, 3933, 1643, 357, 24123, 15437, 319, 1592, 2...
3.548742
636
#!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import (division, absolute_import, print_function, unicode_literals) from glob import glob import logging import os from os.path import abspath, dirname, normpath import re from shutil import rmtree import sqlite3 import sys import ...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 6738, 11593, 37443, 834, 1330, 357, 21426, 11, 4112, 62, 11748, 11, 3601, 62, 8818, 11, 198, 220, 220, 220, 220,...
2.229607
1,655
# -*- coding: utf-8 -*- from __future__ import unicode_literals TIPO = 'selectable' # 'basic' or 'selectable'. 'basic': necesario para el funcionamiento del programa # 'selectable': No necesario. Aade nuevas funcionalidades al programa # Por ejemplo autenticar es 'basic', pero actas es pres...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 6738, 11593, 37443, 834, 1330, 28000, 1098, 62, 17201, 874, 198, 198, 51, 4061, 46, 796, 705, 19738, 540, 6, 220, 1303, 705, 35487, 6, 393, 705, 19738, 540, 4458, 220,...
1.855538
1,869
import os import cv2 import fire import time import numpy as np import torch import torch.backends.cudnn as cudnn import torch.nn.functional as F from configs.common import config as cfg from hawkdet.models.build import build_detor from hawkdet.lib.numpy_nms import np_nms from hawkdet.lib.box_utils import decode, dec...
[ 11748, 28686, 198, 11748, 269, 85, 17, 198, 11748, 2046, 198, 11748, 640, 198, 11748, 299, 32152, 355, 45941, 198, 198, 11748, 28034, 198, 11748, 28034, 13, 1891, 2412, 13, 66, 463, 20471, 355, 269, 463, 20471, 198, 11748, 28034, 13, ...
2.847134
157
name="zhuiyue" num="123456" num=111 num3=333 str="keep going" num4=666 num5=888 num5=777 num6=999
[ 3672, 2625, 89, 13415, 7745, 518, 1, 198, 22510, 2625, 10163, 29228, 1, 198, 22510, 28, 16243, 198, 22510, 18, 28, 20370, 198, 2536, 2625, 14894, 1016, 1, 198, 22510, 19, 28, 27310, 198, 198, 22510, 20, 28, 28011, 198, 22510, 20, 28...
1.980392
51
from keydra.clients.contentful import ContentfulClient from keydra.providers.base import BaseProvider from keydra.providers.base import exponential_backoff_retry from keydra.exceptions import DistributionException from keydra.exceptions import RotationException from keydra.logging import get_logger LOGGER = get_log...
[ 6738, 1994, 32491, 13, 565, 2334, 13, 11299, 913, 1330, 14041, 913, 11792, 198, 198, 6738, 1994, 32491, 13, 15234, 4157, 13, 8692, 1330, 7308, 29495, 198, 6738, 1994, 32491, 13, 15234, 4157, 13, 8692, 1330, 39682, 62, 1891, 2364, 62, ...
3.515152
99
# Generated by Django 2.2.13 on 2021-02-11 13:07 from django.db import migrations, models import django.db.models.deletion
[ 2, 2980, 515, 416, 37770, 362, 13, 17, 13, 1485, 319, 33448, 12, 2999, 12, 1157, 1511, 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.818182
44
from requests import Session from requests.adapters import HTTPAdapter from urllib3 import Retry from sahyun_bot.utils_logging import HttpDump DEFAULT_RETRY_COUNT = 3 RETRY_ON_METHOD = frozenset([ 'HEAD', 'GET', 'POST', 'PUT', 'DELETE', 'OPTIONS', 'TRACE' ]) RETRY_ON_STATUS = frozenset([ 403, 429, 500, 502,...
[ 6738, 7007, 1330, 23575, 198, 6738, 7007, 13, 324, 12126, 1330, 14626, 47307, 198, 6738, 2956, 297, 571, 18, 1330, 4990, 563, 198, 198, 6738, 473, 12114, 403, 62, 13645, 13, 26791, 62, 6404, 2667, 1330, 367, 29281, 35, 931, 198, 198, ...
2.589147
129
import json import requests from datetime import datetime, timedelta from BookCirculation import BookCirculation from DAO.AbstractDAO import AbstractDAO from DAO.BookDAO import BookDAO from DAO.UserDAO import UserDAO from constant import * from datetime import datetime if __name__ == "__main__": bookCirculationDAO...
[ 11748, 33918, 198, 11748, 7007, 198, 6738, 4818, 8079, 1330, 4818, 8079, 11, 28805, 12514, 198, 6738, 4897, 31560, 1741, 1330, 4897, 31560, 1741, 198, 6738, 17051, 46, 13, 23839, 5631, 46, 1330, 27741, 5631, 46, 198, 6738, 17051, 46, 13...
3.300752
133
#!/usr/bin/env python # -*- coding: utf-8 -*- # Common Python library imports import os # Pip package imports from six.moves.urllib.parse import urljoin from flask import url_for, request, abort from werkzeug import secure_filename, FileStorage, cached_property # Internal package imports from flask_mm.utils import...
[ 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, 8070, 11361, 5888, 17944, 198, 11748, 28686, 198, 198, 2, 25149, 5301, 17944, 198, 6738, 2237, 13, 76, 5241, ...
3.266187
139
from functools import partial from marshmallow import ValidationError from web.extensions import db from .validators import validate_user_token from .serializers import SuperUserSchema from .exceptions import InvalidUsage from .user import SuperUser def delete_superuser(id, created_at_timestamp): """ Delete ...
[ 6738, 1257, 310, 10141, 1330, 13027, 198, 6738, 22397, 42725, 1330, 3254, 24765, 12331, 198, 6738, 3992, 13, 2302, 5736, 1330, 20613, 198, 6738, 764, 12102, 2024, 1330, 26571, 62, 7220, 62, 30001, 198, 6738, 764, 46911, 11341, 1330, 3115,...
3.214286
196
''' Registers auxillary encodings in the codecs module. >>> 'x\x9cK\xc9L/N\xaa\x04\x00\x08\x9d\x02\x83'.decode('zip') 'digsby' ''' from peak.util.imports import lazyModule sys = lazyModule('sys') warnings = lazyModule('warnings') locale = lazyModule('locale') collections = lazyM...
[ 7061, 6, 201, 198, 8081, 6223, 27506, 15856, 2207, 375, 654, 287, 262, 40481, 82, 8265, 13, 201, 198, 201, 198, 33409, 705, 87, 59, 87, 24, 66, 42, 59, 25306, 24, 43, 14, 45, 59, 87, 7252, 59, 87, 3023, 59, 87, 405, 59, 87, ...
2.161846
1,798
from ._factor_base import FactorBase from ._factor_stack import FactorStack from ._stacked_factor_graph import StackedFactorGraph from ._storage_metadata import StorageMetadata from ._variable_assignments import VariableAssignments from ._variables import RealVectorVariable, VariableBase __all__ = [ "FactorStack",...
[ 6738, 47540, 31412, 62, 8692, 1330, 27929, 14881, 198, 6738, 47540, 31412, 62, 25558, 1330, 27929, 25896, 198, 6738, 47540, 301, 6021, 62, 31412, 62, 34960, 1330, 520, 6021, 41384, 37065, 198, 6738, 47540, 35350, 62, 38993, 1330, 20514, 9...
3.355072
138
# coding=utf-8 import cyfib
[ 2, 19617, 28, 40477, 12, 23, 198, 11748, 3075, 69, 571, 628 ]
2.416667
12
#!/usr/bin/env python3 from http.server import SimpleHTTPRequestHandler, HTTPServer from urllib.parse import parse_qs import time if __name__ == "__main__": from sys import argv if len(argv) == 3: run(port = int(argv[1]), hostName = str(argv[2])) elif len(argv) == 2: run(port = int(argv[1])) else: run()
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 198, 6738, 2638, 13, 15388, 1330, 17427, 40717, 18453, 25060, 11, 38288, 18497, 198, 6738, 2956, 297, 571, 13, 29572, 1330, 21136, 62, 48382, 198, 11748, 640, 198, 198, 361, 11593, ...
2.465116
129
import os from datetime import datetime, timedelta from airflow import DAG from airflow.operators.docker_operator import DockerOperator from docker.types import Mount default_args = { "owner": "airflow", "description": "Use of the DockerOperator", "depend_on_past": False, "start_date": datetime(2021, ...
[ 11748, 28686, 198, 6738, 4818, 8079, 1330, 4818, 8079, 11, 28805, 12514, 198, 198, 6738, 45771, 1330, 360, 4760, 198, 6738, 45771, 13, 3575, 2024, 13, 45986, 62, 46616, 1330, 25716, 18843, 1352, 198, 6738, 36253, 13, 19199, 1330, 5628, ...
2.254019
2,177
from django.http import JsonResponse from django.http import HttpResponse from rest_framework.views import APIView from .store_population import StorePopulation import time as processTiming import uuid # API to fetch Ireland population used by frontend. The result consist of population estimate and year. # API to fet...
[ 6738, 42625, 14208, 13, 4023, 1330, 449, 1559, 31077, 198, 6738, 42625, 14208, 13, 4023, 1330, 367, 29281, 31077, 198, 6738, 1334, 62, 30604, 13, 33571, 1330, 3486, 3824, 769, 198, 6738, 764, 8095, 62, 39748, 1330, 9363, 45251, 198, 117...
4.361702
94
# -*- coding: utf-8 -*- """ This script shows how to embed the animation into a background image (it's also possible to embed the animation into another animation, but that's too complicated to implement in a simple program ...) """ from colorsys import hls_to_rgb import gifmaze as gm from gifmaze.algorithms import wil...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 198, 1212, 4226, 2523, 703, 284, 11525, 262, 11034, 656, 257, 198, 25249, 2939, 357, 270, 338, 635, 1744, 284, 11525, 262, 11034, 198, 20424, 1194, 11034, 11, 475...
2.839866
893