id
stringlengths
1
265
text
stringlengths
6
5.19M
dataset_id
stringclasses
7 values
/3Di_cmd_client-0.0.3.tar.gz/3Di_cmd_client-0.0.3/cmd_client/commands/settings.py
from __future__ import annotations from dataclasses import dataclass, field, asdict from datetime import timedelta from datetime import datetime from enum import Enum from pathlib import Path import sys from urllib.parse import urlparse from functools import lru_cache import click import jwt import yaml from rich.prom...
PypiClean
/AstroCabTools-1.5.1.tar.gz/AstroCabTools-1.5.1/astrocabtools/mrs_subviz/src/viewers/centroidWavelengthSelection.py
import sys import glob import traceback import numpy as np from os.path import expanduser from ..utils.basic_transformations import wavelength_to_slice from PyQt5.QtWidgets import QDialog, QMessageBox, QSizePolicy, QFileDialog from PyQt5.QtCore import Qt, pyqtSlot, pyqtSignal from PyQt5 import QtGui from PyQt5 impo...
PypiClean
/CADET-Process-0.7.3.tar.gz/CADET-Process-0.7.3/CADETProcess/stationarity.py
from addict import Dict import numpy as np from CADETProcess import log from CADETProcess.dataStructure import StructMeta, UnsignedFloat from CADETProcess import SimulationResults from CADETProcess.comparison import Comparator from CADETProcess.processModel import Inlet __all__ = ['RelativeArea', 'NRMSE', 'Stationar...
PypiClean
/FanFicFare-4.27.0.tar.gz/FanFicFare-4.27.0/fanficfare/mobihtml.py
# Copyright(c) 2009 Andrew Chatham and Vijay Pandurangan # Changes Copyright 2018 FanFicFare team ## This module is used by mobi.py exclusively. ## Renamed Jul 2018 to avoid conflict with other 'html' packages from __future__ import absolute_import import re import logging # py2 vs py3 transition from .six.moves.ur...
PypiClean
/Electrum-CHI-3.3.8.tar.gz/Electrum-CHI-3.3.8/electrum_chi/electrum/coinchooser.py
from collections import defaultdict from math import floor, log10 from typing import NamedTuple, List, Callable from decimal import Decimal from .bitcoin import sha256, COIN, TYPE_ADDRESS, is_address from .transaction import Transaction, TxOutput from .util import NotEnoughFunds from .logging import Logger # A simpl...
PypiClean
/Eskapade-1.0.0-py3-none-any.whl/eskapade/analysis/links/apply_func_to_df.py
import collections from eskapade import process_manager, DataStore, Link, StatusCode class ApplyFuncToDf(Link): """Apply functions to data-frame. Applies one or more functions to a (grouped) dataframe column or an entire dataframe. In the latter case, this can be done row wise or column wise. The ...
PypiClean
/Flask-DB-0.3.2.tar.gz/Flask-DB-0.3.2/flask_db/cli.py
import subprocess import os import click from flask import current_app from flask.cli import with_appcontext from sqlalchemy_utils import database_exists, create_database from flask_db.init import generate_configs DEFAULT_SEEDS_PATH = os.path.join("db", "seeds.py") @click.group() def db(): """ Migrate an...
PypiClean
/LibML-0.1.03.tar.gz/LibML-0.1.03/libml/Classification/NaiveBayes.py
import numpy as np import numpy.linalg as la from sklearn.utils.extmath import safe_sparse_dot as safedot class NaiveBayes(): def __init__(self, model): """ Initializes the Naive Bayes classifier for given model type Parameters ---------- model : used to specify distributi...
PypiClean
/Flask_JSONRPC-2.2.2-py3-none-any.whl/flask_jsonrpc/types.py
import typing as t from numbers import Real, Integral, Rational from collections import OrderedDict, defaultdict from collections.abc import Mapping from typing_inspect import is_new_type # type: ignore # Python 3.10+ try: from types import NoneType, UnionType except ImportError: # pragma: no cover UnionTyp...
PypiClean
/Flask_MonitoringDashboard-3.1.2-py3-none-any.whl/flask_monitoringdashboard/controllers/requests.py
import datetime import numpy from sqlalchemy import func, and_ from flask_monitoringdashboard.core.timezone import to_utc_datetime, to_local_datetime from flask_monitoringdashboard.database import Request from flask_monitoringdashboard.database.count_group import count_requests_per_day, get_value from flask_monitorin...
PypiClean
/GxSphinx-1.0.0.tar.gz/GxSphinx-1.0.0/doc/usage/restructuredtext/roles.rst
.. highlight:: rst ===== Roles ===== Sphinx uses interpreted text roles to insert semantic markup into documents. They are written as ``:rolename:`content```. .. note:: The default role (```content```) has no special meaning by default. You are free to use it for anything you like, e.g. variable names; use t...
PypiClean
/LT2OpenCorpora-2.0.3.tar.gz/LT2OpenCorpora-2.0.3/bin/lt_plot.py
import os.path import sys import pydot from unicodecsv import DictReader import xml.etree.ElementTree as ET sys.path.insert(0, ".") import lt2opencorpora if __name__ == '__main__': # TODO: argparse BASEPATH = os.path.dirname(lt2opencorpora.__file__) graph = pydot.Dot(graph_type='digraph') nodes_by_o...
PypiClean
/Cocopot-0.2.tar.gz/Cocopot-0.2/cocopot/routing.py
import re from .exceptions import BadRequest, NotFound, MethodNotAllowed class RouteSyntaxError(Exception): pass class Router(object): """ A Router is an ordered collection of route->endpoint pairs. It is used to efficiently match WSGI requests against a number of routes and return the first e...
PypiClean
/AWSpider-0.3.2.12.tar.gz/AWSpider-0.3.2.12/awspider/servers/base.py
import cPickle import hashlib import inspect import logging import logging.handlers import os import time from decimal import Decimal from uuid import uuid4 from twisted.internet import reactor from twisted.internet.threads import deferToThread from twisted.internet.defer import Deferred, DeferredList, maybeDeferred fr...
PypiClean
/Dabo-0.9.16.tar.gz/Dabo-0.9.16/dabo/lib/xmltodict.py
import os import string import locale import codecs from xml.parsers import expat # If we're in Dabo, get the default encoding. import dabo import dabo.lib.DesignerUtils as desUtil from dabo.dLocalize import _ from dabo.lib.utils import resolvePath from dabo.lib.utils import ustr app = dabo.dAppRef default_encoding =...
PypiClean
/Flask_Admin-1.6.1-py3-none-any.whl/flask_admin/contrib/appengine/view.py
import logging from flask_admin.model import BaseModelView from wtforms_appengine import db as wt_db from wtforms_appengine import ndb as wt_ndb from google.appengine.ext import db from google.appengine.ext import ndb from flask_wtf import Form from flask_admin.model.form import create_editable_list_form from .form ...
PypiClean
/Bluebook-0.0.1.tar.gz/Bluebook-0.0.1/pylot/component/static/pylot/vendor/mdeditor/bower_components/codemirror/mode/meta.js
CodeMirror.modeInfo = [ {name: 'APL', mime: 'text/apl', mode: 'apl'}, {name: 'Asterisk', mime: 'text/x-asterisk', mode: 'asterisk'}, {name: 'C', mime: 'text/x-csrc', mode: 'clike'}, {name: 'C++', mime: 'text/x-c++src', mode: 'clike'}, {name: 'Cobol', mime: 'text/x-cobol', mode: 'cobol'}, {name: 'Java', mime...
PypiClean
/Heimdallr-0.2.7-py36-none-any.whl/heimdallr/utilities/server/gpu_utilities.py
from typing import List, Mapping, Sequence import numpy import pandas from dash import html from dash.dcc import Graph from dash.html import Div, H3 from pandas import DataFrame from plotly import graph_objs from warg import Number from heimdallr.configuration.heimdallr_config import ( DROP_COLUMNS, INT_COLUM...
PypiClean
/FrAG-1.1.0.tar.gz/FrAG-1.1.0/frag_pele/AdaptivePELE_repo/AdaptivePELE/freeEnergies/checkDetailedBalance.py
from __future__ import absolute_import, division, print_function, unicode_literals import glob import os import argparse import matplotlib import matplotlib.pyplot as plt import numpy as np from scipy import linalg FOLDER = "discretized" CLUSTER_CENTERS = "clusterCenters.dat" TRAJECTORY_MATCHING_PATTERN = "*.disctraj"...
PypiClean
/My_Learn_Messenger_Client-0.1.1.tar.gz/My_Learn_Messenger_Client-0.1.1/сhatclient/client/client_main_window.py
import base64 import json from Cryptodome.Cipher import PKCS1_OAEP from Cryptodome.PublicKey import RSA from PyQt5.QtCore import pyqtSlot, Qt from PyQt5.QtGui import QStandardItemModel, QStandardItem, QBrush, QColor from PyQt5.QtWidgets import QMainWindow, qApp, QMessageBox from chatclient.сhatclient.Log.client_log_c...
PypiClean
/Distribution_G_B-0.1.tar.gz/Distribution_G_B-0.1/distributions/Gaussiandistribution.py
import math import matplotlib.pyplot as plt from .Generaldistribution import Distribution class Gaussian(Distribution): """ Gaussian distribution class for calculating and visualizing a Gaussian distribution. Attributes: mean (float) representing the mean value of the distribution stdev (float) representing ...
PypiClean
/IpfsML-1.0.2.tar.gz/IpfsML-1.0.2/nft_storage/model/get_response.py
import re # noqa: F401 import sys # noqa: F401 from nft_storage.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, ModelSimple, cached_property, change_keys_js_to_python, convert_js_args_to_python_args, date, datetime, file_type, none_type, va...
PypiClean
/OASYS1-SYNED-1.0.45.tar.gz/OASYS1-SYNED-1.0.45/orangecontrib/syned/widgets/gui/ow_light_source.py
__author__ = 'labx' import os, sys from PyQt5.QtGui import QPalette, QColor, QFont from PyQt5.QtWidgets import QMessageBox, QApplication from PyQt5.QtCore import QRect from orangewidget import gui from orangewidget import widget from orangewidget.settings import Setting from oasys.widgets.widget import OWWidget fro...
PypiClean
/KegElements-0.9.1.tar.gz/KegElements-0.9.1/keg_elements/forms/__init__.py
import functools import inspect import logging import warnings from decimal import Decimal from operator import attrgetter from blazeutils.strings import case_cw2dash import flask from flask_wtf import FlaskForm as BaseForm from keg.db import db import sqlalchemy as sa from markupsafe import Markup from sqlalchemy_uti...
PypiClean
/My-CountriesAPI-123456-1.0.tar.gz/My-CountriesAPI-123456-1.0/my_countries_api_123456/http/http_request.py
from my_countries_api_123456.api_helper import APIHelper class HttpRequest(object): """Information about an HTTP Request including its method, headers, parameters, URL, and Basic Auth details Attributes: http_method (HttpMethodEnum): The HTTP Method that this request should perfo...
PypiClean
/DataTig-0.5.0.tar.gz/DataTig-0.5.0/datatig/models/type.py
import json import os.path from datatig.jsondeepreaderwriter import JSONDeepReaderWriter from datatig.jsonschemabuilder import build_json_schema from .field import FieldConfigModel from .field_boolean import FieldBooleanConfigModel from .field_date import FieldDateConfigModel from .field_datetime import FieldDateTime...
PypiClean
/AutoTransform-1.1.1a8-py3-none-any.whl/autotransform/change/base.py
# @black_format """The base class and associated classes for Change components.""" from __future__ import annotations from abc import abstractmethod from enum import Enum from typing import TYPE_CHECKING, ClassVar, List from autotransform.batcher.base import Batch from autotransform.util.component import Component...
PypiClean
/Flet_StoryBoard-1.4-py3-none-any.whl/fletsb/pages/settings.py
from flet import Page import flet import time from .Settings.pages import page_settings_page class SettingsPage: def __init__(self, page:Page, main_class) -> None: self.page : Page = page self.main_class = main_class #? Create a copy of things. self.__last_keyboard_manager = main_c...
PypiClean
/Django-4.2.4.tar.gz/Django-4.2.4/django/contrib/auth/base_user.py
import unicodedata import warnings from django.conf import settings from django.contrib.auth import password_validation from django.contrib.auth.hashers import ( check_password, is_password_usable, make_password, ) from django.db import models from django.utils.crypto import get_random_string, salted_hmac ...
PypiClean
/MJOLNIRGui-0.9.10.tar.gz/MJOLNIRGui-0.9.10/src/main/python/Views/Raw1DManager.py
import sys sys.path.append('..') try: from MJOLNIRGui.src.main.python.MJOLNIR_Data import GuiDataFile,GuiDataSet from MJOLNIRGui.src.main.python._tools import ProgressBarDecoratorArguments,loadUI except ImportError: from MJOLNIR_Data import GuiDataFile,GuiDataSet from _tools import ProgressBarDecorator...
PypiClean
/BioSAK-1.72.0.tar.gz/BioSAK-1.72.0/My_Python_scripts/comparative_genomics/COG_number_count.py
import sys __author__ = 'weizhisong' usage = """ #################################################################### Usage: python COG_number_count.py annotation_results.txt output.txt COG_annotation_results format: G_00005 yebN S COG1971 Predicted membrane protein G_00009 PA1596 O COG0326 Molecular cha...
PypiClean
/HEBO-0.3.2-py3-none-any.whl/hebo/design_space/design_space.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
/DiscordPyExt-0.0.3-py3-none-any.whl/discordPyExt/components/ctxx.py
import discord from discord.ext import commands import typing class Ctxl: """ class contains extended static methods for discord.ext.commands.Context """ @staticmethod def has_role(ctx : discord.Interaction, bot : commands.Bot = None, *query_roles : typing.Union[discord.Role, int, str]) ->...
PypiClean
/EnergyCapSdk-8.2304.4743.tar.gz/EnergyCapSdk-8.2304.4743/energycap/sdk/models/required_address_child_py3.py
from msrest.serialization import Model class RequiredAddressChild(Model): """RequiredAddressChild. All required parameters must be populated in order to send to Azure. :param country: Required. The address country <span class='property-internal'>Required</span> <span class='property-internal'...
PypiClean
/AGouTI-1.0.3.tar.gz/AGouTI-1.0.3/agouti_pkg/processing_product.py
from agouti_pkg.miscallaneous import * class ProcessingProduct(object): """Feature from the BED file. One line in BED corresponds\ to one ProcessingProduct""" def __init__(self, coordinates, processing_product, score, strand, bed_line, first_base_num, coords_outside_transcript="No"):...
PypiClean
/ESMValCore-2.9.0rc1.tar.gz/ESMValCore-2.9.0rc1/.github/pull_request_template.md
<!-- Thank you for contributing to our project! Please do not delete this text completely, but read the text below and keep items that seem relevant. If in doubt, just keep everything and add your own text at the top, a reviewer will update the checklist for you. --> ## Description <!-- Please d...
PypiClean
/Euphorie-15.0.2.tar.gz/Euphorie-15.0.2/src/euphorie/client/resources/oira/script/chunks/24539.5dfeb3dcc80fd4fd6d2a.min.js
"use strict";(self.webpackChunk_patternslib_patternslib=self.webpackChunk_patternslib_patternslib||[]).push([[24539],{18878:function(n,e,t){var s=t(87537),l=t.n(s),o=t(23645),r=t.n(o)()(l());r.push([n.id,".hljs-comment,.hljs-quote{color:#d4d0ab}.hljs-variable,.hljs-template-variable,.hljs-tag,.hljs-name,.hljs-selector-...
PypiClean
/Nevow-0.14.5.tar.gz/Nevow-0.14.5/nevow/appserver.py
import cgi import warnings from collections import MutableMapping from urllib import unquote from zope.interface import implements, classImplements import twisted.python.components as tpc from twisted.web import server try: from twisted.web import http except ImportError: from twisted.protocols import http ...
PypiClean
/HorizonJPL-0.1.7.tar.gz/HorizonJPL-0.1.7/README.txt
NASA's JPL HORIOZON Ephemeris System API =============== This Python API, is an effort towards opening NASA's PDS data sets to the public with a focus on ease of access. Thus creating, NASA's JPL Horizons On-Line Ephemeris System API Background ----------------- From http://en.wikipedia.org/wiki/Ephemeris: For sc...
PypiClean
/DEW-ISI-0.0.1.tar.gz/DEW-ISI-0.0.1/NLP/nlp.py
import spacy import sys sys.path.append('../') import globals from spacy.lang.en.stop_words import STOP_WORDS from HighLevelBehaviorLanguage.hlb import * from NLP.nlplib import findEntities, findCondClauses, actionRelation class nlpHandler(): sentences = [] dict = spacy.load('en') splitchars = ['!', '.', '...
PypiClean
/GC-Flask-Blogging-1.1.2.tar.gz/GC-Flask-Blogging-1.1.2/flask_blogging/engine.py
try: from builtins import object except ImportError: pass from .processor import PostProcessor from flask_principal import Principal, Permission, RoleNeed from .signals import engine_initialised, post_processed, blueprint_created from flask_fileupload import FlaskFileUpload class BloggingEngine(object): "...
PypiClean
/MGLEX-0.2.1.tar.gz/MGLEX-0.2.1/doc/source/index.rst
MGLEX documentation =================== Welcome to the MGLEX documentation! MGLEX (MetaGenome Likelihood Extractor) is a probablistic model implementation in Python 3 to extract genomes from metagenome assemblies using various features. **Note**: This documentation is a stub, it will be extended with upcoming versions...
PypiClean
/Create-Multi-Langs-0.1.1.tar.gz/Create-Multi-Langs-0.1.1/create_multi_langs/creater/go.py
from __future__ import absolute_import from create_multi_langs.creater.base import CreaterBase import os from subprocess import call from typing import NoReturn from . import to_upper_without_underscore class CreaterGo(CreaterBase): @staticmethod def from_csv_file(csv_file: str, output_...
PypiClean
/Gletscher-0.0.1.tar.gz/Gletscher-0.0.1/gletscher/aws.py
import http.client from datetime import datetime import hashlib import hmac import json import os import socket import stat import logging import uuid import re import time from gletscher import hex, crypto from gletscher.progressbar import ProgressBar logger = logging.getLogger(__name__) class GlacierJob(object): ...
PypiClean
/Infomericaclass-1.0.0.tar.gz/Infomericaclass-1.0.0/inf/examples/ethnicolr_app_contrib20xx-fl_reg.ipynb
## Application: 2000/2010 Political Campaign Contributions by Race Using ethnicolr, we look to answer three basic questions: <ol> <li>What proportion of contributions were made by blacks, whites, Hispanics, and Asians? <li>What proportion of unique contributors were blacks, whites, Hispanics, and Asians? <li>What pro...
PypiClean
/Impression-CMS-0.2.0.tar.gz/Impression-CMS-0.2.0/impression/themes/admin/static/js/plugins/dataTables/dataTables.bootstrap.js
$.extend(true, $.fn.dataTable.defaults, { "sDom": "<'row'<'col-sm-6'l><'col-sm-6'f>r>" + "t" + "<'row'<'col-sm-6'i><'col-sm-6'p>>", "oLanguage": { "sLengthMenu": "_MENU_ records per page" } }); /* Default class modification */ $.extend($.fn.dataTableExt.oStdClasses, { "sWrapper": "dataTables_w...
PypiClean
/BlueWhale3-Educational-0.4.1.tar.gz/BlueWhale3-Educational-0.4.1/doc/widgets/google-sheets.md
Google Sheets ============= Read data from a Google Sheets spreadsheet. **Outputs** - Data: data set from the Google Sheets service. Description ----------- The widget reads data from the [Google Sheets service](https://docs.google.com/spreadsheets). To use the widget, click the Share button in a selected spreadsh...
PypiClean
/GNS-1.0-py3-none-any.whl/gns/prob_funcs.py
import numpy as np import sys import scipy.stats from scipy.special import ive as ModifiedBessel, gamma as Gamma #for Kent distribution try: from scipy.special import logsumexp except ImportError: from scipy.misc import logsumexp import inspect #import custom modules """ NB scipy.stats.norm uses standard deviation...
PypiClean
/MergePythonSDK.ticketing-2.2.2-py3-none-any.whl/MergePythonSDK/crm/model/webhook_receiver.py
import re # noqa: F401 import sys # noqa: F401 from typing import ( Optional, Union, List, Dict, ) from MergePythonSDK.shared.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, ModelSimple, cached_property, OpenApiModel, change_keys_js_to_python,...
PypiClean
/FreePyBX-1.0-RC1.tar.gz/FreePyBX-1.0-RC1/freepybx/public/js/dojox/jq.js
define(["dijit","dojo","dojox","dojo/require!dojo/NodeList-traverse,dojo/NodeList-manipulate,dojo/io/script"],function(_1,_2,_3){ _2.provide("dojox.jq"); _2.require("dojo.NodeList-traverse"); _2.require("dojo.NodeList-manipulate"); _2.require("dojo.io.script"); (function(){ _2.config.ioPublish=true; var _4="|img|meta|h...
PypiClean
/Jakaria08_distributions-0.1.tar.gz/Jakaria08_distributions-0.1/jakaria08_distributions/Binomialdistribution.py
import math import matplotlib.pyplot as plt from .Generaldistribution import Distribution class Binomial(Distribution): """ Binomial distribution class for calculating and visualizing a Binomial distribution. Attributes: mean (float) representing the mean value of the distribution std...
PypiClean
/FreePyBX-1.0-RC1.tar.gz/FreePyBX-1.0-RC1/freepybx/public/js/dojo/query.js.uncompressed.js
define("dojo/query", ["./_base/kernel", "./has", "./dom", "./on", "./_base/array", "./_base/lang", "./selector/_loader", "./selector/_loader!default"], function(dojo, has, dom, on, array, lang, loader, defaultEngine){ "use strict"; has.add("array-extensible", function(){ // test to see if we can extend an array (n...
PypiClean
/HousePredicition-0.0.1.tar.gz/HousePredicition-0.0.1/src/house_prediction/ingest_data.py
import pandas as pd from sklearn.impute import SimpleImputer from sklearn.model_selection import StratifiedShuffleSplit import numpy as np import os.path import argparse import mlflow import mlflow.sklearn import logging remote_server_uri = "http://0.0.0.0:5000" # set to your server URI mlflow.set_tracking_uri(remote...
PypiClean
/GNS-1.0-py3-none-any.whl/gns/keeton_calculations.py
import numpy as np import scipy #import custom modules from . import calculations from . import tools ################Calculate Z moments and H a-posteri using Keeton's methods def calcZMomentsKeeton(Lhoods, nLive, nest): """ calculate Z moments a-posteri with full list of Lhoods used in NS loop, using equations ...
PypiClean
/Djblets-3.3.tar.gz/Djblets-3.3/djblets/privacy/consent/views.py
from functools import wraps from django.conf import settings from django.core.exceptions import ImproperlyConfigured from django.http import HttpResponseRedirect from django.utils.decorators import method_decorator from djblets.privacy.consent import (Consent, get_consent_require...
PypiClean
/JsonTest-1.4.tar.gz/JsonTest-1.4/README.md
# JsonTest `JsonTest` is a tiny metaclass designed for automatically generating tests based off JSON files. Originally built for testing [`ElasticQuery`](https://github.com/Fizzadar/ElasticQuery). Install with `pip install jsontest`. ## Synopsis ```py from jsontest import JsonTest class MyTests(TestCase): # Set...
PypiClean
/MapProxy-1.16.0.tar.gz/MapProxy-1.16.0/doc/inspire.rst
.. _inpire: .. highlight:: yaml INSPIRE View Service ==================== MapProxy can act as an INSPIRE View Service. A View Service is a WMS 1.3.0 with an extended capabilities document. .. versionadded:: 1.8.1 INSPIRE Metadata ---------------- A View Service can either link to an existing metadata document or...
PypiClean
/Dts-OpenFisca-Core-34.8.0.tar.gz/Dts-OpenFisca-Core-34.8.0/openfisca_web_api/loader/parameters.py
from openfisca_core.parameters import Parameter, ParameterNode, Scale def build_api_values_history(values_history): api_values_history = {} for value_at_instant in values_history.values_list: api_values_history[value_at_instant.instant_str] = value_at_instant.value return api_values_history de...
PypiClean
/MDTools-0.0.2.tar.gz/MDTools-0.0.2/mdtools/metadata.py
from collections import OrderedDict as OD from lxml import etree from copy import deepcopy class Metadata(object): """ Generic class to hold metadata nodes. Nodes can be added by simply calling Metadata.add_node(node_object) Alternatively nodes can be input with a file parser. Attributes ---------- fname:...
PypiClean
/Authlog-1.0.0.tar.gz/Authlog-1.0.0/authlog/decorators.py
from __future__ import absolute_import import logging # from datetime import datetime, timedelta try: from django.urls import reverse, NoReverseMatch except: from django.core.urlresolvers import reverse, NoReverseMatch from authlog import models import authlog log = logging.getLogger(authlog.AUTHLOG_LOGGER) lo...
PypiClean
/CL3d-1.0.10-py3-none-win32.whl/CL/res/dark_rc.py
# Resource object code # # Created by: The Resource Compiler for PyQt5 (Qt v5.13.1) # # WARNING! All changes made in this file will be lost! from PyQt5 import QtCore qt_resource_data = b"\ \x00\x00\x0b\xb9\ \x3c\ \x3f\x78\x6d\x6c\x20\x76\x65\x72\x73\x69\x6f\x6e\x3d\x22\x31\x2e\ \x30\x22\x20\x65\x6e\x63\x6f\x64\x69\x...
PypiClean
/FileStandardInput-0.2.tar.gz/FileStandardInput-0.2/README.rst
FILE STANDARD INPUT ===================== **A Standard File Input Reader where you can provide custom input syntax instead of input() or raw_input() to get input from File instead of command line.** USAGE --------- To use this simply import file input like *from FileStandardInput import FileInput* Then initiate in...
PypiClean
/Nuitka-1.8.tar.gz/Nuitka-1.8/nuitka/tree/ReformulationImportStatements.py
# spell-checker: ignore fromlist,asname from nuitka.importing.ImportResolving import resolveModuleName from nuitka.nodes.ConstantRefNodes import makeConstantRefNode from nuitka.nodes.FutureSpecs import FutureSpec from nuitka.nodes.GlobalsLocalsNodes import ExpressionBuiltinGlobals from nuitka.nodes.ImportNodes import ...
PypiClean
/OASYS1-ESRF-Extensions-0.0.69.tar.gz/OASYS1-ESRF-Extensions-0.0.69/orangecontrib/esrf/xoppy/widgets/extension/Scintillator.py
import sys import numpy import xraylib from PyQt5.QtWidgets import QApplication, QMessageBox, QSizePolicy from orangewidget import gui from orangewidget.settings import Setting from oasys.widgets import gui as oasysgui, congruence from oasys.widgets.exchange import DataExchangeObject from xoppylib.power.xoppy_calc_pow...
PypiClean
/DeePyMoD-20.11b0.tar.gz/DeePyMoD-20.11b0/docs/index.md
Documentation page for the Deep learning based Model Discovery package DeepMoD. DeePyMoD is a PyTorch-based implementation of the DeepMoD algorithm for model discovery of PDEs and ODEs.[github.com/PhIMaL/DeePyMoD](https://github.com/PhIMaL/DeePyMoD). This work is based on two papers: The original DeepMoD paper [arXiv:...
PypiClean
/DomiKnowS-0.533.tar.gz/DomiKnowS-0.533/domiknows/program/callbackprogram.py
from itertools import repeat from typing import Callable, List from dataclasses import dataclass from ..utils import consume, entuple from .model.base import Mode from .program import LearningBasedProgram class ProgramStorageCallback(): def __init__(self, program, fn) -> None: self.program = program ...
PypiClean
/EFGs-0.8.4.tar.gz/EFGs-0.8.4/README.rst
EFGs (Extended functional groups) ======================================================= .. image:: https://img.shields.io/pypi/v/EFGs.svg :target: https://pypi.python.org/pypi/EFGs :alt: Latest PyPI version Extended Functional Groups ---------------------------- Extended functional group is a generalized v...
PypiClean
/NREL_reV-0.8.1-py3-none-any.whl/reV/supply_curve/cli_supply_curve.py
import logging from warnings import warn from gaps.cli import as_click_command, CLICommandFromClass from gaps.pipeline import parse_previous_status from reV.supply_curve.supply_curve import SupplyCurve from reV.utilities.exceptions import PipelineError from reV.utilities import ModuleName logger = logging.getLogger...
PypiClean
/DicksonUI-2.4.5.tar.gz/DicksonUI-2.4.5/dicksonui/jslib.py
lib = '"object"!=typeof JSON&&(JSON={}),function(){"use strict";var rx_one=/^[\\],:{}\\s]*$/,rx_two=/\\\\(?:["\\\\\\/bfnrt]|u[0-9a-fA-F]{4})/g,rx_three=/"[^"\\\\\\n\\r]*"|true|false|null|-?\\d+(?:\\.\\d*)?(?:[eE][+\\-]?\\d+)?/g,rx_four=/(?:^|:|,)(?:\\s*\\[)+/g,rx_escapable=/[\\\\"\\u0000-\\u001f\\u007f-\\u009f\\u00ad\\...
PypiClean
/Cohen-0.7.4.tar.gz/Cohen-0.7.4/coherence/backends/feed_storage.py
# Copyright 2009, Dominik Ruf <dominikruf at googlemail dot com> from coherence.backend import BackendItem from coherence.backend import BackendStore from coherence.upnp.core import DIDLLite from coherence.upnp.core.utils import ReverseProxyUriResource from xml.etree.ElementTree import ElementTree import urllib impo...
PypiClean
/AstroCabTools-1.5.1.tar.gz/AstroCabTools-1.5.1/astrocabtools/cube_ans/src/viewers/canvas_interaction/spectrumCanvas/mplInteraction.py
import numpy as np import weakref from pubsub import pub import matplotlib.pyplot as _plt from matplotlib.patches import Rectangle from ....models.rectangleSpectrum import rectangle_spectrum from matplotlib.backends.backend_qt5agg import FigureCanvasQTAgg as FigureCanvas class MplInteraction(object): def __in...
PypiClean
/GradientDR-0.1.3.4-py3-none-any.whl/GDR/optimizer/spectral.py
from warnings import warn import numpy as np import scipy.sparse import scipy.sparse.csgraph from sklearn.manifold import SpectralEmbedding from sklearn.metrics import pairwise_distances from sklearn.metrics.pairwise import _VALID_METRICS as SKLEARN_PAIRWISE_VALID_METRICS def component_layout( data, n_comp...
PypiClean
/gramaddict-3.2.5.tar.gz/gramaddict-3.2.5/CONTRIBUTING.md
# Contributing to GramAddict :+1::tada: First off, thanks for taking the time to contribute! :tada::+1: The following is a set of guidelines for contributing to GramAddict and its associated repos, which are hosted in the [GramAddict Organization](https://github.com/gramaddict) on GitHub. These are mostly guidelines,...
PypiClean
/LFake-18.9.0.tar.gz/LFake-18.9.0/lfake/providers/internet/ru_RU/__init__.py
from .. import Provider as InternetProvider class Provider(InternetProvider): user_name_formats = ( "{{last_name_female}}.{{first_name_female}}", "{{last_name_male}}.{{first_name_male}}", "{{last_name_male}}.{{first_name_male}}", "{{first_name_male}}.{{last_name_male}}", "{...
PypiClean
/DI_engine-0.4.9-py3-none-any.whl/ding/policy/ngu.py
from typing import List, Dict, Any, Tuple, Union, Optional from collections import namedtuple import torch import copy from ding.torch_utils import Adam, to_device from ding.rl_utils import q_nstep_td_data, q_nstep_td_error, q_nstep_td_error_with_rescale, get_nstep_return_data, \ get_train_sample from ding.model i...
PypiClean
/Congo-0.0.1.tar.gz/Congo-0.0.1/portfolio/component/static/portfolio/vendor/mdeditor/bower_components/codemirror/mode/jade/jade.js
CodeMirror.defineMode("jade", function () { var symbol_regex1 = /^(?:~|!|%|\^|\*|\+|=|\\|:|;|,|\/|\?|&|<|>|\|)/; var open_paren_regex = /^(\(|\[)/; var close_paren_regex = /^(\)|\])/; var keyword_regex1 = /^(if|else|return|var|function|include|doctype|each)/; var keyword_regex2 = /^(#|{|}|\.)/; var keyword_...
PypiClean
/Mezzanine-6.0.0.tar.gz/Mezzanine-6.0.0/mezzanine/generic/managers.py
from django_comments.managers import CommentManager as DjangoCM from mezzanine.conf import settings from mezzanine.core.managers import CurrentSiteManager class CommentManager(CurrentSiteManager, DjangoCM): """ Provides filter for restricting comments that are not approved if ``COMMENTS_UNAPPROVED_VISIBL...
PypiClean
/BlueWhale3-3.31.3.tar.gz/BlueWhale3-3.31.3/Orange/evaluation/performance_curves.py
import numpy as np class Curves: # names of scores are standard acronyms, pylint: disable=invalid-name """ Computation of performance curves (ca, f1, precision, recall and the rest of the zoo) from test results. The class works with binary classes. Attribute `probs` contains ordered probabili...
PypiClean
/KratosRANSApplication-9.4-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl/KratosMultiphysics/RANSApplication/formulations/monolithic_vms/monolithic_k_omega_sst_rans_formulation.py
import KratosMultiphysics as Kratos import KratosMultiphysics.RANSApplication as KratosRANS # import formulation interface from KratosMultiphysics.RANSApplication.formulations.rans_formulation import RansFormulation # import formulations from KratosMultiphysics.RANSApplication.formulations.incompressible_potential_fl...
PypiClean
/Djblets-3.3.tar.gz/Djblets-3.3/docs/releasenotes/0.9.rst
========================= Djblets 0.9 Release Notes ========================= **Release date**: October 28, 2015 This release contains all bug fixes and features found in Djblets version :doc:`0.8.23 <0.8.23>`. Installation ============ To install this release, run the following:: $ sudo easy_install \ ...
PypiClean
/MaterialDjango-0.2.5.tar.gz/MaterialDjango-0.2.5/materialdjango/static/materialdjango/components/bower_components/prism/components/prism-nginx.js
Prism.languages.nginx = Prism.languages.extend('clike', { 'comment': { pattern: /(^|[^"{\\])#.*/, lookbehind: true }, 'keyword': /\b(?:CONTENT_|DOCUMENT_|GATEWAY_|HTTP_|HTTPS|if_not_empty|PATH_|QUERY_|REDIRECT_|REMOTE_|REQUEST_|SCGI|SCRIPT_|SERVER_|http|events|acc...
PypiClean
/Mopidy-WebLibrary-1.0.0.tar.gz/Mopidy-WebLibrary-1.0.0/mopidy_weblibrary/static/vendors/jquery_fileupload/jquery.fileupload-process.js
;(function (factory) { 'use strict'; if (typeof define === 'function' && define.amd) { // Register as an anonymous AMD module: define([ 'jquery', './jquery.fileupload' ], factory); } else if (typeof exports === 'object') { // Node/CommonJS: fa...
PypiClean
/Flask-Injector-0.15.0.tar.gz/Flask-Injector-0.15.0/flask_injector/__init__.py
import functools from inspect import ismethod from typing import Any, Callable, cast, Dict, get_type_hints, Iterable, List, TypeVar, Union import flask try: from flask_restful import Api as FlaskRestfulApi from flask_restful.utils import unpack as flask_response_unpack except ImportError: FlaskRestfulApi ...
PypiClean
/Congo-0.0.1.tar.gz/Congo-0.0.1/portfolio/ext/mailer.py
import warnings import ses_mailer import flask_mail from six.moves.urllib.parse import urlparse class Mailer(object): """ A simple wrapper to switch between SES-Mailer and Flask-Mail based on config """ mail = None provider = None app = None def init_app(self, app): self.app = app...
PypiClean
/JT_Techfield-0.0.11-py3-none-any.whl/JT/Gradients.py
import numpy as np class Gradient: def __init__(self): self.change = 0 def Evaluate(self, grad, learning_rate): return grad * learning_rate class Momentum(Gradient): def __init__(self, velocity_rate = 0.9): self.velocity_rate = velocity_rate self.velocity = 0 self...
PypiClean
/OOPyGame-0.0.5-py3-none-any.whl/PyGameUI/colors.py
TABLEAU_COLORS = { 'blue': '#1f77b4', 'orange': '#ff7f0e', 'green': '#2ca02c', 'red': '#d62728', 'purple': '#9467bd', 'brown': '#8c564b', 'pink': '#e377c2', 'gray': '#7f7f7f', 'olive': '#bcbd22', 'cyan': '#17becf', } CSS4_COLORS = { 'aliceblue': '#F0F8FF', 'an...
PypiClean
/MAnorm-1.3.0.tar.gz/MAnorm-1.3.0/manorm/region/parsers.py
import logging from manorm.exceptions import FileFormatError logger = logging.getLogger(__name__) def is_track_header(line): """Returns if the line is a header line used in genome tracks/browers.""" line = line.strip() if line.startswith('#') or line.startswith('track') or line.startswith( '...
PypiClean
/DLTA-AI-1.1.tar.gz/DLTA-AI-1.1/DLTA_AI_app/mmdetection/mmdet/core/utils/misc.py
from functools import partial import numpy as np import torch from six.moves import map, zip from ..mask.structures import BitmapMasks, PolygonMasks def multi_apply(func, *args, **kwargs): """Apply function to a list of arguments. Note: This function applies the ``func`` to multiple inputs and ...
PypiClean
/logic/text_prompts.py
mainMessage = """ ------------Expense tracker--------------- 0. Help 1. Add string 2. Find month 3. Display all 4. Display grouped data 5. Currencies 6. Local convertor 7. Clear data 8. Quit ------------------------------------------ """ helpMessage = """ ----Description for all commands here:---- 0. Help 1. Add a new ...
PypiClean
/Imaginary-0.0.5.tar.gz/Imaginary-0.0.5/imaginary/iimaginary.py
from zope.interface import Interface, Attribute class ITelnetService(Interface): """ Really lame tag interface used by the Mantissa offering system to uniquely identify a powerup that runs a telnet server. """ class ISSHService(Interface): """ Really lame tag interface used by the Mantis...
PypiClean
/GenIce-1.0.11.tar.gz/GenIce-1.0.11/genice/lattices/Struct77.py
pairs=""" 183 8 28 152 92 195 107 48 18 197 9 63 133 150 167 194 69 169 52 25 57 212 61 26 216 82 209 97 171 176 20 18 59 199 140 119 113 40 47 103 226 73 202 209 27 131 42 4 66 82 122 124 76 104 76 105 130 209 14 86 97 54 104 60 77 106 191 199 15 92 204 31 165 67 126 223 128 213 44 217 157 206 225 41 168 103 110 179 1...
PypiClean
/NeodroidVision-0.3.0-py36-none-any.whl/neodroidvision/utilities/torch_utilities/transforms/interpolate.py
__author__ = "heider" __doc__ = r""" Created on 5/5/22 """ import math import random import warnings from PIL import Image from torchvision.transforms.functional import resized_crop _pil_interpolation_to_str = { Image.NEAREST: "PIL.Image.NEAREST", Image.BILINEAR: "PIL.Image.BILINEAR",...
PypiClean
/Bottlechest-0.7.1-cp34-cp34m-macosx_10_9_x86_64.whl/bottlechest/src/template/template.py
"Turn templates into Cython pyx files." import os.path def template(funcs, bits, header): "Convert template dictionary `func` to a pyx file." codes = [] for func in funcs: #supports multiple functions in a single file codes.append("# %s bit version\n" % str(bits)) codes.append(func['main']...
PypiClean
/Biblioteca_RIT-3.0.0-py3-none-any.whl/BibliotecaRIT/Sources/controladoras/ControladoraExtracaoDados.py
from BibliotecaRIT.Sources.Requisicao import Requisicao from BibliotecaRIT.Sources.entidades.Comentario import Comentario from BibliotecaRIT.Sources.entidades.Projeto import Projeto from BibliotecaRIT.Sources.entidades.Topico import Topico from BibliotecaRIT.Sources.estrategias.extracao.FiltroExtracaoIssuesAbertasFecha...
PypiClean
/CombCov-0.6.5.tar.gz/CombCov-0.6.5/demo/mesh_tiling.py
import logging from collections import deque, namedtuple from itertools import chain, combinations, product from combcov import CombCov, Rule from permuta import Av, MeshPatt, Perm, PermSet from permuta.misc import flatten, ordered_set_partitions logger = logging.getLogger("MeshTiling") class MockAvCoPatts: def...
PypiClean
/GxSphinx-1.0.0.tar.gz/GxSphinx-1.0.0/sphinx/environment/collectors/toctree.py
from typing import Any, Dict, List, Set, Tuple, TypeVar from typing import cast from docutils import nodes from docutils.nodes import Element, Node from sphinx import addnodes from sphinx.application import Sphinx from sphinx.environment import BuildEnvironment from sphinx.environment.adapters.toctree import TocTree ...
PypiClean
/Dgram-1.0.0.tar.gz/Dgram-1.0.0/dgram/storage/redis_storage.py
from dgram.storage.base_storage import StateStorageBase, StateContext import json redis_installed = True try: from redis import Redis, ConnectionPool except: redis_installed = False class StateRedisStorage(StateStorageBase): """ This class is for Redis storage. This will work only for states. ...
PypiClean
/Homevee_Dev-0.0.0.0-py3-none-any.whl/Homevee/CloudConnection_NEW.py
import json import socket import ssl import time import traceback from _thread import start_new_thread from urllib.parse import urlencode from urllib.request import Request, urlopen from Homevee.API import API from Homevee.Helper import Logger, translations from Homevee.Utils.Constants import END_OF_MESSAGE from Homev...
PypiClean
/Azure-Sentinel-Utilities-0.6.5.tar.gz/Azure-Sentinel-Utilities-0.6.5/SentinelWidgets/widget_view_helper.py
import os import ipywidgets as widgets from IPython.display import HTML # pylint: disable-msg=R0904 # pylint: disable-msg=E0602 class WidgetViewHelper(): """ This classes provides helper methods for UI controls and components. """ def __init__(self): self.variable = None def set_env(self, env_dir...
PypiClean
/Netzob-2.0.0.tar.gz/Netzob-2.0.0/src/netzob/Export/WiresharkDissector/CodeBuffer.py
#+---------------------------------------------------------------------------+ #| 01001110 01100101 01110100 01111010 01101111 01100010 | #| | #| Netzob : Inferring communication protocols | #+-...
PypiClean