content
stringlengths
1
1.05M
input_ids
listlengths
1
883k
ratio_char_token
float64
1
22.9
token_count
int64
1
883k
# Copyright 2021 Alexis Lopez Zubieta # # 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, publi...
[ 2, 220, 15069, 220, 33448, 31078, 22593, 47828, 1155, 64, 198, 2, 198, 2, 220, 2448, 3411, 318, 29376, 7520, 11, 1479, 286, 3877, 11, 284, 597, 1048, 16727, 257, 198, 2, 220, 4866, 286, 428, 3788, 290, 3917, 10314, 3696, 357, 1169, ...
4.037135
377
# python3 --> Enter Python Shell # from geocode import getGeocodeLocation # getGeocodeLocation("Place you wanto to query") import httplib2 import json # san_francisco = getGeocodeLocation("San Francisco, CA") # response header: {'content-type': 'application/json; charset=UTF-8', 'date': 'Sat, 27 Jan 2018 06:25:35 G...
[ 2, 21015, 18, 14610, 6062, 11361, 17537, 198, 2, 422, 4903, 420, 1098, 1330, 651, 10082, 420, 1098, 14749, 198, 2, 651, 10082, 420, 1098, 14749, 7203, 27271, 345, 765, 78, 284, 12405, 4943, 628, 198, 11748, 1841, 489, 571, 17, 198, ...
2.530834
827
""" The roseguarden project Copyright (C) 2018-2020 Marcus Drobisch, This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This pr...
[ 37811, 198, 464, 8278, 5162, 5872, 1628, 198, 198, 15269, 357, 34, 8, 2864, 12, 42334, 220, 17068, 21045, 65, 25308, 11, 198, 198, 1212, 1430, 318, 1479, 3788, 25, 345, 460, 17678, 4163, 340, 290, 14, 273, 13096, 340, 739, 198, 1169...
3.674312
218
""" MIT License Copyright (c) 2018 Aaron Michael Scott 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, pu...
[ 37811, 198, 36393, 13789, 198, 198, 15269, 357, 66, 8, 2864, 12139, 3899, 4746, 198, 198, 5990, 3411, 318, 29376, 7520, 11, 1479, 286, 3877, 11, 284, 597, 1048, 16727, 257, 4866, 198, 1659, 428, 3788, 290, 3917, 10314, 3696, 357, 1169...
3.028065
677
from PyQt4.QtGui import QImage, QPainter from PyQt4.QtCore import QSize # configure the output image width = 800 height = 600 dpi = 92 img = QImage(QSize(width, height), QImage.Format_RGB32) img.setDotsPerMeterX(dpi / 25.4 * 1000) img.setDotsPerMeterY(dpi / 25.4 * 1000) # get the map layers and extent layers ...
[ 6738, 9485, 48, 83, 19, 13, 48, 83, 8205, 72, 1330, 1195, 5159, 11, 1195, 38490, 353, 201, 198, 6738, 9485, 48, 83, 19, 13, 48, 83, 14055, 1330, 1195, 10699, 201, 198, 2, 17425, 262, 5072, 2939, 201, 198, 10394, 796, 10460, 201, ...
2.700767
391
""" Load a dataset of historic documents by specifying the folder where its located. """ import argparse # Utils import itertools import logging import math from datetime import datetime from pathlib import Path from torchvision.datasets.folder import has_file_allowed_extension, pil_loader from torchvision.transforms...
[ 37811, 198, 8912, 257, 27039, 286, 9566, 4963, 416, 31577, 262, 9483, 810, 663, 5140, 13, 198, 37811, 198, 198, 11748, 1822, 29572, 198, 2, 7273, 4487, 198, 11748, 340, 861, 10141, 198, 11748, 18931, 198, 11748, 10688, 198, 6738, 4818, ...
2.076756
1,837
#!/usr/bin/env python # _*_ coding: utf-8 _*_ # @Time : 2021/12/27 14:04 # @Author : zhangjianming # @Email : YYDSPanda@163.com # @File : run_task.py # @Software: PyCharm import sys sys.path.extend(["."]) from torch_model_demo.task.run_task import train_fashion_demo if __name__ == '__main__': train_fas...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 4808, 9, 62, 19617, 25, 3384, 69, 12, 23, 4808, 9, 62, 198, 2, 2488, 7575, 220, 220, 220, 1058, 33448, 14, 1065, 14, 1983, 1478, 25, 3023, 198, 2, 2488, 13838, 220, 1058, 1976...
2.258503
147
import numpy as np import math import logging as log import sys from tqdm import tqdm from common.feature_distance import calc_features_similarity from common.common_objects import DetectedObject, validate_detected_object, Bbox from common.common_objects import get_bbox_center, get_dist, calc_bbox_area from common.find...
[ 11748, 299, 32152, 355, 45941, 198, 11748, 10688, 198, 11748, 18931, 355, 2604, 198, 11748, 25064, 198, 6738, 256, 80, 36020, 1330, 256, 80, 36020, 198, 6738, 2219, 13, 30053, 62, 30246, 1330, 42302, 62, 40890, 62, 38610, 414, 198, 6738...
2.266436
867
from django.db import router from django.db.models import Q, Manager from django.db import connections from .contenttypes import ct, get_content_type from .query import GM2MTgtQuerySet def create_gm2m_related_manager(superclass=None, **kwargs): """ Dynamically create a manager class that only...
[ 6738, 42625, 14208, 13, 9945, 1330, 20264, 201, 198, 6738, 42625, 14208, 13, 9945, 13, 27530, 1330, 1195, 11, 9142, 201, 198, 6738, 42625, 14208, 13, 9945, 1330, 8787, 201, 198, 201, 198, 6738, 764, 11299, 19199, 1330, 269, 83, 11, 65...
2.710875
377
from selenium.webdriver.chrome.options import Options from selenium import webdriver import logging import coloredlogs import os import pathlib import time import twitter as tt from utils import retry from fetch_likes import get_user_likes, login from conf.settings import USER_ID, USERNAME, PASSWORD CURR_PATH = path...
[ 6738, 384, 11925, 1505, 13, 12384, 26230, 13, 46659, 13, 25811, 1330, 18634, 198, 6738, 384, 11925, 1505, 1330, 3992, 26230, 198, 198, 11748, 18931, 198, 11748, 16396, 6404, 82, 198, 11748, 28686, 198, 11748, 3108, 8019, 198, 11748, 640, ...
2.975
160
#!/usr/bin/python import sys import os from os.path import join, isdir import sentencepiece as spm #-------------------------- #--------------------------
[ 2, 48443, 14629, 14, 8800, 14, 29412, 198, 198, 11748, 25064, 198, 11748, 28686, 198, 6738, 28686, 13, 6978, 1330, 4654, 11, 318, 15908, 198, 11748, 6827, 12239, 355, 599, 76, 198, 198, 2, 22369, 438, 198, 2, 22369, 438, 628 ]
3.853659
41
import typing from fiepipelib.gitlabserver.data.gitlab_server import GitLabServer from fiepipelib.gitlabserver.routines.manager import GitLabServerManagerInteractiveRoutines from fiepipedesktoplib.gitlabserver.shell.gitlab_hostname_input_ui import GitLabHostnameInputDefaultShellUI from fiepipedesktoplib.gitlabserver.s...
[ 11748, 19720, 198, 198, 6738, 277, 494, 79, 40634, 571, 13, 18300, 23912, 15388, 13, 7890, 13, 18300, 23912, 62, 15388, 1330, 15151, 17822, 10697, 198, 6738, 277, 494, 79, 40634, 571, 13, 18300, 23912, 15388, 13, 81, 448, 1127, 13, 37...
3.223684
304
import torch def repeat(N, fn): """repeat module N times :param int N: repeat time :param function fn: function to generate module :return: repeated modules :rtype: MultiSequential """ return MultiSequential(*[fn(n) for n in range(N)])
[ 11748, 28034, 628, 198, 198, 4299, 9585, 7, 45, 11, 24714, 2599, 198, 220, 220, 220, 37227, 44754, 8265, 399, 1661, 628, 220, 220, 220, 1058, 17143, 493, 399, 25, 9585, 640, 198, 220, 220, 220, 1058, 17143, 2163, 24714, 25, 2163, 28...
2.88172
93
import torch import torch.nn as nn import torch.nn.functional as F
[ 11748, 28034, 198, 11748, 28034, 13, 20471, 355, 299, 77, 198, 11748, 28034, 13, 20471, 13, 45124, 355, 376, 628 ]
3.4
20
from runner import runner if __name__ == '__main__': r = runner() p = 'public class main{public static void main (String[] args){' \ 'public String StudentAnswer(String myInput){' \ 'return "myOutput"; ' \ '}System.out.println("hello world!");}}' print (r.sendCode(p, ''))
[ 6738, 17490, 1330, 17490, 198, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 198, 220, 220, 220, 374, 796, 17490, 3419, 198, 220, 220, 220, 279, 796, 705, 11377, 1398, 1388, 90, 11377, 9037, 7951, 1388, 357, 10100, 21...
2.596639
119
import traceback import telebot from telebot import apihelper from telebot.types import InlineKeyboardMarkup, InlineKeyboardButton, MessageEntity, Message, CallbackQuery from beancount_bot import transaction from beancount_bot.config import get_config, load_config from beancount_bot.dispatcher import Dispatcher from b...
[ 11748, 12854, 1891, 198, 11748, 5735, 13645, 198, 6738, 5735, 13645, 1330, 40391, 2978, 525, 198, 6738, 5735, 13645, 13, 19199, 1330, 554, 1370, 9218, 3526, 9704, 929, 11, 554, 1370, 9218, 3526, 21864, 11, 16000, 32398, 11, 16000, 11, 4...
2.689702
738
# Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. import pytest import numpy as np import sklearn.metrics as skm import fairlearn.metrics as metrics # ====================================================== a = "a" b = "b" c = "c" Y_true = [0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0...
[ 2, 15069, 357, 66, 8, 5413, 10501, 13, 1439, 2489, 10395, 13, 198, 2, 49962, 739, 262, 17168, 13789, 13, 198, 198, 11748, 12972, 9288, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 1341, 35720, 13, 4164, 10466, 355, 1341, 76, 198, ...
2.804167
1,200
""" Adapted from OpenAI Baselines. """ import numpy as np import tensorflow as tf # pylint: ignore-module import random import copy import os import functools import collections import multiprocessing def switch(condition, then_expression, else_expression): """Switches between two operations depending on a scala...
[ 37811, 198, 48003, 276, 422, 4946, 20185, 6455, 20655, 13, 198, 37811, 198, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 11192, 273, 11125, 355, 48700, 220, 1303, 279, 2645, 600, 25, 8856, 12, 21412, 198, 11748, 4738, 198, 11748, 486...
2.575274
3,009
# Under MIT License, see LICENSE.txt """ Module dfinissant des constantes de programmations python pour l'IA """ from enum import Enum ROBOT_RADIUS = 90 ROBOT_DIAMETER = ROBOT_RADIUS * 2 ROBOT_CENTER_TO_KICKER = 60 BALL_RADIUS = 21 MAX_PLAYER_ON_FIELD_PER_TEAM = 6 BALL_OUTSIDE_FIELD_BUFFER = 200 # Radius and angles...
[ 2, 4698, 17168, 13789, 11, 766, 38559, 24290, 13, 14116, 198, 37811, 19937, 288, 15643, 747, 415, 748, 6937, 274, 390, 1430, 76, 602, 21015, 12797, 300, 6, 3539, 37227, 198, 198, 6738, 33829, 1330, 2039, 388, 628, 198, 49, 9864, 2394,...
2.470968
465
import numpy as np x_pi = 3.14159265358979324 * 3000.0 / 180.0 pi = 3.1415926535897932384626 a = 6378245.0 ee = 0.00669342162296594323 def gcj02tobd09(lng, lat): """ Convert coordinates from GCJ02 to BD09 Parameters ------- lng : Series or number Longitude lat : Series or number ...
[ 198, 11748, 299, 32152, 355, 45941, 198, 87, 62, 14415, 796, 513, 13, 1415, 19707, 22980, 2327, 4531, 3720, 33916, 1635, 20343, 13, 15, 1220, 11546, 13, 15, 198, 14415, 796, 513, 13, 1415, 19707, 22980, 2327, 4531, 44750, 23721, 3510, ...
2.018294
4,045
######## # Copyright (c) 2014 GigaSpaces Technologies Ltd. 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...
[ 7804, 198, 2, 15069, 357, 66, 8, 1946, 402, 13827, 4561, 2114, 21852, 12052, 13, 1439, 2489, 10395, 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, 4...
2.906028
564
import boto3 import logging import os from random import randrange from urllib.request import urlopen # It is not recommended to enable DEBUG logs in production, # this is just to show an example of a recommendation # by Amazon CodeGuru Profiler. logging.getLogger('botocore').setLevel(logging.DEBUG) SITE = 'http://w...
[ 11748, 275, 2069, 18, 198, 11748, 18931, 198, 11748, 28686, 198, 198, 6738, 4738, 1330, 43720, 9521, 198, 6738, 2956, 297, 571, 13, 25927, 1330, 19016, 9654, 198, 198, 2, 632, 318, 407, 7151, 284, 7139, 16959, 17259, 287, 3227, 11, 19...
3.044444
135
from functools import wraps from werkzeug.exceptions import HTTPException from api.exceptions import MessageNotFound
[ 6738, 1257, 310, 10141, 1330, 27521, 198, 6738, 266, 9587, 2736, 1018, 13, 1069, 11755, 1330, 14626, 16922, 198, 6738, 40391, 13, 1069, 11755, 1330, 16000, 3673, 21077, 628 ]
4.068966
29
"""Command to run Nile scripts.""" import logging from importlib.machinery import SourceFileLoader from nile.nre import NileRuntimeEnvironment def run(path, network): """Run nile scripts passing on the NRE object.""" logger = logging.getLogger() logger.disabled = True script = SourceFileLoader("scrip...
[ 37811, 21575, 284, 1057, 38063, 14750, 526, 15931, 198, 11748, 18931, 198, 6738, 1330, 8019, 13, 76, 620, 15451, 1330, 8090, 8979, 17401, 198, 198, 6738, 299, 576, 13, 77, 260, 1330, 38063, 41006, 31441, 628, 198, 4299, 1057, 7, 6978, ...
3.248
125
array = [] for _ in range(int(input())): command = input().strip().split(" ") cmd_type = command[0] if (cmd_type == "print"): print(array) elif (cmd_type == "sort"): array.sort() elif (cmd_type == "reverse"): array.reverse() elif (cmd_type == "pop"): array.pop() ...
[ 18747, 796, 17635, 198, 1640, 4808, 287, 2837, 7, 600, 7, 15414, 28955, 2599, 198, 220, 220, 220, 3141, 796, 5128, 22446, 36311, 22446, 35312, 7203, 366, 8, 198, 220, 220, 220, 23991, 62, 4906, 796, 3141, 58, 15, 60, 198, 220, 220, ...
2.14902
255
# Created by Qingzhi Ma at 2019-07-23 # All right reserved # Department of Computer Science # the University of Warwick # Q.Ma.2@warwick.ac.uk from sklearn.neighbors import KernelDensity
[ 2, 15622, 416, 28927, 89, 5303, 6669, 379, 13130, 12, 2998, 12, 1954, 198, 2, 1439, 826, 10395, 198, 2, 2732, 286, 13851, 5800, 198, 2, 262, 2059, 286, 49398, 198, 2, 1195, 13, 21467, 13, 17, 31, 5767, 16239, 13, 330, 13, 2724, ...
3.241379
58
#!/usr/bin/env python import setuptools from setuptools import setup from os import path # Read the package requirements with open("requirements.txt", "r") as f: requirements = [line.rstrip("\n") for line in f if line != "\n"] # Read the contents of the README file this_directory = path.abspath(path.dirname(__fi...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 198, 11748, 900, 37623, 10141, 198, 6738, 900, 37623, 10141, 1330, 9058, 198, 6738, 28686, 1330, 3108, 198, 198, 2, 4149, 262, 5301, 5359, 198, 4480, 1280, 7203, 8897, 18883, 13, 14116, ...
2.787879
330
# -*- coding: utf-8 -*- """ mundiapi This file was automatically generated by APIMATIC v2.0 ( https://apimatic.io ). """
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 201, 198, 201, 198, 37811, 201, 198, 220, 220, 220, 27943, 72, 15042, 201, 198, 201, 198, 220, 220, 220, 770, 2393, 373, 6338, 7560, 416, 3486, 3955, 1404, 2149, 410, 17, ...
2.149254
67
from hearthstone.enums import GameTag, TAG_TYPES
[ 6738, 3285, 400, 6440, 13, 268, 5700, 1330, 3776, 24835, 11, 37801, 62, 9936, 47, 1546, 628, 198 ]
2.833333
18
# Archivo ejemplo 00 de creacion de clases en Python from math import gcd # greatest common denominator = Maximo Comun Divisor (MCD) if __name__ == "__main__": a = Fraccion(5,12) print(a) b = Fraccion(3,5) c = a*b c_real = c.a_numero_real() print("Multiplicar la fraccion {} por la fraccion {}...
[ 2, 5579, 23593, 304, 73, 18856, 78, 3571, 390, 1126, 49443, 390, 537, 1386, 551, 11361, 198, 198, 6738, 10688, 1330, 308, 10210, 1303, 6000, 2219, 31457, 1352, 796, 5436, 25147, 955, 403, 4777, 271, 273, 357, 44, 8610, 8, 628, 198, ...
2.333333
294
from . import models from . import components from . import http
[ 6738, 764, 1330, 4981, 198, 6738, 764, 1330, 6805, 198, 6738, 764, 1330, 2638, 198 ]
4.333333
15
import os import pandas as pd
[ 11748, 28686, 198, 11748, 19798, 292, 355, 279, 67, 628, 628 ]
3
11
from distutils.core import setup import snip_basic_verify setup( py_modules=['snip_basic_verify'], ext_modules=[snip_basic_verify.ffi.verifier.get_extension()])
[ 201, 198, 6738, 1233, 26791, 13, 7295, 1330, 9058, 201, 198, 11748, 3013, 541, 62, 35487, 62, 332, 1958, 201, 198, 201, 198, 40406, 7, 201, 198, 220, 220, 220, 12972, 62, 18170, 28, 17816, 16184, 541, 62, 35487, 62, 332, 1958, 6, ...
2.373333
75
#!../env/bin/python """A simple test script for the PCE portion of OnRamp. Usage: ./test_pce.py This script is only intended to be run in a fresh install of the repository. It has side-effects that could corrupt module and user data if run in a production setting. Prior to running this script, ensure that onramp/pce...
[ 2, 0, 40720, 24330, 14, 8800, 14, 29412, 198, 37811, 32, 2829, 1332, 4226, 329, 262, 4217, 36, 6903, 286, 1550, 49, 696, 13, 198, 198, 28350, 25, 24457, 9288, 62, 79, 344, 13, 9078, 198, 198, 1212, 4226, 318, 691, 5292, 284, 307, ...
2.954338
219
import matplotlib as mpl mpl.use('Agg') import matplotlib.pyplot as plt import logging from .analysis import lifetime_histogram from .analysis import histogram_cellwise,histogram_featurewise import numpy as np def plot_mask_cell_track_follow(cell,track, cog, features, mask_total, field...
[ 11748, 2603, 29487, 8019, 355, 285, 489, 198, 76, 489, 13, 1904, 10786, 46384, 11537, 198, 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 198, 11748, 18931, 198, 6738, 764, 20930, 1330, 10869, 62, 10034, 21857, 198, 6738, 764,...
1.955499
24,651
from sanic import Blueprint from sanic_transmute import add_route from .views import ( get_all, get_status_by_country_id, get_status_by_country_name, get_deaths, get_active_cases, get_recovered_cases, get_confirmed_cases, list_countries, ) cases = Blueprint("cases", url_prefix="/cases")...
[ 6738, 5336, 291, 1330, 39932, 198, 6738, 5336, 291, 62, 7645, 76, 1133, 1330, 751, 62, 38629, 198, 6738, 764, 33571, 1330, 357, 198, 220, 220, 220, 651, 62, 439, 11, 198, 220, 220, 220, 651, 62, 13376, 62, 1525, 62, 19315, 62, 312...
2.598291
234
from ..downloader import Downloader import os import pytest
[ 6738, 11485, 15002, 263, 1330, 10472, 263, 198, 11748, 28686, 198, 198, 11748, 12972, 9288, 628, 628, 628, 198 ]
3.526316
19
# Generated by Django 3.2.4 on 2021-06-19 16:10 from django.db import migrations, models import django.utils.timezone
[ 2, 2980, 515, 416, 37770, 513, 13, 17, 13, 19, 319, 33448, 12, 3312, 12, 1129, 1467, 25, 940, 198, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 11, 4981, 198, 11748, 42625, 14208, 13, 26791, 13, 2435, 11340, 628 ]
2.926829
41
import copy import json from .dataset_info import DatasetInfoFactory
[ 11748, 4866, 198, 11748, 33918, 198, 6738, 764, 19608, 292, 316, 62, 10951, 1330, 16092, 292, 316, 12360, 22810, 628 ]
3.5
20
# -*- coding:utf-8 -*- # edit by fuzongfei import base64 import datetime # Create your views here. import json from django.http import Http404, HttpResponse from django.utils import timezone from django_filters.rest_framework import DjangoFilterBackend from rest_framework import filters from rest_framework.exceptions ...
[ 2, 532, 9, 12, 19617, 25, 40477, 12, 23, 532, 9, 12, 198, 2, 4370, 416, 277, 10277, 506, 5036, 72, 198, 11748, 2779, 2414, 198, 11748, 4818, 8079, 198, 2, 13610, 534, 5009, 994, 13, 198, 11748, 33918, 198, 198, 6738, 42625, 14208,...
3.4875
240
import glove_util as gut import numpy as np from sklearn.decomposition import TruncatedSVD import json with open('freq_count_pred.json') as f: freq_count_pred = json.load(f) with open('relationships.json') as f: relationships = json.load(f) predicate_embedding = {} sentences = [] i = 0 for image in relation...
[ 11748, 29144, 62, 22602, 355, 12500, 220, 198, 11748, 299, 32152, 355, 45941, 220, 198, 6738, 1341, 35720, 13, 12501, 296, 9150, 1330, 833, 19524, 515, 50, 8898, 198, 11748, 33918, 198, 198, 4480, 1280, 10786, 19503, 80, 62, 9127, 62, ...
2.643799
379
# Importing Fernet class from cryptography.fernet import Fernet # Importing dump and load function from pickle import dump,load # To generate a strong pw # To get master pw from the file # To get key from the file # To store master pw in the file # Checking if user is running program for first time ...
[ 2, 17267, 278, 38982, 316, 1398, 201, 198, 6738, 45898, 13, 69, 1142, 316, 1330, 38982, 316, 201, 198, 2, 17267, 278, 10285, 290, 3440, 2163, 201, 198, 6738, 2298, 293, 1330, 10285, 11, 2220, 201, 198, 201, 198, 2, 1675, 7716, 257, ...
3.123077
130
# -*- encoding=utf-8 -*- """ # ********************************************************************************** # Copyright (c) Huawei Technologies Co., Ltd. 2020-2020. All rights reserved. # [oecp] is licensed under the Mulan PSL v1. # You can use this software according to the terms and conditions of the Mulan PSL ...
[ 2, 532, 9, 12, 21004, 28, 40477, 12, 23, 532, 9, 12, 198, 37811, 198, 2, 41906, 17174, 8412, 1174, 198, 2, 15069, 357, 66, 8, 43208, 21852, 1766, 1539, 12052, 13, 12131, 12, 42334, 13, 1439, 2489, 10395, 13, 198, 2, 685, 78, 721...
3.578475
223
from django.db import models from django.utils import timezone # Course Category # Course Subcategory # Course # Course resources
[ 6738, 42625, 14208, 13, 9945, 1330, 4981, 198, 6738, 42625, 14208, 13, 26791, 1330, 640, 11340, 198, 198, 2, 20537, 21743, 198, 220, 198, 2, 20537, 3834, 22872, 198, 198, 2, 20537, 198, 198, 2, 20537, 4133, 198 ]
3.552632
38
# Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the Li...
[ 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 2, 345, 743, 407, 779, 428, 2393, 2845, 287, 11846, 351, 262, 13789, 13, 198, 2, 921, 743, 7330, 257, 4866, 286, 262, 13789, 379, 198, 2,...
3.665289
242
#!/usr/bin/env python # Script for parsing prometheus metrics format and send it into zabbix server # MIT License # https://github.com/Friz-zy/telegraf-monitoring-agent-setup import re import os import sys import time import json import socket import optparse try: from urllib.request import urlopen except: fr...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 198, 2, 12327, 329, 32096, 1552, 36916, 20731, 5794, 290, 3758, 340, 656, 1976, 6485, 844, 4382, 198, 2, 17168, 13789, 198, 2, 3740, 1378, 12567, 13, 785, 14, 30214, 89, 12, 7357, 14...
2.77619
210
# CompOFA Compound Once-For-All Networks for Faster Multi-Platform Deployment # Under blind review at ICLR 2021: https://openreview.net/forum?id=IgIk8RRT-Z # # Implementation based on: # Once for All: Train One Network and Specialize it for Efficient Deployment # Han Cai, Chuang Gan, Tianzhe Wang, Zhekai Zhang, Song H...
[ 2, 3082, 46, 7708, 220, 3082, 633, 4874, 12, 1890, 12, 3237, 27862, 329, 38996, 15237, 12, 37148, 34706, 434, 198, 2, 4698, 7770, 2423, 379, 314, 5097, 49, 33448, 25, 3740, 1378, 9654, 19023, 13, 3262, 14, 27302, 30, 312, 28, 40, ...
2.630308
2,237
# coding: utf-8 import pickle # import json # import types path = 'application/model/radar_score_20180117/' if __name__ == '__main__': # README print "This is a program calculating house's 5 scores:" \ "Anti Drop Score," \ "House Appreciation," \ "Possess Cost," \ "Long-term I...
[ 2, 19617, 25, 3384, 69, 12, 23, 198, 198, 11748, 2298, 293, 198, 2, 1330, 33918, 198, 2, 1330, 3858, 198, 198, 6978, 796, 705, 31438, 14, 19849, 14, 6335, 283, 62, 26675, 62, 7908, 486, 1558, 14, 6, 628, 220, 220, 198, 198, 361,...
2.428571
147
#!/bin/python3 import math import os import random import re import sys from typing import Counter # # Complete the 'numCells' function below. # # The function is expected to return an INTEGER. # The function accepts 2D_INTEGER_ARRAY grid as parameter. # grid = [[1, 2, 7], [4, 5, 6], [8, 8, 9]] print(numCells(grid)...
[ 2, 48443, 8800, 14, 29412, 18, 198, 198, 11748, 10688, 198, 11748, 28686, 198, 11748, 4738, 198, 11748, 302, 198, 11748, 25064, 198, 6738, 19720, 1330, 15034, 628, 198, 198, 2, 198, 2, 13248, 262, 705, 22510, 34, 19187, 6, 2163, 2174,...
2.402098
286
from django.conf import settings from django.conf.urls import include, url from django.conf.urls.static import static urlpatterns = [ # Examples: # url(r'^$', 'evetool.views.home', name='home'), url(r'^', include('users.urls')), url(r'^', include('apis.urls')), ] + static(settings.STATIC_URL, document_...
[ 6738, 42625, 14208, 13, 10414, 1330, 6460, 198, 6738, 42625, 14208, 13, 10414, 13, 6371, 82, 1330, 2291, 11, 19016, 198, 6738, 42625, 14208, 13, 10414, 13, 6371, 82, 13, 12708, 1330, 9037, 198, 198, 6371, 33279, 82, 796, 685, 198, 220...
2.589552
134
import os # virtualenv SCRIPTDIR = os.path.realpath(os.path.dirname(__file__)) venv_name = '_ck' osdir = 'Scripts' if os.name is 'nt' else 'bin' venv = os.path.join(venv_name, osdir, 'activate_this.py') activate_this = (os.path.join(SCRIPTDIR, venv)) # Python 3: exec(open(...).read()), Python 2: execfile(...) exec(op...
[ 11748, 28686, 198, 198, 2, 7166, 24330, 198, 6173, 32618, 21016, 4663, 796, 28686, 13, 6978, 13, 5305, 6978, 7, 418, 13, 6978, 13, 15908, 3672, 7, 834, 7753, 834, 4008, 198, 198, 574, 85, 62, 3672, 796, 705, 62, 694, 6, 198, 418, ...
2.516779
149
#!/usr/bin/env python # Copyright 2015 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. import json import os import sys import common if __name__ == '__main__': funcs = { 'run': main_run, 'compile_targets':...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 15069, 1853, 383, 18255, 1505, 46665, 13, 1439, 2489, 10395, 13, 198, 2, 5765, 286, 428, 2723, 2438, 318, 21825, 416, 257, 347, 10305, 12, 7635, 5964, 326, 460, 307, 198, 2, 1043,...
2.822695
141
from autoPyTorch.utils.config.config_option import ConfigOption from autoPyTorch.pipeline.base.sub_pipeline_node import SubPipelineNode import traceback
[ 198, 6738, 8295, 20519, 15884, 354, 13, 26791, 13, 11250, 13, 11250, 62, 18076, 1330, 17056, 19722, 198, 6738, 8295, 20519, 15884, 354, 13, 79, 541, 4470, 13, 8692, 13, 7266, 62, 79, 541, 4470, 62, 17440, 1330, 3834, 47, 541, 4470, ...
3.255319
47
import csv import requests import sys """ A simple program to print the result of a Prometheus query as CSV. """ if len(sys.argv) != 3: print('Usage: {0} http://prometheus:9090 a_query'.format(sys.argv[0])) sys.exit(1) response = requests.get('{0}/api/v1/query'.format(sys.argv[1]), params={'query': s...
[ 11748, 269, 21370, 198, 11748, 7007, 198, 11748, 25064, 198, 198, 37811, 198, 32, 2829, 1430, 284, 3601, 262, 1255, 286, 257, 42696, 12405, 355, 44189, 13, 198, 37811, 198, 198, 361, 18896, 7, 17597, 13, 853, 85, 8, 14512, 513, 25, ...
2.677419
341
from rest_framework.test import APITestCase from rest_framework.test import APIRequestFactory import requests import pytest import json from django.core.management import call_command from django.db.models.signals import pre_save, post_save, pre_delete, post_delete, m2m_changed from rest_framework.test import APIClien...
[ 6738, 1334, 62, 30604, 13, 9288, 1330, 3486, 2043, 395, 20448, 198, 6738, 1334, 62, 30604, 13, 9288, 1330, 7824, 18453, 22810, 198, 11748, 7007, 198, 11748, 12972, 9288, 198, 11748, 33918, 198, 6738, 42625, 14208, 13, 7295, 13, 27604, 1...
2.831858
226
# 3. Define a function to check whether a number is even print(even(4)) print(even(-5))
[ 198, 2, 513, 13, 2896, 500, 257, 2163, 284, 2198, 1771, 257, 1271, 318, 772, 198, 198, 4798, 7, 10197, 7, 19, 4008, 198, 4798, 7, 10197, 32590, 20, 4008, 198 ]
2.903226
31
""" Posterior for Cauchy Distribution --------------------------------- Figure 5.11 The solid lines show the posterior pdf :math:`p(\mu|{x_i},I)` (top-left panel) and the posterior pdf :math:`p(\gamma|{x_i},I)` (top-right panel) for the two-dimensional pdf from figure 5.10. The dashed lines show the distribution of ap...
[ 37811, 198, 47, 6197, 1504, 329, 327, 559, 29658, 27484, 198, 3880, 12, 198, 11337, 642, 13, 1157, 198, 198, 464, 4735, 3951, 905, 262, 34319, 37124, 1058, 11018, 25, 63, 79, 38016, 30300, 91, 90, 87, 62, 72, 5512, 40, 8, 63, 357,...
2.511283
1,684
# -*- coding: utf-8 -*- """The file system stat event formatter.""" from __future__ import unicode_literals from dfvfs.lib import definitions as dfvfs_definitions from plaso.formatters import interface from plaso.formatters import manager from plaso.lib import errors manager.FormattersManager.RegisterFormatters...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 464, 2393, 1080, 1185, 1785, 1296, 1436, 526, 15931, 198, 198, 6738, 11593, 37443, 834, 1330, 28000, 1098, 62, 17201, 874, 198, 198, 6738, 47764, 85, 9501, 13, 80...
3.152672
131
from rest_framework import serializers from applications.models import Application
[ 6738, 1334, 62, 30604, 1330, 11389, 11341, 198, 198, 6738, 5479, 13, 27530, 1330, 15678 ]
5.533333
15
from pathlib import Path import requests from requests_toolbelt.multipart.encoder import MultipartEncoder # api_token = "iNKzBVNVAoTMhwnT2amhZRAP4dTBjkEVw9AbpRWg" # brand_center = "mdanderson.co1" # data_center = "iad1" # headers = {"x-api-token": api_token} def upload_images_web(self, ...
[ 6738, 3108, 8019, 1330, 10644, 198, 11748, 7007, 198, 6738, 7007, 62, 25981, 37976, 13, 16680, 541, 433, 13, 12685, 12342, 1330, 7854, 541, 433, 27195, 12342, 198, 198, 2, 40391, 62, 30001, 796, 366, 72, 46888, 89, 33, 53, 45, 11731, ...
2.24264
2,106
from SublimeLinter.lint import Linter, STREAM_STDOUT
[ 6738, 3834, 27299, 43, 3849, 13, 75, 600, 1330, 406, 3849, 11, 3563, 32235, 62, 36886, 628 ]
3.176471
17
from metal.gdb.metal_break import Breakpoint, MetalBreakpoint from metal.gdb.exitcode import ExitBreakpoint from metal.gdb.timeout import Timeout from metal.gdb.newlib import NewlibBreakpoints from metal.gdb.argv import ArgvBreakpoint
[ 6738, 6147, 13, 70, 9945, 13, 28469, 62, 9032, 1330, 12243, 4122, 11, 12136, 31737, 4122, 198, 198, 6738, 6147, 13, 70, 9945, 13, 37023, 8189, 1330, 29739, 31737, 4122, 198, 6738, 6147, 13, 70, 9945, 13, 48678, 1330, 3862, 448, 198, ...
3.352113
71
#!/usr/bin/python3 from datetime import datetime from PyQt5.QtWidgets import QTableWidgetItem, QTableWidget, QAbstractItemView, QMenu, QMessageBox from PyQt5.QtGui import QCursor from PyQt5.QtCore import Qt, pyqtSignal, QObject from portfolio.db.fdbhandler import results, strategies, balances def updatingdata(func...
[ 2, 48443, 14629, 14, 8800, 14, 29412, 18, 198, 198, 6738, 4818, 8079, 1330, 4818, 8079, 198, 198, 6738, 9485, 48, 83, 20, 13, 48, 83, 54, 312, 11407, 1330, 1195, 10962, 38300, 7449, 11, 1195, 10962, 38300, 11, 1195, 23839, 7449, 768...
3.063291
158
#!/usr/bin/env python from distutils.core import setup VERSION = "0.0.1" setup( author='Nikolai Tschacher', name = "proxychecker", version = VERSION, description = "A Python proxychecker module that makes use of socks", url = "http://incolumitas.com", license = "BSD", author_email = "admin...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 6738, 1233, 26791, 13, 7295, 1330, 9058, 198, 198, 43717, 796, 366, 15, 13, 15, 13, 16, 1, 198, 198, 40406, 7, 198, 220, 220, 220, 1772, 11639, 40979, 349, 1872, 13146, 354, 3493, ...
2.668639
169
#!/usr/bin/env python3 from app.lib.utils.request import request from app.lib.utils.encode import base64encode from app.lib.utils.common import get_capta, get_useragent if __name__ == "__main__": S2_052 = S2_052_BaseVerify('http://127.0.0.1:8088/struts2_rest_showcase_war_exploded/orders/3')
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 198, 6738, 598, 13, 8019, 13, 26791, 13, 25927, 1330, 2581, 198, 6738, 598, 13, 8019, 13, 26791, 13, 268, 8189, 1330, 2779, 2414, 268, 8189, 198, 6738, 598, 13, 8019, 13, 26791, ...
2.547009
117
import sys # def get_tools(): # manager = PluginManager() # manager.setPluginPlaces(["plugins/file_cabinet"]) # manager.collectPlugins() # return [plugin.plugin_object for plugin in manager.getAllPlugins()]
[ 11748, 25064, 198, 2, 825, 651, 62, 31391, 33529, 198, 2, 220, 220, 220, 220, 4706, 796, 42636, 13511, 3419, 198, 2, 220, 220, 220, 220, 4706, 13, 2617, 37233, 3646, 2114, 7, 14692, 37390, 14, 7753, 62, 66, 6014, 316, 8973, 8, 198...
2.765432
81
from __future__ import absolute_import, print_function, unicode_literals # "preload" for FindIt #2: iterate over same journal list, but actually # load a PubMedArticle object on each PMID. (no list output created) from metapub import FindIt, PubMedFetcher from metapub.findit.dances import the_doi_2step from config...
[ 6738, 11593, 37443, 834, 1330, 4112, 62, 11748, 11, 3601, 62, 8818, 11, 28000, 1098, 62, 17201, 874, 198, 198, 2, 366, 3866, 2220, 1, 329, 9938, 1026, 1303, 17, 25, 11629, 378, 625, 976, 3989, 1351, 11, 475, 1682, 198, 2, 3440, 25...
3.021429
140
from __future__ import absolute_import from select import select import errno import functools import itertools import json import logging import os import socket import threading import time import traceback log = logging.getLogger(__name__) from .utils import makedirs, unlink base_handlers = { 'ping': lambd...
[ 6738, 11593, 37443, 834, 1330, 4112, 62, 11748, 198, 198, 6738, 2922, 1330, 2922, 198, 11748, 11454, 3919, 198, 11748, 1257, 310, 10141, 198, 11748, 340, 861, 10141, 198, 11748, 33918, 198, 11748, 18931, 198, 11748, 28686, 198, 11748, 178...
3.184874
119
# -*- coding: utf-8 -*- """ lantz.drivers.tektronix.tds1012 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Implements the drivers to control an oscilloscope. :copyright: 2015 by Lantz Authors, see AUTHORS for more details. :license: BSD, see LICENSE for more details. """ from lantz.core import Feat, MessageBase...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 198, 220, 220, 220, 300, 46269, 13, 36702, 13, 660, 21841, 1313, 844, 13, 8671, 82, 8784, 17, 198, 220, 220, 220, 220, 27156, 15116, 8728, 4907, 93, 628, 220, ...
2.911504
113
########################################################################## # # Copyright 2014 VMware, Inc # Copyright 2011 Jose Fonseca # All Rights Reserved. # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal ...
[ 29113, 29113, 7804, 2235, 198, 2, 198, 2, 15069, 1946, 37754, 11, 3457, 198, 2, 15069, 2813, 5264, 376, 261, 2363, 64, 198, 2, 1439, 6923, 33876, 13, 198, 2, 198, 2, 2448, 3411, 318, 29376, 7520, 11, 1479, 286, 3877, 11, 284, 597,...
2.2377
21,544
import numpy as np import cv2 import glob import matplotlib.pyplot as plt
[ 11748, 299, 32152, 355, 45941, 198, 11748, 269, 85, 17, 198, 11748, 15095, 198, 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83 ]
3.041667
24
""" module logging""" # logging
[ 37811, 8265, 18931, 37811, 628, 198, 2, 18931, 198 ]
3.777778
9
# Copyright 2021 Red Hat, 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 writing...
[ 2, 15069, 33448, 2297, 10983, 11, 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.658026
2,006
# -*- coding: utf-8 -*- # Author: Ivan Senin import calendar import time import datetime as dt import json
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 6434, 25, 21798, 2311, 259, 198, 198, 11748, 11845, 198, 11748, 640, 198, 11748, 4818, 8079, 355, 288, 83, 198, 11748, 33918, 628 ]
2.868421
38
from datetime import datetime, timezone from enum import Enum from typing import Dict, List, Optional import pydantic from fastapi import HTTPException, Path, status from pydantic import BaseModel, EmailStr, Field from contaxy.schema.exceptions import ClientValueError from contaxy.schema.shared import MAX_DESCRIPTION...
[ 6738, 4818, 8079, 1330, 4818, 8079, 11, 640, 11340, 198, 6738, 33829, 1330, 2039, 388, 198, 6738, 19720, 1330, 360, 713, 11, 7343, 11, 32233, 198, 198, 11748, 279, 5173, 5109, 198, 6738, 3049, 15042, 1330, 14626, 16922, 11, 10644, 11, ...
2.477727
1,953
import setuptools from hugdatafast.__init__ import __version__ with open("README.md", "r") as fh: long_description = fh.read() REQUIRED_PKGS = [ 'fastai>=2.0.8', 'fastscore>=1.0.1', # change of store_attr api 'datasets', ] setuptools.setup( name="hugdatafast", version=__version__, author=...
[ 11748, 900, 37623, 10141, 198, 6738, 16225, 7890, 7217, 13, 834, 15003, 834, 1330, 11593, 9641, 834, 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, ...
2.71754
439
import pytest from leapp.repository.actor_definition import ActorDefinition, ActorInspectionFailedError, MultipleActorsError from leapp.exceptions import UnsupportedDefinitionKindError from leapp.repository import DefinitionKind from helpers import repository_dir import logging import mock _FAKE_META_DATA = { 'de...
[ 11748, 12972, 9288, 198, 198, 6738, 443, 1324, 13, 260, 1930, 37765, 13, 11218, 62, 46758, 1330, 27274, 36621, 11, 27274, 818, 31308, 37, 6255, 12331, 11, 20401, 32, 5217, 12331, 198, 6738, 443, 1324, 13, 1069, 11755, 1330, 791, 15999, ...
3.077844
167
from django.db import models # Create your models here. from utils.models import BaseModel
[ 6738, 42625, 14208, 13, 9945, 1330, 4981, 201, 198, 201, 198, 2, 13610, 534, 4981, 994, 13, 201, 198, 6738, 3384, 4487, 13, 27530, 1330, 7308, 17633, 201, 198, 201, 198, 201, 198, 201, 198 ]
2.914286
35
#!/usr/bin/env python2 # -*- coding: utf-8 -*- """ Cltwit is a command line twitter utility Author : Jrme Launay Date : 2013 """ import os import sys import re import getopt import gettext import sqlite3 import webbrowser import ConfigParser from sqlite2csv import sqlite2csv from cltwitdb import cltwitdb from utils i...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 17, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 198, 34, 2528, 39289, 318, 257, 3141, 1627, 17044, 10361, 198, 13838, 1058, 7504, 1326, 19826, 323, 198, 104...
1.998256
7,456
# @AUTHOR : lonsty # @DATE : 2020/3/28 18:01
[ 2, 2488, 32, 24318, 1581, 1058, 300, 261, 34365, 198, 2, 2488, 35, 6158, 1058, 12131, 14, 18, 14, 2078, 1248, 25, 486, 628, 628, 198 ]
1.884615
26
import requests from bs4 import BeautifulSoup import re # # User-Agent headers = { "User-Agent": 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.132 Safari/537.36'} # # if __name__ == '__main__': get_weather() get_bar()
[ 11748, 7007, 198, 6738, 275, 82, 19, 1330, 23762, 50, 10486, 198, 11748, 302, 198, 198, 2, 220, 198, 2, 11787, 12, 36772, 198, 50145, 796, 1391, 198, 220, 220, 220, 366, 12982, 12, 36772, 1298, 705, 44, 8590, 5049, 14, 20, 13, 15,...
2.354331
127
import numpy as np import math import matplotlib.pyplot as plt U = 5 # equival a l'E R = 2 # equival a R1 R2 = 3 P = 1.2 Vt = 0.026 Is = 0.000005 n = 200 # profunditat Vd = np.zeros(n) # sries Vl = np.zeros(n) I1 = np.zeros(n) I1[0] = U / R # inicialitzaci de les sries Vd[0] = Vt * math.log(1 + I1[0] / Is) Vl...
[ 11748, 299, 32152, 355, 45941, 198, 11748, 10688, 198, 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 198, 198, 52, 796, 642, 220, 1303, 6854, 257, 300, 6, 36, 198, 49, 796, 362, 220, 1303, 6854, 257, 371, 16, 198, 49, 1...
1.836207
464
"""Errors."""
[ 37811, 9139, 5965, 526, 15931, 628, 628, 628, 628, 628, 628, 198 ]
2.166667
12
import torch from torch import nn as nn from torch import autograd
[ 11748, 28034, 198, 6738, 28034, 1330, 299, 77, 355, 299, 77, 198, 6738, 28034, 1330, 1960, 519, 6335, 628 ]
3.578947
19
import pytest from whylogs.app.session import get_or_create_session, get_session, get_logger, reset_default_session, session_from_config from whylogs.app.config import SessionConfig from whylogs.app.session import Session from pandas import util
[ 198, 198, 11748, 12972, 9288, 198, 6738, 1521, 6404, 82, 13, 1324, 13, 29891, 1330, 651, 62, 273, 62, 17953, 62, 29891, 11, 651, 62, 29891, 11, 651, 62, 6404, 1362, 11, 13259, 62, 12286, 62, 29891, 11, 6246, 62, 6738, 62, 11250, 1...
3.324675
77
import enum BASELINE = "baseline" ENERGY = "energy" MAX_PRICE = "max_price" START_PRICE = "starting_price" INCREMENT = "increment" MIN_PRICE = "min_price" MAX_LOT_SIZE = "max_lot_size_wh" NAMESERVER_AGENT_AMOUNT = 3 ATTRIBUTE_LIST_LENGTH = 50 NEXT_ENERGY_CONSUMPTION = "next_energy_consumption" NEXT_ENERGY_GENERATION ...
[ 11748, 33829, 198, 198, 33, 1921, 3698, 8881, 796, 366, 12093, 4470, 1, 198, 1677, 1137, 31212, 796, 366, 22554, 1, 198, 22921, 62, 4805, 8476, 796, 366, 9806, 62, 20888, 1, 198, 2257, 7227, 62, 4805, 8476, 796, 366, 38690, 62, 2088...
2.296928
293
from django.contrib.auth.models import User from django.test import TestCase from django.test import Client from django.urls import reverse from target import models from django.utils import timezone # Create your tests here.
[ 6738, 42625, 14208, 13, 3642, 822, 13, 18439, 13, 27530, 1330, 11787, 198, 6738, 42625, 14208, 13, 9288, 1330, 6208, 20448, 198, 6738, 42625, 14208, 13, 9288, 1330, 20985, 198, 6738, 42625, 14208, 13, 6371, 82, 1330, 9575, 198, 6738, 24...
3.721311
61
""" Module for jenkinsapi views """ import six import logging from jenkinsapi.jenkinsbase import JenkinsBase from jenkinsapi.job import Job from jenkinsapi.custom_exceptions import NotFound log = logging.getLogger(__name__)
[ 37811, 198, 26796, 329, 474, 268, 5331, 15042, 5009, 198, 37811, 198, 11748, 2237, 198, 11748, 18931, 198, 198, 6738, 474, 268, 5331, 15042, 13, 48796, 5331, 8692, 1330, 21835, 14881, 198, 6738, 474, 268, 5331, 15042, 13, 21858, 1330, 1...
3.257143
70
""" Autonomous dataset collection of data for jetson nano John Marangola - marangol@bc.edu """ import datasets import json from datasets import Board, ChessPiece, PieceColor, PieceType #from realsense_utils import RealSenseCamera import preprocessing as pr import cv2 import pandas as pd import os from os.path import...
[ 37811, 198, 16541, 38175, 27039, 4947, 286, 1366, 329, 20792, 261, 38706, 198, 198, 7554, 1526, 648, 5708, 532, 1667, 648, 349, 31, 15630, 13, 15532, 198, 37811, 198, 198, 11748, 40522, 198, 11748, 33918, 198, 6738, 40522, 1330, 5926, 1...
2.15818
2,769
import os import numpy as np import pandas as pd from nilearn import datasets from sbfc.parser import seed_base_connectivity seed = os.path.dirname(__file__) + "/data/difumo64_pcc.nii.gz"
[ 11748, 28686, 198, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 19798, 292, 355, 279, 67, 198, 6738, 299, 576, 1501, 1330, 40522, 198, 198, 6738, 264, 65, 16072, 13, 48610, 1330, 9403, 62, 8692, 62, 8443, 3458, 198, 198, 28826, 796...
2.671233
73
import unittest from translator import english_to_french, french_to_english if __name__ == "__main__": unittest.main()
[ 11748, 555, 715, 395, 198, 6738, 33417, 1330, 46932, 62, 1462, 62, 69, 3532, 11, 48718, 62, 1462, 62, 39126, 198, 198, 361, 11593, 3672, 834, 6624, 366, 834, 12417, 834, 1298, 198, 220, 220, 220, 555, 715, 395, 13, 12417, 3419 ]
2.928571
42
# Copyright 2019 Huawei Technologies Co., Ltd # # 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...
[ 2, 15069, 13130, 43208, 21852, 1766, 1539, 12052, 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...
3.190709
409
""" Copyright 2015 Rackspace Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software dist...
[ 37811, 198, 15269, 1853, 37927, 13200, 198, 198, 26656, 15385, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 5832, 743, 407, 779, 428, 2393, 2845, 287, 11846, 351, 262, 13789, 13, 198, 1639, 743, 7...
3.748571
175
from __future__ import absolute_import # Copyright (c) 2010-2017 openpyxl import pytest from openpyxl.xml.functions import fromstring, tostring from openpyxl.tests.helper import compare_xml
[ 6738, 11593, 37443, 834, 1330, 4112, 62, 11748, 198, 2, 15069, 357, 66, 8, 3050, 12, 5539, 1280, 9078, 87, 75, 198, 198, 11748, 12972, 9288, 198, 198, 6738, 1280, 9078, 87, 75, 13, 19875, 13, 12543, 2733, 1330, 422, 8841, 11, 284, ...
3.16129
62
# Copyright (c) 2014-2021, Dr Alex Meakins, Raysect Project # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # 1. Redistributions of source code must retain the above copyright notice, # ...
[ 198, 2, 15069, 357, 66, 8, 1946, 12, 1238, 2481, 11, 1583, 4422, 2185, 461, 1040, 11, 7760, 8831, 4935, 198, 2, 1439, 2489, 10395, 13, 198, 2, 198, 2, 2297, 396, 3890, 290, 779, 287, 2723, 290, 13934, 5107, 11, 351, 393, 1231, 1...
1.992657
8,171
# Copyright (c) 2021, VRAI Labs and/or its affiliates. All rights reserved. # # This software is licensed under the Apache License, Version 2.0 (the # "License") as published by the Apache Software Foundation. # # You may not use this file except in compliance with the License. You may # obtain a copy of the License at...
[ 2, 15069, 357, 66, 8, 33448, 11, 569, 3861, 40, 23500, 290, 14, 273, 663, 29116, 13, 1439, 2489, 10395, 13, 198, 2, 198, 2, 770, 3788, 318, 11971, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 198, 2, 366, 34156, 49...
3.774834
302
# -*- coding: utf-8 -*- """Tests go in this directory."""
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 51, 3558, 467, 287, 428, 8619, 526, 15931, 198 ]
2.416667
24
__version__ = "{{cookiecutter._pkg_version}}"
[ 834, 9641, 834, 796, 366, 27007, 44453, 8968, 353, 13557, 35339, 62, 9641, 11709, 1, 198 ]
2.875
16
# -*- coding: utf-8 -*- """ @author:XuMing(xuming624@qq.com) @description: """ import datetime import os import pathlib import random import sys from loguru import logger sys.path.append('../..') from similarities import BM25Similarity from similarities.utils import http_get from similarities.data_loader import Searc...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 198, 31, 9800, 25, 55, 84, 44, 278, 7, 87, 12595, 21, 1731, 31, 38227, 13, 785, 8, 198, 31, 11213, 25, 198, 37811, 198, 11748, 4818, 8079, 198, 11748, 28686, ...
2.719855
1,103
#!/usr/bin/env python """ Copyright (c) 2014-2018 Alex Forencich Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify,...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 37811, 198, 198, 15269, 357, 66, 8, 1946, 12, 7908, 4422, 4558, 10782, 488, 198, 198, 5990, 3411, 318, 29376, 7520, 11, 1479, 286, 3877, 11, 284, 597, 1048, 16727, 257, 4866, 198, 16...
3.101365
513