content
stringlengths
1
1.05M
input_ids
listlengths
1
883k
ratio_char_token
float64
1
22.9
token_count
int64
1
883k
from .lib.DownloadData import DownloadData
[ 6738, 764, 8019, 13, 10002, 6601, 1330, 10472, 6601, 628 ]
4.4
10
__author__ = 'Mandar Patil (mandarons@pm.me)' import warnings warnings.filterwarnings('ignore', category=DeprecationWarning)
[ 834, 9800, 834, 796, 705, 49846, 283, 3208, 346, 357, 22249, 283, 684, 31, 4426, 13, 1326, 33047, 198, 198, 11748, 14601, 198, 198, 40539, 654, 13, 24455, 40539, 654, 10786, 46430, 3256, 6536, 28, 12156, 8344, 341, 20361, 8, 198 ]
3.097561
41
import setuptools long_description = """ # Coldtype ### Programmatic display typography More info available at: [coldtype.goodhertz.com](https://coldtype.goodhertz.com) """ setuptools.setup( name="coldtype", version="0.6.6", author="Rob Stenson / Goodhertz", author_email="rob@goodhertz.com", des...
[ 11748, 900, 37623, 10141, 198, 198, 6511, 62, 11213, 796, 37227, 198, 2, 10250, 4906, 198, 198, 21017, 6118, 13849, 3359, 2170, 4867, 198, 198, 5167, 7508, 1695, 379, 25, 685, 36673, 4906, 13, 11274, 372, 22877, 13, 785, 16151, 5450, ...
1.824901
1,759
# -*- coding: utf-8 -*- # GFOLD_static_p3p4 min_=min from cvxpy import * import cvxpy_codegen as cpg from time import time import numpy as np import sys import GFOLD_params ''' As defined in the paper... PROBLEM 3: Minimum Landing Error (tf roughly solved) MINIMIZE : norm of landing error vector SUBJ TO : ...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 34977, 15173, 62, 12708, 62, 79, 18, 79, 19, 628, 198, 1084, 62, 28, 1084, 198, 6738, 269, 85, 87, 9078, 1330, 1635, 198, 11748, 269, 85, 87, 9078, 62, 8189, 52...
2.466231
459
import io import hashlib import logging import os import struct import random from HintList import getHint, getHintGroup, Hint from Utils import local_path #builds out general hints based on location and whether an item is required or not # builds boss reward text that is displayed at the temple of time ...
[ 11748, 33245, 201, 198, 11748, 12234, 8019, 201, 198, 11748, 18931, 201, 198, 11748, 28686, 201, 198, 11748, 2878, 201, 198, 11748, 4738, 201, 198, 201, 198, 6738, 367, 600, 8053, 1330, 651, 39, 600, 11, 651, 39, 600, 13247, 11, 367, ...
3.74569
232
# -*- coding: utf-8 -*- """ Created on Thu Feb 17 09:10:05 2022 @author: JHOSS """ from tkinter import *
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 198, 41972, 319, 26223, 3158, 1596, 7769, 25, 940, 25, 2713, 33160, 198, 198, 31, 9800, 25, 449, 39, 18420, 198, 37811, 198, 198, 6738, 256, 74, 3849, 1330, 163...
2.326087
46
from pytest import raises from bokeh.models import CustomJS, Slider
[ 6738, 12972, 9288, 1330, 12073, 198, 6738, 1489, 365, 71, 13, 27530, 1330, 8562, 20120, 11, 3454, 1304, 628, 198 ]
3.5
20
# BSD 3-Clause License; see https://github.com/jpivarski/awkward-1.0/blob/master/LICENSE from __future__ import absolute_import import sys import pytest import numpy import awkward1
[ 2, 347, 10305, 513, 12, 2601, 682, 13789, 26, 766, 3740, 1378, 12567, 13, 785, 14, 34523, 452, 945, 4106, 14, 707, 12378, 12, 16, 13, 15, 14, 2436, 672, 14, 9866, 14, 43, 2149, 24290, 198, 198, 6738, 11593, 37443, 834, 1330, 4112,...
2.861538
65
#!/user/bin/env python3 # -*- coding: utf8 -*- #===================================================# # cleanup.py # # Joshua Westgard # # 2015-08-13 # # # #...
[ 2, 48443, 7220, 14, 8800, 14, 24330, 21015, 18, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 23, 532, 9, 12, 198, 198, 2, 10052, 4770, 18604, 2, 198, 2, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, ...
2.127315
864
from django.apps import AppConfig from ievv_opensource import ievv_batchframework from ievv_opensource.ievv_batchframework import batchregistry
[ 6738, 42625, 14208, 13, 18211, 1330, 2034, 16934, 198, 198, 6738, 220, 11203, 85, 62, 44813, 1668, 1330, 220, 11203, 85, 62, 43501, 30604, 198, 6738, 220, 11203, 85, 62, 44813, 1668, 13, 11203, 85, 62, 43501, 30604, 1330, 15458, 2301, ...
3.363636
44
r""" Utilities that may be used in the gates """ import torch from fmoe.functions import count_by_gate import fmoe_cuda as fmoe_native
[ 81, 37811, 198, 18274, 2410, 326, 743, 307, 973, 287, 262, 17435, 198, 37811, 198, 11748, 28034, 198, 6738, 277, 76, 2577, 13, 12543, 2733, 1330, 954, 62, 1525, 62, 10494, 198, 11748, 277, 76, 2577, 62, 66, 15339, 355, 277, 76, 2577...
2.956522
46
import os import torch import numpy as np from PIL import Image import torch.nn as nn from torch.utils import data from network import * from dataset.zurich_night_dataset import zurich_night_DataSet from configs.test_config import get_arguments palette = [128, 64, 128, 244, 35, 232, 70, 70, 70, 102, 102, 156, 190, ...
[ 11748, 28686, 198, 11748, 28034, 198, 11748, 299, 32152, 355, 45941, 198, 198, 6738, 350, 4146, 1330, 7412, 198, 11748, 28034, 13, 20471, 355, 299, 77, 198, 6738, 28034, 13, 26791, 1330, 1366, 198, 198, 6738, 3127, 1330, 1635, 198, 6738...
2.422222
270
#decorator f=now f() print now.__name__ print f.__name__ now1() now1=log(now1) now1() now2() import functools now3() now4() now5() now6()
[ 2, 12501, 273, 1352, 198, 69, 28, 2197, 198, 69, 3419, 198, 4798, 783, 13, 834, 3672, 834, 198, 4798, 277, 13, 834, 3672, 834, 198, 2197, 16, 3419, 198, 198, 2197, 16, 28, 6404, 7, 2197, 16, 8, 198, 2197, 16, 3419, 198, 2197, ...
2.014493
69
# Author: Will Rodman # wrodman@tulane.edu # # Command line to run program: # python3 pyfrechet_visualize.py import sys, os, unittest sys.path.insert(0, "../") from pyfrechet.distance import StrongDistance from pyfrechet.visualize import FreeSpaceDiagram, Trajectories TEST_DATA = "sp500" if TEST_DATA == "sp500": ...
[ 2, 6434, 25, 2561, 6882, 805, 198, 2, 266, 14892, 805, 31, 83, 377, 1531, 13, 15532, 198, 2, 198, 2, 9455, 1627, 284, 1057, 1430, 25, 198, 2, 21015, 18, 12972, 19503, 20043, 62, 41464, 1096, 13, 9078, 198, 198, 11748, 25064, 11, ...
2.295775
284
#!/usr/bin/env python3 # vim:fileencoding=UTF-8 # -*- coding: UTF-8 -*- """ Created on 15 juny 2019 y. @author: Vlsdimir Nekrasov nww2007@mail.ru """ import sys import struct import numpy as np from progress.bar import Bar import logging logging.basicConfig(format = u'%(filename)s:%(lineno)d: %(levelname)-8s [%(asc...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 2, 43907, 25, 7753, 12685, 7656, 28, 48504, 12, 23, 198, 2, 532, 9, 12, 19617, 25, 41002, 12, 23, 532, 9, 12, 198, 198, 37811, 198, 41972, 319, 1315, 10891, 88, 13130, 331, 1...
2.508021
187
#!/usr/bin/env python # -*- coding: utf-8 -*- __all__ = ["FormattedCheckpointFile"] # # Imports import numpy as np import scipy.linalg as sla from collections import OrderedDict import re import logging # # Local Imports from sgdml_dataset_generation import units from sgdml_dataset_generation.units import hbar # # L...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 834, 439, 834, 796, 14631, 8479, 16898, 9787, 4122, 8979, 8973, 198, 198, 2, 1303, 1846, 3742, 198, 11748, 299, 32152, ...
2.779874
159
values = [] for i in range(9): values.append(int(input(''))) max_value = 0 location = 0 for i in range(9): if values[i] > max_value: max_value = values[i] location = i+1 print(max_value) print(location)
[ 27160, 796, 17635, 198, 1640, 1312, 287, 2837, 7, 24, 2599, 198, 220, 220, 220, 3815, 13, 33295, 7, 600, 7, 15414, 7, 7061, 22305, 198, 9806, 62, 8367, 796, 657, 198, 24886, 796, 657, 198, 198, 1640, 1312, 287, 2837, 7, 24, 2599, ...
2.292929
99
#!/usr/bin/env python # encoding: utf-8 """ process.py Copyright (c) 2011 Adam Cohen 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 t...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 21004, 25, 3384, 69, 12, 23, 198, 37811, 198, 14681, 13, 9078, 198, 198, 15269, 357, 66, 8, 2813, 7244, 17154, 198, 198, 5990, 3411, 318, 29376, 7520, 11, 1479, 286, 3877, 11, 2...
3.933718
347
from __future__ import print_function, division, absolute_import import numpy as np INPUT = 265149 def part2(number): """ A brute-force approach to part 2. """ map = np.zeros((11, 11), dtype=int) row = 5 col = 5 map[row, col] = 1 heading = 'RIGHT' dcol = 1 drow = 0 n...
[ 6738, 11593, 37443, 834, 1330, 3601, 62, 8818, 11, 7297, 11, 4112, 62, 11748, 198, 198, 11748, 299, 32152, 355, 45941, 198, 198, 1268, 30076, 796, 32090, 19442, 198, 198, 4299, 636, 17, 7, 17618, 2599, 198, 220, 220, 220, 37227, 198, ...
1.920761
631
# Generated by Django 3.2.7 on 2021-09-29 23:54 from django.db import migrations, models import django.db.models.deletion
[ 2, 2980, 515, 416, 37770, 513, 13, 17, 13, 22, 319, 33448, 12, 2931, 12, 1959, 2242, 25, 4051, 198, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 11, 4981, 198, 11748, 42625, 14208, 13, 9945, 13, 27530, 13, 2934, 1616, 295, ...
2.818182
44
begin_unit comment|'# Copyright 2013 Cloudbase Solutions Srl' nl|'\n' comment|'# All Rights Reserved.' nl|'\n' comment|'#' nl|'\n' comment|'# Licensed under the Apache License, Version 2.0 (the "License"); you may' nl|'\n' comment|'# not use this file except in compliance with the License. You may obtain' nl|'\n'...
[ 27471, 62, 20850, 198, 23893, 91, 6, 2, 15069, 2211, 10130, 8692, 23555, 21714, 75, 6, 198, 21283, 91, 6, 59, 77, 6, 198, 23893, 91, 6, 2, 1439, 6923, 33876, 2637, 198, 21283, 91, 6, 59, 77, 6, 198, 23893, 91, 6, 2, 6, 198, ...
2.039239
2,574
# -*- coding: utf-8 -*- """ Geometrical functions --------------------- References ---------- .. [W1] Wikipedia: https://de.wikipedia.org/wiki/Ellipse#Ellipsengleichung_(Parameterform) .. [WAE] Wolfram Alpha: Ellipse. (http://mathworld.wolfram.com/Ellipse.html) """ import numpy as np from typing import Union def ci...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 198, 10082, 908, 8143, 5499, 198, 19351, 12, 198, 198, 19927, 198, 35937, 198, 492, 685, 54, 16, 60, 15312, 25, 3740, 1378, 2934, 13, 31266, 13, 2398, 14, 15466...
2.420699
744
"""Monthly HDD/CDD Totals.""" import datetime from pandas.io.sql import read_sql from pyiem.plot.use_agg import plt from pyiem.util import get_dbconn, get_autoplot_context from pyiem.exceptions import NoDataFound PDICT = {'cdd': 'Cooling Degree Days', 'hdd': 'Heating Degree Days'} def get_description(): ...
[ 37811, 31948, 306, 43601, 14, 8610, 35, 20323, 874, 526, 15931, 198, 11748, 4818, 8079, 198, 198, 6738, 19798, 292, 13, 952, 13, 25410, 1330, 1100, 62, 25410, 198, 6738, 12972, 26597, 13, 29487, 13, 1904, 62, 9460, 1330, 458, 83, 198,...
2.165527
2,048
import os import pickle import time import timeit import torch.nn as nn import torch.nn.functional as F import torch.optim as optim import numpy as np import torch import tempfile import horovod.torch as hvd from horovod.ray import RayExecutor from ray_shuffling_data_loader.torch_dataset import (TorchShufflingDatase...
[ 11748, 28686, 198, 11748, 2298, 293, 198, 11748, 640, 198, 11748, 640, 270, 198, 198, 11748, 28034, 13, 20471, 355, 299, 77, 198, 11748, 28034, 13, 20471, 13, 45124, 355, 376, 198, 11748, 28034, 13, 40085, 355, 6436, 198, 198, 11748, ...
2.324395
2,685
# -*- coding: utf-8 -*- from datetime import datetime, timedelta from django.conf import settings from django.db import connection, DatabaseError from django.db.models import F, DateField, DateTimeField, IntegerField, TimeField, CASCADE from django.db.models.fields.related import ForeignKey from django.db.models.func...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 6738, 4818, 8079, 1330, 4818, 8079, 11, 28805, 12514, 198, 198, 6738, 42625, 14208, 13, 10414, 1330, 6460, 198, 6738, 42625, 14208, 13, 9945, 1330, 4637, 11, 24047, ...
3.23913
230
import pytest import numpy as np import eqtk
[ 11748, 12972, 9288, 198, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 37430, 30488, 628, 628, 628, 628 ]
2.944444
18
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union from .. import _utilitie...
[ 2, 19617, 28, 40477, 12, 23, 198, 2, 17202, 39410, 25, 428, 2393, 373, 7560, 416, 262, 21624, 12994, 24118, 687, 10290, 357, 27110, 5235, 8, 16984, 13, 17202, 198, 2, 17202, 2141, 407, 4370, 416, 1021, 4556, 345, 821, 1728, 345, 760...
3.59292
113
# MIT License # # Copyright (c) 2017 Satellogic SA # # 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...
[ 2, 17168, 13789, 198, 2, 198, 2, 15069, 357, 66, 8, 2177, 311, 7528, 519, 291, 14719, 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, 10...
2.344959
4,731
from .rouge import ROUGEScorer from .bleu.bleu import BLEUScorer from .meteor.meteor import METEORScorer from .cider.cider import Cider from .ciderd.ciderd import CiderD
[ 6738, 764, 472, 469, 1330, 371, 2606, 48075, 7295, 81, 198, 6738, 764, 903, 84, 13, 903, 84, 1330, 347, 2538, 2937, 7295, 81, 198, 6738, 764, 4164, 13492, 13, 4164, 13492, 1330, 31243, 36, 1581, 3351, 11934, 198, 6738, 764, 66, 1304...
2.65625
64
import numpy as np import torch import torch.nn as nn from mmcv.runner import obj_from_dict from mmcv.utils.config import Config from mmedit.models import build_model from mmedit.models.losses import L1Loss from mmedit.models.registry import COMPONENTS
[ 11748, 299, 32152, 355, 45941, 198, 11748, 28034, 198, 11748, 28034, 13, 20471, 355, 299, 77, 198, 6738, 8085, 33967, 13, 16737, 1330, 26181, 62, 6738, 62, 11600, 198, 6738, 8085, 33967, 13, 26791, 13, 11250, 1330, 17056, 198, 198, 6738...
3.160494
81
from django.utils import timezone from django.core.exceptions import ObjectDoesNotExist from django.db.models.signals import post_save, pre_save from django.dispatch import receiver from database.study_models import DeviceSettings, Study, Survey, SurveyArchive
[ 201, 198, 6738, 42625, 14208, 13, 26791, 1330, 640, 11340, 201, 198, 6738, 42625, 14208, 13, 7295, 13, 1069, 11755, 1330, 9515, 13921, 3673, 3109, 396, 201, 198, 6738, 42625, 14208, 13, 9945, 13, 27530, 13, 12683, 874, 1330, 1281, 62, ...
3.301205
83
import npyscreen if __name__ == '__main__': TestApp = MyApplication().run()
[ 11748, 45941, 28349, 1361, 628, 628, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 198, 220, 220, 220, 6208, 4677, 796, 2011, 23416, 22446, 5143, 3419 ]
2.862069
29
# -*- coding: utf-8 -*- """Implementation of MiniGoogLeNet architecture. This implementation is based on the original implemetation of GoogLeNet. The authors of the net used BN before Activation layer. This should be switched. """ from keras.layers.normalization import BatchNormalization from keras.layers.convolutiona...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 3546, 32851, 286, 12558, 5247, 519, 3123, 7934, 10959, 13, 198, 198, 1212, 7822, 318, 1912, 319, 262, 2656, 848, 293, 4164, 341, 286, 1514, 519, 3123, 7934, 13, ...
3.394366
213
########################################################################## # # Copyright (c) 2011-2012, John Haddon. All rights reserved. # Copyright (c) 2011-2013, Image Engine Design Inc. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted prov...
[ 29113, 29113, 7804, 2235, 198, 2, 198, 2, 220, 15069, 357, 66, 8, 2813, 12, 6999, 11, 1757, 367, 48078, 13, 1439, 2489, 10395, 13, 198, 2, 220, 15069, 357, 66, 8, 2813, 12, 6390, 11, 7412, 7117, 8495, 3457, 13, 1439, 2489, 10395, ...
3.379888
716
"""Test whether putative triangles, specified as triples of side lengths, in fact are possible.""" def load_triangles(filename): """Load triangles from filename.""" triangles = [] with open(filename) as f: for line in f: if line.strip(): triangles.append(tuple([int(side) ...
[ 37811, 14402, 1771, 1234, 876, 44360, 11, 7368, 355, 1333, 2374, 286, 1735, 20428, 11, 198, 259, 1109, 389, 1744, 526, 15931, 628, 198, 4299, 3440, 62, 28461, 27787, 7, 34345, 2599, 198, 220, 220, 220, 37227, 8912, 44360, 422, 29472, ...
2.05146
719
num = int(input('Digite um nmero para ver sua tabuada: ')) for i in range(1, 11): print('{} x {:2} = {}'.format(num, i, num * i))
[ 22510, 796, 493, 7, 15414, 10786, 19511, 578, 23781, 299, 647, 78, 31215, 3326, 424, 64, 7400, 84, 4763, 25, 705, 4008, 198, 198, 1640, 1312, 287, 2837, 7, 16, 11, 1367, 2599, 198, 220, 220, 220, 3601, 10786, 90, 92, 2124, 46110, ...
2.310345
58
"""Print ebmeta version number.""" import sys import ebmeta
[ 37811, 18557, 36649, 28961, 2196, 1271, 526, 15931, 198, 198, 11748, 25064, 198, 11748, 36649, 28961, 198 ]
3.588235
17
# -*- coding: utf-8 -*- # pylint: disable=no-member,invalid-name,duplicate-code """ REST API Documentation for the NRS TFRS Credit Trading Application The Transportation Fuels Reporting System is being designed to streamline compliance reporting for transportation fuel suppliers in accordance with the ...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 279, 2645, 600, 25, 15560, 28, 3919, 12, 19522, 11, 259, 12102, 12, 3672, 11, 646, 489, 5344, 12, 8189, 198, 37811, 198, 220, 220, 220, 30617, 7824, 43925, 329, 2...
3.785714
322
import os SERVER_NAME = os.getenv('DOMAIN_SUPERSET') PUBLIC_ROLE_LIKE_GAMMA = True SESSION_COOKIE_SAMESITE = None # One of [None, 'Lax', 'Strict'] SESSION_COOKIE_HTTPONLY = False MAPBOX_API_KEY = os.getenv('MAPBOX_API_KEY', '') POSTGRES_DB=os.getenv('POSTGRES_DB') POSTGRES_PASSWORD=os.getenv('POSTGRES_PASSWORD') POSTG...
[ 11748, 28686, 198, 198, 35009, 5959, 62, 20608, 796, 28686, 13, 1136, 24330, 10786, 39170, 29833, 62, 40331, 4877, 2767, 11537, 198, 5105, 32936, 62, 13252, 2538, 62, 31271, 7336, 62, 38, 2390, 5673, 796, 6407, 198, 50, 47621, 62, 34, ...
2.09292
452
import discord import json import random import os from discord.ext import commands TOKEN = "" client = commands.Bot(command_prefix = '--') os.chdir(r'D:\Programming\Projects\Discord bot\jsonFiles') SoloCounter = 30 SolominCounter = 10 Queueiter = 1 T_Queueiter = 1 TeamCounter = 50 TeamminCounter = 20 ...
[ 11748, 36446, 201, 198, 11748, 33918, 201, 198, 11748, 4738, 201, 198, 11748, 28686, 201, 198, 6738, 36446, 13, 2302, 1330, 9729, 201, 198, 201, 198, 10468, 43959, 796, 13538, 201, 198, 16366, 796, 9729, 13, 20630, 7, 21812, 62, 40290, ...
3.122685
432
import database as d import numpy as np import random from transitions import Machine #Conversations are markov chains. Works as follows: a column vector for each CURRENT state j, a row vector for each TARGET state i. #Each entry i,j = the probability of moving to state i from state j. #target state D = end of convers...
[ 11748, 6831, 355, 288, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 4738, 198, 6738, 27188, 1330, 10850, 198, 198, 2, 3103, 690, 602, 389, 1317, 709, 14659, 13, 10933, 355, 5679, 25, 257, 5721, 15879, 329, 1123, 327, 39237, 1181, 4...
3.852941
136
from __init__ import ExtractUnlabeledData, SampleUnlabeledData, ExtractLabeledData E = ExtractLabeledData(data_dir='../labeldata/') E.get_pathways() E.get_pathway_names() E.get_classes_dict() E.create_df_all_labels()
[ 6738, 11593, 15003, 834, 1330, 29677, 3118, 18242, 276, 6601, 11, 27565, 3118, 18242, 276, 6601, 11, 29677, 33986, 276, 6601, 198, 198, 36, 796, 29677, 33986, 276, 6601, 7, 7890, 62, 15908, 11639, 40720, 75, 11231, 335, 1045, 14, 11537,...
2.691358
81
from django.shortcuts import render, redirect from .forms import AuthorForm, BlogForm, NewUserForm from .models import Author, Blog from django.contrib.auth import login, authenticate, logout from django.contrib import messages from django.contrib.auth.forms import AuthenticationForm from django.contrib.auth.decorator...
[ 6738, 42625, 14208, 13, 19509, 23779, 1330, 8543, 11, 18941, 198, 6738, 764, 23914, 1330, 6434, 8479, 11, 14001, 8479, 11, 968, 12982, 8479, 198, 6738, 764, 27530, 1330, 6434, 11, 14001, 198, 6738, 42625, 14208, 13, 3642, 822, 13, 18439...
3.190053
563
# here we make fixtures of toy data # real parameters are stored and accessed from config import pytest import librosa import os import numpy as np from hydra.experimental import compose, initialize # It is not clear if we should cleanup the test directories # or leave them for debugging # https://github.com/pytes...
[ 2, 994, 356, 787, 34609, 286, 13373, 1366, 198, 2, 1103, 10007, 389, 8574, 290, 17535, 422, 4566, 628, 198, 11748, 12972, 9288, 198, 11748, 9195, 4951, 64, 198, 11748, 28686, 198, 11748, 299, 32152, 355, 45941, 198, 198, 6738, 25039, ...
3.865169
89
import dataclasses import inspect from dataclasses import dataclass, field from pprint import pprint import attr def main(): comment = Comment(1, "I just subscribed!") # comment.id = 3 # can't immutable print(comment) print(dataclasses.astuple(comment)) print(dataclasses.asdict(comment)) ...
[ 11748, 4818, 330, 28958, 198, 11748, 10104, 198, 6738, 4818, 330, 28958, 1330, 4818, 330, 31172, 11, 2214, 198, 6738, 279, 4798, 1330, 279, 4798, 198, 198, 11748, 708, 81, 628, 628, 198, 198, 4299, 1388, 33529, 198, 220, 220, 220, 291...
2.80117
171
from enum import Enum import requests PRE_URL = "http://www.musictool.top/" headers = {"User-Agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.102 Safari/537.36"} if __name__ == '__main__': get_music_list("", MusicAPP.qq)
[ 6738, 33829, 1330, 2039, 388, 198, 11748, 7007, 628, 198, 198, 46437, 62, 21886, 796, 366, 4023, 1378, 2503, 13, 14664, 713, 970, 13, 4852, 30487, 198, 50145, 796, 19779, 12982, 12, 36772, 1298, 366, 44, 8590, 5049, 14, 20, 13, 15, ...
2.521368
117
from rest_framework import serializers from projects.models import Project, Tag, Review from users.models import Profile
[ 6738, 1334, 62, 30604, 1330, 11389, 11341, 198, 6738, 4493, 13, 27530, 1330, 4935, 11, 17467, 11, 6602, 198, 6738, 2985, 13, 27530, 1330, 13118, 628, 628 ]
4.592593
27
import copy import datetime from decimal import Decimal import logging import uuid import json import cStringIO from couchdbkit import ResourceNotFound import dateutil from django.core.paginator import Paginator from django.views.generic import View from django.db.models import Sum from django.conf import settings fro...
[ 11748, 4866, 198, 11748, 4818, 8079, 198, 6738, 32465, 1330, 4280, 4402, 198, 11748, 18931, 198, 11748, 334, 27112, 198, 11748, 33918, 198, 11748, 269, 10100, 9399, 198, 198, 6738, 18507, 9945, 15813, 1330, 20857, 3673, 21077, 198, 11748, ...
2.551171
8,540
from sympy import simplify, zeros from sympy import Matrix as mat import numpy as np from ..genericas import print_verbose, matriz_inversa def metodo_iterativo( A, b=None, x0=None, metodo="jacobi", w=1.5, n_iter=10, verbose=True, ): """Aplica el mtodo iterativo designado Args: A (matriz): M...
[ 6738, 10558, 88, 1330, 30276, 11, 1976, 27498, 198, 6738, 10558, 88, 1330, 24936, 355, 2603, 198, 11748, 299, 32152, 355, 45941, 198, 198, 6738, 11485, 41357, 292, 1330, 3601, 62, 19011, 577, 11, 2603, 47847, 62, 259, 690, 64, 628, 62...
2.009804
1,020
"""{{ cookiecutter.project_name }} - {{ cookiecutter.project_short_description }}""" __version__ = "{{ cookiecutter.project_version }}" __author__ = """{{ cookiecutter.author_name }}""" __email__ = "{{ cookiecutter.author_email }}" prog_name = "{{ cookiecutter.project_hyphen }}"
[ 37811, 27007, 19751, 8968, 353, 13, 16302, 62, 3672, 34949, 532, 22935, 19751, 8968, 353, 13, 16302, 62, 19509, 62, 11213, 34949, 37811, 198, 198, 834, 9641, 834, 796, 366, 27007, 19751, 8968, 353, 13, 16302, 62, 9641, 34949, 1, 198, ...
3.065217
92
from typing import NamedTuple from dask_gateway_server.app import DaskGateway
[ 6738, 19720, 1330, 34441, 51, 29291, 198, 198, 6738, 288, 2093, 62, 10494, 1014, 62, 15388, 13, 1324, 1330, 360, 2093, 22628, 1014, 628 ]
3.333333
24
# # Copyright (C) 2001,2002,2003 greg Landrum and Rational Discovery LLC # """ Functionality for ranking bits using info gains **Definitions used in this module** - *sequence*: an object capable of containing other objects which supports __getitem__() and __len__(). Examples of these include lists, tupl...
[ 2, 198, 2, 220, 15069, 357, 34, 8, 5878, 11, 16942, 11, 16088, 220, 308, 2301, 6379, 6582, 290, 46863, 23455, 11419, 198, 2, 198, 37811, 15553, 1483, 329, 12759, 10340, 1262, 7508, 8810, 628, 12429, 7469, 50101, 973, 287, 428, 8265, ...
2.725782
2,013
import tensorflow as tf import os import pickle import numpy as np from constant_params import input_feature_dim, window_size
[ 11748, 11192, 273, 11125, 355, 48700, 198, 11748, 28686, 198, 11748, 2298, 293, 198, 11748, 299, 32152, 355, 45941, 198, 198, 6738, 6937, 62, 37266, 1330, 5128, 62, 30053, 62, 27740, 11, 4324, 62, 7857, 628, 628 ]
3.513514
37
import copy import math import logging from typing import Dict, List, Optional, Tuple, Union import os import numpy as np import torch import torch.nn as nn import torch.nn.functional as F import torch.jit as jit import torch.autograd import contextlib import glob from eight_mile.utils import listify, Offsets, is_seque...
[ 11748, 4866, 198, 11748, 10688, 198, 11748, 18931, 198, 6738, 19720, 1330, 360, 713, 11, 7343, 11, 32233, 11, 309, 29291, 11, 4479, 198, 11748, 28686, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 28034, 198, 11748, 28034, 13, 20471, ...
2.414896
8,190
from setuptools import setup setup( name='espdf', version='0.1.0-dev', url='https://github.com/flother/pdf-search', py_modules=( 'espdf', ), install_requires=( 'certifi', 'elasticsearch-dsl', ), entry_points={ 'console_scripts': ( 'espdf=espd...
[ 6738, 900, 37623, 10141, 1330, 9058, 628, 198, 40406, 7, 198, 220, 220, 220, 1438, 11639, 9774, 7568, 3256, 198, 220, 220, 220, 2196, 11639, 15, 13, 16, 13, 15, 12, 7959, 3256, 198, 220, 220, 220, 19016, 11639, 5450, 1378, 12567, 13...
1.955056
178
#!/usr/bin/env python # -*- coding: utf-8 -*- from conans import ConanFile, CMake, tools import shutil
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 6738, 369, 504, 1330, 31634, 8979, 11, 327, 12050, 11, 4899, 198, 11748, 4423, 346, 628 ]
2.625
40
""" Copyright 2021 Anderson Faustino da Silva. 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,...
[ 37811, 198, 15269, 33448, 9918, 47411, 2879, 12379, 23720, 13, 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,...
1.711157
4,885
import tkinter as tk from scipy.stats import chi2, chisquare COLOR = '#dddddd' COLUMNS_COLOR = '#ffffff' MAX_SIZE = 10 WIDGET_WIDTH = 25 generator = LinearCongruent() root = tk.Tk() root['bg'] = COLOR root.geometry('540x390') first_block = Block(root) first_block.make_view() root.mainloop()
[ 11748, 256, 74, 3849, 355, 256, 74, 198, 6738, 629, 541, 88, 13, 34242, 1330, 33166, 17, 11, 442, 271, 421, 533, 198, 198, 46786, 796, 705, 2, 1860, 1860, 1860, 6, 198, 25154, 5883, 8035, 62, 46786, 796, 705, 2, 12927, 487, 6, 1...
2.370079
127
# OpenWeatherMap API Key weather_api_key = "MyOpenWeatherMapAPIKey" # Google API Key g_key = "MyGoogleKey"
[ 2, 4946, 41865, 13912, 7824, 7383, 198, 23563, 62, 15042, 62, 2539, 796, 366, 3666, 11505, 41865, 13912, 17614, 9218, 1, 198, 198, 2, 3012, 7824, 7383, 198, 70, 62, 2539, 796, 366, 3666, 11708, 9218, 1 ]
2.891892
37
"""Represents a request for an action menu.""" from .....messaging.agent_message import AgentMessage, AgentMessageSchema from ..message_types import MENU_REQUEST, PROTOCOL_PACKAGE HANDLER_CLASS = f"{PROTOCOL_PACKAGE}.handlers.menu_request_handler.MenuRequestHandler"
[ 37811, 6207, 6629, 257, 2581, 329, 281, 2223, 6859, 526, 15931, 198, 198, 6738, 11485, 986, 37348, 3039, 13, 25781, 62, 20500, 1330, 15906, 12837, 11, 15906, 12837, 27054, 2611, 198, 198, 6738, 11485, 20500, 62, 19199, 1330, 41597, 52, ...
3.162791
86
from django.core.management.base import BaseCommand, CommandError from django.conf import settings from porthole import models, brocade
[ 6738, 42625, 14208, 13, 7295, 13, 27604, 13, 8692, 1330, 7308, 21575, 11, 9455, 12331, 198, 6738, 42625, 14208, 13, 10414, 1330, 6460, 198, 198, 6738, 279, 1506, 2305, 1330, 4981, 11, 1379, 46395, 628 ]
3.942857
35
"""Tests joulia.unit_conversions. """ from django.test import TestCase from joulia import unit_conversions
[ 37811, 51, 3558, 474, 2852, 544, 13, 20850, 62, 1102, 47178, 13, 198, 37811, 198, 198, 6738, 42625, 14208, 13, 9288, 1330, 6208, 20448, 198, 198, 6738, 474, 2852, 544, 1330, 4326, 62, 1102, 47178, 628, 198 ]
3
37
from django.contrib.auth.models import User from django.test import TestCase from blog.models import Category, Post
[ 6738, 42625, 14208, 13, 3642, 822, 13, 18439, 13, 27530, 1330, 11787, 198, 6738, 42625, 14208, 13, 9288, 1330, 6208, 20448, 198, 198, 6738, 4130, 13, 27530, 1330, 21743, 11, 2947, 198 ]
3.65625
32
from pathlib import Path from hylfm.hylfm_types import ( CriterionChoice, DatasetChoice, LRSchedThresMode, LRSchedulerChoice, MetricChoice, OptimizerChoice, PeriodUnit, ) from hylfm.model import HyLFM_Net from hylfm.train import train if __name__ == "__main__": train( dataset=...
[ 6738, 3108, 8019, 1330, 10644, 198, 198, 6738, 2537, 1652, 76, 13, 12114, 1652, 76, 62, 19199, 1330, 357, 198, 220, 220, 220, 10056, 28019, 46770, 11, 198, 220, 220, 220, 16092, 292, 316, 46770, 11, 198, 220, 220, 220, 406, 6998, 17...
1.524041
1,643
import os import pickle from PIL import Image if __name__ == "__main__": sourceFolder = 'D:/BME/7felev/Szakdolgozat/whole_dataset/filtered_data' imageFolderArranger = PatientToImageFolder(sourceFolder) imageFolderArranger.createImageFolderDatasets()
[ 11748, 28686, 198, 11748, 2298, 293, 198, 6738, 350, 4146, 1330, 7412, 628, 198, 198, 361, 11593, 3672, 834, 6624, 366, 834, 12417, 834, 1298, 198, 220, 220, 220, 2723, 41092, 796, 705, 35, 14079, 33, 11682, 14, 22, 5036, 2768, 14, ...
2.676768
99
import pandas as pd import numpy as np import pickle from sklearn.cross_validation import train_test_split from sklearn.linear_model import LinearRegression from sklearn.metrics import mean_squared_error from math import sqrt from sklearn.svm import SVR from sklearn.svm import LinearSVR from sklearn.preprocessing imp...
[ 11748, 19798, 292, 355, 279, 67, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 2298, 293, 198, 198, 6738, 1341, 35720, 13, 19692, 62, 12102, 341, 1330, 4512, 62, 9288, 62, 35312, 198, 6738, 1341, 35720, 13, 29127, 62, 19849, 1330, 4...
3.161111
180
import numpy as np import serial import time import matplotlib.pyplot as plt if __name__ == '__main__': sensorReadings = getData() plotter(sensorReadings)
[ 11748, 299, 32152, 355, 45941, 201, 198, 11748, 11389, 201, 198, 11748, 640, 201, 198, 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 201, 198, 201, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 201, 198, 22...
2.606061
66
from CMText.TextClient import TextClient # Message to be send message = 'Examples message to be send' # Media to be send media = { "mediaName": "conversational-commerce", "mediaUri": "https://www.cm.com/cdn/cm/cm.png", "mimeType": "image/png" } # AllowedChannels in this ca...
[ 6738, 16477, 8206, 13, 8206, 11792, 1330, 8255, 11792, 198, 198, 2, 16000, 284, 307, 3758, 198, 20500, 796, 705, 27730, 3275, 284, 307, 3758, 6, 198, 198, 2, 6343, 284, 307, 3758, 198, 11431, 796, 1391, 198, 220, 220, 220, 220, 220,...
2.72119
269
import pygame from pygame.math import Vector2
[ 11748, 12972, 6057, 198, 6738, 12972, 6057, 13, 11018, 1330, 20650, 17, 628, 628 ]
3.5
14
# Copyright 2021 Mohammad Kazemi <kazemi.me.222@gmail.com>. # SPDX-License-Identifier: MIT # Telegram API framework core imports from collections import namedtuple from functools import partial from ganjoor.ganjoor import Ganjoor from telegram.ext import Dispatcher, CallbackContext from telegram import Update # Helper...
[ 198, 2, 15069, 33448, 29674, 16385, 43967, 1279, 74, 1031, 43967, 13, 1326, 13, 23148, 31, 14816, 13, 785, 28401, 198, 2, 30628, 55, 12, 34156, 12, 33234, 7483, 25, 17168, 198, 2, 50203, 7824, 9355, 4755, 17944, 198, 6738, 17268, 1330...
2.928571
462
import os import sys import struct import re import logging logging.basicConfig(stream=sys.stderr, level=logging.DEBUG) logger = logging.getLogger(__name__)
[ 11748, 28686, 198, 11748, 25064, 198, 11748, 2878, 198, 11748, 302, 198, 11748, 18931, 198, 198, 6404, 2667, 13, 35487, 16934, 7, 5532, 28, 17597, 13, 301, 1082, 81, 11, 1241, 28, 6404, 2667, 13, 30531, 8, 198, 6404, 1362, 796, 18931,...
3.057692
52
import uos as os import time try: # only run import if no stubs yet os.listdir("stubs") print("stub folder was found, stubbing is not automatically started") except OSError: countdown()
[ 11748, 334, 418, 355, 28686, 198, 11748, 640, 628, 198, 198, 28311, 25, 198, 220, 220, 220, 1303, 691, 1057, 1330, 611, 645, 17071, 82, 1865, 198, 220, 220, 220, 28686, 13, 4868, 15908, 7203, 301, 23161, 4943, 198, 220, 220, 220, 36...
2.861111
72
# Copyright (C) 2013 Google Inc. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # * Redistributions of source code must retain the above copyright # notice, this list of conditions and the ...
[ 2, 15069, 357, 34, 8, 2211, 3012, 3457, 13, 1439, 2489, 10395, 13, 198, 2, 198, 2, 2297, 396, 3890, 290, 779, 287, 2723, 290, 13934, 5107, 11, 351, 393, 1231, 198, 2, 17613, 11, 389, 10431, 2810, 326, 262, 1708, 3403, 389, 198, ...
3.551867
482
#!/usr/bin/python3 # -*- coding: utf-8 -*- from subprocess import Popen, PIPE emojis=""" Helmet With White Cross, Type-1-2 Helmet With White Cross, Type-3 Helmet With White Cross, Type-4 Helmet With White Cross, Type-5 Helmet With White Cross, Type-6 Kiss, Type-1-2 Kiss, Type-3 Kiss, Type-4 Kiss, Type-5 Kiss...
[ 2, 48443, 14629, 14, 8800, 14, 29412, 18, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 6738, 850, 14681, 1330, 8099, 268, 11, 350, 4061, 36, 198, 198, 368, 13210, 271, 2625, 15931, 35900, 2080, 2635, 63...
3.019533
73,260
#!/usr/bin/env python """ ngc - n-grams count License: 3-clause BSD (see https://opensource.org/licenses/BSD-3-Clause) Author: Hubert Tournier """ import getopt import logging import os import re import string import sys import unicode2ascii # Version string used by the what(1) and ident(1) commands: ID = "@(#) $Id:...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 37811, 23370, 66, 532, 299, 12, 4546, 82, 954, 198, 34156, 25, 513, 12, 565, 682, 347, 10305, 357, 3826, 3740, 1378, 44813, 1668, 13, 2398, 14, 677, 4541, 14, 21800, 12, 18, 12, 26...
2.29333
8,366
# -*- coding: utf-8 -*- # vim: tabstop=4 shiftwidth=4 softtabstop=4 # # Copyright (C) 2012-2016 GEM Foundation # # OpenQuake is free software: you can redistribute it and/or modify it # under the terms of the GNU Affero General Public License as published # by the Free Software Foundation, either version 3 of the Licen...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 43907, 25, 7400, 11338, 28, 19, 6482, 10394, 28, 19, 2705, 8658, 11338, 28, 19, 198, 2, 198, 2, 15069, 357, 34, 8, 2321, 12, 5304, 402, 3620, 5693, 198, 2, 198,...
3.255952
336
# -*- coding: utf-8 -*- """Time Series Forest Regressor (TSF).""" __author__ = ["Tony Bagnall", "kkoziara", "luiszugasti", "kanand77", "Markus Lning"] __all__ = ["TimeSeriesForestRegressor"] import numpy as np from joblib import Parallel, delayed from sklearn.ensemble._forest import ForestRegressor from sklearn.tree ...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 7575, 7171, 9115, 3310, 44292, 357, 4694, 37, 21387, 15931, 198, 198, 834, 9800, 834, 796, 14631, 29387, 347, 4660, 439, 1600, 366, 74, 7204, 17027, 3301, 1600, 3...
3.011561
173
""" Django settings for vectorc2 project. Copyright 2019 Sebastian Ryszard Kruk <vectorc2@kruk.me> 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-...
[ 37811, 198, 35, 73, 14208, 6460, 329, 15879, 66, 17, 1628, 13, 628, 220, 15069, 13130, 26190, 371, 893, 89, 446, 33909, 74, 1279, 31364, 66, 17, 31, 74, 622, 74, 13, 1326, 29, 628, 220, 49962, 739, 262, 24843, 13789, 11, 10628, 36...
2.364079
3,285
from torchvision.datasets.folder import pil_loader, accimage_loader, default_loader from torch import Tensor from pathlib import Path from enum import Enum from collections import namedtuple from torchvision import transforms as T import os import numpy as np import pdb import functools import torch.utils.data as dat...
[ 6738, 28034, 10178, 13, 19608, 292, 1039, 13, 43551, 1330, 5560, 62, 29356, 11, 697, 9060, 62, 29356, 11, 4277, 62, 29356, 198, 6738, 28034, 1330, 309, 22854, 198, 6738, 3108, 8019, 1330, 10644, 198, 6738, 33829, 1330, 2039, 388, 198, ...
2.1972
857
#!/usr/bin/python # # So this script is in a bit of a hack state right now. # This script reads # # # # Graciously copied and modified from: # http://graphics.cs.cmu.edu/projects/im2gps/flickr_code.html #Image querying script written by Tamara Berg, #and extended heavily James Hays #9/26/2007 added dynamic timesli...
[ 2, 48443, 14629, 14, 8800, 14, 29412, 198, 2, 198, 2, 1406, 428, 4226, 318, 287, 257, 1643, 286, 257, 8156, 1181, 826, 783, 13, 220, 198, 2, 770, 4226, 9743, 220, 198, 2, 198, 2, 198, 2, 628, 198, 2, 38099, 6819, 18984, 290, 9...
1.902648
6,194
import os import sys from pyspark.sql.types import * PATH = "/home/ubuntu/work/ml-resources/spark-ml/data" SPARK_HOME = "/home/ubuntu/work/spark-2.0.0-bin-hadoop2.7/" os.environ['SPARK_HOME'] = SPARK_HOME sys.path.append(SPARK_HOME + "/python") from pyspark import SparkContext from pyspark import SparkConf from pyspa...
[ 11748, 28686, 198, 11748, 25064, 198, 6738, 279, 893, 20928, 13, 25410, 13, 19199, 1330, 1635, 198, 34219, 796, 12813, 11195, 14, 32230, 14, 1818, 14, 4029, 12, 37540, 14, 2777, 668, 12, 4029, 14, 7890, 1, 198, 4303, 14175, 62, 39069,...
2.805882
170
""" """ from rest_framework import routers from safemasks.resources.rest.serializers import SupplierViewSet, TrustedSupplierViewSet # Routers provide an easy way of automatically determining the URL conf. ROUTER = routers.DefaultRouter() ROUTER.register(r"suppliers", SupplierViewSet, "suppliers") ROUTER.register(r"s...
[ 37811, 198, 37811, 198, 6738, 1334, 62, 30604, 1330, 41144, 198, 198, 6738, 1932, 368, 6791, 13, 37540, 13, 2118, 13, 46911, 11341, 1330, 8105, 2505, 7680, 7248, 11, 833, 8459, 15979, 2505, 7680, 7248, 628, 198, 2, 13876, 1010, 2148, ...
3.282051
117
############################################################################## # # Copyright (c) 2004-2008 Zope Foundation and Contributors. # All Rights Reserved. # # This software is subject to the provisions of the Zope Public License, # Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution. # THI...
[ 29113, 29113, 7804, 4242, 2235, 198, 2, 198, 2, 15069, 357, 66, 8, 5472, 12, 11528, 1168, 3008, 5693, 290, 25767, 669, 13, 198, 2, 1439, 6923, 33876, 13, 198, 2, 198, 2, 770, 3788, 318, 2426, 284, 262, 8617, 286, 262, 1168, 3008, ...
2.834325
1,177
# Generated by Django 2.2 on 2021-09-11 04:58 from django.db import migrations, models
[ 2, 2980, 515, 416, 37770, 362, 13, 17, 319, 33448, 12, 2931, 12, 1157, 8702, 25, 3365, 198, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 11, 4981, 628 ]
2.966667
30
"""The Stratified Space Geometry Package."""
[ 37811, 464, 29186, 1431, 4687, 2269, 15748, 15717, 526, 15931, 198 ]
4.090909
11
from django.core.management import BaseCommand import logging # These two lines enable debugging at httplib level (requests->urllib3->http.client) # You will see the REQUEST, including HEADERS and DATA, and RESPONSE with HEADERS but without DATA. # The only thing missing will be the response.body which is not logged. ...
[ 6738, 42625, 14208, 13, 7295, 13, 27604, 1330, 7308, 21575, 198, 11748, 18931, 198, 198, 2, 2312, 734, 3951, 7139, 28769, 379, 1841, 489, 571, 1241, 357, 8897, 3558, 3784, 333, 297, 571, 18, 3784, 4023, 13, 16366, 8, 198, 2, 921, 48...
3.389908
218
from functools import partial import os import pytest import dask import dask.array as da from dask.utils_test import inc from dask.highlevelgraph import HighLevelGraph, BasicLayer, Layer from dask.blockwise import Blockwise from dask.array.utils import assert_eq def annot_map_fn(key): return key[1:]
[ 6738, 1257, 310, 10141, 1330, 13027, 198, 11748, 28686, 198, 198, 11748, 12972, 9288, 198, 198, 11748, 288, 2093, 198, 11748, 288, 2093, 13, 18747, 355, 12379, 198, 6738, 288, 2093, 13, 26791, 62, 9288, 1330, 753, 198, 6738, 288, 2093, ...
3.148515
101
# Requires pip install bitarray from bitarray import bitarray import argparse, math if __name__ == '__main__': lArgParser = argparse.ArgumentParser(description='Transference: A tool to help visualize s-boxes (substitution boxes or transfer functions)') lArgParser.add_argument('-tft', '--transfer-function-t...
[ 2, 26848, 7347, 2721, 1643, 18747, 198, 6738, 1643, 18747, 1330, 1643, 18747, 198, 11748, 1822, 29572, 11, 10688, 628, 628, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 628, 220, 220, 220, 300, 28100, 46677, 796, 1822,...
3.168443
469
import pytest from aiospamc.client import Client from aiospamc.exceptions import ( BadResponse, UsageException, DataErrorException, NoInputException, NoUserException, NoHostException, UnavailableException, InternalSoftwareException, OSErrorException, OSFileException, CantCre...
[ 11748, 12972, 9288, 198, 198, 6738, 257, 72, 2117, 321, 66, 13, 16366, 1330, 20985, 198, 6738, 257, 72, 2117, 321, 66, 13, 1069, 11755, 1330, 357, 198, 220, 220, 220, 7772, 31077, 11, 198, 220, 220, 220, 29566, 16922, 11, 198, 220, ...
2.943299
194
import os import tempfile import importlib import pytest import astropy import astropy.config.paths # Force MPL to use non-gui backends for testing. try: import matplotlib except ImportError: pass else: matplotlib.use('Agg') # Don't actually import pytest_remotedata because that can do things to the # e...
[ 11748, 28686, 198, 11748, 20218, 7753, 198, 11748, 1330, 8019, 198, 198, 11748, 12972, 9288, 198, 198, 11748, 6468, 28338, 198, 11748, 6468, 28338, 13, 11250, 13, 6978, 82, 198, 198, 2, 5221, 4904, 43, 284, 779, 1729, 12, 48317, 736, ...
2.959627
322
''' Models for QtWidgets ''' from collections import deque from math import ceil import datetime as dt import calendar
[ 7061, 6, 198, 220, 220, 220, 32329, 329, 33734, 54, 312, 11407, 198, 7061, 6, 198, 6738, 17268, 1330, 390, 4188, 198, 6738, 10688, 1330, 2906, 346, 198, 11748, 4818, 8079, 355, 288, 83, 198, 11748, 11845, 628, 628, 198 ]
3.175
40
# # Copyright 2016 The BigDL Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in ...
[ 2, 198, 2, 15069, 1584, 383, 4403, 19260, 46665, 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...
3.39759
249
#!/usr/bin/env python3 import sys import getopt import xml.etree.ElementTree as ET if __name__ == "__main__": main(sys.argv[1:])
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 198, 11748, 25064, 198, 11748, 651, 8738, 198, 11748, 35555, 13, 316, 631, 13, 20180, 27660, 355, 12152, 628, 628, 628, 198, 361, 11593, 3672, 834, 6624, 366, 834, 12417, 834, 1298...
2.45614
57
#!/usr/bin/env python # -*- coding: utf-8 -*- # File : Ampel-core/ampel/cli/AbsStockCommand.py # License : BSD-3-Clause # Author : vb <vbrinnel@physik.hu-berlin.de> # Date : 25.03.2021 # Last Modified Date: 25.03.2021 # Last Modified By : vb <vbrinnel@physik.hu-berlin.de>...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 9220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1058, 1703, 30242, 12, 7295, 14, 696, 417...
2.799435
354
from typing import List if __name__ == "__main__": i = [ "Enter uid1234 Muzi", "Enter uid4567 Prodo", "Leave uid1234", "Enter uid1234 Prodo", "Change uid4567 Ryan", ] print(solution(i))
[ 6738, 19720, 1330, 7343, 628, 198, 198, 361, 11593, 3672, 834, 6624, 366, 834, 12417, 834, 1298, 198, 220, 220, 220, 1312, 796, 685, 198, 220, 220, 220, 220, 220, 220, 220, 366, 17469, 334, 312, 1065, 2682, 8252, 17027, 1600, 198, 2...
1.97541
122
""" Implementation of REST API for nets creation """ from flask import Blueprint, request from .utils import typename_to_type from .contexts import contexts nr = Blueprint('nets', __name__)
[ 37811, 198, 3546, 32851, 286, 30617, 7824, 329, 31720, 6282, 198, 37811, 198, 6738, 42903, 1330, 39932, 11, 2581, 198, 6738, 764, 26791, 1330, 2170, 12453, 62, 1462, 62, 4906, 198, 6738, 764, 22866, 82, 1330, 26307, 198, 198, 48624, 796...
3.82
50
# Copyright 2019 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, 13130, 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.37841
843
#!/usr/bin/env python # -*- coding: utf-8 -*- """Tests for charge.py""" from __future__ import print_function from __future__ import unicode_literals from __future__ import division import logging from rdkit import Chem from molvs.standardize import Standardizer, standardize_smiles from molvs.charge import Reionizer...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 51, 3558, 329, 3877, 13, 9078, 37811, 198, 198, 6738, 11593, 37443, 834, 1330, 3601, 62, 8818, 198, 6738, 11593,...
2.181536
2,578
from django.shortcuts import render from django.core import serializers from .models import User from django.forms.models import model_to_dict from rest_framework import status from rest_framework.response import Response from rest_framework.decorators import api_view, permission_classes from rest_framework.permissions...
[ 6738, 42625, 14208, 13, 19509, 23779, 1330, 8543, 198, 6738, 42625, 14208, 13, 7295, 1330, 11389, 11341, 198, 6738, 764, 27530, 1330, 11787, 198, 6738, 42625, 14208, 13, 23914, 13, 27530, 1330, 2746, 62, 1462, 62, 11600, 198, 6738, 1334, ...
3.575221
113
# -*- coding: utf-8 -*- from pytest import raises from astral import Astral, AstralError, Location import datetime import pytz
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 6738, 12972, 9288, 1330, 12073, 198, 198, 6738, 6468, 1373, 1330, 34496, 11, 34496, 12331, 11, 13397, 198, 11748, 4818, 8079, 198, 11748, 12972, 22877, 628, 628, 628, 628,...
2.924528
53