content
stringlengths
1
1.04M
input_ids
listlengths
1
774k
ratio_char_token
float64
0.38
22.9
token_count
int64
1
774k
# Generated by Django 3.1.4 on 2020-12-08 11:56 from django.db import migrations, models import django.db.models.deletion
[ 2, 2980, 515, 416, 37770, 513, 13, 16, 13, 19, 319, 12131, 12, 1065, 12, 2919, 1367, 25, 3980, 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
# Copyright (c) 2020 Jan Vrany <jan.vrany (a) fit.cvut.cz> # # 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, modif...
[ 2, 15069, 357, 66, 8, 12131, 2365, 569, 81, 1092, 1279, 13881, 13, 37020, 1092, 357, 64, 8, 4197, 13, 33967, 315, 13, 26691, 29, 198, 2, 198, 2, 2448, 3411, 318, 29376, 7520, 11, 1479, 286, 3877, 11, 284, 597, 1048, 16727, 198, ...
3.051786
560
""" Created on June 21, 2018 @author: Moritz """ import numpy as np
[ 37811, 198, 41972, 319, 2795, 2310, 11, 2864, 198, 198, 31, 9800, 25, 3461, 4224, 198, 37811, 198, 198, 11748, 299, 32152, 355, 45941, 628 ]
2.84
25
# print table #
[ 198, 2, 3601, 3084, 1303 ]
3.2
5
from methods import is_prime from time import time elapsed_time = time() current_last = 1 side_len = 1 travel_by = 1 edges_num = 0 prime_edges_num = 0 ratio = 1 while ratio > 0.1: side_len += 2 edges_num += 4 current_last += 1 current_last += travel_by travel_by += 1 if is_prime(current_l...
[ 6738, 5050, 1330, 318, 62, 35505, 198, 6738, 640, 1330, 640, 198, 198, 417, 28361, 62, 2435, 796, 640, 3419, 198, 198, 14421, 62, 12957, 796, 352, 198, 198, 1589, 62, 11925, 796, 352, 198, 198, 35927, 62, 1525, 796, 352, 198, 198, ...
2.326007
273
''' @package main driver for the fullerene energy computer. ''' from sys import argv from fullerene_curvature.curvature import compute_k_values, compute_g_values, \ compute_energy, compute_euler_characteristic from fullerene_curvature.fullerene import Fullerene if __name__ == "__main__": file_name = argv[1] ...
[ 7061, 6, 2488, 26495, 1388, 4639, 329, 262, 46246, 293, 25924, 2568, 3644, 13, 198, 7061, 6, 198, 6738, 25064, 1330, 1822, 85, 198, 6738, 46246, 293, 25924, 62, 22019, 85, 1300, 13, 22019, 85, 1300, 1330, 24061, 62, 74, 62, 27160, 1...
2.557047
298
#!/usr/bin/python3 """ Offers support for WS2812 LED LEDs via the hardware SPI MOSI Uses py-spidev: ``` git clone https://github.com/doceme/py-spidev.git cd py-spidev make make install ``` """ import time import datetime import socket import math import re import random from izaber import initialize, config from...
[ 2, 48443, 14629, 14, 8800, 14, 29412, 18, 198, 198, 37811, 198, 9362, 364, 1104, 329, 25290, 2078, 1065, 12365, 33697, 2884, 262, 6890, 49091, 337, 2640, 40, 198, 198, 5842, 274, 12972, 12, 2777, 485, 85, 25, 198, 198, 15506, 63, 19...
2.708333
192
#-*- coding:utf-8 -*- # zhangwei99@baidu.com import openpyxl as pyxl import numpy as np import math import os from collections import OrderedDict #def parseTxt(TxtName, parseArray): # fp = open(TxtName) # lines = fp.readlines() # for line in lines: # sp = line.rstrip("\n").split(",") # fId = i...
[ 2, 12, 9, 12, 19617, 25, 40477, 12, 23, 532, 9, 12, 198, 2, 1976, 33255, 42990, 2079, 31, 65, 1698, 84, 13, 785, 198, 11748, 1280, 9078, 87, 75, 355, 12972, 87, 75, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 10688, 198, 117...
1.896116
2,214
#!env/bin/python3 import itertools import pycosat from mongoengine import * from .models import PEOPLE, WEAPONS, ROOMS
[ 2, 0, 24330, 14, 8800, 14, 29412, 18, 198, 198, 11748, 340, 861, 10141, 198, 11748, 12972, 6966, 265, 198, 6738, 285, 25162, 18392, 1330, 1635, 198, 198, 6738, 764, 27530, 1330, 36388, 11, 12887, 2969, 19213, 11, 15107, 2662, 50, 628 ...
2.904762
42
# Licensed to the StackStorm, Inc ('StackStorm') 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 use th...
[ 2, 49962, 284, 262, 23881, 32173, 11, 3457, 19203, 25896, 32173, 11537, 739, 530, 393, 517, 198, 2, 18920, 5964, 11704, 13, 220, 4091, 262, 28536, 2393, 9387, 351, 198, 2, 428, 670, 329, 3224, 1321, 5115, 6634, 9238, 13, 198, 2, 383...
3.721713
327
# -*- coding: utf-8 -*- # # Copyright (c) 2007-2012 Peter Kuma import os from datetime import date from django.http import Http404 from django.core.exceptions import PermissionDenied from django.shortcuts import render from django.template import RequestContext from django.core.exceptions import ObjectDoesNotExist fr...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 198, 2, 15069, 357, 66, 8, 4343, 12, 6999, 5613, 509, 7487, 198, 198, 11748, 28686, 198, 6738, 4818, 8079, 1330, 3128, 198, 198, 6738, 42625, 14208, 13, 4023, 1330,...
3.558824
204
keyboard.send_keys('<ctrl>+/')
[ 2539, 3526, 13, 21280, 62, 13083, 10786, 27, 44755, 29, 10, 14, 11537 ]
2.307692
13
import pandas as pd
[ 11748, 19798, 292, 355, 279, 67, 628 ]
3
7
# -*- coding: utf-8 -*- # @Author: xiaodong # @Date : 2021/5/27 __author__ = "xiaodong" __version__ = "0.1.3"
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 2488, 13838, 25, 2124, 544, 375, 506, 198, 2, 2488, 10430, 220, 1058, 33448, 14, 20, 14, 1983, 198, 198, 834, 9800, 834, 796, 366, 36072, 375, 506, 1, 198, 834, ...
1.964912
57
import random player = input('Enter your name: ') print(f'Hello, {player}') score = 0 rating = open('rating.txt') for rate in rating: if player in rate: score = int(rate.split()[1]) rating.close() winning_cases = { 'water' : ['scissors', 'fire', 'rock', 'hun', 'lightning', 'devil', 'dragon'], 'dr...
[ 11748, 4738, 198, 198, 7829, 796, 5128, 10786, 17469, 534, 1438, 25, 705, 8, 198, 4798, 7, 69, 6, 15496, 11, 1391, 7829, 92, 11537, 198, 198, 26675, 796, 657, 198, 8821, 796, 1280, 10786, 8821, 13, 14116, 11537, 198, 1640, 2494, 287...
2.45262
897
# Copyright (c) 2015-2021 Patricio Cubillos and contributors. # mc3 is open-source software under the MIT license (see LICENSE). __all__ = [ 'bin_array', 'residuals', 'chisq', 'dwt_chisq', 'log_prior', 'cred_region', 'ppf_uniform', 'ppf_gaussian', 'dwt_daub4', 'Loglike', 'Pr...
[ 2, 15069, 357, 66, 8, 1853, 12, 1238, 2481, 3208, 1173, 952, 7070, 359, 418, 290, 20420, 13, 198, 2, 36650, 18, 318, 1280, 12, 10459, 3788, 739, 262, 17168, 5964, 357, 3826, 38559, 24290, 737, 198, 198, 834, 439, 834, 796, 685, 19...
2.291819
7,652
""" Dwie liczby naturalne są „przyjaciółkami jeżeli zbiory cyfr z których zbudowane są liczby są identyczne. Na przykład: 123 i 321, 211 i 122, 35 3553. Dana jest tablica T[N][N] wypełniona liczbami naturalnymi. Proszę napisać funkcję, która dla tablicy T zwraca ile elementów tablicy sąsiaduje wyłącznie z przyjaciółkam...
[ 37811, 198, 35, 86, 494, 3476, 89, 1525, 3288, 710, 264, 128, 227, 564, 252, 1050, 7357, 30482, 72, 10205, 41615, 74, 6277, 11223, 129, 120, 43733, 1976, 8482, 652, 3075, 8310, 1976, 479, 83, 10205, 563, 354, 1976, 65, 463, 322, 153...
2.165877
211
# Copyright 2020 HPS/SAFARI Research Groups # # 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, 220, 15069, 12131, 367, 3705, 14, 4090, 37, 33604, 4992, 27441, 198, 2, 198, 2, 220, 2448, 3411, 318, 29376, 7520, 11, 1479, 286, 3877, 11, 284, 597, 1048, 16727, 257, 4866, 286, 198, 2, 220, 428, 3788, 290, 3917, 10314, 3696, ...
3.800738
542
EVENTS_PAGE = 'events.html' HED_TOOLS_HOME_PAGE = 'hed-tools-home.html' SCHEMA_PAGE = 'schema.html' SIDECAR_PAGE = 'sidecar.html' SPREADSHEET_PAGE = 'spreadsheet.html' STRING_PAGE = 'string.html' SERVICES_PAGE = 'services.html'
[ 20114, 15365, 62, 4537, 8264, 796, 705, 31534, 13, 6494, 6, 201, 198, 39, 1961, 62, 10468, 3535, 50, 62, 39069, 62, 4537, 8264, 796, 705, 704, 12, 31391, 12, 11195, 13, 6494, 6, 201, 198, 50, 3398, 27630, 62, 4537, 8264, 796, 705,...
2.117117
111
""" Copyright (c) 2018-2021 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 wri...
[ 37811, 198, 15269, 357, 66, 8, 2864, 12, 1238, 2481, 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, ...
2.555556
1,197
from distutils.core import setup from src import automagic_imaging setup( name='Automagic Imaging', version=automagic_imaging.__version__, url='https://github.com/univ-of-utah-marriott-library-apple/radmind_auto_image_creator', author='Pierce Darragh, Marriott Library IT Services', author_email='ml...
[ 6738, 1233, 26791, 13, 7295, 1330, 9058, 198, 6738, 12351, 1330, 3557, 9083, 62, 320, 3039, 198, 198, 40406, 7, 198, 220, 220, 220, 1438, 11639, 38062, 9083, 48656, 3256, 198, 220, 220, 220, 2196, 28, 2306, 296, 9083, 62, 320, 3039, ...
2.604494
445
# Copyright 2019 Red Hat # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to ...
[ 2, 15069, 13130, 2297, 10983, 198, 2, 198, 2, 220, 220, 220, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 345, 743, 198, 2, 220, 220, 220, 407, 779, 428, 2393, 2845, 287, 11846, 351, 262, 13...
3.355372
242
from peewee import * from .base import OutputBase
[ 6738, 613, 413, 1453, 1330, 1635, 198, 6738, 764, 8692, 1330, 25235, 14881, 628, 628, 628, 628, 628, 628, 628, 628, 628 ]
3.045455
22
import torch import torch.nn as nn import torch.optim as optim import os import random from CNN.resnet import BasicBlock import torch.nn.functional as F #g_filters = [384, 192, 96, 48, 3] #g_strids = [1, 2, 2, 2] # filters = [16, 32, 64, 128, 256, 512] # strides = [2,1,2,1,2,1]
[ 11748, 28034, 198, 11748, 28034, 13, 20471, 355, 299, 77, 198, 11748, 28034, 13, 40085, 355, 6436, 198, 11748, 28686, 198, 11748, 4738, 198, 6738, 8100, 13, 411, 3262, 1330, 14392, 12235, 198, 11748, 28034, 13, 20471, 13, 45124, 355, 37...
2.504274
117
# Copyright 2020, Kay Hayen, mailto:kay.hayen@gmail.com # # Part of "Nuitka", an optimizing Python compiler that is compatible and # integrates with CPython, but also works on its own. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in complianc...
[ 2, 220, 220, 220, 220, 15069, 12131, 11, 17356, 9075, 268, 11, 6920, 1462, 25, 5568, 13, 71, 323, 268, 31, 14816, 13, 785, 198, 2, 198, 2, 220, 220, 220, 220, 2142, 286, 366, 45, 5013, 4914, 1600, 281, 45780, 11361, 17050, 326, ...
3.168675
332
""" execute a notebook file hierarchy run_notebooks orig_notebook_dir file_re run_notebooks autograded "lab_wk9*ipynb" """ from pathlib import Path import click from .utils import working_directory import shutil import nbformat from nbconvert.preprocessors import ExecutePreprocessor @click.command() @click.argumen...
[ 37811, 198, 41049, 257, 20922, 2393, 18911, 198, 198, 5143, 62, 11295, 12106, 1796, 62, 11295, 2070, 62, 15908, 2393, 62, 260, 198, 198, 5143, 62, 11295, 12106, 1960, 519, 81, 5286, 366, 23912, 62, 43021, 24, 9, 541, 2047, 65, 1, 19...
3.129032
124
import requests from urllib.parse import urljoin, urlparse from bs4 import BeautifulSoup import re BASE_SITE = "https://www.jetpunk.com" BASE_URL = "/tags/multiple-choice" if __name__ == "__main__": page = requests.get(BASE_SITE + BASE_URL) soup = BeautifulSoup(page.content, "html.parser") links = so...
[ 11748, 7007, 198, 6738, 2956, 297, 571, 13, 29572, 1330, 19016, 22179, 11, 19016, 29572, 198, 6738, 275, 82, 19, 1330, 23762, 50, 10486, 198, 11748, 302, 198, 198, 33, 11159, 62, 50, 12709, 796, 366, 5450, 1378, 2503, 13, 31173, 30354...
2.215328
548
import pickle import os from googleapiclient.discovery import build from google_auth_oauthlib.flow import InstalledAppFlow from google.auth.transport.requests import Request from tabulate import tabulate # If modifying these scopes, delete the file token.pickle. SCOPES = ['https://www.googleapis.com/auth/drive...
[ 11748, 2298, 293, 201, 198, 11748, 28686, 201, 198, 6738, 23645, 499, 291, 75, 1153, 13, 67, 40821, 1330, 1382, 201, 198, 6738, 23645, 62, 18439, 62, 12162, 1071, 8019, 13, 11125, 1330, 2262, 4262, 4677, 37535, 201, 198, 6738, 23645, ...
2.873134
134
# Definition for a binary tree node. # class TreeNode: # def __init__(self, x): # self.val = x # self.left = None # self.right = None
[ 2, 30396, 329, 257, 13934, 5509, 10139, 13, 198, 2, 1398, 12200, 19667, 25, 198, 2, 220, 220, 220, 220, 825, 11593, 15003, 834, 7, 944, 11, 2124, 2599, 198, 2, 220, 220, 220, 220, 220, 220, 220, 220, 2116, 13, 2100, 796, 2124, 1...
2.175676
74
# Copyright 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 wri...
[ 2, 15069, 13130, 8180, 10501, 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.611336
247
#!/usr/bin/env python3 # -*- coding: utf-8 -*- from difflib import Differ from pathlib import Path from typing import Container from ..show_functions import show_via_cmd from ..typedefs import GEN_PATH_FUNC, PATH_FUNC, SHOW_FUNC from .path_builders import (build_via_suffix_change, unique_name_via_number, ...
[ 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, 6738, 814, 8019, 1330, 10631, 263, 198, 6738, 3108, 8019, 1330, 10644, 198, 6738, 19720, 1330, 43101, 198, 198...
2.482667
375
import hashlib # noqa: F401 from hashlib import md5 # noqa: F401 from hashlib import sha256 # noqa: F401 from hashlib import sha512 # noqa: F401
[ 11748, 12234, 8019, 220, 1303, 645, 20402, 25, 376, 21844, 198, 6738, 12234, 8019, 1330, 45243, 20, 220, 1303, 645, 20402, 25, 376, 21844, 198, 6738, 12234, 8019, 1330, 427, 64, 11645, 220, 1303, 645, 20402, 25, 376, 21844, 198, 6738, ...
2.709091
55
from fluent import sender from rest.api.constants.env_constants import EnvConstants from rest.api.constants.env_init import EnvInit from rest.api.schedulers.base_scheduler import BaseScheduler from rest.service.fluentd import Fluentd from rest.utils.docker_utils import DockerUtils
[ 6738, 43472, 1330, 29788, 198, 198, 6738, 1334, 13, 15042, 13, 9979, 1187, 13, 24330, 62, 9979, 1187, 1330, 2039, 85, 34184, 1187, 198, 6738, 1334, 13, 15042, 13, 9979, 1187, 13, 24330, 62, 15003, 1330, 2039, 85, 31768, 198, 6738, 133...
3.264368
87
# encoding: utf-8 # # # This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this file, # You can obtain one at http://mozilla.org/MPL/2.0/. # from __future__ import absolute_import, division, unicode_literals import secrets
[ 2, 21004, 25, 3384, 69, 12, 23, 198, 2, 198, 2, 198, 2, 770, 8090, 6127, 5178, 318, 2426, 284, 262, 2846, 286, 262, 29258, 5094, 198, 2, 13789, 11, 410, 13, 362, 13, 15, 13, 1002, 257, 4866, 286, 262, 4904, 43, 373, 407, 9387,...
3.185567
97
# # Autogenerated by Thrift Compiler (0.9.1) # # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING # # options string: py # from thrift.Thrift import TType, TMessageType, TException, TApplicationException from thrift.transport import TTransport from thrift.protocol import TBinaryProtocol, TProtocol tr...
[ 2, 198, 2, 5231, 519, 877, 515, 416, 16283, 2135, 3082, 5329, 357, 15, 13, 24, 13, 16, 8, 198, 2, 198, 2, 8410, 5626, 48483, 4725, 48481, 7013, 15986, 311, 11335, 14603, 7013, 35876, 25003, 7013, 15986, 8410, 2751, 198, 2, 198, 2,...
1.92815
4,064
# Copyright 2020 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, s...
[ 2, 15069, 12131, 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.02243
535
from django.db import models from django.contrib.auth import get_user_model from django.contrib.contenttypes.models import ContentType from django.contrib.contenttypes.fields import GenericForeignKey UserModel = get_user_model()
[ 6738, 42625, 14208, 13, 9945, 1330, 4981, 198, 6738, 42625, 14208, 13, 3642, 822, 13, 18439, 1330, 651, 62, 7220, 62, 19849, 198, 6738, 42625, 14208, 13, 3642, 822, 13, 11299, 19199, 13, 27530, 1330, 14041, 6030, 198, 6738, 42625, 14208...
3.287671
73
#program to convert km to mph # Get KM imput kilometers = float(input("Enter value in kilometers: ")) # the conversion factor conv_fac = 0.621371 # calculating miles miles = kilometers * conv_fac print('%0.2f kilometers is equal to %0.2f miles' %(kilometers,miles))
[ 2, 23065, 284, 10385, 10571, 284, 16462, 198, 2, 3497, 46646, 848, 315, 198, 34553, 40077, 796, 12178, 7, 15414, 7203, 17469, 1988, 287, 18212, 25, 366, 4008, 198, 198, 2, 262, 11315, 5766, 198, 42946, 62, 38942, 796, 657, 13, 5237, ...
3.116279
86
# scmutil.py - Mercurial core utility functions # # Copyright Matt Mackall <mpm@selenic.com> # # This software may be used and distributed according to the terms of the # GNU General Public License version 2 or any later version. from __future__ import absolute_import import errno import glob import hashlib import o...
[ 2, 629, 21973, 346, 13, 9078, 532, 12185, 333, 498, 4755, 10361, 5499, 198, 2, 198, 2, 220, 15069, 4705, 16640, 439, 1279, 3149, 76, 31, 741, 35866, 13, 785, 29, 198, 2, 198, 2, 770, 3788, 743, 307, 973, 290, 9387, 1864, 284, 26...
2.245906
22,716
"""The tests for the backports."""
[ 37811, 464, 5254, 329, 262, 736, 3742, 526, 15931, 198 ]
3.5
10
""" Utility functions ================= Includes functions to extract data from a zipped csv without a local download """ import requests import pandas as pd import io from zipfile import ZipFile def read_zip(url: str, file_name: str) -> pd.DataFrame: """ Reads a csv from the web contained in a zip folder ...
[ 37811, 198, 18274, 879, 5499, 198, 4770, 28, 198, 42986, 5499, 284, 7925, 1366, 422, 257, 1976, 3949, 269, 21370, 1231, 257, 1957, 4321, 198, 37811, 628, 198, 11748, 7007, 198, 11748, 19798, 292, 355, 279, 67, 198, 11748, 33245, 198, ...
2.6793
343
import json from machine_settings import _MachineConfig import os.path as os_path ENCODING = 'utf8'
[ 11748, 33918, 198, 6738, 4572, 62, 33692, 1330, 4808, 37573, 16934, 198, 11748, 28686, 13, 6978, 355, 28686, 62, 6978, 628, 198, 24181, 3727, 2751, 796, 705, 40477, 23, 6, 628, 198, 220, 220, 220, 220, 220, 220, 220, 220, 628, 628, ...
2.290323
62
from elasticsearch import Elasticsearch import argparse import os import json import re if __name__ == "__main__": main()
[ 6738, 27468, 12947, 1330, 48567, 12947, 198, 11748, 1822, 29572, 198, 11748, 28686, 198, 11748, 33918, 198, 11748, 302, 628, 628, 628, 198, 198, 361, 11593, 3672, 834, 6624, 366, 834, 12417, 834, 1298, 198, 220, 220, 220, 1388, 3419, 19...
3.243902
41
""" Author: Yonglong Tian (yonglong@mit.edu) Date: May 07, 2020 """ from __future__ import print_function import torch import torch.nn as nn import numpy as np from itertools import combinations class SupConLoss(nn.Module): """Supervised Contrastive Learning: https://arxiv.org/pdf/2004.11362.pdf. It also supp...
[ 37811, 198, 13838, 25, 40633, 6511, 20834, 357, 88, 506, 6511, 31, 2781, 13, 15532, 8, 198, 10430, 25, 1737, 8753, 11, 12131, 198, 37811, 198, 6738, 11593, 37443, 834, 1330, 3601, 62, 8818, 198, 198, 11748, 28034, 198, 11748, 28034, 1...
2.113008
4,159
#!/usr/bin/env python3 # # MIT License # # Copyright (c) 2020-2021 EntySec # # 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...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 198, 2, 198, 2, 17168, 13789, 198, 2, 198, 2, 15069, 357, 66, 8, 12131, 12, 1238, 2481, 7232, 88, 6558, 198, 2, 198, 2, 2448, 3411, 318, 29376, 7520, 11, 1479, 286, 3877, 11,...
3.691843
331
# generated from catkin/cmake/template/pkg.context.pc.in CATKIN_PACKAGE_PREFIX = "" PROJECT_PKG_CONFIG_INCLUDE_DIRS = "/home/nvidia/linorobot_ws/install/include".split(';') if "/home/nvidia/linorobot_ws/install/include" != "" else [] PROJECT_CATKIN_DEPENDS = "dynamic_reconfigure;message_runtime;roscpp;std_msgs;lino_msg...
[ 2, 7560, 422, 3797, 5116, 14, 11215, 539, 14, 28243, 14, 35339, 13, 22866, 13, 14751, 13, 259, 198, 34, 1404, 42, 1268, 62, 47, 8120, 11879, 62, 47, 31688, 10426, 796, 13538, 198, 31190, 23680, 62, 40492, 38, 62, 10943, 16254, 62, ...
2.343891
221
"""[paser ini] Raises: MCError -- [description] MCError -- [description] MCError -- [description] MCError -- [description] MCError -- [description] MCError -- [description] MCError -- [description] MCError -- [description] MCError -- [description] MCError -- [description] MC...
[ 15931, 17912, 79, 6005, 287, 72, 60, 198, 198, 21762, 2696, 25, 198, 220, 220, 220, 337, 5222, 81, 1472, 1377, 685, 11213, 60, 198, 220, 220, 220, 337, 5222, 81, 1472, 1377, 685, 11213, 60, 198, 220, 220, 220, 337, 5222, 81, 1472,...
1.898938
11,577
#!/usr/bin/env python # -*- coding: utf-8 -*- import argparse from datetime import datetime from typing import Iterable, NamedTuple, Optional import kfp from pytz import timezone KNOWN_TIMEZONE_TABLE = {"JST": "Asia/Tokyo"} class Pipeline(NamedTuple): """Describes a pipeline deployed on the KFP instance.""" ...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 11748, 1822, 29572, 198, 6738, 4818, 8079, 1330, 4818, 8079, 198, 6738, 19720, 1330, 40806, 540, 11, 34441, 51, 29...
2.538321
1,096
import unittest import pytest from pynYNAB.ClientFactory import nYnabClientFactory from pynYNAB.schema import BudgetVersion from pynYNAB.schema import Transaction @pytest.fixture
[ 11748, 555, 715, 395, 198, 198, 11748, 12972, 9288, 198, 198, 6738, 279, 2047, 56, 4535, 33, 13, 11792, 22810, 1330, 299, 56, 77, 397, 11792, 22810, 198, 6738, 279, 2047, 56, 4535, 33, 13, 15952, 2611, 1330, 15401, 14815, 198, 6738, ...
2.983871
62
# this script pulls oi,funding and mark price data from bitmex, bybit, Okex, Binance for BTC perpetual swap contracts # and aggreates data from whole market into files #TODO: change data_file_path to your own in rows 42 and 174 # --------------------------- # requirements: # pip install bybit # pip install bitmex-w...
[ 2, 428, 4226, 16194, 267, 72, 11, 25032, 290, 1317, 2756, 1366, 422, 1643, 76, 1069, 11, 416, 2545, 11, 440, 365, 87, 11, 347, 14149, 329, 14503, 29079, 16075, 8592, 198, 2, 290, 4194, 630, 274, 1366, 422, 2187, 1910, 656, 3696, 1...
2.62069
1,595
#coding=utf-8 import mxnet as mx from mxnet import gluon from mxnet.gluon import nn
[ 2, 66, 7656, 28, 40477, 12, 23, 198, 11748, 285, 87, 3262, 355, 285, 87, 198, 6738, 285, 87, 3262, 1330, 1278, 84, 261, 198, 6738, 285, 87, 3262, 13, 70, 2290, 261, 1330, 299, 77, 628 ]
2.297297
37
import pandas as pd import numpy as np import sys import warnings if not sys.warnoptions: warnings.simplefilter('ignore') import tensorflow.compat.v1 as tf from datetime import timedelta from tqdm import tqdm
[ 11748, 19798, 292, 355, 279, 67, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 25064, 198, 11748, 14601, 198, 361, 407, 25064, 13, 40539, 25811, 25, 198, 220, 220, 220, 14601, 13, 36439, 24455, 10786, 46430, 11537, 198, 11748, 11192, ...
3.212121
66
from aerospike import predicates as as_predicates import pytest PREDICATE_METHDOS = [ as_predicates.equals, as_predicates.contains, as_predicates.between, as_predicates.range, as_predicates.geo_contains_geojson_point, as_predicates.geo_contains_point, as_predicates.geo_within_geojson_region...
[ 6738, 9551, 2117, 522, 1330, 2747, 16856, 355, 355, 62, 28764, 16856, 198, 11748, 12972, 9288, 198, 198, 4805, 1961, 2149, 6158, 62, 47123, 10227, 2640, 796, 685, 198, 220, 220, 220, 355, 62, 28764, 16856, 13, 4853, 874, 11, 198, 220,...
2.388571
175
# -*- coding: utf-8 -*- """ Created on Fri Apr 28 11:23:26 2017 @author: rickdberg Create maps """ import numpy as np import rasterio from rasterio import Affine from rasterio.warp import reproject, Resampling import matplotlib.pyplot as plt from site_metadata_compiler_completed import comp import cartopy.crs as ...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 198, 41972, 319, 19480, 2758, 2579, 1367, 25, 1954, 25, 2075, 2177, 198, 198, 31, 9800, 25, 374, 624, 67, 3900, 198, 198, 16447, 8739, 628, 198, 198, 37811, 198...
2.324981
1,317
""" This script provides an example usage of the PyTurbSim API. """ # Begin by importing the PyTurbSim API: import pyts.api as pyts # Define some variables for the PyTurbSim run: refht = 10. ustar = 0.03 Uref = 3. # First we initialize a PyTurbSim 'run' object: tsr = pyts.tsrun() # Next we give this run object a gri...
[ 37811, 198, 1212, 4226, 3769, 281, 1672, 8748, 286, 262, 9485, 51, 5945, 8890, 7824, 13, 198, 37811, 198, 2, 16623, 416, 33332, 262, 9485, 51, 5945, 8890, 7824, 25, 198, 11748, 12972, 912, 13, 15042, 355, 12972, 912, 198, 198, 2, 28...
2.647332
431
from django.shortcuts import redirect, render from Guardian.views import login from django.contrib.auth.decorators import login_required from Guardian.decorators import admin_only from Oracle.forms import TaskForm from .tasks import Task, TaskStatus @login_required(login_url='/guardian/login/') @admin_only @login_re...
[ 6738, 42625, 14208, 13, 19509, 23779, 1330, 18941, 11, 8543, 198, 6738, 8283, 13, 33571, 1330, 17594, 198, 6738, 42625, 14208, 13, 3642, 822, 13, 18439, 13, 12501, 273, 2024, 1330, 17594, 62, 35827, 198, 6738, 8283, 13, 12501, 273, 2024...
3.145695
151
import numpy as np import tensorflow as tf from tensorflow import keras from tensorflow.keras import layers, backend, models, utils from .utils import deduce_input_shape def conv2d(input, filters, rows, columns, padding='same', strides=(1,1), name='conv', data_format='channels_last', ...
[ 11748, 299, 32152, 355, 45941, 198, 11748, 11192, 273, 11125, 355, 48700, 198, 6738, 11192, 273, 11125, 1330, 41927, 292, 198, 6738, 11192, 273, 11125, 13, 6122, 292, 1330, 11685, 11, 30203, 11, 4981, 11, 3384, 4487, 198, 198, 6738, 764...
2.460241
415
"""IBM TRANSLATOR""" import os from ibm_watson import LanguageTranslatorV3 from ibm_cloud_sdk_core.authenticators import IAMAuthenticator from dotenv import load_dotenv load_dotenv() apikey = os.environ['apikey'] url = os.environ['url'] authenticator = IAMAuthenticator(apikey) language_translator = LanguageTranslat...
[ 37811, 9865, 44, 48213, 8634, 25633, 37811, 198, 198, 11748, 28686, 198, 6738, 24283, 76, 62, 86, 13506, 1330, 15417, 8291, 41880, 53, 18, 198, 6738, 24283, 76, 62, 17721, 62, 21282, 74, 62, 7295, 13, 41299, 44549, 1330, 314, 2390, 47...
2.425
640
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** 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, overload from .. import _utilities from...
[ 2, 19617, 28, 40477, 12, 23, 198, 2, 17202, 39410, 25, 428, 2393, 373, 7560, 416, 262, 21624, 12994, 26144, 35986, 13, 17202, 198, 2, 17202, 2141, 407, 4370, 416, 1021, 4556, 345, 821, 1728, 345, 760, 644, 345, 389, 1804, 0, 17202, ...
2.477716
718
"""Logger module contains LogManager which sets up file and stream handler + formatting.""" import logging import re from pathlib import Path import logredactor from rich.logging import RichHandler class LogManager: """Manages the logs formats and levels. We have 2 loggers one to stout and one to a logger ...
[ 37811, 11187, 1362, 8265, 4909, 5972, 13511, 543, 5621, 510, 2393, 290, 4269, 21360, 1343, 33313, 526, 15931, 198, 198, 11748, 18931, 198, 11748, 302, 198, 6738, 3108, 8019, 1330, 10644, 198, 198, 11748, 2604, 445, 11218, 198, 6738, 5527,...
2.368745
1,139
""" Helper classes for the management of subscription and unsubscription of the Items handled by the Remote Data Adapter. """ from contextlib import contextmanager import threading from _collections import deque from lightstreamer_adapter.protocol import RemotingException from . import DATA_PROVIDER_LOGGER class _I...
[ 37811, 198, 47429, 6097, 329, 262, 4542, 286, 14569, 290, 32793, 33584, 286, 262, 198, 23022, 12118, 416, 262, 21520, 6060, 43721, 13, 198, 37811, 198, 6738, 4732, 8019, 1330, 4732, 37153, 198, 11748, 4704, 278, 198, 6738, 4808, 4033, 2...
2.313223
3,978
import math from collections import OrderedDict import numpy as np import scipy.signal import torch import torch.nn as nn import torch.nn.functional as F from torch.nn.parameter import Parameter if __name__ == '__main__': pass
[ 11748, 10688, 198, 6738, 17268, 1330, 14230, 1068, 35, 713, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 629, 541, 88, 13, 12683, 282, 198, 11748, 28034, 198, 11748, 28034, 13, 20471, 355, 299, 77, 198, 11748, 28034, 13, 20471, 13, ...
3.175676
74
from Tkinter import * from tkSimpleDialog import Dialog import json import csv import tkFileDialog class ErrorWindow(Dialog): """ Provided a list of error messages, shows them in a simple pop-up window. """
[ 6738, 309, 74, 3849, 1330, 1635, 198, 6738, 256, 74, 26437, 44204, 1330, 21269, 519, 198, 11748, 33918, 198, 11748, 269, 21370, 198, 11748, 256, 74, 8979, 44204, 198, 198, 4871, 13047, 27703, 7, 44204, 2599, 198, 220, 220, 220, 37227, ...
3.217391
69
class Species(object): """ A collection of genetically similar individuals."""
[ 4871, 28540, 7, 15252, 2599, 198, 220, 220, 220, 37227, 317, 4947, 286, 20807, 2092, 3925, 526, 15931, 198 ]
4.368421
19
from datetime import date, timedelta from typing import List, Optional, Union, Iterator import arrow from sqlalchemy.orm import Session from app.database.models import Event from app.routers.event import sort_by_date from app.routers.user import get_all_user_events def get_events_per_dates( session: Session...
[ 6738, 4818, 8079, 1330, 3128, 11, 28805, 12514, 198, 6738, 19720, 1330, 7343, 11, 32233, 11, 4479, 11, 40806, 1352, 198, 198, 11748, 15452, 198, 6738, 44161, 282, 26599, 13, 579, 1330, 23575, 198, 198, 6738, 598, 13, 48806, 13, 27530, ...
2.536585
738
r""" =================================================== Cone / Cylinder DataBase (:mod:`desicos.conecylDB`) =================================================== .. currentmodule:: desicos.conecylDB The ``desicos.conecylDB`` module includes all the information about cones and cylinders required to reproduce structures...
[ 81, 37811, 198, 10052, 4770, 18604, 198, 34, 505, 1220, 327, 2645, 5540, 6060, 14881, 357, 25, 4666, 25, 63, 8906, 291, 418, 13, 49180, 38801, 11012, 63, 8, 198, 10052, 4770, 18604, 198, 198, 492, 1459, 21412, 3712, 748, 291, 418, 1...
3.372781
338
#coding=UTF-8 ''' Created on 2011-7-5 @author: Administrator ''' import threading import time from spider import soufang from spider import ganji from spider import tongcheng58 from spider.threadpool import ThreadPool, makeRequests import urllib2 import urllib from spider.globalvars import fetch_quere from spider.jjr...
[ 2, 66, 7656, 28, 48504, 12, 23, 198, 7061, 6, 198, 41972, 319, 2813, 12, 22, 12, 20, 198, 198, 31, 9800, 25, 22998, 198, 7061, 6, 198, 11748, 4704, 278, 198, 11748, 640, 198, 6738, 19230, 1330, 24049, 69, 648, 198, 6738, 19230, ...
1.978235
827
""" Layout: Footer of the dashboard """ # Third party imports import dash_html_components as html subfields = html.Div( [ html.Span('Subfields of SED data used for this department: '), html.Span(id='searchcom-search-subfields') ], id='searchcom-subfields-footer', className='mt-3 text-...
[ 37811, 198, 32517, 25, 7870, 263, 286, 262, 30415, 198, 37811, 198, 198, 2, 10467, 2151, 17944, 198, 11748, 14470, 62, 6494, 62, 5589, 3906, 355, 27711, 628, 198, 7266, 25747, 796, 27711, 13, 24095, 7, 198, 220, 220, 220, 685, 198, ...
2.570313
128
import argparse import os import logging import time import espresso_ir from espresso_ir.mods import (cloudtrail_api, s3_bucket_cloudtrail, ssm_setup, s3_buckets_ir, memdump, flow_logs, get_logs, ec2_snapshot, vpc ) #List of args, Cases number, Region, EC2 instance ID, Dump memeory, Set up API ...
[ 11748, 1822, 29572, 201, 198, 11748, 28686, 201, 198, 11748, 18931, 201, 198, 11748, 640, 201, 198, 201, 198, 201, 198, 11748, 48247, 62, 343, 201, 198, 6738, 48247, 62, 343, 13, 24122, 1330, 357, 17721, 9535, 346, 62, 15042, 11, 264,...
2.351064
188
#!/bin/python import sys totval = map(int,raw_input().split()) i=0 for val in totval: val[i:len(totval)] i = i + val print i
[ 2, 48443, 8800, 14, 29412, 198, 198, 11748, 25064, 628, 198, 83, 313, 2100, 796, 3975, 7, 600, 11, 1831, 62, 15414, 22446, 35312, 28955, 198, 198, 72, 28, 15, 198, 1640, 1188, 287, 2006, 2100, 25, 198, 220, 220, 220, 1188, 58, 72,...
2.15873
63
import pathlib import PIL import matplotlib.pyplot as plt import numpy as np import tensorflow as tf from tensorflow import keras from tensorflow.keras import layers from tensorflow.keras.models import Sequential sport_balls_data_url = 'https://github.com/jjz17/Sport-Ball-Image-Classifier/raw/main/data/sport_ball_ima...
[ 11748, 3108, 8019, 198, 198, 11748, 350, 4146, 198, 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 11192, 273, 11125, 355, 48700, 198, 6738, 11192, 273, 11125, 1330, 41927, 292, ...
2.938878
5,170
#!-*- coding: utf8 -*- from selenium.webdriver.common.keys import Keys from sklearn.naive_bayes import MultinomialNB from selenium import webdriver from bs4 import BeautifulSoup import pandas import time import nltk import os class Message: """This class access the whatsapp, seek for unread messages and replies ...
[ 2, 0, 12, 9, 12, 19617, 25, 3384, 69, 23, 532, 9, 12, 198, 6738, 384, 11925, 1505, 13, 12384, 26230, 13, 11321, 13, 13083, 1330, 26363, 198, 6738, 1341, 35720, 13, 2616, 425, 62, 24406, 274, 1330, 7854, 259, 49070, 32819, 198, 673...
2.147982
2,230
import numpy as np import unittest from linear_solver.core import solve_linear_system from linear_solver.utils.general import get_fn if __name__ == '__main__': unittest.main()
[ 11748, 299, 32152, 355, 45941, 198, 11748, 555, 715, 395, 198, 198, 6738, 14174, 62, 82, 14375, 13, 7295, 1330, 8494, 62, 29127, 62, 10057, 198, 6738, 14174, 62, 82, 14375, 13, 26791, 13, 24622, 1330, 651, 62, 22184, 628, 198, 198, ...
2.920635
63
''' Created on Jan 19, 2015 @author: jcabezas ''' import unittest import figplotter.utils as orig import figplotter.plot.defaults as orig_defaults if __name__ == "__main__": #import sys;sys.argv = ['', 'Test.testName'] unittest.main()
[ 7061, 6, 198, 41972, 319, 2365, 678, 11, 1853, 198, 198, 31, 9800, 25, 474, 66, 397, 8471, 292, 198, 7061, 6, 198, 11748, 555, 715, 395, 198, 198, 11748, 2336, 29487, 353, 13, 26791, 355, 1796, 198, 11748, 2336, 29487, 353, 13, 29...
2.578947
95
# -*- coding: utf-8 -*- from __future__ import division, print_function __all__ = ["test_trivial_solver", "test_basic_solver", "test_hodlr_solver"] import numpy as np import george from george.utils import nd_sort_samples from george import kernels from george import TrivialSolver, BasicSolver, HODLRSolver
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 6738, 11593, 37443, 834, 1330, 7297, 11, 3601, 62, 8818, 198, 198, 834, 439, 834, 796, 14631, 9288, 62, 83, 15104, 498, 62, 82, 14375, 1600, 366, 9288, 62, 35487,...
2.8125
112
#!/usr/bin/env python # -*- coding: utf-8 -*- # # conftest.py # # Copyright 2020 QuatroPe # # This file is part of ProperImage (https://github.com/quatrope/ProperImage) # License: BSD-3-Clause # Full Text: https://github.com/quatrope/ProperImage/blob/master/LICENSE.txt # """ Pytest configuration Written by Bruno SA...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 198, 2, 220, 369, 701, 395, 13, 9078, 198, 2, 198, 2, 220, 15069, 12131, 2264, 47756, 6435, 198, 2, 198, 2, 77...
4.07483
294
#!/usr/bin/python3 import ibm_db import getopt import sys import os from toposort import toposort_flatten db = None host = "localhost" port = "50000" user = None pwd = None outfile = None targetdb = None try: opts, args = getopt.getopt(sys.argv[1:], "h:d:P:u:p:o:t:") except getopt.GetoptError: sys.exit(-1) f...
[ 2, 48443, 14629, 14, 8800, 14, 29412, 18, 198, 198, 11748, 24283, 76, 62, 9945, 198, 11748, 651, 8738, 198, 11748, 25064, 198, 11748, 28686, 198, 6738, 1353, 418, 419, 1330, 1353, 418, 419, 62, 2704, 41769, 198, 198, 9945, 796, 6045, ...
2.168365
1,865
from pyspark import SparkFiles from pyspark.sql import SparkSession, DataFrameWriter from pyspark.sql.functions import when, isnull, col, explode, split import os
[ 6738, 279, 893, 20928, 1330, 17732, 25876, 198, 6738, 279, 893, 20928, 13, 25410, 1330, 17732, 36044, 11, 6060, 19778, 34379, 198, 6738, 279, 893, 20928, 13, 25410, 13, 12543, 2733, 1330, 618, 11, 2125, 724, 11, 951, 11, 22818, 11, 66...
3.543478
46
""" Image utilities. """ import numpy as np import torch import torch.nn as nn import torchvision.utils import torchvision.transforms.functional as F def rgb2tensor(img, normalize=True): """ Converts a RGB image to tensor. Args: img (np.array or list of np.array): RGB image of shape (H, W, 3) or a l...
[ 37811, 7412, 20081, 13, 37227, 198, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 28034, 198, 11748, 28034, 13, 20471, 355, 299, 77, 198, 11748, 28034, 10178, 13, 26791, 198, 11748, 28034, 10178, 13, 7645, 23914, 13, 45124, 355, 376, ...
2.454839
1,550
#!/usr/bin/env python # -*- coding: utf-8 -*- """ __FallbackSample__ Example of a report from a job that had xrootd fallback reads """ from WMCore.Configuration import ConfigSection from WMCore.FwkJobReport.Report import Report FrameworkJobReport = ConfigSection("FrameworkJobReport") FrameworkJobReport.task = '/Run...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 198, 834, 24750, 1891, 36674, 834, 198, 198, 16281, 286, 257, 989, 422, 257, 1693, 326, 550, 2124, 15763, 67, ...
2.828349
1,538
from pybunpro import UserInformation
[ 6738, 12972, 65, 403, 1676, 1330, 11787, 21918, 628 ]
4.222222
9
#!/usr/bin/env python2 from math import sqrt, pow
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 17, 198, 6738, 10688, 1330, 19862, 17034, 11, 7182, 628, 628, 628, 628, 628, 198 ]
2.608696
23
''' Copyright (c) 2015, Emmanuel Levijarvi All rights reserved. License BSD ''' from datetime import datetime from unittest import TestCase import csv import os from iotrelay import Reading from tests.tempodb_mock import Client, DataPoint import iotrelay_tempodb iotrelay_tempodb.Client = Client iotrelay_tempodb.DataPo...
[ 7061, 6, 198, 15269, 357, 66, 8, 1853, 11, 32390, 16042, 2926, 283, 8903, 198, 3237, 2489, 10395, 13, 198, 34156, 347, 10305, 198, 7061, 6, 198, 6738, 4818, 8079, 1330, 4818, 8079, 198, 6738, 555, 715, 395, 1330, 6208, 20448, 198, 1...
2.340909
220
from setuptools import setup, find_packages, Extension REQUIRES = [] NAME = "pidevices" VERSION = "0.0.1" DEPENDENCIES = ['pyalsaaudio==0.8.4', 'picamera==1.13', 'rpi-ws281x==4.2.2', 'pygame==1.9.6', 'evdev==1.2.0', 'omxplayer-wrapper==0.3.2', 'RPi.GPIO==0.7.0', 'smbu...
[ 6738, 900, 37623, 10141, 1330, 9058, 11, 1064, 62, 43789, 11, 27995, 198, 198, 2200, 10917, 4663, 1546, 796, 17635, 198, 20608, 796, 366, 79, 485, 85, 1063, 1, 198, 43717, 796, 366, 15, 13, 15, 13, 16, 1, 198, 198, 46162, 10619, 2...
1.828215
1,042
from typing import cast from aries_cloudagent.core.profile import ProfileSession from aries_cloudagent.indy.holder import IndyHolderError from aries_cloudagent.indy.models.requested_creds import ( IndyRequestedCredsRequestedAttrSchema, IndyRequestedCredsRequestedPredSchema, ) from aries_cloudagent.ledger.error...
[ 6738, 19720, 1330, 3350, 198, 198, 6738, 257, 1678, 62, 17721, 25781, 13, 7295, 13, 13317, 1330, 13118, 36044, 198, 6738, 257, 1678, 62, 17721, 25781, 13, 521, 88, 13, 13829, 1330, 26023, 39, 19892, 12331, 198, 6738, 257, 1678, 62, 17...
2.304965
2,397
import itertools if __name__ == '__main__': main()
[ 11748, 340, 861, 10141, 628, 628, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 198, 220, 220, 220, 1388, 3419, 198 ]
2.458333
24
import datetime from django.core.urlresolvers import reverse from django.utils.text import slugify from neomodel import IntegerProperty, StructuredNode, StringProperty, db, DateProperty, RelationshipFrom, \ RelationshipTo, StructuredRel, Relationship, BooleanProperty EDITABLE_PROPERTIES = { # labels: {propert...
[ 11748, 4818, 8079, 198, 198, 6738, 42625, 14208, 13, 7295, 13, 6371, 411, 349, 690, 1330, 9575, 198, 6738, 42625, 14208, 13, 26791, 13, 5239, 1330, 31065, 1958, 198, 6738, 497, 296, 375, 417, 1330, 34142, 21746, 11, 32112, 1522, 19667, ...
2.663842
354
############################################################################## # Collection Manipulators # ============================================================================ ############################################################################## from typing import Mapping, Sequence
[ 29113, 29113, 7804, 4242, 2235, 198, 2, 12251, 35045, 24325, 198, 2, 38093, 2559, 18604, 198, 29113, 29113, 7804, 4242, 2235, 198, 198, 6738, 19720, 1330, 337, 5912, 11, 45835, 628 ]
9.741935
31
# coding: utf-8 from __future__ import unicode_literals from .common import InfoExtractor from .vk import VKIE from ..utils import ( HEADRequest, int_or_none, )
[ 2, 19617, 25, 3384, 69, 12, 23, 198, 6738, 11593, 37443, 834, 1330, 28000, 1098, 62, 17201, 874, 198, 198, 6738, 764, 11321, 1330, 14151, 11627, 40450, 198, 6738, 764, 85, 74, 1330, 45917, 10008, 198, 6738, 11485, 26791, 1330, 357, 19...
2.803279
61
# Copyright (c) 2012 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """Defines TestPackageExecutable to help run stand-alone executables.""" import logging import os import posixpath import sys import tempfile from pyli...
[ 2, 15069, 357, 66, 8, 2321, 383, 18255, 1505, 46665, 13, 1439, 2489, 10395, 13, 198, 2, 5765, 286, 428, 2723, 2438, 318, 21825, 416, 257, 347, 10305, 12, 7635, 5964, 326, 460, 307, 198, 2, 1043, 287, 262, 38559, 24290, 2393, 13, 1...
2.81592
402
import os if __name__ == "__main__": run_tests()
[ 11748, 28686, 198, 198, 361, 11593, 3672, 834, 6624, 366, 834, 12417, 834, 1298, 198, 220, 220, 220, 1057, 62, 41989, 3419 ]
2.409091
22
from abc import ABCMeta from django.urls import reverse from lib.tests.utils import ClientTest, sample_image_as_file from ..models import LabelGroup, Label # Abstract class
[ 6738, 450, 66, 1330, 9738, 48526, 198, 198, 6738, 42625, 14208, 13, 6371, 82, 1330, 9575, 198, 198, 6738, 9195, 13, 41989, 13, 26791, 1330, 20985, 14402, 11, 6291, 62, 9060, 62, 292, 62, 7753, 198, 6738, 11485, 27530, 1330, 36052, 132...
3.54
50
def convert_kwargs_to_cmd_line_args(kwargs): """ Helper function to build command line arguments out of dict. """ args = [] for k in sorted(kwargs.keys()): v = kwargs[k] args.append('-{}'.format(k)) if v is not None: args.append('{}'.format(v)) return args ...
[ 198, 198, 4299, 10385, 62, 46265, 22046, 62, 1462, 62, 28758, 62, 1370, 62, 22046, 7, 46265, 22046, 2599, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 5053, 525, 2163, 284, 1382, 3141, 1627, 7159, 503, 286, 8633, 13, 198, 220, 220...
2.338028
213
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'addambiencesimpledialog.ui' # # Created by: PyQt4 UI code generator 4.11.1 # # WARNING! All changes made in this file will be lost! from PyQt4 import QtCore, QtGui try: _fromUtf8 = QtCore.QString.fromUtf8 except AttributeError: try: ...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 2, 5178, 7822, 7560, 422, 3555, 334, 72, 2393, 705, 2860, 4131, 10035, 320, 10137, 498, 519, 13, 9019, 6, 198, 2, 198, 2, 15622, 416, 25, 9485, 48, 83, 19, 12...
2.689655
145
from django.shortcuts import render
[ 6738, 42625, 14208, 13, 19509, 23779, 1330, 8543, 198 ]
4
9
import tensorflow as tf from keras import layers, losses from keras.utils.generic_utils import register_keras_serializable from keras.utils.losses_utils import ReductionV2 as Reduction from keras.utils.tf_utils import shape_type_conversion from .sample import point_sample @register_keras_serializable(package='SegMe>P...
[ 11748, 11192, 273, 11125, 355, 48700, 198, 6738, 41927, 292, 1330, 11685, 11, 9089, 198, 6738, 41927, 292, 13, 26791, 13, 41357, 62, 26791, 1330, 7881, 62, 6122, 292, 62, 46911, 13821, 198, 6738, 41927, 292, 13, 26791, 13, 22462, 274, ...
3.484211
95
import logging from datetime import datetime, timedelta, date from xml.sax.saxutils import unescape from epg2xml.providers import EPGProvider, EPGProgram from epg2xml.providers import ParserBeautifulSoup as BeautifulSoup from epg2xml.utils import request_data log = logging.getLogger(__name__.rsplit(".", maxsp...
[ 11748, 18931, 201, 198, 6738, 4818, 8079, 1330, 4818, 8079, 11, 28805, 12514, 11, 3128, 201, 198, 6738, 35555, 13, 82, 897, 13, 82, 897, 26791, 1330, 555, 41915, 201, 198, 201, 198, 6738, 2462, 70, 17, 19875, 13, 15234, 4157, 1330, ...
2.914286
140
''' using length to validate input # ask for a six digit number and print to the console flag = True while flag == True: try: usr_num = input("Please enter a six digit number: ") if float(usr_num): if len(usr_num) > 6 : print("Number is too big!") elif len...
[ 7061, 6, 1262, 4129, 284, 26571, 5128, 198, 2, 1265, 329, 257, 2237, 16839, 1271, 290, 3601, 284, 262, 8624, 198, 32109, 796, 6407, 198, 4514, 6056, 6624, 6407, 25, 198, 220, 220, 220, 1949, 25, 198, 220, 220, 220, 220, 220, 220, ...
2.306789
766
# This code is part of Qiskit. # # (C) Copyright IBM 2020, 2021. # # This code is licensed under the Apache License, Version 2.0. You may # obtain a copy of this license in the LICENSE.txt file in the root directory # of this source tree or at http://www.apache.org/licenses/LICENSE-2.0. # # Any modifications or derivat...
[ 2, 770, 2438, 318, 636, 286, 1195, 1984, 270, 13, 198, 2, 198, 2, 357, 34, 8, 15069, 19764, 12131, 11, 33448, 13, 198, 2, 198, 2, 770, 2438, 318, 11971, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 13, 921, 743, 198, 2, 733...
2.35746
1,575
import os import django from channels.routing import get_default_application os.environ.setdefault('DJANGO_SETTINGS_MODULE','locallibrarysettings') django.setup() application = get_default_application()
[ 11748, 28686, 198, 198, 11748, 42625, 14208, 198, 198, 6738, 9619, 13, 81, 13660, 1330, 651, 62, 12286, 62, 31438, 198, 198, 418, 13, 268, 2268, 13, 2617, 12286, 10786, 35028, 1565, 11230, 62, 28480, 51, 20754, 62, 33365, 24212, 41707, ...
3.25
64