id
stringlengths
1
8
text
stringlengths
6
1.05M
dataset_id
stringclasses
1 value
/vnn-0.2.0.tar.gz/vnn-0.2.0/networks/const_mean_variational.py
from typing import Any, List, Optional, Literal, Tuple, Union import torch from torch import nn class ConstMeanVariationalBase(nn.Module): def __init__(self) -> None: super().__init__() def build( self, mean: int, stds: Any, batch_norm_module: Any, batch_norm_size: int, ...
PypiClean
/Flask-Statics-Helper-1.0.0.tar.gz/Flask-Statics-Helper-1.0.0/flask_statics/static/bootstrap3-editable/js/bootstrap-wysihtml5-0.0.2.js
!function($, wysi) { "use strict"; var tpl = { "font-styles": function(locale, options) { var size = (options && options.size) ? ' btn-'+options.size : ''; return "<li class='dropdown'>" + "<a class='btn dropdown-toggle" + size + "' data-toggle='dropdown' href='#'>...
PypiClean
/nni_daily-1.5.2005180104-py3-none-manylinux1_x86_64.whl/nni_daily-1.5.2005180104.data/data/nni/node_modules/azure-storage/lib/services/queue/models/queuemessageresult.js
// // Copyright (c) Microsoft and contributors. 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. // You may obtain a copy of the License at // http://www.apache.org/licenses/LICENSE-2.0 // // Unless requ...
PypiClean
/sentimentspanish-0.0.2-py3-none-any.whl/sentiment_analysis/cleaner.py
import re import pickle REPLACE_BY_SPACE_RE = re.compile('[/(){}\[\]\|@,;]') BAD_SYMBOLS_RE = re.compile('[^\w\s]') stopwords_imported = ['de', 'la', 'que', 'el', 'en', 'y', 'a', 'los', 'del', 'se', 'las', 'por', 'un', 'para', 'con', 'no', 'una', 'su', 'al', 'lo', 'como', 'más', 'pero', 'sus', 'le', 'ya', 'o', 'este',...
PypiClean
/ganga-8.6.7.tar.gz/ganga-8.6.7/doc/UserGuide/WhatIsGanga.rst
What is Ganga ============= Many scientific computations are too large to take care of by simply running a script from the command line and waiting for it to execute. To get around this many different systems has been used over the years * Starting tasks in the background on your desktop; * Using a local batch system...
PypiClean
/django-scaffold-toolkit-0.5.3.tar.gz/django-scaffold-toolkit-0.5.3/scaffold_toolkit/formvalidator/static/formvalidator/js/language/pt_BR.js
(function ($) { /** * Portuguese (Brazil) language package * Translated by @marcuscarvalho6. Improved by @dgmike */ FormValidation.I18n = $.extend(true, FormValidation.I18n, { 'pt_BR': { base64: { 'default': 'Por favor insira um código base 64 válido' ...
PypiClean
/monk_pytorch_cuda102_test-0.0.1-py3-none-any.whl/monk/pytorch/transforms/transforms.py
from monk.pytorch.transforms.imports import * from monk.system.imports import * @accepts(dict, int, bool, bool, bool, retrieve=bool, post_trace=False) #@TraceFunction(trace_args=False, trace_rv=False) def transform_center_crop(system_dict, input_size, train, val, test, retrieve=False): ''' Apply Center Cropp...
PypiClean
/biocwl-dash-0.0.6.tar.gz/biocwl-dash-0.0.6/biocwl_dash/utils.py
import os import dash_html_components as html import dash_core_components as dcc import dash_table FILE_BROWSER_PATH = "files" RABIX_PATH = "rabix" def Header(app, base_url, report_service): return html.Div( [ get_header(app, base_url, report_service), html.Br([]), ge...
PypiClean
/pulumi_azure_native-2.5.1a1693590910.tar.gz/pulumi_azure_native-2.5.1a1693590910/pulumi_azure_native/synapse/iot_hub_data_connection.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__ = ['IotHubDataConnectionArgs', 'IotHubDataConnection'] @pulumi.input_type class IotHubDataConnectionArgs: ...
PypiClean
/card_live_dashboard-0.6.0-py3-none-any.whl/card_live_dashboard/service/CardLiveDataManager.py
from __future__ import annotations import logging from pathlib import Path from typing import Generator, List, Set, Union import numpy as np from apscheduler.executors.pool import ThreadPoolExecutor from apscheduler.jobstores.memory import MemoryJobStore from apscheduler.schedulers.background import BackgroundSchedul...
PypiClean
/pyppl_report-0.6.2.tar.gz/pyppl_report-0.6.2/pyppl_report/templates/layui/static/lay/modules/laydate.js
;!function(){ "use strict"; var isLayui = window.layui && layui.define, ready = { getPath: function(){ var jsPath = document.currentScript ? document.currentScript.src : function(){ var js = document.scripts ,last = js.length - 1 ,src; for(var i = last; i > 0; i--){ ...
PypiClean
/emrt.necd.content-2.5.41.zip/emrt.necd.content-2.5.41/emrt/necd/content/upgrades/portal_workflow.py
import gc from logging import getLogger import transaction from Products.CMFCore.utils import getToolByName from Products.Five import BrowserView from Products.Five.browser.pagetemplatefile import ViewPageTemplateFile logger = getLogger(__name__) def get_indexed_values(indexes, index_name): return sorted(set...
PypiClean
/kmax-4.5rc4.tar.gz/kmax-4.5rc4/pymake/command.py
import os, subprocess, sys, logging, time, traceback, re from optparse import OptionParser from . import data, parserdata, process, util # TODO: If this ever goes from relocatable package to system-installed, this may need to be # a configured-in path. makepypath = util.normaljoin(os.path.dirname(__file__), '../make....
PypiClean
/flask_filters-0.3.tar.gz/flask_filters-0.3/flask_filters/filters.py
from flask_restful import reqparse from datetime import datetime FILTER_UNDERSCORE_KEYWORDS = ['__like', '__gt', '__gte', '__lt', '__lte'] class Filters(object): """Generic class to handle filtering of all models """ model = None fields = None session = None def __init__(self): self....
PypiClean
/xnni-0.7.4-py3-none-manylinux1_x86_64.whl/xnni-0.7.4.data/data/nni/node_modules/tweetnacl/CHANGELOG.md
TweetNaCl.js Changelog ====================== v0.14.5 ------- * Fixed incomplete return types in TypeScript typings. * Replaced COPYING.txt with LICENSE file, which now has public domain dedication text from The Unlicense. License fields in package.json and bower.json have been set to "Unlicense". The project wa...
PypiClean
/py-pure-client-1.38.0.tar.gz/py-pure-client-1.38.0/pypureclient/flasharray/FA_2_19/models/subnet_response.py
import pprint import re import six import typing from ....properties import Property if typing.TYPE_CHECKING: from pypureclient.flasharray.FA_2_19 import models class SubnetResponse(object): """ Attributes: swagger_types (dict): The key is attribute name and the value is...
PypiClean
/django-bakery-0.13.2.tar.gz/django-bakery-0.13.2/docs/_build/html/_static/underscore-1.13.1.js
(function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() : typeof define === 'function' && define.amd ? define('underscore', factory) : (global = typeof globalThis !== 'undefined' ? globalThis : global || self, (function () { var current = global....
PypiClean
/django-player-0.1.0-beta7.tar.gz/django-player-0.1.0-beta7/player/manage/static/codemirror/js/undo.js
function UndoHistory(container, maxDepth, commitDelay, editor) { this.container = container; this.maxDepth = maxDepth; this.commitDelay = commitDelay; this.editor = editor; this.parent = editor.parent; // This line object represents the initial, empty editor. var initial = {text: "", from: null, to: null}; ...
PypiClean
/runit_server-0.2.4-py3-none-any.whl/runit_server/static/js/ace/theme-dracula.js
ace.define("ace/theme/dracula.css",["require","exports","module"],function(e,t,n){n.exports='/*\n * Copyright \u00a9 2017 Zeno Rocha <hi@zenorocha.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \u201cSoftware\u201d), to ...
PypiClean
/ioc_strings-0.1.5.tar.gz/ioc_strings-0.1.5/ioc_strings/ioc_strings.py
import os import sys import subprocess import argparse import string import json import multiprocessing import base64 import time import iocextract import validators global CPU_COUNT global LOCK CPU_COUNT = multiprocessing.cpu_count() LOCK = multiprocessing.Lock() class IOC: def __init__(self, ioc="", args={}...
PypiClean
/spire.xls-13.4.0-py3-none-any.whl/spire/xls/XlsShapeLineFormat.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 XlsShapeLineFormat ( XlsObject, IShapeLineFormat) : """ """ @property def Weight(self)->float: """ ...
PypiClean
/d8s_timer-0.5.0.tar.gz/d8s_timer-0.5.0/README.md
# Democritus Timer [![PyPI](https://img.shields.io/pypi/v/d8s-timer.svg)](https://pypi.python.org/pypi/d8s-timer) [![CI](https://github.com/democritus-project/d8s-timer/workflows/CI/badge.svg)](https://github.com/democritus-project/d8s-timer/actions) [![Lint](https://github.com/democritus-project/d8s-timer/workflows/L...
PypiClean
/django-adminlte-full-0.2.0.tar.gz/django-adminlte-full-0.2.0/adminlte_full/static/adminlte_full/plugins/fullcalendar-interaction/main.js
(function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@fullcalendar/core')) : typeof define === 'function' && define.amd ? define(['exports', '@fullcalendar/core'], factory) : (global = global || self, factory(global.FullCalendarInteraction = ...
PypiClean
/dialog_py-1.0a1.tar.gz/dialog_py-1.0a1/dialog_py/dialog.py
import ctypes import os import sys import threading from ctypes.util import find_library from .exceptions import DialogNotFoundError from .helpers import res_check, wrap_input_menu, make_wrapper from .native import FUNCTIONS, LIBC_FUNCTIONS, ListItem, FormItem, input_menu as input_menu_type from .types import Variable...
PypiClean
/a-poem-0.12.3.tar.gz/a-poem-0.12.3/poetry/packages/constraints/union_constraint.py
from .base_constraint import BaseConstraint from .constraint import Constraint from .empty_constraint import EmptyConstraint from .multi_constraint import MultiConstraint class UnionConstraint(BaseConstraint): def __init__(self, *constraints): self._constraints = constraints @property def constra...
PypiClean
/epicserver-0.2.8.tar.gz/epicserver-0.2.8/epicman/middleware/dns/mdns.py
from ...objects import EntityProxy, Entity from ...objects import remote_call from ...logging import log from ...helpers.file import cmd_wrapper from ipaddress import IPv4Address, IPv6Address, ip_address from typing import NamedTuple, Union from functools import wraps from enum import Enum import socket import uu...
PypiClean
/proxy.py-2.4.4rc3.tar.gz/proxy.py-2.4.4rc3/CONTRIBUTING.md
# Contributing to proxy.py This document describes how contributors can participate and iterate quickly while maintaining the `proxy.py` project standards and guidelines. ## Basic Guidelines * Your pull request should NOT introduce any external dependency. * It is OK to use external dependencies within plugins. ## ...
PypiClean
/Homevee_Dev-0.0.0.0-py3-none-any.whl/Homevee/VoiceAssistant/Modules/WikipediaDefinitionModule.py
import json import re import urllib.error import urllib.parse import urllib.request from Homevee.Helper import Logger from Homevee.VoiceAssistant.Helper import generate_string from Homevee.VoiceAssistant.Modules import VoiceModule MIN_OUTPUT_LENGTH = 100 class VoiceGetWikipediaDefinitionModule(VoiceModule): def ...
PypiClean
/pyblp-1.1.0.tar.gz/pyblp-1.1.0/docs/notebooks/api/build_blp_instruments.ipynb
# Building "Sums of Characteristics" BLP Instruments Example ``` import pyblp import numpy as np import pandas as pd np.set_printoptions(precision=3) pyblp.__version__ ``` In this example, we'll load the automobile product data from :ref:`references:Berry, Levinsohn, and Pakes (1995)` and show how to construct the i...
PypiClean
/FreeClimb-4.5.0-py3-none-any.whl/freeclimb/model/queue_member_list_all_of.py
import re # noqa: F401 import sys # noqa: F401 from freeclimb.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
/inte_edc-0.1.74-py3-none-any.whl/inte_subject/migrations/0028_auto_20200813_1736.py
import django.core.validators from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ("inte_lists", "0006_auto_20200812_0317"), ("inte_subject", "0027_auto_20200812_2242"), ] operations = [ migrations.AlterField( model_name="...
PypiClean
/rocon_client_sdk_py-0.5.15-py3-none-any.whl/rocon_client_sdk_py/rocon_apis/api_configuration.py
import io import json from .api import Api class ApiConfiguration(Api): @property def request(self): return self._httpclient.request() @property def hostname(self): return self._httpclient.hostname_config def get_url(self, sub_url): url = self._httpclient.config_url(sub_...
PypiClean
/AyiinXd-0.0.8-cp311-cp311-macosx_10_9_universal2.whl/fipper/session/auth.py
import asyncio import logging import time from hashlib import sha1 from io import BytesIO from os import urandom import fipper from fipper import raw from fipper.connection import Connection from fipper.crypto import aes, rsa, prime from fipper.errors import SecurityCheckMismatch from fipper.raw.core import TLObject,...
PypiClean
/alipay_sdk_python-3.6.740-py3-none-any.whl/alipay/aop/api/request/AlipayFundTransAacollectPayorderCreateRequest.py
import json from alipay.aop.api.FileItem import FileItem from alipay.aop.api.constant.ParamConstants import * from alipay.aop.api.domain.AlipayFundTransAacollectPayorderCreateModel import AlipayFundTransAacollectPayorderCreateModel class AlipayFundTransAacollectPayorderCreateRequest(object): def __init__(self...
PypiClean
/django_machina-1.3.0-py3-none-any.whl/machina/apps/forum_conversation/forum_polls/forms.py
from django import forms from django.core.exceptions import ValidationError from django.forms.models import BaseModelFormSet, modelformset_factory from django.utils.translation import gettext_lazy as _ from machina.conf import settings as machina_settings from machina.core.db.models import get_model from machina.core....
PypiClean
/dstore-sdk-python-1.0.2.5.tar.gz/dstore-sdk-python-1.0.2.5/dstore/engine/procedures/mi_ModifyRegisteredProcs_Ad_pb2.py
import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_database from google.p...
PypiClean
/cqlengine-0.21.0.tar.gz/cqlengine-0.21.0/README.md
cqlengine =============== ![cqlengine build status](https://travis-ci.org/cqlengine/cqlengine.svg?branch=master) ![cqlengine pypi version](http://img.shields.io/pypi/v/cqlengine.svg) ![cqlengine monthly downloads](http://img.shields.io/pypi/dm/cqlengine.svg) cqlengine is a Cassandra CQL 3 Object Mapper for Python **...
PypiClean
/msgraph_beta_sdk-1.0.0a9-py3-none-any.whl/msgraph/generated/models/managed_tenants/management_template_step_version.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 management_template_step, management_template_step_depl...
PypiClean
/rasa_chinese-2.2.0.tar.gz/rasa_chinese-2.2.0/rasa_chinese/nlu/classifiers/text_cnn_paddle_classifier.py
import logging import os import shutil import tempfile import typing from typing import Any, Dict, Optional, Text from rasa.nlu.components import Component from rasa.nlu.config import InvalidConfigError, RasaNLUModelConfig from rasa.shared.nlu.training_data.message import Message from rasa.shared.nlu.training_data.tra...
PypiClean
/Pygments-2.16.1-py3-none-any.whl/pygments/style.py
from pygments.token import Token, STANDARD_TYPES # Default mapping of ansixxx to RGB colors. _ansimap = { # dark 'ansiblack': '000000', 'ansired': '7f0000', 'ansigreen': '007f00', 'ansiyellow': '7f7fe0', 'ansiblue': '00007f', 'ansimagenta': '7f007f', 'ansicyan': '007f7f', 'ansigray'...
PypiClean
/boot-synth-1.2.0.tar.gz/boot-synth-1.2.0/synth/projects_master/nginx_router/frontend/react/node_modules/rxjs/src/internal/operators/defaultIfEmpty.ts
import { Operator } from '../Operator'; import { Observable } from '../Observable'; import { Subscriber } from '../Subscriber'; import { OperatorFunction, MonoTypeOperatorFunction } from '../types'; /* tslint:disable:max-line-length */ export function defaultIfEmpty<T>(defaultValue?: T): MonoTypeOperatorFunction<T>; e...
PypiClean
/daemontools-0.0.2a1.tar.gz/daemontools-0.0.2a1/README.rst
daemon-tools ============ Python modules for forking the application, single instance behavior, and sending logs over http POST. These are the tools related to various daemon functionality, reused at various projects over time. Daemonize is useful for dropping privileges after the resources have been acquired as root...
PypiClean
/GymBuddy_seanconn-1.0.1-py3-none-any.whl/GymBuddyApp/README.md
# Virtual Environment Setup In summary, you'll need to run the following 3 commands in the root directory to get set up ## Creating a virtual environment ``` python3 -m venv venv/ ``` Don't add your venv folder to git, the directory remain untracked ## Activating virtual environment ``` source venv/bin/activate ``` #...
PypiClean
/tensorflow_rocm-2.12.0.560-cp310-cp310-manylinux2014_x86_64.whl/tensorflow/python/ops/gen_sparse_ops.py
import collections from tensorflow.python import pywrap_tfe as pywrap_tfe from tensorflow.python.eager import context as _context from tensorflow.python.eager import core as _core from tensorflow.python.eager import execute as _execute from tensorflow.python.framework import dtypes as _dtypes from tensorflow.python.f...
PypiClean
/pqp-0.3.3.tar.gz/pqp-0.3.3/python/docs/source/api/pqp.symbols.Marginal.rst
Marginal ======== .. currentmodule:: pqp.symbols .. autoclass:: Marginal :show-inheritance: .. rubric:: Methods Summary .. autosummary:: ~Marginal.copy ~Marginal.r_adapt_map ~Marginal.r_map ~Marginal.sorted ~Marginal.syntactic_eq ~Marginal.to_latex .. rubric:: Metho...
PypiClean
/paradoxdjango-0.0.7.tar.gz/paradoxdjango-0.0.7/django/contrib/sitemaps/__init__.py
import warnings from urllib.parse import urlencode from urllib.request import urlopen from django.apps import apps as django_apps from django.conf import settings from django.core import paginator from django.core.exceptions import ImproperlyConfigured from django.urls import NoReverseMatch, reverse from django.utils ...
PypiClean
/zato-common-holocene-3.2.1.tar.gz/zato-common-holocene-3.2.1/src/zato/common/odb/query/pubsub/queue.py
from __future__ import absolute_import, division, print_function, unicode_literals # SQLAlchemy from sqlalchemy import func, update # Zato from zato.common.api import PUBSUB from zato.common.odb.model import PubSubEndpointEnqueuedMessage, PubSubMessage, PubSubSubscription from zato.common.odb.query import count, _pub...
PypiClean
/PennyLane-0.32.0-py3-none-any.whl/pennylane/data/__init__.py
# Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, software # distributed under the...
PypiClean
/infoblox-netmri-3.8.0.0.tar.gz/infoblox-netmri-3.8.0.0/infoblox_netmri/api/broker/v2_10_0/best_origin_route_broker.py
from ..broker import Broker class BestOriginRouteBroker(Broker): controller = "best_origin_routes" def show(self, **kwargs): """Shows the details for the specified best origin route. **Inputs** | ``api version min:`` None | ``api version max:`` None ...
PypiClean
/aftershoq-1.0.tar.gz/aftershoq-1.0/README.md
# aftershoq A Flexible Tool for Em-Radiation-emitting Semiconductor Heterostructure Optimization using Quantum models This Tool aims to aid in the simulation of quantum cascade structures (such as QC lasers, detectors, or QWIPs) using a variety of different simulation models. It also contains routines for optimization...
PypiClean
/restiro-spa-material-0.10.4.tar.gz/restiro-spa-material-0.10.4/restiro_spa_material/dist/docs.js
window.restiro_docs = {"title": "Notttes", "locale": "fa_IR", "version": null, "base_uri": null, "documents": [], "resources": [{"path": "/note", "method": "get", "tags": ["Note"], "display_name": "Get notes", "description": null, "header_params": [], "uri_params": [], "query_params": [{"name": "sort", "display_name": ...
PypiClean
/smart_home_tng-2023.1.3.tar.gz/smart_home_tng-2023.1.3/smart_home_tng/frontend/frontend_latest/1cdfc0b0.js
"use strict";(self.webpackChunkhome_assistant_frontend=self.webpackChunkhome_assistant_frontend||[]).push([[89411,63519,89301,36039,9703,63626,35660,9927,63141,88097,75489,7093,41922,92441,75337,7059,41158,65338,3123],{54040:(e,i,t)=>{var c=t(87480),r=t(33310),a=t(58417),d=t(39274);let p=class extends a.A{};p.styles=[d...
PypiClean
/wxPython-zombie-3.1.5.6.tar.gz/wxPython-zombie-3.1.5.6/wx/demo/ComboCtrl.py
import wx import os #---------------------------------------------------------------------- #---------------------------------------------------------------------- # This class is used to provide an interface between a ComboCtrl and the # ListCtrl that is used as the popup for the combo widget. class ListCtrlCombo...
PypiClean
/apache-superset-patched-1-0.35.2.tar.gz/apache-superset-patched-1-0.35.2/superset/migrations/versions/190188938582_adding_unique_constraint_on_dashboard_slices_tbl.py
import logging from alembic import op from sqlalchemy import and_, Column, ForeignKey, Integer, Table from sqlalchemy.ext.declarative import declarative_base from superset import db # revision identifiers, used by Alembic. revision = "190188938582" down_revision = "d6ffdf31bdd4" Base = declarative_base() class Da...
PypiClean
/odoo13_addon_website_sale_stock_list_preview-13.0.1.1.2-py3-none-any.whl/odoo/addons/website_sale_stock_list_preview/static/src/js/website_sale_stock_list_preview.js
odoo.define("website_sale_stock_list_preview.shop_stock", function(require) { "use strict"; var publicWidget = require("web.public.widget"); var core = require("web.core"); publicWidget.registry.WebsiteSaleStockListPreview = publicWidget.Widget.extend({ selector: "#products_grid", xmlD...
PypiClean
/h2o_pysparkling_3.4-3.42.0.2.post1.tar.gz/h2o_pysparkling_3.4-3.42.0.2.post1/h2o/estimators/gbm.py
from h2o.estimators.estimator_base import H2OEstimator from h2o.exceptions import H2OValueError from h2o.frame import H2OFrame from h2o.utils.typechecks import assert_is_type, Enum, numeric class H2OGradientBoostingEstimator(H2OEstimator): """ Gradient Boosting Machine Builds gradient boosted trees on a...
PypiClean
/mautrix-telegram-0.14.1.tar.gz/mautrix-telegram-0.14.1/mautrix_telegram/formatter/from_matrix/__init__.py
from __future__ import annotations import re from telethon import TelegramClient from telethon.helpers import add_surrogate, del_surrogate, strip_text from telethon.tl.types import MessageEntityItalic, TypeMessageEntity from mautrix.types import MessageEventContent, RoomID from ...db import Message as DBMessage fro...
PypiClean
/ciefunctions-1.0.2.tar.gz/ciefunctions-1.0.2/tc1_97/MathJax-2.7.5/unpacked/localization/oc/MathMenu.js
MathJax.Localization.addTranslation("oc","MathMenu",{ version: "2.7.5", isLoaded: true, strings: { Show: "Afichar jos la forma", MathMLcode: "C\u00F2di MathML", OriginalMathML: "MathML d\u2019origina", TeXCommands: "Comandas TeX", AsciiMathInput:...
PypiClean
/flowopt-0.1.2-py3-none-any.whl/FlowOpt/flow_operation.py
import json import os import random import re import time from argparse import ArgumentParser, RawTextHelpFormatter from io import BytesIO import matplotlib.pyplot as plt import numpy as np import pyautogui import redis import requests from BaseColor.base_colors import green, blue, hgreen, hred, red, hblue, yellow fro...
PypiClean
/alipay_sdk_python-3.6.740-py3-none-any.whl/alipay/aop/api/domain/TaskInstanceInfoDTO.py
import json from alipay.aop.api.constant.ParamConstants import * class TaskInstanceInfoDTO(object): def __init__(self): self._complete_time = None self._current_num = None self._max_incentive_count = None self._published_amount = None self._receive_time = None sel...
PypiClean
/in-transformers-1.0.0.tar.gz/in-transformers-1.0.0/src/transformers/models/bloom/tokenization_bloom_fast.py
import json from typing import TYPE_CHECKING, List, Optional, Tuple from tokenizers import pre_tokenizers from ...tokenization_utils_base import BatchEncoding from ...tokenization_utils_fast import PreTrainedTokenizerFast from ...utils import logging if TYPE_CHECKING: from transformers.pipelines.conversational ...
PypiClean
/jdcloud_sdk-1.6.243.tar.gz/jdcloud_sdk-1.6.243/jdcloud_sdk/services/cps/models/Subnet.py
# Copyright 2018 JDCLOUD.COM # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing,...
PypiClean
/pynsist-2.8.tar.gz/pynsist-2.8/nsist/nsiswriter.py
import itertools from operator import itemgetter import os import ntpath import sys import jinja2 _PKGDIR = os.path.abspath(os.path.dirname(__file__)) PY2 = sys.version_info[0] == 2 class NSISFileWriter(object): """Write an .nsi script file by filling in a template. """ def __init__(self, template_file...
PypiClean
/sparseml_nightly-1.6.0.20230829-py3-none-any.whl/sparseml/pytorch/sparsification/pruning/modifier_pruning_acdc.py
import math from typing import List, Union from torch.nn import Module, Parameter from torch.optim.optimizer import Optimizer from sparseml.pytorch.sparsification.modifier import ModifierProp, PyTorchModifierYAML from sparseml.pytorch.sparsification.pruning.mask_creator import ( PruningMaskCreator, get_mask_...
PypiClean
/barman-3.8.0.tar.gz/barman-3.8.0/doc/barman-cloud-check-wal-archive.1.md
% BARMAN-CLOUD-CHECK-WAL-ARCHIVE(1) Barman User manuals | Version 3.8.0 % EnterpriseDB <https://www.enterprisedb.com> % August 31, 2023 # NAME barman-cloud-check-wal-archive - Check a WAL archive destination for a new PostgreSQL cluster # SYNOPSIS barman-cloud-check-wal-archive [*OPTIONS*] *SOURCE_URL* *SERVER_NAM...
PypiClean
/azure_ai_ml-1.9.0-py3-none-any.whl/azure/ai/ml/_restclient/v2022_05_01/aio/operations/_private_link_resources_operations.py
import functools from typing import Any, Callable, Dict, Generic, Optional, TypeVar import warnings from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error from azure.core.pipeline import PipelineResponse from azure.core.pipeline.transport i...
PypiClean
/mtr-0.0.1.tar.gz/mtr-0.0.1/mr/utils/metric_calculator.py
from typing import Optional import numpy as np import scipy.linalg as linalg import torch from torch import Tensor from torch.nn import Module from torch.utils.data import DataLoader from torchvision.models import inception_v3 as Inception class MetricCalculator: @staticmethod def calculate_frechet_distance(...
PypiClean
/comt-2.6.4.tar.gz/comt-2.6.4/src/cm/media/js/lib/yui/yui3-3.15.0/build/event-key/event-key.js
YUI.add('event-key', function (Y, NAME) { /** * Functionality to listen for one or more specific key combinations. * @module event * @submodule event-key */ var ALT = "+alt", CTRL = "+ctrl", META = "+meta", SHIFT = "+shift", trim = Y.Lang.trim, eventDef = { KEY_MA...
PypiClean
/symphony_bdk_python-2.6.1-py3-none-any.whl/symphony/bdk/gen/agent_model/v1_dlp_dictionary_metadata_update_request.py
import re # noqa: F401 import sys # noqa: F401 from typing import List, Union from symphony.bdk.gen.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, ModelSimple, cached_property, change_keys_js_to_python, convert_js_args_to_python_args, date, datetime, ...
PypiClean
/PySuperTuxKart-1.0.3.tar.gz/PySuperTuxKart-1.0.3/lib/libpng/contrib/pngminus/README
PngMinus -------- (copyright Willem van Schaik, 1999) License ------- Permission to use, copy, modify, and distribute this software and its documentation for any purpose and without fee is hereby granted, provided that the above copyright notice appear in all copies and that both that copyright notice and this permi...
PypiClean
/orchid_python_api-2023.1.220-py3-none-any.whl/orchid/native_treatment_calculations.py
from collections import namedtuple import datetime as dt from typing import Callable, Union import deal import option import pendulum from orchid import ( project_store as loader, native_stage_adapter as nsa, net_date_time as net_dt, net_quantity as net_qty, unit_system as units, ) # # noinspec...
PypiClean
/moto-ext-4.2.0.post1.tar.gz/moto-ext-4.2.0.post1/moto/ec2/responses/__init__.py
from .account_attributes import AccountAttributes from .amis import AmisResponse from .availability_zones_and_regions import AvailabilityZonesAndRegions from .customer_gateways import CustomerGateways from .dhcp_options import DHCPOptions from .elastic_block_store import ElasticBlockStore from .elastic_ip_addresses imp...
PypiClean
/commonroad_scenario_designer-0.7.2.tar.gz/commonroad_scenario_designer-0.7.2/crdesigner/ui/gui/mwindow/toolboxes/road_network_toolbox/road_network_toolbox_ui.py
from PyQt5.QtCore import * from PyQt5.QtGui import * from PyQt5.QtWidgets import * import math from crdesigner.ui.gui.mwindow.service_layer.services.waitingspinnerwidget import QtWaitingSpinner from crdesigner.ui.gui.mwindow.toolboxes.toolbox_ui import Toolbox, CheckableComboBox, CollapsibleArrowBox, CollapsibleCheckB...
PypiClean
/nengo_gui-0.4.9-py3-none-any.whl/nengo_gui/grandalf/utils.py
import math from math import atan2, cos, sin, sqrt import numpy from numpy import array try: import ply.lex as lex import ply.yacc as yacc _has_ply = True except ImportError: _has_ply = False # ------------------------------------------------------------------------------ class Poset(object): d...
PypiClean
/mayan-edms-ng-3.0.2.tar.gz/mayan-edms-ng-3.0.2/mayan/apps/metadata/serializers.py
from __future__ import unicode_literals from django.core.exceptions import ValidationError as DjangoValidationError from django.utils.translation import ugettext_lazy as _ from rest_framework import serializers from rest_framework.exceptions import ValidationError from rest_framework.reverse import reverse from docu...
PypiClean
/vioneta-2023.7.3.tar.gz/vioneta-2023.7.3/homeassistant/components/fritz/services.py
from __future__ import annotations import logging import voluptuous as vol from homeassistant.config_entries import ConfigEntryState from homeassistant.core import HomeAssistant, ServiceCall from homeassistant.exceptions import HomeAssistantError from homeassistant.helpers.service import async_extract_config_entry_i...
PypiClean
/GraphLab_Create-2.1-cp27-none-macosx_10_5_x86_64.macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.macosx_10_11_intel.macosx_10_11_x86_64.whl/graphlab/_beta/views/platform/_view_server.py
import collections as _collections import copy as _copy import json as _json import os as _os import requests as _requests import threading as _threading import tornado as _tornado import tornado.web as _web import types as _types import uuid as _uuid import six as _six ################################################...
PypiClean
/sat_ws-3.23.2-py3-none-any.whl/mx_edi/connectors/sat/sat_login_handler.py
import logging from datetime import date, datetime, timedelta from uuid import uuid1 from . import templates, utils from .certificate_handler import CertificateHandler from .response_parsers import LoginParser _logger = logging.getLogger(__name__) class SATLoginHandler: _token: str = "" _token_expires: date...
PypiClean
/cubicweb-eac-2.0.0.tar.gz/cubicweb-eac-2.0.0/cubicweb_eac/dataimport.py
from collections import deque import copy import json import datetime import re from functools import wraps, partial import inspect import logging from uuid import uuid4 from dateutil.parser import parse as parse_date from lxml import etree from cubicweb.dataimport.importer import ExtEntity from cubicweb_skos import...
PypiClean
/livestreamer-1.12.2.tar.gz/livestreamer-1.12.2/docs/index.rst
Overview -------- Livestreamer is a :ref:`command-line utility <cli>` that pipes video streams from various services into a video player, such as `VLC <http://videolan.org/>`_. The main purpose of Livestreamer is to allow the user to avoid buggy and CPU heavy flash plugins but still be able to enjoy various streamed c...
PypiClean
/benchling_api_client-2.0.207-py3-none-any.whl/benchling_api_client/api/containers/archive_containers.py
from typing import Any, Dict, Optional, Union import httpx from ...client import Client from ...models.bad_request_error import BadRequestError from ...models.containers_archival_change import ContainersArchivalChange from ...models.containers_archive import ContainersArchive from ...models.forbidden_restricted_sampl...
PypiClean
/thoth_pipenv-2020.1.29-py3-none-any.whl/pipenv/patched/notpip/_internal/vcs/subversion.py
from __future__ import absolute_import import logging import os import re from pipenv.patched.notpip._internal.utils.logging import indent_log from pipenv.patched.notpip._internal.utils.misc import ( display_path, make_vcs_requirement_url, rmtree, split_auth_from_netloc, ) from pipenv.patched.notpip._internal.vcs...
PypiClean
/fake_bpy_module_3.0-20230117-py3-none-any.whl/gpu/matrix.py
import sys import typing import mathutils GenericType = typing.TypeVar("GenericType") def get_model_view_matrix() -> 'mathutils.Matrix': ''' Return a copy of the model-view matrix. :rtype: 'mathutils.Matrix' :return: A 4x4 view matrix. ''' pass def get_normal_matrix() -> 'mathutils.Matrix': ...
PypiClean
/dimsense-0.1.2.tar.gz/dimsense-0.1.2/README.md
# DimSense: Feature Selection and Extraction Library DimSense is a Python library designed to streamline the process of feature selection and extraction in machine learning projects. Whether you're working with large datasets or aiming to enhance model performance, DimSense offers a collection of methods to help you i...
PypiClean
/python-sources-3.10.5.tar.gz/python-sources-3.10.5/Python-3.10.5/Doc/howto/annotations.rst
.. _annotations-howto: ************************** Annotations Best Practices ************************** :author: Larry Hastings .. topic:: Abstract This document is designed to encapsulate the best practices for working with annotations dicts. If you write Python code that examines ``__annotations__`` on Pyt...
PypiClean
/custom_streamlit-1.20.0-py3-none-any.whl/streamlit/commands/query_params.py
import urllib.parse as parse from typing import Any, Dict, List from streamlit import util from streamlit.errors import StreamlitAPIException from streamlit.proto.ForwardMsg_pb2 import ForwardMsg from streamlit.runtime.metrics_util import gather_metrics from streamlit.runtime.scriptrunner import get_script_run_ctx E...
PypiClean
/Kr0nOs-3.4.1.tar.gz/Kr0nOs-3.4.1/kronbot/core/bank.py
from __future__ import annotations import asyncio import datetime from functools import wraps from typing import TYPE_CHECKING, List, Optional, Union import discord from kronbot.core.utils.chat_formatting import humanize_number from . import Config, commands, errors from .errors import BankPruneError from .i18n imp...
PypiClean
/hnzhu020201-0.0.1.tar.gz/hnzhu020201-0.0.1/_pytest/config/findpaths.py
import os from pathlib import Path from typing import Dict from typing import Iterable from typing import List from typing import Optional from typing import Sequence from typing import Tuple from typing import TYPE_CHECKING from typing import Union import iniconfig from .exceptions import UsageError from _pytest.out...
PypiClean
/LFake-18.9.0.tar.gz/LFake-18.9.0/lfake/providers/emoji/__init__.py
from .. import BaseProvider class Provider(BaseProvider): emojis = [ "😀", "😃", "😄", "😁", "😆", "😅", "🤣", "😂", "🙂", "🙃", "😉", "😊", "😇", "🥰", "😍", "🤩", "😘", ...
PypiClean
/pulumi_azure_native-2.5.1a1693590910.tar.gz/pulumi_azure_native-2.5.1a1693590910/pulumi_azure_native/documentdb/v20230415/get_cassandra_resource_cassandra_keyspace.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__ = [ 'GetCassandraResourceCassandraKeyspaceResult', 'AwaitableGetCassandraResourceCassandraKeyspaceResult', 'get_cass...
PypiClean
/hot-shelve-0.1.2.tar.gz/hot-shelve-0.1.2/hot_shelve/flat_shelve.py
import shelve from typing import Any from typing import Iterator from typing import Union class T: Key = str # e.g. 'a' FlatKey = str # e.g. 'a.b.c' Value = Any Node = dict[Key, Value] KeyChain = list[Key] # KeyChain should be always sync with the level of Node. # flat_key = '.'...
PypiClean
/AHRS-0.3.1-py3-none-any.whl/ahrs/common/constants.py
import cmath # TRIGONOMETRY M_PI = cmath.pi DEG2RAD = M_PI/180 RAD2DEG = 180/M_PI ##### Geodetic constants as defined in WORLD GEODETIC SYSTEM 1984 (rev. 2014) # Defining parameters EARTH_EQUATOR_RADIUS = 6_378_137.0 # Semi-major axis of Earth (Equatorial Radius) [m] EARTH_FLATTENING_INV = 298.257223563 ...
PypiClean
/terraform_validator-0.6.42-py3-none-any.whl/terraform_validator/custom_rules/S3BucketPolicyNotPrincipalRule.py
from __future__ import absolute_import, division, print_function import inspect import sys from builtins import (str) from terraform_validator.custom_rules.BaseRule import BaseRule def lineno(): """Returns the current line number in our program.""" return str(' - S3BucketPolicyNotPrincipalRule - caller: '+str(...
PypiClean
/Parterre-1.4.1.tar.gz/Parterre-1.4.1/parterre/datc.py
r'''DATC rule variant test cases for Parlance Copyright (C) 2001-2008 Lucas B. Kruijswijk and Eric Wald This module contains placeholders for tests to be implemented when rule variants rise a bit higher in the priority queue. Some of these variants may require message syntax modification and/or a...
PypiClean
/pyktug_guilleeh90-0.0.2.1-py3-none-any.whl/pyktug/gait_speed.py
import matplotlib.pyplot as plt import numpy as np def speed(SpineBase_Z, ktime, frame_inc, frame_change, directory,dict_marcha, plot=False, save_fig=False): dist_recorrida_vel=[] l=[] dist_recorrida_vel2=[] l2=[] c=-1 for i in SpineBase_Z[:frame_change]: c+=1 if i <=3 and i>=2: dist_recorrida_v...
PypiClean
/kalabash-2.0.1.tar.gz/kalabash-2.0.1/doc/index.rst
.. Kalabash documentation master file, created by sphinx-quickstart on Mon Jan 3 22:29:25 2011. You can adapt this file completely to your liking, but it should at least contain the root `toctree` directive. Kalabash documentation ===================== .. image:: _static/kalabash_logo.png :align: center ...
PypiClean
/modelica-builder-0.3.0.tar.gz/modelica-builder-0.3.0/modelica_builder/edit.py
from modelica_builder import modelica_parser class Edit: DELETE = 'delete' REPLACE = 'replace' INSERT = 'insert' def __init__(self, start, stop, data, operation): self.start = start self.stop = stop self.data = data self._operation = operation def __lt__(self, oth...
PypiClean
/ooouno-2.1.2-py3-none-any.whl/ooo/lo/mozilla/menu_single_change.py
from ooo.oenv.env_const import UNO_NONE import typing class MenuSingleChange(object): """ Struct Class Explains a change for a menu item. See Also: `API MenuSingleChange <https://api.libreoffice.org/docs/idl/ref/structcom_1_1sun_1_1star_1_1mozilla_1_1MenuSingleChange.html>`_ """ __oo...
PypiClean
/ckanext-Dataset-Reference-2.0.2.tar.gz/ckanext-Dataset-Reference-2.0.2/ckanext/dataset_reference/public/statics/add_manually.js
$(document).ready(function(){ $("#pub-type").select2(); $('#years-select').select2(); $('select.month-select').select2(); $("#thesis-type").select2(); let pubType = $('#pub-type').select2('data').text; setRefTypeSections(pubType); $('#pub-type').change(function(){ let pubType = $(th...
PypiClean
/roof_mask_Yv8-0.5.9-py3-none-any.whl/detectron2/export/caffe2_modeling.py
import functools import io import struct import types import torch from detectron2.modeling import meta_arch from detectron2.modeling.box_regression import Box2BoxTransform from detectron2.modeling.roi_heads import keypoint_head from detectron2.structures import Boxes, ImageList, Instances, RotatedBoxes from .c10 im...
PypiClean