id
stringlengths
1
265
text
stringlengths
6
5.19M
dataset_id
stringclasses
7 values
/Leonardo_Ai_SDK-1.19.1-py3-none-any.whl/leonardoaisdk/models/operations/uploadinitimage.py
from __future__ import annotations import dataclasses import requests as requests_http from dataclasses_json import Undefined, dataclass_json from leonardoaisdk import utils from typing import Optional @dataclass_json(undefined=Undefined.EXCLUDE) @dataclasses.dataclass class UploadInitImageRequestBody: r"""Quer...
PypiClean
/Agatsuma-0.2.176.default.3499b00918ca.tip.tar.gz/Agatsuma-0.2.176.default.3499b00918ca.tip/agatsuma/minicache.py
import threading # I've tried django RWLock. It is very slow, so I prefer # usual threading.Lock. Yes, it gives exclusive access for readers, # but faster for five times. #from agatsuma.third_party.rwlock import RWLock class MiniCache(object): """Implements thread-safe dict-based cache. Intended only for internal...
PypiClean
/GTW-1.2.6.tar.gz/GTW-1.2.6/_OMP/_SWP/Video.py
from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals from _MOM.import_MOM import * from _GTW import GTW import _GTW._OMP._SWP.Entity from _TFL.I18N import _, ...
PypiClean
/Auxjad-1.0.0.tar.gz/Auxjad-1.0.0/auxjad/core/GeneticAlgorithm.py
import random from typing import Optional, Union class GeneticAlgorithm(): r"""An implementation of a genetic algorithm. Takes a :attr:`target` list and a list of :attr:`genes` to prod`uce generations of individuals at each :meth:`__call__`. Fittest individual of the current generation can be accessed...
PypiClean
/BanterBot-0.0.5.tar.gz/BanterBot-0.0.5/banterbot/data/azure_neural_voices.py
from dataclasses import dataclass from typing import List from banterbot.data.enums import AzureNeuralVoiceGender @dataclass class AzureNeuralVoice: """ A dataclass representing an Azure Neural Voice profile for speech synthesis. Attributes: name (str): The name of the voice profile. voi...
PypiClean
/Mathics_Django-6.0.0-py3-none-any.whl/mathics_django/web/media/js/mathjax/localization/pt/MathMenu.js
MathJax.Localization.addTranslation("pt","MathMenu",{version:"2.7.9",isLoaded:true,strings:{Show:"Mostrar f\u00F3rmulas como",MathMLcode:"C\u00F3digo MathML",OriginalMathML:"MathML original",TeXCommands:"Comandos TeX",AsciiMathInput:"Entrada AsciiMathML",Original:"Formato original",ErrorMessage:"Mensagem de erro",Annot...
PypiClean
/CloudFerry-1.55.2.tar.gz/CloudFerry-1.55.2/cloudferry/lib/copy_engines/rsync_copier.py
import logging from oslo_config import cfg from cloudferry.lib.copy_engines import base from cloudferry.lib.utils import remote_runner from cloudferry.lib.utils import ssh_util LOG = logging.getLogger(__name__) CONF = cfg.CONF class RsyncRemoteTunnelOptions(remote_runner.RemoteTunnelOptions): def __init__(sel...
PypiClean
/CASCADe-spectroscopy-1.1.14.tar.gz/CASCADe-spectroscopy-1.1.14/cascade/verbose/verbose.py
# import copy import os import ast import warnings import numpy as np import astropy.units as u from astropy.visualization import quantity_support from matplotlib import pyplot as plt import seaborn as sns from skimage import exposure import statsmodels.distributions import copy from ..initialize import cascade_defaul...
PypiClean
/Flask-Security-3.0.0.tar.gz/Flask-Security-3.0.0/docs/index.rst
Flask-Security ============== Flask-Security allows you to quickly add common security mechanisms to your Flask application. They include: 1. Session based authentication 2. Role management 3. Password hashing 4. Basic HTTP authentication 5. Token based authentication 6. Token based account activation (optional) 7. T...
PypiClean
/CodeHarvester-0.0.2.tar.gz/CodeHarvester-0.0.2/README.md
CodeHarvester ============= CodeHarvester is a lightweight tool for merging different files respecting the requirements which are stated in those files. It would be useful in Web development for concatenating multiple files together. Currently it supports only JS like requirement definitions, but it is easily extensib...
PypiClean
/Adeepspeed-0.9.2.tar.gz/Adeepspeed-0.9.2/deepspeed/ops/transformer/inference/diffusers_attention.py
# DeepSpeed Team import math import torch from torch.autograd import Function import torch.nn as nn from packaging import version as pkg_version from deepspeed.utils.logging import log_dist from deepspeed.accelerator import get_accelerator from deepspeed.ops.op_builder import InferenceBuilder # Cuda modules will be ...
PypiClean
/LibRPG-0.4.zip/LibRPG-0.4/librpg/docs/reference/source/reference/world.rst
:mod:`world` -- Game world ========================== .. automodule:: librpg.world :members: :show-inheritance: Usage ----- A World is necessary for any game that makes full use of LibRPG. For tiny games than only need one map: 1. Instantiate the MapModel corresponding to that map. 2. Instantiate ...
PypiClean
/OASYS1-COMSYL-1.0.19.tar.gz/OASYS1-COMSYL-1.0.19/orangecontrib/comsyl/util/python_script.py
__author__ = 'labx' import sys import code import keyword import itertools from PyQt5 import QtGui, QtWidgets from PyQt5.QtCore import QItemSelectionModel from PyQt5.QtGui import ( QTextCursor, QFont, QColor, QPalette ) from PyQt5.QtCore import Qt, QRegExp def text_format(foreground=Qt.black, weight=QFont.Nor...
PypiClean
/FreePyBX-1.0-RC1.tar.gz/FreePyBX-1.0-RC1/freepybx/public/js/dojox/gfx/path.js
define("dojox/gfx/path",["./_base","dojo/_base/lang","dojo/_base/declare","./matrix","./shape"],function(g,_1,_2,_3,_4){ var _5=g.path={}; var _6=_2("dojox.gfx.path.Path",_4.Shape,{constructor:function(_7){ this.shape=_1.clone(g.defaultPath); this.segments=[]; this.tbbox=null; this.absolute=true; this.last={}; this.raw...
PypiClean
/BlueWhale3_Bioinformatics-4.1.32-py3-none-any.whl/orangecontrib/bioinformatics/kegg/api.py
from __future__ import absolute_import import os import warnings from datetime import datetime from operator import itemgetter from contextlib import closing import six from orangecontrib.bioinformatics.kegg import caching from orangecontrib.bioinformatics.kegg.types import Link, BInfo, Definition, OrganismSummary f...
PypiClean
/Aitomatic-Contrib-23.8.10.3.tar.gz/Aitomatic-Contrib-23.8.10.3/src/aito/util/data_proc/pandas.py
from __future__ import annotations from dataclasses import dataclass from itertools import chain from pathlib import Path from typing import Optional, Union from typing import Dict, List, Sequence, Tuple # Py3.9+: use built-ins from numpy import array, full, ndarray, tile from pandas import concat, DataFrame, Serie...
PypiClean
/Mezzanine-6.0.0.tar.gz/Mezzanine-6.0.0/mezzanine/pages/static/mezzanine/js/admin/page_tree.js
jQuery(function($) { var cookie = 'mezzanine-admin-tree'; var at = ('; ' + document.cookie).indexOf('; ' + cookie + '='); var ids = ''; if (at > -1) { ids = document.cookie.substr(at + cookie.length + 1).split(';')[0]; } var toggleID = function(opened, id) { // Add or remove t...
PypiClean
/Dhelpers-0.1.5rc1.tar.gz/Dhelpers-0.1.5rc1/Dlib/Dpowers/windowpower/windowobjects.py
from Dhelpers.baseclasses import (check_type, AdditionContainer) from Dhelpers.arghandling import (PositiveInt, CollectionWithProps) import inspect, time, functools from abc import ABC, abstractmethod class WindowNotFoundError(Exception): pass class WindowObject(ABC): #to be set by subclasses...
PypiClean
/IPRA-3.17.51-py3-none-any.whl/ipra/Model/Robot/chubbRobot.py
from genericpath import exists import os from ipra.Model.Robot.baseRobot import BaseRobot from bs4 import BeautifulSoup import time from selenium.webdriver.common.by import By from selenium.webdriver.support.ui import WebDriverWait from selenium.webdriver.support import expected_conditions as EC from selenium.webdriver...
PypiClean
/KD_Lib-0.0.32.tar.gz/KD_Lib-0.0.32/docs/usage/tutorials/optuna_with_KD_Lib.rst
========================================= Hyperparameter Tuning using Optuna ========================================= Hyperparameter optimization is one of the crucial steps in training machine learning models. It is often quite a tedious process with many parameters to optimize and long training times for models. O...
PypiClean
/Cherrydoor-0.8.1-py3-none-any.whl/cherrydoor/static/js/chartjs-adapter-date-fns.js
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(require("chart.js")):"function"==typeof define&&define.amd?define(["chart.js"],e):e((t=t||self).Chart)}(this,(function(t){"use strict";function e(t){if(null===t||!0===t||!1===t)return NaN;var e=Number(t);return isNaN(e)?e:e<0?Math.ceil(e):Math.floor(...
PypiClean
/BlastRadius-0.1.23.tar.gz/BlastRadius-0.1.23/blastradius/handlers/dot.py
import json import re import subprocess from collections import OrderedDict from collections import deque # 3rd party libraries import jinja2 # 1st party libraries from blastradius.graph import Graph, Node, Edge from blastradius.util import OrderedSet class DotGraph(Graph): def __init__(self, filename, file_co...
PypiClean
/Faker-19.3.1.tar.gz/Faker-19.3.1/faker/providers/person/hy_AM/__init__.py
from .. import Provider as PersonProvider class Provider(PersonProvider): formats_male = ("{{first_name_male}} {{last_name}}",) formats_female = ("{{first_name_female}} {{last_name}}",) formats = formats_male + formats_female # Source: https://en.wiktionary.org/wiki/Category:Armenian_male_given_nam...
PypiClean
/Effulge-0.0.1.tar.gz/Effulge-0.0.1/src/effulge/report_generator.py
from pyspark.sql.functions import sum # pylint: disable=import-error, redefined-builtin from pyspark.sql.functions import desc # pylint: disable=import-error from pandas import ExcelWriter # pylint: disable=import-error from .effulge import summarize_variance # pylint: disable=no-name-in-module d...
PypiClean
/EasyModels-1.6.2-py3-none-any.whl/easymodels/__main__.py
import requests, time from easymodels.utils import * import argparse import sys import os from crayons import * __version__ = "1.6.2" def create_config(): with open('config.ini', 'w') as f: config = ConfigParser() config['DEFAULTS'] = { 'dark-mode': False } config....
PypiClean
/Editra-0.7.20.tar.gz/Editra-0.7.20/src/extern/pygments/formatters/terminal.py
from pygments.formatter import Formatter from pygments.token import Keyword, Name, Comment, String, Error, \ Number, Operator, Generic, Token, Whitespace from pygments.console import ansiformat from pygments.util import get_choice_opt __all__ = ['TerminalFormatter'] #: Map token types to a tuple of color value...
PypiClean
/BWP-0.7.0.tar.gz/BWP-0.7.0/bwp/utils/datetimes.py
from django.utils import timezone from django.utils.dateparse import parse_datetime def datetime_round(dt=None, minute=True, hour=False, day=False): """ Округление времени до секунды, минуты, часа или дня. По умолчанию до минуты. до дня: rounded(day=True) до часа: rounded(hour=True)...
PypiClean
/EARL-pytorch-0.5.1.tar.gz/EARL-pytorch-0.5.1/rlgym_tools/extra_rewards/multi_model_rewards.py
from typing import List import numpy as np from rlgym.utils.gamestates import GameState, PlayerData from rlgym.utils.reward_functions import DefaultReward class MultiModelReward(DefaultReward): """ Handles the distribution of rewards to specific models where each model uses a different reward function ""...
PypiClean
/FitBenchmarking-1.0.0.tar.gz/FitBenchmarking-1.0.0/paper/paper.md
--- title: '`FitBenchmarking`: an open source `Python` package comparing data fitting software' tags: - Python - fitting - non-linear least squares authors: - name: Anders Markvardsen affiliation: 1 - name: Tyrone Rees affiliation: 1 - name: Michael Wathen affiliation: 1 - name: Andrew Lister ...
PypiClean
/KernelsPython-1.0.5-py3-none-any.whl/kerpy/shapes.py
import numpy as np from .objs.Kernel import Kernel def _shapes_generator( size=(3,3), scale = (1,1), condition = lambda x_c,y_c, scale : np.sqrt(scale[1]*x_c**2 + scale[0]*y_c**2)<1, mode="fill" ): x_arr,y_arr = np.meshgrid(np.arange(size[0]),np.arange(size[1])) if mode=="f...
PypiClean
/Coronacaster-0.2.0.tar.gz/Coronacaster-0.2.0/coronacaster/utils.py
def calculateStats(DataSeries, mode=None): """ Ignores nan's :param DataSeries: column of a dataframe :return: a 9-length vector with 0-min,1-max,2-mean,3-stddev,4-10%-percentile, 5-20%percentile,6-median,7-80%percentile,8-90%percentile """ import numpy as np import datetime...
PypiClean
/FreePyBX-1.0-RC1.tar.gz/FreePyBX-1.0-RC1/freepybx/public/js/dojox/widget/Dialog.js.uncompressed.js
require({cache:{ 'url:dojox/widget/Dialog/Dialog.html':"<div class=\"dojoxDialog\" tabindex=\"-1\" role=\"dialog\" aria-labelledby=\"${id}_title\">\n\t<div dojoAttachPoint=\"titleBar\" class=\"dojoxDialogTitleBar\">\n\t\t<span dojoAttachPoint=\"titleNode\" class=\"dojoxDialogTitle\" id=\"${id}_title\">${title}</span>\n...
PypiClean
/BlueWhale3_Geo-0.3.0-py3-none-any.whl/orangecontrib/geo/widgets/owmap.py
import numpy as np from AnyQt.QtCore import Qt from Orange.data import Table, Domain, ContinuousVariable from Orange.widgets import gui, settings from Orange.widgets.utils.widgetpreview import WidgetPreview from Orange.widgets.utils.itemmodels import DomainModel from Orange.widgets.widget import Msg from Orange.widgets...
PypiClean
/Adafruit_Blinka-8.20.1-py3-none-any.whl/adafruit_blinka/microcontroller/amlogic/a311d/pin.py
import re import gpiod from adafruit_blinka.microcontroller.generic_linux.libgpiod_pin import Pin chip0 = gpiod.Chip("0") chip1 = gpiod.Chip("1") if chip0.num_lines() < 20: aobus = 0 periphs = 1 periphs_offset = chip1.num_lines() - 85 else: aobus = 1 periphs = 0 periphs_offset = chip0.num_line...
PypiClean
/DevContest-0.4.tar.gz/DevContest-0.4/devcontest/public/jsmath/plugins/autoload.js
if (!window.jsMath) {window.jsMath = {}} if (jsMath.Autoload == null) {jsMath.Autoload = {}} jsMath.Add = function (dst,src) {for (var id in src) {dst[id] = src[id]}}; jsMath.document = document; // tex2math needs this jsMath.Add(jsMath.Autoload,{ Script: { request: null, // XMLHttpRequest object (if we can...
PypiClean
/Arbie-0.10.2.tar.gz/Arbie-0.10.2/README.md
# Arbie [![CodeFactor](https://www.codefactor.io/repository/github/owodunni/arbie/badge?s=26f81a3989ea34700be306a9bbd3b90735e9c5ce)](https://www.codefactor.io/repository/github/owodunni/arbie) [![wemake-python-styleguide](https://img.shields.io/badge/style-wemake-000000.svg)](https://github.com/wemake-services/wemake-...
PypiClean
/BactInspectorMax-0.1.3-py3-none-any.whl/bactinspector/dataframe_parsing_functions.py
import pandas as pd import numpy as np import os def create_refseq_species_info_df(local_mash_and_info_file_prefix, ref_and_rep_only = False): # read in species match table if local_mash_and_info_file_prefix is not None: refseq_species_info_file = local_mash_and_info_file_prefix + '.species.tsv' ...
PypiClean
/Misago-0.36.1.tar.gz/Misago-0.36.1/misago/static/misago/admin/momentjs/pa-in.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
/Ax_FuzzyTourney-0.8.1.tar.gz/Ax_FuzzyTourney-0.8.1/INSTALL.rst
============================================================================== Installation Instructions ============================================================================== To install this library itself, try one of: - Run the following command inside this directory:: $ python setup.py install - If y...
PypiClean
/FRB-1.1.4.tar.gz/FRB-1.1.4/docs/_build/html/_static/websupport.js
(function($) { $.fn.autogrow = function() { return this.each(function() { var textarea = this; $.fn.autogrow.resize(textarea); $(textarea) .focus(function() { textarea.interval = setInterval(function() { $.fn.autogrow.resize(textarea); }, 500); }) .blur(fu...
PypiClean
/0-orchestrator-1.1.0a7.tar.gz/0-orchestrator-1.1.0a7/zeroos/orchestrator/sal/healthchecks/cpu_mem_core.py
from js9 import j from ..healthcheck import HealthCheckRun descr = """ Checks average memory and CPU usage/load. If average per hour is higher than expected an error condition is thrown. For both memory and CPU usage throws WARNING if more than 80% used and throws ERROR if more than 95% used. Result will be shown in...
PypiClean
/DragonPyEmulator-0.9.0-py3-none-any.whl/dragonpy/utils/bits.py
def is_bit_set(value, bit): """ Return True/False if the bit at offset >bit< is 1 or 0 in given value. bit 7 | | bit 0 ...10111101 e.g.: >>> is_bit_set(0x01, bit=0) # 00000001 True >>> is_bit_set(0xfd, bit=1) # 11111101 False >>> is_bit_set(int('10000000', 2), bit=7) ...
PypiClean
/KolejkaObserver-0.1.202308091427-py3-none-any.whl/kolejka/observer/server.py
from kolejka.common import settings import cgi import datetime import hashlib import http.server import json import logging from multiprocessing import Process import os import re import signal import socket import socketserver import time import traceback from urllib.parse import urlparse, urlencode, parse_qsl impor...
PypiClean
/NebulaBayes-0.9.9.tar.gz/NebulaBayes-0.9.9/README.rst
NebulaBayes is a package for astronomers that aims to provide a very general way to compare observed emission line fluxes to model predictions, in order to constrain physical parameters such as the nebular metallicity. NebulaBayes is provided with two photoionization model grids produced using the MAPPINGS 5.1 model. ...
PypiClean
/2022_2_gces_ifpf-0.3.0.tar.gz/2022_2_gces_ifpf-0.3.0/src/parser/model_parser.py
from parser.parser_base import ParserBase from parser.const import model_type class ModelParser(ParserBase): def __init__(self, columns_alias): self.columns_alias = columns_alias self.default_keyboard_smash_values = { 'ksmash_sequence_vowels': 1.00, 'ksmash_sequence_conson...
PypiClean
/KataBankOCR-0.8.0.tar.gz/KataBankOCR-0.8.0/parse/generators/accounts_from_superpositions.py
"generator that yields Accounts and the functions that support it" from itertools import product from toolz import pipe, curry from toolz.curried import map as cmap from parse import settings from parse.validators import Validate _superpositions_per_account = settings.figures_per_entry _maximum_possible_errors_in_a...
PypiClean
/DendroPy-4.6.1.tar.gz/DendroPy-4.6.1/src/dendropy/legacy/treesim.py
############################################################################## ## DendroPy Phylogenetic Computing Library. ## ## Copyright 2010-2015 Jeet Sukumaran and Mark T. Holder. ## All rights reserved. ## ## See "LICENSE.rst" for terms and conditions of usage. ## ## If you use this work or any portion there...
PypiClean
/Netzob-2.0.0.tar.gz/Netzob-2.0.0/src/netzob/Model/Vocabulary/Domain/Variables/Scope.py
#+---------------------------------------------------------------------------+ #| 01001110 01100101 01110100 01111010 01101111 01100010 | #| | #| Netzob : Inferring communication protocols | #+-...
PypiClean
/GeoNode-3.2.0-py3-none-any.whl/geonode/monitoring/frontend/monitoring/src/components/organisms/geonode-status/index.js
import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import SelectField from 'material-ui/SelectField'; import MenuItem from 'material-ui/MenuItem'; import HoverPaper from '../../atoms/hover-paper'; import CPU from '../../cels/cpu'; import Memory from '../../cels/memory'...
PypiClean
/Neodroid-0.4.9-py36-none-any.whl/neodroid/environments/environment.py
import logging from abc import ABC, abstractmethod from pathlib import Path from types import coroutine from typing import Any from neodroid import PROJECT_APP_PATH from neodroid.utilities import EnvironmentSnapshot from neodroid.utilities.spaces import ActionSpace, ObservationSpace, SignalSpace from neodroid.utilitie...
PypiClean
/Hyperion-0.9.10.tar.gz/Hyperion-0.9.10/hyperion/grid/cartesian_grid.py
from __future__ import print_function, division import hashlib from copy import deepcopy import h5py import numpy as np from astropy import log as logger from ..util.meshgrid import meshgrid_nd from ..util.functions import FreezableClass, is_numpy_array, monotonically_increasing, link_or_copy from .grid_helpers impo...
PypiClean
/MaterialDjango-0.2.5.tar.gz/MaterialDjango-0.2.5/materialdjango/static/materialdjango/components/bower_components/web-animations-js/src/keyframe-effect-constructor.js
(function(shared, scope, testing) { var disassociate = function(effect) { effect._animation = undefined; if (effect instanceof window.SequenceEffect || effect instanceof window.GroupEffect) { for (var i = 0; i < effect.children.length; i++) { disassociate(effect.children[i]); } } }...
PypiClean
/KratosSwimmingDEMApplication-9.2.0-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl/KratosMultiphysics/SwimmingDEMApplication/derivative_recovery/zhang_guo_recoverer.py
import KratosMultiphysics as Kratos import KratosMultiphysics.FluidDynamicsApplication as Fluid from . import recoverer class ZhangGuoGradientRecoverer(recoverer.GradientRecoverer): def __init__(self, project_parameters, model_part): recoverer.GradientRecoverer.__init__(self, project_parameters, model_part...
PypiClean
/FreePyBX-1.0-RC1.tar.gz/FreePyBX-1.0-RC1/freepybx/public/js/dojo/dnd/Selector.js
define("dojo/dnd/Selector",["../main","./common","./Container"],function(_1){ _1.declare("dojo.dnd.Selector",_1.dnd.Container,{constructor:function(_2,_3){ if(!_3){ _3={}; } this.singular=_3.singular; this.autoSync=_3.autoSync; this.selection={}; this.anchor=null; this.simpleSelection=false; this.events.push(_1.connect...
PypiClean
/Aruna-Python-API-1.1.0rc6.tar.gz/Aruna-Python-API-1.1.0rc6/aruna/api/internal/v1/bundler_pb2_grpc.py
"""Client and server classes corresponding to protobuf-defined services.""" import grpc from aruna.api.internal.v1 import bundler_pb2 as aruna_dot_api_dot_internal_dot_v1_dot_bundler__pb2 class InternalBundlerServiceStub(object): """Missing associated documentation comment in .proto file.""" def __init__(se...
PypiClean
/Enarksh-0.9.0.tar.gz/Enarksh-0.9.0/enarksh/spawner/Spawner.py
import logging import os import pwd import signal import zmq import enarksh from enarksh.event.Event import Event from enarksh.event.EventActor import EventActor from enarksh.event.EventController import EventController from enarksh.message.ExitMessage import ExitMessage from enarksh.message.MessageController import ...
PypiClean
/HaravanAPI-2.1.1.tar.gz/HaravanAPI-2.1.1/scripts/haravan_api.py
import haravan import code import sys import os import os.path import glob import subprocess import functools import yaml import six def start_interpreter(**variables): console = type('haravan ' + haravan.version.VERSION, (code.InteractiveConsole, object), {}) import readline console(variables).interact()...
PypiClean
/AI4Water-1.6.tar.gz/AI4Water-1.6/ai4water/tf_models.py
__all__ = ["DualAttentionModel", "InputAttentionModel"] from easy_mpl import imshow from .backend import tf, plt, np, os from .backend import keras from .functional import Model as FModel from ai4water.utils.utils import print_something from .utils.utils import DataNotFound from ai4water.nn_tools import check_act_fn ...
PypiClean
/OctoPyClient-1.0.2.tar.gz/OctoPyClient-1.0.2/octopyclient/octopyclient.py
__version__ = "1.0.2" import sys import os import getopt import logging import yaml import gi gi.require_version('Gtk', '3.0') from gi.repository import Gtk from .ui import UI from .utils import getStylePath, setStyleBase from .common import Config def eprint(*args, **kwargs): print(*args, file=sys.stderr, **kw...
PypiClean
/CompareSqlRedshiftFramework-0.0.1.tar.gz/CompareSqlRedshiftFramework-0.0.1/src/Compare_SQL_RedShift.py
import datetime import json import multiprocessing import socket import urllib import warnings import numpy as np import pandas as pd import psutil from jinja2 import Environment, FileSystemLoader from DaskUtil import DaskMethods from MasterClass import Datavalidation dv = Datavalidation() dm = DaskMethods() name_of_...
PypiClean
/ISRSpectrum-3.2.2-py3-none-any.whl/ISRSpectrum-3.2.2.dist-info/LICENSE.md
The MIT License (MIT) Copyright (c) 2015 John Swoboda Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, pub...
PypiClean
/CloudHummingbird-1.1.0-py3-none-any.whl/Hummingbird/AWS/README.md
# Hummingbird on AWS Batch For jobs specified using AWS, Hummingbird will launch jobs using AWS Batch. You will need to prepare for a customized docker image including the AWS CLI for your applications. This tutorial will include the instructions and preparation steps for your jobs. ## Use published Docker Image See ...
PypiClean
/Flasko-0.1.0-py3-none-any.whl/flasko/app.py
from flask import Flask from flask_json import as_json def Flasko(name): app = Flask(__name__) # ----- ROUTES ------ _set_routes(app) # TODO test cors (mock origin .. ) with LOCAL _setup_cors(app) # default config app.config.update(JSON_ADD_STATUS=False,) return app def _set_rout...
PypiClean
/Fuzzy_Clustering-1.0.0.tar.gz/Fuzzy_Clustering-1.0.0/src/fuzzy_clustering/core/fuzzy.py
import numpy as np def FCM(X, c=3, m=2, epsi=0.001): # number of samples n = X.shape[0] # number of features per sample f = X.shape[1] # generate random membership matrix U0 = np.random.rand(n, c) # this step is to make the membership values across each cluseter equal to 1 U0 = U0 / U...
PypiClean
/JoUtil-1.3.3-py3-none-any.whl/JoTools/utils/FileOperationUtil.py
import shutil import os import datetime import collections # fixme 绑定 FTP 功能,能操作远程的文件,比如读取远程文件 class FilterFun(): """过滤函数,一般用法是作为参数传入 FileOperateUtil.re_all_file 函数""" @staticmethod def get_filter_about_file_size(assign_size, mode='lt'): """根据大小进行过滤, lt:过滤掉小于阈值的路径,bt:过滤掉大于阈值的路径, eq:等于""" ...
PypiClean
/KratosFluidDynamicsApplication-9.4-cp38-cp38-win_amd64.whl/KratosMultiphysics/FluidDynamicsApplication/apply_wall_law_process.py
import KratosMultiphysics import KratosMultiphysics.FluidDynamicsApplication as KratosCFD def Factory(Settings, Model): if not isinstance(Settings, KratosMultiphysics.Parameters): raise Exception("Expected input shall be a Parameters object, encapsulating a json string.") return ApplyWallLawProcess(Mod...
PypiClean
/Gbtestapi0.4-0.1a10.tar.gz/Gbtestapi0.4-0.1a10/src/gailbot/core/utils/threads.py
from dataclasses import dataclass from concurrent.futures import ThreadPoolExecutor, Future, wait from typing import Tuple, Callable, List, Dict, Any, Union from gailbot.core.utils.logger import makelogger logger = makelogger("thread") #### Custom Exceptions for Threads #### class TaskNotFoundException(Exception):...
PypiClean
/FamcyDev-0.3.71-py3-none-any.whl/Famcy/bower_components/bootstrap-table/CHANGELOG.md
ChangeLog --------- ### 1.18.3 #### Core - **Update:** Fixed negative number bug when searching with comparison. - **Update:** Fixed non-conform HTML-Standard problems. - **Update:** Fixed `td` width bug using card view. - **Update:** Fixed exact match problem when searching term with accent. - **Update:** Update `p...
PypiClean
/AMPAL-1.4.0.tar.gz/AMPAL-1.4.0/src/ampal/ligands.py
from ampal.base_ampal import Polymer, Monomer class LigandGroup(Polymer): """A container for `Ligand` `Monomers`. Parameters ---------- monomers : Monomer or [Monomer], optional Monomer or list containing Monomer objects to form the Polymer(). polymer_id : str, optional An ID tha...
PypiClean
/Indomielibs-2.0.106.tar.gz/Indomielibs-2.0.106/pyrogram/types/user_and_chats/chat.py
from datetime import datetime from typing import Union, List, Optional, AsyncGenerator, BinaryIO import pyrogram from pyrogram import raw, enums from pyrogram import types from pyrogram import utils from ..object import Object class Chat(Object): """A chat. Parameters: id (``int``): Uni...
PypiClean
/CmonCrawl-1.0.3.tar.gz/CmonCrawl-1.0.3/cmoncrawl/processor/extraction/utils.py
from typing import Any, Callable, Dict, List, Sized from bs4 import Tag from cmoncrawl.common.types import PipeMetadata from cmoncrawl.common.loggers import metadata_logger """ Whole point of these functions is that is possible to use them without lamdas which looks ugly imo. The reason for using transform is that...
PypiClean
/Flask-CKEditor-0.4.6.tar.gz/Flask-CKEditor-0.4.6/flask_ckeditor/static/full/plugins/specialchar/dialogs/lang/ro.js
/* Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */ CKEDITOR.plugins.setLang("specialchar","ro",{euro:"Simbol EURO €",lsquo:"Ghilimea simplă stânga",rsquo:"Ghilimea simplă dreapta",ldquo:"Ghilimea dublă stâ...
PypiClean
/LinkExchange-0.4.tar.gz/LinkExchange-0.4/linkexchange/commands/lxrefresh.py
import sys import os.path import optparse import logging from linkexchange.config import file_config, ConfigError def main(): op = optparse.OptionParser( usage = "%prog -c linkexchange.cfg [other options] [name=value...]", description = ( "Refresh links database using conf...
PypiClean
/BFG-Y2H-0.1.2.tar.gz/BFG-Y2H-0.1.2/bfg_analysis/evaluation.py
import score import noz_score from legacy import param import itertools import pandas as pd import numpy as np def load_litbm(lit): """ load litbm to pandas dataframe input cols: AD DB output cols: AD DB Interactions """ print(lit) litbm = pd.read_table(lit) litbm = litbm.astype(str) ...
PypiClean
/Flask_AdminLTE3-1.0.9-py3-none-any.whl/flask_adminlte3/static/plugins/moment/locale/uz-latn.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
/GenIce-1.0.11.tar.gz/GenIce-1.0.11/genice/lattices/16.py
desc={"ref": {"ice 16": 'Falenty, A., Hansen, T. C. & Kuhs, W. F. Formation and properties of ice XVI obtained by emptying a type sII clathrate hydrate. Nature 516, 231-233 (2014).', "C15": 'Dutour Sikirić, Mathieu, Olaf Delgado-Friedrichs, and Michel Deza. “Space Fullerenes: a Computer Search for New Fr...
PypiClean
/CBintentBox-0.3.0a3-py3-none-any.whl/intentBox/coreference/base.py
class CoreferenceSolver: cache = {} contexts = {} prev_sentence = "" prev_solved = "" def __init__(self, lang="en"): self.lang = lang @staticmethod def extract_replacements(original, solved): a = original.lower() b = solved.lower() chunk = a.split(" ") ...
PypiClean
/ESMValTool-2.9.0-py3-none-any.whl/esmvaltool/diag_scripts/shared/README.md
ESMVal python library ===================== General structure ----------------- This directory contains usefull scripts and tools for ESMVal which are to support the writing of diagnostics in a clean and short way. In general you have two options to include code into this library. A) you have some small code snippe...
PypiClean
/KratosDEMApplication-9.4-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl/KratosMultiphysics/DEMApplication/verlet_continuum_sphere_strategy.py
from KratosMultiphysics import * from KratosMultiphysics.DEMApplication import * # DEM Application using Velocity Verlet 2-step scheme for continuum import KratosMultiphysics.DEMApplication.continuum_sphere_strategy as SolverStrategy BaseExplicitStrategy = SolverStrategy.ExplicitStrategy class ExplicitStrategy(Bas...
PypiClean
/FastFlask-1.2.32-py3-none-any.whl/jinja2/nodes.py
import inspect import operator import typing as t from collections import deque from markupsafe import Markup from .utils import _PassArg if t.TYPE_CHECKING: import typing_extensions as te from .environment import Environment _NodeBound = t.TypeVar("_NodeBound", bound="Node") _binop_to_func: t.Dict[str, t....
PypiClean
/Faker-19.3.1.tar.gz/Faker-19.3.1/faker/providers/job/ru_RU/__init__.py
from .. import Provider as BaseProvider # Russian jobs taken from the Wikipedia page # https://ru.wikipedia.org/wiki/%D0%A1%D0%BF%D0%B8%D1%81%D0%BE%D0%BA_%D0%BF%D1%80%D0%BE%D1%84%D0%B5%D1%81%D1%81%D0%B8%D0%B9 class Provider(BaseProvider): jobs = [ "Авиадиспетчер", "Авиатехник", "Авиационн...
PypiClean
/Cydra-0.2.tar.gz/Cydra-0.2/cydra/datasource/mongo.py
import sys from pymongo import Connection, ASCENDING, binary from cydra.component import Component, implements from cydra.datasource import IDataSource, IPubkeyStore from cydra.project import is_valid_project_name, Project class MongoDataSource(Component): """Datasource that saves projects into a MongoDB datab...
PypiClean
/K_AIKO-0.5.2-py3-none-any.whl/kaiko/utils/markups.py
import re import contextlib import enum import dataclasses from typing import Optional, Union, Sequence import wcwidth # pair: [tag=param]...[/] # single: [tag=param/] # escape: [[, ]] # basic: # csi: [csi=2A/] => "\x1b[2A" # sgr: [sgr=2;3]...[/] => "\x1b[2;3m...\x1b[m" # template: # pair: [color=green]>>> ...
PypiClean
/FastNLP-1.0.1.tar.gz/FastNLP-1.0.1/fastNLP/core/controllers/loops/evaluate_batch_loop.py
from typing import Optional, Callable, Dict __all__ = [ 'EvaluateBatchLoop' ] from .loop import Loop from fastNLP.core.log import logger from fastNLP.core.utils import match_and_substitute_params class EvaluateBatchLoop(Loop): r""" ``EvaluateBatchLoop`` 针对一个 dataloader 的数据完成一个 epoch 的评测迭代过程; :param...
PypiClean
/Chatbot_by_IE-0.2.26-py3-none-any.whl/app/addressbook.py
from collections import UserDict from datetime import datetime from .information import start_info_ab, help_info_ab from .output import AddressBookOutput import pickle from prompt_toolkit import prompt from .prompt_tool_ab import Completer, RainbowLexer import re from .logger import get_logger filename = "addressboo...
PypiClean
/Deeplodocus-0.3.0-py3-none-any.whl/deeplodocus/flags/module.py
import torch import torch.nn.functional from deeplodocus.utils import get_main_path import deeplodocus.app.transforms as deep_tfm import deeplodocus.app.optimizers as deep_optim import deeplodocus.app.models as deep_models import deeplodocus.app.losses as deep_losses import deeplodocus.app.metrics as deep_metrics impo...
PypiClean
/EOxServer-1.2.12-py3-none-any.whl/eoxserver/core/util/xmltools.py
from django.utils.six import string_types import logging try: from lxml import etree except ImportError: try: # Python 2.5 import xml.etree.cElementTree as etree except ImportError: try: # Python 2.5 import xml.etree.ElementTree as etree except ImportE...
PypiClean
/IMNN-0.3.2-py3-none-any.whl/imnn/imnn/aggregated_simulator_imnn.py
import jax import jax.numpy as np from functools import partial from imnn.imnn._aggregated_imnn import _AggregatedIMNN from imnn.imnn import SimulatorIMNN from imnn.utils import jacrev, value_and_jacrev, add_nested_pytrees from imnn.utils.utils import _check_splitting class AggregatedSimulatorIMNN(_AggregatedIMNN, Si...
PypiClean
/BGAscraper-0.0.1.tar.gz/BGAscraper-0.0.1/project/bot.py
from email.mime import image import requests from bs4 import BeautifulSoup import time from selenium import webdriver import json import shutil from selenium.common.exceptions import NoSuchElementException class Scraper: def __init__(self) -> None: self.url = None self.soup = None self.dri...
PypiClean
/ICQ_client_study-0.1.2-py3-none-any.whl/client/client/transport.py
import socket import time import logging import threading import hashlib import hmac import binascii from PyQt5.QtCore import pyqtSignal, QObject from client_dist.client.common.utils import * from client_dist.client.common.variables import * from client_dist.client.common.errors import ServerError logger = logging.ge...
PypiClean
/MPInterfaces_Latest_Test-1.0.2.tar.gz/MPInterfaces_Latest_Test-1.0.2/mpinterfaces/mat2d/pourbaix/analysis.py
from __future__ import print_function, division, unicode_literals import os import matplotlib as mpl mpl.use('Agg') import matplotlib.pyplot as plt from matplotlib.patches import Polygon from monty.serialization import loadfn from pymatgen import Element from pymatgen.analysis.pourbaix.analyzer import PourbaixAnaly...
PypiClean
/Newcalls-0.0.1-cp37-cp37m-win_amd64.whl/newcalls/node_modules/readable-stream/lib/internal/streams/end-of-stream.js
'use strict'; var ERR_STREAM_PREMATURE_CLOSE = require('../../../errors').codes.ERR_STREAM_PREMATURE_CLOSE; function once(callback) { var called = false; return function () { if (called) return; called = true; for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { ...
PypiClean
/InstagramIG-0.0.1.tar.gz/InstagramIG-0.0.1/README.md
<h1 align="center">InstagramIG</h1> <p align="center">It is a useful project for developers that includes useful tools for Instagram</p> ![](https://img.shields.io/badge/SidraELEzz-orange?style=for-the-badge&logo=python.svg) <p align="center"> <a href="#"><img title="Made in UAE" src="https://img.shields.io/badge/MAD...
PypiClean
/Centre.PyCS-0.2.0.1.tar.gz/Centre.PyCS-0.2.0.1/pycs/Connector.py
from pycs.api.API import Transaction, TransactionId import sys from pycs.keys import Keys from pycs.clientex import ClientEx import base58check #import keys #from .api.API import Transaction, TransactionId #from .keys import Keys #from .clientex import ClientEx class Connector(object): def __init__(self, address...
PypiClean
/APImetrics-0.2.2.tar.gz/APImetrics-0.2.2/README.rst
**APImetrics-Python-Client** Command line-callable Python library that makes it easier to call APImetrics' APIs. For use with your APImetrics monitoring service. Please sign up at http://client.apimetrics.io and create an API key at https://client.apimetrics.io/settings/api-key **Installation** Create a settings fi...
PypiClean
/DfxHelper-0.0.35-py3-none-any.whl/dfx_utils/helper.py
from typing import Any import asyncio, logging from functools import partial from datetime import datetime import random, string, hashlib, json, datetime, time def singleton(cls): """ 单例模式 """ instances = dict() def inner(*args, **kwargs): if cls not in instances: instances[cls] = cls...
PypiClean
/AthenaTwitchLib-0.9.1.tar.gz/AthenaTwitchLib-0.9.1/README.md
# - AthenaTwitchLib - [![pypi](https://img.shields.io/pypi/v/athenatwitchlib)](https://pypi.org/project/athenatwitchlib/) [![GitHub license](https://img.shields.io/github/license/Athena-Chaos-Driven-Code/AthenaTwitchLib)](https://github.com/Athena-Chaos-Driven-Code/AthenaTwitchLib/blob/master/LICENSE) [![Discord](https...
PypiClean
/HavNegpy-1.2.tar.gz/HavNegpy-1.2/docs/_build/html/_build/html/_build/html/_build/doctrees/nbsphinx/_build/doctrees/nbsphinx/_build/html/hn_module_tutorial.ipynb
# Tutorial for the HN module of HavNegpy package ``` import numpy as np import pandas as pd import matplotlib.pyplot as plt import os import HavNegpy as dd %matplotlib qt os.chdir(r'M:\Marshall_Data\mohamed_data\mohamed_data\n44') def create_dataframe(f): col_names = ['Freq', 'T', 'Eps1', 'Eps2'] #f ...
PypiClean
/Mathics_Django-6.0.0-py3-none-any.whl/mathics_django/web/media/js/mathjax/jax/output/HTML-CSS/fonts/STIX/fontdata-extra.js
(function(h){var q="2.7.9";var n=h.FONTDATA.DELIMITERS;var l="STIXGeneral",i="STIXGeneral-bold",k="STIXVariants",o="STIXNonUnicode",f="STIXSizeOneSym",d="STIXSizeTwoSym",b="STIXSizeThreeSym",a="STIXSizeFourSym",p="STIXSizeFiveSym",j="STIXIntegralsD";var m="H",g="V";var e={61:{dir:m,HW:[[0.685,l]],stretch:{rep:[61,l]}},...
PypiClean
/Montreal-Forced-Aligner-3.0.0a3.tar.gz/Montreal-Forced-Aligner-3.0.0a3/montreal_forced_aligner/tokenization/simple.py
from __future__ import annotations import re import typing from montreal_forced_aligner.data import BRACKETED_WORD, CUTOFF_WORD, LAUGHTER_WORD, OOV_WORD from montreal_forced_aligner.helper import make_re_character_set_safe __all__ = ["SanitizeFunction", "SplitWordsFunction", "SimpleTokenizer"] class SanitizeFuncti...
PypiClean