id stringlengths 1 8 | text stringlengths 6 1.05M | dataset_id stringclasses 1
value |
|---|---|---|
/kiwitcms-12.4.tar.gz/kiwitcms-12.4/tcms/node_modules/ext/node_modules/type/docs/plain-object.md | # Plain Object
A _plain object_
- Inherits directly from `Object.prototype` or `null`
- Is not a constructor's `prototype` property
## `plain-object/is`
Confirms if given object is a _plain object_
```javascript
const isPlainObject = require("type/plain-object/is");
isPlainObject({}); // true
isPlainObject(Object... | PypiClean |
/doppkit-esri-toolbox-0.1.4.tar.gz/doppkit-esri-toolbox-0.1.4/README.md | # doppkit-esri-toolbox
ArcGIS Pro Toolbox to Interact with GRiD. The toolbox provides ArcGIS users to interact with the doppkit utility to
retrieve exports from GRiD.
## Installation
Installation of the doppkit toolkit into ArcGIS pro can be done via the following steps:
1. Clone the default python environment tha... | PypiClean |
/sanic-ext-23.6.0.tar.gz/sanic-ext-23.6.0/sanic_ext/extensions/openapi/definitions.py | from __future__ import annotations
from inspect import isclass
from typing import (
Any,
Dict,
List,
Literal,
Optional,
Type,
Union,
get_type_hints,
)
from sanic.exceptions import SanicException
from sanic_ext.utils.typing import contains_annotations, is_pydantic
from .types import D... | PypiClean |
/esi_client-0.1.0a1.tar.gz/esi_client-0.1.0a1/esi_client/docs/PutFleetsFleetIdMembersMemberIdUnprocessableEntity.md | # PutFleetsFleetIdMembersMemberIdUnprocessableEntity
422 unprocessable entity object
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**error** | **str** | error message | [optional]
**any string name** | **bool, date, datetime, dict, float, int, list, str,... | PypiClean |
/python-amazon-sp-api-0.18.9.tar.gz/python-amazon-sp-api-0.18.9/sp_api/base/feedTypes.py | from enum import Enum
class FeedType(str, Enum):
JSON_LISTINGS_FEED = 'JSON_LISTINGS_FEED'
POST_PRODUCT_DATA = 'POST_PRODUCT_DATA'
POST_INVENTORY_AVAILABILITY_DATA = 'POST_INVENTORY_AVAILABILITY_DATA'
POST_PRODUCT_OVERRIDES_DATA = 'POST_PRODUCT_OVERRIDES_DATA'
POST_PRODUCT_PRICING_DATA = 'POST_PRO... | PypiClean |
/streamlit-charticulator-0.0.7.tar.gz/streamlit-charticulator-0.0.7/src/charticulator/frontend/charticulator/dist/scripts/app/views/canvas/mark_editor.d.ts | import { EventSubscription, Point, Specification, ZoomInfo } from "../../../core";
import { DragData } from "../../actions";
import { ZoomableCanvas } from "../../components";
import { DragContext, Droppable } from "../../controllers";
import { MarkSnappableGuide } from "./snapping/mark";
import { ContextedComponent } ... | PypiClean |
/vatis_asr_amqp-1.2.1.tar.gz/vatis_asr_amqp-1.2.1/vatis/asr/amqp/queue/connection.py | import dataclasses
import time
from enum import Enum
from threading import RLock, Thread
from typing import Optional, List
import pika
from pika import BlockingConnection, ConnectionParameters
from pika.adapters.blocking_connection import BlockingChannel
from vatis.asr_commons.config.logging import get_logger
from . ... | PypiClean |
/h2o_pysparkling_3.3-3.42.0.2.post1.tar.gz/h2o_pysparkling_3.3-3.42.0.2.post1/ai/h2o/sparkling/ml/params/H2OMOJOModelParams.py |
from ai.h2o.sparkling.ml.models.H2OMOJOModelBase import H2OMOJOModelBase
from ai.h2o.sparkling.ml.models.H2OAlgorithmMOJOModelBase import H2OAlgorithmMOJOModelBase
from ai.h2o.sparkling.ml.params.H2OTypeConverters import H2OTypeConverters
from ai.h2o.sparkling.H2ODataFrameConverters import H2ODataFrameConverters
from ... | PypiClean |
/projector-installer-1.8.0.tar.gz/projector-installer-1.8.0/projector_installer/products.py |
"""Product class and related stuff"""
import json
import socket
from os import remove
from os.path import join, dirname, abspath
from tempfile import gettempdir
from typing import List, Tuple, Any, Optional
from enum import Enum, auto
from urllib.error import URLError
from distutils.version import LooseVersion
from da... | PypiClean |
/google_cloud_sqlcommenter-2.0.0-py3-none-any.whl/google/cloud/sqlcommenter/psycopg2/extension.py |
import logging
import psycopg2
import psycopg2.extensions
from google.cloud.sqlcommenter import generate_sql_comment
from google.cloud.sqlcommenter.flask import get_flask_info
from google.cloud.sqlcommenter.opencensus import get_opencensus_values
from google.cloud.sqlcommenter.opentelemetry import get_opentelemetry_v... | PypiClean |
/pyrasite_ng-2.0.2-py3-none-any.whl/pyrasite/injector.py |
import os
import subprocess
import platform
def inject(pid, filename, verbose=False, gdb_prefix=''):
"""Executes a file in a running Python process."""
filename = os.path.abspath(filename)
gdb_cmds = [
'((int (*)())PyGILState_Ensure)()',
'((int (*)(const char *))PyRun_SimpleString)("'
... | PypiClean |
/bucketlist_api-1.0-py3-none-any.whl/bucketlist_api/main.py | from datetime import timedelta
import os
from flask import Flask
from flask_bcrypt import Bcrypt
from flask_jwt import JWT
from flask_restful import Api
from flask_sqlalchemy import SQLAlchemy
from bucketlist_api.models import User
from bucketlist_api.resources.bucketlist_resource \
import BucketListsAPI, BucketL... | PypiClean |
/torcheval_nightly-2023.9.2-py3-none-any.whl/torcheval/metrics/audio/fad.py |
import copy
from typing import Any, Callable, Iterable, Optional, Union
import torch
try:
from torchaudio.functional import frechet_distance
_TORCHAUDIO_AVAILABLE = True
except ImportError:
_TORCHAUDIO_AVAILABLE = False
from torcheval.metrics.metric import Metric
# pyre-ignore-all-errors[16]: Undefine... | PypiClean |
/ohnlp-backbone-xlang-python-1.0.28.tar.gz/ohnlp-backbone-xlang-python-1.0.28/README.md | # OHNLP Toolkit Cross-Language Python Bridge
This repository contains the python bridge and associated API to implement python-based components for the OHNLP Toolkit.
For most users, direct usage of this git repository should not be necessary unless implementing your own
python-based backbone component, in which case t... | PypiClean |
/e2eAIOK_ModelAdapter12-1.0.0-py3-none-any.whl/e2eAIOK/common/trainer/utils/extend_distributed.py |
import os
import builtins
import numpy as np
import torch
from packaging import version
from torch.autograd import Function
from torch.nn.parallel import DistributedDataParallel as DDP
import torch.distributed as dist
try:
if torch.__version__ < "1.12.0":
import torch_ccl
else:
import oneccl_bi... | PypiClean |
/stanford-stk-0.0.4.tar.gz/stanford-stk-0.0.4/stk/ops/matrix_ops.py | from stk.backend import sputnik
from stk.matrix import Matrix
import torch
import numpy as np
@torch.no_grad()
def row_indices(shape, data, offsets, column_indices):
return sputnik.row_indices(shape, data, offsets, column_indices)
# TODO(tgale): Replace this helper with a custom kernel. This operation
# is much... | PypiClean |
/django-models-logging-2.3.1.tar.gz/django-models-logging-2.3.1/models_logging/helpers.py | from typing import Union, List
from django.db.models.base import ModelBase
from django.utils.encoding import force_str
from django.utils.module_loading import import_string
from models_logging import settings, _local
from models_logging.models import Change, Revision
def model_to_dict(instance, action=None):
op... | PypiClean |
/aa-gdpr-0.3.3.tar.gz/aa-gdpr-0.3.3/aagdpr/static/aagdpr/ajax/libs/moment.js/2.29.1/locale/tzm.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 |
/memory_maze-1.0.3-py3-none-any.whl/memory_maze/oracle.py | from collections import deque
from typing import List, Optional, Tuple
import numpy as np
from memory_maze.wrappers import ObservationWrapper
class PathToTargetWrapper(ObservationWrapper):
"""Find shortest path to target and indicate it on maze_layout. Used for Oracle."""
def observation_spec(self):
... | PypiClean |
/odoo12_addon_web_notify-12.0.1.0.1-py3-none-any.whl/odoo/addons/web_notify/readme/DESCRIPTION.rst | Send instant notification messages to the user in live.
This technical module allows you to send instant notification messages from the server to the user in live.
Two kinds of notification are supported.
* Success: Displayed in a `success` theme color flying popup div
* Danger: Displayed in a `danger` theme color fl... | PypiClean |
/Optimized_Kalman_Filter-0.0.7-py3-none-any.whl/okf/example/simple_lidar_simulator.py | import pickle as pkl
import numpy as np
import matplotlib.pyplot as plt
import pandas as pd
import seaborn as sns
from .. import utils
############ DATA API ############
def load_data(fpath='data/simple_lidar_data.pkl'):
with open(fpath, 'rb') as fd:
X, Z = pkl.load(fd)
return X, Z
def get_trai... | PypiClean |
/pulumi_azure_native-2.5.1a1693590910.tar.gz/pulumi_azure_native-2.5.1a1693590910/pulumi_azure_native/documentdb/v20230315preview/sql_resource_sql_database.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 ._enums import *
from ._inputs import *
__all__ = ['SqlResourceSqlDatabaseArgs', 'SqlResourceSqlDatabase']
@pulumi.input_type
clas... | PypiClean |
/python_mauth-0.1.4.tar.gz/python_mauth-0.1.4/mauth/core/mixins/client.py | __all__ = (
'CreateObjectMixin',
'UpdateObjectMixin',
'RetreiveObjectMixin',
'DestroyObjectMixin',
'ListObjectMixin',
'CRUDMixin',
)
class CreateObjectMixin():
"""
Mixins that provides logic of object creation.
"""
def create(self):
"""
Sends create request on ... | PypiClean |
/django-oscar-bluelight-5.4.0rc1.tar.gz/django-oscar-bluelight-5.4.0rc1/src/oscarbluelight/offer/migrations/0014_drop_triggers.py | from django.db import migrations, models
range_product_trigger_tables = [
"catalogue_category",
"catalogue_product",
"catalogue_productcategory",
"catalogue_productclass",
"offer_range",
"offer_range_classes",
"offer_range_excluded_products",
"offer_range_included_categories",
"offe... | PypiClean |
/pulumi_mongodbatlas-3.11.0a1693029055.tar.gz/pulumi_mongodbatlas-3.11.0a1693029055/pulumi_mongodbatlas/global_cluster_config.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__ = ['GlobalClusterConfigArgs', 'GlobalClusterConfig']
@pulumi.input_type
class GlobalClusterConfigArgs:
... | PypiClean |
/abel-airflow-1.7.1.3.post3.tar.gz/abel-airflow-1.7.1.3.post3/airflow/contrib/auth/backends/ldap_auth.py |
import flask_login
from flask_login import login_required, current_user, logout_user
from flask import flash
from wtforms import (
Form, PasswordField, StringField)
from wtforms.validators import InputRequired
from ldap3 import Server, Connection, Tls, LEVEL, SUBTREE, BASE
import ssl
from flask import url_for, r... | PypiClean |
/EOxServer-1.2.12-py3-none-any.whl/eoxserver/processing/preprocessing/format.py | from django.utils.six import string_types
# global format selection registry
_registry = {}
def get_format_selection(driver, *args, **kwargs):
""" Format selection factory method. """
try:
return _registry[driver](*args, **kwargs)
except KeyError:
raise ValueError("No format selection avai... | PypiClean |
/mlflow_tmp-2.2.26-py3-none-any.whl/mlflow/tracking/_tracking_service/utils.py | import os
from functools import partial
import logging
from pathlib import Path
from typing import Union
from contextlib import contextmanager
from mlflow.environment_variables import MLFLOW_TRACKING_AWS_SIGV4
from mlflow.store.tracking import DEFAULT_LOCAL_FILE_AND_ARTIFACT_PATH
from mlflow.store.db.db_types import D... | PypiClean |
/seerep_grpc-0.2.2-py3-none-any.whl/seerep/fb/PointField.py |
# namespace: fb
import flatbuffers
from flatbuffers.compat import import_numpy
np = import_numpy()
class PointField(object):
__slots__ = ['_tab']
@classmethod
def GetRootAs(cls, buf, offset=0):
n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset)
x = PointField()
x... | PypiClean |
/h5cube-0.3.tar.gz/h5cube-0.3/README.rst | Gaussian CUBE Compression via h5py
==================================
Compression/decompression command-line tool and Python package for
Gaussian CUBE files, exploiting the capabilities of the
`HDF5 <http://www.h5py.org/>`__ binary format via ``h5py``.
Branches named with the prefix ``v.`` are volatile. The history
t... | PypiClean |
/DuHast-1.0.7-py3-none-any.whl/duHast/APISamples/RevitFamilyBaseDataAnalysisMissingFamilies.py |
#from collections import namedtuple
import RevitFamilyBaseDataUtils as rFamBaseDataUtils
from timer import Timer
import Result as res
import Utility as util
def _BuildUniqueNestedFamilyDic(overallFamilyBaseNestedData):
'''
Builds a dictionary containing unique nested families only. Key is the family name and... | PypiClean |
/django-dockitcms-0.0.11.tar.gz/django-dockitcms-0.0.11/dockitcms/resources/cms.py | import hyperadmin
from dockitcms.models import Collection, PublicResource as ConfiguredPublicResource, DocumentDesign, Subsite, Application, Index
from dockitcms.resources.common import ReloadCMSSiteMixin, CMSDocumentResource, ReloadCMSDotpathResource
app_name = 'dockitcms'
class ApplicationResource(CMSDocumentReso... | PypiClean |
/py-az-cli-0.1.8.tar.gz/py-az-cli-0.1.8/pyaz/cdn/waf/policy/managed_rule_set/rule_group_override/__init__.py | from ...... pyaz_utils import _call_az
def set(name, policy_name, resource_group, rule_set_type, rule_set_version):
'''
Add or update a rule group override to a managed rule set on a CDN WAF policy.
Required Parameters:
- name -- The name of the rule group.
- policy_name -- Name of the CDN WAF pol... | PypiClean |
/msgraph-sdk-1.0.0a3.tar.gz/msgraph-sdk-1.0.0a3/msgraph/generated/sites/item/term_store/sets/item/parent_group/sets/item/terms/item/children/count/count_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 |
/django-shop-postfinance-0.0.3.tar.gz/django-shop-postfinance-0.0.3/README.rst | ========================
django-shop-postfinance
========================
This application is a postfinance backend for django-SHOP, or any other shop
system implementing its shop interface.
Usage
======
Add this project to your INSTALLED_APPS, and add
'shop_postfinance.offsite_postfinance.OffsitePostfinanceBacken... | PypiClean |
/alipay_sdk_python-3.6.740-py3-none-any.whl/alipay/aop/api/domain/CloudbusAvaliableItem.py | import json
from alipay.aop.api.constant.ParamConstants import *
class CloudbusAvaliableItem(object):
def __init__(self):
self._city_code = None
self._end_date = None
self._max_size = None
self._start_date = None
self._status = None
self._used_size = None
@pr... | PypiClean |
/libagnos-1.0.1.zip/libagnos-1.0.1/src/agnos/transports.py |
import socket
import ssl
import signal
import time
import itertools
from select import select
try:
from cStringIO import StringIO
except ImportError:
from io import StringIO
from contextlib import contextmanager
from subprocess import Popen, PIPE
from . import packers
from .utils import RLock, BoundedStream, Z... | PypiClean |
/echarts-china-cities-pypkg-0.0.9.tar.gz/echarts-china-cities-pypkg-0.0.9/echarts_china_cities_pypkg/resources/echarts-china-cities-js/ji2_lin2_liao2_yuan2.js | !function(A,B){"function"==typeof define&&define.amd?define(["exports","echarts"],B):"object"==typeof exports&&"string"!=typeof exports.nodeName?B(exports,require("echarts")):B({},A.echarts)}(this,function(A,B){var D=function(A){"undefined"!=typeof console&&console&&console.error&&console.error(A)}
return B?B.registerM... | PypiClean |
/alo7-airflow-1.10.0.7.tar.gz/alo7-airflow-1.10.0.7/airflow/contrib/operators/bigquery_get_data.py |
from airflow.contrib.hooks.bigquery_hook import BigQueryHook
from airflow.models import BaseOperator
from airflow.utils.decorators import apply_defaults
class BigQueryGetDataOperator(BaseOperator):
"""
Fetches the data from a BigQuery table (alternatively fetch data for selected columns)
and returns data... | PypiClean |
/djbs-0.1.4.tar.gz/djbs-0.1.4/django/template/loader.py | from . import engines
from .exceptions import TemplateDoesNotExist
def get_template(template_name, using=None):
"""
Load and return a template for the given name.
Raise TemplateDoesNotExist if no such template exists.
"""
chain = []
engines = _engine_list(using)
for engine in engines:
... | PypiClean |
/retro_data_structures-0.23.0-py3-none-any.whl/retro_data_structures/properties/prime_remastered/objects/ControllerMotionDriver.py | import dataclasses
import struct
import typing
from retro_data_structures.game_check import Game
from retro_data_structures.properties.base_property import BaseProperty
import base64
@dataclasses.dataclass()
class ControllerMotionDriver(BaseProperty):
unknown_properties: dict[int, bytes] = dataclasses.field(defa... | PypiClean |
/earthkit-data-0.3.0.tar.gz/earthkit-data-0.3.0/earthkit/data/readers/directory.py |
import fnmatch
import logging
import os
import shutil
from earthkit.data import from_source
from . import Reader
from . import reader as find_reader
LOG = logging.getLogger(__name__)
class GlobFilter:
def __init__(self, pattern, top):
self.pattern = pattern
self.skip = len(top) + 1
def __... | PypiClean |
/etl-parser-1.0.1.tar.gz/etl-parser-1.0.1/etl/parsers/etw/Microsoft_Windows_QoS_qWAVE.py | from construct import Int8sl, Int8ul, Int16ul, Int16sl, Int32sl, Int32ul, Int64sl, Int64ul, Bytes, Double, Float32l, Struct
from etl.utils import WString, CString, SystemTime, Guid
from etl.dtyp import Sid
from etl.parsers.etw.core import Etw, declare, guid
@declare(guid=guid("6ba132c4-da49-415b-a7f4-31870dc9fe25"), ... | PypiClean |
/datacube-1.8.15.tar.gz/datacube-1.8.15/code-of-conduct.md | # Contributor Covenant Code of Conduct
## Our Pledge
In the interest of fostering an open and welcoming environment, we as
contributors and maintainers pledge to making participation in our project and
our community a harassment-free experience for everyone, regardless of age, body
size, disability, ethnicity, sex ch... | PypiClean |
/opensearch_benchmark-1.1.0-py3-none-any.whl/osbenchmark/builder/installers/docker_installer.py | import logging
import os
import uuid
from osbenchmark import paths
from osbenchmark.builder.installers.installer import Installer
from osbenchmark.builder.models.node import Node
from osbenchmark.builder.utils.config_applier import ConfigApplier
from osbenchmark.builder.utils.host_cleaner import HostCleaner
from osben... | PypiClean |
/alipay_sdk_python-3.6.740-py3-none-any.whl/alipay/aop/api/domain/KoubeiServindustryReservationShopUnbindModel.py | import json
from alipay.aop.api.constant.ParamConstants import *
class KoubeiServindustryReservationShopUnbindModel(object):
def __init__(self):
self._channel = None
self._industry = None
self._out_shop_id = None
self._request_id = None
self._shop_id = None
@property... | PypiClean |
/tensorflow-gpu-macosx-1.8.1.tar.gz/tensorflow/contrib/data/__init__.py | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
# pylint: disable=unused-import
from tensorflow.contrib.data.python.ops.batching import assert_element_shape
from tensorflow.contrib.data.python.ops.batching import batch_and_drop_remainder
from tensorflow.con... | PypiClean |
/jupyterlab_remote_contents-0.1.1.tar.gz/jupyterlab_remote_contents-0.1.1/node_modules/p-locate/node_modules/p-limit/readme.md | # p-limit [](https://travis-ci.org/sindresorhus/p-limit)
> Run multiple promise-returning & async functions with limited concurrency
## Install
```
$ npm install p-limit
```
## Usage
```js
const pLimit = require('p-limit');
const limit =... | PypiClean |
/customgpt_client-1.1.6.tar.gz/customgpt_client-1.1.6/customgpt_client/models/update_plugin_response_200_data.py | from typing import Any, Dict, List, Type, TypeVar, Union
import attr
from ..types import UNSET, Unset
T = TypeVar("T", bound="UpdatePluginResponse200Data")
@attr.s(auto_attribs=True)
class UpdatePluginResponse200Data:
"""
Attributes:
model_name (Union[Unset, str]): Model Name Example: IndoorPlants.... | PypiClean |
/nlp_tools-1.0.tar.gz/nlp_tools-1.0/nlp_tools/tasks/simalary/bimpm_model.py | from typing import Dict,Any
from tensorflow import keras
from nlp_tools.layers import L
from nlp_tools.tasks.simalary.abc_model import ABCSimilaryModel
from nlp_tools.layers.similary import MultiPerspective
class BimpmModel(ABCSimilaryModel):
@classmethod
def default_hyper_parameters(cls) -> Dict[str, Dict[... | PypiClean |
/pyipv8-2.11.0.tar.gz/pyipv8-2.11.0/ipv8/messaging/anonymization/tunnelcrypto.py | import struct
from cryptography.hazmat.backends import default_backend
from cryptography.hazmat.primitives import hashes
from cryptography.hazmat.primitives.kdf.hkdf import HKDFExpand
import libnacl
from libnacl.aead import AEAD
from ...keyvault.crypto import ECCrypto, LibNaCLPK
class CryptoException(Exception):
... | PypiClean |
/torch-firewood-0.0.2.tar.gz/torch-firewood-0.0.2/firewood/layers/reshape.py | import math
from typing import Optional, Tuple, Union, cast, overload
import torch.nn as nn
from torch import Size, Tensor
from firewood.common.types import INT
class Reshape(nn.Module):
@overload
def __init__(self, *, size: Optional[Union[Size, INT]]) -> None:
...
@overload
def __init__(se... | PypiClean |
/saltant-py-0.4.0.tar.gz/saltant-py-0.4.0/saltant/models/executable_task_type.py |
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from .base_task_type import BaseTaskType, BaseTaskTypeManager
class ExecutableTaskType(BaseTaskType):
"""Model for executable task types.
Attributes:
id (int): The ID of the task type.
... | PypiClean |
/python_io_capture-0.0.1.3-py3-none-any.whl/py_io_capture/driver.py | import sys
import os
import logging
from os.path import abspath, dirname
import io_capture
PROJECTS_DIRECTORY = "example_projects"
OUTPUTS_DIRECTORY = "outputs"
def record_output(module_name, outputs_path):
"""
Records IO from call stack to 'module_name' in 'outputs_path'; the directory must be pre-created
... | PypiClean |
/colour_science-0.4.3.tar.gz/colour_science-0.4.3/colour/models/rgb/transfer_functions/arib_std_b67.py | from __future__ import annotations
import numpy as np
from colour.hints import ArrayLike, NDArrayFloat
from colour.models.rgb.transfer_functions import gamma_function
from colour.utilities import (
Structure,
as_float,
as_float_array,
domain_range_scale,
from_range_1,
to_domain_1,
)
__author_... | PypiClean |
/panda3d-1.10.13-cp38-cp38-manylinux2010_i686.whl/direct/gui/OnscreenGeom.py |
__all__ = ['OnscreenGeom']
from panda3d.core import *
from direct.showbase.DirectObject import DirectObject
import sys
if sys.version_info >= (3, 0):
stringType = str
else:
stringType = basestring
class OnscreenGeom(DirectObject, NodePath):
def __init__(self, geom = None,
pos = None,
... | PypiClean |
/cctbx-2020.8-0_py36h1d45459-cp36-cp36m-manylinux2010_x86_64.whl/rstbx/indexing/tst_dataset1.py | from __future__ import absolute_import, division, print_function
import math,os
from libtbx.path import norm_join
from libtbx.test_utils import approx_equal
from scitbx import matrix
from rstbx.array_family import flex
from rstbx.indexing.do_index import do_index
# reciprocal space vectors expressed internally in unit... | PypiClean |
/superset-growth-0.26.3.tar.gz/superset-growth-0.26.3/superset/static/assets/src/reduxUtils.js | import shortid from 'shortid';
import { compose } from 'redux';
import persistState from 'redux-localstorage';
import equals from 'deep-equal';
export function addToObject(state, arrKey, obj) {
const newObject = Object.assign({}, state[arrKey]);
const copiedObject = Object.assign({}, obj);
if (!copiedObject.id)... | PypiClean |
/SPART_python-1.0.9-py3-none-any.whl/SPART/SAILH.py | import numpy as np
import scipy.integrate as integrate
def SAILH(soil, leafopt, canopy, angles):
"""
Run the SAILH model.
Parameters
----------
soil : BSM.SoilOptics
Contains soil reflectance spectra for 400 nm to 2400 nm
leafopt : PROSPECT_5D.LeafOptics
Contains leaf reflecta... | PypiClean |
/fenics-ffc-2019.1.0.tar.gz/fenics-ffc-2019.1.0/ffc/uflacs/analysis/valuenumbering.py | from ufl import product
from ufl.permutation import compute_indices
from ufl.corealg.multifunction import MultiFunction
from ufl.classes import FormArgument
from ffc.log import error
from ffc.uflacs.analysis.indexing import map_indexed_arg_components, map_component_tensor_arg_components
from ffc.uflacs.analysis.modif... | PypiClean |
/all_repos-1.26.0.tar.gz/all_repos-1.26.0/README.md | [](https://github.com/asottile/all-repos/actions/workflows/main.yml)
[](https://results.pre-commit.ci/latest/github/asottile/all-repos... | PypiClean |
/cloudstack-marvin-4.4.0.tar.gz/cloudstack-marvin-4.4.0/marvin/cloudstackAPI/attachVolume.py | from baseCmd import *
from baseResponse import *
class attachVolumeCmd (baseCmd):
def __init__(self):
self.isAsync = "true"
"""the ID of the disk volume"""
"""Required"""
self.id = None
"""the ID of the virtual machine"""
"""Required"""
self.virtualmachineid =... | PypiClean |
/chunkblocks-0.5.1.tar.gz/chunkblocks-0.5.1/CONTRIBUTING.rst | ============
Contributing
============
Contributions are welcome, and they are greatly appreciated! Every
little bit helps, and credit will always be given.
Bug reports
===========
When `reporting a bug <https://github.com/wongwill86/chunkblocks/issues>`_ please include:
* Your operating system name and version... | PypiClean |
/torch_raspi-0.4.0-cp35-cp35m-linux_armv7l.whl/torch/distributions/uniform.py | import math
from numbers import Number
import torch
from torch.distributions import constraints
from torch.distributions.distribution import Distribution
from torch.distributions.utils import broadcast_all
class Uniform(Distribution):
r"""
Generates uniformly distributed random samples from the half-open int... | PypiClean |
/django-adminlte3-amigne-0.1.99.tar.gz/django-adminlte3-amigne-0.1.99/adminlte3/static/admin-lte/plugins/datatables-select/js/dataTables.select.js | * @summary Select for DataTables
* @description A collection of API methods, events and buttons for DataTables
* that provides selection options of the items in a DataTable
* @version 1.3.1
* @file dataTables.select.js
* @author SpryMedia Ltd (www.sprymedia.co.uk)
* @contact datatables.... | PypiClean |
/md2reveal-1.2.0.tar.gz/md2reveal-1.2.0/README.rst | =========
md2reveal
=========
This tool converts markdown to reveal.js.
(Requires no additional syntax)
It will split sections by h1/h2/h3 tags.
Check demo on https://www.liriansu.com/md2reveal
Source code is hosted on https://github.com/LKI/md2reveal
============
Installation
============
Use pip to install md2re... | PypiClean |
/ansible-8.3.0-py3-none-any.whl/ansible_collections/microsoft/ad/plugins/plugin_utils/_reboot.py | # FOR INTERNAL COLLECTION USE ONLY
# The interfaces in this file are meant for use within this collection
# and may not remain stable to outside uses. Changes may be made in ANY release, even a bugfix release.
# See also: https://github.com/ansible/community/issues/539#issuecomment-780839686
# Please open an issue if y... | PypiClean |
/viam_sdk-0.5.1rc1-py3-none-macosx_10_16_x86_64.whl/viam/gen/app/v1/robot_grpc.py | import abc
import typing
import grpclib.const
import grpclib.client
if typing.TYPE_CHECKING:
import grpclib.server
from ... import app
from ... import common
import google.protobuf.duration_pb2
import google.protobuf.struct_pb2
from ... import tagger
class RobotServiceBase(abc.ABC):
@abc.abstractmethod
as... | PypiClean |
/turkish_morphology-1.2.5-py3-none-any.whl/turkish_morphology/validate.py | from typing import Optional
from turkish_morphology import analysis_pb2
_Affix = analysis_pb2.Affix
_Analysis = analysis_pb2.Analysis
_Feature = analysis_pb2.Feature
_Ig = analysis_pb2.InflectionalGroup
_Root = analysis_pb2.Root
class IllformedAnalysisError(Exception):
"""Raised when a human-readable analysis is ... | PypiClean |
/cds_api_client-0.0.2-py3-none-any.whl/cds/api/customer_api.py | import re # noqa: F401
from cds.api_client import ApiClient
class CustomerApi(object):
"""CustomerApi class."""
def __init__(self, api_client=None):
if api_client is None:
api_client = ApiClient()
self.api_client = api_client
def get_customer(self, x_v, **kwargs): # noq... | PypiClean |
/django-pipedrive-0.1.14.tar.gz/django-pipedrive-0.1.14/pipedrive/migrations/0001_initial.py | from __future__ import unicode_literals
from django.db import models, migrations
from django.contrib.postgres.operations import HStoreExtension
import django.utils.timezone
class Migration(migrations.Migration):
dependencies = [
]
operations = [
HStoreExtension(),
migrations.CreateModel... | PypiClean |
/dstore-sdk-python-1.0.2.5.tar.gz/dstore-sdk-python-1.0.2.5/dstore/engine/procedures/im_GetDirectSuccessors_Tree_Pu_pb2.py |
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf import reflection as _reflection
from google.protobuf import symbol_database as _symbol_database
from google.p... | PypiClean |
/py-pure-client-1.38.0.tar.gz/py-pure-client-1.38.0/pypureclient/flashblade/FB_2_2/models/directory_service_smb.py | import pprint
import re
import six
import typing
from ....properties import Property
if typing.TYPE_CHECKING:
from pypureclient.flashblade.FB_2_2 import models
class DirectoryServiceSmb(object):
"""
Attributes:
swagger_types (dict): The key is attribute name
and the valu... | PypiClean |
/dataserv-client-2.1.4.tar.gz/dataserv-client-2.1.4/dataserv_client/messaging.py | import json
import http.client
import socket
import time
import urllib
import urllib.error
import urllib.request
import btctxstore
import storjcore
from dataserv_client import exceptions
from dataserv_client import common
logger = common.logging.getLogger(__name__)
class Messaging(object):
def __init__(self, s... | PypiClean |
/transcribe-compare-0.2.4.tar.gz/transcribe-compare-0.2.4/transcription_compare/utils/error_display.py | from transcription_compare.levenshtein_distance_calculator import UKKLevenshteinDistanceCalculator
from transcription_compare.tokenizer import CharacterTokenizer, WordTokenizer
from transcription_compare.utils import SimpleReferenceCombinationGenerator
from transcription_compare.results import AlignmentResult
alignmen... | PypiClean |
/de_pegel_online-0.1.1.tar.gz/de_pegel_online-0.1.1/deutschland/pegel_online/model/station.py | import re # noqa: F401
import sys # noqa: F401
from deutschland.pegel_online.exceptions import ApiAttributeError
from deutschland.pegel_online.model_utils import ( # noqa: F401
ApiTypeError,
ModelComposed,
ModelNormal,
ModelSimple,
OpenApiModel,
cached_property,
change_keys_js_to_python,... | PypiClean |
/e-fonenana-frontend-20190305.1.tar.gz/e-fonenana-frontend-20190305.1/hass_frontend/7344bd4d8abe6931d515.chunk.js | (window.webpackJsonp=window.webpackJsonp||[]).push([[104,101,103,105,106,107,109,110,111,112,113],{165:function(module,__webpack_exports__,__webpack_require__){"use strict";var _polymer_polymer_polymer_legacy_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(2),_polymer_iron_flex_layout_iron_flex_layout_js__WEBPACK_I... | PypiClean |
/alauda-celery-3.1.25rc1.tar.gz/alauda-celery-3.1.25rc1/celery/events/state.py | from __future__ import absolute_import
import bisect
import sys
import threading
from datetime import datetime
from decimal import Decimal
from itertools import islice
from operator import itemgetter
from time import time
from weakref import ref
from kombu.clocks import timetuple
from kombu.utils import cached_prope... | PypiClean |
/ase_koopmans-0.1.4-py3-none-any.whl/ase/calculators/dftd3.py | import os
from warnings import warn
import subprocess
import numpy as np
from ase.calculators.calculator import (Calculator,
FileIOCalculator,
all_changes,
PropertyNotImplementedError)
from ase.units... | PypiClean |
/fenics_ufl-2023.1.1.post0-py3-none-any.whl/ufl/utils/sorting.py | "Utilites for sorting."
# Copyright (C) 2008-2016 Johan Hake
#
# This file is part of UFL (https://www.fenicsproject.org)
#
# SPDX-License-Identifier: LGPL-3.0-or-later
import warnings
def topological_sorting(nodes, edges):
"""
Return a topologically sorted list of the nodes
Implemented algorithm fr... | PypiClean |
/mis_modulos-0.1.tar.gz/mis_modulos-0.1/keras/saving/legacy/saved_model/save_impl.py | import functools
import threading
import weakref
import tensorflow.compat.v1.logging as logging
import tensorflow.compat.v2 as tf
from keras import backend
from keras.engine import base_layer_utils
from keras.engine import input_spec
from keras.mixed_precision import autocast_variable
from keras.saving.legacy import ... | PypiClean |
/dulo_probability-0.1.tar.gz/dulo_probability-0.1/dulo_probability/Gaussiandistribution.py | import math
import matplotlib.pyplot as plt
from .Generaldistribution import Distribution
class Gaussian(Distribution):
""" Gaussian distribution class for calculating and
visualizing a Gaussian distribution.
Attributes:
mean (float) representing the mean value of the distribution
stdev (float) representing ... | PypiClean |
/pyg_mongo-0.0.15-py3-none-any.whl/pyg_mongo/_cursor.py | from pyg_base import logger, passthru, tree_update, dictable
from pyg_base import zipper, is_strs, is_dict, Dict, is_dictable, is_int, as_list, ulist
from pyg_mongo._q import q, _set, _id, _unset, _rename, _deleted, _data
from pyg_mongo._reader import mongo_reader
from pyg_mongo._base_reader import _pk, _dict1
import d... | PypiClean |
/xlsfile-shaw1236-0.0.2.tar.gz/xlsfile-shaw1236-0.0.2/xlsfile/xlsFile.py | import csv
import pandas as pd
class xlsFile:
def __init__(self):
pass # dummy
@staticmethod
def read(xlsfile):
df = pd.read_excel(xlsfile)
contents = []
for idx in df.index: # Row of the working sheet
row = {}
for col in df.co... | PypiClean |
/PyTLDR-0.1.4.tar.gz/PyTLDR-0.1.4/pytldr/summarize/baseclass.py | from sklearn.feature_extraction.text import CountVectorizer, TfidfVectorizer
from sklearn.preprocessing import normalize
from ..nlp.preprocess import parse_input
from ..nlp.tokenizer import Tokenizer
class BaseSummarizer(object):
def __init__(self, tokenizer=Tokenizer('english')):
self._tokenizer = token... | PypiClean |
/db-extractor-1.2.4.tar.gz/db-extractor-1.2.4/sources/db_extractor/DataManipulator.py | import gettext
# package to handle files/folders and related metadata/operations
import os
class DataManipulator:
locale = None
def __init__(self, in_language='en_US'):
file_parts = os.path.normpath(os.path.abspath(__file__)).replace('\\', os.path.altsep)\
.split(os.path.altsep)
l... | PypiClean |
/model-loads-0.3.tar.gz/model-loads-0.3/model_loads/utils/loads.py | from collections import OrderedDict
from numbers import Number
from tabulate import tabulate
import torch.nn as nn
import torch
import logging
from model_loads.utils import model_type
# this function borrow from https://github.com/NervanaSystems/distiller/blob/6dfa8747f1c39d5ab7af1d1f46ec26f450cbc006
# /distiller/app... | PypiClean |
/syn_commodore-1.17.1.tar.gz/syn_commodore-1.17.1/commodore/catalog.py | from __future__ import annotations
import difflib
import shutil
import time
import textwrap
from collections.abc import Iterable
from pathlib import Path as P
import click
import yaml
import json
from .component import Component
from .gitrepo import GitRepo, GitCommandError
from .helpers import (
ApiError,
... | PypiClean |
/alipay_sdk_python-3.6.740-py3-none-any.whl/alipay/aop/api/request/AlipayBossBaseProcessTaskTakeRequest.py | import json
from alipay.aop.api.FileItem import FileItem
from alipay.aop.api.constant.ParamConstants import *
from alipay.aop.api.domain.AlipayBossBaseProcessTaskTakeModel import AlipayBossBaseProcessTaskTakeModel
class AlipayBossBaseProcessTaskTakeRequest(object):
def __init__(self, biz_model=None):
... | PypiClean |
/karbor_dashboard-1.5.1-py3-none-any.whl/karbor_dashboard/static/karbordashboard/js/protectionplans.create.js | function setChecked(node, isChecked) {
if(isChecked) {
node.row.find("input[type=checkbox]").attr("checked", true);
}
else {
node.row.find("input[type=checkbox]").removeAttr("checked");
}
for(var i = 0; i<node.children.length;i++) {
var resourceChild = node.children[i];
setChecked(resourceChil... | PypiClean |
/sagemath-polyhedra-9.5b6.tar.gz/sagemath-polyhedra-9.5b6/sage/modules/with_basis/invariant.py | r"""
Invariant modules
"""
# ****************************************************************************
# Copyright (C) 2021 Trevor K. Karn <karnx018 at umn.edu>
# Travis Scrimshaw
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU ... | PypiClean |
/PLambda-1.1.1-py3-none-any.whl/plambda/eval/SymbolTable.py | import sys
class SymbolTable:
_symbol_table = {
sys.intern('and'): sys.intern('and'),
sys.intern('apply'): sys.intern('apply'),
sys.intern('array'): sys.intern('array'),
sys.intern('aset'): sys.intern('aset'),
sys.intern('boolean'): ... | PypiClean |
/bifacial_radiance-0.4.2.tar.gz/bifacial_radiance-0.4.2/bifacial_radiance/load.py | ''' DEPRECATED - doesn't work with python3
def load_inputvariablesfile(inputfile):
"""
Loads inputfile which must be in the bifacial_radiance directory,
and must be a ``.py`` file with all the variables, and organizes the variables
into dictionaries that it returns
Parameters
----------
inp... | PypiClean |
/lintian-brush-0.107.tar.gz/lintian-brush-0.107/fixers/debian-rules-sets-dpkg-architecture-variable.py |
import re
from lintian_brush.fixer import report_result, opinionated, fixed_lintian_tag
from debmutate._rules import update_rules, Makefile
from typing import Set, Tuple, Optional
architecture_included = False
PATH = '/usr/share/dpkg/architecture.mk'
INCLUDE_LINE = b'include ' + PATH.encode('ascii')
_variables: Set[... | PypiClean |
/NEURON_gpu-8.2.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl/neuron/rxd/geometry3d/surface.py | from . import ctng
from . import surfaces
from . import triangularMesh
import numpy
from numpy import sqrt, fabs
def surface(source, dx=0.25, internal_membranes=False, n_soma_step=100):
"""
Generates a triangularized mesh of the surface of a neuron.
Parameters
----------
source : :func:`list`, ``... | PypiClean |
/carbonplan-forest-risks-1.0.0.tar.gz/carbonplan-forest-risks-1.0.0/carbonplan_forest_risks/plot/line.py | import altair as alt
import pandas as pd
def line(
x=None,
y=None,
color=None,
data=None,
cmap=None,
clim=None,
xlim=None,
ylim=None,
xlabel=None,
ylabel=None,
width=350,
height=200,
strokeWidth=2,
opacity=1,
):
"""
plot two variables optionally colored ... | PypiClean |
/v4/model/issue_item_sf_v4_severity.py |
import pprint
import re
import six
class IssueItemSfV4Severity:
"""
Attributes:
openapi_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict): The key is attribute name
and the value is json key ... | PypiClean |
/apache-flink-1.17.1.tar.gz/apache-flink-1.17.1/pyflink/datastream/stream_execution_environment.py | import os
import tempfile
from typing import List, Any, Optional, cast
from py4j.java_gateway import JavaObject
from pyflink.common import Configuration, WatermarkStrategy
from pyflink.common.execution_config import ExecutionConfig
from pyflink.common.io import InputFormat
from pyflink.common.job_client import JobCl... | PypiClean |
/py7zr-0.20.6.tar.gz/py7zr-0.20.6/docs/archive_format.rst | .. _sevenzip-specifications:
************************
.7z format specification
************************
Abstract
========
7-zip archive is one of popular files compression and archive formats. There has been
no well-defined file format because there is no precise specification document in 20 years
from its birth, so... | PypiClean |
/safegate_pro-2021.7.6-py3-none-any.whl/homeassistant/components/lutron/light.py | from homeassistant.components.light import (
ATTR_BRIGHTNESS,
SUPPORT_BRIGHTNESS,
LightEntity,
)
from . import LUTRON_CONTROLLER, LUTRON_DEVICES, LutronDevice
def setup_platform(hass, config, add_entities, discovery_info=None):
"""Set up the Lutron lights."""
devs = []
for (area_name, device)... | PypiClean |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.