content
stringlengths
1
1.04M
input_ids
listlengths
1
774k
ratio_char_token
float64
0.38
22.9
token_count
int64
1
774k
#!/bin/python3 import sys n = int(input().strip()) arr = [int(arr_temp) for arr_temp in input().strip().split(" ")] arr.reverse() arrstring = " ".join(str(e) for e in arr) print(arrstring)
[ 2, 48443, 8800, 14, 29412, 18, 198, 198, 11748, 25064, 628, 198, 77, 796, 493, 7, 15414, 22446, 36311, 28955, 198, 3258, 796, 685, 600, 7, 3258, 62, 29510, 8, 329, 5240, 62, 29510, 287, 5128, 22446, 36311, 22446, 35312, 7203, 366, 1...
2.6
75
# Copyright 2017 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the 'License'); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
[ 2, 15069, 2177, 383, 309, 22854, 37535, 46665, 13, 1439, 6923, 33876, 13, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 705, 34156, 24036, 198, 2, 345, 743, 407, 779, 428, 2393, 2845, 287, 11846, ...
3.749441
447
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import digitalocean import os import random import sys import time import requests if __name__ == "__main__": main()
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 11748, 4875, 78, 5829, 198, 11748, 28686, 198, 11748, 4738, 198, 11748, 25064, 198, 11748, 640, 198, 11748, 70...
2.647059
68
import torch from torch.autograd import Variable
[ 11748, 28034, 198, 6738, 28034, 13, 2306, 519, 6335, 1330, 35748, 628, 628 ]
4
13
from abc import ABC, abstractmethod
[ 6738, 450, 66, 1330, 9738, 11, 12531, 24396 ]
4.375
8
from flask import jsonify
[ 6738, 42903, 1330, 33918, 1958 ]
5
5
from datetime import date from batch.models import DatasetOnDate from batch.s3_dataset_scanner.extract_datasets_from_s3_metadata import ( extract_datasets_from_s3_metadata, ) from tests.util import csv_file_to_parquet_source
[ 6738, 4818, 8079, 1330, 3128, 198, 198, 6738, 15458, 13, 27530, 1330, 16092, 292, 316, 2202, 10430, 198, 6738, 15458, 13, 82, 18, 62, 19608, 292, 316, 62, 35836, 1008, 13, 2302, 974, 62, 19608, 292, 1039, 62, 6738, 62, 82, 18, 62, ...
2.783133
83
# -*- coding: utf-8 -*- # Author: jlopes@usp.br import os import pickle import numpy as np import re
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 6434, 25, 474, 75, 13920, 31, 17723, 13, 1671, 198, 11748, 28686, 220, 198, 11748, 2298, 293, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 302, 220, 220, 628, 22...
2.12963
54
from stickerfinder.i18n import i18n from stickerfinder.logic.tag import handle_next from stickerfinder.enum import TagMode from stickerfinder.helper.display import ( get_settings_text, get_help_text_and_keyboard, ) from stickerfinder.telegram.keyboard import ( get_main_keyboard, get_donation_keyboard, ...
[ 6738, 27735, 22805, 13, 72, 1507, 77, 1330, 1312, 1507, 77, 198, 6738, 27735, 22805, 13, 6404, 291, 13, 12985, 1330, 5412, 62, 19545, 198, 6738, 27735, 22805, 13, 44709, 1330, 17467, 19076, 198, 6738, 27735, 22805, 13, 2978, 525, 13, ...
2.567599
858
import numpy as np import matplotlib.pyplot as plt data = make_data(angle=-np.pi/4)
[ 11748, 299, 32152, 355, 45941, 198, 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 198, 198, 7890, 796, 787, 62, 7890, 7, 9248, 10779, 37659, 13, 14415, 14, 19, 8, 198 ]
2.575758
33
from setuptools import setup with open("README.md", "r") as readme: long_description = readme.read() setup( version='0.5.0', author='Sam Beck', author_email='notsambeck@gmail.com', name='pandabase', packages=['pandabase'], description="pandabase links pandas DataFrames to SQL databases. Up...
[ 6738, 900, 37623, 10141, 1330, 9058, 198, 198, 4480, 1280, 7203, 15675, 11682, 13, 9132, 1600, 366, 81, 4943, 355, 1100, 1326, 25, 198, 220, 220, 220, 890, 62, 11213, 796, 1100, 1326, 13, 961, 3419, 198, 198, 40406, 7, 198, 220, 220...
2.476636
321
import json import logging import random import re import requests import sys import time import traceback from websocket import WebSocketConnectionClosedException from markdownify import MarkdownConverter from will import settings from .base import IOBackend from will.utils import Bunch, UNSURE_REPLIES, clean_for_pi...
[ 11748, 33918, 198, 11748, 18931, 198, 11748, 4738, 198, 11748, 302, 198, 11748, 7007, 198, 11748, 25064, 198, 11748, 640, 198, 11748, 12854, 1891, 198, 6738, 2639, 5459, 1330, 5313, 39105, 32048, 2601, 1335, 16922, 198, 198, 6738, 1317, 2...
2.087199
1,078
consumir = int ( input ( "¿Consumir licor? Digite 1 para si y 2 para No: " )) agr = 0 Ron = 0 cuello uterino = 0 teq = 0 whi = 0 otro = 0 licor = 0 listaco = [] listaco . agregar ( consumir ) listalicor = [] listaa ños = [ ] listacv = [] listawhi = [] listam = [] listaf = [] listap = [] mientras que e...
[ 5936, 388, 343, 796, 493, 357, 5128, 357, 366, 126, 123, 9444, 388, 343, 3476, 273, 30, 7367, 578, 352, 31215, 33721, 331, 362, 31215, 1400, 25, 366, 15306, 201, 198, 363, 81, 796, 657, 201, 198, 23672, 796, 657, 201, 198, 15509, ...
1.816913
1,218
import os, sys, socket, random from urllib import quote_plus from panda3d.core import HTTPClient, HTTPCookie, URLSpec, Ramfile, Ostream, HTTPDate, DocumentSpec from direct.task.Task import Task from direct.directnotify.DirectNotifyGlobal import directNotify notify = directNotify.newCategory('UserFunnel') ...
[ 11748, 28686, 11, 25064, 11, 17802, 11, 4738, 198, 6738, 2956, 297, 571, 1330, 9577, 62, 9541, 198, 6738, 279, 5282, 18, 67, 13, 7295, 1330, 14626, 11792, 11, 7154, 51, 5662, 18055, 11, 10289, 22882, 11, 7431, 7753, 11, 440, 5532, 1...
3.252525
99
from django.contrib import admin from .models import Budget, Category, Transaction admin.site.register(Budget, BudgetAdmin) admin.site.register(Category, CategoryAdmin) admin.site.register(Transaction, TransactionAdmin)
[ 6738, 42625, 14208, 13, 3642, 822, 1330, 13169, 198, 198, 6738, 764, 27530, 1330, 15401, 11, 21743, 11, 45389, 628, 628, 198, 28482, 13, 15654, 13, 30238, 7, 33, 29427, 11, 15401, 46787, 8, 198, 28482, 13, 15654, 13, 30238, 7, 27313, ...
3.813559
59
#Problem link : https://leetcode.com/problems/reverse-integer/ num = int(input()) print(reverse(num)) #Example test case # Input : 123 # Output : 321 # Input : - 123 # Output : -321
[ 198, 2, 40781, 2792, 1058, 3740, 1378, 293, 316, 8189, 13, 785, 14, 1676, 22143, 14, 50188, 12, 41433, 14, 628, 628, 198, 22510, 796, 493, 7, 15414, 28955, 198, 4798, 7, 50188, 7, 22510, 4008, 198, 198, 2, 16281, 1332, 1339, 198, ...
2.863636
66
# import packages import os import pandas as pd from calendar import monthrange from datetime import datetime, timedelta from azureml.core import Dataset, Datastore, Workspace from azureml.opendatasets import NoaaIsdWeather # get workspace and datastore ws = Workspace.from_config() dstore = ws.get_default_datastore() ...
[ 2, 1330, 10392, 198, 11748, 28686, 198, 11748, 19798, 292, 355, 279, 67, 198, 6738, 11845, 1330, 1227, 9521, 198, 6738, 4818, 8079, 1330, 4818, 8079, 11, 28805, 12514, 198, 6738, 35560, 495, 4029, 13, 7295, 1330, 16092, 292, 316, 11, ...
2.433921
454
#encoding=utf-8 ''' Created on 2017年6月1日 @author: Administrator ''' import xml.dom.minidom from _codecs import encode import random import nltk # parse trainingset from xml to text # if t<2: # print(relevant) # print(abstract) # break # def nltk_token(): # infile='H:/PHDwork/Bi...
[ 2, 12685, 7656, 28, 40477, 12, 23, 198, 7061, 6, 198, 41972, 319, 2177, 33176, 112, 21, 17312, 230, 16, 33768, 98, 198, 198, 31, 9800, 25, 22998, 198, 7061, 6, 198, 11748, 35555, 13, 3438, 13, 1084, 312, 296, 198, 6738, 4808, 1981...
1.697895
950
#!/usr/bin/env python # -*- coding: utf-8 -*- # @Time : 2018/9/9/009 23:01 # @Author : Woe # @Site : # @File : Producer.py # @Software: PyCharm import asyncio from MpsiSpider.Request import Request import threading import time
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 2488, 7575, 220, 220, 220, 1058, 2864, 14, 24, 14, 24, 14, 28694, 2242, 25, 486, 198, 2, 2488, 13838, 220, 1058,...
2.41
100
from datetime import datetime from django.db import models from JWTAuth.models import Employee # Create your models here.
[ 6738, 4818, 8079, 1330, 4818, 8079, 198, 6738, 42625, 14208, 13, 9945, 1330, 4981, 198, 6738, 449, 54, 5603, 1071, 13, 27530, 1330, 36824, 198, 198, 2, 13610, 534, 4981, 994, 13, 628 ]
3.757576
33
from copy import deepcopy from tqdm.auto import tqdm from causallearn.graph.Edges import Edges from causallearn.graph.GeneralGraph import GeneralGraph from causallearn.utils.ChoiceGenerator import ChoiceGenerator from causallearn.utils.cit import * from causallearn.utils.PCUtils.BackgroundKnowledge import BackgroundK...
[ 6738, 4866, 1330, 2769, 30073, 198, 198, 6738, 256, 80, 36020, 13, 23736, 1330, 256, 80, 36020, 198, 198, 6738, 26846, 6765, 1501, 13, 34960, 13, 7407, 3212, 1330, 1717, 3212, 198, 6738, 26846, 6765, 1501, 13, 34960, 13, 12218, 37065, ...
2.634809
1,988
import re import sys import argparse import subprocess as sp parser = argparse.ArgumentParser(description='Process captions file.') parser.add_argument('--vid','-v',required=True,help='.mp4 video file') parser.add_argument('--rt','-t',required=True,help='Transcription file') parser.add_argument('--poi',required=True,h...
[ 11748, 302, 198, 11748, 25064, 198, 11748, 1822, 29572, 198, 11748, 850, 14681, 355, 599, 198, 198, 48610, 796, 1822, 29572, 13, 28100, 1713, 46677, 7, 11213, 11639, 18709, 3144, 507, 2393, 2637, 8, 198, 48610, 13, 2860, 62, 49140, 1078...
2.296796
593
from functools import wraps from flask_login import current_user from flask import redirect, url_for from weddingwebsite import login_manager from .exceptions import NoRolesProvided def requires_roles(*roles): """ Implements role biased authentication over Flask-login :param roles: Required Roles for a...
[ 6738, 1257, 310, 10141, 1330, 27521, 198, 198, 6738, 42903, 62, 38235, 1330, 1459, 62, 7220, 198, 6738, 42903, 1330, 18941, 11, 19016, 62, 1640, 198, 198, 6738, 10614, 732, 12485, 1330, 17594, 62, 37153, 198, 6738, 764, 1069, 11755, 133...
3.517442
172
password="pbkdf2(1000,20,sha512)$aa925206b00a7043$28115a6960f48c6f11bd00bc838e9f2d622c0262"
[ 28712, 2625, 40842, 74, 7568, 17, 7, 12825, 11, 1238, 11, 26270, 25836, 8, 3, 7252, 46351, 22136, 65, 405, 64, 2154, 3559, 3, 2078, 15363, 64, 3388, 1899, 69, 2780, 66, 21, 69, 1157, 17457, 405, 15630, 23, 2548, 68, 24, 69, 17, ...
1.769231
52
from dwio.nyu.algos import eGCD
[ 198, 6738, 43756, 952, 13, 3281, 84, 13, 14016, 418, 1330, 304, 38, 8610, 628 ]
2.266667
15
from setuptools import find_packages, setup requirements = [] with open("requirements.txt") as f: for line in f: line = line.strip() requirements.append(line) setup( name="csv_to_table", version="0.0.3", description="Generates a CREATE TABLE statement from a CSV file by guessing at co...
[ 6738, 900, 37623, 10141, 1330, 1064, 62, 43789, 11, 9058, 198, 198, 8897, 18883, 796, 17635, 198, 198, 4480, 1280, 7203, 8897, 18883, 13, 14116, 4943, 355, 277, 25, 198, 220, 220, 220, 329, 1627, 287, 277, 25, 198, 220, 220, 220, 22...
2.545932
381
"""Base class and task for commands.""" import traceback from .tasks import Task class CommandFailedException(BaseException): """Class to represent a failure in a command. Used to avoid printing multiple tracebacks on nested commands.""" pass class _CommandMeta(type): """ Metaclass (object that rep...
[ 37811, 14881, 1398, 290, 4876, 329, 9729, 526, 15931, 198, 11748, 12854, 1891, 198, 198, 6738, 764, 83, 6791, 1330, 15941, 628, 198, 4871, 9455, 37, 6255, 16922, 7, 14881, 16922, 2599, 198, 220, 220, 220, 37227, 9487, 284, 2380, 257, ...
2.603917
919
import tensorflow as tf import keras
[ 11748, 11192, 273, 11125, 355, 48700, 198, 11748, 41927, 292 ]
3.6
10
from .libindy import do_call, create_cb from ctypes import * import logging
[ 6738, 764, 8019, 521, 88, 1330, 466, 62, 13345, 11, 2251, 62, 21101, 198, 198, 6738, 269, 19199, 1330, 1635, 198, 198, 11748, 18931, 628 ]
3.16
25
""" Created on Aug 28, 2018 @author: ionut """ import datetime import logging from tornado.web import RequestHandler from tornado.websocket import WebSocketHandler import camera class HomeHandler(RequestHandler): """ Handler for / - render index.html """ class ImageHandler(WebSocketHandler): """ ...
[ 37811, 198, 41972, 319, 2447, 2579, 11, 2864, 198, 198, 31, 9800, 25, 22088, 315, 198, 37811, 198, 198, 11748, 4818, 8079, 198, 11748, 18931, 198, 6738, 33718, 13, 12384, 1330, 19390, 25060, 198, 6738, 33718, 13, 732, 1443, 5459, 1330, ...
2.5
808
#!/usr/bin/env python # coding=utf-8 """ Ant Group Copyright (c) 2004-2020 All Rights Reserved. ------------------------------------------------------ File Name : base Author : Qizhi Zhang Email: qizhi.zqz@antgroup.com Create Time : 2020-05-14 19:58 Description : description what the main functi...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 19617, 28, 40477, 12, 23, 198, 37811, 198, 220, 220, 3738, 4912, 198, 220, 220, 15069, 357, 66, 8, 5472, 12, 42334, 1439, 6923, 33876, 13, 198, 220, 220, 20368, 19351, 438, 198, ...
2.165874
19,352
from django.contrib.auth.models import User, Group from rest_framework import serializers from apps.archivo.serializers import FotoEmpleadoSerializer from apps.comun.serializers import DireccionSerializer from apps.empleado.models import Empleado, DatosUsuarioEmpleado from apps.punto_control.serializers import...
[ 6738, 42625, 14208, 13, 3642, 822, 13, 18439, 13, 27530, 1330, 11787, 11, 4912, 201, 198, 201, 198, 6738, 1334, 62, 30604, 1330, 11389, 11341, 201, 198, 201, 198, 6738, 6725, 13, 998, 23593, 13, 46911, 11341, 1330, 376, 2069, 10161, 1...
3.240876
137
import _kratos from .util import const from typing import Union, List from _kratos import get_fn_ln
[ 11748, 4808, 74, 10366, 418, 198, 6738, 764, 22602, 1330, 1500, 198, 6738, 19720, 1330, 4479, 11, 7343, 198, 6738, 4808, 74, 10366, 418, 1330, 651, 62, 22184, 62, 18755, 628, 628, 628 ]
3.181818
33
from tensorflow_core.python.keras.engine.sequential import Sequential from tensorflow_core.python.keras.layers import ConvLSTM2D, Flatten, Dense, Dropout, concatenate from tensorflow_core.python.keras.layers.normalization import BatchNormalization from tensorflow_core.python.keras.models import Sequential, Model from ...
[ 6738, 11192, 273, 11125, 62, 7295, 13, 29412, 13, 6122, 292, 13, 18392, 13, 3107, 1843, 1330, 24604, 1843, 198, 6738, 11192, 273, 11125, 62, 7295, 13, 29412, 13, 6122, 292, 13, 75, 6962, 1330, 34872, 43, 2257, 44, 17, 35, 11, 1610, ...
2.698198
222
import os import argparse import torch import torch.nn as nn import torch.optim as optim from torchvision import transforms from torchvision.datasets import cifar from networks import cifar_archs, ilsvrc12_archs from networks import weights_init from netslim import prune, load_pruned_model, update_bn, update_bn_by_nam...
[ 11748, 28686, 198, 11748, 1822, 29572, 198, 11748, 28034, 198, 11748, 28034, 13, 20471, 355, 299, 77, 198, 11748, 28034, 13, 40085, 355, 6436, 198, 6738, 28034, 10178, 1330, 31408, 198, 6738, 28034, 10178, 13, 19608, 292, 1039, 1330, 269,...
2.422521
968
import pygame as pg import math run : bool = True pg.init() pg.font.init() WINDOW_W : int = 1600 WINDOW_H : int = 1000 fps : int = 60 clock = pg.time.Clock() drag_allowed : bool = False zoom : float = 1 GREEN : tuple = (220, 230, 190) window = pg.display.set_mode((WINDOW_W, WINDOW_H)) pg.disp...
[ 11748, 12972, 6057, 355, 23241, 201, 198, 11748, 10688, 201, 198, 201, 198, 5143, 1058, 20512, 796, 6407, 201, 198, 201, 198, 6024, 13, 15003, 3419, 201, 198, 6024, 13, 10331, 13, 15003, 3419, 201, 198, 201, 198, 201, 198, 28929, 3913...
1.900332
3,010
#!/usr/bin/env python # -*- coding: utf-8 -*- """ File: Gevent.py Author: Scott Yang(Scott) Email: yangyingfa@skybility.com Copyright: Copyright (c) 2021, Skybility Software Co.,Ltd. All rights reserved. Description: """ import gevent import time from gevent import monkey monkey.patch_all() if __name__ == '__mai...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 37811, 198, 8979, 25, 2269, 1151, 13, 9078, 198, 13838, 25, 4746, 10998, 7, 19040, 8, 198, 15333, 25, 331, 648, ...
2.785124
121
#!/usr/bin/python import spear.LPR.plateLocate, sys import spear.LPR.imageProcessing input_image_path = str(sys.argv[1]) img = spear.SimpleCV.Image(input_image_path) cropped_img = spear.LPR.imageProcessing.cropToROI(img) eq_img = spear.LPR.imageProcessing.equalize(cropped_img) rect_obj_list = spear.LPR.plateLocate...
[ 2, 48443, 14629, 14, 8800, 14, 29412, 198, 198, 11748, 17514, 13, 43, 4805, 13, 6816, 43, 13369, 11, 25064, 198, 11748, 17514, 13, 43, 4805, 13, 9060, 18709, 278, 198, 198, 15414, 62, 9060, 62, 6978, 796, 965, 7, 17597, 13, 853, 8...
2.562914
151
from direct.distributed.DistributedSmoothNodeBase import DistributedSmoothNodeBase from direct.distributed.GridParent import GridParent class GridChild: """ Any object that expects to be parented to a grid should inherit from this. It works with GridParent to manage its grid cell hierarchy in the scenegrap...
[ 6738, 1277, 13, 17080, 6169, 13, 20344, 6169, 7556, 5226, 19667, 14881, 1330, 4307, 6169, 7556, 5226, 19667, 14881, 198, 6738, 1277, 13, 17080, 6169, 13, 41339, 24546, 1330, 24846, 24546, 198, 198, 4871, 24846, 16424, 25, 198, 220, 220, ...
3.498141
269
"Transform functions for raw midi files" from enum import Enum import music21 PIANO_TYPES = list(range(24)) + list(range(80, 96)) # Piano, Synths PLUCK_TYPES = list(range(24, 40)) + list(range(104, 112)) # Guitar, Bass, Ethnic BRIGHT_TYPES = list(range(40, 56)) + list(range(56, 80)) PIANO_RANGE = (21, 109) type2...
[ 1, 41762, 5499, 329, 8246, 3095, 72, 3696, 1, 198, 6738, 33829, 1330, 2039, 388, 198, 11748, 2647, 2481, 198, 198, 11901, 1565, 46, 62, 9936, 47, 1546, 796, 1351, 7, 9521, 7, 1731, 4008, 1343, 1351, 7, 9521, 7, 1795, 11, 9907, 400...
2.46332
259
# _*_ coding:utf-8 _*_ __author__ = 'WANGY' __date__ = '2018/8/9 12:42' import xadmin from .models import Singer, Album, Audio, Song, AlbumDetail, AudioDetail from .forms import SingerAdminForm, AlbumAdminForm, SongAdminForm from common.base import CommonAdmin xadmin.site.register(Singer, SingerAdmin) xadmi...
[ 2, 4808, 9, 62, 19617, 25, 40477, 12, 23, 4808, 9, 62, 198, 834, 9800, 834, 796, 705, 54, 15567, 56, 6, 198, 834, 4475, 834, 796, 705, 7908, 14, 23, 14, 24, 1105, 25, 3682, 6, 198, 198, 11748, 2124, 28482, 198, 198, 6738, 764,...
2.950549
182
#!/usr/bin/env python3 # -*- coding: UTF-8 -*- # ----------------------------------------------------------------------------- # # P A G E B O T N A N O # # Copyright (c) 2020+ Buro Petr van Blokland + Claudia Mens # www.pagebot.io # Licensed under MIT conditions # # Supporting DrawBot, www.drawbot.com # ---...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 2, 532, 9, 12, 19617, 25, 41002, 12, 23, 532, 9, 12, 198, 2, 16529, 32501, 198, 2, 198, 2, 220, 220, 350, 317, 402, 412, 347, 440, 309, 220, 399, 317, 399, 440, 198, 2, 1...
2.644486
3,772
# Aim: to rotate a point P by θ°:, centre O. # MIT License # Copyright (c) 2020 syed343 (GitHub username) # 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 wit...
[ 2, 36223, 25, 284, 23064, 257, 966, 350, 416, 7377, 116, 7200, 45299, 7372, 440, 13, 198, 198, 2, 17168, 13789, 198, 198, 2, 15069, 357, 66, 8, 12131, 827, 276, 32118, 357, 38, 270, 16066, 20579, 8, 198, 198, 2, 2448, 3411, 318, ...
2.655527
1,167
#!/usr/bin/python import sys import math, numpy as np import roslib; roslib.load_manifest('hrl_fabric_based_tactile_sensor') import rospy from hrl_msgs.msg import FloatArray import hrl_lib.util as ut import hrl_lib.transforms as tr import hrl_fabric_based_tactile_sensor.adc_publisher_node as apn from m3skin_ros.ms...
[ 2, 48443, 14629, 14, 8800, 14, 29412, 198, 198, 11748, 25064, 198, 11748, 10688, 11, 299, 32152, 355, 45941, 198, 198, 11748, 686, 6649, 571, 26, 686, 6649, 571, 13, 2220, 62, 805, 8409, 10786, 11840, 75, 62, 36434, 1173, 62, 3106, ...
1.966087
2,241
import demoji import parser demoji.download_codes()
[ 11748, 13605, 7285, 198, 11748, 30751, 198, 198, 9536, 31370, 13, 15002, 62, 40148, 3419, 628, 628, 628, 628, 628, 628, 628, 628, 628, 628, 628, 628, 628, 628, 628 ]
2.733333
30
#!/usr/bin/env python # Yackback 2018 # Red cog for scraping BOM
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 201, 198, 2, 575, 441, 1891, 2864, 201, 198, 2, 2297, 43072, 329, 46743, 347, 2662, 201, 198 ]
2.615385
26
# -*- coding: utf-8 -*- """ Generator.py create (generate) annotated data H. Déjean copyright Xerox 2017 READ project Developed for the EU project READ. The READ project has received funding from the European Union's Horizon 2020 research and innovation programme ...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 628, 198, 220, 220, 220, 35986, 13, 9078, 628, 220, 220, 220, 2251, 357, 8612, 378, 8, 24708, 515, 1366, 220, 198, 220, 220, 220, 220, 367, 13, 360, 2634, 73,...
2.750742
337
from channels.db import database_sync_to_async from wagsley.schema.base import query #from .models import Post from puput.models import EntryPage as Post from .schema import PostConnection, PostEdge, PostNode @query.field("allPosts") @database_sync_to_async @query.field("post") @database_sync_to_async
[ 6738, 9619, 13, 9945, 1330, 6831, 62, 27261, 62, 1462, 62, 292, 13361, 198, 198, 6738, 266, 3775, 1636, 13, 15952, 2611, 13, 8692, 1330, 12405, 198, 198, 2, 6738, 764, 27530, 1330, 2947, 198, 6738, 15552, 315, 13, 27530, 1330, 21617, ...
3.111111
99
#!/usr/bin/env python # -*- coding: utf-8 -*- # @Time : 2017/9/5 22:35 # @Author : Tom.lee # @Site : # @File : _test.py # @Software: PyCharm # import numpy as np
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 2488, 7575, 220, 220, 220, 1058, 2177, 14, 24, 14, 20, 2534, 25, 2327, 198, 2, 2488, 13838, 220, 1058, 4186, 13,...
2.058824
85
class StructuralInstanceUsage(Enum,IComparable,IFormattable,IConvertible): """ Represents the structural usage of a family instance. enum StructuralInstanceUsage,values: Automatic (10),Brace (7),Column (2),Girder (3),HorizontalBracing (8),Joist (4),KickerBracing (9),Other (6),Purlin (5),TrussChord (11),Tru...
[ 4871, 32112, 1523, 33384, 28350, 7, 4834, 388, 11, 2149, 296, 37064, 11, 5064, 579, 1078, 540, 11, 2149, 261, 1851, 856, 2599, 201, 198, 37227, 201, 198, 1432, 6629, 262, 13204, 8748, 286, 257, 1641, 4554, 13, 201, 198, 201, 198, 22...
2.572127
409
#!/usr/local/bin/python # -*- coding: utf-8 -*- import nlpregex.abs_graph.double_link import nlpregex.abs_graph.node import nlpregex.abs_graph.edge import nlpregex.abs_graph.graph # @brief # @param token_pairs: list of tuple of (first token, second token) # @brief main public function to find and re...
[ 2, 48443, 14629, 14, 12001, 14, 8800, 14, 29412, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 11748, 299, 75, 3866, 25636, 13, 8937, 62, 34960, 13, 23352, 62, 8726, 198, 11748, 299, 75, 3866, 25636, 13,...
2.59854
137
from ixnetwork_restpy.assistants.statistics.statviewassistant import StatViewAssistant from ixnetwork_restpy.assistants.ports.portmapassistant import PortMapAssistant
[ 6738, 220, 844, 27349, 62, 2118, 9078, 13, 562, 396, 1187, 13, 14269, 3969, 13, 14269, 1177, 562, 10167, 1330, 5133, 7680, 48902, 198, 6738, 220, 844, 27349, 62, 2118, 9078, 13, 562, 396, 1187, 13, 3742, 13, 634, 8899, 562, 10167, 1...
3.553191
47
#!/usr/bin/python3 # -*- encoding: utf-8 -*-
[ 2, 48443, 14629, 14, 8800, 14, 29412, 18, 198, 2, 532, 9, 12, 21004, 25, 3384, 69, 12, 23, 532, 9, 12, 198 ]
1.956522
23
import numpy as np import torch import torch.nn as nn import torch.optim as optim from torch.autograd import Variable from torchvision import datasets, transforms from torch.optim.lr_scheduler import StepLR, MultiStepLR import torch.nn.functional as F from torch import autograd from torch.utils.data import Dataset, Da...
[ 11748, 299, 32152, 355, 45941, 198, 11748, 28034, 198, 11748, 28034, 13, 20471, 355, 299, 77, 198, 11748, 28034, 13, 40085, 355, 6436, 198, 6738, 28034, 13, 2306, 519, 6335, 1330, 35748, 198, 6738, 28034, 10178, 1330, 40522, 11, 31408, ...
3.283871
155
# Generated by Django 2.1.8 on 2019-07-02 17:18 import cms.models.fields from django.conf import settings import django.contrib.postgres.fields from django.db import migrations, models import django.db.models.deletion import djangocms_attributes_field.fields import filer.fields.file import filer.fields.image
[ 2, 2980, 515, 416, 37770, 362, 13, 16, 13, 23, 319, 13130, 12, 2998, 12, 2999, 1596, 25, 1507, 198, 198, 11748, 269, 907, 13, 27530, 13, 25747, 198, 6738, 42625, 14208, 13, 10414, 1330, 6460, 198, 11748, 42625, 14208, 13, 3642, 822,...
3.089109
101
from colorama import Fore, Style from player import * class Enemy(Mario_reddy): """docstring for Enemy."""
[ 6738, 3124, 1689, 1330, 4558, 11, 17738, 198, 6738, 2137, 1330, 1635, 628, 198, 4871, 21785, 7, 42315, 62, 445, 9892, 2599, 198, 220, 220, 220, 37227, 15390, 8841, 329, 21785, 526, 15931, 198 ]
3.323529
34
""" Potential field imaging through the Generalized Inverse method --------------------------------------------------------------- Module :mod:`fatiando.gravmag.imaging` has functions for imaging methods in potential fields. These methods produce an image of the subsurface without doing an inversion. However, there is...
[ 37811, 198, 25396, 1843, 2214, 19560, 832, 262, 3611, 1143, 554, 4399, 2446, 198, 47232, 24305, 198, 198, 26796, 1058, 4666, 25, 63, 69, 7246, 25440, 13, 70, 4108, 19726, 13, 320, 3039, 63, 468, 5499, 329, 19560, 5050, 287, 198, 13059...
2.431021
1,283
# write_Crosswalk_Blackhurst.py (scripts) # !/usr/bin/env python3 # coding=utf-8 """ Create a crosswalk linking BEA to NAICS """ import pandas as pd from flowsa.common import datapath, load_bea_crosswalk from scripts.common_scripts import unique_activity_names, order_crosswalk if __name__ == '__main__': # sele...
[ 2, 3551, 62, 21544, 11152, 62, 9915, 33500, 13, 9078, 357, 46521, 8, 198, 2, 5145, 14, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 2, 19617, 28, 40477, 12, 23, 198, 198, 37811, 198, 16447, 257, 3272, 11152, 17795, 9348, 32, 284, 1...
2.822715
361
import arcpy if __name__ == '__main__': process( feature_class=arcpy.GetParameterAsText(0), field=arcpy.GetParameterAsText(1) )
[ 11748, 10389, 9078, 628, 198, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 198, 220, 220, 220, 1429, 7, 198, 220, 220, 220, 220, 220, 220, 220, 3895, 62, 4871, 28, 5605, 9078, 13, 3855, 36301, 1722, 8206, 7, 15, ...
2.231884
69
from pathlib import Path from urllib.parse import urlparse import click import requests import database_connection # noqa: F401 from matrix_connection import get_download_url from schema import Message def run_downloads(messages, download_dir, prefer_thumbnails): """Run downloads :param messages: List of...
[ 6738, 3108, 8019, 1330, 10644, 198, 6738, 2956, 297, 571, 13, 29572, 1330, 19016, 29572, 198, 198, 11748, 3904, 198, 11748, 7007, 198, 198, 11748, 6831, 62, 38659, 220, 1303, 645, 20402, 25, 376, 21844, 198, 6738, 17593, 62, 38659, 1330...
2.313223
1,210
#!/usr/bin/env python # # Copyright 2007 Google 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 o...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 198, 2, 15069, 4343, 3012, 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, 2393, ...
2.463965
12,460
# coding: utf-8 __all__ = ['set_app_key', 'get_app_key', 'set_timeout', 'get_timeout', 'set_port_number', 'get_port_number', 'set_log_level', 'set_log_path', #'set_app_id', 'get_app_id', 'set_on_state_callback', 'set_on_event_callback', 'Profile', 'get_...
[ 2, 19617, 25, 3384, 69, 12, 23, 198, 198, 834, 439, 834, 796, 37250, 2617, 62, 1324, 62, 2539, 3256, 705, 1136, 62, 1324, 62, 2539, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 705, 2617, 62, 48678, 3256, 705, 11...
2.688324
2,124
# -*- coding: utf-8 -*- """ Configuration manager for workflow definitions. This works over Kaptan:https://github.com/emre/kaptan The global configuration registry is declared in the bottom of this file. """ import os.path as op from nipype.pipeline.engine import Node, MapNode, JoinNode from nipype.interfaces.bas...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 198, 38149, 4706, 329, 30798, 17336, 13, 198, 1212, 2499, 625, 509, 2373, 272, 25, 5450, 1378, 12567, 13, 785, 14, 368, 260, 14, 74, 2373, 272, 198, 198, 464, ...
2.782913
1,428
from toolbag import format_as_si
[ 6738, 2891, 21454, 1330, 5794, 62, 292, 62, 13396, 628 ]
3.4
10
import os TRAIN_IMG_PATH = r"C:\Users\ASUS\Documents\Projects\Siamese_network\package\output" IMG_SHAPE = (28, 28, 1) BATCH_SIZE = 64 EPOCHS = 100
[ 11748, 28686, 198, 198, 51, 3861, 1268, 62, 3955, 38, 62, 34219, 796, 374, 1, 34, 7479, 14490, 59, 1921, 2937, 59, 38354, 59, 16775, 82, 59, 42801, 1047, 68, 62, 27349, 59, 26495, 59, 22915, 1, 198, 198, 3955, 38, 62, 9693, 45721,...
2.223881
67
import requests import json import sys from time import sleep if __name__ == '__main__': iterations = 50 if len(sys.argv) > 1: iterations = int(sys.argv[1]) for x in xrange(iterations): game_id = createGame() startGame(game_id) waitForGameEnd(game_id) print("Game Ended: %d - %s" % (x + 1, game_id))
[ 11748, 7007, 198, 11748, 33918, 198, 11748, 25064, 198, 6738, 640, 1330, 3993, 198, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 198, 197, 2676, 602, 796, 2026, 628, 197, 361, 18896, 7, 17597, 13, 853, 85, 8, 1875, ...
2.46875
128
""" Copyright @ 2017, 2020, 2021 United States Government as represented by the Administrator of the National Aeronautics and Space Administration. All Rights Reserved. This software may be used, reproduced, and provided to others only as permitted under the terms of the agreement under which it was acquired from the U...
[ 37811, 198, 15269, 2488, 2177, 11, 12131, 11, 33448, 1578, 1829, 5070, 355, 7997, 416, 262, 22998, 286, 262, 2351, 15781, 261, 2306, 873, 290, 4687, 8694, 13, 1439, 6923, 33876, 13, 198, 1212, 3788, 743, 307, 973, 11, 31759, 11, 290, ...
3.365098
1,679
############################################################################### ############################################################################### # Name: log.py # Coder: Janson Fang # Description: # This module contains a method used create a logger ######################################################...
[ 29113, 29113, 7804, 4242, 21017, 198, 29113, 29113, 7804, 4242, 21017, 198, 2, 6530, 25, 2604, 13, 9078, 198, 2, 327, 12342, 25, 449, 23103, 24468, 198, 2, 12489, 25, 198, 2, 220, 220, 770, 8265, 4909, 257, 2446, 973, 2251, 257, 497...
3.823285
481
# branching_iteration.py # name = "tsofa" # greeting = "hi " + name # print(greeting) # #text = raw_input("type anything please") # text = str(input("type anything please")) # print(5*text) # # if true prog ends and doesn't look at other conditions. # x = float(input("Enter a value for x: ")) # y = float(input("Ente...
[ 2, 49526, 62, 2676, 341, 13, 9078, 198, 198, 2, 1438, 796, 366, 83, 568, 13331, 1, 198, 2, 31933, 796, 366, 5303, 366, 1343, 1438, 198, 2, 3601, 7, 70, 2871, 278, 8, 198, 198, 2, 1303, 5239, 796, 8246, 62, 15414, 7203, 4906, 1...
2.695887
924
""" Holds event definitions to be used by services for generating events """ from .base import EventBase from .types import ( ActivePolicyBundleContentChanged, ActivePolicyBundleIdChanged, FeedGroupSyncCompleted, FeedGroupSyncFailed, FeedGroupSyncStarted, FeedSyncCompleted, FeedSyncFailed, ...
[ 37811, 198, 39, 10119, 1785, 17336, 284, 307, 973, 416, 2594, 329, 15453, 2995, 198, 37811, 198, 198, 6738, 764, 8692, 1330, 8558, 14881, 198, 6738, 764, 19199, 1330, 357, 198, 220, 220, 220, 14199, 36727, 33, 31249, 19746, 31813, 11, ...
2.885714
385
__all__ = ["Package"] from resource_management.core.base import Resource, ForcedListArgument, ResourceArgument
[ 834, 439, 834, 796, 14631, 27813, 8973, 198, 198, 6738, 8271, 62, 27604, 13, 7295, 13, 8692, 1330, 20857, 11, 40731, 8053, 28100, 1713, 11, 20857, 28100, 1713, 628 ]
3.896552
29
'''This code is for Embedding face author : Hyunah Oh data : 2020.01.22 flow : Detection -> Alignment -> Normalization -> Embedding(load pretrained) -> Training Classification ''' import numpy as np import cv2 from data import load_metadata from model import create_model from align import AlignDlib from sklearn.ext...
[ 7061, 6, 1212, 2438, 318, 329, 13302, 6048, 278, 1986, 198, 1772, 1058, 6707, 403, 993, 3966, 198, 1366, 1058, 12131, 13, 486, 13, 1828, 198, 5202, 1058, 46254, 4613, 978, 16747, 4613, 14435, 1634, 4613, 13302, 6048, 278, 7, 2220, 218...
2.927171
357
from threading import Thread import time import random
[ 6738, 4704, 278, 1330, 14122, 198, 11748, 640, 198, 11748, 4738 ]
4.909091
11
# Copyright 2021 The Pigweed Authors # # 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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in ...
[ 2, 15069, 33448, 383, 23097, 39054, 46665, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 345, 743, 407, 198, 2, 779, 428, 2393, 2845, 287, 11846, 351, 262, 13789, 13, 921, 743, ...
2.100845
1,894
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'amir.ui' # # Created by: PyQt5 UI code generator 5.14.2 # # WARNING! All changes made in this file will be lost! from PyQt5 import QtCore, QtGui, QtWidgets if __name__ == "__main__": import sys app = QtWidgets.QAp...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 201, 198, 201, 198, 2, 5178, 7822, 7560, 422, 3555, 334, 72, 2393, 705, 321, 343, 13, 9019, 6, 201, 198, 2, 201, 198, 2, 15622, 416, 25, 9485, 48, 83, 20, 12454, 2438, ...
2.308057
211
# Copyright 2016-2019 IBM Corp. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or...
[ 2, 15069, 1584, 12, 23344, 19764, 11421, 13, 1439, 6923, 33876, 13, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 2, 345, 743, 407, 779, 428, 2393, 2845, 287, 11846, 351, ...
2.589144
5,306
from __future__ import print_function import argparse import sys import thread sys.path.append('..') sys.path.append('gen-py') from frugal.context import FContext from frugal.provider import FScopeProvider from frugal.server.http_server import FHttpServer from frugal.tornado.transport import FNatsPublisherTransportF...
[ 6738, 11593, 37443, 834, 1330, 3601, 62, 8818, 198, 198, 11748, 1822, 29572, 198, 11748, 25064, 198, 11748, 4704, 198, 198, 17597, 13, 6978, 13, 33295, 10786, 492, 11537, 198, 17597, 13, 6978, 13, 33295, 10786, 5235, 12, 9078, 11537, 19...
3.364672
351
# coding=utf-8 import math import torch from torch import Tensor from torch import nn from src.util.model_util import freeze_params class Embeddings(nn.Module): """ simple embedding class """ def __init__(self, embedding_dim: int = 64, scale: bool = False, vocab_size: int = 0, ...
[ 2, 19617, 28, 40477, 12, 23, 201, 198, 11748, 10688, 201, 198, 11748, 28034, 201, 198, 6738, 28034, 1330, 309, 22854, 201, 198, 6738, 28034, 1330, 299, 77, 201, 198, 201, 198, 6738, 12351, 13, 22602, 13, 19849, 62, 22602, 1330, 16611,...
2.087149
1,354
# -*- coding: utf-8 -*- from __future__ import (absolute_import, division, print_function, unicode_literals) from future.builtins import * # NOQA from future.utils import native_str import datetime import re import warnings from obspy import Catalog, UTCDateTime from obspy.core.event import O...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 6738, 11593, 37443, 834, 1330, 357, 48546, 62, 11748, 11, 7297, 11, 3601, 62, 8818, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 22...
2.218788
4,918
import urllib.request,json from .models import NewsSource,NewsArticle from datetime import date #getting api key api_key = None #getting news base url base_url = None #getting articles url articles_url = None def get_news_source(category): ''' Function that gets the json response to our url request ''' get_news...
[ 11748, 2956, 297, 571, 13, 25927, 11, 17752, 198, 6738, 764, 27530, 1330, 3000, 7416, 11, 9980, 14906, 198, 6738, 4818, 8079, 1330, 3128, 198, 198, 2, 37210, 40391, 1994, 198, 15042, 62, 2539, 796, 6045, 198, 198, 2, 37210, 1705, 2779...
2.965398
867
""" Code is generated by ucloud-model, DO NOT EDIT IT. """ import pytest import logging from ucloud.core import exc from ucloud.testing import env, funcs, op, utest logger = logging.getLogger(__name__) scenario = utest.Scenario(207) @pytest.mark.skipif(env.is_ut(), reason=env.get_skip_reason()) @scenario.step(...
[ 37811, 6127, 318, 7560, 416, 334, 17721, 12, 19849, 11, 8410, 5626, 48483, 7283, 13, 37227, 198, 198, 11748, 12972, 9288, 198, 11748, 18931, 198, 198, 6738, 334, 17721, 13, 7295, 1330, 2859, 198, 6738, 334, 17721, 13, 33407, 1330, 17365...
2.189033
2,936
#!/usr/bin/env python3 import argparse from crfunctions import btcprice from crfunctions import ltcprice from crfunctions import ethprice parser = argparse.ArgumentParser() parser.add_argument('--btc', dest='btcprice', help='Displays the current price of Bitcoin.',default=False, action='store_...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 628, 198, 11748, 1822, 29572, 628, 198, 6738, 1067, 12543, 2733, 1330, 275, 23047, 20888, 198, 6738, 1067, 12543, 2733, 1330, 300, 23047, 20888, 198, 6738, 1067, 12543, 2733, 1330, 4555, ...
2.669014
284
from django.apps import AppConfig
[ 6738, 42625, 14208, 13, 18211, 1330, 2034, 16934, 628 ]
3.888889
9
#!/usr/bin/python3
[ 2, 48443, 14629, 14, 8800, 14, 29412, 18, 198 ]
2.111111
9
# -*- coding:utf-8 -*_ """ @author: Fang Wang @date: 2017.02.25 @desc: mongodb client """ import pymongo from pymongo import MongoClient if __name__ == "__main__": print insert_data({"a": 1}) print query_data({"a": 1})
[ 2, 532, 9, 12, 19617, 25, 40477, 12, 23, 532, 9, 62, 198, 198, 37811, 198, 31, 9800, 25, 24468, 15233, 198, 31, 4475, 25, 2177, 13, 2999, 13, 1495, 198, 31, 20147, 25, 285, 506, 375, 65, 5456, 198, 37811, 198, 11748, 279, 4948, ...
2.397959
98
#!/usr/bin/env python """Simple Python script to generate iCalendar from the D&D content calendar. This depends on BeautifulSoup and icalendar, both of which are easy_install-able.""" import urllib2 from BeautifulSoup import BeautifulSoup from datetime import date, timedelta from icalendar import Event, Calendar bas...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 37811, 26437, 11361, 4226, 284, 7716, 1312, 9771, 9239, 422, 262, 360, 5, 35, 2695, 11845, 13, 198, 1212, 8338, 319, 23762, 50, 10486, 290, 220, 605, 9239, 11, 1111, 286, 543, 389, 2...
2.276342
1,509
""" entry points to pastescript """ import sys from .urldispatcher import URLDispatcher def make_urldispatch_application(_, **settings): """ paste.app_factory interface for URLDispatcher""" patterns = [p.split("=", 1) for p in settings['patterns'].split('\n') if p] applicat...
[ 37811, 5726, 2173, 284, 1613, 3798, 1968, 198, 37811, 198, 11748, 25064, 198, 6738, 764, 333, 335, 271, 8071, 2044, 1330, 10289, 7279, 8071, 2044, 628, 198, 4299, 787, 62, 333, 335, 8802, 963, 62, 31438, 28264, 11, 12429, 33692, 2599, ...
2.337979
287
import torch from torch.autograd import Variable from ..torchkit import log_normal, SigmoidFlow from .base_model import BaseModel class FlowModel(BaseModel): """ Abstract class for normalizing flow model """ def compute_log_likelihood(self, x, weights, biases, extra_params, ...
[ 11748, 28034, 198, 6738, 28034, 13, 2306, 519, 6335, 1330, 35748, 198, 6738, 11485, 13165, 354, 15813, 1330, 2604, 62, 11265, 11, 311, 17225, 1868, 37535, 198, 6738, 764, 8692, 62, 19849, 1330, 7308, 17633, 628, 198, 4871, 27782, 17633, ...
2.658768
422
from enum import Enum, auto
[ 6738, 33829, 1330, 2039, 388, 11, 8295, 201, 198 ]
3.222222
9
from rest_framework import serializers from rest_framework.fields import ReadOnlyField from klazor.models import *
[ 6738, 1334, 62, 30604, 1330, 11389, 11341, 198, 6738, 1334, 62, 30604, 13, 25747, 1330, 4149, 10049, 15878, 198, 198, 6738, 479, 75, 17725, 13, 27530, 1330, 1635, 628, 628, 628, 628, 628, 628, 628, 628, 628, 628, 628 ]
3.512821
39
import logging import cv2 import numpy import pytesseract import requests from config import DEAN_URL, STUDENT_ID, PASSWORD DEAN_INDEX_PATH = "service/login.html" POST_LOGIN_FORM_PATH = "vatuu/UserLoginAction" POST_USER_LOADING_PATH = "vatuu/UserLoadingAction" GET_CAPTCHA_IMG_PATH = "vatuu/GetRandomNumberToJPEG"
[ 11748, 18931, 198, 198, 11748, 269, 85, 17, 198, 11748, 299, 32152, 198, 11748, 12972, 83, 408, 263, 529, 198, 11748, 7007, 198, 198, 6738, 4566, 1330, 5550, 1565, 62, 21886, 11, 49348, 3525, 62, 2389, 11, 41752, 54, 12532, 198, 198, ...
2.636364
121
#!/usr/bin/python # -*- encoding: utf-8 -*- class Zigzag: """ The Zigzag Cipher (Rail-Fence) """ def encrypt(self, text, key, alphabet=None): """ Encryption method :param text: Text to encrypt :param key: Encryption key :param alphabet: unused :type te...
[ 2, 48443, 14629, 14, 8800, 14, 29412, 198, 2, 532, 9, 12, 21004, 25, 3384, 69, 12, 23, 532, 9, 12, 628, 198, 4871, 24992, 50183, 25, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 383, 24992, 50183, 44334, 357, 44631, 12, 37, 59...
1.930118
1,016
__version__="0.5.3"
[ 834, 9641, 834, 2625, 15, 13, 20, 13, 18, 1, 198 ]
1.818182
11
from ..common import * """ ### 使用者自定义视图模板并为此模板编辑逻辑的步骤:【后期补全】 """ ### """ ### 路由默认写入根urls.py文件,也可用新的别名替代第一个名字(不推荐这么做,因为随之改动的地方会很多,除非你很熟悉Django,否则不建议更改urls.py在别名中的位置)。 ### 存在隐患,在用户创建路由时应当判断路由明是否冲突,反向名称是否冲突。这将在未来版本中修复。 ### urlpatterns参数必须要有一个空行,否则会错误处理。这将在未来版本中修复。 """ LABEL_COL_LEN = 200
[ 6738, 11485, 11321, 1330, 1635, 198, 198, 37811, 198, 21017, 220, 45635, 18796, 101, 38519, 164, 229, 103, 22522, 248, 20046, 231, 164, 100, 228, 32368, 122, 162, 101, 94, 30266, 123, 33176, 114, 10310, 118, 29826, 97, 162, 101, 94, 3...
0.701923
416
#!/usr/bin/env python # -*- coding:utf-8 -*- __author__ = 'LexusLee' """ 构造枚举类 """ class Enum: """ 枚举类 """ if __name__ == '__main__': print 'Test begin.' print 'Test end.'
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 532, 9, 12, 19617, 25, 40477, 12, 23, 532, 9, 12, 198, 834, 9800, 834, 796, 705, 45117, 385, 24338, 6, 198, 37811, 198, 162, 252, 226, 34460, 254, 162, 252, 248, 10310, 122, 1...
1.831776
107
# encoding: utf-8 """ @author: Chong Li @time: 2021/06/25 16:35 @desc: """ import torch import numpy as np
[ 2, 21004, 25, 3384, 69, 12, 23, 198, 37811, 198, 31, 9800, 25, 46892, 7455, 198, 31, 2435, 25, 33448, 14, 3312, 14, 1495, 1467, 25, 2327, 198, 31, 20147, 25, 198, 37811, 198, 198, 11748, 28034, 198, 11748, 299, 32152, 355, 45941, ...
2.477273
44
''' 08 - Plotting time-series: putting it all together In this exercise, you will plot two time-series with different scales on the same Axes, and annotate the data from one of these series. The CO2/temperatures data is provided as a DataFrame called climate_change. You should also use the function that we have ...
[ 7061, 6, 198, 2919, 532, 28114, 889, 640, 12, 25076, 25, 5137, 340, 477, 1978, 198, 198, 818, 428, 5517, 11, 345, 481, 7110, 734, 640, 12, 25076, 351, 1180, 16252, 319, 262, 220, 198, 31642, 12176, 274, 11, 290, 24708, 378, 262, 1...
3.173486
611
# Initialization file contains the server settings and config options. It also # builds the app and initializes the server. import os import secrets from flask import Flask from flask_sqlalchemy import SQLAlchemy from flask_bcrypt import Bcrypt from flask_login import LoginManager from flask_mail import Mail secret_k...
[ 2, 20768, 1634, 2393, 4909, 262, 4382, 6460, 290, 4566, 3689, 13, 632, 635, 198, 2, 12188, 262, 598, 290, 4238, 4340, 262, 4382, 13, 198, 198, 11748, 28686, 198, 11748, 13141, 198, 6738, 42903, 1330, 46947, 198, 6738, 42903, 62, 25410...
2.93921
329
""" _/_/_/_/_/_/_/_/ _/ ver 1.0.2 _/ _/_/_/_/_/_/_/_/ """ import asyncio import discord from discord.ext import commands import re import sys import os # TODO:os.environ['DISCORD_BOT_TOKEN'] TOKEN = os.environ['DISCORD_BOT_TOKEN'] # TODO:コマンド変更時 bot = commands.Bot(command_prefix='!') Emcompre = '!' # TODO:バージョ...
[ 37811, 198, 171, 120, 123, 14, 171, 120, 123, 14, 171, 120, 123, 14, 171, 120, 123, 14, 171, 120, 123, 14, 171, 120, 123, 14, 171, 120, 123, 14, 171, 120, 123, 14, 198, 171, 120, 123, 14, 220, 220, 220, 3326, 352, 13, 15, 13...
1.398406
2,008
print(sum(map(max, zip(map(int, input().split()), map(int, input().split())))))
[ 4798, 7, 16345, 7, 8899, 7, 9806, 11, 19974, 7, 8899, 7, 600, 11, 5128, 22446, 35312, 3419, 828, 3975, 7, 600, 11, 5128, 22446, 35312, 3419, 4008, 22305, 201, 198 ]
2.612903
31