id
stringlengths
1
8
text
stringlengths
6
1.05M
dataset_id
stringclasses
1 value
/kidx-core-0.0.1a2.tar.gz/kidx-core-0.0.1a2/kidx_core/policies/sklearn_policy.py
import typing import logging import numpy as np import os import pickle import warnings from sklearn.base import clone from sklearn.linear_model import LogisticRegression from sklearn.model_selection import GridSearchCV from sklearn.preprocessing import LabelEncoder # noinspection PyProtectedMember from sklearn.utils ...
PypiClean
/wasp-launcher-0.0.2.tar.gz/wasp-launcher-0.0.2/wasp_launcher/static/angular/latest/i18n/angular-locale_en-lr.js
'use strict'; angular.module("ngLocale", [], ["$provide", function($provide) { var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; function getDecimals(n) { n = n + ''; var i = n.indexOf('.'); return (i == -1) ? 0 : n.length - i - 1; } function getVF(n, opt_pre...
PypiClean
/python-datamatrix-0.15.3.tar.gz/python-datamatrix-0.15.3/datamatrix/_datamatrix/_numericcolumn.py
from datamatrix.py3compat import * from datamatrix._datamatrix._basecolumn import BaseColumn, NUMBER from datamatrix._datamatrix._callable_values import CallableFloat from datamatrix._datamatrix._index import Index import operator import warnings try: import numpy as np from numpy import nanmean, nanmedian, nan...
PypiClean
/Muntjac-1.1.2.tar.gz/Muntjac-1.1.2/muntjac/demo/sampler/features/trees/TreeSingleSelectExample.py
from muntjac.demo.sampler.ExampleUtil import ExampleUtil from muntjac.api import \ HorizontalLayout, Button, Tree, TextField, Alignment from muntjac.ui import button from muntjac.data.property import IValueChangeListener from muntjac.event.action import Action from muntjac.event import action from muntjac.ui.abs...
PypiClean
/k4-0.1.0a0.tar.gz/k4-0.1.0a0/src/kafka_wrapper/consumer_group.py
from confluent_kafka import ConsumerGroupState, Consumer, OFFSET_INVALID from confluent_kafka import KafkaException, KafkaError from .kafka_resource import KafkaResource from .topic import Topic class ConsumerGroup(KafkaResource): def __init__(self, admin_client_config=None, timeout=10, log_level=None): "...
PypiClean
/bluegraph-0.1.6.tar.gz/bluegraph-0.1.6/Contributing.rst
Contributing ============ Setup .. code-block:: shell git clone https://github.com/BlueBrain/BlueBrainGraph.git pip install --editable .[dev] Checks before committing .. code-block:: shell tox Styling ------- `PEP 8 <https://www.python.org/dev/peps/pep-0008/>`__, `PEP 257 <https://www.python.org/dev/pe...
PypiClean
/make_django-0.0.1.4-py3-none-any.whl/make_django/data/application/templatetags/filters.py
from django import template import datetime as dt import re register = template.Library() @register.filter def minus(value, arg): return (value or 0) - (arg or 0) @register.filter def plus(value, arg): return (value or 0) + (arg or 0) @register.filter def multiply(value, arg): return (value or 0) * ...
PypiClean
/cdktf-cdktf-provider-google_beta-9.0.1.tar.gz/cdktf-cdktf-provider-google_beta-9.0.1/src/cdktf_cdktf_provider_google_beta/google_compute_firewall_policy_association/__init__.py
import abc import builtins import datetime import enum import typing import jsii import publication import typing_extensions from typeguard import check_type from .._jsii import * import cdktf as _cdktf_9a9027ec import constructs as _constructs_77d1e7e8 class GoogleComputeFirewallPolicyAssociation( _cdktf_9a9...
PypiClean
/pcalg-0.2.2.tar.gz/pcalg-0.2.2/README.md
# CPDAG Estimation using PC-Algorithm ## Overview This package provides functions to estimate a skeleton graph and a completed partially acyclic graph (CPDAG) from a data matrix that describes the appearance patterns of the graph nodes. The detailed algorithm is written in [Kalisch2007]. ## Code The source code is...
PypiClean
/fake_bpy_module_3.1-20230117-py3-none-any.whl/freestyle/predicates.py
import sys import typing import freestyle.types GenericType = typing.TypeVar("GenericType") class AndBP1D: pass class AndUP1D: pass class ContourUP1D: ''' Class hierarchy: `freestyle.types.UnaryPredicate1D` > `ContourUP1D` ''' def __call__(self, inter: 'freestyle.types.Interface1D') -> bool:...
PypiClean
/certora_cli_alpha_naftali_CERT_1936_multiple_envfree_errors-20230508.9.3.168843-py3-none-any.whl/certora_cli/Shared/certoraUtils.py
import csv import json import os import subprocess from abc import ABCMeta from enum import Enum, unique import sys import platform import shlex import shutil import re import queue import math from typing import Any, Callable, Dict, List, Optional, Set, Union, Generator, Tuple from pathlib import Path from contextlib ...
PypiClean
/forkofthemotulator-0.0.5.tar.gz/forkofthemotulator-0.0.5/README.md
# *motulator:* Motor Drive Simulator in Python Introduction ------------ This open-source software includes simulation models for an induction motor, a synchronous reluctance motor, and a permanent-magnet synchronous motor. The motor models are simulated in the continuous-time domain while the control algorithms run i...
PypiClean
/FreePyBX-1.0-RC1.tar.gz/FreePyBX-1.0-RC1/freepybx/public/js/dojo/cldr/nls/de/islamic.js
define( "dojo/cldr/nls/de/islamic", //begin v1.x content { "dateFormatItem-yM": "M.y", "dateFormatItem-yyyyMMMEd": "EEE, d. MMM y G", "dateFormatItem-yyMMdd": "dd.MM.y G", "dateFormatItem-yQ": "Q y", "dayPeriods-format-wide-pm": "nachm.", "eraNames": [ "AH" ], "dateFormatItem-MMMEd": "E, d. MMM", "dateFormat...
PypiClean
/idf_component_manager-1.3.2.tar.gz/idf_component_manager-1.3.2/idf_component_tools/sources/git.py
import os import re import shutil import tempfile from hashlib import sha256 from ..errors import FetchingError from ..file_tools import copy_filtered_directory from ..git_client import GitClient from ..hash_tools import hash_dir from ..manifest import ( MANIFEST_FILENAME, ComponentVersion, ComponentWithVersions,...
PypiClean
/idem_aws-4.0.1-py3-none-any.whl/idem_aws/exec/aws/backup/backup_vault.py
from typing import Dict __func_alias__ = {"list_": "list"} async def get(hub, ctx, name: str, resource_id: str = None): """Returns the backup vault. Args: name(str): The name of the Idem state. resource_id(str): AWS Backup vault name. Examples: Calling ...
PypiClean
/mera_tvm_runtime-1.4.0-cp36-cp36m-manylinux_2_27_x86_64.whl/tvm/te/hybrid/preprocessor.py
"""Determines the declaration, r/w status, and last use of each variable""" import ast import sys from .runtime import HYBRID_GLOBALS from .utils import _internal_assert class PyVariableUsage(ast.NodeVisitor): """The vistor class to determine the declaration, r/w status, and last use of each variable""" # p...
PypiClean
/newrelic_python_agent-1.4.0-py3-none-any.whl/newrelic_python_agent/plugins/php_apc.py
import logging from newrelic_python_agent.plugins import base LOGGER = logging.getLogger(__name__) class APC(base.JSONStatsPlugin): GUID = 'com.meetme.newrelic_php_apc_agent' def add_datapoints(self, stats): """Add all of the data points for a node :param dict stats: The stats content fro...
PypiClean
/notionhq-client-0.6.0.tar.gz/notionhq-client-0.6.0/README.md
<!-- markdownlint-disable --> <div align="center"> <h1>Notion SDK for Python</h1> <p> <b>A simple and easy to use client for the <a href="https://developers.notion.com">Notion API</a></b> </p> <p> <a href="https://pypi.org/project/notion-client"><img src="https://img.shields.io/pypi/v/no...
PypiClean
/fzj_ipp_webservices-1.2-py3-none-any.whl/fieldlinetracer/cache.py
import os import getpass import time import hashlib import numpy as np import warnings from .inputs import PredefinedField class Cache: def __init__(self, root = '\\\\share.ipp-hgw.mpg.de/mp', dir = 'fieldline/{user}/fieldlinetracer/field_cache', max_age = 7 * 24 * 60 * 60 ): self.user = getpass.getuser() ...
PypiClean
/chekov-2.3.273.tar.gz/chekov-2.3.273/checkov/openapi/checks/resource/v2/OperationObjectImplicitFlow.py
from __future__ import annotations from typing import Any from checkov.common.models.enums import CheckResult, CheckCategories from checkov.common.checks.enums import BlockType from checkov.openapi.checks.resource.v2.BaseOpenapiCheckV2 import BaseOpenapiCheckV2 class OperationObjectImplicitFlow(BaseOpenapiCheckV2): ...
PypiClean
/three-py-0.0.2.tar.gz/three-py-0.0.2/three/renderer/wgpu/wgpu_bindings.py
from weakref import WeakKeyDictionary import wgpu, three from ...structure import Dict class WgpuBindings: def __init__(self, device, info, properties, textures, renderPipelines, computePipelines, attributes, nodes ) -> None: self.device: wgpu.GPUDevice = device self.info = info s...
PypiClean
/nm_transformers-1.5.1.42301-py3-none-any.whl/transformers/utils/hub.py
import json import os import re import shutil import sys import tempfile import traceback import warnings from pathlib import Path from typing import Dict, List, Optional, Tuple, Union from urllib.parse import urlparse from uuid import uuid4 import huggingface_hub import requests from huggingface_hub import ( Comm...
PypiClean
/pywingo-0.0.12.tar.gz/pywingo-0.0.12/examples/snapto.py
import sys import pywingo if len(sys.argv) != 3 \ or sys.argv[1] not in ('grow', 'shrink', 'move') \ or sys.argv[2] not in ('top', 'bot', 'left', 'right'): print >> sys.stderr, \ 'Usage: snapto (grow | shrink | move) (top | bot | left | right)' sys.exit(1) def edges(client): ''' ...
PypiClean
/ssi-fctrading-2.4.2.tar.gz/ssi-fctrading-2.4.2/examples/fc_client_ex.py
from ssi_fctrading import FCTradingClient from ssi_fctrading.models import fcmodel_requests from . import fc_config from typing import Union from fastapi import FastAPI app = FastAPI() import random client = FCTradingClient(fc_config.Url, fc_config.ConsumerID, fc_config.ConsumerSecret, fc_config.PrivateKey, fc_confi...
PypiClean
/app_paths-0.0.7.tar.gz/app_paths-0.0.7/README.md
# Get and create paths for your app `app_paths` builds upon [`appdirs`](https://pypi.org/project/appdirs/) and automatically creates canonical file system paths for storing app and user data on Windows, macOS, Linux and *BSD. Instead of just strings, `app_paths` gives developers `Path` objects from [`pathlib`](https:/...
PypiClean
/metric_temporal_logic-0.4.1.tar.gz/metric_temporal_logic-0.4.1/mtl/ast.py
from collections import deque from typing import Union, NamedTuple, TypeVar import attr import funcy as fn from lenses import bind from mtl import sugar Node = TypeVar("Node") def flatten_binary(phi, op, dropT, shortT): def f(x): return x.args if isinstance(x, op) else [x] args = [arg for arg in ...
PypiClean
/RsCMPX_LteMeas-4.0.185.tar.gz/RsCMPX_LteMeas-4.0.185/RsCMPX_LteMeas/Implementations/LteMeas/MultiEval/ListPy/Power/TxPower/__init__.py
from .......Internal.Core import Core from .......Internal.CommandsGroup import CommandsGroup # noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection class TxPowerCls: """TxPower commands group definition. 9 total commands, 5 Subgroups, 0 group commands""" def __init__(self, core: Core, parent):...
PypiClean
/pulumi_onelogin-0.6.1a1683611827.tar.gz/pulumi_onelogin-0.6.1a1683611827/pulumi_onelogin/app.py
import copy import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from . import _utilities from . import outputs from ._inputs import * __all__ = ['AppArgs', 'App'] @pulumi.input_type class AppArgs: def __init__(__self__, *, conn...
PypiClean
/RHUMC-1.1.1.tar.gz/RHUMC-1.1.1/RHITUMC/static/admin/js/timeparse.js
var timeParsePatterns = [ // 9 { re: /^\d{1,2}$/i, handler: function(bits) { if (bits[0].length == 1) { return '0' + bits[0] + ':00'; } else { return bits[0] + ':00'; } } }, // 13:00 { re: /^\d{2}[:.]\d{2}$/i, ...
PypiClean
/ansible-8.3.0-py3-none-any.whl/ansible_collections/cisco/nxos/plugins/modules/nxos_vxlan_vtep_vni.py
from __future__ import absolute_import, division, print_function __metaclass__ = type DOCUMENTATION = """ module: nxos_vxlan_vtep_vni extends_documentation_fragment: - cisco.nxos.nxos short_description: Creates a Virtual Network Identifier member (VNI) description: - Creates a Virtual Network Identifier member (VNI...
PypiClean
/mxnet_cu102-2.0.0b1-py3-none-manylinux2014_x86_64.whl/mxnet/gluon/data/sampler.py
# coding: utf-8 # pylint: disable= """Dataset sampler.""" __all__ = ['Sampler', 'SequentialSampler', 'RandomSampler', 'FilterSampler', 'BatchSampler', 'IntervalSampler'] import numpy as np class Sampler(object): """Base class for samplers. All samplers should subclass `Sampler` and define `__iter...
PypiClean
/Cahier-0.1.1.tar.gz/Cahier-0.1.1/cahier/main.py
# Copyright 2014-2015 Louis Paternault # # Cahier is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # Cahier is distributed in the hope...
PypiClean
/bible-passage-reference-parser-1.0.4.tar.gz/bible-passage-reference-parser-1.0.4/bible/data.py
def bible_data(translation=None): """Return an array with reference data for each book of the bible. Values based on a specific translation. """ # Versions modify base data. Also used as default if no version is provided bible = [ { 'testament': 'OT', 'verse_counts'...
PypiClean
/lino-xl-23.9.1.tar.gz/lino-xl-23.9.1/lino_xl/lib/coachings/ui.py
from lino.api import dd, _ from lino import mixins from lino.modlib.users.mixins import My from .roles import CoachingsUser, CoachingsStaff from .choicelists import * class CoachingTypes(dd.Table): model = 'coachings.CoachingType' column_names = 'name does_integ does_gss eval_guestrole *' required_roles...
PypiClean
/chat_parser-0.1.1.tar.gz/chat_parser-0.1.1/README.md
# chat-parser Tools for chat data analytic ## Install ```bash pip3 install chat-parser ``` ## Usages ```python from chat_parser.data_extractor import Operator o = Operator() o.whatsapp_create_frame("path/to/exported_chat.txt") ``` ## GeneralOperator methods GeneralOperator methods accept no arguments, it operates...
PypiClean
/Orange3-Text-1.14.0.tar.gz/Orange3-Text-1.14.0/orangecontrib/text/hull/concave_hull.py
import itertools from typing import Optional, Union import numpy as np from scipy.spatial.distance import cdist from shapely import LineString, Point, Polygon from orangecontrib.text.hull.alphashape import alphashape, optimizealpha HullType = Union[Polygon, Point, LineString] def _collinear(p0, p1, p2): """Te...
PypiClean
/utm-no-numpy-0.7.2.11.tar.gz/utm-no-numpy-0.7.2.11/README.rst
utm-no-numpy ============ Bidirectional UTM-WGS84 converter for python. Utm optionally requires numpy, but in Pythonic EAFFTP style, always attempts to import it even when it is not installed. Utm itself is otherwise a pure Python package, and is also popular in environments (e.g. Rhino/Grasshopper) that do not ...
PypiClean
/Poutyne-1.17.1-py3-none-any.whl/poutyne/plotting.py
import itertools import os from typing import Any, Dict, List, Optional, Tuple, Union try: import matplotlib.pyplot as plt from matplotlib.ticker import MaxNLocator matplotlib = True except ImportError: matplotlib = False try: import pandas as pd except ImportError: pd = None from poutyne.ut...
PypiClean
/NVDA-addonTemplate-0.5.2.zip/NVDA-addonTemplate-0.5.2/NVDAAddonTemplate/data/{{cookiecutter.project_slug}}/scons-local-2.5.0/SCons/Tool/rmic.py
__revision__ = "src/engine/SCons/Tool/rmic.py rel_2.5.0:3543:937e55cd78f7 2016/04/09 11:29:54 bdbaddog" import os.path import SCons.Action import SCons.Builder import SCons.Node.FS import SCons.Util def emit_rmic_classes(target, source, env): """Create and return lists of Java RMI stub and skeleton class fi...
PypiClean
/pensando_dss-1.62.2-py3-none-any.whl/pensando_dss/psm/model/cluster_cluster_auth_bootstrap_request.py
import re # noqa: F401 import sys # noqa: F401 import nulltype # noqa: F401 from pensando_dss.psm.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, ModelSimple, cached_property, change_keys_js_to_python, convert_js_args_to_python_args, date, datetime, ...
PypiClean
/nm_transformers-1.5.1.42301-py3-none-any.whl/transformers/models/altclip/processing_altclip.py
import warnings from ...processing_utils import ProcessorMixin from ...tokenization_utils_base import BatchEncoding class AltCLIPProcessor(ProcessorMixin): r""" Constructs a AltCLIP processor which wraps a CLIP image processor and a XLM-Roberta tokenizer into a single processor. [`AltCLIPProcessor`]...
PypiClean
/ml_pipelines_sdk-1.14.0rc0-py3-none-any.whl/tfx/dsl/io/plugins/tensorflow_gfile.py
"""Tensorflow GFile-based filesystem plugin.""" from typing import Any, Callable, Iterable, List, Optional, Tuple from tfx.dsl.io import filesystem from tfx.dsl.io import filesystem_registry from tfx.dsl.io.filesystem import PathType try: import tensorflow as tf # pylint: disable=g-import-not-at-top except Module...
PypiClean
/winevtrc-20220106.tar.gz/winevtrc-20220106/docs/sources/eventlog-providers/Provider-Microsoft-Windows-Superfetch.md
## Microsoft-Windows-Superfetch Seen on: * Windows 10 (1511, 1607, 1703, 1709, 1803, 1809, 1903, 1909, 2004, 20H2) * Windows 11 (21H2) * Windows 2012 * Windows 7 * Windows 8.0 * Windows 8.1 <table border="1" class="docutils"> <tbody> <tr> <td><b>Log source(s):</b></td> <td>Microsoft-Windows-Superfet...
PypiClean
/ehelply_python_sdk-1.1.88-py3-none-any.whl/ehelply_python_sdk/api/companies_api_endpoints/create_company_places_companies_post.py
from dataclasses import dataclass import re # noqa: F401 import sys # noqa: F401 import typing import urllib3 import functools # noqa: F401 from urllib3._collections import HTTPHeaderDict from ehelply_python_sdk import api_client, exceptions import decimal # noqa: F401 from datetime import date, datetime # noqa: ...
PypiClean
/drypatrick-2021.7.5.tar.gz/drypatrick-2021.7.5/homeassistant/components/wled/coordinator.py
from __future__ import annotations import asyncio from typing import Callable from wled import WLED, Device as WLEDDevice, WLEDConnectionClosed, WLEDError from homeassistant.config_entries import ConfigEntry from homeassistant.const import CONF_HOST, EVENT_HOMEASSISTANT_STOP from homeassistant.core import HomeAssist...
PypiClean
/pulumi_azure_native-2.5.1a1693590910.tar.gz/pulumi_azure_native-2.5.1a1693590910/pulumi_azure_native/azurestackhci/get_machine_extension.py
import copy import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from .. import _utilities from . import outputs __all__ = [ 'GetMachineExtensionResult', 'AwaitableGetMachineExtensionResult', 'get_machine_extension', 'get_machine_exte...
PypiClean
/py-pure-client-1.38.0.tar.gz/py-pure-client-1.38.0/pypureclient/flasharray/FA_2_25/models/policy_rule_smb_client_post.py
import pprint import re import six import typing from ....properties import Property if typing.TYPE_CHECKING: from pypureclient.flasharray.FA_2_25 import models class PolicyRuleSmbClientPost(object): """ Attributes: swagger_types (dict): The key is attribute name and the...
PypiClean
/casai-home-frontend-20220503.0.tar.gz/casai-home-frontend-20220503.0/hass_frontend/frontend_es5/a78b2f08.js
(self.webpackChunkhome_assistant_frontend=self.webpackChunkhome_assistant_frontend||[]).push([[98062,25214],{63207:function(t,e,n){"use strict";n(65660),n(15112);var i,r,o,s=n(9672),a=n(87156),c=n(50856),u=n(94604);(0,s.k)({_template:(0,c.d)(i||(r=["\n <style>\n :host {\n @apply --layout-inline;\n ...
PypiClean
/treasury_prime_client-1.13.548.tar.gz/treasury_prime_client-1.13.548/treasury_prime_client/model/get_all_incoming_wires200_response.py
import re # noqa: F401 import sys # noqa: F401 from treasury_prime_client.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_ty...
PypiClean
/casai-home-frontend-20220503.0.tar.gz/casai-home-frontend-20220503.0/hass_frontend/frontend_es5/d480018f.js
"use strict";(self.webpackChunkhome_assistant_frontend=self.webpackChunkhome_assistant_frontend||[]).push([[92418],{50577:function(e,t,r){function n(e,t,r,n,i,o,a){try{var p=e[o](a),c=p.value}catch(s){return void r(s)}p.done?t(c):Promise.resolve(c).then(n,i)}r.d(t,{v:function(){return i}});var i=function(){var e,t=(e=r...
PypiClean
/lusid-sdk-asyncio-preview-0.11.3923b0.tar.gz/lusid-sdk-asyncio-preview-0.11.3923b0/lusid_asyncio/api/portfolios_api.py
from __future__ import absolute_import import re # noqa: F401 # python 2 and python 3 compatibility library import six from lusid_asyncio.api_client import ApiClient from lusid_asyncio.exceptions import ( # noqa: F401 ApiTypeError, ApiValueError ) from lusid_asyncio.models.access_metadata_value import Acce...
PypiClean
/tensorflow-checkpoint-reader-0.2.2.tar.gz/tensorflow-checkpoint-reader-0.2.2/tensorflow_checkpoint_reader/block_builder.py
from . import table_options import numpy as np from typing import List #import tensorflow_checkpoint_reader.core as core from . import core from . import coding from . import strings class BlockBuilder: # // Reset the contents as if the BlockBuilder was just constructed. # void Reset(); # # // REQUIRES: F...
PypiClean
/tamagotchi_tandersen-1.0.1.tar.gz/tamagotchi_tandersen-1.0.1/tamagotchi_tandersen/classes/food_inventory.py
from ..abstract.consumable import Consumable from ..classes.coordinate import Coordinate from ..enums.direction import Direction from pygame import draw, color, Surface from pygame.locals import Rect class FoodInventory: """ Will contain the available Consumables for use by the actor """ def __ini...
PypiClean
/group-based-policy-ui-2015.2.5.tar.gz/group-based-policy-ui-2015.2.5/gbpui/panels/application_policy/tabs.py
from django.core.urlresolvers import reverse_lazy from django.utils.translation import ugettext_lazy as _ from horizon import exceptions from horizon import tabs from gbpui import client from gbpui import column_filters as gfilters import tables PolicyRulesTable = tables.PolicyRulesTable PolicyClassifiersTable = t...
PypiClean
/lemon-tinymce-2.1.1.tar.gz/lemon-tinymce-2.1.1/tinymce/static/tinymce/js/tiny_mce_popup.js
var tinymce=null,tinyMCEPopup,tinyMCE;tinyMCEPopup={init:function(){var b=this,a,c;a=b.getWin();tinymce=a.tinymce;tinyMCE=a.tinyMCE;b.editor=tinymce.EditorManager.activeEditor;b.params=b.editor.windowManager.params;b.features=b.editor.windowManager.features;b.dom=b.editor.windowManager.createInstance("tinymce.dom.DOMU...
PypiClean
/opendr-toolkit-panoptic-segmentation-2.2.0.tar.gz/opendr-toolkit-panoptic-segmentation-2.2.0/src/opendr/perception/panoptic_segmentation/efficient_ps/configs/singlegpu_kitti.py
# model settings model = dict( type='EfficientPS', pretrained=True, backbone=dict( type='tf_efficientnet_b5', act_cfg=dict(type="Identity"), norm_cfg=dict(type='InPlaceABN', activation='leaky_relu', activation_param=0.01, requires_grad=True), style='pytorch'), neck=dict(...
PypiClean
/artellapipe-tools-outliner-0.0.4.tar.gz/artellapipe-tools-outliner-0.0.4/artellapipe/tools/outliner/widgets/outliner.py
from __future__ import print_function, division, absolute_import __author__ = "Tomas Poveda" __license__ = "MIT" __maintainer__ = "Tomas Poveda" __email__ = "tpovedatd@gmail.com" import logging import inspect import importlib from functools import partial from collections import OrderedDict from Qt.QtCore import * f...
PypiClean
/hyperion-ml-0.3.2.tar.gz/hyperion-ml-0.3.2/hyperion/torch/narchs/tdnn_factory.py
from jsonargparse import ArgumentParser, ActionParser from .tdnn import TDNNV1 from .etdnn import ETDNNV1 from .resetdnn import ResETDNNV1 class TDNNFactory(object): @staticmethod def create( tdnn_type, num_enc_blocks, in_feats, enc_hid_units, enc_expand_units=None, ...
PypiClean
/prat-misaka-1.1.5.tar.gz/prat-misaka-1.1.5/README.rst
Misaka ====== .. image:: https://secure.travis-ci.org/FSX/misaka.png?branch=master The Python binding for Sundown_, a markdown parsing library. Documentation can be found at: http://misaka.61924.nl/ .. _Sundown: https://github.com/tanoku/sundown Installation ------------ Cython is only needed to compile .pyx fil...
PypiClean
/cdktf-cdktf-provider-cloudflare-9.0.0.tar.gz/cdktf-cdktf-provider-cloudflare-9.0.0/src/cdktf_cdktf_provider_cloudflare/data_cloudflare_accounts/__init__.py
import abc import builtins import datetime import enum import typing import jsii import publication import typing_extensions from typeguard import check_type from .._jsii import * import cdktf as _cdktf_9a9027ec import constructs as _constructs_77d1e7e8 class DataCloudflareAccounts( _cdktf_9a9027ec.TerraformD...
PypiClean
/aiida_raspa-2.0.0.tar.gz/aiida_raspa-2.0.0/aiida_raspa/calculations/__init__.py
import os from pathlib import Path from shutil import copyfile, copytree from aiida.common import CalcInfo, CodeInfo, InputValidationError # from aiida.cmdline.utils import echo from aiida.engine import CalcJob from aiida.orm import Dict, FolderData, List, RemoteData, SinglefileData from aiida.plugins import DataFact...
PypiClean
/django-audiofield-0.10.1.tar.gz/django-audiofield-0.10.1/audiofield/static/audiofield/page-player/script/page-player.js
var pagePlayer = null; function PagePlayer() { var self = this, pl = this, sm = soundManager, // soundManager instance _event, vuDataCanvas = null, controlTemplate = null, _head = document.getElementsByTagName('head')[0], spectrumContainer = null, // sniffing for fav...
PypiClean
/hys_scraper-0.1.32-py3-none-any.whl/hys_scraper/hys_scraper.py
import os import re import sys import json import time import requests import pandas as pd from typing import List, Tuple class HYS_Scraper: def __init__( self, publication_id: str, target_dir: str = None, download_attachments: bool = True, sleep_time: int = 1, ) -> Non...
PypiClean
/cohesity-sdk-1.1.0.tar.gz/cohesity-sdk-1.1.0/cohesity_sdk/cluster/model/odp_remote_clusters.py
import re # noqa: F401 import sys # noqa: F401 from cohesity_sdk.cluster.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_typ...
PypiClean
/ceph-medic-1.0.6.tar.gz/ceph-medic-1.0.6/ceph_medic/util/mon.py
import remoto import json import ceph_medic from ceph_medic import terminal def get_mon_report(conn): command = [ 'ceph', '--cluster=%s' % ceph_medic.metadata['cluster_name'], 'report' ] out, err, code = remoto.process.check( conn, command ) if code > 0: ...
PypiClean
/aws-parameter-store-1.0.0.tar.gz/aws-parameter-store-1.0.0/aws_parameter_store/aws_parameter_store.py
import json import logging from typing import List, Tuple, Any, Callable, Dict import boto3 PATH_DELIMITER = "/" logger = logging.getLogger(__name__) class AwsParameterStore: def __init__(self, region: str, **kwargs): kwargs["region_name"] = region self.client = boto3.client("ssm", **kwargs) ...
PypiClean
/simpegEM1D-0.0.18a0.tar.gz/simpegEM1D-0.0.18a0/README.md
simpegEM1D ========== simpegEM1D is a geophysical simulation and inversion software for an electromagnetic (EM) geophysical surveys. Here we assumed that the earth conductivity struture is layered. Each of layers can have different physical properties such as electrical conductivity, magnetic susceptibility, and diel...
PypiClean
/boot-synth-1.2.0.tar.gz/boot-synth-1.2.0/synth/projects_master/nginx_router/frontend/react/node_modules/body-parser/node_modules/debug/src/debug.js
exports = module.exports = createDebug.debug = createDebug['default'] = createDebug; exports.coerce = coerce; exports.disable = disable; exports.enable = enable; exports.enabled = enabled; exports.humanize = require('ms'); /** * The currently active debug mode names, and names to skip. */ exports.names = []; export...
PypiClean
/taskcc-alipay-sdk-python-3.3.398.tar.gz/taskcc-alipay-sdk-python-3.3.398/alipay/aop/api/request/MybankCreditSupplychainTradePayableQueryRequest.py
import json from alipay.aop.api.FileItem import FileItem from alipay.aop.api.constant.ParamConstants import * from alipay.aop.api.domain.MybankCreditSupplychainTradePayableQueryModel import MybankCreditSupplychainTradePayableQueryModel class MybankCreditSupplychainTradePayableQueryRequest(object): def __init_...
PypiClean
/fastapi_cachette-0.1.4-py3-none-any.whl/fastapi_cachette/core.py
### Standard Packages ### from asyncio import run from typing import Any, Optional, Tuple ### Third-Party Packages ### from fastapi.requests import Request from fastapi.responses import Response ### Local Modules ### from fastapi_cachette.backends import Backend from fastapi_cachette.cachette_config import CachetteConf...
PypiClean
/opencdms_test_databases-0.1.10.tar.gz/opencdms_test_databases-0.1.10/opencdms_test_databases/schemas/climsoft/v4/v4.1.1/station.md
``` CREATE TABLE IF NOT EXISTS `station` ( `stationId` varchar(255) NOT NULL, `stationName` varchar(255) DEFAULT NULL, `wmoid` varchar(20) DEFAULT NULL, `icaoid` varchar(20) DEFAULT NULL, `latitude` double(11,6) DEFAULT NULL, `qualifier` varchar(20) DEFAULT NULL, `longitude` double(11,6) DEFAULT NULL, `...
PypiClean
/buildout.environ-1.2.0.tar.gz/buildout.environ-1.2.0/README.rst
.. This README is meant for consumption by humans and pypi. Pypi can render rst files so please do not use Sphinx features. This text does not appear on pypi or github. It is a comment. ================ buildout.environ ================ Expose system environment variables into `zc.buildout <https://pypi.org/projec...
PypiClean
/robot_grpc-0.0.4.tar.gz/robot_grpc-0.0.4/robot_grpc/node_modules/commander/index.js
var EventEmitter = require('events').EventEmitter; var spawn = require('child_process').spawn; var path = require('path'); var dirname = path.dirname; var basename = path.basename; var fs = require('fs'); /** * Inherit `Command` from `EventEmitter.prototype`. */ require('util').inherits(Command, EventEmitter); /**...
PypiClean
/mux_python-3.10.0.tar.gz/mux_python-3.10.0/mux_python/rest.py
from __future__ import absolute_import import io import json import logging import re import ssl # python 2 and python 3 compatibility library import six from six.moves.urllib.parse import urlencode import urllib3 from mux_python.exceptions import ApiException, UnauthorizedException, ForbiddenException, NotFoundExce...
PypiClean
/count_api-3.1.9.tar.gz/count_api-3.1.9/count_api/table_tile/column_tiles/string_column_tile.py
from struct import unpack_from from .column_tile import ColumnTile import six if six.PY2: chr = unichr class StringColumnTile(ColumnTile): def __init__(self,params, type_, offset, length): ColumnTile.__init__(self, params, type_, offset, length) self.breaks = params.string_data.breaks ...
PypiClean
/tanager_feeder-1.6-py3-none-any.whl/tanager_feeder/command_handlers/white_reference_handler.py
import time from tanager_feeder.command_handlers.trigger_restart_handler import TriggerRestartHandler from tanager_feeder import utils class WhiteReferenceHandler(TriggerRestartHandler): def __init__(self, controller, title: str = "White referencing...", label: str = "White referencing..."): timeout_s: ...
PypiClean
/clear_skies-1.18.15-py3-none-any.whl/clearskies/column_types/category_tree.py
import re from .belongs_to import BelongsTo from ..autodoc.schema import Array as AutoDocArray from ..autodoc.schema import Object as AutoDocObject from ..autodoc.schema import String as AutoDocString from collections import OrderedDict class CategoryTree(BelongsTo): """ Builds a tree table for quick lookups ...
PypiClean
/taskcc-alipay-sdk-python-3.3.398.tar.gz/taskcc-alipay-sdk-python-3.3.398/alipay/aop/api/request/AlipayDataAiserviceCloudbusPredictbuslineRetryRequest.py
import json from alipay.aop.api.FileItem import FileItem from alipay.aop.api.constant.ParamConstants import * from alipay.aop.api.domain.AlipayDataAiserviceCloudbusPredictbuslineRetryModel import AlipayDataAiserviceCloudbusPredictbuslineRetryModel class AlipayDataAiserviceCloudbusPredictbuslineRetryRequest(object)...
PypiClean
/tvmx-0.0.6-py3-none-any.whl/tvm/tir/analysis/analysis.py
"""Wrapping existing analysis utils.""" # pylint: disable=invalid-name from typing import Dict, List, Union import tvm from tvm import Object from tvm.ir import IRModule from tvm.tir.expr import Var from tvm.tir.stmt import Block, BufferRegion, PrimExpr from .. import Buffer, Stmt from ..function import PrimFunc from...
PypiClean
/de_ausbildungssuche-0.1.0-py3-none-any.whl/deutschland/ausbildungssuche/model/response_aggregations_anbieter248763.py
import re # noqa: F401 import sys # noqa: F401 from deutschland.ausbildungssuche.exceptions import ApiAttributeError from deutschland.ausbildungssuche.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, ModelSimple, OpenApiModel, cached_property, change_keys_js_to...
PypiClean
/google-cloud-network-management-1.11.0.tar.gz/google-cloud-network-management-1.11.0/google/cloud/network_management_v1/services/reachability_service/transports/grpc.py
from typing import Callable, Dict, Optional, Sequence, Tuple, Union import warnings from google.api_core import gapic_v1, grpc_helpers, operations_v1 import google.auth # type: ignore from google.auth import credentials as ga_credentials # type: ignore from google.auth.transport.grpc import SslCredentials # type: i...
PypiClean
/openlmi-tools-0.10.4.tar.gz/openlmi-tools-0.10.4/lmi/scripts/common/formatter/__init__.py
import itertools import locale import os from lmi.scripts.common import errors from lmi.scripts.common.formatter import command as fcmd def get_terminal_width(): """ Get the number of columns of current terminal if attached to it. It defaults to 79 characters. :returns: Number of columns of attached ...
PypiClean
/pytorchts-0.6.0.tar.gz/pytorchts-0.6.0/pts/model/lstnet/lstnet_estimator.py
from typing import List, Optional import numpy as np import torch import torch.nn as nn from gluonts.core.component import validated from gluonts.dataset.field_names import FieldName from gluonts.torch.util import copy_parameters from gluonts.torch.model.predictor import PyTorchPredictor from gluonts.model.predictor ...
PypiClean
/python_grace-0.0.9.tar.gz/python_grace-0.0.9/build.py
import shutil import sys import tempfile from pathlib import Path from typing import Any, Dict import skbuild import grace.utils PREFIX_DIR = Path(".") / "grace" SRC_DIR = PREFIX_DIR / "extern" PATCH_DIR = PREFIX_DIR / "patch" # GRACE v2.2.1 GRACE_URL = "https://minami-home.kek.jp/grace221/grace.221.2006.0116.tgz"...
PypiClean
/django-activatable-model-3.1.0.tar.gz/django-activatable-model-3.1.0/activatable_model/validation.py
from itertools import chain from activatable_model.models import BaseActivatableModel from django.apps import apps from django.core.exceptions import ValidationError from django.db import models def get_activatable_models(): all_models = chain(*[app.get_models() for app in apps.get_app_configs()]) return [mo...
PypiClean
/js.extjs-4.2.1.883.tar.gz/js.extjs-4.2.1.883/js/extjs/resources/src/dd/DDProxy.js
* This is a derivative of the similarly named class in the YUI Library. * The original license: * Copyright (c) 2006, Yahoo! Inc. All rights reserved. * Code licensed under the BSD License: * http://developer.yahoo.net/yui/license.txt */ /** * A DragDrop implementation that inserts an empty, bordered div into ...
PypiClean
/ansible-8.3.0-py3-none-any.whl/ansible_collections/azure/azcollection/plugins/modules/azure_rm_storageaccount.py
from __future__ import absolute_import, division, print_function __metaclass__ = type DOCUMENTATION = ''' --- module: azure_rm_storageaccount version_added: "0.1.0" short_description: Manage Azure storage accounts description: - Create, update or delete a storage account. options: resource_group: des...
PypiClean
/opsgenie_swagger-1.0.7.tar.gz/opsgenie_swagger-1.0.7/opsgenie_swagger/models/icinga2_integration.py
import pprint import re # noqa: F401 import six from opsgenie_swagger.models.alert_filter import AlertFilter # noqa: F401,E501 from opsgenie_swagger.models.icinga2_callback import Icinga2Callback # noqa: F401,E501 from opsgenie_swagger.models.integration import Integration # noqa: F401,E501 from opsgenie_swagger....
PypiClean
/pyams_thesaurus-1.3.5.tar.gz/pyams_thesaurus-1.3.5/docs/HISTORY.rst
Changelog ========= 1.3.5 ----- - updated API usage permission - updated context actions viewlet manager name - added thesaurus names title factory 1.3.4 ----- - updated Colander API schemas for better OpenAPI specifications 1.3.3 ----- - version mismatch 1.3.2 ----- - added check for undefined thesaurus name...
PypiClean
/trixie-0.1.2.tar.gz/trixie-0.1.2/homeassistant/scripts/influxdb_import.py
import argparse import json import os import sys from typing import List import homeassistant.config as config_util def run(script_args: List) -> int: """Run the actual script.""" from sqlalchemy import create_engine from sqlalchemy import func from sqlalchemy.orm import sessionmaker from influx...
PypiClean
/option_trader-1.0.0-py3-none-any.whl/src/tradingBot/shell/analyzer.py
def win_rate(pos_df): df = df.loc[df['Exp Price'] >= 0] df['Class'] = ['Win' if x > 0 else 'Loss' for x in df['Profit or Loss']] print(df.groupby('Class').size()) def learn(pos_df): df = df.loc[df['Exp Price'] >= 0] df['Class'] = ['Win' if x > 0 else 'Loss' for x in df['Pr...
PypiClean
/invenio-github-1.0.2.tar.gz/invenio-github-1.0.2/AUTHORS.rst
.. This file is part of Invenio. Copyright (C) 2016 CERN. Invenio is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. ...
PypiClean
/trading_bots-0.5.3-py3-none-any.whl/trading_bots/contrib/exchanges/bitstamp/clients.py
from abc import ABC from decimal import Decimal from typing import Any, Dict, List, Optional, Set import maya from cached_property import cached_property from trading_api_wrappers import Bitstamp from trading_bots.utils import truncate from ...clients import * from ...errors import * from ...models import * __all__...
PypiClean
/Euphorie-15.0.2.tar.gz/Euphorie-15.0.2/src/euphorie/client/resources/oira/script/chunks/53038.6bf3d466e296dc7dd7f3.min.js
(self.webpackChunk_patternslib_patternslib=self.webpackChunk_patternslib_patternslib||[]).push([[53038],{53038:function(e){e.exports=function(e){const i=e.COMMENT("%","$"),n=e.inherit(e.APOS_STRING_MODE,{relevance:0}),t=e.inherit(e.QUOTE_STRING_MODE,{relevance:0});return t.contains=t.contains.slice(),t.contains.push({c...
PypiClean
/trphysx-0.0.8.tar.gz/trphysx-0.0.8/README.md
# Transformer PhysX [![PyPI version](https://badge.fury.io/py/trphysx.svg)](https://pypi.org/project/trphysx/) [![CircleCI](https://circleci.com/gh/zabaras/transformer-physx.svg?style=shield&circle-token=1d8e1117961b1d63d754f90e6b526649607aad34&branch=main)](https://circleci.com/gh/zabaras/transformer-physx) [![Docume...
PypiClean
/avilla_twilight-0.2.0-py3-none-any.whl/avilla/twilight/commander_util.py
from __future__ import annotations import abc import functools import inspect import re from contextvars import ContextVar from typing import Any, Generic, Iterable, List, MutableMapping, TypeVar, Union from weakref import WeakKeyDictionary, WeakSet from typing_extensions import Self from avilla.core.elements import...
PypiClean
/tw.dojo-0.9.181.tar.gz/tw.dojo-0.9.181/tw/dojo/static/1.8.1/debug/dojox/gfx/Moveable.js
define("dojox/gfx/Moveable", ["dojo/_base/lang","dojo/_base/declare","dojo/_base/array","dojo/_base/event","dojo/topic","dojo/has", "dojo/dom-class","dojo/_base/window","./Mover"], function(lang,declare,arr,event,topic,has,domClass,win,Mover){ /*===== var __MoveableCtorArgs = declare("dojox.gfx.__MoveableCtorArg...
PypiClean
/blueapps-open-4.0.3rc0.tar.gz/blueapps-open-4.0.3rc0/blueapps/account/utils/http.py
import json import logging import traceback from urllib.parse import urlparse, urlunparse import requests from django.http import QueryDict from django.shortcuts import resolve_url from django.utils.translation import gettext_lazy as _ from blueapps.core.exceptions.base import ApiNetworkError, ApiResultError logger ...
PypiClean
/pyjamas-0.8.1~+alpha1.tar.bz2/pyjamas-0.8.1~+alpha1/library/dynamic.py
from __pyjamas__ import wnd, doc, JS, setCompilerOptions from __javascript__ import ActiveXObject, XMLHttpRequest from pyjamas import DOM from __pyjamas__ import debugger import sys setCompilerOptions("noSourceTracking", "noLineTracking", "noStoreSource") class AjaxError(RuntimeError): pass def createHttpRequest...
PypiClean
/accelbyte_py_sdk-0.48.0.tar.gz/accelbyte_py_sdk-0.48.0/accelbyte_py_sdk/api/lobby/wss_models/cancel_matchmaking_request.py
from __future__ import annotations import json from typing import Any, Dict, List, Optional, Tuple, Union from ....core import WebSocketMessage from ....core import WebSocketMessageParserError from ....core import WebSocketMessageParserException from ....core import generate_websocket_message_id class CancelMatch...
PypiClean