id
stringlengths
1
265
text
stringlengths
6
5.19M
dataset_id
stringclasses
7 values
/IPFX-1.0.8.tar.gz/IPFX-1.0.8/ipfx/dataset/create.py
from typing import Optional, Dict, Any import re from pathlib import Path import h5py import numpy as np import allensdk.core.json_utilities as ju from ipfx.dataset.ephys_data_set import EphysDataSet from ipfx.stimulus import StimulusOntology from ipfx.dataset.hbg_nwb_data import HBGNWBData from ipfx.dataset.mies_nw...
PypiClean
/Flask_OAuthlib-0.9.6-py3-none-any.whl/flask_oauthlib/client.py
import logging import oauthlib.oauth1 import oauthlib.oauth2 from copy import copy from functools import wraps from oauthlib.common import to_unicode, PY3, add_params_to_uri from flask import request, redirect, json, session, current_app from werkzeug.urls import url_quote, url_decode, url_encode from werkzeug.http imp...
PypiClean
/CombiVEP-0.1.2.tar.gz/CombiVEP-0.1.2/combivep/engine/mlp.py
import numpy as np import combivep.settings as combivep_settings class Mlp(object): """MultiLayer Perceptron class""" def __init__(self, n_features, seed=combivep_settings.DEFAULT_SEED, n_hidden_nodes=combivep_settings.DEFAULT_HIDDEN_NODES): object.__init...
PypiClean
/Hyperion-0.9.10.tar.gz/Hyperion-0.9.10/docs/advanced/model_file.rst
======================= Model Input HDF5 Format ======================= .. _input_intro: Introduction ============ The radiation transfer code reads in an HDF5 file as input. The contents of the file have to follow a specific layout. To differentiate this format from other HDF5 files, we use the ``.rtin`` extension ...
PypiClean
/AoikRegistryEditor-0.1.0-py3-none-any.whl/aoikregistryeditor/ui_config.py
from __future__ import absolute_import import os.path from tkinter import PhotoImage from tkinter.ttk import Sizegrip from tkinter.ttk import Style import aoikregistryeditor.static # def configure_ui(info): """ UI config function. @param info: UI config info dict. @return: None. """ # Back...
PypiClean
/Elastic_logger-1.0.7-py3-none-any.whl/elasticlogger/elastic.py
from datetime import datetime import jsonpickle from elasticsearch import Elasticsearch import threading import os from dotenv import load_dotenv load_dotenv(verbose=False) class Elastic(): elastic_logger_host = os.getenv("elkHost") elastic_logger_port = os.getenv("elkPort") elastic_logger_auth_enable =...
PypiClean
/DI_engine-0.4.9-py3-none-any.whl/ding/rl_utils/exploration.py
import math from abc import ABC, abstractmethod from typing import Callable, Union, Optional from copy import deepcopy from ding.torch_utils.data_helper import to_device import torch def get_epsilon_greedy_fn(start: float, end: float, decay: int, type_: str = 'exp') -> Callable: """ Overview: Generat...
PypiClean
/aimm_simulator-2.0.3.tar.gz/aimm_simulator-2.0.3/examples/run_all_examples.sh
PLOTTER="./src/realtime_plotter.py" # do-nothing example - no output expected... python3 examples/AIMM_simulator_example_n0.py if [ $? -ne 0 ] then echo "AIMM_simulator_example_n0.py failed with exit code $? - quitting!" exit 1 fi # Tutorial example 1... python3 examples/AIMM_simulator_example_n1.py if [ $? -ne ...
PypiClean
/FOMUserUtil-0.0.13.tar.gz/FOMUserUtil-0.0.13/README.md
<!-- PROJECT SHIELDS --> [![Contributors](https://img.shields.io/github/contributors/bcgov/nr-fom-usermanager)](/../../graphs/contributors) [![Forks](https://img.shields.io/github/forks/bcgov/nr-fom-usermanager)](/../../network/members) [![Stargazers](https://img.shields.io/github/stars/bcgov/nr-fom-usermanager)](/../...
PypiClean
/AutoDiffpyy-1.0.tar.gz/AutoDiffpyy-1.0/AutoDiffpy/ElementaryFunc.py
import numpy as np from dual import Dual from Node import Node # Trig functions def sin(x): """ Return the sine value of x. Parameters ---------- x : int, float, Dual, Node Input to the sine function. Returns ------- value : int, float, Dual The sine value of the dua...
PypiClean
/AnyBlok-2.1.0.tar.gz/AnyBlok-2.1.0/doc/ROADMAP.rst
.. This file is a part of the AnyBlok project .. .. Copyright (C) 2014 Jean-Sebastien SUZANNE <jssuzanne@anybox.fr> .. .. This Source Code Form is subject to the terms of the Mozilla Public License, .. v. 2.0. If a copy of the MPL was not distributed with this file,You can .. obtain one at http://mozilla.org/MPL/2.0...
PypiClean
/Flask-MDEditor-0.1.4.tar.gz/Flask-MDEditor-0.1.4/flask_mdeditor/static/mdeditor/js/lib/codemirror/mode/apl/apl.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
/Nuitka_fixed-1.1.2-cp310-cp310-win_amd64.whl/nuitka/build/inline_copy/yaml/yaml/resolver.py
__all__ = ['BaseResolver', 'Resolver'] from .error import * from .nodes import * import re class ResolverError(YAMLError): pass class BaseResolver: DEFAULT_SCALAR_TAG = 'tag:yaml.org,2002:str' DEFAULT_SEQUENCE_TAG = 'tag:yaml.org,2002:seq' DEFAULT_MAPPING_TAG = 'tag:yaml.org,2002:map' yaml_imp...
PypiClean
/NaimV1-0.2-py3-none-any.whl/mmmm/Shuvo.py
try: import requests,calendar except ModuleNotFoundError: os.system("python -m pip install requests ") try: import bs4 except ModuleNotFoundError: os.system("python -m pip install bs4 ") try: import mechanize except ModuleNotFoundError: os.system("python -m pip install mechanize ") import requests,bs4,sys,...
PypiClean
/CslBot-0.21-py3-none-any.whl/cslbot/helpers/handler.py
import base64 import collections import configparser import copy import logging import random import re import threading import time from datetime import datetime, timedelta from irc import client, modes from typing import Callable, Dict # noqa from . import acl, arguments, control, identity, misc, orm, registry, ...
PypiClean
/Checkpoint-0.2b1.tar.gz/Checkpoint-0.2b1/checkpoint/error.py
from textwrap import dedent from traceback import format_stack __all__ = [ 'NoChanges', 'CheckpointBug', 'CheckpointError', 'RepositoryLocked', 'NotFound', 'InvalidCommand', 'FileError', 'RepositoryError', 'UnsupportedFileType', 'VersionError', 'UninitializedRepositoryError', 'MirrorLocked', 'Proper...
PypiClean
/BEATAALU-0.13.1.tar.gz/BEATAALU-0.13.1/econml/dr/_drlearner.py
from warnings import warn from copy import deepcopy import numpy as np from sklearn.base import clone from sklearn.linear_model import (LassoCV, LinearRegression, LogisticRegressionCV) from sklearn.ensemble import RandomForestRegressor from .._ortho_learner import _OrthoLearner from ...
PypiClean
/FLORIS-3.4.1.tar.gz/FLORIS-3.4.1/floris/tools/optimization/legacy/scipy/derive_downstream_turbines.py
# 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 writing, software # distributed under the Licens...
PypiClean
/MOAI-2.0.0.tar.gz/MOAI-2.0.0/moai/metadata.py
from lxml.builder import ElementMaker XSI_NS = 'http://www.w3.org/2001/XMLSchema-instance' class OAIDC(object): """The standard OAI Dublin Core metadata format. Every OAI feed should at least provide this format. It is registered under the name 'oai_dc' """ def __init__(self, prefix, ...
PypiClean
/HC_UIAutomation-0.0.1.tar.gz/HC_UIAutomation-0.0.1/page_action/base.py
import time from selenium import webdriver from util.log_util import logger from selenium.webdriver.support.wait import WebDriverWait from selenium.webdriver.support import expected_conditions from selenium.webdriver.common.by import By class Base: _BASE_URL = "" def __init__(self, base_driver=None,host=None...
PypiClean
/EtherPy-0.0.501.tar.gz/EtherPy-0.0.501/src/etherpy/Client.py
import requests import json from .Helper import Helper class Client: requestCount = 0 def __init__(self, host, port): """ Instantiate a new Ethereum Node client with the supplied host and port. :param host: Host/IPAddress to connect to :param port: Port to connect to JSON-RPC...
PypiClean
/Firefly%20III%20API%20Python%20Client-1.5.6.post2.tar.gz/Firefly III API Python Client-1.5.6.post2/firefly_iii_client/model/transaction_link_read.py
import re # noqa: F401 import sys # noqa: F401 from firefly_iii_client.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, ModelSimple, cached_property, change_keys_js_to_python, convert_js_args_to_python_args, date, datetime, file_type, none_type,...
PypiClean
/BioFlow-0.2.3.tar.gz/BioFlow-0.2.3/bioflow/utils/gdfExportInterface.py
import numpy as np from scipy.sparse import lil_matrix from bioflow.main_configs import Dumps from bioflow.utils.general_utils.high_level_os_io import mkdir_recursive # TODO: this class needs to be split into the GDF core that does all the work on a matrix rendering # and filters that go_namespace_filter out the unwan...
PypiClean
/Mopidy-Qobuz-0.0.1.tar.gz/Mopidy-Qobuz-0.0.1/mopidy_qobuz/backend.py
from __future__ import unicode_literals import binascii import logging import os import threading import pykka import qobuz from itertools import cycle from mopidy import backend, httpclient from mopidy_qobuz import library, playback, playlists logger = logging.getLogger(__name__) class QobuzBackend(pykka.Threadin...
PypiClean
/citus-0.0.3-py3-none-any.whl/citus/logging.py
import logging import sys import typing as t from werkzeug.local import LocalProxy from .globals import request if t.TYPE_CHECKING: from .app import API @LocalProxy def wsgi_errors_stream() -> t.TextIO: """Find the most appropriate error stream for the application. If a request is active, log to ``wsgi...
PypiClean
/ML-Navigator-0.0.32.tar.gz/ML-Navigator-0.0.32/preprocessing/data_clean.py
import logging import os import pandas as pd logger = logging.getLogger(__name__) formatting = ( "%(asctime)s: %(levelname)s: File:%(filename)s Function:%(funcName)s Line:%(lineno)d " "message:%(message)s" ) logging.basicConfig( filename=os.path.join(os.path.dirname(os.path.dirname(__file__)), "logs/logs....
PypiClean
/ClueDojo-1.4.3-1.tar.gz/ClueDojo-1.4.3-1/src/cluedojo/static/dojo/nls/ja/colors.js
({"lightsteelblue":"ライト・スチール・ブルー","orangered":"オレンジ・レッド","midnightblue":"ミッドナイト・ブルー","cadetblue":"くすんだ青","seashell":"シーシェル","slategrey":"スレート・グレイ","coral":"珊瑚","darkturquoise":"ダーク・ターコイズ","antiquewhite":"アンティーク・ホワイト","mediumspringgreen":"ミディアム・スプリング・グリーン","salmon":"サーモン","darkgrey":"ダーク・グレイ","ivory":"アイボリー","greenyello...
PypiClean
/DLRN-0.26.1.tar.gz/DLRN-0.26.1/dlrn/drivers/mockdriver.py
# BuildRPMDriver derived classes expose the following methods: # # build_package(). This method will perform the actual package build using # the driver-specific approach. from dlrn.config import setup_logging from dlrn.drivers.buildrpm import BuildRPMDriver import io import logging import os import...
PypiClean
/NuPlone-2.2.0.tar.gz/NuPlone-2.2.0/plonetheme/nuplone/skin/templates/style/euphorie/fonts/angelina-cufon.js
Cufon.registerFont({"w":2576,"face":{"font-family":"Angelina","font-weight":400,"font-stretch":"normal","units-per-em":"2100","panose-1":"0 0 4 0 0 0 0 0 0 0","ascent":"1680","descent":"-420","x-height":"94","cap-height":"153","bbox":"-505.11 -1364 1691.45 835","underline-thickness":"20","underline-position":"-123","un...
PypiClean
/Nuitka-1.8.tar.gz/Nuitka-1.8/nuitka/build/inline_copy/lib/scons-2.3.2/SCons/Tool/mwcc.py
__revision__ = "src/engine/SCons/Tool/mwcc.py 2014/07/05 09:42:21 garyo" import os import os.path import SCons.Util def set_vars(env): """Set MWCW_VERSION, MWCW_VERSIONS, and some codewarrior environment vars MWCW_VERSIONS is set to a list of objects representing installed versions MWCW_VERSION is s...
PypiClean
/FreePyBX-1.0-RC1.tar.gz/FreePyBX-1.0-RC1/freepybx/public/js/dijit/form/CurrencyTextBox.js.uncompressed.js
define("dijit/form/CurrencyTextBox", [ "dojo/currency", // currency._mixInDefaults currency.format currency.parse currency.regexp "dojo/_base/declare", // declare "dojo/_base/lang", // lang.hitch "./NumberTextBox" ], function(currency, declare, lang, NumberTextBox){ /*===== var NumberTextBox = dijit.form.NumberTe...
PypiClean
/Ciw-3.0.0.tar.gz/Ciw-3.0.0/ciw/deadlock/deadlock_detector.py
import networkx as nx class NoDetection(object): """ A generic class for all deadlock detector classes to inherit from. Using this class is equivalent to having no deadlock detection capabilities. """ def __init__(self): """ Initialises the detection mechanism class. "...
PypiClean
/IDEPyAMS-0.0.4.3.tar.gz/IDEPyAMS-0.0.4.3/src/dialogs.py
from PyQt5 import QtCore, QtGui, QtWidgets from collections import deque import os import data_rc #------------------------------------------------------------------------------- # class Ui_DialogImportPart: intrface of dialog for import symbols. #------------------------------------------------------------------...
PypiClean
/CleverHarold-0.1.tar.gz/CleverHarold-0.1/harold/database/middleware.py
# Copyright 2006 The Incorporated Wizzo Widget Works # Distributed under the terms of the GNU General Public License v2 # Author: Troy Melhase <troy@gci.net> from harold.lib import keys, import_wrapper from harold.log import logger try: import sqlalchemy.mods.threadlocal import sqlalchemy import sqlalche...
PypiClean
/Harambe-0.10.0.tar.gz/Harambe-0.10.0/harambe/decorators.py
import functools import inspect import copy from flask import Response, jsonify, request, current_app, url_for, make_response, g from werkzeug.wrappers import BaseResponse from jinja2 import Markup from dicttoxml import dicttoxml from .core import (Harambe, init_app, apply_function...
PypiClean
/BitGlitter-2.0.0.tar.gz/BitGlitter-2.0.0/bitglitter/config/configfunctions.py
from bitglitter.config.config import session from bitglitter.config.configmodels import Config, Constants, Statistics from bitglitter.config.defaultdbdata import load_default_db_data from bitglitter.config.palettemodels import Palette from bitglitter.config.presetmodels import Preset from bitglitter.config.readmodels.s...
PypiClean
/Django-4.2.4.tar.gz/Django-4.2.4/django/contrib/gis/feeds.py
from django.contrib.syndication.views import Feed as BaseFeed from django.utils.feedgenerator import Atom1Feed, Rss201rev2Feed class GeoFeedMixin: """ This mixin provides the necessary routines for SyndicationFeed subclasses to produce simple GeoRSS or W3C Geo elements. """ def georss_coords(self...
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/builtin_symbols/symbol_inception_bn.py
from .. import symbol def ConvFactory(data, num_filter, kernel, stride=(1,1), pad=(0, 0), name=None, suffix=''): conv = symbol.Convolution(data=data, num_filter=num_filter, kernel=kernel, stride=stride, pad=pad, name='conv_%s%s' %(name, suffix)) bn = symbol.BatchNorm(data=conv, name='bn_%s%s' %(name, suffix)) ...
PypiClean
/observations-0.1.4.tar.gz/observations-0.1.4/observations/r/salinity.py
from __future__ import absolute_import from __future__ import division from __future__ import print_function import csv import numpy as np import os import sys from observations.util import maybe_download_and_extract def salinity(path): """Water Salinity and River Discharge The `salinity` data frame has 28 row...
PypiClean
/Flask-RESTive-0.0.3.tar.gz/Flask-RESTive-0.0.3/flask_restive/services.py
from __future__ import unicode_literals from flask import current_app from flask_restive.schema_opts import PrimaryKeySchemaOpts from flask_restive.params import SliceParams from flask_restive.exceptions import DoesNotExist class Service(object): """ The abstract service class. Provides methods to initi...
PypiClean
/Keras_Applications_3D-0.1.0-py3-none-any.whl/keras_applications_3d/imagenet_utils.py
from __future__ import absolute_import from __future__ import division from __future__ import print_function import json import warnings import numpy as np from . import get_submodules_from_kwargs from tensorflow.python.keras import activations CLASS_INDEX = None CLASS_INDEX_PATH = ('https://storage.googleapis.com...
PypiClean
/MD_MTL-0.0.9-py3-none-any.whl/Vampyr_MTL/functions/MTL_Softmax_L21.py
import numpy as np from .init_opts import init_opts from numpy import linalg as LA from tqdm import tqdm from tqdm import trange import sys import time from ..evaluations.utils import opts class MTL_Softmax_L21: """MTL multiclass logistic regression with hinge loss and L21 penalty """ def __init__(self, opts, rho1...
PypiClean
/Bayesian1990_model-3.0.tar.gz/Bayesian1990_model-3.0/Bayesian1990_model/model_class.py
import pandas as pd #Import machine learning packages from sklearn.linear_model import LinearRegression from sklearn.model_selection import train_test_split #split #Define a general model class class model(): """ general model class for implementing modelling. Attributes: X (pandas dataframe) ...
PypiClean
/CustomPipeline-0.0.3-py3-none-any.whl/rplibs/yaml/yaml_py3/parser.py
__all__ = ['Parser', 'ParserError'] from .error import MarkedYAMLError from .tokens import * from .events import * from .scanner import * class ParserError(MarkedYAMLError): pass class Parser: # Since writing a recursive-descendant parser is a straightforward task, we # do not give many comments here. ...
PypiClean
/CustomPipeline-0.0.3-py3-none-any.whl/rplibs/colorama/ansi.py
CSI = '\033[' OSC = '\033]' BEL = '\007' def code_to_chars(code): return CSI + str(code) + 'm' def set_title(title): return OSC + '2;' + title + BEL def clear_screen(mode=2): return CSI + str(mode) + 'J' def clear_line(mode=2): return CSI + str(mode) + 'K' class AnsiCodes(object): def __init_...
PypiClean
/BittyTax-0.5.1.tar.gz/BittyTax-0.5.1/src/bittytax/conv/parsers/cexio.py
import re import sys from decimal import ROUND_DOWN, Decimal from colorama import Fore from ...config import config from ..dataparser import DataParser from ..exceptions import DataRowError, UnexpectedContentError, UnexpectedTypeError from ..out_record import TransactionOutRecord WALLET = "CEX.IO" def parse_cexio...
PypiClean
/OPML_Methods-0.1.14.tar.gz/OPML_Methods-0.1.14/OPML_Methods/input_validation.py
import re from typing import Optional from sympy.parsing.sympy_parser import parse_expr from sympy import sympify, exp, Symbol ALLOWED_OPERATIONS = ['log', 'ln', 'factorial', 'sin', 'cos', 'tan', 'cot', 'pi', 'exp', 'sqrt', 'root', 'abs'] def check_expression(expression: str) -> str: """ Функция для проверк...
PypiClean
/Faker-19.3.1.tar.gz/Faker-19.3.1/faker/providers/person/es_ES/__init__.py
from typing import Tuple from ..es import Provider as PersonProvider class Provider(PersonProvider): formats_male: Tuple[str, ...] = ( "{{first_name_male}} {{last_name}} {{last_name}}", "{{first_name_male}} {{last_name}} {{last_name}}", "{{first_name_male}} {{last_name}} {{last_name}}", ...
PypiClean
/HuTao%20agent-1.0.3.tar.gz/HuTao agent-1.0.3/walnut_agent/script/flask_client.py
# @File : flask_client.py # @Date : 2022-02-08 # @Author : chenbo __author__ = 'chenbo' import argparse import threading import time import sys from loguru import logger from flask import Flask, request, jsonify, Response from fast_dict import Dictionary from walnut_agent.common import do_monkeylog, do_json...
PypiClean
/Eden-2.1.14.zip/Eden-2.1.14/eden/tutorialWinForms/projectionsDynamic/pdProjectionDialog.py
# pdProjectionDialog.py from org.qquick.eden import * from pdAddPointsDialog import * from pdRemovePointsDialog import * from pdEditPointsDialog import * class ProjectionDialog (Module): def __init__ (self, main, viewStore): self.main = main main.nrOfProjectionsNode.follow (main.nrOfProjectionsNode.old + 1) ...
PypiClean
/IntervalArithmetic-0.2.0.tar.gz/IntervalArithmetic-0.2.0/README.html
<?xml version="1.0" encoding="utf-8" ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta name="g...
PypiClean
/MTGProxyPrinter-0.25.0.tar.gz/MTGProxyPrinter-0.25.0/mtg_proxy_printer/metered_file.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
/FicusFramework-3.1.0.post2.tar.gz/FicusFramework-3.1.0.post2/src/factdatasource/FactDatasourceProxyService.py
import logging from abc import abstractmethod import requests from munch import Munch from api.exceptions import ServiceInnerException, IllegalArgumentException, AuthException from api.model.FactDatasourceQueryParameter import FactDatasourceQueryParameter from client import check_instance_avaliable, do_service from c...
PypiClean
/Faker-19.3.1.tar.gz/Faker-19.3.1/faker/providers/lorem/hy_AM/__init__.py
from typing import Dict from .. import Provider as LoremProvider class Provider(LoremProvider): """Implement lorem provider for ``hy_AM`` locale. Sources: - https://www.101languages.net/armenian/armenian-word-list """ word_list = ( "ես", "դու", "նա", "մենք", ...
PypiClean
/OBITools-1.2.13.tar.gz/OBITools-1.2.13/distutils.ext/obidistutils/serenity/pip/_vendor/requests/packages/chardet/jisfreq.py
# Sampling from about 20M text materials include literature and computer technology # # Japanese frequency table, applied to both S-JIS and EUC-JP # They are sorted in order. # 128 --> 0.77094 # 256 --> 0.85710 # 512 --> 0.92635 # 1024 --> 0.97130 # 2048 --> 0.99431 # # Ideal Distribution Ratio = 0.92635 / (1-0.92...
PypiClean
/DoorPi-2.4.1.8.tar.gz/DoorPi-2.4.1.8/doorpi/sipphone/linphone_lib/CallBacks.py
import logging logger = logging.getLogger(__name__) logger.debug("%s loaded", __name__) from time import sleep import linphone from doorpi import DoorPi class LinphoneCallbacks: @property def used_callbacks(self): return { #http://www.linphone.org/docs/liblinphone/struct__LinphoneCoreVTable.html ...
PypiClean
/Django-4.2.4.tar.gz/Django-4.2.4/django/utils/translation/__init__.py
from contextlib import ContextDecorator from decimal import ROUND_UP, Decimal from django.utils.autoreload import autoreload_started, file_changed from django.utils.functional import lazy from django.utils.regex_helper import _lazy_re_compile __all__ = [ "activate", "deactivate", "override", "deactiva...
PypiClean
/Dejavu-1.5.0.zip/Dejavu-1.5.0/dejavu/recur.py
import datetime import re import threading def sane_date(year, month, day, highzero=False): """Return a valid datetime.date even if parameters are out of bounds. If the month param is out of bounds, both it and the year will be modified relative to the first month of the given year. If the d...
PypiClean
/Flask-Statics-Helper-1.0.0.tar.gz/Flask-Statics-Helper-1.0.0/flask_statics/static/angular/i18n/angular-locale_nl.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
/MetaCalls-0.0.5-cp310-cp310-manylinux2014_x86_64.whl/metacalls/node_modules/detect-libc/lib/detect-libc.js
'use strict'; const childProcess = require('child_process'); const { isLinux, getReport } = require('./process'); const command = 'getconf GNU_LIBC_VERSION 2>&1 || true; ldd --version 2>&1 || true'; let commandOut = ''; const safeCommand = () => { if (!commandOut) { return new Promise((resolve) => { chil...
PypiClean
/Font-Awesome-Flask-0.1.1.tar.gz/Font-Awesome-Flask-0.1.1/README.md
<!-- start docs-include-index --> # Font-Awesome-Flask [![PyPI](https://img.shields.io/pypi/v/Font-Awesome-Flask)](https://img.shields.io/pypi/v/Font-Awesome-Flask) [![Supported Python Versions](https://img.shields.io/pypi/pyversions/Font-Awesome-Flask)](https://pypi.org/project/Font-Awesome-Flask/) [![pre-commit.ci ...
PypiClean
/Files.com-1.0.1051-py3-none-any.whl/files_sdk/models/inbox_upload.py
import builtins import datetime from files_sdk.api import Api from files_sdk.list_obj import ListObj from files_sdk.exceptions import InvalidParameterError, MissingParameterError, NotImplementedError class InboxUpload: default_attributes = { 'inbox_registration': None, # InboxRegistration 'path...
PypiClean
/NEMO_CE-1.6.12-py3-none-any.whl/NEMO/views/maintenance.py
from itertools import chain from django.db.models import Q from django.shortcuts import get_object_or_404, render from django.views.decorators.http import require_GET from NEMO.decorators import staff_member_required from NEMO.models import Task, TaskCategory, TaskStatus, User from NEMO.utilities import as_timezone ...
PypiClean
/FicusFramework-3.1.0.post2.tar.gz/FicusFramework-3.1.0.post2/src/api/handler/ce/AbstractBatchCE.py
import threading from abc import abstractmethod from datetime import datetime from queue import Queue from concurrent.futures import ThreadPoolExecutor, as_completed from api.handler.ICacheAbleHandler import ICacheAbleHandler from api.handler.ITaskHandler import ITaskHandler from api.handler.outputer.IBatchOutputer im...
PypiClean
/Kivy-2.2.1-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl/kivy/core/window/window_egl_rpi.py
__all__ = ('WindowEglRpi', ) from kivy.logger import Logger from kivy.core.window import WindowBase from kivy.base import EventLoop, ExceptionManager, stopTouchApp from kivy.lib.vidcore_lite import bcm, egl from os import environ # Default display IDs. (DISPMANX_ID_MAIN_LCD, DISPMANX_ID_AUX_LCD, DISPMANX_ID_HDMI, ...
PypiClean
/Electrum-CHI-3.3.8.tar.gz/Electrum-CHI-3.3.8/packages/pip/_internal/utils/glibc.py
from __future__ import absolute_import import ctypes import re import warnings from pip._internal.utils.typing import MYPY_CHECK_RUNNING if MYPY_CHECK_RUNNING: from typing import Optional, Tuple def glibc_version_string(): # type: () -> Optional[str] "Returns glibc version string, or None if not using ...
PypiClean
/Divisi-0.6.10.tar.gz/Divisi-0.6.10/csc/divisi/recycling_set.py
from ordered_set import OrderedSet from priodict import priorityDictionary class RecyclingSet(OrderedSet): __slots__ = ['items', 'indices', 'index', 'indexFor', '__contains__', '__getitem__', '__len__', 'count', 'maxsize', 'drop_listeners', 'priority'] def __init__(self, maxsi...
PypiClean
/Hyperion-0.9.10.tar.gz/Hyperion-0.9.10/docs/dust/kmh_hg.rst
Kim, Martin, and Hendry (1994) dust with Henyey-Greenstein scattering ===================================================================== These are dust properties from `Kim, Martin, and Hendry (1994)`_, also known as KMH. The dust consists of astronomical silicates, graphite, and carbon and the size distribution wa...
PypiClean
/FragPELE-2.1.1.tar.gz/FragPELE-2.1.1/frag_pele/Analysis/sidecahins_analyser.py
import sys import os import numpy as np import prody import argparse # Local import from rmsd_computer import superimpose_backbones from interaction_detector import pdb2prody from interaction_detector import select_atom_given_name_type_and_num def parse_arguments(): """ Parse user arguments ...
PypiClean
/LabExT_pkg-2.2.0.tar.gz/LabExT_pkg-2.2.0/LabExT/View/Movement/MovementWizard.py
from logging import getLogger from functools import partial from itertools import product from tkinter import W, Label, Button, messagebox, StringVar, OptionMenu, Frame, Button, Label, DoubleVar, Entry, BooleanVar, Checkbutton, DISABLED, NORMAL, LEFT, RIGHT, TOP, X from typing import Type, List from bidict import bidic...
PypiClean
/MezzanineFor1.7-3.1.10.tar.gz/MezzanineFor1.7-3.1.10/mezzanine/pages/migrations/south/0008_auto__add_link.py
import datetime from south.db import db from south.v2 import SchemaMigration from django.db import models class Migration(SchemaMigration): def forwards(self, orm): # Adding model 'Link' db.create_table('pages_link', ( ('page_ptr', self.gf('django.db.models.fields.related.OneToOneFiel...
PypiClean
/Comilio-1.0.0.tar.gz/Comilio-1.0.0/comilio/client.py
import re import requests from . import exceptions __all__ = [ 'Client', 'API_URL', 'CLASSIC', 'SMART', 'SMARTPRO', ] _NUMBER_FORMAT_REGEX = re.compile(r'^\+?[0-9]{4,14}$') API_URL = 'https://api.comilio.it/rest/v1' CLASSIC = 'Classic' SMART = 'Smart' SMARTPRO = 'SmartPro' class Client(obje...
PypiClean
/Office365-REST-Python-Client-2.4.3.tar.gz/Office365-REST-Python-Client-2.4.3/office365/onenote/internal/multipart_page_query.py
from email.message import Message from office365.runtime.compat import get_mime_type, message_as_bytes_or_string from office365.runtime.http.http_method import HttpMethod from office365.runtime.queries.batch import create_boundary from office365.runtime.queries.client_query import ClientQuery def _message_to_payload(...
PypiClean
/Lab_3_Part1-0.0.1-py3-none-any.whl/Lab3-Part1/smul.ipynb
``` import numpy as np from pynq import Overlay import pynq.lib.dma from pynq import Xlnk from pynq import MMIO import time import random ol = Overlay('/home/xilinx/jupyter_notebooks/smul/smul.bit') # check your path ol.download() # it downloads your bit to FPGA dma = ol.streamMul.smul_dma # creating a dma instance...
PypiClean
/EnergyCapSdk-8.2304.4743.tar.gz/EnergyCapSdk-8.2304.4743/energycap/sdk/models/udf_field_child_py3.py
from msrest.serialization import Model class UDFFieldChild(Model): """UDFFieldChild. :param udf_id: <span class='property-internal'>Required (defined)</span> :type udf_id: int :param data_type: :type data_type: ~energycap.sdk.models.DataTypeResponse :param name: <span class='property-inter...
PypiClean
/Electrum-VTC-2.9.3.3.tar.gz/Electrum-VTC-2.9.3.3/gui/vtc/address_list.py
import webbrowser from util import * from electrum_vtc.i18n import _ from electrum_vtc.util import block_explorer_URL, format_satoshis, format_time from electrum_vtc.plugins import run_hook from electrum_vtc.bitcoin import is_address class AddressList(MyTreeWidget): filter_columns = [0, 1, 2] # Address, Label...
PypiClean
/FAIR-Cells-1.0.20.tar.gz/FAIR-Cells-1.0.20/fair-cells/backend/handlers/build_handler.py
import json import os import tempfile import shutil import importlib import yaml from typing import Optional import docker from notebook.base.handlers import IPythonHandler, APIHandler, HTTPError from notebook.utils import url_path_join from pigar.core import parse_packages from ..container.docker_service import Dock...
PypiClean
/Apiamtic_python-1.6.9-py3-none-any.whl/verizon5gmecvnspapi/models/workload.py
from verizon5gmecvnspapi.api_helper import APIHelper from verizon5gmecvnspapi.models.repository import Repository from verizon5gmecvnspapi.models.service_onboarding_helm_git_branch import ServiceOnboardingHelmGitBranch from verizon5gmecvnspapi.models.service_onboarding_helm_git_tag import ServiceOnboardingHelmGitTag fr...
PypiClean
/Mako-1.2.4.tar.gz/Mako-1.2.4/mako/filters.py
import codecs from html.entities import codepoint2name from html.entities import name2codepoint import re from urllib.parse import quote_plus import markupsafe html_escape = markupsafe.escape xml_escapes = { "&": "&amp;", ">": "&gt;", "<": "&lt;", '"': "&#34;", # also &quot; in html-only "'": ...
PypiClean
/Gaussian_and_Binomial_sethhamilton94-0.1.tar.gz/Gaussian_and_Binomial_sethhamilton94-0.1/Gaussian_and_Binomial_sethhamilton94/Binomialdistribution.py
import math import matplotlib.pyplot as plt from .Generaldistribution import Distribution class Binomial(Distribution): """ Binomial distribution class for calculating and visualizing a Binomial distribution. Attributes: mean (float) representing the mean value of the distribution std...
PypiClean
/NearPy-0.2.2.tar.gz/NearPy-0.2.2/nearpy/experiments/distanceratioexperiment.py
# Copyright (c) 2013 Ole Krause-Sparmann # 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,...
PypiClean
/FFC-2017.1.0.tar.gz/FFC-2017.1.0/ffc/codesnippets.py
# Copyright (C) 2007-2016 Anders Logg # # This file is part of FFC. # # FFC is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # #...
PypiClean
/CsuPTMD-1.0.12.tar.gz/CsuPTMD-1.0.12/PTMD/maskrcnn_benchmark/apex/apex/contrib/multihead_attn/fast_self_multihead_attn_func.py
import torch import fast_self_multihead_attn import fast_self_multihead_attn_bias import fast_self_multihead_attn_bias_additive_mask class FastSelfAttnFunc(torch.autograd.Function) : @staticmethod def forward(ctx, use_time_mask, is_training, heads, inputs, input_weights, output_weights, input_biases, output_bi...
PypiClean
/Flask-Scaffold-0.5.1.tar.gz/Flask-Scaffold-0.5.1/app/templates/static/node_modules/angular-grid/src/ts/groupCreator.ts
module awk.grid { export class GroupCreator { private valueService: ValueService; public init(valueService: ValueService) { this.valueService = valueService; } public group(rowNodes: RowNode[], groupedCols: Column[], expandByDefault: any) { var topMostGro...
PypiClean
/FreePyBX-1.0-RC1.tar.gz/FreePyBX-1.0-RC1/freepybx/public/js/dojox/wire/XmlWire.js.uncompressed.js
define("dojox/wire/XmlWire", ["dijit","dojo","dojox","dojo/require!dojox/xml/parser,dojox/wire/Wire"], function(dijit,dojo,dojox){ dojo.provide("dojox.wire.XmlWire"); dojo.require("dojox.xml.parser"); dojo.require("dojox.wire.Wire"); dojo.declare("dojox.wire.XmlWire", dojox.wire.Wire, { // summary: // A Wire for X...
PypiClean
/CheckMyTex-0.10.5.tar.gz/CheckMyTex-0.10.5/checkmytex/finding/proselint.py
import typing import proselint.tools from checkmytex.latex_document import LatexDocument from .abstract_checker import Checker from .problem import Problem _proselint_config = { "max_errors": 5000, "checks": { "airlinese.misc": True, "annotations.misc": True, "archaism.misc": True, ...
PypiClean
/LabExT_pkg-2.2.0.tar.gz/LabExT_pkg-2.2.0/LabExT/SearchForPeak/PeakSearcher.py
import json import logging import os import time from typing import Type import numpy as np from scipy.optimize import curve_fit from LabExT.Measurements.MeasAPI import * from LabExT.Movement.MotorProfiles import trapezoidal_velocity_profile_by_integration from LabExT.Movement.MoverNew import MoverNew from LabExT.Mov...
PypiClean
/Django-Pizza-16.10.1.tar.gz/Django-Pizza-16.10.1/pizza/kitchen_sink/static/ks/ckeditor/plugins/a11yhelp/dialogs/lang/vi.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","vi",{title:"Hướng dẫn trợ năng",contents:"Nội dung Hỗ trợ. Nhấn ESC để đóng hộp thoại.",legend:[{name:"Chung",items:[{name:"Thanh công cụ...
PypiClean
/OGN_Flogger-0.3.2a14.tar.gz/OGN_Flogger-0.3.2a14/src/flogger_OGN_db.py
import string import requests import sqlite3 import time import flogger_settings #import flogger_OGN_db # import unicodedata def ogndb (ognurl, cursor, flarmdb, flarm_data, settings): # #----------------------------------------------------------------- # This function reads the file of Flarm units r...
PypiClean
/LightZero-0.0.1-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl/lzero/model/muzero_model.py
from typing import Optional, Tuple import math import torch import torch.nn as nn from ding.torch_utils import MLP, ResBlock from ding.utils import MODEL_REGISTRY, SequenceType from .common import MZNetworkOutput, RepresentationNetwork, PredictionNetwork from .utils import renormalize, get_params_mean, get_dynamic_me...
PypiClean
/GeoNode-3.2.0-py3-none-any.whl/geonode/static/lib/js/plugins/noneditable/plugin.js
(function () { 'use strict'; var global = tinymce.util.Tools.resolve('tinymce.PluginManager'); var global$1 = tinymce.util.Tools.resolve('tinymce.util.Tools'); var getNonEditableClass = function (editor) { return editor.getParam('noneditable_noneditable_class', 'mceNonEditable'); }; var...
PypiClean
/MFD%20Floods-0.1.14.tar.gz/MFD Floods-0.1.14/bin/gdal_pansharpen.py
import os import os.path import sys from osgeo import gdal def DoesDriverHandleExtension(drv, ext): exts = drv.GetMetadataItem(gdal.DMD_EXTENSIONS) return exts is not None and exts.lower().find(ext.lower()) >= 0 def GetExtension(filename): ext = os.path.splitext(filename)[1] if ext.startswith('.'):...
PypiClean
/Instrumental-lib-0.7.zip/Instrumental-lib-0.7/instrumental/drivers/powermeters/newport.py
import time from . import PowerMeter from .. import Facet, MessageFacet, VisaMixin, deprecated from ..util import visa_timeout_context from ... import Q_, u def _check_visa_support(visa_inst): with visa_timeout_context(visa_inst, 100): try: if int(visa_inst.query('Z?')) in (0, 1): ...
PypiClean
/CAMELS_library-0.3.tar.gz/CAMELS_library-0.3/docs/source/images.rst
****** Images ****** There are two different ways to create images from the simulations: Column density -------------- The first option is to create images by computing the column density along the center of each pixel. The next script computes the column density of the gas temperature as .. math:: \bar{T}(x...
PypiClean
/Klampt-0.9.0-cp36-cp36m-win_amd64.whl/klampt/io/loader.py
from ..robotsim import * from ..math import so3,vectorops from ..model.contact import ContactPoint, Hold from ..model.trajectory import Trajectory,HermiteTrajectory,SO3Trajectory,SE3Trajectory from ..model import types import os import warnings EXTENSION_TO_TYPES = {'.config':['Config'], '.configs':...
PypiClean
/energon_prometheus_exporter_test-0.0.1-py3-none-any.whl/torchdistill-test/torchdistill/core/forward_hook.py
from collections import abc import torch # from torch._six import string_classes from torch.nn.parallel.scatter_gather import gather from torchdistill.common.module_util import check_if_wrapped, get_module def get_device_index(data): if isinstance(data, torch.Tensor): device = data.device return...
PypiClean
/Flask-Clearbit-0.1.0.tar.gz/Flask-Clearbit-0.1.0/flask_clearbit.py
import hashlib import hmac import logging import clearbit import itsdangerous from flask import Response, abort, request, url_for from flask.signals import Namespace from six.moves.http_client import BAD_REQUEST, OK logger = logging.getLogger('Flask-Clearbit') clearbit_result = Namespace().signal('clearbit.resu...
PypiClean
/MESSENGERuvvs-1.11.6.tar.gz/MESSENGERuvvs-1.11.6/docs/LICENSE.rst
******* LICENSE ******* Copyright (c) 2019, Matthew Burger 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 condit...
PypiClean
/0x-web3-5.0.0a5.tar.gz/0x-web3-5.0.0a5/web3/shh.py
from web3._utils.filters import ( ShhFilter, ) from web3.module import ( Module, ) class Shh(Module): @property def version(self): return self.web3.manager.request_blocking("shh_version", []) @property def info(self): return self.web3.manager.request_blocking("shh_info", []) ...
PypiClean
/CocoRPy27-1.4.1.zip/CocoRPy27-1.4.1/Parser.py
from Errors import Errors from CharClass import CharClass from Core import Node from Core import DFA from Core import Graph from Core import Symbol from Core import Tab from Core import Comment from DriverGen import DriverGen from ParserGen import ParserGen import sys from Scanner import Token from Scanner import S...
PypiClean