id stringlengths 1 8 | text stringlengths 6 1.05M | dataset_id stringclasses 1
value |
|---|---|---|
/talos-python-3.0.8.0.tar.gz/talos-python-3.0.8.0/talos/consumer/PartitionFetcher.py |
from talos.thrift.topic.ttypes import TopicTalosResourceName
from talos.thrift.topic.ttypes import TopicAndPartition
from talos.consumer.SimpleConsumer import SimpleConsumer
from talos.consumer.MessageReader import MessageReader
from talos.thrift.consumer.ttypes import ConsumeUnit
from talos.thrift.consumer.ttypes imp... | PypiClean |
/kzas-herepy-3.5.2.tar.gz/kzas-herepy-3.5.2/herepy/isoline_routing_api.py |
import sys
import json
import requests
from typing import List, Optional
from herepy.here_api import HEREApi
from herepy.utils import Utils
from herepy.models import IsolineRoutingResponse
from herepy.error import HEREError, UnauthorizedError, InvalidRequestError
from herepy.here_enum import (
IsolineRoutingTrans... | PypiClean |
/napalm-yang-0.1.0.tar.gz/napalm-yang-0.1.0/napalm_yang/models/openconfig/network_instances/network_instance/protocols/protocol/isis/levels/level/link_state_database/lsp/tlvs/tlv/isis_neighbor_attribute/neighbors/neighbor/subTLVs/subTLVs_/unreserved_bandwidth/setup_priority/__init__.py | from operator import attrgetter
from pyangbind.lib.yangtypes import RestrictedPrecisionDecimalType
from pyangbind.lib.yangtypes import RestrictedClassType
from pyangbind.lib.yangtypes import TypedListType
from pyangbind.lib.yangtypes import YANGBool
from pyangbind.lib.yangtypes import YANGListType
from pyangbind.lib.ya... | PypiClean |
/fast-brainfuck-3.0.1.tar.gz/fast-brainfuck-3.0.1/README.md | <p><span><span style="font-family:Verdana, Arial, Helvetica, sans-serif;line-height:19px;text-indent:26px;"><span style="font-size:14px;"><span style="font-family:Arial;line-height:26px;"><br></span></span></span></span></p>
# A big bugfix is applied to this package due to the technique Python uses to import modules.
... | PypiClean |
/jina_search-0.6.3.tar.gz/jina_search-0.6.3/jina/peapods/grpc_asyncio.py | __copyright__ = "Copyright (c) 2020 Jina AI Limited. All rights reserved."
__license__ = "Apache-2.0"
import asyncio
import functools
import inspect
import threading
from concurrent import futures
from grpc import _server
from ..helper import show_ioloop_backend, use_uvloop
use_uvloop()
def _loop_mgr(loop: 'async... | PypiClean |
/tf_object_detection-0.0.3.tar.gz/tf_object_detection-0.0.3/tf_object_detection/research/object_detection/core/box_predictor.py | from abc import abstractmethod
import tensorflow as tf
BOX_ENCODINGS = 'box_encodings'
CLASS_PREDICTIONS_WITH_BACKGROUND = 'class_predictions_with_background'
MASK_PREDICTIONS = 'mask_predictions'
class BoxPredictor(object):
"""BoxPredictor."""
def __init__(self, is_training, num_classes):
"""Constructor.
... | PypiClean |
/django_kelove_database-2.0.0-py3-none-any.whl/django_kelove_database/static/kelove_database/database_doc/js/marked.min.js | (function(){var block={newline:/^\n+/,code:/^( {4}[^\n]+\n*)+/,fences:noop,hr:/^( *[-*_]){3,} *(?:\n+|$)/,heading:/^ *(#{1,6}) *([^\n]+?) *#* *(?:\n+|$)/,nptable:noop,lheading:/^([^\n]+)\n *(=|-){2,} *(?:\n+|$)/,blockquote:/^( *>[^\n]+(\n(?!def)[^\n]+)*\n*)+/,list:/^( *)(bull) [\s\S]+?(?:hr|def|\n{2,}(?! )(?!\1bull )\n... | PypiClean |
/openerp-crm-7.0.406.tar.gz/openerp-crm-7.0.406/report/crm_phonecall_report.py |
from openerp.osv import fields,osv
from openerp import tools
from .. import crm
AVAILABLE_STATES = [
('draft','Draft'),
('open','Todo'),
('cancel', 'Cancelled'),
('done', 'Held'),
('pending','Pending')
]
class crm_phonecall_report(osv.osv):
""" Phone calls by user and section """
_name ... | PypiClean |
/dsin100daysv33-6.0.1.tar.gz/dsin100daysv33-6.0.1/notebook/static/components/MathJax/jax/output/HTML-CSS/fonts/STIX-Web/Fraktur/Bold/Main.js | MathJax.OutputJax["HTML-CSS"].FONTDATA.FONTS["STIXMathJax_Fraktur-bold"]={directory:"Fraktur/Bold",family:"STIXMathJax_Fraktur",weight:"bold",testString:"\u00A0\u210C\u2128\u212D\uD835\uDD6C\uD835\uDD6D\uD835\uDD6E\uD835\uDD6F\uD835\uDD70\uD835\uDD71\uD835\uDD72\uD835\uDD73\uD835\uDD74\uD835\uDD75\uD835\uDD76",32:[0,0,... | PypiClean |
/wallaby-frontend-qt-0.2.45.tar.gz/wallaby-frontend-qt-0.2.45/wallaby/frontends/qt/widgets/labels/imageLabel.py |
import wallaby.FX as FX
from wallaby.qt_combat import *
from ..baseWidget import *
from ..logics import *
from wallaby.pf.peer.imageViewer import *
from wallaby.pf.peer.imageEditor import *
class ImageLabel(QtGui.QLabel, BaseWidget, EnableLogic, ViewLogic, EditLogic):
__metaclass__ = QWallabyMeta
def __in... | PypiClean |
/lib_V3-0.0.0.tar.gz/lib_V3-0.0.0/lib_compute/deserialization.py | import lib_compute.typon_math as typon_math
import lib_py_parse.utils.parsing_utils as parsing_utils
def deserialize_data(target_buffer, target_type, buffer_index, classes):
if buffer_index + 1 > len(target_buffer):
return [None, -1]
target_type = target_type.replace(' ', '')
if targ... | PypiClean |
/mera_tvm_host_only-1.3.1-cp36-cp36m-manylinux_2_27_x86_64.whl/tvm/te/operation.py | """ Operation class for computation declaration."""
import inspect
# pylint: disable=invalid-name
from numbers import Integral as _Integral
from typing import List
import tvm._ffi
import tvm.arith._ffi_api
import tvm.tir
import tvm.tir._ffi_api
from tvm._ffi.base import string_types
from tvm.ir import Array
from tvm.... | PypiClean |
/puzle_gardener-0.3.0a1.tar.gz/puzle_gardener-0.3.0a1/src/generation/services/generate.py | import os
import logging
import shutil
from pathlib import Path
from pystache import render
from src.abstract_tree import Node
from src.config import ProjectConfig
from src.config.models.seed import Seed
from src.generation.services.seed_manager import Seed_Manager
template_file_suffix='.mustache'
class Generator:
... | PypiClean |
/opendr-toolkit-object-tracking-2d-2.0.0.tar.gz/opendr-toolkit-object-tracking-2d-2.0.0/src/opendr/perception/object_tracking_2d/deep_sort/algorithm/deep_sort/sort/kalman_filter.py | import numpy as np
import scipy.linalg
"""
Table for the 0.95 quantile of the chi-square distribution with N degrees of
freedom (contains values for N=1, ..., 9). Taken from MATLAB/Octave's chi2inv
function and used as Mahalanobis gating threshold.
"""
chi2inv95 = {
1: 3.8415,
2: 5.9915,
3: 7.8147,
4:... | PypiClean |
/pytorch-land-0.1.6.tar.gz/pytorch-land-0.1.6/torchland/datasets/mixture_gaussians.py | import math
import numpy as np
import torch
from torch.utils.data import Dataset, DataLoader
from .loader_builder import DataLoaderBuilder
class MixtureOfGaussiansLoaderBuilder(DataLoaderBuilder):
"""DataLoader maker for mixture of Gaussians dataset."""
def __init__(self, total_size: int, batch_size: int, num... | PypiClean |
/azure_maps_route-1.0.0b1-py3-none-any.whl/azure/maps/route/_generated/_configuration.py |
from typing import Any, Optional, TYPE_CHECKING
from azure.core.configuration import Configuration
from azure.core.pipeline import policies
from ._version import VERSION
if TYPE_CHECKING:
# pylint: disable=unused-import,ungrouped-imports
from azure.core.credentials import TokenCredential
class MapsRouteCl... | PypiClean |
/pixiedust-optimus-1.4.0.tar.gz/pixiedust-optimus-1.4.0/pixiedust_optimus/display/chart/renderers/seaborn/sbHistogramDisplay.py |
from pixiedust.display.chart.renderers import PixiedustRenderer
from pixiedust.display.chart.renderers.baseChartDisplay import commonChartOptions
from .seabornBaseDisplay import SeabornBaseDisplay
from pixiedust.display.chart.colorManager import Colors
from pixiedust.utils import Logger
import numpy as np
import panda... | PypiClean |
/ansys_dpf_post-0.5.0.tar.gz/ansys_dpf_post-0.5.0/src/ansys/dpf/post/nodes.py |
from __future__ import annotations
from abc import ABC, abstractmethod
from typing import List
from ansys.dpf.core import errors
import ansys.dpf.core.nodes as core_nodes
class Node:
"""Wrapper class around dpf.core.nodes.Node."""
def __init__(self, node: core_nodes.Node):
"""Constructs a Node fro... | PypiClean |
/katanaframework-1.2.0-py3-none-any.whl/katana/native/wapp_management/static/wapp_management/sweetalert2/src/utils/dom/renderers/renderIcon.js | import { swalClasses, iconTypes } from '../../classes.js'
import { error } from '../../utils.js'
import * as dom from '../../dom/index.js'
import privateProps from '../../../privateProps.js'
export const renderIcon = (instance, params) => {
const innerParams = privateProps.innerParams.get(instance)
// if the give... | PypiClean |
/askbot-tuan-1.5.tar.gz/askbot-tuan-1.5/askbot/setup_templates/static/default/media/js/tinymce/plugins/example/editor_plugin_src.js | (function() {
// Load plugin specific language pack
tinymce.PluginManager.requireLangPack('example');
tinymce.create('tinymce.plugins.ExamplePlugin', {
/**
* Initializes the plugin, this will be executed after the plugin has been created.
* This call is done before the editor instance has finished it's init... | PypiClean |
/legalabs_scrapy_libs-0.0.23-py3-none-any.whl/legalabs_scrapy_libs/create_elastic.py | import os
import json
import pathlib
from datetime import datetime
from elasticsearch import helpers
from elasticsearch import Elasticsearch
from legalabs_scrapy_libs import settings
# host = os.environ.get('ELASTICSEARCH_HOST', 'juris.st.legalabs.com.br')
# port = os.environ.get('ELASTICSEARCH_PORT', 9200)
host = se... | PypiClean |
/plenario-stream-core-0.0.2.tar.gz/plenario-stream-core-0.0.2/plenario_stream_core/views.py | from django.http import HttpResponse
from django.views.decorators.http import require_http_methods
from .enums import JobState
from .models import Job
from .responses import InvalidTokenHttpResponse403, \
JobUpdatedJsonResponse200, InvalidJobHttpResponse404, \
InvalidJobStatusHttpResponse422
from .utils import... | PypiClean |
/PyZen-0.3.2.tar.gz/PyZen-0.3.2/pyzen/ui/win32/types.py | from win32con import *
from ctypes import *
from ctypes.wintypes import *
from pyzen.ui.base import img_path
NULL = c_void_p()
class errcheck(object):
def __init__(self, error_value=None):
self.error_value = error_value
def __call__(self, result, func, arguments):
if result == self.e... | PypiClean |
/xbox-smartglass-core-asyncio-0.8.10.tar.gz/xbox-smartglass-core-asyncio-0.8.10/xbox/scripts/recrypt.py | import os
import sys
import argparse
from binascii import unhexlify
from construct import Int16ub
from xbox.sg.crypto import Crypto
from xbox.sg.enum import PacketType
def main():
parser = argparse.ArgumentParser(
description='Re-Encrypt raw smartglass packets from a given filepath'
)
parser.add... | PypiClean |
/django-auth-pubtkt-2.0.1.tar.gz/django-auth-pubtkt-2.0.1/django_auth_pubtkt/middleware.py |
from django.contrib.auth.models import User, Group, AnonymousUser
from django.conf import settings
import urllib
import six
from django.utils.deprecation import MiddlewareMixin
from .auth_pubtkt import Authpubtkt
class DjangoAuthPubtkt(MiddlewareMixin):
""" Django middleware for mod_auth_pubtkt SSO """
def... | PypiClean |
/msgraph-sdk-1.0.0a3.tar.gz/msgraph-sdk-1.0.0a3/msgraph/generated/me/wipe_managed_app_registrations_by_device_tag/wipe_managed_app_registrations_by_device_tag_request_builder.py | from __future__ import annotations
from dataclasses import dataclass
from kiota_abstractions.get_path_parameters import get_path_parameters
from kiota_abstractions.method import Method
from kiota_abstractions.request_adapter import RequestAdapter
from kiota_abstractions.request_information import RequestInformation
fro... | PypiClean |
/pi_lab_jupyter_extension-0.0.1-py3-none-any.whl/pi_lab_jupyter_extension/labextension/static/lib_index_js.d6d9fb5ce69581eff319.js | "use strict";
(self["webpackChunkpi_lab_jupyter_extension"] = self["webpackChunkpi_lab_jupyter_extension"] || []).push([["lib_index_js"],{
/***/ "./lib/index.js":
/*!**********************!*\
!*** ./lib/index.js ***!
\**********************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__... | PypiClean |
/wagtailtinymce-4.2.1.5.zip/wagtailtinymce-4.2.1.5/LICENSE.rst | License
=======
This package is copyright (c) 2016, Isotoma Limited
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
met:
* Redistributions of source code must retain the above copyright
notice, this list ... | PypiClean |
/imcsdk_ecoen66-0.9.20.tar.gz/imcsdk_ecoen66-0.9.20/imcsdk/mometa/bios/BiosVfPSata.py |
from ...imcmo import ManagedObject
from ...imccoremeta import MoPropertyMeta, MoMeta
from ...imcmeta import VersionMeta
class BiosVfPSataConsts:
VP_PSATA_AHCI = "AHCI"
VP_PSATA_DISABLED = "Disabled"
VP_PSATA_LSI_SW_RAID = "LSI SW RAID"
VP_PSATA_PLATFORM_DEFAULT = "platform-default"
class BiosVfPSat... | PypiClean |
/OpenNMT-py-3.3.tar.gz/OpenNMT-py-3.3/onmt/transforms/inlinetags.py | from onmt.utils.logging import logger
from onmt.transforms import register_transform
from .transform import Transform
import random
import ahocorasick
import string
class InlineTagger(object):
"""Class for augmenting source and target sentences
with inline tags (placeholders).
It requires a prepared tab-... | PypiClean |
/imcsdk_ecoen66-0.9.20.tar.gz/imcsdk_ecoen66-0.9.20/imcsdk/utils/imcfirmwareinstall.py |
import time
import datetime
import logging
import re
from imcsdk.imccoreutils import IMC_PLATFORM, get_server_dn
from imcsdk.imcexception import ImcOperationError
from imcsdk.mometa.huu.HuuFirmwareUpdater import HuuFirmwareUpdater, \
HuuFirmwareUpdaterConsts
from imcsdk.mometa.huu.HuuFirmwareUpdateStatus import ... | PypiClean |
/epg_downloader-0.5.5.tar.gz/epg_downloader-0.5.5/epg_downloader/utils.py | from datetime import datetime
import hashlib
import logging
from urllib.parse import unquote_plus, quote
import requests
import zlib
from .app import kv_store, settings
log = logging.getLogger(__name__)
def calculate_multipart_etag(source_path, chunk_size=8388608):
# Chuck size is 8 * 1024 * 1024 by default
... | PypiClean |
/3d-converter-0.9.0.tar.gz/3d-converter-0.9.0/models_converter/formats/scw/chunks/mate.py | from . import Chunk
class MATE(Chunk):
def __init__(self, header):
super().__init__(header)
self.chunk_name = 'MATE'
def parse(self, buffer: bytes):
super().parse(buffer)
setattr(self, 'name', self.readString())
setattr(self, 'shader', self.readString())
setat... | PypiClean |
/scikits.learn-0.8.1.tar.gz/scikits.learn-0.8.1/doc/modules/datasets.rst | .. _datasets:
=========================
Dataset loading utilities
=========================
.. currentmodule:: scikits.learn.datasets
The ``scikits.learn.datasets`` package embeds some small toy datasets
as introduced in the "Getting Started" section.
To evaluate the impact of the scale of the dataset (``n_features... | PypiClean |
/pyqode.rst-2.10.0.tar.gz/pyqode.rst-2.10.0/pyqode/rst/widgets/code_edit.py | import docutils
import mimetypes as mimes
import sys
from pyqode.core import api, modes, panels
from pyqode.rst.backend import server, workers
from pyqode.rst import modes as rstmodes
class RstCodeEdit(api.CodeEdit):
# generic
mimetypes = ['text/x-rst']
for m in mimetypes:
mimes.add_type(m, '.rst... | PypiClean |
/django-geo-0.8.tar.gz/django-geo-0.8/geo/config.py | from __future__ import absolute_import, unicode_literals
from django.core.exceptions import ImproperlyConfigured
from django.core.urlresolvers import get_callable
from django.db.models import Model
from django.utils import six
from django.test.signals import setting_changed
import os
class AppSettings(object):
""... | PypiClean |
/validata_core-0.9.6-py3-none-any.whl/validata_core/custom_checks/cohesive_columns_value.py | from frictionless import errors
from .utils import build_check_error, CustomCheckMultipleColumns
# Module API
class CohesiveColumnsValueError(errors.CellError):
"""Custom error."""
code = "cohesive-columns-value"
name = "Cohérence entre colonnes"
tags = ["#body"]
template = "incohérence relevée... | PypiClean |
/VoNDA-0.6.tar.bz2/VoNDA-0.6/vonda/modules/ModifyData.py | from __future__ import division, print_function, absolute_import
import math,numpy as np,os,re,sys,copy
file_dir = os.path.dirname(__file__)
class ModifyData:
def __init__(self):
"""
Initialize Modify data class
"""
pass
def ValuesHigherThan(... | PypiClean |
/py-pure-client-1.38.0.tar.gz/py-pure-client-1.38.0/pypureclient/flashblade/FB_2_8/models/lifecycle_rule_config_extension.py | import pprint
import re
import six
import typing
from ....properties import Property
if typing.TYPE_CHECKING:
from pypureclient.flashblade.FB_2_8 import models
class LifecycleRuleConfigExtension(object):
"""
Attributes:
swagger_types (dict): The key is attribute name
and... | PypiClean |
/osm_hall_monitor-0.52.2-py3-none-any.whl/osmhm/send_notification.py | import smtplib
from osmhm import config
def basic_send_mail(to, subject, msg):
import os
program = '/usr/sbin/sendmail'
email = os.popen("%s -t" % program, "w")
email.write("From: %s\n" % config.email_user)
email.write("Reply-to: %s\n" % config.email_user)
email.write("To: %s\n" % to)
email... | PypiClean |
/Flask_Simple_Serializer-1.1.3-py3-none-any.whl/flask_simple_serializer/serializers.py | import six
from werkzeug.datastructures import MultiDict
from collections import OrderedDict
from wtforms.form import Form
from wtforms_alchemy import ModelForm
def serializer_factory(base=Form):
class BaseSerializer(base):
def __init__(self, data_dict=None, model_instance=None, **kwargs):
... | PypiClean |
/sb3-0.1-py3-none-any.whl/testing/__init__.py | import unittest
import sys, os.path
sys.path.append(os.path.realpath(".."))
import sb3
class SB3Test(unittest.TestCase):
def setUp(self):
self.project, self.assets = sb3.open_sb3("testcase.sb3")
def test_meta(self):
meta = self.project.meta
self.assertEqual(repr(meta), "<Meta>", "meta:... | PypiClean |
/plib2-0.7.3.tar.gz/plib2-0.7.3/plib/utils/version.py | import re
import string
from distutils.version import StrictVersion
class PVersion(StrictVersion):
"""Extended distutils version class.
Extension of StrictVersion that takes a tuple as a
constructor argument. The tuple is expected to be
of the form (major, minor, patch, <prerelease>),
where ... | PypiClean |
/wasp-launcher-0.0.2.tar.gz/wasp-launcher-0.0.2/wasp_launcher/static/angular/angular-1.6.1/angular-message-format.min.js | (function(k){'use strict';function f(a,b){for(var c=a.split(/\n/g),n=0;n<c.length;n++){var d=c[n];if(b>=d.length)b-=d.length;else return{h:n+1,f:b+1}}}function w(a){function b(){return a}var c=x[a];if(null!=c)return c;b.$$watchDelegate=function(b,c,d){var e=b.$watch(r,function(){l(c)&&c(a,a,b);e()},d);return e};x[a]=b;... | PypiClean |
/pkgcore-0.12.18.tar.gz/pkgcore-0.12.18/doc/dev-notes/formats/dpkg.rst | ======
dpkg
======
this is just *basic* notes, nothing more. If you know details, fill in
the gaps kindly
repos are combined.
Sources.gz
(list of source based deb's) holds name, version, and build deps.
Packages.gz
(binary debs, dpkgs)
name, version, size, short and long description, bindeps.
repository lay... | PypiClean |
/swh.web-0.2.37.tar.gz/swh.web-0.2.37/swh/web/webapp/assets/webapp/code-highlighting.js | import {removeUrlFragment} from 'utils/functions';
// keep track of the first highlighted line
let firstHighlightedLine = null;
// highlighting color
const lineHighlightColor = 'rgb(193, 255, 193)';
// function to highlight a line
export function highlightLine(i, firstHighlighted = false) {
const lineTd = $(`.hljs-... | PypiClean |
/entity-embed-0.0.6.tar.gz/entity-embed-0.0.6/entity_embed/data_utils/utils.py | import itertools
import logging
import random
from collections import Counter, defaultdict
from ordered_set import OrderedSet
from .union_find import UnionFind
logger = logging.getLogger(__name__)
def Enumerator(start=0, initial=()):
return defaultdict(itertools.count(start).__next__, initial)
def record_dic... | PypiClean |
/msgram-1.2.2-py3-none-any.whl/src/cli/commands/cmd_extract.py | from datetime import datetime
import json
import logging
import os
import re
import sys
from time import perf_counter
from rich import print
from rich.console import Console
from genericparser import GenericParser
from src.cli.jsonReader import folder_reader
from src.cli.utils import (
make_progress_bar,
prin... | PypiClean |
/pyrad_arm-0.6.0.tar.gz/pyrad_arm-0.6.0/scripts/main_process_data_rt.py | # Author: fvj
# License: BSD 3 clause
import datetime
import argparse
import atexit
import os
import traceback
from warnings import warn
from pyrad.flow.flow_control import main_rt as pyrad_main
print(__doc__)
def main():
"""
"""
# parse the arguments
parser = argparse.ArgumentParser(
desc... | PypiClean |
/Hikka_TL_New-2.0.4-py3-none-any.whl/hikkatl/extensions/binaryreader.py | import os
import time
from datetime import datetime, timezone, timedelta
from io import BytesIO
from struct import unpack
from ..errors import TypeNotFoundError
from ..tl.alltlobjects import tlobjects
from ..tl.core import core_objects
_EPOCH_NAIVE = datetime(*time.gmtime(0)[:6])
_EPOCH = _EPOCH_NAIVE.replace(tzinfo=... | PypiClean |
/odoo12_addon_base_conditional_image-12.0.1.0.1-py3-none-any.whl/odoo/addons/base_conditional_image/models/abstract_image.py |
from odoo import fields, models
from odoo.tools.safe_eval import safe_eval
class AbstractConditionalImage(models.AbstractModel):
_name = 'abstract.conditional.image'
_description = 'Abstract image'
image = fields.Binary(
compute='_compute_image', string="Image",
store=False, readonly=Tru... | PypiClean |
/finetuning-scheduler-2.0.7.tar.gz/finetuning-scheduler-2.0.7/src/fts_examples/stable/extended_profiler.py |
import os
from pathlib import Path
from typing import Dict, List, Optional, Union
import torch
from lightning.fabric.accelerators.cuda import is_cuda_available
from lightning.fabric.utilities import rank_zero_info
from lightning.pytorch.profilers.pytorch import PyTorchProfiler
from lightning.pytorch.utilities.imports... | PypiClean |
/bartbroere_streamlit-1.25.1-py3-none-any.whl/streamlit/elements/widgets/file_uploader.py | from dataclasses import dataclass
from textwrap import dedent
from typing import List, Optional, Sequence, Union, cast, overload
from typing_extensions import Literal
import streamlit
from streamlit import config
from streamlit.elements.form import current_form_id
from streamlit.elements.utils import (
check_call... | PypiClean |
/hub_v1-1.3.9-py3-none-any.whl/hub_v1/schema/image.py | from typing import Tuple
import numpy as np
from hub_v1.schema.features import Tensor
class Image(Tensor):
"""Schema for images would define the shape and structure for the dataset.
Output: `Tensor` of type `uint8` and shape `[height, width, num_channels]`
for BMP, JPEG, and PNG images
Example: Th... | PypiClean |
/django_grapesjs-0.0.7.tar.gz/django_grapesjs-0.0.7/django_grapesjs/settings.py | from django.conf import settings
# path to the html file of the form field. Enter your value for the override
GRAPESJS_TEMPLATE = getattr(settings, 'GRAPESJS_TEMPLATE', 'django_grapesjs/textarea.html')
# True if you want to save html and css
GRAPESJS_SAVE_CSS = int(getattr(settings, 'GRAPESJS_SAVE_CSS', False))
# u... | PypiClean |
/pulumi_azure_nextgen-0.6.2a1613157620.tar.gz/pulumi_azure_nextgen-0.6.2a1613157620/pulumi_azure_nextgen/insights/latest/workbook.py |
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union
from ... import _utilities, _tables
from . import outputs
from ._enums import *
from ._inputs import *
__all__ = ['Workbook']
warnings.warn("""The 'latest' version is deprecated. Please migrate to the resou... | PypiClean |
/PySLOBS-2.0.3.tar.gz/PySLOBS-2.0.3/pyslobs/pubsubhub.py | from __future__ import annotations
import asyncio
from dataclasses import dataclass
import logging
from typing import Any, Callable, Coroutine
LOGGER = logging.getLogger("slobsapi.pubsubhub")
@dataclass(frozen=True)
class SubscriptionPreferences:
notify_on_unsubscribe: bool = False
notify_on_close: bool = Fa... | PypiClean |
/lbp_print-0.1.3.tar.gz/lbp_print-0.1.3/README.rst | ``lbp_print`` is a small utility for processing a LombardPress valid XML
text with a relevant XSLT script and compile to PDF with XeLaTeX.
Installation
============
The script requires Python 3.6 installed in your system. If you are on a
Mac OSX machine, and you use `Homebrew <https://brew.sh/>`__, you can
run ``brew... | PypiClean |
/brightway25-1.0.6.tar.gz/brightway25-1.0.6/docs/faq.rst | Frequently Asked Questions
**************************
Why the 2 in Brightway2?
========================
Brightway version 1 was a set of programs written during the PhD of Chris Mutel. In the end, there wasn't that much that could be re-used from this research code, other than the name. Brightway2 is a completely new... | PypiClean |
/matrix_synapse_jitsi-1.15.1.5-py3-none-any.whl/synapse/api/auth.py |
import logging
from typing import Optional
from six import itervalues
import pymacaroons
from netaddr import IPAddress
from twisted.internet import defer
from twisted.web.server import Request
import synapse.logging.opentracing as opentracing
import synapse.types
from synapse import event_auth
from synapse.api.aut... | PypiClean |
/memory-tempfile-2.2.3.tar.gz/memory-tempfile-2.2.3/README.md | # Overview
Often there is a need to temporarily save a file to 'disk' for the consumption of external tools. Or maybe you can pipe some input info to an external tool
but has no way of forcing such external tool to pipe its output straight to your software: **it wants to write a file to disk**.
Disk operations are slo... | PypiClean |
/jupyros-0.7.0a0.tar.gz/jupyros-0.7.0a0/js/node_modules/hosted-git-info/README.md | # hosted-git-info
This will let you identify and transform various git hosts URLs between
protocols. It also can tell you what the URL is for the raw path for
particular file for direct access without git.
## Example
```javascript
var hostedGitInfo = require("hosted-git-info")
var info = hostedGitInfo.fromUrl("git@... | PypiClean |
/pulumi_azure_nextgen-0.6.2a1613157620.tar.gz/pulumi_azure_nextgen-0.6.2a1613157620/pulumi_azure_nextgen/logic/integration_account.py |
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union
from .. import _utilities, _tables
from . import outputs
from ._enums import *
from ._inputs import *
__all__ = ['IntegrationAccount']
class IntegrationAccount(pulumi.CustomResource):
def __init__(__se... | PypiClean |
/Restr-0.1.6.tar.gz/Restr-0.1.6/restr/static/bower/codemirror/mode/ruby/ruby.js | CodeMirror.defineMode("ruby", function(config, parserConfig) {
function wordObj(words) {
var o = {};
for (var i = 0, e = words.length; i < e; ++i) o[words[i]] = true;
return o;
}
var keywords = wordObj([
"alias", "and", "BEGIN", "begin", "break", "case", "class", "def", "defined?", "do", "else",
... | PypiClean |
/pipython_2-0.1.1.tar.gz/pipython_2-0.1.1/pidevice/gcs21/gcs21commands.py | """Provide GCS functions to control a PI device."""
# Trailing newlines pylint: disable=C0305
from logging import debug, warning
from time import sleep
from ..common.gcsbasecommands import GCSBaseCommands, getitemsvaluestuple
from .gcs21commands_helpers import parseblockanswertodict, getparamerterdictfromstring, PIAxi... | PypiClean |
/py-pure-client-1.38.0.tar.gz/py-pure-client-1.38.0/pypureclient/flasharray/FA_2_13/models/file_system_get_response.py | import pprint
import re
import six
import typing
from ....properties import Property
if typing.TYPE_CHECKING:
from pypureclient.flasharray.FA_2_13 import models
class FileSystemGetResponse(object):
"""
Attributes:
swagger_types (dict): The key is attribute name
and the v... | PypiClean |
/taxonomy_matcher-0.0.9.tar.gz/taxonomy_matcher-0.0.9/taxonomy_matcher/match_patterns/patterns_nt.py | # -*- coding: utf-8 -*-
import json
from taxonomy_matcher import LOGGER
from .patterns import Patterns
from .patterns import PatternTypes
from ..data_utils import normalize
class PatternsNT(Patterns):
'''
PatternsNT:
Class to store pattern information from Normalized Code JSON file
attibutes:
... | PypiClean |
/np-nwb-trials-0.3.0.tar.gz/np-nwb-trials-0.3.0/src/np_nwb_trials/processing/sync/sync/zro/sync_device.py | from six.moves import cPickle as pickle
from shutil import copyfile
import os
import logging
import argparse
import datetime
import yaml
from zro import RemoteObject
from sync import __version__
try:
from sync.sync import Sync
HAS_NI = True
except NotImplementedError:
HAS_NI = False
BASE_DIR = os.path.j... | PypiClean |
/reqmgr2-2.2.4rc1.tar.gz/reqmgr2-2.2.4rc1/src/python/WMCore/DataStructs/WorkUnit.py | from __future__ import absolute_import, division, print_function
from future.utils import listitems
import sys
import hashlib
import time
from functools import total_ordering
from Utils.Utilities import encodeUnicodeToBytes
from WMCore.DataStructs.WMObject import WMObject
@total_ordering
class WorkUnit(WMObject, d... | PypiClean |
/facebook_business-17.0.4.tar.gz/facebook_business-17.0.4/examples/ad_creation_utils.py |
# You are hereby granted a non-exclusive, worldwide, royalty-free license to
# use, copy, modify, and distribute this software in source code or binary
# form for use in connection with the web services and APIs provided by
# Facebook.
# As with any software that integrates with the Facebook platform, your use
# of t... | PypiClean |
/rocc-client-0.1.3.tar.gz/rocc-client-0.1.3/roccclient/rest.py | from __future__ import absolute_import
import io
import json
import logging
import re
import ssl
import certifi
# python 2 and python 3 compatibility library
import six
from six.moves.urllib.parse import urlencode
import urllib3
from roccclient.exceptions import ApiException, ApiValueError
logger = logging.getLogg... | PypiClean |
/nox_tools-0.2.0.tar.gz/nox_tools-0.2.0/README.md | # nox-tools
## Predefined sessions for [nox](https://github.com/theacodes/nox)
To use these sessions, just install nox-tools, import them in your noxfile.py
and either set config.sessions to a list with the ones you want or manually
mark each one as a session using nox.session. You can also configure their
behavior b... | PypiClean |
/seaborn-file-1.1.1.tar.gz/seaborn-file-1.1.1/seaborn_file/file.py | import os
import shutil
import hashlib
import inspect
import json
from glob import glob
if os.name == 'posix': # mac
TRASH_PATH = '/'.join(os.getcwd().split('/')[:3] + ['.Trash'])
else:
TRASH_PATH = '.' # todo implement for other os
def mkdir(path):
if not isinstance(path, str):
path = str(path... | PypiClean |
/tamarco-0.1.1.tar.gz/tamarco-0.1.1/docs/how_to_guides/setup_settings_for_a_resource.rst | .. _setup_setting_for_a_resource:
How to setup settings for a resource
====================================
The resources are designed to automatically load their configuration using the setting resource.
The resources should be defined as an attribute of the microservice class:
.. code-block:: python
class My... | PypiClean |
/suite_py-1.37.13-py3-none-any.whl/suite_py/lib/handler/drone_handler.py | import os
import subprocess
import sys
import time
from distutils.version import StrictVersion # pylint: disable=W0402
from subprocess import CalledProcessError
import requests
import yaml
from halo import Halo
from suite_py.lib import logger
class DroneHandler:
def __init__(self, config, tokens, repo=None):
... | PypiClean |
/jupyterlab_remote_contents-0.1.1.tar.gz/jupyterlab_remote_contents-0.1.1/node_modules/@types/node/crypto.d.ts | declare module 'crypto' {
import * as stream from 'node:stream';
import { PeerCertificate } from 'node:tls';
interface Certificate {
/**
* @deprecated
* @param spkac
* @returns The challenge component of the `spkac` data structure,
* which includes a public key an... | PypiClean |
/msgraph-sdk-1.0.0a3.tar.gz/msgraph-sdk-1.0.0a3/msgraph/generated/users/item/calendar/events/item/multi_value_extended_properties/item/multi_value_legacy_extended_property_item_request_builder.py | from __future__ import annotations
from dataclasses import dataclass
from kiota_abstractions.get_path_parameters import get_path_parameters
from kiota_abstractions.method import Method
from kiota_abstractions.request_adapter import RequestAdapter
from kiota_abstractions.request_information import RequestInformation
fro... | PypiClean |
/python-doc-2020.10.1.tar.gz/python-doc-2020.10.1/src/python_doc/data/3.7/_static/underscore.js | (function(){function q(a,c,d){if(a===c)return a!==0||1/a==1/c;if(a==null||c==null)return a===c;if(a._chain)a=a._wrapped;if(c._chain)c=c._wrapped;if(a.isEqual&&b.isFunction(a.isEqual))return a.isEqual(c);if(c.isEqual&&b.isFunction(c.isEqual))return c.isEqual(a);var e=l.call(a);if(e!=l.call(c))return false;switch(e){case... | PypiClean |
/isedit-0.3.0.tar.gz/isedit-0.3.0/js/node_modules/terser/lib/scope.js | "use strict";
import {
defaults,
keep_name,
mergeSort,
push_uniq,
make_node,
return_false,
return_this,
return_true,
string_template,
} from "./utils/index.js";
import {
AST_Arrow,
AST_Block,
AST_Call,
AST_Class,
AST_Conditional,
AST_DefClass,
AST_Defun,
... | PypiClean |
/bundesliga_tippspiel-2.0.10-py3-none-any.whl/bundesliga_tippspiel/utils/teams.py | from typing import Tuple
def get_team_data(team_name: str) -> Tuple[str, str, str, Tuple[str, str]]:
"""
Generates team short_names, abbreviations and icon URLs for teams
:param team_name: The team's full name as specified by OpenLigaDB
:return: A tuple containing the
name, short_name, abb... | PypiClean |
/ipvanish_bundle-0.1.2-py3-none-any.whl/ipvanish_bundle/bundle/darwin/AE.py | ipvanish_AE_Dubai_dxb_c01_ovpn = ['client', 'dev tun', 'proto udp', 'remote dxb-c01.ipvanish.com 443', 'resolv-retry infinite', 'nobind', 'persist-key', 'persist-tun', 'persist-remote-ip', '<ca>', '-----BEGIN CERTIFICATE-----', 'MIIErTCCA5WgAwIBAgIJAMYKzSS8uPKDMA0GCSqGSIb3DQEBDQUAMIGVMQswCQYD', 'VQQGEwJVUzELMAkGA1UECBM... | PypiClean |
/torvy-hass-0.1.tar.gz/torvy-hass-0.1/homeassistant/components/sensor/zwave.py | from homeassistant.components.sensor import DOMAIN
from homeassistant.components import zwave
from homeassistant.const import TEMP_CELSIUS, TEMP_FAHRENHEIT
from homeassistant.helpers.entity import Entity
FIBARO = 0x010f
FIBARO_WALL_PLUG = 0x1000
FIBARO_WALL_PLUG_SENSOR_METER = (FIBARO, FIBARO_WALL_PLUG, 8)
WORKAROUN... | PypiClean |
/mayan-edms-4.4.8.tar.gz/mayan-edms-4.4.8/mayan/apps/events/views/notification_views.py | from django.contrib import messages
from django.shortcuts import get_object_or_404
from django.template import RequestContext
from django.urls import reverse_lazy
from django.utils.translation import ugettext_lazy as _
from mayan.apps.views.generics import ConfirmView, SingleObjectListView
from ..icons import (
i... | PypiClean |
/askbot-tuanpa-0.7.48.zip/askbot-tuanpa-0.7.48/askbot/migrations/0038_add_tag_filter_strategies.py | import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
from askbot import const
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding model country fields to the model auth_user
try:
db.add_column(
... | PypiClean |
/onlyonce-0.0.3.tar.gz/onlyonce-0.0.3/onlyonce.py | __version__ = '0.0.3'
from subprocess import Popen, CalledProcessError, PIPE
import signal
from datetime import datetime
from os.path import join as pathjoin
from os import remove, mkdir, stat
from shutil import rmtree
from time import sleep, time
##############
# Exceptions #
##############
class StillRunning(Exce... | PypiClean |
/prob_dist_md-0.1.tar.gz/prob_dist_md-0.1/prob_dist_md/Binomialdistribution.py | import math
import matplotlib.pyplot as plt
from .Generaldistribution import Distribution
class Binomial(Distribution):
""" Binomial distribution class for calculating and
visualizing a Binomial distribution.
Attributes:
mean (float) representing the mean value of the distribution
std... | PypiClean |
/django_kelove_admin-0.4.1-py3-none-any.whl/django_kelove_admin/static/kelove_admin/editor_md/lib/raphael.min.js | !function(a){var b,c,d="0.4.2",e="hasOwnProperty",f=/[\.\/]/,g="*",h=function(){},i=function(a,b){return a-b},j={n:{}},k=function(a,d){a=String(a);var e,f=c,g=Array.prototype.slice.call(arguments,2),h=k.listeners(a),j=0,l=[],m={},n=[],o=b;b=a,c=0;for(var p=0,q=h.length;q>p;p++)"zIndex"in h[p]&&(l.push(h[p].zIndex),h[p]... | PypiClean |
/beakerx_tabledisplay-2.3.13.tar.gz/beakerx_tabledisplay-2.3.13/js/webpack.config.js | const path = require('path');
var rules = [
{
test: /\.css$/i,
use: [{ loader: "style-loader" }, { loader: "css-loader" }],
exclude: [/katex\.css$/i]
},
{
test: /katex\.css$/i,
use: [{ loader: "css-loader" }],
},
{
test: /\.scss$/,
use: [{ loader: "style-loader" }, { loader: "css-... | PypiClean |
/ansible-modules-hashivault-5.1.1.tar.gz/ansible-modules-hashivault-5.1.1/ansible/modules/hashivault/hashivault_list.py | from hvac.exceptions import InvalidPath
from ansible.module_utils.hashivault import hashivault_argspec
from ansible.module_utils.hashivault import hashivault_auth_client
from ansible.module_utils.hashivault import hashivault_init
from ansible.module_utils.hashivault import hashiwrapper
ANSIBLE_METADATA = {'status': [... | PypiClean |
/wagtail-restructure-2.16a0.tar.gz/wagtail-restructure-2.16a0/wagtail/admin/views/generic/models.py | from django.db import transaction
from django.http import HttpResponseRedirect
from django.shortcuts import redirect
from django.urls import reverse
from django.utils.translation import gettext as _
from django.utils.translation import gettext_lazy
from django.views.generic.edit import BaseCreateView, BaseDeleteView, B... | PypiClean |
/salesforce-merlion-2.0.2.tar.gz/salesforce-merlion-2.0.2/merlion/dashboard/utils/plot.py | import plotly
import plotly.graph_objects as go
from plotly.subplots import make_subplots
from dash import dash_table, dcc
from merlion.dashboard.settings import *
def data_table(df, n=1000, page_size=10):
if df is not None:
df = df.head(n)
columns = [{"name": "Index", "id": "Index"}] + [{"name": ... | PypiClean |
/benchling_api_client-2.0.207-py3-none-any.whl/benchling_api_client/models/deprecated_container_volume_for_input.py | from typing import Any, cast, Dict, List, Optional, Type, TypeVar, Union
import attr
from ..extensions import NotPresentError
from ..models.deprecated_container_volume_for_input_units import DeprecatedContainerVolumeForInputUnits
from ..types import UNSET, Unset
T = TypeVar("T", bound="DeprecatedContainerVolumeForIn... | PypiClean |
/thirdweb_sdk-3.1.1a0.tar.gz/thirdweb_sdk-3.1.1a0/thirdweb/abi/i_drop.py |
# pylint: disable=too-many-arguments
import json
from typing import ( # pylint: disable=unused-import
Any,
List,
Optional,
Tuple,
Union,
)
from eth_utils import to_checksum_address
from mypy_extensions import TypedDict # pylint: disable=unused-import
from hexbytes import HexBytes
from web3 impo... | PypiClean |
/pulumi_azure_native-2.5.1a1693590910.tar.gz/pulumi_azure_native-2.5.1a1693590910/pulumi_azure_native/redhatopenshift/list_open_shift_cluster_credentials.py |
import copy
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from .. import _utilities
__all__ = [
'ListOpenShiftClusterCredentialsResult',
'AwaitableListOpenShiftClusterCredentialsResult',
'list_open_shift_cluster_credentials',
'... | PypiClean |
/formification-1.2.0-py3-none-any.whl/formulaic/static/admin/formulaic/ember-formulaic/node_modules/broccoli-caching-writer/key.js | var EMPTY_ARRAY = [];
var assert = require('assert');
function Key(entry, children, debug) {
this.entry = entry;
validateEntry(entry);
this.children = children || EMPTY_ARRAY;
this.debug = debug;
}
function validateEntry(entry) {
assert(entry.fullPath, 'entry requires fullPath');
assert(typeof entry.isDir... | PypiClean |
/aiida_wannier90_workflows-2.1.0.tar.gz/aiida_wannier90_workflows-2.1.0/src/aiida_wannier90_workflows/utils/workflows/plot/bands.py | """Plot band structures."""
import typing as ty
import matplotlib.pyplot as plt
from aiida import orm
from aiida_quantumespresso.calculations.pw import PwCalculation
from aiida_quantumespresso.workflows.pw.bands import PwBandsWorkChain
from aiida_quantumespresso.workflows.pw.base import PwBaseWorkChain
from aiida_w... | PypiClean |
/st_package_reviewer-0.3.0-py3-none-any.whl/st_package_reviewer/__main__.py | import argparse
import io
import logging
from pathlib import Path
import re
import sys
import tempfile
import textwrap
from github3 import GitHub
from . import set_debug, debug_active, __version__
from . import repo_tools
from .runner import CheckRunner
from .check import file as file_c, repo as repo_c
l = logging.... | PypiClean |
/gwpy-3.0.5.tar.gz/gwpy-3.0.5/docs/plot/gps.rst | .. currentmodule:: gwpy.plot.gps
.. _gwpy-plot-gps:
########################
Plotting GPS time scales
########################
As we have seen, the default :mod:`matplotlib` representation of GPS scales
is not great, given the large zero-offset typically seen with 21st century GPS
times.
To improve displays of data... | PypiClean |
/wwt_api_client-0.4.0.tar.gz/wwt_api_client-0.4.0/wwt_api_client/constellations/handles.py | from dataclasses import dataclass
from dataclasses_json import dataclass_json
import html
import math
from typing import List, Optional
import urllib.parse
from wwt_data_formats.enums import DataSetType
from wwt_data_formats.imageset import ImageSet
from wwt_data_formats.place import Place
from . import CxClient, Tim... | PypiClean |
/aliyun-python-sdk-core-v3-2.13.33.tar.gz/aliyun-python-sdk-core-v3-2.13.33/aliyunsdkcore/vendored/requests/packages/chardet/jisfreq.py |
# Sampling from about 20M text materials include literature and computer technology
#
# Japanese frequency table, applied to both S-JIS and EUC-JP
# They are sorted in order.
# 128 --> 0.77094
# 256 --> 0.85710
# 512 --> 0.92635
# 1024 --> 0.97130
# 2048 --> 0.99431
#
# Ideal Distribution Ratio = 0.92635 / (1-0.92... | PypiClean |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.