id
stringlengths
1
265
text
stringlengths
6
5.19M
dataset_id
stringclasses
7 values
/Msd-regression-models-0.0.1.tar.gz/Msd-regression-models-0.0.1/regression_model/config/core.py
from pathlib import Path from typing import Dict, List, Sequence from pydantic import BaseModel from strictyaml import YAML, load import regression_model # Project Directories PACKAGE_ROOT = Path(regression_model.__file__).resolve().parent ROOT = PACKAGE_ROOT.parent CONFIG_FILE_PATH = PACKAGE_ROOT / "config.yml" DAT...
PypiClean
/CuttApi-0.2.2.1.tar.gz/CuttApi-0.2.2.1/README.md
# CuttApi One of the best URL shortener module for Python of all time! CuttApi is one of the best ways of shortening URLs using Cuttly URL shortener just by entering your API key and seeing the rest that is done automatically by the Module ## Installation Installing requirements to establish the Module : ```...
PypiClean
/Editobj3-0.2.tar.gz/Editobj3-0.2/doc/index.rst
Welcome to Editobj3's documentation! ************************************ Editobj3 is an automatic dialog box generator for Python objects. It supports several backends; currenlty GTK and HTML are supported. The HTML backend is based on `W2UI <http://w2ui.com>`_, and can be used either in local single user mode, or in...
PypiClean
/CB_IPO-0.2.0.tar.gz/CB_IPO-0.2.0/docs/Example Cases.ipynb
### Importing ``` from CB_IPO import scrape ``` ### Initializing ``` scraper = scrape() ``` ### Scraping for recent IPO filings (S-1) ``` company_names, file_dates, form_types = scraper.edgar_scrape(5) print(company_names) print(file_dates) print(form_types) ``` ### Formatting into Dataframe ``` df = scraper.ge...
PypiClean
/NLP_LIB-0.0.12.tar.gz/NLP_LIB-0.0.12/NLP_LIB/models/sequence_transfer_learning_multi_label_wrapper.py
from NLP_LIB.nlp_core.model_wrapper import EncoderModelWrapper, DecoderModelWrapper, SequenceModelWrapper, TrainableModelWrapper from NLP_LIB.ext.transformer import Transformer import random, os, sys import numpy as np from tensorflow.keras.models import * from tensorflow.keras.layers import * from tensorflow.keras.cal...
PypiClean
/OctoPrint-1.9.2.tar.gz/OctoPrint-1.9.2/src/octoprint/plugins/corewizard/subwizards.py
__license__ = "GNU Affero General Public License http://www.gnu.org/licenses/agpl.html" __copyright__ = "Copyright (C) 2015 The OctoPrint Project - Released under terms of the AGPLv3 License" import inspect import sys from flask_babel import gettext import octoprint.plugin from octoprint.access import ADMIN_GROUP, U...
PypiClean
/MinecraftWikiSearch-1.1.6-py3-none-any.whl/MwsFunctions/DataReturn.py
import re import sys import urllib.parse import urllib.request from Errors import UnprocessedEntry from JSONRead import EasyReturn from MwsFunctions.Special_Entry import Special_Entry from MwsFunctions.WebVisit import WebVisit def Clear(t): while True: if "wzh:" in t: text_copy = t ...
PypiClean
/MnemoPwd-1.2.1-py3-none-any.whl/mnemopwd/server/clients/DBHandler.py
# Copyright (c) 2015-2016, Thierry Lemeunier <thierry at lemeunier dot net> # All rights reserved. # # Redistribution and use in source and binary forms, with or without modification, # are permitted provided that the following conditions are met: # # 1. Redistributions of source code must retain the above copyright n...
PypiClean
/Firefly%20III%20API%20Python%20Client-1.5.6.post2.tar.gz/Firefly III API Python Client-1.5.6.post2/firefly_iii_client/model/budget.py
import re # noqa: F401 import sys # noqa: F401 from firefly_iii_client.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,...
PypiClean
/Augmented%20Criticism%20Lab%20Toolkit-1.1.9.tar.gz/Augmented Criticism Lab Toolkit-1.1.9/tools/syllable.py
import csv import os import string # Load the outliers file from the module path. package_directory = os.path.dirname(os.path.abspath(__file__)) OUTLIERS_FILENAME = os.path.join(package_directory, 'OUTLIERS.csv') PUNCTUATION_TRANSLATOR = str.maketrans('', '', string.punctuation) VOWELS = ["a", "e", "i", "o", "u", "y...
PypiClean
/ComponentDB-CLI-3.15.5.tar.gz/ComponentDB-CLI-3.15.5/cdbCli/service/cli/cdbCliCmnds/getCatalogItemsByName.py
import sys import csv import re import click from rich import print from cdbApi import ApiException from CdbApiFactory import CdbApiFactory from cdbCli.common.cli.cliBase import CliBase ############################################################################################# # ...
PypiClean
/Flask-CacheOBJ-0.2.2.tar.gz/Flask-CacheOBJ-0.2.2/flask_cacheobj/redis_client.py
import redis class RedisClient(object): def __init__(self, host='localhost', port=6379, password=None, db=0, default_timeout=None, key_prefix=None): self.default_timeout = default_timeout self._client = redis.Redis(host=host, port=port, password=password, db=db) if key_p...
PypiClean
/Leonardo_Ai_SDK-1.19.1-py3-none-any.whl/leonardoaisdk/variation.py
from .sdkconfiguration import SDKConfiguration from leonardoaisdk import utils from leonardoaisdk.models import errors, operations from typing import Optional class Variation: sdk_configuration: SDKConfiguration def __init__(self, sdk_config: SDKConfiguration) -> None: self.sdk_configuration = sdk_co...
PypiClean
/Metamorf-0.4.4.2.tar.gz/Metamorf-0.4.4.2/metamorf/tools/utils.py
from metamorf.tools.database_objects import * from metamorf.tools.query import Query, FromRelationQuery, OrderByQuery from metamorf.constants import * from metamorf.tools.metadata import Metadata from metamorf.tools.connection import Connection from metamorf.tools.log import Log from metamorf.tools.node import Node imp...
PypiClean
/Hyperstatic-0.2.0-cp38-cp38-win_amd64.whl/hyperstatic/app/viz/viz_core/viz_core_model.py
from datetime import datetime import pickle import numpy as np from hyperstatic.core import Api # from hyperstatic.core.fe_model.model import Model # from hyperstatic.core.fe_model.load.pattern import LoadPattern # from hyperstatic.core.fe_model.load.loadcase import ModalCase, StaticCase # from hyperstatic.core.fe_sol...
PypiClean
/Abe-0.7.2.tar.gz/Abe-0.7.2/README-FASTCGI.txt
Apache 2 FastCGI setup on Debian/Ubuntu ======================================= This document describes how to install and run Abe as a FastCGI process under Apache 2 on a Debian GNU/Linux or Ubuntu system. Advantages of FastCGI over the built-in HTTP server include: * lets browsers cache static content for bette...
PypiClean
/FlaskCms-0.0.4.tar.gz/FlaskCms-0.0.4/flask_cms/static/js/ckeditor/plugins/codemirror/js/mode/sass/sass.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
/Gizela-1.0.18.tar.gz/Gizela-1.0.18/gizela/corr/ObsCorrSphere.py
from gizela.data import ObsClusterList """ Class Module ObsCorrSphere Basic concept of correction - correction on the sphere - radius of sphere is computed for central point on reference ellipsoid - in correction formulas measured values are substituted with values computed from given coordinates in local system. ...
PypiClean
/L-System-Visualizer-1.0.7.tar.gz/L-System-Visualizer-1.0.7/lsystem/core/stack_loop.py
import math from time import time import numpy as np def read_substring( lsys, curr_state, turn_angle, trig_dict, line_scale ): """ This is a utility function for read_stack, takes in a string without branching ([, ]) or move without draw (f,g,h) Inputs: lsys: a string curr_state: a ...
PypiClean
/KDVS-2.0.0.tar.gz/KDVS-2.0.0/doc/sphinxext/numpydoc/phantom_import.py
import imp, sys, compiler, types, os, inspect, re def setup(app): app.connect('builder-inited', initialize) app.add_config_value('phantom_import_file', None, True) def initialize(app): fn = app.config.phantom_import_file if (fn and os.path.isfile(fn)): print "[numpydoc] Phantom importing modul...
PypiClean
/APASVO-0.0.6.tar.gz/APASVO-0.0.6/apasvo/gui/views/mainwindow.py
import matplotlib matplotlib.rcParams['backend'] = 'qt4agg' matplotlib.rcParams['backend.qt4'] = 'PySide' matplotlib.rcParams['patch.antialiased'] = False matplotlib.rcParams['agg.path.chunksize'] = 80000 import numpy as np import traceback import os from apasvo.picking import stalta from apasvo.picking import ampa f...
PypiClean
/MXFusion-0.3.1.tar.gz/MXFusion-0.3.1/mxfusion/models/factor_graph.py
from uuid import uuid4 import warnings import networkx as nx from networkx.exception import NetworkXError import networkx.algorithms.dag from ..components import Distribution, Factor, ModelComponent, Variable, VariableType from ..modules.module import Module from ..common.exceptions import ModelSpecificationError, In...
PypiClean
/HarlRing-1.0.0-py3-none-any.whl/harlring/request/request_util.py
import requests from harlring.log.loguru_util import logger class RequestUtil: """ :author zqxu :param :param :param :return: """ @staticmethod def get_token(username, password): url = "http://10.112.6.7:8080/api/user/login" login_data = { "do...
PypiClean
/FreePyBX-1.0-RC1.tar.gz/FreePyBX-1.0-RC1/freepybx/public/js/dijit/form/_AutoCompleterMixin.js
define("dijit/form/_AutoCompleterMixin",["dojo/_base/connect","dojo/data/util/filter","dojo/_base/declare","dojo/_base/Deferred","dojo/dom-attr","dojo/_base/event","dojo/keys","dojo/_base/lang","dojo/query","dojo/regexp","dojo/_base/sniff","dojo/string","dojo/_base/window","./DataList","../registry","./_TextBoxMixin"],...
PypiClean
/CsuPTMD-1.0.12.tar.gz/CsuPTMD-1.0.12/PTMD/maskrcnn_benchmark/apex/apex/contrib/multihead_attn/fast_self_multihead_attn_norm_add_func.py
import torch import fast_self_multihead_attn_norm_add class FastSelfAttnNormAddFunc(torch.autograd.Function): @staticmethod def forward(ctx, use_time_mask, is_training, heads, inputs, lyr_nrm_gamma_weights, lyr_nrm_beta_weights, input_weights, output_weights, pad_mask, dropout_prob): heads_t = ...
PypiClean
/FeatherStore-0.2.1-py3-none-any.whl/featherstore/snapshot.py
import tarfile import os import pickle from datetime import datetime from featherstore.connection import Connection, current_db METADATA_FILE_NAME = 'metadata.pkl' def restore_table(store_name, source, errors='raise'): """Restores a table in to the currently selected db. Parameters ---------- store_...
PypiClean
/OctoPrint-1.9.2.tar.gz/OctoPrint-1.9.2/src/octoprint/vendor/sockjs/tornado/static.py
from __future__ import absolute_import, division, print_function, unicode_literals """ sockjs.tornado.static ~~~~~~~~~~~~~~~~~~~~~ Various static handlers required for SockJS to function properly. """ import time import hashlib import random import sys from tornado.gen import coroutine from octoprint.v...
PypiClean
/DocUMust-0.0.7.tar.gz/DocUMust-0.0.7/documust/cli.py
import os import ast import argparse from six.moves import input import crayons from documust.utils import path_utils class DocUMustCLI(object): """CLI object""" description = "Lets make sure you don't forget to document this time.\n" def __init__(self): """init""" pwd = os.getcwd() ...
PypiClean
/DistInfo-ReadMe-1.0.0.tar.gz/DistInfo-ReadMe-1.0.0/README.rst
**DistInfo-ReadMe** is a Python library for postviewing the readme of installed Python projects in a Python environment. The **DistInfo-ReadMe** package must be installed in that Python environment. The readme, that is displayed on the project page on `PyPI`__ under the heading *Project description*, is provided by the...
PypiClean
/EllipSect-3.2.3-py3-none-any.whl/ellipsect/sectors/sect.py
# This program 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. # This program is distributed in the hope that it will ...
PypiClean
/DTCO-0.1.3.tar.gz/DTCO-0.1.3/README.md
**Liberty Metric Package** ``` from libMetric import liberty as lutil import numpy as np ``` Liberty conversion ``` # load & convert CCS to JSON lnode = lutil.read_lib('ccs.lib') lutil.dump_json(lnode,out='ccs.json') lnode.keys() # load liberty from JSON lnode = lutil.load_json('ccs.json') lnode.keys() ``` Timing ...
PypiClean
/LUBEAT-0.13.1-cp38-cp38-macosx_10_9_x86_64.whl/econml/dr/_drlearner.py
from warnings import warn from copy import deepcopy import numpy as np from sklearn.base import clone from sklearn.linear_model import (LassoCV, LinearRegression, LogisticRegressionCV) from sklearn.ensemble import RandomForestRegressor from .._ortho_learner import _OrthoLearner from ...
PypiClean
/EOmaps-7.0-py3-none-any.whl/eomaps/qtcompanion/widgets/save.py
from PyQt5 import QtWidgets, QtGui from PyQt5.QtCore import Qt, pyqtSlot class FiletypeComboBox(QtWidgets.QComboBox): def enterEvent(self, e): if self.window().showhelp is True: QtWidgets.QToolTip.showText( e.globalPos(), "<h3>Export file format</h3>" ...
PypiClean
/Misago-0.36.1.tar.gz/Misago-0.36.1/misago/oauth2/client.py
from urllib.parse import urlencode import requests from django.urls import reverse from django.utils.crypto import get_random_string from requests.exceptions import RequestException from . import exceptions SESSION_STATE = "oauth2_state" STATE_LENGTH = 40 REQUESTS_TIMEOUT = 30 def create_login_url(request): st...
PypiClean
/BTrees-4.11.2.tar.gz/BTrees-4.11.2/docs/api.rst
=============== API Reference =============== Protocol APIs ============= .. module:: BTrees.Interfaces .. versionchanged:: 4.8.0 Previously, ``ISized`` was defined here, but now it is imported from :mod:`zope.interface.common.collections`. The definition is the same. Similarly, ``IReadSequence``, pre...
PypiClean
/MongoDBTools-0.1.1-py3-none-any.whl/mongodbtools/links/mongomergelabels.py
from escore import process_manager, ConfigObject, Link, StatusCode from mongodbtools import MongoConnection class MongoMergeLabels(Link): """ Defines the content of link MongoMergeLabels """ def __init__(self, name='MongoMergeLabels'): """ Store the configuration of link MongoMergeLa...
PypiClean
/Misago-0.36.1.tar.gz/Misago-0.36.1/misago/static/misago/admin/momentjs/zh-hk.js
;(function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment) }(this, (function (moment) { 'use strict'; ...
PypiClean
/Fortpy-1.7.7.tar.gz/Fortpy-1.7.7/fortpy/testing/parser.py
from fortpy import msg def _fit_exp(x, a, b, c): from numpy import exp return a * exp(b * x) + c def _fit_lin(x, a, b): return a*x + b class Analysis(object): """Represents the results of analyzing all the test case directories.""" def __init__(self, stagedir, fullparse=False): """Analyzes...
PypiClean
/FLAML-2.0.2-py3-none-any.whl/flaml/automl/state.py
import inspect import copy import time from typing import Any, Optional import numpy as np from flaml import tune from flaml.automl.logger import logger from flaml.automl.ml import compute_estimator, train_estimator from flaml.automl.time_series.ts_data import TimeSeriesDataset from flaml.automl.spark import psDataFram...
PypiClean
/Fattoush-0.4.0.tar.gz/Fattoush-0.4.0/src/fattoush/runner/parsing.py
import os import argparse # noinspection SpellCheckingInspection def add_lettuce_group(parser): """ :type parser: argparse.ArgumentParser """ group = parser.add_argument_group('lettuce arguments') group.add_argument("-v", "--verbosity", dest="verbosity", ...
PypiClean
/MagicPaper-1.1.1.tar.gz/MagicPaper-1.1.1/README.md
# MagicPaper A magical extendable paper to have fun with ... _Just like someone who said: it's not much, but it's honest work :) ._ ## What's this? It's just papers in terminal! You can create combinations of them that leads to something interesting ... ## Let's try It's just simple (as it is) ```py from magic_p...
PypiClean
/Agatsuma-0.2.176.default.3499b00918ca.tip.tar.gz/Agatsuma-0.2.176.default.3499b00918ca.tip/agatsuma/web/tornado/tornado_core.py
import Queue import multiprocessing from multiprocessing import Queue as MPQueue from weakref import WeakValueDictionary from agatsuma.core import Core from agatsuma.core import MultiprocessingCoreExtension if Core.internal_state.get("mode", None) == "normal": import tornado.httpserver import tornado.ioloop ...
PypiClean
/BuzzAlgoTrade-0.0.2.tar.gz/BuzzAlgoTrade-0.0.2/pyalgotrade/utils/collections.py
import numpy as np def lt(v1, v2): if v1 is None: return True elif v2 is None: return False else: return v1 < v2 # Returns (values, ix1, ix2) # values1 and values2 are assumed to be sorted def intersect(values1, values2, skipNone=False): ix1 = [] ix2 = [] values = [] ...
PypiClean
/BladePy-0.1.3.zip/BladePy-0.1.3/bladepy_packages/software_core/Core.py
from OCC.Display.backend import load_backend used_backend = load_backend() # PyQt Library from PyQt4 import QtCore, QtGui, uic # Internal Modules from occ_modules.shape_properties import ShapeManager, shape_colorlist, shape_colordictionary from occ_modules.qt_display import customQtViewer3d from tecplot_modules.tec...
PypiClean
/3DCORE-1.1.4.tar.gz/3DCORE-1.1.4/py3dcore/fitting/methods/abcsmc_v1.py
import datetime import logging import multiprocessing import numba import numpy as np import os import pickle import py3dcore import time from py3dcore._extmath import cholesky from py3dcore._extnumba import set_random_seed from py3dcore.fitting import BaseFitter from py3dcore.fitting.methods.summary import sumstat fr...
PypiClean
/Hikka_Pyro_New-2.0.103-py3-none-any.whl/hikkapyro/methods/messages/send_audio.py
import os import re from datetime import datetime from typing import Union, BinaryIO, List, Optional, Callable import hikkapyro from hikkapyro import StopTransmission, enums from hikkapyro import raw from hikkapyro import types from hikkapyro import utils from hikkapyro.errors import FilePartMissing from hikkapyro.fi...
PypiClean
/CeleryStalk-1.3.6.tar.gz/CeleryStalk-1.3.6/README.txt
====================== Celery Stalk v1.0 ====================== Celery Stalk provides users a way to quickly mutate values in extremely large CSV files using parallel processing. Celery performs operations as fast as multithreading/multiprocessing out of the box with python, but is resilient to errors and outages and ...
PypiClean
/GraphLab_Create-2.1-cp27-none-macosx_10_5_x86_64.macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.macosx_10_11_intel.macosx_10_11_x86_64.whl/graphlab/toolkits/feature_engineering/_spacy_transformer.py
import graphlab.connect as _mt import copy as _copy import graphlab as _gl from collections import deque import sys as _sys from graphlab.toolkits._model import PythonProxy as _PythonProxy from graphlab.data_structures.sframe_builder import SFrameBuilder from graphlab.toolkits.feature_engineering._internal_utils impor...
PypiClean
/Cim2BusBranch-0.1.tar.gz/Cim2BusBranch-0.1/docs/_build/html/_static/underscore.js
(function(){var j=this,n=j._,i=function(a){this._wrapped=a},m=typeof StopIteration!=="undefined"?StopIteration:"__break__",b=j._=function(a){return new i(a)};if(typeof exports!=="undefined")exports._=b;var k=Array.prototype.slice,o=Array.prototype.unshift,p=Object.prototype.toString,q=Object.prototype.hasOwnProperty,r=...
PypiClean
/Nuitka_fixed-1.1.2-cp310-cp310-win_amd64.whl/nuitka/build/inline_copy/yaml_35/yaml/serializer.py
__all__ = ['Serializer', 'SerializerError'] from .error import YAMLError from .events import * from .nodes import * class SerializerError(YAMLError): pass class Serializer: ANCHOR_TEMPLATE = 'id%03d' def __init__(self, encoding=None, explicit_start=None, explicit_end=None, version=None, tag...
PypiClean
/Hoboken-0.5.1.tar.gz/Hoboken-0.5.1/hoboken/six.py
import operator import sys import types __author__ = "Benjamin Peterson <benjamin@python.org>" __version__ = "1.1.0" # True if we are running on Python 3. PY3 = sys.version_info[0] == 3 if PY3: string_types = str, integer_types = int, class_types = type, text_type = str binary_type = bytes ...
PypiClean
/BPTK_Py-1.8.0.tar.gz/BPTK_Py-1.8.0/BPTK_Py/modelparser/yaml_model_parser.py
import copy from .meta_model_creator import serializable_agent from .meta_model_creator import ModelCreator from BPTK_Py.logger import log class YAMLModelParser(): """ Parser for YAML/YML files. Returns a modelCreator instance and the instantiated Model object """ PROPMAP = {float: "Double", str: "...
PypiClean
/INGInious-0.8.7.tar.gz/INGInious-0.8.7/inginious/frontend/pages/social.py
""" Auth page """ import flask from flask import redirect from werkzeug.exceptions import NotFound from inginious.frontend.pages.utils import INGIniousPage, INGIniousAuthPage class AuthenticationPage(INGIniousPage): def process_signin(self,auth_id): auth_method = self.user_manager.get_auth_method(auth_i...
PypiClean
/Argonaut-0.3.4.tar.gz/Argonaut-0.3.4/argonaut/public/ckeditor/lang/mn.js
/* Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.lang.mn={dir:'ltr',editorTitle:'Rich text editor, %1, press ALT 0 for help.',toolbar:'Toolbar',editor:'Rich Text Editor',source:'Код',newPage:'Шинэ хуудас',save:'Ха...
PypiClean
/Flask-MenuBuilder-0.9.2.tar.gz/Flask-MenuBuilder-0.9.2/flask_menubuilder.py
from flask import url_for, request from jinja2 import Markup import werkzeug.utils NEVER = object() ANYTIME = object() def request_enpoint_matches_menuitem_endpoint(menu_item): return request.endpoint == menu_item.endpoint # Simple "alias" REQUEST_MATCHES_ENDPOINT = request_enpoint_matches_menuitem_endpoint ...
PypiClean
/HessianPy-1.0.4.tar.gz/HessianPy-1.0.4/README.txt
This directory contains hessian protocol implementation. Author Petr Gladkikh (batyi at users.sourceforge.net) See http://hessian.caucho.com/ for Hessian protocol introduction. Protocol specification is at http://hessian.caucho.com/doc/hessian-1.0-spec.xtp See hello.py file for sample code. If you need to send Hessi...
PypiClean
/Argonaut-0.3.4.tar.gz/Argonaut-0.3.4/argonaut/model/page.py
from sqlalchemy import Column, ForeignKey from sqlalchemy.types import Unicode, Integer from argonaut.model.meta import Base, Session class Page(Base): __tablename__ = 'pages' id = Column(Integer, primary_key=True) name = Column(Unicode(30), nullable=False) status = Column(Integer, default = 1) ...
PypiClean
/MindsDB-23.8.3.0.tar.gz/MindsDB-23.8.3.0/mindsdb/integrations/handlers/mediawiki_handler/mediawiki_tables.py
import pandas as pd from typing import List from mindsdb.integrations.libs.api_handler import APITable from mindsdb_sql.parser import ast from mindsdb.integrations.handlers.utilities.query_utilities import SELECTQueryParser, SELECTQueryExecutor from mindsdb.utilities.log import get_log logger = get_log("integrati...
PypiClean
/BayesDB-0.2.0.tar.gz/BayesDB-0.2.0/bayesdb/client_remote.py
import os import math import json import requests import prettytable import pandas import numpy as np import pylab from matplotlib.colors import LogNorm, Normalize from matplotlib.ticker import MaxNLocator import matplotlib.gridspec as gs import matplotlib.cm import pdb default_args = { 'pretty': True, # prett...
PypiClean
/NetGrasp-0.9.4.tar.gz/NetGrasp-0.9.4/netgrasp/database/database.py
from netgrasp.utils import debug from netgrasp.utils import exclusive_lock class Database: def __init__(self): from netgrasp import netgrasp ng = netgrasp.netgrasp_instance try: import sqlite3 except Exception as e: ng.debugger.error("Error: %e") ...
PypiClean
/DDFacet-0.7.2.0.tar.gz/DDFacet-0.7.2.0/SkyModel/PSourceExtract/ClassPointFit.py
from __future__ import division, absolute_import, print_function import numpy as np from . import Gaussian import pylab import scipy.optimize import time from . import ClassIslands import ModColor from progressbar import ProgressBar from pyrap.images import image class ClassPointFit(): def __init__(self,x,y,z,psf...
PypiClean
/FreePyBX-1.0-RC1.tar.gz/FreePyBX-1.0-RC1/freepybx/public/js/dojox/drawing/ui/Tooltip.js.uncompressed.js
define("dojox/drawing/ui/Tooltip", ["dijit","dojo","dojox","dojo/require!dojox/drawing/plugins/_Plugin"], function(dijit,dojo,dojox){ dojo.provide("dojox.drawing.ui.Tooltip"); dojo.require("dojox.drawing.plugins._Plugin"); (function(){ // summary: // Used for UI tooltips. Buttons in the toolbar. // This file ...
PypiClean
/Office365-REST-Python-Client-2.4.3.tar.gz/Office365-REST-Python-Client-2.4.3/office365/outlook/mail/conversation_thread.py
from office365.entity import Entity from office365.entity_collection import EntityCollection from office365.outlook.mail.post import Post from office365.outlook.mail.recipient import Recipient from office365.runtime.client_value_collection import ClientValueCollection from office365.runtime.paths.resource_path import R...
PypiClean
/Electrum-CHI-3.3.8.tar.gz/Electrum-CHI-3.3.8/electrum_chi/electrum/contacts.py
import re import dns from dns.exception import DNSException from . import bitcoin from . import dnssec from .util import export_meta, import_meta, to_string from .logging import Logger class Contacts(dict, Logger): def __init__(self, storage): Logger.__init__(self) self.storage = storage ...
PypiClean
/GeoNode-3.2.0-py3-none-any.whl/geonode/static/geonode/js/ol-2.13/lib/OpenLayers/Symbolizer/Point.js
* @requires OpenLayers/Symbolizer.js */ /** * Class: OpenLayers.Symbolizer.Point * A symbolizer used to render point features. */ OpenLayers.Symbolizer.Point = OpenLayers.Class(OpenLayers.Symbolizer, { /** * APIProperty: strokeColor * {String} Color for line stroke. This is a RGB hex value (e....
PypiClean
/OBITools-1.2.13.tar.gz/OBITools-1.2.13/distutils.ext/obidistutils/serenity/pip/_vendor/requests/packages/chardet/gb2312freq.py
# GB2312 most frequently used character table # # Char to FreqOrder table , from hz6763 # 512 --> 0.79 -- 0.79 # 1024 --> 0.92 -- 0.13 # 2048 --> 0.98 -- 0.06 # 6768 --> 1.00 -- 0.02 # # Ideal Distribution Ratio = 0.79135/(1-0.79135) = 3.79 # Random Distribution Ration = 512 / (3755 - 512) = 0.157 # # Typical Di...
PypiClean
/FsnViz-0.3.0.tar.gz/FsnViz-0.3.0/fsnviz/star_fusion.py
from crimson.star_fusion import parse from .models import CircosEntry, CircosLabel, CircosLink, FusionToolResults from .utils import adjust_chrom __all__ = ["STARFusionResults"] class STARFusionResults(FusionToolResults): """Class representing a STAR-Fusion run result.""" mito_names = ("chrM", "M", "MT")...
PypiClean
/MaTiSSe.py-1.3.3.tar.gz/MaTiSSe.py-1.3.3/matisse/utils/js/MathJax/extensions/TeX/color.js
MathJax.Extension["TeX/color"]={version:"2.5.0",config:MathJax.Hub.CombineConfig("TeX.color",{padding:"5px",border:"2px"}),colors:{Apricot:"#FBB982",Aquamarine:"#00B5BE",Bittersweet:"#C04F17",Black:"#221E1F",Blue:"#2D2F92",BlueGreen:"#00B3B8",BlueViolet:"#473992",BrickRed:"#B6321C",Brown:"#792500",BurntOrange:"#F7921D"...
PypiClean
/JAMBOT-0.0.2-py3-none-any.whl/webinarJamBot/webinarJam.py
from selenium import webdriver from selenium.common.exceptions import NoSuchElementException from win10toast import ToastNotifier import platform import os import argparse import getpass import time def putAttendance(driverUrl,webinarLink,email,name,regno,phno,batch,dept): options = webdriver.ChromeOptio...
PypiClean
/Grid2Op-1.9.3-py3-none-any.whl/grid2op/Observation/serializableObservationSpace.py
from grid2op.Space import SerializableSpace from grid2op.Observation.completeObservation import CompleteObservation class SerializableObservationSpace(SerializableSpace): """ This class allows to serialize / de serialize the action space. It should not be used inside an Environment, as some functions of...
PypiClean
/IFJcode17-toolkit-1.4.13.tar.gz/IFJcode17-toolkit-1.4.13/ifj2017/test/logger.py
import os import shutil import sys from operator import attrgetter from typing import Optional from ifj2017.interpreter.state import State def disable_color(): """ Return True if the running system's terminal supports color, and False otherwise. """ # windows dark magic via https://stackoverflow...
PypiClean
/MaterialDjango-0.2.5.tar.gz/MaterialDjango-0.2.5/materialdjango/static/materialdjango/components/bower_components/hydrolysis/API.md
## Objects <dl> <dt><a href="#hydrolysis">hydrolysis</a> : <code>object</code></dt> <dd><p>Static analysis for Polymer.</p> </dd> </dl> ## Functions <dl> <dt><a href="#isSiblingOrAunt">isSiblingOrAunt()</a> ⇒ <code>boolean</code></dt> <dd><p>Returns true if <code>patha</code> is a sibling or aunt of <code>pathb</code>....
PypiClean
/Hunahpu-0.0.2a0.tar.gz/Hunahpu-0.0.2a0/hunahpu/Similarity.py
from nltk import ngrams from unidecode import unidecode from fuzzywuzzy import fuzz, process from langid import classify from googletrans import Translator import re def __parse_string(text): ''' This function allows to remove unneeded characters Parameters ---------- text : str text to ...
PypiClean
/Flask-MDEditor-0.1.4.tar.gz/Flask-MDEditor-0.1.4/flask_mdeditor/static/mdeditor/js/lib/codemirror/mode/pascal/pascal.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
/BlueWhale3-Recommendation-0.1.3.tar.gz/BlueWhale3-Recommendation-0.1.3/orangecontrib/recommendation/ranking/base_ranking.py
from orangecontrib.recommendation import Learner, Model from orangecontrib.recommendation.utils.format_data import * from orangecontrib.recommendation.evaluation.ranking import MeanReciprocalRank from scipy.sparse import lil_matrix import numpy as np __all__ = ["LearnerRecommendation", "ModelRecommendation"] class ...
PypiClean
/Jupytils-0.41100000000000003.tar.gz/Jupytils-0.41100000000000003/DataFrameUtils.py
import numpy as np from sklearn import preprocessing from sklearn.decomposition import PCA import pandas as pd import os from IPython.display import display from IPython.display import HTML import dateutil; import json; import urllib.request; import re import matplotlib #matplotlib.style.use('ggplot') np.set_printopt...
PypiClean
/123_object_detection-0.1.tar.gz/123_object_detection-0.1/slim/preprocessing/preprocessing_factory.py
"""Contains a factory for building various models.""" from __future__ import absolute_import from __future__ import division from __future__ import print_function from preprocessing import cifarnet_preprocessing from preprocessing import inception_preprocessing from preprocessing import lenet_preprocessing from prepr...
PypiClean
/Flask-of-Oil-1.2.2.tar.gz/Flask-of-Oil-1.2.2/flask_of_oil/jwt_validator.py
import calendar import json import logging import ssl from datetime import datetime from jwkest.jwk import KEYS from jwkest.jws import JWS, NoSuitableSigningKeys from requests import request from flask_of_oil.tools import base64_urldecode class JwtValidatorException(Exception): pass class JwtValidator: d...
PypiClean
/Flask_AdminLTE3-1.0.9-py3-none-any.whl/flask_adminlte3/static/plugins/jquery-validation/localization/messages_fr.min.js
!function(a){"function"==typeof define&&define.amd?define(["jquery","../jquery.validate.min"],a):"object"==typeof module&&module.exports?module.exports=a(require("jquery")):a(jQuery)}(function(a){return a.extend(a.validator.messages,{required:"Ce champ est obligatoire.",remote:"Veuillez corriger ce champ.",email:"Veuil...
PypiClean
/JD_SDK_CUSTOM-0.0.4-py3-none-any.whl/jd/security/tde/util/tde_status.py
class TDEStatus(object): def __init__(self, code, message): self.code = code self.message = message SUCCESS = TDEStatus(0, "Success") # Generic error codes across the whole TDE system. Range 1 to 99 INTERNAL_ERROR = TDEStatus(1, "Internal system error.") DB_ERROR = TDEStatus(2, "Internal database ...
PypiClean
/MedCLIP-0.0.3.tar.gz/MedCLIP-0.0.3/medclip/vision_model.py
import pdb,os import torch import torch.nn as nn import torch.utils.checkpoint as checkpoint from timm.models.layers import DropPath, to_2tuple, trunc_normal_ from . import constants class Mlp(nn.Module): def __init__(self, in_features, hidden_features=None, out_features=None, act_layer=nn.GELU, drop=0.): ...
PypiClean
/MOM-Tapyr-1.6.2.tar.gz/MOM-Tapyr-1.6.2/_Attr/Structured.py
from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals from _MOM import MOM from _TFL import TFL from _TFL.pyk import pyk from _MOM._Attr.Type import ...
PypiClean
/GxSphinx-1.0.0.tar.gz/GxSphinx-1.0.0/doc/usage/extensions/autosectionlabel.rst
.. highlight:: rest :mod:`sphinx.ext.autosectionlabel` -- Allow reference sections using its title ============================================================================== .. module:: sphinx.ext.autosectionlabel :synopsis: Allow reference section its title. .. versionadded:: 1.4 This extension allows you t...
PypiClean
/Cryp-0.2.tar.gz/Cryp-0.2/cryp/gui.py
import string import uuid import pygtk pygtk.require('2.0') import gtk, gobject, glib from .storage import Storage PASSWORD_CHARS = string.digits + string.letters PASSWORD_LENGTH = 20 class Application(object): def __init__(self): self.win = gtk.Window() self.win.connect('delete-event', lambda ...
PypiClean
/bayesflare-1.0.4.tar.gz/bayesflare-1.0.4/bayesflare/stats/bayes.py
from math import log import numpy as np from copy import copy, deepcopy from ..noise import estimate_noise_ps, estimate_noise_tv, highpass_filter_lightcurve, savitzky_golay from ..models import * from .general import * #from .thresholding import Thresholder from math import * import matplotlib.gridspec as gridspec impo...
PypiClean
/Newcalls-0.0.1-cp37-cp37m-win_amd64.whl/newcalls/dist/stream.js
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Stream = void 0; const events_1 = require("events"); const wrtc_1 = require("wrtc"); const binding_1 = require("./binding"); const buffer_optimized_1 = require("./buffer_optimized"); const os = require("os"); const utils_1 = require("....
PypiClean
/Ibid-0.1.1.tar.gz/Ibid-0.1.1/docs/api/ibid.config.rst
:mod:`ibid.config` -- Configuration Files ========================================= .. module:: ibid.config :synopsis: Configuration File Interface .. moduleauthor:: Ibid Core Developers This module handles Ibid's configuration file and provides helper functions for accessing configuration from sources and plugins...
PypiClean
/NlvWxPython-4.2.0-cp37-cp37m-win_amd64.whl/wx/lib/agw/pybusyinfo.py
# Version Info __version__ = "0.3" import wx _ = wx.GetTranslation class PyInfoFrame(wx.Frame): """ Base class for :class:`PyBusyInfo`. """ def __init__(self, parent, message, title, icon): """ Default class constructor. :param `parent`: the frame parent; :param `message`: ...
PypiClean
/CodeMetaPy-2.5.0.tar.gz/CodeMetaPy-2.5.0/codemeta/validation.py
import sys import os import datetime from rdflib import Graph, URIRef, BNode, Literal from rdflib.namespace import RDF, SH # type: ignore from typing import Union, Sequence, Optional, Tuple from codemeta.common import ( AttribDict, SDO, generate_uri, ) from pyshacl import validate as pyshacl_validate def...
PypiClean
/MergePythonSDK.ticketing-2.2.2-py3-none-any.whl/MergePythonSDK/hris/model/method_enum.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
/DuHast-1.0.7-py3-none-any.whl/duHast/APISamples/RevitPurgeUnusedeTransmit.py
''' ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ This module contains a purge unused function using Autodesk's own eTransmit plug in. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Base...
PypiClean
/NeuroTorch-0.0.1b2.tar.gz/NeuroTorch-0.0.1b2/src/neurotorch/dimension.py
import enum from typing import Iterable, List, Optional, Union class DimensionProperty(enum.Enum): """ Enum for dimension properties. NONE: No dimension property. This type of dimension can be used for features, neurons, unknown, etc. TIME: Time dimension. This type of dimension can be used for time series. SPA...
PypiClean
/ModelSEEDpy-0.3.0.tar.gz/ModelSEEDpy-0.3.0/modelseedpy/core/fbahelper.py
from __future__ import absolute_import import logging from chemicals import periodic_table import re from cobra.core import ( Gene, Metabolite, Model, Reaction, ) # !!! Gene, Metabolite, and Model are never used from cobra.util import solver as sutil # !!! sutil is never used import time from modelse...
PypiClean
/Heterogeneous_Highway_Env-0.0.3-py3-none-any.whl/HighwayEnv_iPLAN/road/lane.py
from abc import ABCMeta, abstractmethod from copy import deepcopy from typing import Tuple, List, Optional, Union import numpy as np from highway_env import utils from highway_env.road.spline import LinearSpline2D from highway_env.utils import wrap_to_pi, Vector, get_class_path, class_from_path class AbstractLane(ob...
PypiClean
/dirtrav-1.0.0.tar.gz/dirtrav-1.0.0/src/flask/views.py
import typing as t from . import typing as ft from .globals import current_app from .globals import request http_method_funcs = frozenset( ["get", "post", "head", "options", "delete", "put", "trace", "patch"] ) class View: """Subclass this class and override :meth:`dispatch_request` to create a generic...
PypiClean
/Flask-RestPoints-0.0.8.tar.gz/Flask-RestPoints-0.0.8/README.rst
Flask-RestPoints ================ `Flask-RestPoints`_ is an extension to `Flask`_ that allows adds a few health check endpoints (ping, time, and status) to the Flask application. :: from flask import Flask from flask_restpoints import RestPoints app = Flask(__name__) rest = RestPoints(app) @res...
PypiClean
/Flask-HashFS-0.3.0.tar.gz/Flask-HashFS-0.3.0/docs/versioning.rst
Versioning ========== This project follows `Semantic Versioning`_ with the following caveats: - Only the public API (i.e. the objects imported into the flask-hashfs module) will maintain backwards compatibility between MINOR version bumps. - Objects within any other parts of the library are not guaranteed to not brea...
PypiClean
/ChemistryPaperParser-0.0.1.tar.gz/ChemistryPaperParser-0.0.1/chempp/article_constr.py
import os from typing import Tuple from bs4 import BeautifulSoup try: import xml.etree.cElementTree as ET except ImportError: import xml.etree.ElementTree as ET from .article import ( Article, ArticleComponentCheck ) from .section_extr import * class ArticleFunctions: def __init__(self): ...
PypiClean
/Mopidy-Mopify-1.7.3.tar.gz/Mopidy-Mopify-1.7.3/mopidy_mopify/static/debug/src/app/player/player.controller.js
'use strict'; angular.module('mopify.player', [ 'spotify', 'mopify.services.mopidy', 'mopify.services.history', 'mopify.services.util' ]).controller('PlayerController', [ '$scope', '$rootScope', '$timeout', '$interval', '$window', 'Spotify', 'mopidyservice', 'History', 'util', function Playe...
PypiClean
/BRAILS-3.0.1.tar.gz/BRAILS-3.0.1/brails/modules/NumFloorDetector/lib/efficientnet/model.py
import torch from torch import nn from torch.nn import functional as F from .utils import ( round_filters, round_repeats, drop_connect, get_same_padding_conv2d, get_model_params, efficientnet_params, load_pretrained_weights, Swish, MemoryEfficientSwish, ) class MBConvBlock(nn.Modul...
PypiClean