id stringlengths 1 8 | text stringlengths 6 1.05M | dataset_id stringclasses 1
value |
|---|---|---|
/formification-1.2.0-py3-none-any.whl/formulaic/static/admin/formulaic/ember-formulaic/node_modules/ember-runtime-enumerable-includes-polyfill/node_modules/lodash/_createWrap.js | var baseSetData = require('./_baseSetData'),
createBind = require('./_createBind'),
createCurry = require('./_createCurry'),
createHybrid = require('./_createHybrid'),
createPartial = require('./_createPartial'),
getData = require('./_getData'),
mergeData = require('./_mergeData'),
setData =... | PypiClean |
/oneline-0.6.4-alpha.tar.gz/oneline-0.6.4-alpha/lib/database/mongodb/build/lib.cygwin-1.7.27-i686-2.7/bson/dbref.py | from copy import deepcopy
from bson.son import SON
class DBRef(object):
"""A reference to a document stored in MongoDB.
"""
# DBRef isn't actually a BSON "type" so this number was arbitrarily chosen.
_type_marker = 100
def __init__(self, collection, id, database=None, _extra={}, **kwargs):
... | PypiClean |
/binsize-0.1.3.tar.gz/binsize-0.1.3/README.md | # Binsize tool
Tool for analyzing the sizes of symbols in binaries.
It can be used to find out which symbols are taking up the most space in a binary.
It requires `bloaty` and `nm` tools to be installed.
It analyzes the `.elf` file and optionally also the `.map` file from the binary creation process.
## Tool basic... | PypiClean |
/astronomer_telescope-3.1.0.tar.gz/astronomer_telescope-3.1.0/astronomer_telescope/util.py | from typing import Any, Dict, List, Union
import base64
import json
import logging
from json import JSONDecodeError
log = logging.getLogger(__name__)
def get_json_or_clean_str(o: str) -> Union[List[Any], Dict[Any, Any], Any]:
"""Either load JSON (if we can) or strip and split the string, while logging the error... | PypiClean |
/hnzhu010502-0.0.1-py3-none-any.whl/airtest/core/android/rotation.py | import os
import time
import threading
import traceback
from airtest.utils.snippet import reg_cleanup, is_exiting, on_method_ready
from airtest.utils.nbsp import NonBlockingStreamReader
from airtest.utils.logger import get_logger
from airtest.core.android.constant import ORI_METHOD, ROTATIONWATCHER_JAR
LOGGING = get_lo... | PypiClean |
/meliorator-0.9.24-py3-none-any.whl/orator/pagination/base.py |
class BasePaginator(object):
_current_page_resolver = None
def _is_valid_page_number(self, page):
"""
Determine if the given value is a valid page number.
:param page: The given page number
:type page: int
:rtype: bool
"""
return isinstance(page, int... | PypiClean |
/movement_primitives-0.5.0.tar.gz/movement_primitives-0.5.0/movement_primitives/data/_toy_1d.py | import numpy as np
def generate_1d_trajectory_distribution(
n_demos, n_steps, initial_offset_range=3.0, final_offset_range=0.1,
noise_per_step_range=20.0, random_state=np.random.RandomState(0)):
"""Generates toy data for testing and demonstration.
Parameters
----------
n_demos : int
... | PypiClean |
/notebooksmz-7.0.0-py3-none-any.whl/notebook/static/components/MathJax/extensions/a11y/wgxpath.install.js | (function(){'use strict';var k=this;
function aa(a){var b=typeof a;if("object"==b)if(a){if(a instanceof Array)return"array";if(a instanceof Object)return b;var c=Object.prototype.toString.call(a);if("[object Window]"==c)return"object";if("[object Array]"==c||"number"==typeof a.length&&"undefined"!=typeof a.splice&&"und... | PypiClean |
/onlinepayments-sdk-python2-4.14.0.zip/onlinepayments-sdk-python2-4.14.0/onlinepayments/sdk/domain/surcharge_specific_input.py | from onlinepayments.sdk.data_object import DataObject
from onlinepayments.sdk.domain.amount_of_money import AmountOfMoney
class SurchargeSpecificInput(DataObject):
"""
| Object containing specific input required to apply surcharging to an order.
"""
__mode = None
__surcharge_amount = None
@p... | PypiClean |
/burp_reports-1.4.2.tar.gz/burp_reports-1.4.2/burp_reports/data/notes.md | Requirements notes:
==================
arrow: will manage all datetime functionality
requests: will be used to fetch data from rest urls.
Expected format:
==============
Usable by reports scripts:
{'client_name':
{ 'b_last' : 'iso8601',
'b_state' : 'working/current',
... | PypiClean |
/tencentcloud_iac_pulumi-0.1.5.tar.gz/tencentcloud_iac_pulumi-0.1.5/tencentcloud_iac_pulumi/cynosdb/get_backup_download_url.py |
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from .. import _utilities
__all__ = [
'GetBackupDownloadUrlResult',
'AwaitableGetBackupDownloadUrlResult',
'get_backup_download_url',
'get_backup_download_url_output',
]
@pulumi.ou... | PypiClean |
/open_publishing-0.0.17.tar.gz/open_publishing-0.0.17/open_publishing/context/users.py | from open_publishing.user import User
from open_publishing.core.enums import UsersSearchType
class Users(object):
def __init__(self,
ctx):
self._ctx = ctx
self._refs = set() #TODO: Consider using weakref
def load(self,
guid = None,
user_id = None,
... | PypiClean |
/pypomes_core-0.5.1.tar.gz/pypomes_core-0.5.1/src/pypomes_core/datetime_pomes.py | import pytz
from datetime import date, datetime
from dateutil import parser
from typing import Final
from .env_pomes import APP_PREFIX, env_get_str
# some useful date/datetime formats
DATE_FORMAT_STD: Final[str] = "%m/%d/%Y"
DATE_FORMAT_COMPACT: Final[str] = "%Y%m%d"
DATE_FORMAT_INV: Final[str] = "%Y-%m-%d"
DATETIME_... | PypiClean |
/metadsl_all-0.1.0.tar.gz/metadsl_all-0.1.0/untitled.md | # A New Base
Let's try to recreate metadsl from the ground up here.
## Advantages of metadsl
What are the advantages of this sort of system over operator overloading or dunder methods for
iteropability?
1. Allows anyone to define new operations on datatypes.
2. Allows anyone else to define how those operations befo... | PypiClean |
/pyproject_maker-0.5.0.tar.gz/pyproject_maker-0.5.0/py_maker/pymaker.py | from __future__ import annotations
import importlib.resources as pkg_resources
import os
import re
import shutil
import subprocess # nosec
import sys
from pathlib import Path, PurePath
from typing import TYPE_CHECKING, Dict
from git.exc import GitError
from git.repo import Repo
from jinja2 import Environment, FileSy... | PypiClean |
/pcg_gazebo-0.7.12-py3-none-any.whl/pcg_gazebo/parsers/sdf/normal.py | from ..types import XMLBase
from ...utils import generate_random_string
from ... import random
class Normal(XMLBase):
_NAME = 'normal'
_TYPE = 'sdf'
_MODES = ['vector', 'string']
def __init__(self, default=[0, 0, 1]):
super(Normal, self).__init__()
assert self._is_numeric_vector(def... | PypiClean |
/msgraph-sdk-1.0.0a3.tar.gz/msgraph-sdk-1.0.0a3/msgraph/generated/groups/item/team/members/add/add_response.py | from __future__ import annotations
from kiota_abstractions.serialization import Parsable, ParseNode, SerializationWriter
from typing import Any, Callable, Dict, List, Optional, Union
from ......models import action_result_part, base_collection_pagination_count_response
class AddResponse(base_collection_pagination_cou... | PypiClean |
/vultr-python-client-1.0.2.tar.gz/vultr-python-client-1.0.2/vultr_python_client/paths/instances_instance_id_iso_attach/post.py | from dataclasses import dataclass
import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
from vultr_python_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 r... | PypiClean |
/h2o_pysparkling_3.1-3.42.0.2.post1.tar.gz/h2o_pysparkling_3.1-3.42.0.2.post1/h2o/backend/connection.py | from h2o.utils.compatibility import * # NOQA
import atexit
from collections import defaultdict
import os
import re
import sys
import tempfile
import time
import types
from warnings import warn
from weakref import ref
import requests
from requests.auth import AuthBase
from h2o.backend import H2OCluster, H2OLocalServ... | PypiClean |
/satosacontrib.perun-4.1.0-py3-none-any.whl/satosacontrib/perun/micro_services/idm/perun_user.py | import logging
from typing import List
from perun.connector.adapters.AdaptersManager import (
AdaptersManager,
AdaptersManagerNotExistsException,
)
from satosa.context import Context
from satosa.exception import SATOSAError
from satosa.internal import InternalData
from satosa.micro_services.base import Respons... | PypiClean |
/django-summernote-0.8.20.0.tar.gz/django-summernote-0.8.20.0/django_summernote/static/summernote/lang/summernote-fi-FI.min.js | !function(e,i){if("object"==typeof exports&&"object"==typeof module)module.exports=i();else if("function"==typeof define&&define.amd)define([],i);else{var a=i();for(var t in a)("object"==typeof exports?exports:e)[t]=a[t]}}(self,(function(){return(e=jQuery).extend(!0,e.summernote.lang,{"fi-FI":{font:{bold:"Lihavointi",i... | PypiClean |
/pyfirecrest-1.5.1-py3-none-any.whl/firecrest/cli/__init__.py | import logging
import typer
import firecrest as fc
from firecrest import __app_name__, __version__
from typing import List, Optional
from enum import Enum
from rich import box
from rich.console import Console
from rich.logging import RichHandler
from rich.table import Table
from rich.theme import Theme
app = typer... | PypiClean |
/ykenan_file-0.2.3-py3-none-any.whl/ykenan_file/_read_.py |
import pandas as pd
from ykenan_log import Logger
'''
* @Author : YKenan
* @Description : file Read
'''
class Read:
"""
Read file content
"""
def __init__(
self,
sep='\t',
line_terminator="\n",
encoding: str = "utf-8",
orient: str = "records",
... | PypiClean |
/pytest_bdd_ng-1.2.1-py3-none-any.whl/pytest_bdd/model/scenario.py | from __future__ import annotations
import uuid
from typing import TYPE_CHECKING, cast
from attr import Factory, attrib, attrs
from marshmallow import Schema, fields, post_load
from pytest_bdd.ast import Scenario as ASTScenario
from pytest_bdd.ast import Step as ASTStep
from pytest_bdd.ast import TableRow as ASTTable... | PypiClean |
/ccc-gistemp-0.6.1.tar.gz/ccc-gistemp-0.6.1/CCCgistemp/tool/grid.py | # Regular expression used to match/validate the "when" argument.
RE_WHEN = r'(\d{4})-(\d{2})'
def map(when, inp, out):
"""Take a ccc-gistemp subbox file in V2 mean format as *inp* and
produce an SVG file on *out*."""
import math
import re
out.write("""<svg
xmlns="http://www.w3.org/2000/svg... | PypiClean |
/last_will-0.1.9.tar.gz/last_will-0.1.9/last_will/check_in.py | from emails import send_email
from twilio.rest import Client
from pathlib import Path
from datetime import date, datetime
import json
from crontab import CronTab
class Check:
def __init__(self, last_check_in, deadline=None, warning_sent=False):
self.last_check_in = last_check_in # The last day last_will.... | PypiClean |
/m9s-trytond-6.0.35.tar.gz/m9s-trytond-6.0.35/trytond/ir/cron.py | import datetime
import time
from dateutil.relativedelta import relativedelta
import logging
from trytond import backend
from trytond.config import config
from trytond.model import (
ModelView, ModelSQL, DeactivableMixin, fields, dualmethod)
from trytond.pool import Pool
from trytond.pyson import Eval
from trytond.... | PypiClean |
/trident_chemwidgets-0.2.1.tar.gz/trident_chemwidgets-0.2.1/docs/doctrees/nbsphinx/examples/InteractiveMolecule_widget.ipynb | # Using the InteractiveMolecule widget
For this example we need to install RDKit. Note that you will need conda to install RDKit.
```shell
!conda install -c conda-forge rdkit
```
Now we can import the `trident_chemwidgets` and the `pandas` lib to import our csv dataset.
```
import trident_chemwidgets as tcw
impo... | PypiClean |
/mood.event-1.1.1.tar.gz/mood.event-1.1.1/README.txt |
mood.event
Python libev interface
libev is an event loop: you register interest in certain events (such as a file
descriptor being readable or a timeout occurring), and it will manage these
event sources and provide your program with events.
To do this, it must take more or less complete control over your process (o... | PypiClean |
/atmosphere-cli-1.0.0.tar.gz/atmosphere-cli-1.0.0/atmosphere/maintenance_record.py | import logging
from cliff.lister import Lister
from cliff.show import ShowOne
from atmosphere.api import AtmosphereAPI
from atmosphere.utils import ts_to_isodate
class MaintenanceRecordList(Lister):
"""
List maintenance records for Atmosphere.
"""
log = logging.getLogger(__name__)
def get_parse... | PypiClean |
/gandi.cli-1.6-py3-none-any.whl/gandi/cli/core/utils/xmlrpc.py | from __future__ import print_function
import sys
try:
import xmlrpc.client as xmlrpclib
except ImportError:
import xmlrpclib
try:
import requests
except ImportError:
print('python requests is required, please reinstall.', file=sys.stderr)
sys.exit(1)
class RequestsTransport(xmlrpclib.Transport)... | PypiClean |
/Products.csvreplicata-1.1.13.zip/Products.csvreplicata-1.1.13/Products/csvreplicata/handlers/file.py |
__author__ = """Eric BREHAULT <eric.brehault@makina-corpus.org>"""
__docformat__ = 'plaintext'
import os
import logging
from zope import interface
from Products.CMFPlone.utils import normalizeString
from Products.csvreplicata.exceptions import *
from Products.csvreplicata.interfaces import ICSVFile
from base impo... | PypiClean |
/django-cms_wg-3.0.0.beta2.tar.gz/django-cms_wg-3.0.0.beta2/docs/upgrade/3.0.rst | #################
3.0 release notes
#################
*****************
What's new in 3.0
*****************
.. _upgrade-to-3.0:
.. warning:: Upgrading from previous versions
3.0 introduces some changes that **require** action if you are upgrading
from a previous version.
New Frontend Editing
============... | PypiClean |
/movieFinderIMDB-0.0.5.tar.gz/movieFinderIMDB-0.0.5/.eggs/python_dateutil-2.8.2-py3.9.egg/dateutil/parser/isoparser.py | from datetime import datetime, timedelta, time, date
import calendar
from dateutil import tz
from functools import wraps
import re
import six
__all__ = ["isoparse", "isoparser"]
def _takes_ascii(f):
@wraps(f)
def func(self, str_in, *args, **kwargs):
# If it's a stream, read the whole thing
... | PypiClean |
/retro_data_structures-0.23.0-py3-none-any.whl/retro_data_structures/properties/corruption/objects/ContextActionButtonPressing.py | import dataclasses
import struct
import typing
from retro_data_structures.game_check import Game
from retro_data_structures.properties.base_property import BaseObjectType
from retro_data_structures.properties.corruption.archetypes.EditorProperties import EditorProperties
from retro_data_structures.properties.corruptio... | PypiClean |
/graphql_core-3.3.0a2.tar.gz/graphql_core-3.3.0a2/docs/modules/type.rst | Type
====
.. currentmodule:: graphql.type
.. automodule:: graphql.type
:no-members:
:no-inherited-members:
Definition
----------
Predicates
^^^^^^^^^^
.. autofunction:: is_composite_type
.. autofunction:: is_enum_type
.. autofunction:: is_input_object_type
.. autofunction:: is_input_type
.. autofunction:: is... | PypiClean |
/aws_cost_report-0.0.6-py3-none-any.whl/costreport/main.py | import subprocess
import json
import datetime
from dateutil import relativedelta
import locale
import argparse
from argparse import RawTextHelpFormatter as rawtxt
import decimal
import pkg_resources
class Bcolors:
CYAN = '\033[96m'
MAGENTA = '\033[95m'
GREY = '\033[90m'
OKBLUE = '\033[94m'
OKGREEN ... | PypiClean |
/mah51_biopython-1.1-cp39-cp39-macosx_12_0_arm64.whl/Bio/SeqIO/IgIO.py | from Bio.Seq import Seq
from Bio.SeqRecord import SeqRecord
from .Interfaces import SequenceIterator
class IgIterator(SequenceIterator):
"""Parser for IntelliGenetics files."""
def __init__(self, source):
"""Iterate over IntelliGenetics records (as SeqRecord objects).
source - file-like obj... | PypiClean |
/azure-confidentialledger-1.1.1.zip/azure-confidentialledger-1.1.1/azure/confidentialledger/receipt/_claims_digest_computation.py | """Algorithm implementation for computing Azure Confidential Ledger application claims."""
from base64 import b64decode
from hashlib import sha256
import hmac
from typing import Any, Dict, List, cast
from azure.confidentialledger.receipt._claims_models import (
ApplicationClaim,
LedgerEntryClaim,
ClaimDig... | PypiClean |
/plonetheme.office-1.0.zip/plonetheme.office-1.0/plonetheme/office/static/bower_components/jquery/src/offset.js | define([
"./core",
"./var/strundefined",
"./core/access",
"./css/var/rnumnonpx",
"./css/curCSS",
"./css/addGetHookIf",
"./css/support",
"./core/init",
"./css",
"./selector" // contains
], function( jQuery, strundefined, access, rnumnonpx, curCSS, addGetHookIf, support ) {
var docElem = window.document.docum... | PypiClean |
/music_kraken-1.2.0-py3-none-any.whl/music_kraken/metadata/metadata_search.py | from typing import List
import musicbrainzngs
from ..utils.shared import *
from ..utils.object_handeling import get_elem_from_obj, parse_music_brainz_date
logger = SEARCH_LOGGER
MAX_PARAMETERS = 3
OPTION_TYPES = ['artist', 'release_group', 'release', 'recording']
class Option:
def __init__(self, type_: str, id... | PypiClean |
/line-bot-sdk-3.3.0.tar.gz/line-bot-sdk-3.3.0/linebot/v3/messaging/models/get_webhook_endpoint_response.py | from __future__ import annotations
import pprint
import re # noqa: F401
import json
from pydantic.v1 import BaseModel, Field, StrictBool, StrictStr
class GetWebhookEndpointResponse(BaseModel):
"""
GetWebhookEndpointResponse
https://developers.line.biz/en/reference/messaging-api/#get-webhook-endpoint-in... | PypiClean |
/golismero-2.0.3.tar.gz/golismero-2.0.3/thirdparty_libs/django/middleware/common.py | import hashlib
import logging
import re
from django.conf import settings
from django import http
from django.core.mail import mail_managers
from django.utils.http import urlquote
from django.utils import six
from django.core import urlresolvers
logger = logging.getLogger('django.request')
class CommonMiddleware(ob... | PypiClean |
/aioes-0.7.2-py3-none-any.whl/aioes-0.7.2.dist-info/DESCRIPTION.rst | asyncio client library for elasticsearch
=========================================
**aioes** is a asyncio_ compatible library for working with Elasticsearch_
.. image:: https://travis-ci.org/aio-libs/aioes.svg?branch=master
:target: https://travis-ci.org/aio-libs/aioes
.. image:: https://codecov.io/gh/aio-libs/a... | PypiClean |
/python_polar_coding-0.0.1-py3-none-any.whl/python_polar_coding/polar_codes/base/codec.py | import abc
from typing import Union
from operator import itemgetter
import numpy as np
from python_polar_coding.polar_codes import pcc, utils
from . import encoder
class BasePolarCodec(metaclass=abc.ABCMeta):
"""Basic codec for Polar code.
Includes code construction.
Defines the basic workflow for enc... | PypiClean |
/alipay-sdk-python-pycryptodome-3.3.202.tar.gz/alipay-sdk-python-pycryptodome-3.3.202/alipay/aop/api/domain/KoubeiAdvertDataPromotesummaryDateBatchqueryModel.py | import json
from alipay.aop.api.constant.ParamConstants import *
class KoubeiAdvertDataPromotesummaryDateBatchqueryModel(object):
def __init__(self):
self._adv_id = None
self._end_date = None
self._ext_info = None
self._start_date = None
self._voucher_name = None
@pr... | PypiClean |
/msgraph-sdk-1.0.0a3.tar.gz/msgraph-sdk-1.0.0a3/msgraph/generated/users/item/get_mail_tips/get_mail_tips_post_request_body.py | from __future__ import annotations
from kiota_abstractions.serialization import AdditionalDataHolder, Parsable, ParseNode, SerializationWriter
from typing import Any, Callable, Dict, List, Optional, Union
from ....models import mail_tips_type
class GetMailTipsPostRequestBody(AdditionalDataHolder, Parsable):
"""
... | PypiClean |
/google_cloud_pipeline_components-2.3.0-py3-none-any.whl/google_cloud_pipeline_components/_implementation/model_evaluation/llm_classification_postprocessor/component.py | """LLM Classification Postprocessor component."""
from typing import List, NamedTuple, Optional
from google_cloud_pipeline_components import utils as gcpc_utils
from google_cloud_pipeline_components._implementation.model_evaluation import utils
from google_cloud_pipeline_components._implementation.model_evaluation im... | PypiClean |
/openfl-1.5.tar.gz/openfl-1.5/openfl-tutorials/experimental/Global_DP/Workflow_Interface_Mnist_Implementation_1.py |
# Co-authored-by: Anindya S. Paul <anindya.s.paul@intel.com>
# Co-authored-by: Brandon Edwards <brandon.edwards@intel.com>
# Co-authored-by: Mansi Sharma <mansi.sharma@intel.com>
from clip_optimizer import ClipOptimizer
from copy import deepcopy
import torch.nn as nn
import torch.nn.functional as F
import torch.optim... | PypiClean |
/pulumi_google_native-0.31.2a1689827148.tar.gz/pulumi_google_native-0.31.2a1689827148/pulumi_google_native/retail/v2/_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__ = [
'GoogleCloudRetailV2AudienceArgs',
'GoogleCloudRetailV2ColorInfoArgs',
'GoogleCloudRetailV2ConditionQueryTermArg... | PypiClean |
/sparsestack-0.4.1.tar.gz/sparsestack-0.4.1/README.md | 
[](https://pypi.org/project/sparsestack/)
[](https://anaconda.org/conda-forge/sparsestack)
![GitHub Workflow ... | PypiClean |
/panoptes_aggregation-4.0.0.tar.gz/panoptes_aggregation-4.0.0/panoptes_aggregation/extractors/sw_graphic_extractor.py | from .extractor_wrapper import extractor_wrapper
from collections import OrderedDict
def exist_and_finite(d, key):
return (key in d) and (d[key] != 'NaN')
@extractor_wrapper()
def sw_graphic_extractor(classification, **kwargs):
'''Extract all graphics data from a classification
Parameters
---------... | PypiClean |
/pyhank-2.4.0.tar.gz/pyhank-2.4.0/docs/examples/literature_comparison.py | import numpy as np
import matplotlib.pyplot as plt
import scipy.special as scipybessel
from pyhank import HankelTransform
# %%
# First we will reproduce figure 1 of
#
# .. [#Guizar] *"Computation of quasi-discrete Hankel transforms of the integer
# order for propagating optical wave fields"*
# Manuel Guizar-... | PypiClean |
/highcharts_stock-1.3.0.tar.gz/highcharts_stock-1.3.0/docs/api/options/series/data/treemap.rst | ##########################################################################################
:mod:`.treemap <highcharts_stock.options.series.data.treemap>`
##########################################################################################
.. contents:: Module Contents
:local:
:depth: 3
:backlinks: entry
-... | PypiClean |
/channelengine-merchant-api-client-2.13.0.tar.gz/channelengine-merchant-api-client-2.13.0/channelengine_merchant_api_client/model/merchant_product_bundle_response.py | import re # noqa: F401
import sys # noqa: F401
from channelengine_merchant_api_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,... | PypiClean |
/crosslab_soa_service_message-0.2.4.tar.gz/crosslab_soa_service_message-0.2.4/src/crosslab/soa_services/message/message_service.py | import json
from typing import Literal, Union
from crosslab.soa_client.connection import Connection, DataChannel
from crosslab.soa_client.service import Service
from pyee.asyncio import AsyncIOEventEmitter
from crosslab.soa_services.message.messages import (
MessageServiceConfig,
MessageServiceEvent,
)
clas... | PypiClean |
/nni_upload_test-0.7.1904290925-py3-none-win_amd64.whl/nni_upload_test-0.7.1904290925.data/data/nni/node_modules/rx/ts/rx.lite.extras.d.ts | declare module Rx {
export interface Observer<T> {
/**
* Creates a notification callback from an observer.
* @returns The action that forwards its input notification to the underlying observer.
*/
toNotifier(): (notification: Notification<T>) => void;
/**
* Hides t... | PypiClean |
/pythondata_misc_opentitan-0.0.post5512-py3-none-any.whl/pythondata_misc_opentitan/resources/sw/device/benchmarks/coremark/README.md | # Building CoreMark
To build CoreMark under meson:
```sh
cd "${REPO_TOP}"
./meson_init.sh
ninja -C build-out sw/device/benchmarks/coremark/coremark_export_${DEVICE}
```
Where ${DEVICE} is one of 'sim_verilator' or 'fpga_nexysvideo'
This will give you a .bin and .elf file (suitable for either spiflash or
giving dire... | PypiClean |
/ambulance_game-0.0.7.tar.gz/ambulance_game-0.0.7/nbs/src/Markov/closed_form_formula_of_pi/Permutations_algorithm.ipynb | ```
import math
import numpy as np
import functools
import sympy as sym
```
## Valid permutations example: D=2, L=2, R=2
- $\textbf{[D,L,R,R,D,L]}$
- $\textbf{[L,L,D,R,R,D]}$
- $\textbf{[L,R,D,L,R,D]}$
## Rules:
- Permutations must not end in R
- Permutations must not include an R followed by an L
## Invalid permutat... | PypiClean |
/edk2-basetools-0.1.49.tar.gz/edk2-basetools-0.1.49/edk2basetools/GenFds/FfsInfStatement.py |
##
# Import Modules
#
from __future__ import absolute_import
from . import Rule
import edk2basetools.Common.LongFilePathOs as os
from io import BytesIO
from struct import *
from .GenFdsGlobalVariable import GenFdsGlobalVariable
from .Ffs import SectionSuffix,FdfFvFileTypeToFileType
import subprocess
import sys
from . ... | PypiClean |
/xmpppy-0.7.1.tar.gz/xmpppy-0.7.1/xmpp/features.py |
# $Id$
"""
This module contains variable stuff that is not worth splitting into separate modules.
Here is:
DISCO client and agents-to-DISCO and browse-to-DISCO emulators.
IBR and password manager.
jabber:iq:privacy methods
All these methods takes 'disp' first argument that should be already connected
(and... | PypiClean |
/latimes-appengine-template-0.022.tar.gz/latimes-appengine-template-0.022/appengine_template/google_appengine/lib/django_1_2/django/core/management/commands/makemessages.py | import fnmatch
import glob
import os
import re
import sys
from itertools import dropwhile
from optparse import make_option
from subprocess import PIPE, Popen
from django.core.management.base import CommandError, BaseCommand
from django.utils.text import get_text_list
pythonize_re = re.compile(r'(?:^|\n)\s*//')
plural... | PypiClean |
/pybaseutils-0.9.1.tar.gz/pybaseutils-0.9.1/test_py/image_correction/demo_correction_v1.py | import cv2
import numpy as np
from pybaseutils import geometry_tools, image_utils, file_utils
class ImageCorrection(object):
"""图像矫正程序"""
@staticmethod
def get_hough_lines(img: np.ndarray, rho=1, theta=np.pi / 180, threshold=100, max_angle=35, max_lines=50,
thickness=2, vis=False)... | PypiClean |
/azure_mgmt_storagepool-1.1.0b1-py3-none-any.whl/azure/mgmt/storagepool/_serialization.py |
# pylint: skip-file
from base64 import b64decode, b64encode
import calendar
import datetime
import decimal
import email
from enum import Enum
import json
import logging
import re
import sys
import codecs
try:
from urllib import quote # type: ignore
except ImportError:
from urllib.parse import quote # type:... | PypiClean |
/edalize-0.5.1.tar.gz/edalize-0.5.1/doc/dev/extend.rst | Extending Edalize
=================
Edalize comes with support for a large number of tools and flows, but there are always more. This section will look at how to add more tools and flows to Edalize, either as contributions to the official Edalize distribution, or as code that can live outside of the Edalize code base.... | PypiClean |
/ansys_meshing_prime-0.4.0.tar.gz/ansys_meshing_prime-0.4.0/src/ansys/meshing/prime/autogen/morpher.py | from __future__ import annotations
from ansys.meshing.prime.internals.comm_manager import CommunicationManager
from ansys.meshing.prime.params.primestructs import *
from ansys.meshing.prime.autogen.coreobject import *
from typing import List, Any, Union
class Morpher(CoreObject):
"""Morpher contain functionalities... | PypiClean |
/mis_modulos-0.1.tar.gz/mis_modulos-0.1/werkzeug/datastructures.py | import base64
import codecs
import mimetypes
import os
import re
from collections.abc import Collection
from collections.abc import MutableSet
from copy import deepcopy
from io import BytesIO
from itertools import repeat
from os import fspath
from . import exceptions
from ._internal import _missing
def is_immutable(... | PypiClean |
/bind9_parser-0.9.8.tar.gz/bind9_parser-0.9.8/bind9_parser/isc_optview.py | from pyparsing import Group, Keyword, OneOrMore, Literal, \
CaselessLiteral, Combine, Optional, Word, alphanums, ZeroOrMore,\
ungroup
from bind9_parser.isc_utils import isc_boolean, semicolon, lbrack, rbrack, \
squote, dquote, number_type, name_type, minute_type, seconds_type, \
byte_type, parse_me, run... | PypiClean |
/vector-1.0.0.tar.gz/vector-1.0.0/docs/changelog.md | # Changelog
## Version 1.0
### Version 1.0.0
#### Features
- feat: add constructors for `VectorObject3D` and `MomentumObject3D` [#231][]
- feat: add constructors for `VectorObject4D` and `MomentumObject4D` [#232][]
- feat: update `to_Vector3D` to pass new coordinate values [#278][]
- feat: allow passing coordinates... | PypiClean |
/pyne_script_utilities-1.0.5-py3-none-any.whl/pyne_script/series.py | import __future__
from typing import Any
import copy
import numpy as np
class SeriesHeadObject:
value: float | int
key: str | int
track_history_mode: int
window_size: int | None
values: np.ndarray | None
history: list[int | float] | None
head_position: list[int]
def __init__(
... | PypiClean |
/opentimestamps-client-0.7.1.tar.gz/opentimestamps-client-0.7.1/otsclient/cmds.py |
import sys
import argparse
import binascii
import io
import logging
import os
import time
import urllib.request
import threading
import bitcoin
import bitcoin.rpc
from queue import Queue, Empty
from bitcoin.core import b2x, b2lx, lx, CTxOut, CTransaction
from bitcoin.core.script import CScript, OP_RETURN
from binas... | PypiClean |
/terra-layer-0.7.12.tar.gz/terra-layer-0.7.12/terra_layer/style/utils.py | from django.db import connection
import numbers
import math
from functools import reduce
style_type_2_legend_shape = {
"fill-extrusion": "square",
"fill": "square",
"circle": "circle",
"symbol": "symbol",
"line": "line",
}
stroke_color_props = ["line_color", "stroke_color", "outline_color"]
stroke... | PypiClean |
/afs2_model-3.8.2-py3-none-any.whl/afs/utils.py | import sys
import time
import json
import requests
import logging
import boto3
import hashlib
import threading
from botocore.client import Config
from Crypto.PublicKey import RSA
from Crypto.Cipher import PKCS1_v1_5 as Cipher_PKCS1_v1_5
_logger = logging.getLogger(__name__)
class InvalidStatusCode(Exception):
def... | PypiClean |
/latimes-appengine-template-0.022.tar.gz/latimes-appengine-template-0.022/appengine_template/google_appengine/google/appengine/ext/mapreduce/input_readers.py | __all__ = ["Error", "BadReaderParamsError", "InputReader",
"AbstractDatastoreInputReader", "BlobstoreLineInputReader",
"BlobstoreZipInputReader", "BlobstoreZipLineInputReader",
"ConsistentKeyReader", "DatastoreEntityInputReader",
"DatastoreInputReader", "DatastoreKeyInputRead... | PypiClean |
/bta-0.6.tar.gz/bta-0.6/README.rst | ===
BTA
===
About BTA
=========
BTA is an open-source Active Directory security audit framework. Its goal is to help
auditors harvest the information they need to answer such questions as:
* Who has rights over a given object (computer, user account, etc.) ?
* Who can read a given mailbox ?
* Which are the accounts ... | PypiClean |
/fedordb-1.0.tar.gz/fedordb-1.0/modules/Base.py | import sys
import os
import signal
import json
from threading import Thread
def load(location, auto_dump, sig=True):
return FedorDB(location, auto_dump, sig)
class FedorDB(object):
key_string_error = TypeError('Key/name must be a string!')
def __init__(self, location, auto_dump, sig):
self.loa... | PypiClean |
/gcid-150.tar.gz/gcid-150/docs/evidence.rst | .. _evidence:
.. title:: Evidence
.. _haldol:
.. raw:: html
<br><br>
**haldol**
.. raw:: html
<br>
.. image:: ECHAhaldol.png
:width: 100%
.. raw:: html
<br><br>
.. _clozapine:
**clozapine**
.. raw:: html
<br>
.. image:: ECHAclozapine.png
:width: 100%
.. raw:: html
<br><br>
.. _... | PypiClean |
/onnxruntime_cann-1.15.1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl/onnxruntime/transformers/fusion_skiplayernorm.py |
from logging import getLogger
from fusion_base import Fusion
from fusion_utils import NumpyHelper
from onnx import helper
from onnx_model import OnnxModel
logger = getLogger(__name__)
class FusionSkipLayerNormalization(Fusion):
"""
Fuse Add + LayerNormalization into one node: SkipLayerNormalization
Not... | PypiClean |
/dagknows-0.0.39-py3-none-any.whl/dagcli/root.py | import typer
from dagcli.configs import DagKnowsConfig
from dagcli.client import newapi
import json, os, sys
app = typer.Typer(pretty_exceptions_show_locals=False)
DISABLE_LOGIN = False
# This callback applies to *all* commands
@app.callback()
def common_params(ctx: typer.Context,
dagknows_home: st... | PypiClean |
/django-jython-1.8.0b1.tar.gz/django-jython-1.8.0b1/doj/db/backends/sqlite/creation.py |
import os
import sys
from django.core.exceptions import ImproperlyConfigured
from django.utils.six.moves import input
from doj.db.backends import JDBCBaseDatabaseCreation as BaseDatabaseCreation
class DatabaseCreation(BaseDatabaseCreation):
def sql_for_pending_references(self, model, style, pending_references... | PypiClean |
/easylearn-0.1.20a0.tar.gz/easylearn-0.1.20a0/eslearn/stylesheets/PyQt5_stylesheets/PyQt5_stylesheets/__init__.py | import logging
import platform
__version__ = "2.3.0"
def _logger():
return logging.getLogger('qdarkstyle')
def load_stylesheet(pyside=True):
"""
Loads the stylesheet. Takes care of importing the rc module.
:param pyside: True to load the pyside rc file, False to load the PyQt rc file
:return... | PypiClean |
/a10ctl-0.3.1.tar.gz/a10ctl-0.3.1/acos_client/v30/slb/template/ssl.py |
import acos_client.errors as acos_errors
import acos_client.v30.base as base
class BaseSSL(base.BaseV30):
def get(self, name, **kwargs):
return self._get(self.url_prefix + name, **kwargs)
def exists(self, name):
try:
self.get(name)
return True
except acos_err... | PypiClean |
/django-fiber-1.10.tar.gz/django-fiber-1.10/fiber/migrations/0001_initial.py | from django.db import models, migrations
import fiber.utils.fields
import django.db.models.deletion
import fiber.utils.json
class Migration(migrations.Migration):
dependencies = [
]
operations = [
migrations.CreateModel(
name='ContentItem',
fields=[
('id',... | PypiClean |
/thonny_turcar-4.1.3-py3-none-any.whl/thonny/locale/nb_NO/HELP_CONTENT/index.rst | Funksjonalitet
==============
* `Shell <shell.rst>`_
* `Using debuggers <debuggers.rst>`_ (engelsk)
* `Using 3rd party packages <packages.rst>`_ (engelsk)
* `Docking user windows <dock.rst>`_ (engelsk)
* `Special support for Turtle programs <turtle.rst>`_ (engelsk)
* `Specifying program arguments <program_arguments.rs... | PypiClean |
/multiplex-plot-0.5.0.tar.gz/multiplex-plot-0.5.0/multiplex/slope/slope.py | from collections.abc import Iterable
from numbers import Number
import os
import sys
sys.path.append(os.path.join(os.path.abspath(os.path.dirname(__file__)), '..'))
import util
from labelled import LabelledVisualization
class Slope(LabelledVisualization):
"""
The :class:`~Slope` class builds on the :class:`~... | PypiClean |
/jag_panzer-0.2.49-py3-none-any.whl/jag_panzer/libs/bs4/builder/_lxml.py | __license__ = "MIT"
__all__ = [
'LXMLTreeBuilderForXML',
'LXMLTreeBuilder',
]
try:
from collections.abc import Callable # Python 3.6
except ImportError as e:
from collections import Callable
from io import BytesIO
from io import StringIO
from lxml import etree
from bs4.element import (
Commen... | PypiClean |
/spyder-terminal-1.2.2.tar.gz/spyder-terminal-1.2.2/spyder_terminal/server/static/components/uglify-js/lib/scope.js | "use strict";
function SymbolDef(scope, orig, init) {
this.name = orig.name;
this.orig = [ orig ];
this.init = init;
this.eliminated = 0;
this.scope = scope;
this.references = [];
this.replaced = 0;
this.global = false;
this.mangled_name = null;
this.undeclared = false;
this... | PypiClean |
/arxiv-auth-1.0.0rc1.tar.gz/arxiv-auth-1.0.0rc1/arxiv_auth/legacy/endorsements.py | from typing import List, Dict, Optional, Callable, Set, Iterable
from collections import Counter
from datetime import datetime
from functools import lru_cache as memoize
from itertools import groupby
from sqlalchemy.sql.expression import literal
from . import util
from .. import domain
from arxiv import taxonomy
from... | PypiClean |
/salt_finder_charts-0.3.7-py3-none-any.whl/salt_finder_charts/finder_chart.py | import sys
from datetime import datetime
from astropy.units import Quantity
from astropy import units as u
import numpy as np
import aplpy
import pytz
from typing import Any, BinaryIO, Callable, Generator, List, Optional, Tuple, Union
from salt_finder_charts import __version__
from salt_finder_charts.ephemerides impo... | PypiClean |
/tempyest-0.0.0-py3-none-any.whl/tempyest-0.0.0.dist-info/LICENSE.md | MIT License
Copyright (c) 2022 Maciej Bromirski
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, publish, ... | PypiClean |
/visor_gligen-1.6-py3-none-any.whl/visor_gligen/ldm/modules/losses/contperceptual.py | import torch
import torch.nn as nn
from taming.modules.losses.vqperceptual import * # TODO: taming dependency yes/no?
class LPIPSWithDiscriminator(nn.Module):
def __init__(self, disc_start, logvar_init=0.0, kl_weight=1.0, pixelloss_weight=1.0,
disc_num_layers=3, disc_in_channels=3, disc_factor=... | PypiClean |
/pexpect-nm-2.6.tar.gz/pexpect-nm-2.6/examples/monitor.py | import os, sys, time, re, getopt, getpass
import traceback
import pexpect
#
# Some constants.
#
COMMAND_PROMPT = '[#$] ' ### This is way too simple for industrial use -- we will change is ASAP.
TERMINAL_PROMPT = '(?i)terminal type\?'
TERMINAL_TYPE = 'vt100'
# This is the prompt we get if SSH does not have the remote h... | PypiClean |
/KratosSwimmingDEMApplication-9.2.0-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl/KratosMultiphysics/SwimmingDEMApplication/daitche_quadrature/hinsberg_optimization_4.py | import math
import cmath
import mpmath
import matplotlib.pyplot as plt
from bigfloat import *
import numpy as np
import scipy
import scipy.optimize as opt
import scipy.integrate as integ
import cmath
def DawsonIntegral(x):
return 0.5 * sqrt(math.pi) * exp(- x ** 2) * scipy.special.erfi(x)
def FindZero(f, x0):
... | PypiClean |
/sphinxcontrib-specdomain-1.04.02.tar.gz/sphinxcontrib-specdomain-1.04.02/test/python-example-source.rst | .. $Id: python-example-source.rst 963 2012-06-22 22:58:50Z jemian $
====================================================
Example Python source file documentation
====================================================
Python example
^^^^^^^^^^^^^^
.. py:function:: python_function(t = None)
:param t: time_t object o... | PypiClean |
/pypcapkit-1.2.1-cp310-none-any.whl/pcapkit/vendor/mh/cga_sec.py | import csv
import re
import sys
from pcapkit.vendor.default import Vendor
__all__ = ['CGASec']
class CGASec(Vendor):
"""CGA SEC"""
#: Value limit checker.
FLAG = 'isinstance(value, int) and 0 <= value <= 0b111'
#: Link to registry.
LINK = 'https://www.iana.org/assignments/cga-message-types/cga-... | PypiClean |
/tf-transformers-2.0.0.tar.gz/tf-transformers-2.0.0/src/tf_transformers/models/bart/convert.py | import numpy as np
import tensorflow as tf
from absl import logging
from tf_transformers.core import keras_utils
def assert_model_results(model):
def get_expected_text(model_name):
print("Model name", model_name)
if model_name == "bert_base_uncased":
expected_text = ". i want to buy t... | PypiClean |
/MetaCSV-0.1.1.tar.gz/MetaCSV-0.1.1/metacsv/io/to_csv.py | from collections import OrderedDict
from .yaml_tools import ordered_dump
from .._compat import string_types, has_iterkeys, iterkeys, text_type, text_to_native
def _header_to_file_object(fp, attrs=None, coords=None, variables=None):
attr_dict = OrderedDict()
if attrs != None:
attr_dict.update(attrs._... | PypiClean |
/mediaserver-api-client-4.2.tar.gz/mediaserver-api-client-4.2/ms_client/lib/upload.py | from pathlib import Path
import logging
import math
import time
logger = logging.getLogger(__name__)
def chunked_upload(client, file_path, remote_path=None, progress_callback=None,
progress_data=None, timeout=300, max_retry=10):
"""
Function to send a file using the chunked upload.
"""... | PypiClean |
/abl.jquery-1.5-1.tar.gz/abl.jquery-1.5-1/abl/jquery/core/widgets.py | from formencode import All
from formencode.schema import Schema
from formencode.foreach import ForEach
from tg import tmpl_context as c
from tw.api import JSLink, CSSLink, Widget
from tw.forms import (
FormFieldRepeater,
TextField,
TextArea,
)
from abl.jquery.core import jquery_js
from abl.jquery.core.base ... | PypiClean |
/Flask_AdminLTE3-1.0.9-py3-none-any.whl/flask_adminlte3/static/plugins/moment/locale/fr.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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.