id
stringlengths
1
265
text
stringlengths
6
5.19M
dataset_id
stringclasses
7 values
/DendroPy_calver-2023.330.2-py3-none-any.whl/dendropy/interop/itol.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
/ClipExtractor-0.0.2.tar.gz/ClipExtractor-0.0.2/README.md
# ClipExtractor This is a Python package for easy to the ai art prompts extracting by using clip models to getting image captioning .to get some information for any artworks, portrait, art name, art movement, Model, medium, Artist, Trending, or Flavors. special thanks to best friend [@pharmapsychotic](https://twitter...
PypiClean
/FuzzyClassificator-1.3.84-py3-none-any.whl/FuzzyRoutines.py
# FuzzyClassificator - this program uses neural networks to solve classification problems, # and uses fuzzy sets and fuzzy logic to interpreting results. # Copyright (C) 2017, Timur Gilmullin # e-mail: tim55667757@gmail.com # Library contains some routines for work with fuzzy logic operators, fuzzy datasets and fuz...
PypiClean
/Hyperstatic-0.2.0-cp38-cp38-win_amd64.whl/hyperstatic/app/general/result/result.py
from hyperstatic.app.general.orm import ResultJointDisplacement,ResultJointReaction,ResultFrameForce,ResultModalPeriod def get_result_joint_displacement(self,name,loadcase): """ Get the result in the database. params: name: str, name of joint loadcase: str, name of loadcase return:...
PypiClean
/IDS_XS_TOOLS_UiS-0.3-py3-none-any.whl/ids_xs_tools/ImageFunctions.py
import cv2 from ids_xs_tools.QR_Reader import QR_Scanner, QR_Scanner_visualized import ids_xs_tools.config as config from pyueye import ueye import time from ids_xs_tools.pyueye_example_utils import ImageData, ImageBuffer import ids_xs_tools.OpenCV_to_RAPID as OpenCV_to_RAPID # TODO: Extend the program with threading...
PypiClean
/Buildpan_CLI-1.0-py3-none-any.whl/ci_commands/init.py
import requests import json import pathlib import datetime import click from buildpan import github_webhook, bitbucket_webhook, encrypt from buildpan import setting, yaml_reader from pyfiglet import Figlet info = setting.info # getting env variable fetch_log = info["FETCH_LOG_URL"] @click.command() def ini...
PypiClean
/BiblioPixel-3.4.46.tar.gz/BiblioPixel-3.4.46/bibliopixel/drivers/SPI/APA102.py
from ... colors import gamma from .. channel_order import ChannelOrder from . base import SPIBase class APA102(SPIBase): """Driver for APA102/SK9822 based LED strips on devices like the Raspberry Pi and BeagleBone Provides the same parameters as :py:class:`bibliopixel.drivers.SPI.SPIBase` """ ...
PypiClean
/Annalist-0.5.18.tar.gz/Annalist-0.5.18/annalist_root/annalist/views/fields/render_file_upload.py
from __future__ import unicode_literals from __future__ import absolute_import, division, print_function """ Renderer and value mapper for file upload used to upload a resource into the local data store. """ __author__ = "Graham Klyne (GK@ACM.ORG)" __copyright__ = "Copyright 2014, G. Klyne" __license__ = ...
PypiClean
/HavNegpy-1.2.tar.gz/HavNegpy-1.2/docs/_build/html/_build/doctrees/nbsphinx/_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
/django-chuck-0.2.3.tar.gz/django-chuck/modules/feincms/project/static/scripts/libs/tiny_mce/plugins/table/editor_plugin.js
(function(d){var e=d.each;function c(g,h){var j=h.ownerDocument,f=j.createRange(),k;f.setStartBefore(h);f.setEnd(g.endContainer,g.endOffset);k=j.createElement("body");k.appendChild(f.cloneContents());return k.innerHTML.replace(/<(br|img|object|embed|input|textarea)[^>]*>/gi,"-").replace(/<[^>]+>/g,"").length==0}functio...
PypiClean
/CramUnit-0.8.tar.gz/CramUnit-0.8/bin/run_cram_unit.py
import os import sys import argparse import logging import time import warnings import glob import cram_unit import cram_unit.crammer as crammer __version__ = cram_unit.get_version() log = logging.getLogger() def _setup_log(level=logging.DEBUG): handler = logging.StreamHandler(sys.stdout) str_formatter = '...
PypiClean
/DXC-Industrialized-AI-Starter-3.2.0.tar.gz/DXC-Industrialized-AI-Starter-3.2.0/dxc/ai/publish_microservice/publish_new_microservice.py
from git import Repo from github import Github import os.path import git, os, shutil from dxc.ai.global_variables import globals_file import pickle import pandas as pd from getpass import getpass def create_git_repo(github_design, pat_key): gitrepo = Github(pat_key) user = gitrepo.get_user() git_repo_create = us...
PypiClean
/NeuroUnits-0.1.2.tar.gz/NeuroUnits-0.1.2/src/neurounits/visitors/common/ast_symbol_dependancies.py
# ------------------------------------------------------------------------------- # Copyright (c) 2012 Michael Hull. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # - Redistributions of sourc...
PypiClean
/ClueDojo-1.4.3-1.tar.gz/ClueDojo-1.4.3-1/src/cluedojo/static/dojox/charting/Theme.js
if(!dojo._hasResource["dojox.charting.Theme"]){ dojo._hasResource["dojox.charting.Theme"]=true; dojo.provide("dojox.charting.Theme"); dojo.require("dojox.color"); dojo.require("dojox.color.Palette"); (function(){ var _1=dojox.charting; _1.Theme=function(_2){ _2=_2||{}; var _3=_1.Theme._def; dojo.forEach(["chart","plota...
PypiClean
/GenIce2-2.1.7.1.tar.gz/GenIce2-2.1.7.1/genice2/lattices/Struct42.py
from genice2.cell import cellvectors import genice2.lattices desc = {"ref": {"SpaceFullerene": 'Sikiric 2010'}, "usage": "No options available.", "brief": "A space fullerene." } class Lattice(genice2.lattices.Lattice): def __init__(self): self.pairs = """ 158 332 22...
PypiClean
/ExcelConverter-0.1.35.tar.gz/ExcelConverter-0.1.35/converter/excel_compiler.py
import networkx as nx from networkx.classes.digraph import DiGraph from .excel_node import * from .excel_util import * from .excel_lib import * from .excel_wrapper import ExcelOpxWrapper as ExcelWrapperImpl from .excel_wrapper import OpxRange from .tokenizer import ExcelParser, f_token logger = logging.getLogger(__nam...
PypiClean
/Cubane-1.0.11.tar.gz/Cubane-1.0.11/cubane/backend/accounts/forms.py
from __future__ import unicode_literals from django import forms from django.contrib.auth.models import User, Group from cubane.forms import BaseModelForm, BaseForm from cubane.backend.accounts.models import ProxyUser, ProxyGroup, ProxyPermission class AccountForm(BaseModelForm): """ Form for editing staff ac...
PypiClean
/MaterialDjango-0.2.5.tar.gz/MaterialDjango-0.2.5/materialdjango/static/materialdjango/components/bower_components/prism/components/prism-gherkin.min.js
Prism.languages.gherkin={pystring:{pattern:/("""|''')[\s\S]+?\1/,alias:"string"},comment:{pattern:/((?:^|\r?\n|\r)[ \t]*)#.*/,lookbehind:!0},tag:{pattern:/((?:^|\r?\n|\r)[ \t]*)@\S*/,lookbehind:!0},feature:{pattern:/((?:^|\r?\n|\r)[ \t]*)(?:Ability|Ahoy matey!|Arwedd|Aspekt|Besigheid Behoefte|Business Need|Caracteristi...
PypiClean
/GenIce2-2.1.7.1.tar.gz/GenIce2-2.1.7.1/genice2/lattices/sIII.py
import genice2.lattices from genice2.cell import cellvectors class Lattice(genice2.lattices.Lattice): def __init__(self): self.density = 0.8 # default self.density self.bondlen = 3 # bond threshold self.coord = "absolute" self.cell = """ 22.3842 22.3842 11.6954 ...
PypiClean
/GoogleAppEngineMapReduce-1.9.22.0.tar.gz/GoogleAppEngineMapReduce-1.9.22.0/mapreduce/static/jquery.json-2.2.min.js
(function($){$.toJSON=function(o) {if(typeof(JSON)=='object'&&JSON.stringify) return JSON.stringify(o);var type=typeof(o);if(o===null) return"null";if(type=="undefined") return undefined;if(type=="number"||type=="boolean") return o+"";if(type=="string") return $.quoteString(o);if(type=='object') {if(typeof o.toJSON=="f...
PypiClean
/FIRSTBEATLU-0.13.1.tar.gz/FIRSTBEATLU-0.13.1/econml/dynamic/dml/_dml.py
import abc import numpy as np from warnings import warn from sklearn.base import clone from sklearn.model_selection import GroupKFold from scipy.stats import norm from sklearn.linear_model import (ElasticNetCV, LassoCV, LogisticRegressionCV) from ...sklearn_extensions.linear_model import (StatsModelsLinearRegression, ...
PypiClean
/GailBot-0.2a0-py3-none-any.whl/gailbot/core/engines/watson/am.py
# Standard library imports from typing import Any, BinaryIO, List, TextIO, Tuple, Dict, Callable, Union from enum import IntEnum # Local imports # Third party imports from ibm_watson import SpeechToTextV1, ApiException from ibm_cloud_sdk_core.authenticators import IAMAuthenticator from gailbot.core.engines import ex...
PypiClean
/DeePyMoD-20.11b0.tar.gz/DeePyMoD-20.11b0/docs/examples/PDE_KdV/PDE_KdV.md
# Example Korteweg de Vries equation In this notebook we provide a simple example of the DeepMoD algorithm by applying it on the KdV equation. ```python # General imports import numpy as np import torch import matplotlib.pylab as plt # DeepMoD functions from deepymod import DeepMoD from deepymod.model.func_approx...
PypiClean
/Mecoda_Orange-1.9.0-py3-none-any.whl/mecoda_orange/canAIRio_mobile_extra_info.py
from orangewidget.widget import OWBaseWidget, Output, Input from orangewidget.settings import Setting from orangewidget import gui from orangewidget.utils.widgetpreview import WidgetPreview import Orange.data from Orange.data.pandas_compat import table_from_frame, table_to_frame import requests import pandas as pd from...
PypiClean
/NCloudAISDK-1.0.1.tar.gz/NCloudAISDK-1.0.1/aicloud/cloudapi.py
from aicloud.rest import get, post, put import json import os class AIPlatform(object): model_upload_path = '/model/file' model_download_path = '/model/download/modelfile' create_training_task = '/training/training/form' create_training_duration = '/training/finish/form/' def __init__(self, ba...
PypiClean
/OASYS1-shadow4-0.0.10.tar.gz/OASYS1-shadow4-0.0.10/orangecontrib/shadow4/widgets/sources/ow_bending_magnet.py
import sys import time import numpy from orangewidget import gui from orangewidget.settings import Setting from oasys.widgets import gui as oasysgui from oasys.widgets import congruence from oasys.util.oasys_util import EmittingStream from orangecontrib.shadow4.widgets.gui.ow_electron_beam import OWElectronBeam from...
PypiClean
/DatabasePipe-2.2.1.tar.gz/DatabasePipe-2.2.1/databasepipe/helper/__init__.py
from databasepipe.helper import plugin from bn import AttributeDict def dict_fetchall(cursor): rows = cursor.fetchall() res = [] for row in rows: if AttributeDict is not None: dictionary = AttributeDict() else: dictionary = {} for i in range(len(row)): ...
PypiClean
/ConfigViper-0.5.tar.gz/ConfigViper-0.5/doc/source/converters.rst
======================= Working with Converters ======================= Converters are deceptively simple. You may know that JSON plays well with a limited set of value types. ConfigViper just provides a way to work easily with Python dictionaries. For persistence, ConfigViper stores your configuration values to a f...
PypiClean
/Distributions_Pack_Testing-1.0.tar.gz/Distributions_Pack_Testing-1.0/Distributions_Pack_Testing/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 stdev (...
PypiClean
/Auptimizer-2.0.tar.gz/Auptimizer-2.0/src/aup/compression/torch/speedup/compress_modules.py
import logging import torch from .infer_shape import ModuleMasks _logger = logging.getLogger(__name__) replace_module = { 'BatchNorm2d': lambda module, mask: replace_batchnorm2d(module, mask), 'Conv2d': lambda module, mask: replace_conv2d(module, mask), 'ConvTranspose2d': lambda module, mask: replace_con...
PypiClean
/OCAICM-0.0.2.tar.gz/OCAICM-0.0.2/script/gnn_utils.py
from rdkit import Chem import datetime import dgl import numpy as np import random import torch import torch.nn.functional as F import dgl from dgl import model_zoo from dgl.data.chem import one_hot_encoding from dgl.data.utils import split_dataset from sklearn.metrics import roc_auc_score from dgl.data.chem import Bas...
PypiClean
/AutONMT-tf-0.1.2.tar.gz/AutONMT-tf-0.1.2/autonmt/corpus.py
import dataclasses from dataclasses import dataclass import os import json from typing import Dict class FilenameGenerator: def __init__(self, workdir) -> None: self.workdir = workdir def get_filename(self, tag, stage): tag_dir = os.path.join(self.workdir, tag) os.makedirs(tag_dir, exi...
PypiClean
/Neodroid-0.4.9-py36-none-any.whl/samples/mab/ucb1.py
import math import sys from warg.named_ordered_dictionary import NOD def index_of_max(x): m = max(x) return x.index(m) class UCB1: def __init__(self, n_options): self._counts = [0 for _ in range(n_options)] self._values = [1 / n_options for _ in range(n_options)] def select_arm(sel...
PypiClean
/ARGs_OAP-2.3.2.tar.gz/ARGs_OAP-2.3.2/ARGs_OAP/bin/bbmap/sketchblacklist.sh
usage(){ echo " Written by Brian Bushnell Last modified November 7, 2019 Description: Creates a blacklist sketch from common kmers, which occur in at least X different sequences or taxa. Please read bbmap/docs/guides/BBSketchGuide.txt for more information. Usage: sketchblacklist.sh in=<fasta file> out=<sketch fil...
PypiClean
/GLManager-1.1.6.tar.gz/GLManager-1.1.6/README.md
# GLManager ## Modo de instalacao manual * Instalando GIT ``` sudo apt-get update && sudo apt-get install git -y ``` * Instalando script ``` git clone https://github.com/DuTra01/GLManager.git cd GLManager pip3 install -r requirements.txt ``` * Execute o script ``` python3 -m app ``` ## Modo de instalacao automat...
PypiClean
/ELFEsteem-0.2.1.tar.gz/ELFEsteem-0.2.1/elfesteem/cstruct.py
import struct type_size = {} size2type = {} for t in 'B', 'H', 'I', 'Q': s = struct.calcsize(t) type_size[t] = s * 8 size2type[s * 8] = t type_size['u08'] = size2type[8] type_size['u16'] = size2type[16] type_size['u32'] = size2type[32] type_size['u64'] = size2type[64] def fix_size(fields, wsize): o...
PypiClean
/NASGrpcFileSystem2-1.3.8.tar.gz/NASGrpcFileSystem2-1.3.8/NASGrpcFileSystem/proto/files_pb2.py
from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_database # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() DESCRIPTOR = _descripto...
PypiClean
/FitBenchmarking-1.0.0.tar.gz/FitBenchmarking-1.0.0/fitbenchmarking/parsing/fitting_problem.py
try: from itertools import izip_longest except ImportError: # python3 from itertools import zip_longest as izip_longest import numpy as np from fitbenchmarking.utils.debug import get_printable_table from fitbenchmarking.utils.exceptions import FittingProblemError, \ IncorrectBoundsError from fitbenchma...
PypiClean
/Django-4.2.4.tar.gz/Django-4.2.4/django/contrib/auth/migrations/0001_initial.py
import django.contrib.auth.models from django.contrib.auth import validators from django.db import migrations, models from django.utils import timezone class Migration(migrations.Migration): dependencies = [ ("contenttypes", "__first__"), ] operations = [ migrations.CreateModel( ...
PypiClean
/ForesightPy-1.0.11.tar.gz/ForesightPy-1.0.11/Foresight/deeplearning.py
from copy import deepcopy import time import random import warnings import numpy as np import matplotlib.pyplot as plt import torch from torch.utils.data import TensorDataset, DataLoader from sklearn.model_selection import train_test_split def set_seed(seed): """Sets the random seeds to ensure deterministic be...
PypiClean
/DjangoDjangoAppCenter-0.0.11-py3-none-any.whl/AppCenter/simpleui/static/admin/simpleui-x/elementui/umd/locale/fa.js
(function (global, factory) { if (typeof define === "function" && define.amd) { define('element/locale/fa', ['module', 'exports'], factory); } else if (typeof exports !== "undefined") { factory(module, exports); } else { var mod = { exports: {} }; factory(...
PypiClean
/Nuitka-1.8.tar.gz/Nuitka-1.8/nuitka/build/inline_copy/yaml_27/yaml/resolver.py
__all__ = ['BaseResolver', 'Resolver'] from error import * from nodes import * import re class ResolverError(YAMLError): pass class BaseResolver(object): DEFAULT_SCALAR_TAG = u'tag:yaml.org,2002:str' DEFAULT_SEQUENCE_TAG = u'tag:yaml.org,2002:seq' DEFAULT_MAPPING_TAG = u'tag:yaml.org,2002:map' ...
PypiClean
/Kr0nOs-3.4.1.tar.gz/Kr0nOs-3.4.1/kronbot/core/utils/chat_formatting.py
import datetime import itertools from io import BytesIO from typing import Iterator, List, Optional, Sequence, SupportsInt, Union import discord from babel.numbers import format_decimal from kronbot.core.i18n import Translator, get_babel_regional_format _ = Translator("UtilsChatFormatting", __file__) def error(tex...
PypiClean
/MutPy-Pynguin-0.7.1.tar.gz/MutPy-Pynguin-0.7.1/mutpy/views.py
import ast import datetime import inspect import os import traceback from difflib import unified_diff import jinja2 import yaml from mutpy import codegen, termcolor, utils class ViewNotifier: PREFIX = 'notify_' def __init__(self, views): self.views = views def add_view(self, views): se...
PypiClean
/Interplanetary_Invaders-0.7-py3-none-any.whl/interplanetary_invaders/scripts/vehicles.py
import pygame, math from math import radians, sin, cos from pygame.math import Vector2 from interplanetary_invaders.scripts.lasers import * from interplanetary_invaders.scripts.sound import Sound from interplanetary_invaders.scripts.utils import fix_path from interplanetary_invaders.scripts import joystick pygame.init...
PypiClean
/Flask-CKEditor-0.4.6.tar.gz/Flask-CKEditor-0.4.6/flask_ckeditor/static/standard/lang/eu.js
/* Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or https://ckeditor.com/license */ CKEDITOR.lang['eu']={"editor":"Testu aberastuaren editorea","editorPanel":"Testu aberastuaren editorearen panela","common":{"editorHelp":"Sakatu ALT 0 laguntza jasotzeko","bro...
PypiClean
/Dts-OpenFisca-Core-34.8.0.tar.gz/Dts-OpenFisca-Core-34.8.0/openfisca_core/data_storage.py
import shutil import os import numpy as np from openfisca_core import periods from openfisca_core.periods import ETERNITY from openfisca_core.indexed_enums import EnumArray class InMemoryStorage(object): """ Low-level class responsible for storing and retrieving calculated vectors in memory """ de...
PypiClean
/Adafruit_Blinka-8.20.1-py3-none-any.whl/adafruit_blinka/board/khadas/khadasvim3.py
"""Pin definitions for the Khadas VIM3.""" from adafruit_blinka.microcontroller.amlogic.a311d import pin GPIOAO_0 = pin.GPIO496 GPIOAO_1 = pin.GPIO497 GPIOAO_2 = pin.GPIO498 GPIOAO_3 = pin.GPIO499 GPIOAO_4 = pin.GPIO500 GPIOAO_5 = pin.GPIO501 GPIOAO_6 = pin.GPIO502 GPIOAO_7 = pin.GPIO503 GPIOAO_8 = pin.GPIO504 GPIOAO...
PypiClean
/MMutils-0.0.4-py3-none-any.whl/mmutils/str_utils/Mstr.py
import re def split_(ori_str, start_str, end_str): """ 截取字符串 创建时间:2021.10.28 :param ori_str: 需要截取的原始字符串 :param start_str: 开始的字符串,通过这个来获取开始截取的索引 :param end_str: 结束的字符串, 通过这个来获取结束截取的索引 :return: 返回截取后的字符串 """ start_index = ori_str.find(start_str) + len(start_str) # 获取截取的开始索引 end_i...
PypiClean
/HY_sdk-0.2.56-py3-none-any.whl/hivisionai/hycv/vision.py
import cv2 from PIL import Image import numpy as np """ 接下来的开发灵感: - upload.sh增加文件夹自动删除功能 - mtcnn增加68点人脸检测模块 """ def ChangeImageDPI(input_path, output_path, dpi=300): """ 改变输入图像的dpi. input_path: 输入图像路径 output_path: 输出图像路径 dpi:打印分辨率 """ image = Image.open(input_path) image.save(output_...
PypiClean
/MoonNectar-0.6.0.tar.gz/MoonNectar-0.6.0/mnectar/util/decorator.py
import functools import inspect import platform from copy import copy class Decorator: """ Decorator base class capable of decorating a function or class method, with or without additional default arguments. The default implementation does nothing and is designed to be used as part of a base cla...
PypiClean
/NNGT-2.7.0-cp39-cp39-manylinux_2_17_i686.manylinux2014_i686.whl/nngt/geometry/plot.py
import numpy as np from matplotlib.patches import PathPatch from matplotlib.path import Path def plot_shape(shape, axis=None, m='', mc="#999999", fc="#8888ff", ec="#444444", alpha=0.5, brightness="height", show_contour=True, show=True, **kwargs): ''' Plot a shape (you should set...
PypiClean
/KayleeVC-0.1.1.tar.gz/KayleeVC-0.1.1/kayleevc/kaylee.py
import sys import signal import os.path import subprocess from gi.repository import GObject, GLib from kayleevc.recognizer import Recognizer from kayleevc.util import * from kayleevc.numbers import NumberParser class Kaylee: def __init__(self): self.ui = None self.options = {} ui_contin...
PypiClean
/Morfessor%20FlatCat-1.0.8.tar.gz/Morfessor FlatCat-1.0.8/scripts/flatcat-restitch.py
from __future__ import unicode_literals import argparse import collections import locale import re import string import sys import flatcat from flatcat.exception import ArgumentException from flatcat import utils PY3 = sys.version_info.major == 3 LICENSE = """ Copyright (c) 2015, Stig-Arne Gronroos All rights res...
PypiClean
/Electrum-CHI-3.3.8.tar.gz/Electrum-CHI-3.3.8/packages/six.py
from __future__ import absolute_import import functools import itertools import operator import sys import types __author__ = "Benjamin Peterson <benjamin@python.org>" __version__ = "1.12.0" # Useful for very coarse version differentiation. PY2 = sys.version_info[0] == 2 PY3 = sys.version_info[0] == 3 PY34 = sys.ve...
PypiClean
/MGLEX-0.2.1.tar.gz/MGLEX-0.2.1/mglex/cli/evaluate.py
u""" This is the main program which takes a raw (negatively log-scaled) likelihood matrix and a class soft class assignment matrix (responsibility) and corresponding weights, e.g. sequence lengths. Each input row corresponds to one datum and each column corresponds to a class/genome. Method "co-clustering": Calcula...
PypiClean
/Bibtex_File_Comparison_and_Update-1.4.tar.gz/Bibtex_File_Comparison_and_Update-1.4/Bibtex-File-Comparison-and-Update/controller.py
import model import pymongo from bibtexparser import * from Tkinter import * class Controller(): """ This class is used as an interface between the model and the view """ def __init__(self,v): """initialize view instance and compare the given files""" self.view = v self.compare_file...
PypiClean
/Hypyxel-0.1.0.post1-py3-none-any.whl/hypyxel/hypixel.py
import requests from hypyxel.errors import UUIDNotFoundError, ApiKeyError from hypyxel.utils import _get_key, _get_uuid, _key_check hypixel_base_url = "https://api.hypixel.net" endpoints = { "status":"/status", "watchdog":"/watchdogstats", "player":"/player" } def get_endpoints(): """Returns a di...
PypiClean
/GalSim-2.4.11-cp37-cp37m-manylinux_2_17_i686.manylinux2014_i686.whl/galsim/spergel.py
import numpy as np import math from . import _galsim from .gsobject import GSObject from .gsparams import GSParams from .utilities import lazy_property, doc_inherit from .errors import GalSimRangeError, GalSimIncompatibleValuesError, convert_cpp_errors class Spergel(GSObject): r"""A class describing a Spergel p...
PypiClean
/Muntjac-1.1.2.tar.gz/Muntjac-1.1.2/muntjac/event/mouse_events.py
from muntjac.terminal.gwt.client.mouse_event_details import MouseEventDetails from muntjac.event.component_event_listener import IComponentEventListener from muntjac.ui.component import Event as ComponentEvent class ClickEvent(ComponentEvent): """Class for holding information about a mouse click event. A L{Cl...
PypiClean
/BiocFrame-0.3.2.tar.gz/BiocFrame-0.3.2/CHANGELOG.md
# Changelog ## Version 0.3 (development) This release migrates the package to a more palatable Google's Python style guide. A major modification to the package is with casing, all `camelCase` methods, functions and parameters are now `snake_case`. In addition, docstrings and documentation has been updated to use sphi...
PypiClean
/CsuSort-1.0.15.tar.gz/CsuSort-1.0.15/Sort/deep_sort/iou_matching.py
from __future__ import absolute_import import numpy as np from . import linear_assignment def iou(bbox, candidates): """Computer intersection over union. Parameters ---------- bbox : ndarray A bounding box in format `(top left x, top left y, width, height)`. candidates : ndarray A...
PypiClean
/MultiRunnable-0.17.0a2-py3-none-any.whl/multirunnable/_singletons.py
from inspect import isclass as inspect_isclass from typing import Dict, TypeVar, Generic, Any from abc import ABCMeta T = TypeVar("T") def chk_cls(_cls): if inspect_isclass(_cls) is False: raise ValueError("The target object be decorated should be a 'class' level type object.") def simple_singleton(_c...
PypiClean
/MadEngine_server_mess-1.1.0.tar.gz/MadEngine_server_mess-1.1.0/server/server/server_DB.py
from sqlalchemy import create_engine, Table, Column, Integer, String, MetaData, ForeignKey, DateTime, Boolean from sqlalchemy.orm import mapper, sessionmaker import datetime class ServerStorage: class AllUsers: def __init__(self, username, password_hash, ip_address, port, sender_count, recepient_count): ...
PypiClean
/Electrum-CHI-3.3.8.tar.gz/Electrum-CHI-3.3.8/packages/wheel/bdist_wheel.py
import os import shutil import sys import re from email.generator import Generator from distutils.core import Command from distutils.sysconfig import get_python_version from distutils import log as logger from glob import iglob from shutil import rmtree from warnings import warn import pkg_resources from .pep425tags ...
PypiClean
/Mathics_Django-6.0.0-py3-none-any.whl/mathics_django/web/media/js/mathjax/jax/output/HTML-CSS/fonts/STIX-Web/Symbols/Regular/Main.js
MathJax.OutputJax["HTML-CSS"].FONTDATA.FONTS.STIXMathJax_Symbols={directory:"Symbols/Regular",family:"STIXMathJax_Symbols",testString:"\u00A0\u2300\u2302\u2305\u2306\u230C\u230D\u230E\u230F\u2310\u2311\u2312\u2313\u2315\u2316",32:[0,0,250,0,0],160:[0,0,250,0,0],8960:[487,-14,606,25,581],8962:[774,0,926,55,871],8965:[57...
PypiClean
/FreePyBX-1.0-RC1.tar.gz/FreePyBX-1.0-RC1/freepybx/public/js/dojox/lang/docs.js
define(["dijit","dojo","dojox"],function(_1,_2,_3){ _2.provide("dojox.lang.docs"); (function(){ function _4(_5){ }; var _6={}; var _7=[]; var _8=_3.lang.docs._loadedDocs={}; var _9=function(_a,_b){ _6[_b]=_a; }; var _c=function(_d){ var _e=_d.type||""; var _f,_10=false,_11=false,_12; _e=_e.replace(/\?/,function(){ _10=...
PypiClean
/Nuitka_fixed-1.1.2-cp310-cp310-win_amd64.whl/nuitka/build/inline_copy/yaml/yaml/parser.py
__all__ = ['Parser', 'ParserError'] from .error import MarkedYAMLError from .tokens import * from .events import * from .scanner import * class ParserError(MarkedYAMLError): pass class Parser: # Since writing a recursive-descendant parser is a straightforward task, we # do not give many comments here. ...
PypiClean
/KADaP01-2.0.0-py3-none-any.whl/yolov5/detect.py
from models.common import DetectMultiBackend from utils.dataloaders import IMG_FORMATS, VID_FORMATS, LoadImages, LoadStreams from utils.general import (LOGGER, Profile, check_file, check_img_size, check_imshow, check_requirements, colorstr, cv2, increment_path, non_max_suppression, print_args...
PypiClean
/DSM_tools-1.1.0-py3-none-any.whl/dsmtools/utils/misc.py
from queue import LifoQueue from typing import Generator, Callable, Any def safe_recursion_bootstrap(func: Callable[[Any], Generator]) -> Callable[[Any], Any]: """Convert a recursion function to a stack-size-limitless one, without changing the recursion limit of your system. It requires that: 1. your rec...
PypiClean
/GB2260-v2-0.2.1.tar.gz/GB2260-v2-0.2.1/gb2260_v2/data/curated/revision_201609.py
from __future__ import unicode_literals name = '201609' division_schema = { '110000': '北京市', '110101': '东城区', '110102': '西城区', '110105': '朝阳区', '110106': '丰台区', '110107': '石景山区', '110108': '海淀区', '110109': '门头沟区', '110111': '房山区', '110112': '通州区', '110113': '顺义区', '11011...
PypiClean
/MuPhyN-0.1.1.post4-py3-none-any.whl/muphyn/packages/interface/properties_pages/properties_widget.py
from typing import List, Any from PyQt6.QtWidgets import QWidget, QVBoxLayout, QLayout from muphyn.packages.interface.graphical_actions.actions_holder import ActionsHolder from muphyn.packages.interface.properties_pages.abstract_properties_editor import AbstractPropertiesEditor from muphyn.packages.interface.propert...
PypiClean
/Aruna-Python-API-1.1.0rc6.tar.gz/Aruna-Python-API-1.1.0rc6/aruna/api/internal/v1/notification_pb2_grpc.py
"""Client and server classes corresponding to protobuf-defined services.""" import grpc from aruna.api.internal.v1 import notification_pb2 as aruna_dot_api_dot_internal_dot_v1_dot_notification__pb2 class InternalEventEmitterServiceStub(object): """Service hosted by the notification service application the AP...
PypiClean
/MetaGram-2.0.2.tar.gz/MetaGram-2.0.2/pyrogram/types/inline_mode/inline_query_result_document.py
from typing import Optional, List import pyrogram from pyrogram import raw, types, utils, enums from .inline_query_result import InlineQueryResult class InlineQueryResultDocument(InlineQueryResult): """Link to a file. By default, this file will be sent by the user with an optional caption. Alternativel...
PypiClean
/NNGT-2.7.0-cp39-cp39-manylinux_2_17_i686.manylinux2014_i686.whl/nngt/geometry/triangulate.py
from OpenGL.GLU import * from OpenGL.GL import * from shapely.geometry import Polygon, MultiPolygon import numpy as np def triangulate(polygon): """ Returns a triangulation of `polygon`. Parameters ---------- polygon : a :class:`Shape` object or a :class:`~shapely.geometry.Polygon` or a...
PypiClean
/Flask_AdminLTE3-1.0.9-py3-none-any.whl/flask_adminlte3/static/plugins/moment/locale/pl.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
/NinjaTools-0.68-py3-none-any.whl/ninja_tools/image_finder.py
from typing import Union, Tuple, List import cv2 import numpy as np from ninja_tools.utils import Utilities class ImageFinder: def __init__(self): self.u = Utilities() def find_image(self, haystack: np.ndarray, needle: np.ndarray, threshold: float = 8, passed_only: bool = True, g...
PypiClean
/DeepCell-RetinaMask-0.1.1.tar.gz/DeepCell-RetinaMask-0.1.1/deepcell_retinamask/utils/postprocessing_utils.py
"""Functions for and post-processing RetinaNet outputs""" from __future__ import absolute_import from __future__ import division from __future__ import print_function import numpy as np from skimage import morphology from skimage.measure import label, regionprops from skimage.morphology import remove_small_objects fro...
PypiClean
/AiCoreSentimentStockScraper2021EtaCohort-0.0.2.tar.gz/AiCoreSentimentStockScraper2021EtaCohort-0.0.2/stock_scraper_AiCore/__main__.py
from .config import settingUp import configparser import os.path import getpass def sqlCreds(DATABASE_TYPE,DBAPI,HOST,USER,PASSWORD,DATABASE,PORT): ''' This function uses the parameters set by user to connect to PGadmin database The purpose of this function is to get the correct parameters and credentials...
PypiClean
/Dero-0.15.0-py3-none-any.whl/dero/data/psm/summarize/stats.py
from functools import partial import pandas as pd import numpy as np from dero.data.summarize import format_numbers_to_decimal_places from dero.data.formatters.stars import convert_to_stars from dero.data.psm.names import matched_var, t_stat_var, diff_var from dero.data.psm.typing import StrList def matching_summary...
PypiClean
/123_object_detection-0.1.tar.gz/123_object_detection-0.1/slim/nets/inception_v1.py
"""Contains the definition for inception v1 classification network.""" from __future__ import absolute_import from __future__ import division from __future__ import print_function import tensorflow.compat.v1 as tf import tf_slim as slim from nets import inception_utils # pylint: disable=g-long-lambda trunc_normal =...
PypiClean
/MeUtils-2023.8.29.13.9.44-py3-none-any.whl/meutils/db/__init__.py
from meutils.pipe import * class DB(object): def __init__(self, is_test=None): if is_test is None: if HOST_NAME.__contains__('local') or LOCAL: is_test = True self.is_test = is_test def redis(self, ips=None, password=None, batch=False): # redis集群 """ ...
PypiClean
/INGInious-0.8.7.tar.gz/INGInious-0.8.7/inginious/frontend/static/js/codemirror/mode/groovy/groovy.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
/Assign_GUP-2017.4.0.zip/Assign_GUP-2017.4.0/src/Assign_GUP/settings.py
r''' Support for AGUP program settings A settings file is used to preserve certain values of the application (such as window positions and full path to the project file). The name of the settings file is given in the main window. Note, the settings file may have the suffix ".ini" on some operating systems. Remove the...
PypiClean
/Axelrod-4.13.0.tar.gz/Axelrod-4.13.0/axelrod/strategies/hunter.py
from typing import List, Optional, Tuple from axelrod._strategy_utils import detect_cycle from axelrod.action import Action from axelrod.player import Player C, D = Action.C, Action.D class DefectorHunter(Player): """A player who hunts for defectors. Names: - Defector Hunter: Original name by Karol La...
PypiClean
/BanglaSpeech2Text-1.0.7-py3-none-any.whl/banglaspeech2text/cli.py
import argparse from mimetypes import guess_type def is_audio_file(filename): return guess_type(filename)[0].startswith("audio") def use_mic(stt): import speech_recognition as sr r = sr.Recognizer() while True: try: with sr.Microphone() as source: print("Say somet...
PypiClean
/CRIkit2-0.4.4.tar.gz/CRIkit2-0.4.4/crikit/ui/dialog_subResidualOptions.py
import sys as _sys # Generic imports for QT-based programs from PyQt5.QtWidgets import (QApplication as _QApplication, QDialog as _QDialog) # Import from Designer-based GUI from crikit.ui.qt_SubResidualOptions import Ui_Dialog as Ui_ResidualOptions ### EDIT ### # Generic imports for MPL-...
PypiClean
/GTW-1.2.6.tar.gz/GTW-1.2.6/__test__/migration.py
from __future__ import print_function from _GTW.__test__.model import * class _Migration_Scaffold_ (Scaffold.__class__) : Backend_Parameters = dict \ ( Scaffold.Backend_Parameters , HPS = "'hps:///test.hps'" , SQL = "'sqlite:///test.sql'" , sq ...
PypiClean
/Buoy-Client-0.0.2.tar.gz/Buoy-Client-0.0.2/buoy/client/notification/common.py
import json import logging import re from enum import IntEnum, unique from buoy.client.device.common.item import BaseItem, DataEncoder from buoy.client.device.common.nmea0183 import WIMDA from buoy.client.device.currentmeter.item import ACMPlusItem from buoy.client.notification.exceptions import ValidationError logg...
PypiClean
/AZMusicAPI-1.2.8-py3-none-any.whl/MusicAPI/__init__.py
import requests # AZ Studio版权所有 # 该项目仅供娱乐 请勿用于违法事业 违者与AZ Studio无关 def getmusic(keyword): #获得指定关键词的歌曲 关键词可为 歌手/歌曲名/专辑名 #keyword:关键词 #返回值说明:正常返回列表 "Error 0":没有结果 "Error 1":用户未输入 headers = { "Accept": "application/json, text/plain, */*", "Accept-Encoding": "gzip, deflate, br", "A...
PypiClean
/IQM_Vis-0.2.5.80-py3-none-any.whl/IQM_Vis/metrics/NLPD_torch/utils/fourier.py
import math import torch from torchinterp1d import Interp1d __all__ = ['harmonic_column', 'raised_cosine', 'steer_to_harmonics', 'point_operation_filter'] def harmonic_column(harmonic: torch.Tensor, angles: torch.Tensor, phase: str) -> torch.Tensor: """ F...
PypiClean
/Office365-REST-Python-Client-2.4.3.tar.gz/Office365-REST-Python-Client-2.4.3/office365/sharepoint/contenttypes/content_type.py
from office365.runtime.queries.service_operation import ServiceOperationQuery from office365.runtime.paths.resource_path import ResourcePath from office365.runtime.types.collections import StringCollection from office365.sharepoint.base_entity import BaseEntity from office365.sharepoint.contenttypes.content_type_id imp...
PypiClean
/flask_kits-0.0.24.tar.gz/flask_kits-0.0.24/flask_kits/restful/entity/pagination.py
from flask_kits.exceptions import InvalidFormatError class Pagination(object): """ Example >>> from flask_kits.restful import entity.Pagination >>> class ItemsPagination(Pagination): >>> limit = 20 >>> ORDERS = ('ID', 'NAME') >>> class ItemEntity(EntityBase): >>> Range = Fi...
PypiClean
/Django_patch-2.2.19-py3-none-any.whl/django/contrib/postgres/aggregates/mixins.py
from django.db.models.expressions import F, OrderBy class OrderableAggMixin: def __init__(self, *expressions, ordering=(), **extra): if not isinstance(ordering, (list, tuple)): ordering = [ordering] ordering = ordering or [] # Transform minus sign prefixed strings into an Orde...
PypiClean
/AutoTransform-1.1.1a8-py3-none-any.whl/autotransform/transformer/base.py
# @black_format """The base class and associated classes for Transformer components.""" from __future__ import annotations from abc import abstractmethod from enum import Enum from typing import Any, ClassVar, Generic, Mapping, Optional, TypeVar from autotransform.batcher.base import Batch from autotransform.util....
PypiClean
/Flask-Wizard-0.5.28.tar.gz/Flask-Wizard-0.5.28/flask_wizard/slack.py
from __future__ import absolute_import from __future__ import print_function import os import json import requests import base64 import sys import apiai import uuid import random import time from slackclient import SlackClient from timeit import default_timer as timer from flask import request, jsonify from actions ...
PypiClean
/EthTx-0.3.22.tar.gz/EthTx-0.3.22/ethtx/providers/etherscan/client.py
import logging from collections import OrderedDict from typing import Dict, Optional import requests from ethtx.exceptions import ProcessingException log = logging.getLogger(__name__) class EtherscanClient: MODULE = "module=" ACTION = "&action=" CONTRACT_ADDRESS = "&contractaddress=" ADDRESS = "&a...
PypiClean
/CNN4IE-0.1.9-py3-none-any.whl/cnn4ie/mixed_attention_cnn/mixed_attention.py
import torch import torch.nn as nn import math class SeparableConv1D(nn.Module): """This class implements separable convolution, i.e. a depthwise and a pointwise layer""" def __init__(self, input_filters, output_filters, kernel_size): super(SeparableConv1D, self).__init__() self.depthwise = nn...
PypiClean
/Ajango-1.0.0.tar.gz/Ajango-1.0.0/ajango/generator/__init__.py
from __future__ import print_function from django.core.management.base import CommandError from ajango.generator.project_manager import ProjectManager from ajango.generator.application import Application from ajango.generator.config_global import ConfigGlobal from xml.dom ...
PypiClean
/NlpToolkit-Classification-1.0.16.tar.gz/NlpToolkit-Classification-1.0.16/Classification/Classifier/Lda.py
from Math.Matrix import Matrix from Math.Vector import Vector from Classification.Classifier.Classifier import Classifier from Classification.InstanceList.InstanceList import InstanceList from Classification.InstanceList.Partition import Partition from Classification.Model.LdaModel import LdaModel from Classification....
PypiClean