id
stringlengths
1
8
text
stringlengths
6
1.05M
dataset_id
stringclasses
1 value
/sbswebsite-0.0.23.tar.gz/sbswebsite-0.0.23/website/update_config.py
from ConfigParser import SafeConfigParser import os.path import sys import time default_config = SafeConfigParser() user_config = SafeConfigParser() default_config.read('config.cfg.default') #TODO Add code to verify file exists, and only read if the file exists if not os.path.isfile('config.cfg'): default_config.wri...
PypiClean
/atooms-pp-3.3.3.tar.gz/atooms-pp-3.3.3/atooms/postprocessing/partial.py
import logging from .helpers import filter_species from . import core _log = logging.getLogger(__name__) # TODO: add output_path to all interfaces class Partial(object): def __init__(self, corr_cls, species, *args, **kwargs): """The first positional argument must be the trajectory instance.""" ...
PypiClean
/sam_ml_py-0.13.0-py3-none-any.whl/sam_ml/models/main_pipeline.py
import copy import pandas as pd from sam_ml.config import setup_logger from sam_ml.data.preprocessing import ( Embeddings_builder, Sampler, SamplerPipeline, Scaler, Selector, ) from .main_classifier import Classifier from .RandomForestClassifier import RFC logger = setup_logger(__name__) class...
PypiClean
/shotstack-sdk-0.2.6.tar.gz/shotstack-sdk-0.2.6/shotstack_sdk/model/skew_transformation.py
import re # noqa: F401 import sys # noqa: F401 from shotstack_sdk.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, ModelSimple, cached_property, change_keys_js_to_python, convert_js_args_to_python_args, date, datetime, file_type, none_type, ...
PypiClean
/nb_hdr_plotter-0.1.2-py3-none-any.whl/nb_hdr_plotter/hdr_manipulation.py
import datetime from functools import reduce from hdrh.log import HistogramLogReader from hdrh.histogram import HdrHistogram # CONSTANTS # 'values' stored in histograms are in ns, we need ms VALUE_FACTOR = 1.0e6 # Loader def loadHdrSlices(filename): slices = [] baseHistogram = None lReader = HistogramLog...
PypiClean
/dataone.util-3.5.2-py3-none-any.whl/d1_util/xml_apply_xslt.py
# This work was created by participants in the DataONE project, and is # jointly copyrighted by participating institutions in DataONE. For # more information on DataONE, see our web site at http://dataone.org. # # Copyright 2009-2019 DataONE # # Licensed under the Apache License, Version 2.0 (the "License"); # you m...
PypiClean
/bmw-lobster-monolithic-0.9.12.tar.gz/bmw-lobster-monolithic-0.9.12/lobster/tools/json/json.py
import sys import os.path import json from pprint import pprint from lobster.tool import LOBSTER_Per_File_Tool from lobster.items import Tracing_Tag, Activity from lobster.location import File_Reference class Malformed_Input(Exception): def __init__(self, msg, data): super().__init__(msg) self.m...
PypiClean
/rpi_ws281x-5.0.0.tar.gz/rpi_ws281x-5.0.0/README.rst
rpi\_ws281x =========== Userspace Raspberry Pi library for controlling WS281X LEDs. This includes WS2812 and SK6812RGB RGB LEDs Preliminary support is now included for SK6812RGBW LEDs (yes, RGB + W) The LEDs can be controlled by either the PWM (2 independent channels) or PCM controller (1 channel) or the SPI interface...
PypiClean
/fake_bpy_module_2.80-20230117-py3-none-any.whl/bl_ui/space_properties.py
import sys import typing import bpy_types GenericType = typing.TypeVar("GenericType") class PROPERTIES_HT_header(bpy_types.Header, bpy_types._GenericUI): bl_rna = None ''' ''' bl_space_type = None ''' ''' id_data = None ''' ''' def append(self, draw_func): ''' ''' ...
PypiClean
/multi_emotion_recognition-0.1.2.tar.gz/multi_emotion_recognition-0.1.2/src/utils/utils.py
import json import os import pickle import random from collections import Counter import emotlib import numpy as np from tqdm import tqdm from src.utils.data import dataset_info, data_keys import pandas as pd def nrc_hashtag_lexicon(nrc_lexicon): hashtag_vocab = [] for nl in nrc_lexicon: hashtag_voca...
PypiClean
/winevtrc-20220106.tar.gz/winevtrc-20220106/docs/sources/eventlog-providers/Provider-Application-Hang.md
## Application Hang Seen on: * Windows 2003 * Windows XP 32-bit * Windows XP 64-bit <table border="1" class="docutils"> <tbody> <tr> <td><b>Log source(s):</b></td> <td>Application Hang</td> </tr> <tr> <td><b>Log type:</b></td> <td>Application</td> </tr> <tr> <td><b>...
PypiClean
/cheat-zh-0.0.1.tar.gz/cheat-zh-0.0.1/cheat/sheets.py
import os from cheat import cheatsheets from cheat.utils import die def default_path(): """ Returns the default cheatsheet path """ # determine the default cheatsheet dir default_sheets_dir = os.environ.get('DEFAULT_CHEAT_DIR') or os.path.join('~', '.cheat') default_sheets_dir = os.path.expanduser(os...
PypiClean
/chaostoolkit-1.15.1.tar.gz/chaostoolkit-1.15.1/CHANGELOG.md
# Changelog ## [Unreleased][] [Unreleased]: https://github.com/chaostoolkit/chaostoolkit/compare/1.15.1...HEAD ## [1.15.1][] - 2023-04-03 [1.15.1]: https://github.com/chaostoolkit/chaostoolkit/compare/1.15.0...1.15.1 ### Fixed - As we now depend on recent versions of `importlib_metadata` we need to abide by it...
PypiClean
/scml-agents-0.4.2.tar.gz/scml-agents-0.4.2/scml_agents/scml2022/oneshot/team_107/other_agents/agent_team73.py
from abc import ABC from collections import defaultdict from typing import List from negmas import MechanismState, ResponseType from negmas.outcomes import Outcome from scml.oneshot import * Buy = 0 Sell = 1 Offer = 0 Accept = 1 INF = 1000 __all__ = [ "SimpleAgent", "BetterAgent", "AdaptiveAgent", "G...
PypiClean
/pyfolio-tekton-1.3.tar.gz/pyfolio-tekton-1.3/pyfolio/tears.py
from __future__ import division import warnings from time import time import empyrical as ep from IPython.display import display, Markdown import matplotlib.gridspec as gridspec import matplotlib.pyplot as plt import numpy as np import pandas as pd import scipy.stats from . import _seaborn as sns from . import capac...
PypiClean
/nnisgf-0.4-py3-none-manylinux1_x86_64.whl/nnisgf-0.4.data/data/nni/node_modules/moment/src/lib/format/format.js
import zeroFill from '../utils/zero-fill'; import isFunction from '../utils/is-function'; export var formattingTokens = /(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g; var localForma...
PypiClean
/python-sources-3.10.5.tar.gz/python-sources-3.10.5/Python-3.10.5/Doc/library/urllib.parse.rst
:mod:`urllib.parse` --- Parse URLs into components ================================================== .. module:: urllib.parse :synopsis: Parse URLs into or assemble them from components. **Source code:** :source:`Lib/urllib/parse.py` .. index:: single: WWW single: World Wide Web single: URL pair: URL...
PypiClean
/geo_espresso-0.3.11-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl/espresso/_magnetotelluric_1D/examples/field_MT.ipynb
# Inversion of field MT data from the Coompana Province, South Australia ## MT site KN_1 ### Data source: https://ecat.ga.gov.au/geonetwork/srv/eng/catalog.search#/metadata/112942 ### Results report: https://ecat.ga.gov.au/geonetwork/srv/eng/catalog.search#/metadata/112981 (Figure 5) ## 0. Import modules ``` impo...
PypiClean
/intake-esm-2023.7.7.tar.gz/intake-esm-2023.7.7/docs/source/how-to/define-and-use-derived-variable-registry.md
--- jupytext: text_representation: format_name: myst kernelspec: display_name: Python 3 name: python3 --- # Define and use derived variable registry ## What is a derived variable ? A derived variable is a variable that is not present in the original dataset, but is computed from one or more variables in th...
PypiClean
/allenact_plugins-0.5.3.tar.gz/allenact_plugins-0.5.3/allenact_plugins/gym_plugin/gym_models.py
from typing import Dict, Union, Optional, Tuple, Any, Sequence, cast import gym import torch import torch.nn as nn from allenact.algorithms.onpolicy_sync.policy import ( ActorCriticModel, DistributionType, ) from allenact.base_abstractions.misc import ActorCriticOutput, Memory from allenact_plugins.gym_plugin...
PypiClean
/PyHive-abmn614-0.6.5.tar.gz/PyHive-abmn614-0.6.5/pyhive/sqlalchemy_presto.py
from __future__ import absolute_import from __future__ import unicode_literals import re from sqlalchemy import exc from sqlalchemy import types from sqlalchemy import util # TODO shouldn't use mysql type from sqlalchemy.databases import mysql from sqlalchemy.engine import default from sqlalchemy.sql import compiler f...
PypiClean
/django-ra-erp-1.3.1.tar.gz/django-ra-erp-1.3.1/ra/static/ra/plugins/datatables/DataTables-1.10.20/js/dataTables.bootstrap.min.js
var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.findInternal=function(a,b,c){a instanceof String&&(a=String(a));for(var e=a.length,d=0;d<e;d++){var k=a[d];if(b.call(c,k,d,a))return{i:d,v:k}}return{i:-1,v:void 0}};$jscomp.ASSUME_ES5=!1;$jscomp.ASSUME_NO_NATIVE_MAP=!1;$jscomp.ASSUME_NO_NATIVE_SET=!1;$jscomp.SIMPLE_FROUN...
PypiClean
/xai-benchmark-0.3.0.tar.gz/xai-benchmark-0.3.0/xaib/metrics/example_selection/parameter_randomization_check.py
from typing import Any, Dict, Union import numpy as np from tqdm import tqdm from ...base import Dataset, Explainer, Metric, Model from ...utils import SimpleDataloader, batch_count_eq, minmax_normalize class ParameterRandomizationCheck(Metric): """ Parameter randomization check is a sanity-check. To en...
PypiClean
/aspose-tasks-cloud-22.12.0.tar.gz/aspose-tasks-cloud-22.12.0/asposetaskscloud/models/week_day_type.py
import pprint import re # noqa: F401 import six class WeekDayType(object): """Represents a weekday of a project in the instance of RecurringInfo class. """ """ allowed enum values """ NONE = "None" SUNDAY = "Sunday" MONDAY = "Monday" TUESDAY = "Tuesday" WEDNESDAY = "Wednesda...
PypiClean
/fake-bge-module-latest-20230415.tar.gz/fake-bge-module-latest-20230415/bl_operators/userpref.py
import sys import typing import bpy_types class PREFERENCES_OT_addon_disable(bpy_types.Operator): bl_idname = None ''' ''' bl_label = None ''' ''' bl_rna = None ''' ''' id_data = None ''' ''' def as_keywords(self, ignore): ''' ''' pass def as_poin...
PypiClean
/synth_forc-0.1.2-py3-none-any.whl/synth_forc/qt/save_dialog.py
from PyQt6 import QtCore, QtGui, QtWidgets class Ui_SaveDialog(object): def setupUi(self, SaveDialog): SaveDialog.setObjectName("SaveDialog") SaveDialog.resize(773, 332) self.gridLayout = QtWidgets.QGridLayout(SaveDialog) self.gridLayout.setObjectName("gridLayout") self.t...
PypiClean
/gbptestneutron-0.9.0.tar.gz/gbptestneutron-0.9.0.dev194.g9d5bd52/neutron/plugins/cisco/l3/plugging_drivers/n1kv_trunking_driver.py
import eventlet from oslo.config import cfg from sqlalchemy.orm import exc from sqlalchemy.sql import expression as expr from neutron.api.v2 import attributes from neutron.common import exceptions as n_exc from neutron import context as n_context from neutron.db import models_v2 from neutron.extensions import provid...
PypiClean
/tb-rest-client-3.5.tar.gz/tb-rest-client-3.5/tb_rest_client/models/models_ce/tenant_profile_data.py
# Copyright 2023. ThingsBoard # # 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 writi...
PypiClean
/hfcca-1.10.2.tar.gz/hfcca-1.10.2/lizard_languages/code_reader.py
import re class CodeStateMachine(object): ''' the state machine ''' def __init__(self, context): self.context = context self._state = self._state_global self.br_count = 0 self.rut_tokens = [] @staticmethod def read_inside_brackets_then(brs, end_state=None): def...
PypiClean
/pygameboycore-0.0.4.tar.gz/pygameboycore-0.0.4/lib/pybind11/docs/advanced/functions.rst
Functions ######### Before proceeding with this section, make sure that you are already familiar with the basics of binding functions and classes, as explained in :doc:`/basics` and :doc:`/classes`. The following guide is applicable to both free and member functions, i.e. *methods* in Python. .. _return_value_policie...
PypiClean
/ansible-8.3.0-py3-none-any.whl/ansible_collections/community/vmware/plugins/modules/vcenter_extension.py
# Copyright: (c) 2018, Michael Tipton <mike () ibeta.org> # GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or https://www.gnu.org/licenses/gpl-3.0.txt) # SPDX-License-Identifier: GPL-3.0-or-later from __future__ import absolute_import, division, print_function __metaclass__ = type DOCUMENTATION...
PypiClean
/school_pubsub-0.7.0.tar.gz/school_pubsub-0.7.0/school_backends.py
from pubnub.pubnub import PubNub, SubscribeListener from pubnub.pnconfiguration import PNConfiguration from uuid import uuid4 from pubsub import ( get_secret, call_mapped_method, ) import importlib, redis, time, os, uuid IS_VERBOSE = os.environ.get('VERBOSE', 'True') == 'True' CHECKIN_INTERVAL = 60000 # 1 minu...
PypiClean
/pulumi_nutanix-0.0.42.tar.gz/pulumi_nutanix-0.0.42/pulumi_nutanix/floating_ip.py
import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from . import _utilities __all__ = ['FloatingIpArgs', 'FloatingIp'] @pulumi.input_type class FloatingIpArgs: def __init__(__self__, *, api_version: Optional[pulumi.Input[str]]...
PypiClean
/django-cms-search-0.6.3.tar.gz/django-cms-search-0.6.3/docs/_build/html/_static/jquery.js
(function(A,w){function ma(){if(!c.isReady){try{s.documentElement.doScroll("left")}catch(a){setTimeout(ma,1);return}c.ready()}}function Qa(a,b){b.src?c.ajax({url:b.src,async:false,dataType:"script"}):c.globalEval(b.text||b.textContent||b.innerHTML||"");b.parentNode&&b.parentNode.removeChild(b)}function X(a,b,d,f,e,j){v...
PypiClean
/flare-capa-6.1.0.tar.gz/flare-capa-6.1.0/scripts/capa2yara.py
import re import sys import string import logging import argparse import datetime import itertools from pathlib import Path import capa.main import capa.rules import capa.engine import capa.features import capa.features.insn logger = logging.getLogger("capa2yara") today = str(datetime.date.today()) # create unique ...
PypiClean
/echo-server-0.2.0.tar.gz/echo-server-0.2.0/echo_server.py
import os import time import click import threading try: from socketserver import BaseRequestHandler from socketserver import ThreadingMixIn from socketserver import TCPServer from socketserver import UDPServer except ImportError: from SocketServer import BaseRequestHandler from SocketServer imp...
PypiClean
/mitosheet3-0.3.281.tar.gz/mitosheet3-0.3.281/mitosheet/public/v3/sheet_functions/bool_functions.py
# Copyright (c) Saga Inc. # Distributed under the terms of the GPL License. """ Contains all functions that are useful for control flow. For now, this is just IF statements. All functions describe their behavior with a function documentation object in the function docstring. Function documentation objects are describ...
PypiClean
/IsoCor-2.2.1-py3-none-any.whl/isocor/ui/isocorcli.py
import argparse import isocor as hr import isocor.ui.isocordb import pandas as pd import io import logging from pathlib import Path import sys def process(args): # create logger (should be root to catch all 'mscorrectors' loggers) logger = logging.getLogger() formatter = logging.Formatter( '%(asct...
PypiClean
/smart_home_tng-2023.1.3.tar.gz/smart_home_tng-2023.1.3/smart_home_tng/core/fan.py
import dataclasses import datetime as dt import enum import functools as ft import math import typing from . import helpers from .toggle import Toggle _SCAN_INTERVAL: typing.Final = dt.timedelta(seconds=30) class _EntityFeature(enum.IntEnum): """Supported features of the fan entity.""" SET_SPEED = 1 O...
PypiClean
/tinned_python-0.1.2.tar.gz/tinned_python-0.1.2/README.rst
============= Tinned Python ============= .. image:: https://img.shields.io/pypi/v/tinned_python.svg :target: https://pypi.python.org/pypi/tinned_python .. image:: https://github.com/tmfnll/tinned_python/workflows/Python%20package/badge.svg :target: https://github.com/tmfnll/tinned_python/actions?que...
PypiClean
/testcase_automaker-1.0.8-py3-none-any.whl/testcase_automaker/interface/http_params_generator.py
import sys sys.path.append("../..") from testcase_automaker.Utils.amazingutils import randoms from allpairspy import AllPairs import random import copy class http_params_generator(object): ''' >>> params_generator = http_params_generator(parameters_structure={'name': {'type': 'string', 'value': '','range':[...
PypiClean
/masonite-inertia-4.2.4.tar.gz/masonite-inertia-4.2.4/README.md
<p align="center"> <img src="https://banners.beyondco.de/Masonite%20Inertia.png?theme=light&packageManager=pip+install&packageName=masonite-inertia&pattern=topography&style=style_1&description=Masonite%20Inertia%20server-side%20adapter&md=1&showWatermark=1&fontSize=100px&images=https%3A%2F%2Fgblobscdn.gitbook.com%2...
PypiClean
/elyra-3.15.0.tar.gz/elyra-3.15.0/build/labextensions/@elyra/script-debugger-extension/static/remoteEntry.c3b9ed19d9943f6d8db7.js
var _JUPYTERLAB; /******/ (() => { // webpackBootstrap /******/ "use strict"; /******/ var __webpack_modules__ = ({ /***/ "webpack/container/entry/@elyra/script-debugger-extension": /*!***********************!*\ !*** container entry ***! \***********************/ /***/ ((__unused_webpack_module, exports, __webpa...
PypiClean
/jupyter_admin-0.0.2.tar.gz/jupyter_admin-0.0.2/jupyter_admin/labextension/static/vendors-node_modules_primer_react_lib-esm_TreeView_TreeView_js-node_modules_primer_react_lib--75b6cc.f37e1d649cb354894b98.js
"use strict"; (self["webpackChunk_datalayer_datalayer"] = self["webpackChunk_datalayer_datalayer"] || []).push([["vendors-node_modules_primer_react_lib-esm_TreeView_TreeView_js-node_modules_primer_react_lib--75b6cc"],{ /***/ "../../node_modules/@primer/react/lib-esm/TreeView/TreeView.js": /*!**************************...
PypiClean
/nni-3.0rc1-py3-none-macosx_10_9_x86_64.whl/nni_node/node_modules/moment/locale/ru.js
;(function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment) }(this, (function (moment) { 'use strict'; ...
PypiClean
/tacker-9.0.0.0rc1.tar.gz/tacker-9.0.0.0rc1/doc/source/contributor/vagrant_devstack.rst
.. Copyright (C) 2022 Nippon Telegraph and Telephone Corporation All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/l...
PypiClean
/RsCMPX_LteMeas-4.0.185.tar.gz/RsCMPX_LteMeas-4.0.185/RsCMPX_LteMeas/Implementations/LteMeas/MultiEval/ListPy/Segment/Power/Cc/Average.py
from ........Internal.Core import Core from ........Internal.CommandsGroup import CommandsGroup from ........Internal.StructBase import StructBase from ........Internal.ArgStruct import ArgStruct from ........ import repcap # noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection class AverageCls: ...
PypiClean
/tf1_tensorflow_object_detection_api-1.15-cp37-cp37m-win_amd64.whl/tf1_tensorflow_object_detection_api-1.15.0.data/purelib/object_detection/models/faster_rcnn_resnet_keras_feature_extractor.py
import tensorflow.compat.v1 as tf from object_detection.meta_architectures import faster_rcnn_meta_arch from object_detection.models.keras_models import resnet_v1 from object_detection.utils import model_util _RESNET_MODEL_CONV4_LAST_LAYERS = { 'resnet_v1_50': 'conv4_block6_out', 'resnet_v1_101': 'conv4_bloc...
PypiClean
/accelbyte_py_sdk-0.48.0.tar.gz/accelbyte_py_sdk-0.48.0/accelbyte_py_sdk/api/platform/models/payment_order_refund_result.py
# template file: ags_py_codegen # AccelByte Gaming Services Platform Service (4.34.0) # pylint: disable=duplicate-code # pylint: disable=line-too-long # pylint: disable=missing-function-docstring # pylint: disable=missing-module-docstring # pylint: disable=too-many-arguments # pylint: disable=too-many-branches # pyl...
PypiClean
/aws_cost_optimization_1-0.1.1.tar.gz/aws_cost_optimization_1-0.1.1/aws_cost_optimization_1/__init__.py
import time from boto3 import session import logging from aws_cost_optimization_1.utils import * logging.basicConfig(level=logging.INFO) logger = logging.getLogger() __author__ = "Dheeraj Banodha" __version__ = '0.1.1' class aws_client: def __init__(self, **kwargs): if 'aws_access_key_id' in kwargs.key...
PypiClean
/in2xl-0.2.3.tar.gz/in2xl-0.2.3/docs/build/html/_static/js/html5shiv-printshiv.min.js
!function(a,b){function c(a,b){var c=a.createElement("p"),d=a.getElementsByTagName("head")[0]||a.documentElement;return c.innerHTML="x<style>"+b+"</style>",d.insertBefore(c.lastChild,d.firstChild)}function d(){var a=y.elements;return"string"==typeof a?a.split(" "):a}function e(a,b){var c=y.elements;"string"!=typeof c&&...
PypiClean
/plonesocial.activitystream-0.5.6.zip/plonesocial.activitystream-0.5.6/plonesocial/activitystream/browser/stream_provider.py
import itertools from zope.interface import Interface from zope.interface import implements from zope.component import adapts from zope.component import getMultiAdapter from zope.component.hooks import getSite from Acquisition import aq_inner from AccessControl import Unauthorized from AccessControl import getSecurit...
PypiClean
/repl_openbb-2.1.7-py3-none-any.whl/openbb_terminal/forecast/trans_view.py
__docformat__ = "numpy" import logging from typing import Union, Optional, List from datetime import datetime import pandas as pd import matplotlib.pyplot as plt from openbb_terminal.forecast import trans_model from openbb_terminal.decorators import log_start_end from openbb_terminal.forecast import helpers logger ...
PypiClean
/ais_dom-2023.7.2-py3-none-any.whl/homeassistant/components/canary/coordinator.py
from __future__ import annotations from collections.abc import ValuesView from datetime import timedelta import logging from async_timeout import timeout from canary.api import Api from canary.model import Location, Reading from requests.exceptions import ConnectTimeout, HTTPError from homeassistant.core import Home...
PypiClean
/nni-3.0rc1-py3-none-macosx_10_9_x86_64.whl/nni_node/node_modules/rx/dist/rx.coincidence.js
;(function (factory) { var objectTypes = { 'function': true, 'object': true }; function checkGlobal(value) { return (value && value.Object === Object) ? value : null; } var freeExports = (objectTypes[typeof exports] && exports && !exports.nodeType) ? exports : null; var freeModule = (objectTy...
PypiClean
/surrogate-0.1.tar.gz/surrogate-0.1/README.md
About ===== `surrogate` is a micro-lib helping people to create stubs for non-existing modules in `sys.modules` so that later those modules can be imported. `surrogate` does not touch modules that exist in `sys.modules` even if you ask it to. At the moment `surrogate` offers only decorator interface but it is planned...
PypiClean
/vid2info-1.129.tar.gz/vid2info-1.129/yolox/evaluators/evaluation.py
import os import numpy as np import copy import motmetrics as mm mm.lap.default_solver = 'lap' class Evaluator(object): def __init__(self, data_root, seq_name, data_type): self.data_root = data_root self.seq_name = seq_name self.data_type = data_type self.load_annotations() ...
PypiClean
/sportmonks_python_sdk-0.1.0-py3-none-any.whl/sportmonks/paths/version_sport_news_post_match/get.py
from dataclasses import dataclass import typing_extensions import urllib3 from sportmonks.request_before_hook import request_before_hook import json from urllib3._collections import HTTPHeaderDict from sportmonks.api_response import AsyncGeneratorResponse from sportmonks import api_client, exceptions from datetime imp...
PypiClean
/os_vif-3.2.0-py3-none-any.whl/os_vif/__init__.py
from oslo_log import log as logging from stevedore import extension import os_vif.exception import os_vif.i18n import os_vif.objects _EXT_MANAGER = None LOG = logging.getLogger(__name__) def initialize(reset=False): """ Loads all os_vif plugins and initializes them with a dictionary of configuration op...
PypiClean
/ada-py-0.0.40a4.tar.gz/ada-py-0.0.40a4/src/ada/visualize/formats/threejs/write_threejs_json.py
import json import os import pathlib from typing import TYPE_CHECKING if TYPE_CHECKING: from ada import Assembly def to_three_json(assembly: "Assembly", output_file_path): from OCC.Core.Tesselator import ShapeTesselator quality = 1.0 render_edges = False parallel = True total_json = [] f...
PypiClean
/atriumsports_sdk-1.6.0.tar.gz/atriumsports_sdk-1.6.0/atriumsports/datacore/openapi/api/video_streams_available_api.py
# noqa: E501 import io import logging import re # noqa: F401 import warnings from datetime import datetime from typing import Optional from pydantic import Field, StrictBool, StrictInt, StrictStr, ValidationError, conint, constr, validate_arguments from typing_extensions import Annotated from atriumsports.datacore...
PypiClean
/opentaxforms-0.5.7.tar.gz/opentaxforms-0.5.7/README.md
OpenTaxForms opens and automates US tax forms--it reads PDF tax forms (currently from IRS.gov only, not state forms), converts them to more feature-full HTML5, and offers a database and API for developers to create their own tax applications. The converted forms will be available to test (and ultimately use) at [OpenT...
PypiClean
/HBT_IP_Test-1.0.1-py3-none-any.whl/HBT_IP_Test/libs/isom/python/AudioSources_pb2.py
import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) from google.protobuf.internal import enum_type_wrapper from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection from google.protobuf i...
PypiClean
/hpy-0.9.0rc2.tar.gz/hpy-0.9.0rc2/docs/api-reference/hpy-type.rst
HPy Types and Modules ===================== Types, modules and their attributes (i.e. methods, members, slots, get-set descriptors) are defined in a similar way. Section `HPy Type`_ documents the type-specific and `HPy Module`_ documents the module-specific part. Section `HPy Definition`_ documents how to define attri...
PypiClean
/calibreweb-nepali-0.6.20.tar.gz/calibreweb-nepali-0.6.20/src/cps/oauth_bb.py
# This file is part of the Calibre-Web (https://github.com/janeczku/calibre-web) # Copyright (C) 2018-2019 OzzieIsaacs, cervinko, jkrehm, bodybybuddha, ok11, # andy29485, idalin, Kyosfonica, wuqi, Kennyl, lemmsh, # falgh1, grunjol, csitko, ytils, xybydy, trasba...
PypiClean
/idem-random-2.0.0.tar.gz/idem-random-2.0.0/idem_random/states/random/password.py
from typing import Any from typing import Dict import dict_tools.differ as differ def present( hub, ctx, name: str, length: int, resource_id: str = None, keepers: Dict[str, Any] = None, upper: bool = True, min_upper: int = 0, lower: bool = True, min_lower: int = 0, numeric...
PypiClean
/Flask-PagedList-0.2.1.zip/Flask-PagedList-0.2.1/README.rst
Flask-PagedList =============== Flask-PagedList bundles features from pypagedlist into a blueprint named 'PagedList'. Installation ------------ Flask-PagedList can be installed using ``pip`` from `PyPI`_. `virtualenv`_ is highly recommended: .. code-block:: bash pip install -U flask-pagedlist .. _PyPI: https:...
PypiClean
/rul_pm-1.1.0.tar.gz/rul_pm-1.1.0/rul_pm/models/keras/models/VisionTransformer.py
import numpy as np import tensorflow as tf from rul_pm.models.keras.keras import KerasTrainableModel from rul_pm.models.keras.layers import ExpandDimension, RemoveDimension from tensorflow.keras import Input, Model, optimizers from tensorflow.keras.layers import (Layer, LayerNormalization, MultiHeadAttention, ...
PypiClean
/idealoom-0.1.0-py3-none-any.whl/assembl/models/idea_graph_view.py
from collections import defaultdict from datetime import datetime from abc import abstractmethod from itertools import chain from future.utils import as_native_str from sqlalchemy.orm import ( relationship, backref) from sqlalchemy import ( Column, Integer, String, UnicodeText, DateTime, Bo...
PypiClean
/py-pure-client-1.38.0.tar.gz/py-pure-client-1.38.0/pypureclient/flashblade/FB_2_7/models/directory_service_role.py
import pprint import re import six import typing from ....properties import Property if typing.TYPE_CHECKING: from pypureclient.flashblade.FB_2_7 import models class DirectoryServiceRole(object): """ Attributes: swagger_types (dict): The key is attribute name and the val...
PypiClean
/comt-2.6.4.tar.gz/comt-2.6.4/src/cm/media/js/lib/yui/yui3-3.15.0/src/datatable/js/message.js
var Message; /** _API docs for this extension are included in the DataTable class._ Adds support for a message container to appear in the table. This can be used to indicate loading progress, lack of records, or any other communication needed. Features added to `Y.DataTable`, and made available for custom classes a...
PypiClean
/jupyter-server-proxy-noe-1.1.tar.gz/jupyter-server-proxy-noe-1.1/README.rst
==================== Jupyter Server Proxy test ==================== |ReadTheDocs badge| |Travis badge| |PyPI badge| |Conda badge| |NPM badge| .. |ReadTheDocs badge| image:: https://img.shields.io/readthedocs/jupyter-server-proxy?logo=read-the-docs :target: https://jupyter-server-proxy.readthedocs.io/ .. |Travis b...
PypiClean
/svg.py-1.4.2.tar.gz/svg.py-1.4.2/reflect/_mdn_attr.py
from __future__ import annotations import re from dataclasses import dataclass from pathlib import Path import yaml try: from functools import cached_property except ImportError: cached_property = property # type: ignore REX_EL = re.compile(r'li>\{\{\s*SVGElement\(["\']([a-zA-Z-]+)["\']\)\s*\}\}\.?</') DE...
PypiClean
/mewpy-0.1.31.tar.gz/mewpy-0.1.31/docs/mewpy.optimization.jmetal.rst
mewpy.optimization.jmetal package ================================= Submodules ---------- mewpy.optimization.jmetal.ea module ----------------------------------- .. automodule:: mewpy.optimization.jmetal.ea :members: :undoc-members: :show-inheritance: mewpy.optimization.jmetal.observers module ------------...
PypiClean
/pyved-engine-23.8a5.tar.gz/pyved-engine-23.8a5/src/pyved_engine/add_ons/tmx/pytiled_parser/layer.py
from pathlib import Path from typing import List, Optional, Union # import attr from .common_types import Color, OrderedPair, Size from .properties import Properties from .tiled_object import TiledObject class Layer: """Base class that all layer types inherit from. Includes common attributes between the var...
PypiClean
/mis_modulos-0.1.tar.gz/mis_modulos-0.1/tensorflow/python/keras/callbacks_v1.py
"""Callbacks: utilities called at certain points during model training.""" import os import numpy as np from tensorflow.python.eager import context from tensorflow.python.framework import dtypes from tensorflow.python.framework import errors from tensorflow.python.keras import backend as K from tensorflow.python.kera...
PypiClean
/test_stockpyl-0.0.9-py3-none-any.whl/stockpyl/instances.py
import csv import datetime import json # import copy import os import warnings from copy import deepcopy import jsonpickle from stockpyl.supply_chain_network import * from stockpyl.supply_chain_node import * #: Default path to JSON file containing built-in instances. Relative to 'src' directory. DEFAULT_JSON_FILEPA...
PypiClean
/sdksio_juniper_mist_sdk-1.0.0-py3-none-any.whl/mistapi/models/deviceprofile.py
from mistapi.api_helper import APIHelper from mistapi.models.ap_aeroscout import ApAeroscout from mistapi.models.ap_ble import ApBle from mistapi.models.ap_iot import ApIot from mistapi.models.ap_ip import ApIp from mistapi.models.ap_led import ApLed from mistapi.models.ap_mesh import ApMesh from mistapi.models.ap_radi...
PypiClean
/youtube_dl_fork-2022.6.30.tar.gz/youtube_dl_fork-2022.6.30/youtube_dl/extractor/microsoftvirtualacademy.py
from __future__ import unicode_literals import re from .common import InfoExtractor from ..compat import ( compat_xpath, ) from ..utils import ( int_or_none, parse_duration, smuggle_url, unsmuggle_url, xpath_text, ) class MicrosoftVirtualAcademyBaseIE(InfoExtractor): def _extract_base_ur...
PypiClean
/diva-boiler-0.2.2.tar.gz/diva-boiler-0.2.2/boiler/__init__.py
import datetime import json import os import platform import sys import traceback from typing import Any, Optional from urllib.parse import urlparse import click from packaging.version import parse as parse_version from pkg_resources import DistributionNotFound, get_distribution import requests from requests.exceptio...
PypiClean
/autoenrich-2.1.1.tar.gz/autoenrich-2.1.1/autoENRICH/preferences/preferences.py
#autoENRICH is free software: you can redistribute it and/or modify #it under the terms of the GNU Affero General Public License as published by #the Free Software Foundation, either version 3 of the License, or #(at your option) any later version. #autoENRICH is distributed in the hope that it will be useful, #but W...
PypiClean
/django-nimda-0.0.1.tar.gz/django-nimda-0.0.1/nimda/static/admin/js/inlines.js
(function($) { $.fn.formset = function(opts) { var options = $.extend({}, $.fn.formset.defaults, opts); var $this = $(this); var $parent = $this.parent(); var updateElementIndex = function(el, prefix, ndx) { var id_regex = new RegExp("(" + prefix + "-(\\d+|__prefix__))"); var replacement =...
PypiClean
/android-tv-remote-0.1.5.tar.gz/android-tv-remote-0.1.5/LICENSE.md
# The MIT License (MIT) Copyright (c) 2019 Tim Santor 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, pub...
PypiClean
/aidenva-0.0.1-py3-none-any.whl/vaengine/firesmoke_va_6.py
import logging import cv2 import numpy as np from service.va_service import VAService from models.classify import Classify from misc import labelmap_util from misc.firesmoke_detector_v4 import FiresmokeDetector from misc.estimator.condition_estimate import ConditionEstimator from misc.estimator.action_estimate import...
PypiClean
/pynmsnn-0.0.3-py3-none-any.whl/pyNM/cf_matrix.py
__author__ = 'Ajay Arunachalam' __version__ = '0.0.1' __date__ = '17.07.2021' import numpy as np import matplotlib.pyplot as plt import seaborn as sns def make_confusion_matrix(cf, group_names=None, categories='auto', count=True, ...
PypiClean
/aglite_test.core-0.7.0b20230314-py3-none-any.whl/autogluon/core/searcher/local_searcher.py
import logging import pickle from collections import OrderedDict from ..space import Categorical, Space __all__ = ['LocalSearcher'] logger = logging.getLogger(__name__) class LocalSearcher(object): """Local Searcher (virtual class to inherit from if you are creating a custom Searcher). Parameters ----...
PypiClean
/DLex_DeaL-0.0.3-py3-none-any.whl/DLex/genfa.py
from .lexer import * import argparse from .GrParser import LexParser from graphviz import Digraph from . import LexIO class FAVisualizer: def __init__(self, nfa={}, dfa={}) -> None: self.nfa = nfa self.dfa = dfa self.dot = Digraph(name="NFA", node_attr={ "shape": "circle", ...
PypiClean
/pulumi_tls-5.1.0a1687758130.tar.gz/pulumi_tls-5.1.0a1687758130/pulumi_tls/locally_signed_cert.py
import copy import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from . import _utilities __all__ = ['LocallySignedCertArgs', 'LocallySignedCert'] @pulumi.input_type class LocallySignedCertArgs: def __init__(__self__, *, allowed...
PypiClean
/hikari_tanjun-2.17.0.tar.gz/hikari_tanjun-2.17.0/tanjun/context/menu.py
"""Menu context implementation.""" from __future__ import annotations __all__: list[str] = ["MenuContext"] import typing import hikari from .. import _internal from .. import abc as tanjun from . import slash if typing.TYPE_CHECKING: import asyncio from collections import abc as collections from typin...
PypiClean
/aicmder-0.5.8-py3-none-any.whl/dl/baili.py
import math def getAngle(x1, y1, x2, y2): inRads = math.atan2(y2 - y1, x2 - x1) # We need to map to coord system when 0 degree is at 3 O'clock, 270 at 12 O'clock # print(inRads) if inRads < 0: inRads = abs(inRads) else: inRads = 2 * math.pi - inRads return inRads, math.degrees...
PypiClean
/RxPy3-1.0.2-py3-none-any.whl/rx3/core/operators/delaywithmapper.py
from typing import Callable from rx3.core import Observable, typing from rx3.disposable import CompositeDisposable, SingleAssignmentDisposable, SerialDisposable def _delay_with_mapper(subscription_delay=None, delay_duration_mapper=None) -> Callable[[Observable], Observable]: def delay_with_mapper(source: Observa...
PypiClean
/tensorflow_cpu-2.14.0rc1-cp311-cp311-macosx_10_15_x86_64.whl/tensorflow/_api/v2/compat/v2/linalg/__init__.py
import sys as _sys from . import experimental from tensorflow.python.ops.array_ops import matrix_diag as diag from tensorflow.python.ops.array_ops import matrix_diag_part as diag_part from tensorflow.python.ops.array_ops import matrix_set_diag as set_diag from tensorflow.python.ops.array_ops import matrix_transpose fr...
PypiClean
/flake8-plus-0.5.1.tar.gz/flake8-plus-0.5.1/README.md
# Flake8-plus [![CircleCI](https://dl.circleci.com/status-badge/img/gh/sorenlind/flake8-plus/tree/main.svg?style=shield)](https://dl.circleci.com/status-badge/redirect/gh/sorenlind/flake8-plus/tree/main) [![codecov](https://img.shields.io/codecov/c/github/sorenlind/flake8-plus?token=8ULWSRBPNC)](https://codecov.io/gh/...
PypiClean
/google-cloud-bare-metal-solution-1.4.2.tar.gz/google-cloud-bare-metal-solution-1.4.2/google/cloud/bare_metal_solution_v2/services/bare_metal_solution/transports/grpc_asyncio.py
from typing import Awaitable, Callable, Dict, Optional, Sequence, Tuple, Union import warnings from google.api_core import gapic_v1, grpc_helpers_async, operations_v1 from google.auth import credentials as ga_credentials # type: ignore from google.auth.transport.grpc import SslCredentials # type: ignore from google....
PypiClean
/MDsrv-0.3.5.tar.gz/MDsrv-0.3.5/CHANGELOG.md
# Change Log All notable changes to this project will be documented in this file, following the suggestions of [Keep a CHANGELOG](http://keepachangelog.com/). This project adheres to [Semantic Versioning](http://semver.org/). ## [v0.3.5] - 2017-08-13 ### Added - WINDOWS support (tested for conda) ### Changed - trajec...
PypiClean
/robot_grpc-0.0.4.tar.gz/robot_grpc-0.0.4/robot_grpc/node_modules/over/README.md
# over JavaScript function overloading framework. ## Installation ```bash $ npm install over ``` ## Quick Examples ```javascript var over = require('over'); var myfn = over([ [over.string, function (str) { console.log('got a string' + str); }], [over.string, over.numberOptionalWithDefault(5), over.callbackOpt...
PypiClean
/sparkfun-circuitpython-serlcd-1.0.4.tar.gz/sparkfun-circuitpython-serlcd-1.0.4/CODE_OF_CONDUCT.md
<!-- SPDX-FileCopyrightText: 2014 Coraline Ada Ehmke SPDX-FileCopyrightText: 2019-2021 Kattni Rembor for Adafruit Industries SPDX-License-Identifier: CC-BY-4.0 --> # Adafruit Community Code of Conduct ## Our Pledge In the interest of fostering an open and welcoming environment, we as contributors and leaders pledge ...
PypiClean
/convo_nlu2-2.0.0.tar.gz/convo_nlu2-2.0.0/convo/nlu/classifiers/keyword_intent_classifier.py
import os import logging import re from typing import Any, Dict, Optional, Text from convo.shared.constants import DOCS_URL_COMPONENTS from convo.nlu import utils from convo.nlu.classifiers.classifier import IntentClassifier from convo.shared.nlu.constants import INTENT, TEXT import convo.shared.utils.io from convo.nl...
PypiClean
/ensmallen_graph-0.6.0-cp37-cp37m-manylinux2010_x86_64.whl/ensmallen_graph/datasets/networkrepository/miscjungcodedep.py
from typing import Dict from ..automatic_graph_retrieval import AutomaticallyRetrievedGraph from ...ensmallen_graph import EnsmallenGraph # pylint: disable=import-error def MiscJungCodeDep( directed: bool = False, verbose: int = 2, cache_path: str = "graphs/networkrepository", **additional_graph_kwa...
PypiClean
/django-servee-uploadify-0.1.tar.gz/django-servee-uploadify-0.1/servee_uploadify/static/uploadify/swfobject.js
var swfobject=function(){var D="undefined",r="object",S="Shockwave Flash",W="ShockwaveFlash.ShockwaveFlash",q="application/x-shockwave-flash",R="SWFObjectExprInst",x="onreadystatechange",O=window,j=document,t=navigator,T=false,U=[h],o=[],N=[],I=[],l,Q,E,B,J=false,a=false,n,G,m=true,M=function(){var aa=typeof j.getEleme...
PypiClean