content
stringlengths
1
1.05M
input_ids
listlengths
1
883k
ratio_char_token
float64
1
22.9
token_count
int64
1
883k
import argparse, os
[ 11748, 1822, 29572, 11, 28686 ]
3.8
5
# -*- coding: utf-8 -*- """ Created on Thu Nov 28 12:10:11 2019 @author: Omer """ ## File handler ## This file was initially intended purely to generate the matrices for the near earth code found in: https://public.ccsds.org/Pubs/131x1o2e2s.pdf ## The values from the above pdf were copied manually to a txt file, and ...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 198, 41972, 319, 26223, 5267, 2579, 1105, 25, 940, 25, 1157, 13130, 198, 198, 31, 9800, 25, 440, 647, 198, 37811, 198, 198, 2235, 9220, 21360, 198, 2235, 770, 2...
2.557534
730
import logging import pytest from streamsets.testframework.markers import aws, sdc_min_version from streamsets.testframework.utils import get_random_string logger = logging.getLogger(__name__) S3_SANDBOX_PREFIX = 'sandbox' LOG_FIELD_MAPPING = [{'fieldPath': '/date', 'group': 1}, {'fieldPath': '/...
[ 11748, 18931, 198, 198, 11748, 12972, 9288, 198, 6738, 15190, 1039, 13, 9288, 30604, 13, 4102, 364, 1330, 3253, 82, 11, 264, 17896, 62, 1084, 62, 9641, 198, 6738, 15190, 1039, 13, 9288, 30604, 13, 26791, 1330, 651, 62, 25120, 62, 8841...
2.034051
3,113
""" Copyright 2019 Marco Lattuada Copyright 2019 Danilo Ardagna 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...
[ 37811, 198, 15269, 13130, 16556, 406, 1078, 84, 4763, 198, 15269, 13130, 6035, 18526, 34597, 48669, 198, 198, 26656, 15385, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 5832, 743, 407, 779, 428, 239...
3.797753
178
""" Created on 12 May 2017 @author: Bruno Beloff (bruno.beloff@southcoastscience.com) """ from scs_host.sys.host_gpio import HostGPIO # -------------------------------------------------------------------------------------------------------------------- # noinspection PyUnusedLocal,PyAbstractClass
[ 37811, 198, 41972, 319, 1105, 1737, 2177, 198, 198, 31, 9800, 25, 31045, 3944, 2364, 357, 1671, 36909, 13, 6667, 2364, 31, 35782, 1073, 5773, 4234, 13, 785, 8, 198, 37811, 198, 198, 6738, 629, 82, 62, 4774, 13, 17597, 13, 4774, 62, ...
4.342857
70
#!/usr/bin/env python # coding: utf-8 from __future__ import print_function from __future__ import division from __future__ import absolute_import from __future__ import unicode_literals # Command line : # python -m benchmark.VAR.GG.TP import os import logging from config import SEED from config import _ERROR from co...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 19617, 25, 3384, 69, 12, 23, 198, 6738, 11593, 37443, 834, 1330, 3601, 62, 8818, 198, 6738, 11593, 37443, 834, 1330, 7297, 198, 6738, 11593, 37443, 834, 1330, 4112, 62, 11748, 198, ...
3.532067
421
import unittest from ..adl import ADL import six if six.PY3: from unittest.mock import Mock, MagicMock else: from mock import Mock, MagicMock
[ 11748, 555, 715, 395, 198, 6738, 11485, 324, 75, 1330, 5984, 43, 198, 11748, 2237, 198, 198, 361, 2237, 13, 47, 56, 18, 25, 198, 220, 220, 220, 422, 555, 715, 395, 13, 76, 735, 1330, 44123, 11, 6139, 44, 735, 198, 17772, 25, 198...
2.666667
57
from django.views.generic import CreateView from django.urls import reverse_lazy from .forms import CustomUserCreationForm
[ 6738, 42625, 14208, 13, 33571, 13, 41357, 1330, 13610, 7680, 198, 6738, 42625, 14208, 13, 6371, 82, 1330, 9575, 62, 75, 12582, 198, 6738, 764, 23914, 1330, 8562, 12982, 12443, 341, 8479, 198 ]
3.727273
33
try: from typing import * # noqa: F401, F403 except ImportError: from .typing_stubs import * # type: ignore # noqa: F401, F403
[ 28311, 25, 198, 220, 220, 220, 422, 19720, 1330, 1635, 220, 1303, 645, 20402, 25, 376, 21844, 11, 376, 31552, 198, 16341, 17267, 12331, 25, 198, 220, 220, 220, 422, 764, 774, 13886, 62, 301, 23161, 1330, 1635, 220, 1303, 2099, 25, 8...
2.584906
53
import torch import torch.nn as nn
[ 11748, 28034, 198, 11748, 28034, 13, 20471, 355, 299, 77, 628 ]
3.272727
11
""" PDF Version: 0.1 Author: BDFD Date: 2018-03-26 """ from PyPDF2 import PdfFileReader with open('./res/Python.pdf', 'rb') as f: reader = PdfFileReader(f, strict=False) print(reader.numPages) if reader.isEncrypted: reader.decrypt('') current_page = reader.getPage(5) print(current_page) ...
[ 37811, 198, 20456, 198, 198, 14815, 25, 657, 13, 16, 198, 13838, 25, 347, 8068, 35, 198, 10430, 25, 2864, 12, 3070, 12, 2075, 198, 37811, 198, 198, 6738, 9485, 20456, 17, 1330, 350, 7568, 8979, 33634, 198, 198, 4480, 1280, 7, 4458, ...
2.38
150
#!/usr/bin/env python3 # -*- coding: utf-8 -*- __author__ = 'ipetrash' from PyQt5 import QtWidgets as qtw from PyQt5.QtTest import QTest import time import requests from bs4 import BeautifulSoup from console import get_inherited_children, ROOT_URL if __name__ == '__main__': app = qtw.QApplication([]) w...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 834, 9800, 834, 796, 705, 541, 21879, 1077, 6, 628, 198, 6738, 9485, 48, 83, 20, 1330, 33734, 54, 312, 114...
2.394118
170
#!/usr/bin/env python3 # encoding=utf8 # IBM_PROLOG_BEGIN_TAG # This is an automatically generated prolog. # # $Source: op-test-framework/common/OpTestASM.py $ # # OpenPOWER Automated Test Project # # Contributors Listed Below - COPYRIGHT 2017 # [+] International Business Machines Corp. # # # Licensed under the Apache ...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 2, 21004, 28, 40477, 23, 198, 2, 19764, 62, 4805, 33462, 62, 33, 43312, 62, 42197, 198, 2, 770, 318, 281, 6338, 7560, 386, 6404, 13, 198, 2, 198, 2, 720, 7416, 25, 1034, 12, ...
3.589552
402
#!/usr/bin/python3.4 __author__ = "Jeremy Rabasco" import sys import os sys.path.append("..") import unittest from modules import storage from modules.service import Service from modules.database import Database if __name__ == "__main__": unittest.main()
[ 2, 48443, 14629, 14, 8800, 14, 29412, 18, 13, 19, 198, 834, 9800, 834, 796, 366, 35623, 28559, 292, 1073, 1, 198, 198, 11748, 25064, 198, 11748, 28686, 198, 17597, 13, 6978, 13, 33295, 7203, 492, 4943, 198, 11748, 555, 715, 395, 198...
3.144578
83
# Copyright: (c) 2012, Michael DeHaan <michael.dehaan@gmail.com> # Copyright: (c) 2012-17, Ansible Project # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import (absolute_import, division, print_function) __metaclass__ = type DOCUMENTATION = """ lookup...
[ 2, 15069, 25, 357, 66, 8, 2321, 11, 3899, 1024, 23303, 272, 1279, 76, 40302, 13, 2934, 3099, 272, 31, 14816, 13, 785, 29, 198, 2, 15069, 25, 357, 66, 8, 2321, 12, 1558, 11, 28038, 856, 4935, 198, 2, 22961, 3611, 5094, 13789, 410...
2.902439
656
from setuptools import setup, find_packages from os.path import join, dirname setup( name="fant_sizer", version="0.7", author="Rypiuk Oleksandr", author_email="ripiuk96@gmail.com", description="fant_sizer command-line file-information", url="https://github.com/ripiuk/fan...
[ 6738, 900, 37623, 10141, 1330, 9058, 11, 1064, 62, 43789, 198, 6738, 28686, 13, 6978, 1330, 4654, 11, 26672, 3672, 198, 198, 40406, 7, 198, 220, 220, 220, 220, 220, 220, 220, 1438, 2625, 69, 415, 62, 82, 7509, 1600, 198, 220, 220, ...
2.223124
493
if __name__ == '__main__': T = int(input()) for t in range(T): print('Case #{}: {}'.format(t+1, solve()))
[ 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 198, 220, 220, 220, 309, 796, 493, 7, 15414, 28955, 198, 220, 220, 220, 329, 256, 287, 2837, 7, 51, 2599, 198, 220, 220, 220, 220, 220, 220, 220, 3601, 10786, 20448, 1...
1.984848
66
#!/usr/bin/env python # Licensed to Cloudera, Inc. under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. Cloudera, Inc. licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you ma...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 49962, 284, 1012, 280, 1082, 64, 11, 3457, 13, 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...
3.516216
370
import torch.nn as nn import torch.optim as optim import torch.utils.data from Training import functions from Training.imresize import imresize import matplotlib.pyplot as plt from Models.pix2pixHD_base import GANLoss, VGGLoss from Models.pix2pixHD2 import mask2onehot def train_single_scale(dataloader, netD, netG, n...
[ 11748, 28034, 13, 20471, 355, 299, 77, 198, 11748, 28034, 13, 40085, 355, 6436, 198, 11748, 28034, 13, 26791, 13, 7890, 198, 6738, 13614, 1330, 5499, 198, 6738, 13614, 13, 320, 411, 1096, 1330, 545, 411, 1096, 198, 11748, 2603, 29487, ...
1.912862
6,461
# 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,...
3.879464
224
import requests from sense_hat import SenseHat import smbus import time while True: try: pressure=0 sense = SenseHat() pressure = sense.get_pressure() data = {'pressure':pressure} print(pressure) #send http request to sense serverless function with pressure #data r=req...
[ 11748, 7007, 220, 198, 6738, 2565, 62, 5183, 1330, 24956, 40483, 198, 11748, 895, 10885, 198, 11748, 640, 198, 198, 4514, 6407, 25, 198, 220, 220, 220, 1949, 25, 198, 220, 220, 220, 220, 220, 220, 220, 3833, 28, 15, 198, 197, 33819,...
2.505102
196
#!/usr/bin/env python3 # Space Invadersishkebab. from trabant import * # ASCII geometries. shipascii = r''' /\ /XXXXXXXX\ v v ''' invader = r''' /XXXXXX\ /XXXXXXXX\ XXXXXXXXXX XX XX XX \XXXXXXXX/ /XX XX\ /X/ \/ \X\ X/ \X ''' cam(distance=250) gravity((0,0,0)) ship = create_ascii_object(...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 2, 4687, 41671, 680, 365, 65, 397, 13, 198, 198, 6738, 491, 397, 415, 1330, 1635, 198, 198, 2, 37101, 4903, 908, 1678, 13, 198, 6720, 292, 979, 72, 796, 374, 7061, 6, 198, 22...
2.090287
731
import math import torch import torch.nn as nn import torch.nn.functional as F import torch.utils.model_zoo as model_zoo from model.sync_batchnorm.batchnorm import SynchronizedBatchNorm2d if __name__ == "__main__": import torch model = AlignedXception(BatchNorm=nn.BatchNorm2d, pretrained=True, output_stri...
[ 11748, 10688, 198, 11748, 28034, 198, 11748, 28034, 13, 20471, 355, 299, 77, 198, 11748, 28034, 13, 20471, 13, 45124, 355, 376, 198, 11748, 28034, 13, 26791, 13, 19849, 62, 89, 2238, 355, 2746, 62, 89, 2238, 198, 6738, 2746, 13, 27261...
2.735294
170
from sendgrid import SendGridAPIClient from sendgrid.helpers.mail import Mail, Substitution API_KEY = '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' API_KEY_ID = 'egd1yywWRbeVF2gcGhTH2Q' ENCODING = "utf-8" DEFAULT_MAIL="irinam.bejan@gmail.com"
[ 6738, 3758, 25928, 1330, 16290, 41339, 2969, 2149, 75, 1153, 198, 6738, 3758, 25928, 13, 16794, 364, 13, 4529, 1330, 11099, 11, 24944, 2738, 198, 198, 17614, 62, 20373, 796, 705, 38475, 13, 1533, 67, 16, 22556, 86, 18564, 1350, 53, 37...
2.067669
133
# -*- coding: utf-8 -*- # yellowbrick.features.pca # Decomposition based feature visualization with PCA. # # Author: Carlo Morales # Author: Ral Peralta Lozada # Author: Benjamin Bengfort # Created: Tue May 23 18:34:27 2017 -0400 # # Copyright (C) 2017 The scikit-yb developers # For license information, see LICE...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 7872, 1671, 624, 13, 40890, 13, 79, 6888, 198, 2, 4280, 296, 9150, 1912, 3895, 32704, 351, 4217, 32, 13, 198, 2, 198, 2, 6434, 25, 220, 220, 40089, 36588, 198, ...
2.450707
5,873
# Copyright (c) 2020 Xiaomi Corporation (author: Haowen Qiu) # See ../../../LICENSE for clarification regarding multiple authors import torch from torch.utils.dlpack import to_dlpack from .fsa import Fsa from _k2host import _is_valid from _k2host import _is_top_sorted from _k2host import _is_arc_sorted from _k2hos...
[ 2, 15069, 357, 66, 8, 220, 12131, 220, 46726, 10501, 357, 9800, 25, 9398, 322, 268, 1195, 16115, 8, 198, 198, 2, 4091, 11485, 14, 40720, 40720, 43, 2149, 24290, 329, 31321, 5115, 3294, 7035, 198, 198, 11748, 28034, 198, 6738, 28034, ...
2.884615
182
from .base import TelegramStructure, Field
[ 6738, 764, 8692, 1330, 50203, 1273, 5620, 11, 7663, 628 ]
4.4
10
# Copyright 2013-2020 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack import *
[ 2, 15069, 2211, 12, 42334, 13914, 45036, 3549, 2351, 4765, 11, 11419, 290, 584, 198, 2, 1338, 441, 4935, 34152, 13, 4091, 262, 1353, 12, 5715, 27975, 38162, 9947, 2393, 329, 3307, 13, 198, 2, 198, 2, 30628, 55, 12, 34156, 12, 33234,...
3.47619
63
from re import S import select import socket import queue import threading import sys import pickle import base64 import os from cryptography.hazmat.backends import default_backend from cryptography.hazmat.primitives.ciphers.aead import AESGCM from cryptography.hazmat.primitives.serialization import load_ssh_public_key...
[ 6738, 302, 1330, 311, 198, 11748, 2922, 198, 11748, 17802, 198, 11748, 16834, 198, 11748, 4704, 278, 198, 11748, 25064, 198, 11748, 2298, 293, 198, 11748, 2779, 2414, 198, 11748, 28686, 198, 6738, 45898, 13, 71, 1031, 6759, 13, 1891, 24...
3.719178
146
""" """ # Created on 2015.08.19 # # Author: Giovanni Cannata # # Copyright 2015 - 2018 Giovanni Cannata # # This file is part of ldap3. # # ldap3 is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License as published # by the Free Software Founda...
[ 37811, 201, 198, 37811, 201, 198, 201, 198, 2, 15622, 319, 1853, 13, 2919, 13, 1129, 201, 198, 2, 201, 198, 2, 6434, 25, 50191, 12283, 1045, 201, 198, 2, 201, 198, 2, 15069, 1853, 532, 2864, 50191, 12283, 1045, 201, 198, 2, 201, ...
2.634874
1,709
import copy from contextlib import contextmanager from functools import wraps from collections import defaultdict import tensorflow as tf _ArgScopeStack = [] def get_arg_scope(): """ Returns: dict: the current argscope. An argscope is a dict of dict: ``dict[layername] = {arg: val}`` """ ...
[ 11748, 4866, 198, 6738, 4732, 8019, 1330, 4732, 37153, 198, 6738, 1257, 310, 10141, 1330, 27521, 198, 6738, 17268, 1330, 4277, 11600, 198, 11748, 11192, 273, 11125, 355, 48700, 198, 198, 62, 28100, 43642, 25896, 796, 17635, 628, 198, 198,...
2.607748
413
import textfsm import subprocess import random res = subprocess.run('ifconfig',stdout=subprocess.PIPE) intstatus = res.stdout.decode('ascii') with open("datafile","w+") as a: a.write(intstatus) a.close() template_file= "ifconfig-template.template" template = open(template_file) with open("datafile") as ...
[ 11748, 2420, 69, 5796, 198, 11748, 850, 14681, 198, 11748, 4738, 628, 198, 411, 796, 850, 14681, 13, 5143, 10786, 361, 11250, 3256, 19282, 448, 28, 7266, 14681, 13, 47, 4061, 36, 8, 198, 600, 13376, 796, 581, 13, 19282, 448, 13, 125...
2.35625
320
import pygame
[ 11748, 12972, 6057, 201, 198, 201 ]
2.666667
6
"""A file containing representations of install configurations. The core Data representation for installSynApps. An InstallConfiguration object is parsed from a configuration, and is then used throughout the build process. InjectorFile objects are used for representing text that need to be injected into configuration...
[ 37811, 32, 2393, 7268, 24612, 286, 2721, 25412, 13, 198, 198, 464, 4755, 6060, 10552, 329, 2721, 29934, 48433, 13, 1052, 15545, 38149, 2134, 198, 271, 44267, 422, 257, 8398, 11, 290, 318, 788, 973, 3690, 262, 1382, 1429, 13, 198, 198,...
1.980126
3,321
# Create your views here. # -*- coding: utf-8 -*- from apps.core.helpers import render_to, ajax_response, get_object_or_None from apps.core.decorators import lock, login_required_json from apps.accounts.models import Invite from apps.accounts.decorators import check_invite from apps.accounts.forms import ( LoginFor...
[ 2, 13610, 534, 5009, 994, 13, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 6738, 6725, 13, 7295, 13, 16794, 364, 1330, 8543, 62, 1462, 11, 257, 73, 897, 62, 26209, 11, 651, 62, 15252, 62, 273, 62, 14202, ...
3.30137
219
#!/usr/bin/python # Copyright (c) 2020, 2022 Oracle and/or its affiliates. # This software is made available to you under the terms of the GPL 3.0 license or the Apache 2.0 license. # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) # Apache License v2.0 # See LICENSE.TXT for d...
[ 2, 48443, 14629, 14, 8800, 14, 29412, 198, 2, 15069, 357, 66, 8, 12131, 11, 33160, 18650, 290, 14, 273, 663, 29116, 13, 198, 2, 770, 3788, 318, 925, 1695, 284, 345, 739, 262, 2846, 286, 262, 38644, 513, 13, 15, 5964, 393, 262, 2...
2.094448
4,881
from django.apps import AppConfig
[ 6738, 42625, 14208, 13, 18211, 1330, 2034, 16934, 628 ]
3.888889
9
from __future__ import absolute_import, unicode_literals import os from django import VERSION as DJANGO_VERSION from django.utils.translation import ugettext_lazy as _ SECRET_KEY = '%29hnw7d-dy4n)!@1yi#ov#^@x0b=o*2o8^31oe!+(xw!!oc9a' ###################### # CARTRIDGE SETTINGS # ###################### # The follow...
[ 198, 6738, 11593, 37443, 834, 1330, 4112, 62, 11748, 11, 28000, 1098, 62, 17201, 874, 198, 11748, 28686, 198, 198, 6738, 42625, 14208, 1330, 44156, 2849, 355, 13004, 1565, 11230, 62, 43717, 198, 6738, 42625, 14208, 13, 26791, 13, 41519, ...
2.842095
5,079
from wordgen import consts import numpy as np from sklearn import preprocessing if __name__ == '__main__': print(fill_matrix("james as"))
[ 6738, 1573, 5235, 1330, 1500, 82, 198, 11748, 299, 32152, 355, 45941, 198, 6738, 1341, 35720, 1330, 662, 36948, 628, 198, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 198, 220, 220, 220, 3601, 7, 20797, 62, 6759, 860...
3.020833
48
from ctypes import c_int, c_char_p, cast, c_float from collections import deque import logging import weakref from typing import Any, Dict, List, Tuple, Union, Sequence, Set import pyglet from pyglet.window import Window from pyglet import gl from .buffer import Buffer from .program import Program from .vertex_array ...
[ 6738, 269, 19199, 1330, 269, 62, 600, 11, 269, 62, 10641, 62, 79, 11, 3350, 11, 269, 62, 22468, 198, 6738, 17268, 1330, 390, 4188, 198, 11748, 18931, 198, 11748, 4939, 5420, 198, 6738, 19720, 1330, 4377, 11, 360, 713, 11, 7343, 11, ...
2.214806
4,390
'''Copyright 2018 Province of British Columbia 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,...
[ 7061, 6, 15269, 2864, 22783, 286, 3517, 9309, 198, 198, 26656, 15385, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 5832, 743, 407, 779, 428, 2393, 2845, 287, 11846, 351, 262, 13789, 13, 198, 1639,...
4.006329
158
# -*- encoding: utf-8 -*- from datetime import datetime from functools import partial from django import get_version from datatableview import helpers import six from .testcase import DatatableViewTestCase from .test_app.models import ExampleModel, RelatedM2MModel if get_version().split('.') < ['1', '7']: tes...
[ 2, 532, 9, 12, 21004, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 6738, 4818, 8079, 1330, 4818, 8079, 198, 6738, 1257, 310, 10141, 1330, 13027, 198, 198, 6738, 42625, 14208, 1330, 651, 62, 9641, 198, 198, 6738, 4818, 21156, 1177, ...
2.921429
140
import traceback from os import getenv import discord from discord import Message from discord.ext import commands from discord.ext.commands import Context from asyncio import sleep import asyncio client = discord.Client() # bot! bot = commands.Bot(command_prefix='!') # ID GIRATINA_CHANNEL_ID = 940610524415144036 WI...
[ 11748, 12854, 1891, 198, 6738, 28686, 1330, 651, 24330, 198, 11748, 36446, 198, 6738, 36446, 1330, 16000, 198, 6738, 36446, 13, 2302, 1330, 9729, 198, 6738, 36446, 13, 2302, 13, 9503, 1746, 1330, 30532, 198, 6738, 30351, 952, 1330, 3993, ...
2.516908
207
#!/usr/bin/env python2.7 # Copyright 2015 gRPC 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 la...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 17, 13, 22, 198, 2, 15069, 1853, 308, 49, 5662, 7035, 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, 7...
3.469231
390
# -*- coding: utf-8 -*- """ Showcases *ICTCP* *colour encoding* computations. """ import numpy as np import colour from colour.utilities import message_box message_box('"ICTCP" Colour Encoding Computations') RGB = np.array([0.45620519, 0.03081071, 0.04091952]) message_box(('Converting from "ITU-R BT.2020" colourspa...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 198, 15307, 33964, 1635, 2149, 4825, 47, 9, 1635, 49903, 21004, 9, 2653, 602, 13, 198, 37811, 198, 198, 11748, 299, 32152, 355, 45941, 198, 198, 11748, 9568, 198,...
2.220183
327
import os import uuid from django.conf import settings # this is how we can retrive variables # for the settings file from django.contrib.auth.models import (AbstractBaseUser, BaseUserManager, PermissionsMixin) from django.core.validators import MaxValueValidator, MinValueVali...
[ 198, 11748, 28686, 198, 11748, 334, 27112, 198, 198, 6738, 42625, 14208, 13, 10414, 1330, 6460, 220, 1303, 428, 318, 703, 356, 460, 1005, 11590, 9633, 198, 2, 329, 262, 6460, 2393, 198, 6738, 42625, 14208, 13, 3642, 822, 13, 18439, 13...
3.39819
221
""" This is a demonstration script for using the Transect class in the COAsT package. This object has strict data formatting requirements, which are outlined in tranect.py. Transect subsetting (a vertical slice of data between two coordinates): Creating them and performing some custom diagnostics with them. --- In ...
[ 37811, 198, 1212, 318, 257, 13646, 4226, 329, 1262, 262, 833, 272, 8831, 1398, 287, 262, 7375, 1722, 51, 198, 26495, 13, 770, 2134, 468, 7646, 1366, 33313, 5359, 11, 543, 389, 198, 448, 10837, 287, 491, 272, 478, 13, 9078, 13, 628, ...
2.847212
1,309
""" Boolean algebra module for Diofant. """ from collections import defaultdict from itertools import combinations, product from ..core import Atom, cacheit from ..core.expr import Expr from ..core.function import Application from ..core.numbers import Number from ..core.operations import LatticeOp from ..core.single...
[ 37811, 198, 46120, 13087, 37139, 8265, 329, 360, 952, 69, 415, 13, 198, 37811, 198, 198, 6738, 17268, 1330, 4277, 11600, 198, 6738, 340, 861, 10141, 1330, 17790, 11, 1720, 198, 198, 6738, 11485, 7295, 1330, 33102, 11, 12940, 270, 198, ...
2.289587
9,296
import pandas as pd import requests from lxml import etree import re, time, random, datetime from queue import Queue import threading if __name__ == '__main__': data = r"../data/category/Kid's Weighted Blankets_08_28_13_22.xlsx" review = Review(domain='com') review.run(data=data)
[ 11748, 19798, 292, 355, 279, 67, 198, 11748, 7007, 198, 6738, 300, 19875, 1330, 2123, 631, 198, 11748, 302, 11, 640, 11, 4738, 11, 4818, 8079, 198, 6738, 16834, 1330, 4670, 518, 198, 11748, 4704, 278, 628, 198, 198, 361, 11593, 3672, ...
2.801887
106
import pytest import numpy as np from pathlib import Path
[ 11748, 12972, 9288, 198, 11748, 299, 32152, 355, 45941, 198, 6738, 3108, 8019, 1330, 10644, 628, 628 ]
3.588235
17
#!/usr/bin/env python """ Artesanal example Pipe without Pipe class. """ __author__ = "Rafael Garca Cullar" __email__ = "r.gc@hotmail.es" __copyright__ = "Copyright (c) 2018 Rafael Garca Cullar" __license__ = "MIT" from concurrent.futures import ProcessPoolExecutor import time import random if __name__ == "__ma...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 198, 37811, 198, 220, 220, 220, 3683, 42890, 282, 1672, 36039, 1231, 36039, 1398, 13, 198, 37811, 198, 198, 834, 9800, 834, 796, 366, 49, 1878, 3010, 16364, 64, 31289, 283, 1, 198, 8...
2.593625
251
""" Main application entry point. python -m digibujogens ... """ def main(): """ Execute the application. """ raise NotImplementedError # Make the script executable. if __name__ == "__main__": raise SystemExit(main())
[ 37811, 8774, 3586, 5726, 966, 13, 628, 220, 220, 220, 21015, 532, 76, 3100, 571, 23577, 26612, 220, 2644, 198, 198, 37811, 198, 4299, 1388, 33529, 198, 220, 220, 220, 37227, 8393, 1133, 262, 3586, 13, 628, 220, 220, 220, 37227, 198, ...
2.987805
82
# SPDX-License-Identifier: Apache-2.0 # # Copyright (C) 2018, ARM Limited and contributors. # # 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 # # ...
[ 2, 30628, 55, 12, 34156, 12, 33234, 7483, 25, 24843, 12, 17, 13, 15, 198, 2, 198, 2, 15069, 357, 34, 8, 2864, 11, 20359, 15302, 290, 20420, 13, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, ...
2.374068
3,486
import filters as f from iota import TransactionHash, Address from iota.commands import FilterCommand, RequestFilter, ResponseFilter from iota.filters import Trytes __all__ = [ 'GetNodeInfoCommand', ]
[ 11748, 16628, 355, 277, 198, 198, 6738, 1312, 4265, 1330, 45389, 26257, 11, 17917, 198, 6738, 1312, 4265, 13, 9503, 1746, 1330, 25853, 21575, 11, 19390, 22417, 11, 18261, 22417, 198, 6738, 1312, 4265, 13, 10379, 1010, 1330, 9993, 4879, ...
3.442623
61
from Negocio import controller import forms, functions from flask import Flask, render_template, request, redirect, url_for, flash
[ 6738, 13496, 420, 952, 1330, 10444, 198, 11748, 5107, 11, 5499, 198, 6738, 42903, 1330, 46947, 11, 8543, 62, 28243, 11, 2581, 11, 18941, 11, 19016, 62, 1640, 11, 7644, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220 ]
3.439024
41
from evalme.matcher import Matcher
[ 6738, 5418, 1326, 13, 6759, 2044, 1330, 6550, 2044, 628, 628 ]
3.454545
11
# -*- coding: UTF-8 -*- """ This module provides Runner class to run behave feature files (or model elements). """ from __future__ import absolute_import, print_function, with_statement import contextlib import os.path import sys import warnings import weakref import six from behave._types import ExceptionUtil from...
[ 2, 532, 9, 12, 19617, 25, 41002, 12, 23, 532, 9, 12, 198, 37811, 198, 1212, 8265, 3769, 21529, 1398, 284, 1057, 17438, 3895, 3696, 357, 273, 2746, 4847, 737, 198, 37811, 198, 198, 6738, 11593, 37443, 834, 1330, 4112, 62, 11748, 11, ...
2.384081
3,166
add_library('pdf') import random from datetime import datetime tileCount = 20
[ 2860, 62, 32016, 10786, 12315, 11537, 198, 11748, 4738, 198, 6738, 4818, 8079, 1330, 4818, 8079, 628, 198, 40927, 12332, 796, 1160, 628 ]
3.521739
23
import enum from dataclasses import dataclass, field from itertools import chain, islice from mashumaro import DataClassMessagePackMixin from multiprocessing.synchronize import Lock from typing import ( Dict, List, Optional, Union, Mapping, MutableMapping, Any, Set, Tuple, TypeVar, Callable, Iterable, Generic, ...
[ 11748, 33829, 198, 6738, 4818, 330, 28958, 1330, 4818, 330, 31172, 11, 2214, 198, 6738, 340, 861, 10141, 1330, 6333, 11, 318, 75, 501, 198, 6738, 30407, 388, 12022, 1330, 6060, 9487, 12837, 11869, 35608, 259, 198, 6738, 18540, 305, 919,...
2.779987
1,559
""" Copyright (c) 2022 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 IS PROVIDED ON AN "AS IS" BASIS, W...
[ 37811, 198, 15269, 357, 66, 8, 33160, 43208, 21852, 1766, 1539, 43, 8671, 13, 198, 198, 9654, 35389, 1046, 318, 11971, 739, 17996, 272, 6599, 43, 410, 17, 13, 198, 1639, 460, 779, 428, 3788, 1864, 284, 262, 2846, 290, 3403, 286, 262...
2.59188
468
# File: infrastructure_service.py # # Licensed under Apache 2.0 (https://www.apache.org/licenses/LICENSE-2.0.txt) # from .ds_base_service import DSBaseService from .ds_find_service import DSFindService from ..model.infrastructure import Infrastructure
[ 2, 9220, 25, 6884, 62, 15271, 13, 9078, 198, 2, 198, 2, 49962, 739, 24843, 362, 13, 15, 357, 5450, 1378, 2503, 13, 43073, 13, 2398, 14, 677, 4541, 14, 43, 2149, 24290, 12, 17, 13, 15, 13, 14116, 8, 198, 2, 198, 198, 6738, 764,...
3.269231
78
import argparse from collections import defaultdict import csv from dataclasses import dataclass, field from enum import Enum, unique, auto import os import sys import tempfile import yaml import zipfile import gffutils from google.protobuf import json_format from ncbi.datasets.v1alpha1 import dataset_catalog_pb2 from...
[ 11748, 1822, 29572, 198, 6738, 17268, 1330, 4277, 11600, 198, 11748, 269, 21370, 198, 6738, 4818, 330, 28958, 1330, 4818, 330, 31172, 11, 2214, 198, 6738, 33829, 1330, 2039, 388, 11, 3748, 11, 8295, 198, 11748, 28686, 198, 11748, 25064, ...
3.123457
162
from django.db import models from multigtfs.models import ( Block, Fare, FareRule, Feed, Frequency, Route, Service, ServiceDate, Shape, ShapePoint, Stop, StopTime, Trip, Agency)
[ 6738, 42625, 14208, 13, 9945, 1330, 4981, 198, 198, 6738, 1963, 328, 83, 9501, 13, 27530, 1330, 357, 198, 220, 220, 220, 9726, 11, 35205, 11, 35205, 31929, 11, 18272, 11, 31902, 11, 18956, 11, 4809, 11, 4809, 10430, 11, 25959, 11, 1...
3.169492
59
try: from public_config import * except ImportError: pass PORT = 9028 SERVICE_NAME = 'interface'
[ 28311, 25, 198, 220, 220, 220, 422, 1171, 62, 11250, 1330, 1635, 198, 16341, 17267, 12331, 25, 198, 220, 220, 220, 1208, 198, 198, 15490, 796, 4101, 2078, 198, 35009, 27389, 62, 20608, 796, 705, 39994, 6, 198 ]
2.789474
38
from django.utils.decorators import method_decorator from django.views.decorators.cache import cache_page from rest_framework.generics import ( ListAPIView, RetrieveAPIView, CreateAPIView, UpdateAPIView, DestroyAPIView ) from .models import Pokemon from .serializers import PokemonSerializer from .fi...
[ 6738, 42625, 14208, 13, 26791, 13, 12501, 273, 2024, 1330, 2446, 62, 12501, 273, 1352, 198, 6738, 42625, 14208, 13, 33571, 13, 12501, 273, 2024, 13, 23870, 1330, 12940, 62, 7700, 198, 6738, 1334, 62, 30604, 13, 8612, 873, 1330, 357, 1...
3.105691
123
from __future__ import (absolute_import, division, print_function) __metaclass__ = type from ansible.errors import AnsibleOptionsError from ansible.module_utils.six import iteritems, string_types from ansible_collections.smabot.base.plugins.module_utils.plugins.config_normalizing.base import ConfigNormalizerBaseMer...
[ 198, 6738, 11593, 37443, 834, 1330, 357, 48546, 62, 11748, 11, 7297, 11, 3601, 62, 8818, 8, 198, 834, 4164, 330, 31172, 834, 796, 2099, 628, 198, 6738, 9093, 856, 13, 48277, 1330, 28038, 856, 29046, 12331, 198, 6738, 9093, 856, 13, ...
2.755263
380
""" Tools de integrao com o Dynamodb """ import boto3 import botocore import logging import datetime import json import copy import time import os
[ 37811, 198, 33637, 390, 4132, 430, 78, 401, 267, 14970, 375, 65, 198, 37811, 198, 11748, 275, 2069, 18, 198, 11748, 10214, 420, 382, 198, 11748, 18931, 198, 11748, 4818, 8079, 198, 11748, 33918, 198, 11748, 4866, 198, 11748, 640, 198, ...
3.311111
45
# -*- coding: utf-8 -*- from scrapy import Request from scrapy_ddiy.utils.spiders.ddiy_base import DdiyBaseSpider
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 6738, 15881, 88, 1330, 19390, 198, 198, 6738, 15881, 88, 62, 1860, 7745, 13, 26791, 13, 2777, 4157, 13, 1860, 7745, 62, 8692, 1330, 360, 67, 7745, 14881, 41294, 628 ]
2.636364
44
# # Copyright 2017 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writin...
[ 2, 198, 2, 15069, 2177, 3012, 3457, 13, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 2, 345, 743, 407, 779, 428, 2393, 2845, 287, 11846, 351, 262, 13789, 13, 198, 2, 9...
2.831492
1,810
import os import datetime, time import imageio from pygifsicle import optimize from torch.utils.tensorboard import SummaryWriter
[ 11748, 28686, 198, 11748, 4818, 8079, 11, 640, 198, 198, 11748, 2939, 952, 198, 6738, 12972, 27908, 82, 1548, 1330, 27183, 198, 6738, 28034, 13, 26791, 13, 83, 22854, 3526, 1330, 21293, 34379, 628 ]
3.852941
34
#!/usr/bin/env python # -*- coding: utf-8 -*- # Copyright(c) 2019 Nippon Telegraph and Telephone Corporation # Filename: ASRDriverParts/UNIInterface.py ''' Parts Module for ASR driver UNI interface configuraton ''' import GlobalModule from EmCommonLog import decorater_log from ASRDriverParts.InterfaceBase im...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 201, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 201, 198, 2, 15069, 7, 66, 8, 13130, 399, 3974, 261, 21821, 290, 44735, 10501, 201, 198, 2, 7066, 12453, 25, 7054, ...
3.081081
111
""" Copyright (c) 2019 Intel Corporation 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, 357, 66, 8, 13130, 8180, 10501, 198, 198, 26656, 15385, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 5832, 743, 407, 779, 428, 2393, 2845, 287, 11846, 351, 262, 13789, 13, 198, ...
3.762712
236
"""\ Dialog to show details of internal errors. @copyright: 2014-2016 Carsten Grohmann @copyright: 2017 Dietmar Schwertberger @license: MIT (see LICENSE.txt) - THIS PROGRAM COMES WITH NO WARRANTY """ import bugdialog_ui import config import log import logging import sys import wx def Show(msg, exc): """Wrappe...
[ 37811, 59, 198, 44204, 284, 905, 3307, 286, 5387, 8563, 13, 198, 198, 31, 22163, 4766, 25, 1946, 12, 5304, 1879, 26400, 10299, 71, 9038, 198, 31, 22163, 4766, 25, 2177, 16292, 3876, 20469, 861, 21041, 198, 31, 43085, 25, 17168, 357, ...
2.828526
624
from django.shortcuts import render, redirect from django.conf import settings from django.core.files.storage import FileSystemStorage,default_storage from django.core.mail import send_mail, EmailMessage from core.models import Document from core.forms import DocumentForm from django.contrib import messages import os...
[ 6738, 42625, 14208, 13, 19509, 23779, 1330, 8543, 11, 18941, 198, 6738, 42625, 14208, 13, 10414, 1330, 6460, 198, 6738, 42625, 14208, 13, 7295, 13, 16624, 13, 35350, 1330, 9220, 11964, 31425, 11, 12286, 62, 35350, 198, 6738, 42625, 14208,...
2.395586
589
__version__ = '0.0.58.2'
[ 834, 9641, 834, 796, 705, 15, 13, 15, 13, 3365, 13, 17, 6, 198 ]
1.785714
14
''' Made by - Aditya mangal Purpose - Python mini project Date - 18 october 2020 ''' from chatterbot import ChatBot from chatterbot.trainers import ChatterBotCorpusTrainer form termcolor import cprint import time chatbot = ChatBot('Bot') trainer = ChatterBotCorpusTrainer(chatbot) trainer.train('chatterbot.corpus.eng...
[ 7061, 6, 198, 24616, 416, 532, 1215, 414, 64, 582, 13528, 198, 30026, 3455, 532, 11361, 9927, 1628, 198, 10430, 220, 532, 1248, 19318, 2023, 12131, 198, 7061, 6, 198, 6738, 37303, 13645, 1330, 24101, 20630, 198, 6738, 37303, 13645, 13, ...
2.675676
222
""" --- Day 14: Docking Data --- As your ferry approaches the sea port, the captain asks for your help again. The computer system that runs this port isn't compatible with the docking program on the ferry, so the docking parameters aren't being correctly initialized in the docking program's memory. After a brief inspe...
[ 37811, 198, 6329, 3596, 1478, 25, 360, 8629, 6060, 11420, 198, 1722, 534, 26450, 10581, 262, 5417, 2493, 11, 262, 10654, 7893, 329, 534, 1037, 757, 13, 383, 3644, 1080, 326, 4539, 428, 2493, 2125, 470, 11670, 351, 262, 45441, 1430, 31...
4.032953
1,578
from PyQt5 import QtWidgets, uic from Factory import Factory from Dialogs.DialogMacros import turn_into_free_point, free_point_checkbox from Fill.ListWidget import fill_listWidget_with_data, set_selected_id_in_listWidget import Constant as c
[ 6738, 9485, 48, 83, 20, 1330, 33734, 54, 312, 11407, 11, 334, 291, 198, 198, 6738, 19239, 1330, 19239, 198, 6738, 21269, 18463, 13, 44204, 14155, 4951, 1330, 1210, 62, 20424, 62, 5787, 62, 4122, 11, 1479, 62, 4122, 62, 9122, 3524, 1...
3.297297
74
import unittest from networks.QoS import QoS from networks.connections.mathematical_connections import FunctionalDegradation from networks.slicing import SliceConceptualGraph from utils.location import Location
[ 11748, 555, 715, 395, 198, 198, 6738, 7686, 13, 48, 34049, 1330, 1195, 34049, 198, 6738, 7686, 13, 8443, 507, 13, 6759, 10024, 605, 62, 8443, 507, 1330, 44224, 35, 1533, 6335, 341, 198, 198, 6738, 7686, 13, 82, 677, 278, 1330, 3454,...
3.706897
58
""" Setup DB with example data for tests """ from django.contrib.auth.hashers import make_password from django.contrib.auth.models import User, Group from django.core.management.base import BaseCommand from api import models
[ 37811, 201, 198, 40786, 20137, 351, 1672, 1366, 329, 5254, 201, 198, 37811, 201, 198, 201, 198, 6738, 42625, 14208, 13, 3642, 822, 13, 18439, 13, 10134, 7084, 1330, 787, 62, 28712, 201, 198, 6738, 42625, 14208, 13, 3642, 822, 13, 1843...
3.216216
74
from __future__ import absolute_import, unicode_literals import os import distro
[ 6738, 11593, 37443, 834, 1330, 4112, 62, 11748, 11, 28000, 1098, 62, 17201, 874, 198, 198, 11748, 28686, 198, 198, 11748, 1233, 305, 628 ]
3.5
24
#!/usr/bin/env python # 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...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 2, 345, 743, 407, 779, 428, 2393, 2845, 287, 11846, 351, 262, 13789, 13, 198, 2, 9...
3.609687
351
import numpy as np import sys import os from PIL import Image from visu.helper_functions import save_image from scipy.spatial.transform import Rotation as R from helper import re_quat import copy import torch import numpy as np import k3d def plot_pcd(x, point_size=0.005, c='g'): """ x: point_nr,3 """ ...
[ 11748, 299, 32152, 355, 45941, 198, 11748, 25064, 198, 11748, 28686, 198, 6738, 350, 4146, 1330, 7412, 198, 6738, 1490, 84, 13, 2978, 525, 62, 12543, 2733, 1330, 3613, 62, 9060, 198, 6738, 629, 541, 88, 13, 2777, 34961, 13, 35636, 133...
2.18429
331
''' 37. : 1 / \ 2 3 / \ 4 5 "[1,2,3,null,null,4,5]" ''' # Definition for a binary tree node. # class TreeNode(object): # def __init__(self, x): # self.val = x # self.left = None # self.right = None # :240 ms, Python3 22.75% # :31 MB, Python3 100.00% # Your...
[ 7061, 6, 198, 2718, 13, 220, 198, 198, 25, 220, 628, 198, 220, 220, 220, 352, 198, 220, 220, 1220, 3467, 198, 220, 362, 220, 220, 513, 198, 220, 220, 220, 220, 1220, 3467, 198, 220, 220, 220, 604, 220, 220, 642, 628, 12878, 16, ...
2.116505
206
from .acrostic import IPUZ_ACROSTIC_VALIDATORS from .answer import IPUZ_ANSWER_VALIDATORS from .block import IPUZ_BLOCK_VALIDATORS from .crossword import IPUZ_CROSSWORD_VALIDATORS from .fill import IPUZ_FILL_VALIDATORS from .sudoku import IPUZ_SUDOKU_VALIDATORS from .wordsearch import IPUZ_WORDSEARCH_VALIDATORS IPUZ_...
[ 6738, 764, 330, 305, 11268, 1330, 314, 5105, 57, 62, 2246, 49, 10892, 2149, 62, 23428, 2389, 1404, 20673, 198, 6738, 764, 41484, 1330, 314, 5105, 57, 62, 15037, 45532, 62, 23428, 2389, 1404, 20673, 198, 6738, 764, 9967, 1330, 314, 510...
1.741898
864
from flask import session, request, abort from flask_restplus import Namespace, Resource from CTFd.models import ( db, Users, Solves, Awards, Tracking, Unlocks, Submissions, Notifications, ) from CTFd.utils.decorators import authed_only, admins_only, ratelimit from CTFd.cache import clea...
[ 6738, 42903, 1330, 6246, 11, 2581, 11, 15614, 198, 6738, 42903, 62, 2118, 9541, 1330, 28531, 10223, 11, 20857, 198, 6738, 327, 10234, 67, 13, 27530, 1330, 357, 198, 220, 220, 220, 20613, 11, 198, 220, 220, 220, 18987, 11, 198, 220, ...
2.911647
249
import dash_labs as dl from dash_extensions.enrich import DashBlueprint, DashProxy, html, Output, Input app = DashProxy(prevent_initial_callbacks=True, plugins=[dl.plugins.pages]) # Register a few pages. n_pages = 5 for i in range(n_pages): page = make_page(i) page.register(app, page_name(i), prefix=str(i)) # ...
[ 11748, 14470, 62, 75, 8937, 355, 288, 75, 198, 6738, 14470, 62, 2302, 5736, 13, 268, 7527, 1330, 16189, 14573, 4798, 11, 16189, 44148, 11, 27711, 11, 25235, 11, 23412, 198, 198, 1324, 796, 16189, 44148, 7, 3866, 1151, 62, 36733, 62, ...
2.737991
229
# Copyright (c) 2013 Rackspace, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); you may not # use this file except in compliance with the License. You may obtain a copy # of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in w...
[ 2, 15069, 357, 66, 8, 2211, 37927, 13200, 11, 3457, 13, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 345, 743, 407, 198, 2, 779, 428, 2393, 2845, 287, 11846, 351, 262, 13789,...
1.816054
4,572
import asyncio import logging import synapse.exc as s_exc import synapse.lib.types as s_types import synapse.lib.module as s_module import synapse.lib.version as s_version logger = logging.getLogger(__name__) loglevels = ( (10, 'debug'), (20, 'info'), (30, 'notice'), (40, 'warning'), (50, 'err'),...
[ 11748, 30351, 952, 198, 11748, 18931, 198, 198, 11748, 6171, 7512, 13, 41194, 355, 264, 62, 41194, 198, 11748, 6171, 7512, 13, 8019, 13, 19199, 355, 264, 62, 19199, 198, 11748, 6171, 7512, 13, 8019, 13, 21412, 355, 264, 62, 21412, 198...
2.36875
160
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """Unit tests.""" import os import unittest from copy import copy from webui.app import create_app if __name__ == '__main__': from test.utils.doctest_unittest_runner import doctest_unittest_runner TEST_DIR = os.path.dirname(os.path.realpath(__file__)) + '/' ...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 26453, 5254, 526, 15931, 198, 11748, 28686, 198, 11748, 555, 715, 395, 198, 6738, 4866, 1330, 4866, 198, 198...
2.328205
195
#!/usr/bin/env python # Copyright 1996-2021 Cyberbotics Ltd. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 198, 2, 15069, 8235, 12, 1238, 2481, 15101, 13645, 873, 12052, 13, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 2, 345, ...
3.54918
244
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
[ 2, 15069, 13130, 3012, 11419, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 2, 345, 743, 407, 779, 428, 2393, 2845, 287, 11846, 351, 262, 13789, 13, 198, 2, 921, 743, 733...
3.744395
223
import numpy as np import tensorflow as tf def loss_function(real, pred, loss_object): mask = tf.math.logical_not(tf.math.equal(real, 0)) loss_ = loss_object(real, pred) mask = tf.cast(mask, dtype=loss_.dtype) loss_ *= mask return tf.reduce_mean(loss_) def mask_sequences(seq, t): mask = np.zer...
[ 11748, 299, 32152, 355, 45941, 198, 11748, 11192, 273, 11125, 355, 48700, 198, 198, 4299, 2994, 62, 8818, 7, 5305, 11, 2747, 11, 2994, 62, 15252, 2599, 198, 220, 220, 220, 9335, 796, 48700, 13, 11018, 13, 6404, 605, 62, 1662, 7, 271...
2.238095
210
from ray.train.backend import BackendConfig from ray.train.callbacks import TrainingCallback from ray.train.checkpoint import CheckpointStrategy from ray.train.session import (get_dataset_shard, local_rank, load_checkpoint, report, save_checkpoint, world_rank, world_size) from ray.train.t...
[ 6738, 26842, 13, 27432, 13, 1891, 437, 1330, 5157, 437, 16934, 198, 6738, 26842, 13, 27432, 13, 13345, 10146, 1330, 13614, 47258, 198, 6738, 26842, 13, 27432, 13, 9122, 4122, 1330, 6822, 4122, 13290, 4338, 198, 6738, 26842, 13, 27432, 1...
2.814286
210
from model.contact import Contact from model.group import Group import random
[ 6738, 2746, 13, 32057, 1330, 14039, 198, 6738, 2746, 13, 8094, 1330, 4912, 198, 11748, 4738, 628, 628, 628, 628, 628, 628, 628, 198 ]
3.833333
24
from django.contrib import admin from accounts.models import User, Profile, UserFollow admin.site.register(Profile) admin.site.register(UserFollow)
[ 6738, 42625, 14208, 13, 3642, 822, 1330, 13169, 198, 6738, 5504, 13, 27530, 1330, 11787, 11, 13118, 11, 11787, 7155, 628, 220, 220, 220, 220, 198, 28482, 13, 15654, 13, 30238, 7, 37046, 8, 198, 28482, 13, 15654, 13, 30238, 7, 12982, ...
3.444444
45
import os from PIL import Image import cv2 from os import listdir from os.path import join import matplotlib.pyplot as plt import matplotlib from matplotlib.colors import LogNorm from io_utils.io_common import create_folder from viz_utils.constants import PlotMode, BackgroundType import pylab import numpy as np import...
[ 11748, 28686, 198, 6738, 350, 4146, 1330, 7412, 198, 11748, 269, 85, 17, 198, 6738, 28686, 1330, 1351, 15908, 198, 6738, 28686, 13, 6978, 1330, 4654, 198, 198, 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 198, 11748, 2603, ...
2.369792
576
from os import listdir from os.path import isfile, join from path import Path import numpy as np import cv2 # Dataset path target_path = Path('target/') annotation_images_path = Path('dataset/ade20k/annotations/training/').abspath() dataset = [ f for f in listdir(annotation_images_path) if isfile(join(annotation_image...
[ 6738, 28686, 1330, 1351, 15908, 198, 6738, 28686, 13, 6978, 1330, 318, 7753, 11, 4654, 198, 6738, 3108, 1330, 10644, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 269, 85, 17, 198, 198, 2, 16092, 292, 316, 3108, 198, 16793, 62, 6978...
2.425386
583
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # # Code generated by Microsoft (R) AutoRest Code Generator. # Changes ...
[ 2, 19617, 28, 40477, 12, 23, 198, 2, 16529, 35937, 198, 2, 15069, 357, 66, 8, 5413, 10501, 13, 1439, 2489, 10395, 13, 198, 2, 49962, 739, 262, 17168, 13789, 13, 4091, 13789, 13, 14116, 287, 262, 1628, 6808, 329, 198, 2, 5964, 1321...
3.728689
2,311
import logging from models.GenericObjects import Vector2 logger = logging.getLogger('Rogue-EVE')
[ 11748, 18931, 198, 6738, 4981, 13, 46189, 10267, 82, 1330, 20650, 17, 198, 198, 6404, 1362, 796, 18931, 13, 1136, 11187, 1362, 10786, 48163, 12, 36, 6089, 11537, 628 ]
3.413793
29