content
stringlengths
1
1.05M
input_ids
listlengths
1
883k
ratio_char_token
float64
1
22.9
token_count
int64
1
883k
from ..base.base_results_connector import BaseResultsConnector import json from .....utils.error_response import ErrorResponder
[ 6738, 11485, 8692, 13, 8692, 62, 43420, 62, 8443, 273, 1330, 7308, 25468, 34525, 198, 11748, 33918, 198, 6738, 11485, 986, 26791, 13, 18224, 62, 26209, 1330, 13047, 19309, 8623, 628 ]
4.16129
31
import sys from churn_calc import ChurnCalculator def main(): ''' Creates churn calculator and runs the statistics and correlation functions. The schema name is taken from the first command line argument. The dataset and all other parameters are then taken from the schema configuration. :return: ...
[ 11748, 25064, 198, 198, 6738, 28488, 62, 9948, 66, 1330, 609, 700, 9771, 3129, 1352, 628, 198, 4299, 1388, 33529, 198, 220, 220, 220, 705, 7061, 198, 220, 220, 220, 7921, 274, 28488, 28260, 290, 4539, 262, 7869, 290, 16096, 5499, 13, ...
2.560714
280
"""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 License i...
[ 37811, 26656, 15385, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 5832, 743, 407, 779, 428, 2393, 2845, 287, 11846, 351, 262, 13789, 13, 198, 1639, 743, 7330, 257, 4866, 286, 262, 13789, 379, 628,...
3.771084
166
import traceback if __name__ == "__main__": try: import geometry_msgs.msg # noqa import rospy # noqa import std_msgs.msg # noqa import visualization_msgs.msg # noqa try: import rospkg # noqa import tf2_geometry_msgs # noqa import t...
[ 11748, 12854, 1891, 198, 198, 361, 11593, 3672, 834, 6624, 366, 834, 12417, 834, 1298, 628, 220, 220, 220, 1949, 25, 198, 220, 220, 220, 220, 220, 220, 220, 1330, 22939, 62, 907, 14542, 13, 19662, 220, 1303, 645, 20402, 198, 220, 22...
2.125
424
from __future__ import absolute_import, division, print_function from six.moves import range from scitbx.array_family import flex page_origin = (20.,220.) boxedge = 500. from reportlab.pdfgen.canvas import Canvas from reportlab.lib.pagesizes import letter from reportlab.lib.units import cm,mm if __name__=="__main__...
[ 6738, 11593, 37443, 834, 1330, 4112, 62, 11748, 11, 7297, 11, 3601, 62, 8818, 198, 6738, 2237, 13, 76, 5241, 1330, 2837, 198, 6738, 629, 270, 65, 87, 13, 18747, 62, 17989, 1330, 7059, 198, 7700, 62, 47103, 796, 357, 1238, 1539, 1757...
2.545455
330
x,y=map(int,input().split(" ")) count=0 for i in range(0,1000): if(x*y==i*i): count+=1 if(count==1): print("yes") else: print("no")
[ 87, 11, 88, 28, 8899, 7, 600, 11, 15414, 22446, 35312, 7203, 366, 4008, 198, 9127, 28, 15, 198, 1640, 1312, 287, 2837, 7, 15, 11, 12825, 2599, 198, 220, 220, 611, 7, 87, 9, 88, 855, 72, 9, 72, 2599, 198, 220, 220, 220, 220, ...
1.791209
91
from rediscluster import RedisCluster rc = RedisCluster( host='clustercfg.cfg-endpoint-name.aq25ta.euw1.cache.amazonaws.com', port=6379, password='password_is_protected', skip_full_coverage_check=True, # Bypass Redis CONFIG call to elasticache decode_responses=True, # decode_responses mu...
[ 6738, 2266, 271, 565, 5819, 1330, 2297, 271, 2601, 5819, 198, 198, 6015, 796, 2297, 271, 2601, 5819, 7, 198, 220, 220, 220, 2583, 11639, 565, 436, 2798, 40616, 13, 37581, 12, 437, 4122, 12, 3672, 13, 30188, 1495, 8326, 13, 12496, 86...
2.361011
277
""" This module contains the definition of the DefaultSampler. """ import logging from typing import Iterable from lemonspotter.core.parameter import Direction from lemonspotter.core.sampler import Sampler from lemonspotter.core.variable import Variable from lemonspotter.core.function import Function from lemonspotte...
[ 37811, 198, 1212, 8265, 4909, 262, 6770, 286, 262, 15161, 16305, 20053, 13, 198, 37811, 198, 198, 11748, 18931, 198, 6738, 19720, 1330, 40806, 540, 198, 198, 6738, 443, 11567, 13059, 353, 13, 7295, 13, 17143, 2357, 1330, 41837, 198, 673...
3.923077
91
''' main.py Created by JO HYUK JUN on 2021 Copyright 2021 JO HYUK JUN. All rights reserved. '''
[ 7061, 6, 628, 220, 220, 220, 1388, 13, 9078, 628, 220, 220, 220, 15622, 416, 32357, 43624, 15039, 449, 4944, 319, 33448, 198, 220, 220, 220, 15069, 220, 33448, 32357, 43624, 15039, 449, 4944, 13, 1439, 2489, 10395, 13, 198, 198, 7061,...
2.581395
43
# Exploit Title: TyranoScript 5.13b - Arbitrary Code Execution # Date: 27/03/2022 # Exploit Author: Satoki # Vendor Homepage: https://tyrano.jp/ # Software Link: https://github.com/ShikemokuMK/tyranoscript # # Version (Save Data ACE): # TyranoScriptV5 <= 5.04b # TyranoScript <= 4.83 # # Version (Development Data ...
[ 2, 5905, 30711, 11851, 25, 14319, 5733, 7391, 642, 13, 1485, 65, 532, 33619, 11619, 6127, 37497, 198, 2, 7536, 25, 2681, 14, 3070, 14, 1238, 1828, 198, 2, 5905, 30711, 6434, 25, 7031, 18228, 198, 2, 39896, 5995, 7700, 25, 3740, 1378...
2.359739
1,073
# -*- coding: UTF-8 -*- """(forms.py) Flask-Login Example: Login Form""" from flask_wtf import Form # import from flask_wtf, NOT wtforms from wtforms import StringField, PasswordField from wtforms.validators import InputRequired, Length # Define the LoginRorm class by sub-classing Form
[ 2, 532, 9, 12, 19617, 25, 41002, 12, 23, 532, 9, 12, 198, 15931, 18109, 23914, 13, 9078, 8, 46947, 12, 47790, 17934, 25, 23093, 5178, 37811, 198, 6738, 42903, 62, 86, 27110, 1330, 5178, 220, 1303, 1330, 422, 42903, 62, 86, 27110, ...
3.258427
89
from selenium import webdriver from selenium.webdriver.support.ui import WebDriverWait from selenium.webdriver.support import expected_conditions as EC from selenium.webdriver.common.keys import Keys from selenium.webdriver.common.by import By __author__='Pruthvi Kumar' # 30 June 2019. # pruthvikumar.123@gmail.com # L...
[ 6738, 384, 11925, 1505, 1330, 3992, 26230, 198, 6738, 384, 11925, 1505, 13, 12384, 26230, 13, 11284, 13, 9019, 1330, 5313, 32103, 21321, 198, 6738, 384, 11925, 1505, 13, 12384, 26230, 13, 11284, 1330, 2938, 62, 17561, 1756, 355, 13182, ...
3.504274
117
from .other import * from .acquisition import * from .filtration import * from .preprocessing import * from .recognition import * from .segmentation import * from .visualisation import *
[ 6738, 764, 847, 1330, 1635, 198, 6738, 764, 43561, 10027, 1330, 1635, 198, 6738, 764, 69, 36055, 1330, 1635, 198, 6738, 764, 3866, 36948, 1330, 1635, 198, 6738, 764, 26243, 653, 1330, 1635, 198, 6738, 764, 325, 5154, 341, 1330, 1635, ...
3.836735
49
from django.urls import path from . import views urlpatterns = [ path('bd', views.bdaffair, name="bd_api"), path('home', views.home_data, name='home_api'), path('cultural', views.cultural_insights, name='cultural_api'), path('sports', views.sports_insights, name='sports_api'), path('international',...
[ 6738, 42625, 14208, 13, 6371, 82, 1330, 3108, 198, 6738, 764, 1330, 5009, 198, 198, 6371, 33279, 82, 796, 685, 198, 220, 220, 220, 3108, 10786, 17457, 3256, 5009, 13, 17457, 2001, 958, 11, 1438, 2625, 17457, 62, 15042, 12340, 198, 220...
2.628289
608
import numpy as np from pathlib import Path import itertools from tqdm import tqdm from ..utils import get_imageset import matplotlib.pyplot as plt import cv2 import json from ..metrics.surface_dice import metrics as surface_distance from ..metrics.functional import calc_isolated_fp def detection_rate_confusio...
[ 11748, 299, 32152, 355, 45941, 198, 6738, 3108, 8019, 1330, 10644, 198, 11748, 340, 861, 10141, 198, 6738, 256, 80, 36020, 1330, 256, 80, 36020, 198, 6738, 11485, 26791, 1330, 651, 62, 17566, 316, 198, 11748, 2603, 29487, 8019, 13, 9078...
2.295676
2,151
# Example package with a console entry point
[ 2, 17934, 5301, 351, 257, 8624, 5726, 966, 628 ]
5.111111
9
""" Handler for the var action tag. """ # pylint: disable=too-few-public-methods,too-many-arguments,protected-access,unused-argument __author__ = "Brian Allen Vanderburg II" __copyright__ = "Copyright 2016-2019" __license__ = "Apache License 2.0" from . import ActionHandler, DefaultActionHandler from ..nodes import ...
[ 37811, 32412, 329, 262, 1401, 2223, 7621, 13, 37227, 198, 2, 279, 2645, 600, 25, 15560, 28, 18820, 12, 32146, 12, 11377, 12, 24396, 82, 11, 18820, 12, 21834, 12, 853, 2886, 11, 24326, 12, 15526, 11, 403, 1484, 12, 49140, 198, 198, ...
3.27907
129
import pytest from math import isclose import sys sys.path.append('/Users/pyann/Dropbox (CEDIA)/srd/Model') import srd from srd import quebec # I use https://cffp.recherche.usherbrooke.ca/outils-ressources/guide-mesures-fiscales/credit-impot-prolongation-carriere/ # since they don't seem to adjust for taxabl...
[ 11748, 12972, 9288, 201, 198, 6738, 10688, 1330, 318, 19836, 201, 198, 201, 198, 11748, 25064, 201, 198, 17597, 13, 6978, 13, 33295, 10786, 14, 14490, 14, 9078, 1236, 14, 26932, 3524, 357, 34, 1961, 3539, 20679, 82, 4372, 14, 17633, 1...
2.85034
147
# Type help("robolink") or help("robodk") for more information # Press F5 to run the script # Documentation: https://robodk.com/doc/en/RoboDK-API.html # Reference: https://robodk.com/doc/en/PythonAPI/index.html # Note: It is not required to keep a copy of this file, your python script is saved with the station from...
[ 2, 5994, 1037, 7203, 22609, 349, 676, 4943, 393, 1037, 7203, 22609, 375, 74, 4943, 329, 517, 1321, 198, 2, 4332, 376, 20, 284, 1057, 262, 4226, 198, 2, 43925, 25, 3740, 1378, 22609, 375, 74, 13, 785, 14, 15390, 14, 268, 14, 14350,...
2.54512
543
from game import Game g = Game() while g.running: g.curr_menu.display_menu() g.game_loop()
[ 6738, 983, 1330, 3776, 198, 198, 70, 796, 3776, 3419, 198, 198, 4514, 308, 13, 20270, 25, 198, 220, 220, 220, 308, 13, 22019, 81, 62, 26272, 13, 13812, 62, 26272, 3419, 198, 220, 220, 220, 308, 13, 6057, 62, 26268, 3419, 198 ]
2.348837
43
from ccdc import cassandra from pyspark.sql.types import ArrayType from pyspark.sql.types import ByteType from pyspark.sql.types import IntegerType from pyspark.sql.types import StructField from pyspark.sql.types import StructType def table(): """Cassandra table name""" return 'pixel' def schema(): """S...
[ 6738, 269, 10210, 66, 1330, 30606, 15918, 198, 6738, 279, 893, 20928, 13, 25410, 13, 19199, 1330, 15690, 6030, 198, 6738, 279, 893, 20928, 13, 25410, 13, 19199, 1330, 30589, 6030, 198, 6738, 279, 893, 20928, 13, 25410, 13, 19199, 1330, ...
2.362179
624
from PyQt5.QtWidgets import QMainWindow from ..ekmap_converter import eKConverter import re from qgis.core import QgsMessageLog
[ 6738, 9485, 48, 83, 20, 13, 48, 83, 54, 312, 11407, 1330, 1195, 13383, 27703, 198, 6738, 11485, 988, 8899, 62, 1102, 332, 353, 1330, 304, 42, 3103, 332, 353, 198, 11748, 302, 198, 6738, 10662, 70, 271, 13, 7295, 1330, 1195, 14542, ...
2.708333
48
# -*- coding: utf-8 -*- # coding by liuyunfei # 2020-4-12 import sys from PyQt5.QtWidgets import QApplication, QMainWindow, QMessageBox from PyQt5.QtCore import QThread, pyqtSignal, QDateTime, QObject, QMutexLocker, QMutex, QTimer from PyQt5.QtGui import QPixmap from PyQt5 import Qt, QtCore from PyQt5.QtCo...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 201, 198, 2, 19617, 416, 7649, 4669, 403, 5036, 72, 220, 201, 198, 2, 12131, 12, 19, 12, 1065, 201, 198, 201, 198, 201, 198, 11748, 25064, 201, 198, 6738, 9485, 48, 83, ...
2.117808
365
__author__ = 'talluri'
[ 834, 9800, 834, 796, 705, 35429, 9900, 6, 628, 198 ]
2.5
10
"""An implementation of an actor-critic model that is aimed at Atari games.""" import gym import numpy as np import tensorflow as tf import actorcritic.nn as nn from actorcritic.baselines import StateValueFunction from actorcritic.model import ActorCriticModel from actorcritic.policies import SoftmaxPolicy
[ 37811, 2025, 7822, 286, 281, 8674, 12, 22213, 291, 2746, 326, 318, 8998, 379, 35884, 1830, 526, 15931, 628, 198, 11748, 11550, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 11192, 273, 11125, 355, 48700, 198, 198, 11748, 8674, 22213, ...
3.714286
84
import pandas as pd import marcotti.models.club as mc import marcotti.models.common.enums as enums import marcotti.models.common.overview as mco import marcotti.models.common.personnel as mcp import marcotti.models.common.suppliers as mcs from .workflows import WorkflowBase class MarcottiStatsTransform(MarcottiTran...
[ 11748, 19798, 292, 355, 279, 67, 198, 198, 11748, 1667, 14612, 72, 13, 27530, 13, 18664, 355, 36650, 198, 11748, 1667, 14612, 72, 13, 27530, 13, 11321, 13, 268, 5700, 355, 551, 5700, 198, 11748, 1667, 14612, 72, 13, 27530, 13, 11321, ...
2.453763
465
import copy import numpy as np from compressible_tools import *
[ 11748, 4866, 198, 198, 11748, 299, 32152, 355, 45941, 198, 198, 6738, 27413, 856, 62, 31391, 1330, 1635 ]
3.611111
18
#!/usr/bin/env python3 # owoencode.py, a part of owoencoder # Made by Glitch, 2020 # https://www.glitchfur.net from sys import argv, stdout, stderr from os.path import exists, split from os import remove KEEP_ORIG = False STDOUT_FLAG = False if __name__ == "__main__": main()
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 198, 2, 12334, 6571, 8189, 13, 9078, 11, 257, 636, 286, 12334, 6571, 66, 12342, 198, 2, 14446, 416, 2671, 2007, 11, 12131, 198, 2, 3740, 1378, 2503, 13, 4743, 2007, 38916, 13, ...
2.679245
106
# Fix number of node predicates at 1 out of 6 # this ensures queries with larger space of possible nodes # The number of colors in a query is varied from 1 to 5 import argparse import numpy as np from graph_gen import birth_years, genders, num_posts, num_friends possibilities = [1, 3, 4, 5] # do not consider equaliy ...
[ 2, 13268, 1271, 286, 10139, 2747, 16856, 379, 352, 503, 286, 718, 198, 2, 428, 19047, 20743, 351, 4025, 2272, 286, 1744, 13760, 198, 2, 383, 1271, 286, 7577, 287, 257, 12405, 318, 15641, 422, 352, 284, 642, 198, 198, 11748, 1822, 29...
3.087248
149
from django import forms from multiplepagesproject.prodmodels import proddisplay
[ 6738, 42625, 14208, 1330, 5107, 201, 198, 6738, 3294, 31126, 16302, 13, 1676, 67, 27530, 1330, 386, 1860, 271, 1759, 201 ]
3.904762
21
import string from django.template import Context from django.template.loader import get_template from django import template register = template.Library() import crm # @register.filter # def render_related_communication_items(related_object): # ''' # Called by the CommunicationViewset # to render data...
[ 11748, 4731, 198, 6738, 42625, 14208, 13, 28243, 1330, 30532, 198, 6738, 42625, 14208, 13, 28243, 13, 29356, 1330, 651, 62, 28243, 198, 6738, 42625, 14208, 1330, 11055, 198, 198, 30238, 796, 11055, 13, 23377, 3419, 198, 198, 11748, 1067, ...
3.151659
211
# Copyright (c) 2017-present, Facebook, Inc. # All rights reserved. # # This source code is licensed under the license found in the LICENSE file in # the root directory of this source tree. An additional grant of patent rights # can be found in the PATENTS file in the same directory. import math import torch import to...
[ 2, 15069, 357, 66, 8, 2177, 12, 25579, 11, 3203, 11, 3457, 13, 198, 2, 1439, 2489, 10395, 13, 198, 2, 198, 2, 770, 2723, 2438, 318, 11971, 739, 262, 5964, 1043, 287, 262, 38559, 24290, 2393, 287, 198, 2, 262, 6808, 8619, 286, 42...
3.916667
108
from django.db import models
[ 6738, 42625, 14208, 13, 9945, 1330, 4981 ]
4
7
from copy import copy from modules.parse import parse from modules.equation import grad, node_flatten from modules.matrix import Matrix from modules.util import ProjectException from modules.util import Color, color_string
[ 6738, 4866, 1330, 4866, 198, 198, 6738, 13103, 13, 29572, 1330, 21136, 198, 6738, 13103, 13, 4853, 341, 1330, 3915, 11, 10139, 62, 2704, 41769, 198, 6738, 13103, 13, 6759, 8609, 1330, 24936, 198, 6738, 13103, 13, 22602, 1330, 4935, 1692...
4.203704
54
import argparse from _version import __version__ def parse(): """Parse command line arguments.""" PARSER = argparse.ArgumentParser() PARSER.add_argument('-b', '--backend', help='Define which Terraform backend to parse', choices=['local', 'consul'], default='...
[ 11748, 1822, 29572, 198, 6738, 4808, 9641, 1330, 11593, 9641, 834, 628, 198, 4299, 21136, 33529, 198, 220, 220, 220, 37227, 10044, 325, 3141, 1627, 7159, 526, 15931, 198, 220, 220, 220, 350, 27415, 1137, 796, 1822, 29572, 13, 28100, 171...
2.146081
842
''' Wrapper for a lockable MPD client ''' from threading import Lock, Thread from random import choice from mpd import MPDClient
[ 7061, 6, 198, 36918, 2848, 329, 257, 5793, 540, 4904, 35, 5456, 198, 7061, 6, 198, 198, 6738, 4704, 278, 1330, 13656, 11, 14122, 198, 6738, 4738, 1330, 3572, 198, 6738, 29034, 67, 1330, 4904, 35, 11792 ]
3.486486
37
# importing libraries from keras.preprocessing.image import ImageDataGenerator from keras.models import Sequential from keras.layers import Conv2D, MaxPooling2D from keras.layers import Activation, Dropout, Flatten, Dense from keras import backend as K img_width, img_height = 224, 224 train_data_dir = 'v_data/train'...
[ 2, 33332, 12782, 198, 6738, 41927, 292, 13, 3866, 36948, 13, 9060, 1330, 7412, 6601, 8645, 1352, 198, 6738, 41927, 292, 13, 27530, 1330, 24604, 1843, 198, 6738, 41927, 292, 13, 75, 6962, 1330, 34872, 17, 35, 11, 5436, 27201, 278, 17, ...
2.471795
780
import osc osc.init() # create and send a bundle bundle = osc.createBundle() osc.appendToBundle(bundle, "/test/bndlprt1", [1, 2.2, "333"]) osc.appendToBundle(bundle, "/test/bndlprt2", [4, 5.5, 6]) osc.sendBundle(bundle, "127.0.0.1", 9999)
[ 11748, 267, 1416, 198, 198, 17500, 13, 15003, 3419, 198, 220, 220, 220, 220, 198, 2, 2251, 290, 3758, 257, 18537, 198, 65, 31249, 796, 267, 1416, 13, 17953, 33, 31249, 3419, 198, 17500, 13, 33295, 2514, 33, 31249, 7, 65, 31249, 11, ...
2.094017
117
import torch import functools from src.core.sampling import rollout_sb3 from intersim.envs import IntersimpleLidarFlatIncrementingAgent from intersim.envs.intersimple import speed_reward from intersim.expert import NormalizedIntersimpleExpert from src.util.wrappers import CollisionPenaltyWrapper, Setobs import numpy as...
[ 11748, 28034, 198, 11748, 1257, 310, 10141, 198, 6738, 12351, 13, 7295, 13, 37687, 11347, 1330, 38180, 62, 36299, 18, 198, 6738, 987, 14323, 13, 268, 14259, 1330, 554, 1010, 320, 1154, 43, 312, 283, 7414, 265, 15562, 434, 278, 36772, ...
2.041408
483
from joblib import load from pandas import DataFrame import pickle
[ 6738, 1693, 8019, 1330, 3440, 198, 6738, 19798, 292, 1330, 6060, 19778, 198, 11748, 2298, 293, 220 ]
3.941176
17
import socket import threading import json import sys from io import StringIO from .loop import Loop from .const import ( LOGGER ) # import socket # import sys # def main(): # host = "" # port = 50000 # backlog = 5 # size = 1024 # sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) # ...
[ 11748, 17802, 198, 11748, 4704, 278, 198, 11748, 33918, 198, 11748, 25064, 198, 6738, 33245, 1330, 10903, 9399, 198, 198, 6738, 764, 26268, 1330, 26304, 198, 198, 6738, 764, 9979, 1330, 357, 198, 220, 220, 220, 41605, 30373, 198, 8, 628...
1.90462
671
from setuptools import setup, find_packages with open("README.md", "r") as f: long_description = f.read() setup(name = "allcopol", version = "0.1.1", description = "AllCoPol: Inferring allele co-ancestry in polyploids", long_description = long_description, long_description_content_type = "text/ma...
[ 6738, 900, 37623, 10141, 1330, 9058, 11, 1064, 62, 43789, 198, 198, 4480, 1280, 7203, 15675, 11682, 13, 9132, 1600, 366, 81, 4943, 355, 277, 25, 198, 220, 220, 220, 890, 62, 11213, 796, 277, 13, 961, 3419, 628, 198, 40406, 7, 3672, ...
2.28169
426
import spec import sonicfeatures import display import random import os
[ 11748, 1020, 198, 11748, 36220, 40890, 198, 11748, 3359, 198, 198, 11748, 4738, 198, 11748, 28686, 198 ]
4.294118
17
import os
[ 11748, 28686, 628 ]
3.666667
3
from typing import Any, Dict, List, Optional, cast from pathlib import Path import yaml CONFIG_FILE_NAME = "config.yml" CONFIG_DIRS = ( Path.home() / Path(".yrs"), Path("/etc/youtube-rss-subscriber"), )
[ 6738, 19720, 1330, 4377, 11, 360, 713, 11, 7343, 11, 32233, 11, 3350, 198, 6738, 3108, 8019, 1330, 10644, 198, 198, 11748, 331, 43695, 628, 198, 10943, 16254, 62, 25664, 62, 20608, 796, 366, 11250, 13, 88, 4029, 1, 198, 10943, 16254, ...
2.634146
82
# flake8: noqa from rastervision.analyzer.analyzer import * from rastervision.analyzer.analyzer_config import * from rastervision.analyzer.stats_analyzer import * from rastervision.analyzer.stats_analyzer_config import *
[ 2, 781, 539, 23, 25, 645, 20402, 198, 198, 6738, 374, 1603, 10178, 13, 38200, 9107, 13, 38200, 9107, 1330, 1635, 198, 6738, 374, 1603, 10178, 13, 38200, 9107, 13, 38200, 9107, 62, 11250, 1330, 1635, 198, 6738, 374, 1603, 10178, 13, ...
3.217391
69
from tensorflow.keras.applications.densenet import DenseNet121 from tensorflow.keras.layers import Dense, GlobalAveragePooling2D from tensorflow.keras.models import Model from keras import backend as K from settings import Settings import numpy as np from helper import get_train_labels, compute_class_freqs from tensorf...
[ 6738, 11192, 273, 11125, 13, 6122, 292, 13, 1324, 677, 602, 13, 67, 18756, 316, 1330, 360, 1072, 7934, 19244, 198, 6738, 11192, 273, 11125, 13, 6122, 292, 13, 75, 6962, 1330, 360, 1072, 11, 8060, 26287, 27201, 278, 17, 35, 198, 6738...
2.838435
588
import sys import numpy as np import math import matplotlib.pyplot as plt from numpy.lib.polynomial import poly import pandas as pd from matplotlib import cm import matplotlib.patheffects as path_effects import random filename = f'example_generator_config.txt' run_names = [] number_of_maps_to_randomly_sample = 0 wit...
[ 11748, 25064, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 10688, 198, 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 198, 6738, 299, 32152, 13, 8019, 13, 35428, 26601, 498, 1330, 7514, 198, 11748, 19798, 292, 355, 279, 67,...
2.495906
855
from datetime import datetime from pyetheroll.utils import EtherollUtils, timestamp2datetime
[ 6738, 4818, 8079, 1330, 4818, 8079, 198, 198, 6738, 12972, 10567, 2487, 13, 26791, 1330, 412, 1169, 2487, 18274, 4487, 11, 41033, 17, 19608, 8079, 628, 198 ]
3.555556
27
# https://codewith.mu/en/tutorials/1.0/microbit from microbit import * flag = True while True: sleep(100) if button_a.was_pressed(): flag = not flag if flag: print((accelerometer.get_x(),)) else: print(accelerometer.get_values())
[ 2, 3740, 1378, 19815, 413, 342, 13, 30300, 14, 268, 14, 83, 44917, 82, 14, 16, 13, 15, 14, 24055, 2545, 198, 6738, 4580, 2545, 1330, 1635, 198, 32109, 796, 6407, 198, 198, 4514, 6407, 25, 198, 220, 220, 220, 3993, 7, 3064, 8, 19...
2.268908
119
from osbot_aws.apis.Fargate import Fargate
[ 6738, 28686, 13645, 62, 8356, 13, 499, 271, 13, 37, 853, 378, 1330, 376, 853, 378, 628, 628 ]
2.555556
18
''' ________ ________ ___ ___ _______ ________ _________ ___ ___ _________ _______ ________ ________ |\ __ \|\ ___ \|\ \ / /|\ ___ \ |\ ___ \|\___ ___\|\ \ / /|\___ ___\\ ___ \ |\ ___ \|\ ___ \ \ \ \|\ \ \ \_|\ \ \ \ / / | \ __/|\ \ \\ \ \|___ \ \_|\ ...
[ 7061, 6, 198, 220, 2602, 220, 220, 2602, 220, 46444, 220, 220, 220, 220, 220, 46444, 220, 37405, 220, 220, 220, 2602, 220, 220, 220, 2602, 62, 220, 220, 46444, 220, 220, 220, 46444, 220, 2602, 62, 220, 220, 37405, 220, 220, 220, 2...
1.293594
2,248
students = []
[ 19149, 658, 796, 17635, 198 ]
2.8
5
from ampy.pyboard import Pyboard from ampy.files import Files from .files import led_panel_client, max7219 from os.path import basename from sys import argv def put(): """ Uploads all necessary files to the pyboard. """ if len(argv) < 2: print("Pyboard COM port not specified. Usage: led_panel_...
[ 6738, 716, 9078, 13, 9078, 3526, 1330, 9485, 3526, 198, 6738, 716, 9078, 13, 16624, 1330, 13283, 198, 6738, 764, 16624, 1330, 2957, 62, 35330, 62, 16366, 11, 3509, 4761, 1129, 198, 6738, 28686, 13, 6978, 1330, 1615, 12453, 198, 6738, ...
2.447552
286
''' Into to deep learning Koopman operators === Author: Nicholas Geneva (MIT Liscense) url: https://nicholasgeneva.com/blog/ github: https://github.com/NickGeneva/blog-code === ''' import numpy as np import random import argparse import os, errno, copy, json import torch
[ 7061, 6, 198, 5317, 78, 284, 2769, 4673, 509, 11224, 805, 12879, 198, 18604, 198, 13838, 25, 20320, 20552, 357, 36393, 406, 2304, 1072, 8, 198, 6371, 25, 3740, 1378, 77, 488, 12456, 70, 1734, 6862, 13, 785, 14, 14036, 14, 198, 12567...
3.05618
89
""" This test checks the input file generation of a basic job using a python UDF. """ import os from eodc_openeo_bindings.job_writer.basic_writer import BasicJobWriter
[ 37811, 198, 1212, 1332, 8794, 262, 5128, 2393, 5270, 286, 257, 4096, 1693, 1262, 257, 21015, 471, 8068, 13, 198, 37811, 628, 198, 11748, 28686, 198, 198, 6738, 304, 375, 66, 62, 404, 1734, 78, 62, 21653, 654, 13, 21858, 62, 16002, 1...
3.326923
52
import socket as sock import os IP = sock.gethostname() CCTV_PORT = 9000 ANDR_PORT = 8000 CUR_DIR = os.getcwd() REC_DIR = os.path.join(CUR_DIR, "record") DB_ADDR = "Database server address" PUSH_ADDR = "Push notification server address" REG_ID = "Registration ID" NOTIF_COUNT = 4 QUEUE_SIZE = 30 REC_FILE_NUM = 60 NO...
[ 11748, 17802, 355, 32263, 198, 11748, 28686, 198, 198, 4061, 796, 32263, 13, 1136, 4774, 3672, 3419, 198, 4093, 6849, 62, 15490, 796, 50138, 198, 6981, 49, 62, 15490, 796, 38055, 198, 198, 34, 4261, 62, 34720, 796, 28686, 13, 1136, 66...
2.564885
131
# -*- coding: utf-8 -*- """ Created on Wed Feb 27 14:14:47 2019 @author: DK0086 """ import odema as od import numpy as np from datetime import datetime import pandas as pd import geopy.distance import math import os import time import sys from geopy.geocoders import Nominatim geolocator = Nominatim(u...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 201, 198, 37811, 201, 198, 41972, 319, 3300, 3158, 2681, 1478, 25, 1415, 25, 2857, 13130, 201, 198, 201, 198, 31, 9800, 25, 32975, 405, 4521, 201, 198, 37811, 201, 198, 117...
1.989128
3,955
import GlassdoorScrapeCore.GlassdoorScrapeUtilities as Ut
[ 11748, 12158, 9424, 3351, 13484, 14055, 13, 47698, 9424, 3351, 13484, 18274, 2410, 355, 7273, 628, 628, 628 ]
3.5
18
import sys,os,base64,time,traceback from datetime import datetime ROOT = os.path.abspath('%s/../..' % os.path.abspath(os.path.dirname(__file__))) sys.path.append(ROOT) os.environ['DJANGO_SETTINGS_MODULE'] = 'qurkexp.settings' SLEEP_TIME = 10 if __name__ == '__main__': from django.conf import settings from qur...
[ 11748, 25064, 11, 418, 11, 8692, 2414, 11, 2435, 11, 40546, 1891, 198, 6738, 4818, 8079, 1330, 4818, 8079, 198, 13252, 2394, 796, 28686, 13, 6978, 13, 397, 2777, 776, 10786, 4, 82, 14, 40720, 492, 6, 4064, 28686, 13, 6978, 13, 397, ...
2.223222
1,223
# Day 12: Functions # Exercises # Define four functions: add, subtract, divide, and multiply. Each function should take two arguments, and they should print the result of the arithmetic operation indicated by the function name. # When orders matters for an operation, the first argument should be treated as the left o...
[ 2, 3596, 1105, 25, 40480, 198, 198, 2, 1475, 2798, 2696, 198, 198, 2, 2896, 500, 1440, 5499, 25, 751, 11, 34128, 11, 14083, 11, 290, 29162, 13, 5501, 2163, 815, 1011, 734, 7159, 11, 290, 484, 815, 3601, 262, 1255, 286, 262, 34768,...
3.583333
912
PROVIDER_SUBMODULE='db'
[ 41283, 41237, 62, 50, 10526, 33365, 24212, 11639, 9945, 6, 198 ]
2.181818
11
""" Contains the trainable sub-network of an ensemble classifier. Handles calling the training and evaluation. """ import torch import torch.nn as nn import torch.optim as optim from matplotlib.pyplot import show from utility.fusion_functions import (train_nn_combiner_model, test_...
[ 37811, 198, 4264, 1299, 262, 4512, 540, 850, 12, 27349, 286, 281, 34549, 1398, 7483, 13, 198, 12885, 829, 4585, 262, 3047, 290, 12660, 13, 198, 37811, 198, 11748, 28034, 198, 11748, 28034, 13, 20471, 355, 299, 77, 198, 11748, 28034, 1...
1.938025
1,549
import sublime import sublime_plugin import os from .gotools_util import Buffers from .gotools_util import GoBuffers from .gotools_util import Logger from .gotools_util import ToolRunner
[ 11748, 41674, 198, 11748, 41674, 62, 33803, 198, 11748, 28686, 198, 198, 6738, 764, 23442, 10141, 62, 22602, 1330, 8792, 364, 198, 6738, 764, 23442, 10141, 62, 22602, 1330, 1514, 36474, 364, 198, 6738, 764, 23442, 10141, 62, 22602, 1330, ...
3.54717
53
from rest_framework.generics import ListCreateAPIView, RetrieveUpdateDestroyAPIView from equipment.serializers import EquipmentSerializer, ItemSerializer from equipment.models import Item, Equipment
[ 6738, 1334, 62, 30604, 13, 8612, 873, 1330, 7343, 16447, 2969, 3824, 769, 11, 4990, 30227, 10260, 49174, 2969, 3824, 769, 198, 198, 6738, 5112, 13, 46911, 11341, 1330, 22412, 32634, 7509, 11, 9097, 32634, 7509, 198, 6738, 5112, 13, 2753...
4.319149
47
{%- set modname = cookiecutter.project_slug.replace('-', '') -%} from skbuild import setup {%- if cookiecutter.use_submodules == "No" %} import os import pybind11 {%- endif %} setup( name='{{ modname }}', version='0.0.1', author='{{ cookiecutter.full_name }}', author_email='your@email.com', descri...
[ 90, 33963, 900, 953, 3672, 796, 19751, 8968, 353, 13, 16302, 62, 6649, 1018, 13, 33491, 10786, 12, 3256, 10148, 8, 532, 4, 92, 198, 6738, 1341, 11249, 1330, 9058, 198, 90, 33963, 611, 19751, 8968, 353, 13, 1904, 62, 7266, 18170, 662...
2.435606
528
import os, platform from clint.textui import colored as color
[ 11748, 28686, 11, 3859, 201, 198, 6738, 537, 600, 13, 5239, 9019, 1330, 16396, 355, 3124, 201, 198, 201, 198, 201, 198 ]
3.090909
22
# Copyright (c) 2019-present, Facebook, Inc. # All rights reserved. # # This source code is licensed under the license found in the # LICENSE file in the root directory of this source tree. # #TOFILL if __name__ == '__main__': param = [ ('ba',), ('aabb',), ('abab',), ('aaabb',), ('aabbb',), ...
[ 2, 15069, 357, 66, 8, 13130, 12, 25579, 11, 3203, 11, 3457, 13, 198, 2, 1439, 2489, 10395, 13, 198, 2, 198, 2, 770, 2723, 2438, 318, 11971, 739, 262, 5964, 1043, 287, 262, 198, 2, 38559, 24290, 2393, 287, 262, 6808, 8619, 286, 4...
2.275362
276
from rest_framework import routers from user.views import UserViewSet from .views import SampleViewSet router = routers.DefaultRouter() router.register('users', UserViewSet) router.register('samples', SampleViewSet)
[ 6738, 1334, 62, 30604, 1330, 41144, 198, 198, 6738, 2836, 13, 33571, 1330, 11787, 7680, 7248, 198, 6738, 764, 33571, 1330, 27565, 7680, 7248, 198, 198, 472, 353, 796, 41144, 13, 19463, 49, 39605, 3419, 198, 472, 353, 13, 30238, 10786, ...
3.57377
61
# Copyright 2022 iiPython # Modules import time # Initialization embed_size = 45 # Plugin class
[ 2, 15069, 33160, 21065, 37906, 198, 198, 2, 3401, 5028, 198, 11748, 640, 198, 198, 2, 20768, 1634, 198, 20521, 62, 7857, 796, 4153, 198, 198, 2, 42636, 1398, 198 ]
3.3
30
import time, os, xlrd, xlwt, re, webbrowser, time_convert, Process_killer, tkinter as tk from tkinter import messagebox as mb from xlwt import easyxf from threading import Thread from selenium import webdriver from selenium.common.exceptions import SessionNotCreatedException from selenium.webdriver.chrome.options...
[ 11748, 640, 11, 28686, 11, 2124, 75, 4372, 11, 2124, 75, 46569, 11, 302, 11, 3992, 40259, 11, 640, 62, 1102, 1851, 11, 10854, 62, 32156, 11, 256, 74, 3849, 355, 256, 74, 201, 198, 6738, 256, 74, 3849, 1330, 3275, 3524, 355, 285, ...
2.964646
198
import uuid from typing import Optional from fastapi import UploadFile, APIRouter from src.services.image_processing import ImageProcessor router = APIRouter(prefix="/file", tags=["passport & ID upload"]) # @router.get("",) # async def index(): # return {"test": "hello world"}
[ 11748, 334, 27112, 198, 6738, 19720, 1330, 32233, 198, 6738, 3049, 15042, 1330, 36803, 8979, 11, 3486, 4663, 39605, 198, 6738, 12351, 13, 30416, 13, 9060, 62, 36948, 1330, 7412, 18709, 273, 198, 198, 472, 353, 796, 3486, 4663, 39605, 7,...
3.287356
87
# -*- coding: utf-8 -*- import os import argparse import img2pdf import tqdm from natsort import natsorted from PIL import Image if __name__ == '__main__': parser = argparse.ArgumentParser() parser.add_argument('src', help='src dir') args = parser.parse_args() main(args.src) # dirs = [f.path fo...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 11748, 28686, 198, 11748, 1822, 29572, 198, 11748, 33705, 17, 12315, 198, 11748, 256, 80, 36020, 198, 6738, 299, 1381, 419, 1330, 299, 1381, 9741, 198, 6738, 350, 4...
2.25
228
import sys import requests import datetime from dateutil.parser import parse from veracode_api_py import VeracodeAPI as vapi if __name__ == '__main__': main()
[ 11748, 25064, 198, 11748, 7007, 198, 11748, 4818, 8079, 198, 6738, 3128, 22602, 13, 48610, 1330, 21136, 198, 198, 6738, 3326, 330, 1098, 62, 15042, 62, 9078, 1330, 4643, 330, 1098, 17614, 355, 410, 15042, 198, 220, 220, 220, 220, 220, ...
2.790323
62
# # Copyright 2017 Adobe. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing,...
[ 2, 198, 2, 15069, 2177, 21771, 13, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 2, 345, 743, 407, 779, 428, 2393, 2845, 287, 11846, 351, 262, 13789, 13, 198, 2, 921, 7...
3.695067
223
import pandas as pd import numpy as np print("Data Loading....") #data = pd.read_csv("adult.csv") data = pd.read_csv("adult_2.csv") # print(data) # print(data.columns) # print(data.shape) # print(data.info()) # print(data.nunique()) data.describe() data.isin(['?']).sum() data = data.replace('?', np.Na...
[ 11748, 19798, 292, 355, 279, 67, 201, 198, 11748, 299, 32152, 355, 45941, 201, 198, 201, 198, 4798, 7203, 6601, 12320, 1106, 4943, 201, 198, 201, 198, 2, 7890, 796, 279, 67, 13, 961, 62, 40664, 7203, 49922, 13, 40664, 4943, 201, 198...
2.593368
573
import network import time sta_if = network.WLAN(network.STA_IF) sta_if.active(True) for _ in range(10): sta_if.connect('RedmiMau', 'mau12397') time.sleep(1) if sta_if.isconnected(): print('Connected.') break time.sleep(11) else: print('Fail')
[ 11748, 3127, 198, 11748, 640, 198, 38031, 62, 361, 796, 3127, 13, 54, 25697, 7, 27349, 13, 2257, 32, 62, 5064, 8, 198, 38031, 62, 361, 13, 5275, 7, 17821, 8, 198, 1640, 4808, 287, 2837, 7, 940, 2599, 198, 197, 38031, 62, 361, 13...
2.309735
113
## Module to obtain packet data from a pcap/dump file ## and save it in csv format using tshark. ## Filenames of input pcap files are taken from InputFiles.txt ## Tshark options are present in TsharkOptions.txt ## TsharkOptions.txt should not contain the -r option. ## usage: python FilterPackets.py #import global con...
[ 2235, 19937, 284, 7330, 19638, 1366, 422, 257, 279, 11128, 14, 39455, 2393, 198, 2235, 290, 3613, 340, 287, 269, 21370, 5794, 1262, 256, 1477, 668, 13, 198, 2235, 7066, 268, 1047, 286, 5128, 279, 11128, 3696, 389, 2077, 422, 23412, 25...
3.362637
273
import discord from discord.ext import commands,tasks from datetime import datetime import asyncio from itertools import cycle #number of minutes used at timer for loops MINUTES_TO_WAIT = 30 #in the brackets there's the class you are extending
[ 11748, 36446, 198, 6738, 36446, 13, 2302, 1330, 9729, 11, 83, 6791, 198, 6738, 4818, 8079, 1330, 4818, 8079, 198, 11748, 30351, 952, 198, 6738, 340, 861, 10141, 1330, 6772, 198, 198, 2, 17618, 286, 2431, 973, 379, 19781, 329, 23607, 1...
3.769231
65
from .helpers import IFPTestCase from intficpy.ifp_game import IFPGame from intficpy.thing_base import Thing from intficpy.things import Surface, UnderSpace from intficpy.actor import Actor, SpecialTopic from intficpy.verb import ( IndirectObjectVerb, GetVerb, LookVerb, SetOnVerb, LeadDirVerb, ...
[ 6738, 764, 16794, 364, 1330, 314, 5837, 14402, 20448, 198, 198, 6738, 493, 69, 291, 9078, 13, 361, 79, 62, 6057, 1330, 314, 5837, 8777, 198, 6738, 493, 69, 291, 9078, 13, 1197, 62, 8692, 1330, 21561, 198, 6738, 493, 69, 291, 9078, ...
2.560694
173
from .spacy_thai import ThaiTagger,ThaiParser,load
[ 6738, 764, 2777, 1590, 62, 400, 1872, 1330, 18933, 51, 7928, 11, 817, 1872, 46677, 11, 2220, 198 ]
2.833333
18
import setuptools import re with open("README.md", "r") as fh: long_description = fh.read() version = '' with open('pydisfish/__init__.py') as f: version = re.search(r'^__version__\s*=\s*[\'"]([^\'"]*)[\'"]', f.read(), re.MULTILINE).group(1) if not version: raise RuntimeError('version is not set') requi...
[ 11748, 900, 37623, 10141, 198, 11748, 302, 198, 198, 4480, 1280, 7203, 15675, 11682, 13, 9132, 1600, 366, 81, 4943, 355, 277, 71, 25, 198, 220, 220, 220, 890, 62, 11213, 796, 277, 71, 13, 961, 3419, 198, 198, 9641, 796, 10148, 198, ...
2.622283
368
import sys if sys.version_info[0] == 2: import Queue as queue else: import queue import os import math import multiprocessing as mp import threading import torch from torch.utils.data import Dataset import numpy as np from data_utils import get_receptive_field, get_sub_patch_shape, \ get_offset, sampl...
[ 11748, 25064, 198, 361, 25064, 13, 9641, 62, 10951, 58, 15, 60, 6624, 362, 25, 198, 220, 220, 220, 1330, 4670, 518, 355, 16834, 198, 17772, 25, 198, 220, 220, 220, 1330, 16834, 198, 11748, 28686, 198, 11748, 10688, 198, 11748, 18540, ...
2.328217
847
from .utils import to_ms, to_candle from ..api_candles import ApiCandles from ...timeframes import Timeframes import datetime, time import requests as r
[ 6738, 764, 26791, 1330, 284, 62, 907, 11, 284, 62, 46188, 293, 201, 198, 6738, 11485, 15042, 62, 46188, 829, 1330, 5949, 72, 41572, 829, 201, 198, 6738, 2644, 2435, 37805, 1330, 3862, 37805, 201, 198, 11748, 4818, 8079, 11, 640, 201, ...
3.137255
51
import os import random from django.db import models from contests.models import Submission, User, Contest VERDICT = ( ('RTE', 'Run Time Error'), ('MLE', 'Memory Limit Exceeded'), ('TLE', 'Time Limit Exceeded'), ('WA', 'Wrong Answer'), ('CE', 'Compilation Error'), ('IE', 'Internal Error'), ...
[ 11748, 28686, 198, 11748, 4738, 198, 198, 6738, 42625, 14208, 13, 9945, 1330, 4981, 198, 198, 6738, 22830, 13, 27530, 1330, 42641, 11, 11787, 11, 27297, 198, 198, 5959, 35, 18379, 796, 357, 198, 220, 220, 220, 19203, 49, 9328, 3256, 7...
2.697842
139
#------------------------------------------------------------------------------ # Copyright (c) 2012, Enthought, Inc. # All rights reserved. #------------------------------------------------------------------------------ from enaml.validation.api import IntValidator from .enaml_test_case import EnamlTestCase if __...
[ 2, 10097, 26171, 198, 2, 220, 15069, 357, 66, 8, 2321, 11, 2039, 28895, 11, 3457, 13, 198, 2, 220, 1439, 2489, 10395, 13, 198, 2, 10097, 26171, 198, 6738, 551, 43695, 13, 12102, 341, 13, 15042, 1330, 2558, 47139, 1352, 198, 198, 6...
4.390805
87
# core_funcs.py # By: thekraftyman ''' container for all of the core funcs that have been distributed among files ''' from src.lib.async_funcs import * from src.lib.non_async_funcs import *
[ 2, 4755, 62, 12543, 6359, 13, 9078, 198, 2, 2750, 25, 262, 74, 1617, 88, 805, 198, 198, 7061, 6, 198, 34924, 329, 477, 286, 262, 4755, 1257, 6359, 326, 423, 587, 9387, 1871, 3696, 198, 7061, 6, 198, 198, 6738, 12351, 13, 8019, 1...
2.823529
68
import uuid from django.db import models
[ 11748, 334, 27112, 198, 198, 6738, 42625, 14208, 13, 9945, 1330, 4981, 628, 628 ]
3.214286
14
# -*- coding: utf-8 -*- import gevent from oandapyV20.endpoints.accounts import AccountDetails, AccountChanges
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 11748, 4903, 1151, 198, 198, 6738, 267, 392, 12826, 53, 1238, 13, 437, 13033, 13, 23317, 82, 1330, 10781, 24259, 11, 10781, 29238, 628 ]
2.973684
38
import sys from . import Archive from . import Find from . import ParseArgs from . import Interact def iter_urls(opt): """Iterate given urls for saving.""" try: for x in opt["urls"]: Archive.archive(Find.extract_uri_recursive(x, opt["level"]), x, opt["retry"]) ...
[ 11748, 25064, 198, 198, 6738, 764, 1330, 20816, 198, 6738, 764, 1330, 9938, 198, 6738, 764, 1330, 2547, 325, 42035, 198, 6738, 764, 1330, 4225, 529, 628, 198, 4299, 11629, 62, 6371, 82, 7, 8738, 2599, 198, 220, 220, 220, 37227, 29993,...
2.116095
379
# # Copyright (c) 2017-2018 Joy Diamond. All rights reserved. #
[ 2, 198, 2, 220, 220, 15069, 357, 66, 8, 2177, 12, 7908, 14087, 13566, 13, 220, 1439, 2489, 10395, 13, 198, 2, 198 ]
2.913043
23
"""Unit tests for partial implementation.""" from polar.expression import Expression from polar.variable import Variable from sqlalchemy_oso.partial import dot_op_path
[ 37811, 26453, 5254, 329, 13027, 7822, 526, 15931, 198, 6738, 13559, 13, 38011, 1330, 41986, 198, 6738, 13559, 13, 45286, 1330, 35748, 198, 198, 6738, 44161, 282, 26599, 62, 28213, 13, 47172, 1330, 16605, 62, 404, 62, 6978, 628 ]
4.358974
39
ELECTRUM_VERSION = '3.0' # version of the client package PROTOCOL_VERSION = '0.10' # protocol version requested # The hash of the mnemonic seed must begin with this SEED_PREFIX = '01' # Standard wallet SEED_PREFIX_2FA = '101' # Two-factor authentication
[ 36, 16779, 49, 5883, 62, 43717, 796, 705, 18, 13, 15, 6, 220, 220, 220, 220, 1303, 2196, 286, 262, 5456, 5301, 198, 4805, 2394, 4503, 3535, 62, 43717, 796, 705, 15, 13, 940, 6, 220, 220, 220, 220, 1303, 8435, 2196, 9167, 198, 19...
2.598131
107
#!/usr/bin/env python from pyshorteners import Shortener """Url class"""
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 6738, 279, 893, 71, 419, 36014, 1330, 10073, 877, 198, 198, 37811, 28165, 1398, 37811, 198 ]
2.96
25
import os import pandas as pd from plotnine import * import plotnine from matplotlib import pyplot as plt import matplotlib from scipy.spatial.distance import pdist, squareform from skbio.stats.ordination import pcoa from skbio.diversity import beta_diversity from skbio.io import read from skbio.tree import TreeNode im...
[ 11748, 28686, 198, 11748, 19798, 292, 355, 279, 67, 198, 6738, 7110, 30888, 1330, 1635, 198, 11748, 7110, 30888, 198, 6738, 2603, 29487, 8019, 1330, 12972, 29487, 355, 458, 83, 198, 11748, 2603, 29487, 8019, 198, 6738, 629, 541, 88, 13,...
2.45855
2,111
from graphene_django import DjangoObjectType from accelerator.models import Location
[ 6738, 42463, 62, 28241, 14208, 1330, 37770, 10267, 6030, 628, 198, 6738, 44219, 13, 27530, 1330, 13397, 628 ]
4.888889
18
# -*- coding: utf-8 -*- # # Copyright 2015 Simone Campagna # # 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...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 198, 2, 15069, 1853, 47592, 5425, 48669, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 2, 345, 743, 40...
2.854722
413
#!/usr/bin/env python # -*- coding: utf-8 -*- """ This module handles the parsing of SALT labels. There are three types of labels (SFeature, SElementId, SAnnotation). Labels can occur as children of these elements: 'layers', 'nodes', 'edges' and '{sDocumentStructure}SDocumentGraph'. """ from lxml.builder import Elem...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 37811, 198, 1212, 8265, 17105, 262, 32096, 286, 311, 31429, 14722, 13, 198, 198, 1858, 389, 1115, 3858, 286, 14722...
2.546948
426
from feedly.api_client.session import FeedlySession from feedly.api_client.stream import StreamOptions from feedly.api_client.utils import run_example def example_stream_entries(): """ This example will prompt you to enter a category name, download the 10 latest articles from it, and display their titles...
[ 6738, 3745, 306, 13, 15042, 62, 16366, 13, 29891, 1330, 18272, 306, 36044, 198, 6738, 3745, 306, 13, 15042, 62, 16366, 13, 5532, 1330, 13860, 29046, 198, 6738, 3745, 306, 13, 15042, 62, 16366, 13, 26791, 1330, 1057, 62, 20688, 628, 19...
3.335165
364
# Program no 5 1stname = input(" Enter 1st name ") lastname = input(" Enter last name ") print 1stname[::-1] print lastname[::-1]
[ 2, 6118, 645, 642, 201, 198, 220, 220, 220, 220, 201, 198, 16, 301, 3672, 796, 5128, 7203, 6062, 352, 301, 1438, 366, 8, 201, 198, 12957, 3672, 796, 5128, 7203, 6062, 938, 1438, 366, 8, 201, 198, 201, 198, 4798, 352, 301, 3672, ...
2.389831
59