id stringlengths 1 8 | text stringlengths 6 1.05M | dataset_id stringclasses 1
value |
|---|---|---|
/ase_koopmans-0.1.4-py3-none-any.whl/ase/io/lammpsrun.py | import gzip
import struct
from os.path import splitext
from collections import deque
import numpy as np
from ase.atoms import Atoms
from ase.quaternions import Quaternions
from ase.calculators.singlepoint import SinglePointCalculator
from ase.parallel import paropen
from ase.calculators.lammps import convert
def rea... | PypiClean |
/lmql-0.7b3.tar.gz/lmql-0.7b3/docs/source/blog/release-0.0.5.md | metadata:release: 2023-04-17 13:30:00 +0000
metadata:authors: team
# LMQL Release 0.0.5
Today we are releasing version 0.0.5 of LMQL. This release focuses on stability and performance improvements. For a detailed list of changes, please see below. We are particularly excited about the first community contributions th... | PypiClean |
/solver/learning/rl_base/buffer.py |
import torch
class RolloutBuffer:
def __init__(self, max_size=None):
self.curr_idx = 0
self.max_size = max_size
self.basic_items = ['observations', 'actions', 'rewards', 'dones', 'next_observations', 'logprobs', 'values']
self.calc_items = ['advantages', 'returns']
... | PypiClean |
/django-admin-star-1.0.4.tar.gz/django-admin-star-1.0.4/admin_star/static/vendors/ace-builds/src-min/mode-kotlin.js | define("ace/mode/kotlin_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(e,t,n){"use strict";var r=e("../lib/oop"),i=e("./text_highlight_rules").TextHighlightRules,s=function(){this.$rules={start:[{include:"#comments"},{token:["text","keyword.other.kotlin","text","e... | PypiClean |
/agavedb-0.4.2.tar.gz/agavedb-0.4.2/README.rst | =======
AgaveDB
=======
.. image:: https://badge.fury.io/py/agavedb.svg
:target: http://badge.fury.io/py/agavedb
.. image:: https://travis-ci.org/TACC/agavedb.svg?branch=master
:target: https://travis-ci.org/TACC/agavedb
.. image:: https://readthedocs.org/projects/agavedb/badge/?version=latest
:target: h... | PypiClean |
/widgyts-0.5.1.tar.gz/widgyts-0.5.1/README.md | widgyts
===============================
[](https://widgyts.readthedocs.io/en/latest/?badge=latest)
[](https://codecov.io/gh/yt-project/widgyts)
[![sta... | PypiClean |
/onegov.winterthur-0.7.5.tar.gz/onegov.winterthur-0.7.5/onegov/winterthur/roadwork.py | import isodate
import pycurl
import sedate
from cached_property import cached_property
from datetime import datetime, timedelta
from io import BytesIO
from onegov.core.custom import json
from pathlib import Path
from purl import URL
class RoadworkError(Exception):
pass
class RoadworkConnectionError(RoadworkErr... | PypiClean |
/e2eAIOK_denas-1.1.1b2023042803-py3-none-any.whl/e2eAIOK/DeNas/cv/model_builder_denas_cv.py | from e2eAIOK.DeNas.utils import decode_arch_tuple
from e2eAIOK.DeNas.cv.third_party.ZenNet import DeMainNet
from e2eAIOK.common.trainer.model.model_builder_cv import ModelBuilderCV
from e2eAIOK.DeNas.cv.supernet_transformer import Vision_TransformerSuper
class ModelBuilderCVDeNas(ModelBuilderCV):
def __init__(self... | PypiClean |
/escapepod_sdk-1.0.0.tar.gz/escapepod_sdk-1.0.0/escapepod_sdk/messaging/cybervector_proxy_grpc.py | import grpc
from . import cybervector_proxy_pb2
class CyberVectorProxyServiceStub(object):
"""The grpc-defined connection between the SDK and Cyb3rVector EscapePod Extension Proxy.
"""
def __init__(self, channel):
"""Constructor.
Args:
channel: A grpc.Channel.
"""
self.GetStatus = channe... | PypiClean |
/weixinpy-0.0.11.tar.gz/weixinpy-0.0.11/wechatpy/pay/api/coupon.py | from __future__ import absolute_import, unicode_literals
import random
from datetime import datetime
from wechatpy.pay.base import BaseWeChatPayAPI
class WeChatCoupon(BaseWeChatPayAPI):
def send(self, user_id, stock_id, op_user_id=None, device_info=None,
out_trade_no=None):
"""
发放代金... | PypiClean |
/aws-sam-cli-1.96.0.tar.gz/aws-sam-cli-1.96.0/samcli/lib/utils/version_checker.py | import logging
from datetime import datetime, timedelta
from functools import wraps
import click
from requests import get
from samcli import __version__ as installed_version
from samcli.cli.global_config import GlobalConfig
LOG = logging.getLogger(__name__)
AWS_SAM_CLI_PYPI_ENDPOINT = "https://pypi.org/pypi/aws-sam... | PypiClean |
/ressources/lib/node_modules/highcharts/indicators/cmf.src.js | 'use strict';
(function (factory) {
if (typeof module === 'object' && module.exports) {
module.exports = factory;
} else if (typeof define === 'function' && define.amd) {
define(function () {
return factory;
});
} else {
factory(Highcharts);
}
}(function (Highcharts) {
(function (H) {
/**
* (c) 201... | PypiClean |
/metinanaliz-1.1.6.tar.gz/metinanaliz-1.1.6/analiz/analiz.py | import re
import math
import sys
import os
sesliHarfler = 'AaÂâEeIıİiÎîOoÖöUuÜü'
heceGroupları = {}
def analiz(dosyaAdi, icerik):
icerik = icerik.replace('’','')
toplamCumleSayısı = 0
toplamKelimeSayısı = 0
toplamHeceSayısı = 0
for cumle in re.split(r'[(.+)…\?!—][\s\n]', icerik):
... | PypiClean |
/msgraph_beta_sdk-1.0.0a9-py3-none-any.whl/msgraph/generated/models/self_signed_certificate.py | from __future__ import annotations
from datetime import datetime
from kiota_abstractions.serialization import AdditionalDataHolder, Parsable, ParseNode, SerializationWriter
from typing import Any, Callable, Dict, List, Optional, TYPE_CHECKING, Union
from uuid import UUID
class SelfSignedCertificate(AdditionalDataHolde... | PypiClean |
/py-pure-client-1.38.0.tar.gz/py-pure-client-1.38.0/pypureclient/flasharray/FA_2_8/models/resource_performance.py | import pprint
import re
import six
import typing
from ....properties import Property
if typing.TYPE_CHECKING:
from pypureclient.flasharray.FA_2_8 import models
class ResourcePerformance(object):
"""
Attributes:
swagger_types (dict): The key is attribute name
and the valu... | PypiClean |
/django-geoprisma-0.0.1.tar.gz/django-geoprisma-0.0.1/geoprisma/static/geoprisma/lib/extjs/src/widgets/TabPanel.js | * @class Ext.TabPanel
* <p>A basic tab container. TabPanels can be used exactly like a standard {@link Ext.Panel}
* for layout purposes, but also have special support for containing child Components
* (<tt>{@link Ext.Container#items items}</tt>) that are managed using a
* {@link Ext.layout.CardLayout CardLayout la... | PypiClean |
/ladybug-core-0.42.2.tar.gz/ladybug-core-0.42.2/ladybug/psychchart.py | """Object for calculating PMV comfort from DataCollections."""
from __future__ import division
from ladybug_geometry.geometry2d.pointvector import Point2D, Vector2D
from ladybug_geometry.geometry2d.line import LineSegment2D
from ladybug_geometry.geometry2d.polyline import Polyline2D
from ladybug_geometry.geometry2d.me... | PypiClean |
/ILAMB-2.7.tar.gz/ILAMB-2.7/LICENSE.rst | Copyright 2023, The ILAMB Consortium
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
2. Redist... | PypiClean |
/metoffice-afterburner-1.3.3.tar.gz/metoffice-afterburner-1.3.3/bin/apprun.sh |
set -e
has_module=$(type -t module || echo '')
cmdname=$(basename $0)
usage="SYNOPSIS
$cmdname -h|--help
$cmdname <app_name> [app-options] [app-arguments]
$cmdname [script-options] -- <app-name> [app-options] [app-arguments]
ARGUMENTS
app-name - The name of the Afterburner app to run. This should eit... | PypiClean |
/dgl_cu110-0.6.1-cp37-cp37m-manylinux1_x86_64.whl/dgl/nn/pytorch/conv/atomicconv.py | # pylint: disable= no-member, arguments-differ, invalid-name
import numpy as np
import torch as th
import torch.nn as nn
class RadialPooling(nn.Module):
r"""
Description
-----------
Radial pooling from paper `Atomic Convolutional Networks for
Predicting Protein-Ligand Binding Affinity <https://arx... | PypiClean |
/object_detection_by_ovi-0.0.1-py3-none-any.whl/object_detection/model_tpu_main.py | r"""Creates and runs `Estimator` for object detection model on TPUs.
This uses the TPUEstimator API to define and run a model in TRAIN/EVAL modes.
"""
# pylint: enable=line-too-long
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from absl import flags
imp... | PypiClean |
/bottle-toolbelt-0.0.2.tar.gz/bottle-toolbelt-0.0.2/toolbelt/middleware.py | import time
import os
import re
import bottle
def safe_bottle(callback):
'''
from toolbelt.middleware import safe_bottle
bottle.install(safe_bottle)
'''
def wrapper(*args, **kwargs):
body = callback(*args, **kwargs)
bottle.response.headers['Server'] = ')'
bottle.response.h... | PypiClean |
/qcg_pilotjob-0.14.0-py3-none-any.whl/qcg/pilotjob/joblist.py | import json
import re
import logging
from datetime import datetime, timedelta
from enum import Enum
from qcg.pilotjob.resources import CRType
from qcg.pilotjob.errors import JobAlreadyExist, IllegalResourceRequirements, IllegalJobDescription
_logger = logging.getLogger(__name__)
class JobState(Enum):
"""The j... | PypiClean |
/verizon-api-sdk-1.0.0.tar.gz/verizon-api-sdk-1.0.0/verizon/models/delete_target_request.py | from verizon.api_helper import APIHelper
from verizon.models.account_identifier import AccountIdentifier
from verizon.models.resource_identifier import ResourceIdentifier
class DeleteTargetRequest(object):
"""Implementation of the 'DeleteTargetRequest' model.
Target to delete.
Attributes:
accou... | PypiClean |
/mystreamlit-1.7.0.tar.gz/mystreamlit-1.7.0/streamlit/legacy_caching/hashing.py | import collections
import dis
import enum
import functools
import hashlib
import importlib
import inspect
import io
import os
import pickle
import sys
import tempfile
import textwrap
import threading
import typing
import weakref
from typing import Any, List, Pattern, Optional, Dict, Callable, Union
import unittest.mock... | PypiClean |
/ansible-base-2.10.17.tar.gz/ansible-base-2.10.17/test/lib/ansible_test/_data/sanity/validate-modules/validate_modules/module_args.py | from __future__ import (absolute_import, division, print_function)
__metaclass__ = type
import runpy
import json
import os
import subprocess
import sys
from contextlib import contextmanager
from ansible.executor.powershell.module_manifest import PSModuleDepFinder
from ansible.module_utils.basic import FILE_COMMON_AR... | PypiClean |
/get_cover_art-1.8.0-py3-none-any.whl/get_cover_art/__main__.py | import argparse, os
from .cover_finder import CoverFinder, DEFAULTS
# This script searches apple music for artwork that is missing from your library
# It saves the artwork alongside the audio and embeds the artwork into the meta tags
# By default it will scan from the current working directory, you can override this
... | PypiClean |
/funkiio-1.0.1-py3-none-any.whl/homeassistant/components/ios/__init__.py | import datetime
import logging
import voluptuous as vol
from homeassistant import config_entries
from homeassistant.components.http import HomeAssistantView
from homeassistant.const import HTTP_BAD_REQUEST, HTTP_INTERNAL_SERVER_ERROR
from homeassistant.core import callback
from homeassistant.exceptions import HomeAss... | PypiClean |
/ClueDojo-1.4.3-1.tar.gz/ClueDojo-1.4.3-1/src/cluedojo/static/dojox/drawing/util/common.js | if(!dojo._hasResource["dojox.drawing.util.common"]){
dojo._hasResource["dojox.drawing.util.common"]=true;
dojo.provide("dojox.drawing.util.common");
dojo.require("dojox.math.round");
(function(){
var _1={};
dojox.drawing.util.common={radToDeg:function(n){
return (n*180)/Math.PI;
},degToRad:function(n){
return (n*Math.P... | PypiClean |
/invenio-explicit-acls-4.5.0.tar.gz/invenio-explicit-acls-4.5.0/invenio_explicit_acls/models.py | """A module implementing base ACL classes."""
import datetime
import json
import os
import uuid
from abc import abstractmethod
from typing import Dict, Iterable, Union
import elasticsearch
from elasticsearch_dsl import Q
from flask_security import AnonymousUser
from invenio_accounts.models import User
from invenio_db ... | PypiClean |
/ansible-8.3.0-py3-none-any.whl/ansible_collections/vmware/vmware_rest/plugins/modules/vcenter_vm_hardware_ethernet.py | from __future__ import absolute_import, division, print_function
__metaclass__ = type
DOCUMENTATION = r"""
module: vcenter_vm_hardware_ethernet
short_description: Adds a virtual Ethernet adapter to the virtual machine.
description: Adds a virtual Ethernet adapter to the virtual machine.
options:
allow_guest_cont... | PypiClean |
/commonn_abs_lyr-0.0.1.tar.gz/commonn_abs_lyr-0.0.1/connlayer/validate_config.py | import constants as constants
error_msg = dict()
class ValidateConfig(object):
@staticmethod
def mysql_config(self, config: dict):
try:
print("in mysql", config)
global error_msg
if type(config) is dict:
if constants.host not in config:
... | PypiClean |
/dropbox_sign-1.1.1-py3-none-any.whl/dropbox_sign/model/bulk_send_job_get_response_signature_requests.py | from __future__ import annotations
from typing import TYPE_CHECKING, Optional, List, Dict, Union
import json # noqa: F401
import re # noqa: F401
import sys # noqa: F401
from dropbox_sign import ApiClient
from dropbox_sign.model_utils import ( # noqa: F401
ApiTypeError,
ModelComposed,
ModelNormal,
M... | PypiClean |
/alipay-python-3.3.17.tar.gz/alipay-python-3.3.17/alipay/aop/api/request/ZhimaCreditPeContractUserstatusQueryRequest.py | import json
from alipay.aop.api.FileItem import FileItem
from alipay.aop.api.constant.ParamConstants import *
from alipay.aop.api.domain.ZhimaCreditPeContractUserstatusQueryModel import ZhimaCreditPeContractUserstatusQueryModel
class ZhimaCreditPeContractUserstatusQueryRequest(object):
def __init__(self, biz_... | PypiClean |
/discord.py-unofficial-0.18.0b1.tar.gz/discord.py-unofficial-0.18.0b1/discord_unofficial/ext/commands/converter.py | import discord
import asyncio
import re
import inspect
from .errors import BadArgument, NoPrivateMessage
__all__ = [ 'Converter', 'MemberConverter', 'UserConverter',
'ChannelConverter', 'InviteConverter', 'RoleConverter',
'GameConverter', 'ColourConverter' ]
def _get_from_servers(bot, getter,... | PypiClean |
/drypatrick-frontend-20210603.0.tar.gz/drypatrick-frontend-20210603.0/hass_frontend/frontend_es5/chunk.b82ffa3c7bd1cd5b9df9.js | (self.webpackChunkhome_assistant_frontend=self.webpackChunkhome_assistant_frontend||[]).push([[242],{21157:function(n,e,t){"use strict";var l;t(65233);var i,a,s=(0,t(50856).d)(l||(i=['\n/* Most common used flex styles*/\n<dom-module id="iron-flex">\n <template>\n <style>\n .layout.horizontal,\n .layout.ve... | PypiClean |
/baiduads_sdk_auto-2023.1.0-py3-none-any.whl/baiduads/shieldfunction/model/get_hit_black_ip_policy_response_wrapper.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 |
/rain_python-0.4.0-py3-none-any.whl/rain/client/input.py | from .data import DataObject, DataType, to_dataobj
from .task import Task
class InputBase:
dataobj = None
label = None
path = None
load = None
data_type = None
content_type = None
def __init__(self,
label=None,
path=None,
dataobj=None,
... | PypiClean |
/pulsar_client-3.3.0-cp39-cp39-macosx_10_15_universal2.whl/pulsar/schema/definition.py |
import copy
from abc import abstractmethod
from collections import OrderedDict
from enum import Enum, EnumMeta
def _string_representation(x):
if hasattr(x, "__name__"):
return x.__name__
else:
return str(x)
def _check_record_or_field(x):
if (type(x) is type and not issubclass(x, Record)... | PypiClean |
/azure-ai-translation-document-1.0.0b5.zip/azure-ai-translation-document-1.0.0b5/samples/async_samples/sample_translation_with_glossaries_async.py | import asyncio
async def sample_translation_with_glossaries_async():
import os
from azure.core.credentials import AzureKeyCredential
from azure.ai.translation.document.aio import DocumentTranslationClient
from azure.ai.translation.document import (
TranslationGlossary
)
endpoint = os.... | PypiClean |
/FairDynamicRec-0.0.123-py3-none-any.whl/fair_dynamic_rec/core/rankers/factor_ucb.py | import numpy as np
from .abstract_ranker import AbstractRanker
import sys
from sklearn.metrics.pairwise import cosine_similarity
from fair_dynamic_rec.core.util.utils import get_param_config_name
from fair_dynamic_rec.core.util.outputs import make_output_dir
# Objective function: min 1/2 (X - U . V_T) + 1/2 * \lambda ... | PypiClean |
/pulumi_azure_nextgen-0.6.2a1613157620.tar.gz/pulumi_azure_nextgen-0.6.2a1613157620/pulumi_azure_nextgen/network/v20200401/get_route.py |
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union
from ... import _utilities, _tables
__all__ = [
'GetRouteResult',
'AwaitableGetRouteResult',
'get_route',
]
@pulumi.output_type
class GetRouteResult:
"""
Route resource.
"""
def ... | PypiClean |
/e6data-python-connector-1.1.5.tar.gz/e6data-python-connector-1.1.5/e6data_python_connector/datainputstream.py | import struct
import logging
from e6xdb.date_time_utils import FORMATS, floor_div, floor_mod
from datetime import datetime, timedelta
from e6xdb.constants import ZONE
_logger = logging.getLogger(__name__)
class DataInputStream:
def __init__(self, stream):
self.stream = stream
def read_boolean(self):... | PypiClean |
/msgraph-sdk-1.0.0a3.tar.gz/msgraph-sdk-1.0.0a3/msgraph/generated/me/calendars/item/calendar_view/item/calendar/calendar_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 |
/client-sdk-python-1.1.1.tar.gz/client-sdk-python-1.1.1/client_sdk_python/datastructures.py | from collections import (
Hashable,
Mapping,
MutableMapping,
OrderedDict,
Sequence,
)
from client_sdk_python.packages.eth_utils import (
is_integer,
)
from client_sdk_python.utils.formatters import (
recursive_map,
)
# Hashable must be immutable:
# "the implementation of hashable collecti... | PypiClean |
/py_di-1.1.tar.gz/py_di-1.1/README.md | # Py_DI - Python Container of Dependency Injection (IOC) implementation
## Authors
- [Moises P. Sena](http://moisespsena.com)
## Issues
[Issues on GitHub](https://github.com/moisespsena/py_di/issues).
## Installation
### By pip:
```bash
sudo pip install py_di
```
### Manual:
For default python executable:
```b... | PypiClean |
/ZoomFoundry-6.21.0-py3-none-any.whl/zoom/_assets/standard_apps/admin/jobs.py | import zoom
def timespan(time1, time2):
if time1 and time2:
return time1 - time2
return ''
class BackgroundController(zoom.Controller):
def index(self):
"""Returns a list of background jobs"""
actions = []
if zoom.system.user.is_admin:
actions.append(('Clear... | PypiClean |
/ixnetwork_restpy-1.1.10.tar.gz/ixnetwork_restpy-1.1.10/uhd_restpy/testplatform/sessions/ixnetwork/topology/bgpexportroutetargetlist_ce93ce056c01eaf7643c31a7fd67768c.py | import sys
from uhd_restpy.base import Base
from uhd_restpy.files import Files
if sys.version_info >= (3, 5):
from typing import List, Any, Union
class BgpExportRouteTargetList(Base):
"""Export RouteTarget
The BgpExportRouteTargetList class encapsulates a list of bgpExportRouteTargetList resources that ar... | PypiClean |
/lightning-grid-0.8.81.tar.gz/lightning-grid-0.8.81/grid/sdk/utils/tar.py | from dataclasses import dataclass
import math
import os
import subprocess
import tarfile
from typing import Optional, Tuple
import click
MAX_SPLIT_COUNT = 999
def get_dir_size_and_count(source_dir: str, prefix: Optional[str] = None) -> Tuple[int, int]:
"""
Get size and file count of a directory
Paramet... | PypiClean |
/bicleaner-0.16.tar.gz/bicleaner-0.16/README.md |
# bicleaner

Bicleaner (`bicleaner-classify`) is a tool in Python that aims at detecting noisy sentence pairs in a parallel corpus. It
indicates the likelihood of a pair of sentences being mutual translations (with a value near to 1) or not (with a valu... | PypiClean |
/accretion_cli-0.1.0.tar.gz/accretion_cli-0.1.0/src/accretion_cli/_commands/raw/add/artifact_builder.py | import sys
import threading
import click
from accretion_common.constants import SOURCE_PREFIX
from ...._templates import artifact_builder as template_builder
from ...._util import Deployment, DeploymentFile
from ...._util.cloudformation import artifacts_bucket, deploy_stack
from ...._util.parameters import try_to_loa... | PypiClean |
/pensando_ent-1.28.1.tar.gz/pensando_ent-1.28.1/pensando_ent/psm/api/preferences_v1_api.py | import re # noqa: F401
import sys # noqa: F401
from pensando_ent.psm.api_client import ApiClient, Endpoint as _Endpoint
from pensando_ent.psm.model_utils import ( # noqa: F401
check_allowed_values,
check_validations,
date,
datetime,
file_type,
none_type,
validate_and_convert_types
)
impo... | PypiClean |
/sandstone-slurm-assist-0.12.0.tar.gz/sandstone-slurm-assist-0.12.0/sandstone_slurm/node_modules/bower/lib/node_modules/uuid/benchmark/benchmark.js | try {
var nodeuuid = require('../uuid');
} catch (e) {
console.error('node-uuid require failed - skipping tests');
}
try {
var uuid = require('uuid');
} catch (e) {
console.error('uuid require failed - skipping tests');
}
try {
var uuidjs = require('uuid-js');
} catch (e) {
console.error('uuid-js require ... | PypiClean |
/pulumi_aws-6.1.0a1693529760.tar.gz/pulumi_aws-6.1.0a1693529760/pulumi_aws/ses/identity_policy.py |
import copy
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from .. import _utilities
__all__ = ['IdentityPolicyArgs', 'IdentityPolicy']
@pulumi.input_type
class IdentityPolicyArgs:
def __init__(__self__, *,
identity: pulum... | PypiClean |
/ensmallen_graph-0.6.0-cp37-cp37m-manylinux2010_x86_64.whl/ensmallen_graph/datasets/networkrepository/jagmesh2.py | from typing import Dict
from ..automatic_graph_retrieval import AutomaticallyRetrievedGraph
from ...ensmallen_graph import EnsmallenGraph # pylint: disable=import-error
def Jagmesh2(
directed: bool = False,
verbose: int = 2,
cache_path: str = "graphs/networkrepository",
**additional_graph_kwargs: Di... | PypiClean |
/FreePyBX-1.0-RC1.tar.gz/FreePyBX-1.0-RC1/freepybx/public/js/dijit/Tooltip.js | require({cache:{"url:dijit/templates/Tooltip.html":"<div class=\"dijitTooltip dijitTooltipLeft\" id=\"dojoTooltip\"\n\t><div class=\"dijitTooltipContainer dijitTooltipContents\" data-dojo-attach-point=\"containerNode\" role='alert'></div\n\t><div class=\"dijitTooltipConnector\" data-dojo-attach-point=\"connectorNode\">... | PypiClean |
/pytransform3d-3.4.0.tar.gz/pytransform3d-3.4.0/doc/source/index.rst | .. pytransform3d documentation master file, created by
sphinx-quickstart on Thu Nov 20 21:01:30 2014.
.. raw:: html
<div class="text-right">
=============
pytransform3d
=============
.. raw:: html
</div>
<div class="container-fluid">
<div class="row">
<div class="col-md-4">
... | PypiClean |
/dnsadmin53-0.0.1.tar.gz/dnsadmin53-0.0.1/README.md | aws-dnsadmin53
==============
[](https://travis-ci.org/huit/python-dnsadmin53)
Manage access to zones in Route 53
There are a couple of limitations on IAM Objects
http://docs.aws.amazon.com/IAM/latest/UserGuide/LimitationsOnEntities.html
... | PypiClean |
/patchwork-websoccer-0.1.12.tar.gz/patchwork-websoccer-0.1.12/patchwork/websoccer/fastapi.py | import logging
from typing import Callable, Mapping, Union, Coroutine, Any
from fastapi import APIRouter, Depends
from starlette.websockets import WebSocket, WebSocketDisconnect
from patchwork.websoccer.client.base import BaseClient
from patchwork.websoccer.client.websock import WebsockClient
from patchwork.websoccer... | PypiClean |
/smscx_client-0.1.13.tar.gz/smscx_client-0.1.13/smscx_client/model/group_details_response.py | import re # noqa: F401
import sys # noqa: F401
from smscx_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,
v... | PypiClean |
/geezramlibs-0.2.0.tar.gz/geezramlibs-0.2.0/geezram/geez/database/pmpermitdb.py | from geezram.geez.database import db_x
db_y = db_x["PMPERMIT"]
PMPERMIT_MESSAGE = (
"**peringatan! tolong baca pesan ini dengan hati-hati..\n\n**"
"**Saya Geez-Pyro Assistant untuk melindungi tuan saya dari spam**"
"**jika Anda bukan spammer, harap tunggu!.\n\n**"
"**jangan spam atau Anda akan dibloki... | PypiClean |
/PyCIM-15.15.0.tar.gz/PyCIM-15.15.0/CIM14/CDPSM/Balanced/IEC61970/Core/VoltageLevel.py |
from CIM14.CDPSM.Balanced.IEC61970.Core.EquipmentContainer import EquipmentContainer
class VoltageLevel(EquipmentContainer):
"""A collection of equipment at one common system voltage forming a switchgear. The equipment typically consist of breakers, busbars, instrumentation, control, regulation and protection dev... | PypiClean |
/dosage-3.0.tar.gz/dosage-3.0/dosagelib/plugins/creators.py | from ..scraper import ParserScraper
from ..helpers import indirectStarter
class Creators(ParserScraper):
imageSearch = '//a[contains(@class,"fancybox")]/img'
prevSearch = '//a[@id="nav_prev"]'
latestSearch = '//div[contains(@class,"caption")]/a'
starter = indirectStarter
def __init__(self, name, ... | PypiClean |
/netbluemind4-4.9.2993.tar.gz/netbluemind4-4.9.2993/netbluemind/core/container/model/IdQuery.py | import requests
from netbluemind.python import serder
class IdQuery:
def __init__(self):
self.filter = None
self.limit = None
self.offset = None
self.knownContainerVersion = None
pass
class __IdQuerySerDer__:
def __init__(self):
pass
def parse(self, value... | PypiClean |
/glue-ginga-0.2.tar.gz/glue-ginga-0.2/glue_ginga/qt/layer_artist.py | from __future__ import absolute_import, division, print_function
from time import time
import numpy as np
from ginga.misc import Bunch
from ginga.util import wcsmod
from ginga import AstroImage, BaseImage
from glue.external.echo import keep_in_sync, CallbackProperty
from glue.core.exceptions import IncompatibleAttri... | PypiClean |
/pyctest-0.0.12.tar.gz/pyctest-0.0.12/source/kitware-cmake/Help/variable/CMAKE_MAKE_PROGRAM.rst | CMAKE_MAKE_PROGRAM
------------------
Tool that can launch the native build system.
The value may be the full path to an executable or just the tool
name if it is expected to be in the ``PATH``.
The tool selected depends on the :variable:`CMAKE_GENERATOR` used
to configure the project:
* The :ref:`Makefile Generator... | PypiClean |
/django-lfs-0.11.tar.gz/django-lfs-0.11/lfs/manage/product/categories.py | import json
# django imports
from django.contrib.auth.decorators import permission_required
from django.http import HttpResponse
from django.template.loader import render_to_string
from django.utils.translation import ugettext_lazy as _
# lfs imports
from lfs.caching.utils import lfs_get_object_or_404
from lfs.core.u... | PypiClean |
/client-python-tool-0.7.4.3.tar.gz/client-python-tool-0.7.4.3/client_python_tool/packages/eth_utils/applicators.py | from typing import Any, Callable, Dict, Generator, List, Tuple
import warnings
from .decorators import return_arg_type
from .functional import to_dict
from .toolz import compose, curry
Formatters = Callable[[List[Any]], List[Any]]
@return_arg_type(2)
def apply_formatter_at_index(
formatter: Callable[..., Any], ... | PypiClean |
/novalabs-1.2.75.tar.gz/novalabs-1.2.75/nova/utils/helpers.py | from datetime import datetime, timedelta
from typing import Optional, Dict
import time
import re
def convert_candle_to_timedelta(candle: str) -> timedelta:
multi = int(float(re.findall(r'\d+', candle)[0]))
if 'm' in candle:
candle_duration = timedelta(minutes=multi)
elif 'h' in candle:
can... | PypiClean |
/dnacryptkey-1.0.2.tar.gz/dnacryptkey-1.0.2/README.md | # DNACRYPT-KEY
DNACRYPTO-KEY is a package to use in python that uses DNA code-based encryption to hide messages.
## Getting Started
Just use pip to install it!
### Prerequisites
To use dnacrypt-key is necessary have installed random package and unidecode package.
```
pip install random
pip install unidecode
```
... | PypiClean |
/noc-0.7(3).tar.gz/noc-0.7(3)/lib/daemon.py |
## Python modules
from __future__ import with_statement
import ConfigParser
import sys
import logging
import os
import signal
import optparse
import logging.handlers
## NOC modules
from noc.lib.debug import error_report, frame_report, set_crashinfo_context
from noc.lib.validators import is_ipv4, is_int
from noc.lib.ve... | PypiClean |
/HydPy-5.0.1-cp38-cp38-win_amd64.whl/hydpy/models/conv/conv_derived.py |
# import...
# ...from site-packages
import numpy
# ...from HydPy
from hydpy.core import parametertools
from hydpy.models.conv import conv_control
from hydpy.models.conv import conv_fluxes
class NmbInputs(parametertools.Parameter):
"""The number of inlet nodes [-]"""
NDIM, TYPE, TIME, SPAN = 0, int, None, ... | PypiClean |
/pywellcad-0.3.0.tar.gz/pywellcad-0.3.0/wellcad/com/_font.py | from ._dispatch_wrapper import DispatchWrapper
class Font(DispatchWrapper):
""" This class encapsulates the properties of fonts used throughout WellCAD
For example, fonts can be specified in the following places:
* Comment log
* Comment partition
* Property partition
* Log title
In gene... | PypiClean |
/Products.kupu-1.5.2.zip/Products.kupu-1.5.2/Products/kupu/plone/kupu_references/referencebrowser.js | function KupuRefDrawer(tool, xsluri, libsuri, searchuri, selecturi) {
/* a specific LibraryDrawer for selection of references */
this.init(tool, xsluri, libsuri, searchuri, 'krb_drawer_base', selecturi);
this.drawertitle = "Add reference";
this.drawertype = "reference";
this.xmldata = null;
th... | PypiClean |
/pennaipy-0.17a0.tar.gz/pennaipy-0.17a0/ai/recommender/surprise_recommenders.py | import pandas as pd
from pandas.util import hash_pandas_object
import hashlib
import os
import gzip
import pickle
import copy
# import json
# import urllib.request, urllib.parse
from .base import BaseRecommender
#from ..metalearning import get_metafeatures
# from sklearn.preprocessing import RobustScaler
# from sklearn... | PypiClean |
/olive_ai-0.3.1-py3-none-any.whl/olive/snpe/utils/local.py | import logging
import os
import platform
import time
from pathlib import Path
from typing import Tuple
from olive.common.utils import run_subprocess
logger = logging.getLogger(__name__)
def get_snpe_root() -> str:
"""
Get the SNPE root directory from the SNPE_ROOT environment variable.
"""
try:
... | PypiClean |
/test_meraki-1.0-py3-none-any.whl/test_meraki/models/protected_networks.py | class ProtectedNetworks(object):
"""Implementation of the 'ProtectedNetworks' model.
Set the included/excluded networks from the intrusion engine (optional -
omitting will leave current config unchanged). This is available only in
'passthrough' mode
Attributes:
use_default (bool): true/fa... | PypiClean |
/django-rte-0.4.0.tar.gz/django-rte-0.4.0/rte/static/rte/tiny_mce/utils/validate.js | // String validation:
if (!Validator.isEmail('myemail'))
alert('Invalid email.');
// Form validation:
var f = document.forms['myform'];
if (!Validator.isEmail(f.myemail))
alert('Invalid email.');
*/
var Validator = {
isEmail : function(s) {
return this.test(s, '^[-!#$%&\'*+\\./0-9=?A-Z^_`a-z{|}~]+@[-!#... | PypiClean |
/Flask-Statics-Helper-1.0.0.tar.gz/Flask-Statics-Helper-1.0.0/flask_statics/static/angular/i18n/angular-locale_cgg-ug.js | 'use strict';
angular.module("ngLocale", [], ["$provide", function($provide) {
var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"};
function getDecimals(n) {
n = n + '';
var i = n.indexOf('.');
return (i == -1) ? 0 : n.length - i - 1;
}
function getVF(n, opt_pre... | PypiClean |
/nista_library-4.0.9-py3-none-any.whl/data_point_client/models/get_week_period_response.py | from typing import TYPE_CHECKING, Any, Dict, List, Type, TypeVar, Union
import attr
from ..types import UNSET, Unset
if TYPE_CHECKING:
from ..models.gnista_unit_response import GnistaUnitResponse
from ..models.week_data_transfere import WeekDataTransfere
T = TypeVar("T", bound="GetWeekPeriodResponse")
@a... | PypiClean |
/aidenva-0.0.1-py3-none-any.whl/vaengine/falldown_va_2.py | import cv2
import numpy as np
from misc import labelmap_util
from models.classify import Classify
from service import constants as const
from service.va_service import VAService
from misc.estimator.condition_estimate import ConditionEstimator
# classification inference 개수
CLASSIFICATION_IMG_SIZE=20
class FalldownVA(V... | PypiClean |
/data-gate-cli-0.3.0.tar.gz/data-gate-cli-0.3.0/dg/commands/cpd3/install_assembly.py |
from typing import Optional
import click
import semver
from click_option_group import optgroup
import dg.config.cluster_credentials_manager
import dg.lib.click.utils
from dg.lib.cloud_pak_for_data.cpd3_manager import (
AbstractCloudPakForDataManager,
CloudPakForDataAssemblyBuildType,
)
from dg.lib.cloud_pa... | PypiClean |
/lcmap_pyccd-2021.7.19-py3-none-any.whl/ccd/__init__.py | import time
import logging
from ccd.procedures import fit_procedure as __determine_fit_procedure
import numpy as np
from ccd import app, math_utils, qa
import importlib
from .version import __version
from .version import __name
log = logging.getLogger(__name)
algorithm = ':'.join([__name, __version])
def attr... | PypiClean |
/library_analyzer-0.1.1.tar.gz/library_analyzer-0.1.1/src/library_analyzer/processing/migration/annotations/_migrate_expert_annotation.py | from copy import deepcopy
from library_analyzer.processing.annotations.model import (
AbstractAnnotation,
EnumReviewResult,
ExpertAnnotation,
TodoAnnotation,
)
from library_analyzer.processing.api.model import Attribute, Result
from library_analyzer.processing.migration.model import (
ManyToOneMapp... | PypiClean |
/kforge-0.20.tar.gz/kforge-0.20/doc/source/introduction.rst | Introduction
============
.. include:: ../../README
Python Package
--------------
The `KForge Python package <http://pypi.python.org/pypi/kforge>`_ can be downloaded from the `Python Package Index <http://pypi.python.org>`_. To build a KForge site, you will also need to install other software. The `KForge Installer ... | PypiClean |
/Tailbone-0.9.45.tar.gz/Tailbone-0.9.45/tailbone/views/tempmon/readings.py | from __future__ import unicode_literals, absolute_import
import six
from sqlalchemy import orm
from rattail_tempmon.db import model as tempmon
from webhelpers2.html import tags
from tailbone.views.tempmon import MasterView
class TempmonReadingView(MasterView):
"""
Master view for tempmon readings.
"""... | PypiClean |
/idasen_controller-2.0.2.tar.gz/idasen_controller-2.0.2/idasen_controller/main.py | import os
import sys
import traceback
import shutil
import struct
import argparse
import yaml
import asyncio
import aiohttp
from aiohttp import web
from bleak import BleakClient, BleakError, BleakScanner
from bleak.exc import BleakDBusError
import json
from functools import partial
from appdirs import user_config_dir
... | PypiClean |
/xmldirector.plonecore-2.1.1.zip/xmldirector.plonecore-2.1.1/xmldirector/plonecore/browser/resources/ace-builds/src-min/mode-vala.js | define("ace/mode/vala_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(e,t,n){"use strict";var r=e("../lib/oop"),i=e("./text_highlight_rules").TextHighlightRules,s=function(){this.$rules={start:[{token:["meta.using.vala","keyword.other.using.vala","meta.using.vala",... | PypiClean |
/ESMValTool-2.9.0-py3-none-any.whl/esmvaltool/diag_scripts/droughtindex/diag_cdd.py | import logging
import os
from copy import deepcopy
import cmocean.cm
import iris
import numpy as np
from esmvaltool.diag_scripts.shared import (
run_diagnostic,
save_data,
save_figure,
)
from esmvaltool.diag_scripts.shared.plot import global_pcolormesh
logger = logging.getLogger(os.path.basename(__file__... | PypiClean |
/yt-dlp-custom-0.0.1.tar.gz/yt-dlp-custom-0.0.1/yt_dlp/extractor/thisav.py | from .common import InfoExtractor
from ..utils import remove_end
class ThisAVIE(InfoExtractor):
_VALID_URL = r'https?://(?:www\.)?thisav\.com/video/(?P<id>[0-9]+)/.*'
_TESTS = [{
# jwplayer
'url': 'http://www.thisav.com/video/47734/%98%26sup1%3B%83%9E%83%82---just-fit.html',
'md5': '04... | PypiClean |
/pulumi_azure_nextgen-0.6.2a1613157620.tar.gz/pulumi_azure_nextgen-0.6.2a1613157620/pulumi_azure_nextgen/customerinsights/get_relationship_link.py |
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union
from .. import _utilities, _tables
from . import outputs
__all__ = [
'GetRelationshipLinkResult',
'AwaitableGetRelationshipLinkResult',
'get_relationship_link',
]
@pulumi.output_type
class GetRe... | PypiClean |
/paddle2coreml-6.2-cp38-none-macosx_11_0_arm64.whl/coremltools/proto/ArrayFeatureExtractor_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 descriptor_pb2
from google.protobuf import message as _message
from google.protobuf import reflection as _reflection
from google.protobuf import symbo... | PypiClean |
/pulumi_aws_native-0.75.1a1693503310.tar.gz/pulumi_aws_native-0.75.1a1693503310/pulumi_aws_native/apigatewayv2/api.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__ = ['ApiArgs', 'Api']
@pulumi.input_type
class ApiArgs:
def __init__(__self__, *,
api... | PypiClean |
/julynter-0.4.2.tar.gz/julynter-0.4.2/src/linterlab/notebookhandler.ts | import { JSONObject, PartialJSONArray } from '@lumino/coreutils';
import { IDisposable } from '@lumino/disposable';
import { Signal, ISignal } from '@lumino/signaling';
import { ISessionContext } from '@jupyterlab/apputils';
import { IDocumentManager } from '@jupyterlab/docmanager';
import { NotebookPanel } from '@jup... | PypiClean |
/alibabacloud_scsp20200702-1.0.0.tar.gz/alibabacloud_scsp20200702-1.0.0/README.md | English | [简体中文](README-CN.md)

## Alibaba Cloud scsp SDK for Python
## Requirements
- Python >= 3.6
## Installation
- **Install with pip**
Python SDK uses a common package management tool named `pip`. If pip is not installed, see the [pip user guide](... | PypiClean |
/MDSuite-0.2.0-py3-none-any.whl/mdsuite/utils/calculator_helper_methods.py | import logging
from typing import Any, Iterable, Tuple, Union
import jax
import jax.numpy as jnp
import numpy as np
from numpy import ndarray
from scipy.interpolate import UnivariateSpline
from scipy.optimize import curve_fit
log = logging.getLogger(__name__)
def fit_einstein_curve(
x_data: np.ndarray, y_data: ... | PypiClean |
/rezdy_api_for_suppliers_client-1.0.1.tar.gz/rezdy_api_for_suppliers_client-1.0.1/rezdy_api_for_suppliers_client/api/categories/remove_product.py | from typing import Any, Dict, Optional
import httpx
from ...client import Client
from ...models.response_rate import ResponseRate
from ...types import Response
def _get_kwargs(
category_id: int,
product_code: str,
*,
client: Client,
) -> Dict[str, Any]:
url = "{}/categories/{categoryId}/products... | PypiClean |
/zxbasic-1.12.0.tar.gz/zxbasic-1.12.0/libzxbasm/z80.py |
class Opcode:
""" Describes opcodes and other info.
"""
def __init__(self, asm: str, time: int, size: int, opcode: str):
self.asm = asm
self.T = time
self.size = size
self.opcode = opcode
Z80SET = {
"ADC A,(HL)": Opcode("ADC A,(HL)", 7, 1, "8E"),
"ADC A,(IX+N)": O... | PypiClean |
/ymxadmin-1.0.9.tar.gz/ymxadmin-1.0.9/xadmin/views/edit.py | from __future__ import absolute_import
import copy
from crispy_forms.utils import TEMPLATE_PACK
from django import forms
from django.contrib.contenttypes.models import ContentType
from django.core.exceptions import PermissionDenied, FieldError
from django.db import models, transaction
from django.forms.models import m... | PypiClean |
/ansible-8.3.0-py3-none-any.whl/ansible_collections/community/hashi_vault/plugins/module_utils/_auth_method_aws_iam.py | # FOR INTERNAL COLLECTION USE ONLY
# The interfaces in this file are meant for use within the community.hashi_vault 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
# Plea... | PypiClean |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.