id
stringlengths
1
265
text
stringlengths
6
5.19M
dataset_id
stringclasses
7 values
/LightZero-0.0.1-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl/lzero/worker/alphazero_collector.py
from collections import namedtuple from typing import Optional, Any, List, Dict import numpy as np from ding.envs import BaseEnvManager from ding.torch_utils import to_ndarray from ding.utils import build_logger, EasyTimer, SERIAL_COLLECTOR_REGISTRY from ding.worker.collector.base_serial_collector import ISerialCollec...
PypiClean
/fisinma-0.1.0.tar.gz/fisinma-0.1.0/docs/source/theoretical_overview/theoretical_background/optimization.rst
Optimization ============ .. note:: In-depth information about the theoretical underlying and the calculation methods will be described in a book chapter releasing in the near future. To find the Optimal Experimental Design that corresponds to the maximum objective function (Fisher criterion) different algorithm...
PypiClean
/FreePyBX-1.0-RC1.tar.gz/FreePyBX-1.0-RC1/freepybx/model/billing.py
import datetime from datetime import datetime from sqlalchemy import ForeignKey, Column, Table from sqlalchemy.types import Integer, DateTime, Boolean, Unicode, UnicodeText, Float, Numeric from sqlalchemy.orm import relation, synonym, relationship, backref from freepybx.model.meta import db, Base, metadata customer_s...
PypiClean
/HBT_IP_Test-1.0.1-py3-none-any.whl/HBT_IP_Test/libs/isom/python/IsomAccessPoints_pb2.py
import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) from google.protobuf.internal import enum_type_wrapper from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection from google.protobuf i...
PypiClean
/CirqProjectQ-0.2.3.tar.gz/CirqProjectQ-0.2.3/cirqprojectq/xmon_decompositions.py
r"""Provides decompositon rules to decompose common gates into Xmon gates. The module :mod:`cirqprojectq.xmon_decompositions` provides decomposition rules for rotation gates (Rx, Ry, Rz), Pauli gates (X, Y, Z), the Hadamard gate and for CNOT gates into native Xmon gates. All defined rules can be imported as :meth:`cir...
PypiClean
/KqlmagicCustom-0.1.114.post13-py3-none-any.whl/Kqlmagic/ipython_api.py
import os import sys import time from typing import Any, Callable, Iterable from ._debug_utils import debug_print try: import IPython.core.display as ipy_display display = ipy_display.display HTML = ipy_display.HTML Javascript = ipy_display.Javascript JSON = ipy_display.JSON except: display =...
PypiClean
/OMEGA_micro-0.0.2-py3-none-any.whl/GEMATRIA/nmf.py
import pandas as pd import numpy as np import matplotlib.pyplot as plt from sklearn.preprocessing import StandardScaler from sklearn.decomposition import PCA, NMF import os, glob import pickle as pk from .plot import feature_plot # now conduct NMF def NMF_test(matrix, n_components=[20], rand...
PypiClean
/Klampt-0.9.0-cp36-cp36m-win_amd64.whl/klampt/vis/glviewport.py
try: from OpenGL import GL,GLU _HAS_OPENGL = True except: _HAS_OPENGL = False from . import camera from . import gldraw from ..math import so3,se3,vectorops from ..robotsim import Viewport import math import warnings class GLViewport: """ A class describing an OpenGL camera view. Attributes: ...
PypiClean
/Flask-RESTbolt-0.1.0.tar.gz/Flask-RESTbolt-0.1.0/flask_restbolt/api.py
from ordereddict import OrderedDict from flask_restbolt.representations.json import output_json from flask import make_response as original_flask_make_response from __future__ import absolute_import import difflib from functools import wraps, partial import re from flask import request, url_for, current_app from flask ...
PypiClean
/Mathics_Django-6.0.0-py3-none-any.whl/mathics_django/web/media/js/mathjax/jax/output/SVG/fonts/STIX-Web/SansSerif/Regular/Main.js
MathJax.OutputJax.SVG.FONTDATA.FONTS.STIXMathJax_SansSerif={directory:"SansSerif/Regular",family:"STIXMathJax_SansSerif",id:"STIXWEBSANSSERIF",32:[0,0,250,0,0,""],160:[0,0,250,0,0,""],57724:[683,10,499,28,471,"119 619l26 64c99 -14 176 -55 230 -114c65 -70 96 -173 96 -315c0 -134 -82 -264 -223 -264c-130 0 -220 107 -220 23...
PypiClean
/GRobot-0.0.13.tar.gz/GRobot-0.0.13/grobot/javascripts/xmlextras.js
//<script> ////////////////// // Helper Stuff // ////////////////// // used to find the Automation server name function getDomDocumentPrefix() { if (getDomDocumentPrefix.prefix) return getDomDocumentPrefix.prefix; var prefixes = ["MSXML2", "Microsoft", "MSXML", "MSXML3"]; var o; for (var i = 0; i < prefixes.l...
PypiClean
/Crwy-1.7.1.tar.gz/Crwy-1.7.1/crwy/utils/logger.py
import os import sys import logging import logging.config import logging.handlers from crwy.exceptions import CrwyException from crwy.settings.default_settings import TEMPLATE_DIR try: import ConfigParser as configparser except ImportError: import configparser DEFAULT_LOGGER_CONF = './conf/logger.conf' if ...
PypiClean
/Bugs%20Everywhere%20(BEurtle%20fork)-1.5.0.1.-2012-07-16-.zip/Bugs Everywhere (BEurtle fork)-1.5.0.1.-2012-07-16-/libbe/storage/base.py
import copy import os import pickle import types from libbe.error import NotSupported import libbe.storage from libbe.util.tree import Tree from libbe.util import InvalidObject import libbe.version from libbe import TESTING if TESTING == True: import doctest import os.path import sys import unittest ...
PypiClean
/Djblets-3.3.tar.gz/Djblets-3.3/docs/releasenotes/3.0-beta-1.rst
.. default-intersphinx:: django3.2 djblets3.x ================================ Djblets 3.0 Beta 1 Release Notes ================================ **Release date**: July 19, 2022 This release contains all bug fixes and features found in Djblets version :doc:`2.3.1 <2.3.1>`. Installation ============ To install this...
PypiClean
/FAT-Forensics-0.1.2.tar.gz/FAT-Forensics-0.1.2/fatf/transparency/predictions/surrogate_image_explainers.py
from numbers import Number from typing import Callable, Dict, List, Optional, Tuple, Union import logging import warnings import scipy.spatial import numpy as np from fatf.exceptions import IncompatibleModelError import fatf.utils.data.instance_augmentation as fatf_augmentation import fatf.utils.kernels as fatf_k...
PypiClean
/metrics/show.py
from umap import UMAP import numpy as np import matplotlib.pyplot as plt from sklearn.decomposition import PCA import pandas as pd import seaborn as sns from sklearn.cluster import KMeans def _check_ndarray(emb): if(isinstance(emb,pd.DataFrame)): return emb.values elif(isinstance(emb,np.ndarray)): ...
PypiClean
/MindsDB-23.8.3.0.tar.gz/MindsDB-23.8.3.0/mindsdb/integrations/handlers/s3_handler/s3_handler.py
from typing import Optional from collections import OrderedDict import pandas as pd import boto3 import io import ast from mindsdb_sql import parse_sql from mindsdb_sql.render.sqlalchemy_render import SqlalchemyRender from mindsdb.integrations.libs.base import DatabaseHandler from mindsdb_sql.parser.ast.base import ...
PypiClean
/Core/GeneticNetwork.py
from .FeedForwardNetwork import FeedForwardNetwork as FFN import numpy as np import pandas as pd import copy import random as r class GeneticNetwork(): Population = [] PopulationSize = 0 NetworkSize = [] Best = [] def __init__(self, _PopulationSize, _NetworkSize): self.Po...
PypiClean
/NeodroidVision-0.3.0-py36-none-any.whl/neodroidvision/detection/single_stage/ssd/bounding_boxes/conversion.py
__author__ = "Christian Heider Nielsen" __doc__ = r""" Created on 10/11/2019 """ import torch __all__ = [ "locations_to_boxes", "convert_boxes_to_locations", "center_to_corner_form", "corner_form_to_center_form", ] def locations_to_boxes( *, locations: torch.Tensor, ...
PypiClean
/CASPy3-2.2.0.tar.gz/CASPy3-2.2.0/caspy3/qt_assets/pixmap_viewer.py
from PyQt5.QtWidgets import ( QFrame, QGraphicsPixmapItem, QGraphicsScene, QGraphicsView ) from PyQt5.QtCore import pyqtSignal, QPoint, QRectF, Qt from PyQt5.QtGui import QPixmap, QPainter class PhotoViewer(QGraphicsView): """ Copied from https://stackoverflow.com/questions/35508711/how-to...
PypiClean
/Finance-Ultron-1.0.8.1.tar.gz/Finance-Ultron-1.0.8.1/ultron/kdutils/parallel.py
import warnings, functools g_cpu_cnt = 4 # fix me if False: """ 对外版本不再使用joblib避免python2,python3,mac, windows等joblib最后的pop一直出不来的bug, 有能力可自行打开,在mac下python3环境且cpu足够快建议打开 """ # MAC 直接import Parallel, delayed # noinspection PyUnresolvedReferences from ..ExtBu.joblib import Parallel, del...
PypiClean
/AsyncServerKate-0.0.1.tar.gz/AsyncServerKate-0.0.1/server/config_window.py
from PyQt5.QtWidgets import QDialog, QLabel, QLineEdit, QPushButton, QFileDialog, QMessageBox from PyQt5.QtCore import Qt import os class ConfigWindow(QDialog): '''Класс окно настроек.''' def __init__(self, config): super().__init__() self.config = config self.initUI() def initUI...
PypiClean
/NlvWxPython-4.2.0-cp37-cp37m-win_amd64.whl/wx/lib/agw/aui/auibook.py
__author__ = "Andrea Gavana <andrea.gavana@gmail.com>" __date__ = "31 March 2009" import wx import datetime from wx.lib.expando import ExpandoTextCtrl import six from . import tabart as TA from .aui_utilities import LightColour, MakeDisabledBitmap, TabDragImage from .aui_utilities import TakeScreenShot, RescaleScr...
PypiClean
/DXR-1.9.4.tar.gz/DXR-1.9.4/Dxr_grpc/dxr_grpc_audio_client.py
import json import grpc import cv2 import numpy as np from . import audios_pb2 from . import audios_pb2_grpc from threading import Thread import time class Dxr_grpc_client: def __init__(self, ip, port): self.ip = ip self.port = port self.channel = grpc.insecure_channel(self.ip +...
PypiClean
/DESPOTIC-2.1.tar.gz/DESPOTIC-2.1/despotic/chemistry/NL99.py
import numpy as np import string from despotic.despoticError import despoticError from .shielding import fShield_CO_vDB from .abundanceDict import abundanceDict from .chemNetwork import chemNetwork from .reactions import cr_reactions, photoreactions, reaction_matrix import scipy.constants as physcons import warnings ...
PypiClean
/BittyTax-0.5.1.tar.gz/BittyTax-0.5.1/src/bittytax/conv/parsers/handcash.py
import json from decimal import Decimal from ..dataparser import DataParser from ..exceptions import UnexpectedTypeError from ..out_record import TransactionOutRecord WALLET = "HandCash" def parse_handcash(data_row, parser, **_kwargs): row_dict = data_row.row_dict if row_dict.get("updatedAt"): data...
PypiClean
/Lmrob-1.0.tar.gz/Lmrob-1.0/nlrob/nlrob.py
from .utils import * from .utils import JDEoptim, _psi_conv_cc, _psi2ipsi, _regularize_Mpsi, _convSS, _Mpsi, _Mwgt from argparse import Namespace from six import string_types class NlrobControl(): """ Class that contains the parameters options of the lmrob functions """ def __init__(self, ...
PypiClean
/JoUtil-1.3.3-py3-none-any.whl/JoTools/utils/VideoUtilCV.py
import cv2 from cv2 import VideoWriter, VideoWriter_fourcc, imread, resize import os import threading import platform from ..utils.FileOperationUtil import FileOperationUtil from ..utils.StrUtil import StrUtil class VideoUtilCV(object): def __init__(self, vedio_path): self.__vc = cv2.VideoCapture(vedio_...
PypiClean
/OctoPrint-Printerinfo-0.6.0.tar.gz/OctoPrint-Printerinfo-0.6.0/octoprint_printerinfo/__init__.py
import logging import requests import octoprint.plugin from octoprint.events import Events from octoprint.printer.profile import PrinterProfileManager # define the main plugin class class PrinterinfoPlugin(octoprint.plugin.EventHandlerPlugin): def __init__(self): # initialize the plugin logger self...
PypiClean
/Camelot-13.04.13-gpl-pyqt.tar.gz/Camelot-13.04.13-gpl-pyqt/camelot/view/storage.py
import os import logging from camelot.view.model_thread import post from camelot.core.utils import ugettext as _ from camelot.view.controls.exception import model_thread_exception_message_box from PyQt4 import QtGui from PyQt4 import QtCore LOGGER = logging.getLogger('camelot.view.storage') class OpenFileProgressD...
PypiClean
/GxSphinx-1.0.0.tar.gz/GxSphinx-1.0.0/doc/usage/restructuredtext/field-lists.rst
.. highlight:: rst =========== Field Lists =========== :ref:`As previously discussed <rst-field-lists>`, field lists are sequences of fields marked up like this:: :fieldname: Field content Sphinx provides custom behavior for bibliographic fields compared to docutils. .. _metadata: File-wide metadata ---------...
PypiClean
/AltAnalyze-2.1.3.15.tar.gz/AltAnalyze-2.1.3.15/altanalyze/visualization_scripts/QC.py
#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, distribute, sublicense, and/or sell #copi...
PypiClean
/Mopidy-Mopify-1.7.3.tar.gz/Mopidy-Mopify-1.7.3/mopidy_mopify/static/debug/src/app/services/playlistmanager.service.js
'use strict'; angular.module('mopify.services.playlistmanager', [ 'mopify.services.mopidy', 'mopify.services.servicemanager', 'mopify.services.settings', 'spotify' ]).factory('PlaylistManager', [ '$rootScope', '$q', '$interval', 'ServiceManager', 'Spotify', 'mopidyservice', 'Settings', function ...
PypiClean
/Cibyl-1.0.0.0rc1.tar.gz/Cibyl-1.0.0.0rc1/cibyl/outputs/cli/ci/system/impls/zuul/serialized.py
from abc import ABC from typing import Optional from overrides import overrides from cibyl.cli.output import OutputStyle from cibyl.cli.query import QueryType from cibyl.models.ci.base.system import System from cibyl.models.ci.zuul.build import Build from cibyl.models.ci.zuul.job import Job from cibyl.models.ci.zuul....
PypiClean
/ActDeact-1.0.0.tar.gz/ActDeact-1.0.0/README.md
# A very simple [De]Activator for config files This tool renames files by adding and removing a predefined prefix and suffix. It's intented use is to quickly activate and deactivate config files. ## Installation ``` $ pip install ActDeact ``` ## Usage ``` Usage: actDeact [options] args Options: --version ...
PypiClean
/Neodroid-0.4.9-py36-none-any.whl/neodroid/environments/droid_environment/vector_unity_environment.py
from itertools import count from typing import Union from neodroid.environments.droid_environment import UnityEnvironment from neodroid.factories.configuration_reactions import verify_configuration_reactions from neodroid.factories.motion_reactions import verify_motion_reactions from neodroid.utilities import ( En...
PypiClean
/MAVR-0.93.tar.gz/MAVR-0.93/scripts/snpcall/filter_vcf.py
__author__ = 'Sergei F. Kliver' import argparse from RouToolPa.Tools.GATK import VariantFiltration from RouToolPa.Tools.GATK4 import VariantFiltration4 from RouToolPa.Routines import FileRoutines parser = argparse.ArgumentParser() parser.add_argument("-i", "--input_vcf", action="store", dest="input_vcf", required=Tr...
PypiClean
/BigNumber-1.tar.gz/BigNumber-1/README.md
# BigNumber BigNumber is an arbitrary precision number library which supports numbers with any values and many operations with them. # Installation pip install BigNumber # Usage To use this library, install it using the command shown in "Installation" section. Then, read the instructions below regarding how to...
PypiClean
/12306-booking-0.1.18.tar.gz/12306-booking-0.1.18/booking/pay.py
import os import json import copy import logging import datetime import platform from hack12306 import constants from hack12306.pay import TrainPayAPI from hack12306.utils import tomorrow, JSONEncoder from . import settings from . import exceptions from .order import order_no_complete from .utils import get_public_ip...
PypiClean
/DLMS_SPODES-0.40.11.tar.gz/DLMS_SPODES-0.40.11/src/DLMS_SPODES/version.py
from __future__ import annotations class AppVersion: __major: int __minor: int __patch: int | None __additional: str __match_args__ = ('major', 'minor', 'patch') def __init__(self, major: int, minor: int, patch: int = None, additional: str = ''): self.__major = major self.__mi...
PypiClean
/DecisionTreeClassifier-0.0.7.tar.gz/DecisionTreeClassifier-0.0.7/app/DecisionTree/src/DecisionTree.py
import numpy as np import pandas as pd import random import time import json import urllib.parse import webbrowser from abc import ABC, abstractmethod from collections import Counter # Abstract Classes are not strictly enforced in Python, but it serves as a to-do list for implementing Decision Node type classes. clas...
PypiClean
/DobbyStockSimulation-0.1.1.tar.gz/DobbyStockSimulation-0.1.1/main_package/Stock_main.py
import random class SizeError(Exception): def __init__(self): self.message = "Error: size must be a positive integer" def __str__(self): # __str__ to print() the value return(repr(self.message)) class Stock(object): def __init__(self): try: size =...
PypiClean
/MakeAboveMeme-0.5.4.tar.gz/MakeAboveMeme-0.5.4/README.md
# MakeAboveMeme An attempt to combine commandline inputs and images into a meme of simple format And to learn how to use git submodules ## But what is it? A command-line tool to create a meme with an image and some text above. Above that a title, below that some tags, and below them a line with "x comments, y points"....
PypiClean
/Flask_Admin-1.6.1-py3-none-any.whl/flask_admin/model/template.py
from flask_admin._compat import pass_context, string_types, reduce from flask_admin.babel import gettext class BaseListRowAction(object): def __init__(self, title=None): self.title = title def render(self, context, row_id, row): raise NotImplementedError() @pass_context def render_ct...
PypiClean
/MandalaMaker-0.1.0.tar.gz/MandalaMaker-0.1.0/layers/layer2.py
import turtle from math import pi, cos, tan, sin, sqrt from mandala_art.designs.designs import * def layer21(turt, col1, col2): turt.width(4) turt.pencolor(col1) move = 140 / cos(deg2rad(20)) r = 140 * tan(deg2rad(20)) flower2(turt, r, move) turt.left(10) turt.width(2) tu...
PypiClean
/Datev_Splitter-0.5.0-py3-none-any.whl/datev_splitter/pdf_extract.py
import os.path import re from enum import Enum from typing import Optional import fitz # pip install PyMuPDF from loguru import logger PERSONAL_NR_PATTERN = r'Pers\.-Nr\. ([0-9]{5})' INVALID_PN = 'X' def get_pn(text): r = re.findall(PERSONAL_NR_PATTERN, text) if len(r) == 0: logger.trace(text) ...
PypiClean
/Flask-Web-Log-0.1.tar.gz/Flask-Web-Log-0.1/README.md
# Flask-Web-Log Flask-Web-Log enables request logging for your flask app. It has support for multiple ## Features The following useful request data is logged (full explanations are in the [Flask docs](https://flask.palletsprojects.com/en/1.0.x/api/#flask.Request)): - time: Date and Time in ISO 8601 format - src_ip: S...
PypiClean
/Lackey-0.7.3-py3-none-any.whl/lackey/ImportHandler.py
import sys import os.path if sys.version_info[0] == 3: from importlib.abc import MetaPathFinder from importlib.util import spec_from_file_location from importlib.machinery import SourceFileLoader class SikuliFinder(MetaPathFinder): def find_spec(self, fullname, path, target=None): ...
PypiClean
/Klampt-0.9.0-cp36-cp36m-win_amd64.whl/klampt/apps/klampt_control.py
from klampt import * from klampt import WidgetSet,RobotPoser,PointPoser,TransformPoser from klampt import vis from klampt.math import vectorops,so3,se3 from klampt.model.robotinfo import RobotInfo,_resolve_file from klampt.io import loader from klampt.vis.glcommon import GLWidgetPlugin from klampt.vis import gldraw fro...
PypiClean
/CodeIntel-2.0.0b19-cp34-cp34m-macosx_10_12_x86_64.whl/codeintel/directoryServiceUtils.py
from __future__ import absolute_import import os import sys from xpcom import components, COMException, _xpcom import six.moves.configparser Cc = components.classes Ci = components.interfaces nsIDirectoryServiceContractID = "@mozilla.org/file/directory_service;1"; nsIProperties = Ci.nsIProperties; directoryService = ...
PypiClean
/CP3SlurmUtils-0.2.1.tar.gz/CP3SlurmUtils-0.2.1/README.md
CP3SlurmUtils ============= CP3SlurmUtils was written with the aim to be an utility for physicists of the [CP3 institute](https://uclouvain.be/en/research-institutes/irmp/cp3) that would facilitate the submission (and resubmission) of jobs to their computing cluster, which is managed by [Slurm](https://slurm.schedmd.c...
PypiClean
/GilCalc-1.0.3.tar.gz/GilCalc-1.0.3/GilCalc.py
import requests,json,time,threading class GilCalc: #quantapi.gilcalc.com 127.0.0.1 def __init__(self,uid,usecret): self.__remoteip="quantapi.gilcalc.com" urltoken="http://{0}:10625/OAuth/Token".format(self.__remoteip) payload = "client_id={0}&client_secret={1}&grant_type=client_cre...
PypiClean
/DQuery-0.1.0-rc2.tar.gz/DQuery-0.1.0-rc2/dquery/xpath.py
from dquery.lib import * from dquery.xml import * #from cli.profiler import Profiler import lxml.etree #profiler = Profiler(stdout=sys.stdout) #@profiler.deterministic #TODO: lazy building def dquery_multisite_xml_xpath(drupal_root, xpath_expression, cache=True): xml_etree = dquery_build_multisite_xml_etree(drup...
PypiClean
/B9gemyaeix-4.14.1.tar.gz/B9gemyaeix-4.14.1/docs/vcs.rst
.. _vcs: Version control integration =========================== Weblate currently supports :ref:`vcs-git` (with extended support for :ref:`vcs-github`, :ref:`vcs-gerrit` and :ref:`vcs-git-svn`) and :ref:`vcs-mercurial` as version control back-ends. .. _vcs-repos: Accessing repositories ---------------------- The ...
PypiClean
/APIQrCode-1.0.6.tar.gz/APIQrCode-1.0.6/README.md
<div style="text-align:center"><img width="300px" src="doc/jeitto.svg" /></div> # APIQrCode SDK QrCode Cielo ## Requisitos: - Python 3.x ## Uso: - Instalação: ``pip install APIQrCode`` - Exemplo: ```python from APIQrCode.qrcode_cielo import QrCodeCielo qrcode_cielo = QrCodeCielo(client_id='your client id', ...
PypiClean
/FlaskCms-0.0.4.tar.gz/FlaskCms-0.0.4/flask_cms/static/js/ckeditor/plugins/forms/dialogs/select.js
/* Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or http://ckeditor.com/license */ CKEDITOR.dialog.add("select",function(c){function h(a,b,e,d,c){a=f(a);d=d?d.createElement("OPTION"):document.createElement("OPTION");if(a&&d&&"option"==d.getName())CKEDITOR.e...
PypiClean
/LFake-18.9.0.tar.gz/LFake-18.9.0/lfake/providers/phone_number/bn_BD/__init__.py
from faker.providers.person.bn_BD import translate_to_bengali_digits from .. import Provider as PhoneNumberProvider class Provider(PhoneNumberProvider): """ Implement phone number provider for ``bn_BD`` locale. Sources: - https://en.wikipedia.org/wiki/Telephone_numbers_in_Bangladesh """ ...
PypiClean
/IHEWAcollect-0.0.31.tar.gz/IHEWAcollect-0.0.31/docs/api/IHEWAcollect.templates.EU.rst
IHEWAcollect.templates.EU package ================================= Submodules ---------- IHEWAcollect.templates.EU.Copernicus module ------------------------------------------- .. automodule:: IHEWAcollect.templates.EU.Copernicus :members: :undoc-members: :show-inheritance: IHEWAcollect.templates.EU.ECMWF...
PypiClean
/Djblets-3.3.tar.gz/Djblets-3.3/djblets/extensions/staticfiles.py
import os from django.contrib.staticfiles.finders import (BaseFinder, FileSystemFinder, get_finders) from django.contrib.staticfiles.utils import get_files from django.core.files.storage import FileSystemStorage from pipeline.finders import PipelineFinder from pkg_resour...
PypiClean
/B9gemyaeix-4.14.1.tar.gz/B9gemyaeix-4.14.1/weblate/fonts/models.py
from django.conf import settings from django.core.exceptions import ValidationError from django.core.files.storage import FileSystemStorage from django.db import models from django.urls import reverse from django.utils.translation import gettext_lazy as _ from weblate.fonts.utils import get_font_name from weblate.fo...
PypiClean
/EVE-SRP-0.12.11.tar.gz/EVE-SRP-0.12.11/src/evesrp/util/datetime.py
from __future__ import absolute_import import calendar import datetime as dt import re from sqlalchemy import types import iso8601 import iso8601.iso8601 as int_iso8601 class UTC(dt.tzinfo): def utcoffset(self, obj): return dt.timedelta() def dst(self, obj): return dt.timedelta() def t...
PypiClean
/AMPcombi-0.1.7.tar.gz/AMPcombi-0.1.7/README.md
# AMPcombi : AntiMicrobial Peptides parsing and functional classification tool <img src="https://raw.githubusercontent.com/Darcy220606/AMPcombi/main/docs/amp-combi-logo.png" width="620" height="200" /> This tool parses the results of antimicrobial peptide (AMP) prediction tools into a single table and aligns the hits...
PypiClean
/HavNegpy-1.2.tar.gz/HavNegpy-1.2/docs/_build/doctrees/nbsphinx/_build/doctrees/nbsphinx/_build/html/_build/html/_build/doctrees/nbsphinx/_build/doctrees/nbsphinx/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
/Janome-0.5.0.tar.gz/Janome-0.5.0/janome/tokenfilter.py
from abc import ABC, abstractmethod from collections import defaultdict from typing import Iterator, Tuple, Any, List, Dict from janome.tokenizer import Token class TokenFilter(ABC): """ Base TokenFilter class. A TokenFilter modifies or transforms the input token sequence according to the rule describe...
PypiClean
/CariboSystem_Embedded-5.1-py3-none-any.whl/CS/bsod.py
import multiprocessing import time import os from colorama import init from termcolor import colored init() # bar def bar(): for i in range(100): print("BOOTING ERROR!") time.sleep(1) if __name__ == '__main__': # Start bar as a process p = multiprocessing.Process(target=bar) p.start()...
PypiClean
/Ifbyphone-API-Module-0.0.5.tar.gz/Ifbyphone-API-Module-0.0.5/src/Ifbyphone/api/recordings.py
from base import IfbyphoneApiBase class Recordings(IfbyphoneApiBase): def download(self, **kwargs): """Download a specific recording keword arguments: type -- type of app to download from | 'findme' sid -- session ID of the call format -- '...
PypiClean
/FamcyDev-0.3.71-py3-none-any.whl/Famcy/bower_components/bootstrap-fileinput/js/locales/pl.js
(function ($) { "use strict"; $.fn.fileinputLocales['pl'] = { fileSingle: 'plik', filePlural: 'pliki', browseLabel: 'Przeglądaj &hellip;', removeLabel: 'Usuń', removeTitle: 'Usuń zaznaczone pliki', cancelLabel: 'Przerwij', cancelTitle: 'Anuluj wysyłanie',...
PypiClean
/Lysidike-0.1.2.tar.gz/Lysidike-0.1.2/lysidike/services/servicefactory.py
from pelops.logging import mylogger class ServiceFactory: """ generate instances of the services """ @staticmethod def get_service(service_type, config, mqtt_client, logger): """ Create a service with the provided parameters :param service_type: name of service type ...
PypiClean
/Mopidy-Party-1.2.1.tar.gz/Mopidy-Party-1.2.1/mopidy_party/static/controller.js
'use strict'; // TODO : add a mopidy service designed for angular, to avoid ugly $scope.$apply()... angular.module('partyApp', []) .controller('MainController', function($scope) { // Scope variables $scope.message = []; $scope.tracks = []; $scope.tracksToLookup = []; $scope.maxTracksToLookupAtOnce = 50;...
PypiClean
/IQDMPDF-0.3.0.tar.gz/IQDMPDF-0.3.0/README.rst
IQDM-PDF ======== |build| |Docs| |pypi| |python-version| |lgtm| |lgtm-cq| |Codecov| |lines| |repo-size| |code-style| What does it do? ---------------- Scans a directory for IMRT QA reports and parses data into a CSV. Other information ----------------- This library is part of the IMRT QA Data Mining (IQDM) project ...
PypiClean
/GroupImages-0.1.3.tar.gz/GroupImages-0.1.3/group_images/feature_extractor/feat_extract.py
import logging import os.path import subprocess from typing import List, Optional import tensorflow as tf from tensorflow.keras.applications import (densenet, efficientnet_v2, inception_v3, mobilenet_v2, resnet_v2) from .image_loade...
PypiClean
/Juice-0.0.23.tar.gz/Juice-0.0.23/juice/plugins/user/__init__.py
import functools import datetime from flask import jsonify, make_response from juice import (View, redirect, request, url_for, session, abort, flash, flash_data, get_flashed_data, register_package, init_app) from juice.decorators import (menu, route, template, plugin, login_required, ...
PypiClean
/FreePyBX-1.0-RC1.tar.gz/FreePyBX-1.0-RC1/freepybx/public/js/dojox/av/widget/Player.js.uncompressed.js
define("dojox/av/widget/Player", ['dojo', 'dijit', 'dijit/_Widget', 'dijit/_TemplatedMixin'],function(dojo, dijit){ dojo.experimental("dojox.av.widget.Player"); dojo.declare("dojox.av.widget.Player", [dijit._Widget, dijit._TemplatedMixin], { // summary: // A Media Player UI widget for all types of dojox.av and AIR ...
PypiClean
/AxlNLP-0.0.1.tar.gz/AxlNLP-0.0.1/axlnlp/features/bow.py
import numpy as np import os #alxnlp from axlnlp.features.base import TrainableFeatureModel import axlnlp.utils as u #sklearn from sklearn.feature_extraction.text import CountVectorizer class BOW(TrainableFeatureModel): def __init__(self,dataset, bow_type:str="word_count", dump_path:str="/tmp/bow_feature_model....
PypiClean
/MLStudio-0.1.15.tar.gz/MLStudio-0.1.15/mlstudio/supervised/observers/learning_rate.py
"""Learning rate schedules.""" from abc import abstractmethod import math import numpy as np from tabulate import tabulate from mlstudio.supervised.observers.base import Observer, PerformanceObserver from mlstudio.supervised.core.scorers import MSE from mlstudio.utils.validation import validate_bool from mlstudio.util...
PypiClean
/Kallithea-0.7.0.tar.gz/Kallithea-0.7.0/kallithea/model/forms.py
import logging import formencode from formencode import All from tg.i18n import ugettext as _ import kallithea from kallithea.model import validators as v log = logging.getLogger(__name__) def LoginForm(): class _LoginForm(formencode.Schema): allow_extra_fields = True filter_extra_fields = Tru...
PypiClean
/Firefly-vis-2.0.4.tar.gz/Firefly-vis-2.0.4/src/Firefly/ntbks/.ipynb_checkpoints/multiple_datasets_tutorial-checkpoint.ipynb
`Firefly/ntbks/multiple_datasets_tutorial.ipynb` ``` %load_ext autoreload %autoreload 2 from IPython.display import YouTubeVideo ``` A recording of this jupyter notebook in action is available at: ``` YouTubeVideo("TMq3IvnxGY8") import numpy as np import os import sys sys.path.insert(0,'/Users/agurvich/research/r...
PypiClean
/LbNightlyTools-4.0.1-py3-none-any.whl/LbRPMTools/LHCbLbScriptsSpecBuilder.py
from __future__ import absolute_import, print_function import logging import os import re import sys from string import Template from subprocess import PIPE, Popen from .LHCbRPMSpecBuilder import LHCbBaseRpmSpec try: from LbCommon.Temporary import TempDir except: from LbUtils.Temporary import TempDir tmpdir...
PypiClean
/Flask-Zipper-1.0.1.tar.gz/Flask-Zipper-1.0.1/flask_zipper/zipper.py
from brotli import MODE_GENERIC from flask import request from .exceptions import * class Zipper(object): """ An object used to hold compressor settings for the Flask-Zipper extension. Instances of :class:`Zipper` are *not* bound to specific apps, so you can create one in the main body of your co...
PypiClean
/NEURON_gpu_nightly-8.2a7-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl/neuron/rxd/reaction.py
import weakref from . import species, rxdmath, rxd, node, initializer import numpy import copy from .generalizedReaction import ( GeneralizedReaction, ref_list_with_mult, get_scheme_rate1_rate2_regions_custom_dynamics_mass_action, ) from .rxdException import RxDException class Reaction(GeneralizedReaction...
PypiClean
/BigJob-0.64.5.tar.gz/BigJob-0.64.5/docs/source/_themes/armstrong/README.rst
Armstrong Sphinx Theme ====================== Sphinx theme for Armstrong documentation Usage ----- Symlink this repository into your documentation at ``docs/_themes/armstrong`` then add the following two settings to your Sphinx ``conf.py`` file:: html_theme = "armstrong" html_theme_path = ["_themes", ] You ...
PypiClean
/BRAILS-3.0.1.tar.gz/BRAILS-3.0.1/brails/modules/FoundationClassifier/lib/NCEAverage.py
import torch from torch.autograd import Function from torch import nn from .alias_multinomial import AliasMethod import math import socket if socket.gethostname() == 'ncc1701e': device = 'cpu' else: device = 'cuda' if torch.cuda.is_available() else 'cpu' class NCEFunction(Function): @staticmethod def ...
PypiClean
/ListenLongtime-0.0.6.tar.gz/ListenLongtime-0.0.6/llt.py
from __future__ import division import pyaudio import requests import json from collections import deque import math import audioop import wave import subprocess import os from termcolor import colored import sys import logging class LongListener(object): """ This is the listener object that can listen, trans...
PypiClean
/LFake-18.9.0.tar.gz/LFake-18.9.0/lfake/providers/company/fr_FR/__init__.py
from typing import Tuple from faker.utils.checksums import calculate_luhn from .. import Provider as CompanyProvider class Provider(CompanyProvider): formats = ( "{{last_name}} {{company_suffix}}", "{{last_name}} {{last_name}} {{company_suffix}}", "{{last_name}}", "{{last_name}}"...
PypiClean
/Flask-MongoMyAdmin-0.1.tar.gz/Flask-MongoMyAdmin-0.1/flask_mongomyadmin/static/mongomyadmin/bootstrap/js/bootstrap.js
!function ($) { "use strict"; // jshint ;_; /* CSS TRANSITION SUPPORT (http://www.modernizr.com/) * ======================================================= */ $(function () { $.support.transition = (function () { var transitionEnd = (function () { var el = document.createElement('boots...
PypiClean
/CamAi_castleguarders-0.0.1-py3-none-any.whl/CamAi/mrcnn_utils.py
import sys import os import math import random import numpy as np import tensorflow as tf import scipy # NOTINF import skimage.color # NOTINF import skimage.io # NOTINF import skimage.transform import urllib.request import shutil import warnings # NOTINF from distutils.version import LooseVersion import cv2 as cv # U...
PypiClean
/COMPAS-1.17.5.tar.gz/COMPAS-1.17.5/src/compas_blender/artists/polylineartist.py
from typing import Any from typing import List from typing import Optional from typing import Union import bpy import compas_blender from compas.artists import PrimitiveArtist from compas.geometry import Polyline from compas.colors import Color from .artist import BlenderArtist class PolylineArtist(BlenderArtist, P...
PypiClean
/Flask-Gravatar-0.5.0.tar.gz/Flask-Gravatar-0.5.0/flask_gravatar/__init__.py
import hashlib from flask import _request_ctx_stack, current_app, has_request_context, request from .version import __version__ try: from flask import _app_ctx_stack, has_app_context except ImportError: # pragma: no cover _app_ctx_stack = None has_app_context = None # Which stack should we use? _app_c...
PypiClean
/LEOS9-0.0.tar.gz/LEOS9-0.0/src/libs/read_rinex_obs_GPS.py
import numpy as np import georinex as gr from datetime import datetime nsatsGPS=32 def read_rinex_obs_GPS_func(fname): nsats=nsatsGPS sat_typesGPS=['G'+str(np.arange(1,nsatsGPS+1,1)[i]).zfill(2) for i in range(nsatsGPS)] sat_types=np.array(sat_typesGPS) # observations obs = gr.load(fname...
PypiClean
/Netzob-2.0.0.tar.gz/Netzob-2.0.0/src/netzob/Model/Vocabulary/Messages/RawMessage.py
#+---------------------------------------------------------------------------+ #| 01001110 01100101 01110100 01111010 01101111 01100010 | #| | #| Netzob : Inferring communication protocols | #+-...
PypiClean
/DJModels-0.0.6-py3-none-any.whl/djmodels/contrib/gis/db/backends/spatialite/schema.py
from djmodels.db.backends.sqlite3.schema import DatabaseSchemaEditor from djmodels.db.utils import DatabaseError class SpatialiteSchemaEditor(DatabaseSchemaEditor): sql_add_geometry_column = ( "SELECT AddGeometryColumn(%(table)s, %(column)s, %(srid)s, " "%(geom_type)s, %(dim)s, %(null)s)" ) ...
PypiClean
/CC-CataLog-0.1.330.tar.gz/CC-CataLog-0.1.330/catalog/jobs/jobs.py
import typing as typ if typ.TYPE_CHECKING: from catalog.jobs.repeat import RepeatChecker import catalog.jobs.repeat,catalog.jobs.scripts import time,random,json,os,math,pickle import datetime as d # type: ignore import ase # type: ignore import numpy as np # type: ignore import firewo...
PypiClean
/INGInious-0.8.7.tar.gz/INGInious-0.8.7/doc/admin_doc/install_doc/troubleshooting.rst
Troubleshooting common problems =============================== LTI-related issues ------------------ You may experience issues when the external platform authentication to INGInious: two main kinds of issues can occur, according to the error message you get when accessing the INGInious task. Error while parsing the...
PypiClean
/BIA_OBS-1.0.3.tar.gz/BIA_OBS-1.0.3/BIA/static/dist/node_modules/tailwindcss/lib/corePlugins.js
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); function _export(target, all) { for(var name in all)Object.defineProperty(target, name, { enumerable: true, get: all[name] }); } _export(exports, { variantPlugins: ()=>variantPlugins, corePlugins: ()=>corePl...
PypiClean
/MADAP-1.1.0.tar.gz/MADAP-1.1.0/CONTRIBUTING.rst
.. highlight:: shell ============ Contributing ============ Contributions are welcome, and they are greatly appreciated! Every little bit helps, and credit will always be given. You can contribute in many ways: Types of Contributions ---------------------- Report Bugs ~~~~~~~~~~~ Report bugs at https://github.com...
PypiClean
/Helios_Scanner-1.1-py3-none-any.whl/helios/core/crawler.py
import logging import requests from bs4 import BeautifulSoup from concurrent.futures import ThreadPoolExecutor import time import json import random import re import string import hashlib import os import sys from helios.core.engine import CookieLib from helios.core.utils import params_from_str try: import urlpar...
PypiClean
/Annalist-0.5.18.tar.gz/Annalist-0.5.18/annalist_root/annalist/views/serverlog.py
from __future__ import unicode_literals from __future__ import absolute_import, division, print_function """ Annalist action confirmation view definition """ __author__ = "Graham Klyne (GK@ACM.ORG)" __copyright__ = "Copyright 2014, G. Klyne" __license__ = "MIT (http://opensource.org/licenses/MIT)" import ...
PypiClean
/Alcathous-0.4.0.tar.gz/Alcathous-0.4.0/alcathous/algorithms/abstractalgorithm.py
from alcathous.nodatabehavior import NoDataBehavior from pelops.logging import mylogger class AbstractAlgorithm: """ AbstractAlgorithm provides everything that is needed for an algorithm to perform its aggregation work. It selects to correct subset of the collected data. config yaml: topic-pu...
PypiClean
/MM-Simple-NeuralNetwork-0.1.1.tar.gz/MM-Simple-NeuralNetwork-0.1.1/src/main/Modules/Network/Neuron.py
from math import exp class Neuron: """A neuron should act as the neurons in a human brain, to calculate the synapse and input weights and feed_forward""" def __init__(self, bias, weights = []): """Neurons calculate output and besed on weight and bias. The output of each neuron will dictate the predic...
PypiClean
/GxDoxybook-1.1.0.tar.gz/GxDoxybook-1.1.0/doxybook/templates/member.py
TEMPLATE = """ # {{node.kind.value|title}} {{node.name_long}} {% if node.has_templateparams %} **template &lt;{{node.templateparams}}&gt;** {% endif %} {% if node.is_group -%} [**Modules**](modules.md) {% elif node.is_file or node.is_dir -%} [**File List**](files.md) {%- else -%} [**Class List**](annotated.md) {%- end...
PypiClean