id stringlengths 1 8 | text stringlengths 6 1.05M | dataset_id stringclasses 1
value |
|---|---|---|
/huaweicloud-sdk-python-1.0.28.tar.gz/huaweicloud-sdk-python-1.0.28/openstack/ecs/v1/server.py |
from openstack import resource2
from openstack import utils
from openstack.ecs import ecs_service
class Servers(resource2.Resource):
base_path = "/cloudservers"
resources_key = 'servers'
service = ecs_service.EcsService()
allow_create = True
allow_get = True
# server detail
server = reso... | PypiClean |
/craft-cli-2.1.0.tar.gz/craft-cli-2.1.0/docs/tutorials.rst | .. _tutorials:
*********
Tutorials
*********
Run a command based application with craft-cli
==============================================
This tutorial will explain how to use Craft CLI to run an application that is based on commands.
Along the way you will define a simple command (named ``unlink``, with the funct... | PypiClean |
/openapi_jira_client-3.0.1-py3-none-any.whl/openapi_jira_client/api/screen_tab_fields/move_screen_tab_field.py | from typing import Any, Dict, List, Optional, Union, cast
import httpx
from attr import asdict
from ...client import AuthenticatedClient, Client
from ...models.move_field_bean import MoveFieldBean
from ...types import UNSET, Response
def _get_kwargs(
*,
client: AuthenticatedClient,
screen_id: int,
t... | PypiClean |
/exoplasim_legacy-3.0.0a17-py3-none-any.whl/exoplasimlegacy/hpc/buildhpc.py | import sys
import getpass
import os
'''
Usage: python buildhpc.py option1=arg1 option2=arg2
Options:
email=<you@mail>
account=<allocation>
Both of these are optional if your job submission system doesn't require them.
'''
if __name__=="__main__":
USER = getpass.getuser()
EMAIL = ""
ACCOUNT = ""
... | PypiClean |
/atriumsports_sdk-1.6.0.tar.gz/atriumsports_sdk-1.6.0/atriumsports/datacore/openapi/models/video_stream_outputs_model_organization.py | # noqa: E501
from __future__ import annotations
import json
import pprint
import re # noqa: F401
from typing import Optional
from pydantic import BaseModel, Field, StrictStr, validator
class VideoStreamOutputsModelOrganization(BaseModel):
"""
The organization that this Video Stream Outputs belongs to
... | PypiClean |
/azure-mgmt-databoxedge-2.0.0b1.zip/azure-mgmt-databoxedge-2.0.0b1/azure/mgmt/databoxedge/v2019_08_01/models/_data_box_edge_management_client_enums.py |
from enum import Enum
from azure.core import CaseInsensitiveEnumMeta
class AccountType(str, Enum, metaclass=CaseInsensitiveEnumMeta):
"""Type of storage accessed on the storage account."""
GENERAL_PURPOSE_STORAGE = "GeneralPurposeStorage"
BLOB_STORAGE = "BlobStorage"
class AlertSeverity(str, Enum, met... | PypiClean |
/armory_testbed-0.18.1-py3-none-any.whl/armory/baseline_models/pytorch/carla_multimodality_object_detection_frcnn.py | from collections import OrderedDict
from typing import Optional
from art.estimators.object_detection import PyTorchFasterRCNN
import torch
from torchvision.models.detection.backbone_utils import resnet_fpn_backbone
from torchvision.models.detection.faster_rcnn import FasterRCNN
DEVICE = torch.device("cuda" if torch.c... | PypiClean |
/fds.sdk.BondsAPIforDigitalPortals-0.10.2-py3-none-any.whl/fds/sdk/BondsAPIforDigitalPortals/model/inline_response2003_instrument_trading_volume.py | import re # noqa: F401
import sys # noqa: F401
from fds.sdk.BondsAPIforDigitalPortals.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 |
/baiduads_sdk_auto-2023.1.0-py3-none-any.whl/baiduads/platorderbusinessquery/model/plat_order_express_info_request.py | import re # noqa: F401
import sys # noqa: F401
from baiduads.model_utils import ( # noqa: F401
ApiTypeError,
ModelComposed,
ModelNormal,
ModelSimple,
cached_property,
change_keys_js_to_python,
convert_js_args_to_python_args,
date,
datetime,
file_type,
none_type,
valid... | PypiClean |
/terrascript_aws-1.0.5.tar.gz/terrascript_aws-1.0.5/src/terrascript_aws/ec2/ds_instance.py | import terrascript.core as core
@core.schema
class MaintenanceOptions(core.Schema):
auto_recovery: str | core.StringOut = core.attr(str, computed=True)
def __init__(
self,
*,
auto_recovery: str | core.StringOut,
):
super().__init__(
args=MaintenanceOptions.Arg... | PypiClean |
/fds.sdk.WatchlistAPIforDigitalPortals-0.9.5-py3-none-any.whl/fds/sdk/WatchlistAPIforDigitalPortals/model/inline_response2001_data.py | import re # noqa: F401
import sys # noqa: F401
from fds.sdk.WatchlistAPIforDigitalPortals.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_t... | PypiClean |
/djangocms-blog-2.0.2.tar.gz/djangocms-blog-2.0.2/README.rst | ==============
djangocms-blog
==============
|Gitter| |PyPiVersion| |PyVersion| |GAStatus| |TestCoverage| |CodeClimate| |License|
django CMS blog application - Support for multilingual posts, placeholders, social network meta tags and configurable apphooks.
Supported Django versions:
* Django 3.2 - 4.2
Supported d... | PypiClean |
/oink-cli-0.3.2.tar.gz/oink-cli-0.3.2/oink/router.py | from __future__ import print_function
from .colorize import colorize
# Commands stored via register function.
commands = []
# The number of padding between commands and help text
# This is determined by keeping track of the longest command string
print_padding = 0
def register(command, help_text, handler):
'''... | PypiClean |
/xadrpy-0.6.3.tar.gz/xadrpy-0.6.3/src/ckeditor/static/ckeditor/ckeditor/plugins/docprops/dialogs/docprops.js | /*
Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.dialog.add('docProps',function(a){var b=a.lang.docprops,c=a.lang.common,d={};function e(n,o){var p=function(){q(this);o(this,this._.parentDialog);},q=function(s){s.... | PypiClean |
/Firefly_III_API_Client-2.0.5.0-py3-none-any.whl/firefly_iii_client/paths/v1_attachments_id_download/get.py | from dataclasses import dataclass
import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
from firefly_iii_client import api_client, exceptions
from datetime import date, datetime # noqa: F401
import decimal # noqa: F401
import functools # noqa: F401
import io # noqa: F401
import re... | PypiClean |
/pyblock3_general-0.2.1-cp39-cp39-macosx_10_15_x86_64.whl/pyblock3/algorithms/core.py | import numpy as np
import pyblock3.algebra.funcs as pbalg
from enum import Enum, auto
def fmt_size(i, suffix='B'):
if i < 1000:
return "%d %s" % (i, suffix)
else:
a = 1024
for pf in "KMGTPEZY":
p = 2
for k in [10, 100, 1000]:
if i < k * a:
... | PypiClean |
/interpret_community-0.30.0-py3-none-any.whl/interpret_community/common/blackbox_explainer.py | from functools import wraps
import numpy as np
from ml_wrappers import DatasetWrapper
from scipy.sparse import csr_matrix, issparse, isspmatrix_csr
from .._internal.raw_explain.raw_explain_utils import \
get_datamapper_and_transformed_data
from .aggregate import init_aggregator_decorator
from .base_explainer impo... | PypiClean |
/tpqtlib-0.0.25.tar.gz/tpqtlib-0.0.25/tpQtLib/core/pixmap.py | from __future__ import print_function, division, absolute_import
from Qt.QtCore import *
from Qt.QtGui import *
from tpQtLib.core import color
class Pixmap(QPixmap, object):
def __init__(self, *args):
super(Pixmap, self).__init__(*args)
self._color = None
def set_color(self, new_color):
... | PypiClean |
/ebrains_drive-0.5.1-py3-none-any.whl/ebrains_drive/bucket.py | from typing import Iterable
import requests
from ebrains_drive.exceptions import DoesNotExist, InvalidParameter
from ebrains_drive.files import DataproxyFile
from ebrains_drive.utils import on_401_raise_unauthorized
class Bucket(object):
LIMIT = 100
"""
A dataproxy bucket
n.b. for a dataset bucket, r... | PypiClean |
/enough-2.2.35.tar.gz/enough-2.2.35/playbooks/debops/docs/ansible/roles/debops_legacy/defaults-detailed.rst | .. Copyright (C) 2018 Maciej Delmanowski <drybjed@gmail.com>
.. Copyright (C) 2018 DebOps <https://debops.org/>
.. SPDX-License-Identifier: GPL-3.0-only
Default variable details
========================
Some of ``debops.debops_legacy`` default variables have more extensive configuration
than simple strings or lists, ... | PypiClean |
/catsim-polytomous-0.0.1.tar.gz/catsim-polytomous-0.0.1/src/catsim/simulation.py | import time
from abc import ABCMeta, abstractmethod
from typing import List, Optional, Union
import numpy
import tqdm
from . import cat, irt
class Simulable(metaclass=ABCMeta):
"""Base class representing one of the Simulator components that will receive a reference back to it."""
def __init__(self):
... | PypiClean |
/vaex_astro-0.9.3-py3-none-any.whl/vaex/astro/export.py | __author__ = 'maartenbreddels'
import os
import numpy as np
import logging
import vaex
import vaex.utils
import vaex.execution
import vaex.export
import vaex.hdf5.dataset
max_length = int(1e5)
on_rtd = os.environ.get('READTHEDOCS', None) == 'True'
try:
import h5py
except:
if not on_rtd:
raise
logger ... | PypiClean |
/django-iprestrict-proxytrust-1.3.2.tar.gz/django-iprestrict-proxytrust-1.3.2/docs/index.rst | .. Django IPRestrict documentation master file, created by
sphinx-quickstart on Wed Aug 15 11:50:03 2012.
You can adapt this file completely to your liking, but it should at least
contain the root `toctree` directive.
Django IP Restrict
==================
Django IPRestrict is an app that can be used to restr... | PypiClean |
/sdss-opscore-3.0.4.tar.gz/sdss-opscore-3.0.4/python/opscore/RO/MathUtil.py | __all__ = ["sind", "cosd", "tand", "asind", "acosd", "atand", "atan2d", "compareFloats", "checkRange",
"nint", "sign", "logEq", "logNE", "rot2D", "rThetaFromXY", "xyFromRTheta", "vecMag", "wrapCtr", "wrapPos"]
import math
import numpy
from opscore.RO.PhysConst import RadPerDeg
import opscore.RO.SysConst
DegPerRad... | PypiClean |
/wasp-launcher-0.0.2.tar.gz/wasp-launcher-0.0.2/wasp_launcher/static/angular/1.6.1/i18n/angular-locale_haw.js | 'use strict';
angular.module("ngLocale", [], ["$provide", function($provide) {
var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"};
$provide.value("$locale", {
"DATETIME_FORMATS": {
"AMPMS": [
"AM",
"PM"
],
"DAY": [
"L\u0101pule",
... | PypiClean |
/imcsdk_ecoen66-0.9.20.tar.gz/imcsdk_ecoen66-0.9.20/imcsdk/mometa/aaa/AaaUserSSHKey.py |
from ...imcmo import ManagedObject
from ...imccoremeta import MoPropertyMeta, MoMeta
from ...imcmeta import VersionMeta
class AaaUserSSHKeyConsts:
ADMIN_ACTION_CLEAR = "clear"
ADMIN_ACTION_CONTENT_KEY_UPLOAD = "content-key-upload"
ADMIN_ACTION_REMOTE_KEY_UPLOAD = "remote-key-upload"
PROTOCOL_FTP = "f... | PypiClean |
/fastly-3.0.0.tar.gz/fastly-3.0.0/docs/VersionResponseAllOf.md | # VersionResponseAllOf
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**service_id** | **str** | | [optional] [readonly]
**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value mu... | PypiClean |
/meerkat-ml-0.4.11.tar.gz/meerkat-ml-0.4.11/meerkat/interactive/app/src/lib/component/plotly/scatter_geo/__init__.py | from typing import List, Union
from meerkat import env
from meerkat.dataframe import DataFrame
from meerkat.interactive.endpoint import Endpoint, EndpointProperty
from meerkat.tools.lazy_loader import LazyLoader
from meerkat.tools.utils import classproperty, requires
from ...abstract import Component
px = LazyLoader... | PypiClean |
/PySide2_Material_Widgets-0.9.10-py3-none-any.whl/qmaterialwidgets/components/widgets/progress_bar.py | from math import floor
from PySide2.QtCore import (QEasingCurve, Qt, QPropertyAnimation, Property,
QParallelAnimationGroup, QSequentialAnimationGroup, QLocale)
from PySide2.QtGui import QPainter, QColor
from PySide2.QtWidgets import QProgressBar
from ...common.style_sheet import themeColor, ... | PypiClean |
/cb_imaginAIry-0.1.6-py3-none-any.whl/imaginairy/roi_utils.py | import logging
logger = logging.getLogger(__name__)
def square_roi_coordinate(roi, max_width, max_height, best_effort=False):
"""Given a region of interest, returns a square region of interest."""
x1, y1, x2, y2 = roi
x1, y1, x2, y2 = int(round(x1)), int(round(y1)), int(round(x2)), int(round(y2))
roi... | PypiClean |
/esi_client-0.1.0a1.tar.gz/esi_client-0.1.0a1/esi_client/model/get_characters_character_id_fittings_item.py | import re # noqa: F401
import sys # noqa: F401
from esi_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_type,
val... | PypiClean |
/mesh_generator-1.1.9.tar.gz/mesh_generator-1.1.9/mesh_generator/bin/plot_mesh_res_file.py | import numpy as np
from matplotlib import pyplot as plt
import time
import os
def plot_mesh_res(input_mesh: dict, adjusted_mesh: dict, save_plot: bool, mesh_res_file_name: str,
show_plot: bool, label: str, save_plot_path: str, plot_file_name: str):
"""
plot the mesh points in tmp_mesh_r.d... | PypiClean |
/wafer-debconf-0.11.10.tar.gz/wafer-debconf-0.11.10/debconf/static/vendor/popper.js/dist/umd/popper-utils.min.js | (function(global,factory){typeof exports==="object"&&typeof module!=="undefined"?factory(exports):typeof define==="function"&&define.amd?define(["exports"],factory):(global=typeof globalThis!=="undefined"?globalThis:global||self,factory(global.PopperUtils={}))})(this,(function(exports){"use strict";function getStyleCom... | PypiClean |
/cord.py-1.27a0.tar.gz/cord.py-1.27a0/cord/http.py | from __future__ import annotations
import asyncio
import json
import logging
import sys
from typing import (
Any,
ClassVar,
Coroutine,
Dict,
Iterable,
List,
Optional,
Sequence,
TYPE_CHECKING,
Tuple,
Type,
TypeVar,
Union,
)
from urllib.parse import quote as _uriquote
... | PypiClean |
/piex-0.2.0.tar.gz/piex-0.2.0/docs/installation.rst | .. highlight:: shell
============
Installation
============
Stable release
--------------
To install D3M Pipeline Explorer, run this command in your terminal:
.. code-block:: console
$ pip install piex
This is the preferred method to install D3M Pipeline Explorer, as it will always install the most recent st... | PypiClean |
/bambu-blog-3.3.1.tar.gz/bambu-blog-3.3.1/bambu_blog/feeds.py | from bambu_blog.helpers import view_filter, title_parts
from bambu_blog.models import Category
from django.conf import settings
from django.contrib.sites.shortcuts import get_current_site
from django.contrib.syndication.views import Feed
from django.core.paginator import Paginator, PageNotAnInteger, EmptyPage
from djan... | PypiClean |
/spotifyyy_dl-2021.5.25.0-py3-none-any.whl/spotifyyy_dl/lang/spanish.py | class LangSpanish(object):
SETTING = "AJUSTES"
VALUE = "VALORES"
SETTING_DOWNLOAD_PATH = "Ruta de descarga"
SETTING_ONLY_M4A = "Convertir mp4 a m4a"
SETTING_ADD_EXPLICIT_TAG = "Agregar etiqueta de 'Contenido explícito'"
SETTING_ADD_HYPHEN = "Agregar guión"
SETTING_ADD_YEAR = "Agregar año en ... | PypiClean |
/pulumiverse_aquasec-0.8.25.tar.gz/pulumiverse_aquasec-0.8.25/pulumiverse_aquasec/function_runtime_policy.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__ = ['FunctionRuntimePolicyArgs', 'FunctionRuntimePolicy']
@pulumi.input_type
class FunctionRuntimePolicyArg... | PypiClean |
/mkdocs-newsletter-1.0.1.tar.gz/mkdocs-newsletter-1.0.1/src/mkdocs_newsletter/entrypoints/mkdocs_plugin.py |
import os
from git import Repo # type: ignore
from mkdocs.config.base import Config
from mkdocs.plugins import BasePlugin
from ..services.git import semantic_changes
from ..services.nav import build_nav
from ..services.newsletter import (
add_change_categories,
create_newsletter_landing_page,
create_new... | PypiClean |
/tensorflow_cpu-2.14.0rc1-cp311-cp311-macosx_10_15_x86_64.whl/tensorflow/python/checkpoint/save_util_v1.py | import collections
from tensorflow.core.protobuf import trackable_object_graph_pb2
from tensorflow.python.checkpoint import saveable_compat
from tensorflow.python.checkpoint import util
from tensorflow.python.framework import constant_op
from tensorflow.python.framework import dtypes
from tensorflow.python.framework i... | PypiClean |
/SQLAlchemy-2.0.20.tar.gz/SQLAlchemy-2.0.20/examples/performance/large_resultsets.py | from sqlalchemy import Column
from sqlalchemy import create_engine
from sqlalchemy import Integer
from sqlalchemy import String
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy.orm import Bundle
from sqlalchemy.orm import Session
from . import Profiler
Base = declarative_base()
engine = None
... | PypiClean |
/j01.editor-0.5.4.tar.gz/j01.editor-0.5.4/bootstrap.py | import os
import shutil
import sys
import tempfile
from optparse import OptionParser
__version__ = '2015-07-01'
# See zc.buildout's changelog if this version is up to date.
tmpeggs = tempfile.mkdtemp(prefix='bootstrap-')
usage = '''\
[DESIRED PYTHON FOR BUILDOUT] bootstrap.py [options]
Bootstraps a buildout-based ... | PypiClean |
/django-mailgun-mime-0.1.7.tar.gz/django-mailgun-mime-0.1.7/django_mailgun_mime/backends.py | import requests
from django.core.mail.backends.base import BaseEmailBackend
from django.core.mail.message import sanitize_address
from django.conf import settings
class MailgunMIMEError(Exception):
pass
class MailgunMIMEBackend(BaseEmailBackend):
M_HEADERS = (
'o:tag',
'o:campaign',
... | PypiClean |
/uca-apollo-1.0.tar.gz/uca-apollo-1.0/apollo/model/case_count_analytics_by_case_type_group_response.py | import re # noqa: F401
import sys # noqa: F401
from apollo.model_utils import ( # noqa: F401
ApiTypeError,
ModelComposed,
ModelNormal,
ModelSimple,
cached_property,
change_keys_js_to_python,
convert_js_args_to_python_args,
date,
datetime,
file_type,
none_type,
validat... | PypiClean |
/localtodo-1.0.tar.gz/localtodo-1.0/README.rst | localtodo
=========
.gitignore local todo files, but sync them through Dropbox.
What this is
------------
I like to use a ``LOCAL_TODO`` file for each of my projects as a
whiteboard for ideas, notes on what is currently being worked on
(useful when coming back to a project after some time), and things
in that vein.... | PypiClean |
/masspy-0.1.7-py3-none-any.whl/mass/core/units.py | r"""Unit and UnitDefinition implementation based on SBML specifications.
The :mod:`~.units` module contains the :class:`Unit` and
:class:`UnitDefinition` classes based on the implementation of units in
`SBML <https://sbml.org/>`_.
Note that :mod:`mass` does not support automatic unit tracking to ensure
unit consisten... | PypiClean |
/zipline_tej-0.0.48-cp38-cp38-win_amd64.whl/zipline/pipeline/loaders/synthetic.py | from interface import implements
from numpy import (
arange,
array,
eye,
float64,
full,
iinfo,
nan,
uint32,
)
from numpy.random import RandomState
from pandas import DataFrame, Timestamp
from sqlite3 import connect as sqlite3_connect
from .base import PipelineLoader
from .frame import D... | PypiClean |
/cchenutils-0.6.6-py3-none-any.whl/wanghong/video/prep/ts2wav.py |
import os
from functools import partial
from glob import glob
import timeout_decorator
from tqdm import tqdm
from utils import call, touch, mmap
def setup(src_dir, dst_dir):
print('Building structure for ts2wav...')
for uid in tqdm(os.listdir(src_dir)):
for vfile in os.listdir(os.path.join(src_dir... | PypiClean |
/pulumi_azure_native-2.5.1a1693590910.tar.gz/pulumi_azure_native-2.5.1a1693590910/pulumi_azure_native/securityinsights/v20230601preview/get_mtp_data_connector.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__ = [
'GetMTPDataConnectorResult',
'AwaitableGetMTPDataConnectorResult',
'get_mtp_data_connector',
'get_mtp_data_c... | PypiClean |
/pygeoip-0.3.2.tar.gz/pygeoip-0.3.2/LICENSE.md | # GNU LESSER GENERAL PUBLIC LICENSE
_Version 3, 29 June 2007_
_Copyright (C) 2007 [Free Software Foundation, Inc](http://fsf.org/).
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed._
This version of the GNU Lesser General Public License incorporate... | PypiClean |
/pulumi_azure_nextgen-0.6.2a1613157620.tar.gz/pulumi_azure_nextgen-0.6.2a1613157620/pulumi_azure_nextgen/documentdb/latest/mongo_db_resource_mongo_db_database.py |
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union
from ... import _utilities, _tables
from . import outputs
from ._inputs import *
__all__ = ['MongoDBResourceMongoDBDatabase']
warnings.warn("""The 'latest' version is deprecated. Please migrate to the resou... | PypiClean |
/bitrise_reports-0.2.0-py3-none-any.whl/bitrise_reports-0.2.0.dist-info/LICENSE.md | # The MIT License (MIT)
Copyright (c) 2021 Dotanuki Labs
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, ... | PypiClean |
/colour_science-0.4.3.tar.gz/colour_science-0.4.3/colour/models/rgb/datasets/filmlight_e_gamut.py | from __future__ import annotations
import numpy as np
from colour.colorimetry import CCS_ILLUMINANTS
from colour.hints import NDArrayFloat
from colour.models.rgb import (
RGB_Colourspace,
log_encoding_FilmLightTLog,
log_decoding_FilmLightTLog,
normalised_primary_matrix,
)
__author__ = "Colour Develop... | PypiClean |
/pymars-0.10.0a1-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.whl/mars/learn/proxima/core.py |
import numpy as np
try:
import pyproxima2 as proxima
except ImportError: # pragma: no cover
proxima = None
from ... import tensor as mt
from ...tensor.merge import TensorConcatenate
from ...tensor.indexing import TensorSlice
available_numpy_dtypes = [
np.dtype(np.float16),
np.dtype(np.float32),
... | PypiClean |
/TethysCluster-0.1.6.tar.gz/TethysCluster-0.1.6/docs/sphinx/plugins/sge.rst | .. _sge-plugin:
######################
Sun Grid Engine Plugin
######################
The Sun Grid Engine queuing system is useful when you have a lot of tasks to
execute and want to distribute the tasks over a cluster of machines. For
example, you might need to run hundreds of simulations/experiments with varying
para... | PypiClean |
/NIA_image_2latex-1.0-py3-none-any.whl/dataset/scraping.py | import os
import sys
import random
from tqdm import tqdm
import html
import requests
import re
import tempfile
try:
from arxiv import *
from extract_latex import *
except:
from dataset.arxiv import *
from dataset.extract_latex import *
wikilinks = re.compile(r'href="/wiki/(.*?)"')
htmltags = re.compile... | PypiClean |
/bika.lims-3.2.1rc1.tar.gz/bika.lims-3.2.1rc1/bika/lims/utils/samplepartition.py |
from bika.lims.utils import tmpID
from Products.CMFPlone.utils import _createObjectByType
from magnitude import mg
def compare_containers(a, b):
a_capacity = a.getCapacity().lower().split(" ", 1)
b_capacity = b.getCapacity().lower().split(" ", 1)
a_magnitude = mg(float(a_capacity[0]), a_capacity[1])
... | PypiClean |
/django-model-settings-0.3.1.tar.gz/django-model-settings-0.3.1/model_settings/south_migrations/0002_auto__add_image.py | from south.utils import datetime_utils as datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding model 'Image'
db.create_table(u'model_settings_image', (
(u'setting_ptr', se... | PypiClean |
/batch_automation-0.0.3-py3-none-any.whl/batch_automation/deadline/api/Slaves.py | from __future__ import absolute_import
from .ConnectionProperty import ConnectionProperty
from .DeadlineUtility import ArrayToCommaSeparatedString
import json
class Slaves:
"""
Class used by DeadlineCon to send Worker requests, as well as a few Pool and Group requests.
Stores the address of the Web... | PypiClean |
/pytest-spec-3.2.0rc1.tar.gz/pytest-spec-3.2.0rc1/pytest_spec/plugin.py | import pytest
from .replacer import logstart_replacer, report_replacer, modifyitems_replacer
def pytest_addoption(parser):
group = parser.getgroup('general')
group.addoption(
'--spec',
action='store_true',
dest='spec',
help='Print test result in specification format'
)
... | PypiClean |
/transquest-1.1.1.tar.gz/transquest-1.1.1/examples/sentence_level/wmt_2020/si_en/siamesetransquest.py | import logging
import os
import shutil
import numpy as np
from sklearn.model_selection import train_test_split
from examples.sentence_level.wmt_2020.common.util.draw import draw_scatterplot, print_stat
from examples.sentence_level.wmt_2020.common.util.normalizer import fit, un_fit
from examples.sentence_level.wmt_202... | PypiClean |
/spotinst-sdk-beta2-2.1.2.tar.gz/spotinst-sdk-beta2-2.1.2/spotinst_sdk2/client.py | import json
import os
import re
import requests
import yaml
import logging
VAR_SPOTINST_LOG_LEVEL = 'SPOTINST_LOG_LEVEL'
version = {}
with open(os.path.join(os.path.dirname(__file__), "./version.py")) as fp:
exec(fp.read(), version)
_SpotinstClient__spotinst_sdk_python_agent_name = 'spotinst-sdk-python'
_Spotin... | PypiClean |
/dhubbard-sphinx-markdown-tables-0.1.140866.tar.gz/dhubbard-sphinx-markdown-tables-0.1.140866/README.md | [](https://cd.screwdriver.cd/pipelines/3023)
[](https://codecov.io/gh/dwighthubbard/sphinx-markdown-tables)
Note:
This is a fork of `sphinx-markdow... | PypiClean |
/minos-apigateway-common-0.0.5.tar.gz/minos-apigateway-common-0.0.5/minos/api_gateway/common/exceptions.py | from typing import (
Any,
Type,
)
class MinosException(Exception):
"""Exception class for import packages or modules"""
__slots__ = "_message"
def __init__(self, error_message: str):
self._message = error_message
def __repr__(self):
return f"{type(self).__name__}(message={re... | PypiClean |
/IngeoDash-0.1.2.tar.gz/IngeoDash-0.1.2/README.rst | IngeoDash
==================================
.. image:: https://github.com/INGEOTEC/IngeoDash/actions/workflows/test.yaml/badge.svg
:target: https://github.com/INGEOTEC/IngeoDash/actions/workflows/test.yaml
.. image:: https://coveralls.io/repos/github/INGEOTEC/IngeoDash/badge.svg?branch=develop
:target: https://co... | PypiClean |
/tornado-redis-yield-1.3.0.tar.gz/tornado-redis-yield-1.3.0/docs/websocket.rst | ``tornado.websocket`` --- Bidirectional communication to the browser
====================================================================
.. testsetup::
import tornado.websocket
.. automodule:: tornado.websocket
.. autoclass:: WebSocketHandler
Event handlers
--------------
.. automethod:: WebSocket... | PypiClean |
/bmdcluster-0.3.1.tar.gz/bmdcluster-0.3.1/README.rst | =============
Introduction
=============
.. image:: https://img.shields.io/pypi/v/bmdcluster.svg
:target: https://pypi.python.org/pypi/bmdcluster
.. image:: https://img.shields.io/travis/csprock/bmdcluster.svg
:target: https://travis-ci.org/csprock/bmdcluster
.. image:: https://readthedocs.org/proje... | PypiClean |
/mitre_stix-0.0.7.tar.gz/mitre_stix-0.0.7/mitre_stix/rules/T1190.py | import re
class mitre_rules():
def __init__(self):
self.oid = []
self.tactic = 'Initial Access'
self.tid = 'T1190'
self.name = 'Exploit Public-Facing Application'
self.description = 'The use of software, data, or commands to take advantage of a weakness in an '+\
... | PypiClean |
/portapy-0.0.1.post2-py3-none-any.whl/portapy-js/node_modules/tslint/lib/files/resolution.js | "use strict";
/**
* @license
* Copyright 2019 Palantir Technologies, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unle... | PypiClean |
/CloudReg-1.0.1-py3-none-any.whl/cloudreg/scripts/quantify_fluorescence_by_region.py | from ARA_stuff.parse_ara import *
import os
import argparse
from joblib import Parallel, delayed
import numpy as np
from cloudvolume import CloudVolume
from collections import defaultdict, Counter
from skimage import transform
from tqdm import tqdm, trange
import pandas as pd
def get_region_stats(atlas_s3_path, data... | PypiClean |
/textdescriptives-2.6.2.tar.gz/textdescriptives-2.6.2/docs/readability.md |
# Readability
The *readability* component adds the following readabiltiy metrics under the `._.readability` attribute to `Doc` objects.
* **[Gunning-Fog](https://en.wikipedia.org/wiki/Gunning_fog_index)**, is a readability index originally developed for English writing, but works for any language. The index estima... | PypiClean |
/beavr-1.0.4.tar.gz/beavr-1.0.4/README.md | # beaver
*Beaver (n) - an animal that eats logs*
`beaver` parses log files based on a given date and time range, so you don't have to
### Quick Examples
Perhaps you'd like to see the logs for your project since the last time you pushed to production last Wednesday. This can be accomplished easily with `beaver`:
```
$... | PypiClean |
/antelope_core-0.2.1.tar.gz/antelope_core-0.2.1/antelope_core/catalog/lc_catalog.py | import tempfile
from antelope.xdb_tokens import ResourceSpec
from .catalog import StaticCatalog
from ..archives import REF_QTYS, archive_from_json
from ..lc_resource import LcResource
from ..lcia_engine import DEFAULT_CONTEXTS, DEFAULT_FLOWABLES
from ..providers.xdb_client.rest_client import RestClient
import reques... | PypiClean |
/pulumi_azure_native-2.5.1a1693590910.tar.gz/pulumi_azure_native-2.5.1a1693590910/pulumi_azure_native/hybridcompute/v20221227/_inputs.py |
import copy
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from ... import _utilities
from ._enums import *
__all__ = [
'AgentUpgradeArgs',
'HybridComputePrivateLinkScopePropertiesArgs',
'IdentityArgs',
'LocationDataArgs',
'... | PypiClean |
/linkkt_end-0.2.5-py3-none-any.whl/linkkt_end/core/accessor.py | import copy
import random
import uuid
from typing import Optional
import maya
from jamboree import JamboreeNew as Jamboree
from jamboree.handlers.default.data import DataHandler
from loguru import logger
from linkkt_end import PortfolioHandler, RequirementsHandler
from linkkt_end.data import PriceGenerator
class Si... | PypiClean |
/django_ca-1.26.0-py3-none-any.whl/django_ca/management/mixins.py | import abc
import typing
from textwrap import indent
from typing import Optional
from cryptography import x509
from cryptography.hazmat.primitives.asymmetric.types import CertificateIssuerPrivateKeyTypes
from cryptography.hazmat.primitives.serialization import Encoding
from django.core.exceptions import ImproperlyCon... | PypiClean |
/msgraph-sdk-1.0.0a3.tar.gz/msgraph-sdk-1.0.0a3/msgraph/generated/admin/service_announcement/messages/archive/archive_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 |
/tahoe-lafs-1.18.0.tar.gz/tahoe-lafs-1.18.0/src/allmydata/immutable/offloaded.py | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
from future.utils import PY2
if PY2:
from future.builtins import filter, map, zip, ascii, chr, hex, input, next, oct, open, pow, round, super, bytes, dict, list, obje... | PypiClean |
/extract_msg-0.45.0.tar.gz/extract_msg-0.45.0/extract_msg/attachments/custom_att_handler/__init__.py | from __future__ import annotations
"""
Submodule designed to help with saving and using custom attachments. Custom
attachments are those follow standards not defined in the MSG documentation. Use
the function `getHandler` to get an instance of a subclass of
CustomAttachmentHandler.
CustomAttachmentHandler subclasses... | PypiClean |
/azure_mgmt_recoveryservicesbackup-6.0.0-py3-none-any.whl/azure/mgmt/recoveryservicesbackup/activestamp/aio/operations/_validate_operation_results_operations.py | from typing import Any, Callable, Dict, Optional, TypeVar
from azure.core.exceptions import (
ClientAuthenticationError,
HttpResponseError,
ResourceExistsError,
ResourceNotFoundError,
ResourceNotModifiedError,
map_error,
)
from azure.core.pipeline import PipelineResponse
from azure.core.pipelin... | PypiClean |
/open_petro_elastic-1.1.0.tar.gz/open_petro_elastic-1.1.0/src/open_petro_elastic/material/batzle_wang/ideal_gas.py | from numpy import sqrt
from scipy.constants import gas_constant
from open_petro_elastic.material.fluid import fluid_material as fluid
AIR_WEIGHT = 28.8 # g/mol
def molecular_weight(gas_gravity):
"""
calculates molecluar weight of a gas from gas gravity.
:param gas_gravity: molar mass of gas relative to... | PypiClean |
/olive-oil-ml-0.11.tar.gz/olive-oil-ml-0.11/oil/model_trainers/trainer.py | import torch, dill
from torch import optim
from ..logging.lazyLogger import LazyLogger
from ..utils.utils import Eval, Named
from ..utils.mytqdm import tqdm
from ..tuning.study import guess_metric_sign
import copy, os, random
import glob
import numpy as np
from natsort import natsorted
class Trainer(object,metaclass=N... | PypiClean |
/kaggle-environments-1.14.1.tar.gz/kaggle-environments-1.14.1/kaggle_environments/envs/kore_fleets/starter_bots/ts/kore/ShipyardAction.ts | export class ShipyardAction {
public static readonly SPAWN = "SPAWN";
public static readonly LAUNCH = "LAUNCH";
public readonly actionType: string;
public readonly shipCount: number;
public readonly flightPlan: string;
public static spawnShips(shipCount: number): ShipyardAction {
return... | PypiClean |
/samapper-0.3.2.tar.gz/samapper-0.3.2/sam/static/js/timerange.js | function dateConverter() {
"use strict";
var cnv = {};
cnv.to = function(val) {
var date = new Date(val * 1000);
var year = date.getFullYear();
var month = date.getMonth()+1;
var day = date.getDate();
var hour = date.getHours();
var minute = date.... | PypiClean |
/autoneuro_pypi-1.0.0.tar.gz/autoneuro_pypi-1.0.0/autoneuro_pypi/dataPreprocessing/preProcess.py | import pandas as pd
import numpy as np
from sklearn.decomposition import PCA
from imblearn.over_sampling import RandomOverSampler, SMOTE
from imblearn.under_sampling import RandomUnderSampler
from sklearn.feature_selection import VarianceThreshold
from sklearn.preprocessing import StandardScaler
from sklearn.preprocess... | PypiClean |
/smart_home_tng-2023.1.3.tar.gz/smart_home_tng-2023.1.3/nodejs/frontend/src/panels/lovelace/editor/config-elements/hui-area-card-editor.ts | import { html, LitElement, TemplateResult } from "lit";
import { customElement, property, state } from "lit/decorators";
import { assert, assign, boolean, object, optional, string } from "superstruct";
import { fireEvent } from "../../../../common/dom/fire_event";
import "../../../../components/ha-form/ha-form";
import... | PypiClean |
/puput-1.2.0.tar.gz/puput-1.2.0/README.rst | Puput
=====
.. image:: https://img.shields.io/pypi/v/puput.svg
:target: https://pypi.python.org/pypi/puput/
.. image:: https://readthedocs.org/projects/puput/badge/?version=latest
:target: https://readthedocs.org/projects/puput/?badge=latest
.. image:: https://img.shields.io/pypi/pyversions/puput.svg
:ta... | PypiClean |
/django-mobileu-1.1.3.tar.gz/django-mobileu-1.1.3/content/migrations/0002_auto__chg_field_learningchapter_name__chg_field_learningchapter_descri.py | from south.utils import datetime_utils as datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Changing field 'LearningChapter.name'
db.alter_column(u'content_learningchapter', 'name', self... | PypiClean |
/ase_koopmans-0.1.4-py3-none-any.whl/ase/ga/data.py | import os
from ase import Atoms
from ase.ga import get_raw_score
from ase.ga import set_parametrization, set_neighbor_list
import ase.db
def split_description(desc):
""" Utility method for string splitting. """
d = desc.split(':')
assert len(d) == 2, desc
return d[0], d[1]
def test_raw_score(atoms):... | PypiClean |
/ka-lite-0.17.6b4.tar.gz/ka-lite-0.17.6b4/kalite/distributed/static/js/distributed/perseus/ke/local-only/localeplanet/icu.ta-IN.js | (function() {
var dfs = {"am_pm":["முற்பகல்","பிற்பகல்"],"day_name":["ஞாயிறு","திங்கள்","செவ்வாய்","புதன்","வியாழன்","வெள்ளி","சனி"],"day_short":["ஞா","தி","செ","பு","வி","வெ","ச"],"era":["கி.மு.","கி.பி."],"era_name":["கிறிஸ்துவுக்கு முன்","அனோ டோமினி"],"month_name":["ஜனவரி","பிப்ரவரி","மார்ச்","ஏப்ரல்","மே","ஜூன்",... | PypiClean |
/azure-mgmt-databoxedge-2.0.0b1.zip/azure-mgmt-databoxedge-2.0.0b1/azure/mgmt/databoxedge/v2020_09_01_preview/aio/operations/_operations.py | import sys
from typing import Any, AsyncIterable, Callable, Dict, Optional, TypeVar
import urllib.parse
from azure.core.async_paging import AsyncItemPaged, AsyncList
from azure.core.exceptions import (
ClientAuthenticationError,
HttpResponseError,
ResourceExistsError,
ResourceNotFoundError,
Resourc... | PypiClean |
/OpenCobolIDE-4.7.6.tar.gz/OpenCobolIDE-4.7.6/open_cobol_ide/extlibs/pygments/lexers/_stan_builtins.py | KEYWORDS = (
'else',
'for',
'if',
'in',
'increment_log_prob',
'integrate_ode',
'lp__',
'print',
'reject',
'return',
'while'
)
TYPES = (
'cholesky_factor_corr',
'cholesky_factor_cov',
'corr_matrix',
'cov_matrix',
'int',
'matrix',
'ordered',
'po... | PypiClean |
/pulumi_azure_nextgen-0.6.2a1613157620.tar.gz/pulumi_azure_nextgen-0.6.2a1613157620/pulumi_azure_nextgen/dbformysql/get_server_administrator.py |
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union
from .. import _utilities, _tables
__all__ = [
'GetServerAdministratorResult',
'AwaitableGetServerAdministratorResult',
'get_server_administrator',
]
@pulumi.output_type
class GetServerAdministr... | PypiClean |
/alfred3_scheduler-0.1.0a1.tar.gz/alfred3_scheduler-0.1.0a1/src/alfred3_scheduler/scheduler.py |
import base64
from email.message import EmailMessage
import json
import time
import typing as t
from dataclasses import asdict, dataclass, field
from datetime import datetime
from logging import Logger
from traceback import format_exception
from uuid import uuid4
from flask import url_for
from pymongo import ReturnDo... | PypiClean |
/langchain_xfyun-0.0.275b2-py3-none-any.whl/langchain_xfyun/embeddings/llamacpp.py | from typing import Any, Dict, List, Optional
from langchain_xfyun.embeddings.base import Embeddings
from langchain_xfyun.pydantic_v1 import BaseModel, Extra, Field, root_validator
class LlamaCppEmbeddings(BaseModel, Embeddings):
"""llama.cpp embedding models.
To use, you should have the llama-cpp-python lib... | PypiClean |
/django-ra-erp-1.3.1.tar.gz/django-ra-erp-1.3.1/ra/static/adminlte/plugins/moment/locale/km.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 |
/django-article-0.1.2.tar.gz/django-article-0.1.2/django_article/static/lib/js/vue-lazyload-1.2.3.js | !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):e.VueLazyload=t()}(this,function(){"use strict";function e(e){return e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}function t(e){e=e||{};var t=argu... | PypiClean |
/dragonfly-uwg-0.5.390.tar.gz/dragonfly-uwg-0.5.390/dragonfly_uwg/writer.py | from .simulation.parameter import UWGSimulationParameter
def model_to_uwg(model, epw_file, simulation_parameter=None):
"""Create a fully simulate-able uwg dictionary from a Model.
Args:
model: A dragonfly Model for which an URBANopt feature geoJSON and corresponding
honeybee Model JSONs w... | PypiClean |
/py-pure-client-1.38.0.tar.gz/py-pure-client-1.38.0/pypureclient/flasharray/FA_2_25/models/host_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 HostPost(object):
"""
Attributes:
swagger_types (dict): The key is attribute name
and the value is attri... | PypiClean |
/ase_core-3.23.0b1.post2-py3-none-any.whl/ase/md/langevin.py |
import numpy as np
from ase.md.md import MolecularDynamics
from ase.parallel import world, DummyMPI
from ase import units
class Langevin(MolecularDynamics):
"""Langevin (constant N, V, T) molecular dynamics."""
# Helps Asap doing the right thing. Increment when changing stuff:
_lgv_version = 5
de... | PypiClean |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.