id
stringlengths
1
265
text
stringlengths
6
5.19M
dataset_id
stringclasses
7 values
/Kern-Rowduction-0.0.4.tar.gz/Kern-Rowduction-0.0.4/README.md
<div align="center"> <img src="https://avatars.githubusercontent.com/u/93623406?s=400&u=5ef153fb995fc34a84bc4a66fbc504a4b2d66c10&v=4"><br> </div> # Kern-Rowduction: undersampling by graph kernelization [![PyPI Latest Release](https://img.shields.io/pypi/v/kern-rowduction.svg)](https://pypi.org/project/kern-rowducti...
PypiClean
/Cibyl-1.0.0.0rc1.tar.gz/Cibyl-1.0.0.0rc1/cibyl/cli/parser.py
import argparse import logging from typing import Callable, List, Optional, Set import networkx as nx from cibyl.cli.argument import Argument LOG = logging.getLogger(__name__) class CustomAction(argparse.Action): """Custom argparse.Action that allows in addition, to specify whether an argument data is popu...
PypiClean
/ConsenSys-Utils-0.2.0b1.tar.gz/ConsenSys-Utils-0.2.0b1/CHANGES.rst
Changelog ========= Here you can see the full list of changes between each releases of ConsenSys-Utils. Version 0.2.0b1 --------------- Released on August 6th 2018 Feat - Config: schema for web3 provider - Web3: implement create_provider function - Flask: implement Web3 extension - Flask: implement Flask-Iterable ...
PypiClean
/Findex_GUI-0.2.18-py3-none-any.whl/findex_gui/bin/misc.py
import os import sys import hashlib import shutil import logging import pkg_resources import findex_gui from findex_common.exceptions import StartupError log = logging.getLogger(__name__) _root = None _raw = None try: import pwd HAVE_PWD = True except ImportError: HAVE_PWD = False version = pkg_resou...
PypiClean
/MoNeT_MGDrivE-0.9.0.2-py3-none-any.whl/MoNeT_MGDrivE/spatialVideos.py
import os import csv import glob import matplotlib.pyplot as plt from operator import itemgetter import MoNeT_MGDrivE.plots as plots import MoNeT_MGDrivE.spatialVideosLegacy as video from mpl_toolkits.basemap import Basemap PAD = .1 COLORS = [ plots.rescaleRGBA((47, 28, 191, 255/2.5)), # 0: Faded navy blue ...
PypiClean
/GeoNode-3.2.0-py3-none-any.whl/geonode/static/geonode/js/ol-2.13/lib/OpenLayers/Format/OWSContext/v0_3_1.js
* @requires OpenLayers/Format/XML.js * @requires OpenLayers/Format/KML.js * @requires OpenLayers/Format/GML.js * @requires OpenLayers/Format/GML/v2.js * @requires OpenLayers/Format/SLD/v1_0_0.js * @requires OpenLayers/Format/OWSContext.js * @requires OpenLayers/Format/OWSCommon/v1_0_0.js */ /** * Class: OpenL...
PypiClean
/CareHQ-0.0.5.tar.gz/CareHQ-0.0.5/carehq/exceptions.py
import copy import inspect __all__ = [ 'APIException', 'Forbidden', 'InvalidRequest', 'NotFound', 'RateLimitExceeded', 'Unauthorized' ] class APIException(Exception): """ An error occurred while processing an API the request. """ def __init__(self, status_code, hint=None, arg...
PypiClean
/GRID_LRT-1.0.7.tar.gz/GRID_LRT-1.0.7/README.md
[![Documentation Status](https://readthedocs.org/projects/grid-lrt/badge/?version=latest)](http://grid-lrt.readthedocs.io/en/latest/?badge=latest) [![Build Status](https://travis-ci.org/apmechev/GRID_LRT.svg?branch=master)](https://travis-ci.org/apmechev/GRID_LRT) [![License: GPL v3](https://img.shields.io/badge/Licens...
PypiClean
/CLASHChimeras-0.2.tar.gz/CLASHChimeras-0.2/clashchimeras/find.py
import argparse import textwrap import sys from colors import yellow import clashchimeras.log import clashchimeras.methods from clashchimeras.parsers import GFF, GTF, Output, SAM from clashchimeras.initialize import Arguments class CustomFormatter(argparse.ArgumentDefaultsHelpFormatter, argpar...
PypiClean
/FastMSA-0.3.3.tar.gz/FastMSA-0.3.3/fastmsa/core/_models.py
from __future__ import annotations import abc import asyncio from contextlib import AbstractContextManager, ContextDecorator from dataclasses import dataclass from inspect import Parameter, signature from pathlib import Path from typing import ( Any, Callable, Generator, Generic, List, Literal,...
PypiClean
/Clorm-1.4.1-py3-none-any.whl/clorm/orm/_typing.py
import sys from typing import Any, TypeVar, Type, Optional, cast, Tuple, Union from clingo import Symbol from .noclingo import NoSymbol _T0 = TypeVar("_T0", bound=Any) _T1 = TypeVar("_T1", bound=Any) _T2 = TypeVar("_T2", bound=Any) _T3 = TypeVar("_T3", bound=Any) _T4 = TypeVar("_T4", bound=Any) AnySymbol = Union[Sym...
PypiClean
/Clusters_Features-1.0.3-py3-none-any.whl/ClustersFeatures/src/_graph.py
from ClustersFeatures import settings if settings.Activated_Graph: import numpy as np import pandas as pd import plotly.express as px import plotly.graph_objects as go class __Graph(object): def graph_boxplots_distances_to_centroid(self, Cluster): """Shows a box plot of the dis...
PypiClean
/AyiinXd-0.0.8-cp311-cp311-macosx_10_9_universal2.whl/fipper/node_modules/fs-minipass/README.md
# fs-minipass Filesystem streams based on [minipass](http://npm.im/minipass). 4 classes are exported: - ReadStream - ReadStreamSync - WriteStream - WriteStreamSync When using `ReadStreamSync`, all of the data is made available immediately upon consuming the stream. Nothing is buffered in memory when the stream is ...
PypiClean
/DEWAKSS-1.0.1.tar.gz/DEWAKSS-1.0.1/dewakss/denoise.py
import scanpy as _sc import scipy as _sp import numpy as _np import pandas as _pd from anndata import AnnData as _AnnData from scipy.sparse import issparse as _issparse, csr as _csr import scipy.sparse as _scs # from sklearn.utils import check_X_y as _check_X_y, check_array as _check_array # from sklearn.utils.validati...
PypiClean
/DjangoDjangoAppCenter-0.0.11-py3-none-any.whl/DjangoAppCenter/simpleui/static/admin/js/inlines.js
* Django admin inlines * * Based on jQuery Formset 1.1 * @author Stanislaus Madueke (stan DOT madueke AT gmail DOT com) * @requires jQuery 1.2.6 or later * * Copyright (c) 2009, Stanislaus Madueke * All rights reserved. * * Spiced up with Code from Zain Memon's GSoC project 2009 * and modified for Django by ...
PypiClean
/OASYS1-1.2.130.tar.gz/OASYS1-1.2.130/oasys/widgets/tools/ow_remote_github_downloader.py
from PyQt5.QtWidgets import QApplication from PyQt5 import QtGui, QtWidgets from PyQt5.QtWidgets import QFileDialog, QMessageBox from PyQt5.QtCore import QRect from orangewidget import gui,widget from orangewidget.settings import Setting from oasys.widgets import gui as oasysgui, congruence from oasys.widgets import w...
PypiClean
/ETLT-0.9.6.tar.gz/ETLT-0.9.6/etlt/helper/Type2Helper.py
import copy import datetime from etlt.helper.Allen import Allen class Type2Helper: """ A helper class for reference data with date intervals. """ # ------------------------------------------------------------------------------------------------------------------ def __init__(self, key_start_date...
PypiClean
/Nuitka-1.8.tar.gz/Nuitka-1.8/nuitka/optimizations/Optimization.py
import inspect from nuitka import ModuleRegistry, Options, Variables from nuitka.importing.Importing import addExtraSysPaths from nuitka.importing.Recursion import considerUsedModules from nuitka.plugins.Plugins import Plugins from nuitka.Progress import ( closeProgressBar, reportProgressBar, setupProgress...
PypiClean
/CodeIntel-2.0.0b19-cp34-cp34m-macosx_10_12_x86_64.whl/codeintel/test2/scan_inputs/javascript/yui.js
YAHOO = {}; YAHOO.widget = {}; /**************************/ /* Test YAHOO.extend() */ /**************************/ /** * The default node presentation. The first parameter should be * either a string that will be used as the node's label, or an object * that has a string propery called label....
PypiClean
/Djblets-3.3.tar.gz/Djblets-3.3/djblets/webapi/resources/user.py
from django.contrib.auth.models import User from djblets.util.decorators import augment_method_from from djblets.webapi.fields import IntFieldType, StringFieldType from djblets.webapi.resources.base import WebAPIResource from djblets.webapi.resources.registry import register_resource_for_model class UserResource(We...
PypiClean
/Bis-Miner-3.11.1.tar.gz/Bis-Miner-3.11.0/Orange/widgets/settings.py
import copy import itertools import os import logging import pickle import pprint import time import warnings from operator import itemgetter from Orange.data import Domain, Variable from Orange.misc.environ import widget_settings_dir from Orange.util import OrangeDeprecationWarning from Orange.widgets.utils import va...
PypiClean
/CDS-1.0.1.tar.gz/CDS-1.0.1/cds/modules/theme/bundles.py
from __future__ import absolute_import, print_function from flask_assets import Bundle from invenio_assets import NpmBundle css = Bundle( Bundle( 'node_modules/ng-dialog/css/ngDialog.css', 'node_modules/ng-dialog/css/ngDialog-theme-default.css', 'node_modules/ngmodal/dist/ng-modal.css', ...
PypiClean
/AyiinXd-0.0.8-cp311-cp311-macosx_10_9_universal2.whl/fipper/node_modules/wide-align/README.md
wide-align ---------- A wide-character aware text alignment function for use in terminals / on the console. ### Usage ``` var align = require('wide-align') // Note that if you view this on a unicode console, all of the slashes are // aligned. This is because on a console, all narrow characters are // an en wide and...
PypiClean
/LayersSustainabilityAnalysis-1.0.4-py3-none-any.whl/LayerSustainabilityAnalysis/layersustainabilityanalysis.py
import os import random import time import numpy as np import matplotlib.pyplot as plt import torch import torch.nn as nn import torch.nn.functional as F class LayerSustainabilityAnalysis: def __init__(self,pretrained_model): self.pretrained_model = pretrained_model self.pretrained_model.eval() ...
PypiClean
/IOT3ApiClient-1.0.0.tar.gz/IOT3ApiClient-1.0.0/urllib3/contrib/_securetransport/low_level.py
import base64 import ctypes import itertools import os import re import ssl import struct import tempfile from .bindings import CFConst, CoreFoundation, Security # This regular expression is used to grab PEM data out of a PEM bundle. _PEM_CERTS_RE = re.compile( b"-----BEGIN CERTIFICATE-----\n(.*?)\n-----END CERTI...
PypiClean
/Django_patch-2.2.19-py3-none-any.whl/django/contrib/admin/static/admin/js/vendor/select2/select2.full.js
(function (factory) { if (typeof define === 'function' && define.amd) { // AMD. Register as an anonymous module. define(['jquery'], factory); } else if (typeof exports === 'object') { // Node/CommonJS factory(require('jquery')); } else { // Browser globals factory(jQuery); } }(function (...
PypiClean
/Av1an_minimal-5.5.4-py3-none-any.whl/av1an/scenedetection/aom_kf.py
import os import re import struct import subprocess from collections import deque from pathlib import Path from subprocess import PIPE, STDOUT import cv2 try: from tqdm import tqdm except ImportError: tqdm = None from av1an.commandtypes import CommandPair from av1an.logger import log from av1an.utils import t...
PypiClean
/Habakkuk-0.1.0.tar.gz/Habakkuk-0.1.0/src/habakkuk/dag_node.py
from habakkuk.config_ivy_bridge import OPERATORS, FORTRAN_INTRINSICS # Valid types for a node in the DAG VALID_NODE_TYPES = OPERATORS.keys() + ["constant", "array_ref", "call"] INDENT_STR = " " # At what depth to abort attempting to recursively walk down a graph # (hitting this probably indicates a bug!) MAX_RECURSI...
PypiClean
/MFAProblem-1.0.1b0.tar.gz/MFAProblem-1.0.1b0/README.rst
MFA Problem *********** Prerequisite ------------ Git and Python installed. Preferably installed with conda and inside a virtual environment. Installation ------------ In a shell, in a working folder type: * git clone https://gitlab.com/libeigen/eigen.git * On linux or MAC: export EIGEN_INCLUDE="Eigen Path" * On win...
PypiClean
/FlaskBB-2.0.2.tar.gz/FlaskBB-2.0.2/flaskbb/utils/requirements.py
import logging from flask_allows import And, Or, Requirement from flaskbb.exceptions import FlaskBBError from flaskbb.forum.locals import current_forum, current_post, current_topic from flaskbb.forum.models import Forum, Post, Topic logger = logging.getLogger(__name__) class Has(Requirement): def __init__(self...
PypiClean
/Electrum-CHI-3.3.8.tar.gz/Electrum-CHI-3.3.8/electrum_chi/electrum/null_impl/maybe_null_wallet/pem.py
# This module uses code from TLSLlite # TLSLite Author: Trevor Perrin) import binascii from .x509 import ASN1_Node, bytestr_to_int, decode_OID def a2b_base64(s): try: b = bytearray(binascii.a2b_base64(s)) except Exception as e: raise SyntaxError("base64 error: %s" % e) return b def b...
PypiClean
/Muntjac-1.1.2.tar.gz/Muntjac-1.1.2/muntjac/demo/sampler/features/upload/UploadWithProgressMonitoringExample.py
import time from StringIO import StringIO from muntjac.api import \ (VerticalLayout, Label, ProgressIndicator, Upload, CheckBox, Button, Panel, FormLayout, HorizontalLayout) from muntjac.ui import button, upload class UploadWithProgressMonitoringExample(VerticalLayout): def __init__(self): su...
PypiClean
/Flask-MDEditor-0.1.4.tar.gz/Flask-MDEditor-0.1.4/flask_mdeditor/static/mdeditor/js/lib/codemirror/mode/vbscript/vbscript.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 st...
PypiClean
/cim-14.12a1.tar.gz/cim-14.12a1/CDPSM/IEC61968/WiresExt.py
#------------------------------------------------------------------------------ # Imports: #------------------------------------------------------------------------------ from CDPSM.IEC61970.Core import ConductingEquipment from CDPSM.IEC61970.Wires import ACLineSegment from CDPSM.IEC61970.Core import IdentifiedObject...
PypiClean
/BEAT_TEST-0.13.1.tar.gz/BEAT_TEST-0.13.1/econml/causal_forest.py
from .utilities import LassoCVWrapper, deprecated from sklearn.linear_model import LogisticRegressionCV from .dml import CausalForestDML @deprecated("The CausalForest class has been deprecated by the econml.dml.CausalForestDML; " "an upcoming release will remove support for the old class") def CausalFore...
PypiClean
/LinOTP-2.11.1.tar.gz/LinOTP-2.11.1/linotp/lib/app_globals.py
"""The application's Globals object""" import threading import copy import logging from linotp.lib.security.provider import SecurityProvider log = logging.getLogger(__name__) class Globals(object): """Globals acts as a container for objects available throughout the life of the application """ de...
PypiClean
/OSF_EIMTC-0.1.46.tar.gz/OSF_EIMTC-0.1.46/src/EIMTC/plugins/protocol_header_fields_extended.py
from nfstream import NFStreamer, NFPlugin import numpy as np from scapy.all import IP, TCP class ProtocolHeaderFields_Extended(NFPlugin): ''' ProtocolHeaderFields_Extended | Extracts 6 features for `n_packets` packets. Packet direction, payload size, delta time , TCP window size if TCP, value is set to zer...
PypiClean
/Lantz-0.3.zip/Lantz-0.3/docs/community.rst
.. _community: ========= Community ========= The official **mailing list**, hosted in GlugCEN_, is *lantz@glugcen.dc.uba.ar* and is used for bug reports and general discussions. You can subscribe in `GlugCEN lantz`_. There is an additional mailing list in Spanish, *lantz-ar@glugcen.dc.uba.ar*, mostly for local activ...
PypiClean
/Avalara.SDK-2.4.29.tar.gz/Avalara.SDK-2.4.29/Avalara/SDK/rest.py
import io import json import logging import re import ssl from urllib.parse import urlencode from urllib.parse import urlparse from urllib.request import proxy_bypass_environment import urllib3 import ipaddress from Avalara.SDK.exceptions import ApiException, UnauthorizedException, ForbiddenException, NotFoundExceptio...
PypiClean
/CmonCrawl-1.0.3.tar.gz/CmonCrawl-1.0.3/cmoncrawl/integrations/download.py
from datetime import datetime from enum import Enum from pathlib import Path from typing import Any, List from cmoncrawl.aggregator.index_query import IndexAggregator from cmoncrawl.common.types import MatchType from cmoncrawl.processor.pipeline.downloader import AsyncDownloader from cmoncrawl.processor.pipeline.pipeli...
PypiClean
/Hillup-0.8.1.tar.gz/Hillup-0.8.1/hillup-seed.py
""" """ from sys import path from os.path import exists from optparse import OptionParser from TileStache import getTile from TileStache.Geography import SphericalMercator from ModestMaps.Core import Coordinate from ModestMaps.Geo import Location from Hillup.data import SeedingLayer parser = OptionParser(usage="""%...
PypiClean
/IsPycharmRun-1.0.tar.gz/IsPycharmRun-1.0/poco/sdk/DefaultMatcher.py
import re from .exceptions import NoSuchComparatorException __author__ = 'lxn3032' __all__ = ['IMatcher', 'DefaultMatcher', 'EqualizationComparator', 'RegexpComparator'] class IMatcher(object): def match(self, cond, node): """ Test whether or not the node matches the given condition. Ar...
PypiClean
/Adeepspeed-0.9.2.tar.gz/Adeepspeed-0.9.2/deepspeed/elasticity/constants.py
# DeepSpeed Team ######################################### # Elasticity ######################################### ''' Elasticity Utility in DeepSpeed can be used to create highly elastic jobs compatible with a large number of GPUs. For elastic jobs, DeepSpeed will provide a batch size that can support a large number ...
PypiClean
/Chrysalio-1.0.tar.gz/Chrysalio-1.0/chrysalio/scripts/cioupdate.py
"""Console script to backup and update Chrysalio sites.""" from sys import executable from logging import getLogger from os import chown, makedirs, setgid, setuid, environ from os.path import join, exists, dirname, expanduser, abspath, normpath from os.path import relpath from argparse import REMAINDER, ArgumentParser...
PypiClean
/CombiVEP-0.1.2.tar.gz/CombiVEP-0.1.2/combivep/preproc/reader.py
import pysam import combivep.settings as combivep_settings from combivep.template import CombiVEPBase class UcscReader(CombiVEPBase): """to read UCSC parsed file in tabix format""" def __init__(self): CombiVEPBase.__init__(self) def read(self, tabix_file): self.db_file_name = tabix_file ...
PypiClean
/GailBot_Testing_Suite-0.1a8-py3-none-any.whl/gailbot/core/utils/download.py
import shutil from typing import List from tqdm.auto import tqdm import requests from zipfile import ZipFile import os import socket from .logger import makelogger logger = makelogger("download") def download_from_urls( urls: List[str], download_dir: str, unzip: bool = True, chunkSize: int = 8192 ) -> List[str]...
PypiClean
/Beeswarm-0.7.18.tar.gz/Beeswarm-0.7.18/beeswarm/drones/client/baits/ssh.py
# 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 # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along...
PypiClean
/MySQL-python-glb-1.2.6.tar.gz/MySQL-python-glb-1.2.6/doc/MySQLdb.rst
MySQLdb Package =============== :mod:`MySQLdb` Package ---------------------- .. automodule:: MySQLdb.__init__ :members: :undoc-members: :show-inheritance: :mod:`connections` Module ------------------------- .. automodule:: MySQLdb.connections :members: Connection :undoc-members: :show-inher...
PypiClean
/NeuroTools-0.3.1.tar.gz/NeuroTools-0.3.1/doc/guidelines.rst
Developer Guidelines ==================== Coding Style ------------ - Please read "The Python Coding Style Guidelines" in `PEP-8 <http://www.python.org/dev/peps/pep-0008/>`_ and follow them to a reasonable degree. - Perhaps use a tool like pylint to help you in improving your coding style. Dependency Chec...
PypiClean
/DjangoKit-0.13.tar.gz/DjangoKit-0.13/djangokit/utils/version.py
def get_version(version, repo_dir=None, as_semver=False): """ Returns a "PEP 386-compliant" or "Semantic Versioning 2.0.0" version number from VERSION. """ version = get_complete_version(version) # Now build the two parts of the "PEP 386-compliant" version number: # major = "X.Y[.Z]"" ...
PypiClean
/Mathics_Django-6.0.0-py3-none-any.whl/mathics_django/web/media/js/mathjax/jax/output/SVG/fonts/Asana-Math/Arrows/Regular/Main.js
MathJax.OutputJax.SVG.FONTDATA.FONTS.AsanaMathJax_Arrows={directory:"Arrows/Regular",family:"AsanaMathJax_Arrows",id:"ASANAMATHARROWS",32:[0,0,249,0,0,""],8604:[486,-55,1061,62,1062,"62 272l206 -217l33 34l-125 154h23c106 0 187 -120 313 -120c172 0 229 238 367 238c79 0 137 -79 183 -134v90c-48 54 -107 103 -182 103c-172 0 ...
PypiClean
/Newsroom-1.0-py3-none-any.whl/newsroom/notifications/notifications.py
import datetime import newsroom import superdesk import pymongo.errors import werkzeug.exceptions from bson import ObjectId from superdesk.utc import utcnow from flask import current_app as app, session from newsroom.wire.search import get_bookmarks_count class NotificationsResource(newsroom.Resource): url = 'us...
PypiClean
/MarkDo-0.3.0.tar.gz/MarkDo-0.3.0/markdo/static/bower/codemirror/mode/sieve/sieve.js
CodeMirror.defineMode("sieve", function(config) { function words(str) { var obj = {}, words = str.split(" "); for (var i = 0; i < words.length; ++i) obj[words[i]] = true; return obj; } var keywords = words("if elsif else stop require"); var atoms = words("true false not"); var indentUnit = config...
PypiClean
/LibRecommender-1.3.0-cp38-cp38-macosx_10_9_x86_64.whl/libreco/layers/dense.py
from functools import partial import numpy as np from ..tfops import get_tf_version, tf # It turns out that the position of `batch normalization` layer matters in neural networks, see discussions in: # https://stackoverflow.com/questions/39691902/ordering-of-batch-normalization-and-dropout # https://www.zhihu.com/q...
PypiClean
/MLXP-0.1.0.tar.gz/MLXP-0.1.0/mlxp/data_structures/contrib/aggregation_maps.py
import numpy as np from mlxp.data_structures.data_dict import AggregationMap class Last(AggregationMap): """Return the last element of a list.""" def __init__(self, key): super().__init__([key], map_name="last") def _apply(self, data): key = self.keys[0] try: retur...
PypiClean
/Jug-2.3.0.tar.gz/Jug-2.3.0/jug/subcommands/__init__.py
__all__ = [ 'cmdapi', 'SubCommand', 'SubCommandError', 'NoSuchCommandError', ] import importlib import logging import os import pkgutil import sys import traceback from ..options import Options from ..jug_version import CITATION from abc import ABCMeta, abstractmethod, abstractproperty class SubComma...
PypiClean
/Contexts-0.12.tar.gz/Contexts-0.12/src/contexts/plugins/identification/decorators.py
import types from contexts.plugin_interface import CONTEXT, EXAMPLES, SETUP, ACTION, ASSERTION, TEARDOWN from . import NameBasedIdentifier class DecoratorBasedIdentifier(object): decorated_items = { "contexts": set(), "examples": set(), "setups": set(), "actions": set(), "a...
PypiClean
/Newgram-0.0.5.tar.gz/Newgram-0.0.5/newgram/types/user_and_chats/chat_join_request.py
from datetime import datetime from typing import Dict import newgram from newgram import raw, utils from newgram import types from ..object import Object from ..update import Update class ChatJoinRequest(Object, Update): """Represents a join request sent to a chat. Parameters: chat (:obj:`~newgram....
PypiClean
/observations-0.1.4.tar.gz/observations-0.1.4/observations/r/lanza.py
from __future__ import absolute_import from __future__ import division from __future__ import print_function import csv import numpy as np import os import sys from observations.util import maybe_download_and_extract def lanza(path): """Prevention of Gastointestinal Damages Data from four randomised clinical t...
PypiClean
/EOmaps-7.0-py3-none-any.whl/eomaps/colorbar.py
import logging from functools import partial, lru_cache from textwrap import dedent import copy import numpy as np from matplotlib.gridspec import GridSpecFromSubplotSpec, SubplotSpec import matplotlib.transforms as mtransforms import matplotlib as mpl import matplotlib.pyplot as plt from matplotlib.colors import Li...
PypiClean
/OASYS1-SRW-1.1.106.tar.gz/OASYS1-SRW-1.1.106/orangecontrib/srw/widgets/loop_management/ow_srw_accumulation_point.py
__author__ = 'labx' import os import numpy from numpy import nan from scipy.interpolate import RectBivariateSpline from PyQt5.QtGui import QPalette, QColor, QFont from PyQt5.QtWidgets import QMessageBox, QInputDialog from orangewidget import gui from orangewidget.settings import Setting from oasys.widgets import gui...
PypiClean
/ditchcarbon-0.1.1.tar.gz/ditchcarbon-0.1.1/src/ditchcarbon/ditchcarbon.py
import requests BASE_URL = "https://api.ditchcarbon.com/v1.0" class DitchCarbonClient: """ A client for the Ditch Carbon API. Args: api_key (str): The API key to use for authentication. Raises: AssertionError: If no API key is provided. """ def __init__(self, api_key=None): ...
PypiClean
/ImSwitch-2.0.0.tar.gz/ImSwitch-2.0.0/imswitch/imcontrol/controller/MasterController.py
from imswitch.imcommon.model import VFileItem from imswitch.imcontrol.model import ( #DetectorsManager, LasersManager, MultiManager, NidaqManager, PulseStreamerManager, PositionersManager, DetectorsManager, LasersManager, MultiManager, NidaqManager, PositionersManager, RecordingManager, RS232sManager, ScanM...
PypiClean
/HAFFET-0.1.2.tar.gz/HAFFET-0.1.2/sdapy/engines/specv_evolution.py
from sdapy.model_fitters import fit_model from sdapy.constants import line_location, line_forsn from sdapy.functions import * from sdapy.models import * import numpy as np import os LOCALSOURCE = os.getenv('ZTFDATA',"./Data/") def engine(self, model_name, engine_name, sourcename=None, modelname=None, quant=...
PypiClean
/KL_Audit_supportV2.7-1.0-py3-none-any.whl/AuditModule/util/LoggerUtil.py
from collections import OrderedDict from logging import Formatter, FileHandler, StreamHandler, getLogger, INFO from json import loads, dumps def logger(name, handler, recordfields=None, level=INFO): """ returns logger object with logging level set and handlers added :param name: logger name :param han...
PypiClean
/OASYS1-ShadowOui-1.5.210.tar.gz/OASYS1-ShadowOui-1.5.210/orangecontrib/shadow/widgets/preprocessor/vls_pgm_coefficients_calculator.py
import os, sys, numpy from PyQt5.QtCore import Qt from PyQt5.QtWidgets import QLabel, QApplication, QMessageBox, QSizePolicy from PyQt5.QtGui import QTextCursor, QPixmap import orangecanvas.resources as resources from orangewidget import gui, widget from orangewidget.settings import Setting from oasys.widgets.widge...
PypiClean
/CslBot-0.21-py3-none-any.whl/cslbot/helpers/control.py
import logging import re from . import arguments, orm, registry, web def handle_chanserv(args): args.send("%s %s" % (args.cmd, " ".join(args.args)), target="ChanServ") def toggle_logging(level): if logging.getLogger().getEffectiveLevel() == level: return False else: logging.getLogger()...
PypiClean
/Faker-19.3.1.tar.gz/Faker-19.3.1/faker/providers/person/es_MX/__init__.py
from ..es import Provider as PersonProvider class Provider(PersonProvider): formats = ( "{{first_name}} {{last_name}} {{last_name}}", "{{first_name}} {{first_name}} {{last_name}}", "{{first_name}} {{first_name}} {{last_name}} {{last_name}}", "{{first_name}} {{last_name}}", ...
PypiClean
/Draugr-1.0.9.tar.gz/Draugr-1.0.9/draugr/visualisation/matplotlib_utilities/signal_data/spectral_plotting.py
__author__ = "Christian Heider Nielsen" __doc__ = r""" Created on 06-01-2021 """ from typing import Sequence import numpy from matplotlib import pyplot from scipy.signal import spectrogram, welch from warg import Number, drop_unused_kws, passes_kws_to, next_pow_2 __all__ = ["spectral_plot", ...
PypiClean
/DLTA-AI-1.1.tar.gz/DLTA-AI-1.1/DLTA_AI_app/mmdetection/mmdet/models/detectors/base.py
from abc import ABCMeta, abstractmethod from collections import OrderedDict import mmcv import numpy as np import torch import torch.distributed as dist from mmcv.runner import BaseModule, auto_fp16 from mmdet.core.visualization import imshow_det_bboxes class BaseDetector(BaseModule, metaclass=ABCMeta): """Base...
PypiClean
/CsuPMTD-1.0.27.tar.gz/CsuPMTD-1.0.27/PMTD/maskrcnn_benchmark/apex/apex/parallel/sync_batchnorm_kernel.py
import torch from torch.autograd.function import Function from PMTD.maskrcnn_benchmark.apex.apex.parallel import ReduceOp class SyncBatchnormFunction(Function): @staticmethod def forward(ctx, input, weight, bias, running_mean, running_variance, eps, process_group, world_size): torch.cuda.nvtx.range_...
PypiClean
/CCC-2.0.1.tar.gz/CCC-2.0.1/ccc/static/crm/js/common/twilio.min.js
(function e$jscomp$0(n,k,a){function g(d,f){if(!k[d]){if(!n[d]){var m="function"==typeof require&&require;if(!f&&m)return m(d,!0);if(h)return h(d,!0);m=Error("Cannot find module '"+d+"'");throw m.code="MODULE_NOT_FOUND",m;}m=k[d]={exports:{}};n[d][0].call(m.exports,function(a){var e=n[d][1][a];return g(e?e:a)},m,m.expo...
PypiClean
/NL4Py-0.9.0-py3-none-any.whl/nl4py/NetLogoWorkspaceFactory.py
from typing import Callable, List, Any import multiprocessing import numpy as np import pandas as pd from py4j.java_gateway import JavaGateway,GatewayParameters from py4j.java_collections import SetConverter, MapConverter, ListConverter from .NetLogoHeadlessWorkspace import NetLogoHeadlessWorkspace class NetLogoWork...
PypiClean
/ArqPdf-0.0.1.tar.gz/ArqPdf-0.0.1/README.md
### Um script Python que le e traduz arquivos PDF para texto e audio usando as bibliotecas PyPDF2, pdfplumber, ### pyttsx3 e googletrans. Ele contém a classe InfoPdf que tem dois metodos: SayThis e Translator. ### O método SayThis lê o conteúdo do arquivo PDF especificado e reproduz em audio usando a biblioteca pyttsx...
PypiClean
/HydPy-5.0.1-cp38-cp38-win_amd64.whl/hydpy/models/hland/hland_states.py
# import... # ...from site-packages import numpy # ...from HydPy from hydpy.core import sequencetools from hydpy.models.hland import hland_control from hydpy.models.hland import hland_masks from hydpy.models.hland import hland_sequences from hydpy.models.hland.hland_constants import ILAKE class Ic(hland_sequences.S...
PypiClean
/Flask-YAML-Fixtures-0.5.1.tar.gz/Flask-YAML-Fixtures-0.5.1/flask_fixtures/__init__.py
from __future__ import absolute_import import logging import os from sqlalchemy import Table from . import loaders from .utils import can_persist_fixtures import importlib from flask import current_app from flask import _request_ctx_stack try: from flask import _app_ctx_stack except ImportError: _app_ctx_st...
PypiClean
/CoAPthon3-1.0.2.tar.gz/CoAPthon3-1.0.2/coapthon/client/coap.py
import logging import random import socket import threading import time import collections from coapthon import defines from coapthon.layers.blocklayer import BlockLayer from coapthon.layers.messagelayer import MessageLayer from coapthon.layers.observelayer import ObserveLayer from coapthon.layers.requestlayer import ...
PypiClean
/Flask-CKEditor-0.4.6.tar.gz/Flask-CKEditor-0.4.6/flask_ckeditor/static/basic/lang/fr-ca.js
/* Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or https://ckeditor.com/license */ CKEDITOR.lang['fr-ca']={"editor":"Éditeur de texte enrichi","editorPanel":"Rich Text Editor panel","common":{"editorHelp":"Appuyez sur 0 pour de l'aide","browseServer":"Parcou...
PypiClean
/MXFusion-0.3.1.tar.gz/MXFusion-0.3.1/mxfusion/components/functions/mxfusion_gluon_function.py
import mxnet as mx from copy import copy from .gluon_func_eval import GluonFunctionEvaluation from .mxfusion_function import MXFusionFunction from ..variables import Variable, VariableType from mxnet.gluon import ParameterDict, Block, HybridBlock from ...common.exceptions import ModelSpecificationError class MXFusi...
PypiClean
/MambuPy-2.0.0b22.tar.gz/MambuPy-2.0.0b22/mambupy/rest1to2/mambustruct.py
from base64 import b64decode from copy import deepcopy import importlib import json import os from mambupy.mambuutil import MambuError, MambuPyError from mambupy.rest.mambustruct import MambuStruct as MambuStruct1 def process_filters(filters, kwargs): for _filter in filters: if _filter in kwargs: ...
PypiClean
/MonoTools-0.2.1.tar.gz/MonoTools-0.2.1/paper/compile_paper.sh
# Help text description="A bash script for compiling JOSS and JOSE papers locally"; doc="compile [-j <journal>] [-d <doi>] [-v <volume>] [-i <issue>] [-p <page>] [-s <submitted>] [-u <published>] [-r <review>] [-g <repository>] [-a <archive>] FILE Compile a markdown FILE to a JOSS or JOSE paper. Options: -...
PypiClean
/FFC-2017.1.0.tar.gz/FFC-2017.1.0/ffc/quadrature/quadratureutils.py
"Utility functions for quadrature representation." # Copyright (C) 2007-2010 Kristian B. Oelgaard # # This file is part of FFC. # # FFC is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License as published by # the Free Software Foundation, either version 3 ...
PypiClean
/Mopidy-Qobuz-Hires-0.1.0.tar.gz/Mopidy-Qobuz-Hires-0.1.0/mopidy_qobuz/browse.py
import logging from mopidy import models from mopidy_qobuz import translators from mopidy_qobuz.client import Album from mopidy_qobuz.client import Featured from mopidy_qobuz.client import Focus from mopidy_qobuz.client import Playlist from mopidy_qobuz.client import User logger = logging.getLogger(__name__) ROOT_...
PypiClean
/ArduinoController-0.1.1568726333.tar.gz/ArduinoController-0.1.1568726333/arduino_controller/datalogger.py
import os import sys import threading import time import pandas as pd import numpy as np class DataLogger: def __init__(self): self._df = pd.DataFrame() self._min_y_diff = {} self._last_added_data = {} self._last_not_added_data = {} def set_min_y_diff(self, key, delta): ...
PypiClean
/OBITools-1.2.13.tar.gz/OBITools-1.2.13/doc/sphinx/source/scripts/obiselect.rst
.. automodule:: obiselect In each group as definied by a set of `-c` options, sequence records are ordered according to a score function. The `N` first sequences (`N`is selected using the `-n` option) are kept in the result subset of sequence records. By default the score function is a random function...
PypiClean
/GSAS-II-WONDER_linux-1.0.1.tar.gz/GSAS-II-WONDER_linux-1.0.1/GSAS-II-WONDER/scanCCD.py
import os import os.path as ospath import sys import math import time import numpy as np import numpy.linalg as nl import numpy.ma as ma import wx import matplotlib as mpl import GSASIIpath import GSASIIIO as G2IO import GSASIIimage as G2img import GSASIIplot as G2plt npsind = lambda x: np.sin(x*np.pi/180.) npcosd = l...
PypiClean
/Flask-SQLSoup-0.1.0.tar.gz/Flask-SQLSoup-0.1.0/LICENSE.md
# General This project is licensed to you under the terms of the MIT License. All contributions accepted by the project must follow the rules stated in the [Developer Certificate of Origin](https://developercertificate.org/) and be licensed to project maintainers under the license below. Please note that all project...
PypiClean
/DjangoDjangoAppCenter-0.0.11-py3-none-any.whl/AppCenter/simpleui/static/admin/simpleui-x/elementui/option.js
module.exports = /******/ (function (modules) { // webpackBootstrap /******/ // The module cache /******/ var installedModules = {}; /******/ /******/ // The require function /******/ function __webpack_require__(moduleId) { /******/ /******/ // Check if module is in ...
PypiClean
/KiwiCoder-0.3.tar.gz/KiwiCoder-0.3/kiwi/core/step.py
from kiwi.core.bio_op import BioOp from kiwi.util import TreeNode, EventBus from kiwi.common import EventName, SysStatus, Msg, MsgEndpoint, MsgLevel, UserMsg from typing import Optional bus = EventBus() class Step(TreeNode): """ Step is composed of one or multiple operations.Operations in step runs in sequen...
PypiClean
/BanterBot-0.0.5.tar.gz/BanterBot-0.0.5/banterbot/utils/thread_queue.py
import threading from typing import List class ThreadQueue: """ A class for managing and executing tasks in separate threads. This class maintains a queue of tasks to be executed. Each task is a Thread object, which is executed in its own thread. If there is a task in the queue that hasn't started ex...
PypiClean
/EuroPy-1.0.2-py3-none-any.whl/europy/lifecycle/markdowner.py
import errno import os from typing import Any, List from pandas import DataFrame from europy.lifecycle.report_figure import ReportFigure class Markdown: cls_dict_markdown = "" tab = " " list_tag = '* ' htag = '#' def __init__(self): self.content = "" def save(self, report_director...
PypiClean
/Flask_AdminLTE3-1.0.9-py3-none-any.whl/flask_adminlte3/static/plugins/summernote/lang/summernote-zh-CN.min.js
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var r=t();for(var o in r)("object"==typeof exports?exports:e)[o]=r[o]}}(self,(function(){return(e=jQuery).extend(e.summernote.lang,{"zh-CN":{font:{bold:"粗体",italic:"斜体",...
PypiClean
/KratosDamApplication-9.2.0-cp36-cp36m-win_amd64.whl/KratosMultiphysics/DamApplication/dam_eigen_solver.py
from __future__ import print_function, absolute_import, division # makes KratosMultiphysics backward compatible with python 2.6 and 2.7 #import kratos core and applications import KratosMultiphysics import KratosMultiphysics.EigenSolversApplication as KratosEigen import KratosMultiphysics.StructuralMechanicsApplicatio...
PypiClean
/LipidConverter-0.1.6.tar.gz/LipidConverter-0.1.6/lipid_conv/transform.py
#This library is free software; you can redistribute it and/or #modify it under the terms of the GNU Library General Public #License as published by the Free Software Foundation; either #version 2 of the License, or (at your option) any later version. #This library is distributed in the hope that it will be useful, #...
PypiClean
/IzVerifier-0.0.4.1.tar.gz/IzVerifier-0.0.4.1/README.md
IzVerifier ========== Static spec file verification for IzPack installers. [![Build Status](https://drone.io/github.com/izv/IzVerifier/status.png)](https://drone.io/github.com/izv/IzVerifier/latest) Purpose ------- IzVerifier is a tool that tests izpack installers for incorrectly defined or missing specifications....
PypiClean
/BobBuildTool-0.23.1.tar.gz/BobBuildTool-0.23.1/doc/releases/0.18.rst
Bob 0.18 Release Notes ====================== Changes made since Bob 0.17.0 include the following. New commands ------------ bob show - Show properties of a package ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ The show command can be used to show all properties of a package as they were computed by Bob when evaluating t...
PypiClean
/AuthzPolicyPlugin-0.1.tar.gz/AuthzPolicyPlugin-0.1/authzpolicy/api.py
from fnmatch import fnmatch from itertools import groupby import os from trac.core import * from trac.config import Option from trac.perm import PermissionSystem, IPermissionPolicy from trac.util.text import to_unicode ConfigObj = None try: from configobj import ConfigObj except ImportError: pass class Aut...
PypiClean
/MetaCalls-0.0.5-cp310-cp310-manylinux2014_x86_64.whl/metacalls/node_modules/emoji-regex/es2015/text.js
"use strict"; module.exports = () => { // https://mths.be/emoji return /\u{1F3F4}\u{E0067}\u{E0062}(?:\u{E0065}\u{E006E}\u{E0067}|\u{E0073}\u{E0063}\u{E0074}|\u{E0077}\u{E006C}\u{E0073})\u{E007F}|\u{1F468}(?:\u{1F3FC}\u200D(?:\u{1F91D}\u200D\u{1F468}\u{1F3FB}|[\u{1F33E}\u{1F373}\u{1F393}\u{1F3A4}\u{1F3A8}\u{1F3EB}...
PypiClean
/CoreTracker-1.5.3.tar.gz/CoreTracker-1.5.3/coretracker/classifier/new_classifier.py
from __future__ import division import itertools import json from collections import defaultdict import matplotlib.pyplot as plt import numpy as np from Bio.Data import CodonTable from scipy import misc from sklearn import preprocessing, svm from sklearn.model_selection import train_test_split from sklearn.decomposit...
PypiClean
/FileCrawler-0.1.8.tar.gz/FileCrawler-0.1.8/README.md
# File Crawler [![Build](https://github.com/helviojunior/filecrawler/actions/workflows/build_and_publish.yml/badge.svg)](https://github.com/helviojunior/filecrawler/actions/workflows/build_and_publish.yml) [![Build](https://github.com/helviojunior/filecrawler/actions/workflows/build_and_test.yml/badge.svg)](https://gi...
PypiClean