id
stringlengths
1
265
text
stringlengths
6
5.19M
dataset_id
stringclasses
7 values
/Flask_Multipass-0.4.9-py3-none-any.whl/flask_multipass/providers/static.py
import itertools import operator from flask_wtf import FlaskForm from wtforms.fields import PasswordField, StringField from wtforms.validators import DataRequired from flask_multipass.auth import AuthProvider from flask_multipass.data import AuthInfo, IdentityInfo from flask_multipass.exceptions import InvalidCreden...
PypiClean
/ExecFlowSDK-0.3.0.tar.gz/ExecFlowSDK-0.3.0/execflow/wrapper/workflows/pipeline.py
from typing import TYPE_CHECKING from aiida import orm from aiida.common.exceptions import InputValidationError, ValidationError from aiida.engine import run, run_get_node, while_ from aiida.engine.processes.workchains.workchain import WorkChain from aiida.plugins import CalculationFactory, WorkflowFactory from execf...
PypiClean
/CartiMorph_nnUNet-1.7.14.tar.gz/CartiMorph_nnUNet-1.7.14/CartiMorph_nnUNet/experiment_planning/alternative_experiment_planning/patch_size/experiment_planner_3DUNet_isotropic_in_mm.py
from copy import deepcopy import numpy as np from CartiMorph_nnUNet.experiment_planning.common_utils import get_pool_and_conv_props_poolLateV2 from CartiMorph_nnUNet.experiment_planning.experiment_planner_baseline_3DUNet import ExperimentPlanner from CartiMorph_nnUNet.network_architecture.generic_UNet import Generic...
PypiClean
/CellPhoneDBu-1.1.1.7-py3-none-any.whl/cellphonedb/src/core/models/interaction/interaction_filter.py
from cellphonedb.src.core.core_logger import core_logger import pandas as pd def filter_by_any_multidatas(multidatas: pd.DataFrame, interactions: pd.DataFrame) -> pd.DataFrame: """ Filters interactions if any interactions multidatas are in multidatas list """ interactions_filtered = pd.merge(multidata...
PypiClean
/NiMARE-0.2.0rc2.tar.gz/NiMARE-0.2.0rc2/README.md
# NiMARE: Neuroimaging Meta-Analysis Research Environment A Python library for coordinate- and image-based meta-analysis. [![Latest Version](https://img.shields.io/pypi/v/nimare.svg)](https://pypi.python.org/pypi/nimare/) [![PyPI - Python Version](https://img.shields.io/pypi/pyversions/nimare.svg)](https://pypi.python...
PypiClean
/ChadBot2-0.1.tar.gz/ChadBot2-0.1/ChadBot/chadBot.py
import os from typing import List, Tuple, Dict from numpy.testing._private.utils import assert_raises from .core.FAQ import Answer, FAQ, Question , FAQUnit, FAQOutput import numpy as np from sentence_transformers.readers import InputExample from sentence_transformers import SentenceTransformer,SentencesDataset,losses...
PypiClean
/AoikRegistryEditor-0.1.0-py3-none-any.whl/aoikregistryeditor/aoikargutil.py
from __future__ import absolute_import from argparse import ArgumentTypeError import itertools import re import sys #/ __version__ = '0.2' #/ def str_nonempty(txt): if txt != '': return txt else: raise ArgumentTypeError('Empty value is not allowed.') #/ def str_strip_nonempty(txt): #/ ...
PypiClean
/KratosContactStructuralMechanicsApplication-9.4-cp311-cp311-win_amd64.whl/KratosMultiphysics/ContactStructuralMechanicsApplication/mpc_contact_structural_mechanics_implicit_dynamic_solver.py
import KratosMultiphysics # Import applications import KratosMultiphysics.StructuralMechanicsApplication as StructuralMechanicsApplication import KratosMultiphysics.ContactStructuralMechanicsApplication as ContactStructuralMechanicsApplication # Import the implicit solver (the explicit one is derived from it) from Kr...
PypiClean
/MufSim-1.2.2.tar.gz/MufSim-1.2.2/mufsim/insts/connections.py
import mufsim.gamedb as db import mufsim.stackitems as si from mufsim.interface import network_interface as netifc from mufsim.logger import log # from mufsim.errors import MufRuntimeError from mufsim.insts.base import Instruction, instr @instr("awake?") class InstAwakeP(Instruction): def execute(self, fr): ...
PypiClean
/fastmbar-1.4.1.tar.gz/fastmbar-1.4.1/docs/source/dialanine_PMF.rst
Example 2. Compute a 2D-PMF of dihedrals for dialanine. ================================================================================= This example includes a step-by-step description on computing the two dimensional PMF of dialanine dihedrals with umbrella sampling and FastMBAR. Umbrella sampling is used to exhaus...
PypiClean
/Copreus-0.4.0.tar.gz/Copreus-0.4.0/copreus/schema/dht.py
import copreus.schema.adriver as adriver import copreus.schema.apolling as apolling import copreus.schema.calibratedvalue as calibratedvalue import copreus.schema.valuerange as valuerange def _add_schema_part(schema, schema_part): schema["driver"]["required"].extend(schema_part["required"]) schema["driver"]["...
PypiClean
/EventDriven-0.1.3.tar.gz/EventDriven-0.1.3/eventdriven/adapter/timer.py
from .base import AbstractAdapter from threading import Thread, Event __all__ = ['Timer', 'EVT_DRI_TIMING'] EVT_DRI_TIMING = '|EVT|TIMING|' class Timer(AbstractAdapter): """ 定时产生信号。 :public method set_timing: 设置定时器的定时间隔。 suspend: 挂起定时器的事件产生。 resume: 恢复挂起的定时器。 ...
PypiClean
/Flask-Helper-2.0.8.tar.gz/Flask-Helper-2.0.8/flask_helper/sessions.py
from itsdangerous import BadSignature try: from flask.helpers import total_seconds except ImportError: total_seconds = None from flask.sessions import SecureCookieSessionInterface from flask import g __author__ = 'meisa' class SecureCookieSessionInterface2(SecureCookieSessionInterface): def open_sessio...
PypiClean
/Dovetail-1.0beta2.tar.gz/Dovetail-1.0beta2/dovetail/util/logging.py
"""Logging and stdout formatting""" import sys from dovetail.util.utilities import enum from datetime import datetime # pylint: disable-msg=W0212 # Classes in this module are specifically 'friends' and may access internal # members for efficiency LEVEL = enum(DEBUG=0, INFO=1, MAJOR=2, WARN=3, ERROR=4) """Enum...
PypiClean
/BPMN_RPA-7.1.2.tar.gz/BPMN_RPA-7.1.2/BPMN_RPA/Scripts/Set_Value.py
import json # The BPMN-RPA Set_Value module 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 version. # # The BPMN-RPA Set_Value module is distr...
PypiClean
/C-Rank-3.tar.gz/C-Rank-3/CRank/porterStemmer.py
import sys class PorterStemmer: def __init__(self): """The main part of the stemming algorithm starts here. b is a buffer holding a word to be stemmed. The letters are in b[k0], b[k0+1] ... ending at b[k]. In fact k0 = 0 in this demo program. k is readjusted downwards as the stemmi...
PypiClean
/DendroPy-4.6.1.tar.gz/DendroPy-4.6.1/src/dendropy/utility/vcsinfo.py
############################################################################## ## DendroPy Phylogenetic Computing Library. ## ## Copyright 2010-2015 Jeet Sukumaran and Mark T. Holder. ## All rights reserved. ## ## See "LICENSE.rst" for terms and conditions of usage. ## ## If you use this work or any portion there...
PypiClean
/IPFX-1.0.8.tar.gz/IPFX-1.0.8/ipfx/bin/run_feature_extraction.py
import logging import argschema as ags import ipfx.error as er import ipfx.data_set_features as dsft from ipfx.stimulus import StimulusOntology from ipfx._schemas import FeatureExtractionParameters from ipfx.dataset.create import create_ephys_data_set import ipfx.sweep_props as sp import allensdk.core.json_utilities as...
PypiClean
/OASYS1-WOFRY-1.0.41.tar.gz/OASYS1-WOFRY-1.0.41/orangecontrib/wofry/widgets/beamline_elements/ow_double_slit.py
from orangecontrib.wofry.widgets.gui.ow_optical_element import OWWOOpticalElementWithDoubleBoundaryShape from syned.beamline.optical_elements.absorbers.slit import Slit from wofryimpl.beamline.optical_elements.absorbers.slit import WOSlit class OWWODoubleSlit(OWWOOpticalElementWithDoubleBoundaryShape): name = "...
PypiClean
/Flask_AdminLTE3-1.0.9-py3-none-any.whl/flask_adminlte3/static/plugins/bs-stepper/js/bs-stepper.js
(function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() : typeof define === 'function' && define.amd ? define(factory) : (global = global || self, global.Stepper = factory()); }(this, function () { 'use strict'; function _extends() { _extends ...
PypiClean
/Hikka_TL-1.24.14-py3-none-any.whl/telethon/tl/custom/inlinebuilder.py
import hashlib from .. import functions, types from ... import utils _TYPE_TO_MIMES = { "gif": ["image/gif"], # 'video/mp4' too, but that's used for video "article": ["text/html"], "audio": ["audio/mpeg"], "contact": [], "file": ["application/pdf", "application/zip"], # actually any "geo": [...
PypiClean
/LineDream-0.3.0.tar.gz/LineDream-0.3.0/README.md
![](./example.svg) LineDream is a generative art library for Python. It is heavily influenced by P5 and Processing. However, it takes a more object oriented approach, with less global state in regards to styling and transformations. The current output target is SVG. As this provides a robust output set for vector gra...
PypiClean
/INGInious-0.8.7.tar.gz/INGInious-0.8.7/inginious/frontend/static/js/codemirror/mode/rst/rst.js
(function(mod) { if (typeof exports == "object" && typeof module == "object") // CommonJS mod(require("../../lib/codemirror"), require("../python/python"), require("../stex/stex"), require("../../addon/mode/overlay")); else if (typeof define == "function" && define.amd) // AMD define(["../../lib/codemirror...
PypiClean
/AutoDiffpyyy-1.0.0.tar.gz/AutoDiffpyyy-1.0.0/AutoDiffpy/ElementaryFunc.py
import numpy as np from dual import Dual from Node import Node # Trig functions def sin(x): """ Return the sine value of x. Parameters ---------- x : int, float, Dual, Node Input to the sine function. Returns ------- value : int, float, Dual The sine value of the dua...
PypiClean
/MaterialDjango-0.2.5.tar.gz/MaterialDjango-0.2.5/materialdjango/static/materialdjango/components/bower_components/iron-form/.github/ISSUE_TEMPLATE.md
<!-- Instructions: https://github.com/PolymerElements/iron-form/CONTRIBUTING.md#filing-issues --> ### Description <!-- Example: The `paper-foo` element causes the page to turn pink when clicked. --> ### Expected outcome <!-- Example: The page stays the same color. --> ### Actual outcome <!-- Example: The page turns...
PypiClean
/MSOIPPU-1.0.tar.gz/MSOIPPU-1.0/README.md
# Flood Risk Prediction tool ## Deadlines - *code 12pm GMT Friday 25th November 2022* - *presentation/ one page report 4pm GMT Friday 25th November 2022* ### Key Requirements Your project must provide the following: - at least one analysis method to estimate a number of properties for unlabelled postcodes extrap...
PypiClean
/Cohorte-Herald-0.0.3.tar.gz/Cohorte-Herald-0.0.3/herald/exceptions.py
# Module version __version_info__ = (0, 0, 3) __version__ = ".".join(str(x) for x in __version_info__) # Documentation strings format __docformat__ = "restructuredtext en" class HeraldException(Exception): """ Base class for all exceptions in Herald """ def __init__(self, target, text, cause=None): ...
PypiClean
/emily_editor-0.9-py3-none-any.whl/src/emily0_9/text_printing.py
from enum import Enum from . import string_parsing from guibits1_0 import coloring from guibits1_0 import dialoging from guibits1_0 import font_styling from . import html_parsing from . import looking_ahead from . import page_laying_out from . import persisting from guibits1_0 import printing from . import rendering fr...
PypiClean
/MSOIooitfs-1.0.tar.gz/MSOIooitfs-1.0/flood_tool/geo.py
from numpy import array, asarray, mod, sin, cos, tan, sqrt, arctan2, floor, rad2deg, deg2rad, stack, pi from scipy.linalg import inv import numpy as np __all__ = ['get_easting_northing_from_gps_lat_long', 'get_gps_lat_long_from_easting_northing'] class Ellipsoid(object): """ Data structure for a globa...
PypiClean
/MPT5.0.1.2-0.1.2.tar.gz/MPT5.0.1.2-0.1.2/src/MPT5/Fount/Mainpro.py
from Allimp import * from Config.Init import * import GUI.window2 as window2 import GUI.Start as Strt class mainApp(wx.App): def OnInit(self): self.locale = None wx.Locale.AddCatalogLookupPathPrefix(LOCALE_PATH) self.config = self.GetConfig() lang = self.config.Read("Language")...
PypiClean
/Nuitka-1.8.tar.gz/Nuitka-1.8/nuitka/tree/Building.py
import marshal import os from nuitka import ( ModuleRegistry, Options, OutputDirectories, SourceCodeReferences, ) from nuitka.__past__ import long, unicode from nuitka.BytecodeCaching import ( getCachedImportedModuleUsageAttempts, hasCachedImportedModuleUsageAttempts, ) from nuitka.Bytecodes im...
PypiClean
/Ibid-0.1.1.tar.gz/Ibid-0.1.1/docs/contributing.rst
.. _contributing: Contributing ============ .. _bug_reporting: Bug Reporting ------------- Please report any bugs in `the Launchpad tracker <https://bugs.launchpad.net/ibid>`_. (Oh, and check for existing ones that match your problem first.) Good bug reports describe the problem, include the message to the bot tha...
PypiClean
/Hand_Tracking_Module-0.1.tar.gz/Hand_Tracking_Module-0.1/Hand_Tracking_Module/handTrackingModule.py
import cv2 import mediapipe as np import time import math '''-------------------------------Creation of Hand_Detection Class---------------------------------''' ''' Methods inside Hand Detection Class 1.findHands() :- Detect No of Hands Inside The Frame 2.FindPositi...
PypiClean
/FMPy-0.3.11-py3-none-any.whl/fmpy/model_description.py
from typing import List, Union, IO from attr import attrs, attrib, Factory @attrs(auto_attribs=True) class DefaultExperiment(object): startTime: str = None stopTime: str = None tolerance: str = None stepSize: str = None @attrs(eq=False) class InterfaceType(object): modelIdentifier = attrib(ty...
PypiClean
/Mask_anonymization_framework-1.3.2-py3-none-any.whl/mask_framework_lib/ner_plugins/NER_BiLSTM_Glove_i2b2.py
from keras import Sequential from keras.models import model_from_json from keras.layers import Embedding, Bidirectional, LSTM, Dense, TimeDistributed from sklearn.preprocessing import LabelBinarizer from tqdm import tqdm from keras_preprocessing import sequence from ..ner_plugins.utils.spec_tokenizers import tokenize_f...
PypiClean
/MetaCalls-0.0.5-cp310-cp310-manylinux2014_x86_64.whl/metacalls/node_modules/lru-cache/index.js
'use strict' // A linked list to keep track of recently-used-ness const Yallist = require('yallist') const MAX = Symbol('max') const LENGTH = Symbol('length') const LENGTH_CALCULATOR = Symbol('lengthCalculator') const ALLOW_STALE = Symbol('allowStale') const MAX_AGE = Symbol('maxAge') const DISPOSE = Symbol('dispose'...
PypiClean
/Markdown-Toolbox-0.0.9.tar.gz/Markdown-Toolbox-0.0.9/Markdown_Toolbox/moduels/thread/Thread_ClearAttatchment.py
from PySide2.QtWidgets import * from PySide2.QtGui import * from PySide2.QtCore import * from moduels.component.NormalValue import 常量, 清理化线程常量 from moduels.function.getAllUrlFromString import 从字符串搜索到所有附件路径 from moduels.function.localizeLinksInDocument import 将文档索引的链接本地化 from moduels.function.checkDirectoryPath import...
PypiClean
/FACe_lib-0.3.0.tar.gz/FACe_lib-0.3.0/face/models/invoice.py
from marshmallow import fields, Schema, post_load from .response import Response, ResponseSchema # Load the default status codes import face.codes as codes """ FACe Invoice models and schemas It defines the "factura" response content and defines an extended Response with the "factura" integrated: - InvoiceResponse ...
PypiClean
/Flask-FluidDB-0.1.tar.gz/Flask-FluidDB-0.1/docs/_themes/flask_theme_support.py
from pygments.style import Style from pygments.token import Keyword, Name, Comment, String, Error, \ Number, Operator, Generic, Whitespace, Punctuation, Other, Literal class FlaskyStyle(Style): background_color = "#f8f8f8" default_style = "" styles = { # No corresponding class for the follow...
PypiClean
/DatNTLib-0.0.3-py3-none-any.whl/DatNTLibs/Datasets/COCO/main.py
import os import numpy as np import skimage.io as io import matplotlib.pyplot as plt from pycocotools.coco import COCO #pip3 install pycocotools class COCODataset: def __init__(self,i_version='train',i_mode='instances',i_year=2017): assert isinstance(i_version,str) assert i_version in ('train','val...
PypiClean
/HubbardMeanField-1.0.tar.gz/HubbardMeanField-1.0/hubbardmeanfield/hubbard/kagome.py
import numpy as np import json from hubbard.base import Hubbard class KagomeHubbard(Hubbard): # ## IO # def __init__(self,nrows,ncols,u=0,t=1,nup=0,ndown=0, allow_fractions=False,**kwargs): """ Creates a kagome lattice and initialises things. nrows and ncols ca...
PypiClean
/AyiinXd-0.0.8-cp311-cp311-macosx_10_9_universal2.whl/fipper/node_modules/@types/node/v8.d.ts
declare module 'v8' { import { Readable } from 'node:stream'; interface HeapSpaceInfo { space_name: string; space_size: number; space_used_size: number; space_available_size: number; physical_space_size: number; } // ** Signifies if the --zap_code_space option is ...
PypiClean
/MetaStalk-2.2.1.tar.gz/MetaStalk-2.2.1/README.md
# MetaStalk [![GitHub](https://img.shields.io/github/license/Cyb3r-Jak3/MetaStalk?style=flat)](https://github.com/Cyb3r-Jak3/MetaStalk/blob/master/LICENSE) ![Gitlab pipeline status (branch)](https://img.shields.io/gitlab/pipeline/Cyb3r-Jak3/MetaStalk/master?label=Build&style=flat) ![PyPI - Python Version](https://img...
PypiClean
/CodeIntel-2.0.0b19-cp34-cp34m-macosx_10_12_x86_64.whl/codeintel/codeintel2/lib_srcs/node.js/0.8/zlib.js
var zlib = {}; /** * Returns a new Gzip object with an options. * @param options * @returns {zlib.Gzip} a new Gzip object with an options */ zlib.createGzip = function(options) {} /** * Returns a new Gunzip object with an options. * @param options * @returns {zlib.Gunzip} a new Gunzip object with an options *...
PypiClean
/ChadBot3-0.1-py3-none-any.whl/ChadBot/generation/rajat_work/qgen/generator/fpm/fpm.py
import itertools import string from tqdm import tqdm from ...util import nlp from .matcher import FuzzyMatcher from .pattern import pattern_specs from ..base import BaseGenerator # 5W1H WH = {'who', 'what', 'why', 'where', 'when', 'how'} # Coordinating conjunction FANBOYS = {'for', 'and', 'nor', 'but', 'or', 'yet',...
PypiClean
/BornAgain-21.0-cp310-cp310-macosx_13_0_arm64.whl/bornagain/lib/libBornAgainBase.py
from sys import version_info as _swig_python_version_info import _libBornAgainBase try: import builtins as __builtin__ except ImportError: import __builtin__ def _swig_repr(self): try: strthis = "proxy of " + self.this.__repr__() except __builtin__.Exception: strthis = "" return "...
PypiClean
/Electrum-CHI-3.3.8.tar.gz/Electrum-CHI-3.3.8/packages/chardet/chardistribution.py
from .euctwfreq import (EUCTW_CHAR_TO_FREQ_ORDER, EUCTW_TABLE_SIZE, EUCTW_TYPICAL_DISTRIBUTION_RATIO) from .euckrfreq import (EUCKR_CHAR_TO_FREQ_ORDER, EUCKR_TABLE_SIZE, EUCKR_TYPICAL_DISTRIBUTION_RATIO) from .gb2312freq import (GB2312_CHAR_TO_FREQ_ORDER, GB2312_TABLE_SI...
PypiClean
/Gammalearn-0.11.0.tar.gz/Gammalearn-0.11.0/gammalearn/data/example_settings/experiment_settings_file_spawn.py
import collections import os import importlib from pathlib import Path import math import numpy as np import torch from torch.optim import lr_scheduler from torchmetrics.classification import Accuracy, AUROC from pytorch_lightning.profiler import SimpleProfiler, AdvancedProfiler, PyTorchProfiler import gammalearn.cri...
PypiClean
/ANNOgesic-1.1.14.linux-x86_64.tar.gz/usr/local/lib/python3.10/dist-packages/annogesiclib/extract_psortb.py
import sys from annogesiclib.gff3 import Gff3Parser def import_psortb(seq_name, psortbs, local_name, local_score, type_, results): seq_datas = seq_name.split("__") seq_id = seq_datas[0] features = seq_datas[1].split("_") prot_id = "_".join(features[:-3]) if type_ == "multi": psortbs.append...
PypiClean
/GTW-1.2.6.tar.gz/GTW-1.2.6/__test__/Attr.py
from __future__ import division, print_function from __future__ import absolute_import, unicode_literals ### enforce import order import _GTW._OMP._Auth.import_Auth import _GTW._OMP._PAP.import_PAP import _GTW._OMP._EVT.import_EVT import _GTW._OMP._SWP.import_SWP import _GTW._OMP._SRM.import_SRM from _GTW.__te...
PypiClean
/EVE-SRP-0.12.11.tar.gz/EVE-SRP-0.12.11/src/evesrp/auth/models.py
from __future__ import absolute_import from base64 import urlsafe_b64encode from itertools import groupby import os import pickle from flask import url_for import six from six.moves import filter from sqlalchemy.ext.declarative import declared_attr from sqlalchemy.ext.associationproxy import association_proxy from sqla...
PypiClean
/MetaCalls-0.0.5-cp310-cp310-manylinux2014_x86_64.whl/metacalls/node_modules/node-fetch/README.md
node-fetch ========== [![npm version][npm-image]][npm-url] [![build status][travis-image]][travis-url] [![coverage status][codecov-image]][codecov-url] [![install size][install-size-image]][install-size-url] [![Discord][discord-image]][discord-url] A light-weight module that brings `window.fetch` to Node.js (We are ...
PypiClean
/CC-dbgen-0.2.0.tar.gz/CC-dbgen-0.2.0/dbgen/scripts/Pure/Graph/quickgraph.py
from typing import Tuple,List,Dict from gpaw import GPAW #type: ignore from gpaw.utilities import h2gpts #type: ignore from ase.io import read,write #type: ignore from ase import Atoms,Atom #type: ignore from ase.units import Bohr #type: ignore import os import tempfile from collections import defaultdict ...
PypiClean
/ApiamticPackage5-1.5.6-py3-none-any.whl/swaggerpetstore/models/pet.py
from swaggerpetstore.api_helper import APIHelper from swaggerpetstore.models.category import Category from swaggerpetstore.models.tag import Tag class Pet(object): """Implementation of the 'Pet' model. TODO: type model description here. Attributes: id (long|int): TODO: type description here. ...
PypiClean
/ECmean4-0.1.4.tar.gz/ECmean4-0.1.4/ecmean/libs/support.py
import os from glob import glob import logging import xarray as xr import xesmf as xe import numpy as np from ecmean.libs.ncfixers import xr_preproc from ecmean.libs.files import inifiles_priority from ecmean.libs.areas import area_cell loggy = logging.getLogger(__name__) # mask to be searched atm_mask_names = ['lsm'...
PypiClean
/CWR-API-0.0.40.tar.gz/CWR-API-0.0.40/cwr/parser/encoder/cwrjson.py
import json import sys from cwr.parser.encoder.dictionary import FileDictionaryEncoder from cwr.parser.encoder.common import Encoder """ Classes for encoding CWR classes into JSON dictionaries. It just consists of a single parser, the JSONEncoder, which delegates most of the work to an instance of the CWRDictionary...
PypiClean
/Netfoll_TL-2.0.1-py3-none-any.whl/netfoll_tl/client/messageparse.py
import itertools import re import typing from .. import helpers, utils from ..tl import types if typing.TYPE_CHECKING: from .telegramclient import TelegramClient class MessageParseMethods: # region Public properties @property def parse_mode(self: 'TelegramClient'): """ This propert...
PypiClean
/NudeNetClassifier-2.1.1.tar.gz/NudeNetClassifier-2.1.1/README.md
# NudeNet: Neural Nets for Nudity Classification, Detection and selective censoring [![DOI](https://zenodo.org/badge/173154449.svg)](https://zenodo.org/badge/latestdoi/173154449) ![Upload Python package](https://github.com/notAI-tech/NudeNet/actions/workflows/python-publish.yml/badge.svg) ## Fork differences: - Onl...
PypiClean
/DACBench-0.2.0.tar.gz/DACBench-0.2.0/dacbench/benchmarks/luby_benchmark.py
import csv import os import ConfigSpace as CS import ConfigSpace.hyperparameters as CSH import numpy as np from dacbench.abstract_benchmark import AbstractBenchmark, objdict from dacbench.envs import LubyEnv, luby_gen from dacbench.wrappers import RewardNoiseWrapper MAX_STEPS = 2**6 LUBY_SEQUENCE = np.log2([next(lub...
PypiClean
/AiBot.py-1.3.0-py3-none-any.whl/AiBot/_WinBot.py
import abc import socket import socketserver import subprocess import sys import threading import time import re from ast import literal_eval from typing import Optional, List, Tuple from loguru import logger from ._utils import _protect, Point, _Region, _Algorithm, _SubColors from urllib import request, parse import...
PypiClean
/Mezzanine-6.0.0.tar.gz/Mezzanine-6.0.0/README.rst
.. image:: https://img.shields.io/pypi/v/mezzanine.svg :target: https://pypi.org/project/mezzanine/ .. image:: https://img.shields.io/pypi/pyversions/mezzanine.svg :target: https://pypi.org/project/mezzanine/ .. image:: https://img.shields.io/pypi/djversions/mezzanine.svg :target: https://pypi.org/project/mezz...
PypiClean
/ClueDojo-1.4.3-1.tar.gz/ClueDojo-1.4.3-1/src/cluedojo/static/dijit/nls/dijit-all_ca.js
dojo.provide("dijit.nls.dijit-all_ca");dojo.provide("dojo.nls.colors");dojo.nls.colors._built=true;dojo.provide("dojo.nls.colors.ca");dojo.nls.colors.ca={"lightsteelblue":"blau acer clar","orangered":"taronja vermellós","midnightblue":"blau mitjanit","cadetblue":"blau marí","seashell":"petxina marina","slategrey":"gris...
PypiClean
/Flask-Manifest-0.2.0.tar.gz/Flask-Manifest-0.2.0/flask_manifest.py
import os from flask import (json, send_from_directory, current_app, url_for as flask_url_for) __all__ = ['Manifest'] CONFIG_PREFIX = 'MANIFEST_' DEFAULT_CONFIG = { 'MANIFEST_DEBUG': False, 'MANIFEST_ROOT': 'dist', 'MANIFEST_SERVE_ROOT': True, 'MANIFEST_FILENAME': 'rev-manifest.jso...
PypiClean
/Flask_AdminLTE3-1.0.9-py3-none-any.whl/flask_adminlte3/static/plugins/codemirror/mode/fortran/fortran.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
/DXC-RL-1.0.3.5.tar.gz/DXC-RL-1.0.3.5/dxc/ai/publish_microservice/publish_microservice.py
import Algorithmia from Algorithmia.errors import AlgorithmException import shutil #serializing models import urllib.parse #input data from git import Git, Repo, remote import os import pickle from IPython.display import YouTubeVideo from IPython.core.magic import register_line_cell_magic import urllib.request, json fr...
PypiClean
/NagAconda-0.2.1.tar.gz/NagAconda-0.2.1/docs/_build/html/_static/doctools.js
* select a different prefix for underscore */ $u = _.noConflict(); /** * make the code below compatible with browsers without * an installed firebug like debugger if (!window.console || !console.firebug) { var names = ["log", "debug", "info", "warn", "error", "assert", "dir", "dirxml", "group", "groupEnd", "...
PypiClean
/GlobalPayments.Api-1.0.9.tar.gz/GlobalPayments.Api-1.0.9/LICENSE.md
The GNU General Public License, Version 2, June 1991 (GPLv2) ============================================================ > Copyright (C) 1989, 1991 Free Software Foundation, Inc. > 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA Everyone is permitted to copy and distribute verbatim copies of this licens...
PypiClean
/NESTML-5.3.0-py3-none-any.whl/NESTML-5.3.0.data/data/doc/models_library/iaf_cond_beta.rst
iaf_cond_beta ############# iaf_cond_beta - Simple conductance based leaky integrate-and-fire neuron model Description +++++++++++ iaf_cond_beta is an implementation of a spiking neuron using IAF dynamics with conductance-based synapses. Incoming spike events induce a post-synaptic change of conductance modelled by...
PypiClean
/FreePyBX-1.0-RC1.tar.gz/FreePyBX-1.0-RC1/freepybx/public/js/dojox/data/AtomReadStore.js.uncompressed.js
define("dojox/data/AtomReadStore", ["dojo", "dojox", "dojo/data/util/filter", "dojo/data/util/simpleFetch", "dojo/date/stamp"], function(dojo, dojox) { dojo.experimental("dojox.data.AtomReadStore"); dojo.declare("dojox.data.AtomReadStore", null, { // summary: // A read only data store for Atom XML based services or...
PypiClean
/CMinx-1.1.9.tar.gz/CMinx-1.1.9/docs/source/documenting/types_of_comments.rst
.. Copyright 2021 CMakePP .. .. 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
/AICloudSDK-1.0.7.tar.gz/AICloudSDK-1.0.7/aicloud/cloudapi.py
from aicloud.rest import get, post, put import json import os class AIPlatform(object): model_upload_path = '/model/file' model_download_path = '/model/download/modelfile' create_training_task = '/training/training/form' create_training_duration = '/training/finish/form/' def __init__(self, ba...
PypiClean
/Bluebook-0.0.1.tar.gz/Bluebook-0.0.1/pylot/component/static/pylot/vendor/mdeditor/bower_components/codemirror/CONTRIBUTING.md
# How to contribute - [Getting help](#getting-help-) - [Submitting bug reports](#submitting-bug-reports-) - [Contributing code](#contributing-code-) ## Getting help [^](#how-to-contribute) Community discussion, questions, and informal bug reporting is done on the [CodeMirror Google group](http://groups.google.com/gr...
PypiClean
/MetaCalls-0.0.5-cp310-cp310-manylinux2014_x86_64.whl/metacalls/node_modules/@types/node/repl.d.ts
declare module 'repl' { import { Interface, Completer, AsyncCompleter } from 'node:readline'; import { Context } from 'node:vm'; import { InspectOptions } from 'node:util'; interface ReplOptions { /** * The input prompt to display. * @default "> " */ prompt?: s...
PypiClean
/Nuitka_fixed-1.1.2-cp310-cp310-win_amd64.whl/nuitka/build/inline_copy/lib/scons-2.3.2/SCons/Tool/rmic.py
__revision__ = "src/engine/SCons/Tool/rmic.py 2014/07/05 09:42:21 garyo" import os.path import SCons.Action import SCons.Builder import SCons.Node.FS import SCons.Util def emit_rmic_classes(target, source, env): """Create and return lists of Java RMI stub and skeleton class files to be created from a set o...
PypiClean
/EnergyCapSdk-8.2304.4743.tar.gz/EnergyCapSdk-8.2304.4743/energycap/sdk/models/bill_account_meter_statistics_response.py
from msrest.serialization import Model class BillAccountMeterStatisticsResponse(Model): """BillAccountMeterStatisticsResponse. :param use_per_day: :type use_per_day: ~energycap.sdk.models.StatisticsResponse :param cost_per_day: :type cost_per_day: ~energycap.sdk.models.StatisticsResponse :pa...
PypiClean
/Nuitka-1.8.tar.gz/Nuitka-1.8/nuitka/utils/Execution.py
import os from contextlib import contextmanager from nuitka.__past__ import subprocess from nuitka.Tracing import general from .Download import getCachedDownloadedMinGW64 from .FileOperations import getExternalUsePath from .Utils import getArchitecture, isWin32OrPosixWindows, isWin32Windows # Cache, so we avoid repe...
PypiClean
/GenBankQC-0.2a0.tar.gz/GenBankQC-0.2a0/genbankqc/Species.py
import os import re from subprocess import DEVNULL, Popen import pandas as pd from ete3 import Tree class Species: """Represents a collection of genomes in `path` :Parameters: path : str The path to the directory of related genomes you wish to analyze. """ def __init__(self, pat...
PypiClean
/AlignQC-2.0.5.tar.gz/AlignQC-2.0.5/scripts/alignqc_to_novel_transcriptome.py
import argparse, sys, os, gzip, inspect from shutil import rmtree, copy from multiprocessing import cpu_count from tempfile import mkdtemp, gettempdir from subprocess import PIPE, Popen from Bio.Format.GPD import GPDStream from Bio.Stream import LocusStream import classify_reads #bring in the folder to the path for ...
PypiClean
/Flask-Scaffold-0.5.1.tar.gz/Flask-Scaffold-0.5.1/app/templates/static/node_modules/angular-ui-router/CHANGELOG.md
<a name="0.2.14"></a> ### 0.2.14 (2015-04-23) #### Bug Fixes * **$StateRefDirective:** resolve missing support for svg anchor elements #1667 ([0149a7bb](https://github.com/angular-ui/ui-router/commit/0149a7bb38b7af99388a1ad7cc9909a7b7c4439d)) * **$urlMatcherFactory:** * regex params should respect case-sensitivity...
PypiClean
/Nuitka_fixed-1.1.2-cp310-cp310-win_amd64.whl/nuitka/build/inline_copy/lib/scons-3.1.2/SCons/Debug.py
__revision__ = "src/engine/SCons/Debug.py bee7caf9defd6e108fc2998a2520ddb36a967691 2019-12-17 02:07:09 bdeegan" import os import sys import time import weakref import inspect # Global variable that gets set to 'True' by the Main script, # when the creation of class instances should get tracked. track_instances = Fal...
PypiClean
/AsynQueue-0.9.8.tar.gz/AsynQueue-0.9.8/asynqueue/interfaces.py
from zope.interface import invariant, Interface, Attribute from twisted.internet.interfaces import IConsumer from asynqueue import errors class IWorker(Interface): """ Provided by worker objects that can have tasks assigned to them for processing. All worker objects are considered qualified to run t...
PypiClean
/NeuroRuler-1.7.tar.gz/NeuroRuler-1.7/src/GUI/main.py
import importlib import sys import os import webbrowser from pathlib import Path from typing import Union import SimpleITK as sitk import numpy as np from PyQt6 import QtGui, QtCore from PyQt6.QtGui import QPixmap, QAction, QImage, QIcon, QResizeEvent from PyQt6.QtWidgets import ( QApplication, QDialog, Q...
PypiClean
/Flask-HAL-1.0.4.tar.gz/Flask-HAL-1.0.4/flask_hal/__init__.py
# Third Party Libs from flask import Response # First Party Libs from flask_hal.document import Document class HAL(object): """Enables Flask-HAL integration into Flask Applications, either by the Application Factory Pattern or directly into an already created Flask Application instance. This will se...
PypiClean
/BittyTax-0.5.1.tar.gz/BittyTax-0.5.1/src/bittytax/conv/output_excel.py
import platform import re import sys import xlsxwriter from colorama import Fore from xlsxwriter.utility import xl_rowcol_to_cell from ..config import config from ..version import __version__ from .out_record import TransactionOutRecord from .output_csv import OutputBase if platform.system() == "Darwin": # Defa...
PypiClean
/AyiinXd-0.0.8-cp311-cp311-macosx_10_9_universal2.whl/fipper/xdcalls/groups/group_call_participant.py
from ..py_object import PyObject class GroupCallParticipant(PyObject): """Info about a group call participant Attributes: user_id (``int``): Unique identifier of participant. muted (``bool``): Whether the participant is muted muted_by_admin (``bool``): ...
PypiClean
/HEBO-0.3.2-py3-none-any.whl/hebo/optimizers/bo.py
# This program is free software; you can redistribute it and/or modify it under # the terms of the MIT license. # This program is distributed in the hope that it will be useful, but WITHOUT ANY # WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. See the MIT License ...
PypiClean
/FastCNN2-1.23.425.1716.tar.gz/FastCNN2-1.23.425.1716/FastCNN/api/camera_.py
from flask_restful import Resource from flask import request #from FastCNN.prx.ValidProxy2 import insValider from FastCNN.prx.PathProxy import PathProxy from FastCNN.prx.CameraProxy import CV2Camera cam0 = CV2Camera() class FastCNNApi(Resource): def __init__(self): pass def getStatus(): rtn = ...
PypiClean
/MJOLNIR-1.3.1.tar.gz/MJOLNIR-1.3.1/docs/InDepthDocumentation/VoronoiTessellation.rst
Voronoi tessellation and plotting functionality ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ With all of the effort but into building a instrument acquiring as much data and data points as possible, it is sensible to have a plotting algorithm that then shows all of these. This is exactly what the two methods plo...
PypiClean
/HOPP-0.0.5-py3-none-any.whl/tools/optimization/problem_parametrization.py
from abc import abstractmethod from typing import ( Tuple, Type, ) class ProblemParametrization: """ Interface between optimization drivers and the simulations being optimized that uses a parametrization of the original problem. """ def __init__(self, inner_proble...
PypiClean
/GoTermAnalysis-0.2.6.tar.gz/GoTermAnalysis-0.2.6/README.txt
This package is for gene ontology analysis. It has 2 main functions: 1. It receives a gene list, and give back the enrichment and merge result. 2. It can update to the newest gene ontology database. First import this package: from gotermanalysis import * 1. ############################Update########################...
PypiClean
/Argonaut-0.3.4.tar.gz/Argonaut-0.3.4/argonaut/public/ckeditor/lang/da.js
/* Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.lang.da={dir:'ltr',editorTitle:'Rich text editor, %1, press ALT 0 for help.',toolbar:'Toolbar',editor:'Rich Text Editor',source:'Kilde',newPage:'Ny side',save:'Gem'...
PypiClean
/Apiamtic_python-1.6.9-py3-none-any.whl/verizon5gmecvnspapi/models/__init__.py
__all__ = [ 'tag', 'service_tag', 'service_onboarding_additional_params', 'service_onboarding_helm_yaml_git_tag', 'workflow', 'service_swagger_spec_id', 'services', 'compatibility', 'resource_base', 'service_error', 'category', 'repository_credential', 'azure_csp_prof...
PypiClean
/OBP_reliability_pillar_3-0.0.13.tar.gz/OBP_reliability_pillar_3-0.0.13/OBP_reliability_pillar_4/elastic_beanstalk/enhanced_health_reporting_enabled.py
import botocore import logging from botocore.exceptions import ClientError logging.basicConfig(level=logging.INFO) logger = logging.getLogger() def enhanced_health_reporting_enabled(self) -> dict: """ :param self: :return: """ logger.info(" ---Inside elastic_beanstalk :: enhanced_health_reportin...
PypiClean
/AX3%20OTP%20Auth-1.0.5.tar.gz/AX3 OTP Auth-1.0.5/ax3_OTP_Auth/hotp.py
from secrets import token_urlsafe from django.core.cache import cache from django.utils.module_loading import import_string import boto3 import pyotp from . import settings class HOTP: def __init__(self, unique_id: str, digits: int = 6): self._unique_id = unique_id self._digits = digits ...
PypiClean
/IDS_XS_TOOLS_UiS-0.3-py3-none-any.whl/ids_xs_tools/pyueye_example_camera.py
# ------------------------------------------------------------------------------ # PyuEye example - camera modul # # Copyright (c) 2017 by IDS Imaging Development Systems GmbH. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted pr...
PypiClean
/Hikka_TL-1.24.14-py3-none-any.whl/telethon/network/authenticator.py
import os import time from hashlib import sha1 from ..tl.types import ( ResPQ, PQInnerData, ServerDHParamsFail, ServerDHParamsOk, ServerDHInnerData, ClientDHInnerData, DhGenOk, DhGenRetry, DhGenFail, ) from .. import helpers from ..crypto import AES, AuthKey, Factorization, rsa from...
PypiClean
/Hikka_TL-1.24.14-py3-none-any.whl/telethon/tl/custom/adminlogevent.py
from ...tl import types from ...utils import get_input_peer class AdminLogEvent: """ Represents a more friendly interface for admin log events. Members: original (:tl:`ChannelAdminLogEvent`): The original :tl:`ChannelAdminLogEvent`. entities (`dict`): A dictionary...
PypiClean
/GeoNode-3.2.0-py3-none-any.whl/geonode/maps/models.py
import logging import uuid from django.conf import settings from django.db import models from django.db.models import signals import json from django.contrib.contenttypes.models import ContentType from django.utils.translation import ugettext_lazy as _ from django.core.exceptions import ObjectDoesNotExist from django...
PypiClean
/Hyperion-0.9.10.tar.gz/Hyperion-0.9.10/docs/setup/setup_grid.rst
.. _grid: Coordinate grids and physical quantities ======================================== In general, coordinate grids and density grids are set using methods of the form:: from hyperion.model import Model m = Model() m.set_<grid_type>_grid(...) m.add_density_grid(density, dust) where ``<grid_type...
PypiClean
/233_misc-0.0.3.tar.gz/233_misc-0.0.3/LICENSE.md
MIT License Copyright (c) 2022 [The_Robin_Hood] 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, ...
PypiClean