id
stringlengths
1
8
text
stringlengths
6
1.05M
dataset_id
stringclasses
1 value
/pyketools-3.1.0.tar.gz/pyketools-3.1.0/pyke/keppca.py
from .utils import PyKEArgumentHelpFormatter from . import kepmsg, kepio, kepkey, kepplot import re import numpy as np from astropy.io import fits as pyfits from scipy import optimize as opt from matplotlib import pyplot as plt from tqdm import tqdm import random __all__ = ['keppca'] def keppca(infile, outfile=None...
PypiClean
/vaex_core-5.0.0a1-cp36-cp36m-manylinux2010_x86_64.whl/vaex/groupby.py
from functools import reduce import logging import operator import numpy as np import vaex import collections import six import pyarrow as pa from vaex.utils import _ensure_string_from_expression try: collections_abc = collections.abc except AttributeError: collections_abc = collections __all__ = ['GroupBy',...
PypiClean
/stegano-0.11.2.tar.gz/stegano-0.11.2/docs/index.rst
.. Stéganô documentation master file, created by sphinx-quickstart on Wed Jul 25 13:33:39 2012. You can adapt this file completely to your liking, but it should at least contain the root `toctree` directive. Presentation ============ .. image:: https://builds.sr.ht/~cedric/stegano.svg :target: https://bu...
PypiClean
/yop-python-sdk-4.2.5.tar.gz/yop-python-sdk-4.2.5/yop_python_sdk/security/ecdsa/math.py
from .point import Point class Math: @classmethod def multiply(cls, p, n, N, A, P): """ Fast way to multily point and scalar in elliptic curves :param p: First Point to mutiply :param n: Scalar to mutiply :param N: Order of the elliptic curve :param P: Prime n...
PypiClean
/tf-models-official-2.13.1.tar.gz/tf-models-official-2.13.1/official/recommendation/ranking/configs/config.py
"""Ranking Model configuration definition.""" import dataclasses from typing import List, Optional, Union from official.core import config_definitions as cfg from official.core import exp_factory from official.modeling import hyperparams @dataclasses.dataclass class CallbacksConfig(hyperparams.Config): """Configur...
PypiClean
/mwdb_core-2.10.1-py3-none-any.whl/mwdb/web/src/types/context.ts
import { api } from "@mwdb-web/commons/api"; import { AttributeDefinition, BlobData, Capability, ConfigData, Group, ObjectData, ObjectOrConfigOrBlobData, ObjectType, ServerInfo, User, } from "./types"; import { GetRemoteObjectCountResponse, GetRemoteObjectListResponse, } ...
PypiClean
/awsebcli-3.20.9.tar.gz/awsebcli-3.20.9/ebcli/containers/compose.py
import os from botocore.compat import six from ebcli.containers.envvarcollector import EnvvarCollector AWSEB_LOGS = 'awseb-logs-' COMPOSE_CMD_KEY = 'command' COMPOSE_ENV_KEY = 'environment' COMPOSE_IMG_KEY = 'image' COMPOSE_LINKS_KEY = 'links' COMPOSE_PORTS_KEY = 'ports' COMPOSE_VOLUMES_KEY = 'volumes' CONTAINER_DE...
PypiClean
/etl-parser-1.0.1.tar.gz/etl-parser-1.0.1/etl/parsers/etw/Microsoft_Windows_NlaSvc.py
from construct import Int8sl, Int8ul, Int16ul, Int16sl, Int32sl, Int32ul, Int64sl, Int64ul, Bytes, Double, Float32l, Struct from etl.utils import WString, CString, SystemTime, Guid from etl.dtyp import Sid from etl.parsers.etw.core import Etw, declare, guid @declare(guid=guid("63b530f8-29c9-4880-a5b4-b8179096e7b8"), ...
PypiClean
/Simba_UW_no_tf-1.3.0-py3-none-any.whl/simba/ROI_draw_defined.py
from configparser import ConfigParser import os import cv2 import numpy as np import pandas as pd import warnings import glob def roiByDefinition(inifile): global ix, iy global topLeftStatus global overlay global topLeftX, topLeftY, bottomRightX, bottomRightY global ix, iy global centerStatus ...
PypiClean
/nobi-bip_utils-2.7.2.tar.gz/nobi-bip_utils-2.7.2/bip_utils/bech32/bch_bech32.py
# Imports from typing import List, Tuple from bip_utils.bech32.bech32_base import Bech32BaseUtils, Bech32DecoderBase, Bech32EncoderBase from bip_utils.utils.misc import BytesUtils, IntegerUtils class BchBech32Const: """Class container for Bitcoin Cash Bech32 constants.""" # Separator SEPARATOR: str = ":...
PypiClean
/holoviews_samap-2.0.0.tar.gz/holoviews_samap-2.0.0/examples/reference/streams/bokeh/BoxEdit.ipynb
#### **Title**: BoxEdit Stream **Description**: A linked streams example demonstrating how to use the BoxEdit stream. **Dependencies**: Bokeh **Backends**: [Bokeh](./BoxEdit.ipynb) ``` import holoviews as hv from holoviews import opts from holoviews import streams hv.extension('bokeh') ``` The ``BoxEdit`` stream a...
PypiClean
/pulumi_azure_nextgen-0.6.2a1613157620.tar.gz/pulumi_azure_nextgen-0.6.2a1613157620/pulumi_azure_nextgen/labservices/outputs.py
import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union from .. import _utilities, _tables from . import outputs from ._enums import * __all__ = [ 'EnvironmentDetailsResponseResult', 'EnvironmentSizeResponse', 'GalleryImageReferenceResponse', 'Lab...
PypiClean
/certora-cli-alpha-eyalf-show-skolem-in-calltrace-20230528.12.43.191738.tar.gz/certora-cli-alpha-eyalf-show-skolem-in-calltrace-20230528.12.43.191738/certora_cli/EVMVerifier/certoraContext.py
import argparse import json import logging import os import re import sys from pathlib import Path from typing import Dict, List, Optional, Tuple, Any scripts_dir_path = Path(__file__).parent.resolve() # containing directory sys.path.insert(0, str(scripts_dir_path)) from EVMVerifier.certoraContextClass import Certo...
PypiClean
/ApeMan-0.1.1.tar.gz/ApeMan-0.1.1/docs/overlay.rst
------- Overlay ------- This section describes the best practices for developing ones own overlays. .. note :: This section is still being drafted and one is referred to either the :ref:`index:introduction` and :ref:`objective:Objective` pages. Structure ========= Whether ones overlay is made available globally...
PypiClean
/nodejs_bin-18.4.0a3-py3-none-manylinux_2_12_x86_64.manylinux2010_x86_64.whl/nodejs/lib/node_modules/npm/node_modules/aggregate-error/readme.md
# aggregate-error [![Build Status](https://travis-ci.org/sindresorhus/aggregate-error.svg?branch=master)](https://travis-ci.org/sindresorhus/aggregate-error) > Create an error from multiple errors ## Install ``` $ npm install aggregate-error ``` ## Usage ```js const AggregateError = require('aggregate-error'); ...
PypiClean
/rithousingpackage-0.0.4-py3-none-any.whl/regression_model/pipeline.py
from feature_engine.encoding import OrdinalEncoder, RareLabelEncoder from feature_engine.imputation import ( AddMissingIndicator, CategoricalImputer, MeanMedianImputer, ) from feature_engine.selection import DropFeatures from feature_engine.transformation import LogTransformer from feature_engine.wrappers i...
PypiClean
/indic_punct-2.1.4-py3-none-any.whl/inverse_text_normalization/ori/clean_eval_data.py
from argparse import ArgumentParser from typing import List import regex as re from inverse_text_normalization.data_loader_utils import ( EOS_TYPE, Instance, load_files, training_data_to_sentences, ) """ This file is for evaluation purposes. filter_loaded_data() cleans data (list of instances) for i...
PypiClean
/dbt_iomete-1.5.0-py3-none-any.whl/dbt/adapters/iomete/connections.py
from contextlib import contextmanager import dbt.exceptions from dbt.adapters.base import Credentials from dbt.adapters.sql import SQLConnectionManager from dbt.contracts.connection import ConnectionState, AdapterResponse from dbt.events import AdapterLogger from dbt.utils import DECIMALS from TCLIService.ttypes impo...
PypiClean
/ckanext_passwordless_api-1.1.0-py3-none-any.whl/ckanext/passwordless_api/util.py
import logging from datetime import datetime, timedelta from json import loads as load_json from re import match as regexmatch from uuid import uuid4 from ckan import logic from ckan.common import config from ckan.lib.redis import connect_to_redis from ckan.model import User from ckan.plugins import toolkit from date...
PypiClean
/ship_messenger_client-0.8.7.tar.gz/ship_messenger_client-0.8.7/packets/client/add_contact.py
import sys import logging from PyQt5.QtCore import Qt from PyQt5.QtWidgets import QDialog, QLabel, QComboBox, QPushButton sys.path.append('../') logger = logging.getLogger('client') """Диалог выбора контакта для добавления""" class AddContactDialog(QDialog): """Диалог выбора контакта для добавления""" d...
PypiClean
/pyRRG-0.3.2.tar.gz/pyRRG-0.3.2/lib/asciidata/asciiheader.py
__version__ = "Version 1.1 $LastChangedRevision: 503 $" import string import re from .asciiutils import * class Header(object): """ The header object This object offers the possibility to store additional information such as change comments or column information. This additional information may...
PypiClean
/archetypes.gridfield-0.1a1.zip/archetypes.gridfield-0.1a1/src/archetypes/gridfield/example.py
from zope.component import adapts from zope.interface import implements from archetypes.schemaextender.interfaces import ISchemaExtender from archetypes.schemaextender.field import ExtensionField from Products.ATContentTypes.interface import IATDocument from archetypes.gridfield import GridField, GridWidget from zope....
PypiClean
/purehg-2.4.2.tar.gz/mercurial-2.4.2/build/lib.linux-x86_64-2.7/hgext/churn.py
from mercurial.i18n import _ from mercurial import patch, cmdutil, scmutil, util, templater, commands import os import time, datetime testedwith = 'internal' def maketemplater(ui, repo, tmpl): tmpl = templater.parsestring(tmpl, quoted=False) try: t = cmdutil.changeset_templater(ui, repo, False, None, ...
PypiClean
/mypy-boto3-datasync-1.28.38.tar.gz/mypy-boto3-datasync-1.28.38/mypy_boto3_datasync/paginator.py
from typing import Generic, Iterator, Sequence, TypeVar from botocore.paginate import PageIterator, Paginator from .literals import DiscoveryResourceTypeType from .type_defs import ( DescribeStorageSystemResourceMetricsResponseTypeDef, ListAgentsResponseTypeDef, ListDiscoveryJobsResponseTypeDef, ListL...
PypiClean
/RsCMPX_LteMeas-4.0.185.tar.gz/RsCMPX_LteMeas-4.0.185/RsCMPX_LteMeas/Implementations/Configure/LteMeas/MultiEval/ListPy/SingleCmw/__init__.py
from .......Internal.Core import Core from .......Internal.CommandsGroup import CommandsGroup from .......Internal import Conversions from ....... import enums # noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection class SingleCmwCls: """SingleCmw commands group definition. 2 total commands, 1 Su...
PypiClean
/research-framework-0.1.1.tar.gz/research-framework-0.1.1/research_framework/lightweight/lightweight.py
import logging from typing import Any from research_framework.lightweight.model.item_model import ItemDao, ItemModel from research_framework.base.container.base_container import BaseContainer class FlyWeight: def get_item(self, hash_code): response = ItemDao.findByHashCode(hash_code) if respon...
PypiClean
/cupy_cuda101-9.6.0-cp38-cp38-manylinux1_x86_64.whl/cupy/_core/include/cupy/README.md
# "include" directory All files and directories in this directory will be copied to the distribution (sdist and wheel). Note that items starting with `.` (e.g., `cub/.git`) are excluded. See `setup.py` for details. ## CUB The `cub` folder is a git submodule for the CUB project. Including the CUB headers as a submodu...
PypiClean
/gdbfrontend-0.6.2.tar.gz/gdbfrontend-0.6.2/frontend/thirdparty/ace/ext-modelist.js
ace.define("ace/ext/modelist",["require","exports","module"],function(e,t,n){"use strict";function i(e){var t=a.text,n=e.split(/[\/\\]/).pop();for(var i=0;i<r.length;i++)if(r[i].supportsFile(n)){t=r[i];break}return t}var r=[],s=function(e,t,n){this.name=e,this.caption=t,this.mode="ace/mode/"+e,this.extensions=n;var r;/...
PypiClean
/Nitrous-0.9.3-py3-none-any.whl/turbogears/i18n/data/es_CR.py
languages={'gv': u'ga\xe9lico man\xe9s', 'gu': u'goujarat\xed', 'gd': u'ga\xe9lico escoc\xe9s', 'ga': u'irland\xe9s', 'gl': 'gallego', 'la': u'lat\xedn', 'ln': 'lingala', 'lo': 'laosiano', 'tt': u't\xe1taro', 'tr': 'turco', 'ts': 'tsonga', 'lv': 'letonio', 'lt': 'lituano', 'th': u'tailand\xe9s', 'ti': 'tigrinya', 'te'...
PypiClean
/telnetlib3-2.0.4.tar.gz/telnetlib3-2.0.4/docs/history.rst
History ======= 2.0.4 * change: stop using setuptools library to get current software version 2.0.3 * bugfix: NameError: when debug=True is used with asyncio.run, :ghissue:`75` 2.0.2 * bugfix: NameError: name 'sleep' is not defined in stream_writer.py 2.0.1 * bugfix: "write after close" is disregarded, caused ma...
PypiClean
/golos_lib_python-0.9.21-py3-none-any.whl/golosbase/base_client.py
import concurrent.futures import json import logging import re from urllib.parse import urlparse from golosbase.exceptions import ( AlreadyTransactedThisBlock, AlreadyVotedSimilarily, DuplicateTransaction, ExceededAllowedBandwidth, MissingRequiredPostingAuthority, NoMethodWithName, OnlyVote...
PypiClean
/MakkaPakka-1.0.4.tar.gz/MakkaPakka-1.0.4/src/makka_pakka/parsing/detect_headings.py
from typing import Tuple from makka_pakka.exceptions.exceptions import ErrorType from makka_pakka.exceptions.exceptions import MKPKInvalidParameter from makka_pakka.exceptions.exceptions import MKPKNameError from makka_pakka.exceptions.exceptions import MKPKParsingError class HeadingStyle: """Enum of heading sty...
PypiClean
/PyBuddy-0.1.4.tar.gz/PyBuddy-0.1.4/pybuddy/playground.py
from __future__ import print_function import sys import codecs try: import sys, locale, os print(sys.stdout.encoding) print(sys.stdout.isatty()) print(locale.getpreferredencoding()) print(sys.getfilesystemencoding()) print(os.environ["PYTHONIOENCODING"]) except Exception, e: pass def sort_...
PypiClean
/rxn_metrics-1.1.0-py3-none-any.whl/rxn/metrics/metrics.py
from typing import Dict, List, Sequence, Tuple, TypeVar import numpy as np from rxn.utilities.containers import chunker from .utils import get_sequence_multiplier T = TypeVar("T") def top_n_accuracy( ground_truth: Sequence[T], predictions: Sequence[T] ) -> Dict[int, float]: """ Compute the top-n accura...
PypiClean
/mapel_elections-2.0.17-pp37-pypy37_pp73-manylinux_2_17_i686.manylinux2014_i686.whl/mapel/elections/cultures_.py
from typing import Union import logging import mapel.elections.cultures.euclidean as euclidean import mapel.elections.cultures.group_separable as group_separable import mapel.elections.cultures.guardians as guardians import mapel.elections.cultures.guardians_plus as guardians_plus import mapel.elections.cultures.imp...
PypiClean
/me-django-base-1.0.3.tar.gz/me-django-base-1.0.3/base/static/_vendors/lte/dist/js/pages/dashboard.js
$(function () { 'use strict'; // Make the dashboard widgets sortable Using jquery UI $('.connectedSortable').sortable({ placeholder : 'sort-highlight', connectWith : '.connectedSortable', handle : '.box-header, .nav-tabs', forcePlaceholderSize: true, zIndex ...
PypiClean
/flaskmodificado-0.1.tar.gz/flaskmodificado-0.1/docs/installation.rst
.. _installation: Installation ============ Flask depends on some external libraries, like `Werkzeug <http://werkzeug.pocoo.org/>`_ and `Jinja2 <http://jinja.pocoo.org/>`_. Werkzeug is a toolkit for WSGI, the standard Python interface between web applications and a variety of servers for both development and deployme...
PypiClean
/nornir_bics-0.0.1.tar.gz/nornir_bics-0.0.1/nornir/core/__init__.py
import logging import logging.config import sys from multiprocessing.dummy import Pool from nornir.core.configuration import Config from nornir.core.task import AggregatedResult, Task from nornir.plugins.tasks import connections if sys.version_info.major == 2: import copy_reg import types # multithreadi...
PypiClean
/sync-git-repos-0.0.4.tar.gz/sync-git-repos-0.0.4/sync_git_repos/__main__.py
import argparse import logging import sys import time from typing import Optional, Any, Dict, Callable from sync_git_repos import utils parser = argparse.ArgumentParser() group = parser.add_argument_group('General settings') group.add_argument('--settings', required=False, type=str, default='settings.json', help='Pa...
PypiClean
/zuul-9.1.0.tar.gz/zuul-9.1.0/web/src/index.js
// The index is the main of the project. The App is wrapped with // a Provider to share the redux store and a Router to manage the location. import React from 'react' import ReactDOM from 'react-dom' import { BrowserRouter as Router } from 'react-router-dom' import { Provider } from 'react-redux' import { BroadcastCh...
PypiClean
/certora_cli_alpha_jtoman_full_support_for_types-20230524.0.48.956045-py3-none-any.whl/certora_cli/EVMVerifier/certoraNodeFilters.py
from typing import Any, Dict import os import sys sys.path.insert(0, os.path.dirname(os.path.abspath(__file__))) from Shared.certoraUtils import NoValEnum class NodeFilters: class NodeType(NoValEnum): def is_this_node_type(self, type_name_node: Dict[str, Any]) -> bool: return type_name_node...
PypiClean
/best_toolbox-0.0.5.tar.gz/best_toolbox-0.0.5/best/types.py
class ObjDict(dict): """ Dictionary which you can access a) as a dict; b) as a struct with attributes. Can use both foo adding and deleting attributes resp items. Inherits from dict """ def __init__(self, VT_={}): super().__init__(VT_) for key in VT_.keys(): self.__set...
PypiClean
/FLORIS-3.4.1.tar.gz/FLORIS-3.4.1/floris/tools/optimization/legacy/scipy/yaw_clustered.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 Licens...
PypiClean
/vcfnp-2.3.0.tar.gz/vcfnp-2.3.0/vcflib/tabixpp/tabix.py
# Author: Heng Li and Aaron Quinlan # License: MIT/X11 import sys from ctypes import * from ctypes.util import find_library import glob, platform def load_shared_library(lib, _path='.', ver='*'): """Search for and load the tabix library. The expectation is that the library is located in the current direc...
PypiClean
/vioneta_agro_frontend-20230809.1-py3-none-any.whl/hass_frontend/frontend_es5/65148-iRsPMdpT3n0.js
"use strict";(self.webpackChunkvioneta_agro_frontend=self.webpackChunkvioneta_agro_frontend||[]).push([[65148],{62770:function(e,n,r){r.d(n,{AC:function(){return K},B7:function(){return I},BP:function(){return L},Db:function(){return Q},EW:function(){return N},Fy:function(){return p},Hr:function(){return D},IG:function...
PypiClean
/dxter-0.0.1.tar.gz/dxter-0.0.1/dexter/readmultiple.py
import numpy as np import pandas as pd import os from dexter.framemap import FrameMap from typing import List # TODO: optimize before appending to df_list def read_chunks(df_chunk) -> pd.DataFrame: """ Reads a chunks object of a pandas dataframe Receives the object of a pd.read with chunksize smaller tha...
PypiClean
/bids_path-0.0.1-py3-none-any.whl/bids_path/main.py
from __future__ import annotations from collections import OrderedDict from pathlib import Path from typing import Optional def bids( # noqa: PLR0913 root: Optional[str | Path] = None, datatype: Optional[str] = None, prefix: Optional[str] = None, suffix: Optional[str] = None, extension: Optional...
PypiClean
/python_youtube-0.9.1-py3-none-any.whl/pyyoutube/utils/constants.py
ACTIVITIES_RESOURCE_PROPERTIES = {"id", "snippet", "contentDetails"} CAPTIONS_RESOURCE_PROPERTIES = {"id", "snippet"} CHANNEL_RESOURCE_PROPERTIES = { "id", "brandingSettings", "contentDetails", "localizations", "snippet", "statistics", "status", "topicDetails", } CHANNEL_SECTIONS_PROP...
PypiClean
/python_tabular-0.4.0.tar.gz/python_tabular-0.4.0/pytabular/document.py
import logging from pathlib import Path from pytabular.table import PyTable from pytabular.column import PyColumn from pytabular.culture import PyCulture from pytabular.measure import PyMeasure from pytabular.pytabular import Tabular from typing import List, Dict logger = logging.getLogger("PyTabular") class Model...
PypiClean
/pandda_2-0.0.3.tar.gz/pandda_2-0.0.3/multi_dataset_crystalography/align.py
import itertools import numpy import scipy.spatial import iotbx.pdb import iotbx.pdb.amino_acid_codes import mmtbx.alignment from libtbx.utils import Sorry, Failure from scitbx.math import superpose from scitbx.array_family import flex from bamboo.common import ListStream, Report from giant.structure import make_la...
PypiClean
/django-grappelli-extras-1.2.6.tar.gz/django-grappelli-extras-1.2.6/grappelli_extras/utils.py
import json from django.db.models import Q import operator import datetime import decimal from functools import reduce from django.db.models.fields.files import ImageFieldFile, FileField, FieldFile from django.contrib.contenttypes.models import ContentType def smart_text(tuples, key): for t in tuples: if ...
PypiClean
/pynovaposhta-0.2.0.tar.gz/pynovaposhta-0.2.0/novaposhta/schemas/counterparties.py
from typing import Dict, List, Optional, Union from .shared import PascalModel __all__ = ( 'CounterpartyAddress', 'CounterpartyOptions', 'CounterpartyContactPerson', 'Counterparty', 'ContactPerson', 'NewCounterpartyContactPerson', 'NewCounterparty', 'DeleteResponse', 'ThirdpartyBod...
PypiClean
/swh.storage-1.16.0-py3-none-any.whl/swh/storage/backfill.py
import logging from typing import Any, Callable, Dict, Iterable, Iterator, Optional, Tuple, Union from swh.core.db import BaseDb from swh.model.model import ( BaseModel, Directory, DirectoryEntry, ExtID, RawExtrinsicMetadata, Release, Revision, Snapshot, SnapshotBranch, TargetTy...
PypiClean
/beta_test_version_powerhouse_helper_goose_2-1.0.0.tar.gz/beta_test_version_powerhouse_helper_goose_2-1.0.0/README.md
# Console bot for interaction with adressbook, notes, sorting files This assistant works with cmd. To instal this bot you have to download this repositiry and in folder with file "setup.py" open terminal and type "pip install -e .". This bot has 3 functions: Addressbook - with Addressbook you can save such information...
PypiClean
/navi_pro-7.3.17-py3-none-any.whl/navi/plugins/display.py
import click import time import arrow from .api_wrapper import tenb_connection, navi_version, request_data from .database import new_db_connection, db_query import textwrap from .sla import print_sla tio = tenb_connection() def get_licensed(): data = request_data('GET', '/workbenches/asset-stats?date_range=90&fi...
PypiClean
/graphy_test_zhaohany-0.0.5.tar.gz/graphy_test_zhaohany-0.0.5/src/graphy_test_zhaohany/new_script/dgl_scripts/dgl_sddmm.py
import sys from dgl import sparse import dgl.utils.internal as interu import torch from torch import nn from torch.nn import init import numpy as np from dgl import function as fn from dgl.base import DGLError from dgl.utils import expand_as_pair import dgl from dgl.nn.pytorch import edge_softmax import argparse impor...
PypiClean
/v2/model/list_healthmonitors_response.py
import pprint import re import six from huaweicloudsdkcore.sdk_response import SdkResponse class ListHealthmonitorsResponse(SdkResponse): """ Attributes: openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key...
PypiClean
/mission-control2-3.12.0.tar.gz/mission-control2-3.12.0/mc2/settings.py
from os.path import abspath, dirname, join from os import environ import dj_database_url # Tell psycopg2cffi to impersonate psycopg2 from psycopg2cffi import compat compat.register() def bool_env(val): """Replaces string based environment values with Python booleans""" return True if environ.get(val, False)...
PypiClean
/pynbody-1.0.3.tar.gz/pynbody-1.0.3/docs/tutorials/hmf.rst
.. hmf tutorial Halo Mass function =================== Calculating a theoretical halo mass function -------------------------------------------- This recipe makes use of the module :mod:`~pynbody.analysis.halo` to generate the halo mass function of a given snapshot and compare it to a theoretical model. We will s...
PypiClean
/gallery_dl-1.25.8-py3-none-any.whl/gallery_dl/extractor/mangapark.py
# Copyright 2015-2023 Mike Fährmann # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License version 2 as # published by the Free Software Foundation. """Extractors for https://mangapark.net/""" from .common import ChapterExtractor, Extractor, Me...
PypiClean
/dsin100daysv32-6.0.1.tar.gz/dsin100daysv32-6.0.1/notebook/static/components/MathJax/localization/lki/HelpDialog.js
MathJax.Localization.addTranslation("lki","HelpDialog",{version:"2.7.7",isLoaded:true,strings:{Help:"\u0631\u0627\u0647\u0646\u0645\u0627\u06CC MathJax",MathJax:"*MathJax* \u06CC\u06A9 \u06A9\u062A\u0627\u0628\u062E\u0627\u0646\u0647\u0654 \u062C\u0627\u0648\u0627\u0627\u0633\u06A9\u0631\u06CC\u067E\u062A\u06CC \u0627\...
PypiClean
/openfl-1.5.tar.gz/openfl-1.5/openfl-workspace/keras_nlp_gramine_ready/src/dataloader_utils.py
from logging import getLogger from os import getcwd from os import path from os import remove from zipfile import ZipFile import numpy as np import requests logger = getLogger(__name__) def download_data_(): """Download data. Returns: string: relative path to data file """ pkg = 'fra-eng.zip'...
PypiClean
/baiduads-sdk-auto-snapshot-2022.2.1.5.tar.gz/baiduads-sdk-auto-snapshot-2022.2.1.5/baiduads/pricestrategy/model/get_price_strategy_response_wrapper.py
import re # noqa: F401 import sys # noqa: F401 from baiduads.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, valid...
PypiClean
/object_detection-0.0.3.tar.gz/object_detection-0.0.3/object_detection/models/ssd_mobilenet_v2_keras_feature_extractor.py
import tensorflow as tf from object_detection.meta_architectures import ssd_meta_arch from object_detection.models import feature_map_generators from object_detection.models.keras_applications import mobilenet_v2 from object_detection.utils import ops from object_detection.utils import shape_utils class SSDMobileNet...
PypiClean
/realms-wiki-0.9.3.tar.gz/realms-wiki-0.9.3/realms/static/vendor/jquery/src/attributes/classes.js
define( [ "../core", "../var/rnotwhite", "../data/var/dataPriv", "../core/init" ], function( jQuery, rnotwhite, dataPriv ) { var rclass = /[\t\r\n\f]/g; function getClass( elem ) { return elem.getAttribute && elem.getAttribute( "class" ) || ""; } jQuery.fn.extend( { addClass: function( value ) { var classes,...
PypiClean
/cnlp_transformers-0.6.1-py3-none-any.whl/cnlpt/data/transform_prot.py
import os import csv import sys import pandas as pd import spacy from tqdm import tqdm from pathlib import Path from itertools import chain from collections import defaultdict from itertools import groupby, tee from heapq import merge TEST_DIR = "chemprot_development" TRAIN_DIR = "chemprot_training" # allow script to...
PypiClean
/peacock-trame-0.1.1.tar.gz/peacock-trame-0.1.1/peacock_trame/app/core/input/InputTree.py
import os import mooseutils from pyhit import hit from . import InputTreeWriter from .InputFile import InputFile class InputTree(object): """ A tree that represents an input file along with all the available blocks and parameters. """ def __init__(self, app_info, **kwds): """ Const...
PypiClean
/pgsheets-0.0.1.tar.gz/pgsheets-0.0.1/README.rst
pgsheets : Manipulate Google Sheets Using Python ================================================ pgsheets is a Python3 library for interacting with Google Sheets. It makes use of `Pandas <http://pandas.pydata.org/>`__ DataFrames, 2-dimensional structures perfectly suited for data analysis and representing a spreadshe...
PypiClean
/morphing-agents-1.5.1.tar.gz/morphing-agents-1.5.1/morphing_agents/mujoco/dog/env.py
from morphing_agents.mujoco.dog.designs import sample_centered from morphing_agents.mujoco.dog.designs import sample_uniformly from morphing_agents.mujoco.dog.designs import DEFAULT_DESIGN from morphing_agents.mujoco.dog.designs import normalize_design_vector from gym import utils from gym.envs.mujoco import mujoco_env...
PypiClean
/tibia.py-5.6.0-py3-none-any.whl/tibiapy/leaderboard.py
import datetime import re from typing import List, Optional from tibiapy import abc, errors from tibiapy.utils import get_tibia_url, parse_form_data, parse_pagination, parse_tibia_datetime, parse_tibiacom_content __all__ = ( 'Leaderboard', 'LeaderboardEntry', 'LeaderboardRotation', ) rotation_end_pattern...
PypiClean
/django-fobi-0.19.9.tar.gz/django-fobi-0.19.9/src/fobi/contrib/plugins/form_elements/fields/email/forms.py
from __future__ import absolute_import from django import forms from django.core.validators import MinValueValidator from django.utils.translation import gettext_lazy as _ from fobi.base import BaseFormFieldPluginForm, get_theme from fobi.settings import DEFAULT_MAX_LENGTH, DEFAULT_MIN_LENGTH from fobi.widgets import...
PypiClean
/azure-cli-2.51.0.tar.gz/azure-cli-2.51.0/azure/cli/command_modules/network/aaz/2017_03_09_profile/network/route_table/_delete.py
# pylint: skip-file # flake8: noqa from azure.cli.core.aaz import * @register_command( "network route-table delete", confirmation="Are you sure you want to perform this operation?", ) class Delete(AAZCommand): """Delete a route table. :example: Delete a route table. az network route-table d...
PypiClean
/advanced_databases-0.2.0-py3-none-any.whl/advanced/databases/_src/sequence_islice.py
from __future__ import annotations from typing import Final, Generic, Optional, TypeVar, overload from .viewable_sequence import ViewableSequence T_co = TypeVar("T_co", covariant=True) Self = TypeVar("Self", bound="SequenceIslice") class SequenceIslice(ViewableSequence[T_co], Generic[T_co]): _sequence: Final[V...
PypiClean
/blastengine-0.0.5.tar.gz/blastengine-0.0.5/README.md
Python SDK for blastengine Python向けのblastengine用SDKです。 ## 使い方 ### インポート ```py from blastengine.Client import Blastengine from blastengine.Transaction import Transaction ``` ### 初期化 ```py Blastengine('USER_NAME', 'API_KEY') ``` ### トランザクション(即時発送)メール ```py transaction = Transaction() transaction.subject('test mai...
PypiClean
/cdrnn-0.8.3.tar.gz/cdrnn-0.8.3/cdr/backend.py
import collections from .util import * import tensorflow as tf if int(tf.__version__.split('.')[0]) == 1: from tensorflow.contrib.distributions import Normal, Gamma from tensorflow.contrib.distributions import softplus_inverse as tf_softplus_inverse from tensorflow.nn import dynamic_rnn elif int(tf.__vers...
PypiClean
/rbpy-rb-german-0.0.10.tar.gz/rbpy-rb-german-0.0.10/rb/processings/scoring/essay_scoring.py
from rb.core.lang import Lang from rb.core.document import Document from rb.complexity.complexity_index import ComplexityIndex, compute_indices from rb.similarity.word2vec import Word2Vec from rb.similarity.vector_model import VectorModelType, CorporaEnum, VectorModel from rb.similarity.vector_model_factory import VECT...
PypiClean
/terra-notebook-utils-0.13.0.tar.gz/terra-notebook-utils-0.13.0/terra_notebook_utils/blobstore/url.py
import io from functools import wraps from typing import Generator, Optional, Tuple from requests.exceptions import HTTPError, ConnectionError from getm.reader import URLRawReader, URLReaderKeepAlive from getm.http import http from getm import checksum, default_chunk_size_keep_alive from getm.utils import indirect_ope...
PypiClean
/alipay_sdk_python-3.6.740-py3-none-any.whl/alipay/aop/api/domain/AlipayOpenAppMessageTopicSubscribeModel.py
import json from alipay.aop.api.constant.ParamConstants import * class AlipayOpenAppMessageTopicSubscribeModel(object): def __init__(self): self._auth_token = None self._auth_type = None self._comm_type = None self._tag = None self._topic = None @property def aut...
PypiClean
/libwayback-1.0.tar.gz/libwayback-1.0/apps/wayback_crawler.py
import argparse, logging, os, re, sys from libwayback import WaybackCrawler # global logger settings root_logger = logging.getLogger("libwayback") # use default 'libwayback' logger to active logging function of libwayback root_logger.setLevel(logging.ERROR) handler = logging.FileHandler(os.path.join(os.path.dirname(...
PypiClean
/alipay_sdk_python-3.6.740-py3-none-any.whl/alipay/aop/api/response/AlipayOverseasOpenPreorderQueryResponse.py
import json from alipay.aop.api.response.AlipayResponse import AlipayResponse from alipay.aop.api.domain.TuitionISVAgentInfoDTO import TuitionISVAgentInfoDTO from alipay.aop.api.domain.TuitionISVAmountInfoDTO import TuitionISVAmountInfoDTO from alipay.aop.api.domain.TuitionISVResponsePaymentInfoDTO import TuitionISVRe...
PypiClean
/django_ckeditor_improved-1.8.tar.gz/django_ckeditor_improved-1.8/ckeditorfiles/static/ckeditorfiles/plugins/specialchar/dialogs/specialchar.js
/* Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.dialog.add("specialchar",function(i){var e,l=i.lang.specialchar,k=function(c){var b,c=c.data?c.data.getTarget():new CKEDITOR.dom.element(c);if("a"==c.getName()&&(b...
PypiClean
/hyperion-ml-0.3.2.tar.gz/hyperion-ml-0.3.2/hyperion/torch/optim/factory.py
from jsonargparse import ArgumentParser, ActionParser import logging from ...utils.misc import filter_args import torch import torch.optim as optim from .radam import RAdam class OptimizerFactory(object): @staticmethod def create( params, opt_type, lr, momentum=0, bet...
PypiClean
/dopamine_rl-4.0.6-py3-none-any.whl/dopamine/metrics/collector_dispatcher.py
from typing import Callable, Optional, Sequence from absl import logging from dopamine.metrics import collector from dopamine.metrics import console_collector from dopamine.metrics import pickle_collector from dopamine.metrics import statistics_instance from dopamine.metrics import tensorboard_collector import gin AV...
PypiClean
/checkov3-0.1.13.tar.gz/checkov3-0.1.13/checkov/terraform/graph_builder/foreach/resource_handler.py
from __future__ import annotations import logging import typing from typing import Any, Optional from checkov.common.util.data_structures_utils import pickle_deepcopy from checkov.terraform.graph_builder.graph_components.block_types import BlockType from checkov.terraform.graph_builder.foreach.abstract_handler import...
PypiClean
/qempo_paapi5_python_sdk-1.0.0-py3-none-any.whl/paapi5_python_sdk/models/item_info.py
""" ProductAdvertisingAPI https://webservices.amazon.com/paapi5/documentation/index.html # noqa: E501 """ import pprint import re # noqa: F401 import six from paapi5_python_sdk.models.by_line_info import ByLineInfo # noqa: F401,E501 from paapi5_python_sdk.models.classifications import Classifications #...
PypiClean
/ontologysim-1.0.6.tar.gz/ontologysim-1.0.6/docs/source/production_simulation/deep_dive/defect.md
Defect and Service =================== ![Repair image](repair_structure.png "Repair and Defect") **Defect** * Only machines and transporter an go defect * the machine queues can still add or remove products * A defect is divided in multiple sub defects, which can be defined individual * therefore for selecti...
PypiClean
/rockset_v2_internal-2.0.4-py3-none-any.whl/rockset/model/query_lambda_sql.py
import re # noqa: F401 import sys # noqa: F401 from rockset.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, valida...
PypiClean
/Dulcinea-0.11.tar.gz/Dulcinea-0.11/lib/range_value.py
from dulcinea.base import DulcineaBase from dulcinea.numeric import near_cmp from dulcinea.spec import either class RangeValue (DulcineaBase): """ A numeric range. """ lo_is = either(int, long, float) hi_is = either(int, long, float) def __init__(self, lo, hi): self.lo = lo sel...
PypiClean
/pulumi_azure_nextgen-0.6.2a1613157620.tar.gz/pulumi_azure_nextgen-0.6.2a1613157620/pulumi_azure_nextgen/network/v20200401/get_virtual_hub_route_table_v2.py
import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union from ... import _utilities, _tables from . import outputs __all__ = [ 'GetVirtualHubRouteTableV2Result', 'AwaitableGetVirtualHubRouteTableV2Result', 'get_virtual_hub_route_table_v2', ] @pulumi.o...
PypiClean
/suds3-0.1.tar.gz/suds3-0.1/suds/sudsobject.py
from logging import getLogger from suds import * log = getLogger(__name__) def items(sobject): """ Extract the I{items} from a suds object much like the items() method works on I{dict}. @param sobject: A suds object @type sobject: L{Object} @return: A list of items contained in I{sobject}. ...
PypiClean
/torch_raspi-0.4.0-cp35-cp35m-linux_armv7l.whl/torch/legacy/nn/utils.py
import torch # tensorCache maintains a list of all tensors and storages that have been # converted (recursively) by calls to recursiveType() and type(). # It caches conversions in order to preserve sharing semantics # i.e. if two tensors share a common storage, then type conversion # should preserve that. # # You can ...
PypiClean
/udl_vis-0.3.7-py3-none-any.whl/udl_vis/mmcv/onnx/onnx_utils/symbolic_helper.py
"""Modified from https://github.com/pytorch/pytorch.""" import warnings from functools import wraps from sys import maxsize import torch import torch.onnx # This import monkey-patches graph manipulation methods on Graph, used for the # ONNX symbolics import torch.onnx.utils from torch._C import ListType # -----------...
PypiClean
/PennyLane-0.32.0-py3-none-any.whl/pennylane/ops/functions/map_wires.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
/dcrx-api-0.4.1.tar.gz/dcrx-api-0.4.1/dcrx_api/services/users/table/users_table.py
from pydantic import BaseModel from sqlalchemy.sql import ( Select, Insert, Update, Delete ) from typing import ( Literal, Dict, List, Any, Union, Callable, Optional, TypeVar, Generic ) from .users_mysql_table import UsersMySQLTable from .users_postgres_table import...
PypiClean
/Kamaelia-0.6.0.tar.gz/Kamaelia-0.6.0/Examples/DVB_Systems/Macro.py
from Kamaelia.Device.DVB.Core import DVB_Demuxer,DVB_Multiplex from Kamaelia.Chassis.Graphline import Graphline from Kamaelia.File.Writing import SimpleFileWriter from Kamaelia.File.UnixProcess import UnixProcess import Axon import struct import dvb3 from Axon.Ipc import shutdownMicroprocess, producerFinished from Ka...
PypiClean
/ass2rythmo-0.9.1.tar.gz/ass2rythmo-0.9.1/README.rst
Ass2Rythmo ========== ass2rythmo is a converter which generate rythmo band out of subtitles in ASS (`Advanced SubStation <https://en.wikipedia.org/wiki/SubStation_Alpha#Advanced_SubStation_Alpha>`_) format. Rythmo bands are used to provide synchronized script for voice actors when dubbing a video. The text scrolls a...
PypiClean
/clr_loader-0.2.6.tar.gz/clr_loader-0.2.6/README.md
# clr-loader [![CI](https://github.com/pythonnet/clr-loader/workflows/Python%20Tests/badge.svg)](https://github.com/pythonnet/clr-loader/actions) [![Pypi](https://img.shields.io/pypi/v/clr-loader.svg)](https://pypi.org/project/clr-loader/) [![Conda Version](https://img.shields.io/conda/vn/conda-forge/clr_loader.svg)](...
PypiClean
/Flask-CKEditor-0.4.6.tar.gz/Flask-CKEditor-0.4.6/flask_ckeditor/static/full/plugins/specialchar/dialogs/lang/da.js
/* Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */ CKEDITOR.plugins.setLang("specialchar","da",{euro:"Euro-tegn",lsquo:"Venstre enkelt anførselstegn",rsquo:"Højre enkelt anførselstegn",ldquo:"Venstre dobbe...
PypiClean
/coursera_offline-1.1.4.zip/coursera_offline-1.1.4/coursera_offline.py
import argparse import json import sys import urllib2 import cookielib import random import urllib import threading import os from pyquery import PyQuery as pq from crontab import CronTab from urlparse import urlparse AUTH_URL = 'https://accounts.coursera.org/api/v1/login' CLASS_VIDEO_URL_TEMPLATE = 'https://class.co...
PypiClean
/pyCGNS-6.2.2-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl/CGNS/PAT/cgnstypes.py
from . import cgnskeywords as CGK tlistA = [ CGK.Descriptor_ts, CGK.UserDefinedData_ts, CGK.DataClass_ts, CGK.DimensionalUnits_ts, ] allDT = [CGK.C1, CGK.MT, CGK.I4, CGK.I8, CGK.R4, CGK.R8] # LK is default C_00 = "Zero/Zero" C_01 = "Zero/One" C_11 = "One/One" C_0N = "Zero/N" C_1N = "One/N" C_NN = ...
PypiClean