id stringlengths 1 8 | text stringlengths 6 1.05M | dataset_id stringclasses 1
value |
|---|---|---|
/speechpy-fast-2.4.tar.gz/speechpy-fast-2.4/speechpy/feature.py | from __future__ import division
import numpy as np
from . import processing
from scipy.fftpack import dct
from . import functions
try:
from functools import lru_cache
except ImportError:
from backports.functools_lru_cache import lru_cache
@lru_cache()
def filterbanks(num_filter, fftpoints, sampling_freq, lo... | PypiClean |
/infi.app_repo-1.3.1-py3-none-any.whl/infi/app_repo/install.py | from shutil import copy, rmtree
from infi.gevent_utils.os import path, fopen, symlink, remove
from infi.gevent_utils.glob import glob
from pkg_resources import resource_filename
from .utils import log_execute_assert_success, sign_rpm_package, sign_deb_package, ensure_directory_exists, find_files
from infi.gevent_utils.... | PypiClean |
/assetid-1.0.0.tar.gz/assetid-1.0.0/README.md | # assetid [](https://travis-ci.org/axiom-data-science/assetid)
An ocean data asset ID parser developed and used by [Axiom Data Science](http://axiomdatascience.com)
## Installation
##### Stable
pip install assetid
##### Development
pip... | PypiClean |
/pyalink-flink-1.11-1.4.0.tar.gz/pyalink-flink-1.11-1.4.0/pyalink/alink/pipeline/local_predictor.py | from abc import ABC
from typing import Sequence, Union, List
import numpy as np
from py4j.java_gateway import JavaObject
from ..common.types.file_system.file_system import FilePath
from ..common.types.bases.j_obj_wrapper import JavaObjectWrapper
from ..common.types.conversion.type_converters import py_list_to_j_array... | PypiClean |
/msgraph_beta_sdk-1.0.0a9-py3-none-any.whl/msgraph/generated/groups/item/sites/item/onenote/resources/item/onenote_resource_item_request_builder.py | from __future__ import annotations
from dataclasses import dataclass
from kiota_abstractions.get_path_parameters import get_path_parameters
from kiota_abstractions.method import Method
from kiota_abstractions.request_adapter import RequestAdapter
from kiota_abstractions.request_information import RequestInformation
fro... | PypiClean |
/pulumi_azure_nextgen-0.6.2a1613157620.tar.gz/pulumi_azure_nextgen-0.6.2a1613157620/pulumi_azure_nextgen/servicefabric/v20180201/get_cluster.py |
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union
from ... import _utilities, _tables
from . import outputs
__all__ = [
'GetClusterResult',
'AwaitableGetClusterResult',
'get_cluster',
]
@pulumi.output_type
class GetClusterResult:
"""
Th... | PypiClean |
/tf2_tensorflow_object_detection_api-2.2.0-cp37-cp37m-manylinux2010_x86_64.whl/tf2_tensorflow_object_detection_api-2.2.0.data/purelib/object_detection/metrics/coco_tools.py | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from collections import OrderedDict
import copy
import time
import numpy as np
from pycocotools import coco
from pycocotools import cocoeval
from pycocotools import mask
import six
from six.moves import range... | PypiClean |
/odoo12_addon_mrp_production_grouped_by_product-12.0.1.0.1-py3-none-any.whl/odoo/addons/mrp_production_grouped_by_product/models/mrp_production.py |
from dateutil.relativedelta import relativedelta
from odoo import api, fields, models
from odoo.tools import config
class MrpProduction(models.Model):
_inherit = 'mrp.production'
def _post_mo_merging_adjustments(self, vals):
"""Called when a new MO is merged onto existing one for adjusting the
... | PypiClean |
/azure-mgmt-monitor-6.0.2.tar.gz/azure-mgmt-monitor-6.0.2/azure/mgmt/monitor/v2018_09_01/aio/operations/_baselines_operations.py | import datetime
from typing import Any, AsyncIterable, Callable, Dict, Optional, TypeVar, Union
import urllib.parse
from azure.core.async_paging import AsyncItemPaged, AsyncList
from azure.core.exceptions import (
ClientAuthenticationError,
HttpResponseError,
ResourceExistsError,
ResourceNotFoundError,... | PypiClean |
/Toucan-0.0.0.tar.gz/Toucan-0.0.0/webmaster/packages/base/static/Webmaster/js-cookie/README.md | # JavaScript Cookie [](https://travis-ci.org/js-cookie/js-cookie) [](https://codeclimate.com/github/js-cookie/js-cookie)
A simple, lightweight JavaScript API for handling c... | PypiClean |
/botcity-googledrive-plugin-0.3.3.tar.gz/botcity-googledrive-plugin-0.3.3/README.md | # BotCity Google Drive Plugin - Python
## 🤖 Computer-vision based UI Automation
Recognize and interact with UI elements using state-of-art computer vision module.
Operate any UI interface independent of the technology or platform (desktop, web, terminal).
## 🐍 Generate Python Code while Interacting with your UI
... | PypiClean |
/benchling_api_client-2.0.207-py3-none-any.whl/benchling_api_client/v2/stable/models/workflow_task_group_create.py | from typing import Any, cast, Dict, List, Optional, Type, TypeVar, Union
import attr
from ..extensions import NotPresentError
from ..types import UNSET, Unset
T = TypeVar("T", bound="WorkflowTaskGroupCreate")
@attr.s(auto_attribs=True, repr=False)
class WorkflowTaskGroupCreate:
""" """
_schema_id: str
... | PypiClean |
/acapy-client-0.7.4.tar.gz/acapy-client-0.7.4/acapy_client/models/attribute_mime_types_result.py | from typing import Any, Dict, List, Type, TypeVar, Union
import attr
from ..models.attribute_mime_types_result_results import AttributeMimeTypesResultResults
from ..types import UNSET, Unset
T = TypeVar("T", bound="AttributeMimeTypesResult")
@attr.s(auto_attribs=True)
class AttributeMimeTypesResult:
"""
At... | PypiClean |
/elements-sdk-23.7.0.tar.gz/elements-sdk-23.7.0/elements_sdk/model/import_ai_model_request.py | import re # noqa: F401
import sys # noqa: F401
from elements_sdk.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 |
/tango_simlib-0.9.4-py3-none-any.whl/tango_simlib/tango_launcher.py | from __future__ import absolute_import, division, print_function
from future import standard_library
standard_library.install_aliases() # noqa: E402
import argparse
import os
import sys
from functools import partial
import tango
from builtins import range
from tango_simlib.compat import PYTHON_SYS_VERSION
parse... | PypiClean |
/euv-snapshot-imaging-spectrograph-0.1.1.tar.gz/euv-snapshot-imaging-spectrograph-0.1.1/docs/_templates/module_custom.rst | {{ name | escape | underline}}
.. automodule:: {{ fullname }}
{% block attributes %}
{% if attributes %}
.. rubric:: Module Attributes
.. autosummary::
:toctree:
{% for item in attributes %}
{{ item }}
{%- endfor %}
{% endif %}
{% endblock %}
{% block functions %}
... | PypiClean |
/commandman-0.4.2.tar.gz/commandman-0.4.2/README.md | # commandman
***

[](https://pypi.org/project/commandman/)
[:
from importlib_resources import files
else:
from importlib.resources import files # type: ignore
from pathlib import Path
from typing import Dict, List, Tuple, Union
_ex_name_filename = {'irish-coffee': 'bevvy-irish-coffee-2... | PypiClean |
/scipion-pkpd-1.0.1.tar.gz/scipion-pkpd-1.0.1/pkpd/protocols/protocol_pkpd_dissolution_ivivc_join.py |
import copy
import numpy as np
from scipy.interpolate import InterpolatedUnivariateSpline
import pyworkflow.protocol.params as params
from pkpd.objects import PKPDExperiment, PKPDSample, PKPDVariable
from pkpd.utils import computeXYmean, twoWayUniqueFloatValues
from .protocol_pkpd import ProtPKPD
class ProtPKPDDiss... | PypiClean |
/django-admin-adminlte-1.0.5.tar.gz/django-admin-adminlte-1.0.5/admin_adminlte/static/plugins/moment/locale/jv.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 |
/internationaltouch-oauth2client-4.1.4.tar.gz/internationaltouch-oauth2client-4.1.4/oauth2client/contrib/django_util/storage.py | from oauth2client import client
class DjangoORMStorage(client.Storage):
"""Store and retrieve a single credential to and from the Django datastore.
This Storage helper presumes the Credentials
have been stored as a CredentialsField
on a db model class.
"""
def __init__(self, model_class, key... | PypiClean |
/azure-mgmt-resource-23.1.0b1.zip/azure-mgmt-resource-23.1.0b1/azure/mgmt/resource/links/_management_link_client.py |
from typing import Any, Optional, TYPE_CHECKING
from azure.mgmt.core import ARMPipelineClient
from azure.profiles import KnownProfiles, ProfileDefinition
from azure.profiles.multiapiclient import MultiApiClientMixin
from ._configuration import ManagementLinkClientConfiguration
from ._serialization import Deserialize... | PypiClean |
/pulumi_azure_native-2.5.1a1693590910.tar.gz/pulumi_azure_native-2.5.1a1693590910/pulumi_azure_native/machinelearningservices/v20220201preview/job.py |
import copy
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from ... import _utilities
from . import outputs
from ._enums import *
from ._inputs import *
__all__ = ['JobArgs', 'Job']
@pulumi.input_type
class JobArgs:
def __init__(__self__, ... | PypiClean |
/scrapy_spider_auto_repair-0.1.4.tar.gz/scrapy_spider_auto_repair-0.1.4/spider_auto_repair/Data Extractor.py | import json
import urllib3
from os import system, makedirs
from os.path import exists
from chardet import detect
from multiprocessing import Pool, Manager
path = "C:/Users/t-vimeh/Pictures/GSoC/top500domains.csv"
dir_path = "C:/Users/t-vimeh/Pictures/GSoC/SnapShots/"
http = urllib3.PoolManager()
def auto_decode(data... | PypiClean |
/rentier-scrapy-proxy-rotator-0.6.2.tar.gz/rentier-scrapy-proxy-rotator-0.6.2/rentier_rotating_proxies/expire.py | from __future__ import division
import time
import random
import logging
import math
import attr
from .utils import extract_proxy_hostport
logger = logging.getLogger(__name__)
class Proxies(object):
"""
Expiring ranking proxies container.
A proxy can be in 3 states:
* good;
* dead;
* unch... | PypiClean |
/ghini.desktop-3.1.7.zip/ghini.desktop-3.1.7/bauble/plugins/plants/geography.py | from operator import itemgetter
from gi.repository import Gtk
from sqlalchemy import select, Column, Unicode, String, Integer, ForeignKey
from sqlalchemy.orm import object_session, relation, backref
import bauble.db as db
def get_species_in_geographic_area(geo):
"""
Return all the Species that have distrib... | PypiClean |
/bp-pysnmp-4.4.3.tar.gz/bp-pysnmp-4.4.3/pysnmp/carrier/asyncio/dispatch.py | import sys
import traceback
from pysnmp.carrier.base import AbstractTransportDispatcher
from pysnmp.error import PySnmpError
try:
import asyncio
except ImportError:
import trollius as asyncio
class AsyncioDispatcher(AbstractTransportDispatcher):
"""AsyncioDispatcher based on asyncio event loop"""
de... | PypiClean |
/neural_compressor-2.2.1-py3-none-any.whl/neural_compressor/experimental/benchmark.py | import os
import re
import sys
import numpy as np
import subprocess
import signal
import psutil
from threading import Thread
from ..adaptor import FRAMEWORKS
from ..objective import MultiObjective
from ..conf.config import BenchmarkConf
from ..conf.dotdict import DotDict
from ..utils import logger
from ..utils.utility ... | PypiClean |
/docsig-0.35.0.tar.gz/docsig-0.35.0/README.rst | |
.. image:: https://raw.githubusercontent.com/jshwi/docsig/master/docs/static/docsig.svg
:alt: docsig logo
:width: 50%
:align: center
|
.. image:: https://img.shields.io/badge/License-MIT-yellow.svg
:target: https://opensource.org/licenses/MIT
:alt: License
.. image:: https://img.shields.io/pypi/v/do... | PypiClean |
/cdktf_cdktf_provider_datadog-9.0.0-py3-none-any.whl/cdktf_cdktf_provider_datadog/__init__.py | import abc
import builtins
import datetime
import enum
import typing
import jsii
import publication
import typing_extensions
from typeguard import check_type
from ._jsii import *
__all__ = [
"api_key",
"application_key",
"authn_mapping",
"child_organization",
"cloud_configuration_rule",
"clo... | PypiClean |
/py-pure-client-1.38.0.tar.gz/py-pure-client-1.38.0/pypureclient/flasharray/FA_2_11/models/array_connection_path.py | import pprint
import re
import six
import typing
from ....properties import Property
if typing.TYPE_CHECKING:
from pypureclient.flasharray.FA_2_11 import models
class ArrayConnectionPath(object):
"""
Attributes:
swagger_types (dict): The key is attribute name
and the val... | PypiClean |
/Bedframe-0.13.5.tar.gz/Bedframe-0.13.5/bedframe/testing/_services.py |
__copyright__ = "Copyright (C) 2014 Ivan D Vasin"
__docformat__ = "restructuredtext"
import abc as _abc
from collections import Iterable as _Iterable, Mapping as _Mapping
from functools import partial as _partial
from itertools import chain as _chain
from operator import itemgetter as _itemgetter
from pprint import p... | PypiClean |
/myams_js-1.16.0.tar.gz/myams_js-1.16.0/pkg/js/ext/ace/theme-xcode.js | define("ace/theme/xcode",["require","exports","module","ace/lib/dom"], function(require, exports, module) {
exports.isDark = false;
exports.cssClass = "ace-xcode";
exports.cssText = "\
.ace-xcode .ace_gutter {\
background: #e8e8e8;\
color: #333\
}\
.ace-xcode .ace_print-margin {\
width: 1px;\
background: #e8e8e8\
}\
.... | PypiClean |
/azure_mgmt_containerservice-26.0.0-py3-none-any.whl/azure/mgmt/containerservice/v2022_07_02_preview/aio/_configuration.py |
from typing import Any, TYPE_CHECKING
from azure.core.configuration import Configuration
from azure.core.pipeline import policies
from azure.mgmt.core.policies import ARMHttpLoggingPolicy, AsyncARMChallengeAuthenticationPolicy
from .._version import VERSION
if TYPE_CHECKING:
# pylint: disable=unused-import,ungr... | PypiClean |
/discumz-1.3.1.tar.gz/discumz-1.3.1/discum/discum.py | from .start.login import Login
from .start.superproperties import SuperProperties
from .start.other import Other
from .guild.guild import Guild
from .messages.messages import Messages
from .user.user import User
from .stickers.stickers import Stickers
from .science.science import Science
from .RESTapiwrap import *
#... | PypiClean |
/boardex_salesforce-0.0.2.tar.gz/boardex_salesforce-0.0.2/boardex_salesforce/upload_to_salesforce.py | from .classes import class_download_salesforce as SalesForce
from .classes.global_var import logger, combined_contact_cvs_filepath, combined_company_cvs_filepath
from .classes.class_bx_sftp import local_dir, delete, upload_logs_to_sftp, bx_sftp
from .classes import global_var
from .classes import class_upload_to_salesf... | PypiClean |
/z3c.formwidget.ckeditor-2.0.0a1.zip/z3c.formwidget.ckeditor-2.0.0a1/src/z3c/formwidget/ckeditor/ckeditor-js/_source/core/dom/domobject.js | /*
Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
/**
* @fileOverview Defines the {@link CKEDITOR.editor} class, which is the base
* for other classes representing DOM objects.
*/
/**
* Represents a DOM object. This c... | PypiClean |
/beakerx-2.3.13.tar.gz/beakerx-2.3.13/js/src/forms/easyforms/DatePicker.ts |
import $ from 'jquery';
import moment from 'moment-timezone';
import flatpickr from 'flatpickr';
import {
LabeledDOMWidgetView as JupyterLabeledDOMWidgetView,
StringModel as JupyterStringModel,
} from '@jupyter-widgets/controls';
import { BEAKERX_MODULE_VERSION } from '../../version';
const datepickerOpts = {
d... | PypiClean |
/msgraph_beta_sdk-1.0.0a9-py3-none-any.whl/msgraph/generated/on_premises_publishing_profiles/item/agents/item/agent_groups/count/count_request_builder.py | from __future__ import annotations
from dataclasses import dataclass
from kiota_abstractions.get_path_parameters import get_path_parameters
from kiota_abstractions.method import Method
from kiota_abstractions.request_adapter import RequestAdapter
from kiota_abstractions.request_information import RequestInformation
fro... | PypiClean |
/sequel-core-0.0.2.tar.gz/sequel-core-0.0.2/sequel/benchmarks/buffer.py | import random
from typing import Any, Optional, Tuple, Union
import jax
import jax.numpy as jnp
import numpy as np
import torch
from torch import Tensor
PyJaxTensor = Union[torch.Tensor, np.ndarray]
class BufferDataset(torch.utils.data.Dataset):
def __init__(self, return_logits: bool = False) -> None:
s... | PypiClean |
/briantree-3.30.0.tar.gz/briantree-3.30.0/braintree/customer_search.py | from braintree.search import Search
class CustomerSearch:
address_extended_address = Search.TextNodeBuilder("address_extended_address")
address_first_name = Search.TextNodeBuilder("address_first_name")
address_last_name = Search.TextNodeBuilder("addres... | PypiClean |
/aiohttp_admin2-0.0.5-py3-none-any.whl/aiohttp_admin2/resources/mongo_resource/filters.py | import typing as t
from bson.objectid import ObjectId
from aiohttp_admin2.resources.abc import ABCFilter
__all__ = [
"GT",
"GTE",
"LT",
"LTE",
"EQ",
"NE",
"IN",
"NIN",
"Like",
"MongoBaseFilter",
"MongoQuery",
"default_filter_mapper"
]
MongoQuery = t.Dict[str, t.Any]... | PypiClean |
/datadog_api_client-2.16.0-py3-none-any.whl/datadog_api_client/v1/model/slo_history_monitor.py | from __future__ import annotations
from typing import List, Union, TYPE_CHECKING
from datadog_api_client.model_utils import (
ModelNormal,
cached_property,
none_type,
unset,
UnsetType,
)
if TYPE_CHECKING:
from datadog_api_client.v1.model.slo_error_budget_remaining_data import SLOErrorBudgetR... | PypiClean |
/SauceNAO-1.1.0.tar.gz/SauceNAO-1.1.0/saucenao/worker.py | import time
from typing import BinaryIO
try:
from titlesearch import get_similar_titles
except ImportError:
get_similar_titles = None
from saucenao import SauceNao, FileHandler
class Worker(SauceNao):
"""
Worker class for checking a list of files
"""
def __init__(self, files, *args, **kwarg... | PypiClean |
/django-alipay2-1.1.8.tar.gz/django-alipay2-1.1.8/alipay/admin.py | import logging
from urllib.parse import urlencode
import requests
from django.conf import settings
from django.contrib import admin
from django.urls import reverse
from django.utils.html import format_html
from alipay.alipay import AlipayCertClient, RefundResult
from alipay.models import Refund
logger = logging.getL... | PypiClean |
/Clairvoyant-0.7.tar.gz/Clairvoyant-0.7/README.md | <p align="center"><img width=12.5% src="https://github.com/anfederico/Clairvoyant/blob/master/media/Logo.png"></p>
<p align="center"><img width=60% src="https://github.com/anfederico/Clairvoyant/blob/master/media/Clairvoyant.png"></p>
... | PypiClean |
/neuralIR-0.0.25-py3-none-any.whl/colbert/ranking/batch_retrieval.py | import os
import time
import faiss
import random
import torch
from colbert.utils.runs import Run
from multiprocessing import Pool
from colbert.modeling.inference import ModelInference
from colbert.evaluation.ranking_logger import RankingLogger
from colbert.utils.utils import print_message, batch
from colbert.ranking.... | PypiClean |
/cmrsim-0.28.tar.gz/cmrsim-0.28/README.rst | .. image:: https://people.ee.ethz.ch/~jweine/cmrsim/latest/_images/Logo_cmrsim_moving_light.svg
:align: right
:scale: 150 %
Welcome to CMRsim!
==================================
CMRsim is a MRI - simulation framework that features bloch-simulations as well as analytic signal
evaluations for **moving objects** w... | PypiClean |
/ultracart_rest_sdk-4.0.173-py3-none-any.whl/ultracart/model/email_list_archive_response.py | import re # noqa: F401
import sys # noqa: F401
from ultracart.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,
vali... | PypiClean |
/torchgaussianfilter-0.0.2.tar.gz/torchgaussianfilter-0.0.2/README.md | # Efficient implementation of Gaussian filtering using Convolution
[](https://opensource.org/licenses/BSD-3-Clause)
[](https://badge.fury.io/py/torchgaussianfilter)
<img src="https://i... | PypiClean |
/biobb_adapters-4.0.0-py3-none-any.whl/biobb_adapters/pycompss/biobb_chemistry/acpype/acpype_params_ac.py | import os
import sys
import traceback
# Pycompss
from pycompss.api.task import task
from pycompss.api.parameter import FILE_IN, FILE_OUT
# Adapters commons pycompss
from biobb_adapters.pycompss.biobb_commons import task_config
# Wrapped Biobb
from biobb_chemistry.acpype.acpype_params_ac import AcpypeParamsAC # Importi... | PypiClean |
/structify_net-0.9.50.post0.tar.gz/structify_net-0.9.50.post0/docs/Classes.rst | Classes
=========================================
Introduction
-----------------------------------------
.. currentmodule:: structify_net
There are two classes allowing to represent network structures.
- :class:`Rank_model` is used to represent a network structure with a given number of nodes, and define the ran... | PypiClean |
/AnkiServer-2.0.6.tar.gz/AnkiServer-2.0.6/anki-bundled/aqt/sync.py |
from __future__ import division
import socket
import time
import traceback
import gc
from aqt.qt import *
import aqt
from anki import Collection
from anki.sync import Syncer, RemoteServer, FullSyncer, MediaSyncer, \
RemoteMediaServer
from anki.hooks import addHook, remHook
from aqt.utils import tooltip, askUserDi... | PypiClean |
/django-log-register-0.0.3.tar.gz/django-log-register-0.0.3/log_register/models.py | from datetime import datetime
from django.contrib.contenttypes import generic
from django.contrib.contenttypes.models import ContentType
from django.db import models
from log_register.managers import LotManager, LogManager
from log_register.settings import ERROR, DEBUG, SUCCESS, WARNING, INFO
class Lot(models.Model):... | PypiClean |
/hil_webui-0.0.4-py3-none-any.whl/pytest_commander/__main__.py | import argparse
import logging
import os
import subprocess
import sys
import webbrowser
from typing import Optional
from pytest_commander import api
LOGGER = logging.getLogger(__name__)
# Time to poll the HTTP server to be ready, in seconds.
POLL_TIME = 0.2
def main():
"""Start the server."""
args = parse_... | PypiClean |
/v2/model/pre_paid_server_data_volume.py |
import pprint
import re
import six
class PrePaidServerDataVolume:
"""
Attributes:
openapi_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict): The key is attribute name
and the value is json ke... | PypiClean |
/django.js-0.8.1.tar.gz/django.js-0.8.1/djangojs/static/js/libs/jquery-migrate-1.0.0.min.js | jQuery.migrateMute===void 0&&(jQuery.migrateMute=!0),function(e,t,n){"use strict";function r(n){o[n]||(o[n]=!0,e.migrateWarnings.push(n),t.console&&console.warn&&!e.migrateMute&&console.warn("JQMIGRATE: "+n))}function a(t,a,o,i){if(Object.defineProperty)try{return Object.defineProperty(t,a,{configurable:!0,enumerable:!... | PypiClean |
/idealoom-0.1.0-py3-none-any.whl/assembl/static/widget/session/bower_components/bootstrap/js/tab.js | +function ($) {
'use strict';
// TAB CLASS DEFINITION
// ====================
var Tab = function (element) {
// jscs:disable requireDollarBeforejQueryAssignment
this.element = $(element)
// jscs:enable requireDollarBeforejQueryAssignment
}
Tab.VERSION = '3.3.7'
Tab.TRANSITION_DURATION = 15... | PypiClean |
/youtube_dl-tmsl-2021.12.17.tar.gz/youtube_dl-tmsl-2021.12.17/youtube_dl/extractor/hrti.py | from __future__ import unicode_literals
import json
import re
from .common import InfoExtractor
from ..compat import compat_HTTPError
from ..utils import (
clean_html,
ExtractorError,
int_or_none,
parse_age_limit,
sanitized_Request,
try_get,
)
class HRTiBaseIE(InfoExtractor):
"""
... | PypiClean |
/quantum-pecos-0.1.2.tar.gz/quantum-pecos-0.1.2/pecos/error_gens/gatewise_gen.py | from .class_errors_circuit import ErrorCircuits
from ..circuits.quantum_circuit import QuantumCircuit
from .parent_class_error_gen import ParentErrorGen
class GatewiseGen(ParentErrorGen):
"""
A simple error generator for the depolarizing model.
This error generator does not allow much modification of the... | PypiClean |
/Nevow-0.14.5.tar.gz/Nevow-0.14.5/README.rst |
Divmod Nevow
============
Divmod Nevow is a web application construction kit written in Python. It is
designed to allow the programmer to express as much of the view logic as
desired in Python, and includes a pure Python XML expression syntax named stan
to facilitate this. However it also provides rich support for de... | PypiClean |
/winevtrc-20220106.tar.gz/winevtrc-20220106/docs/sources/eventlog-providers/Provider-Application-Management.md | ## Application Management
Seen on:
* Windows 10 (1511, 1607, 1703, 1709, 1803, 1809, 1903, 1909, 2004, 20H2)
* Windows 11 (21H2)
* Windows 2000
* Windows 2003
* Windows 2008
* Windows 2012
* Windows 7
* Windows 8.0
* Windows 8.1
* Windows Vista
* Windows XP 32-bit
* Windows XP 64-bit
<table border="1" class="docutils... | PypiClean |
/reqmgr2ms-unmerged-2.2.4rc2.tar.gz/reqmgr2ms-unmerged-2.2.4rc2/src/python/WMCore/MicroService/MSUnmerged/MSUnmergedRSE.py | from pymongo.errors import NotPrimaryError
# from pymongo.results import results as MongoResults
class MSUnmergedRSE(dict):
"""
A minimal RSE information representation to serve the needs
of the MSUnmerged Micro Service.
"""
def __init__(self, rseName, **kwargs):
super(MSUnmergedRSE, self... | PypiClean |
/SeisMIC-0.1.30-py3-none-any.whl/seismic/plot/plot_utils.py | import locale
import matplotlib as mpl
import matplotlib.pyplot as plt
def set_mpl_params():
params = {
# 'font.family': 'Avenir Next',
'pdf.fonttype': 42,
'font.weight': 'bold',
'figure.dpi': 150,
'axes.labelweight': 'bold',
'axes.linewidth': .5,
'axes.lab... | PypiClean |
/phip_stat-0.5.1-py3-none-any.whl/phip/utils.py |
import re
from collections import namedtuple
from pathlib import Path
# used for hit calling
DEFAULT_FDR = 0.01
DEFAULT_REFERENCE_QUANTILE = 0.999
def one_base_mutants(seq):
alphabet = set(["A", "C", "G", "T", "N"])
for i in range(len(seq)):
for alt in alphabet - set([seq[i].upper()]):
... | PypiClean |
/maec411-1.0.0a1.tar.gz/maec411-1.0.0a1/maec/utils/deduplicator.py |
# See LICENSE.txt for complete terms
import collections
import copy
from mixbox import entities
from cybox.core import RelatedObject, AssociatedObject
from cybox.common.properties import BaseProperty
from mixbox.vendor.six import iteritems
class BundleDeduplicator(object):
@classmethod
def deduplicate(cls... | PypiClean |
/castor_extractor-0.5.6.tar.gz/castor_extractor-0.5.6/castor_extractor/visualization/sigma/client/client.py | import logging
from typing import Dict, Iterator, List, Optional, Tuple
from urllib.parse import urljoin
import requests
from ..assets import SigmaAsset
from .credentials import CredentialsKey, SigmaCredentials
from .endpoints import EndpointFactory
from .pagination import Pagination
logger = logging.getLogger()
D... | PypiClean |
/karp_backend_5-5.27.5-py3-none-any.whl/karp5/server/checkdbhistory.py | import datetime
import logging
from flask import jsonify
from sb_json_tools import jsondiff
from karp5 import errors
from karp5.config import mgr as conf_mgr
from karp5.server.helper import helpers
from karp5.context import auth
from karp5.dbhandler.dbhandler import dbselect
_logger = logging.getLogger("karp5")
... | PypiClean |
/uk_bin_collection-0.9.0.tar.gz/uk_bin_collection-0.9.0/uk_bin_collection/uk_bin_collection/councils/EastRidingCouncil.py | import json
from datetime import datetime
import requests
from bs4 import BeautifulSoup
from uk_bin_collection.uk_bin_collection.common import *
from uk_bin_collection.uk_bin_collection.get_bin_data import \
AbstractGetBinDataClass
# import the wonderful Beautiful Soup and the URL grabber
class CouncilClass(Abst... | PypiClean |
/deepnull-0.2.2.tar.gz/deepnull-0.2.2/model.py | import abc
import math
import os
from typing import Dict, List, Optional
from deepnull import config
from deepnull import data
from deepnull import metrics
import ml_collections
import pandas as pd
import tensorflow as tf
import xgboost
########################### TensorFlow models ##################################
... | PypiClean |
/olympia/output/result.py | from __future__ import annotations
from collections import defaultdict
from typing import Any, Optional
from valuation.consts import result
from valuation.consts.global_parameters import OutputPrecision
from daa_utils.excel_io import ExcelIO, TableData, TableSheet
from valuation.global_settings import __type_checking... | PypiClean |
/mp_api-0.35.1-py3-none-any.whl/mp_api/client/core/settings.py | import os
from multiprocessing import cpu_count
from typing import List
from pydantic import BaseSettings, Field
from pymatgen.core import _load_pmg_settings
from mp_api.client import __file__ as root_dir
PMG_SETTINGS = _load_pmg_settings()
_NUM_PARALLEL_REQUESTS = PMG_SETTINGS.get("MPRESTER_NUM_PARALLEL_REQUESTS", ... | PypiClean |
/Cellulose-0.2.tar.gz/Cellulose-0.2/cellulose/cells.py | import threading, weakref, warnings
try:
set # Only available in Python 2.4+
except NameError:
from sets import Set as set # Python 2.3 fallback
class CyclicDependencyError(Exception):
pass
class CellCallStack(object):
"""
A stack of DependantCell subclasses that are currently discovering
de... | PypiClean |
/pushjack_http2-2.0.1.tar.gz/pushjack_http2-2.0.1/src/pushjack_http2/gcm.py | from collections import namedtuple
import logging
import requests
from .utils import chunk, compact_dict, json_loads, json_dumps
from .exceptions import GCMError, GCMAuthError, gcm_server_errors
from ._compat import iteritems
__all__ = (
'GCMClient',
'GCMResponse',
'GCMCanonicalID',
)
log = logging.ge... | PypiClean |
/cassandra_medusa-0.15.0-py3-none-any.whl/medusa/verify.py |
import json
import logging
import medusa.utils
from medusa.storage import Storage
def verify(config, backup_name, enable_md5_checks_flag):
storage = Storage(config=config.storage)
enable_md5 = enable_md5_checks_flag or medusa.utils.evaluate_boolean(config.checks.enable_md5_checks)
try:
cluster_... | PypiClean |
/bob.learn.em-3.3.1b0.tar.gz/bob.learn.em-3.3.1b0/doc/py_api.rst | .. vim: set fileencoding=utf-8 :
.. Andre Anjos <andre.dos.anjos@gmail.com>
.. Sat 16 Nov 20:52:58 2013
============
Python API
============
This section includes information for using the pure Python API of
``bob.learn.em``.
Classes
-------
.. autosummary::
bob.learn.em.KMeansMachine
bob.learn.em.GMMStats
b... | PypiClean |
/xbim-flex-2.0.4.tar.gz/xbim-flex-2.0.4/xbim_flex/aim/api/attributes_api.py | import re # noqa: F401
import sys # noqa: F401
from xbim_flex.aim.api_client import ApiClient, Endpoint as _Endpoint
from xbim_flex.aim.model_utils import ( # noqa: F401
check_allowed_values,
check_validations,
date,
datetime,
file_type,
none_type,
validate_and_convert_types
)
from xbim_... | PypiClean |
/mlflow-stonewise-1.30.1.tar.gz/mlflow-stonewise-1.30.1/mlflow/store/model_registry/dbmodels/models.py | from sqlalchemy import (
Column,
String,
ForeignKey,
Integer,
BigInteger,
PrimaryKeyConstraint,
ForeignKeyConstraint,
)
from sqlalchemy.orm import relationship, backref
from mlflow.entities.model_registry import (
RegisteredModel,
ModelVersion,
RegisteredModelTag,
ModelVersi... | PypiClean |
/mcvqoe-1.2.0-py3-none-any.whl/mcvqoe-1.2.0.dist-info/LICENSE.md | This software was developed by employees of the National Institute of Standards and Technology (NIST), an agency of the Federal Government. Pursuant to title 17 United States Code Section 105, works of NIST employees are not subject to copyright protection in the United States and are considered to be in the public dom... | PypiClean |
/PyQuickTest-0.1.0.tar.gz/PyQuickTest-0.1.0/pyquicktest/gen.py | #=--------------=#
# Import section #
#=--------------=#
from __future__ import annotations
import typing
import random
from pyquicktest.utils import get_all_functions
from pyquicktest.decorators import add_flag, add_flags
# =------------------------------------------------= #
#=------------------=... | PypiClean |
/avalon_generator-1.1.0-py3-none-any.whl/avalon/generics/modelsargs.py | from . import BaseGenericExtension
class GeneralModelsArgumentsExtension(BaseGenericExtension):
__title__ = "models"
def post_add_args(self, parser):
group = parser.add_argument_group(
title=self.__title__,
description="Arguments for all 'log' models")
group.add_argum... | PypiClean |
/Spire.XLS_for_Python-13.5.0-py3-none-any.whl/spire/xls/PicturesCollection.py | from enum import Enum
from plum import dispatch
from typing import TypeVar,Union,Generic,List,Tuple
from spire.common import *
from spire.xls import *
from ctypes import *
import abc
class PicturesCollection ( XlsPicturesCollection) :
"""
"""
#def get_Item(self ,Index:int)->'ExcelPicture':
# """
... | PypiClean |
/gamification-engine-0.4.0.tar.gz/gamification-engine-0.4.0/gengine/app/jsscripts/node_modules/postcss/lib/container.js | 'use strict';
exports.__esModule = true;
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writabl... | PypiClean |
/odoo14_addon_l10n_ch_base_bank-14.0.1.0.2-py3-none-any.whl/odoo/addons/l10n_ch_base_bank/readme/USAGE.rst | In partner bank account the type will be discovered automatically.
* For IBAN accounts fill account number with IBAN.
* if the IBAN is an IBAN from PostFinance it will fill the Postal account number
* For Postal accounts:
* fill the account number with a postal account number 9 digits format (e.g. 10-8060-7).
* ... | PypiClean |
/simple_test_default_reporter-0.3.0-py3-none-any.whl/simple_test_default_reporter/_vendor/ordered_set.py | import itertools as it
from collections import deque
try:
# Python 3
from collections.abc import MutableSet, Sequence
except ImportError:
# Python 2.7
from collections import MutableSet, Sequence
SLICE_ALL = slice(None)
__version__ = "3.1"
def is_iterable(obj):
"""
Are we being asked to look... | PypiClean |
/mkdocs-ezlinked-plugin-0.3.3.tar.gz/mkdocs-ezlinked-plugin-0.3.3/mkdocs_ezlinks_plugin/scanners/md_link_scanner.py | import re
from typing import Match
from .base_link_scanner import BaseLinkScanner
from ..types import Link, BrokenLink
class MdLinkScanner(BaseLinkScanner):
def pattern(self) -> str:
# +------------------------------+
# | MD Link Regex Capture Groups |
# +---------------------------------... | PypiClean |
/bert_seq2seq_DDP-0.2.1.tar.gz/bert_seq2seq_DDP-0.2.1/bert_seq2seq/model/glm_model.py | import os
import torch
from torch import nn
import torch.nn.functional as F
from bert_seq2seq.model.blocks.glm_block import GLMBlock
from bert_seq2seq.model.utils import scaled_init_method, divide, unscaled_init_method
from bert_seq2seq.model.layers.embeddings import VocabParallelEmbedding
from bert_seq2seq.model.laye... | PypiClean |
/google_fhir_core-0.9.3-py3-none-any.whl/build/lib/build/lib/google/fhir/core/internal/json_format/_json_parser.py | """Functionality for parsing FHIR JSON into protobuf format."""
import threading
from typing import Any, Dict
from google.protobuf import any_pb2
from google.protobuf import descriptor
from google.protobuf import message
from google.fhir.core import extensions
from google.fhir.core import references
from google.fhir.... | PypiClean |
/robotframework-6.1.1.zip/robotframework-6.1.1/src/robot/libdocpkg/robotbuilder.py |
import os
import sys
import re
from robot.errors import DataError
from robot.running import (ArgInfo, ResourceFileBuilder, TestLibrary, TestSuiteBuilder,
TypeInfo, UserLibrary, UserErrorHandler)
from robot.utils import is_string, split_tags_from_doc, unescape
from robot.variables import sea... | PypiClean |
/wagtailpolls-ng-0.5.3.tar.gz/wagtailpolls-ng-0.5.3/README.rst | ===============
wagtailpolls-ng
===============
A plugin for Wagtail that provides polling functionality.
This work is based on `wagtailpolls <https://github.com/neon-jungle/wagtailpolls>`_
Installing
==========
Install using pip::
pip install wagtailpolls-ng
It works with Wagtail 2.0.x and upwards.
Using
==... | PypiClean |
/alipay-sdk-python-pycryptodome-3.3.202.tar.gz/alipay-sdk-python-pycryptodome-3.3.202/alipay/aop/api/request/AlipayEbppInvoiceAuthUnsignRequest.py | import json
from alipay.aop.api.FileItem import FileItem
from alipay.aop.api.constant.ParamConstants import *
from alipay.aop.api.domain.AlipayEbppInvoiceAuthUnsignModel import AlipayEbppInvoiceAuthUnsignModel
class AlipayEbppInvoiceAuthUnsignRequest(object):
def __init__(self, biz_model=None):
self._... | PypiClean |
/django_ledger-0.5.4.2-py3-none-any.whl/django_ledger/urls/bill.py | from django.urls import path
from django_ledger import views
urlpatterns = [
path('<slug:entity_slug>/latest/',
views.BillModelListView.as_view(),
name='bill-list'),
path('<slug:entity_slug>/year/<int:year>/',
views.BillModelYearListView.as_view(),
name='bill-list-year'),
... | PypiClean |
/opendr-toolkit-compressive-learning-2.2.0.tar.gz/opendr-toolkit-compressive-learning-2.2.0/src/opendr/engine/target.py |
from abc import ABC
import numpy as np
from typing import Optional, Dict, Tuple, Any
class BaseTarget(ABC):
"""
Root BaseTarget abstract class has been created to allow for setting the hierarchy of different targets.
Classes that inherit from BaseTarget can be used either as outputs of an algorithm or as... | PypiClean |
/miss_hit-0.9.42-py3-none-any.whl/miss_hit_core/m_parser.py |
import os
from miss_hit_core import pathutil
from miss_hit_core.config import Config, METRICS
from miss_hit_core.errors import ICE, Message_Handler
from miss_hit_core.m_ast import *
from miss_hit_core.m_language import Language
from miss_hit_core.m_lexer import Token_Generator
IGNORED_TOKENS = frozenset(["COMMENT"]... | PypiClean |
/azure_mgmt_containerservice-26.0.0-py3-none-any.whl/azure/mgmt/containerservice/v2018_03_31/operations/_managed_clusters_operations.py | from io import IOBase
from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload
import urllib.parse
from azure.core.exceptions import (
ClientAuthenticationError,
HttpResponseError,
ResourceExistsError,
ResourceNotFoundError,
ResourceNotModifiedError,
map_er... | PypiClean |
/pyro_ppl-1.8.6-py3-none-any.whl/pyro/distributions/gaussian_scale_mixture.py |
import math
import torch
from torch.autograd import Function
from torch.autograd.function import once_differentiable
from torch.distributions import Categorical, constraints
from pyro.distributions.torch_distribution import TorchDistribution
from pyro.distributions.util import sum_leftmost
class GaussianScaleMixtu... | PypiClean |
/collective.pdfpeek-2.0b1.zip/collective.pdfpeek-2.0b1/docs/INSTALL.rst | Installation
============
Via zc.buildout
---------------
The recommended method of using collective.pdfpeek is by installing via
zc.buildout using the plone.recipe.zope2instance recipe.
PdfPeek uses z3c.autoinclude to load it's zcml, so you don't need a zcml slug.
Add collective.pdfpeek to the list of eggs in the i... | PypiClean |
/django_attachments_management-1.1.2-py3-none-any.whl/django_attachments/admin.py | from django.contrib import admin
from django.contrib.auth.mixins import UserPassesTestMixin
from django.http.response import JsonResponse
from django.shortcuts import get_object_or_404
from django.views.generic import CreateView, TemplateView
from django.urls import path
from .fields import LibraryField, GalleryField
... | PypiClean |
/scale_llm_engine-0.0.0b8-py3-none-any.whl/llmengine/api_engine.py | import json
import os
from functools import wraps
from io import BufferedReader
from typing import Any, AsyncIterable, Dict, Iterator, Optional
import requests
from aiohttp import ClientSession, ClientTimeout
from llmengine.errors import parse_error
SPELLBOOK_API_URL = "https://api.spellbook.scale.com/llm-engine"
LLM... | PypiClean |
/django-rshop-0.0.8.tar.gz/django-rshop-0.0.8/rshop/migrations/0001_initial.py | import 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 'Categories'
db.create_table('rshop_categories', (
('id', self.gf('django.db.models.fields.AutoField')(pr... | PypiClean |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.