content
stringlengths
1
1.05M
input_ids
listlengths
1
883k
ratio_char_token
float64
1
22.9
token_count
int64
1
883k
from imutils import face_utils from scipy.spatial import distance import cv2 import dlib import imutils import pygame import time # Initializing the alert sound pygame.mixer.init() alert_sound = pygame.mixer.Sound("alert_sound.wav") default_volume = 0.2 # Eye-Aspect-Ratio data EAR_threshhold = 0.17 # One valid frame ...
[ 6738, 545, 26791, 1330, 1986, 62, 26791, 198, 6738, 629, 541, 88, 13, 2777, 34961, 1330, 5253, 198, 11748, 269, 85, 17, 198, 11748, 288, 8019, 198, 11748, 545, 26791, 198, 11748, 12972, 6057, 198, 11748, 640, 198, 198, 2, 20768, 2890,...
2.340963
1,267
#!/usr/bin/env python3 # < trunk-tap.py > # Version 1.0 < 20171022 > # Copyright 2017: Alexander Schreiber < schreiberstein[at]gmail.com > # https://github.com/schreiberstein/trunk-tap.py # MIT License: # ============ # Permission is hereby granted, free of charge, to any person obtaining a copy of this software and...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 198, 2, 1279, 21427, 12, 44335, 13, 9078, 1875, 198, 2, 10628, 352, 13, 15, 1279, 2177, 940, 1828, 1875, 220, 198, 2, 15069, 2177, 25, 10009, 3059, 260, 1856, 1279, 5513, 260, ...
3.342361
1,440
# Copyright 2020 Microsoft 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...
[ 2, 15069, 12131, 5413, 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...
2.578676
1,163
from __future__ import print_function import os import neat # 2-input XOR inputs and expected outputs. xor_inputs = [(0.0, 0.0), (0.0, 1.0), (1.0, 0.0), (1.0, 1.0)] xor_outputs = [(0.0,),(1.0,),(1.0,),(0.0,)] local_dir = os.path.dirname(__file__) config_path = os.path.join(local_dir, 'config-feedforward') run(conf...
[ 6738, 11593, 37443, 834, 1330, 3601, 62, 8818, 198, 11748, 28686, 198, 11748, 15049, 198, 198, 2, 362, 12, 15414, 1395, 1581, 17311, 290, 2938, 23862, 13, 198, 87, 273, 62, 15414, 82, 796, 47527, 15, 13, 15, 11, 657, 13, 15, 828, ...
2.231293
147
""" _ _____ _ _ |_| __ | |___ ___| |_ | | __ -| | . | _| '_| |_|_____|_|___|___|_,_| iBlock is a machine learning video game! This game is played on a 8x6 board (48 spaces) and the goal is to fill up the enemy's column with your pieces! Once that happens the game will reset and log all the data for the ...
[ 37811, 198, 4808, 220, 29343, 4808, 220, 220, 220, 220, 220, 220, 220, 220, 4808, 220, 220, 220, 198, 91, 62, 91, 11593, 220, 930, 930, 17569, 46444, 91, 930, 62, 220, 198, 91, 930, 11593, 532, 91, 930, 764, 930, 220, 4808, 91, ...
2.908658
2,102
if __name__ == "__main__": main()
[ 198, 198, 361, 11593, 3672, 834, 6624, 366, 834, 12417, 834, 1298, 198, 220, 220, 220, 1388, 3419, 198 ]
2.105263
19
"""Action Module circuits component to update incidents from QRadar Ariel queries""" import logging from datetime import datetime import time import copy import json from string import Template from pkg_resources import Requirement, resource_filename import resilient_circuits.template_functions as template_functions fr...
[ 37811, 12502, 19937, 24907, 7515, 284, 4296, 10207, 422, 1195, 15546, 283, 33364, 20743, 37811, 198, 11748, 18931, 198, 6738, 4818, 8079, 1330, 4818, 8079, 198, 11748, 640, 198, 11748, 4866, 198, 11748, 33918, 198, 6738, 4731, 1330, 37350, ...
2.563676
2,285
#! /usr/bin/env python # -*- coding: utf-8 -*- from email import encoders from email.header import Header from email.mime.multipart import MIMEBase, MIMEMultipart from email.mime.text import MIMEText from email.utils import parseaddr, formataddr import smtplib # # from_addr = input('From') password = input('Passw...
[ 2, 0, 1220, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 6738, 3053, 1330, 2207, 375, 364, 198, 6738, 3053, 13, 25677, 1330, 48900, 198, 6738, 3053, 13, 76, 524, 13, ...
2.15818
923
#!/usr/bin/env python # encoding=utf-8 """ Copyright (c) 2021 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 SOFT...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 21004, 28, 40477, 12, 23, 198, 37811, 198, 15269, 357, 66, 8, 33448, 43208, 21852, 1766, 1539, 43, 8671, 13, 198, 198, 9654, 35389, 1046, 318, 11971, 739, 17996, 272, 6599, 43, 41...
2.94709
189
__author__ = 'schien' from django.contrib import admin from django.contrib.auth.admin import UserAdmin from django.contrib.auth.models import User from django.contrib.admin import BooleanFieldListFilter from api.models import Scan, Measure, InstalledMeasure, MeasureCategory, App, MessageThread, RedirectUrl, Trackabl...
[ 198, 198, 834, 9800, 834, 796, 705, 20601, 2013, 6, 198, 6738, 42625, 14208, 13, 3642, 822, 1330, 13169, 198, 6738, 42625, 14208, 13, 3642, 822, 13, 18439, 13, 28482, 1330, 11787, 46787, 198, 6738, 42625, 14208, 13, 3642, 822, 13, 184...
3.315217
368
import numpy as np from scipy.sparse import csc_matrix, diags, tril from .basis import Basis __author__ = 'Randall' # TODO: complete this class # todo: compare performance of csr_matrix and csc_matrix to deal with sparse interpolation operators # fixme: interpolation is 25 slower than in matlab when 2 dimensions!! 2x ...
[ 11748, 299, 32152, 355, 45941, 198, 6738, 629, 541, 88, 13, 82, 29572, 1330, 269, 1416, 62, 6759, 8609, 11, 2566, 3775, 11, 491, 346, 198, 6738, 764, 12093, 271, 1330, 6455, 271, 198, 198, 834, 9800, 834, 796, 705, 38918, 439, 6, ...
3.376238
101
import os import os.path import sys # Modified version from Python-3.3. 'env' environ dict override has been added. def which(cmd, mode=os.F_OK | os.X_OK, env=None): """Given a command, mode, and a PATH string, return the path which conforms to the given mode on the PATH, or None if there is no such file...
[ 11748, 28686, 198, 11748, 28686, 13, 6978, 198, 11748, 25064, 628, 198, 2, 40499, 2196, 422, 11361, 12, 18, 13, 18, 13, 705, 24330, 6, 551, 2268, 8633, 20957, 468, 587, 2087, 13, 198, 198, 4299, 543, 7, 28758, 11, 4235, 28, 418, 1...
2.453089
874
"""Defines the classes SymbolTable and SymbolTableNode""" import sys from numpy import ones
[ 37811, 7469, 1127, 262, 6097, 38357, 10962, 290, 38357, 10962, 19667, 37811, 198, 11748, 25064, 198, 6738, 299, 32152, 1330, 3392, 628 ]
4.227273
22
from setuptools import setup, version setup( name="NorthNet", version="0.0", author="William E. Robinson", packages = ["NorthNet"], )
[ 6738, 900, 37623, 10141, 1330, 9058, 11, 2196, 198, 198, 40406, 7, 198, 220, 220, 220, 1438, 2625, 14157, 7934, 1600, 198, 220, 220, 220, 2196, 2625, 15, 13, 15, 1600, 198, 220, 220, 220, 1772, 2625, 17121, 412, 13, 12652, 1600, 198...
2.745455
55
"""Class with high-level methods for processing NAPS and NAPS BE datasets.""" from config import DATA_NAPS_BE_ALL from lib import partition_naps from lib import plot from lib import plot_clusters from lib import plot_clusters_with_probability from lib import plot_setup from lib import read_naps from lib import read_na...
[ 37811, 9487, 351, 1029, 12, 5715, 5050, 329, 7587, 399, 44580, 290, 399, 44580, 9348, 40522, 526, 15931, 198, 198, 6738, 4566, 1330, 42865, 62, 45, 44580, 62, 12473, 62, 7036, 198, 6738, 9195, 1330, 18398, 62, 77, 1686, 198, 6738, 919...
3.481203
133
""" 1618. Maximum Font to Fit a Sentence in a Screen Medium You are given a string text. We want to display text on a screen of width w and height h. You can choose any font size from array fonts, which contains the available font sizes in ascending order. You can use the FontInfo interface to get the width and heigh...
[ 37811, 198, 1433, 1507, 13, 22246, 24060, 284, 25048, 257, 11352, 594, 287, 257, 15216, 198, 31205, 198, 198, 1639, 389, 1813, 257, 4731, 2420, 13, 775, 765, 284, 3359, 2420, 319, 257, 3159, 286, 9647, 266, 290, 6001, 289, 13, 921, ...
3.130607
758
''' Copyright 2022 Airbus SAS 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 dis...
[ 7061, 6, 198, 15269, 33160, 39173, 35516, 198, 198, 26656, 15385, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 5832, 743, 407, 779, 428, 2393, 2845, 287, 11846, 351, 262, 13789, 13, 198, 1639, 743...
3.496296
270
#!/usr/bin/env python3 """ The PyMKM example app. """ __author__ = "Andreas Ehrlund" __version__ = "2.0.4" __license__ = "MIT" import os import csv import json import shelve import logging import logging.handlers import pprint import uuid import sys from datetime import datetime import micromenu import progressbar i...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 37811, 198, 464, 9485, 33907, 44, 1672, 598, 13, 198, 37811, 198, 198, 834, 9800, 834, 796, 366, 31258, 292, 412, 11840, 37525, 1, 198, 834, 9641, 834, 796, 366, 17, 13, 15, 13...
3.012422
161
import ee from ee_plugin import Map dataset = ee.Image('CSP/ERGo/1_0/US/physioDiversity') physiographicDiversity = dataset.select('b1') physiographicDiversityVis = { 'min': 0.0, 'max': 1.0, } Map.setCenter(-94.625, 39.825, 7) Map.addLayer( physiographicDiversity, physiographicDiversityVis, 'Physiographic...
[ 11748, 304, 68, 220, 198, 6738, 304, 68, 62, 33803, 1330, 9347, 220, 198, 198, 19608, 292, 316, 796, 304, 68, 13, 5159, 10786, 34, 4303, 14, 1137, 5247, 14, 16, 62, 15, 14, 2937, 14, 34411, 952, 35, 1608, 11537, 198, 34411, 72, ...
2.522727
132
from django import forms from . import models
[ 6738, 42625, 14208, 1330, 5107, 198, 198, 6738, 764, 1330, 4981, 628 ]
4
12
# -*- coding: utf-8 -*- import base64 print('Choose your choice:') n=''' 1:Encode string to base64 2:Decode base64 to string ''' c=int(eval(input(n))) # if c == 1: #1 print('Type string to be encoded:') inp=input() out = str(base64.encodebytes(inp.encode("utf-8")), "utf-8") prin...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 11748, 2779, 2414, 198, 198, 4798, 10786, 31851, 534, 3572, 25, 11537, 198, 77, 28, 7061, 6, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 352, 25, 483...
2.115556
225
import time, os, sys import scsynth, scosc server = 0 # reference to app's sc server process sndLoader = 0 synthon = 0 # did we start the scsythn process? ##workingpath = os.getcwd() # must be set to the right path in case something special is need sndpath = os.path.join( os.getcwd() , 'sounds' ) synthdefpath = os....
[ 11748, 640, 11, 28686, 11, 25064, 198, 11748, 629, 28869, 400, 11, 629, 17500, 628, 198, 15388, 796, 657, 1303, 4941, 284, 598, 338, 629, 4382, 1429, 198, 82, 358, 17401, 796, 657, 198, 198, 28869, 400, 261, 796, 657, 1303, 750, 356...
2.219947
1,514
import pytest from fastapi import FastAPI from httpx import AsyncClient from starlette.status import HTTP_200_OK pytestmark = pytest.mark.asyncio
[ 11748, 12972, 9288, 198, 6738, 3049, 15042, 1330, 12549, 17614, 198, 6738, 2638, 87, 1330, 1081, 13361, 11792, 198, 6738, 3491, 21348, 13, 13376, 1330, 14626, 62, 2167, 62, 11380, 198, 198, 9078, 9288, 4102, 796, 12972, 9288, 13, 4102, ...
3.288889
45
import linefinder.linefinder as linefinder import linefinder.config as linefinder_config import linefinder.utils.file_management as file_management ######################################################################## sim_name = 'm12i' '''The simulation to run tracking on.''' tag = '{}_sightline'.format( sim_nam...
[ 11748, 1627, 22805, 13, 1370, 22805, 355, 1627, 22805, 198, 11748, 1627, 22805, 13, 11250, 355, 1627, 22805, 62, 11250, 198, 198, 11748, 1627, 22805, 13, 26791, 13, 7753, 62, 27604, 355, 2393, 62, 27604, 198, 198, 29113, 29113, 7804, 19...
2.380692
1,098
# 47. 1+2+3+...+n # 1+2+3+...+nforwhileifelseswitchcaseA?B:C # -*- coding:utf-8 -*-
[ 2, 6298, 13, 352, 10, 17, 10, 18, 10, 986, 10, 77, 198, 198, 2, 352, 10, 17, 10, 18, 10, 986, 10, 77, 1640, 4514, 361, 1424, 274, 42248, 7442, 32, 30, 33, 25, 34, 628, 198, 2, 532, 9, 12, 19617, 25, 40477, 12, 23, 532, 9...
1.72
50
from django.urls import path from .views import AboutTemplateView urlpatterns = [path("", AboutTemplateView.as_view(), name="about")]
[ 6738, 42625, 14208, 13, 6371, 82, 1330, 3108, 628, 198, 6738, 764, 33571, 1330, 7994, 30800, 7680, 198, 198, 6371, 33279, 82, 796, 685, 6978, 7203, 1600, 7994, 30800, 7680, 13, 292, 62, 1177, 22784, 1438, 2625, 10755, 4943, 60, 198 ]
3.341463
41
''' send out activitypub messages ''' from base64 import b64encode from Crypto.PublicKey import RSA from Crypto.Signature import pkcs1_15 from Crypto.Hash import SHA256 from datetime import datetime import json import requests from fedireads import incoming from fedireads.settings import DOMAIN def get_recipients(us...
[ 7061, 6, 3758, 503, 3842, 12984, 6218, 705, 7061, 198, 6738, 2779, 2414, 1330, 275, 2414, 268, 8189, 198, 6738, 36579, 13, 15202, 9218, 1330, 42319, 198, 6738, 36579, 13, 11712, 1300, 1330, 279, 74, 6359, 16, 62, 1314, 198, 6738, 3657...
2.472107
1,201
from django.shortcuts import render from django.http import HttpResponse from django.template import RequestContext, loader from .models import Question # Create your views here.
[ 6738, 42625, 14208, 13, 19509, 23779, 1330, 8543, 198, 6738, 42625, 14208, 13, 4023, 1330, 367, 29281, 31077, 198, 6738, 42625, 14208, 13, 28243, 1330, 19390, 21947, 11, 40213, 198, 198, 6738, 764, 27530, 1330, 18233, 198, 198, 2, 13610, ...
4
46
from __future__ import division from builtins import str from builtins import range from astropy.utils.misc import isiterable from past.utils import old_div import copy import collections import numpy as np import healpy as hp import astropy.units as u import matplotlib.pyplot as plt import matplotlib as mpl from sci...
[ 6738, 11593, 37443, 834, 1330, 7297, 198, 198, 6738, 3170, 1040, 1330, 965, 198, 6738, 3170, 1040, 1330, 2837, 198, 6738, 6468, 28338, 13, 26791, 13, 44374, 1330, 318, 2676, 540, 198, 6738, 1613, 13, 26791, 1330, 1468, 62, 7146, 198, ...
2.140248
16,756
# File: sshcustodian/sshcustodian.py # -*- coding: utf-8 -*- # Python 2/3 Compatibility from __future__ import (unicode_literals, division, absolute_import, print_function) from six.moves import filterfalse """ This module creates a subclass of the main Custodian class in the Custodian project ...
[ 2, 9220, 25, 26678, 66, 436, 375, 666, 14, 45824, 66, 436, 375, 666, 13, 9078, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 2, 11361, 362, 14, 18, 46021, 198, 6738, 11593, 37443, 834, 1330, 357, 46903...
3.665049
412
''' Sherlock: Distributed Locks with a choice of backend ==================================================== :mod:`sherlock` is a library that provides easy-to-use distributed inter-process locks and also allows you to choose a backend of your choice for lock synchronization. |Build Status| |Coverage Status| .. |Bu...
[ 7061, 6, 198, 28782, 5354, 25, 4307, 6169, 406, 3320, 351, 257, 3572, 286, 30203, 198, 10052, 4770, 1421, 198, 198, 25, 4666, 25, 63, 82, 372, 5354, 63, 318, 257, 5888, 326, 3769, 2562, 12, 1462, 12, 1904, 9387, 987, 12, 14681, 19...
3.049761
2,934
from typing import List, Tuple, Union import torch import torch.nn as nn import torch.nn.functional as F import numpy as np import random from skimage.draw import random_shapes import os import json def get_masks_for_training( mask_shapes: List[Tuple] = [(1, 128, 128), (1, 64, 64), (1, 32, 32), (1, 1...
[ 6738, 19720, 1330, 7343, 11, 309, 29291, 11, 4479, 198, 198, 11748, 28034, 198, 11748, 28034, 13, 20471, 355, 299, 77, 198, 11748, 28034, 13, 20471, 13, 45124, 355, 376, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 4738, 198, 6738, ...
2.295233
1,846
import math from typing import Dict, List, Tuple, Union from EasyMCDM.models.MCDM import MCDM # Instant-Runoff Multicriteria Optimization (IRMO)
[ 11748, 10688, 201, 198, 6738, 19720, 1330, 360, 713, 11, 7343, 11, 309, 29291, 11, 4479, 201, 198, 201, 198, 6738, 16789, 44, 8610, 44, 13, 27530, 13, 44, 8610, 44, 1330, 337, 8610, 44, 201, 198, 201, 198, 2, 24470, 12, 10987, 236...
2.763636
55
import numpy as np from rpy2.robjects import FloatVector from rpy2.robjects.packages import importr from rpy2 import robjects stats = importr('stats') base = importr('base')
[ 11748, 299, 32152, 355, 45941, 198, 6738, 374, 9078, 17, 13, 22609, 752, 82, 1330, 48436, 38469, 198, 6738, 374, 9078, 17, 13, 22609, 752, 82, 13, 43789, 1330, 1330, 81, 198, 6738, 374, 9078, 17, 1330, 3857, 752, 82, 198, 34242, 796...
3
60
# Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. import unittest from azure.functions.decorators.constants import TIMER_TRIGGER from azure.functions.decorators.core import BindingDirection, DataType from azure.functions.decorators.timer import TimerTrigger
[ 2, 220, 15069, 357, 66, 8, 5413, 10501, 13, 1439, 2489, 10395, 13, 198, 2, 220, 49962, 739, 262, 17168, 13789, 13, 198, 11748, 555, 715, 395, 198, 198, 6738, 35560, 495, 13, 12543, 2733, 13, 12501, 273, 2024, 13, 9979, 1187, 1330, ...
3.517241
87
import socket import threading import time from threading import Thread import utilities as utils import error_handling as check BUFFER_SIZE = 1024 BROADCAST_MAC = "FF:FF:FF:FF:FF:FF"
[ 11748, 17802, 198, 11748, 4704, 278, 198, 11748, 640, 198, 6738, 4704, 278, 1330, 14122, 198, 11748, 20081, 355, 3384, 4487, 198, 11748, 4049, 62, 4993, 1359, 355, 2198, 198, 198, 19499, 45746, 62, 33489, 796, 28119, 198, 11473, 41048, ...
3.189655
58
import json from great_expectations.core.util import convert_to_json_serializable from great_expectations.types import SerializableDictDot, safe_deep_copy from great_expectations.util import deep_filter_properties_iterable
[ 11748, 33918, 198, 198, 6738, 1049, 62, 1069, 806, 602, 13, 7295, 13, 22602, 1330, 10385, 62, 1462, 62, 17752, 62, 46911, 13821, 198, 6738, 1049, 62, 1069, 806, 602, 13, 19199, 1330, 23283, 13821, 35, 713, 35, 313, 11, 3338, 62, 220...
3.515625
64
# #1. Health check # # Ask user for their temperature. # # If the user enters below 35, then output "not too cold" # # If 35 to 37 (inclusive), output "all right" # # If the temperature over 37, then output "possible fever" # user_temp = float(input('What is your temperature?')) if user_temp < 35: print('not too ...
[ 2, 1303, 16, 13, 3893, 2198, 198, 2, 1303, 16981, 2836, 329, 511, 5951, 13, 198, 2, 1303, 1002, 262, 2836, 14170, 2174, 3439, 11, 788, 5072, 366, 1662, 1165, 4692, 1, 198, 2, 1303, 1002, 3439, 284, 5214, 357, 259, 5731, 828, 5072,...
3.118056
144
import json from tests.factories import (NOWSubmissionFactory, MineFactory, NOWClientFactory, NOWApplicationIdentityFactory)
[ 11748, 33918, 198, 198, 6738, 5254, 13, 22584, 1749, 1330, 357, 45669, 7004, 3411, 22810, 11, 11517, 22810, 11, 20229, 11792, 22810, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, ...
2.644068
59
from output.models.nist_data.list_pkg.non_positive_integer.schema_instance.nistschema_sv_iv_list_non_positive_integer_enumeration_2_xsd.nistschema_sv_iv_list_non_positive_integer_enumeration_2 import ( NistschemaSvIvListNonPositiveIntegerEnumeration2, NistschemaSvIvListNonPositiveIntegerEnumeration2Type, ) __a...
[ 6738, 5072, 13, 27530, 13, 77, 396, 62, 7890, 13, 4868, 62, 35339, 13, 13159, 62, 24561, 62, 41433, 13, 15952, 2611, 62, 39098, 13, 77, 1023, 2395, 2611, 62, 21370, 62, 452, 62, 4868, 62, 13159, 62, 24561, 62, 41433, 62, 268, 6975...
2.554286
175
import time cache = {} print(cache_compute(1, 2)) print(cache_compute(3, 5)) print(cache_compute(3, 5)) print(cache_compute(6, 7)) print(cache_compute(1, 2))
[ 11748, 640, 628, 198, 198, 23870, 796, 23884, 628, 198, 198, 4798, 7, 23870, 62, 5589, 1133, 7, 16, 11, 362, 4008, 198, 4798, 7, 23870, 62, 5589, 1133, 7, 18, 11, 642, 4008, 198, 4798, 7, 23870, 62, 5589, 1133, 7, 18, 11, 642, ...
2.309859
71
from datetime import datetime import jwt from src import ConfigManager secret = ConfigManager.get_config("DL_COOKIE_SECRET_KEY") secure = ConfigManager.get_config("APP_SECURE")
[ 6738, 4818, 8079, 1330, 4818, 8079, 198, 198, 11748, 474, 46569, 198, 198, 6738, 12351, 1330, 17056, 13511, 198, 198, 21078, 796, 17056, 13511, 13, 1136, 62, 11250, 7203, 19260, 62, 34, 15308, 10008, 62, 23683, 26087, 62, 20373, 4943, 1...
3.192982
57
# Copyright 2020 by Roman Khuramshin <mr.linqu@gmail.com>. # All rights reserved. # This file is part of the Intsa Term Client - X2Go terminal client for Windows, # and is released under the "MIT License Agreement". Please see the LICENSE # file that should have been included as part of this package. import logging i...
[ 2, 15069, 12131, 416, 7993, 5311, 333, 321, 1477, 259, 1279, 43395, 13, 2815, 421, 31, 14816, 13, 785, 28401, 198, 2, 1439, 2489, 10395, 13, 198, 2, 770, 2393, 318, 636, 286, 262, 2558, 11400, 35118, 20985, 532, 1395, 17, 5247, 1209...
3.92233
103
import unittest import sys sys.path.append(".") sys.path.insert(0, '..\\') from calculator.simplecalculator import Calculator if __name__ == '__main__': unittest.main()
[ 11748, 555, 715, 395, 198, 11748, 25064, 198, 17597, 13, 6978, 13, 33295, 7203, 19570, 198, 17597, 13, 6978, 13, 28463, 7, 15, 11, 705, 492, 6852, 11537, 198, 6738, 28260, 13, 36439, 9948, 3129, 1352, 1330, 43597, 628, 198, 361, 11593...
2.868852
61
#!/usr/bin/python3 # -*- coding: utf-8 -*- import datetime import sys import subprocess import os from playsound import playsound # ****************************************************************** # Definitionen # ****************************************************************** filename = 'countdown.txt' audiof...
[ 2, 48443, 14629, 14, 8800, 14, 29412, 18, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 11748, 4818, 8079, 198, 11748, 25064, 198, 11748, 850, 14681, 198, 11748, 28686, 198, 6738, 5341, 633, 1330, 5341, 63...
4.422222
180
# -*- coding: utf-8 -*- ## Author: Aziz Khan ## License: GPL v3 ## Copyright 2017 Aziz Khan <azez.khan__AT__gmail.com> from rest_framework import serializers from portal.models import Matrix, MatrixAnnotation from django.http import HttpRequest
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2235, 6434, 25, 7578, 528, 11356, 198, 2235, 13789, 25, 38644, 410, 18, 198, 2235, 15069, 220, 2177, 7578, 528, 11356, 1279, 6201, 89, 13, 74, 7637, 834, 1404, 834, 14...
3.08642
81
import torch import torch.nn as nn from generator_model import G1, G2 from helper_functions.Blocks import downBlock, Block3x3_leakRelu from helper_functions.ret_image import Interpolate, condAugmentation from helper_functions.initial_weights import weights_init from helper_functions.losses import KLloss, custom_loss fr...
[ 11748, 28034, 198, 11748, 28034, 13, 20471, 355, 299, 77, 198, 6738, 17301, 62, 19849, 1330, 402, 16, 11, 402, 17, 198, 6738, 31904, 62, 12543, 2733, 13, 45356, 1330, 866, 12235, 11, 9726, 18, 87, 18, 62, 293, 461, 6892, 84, 198, ...
3.525
120
import numpy as np def NDVI(nir,red): ''' # https://eos.com/make-an-analysis/ndvi/ Inputs: nxm numpy arrays NIR reflection in the near-infrared spectrum RED reflection in the red range of the spectrum ''' num = nir-red dom = nir+red ndvi = np.divide(num,dom) ndvi[np...
[ 11748, 299, 32152, 355, 45941, 198, 198, 4299, 25524, 12861, 7, 32986, 11, 445, 2599, 198, 220, 220, 220, 705, 7061, 198, 220, 220, 220, 1303, 3740, 1378, 68, 418, 13, 785, 14, 15883, 12, 272, 12, 20930, 14, 358, 8903, 14, 220, 19...
2.171429
175
from starlette.applications import Starlette from starlette.responses import JSONResponse from api import workflow import oyaml as yaml app = Starlette(debug=True)
[ 6738, 3491, 21348, 13, 1324, 677, 602, 1330, 2907, 21348, 198, 6738, 3491, 21348, 13, 16733, 274, 1330, 19449, 31077, 198, 6738, 40391, 1330, 30798, 198, 11748, 35104, 43695, 355, 331, 43695, 198, 198, 1324, 796, 2907, 21348, 7, 24442, ...
3.75
44
# -*- coding: utf-8 -*- DESC = "tsf-2018-03-26" INFO = { "DeletePublicConfig": { "params": [ { "name": "ConfigId", "desc": "ID" } ], "desc": "" }, "DescribeSimpleGroups": { "params": [ { "name": "GroupIdList", "desc": "ID" }, { ...
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 30910, 34, 796, 366, 912, 69, 12, 7908, 12, 3070, 12, 2075, 1, 198, 10778, 796, 1391, 198, 220, 366, 38727, 15202, 16934, 1298, 1391, 198, 220, 220, 220, 366, 37266, ...
1.675378
15,458
import onnx from pathlib import Path import subprocess import sys cwd_path = Path.cwd() # obtain list of added or modified files in this PR obtain_diff = subprocess.Popen(['git', 'diff', '--name-only', '--diff-filter=AM', 'origin/master', 'HEAD'], cwd=cwd_path, stdout=subprocess.PIPE, stderr=subprocess.PIPE) stdoutp...
[ 11748, 319, 77, 87, 198, 6738, 3108, 8019, 1330, 10644, 198, 11748, 850, 14681, 198, 11748, 25064, 198, 198, 66, 16993, 62, 6978, 796, 10644, 13, 66, 16993, 3419, 198, 198, 2, 7330, 1351, 286, 2087, 393, 9518, 3696, 287, 428, 4810, ...
2.69181
464
from .utils import Config
[ 6738, 764, 26791, 1330, 17056 ]
5
5
import glob import pandas as pd from tqdm import tqdm from classifier import config
[ 11748, 15095, 198, 11748, 19798, 292, 355, 279, 67, 198, 198, 6738, 256, 80, 36020, 1330, 256, 80, 36020, 198, 6738, 1398, 7483, 1330, 4566, 628 ]
3.307692
26
#!/usr/bin/env python from setuptools import setup, find_packages setup( name="urdu_digit", version="0.0.17", keywords=["urdu", "numeric", "digit", "converter"], description="English to Urdu numeric digit converter.", long_description=open('README.md').read(), project_urls={ 'Homepag...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 198, 6738, 900, 37623, 10141, 1330, 9058, 11, 1064, 62, 43789, 628, 198, 40406, 7, 198, 220, 220, 220, 1438, 2625, 333, 646, 62, 27003, 1600, 198, 220, 220, 220, 2196, 2625, 15, 13, ...
2.413534
266
import collections Interval = collections.namedtuple("Interval", "start, end")
[ 11748, 17268, 198, 198, 9492, 2100, 796, 17268, 13, 13190, 83, 29291, 7203, 9492, 2100, 1600, 366, 9688, 11, 886, 4943, 628 ]
3.681818
22
import numpy as np import matplotlib.pyplot as plt
[ 11748, 299, 32152, 355, 45941, 198, 11748, 2603, 29487, 8019, 13, 9078, 29487, 355, 458, 83, 628, 628, 628, 628, 628, 198 ]
2.772727
22
# ! /usr/bin/python # -*- coding: utf-8 -*- # ============================================================================= # Copyright 2020 NVIDIA. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obta...
[ 2, 5145, 1220, 14629, 14, 8800, 14, 29412, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 2, 38093, 25609, 198, 2, 15069, 12131, 15127, 13, 1439, 6923, 33876, 13, 198, 2, 198, 2, 49962, 739, 262, 24843, ...
3.434466
412
import logging import signal from PySide2 import QtCore import vstreamer_utils
[ 11748, 18931, 198, 11748, 6737, 198, 6738, 9485, 24819, 17, 1330, 33734, 14055, 198, 11748, 410, 5532, 263, 62, 26791, 628 ]
3.809524
21
#Define environment variable FABRIC_UTILS_PATH and provide path to fabric_utils before running import time import os from contrail_fixtures import * import testtools from tcutils.commands import * from fabric.context_managers import settings from tcutils.wrappers import preposttest_wrapper from tcutils.util import * fr...
[ 2, 7469, 500, 2858, 7885, 376, 6242, 41132, 62, 3843, 45484, 62, 34219, 290, 2148, 3108, 284, 9664, 62, 26791, 878, 2491, 198, 11748, 640, 198, 11748, 28686, 198, 6738, 25736, 346, 62, 69, 25506, 1330, 1635, 198, 11748, 1332, 31391, 1...
3.942623
122
from server.services.wiki.pages.templates import OverviewPageTemplates from server.services.wiki.pages.page_service import PageService from server.services.wiki.mediawiki_service import MediaWikiService from server.services.wiki.wiki_text_service import WikiTextService from server.services.wiki.wiki_table_service impor...
[ 6738, 4382, 13, 30416, 13, 15466, 13, 31126, 13, 11498, 17041, 1330, 28578, 9876, 12966, 17041, 198, 6738, 4382, 13, 30416, 13, 15466, 13, 31126, 13, 7700, 62, 15271, 1330, 7873, 16177, 198, 6738, 4382, 13, 30416, 13, 15466, 13, 11431, ...
4.165217
115
# Generated by Django 4.0 on 2022-03-06 02:23 from django.db import migrations, models
[ 2, 2980, 515, 416, 37770, 604, 13, 15, 319, 33160, 12, 3070, 12, 3312, 7816, 25, 1954, 198, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 11, 4981, 628 ]
2.966667
30
import imp import os.path from app import db from migrate.versioning import api from config import SQLALCHEMY_DATABASE_URI from config import SQLALCHEMY_MIGRATE_REPO # end of file
[ 11748, 848, 198, 11748, 28686, 13, 6978, 198, 198, 6738, 598, 1330, 20613, 198, 198, 6738, 32492, 13, 9641, 278, 1330, 40391, 198, 198, 6738, 4566, 1330, 16363, 1847, 3398, 3620, 56, 62, 35, 1404, 6242, 11159, 62, 47269, 198, 6738, 45...
2.921875
64
from xmuda.models.SSC2d_proj3d2d import SSC2dProj3d2d from xmuda.data.NYU.nyu_dm import NYUDataModule from xmuda.data.semantic_kitti.kitti_dm import KittiDataModule from xmuda.common.utils.sscMetrics import SSCMetrics from xmuda.data.NYU.params import class_relation_freqs as NYU_class_relation_freqs, class_freq_1_4 as ...
[ 6738, 2124, 76, 15339, 13, 27530, 13, 5432, 34, 17, 67, 62, 1676, 73, 18, 67, 17, 67, 1330, 311, 6173, 17, 67, 2964, 73, 18, 67, 17, 67, 198, 6738, 2124, 76, 15339, 13, 7890, 13, 12805, 52, 13, 3281, 84, 62, 36020, 1330, 48166...
1.880773
2,793
# Author: penhe@microsoft.com # Date: 05/30/2019 # """ Data parallel module """ from collections import OrderedDict import numpy as np import torch from torch.cuda.comm import broadcast_coalesced from torch.cuda.comm import reduce_add_coalesced from torch.nn.parallel import parallel_apply from torch.nn.parallel.scatte...
[ 2, 6434, 25, 3112, 258, 31, 40485, 13, 785, 198, 2, 7536, 25, 8870, 14, 1270, 14, 23344, 198, 2, 198, 37811, 6060, 10730, 8265, 198, 37811, 198, 198, 6738, 17268, 1330, 14230, 1068, 35, 713, 198, 11748, 299, 32152, 355, 45941, 198, ...
3.161111
180
from rest_framework import serializers from .models import User from .models import Product from django.contrib.auth import get_user_model
[ 6738, 1334, 62, 30604, 1330, 11389, 11341, 198, 6738, 764, 27530, 1330, 11787, 198, 6738, 764, 27530, 1330, 8721, 198, 6738, 42625, 14208, 13, 3642, 822, 13, 18439, 1330, 651, 62, 7220, 62, 19849, 628, 198 ]
3.916667
36
''' Author: geekli Date: 2020-12-27 10:38:46 LastEditTime: 2020-12-27 10:40:44 LastEditors: your name Description: FilePath: \pythonQT\ch02\multiSinal_button.py ''' import sys from PyQt5.QtWidgets import QApplication, QWidget, QPushButton if __name__ == '__main__': app = QApplication(sys.argv) demo = Demo()...
[ 7061, 6, 198, 13838, 25, 27314, 4528, 198, 10430, 25, 12131, 12, 1065, 12, 1983, 838, 25, 2548, 25, 3510, 198, 5956, 18378, 7575, 25, 12131, 12, 1065, 12, 1983, 838, 25, 1821, 25, 2598, 198, 5956, 18378, 669, 25, 534, 1438, 198, 1...
2.42953
149
from __main__ import * hm_df = functs_df[~((functs_df.head_type == 'prep') & (functs_df.suffix))].copy()
[ 6738, 11593, 12417, 834, 1330, 1635, 198, 23940, 62, 7568, 796, 1257, 310, 82, 62, 7568, 58, 93, 19510, 12543, 310, 82, 62, 7568, 13, 2256, 62, 4906, 6624, 705, 46012, 11537, 1222, 357, 12543, 310, 82, 62, 7568, 13, 37333, 844, 4008...
2.234043
47
from autodc.components.hpo_optimizer.smac_optimizer import SMACOptimizer from autodc.components.hpo_optimizer.mfse_optimizer import MfseOptimizer from autodc.components.hpo_optimizer.bohb_optimizer import BohbOptimizer from autodc.components.hpo_optimizer.tpe_optimizer import TPEOptimizer
[ 6738, 1960, 375, 66, 13, 5589, 3906, 13, 71, 7501, 62, 40085, 7509, 13, 5796, 330, 62, 40085, 7509, 1330, 9447, 2246, 27871, 320, 7509, 198, 6738, 1960, 375, 66, 13, 5589, 3906, 13, 71, 7501, 62, 40085, 7509, 13, 76, 69, 325, 62, ...
2.719626
107
# -*- coding: utf-8 -*- import sys, select, termios,tty import os if __name__ == "__main__": main()
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 11748, 25064, 11, 2922, 11, 3381, 4267, 11, 42852, 198, 11748, 28686, 198, 198, 361, 11593, 3672, 834, 6624, 366, 834, 12417, 834, 1298, 198, 220, 1388, 3419 ]
2.428571
42
#!/usr/bin/python3 # Copyright (c) 2019 Bart Massey # [This program is licensed under the "MIT License"] # Please see the file LICENSE in the source # distribution of this software for license terms. # Find maximum and minimum sample in an audio file. import sys import wave as wav # Get the signal file. wavfile = wa...
[ 2, 48443, 14629, 14, 8800, 14, 29412, 18, 198, 2, 15069, 357, 66, 8, 13130, 13167, 11066, 4397, 198, 2, 685, 1212, 1430, 318, 11971, 739, 262, 366, 36393, 13789, 8973, 198, 2, 4222, 766, 262, 2393, 38559, 24290, 287, 262, 2723, 198,...
2.473083
613
''' A very simple test application to exercise a round trip of messages through the thywill system. This also illustrates the bare, bare minimum implementation of the 'thywill_interface.py' module - all it does is echo back incoming messages to the client who sent them. '''
[ 7061, 6, 198, 32, 845, 2829, 1332, 3586, 284, 5517, 257, 2835, 5296, 286, 6218, 832, 262, 11906, 10594, 1080, 13, 198, 198, 1212, 635, 21290, 262, 6247, 11, 6247, 5288, 7822, 286, 262, 705, 20057, 10594, 62, 39994, 13, 9078, 6, 8265...
4.365079
63
from tests import app
[ 6738, 5254, 1330, 598, 628 ]
4.6
5
import typing from jk_cachefunccalls import cacheCalls from jk_cmdoutputparsinghelper import ValueParser_ByteWithUnit from .parsing_utils import * from .invoke_utils import run #import jk_json _parserColonKVP = ParseAtFirstDelimiter(delimiter=":", valueCanBeWrappedInDoubleQuotes=False, keysReplaceSpacesWithUnders...
[ 198, 11748, 19720, 198, 198, 6738, 474, 74, 62, 23870, 12543, 535, 5691, 1330, 12940, 34, 5691, 198, 6738, 474, 74, 62, 28758, 22915, 79, 945, 278, 2978, 525, 1330, 11052, 46677, 62, 40778, 3152, 26453, 198, 198, 6738, 764, 79, 945, ...
2.22551
3,042
''' This module provides the Telegram. '''
[ 7061, 6, 198, 1212, 8265, 3769, 262, 50203, 13, 198, 7061, 6, 628 ]
3.384615
13
from testing_framework.report import report from typing import Tuple import html
[ 6738, 4856, 62, 30604, 13, 13116, 1330, 989, 198, 6738, 19720, 1330, 309, 29291, 198, 11748, 27711 ]
4.705882
17
while(True): inp = [int(x) for x in input().split()] if inp[0] == 0 and inp[1] == 0: break print(inp[0]//inp[1], inp[0]%inp[1], "/", inp[1])
[ 4514, 7, 17821, 2599, 198, 220, 220, 220, 287, 79, 796, 685, 600, 7, 87, 8, 329, 2124, 287, 5128, 22446, 35312, 3419, 60, 198, 220, 220, 220, 611, 287, 79, 58, 15, 60, 6624, 657, 290, 287, 79, 58, 16, 60, 6624, 657, 25, 198, ...
1.797753
89
#!/usr/bin/env python import sys import time import rospy import subprocess import actionlib from std_msgs.msg import Float32 from sensor_msgs.msg import Joy from geometry_msgs.msg import Twist, PoseWithCovarianceStamped from actionlib_msgs.msg import GoalStatus, GoalStatusArray from move_base_msgs.msg import MoveBase...
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 11748, 25064, 198, 11748, 640, 198, 11748, 686, 2777, 88, 198, 11748, 850, 14681, 198, 11748, 2223, 8019, 198, 198, 6738, 14367, 62, 907, 14542, 13, 19662, 1330, 48436, 2624, 198, 6738, ...
3.31068
103
from backend.domain.contracts import NewClient, NewOrder, NewOrderItem from .new_product import NewProduct
[ 6738, 30203, 13, 27830, 13, 28484, 82, 1330, 968, 11792, 11, 968, 18743, 11, 968, 18743, 7449, 198, 198, 6738, 764, 3605, 62, 11167, 1330, 968, 15667, 198 ]
3.857143
28
from uuid import UUID import json from ..mappings import * def add_doc_audit_entry(session, doc_id, status, data): """"Add an audit entry, requires that a commit be run on the session afterwards """ if not isinstance(doc_id, UUID): raise ValueError("Expecting UUID") if not isinstanc...
[ 198, 6738, 334, 27112, 1330, 471, 27586, 198, 198, 11748, 33918, 198, 198, 6738, 11485, 76, 39242, 1330, 1635, 198, 198, 4299, 751, 62, 15390, 62, 3885, 270, 62, 13000, 7, 29891, 11, 2205, 62, 312, 11, 3722, 11, 1366, 2599, 198, 220...
2.490196
204
# versions of libraries used import sys import tweepy import numpy as np import pymongo import emoji import nltk.tokenize import requests print("Python version:{}".format(sys.version)) print("tweepy version:{}".format(tweepy.__version__)) print("pymongo version:{}".format(pymongo.__version__)) print("emoji...
[ 2, 6300, 286, 12782, 973, 201, 198, 11748, 25064, 201, 198, 11748, 4184, 538, 88, 201, 198, 11748, 299, 32152, 355, 45941, 201, 198, 11748, 279, 4948, 25162, 201, 198, 11748, 44805, 201, 198, 11748, 299, 2528, 74, 13, 30001, 1096, 201...
2.796791
187
count_ones(20)
[ 198, 9127, 62, 1952, 7, 1238, 8 ]
2.142857
7
#!/usr/bin/python # -*- coding: utf-8 -*- import dbm from sklearn.datasets import load_iris from classifer.base import BaseClassifier from classifer.decision_tree import DecisionTreeClassifier import numpy as np def test(): n_classes = 3 plot_colors = "bry" plot_step = 0.02 # Load data iris = ...
[ 2, 48443, 14629, 14, 8800, 14, 29412, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 11748, 288, 20475, 198, 6738, 1341, 35720, 13, 19608, 292, 1039, 1330, 3440, 62, 29616, 198, 198, 6738, 1398, 7087, 13, 8692, ...
2.105206
922
import numpy as np from bioinfo.assembly.errors import InvalidPair from bioinfo.molecules.sequence import Sequence
[ 11748, 299, 32152, 355, 45941, 198, 198, 6738, 13401, 10951, 13, 41873, 13, 48277, 1330, 17665, 47, 958, 198, 6738, 13401, 10951, 13, 76, 2305, 13930, 13, 43167, 1330, 45835, 628, 198 ]
3.6875
32
from __future__ import annotations from . import _base
[ 6738, 11593, 37443, 834, 1330, 37647, 198, 198, 6738, 764, 1330, 4808, 8692, 628 ]
4.071429
14
import pytest def test_with_fixture(fixture2): assert fixture2 == 2
[ 11748, 12972, 9288, 628, 628, 198, 4299, 1332, 62, 4480, 62, 69, 9602, 7, 69, 9602, 17, 2599, 198, 220, 220, 220, 6818, 29220, 17, 6624, 362, 198 ]
2.714286
28
from searcher import CLIPSearcher from utils import get_args if __name__ == "__main__": args = get_args() cs = CLIPSearcher(device=args.device, store_path=args.store_path) cs.load_dir(args.dir, save_every=args.save_every, recursive=args.recursive, load_new=(not args.dont_load_new)) cs.search(texts=args...
[ 6738, 9622, 2044, 1330, 43749, 3705, 50194, 198, 6738, 3384, 4487, 1330, 651, 62, 22046, 198, 198, 361, 11593, 3672, 834, 6624, 366, 834, 12417, 834, 1298, 198, 220, 220, 220, 26498, 796, 651, 62, 22046, 3419, 198, 220, 220, 220, 5011...
2.689655
145
"""For entities that have a property template.""" from gemd.entity.link_by_uid import LinkByUID from gemd.entity.setters import validate_list from gemd.entity.template.base_template import BaseTemplate from gemd.entity.template.property_template import PropertyTemplate from gemd.entity.bounds.base_bounds import BaseBou...
[ 37811, 1890, 12066, 326, 423, 257, 3119, 11055, 526, 15931, 198, 6738, 16840, 67, 13, 26858, 13, 8726, 62, 1525, 62, 27112, 1330, 7502, 3886, 27586, 198, 6738, 16840, 67, 13, 26858, 13, 2617, 1010, 1330, 26571, 62, 4868, 198, 6738, 16...
3.755319
94
from app.models import Subscriber from flask_wtf import FlaskForm from wtforms import TextAreaField, StringField, IntegerField, EmailField from wtforms.validators import InputRequired, ValidationError from flask import flash # comment form # subscriber form
[ 6738, 598, 13, 27530, 1330, 3834, 1416, 24735, 198, 6738, 42903, 62, 86, 27110, 1330, 46947, 8479, 198, 6738, 266, 83, 23914, 1330, 8255, 30547, 15878, 11, 10903, 15878, 11, 34142, 15878, 11, 9570, 15878, 198, 6738, 266, 83, 23914, 13, ...
4
65
import toml
[ 11748, 284, 4029, 628 ]
3.25
4
""" Retrieve GoDaddy DNS settings via their developer API See also: https://developer.godaddy.com/doc/endpoint/domains#/ """ import os import time from pprint import pprint from typing import List import requests import credential_loaders BASE_URL = "https://api.godaddy.com" # You can easily replace these with...
[ 37811, 198, 9781, 30227, 1514, 48280, 18538, 6460, 2884, 511, 8517, 7824, 198, 198, 6214, 635, 25, 198, 220, 220, 220, 3740, 1378, 16244, 263, 13, 25344, 13218, 13, 785, 14, 15390, 14, 437, 4122, 14, 3438, 1299, 2, 14, 198, 37811, 1...
2.522763
1,274
import cv2 import numpy as np
[ 11748, 220, 269, 85, 17, 201, 198, 11748, 299, 32152, 355, 45941, 220, 201 ]
2.357143
14
# -*- coding: utf-8 -*- from .tables.pronto_soccorsi import table
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 6738, 764, 83, 2977, 13, 1050, 5957, 62, 82, 13966, 35255, 1330, 3084, 628 ]
2.344828
29
# -*- coding: utf-8 -*- # @Author : Administrator # @DateTime : 2021/10/17 20:40 # @FileName : __init__.py # @SoftWare : PyCharm
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 2488, 13838, 220, 220, 1058, 22998, 198, 2, 2488, 10430, 7575, 1058, 33448, 14, 940, 14, 1558, 1160, 25, 1821, 198, 2, 2488, 8979, 5376, 1058, 11593, 15003, 834, 13...
2.357143
56
import requests from datetime import date, timedelta today = date.today() yesterday = today - timedelta(days=1) country = "Russia" endpoint = f"https://api.covid19api.com/country/{country}/status/confirmed" params = {"from": str(yesterday), "to": str(today)} response = requests.get(endpoint, params=params).json() tot...
[ 11748, 7007, 198, 6738, 4818, 8079, 1330, 3128, 11, 28805, 12514, 198, 198, 40838, 796, 3128, 13, 40838, 3419, 198, 8505, 6432, 796, 1909, 532, 28805, 12514, 7, 12545, 28, 16, 8, 198, 19315, 796, 366, 16347, 1, 198, 437, 4122, 796, ...
3.012121
165
# import models from torchvision from torchvision.models import * # import models from efficientnet from .efficientnet import b0, b1, b2, b3, b4, b5, b6, b7
[ 2, 1330, 4981, 422, 28034, 10178, 198, 6738, 28034, 10178, 13, 27530, 1330, 1635, 198, 2, 1330, 4981, 422, 6942, 3262, 198, 6738, 764, 16814, 3262, 1330, 275, 15, 11, 275, 16, 11, 275, 17, 11, 275, 18, 11, 275, 19, 11, 275, 20, ...
3.078431
51
#This file plots the results from the MPI timing runs import sys import numpy as np from mpl_toolkits.mplot3d import Axes3D import matplotlib.pyplot as plt import matplotlib.markers as mkr plt_style='ggplot' plt.rcParams['font.size'] = 11 plt.rcParams['font.family'] = 'serif' plt.rcParams['axes.labelsize'] = 11 plt.rc...
[ 2, 1212, 2393, 21528, 262, 2482, 422, 262, 4904, 40, 10576, 4539, 198, 11748, 25064, 198, 11748, 299, 32152, 355, 45941, 198, 6738, 285, 489, 62, 25981, 74, 896, 13, 76, 29487, 18, 67, 1330, 12176, 274, 18, 35, 198, 11748, 2603, 294...
2.160061
1,312
from typing import Iterator from entitykb import Span, interfaces, Doc
[ 6738, 19720, 1330, 40806, 1352, 198, 198, 6738, 9312, 32812, 1330, 49101, 11, 20314, 11, 14432, 628, 628, 628 ]
4.052632
19
# # Copyright (c) 2021 Airbyte, Inc., all rights reserved. # import pytest from click.testing import CliRunner from octavia_cli import entrypoint
[ 2, 198, 2, 15069, 357, 66, 8, 33448, 3701, 26327, 11, 3457, 1539, 477, 2489, 10395, 13, 198, 2, 198, 198, 11748, 12972, 9288, 198, 6738, 3904, 13, 33407, 1330, 1012, 72, 49493, 198, 6738, 19318, 40543, 62, 44506, 1330, 5726, 4122, 6...
3.386364
44
import json import logging import random from datetime import datetime from typing import Optional from paho.mqtt.client import MQTTMessage from enocean.protocol.constants import PACKET from enocean.protocol.packet import RadioPacket from src.command.switch_command import SwitchCommand from src.common.json_attributes...
[ 11748, 33918, 198, 11748, 18931, 198, 11748, 4738, 198, 6738, 4818, 8079, 1330, 4818, 8079, 198, 6738, 19720, 1330, 32233, 198, 198, 6738, 279, 17108, 13, 76, 80, 926, 13, 16366, 1330, 337, 48, 15751, 12837, 198, 198, 6738, 551, 78, 5...
3.428571
238
import numpy as np import neuroml import neuroml.arraymorph as am
[ 11748, 299, 32152, 355, 45941, 198, 11748, 11943, 296, 75, 198, 11748, 11943, 296, 75, 13, 18747, 24503, 355, 716, 628 ]
3.190476
21