id
stringlengths
1
265
text
stringlengths
6
5.19M
dataset_id
stringclasses
7 values
/HCX_Migration-0.0.1-py3-none-any.whl/core/settings.py
import os from decouple import config from unipath import Path import dj_database_url # Build paths inside the project like this: os.path.join(BASE_DIR, ...) BASE_DIR = Path(__file__).parent CORE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) # SECURITY WARNING: keep the secret key used in producti...
PypiClean
/ForcastingModels-0.0.1.tar.gz/ForcastingModels-0.0.1/Models/Multivariate_Input_Models.py
from numpy import array, hstack from keras.models import Sequential, Model from keras.layers import Dense, Flatten, LSTM, Input, concatenate from keras.layers.convolutional import Conv1D from keras.layers.convolutional import MaxPooling1D class Singleton(type): _instances = {} def __call__(cls, *args, **kwar...
PypiClean
/Diofant-0.14.0a2.tar.gz/Diofant-0.14.0a2/diofant/logic/algorithms/dpll.py
from ...utilities import default_sort_key from ..boolalg import And, _find_predicates, to_cnf, to_int_repr def dpll_satisfiable(expr): """Check satisfiability of a propositional sentence. It returns a model rather than True when it succeeds >>> dpll_satisfiable(a & ~b) {a: True, b: False} >>> dp...
PypiClean
/Argonaut-0.3.4.tar.gz/Argonaut-0.3.4/argonaut/public/ckeditor/_source/core/dom/element.js
/* Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ /** * @fileOverview Defines the {@link CKEDITOR.dom.element} class, which * represents a DOM element. */ /** * Represents a DOM element. * @constructor * @augments C...
PypiClean
/Flask-Statics-Helper-1.0.0.tar.gz/Flask-Statics-Helper-1.0.0/flask_statics/static/angular/i18n/angular-locale_en-gy.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
/test/metric_score.py
import pandas as pd import numpy as np from BatchEval.score import get_kbet, get_lisi, get_ksim def metric_score(merge_data, n_neighbor=100, batch_key="batch", metric_pos="X_umap", celltype_key=None): reject_score, stat_mean, pvalue_mean, accept_rate = get_kbet(merge_data, key=batch_key, use_rep=metric_pos, ...
PypiClean
/GeoNode-3.2.0-py3-none-any.whl/geonode/layers/models.py
import re import uuid import logging from django.db import models from django.db.models import signals from django.contrib.contenttypes.models import ContentType from django.conf import settings from django.utils.timezone import now from django.utils.translation import ugettext_lazy as _ from django.urls import revers...
PypiClean
/Flask-Security-Fork-2.0.1.tar.gz/Flask-Security-Fork-2.0.1/docs/features.rst
Features ======== Flask-Security allows you to quickly add common security mechanisms to your Flask application. They include: Session Based Authentication ---------------------------- Session based authentication is fulfilled entirely by the `Flask-Login`_ extension. Flask-Security handles the configuration of Fla...
PypiClean
/ORMithorynque-0.1.1.tar.bz2/ORMithorynque-0.1.1/doc/relation.rst
Relations ========= One-to-many relations --------------------- ORMithorynque supports one-to-one, one-to-many and many-to-many relations. In order to create relations, we need to create more classes in our example, so we are adding a House class and updating the Person class -- ORMithorynque will automatically creat...
PypiClean
/OSF_EIMTC-0.1.46.tar.gz/OSF_EIMTC-0.1.46/src/EIMTC/plugins/stnn.py
from math import e from nfstream import NFStreamer, NFPlugin import numpy as np from scapy.all import IP, TCP from runstats import * class STNN(NFPlugin): ''' wip ''' def __init__(self,n_packets=32): ''' ''' self.n_packets = n_packets def on_init(self, packet, flow): ''' ''...
PypiClean
/CAuthomatic-0.1.5.tar.gz/CAuthomatic-0.1.5/examples/pyramid/simple/main.py
from wsgiref.simple_server import make_server from pyramid.config import Configurator from pyramid.response import Response from authomatic import Authomatic from authomatic.adapters import WebObAdapter from config import CONFIG authomatic = Authomatic(config=CONFIG, secret='some random secret string') def login(r...
PypiClean
/Baroniq-0.0.2-py3-none-any.whl/Baron_iq/baron_class.py
import json import time import requests class Baron_bot(): def send_msg(self,Token,ID,S): name=['الله' , 'الرحمن' , 'الرحيم' , 'الملك' , 'القدوس' , 'السلام' , 'المؤمن' , 'المهيمن' , 'العزيز' , 'الجبار' , 'المتكبر' , 'الخالق' ,'البارئ' , 'المصور' , 'الغفار' , 'القهار' , 'الوهاب' , 'الرزاق' , 'الفتاح' , 'العل...
PypiClean
/Mini-AMF-0.9.1.tar.gz/Mini-AMF-0.9.1/miniamf/util/imports.py
from __future__ import absolute_import import sys __all__ = ['when_imported'] def when_imported(name, *hooks): """ Call C{hook(module)} when module named C{name} is first imported. C{name} must be a fully qualified (i.e. absolute) module name. C{hook} must accept one argument: which will be the imp...
PypiClean
/OGER-1.5.tar.gz/OGER-1.5/oger/doc/bioc.py
# Author: Lenz Furrer, 2017 ''' Loader and formatter for BioC XML. ''' __all__ = ['BioCXMLLoader', 'BioCJSONLoader', 'BioCXMLFormatter', 'BioCJSONFormatter'] import json import logging from collections import OrderedDict from lxml import etree from lxml.builder import E from .document import Collect...
PypiClean
/Authcode-1.6.0-py3-none-any.whl/authcode/wsgi/werkzeug.py
from __future__ import absolute_import from .._compat import to_native HTTP_SEE_OTHER = 303 def get_full_path(request): """Return the current relative path including the query string. Eg: “/foo/bar/?page=1” """ path = request.path if request.query_string: path += '?' + to_native(request...
PypiClean
/Djask-0.6.2-py3-none-any.whl/djask/admin/api/views.py
from apiflask.exceptions import abort from flask import jsonify from .decorators import admin_required_api from .schemas import TokenInSchema from .schemas import TokenOutSchema from djask.blueprints import APIBlueprint from djask.extensions import db from djask.globals import current_app from djask.globals import g f...
PypiClean
/HibiAPI-0.8.0-py3-none-any.whl/hibiapi/api/qrcode.py
from datetime import datetime from enum import Enum from io import BytesIO from os import fdopen from pathlib import Path from typing import List, Literal, Optional, cast from PIL import Image from pydantic import AnyHttpUrl, BaseModel, Field, validate_arguments from pydantic.color import Color from qrcode import QRCo...
PypiClean
/ANTConnect-2023.9.3.tar.gz/ANTConnect-2023.9.3/antconnect/api.py
import chunk from getpass import getuser import time import codecs import json import base64 # import sys from datetime import datetime, timedelta import requests # from .logger import Logger class API: _host = "" _access_token = "" _api_version = "1.0" _authenticated = False _logger = None ...
PypiClean
/FUNGuildtest-1.2.0.tar.gz/FUNGuildtest-1.2.0/FUNGuild/funguilds.py
from __future__ import print_function from __future__ import division import requests import json import pandas as pd #%% # Load the Mongo database into memory # Default is fungal database, another option is "nematode" # The data is saved as Python dictionary, with the taxon as keywords. def load_database(database_name...
PypiClean
/Aoss_Tower_a1_Conversion-1.7.0.tar.gz/Aoss_Tower_a1_Conversion-1.7.0/convertFromASCIIToNETCDF/test/bundler.py
from ATP import AossTowerParse from ATW import AossTowerWrite as ATW from Util import Util from datetime import datetime as date from datetime import timedelta as delta import os import shutil # The purpose of this function is to move the newly # created file. # Also moves the file into directories based upon # the f...
PypiClean
/FlowMaster-0.7.1.tar.gz/FlowMaster-0.7.1/flowmaster/__main__.py
import threading from functools import partial import typer import uvicorn import flowmaster.cli.db import flowmaster.cli.item import flowmaster.cli.notebook from flowmaster import create_initial_dirs_and_files from flowmaster.setttings import Settings from flowmaster.web.views import webapp app = typer.Typer() app....
PypiClean
/DielModels-1.0.2-py3-none-any.whl/diel_models/day_night_creator.py
import copy from cobra import Model, Reaction from diel_models.pipeline import Step class DayNightCreator(Step): def __init__(self, model: Model) -> None: """ Constructor Parameters ---------- model: cobra.Model Metabolic model """ self.model: ...
PypiClean
/GeologicalToolbox-0.3.1b1.tar.gz/GeologicalToolbox-0.3.1b1/geological_toolbox/wells.py
import sqlalchemy as sq from sqlalchemy.orm import relationship from sqlalchemy.orm.session import Session from typing import List from geological_toolbox.exceptions import DatabaseException, WellMarkerDepthException from geological_toolbox.geo_object import AbstractGeoObject from geological_toolbox.geometries import ...
PypiClean
/Absinthe-1.1.0.tar.gz/Absinthe-1.1.0/absinthe/tools/remote_process_manager.py
import time import urllib2 import pyjsonrpc from utils import Storage, SimpleResponse from background_process_handler import BackgroundProcessHandler # used by the init script to manage the remote process, eg start, stop, create the IPC interface class RemoteProcessManager(BackgroundProcessHandler): def __init__...
PypiClean
/Django_patch-2.2.19-py3-none-any.whl/django/contrib/postgres/fields/ranges.py
import datetime import json from psycopg2.extras import DateRange, DateTimeTZRange, NumericRange, Range from django.contrib.postgres import forms, lookups from django.db import models from .utils import AttributeSetter __all__ = [ 'RangeField', 'IntegerRangeField', 'BigIntegerRangeField', 'DecimalRangeField...
PypiClean
/Naghni-0.1.tar.gz/Naghni-0.1/naghni/world.py
# Naghni: a breath-taking side-scroller focusing on round lifeforms # Copyright (C) 2010 Niels Serup # This file is part of Naghni. # # Naghni is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version ...
PypiClean
/FreePyBX-1.0-RC1.tar.gz/FreePyBX-1.0-RC1/freepybx/public/js/dojox/form/FilePickerTextBox.js.uncompressed.js
require({cache:{ 'url:dojox/form/resources/FilePickerTextBox.html':"<div class=\"dijit dijitReset dijitInlineTable dijitLeft\"\n\tid=\"widget_${id}\"\n\trole=\"combobox\" tabIndex=\"-1\"\n\t><div style=\"overflow:hidden;\"\n\t\t><div class='dijitReset dijitRight dijitButtonNode dijitArrowButton dijitDownArrowButton'\n\...
PypiClean
/Flappy-0.3.7.tar.gz/Flappy-0.3.7/flappy/events/mouseevent.py
from event import Event class MouseEvent(Event): DOUBLE_CLICK = "doubleClick" CLICK = "click" MIDDLE_CLICK = "middleClick" MIDDLE_MOUSE_DOWN = "middleMouseDown" MIDDLE_MOUSE_UP = "middleMouseUp" MOUSE_DOWN = "mouseDown" MOUSE_MOVE = "mouseMove" MO...
PypiClean
/Amara-2.0.0a6.tar.bz2/Amara-2.0.0a6/lib/bindery/model/schematron.py
__all__ = [ 'schematron_model', ] import sys #import re import warnings import copy from cStringIO import StringIO from itertools import * from functools import * from operator import * from amara import tree from amara.lib.xmlstring import U from amara.lib.util import first_item from amara.bindery import BinderyErro...
PypiClean
/Flask-InfluxDB-0.3.3.tar.gz/Flask-InfluxDB-0.3.3/README.md
Flask-InfluxDB ============== Extension to add InfluxDB support to Flask framework [(external documentation)](https://flask-influxdb.readthedocs.org/en/latest/). ## Installation Install the extension via *pip*: ```sh $ pip install Flask-InfluxDB ``` ## Set Up Flask-InfluxDB can be accessed via ``InfluxDB`` class: `...
PypiClean
/BxGraph-0.4.1.tar.gz/BxGraph-0.4.1/bxgraph/algorithms/stats.py
import numpy as np import numpy.linalg as la import scipy.sparse.csgraph as gs import scipy.stats as st import scipy.sparse as sp from ..utils.numpy import intersection_mask_pairs def edge_overlap(graph_lhs, graph_rhs): """ Computes the edge overlap between two graphs. Parameters: ----------- - g...
PypiClean
/Finance-Ultron-1.0.8.1.tar.gz/Finance-Ultron-1.0.8.1/demo/machine.py
import os, pdb, itertools, copy, datetime, sys, collections os.environ['ULTRON_DATA'] = 'keim' sys.path.insert(0, os.path.abspath('../')) import numpy as np import pandas as pd from ultron.env import * from ultron.kdutils.kline import date_week_wave from ultron.kdutils import scaler as scaler_util from ultron.ump.i...
PypiClean
/BEAT_Guang-1.0.1-py3-none-any.whl/econml/policy/_drlearner.py
from warnings import warn import numpy as np from sklearn.base import clone from ..utilities import check_inputs, filter_none_kwargs, check_input_arrays from ..dr import DRLearner from ..dr._drlearner import _ModelFinal from .._tree_exporter import _SingleTreeExporterMixin from ._base import PolicyLearner from . impor...
PypiClean
/EasyJappanese-0.0.2.tar.gz/EasyJappanese-0.0.2/easyjapanese/easy.py
import re import traceback import os from selenium import webdriver # webdriver 操作一般用 from selenium.webdriver.chrome import service as fs # Chrome を driver として設定する用 from selenium.webdriver.chrome.options import Options # headless モードで作業する用 from selenium.webdriver.common.by import By # find_element() で参照したい位置を特定する用 fro...
PypiClean
/InvestOpenDataTools-1.0.2.tar.gz/InvestOpenDataTools-1.0.2/opendatatools/usstock/usstock_agent.py
from opendatatools.common import RestAgent import pandas as pd import io import datetime class USStockAgent(RestAgent): def __init__(self): RestAgent.__init__(self) def prepare_cookies(self, url): response = self.do_request(url, None) if response is not None: cookies = sel...
PypiClean
/Flet_StoryBoard-1.4-py3-none-any.whl/fletsb/widgets/widgets/textfield.py
import flet from ...tools.color_picker import ColorPicker class TextField(object): def __init__(self, main_class, parent, *args, **kwargs) -> None: self.parent = parent self.main_class = main_class self.self_object = flet.TextField( on_focus=self.on_start_type, on_c...
PypiClean
/EPAB-2018.12.18.1-py36-none-any.whl/epab/_logging.py
import logging import click import epab.utils from epab.core import CTX LOGGER = logging.getLogger('EPAB') _LOGGING_CONSOLE_FORMAT = '%(asctime)10s ' \ '%(levelname)8s ' \ '%(message)s' _LOGGING_TIME_FORMAT = '%H:%M:%S' class _ClickHandler(logging.StreamHandler...
PypiClean
/Electrum-CHI-3.3.8.tar.gz/Electrum-CHI-3.3.8/packages/pip/_vendor/chardet/hebrewprober.py
from .charsetprober import CharSetProber from .enums import ProbingState # This prober doesn't actually recognize a language or a charset. # It is a helper prober for the use of the Hebrew model probers ### General ideas of the Hebrew charset recognition ### # # Four main charsets exist in Hebrew: # "ISO-8859-8" - V...
PypiClean
/MLTSA-0.0.7.tar.gz/MLTSA-0.0.7/docs/source/trajanalysis.rst
############################################## Molecular Dynamics Analysis tool for MLTSA ############################################## This package called "MD_DATA" has all functions related with the analysis of Molecular Dynamics trajectories prior to applying MLTSA on MD data. It includes CV selection, CV calculat...
PypiClean
/OctoPrint-1.9.2.tar.gz/OctoPrint-1.9.2/src/octoprint/plugins/gcodeviewer/static/js/viewer/renderer.js
GCODE.renderer = (function () { // ***** PRIVATE ****** var canvas; var ctx; var viewportChanged = true; var lineWidthFactor = 1 / 2.8; var zoomFactorDelta = 0.4; var gridStep = 10; var ctxHeight, ctxWidth; var prevX = 0, prevY = 0; var pixelRatio = window.devicePixelRa...
PypiClean
/MetaSBT-0.1.2.tar.gz/MetaSBT-0.1.2/scripts/bf_sketch.py
__author__ = "Fabio Cumbo (fabio.cumbo@gmail.com)" __version__ = "0.1.0" __date__ = "Apr 3, 2023" import argparse as ap import errno import os import subprocess import tempfile from pathlib import Path from typing import List TOOL_ID = "bf_sketch" def read_params(): p = ap.ArgumentParser( prog=TOOL_ID, ...
PypiClean
/Flask-Turbo-Boost-0.2.8.tar.gz/Flask-Turbo-Boost-0.2.8/flask_turbo_boost/api_project/application/extensions/active_record_mixin.py
from datetime import datetime class ActiveRecordMixin(object): @classmethod def columns(cls): """ all columns of this models """ return { col.key: { 'python_type': col.type.python_type, 'type': str(col.type), 'primary...
PypiClean
/Djaizz-23.6.21.1-py3-none-any.whl/djaizz/model/models/ml/hugging_face/token_classification.py
from sys import version_info from typing import Union from django.utils.functional import classproperty from gradio.interface import Interface from gradio.inputs import Textbox as TextboxInput from gradio.outputs import JSON as JSONOutput # noqa: N811 from djaizz.model.apps import DjaizzModelModuleConfig from djai...
PypiClean
/DeepCellTL-0.12.5.tar.gz/DeepCellTL-0.12.5/deepcell/applications/nuclear_segmentation.py
"""Nuclear segmentation application""" from __future__ import absolute_import from __future__ import division from __future__ import print_function import os import tensorflow as tf from deepcell_toolbox.processing import histogram_normalization from deepcell_toolbox.deep_watershed import deep_watershed from deepc...
PypiClean
/GeoNode-3.2.0-py3-none-any.whl/geonode/geoserver/management/commands/sync_geonode_layers.py
import sys import json from django.core.management.base import BaseCommand from geonode.layers.models import Layer from geonode.security.views import _perms_info_json from geonode.base.utils import remove_duplicate_links from geonode.geoserver.helpers import ( create_gs_thumbnail, set_attributes_from_geoserve...
PypiClean
/MapProxy-1.16.0.tar.gz/MapProxy-1.16.0/doc/development.rst
Development =========== You want to improve MapProxy, found a bug and want to fix it? Great! This document points you to some helpful information. .. .. contents:: Source ------ Releases are available from the `PyPI project page of MapProxy <http://pypi.python.org/pypi/MapProxy>`_. There is also `an archive of all ...
PypiClean
/MDPOW-0.8.0.tar.gz/MDPOW-0.8.0/mdpow/fep.py
r""" :mod:`mdpow.fep` -- Calculate free energy of solvation ====================================================== Set up and run free energy perturbation (FEP) calculations to calculate the free energy of hydration of a solute in a solvent box. The protocol follows the works of D. Mobley (`Free Energy Tutorial`_) an...
PypiClean
/AyiinXd-0.0.8-cp311-cp311-macosx_10_9_universal2.whl/fipper/node_modules/make-dir/node_modules/semver/semver.js
exports = module.exports = SemVer var debug /* istanbul ignore next */ if (typeof process === 'object' && process.env && process.env.NODE_DEBUG && /\bsemver\b/i.test(process.env.NODE_DEBUG)) { debug = function () { var args = Array.prototype.slice.call(arguments, 0) args.unshift('SEMVER') con...
PypiClean
/Nitrous-0.9.3-py3-none-any.whl/turbogears/i18n/data/es_EC.py
languages={'gv': u'ga\xe9lico man\xe9s', 'gu': u'goujarat\xed', 'gd': u'ga\xe9lico escoc\xe9s', 'ga': u'irland\xe9s', 'gl': 'gallego', 'la': u'lat\xedn', 'ln': 'lingala', 'lo': 'laosiano', 'tt': u't\xe1taro', 'tr': 'turco', 'ts': 'tsonga', 'lv': 'letonio', 'lt': 'lituano', 'th': u'tailand\xe9s', 'ti': 'tigrinya', 'te'...
PypiClean
/Constellation-OrderBoard-0.2.1.tar.gz/Constellation-OrderBoard-0.2.1/constellation_orderboard/static/constellation_orderboard/js/archive.js
url_api_v1_card_unarchive */ /* exported restoreItem */ var message = document.querySelector('#message-toast'); /* Global board state */ var archive_data; /* Template for Handlebars to execute */ var source = $('#handlebars-board').html(); $(document).ready(function(){ /* Start templating */ getboard_data(); })...
PypiClean
/DI_engine-0.4.9-py3-none-any.whl/ding/interaction/base/threading.py
from threading import Event, Lock from typing import Optional class DblEvent: """ Overview: A double event object, can open and close. Bases on 2 event objects """ def __init__(self, opened: bool = False): """ Overview: Constructor of `DblEvent` Arg...
PypiClean
/Kallithea-0.7.0.tar.gz/Kallithea-0.7.0/kallithea/lib/vcs/backends/base.py
import datetime import itertools from typing import Sequence from kallithea.lib.vcs.backends import get_backend from kallithea.lib.vcs.conf import settings from kallithea.lib.vcs.exceptions import (ChangesetError, EmptyRepositoryError, NodeAlreadyAddedError, NodeAlreadyChangedError, NodeAlreadyExistsError, ...
PypiClean
/NESTML-5.3.0-py3-none-any.whl/pynestml/meta_model/ast_function_call.py
from pynestml.meta_model.ast_node import ASTNode class ASTFunctionCall(ASTNode): """ This class is used to store a single function call. ASTFunctionCall Represents a function call, e.g. myFun("a", "b"). @attribute name The (qualified) name of the function @attribute args Comma separated list of e...
PypiClean
/FamcyDev-0.3.71-py3-none-any.whl/Famcy/bower_components/bootstrap-table/src/locale/bootstrap-table-pt-BR.js
$.fn.bootstrapTable.locales['pt-BR'] = { formatCopyRows () { return 'Copy Rows' }, formatPrint () { return 'Print' }, formatLoadingMessage () { return 'Carregando, aguarde' }, formatRecordsPerPage (pageNumber) { return `${pageNumber} registros por página` }, formatShowingRows (pageFrom...
PypiClean
/LwmaL_mess_client-0.8.7.tar.gz/LwmaL_mess_client-0.8.7/client/database.py
import datetime from common.variables import * from sqlalchemy import create_engine, Table, Column, Integer, String, Text, MetaData, DateTime from sqlalchemy.sql import default_comparator from sqlalchemy.orm import mapper, sessionmaker import os class ClientDatabase: ''' Класс - оболочка для работы с базой д...
PypiClean
/Cubane-1.0.11.tar.gz/Cubane-1.0.11/cubane/backend/accounts/views.py
from __future__ import unicode_literals from django.conf import settings from django.db.models import Q from django.contrib import messages from django.contrib.auth import update_session_auth_hash from django.utils.module_loading import import_module from cubane.views import ModelView from cubane.backend.views import B...
PypiClean
/MergeATSClient-1.3.1.tar.gz/MergeATSClient-1.3.1/LICENSE.md
_Last updated: April 21, 2022_ **Merge SDK &amp; Code Snippets License** Merge makes available to Customers various software development kits (&quot;**SDKs**&quot;) and code snippets (&quot;**Snippets**&quot;) (together, the &quot;**Merge Assets**&quot;) to assist with Merge Integrations and making connections to the...
PypiClean
/GQCMS-0.0.4-py3-none-any.whl/build/lib/build/lib/gqcms/Optimization.py
import numpy as np def LineSearch( a: float, f: callable, args: tuple = (), lower_boundary: float = -10.0, upper_boundary: float = 10.0, threshold: float = 1e-6, check_threshold: float = 1e-3, maxiter: int = 100, blog: bool = False, ) -> tuple: """ Optimizes the expectation...
PypiClean
/Mezzanine-6.0.0.tar.gz/Mezzanine-6.0.0/docs/frequently-asked-questions.rst
========================== Frequently Asked Questions ========================== These are some of the most frequently asked questions on the `Mezzanine mailing list <http://groups.google.com/group/mezzanine-users>`_. * :ref:`prerequisites` * :ref:`static-files` * :ref:`wysiwyg-filtering` * :ref:`homepage` ...
PypiClean
/netket-3.9.2.tar.gz/netket-3.9.2/netket/nn/symmetric_linear.py
from typing import Any, Optional, Tuple import numpy as np import jax.numpy as jnp from jax import lax from jax.nn.initializers import zeros, lecun_normal from flax.linen.module import Module, compact from flax.linen.dtypes import promote_dtype from netket.utils import HashableArray, warn_deprecation, deprecate_dty...
PypiClean
/GitPython-3.1.34-py3-none-any.whl/git/objects/base.py
from git.exc import WorkTreeRepositoryUnsupported from git.util import LazyMixin, join_path_native, stream_copy, bin_to_hex import gitdb.typ as dbtyp import os.path as osp from .util import get_object_type_by_name # typing ------------------------------------------------------------------ from typing import Any, ...
PypiClean
/Mopidy_MPD-3.3.0-py3-none-any.whl/mopidy_mpd/protocol/playback.py
from mopidy.core import PlaybackState from mopidy_mpd import exceptions, protocol @protocol.commands.add("consume", state=protocol.BOOL) def consume(context, state): """ *musicpd.org, playback section:* ``consume {STATE}`` Sets consume state to ``STATE``, ``STATE`` should be 0 or 1. ...
PypiClean
/MTGProxyPrinter-0.25.0.tar.gz/MTGProxyPrinter-0.25.0/mtg_proxy_printer/print.py
# This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # This program is distributed in the hope that it will be useful, # bu...
PypiClean
/Buildpan_CLI-1.0-py3-none-any.whl/buildpan/github_webhook.py
from buildpan.installer import installer from logging import info import requests, datetime from github import Github from buildpan import setting, create_file ENDPOINT = "webhook" info = setting.info fetch_log = info["FETCH_LOG_URL"] host = info["HOST"] fetch_log = info["FETCH_LOG_URL"] def github(proje...
PypiClean
/FreePyBX-1.0-RC1.tar.gz/FreePyBX-1.0-RC1/freepybx/public/js/dojox/widget/Iterator.js
define(["dijit","dojo","dojox","dojo/require!dijit/Declaration"],function(_1,_2,_3){ _2.provide("dojox.widget.Iterator"); _2.require("dijit.Declaration"); _2.experimental("dojox.widget.Iterator"); _2.declare("dojox.widget.Iterator",[_1.Declaration],{constructor:(function(){ var _4=0; return function(){ this.attrs=[]; t...
PypiClean
/CodraFT-2.2.1-py3-none-any.whl/codraft/patch.py
# pylint: disable=invalid-name # Allows short reference names like x, y, ... # Allows accessing protecting members, unused arguments, unused variables # pylint: disable=W0212,W0613,W0612,E0102 import sys import warnings import guidata.dataset.datatypes import guiqwt.annotations import guiqwt.curve import guiqwt.hist...
PypiClean
/HolmesIV-2021.9.8a1.tar.gz/HolmesIV-2021.9.8a1/mycroft/audio/services/mopidy/__init__.py
import sys import time from os.path import dirname, abspath from mycroft.audio.services import RemoteAudioBackend from mycroft.messagebus.message import Message from mycroft.util.log import LOG sys.path.append(abspath(dirname(__file__))) Mopidy = __import__('mopidypost').Mopidy class MopidyService(RemoteAudioBack...
PypiClean
/AltAnalyze-2.1.3.15.tar.gz/AltAnalyze-2.1.3.15/altanalyze/stats_scripts/mpmath/functions/functions.py
from ..libmp.backend import xrange class SpecialFunctions(object): """ This class implements special functions using high-level code. Elementary and some other functions (e.g. gamma function, basecase hypergeometric series) are assumed to be predefined by the context as "builtins" or "low-level" f...
PypiClean
/MetaCalls-0.0.5-cp310-cp310-manylinux2014_x86_64.whl/metacalls/node_modules/@types/node/ts4.8/diagnostics_channel.d.ts
declare module 'diagnostics_channel' { /** * Check if there are active subscribers to the named channel. This is helpful if * the message you want to send might be expensive to prepare. * * This API is optional but helpful when trying to publish messages from very * performance-sensitive co...
PypiClean
/AztVeClient-1.0.0.post1.tar.gz/AztVeClient-1.0.0.post1/AztVe/src/trade_api/trade_api.py
from ._trade_api_base import * class AztTradeApi(VeApiBase): __account = None # 初始化 def Start(self, ip: str, port: int, spi=None, timeout=None): if spi: if isinstance(spi, type): spi = spi() if not getattr(spi, "api", None): setattr(spi, "a...
PypiClean
/Mopidy_MFE-0.4.9.tar.gz/Mopidy_MFE-0.4.9/mopidy_mfe/www/js/modernizr.custom.js
;window.Modernizr=function(a,b,c){function u(a){j.cssText=a}function v(a,b){return u(prefixes.join(a+";")+(b||""))}function w(a,b){return typeof a===b}function x(a,b){return!!~(""+a).indexOf(b)}function y(a,b,d){for(var e in a){var f=b[a[e]];if(f!==c)return d===!1?a[e]:w(f,"function")?f.bind(d||b):f}return!1}var d="2.6...
PypiClean
/EZFF-1.0.0.tar.gz/EZFF-1.0.0/docs/basic.rst
Basic Usage =========== You will need five pieces of information to get started with focefield optimization using EZFF. 1. Ground truths - Physical properties to parameterize the forcefield against 2. Serial MD executable (either GULP or LAMMPS or RXMD) 3. Forcefield template 4. Maximum and minimum values of decision ...
PypiClean
/ChatDocument-2023.4.25.9.50.0-py3-none-any.whl/chatllm/qa.py
from langchain.chains import RetrievalQA from langchain.prompts.prompt import PromptTemplate from langchain.vectorstores import FAISS # ME from meutils.pipe import * from chatllm.chatllm import ChatLLM RetrievalQA.return_source_documents = True class QA(object): def __init__(self, chatllm: ChatLLM, faiss_ann: ...
PypiClean
/EMbuilder-0.1.2.tar.gz/EMbuilder-0.1.2/embuilder/builder.py
import yaml import sys # from pyperseo.functions import milisec from perseo.main import milisec class EMB(): def __init__(self, config, prefixes, triplets): self.config = config self.prefixes = prefixes self.triplets = triplets self.main_dict = dict() self.tree = dict() ...
PypiClean
/FreePyBX-1.0-RC1.tar.gz/FreePyBX-1.0-RC1/freepybx/public/js/dojo/cldr/nls/hu/gregorian.js
define( "dojo/cldr/nls/hu/gregorian", //begin v1.x content { "field-dayperiod": "napszak", "dayPeriods-format-wide-pm": "du.", "field-minute": "perc", "eraNames": [ "időszámításunk előtt", "időszámításunk szerint" ], "dateFormatItem-MMMEd": "MMM d., E", "field-day-relative+-1": "tegnap", "field-weekday": "h...
PypiClean
/BGISimtool-0.1-py3-none-any.whl/bgisimtool/mathfunc.py
# Copyright (c) 2018 Swann Levasseur # 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, dis...
PypiClean
/CudaPyInt-0.0.1.tar.gz/CudaPyInt-0.0.1/doc/build/html/_static/sidebar.js
$(function() { // global elements used by the functions. // the 'sidebarbutton' element is defined as global after its // creation, in the add_sidebar_button function var bodywrapper = $('.bodywrapper'); var sidebar = $('.sphinxsidebar'); var sidebarwrapper = $('.sphinxsidebarwrapper'); // for some reaso...
PypiClean
/AWSpider-0.3.2.12.tar.gz/AWSpider-0.3.2.12/awspider/amqp/specs/__init__.py
v0_8 = '''<?xml version="1.0"?> <!-- Copyright Notice ================ (c) Copyright JPMorgan Chase Bank, Cisco Systems, Inc., Envoy Technologies Inc., iMatix Corporation, ION Technologies, Red Hat, Inc., TWIST Process Innovations, and 29West Inc. 2006. All rights reserved. License ======= JPMorgan Chase Bank, Cisco S...
PypiClean
/HamodyToolss-0.0.3.tar.gz/HamodyToolss-0.0.3/README.md
<h1 align="center">HamodyToola</h1> <p align="center">It's a Usefull Project for Developers ... It checkers Emails Found Or Not Found</p> <p align="center"> • DevVlopered The Lib BY Hamody • </p> ## Installing : ``` pip install HamodyTools ``` ## • Get Email instagram • ``` from HamodyTools import Hamody sessionid...
PypiClean
/Nuitka_fixed-1.1.2-cp310-cp310-win_amd64.whl/nuitka/build/inline_copy/lib/scons-3.1.2/SCons/Scanner/Dir.py
__revision__ = "src/engine/SCons/Scanner/Dir.py bee7caf9defd6e108fc2998a2520ddb36a967691 2019-12-17 02:07:09 bdeegan" import SCons.Node.FS import SCons.Scanner def only_dirs(nodes): is_Dir = lambda n: isinstance(n.disambiguate(), SCons.Node.FS.Dir) return [node for node in nodes if is_Dir(node)] def DirScan...
PypiClean
/GooseSLURM-0.12.4.tar.gz/GooseSLURM-0.12.4/docs/conda.rst
********************** Use conda to pre-build ********************** When using a compiled code it can be useful to build once (on the appropriate hardware) and simply use the executable in a job. If you want to avoid using the path of the executable, you can install the executable. A nice way to do this is to instal...
PypiClean
/Lightflow-1.11.1.tar.gz/Lightflow-1.11.1/lightflow/models/task_parameters.py
class TaskParameters(dict): """ A class to store a mix of callable and native data type parameters for tasks. A single parameter can either be a callable returning a native data type or the native data type itself. This allows tasks do dynamically change their parameters based on the data flowing into ...
PypiClean
/ForgeHg-0.5.2.tar.gz/ForgeHg-0.5.2/forgehg/hg_main.py
import logging from ming.utils import LazyProperty from ming.odm.odmsession import ThreadLocalODMSession from tg import tmpl_context as c from timermiddleware import Timer # Pyforge-specific imports import allura.tasks from allura.lib import helpers as h from allura import model as M from allura.controllers.repositor...
PypiClean
/Autogovernance-0.8.0.tar.gz/Autogovernance-0.8.0/autogovernance/main.py
""" import pandas as pd real = ['id', 'issueId', 'issueTransactionId', 'customerReference', 'product_id', 'product_name', 'refinance', 'relatedLoan', 'loansDataAmount', 'loansDataCurrency_code', 'loansDataTerm', 'event_id', 'eventName', 'statusName', 'approved', 'canc...
PypiClean
/FitBenchmarking-1.0.0.tar.gz/FitBenchmarking-1.0.0/docs/source/contributors/install_instructions.rst
.. _install_instructions: ##################################### Install Instructions for Contributors ##################################### Please see below for the recommended install instructions for new contributors: 1. Before installing, it is recommended that you create an empty virtual environment. For more...
PypiClean
/Grid2Op-1.9.3-py3-none-any.whl/grid2op/Reward/l2RPNSandBoxScore.py
import numpy as np from grid2op.Reward.baseReward import BaseReward from grid2op.dtypes import dt_float class L2RPNSandBoxScore(BaseReward): """ INTERNAL .. warning:: /!\\\\ Internal, do not use unless you know what you are doing /!\\\\ It **must not** serve as a reward. This scored needs t...
PypiClean
/ArduinoBoardCollection-0.1.1566386412.tar.gz/ArduinoBoardCollection-0.1.1566386412/arduino_board_collection_bu/boards/sensor_boards/light_sensors/tsl2591/board.py
import struct import numpy as np import scipy.interpolate from ArduinoCodeCreator.arduino_data_types import ( uint32_t, uint8_t, boolean, uint16_t, float_, ) from ArduinoCodeCreator.basic_types import ArduinoClass, Function, ArduinoEnum from arduino_controller.arduino_variable import arduio_variab...
PypiClean
/Broad_genepy-1.2.6-py3-none-any.whl/genepy/utils/helper.py
from __future__ import print_function import json import os import string import subprocess import pandas as pd import numpy as np import itertools import random import xmltodict from biomart import BiomartServer import io chromsize = { "chr1": 248956422, "chr10": 133797422, "chr11": 135086622, "chr12...
PypiClean
/GDAL-3.7.1.1.tar.gz/GDAL-3.7.1.1/gdal-utils/osgeo_utils/gdal2xyz.py
import sys import textwrap from numbers import Number from typing import Optional, Sequence, Tuple, Union import numpy as np from osgeo import gdal from osgeo_utils.auxiliary.base import PathLikeOrStr from osgeo_utils.auxiliary.gdal_argparse import GDALArgumentParser, GDALScript from osgeo_utils.auxiliary.numpy_util ...
PypiClean
/OPTALG-1.1.8rc1.tar.gz/OPTALG-1.1.8rc1/README.md
# OPTALG [![Build Status](https://travis-ci.org/ttinoco/OPTALG.svg?branch=master)](https://travis-ci.org/ttinoco/OPTALG) [![Documentation Status](https://readthedocs.org/projects/optalg/badge/?version=latest)](http://optalg.readthedocs.io/en/latest/?badge=latest) ## Overview OPTALG is a Python package that provides ...
PypiClean
/AGouTI-1.0.3.tar.gz/AGouTI-1.0.3/agouti_pkg/output_processing.py
from agouti_pkg.miscallaneous import * def prepare_output(lengths_dict, header, args, attributes_and_features, database, processing_product, overlapping_features, region, cds_start=None): """Prepares a single line of the output file. Parse ProcessingProduct\ objects. ...
PypiClean
/EvalDNN-0.13.tar.gz/EvalDNN-0.13/evaldnn/benchmarks/eval_keras.py
from __future__ import absolute_import import foolbox from evaldnn.metrics.accuracy import Accuracy from evaldnn.metrics.neuron_coverage import NeuronCoverage from evaldnn.metrics.robustness import Robustness from evaldnn.models.keras import KerasModel from evaldnn.utils.keras import * def eval(): """Evaluate a...
PypiClean
/OPi.GPIOtest-0.5.0.tar.gz/OPi.GPIOtest-0.5.0/CHANGES.rst
ChangeLog --------- +------------+---------------------------------------------------------------------+------------+ | Version | Description | Date | +============+=====================================================================+============+ | **0...
PypiClean
/Eureqa-1.76.0.tar.gz/Eureqa-1.76.0/eureqa/html/button.py
from eureqa.analysis_cards.analysis_card import AnalysisCard import json import types class Button(object): """ **BETA** An HTML button inside an HtmlCard :param str title: Title of the card """ class Events: """ Constants that identify the types of events that can trigger an action """...
PypiClean
/HTTPKit-0.2.1.tar.gz/HTTPKit-0.2.1/httpkit/helper/cookie.py
# # Helpers # import Cookie from datetime import timedelta, datetime, date import time def _serialize_cookie_date(dt): if dt is None: return None if isinstance(dt, unicode): dt = dt.encode('ascii') if isinstance(dt, timedelta): dt = datetime.now() + dt if isinstance(dt, (dateti...
PypiClean
/Nuitka_fixed-1.1.2-cp310-cp310-win_amd64.whl/nuitka/tools/data_composer/DataComposer.py
"""Data composer, crunch constants into binary blobs to load. """ import binascii import math import os import re import struct import sys from nuitka.__past__ import ( BytesIO, GenericAlias, long, to_byte, unicode, xrange, ) from nuitka.build.DataComposerInterface import deriveModuleConstants...
PypiClean
/Flask-CKEditor-0.4.6.tar.gz/Flask-CKEditor-0.4.6/flask_ckeditor/static/standard/lang/fr.js
/* Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or https://ckeditor.com/license */ CKEDITOR.lang['fr']={"editor":"Éditeur de texte enrichi","editorPanel":"Tableau de bord de l'éditeur de texte enrichi","common":{"editorHelp":"Utilisez le raccourci Alt-0 pour...
PypiClean
/MezzanineFor1.7-3.1.10.tar.gz/MezzanineFor1.7-3.1.10/mezzanine/blog/views.py
from __future__ import unicode_literals from future.builtins import str from future.builtins import int from calendar import month_name from django.contrib.auth import get_user_model from django.http import Http404 from django.shortcuts import get_object_or_404 from mezzanine.blog.models import BlogPost, BlogCategory...
PypiClean
/LitleSdkPython3-9.3.1b0.tar.gz/LitleSdkPython3-9.3.1b0/bin/postGeneration.py
import sys import os import re import string lib_path = os.path.abspath('../litleSdkPython/litleXmlFields.py') sys.path.append(lib_path) #replaces all instances of find with replace def replace_in_file(xfile, find, replace): found = re.compile(find) readlines = open(xfile, 'r').readlines() listindex = ...
PypiClean
/Mopidy-TwitterDJ-0.1.4.tar.gz/Mopidy-TwitterDJ-0.1.4/mopidy_twitterdj/frontend.py
import pykka import logging import thread import threading from datetime import datetime, timedelta from email.utils import parsedate_tz from mopidy import core from twython import TwythonStreamer from mopidy.audio import PlaybackState def to_datetime(datestring): time_tuple = parsedate_tz(datestring.strip()) ...
PypiClean