id
stringlengths
1
265
text
stringlengths
6
5.19M
dataset_id
stringclasses
7 values
/FERG-0.9.6.tar.gz/FERG-0.9.6/README.md
FERG Lib Une bibliotheque pour Gerer - analyse les energies d'un maison individuelle ======================================================================== Hardware : - Raspberry Pi (ou pcduino) - arduino ou atmega328, ou ... - compteur edf de type antique (avec une roue) - detecteur de bande noire du comp...
PypiClean
/AlphaPeel-1.1.3.tar.gz/AlphaPeel-1.1.3/src/tinypeel/Peeling/Peeling.py
import concurrent.futures from numba import jit, float32, int8, int64, optional, boolean from numba.experimental import jitclass import numpy as np from collections import OrderedDict from ..tinyhouse import InputOutput from ..tinyhouse import ProbMath from ..tinyhouse import HaplotypeOperations import math # Defini...
PypiClean
/AmberMDrun-0.0.4.zip/AmberMDrun-0.0.4/README.md
[English](README.md) | [中文](README.zh.md) # AmberMDrun Easy to use, easy to expand, high-performance Amber simulation package ## Install This software only supports **Linux** because some Linux system functions are called.**Mac OS X** and **Windows** are not supported. ### Necessary Ambertools, python3, and python...
PypiClean
/LDtoolsets-0.0.14.tar.gz/LDtoolsets-0.0.14/LDtools/genodata.py
__all__ = ['read_bgen', 'read_bim', 'bgen2dask', 'pybgen_region', 'extract_bed', 'Genodata', 'write_plink', 'write_fam', 'write_bim', 'write_bed'] # Cell import numpy as np import pandas as pd import dask.array as da from bgen_reader import open_bgen from pandas_plink import read_plink from pandas_plink.be...
PypiClean
/Carcade-0.1.tar.gz/Carcade-0.1/carcade/server.py
import os import threading import SimpleHTTPServer import BaseHTTPServer from watchdog.observers import Observer from watchdog.events import FileSystemEventHandler class EventHandler(FileSystemEventHandler): """Watches all files except those that are hidden or are in the hidden directory. """ def __...
PypiClean
/BA_Marissa_Alexis-0.1.0-py3-none-any.whl/producetracker/utilities.py
import kivy from kivy.core.window import Window # Determines direction of user swipe # set_initial must be called before get_swipe_direction # 1 / threshold represents the fraction of your window's width that must dragged over to justify a swipe class SwipeListener: def __init__(self, threshold=10): self....
PypiClean
/OERPLib-0.8.4.tar.gz/OERPLib-0.8.4/oerplib/service/osv/fields.py
import datetime from oerplib import error from oerplib.service.osv import browse def is_int(value): """Return `True` if ``value`` is an integer.""" if isinstance(value, bool): return False try: int(value) return True except ValueError: return False def oerp_tuple_in(...
PypiClean
/HybridUI-0.0.1.tar.gz/HybridUI-0.0.1/hybrid/elements/dropdown.py
from typing import List from ..element import Element class DropDown(Element): """ Dropdown component. """ def __init__( self, content: List[Element] = None, overlay: Element = None, trigger: List[str] = ["hover"], arrow = None, autoAdjustOverflow=None, ...
PypiClean
/Akvo-1.7.2-py3-none-any.whl/akvo/tressel/smooth.py
import numpy def smooth(x,window_len=11,window='hanning'): """smooth the data using a window with requested size. This method is based on the convolution of a scaled window with the signal. The signal is prepared by introducing reflected copies of the signal (with the window size) in both ends so...
PypiClean
/MCTSRLV2-0.8-py3-none-any.whl/MCTSRLV1/displayResult.py
class Show_Pattern_set: def __init__(self, df, classifier, path): self.df = df self.root = self.Root_Pattern() self.classifier = classifier self.path = path def Root_Pattern(self): Root_node = [] for i in range(len(self.df.columns) - 1): column = self...
PypiClean
/Flask_AdminLTE3-1.0.9-py3-none-any.whl/flask_adminlte3/static/plugins/codemirror/mode/mllike/mllike.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
/MGP_SDK-1.1.1.tar.gz/MGP_SDK-1.1.1/src/MGP_SDK/discovery_service/catalogs.py
import requests from datetime import datetime from MGP_SDK import process from MGP_SDK.auth.auth import Auth class Catalogs: def __init__(self, auth: Auth): self.auth = auth self.version = self.auth.version self.api_version = self.auth.api_version self.base_url = f'{self.auth.api_...
PypiClean
/MOM-Tapyr-1.6.2.tar.gz/MOM-Tapyr-1.6.2/_Meta/M_Entity.py
from __future__ import print_function from _MOM import MOM from _TFL import TFL import _TFL._Meta.M_Auto_Combine import _TFL._Meta.M_Auto_Update_Combined import _TFL._Meta.Once_Property import _TFL._Meta.Property import _TFL.Caller import _TFL.Decorator import _TFL.Sorted_By import _TFL.ui_display import _TFL...
PypiClean
/ORCID-Hub-4.16.6.tar.gz/ORCID-Hub-4.16.6/orcid_hub/pyinfo.py
"""Collects and renders Python and Flask application evironment and configuration.""" import cgi import os import platform import socket import sys from . import app optional_modules_list = [ 'Cookie', 'mod_wsgi', 'psycopg2', 'zlib', 'gzip', 'bz2', 'zipfile', 'tarfile', 'ldap', 'socket', 'audioop', 'curses',...
PypiClean
/OBP_security_pillar-0.2.1-py3-none-any.whl/OBP_security_pillar/cloudtrail/driver.py
import logging from OBP_security_pillar.compliance import Compliance from botocore.exceptions import ClientError logging.basicConfig(level=logging.INFO) logger = logging.getLogger() def driver(self) -> dict: """ :param self: :return: """ logger.info(" ---Inside cloudtrail :: driver()") self....
PypiClean
/Mezzanine-6.0.0.tar.gz/Mezzanine-6.0.0/mezzanine/forms/admin.py
from copy import deepcopy from csv import writer from datetime import datetime from io import BytesIO, StringIO from mimetypes import guess_type from os.path import join from django.contrib import admin from django.contrib.messages import info from django.core.files.storage import FileSystemStorage from django.http im...
PypiClean
/EnergyCapSdk-8.2304.4743.tar.gz/EnergyCapSdk-8.2304.4743/energycap/sdk/models/place_digest_savings_monthly_response_commodity_data_commodity_results.py
from msrest.serialization import Model class PlaceDigestSavingsMonthlyResponseCommodityDataCommodityResults(Model): """PlaceDigestSavingsMonthlyResponseCommodityDataCommodityResults. :param period_name: Calendar Period Name :type period_name: str :param calendar_period: Calendar Period :type cal...
PypiClean
/CHASM_NuSpacesim-1.0.0.tar.gz/CHASM_NuSpacesim-1.0.0/src/CHASM/block_data.py
from dataclasses import dataclass, field from datetime import datetime import struct import numpy as np from .eventio_types import EventioType, Float, Double, String, Int, Varint, Varstring, Short, PhotonsData, ThreeByte from .config import AxisConfig from .simulation import ShowerSimulation, ShowerSignal from .axis i...
PypiClean
/LiftoffTools-0.4.4.tar.gz/LiftoffTools-0.4.4/liftofftools/sequences.py
from Bio.Seq import Seq from collections import defaultdict import numpy as np from liftofftools.annotation import merge_children_intervals class FeatureDict(defaultdict): def __init__(self, annotation, feature_type): super().__init__(list) self.populate_feature_dict(annotation, feature_type) ...
PypiClean
/DiscordActivity-1.0.0.tar.gz/DiscordActivity-1.0.0/README.md
<h1 align="center">DiscordActivity</h1> <h1>Discord activities in nextcord.</h1> #### pip install DicsordActivity Sync Example -------------- ```Python import nextcord from nextcord.ext import commands from DiscordActivity import SyncActivity bot = commands.Bot(command_prefix="!") activity = SyncActivity(toke...
PypiClean
/CodeIntel-2.0.0b19-cp34-cp34m-macosx_10_12_x86_64.whl/codeintel/codeintel2/database/multilanglib.py
from __future__ import absolute_import import sys import os from os.path import (join, dirname, exists, expanduser, splitext, basename, split, abspath, isabs, isdir, isfile, normpath) from glob import glob from pprint import pprint, pformat import time import logging from io import BytesIO import c...
PypiClean
/KratosCompressiblePotentialFlowApplication-9.4-cp311-cp311-win_amd64.whl/KratosMultiphysics/CompressiblePotentialFlowApplication/compute_lift_process.py
import KratosMultiphysics import KratosMultiphysics.CompressiblePotentialFlowApplication as CPFApp def _DotProduct(A,B): return sum(i[0]*i[1] for i in zip(A, B)) def _CrossProduct(A, B): C = KratosMultiphysics.Vector(3) C[0] = A[1]*B[2]-A[2]*B[1] C[1] = A[2]*B[0]-A[0]*B[2] C[2] = A[0]*B[1]-A[1]*B[...
PypiClean
/Aj_Zsl_nlu-4.2.0-py3-none-any.whl/nlu/pipe/viz/streamlit_viz/viz_building_blocks/sentence_embedding_manifold.py
import nlu from nlu.discovery import Discoverer from nlu.pipe.utils.resolution.storage_ref_utils import StorageRefUtils from typing import List, Optional import streamlit as st import numpy as np import pandas as pd from nlu.pipe.viz.streamlit_viz.styles import _set_block_container_style from nlu.pipe.viz.streamlit_viz...
PypiClean
/Library_ALR32XX-1.2.2-py3-none-any.whl/ALR32XX/Library_ALR32XX.py
import time from serial import* from io import* import serial.tools.list_ports class ALR32XX: """ Librairie Python pour piloter les alimentations programmables ALR3220, ALR3203, ALR3206D/T par une liaison série (USB, RS232, RS485). """ global alim alim=serial.Serial() def __init__(self, ...
PypiClean
/IPFX-1.0.8.tar.gz/IPFX-1.0.8/ipfx/_schemas.py
from argschema import ArgSchema from argschema.schemas import DefaultSchema from argschema.fields import ( Nested, InputFile, OutputFile, Integer, Boolean, String, Float ) class SweepFeatures(DefaultSchema): stimulus_code = String(description="stimulus code", required=True) stimulus_name = String( ...
PypiClean
/CNFgen-0.9.2-py3-none-any.whl/cnfgen/transformations/shuffle.py
import random from copy import copy from cnfgen.formula.cnf import CNF def Shuffle(F, polarity_flips='shuffle', variables_permutation='shuffle', clauses_permutation='shuffle'): """Reshuffle the given formula F Returns a formula logically equivalent to `F` with the fo...
PypiClean
/ComplexNetworkSim-0.1.2.zip/ComplexNetworkSim-0.1.2/docs/_static/searchtools.js
* helper function to return a node containing the * search summary for a given text. keywords is a list * of stemmed words, hlwords is the list of normal, unstemmed * words. the first one is used to find the occurance, the * latter for highlighting it. */ jQuery.makeSearchSummary = function(text, keywords, hlwor...
PypiClean
/Electrum-CHI-3.3.8.tar.gz/Electrum-CHI-3.3.8/packages/google/protobuf/internal/_parameterized.py
__author__ = 'tmarek@google.com (Torsten Marek)' import functools import re import types try: import unittest2 as unittest except ImportError: import unittest import uuid import six try: # Since python 3 import collections.abc as collections_abc except ImportError: # Won't work after python 3.8 import co...
PypiClean
/Flask-Security-Too-5.3.0.tar.gz/Flask-Security-Too-5.3.0/flask_security/webauthn_util.py
import secrets import typing as t from flask import current_app, request try: from webauthn.helpers.structs import ( AuthenticatorAttachment, AuthenticatorSelectionCriteria, ResidentKeyRequirement, UserVerificationRequirement, ) except ImportError: # pragma: no cover pass ...
PypiClean
/Electrum-CHI-3.3.8.tar.gz/Electrum-CHI-3.3.8/packages/dns/rdtypes/IN/WKS.py
# Copyright (C) 2003-2007, 2009-2011 Nominum, Inc. # # Permission to use, copy, modify, and distribute this software and its # documentation for any purpose with or without fee is hereby granted, # provided that the above copyright notice and this permission notice # appear in all copies. # # THE SOFTWARE IS PROVIDED ...
PypiClean
/META_TOOLBOX-2023.3.tar.gz/META_TOOLBOX-2023.3/META_TOOLBOX/META_SA_LIBRARY.py
import numpy as np import META_TOOLBOX.META_HC_LIBRARY as META_HC def START_TEMPERATURE(OF_FUNCTION, NULL_DIC, N_POP, D, X_L, X_U, X, OF, SIGMA): """ This function calculates the initial temperature in function of a probability of acceptance of 50% of the initial solutions. Input: OF_FUNCTION ...
PypiClean
/Django_patch-2.2.19-py3-none-any.whl/django/contrib/gis/templates/gis/admin/openlayers.js
{% load l10n %} OpenLayers.Projection.addTransform("EPSG:4326", "EPSG:3857", OpenLayers.Layer.SphericalMercator.projectForward); {% block vars %}var {{ module }} = {}; {{ module }}.map = null; {{ module }}.controls = null; {{ module }}.panel = null; {{ module }}.re = new RegExp("^SRID=\\d+;(.+)", "i"); {{ module }}.lay...
PypiClean
/Chroma-0.2.0.tar.gz/Chroma-0.2.0/chroma/core.py
# Tuples are assumed to be passed and returned import colorsys class Color(object): """ Chroma Color object stores 'color value' to be given in any format by one of the properties """ def __init__(self, color_value = '#FFFFFF', format = 'HEX'): # self.color is main storage for color format...
PypiClean
/HTTPolice-0.9.0.tar.gz/HTTPolice-0.9.0/httpolice/syntax/rfc7231.py
from datetime import date, datetime, time from httpolice.citation import RFC from httpolice.parse import (auto, can_complain, fill_names, literal, many, maybe, maybe_str, named, octet, pivot, skip, string1, string_times, subst) from httpolice.structure import (...
PypiClean
/Draugr-1.0.9.tar.gz/Draugr-1.0.9/draugr/torch_utilities/optimisation/parameters/complexity.py
__author__ = "Christian Heider Nielsen" __doc__ = r""" Created on 25/03/2020 """ import sys from typing import Sequence, TextIO, Tuple, Union, Callable import numpy import torch from draugr.torch_utilities import assume_model_dtype, assume_model_device from draugr.torch_utilities.optimisation....
PypiClean
/ClueDojo-1.4.3-1.tar.gz/ClueDojo-1.4.3-1/src/cluedojo/static/dojox/storage/WhatWGStorageProvider.js
if(!dojo._hasResource["dojox.storage.WhatWGStorageProvider"]){ dojo._hasResource["dojox.storage.WhatWGStorageProvider"]=true; dojo.provide("dojox.storage.WhatWGStorageProvider"); dojo.require("dojox.storage.Provider"); dojo.require("dojox.storage.manager"); dojo.declare("dojox.storage.WhatWGStorageProvider",[dojox.stor...
PypiClean
/IcmpTool-0.1.8.tar.gz/IcmpTool-0.1.8/icmptool/icmp_prober.py
import argparse import collections import logging # line below suppresses "No route found for IPv6 destination" warning from scapy logging.getLogger("scapy.runtime").setLevel(logging.ERROR) import os import pickle import socket import sys import time import signal import subprocess from scapy.all import * conf.L3s...
PypiClean
/EmailNotice-1.2.5-py3-none-any.whl/src/Database/Repository/sqliteRepository.py
import sqlite3 from src.Database.Model.emailTemplateModel import EmailTemplateModel from src.Database.Repository.baseDatabaaseRepository import BaseRepository class SqliteRepository(BaseRepository): _databaseConnection = None checkTableExisitQuery = """SELECT name FROM sqlite_master WHERE type='table' AN...
PypiClean
/CSUMMDET-1.0.23.tar.gz/CSUMMDET-1.0.23/mmdet/models/losses/cross_entropy_loss.py
import torch import torch.nn as nn import torch.nn.functional as F from ..registry import LOSSES from .utils import weight_reduce_loss def cross_entropy(pred, label, weight=None, reduction='mean', avg_factor=None): # element-wise losses loss = F.cross_entropy(pred, label, reduction='none') # apply weigh...
PypiClean
/Nuitka-1.8.tar.gz/Nuitka-1.8/nuitka/build/inline_copy/jinja2/jinja2/sandbox.py
import types import operator from jinja2.environment import Environment from jinja2.exceptions import SecurityError from jinja2._compat import string_types, PY2, abc, range_type from jinja2.utils import Markup from markupsafe import EscapeFormatter from string import Formatter #: maximum number of items a range may ...
PypiClean
/EVELink-0.7.5.tar.gz/EVELink-0.7.5/README.md
EVELink - Python Bindings for the EVE API ========================================= EVELink provides a means to access the [EVE XML API](https://eveonline-third-party-documentation.readthedocs.io/en/latest/xmlapi/) from Python. [![PyPI](http://img.shields.io/pypi/v/EVELink.svg)](https://pypi.python.org/pypi/EVELink) ...
PypiClean
/Flask_AdminLTE3-1.0.9-py3-none-any.whl/flask_adminlte3/static/plugins/jquery-validation/localization/messages_de.min.js
!function(a){"function"==typeof define&&define.amd?define(["jquery","../jquery.validate.min"],a):"object"==typeof module&&module.exports?module.exports=a(require("jquery")):a(jQuery)}(function(a){return a.extend(a.validator.messages,{required:"Dieses Feld ist ein Pflichtfeld.",maxlength:a.validator.format("Geben Sie bi...
PypiClean
/DMS_APP-0.2.1-py3-none-any.whl/dms_app/router/__init__.py
from dms_app.resources.login_register import Login, AddUser, ChangeUserPassword, SuperLogin from dms_app.resources.driver_functions import Driver, Status from dms_app.resources.add_profile import AddEmployee, GetEmployee, SearchEmployee from dms_app.resources.violation import ViolationOperations, ActiveViolations, Upda...
PypiClean
/Enarksh-0.9.0.tar.gz/Enarksh-0.9.0/enarksh/xml_reader/node/DynamicInnerWorkerNode.py
from enarksh.DataLayer import DataLayer from enarksh.xml_reader.node.CompoundJobNode import CompoundJobNode class DynamicInnerWorkerNode(CompoundJobNode): # ------------------------------------------------------------------------------------------------------------------ def _store_self(self, srv_id, uri_id, ...
PypiClean
/BIT_framework-0.0.2-py3-none-any.whl/BIT_DL/pytorch/run/executor.py
import pickle import random import re import sys import time from collections import (OrderedDict, # pylint: disable=unused-import defaultdict) from datetime import datetime from pathlib import Path from typing import ( Any, Callable, Dict, IO, List, Optional, Sequence, Set, Union, no_...
PypiClean
/Luvdis-0.8.0.tar.gz/Luvdis-0.8.0/luvdis/config.py
import re import sys from luvdis.common import warn # [arm_func|thumb_func] <address> [module] [name] cfg_re = re.compile(r'(thumb_func|arm_func)?\s*(?:0x)?([0-9a-fA-F]{7,8})(?:\s+(\S+\.s))?(?:\s+(\S+)\r?\n)?') def read_config(path): # TODO: Detect and flag duplicate names """ Reads a configuration file into...
PypiClean
/CleanAdminDjango-1.5.3.1.tar.gz/CleanAdminDjango-1.5.3.1/django/core/files/base.py
from __future__ import unicode_literals import os from io import BytesIO, StringIO, UnsupportedOperation from django.utils.encoding import smart_text from django.core.files.utils import FileProxyMixin from django.utils import six from django.utils.encoding import force_bytes, python_2_unicode_compatible @python_2_un...
PypiClean
/Office365-REST-Python-Client-2.4.3.tar.gz/Office365-REST-Python-Client-2.4.3/office365/sharepoint/navigation/navigation_service.py
from office365.runtime.client_result import ClientResult from office365.runtime.queries.service_operation import ServiceOperationQuery from office365.runtime.paths.resource_path import ResourcePath from office365.sharepoint.base_entity import BaseEntity from office365.sharepoint.navigation.home_site_navigation_settings...
PypiClean
/KDVS-2.0.0.tar.gz/KDVS-2.0.0/kdvs/fw/impl/map/PKCID/GPL.py
r""" Provides concrete implementation of :class:`~kdvs.fw.Map.PKCIDMap` builder that uses `Gene Ontology <http://www.geneontology.org/>`_ as prior knowledge source for data subsets generation. It uses Affymetrix annotations shipped with specified microarray; those annotations shall contain mapping between the individu...
PypiClean
/GenIce2-2.1.7.1.tar.gz/GenIce2-2.1.7.1/genice2/lattices/4R.py
from genice2.cell import cellvectors import numpy as np import genice2.lattices desc = {"ref": {"IV": 'Avogadro'}, "usage": "No options available.", "brief": "Orthogonalized ice IV." } class Lattice(genice2.lattices.Lattice): def __init__(self): self.bondlen = 3.0000000000000004 ...
PypiClean
/CatbackupAPI_NPP-1.6.1-py3-none-any.whl/catbackupAPI/CatbackupAPI_NPP.py
import json from pickle import NONE import time from datetime import datetime import datetime from os.path import exists import os import pyotp from selenium import webdriver from selenium.webdriver.chrome.options import Options import cv2 import pytesseract import argparse import mysql.connector import yaml import...
PypiClean
/Nuitka_fixed-1.1.2-cp310-cp310-win_amd64.whl/nuitka/build/inline_copy/lib/scons-4.4.0/SCons/Script/SConsOptions.py
import gettext import optparse import re import shutil import sys import textwrap import SCons.Node.FS import SCons.Platform.virtualenv import SCons.Warnings from . import Main no_hyphen_re = re.compile(r'(\s+|(?<=[\w!\"\'&.,?])-{2,}(?=\w))') _ = gettext.gettext OptionValueError = optparse.OptionValueError SUPPRESS_...
PypiClean
/DerPyBooru-0.7.5.tar.gz/DerPyBooru-0.7.5/derpibooru/helpers.py
# Copyright (c) 2014, Joshua Stone # 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 source code must retain the above copyright notice, this # list of conditions and the...
PypiClean
/BWP-0.7.0.tar.gz/BWP-0.7.0/bwp/views.py
from __future__ import unicode_literals from django.http import HttpResponseBadRequest, HttpResponseForbidden from django.utils.translation import ugettext_lazy as _ from django.template import RequestContext from django.shortcuts import render_to_response, redirect from django.contrib.auth import REDIRECT_FIELD_NAME ...
PypiClean
/HydPy-5.0.1-cp38-cp38-win_amd64.whl/hydpy/models/lstream/lstream_derived.py
# import... # ...from HydPy from hydpy.core import parametertools from hydpy.auxs import smoothtools from hydpy.models.lstream import lstream_control class Sek(parametertools.SecondsParameter): """Sekunden im Simulationszeitschritt (Number of seconds of the selected simulation time step) [s].""" class HV(p...
PypiClean
/FreePyBX-1.0-RC1.tar.gz/FreePyBX-1.0-RC1/freepybx/public/js/dojox/NodeList/delegate.js.uncompressed.js
define("dojox/NodeList/delegate", ["dojo/_base/lang", "dojo/query", "dojo/_base/NodeList", "dojo/NodeList-traverse"], function(lang, query, NodeList) { // module: // dojox/NodeList/delegate // summary: // TODOC /*===== // doc alias helpers: NodeList = dojo.NodeList; =====*/ lang.extend(NodeList, { delegate: fu...
PypiClean
/dimet-0.1.1-py3-none-any.whl/dimet/visualization/mean_enrichment_line_plot.py
import logging import os from typing import List import matplotlib import matplotlib.pyplot as plt import pandas as pd import seaborn as sns from hydra.core.config_store import ConfigStore from omegaconf import DictConfig from dimet.data import Dataset logger = logging.getLogger(__name__) cs = ConfigStore.instance(...
PypiClean
/Firefly_III_API_Client-2.0.5.0-py3-none-any.whl/firefly_iii_client/paths/v1_link_types_id/get.py
from dataclasses import dataclass import typing_extensions import urllib3 from urllib3._collections import HTTPHeaderDict from firefly_iii_client import api_client, exceptions from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re...
PypiClean
/Auptimizer-2.0.tar.gz/Auptimizer-2.0/src/aup/compression/tensorflow/pruning/one_shot.py
# Modified work Copyright (c) 2018 LG Electronics Inc. # SPDX-License-Identifier: GPL-3.0-or-later import tensorflow as tf from ..compressor import Pruner __all__ = [ 'OneshotPruner', 'LevelPruner', ] class OneshotPruner(Pruner): def __init__(self, model, config_list, pruning_algorithm='level', **algo_...
PypiClean
/EpiClass-2.2.5.tar.gz/EpiClass-2.2.5/README.md
# EpiClass ##### Quick Installation: note: built with python==3.7 recommend installing in conda environment first. ```conda create -n name python==3.7 pip``` ```pip install EpiClass``` ##### readthedocs.com documentation: https://epiclass.readthedocs.io/en/latest/index.html ##### check out the preprint for mo...
PypiClean
/Cell_BLAST-0.5.0.tar.gz/Cell_BLAST-0.5.0/Cell_BLAST/weighting.py
r""" Weighting strategy for adversarial batch alignment in DIRECTi """ import time import typing from collections import Counter import anndata as ad import matplotlib.pyplot as plt import numpy as np import pandas as pd import scanpy as sc import seaborn as sns import torch import torch.nn.functional as F from matpl...
PypiClean
/EquaSolverPro-0.0.1-py3-none-any.whl/equasolverpro/quadratic.py
from equasolverpro.components import * import math def QuadraticSolver(eq): eq = eq.factorizEquation() for i in eq.RHS: eq.RHS.remove(i) i.change_sign() eq.LHS.append(i) print('Step 1:',eq) if len(eq.LHS) == 3: try: for i in eq.LHS: index = ...
PypiClean
/ARGs_OAP-2.3.2.tar.gz/ARGs_OAP-2.3.2/ARGs_OAP/bin/bbmap/statswrapper.sh
usage(){ echo " Written by Brian Bushnell Last modified August 1, 2017 Description: Runs stats.sh on multiple assemblies to produce one output line per file. Usage: statswrapper.sh in=<input file> Parameters: in=<file> Specify the input fasta file, or stdin. For multiple files a, b, and c: 'statswrapper.sh...
PypiClean
/Office365-REST-Python-Client-2.4.3.tar.gz/Office365-REST-Python-Client-2.4.3/office365/directory/applications/roles/assignment.py
from datetime import datetime from office365.directory.object import DirectoryObject class AppRoleAssignment(DirectoryObject): """ Used to record when a user, group, or service principal is assigned an app role for an app. An app role assignment is a relationship between the assigned principal (a user, ...
PypiClean
/Alarmageddon-1.1.2-py3-none-any.whl/alarmageddon/validations/graphite_expectations.py
from abc import abstractmethod SECONDS_PER_MINUTE = 60 SECONDS_PER_HOUR = SECONDS_PER_MINUTE * 60 SECONDS_PER_DAY = SECONDS_PER_HOUR * 24 def _avg(readings): """Python 2.7 does not have an average function""" return sum(readings, 0.0) / len(readings) def _delta_str(delta): """Convert a timedelta to a ...
PypiClean
/HybridUI-0.0.1.tar.gz/HybridUI-0.0.1/hybrid/core/event_core.py
import uuid from inspect import signature from distutils.command.upload import upload import uuid import inspect import os import time from pathlib import Path from inspect import signature from cgitb import reset from faulthandler import disable import json from typing import Dict, Any import uuid from dataclasses im...
PypiClean
/FreePyBX-1.0-RC1.tar.gz/FreePyBX-1.0-RC1/freepybx/public/js/dojox/grid/enhanced/plugins/Menu.js.uncompressed.js
define("dojox/grid/enhanced/plugins/Menu", [ "dojo/_base/declare", "dojo/_base/array", "dojo/_base/lang", "dojo/_base/html", "dojo/_base/event", "dojo/keys", "../_Plugin", "../../EnhancedGrid" ], function(declare, array, lang, html, evt, keys, _Plugin, EnhancedGrid){ var Menu = declare("dojox.grid.enhanced.plu...
PypiClean
/FDmitry_Server-1.0.1.tar.gz/FDmitry_Server-1.0.1/server/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
/OPTMOD-0.0.1rc1.tar.gz/OPTMOD-0.0.1rc1/README.md
# OPTMOD [![Build Status](https://travis-ci.org/ttinoco/OPTMOD.svg?branch=master)](https://travis-ci.org/ttinoco/OPTMOD) ## Overview Experimental optimization modeling layer for [OPTALG](https://github.com/ttinoco/OPTALG) (dev branch) with automatic sparse first and second derivatives. Expressions for derivatives a...
PypiClean
/BYOSED-0.0.3-py3-none-any.whl/byosed/__init__.py
from .gen_BYOSED import * from .perturbers import * from .perturber_io import * def test(package=None, test_path=None, args=None, plugins=None, verbose=False, pastebin=None, remote_data=False, pep8=False, pdb=False, coverage=False, open_files=False, **kwargs): """ Copied over from sncosmo v1.6 (...
PypiClean
/Flask-Statics-Helper-1.0.0.tar.gz/Flask-Statics-Helper-1.0.0/flask_statics/static/angular/i18n/angular-locale_en-jm.js
'use strict'; angular.module("ngLocale", [], ["$provide", function($provide) { var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; function getDecimals(n) { n = n + ''; var i = n.indexOf('.'); return (i == -1) ? 0 : n.length - i - 1; } function getVF(n, opt_pre...
PypiClean
/DigiTwin_CO2_SampleProject-2.tar.gz/DigiTwin_CO2_SampleProject-2/README.rst
================================================ DigiTwin CO2 Sample Project ================================================ Reproducible code and data for this publication Digital Twin applications using the SIMULTAN data model and Python This repository contains the three packages CO2_Prediction, MonitoringFaker a...
PypiClean
/FunID-0.3.16.2.tar.gz/FunID-0.3.16.2/funid/external/trimal.v1.4/trimAl/scripts/generate_trimmed_msas.sh
mkdir test_msas mkdir test_msas/gappyout mkdir test_msas/strict mkdir test_msas/strictplus mkdir test_msas/automated1 mkdir test_msas/nogaps mkdir test_msas/noallgaps ./source/trimal -in dataset/example.004.AA.fasta -gappyout > test_msas/gappyout/example.004.AA.fasta ./source/trimal -in dataset/example.004.AA.fasta -s...
PypiClean
/NotAOrm-1.2.1.tar.gz/NotAOrm-1.2.1/notaorm/query.py
import sqlite3 from collections import namedtuple from typing import Generator, NamedTuple, Optional import notaorm from notaorm.condition import Condition from notaorm.sql import option, order sqlite3.register_converter("BOOLEAN", lambda v: v.decode() == 'True') class Query: def __init__(self, table_name, tabl...
PypiClean
/BA_Marissa_Alexis-0.1.0-py3-none-any.whl/producetracker/scraper.py
import requests from bs4 import BeautifulSoup from bs4 import Tag from database import insert_general_table, delete_all_general_items counter = 0 def normalize_name(name): if ' lasts' in name: name = name.replace(' lasts', '') if ' last' in name: name = name.replace(' last', '') if '(hard)...
PypiClean
/MufSim-1.2.2.tar.gz/MufSim-1.2.2/mufsim/gui/upload_wizard.py
import os import time from ssl import SSLError from threading import Thread, Lock from collections import namedtuple try: # Python 2 from Tkinter import * # noqa from tkMessageBox import showerror, askyesno from ScrolledText import ScrolledText from urlparse import urlparse, quote_plus except ImportE...
PypiClean
/NEURAL_py_EEG-0.1.4.tar.gz/NEURAL_py_EEG-0.1.4/src/NEURAL_py_EEG/spectral_features.py
import math import numpy as np from NEURAL_py_EEG import utils from NEURAL_py_EEG import NEURAL_parameters # noinspection SpellCheckingInspection def gen_spectrum(x, Fs, param_st, SCALE_PSD=0): """ gen_spectrum: specturm using either: 1. periodogram 2. W...
PypiClean
/Nuitka_fixed-1.1.2-cp310-cp310-win_amd64.whl/nuitka/build/inline_copy/lib/scons-2.3.2/SCons/Tool/cc.py
__revision__ = "src/engine/SCons/Tool/cc.py 2014/07/05 09:42:21 garyo" import SCons.Tool import SCons.Defaults import SCons.Util CSuffixes = ['.c', '.m'] if not SCons.Util.case_sensitive_suffixes('.c', '.C'): CSuffixes.append('.C') def add_common_cc_variables(env): """ Add underlying common "C compiler...
PypiClean
/Create-Python-Project-0.1.0.tar.gz/Create-Python-Project-0.1.0/CHANGES.rst
Changelog ========= Here you can see the full list of changes between each releases of Create-Python-Project. Version 0.1.0 ------------- Features - CLI with one command ``create-python-project new`` allowing to instantiate a new project - CLI configuration can be done through args or from git information or from `...
PypiClean
/AppiumExtended-0.5.49b0-py3-none-any.whl/appium_extended_helpers/helpers_decorators.py
import base64 import sys import io import time import functools import traceback from functools import wraps from datetime import datetime import allure import numpy as np import pytest from PIL import Image # TODO make unit test for module def retry(func): """ Повторяет выполнение метода если он возвращает...
PypiClean
/LFake-18.9.0.tar.gz/LFake-18.9.0/lfake/providers/currency/bn_BD/__init__.py
from faker.providers.person.bn_BD import translate_to_bengali_digits from .. import Provider as CurrencyProvider class Provider(CurrencyProvider): """ Implement currency provider for ``bn_BD`` locale. """ currencies = ( ("AED", "সংযুক্ত আরব আমিরাত দিরহাম"), ("AFN", "আফগান আফগানি"), ...
PypiClean
/Mako-1.2.4.tar.gz/Mako-1.2.4/mako/_ast_util.py
from _ast import Add from _ast import And from _ast import AST from _ast import BitAnd from _ast import BitOr from _ast import BitXor from _ast import Div from _ast import Eq from _ast import FloorDiv from _ast import Gt from _ast import GtE from _ast import If from _ast import In from _ast import Invert from _ast impo...
PypiClean
/Flask-INIConfig-0.1.0.tar.gz/Flask-INIConfig-0.1.0/README.rst
Flask-INIConfig =============== .. contents:: Table of contents Overview -------- `Flask-INIConfig`_ is a `Flask`_ extension that adds two additional methods ``from_inifile`` and ``from_inifile_sections`` to the ``Flask.config`` configuration instance for an application. This allows you to load ini files or section...
PypiClean
/Aston-0.7.1.tar.gz/Aston-0.7.1/aston/trace/new_integrator.py
import numpy as np from aston.peak.peak_finding import simple_peak_find from aston.peak.integrators import simple_integrate def _get_windows(peak_list): """ Given a list of peaks, bin them into windows. """ win_list = [] for t0, t1, hints in peak_list: p_w = (t0, t1) for w in win_l...
PypiClean
/CombiVEP-0.1.2.tar.gz/CombiVEP-0.1.2/combivep/refdb/updater.py
import subprocess import os import re import sys import zipfile import combivep.settings as combivep_settings from combivep.template import CombiVEPBase #import combivep.template as main_template def ungz(gz_file): args = [] args.append('gzip') args.append('-d') args.append(gz_file) error = subpro...
PypiClean
/NlvWxPython-4.2.0-cp37-cp37m-win_amd64.whl/wx/lib/wxcairo/__init__.py
#---------------------------------------------------------------------------- import wx # Import our glue functions for either cairocffi or pycairo, depending on # which is installed. try: # Use cairocffi first if it is available from .wx_cairocffi import _ContextFromDC, _FontFaceFromFont import cairo exc...
PypiClean
/NeodroidVision-0.3.0-py36-none-any.whl/neodroidvision/multitask/fission/skip_hourglass/factory.py
__author__ = "Christian Heider Nielsen" __doc__ = r""" Created on 29/10/2019 """ from typing import List, Tuple from neodroidvision.multitask.fission.skip_hourglass.compress import Compress from neodroidvision.multitask.fission.skip_hourglass.decompress import Decompress from neodroidvision.mu...
PypiClean
/ObjectDetection_aeye-0.0.3-py3-none-any.whl/objectDetection/datasets.py
import torch from torch.utils.data import Dataset import json import os from PIL import Image from .utils import transform class PascalVOCDataset(Dataset): """ A PyTorch Dataset class to be used in a PyTorch DataLoader to create batches. """ def __init__(self, data_folder, split, keep_difficult=False...
PypiClean
/Django-4.2.4.tar.gz/Django-4.2.4/django/contrib/admin/sites.py
import re from functools import update_wrapper from weakref import WeakSet from django.apps import apps from django.conf import settings from django.contrib.admin import ModelAdmin, actions from django.contrib.admin.views.autocomplete import AutocompleteJsonView from django.contrib.auth import REDIRECT_FIELD_NAME from...
PypiClean
/FamcyDev-0.3.71-py3-none-any.whl/Famcy/bower_components/jquery/src/ajax.js
define( [ "./core", "./var/document", "./var/isFunction", "./var/rnothtmlwhite", "./ajax/var/location", "./ajax/var/nonce", "./ajax/var/rquery", "./core/init", "./core/parseXML", "./event/trigger", "./deferred", "./serialize" // jQuery.param ], function( jQuery, document, isFunction, rnothtmlwhite, locatio...
PypiClean
/MatchZoo-test-1.0.tar.gz/MatchZoo-test-1.0/matchzoo/preprocessors/dssm_preprocessor.py
from tqdm import tqdm from matchzoo.data_pack import DataPack from matchzoo.engine.base_preprocessor import BasePreprocessor from .chain_transform import chain_transform from .build_vocab_unit import build_vocab_unit from . import units tqdm.pandas() class DSSMPreprocessor(BasePreprocessor): """DSSM Model prep...
PypiClean
/EnergyCapSdk-8.2304.4743.tar.gz/EnergyCapSdk-8.2304.4743/energycap/sdk/models/accounting_settings_request.py
from msrest.serialization import Model class AccountingSettingsRequest(Model): """AccountingSettingsRequest. :param fiscal_year_start_month: First month of fiscal year <span class='property-internal'>Must be between 1 and 12</span> <span class='property-internal'>Required (defined)</span> :typ...
PypiClean
/IHEWAcollect-0.0.31.tar.gz/IHEWAcollect-0.0.31/README.rst
.. -*- mode: rst -*- |CoverAlls|_ |Travis|_ |ReadTheDocs|_ |DockerHub|_ |PyPI|_ |Zenodo|_ .. |CoverAlls| image:: https://coveralls.io/repos/github/wateraccounting/IHEWAcollect/badge.svg?branch=master .. _CoverAlls: https://coveralls.io/github/wateraccounting/IHEWAcollect?branch=master .. |Travis| image:: https://tra...
PypiClean
/KoksSzachy-0.8.52-py3-none-any.whl/koksszachy/play.py
import sys import os DEBUG = os.getenv("DEBUG", None) is not None SP = os.getenv("SP", None) is not None if __name__=="koksszachy.play": from koksszachy.engine import KoksSzachy from koksszachy.selfplay import Selfplay else: sys.path.append(os.getcwd()) from engine import KoksSzachy from selfplay import Sel...
PypiClean
/MezzanineFor1.7-3.1.10.tar.gz/MezzanineFor1.7-3.1.10/mezzanine/generic/migrations/south/0012_auto__add_field_rating_rating_date.py
import datetime from south.db import db from south.v2 import SchemaMigration from django.db import models try: from django.contrib.auth import get_user_model except ImportError: # django < 1.5 from django.contrib.auth.models import User else: User = get_user_model() user_orm_label = '%s.%s' % (User._meta...
PypiClean
/DSUL-0.0.1.tar.gz/DSUL-0.0.1/dsul/confidence_intervals/computational.py
import numpy as np from joblib import Parallel, delayed from scipy import stats from .base import BootstrapCI, ConfidenceInterval, IntervalType, _get_alphas class SimpleJackknife: def __init__(self, sample, stats_function) -> None: self.sample = np.asarray(sample) self.stats_function = stats_func...
PypiClean
/LatestEarthQuakeIndonesiaByFaqih-0.3.tar.gz/LatestEarthQuakeIndonesiaByFaqih-0.3/Latest_EarthQuake_BMKG/__init__.py
import requests from bs4 import BeautifulSoup def ekstraksi_data(): """ Tanggal : 30 Januari 2022 Waktu : 04:17:13 WIB Magnitudo : 4.2 Kedalaman : 14 km Lokasi : 2.42 LS - 140.15 BT Pusat gempa : berada di darat 33 km Barat Laut Kab. Jayapura Dirasakan : (Skala MMI): II Genyem ""...
PypiClean
/Firmant-0.2.3a1.tar.gz/Firmant-0.2.3a1/firmant/application.py
import logging from firmant import utils from firmant.chunks import AbstractChunk from firmant.routing import URLMapper from firmant.utils import class_name import pysettings class Firmant(object): '''Perform a complete run from parsing through writing. >>> from pysettings.loaders import mod_to_setting...
PypiClean
/GALFITools-1.0.0.tar.gz/GALFITools-1.0.0/CONTRIBUTING.rst
.. todo:: THIS IS SUPPOSED TO BE AN EXAMPLE. MODIFY IT ACCORDING TO YOUR NEEDS! The document assumes you are using a source repository service that promotes a contribution model similar to `GitHub's fork and pull request workflow`_. While this is true for the majority of services (like GitHub, GitLab, BitB...
PypiClean
/FamcyDev-0.3.71-py3-none-any.whl/Famcy/node_modules/bootstrap-fileinput/CHANGE.md
Change Log: `bootstrap-fileinput` ================================= ## version 5.2.2 **Date**: 19-Jun-2021 - (enh #1719): Show loading / processing when browse button used for file selection - (enh #1718): Enhancements for Bootstrap 5.x & New Theme - Default to use bootstrap 5.x icons instead of glyphicons -...
PypiClean