content
stringlengths
1
1.05M
input_ids
listlengths
1
883k
ratio_char_token
float64
1
22.9
token_count
int64
1
883k
from ..app.crud import CRUDBase from .models import ( User, UserGroup, UserGroupMember, UserGroupPermission, UserPermission, )
[ 6738, 11485, 1324, 13, 6098, 463, 1330, 8740, 8322, 14881, 198, 6738, 764, 27530, 1330, 357, 198, 220, 220, 220, 11787, 11, 198, 220, 220, 220, 11787, 13247, 11, 198, 220, 220, 220, 11787, 13247, 27608, 11, 198, 220, 220, 220, 11787, ...
2.576271
59
from dataclasses import dataclass, field from datetime import datetime from typing import Dict, Optional, Set from .alibaba_compute_source import AlibabaComputeSource from .alibaba_instance_charge_type import AlibabaInstanceChargeType from .alibaba_spot_strategy import AlibabaSpotStrategy from .compute_source_exhausti...
[ 6738, 4818, 330, 28958, 1330, 4818, 330, 31172, 11, 2214, 198, 6738, 4818, 8079, 1330, 4818, 8079, 198, 6738, 19720, 1330, 360, 713, 11, 32233, 11, 5345, 198, 198, 6738, 764, 282, 37541, 62, 5589, 1133, 62, 10459, 1330, 41992, 7293, 1...
3.793651
126
from flask import Flask, render_template, request, redirect, url_for, session from flask_session import Session from tempfile import mkdtemp from cs50 import SQL from random import randint from werkzeug.security import check_password_hash, generate_password_hash from functions import get_coms_count, get_pages_count im...
[ 6738, 42903, 1330, 46947, 11, 8543, 62, 28243, 11, 2581, 11, 18941, 11, 19016, 62, 1640, 11, 6246, 198, 6738, 42903, 62, 29891, 1330, 23575, 198, 6738, 20218, 7753, 1330, 33480, 67, 29510, 198, 6738, 50115, 1120, 1330, 16363, 198, 6738,...
3.445578
294
import json from asyncy.hub.sdk.db.Service import Service from playhouse.shortcuts import dict_to_model
[ 11748, 33918, 198, 198, 6738, 355, 2047, 948, 13, 40140, 13, 21282, 74, 13, 9945, 13, 16177, 1330, 4809, 198, 198, 6738, 711, 4803, 13, 19509, 23779, 1330, 8633, 62, 1462, 62, 19849, 628 ]
3.147059
34
# -*- coding: utf-8 -*- from QAutoLibrary.extension import TESTDATA from selenium.webdriver.common.by import By from QAutoLibrary.QAutoSelenium import * from time import sleep from pagemodel.ss_version import Ss_version
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 6738, 1195, 27722, 23377, 13, 2302, 3004, 1330, 43001, 26947, 198, 6738, 384, 11925, 1505, 13, 12384, 26230, 13, 11321, 13, 1525, 1330, 2750, 198, 6738, 1195, 27722, 23377...
3.098592
71
import pytest from django.db import connection, transaction, ProgrammingError from django.db.backends.base.schema import BaseDatabaseSchemaEditor from django.db.backends.dummy.base import DatabaseWrapper as DummyDatabaseWrapper from django.db.backends.postgresql.schema import ( DatabaseSchemaEditor as PostgresqlDat...
[ 11748, 12972, 9288, 198, 6738, 42625, 14208, 13, 9945, 1330, 4637, 11, 8611, 11, 30297, 12331, 198, 6738, 42625, 14208, 13, 9945, 13, 1891, 2412, 13, 8692, 13, 15952, 2611, 1330, 7308, 38105, 27054, 2611, 17171, 198, 6738, 42625, 14208, ...
3.296117
206
#!/usr/bin/python import numpy as np import math import cv2 import config as cf
[ 2, 48443, 14629, 14, 8800, 14, 29412, 198, 198, 11748, 299, 32152, 355, 45941, 220, 198, 11748, 10688, 198, 11748, 269, 85, 17, 198, 11748, 4566, 355, 30218 ]
2.892857
28
from PyObjCTools.TestSupport import * from Quartz.PDFKit import * if __name__ == "__main__": main()
[ 198, 6738, 9485, 49201, 4177, 10141, 13, 14402, 15514, 1330, 1635, 198, 6738, 45976, 13, 20456, 20827, 1330, 1635, 198, 198, 361, 11593, 3672, 834, 6624, 366, 834, 12417, 834, 1298, 198, 220, 220, 220, 1388, 3419, 198 ]
2.789474
38
from selenium import webdriver from selenium.webdriver.chrome.options import Options import zipfile ip = '127.0.0.1' port = 9743 username = 'foo' password = 'bar' manifest_json = """ { "version": "1.0.0", "manifest_version": 2, "name": "Chrome Proxy", "permissions": [ "proxy", "tabs", ...
[ 6738, 384, 11925, 1505, 1330, 3992, 26230, 198, 6738, 384, 11925, 1505, 13, 12384, 26230, 13, 46659, 13, 25811, 1330, 18634, 198, 11748, 19974, 7753, 198, 198, 541, 796, 705, 16799, 13, 15, 13, 15, 13, 16, 6, 198, 634, 796, 10111, 3...
2.198336
721
''' Created on 2012-10-23 @author: hzzhoushaoyu ''' import webob.exc import json from umbrella.common import wsgi import umbrella.common.log as logging from umbrella.common import cfg import umbrella.context LOG = logging.getLogger(__name__) CONF = cfg.CONF context_opts = [ cfg.BoolOpt('owner_is_tenant', defau...
[ 7061, 6, 198, 41972, 319, 2321, 12, 940, 12, 1954, 198, 198, 31, 9800, 25, 289, 3019, 71, 516, 3099, 726, 84, 198, 7061, 6, 198, 198, 11748, 3992, 672, 13, 41194, 198, 11748, 33918, 198, 198, 6738, 25510, 13, 11321, 1330, 266, 82,...
2.629834
181
# coding: utf-8 from __future__ import absolute_import from ibutsu_server import util from ibutsu_server.models.base_model_ import Model
[ 2, 19617, 25, 3384, 69, 12, 23, 198, 6738, 11593, 37443, 834, 1330, 4112, 62, 11748, 198, 198, 6738, 24283, 36567, 62, 15388, 1330, 7736, 198, 6738, 24283, 36567, 62, 15388, 13, 27530, 13, 8692, 62, 19849, 62, 1330, 9104, 628 ]
3.390244
41
# x_7_2 # # import re pattern = '' str = input(':') print(re.sub(pattern, '', str))
[ 2, 2124, 62, 22, 62, 17, 198, 2, 198, 2, 198, 198, 11748, 302, 198, 198, 33279, 796, 10148, 198, 2536, 796, 5128, 7, 10354, 11537, 198, 198, 4798, 7, 260, 13, 7266, 7, 33279, 11, 705, 3256, 965, 4008, 198 ]
2.121951
41
from clipper_admin import ClipperConnection, DockerContainerManager from clipper_admin.deployers import keras as keras_deployer import keras clipper_conn = ClipperConnection(DockerContainerManager()) clipper_conn.connect() # if cluster exists inpt = keras.layers.Input(shape=(1,)) out = keras.layers.multiply([inpt, i...
[ 6738, 537, 14710, 62, 28482, 1330, 1012, 14710, 32048, 11, 25716, 29869, 13511, 198, 6738, 537, 14710, 62, 28482, 13, 2934, 1420, 364, 1330, 41927, 292, 355, 41927, 292, 62, 2934, 1420, 263, 198, 11748, 41927, 292, 198, 198, 565, 14710,...
2.326271
472
from PyQt5.QtCore import * from PyQt5.QtGui import * from PyQt5.QtWidgets import * from utils.io import get_host_config from utils.params import MessageType, Mode, Topology
[ 6738, 9485, 48, 83, 20, 13, 48, 83, 14055, 1330, 1635, 198, 6738, 9485, 48, 83, 20, 13, 48, 83, 8205, 72, 1330, 1635, 198, 6738, 9485, 48, 83, 20, 13, 48, 83, 54, 312, 11407, 1330, 1635, 198, 6738, 3384, 4487, 13, 952, 1330, 6...
2.676923
65
""" -file concerned with implementation of GET /scans -should return as many scans as possible starting from newest -return size must be capped at 6mb """ from boto3.dynamodb.conditions import Key from lib.dynamodb import scans_table from lib.lambda_decorator.decorator import api_decorator, format_result BYTE_LIMIT =...
[ 37811, 198, 12, 7753, 5213, 351, 7822, 286, 17151, 1220, 1416, 504, 198, 12, 21754, 1441, 355, 867, 23824, 355, 1744, 3599, 422, 15530, 198, 12, 7783, 2546, 1276, 307, 28490, 379, 718, 2022, 198, 37811, 198, 6738, 275, 2069, 18, 13, ...
3.29703
101
import logging from sparrow_cloud.restclient import rest_client from sparrow_cloud.restclient.exception import HTTPException from sparrow_cloud.utils.get_cm_value import get_cm_value logger = logging.getLogger(__name__) def access_verify(user_id, app_name, resource_code): """ access control verify """ ...
[ 11748, 18931, 198, 6738, 599, 6018, 62, 17721, 13, 2118, 16366, 1330, 1334, 62, 16366, 198, 6738, 599, 6018, 62, 17721, 13, 2118, 16366, 13, 1069, 4516, 1330, 14626, 16922, 198, 6738, 599, 6018, 62, 17721, 13, 26791, 13, 1136, 62, 112...
2.265182
494
""" Open Test Arbatrage System USE AT YOUR OWN RISK! MULTIPLE EXCHANGE ACCEPTANCE ALLOWS 'USERS' TO CHOOSE THEIR OWN STRATEGY AS WELL AS TRADING COINS PROVIDES DETAILED INFORMATION ABOUT EXCHANGES & PLATFORMS ALLOWS USERS TO CONNECT IN A FRIENDLY ENVIRONMENT Author: ~Skrypt~ """ import sys import os impor...
[ 37811, 220, 220, 220, 220, 201, 198, 11505, 6208, 943, 8664, 8394, 4482, 23210, 5161, 16592, 47672, 45698, 42, 0, 201, 198, 44, 16724, 4061, 2538, 7788, 3398, 27746, 15859, 8905, 51, 19240, 201, 198, 7036, 22845, 705, 2937, 4877, 6, 5...
2.074583
14,333
from datetime import datetime from django.core.exceptions import ValidationError from fms_core.models import Container from ..containers import CONTAINER_KIND_SPECS
[ 6738, 4818, 8079, 1330, 4818, 8079, 198, 6738, 42625, 14208, 13, 7295, 13, 1069, 11755, 1330, 3254, 24765, 12331, 198, 6738, 277, 907, 62, 7295, 13, 27530, 1330, 43101, 198, 198, 6738, 11485, 3642, 50221, 1330, 7102, 30339, 1137, 62, 42...
3.608696
46
import pytest import time from datetime import timedelta from typing import Optional, Dict, Any from whendo.core.util import Rez, SystemInfo, Now, KeyTagMode, DateTime, Rez from whendo.core.action import Action from whendo.core.server import Server from whendo.core.actions.list_action import ( UntilFailure, All...
[ 11748, 12972, 9288, 198, 11748, 640, 198, 6738, 4818, 8079, 1330, 28805, 12514, 198, 6738, 19720, 1330, 32233, 11, 360, 713, 11, 4377, 198, 6738, 483, 358, 78, 13, 7295, 13, 22602, 1330, 47753, 11, 4482, 12360, 11, 2735, 11, 7383, 248...
2.784478
8,723
import os from functools import reduce __here__ = os.path.dirname(__file__) TEST_DATA = '''\ 2199943210 3987894921 9856789892 8767896789 9899965678\ ''' def calculate_1(data): array = list(decode_input(data)) x_max, y_max = len(array), len(array[0]) lows = [x for x, _ in lowest_points(array, (x_max...
[ 11748, 28686, 198, 198, 6738, 1257, 310, 10141, 1330, 4646, 628, 198, 834, 1456, 834, 796, 28686, 13, 6978, 13, 15908, 3672, 7, 834, 7753, 834, 8, 198, 198, 51, 6465, 62, 26947, 796, 705, 7061, 59, 198, 17, 18946, 45331, 940, 198, ...
2.533079
786
#!/usr/bin/env python """ This is the installation script of the step module, a light and fast template engine. You can run it by typing: python setup.py install You can also run the test suite by running: python setup.py test """ import sys from distutils.core import setup from step.tests import TestCommand...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 628, 198, 37811, 198, 1212, 318, 262, 9988, 4226, 286, 262, 2239, 8265, 11, 257, 1657, 290, 3049, 11055, 3113, 13, 921, 460, 1057, 340, 416, 19720, 25, 628, 220, 21015, 9058, 13, 9078, 27...
2.31448
884
#!/usr/bin/env python # -*- coding: utf-8 -*- import functools from flask import url_for, redirect, session
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 11748, 1257, 310, 10141, 198, 6738, 42903, 1330, 19016, 62, 1640, 11, 18941, 11, 6246, 628 ]
2.794872
39
from . import config, client, context from .client import APIClient from .context import ClientContext
[ 6738, 764, 1330, 4566, 11, 5456, 11, 4732, 198, 198, 6738, 764, 16366, 1330, 3486, 2149, 75, 1153, 198, 6738, 764, 22866, 1330, 20985, 21947, 198 ]
4
26
ip = open("input.txt","r") lst = ip.readlines() lst.reverse() lst.insert(1,'\n') ip.close() op = open("output.txt",'w') op.write("".join(lst)) op.close()
[ 541, 796, 1280, 7203, 15414, 13, 14116, 2430, 81, 4943, 198, 198, 75, 301, 796, 20966, 13, 961, 6615, 3419, 198, 198, 75, 301, 13, 50188, 3419, 198, 75, 301, 13, 28463, 7, 16, 4032, 59, 77, 11537, 198, 198, 541, 13, 19836, 3419, ...
2.135135
74
from pathlib import Path from fhir.resources.codesystem import CodeSystem from oops_fhir.utils import CodeSystemConcept __all__ = ["EffectEstimateType"] _resource = CodeSystem.parse_file(Path(__file__).with_suffix(".json"))
[ 6738, 3108, 8019, 1330, 10644, 198, 198, 6738, 277, 71, 343, 13, 37540, 13, 40148, 6781, 1330, 6127, 11964, 198, 198, 6738, 267, 2840, 62, 69, 71, 343, 13, 26791, 1330, 6127, 11964, 3103, 984, 628, 198, 834, 439, 834, 796, 14631, 18...
3.108108
74
from django.test import TestCase, Client from django.urls import reverse
[ 6738, 42625, 14208, 13, 9288, 1330, 6208, 20448, 11, 20985, 198, 6738, 42625, 14208, 13, 6371, 82, 1330, 9575, 628 ]
3.7
20
""" user token @version: v1.0.1 @Company: Thefair @Author: Wang Yao @Date: 2019-11-17 15:21:11 @LastEditors: Wang Yao @LastEditTime: 2019-11-17 21:17:19 """ from functools import wraps from flask import request from itsdangerous import TimedJSONWebSignatureSerializer as Serializer, BadData from library.response.tfexcep...
[ 37811, 198, 7220, 11241, 198, 31, 9641, 25, 410, 16, 13, 15, 13, 16, 198, 31, 39154, 25, 383, 22043, 198, 31, 13838, 25, 15233, 37826, 198, 31, 10430, 25, 13130, 12, 1157, 12, 1558, 1315, 25, 2481, 25, 1157, 198, 31, 5956, 18378, ...
2.878613
173
from paa191t1.pph.pph_median import pph_median from paa191t1.tests.pph import TestPPHBase
[ 6738, 279, 7252, 26492, 83, 16, 13, 381, 71, 13, 381, 71, 62, 1150, 666, 1330, 279, 746, 62, 1150, 666, 198, 6738, 279, 7252, 26492, 83, 16, 13, 41989, 13, 381, 71, 1330, 6208, 10246, 39, 14881, 628 ]
2.333333
39
# -*- coding: utf-8 -*- # Copyright 2019 The Chromium OS Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """Artifacts service tests.""" from __future__ import print_function import json import os import shutil import mock from chro...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 15069, 13130, 383, 18255, 1505, 7294, 46665, 13, 1439, 2489, 10395, 13, 198, 2, 5765, 286, 428, 2723, 2438, 318, 21825, 416, 257, 347, 10305, 12, 7635, 5964, 326, 4...
3.387681
276
"""Helper for evaluation on the Labeled Faces in the Wild dataset """ # MIT License # # Copyright (c) 2016 David Sandberg # # 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 withou...
[ 37811, 47429, 329, 12660, 319, 262, 3498, 18449, 48463, 287, 262, 6183, 27039, 220, 201, 198, 37811, 201, 198, 201, 198, 2, 17168, 13789, 201, 198, 2, 220, 201, 198, 2, 15069, 357, 66, 8, 1584, 3271, 3837, 3900, 201, 198, 2, 220, ...
3.57732
388
#!/usr/bin/env python3 # NZART Exam Trainer # Written by Richard Walmsley <richwalm+nzarttrainer@gmail.com> (ZL1RSW) from flask import Flask, request, render_template, redirect, url_for, Response, abort import random import string import json import sys app = Flask(__name__, static_folder = 's') # Constants. Neede...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 2, 26905, 7227, 35909, 31924, 198, 2, 22503, 416, 6219, 6445, 907, 1636, 1279, 7527, 16783, 76, 10, 27305, 433, 2213, 10613, 31, 14816, 13, 785, 29, 357, 57, 43, 16, 6998, 54, ...
2.446667
750
from typing import Dict import logging from src.middleware.profiler import do_cprofile logger = logging.getLogger(__name__)
[ 6738, 19720, 1330, 360, 713, 198, 11748, 18931, 198, 6738, 12351, 13, 27171, 1574, 13, 5577, 5329, 1330, 466, 62, 66, 13317, 198, 198, 6404, 1362, 796, 18931, 13, 1136, 11187, 1362, 7, 834, 3672, 834, 8, 628, 628 ]
3.282051
39
#!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import print_function from os.path import dirname, exists, join import sys, subprocess from setuptools import find_packages, setup setup_dir = dirname(__file__) git_dir = join(setup_dir, ".git") version_file = join(setup_dir, "cxxheaderparser", "version....
[ 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, 3601, 62, 8818, 198, 198, 6738, 28686, 13, 6978, 1330, 26672, 3672, 11, 7160, 11, ...
2.766334
903
import json from flask import Blueprint, request from RobotCode import BehaviorDB from RobotCode.RobotModel import getRobotModel Robot_Api_BluePrint = Blueprint('Robot_Api_BluePrint', __name__, url_prefix="/robot_api")
[ 11748, 33918, 198, 6738, 42903, 1330, 39932, 11, 2581, 198, 198, 6738, 16071, 10669, 1330, 20181, 11012, 198, 6738, 16071, 10669, 13, 14350, 313, 17633, 1330, 651, 14350, 313, 17633, 198, 198, 14350, 313, 62, 32, 14415, 62, 14573, 18557, ...
3.308824
68
import pygame import random import math pygame.init() win_width = 1200 win_height = 500 limitFPS = 40 win = pygame.display.set_mode((win_width,win_height)) pygame.display.set_caption("It's heavy rain now") main = Main(win,win_height,win_width) run = True while run: clock = pygame.time.Clock() ...
[ 11748, 12972, 6057, 201, 198, 11748, 4738, 201, 198, 11748, 10688, 201, 198, 201, 198, 9078, 6057, 13, 15003, 3419, 201, 198, 5404, 62, 10394, 796, 24938, 201, 198, 5404, 62, 17015, 796, 5323, 201, 198, 32374, 37, 3705, 796, 2319, 201...
2.183761
234
#!/usr/bin/env python # -*- coding: utf-8 -*- # -*- coding: utf8 -*- from django.http import Http404 from django.contrib.auth.decorators import user_passes_test from django.utils.decorators import method_decorator from diogenis.teachers.models import Teacher
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 23, 532, 9, 12, 198, 198, 6738, 42625, 14208, 13, 4023, 1330, 367, 29281, 26429...
2.71875
96
Import("env") import platform if platform.system() == 'Windows': print("Replace MKSPIFFSTOOL with mklittlefs.exe") env.Replace (MKSPIFFSTOOL = "tools/mklittlefs.exe") else: print("Replace MKSPIFFSTOOL with mklittlefs") env.Replace (MKSPIFFSTOOL = "tools/mklittlefs")
[ 20939, 7203, 24330, 4943, 198, 11748, 3859, 198, 198, 361, 3859, 13, 10057, 3419, 220, 6624, 705, 11209, 10354, 198, 220, 220, 220, 3601, 7203, 3041, 5372, 20553, 4303, 29267, 2257, 31559, 351, 33480, 31629, 9501, 13, 13499, 4943, 198, ...
2.679245
106
# importing the required libraries import pyautogui, time # delay to switch windows time.sleep(5) #setting count to 5 count = 5 # loop to spam while count >= 1: # fetch and type each word from the file pyautogui.write('Random Annoying Spam Words') # press enter to send the message pyautogui.press('ente...
[ 2, 33332, 262, 2672, 12782, 198, 11748, 12972, 2306, 519, 9019, 11, 640, 198, 198, 2, 5711, 284, 5078, 9168, 198, 2435, 13, 42832, 7, 20, 8, 198, 2, 33990, 954, 284, 642, 198, 9127, 796, 642, 198, 2, 9052, 284, 18084, 198, 4514, ...
3.01626
123
import binascii import midstate import pytest import struct
[ 11748, 9874, 292, 979, 72, 198, 11748, 3095, 5219, 198, 11748, 12972, 9288, 198, 11748, 2878 ]
3.6875
16
import numpy as np import cv2 import pyrealsense2 as rs import time, sys, glob focal = 0.0021 baseline = 0.08 sd = rs.software_device() depth_sensor = sd.add_sensor("Depth") intr = rs.intrinsics() intr.width = 848 intr.height = 480 intr.ppx = 637.951293945312 intr.ppy = 360.783233642578 intr.fx = 638.864135742188 in...
[ 11748, 299, 32152, 355, 45941, 198, 11748, 269, 85, 17, 198, 11748, 12972, 260, 874, 1072, 17, 355, 44608, 198, 11748, 640, 11, 25064, 11, 15095, 198, 198, 69, 4374, 796, 657, 13, 405, 2481, 198, 12093, 4470, 796, 657, 13, 2919, 198...
2.148582
1,622
from argparse import ArgumentParser from evidencegraph.argtree import RELATION_SETS_BY_NAME from evidencegraph.corpus import CORPORA from evidencegraph.evaluation import evaluate_setting if __name__ == "__main__": parser = ArgumentParser( description="""Evaluate argumentation parsing predictions""" )...
[ 6738, 1822, 29572, 1330, 45751, 46677, 198, 198, 6738, 2370, 34960, 13, 853, 21048, 1330, 29749, 6234, 62, 28480, 50, 62, 17513, 62, 20608, 198, 6738, 2370, 34960, 13, 10215, 79, 385, 1330, 23929, 44680, 32, 198, 6738, 2370, 34960, 13, ...
2.328125
448
from common.dataaccess import MongoAccessLayer from common.timeutil import now import numpy as np import os import sys from classifier import workload_comparision as wc # data = [] # data.append({'metric': metric, 'mean': query_mean[0], 'std': query_std[0]}) # data = { # 'metrics': {'n_samples': QUERY_STE...
[ 6738, 2219, 13, 7890, 15526, 1330, 42591, 15457, 49925, 198, 6738, 2219, 13, 2435, 22602, 1330, 783, 198, 11748, 299, 32152, 355, 45941, 198, 198, 11748, 28686, 198, 11748, 25064, 198, 198, 6738, 1398, 7483, 1330, 26211, 62, 785, 1845, ...
2.129129
333
''' Write a program that maps a list of words into a list of integers representing the lengths of the correponding words. Write it in three different ways: 1) using a for-loop, 2) using the higher order function map(), and 3) using list comprehensions. ''' #2 l = ['apple', 'orange', 'cat'] print map( la...
[ 7061, 6, 201, 198, 16594, 257, 1430, 326, 8739, 257, 1351, 286, 2456, 656, 257, 1351, 286, 37014, 10200, 262, 20428, 286, 262, 1162, 7856, 42703, 2456, 13, 201, 198, 16594, 340, 287, 1115, 1180, 2842, 25, 201, 198, 16, 8, 1262, 257,...
2.758621
145
import filecmp import os import shutil import tempfile from datetime import date, datetime from pathlib import Path from tempfile import NamedTemporaryFile, TemporaryDirectory from unittest import TestCase import sec_certs.constants as constants import sec_certs.helpers as helpers from sec_certs.dataset.common_criteri...
[ 11748, 2393, 48991, 198, 11748, 28686, 198, 11748, 4423, 346, 198, 11748, 20218, 7753, 198, 6738, 4818, 8079, 1330, 3128, 11, 4818, 8079, 198, 6738, 3108, 8019, 1330, 10644, 198, 6738, 20218, 7753, 1330, 34441, 12966, 5551, 8979, 11, 4604...
3.700787
127
#!/usr/bin/env python # -*- coding: utf-8 -*- import inkyphat import time import sys print("""Inky pHAT: Clean Displays solid blocks of red, black, and white to clean the Inky pHAT display of any screen burn. """.format(sys.argv[0])) if len(sys.argv) < 2: print("""Usage: {} <colour> <number of cycles> V...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 11748, 287, 2584, 746, 265, 198, 11748, 640, 198, 11748, 25064, 198, 198, 4798, 7203, 15931, 818, 2584, 22918, 140...
2.223423
555
# Python 3 version of index.py import math # Input -> 10 20 monkey a, b, c = input().split(' ') print(a, b, c) # Input with map -> 10 20 a, b = map(int, input().split(' ')) print(a, b) # Input with map -> 10, 20 a, b = map(int, input().split(',')) print(a, b) # Python has dynamic data type so integers, float are s...
[ 2, 11361, 513, 2196, 286, 6376, 13, 9078, 198, 198, 11748, 10688, 198, 198, 2, 23412, 4613, 838, 1160, 21657, 198, 64, 11, 275, 11, 269, 796, 5128, 22446, 35312, 10786, 705, 8, 198, 4798, 7, 64, 11, 275, 11, 269, 8, 198, 198, 2,...
2.080868
507
# Project 1 - The Scope! # Scenario: Congrats, your Penetration testing company Red Planet has # landed an external assessment for Microsoft! Your point of contact has # give you a few IP addresses for you to test. Like with any test you # should always verify the scope given to you to make sure there wasn't # a mista...
[ 2, 4935, 352, 532, 383, 41063, 0, 198, 198, 2, 1446, 39055, 25, 2908, 46714, 11, 534, 46975, 1358, 4856, 1664, 2297, 11397, 468, 198, 2, 11406, 281, 7097, 8922, 329, 5413, 0, 3406, 966, 286, 2800, 468, 198, 2, 1577, 345, 257, 1178...
2.960707
509
/home/runner/.cache/pip/pool/75/74/1f/cd550c3fd39c07a88abf9ca8d462c4c05077809e3ca61220a3837e78cd
[ 14, 11195, 14, 16737, 11757, 23870, 14, 79, 541, 14, 7742, 14, 2425, 14, 4524, 14, 16, 69, 14, 10210, 22730, 66, 18, 16344, 2670, 66, 2998, 64, 3459, 397, 69, 24, 6888, 23, 67, 39997, 66, 19, 66, 28669, 3324, 34583, 68, 18, 6888...
1.811321
53
import itertools import logging import random from collections import defaultdict from concurrent.futures import wait from concurrent.futures.thread import ThreadPoolExecutor from bot import RedditBot from utils import rand_wait_min, rand_wait_sec
[ 11748, 340, 861, 10141, 198, 11748, 18931, 198, 11748, 4738, 198, 6738, 17268, 1330, 4277, 11600, 198, 6738, 24580, 13, 69, 315, 942, 1330, 4043, 198, 6738, 24580, 13, 69, 315, 942, 13, 16663, 1330, 14122, 27201, 23002, 38409, 198, 198,...
3.968254
63
import numpy as np def skew_symmetric(v): """Returns a skew symmetric matrix from vector. p q r""" return np.array([[0, -v[2], v[1]], [v[2], 0, -v[0]], [-v[1], v[0], 0]]) def rotation_rpy(roll, pitch, yaw): """Returns a rotation matrix from roll pitch yaw. ZYX ...
[ 11748, 299, 32152, 355, 45941, 628, 198, 198, 4299, 43370, 62, 1837, 3020, 19482, 7, 85, 2599, 198, 220, 220, 220, 37227, 35561, 257, 43370, 23606, 19482, 17593, 422, 15879, 13, 279, 10662, 374, 37811, 198, 220, 220, 220, 1441, 45941, ...
1.815004
5,692
#!/usr/bin/env python3 import os import re import sys import operator import csv error_counter = {} error_user = {} info_user = {} #This function will read each line of the syslog.log file and check if it is an error or an info message. #If it is an error it will read the error from the line and increment into the...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 198, 11748, 28686, 198, 11748, 302, 198, 11748, 25064, 198, 11748, 10088, 198, 11748, 269, 21370, 198, 198, 18224, 62, 24588, 796, 23884, 198, 18224, 62, 7220, 796, 23884, 198, 10951...
3.587413
286
from math import log10 from itertools import tee
[ 6738, 10688, 1330, 2604, 940, 198, 198, 6738, 340, 861, 10141, 1330, 30479, 628, 198 ]
3.466667
15
""" Writer for amber """ import time import pandas as pd import math import re import numpy as np from collections import Counter # Python 2/3 compat try: from StringIO import StringIO except ImportError: from io import StringIO import eex import logging # AMBER local imports from . import amber_metadata a...
[ 37811, 198, 34379, 329, 36505, 198, 198, 37811, 198, 198, 11748, 640, 198, 11748, 19798, 292, 355, 279, 67, 198, 11748, 10688, 198, 11748, 302, 198, 11748, 299, 32152, 355, 45941, 198, 6738, 17268, 1330, 15034, 198, 198, 2, 11361, 362, ...
2.320694
6,514
import galaxy.model from galaxy.model.orm import * from galaxy.model.mapping import context as sa_session from base.twilltestcase import * import sys
[ 11748, 16161, 13, 19849, 198, 6738, 16161, 13, 19849, 13, 579, 1330, 1635, 198, 6738, 16161, 13, 19849, 13, 76, 5912, 1330, 4732, 355, 473, 62, 29891, 198, 6738, 2779, 13, 4246, 359, 9288, 7442, 1330, 1635, 198, 11748, 25064, 198 ]
3.658537
41
from helpers.Logger import Logger from calendar import Calendar from employee import Employee import json import sys import prettytable import os import time import re # Logger setup logging = Logger() log = logging.realm('Shift Manager') if __name__ == "__main__": main()
[ 6738, 49385, 13, 11187, 1362, 1330, 5972, 1362, 198, 6738, 11845, 1330, 26506, 198, 6738, 6538, 1330, 36824, 198, 11748, 33918, 198, 11748, 25064, 198, 11748, 2495, 11487, 198, 11748, 28686, 198, 11748, 640, 198, 11748, 302, 198, 198, 2, ...
3.469136
81
"""Helpers for polyphemus. Utilities API ============= """ from __future__ import print_function import os import io import re import sys import glob import tempfile import functools import subprocess from copy import deepcopy from pprint import pformat from collections import Mapping, Iterable, Hashable, Sequence, na...
[ 37811, 12621, 19276, 329, 7514, 79, 4411, 385, 13, 198, 198, 18274, 2410, 7824, 198, 25609, 28, 198, 37811, 198, 6738, 11593, 37443, 834, 1330, 3601, 62, 8818, 198, 11748, 28686, 198, 11748, 33245, 198, 11748, 302, 198, 11748, 25064, 19...
2.422454
2,779
output_filename = 'kings_mountain_taxes.csv' output_pfilename = 'kmes_taxes.p' base_url = "https://gis.smcgov.org/maps/rest/services/WEBAPPS/COUNTY_SAN_MATEO_TKNS/MapServer/identify" token = "fytmg9tR2rSx-1Yp0SWJ_qkAExGi-ftZoK7h4wk91UY." polygon = [(-13622312.48,4506393.674), (-13622866.64,4504129.241), ...
[ 22915, 62, 34345, 796, 705, 74, 654, 62, 14948, 391, 62, 19290, 274, 13, 40664, 6, 198, 22915, 62, 79, 34345, 796, 705, 74, 6880, 62, 19290, 274, 13, 79, 6, 198, 8692, 62, 6371, 796, 366, 5450, 1378, 70, 271, 13, 5796, 66, 9567,...
1.874038
1,429
from django.urls import path, re_path import multiprocessing import sys from . import views urlpatterns = [ path("", views.index, name='index'), path("create/", views.index, {"create": True}, name="create"), re_path(r"^logs/(?P<wid>[0-9]+)$", views.logs, name='logs'), re_path(r"^rules/(?P<wid>[0-9]+)$"...
[ 6738, 42625, 14208, 13, 6371, 82, 1330, 3108, 11, 302, 62, 6978, 198, 11748, 18540, 305, 919, 278, 198, 11748, 25064, 198, 6738, 764, 1330, 5009, 198, 198, 6371, 33279, 82, 796, 685, 198, 220, 220, 220, 3108, 7203, 1600, 5009, 13, 9...
2.471831
142
from views import dump_result from django.http import HttpResponse
[ 6738, 5009, 1330, 10285, 62, 20274, 198, 198, 6738, 42625, 14208, 13, 4023, 1330, 367, 29281, 31077, 198, 197, 197, 198, 197, 197, 198, 197, 197 ]
2.923077
26
undefined for (i = 0; i < document.getElementsByTagName("code").length; i++) { console.log(document.getElementsByTagName("code")[i].innerText); }
[ 198, 917, 18156, 198, 1640, 357, 72, 796, 657, 26, 1312, 1279, 3188, 13, 1136, 36, 3639, 3886, 24835, 5376, 7203, 8189, 11074, 13664, 26, 1312, 29577, 1391, 220, 220, 220, 220, 8624, 13, 6404, 7, 22897, 13, 1136, 36, 3639, 3886, 248...
2.732143
56
#!/usr/bin/env python # Copyright (c) 2019 Nerian Vision GmbH # # 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, m...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 198, 2, 15069, 357, 66, 8, 13130, 21783, 666, 19009, 402, 2022, 39, 198, 2, 198, 2, 2448, 3411, 318, 29376, 7520, 11, 1479, 286, 3877, 11, 284, 597, 1048, 16727, 257, 4866, 198, 2,...
2.836137
1,605
from micarraylib.arraycoords.core import micarray from micarraylib.arraycoords import array_shapes_raw from micarraylib.arraycoords.array_shapes_utils import _polar2cart import pytest import numpy as np
[ 6738, 12314, 18747, 8019, 13, 18747, 1073, 3669, 13, 7295, 1330, 12314, 18747, 198, 6738, 12314, 18747, 8019, 13, 18747, 1073, 3669, 1330, 7177, 62, 1477, 7916, 62, 1831, 198, 6738, 12314, 18747, 8019, 13, 18747, 1073, 3669, 13, 18747, ...
3.269841
63
import ocr.utils as utils def toDataURL(img, mime = None): """Image to Data URL. Args: img: CV2 Image object or image path. mime: The media type of the Data URL. Required if the image is an CV2 Image object. Returns: Return Data URL and MIME type. Raises: ValueError: Image types other...
[ 11748, 267, 6098, 13, 26791, 355, 3384, 4487, 201, 198, 201, 198, 4299, 284, 6601, 21886, 7, 9600, 11, 285, 524, 796, 6045, 2599, 201, 198, 220, 37227, 5159, 284, 6060, 10289, 13, 201, 198, 220, 943, 14542, 25, 201, 198, 220, 220, ...
2.569307
202
import math import heapq if __name__ == '__main__': sol=Solution() piles = [4, 3, 6, 7] k = 3 print(sol.minStoneSum(piles,k))
[ 11748, 10688, 198, 11748, 24575, 80, 198, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 198, 220, 220, 220, 1540, 28, 46344, 3419, 198, 220, 220, 220, 30935, 796, 685, 19, 11, 513, 11, 718, 11, 767, 60, 198, 220, ...
2.184615
65
from .element import Element
[ 6738, 764, 30854, 1330, 11703, 628 ]
5
6
#!/usr/bin/python # -*- coding: utf-8 -*- """ Leap Motion + Trello A plain Trello view with Leap Motion UI. """ import Leap, sys, os, math, time import ConfigParser, argparse from collections import deque from PyQt...
[ 2, 48443, 14629, 14, 8800, 14, 29412, 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, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, ...
2.581395
645
from keckdrpframework.primitives.base_primitive import BasePrimitive from kcwidrp.primitives.kcwi_file_primitives import kcwi_fits_reader, \ kcwi_fits_writer, get_master_name, strip_fname import os
[ 6738, 885, 694, 7109, 79, 30604, 13, 19795, 20288, 13, 8692, 62, 19795, 1800, 1330, 7308, 23828, 1800, 198, 6738, 479, 66, 28029, 81, 79, 13, 19795, 20288, 13, 74, 66, 37686, 62, 7753, 62, 19795, 20288, 1330, 479, 66, 37686, 62, 210...
2.780822
73
# -*- coding: utf-8 -*- # # Copyright 2019 Amazon.com, Inc. or its affiliates. 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. A copy of the # License is located at # # http://aws.amazon.com/apache2.0/ # # or in ...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 198, 2, 15069, 13130, 6186, 13, 785, 11, 3457, 13, 393, 663, 29116, 13, 1439, 6923, 33876, 13, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, ...
3.535
200
import pytest import random import time import itertools from multiprocessing.pool import ThreadPool from datetime import timedelta from emit.globals import Proxy, GuardedProxy, Config, ConfigDescriptor, LoggerProxy, log, conf from ..helpers import TestCase class CallableStack(list): """ Unit testing util...
[ 11748, 12972, 9288, 198, 11748, 4738, 198, 11748, 640, 198, 11748, 340, 861, 10141, 198, 6738, 18540, 305, 919, 278, 13, 7742, 1330, 14122, 27201, 198, 6738, 4818, 8079, 1330, 28805, 12514, 198, 6738, 27588, 13, 4743, 672, 874, 1330, 38...
2.317227
476
numeros = input("Digite dois nmeros: ").split(" ") num1 = float(numeros[0]) num2 = float(numeros[1]) # print(f"{num1} + {num2} = {num1 + num2}") print("%.2f + %.2f = %.2f" %(num1, num2, (num1 + num2))) # print(num1, "+", num2, "=", num1 + num2) print(num1, "-", num2, "=", num1 - num2) print(num1, "*", num2, "=", nu...
[ 77, 6975, 418, 796, 5128, 7203, 19511, 578, 466, 271, 299, 647, 418, 25, 366, 737, 35312, 7203, 366, 8, 198, 198, 22510, 16, 796, 12178, 7, 77, 6975, 418, 58, 15, 12962, 198, 22510, 17, 796, 12178, 7, 77, 6975, 418, 58, 16, 1296...
1.994652
187
#!/usr/bin/env python3 ## Copyright (c) 2011 Steven D'Aprano. ## See the file __init__.py for the licence terms for this software. """ Run the stats package as if it were an executable module. Usage: $ python3 -m stats [options] Options: -h --help Print this help text. -V --version Print the ...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 198, 2235, 220, 15069, 357, 66, 8, 2813, 8239, 360, 6, 13680, 5733, 13, 198, 2235, 220, 4091, 262, 2393, 11593, 15003, 834, 13, 9078, 329, 262, 17098, 2846, 329, 428, 3788, 13, ...
3.136778
329
import unittest import pymongo import datetime from bson import ObjectId from iu_mongo import Document, connect from iu_mongo.fields import * from iu_mongo.errors import ValidationError import iu_mongo
[ 11748, 555, 715, 395, 198, 11748, 279, 4948, 25162, 198, 11748, 4818, 8079, 198, 6738, 275, 1559, 1330, 9515, 7390, 198, 6738, 1312, 84, 62, 76, 25162, 1330, 16854, 11, 2018, 198, 6738, 1312, 84, 62, 76, 25162, 13, 25747, 1330, 1635, ...
3.1875
64
# -*- coding: utf-8 -*- # Copyright 2018 The Chromium OS Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """Chrome OS Image file signing.""" from __future__ import print_function import collections from chromite.lib import commandli...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 15069, 2864, 383, 18255, 1505, 7294, 46665, 13, 1439, 2489, 10395, 13, 198, 2, 5765, 286, 428, 2723, 2438, 318, 21825, 416, 257, 347, 10305, 12, 7635, 5964, 326, 46...
3.079108
493
import requests import json from decimal import Decimal from bitsv.network import currency_to_satoshi from bitsv.network.meta import Unspent # left here as a reminder to normalize get_transaction() from bitsv.network.transaction import Transaction, TxInput, TxOutput from bitsv.constants import BSV DEFAULT_TIMEOUT = ...
[ 11748, 7007, 198, 11748, 33918, 198, 6738, 32465, 1330, 4280, 4402, 198, 198, 6738, 10340, 85, 13, 27349, 1330, 7395, 62, 1462, 62, 49720, 13704, 198, 6738, 10340, 85, 13, 27349, 13, 28961, 1330, 791, 2777, 298, 198, 198, 2, 1364, 994...
3.229358
109
from rest_framework.response import Response
[ 6738, 1334, 62, 30604, 13, 26209, 1330, 18261, 628 ]
5.111111
9
import pandas as pd import requests from pandas_datareader.base import _BaseReader
[ 11748, 19798, 292, 355, 279, 67, 198, 11748, 7007, 198, 198, 6738, 19798, 292, 62, 19608, 533, 5067, 13, 8692, 1330, 4808, 14881, 33634, 628 ]
3.4
25
# coding:utf-8 import numpy as np import torch import math
[ 2, 19617, 25, 40477, 12, 23, 198, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 28034, 198, 11748, 10688, 628, 628 ]
3
21
# flake8: noqa: F401 from .core import db from .core import db_cli from .core import execute_query from .models.incidents import Incidents, IncidentSchema from .models.users import Users
[ 2, 781, 539, 23, 25, 645, 20402, 25, 376, 21844, 198, 6738, 764, 7295, 1330, 20613, 198, 6738, 764, 7295, 1330, 20613, 62, 44506, 198, 6738, 764, 7295, 1330, 12260, 62, 22766, 198, 198, 6738, 764, 27530, 13, 1939, 3231, 1330, 3457, ...
3.357143
56
"""Views to receive inbound notifications from Mattermost, parse them, and enqueue worker actions.""" import json import logging import shlex from django.conf import settings from django.http import HttpResponse from django.utils.decorators import method_decorator from django.views import View from django.views.decor...
[ 37811, 7680, 82, 284, 3328, 287, 7784, 19605, 422, 16900, 1712, 11, 21136, 606, 11, 290, 551, 36560, 8383, 4028, 526, 15931, 198, 198, 11748, 33918, 198, 11748, 18931, 198, 11748, 427, 2588, 198, 198, 6738, 42625, 14208, 13, 10414, 1330...
2.817021
940
from twisted.spread import pb from twisted.internet import reactor from tserver import User, CopyUser import sys, signal player_count = 0 loop = 0 client = None game_creator = False pb.setUnjellyableForClass(CopyUser, RemoteUser) signal.signal(signal.SIGINT, handle_signal) if __name__ == '__main__': connect('m...
[ 6738, 19074, 13, 43639, 1330, 279, 65, 198, 6738, 19074, 13, 37675, 1330, 21905, 198, 6738, 256, 15388, 1330, 11787, 11, 17393, 12982, 198, 198, 11748, 25064, 11, 6737, 198, 198, 7829, 62, 9127, 796, 657, 198, 26268, 796, 657, 198, 16...
3.016667
120
""" MIT License Copyright (c) 2021 NextChai 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, modify, merge, publish, dist...
[ 37811, 198, 36393, 13789, 198, 198, 15269, 357, 66, 8, 33448, 7406, 1925, 1872, 198, 198, 5990, 3411, 318, 29376, 7520, 11, 1479, 286, 3877, 11, 284, 597, 1048, 16727, 257, 4866, 198, 1659, 428, 3788, 290, 3917, 10314, 3696, 357, 1169...
3.765273
311
COLOR_SCHEMES = [ " ", "picking", "random", "uniform", "atomindex", "residueindex", "chainindex", "modelindex", "sstruc", "element", "resname", "bfactor", "hydrophobicity", "value", "volume", "occupancy" ]
[ 46786, 62, 50, 3398, 3620, 1546, 796, 685, 198, 220, 220, 220, 366, 33172, 366, 48864, 1600, 366, 25120, 1600, 366, 403, 6933, 1600, 366, 37696, 9630, 1600, 366, 411, 312, 518, 9630, 1600, 198, 220, 220, 220, 366, 7983, 9630, 1600, ...
2.564706
85
import os import webbrowser import numpy as np import csv import traceback import arabic_reshaper from tkinter import * from tkinter import messagebox from tkinter.filedialog import askopenfilename from PIL import ImageTk, Image from run_model import create_and_run_model if __name__ == "__main__": main_window()
[ 11748, 28686, 198, 11748, 3992, 40259, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 269, 21370, 198, 11748, 12854, 1891, 198, 11748, 610, 397, 291, 62, 3447, 2136, 198, 6738, 256, 74, 3849, 1330, 1635, 198, 6738, 256, 74, 3849, 1330,...
3.148515
101
import logging import os from crispy.lib.myparser import CrispyArgumentParser from rpyc.utils.classic import download from crispy.lib.module import * from crispy.lib.fprint import * logger = logging.getLogger(__name__) __class_name__ = "DownloadModule"
[ 11748, 18931, 198, 11748, 28686, 198, 198, 6738, 42807, 13, 8019, 13, 1820, 48610, 1330, 15088, 9078, 28100, 1713, 46677, 198, 6738, 374, 9078, 66, 13, 26791, 13, 49421, 1330, 4321, 198, 6738, 42807, 13, 8019, 13, 21412, 1330, 1635, 198...
3.282051
78
""" Copyright (c) 2014-2015-2015, The University of Texas at Austin. All rights reserved. This file is part of BLASpy and is available under the 3-Clause BSD License, which can be found in the LICENSE file at the top-level directory or at http://opensource.org/licenses/BSD-3-Clause """ from ..he...
[ 37811, 628, 220, 220, 220, 15069, 357, 66, 8, 1946, 12, 4626, 12, 4626, 11, 383, 2059, 286, 3936, 379, 9533, 13, 198, 220, 220, 220, 1439, 2489, 10395, 13, 628, 220, 220, 220, 770, 2393, 318, 636, 286, 9878, 1921, 9078, 290, 318, ...
2.305762
1,753
import torch import torch.nn as nn import torch.nn.functional as F import numpy as np from utils.torch_utils import *
[ 11748, 28034, 201, 198, 11748, 28034, 13, 20471, 355, 299, 77, 201, 198, 11748, 28034, 13, 20471, 13, 45124, 355, 376, 201, 198, 11748, 299, 32152, 355, 45941, 201, 198, 6738, 3384, 4487, 13, 13165, 354, 62, 26791, 1330, 1635, 201, 19...
2.372881
59
import json import pythonosc import argparse import math import datetime from pythonosc import dispatcher, osc_server, udp_client, osc_message_builder import requests from collections import OrderedDict from statistics import mean ## added variables to change the ip and port easily ## testing if Git works with ST ip...
[ 11748, 33918, 198, 11748, 21015, 17500, 198, 11748, 1822, 29572, 198, 11748, 10688, 198, 11748, 4818, 8079, 198, 6738, 21015, 17500, 1330, 49952, 11, 267, 1416, 62, 15388, 11, 334, 26059, 62, 16366, 11, 267, 1416, 62, 20500, 62, 38272, ...
2.583672
5,169
import argparse import importlib if __name__ == "__main__": parser = argparse.ArgumentParser() parser.add_argument('--input_path', help='Path that contains data in MOT format', required=True) parser.add_argument('--output_path', help='Path that will contains the output', required=True) parser.add_argum...
[ 11748, 1822, 29572, 198, 11748, 1330, 8019, 198, 198, 361, 11593, 3672, 834, 6624, 366, 834, 12417, 834, 1298, 198, 220, 220, 220, 30751, 796, 1822, 29572, 13, 28100, 1713, 46677, 3419, 198, 220, 220, 220, 30751, 13, 2860, 62, 49140, ...
2.96729
214
# Copyright (c) 2020, Huawei Technologies.All rights reserved. # # Licensed under the BSD 3-Clause License (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://opensource.org/licenses/BSD-3-Clause # # Unless required by applicable law...
[ 2, 15069, 357, 66, 8, 12131, 11, 43208, 21852, 13, 3237, 2489, 10395, 13, 198, 2, 198, 2, 49962, 739, 262, 347, 10305, 513, 12, 2601, 682, 13789, 220, 357, 1169, 366, 34156, 15341, 198, 2, 345, 743, 407, 779, 428, 2393, 2845, 287,...
3.634538
249
import requests from bs4 import BeautifulSoup url = 'https://www.vanityfair.com/style/society/2014/06/monica-lewinsky-humiliation-culture' vf = requests.get(url) vf.status_code s = BeautifulSoup(vf.text, 'lxml') print(s.prettify()) text_article = s.find('div', attrs={'class' : 'content-background'}).find_all('p') ...
[ 11748, 7007, 198, 6738, 275, 82, 19, 1330, 23762, 50, 10486, 198, 198, 6371, 796, 705, 5450, 1378, 2503, 13, 10438, 414, 22043, 13, 785, 14, 7635, 14, 35634, 1905, 14, 4967, 14, 3312, 14, 2144, 3970, 12, 293, 86, 19870, 12, 17047, ...
2.587413
143
import os from envpy.variables import Var as Variables from envpy.variables import __printenv__
[ 11748, 28686, 198, 6738, 17365, 9078, 13, 25641, 2977, 1330, 12372, 355, 15965, 2977, 198, 6738, 17365, 9078, 13, 25641, 2977, 1330, 11593, 4798, 24330, 834, 628 ]
3.592593
27
from models.base_model import BaseModel from keras.models import Sequential from keras.layers import Input, Dense, Conv1D, MaxPooling1D, Dropout, Flatten, BatchNormalization from keras.optimizers import Adam import tensorflow as tf
[ 6738, 4981, 13, 8692, 62, 19849, 1330, 7308, 17633, 198, 198, 6738, 41927, 292, 13, 27530, 1330, 24604, 1843, 198, 6738, 41927, 292, 13, 75, 6962, 1330, 23412, 11, 360, 1072, 11, 34872, 16, 35, 11, 5436, 27201, 278, 16, 35, 11, 1425...
3.391304
69
debug_print = False has_run_once = False
[ 24442, 62, 4798, 796, 10352, 198, 10134, 62, 5143, 62, 27078, 796, 10352, 628, 628 ]
2.933333
15
# Copyright 2020 EMBL - European Bioinformatics Institute # # 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, 15069, 12131, 17228, 9148, 532, 3427, 16024, 259, 18982, 873, 5136, 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...
3.497253
364
if __name__ == '__main__': C = [5, 15, 8, 10] S = [5, 4, 1, 6] N = [3, 5, 6, 4] M = 15 K = 5 print(partido_rec_mem_camino(C, S, N, M))
[ 198, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 198, 197, 34, 796, 685, 20, 11, 1315, 11, 807, 11, 838, 60, 198, 197, 50, 796, 685, 20, 11, 604, 11, 352, 11, 718, 60, 198, 197, 45, 796, 685, 18, 11, 642, ...
1.702381
84
#!/usr/bin/env python3 # From https://people.sc.fsu.edu/~jburkardt/py_src/hilbert_curve/hilbert_curve.py # if ( __name__ == '__main__' ): timestamp ( ) hilbert_curve_test ( ) timestamp ( )
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 2, 3574, 3740, 1378, 15332, 13, 1416, 13, 69, 2385, 13, 15532, 14, 93, 73, 6236, 74, 446, 83, 14, 9078, 62, 10677, 14, 71, 346, 4835, 62, 22019, 303, 14, 71, 346, 4835, 62, ...
2.238636
88
from rest_framework import permissions
[ 6738, 1334, 62, 30604, 1330, 21627 ]
6.333333
6
#!/usr/bin/env python import sys import getopt import requests import urllib.parse import json argumentList = sys.argv[1:] # Options options = "ht:" # Long options long_options = ["help", "title"] try: # Parsing argument arguments, values = getopt.getopt(argumentList, options, long_options) # checki...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 11748, 25064, 198, 11748, 651, 8738, 198, 11748, 7007, 198, 11748, 2956, 297, 571, 13, 29572, 198, 11748, 33918, 628, 198, 49140, 8053, 796, 25064, 13, 853, 85, 58, 16, 47715, 198, 198...
2.544521
292
# -*- coding: utf-8 -*- ''' script for initialization. ''' import os import requests from .script_init_tabels import run_init_tables from mapmeta.model.mapmeta_model import MMapMeta from lxml import etree def do_for_maplet(mapserver_ip): ''' `maplet_arch//030_gen_mapproxy.py` mapfile yaml . ''' r...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 7061, 6, 198, 12048, 329, 37588, 13, 198, 7061, 6, 198, 11748, 28686, 198, 11748, 7007, 198, 6738, 764, 12048, 62, 15003, 62, 8658, 1424, 1330, 1057, 62, 15003, 6...
1.78676
1,707
from typing import Dict, Any import pandas as pd from tqdm.contrib import tmap from sage.all import RR, ZZ import dissect.utils.database_handler as database from dissect.definitions import STD_CURVE_DICT, ALL_CURVE_COUNT
[ 6738, 19720, 1330, 360, 713, 11, 4377, 198, 198, 11748, 19798, 292, 355, 279, 67, 198, 6738, 256, 80, 36020, 13, 3642, 822, 1330, 256, 8899, 198, 198, 6738, 35021, 13, 439, 1330, 26067, 11, 1168, 57, 198, 11748, 38319, 13, 26791, 13...
3.026316
76