id
stringlengths
1
8
text
stringlengths
6
1.05M
dataset_id
stringclasses
1 value
/pulumi_azure_native-2.5.1a1693590910.tar.gz/pulumi_azure_native-2.5.1a1693590910/pulumi_azure_native/azurestack/v20200601preview/registration.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 * __all__ = ['RegistrationArgs', 'Registration'] @pulumi.input_type class RegistrationArgs: def __init__(__self...
PypiClean
/cmsplugin-markdown-0.1.5.tar.gz/cmsplugin-markdown-0.1.5/cmsplugin_markdown/static/cmsplugin_markdown/js/epiceditor.js
(function (window, undefined) { /** * Applies attributes to a DOM object * @param {object} context The DOM obj you want to apply the attributes to * @param {object} attrs A key/value pair of attributes you want to apply * @returns {undefined} */ function _applyAttrs(context, attrs) { for (var a...
PypiClean
/privex_adminplus-1.0.0-py3-none-any.whl/privex/adminplus/backports/templatetags/blocktranslate.py
from django.template import Node, TemplateSyntaxError from django.template.base import TokenType, Variable, render_value_in_context, token_kwargs from django.template.defaulttags import register from django.utils import translation from django.utils.safestring import SafeData, mark_safe class TranslateNode(Node): ...
PypiClean
/s3kv-0.1.5.tar.gz/s3kv-0.1.5/README.md
### About s3kv is a key value database backed by S3 Object Storage. As such it leverages many of the inbuilt capabilities of Object Storage. Especially interesting features are those such as key access policies, legal holds and retention. It is primarily intended for use cases such as data flow caching, configuration...
PypiClean
/gaeframework-2.0.10.tar.gz/gaeframework-2.0.10/google_appengine/lib/whoosh/whoosh/filedb/filereading.py
from bisect import bisect_left from heapq import nlargest, nsmallest from threading import Lock from whoosh.filedb.fieldcache import FieldCache, DefaultFieldCachingPolicy from whoosh.filedb.filepostings import FilePostingReader from whoosh.filedb.filetables import (TermIndexReader, StoredFieldReader, ...
PypiClean
/zamia-prolog-0.1.0.tar.gz/zamia-prolog-0.1.0/zamiaprolog/parser.py
# # Copyright 2015, 2016, 2017 Guenter Bartsch # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # This progra...
PypiClean
/equinor_libres-11.0.1-cp36-cp36m-macosx_10_9_x86_64.whl/res/enkf/observations/summary_observation.py
from cwrap import BaseCClass from res import ResPrototype class SummaryObservation(BaseCClass): TYPE_NAME = "summary_obs" _alloc = ResPrototype( "void* summary_obs_alloc(char*, char*, double, double, char*, double)", bind=False, ) _free = ResPrototype("void summary_obs_free(summar...
PypiClean
/scikit_mine-1.0.0-py3-none-any.whl/skmine/datasets/fimi.py
import gzip import os import pandas as pd import wget from ._base import get_data_home BASE_URL_FIMI = "http://fimi.uantwerpen.be/data/" BASE_URL_CGI = "https://cgi.csc.liv.ac.uk/~frans/KDD/Software/LUCS-KDD-DN/DataSets/" def _read_dat(filepath, int_values=True, separator=' ', zip=False): """Read a local datas...
PypiClean
/wpt-superset-1.0.1.tar.gz/wpt-superset-1.0.1/superset/data/country_map.py
import datetime import os import pandas as pd from sqlalchemy import BigInteger, Date, String from superset import db from superset.connectors.sqla.models import SqlMetric from superset.utils import core as utils from .helpers import ( DATA_FOLDER, get_slice_json, merge_slice, misc_dash_slices, Sl...
PypiClean
/django-admin-adminlte-1.0.5.tar.gz/django-admin-adminlte-1.0.5/admin_adminlte/static/plugins/summernote/lang/summernote-th-TH.js
(function webpackUniversalModuleDefinition(root, factory) { if(typeof exports === 'object' && typeof module === 'object') module.exports = factory(); else if(typeof define === 'function' && define.amd) define([], factory); else { var a = factory(); for(var i in a) (typeof exports === 'object' ? exports : roo...
PypiClean
/fake_bpy_module_3.2-20230117-py3-none-any.whl/bl_ui/properties_physics_field.py
import sys import typing import bpy_types GenericType = typing.TypeVar("GenericType") class PhysicButtonsPanel: bl_context = None ''' ''' bl_region_type = None ''' ''' bl_space_type = None ''' ''' def poll_collision(self, context): ''' ''' pass def poll_f...
PypiClean
/pulumi_azure_native-2.5.1a1693590910.tar.gz/pulumi_azure_native-2.5.1a1693590910/pulumi_azure_native/app/v20230401preview/list_container_app_custom_host_name_analysis.py
import copy import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities from . import outputs __all__ = [ 'ListContainerAppCustomHostNameAnalysisResult', 'AwaitableListContainerAppCustomHostNameAnalysisResult', 'list_c...
PypiClean
/model_compression_toolkit-1.9.1.tar.gz/model_compression_toolkit-1.9.1/model_compression_toolkit/core/keras/quantizer/mixed_precision/quantization_config_factory.py
from tensorflow.keras.layers import DepthwiseConv2D, Conv2D, Conv2DTranspose, Dense from tensorflow_model_optimization.python.core.quantization.keras.default_8bit.default_8bit_quantize_registry import \ QuantizeConfig from model_compression_toolkit.core import common from model_compression_toolkit.core.keras.def...
PypiClean
/jupyterlab-drawio-0.8.0.tar.gz/jupyterlab-drawio-0.8.0/src/mxgraph/javascript/src/js/util/mxXmlCanvas2D.js
* Class: mxXmlCanvas2D * * Base class for all canvases. The following methods make up the public * interface of the canvas 2D for all painting in mxGraph: * * - <save>, <restore> * - <scale>, <translate>, <rotate> * - <setAlpha>, <setFillAlpha>, <setStrokeAlpha>, <setFillColor>, <setGradient>, * <setStrokeC...
PypiClean
/django-haystack-3.2.1.tar.gz/django-haystack-3.2.1/docs/toc.rst
Table Of Contents ================= .. toctree:: :maxdepth: 2 index tutorial glossary views_and_forms templatetags management_commands architecture_overview backend_support installing_search_engines settings faq other_apps debugging migration_from_1_to_2 python3 con...
PypiClean
/kachery_cloud-0.4.2.tar.gz/kachery_cloud-0.4.2/kachery_cloud/store_file_local.py
import os import json import hashlib import shutil import random from tempfile import TemporaryDirectory from urllib.parse import quote from typing import Union from .get_kachery_cloud_dir import get_kachery_cloud_dir from .mutable_local import get_mutable_local, set_mutable_local from ._sha1_of_string import _sha1_of_...
PypiClean
/preprocessing_pgp-0.2.10-py3-none-any.whl/preprocessing_pgp/email/utils.py
import re from typing import List, Tuple import dns.resolver import pandas as pd from preprocessing_pgp.name.utils import is_name_accented def is_valid_email_domain(domain: str) -> bool: """ Check email domain using resolver """ try: dns.resolver.resolve(domain, "MX") return True ...
PypiClean
/viperpy-0.8.3.tar.gz/viperpy-0.8.3/README.rst
ViperPy ======= A Python library for interacting with the EMC ViPR API ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ .. image:: https://travis-ci.org/chadlung/viperpy.svg?branch=master :target: https://travis-ci.org/chadlung/viperpy **Note:** `ViPR <https://www.emc.com/vipr>`__ is an EMC product, tradem...
PypiClean
/pulumi_azure_native-2.5.1a1693590910.tar.gz/pulumi_azure_native-2.5.1a1693590910/pulumi_azure_native/eventhub/cluster.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__ = ['ClusterArgs', 'Cluster'] @pulumi.input_type class ClusterArgs: def __init__...
PypiClean
/odoo14_addon_l10n_it_delivery_note-14.0.2.2.0-py3-none-any.whl/odoo/addons/l10n_it_delivery_note/static/src/js/stock_delivery_note_portal.js
odoo.define("l10n_it_delivery_note.DeliveryNotePortalSidebar", function (require) { "use strict"; const dom = require("web.dom"); var publicWidget = require("web.public.widget"); var PortalSidebar = require("portal.PortalSidebar"); var utils = require("web.utils"); publicWidget.registry.Delive...
PypiClean
/silx-0.10.1.tar.gz/silx-0.10.1/doc/source/ext/sphinxext-archive.py
__authors__ = ["T. Vincent"] __license__ = "MIT" __date__ = "01/09/2017" import fnmatch import logging import os import os.path import posixpath import shutil import tempfile from docutils.parsers.rst import directives, Directive import docutils.nodes _logger = logging.getLogger(__name__) # docutils directive c...
PypiClean
/indico-client-6.0.0a3.tar.gz/indico-client-6.0.0a3/indico/queries/model_groups/model_groups.py
import json from time import sleep from typing import List, Dict import deprecation from indico.client.request import GraphQLRequest, RequestChain from indico.queries.workflow_components import AddModelGroupComponent from indico.types import Workflow from indico.types.model_group import ModelGroup, NewLabelsetArgumen...
PypiClean
/wildcard.media-2.1.0.tar.gz/wildcard.media-2.1.0/wildcard/media/pasync.py
from logging import getLogger from zope.component import getUtility from Products.CMFCore.utils import getToolByName from wildcard.media.settings import GlobalSettings # try: # from zc.async.interfaces import COMPLETED # except: COMPLETED = None logger = getLogger('wildcard.video') QUOTA_NAME = 'wildcard.video' ...
PypiClean
/chrome_webstore_download-0.1.3.tar.gz/chrome_webstore_download-0.1.3/chrome_webstore_download/download.py
import argparse from urllib.parse import urlparse import requests import sys CRX_URL = "https://clients2.google.com/service/update2/crx?" \ "response=redirect&prodversion=38.0&x=id%3D~~~~%26installsource%3Dondemand%26uc" USER_AGENT = "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko)...
PypiClean
/layeredconfig-0.3.3.tar.gz/layeredconfig-0.3.3/docs/sources.rst
Available sources ================= Hardcoded defaults ------------------ .. autoclass:: layeredconfig.Defaults :members: :member-order: bysource Environment variables --------------------- .. autoclass:: layeredconfig.Environment :members: :member-order: bysource Command-line parameters ----------------...
PypiClean
/Products.Zope_Hotfix_CVE_2010_1104-1.0.tar.gz/Products.Zope_Hotfix_CVE_2010_1104-1.0/README.txt
Introduction ============ This Zope hotfix fixes `CVE 2010-1104`_. .. _`CVE 2010-1104`: http://www.cve.mitre.org/cgi-bin/cvename.cgi?name=2010-1104 This hotfix has been tested with Zope instances using Zope 2.8.x - 2.11.x. Users of Zope 2.12 and greater should instead update to the latest corresponding minor revisio...
PypiClean
/ansible-modules-hashivault-5.1.1.tar.gz/ansible-modules-hashivault-5.1.1/ansible/plugins/action/hashivault_read_to_file.py
import base64 as base64encode import os import tempfile from ansible.playbook.play_context import PlayContext from ansible.plugins.action import ActionBase from ansible.utils.vars import merge_hash class ActionModule(ActionBase): # load and return ansible copy action plugin # copied from `ansible/plugins/a...
PypiClean
/Orquestra-1.4-py3-none-any.whl/orquestra/static/semantic-ui/components/transition.js
;(function ($, window, document, undefined) { 'use strict'; window = (typeof window != 'undefined' && window.Math == Math) ? window : (typeof self != 'undefined' && self.Math == Math) ? self : Function('return this')() ; $.fn.transition = function() { var $allModules = $(this), moduleSelect...
PypiClean
/huaweicloud-sdk-python-1.0.28.tar.gz/huaweicloud-sdk-python-1.0.28/openstack/identity/v3/_proxy.py
import openstack.exceptions as exception from openstack.identity.v3 import credential as _credential from openstack.identity.v3 import domain as _domain from openstack.identity.v3 import endpoint as _endpoint from openstack.identity.v3 import group as _group from openstack.identity.v3 import policy as _policy from ope...
PypiClean
/distributed-mean-estimation-0.1a2.tar.gz/distributed-mean-estimation-0.1a2/src/cmprs/sparsification.py
from abc import ABC, abstractmethod from typing import Optional import torch from cmprs.bitrate import set_bitrate_from_tensor from cmprs.random_utils import hook_shared_prng, bernoulli_mask, random_k_mask from cmprs.transform import Transform, FOut class Sparsification(Transform, ABC): def __init__(self, seed:...
PypiClean
/fds.sdk.OverviewReportBuilder-1.1.5-py3-none-any.whl/fds/sdk/OverviewReportBuilder/model/key_stats_fund_object_first_nav_record.py
import re # noqa: F401 import sys # noqa: F401 from fds.sdk.OverviewReportBuilder.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
/ChadBot4-0.1-py3-none-any.whl/ChadBot/generation/rajat_work/qgen/util/nlp.py
import string import en_core_web_md import spacy _spacy_cache = None _coref_cache = None FAST_TOKENIZER = spacy.load('en_core_web_sm', disable=['tagger', 'parser', 'ner', 'textcat']) # Linguistic Constants AUXILIARIES = ['am', 'is', 'are', 'was', 'were', 'be', 'could', 'can', 'should', 'shall', 'would', 'will', ...
PypiClean
/harrix-pyssg-0.6.tar.gz/harrix-pyssg-0.6/README.md
# Harrix-Static-Site-Generator **In development.** A simple static website generator in Python. ## Install Pip: ```console pip install harrix-pyssg ``` Pipenv: ```console pip update harrix-pyssg ``` ## Update Pip: ```console pipenv install harrix-pyssg ``` Pipenv: ```console pipenv update harrix-pyssg ``` ...
PypiClean
/CYLGame-1.6.32.tar.gz/CYLGame-1.6.32/CYLGame/Server.py
from __future__ import print_function import os import sys import ujson import multiprocessing from multiprocessing import Process import flask import random import shutil import traceback import flask_classful from cachetools import LRUCache from flask import escape, has_request_context from flask_request_id_header...
PypiClean
/mess_app_mrp_server-0.0.1.tar.gz/mess_app_mrp_server-0.0.1/server/server/remove_user.py
from PyQt5.QtWidgets import QDialog, QLabel, QComboBox, QPushButton, QApplication from PyQt5.QtCore import Qt from PyQt5.QtGui import QStandardItemModel, QStandardItem class DelUserDialog(QDialog): """Класс - диалог выбора контакта для удаления. """ def __init__(self, database, server): super().__...
PypiClean
/wxPython-zombie-3.1.5.6.tar.gz/wxPython-zombie-3.1.5.6/wx/lib/filebrowsebutton.py
import os import types import wx #---------------------------------------------------------------------- class FileBrowseButton(wx.Panel): """ A control to allow the user to type in a filename or browse with the standard file dialog to select file """ def __init__ (self, parent, id= -1, ...
PypiClean
/ask-smapi-model-1.36.0.tar.gz/ask-smapi-model-1.36.0/ask_smapi_model/v1/skill/manifest/music_wordmark.py
# # Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file # except in compliance with the License. A copy of the License is located at # # http://aws.amazon.com/apache2.0/ # # or in the "license" file accomp...
PypiClean
/Interleave_Playlist-1.0.0a7-py3-none-any.whl/interleave_playlist/interface/PlaylistWindow.py
import itertools import math import os import subprocess import threading import typing from typing import Optional, Callable, Any import natsort from PySide6.QtCore import Slot, QEvent, Qt, Signal, QThread, QDeadlineTimer, SignalInstance from PySide6.QtGui import QFont, QColor, QBrush, QFontDatabase, QCloseEvent from...
PypiClean
/dsin100daysv33-6.0.1.tar.gz/dsin100daysv33-6.0.1/docs/source/index.rst
==================== The Jupyter Notebook ==================== * `Installation <https://jupyter.readthedocs.io/en/latest/install.html>`_ * `Starting the Notebook <https://jupyter.readthedocs.io/en/latest/running.html>`_ .. toctree:: :maxdepth: 1 :caption: User Documentation notebook ui_components exam...
PypiClean
/utils-mini-0.1.6.tar.gz/utils-mini-0.1.6/utilsMini/entity.py
from utilsMini.parse import parseStr, parseDict, parseFloat, parseInt, parseList, parseTime from types import FunctionType class EntityMetaClass(type): def __new__(cls, name, bases, attrs): if name != "Entity": mappings = {} # 定义好的字段 # 循环加入对比映射序列 for k, v in attrs.item...
PypiClean
/graphql-example-0.4.4.tar.gz/graphql-example-0.4.4/vendor/pip/_vendor/requests/status_codes.py
from .structures import LookupDict _codes = { # Informational. 100: ('continue',), 101: ('switching_protocols',), 102: ('processing',), 103: ('checkpoint',), 122: ('uri_too_long', 'request_uri_too_long'), 200: ('ok', 'okay', 'all_ok', 'all_okay', 'all_good', '\\o/', '✓'), 201: ('creat...
PypiClean
/lino-weleup-23.1.0.tar.gz/lino-weleup-23.1.0/lino_weleup/setup_info.py
requires = ['lino-welfare', 'pytidylib', 'django-iban', 'metafone', 'cairocffi'] requires.append('channels') requires.append('suds-py3') # requires.append('suds-jurko') SETUP_INFO = dict( name='lino-weleup', version='23.1.0', install_requires=requires, test_suite='...
PypiClean
/import_scons-2.5.0-4-py3-none-any.whl/SCons/Variables/ListVariable.py
__revision__ = "src/engine/SCons/Variables/ListVariable.py 2016/07/08 19:15:27 dholth" # Known Bug: This should behave like a Set-Type, but does not really, # since elements can occur twice. __all__ = ['ListVariable',] import collections import SCons.Util class _ListVariable(collections.UserList): def __ini...
PypiClean
/lhm_parser-0.0.1.tar.gz/lhm_parser-0.0.1/LHM_Parser/LHM_Parser.py
from datetime import datetime import json import requests class LHM_Parser: """ A class to parse the data from the LHM json endpoint. Notes ----- Pylint C0103: The module name would be too long if full name was used Libre_Hardware_Monitor_Parser Pylint R0904: This is a data source class its meant to have...
PypiClean
/diff-highlight-1.2.0.tar.gz/diff-highlight-1.2.0/src/highlights/command.py
import re import sys from highlights.pprint import INSERTED, DELETED, pprint_hunk colortable = {'none': 0, 'red': 31, 'green': 32} def highlight_main(): try: new, old = [], [] in_header = True for rawline in sys.stdin: if sys.version_info < (3, 0): rawline = r...
PypiClean
/mct-nightly-1.9.0.20230903.post433.tar.gz/mct-nightly-1.9.0.20230903.post433/model_compression_toolkit/trainable_infrastructure/common/get_quantizers.py
from typing import Union, Any from model_compression_toolkit.logger import Logger from model_compression_toolkit.target_platform_capabilities.target_platform import QuantizationMethod from mct_quantizers import QuantizationTarget from mct_quantizers.common.constants \ import QUANTIZATION_TARGET, QUANTIZATION_METHO...
PypiClean
/matts-nflows-0.14.tar.gz/matts-nflows-0.14/nflows/transforms/made.py
# TODO: should be moved to module nets. import torch from torch import nn from torch.nn import functional as F from torch.nn import init from nflows.utils import torchutils def _get_input_degrees(in_features): """Returns the degrees an input to MADE should have.""" return torch.arange(1, in_features + 1) ...
PypiClean
/spookvooperapi-0.0.1.tar.gz/spookvooperapi-0.0.1/node_modules/esquery/README.md
ESQuery is a library for querying the AST output by Esprima for patterns of syntax using a CSS style selector system. Check out the demo: [demo](https://estools.github.io/esquery/) The following selectors are supported: * AST node type: `ForStatement` * [wildcard](http://dev.w3.org/csswg/selectors4/#universal-selecto...
PypiClean
/rasa-hydra-3.6.0.tar.gz/rasa-hydra-3.6.0/rasa/core/channels/callback.py
import logging from typing import Text, Dict, Optional, Callable, Awaitable, Any from sanic import Blueprint, response from sanic.request import Request from rasa.core.channels.channel import ( CollectingOutputChannel, UserMessage, RestInput, InputChannel, ) from rasa.utils.endpoints import EndpointCo...
PypiClean
/torch_points3d-1.3.0-py3-none-any.whl/torch_points3d/metrics/object_detection_tracker.py
from typing import Dict, List, Any import torchnet as tnt import torch from collections import OrderedDict from torch_points3d.models.model_interface import TrackerInterface from torch_points3d.metrics.base_tracker import BaseTracker, meter_value from torch_points3d.metrics.meters import APMeter from torch_points3d.da...
PypiClean
/ka-lite-0.17.6b4.tar.gz/ka-lite-0.17.6b4/kalite/packages/bundled/django/db/models/sql/aggregates.py
from django.db.models.fields import IntegerField, FloatField # Fake fields used to identify aggregate types in data-conversion operations. ordinal_aggregate_field = IntegerField() computed_aggregate_field = FloatField() class Aggregate(object): """ Default SQL Aggregate. """ is_ordinal = False is_...
PypiClean
/azure_percept-0.0.13-cp38-cp38-manylinux_2_24_aarch64.whl/azure/iot/percept/extensions/middle/ConvertGroupedStridedSlice.py
import logging as log from copy import deepcopy from typing import Callable import numpy as np from extensions.middle.SliceConverter import ConvertSlice from extensions.ops.split import VariadicSplit from mo.front.common.partial_infer.utils import int64_array from mo.graph.graph import Graph, Node, add_opoutput from...
PypiClean
/phrasebook-0.0.4.tar.gz/phrasebook-0.0.4/README.rst
phrasebook ========== Store phrases (SQL, messages, what-have-you) alongside your modules. Project Features ---------------- - `phrasebook <https://phrasebook.readthedocs.io/en/latest/index.html#>`__ - a starter `Click <http://click.pocoo.org/5/>`__ command-line application - automated unit tests you can run w...
PypiClean
/zcatalyst_sdk-0.0.2rc3-py3-none-any.whl/zcatalyst_sdk/authentication.py
import json from typing import List, Literal, Optional, Union from .types import ( Component, ICatalystCustomTokenDetails, ICatalystCustomTokenResponse, ICatalystSignupConfig, ICatalystUserDetails, ICatalystUser, ICatalystSignupValidationReq ) from .exceptions import CatalystAuthenticationEr...
PypiClean
/clpso-0.0.1.tar.gz/clpso-0.0.1/docs/dev.optimizer.rst
=============================== Contributing your own optimizer =============================== PySwarms aims to be the go-to library for various PSO implementations, so if you are a researcher in swarm intelligence or a developer who wants to contribute, then read on this guide! As a preliminary, here is a checklist...
PypiClean
/TracCondFields-2.0.tar.gz/TracCondFields-2.0/condfields/htdocs/jquery.js
if(typeof window.jQuery == "undefined") { /* * jQuery 1.1 - New Wave Javascript * * Copyright (c) 2007 John Resig (jquery.com) * Dual licensed under the MIT (MIT-LICENSE.txt) * and GPL (GPL-LICENSE.txt) licenses. * * $Date: 2007-01-14 17:37:33 -0500 (Sun, 14 Jan 2007) $ * $Rev: 1073 $ */ // Global undefined v...
PypiClean
/PyDocX-0.9.10.tar.gz/PyDocX-0.9.10/docs/_build/html/_static/js/theme.js
require=(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)...
PypiClean
/drypatrick-2021.7.5.tar.gz/drypatrick-2021.7.5/homeassistant/components/mqtt/select.py
import functools import logging import voluptuous as vol from homeassistant.components import select from homeassistant.components.select import SelectEntity from homeassistant.const import CONF_NAME, CONF_OPTIMISTIC, CONF_VALUE_TEMPLATE from homeassistant.core import HomeAssistant, callback from homeassistant.helper...
PypiClean
/rflow_ml_pipelines_sdk-1.1.18-py3-none-any.whl/tfx/examples/chicago_taxi_pipeline/taxi_pipeline_local.py
"""Chicago taxi example using TFX.""" from __future__ import absolute_import from __future__ import division from __future__ import print_function import os from typing import List, Text import absl import tensorflow_model_analysis as tfma from tfx.components import CsvExampleGen from tfx.components import Evaluato...
PypiClean
/am_tdm-0.1.0.tar.gz/am_tdm-0.1.0/am_tdm/gibbs.py
import subprocess import os from time import time import numpy as np class Gibbs: def __init__(self, data=None, animal_col=None, ped=None, fixed_effects=None, LHS=None, RHS=None, Ainv=None, Geninv=None, Hinv=None, fixed_degree=None, random_degree=None, rounds=10000, burn_in=1000, ...
PypiClean
/cs46_trees_vik-1.0.0.tar.gz/cs46_trees_vik-1.0.0/Trees/Heap.py
from Trees.BinaryTree import BinaryTree, Node class Heap(BinaryTree): ''' FIXME: Heap is currently not a subclass of BinaryTree. You should make the necessary changes in the class declaration line above and in the constructor below. ''' def __init__(self, xs=None): ''' FIX...
PypiClean
/custom-awscli-1.27.51.tar.gz/custom-awscli-1.27.51/awscli/examples/iot/add-thing-to-billing-group.rst
**Example 1: To add a thing by name to a billing group** The following ``add-thing-to-billing-group`` example adds the thing named ``MyLightBulb`` to the billing group named ``GroupOne``. :: aws iot add-thing-to-billing-group \ --billing-group-name GroupOne \ --thing-name MyLightBulb This command...
PypiClean
/lightning-2022.10.25-py3-none-any.whl/pytorch_lightning/utilities/imports.py
"""General utilities.""" import operator import platform import sys import torch from lightning_utilities.core.imports import compare_version, module_available, package_available, RequirementCache _IS_WINDOWS = platform.system() == "Windows" _IS_INTERACTIVE = hasattr(sys, "ps1") # https://stackoverflow.com/a/6452376...
PypiClean
/django-ghostdown-0.5.tar.gz/django-ghostdown-0.5/ghostdown/static/ghostdown/js/ghostdown.js
(function ($, CodeMirror, ShowDown) { 'use strict'; $(document).ready(function () { if (typeof(Ghostdown) === 'undefined') return; var ghostdownTextArea = document.getElementById(Ghostdown.ghostdownId); if (!ghostdownTextArea) return; var feature = document.getElementById(Ghostdown.feat...
PypiClean
/msgraph_beta_sdk-1.0.0a9-py3-none-any.whl/msgraph/generated/models/managed_tenants/management_template_step_deployment.py
from __future__ import annotations from datetime import datetime from kiota_abstractions.serialization import Parsable, ParseNode, SerializationWriter from typing import Any, Callable, Dict, List, Optional, TYPE_CHECKING, Union if TYPE_CHECKING: from . import graph_a_p_i_error_details, management_template_deployme...
PypiClean
/ensmallen_graph-0.6.0-cp37-cp37m-manylinux2010_x86_64.whl/ensmallen_graph/datasets/string/faecalibacteriumprausnitziisl33.py
from typing import Dict from ..automatic_graph_retrieval import AutomaticallyRetrievedGraph from ...ensmallen_graph import EnsmallenGraph # pylint: disable=import-error def FaecalibacteriumPrausnitziiSl33( directed: bool = False, verbose: int = 2, cache_path: str = "graphs/string", **additional_grap...
PypiClean
/Py_FS-0.2.1-py3-none-any.whl/Py_FS/wrapper/population_based/algorithm.py
import os,sys import os.path as path abs_path_pkg = path.abspath(path.join(__file__ ,"../../../../")) dir_path = os.path.dirname(os.path.realpath(__file__)) sys.path.insert(0, abs_path_pkg) # import other libraries from abc import abstractmethod import copy import numpy as np import time import matplotlib.pyplot as p...
PypiClean
/idaes-pse-2.2.0rc0.tar.gz/idaes-pse-2.2.0rc0/idaes/models/properties/modular_properties/examples/ASU_PR.py
# Import Python libraries import logging # Import Pyomo units from pyomo.environ import units as pyunits # Import IDAES cores from idaes.core import LiquidPhase, VaporPhase, Component from idaes.models.properties.modular_properties.state_definitions import FTPx from idaes.models.properties.modular_properties.eos.ceo...
PypiClean
/mis_modulos-0.1.tar.gz/mis_modulos-0.1/wheel/macosx_libfile.py
from __future__ import annotations import ctypes import os import sys """here the needed const and struct from mach-o header files""" FAT_MAGIC = 0xCAFEBABE FAT_CIGAM = 0xBEBAFECA FAT_MAGIC_64 = 0xCAFEBABF FAT_CIGAM_64 = 0xBFBAFECA MH_MAGIC = 0xFEEDFACE MH_CIGAM = 0xCEFAEDFE MH_MAGIC_64 = 0xFEEDFACF MH_CIGAM_64 = 0x...
PypiClean
/Amino.py-3.0.10-py3-none-any.whl/amino/lib/util/exceptions.py
class UnsupportedService(Exception): """ - **API Code** : 100 - **API Message** : Unsupported service. Your client may be out of date. Please update it to the latest version. - **API String** : ``Unknown String`` """ def __init__(*args, **kwargs): Exception.__init__(*args, **kwargs) cla...
PypiClean
/Products.CMFPlomino-2.0a4.tar.gz/Products.CMFPlomino-2.0a4/CHANGES.rst
Changelog ========= 2.0a4 (2016-01-06) ------------------ - Create modal database design view [instification] 2.0a3 (2015-09-29) ------------------ - Hidewhen and subforms [ebrehault] 2.0a2 (2015-09-08) ------------------ - Design import/export from/to JSON [ebrehault] 2.0a1 (2015-09-02) ------------------ ...
PypiClean
/pydrill-0.3.4.tar.gz/pydrill-0.3.4/docs/index.rst
.. pydrill documentation master file, created by sphinx-quickstart on Tue Jul 9 22:26:36 2013. You can adapt this file completely to your liking, but it should at least contain the root `toctree` directive. Welcome to pydrill's documentation! ====================================== Contents: .. toctree:: ...
PypiClean
/cim-14.12a1.tar.gz/cim-14.12a1/CPSM/IEC61970/Wires.py
#------------------------------------------------------------------------------ # Imports: #------------------------------------------------------------------------------ from CPSM.IEC61970.Core import Equipment from CPSM.IEC61970.Core import ConductingEquipment from CPSM.IEC61970.Core import PowerSystemResource from...
PypiClean
/claret-assistant-frontend-20210707.0.tar.gz/claret-assistant-frontend-20210707.0/hass_frontend/frontend_es5/chunk.8842cbd74b4a169556e7.js
(self.webpackChunkhome_assistant_frontend=self.webpackChunkhome_assistant_frontend||[]).push([[7071],{45890:function(e,t,r){"use strict";var n;r.d(t,{A:function(){return a}});var i,o,a=(0,r(50424).iv)(n||(i=["\n ha-switch {\n padding: 16px 6px;\n }\n .side-by-side {\n display: flex;\n }\n .side-by-side > * {...
PypiClean
/lambda_notebook-0.6.9-py3-none-any.whl/lamb/notebooks/fragments/Hamblin semantics.ipynb
# Hamblin semantics introductory fragment ## Author: Kyle Rawlins ### Updated: 7/11/16 This is an implementation of Hamblin semantics. It is currently quite incomplete, but walks through the basic principles. It also may be useful for describing some lexicon manipulation techniques in the lambda notebook (see also t...
PypiClean
/noelgram1-0.0.4.tar.gz/noelgram1-0.0.4/noelgram/types/user_and_chats/chat_member.py
from datetime import datetime from typing import Union, Dict import noelgram from noelgram import raw, types, utils, enums from ..object import Object class ChatMember(Object): """Contains information about one member of a chat. Parameters: status (:obj:`~noelgram.enums.ChatMemberStatus`): ...
PypiClean
/txt_to_html-0.0.1.tar.gz/txt_to_html-0.0.1/resources/MathJax-2.7.2/unpacked/localization/fr/FontWarnings.js
MathJax.Localization.addTranslation("fr","FontWarnings",{ version: "2.7.2", isLoaded: true, strings: { webFont: "MathJax utilise les polices web pour afficher les expressions math\u00E9matiques sur cette page. Celles-ci mettent du temps \u00E0 \u00EAtre t\u00E9l\u00E9charg\u00E9es et l...
PypiClean
/cli_chess-1.1.0-py3-none-any.whl/cli_chess/modules/material_difference/material_difference_presenter.py
from __future__ import annotations from cli_chess.modules.material_difference import MaterialDifferenceView from cli_chess.modules.common import get_piece_unicode_symbol from cli_chess.utils.config import game_config from chess import Color, PIECE_TYPES, PIECE_SYMBOLS, KING from typing import TYPE_CHECKING if TYPE_CHE...
PypiClean
/sphinx_compendia-0.1-py3-none-any.whl/sphinx_compendia/sphinxapi.py
from __future__ import annotations import sys from enum import Enum from typing import TYPE_CHECKING, NamedTuple if TYPE_CHECKING or sys.version_info < (3, 8, 0): from typing_extensions import TypedDict else: from typing import TypedDict from typing import Optional class ExtensionMetadata(TypedDict, total...
PypiClean
/ampel_core-0.9.0.tar.gz/ampel_core-0.9.0/ampel/ingest/T2Compiler.py
from typing import Any from ampel.types import ChannelId, UnitId, T2Link, StockId from ampel.content.T2Document import T2Document from ampel.content.MetaActivity import MetaActivity from ampel.abstract.AbsDocIngester import AbsDocIngester from ampel.abstract.AbsCompiler import AbsCompiler, ActivityRegister class T2C...
PypiClean
/eddysearch-0.3.0.tar.gz/eddysearch-0.3.0/README.md
# EddySearch [![Maintenance](https://img.shields.io/badge/Maintained%3F-yes-green.svg)](https://GitHub.com/Naereen/StrapDown.js/graphs/commit-activity) [![Python 3.6](https://img.shields.io/badge/python-3.6-blue.svg)](https://www.python.org/downloads/release/python-360/) [![Python 3.7](https://img.shields.io/badge/pyt...
PypiClean
/Scrapy-Team-1.3.1.tar.gz/Scrapy-Team-1.3.1/scrapy/commands/etl.py
from scrapy.commands import ScrapyCommand import os from scrapy.exceptions import UsageError from scrapy.utils.conf import get_config from datetime import datetime from pymongo import MongoClient,ReadPreference,errors import logging from tqdm import tqdm from datetime import datetime class Command(ScrapyCommand): ...
PypiClean
/vioneta-2023.7.3.tar.gz/vioneta-2023.7.3/homeassistant/components/devolo_home_control/binary_sensor.py
from __future__ import annotations from devolo_home_control_api.devices.zwave import Zwave from devolo_home_control_api.homecontrol import HomeControl from homeassistant.components.binary_sensor import ( BinarySensorDeviceClass, BinarySensorEntity, ) from homeassistant.config_entries import ConfigEntry from h...
PypiClean
/metrics_felbeaver-0.0.1-py3-none-any.whl/metrics/halstead.py
from metrics import parser from enum import Enum from enum import auto from clang.cindex import CursorKind from clang.cindex import TypeKind from clang.cindex import TokenKind import clang.cindex from metrics import filters import collections import os #: Объект BasicHalsteadMetrics, в полях объекта хранятся базовые ...
PypiClean
/ztfy.jqueryui-0.7.12.tar.gz/ztfy.jqueryui-0.7.12/src/ztfy/jqueryui/resources/js/lang/calendar-sk.js
// full day names Calendar._DN = new Array ("Nedeľa", "Pondelok", "Utorok", "Streda", "Štvrtok", "Piatok", "Sobota", "Nedeľa"); // short day names Calendar._SDN = new Array ("Ned", "Pon", "Uto", "Str", "Štv", "Pia", "Sob", "Ned"); // full month names Calendar._MN = new Array ("Január", "Február"...
PypiClean
/hermes_alvarios-0.3.0-py3-none-any.whl/hermes/messages/UDPMessage.py
from __future__ import annotations # TODO: Remove future import in the future (python version > 3.10?) from typing import Union, Optional import time import zlib from hermes.domain.CheckedMessage import CheckedMessage class UDPMessage(CheckedMessage): """A class that represent a general message that can be used ...
PypiClean
/PassBit-0.1.4.tar.gz/PassBit-0.1.4/passbit/modify_entry.py
from customtkinter import CTkToplevel, CTkLabel, CTkEntry, CTkButton, StringVar, CTkSwitch,\ CTkCheckBox from .pb_crypto import PBCrypto from sqlite3 import Cursor, Connection from .language import ModifyEntryPy class ModifyEntry(CTkToplevel): def __init__(self, entry: dict, ...
PypiClean
/ProDy-2.4.1-cp39-cp39-win_amd64.whl/prody/apps/prody_apps/nmaoptions.py
"""This module defines options common to anm/gnm/pca commands.""" DEFAULTS = {} HELPTEXT = {} FIGFORMATS = 'eps pdf png ps raw rgba svg svgz'.split() for key, txt, val in [ ('outdir', 'output directory', '.'), ('prefix', 'output file prefix', ''), ('select', 'atom selection', "protein and name C...
PypiClean
/image_file_name_fixer-0.10.1.tar.gz/image_file_name_fixer-0.10.1/README.md
Image File Name Fixer ====================================== ### STATUS: * master: TODO: CI Integration. * develop: TODO: CI Integration. ====================================== ### Table of Contents 1. [Purpose](https://gitlab.com/jeremymreed/image-file-name-fixer#purpose) 2. [Usage](https://gitlab.com/jeremymreed/...
PypiClean
/superset_extender-1.0.0-py3-none-any.whl/supextend/static/css/bootstrap-iconpicker-1.10.0/src/js/iconset/iconset-octicon-all.js
;(function($){ var data = { iconClass: 'octicon', iconClassFix: 'octicon-', icons: [], allVersions: [ { version: '2.0.0', icons: [ '', 'alert', 'alignment-align', ...
PypiClean
/bio_image_unet-0.5.1a0-py3-none-any.whl/biu/siam_unet/data.py
import glob import os import shutil import numpy as np import tifffile import torch from albumentations import ( ShiftScaleRotate, GaussNoise, RandomBrightnessContrast, Compose, RandomRotate90) from skimage import morphology, transform from torch.utils.data import Dataset class DataProcess(Dataset): def ...
PypiClean
/claret-assistant-frontend-20210707.0.tar.gz/claret-assistant-frontend-20210707.0/hass_frontend/frontend_latest/chunk.60695043786a9a882333.js
(self.webpackChunkhome_assistant_frontend=self.webpackChunkhome_assistant_frontend||[]).push([[2569],{86977:(e,t,r)=>{"use strict";r.d(t,{Q:()=>i});const i=e=>!(!e.detail.selected||"property"!==e.detail.source)&&(e.currentTarget.selected=!1,!0)},15493:(e,t,r)=>{"use strict";r.d(t,{Q2:()=>i,io:()=>n,ou:()=>o,j4:()=>s,pc...
PypiClean
/benchling_api_client-2.0.207-py3-none-any.whl/benchling_api_client/models/bulk_create_aa_sequences_async_task.py
from typing import Any, cast, Dict, List, Optional, Type, TypeVar, Union import attr from ..extensions import NotPresentError from ..models.async_task_errors import AsyncTaskErrors from ..models.async_task_status import AsyncTaskStatus from ..models.bulk_create_aa_sequences_async_task_response import BulkCreateAaSequ...
PypiClean
/hits_x-0.1.3-py3-none-any.whl/hits/parallel/launcher.py
import sys import os from hits import utilities lonestar_template = '''\ #!/bin/bash #$ -N {job_name} #$ -pe 12way {num_cores} #$ -q normal #$ -o {job_name}.o$JOB_ID #$ -l h_rt={time} #$ -V #$ -M jah@ices.utexas.edu #$ -m be {hold_line} #$ -cwd #$ -A SeqMap1 ''' stampede_template = '''\ #!/bin/bash #SBATCH -J {job_...
PypiClean
/sagemath-polyhedra-9.5b6.tar.gz/sagemath-polyhedra-9.5b6/sage/categories/hecke_modules.py
r""" Hecke modules """ #***************************************************************************** # Copyright (C) 2005 David Kohel <kohel@maths.usyd.edu> # William Stein <wstein@math.ucsd.edu> # 2008-2009 Nicolas M. Thiery <nthiery at users.sf.net> # # Distributed unde...
PypiClean
/rez_pip-0.2.0.tar.gz/rez_pip-0.2.0/CHANGELOG.md
# 0.2.0 (2023-07-04) This release fixes a lot of bugs and gets us closer to a more official release. Most notable changes: * Dropped support for installing Python 2 packages. Python 3.7+ is supported. See [PR #39](https://github.com/JeanChristopheMorinPerso/rez-pip/pull/39). * A lot more documentation. It now include...
PypiClean
/django-mama-cas-2.5.0.tar.gz/django-mama-cas-2.5.0/mama_cas/cas.py
import logging from django.contrib import messages from django.contrib.auth import logout from django.utils.module_loading import import_string from django.utils.translation import gettext_lazy as _ from mama_cas.exceptions import InvalidTicketSpec from mama_cas.models import ServiceTicket from mama_cas.models import...
PypiClean
/columbia-discord-bot-0.2.1.tar.gz/columbia-discord-bot-0.2.1/docs/_build/html/_static/pip/_vendor/tenacity/__init__.py
import functools import sys import threading import time import typing as t import warnings from abc import ABC, abstractmethod from concurrent import futures from inspect import iscoroutinefunction # Import all built-in retry strategies for easier usage. from .retry import retry_base # noqa from .retry import retr...
PypiClean
/terrascript_aws-1.0.5.tar.gz/terrascript_aws-1.0.5/src/terrascript_aws/transit_gateway/ec2_transit_gateway_peering_attachment.py
import terrascript.core as core @core.resource(type="aws_ec2_transit_gateway_peering_attachment", namespace="transit_gateway") class Ec2TransitGatewayPeeringAttachment(core.Resource): """ EC2 Transit Gateway Attachment identifier """ id: str | core.StringOut = core.attr(str, computed=True) """ ...
PypiClean
/easybuild-easyblocks-4.8.0.tar.gz/easybuild-easyblocks-4.8.0/easybuild/easyblocks/generic/intelbase.py
import os import re import shutil import stat import tempfile from distutils.version import LooseVersion import easybuild.tools.environment as env from easybuild.framework.easyblock import EasyBlock from easybuild.framework.easyconfig import CUSTOM from easybuild.framework.easyconfig.types import ensure_iterable_licen...
PypiClean