id
stringlengths
1
8
text
stringlengths
6
1.05M
dataset_id
stringclasses
1 value
/mayan-edms-4.4.8.tar.gz/mayan-edms-4.4.8/mayan/apps/duplicates/views.py
import logging from django.contrib import messages from django.utils.translation import ugettext_lazy as _ from mayan.apps.documents.models.document_models import Document from mayan.apps.documents.permissions import ( permission_document_tools, permission_document_view ) from mayan.apps.documents.views.document_...
PypiClean
/mnist_dnn-0.1.3-py3-none-any.whl/mnist_dnn/layer.py
import numpy as np from numba import jit import mnist_dnn.core.layer as core_layer class Dense(core_layer._Layer): """ Dense class provides implemented features for both Dendrite and Activation layers combined. Static Attributes: <No static attributes> Class Attributes: TODO """...
PypiClean
/pySplitFlap-1.2.0.tar.gz/pySplitFlap-1.2.0/splitflap/display/ascii_graphics.py
class AsciiGraphics: PIECES = ["━", "┃", "┏", "┗", "┓", "┛", "┣", "┳", "┫", "┻", "╋"] PIECES_2_POINTS = ["━", "┃", "┏", "┗", "┓", "┛"] PIECES_3_POINTS = ["┣", "┳", "┫", "┻"] PIECES_4_POINTS = ["╋"] PIECE_COMBINATIONS = { "━": { "┃": "╋", "┏": "┳", "┗": "┻"...
PypiClean
/flydra_analysis-0.7.16.tar.gz/flydra_analysis-0.7.16/flydra_analysis/a2/plot_timeseries_2d_3d.py
from __future__ import division, print_function from __future__ import absolute_import if 1: # deal with old files, forcing to numpy import tables.flavor tables.flavor.restrict_flavors(keep=["numpy"]) import os, sys, math import pkg_resources import numpy import numpy as np import tables as PT from optp...
PypiClean
/village_temporalio-0.1b2-cp37-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl/temporalio/api/workflowservice/v1/__init__.py
from .request_response_pb2 import ( CountWorkflowExecutionsRequest, CountWorkflowExecutionsResponse, CreateScheduleRequest, CreateScheduleResponse, DeleteScheduleRequest, DeleteScheduleResponse, DeprecateNamespaceRequest, DeprecateNamespaceResponse, DescribeNamespaceRequest, Desc...
PypiClean
/txp-0.3.4.tar.gz/txp-0.3.4/thirdparties/SmartMeshSDK/utils/FormatUtils.py
import os import time import urllib LOG_FORMAT_TIMESTAMP = '%Y/%m/%d %H:%M:%S' def formatBuffer(buf): ''' example: [0x11,0x22,0x33,0x44,0x55,0x66,0x77,0x88] -> "11-22-33-44-55-66-77-88" ''' return '-'.join(["%.2x"%i for i in buf]) def formatMacString(mac,upper=False): ''' example: 0x11223...
PypiClean
/cradmin_legacy-5.0.0.tar.gz/cradmin_legacy-5.0.0/cradmin_legacy/static/cradmin_legacy/dist/vendor/momentjs-locale/br.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
/XMCDpy-1.2.2-py3-none-any.whl/xmcdpy/stack_display.py
import numpy as np import matplotlib.pyplot as plt from matplotlib.animation import FuncAnimation from .masking import add_mask plt.rcParams['image.cmap'] = 'gray' plt.ion() class StackDisplay(object): """Class for displaying a stack of images. Scroll for going through the stack, double click for movie. Single c...
PypiClean
/django-updateable-0.2.tar.gz/django-updateable-0.2/README.rst
django-updateable ================= django-updateable adds template tags to automatically update parts of pages via AJAX. Install ------- You can use pip to install: pip install django-updateable Configure --------- After installing django-updateable you must change a few settings in your settings.py * Add `...
PypiClean
/pyaxo-0.8.2.tar.gz/pyaxo-0.8.2/versioneer.py
from __future__ import print_function try: import configparser except ImportError: import ConfigParser as configparser import errno import json import os import re import subprocess import sys class VersioneerConfig: """Container for Versioneer configuration parameters.""" def get_root(): """Get the...
PypiClean
/fake_bpy_module_2.80-20230117-py3-none-any.whl/bpy/ops/ui.py
import sys import typing import bpy.types GenericType = typing.TypeVar("GenericType") def assign_default_button(override_context: typing. Union[typing.Dict, 'bpy.types.Context'] = None, execution_context: typing.Union[str, int] = None, und...
PypiClean
/thread_signals-1.0.0-py3-none-any.whl/thread_signals/task.py
import sys, threading, json from tblib import pickling_support pickling_support.install() import pickle class Task(threading.Event): def __init__(self, executor_thread_id, not_serialized_data, serialized_data): threading.Event.__init__(self) self._executor_thread_id = executor_thread_id ...
PypiClean
/formification-1.2.0-py3-none-any.whl/formulaic/static/admin/formulaic/ember-formulaic/node_modules/tiny-lr/src/client.js
'use strict'; Object.defineProperty(exports, "__esModule", { value: 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 ("va...
PypiClean
/watchmen_pipeline_kernel-16.5.26.tar.gz/watchmen_pipeline_kernel-16.5.26/src/watchmen_pipeline_kernel/pipeline/sql_performance_invoker.py
import asyncio from logging import getLogger from typing import Callable from watchmen_auth import PrincipalService from watchmen_data_kernel.meta import TopicService from watchmen_data_kernel.topic_schema import TopicSchema from watchmen_model.admin import PipelineTriggerType from watchmen_model.pipeline_kernel impor...
PypiClean
/maltpynt-2.0.1.tar.gz/maltpynt-2.0.1/astropy_helpers/astropy_helpers/sphinx/themes/bootstrap-astropy/static/sidebar.js
$(function() { // global elements used by the functions. // the 'sidebarbutton' element is defined as global after its // creation, in the add_sidebar_button function var bodywrapper = $('.bodywrapper'); var sidebar = $('.sphinxsidebar'); var sidebarwrapper = $('.sphinxsidebarwrapper'); // for some reaso...
PypiClean
/wyvern_ai-0.0.14.tar.gz/wyvern_ai-0.0.14/wyvern/entities/identifier_entities.py
from __future__ import annotations from typing import Any, Dict, List, Optional, Set from pydantic import BaseModel, PrivateAttr from wyvern.entities.identifier import Identifier, SimpleIdentifierType class WyvernDataModel(BaseModel): """ WyvernDataModel is a base class for all data models that could be hy...
PypiClean
/pytorch_ard-0.2.4-py3-none-any.whl/torch_ard/torch_ard.py
import torch from torch import nn from torch.nn import Parameter import torch.nn.functional as F from functools import reduce import operator class LinearARD(nn.Module): """ Dense layer implementation with weights ARD-prior (arxiv:1701.05369) """ def __init__(self, in_features, out_features, bias=Tru...
PypiClean
/ovirt-shell-3.6.9.2.tar.gz/ovirt-shell-3.6.9.2/src/ovirtcli/command/capabilities.py
import pkg_resources from ovirtcli.shell.capabilitiescmdshell import CapabilitiesCmdShell from ovirtcli.command.command import OvirtCommand class CapabilitiesCommand(OvirtCommand): name = 'capabilities' description = 'displaying system capabilities' args_check = (0, 1) valid_options = [ ( ...
PypiClean
/gress-0.2.1.tar.gz/gress-0.2.1/README.md
# Gress - Naïve Progress Bar What should be the amateur version of *progress* - a ***gress***? The *gress* library provide highly customizable text-based progress monitor for *Python*. The inspiration for this library came from the original work of [Nilton Volpato](https://github.com/NiltonVolpato/python-progressbar)...
PypiClean
/cobo_custdy-0.1.tar.gz/cobo_custdy-0.1/cobo_custody/client/client.py
import json import time from hashlib import sha256 from urllib.parse import urlencode import requests from cobo_custody.client.api_response import ApiResponse from cobo_custody.config import Env from cobo_custody.error.api_error import ApiError from cobo_custody.signer.api_signer import ApiSigner from cobo_custody.si...
PypiClean
/intel_extension_for_transformers-1.1-cp38-cp38-win_amd64.whl/intel_extension_for_transformers/optimization/benchmark.py
"""Benchmark: provide the inference functions for PyTorchBenchmark and ExecutorBenchmark.""" import os import sys import torch import psutil from collections import UserDict from .utils.utility import remove_label from neural_compressor import __version__ as nc_version from neural_compressor.utils import logger from n...
PypiClean
/jdcloud_sdk-1.6.243.tar.gz/jdcloud_sdk-1.6.243/jdcloud_sdk/services/tidb/apis/ModifyReplicationRequest.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
/amlnx_adapter-0.0.0.4.8.tar.gz/amlnx_adapter-0.0.0.4.8/amlnx_adapter/node2vec/imdb_dataloader.py
import yaml import os import networkx as nx from arango import ArangoClient from amlnx_adapter.custom_http_client import CustomHTTPClient from amlnx_adapter.graph_params import GraphParams class IMDB_Dataloader: def __init__(self, graph_config = None, graph_desc_save_fp = "imdb_graph_descriptor.yaml"): ...
PypiClean
/django-nani-0.0.3.tar.gz/django-nani-0.0.3/nani/fieldtranslator.py
from django.db.models.sql.constants import QUERY_TERMS TRANSLATIONS = 1 TRANSLATED = 2 NORMAL = 3 MODEL_INFO = {} def _build_model_info(model): """ Builds the model information dictinary for get_model_info """ from nani.models import BaseTranslationModel, TranslatableModel info = {} if issu...
PypiClean
/django_rich-1.7.0.tar.gz/django_rich-1.7.0/README.rst
=========== django-rich =========== .. image:: https://img.shields.io/github/actions/workflow/status/adamchainz/django-rich/main.yml?branch=main&style=for-the-badge :target: https://github.com/adamchainz/django-rich/actions?workflow=CI .. image:: https://img.shields.io/badge/Coverage-100%25-success?style=for-the-b...
PypiClean
/django-uikit-admin-0.1.1.tar.gz/django-uikit-admin-0.1.1/uikit_admin/static/admin/js/admin/DateTimeShortcuts.js
var DateTimeShortcuts = { calendars: [], calendarInputs: [], clockInputs: [], dismissClockFunc: [], dismissCalendarFunc: [], calendarDivName1: 'calendarbox', // name of calendar <div> that gets toggled calendarDivName2: 'calendarin', // name of <div> that contains calendar calendarLink...
PypiClean
/json_syntax-2.3.1-py3-none-any.whl/json_syntax/std.py
from .helpers import ( JSON2PY, PY2JSON, INSP_JSON, INSP_PY, PATTERN, STR2PY, PY2STR, INSP_STR, ) from .types import ( has_origin, get_origin, issub_safe, NoneType, ) from .action_v1 import ( check_collection, check_float, check_isinst, check_has_type, ...
PypiClean
/flask-admin-markdown-2020.3.27.1.tar.gz/flask-admin-markdown-2020.3.27.1/flask_admin_markdown/static/editormd/lib/codemirror/mode/z80/z80.js
(function(mod) { if (typeof exports == "object" && typeof module == "object") // CommonJS mod(require("../../lib/codemirror")); else if (typeof define == "function" && define.amd) // AMD define(["../../lib/codemirror"], mod); else // Plain browser env mod(CodeMirror); })(function(CodeMirror) { "use s...
PypiClean
/django_htmx_ui_adminlte-0.1.13-py3-none-any.whl/django_htmx_ui_adminlte/static/adminlte/plugins/codemirror/addon/hint/html-hint.js
(function(mod) { if (typeof exports == "object" && typeof module == "object") // CommonJS mod(require("../../lib/codemirror"), require("./xml-hint")); else if (typeof define == "function" && define.amd) // AMD define(["../../lib/codemirror", "./xml-hint"], mod); else // Plain browser env mod(CodeMirr...
PypiClean
/cosmodoit-0.1.3-cp39-cp39-macosx_10_9_x86_64.whl/music_features/get_loudness.py
import os from typing import Iterable, List, Optional from doit.tools import config_changed import lowess import matplotlib.pyplot as plt import numpy as np import pandas as pd import scipy import scipy.interpolate import scipy.signal import soundfile as sf from . import _ma_sone def get_loudness(input_path: str, *...
PypiClean
/src/blastrunlib.py
from metabgc.src.producer_consumer import * import os import re import csv import logging """ Function to run make BLAST db and search FASTA files. """ def BLASTN(blastdb, searchFileList, blastCmdString, blastParamStr, outFileList, ncpus): blastCmdList = [] for i, queryFile in enumerate(sear...
PypiClean
/GenIce2-2.1.7.1.tar.gz/GenIce2-2.1.7.1/genice2/formats/reshape.py
import itertools as it import re from logging import getLogger from math import floor import genice2.formats import numpy as np from genice2.decorators import banner, timeit desc = {"ref": {}, "brief": "Cell-reshaper.", "usage": """ A formatter plugin for GenIce to produce a python lattice plugin. U...
PypiClean
/chaosplatform-account-0.2.0.tar.gz/chaosplatform-account-0.2.0/README.md
# Chaos Platform Account Service [![Version](https://img.shields.io/pypi/v/chaosplatform-account.svg)](https://img.shields.io/pypi/v/chaosplatform-account.svg) [![License](https://img.shields.io/pypi/l/chaosplatform-account.svg)](https://img.shields.io/pypi/l/chaosplatform-account.svg) [![StackOverflow](https://img.sh...
PypiClean
/sysidentpy-0.3.1.tar.gz/sysidentpy-0.3.1/examples/datasets/data_sources.md
## data sources: Energy Datasets The datasets SanFrancisco_Hospital.csv and SanFrancisco_PV_GHI.csv are sourced from [Neural Prophet Dataset Github repository](https://github.com/ourownstory/neuralprophet-data). Those datasets will be really useful for anyone interested in SysIdentPy time series modeling benchmarks a...
PypiClean
/pulumi_azure_native-2.5.1a1693590910.tar.gz/pulumi_azure_native-2.5.1a1693590910/pulumi_azure_native/workloads/sap_landscape_monitor.py
import copy import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from .. import _utilities from . import outputs from ._inputs import * __all__ = ['SapLandscapeMonitorArgs', 'SapLandscapeMonitor'] @pulumi.input_type class SapLandscapeMonitorArgs: ...
PypiClean
/rc_distributions-0.3.tar.gz/rc_distributions-0.3/rc_distributions/Binomialdistribution.py
import math import matplotlib.pyplot as plt from .Generaldistribution import Distribution class Binomial(Distribution): """ Binomial distribution class for calculating and visualizing a Binomial distribution. Attributes: mean (float) representing the mean value of the distribution std...
PypiClean
/google-ads-21.3.0.tar.gz/google-ads-21.3.0/google/ads/googleads/v13/services/services/campaign_label_service/transports/base.py
import abc from typing import Awaitable, Callable, Optional, Sequence, Union import pkg_resources import google.auth # type: ignore import google.api_core # type: ignore from google.api_core import exceptions as core_exceptions # type: ignore from google.api_core import gapic_v1 # type: ignore from google.api_core...
PypiClean
/monster_chat_client-1.0.0-py3-none-any.whl/client_app/views/client_gui.py
import os from PyQt5 import uic from PyQt5.QtCore import pyqtSlot, Qt from PyQt5.QtGui import QStandardItemModel, QStandardItem, QBrush, QColor from PyQt5.QtWidgets import QMainWindow, QMessageBox from .add_contact import AddContactForm FORM_CLASS, _ = uic.loadUiType(os.path.join(os.path.dirname(__file__), 'client_g...
PypiClean
/SerpScrap-0.13.0-py3-none-any.whl/scrapcore/scraper/scrape_worker_factory.py
class ScrapeWorkerFactory(): def __init__(self, config, cache_manager=None, mode=None, proxy=None, search_engine=None, session=None, db_lock=None, cache_lock=None, scraper_search=None, captcha_lock=None, progress_queue=None, browser_num=1): self.config =...
PypiClean
/nni-3.0rc1-py3-none-macosx_10_9_x86_64.whl/nni_node/node_modules/lockfile/test/stale-contention.js
var fs = require('fs') var lockFile = require('../') var test = require('tap').test var path = require('path') var lock = path.resolve(__dirname, 'stale.lock') var touch = require('touch') var spawn = require('child_process').spawn var node = process.execPath // We're using a lockfile with an artificially old date, //...
PypiClean
/nwcsafpps_runner-0.2.5.tar.gz/nwcsafpps_runner-0.2.5/nwcsafpps_runner/metno_update_nwp.py
# Copyright (c) 2016 - 2021 Trygve Aspenes # Author(s): # trygveas@met.no # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later v...
PypiClean
/pulumi_oci-1.9.0a1693465256.tar.gz/pulumi_oci-1.9.0a1693465256/pulumi_oci/identity/get_domains_security_question_settings.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__ = [ 'GetDomainsSecurityQuestionSettingsResult', 'AwaitableGetDomainsSecurityQuestionSettingsResult', 'get_domains_sec...
PypiClean
/dissect.target-3.11.1.tar.gz/dissect.target-3.11.1/dissect/target/plugins/os/unix/log/audit.py
import re from pathlib import Path from typing import Iterator from dissect.util.ts import from_unix from dissect.target.helpers.fsutil import basename, open_decompress from dissect.target.helpers.record import TargetRecordDescriptor from dissect.target.plugin import Plugin, export, internal AuditRecord = TargetReco...
PypiClean
/python_da_final_vkaul-0.0.1.tar.gz/python_da_final_vkaul-0.0.1/.eggs/pandas-1.2.2-py3.9-win-amd64.egg/pandas/plotting/_matplotlib/misc.py
import random from typing import TYPE_CHECKING, Dict, List, Optional, Set import matplotlib.lines as mlines import matplotlib.patches as patches import numpy as np from pandas._typing import Label from pandas.core.dtypes.missing import notna from pandas.io.formats.printing import pprint_thing from pandas.plotting._...
PypiClean
/changer-c5-1.2.tar.gz/changer-c5-1.2/changer/c5/simplesjop/migrations/0005_profile_model.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 'Profile' db.create_table('simplesjop_profile', ( ('id', self.gf('django.db.models.fields.AutoFie...
PypiClean
/spkcspider-0.30.tar.gz/spkcspider-0.30/README.md
Simple protection-knocking (visiting) card Spider (short: spkcspider) -------------------------------------------------------- spkcspider provides a digital visiting card which can e.g. be used for authentication, shopping and payment. For this a multifactor authentication is provided. It keeps your online data safe w...
PypiClean
/ensmallen_graph-0.6.0-cp37-cp37m-manylinux2010_x86_64.whl/ensmallen_graph/datasets/string/pelobactercarbinolicus.py
from typing import Dict from ..automatic_graph_retrieval import AutomaticallyRetrievedGraph from ...ensmallen_graph import EnsmallenGraph # pylint: disable=import-error def PelobacterCarbinolicus( directed: bool = False, verbose: int = 2, cache_path: str = "graphs/string", **additional_graph_kwargs:...
PypiClean
/dsc-python-sdk-1.1.8.tar.gz/dsc-python-sdk-1.1.8/dsc_sdk/proto/tendermint/crypto/keys_pb2.py
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 # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() from ...gogoproto impor...
PypiClean
/msgraph_beta_sdk-1.0.0a9-py3-none-any.whl/msgraph/generated/directory_roles/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
/PatryksAutoAI-1.6.2.tar.gz/PatryksAutoAI-1.6.2/KaggleAutoAI/classification/models/xgb.py
from sklearn.model_selection import train_test_split,GridSearchCV,KFold from ..metrics import Metrics import optuna.visualization as vis from sklearn.metrics import log_loss, roc_auc_score import numpy as np import xgboost as xgb import optuna optuna.logging.disable_default_handler() class XGB(Metrics): def __ini...
PypiClean
/valer.core-1.3.5rc12.zip/valer.core-1.3.5rc12/bika/lims/content/analysisrequest.py
import base64 import re import sys from decimal import Decimal from urlparse import urljoin from AccessControl import ClassSecurityInfo from bika.lims import api from bika.lims import bikaMessageFactory as _ from bika.lims import deprecated from bika.lims import logger from bika.lims.api.security import check_permiss...
PypiClean
/monk_cuda102_test-0.0.1-py3-none-any.whl/monk/gluon/models/imports.py
from __future__ import print_function from __future__ import division import warnings import mxnet as mx import GPUtil from mxnet import gluon, init, nd, initializer from mxnet.gluon import nn from gluoncv.model_zoo import get_model import networkx as nx from matplotlib import pyplot as plt from mxnet.gluon.contrib i...
PypiClean
/django-importo-0.1.0.tar.gz/django-importo-0.1.0/importo/wagtail/lookups.py
import re from typing import Any, Dict, Sequence from django.core.exceptions import FieldDoesNotExist, ValidationError from django.db.models import Model from django.db.models.base import ModelBase from django.db.models.query import QuerySet from importo.lookups import BaseLookup from importo.utils.url import looks_l...
PypiClean
/yt-dlp-cp-2.9.9.tar.gz/yt-dlp-cp-2.9.9/yt_dlp/extractor/ntvru.py
from .common import InfoExtractor from ..utils import ( int_or_none, strip_or_none, unescapeHTML, xpath_text, ) class NTVRuIE(InfoExtractor): IE_NAME = 'ntv.ru' _VALID_URL = r'https?://(?:www\.)?ntv\.ru/(?:[^/]+/)*(?P<id>[^/?#&]+)' _TESTS = [{ 'url': 'http://www.ntv.ru/novosti/863...
PypiClean
/juju-verify-1.1.tar.gz/juju-verify-1.1/README.md
# Juju verify This CLI tool is a Juju plugin that allows user to check whether it's safe to perform some disruptive maintenance operations on Juju units, like `shutdown` or `reboot`. ## Requirements Juju-verify requires Juju 2.8.10 or higher. ## Supported charms * nova-compute * ceph-osd * ceph-mon * neutron-gatew...
PypiClean
/edc-0.5.27.tar.gz/edc-0.5.27/docs/landing_page.rst
Setting up the project landing page ----------------------------------- Clone the repo, if required: .. code-block:: bash $ git clone https://github.com/ambition-trial/ambition-edc.git .. code-block:: bash cd $REPO $ sudo cp bin/index.html /var/www/html $ sudo cp bin/nginx/ambition-sites.conf /etc/nginx/si...
PypiClean
/cs.portlet.calendar-1.0.tar.gz/cs.portlet.calendar-1.0/cs/portlet/calendar/resources/locale/lb.js
!function(e){"function"==typeof define&&define.amd?define(["jquery","moment"],e):"object"==typeof exports?module.exports=e(require("jquery"),require("moment")):e(jQuery,moment)}(function(e,n){!function(){function e(e,n,r,t){var a={m:["eng Minutt","enger Minutt"],h:["eng Stonn","enger Stonn"],d:["een Dag","engem Dag"],M...
PypiClean
/optimisation_algorithms-1.1.2.tar.gz/optimisation_algorithms-1.1.2/src/optimisation_algorithms/HarmonySearch.py
from random import random import numpy as np from copy import deepcopy class HarmonySearch: """ Optimization using metaheuristic Harmony Search Algorithm, that finds the minimum of the function, improvising harmonies. Attributes ---------- func : callable Function to minimize d: i...
PypiClean
/MNN-0.0.7-cp27-cp27mu-manylinux2010_x86_64.whl/MNNTools/MNN_FB/MomentsParam.py
# namespace: MNN import flatbuffers class MomentsParam(object): __slots__ = ['_tab'] @classmethod def GetRootAsMomentsParam(cls, buf, offset): n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset) x = MomentsParam() x.Init(buf, n + offset) return x # Mo...
PypiClean
/tencentcloud-sdk-python-apigateway-3.0.973.tar.gz/tencentcloud-sdk-python-apigateway-3.0.973/README.rst
============================ Tencent Cloud SDK for Python ============================ Tencent Cloud Python Apigateway SDK is the official software development kit, which allows Python developers to write software that makes use of Tencent Cloud services like CVM and CBS. The SDK works on Python versions: * 2.7 an...
PypiClean
/tfy_mlflow_client-0.0.39-py3-none-any.whl/mlflow/sklearn/utils.py
import collections from packaging.version import Version import inspect import logging from numbers import Number import numpy as np import time import warnings from mlflow.tracking.client import MlflowClient from mlflow.utils.file_utils import TempDir from mlflow.utils.mlflow_tags import MLFLOW_PARENT_RUN_ID from mlf...
PypiClean
/biolinkml-1.7.6.tar.gz/biolinkml-1.7.6/docs/Extension.md
# Class: Extension a tag/value pair used to add non-model information to an entry URI: [meta:Extension](https://w3id.org/biolink/biolinkml/meta/Extension) ![img](images/Extension.svg) ## Children * [Annotation](Annotation.md) - a tag/value pair with the semantics of OWL Annotation ## Referenced by class * ...
PypiClean
/hvm-0.2.15-py3-none-manylinux1_x86_64.whl/hercules/ir/generic.py
from typing import Callable from .base import BaseExpr, HLOExpr, PrimExpr, Span from .type import Type, ListType, PrimType, ObjectType, StringType, UnicodeType from . import type_relation as _type_rel from . import _ffi_api from .. import _ffi from ..runtime.object import Object ######################################...
PypiClean
/noah-vega-1.8.5.tar.gz/noah-vega-1.8.5/vega/networks/mindspore/faster_rcnn/rpn.py
"""RPN for fasterRCNN.""" import numpy as np import mindspore.nn as nn import mindspore.common.dtype as mstype from mindspore import context, Tensor from mindspore.ops import operations as P from mindspore.ops import functional as F from mindspore.common.initializer import initializer from .bbox_assign_sample import Bb...
PypiClean
/aspose-words-cloud-23.7.0.tar.gz/aspose-words-cloud-23.7.0/asposewordscloud/models/watermark_text.py
import pprint import re # noqa: F401 import datetime import six import json class WatermarkText(object): """Class for insert watermark text request building. """ """ Attributes: swagger_types (dict): The key is attribute name and the value is attribute type. a...
PypiClean
/komtet_kassa_sdk-7.1.2.tar.gz/komtet_kassa_sdk-7.1.2/src/komtet_kassa_sdk/v2/employee.py
class EmployeeType(object): """Тип Сотрудника""" COURIER = 'courier' """Курьер""" CASHIER = 'cashier' """Кассир""" DRIVER = 'driver' """Водитель""" class Employee(object): """ :param EmployeeType type: Тип сотрудника :param str name: ФИО сотрудника :param str login: Лог...
PypiClean
/spyder-terminal-1.2.2.tar.gz/spyder-terminal-1.2.2/spyder_terminal/server/static/components/@babel/plugin-transform-modules-commonjs/lib/index.js
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; var _helperPluginUtils = require("@babel/helper-plugin-utils"); var _helperModuleTransforms = require("@babel/helper-module-transforms"); var _helperSimpleAccess = require("@babel/helper-simple-access"); var _c...
PypiClean
/scoped_mapping-0.9.1.tar.gz/scoped_mapping-0.9.1/notebooks/copied/map_from_xsv_col.ipynb
``` import pandas as pd import os import scoped_mapping import numpy as np from scipy.stats import entropy ``` ## _TODO: Add Postgres example_ ``` # these rows in this dataset aren't intended to be related in any way # it's really just three unrelated columns data_file = '../data/webmap_enums.tsv' delimiter ...
PypiClean
/alkanet-picard-0.1.2.1.3.tar.gz/alkanet-picard-0.1.2.1.3/picard/spark_minimizer.py
from __future__ import print_function from hyperopt import Trials import numpy as np import random from picard.minimizer import Minimizer class SparkMinimizer(object): def __init__(self, modelId, sc, num_workers=4): self.modelId = modelId self.spark_context = sc self.num_workers = num_wor...
PypiClean
/dq-notebook-6.0.2.tar.gz/dq-notebook-6.0.2/notebook/static/components/MathJax/jax/output/HTML-CSS/fonts/STIX-Web/fontdata-extra.js
(function(aj){var B="2.7.7";var t=aj.FONTDATA.DELIMITERS;var s="H",f="V";var ag=[8722,E,0,0,0,-0.26,-0.26];var u="STIXMathJax_Alphabets-bold-italic",G="STIXMathJax_Alphabets-bold",z="STIXMathJax_Alphabets-italic",e="STIXMathJax_Alphabets",R="STIXMathJax_Arrows-bold",x="STIXMathJax_Arrows",g="STIXMathJax_DoubleStruck-bo...
PypiClean
/rasafou-1.7.49-py3-none-any.whl/rasa/core/brokers/sql.py
import contextlib import json import logging from typing import Any, Dict, Optional, Text from rasa.constants import DOCS_URL_EVENT_BROKERS from rasa.core.brokers.broker import EventBroker from rasa.utils.common import raise_warning from rasa.utils.endpoints import EndpointConfig logger = logging.getLogger(__name__) ...
PypiClean
/sforecast-0.4.4.tar.gz/sforecast-0.4.4/README.md
# sforecast A framework for running forecasting models within a sliding (expanding) window out-of-sample fit (train/test) and prediction (forecasts). The package includes support of classical forecasting models, SK Learn ML models, and TensorFlow deep learning models. ## Installation ```bash $ pip install sforecast ...
PypiClean
/SAGA-Hadoop-0.31.2.tar.gz/SAGA-Hadoop-0.31.2/spark/bootstrap_spark.py
""" Spark Bootstrap Script (based on Spark 1.2 release) """ import os, sys import pdb import urllib import subprocess import logging import uuid import shutil import time import signal import socket import hostlist from optparse import OptionParser logging.basicConfig(level=logging.DEBUG) # For automatic Download and...
PypiClean
/galaxy_language_server-0.11.0-py3-none-any.whl/galaxyls/services/tools/inputs.py
from typing import ( cast, List, Optional, ) from anytree import ( find, NodeMixin, ) from galaxyls.services.tools.constants import ( BOOLEAN, CONDITIONAL, FALSEVALUE, INPUTS, MIN, NAME, OPTION, PARAM, REPEAT, SECTION, SELECT, TRUEVALUE, TYPE, ...
PypiClean
/test_poetry_vp-0.1.1-py3-none-any.whl/test_poetry_vp/trader/constant.py
from enum import Enum class Direction(Enum): """ Direction of order/trade/position. """ LONG = "多" SHORT = "空" NET = "净" class Offset(Enum): """ Offset of order/trade. """ NONE = "" OPEN = "开" CLOSE = "平" CLOSETODAY = "平今" CLOSEYESTERDAY = "平昨" class Status(...
PypiClean
/abilian_core-0.11.24-py3-none-any.whl/abilian/core/util.py
from __future__ import annotations import functools import hashlib import logging import re import time import unicodedata from datetime import datetime from math import ceil from typing import Any, Union import pytz from babel.dates import LOCALTZ from flask import request from werkzeug.local import LocalProxy def...
PypiClean
/cdktf_cdktf_provider_opentelekomcloud-9.0.0-py3-none-any.whl/cdktf_cdktf_provider_opentelekomcloud/data_opentelekomcloud_dns_zone_v2/__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 * import cdktf as _cdktf_9a9027ec import constructs as _constructs_77d1e7e8 class DataOpentelekomcloudDnsZoneV2( _cdktf_9a9027ec.Ter...
PypiClean
/dstream_excel-0.4.6.tar.gz/dstream_excel-0.4.6/dstream_excel/dstream/workbook/populate.py
from win32com.client import constants from pywintypes import com_error import time import traceback, sys import pythoncom from exceldriver.tools import _restart_excel_with_addins_and_attach from .wait import ( _wait_for_datastream_result, WorkbookClosedException, DatastreamDataErrorException, _get_cel...
PypiClean
/gamification-engine-0.4.0.tar.gz/gamification-engine-0.4.0/gengine/app/jsscripts/node_modules/eslint/lib/util/rule-fixer.js
"use strict"; //------------------------------------------------------------------------------ // Requirements //------------------------------------------------------------------------------ // none! //------------------------------------------------------------------------------ // Helpers //----------------------...
PypiClean
/RegScale_CLI-5.15.0-py3-none-any.whl/regscale/models/click_models.py
from typing import Any, List, Optional, Union, Callable, Tuple, Dict from pydantic import BaseModel, validator import inspect import click.core import click import contextlib from regscale.models.inspect_models import SignatureModel class ClickOption(BaseModel): """A BaseModel based on a click object This is ...
PypiClean
/WhatsaPy-0.0.1.tar.gz/WhatsaPy-0.0.1/README.md
# WhatsAppPy Unofficial python Wrapper for Whatsapp Businness API. ## PROJECT UNDER DEVELOPEMENT This project is inspired from [heyoo](https://github.com/Neurotech-HQ/heyoo). My mission is to implement a library similar to [Pyrogram](https://github.com/pyrogram/pyrogram) with all methods available in [Whatsapp Bus...
PypiClean
/jacinle-1.0.2.tar.gz/jacinle-1.0.2/jactorch/parallel/data_parallel.py
import torch.cuda as cuda import torch.nn as nn from torch.nn.parallel.data_parallel import DataParallel from jactorch.cuda.copy import async_copy_to from .dict_gather import data_parallel_dict_gather from .replicate import replicate from .replication_callback import exec_data_parallel_replication_callback from .use...
PypiClean
/tensorstore-0.1.30.tar.gz/tensorstore-0.1.30/docs/tensorstore_sphinx_material/src/assets/javascripts/browser/keyboard/index.ts
import { Observable, fromEvent } from "rxjs" import { filter, map, share } from "rxjs/operators" import { getActiveElement } from "../element" import { getToggle } from "../toggle" /* ---------------------------------------------------------------------------- * Types * ---------------------------------------------...
PypiClean
/tensorflow_aarch64-2.14.0rc0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl/tensorflow/python/keras/optimizer_v2/legacy_learning_rate_decay.py
"""Various learning rate decay functions.""" import functools from tensorflow.python.eager import context from tensorflow.python.framework import dtypes from tensorflow.python.framework import tensor_conversion from tensorflow.python.keras.optimizer_v2 import learning_rate_schedule from tensorflow.python.ops import m...
PypiClean
/alipay_sdk_python-3.6.740-py3-none-any.whl/alipay/aop/api/request/AlipayCloudCloudbaseFunctionConfigGetRequest.py
import json from alipay.aop.api.FileItem import FileItem from alipay.aop.api.constant.ParamConstants import * from alipay.aop.api.domain.AlipayCloudCloudbaseFunctionConfigGetModel import AlipayCloudCloudbaseFunctionConfigGetModel class AlipayCloudCloudbaseFunctionConfigGetRequest(object): def __init__(self, b...
PypiClean
/ckanext-attribution-1.2.9.tar.gz/ckanext-attribution-1.2.9/ckanext/attribution/commands/migration/api_search.py
import click from ckanext.attribution.lib.orcid_api import OrcidApi from ckanext.attribution.lib.ror_api import RorApi from prompt_toolkit import prompt from nameparser import HumanName from .common import multi_choice class APISearch(object): """ Search for a contributor on an external API and download any...
PypiClean
/ll_xist-5.74-cp310-cp310-win_amd64.whl/ll/xist/ns/form.py
## Copyright 1999-2023 by LivingLogic AG, Bayreuth/Germany ## Copyright 1999-2023 by Walter Dörwald ## ## All Rights Reserved ## ## See ll/xist/__init__.py for the license """ This XIST module contains convenience classes for form elements. These are just abbreviations for the various ``<input type="...">`` elements...
PypiClean
/OpenFisca_France_Data-2.0.4-py3-none-any.whl/openfisca_france_data/erfs_fpr/input_data_builder/step_02_imputation_loyer.py
# This step requires to have R installed with StatMatch library # You'll also need rpy2 2.3x available at # https://bitbucket.org/lgautier/rpy2/src/511312d70346f3f66c989e35443b2823e9b56d56?at=version_2.3.x # (the version on python website is not compatible, working correctly for the debian's testing version) import g...
PypiClean
/cairo-lang-0.12.2a0.zip/cairo-lang-0.12.2a0/starkware/starknet/business_logic/transaction/fee.py
import math from starkware.starknet.business_logic.execution.execute_entry_point import ExecuteEntryPoint from starkware.starknet.business_logic.execution.objects import ( CallInfo, ExecutionResourcesManager, ResourcesMapping, TransactionExecutionContext, ) from starkware.starknet.business_logic.state....
PypiClean
/sanic_crud-0.2.4.tar.gz/sanic_crud-0.2.4/sanic_crud/crud_generation.py
from .config import CrudConfig, CrudShortcuts from .resources import BaseSingleResource from .resources import BaseCollectionResource from sanic.response import json def generate_crud(app, model_array): # Setup Configuration base_config = app.config.crud_config if hasattr(app.config, 'crud_config') else CrudC...
PypiClean
/PyKat-1.2.94.tar.gz/PyKat-1.2.94/pykat/external/six.py
# Copyright (c) 2010-2014 Benjamin Peterson # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify, merge, publ...
PypiClean
/EnergySystemModels-0.1.17.post63-py3-none-any.whl/AHU/air_humide/air_humide_NB.py
from math import* """ Created on Mon Aug 31 14:14:16 2020 @author: VG6075 """ """ ' Validity ranges are the following : ' - Dry temperature [-20°C to 100°C[ ' - Pressure [80 000 to 150 000 Pa] ' - Relative Humidity ]0; 100%] (0% excluded) ' ******************************************************* ' *****...
PypiClean
/django_surface_theme-0.0.10-py3-none-any.whl/theme/static/components/fontawesome/advanced-options/use-with-node-js/free-solid-svg-icons/faTruckMonster.js
'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); var prefix = 'fas'; var iconName = 'truck-monster'; var width = 640; var height = 512; var ligatures = []; var unicode = 'f63b'; var svgPathData = 'M624 224h-16v-64c0-17.67-14.33-32-32-32h-73.6L419.22 24.02A64.025 64.025 0 0 0 369.24 0H256c-17...
PypiClean
/osl_dynamics-1.2.6-py3-none-any.whl/osl_dynamics/simulation/mar.py
import numpy as np class MAR: """Class that generates data from a multivariate autoregressive (MAR) model. A :math:`p`-order MAR model can be written as .. math:: x_t = A_1 x_{t-1} + ... + A_p x_{t-p} + \epsilon_t where :math:`\epsilon_t \sim N(0, \Sigma)`. The MAR model is therefore pa...
PypiClean
/unofficial_stog-0.0.21.tar.gz/unofficial_stog-0.0.21/stog/training/trainer.py
import re import os import shutil import time import datetime import traceback import sys from typing import Dict, Optional, List, Union import torch from stog.utils import logging from stog.training.tensorboard import TensorboardWriter from stog.utils.environment import device_mapping, peak_memory_mb, gpu_memory_mb, m...
PypiClean
/notebooksmz-7.0.0-py3-none-any.whl/notebook/static/components/codemirror/mode/octave/octave.js
(function(mod) { if (typeof exports == "object" && typeof module == "object") // CommonJS mod(require("../../lib/codemirror")); else if (typeof define == "function" && define.amd) // AMD define(["../../lib/codemirror"], mod); else // Plain browser env mod(CodeMirror); })(function(CodeMirror) { "use s...
PypiClean
/python-graphblas-2023.7.0.tar.gz/python-graphblas-2023.7.0/graphblas/io/_awkward.py
import numpy as np from ..core.matrix import Matrix from ..core.utils import output_type from ..core.vector import Vector _AwkwardDoublyCompressedMatrix = None def to_awkward(A, format=None): """Create an Awkward Array from a GraphBLAS Matrix. Parameters ---------- A : Matrix or Vector Grap...
PypiClean
/mob_api-0.3.1-py3-none-any.whl/mob_api/mob_push_sync.py
from typing import Optional import requests from .mob_push_base import MobPushBase __all__ = ["MobPushSyncApi"] class MobPushSyncApi(MobPushBase): """ Mob Push SDK (Sync version) :doc: https://www.mob.com/wiki/detailed/?wiki=MobPushRestAPIfenlei1333&id=136 """ g_session: Optional[requests.Ses...
PypiClean
/papy-1.0.8.tar.gz/papy-1.0.8/README.rst
**PaPy** - Parallel Pipelines in Python ####################################### The ``papy`` package provides an implementation of the flow-based programming paradigm in Python that enables the construction and deployment of distributed workflows. The ``NuMap`` package is a parallel (thread- or process-based, local ...
PypiClean
/mar-3.2.0.tar.gz/mar-3.2.0/src/mardor/writer.py
import os import six from mardor.format import extras_header from mardor.format import index_header from mardor.format import mar from mardor.format import mar_header from mardor.format import sigs_header from mardor.signing import get_signature_data from mardor.signing import make_dummy_signature from mardor.signing...
PypiClean