id
stringlengths
1
265
text
stringlengths
6
5.19M
dataset_id
stringclasses
7 values
/funencryptions-1.0.2.tar.gz/funencryptions/funencryptions/algorithms.py
def character_code_neighbor_sum(string, decode = False): """ Replaces the characters in the string with Unicode characters by adding the character codes of adjacent characters. """ result = u"" length = len(string) step = 1 if decode: assert length >= 2 first = string[-1] result += first for i in range(...
PypiClean
/ApplicationClientServer_server-0.1-py3-none-any.whl/server/database.py
from sqlalchemy import create_engine, Table, Column, Integer, String, MetaData, ForeignKey, DateTime, Text from sqlalchemy.orm import mapper, sessionmaker import datetime class ServerStorage: ''' Класс - оболочка для работы с базой данных сервера. Использует SQLite базу данных, реализован с помощью SQ...
PypiClean
/Djaloha-0.4.2.tar.gz/Djaloha-0.4.2/djaloha/static/aloha.0.20.20/lib/aloha/floatingmenu.js
* Aloha Editor is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version.* * * Aloha Editor is distributed in the hope that it will be usef...
PypiClean
/MultiAssayExperiment-0.3.0.tar.gz/MultiAssayExperiment-0.3.0/CONTRIBUTING.md
```{todo} THIS IS SUPPOSED TO BE AN EXAMPLE. MODIFY IT ACCORDING TO YOUR NEEDS! The document assumes you are using a source repository service that promotes a contribution model similar to [GitHub's fork and pull request workflow]. While this is true for the majority of services (like GitHub, GitLab, BitBu...
PypiClean
/ConfigDmanager-0.2.0.tar.gz/ConfigDmanager-0.2.0/configDmanager/_configmanager.py
import os import sys from itertools import chain from pathlib import Path from configDmanager import Config from configDmanager.errors import ConfigNotFoundError, ConfigManagerError from configDmanager.config_types import JsonType, YamlType class ConfigManager: supported_types = {'json': JsonType, ...
PypiClean
/AEMET_OpenData-0.4.4-py3-none-any.whl/aemet_opendata/town.py
from datetime import datetime from typing import Any from zoneinfo import ZoneInfo from .const import ( AEMET_ATTR_DATE, AEMET_ATTR_DAY, AEMET_ATTR_ELABORATED, AEMET_ATTR_FORECAST, AEMET_ATTR_ID, AEMET_ATTR_NAME, AEMET_ATTR_TOWN_ALTITUDE, AEMET_ATTR_TOWN_LATITUDE_DECIMAL, AEMET_ATT...
PypiClean
/Nuitka_winsvc-1.7.10-cp310-cp310-win_amd64.whl/nuitka/tree/ReformulationComparisonExpressions.py
from nuitka.nodes.ComparisonNodes import makeComparisonExpression from nuitka.nodes.ConditionalNodes import makeStatementConditional from nuitka.nodes.OperatorNodesUnary import ExpressionOperationNot from nuitka.nodes.OutlineNodes import ExpressionOutlineBody from nuitka.nodes.ReturnNodes import StatementReturn from nu...
PypiClean
/bareon-0.0.1a3.tar.gz/bareon-0.0.1a3/bareon/cmd/agent.py
import sys from oslo_config import cfg import six import yaml from bareon.openstack.common import log as logging from bareon.utils import utils from bareon import version cli_opts = [ cfg.StrOpt( 'input_data_file', default='/tmp/provision.json', help='Input data file' ), cfg.StrO...
PypiClean
/Flask-Scaffold-0.5.1.tar.gz/Flask-Scaffold-0.5.1/app/templates/static/node_modules/angular-ui-router/bower_components/angular/angular.min.js
(function(S,X,u){'use strict';function y(b){return function(){var a=arguments[0],c;c="["+(b?b+":":"")+a+"] http://errors.angularjs.org/1.3.0/"+(b?b+"/":"")+a;for(a=1;a<arguments.length;a++){c=c+(1==a?"?":"&")+"p"+(a-1)+"=";var d=encodeURIComponent,e;e=arguments[a];e="function"==typeof e?e.toString().replace(/ \{[\s\S]*...
PypiClean
/FreePyBX-1.0-RC1.tar.gz/FreePyBX-1.0-RC1/freepybx/public/js/dojox/drawing/stencil/Path.js.uncompressed.js
define("dojox/drawing/stencil/Path", ["dijit","dojo","dojox"], function(dijit,dojo,dojox){ dojo.provide("dojox.drawing.stencil.Path"); dojox.drawing.stencil.Path = dojox.drawing.util.oo.declare( // summary: // Creates a dojox.gfx Path based on points provided. // dojox.drawing.stencil._Base, function(options){ ...
PypiClean
/BWP-0.7.0.tar.gz/BWP-0.7.0/bwp/migrations/0001_initial.py
from __future__ import unicode_literals from django.db import migrations, models from django.conf import settings import bwp.db.fields import bwp.utils.classes class Migration(migrations.Migration): dependencies = [ ('contenttypes', '0002_remove_content_type_name'), migrations.swappable_dependen...
PypiClean
/EnergyCapSdk-8.2304.4743.tar.gz/EnergyCapSdk-8.2304.4743/energycap/sdk/models/group_meter_group_response_py3.py
from msrest.serialization import Model class GroupMeterGroupResponse(Model): """GroupMeterGroupResponse. :param meter_group_id: The meter group identifier :type meter_group_id: int :param meter_group_code: The meter group code :type meter_group_code: str :param meter_group_info: The meter gr...
PypiClean
/MezzanineFor1.7-3.1.10.tar.gz/MezzanineFor1.7-3.1.10/mezzanine/blog/feeds.py
from __future__ import unicode_literals from django.contrib.auth import get_user_model from django.contrib.syndication.views import Feed from django.core.urlresolvers import reverse from django.shortcuts import get_object_or_404 from django.utils.feedgenerator import Atom1Feed from django.utils.html import strip_tags ...
PypiClean
/CellNet-1.1.1.3-py3-none-any.whl/cellphonedb/tools/generate_data/parsers/parse_interactions_imex.py
import math import pandas as pd from tools.interactions_helper import _only_uniprots_in_df from tools.tools_helper import normalize_interactions def parse_interactions_imex(interactions_base_df, protein_df, gene_df): """ Parses interactions list from IMEx data file. Steps: 1. Get Uniprot values f...
PypiClean
/Django_patch-2.2.19-py3-none-any.whl/django/http/multipartparser.py
import base64 import binascii import cgi from urllib.parse import unquote from django.conf import settings from django.core.exceptions import ( RequestDataTooBig, SuspiciousMultipartForm, TooManyFieldsSent, ) from django.core.files.uploadhandler import ( SkipFile, StopFutureHandlers, StopUpload, ) from django....
PypiClean
/Manager-2.0.5.tar.gz/Manager-2.0.5/CHANGES.rst
Manager - 2.0.5 - Stable ======================== .. .changes Changes ======= 2.0.5 - Stable -------------- | **Manager** 2.0.5 - Stable - Milestone: https://github.com/KelSolaar/Manager/issues?milestone=4&state=closed | **Foundations** 2.1.0 - Stable - Milestone: https://github.com/KelSolaar/Foundations/issues?mil...
PypiClean
/CloudReg-1.0.1-py3-none-any.whl/cloudreg/scripts/transform_points.py
from .util import aws_cli from .visualization import create_viz_link_from_json, get_neuroglancer_json import pathlib import subprocess import shlex import requests as r import numpy as np import h5py from cloudvolume import CloudVolume from collections import defaultdict import uuid import argparse from scipy.io impor...
PypiClean
/Flask-AppBuilder-jwi078-2.1.13.tar.gz/Flask-AppBuilder-jwi078-2.1.13/flask_appbuilder/fields.py
from __future__ import unicode_literals import operator from wtforms import widgets from wtforms.compat import string_types, text_type from wtforms.fields import Field, SelectField, SelectFieldBase from wtforms.validators import ValidationError class AJAXSelectField(Field): """ Simple class to convert p...
PypiClean
/LFake-18.9.0.tar.gz/LFake-18.9.0/RELEASE_PROCESS.rst
Release Process --------------- This project releases automatically every time a PR is squash-merged. The changelog is updated with a new entry containing the message commit, and the library version number is incremented according the the labels on the PR: * ``bump-version:major``: Increments the MAJOR version * ``b...
PypiClean
/InformativeFeatureSelection-3.0.0.tar.gz/InformativeFeatureSelection-3.0.0/feature_extractor/indi/MulticlassINDI.py
from copy import copy from dataclasses import dataclass from typing import List, Tuple, Dict import numpy as np from feature_extractor.common import DiscriminantAnalysis from feature_extractor.indi.INDI import INDI @dataclass class MindiResult: class_idx: int indices: Tuple[int, int] ndi_criteria: float...
PypiClean
/Hikka_TL-1.24.14-py3-none-any.whl/telethon/tl/custom/button.py
from .. import types from ... import utils class Button: """ .. note:: This class is used to **define** reply markups, e.g. when sending a message or replying to events. When you access `Message.buttons <telethon.tl.custom.message.Message.buttons>` they are actually `MessageBu...
PypiClean
/DI_engine-0.4.9-py3-none-any.whl/dizoo/box2d/lunarlander/config/lunarlander_rnd_onppo_config.py
from easydict import EasyDict collector_env_num = 8 evaluator_env_num = 8 lunarlander_ppo_rnd_config = dict( exp_name='lunarlander_rnd_onppo_seed0', env=dict( collector_env_num=collector_env_num, evaluator_env_num=evaluator_env_num, env_id='LunarLander-v2', n_evaluator_episode=e...
PypiClean
/GENDIS-1.0.14.tar.gz/GENDIS-1.0.14/gendis/experiments/dependent_vs_independent_benchmarks.py
from sklearn.base import BaseEstimator, ClassifierMixin, TransformerMixin from sklearn.utils import check_array, check_X_y from sklearn.utils.validation import check_is_fitted from sklearn.model_selection import GridSearchCV from sklearn.linear_model import LogisticRegression import numpy as np import pandas as pd from...
PypiClean
/Js2Py-0.74.tar.gz/Js2Py-0.74/js2py/internals/prototypes/jsstring.py
from __future__ import unicode_literals # -*- coding: utf-8 -*- import re from ..conversions import * from ..func_utils import * from .jsregexp import RegExpExec DIGS = set(u'0123456789') WHITE = u"\u0009\u000A\u000B\u000C\u000D\u0020\u00A0\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A...
PypiClean
/Intellect-1.4.9.tar.gz/Intellect-1.4.9/intellect/PolicyTokenSource.py
from antlr3.tokens import ClassicToken, EOF from antlr3.recognizers import TokenSource from intellect.grammar.PolicyParser import INDENT, DEDENT from intellect.grammar.PolicyLexer import NEWLINE, LEADING_WS class PolicyTokenSource(TokenSource): """ Python does not explicitly provide begin and end nesting si...
PypiClean
/DobbyStock-0.1.tar.gz/DobbyStock-0.1/Test_Stock_Main.py
import unittest from main_package.Stock_main import * class TestStock(unittest.TestCase): # test class @classmethod def setUpClass(cls): print('setupClass') def setUp(self): print('Set up') def test_high_price(self): self.high_price_list = [20...
PypiClean
/Azimuth-2.0.tar.gz/Azimuth-2.0/azimuth/features/microhomology.py
from math import exp from re import findall def compute_score(seq, tmpfile1="1.before removing duplication.txt", tmpfile2="2.all microhomology patterns.txt", verbose=False): length_weight=20.0 left=30 # Insert the position expected to be broken. right=len(seq)-int(left) #print 'leng...
PypiClean
/LightZero-0.0.1-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl/lzero/policy/muzero.py
import copy from typing import List, Dict, Any, Tuple, Union import numpy as np import torch import torch.optim as optim from ding.model import model_wrap from ding.policy.base_policy import Policy from ding.torch_utils import to_tensor from ding.utils import POLICY_REGISTRY from torch.nn import L1Loss from lzero.mct...
PypiClean
/KL_Audit_supportV2.9-1.0-py3-none-any.whl/AuditModule/core/persistences/adaptors/CassandraPersistenceAdaptor.py
import traceback import json from cassandra.cluster import Cluster from AuditModule.common import AppConstants from AuditModule.util import Logging as LOGG Logger = LOGG.get_logger() class CassandraDButility: def __init__(self): """ Initializer """ try: Logger.info...
PypiClean
/Gluino-0.4.tar.gz/Gluino-0.4/gluino/reserved_sql_keywords.py
__author__ = "Thadeus Burgess <thadeusb@thadeusb.com>" # we classify as "non-reserved" those key words that are explicitly known # to the parser but are allowed as column or table names. Some key words # that are otherwise non-reserved cannot be used as function or data type n # ames and are in the nonres...
PypiClean
/EpyNN-1.2.11.tar.gz/EpyNN-1.2.11/epynnlive/ptm_protein/train.py
import random # Related third party imports import numpy as np # Local application/library specific imports import epynn.initialize from epynn.commons.maths import relu, softmax from epynn.commons.library import ( configure_directory, read_model, write_model, ) from epynn.network.models import EpyNN from...
PypiClean
/ChemSpiPy-2.0.0.tar.gz/ChemSpiPy-2.0.0/chemspipy/search.py
from __future__ import print_function from __future__ import unicode_literals from __future__ import division import datetime import logging import threading import time from six.moves import range from . import errors, objects, utils log = logging.getLogger(__name__) # TODO: Use Sequence abc metaclass? class Res...
PypiClean
/Blackboard_LMS_CLI-1.0.9-py3-none-any.whl/bbcli/utils/content_utils.py
import click import webbrowser from bbcli.services import contents_services from bbcli.utils.utils import check_response, html_to_text from bbcli.entities.Node import Node from bbcli.utils.content_handler import content_handler from bbcli.views import contents_views def is_folder(node): key = 'contentHandler' ...
PypiClean
/FreePyBX-1.0-RC1.tar.gz/FreePyBX-1.0-RC1/freepybx/public/js/dojox/drawing/tools/Line.js.uncompressed.js
define("dojox/drawing/tools/Line", ["dijit","dojo","dojox"], function(dijit,dojo,dojox){ dojo.provide("dojox.drawing.tools.Line"); dojox.drawing.tools.Line = dojox.drawing.util.oo.declare( // summary: // Class for a drawable Line dojox.drawing.stencil.Line, function(){ // summary: constructor }, { draws:tru...
PypiClean
/HallPy_Teach-0.1.7.tar.gz/HallPy_Teach-0.1.7/src/HallPy_Teach/experiments/__init__.py
import time from pyvisa import VisaIOError from ..helper import requiredInstrumentNotFound, notEnoughReqInstType, filterArrByKey from ..helper import reconnectInstructions, getInstTypeCount def getAndSetupExpInsts(requiredEquipment=None, instruments=None, serials=None, inGui=False): """Picking out and setting u...
PypiClean
/Artec-0.3.0-py3-none-any.whl/artec/argparser.py
from argparse import ( ArgumentParser, Namespace, RawTextHelpFormatter, _VersionAction, ) from .templates import templates import sys class list_templates(_VersionAction): def __call__(self, parser: ArgumentParser, *args, **kwargs) -> None: formatter = parser._get_formatter() forma...
PypiClean
/Kivy-2.2.1-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl/kivy/core/gl/__init__.py
import sys from os import environ MIN_REQUIRED_GL_VERSION = (2, 0) def msgbox(message): if sys.platform == 'win32': import ctypes from ctypes.wintypes import LPCWSTR ctypes.windll.user32.MessageBoxW(None, LPCWSTR(message), u"Kivy Fatal Error", 0) ...
PypiClean
/B9gemyaeix-4.14.1.tar.gz/B9gemyaeix-4.14.1/weblate/accounts/views.py
import os import re from collections import defaultdict from datetime import timedelta from email.headerregistry import Address from importlib import import_module from typing import Optional import social_django.utils from django.conf import settings from django.contrib.auth import REDIRECT_FIELD_NAME, logout from d...
PypiClean
/Exegol-4.2.5.tar.gz/Exegol-4.2.5/exegol-docker-build/sources/install/package_rfid.sh
source common.sh function install_rfid_apt_tools() { fapt libusb-dev autoconf nfct pcsc-tools pcscd libpcsclite-dev libpcsclite1 libnfc-dev libnfc-bin mfcuk add-history libnfc add-history mfcuk add-test-command "dpkg -l libusb-dev | grep 'libusb-dev'" add-test-command "autoconf --version" ...
PypiClean
/5gasp_cli-0.4.0.tar.gz/5gasp_cli-0.4.0/src/main.py
from typing import List, Optional from .helpers.beatiful_prints import PrintAsTable, PrintAsPanelColumns from rich.prompt import Prompt, Confirm from rich.text import Text from rich.console import Console import typer from .CICDManagerAPIClient import apli_client as CICD_API_Client from .DescriptorParser.parser impor...
PypiClean
/BiologicalProcessNetworks-1.0a3.tar.gz/BiologicalProcessNetworks-1.0a3/README.rst
================================== Python Biological Process Networks ================================== Python Biological Process Networks (PyBPN) provides programs to detect connections between biological processes (called "links") based on gene interaction, expression, and annotation data. A collection of significa...
PypiClean
/DeepGMAP-0.2.0.tar.gz/DeepGMAP-0.2.0/deepgmap/data_preprocessing_tools/genome_labeling_compare.py
import glob as glb import sys import numpy as np from sklearn.decomposition import KernelPCA as pca_f import os import matplotlib.pyplot as plt from scipy.spatial.distance import pdist import scipy.cluster.hierarchy as sch from MulticoreTSNE import MulticoreTSNE as TSNE def genome_label(bed_file_list, genome_1000): ...
PypiClean
/MyoSuite-2.0.1-py3-none-any.whl/myosuite/logger/grouped_datasets.py
from myosuite.utils import tensor_utils from myosuite.utils.dict_utils import flatten_dict, dict_numpify from myosuite.utils.prompt_utils import prompt, Prompt import numpy as np import pickle import h5py from PIL import Image from sys import platform import skvideo.io import os import enum # Trace_name: { # grp1:...
PypiClean
/lektor-3.4.0b6-py3-none-any.whl/lektor/i18n.py
import json import os translations_path = os.path.join( os.path.abspath(os.path.dirname(__file__)), "translations" ) KNOWN_LANGUAGES = list( x[:-5] for x in os.listdir(translations_path) if x.endswith(".json") ) translations = {} for _lang in KNOWN_LANGUAGES: with open(os.path.join(translations_path, _l...
PypiClean
/D-Analyst-1.0.6.tar.gz/D-Analyst-1.0.6/main/analyst/processors/grid_processor.py
import inspect import numpy as np from .processor import EventProcessor from analyst import DataNormalizer NTICKS = 10 __all__ = ['GridEventProcessor'] def nicenum(x, round=False): e = np.floor(np.log10(x)) f = x / 10 ** e eps = 1e-6 if round: if f < 1.5: nf = 1. elif f < ...
PypiClean
/CommandUI-1.0.7.tar.gz/CommandUI-1.0.7/CUI/view/selector.py
from .printer import echo from .printer import prompt from .options import options from .printer import style from .validator import validator as Validator from abc import abstractclassmethod from abc import ABCMeta class Select(metaclass=ABCMeta): @abstractclassmethod def show(self):pass @abstractcl...
PypiClean
/Bottlechest-0.7.1-cp34-cp34m-macosx_10_9_x86_64.whl/bottlechest/src/template/func/nanargmin.py
"nanargmin template" from copy import deepcopy import bottlechest as bn __all__ = ["nanargmin"] FLOAT_DTYPES = [x for x in bn.dtypes if 'float' in x] INT_DTYPES = [x for x in bn.dtypes if 'int' in x] # Float dtypes (not axis=None) ---------------------------------------------- floats = {} floats['dtypes'] = FLOAT_...
PypiClean
/BioFlow-0.2.3.tar.gz/BioFlow-0.2.3/bioflow/pre_processing/rna_counts_analysis.py
from collections import defaultdict from csv import reader from pprint import PrettyPrinter import numpy as np from scipy.stats import t from bioflow.utils.io_routines import dump_object from bioflow.utils.log_behavior import get_logger from bioflow.main_configs import rna_source, Dumps from bioflow.neo4j_db import d...
PypiClean
/Gooey-1.2.0a0.tar.gz/Gooey-1.2.0a0/gooey/examples/subparser_demo.py
import argparse from gooey import Gooey, GooeyParser, Events running = True @Gooey( optional_cols=2, program_name="Subparser Demo", # navigation='SIDEBAR', # tabbed_groups=True, # image_dir=r'C:\Users\Chris\Dropbox\pretty_gui\Gooey\gooey\examples\imgs', # sidebar_title='FOOO', # cli='"C...
PypiClean
/MUSE_OS-1.0.2.tar.gz/MUSE_OS-1.0.2/docs/inputs/agents.rst
.. _inputs-agents: ====== Agents ====== In MUSE, an agent-based formulation was originally introduced for the residential and commercial building sectors :cite:`2019:sachs`. Agents are defined using a CSV file, with one agent per row, using a format meant specifically for retrofit and new-capacity agent pairs. This ...
PypiClean
/GraTeLPy-0.2.0.1.tar.gz/GraTeLPy-0.2.0.1/gratelpy/graph.py
import networkx as nx from networkx.algorithms import bipartite from collections import defaultdict from gratelpy.utils import invert_dict def get_valid_path_graph_cycles(path_graph): # path_graph: digraph with nodes = paths & edge n1 -> n2 => endpoint(n1) = beginning(n2) # returns all valid cycles in path_gra...
PypiClean
/ESMValCore-2.9.0rc1.tar.gz/ESMValCore-2.9.0rc1/notebooks/discovering-data.ipynb
# Discovering data This notebook shows how to find out what data is available locally as well as on ESGF. It also shows how to download the data from ESGF. ``` from esmvalcore.config import CFG from esmvalcore.dataset import Dataset, datasets_to_recipe from esmvalcore.esgf import download import yaml ``` Configure E...
PypiClean
/Netfoll_TL-2.0.1-py3-none-any.whl/netfoll_tl/tl/custom/forward.py
from .chatgetter import ChatGetter from .sendergetter import SenderGetter from ... import utils, helpers from ...tl import types class Forward(ChatGetter, SenderGetter): """ Custom class that encapsulates a :tl:`MessageFwdHeader` providing an abstraction to easily access information like the original send...
PypiClean
/Flask-CKEditor-0.4.6.tar.gz/Flask-CKEditor-0.4.6/flask_ckeditor/static/standard/adapters/jquery.js
/* Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */ (function(a){if("undefined"==typeof a)throw Error("jQuery should be loaded before CKEditor jQuery adapter.");if("undefined"==typeof CKEDITOR)throw Error("...
PypiClean
/Bottlechest-0.7.1-cp34-cp34m-macosx_10_9_x86_64.whl/bottlechest/src/template/func/bincount.py
"bincount template" from copy import deepcopy import bottlechest as bn __all__ = ["bincount"] FLOAT_DTYPES = [x for x in bn.dtypes if 'float' in x] INT_DTYPES = [x for x in bn.dtypes if 'int' in x] # Float dtypes (not axis=None) ---------------------------------------------- floats = {} floats['dtypes'] = FLOAT_DT...
PypiClean
/LinOTP-2.11.1.tar.gz/LinOTP-2.11.1/linotp/lib/config/config_class.py
import logging import os import time from datetime import datetime from linotp.config import environment as env from linotp.lib.config.util import expand_here from linotp.lib.config.db_api import _removeConfigDB from linotp.lib.config.db_api import _retrieveAllConfigDB from linotp.lib.config.db_api import _storeConf...
PypiClean
/MNN_FMA-1.0.1-cp27-cp27m-manylinux2010_x86_64.whl/MNN/tools/mnn_fb/GpuLibrary.py
# namespace: MNN import flatbuffers class GpuLibrary(object): __slots__ = ['_tab'] @classmethod def GetRootAsGpuLibrary(cls, buf, offset): n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset) x = GpuLibrary() x.Init(buf, n + offset) return x # GpuLibra...
PypiClean
/CondConfigParser-1.0.5.tar.gz/CondConfigParser-1.0.5/doc/internals/exceptions.rst
The :mod:`~condconfigparser.exceptions` submodule ------------------------------------------------- .. warning:: The exceptions listed in this section are implementation details of CondConfigParser. **Do not use them in your programs** from this namespace if you rely on API stability, as they are likely to chan...
PypiClean
/OctoBot-Tentacles-Manager-2.9.4.tar.gz/OctoBot-Tentacles-Manager-2.9.4/octobot_tentacles_manager/workers/single_install_worker.py
import os.path as path import octobot_tentacles_manager.constants as constants import octobot_tentacles_manager.models as models import octobot_tentacles_manager.workers as workers class SingleInstallWorker(workers.InstallWorker): def __init__(self, reference_tentacles_dir, tentacle_path, bot_i...
PypiClean
/ABBA-QuPath-RegistrationExporter-0.4.2.tar.gz/ABBA-QuPath-RegistrationExporter-0.4.2/regexport/views/histogram.py
from dataclasses import dataclass from typing import List, Optional import numpy as np import vedo from traitlets import HasTraits, Instance, Bool from vedo import Plotter, pyplot from vtkmodules.qt.QVTKRenderWindowInteractor import QVTKRenderWindowInteractor from regexport.model import AppState from regexport.views....
PypiClean
/Bobtools-0.1.25-py3-none-any.whl/bobtools/mlflow.py
from transformers.integrations import TrainerCallback import importlib.util import os import mlflow from mlflow import log_metric, log_param, log_artifacts import logging logger = logging.getLogger(__name__) class BobMLflowCallback(TrainerCallback): """ A :class:`~transformers.TrainerCallback` that sends the...
PypiClean
/FreePyBX-1.0-RC1.tar.gz/FreePyBX-1.0-RC1/freepybx/public/js/dojox/dtl/contrib/dijit.js
define("dojox/dtl/contrib/dijit",["dojo/_base/lang","dojo/_base/connect","dojo/_base/array","dojo/query","../_base","../dom","dojo/parser","dojo/_base/sniff"],function(_1,_2,_3,_4,dd,_5,_6,_7){ _1.getObject("dojox.dtl.contrib.dijit",true); var _8=dd.contrib.dijit; _8.AttachNode=_1.extend(function(_9,_a){ this._keys=_9;...
PypiClean
/BIA_OBS-1.0.3.tar.gz/BIA_OBS-1.0.3/BIA/static/dist/node_modules/@popperjs/core/dist/esm/modifiers/applyStyles.js
import getNodeName from "../dom-utils/getNodeName.js"; import { isHTMLElement } from "../dom-utils/instanceOf.js"; // This modifier takes the styles prepared by the `computeStyles` modifier // and applies them to the HTMLElements such as popper and arrow function applyStyles(_ref) { var state = _ref.state; Object....
PypiClean
/NAG-PyPOP-0.3.5.tar.gz/NAG-PyPOP-0.3.5/pypop/trace/trace.py
from warnings import warn import numpy import pandas from ..utils.pandas import HDFStoreContext from ..utils.exceptions import WrongLoaderError, UnknownLoaderError from .tracemetadata import TraceMetadata class Trace: """Base class providing a skeleton for implementation of different trace classes. Inclu...
PypiClean
/Mezzanine-6.0.0.tar.gz/Mezzanine-6.0.0/mezzanine/conf/__init__.py
from functools import partial from importlib import import_module from warnings import warn from weakref import WeakKeyDictionary from django.conf import settings as django_settings from django.utils.functional import Promise from django.utils.module_loading import module_has_submodule from mezzanine import __version...
PypiClean
/EnergyCapSdk-8.2304.4743.tar.gz/EnergyCapSdk-8.2304.4743/energycap/sdk/models/bill_meter_body_line_edit_py3.py
from msrest.serialization import Model class BillMeterBodyLineEdit(Model): """BillMeterBodyLineEdit. All required parameters must be populated in order to send to Azure. :param body_line_id: The bodyline's id for an existing bodyline <span class='property-internal'>Required (defined)</span> :t...
PypiClean
/ConfigFramework-4.0.2.tar.gz/ConfigFramework-4.0.2/config_framework/types/variable_key.py
from __future__ import annotations from typing import Iterable, Union, Iterator, List class VariableKey(Iterable): """ Class that helps us organize how keys for config variables to look for inside of some complicated nested structures. """ root_key: str next_pieces: List[VariableKey] __s...
PypiClean
/EvoMSA-1.9.10.tar.gz/EvoMSA-1.9.10/README.rst
EvoMSA ================================== .. image:: https://github.com/INGEOTEC/EvoMSA/actions/workflows/test.yaml/badge.svg :target: https://github.com/INGEOTEC/EvoMSA/actions/workflows/test.yaml .. image:: https://coveralls.io/repos/github/INGEOTEC/EvoMSA/badge.svg?branch=develop :target: https://coveralls.io/g...
PypiClean
/Nuitka_fixed-1.1.2-cp310-cp310-win_amd64.whl/nuitka/build/inline_copy/jinja2/jinja2/filters.py
"""Built-in template filters used with the ``|`` operator.""" import math import random import re import warnings from collections import namedtuple from itertools import chain from itertools import groupby from markupsafe import escape from markupsafe import Markup from markupsafe import soft_str from ._compat impor...
PypiClean
/DDFacet-0.7.2.0.tar.gz/DDFacet-0.7.2.0/SkyModel/ClusterCat.py
from __future__ import division, absolute_import, print_function import sys,os if "PYTHONPATH_FIRST" in list(os.environ.keys()) and int(os.environ["PYTHONPATH_FIRST"]): sys.path = os.environ["PYTHONPATH"].split(":") + sys.path import numpy as np np.random.seed(2) import random random.seed(2) from DDFacet.Other im...
PypiClean
/LivePeerSDK-1.0-py3-none-any.whl/LivePeerSDK_Python/LivePeerSDK.py
import requests import json class LivePeerSDK: # ASSET ENDPOINTS __IMPORT_ASSET = 'https://livepeer.com/api/asset/import' __REQUEST_UPLOAD = 'https://livepeer.com/api/asset/request-upload' __LIST_ASSETS = 'https://livepeer.com/api/asset' __RETRIEVE_ASSETS = 'https://livepeer.com/api/asset/' # END...
PypiClean
/Nuitka-1.8.tar.gz/Nuitka-1.8/nuitka/plugins/standard/DelvewheelPlugin.py
import os import re from nuitka import Options from nuitka.plugins.PluginBase import NuitkaPluginBase from nuitka.PythonFlavors import isAnacondaPython from nuitka.utils.FileOperations import listDllFilesFromDirectory # spell-checker: ignore delvewheel class NuitkaPluginDelvewheel(NuitkaPluginBase): """This cla...
PypiClean
/Flask_AppBuilder-4.3.6-py3-none-any.whl/flask_appbuilder/filters.py
from flask import current_app, request, url_for from .const import PERMISSION_PREFIX def app_template_filter(filter_name=""): def wrap(f): if not hasattr(f, "_filter"): f._filter = filter_name return f return wrap class TemplateFilters(object): security_manager = None ...
PypiClean
/MouseTools-2.1.1.tar.gz/MouseTools-2.1.1/mousetools/parks.py
import requests import json import pytz from datetime import datetime, timedelta from .auth import get_headers from .ids import themeparkapi_ids, WDW_ID, DLR_ID class Park(object): def __init__(self, id = None): """ Constructor Function Gets all park data available and stores various elem...
PypiClean
/Djblets-3.3.tar.gz/Djblets-3.3/djblets/util/http.py
import hashlib from urllib.parse import urlencode from django.http import HttpResponse, HttpResponseNotModified from django.utils.encoding import force_bytes from djblets.util.dates import http_date class HttpResponseNotAcceptable(HttpResponse): status_code = 406 def set_last_modified(response, timestamp): ...
PypiClean
/Nuitka-1.8.tar.gz/Nuitka-1.8/README.rst
#################### Nuitka User Manual #################### ********** Overview ********** This document is the recommended first read if you are interested in using Nuitka, understand its use cases, check what you can expect, license, requirements, credits, etc. Nuitka is **the** Python compiler. It is written i...
PypiClean
/CairoSVG-2.7.1-py3-none-any.whl/cairosvg/surface.py
import copy import io import cairocffi as cairo from .colors import color, negate_color from .defs import ( apply_filter_after_painting, apply_filter_before_painting, clip_path, filter_, gradient_or_pattern, linear_gradient, marker, mask, paint_mask, parse_all_defs, pattern, prepare_filter, radial_gradien...
PypiClean
/FlaskCms-0.0.4.tar.gz/FlaskCms-0.0.4/flask_cms/static/js/ckeditor/plugins/codemirror/js/mode/jinja2/jinja2.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...
PypiClean
/564bff00ff_strawberry_graphql-0.168.2-py3-none-any.whl/strawberry/exceptions/duplicated_type_name.py
from __future__ import annotations from typing import TYPE_CHECKING, Optional, Type from strawberry.utils.cached_property import cached_property from .exception import StrawberryException from .utils.source_finder import SourceFinder if TYPE_CHECKING: from rich.console import RenderableType from .exception...
PypiClean
/MyProxyWebService-0.2.3.tar.gz/MyProxyWebService-0.2.3/myproxy/ws/client/myproxy-ws-logon-wget.sh
cmdname=$(basename $0) cmdline_opt=`getopt hU:l:So:c: $*` usage="Usage: $cmdname [-U MyProxy Web Service URI][-l username] ...\n \n Options\n -h\t\t\tDisplays usage\n -U <uri>\t\tMyProxy web service URI\n -l <username>\t\tUsername for the delegated proxy (defaults to \$LOGNAME)\n -S\t\t\...
PypiClean
/DeePyMoD-20.11b0.tar.gz/DeePyMoD-20.11b0/README.md
![Screenshot](docs/figures/DeepMoD_logo.png) DeePyMoD is a modular framework for model discovery of PDEs and ODEs from noise data. The framework is comprised of four components, that can seperately be altered: i) A function approximator to construct a surrogate of the data, ii) a function to construct the library of f...
PypiClean
/Chronix2Grid-1.2.0.post1.tar.gz/Chronix2Grid-1.2.0.post1/chronix2grid/grid2op_utils/add_data.py
import os import json from multiprocessing import Pool import grid2op from chronix2grid.grid2op_utils.utils import generate_a_scenario, get_last_scenario_id from numpy.random import default_rng # wrapper function for generate_a_scenario def generate_a_scenario_wrapper(args): (path_env, name_gen, gen_type, output...
PypiClean
/LumberMill-0.9.5.7-py3-none-any.whl/lumbermill/input/Tcp.py
import sys import ssl import socket import logging from tornado import autoreload from tornado.iostream import StreamClosedError from tornado.netutil import bind_sockets from tornado.tcpserver import TCPServer import lumbermill.utils.DictUtils as DictUtils from lumbermill.BaseModule import BaseModule from lumbermill....
PypiClean
/ErrorSearcher-1.0.2.tar.gz/ErrorSearcher-1.0.2/README.md
# ErrorSearcher Search error on webbrowser # Installation ```bash pip install ErrorSearcher ``` # How to use ```bash from ErrorSearcher import detect detect(__file__) ``` Just write these line on top of program file which is throwing an error and the program will search the error on your default browser # Example Th...
PypiClean
/NlvWxPython-4.2.0-cp37-cp37m-win_amd64.whl/wx/lib/CDate.py
"""Date and calendar classes and date utitility methods.""" from __future__ import division import time # I18N import wx _ = wx.GetTranslation Month = {0: None, 1: _('January'), 2: _('February'), 3: _('March'), 4: _('April'), 5: _('May'), 6: _('June'), 7: _('July'), 8: _('August'), 9: _('S...
PypiClean
/LitReview-0.6989ev.tar.gz/LitReview-0.6989ev/src/queries/associate.py
from model_old_schema.model import get_first from queries.misc import validate_genes from queries.move_ref import move_reftemp_to_ref from webapp.litreview_logger import log_it import json class Task(): def __init__(self, task_type, gene_names, comment): if task_type == TaskType.ADDITIONAL_LITERATURE: self...
PypiClean
/GalSim-2.4.11-cp37-cp37m-manylinux_2_17_i686.manylinux2014_i686.whl/galsim/shapelet.py
import numpy as np from .gsobject import GSObject from .gsparams import GSParams from .position import PositionD from .image import Image from .utilities import lazy_property from . import _galsim from .errors import GalSimValueError, GalSimIncompatibleValuesError, GalSimNotImplementedError class Shapelet(GSObject):...
PypiClean
/Flask_Unchained-0.9.0-py3-none-any.whl/flask_unchained/bundles/sqlalchemy/config.py
import os from flask_unchained import BundleConfig from .alembic.migrations import render_migration_item class Config(BundleConfig): """ The default configuration options for the SQLAlchemy Bundle. """ db_file = os.path.join(BundleConfig.current_app.root_path or '', 'db', ...
PypiClean
/D8gerConcurrent-4.3.2.tar.gz/D8gerConcurrent-4.3.2/d8ger/excel.py
import json import os import ssl import pandas as pd import xlsxwriter import requests """ 读取cookie文件 读取搜索条件文件 解析搜索结果数据 查询单条数据,获得内推TOKEN数据 查询内推短链 保存岗位数据结果 """ # 屏蔽HTTPS证书校验, 忽略安全警告 requests.packages.urllib3.disable_warnings() context = ssl._create_unverified_context() header_file_path = os.path.expanduser('~') + "/J...
PypiClean
/Nuitka-1.8.tar.gz/Nuitka-1.8/nuitka/build/inline_copy/lib/scons-3.1.2/SCons/Tool/cyglink.py
from __future__ import absolute_import, print_function import re import os import SCons.Action import SCons.Util import SCons.Tool #MAYBE: from . import gnulink from . import gnulink from . import link def _lib_generator(target, source, env, for_signature, **kw): try: cmd = kw['cmd'] except KeyError: cmd =...
PypiClean
/Cola-0.1.0b0.tar.gz/Cola-0.1.0b0/app/weibo/parsers.py
import time import json import urllib import re from datetime import datetime, timedelta from threading import Lock from cola.core.parsers import Parser from cola.core.utils import urldecode, beautiful_soup from cola.core.errors import DependencyNotInstalledError from cola.core.logs import get_logger from login impor...
PypiClean
/GDAL-3.7.1.1.tar.gz/GDAL-3.7.1.1/gdal-utils/osgeo_utils/samples/dump_jp2.py
import sys from osgeo import gdal def Usage(): print("Usage: dump_jp2 [-dump_gmljp2 out.xml|-] [-dump_crsdictionary out.xml|-]") print(" [-extract_all_xml_boxes filename_prefix]") print(" test.jp2") print("") print("Options (all are exclusive of the regular dump)...
PypiClean
/NEMO_CE-1.6.12-py3-none-any.whl/NEMO/static/typeahead.jquery.min.js
!function(a){var b=function(){"use strict";return{isMsie:function(){return/(msie|trident)/i.test(navigator.userAgent)?navigator.userAgent.match(/(msie |rv:)(\d+(.\d+)?)/i)[2]:!1},isBlankString:function(a){return!a||/^\s*$/.test(a)},escapeRegExChars:function(a){return a.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$...
PypiClean
/CloudFerry-1.55.2.tar.gz/CloudFerry-1.55.2/cloudferry/lib/os/network/nova_network.py
from fabric.api import env from fabric.api import run from fabric.api import settings from novaclient.v2 import client as nova_client from cloudferry.lib.base import network from cloudferry.lib.os.compute import nova_compute from cloudferry.lib.utils.utils import forward_agent class NovaNetwork(network.Network): ...
PypiClean
/DLTA-AI-1.1.tar.gz/DLTA-AI-1.1/DLTA_AI_app/mmdetection/mmdet/models/dense_heads/retina_sepbn_head.py
import torch.nn as nn from mmcv.cnn import ConvModule, bias_init_with_prob, normal_init from ..builder import HEADS from .anchor_head import AnchorHead @HEADS.register_module() class RetinaSepBNHead(AnchorHead): """"RetinaHead with separate BN. In RetinaHead, conv/norm layers are shared across different FPN...
PypiClean
/ChatterBot2-1.1.0a7.tar.gz/ChatterBot2-1.1.0a7/chatterbot/comparisons.py
from chatterbot.exceptions import OptionalDependencyImportError from difflib import SequenceMatcher class Comparator: def __init__(self, language): self.language = language def __call__(self, statement_a, statement_b): return self.compare(statement_a, statement_b) def compare(self, sta...
PypiClean
/OctoPrint-1.9.2.tar.gz/OctoPrint-1.9.2/src/octoprint/vendor/sockjs/tornado/basehandler.py
from __future__ import absolute_import, division, print_function, unicode_literals """ sockjs.tornado.basehandler ~~~~~~~~~~~~~~~~~~~~~~~~~~ Various base http handlers """ import datetime import socket import logging from tornado.web import RequestHandler from tornado.gen import coroutine from urllib.p...
PypiClean
/HamperCLI-1.0.4.tar.gz/HamperCLI-1.0.4/hamper/provisioner.py
from helpers.error import HamperError from helpers.driver import HamperDriver from helpers.date import HamperDate from selenium.webdriver.support.ui import WebDriverWait import time import urllib # For CLI from termcolor import colored class HamperProvisioner(object): HPProfileTypeDevelopment = 0 HPProfileTy...
PypiClean
/BlaBlaCar%20API-0.2.3.tar.gz/BlaBlaCar API-0.2.3/blablacarapi/models.py
from datetime import datetime from blablacarapi.paging import Paging __author__ = 'ivan.arar@gmail.com' class Model(object): @classmethod def proccess(cls, params): if type(params) == dict: return cls(**params) if type(params) == list: return [cls(**child_params) fo...
PypiClean
/GrePT-1.2.0-py3-none-any.whl/GrePT-1.2.0.dist-info/LICENSE.md
MIT License Copyright (c) 2023 Jack Barry 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, publish, distri...
PypiClean