id
stringlengths
1
265
text
stringlengths
6
5.19M
dataset_id
stringclasses
7 values
/ANNOgesic-1.1.14.linux-x86_64.tar.gz/usr/local/lib/python3.10/dist-packages/annogesiclib/stat_sorf.py
from annogesiclib.gff3 import Gff3Parser def create_dict(nums, strain, utr_detect): nums[strain] = {} if utr_detect: types = ["all", "5'UTR_derived", "3'UTR_derived", "interCDS", "intergenic", "antisense"] else: types = ["all", "intergenic", "antisense"] for type_ in t...
PypiClean
/MindsDB-23.8.3.0.tar.gz/MindsDB-23.8.3.0/mindsdb/api/mysql/mysql_proxy/classes/sql_query.py
import copy import re import hashlib import datetime as dt from collections import defaultdict import dateinfer import duckdb import pandas as pd import numpy as np from mindsdb_sql import parse_sql from mindsdb_sql.parser.ast import ( BinaryOperation, UnaryOperation, Identifier, Constant, Select,...
PypiClean
/DAQC2apps-1.000.tar.gz/DAQC2apps-1.000/piplates/Applications/ppLOGGER2.py
import time import os import string import subprocess from tkFileDialog import * from tkMessageBox import * import sys if (sys.version_info > (3, 0)): # Python 3 code in this block from tkinter import * else: # Python 2 code in this block from Tkinter import * import tkFont import random import math i...
PypiClean
/Kamyroll-Python-0.0.2.tar.gz/Kamyroll-Python-0.0.2/README.md
![Kamyroll_Python](/Presentation/img_title.png) ## Description Kamyroll-python is the python version of the program used in the application [Kamyroll](https://github.com/hyugogirubato/Kamyroll). This will allow you to download the videos and subtitles proposed by the Crunchyroll catalog or MP4 and ASS format to allow ...
PypiClean
/CsuPMTD-1.0.27.tar.gz/CsuPMTD-1.0.27/PMTD/maskrcnn_benchmark/modeling/backbone/backbone.py
from collections import OrderedDict from torch import nn from .. import registry from PMTD.maskrcnn_benchmark.modeling.make_layers import conv_with_kaiming_uniform from . import fpn as fpn_module from . import resnet @registry.BACKBONES.register("R-50-C4") @registry.BACKBONES.register("R-50-C5") @registry.BACKBONES...
PypiClean
/OBB_Maya-0.1.15.zip/OBB_Maya-0.1.15/OBB/utils.py
from math import sqrt def eigh(a, tol=1.0e-9): """ Calculates the eigenValues and vectors using jacobi method. Code configured without numpy from http://goo.gl/U3m7nX Returns: (list of 3 floats) EigenValues (3x3 list of floats) EigenVectors Raises: None """ # Find...
PypiClean
/Euphorie-15.0.2.tar.gz/Euphorie-15.0.2/src/euphorie/client/resources/oira/script/chunks/84181.4cda3752584847ba773f.min.js
"use strict";(self.webpackChunk_patternslib_patternslib=self.webpackChunk_patternslib_patternslib||[]).push([[84181],{88115:function(n,t,o){var e=o(87537),A=o.n(e),i=o(23645),p=o.n(i),r=o(61667),a=o.n(r),s=new URL(o(60266),o.b),C=new URL(o(21672),o.b),d=new URL(o(3942),o.b),l=p()(A()),c=a()(s),_=a()(C),w=a()(d);l.push(...
PypiClean
/GottenGeography-1.1.tar.gz/GottenGeography-1.1/README.md
Status ====== 1.1 is released, and it's targetted for Fedora 16, meaning that Fedora 16 ships with everything needed to run my program (if not in the default install, available through yum with a minimum of hassle). Users of other distros who want to run GottenGeography 1.0 will need to make sure they have libchamplai...
PypiClean
/GENDIS-1.0.14.tar.gz/GENDIS-1.0.14/README.rst
GENDIS |Build Status| |PyPI version| |Read The Docs| ==================================================== GENetic DIscovery of Shapelets ------------------------------ In the time series classification domain, shapelets are small subseries that are discriminative for a certain class. It has been shown that by project...
PypiClean
/FHIRkit-0.1.2.tar.gz/FHIRkit-0.1.2/README.md
# FHIRkit [![PyPI version](https://badge.fury.io/py/FHIRkit.svg)](https://badge.fury.io/py/FHIRkit) Handle FHIR resources in a more efficient, and pythonic way ## Why FHIRKit FHIRKit is a wrapper around [Pydantic](https://github.com/samuelcolvin/pydantic) that will help you parse FHIR JSON data. It comes with some ...
PypiClean
/Dero-0.15.0-py3-none-any.whl/dero/data/psm/summarize/main.py
import pandas as pd from dero.data.psm.typing import DfDict, StrList, StrOrNone, StrListOrNone import dero.latex.table as lt from dero.data.psm.predict import explain_probability_of_treatment from dero.data.psm.summarize.latex import matching_latex_table_from_df_dict from dero.data.psm.summarize.predictions import summ...
PypiClean
/LinkPython-0.1.1.tar.gz/LinkPython-0.1.1/modules/pybind11/docs/benchmark.rst
Benchmark ========= The following is the result of a synthetic benchmark comparing both compilation time and module size of pybind11 against Boost.Python. A detailed report about a Boost.Python to pybind11 conversion of a real project is available here: [#f1]_. .. [#f1] http://graylab.jhu.edu/RosettaCon2016/PyRosetta...
PypiClean
/BenchML-0.3.4.tar.gz/BenchML-0.3.4/benchml/plugins/plugin_physchem.py
import numpy as np from benchml.pipeline import Transform from benchml.plugins.plugin_check import rchem, rdesc from benchml.utils import LineExpansion, get_smiles class PhyschemXtal(Transform): default_args = {"bins": 10, "sigma_fac": 1.0} allow_stream = ("X",) stream_samples = ("X",) req_inputs = (...
PypiClean
/NESTML-5.3.0-py3-none-any.whl/NESTML-5.3.0.data/data/doc/models_library/stdp_nn_pre_centered.rst
stdp_nn_pre_centered #################### stdp_nn_pre_centered - Synapse type for spike-timing dependent plasticity, with nearest-neighbour spike pairing Description +++++++++++ stdp_nn_pre_centered_synapse is a connector to create synapses with spike time dependent plasticity with the presynaptic-centered nearest-...
PypiClean
/Fhire-0.0.9.tar.gz/Fhire-0.0.9/fhire/fhire_pojo/procedure/post_procedure.py
from dataclasses import dataclass from typing import Optional, Any, List, TypeVar, Type, Callable, cast from uuid import UUID from datetime import datetime import dateutil.parser T = TypeVar("T") def from_none(x: Any) -> Any: assert x is None return x def from_str(x: Any) -> str: assert isinstance(x,...
PypiClean
/ForgeryPy-0.1.tar.gz/ForgeryPy-0.1/README.rst
ForgeryPy ========= ForgeryPy is an easy to use forged data generator. It's a (somewhat incomplete) port of `forgery Ruby gem <http://rubygems.org/gems/forgery>`_. Example usage ------------- >>> import forgery_py >>> forgery_py.address.street_address() u'4358 Shopko Junction' >>> forgery_py.basic.hex_color() '3F0A...
PypiClean
/ChemDataExtractor_c-1.0.0-py3-none-any.whl/chemdataextractor/parse/tg.py
from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals import logging import re from chemdataextractor.parse.cem import cem, chemical_label, lenient_chemical_label, solvent_name from chemdataextractor.parse.common import lbrc...
PypiClean
/IPython-Dashboard-0.1.5.tar.gz/IPython-Dashboard-0.1.5/README.rst
|build status| |Documentation Status| |coverage| |PyPI Version| |Downloads| ***Inspired by `IPython <http://ipython.org/>`__, built with love*** ==================================================================== IPython-Dashboard ================= A stand alone, light-weight web server for building, sharing graphs...
PypiClean
/LibRPG-0.4.zip/LibRPG-0.4/librpg/mapobject.py
import pygame from librpg.locals import * from librpg.movement import MovementQueue, MovementCycle from librpg.image import ObjectImage class MapObject(object): """ MapObjects represent interactive objects on the map, such as NPCs, chests and switches. For it to be interactive, overload its activate() ...
PypiClean
/Mathics3-6.0.2.tar.gz/Mathics3-6.0.2/mathics/builtin/__init__.py
import glob import importlib import inspect import os.path as osp import pkgutil import re from typing import List, Optional from mathics.builtin.base import ( Builtin, Operator, PatternObject, SympyObject, mathics_to_python, ) from mathics.core.pattern import pattern_objects from mathics.core.symb...
PypiClean
/2lazy2rest-0.2.2.tar.gz/2lazy2rest-0.2.2/mkrst/__init__.py
from __future__ import absolute_import, print_function import argparse import importlib.util import os import subprocess import mkrst_themes THEMES_DIR = os.path.dirname(mkrst_themes.__file__) THEME = "default" SUPPORTED_FORMATS = "html pdf odt".split() DEBUG = "DEBUG" in os.environ class CommandExecutor: G...
PypiClean
/KratosShapeOptimizationApplication-9.4-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl/KratosMultiphysics/ShapeOptimizationApplication/algorithms/algorithm_steepest_descent.py
# Kratos Core and Apps import KratosMultiphysics as KM import KratosMultiphysics.ShapeOptimizationApplication as KSO # Additional imports from KratosMultiphysics.ShapeOptimizationApplication.algorithms.algorithm_base import OptimizationAlgorithm from KratosMultiphysics.ShapeOptimizationApplication import mapper_fact...
PypiClean
/NVDA-addonTemplate-0.5.2.zip/NVDA-addonTemplate-0.5.2/NVDAAddonTemplate/data/{{cookiecutter.project_slug}}/scons-local-2.5.0/SCons/Tool/gdc.py
__revision__ = "src/engine/SCons/Tool/gdc.py rel_2.5.0:3543:937e55cd78f7 2016/04/09 11:29:54 bdbaddog" import SCons.Action import SCons.Defaults import SCons.Tool import SCons.Tool.DCommon def generate(env): static_obj, shared_obj = SCons.Tool.createObjBuilders(env) static_obj.add_action('.d', SCons.Defau...
PypiClean
/CleanAdminDjango-1.5.3.1.tar.gz/CleanAdminDjango-1.5.3.1/django/contrib/auth/hashers.py
from __future__ import unicode_literals import base64 import hashlib from django.dispatch import receiver from django.conf import settings from django.test.signals import setting_changed from django.utils import importlib from django.utils.datastructures import SortedDict from django.utils.encoding import force_bytes...
PypiClean
/FightMan01dc.pymod-2.0.4.tar.gz/FightMan01dc.pymod-2.0.4/discord/client.py
import asyncio from collections import namedtuple import logging import signal import sys import traceback import aiohttp import websockets from .user import User, Profile from .asset import Asset from .invite import Invite from .widget import Widget from .guild import Guild from .channel import _channel_factory from...
PypiClean
/BxTorch-0.7.3.tar.gz/BxTorch-0.7.3/bxtorch/nn/callbacks/parallel.py
import os from .base import TrainingCallback, CallbackException class SynchronizationCallback(TrainingCallback): """ Synchronizer callback which can be used within a parallel environment to stop and resume training at specific points. """ # MARK: Initialization def __init__(self, push_queue, ...
PypiClean
/HybridUI-0.0.1.tar.gz/HybridUI-0.0.1/hybrid/elements/watermark.py
from typing import List from ..element import Element # Annahme: `Element` und andere Abhängigkeiten sind bereits definiert class Watermark(Element): """ width height rotate zIndex image content font gap offset Font color font color string rgba(0,0,0,.15) f...
PypiClean
/CALLHORIZONS-1.1.1.tar.gz/CALLHORIZONS-1.1.1/README.rst
CALLHORIZONS - a Python Interface to JPL HORIZONS ================================================= **Please note that CALLHORIZONS is not maintained anymore. Please use** [astroquery.jplhorizons](http://astroquery.readthedocs.io/en/latest/jplhorizons/jplhorizons.html) **instead, which will be maintained in the future...
PypiClean
/Diofant-0.14.0a2.tar.gz/Diofant-0.14.0a2/diofant/plotting/plot_implicit.py
from ..core import Dummy, Eq, Symbol, Tuple from ..core.relational import Equality, GreaterThan, LessThan, Relational from ..core.sympify import sympify from ..external import import_module from ..logic.boolalg import BooleanFunction from ..polys.polyutils import _sort_gens from ..utilities import flatten, lambdify fro...
PypiClean
/FlaskBB-2.0.2.tar.gz/FlaskBB-2.0.2/CONTRIBUTING.md
# Contributing We love contributions from everyone. ## Support Questions Don't use the GitHub's Issue tracker for general Python and Flask related questions. For FlaskBB it is ok _for now_. ``#python`` and [Stack Overflow][stackoverflow] is also worth considering for asking support questions. [stackoverflow]: ht...
PypiClean
/DyoCenseMqttsdk-0.2.tar.gz/DyoCenseMqttsdk-0.2/DyoCenseMqttSDk/configmanager.py
import configparser class ConfigManager: """Read and write from config file""" # When adding sections or items, add them in the reverse order of # how you want them to be displayed in the actual file. # In addition, please note that using RawConfigParser's and the raw # mode of ConfigParser's respective set functi...
PypiClean
/BRLibraryDocumentor-1.0.0-py3-none-any.whl/brLibrarydocumentor/plugin.py
import re from markdown import Markdown from mkdocs.plugins import BasePlugin from mkdocs.config import config_options, Config from jinja2 import Environment, FileSystemLoader import os from os import makedirs, path, listdir from pathlib import Path from functools import partial from mkdocs.structure.pages import Page...
PypiClean
/F2python-1.5.0.tar.gz/F2python-1.5.0/F2/f2_object.py
from F2 import OFF from F2 import metadict F2_NULL = OFF.NULL_MARK ################ F 2 _ O b j e c t ##################### class F2_Object: "a full F2 oid: (klass_oid, obj_oid)" def __init__(self, klass_oid, obj_oid): "an F2 Object is a pair (k,o) with o being an object of class k." sel...
PypiClean
/Notable-0.4.2.tar.gz/Notable-0.4.2/notable/static/lib/ace/src-min/mode-dot.js
define("ace/mode/dot",["require","exports","module","ace/lib/oop","ace/mode/text","ace/tokenizer","ace/mode/matching_brace_outdent","ace/mode/dot_highlight_rules","ace/mode/folding/cstyle"],function(e,t,n){var r=e("../lib/oop"),i=e("./text").Mode,s=e("../tokenizer").Tokenizer,o=e("./matching_brace_outdent").MatchingBra...
PypiClean
/NESTML-5.3.0-py3-none-any.whl/pynestml/cocos/co_co_each_block_defined_at_most_once.py
from typing import Union from pynestml.cocos.co_co import CoCo from pynestml.meta_model.ast_neuron import ASTNeuron from pynestml.meta_model.ast_synapse import ASTSynapse from pynestml.utils.logger import Logger, LoggingLevel from pynestml.utils.messages import Messages class CoCoEachBlockDefinedAtMostOnce(CoCo): ...
PypiClean
/Bazinga-0.2.4.tar.gz/Bazinga-0.2.4/bazinga/__init__.py
import hashlib import inspect import imp import logging from nose.plugins import Plugin import os from snakefood.find import find_dependencies import sys try: from cpickle import dump, load except ImportError: from pickle import dump, load log = logging.getLogger(__name__) def file_hash(path): contents =...
PypiClean
/Kivy-2.2.1-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl/kivy/storage/__init__.py
from kivy.clock import Clock from kivy.event import EventDispatcher class AbstractStore(EventDispatcher): '''Abstract class used to implement a Store ''' def __init__(self, **kwargs): super(AbstractStore, self).__init__(**kwargs) self.store_load() def exists(self, key): '''Ch...
PypiClean
/Graph_RL-0.1.2.tar.gz/Graph_RL-0.1.2/graph_rl/graphs/hits_graph.py
import numpy as np from . import Graph from ..nodes import HiTSNode, HACNode from ..utils import listify from ..aux_rewards import EnvReward class HiTSGraph(Graph): def __init__(self, name, n_layers, env, subtask_specs, HAC_kwargs, HiTS_kwargs, update_sgs_rendering=None, update_tsgs_rendering=None, ...
PypiClean
/NEURON_gpu-8.2.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl/neuron/rxd/__init__.py
from .rxdException import RxDException # import sys # if 'neuron.rxd' in sys.modules: # raise RxDException('NEURON CRxD module cannot be used with NEURON RxD module.') from . import rxd, constants from .species import Species, Parameter, State from .region import Region, Extracellular from .rate import Rate from ....
PypiClean
/Newgram-0.0.5.tar.gz/Newgram-0.0.5/newgram/methods/messages/send_cached_media.py
from datetime import datetime from typing import Union, List, Optional import newgram from newgram import raw, enums from newgram import types from newgram import utils class SendCachedMedia: async def send_cached_media( self: "newgram.Client", chat_id: Union[int, str], file_id: str, ...
PypiClean
/Mopidy-dLeyna-2.0.2.tar.gz/Mopidy-dLeyna-2.0.2/mopidy_dleyna/translator.py
from mopidy import models _QUERY = { "any": lambda caps: ( " or ".join( s + ' {0} "{1}"' for s in caps & {"DisplayName", "Album", "Artist", "Genre"} ) ), "album": lambda caps: ('Album {0} "{1}"' if "Album" in caps else None), "albumartist": lambda caps: ( ...
PypiClean
/Gbtestapi0.3-0.1a10-py3-none-any.whl/gailbot/core/utils/general.py
from enum import Enum from typing import List, Dict import psutil import os import glob import shutil import itertools from pathlib import Path import subprocess from gailbot.core.utils.logger import makelogger import json import yaml import toml import csv logger = makelogger("general") class CMD_STATUS(Enum): ...
PypiClean
/OASYS1-shadow4-0.0.10.tar.gz/OASYS1-shadow4-0.0.10/orangecontrib/shadow4/widgets/optics/ow_mirror.py
import numpy import sys from orangewidget import gui from orangewidget.settings import Setting from oasys.widgets import gui as oasysgui from syned.beamline.shape import Side # Side: SOURCE = 0 IMAGE = 1 from shadow4.beamline.optical_elements.mirrors.s4_toroid_mirror import S4ToroidMirror, S4ToroidMirrorEle...
PypiClean
/OBP_reliability_pillar_1-0.0.12-py3-none-any.whl/OBP_reliability_pillar_1/auto_scaling/launch_config_public_ip_disabled.py
import logging import botocore logging.basicConfig(level=logging.INFO) logger = logging.getLogger() def launch_config_public_ip_disabled(self) -> dict: """ :param self: :return: """ logger.info(" ---Inside autoscaling :: launch_config_public_ip_disabled()") result = True failReason = ''...
PypiClean
/MindsDB-23.8.3.0.tar.gz/MindsDB-23.8.3.0/mindsdb/integrations/handlers/quickbooks_handler/quickbooks_table.py
import pandas as pd from mindsdb.integrations.libs.api_handler import APITable from mindsdb_sql.parser import ast from mindsdb.integrations.utilities.sql_utils import extract_comparison_conditions class AccountsTable(APITable): def flatten_dict(self, data: dict, prefix: str = ""): flat_data = {} ...
PypiClean
/BlurGenerator-1.0.4-py3-none-any.whl/blurgenerator/lens_blur.py
import os import math from functools import reduce from collections import defaultdict from concurrent.futures import ThreadPoolExecutor, as_completed import cv2 import numpy as np # These scales bring the size of the below components to roughly the specified radius - I just hard coded these kernel_scales = [1.4,1.2,...
PypiClean
/GabrielGraph-0.0.3.tar.gz/GabrielGraph-0.0.3/README.md
# GabrielGraph [![License MIT](https://img.shields.io/pypi/l/GabrielGraph.svg?color=green)](https://github.com/GuignardLab/GabrielGraph/raw/main/LICENSE) [![PyPI](https://img.shields.io/pypi/v/GabrielGraph.svg?color=green)](https://pypi.org/project/GabrielGraph) [![Python Version](https://img.shields.io/pypi/pyversion...
PypiClean
/AIRPrediction-0.0.8.tar.gz/AIRPrediction-0.0.8/Time_Series_Models/prophet_model.py
import pandas as pd from prophet import Prophet from datetime import datetime """ .. module:: prophet_model :synopsis: The file containing the function that utilizes the prophet prediction model. .. moduleauthor:: Haotian Wang <haotianwang@ufl.edu> """ def prophet_prediction(pollutant, state, county, city, dat...
PypiClean
/Bubot_CoAP-1.0.7-py3-none-any.whl/Bubot_CoAP/layers/resource_layer.py
from .. import defines from ..messages.response import Response from ..resources.resource import Resource __author__ = 'Giacomo Tanganelli' class ResourceLayer(object): """ Handles the Resources. """ def __init__(self, parent): """ Initialize a Resource Layer. :type parent: C...
PypiClean
/Bugzilla-ETL-0.3.13353.zip/Bugzilla-ETL-0.3.13353/bzETL/util/multiset.py
def Multiset(list=None, key_field=None, count_field=None, allow_negative=False): if allow_negative: return _NegMultiset(list, key_field, count_field) else: return _Multiset(list, key_field, count_field) class _Multiset(object): def __init__(self, list=None, key_field=None, count_field=N...
PypiClean
/ObjectListView2-1.0.0.tar.gz/ObjectListView2-1.0.0/Examples/UsingDictionaryExample.py
import datetime import time import wx # Where can we find the ObjectListView module? import sys sys.path.append("..") from ObjectListView import ObjectListView, ColumnDefn # We store our images as python code import ExampleImages class MyFrame(wx.Frame): def __init__(self, *args, **kwds): wx.Frame.__ini...
PypiClean
/FluentDNA-2.5.3-py3-none-any.whl/FluentDNA-2.5.3.data/scripts/fluentdna.py
from __future__ import print_function, division, absolute_import, \ with_statement, generators, nested_scopes import os import sys ############################################################################# # IMPORTANT! Make sure there are no imports here for non-builtin packages. Those go below. ############...
PypiClean
/Box2D-2.3.2.tar.gz/Box2D-2.3.2/examples/pgu/gui/button.py
from pygame.locals import * from .const import * from . import widget, surface from . import basic class _button(widget.Widget): # The underlying 'value' accessed by the getter and setters below _value = None def __init__(self,**params): widget.Widget.__init__(self,**params) self.state =...
PypiClean
/Misago-0.36.1.tar.gz/Misago-0.36.1/misago/threads/models/poll.py
from datetime import timedelta from math import ceil from django.conf import settings from django.db import models from django.utils import timezone class Poll(models.Model): category = models.ForeignKey("misago_categories.Category", on_delete=models.CASCADE) thread = models.OneToOneField("misago_threads.Thr...
PypiClean
/Djaloha-0.4.2.tar.gz/Djaloha-0.4.2/djaloha/static/aloha.0.20/plugins/djaloha/link/extra/delicious.js
* Create the Repositories object. Namespace for Repositories * @hide */ if ( !GENTICS.Aloha.Repositories ) GENTICS.Aloha.Repositories = {}; /** * register the plugin with unique name */ GENTICS.Aloha.Repositories.delicious = new GENTICS.Aloha.Repository('delicious'); /** * If no username is given, the public re...
PypiClean
/MutagenTagWrapper-0.2.0.tar.gz/MutagenTagWrapper-0.2.0/src/tagwrapper/mp3.py
from __future__ import annotations from functools import partial from typing import Type from mutagen import flac, mp3 from mutagen import id3 from .common import TagWrapper from .util import get_mimetype_from_data, mkpicture __all__ = ['MP3'] class MP3(TagWrapper): @property def raw_tag_type(self) -> Typ...
PypiClean
/Nuitka-1.8.tar.gz/Nuitka-1.8/nuitka/build/inline_copy/lib/scons-3.1.2/SCons/Node/Alias.py
__revision__ = "src/engine/SCons/Node/Alias.py bee7caf9defd6e108fc2998a2520ddb36a967691 2019-12-17 02:07:09 bdeegan" import collections import SCons.Errors import SCons.Node import SCons.Util class AliasNameSpace(collections.UserDict): def Alias(self, name, **kw): if isinstance(name, SCons.Node.Alias.Al...
PypiClean
/LAMDA-SSL-1.0.2.tar.gz/LAMDA-SSL-1.0.2/LAMDA_SSL/Algorithm/Classification/SSGMM.py
import copy from LAMDA_SSL.Base.InductiveEstimator import InductiveEstimator from sklearn.base import ClassifierMixin import numpy as np from torch.utils.data.dataset import Dataset from LAMDA_SSL.utils import class_status import LAMDA_SSL.Config.SSGMM as config from scipy import stats class SSGMM(InductiveEstimator,Cl...
PypiClean
/DTSR-0.2.0.tar.gz/DTSR-0.2.0/dtsr/util.py
from __future__ import print_function import re import pickle import numpy as np from scipy import linalg def names2ix(names, l, dtype=np.int32): """ Generate 1D numpy array of indices in **l** corresponding to names in **names** :param names: ``list`` of ``str``; names to look up in **l** :param l: `...
PypiClean
/COMPAS-1.17.5.tar.gz/COMPAS-1.17.5/src/compas/topology/traversal.py
from __future__ import print_function from __future__ import absolute_import from __future__ import division try: from queue import PriorityQueue except ImportError: from Queue import PriorityQueue from collections import deque from compas.geometry import distance_point_point # ============================...
PypiClean
/LFake-18.9.0.tar.gz/LFake-18.9.0/lfake/providers/ssn/es_ES/__init__.py
import random from .. import Provider as BaseProvider class Provider(BaseProvider): """ A Faker provider for the Spanish VAT IDs and DOIs """ vat_id_formats = ( "ES?########", "ES########?", "ES?#######?", ) def vat_id(self) -> str: """ http://ec.euro...
PypiClean
/Aj_Zsl_nlu-4.2.0-py3-none-any.whl/nlu/universe/annotator_class_universe.py
from typing import Dict from nlu.universe.atoms import JslAnnoId, JslAnnoPyClass from nlu.universe.feature_node_ids import OCR_NODE_IDS, NLP_NODE_IDS, NLP_HC_NODE_IDS class AnnoClassRef: # Reference of every Annotator class name in OS/HC/OCR # Maps JslAnnoID to ClassNames in Python/Java from Spark NLP/Health...
PypiClean
/Django_patch-2.2.19-py3-none-any.whl/django/forms/widgets.py
import copy import datetime import re import warnings from collections import defaultdict from itertools import chain from django.conf import settings from django.forms.utils import to_current_timezone from django.templatetags.static import static from django.utils import datetime_safe, formats from django.utils.datas...
PypiClean
/Flask-BearyChat-0.2.0.tar.gz/Flask-BearyChat-0.2.0/flask_bearychat/bearychat.py
import json from flask import request, Response class TokenError(Exception): pass class OutgoingResponse(object): ATTACHMENT_FILEDS = ('title', 'text', 'color', 'images') def __init__(self): self.text = None self._attachments = [] def set_text(self, text): self.text = tex...
PypiClean
/FastNLP-1.0.1.tar.gz/FastNLP-1.0.1/fastNLP/core/collators/padders/jittor_padder.py
__all__ = [ 'JittorNumberPadder', 'JittorSequencePadder', 'JittorTensorPadder' ] from inspect import isclass import numpy as np from fastNLP.envs.imports import _NEED_IMPORT_JITTOR if _NEED_IMPORT_JITTOR: import jittor numpy_to_jittor_dtype_dict = { np.bool_: 'bool', np.uint8: 'u...
PypiClean
/BiblioPixel-3.4.46.tar.gz/BiblioPixel-3.4.46/bibliopixel/util/threads/runnable.py
from .. import log import contextlib, functools, threading, time, traceback, queue class Runnable: """ Base class for all objects that contain threads - including threads created and started by bp code, and threads started by external libraries. There are three possible thread categories for a Runnab...
PypiClean
/observations-0.1.4.tar.gz/observations-0.1.4/observations/r/environmental.py
from __future__ import absolute_import from __future__ import division from __future__ import print_function import csv import numpy as np import os import sys from observations.util import maybe_download_and_extract def environmental(path): """Atmospheric environmental conditions in New York City Daily measur...
PypiClean
/FamcyDev-0.3.71-py3-none-any.whl/Famcy/node_modules/bootstrap-fileinput/js/locales/ca.js
(function ($) { "use strict"; $.fn.fileinputLocales['ca'] = { fileSingle: 'arxiu', filePlural: 'arxius', browseLabel: 'Examinar &hellip;', removeLabel: 'Treure', removeTitle: 'Treure arxius seleccionats', cancelLabel: 'Cancel', cancelTitle: 'Avortar la pu...
PypiClean
/NFDI-0.1.1.tar.gz/NFDI-0.1.1/README.md
# NFDI [![PyPI version](https://badge.fury.io/py/NFDI.svg)](https://badge.fury.io/py/NFDI) [![Jupyter Book Badge](https://jupyterbook.org/badge.svg)](https://ub-mannheim.github.io/NFDI) The Python library [NFDI](https://pypi.org/project/NFDI) provides: * basic information about [NFDI](https://www.nfdi.de) (also known...
PypiClean
/LTEpy-1.0.4.tar.gz/LTEpy-1.0.4/README.md
# LTEpy LTEpy is a python package for calculating and visualizing functions in local thermodynamic equilibrium, including: * The Planck Function for black body radiation * The Maxwell Boltzmann Distribution * The Boltzmann Factors for an atom's energy levels # Installation Install LTEpy and its requirements with pip...
PypiClean
/Kallithea-0.7.0.tar.gz/Kallithea-0.7.0/kallithea/model/scm.py
import logging import os import posixpath import re import sys import tempfile import traceback import pkg_resources from tg.i18n import ugettext as _ import kallithea from kallithea.lib import hooks from kallithea.lib.auth import HasPermissionAny, HasRepoGroupPermissionLevel, HasRepoPermissionLevel, HasUserGroupPerm...
PypiClean
/GitLexPy-0.1.0-py3-none-any.whl/GitLexPy-0.1.0.dist-info/LICENSE.md
MIT License Copyright (c) [2023] [Ryan Jordan] 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, publish, d...
PypiClean
/MilanG_git_A5-1.0.10-py3-none-any.whl/MilanG_A5/modules/Manhattan.py
import argparse import numpy as np import itertools import sys def read_file(filename, with_diag): with open(filename, "r") as fh_file: first_line_found = False dimension = 0 north_south = [] west_east = [] diagonal_matrix = [] matrix_c...
PypiClean
/Nuitka_winsvc-1.7.10-cp310-cp310-win_amd64.whl/nuitka/utils/StaticLibraries.py
import os from nuitka.containers.OrderedSets import OrderedSet from nuitka.PythonFlavors import ( isAnacondaPython, isDebianPackagePython, isNuitkaPython, ) from nuitka.PythonVersions import ( getPythonABI, getSystemPrefixPath, python_version, python_version_str, ) from nuitka.Tracing impor...
PypiClean
/BayesASE-21.1.13.1.tar.gz/BayesASE-21.1.13.1/scripts/merge_comparates_generate_bayesian_headers.py
import argparse from functools import reduce import pandas as pd # Merge filtered/summarized files with qsim values by user-specified comparison DEBUG = True def getOptions(): parser = argparse.ArgumentParser( description="Merges filtered/summarized comparate count tables as specified by user." ) ...
PypiClean
/CsuPTMD-1.0.12.tar.gz/CsuPTMD-1.0.12/PTMD/maskrcnn_benchmark/modeling/rpn/rpn.py
import torch import torch.nn.functional as F from torch import nn from .. import registry from PTMD.maskrcnn_benchmark.modeling.box_coder import BoxCoder from PTMD.maskrcnn_benchmark.modeling.rpn.retinanet.retinanet import build_retinanet from .anchor_generator import make_anchor_generator from .inference import make_...
PypiClean
/GramophoneTools-0.7.1.tar.gz/GramophoneTools-0.7.1/docs/source/comms_overview.rst
Overview ======== The Gramophone is a Raw-HID (Human Interface Device). It can send and receive 64 byte long packets (byte arrays). Numbers that take up multiple bytes are encoded in a little endian manner. If you are implementing communication in Python you can use the GramophoneTools.Comms.Gramophone.Packet class t...
PypiClean
/MacSyFinder-2.1.2.tar.gz/MacSyFinder-2.1.2/macsypy/registries.py
import os import colorlog _log = colorlog.getLogger(__name__) import yaml _SEPARATOR = '/' def split_def_name(fqn): """ :param fqn: the fully qualified de name of a DefinitionLocation object the follow the schema model_name/<def_name>*/def_name for instance CRISPR-Cas/typing/cas :...
PypiClean
/BioSAK-1.72.0.tar.gz/BioSAK-1.72.0/tmp_scripts/plot_gene_and_gc_track_in_GenomeDiagram.py
from Bio import SeqIO from Bio.Graphics import GenomeDiagram from Bio.Graphics.GenomeDiagram import test_GenomeDiagram, Diagram from reportlab.lib import colors from reportlab.lib.units import cm # test_GenomeDiagram.py (https://github.com/biopython/biopython/blob/master/Tests/test_GenomeDiagram.py) # download test_Gen...
PypiClean
/Chandler-debugPlugin-1.0.tar.gz/Chandler-debugPlugin-1.0/debug/TestMenu.py
import wx from application import schema, dialogs from i18n import MessageFactory from osaf.framework.blocks.Block import Block from osaf.framework.blocks import BlockEvent, ChoiceEvent, MenuItem, Menu from debug.generate import GenerateAllItems from debug.GenerateItemsFromFile import GenerateItems from debug.mail i...
PypiClean
/OctoBot-Tentacles-Manager-2.9.4.tar.gz/OctoBot-Tentacles-Manager-2.9.4/octobot_tentacles_manager/uploaders/s3_uploader.py
import os import aioboto3 import logging import octobot_tentacles_manager.uploaders.uploader as uploader class S3Uploader(uploader.Uploader): ENV_S3_API_KEY = "S3_API_KEY" ENV_S3_API_SECRET_KEY = "S3_API_SECRET_KEY" ENV_S3_ENDPOINT_URL = "S3_ENDPOINT_URL" ENV_S3_BUCKET_NAME = "S3_BUCKET_NAME" ENV...
PypiClean
/Hyperion-0.9.10.tar.gz/Hyperion-0.9.10/hyperion/model/image.py
import numpy as np from astropy.extern import six from ..util.functions import FreezableClass, is_numpy_array from ..util.constants import c class Image(FreezableClass): """ Class to represent an image or set of images Parameters ---------- nu : ndarray The frequencies at which the imag...
PypiClean
/HalWeb-0.6.0.tar.gz/HalWeb-0.6.0/src/halicea/baseProject/lib/halicea/helpers.py
from UserDict import DictMixin class NotSuportedException(Exception): def __init__(self, message): self.message = message or "Operation is not supported" def __str__(self): return self.message def ClassImport(name): components = name.split('.') mod = __import__('.'.join(components[:-1]...
PypiClean
/ConfTools-1.9.9.tar.gz/ConfTools-1.9.9/docs/source/index.rst
.. raw:: html :file: fork.html .. include:: definitions.txt .. py:currentmodule:: conf_tools ConfTools ============= |ConfTools| is a generic Python package that .... **Motivation**: The purpose of |ConfTools| is **not** .... Simple usage example: :: from conf_tools import function funct...
PypiClean
/Corporal-0.1.15.tar.gz/Corporal-0.1.15/corporal/batch/vendorcatalog.py
import decimal from sqlalchemy import orm from corepos.db.office_op import Session as CoreSession, model as corepos from rattail_corepos.corepos.api import make_corepos_api from rattail_corepos.batch import vendorcatalog as base class VendorCatalogHandler(base.VendorCatalogHandler): """ Handler for vendor ...
PypiClean
/DeepCell-CPU-0.12.9.tar.gz/DeepCell-CPU-0.12.9/deepcell/datasets/dynamic_nuclear_net.py
from deepcell.datasets.dataset import TrackingDataset, SegmentationDataset VERSIONS_SEG = { "1.0": { "url": "data/dynamic-nuclear-net/DynamicNuclearNet-segmentation-v1_0.zip", "file_hash": "dcf84d150c071aedb6749084a51ddf58" # md5 } } VERSIONS_TRK = { "1.0": { "url": "data/dynamic-...
PypiClean
/Flask_Vue_SFC-0.0.3-py3-none-any.whl/flask_vue_sfc/utils.py
import os import esprima from css_html_js_minify import html_minify, css_minify from esprima.nodes import Module, ExportDefaultDeclaration, Property, ImportDeclaration, Identifier, Literal, \ ExpressionStatement, NewExpression, CallExpression, StaticMemberExpression, ArrayExpression from py_mini_racer import py_mi...
PypiClean
/Geeneus-0.1.9.tar.gz/Geeneus-0.1.9/geeneus/backend/ProteinObject.py
from Bio import Entrez, Seq from Bio import SeqIO from Bio.Alphabet import IUPAC # used when XML does not make semantic sense from Parser import BadXMLException import string import re import ProteinParser from Utilities import show_warning, show_error, show_status # ===============================================...
PypiClean
/AN-DiscordBot-3.9.4.tar.gz/AN-DiscordBot-3.9.4/anbot/core/modlog.py
import os from datetime import datetime from typing import List, Union import discord from anbot.core import Config from anbot.core.bot import AN from .utils.common_filters import ( filter_invites, filter_mass_mentions, filter_urls, escape_spoilers, ) __all__ = [ "Case", "CaseType", "get...
PypiClean
/BlueWhale3_Text-1.6.0-py3-none-any.whl/orangecontrib/text/widgets/resources/jquery.mark.min.js
"use strict";function _classCallCheck(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}var _extends=Object.assign||function(a){for(var b=1;b<arguments.length;b++){var c=arguments[b];for(var d in c)Object.prototype.hasOwnProperty.call(c,d)&&(a[d]=c[d])}return a},_createClass=function(){...
PypiClean
/Nerd_Storage-0.2.1-py3-none-any.whl/nerdstorage/utils/util.py
import glob import os import shutil import time import uuid import zipfile from collections import OrderedDict from pathlib import Path from threading import Thread from flask import current_app, flash def sort_index(index, path): sorted_index = OrderedDict() dirs = [] files = [] storage_path = curr...
PypiClean
/Jobcant-1.5.0.tar.gz/Jobcant-1.5.0/jobcant/jobcan.py
import os import requests from bs4 import BeautifulSoup class JobcanClient: def __init__(self, email: str, client_code: str | None, password: str): self._email: str = email self._client_code: str | None = client_code self._password: str = password def get_attendance_table(self) -> li...
PypiClean
/DeepGMAP-0.2.0.tar.gz/DeepGMAP-0.2.0/deepgmap/network_constructors/template_model.py
import functools import tensorflow as tf from auc_calc import auc_pr as ac #the code design came from https://gist.github.com/danijar/8663d3bbfd586bffecf6a0094cd116f2 def doublewrap(function): @functools.wraps(function) def decorator(*args, **kwargs): if len(args) == 1 and len(kwargs) == 0 and callabl...
PypiClean
/MegEngine-1.13.1-cp37-cp37m-macosx_10_14_x86_64.whl/megengine/utils/profile_analyzer.py
import collections import copy import functools from typing import Callable, List, Optional, Union import numpy as np class NonExistNum: r"""An object that behaves like a number but means a field does not exist; It is always greater than any real number. """ def __truediv__(self, _): return ...
PypiClean
/JSONManipulator-3.1.1.tar.gz/JSONManipulator-3.1.1/docs/JSONManipulator.core.rst
JSONManipulator.core package ============================ Submodules ---------- JSONManipulator.core.AddKey module ---------------------------------- .. automodule:: JSONManipulator.core.AddKey :members: :undoc-members: :show-inheritance: JSONManipulator.core.AddObject module ------------------------------...
PypiClean
/MAVR-0.93.tar.gz/MAVR-0.93/scripts/annotation/exonerate/prepare_hints_from_splited_exonerate_target_output.py
__author__ = 'Sergei F. Kliver' import argparse from RouToolPa.Tools.Annotation import AUGUSTUS parser = argparse.ArgumentParser() parser.add_argument("-i", "--input_prefix", action="store", dest="input_prefix", required=True, help="Prefix of files with splited exonerate target output") parser.ad...
PypiClean
/NetworkSim-0.2.2.tar.gz/NetworkSim-0.2.2/docs/build/html/_sources/README.rst.txt
.. -*- mode: rst -*- |github|_ |readthedocs|_ |pypi|_ |binder|_ .. |github| image:: https://img.shields.io/github/workflow/status/HYang1996/NetworkSim/Build%20and%20Test?logo=github .. _github: https://github.com/HYang1996/NetworkSim/actions?query=workflow%3A%22Build+and+Test%22 .. |readthedocs| image:: https://read...
PypiClean
/ORCHISM.1.0.tar.gz/ORCHISM.1.0/run_dir/def_MS_daily.py
import numpy as np # ============================================================================== # Site characteristics # # ------------------------------------------------------------------------------ class Site: main_path = '/your/working/directory/ORCHISM/' # -- Max number of region sets nmaps ...
PypiClean
/Kato-FlaskAppBuilder-1.1.14.tar.gz/Kato-FlaskAppBuilder-1.1.14/flask_appbuilder/baseviews.py
import logging from flask import Blueprint, session, flash, render_template, url_for, abort from ._compat import as_unicode from .forms import GeneralModelConverter from .widgets import FormWidget, ShowWidget, ListWidget, SearchWidget from .actions import ActionItem from .urltools import * log = logging.getLogger(__na...
PypiClean
/HTConsole-0.2.tar.gz/HTConsole-0.2/htconsole/web/index.py
import simplejson import time import os import sys from htconsole.sitepage import SitePage from htconsole.evalcontext import EvalContext from htconsole import extrabuiltins class index(SitePage): context = None def setup(self): if self.context is None: self.__class__.context = EvalContext...
PypiClean