id
stringlengths
1
265
text
stringlengths
6
5.19M
dataset_id
stringclasses
7 values
/CsuSort-1.0.15.tar.gz/CsuSort-1.0.15/Sort/yolo3/model.py
from functools import wraps import numpy as np import tensorflow as tf from keras import backend as K from keras.layers import Conv2D, Add, ZeroPadding2D, UpSampling2D, Concatenate from keras.layers.advanced_activations import LeakyReLU from keras.layers.normalization import BatchNormalization from keras.models impor...
PypiClean
/FanFicFare-4.27.0.tar.gz/FanFicFare-4.27.0/fanficfare/fetchers/base_fetcher.py
# Copyright 2022 FanFicFare team # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writ...
PypiClean
/DTSR-0.2.0.tar.gz/DTSR-0.2.0/dtsr/bin/get_table_betas.py
import os import argparse from dtsr.config import Config from dtsr.util import filter_models def print_table(beta_summaries, names, beta_names): table_str = ''' \\begin{table} \\begin{tabular}{r|%s} & %s \\\\ & %s \\\\ \\hline ''' %( '|'.join(['l'*3 for x in names]), ' & '.j...
PypiClean
/EOxServer-1.2.12-py3-none-any.whl/eoxserver/services/ows/wps/exceptions.py
class OWS10Exception(Exception): """ Base OWS 1.0 exception of the WPS 1.0.0 exceptions """ http_status_code = 400 def __init__(self, code, locator, message): self.code = code self.locator = locator Exception.__init__(self, message) #------------------------------------------------...
PypiClean
/BO4ML-0.3.1.tar.gz/BO4ML-0.3.1/Component/mHyperopt/hyperopt.py
from . import hyperopt, tpe, space_eval, rand from functools import partial import time class HyperOpt(object): def __init__(self,**kwargs): for key, value in kwargs.items(): setattr(self, key, value) self.def_max_fails=10 self.fmin_todict= None self.isInitMode=True ...
PypiClean
/ExpressPigeon-0.0.8.tar.gz/ExpressPigeon-0.0.8/expresspigeon/__init__.py
import os import json from collections import namedtuple from expresspigeon.autoresponders import AutoResponders from expresspigeon.campaigns import Campaigns from expresspigeon.contacts import Contacts from expresspigeon.lists import Lists from expresspigeon.messages import Messages from expresspigeon.templates import...
PypiClean
/Adafruit_Blinka-8.20.1-py3-none-any.whl/adafruit_blinka/microcontroller/rockchip/rk3566/pin.py
from adafruit_blinka.microcontroller.generic_linux.libgpiod_pin import Pin GPIO0_A2 = Pin((0, 2)) GPIO0_A4 = Pin((0, 4)) GPIO0_A5 = Pin((0, 5)) GPIO0_B1 = Pin((0, 9)) GPIO0_B2 = Pin((0, 10)) GPIO0_B5 = Pin((0, 13)) GPIO0_B6 = Pin((0, 14)) GPIO0_B7 = Pin((0, 15)) GPIO0_C2 = Pin((0, 18)) GPIO0_C3 = Pin((0, 19)) GPIO0_C5...
PypiClean
/AmorphSC-1.0.tar.gz/AmorphSC-1.0/README.md
# Amorphous Semiconductors Analysis Library This is a Python library created for my master thesis on amorphous semiconductors. It is composed by many files, each one to perform a different kind of analysis. At the moment it is possible to analyze capacitance - voltage, photocurrent and Kelvin Probe Force Microscopy ...
PypiClean
/MACE-1.1.2.tar.gz/MACE-1.1.2/scripts/number_of_variants.py
__author__ = 'Sergei F. Kliver' import os, sys import argparse from MACE.General.File import split_filename, make_list_of_path_to_files from MACE.Parsers.VCF import CollectionVCF def vcf_filter(filename): return True if filename[-4:] == ".vcf" else False parser = argparse.ArgumentParser() parser.add_argument("...
PypiClean
/DataGridBWC-0.2.2.tar.gz/DataGridBWC-0.2.2/datagridbwc_ta/views.py
from blazeweb.views import View from sqlalchemybwc import db from datagridbwc.lib import DataGrid, Col from datagridbwc_ta.model.orm import Car, Radio from datagridbwc.lib.declarative import NumericColumn from datagridbwc_ta.tests.grids import PeopleGrid as PGBase from datagridbwc_ta.model.orm import Person class Dat...
PypiClean
/OWSLib-0.29.2.tar.gz/OWSLib-0.29.2/owslib/ogcapi/features.py
from copy import deepcopy import logging from urllib.parse import urlencode from owslib.ogcapi import Collections from owslib.util import Authentication LOGGER = logging.getLogger(__name__) class Features(Collections): """Abstraction for OGC API - Features""" def __init__(self, url: str, json_: str = None...
PypiClean
/BlueWhale3_Network-1.4.2-cp38-cp38-macosx_10_9_x86_64.whl/orangecontrib/network/widgets/OWNxAnalysis.py
import inspect from collections import namedtuple import numpy as np from scipy.sparse import csgraph from AnyQt.QtCore import QThread, Qt from AnyQt.QtWidgets import QWidget, QGridLayout from Orange.data import ContinuousVariable, Table, Domain from Orange.widgets import gui, widget from Orange.widgets.settings imp...
PypiClean
/KL_Audit_supportV4.0-1.0-py3-none-any.whl/AuditModule/core/applications/AuditManagementModules.py
from AuditModule.common import AppConstants from AuditModule.util import Logging as LOGG import traceback from datetime import datetime # from AuditModule.core.persistences.adaptors.CassandraPersistenceAdaptor import CassandraDButility # cassandra_obj = CassandraDButility() Logger = LOGG.get_logger() def audit_logs_...
PypiClean
/CB_IPO-0.2.0.tar.gz/CB_IPO-0.2.0/CB_IPO/CB_IPO.py
import pandas as pd import time import math from bs4 import BeautifulSoup as bs from selenium import webdriver class scrape: """ This class creates an object that can scrape for various filings and and attributes of SEC filings Attributes: url_info: The url to be used for scraping the site ""...
PypiClean
/Cerealizer-0.8.3.tar.gz/Cerealizer-0.8.3/README.rst
Cerealizer %%%%%%%%%% Cerealizer is a secure pickle-like module for Python 2 and 3. It support basic types (int, string, unicode, tuple, list, dict, set,...), old and new-style classes (you need to register the class for security), object cycles, and it can be extended to support C-defined type. Cerealizer is avail...
PypiClean
/MindsDB-23.8.3.0.tar.gz/MindsDB-23.8.3.0/mindsdb/api/mongo/responders/delete.py
from mindsdb.api.mongo.classes import Responder import mindsdb.api.mongo.functions as helpers from mindsdb_sql.parser.ast import Delete, Identifier, BinaryOperation, Constant from mindsdb_sql.parser.dialects.mindsdb import DropPredictor, DropJob, DropMLEngine from mindsdb.interfaces.jobs.jobs_controller import JobsCont...
PypiClean
/CrApsim-0.0.1a0.tar.gz/CrApsim-0.0.1a0/README.rst
CrApsim =============================== version number: 0.0.1 author: Torsten Zielke Overview -------- Creates Apsim-Project files from given parameters and files. Installation / Usage -------------------- To install use pip: $ pip install CrApsim Or clone the repo: $ git clone TBD $ python setup.p...
PypiClean
/ImmuneDB-0.29.11.tar.gz/ImmuneDB-0.29.11/README.md
ImmuneDB ======== [![Build Status](https://img.shields.io/travis/arosenfeld/immunedb/master.svg)](https://travis-ci.org/arosenfeld/immunedb) [![Documentation Status](https://readthedocs.org/projects/immunedb/badge/?version=latest)](https://immunedb.readthedocs.io/en/latest/?badge=latest) [![codecov](https://codecov.io...
PypiClean
/COAsT-3.2.1.tar.gz/COAsT-3.2.1/coast/data/gridded.py
import os.path as path_lib import re import warnings # from dask import delayed, compute, visualize # import graphviz import gsw import numpy as np import xarray as xr from .._utils import general_utils, stats_util from .coast import Coast from .config_parser import ConfigParser from .._utils.logging_util import get_...
PypiClean
/Electrum-Zcash-Random-Fork-3.1.3b5.tar.gz/Electrum-Zcash-Random-Fork-3.1.3b5/lib/simple_config.py
import json import threading import time import os import stat from copy import deepcopy from .util import (user_dir, print_error, PrintError, NoDynamicFeeEstimates) from .i18n import _ FEE_ETA_TARGETS = [25, 10, 5, 2] FEE_DEPTH_TARGETS = [10000000, 5000000, 2000000, 1000000, 500000, 200000, 10000...
PypiClean
/MDPOW-0.8.0.tar.gz/MDPOW-0.8.0/mdpow/restart.py
import pickle import os import logging logger = logging.getLogger('mdpow.checkpoint') def checkpoint(name, sim, filename): """Execute the :meth:`Journalled.save` method and log the event.""" logger.info("checkpoint: %(name)s", vars()) sim.save(filename) class JournalSequenceError(Exception): """Rais...
PypiClean
/BIA_OBS-1.0.3.tar.gz/BIA_OBS-1.0.3/BIA/static/dist/node_modules/acorn/CHANGELOG.md
## 7.4.0 (2020-08-03) ### New features Add support for logical assignment operators. Add support for numeric separators. ## 7.3.1 (2020-06-11) ### Bug fixes Make the string in the `version` export match the actual library version. ## 7.3.0 (2020-06-11) ### Bug fixes Fix a bug that caused parsing of object patt...
PypiClean
/Jam-Sesh-Server-2.0.0.tar.gz/Jam-Sesh-Server-2.0.0/static/js/bootstrap/bootstrap.esm.min.js
import*as Popper from"@popperjs/core";const NODE_TEXT=3,SelectorEngine={find:(e,t=document.documentElement)=>[].concat(...Element.prototype.querySelectorAll.call(t,e)),findOne:(e,t=document.documentElement)=>Element.prototype.querySelector.call(t,e),children:(e,t)=>[].concat(...e.children).filter(e=>e.matches(t)),paren...
PypiClean
/Flask-Statics-Helper-1.0.0.tar.gz/Flask-Statics-Helper-1.0.0/flask_statics/static/typeahead/typeahead.bundle.js
(function($) { var _ = function() { "use strict"; return { isMsie: function() { return /(msie|trident)/i.test(navigator.userAgent) ? navigator.userAgent.match(/(msie |rv:)(\d+(.\d+)?)/i)[2] : false; }, isBlankString: function(str) { ...
PypiClean
/ModelicaLanguage-0.0.0a6-py3-none-any.whl/modelica_language/parsers/syntax/_keyword.py
__all__ = ( "ANY_KEYWORD", "ALGORITHM", "AND", "ANNOTATION", "BLOCK", "BREAK", "CLASS", "CONNECT", "CONNECTOR", "CONSTANT", "CONSTRAINEDBY", "DER", "DISCRETE", "EACH", "ELSE", "ELSEIF", "ELSEWHEN", "ENCAPSULATED", "END", "ENUMERATION", ...
PypiClean
/EOmaps-7.0-py3-none-any.whl/eomaps/qtcompanion/widgets/editor.py
import logging from PyQt5 import QtCore, QtWidgets, QtGui from PyQt5.QtCore import Qt, pyqtSignal, pyqtSlot, QPointF from PyQt5.QtGui import QFont from matplotlib.colors import to_rgba_array from ...inset_maps import InsetMaps from ..common import iconpath from ..base import BasicCheckableToolButton from .wms import...
PypiClean
/NESTML-5.3.0-py3-none-any.whl/pynestml/meta_model/ast_kernel.py
from pynestml.meta_model.ast_node import ASTNode class ASTKernel(ASTNode): """ This class is used to store kernels. Grammar: kernel : KERNEL_KEYWORD variable EQUALS expression (COMMA variable EQUALS expression)* (SEMICOLON)?; """ def __init__(self, variables, expressions, *args, **kwargs...
PypiClean
/Euphorie-15.0.2.tar.gz/Euphorie-15.0.2/src/euphorie/client/resources/oira/script/chunks/65611.ec32da0a6ccb5c5f2b11.min.js
"use strict";(self.webpackChunk_patternslib_patternslib=self.webpackChunk_patternslib_patternslib||[]).push([[65611],{11210:function(n,e,t){var i=t(87537),o=t.n(i),r=t(23645),s=t.n(r)()(o());s.push([n.id,'.slick-slider{position:relative;display:block;box-sizing:border-box;-webkit-touch-callout:none;-webkit-user-select:...
PypiClean
/FlexGet-3.9.6-py3-none-any.whl/flexget/plugins/input/filmweb_watchlist.py
from loguru import logger from flexget import plugin from flexget.entry import Entry from flexget.event import event from flexget.utils.cached_input import cached try: from filmweb.exceptions import RequestFailed from filmweb.filmweb import Filmweb as FilmwebAPI from filmweb.items import LoggedUser except...
PypiClean
/Nuitka_winsvc-1.7.10-cp310-cp310-win_amd64.whl/nuitka/nodes/AsyncgenNodes.py
from .ChildrenHavingMixins import ChildHavingAsyncgenRefMixin from .ExpressionBases import ExpressionBase, ExpressionNoSideEffectsMixin from .FunctionNodes import ExpressionFunctionEntryPointBase class ExpressionMakeAsyncgenObject( ExpressionNoSideEffectsMixin, ChildHavingAsyncgenRefMixin, ExpressionBase ): k...
PypiClean
/MCsniperPY-3.5-py3-none-any.whl/mcsniperpy/cli.py
import asyncio import typer from mcsniperpy import Sniper from mcsniperpy.util import logs_manager as log from mcsniperpy.util import ping_tester from mcsniperpy.util.name_system import next_name app = typer.Typer() def startup(): title = f"""{log.Color.cyan} ███╗ ███╗ ██████╗███████╗███╗ ██╗██╗██████╗ ██...
PypiClean
/NeodroidAgent-0.4.8-py36-none-any.whl/neodroidagent/common/architectures/experimental/recurrent.py
from neodroidagent.common.architectures.mlp import MLP __author__ = "Christian Heider Nielsen" __doc__ = "" import torch from torch import nn from torch.nn import functional as F class RecurrentCategoricalMLP(MLP): def __init__(self, r_hidden_layers=10, **kwargs): super().__init__(**kwargs) self...
PypiClean
/Graphy-1.0.0.tar.gz/Graphy-1.0.0/graphy/bar_chart.py
import copy import warnings from graphy import common from graphy import util class BarsStyle(object): """Style of a series of bars in a BarChart Object Attributes: color: Hex string, like '00ff00' for green """ def __init__(self, color): self.color = color class BarChartStyle(object): """Repre...
PypiClean
/FoilMesh-0.0.8.tar.gz/FoilMesh-0.0.8/foilmesh/meshio/ansys/_ansys.py
import re import numpy as np from ..__about__ import __version__ from .._common import warn from .._exceptions import ReadError, WriteError from .._files import open_file from .._helpers import register_format from .._mesh import Mesh def _skip_to(f, char): c = None while c != char: c = f.read(1).de...
PypiClean
/FuzzyClassificator-1.3.84-py3-none-any.whl/pybrain/rl/learners/valuebased/sarsa.py
__author__ = 'Thomas Rueckstiess, ruecksti@in.tum.de' from pybrain.rl.learners.valuebased.valuebased import ValueBasedLearner class SARSA(ValueBasedLearner): """ State-Action-Reward-State-Action (SARSA) algorithm. In batchMode, the algorithm goes through all the samples in the history and performs an up...
PypiClean
/BacGenomePipeline-1.0.9.tar.gz/BacGenomePipeline-1.0.9/README.txt
BacGenomePipeline Complete Bacterial Genome Assembly and Annotation Pipeline Program developed by Stephen Fordham General Description BacGenomePipeline is a complete convenience bacterial genome assembly pipeline. Assembled and annotated bacterial genomes can be created with only raw reads as input! BacGenomePipel...
PypiClean
/CRIkit2-0.4.4.tar.gz/CRIkit2-0.4.4/docs/source/crikit.io.lazy5.ui.rst
crikit.io.lazy5.ui package ========================== Submodules ---------- crikit.io.lazy5.ui.QtHdfLoad module ----------------------------------- .. automodule:: crikit.io.lazy5.ui.QtHdfLoad :members: :undoc-members: :show-inheritance: crikit.io.lazy5.ui.qt\_HdfLoad module -------------------------------...
PypiClean
/Django-Pizza-16.10.1.tar.gz/Django-Pizza-16.10.1/pizza/kitchen_sink/static/ks/ckeditor/plugins/a11yhelp/dialogs/lang/bg.js
/* Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or http://ckeditor.com/license */ CKEDITOR.plugins.setLang("a11yhelp","bg",{title:"Accessibility Instructions",contents:"Help Contents. To close this dialog press ESC.",legend:[{name:"Общо",items:[{name:"Edit...
PypiClean
/Flask-AutoFixture-0.2.3.tar.gz/Flask-AutoFixture-0.2.3/README.rst
***************** Flask-AutoFixture ***************** |version| |license| |travis| Flask-AutoFixture is an extension that automatically records JSON fixtures right from the test suite by hooking into the request callbacks of your Flask application. Installation ============ :: pip install flask-autofixture ...
PypiClean
/MongoAlchemy-0.21.tar.gz/MongoAlchemy-0.21/mongoalchemy/fields/sequence.py
from __future__ import print_function from mongoalchemy.py3compat import * from mongoalchemy.fields.base import * class SequenceField(Field): ''' Base class for Fields which are an iterable collection of objects in which every child element is of the same type''' is_sequence_field = True valid_...
PypiClean
/AwesomeTkinter-2021.11.8-py3-none-any.whl/awesometkinter/utils.py
import base64 import math import platform import tkinter as tk from tkinter import ttk import PIL from PIL import Image, ImageTk, ImageColor, ImageDraw, ImageFilter import hashlib import io def identify_operating_system(): """identify current operating system Returns: (str): 'Windows', 'Linux', or 'D...
PypiClean
/MXFusion-0.3.1.tar.gz/MXFusion-0.3.1/mxfusion/components/functions/operators/operator_impl.py
import mxnet as mx from . import MXNetOperatorDecorator from .operators import Operator from ...variables import Variable from ....util.inference import realize_shape from ....common.exceptions import InferenceError """ Basic Arithmetic """ @MXNetOperatorDecorator(name='add', args=['x', 'y'], inputs=['x', 'y']) d...
PypiClean
/Flask-KQMaps-0.4.2.tar.gz/Flask-KQMaps-0.4.2/flask_kqmaps/static/kqwebclient/leaflet/3rd_libs/Leaflet.hotline/leaflet.hotline.min.js
!function(t,i){"function"==typeof define&&define.amd?define(["leaflet"],i):"object"==typeof exports?module.exports=i:i(t.L)}(this,function(t){if(t.Hotline)return t;var i=function(t){if(!(this instanceof i))return new i(t);var e={0:"green",.5:"yellow",1:"red"};this._canvas=t="string"==typeof t?document.getElementById(t)...
PypiClean
/Actflow-0.2.3.1-py3-none-any.whl/connectivity_estimation/pc_multregconn.py
from sklearn.linear_model import LinearRegression from sklearn.decomposition import PCA from sklearn.model_selection import cross_val_predict from sklearn.metrics import mean_squared_error, r2_score import numpy as np def pc_multregconn(activity_matrix, target_ts=None, n_components=None, n_comp_search=False, n_compone...
PypiClean
/Flask-ReqArg-0.1.5.tar.gz/Flask-ReqArg-0.1.5/flask_reqarg/base.py
from sys import version_info from abc import ABCMeta, abstractproperty from functools import wraps from inspect import isfunction, getargspec if version_info[0] == 2: from itertools import izip as zip __all__ = ( 'get', 'post', 'args', 'files', 'cookies', 'collection', 'RequestWrapper...
PypiClean
/GraphLab_Create-2.1-cp27-none-macosx_10_5_x86_64.macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.macosx_10_11_intel.macosx_10_11_x86_64.whl/graphlab/_beta/views/platform/wrappers/_matplotlib.py
try: import io as _StringIO except ImportError: import StringIO as _StringIO from .. import _view from ._plotly import PlotlyView as _PlotlyView class MatplotlibView(_view.View): def __init__(self, figure, backend='plotly'): """ Wraps a matplotlib figure in a View. The resulting View can b...
PypiClean
/Electrum-VTC-2.9.3.3.tar.gz/Electrum-VTC-2.9.3.3/lib/mnemonic.py
import os import hmac import math import hashlib import unicodedata import string import ecdsa import pbkdf2 from util import print_error from bitcoin import is_old_seed, is_new_seed import version import i18n # http://www.asahi-net.or.jp/~ax2s-kmtn/ref/unicode/e_asia.html CJK_INTERVALS = [ (0x4E00, 0x9FFF, 'CJ...
PypiClean
/Djaloha-0.4.2.tar.gz/Djaloha-0.4.2/djaloha/static/aloha.0.20.20/plugins/common/contenthandler/lib/genericcontenthandler.js
define( ['aloha', 'aloha/jquery', 'aloha/contenthandlermanager'], function(Aloha, jQuery, ContentHandlerManager) { var GENTICS = window.GENTICS; /** * Register the generic content handler */ var GenericContentHandler = ContentHandlerManager.createHandler({ /** * Handle the pasting. Remove all unwanted...
PypiClean
/EpistaSim_Linux-1.1.0.tar.gz/EpistaSim_Linux-1.1.0/BackWard.py
import random import math from collections import defaultdict import sys,os,time from optparse import OptionParser from tempfile import gettempdir try: import numpy except ImportError: print >>sys.stderr, "No numpy module" def Hapftrac(hapfre,Shap,haplotype,deltfre,N): trac={} trac.setdefault(0,{})["0...
PypiClean
/AutoDiff_jnrw-0.0.2-py3-none-any.whl/autodiff/forward/function.py
import numpy as np from .sym import DualNumber, Symbol, symbol, symbolic NumberTypes = (int, float, complex) # concatenation operator for vector functions def sum(v: 'List[Symbol]') -> Symbol: """ Summing elements of a list of Symbols :param v: list of Symbol objects :type v: list of Symbols :retu...
PypiClean
/OLCTools-1.3.5.tar.gz/OLCTools-1.3.5/olctools/databasesetup/enterobase_api_download_assemblies.py
from olctools.accessoryFunctions.accessoryFunctions import make_path, SetupLogging import olctools.databasesetup.settings try: from olctools.databasesetup.settings import ECOLI except (NameError, ImportError): ECOLI = str() try: from olctools.databasesetup.settings import SENTERICA except (NameError, Import...
PypiClean
/Mopidy-Material-Webclient-0.2.1.tar.gz/Mopidy-Material-Webclient-0.2.1/README.rst
**************************** Mopidy-Material-Webclient **************************** .. image:: https://img.shields.io/pypi/v/Mopidy-Material-Webclient.svg?style=flat :target: https://pypi.python.org/pypi/Mopidy-Material-Webclient/ :alt: Latest PyPI version .. image:: https://img.shields.io/pypi/dm/Mopidy-Mate...
PypiClean
/DirectFolderBrowser-22.1.tar.gz/DirectFolderBrowser-22.1/README.md
# DirectFolderBrowser A file and folder browser for Panda3D using DirectGUI ## Features This is a simple fullscreen file and folder browser with a basic featureset. Currently implemented are: - Browsing files and folders - Display content as symbols or in a detailed list - Show/Hide hidden files (using unix like lead...
PypiClean
/Hikka_TL-1.24.14-py3-none-any.whl/telethon/tl/functions/stickers.py
from ...tl.tlobject import TLObject from ...tl.tlobject import TLRequest from typing import Optional, List, Union, TYPE_CHECKING import os import struct from datetime import datetime if TYPE_CHECKING: from ...tl.types import TypeInputDocument, TypeInputStickerSet, TypeInputStickerSetItem, TypeInputUser class Add...
PypiClean
/EOxServer-1.2.12-py3-none-any.whl/eoxserver/core/util/multiparttools.py
from django.utils.six import b def capitalize(header_name): """ Capitalize header field name. Eg., 'content-type' is capilalized to 'Content-Type'. .. deprecated:: 0.4 """ return "-".join([f.capitalize() for f in header_name.split("-")]) # local alias to prevent conflict with local variable __cap...
PypiClean
/Mathics3-6.0.2.tar.gz/Mathics3-6.0.2/mathics/builtin/numbers/trig.py
import math from collections import namedtuple from contextlib import contextmanager from itertools import chain import mpmath from mathics.builtin.arithmetic import _MPMathFunction from mathics.builtin.base import Builtin from mathics.core.atoms import Integer, Integer0, IntegerM1, Real from mathics.core.convert.pyt...
PypiClean
/GeneClust-0.0.1-py3-none-any.whl/scGeneClust/tl/cluster.py
from functools import partial from itertools import combinations from multiprocessing import cpu_count from multiprocessing.pool import Pool from typing import Optional import anndata as ad import networkx as nx import numpy as np from loguru import logger from scipy.spatial.distance import squareform from sklearn.clu...
PypiClean
/COMPAS-1.17.5.tar.gz/COMPAS-1.17.5/src/compas_ghpython/artists/frameartist.py
from __future__ import print_function from __future__ import absolute_import from __future__ import division import compas_ghpython from compas.artists import PrimitiveArtist from compas.colors import Color from .artist import GHArtist class FrameArtist(GHArtist, PrimitiveArtist): """Artist for drawing frames. ...
PypiClean
/Argonaut-0.3.4.tar.gz/Argonaut-0.3.4/argonaut/public/ckeditor/_source/plugins/panelbutton/plugin.js
/* Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.add( 'panelbutton', { requires : [ 'button' ], beforeInit : function( editor ) { editor.ui.addHandler( CKEDITOR.UI_PANELBUTTON, CKEDITOR.ui.panelButton...
PypiClean
/ClueDojo-1.4.3-1.tar.gz/ClueDojo-1.4.3-1/src/cluedojo/static/dojox/fx/Shadow.js
if(!dojo._hasResource["dojox.fx.Shadow"]){ dojo._hasResource["dojox.fx.Shadow"]=true; dojo.provide("dojox.fx.Shadow"); dojo.experimental("dojox.fx.Shadow"); dojo.require("dijit._Widget"); dojo.require("dojo.NodeList-fx"); dojo.declare("dojox.fx.Shadow",dijit._Widget,{shadowPng:dojo.moduleUrl("dojox.fx","resources/shado...
PypiClean
/Auxjad-1.0.0.tar.gz/Auxjad-1.0.0/auxjad/mutate/merge_partial_tuplets.py
import abjad def merge_partial_tuplets(selection: abjad.Selection, *, merge_across_barlines: bool = False, ) -> None: r"""Mutates an input |abjad.Selection| in place and has no return value; this function merges all consecutive part...
PypiClean
/functions/structural_holes/MaxD.py
__all__ = [ "get_structural_holes_MaxD" ] def get_community_kernel(G, C: [frozenset]): ''' To get community kernels with most degrees. Parameters ---------- G : graph An undirected graph. C : int #communities Returns ------- kernels ''' area = [] for...
PypiClean
/AmFast-0.5.3-r541.tar.gz/AmFast-0.5.3-r541/amfast/remoting/sa_subscription_manager.py
import time import cPickle as pickle import sqlalchemy as sa from sqlalchemy.sql import func, and_ if sa.__version__.startswith('0.5'): # 0.5 is lowest supported version BINARY_TYPE = sa.Binary else: BINARY_TYPE = sa.LargeBinary from subscription_manager import Subscription, SubscriptionManager import fl...
PypiClean
/0-orchestrator-1.1.0a7.tar.gz/0-orchestrator-1.1.0a7/zeroos/orchestrator/sal/healthchecks/networkstability.py
import re from ..healthcheck import HealthCheckRun descr = """ Monitors if a network bond (if there is one) has both (or more) interfaces properly active. """ class NetworkStability(HealthCheckRun): def __init__(self, node): resource = '/nodes/{}'.format(node.name) super().__init__('networkstabil...
PypiClean
/Nuitka_winsvc-1.7.10-cp310-cp310-win_amd64.whl/nuitka/nodes/ContainerMakingNodes.py
import functools from abc import abstractmethod from nuitka.PythonVersions import needsSetLiteralReverseInsertion from .ChildrenHavingMixins import ChildHavingElementsTupleMixin from .ConstantRefNodes import ( ExpressionConstantListEmptyRef, ExpressionConstantSetEmptyRef, ExpressionConstantTupleEmptyRef, ...
PypiClean
/Moberg_Analytics_HDF5-1.0.1-py3-none-any.whl/moberg_analytics_hdf5/hdf5_tools.py
import h5py import numpy as np import pandas as pd import os from . import hdf5_exceptions class HDF5Helper: """ DESCRIPTION ----------- This class contains methods for argument, group, dataset, and duplicate checks as well as other methods that add functionality to HDF5Content and HDF5Components...
PypiClean
/AnkiTools-0.3.7-py3-none-any.whl/ankitools/tools/write.py
import json def write_anki_table(conn, table_name, new_records, do_commit=True): """ :param sqlite3.Connection conn: :param 'notes'|'cards' table_name: :param iter of OrderedDict new_records: :param bool do_commit: :return: """ for new_record in new_records: conn.execute('INSE...
PypiClean
/Flask-APIForm-1.0.tar.gz/flaskext/apiform.py
from __future__ import absolute_import import re class Form(object): def __init__(self, request=None, url=None): self._fields = self.switch_fields() self._data = { 'args' : request.args.to_dict() if request else None, 'form' : request.form.to_dict() if request else None, 'files': request.files.to_dict() ...
PypiClean
/360monitoringcli-1.0.19-py3-none-any.whl/cli360monitoring/lib/sitenotifications.py
import json from prettytable import PrettyTable from datetime import datetime from .api import apiGet from .config import Config from .functions import printError, printWarn class SiteNotifications(object): def __init__(self, config: Config, format: str = 'table'): self.config = config self.form...
PypiClean
/CocoPy-1.1.0rc.zip/CocoPy-1.1.0rc/testSuite/TestCasing_Scanner.py
import sys class Token( object ): def __init__( self ): self.kind = 0 # token kind self.pos = 0 # token position in the source text (starting at 0) self.col = 0 # token column (starting at 0) self.line = 0 # token line (starting at 1) self.val = u'' # tok...
PypiClean
/Flask_AdminLTE3-1.0.9-py3-none-any.whl/flask_adminlte3/static/plugins/pace-progress/pace.js
(function() { var AjaxMonitor, Bar, DocumentMonitor, ElementMonitor, ElementTracker, EventLagMonitor, Evented, Events, NoTargetError, Pace, RequestIntercept, SOURCE_KEYS, Scaler, SocketRequestTracker, XHRRequestTracker, _WebSocket, _XDomainRequest, _XMLHttpRequest, _intercept, _pushState, _replaceState, animation, av...
PypiClean
/CLIP-Crawler-0.7.0.tar.gz/CLIP-Crawler-0.7.0/CLIPy/interface.py
import os from datetime import datetime from . import database as db, processors, crawler from .session import Session from .utils import populate class CacheStorage: def __init__(self, registry: db.SessionRegistry, database_cache=False): self.registry = registry self.controller = db.Controller(r...
PypiClean
/Cohen-0.7.4.tar.gz/Cohen-0.7.4/CHANGELOG.rst
0.7.3 - Fixes and improvements ------------------------------ 0.7.2 - Minor bugfixes ---------------------- Fixes: - Fix issue when Cohen fails to be discovered by xbox 360 dlna client - Fix issue when using Lazy Container on Samsung AllShare on 2012 Samsung TV fails 0.7.0 - Cohen project started ---------...
PypiClean
/JoeLiu-RF%20Refactoring-1.0.9.tar.gz/JoeLiu-RF Refactoring-1.0.9/rfrefactoring/newRfrefactoring/common/utility.py
import os import platform def normalize(text): return text.lower().replace(' ', '').replace('_', '') def recovery_models(models): for model in models: if isinstance(model, list): recovery_models(model) else: model.save() def is_KeywordCall(node): return node.__clas...
PypiClean
/Indomielibs-2.0.106.tar.gz/Indomielibs-2.0.106/pyrogram/sync.py
import asyncio import functools import inspect import threading from pyrogram import types from pyrogram.methods import Methods from pyrogram.methods.utilities import idle as idle_module, compose as compose_module def async_to_sync(obj, name): function = getattr(obj, name) main_loop = asyncio.get_event_loop...
PypiClean
/BIT_framework-0.0.2-py3-none-any.whl/BIT_DL/pytorch/utils/average_recorder.py
from collections import deque from typing import Deque, Dict, List, Optional, Union, no_type_check from texar.torch.utils.types import MaybeList, MaybeSeq __all__ = [ '_SingleAverageRecorder', 'AverageRecorder', ] Scalar = Union[int, float] ID = Union[int, str] Record = Union[Dict[ID, Scalar], MaybeSeq[Scala...
PypiClean
/Authlib-1.2.1.tar.gz/Authlib-1.2.1/authlib/oauth2/rfc6749/grants/base.py
from authlib.consts import default_json_headers from ..requests import OAuth2Request from ..errors import InvalidRequestError class BaseGrant(object): #: Allowed client auth methods for token endpoint TOKEN_ENDPOINT_AUTH_METHODS = ['client_secret_basic'] #: Designed for which "grant_type" GRANT_TYPE ...
PypiClean
/DJModels-0.0.6-py3-none-any.whl/djmodels/dispatch/dispatcher.py
import threading import weakref from djmodels.utils.inspect import func_accepts_kwargs def _make_id(target): if hasattr(target, '__func__'): return (id(target.__self__), id(target.__func__)) return id(target) NONE_ID = _make_id(None) # A marker for caching NO_RECEIVERS = object() class Signal: ...
PypiClean
/MOM-Tapyr-1.6.2.tar.gz/MOM-Tapyr-1.6.2/Legacy_Lifter.py
from __future__ import absolute_import, division, print_function, unicode_literals from _MOM import MOM from _TFL import TFL from _TFL.pyk import pyk import _TFL._Meta.Object import _TFL.import_module import _TFL.sos as os class _MOM_Legacy_L...
PypiClean
/KD_Lib-0.0.32.tar.gz/KD_Lib-0.0.32/KD_Lib/KD/vision/mean_teacher/mean_teacher.py
import torch import torch.nn.functional as F from torch import nn from KD_Lib.KD.common import BaseClass def symmetric_mse_loss(input1, input2): return torch.sum((input1 - input2) ** 2) class MeanTeacher(BaseClass): """ Implementation of Knowledge distillation using a mean teacher from the paper "M...
PypiClean
/Cubane-1.0.11.tar.gz/Cubane-1.0.11/cubane/cms/nav.py
from __future__ import unicode_literals from django.conf import settings from django.db.models import Q from cubane.lib.module import register_class_extensions from cubane.cms import get_page_model from cubane.cms.models import PageBase class CMSNavigationBuilder(object): @classmethod def register_extension(c...
PypiClean
/GraphLab_Create-2.1-cp27-none-macosx_10_5_x86_64.macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.macosx_10_11_intel.macosx_10_11_x86_64.whl/graphlab/mxnet/recordio.py
"""Python interface for DLMC RecrodIO data format""" from __future__ import absolute_import from collections import namedtuple import ctypes from .base import _LIB from .base import RecordIOHandle from .base import check_call import struct import numpy as np try: import cv2 opencv_available = True except Impo...
PypiClean
/MeshLabXML-2018.3.tar.gz/MeshLabXML-2018.3/meshlabxml/select.py
from . import util def all(script, face=True, vert=True): """ Select all the faces of the current mesh Args: script: the FilterScript object or script filename to write the filter to. faces (bool): If True the filter will select all the faces. verts (bool): If True the fi...
PypiClean
/MGP_SDK-1.1.1.tar.gz/MGP_SDK-1.1.1/src/MGP_SDK/tasking_service/tasking.py
import json import requests from datetime import datetime from MGP_SDK import process from MGP_SDK.auth.auth import Auth class Tasking: def __init__(self, auth: Auth): self.auth = auth self.api_version = self.auth.api_version self.base_url = f'{self.auth.api_base_url}/tasking/{self.api_v...
PypiClean
/dr14-t.meter-1.0.16.tar.gz/dr14-t.meter-1.0.16/dr14tmeter/read_metadata.py
import subprocess import sys import os import re from dr14tmeter.audio_decoder import AudioDecoder from dr14tmeter.dr14_global import get_ffmpeg_cmd # Test example !!!!! # a = subprocess.check_output( [ "ffprobe" , "-show_format" , "/media/esterno_xfs/data/Musica/Musica/aavv/01-blitzkrieg_bop_160_lame_abr.mp3" ] , ...
PypiClean
/KratosShallowWaterApplication-9.4-cp311-cp311-win_amd64.whl/KratosMultiphysics/ShallowWaterApplication/set_initial_water_level_process.py
import KratosMultiphysics as KM import KratosMultiphysics.ShallowWaterApplication as SW def Factory(settings, Model): if not isinstance(settings, KM.Parameters): raise Exception("expected input shall be a Parameters object, encapsulating a json string") return SetInitialWaterLevelProcess(Model, setting...
PypiClean
/EchoTorch-0.1.1.tar.gz/EchoTorch-0.1.1/echotorch/transforms/text/Character2Gram.py
# Imports import torch from .Transformer import Transformer import numpy as np # Transform text to character 2-gram class Character2Gram(Transformer): """ Transform text to character 2-grams """ # Constructor def __init__(self, uppercase=False, gram_to_ix=None, start_ix=0, fixed_length=-1, overl...
PypiClean
/Mopidy-Muse-0.0.27.tar.gz/Mopidy-Muse-0.0.27/mopidy_muse/static/client/legacy/browse.f1ff8b53.js
import"core-js/modules/es.array.iterator.js";import"core-js/modules/es.object.to-string.js";import"core-js/modules/es.promise.js";import"core-js/modules/es.string.iterator.js";import"core-js/modules/web.dom-collections.iterator.js";import"core-js/modules/es.array.map.js";import"core-js/modules/web.url.js";import{_ as n...
PypiClean
/MetaCSV-0.1.1.tar.gz/MetaCSV-0.1.1/README.rst
======= MetaCSV ======= .. image:: https://img.shields.io/travis/ClimateImpactLab/metacsv/master.svg?style=flat-square :target: https://travis-ci.org/ClimateImpactLab/metacsv .. image:: https://img.shields.io/pypi/v/metacsv.svg?style=flat-square :target: https://pypi.python.org/pypi/MetaCSV .. image:: https...
PypiClean
/GraphQL_core_next-1.1.1-py3-none-any.whl/graphql/type/validate.py
from operator import attrgetter, itemgetter from typing import ( Any, Callable, Dict, List, Optional, Sequence, Set, Tuple, Union, cast, ) from ..error import GraphQLError from ..pyutils import inspect from ..language import NamedTypeNode, Node, OperationType, OperationTypeDefi...
PypiClean
/Chronoclust-0.2.1.2.tar.gz/Chronoclust-0.2.1.2/chronoclust/objects/predecon_mc.py
import numpy as np from chronoclust.objects.microcluster import Microcluster class PredeconMC(Microcluster): def __init__(self, centroid, id, is_core_cluster, cluster_CF1, cluster_CF2, cluster_cumulative_weight): """ This class implement both MicroCluster and Datapoint. It is bei...
PypiClean
/AirzoneCloudDaikin-0.4.0.tar.gz/AirzoneCloudDaikin-0.4.0/README.md
# Airzone Cloud Daikin - [Airzone Cloud Daikin](#airzone-cloud-daikin) - [Presentation](#presentation) - [Abstract](#abstract) - [Module classes](#module-classes) - [Usage](#usage) - [Install](#install) - [Start API](#start-api) - [Get installations](#get-installations) - [Get devices from ...
PypiClean
/Dabo-0.9.16.tar.gz/Dabo-0.9.16/dabo/ui/uiwx/dShell.py
import __builtin__ import time import wx import wx.stc as stc import wx.py from wx.py import pseudo import dabo import dabo.dEvents as dEvents from dabo.dLocalize import _ if __name__ == "__main__": dabo.ui.loadUI("wx") from dSplitForm import dSplitForm from dabo.ui import makeDynamicProperty from dabo.ui import dKe...
PypiClean
/Bonsu-3.6.2-cp39-cp39-macosx_10_9_x86_64.whl/bonsu/sequences/algorithms.py
import sys import wx import numpy import vtk from ..interface.render import wxVTKRenderWindowInteractor from vtk.util import numpy_support import threading from ..operations.HIO import HIO from ..operations.HIO import HIOMask from ..operations.HIO import HIOPlus from ..operations.HIO import PCHIO from ..operations.HIO ...
PypiClean
/Flask-AdminLTE2-1.0.0.tar.gz/Flask-AdminLTE2-1.0.0/flask_adminlte2/static/plugins/jquery-sparkline/jquery.sparkline.js
(function(document, Math, undefined) { // performance/minified-size optimization (function(factory) { if(typeof define === 'function' && define.amd) { define(['jquery'], factory); } else if (jQuery && !jQuery.fn.sparkline) { factory(jQuery); } } (function($) { 'use strict'; var UNS...
PypiClean
/FiletransferApp-0.0.2b2.tar.gz/FiletransferApp-0.0.2b2/app/filetransfer/views.py
from django.http import HttpResponse from django.conf import settings import os,socket import logging logger = logging.getLogger(__name__) accesslogger = logging.getLogger("access") # Create your views here. def postfile(request): logip(request) if request.method == "POST": # 请求方法为POST时,进行处理 result = "" ...
PypiClean
/Generation_Image_Gaston-0.2.2.tar.gz/Generation_Image_Gaston-0.2.2/README.md
Generation-image_Gaston Description Generation-image_Gaston is a Python package that allows you to generate images from a given prompt using the craiyon.com site. This package uses Selenium to automate the image build and upload process. Facility You can install the Generation-image_Gaston package using pip: pip inst...
PypiClean
/DeepGraph-0.2.3.tar.gz/DeepGraph-0.2.3/deepgraph/functions.py
from __future__ import print_function, division, absolute_import # Copyright (C) 2017-2020 by # Dominik Traxl <dominik.traxl@posteo.org> # All rights reserved. # BSD license. # py2/3 compatibility try: range = xrange except NameError: pass import numpy as np __all__ = ['great_circle_dist', 'cp_no...
PypiClean
/HTSQL-2.3.3.tar.gz/HTSQL-2.3.3/src/htsql/tweak/shell/vendor/codemirror-2.13/demo/complete.js
(function () { // Minimal event-handling wrapper. function stopEvent() { if (this.preventDefault) {this.preventDefault(); this.stopPropagation();} else {this.returnValue = false; this.cancelBubble = true;} } function addStop(event) { if (!event.stop) event.stop = stopEvent; return event; } f...
PypiClean
/InjecToast-1.1.6.tar.gz/InjecToast-1.1.6/README.md
# InjecToast A tool to inject toasts in Android applications. ![injectoast-logofinal](https://user-images.githubusercontent.com/116693779/219882646-4178fc5e-585f-4196-8076-093af1694a3b.png) <p align="center"> <img src="https://img.shields.io/badge/Creator-PatzEdi-brightgreen" height="23"> <img src="https://img.s...
PypiClean