content
stringlengths
1
1.04M
input_ids
listlengths
1
774k
ratio_char_token
float64
0.38
22.9
token_count
int64
1
774k
#!/usr/bin/python -u import argparse import sys import re import os import traceback from operator import itemgetter, attrgetter from biokbase.probabilistic_annotation.Client import _read_inifile from biokbase.workspaceService.Client import * desc = ''' Given a JSON object calculate the false positive, negative rates...
[ 2, 48443, 14629, 14, 8800, 14, 29412, 532, 84, 198, 198, 11748, 1822, 29572, 198, 11748, 25064, 198, 11748, 302, 198, 11748, 28686, 198, 11748, 12854, 1891, 198, 6738, 10088, 1330, 2378, 1136, 353, 11, 708, 81, 1136, 353, 198, 6738, 3...
2.539645
4,225
# Imports the Google Cloud client library from google.cloud import language from google.cloud.language import enums from google.cloud.language import types import json import re
[ 2, 1846, 3742, 262, 3012, 10130, 5456, 5888, 198, 6738, 23645, 13, 17721, 1330, 3303, 198, 6738, 23645, 13, 17721, 13, 16129, 1330, 551, 5700, 198, 6738, 23645, 13, 17721, 13, 16129, 1330, 3858, 198, 198, 11748, 33918, 198, 11748, 302, ...
4.261905
42
from requests_ntlm import HttpNtlmAuth __all__ = [HttpNtlmAuth]
[ 6738, 7007, 62, 429, 75, 76, 1330, 367, 29281, 45, 28781, 76, 30515, 198, 198, 834, 439, 834, 796, 685, 43481, 45, 28781, 76, 30515, 60 ]
2.461538
26
# Generated by Django 3.0.7 on 2020-06-30 14:42 from django.db import migrations, models
[ 2, 2980, 515, 416, 37770, 513, 13, 15, 13, 22, 319, 12131, 12, 3312, 12, 1270, 1478, 25, 3682, 198, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 11, 4981, 628 ]
2.84375
32
"""Tutorial: Guess the Number, by Al Sweigart al@inventwithpython.com Part 1 of a tutorial to make a "Guess the Number" game, bit by bit.""" # Try copying the code in this program on your own and running the # program before moving on to part 2. (You don't have to copy the # comments.) # Everything after a # is a "c...
[ 37811, 51, 44917, 25, 37571, 262, 7913, 11, 416, 978, 19372, 328, 433, 435, 31, 259, 1151, 4480, 29412, 13, 785, 198, 198, 7841, 352, 286, 257, 11808, 284, 787, 257, 366, 8205, 408, 262, 7913, 1, 983, 11, 1643, 416, 1643, 526, 159...
3.799197
249
from economic.auth import Authentication import pytest from _pytest.fixtures import SubRequest @pytest.fixture
[ 6738, 3034, 13, 18439, 1330, 48191, 198, 11748, 12972, 9288, 198, 6738, 4808, 9078, 9288, 13, 69, 25506, 1330, 3834, 18453, 628, 198, 31, 9078, 9288, 13, 69, 9602, 198 ]
3.766667
30
#!/usr/bin/env python # -*- coding: utf-8 -*- """Description Christopher J.C. Burges, Robert Ragno, and Quoc Viet Le. 2006. Learning to Rank with Nonsmooth Cost Functions. In Proceedings of NIPS conference. 193–200. """ import torch import torch.nn.functional as F from ptranking.data.data_utils import LABEL_TYPE fro...
[ 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, 11828, 198, 38025, 449, 13, 34, 13, 5481, 3212, 11, 5199, 38000, 3919, 11, 290, 2264, 420, 8730, 1004, 13...
2.236582
1,919
# AUTO GENERATED FILE - DO NOT EDIT from dash.development.base_component import Component, _explicitize_args class TableOfContents(Component): """A TableOfContents component. Build a table of contents list with links to the headers tag. Keyword arguments: - id (string; optional): Unique identifier for the compo...
[ 2, 47044, 46, 24700, 1137, 11617, 45811, 532, 8410, 5626, 48483, 198, 198, 6738, 14470, 13, 31267, 13, 8692, 62, 42895, 1330, 35100, 11, 4808, 20676, 3628, 1096, 62, 22046, 628, 198, 4871, 8655, 5189, 15842, 7, 21950, 2599, 198, 220, ...
3.688889
225
"""Test asyncpraw.models.front.""" from .. import IntegrationTest
[ 37811, 14402, 355, 2047, 13155, 1831, 13, 27530, 13, 8534, 526, 15931, 198, 6738, 11485, 1330, 38410, 14402, 628 ]
3.526316
19
from flask import render_template, flash, redirect, request, url_for from app import app from .forms import ConfigForm from .scrabble_logic import Scrabble tile_draw = [] grouped = {} hasblank = 0 @app.route('/') @app.route('/index') @app.route('/table') @app.route('/config', methods=['GET', 'POST'])
[ 6738, 42903, 1330, 8543, 62, 28243, 11, 7644, 11, 18941, 11, 2581, 11, 19016, 62, 1640, 198, 6738, 598, 1330, 598, 198, 6738, 764, 23914, 1330, 17056, 8479, 198, 6738, 764, 1416, 25619, 903, 62, 6404, 291, 1330, 1446, 25619, 903, 198,...
2.906542
107
import enum from elkconfdparser import errors
[ 11748, 33829, 198, 198, 6738, 1288, 74, 10414, 26059, 28198, 1330, 8563, 628, 628, 628 ]
3.466667
15
#!/usr/bin/env python3 import os import sys LIB_PATH = os.environ['LADYBUG_LIB_PATH'] sys.path.append(LIB_PATH) from build_message_lib import BuildMessage from plot_weather_lib import PlotWeather from send_message_lib import SendMessage # TODO: Error checking needs improvement. # plot_weather() returns True (could cre...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 198, 11748, 28686, 198, 11748, 25064, 198, 40347, 62, 34219, 796, 28686, 13, 268, 2268, 17816, 43, 2885, 56, 12953, 62, 40347, 62, 34219, 20520, 198, 17597, 13, 6978, 13, 33295, 7,...
3.154812
239
''':' autocomplete() { if [ $# != 2 ] then echo "USAGE: autocomplete <command> <config-path>" return 1 fi local COMMAND="$1" local CONFIG_PATH="$(readlink -f "$2")" eval " _complete_$COMMAND() { local THIS_FILE=\"\$(readlink -f \"\${BASH_SOURCE[0]}\")\...
[ 7061, 10354, 6, 198, 2306, 42829, 6677, 3419, 198, 90, 198, 220, 220, 220, 611, 685, 720, 2, 14512, 362, 2361, 198, 220, 220, 220, 788, 198, 220, 220, 220, 220, 220, 220, 220, 9809, 366, 2937, 11879, 25, 1960, 42829, 6677, 1279, 2...
2.028302
636
from . import api, cli, extra, core from .core import Habitica
[ 6738, 764, 1330, 40391, 11, 537, 72, 11, 3131, 11, 4755, 198, 6738, 764, 7295, 1330, 41950, 3970, 198 ]
3.315789
19
from ..base import HaravanResource from haravan import mixins import haravan
[ 6738, 11485, 8692, 1330, 2113, 12421, 26198, 198, 6738, 3971, 12421, 1330, 5022, 1040, 198, 11748, 3971, 12421, 628 ]
4.105263
19
# https://atcoder.jp/contests/abc229/tasks/abc229_d S = input() K = int(input()) ans = 0 tail_idx = 0 cum_dot = [0] * (len(S) + 1) for i in range(len(S)): if S[i] == '.': cum_dot[i + 1] = cum_dot[i] + 1 else: cum_dot[i + 1] = cum_dot[i] for head_idx in range(len(S)): while tail_idx <= l...
[ 2, 3740, 1378, 265, 66, 12342, 13, 34523, 14, 3642, 3558, 14, 39305, 23539, 14, 83, 6791, 14, 39305, 23539, 62, 67, 198, 50, 796, 5128, 3419, 198, 42, 796, 493, 7, 15414, 28955, 198, 504, 796, 657, 198, 13199, 62, 312, 87, 796, ...
1.886076
237
# Copyright 2015-2017 Capital One Services, LLC # # 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 ...
[ 2, 15069, 1853, 12, 5539, 9747, 1881, 6168, 11, 11419, 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, ...
3.565341
352
from django.shortcuts import render, redirect from newDjangoProject.todo_app.forms import TodoForm from newDjangoProject.todo_app.models import Todo
[ 6738, 42625, 14208, 13, 19509, 23779, 1330, 8543, 11, 18941, 198, 198, 6738, 649, 35, 73, 14208, 16775, 13, 83, 24313, 62, 1324, 13, 23914, 1330, 309, 24313, 8479, 198, 6738, 649, 35, 73, 14208, 16775, 13, 83, 24313, 62, 1324, 13, 2...
3.142857
49
temp = [] princ = [] c = maior = menor = 0 continuar = ' ' while continuar not in 'Nn': c += 1 print(f'{c}º PESSOA') print('-' * 10) temp.append(str(input(f'Digite o seu nome: '))) temp.append(float(input(f'Digite o seu peso: '))) if c == 1: maior = menor = temp[1] else: if t...
[ 29510, 796, 17635, 198, 1050, 1939, 796, 17635, 198, 66, 796, 17266, 1504, 796, 1450, 273, 796, 657, 198, 18487, 84, 283, 796, 705, 705, 198, 4514, 11143, 283, 407, 287, 705, 45, 77, 10354, 198, 220, 220, 220, 269, 15853, 352, 198, ...
1.915401
461
#! /usr/bin/env python3 import os import sys import time import json import os.path import hashlib import logging import threading from decimal import Decimal from flask_socketio import SocketIO from flask import Flask, render_template, url_for, request from binance_api import api_master_rest_caller from binance_api i...
[ 2, 0, 1220, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 11748, 28686, 198, 11748, 25064, 198, 11748, 640, 198, 11748, 33918, 198, 11748, 28686, 13, 6978, 198, 11748, 12234, 8019, 198, 11748, 18931, 198, 11748, 4704, 278, 198, 6738, 3246...
2.652482
423
from selenium import webdriver from test_utils import * from time import sleep import random if __name__ == "__main__": try: test_SignUpRequest() print("test_SignUpRequest passed") except: print("test_SignUpRequest Failed")
[ 6738, 384, 11925, 1505, 1330, 3992, 26230, 198, 6738, 1332, 62, 26791, 1330, 1635, 198, 6738, 640, 1330, 3993, 198, 11748, 4738, 198, 220, 220, 220, 220, 198, 361, 11593, 3672, 834, 6624, 366, 834, 12417, 834, 1298, 198, 220, 220, 220...
2.636364
99
from marshmallow import EXCLUDE from ma import ma from models.book import BookModel
[ 6738, 22397, 42725, 1330, 7788, 5097, 52, 7206, 198, 6738, 17266, 1330, 17266, 198, 6738, 4981, 13, 2070, 1330, 4897, 17633 ]
3.952381
21
import requests import bs4 as bs if __name__ == "__main__": url = "http://192.168.1.40/.hidden/" scrapping_recursive(url)
[ 11748, 7007, 198, 11748, 275, 82, 19, 355, 275, 82, 198, 198, 361, 11593, 3672, 834, 6624, 366, 834, 12417, 834, 1298, 198, 197, 6371, 796, 366, 4023, 1378, 17477, 13, 14656, 13, 16, 13, 1821, 11757, 30342, 30487, 198, 197, 1416, 43...
2.45098
51
#!/usr/bin/env python # -*- coding: utf-8 -*- # Copyright 2010 British Broadcasting Corporation and Kamaelia Contributors(1) # # (1) Kamaelia Contributors are listed in the AUTHORS file and at # http://www.kamaelia.org/AUTHORS - please extend this file, # not this notice. # # Licensed under the Apache License,...
[ 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, 15069, 3050, 3517, 32250, 10501, 290, 509, 1689, 25418, 25767, 669, 7, 16, 8, 198, 2, 198, 2, 357, 16, 8, ...
2.851796
668
import re from typing import Tuple BINANCE_SYMBOL_SPLITTER = re.compile(r"^(\w+)(BTC|ETH|BNB|XRP|USDT|USDC|TUSD|PAX)$")
[ 11748, 302, 198, 6738, 19720, 1330, 309, 29291, 628, 198, 33, 1268, 19240, 62, 23060, 10744, 3535, 62, 4303, 43, 2043, 5781, 796, 302, 13, 5589, 576, 7, 81, 1, 61, 38016, 86, 10, 5769, 35964, 91, 20702, 91, 15766, 33, 91, 55, 2003...
2.04918
61
import json import os print("relation", "raw_p", "few_p", "p inc", "raw_type_p", "few_type_p", "t inc", sep='\t') relations = ['P1001', 'P101', 'P103', 'P106', 'P108', 'P127', 'P1303', 'P131', 'P136', 'P1376', 'P138', 'P140', 'P1412', 'P159', 'P17', 'P176', 'P178', 'P19', 'P190', 'P20', 'P264', 'P27', 'P276', 'P279'...
[ 11748, 33918, 198, 11748, 28686, 198, 198, 4798, 7203, 49501, 1600, 366, 1831, 62, 79, 1600, 366, 32146, 62, 79, 1600, 366, 79, 753, 1600, 366, 1831, 62, 4906, 62, 79, 1600, 366, 32146, 62, 4906, 62, 79, 1600, 366, 83, 753, 1600, ...
2.166667
738
import json import os import logging import pandas as pd import torch def set_logger(log_path): """Set the logger to log info in terminal and file `log_path`. In general, it is useful to have a logger so that every output to the terminal is saved in a permanent file. Here we save it to `model_dir/train....
[ 11748, 33918, 198, 11748, 28686, 198, 11748, 18931, 198, 198, 11748, 19798, 292, 355, 279, 67, 198, 11748, 28034, 628, 198, 198, 4299, 900, 62, 6404, 1362, 7, 6404, 62, 6978, 2599, 198, 220, 220, 220, 37227, 7248, 262, 49706, 284, 260...
2.494845
582
# SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to # this file be licensed under the Apache-2.0 license or a # compatible open source license. import unittest from unittest.mock import MagicMock, Mock, patch from test_workflow.integ_test.integ_test_start_properties_ope...
[ 2, 30628, 55, 12, 34156, 12, 33234, 7483, 25, 24843, 12, 17, 13, 15, 198, 2, 198, 2, 383, 4946, 18243, 25767, 669, 2421, 9284, 925, 284, 198, 2, 428, 2393, 307, 11971, 739, 262, 24843, 12, 17, 13, 15, 5964, 393, 257, 198, 2, 1...
3.59633
109
from Spectrum import Spectrum from UniversalSpectrumIdentifier import UniversalSpectrumIdentifier # USI created usi = UniversalSpectrumIdentifier("asdf:PXD000561::Adult_Frontalcortex_bRP_Elite_85_f09:scan:17555:VLHPLEGAVVIIFK/2") # usi = UniversalSpectrumIdentifier("mzspec:PXD002437:00261_A06_P001564_B00E_A00_R1:...
[ 6738, 27217, 1330, 27217, 201, 198, 6738, 14499, 49738, 6582, 33234, 7483, 1330, 14499, 49738, 6582, 33234, 7483, 201, 198, 201, 198, 2, 1294, 40, 2727, 201, 198, 385, 72, 796, 14499, 49738, 6582, 33234, 7483, 7203, 292, 7568, 25, 47, ...
2.464674
368
"""Crop maps """ # pylint: disable=C0103 import os import sys import cartopy.crs as ccrs import cartopy.io.shapereader as shpreader import matplotlib as mpl import matplotlib.pyplot as plt import numpy as np from vtra.utils import * mpl.style.use('ggplot') mpl.rcParams['font.size'] = 11. mpl.rcParams['axes.labelsize'...
[ 37811, 34, 1773, 8739, 198, 37811, 198, 2, 279, 2645, 600, 25, 15560, 28, 34, 486, 3070, 198, 11748, 28686, 198, 11748, 25064, 198, 198, 11748, 6383, 11081, 13, 66, 3808, 355, 36624, 3808, 198, 11748, 6383, 11081, 13, 952, 13, 43358, ...
2.435
200
from collections import defaultdict import matplotlib.pyplot as plt from boxes import generate_legend_handles, group_boxplot from commons import WIDTH_IN with open("data/hops.csv") as f: ret = defaultdict(list) for l in f.readlines()[1:]: split = l.rstrip("\n").split(",") # is datacenter? ...
[ 6738, 17268, 1330, 4277, 11600, 198, 198, 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 198, 198, 6738, 10559, 1330, 7716, 62, 1455, 437, 62, 4993, 829, 11, 1448, 62, 3524, 29487, 198, 6738, 36523, 1330, 370, 2389, 4221, 62...
2.178082
511
""" Created by adam on 5/31/18 """ __author__ = 'adam' import sqlite3 import environment def get_all_words_in_tweet(tweetId, db): """ Returns all the words used in the tweet Example: words = get_all_words_in_tweet(331546674315014144, db=environment.TWEET_DB_NO_STOP) words = [x[2] for x in...
[ 37811, 198, 41972, 416, 23197, 319, 642, 14, 3132, 14, 1507, 198, 37811, 198, 834, 9800, 834, 796, 705, 324, 321, 6, 198, 11748, 44161, 578, 18, 198, 11748, 2858, 628, 198, 4299, 651, 62, 439, 62, 10879, 62, 259, 62, 83, 7277, 7, ...
2.182891
339
""" Represents an optical Gaussian source. """
[ 37811, 198, 6207, 6629, 281, 18480, 12822, 31562, 2723, 13, 198, 37811, 198 ]
3.615385
13
# 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 = [ ([2, 5, 7, 12, 13, 13, 15, 18, 20, 21, 22, 26, 27, 41, 41, 50, 53, 57, 5...
[ 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...
1.898689
839
"""Events.""" import asyncio import networkx from aocrecs.cache import cached from aocrecs.util import by_key def get_sides(matches, participants): """Get users per side given matches.""" users = {} for match in matches: users.update({ p['user_id']: dict( id=p['user_id...
[ 37811, 37103, 526, 15931, 198, 11748, 30351, 952, 198, 198, 11748, 3127, 87, 198, 6738, 257, 27945, 6359, 13, 23870, 1330, 39986, 198, 6738, 257, 27945, 6359, 13, 22602, 1330, 416, 62, 2539, 628, 198, 4299, 651, 62, 82, 1460, 7, 6759,...
2.264198
5,212
# Coneversiones de unidades import struct import binascii
[ 2, 327, 505, 9641, 274, 390, 555, 312, 2367, 198, 11748, 2878, 198, 11748, 9874, 292, 979, 72, 198 ]
3.052632
19
# MiniPlayerViewWidget.py from PyQt5.QtCore import * from PyQt5.QtWidgets import * from PyQt5.QtGui import * import sys, subprocess, time, threading, datetime, os, mutagen from _prefs import miniplayer_coversize, cmus_remote_cmd, player_coversize coversize = miniplayer_coversize
[ 2, 12558, 14140, 7680, 38300, 13, 9078, 198, 198, 6738, 9485, 48, 83, 20, 13, 48, 83, 14055, 1330, 1635, 198, 6738, 9485, 48, 83, 20, 13, 48, 83, 54, 312, 11407, 1330, 1635, 198, 6738, 9485, 48, 83, 20, 13, 48, 83, 8205, 72, 1...
2.679245
106
r"""*Main implementation file for* ``flake8-absolute-import``. flake8 plugin to require absolute imports **Author** Brian Skinn (bskinn@alum.mit.edu) **File Created** 6 Sep 2019 **Copyright** \(c) Brian Skinn 2019-2021 **Source Repository** http://github.com/bskinn/flake8-absolute-import **License...
[ 81, 37811, 9, 13383, 7822, 2393, 329, 9, 7559, 47597, 23, 12, 48546, 12, 11748, 15506, 13, 198, 198, 47597, 23, 13877, 284, 2421, 4112, 17944, 198, 198, 1174, 13838, 1174, 198, 220, 220, 220, 8403, 3661, 3732, 357, 1443, 74, 3732, 3...
2.64432
537
from django.conf.urls import * # Uncomment the next two lines to enable the admin: from django.contrib import admin admin.autodiscover() # from django.conf import settings urlpatterns = [ # Example: url(r'^', include('halolib.halolib.urls')), #url(r'^(?P<url>.*)$', proxy),#, ProxyLink.as_view(), name='pr...
[ 6738, 42625, 14208, 13, 10414, 13, 6371, 82, 1330, 1635, 198, 198, 2, 791, 23893, 262, 1306, 734, 3951, 284, 7139, 262, 13169, 25, 198, 6738, 42625, 14208, 13, 3642, 822, 1330, 13169, 198, 28482, 13, 2306, 375, 29392, 3419, 198, 198, ...
2.681319
273
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ This module is meant to be used together with the web app. For the stand alone CLI implementation, see parent directory. """ from datetime import datetime import ast import os import re import unicodedata import logging import defaults logger = logging.getLogger() tr...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 770, 8265, 318, 4001, 284, 307, 973, 1978, 351, 262, 3992, 598, 13, 198, 1890, 262, 1302, 3436, 43749, 782...
2.535601
4,410
import time from datetime import datetime as dt hp = r"C:\Windows\System32\drivers\hosts" #provide the proper host path according to yor system redirect = "127.0.0.1" web = ["www.youtube.com","www.facebook.com"] #add the website links in the list while True: if dt(dt.now().year, dt.now().month, dt.now().day,9) <...
[ 11748, 640, 198, 6738, 4818, 8079, 1330, 4818, 8079, 355, 288, 83, 198, 198, 24831, 796, 374, 1, 34, 7479, 11209, 59, 11964, 2624, 59, 36702, 59, 4774, 82, 1, 220, 220, 1303, 15234, 485, 262, 1774, 2583, 3108, 1864, 284, 331, 273, ...
2.313984
379
"""Fix bad casting Revision ID: c2f1fafd2225 Revises: bff84c33d64d Create Date: 2019-01-10 15:41:34.358222 """ from alembic import op import sqlalchemy as sa from sqlalchemy.dialects import postgresql # revision identifiers, used by Alembic. revision = 'c2f1fafd2225' down_revision = 'bff84c33d64d' branch_labels = No...
[ 37811, 22743, 2089, 13092, 198, 198, 18009, 1166, 4522, 25, 269, 17, 69, 16, 69, 1878, 67, 1828, 1495, 198, 18009, 2696, 25, 275, 487, 5705, 66, 2091, 67, 2414, 67, 198, 16447, 7536, 25, 13130, 12, 486, 12, 940, 1315, 25, 3901, 25...
2.485507
138
#! /usr/bin/env python3 from pager import Pager from pexels_results import PexelsResults if __name__ == "__main__": import requests main () quit ()
[ 2, 0, 1220, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 198, 6738, 279, 3536, 1330, 350, 3536, 198, 6738, 613, 87, 1424, 62, 43420, 1330, 350, 1069, 1424, 25468, 198, 198, 361, 11593, 3672, 834, 6624, 366, 834, 12417, 834, 1298, 198...
2.781818
55
""" error.py ~~~~~~~~ This module contains errors to be thrown by storage modules :copyright: (c) by 2016 James Moore :license: BSD, see LICENSE for more details """ class SchemaExistsError(Exception): """ Thrown when a schema already exists """ pass class SchemaDoesNotExistError...
[ 37811, 198, 220, 220, 220, 4049, 13, 9078, 198, 220, 220, 220, 220, 15116, 628, 220, 220, 220, 770, 8265, 4909, 8563, 284, 307, 8754, 416, 6143, 13103, 628, 220, 220, 220, 1058, 22163, 4766, 25, 357, 66, 8, 416, 1584, 3700, 8877, ...
2.900452
221
# Generated by Django 2.1.1 on 2019-07-16 19:43 from django.db import migrations
[ 2, 2980, 515, 416, 37770, 362, 13, 16, 13, 16, 319, 13130, 12, 2998, 12, 1433, 678, 25, 3559, 198, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 628 ]
2.766667
30
''' Given strings s1, s2, and s3, find whether s3 is formed by an interleaving of s1 and s2. An interleaving of two strings s and t is a configuration where they are divided into non-empty substrings such that: s = s1 + s2 + ... + sn t = t1 + t2 + ... + tm |n - m| <= 1 The interleaving is s1 + t1 + s2 + t2 + s3 + t3 ...
[ 7061, 6, 198, 15056, 13042, 264, 16, 11, 264, 17, 11, 290, 264, 18, 11, 1064, 1771, 264, 18, 318, 7042, 416, 281, 987, 293, 2703, 286, 264, 16, 290, 264, 17, 13, 198, 198, 2025, 987, 293, 2703, 286, 734, 13042, 264, 290, 256, ...
2.38806
268
for var_x in range(1,6): print(var_x) var_i = ["Apple","Banana","Pieapple","Orange","Lime"] for var_x in var_i: print(var_x) food_info={"Food_1":"Apple","Food_2":"Banana","Food_3":"Pieapple","Food_4":"Mango","Food_5":"Orange","Food_6":"Lime"} index_num1 = range(len(dict.keys(food_info))) key_...
[ 1640, 1401, 62, 87, 287, 2837, 7, 16, 11, 21, 2599, 201, 198, 220, 220, 220, 3601, 7, 7785, 62, 87, 8, 201, 198, 220, 220, 220, 220, 201, 198, 7785, 62, 72, 796, 14631, 16108, 2430, 30457, 2271, 2430, 48223, 18040, 2430, 40141, ...
2.099138
232
import graphene from flask_graphql_auth import mutation_jwt_required, get_jwt_identity, AuthInfoField from app.models import User, QuickMemo from app.schema.unions import ResponseUnion from app.schema.fields import ResponseMessageField
[ 11748, 42463, 198, 6738, 42903, 62, 34960, 13976, 62, 18439, 1330, 15148, 62, 73, 46569, 62, 35827, 11, 651, 62, 73, 46569, 62, 738, 414, 11, 26828, 12360, 15878, 198, 198, 6738, 598, 13, 27530, 1330, 11787, 11, 12029, 13579, 78, 198,...
3.606061
66
from .imdb import get_movies # TODO extract items from org mode? perhaps not very high priority
[ 6738, 764, 320, 9945, 1330, 651, 62, 76, 20526, 198, 198, 2, 16926, 46, 7925, 3709, 422, 8745, 4235, 30, 3737, 407, 845, 1029, 8475, 198 ]
3.730769
26
# Under MIT license, see LICENSE.txt import numpy as np from Util.geometry import wrap_to_pi from Util.role import Role from ai.Algorithm.evaluation_module import closest_players_to_point_except, ball_going_toward_player from ai.GameDomainObjects import Player from ai.STA.Strategy.graphless_strategy import GraphlessS...
[ 2, 4698, 17168, 5964, 11, 766, 38559, 24290, 13, 14116, 198, 198, 11748, 299, 32152, 355, 45941, 198, 198, 6738, 7273, 346, 13, 469, 15748, 1330, 14441, 62, 1462, 62, 14415, 198, 6738, 7273, 346, 13, 18090, 1330, 20934, 198, 6738, 257...
2.889328
253
# -*- coding: utf-8 -*- import pytest from pyleecan.Classes.Segment import Segment from pyleecan.Classes.SurfLine import SurfLine from pyleecan.Classes.LamHole import LamHole from pyleecan.Classes.HoleM53 import HoleM53 from pyleecan.Classes.Magnet import Magnet from numpy import exp, arcsin, ndarray, pi from pyleec...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 11748, 12972, 9288, 198, 198, 6738, 279, 2349, 721, 272, 13, 9487, 274, 13, 41030, 434, 1330, 1001, 5154, 198, 6738, 279, 2349, 721, 272, 13, 9487, 274, 13, 14214, 69,...
1.787816
4,350
from .box_iou_rotated_cuda import box_iou_rotated __all__ = ['box_iou_rotated']
[ 6738, 764, 3524, 62, 72, 280, 62, 10599, 515, 62, 66, 15339, 1330, 3091, 62, 72, 280, 62, 10599, 515, 198, 198, 834, 439, 834, 796, 37250, 3524, 62, 72, 280, 62, 10599, 515, 20520, 198 ]
2.25
36
import typing
[ 11748, 19720, 628 ]
5
3
# Copyright 2021 UW-IT, University of Washington # SPDX-License-Identifier: Apache-2.0 """ This module uses oauth to allow applications and users access. Supports 2-legged oauth for application requests, and for trusted applications accessing user-restricted methods. Supports 3-legged oauth for non-trusted applicatio...
[ 2, 15069, 33448, 33436, 12, 2043, 11, 2059, 286, 2669, 198, 2, 30628, 55, 12, 34156, 12, 33234, 7483, 25, 24843, 12, 17, 13, 15, 198, 198, 37811, 770, 8265, 3544, 267, 18439, 284, 1249, 5479, 290, 2985, 1895, 13, 198, 15979, 2096, ...
3.66
200
#!/usr/bin/env python # Copyright 2019 Xilinx Inc. # # 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 a...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 15069, 13130, 1395, 346, 28413, 3457, 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, 2...
2.336761
778
# -*- coding: utf-8 -*- # (C) Copyright 2020, 2021 IBM. All Rights Reserved. # # This code is licensed under the Apache License, Version 2.0. You may # obtain a copy of this license in the LICENSE.txt file in the root directory # of this source tree or at http://www.apache.org/licenses/LICENSE-2.0. # # Any modificatio...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 2, 357, 34, 8, 15069, 12131, 11, 33448, 19764, 13, 1439, 6923, 33876, 13, 198, 2, 198, 2, 770, 2438, 318, 11971, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15,...
2.329765
3,830
# coding: utf-8 from enum import Enum from six import string_types, iteritems from bitmovin_api_sdk.common.poscheck import poscheck_model
[ 2, 19617, 25, 3384, 69, 12, 23, 198, 198, 6738, 33829, 1330, 2039, 388, 198, 6738, 2237, 1330, 4731, 62, 19199, 11, 11629, 23814, 198, 6738, 1643, 76, 709, 259, 62, 15042, 62, 21282, 74, 13, 11321, 13, 1930, 9122, 1330, 1426, 9122, ...
3.043478
46
"""Maintain db function searchkey_first_name here.""" from alembic_utils.pg_function import PGFunction sim_number = PGFunction( schema="public", signature="sim_number(actual_name character varying)", definition=""" RETURNS numeric LANGUAGE plpgsql AS $function$ DECLARE v_name VARCHAR(60); v_sim_nu...
[ 37811, 44, 32725, 20613, 2163, 2989, 2539, 62, 11085, 62, 3672, 994, 526, 15931, 198, 6738, 31341, 2022, 291, 62, 26791, 13, 6024, 62, 8818, 1330, 350, 21713, 4575, 628, 198, 14323, 62, 17618, 796, 350, 21713, 4575, 7, 198, 220, 220, ...
2.495902
244
from __future__ import absolute_import from datetime import datetime from mock import patch import pytest import pytz from sentry.models import GroupRelease, Release from sentry.testutils import TestCase, SnubaTestCase from sentry.testutils.helpers.datetime import iso_format, before_now from sentry.utils.snuba import...
[ 6738, 11593, 37443, 834, 1330, 4112, 62, 11748, 198, 198, 6738, 4818, 8079, 1330, 4818, 8079, 198, 6738, 15290, 1330, 8529, 198, 11748, 12972, 9288, 198, 11748, 12972, 22877, 198, 198, 6738, 1908, 563, 13, 27530, 1330, 4912, 26362, 11, ...
2.722628
411
""" Perona-Malik anisotropic smoothing filter [Sergeevich]_. .. [Sergeevich] Employing the Perona - Malik anisotropic filter for the problem of landing site detection: https://github.com/Galarius/pm-ocl """ import logging from math import ceil import os import cupy as cp import numpy as np from utoolbox.parallel imp...
[ 37811, 198, 5990, 4450, 12, 15029, 1134, 281, 271, 46084, 32746, 722, 8106, 685, 7089, 469, 1990, 488, 60, 44807, 198, 198, 492, 685, 7089, 469, 1990, 488, 60, 12645, 278, 262, 2448, 4450, 532, 31745, 281, 271, 46084, 8106, 329, 262, ...
2.139972
1,436
from collections import namedtuple Transition = namedtuple("Transition", ("state", "action", "reward", "done", "new_state")) class BaseBuffer: """ Base class for replay buffer. """ def __init__(self, size, batch_size=32, n_step=0): """ Initialize replay buffer. Args: ...
[ 6738, 17268, 1330, 3706, 83, 29291, 198, 198, 8291, 653, 796, 3706, 83, 29291, 7203, 8291, 653, 1600, 5855, 5219, 1600, 366, 2673, 1600, 366, 260, 904, 1600, 366, 28060, 1600, 366, 3605, 62, 5219, 48774, 628, 198, 4871, 7308, 28632, 2...
2.27512
836
from office365.runtime.client_value import ClientValue class SharePointIds(ClientValue): """The SharePointIds resource groups the various identifiers for an item stored in a SharePoint site or OneDrive for Business into a single structure. """
[ 6738, 2607, 24760, 13, 43282, 13, 16366, 62, 8367, 1330, 20985, 11395, 628, 198, 4871, 8734, 12727, 7390, 82, 7, 11792, 11395, 2599, 198, 220, 220, 220, 37227, 464, 8734, 12727, 7390, 82, 8271, 2628, 262, 2972, 42814, 329, 281, 2378, ...
4.031746
63
import random
[ 11748, 4738, 628 ]
5
3
import chess.uci import sys import os ########################################### ########## UCI config functions ########### ########################################### def write_config(opt, file): """Export options dictionnary to config file.""" for key, value in opt.items(): if key.lower() == "mult...
[ 11748, 19780, 13, 42008, 198, 11748, 25064, 198, 11748, 28686, 198, 198, 29113, 7804, 21017, 198, 7804, 2235, 14417, 40, 4566, 5499, 1303, 7804, 2235, 198, 29113, 7804, 21017, 198, 198, 4299, 3551, 62, 11250, 7, 8738, 11, 2393, 2599, 19...
2.7
740
from abstract_factory.factories.furniture_factory import FurnitureFactory from abstract_factory.factories.modern_furniture_factory import ModernFurnitureFactory from abstract_factory.factories.victorian_furniture_factory import VictorianFurnitureFactory ''' Abstract Factory is a creational design pattern that lets you...
[ 6738, 12531, 62, 69, 9548, 13, 22584, 1749, 13, 69, 700, 8089, 62, 69, 9548, 1330, 34937, 8089, 22810, 198, 6738, 12531, 62, 69, 9548, 13, 22584, 1749, 13, 23922, 62, 69, 700, 8089, 62, 69, 9548, 1330, 12495, 37, 700, 8089, 22810, ...
3.405836
377
from django.shortcuts import render from django.views.generic import ListView, DetailView from django_vend.core.views import (VendAuthSingleObjectSyncMixin, VendAuthCollectionSyncMixin) from .models import VendOutlet, VendRegister
[ 6738, 42625, 14208, 13, 19509, 23779, 1330, 8543, 198, 6738, 42625, 14208, 13, 33571, 13, 41357, 1330, 7343, 7680, 11, 42585, 7680, 198, 198, 6738, 42625, 14208, 62, 85, 437, 13, 7295, 13, 33571, 1330, 357, 53, 437, 30515, 28008, 10267,...
2.650485
103
import numpy as np def TSNR(noisy_stft, signal_gains, noise_estimation): """ Reconstructs the signal by re-adding phase components to the magnitude estimate :param noisy_stft: stft of original noisy signal :param signal_gains: gains of each stft frame returned by DD :param noise_estimation: noise e...
[ 11748, 299, 32152, 355, 45941, 198, 198, 4299, 309, 15571, 49, 7, 3919, 13560, 62, 301, 701, 11, 6737, 62, 70, 1299, 11, 7838, 62, 395, 18991, 2599, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 23419, 7249, 82, 262, 6737, 416, 3...
2.58547
468
# py_adventure screen scrypt import config import os
[ 2, 12972, 62, 324, 5388, 3159, 629, 6012, 201, 198, 11748, 4566, 201, 198, 11748, 28686, 201 ]
3.235294
17
# coding: utf-8 # In[1]: import numpy as np from time import time import gzip import warnings import pickle warnings.filterwarnings("ignore") from Bio.PDB import * import Bio from config import DefaultConfig configs = DefaultConfig() parser = PDBParser() THIRD_ATOM = 'N' # 'O' # In[2]: # In[3]: from B...
[ 2, 19617, 25, 3384, 69, 12, 23, 198, 198, 2, 554, 58, 16, 5974, 198, 198, 11748, 299, 32152, 355, 45941, 198, 6738, 640, 1330, 640, 198, 11748, 308, 13344, 198, 11748, 14601, 198, 11748, 2298, 293, 198, 198, 40539, 654, 13, 24455, ...
2.69697
198
import numpy as np from numpy.typing import ArrayLike import sys from puzzle_1 import load_input sys.path.append("..") import helpers # noqa def calculate_last_winning_score( draw_numbers: list[int], boards: list[ArrayLike], blank_boards: list[ArrayLike] ) -> tuple[int, int, int]: """Function to calculate t...
[ 11748, 299, 32152, 355, 45941, 198, 6738, 299, 32152, 13, 774, 13886, 1330, 15690, 7594, 198, 11748, 25064, 198, 6738, 15027, 62, 16, 1330, 3440, 62, 15414, 198, 198, 17597, 13, 6978, 13, 33295, 7203, 492, 4943, 198, 11748, 49385, 220, ...
2.092279
1,062
# This code is part of Qiskit. # # (C) Copyright IBM 2020, 2021. # # This code is licensed under the Apache License, Version 2.0. You may # obtain a copy of this license in the LICENSE.txt file in the root directory # of this source tree or at http://www.apache.org/licenses/LICENSE-2.0. # # Any modifications or derivat...
[ 2, 770, 2438, 318, 636, 286, 1195, 1984, 270, 13, 198, 2, 198, 2, 357, 34, 8, 15069, 19764, 12131, 11, 33448, 13, 198, 2, 198, 2, 770, 2438, 318, 11971, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 13, 921, 743, 198, 2, 733...
2.629663
2,225
#!/usr/bin/env python import os import re import shutil import glob # This script converts from the docker version to a shell install version # Useful for installation without docker # Manual installation # - Init a database using ../postgresql/docker-entrypoint-initdb.d/init-database.sh # - Add db, smtp and rabbit...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 198, 11748, 28686, 198, 11748, 302, 198, 11748, 4423, 346, 198, 11748, 15095, 198, 198, 2, 770, 4226, 26161, 422, 262, 36253, 2196, 284, 257, 7582, 2721, 2196, 198, 2, 49511, 329, 9988...
2.238328
1,842
from root_dir import root_dir DEBUG = True LOG_DIRECTORY = root_dir('..', 'dev_logs') EMAIL_BACKEND = 'django.core.mail.backends.locmem.EmailBackend' EMAIL_PORT = 1025 YWOT_HOST = 'localhost:8001' PUSHER_APP_ID = '...' PUSHER_KEY = '...' PUSHER_SECRET = '...' MIXPANEL_ID = "..." STATIC_URL = '/static/' SENTRY_DS...
[ 6738, 6808, 62, 15908, 1330, 6808, 62, 15908, 198, 198, 30531, 796, 6407, 198, 198, 25294, 62, 17931, 23988, 15513, 796, 6808, 62, 15908, 10786, 492, 3256, 705, 7959, 62, 6404, 82, 11537, 198, 198, 27630, 4146, 62, 31098, 10619, 796, ...
2.22973
148
import re import string from typing import List def tokenize_fast(input_text: str) -> List[str]: """Returns a very naive whitespace and punctuation based tokenization. This helps for most but not all languages, should only be used if you don't know the language yet, or if you have a lot of data and can s...
[ 11748, 302, 198, 11748, 4731, 198, 6738, 19720, 1330, 7343, 628, 198, 4299, 11241, 1096, 62, 7217, 7, 15414, 62, 5239, 25, 965, 8, 4613, 7343, 58, 2536, 5974, 198, 220, 220, 220, 37227, 35561, 257, 845, 24354, 13216, 10223, 290, 21025...
2.598253
458
# The Expat License # # Copyright (c) 2017, Shlomi Fish # # 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, ...
[ 2, 383, 5518, 265, 13789, 198, 2, 198, 2, 15069, 357, 66, 8, 2177, 11, 911, 75, 12753, 13388, 198, 2, 198, 2, 2448, 3411, 318, 29376, 7520, 11, 1479, 286, 3877, 11, 284, 597, 1048, 16727, 257, 4866, 198, 2, 286, 428, 3788, 290, ...
3.589385
358
import requests from requests.structures import CaseInsensitiveDict import json BLOG_ID = "2352119848425464545" BASE_URL = "https://www.googleapis.com/blogger/v3/blogs/" if __name__ == "__main__": main()
[ 11748, 7007, 198, 6738, 7007, 13, 7249, 942, 1330, 8913, 20376, 18464, 35, 713, 198, 11748, 33918, 198, 198, 9148, 7730, 62, 2389, 796, 366, 22370, 2481, 22337, 2780, 32114, 3510, 2231, 2231, 1, 198, 33, 11159, 62, 21886, 796, 366, 54...
2.696203
79
import streamlit as st # web development import numpy as np # np mean, np random import pandas as pd # read csv, df manipulation import time # to simulate a real time data, time loop import plotly.express as px # interactive charts # read csv from a github repo df = pd.read_csv("https://raw.githubusercontent.com/L...
[ 11748, 4269, 18250, 355, 336, 1303, 3992, 2478, 198, 11748, 299, 32152, 355, 45941, 1303, 45941, 1612, 11, 45941, 4738, 220, 198, 11748, 19798, 292, 355, 279, 67, 1303, 1100, 269, 21370, 11, 47764, 17512, 198, 11748, 640, 1303, 284, 293...
2.415401
922
""" Earth moon sun """ import arcade SCREEN_WIDTH = 600 SCREEN_HEIGHT = 600 class MyGame(arcade.Window): """ Main application class. """ def on_draw(self): """ Render the screen. """ # This command has to happen before we start drawing arcade.start_render() ...
[ 37811, 198, 22840, 8824, 4252, 198, 37811, 198, 198, 11748, 27210, 198, 198, 6173, 2200, 1677, 62, 54, 2389, 4221, 796, 10053, 198, 6173, 2200, 1677, 62, 13909, 9947, 796, 10053, 628, 198, 4871, 2011, 8777, 7, 5605, 671, 13, 27703, 25...
2.259524
420
# %% [markdown] # 分析test.py文件 # %% import torch from model.model import parsingNet import torchvision.transforms as transforms from torch.utils.data import DataLoader from torchvision.io import read_image from PIL import Image import cv2 import scipy.special torch.backends.cudnn.benchmark = True cls_num_per_lane = 18...
[ 2, 43313, 685, 4102, 2902, 60, 198, 2, 10263, 230, 228, 162, 252, 238, 9288, 13, 9078, 23877, 229, 20015, 114, 198, 198, 2, 43313, 198, 11748, 28034, 198, 6738, 2746, 13, 19849, 1330, 32096, 7934, 198, 11748, 28034, 10178, 13, 7645, ...
1.948829
1,153
# -*- coding: utf-8 -*- """ Django application to add 'django-crispy-forms' layout objects for Materialize """ __version__ = '0.2'
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 198, 35, 73, 14208, 3586, 284, 751, 705, 28241, 14208, 12, 66, 2442, 9078, 12, 23914, 6, 12461, 5563, 329, 14633, 1096, 198, 37811, 198, 834, 9641, 834, 796, 70...
2.62
50
import json import multiprocessing as mp import random import threading import time import numpy as np from threading import Thread, Lock from common.constants import * from common.enums.climb_state import ClimbState from common.enums.collision_control_methods import CCMethods from common.enums.direction import Directi...
[ 11748, 33918, 198, 11748, 18540, 305, 919, 278, 355, 29034, 198, 11748, 4738, 198, 11748, 4704, 278, 198, 11748, 640, 198, 11748, 299, 32152, 355, 45941, 198, 6738, 4704, 278, 1330, 14122, 11, 13656, 198, 6738, 2219, 13, 9979, 1187, 133...
3.991724
725
from pathlib import Path import json import pytest import requests_mock import shapely # pylint: disable=unused-import,wrong-import-order from .context import Workflow from .fixtures import auth_mock, auth_live, workflow_mock, workflow_live, job_mock import up42 json_workflow_tasks = { "data": [ { ...
[ 6738, 3108, 8019, 1330, 10644, 198, 11748, 33918, 198, 11748, 12972, 9288, 198, 11748, 7007, 62, 76, 735, 198, 11748, 5485, 306, 198, 198, 2, 279, 2645, 600, 25, 15560, 28, 403, 1484, 12, 11748, 11, 36460, 12, 11748, 12, 2875, 198, ...
1.714589
1,412
# -*- coding: utf-8 -*- CUSTOMER = '000' SPANISH = '001' ENGLISH = '002' CATALAN = '003' FRENCH = '004' GERMAN = '005' DUTCH = '006' ITALIAN = '007' SWEDISH = '008' PORTUGUESE = '009' VALENCIAN = '010' POLISH = '011' GALICIAN = '012' EUSKERA = '013' LANGUAGES = [ CUSTOMER, SPANISH, ENGLISH, CATALAN, ...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 34, 7759, 2662, 1137, 796, 705, 830, 6, 198, 4303, 1565, 18422, 796, 705, 8298, 6, 198, 1677, 8763, 18422, 796, 705, 21601, 6, 198, 34, 1404, 1847, 1565, 796, 7...
1.782609
253
import os import unittest from vipps import VippsEcomApi, VippsSignupApi import env VIPPS_CLIENT_ID = env.VIPPS_CLIENT_ID VIPPS_CLIENT_SECRET = env.VIPPS_CLIENT_SECRET VIPPS_SUBSCRIPTION_KEY = env.VIPPS_SUBSCRIPTION_KEY VIPPS_MERCHANT_SERIAL_NUMBER = env.VIPPS_MERCHANT_SERIAL_NUMBER VIPPS_SERVER = env.VIPPS_SERVER ...
[ 11748, 28686, 198, 11748, 555, 715, 395, 198, 198, 6738, 410, 3974, 82, 1330, 569, 3974, 82, 36, 785, 32, 14415, 11, 569, 3974, 82, 11712, 929, 32, 14415, 198, 198, 11748, 17365, 628, 198, 53, 4061, 3705, 62, 5097, 28495, 62, 2389, ...
2.150259
193
# -*- coding: utf-8 -*-
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 628 ]
1.785714
14
import cv2 as cv import numpy as np import pandas as pd import time import os start_time = time.time() lengi = 0 df = pd.DataFrame(columns=['document_id', 'set_id', 'student_id', 'answer_keys']) xForQuads = [(344, 552), (620, 828), (897, 1106), (1174, 1382)] yForQuads = [(897, 1115), (1115, 1333), (1333, 1550), (1550,...
[ 11748, 269, 85, 17, 355, 269, 85, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 19798, 292, 355, 279, 67, 198, 11748, 640, 198, 11748, 28686, 198, 198, 9688, 62, 2435, 796, 640, 13, 2435, 3419, 198, 75, 1516, 72, 796, 657, 198, ...
2.259207
706
import skimage import tqdm import numpy as np from imageProcessing import *
[ 11748, 1341, 9060, 201, 198, 11748, 256, 80, 36020, 201, 198, 11748, 299, 32152, 355, 45941, 201, 198, 6738, 2939, 18709, 278, 1330, 1635, 201, 198, 201, 198, 201, 198, 201, 198, 201, 198, 201 ]
2.542857
35
# Import the necessary packages and modules import matplotlib.pyplot as plt import numpy as np f = open('history.txt', 'r') for line in f: if line.startswith('='): tokens = line.split('\t') # Prepare the data x = np.linspace(0, 10, 100) # Plot the data plt.plot(x, x, label='linear') # Add a legend plt.le...
[ 2, 17267, 262, 3306, 10392, 290, 13103, 198, 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 198, 11748, 299, 32152, 355, 45941, 628, 198, 69, 796, 1280, 10786, 23569, 13, 14116, 3256, 705, 81, 11537, 198, 198, 1640, 1627, 28...
2.622222
135
SLAP_TEMPLATES = ( "{user1} {hits} {user2} with a {item}.", "{user1} {hits} {user2} in the face with a {item}.", "{user1} {hits} {user2} around a bit with a {item}.", "{user1} {throws} a {item} at {user2}.", "{user1} grabs a {item} and {throws} it at {user2}'s face.", "{user1} launches a {item} ...
[ 8634, 2969, 62, 51, 3620, 6489, 29462, 796, 357, 198, 220, 220, 220, 45144, 7220, 16, 92, 1391, 71, 896, 92, 1391, 7220, 17, 92, 351, 257, 1391, 9186, 92, 33283, 198, 220, 220, 220, 45144, 7220, 16, 92, 1391, 71, 896, 92, 1391, ...
2.760024
1,671
import os import argparse from flask import request from flask_api import FlaskAPI, status, exceptions from werkzeug.utils import secure_filename import io import numpy as np from PIL import Image import cv2 from datetime import datetime import re import math import apriltag from flask_cors import CORS from logzero im...
[ 11748, 28686, 198, 11748, 1822, 29572, 198, 6738, 42903, 1330, 2581, 198, 6738, 42903, 62, 15042, 1330, 46947, 17614, 11, 3722, 11, 13269, 198, 6738, 266, 9587, 2736, 1018, 13, 26791, 1330, 5713, 62, 34345, 198, 11748, 33245, 198, 11748, ...
2.573492
1,177
import threading import time import logging import math class Cart: """ need to implement the move method with threading so that it won't interfere with other functions """ # the original implmentation, with the bug. # get all the passengers who want to go the "direction" if __name__ == '__main...
[ 11748, 4704, 278, 198, 11748, 640, 198, 11748, 18931, 198, 11748, 10688, 628, 198, 4871, 13690, 25, 198, 220, 220, 220, 37227, 761, 284, 3494, 262, 1445, 2446, 351, 4704, 278, 198, 220, 220, 220, 523, 326, 340, 1839, 470, 18135, 351, ...
2.442446
278
#!/bin/python3 """This is a very simple/terrible port scanner for educational purpose""" import sys import socket from datetime import datetime if len(sys.argv) == 2: target = socket.gethostbyname(sys.argv[1]) # translate hostname else: print("Invalid amount of arguments.") print("Syntax: python3 pyport....
[ 2, 48443, 8800, 14, 29412, 18, 198, 37811, 1212, 318, 257, 845, 2829, 14, 353, 5547, 2493, 27474, 329, 9856, 4007, 37811, 198, 198, 11748, 25064, 198, 11748, 17802, 198, 198, 6738, 4818, 8079, 1330, 4818, 8079, 198, 198, 361, 18896, 7...
2.700535
374
""" Author: Wenru Dong """ from typing import Optional if __name__ == "__main__": bitmap = Bitmap(10) bitmap.setbit(1) bitmap.setbit(3) bitmap.setbit(6) bitmap.setbit(7) bitmap.setbit(8) for i in range(1, 11): print(bitmap.getbit(i))
[ 37811, 198, 220, 220, 220, 6434, 25, 31164, 622, 28831, 198, 37811, 198, 198, 6738, 19720, 1330, 32233, 628, 198, 361, 11593, 3672, 834, 6624, 366, 834, 12417, 834, 1298, 198, 220, 220, 220, 1643, 8899, 796, 4722, 8899, 7, 940, 8, 1...
2.082707
133
a = [[['Inform', 'Train', 'Choice', 'over 1'], ['Inform', 'Train', 'Choice', '000'], ['Request', 'Train', 'Depart', '?']], [['Inform', 'Train', 'Depart', 'birmingham new street']], [['Request', 'Train', 'Day', '?']], [['Inform', 'Train', 'Day', 'wednesday']], [['Inform', 'Train', 'Arrive', '20:23'], ['Inform', 'Train'...
[ 198, 64, 796, 16410, 17816, 818, 687, 3256, 705, 44077, 3256, 705, 46770, 3256, 705, 2502, 352, 6, 4357, 37250, 818, 687, 3256, 705, 44077, 3256, 705, 46770, 3256, 705, 830, 6, 4357, 37250, 18453, 3256, 705, 44077, 3256, 705, 12156, 4...
2.302905
482
# # Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. # The ASF licenses this file to You under the Apache License, Version 2.0 # (the "License"); you may not us...
[ 2, 198, 2, 49962, 284, 262, 24843, 10442, 5693, 357, 1921, 37, 8, 739, 530, 393, 517, 198, 2, 18920, 5964, 11704, 13, 220, 4091, 262, 28536, 2393, 9387, 351, 198, 2, 428, 670, 329, 3224, 1321, 5115, 6634, 9238, 13, 198, 2, 383, ...
2.805925
2,633
# input input_word = input("Enter a word: ") # response print('***') for letter in input_word: print(letter) print('***')
[ 2, 5128, 198, 15414, 62, 4775, 796, 5128, 7203, 17469, 257, 1573, 25, 366, 8, 198, 198, 2, 2882, 198, 4798, 10786, 8162, 11537, 198, 1640, 3850, 287, 5128, 62, 4775, 25, 198, 220, 220, 220, 3601, 7, 9291, 8, 198, 4798, 10786, 8162...
2.76087
46
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: tinkoff/cloud/stt/v1/stt.proto """Generated protocol buffer code.""" from google.protobuf.internal import enum_type_wrapper from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _d...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 2980, 515, 416, 262, 8435, 11876, 17050, 13, 220, 8410, 5626, 48483, 0, 198, 2, 2723, 25, 44569, 2364, 14, 17721, 14, 301, 83, 14, 85, 16, 14, 301, 83, 13, 1676...
2.268885
8,234
from .engine import Engine from ..utils.collate import box_collate_fn from ..utils.visualizer import ObjectDetectionVisualizer from ..utils.centernet.parse_detections import parse_detections, parse_batch_detections from ..utils.ap_metrics import APMeter import torch import os import json
[ 6738, 764, 18392, 1330, 7117, 198, 6738, 11485, 26791, 13, 26000, 378, 1330, 3091, 62, 26000, 378, 62, 22184, 198, 6738, 11485, 26791, 13, 41464, 7509, 1330, 9515, 11242, 3213, 36259, 7509, 198, 6738, 11485, 26791, 13, 1087, 1142, 316, ...
3.493976
83
import os from views import app if __name__ == "__main__": host = os.environ.get('HOST') app.run(host=host)
[ 11748, 28686, 198, 198, 6738, 5009, 1330, 598, 198, 198, 361, 11593, 3672, 834, 6624, 366, 834, 12417, 834, 1298, 198, 220, 220, 220, 2583, 796, 28686, 13, 268, 2268, 13, 1136, 10786, 39, 10892, 11537, 198, 220, 220, 220, 598, 13, 5...
2.408163
49
# Demonstrates the following: # plotting logarithmic axes # user-defined functions # "where" function, NumPy array conditional import numpy as np import matplotlib.pyplot as plt # Define the sinc function, with output for x=0 defined # as a special case to avoid division by zero # create arrays for plott...
[ 2, 7814, 2536, 689, 262, 1708, 25, 198, 2, 220, 220, 220, 220, 29353, 2604, 283, 342, 9383, 34197, 198, 2, 220, 220, 220, 220, 2836, 12, 23211, 5499, 198, 2, 220, 220, 220, 220, 366, 3003, 1, 2163, 11, 31835, 20519, 7177, 26340, ...
2.505176
483