content
stringlengths
1
1.04M
input_ids
listlengths
1
774k
ratio_char_token
float64
0.38
22.9
token_count
int64
1
774k
import sklearn.linear_model as skl
[ 11748, 1341, 35720, 13, 29127, 62, 19849, 355, 1341, 75, 198 ]
3.181818
11
import pytest from pmxbot import util @pytest.mark.xfail(reason="Wordnik is unreliable") @pytest.mark.xfail(reason="#97: Google is unreliable")
[ 11748, 12972, 9288, 198, 198, 6738, 9114, 87, 13645, 1330, 7736, 628, 198, 31, 9078, 9288, 13, 4102, 13, 26152, 603, 7, 41181, 2625, 26449, 17187, 318, 29954, 4943, 628, 198, 31, 9078, 9288, 13, 4102, 13, 26152, 603, 7, 41181, 25698, ...
3.061224
49
#!/usr/bin/env python """ This example a coupe of ways to visualize statistic data. As an example I took the monthly temperature in the region where I live (Twente, The Netherlands) over the period 1983-2010. This data was extracted from publicly available data obtained from the Royal Netherlands Meteorological Inst...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 37811, 770, 1672, 257, 2284, 431, 286, 2842, 284, 38350, 24696, 1366, 13, 198, 198, 1722, 281, 1672, 314, 1718, 262, 9651, 5951, 287, 262, 3814, 810, 314, 2107, 220, 198, 7, 5080, 21...
2.106887
1,815
import unittest import hcl2 from checkov.common.models.enums import CheckResult from checkov.terraform.checks.resource.gcp.CloudStorageLogging import check if __name__ == '__main__': unittest.main()
[ 11748, 555, 715, 395, 198, 198, 11748, 289, 565, 17, 198, 198, 6738, 2198, 709, 13, 11321, 13, 27530, 13, 268, 5700, 1330, 6822, 23004, 198, 6738, 2198, 709, 13, 353, 430, 687, 13, 42116, 13, 31092, 13, 70, 13155, 13, 18839, 31425, ...
2.957143
70
from antarest.study.storage.rawstudy.model.filesystem.config.model import ( FileStudyTreeConfig, ) from antarest.study.storage.rawstudy.model.filesystem.context import ( ContextServer, ) from antarest.study.storage.rawstudy.model.filesystem.ini_file_node import ( IniFileNode, )
[ 6738, 1885, 12423, 13, 44517, 13, 35350, 13, 1831, 44517, 13, 19849, 13, 16624, 6781, 13, 11250, 13, 19849, 1330, 357, 198, 220, 220, 220, 9220, 39841, 27660, 16934, 11, 198, 8, 198, 6738, 1885, 12423, 13, 44517, 13, 35350, 13, 1831, ...
3.010309
97
from __future__ import absolute_import '''Resnet for cifar dataset. Ported form https://github.com/facebook/fb.resnet.torch and https://github.com/pytorch/vision/blob/master/torchvision/models/resnet.py (c) YANG, Wei ''' import torch.nn as nn import math import torch import numpy as np __all__ = ['resnet','resnet50']...
[ 6738, 11593, 37443, 834, 1330, 4112, 62, 11748, 198, 198, 7061, 6, 4965, 3262, 329, 269, 361, 283, 27039, 13, 198, 47, 9741, 1296, 198, 5450, 1378, 12567, 13, 785, 14, 19024, 14, 21855, 13, 411, 3262, 13, 13165, 354, 198, 392, 198, ...
2.679245
371
# Read in serifxml then save it an make sure the files are # essentially identical import sys, os script_dir = os.path.dirname(os.path.realpath(__file__)) sys.path.append(os.path.join(script_dir, "..")) import serifxml3 if len(sys.argv) != 3: print("Usage: " + sys.argv[0] + " input-serifxml-file output-serifxml-...
[ 2, 4149, 287, 1055, 361, 19875, 788, 3613, 340, 281, 787, 1654, 262, 3696, 389, 220, 198, 2, 6986, 10411, 198, 198, 11748, 25064, 11, 28686, 198, 12048, 62, 15908, 796, 28686, 13, 6978, 13, 15908, 3672, 7, 418, 13, 6978, 13, 5305, ...
2.535385
325
import numpy as np import numba as nb @nb.njit
[ 11748, 299, 32152, 355, 45941, 198, 11748, 997, 7012, 355, 299, 65, 628, 198, 31, 46803, 13, 77, 45051 ]
2.526316
19
import os ROOT = '/home/xjw/Downloads/code/mmsegmentation-0.21.0/' def txt2filename(txt_path): """ @param txt_path: @return: 返回数据集中包含的所有图片的名称 """ data = [] with open(txt_path, 'r') as f: for ch in f.readlines(): data.append(ch.strip()) return data if __name__ == '_...
[ 11748, 28686, 198, 198, 13252, 2394, 796, 31051, 11195, 14, 87, 73, 86, 14, 10002, 82, 14, 8189, 14, 3020, 325, 5154, 341, 12, 15, 13, 2481, 13, 15, 14, 6, 628, 198, 198, 4299, 256, 742, 17, 34345, 7, 14116, 62, 6978, 2599, 198,...
1.868726
259
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Example TeraRanger MultiFlex configuration script. For more information about how to use this script, please refer to this document: https://www.terabee.com/wp-content/uploads/2017/09/TR-MF-Python-ReadMe.pdf """ import sys import binascii import serial if __name__ ==...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 198, 16281, 3813, 64, 49, 2564, 15237, 37, 2588, 8398, 4226, 13, 198, 1890, 517, 1321, 546, 703, 284, 779, 428...
2.261161
448
# Generated by Django 4.0 on 2021-12-15 07:28 from django.db import migrations, models import django.db.models.deletion
[ 2, 2980, 515, 416, 37770, 604, 13, 15, 319, 33448, 12, 1065, 12, 1314, 8753, 25, 2078, 198, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 11, 4981, 198, 11748, 42625, 14208, 13, 9945, 13, 27530, 13, 2934, 1616, 295, 628 ]
2.904762
42
# coding: utf-8 """ Gate API v4 Welcome to Gate.io API APIv4 provides spot, margin and futures trading operations. There are public APIs to retrieve the real-time market statistics, and private APIs which needs authentication to trade on user's behalf. # noqa: E501 Contact: support@mail.gate.io Gen...
[ 2, 19617, 25, 3384, 69, 12, 23, 198, 198, 37811, 198, 220, 220, 220, 12816, 7824, 410, 19, 628, 220, 220, 220, 19134, 284, 12816, 13, 952, 7824, 220, 7824, 85, 19, 3769, 4136, 11, 10330, 290, 25650, 7313, 4560, 13, 1318, 389, 1171...
2.355507
2,270
from django.contrib import admin class UserAdmin(admin.ModelAdmin): """User admin""" exclude = ('renewed',) list_display = ('username', 'email', 'isActive', 'created', 'modified') list_filter = ('isActive',) search_fields = ('firstName', 'lastName', 'username', 'email') class...
[ 6738, 42625, 14208, 13, 3642, 822, 1330, 13169, 628, 628, 198, 4871, 11787, 46787, 7, 28482, 13, 17633, 46787, 2599, 198, 220, 220, 220, 37227, 12982, 13169, 37811, 628, 220, 220, 220, 19607, 796, 19203, 918, 413, 276, 3256, 8, 198, 2...
2.800971
206
from enum import Enum, auto class J1939_PDU(Enum): """ J1939 PDU type """ PDU1 = auto() PDU2 = auto() class J1939_PGN: """ J1939 PGN class. """ _id = None def __init__(self, msg_id: int = None, msg_pgn: int = None): """ Takes either a message ID or PGN ...
[ 6738, 33829, 1330, 2039, 388, 11, 8295, 628, 198, 4871, 449, 1129, 2670, 62, 5760, 52, 7, 4834, 388, 2599, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 449, 1129, 2670, 14340, 52, 2099, 198, 220, 220, 220, 37227, 198, 220, 220, ...
1.885389
1,143
birthday_dictionary = { "Albert Einstein" : "1/12/1912", "Jeong Eun Kim" : "21/12/1983", "Djangojeng-e" : "18/12/1986", "Django": "01/01/2005" } name = input("Who's Birthday do you want to look up?") if name in birthday_dictionary: print(f'{name}s birthday is {birthday_dictionary[name]}') else...
[ 198, 24280, 820, 62, 67, 14188, 796, 1391, 198, 220, 220, 220, 366, 42590, 24572, 1, 1058, 366, 16, 14, 1065, 14, 1129, 1065, 1600, 198, 220, 220, 220, 366, 40932, 506, 412, 403, 6502, 1, 1058, 366, 2481, 14, 1065, 14, 29279, 1600...
2.354037
161
import tkinter # for GUI from PIL import Image, ImageTk # operation regarding image import random # toplevel widget which represents the main window of an application root = tkinter.Tk() root.geometry('400x400') root.title('Data Flair Roll the Dice') # Adding label into the frame. Here we skip a line l0 =...
[ 11748, 256, 74, 3849, 220, 1303, 329, 25757, 201, 198, 6738, 350, 4146, 1330, 7412, 11, 7412, 51, 74, 220, 1303, 4905, 5115, 2939, 201, 198, 11748, 4738, 201, 198, 201, 198, 2, 284, 1154, 626, 26295, 543, 6870, 262, 1388, 4324, 286,...
2.724665
523
#! /usr/bin/env python2.7 ''' __init__ file for fetch_gitignore. ''' __author__ = "Srinidhi Kaushik" __license__ = "MIT" __version__ = "0.0.1" __email__ = "clickyotomy@users.noreply.github.com"
[ 2, 0, 1220, 14629, 14, 8800, 14, 24330, 21015, 17, 13, 22, 198, 198, 7061, 6, 198, 834, 15003, 834, 2393, 329, 21207, 62, 18300, 46430, 13, 198, 7061, 6, 198, 198, 834, 9800, 834, 796, 366, 50, 12769, 312, 5303, 11611, 1530, 1134,...
2.264368
87
""" 06. Escreva um método show() para escrever toda a lista. Exemplo: lista = ListaOrdenada(); lista.append(3); lista.append(2); lista.show() imprime: [2,3] """ #Implementação da Classe Noh #Lista não ordenada: if __name__ == '__main__': minha_lista = ListaOrdenada() #exemplo de uso print(minha_lista.isEmpty()) ...
[ 37811, 198, 3312, 13, 198, 47051, 260, 6862, 23781, 285, 25125, 24313, 905, 3419, 31215, 3671, 260, 332, 284, 6814, 257, 1351, 64, 13, 1475, 18856, 78, 25, 1351, 64, 796, 7343, 64, 35422, 268, 4763, 9783, 198, 4868, 64, 13, 33295, 7...
2.28972
214
# -*- coding: utf-8 -*- # Author : Jin Kim # e-mail : jinkim@seculayer.com # Powered by Seculayer © 2020 Solution Development 2 Team, R&D Center. import os from hps.common.Constants import Constants from hps.utils.Singleton import Singleton from hps.utils.MPLogger import MPLogger from hps.utils.CommonUtils import Co...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 6434, 1058, 17297, 6502, 198, 2, 304, 12, 4529, 1058, 474, 676, 320, 31, 2363, 377, 2794, 13, 785, 198, 2, 45090, 416, 1882, 377, 2794, 10673, 12131, 28186, 7712, ...
2.92437
119
import functools import hmac from typing import Any from typing import Callable from typing import Optional from flask import abort from flask import current_app from flask import request from werkzeug.exceptions import ServiceUnavailable def authorize_source() -> Callable: """Detect the source from the headers ...
[ 11748, 1257, 310, 10141, 198, 11748, 289, 20285, 198, 6738, 19720, 1330, 4377, 198, 6738, 19720, 1330, 4889, 540, 198, 6738, 19720, 1330, 32233, 198, 198, 6738, 42903, 1330, 15614, 198, 6738, 42903, 1330, 1459, 62, 1324, 198, 6738, 42903,...
3.044293
587
import numpy as np from enum import Enum from pysvso.lib.maths.rotation import Euler, Quaternion, rotation_matrix, dRx, dRy, dRz from scipy.optimize import fmin_bfgs from scipy.optimize import fmin from scipy.optimize import minimize from scipy.optimize import approx_fprime # when point cloud is parse from sklearn.nei...
[ 11748, 299, 32152, 355, 45941, 198, 6738, 33829, 1330, 2039, 388, 198, 6738, 279, 893, 85, 568, 13, 8019, 13, 11018, 82, 13, 10599, 341, 1330, 412, 18173, 11, 2264, 9205, 295, 11, 13179, 62, 6759, 8609, 11, 288, 49, 87, 11, 288, 4...
3.127841
352
import tensorflow as tf import model import data # 訓練データ作成担当 g = data.Data() # GPUをすべて使わないオプション config = tf.ConfigProto() config.gpu_options.allow_growth = True sess = tf.Session(config=config) tf.keras.backend.set_session(sess) # モデルを作成 model = model.make(tflite=False) # 最適化を定義 optimizer = tf.keras.optimizers.Adam(lr...
[ 11748, 11192, 273, 11125, 355, 48700, 198, 11748, 2746, 198, 11748, 1366, 198, 198, 2, 5525, 101, 241, 45784, 112, 21959, 6312, 23376, 43291, 22755, 238, 162, 233, 227, 37605, 241, 198, 70, 796, 1366, 13, 6601, 3419, 198, 2, 11362, 31...
2.104278
374
import uuid import hashlib import bcrypt import json from string import Template from datetime import datetime from fastapi import HTTPException from fastapi.encoders import jsonable_encoder from pydantic import IPvAnyAddress from pymongo import MongoClient from bson import json_util from core.models import MongoMode...
[ 11748, 334, 27112, 198, 11748, 12234, 8019, 198, 11748, 275, 29609, 198, 11748, 33918, 198, 198, 6738, 4731, 1330, 37350, 198, 6738, 4818, 8079, 1330, 4818, 8079, 198, 6738, 3049, 15042, 1330, 14626, 16922, 198, 6738, 3049, 15042, 13, 126...
3.135678
199
#! /usr/bin/env python # -*- coding: utf-8 -*- # # Copyright © Autogator Project Contributors # Licensed under the terms of the MIT License # (see autogator/__init__.py for details) """ Tool that converts all .ui and .qrc files in the autogator.resources folder to python files in autogator.compiled. Usage: $ python3 ...
[ 2, 0, 1220, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 198, 2, 15069, 10673, 5231, 519, 1352, 4935, 25767, 669, 198, 2, 49962, 739, 262, 2846, 286, 262, 17168, 13789, ...
2.21562
589
from django.contrib.auth import get_user_model from django.test import TestCase from annotate import models class TestPages(TestCase): """Test that the proper templates are used to render pages."""
[ 6738, 42625, 14208, 13, 3642, 822, 13, 18439, 1330, 651, 62, 7220, 62, 19849, 198, 6738, 42625, 14208, 13, 9288, 1330, 6208, 20448, 198, 6738, 24708, 378, 1330, 4981, 628, 198, 4871, 6208, 47798, 7, 14402, 20448, 2599, 198, 220, 220, ...
3.642857
56
# -*-coding:utf-8-*- import numpy as np from PIL import Image from scipy import misc
[ 2, 532, 9, 12, 66, 7656, 25, 40477, 12, 23, 12, 9, 12, 198, 11748, 299, 32152, 355, 45941, 198, 6738, 350, 4146, 1330, 7412, 198, 6738, 629, 541, 88, 1330, 12747, 628, 198 ]
2.558824
34
from datetime import datetime import torch import torchvision def load_stored_resnet_model(categories, file_path): '''Adapted from NVIDIA DLI Course Code: Getting Started with AI on Jetson Nano''' print("Loading stored classification model...") # If we're on the Jetson Nano use cuda, otherwise cpu: ...
[ 6738, 4818, 8079, 1330, 4818, 8079, 198, 11748, 28034, 198, 11748, 28034, 10178, 198, 220, 220, 220, 220, 198, 4299, 3440, 62, 301, 1850, 62, 411, 3262, 62, 19849, 7, 66, 26129, 11, 2393, 62, 6978, 2599, 198, 220, 220, 220, 705, 706...
2.796935
261
# Generated by Django 2.1.1 on 2018-10-03 10:48 from django.db import migrations, models
[ 2, 2980, 515, 416, 37770, 362, 13, 16, 13, 16, 319, 2864, 12, 940, 12, 3070, 838, 25, 2780, 198, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 11, 4981, 628 ]
2.84375
32
import zipfile # #压缩 # file=zipfile.ZipFile('text.zip','w')#text.zip创建压缩包文件名 w读 # file.write("class.py")#压缩的文件名 # file.close() #解压缩 # file=zipfile.ZipFile('text.zip','r')#写 # file.extractall(path="../")#写到哪个路径下 创建到卓面 默认是在跟慕入下面 #暴力破解加密的压缩包 fileobj=open("pwd.txt","r")#新建一个txt文件 for item in fileobj.readline...
[ 11748, 19974, 7753, 201, 198, 2, 1303, 161, 23329, 163, 120, 102, 201, 198, 2, 2393, 28, 13344, 7753, 13, 41729, 8979, 10786, 5239, 13, 13344, 41707, 86, 11537, 2, 5239, 13, 13344, 26344, 249, 161, 119, 118, 161, 23329, 163, 120, 10...
1.424802
379
# coding=utf-8 import numpy as np import skimage import skimage.morphology as morph from . import Measurement from ..util.cleanup import cell_aoi_and_clip
[ 2, 19617, 28, 40477, 12, 23, 198, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 1341, 9060, 198, 11748, 1341, 9060, 13, 24503, 1435, 355, 17488, 198, 198, 6738, 764, 1330, 24291, 434, 198, 6738, 11485, 22602, 13, 27773, 929, 1330, 2...
3.14
50
from PyQt5 import QtCore, QtWidgets, QtGui from Item import Item from Tikzifyables.Arrowable import Arrowable from Tikzifyables.DashPatternable import DashPatternable from Tikzifyables.Colourable.LineColourable import LineColourable from Tikzifyables.Decorationable import Decorationable from Tikzifyables.CurveStrategy...
[ 6738, 9485, 48, 83, 20, 1330, 33734, 14055, 11, 33734, 54, 312, 11407, 11, 33734, 8205, 72, 198, 198, 6738, 9097, 1330, 9097, 198, 6738, 46338, 89, 1958, 2977, 13, 3163, 808, 540, 1330, 19408, 540, 198, 6738, 46338, 89, 1958, 2977, ...
3.442623
122
""" PROGRAM_NAME: virtnet_creator FILE_NAME: conf.py AUTHOR: Brendan Geoghegan PROGRAM_DESCRIPTION: This program is a GUI application for users to build or load network topologies that have a SDN controller at their center. The original code tied into a Xen loadout used to clone, startup, and operate VMs, but this ...
[ 37811, 198, 4805, 7730, 24115, 62, 20608, 25, 4118, 3262, 62, 45382, 198, 25664, 62, 20608, 25, 1013, 13, 9078, 198, 32, 24318, 1581, 25, 26134, 2269, 519, 258, 1030, 198, 4805, 7730, 24115, 62, 30910, 40165, 25, 220, 220, 220, 770, ...
3.991304
460
from django.contrib import admin from .models import UserProfile # Register your models here. admin.site.register(UserProfile, UserProfileAdmin)
[ 6738, 42625, 14208, 13, 3642, 822, 1330, 13169, 198, 6738, 764, 27530, 1330, 11787, 37046, 198, 2, 17296, 534, 4981, 994, 13, 628, 198, 198, 28482, 13, 15654, 13, 30238, 7, 12982, 37046, 11, 11787, 37046, 46787, 8, 198 ]
3.794872
39
import cv2 import threading import tensorflow as tf import numpy as np import time import capturer from utils.circularBuffer import CircularBuffer labels = ['Left Turn', 'No Turn', 'Right Turn'] model_path = "./turn_classification/turn_classification_model_final_v1.h5" readings_buffer_size = 20 image_preprocessing_dim...
[ 11748, 269, 85, 17, 198, 11748, 4704, 278, 198, 11748, 11192, 273, 11125, 355, 48700, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 640, 198, 11748, 8006, 81, 198, 6738, 3384, 4487, 13, 21170, 934, 28632, 1330, 7672, 934, 28632, 198, ...
3.084746
118
# (c) Copyright 2017-2019 SUSE 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 to in writ...
[ 2, 357, 66, 8, 15069, 2177, 12, 23344, 311, 19108, 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, 1378...
2.493325
3,071
#! usr/bin/env python3 """ : : Utility for generating ASCII art given an input image. : : """ from src.ascii import * from src.luminosity import * UPPER = "ABCDEFGHIJKLMNOPQRSTUVWXYZ" LOWER = "abcdefghijklmnopqrstuvwxyz" DIGIT = "0123456789" SYMBOL = "~!@#$%^&*()_+`-=[]{}|\\:;\"'<>?,./" ...
[ 2, 0, 514, 81, 14, 8800, 14, 24330, 21015, 18, 198, 37811, 198, 25, 198, 25, 220, 34030, 329, 15453, 37101, 1242, 1813, 281, 5128, 2939, 13, 198, 25, 198, 25, 198, 37811, 198, 6738, 12351, 13, 292, 979, 72, 220, 220, 220, 220, 2...
2.25746
3,787
from import_export.admin import ImportExportModelAdmin, ExportMixin from django.contrib import admin from master_data.models import * from centrelink.models import * from calculator.models import * from imports.models import * from django.utils.safestring import mark_safe from json2html import * from django.contrib.aut...
[ 6738, 1330, 62, 39344, 13, 28482, 1330, 17267, 43834, 17633, 46787, 11, 36472, 35608, 259, 198, 6738, 42625, 14208, 13, 3642, 822, 1330, 13169, 198, 6738, 4958, 62, 7890, 13, 27530, 1330, 1635, 198, 6738, 1247, 2411, 676, 13, 27530, 133...
3.142487
386
import json from baselayer.app.access import auth_or_token from ...base import BaseHandler
[ 11748, 33918, 198, 6738, 1615, 417, 2794, 13, 1324, 13, 15526, 1330, 6284, 62, 273, 62, 30001, 198, 6738, 2644, 8692, 1330, 7308, 25060, 628 ]
3.68
25
# Copyright 2020 Ayoub ENNASSIRI # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writi...
[ 2, 15069, 12131, 317, 5832, 65, 412, 6144, 10705, 4663, 40, 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, 13...
3.495652
230
#!/usr/bin/env python import sys from bowler import Query, Filename, Capture, LN PATTERN = """ power < "ipdb" trailer < '.' 'set_trace' > trailer < '(' ')' > > | power < "breakpoint" trailer < "(" ")" > > """
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 198, 11748, 25064, 198, 198, 6738, 9563, 1754, 1330, 43301, 11, 7066, 12453, 11, 31793, 11, 406, 45, 628, 198, 47, 1404, 31800, 796, 37227, 198, 220, 220, 220, 1176, 1279, 366, 541, ...
2.604651
86
import requests import urllib import json if __name__ == "__main__": y=Yummly() y.setup('d579507d','736c339e12b7a287c72c2de82313657e') ing=["fruit","milk"] print y.getAll(ing,"course^course-Beverages") y.getCourses() #todo
[ 11748, 7007, 198, 11748, 2956, 297, 571, 198, 11748, 33918, 198, 361, 11593, 3672, 834, 6624, 366, 834, 12417, 834, 1298, 198, 197, 88, 28, 56, 13929, 306, 3419, 198, 197, 88, 13, 40406, 10786, 67, 3553, 31027, 22, 67, 41707, 49150, ...
2.235294
102
from utilities.config import database from utilities.common_methods import getDebugInfo from utilities import log from sqlalchemy import Column, ForeignKey from sqlalchemy.types import Integer, Float, Date, String from sqlalchemy.orm import relationship from data_storing.assets.base import Base table_name = database...
[ 198, 6738, 20081, 13, 11250, 1330, 6831, 198, 6738, 20081, 13, 11321, 62, 24396, 82, 1330, 651, 27509, 12360, 198, 6738, 20081, 1330, 2604, 198, 198, 6738, 44161, 282, 26599, 1330, 29201, 11, 8708, 9218, 198, 6738, 44161, 282, 26599, 13...
4
87
import nltk
[ 11748, 299, 2528, 74, 628 ]
2.6
5
import rospy from std_msgs.msg import String if __name__ == "__main__": data_processing()
[ 11748, 686, 2777, 88, 198, 6738, 14367, 62, 907, 14542, 13, 19662, 1330, 10903, 628, 628, 198, 198, 361, 11593, 3672, 834, 6624, 366, 834, 12417, 834, 1298, 198, 220, 220, 220, 1366, 62, 36948, 3419, 198 ]
2.675676
37
"""Plot input traces to visualise data""" import os import sys import pandas as pd import matplotlib.pyplot as plt from matplotlib.ticker import MultipleLocator sys.path.append(os.path.join(os.path.dirname(__file__), 'utils')) from utils.data import ModelData def plot_coal_fuel_costs(): """Coal...
[ 37811, 43328, 5128, 20675, 284, 5874, 786, 1366, 37811, 201, 198, 201, 198, 11748, 28686, 201, 198, 11748, 25064, 201, 198, 201, 198, 11748, 19798, 292, 355, 279, 67, 201, 198, 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, ...
2.112475
7,086
from flask import Blueprint, render_template from app import mongo_utils from bson import json_util import json mod_whatis = Blueprint('whatis', __name__, url_prefix='/sta-je-glasomer') @mod_whatis.route('/', methods=['GET'])
[ 6738, 42903, 1330, 39932, 11, 8543, 62, 28243, 198, 198, 6738, 598, 1330, 285, 25162, 62, 26791, 198, 6738, 275, 1559, 1330, 33918, 62, 22602, 198, 11748, 33918, 198, 4666, 62, 10919, 271, 796, 39932, 10786, 10919, 271, 3256, 11593, 367...
3.109589
73
from django.db import models, migrations
[ 6738, 42625, 14208, 13, 9945, 1330, 4981, 11, 15720, 602, 628 ]
3.818182
11
#!/usr/bin/python #-*- coding: utf-8 -*- """Run Score Credit Habitat""" from __future__ import print_function import sys import logging from easydatalab.common.app import AppContext from easydatalab.common.exceptions import ExecutionError def main(): """Main entry point for the script.""" cfgFile = 'easydat...
[ 2, 48443, 14629, 14, 8800, 14, 29412, 198, 2, 12, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 10987, 15178, 10504, 41950, 265, 37811, 198, 6738, 11593, 37443, 834, 1330, 3601, 62, 8818, 198, 198, 11748, 25064, 198, ...
2.388985
581
import socket import zmq from shared.daemon_ports import get_port from shared.messaging.sock import create_sub_sock # Send from replayd -> videod if __name__ == "__main__": """ context = zmq.Context() port = get_port("replayd") socket = create_sub_sock(context, port) """ videosocket = socke...
[ 11748, 17802, 198, 11748, 1976, 76, 80, 198, 198, 6738, 4888, 13, 6814, 7966, 62, 3742, 1330, 651, 62, 634, 198, 6738, 4888, 13, 37348, 3039, 13, 82, 735, 1330, 2251, 62, 7266, 62, 82, 735, 198, 198, 2, 16290, 422, 24788, 67, 4613...
2.428571
287
import os import re import setuptools description = "Standard development tooling for Bocadillo" with open("README.md", "r") as readme: long_description = readme.read() NAME = "bocadillo-cli" PACKAGE = "bocadillo_cli" GITHUB = "https://github.com/bocadilloproject/bocadillo-cli" CHANGELOG = f"{GITHUB}/blob/master...
[ 11748, 28686, 198, 11748, 302, 198, 11748, 900, 37623, 10141, 198, 198, 11213, 796, 366, 23615, 2478, 2891, 278, 329, 347, 420, 324, 16111, 1, 198, 198, 4480, 1280, 7203, 15675, 11682, 13, 9132, 1600, 366, 81, 4943, 355, 1100, 1326, 2...
2.515755
603
# TODO: imports # REQUIRES: num_items >= 0, capacity >= 0, # size of item_values >= num_items, # size of item_weights >= num_items, # item_values are all >= 0, item_weights are all >= 0 # EFFECTS: Computes the max value that can be obtained by picking # from a set of num_items items without exceed...
[ 2, 16926, 46, 25, 17944, 198, 198, 2, 4526, 10917, 4663, 1546, 25, 997, 62, 23814, 18189, 657, 11, 5339, 18189, 657, 11, 198, 2, 220, 220, 220, 220, 220, 197, 2546, 286, 2378, 62, 27160, 18189, 997, 62, 23814, 11, 198, 2, 220, 2...
2.647343
414
# Import a whole load of stuff from System.IO import * from System.Drawing import * from System.Runtime.Remoting import * from System.Threading import * from System.Windows.Forms import * from System.Xml.Serialization import * from System import * from DAQ.Environment import * from EDMConfig import *
[ 2, 17267, 257, 2187, 3440, 286, 3404, 198, 6738, 4482, 13, 9399, 1330, 1635, 198, 6738, 4482, 13, 25302, 278, 1330, 1635, 198, 6738, 4482, 13, 41006, 13, 8413, 10720, 1330, 1635, 198, 6738, 4482, 13, 16818, 278, 1330, 1635, 198, 6738,...
3.630952
84
import tkinter
[ 11748, 256, 74, 3849, 628 ]
3.2
5
# Copyright 2017 Mycroft AI 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 agreed to in writin...
[ 2, 15069, 2177, 2011, 36714, 9552, 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, 2845, 287, 11846, 351, 262, 13789, 13, 198, 2...
2.497264
3,107
# Copyright (c) Microsoft Corporation. # Licensed under the MIT license. # coding=utf-8 # -------------------------------------------------------------------------- # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is # regenerated. #...
[ 2, 15069, 357, 66, 8, 5413, 10501, 13, 201, 198, 2, 49962, 739, 262, 17168, 5964, 13, 201, 198, 201, 198, 2, 19617, 28, 40477, 12, 23, 201, 198, 2, 16529, 35937, 201, 198, 2, 6127, 7560, 416, 5413, 357, 49, 8, 11160, 19452, 6127...
3.253012
415
from __future__ import unicode_literals from dynamic_rest.serializers import ( DynamicModelSerializer, DynamicRelationField ) from ..models import TodoProject from .ShortUserSerializer import ShortUserSerializer from .ShortTodoStatusSerializer import ShortTodoStatusSerializer
[ 6738, 11593, 37443, 834, 1330, 28000, 1098, 62, 17201, 874, 198, 198, 6738, 8925, 62, 2118, 13, 46911, 11341, 1330, 357, 198, 220, 220, 220, 26977, 17633, 32634, 7509, 11, 198, 220, 220, 220, 26977, 6892, 341, 15878, 198, 8, 198, 198,...
3.692308
78
from typing import Union import cv2 import numpy as np import torch from matplotlib import pyplot as plt, patches
[ 6738, 19720, 1330, 4479, 198, 198, 11748, 269, 85, 17, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 28034, 198, 6738, 2603, 29487, 8019, 1330, 12972, 29487, 355, 458, 83, 11, 16082, 628 ]
3.515152
33
"""Module for scraping""" from bs4 import BeautifulSoup import dateparser import datetime class Scraper: """Scraper class""" def get_urls(self): """Scrapes posts on a page""" all_urls = [] # infinite scroll urls = self.soup.find_all("a", class_="SQnoC3ObvgnGjWt90zD9Z _2INHSNB8...
[ 37811, 26796, 329, 46743, 37811, 198, 6738, 275, 82, 19, 1330, 23762, 50, 10486, 198, 11748, 3128, 48610, 198, 11748, 4818, 8079, 628, 198, 4871, 1446, 38545, 25, 198, 220, 220, 220, 37227, 3351, 38545, 1398, 37811, 628, 220, 220, 220, ...
2.087805
205
import unittest import os from easycrypto.key import Key
[ 11748, 555, 715, 395, 198, 11748, 28686, 198, 198, 6738, 2562, 29609, 78, 13, 2539, 1330, 7383, 198 ]
3.222222
18
#!/usr/bin/env python import os import argparse import datetime from readinglistlib import ReadingListReader # Configure CLI fields = ['title', 'url', 'preview', 'date', 'added', 'viewed', 'uuid', 'synckey', 'syncserverid'] ap = argparse.ArgumentParser(description='This script outputs the contents of your Safari Rea...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 198, 11748, 28686, 198, 11748, 1822, 29572, 198, 11748, 4818, 8079, 198, 198, 6738, 3555, 4868, 8019, 1330, 11725, 8053, 33634, 198, 198, 2, 17056, 495, 43749, 198, 25747, 796, 37250, 78...
3.113307
1,518
######## # autora: danielle8farias@gmail.com # repositório: https://github.com/danielle8farias # Descrição: Usuário informa nome e sobrenome. # O programa retorna quantas letras o nome completo possui (excluindo espaços) # e quantas letras o primeiro nome possui. ######## nome_completo = input('Digite seu nome com...
[ 7804, 198, 2, 1960, 5799, 25, 288, 6321, 293, 23, 69, 2743, 292, 31, 14816, 13, 785, 220, 198, 2, 1128, 7434, 10205, 27250, 25, 3740, 1378, 12567, 13, 785, 14, 67, 6321, 293, 23, 69, 2743, 292, 198, 2, 39373, 380, 16175, 28749, ...
2.411003
309
print ("tech rachit are here")
[ 4798, 5855, 13670, 374, 620, 270, 389, 994, 4943, 198 ]
3.1
10
from django.conf.urls import url from . import views app_name = 'feedback' urlpatterns = [ url(r'^article/(?P<slug>[-\w]+)/comment$', views.comment, name='comment'), url(r'^reviewcomment/(?P<comment_id>[0-9]+)/$', views.reviewcomment, name='review-comment'), url(r'^article...
[ 6738, 42625, 14208, 13, 10414, 13, 6371, 82, 1330, 19016, 198, 198, 6738, 764, 1330, 5009, 628, 198, 1324, 62, 3672, 796, 705, 12363, 1891, 6, 198, 6371, 33279, 82, 796, 685, 198, 220, 220, 220, 19016, 7, 81, 6, 61, 20205, 29006, ...
2.096774
186
import logging, sys from django.conf import settings from django.core.exceptions import ObjectDoesNotExist, ValidationError from django.core.mail import send_mail from django.core.paginator import Paginator, EmptyPage, PageNotAnInteger from django.http import HttpResponse, Http404 from django.shortcuts import render_to...
[ 11748, 18931, 11, 25064, 198, 6738, 42625, 14208, 13, 10414, 1330, 6460, 198, 6738, 42625, 14208, 13, 7295, 13, 1069, 11755, 1330, 9515, 13921, 3673, 3109, 396, 11, 3254, 24765, 12331, 198, 6738, 42625, 14208, 13, 7295, 13, 4529, 1330, ...
3.643382
272
from waflib import Task from waflib.TaskGen import feature, before_method, taskgen_method, extension from waflib.Tools import c_preproc try: import cPickle as pickle except ImportError: import pickle template_kernel = """ _MOTOR_PLUGIN_EXPORT void _%(kernel)s(const u32 index, const u32 total, ...
[ 6738, 266, 1878, 8019, 1330, 15941, 198, 6738, 266, 1878, 8019, 13, 25714, 13746, 1330, 3895, 11, 878, 62, 24396, 11, 4876, 5235, 62, 24396, 11, 7552, 198, 6738, 266, 1878, 8019, 13, 33637, 1330, 269, 62, 3866, 36942, 198, 28311, 25, ...
2.235725
683
# Definition for a binary tree node. # class TreeNode: # def __init__(self, val=0, left=None, right=None): # self.val = val # self.left = left # self.right = right # DFS and convert binary (Accepted), O(n) time and space # Recursion (Top Voted), O(n) time and space
[ 2, 30396, 329, 257, 13934, 5509, 10139, 13, 198, 2, 1398, 12200, 19667, 25, 198, 2, 220, 220, 220, 220, 825, 11593, 15003, 834, 7, 944, 11, 1188, 28, 15, 11, 1364, 28, 14202, 11, 826, 28, 14202, 2599, 198, 2, 220, 220, 220, 220,...
2.424
125
import sys from os import path ZENMAKE_DIR = path.dirname(path.abspath(__file__)) ZENMAKE_DIR = path.normpath(path.join(ZENMAKE_DIR, path.pardir, 'src', 'zenmake')) if ZENMAKE_DIR not in sys.path: sys.path.insert(1, ZENMAKE_DIR) # for test 'testLoadPyModule()' something = 'qaz'
[ 198, 11748, 25064, 198, 6738, 28686, 1330, 3108, 198, 198, 57, 1677, 5673, 7336, 62, 34720, 796, 3108, 13, 15908, 3672, 7, 6978, 13, 397, 2777, 776, 7, 834, 7753, 834, 4008, 198, 57, 1677, 5673, 7336, 62, 34720, 796, 3108, 13, 27237...
2.344262
122
# Author: Barrett Baumgartner # # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify, merge, publish, distr...
[ 2, 6434, 25, 220, 26971, 8999, 388, 41651, 1008, 198, 2, 220, 198, 2, 220, 198, 2, 2448, 3411, 318, 29376, 7520, 11, 1479, 286, 3877, 11, 284, 597, 1048, 16727, 257, 4866, 198, 2, 286, 428, 3788, 290, 3917, 10314, 3696, 357, 1169,...
3.72381
315
from .BaseEngine import BaseEngine from .Bing import Bing from .Baidu import Baidu
[ 6738, 764, 14881, 13798, 1330, 7308, 13798, 198, 6738, 764, 33, 278, 1330, 21631, 198, 6738, 764, 33, 1698, 84, 1330, 347, 1698, 84, 198 ]
3.32
25
from .aggr_events import devices_event_aggr_data __all__ = ['REPORTS_TYPE_FUNC'] REPORTS_TYPE_FUNC = { 'devicesEventAggr': devices_event_aggr_data }
[ 6738, 764, 363, 2164, 62, 31534, 1330, 4410, 62, 15596, 62, 363, 2164, 62, 7890, 628, 198, 834, 439, 834, 796, 37250, 35316, 33002, 62, 25216, 62, 42296, 34, 20520, 628, 198, 35316, 33002, 62, 25216, 62, 42296, 34, 796, 1391, 198, 2...
2.532258
62
# -*- coding: utf-8 -*- # Generated by Django 1.10 on 2016-09-18 23:26 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 2980, 515, 416, 37770, 352, 13, 940, 319, 1584, 12, 2931, 12, 1507, 2242, 25, 2075, 198, 6738, 11593, 37443, 834, 1330, 28000, 1098, 62, 17201, 874, 198, 198, 6738,...
2.791045
67
#!flask/bin/python from fantasticsearch import fantasticsearch fantasticsearch.run(debug=True, port=5001)
[ 2, 0, 2704, 2093, 14, 8800, 14, 29412, 198, 6738, 9623, 12947, 1330, 9623, 12947, 198, 198, 69, 415, 3477, 12947, 13, 5143, 7, 24442, 28, 17821, 11, 2493, 28, 4059, 16, 8, 628 ]
3.176471
34
p = float(input("Enter the principle amount : ")) r = float(input("Enter the rate : ")) t = int(input("Enter the time: ")) a = p * (pow((1 + r / 100), t)) ci = a-p print("compound interest is : ", ci)
[ 79, 796, 12178, 7, 15414, 7203, 17469, 262, 7989, 2033, 1058, 366, 4008, 198, 81, 796, 12178, 7, 15414, 7203, 17469, 262, 2494, 1058, 366, 4008, 198, 83, 796, 493, 7, 15414, 7203, 17469, 262, 640, 25, 366, 4008, 198, 64, 796, 279, ...
2.68
75
from selenium.webdriver.common.by import By from ...constant import timeout from ...model.type.xpath import XPath from ..wait.for_element import wait_for_element
[ 6738, 384, 11925, 1505, 13, 12384, 26230, 13, 11321, 13, 1525, 1330, 2750, 198, 198, 6738, 2644, 9979, 415, 1330, 26827, 198, 6738, 2644, 19849, 13, 4906, 13, 87, 6978, 1330, 11961, 776, 198, 6738, 11485, 17077, 13, 1640, 62, 30854, 1...
3.416667
48
import pyworld as pyworld import pysptk as sptk import pyreaper as reaper
[ 11748, 12972, 6894, 355, 12972, 6894, 198, 11748, 279, 893, 457, 74, 355, 264, 457, 74, 198, 11748, 12972, 260, 2136, 355, 302, 2136 ]
3.041667
24
import pymongo # ------------------------- Connect to MongoDB Server ------------------------ # # connect to MongoDB server: client = pymongo.MongoClient("mongodb://localhost:27017") # ----------------------- Switch context to a database ----------------------- # # get "python_course" database: db = client.python_cou...
[ 11748, 279, 4948, 25162, 198, 198, 2, 220, 22369, 12, 8113, 284, 42591, 11012, 9652, 220, 22369, 1303, 198, 2, 2018, 284, 42591, 11012, 4382, 25, 198, 16366, 796, 279, 4948, 25162, 13, 44, 25162, 11792, 7203, 31059, 375, 65, 1378, 367...
3.518438
461
from unittest import TestCase from ..parliamentarians import SenatorClient
[ 6738, 555, 715, 395, 1330, 6208, 20448, 198, 6738, 11485, 1845, 5130, 13517, 1330, 8962, 11792, 628 ]
4.470588
17
import os import pytest import testinfra.utils.ansible_runner from ansible.template import Templar from ansible.parsing.dataloader import DataLoader testinfra_hosts = testinfra.utils.ansible_runner.AnsibleRunner( os.environ['MOLECULE_INVENTORY_FILE']).get_hosts('all') @pytest.mark.chain("firo") @pytest.mark.cha...
[ 11748, 28686, 198, 11748, 12972, 9288, 198, 11748, 1332, 10745, 430, 13, 26791, 13, 504, 856, 62, 16737, 198, 198, 6738, 9093, 856, 13, 28243, 1330, 41741, 198, 6738, 9093, 856, 13, 79, 945, 278, 13, 67, 10254, 1170, 263, 1330, 6060, ...
2.620438
137
import torch import torch.nn as nn class SPM(nn.Module): """ Structure Perception Module """ def forward(self,x): """ inputs : x : input feature maps(B X C X H X W) returns : out : attention value + input feature attention: B X C ...
[ 11748, 28034, 198, 11748, 28034, 13, 20471, 355, 299, 77, 198, 198, 4871, 311, 5868, 7, 20471, 13, 26796, 2599, 198, 220, 220, 220, 37227, 32522, 35802, 19937, 37227, 628, 220, 220, 220, 825, 2651, 7, 944, 11, 87, 2599, 198, 220, 22...
2.028103
427
#!/usr/bin/env python import sys sys.path.append("..") import logging FORMAT_CONS = '%(asctime)s %(name)-12s %(levelname)8s\t%(message)s' logging.basicConfig(level=logging.DEBUG, format=FORMAT_CONS) import puka client = puka.Client("amqp://localhost/") promise = client.connect() client.wait(promise) for i in ra...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 198, 11748, 25064, 198, 17597, 13, 6978, 13, 33295, 7203, 492, 4943, 198, 198, 11748, 18931, 198, 21389, 1404, 62, 10943, 50, 796, 705, 4, 7, 292, 310, 524, 8, 82, 4064, 7, 3672, 1...
2.48
225
''' Simulate ARIMA(p, 0, q) model ''' import argparse import numpy as np from scipy import stats def simulate_eps(sigma, size, dist='normal', df=None): ''' Simulate innovation ''' n_samples, length_sample = size if dist.startswith('n'): eps = np.random.standard_normal(size) * sigma elif dist....
[ 7061, 6, 3184, 5039, 5923, 3955, 32, 7, 79, 11, 657, 11, 10662, 8, 2746, 705, 7061, 198, 198, 11748, 1822, 29572, 198, 11748, 299, 32152, 355, 45941, 198, 6738, 629, 541, 88, 1330, 9756, 198, 198, 4299, 29308, 62, 25386, 7, 82, 13...
2.216197
1,383
# Lint as python3 # Copyright 2020 DeepMind Technologies Limited. 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 # # Un...
[ 2, 406, 600, 355, 21015, 18, 198, 2, 15069, 12131, 10766, 28478, 21852, 15302, 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, ...
2.665297
7,789
# Copyright 2014-2017 The ODL contributors # # This file is part of ODL. # # This Source Code Form is subject to the terms of the Mozilla Public License, # v. 2.0. If a copy of the MPL was not distributed with this file, You can # obtain one at https://mozilla.org/MPL/2.0/. """Backend for ASTRA using CPU.""" from __f...
[ 2, 15069, 1946, 12, 5539, 383, 440, 19260, 20420, 198, 2, 198, 2, 770, 2393, 318, 636, 286, 440, 19260, 13, 198, 2, 198, 2, 770, 8090, 6127, 5178, 318, 2426, 284, 262, 2846, 286, 262, 29258, 5094, 13789, 11, 198, 2, 410, 13, 362...
2.284185
3,642
from typing import Any, Dict, Optional from pypika.terms import Function, ValueWrapper from pypika.utils import format_alias_sql
[ 6738, 19720, 1330, 4377, 11, 360, 713, 11, 32233, 198, 198, 6738, 279, 4464, 9232, 13, 38707, 1330, 15553, 11, 11052, 36918, 2848, 198, 6738, 279, 4464, 9232, 13, 26791, 1330, 5794, 62, 26011, 62, 25410, 628, 628 ]
3.5
38
""" Utilities for the :mod:`qsiprep_analyses` package. """
[ 37811, 198, 18274, 2410, 329, 262, 1058, 4666, 25, 63, 48382, 541, 7856, 62, 272, 43710, 63, 5301, 13, 198, 37811, 198 ]
2.681818
22
# Generated by Django 3.0.3 on 2020-04-22 21:23 from django.conf import settings from django.db import migrations, models import django.db.models.deletion
[ 2, 2980, 515, 416, 37770, 513, 13, 15, 13, 18, 319, 12131, 12, 3023, 12, 1828, 2310, 25, 1954, 198, 198, 6738, 42625, 14208, 13, 10414, 1330, 6460, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 11, 4981, 198, 11748, 42625, 14...
3.019231
52
#!/usr/bin/env python3 import nets import db import contracts from web3 import Web3 import prices import logging import logging.handlers import jsonpickle # Iterate through all transactions for account and run refresh actions # Update the gas transaction fee amount and value assuming tx is on Harmony if __name__ ==...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 11748, 31720, 198, 11748, 20613, 198, 11748, 8592, 198, 6738, 3992, 18, 1330, 5313, 18, 198, 11748, 4536, 198, 11748, 18931, 198, 11748, 18931, 13, 4993, 8116, 198, 11748, 33918, 277...
3.831461
89
#pylint: disable-all """ Script for patch SubCandidateNet/CNNGenotypeModel.forward """ from contextlib import contextmanager import six import numpy as np import torch from torch import nn from nics_fix_pt.quant import quantitize from aw_nas.weights_manager.super_net import SubCandidateNet from aw_nas.final.cnn_model...
[ 2, 79, 2645, 600, 25, 15560, 12, 439, 198, 37811, 198, 7391, 329, 8529, 3834, 41572, 20540, 7934, 14, 18474, 13746, 8690, 17633, 13, 11813, 198, 37811, 198, 6738, 4732, 8019, 1330, 4732, 37153, 198, 11748, 2237, 198, 198, 11748, 299, ...
2.693391
923
import torchvision import torch.nn as nn
[ 11748, 28034, 10178, 198, 11748, 28034, 13, 20471, 355, 299, 77, 198, 220, 220, 220, 220, 628, 220, 220, 220, 220, 220, 220, 220, 220 ]
2.2
25
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: sym/messages/authz.proto """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection from goo...
[ 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, 5659, 14, 37348, 1095, 14, 18439, 89, 13, 1676, 1462, 198, 37811, 8645, ...
2.454279
2,045
import os import os.path as path import itertools import pandas as pd import glob import config import random FANNET_IMG_DIR='/mnt/Data/GoogleFontsSTEFANN/fannet' COLORNET_IMG_DIR='/mnt/Data/GoogleFontsSTEFANN/colornet' if __name__=='__main__': process_fannet(path.join(FANNET_IMG_DIR,'train'), ...
[ 11748, 28686, 198, 11748, 28686, 13, 6978, 355, 3108, 198, 11748, 340, 861, 10141, 198, 11748, 19798, 292, 355, 279, 67, 198, 11748, 15095, 198, 11748, 4566, 198, 11748, 4738, 628, 198, 198, 37, 1565, 12884, 62, 3955, 38, 62, 34720, 1...
2.040936
342
''' @ project: LibrarySeats @ file: test @ user: 罗申申 @ email: luoshenshen@buaa.edu.cn @ tool: PyCharm @ time: 2021/5/24 14:27 ''' import re import function import execjs import browser_tools def verify_code_get(jsname,cookie,time): '''代码不麻烦,主要是分析js花了些时间''' url = "https://static.wechat.laixuanzuo.com/template/...
[ 7061, 6, 198, 31, 1628, 25, 10074, 4653, 1381, 198, 31, 2393, 25, 1332, 198, 31, 2836, 25, 13328, 121, 245, 18796, 111, 18796, 111, 198, 31, 3053, 25, 300, 84, 418, 5135, 831, 31, 65, 6413, 64, 13, 15532, 13, 31522, 198, 31, 289...
2.051095
411
import pytest from en16931.invoice_line import InvoiceLine
[ 11748, 12972, 9288, 198, 198, 6738, 551, 22172, 3132, 13, 16340, 2942, 62, 1370, 1330, 10001, 2942, 13949, 628 ]
3.210526
19
#!/usr/bin/env python3 from multiprocessing import Pool, TimeoutError from glob import glob import gzip import pysam from Bio import SeqIO from collections import Counter, defaultdict import scipy.stats as stats import operator import pandas as pd import argparse import cProfile import sys def chunk_ref(args, chroms...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 6738, 18540, 305, 919, 278, 1330, 19850, 11, 3862, 448, 12331, 198, 6738, 15095, 1330, 15095, 198, 11748, 308, 13344, 198, 11748, 279, 893, 321, 198, 6738, 16024, 1330, 1001, 80, 9...
2.357843
408
# coding=utf-8 """ 백준 16928번 : 뱀과 사다리 게임 """ import sys from collections import deque input = sys.stdin.readline N, M = map(int, input().split()) graph = [*range(101)] visited = [-1] * 101 for _ in range(N + M): x, y = map(int, input().split()) graph[x] = y bfs(graph, 1, visited) print(visited[-1])
[ 2, 19617, 28, 40477, 12, 23, 198, 37811, 198, 167, 108, 109, 168, 97, 222, 27191, 2078, 167, 110, 230, 1058, 31619, 109, 222, 166, 111, 120, 23821, 8955, 46695, 97, 167, 99, 105, 220, 166, 110, 234, 168, 252, 226, 198, 37811, 198,...
2.065789
152
import glob import os import sys import csv csv.field_size_limit(1000000000) # -*- coding: utf-8 -*- import codecs files = [] cvfv = codecs.open("./birth_cvfv.xml","w",'utf-8') fmc = codecs.open("./birth_fmc.xml","w",'utf-8') fuc = codecs.open("./birth_fuc.xml","w",'utf-8') _2gram = codecs.open("./birth_2gram.xml","w"...
[ 11748, 15095, 198, 11748, 28686, 198, 11748, 25064, 198, 11748, 269, 21370, 198, 198, 40664, 13, 3245, 62, 7857, 62, 32374, 7, 16, 10535, 830, 8, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 11748, 40481, 82, ...
1.726512
1,554
import setuptools from setuptools import setup, find_packages with open("README.md", "r") as fh: long_description = fh.read() setup( name="robotarm", # Replace with your username version="0.0.4", author="<Aaron Ahmid Balogun>", author_email="<amidbidee@gmail.com>", description="<Template ...
[ 11748, 900, 37623, 10141, 198, 6738, 900, 37623, 10141, 1330, 9058, 11, 1064, 62, 43789, 198, 198, 4480, 1280, 7203, 15675, 11682, 13, 9132, 1600, 366, 81, 4943, 355, 277, 71, 25, 198, 220, 220, 220, 890, 62, 11213, 796, 277, 71, 13...
2.505353
467
# Copyright 2016 Google Inc. 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 a...
[ 2, 15069, 1584, 3012, 3457, 13, 1439, 6923, 33876, 13, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 2, 345, 743, 407, 779, 428, 2393, 2845, 287, 11846, 351, 262, 13789, ...
3.26
350
from django.db import models from django.contrib.auth.models import User from cloudinary.models import CloudinaryField # CloudinaryImage("turtles.jpg").image(width=70, height=53, crop="scale") """ Models """
[ 6738, 42625, 14208, 13, 9945, 1330, 4981, 198, 6738, 42625, 14208, 13, 3642, 822, 13, 18439, 13, 27530, 1330, 11787, 198, 6738, 6279, 3219, 13, 27530, 1330, 10130, 3219, 15878, 198, 198, 2, 10130, 3219, 5159, 7203, 83, 25195, 13, 9479, ...
3.227273
66
# -*- coding: utf-8 -*- ''' Created on 2014-07-16 @summary: Trellis TEA use pure python @author: fiefdx ''' from distutils.core import setup setup(name='pytea', version='1.0.2', author = 'fiefdx', author_email = 'fiefdx@gmail.com', package_dir={'pytea': 'src'}, packages=['pytea'], ...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 7061, 6, 198, 41972, 319, 1946, 12, 2998, 12, 1433, 198, 31, 49736, 25, 4700, 297, 271, 13368, 32, 779, 5899, 21015, 198, 31, 9800, 25, 277, 2086, 34350, 198, 7061, ...
2.125828
151