content
stringlengths
1
1.05M
input_ids
listlengths
1
883k
ratio_char_token
float64
1
22.9
token_count
int64
1
883k
import pandas as pd import ta from app.common import reshape_data from app.strategies.base_strategy import BaseStrategy pd.set_option("display.max_columns", None) pd.set_option("display.width", None)
[ 11748, 19798, 292, 355, 279, 67, 198, 11748, 20486, 198, 198, 6738, 598, 13, 11321, 1330, 27179, 1758, 62, 7890, 198, 6738, 598, 13, 2536, 2397, 444, 13, 8692, 62, 2536, 4338, 1330, 7308, 13290, 4338, 198, 198, 30094, 13, 2617, 62, ...
3.029851
67
# Python Basics # String concatenaton added_strings = str(32) + "_342" # Getting input input_from_user = input() # Basic print function print(input_from_user) # Mixing boolean and comparison operations if (4 < 5) and (5 < 6): print("True") # Basic if & if else flow if name == 'Alice': print('Hi, Alice.')...
[ 2, 11361, 45884, 198, 198, 2, 10903, 1673, 36686, 13951, 198, 29373, 62, 37336, 796, 220, 965, 7, 2624, 8, 1343, 45434, 31575, 1, 198, 198, 2, 18067, 5128, 198, 15414, 62, 6738, 62, 7220, 796, 5128, 3419, 198, 198, 2, 14392, 3601, ...
2.688129
497
DATABASE_OPTIONS = { 'database': 'klazor', 'user': 'root', 'password': '', 'charset': 'utf8mb4', } HOSTS = ['127.0.0.1', '67.209.115.211']
[ 35, 1404, 6242, 11159, 62, 3185, 51, 11053, 796, 1391, 198, 220, 220, 220, 705, 48806, 10354, 705, 41582, 17725, 3256, 198, 220, 220, 220, 705, 7220, 10354, 705, 15763, 3256, 198, 220, 220, 220, 705, 28712, 10354, 705, 3256, 198, 220,...
1.902439
82
""" Django settings. Generated by 'django-admin startproject' using Django 2.2.4. For more information on this file, see https://docs.djangoproject.com/en/2.2/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/2.2/ref/settings/ """ #DEBUG = False DEBUG = True SERV...
[ 37811, 198, 35, 73, 14208, 6460, 13, 198, 198, 8645, 515, 416, 705, 28241, 14208, 12, 28482, 923, 16302, 6, 1262, 37770, 362, 13, 17, 13, 19, 13, 198, 198, 1890, 517, 1321, 319, 428, 2393, 11, 766, 198, 5450, 1378, 31628, 13, 2824...
2.222826
368
from django import forms from .models import Contact
[ 6738, 42625, 14208, 1330, 5107, 198, 6738, 764, 27530, 1330, 14039, 628, 198 ]
4.230769
13
# Copyright (c) 2017 Ansible, Inc. # All Rights Reserved. from django.urls import re_path from awx.api.views import ( AdHocCommandList, AdHocCommandDetail, AdHocCommandCancel, AdHocCommandRelaunch, AdHocCommandAdHocCommandEventsList, AdHocCommandActivityStreamList, AdHocCommandNotification...
[ 2, 15069, 357, 66, 8, 2177, 28038, 856, 11, 3457, 13, 198, 2, 1439, 6923, 33876, 13, 198, 198, 6738, 42625, 14208, 13, 6371, 82, 1330, 302, 62, 6978, 198, 198, 6738, 3253, 87, 13, 15042, 13, 33571, 1330, 357, 198, 220, 220, 220, ...
2.294964
556
#test.py from time_tools import * # print(compareTimestamp(111,222)) time.showNowTime() # now time is XX:XX:XX
[ 2, 9288, 13, 9078, 198, 6738, 640, 62, 31391, 1330, 1635, 198, 2, 3601, 7, 5589, 533, 14967, 27823, 7, 16243, 11, 23148, 4008, 198, 2435, 13, 12860, 3844, 7575, 3419, 198, 2, 783, 640, 318, 21044, 25, 8051, 25, 8051 ]
2.682927
41
import arcade from arcade import FACE_RIGHT, FACE_DOWN, FACE_UP, FACE_LEFT
[ 11748, 27210, 198, 6738, 27210, 1330, 46587, 62, 49, 9947, 11, 46587, 62, 41925, 11, 46587, 62, 8577, 11, 46587, 62, 2538, 9792, 198 ]
3.125
24
from numpy.core.fromnumeric import transpose from sklearn import linear_model from scipy.special import logit from scipy import stats from copy import deepcopy from numpy import random, concatenate, quantile, matmul, transpose import logging
[ 6738, 299, 32152, 13, 7295, 13, 6738, 77, 39223, 1330, 1007, 3455, 198, 6738, 1341, 35720, 1330, 14174, 62, 19849, 198, 6738, 629, 541, 88, 13, 20887, 1330, 2604, 270, 198, 6738, 629, 541, 88, 1330, 9756, 198, 6738, 4866, 1330, 2769, ...
3.626866
67
import numpy as np import matplotlib.pyplot as plt from scipy import stats from sklearn.linear_model import ARDRegression, LinearRegression # Parameters of the example np.random.seed(0) n_samples, n_features = 100, 100 # Create Gaussian data X = np.random.randn(n_samples, n_features) # Create weights with a precision...
[ 11748, 299, 32152, 355, 45941, 198, 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 198, 6738, 629, 541, 88, 1330, 9756, 198, 198, 6738, 1341, 35720, 13, 29127, 62, 19849, 1330, 5923, 7707, 1533, 2234, 11, 44800, 8081, 2234, ...
2.302984
1,977
#!/usr/bin/python3 import os import json import re import ast import json from graphviz import Digraph import pandas as pd # color the graph import graph_tool.all as gt import copy import matplotlib.colors as mcolors import sys import utils from tompkins.ilp import schedule, jobs_when_where from collections import d...
[ 2, 48443, 14629, 14, 8800, 14, 29412, 18, 198, 198, 11748, 28686, 198, 11748, 33918, 198, 11748, 302, 198, 11748, 6468, 198, 11748, 33918, 198, 6738, 4823, 85, 528, 1330, 7367, 1470, 198, 11748, 19798, 292, 355, 279, 67, 198, 198, 2, ...
2.203463
693
from __future__ import absolute_import import unittest from testutils import ADMIN_CLIENT from testutils import TEARDOWN from library.user import User from library.project import Project from library.repository import Repository from library.repository import pull_harbor_image from library.repository import push_imag...
[ 6738, 11593, 37443, 834, 1330, 4112, 62, 11748, 198, 198, 11748, 555, 715, 395, 198, 198, 6738, 1332, 26791, 1330, 5984, 23678, 62, 5097, 28495, 198, 6738, 1332, 26791, 1330, 13368, 9795, 14165, 198, 6738, 5888, 13, 7220, 1330, 11787, 1...
3.601563
128
import datetime as dt import logging from babel import Locale, UnknownLocaleError from babel.dates import format_datetime, format_time, format_date import pytz from tzlocal import get_localzone from . import settings logger = logging.getLogger(__name__) def format_datetime_str(self, my_datetime: dt.datetime) ...
[ 11748, 4818, 8079, 355, 288, 83, 198, 11748, 18931, 198, 198, 6738, 9289, 417, 1330, 15181, 1000, 11, 16185, 33711, 1000, 12331, 198, 6738, 9289, 417, 13, 19581, 1330, 5794, 62, 19608, 8079, 11, 5794, 62, 2435, 11, 5794, 62, 4475, 198...
2.735484
465
import os ######################################################################
[ 11748, 28686, 628, 198, 198, 29113, 29113, 4242, 2235, 628, 628 ]
7.909091
11
# !/usr/bin/env python # -- coding: utf-8 -- # @Author zengxiaohui # Datatime:8/31/2021 1:37 PM # @File:GlobalAvgPool2d import torch.nn as nn from python_developer_tools.cv.bases.activates.swish import h_swish
[ 2, 5145, 14, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 1377, 19617, 25, 3384, 69, 12, 23, 1377, 198, 2, 2488, 13838, 1976, 1516, 36072, 1219, 9019, 198, 2, 16092, 265, 524, 25, 23, 14, 3132, 14, 1238, 2481, 352, 25, 2718, 3122, ...
2.397727
88
"""Some utility functions""" # Authors: Eric Larson <larsoner@uw.edu> # # License: BSD (3-clause) import warnings import operator from copy import deepcopy import subprocess import importlib import os import os.path as op import inspect import sys import tempfile import ssl from shutil import rmtree import atexit imp...
[ 37811, 4366, 10361, 5499, 37811, 198, 198, 2, 46665, 25, 7651, 42630, 1279, 75, 12613, 263, 31, 84, 86, 13, 15532, 29, 198, 2, 198, 2, 13789, 25, 347, 10305, 357, 18, 12, 565, 682, 8, 198, 198, 11748, 14601, 198, 11748, 10088, 198...
2.351299
8,702
import signal
[ 11748, 6737, 198 ]
4.666667
3
a = HAHA() print(a) print(a[0])
[ 201, 198, 64, 796, 14558, 7801, 3419, 201, 198, 4798, 7, 64, 8, 201, 198, 4798, 7, 64, 58, 15, 12962, 201, 198 ]
1.608696
23
import torch import torch.overrides import linecache from typing import Type, Dict, List, Any, Union from .graph import Graph import copy # normal exec loses the source code, however we can patch # the linecache module to still recover it. # using exec_with_source will add it to our local cache # and then tools like T...
[ 11748, 28034, 198, 11748, 28034, 13, 2502, 81, 1460, 198, 11748, 1627, 23870, 198, 6738, 19720, 1330, 5994, 11, 360, 713, 11, 7343, 11, 4377, 11, 4479, 198, 6738, 764, 34960, 1330, 29681, 198, 11748, 4866, 198, 198, 2, 3487, 2452, 147...
3.075281
890
# # Copyright (c) 2016 Christoph Heiss <me@christoph-heiss.me> # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, m...
[ 2, 198, 2, 15069, 357, 66, 8, 1584, 1951, 2522, 679, 747, 1279, 1326, 31, 43533, 2522, 12, 258, 747, 13, 1326, 29, 198, 2, 198, 2, 2448, 3411, 318, 29376, 7520, 11, 1479, 286, 3877, 11, 284, 597, 1048, 16727, 257, 4866, 198, 2, ...
3.368046
701
from hover.utils.metrics import classification_accuracy import numpy as np
[ 6738, 20599, 13, 26791, 13, 4164, 10466, 1330, 17923, 62, 4134, 23843, 198, 11748, 299, 32152, 355, 45941, 198 ]
3.947368
19
#!/usr/bin/python # # This source file is part of appleseed. # Visit https://appleseedhq.net/ for additional information and resources. # # This software is released under the MIT license. # # Copyright (c) 2017-2018 Esteban Tovagliari, The appleseedhq Organization # # Permission is hereby granted, free of charge, to ...
[ 2, 48443, 14629, 14, 8800, 14, 29412, 198, 198, 2, 198, 2, 770, 2723, 2393, 318, 636, 286, 22514, 2308, 13, 198, 2, 16440, 3740, 1378, 1324, 829, 2308, 71, 80, 13, 3262, 14, 329, 3224, 1321, 290, 4133, 13, 198, 2, 198, 2, 770, ...
4.426025
1,122
ser = int(input()) mas = list(map(int, input().split())) mas.sort() print(*mas)
[ 2655, 796, 493, 7, 15414, 28955, 198, 5356, 796, 1351, 7, 8899, 7, 600, 11, 5128, 22446, 35312, 3419, 4008, 198, 5356, 13, 30619, 3419, 198, 4798, 46491, 5356, 8, 198 ]
2.580645
31
from django.utils.translation import gettext from wagtail.admin.rich_text.editors.draftail import features as draftail_features from wagtail.core import hooks from .richtext import KaTeXEntityElementHandler, katex_entity_decorator
[ 6738, 42625, 14208, 13, 26791, 13, 41519, 1330, 651, 5239, 198, 198, 6738, 266, 363, 13199, 13, 28482, 13, 7527, 62, 5239, 13, 276, 6742, 13, 35679, 603, 1330, 3033, 355, 4538, 603, 62, 40890, 198, 6738, 266, 363, 13199, 13, 7295, 1...
3.492537
67
############################################################### # Autogenerated module. Please don't modify. # # Edit according file in protocol_generator/templates instead # ############################################################### from typing import Dict from ...structs.api.elect_preferred_le...
[ 29113, 14468, 7804, 4242, 21017, 198, 2, 5231, 519, 877, 515, 8265, 13, 4222, 836, 470, 13096, 13, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1303, 198, 2, 5312, 1864, 2393, 287, 8435, 62,...
3.476658
407
''' Copyright 2017 Dell Inc. or its subsidiaries. All Rights Reserved. This script tests arbitrary payload of the RackHD API 2.0 OS bootstrap workflows. The default case is running a minimum payload Windows OS install. Other Windows-type OS install cases can be specified by creating a payload file and specifiying it u...
[ 7061, 6, 198, 15269, 2177, 23617, 3457, 13, 393, 663, 34943, 13, 1439, 6923, 33876, 13, 198, 198, 1212, 4226, 5254, 14977, 21437, 286, 262, 37927, 10227, 7824, 362, 13, 15, 7294, 6297, 26418, 670, 44041, 13, 198, 464, 4277, 1339, 318,...
2.399531
1,279
from flask import Flask, render_template from flask_ask import Ask, statement import random app = Flask(__name__) ask = Ask(app, '/') if __name__ == '__main__': app.run(debug=True)
[ 6738, 42903, 1330, 46947, 11, 8543, 62, 28243, 198, 6738, 42903, 62, 2093, 1330, 16981, 11, 2643, 198, 11748, 4738, 198, 198, 1324, 796, 46947, 7, 834, 3672, 834, 8, 198, 2093, 796, 16981, 7, 1324, 11, 31051, 11537, 198, 198, 361, 1...
2.952381
63
import torch import numpy as np import torch.nn as nn import torch.nn.functional as F import torchvision.models as models from model.laplacian import LapLoss device = torch.device("cuda" if torch.cuda.is_available() else "cpu") # flow could have any channels. # https://github.com/coolbeam/OIFlow/blob/main/utils/to...
[ 11748, 28034, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 28034, 13, 20471, 355, 299, 77, 198, 11748, 28034, 13, 20471, 13, 45124, 355, 376, 198, 11748, 28034, 10178, 13, 27530, 355, 4981, 198, 6738, 2746, 13, 5031, 489, 330, 666, ...
2.476619
556
import numpy as np import pybullet as p import itertools from robot import Robot
[ 11748, 299, 32152, 355, 45941, 198, 11748, 12972, 15065, 1616, 355, 279, 198, 11748, 340, 861, 10141, 198, 198, 6738, 9379, 1330, 16071, 198, 220, 220, 220, 220, 220, 220, 220, 220, 198 ]
2.757576
33
# Copyright (c) 2006-2012 Mitch Garnaat http://garnaat.org/ # Copyright (c) 2012 Amazon.com, Inc. or its affiliates. # 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 in the Software wi...
[ 2, 15069, 357, 66, 8, 4793, 12, 6999, 20472, 402, 28610, 265, 2638, 1378, 70, 28610, 265, 13, 2398, 14, 198, 2, 15069, 357, 66, 8, 2321, 6186, 13, 785, 11, 3457, 13, 393, 663, 29116, 13, 198, 2, 1439, 6923, 33876, 198, 2, 198, ...
3.22987
770
''' Command line interface for the basis set exchange ''' import argparse import argcomplete from .. import version from .bse_handlers import bse_cli_handle_subcmd from .check import cli_check_normalize_args from .complete import (cli_case_insensitive_validator, cli_family_completer, cli_role_co...
[ 7061, 6, 198, 21575, 1627, 7071, 329, 262, 4308, 900, 5163, 198, 7061, 6, 198, 198, 11748, 1822, 29572, 198, 11748, 1822, 20751, 198, 6738, 11485, 1330, 2196, 198, 6738, 764, 65, 325, 62, 4993, 8116, 1330, 275, 325, 62, 44506, 62, 2...
2.397849
186
""" 3 16 3 5 7 11 13 """ import math left, right = map(int, input().split()) array = [True for i in range(right+1)] array[1] = 0 for i in range(2, int(math.sqrt(right)) + 1): if array[i] == True: j = 2 while i * j <= right: array[i * j] = False j += 1 for i in range(l...
[ 37811, 198, 220, 198, 18, 1467, 628, 220, 198, 18, 198, 20, 198, 22, 198, 1157, 198, 1485, 198, 37811, 198, 11748, 10688, 198, 198, 9464, 11, 826, 796, 3975, 7, 600, 11, 5128, 22446, 35312, 28955, 198, 18747, 796, 685, 17821, 329, ...
1.978495
186
# Copyright 2015 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
[ 2, 15069, 1853, 383, 309, 22854, 37535, 46665, 13, 1439, 6923, 33876, 13, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 2, 345, 743, 407, 779, 428, 2393, 2845, 287, 11846, ...
2.799303
2,581
# -*- coding: utf-8 -*- # Generated by Django 1.11.10 on 2018-04-26 09:14 import colorfield.fields from django.db import migrations, models import django.db.models.deletion import giscube.utils
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 2980, 515, 416, 37770, 352, 13, 1157, 13, 940, 319, 2864, 12, 3023, 12, 2075, 7769, 25, 1415, 628, 198, 11748, 3124, 3245, 13, 25747, 198, 6738, 42625, 14208, 13, ...
2.774648
71
backgroundurl = "https://storage.needpix.com/rsynced_images/colored-background.jpg" # <- Need to be a Image URL!!! lang = "en" # <- language code displayset = True # <- Display the Set of the Item raritytext = True # <- Display the Rarity of the Item typeconfig = { "BannerToken": True, "AthenaBackpack":...
[ 25249, 6371, 796, 366, 5450, 1378, 35350, 13, 31227, 79, 844, 13, 785, 14, 81, 28869, 771, 62, 17566, 14, 25717, 12, 25249, 13, 9479, 1, 220, 1303, 24293, 10664, 284, 307, 257, 7412, 10289, 10185, 198, 198, 17204, 796, 366, 268, 1, ...
2.585227
352
import unittest import settings from healthvaultlib.helpers.connection import Connection
[ 11748, 555, 715, 395, 198, 198, 11748, 6460, 198, 6738, 1535, 85, 1721, 8019, 13, 16794, 364, 13, 38659, 1330, 26923, 198 ]
4.090909
22
# -*- coding: utf-8 -*- # Generated by Django 1.10.6 on 2017-06-09 03:01 from __future__ import unicode_literals from django.db import migrations, models
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 2980, 515, 416, 37770, 352, 13, 940, 13, 21, 319, 2177, 12, 3312, 12, 2931, 7643, 25, 486, 198, 6738, 11593, 37443, 834, 1330, 28000, 1098, 62, 17201, 874, 198, 1...
2.736842
57
''' multi-threading (python3 version) https://docs.python.org/3/library/threading.html ''' from time import clock import threading THREADS=2 lock = threading.Lock() A = 0 B = 0 C = 0 main()
[ 7061, 6, 198, 41684, 12, 16663, 278, 357, 29412, 18, 2196, 8, 198, 5450, 1378, 31628, 13, 29412, 13, 2398, 14, 18, 14, 32016, 14, 16663, 278, 13, 6494, 198, 7061, 6, 198, 198, 6738, 640, 1330, 8801, 198, 11748, 4704, 278, 198, 198...
2.621622
74
import numpy as np
[ 11748, 299, 32152, 355, 45941, 198 ]
3.166667
6
""" Zoe Game Engine Core Implementation =================================== Requirements ------------ [pygame](http://www.pygame.org/) """ # core packages # third-party packages import pygame # local package import layer __version__ = '0.0.0' #===================================================================...
[ 37811, 198, 57, 2577, 3776, 7117, 7231, 46333, 198, 10052, 18604, 198, 198, 42249, 198, 10541, 198, 198, 58, 9078, 6057, 16151, 4023, 1378, 2503, 13, 9078, 6057, 13, 2398, 34729, 198, 37811, 198, 198, 2, 4755, 10392, 198, 198, 2, 2368...
4.311688
77
# Generated by Django 3.0.6 on 2020-11-15 09:05 from django.db import migrations, models
[ 2, 2980, 515, 416, 37770, 513, 13, 15, 13, 21, 319, 12131, 12, 1157, 12, 1314, 7769, 25, 2713, 198, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 11, 4981, 628 ]
2.84375
32
from django.urls import path, re_path from django.views.generic.base import TemplateView from .views import dashboard_cost, dashboard_energy, MotorDataListView app_name = 'dashboard' urlpatterns = [ path('', MotorDataListView.as_view(), name='dashboard_custom'), #path('', dashboard_custom, name='dashboar...
[ 198, 220, 198, 6738, 42625, 14208, 13, 6371, 82, 1330, 3108, 11, 302, 62, 6978, 198, 6738, 42625, 14208, 13, 33571, 13, 41357, 13, 8692, 1330, 37350, 7680, 198, 6738, 764, 33571, 1330, 30415, 62, 15805, 11, 30415, 62, 22554, 11, 220, ...
3.116438
146
hrs = input("Enter Hours:") rate = input("Enter rate:") pay = float(hrs) * float(rate) print("Pay: " +str(pay))
[ 71, 3808, 796, 5128, 7203, 17469, 19347, 25, 4943, 198, 4873, 796, 5128, 7203, 17469, 2494, 25, 4943, 198, 15577, 796, 12178, 7, 71, 3808, 8, 1635, 12178, 7, 4873, 8, 198, 4798, 7203, 19197, 25, 366, 1343, 2536, 7, 15577, 4008 ]
2.642857
42
# # This file is part of LiteX-Boards. # # Copyright (c) 2017-2019 Florent Kermarrec <florent@enjoy-digital.fr> # SPDX-License-Identifier: BSD-2-Clause from litex.build.generic_platform import * from litex.build.xilinx import XilinxPlatform, VivadoProgrammer # IOs -----------------------------------------------------...
[ 2, 198, 2, 770, 2393, 318, 636, 286, 27395, 55, 12, 16635, 1371, 13, 198, 2, 198, 2, 15069, 357, 66, 8, 2177, 12, 23344, 23347, 429, 17337, 3876, 8344, 1279, 2704, 382, 429, 31, 268, 2633, 12, 34725, 13, 8310, 29, 198, 2, 30628,...
1.56743
11,434
#!/usr/bin/env python # coding: utf-8 # In[1]: import numpy as np import math # In[2]: fileObj = open('../data/advent_of_code_input_day_three.txt', "r") #opens the file in read mode. items = fileObj. read(). splitlines() #puts the file into an array. # In[3]: #print (items) holding = [] for i, line in enum...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 19617, 25, 3384, 69, 12, 23, 198, 198, 2, 554, 58, 16, 5974, 628, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 10688, 628, 198, 2, 554, 58, 17, 5974, 628, 198, 198, 7753, 4...
2.470588
374
import os import traceback if __name__ == '__main__': obj = InputHandler() print(obj.listFiles())
[ 11748, 28686, 198, 11748, 12854, 1891, 628, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 198, 220, 220, 220, 26181, 796, 23412, 25060, 3419, 198, 220, 220, 220, 3601, 7, 26801, 13, 4868, 25876, 28955 ]
2.815789
38
#!/usr/bin/python import os import sys SITENAME = os.environ.get("BEPASTY_SITENAME", None) if SITENAME is None: print("\n\nEnvironment variable BEPASTY_SITENAME must be set.") sys.exit(1) SECRET_KEY = os.environ.get("BEPASTY_SECRET_KEY", None) if SECRET_KEY is None: print("\n\nEnvironment variable BEPAST...
[ 2, 48443, 14629, 14, 8800, 14, 29412, 198, 198, 11748, 28686, 198, 11748, 25064, 198, 198, 50, 2043, 1677, 10067, 796, 28686, 13, 268, 2268, 13, 1136, 7203, 33, 8905, 1921, 9936, 62, 50, 2043, 1677, 10067, 1600, 6045, 8, 198, 361, 3...
2.275311
563
from io import StringIO import re import tokenize import os from collections import deque, ChainMap from functools import lru_cache from enum import Enum import pysh from pysh.path import PathWrapper, Path from typing import List, Callable, Iterator, Tuple, NamedTuple, Deque, Union, Any TBangTransformer = Callable[ [...
[ 6738, 33245, 1330, 10903, 9399, 198, 11748, 302, 198, 11748, 11241, 1096, 198, 11748, 28686, 198, 6738, 17268, 1330, 390, 4188, 11, 21853, 13912, 198, 6738, 1257, 310, 10141, 1330, 300, 622, 62, 23870, 198, 6738, 33829, 1330, 2039, 388, ...
2.126476
2,625
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
[ 2, 49962, 284, 262, 24843, 10442, 5693, 357, 1921, 37, 8, 739, 530, 198, 2, 393, 517, 18920, 5964, 11704, 13, 220, 4091, 262, 28536, 2393, 198, 2, 9387, 351, 428, 670, 329, 3224, 1321, 198, 2, 5115, 6634, 9238, 13, 220, 383, 7054,...
4.023364
214
import os import tmdbsimple as tmdb import media import fresh_tomatoes as ft movies = [] if os.environ.get('TMDB_API', False): # Retrieve API KEY tmdb.API_KEY = os.environ['TMDB_API'] # TMDB Movie Ids movie_ids = [271110, 297761, 246655, 278154, 135397, 188927] # Get Configuration configurat...
[ 11748, 28686, 198, 11748, 256, 9132, 1443, 320, 1154, 355, 256, 9132, 65, 198, 11748, 2056, 198, 11748, 4713, 62, 39532, 15048, 355, 10117, 198, 198, 76, 20526, 796, 17635, 198, 198, 361, 28686, 13, 268, 2268, 13, 1136, 10786, 15972, ...
2.175688
2,180
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file './elements_ui.ui', # licensing of './elements_ui.ui' applies. # # Created: Wed Jun 16 14:29:03 2021 # by: pyside2-uic running on PySide2 5.13.2 # # WARNING! All changes made in this file will be lost! from PySide2 import QtCore, QtGui...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 2, 5178, 7822, 7560, 422, 3555, 334, 72, 2393, 705, 19571, 68, 3639, 62, 9019, 13, 9019, 3256, 198, 2, 15665, 286, 705, 19571, 68, 3639, 62, 9019, 13, 9019, 6, ...
2.65942
138
digit = input(" the cube of which digit do you want >") result = cube(int(digit)) print(result)
[ 198, 198, 27003, 796, 5128, 7203, 262, 23441, 286, 543, 16839, 466, 345, 765, 1875, 4943, 220, 198, 20274, 796, 23441, 7, 600, 7, 27003, 4008, 220, 198, 4798, 7, 20274, 8, 198 ]
3.030303
33
try: from unittest.mock import patch except ImportError: # pragma: no cover from mock import patch from proofreader.runner import run, _run_command
[ 28311, 25, 198, 220, 220, 220, 422, 555, 715, 395, 13, 76, 735, 1330, 8529, 198, 16341, 17267, 12331, 25, 220, 1303, 23864, 2611, 25, 645, 3002, 198, 220, 220, 220, 422, 15290, 1330, 8529, 198, 198, 6738, 6617, 46862, 13, 16737, 133...
3.134615
52
from tanim.utils.config_ops import digest_config from tanim.utils.iterables import list_update # Currently, this is only used by both Scene and Mobject. # Still, we abstract its functionality here, albeit purely nominally. # All actual implementation has to be handled by derived classes for now.
[ 6738, 256, 11227, 13, 26791, 13, 11250, 62, 2840, 1330, 16274, 62, 11250, 198, 6738, 256, 11227, 13, 26791, 13, 2676, 2977, 1330, 1351, 62, 19119, 628, 198, 2, 16888, 11, 428, 318, 691, 973, 416, 1111, 28315, 290, 337, 15252, 13, 19...
4.067568
74
from config import *
[ 6738, 4566, 1330, 1635, 628, 628, 628, 628, 628, 628, 628, 628 ]
3
12
#!/usr/bin/env python """Extract events from kafka and write them to hdfs """ import json from pyspark.sql import SparkSession, Row from pyspark.sql.functions import udf def main(): """main """ spark = SparkSession \ .builder \ .appName("ExtractEventsJob") \ .getOrCreate() ra...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 37811, 11627, 974, 2995, 422, 479, 1878, 4914, 290, 3551, 606, 284, 289, 7568, 82, 198, 37811, 198, 11748, 33918, 198, 6738, 279, 893, 20928, 13, 25410, 1330, 17732, 36044, 11, 11314, ...
2.287257
463
import numpy as np from pysz import compress, decompress test_compress_decompress()
[ 11748, 299, 32152, 355, 45941, 198, 6738, 279, 893, 89, 1330, 27413, 11, 38237, 601, 628, 198, 198, 9288, 62, 5589, 601, 62, 12501, 3361, 601, 3419, 198 ]
3.107143
28
import json from sparkdq.outliers.params.OutlierSolverParams import OutlierSolverParams from sparkdq.outliers.OutlierSolver import OutlierSolver
[ 11748, 33918, 198, 198, 6738, 9009, 49506, 13, 448, 75, 3183, 13, 37266, 13, 7975, 2505, 50, 14375, 10044, 4105, 1330, 3806, 2505, 50, 14375, 10044, 4105, 198, 6738, 9009, 49506, 13, 448, 75, 3183, 13, 7975, 2505, 50, 14375, 1330, 380...
3.195652
46
from alerta.models.alert import Alert from alerta.webhooks import WebhookBase
[ 198, 6738, 7995, 64, 13, 27530, 13, 44598, 1330, 23276, 198, 6738, 7995, 64, 13, 12384, 25480, 82, 1330, 5313, 25480, 14881, 628 ]
3.478261
23
import re from setuptools import setup, find_packages import sys if sys.version_info < (3, 5): raise 'must use Python version 3.5 or higher' with open('./gmailapi_backend/__init__.py', 'r') as f: MATCH_EXPR = "__version__[^'\"]+(['\"])([^'\"]+)" VERSION = re.search(MATCH_EXPR, f.read()).group(2).strip() ...
[ 11748, 302, 198, 6738, 900, 37623, 10141, 1330, 9058, 11, 1064, 62, 43789, 198, 198, 11748, 25064, 198, 361, 25064, 13, 9641, 62, 10951, 1279, 357, 18, 11, 642, 2599, 198, 220, 220, 220, 5298, 705, 27238, 779, 11361, 2196, 513, 13, ...
2.461087
681
"""Script to ensure a configuration file exists.""" import argparse import os import openpeerpower.config as config_util from openpeerpower.core import OpenPeerPower # mypy: allow-untyped-calls, allow-untyped-defs def run(args): """Handle ensure config commandline script.""" parser = argparse.ArgumentParser...
[ 37811, 7391, 284, 4155, 257, 8398, 2393, 7160, 526, 15931, 198, 11748, 1822, 29572, 198, 11748, 28686, 198, 198, 11748, 1280, 33350, 6477, 13, 11250, 355, 4566, 62, 22602, 198, 6738, 1280, 33350, 6477, 13, 7295, 1330, 4946, 6435, 263, 1...
2.676538
439
# Vicfred # https://atcoder.jp/contests/abc132/tasks/abc132_a # implementation S = list(input()) if len(set(S)) == 2: if S.count(S[0]) == 2: print("Yes") quit() print("No")
[ 2, 24017, 39193, 198, 2, 3740, 1378, 265, 66, 12342, 13, 34523, 14, 3642, 3558, 14, 39305, 19924, 14, 83, 6791, 14, 39305, 19924, 62, 64, 198, 2, 7822, 198, 50, 796, 1351, 7, 15414, 28955, 198, 198, 361, 18896, 7, 2617, 7, 50, 4...
2.119565
92
import pytest import numpy as np import pandas as pd import matplotlib.pyplot as plt import itertools from sklearn.datasets import (make_regression, make_blobs, load_digits, fetch_openml, load_diabetes) from sklearn.preprocessing import KBinsDiscretizer from dabl.preprocessing import cle...
[ 11748, 12972, 9288, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 19798, 292, 355, 279, 67, 198, 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 198, 198, 11748, 340, 861, 10141, 198, 198, 6738, 1341, 35720, 13, 19608, 292, ...
2.773672
433
################################################################################ # Copyright (c) 2017 Dan Iorga, Tyler Sorenson, Alastair Donaldson # 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...
[ 29113, 29113, 14468, 198, 1303, 15069, 357, 66, 8, 2177, 6035, 314, 2398, 64, 11, 14886, 311, 29578, 1559, 11, 978, 459, 958, 3759, 1559, 628, 1303, 2448, 3411, 318, 29376, 7520, 11, 1479, 286, 3877, 11, 284, 597, 1048, 16727, 257, ...
3.781022
411
import sys import subprocess as sub import os """ Simple utility script to generate HTML charts of how ANTLR parses every query and what is the resulting AST. """ if __name__ == '__main__': if len(sys.argv) == 1: sys.argv.insert(1, "StandardLuceneGrammar") run(*sys.argv[1:])
[ 198, 11748, 25064, 198, 11748, 850, 14681, 355, 850, 198, 11748, 28686, 198, 198, 37811, 198, 26437, 10361, 4226, 284, 7716, 11532, 15907, 286, 703, 3537, 14990, 49, 13544, 274, 198, 16833, 12405, 290, 644, 318, 262, 7186, 29273, 13, 22...
2.416667
132
""" MIT License Copyright (c) 2020 Susant Achary <sache.meet@yahoo.com> 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, ...
[ 37811, 198, 36393, 13789, 198, 198, 15269, 357, 66, 8, 12131, 8932, 415, 26219, 560, 1279, 82, 4891, 13, 47745, 31, 40774, 13, 785, 29, 198, 198, 5990, 3411, 318, 29376, 7520, 11, 1479, 286, 3877, 11, 284, 597, 1048, 16727, 257, 486...
2.712581
922
import paho.client as mqtt HOST = 'localhost' PORT = 1883
[ 11748, 279, 17108, 13, 16366, 355, 285, 80, 926, 198, 198, 39, 10892, 796, 705, 36750, 6, 198, 15490, 796, 1248, 5999 ]
2.636364
22
#!/bin/env python from black import main import spacy import json from spacy import displacy import unidecode import pandas as pd import numpy as np import os csv_source = "scripts/spacy_files/data/thesis_200_with_school.csv" df = pd.read_csv(csv_source) df = df[df['isScan']==False] df = df.sort_values('isScan', asce...
[ 2, 48443, 8800, 14, 24330, 21015, 198, 6738, 2042, 1330, 1388, 198, 11748, 599, 1590, 198, 11748, 33918, 198, 6738, 599, 1590, 1330, 7845, 1590, 198, 11748, 555, 485, 8189, 198, 11748, 19798, 292, 355, 279, 67, 198, 11748, 299, 32152, ...
2.413174
501
# Copyright 2018 Tensorforce Team. 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 la...
[ 2, 15069, 2864, 309, 22854, 3174, 4816, 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, ...
4.007353
272
"""init module for reveal app""" # pylint: disable=invalid-name default_app_config = "mspray.apps.reveal.apps.RevealConfig" # noqa
[ 37811, 15003, 8265, 329, 7766, 598, 37811, 198, 2, 279, 2645, 600, 25, 15560, 28, 259, 12102, 12, 3672, 198, 12286, 62, 1324, 62, 11250, 796, 366, 907, 1050, 323, 13, 18211, 13, 36955, 282, 13, 18211, 13, 3041, 303, 282, 16934, 1, ...
2.75
48
from django.db import models from django import forms from audit_log.models.managers import AuditLog # Create your models here.
[ 6738, 42625, 14208, 13, 9945, 1330, 4981, 198, 6738, 42625, 14208, 1330, 5107, 198, 6738, 14984, 62, 6404, 13, 27530, 13, 805, 10321, 1330, 46450, 11187, 628, 198, 2, 13610, 534, 4981, 994, 13, 628 ]
3.742857
35
# Generated by Django 2.2.5 on 2019-09-25 00:12 from django.db import migrations
[ 2, 2980, 515, 416, 37770, 362, 13, 17, 13, 20, 319, 13130, 12, 2931, 12, 1495, 3571, 25, 1065, 201, 198, 201, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 201, 198, 201, 198 ]
2.485714
35
import tensorflow as tf import json import math import cv2 import time import argparse import concurrent.futures import posenet import keyboard import sys import numpy as np from threading import Thread from slugify import slugify parser = argparse.ArgumentParser() parser.add_argument('--model', type=int, default=101)...
[ 11748, 11192, 273, 11125, 355, 48700, 198, 11748, 33918, 198, 11748, 10688, 198, 11748, 269, 85, 17, 198, 11748, 640, 198, 11748, 1822, 29572, 198, 11748, 24580, 13, 69, 315, 942, 198, 11748, 1426, 268, 316, 198, 11748, 10586, 198, 1174...
3.162393
234
# 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 # distrib...
[ 2, 220, 220, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 345, 743, 198, 2, 220, 220, 407, 779, 428, 2393, 2845, 287, 11846, 351, 262, 13789, 13, 921, 743, 7330, 198, 2, 220, 220, 257, 4866,...
3.248299
294
from ._ffi.base import string_types from ._ffi.object import register_object, Object from ._ffi.node import register_node, NodeBase from ._ffi.node import convert_to_node as _convert_to_node from ._ffi.node_generic import _scalar_type_inference from ._ffi.function import Function from ._ffi.function import _init_api, r...
[ 6738, 47540, 487, 72, 13, 8692, 1330, 4731, 62, 19199, 198, 6738, 47540, 487, 72, 13, 15252, 1330, 7881, 62, 15252, 11, 9515, 198, 6738, 47540, 487, 72, 13, 17440, 1330, 7881, 62, 17440, 11, 19081, 14881, 198, 6738, 47540, 487, 72, ...
3.118367
245
import copy import torch from ..attack import Attack
[ 11748, 4866, 198, 11748, 28034, 198, 198, 6738, 11485, 20358, 1330, 8307, 628 ]
4.230769
13
# -*- coding:utf-8 -*- # Copyright (c) 2020 Huawei Technologies Co.,Ltd. # # openGauss is licensed under Mulan PSL v2. # You can use this software according to the terms # and conditions of the Mulan PSL v2. # You may obtain a copy of Mulan PSL v2 at: # # http://license.coscl.org.cn/MulanPSL2 # # THIS SOFTWARE...
[ 2, 532, 9, 12, 19617, 25, 40477, 12, 23, 532, 9, 12, 198, 2, 15069, 357, 66, 8, 12131, 43208, 21852, 1766, 1539, 43, 8671, 13, 198, 2, 198, 2, 1280, 35389, 1046, 318, 11971, 739, 17996, 272, 6599, 43, 410, 17, 13, 198, 2, 921,...
3.211618
241
import subprocess import sys from . import ROOT, PY_SRC, _run, PY, DIST CONDA_ORDER = [ "core", "html", "lab", "datagrid", "svg", "tpl-jjinja" "yaml" ] CONDA_BUILD_ARGS = [ "conda-build", "-c", "conda-forge", "--output-folder", DIST / "conda-bld", ] if __name__ == "__main__": f...
[ 11748, 850, 14681, 198, 11748, 25064, 198, 198, 6738, 764, 1330, 15107, 2394, 11, 350, 56, 62, 50, 7397, 11, 4808, 5143, 11, 350, 56, 11, 360, 8808, 628, 198, 10943, 5631, 62, 12532, 1137, 796, 685, 198, 220, 220, 220, 366, 7295, ...
1.894428
341
import requests, time, re, rsa, json, base64 from urllib import parse s = requests.Session() username = "" password = "" if(username == "" or password == ""): username = input("") password = input("") BI_RM = list("0123456789abcdefghijklmnopqrstuvwxyz") b64map = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopq...
[ 11748, 7007, 11, 640, 11, 302, 11, 374, 11400, 11, 33918, 11, 2779, 2414, 198, 6738, 2956, 297, 571, 1330, 21136, 198, 198, 82, 796, 7007, 13, 36044, 3419, 198, 198, 29460, 796, 13538, 198, 28712, 796, 13538, 198, 198, 361, 7, 29460...
2.380368
163
import subprocess from .Genome_fasta import get_fasta import matplotlib matplotlib.use('Agg') from matplotlib import pyplot as plt import numpy as np import pysam if __name__=="__main__": import argparse parser = argparse.ArgumentParser() parser.add_argument('-b','--bamfile',help="bam file name", metavar="...
[ 11748, 850, 14681, 198, 6738, 764, 13746, 462, 62, 7217, 64, 1330, 651, 62, 7217, 64, 198, 11748, 2603, 29487, 8019, 198, 6759, 29487, 8019, 13, 1904, 10786, 46384, 11537, 198, 6738, 2603, 29487, 8019, 1330, 12972, 29487, 355, 458, 83, ...
2.794286
175
"""A clean customisable Sphinx documentation theme.""" __version__ = "2020.9.8.beta2" from pathlib import Path from .body import wrap_tables from .code import get_pygments_style_colors from .navigation import get_navigation_tree from .toc import should_hide_toc def setup(app): """Entry point for sphinx themin...
[ 37811, 32, 3424, 2183, 43942, 45368, 28413, 10314, 7505, 526, 15931, 198, 198, 834, 9641, 834, 796, 366, 42334, 13, 24, 13, 23, 13, 31361, 17, 1, 198, 198, 6738, 3108, 8019, 1330, 10644, 198, 198, 6738, 764, 2618, 1330, 14441, 62, 8...
2.91716
169
#!/usr/bin/env python3 # Copyright 2016 Curtis Sand # # 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 la...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 2, 15069, 1584, 25157, 3837, 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, 2...
3.31
300
from dataclasses import dataclass from hrepr import H from hrepr import hrepr as real_hrepr from hrepr.h import styledir from .common import one_test_per_assert css_hrepr = open(f"{styledir}/hrepr.css", encoding="utf-8").read() hrepr = real_hrepr.variant(fill_resources=False) def hshort(x, **kw): return hrep...
[ 6738, 4818, 330, 28958, 1330, 4818, 330, 31172, 198, 198, 6738, 289, 260, 1050, 1330, 367, 198, 6738, 289, 260, 1050, 1330, 289, 260, 1050, 355, 1103, 62, 71, 260, 1050, 198, 6738, 289, 260, 1050, 13, 71, 1330, 45552, 343, 198, 198,...
1.823529
595
import inspect from sympy.core.cache import cacheit from sympy.core.singleton import S from sympy.core.sympify import _sympify from sympy.logic.boolalg import Boolean from sympy.utilities.source import get_class from contextlib import contextmanager global_assumptions = AssumptionsContext()
[ 11748, 10104, 198, 6738, 10558, 88, 13, 7295, 13, 23870, 1330, 12940, 270, 198, 6738, 10558, 88, 13, 7295, 13, 12215, 10565, 1330, 311, 198, 6738, 10558, 88, 13, 7295, 13, 1837, 3149, 1958, 1330, 4808, 1837, 3149, 1958, 198, 6738, 105...
3.453488
86
import numpy as np from unittest import TestCase import numpy.testing as npt from distancematrix.util import diag_indices_of from distancematrix.consumer.distance_matrix import DistanceMatrix
[ 11748, 299, 32152, 355, 45941, 198, 6738, 555, 715, 395, 1330, 6208, 20448, 198, 11748, 299, 32152, 13, 33407, 355, 299, 457, 198, 198, 6738, 5253, 6759, 8609, 13, 22602, 1330, 2566, 363, 62, 521, 1063, 62, 1659, 198, 6738, 5253, 6759...
3.592593
54
"""Constants file for Supervisor.""" from enum import Enum from ipaddress import ip_network from pathlib import Path SUPERVISOR_VERSION = "DEV" URL_HASSIO_ADDONS = "https://github.com/home-assistant/addons" URL_HASSIO_APPARMOR = "https://version.home-assistant.io/apparmor.txt" URL_HASSIO_VERSION = "https://version.ho...
[ 37811, 34184, 1187, 2393, 329, 45673, 526, 15931, 198, 6738, 33829, 1330, 2039, 388, 198, 6738, 20966, 21975, 1330, 20966, 62, 27349, 198, 6738, 3108, 8019, 1330, 10644, 198, 198, 40331, 1137, 29817, 1581, 62, 43717, 796, 366, 39345, 1, ...
2.250056
4,483
import inspect from math import hypot, sin, asin, cos, radians, degrees from abc import ABCMeta, abstractmethod from random import randint, choice from typing import Dict, List, Tuple, Union
[ 11748, 10104, 198, 198, 6738, 10688, 1330, 8813, 11, 7813, 11, 355, 259, 11, 8615, 11, 2511, 1547, 11, 7370, 198, 6738, 450, 66, 1330, 9738, 48526, 11, 12531, 24396, 198, 6738, 4738, 1330, 43720, 600, 11, 3572, 198, 6738, 19720, 1330,...
3.711538
52
import torch import torch.nn as nn import os import torch.nn.functional as F def vgg(cfg, i, batch_norm=False): layers = [] in_channels = i for v in cfg: if v == 'M': layers += [nn.MaxPool2d(kernel_size=2, stride=2)] elif v == 'C': layers += [nn.MaxPool2d(k...
[ 11748, 28034, 198, 11748, 28034, 13, 20471, 355, 299, 77, 198, 11748, 28686, 198, 11748, 28034, 13, 20471, 13, 45124, 355, 376, 628, 628, 628, 628, 628, 198, 198, 4299, 410, 1130, 7, 37581, 11, 1312, 11, 15458, 62, 27237, 28, 25101, ...
1.907166
614
#!/usr/bin/env python from wand.image import Image from wand.drawing import Drawing from wand.color import Color import wandplus.image as wpi from wandplus.textutil import calcSuitableFontsize, calcSuitableImagesize import os import unittest tmpdir = '_tmp/' class CheckTextUtil(unittest.TestCase): if __name__ ...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 198, 6738, 11569, 13, 9060, 1330, 7412, 198, 6738, 11569, 13, 19334, 278, 1330, 40027, 198, 6738, 11569, 13, 8043, 1330, 5315, 198, 11748, 11569, 9541, 13, 9060, 355, 266, 14415, 198, ...
3.060345
116
import mitsuba import pytest import enoki as ek from enoki.dynamic import Float32 as Float from mitsuba.python.test.util import fresolver_append_path from mitsuba.python.util import traverse def test04_normal_weighting_scheme(variant_scalar_rgb): from mitsuba.core import Struct, float_dtype, Vector3f from...
[ 11748, 285, 896, 22013, 198, 11748, 12972, 9288, 198, 11748, 551, 18228, 355, 304, 74, 198, 6738, 551, 18228, 13, 67, 28995, 1330, 48436, 2624, 355, 48436, 198, 198, 6738, 285, 896, 22013, 13, 29412, 13, 9288, 13, 22602, 1330, 34093, ...
2.122827
863
from __future__ import (absolute_import, division, print_function, unicode_literals) from builtins import (ascii, bytes, chr, dict, filter, hex, input, int, map, next, oct, open, pow, range, round, str, super, zip) from ...._utils import send_session_request from ..._PortalEndpointBase import Por...
[ 6738, 11593, 37443, 834, 1330, 357, 48546, 62, 11748, 11, 7297, 11, 3601, 62, 8818, 11, 28000, 1098, 62, 17201, 874, 8, 198, 6738, 3170, 1040, 1330, 357, 292, 979, 72, 11, 9881, 11, 442, 81, 11, 8633, 11, 8106, 11, 17910, 11, 5128...
2.711165
412
# Generated by Django 2.1.7 on 2019-08-09 09:36 from django.db import migrations, models def migrate_public_event(apps, schema_editor): """Migrate options previously with no contents (displayed as "Other:") to a new contents ("other"). The field containing these options is in CommonRequest abstract model...
[ 2, 2980, 515, 416, 37770, 362, 13, 16, 13, 22, 319, 13130, 12, 2919, 12, 2931, 7769, 25, 2623, 198, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 11, 4981, 628, 198, 4299, 32492, 62, 11377, 62, 15596, 7, 18211, 11, 32815, 6...
2.381356
472
import torch import torch.nn as nn
[ 11748, 28034, 198, 11748, 28034, 13, 20471, 355, 299, 77, 198 ]
3.181818
11
from unittest import TestCase import numpy as np from robustnessgym.cachedops.spacy import Spacy from robustnessgym.slicebuilders.subpopulations.length import LengthSubpopulation from tests.testbeds import MockTestBedv0
[ 6738, 555, 715, 395, 1330, 6208, 20448, 198, 198, 11748, 299, 32152, 355, 45941, 198, 198, 6738, 12373, 1108, 1360, 76, 13, 66, 2317, 2840, 13, 2777, 1590, 1330, 1338, 1590, 198, 6738, 12373, 1108, 1360, 76, 13, 48369, 50034, 13, 7266...
3.484375
64
import json from astroquery.vizier import Vizier with open("Jankowski_2018_raw.txt", "r") as raw_file: lines = raw_file.readlines() print(lines) pulsar_dict = {} for row in lines[3:]: row = row.split("|") print(row) pulsar = row[0].strip().replace("", "-") freqs = [] fluxs = [] flux_er...
[ 11748, 33918, 198, 6738, 6468, 305, 22766, 13, 85, 528, 959, 1330, 36339, 959, 198, 198, 4480, 1280, 7203, 41, 962, 12079, 62, 7908, 62, 1831, 13, 14116, 1600, 366, 81, 4943, 355, 8246, 62, 7753, 25, 198, 220, 220, 220, 3951, 796, ...
2.210425
518
# Copyright (c) 2018, WSO2 Inc. (http://wso2.com) 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 ap...
[ 2, 15069, 357, 66, 8, 2864, 11, 370, 15821, 17, 3457, 13, 357, 4023, 1378, 86, 568, 17, 13, 785, 8, 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.816679
1,331
# Copyright (c) 2019 Leiden University Medical Center # # 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, me...
[ 2, 15069, 357, 66, 8, 13130, 1004, 14029, 2059, 8366, 3337, 198, 2, 198, 2, 2448, 3411, 318, 29376, 7520, 11, 1479, 286, 3877, 11, 284, 597, 1048, 16727, 257, 4866, 198, 2, 286, 428, 3788, 290, 3917, 10314, 3696, 357, 1169, 366, 2...
3.421589
491
from math import sqrt
[ 6738, 10688, 1330, 19862, 17034, 198 ]
3.666667
6
#!/usr/bin/env python3 # Copyright (c) 2016 Anki, 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 in the file LICENSE.txt or at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unles...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 198, 2, 15069, 357, 66, 8, 1584, 1052, 4106, 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, 7...
2.803269
1,713
# -*- coding: utf-8 -*- """ Created on Fri May 30 17:15:27 2014 @author: Parke """ from __future__ import division, print_function, absolute_import import numpy as np import matplotlib as mplot import matplotlib.pyplot as plt import mypy.my_numpy as mnp dpi = 100 fullwidth = 10.0 halfwidth = 5.0 # use these with li...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 198, 41972, 319, 19480, 1737, 1542, 1596, 25, 1314, 25, 1983, 1946, 198, 198, 31, 9800, 25, 2547, 365, 198, 37811, 198, 198, 6738, 11593, 37443, 834, 1330, 7297, ...
2.183726
3,908