id stringlengths 1 8 | text stringlengths 6 1.05M | dataset_id stringclasses 1
value |
|---|---|---|
/recast-control-center-prototype-0.1.0.tar.gz/recast-control-center-prototype-0.1.0/recastcontrolcenter/static/bower_components/vis/dist/vis-graph3d.min.js | "use strict";!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.vis=e():t.vis=e()}(this,function(){return function(t){function e(i){if(n[i])return n[i].exports;var r=n[i]={exports:{},id:i,loaded:!1};retu... | PypiClean |
/py-pure-client-1.38.0.tar.gz/py-pure-client-1.38.0/pypureclient/flasharray/FA_2_15/models/destroyed_patch_post.py | import pprint
import re
import six
import typing
from ....properties import Property
if typing.TYPE_CHECKING:
from pypureclient.flasharray.FA_2_15 import models
class DestroyedPatchPost(object):
"""
Attributes:
swagger_types (dict): The key is attribute name
and the valu... | PypiClean |
/Products.CMFPlone-6.0.6rc1-py3-none-any.whl/Products/CMFPlone/controlpanel/browser/quickinstaller.py | from plone.base import PloneMessageFactory as _
from plone.base.interfaces import INonInstallable
from plone.memoize import view
from Products.CMFCore.utils import getToolByName
from Products.Five.browser import BrowserView
from Products.GenericSetup import EXTENSION
from Products.GenericSetup.tool import UNKNOWN
from ... | PypiClean |
/tracereq-0.0.2.tar.gz/tracereq-0.0.2/src/traceability/vsm.py | import numpy as np
import pandas as pd
import math
from tabulate import tabulate
from scipy.sparse import data
from sklearn.feature_extraction.text import CountVectorizer
from sklearn.metrics import pairwise_distances
from sklearn.metrics.pairwise import pairwise_kernels
from sklearn.cluster import KMeans
from sklearn.... | PypiClean |
/msgraph_beta_sdk-1.0.0a9-py3-none-any.whl/msgraph/generated/me/owned_objects/graph_service_principal/graph_service_principal_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 |
/criteo_api_retailmedia_sdk-2023.7.0.230831-py3-none-any.whl/criteo_api_retailmedia_v2023_07/model/preferred_line_item_update_model202110_request.py | import re # noqa: F401
import sys # noqa: F401
from criteo_api_retailmedia_v2023_07.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,
... | PypiClean |
/mobility_tools-0.1-py3-none-any.whl/mobility/get_survey_data.py | import numpy as np
import pandas as pd
import os
from pathlib import Path
from mobility.parsers import prepare_entd_2008, prepare_emp_2019
def get_survey_data(source="EMP-2019"):
"""
This function transforms raw survey data into dataframes needed for the sampling procedures.
Args:
source (str) ... | PypiClean |
/skytime-0.16.1-py3-none-any.whl/build/lib/build/lib/build/lib/sktime/transformations/panel/segment.py | """Interval and window segmenter transformers."""
import math
import numpy as np
import pandas as pd
from sklearn.utils import check_random_state
from sktime.datatypes._panel._convert import (
_concat_nested_arrays,
_get_column_names,
_get_time_index,
)
from sktime.transformations.base import BaseTransfor... | PypiClean |
/sb_all_utility-0.0.2.tar.gz/sb_all_utility-0.0.2/converter/file_converter.py | import os
import json
import PyPDF2
import pyttsx3
import img2pdf
from PIL import Image
def ico2png(imagePath, newImagePath = None):
try:
if newImagePath == None:
if ".PNG" in imagePath:
newImagePath = os.path.normpath(imagePath).replace(".ICO", "")+".png"
elif ".png... | PypiClean |
/kcrw.tinymce_imagedrop-1.0.1.tar.gz/kcrw.tinymce_imagedrop-1.0.1/LICENSE.rst | kcrw.tinymce_imagedrop Copyright 2020, Alec Mitchell
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License version 2
as published by the Free Software Foundation.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANT... | PypiClean |
/audoma-0.6.1.tar.gz/audoma-0.6.1/audoma_examples/drf_example/healthcare_api/migrations/0001_initial.py |
import django.db.models.deletion
from django.db import (
migrations,
models,
)
import audoma.django.db.fields
class Migration(migrations.Migration):
initial = True
dependencies = []
operations = [
migrations.CreateModel(
name="ContactData",
fields=[
... | PypiClean |
/pulumi_azure_nextgen-0.6.2a1613157620.tar.gz/pulumi_azure_nextgen-0.6.2a1613157620/pulumi_azure_nextgen/web/v20201001/get_web_app_deployment_slot.py |
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union
from ... import _utilities, _tables
from . import outputs
__all__ = [
'GetWebAppDeploymentSlotResult',
'AwaitableGetWebAppDeploymentSlotResult',
'get_web_app_deployment_slot',
]
@pulumi.output_t... | PypiClean |
/docker-registry-0.9.1.tar.gz/docker-registry-0.9.1/README.md | > **Notice:** *This repository hosts the classic (stable) python docker-registry. If you are looking for the next-generation of docker distribution tools (including the new golang registry), please head over to [docker/distribution](https://github.com/docker/distribution) instead.*
Docker-Registry
===============
[![... | PypiClean |
/classy_imaginary-0.6.5.tar.gz/classy_imaginary-0.6.5/classy_imaginary/vendored/k_diffusion/gns.py | import torch
class DDPGradientStatsHook:
def __init__(self, ddp_module):
try:
ddp_module.register_comm_hook(self, self._hook_fn)
except AttributeError:
raise ValueError(
"DDPGradientStatsHook does not support non-DDP wrapped modules"
)
se... | PypiClean |
/invenio-openaire-1.0.0a5.tar.gz/invenio-openaire-1.0.0a5/docs/contributing.rst | ..
This file is part of Invenio.
Copyright (C) 2015 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 |
/DJModels-0.0.6-py3-none-any.whl/djmodels/db/utils.py | import pkgutil
from importlib import import_module
from pathlib import Path
from threading import local
from djmodels.conf import settings
from djmodels.core.exceptions import ImproperlyConfigured
from djmodels.utils.functional import cached_property
from djmodels.utils.module_loading import import_string
DEFAULT_DB_... | PypiClean |
/mass_ts-0.1.4.tar.gz/mass_ts-0.1.4/docs/installation.rst | .. highlight:: shell
============
Installation
============
Stable release
--------------
To install MASS, run this command in your terminal:
.. code-block:: console
$ pip install mass_ts
This is the preferred method to install MASS, as it will always install the most recent stable release.
If you don't hav... | PypiClean |
/that-ml-library-0.0.2.tar.gz/that-ml-library-0.0.2/that_ml_library/data_preprocess.py |
# %% ../nbs/01_data_preprocess.ipynb 4
from __future__ import annotations
from .utils import *
import matplotlib.pyplot as plt
import seaborn as sns
import pandas as pd
import numpy as np
from statsmodels.tools.tools import add_constant
from statsmodels.stats.outliers_influence import variance_inflation_factor
from sk... | PypiClean |
/etcd3-rs-0.13.0.tar.gz/etcd3-rs-0.13.0/etcd3/etcdrpc/rpc_pb2_grpc.py | import grpc
from etcd3.etcdrpc import rpc_pb2 as rpc__pb2
class KVStub(object):
"""for grpc-gateway
"""
def __init__(self, channel):
"""Constructor.
Args:
channel: A grpc.Channel.
"""
self.Range = channel.unary_unary(
'/etcdserverpb.KV/Range',
request_serializer=rpc__pb... | PypiClean |
/catalyst-rl-20.3.tar.gz/catalyst-rl-20.3/catalyst_rl/contrib/models/cv/segmentation/unet.py | from typing import Dict # isort:skip
from functools import partial
import numpy as np
from .blocks import (
DecoderConcatBlock, EncoderDownsampleBlock, EncoderUpsampleBlock
)
from .bridge import UnetBridge
from .core import ResnetUnetSpec, UnetSpec
from .decoder import UNetDecoder
from .encoder import ResnetEnco... | PypiClean |
/benchling_api_client-2.0.207-py3-none-any.whl/benchling_api_client/models/default_concentration_summary.py | from typing import Any, cast, Dict, List, Optional, Type, TypeVar, Union
import attr
from ..extensions import NotPresentError
from ..types import UNSET, Unset
T = TypeVar("T", bound="DefaultConcentrationSummary")
@attr.s(auto_attribs=True, repr=False)
class DefaultConcentrationSummary:
""" """
_units: Un... | PypiClean |
/jpg-png-0.0.1.tar.gz/jpg-png-0.0.1/README.md | # JPG_to_PNG_converter
### **This program will change picture format from JPG to PNG**
## How to use it?
The program will first ask user to insert the **folder name** in which **.jpg** images are present. The user simply provide the name of the folder.
If the folder is not present in the current directory, it will sh... | PypiClean |
/KADaP01-2.0.0-py3-none-any.whl/yolov5/utils/loggers/__init__.py | import os
import warnings
from pathlib import Path
import pkg_resources as pkg
import torch
from torch.utils.tensorboard import SummaryWriter
from utils.general import LOGGER, colorstr, cv2
from utils.loggers.clearml.clearml_utils import ClearmlLogger
from utils.loggers.wandb.wandb_utils import WandbLogger
from utils... | PypiClean |
/py-pure-client-1.38.0.tar.gz/py-pure-client-1.38.0/pypureclient/flasharray/FA_2_4/models/support_remote_assist_paths.py | import pprint
import re
import six
import typing
from ....properties import Property
if typing.TYPE_CHECKING:
from pypureclient.flasharray.FA_2_4 import models
class SupportRemoteAssistPaths(object):
"""
Attributes:
swagger_types (dict): The key is attribute name
and the... | PypiClean |
/bambu-cron-3.1.tar.gz/bambu-cron-3.1/bambu_cron/sites.py | from django.utils.timezone import now
from django.db import transaction
import logging
class AlreadyRegistered(Exception):
pass
class NotRegistered(Exception):
pass
class CronSite(object):
_registry = {}
def __init__(self):
self.logger = logging.getLogger('bambu_cron')
def regis... | PypiClean |
/cubicweb-saem-ref-1.0.2.tar.gz/cubicweb-saem-ref-1.0.2/cubicweb_saem_ref/views/ws.py | """cubicweb-saem-ref Web Services"""
from rql import TypeResolverException
from cubicweb import NoResultError
from cubicweb.view import View
from cubicweb.predicates import (match_form_params, match_http_method,
match_user_groups)
from cubicweb.web.views import json
from cubicweb_sae... | PypiClean |
/pulumi_oci-1.9.0a1693465256.tar.gz/pulumi_oci-1.9.0a1693465256/pulumi_oci/genericartifactscontent/artifact_by_path.py |
import copy
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from .. import _utilities
__all__ = ['ArtifactByPathArgs', 'ArtifactByPath']
@pulumi.input_type
class ArtifactByPathArgs:
def __init__(__self__, *,
artifact_path: ... | PypiClean |
/j_chess_lib-0.10.3.tar.gz/j_chess_lib-0.10.3/docs/j_chess_lib.ai.rst | j\_chess\_lib.ai package
========================
Submodules
----------
j\_chess\_lib.ai.Ai module
--------------------------
.. automodule:: j_chess_lib.ai.Ai
:members:
:undoc-members:
:show-inheritance:
j\_chess\_lib.ai.Container module
---------------------------------
.. automodule:: j_chess_lib.ai.Co... | PypiClean |
/cubicweb_slickgrid-1.3.0-py3-none-any.whl/cubicweb_slickgrid/data/SlickGrid/plugins/slick.headerbuttons.js | (function ($) {
// register namespace
$.extend(true, window, {
"Slick": {
"Plugins": {
"HeaderButtons": HeaderButtons
}
}
});
/***
* A plugin to add custom buttons to column headers.
*
* USAGE:
*
* Add the plugin .js & .css files and register it with the grid.
*
... | PypiClean |
/apistar_session_cookie-1.0.0.zip/apistar_session_cookie-1.0.0/README.md | # apistar-session-cookie
Cookie based Sessions for [Apistar](https://github.com/encode/apistar).

[](http://opensource.org/licenses/GPL-3.0)
[![LGP... | PypiClean |
/ipwhois-1.2.0.tar.gz/ipwhois-1.2.0/CLI.rst | ===
CLI
===
ipwhois_cli.py and ipwhois_utils_cli.py are command line interfaces for the
ipwhois library. When using pip to install ipwhois, the CLI scripts are
installed to your Python environment Scripts directory.
- ipwhois_cli.py has full ipwhois.py functionality.
- ipwhois_utils_cli.py has full utils.py functiona... | PypiClean |
/chauffeur-pass-0.0.1.tar.gz/chauffeur-pass-0.0.1/chauffeur/query.py | from enum import Enum
from collections import OrderedDict, defaultdict
import functools
import csv
from .grammar import Node, Way, Relation, GenericElementQuery, CompoundQuery
from .settings import QuerySettings
from .filters import BboxFilter, TagFilter, IdFilter, UserFilter
from .formats import OutputFormatter, fmt
... | PypiClean |
/exchange_calendars-4.2.8.tar.gz/exchange_calendars-4.2.8/exchange_calendars/us_holidays.py | from dateutil.relativedelta import MO, TH, TU
from pandas import DateOffset, Timestamp
from pandas.tseries.holiday import Holiday, nearest_workday, sunday_to_monday
from pandas.tseries.offsets import Day
from .common_holidays import new_years_day
from .exchange_calendar import FRIDAY, MONDAY, THURSDAY, TUESDAY, WEDNES... | PypiClean |
/ensmallen_graph-0.6.0-cp37-cp37m-manylinux2010_x86_64.whl/ensmallen_graph/datasets/networkrepository/brock2003.py | from typing import Dict
from ..automatic_graph_retrieval import AutomaticallyRetrievedGraph
from ...ensmallen_graph import EnsmallenGraph # pylint: disable=import-error
def Brock2003(
directed: bool = False,
verbose: int = 2,
cache_path: str = "graphs/networkrepository",
**additional_graph_kwargs: D... | PypiClean |
/geowatch-0.9.4.tar.gz/geowatch-0.9.4/watch/tasks/fusion/methods/channelwise_transformer.py | import einops
import kwarray
import kwcoco
import ubelt as ub
import torch
import torchmetrics
# import math
import numpy as np
import netharn as nh
import pytorch_lightning as pl
# import torch_optimizer as optim
from torch import nn
# from einops.layers.torch import Rearrange
# from torchvision import transforms
fr... | PypiClean |
/xcsoar-0.7.0.tar.gz/xcsoar-0.7.0/xcsoar.submodule/build/python/build/libs.py | from os.path import abspath
from build.zlib import ZlibProject
from build.autotools import AutotoolsProject
from build.freetype import FreeTypeProject
from build.libstdcxxmuslheaders import LibstdcxxMuslHeadersProject
glibc = AutotoolsProject(
'http://mirror.netcologne.de/gnu/libc/glibc-2.23.tar.xz',
'http://... | PypiClean |
/demisto_sdk-1.19.2.tar.gz/demisto_sdk-1.19.2/demisto_sdk/commands/upload/upload.py | import logging
import shutil
import tempfile
from contextlib import suppress
from pathlib import Path
from typing import Iterable, List, Sequence
from zipfile import ZipFile
from pydantic import DirectoryPath
from demisto_sdk.commands.common.constants import (
MarketplaceVersions,
)
from demisto_sdk.commands.comm... | PypiClean |
/find_job_titles-0.7.0.tar.gz/find_job_titles-0.7.0/README.rst | ===============
find_job_titles
===============
.. image:: https://img.shields.io/pypi/v/find_job_titles.svg
:target: https://pypi.python.org/pypi/find_job_titles
.. image:: https://img.shields.io/pypi/pyversions/find_job_titles.svg
:target: https://pypi.python.org/pypi/find_job_titles
.. image:: htt... | PypiClean |
/ablator_ken_test-0.0.1b2.tar.gz/ablator_ken_test-0.0.1b2/ablator/modules/storage/cloud.py | import json
import os
import socket
import subprocess
import typing as ty
from pathlib import Path
from ablator.config.main import ConfigBase, configclass
from ablator.config.types import Optional
from ablator.modules.loggers.file import FileLogger
@configclass
class GcpConfig(ConfigBase):
"""
Configuration f... | PypiClean |
/boot-synth-1.2.0.tar.gz/boot-synth-1.2.0/synth/projects_master/nginx_router/frontend/react/node_modules/timers-browserify/README.md | # Overview
Adds support for the `timers` module to browserify.
## Wait, isn't it already supported in the browser?
The public methods of the `timers` module are:
* `setTimeout(callback, delay, [arg], [...])`
* `clearTimeout(timeoutId)`
* `setInterval(callback, delay, [arg], [...])`
* `clearInterval(intervalId)`
an... | PypiClean |
/torchbox-1.1.23.tar.gz/torchbox-1.1.23/examples/module/layers/demo_convlstm_keras.py | import os
import numpy as np
import matplotlib.pyplot as plt
import tensorflow as tf
from tensorflow import keras
from tensorflow.keras import layers
import io
import imageio
from IPython.display import Image, display
from ipywidgets import widgets, Layout, HBox
os.environ["CUDA_DEVICE_ORDER"] = "PCI_BUS_ID"
# os.en... | PypiClean |
/fake_bpy_module_2.83-20230117-py3-none-any.whl/bpy/path.py | import sys
import typing
import bpy.types
GenericType = typing.TypeVar("GenericType")
def abspath(path,
start: typing.Union[str, bytes] = None,
library: typing.Optional['bpy.types.Library'] = None):
''' Returns the absolute path relative to the current blend file using the "//" prefix.
... | PypiClean |
/gerbonara-0.11.2.tar.gz/gerbonara-0.11.2/docs/apertures.rst | Apertures in Gerbonara
======================
Gerbonara maps all standard Gerber apertures to subclasses of the :py:class:`.Aperture` class. These subclasses:
:py:class:`.CircleAperture`, :py:class:`.RectangleAperture`, :py:class:`.ObroundAperture` and
:py:class:`.PolygonAperture`. :doc:`Aperture macro<aperture-macros... | PypiClean |
/trixie-0.1.2.tar.gz/trixie-0.1.2/homeassistant/components/raspihats.py | import logging
import threading
import time
from homeassistant.const import (
EVENT_HOMEASSISTANT_START, EVENT_HOMEASSISTANT_STOP)
REQUIREMENTS = ['raspihats==2.2.3', 'smbus-cffi==0.5.1']
_LOGGER = logging.getLogger(__name__)
DOMAIN = 'raspihats'
CONF_I2C_HATS = 'i2c_hats'
CONF_BOARD = 'board'
CONF_ADDRESS = '... | PypiClean |
/torch_geometric-2.3.1.tar.gz/torch_geometric-2.3.1/torch_geometric/datasets/zinc.py | import os
import os.path as osp
import pickle
import shutil
from typing import Callable, List, Optional
import torch
from tqdm import tqdm
from torch_geometric.data import (
Data,
InMemoryDataset,
download_url,
extract_zip,
)
class ZINC(InMemoryDataset):
r"""The ZINC dataset from the `ZINC datab... | PypiClean |
/azure_mgmt_storage-21.1.0-py3-none-any.whl/azure/mgmt/storage/v2015_06_15/models/_models_py3.py |
import datetime
from typing import Any, Dict, List, Optional, TYPE_CHECKING, Union
from ... import _serialization
if TYPE_CHECKING:
# pylint: disable=unused-import,ungrouped-imports
from .. import models as _models
class CheckNameAvailabilityResult(_serialization.Model):
"""The CheckNameAvailability op... | PypiClean |
/kolibri_explore_plugin-6.40.0-py3-none-any.whl/kolibri_explore_plugin/assets/src/modules/topicsRoot/handlers.js | import partial from 'lodash/partial';
import urls from 'kolibri.urls';
import { utils } from 'ek-components';
import router from 'kolibri.coreVue.router';
import plugin_data from 'plugin_data';
import { ContentNodeSearchResource } from 'kolibri.resources';
import { getContentNodeThumbnail } from 'kolibri.utils.contentN... | PypiClean |
/msgraph-sdk-1.0.0a3.tar.gz/msgraph-sdk-1.0.0a3/msgraph/generated/groups/item/sites/item/term_store/sets/item/parent_group/sets/item/children/item/term_item_request_builder.py | from __future__ import annotations
from dataclasses import dataclass
from kiota_abstractions.get_path_parameters import get_path_parameters
from kiota_abstractions.method import Method
from kiota_abstractions.request_adapter import RequestAdapter
from kiota_abstractions.request_information import RequestInformation
fro... | PypiClean |
/kinsumer-0.5.3.tar.gz/kinsumer-0.5.3/README.md | kinsumer
========
High level [Amazon Kinesis Streams](https://aws.amazon.com/kinesis/streams/) consumer.
Some features
-------------
* Automatically detect shard count changes
* Checkpoints/sequences persistence can be customized
* Provided Checkpointer implementation for memory, and file
* Memory bucket for tempora... | PypiClean |
/msgraph_beta_sdk-1.0.0a9-py3-none-any.whl/msgraph/generated/role_management/cloud_p_c/resource_namespaces/resource_namespaces_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 |
/neofs-testlib-1.1.10.tar.gz/neofs-testlib-1.1.10/src/neofs_testlib/blockchain/rpc_client.py | import json
import logging
from typing import Any, Dict, Optional
import requests
logger = logging.getLogger("neofs.testlib.blockchain")
class NeoRPCException(Exception):
pass
class RPCClient:
def __init__(self, endpoint, timeout: int = 10):
self.endpoint = endpoint
self.timeout = timeout
... | PypiClean |
/zohocrmsdk2_1-2.0.0.tar.gz/zohocrmsdk2_1-2.0.0/zcrmsdk/src/com/zoho/crm/api/contact_roles/contact_role.py | try:
from zcrmsdk.src.com.zoho.crm.api.exception import SDKException
from zcrmsdk.src.com.zoho.crm.api.util import Constants
except Exception:
from ..exception import SDKException
from ..util import Constants
class ContactRole(object):
def __init__(self):
"""Creates an instance of ContactRole"""
self.__id =... | PypiClean |
/RedBlackGraph-0.3.17-cp39-cp39-macosx_11_0_x86_64.whl/redblackgraph/__config__.py | __all__ = ["get_info","show"]
import os
import sys
extra_dll_dir = os.path.join(os.path.dirname(__file__), '.libs')
if sys.platform == 'win32' and os.path.isdir(extra_dll_dir):
if sys.version_info >= (3, 8):
os.add_dll_directory(extra_dll_dir)
else:
os.environ.setdefault('PATH', '')
... | PypiClean |
/zipline_crypto-0.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl/zipline/pipeline/hooks/delegate.py | from interface import implements
from zipline.utils.compat import ExitStack, contextmanager, wraps
from .iface import PipelineHooks, PIPELINE_HOOKS_CONTEXT_MANAGERS
from .no import NoHooks
def delegating_hooks_method(method_name):
"""Factory function for making DelegatingHooks methods."""
if method_name in ... | PypiClean |
/tensorflow_cpu_aws-2.14.0rc1-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl/tensorflow/python/saved_model/load_options.py | """Options for saving SavedModels."""
from tensorflow.python.saved_model import save_options
from tensorflow.python.util.tf_export import tf_export
@tf_export("saved_model.LoadOptions", v1=[])
class LoadOptions(object):
"""Options for loading a SavedModel.
This function may be used in the `options` argument in ... | PypiClean |
/jupyterlab_remote_contents-0.1.1.tar.gz/jupyterlab_remote_contents-0.1.1/node_modules/ext/node_modules/type/CHANGELOG.md | # Changelog
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
## [2.6.0](https://github.com/medikoo/type/compare/v2.5.0...v2.6.0) (2022-02-02)
### Features
- `constructor` validation utils ([... | PypiClean |
/bpy_optix-2.82-cp37-cp37m-win_amd64.whl/bpy_optix-2.82.data/scripts/2.82/scripts/addons/io_mesh_atomic/utility_panel.py |
import os
import bpy
import bmesh
from mathutils import Vector
from math import sqrt
from copy import copy
# -----------------------------------------------------------------------------
# Atom and element data
# This is a list that contains some data of all p... | PypiClean |
/missinglink-kernel-0.5621.tar.gz/missinglink-kernel-0.5621/missinglink_kernel/data_management/legit/scam/luqum/pretty.py | """This module provides a pretty printer for lucene query tree.
"""
from .tree import BaseOperation, BaseGroup, SearchField
class _StickMarker:
"""Use in list between two elements that must stick together
"""
def __len__(self):
return 0
# a marker to avoid a new line between two elements
_STICK... | PypiClean |
/py-pure-client-1.38.0.tar.gz/py-pure-client-1.38.0/pypureclient/flasharray/FA_2_20/api/saml2_sso_api.py | from __future__ import absolute_import
import re
# python 2 and python 3 compatibility library
import six
from typing import List, Optional
from .. import models
class SAML2SSOApi(object):
def __init__(self, api_client):
self.api_client = api_client
def api220_sso_saml2_idps_delete_with_http_info(... | PypiClean |
/dagster-snowflake-1.0.5.tar.gz/dagster-snowflake-1.0.5/dagster_snowflake/solids.py | from dagster import Nothing
from dagster import _check as check
from dagster import op
from dagster._legacy import InputDefinition, solid
def _core_create_snowflake_command(dagster_decorator, decorator_name, sql, parameters=None):
check.str_param(sql, "sql")
check.opt_dict_param(parameters, "parameters")
... | PypiClean |
/retort-cgi-1.0.1.tar.gz/retort-cgi-1.0.1/retort/app.py |
# The module must also support Python 2.6
# http://python-future.org/
from __future__ import (absolute_import, division,
print_function, unicode_literals)
# TODO: Test builtins.super
# from builtins import super
import sys
import os
from functools import wraps
# https://docs.python.org/2.6/lib... | PypiClean |
/certora_cli_alpha_rahav_cert_1982_2-20230502.13.31.343783-py3-none-any.whl/certora_cli/Shared/certoraLogging.py | import logging
import sys
from typing import Dict, Any, Set, Optional, Iterable, List
from Shared.certoraUtils import write_json_file, red_text, orange_text, get_debug_log_file
from Shared.certoraUtils import get_resource_errors_file
class ColoredString(logging.Formatter):
def __init__(self, msg_fmt: str = "%(nam... | PypiClean |
/tiledb-0.21.2.tar.gz/tiledb-0.21.2/README.md | <a href="https://tiledb.com"><img src="https://github.com/TileDB-Inc/TileDB/raw/dev/doc/source/_static/tiledb-logo_color_no_margin_@4x.png" alt="TileDB logo" width="400"></a>
[](https://dev.azure.com/TileDB-Inc/... | PypiClean |
/sahara_dashboard-18.0.0-py3-none-any.whl/sahara_dashboard/content/data_processing/clusters/cluster_templates/views.py |
from django.urls import reverse
from django.urls import reverse_lazy
from django.utils.translation import gettext_lazy as _
from horizon import exceptions
from horizon import forms
from horizon import tabs
from horizon.utils import memoized
from horizon import workflows
from sahara_dashboard.api import sahara as sah... | PypiClean |
/sdnn-cl-2.2.0.tar.gz/sdnn-cl-2.2.0/tvm/arith/analyzer.py | """Arithmetic data structure and utility"""
import tvm._ffi
from tvm.runtime import Object
from . import _ffi_api
@tvm._ffi.register_object("arith.ModularSet")
class ModularSet(Object):
"""Represent range of (coeff * x + base) for x in Z"""
def __init__(self, coeff, base):
self.__init_handle_by_const... | PypiClean |
/integracije-0.0.1.tar.gz/integracije-0.0.1/LICENCE.md | The MIT License (MIT)
Copyright (c) 2022 Hana Balan
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, publi... | PypiClean |
/django_adminlte_x-0.22.1-py3-none-any.whl/adminlte/static/plugins/ckeditor/samples/old/inlinetextarea.html.py | XXXXXXXXX XXXXX
XXXX
XXXXXXXXX XXX XXXXXXXXXX XXXXXXXX X XXXXXXXXX XXXXXXXX XXX XXXXXX XXXXXXXXX
XXX XXXXXXXXXX XXX XXXXXXXXXX XX XXXXXXXXXXXXXXXXXXXXXXXXXXX
XXX
XXXXXX
XXXXXX
XXXXX XXXXXXXXXXXXXXXX
XXXXXXXXXXXXXX XXXXXXXX XXXX XXXXXX XXXXXX XXXXXXX XXXXXXXX XXXXXXXXXXXXXX
XXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
... | PypiClean |
/nodejs_bin-18.4.0a3-py3-none-manylinux_2_12_x86_64.manylinux2010_x86_64.whl/nodejs/lib/node_modules/npm/node_modules/has-flag/readme.md | # has-flag [](https://travis-ci.org/sindresorhus/has-flag)
> Check if [`argv`](https://nodejs.org/docs/latest/api/process.html#process_process_argv) has a specific flag
Correctly stops looking after an `--` argument terminator.
---
<div a... | PypiClean |
/ml-eeg-0.0.62.tar.gz/ml-eeg-0.0.62/ml/system.py |
import os
import os.path
import subprocess
from time import gmtime, strftime
LOGLEVEL = 3
def mute():
set_log_level(1)
def set_log_level(lvl):
# 1 errores
# 2 errores + warnings
# 3 errores + warnings + info
global LOGLEVEL
LOGLEVEL=lvl
def home():
return os.path.expanduser("~")
def ... | PypiClean |
/solidlibs-2.6.7-py3-none-any.whl/django_addons/static/admin/js/nav_sidebar.js | 'use strict';
{
const toggleNavSidebar = document.getElementById('toggle-nav-sidebar');
if (toggleNavSidebar !== null) {
const navLinks = document.querySelectorAll('#nav-sidebar a');
function disableNavLinkTabbing() {
for (const navLink of navLinks) {
navLink.tabIndex... | PypiClean |
/ooouno-2.1.2-py3-none-any.whl/ooo/lo/text/graphic_crop.py | from ooo.oenv.env_const import UNO_NONE
import typing
class GraphicCrop(object):
"""
Struct Class
describes the cropping of graphic objects.
Cropping means to show only parts of the object.
Negative values cut the visible area; positive values extend the visible area by filling it with ... | PypiClean |
/pulumi_azure_nextgen-0.6.2a1613157620.tar.gz/pulumi_azure_nextgen-0.6.2a1613157620/pulumi_azure_nextgen/insights/analytics_item.py |
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union
from .. import _utilities, _tables
from . import outputs
from ._enums import *
from ._inputs import *
__all__ = ['AnalyticsItem']
class AnalyticsItem(pulumi.CustomResource):
def __init__(__self__,
... | PypiClean |
/py-pure-client-1.38.0.tar.gz/py-pure-client-1.38.0/pypureclient/pure1/Pure1_1_1/models/alert.py | import pprint
import re
import six
import typing
from ....properties import Property
if typing.TYPE_CHECKING:
from pypureclient.pure1.Pure1_1_1 import models
class Alert(object):
"""
Attributes:
swagger_types (dict): The key is attribute name
and the value is attribute t... | PypiClean |
/myams_js-1.16.0.tar.gz/myams_js-1.16.0/docs/HISTORY.rst | Changelog
=========
1.16.0
------
- added FullCalendar support plug-in
- updated minified navigation bar styles
- small CSS updates
1.15.8
------
- updated Webpack configuration
1.15.7
------
- automatically switch fieldsets and tabs containing errors on form load (and not only on
JSON response on submit)
-... | PypiClean |
/localstack_core-2.2.0-py3-none-any.whl/localstack/aws/api/route53resolver/__init__.py | import sys
from typing import List, Optional
if sys.version_info >= (3, 8):
from typing import TypedDict
else:
from typing_extensions import TypedDict
from localstack.aws.api import RequestContext, ServiceException, ServiceRequest, handler
AccountId = str
Arn = str
BlockOverrideDomain = str
BlockOverrideTtl ... | PypiClean |
/gaussianfft-1.1.1.post1.tar.gz/gaussianfft-1.1.1.post1/tools/build/src/tools/cast.py |
# Defines main target 'cast', used to change type for target. For example, in Qt
# library one wants two kinds of CPP files -- those that just compiled and those
# that are passed via the MOC tool.
#
# This is done with:
#
# exe main : main.cpp [ cast _ moccable-cpp : widget.cpp ] ;
#
# Boost.Build will assign targ... | PypiClean |
/ask_jennie-1.0.0-py3-none-any.whl/jennie/events/angular/update_angular_modules.py | import os
from jennie.constants.protocol import *
from jennie.constants.responses import *
class UpdateAngularModuleFile():
def __init__(self, filepath):
self.filepath = filepath
self.content = open(filepath).read()
def add_imports(self, imports):
for modulename in imports:
... | PypiClean |
/adafruit-circuitpython-max31855-3.2.19.tar.gz/adafruit-circuitpython-max31855-3.2.19/.github/PULL_REQUEST_TEMPLATE/adafruit_circuitpython_pr.md | # SPDX-FileCopyrightText: 2021 Adafruit Industries
#
# SPDX-License-Identifier: MIT
Thank you for contributing! Before you submit a pull request, please read the following.
Make sure any changes you're submitting are in line with the CircuitPython Design Guide, available here: https://docs.circuitpython.org/en/latest... | PypiClean |
/gtx-1.0-py3-none-any.whl/my_openxai/explainers/catalog/lime/lime_package/lime_base.py | import numpy as np
import scipy as sp
from sklearn.linear_model import Ridge, lars_path
from sklearn.utils import check_random_state
class LimeBase(object):
"""Class for learning a locally linear sparse model from perturbed data"""
def __init__(self,
kernel_fn,
verbose=False,... | PypiClean |
/factory_boy-3.3.0.tar.gz/factory_boy-3.3.0/factory/django.py | import functools
import io
import logging
import os
import warnings
from django.contrib.auth.hashers import make_password
from django.core import files as django_files
from django.db import IntegrityError
from . import base, declarations, errors
logger = logging.getLogger('factory.generate')
DEFAULT_DB_ALIAS = 'de... | PypiClean |
/South-1.0.2.tar.gz/South-1.0.2/south/management/commands/syncdb.py | from __future__ import print_function
import sys
from optparse import make_option
from django.core.management.base import NoArgsCommand, BaseCommand
from django.core.management.color import no_style
from django.utils.datastructures import SortedDict
from django.core.management.commands import syncdb
from django.conf... | PypiClean |
/ease-restapi-1.3.tar.gz/ease-restapi-1.3/ease_restapi/simplify/bridge.py |
from __future__ import unicode_literals
u"""
集成后:
注册(附带)
修改密码(附带)
删除账户(附带)
集成前:
集成前的账户信息, 要适应集成后的机制来保证数据的完整性.
建议本地账户信息(比如: UserProfile), 增加环信账户状态字段. 比如: ring_info, 初始值为: False, 完成环信注册后为: True.
可能修改:
根据本地业务修改的, 可能的修改如下.
check_user_id: 账户生成方式.
chalk_remote_user: 密码生成方式.
join... | PypiClean |
/torchdistill_test-0.0.1-py3-none-any.whl/Energon_Prometheus_exporter-main/utils.py | import subprocess
import re
import os
"""Run the command and return the output as a string."""
def run_command_and_get_output(command):
# check if command is empty
command_output = {}
if not command:
command_output["out_value"] = "No command to run"
command_output["error"] = True
_comm... | PypiClean |
/stargaze_protobuf-0.1.0.tar.gz/stargaze_protobuf-0.1.0/src/stargaze_protobuf/ibc/applications/transfer/v1/query_pb2.py | from google.protobuf.internal import builder as _builder
from google.protobuf import descriptor as _descriptor
from google.protobuf import descriptor_pool as _descriptor_pool
from google.protobuf import symbol_database as _symbol_database
_sym_db = _symbol_database.Default()
from .....gogoproto import gogo_pb2 as gogop... | PypiClean |
/formification-1.2.0-py3-none-any.whl/formulaic/static/admin/formulaic/ember-formulaic/node_modules/babel-preset-env/data/plugin-features.js | module.exports = {
// es2015
"check-es2015-constants": {
features: [
"const",
],
},
"transform-es2015-arrow-functions": {
features: [
"arrow functions",
],
},
"transform-es2015-block-scoped-functions": {
features: [
"block-level function declaration"
],
},
"tran... | PypiClean |
/mrq-custom-0.10.2.0a1.tar.gz/mrq-custom-0.10.2.0a1/mrq/utils.py | from __future__ import division
from future.builtins import str, range, object
from past.utils import old_div
import re
import importlib
import time
import math
import json
import datetime
from collections import deque
from bson import ObjectId
import uuid
import shlex
#
# Utils are functions that should be independent... | PypiClean |
/gurux_dlms-1.0.145.tar.gz/gurux_dlms-1.0.145/gurux_dlms/GXDLMSChippering.py | from .enums.Security import Security
from .GXByteBuffer import GXByteBuffer
from .CountType import CountType
from .objects.enums.SecuritySuite import SecuritySuite
from .GXDLMSChipperingStream import GXDLMSChipperingStream
from .internal._GXCommon import _GXCommon
from .enums.Command import Command
#pylint: disable=to... | PypiClean |
/virtual-scanner-2.0.0.post4.tar.gz/virtual-scanner-2.0.0.post4/virtualscanner/server/simulation/write_epi_pypulseq.py | import math
import matplotlib.pyplot as plt
import numpy as np
from pypulseq.Sequence.sequence import Sequence
from pypulseq.make_adc import make_adc
from pypulseq.make_sinc_pulse import make_sinc_pulse
from pypulseq.make_trap_pulse import make_trapezoid
from pypulseq.opts import Opts
# ======
# SETUP
# ======
seq =... | PypiClean |
/formification-1.2.0-py3-none-any.whl/formulaic/static/admin/formulaic/ember-formulaic/node_modules/micromatch/lib/glob.js | 'use strict';
var chars = require('./chars');
var utils = require('./utils');
/**
* Expose `Glob`
*/
var Glob = module.exports = function Glob(pattern, options) {
if (!(this instanceof Glob)) {
return new Glob(pattern, options);
}
this.options = options || {};
this.pattern = pattern;
this.history = [... | PypiClean |
/nltk2-fixed-2.0.6.tar.gz/nltk2-fixed-2.0.6/nltk/util.py |
import locale
import re
import types
import textwrap
import pydoc
import bisect
import os
from itertools import islice, chain
from pprint import pprint
from collections import defaultdict, deque
from sys import version_info
from nltk.internals import slice_bounds
####################################################... | PypiClean |
/pasm-0.0.3.tar.gz/pasm-0.0.3/pip_pasm/pip_pasm.py | from __future__ import absolute_import
import numpy as np
import tensorflow as tf
from pip_pasm.network_model import *
from pip_pasm.helper import *
import os
import inspect
class PASM():
def __init__(self, modfolder='pre-model/scratch_loss', type='scratch'):
## Training Parameters
... | PypiClean |
/tensorflow_fedora28-1.9.0rc01-cp27-cp27mu-manylinux1_x86_64.whl/tensorflow_fedora28-1.9.0rc0.data/purelib/tensorflow/contrib/data/python/ops/resampling.py | """Resampling dataset transformations."""
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import numpy as np
from tensorflow.contrib.data.python.ops import batching
from tensorflow.contrib.data.python.ops import interleave_ops
from tensorflow.contrib.data.p... | PypiClean |
/CluSex-2.3.6-py3-none-any.whl/clusex/pysex.py |
# CluSex is a set of routines that aids Sextractor
# to perform on images of cluster galaxies
# Copyright (C) 2022 Christopher Añorve
#
# This program 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 ... | PypiClean |
/emva1288-0.6.3.tar.gz/emva1288-0.6.3/versioneer.py | from __future__ import print_function
try:
import configparser
except ImportError:
import ConfigParser as configparser
import errno
import json
import os
import re
import subprocess
import sys
class VersioneerConfig:
"""Container for Versioneer configuration parameters."""
def get_root():
"""Get the... | PypiClean |
/pants_backend_oci-0.4.0.tar.gz/pants_backend_oci-0.4.0/pants_backend_oci/goals/publish.py |
from dataclasses import dataclass
from pants.core.goals.publish import (
PublishFieldSet,
PublishOutputData,
PublishPackages,
PublishProcesses,
PublishRequest,
)
from pants.core.util_rules.external_tool import DownloadedExternalTool, ExternalToolRequest
from pants.engine.env_vars import Environmen... | PypiClean |
/pytimeo-0.0.2.tar.gz/pytimeo-0.0.2/pytimeo.py | import requests
import re
from bs4 import BeautifulSoup as BS
__version__='0.0.2'
VERSION = tuple(map(int, __version__.split('.')))
__all__ = ['Timeo']
class Timeo:
""" Interface entre Python et le service Timéo de la SETRAM """
def __init__(self, URL="http://dev.actigraph.fr/actipages/setram/module/mobile... | PypiClean |
/ronda_servable-1.0.0.tar.gz/ronda_servable-1.0.0/ronda_servable/onnx_servable.py | import logging
from typing import Dict
import numpy as np
from .device_util import CPU_DEVICE, get_cpu_procs, get_gpu_available
PROVIDER_LIST = ["TensorrtExecutionProvider", "CUDAExecutionProvider",
"OpenVINOExecutionProvider", "CPUExecutionProvider"]
class ONNXServable:
"""
onnx servable ... | PypiClean |
/AI4Water-1.6.tar.gz/AI4Water-1.6/docs/source/index.rst | .. ai4water documentation
Welcome to ai4water's documentation!
====================================
.. image:: imgs/monogram.png
.. toctree::
:maxdepth: 2
installation
quick_start
understanding
.. toctree::
:maxdepth: 2
:caption: Modules
model
models
datasets
preprocessing
postpro... | PypiClean |
/sw_mc_lib-0.3.0-py3-none-any.whl/sw_mc_lib/Components/PropertyDropdown.py | from __future__ import annotations
from typing import Optional
from sw_mc_lib.Component import INNER_TO_XML_RESULT, Component
from sw_mc_lib.NumberProperty import NumberProperty
from sw_mc_lib.Position import Position
from sw_mc_lib.Types import ComponentType
from sw_mc_lib.XMLElement import XMLElement
from sw_mc_lib... | PypiClean |
/madam_mam-0.7.3.tar.gz/madam_mam-0.7.3/madam/adapters/process/applications.py |
import logging
from typing import Optional
from docker.errors import NotFound
from madam.adapters.process import docker_api
from madam.domains.entities.application import (
STATUS_ABORTED,
STATUS_COMPLETE,
STATUS_CONTAINER_ERROR,
STATUS_ERROR,
Application,
)
from madam.domains.interfaces.process.a... | PypiClean |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.