id
stringlengths
1
265
text
stringlengths
6
5.19M
dataset_id
stringclasses
7 values
/CoSA-0.3.0.tar.gz/CoSA-0.3.0/cosa/analyzers/dispatcher.py
import os import copy import pickle from pysmt.shortcuts import Symbol from cosa.utils.logger import Logger from cosa.analyzers.mcsolver import MCConfig from cosa.analyzers.bmc_safety import BMCSafety from cosa.analyzers.bmc_parametric import BMCParametric from cosa.analyzers.bmc_ltl import BMCLTL from cosa.problem...
PypiClean
/LoProp-0.3.5-py3-none-any.whl/loprop/veloxchem.py
import os import h5py from util.full import Matrix from .core import MolFrag class MolFragVeloxChem(MolFrag): dipole_labels = ('x', 'y', 'z') def __init__(self, tmpdir, **kwargs): super().__init__(tmpdir, **kwargs) # # Veloxchem files # self.interface = kwargs['chec...
PypiClean
/algorithmadts-0.2.1.tar.gz/algorithmadts-0.2.1/README.md
# Algorithm Abstract Data Types Finlay's package for Abstract Data Types written for Algorithmics class ## Installation Run the following command in your terminal: `pip install AlgorithmADTs` AlgorithmADTs can now be imported into your python scripts! I recommend `from AlgorithmADTs import *` to include all functi...
PypiClean
/ocn-xmlchecker.env.tar.gz/env (copy)/lib/python2.7/encodings/cp856.py
"""#" import codecs ### Codec APIs class Codec(codecs.Codec): def encode(self,input,errors='strict'): return codecs.charmap_encode(input,errors,encoding_table) def decode(self,input,errors='strict'): return codecs.charmap_decode(input,errors,decoding_table) class IncrementalEncoder(codecs...
PypiClean
/CsuPTMD-1.0.12.tar.gz/CsuPTMD-1.0.12/PTMD/maskrcnn_benchmark/apex/apex/contrib/sparsity/asp.py
import types import torch from .sparse_masklib import create_mask torchvision_imported=True try: import torchvision except ImportError: print("[ASP][Warning] torchvision cannot be imported.") torchvision_imported=False def eligible_modules(model, whitelist_layer_types, allowed_layer_names, disallowed_laye...
PypiClean
/gcocf-0.10.3.tar.gz/gcocf-0.10.3/.github/ISSUE_TEMPLATE/bug_report.md
--- name: Bug report about: Create a report to help us improve title: 'BUG: ' labels: 'Bug' assignees: 'GILLESMaster, GILLESMaster080' --- **Describe the bug** A clear and concise description of what the bug is. **To Reproduce** Steps to reproduce the behavior: 1. Go to '...' 2. Click on '....' 3. Scroll down to '.....
PypiClean
/Nerium-0.13.1.tar.gz/Nerium-0.13.1/nerium/app.py
from flask import Flask, jsonify, make_response, request, Response from flask_cors import CORS from marshmallow import INCLUDE, Schema, fields from marshmallow.exceptions import ValidationError from nerium import __version__, commit, csv_result, discovery, formatter, query from nerium.auth import require_api_key from ...
PypiClean
/Flask_Admin-1.6.1-py3-none-any.whl/flask_admin/contrib/mongoengine/ajax.py
import mongoengine from flask_admin._compat import string_types, as_unicode, iteritems from flask_admin.model.ajax import AjaxModelLoader, DEFAULT_PAGE_SIZE class QueryAjaxModelLoader(AjaxModelLoader): def __init__(self, name, model, **options): """ Constructor. :param fields: ...
PypiClean
/Notable-0.4.2.tar.gz/Notable-0.4.2/notable/static/lib/underscore.js
(function(){var n=this,t=n._,r={},e=Array.prototype,u=Object.prototype,i=Function.prototype,a=e.push,o=e.slice,c=e.concat,l=u.toString,f=u.hasOwnProperty,s=e.forEach,p=e.map,h=e.reduce,v=e.reduceRight,d=e.filter,g=e.every,m=e.some,y=e.indexOf,b=e.lastIndexOf,x=Array.isArray,_=Object.keys,j=i.bind,w=function(n){return n...
PypiClean
/NESTML-5.3.0-py3-none-any.whl/NESTML-5.3.0.data/data/doc/models_library/noisy_synapse.rst
noisy_synapse ############# noisy_synapse - Static synapse with Gaussian noise Description +++++++++++ Each presynaptic spike is passed to the postsynaptic partner with a weight sampled as :math:`w + A_\text{noise} \mathcal{N}(0, 1)`. Parameters ++++++++++ .. csv-table:: :header: "Name", "Physical unit", "...
PypiClean
/BuildNotify-2.1.0.tar.gz/BuildNotify-2.1.0/buildnotifylib/app_menu.py
import sys import webbrowser from functools import partial from typing import List, Callable from PyQt5 import QtCore from PyQt5.QtGui import QIcon from PyQt5.QtWidgets import QMessageBox, QAction, QMenu, QWidget from buildnotifylib.core.project import Project from buildnotifylib.build_icons import BuildIcons from b...
PypiClean
/MAnorm-1.3.0.tar.gz/MAnorm-1.3.0/manorm/model.py
import numpy as np from sklearn.linear_model import HuberRegressor from manorm.exceptions import ProcessNotReadyError from manorm.region.utils import classify_peaks_by_overlap, merge_common_peaks class MAmodel(object): def __init__(self, peaks1, peaks2, reads1, reads2): self.peaks1 = peaks1 self....
PypiClean
/FreePyBX-1.0-RC1.tar.gz/FreePyBX-1.0-RC1/freepybx/public/js/dojox/widget/FisheyeList.js
define(["dijit","dojo","dojox","dojo/require!dijit/_Widget,dijit/_Templated,dijit/_Container,dijit/_Contained"],function(_1,_2,_3){ _2.provide("dojox.widget.FisheyeList"); _2.require("dijit._Widget"); _2.require("dijit._Templated"); _2.require("dijit._Container"); _2.require("dijit._Contained"); _2.declare("dojox.widge...
PypiClean
/BotEXBotBase-3.1.3.tar.gz/BotEXBotBase-3.1.3/discord/iterators.py
import asyncio import datetime from .errors import NoMoreItems from .utils import time_snowflake, maybe_coroutine from .object import Object from .audit_logs import AuditLogEntry class _AsyncIterator: __slots__ = () def get(self, **attrs): def predicate(elem): for attr, val in attrs.item...
PypiClean
/NREL-jade-0.9.9.tar.gz/NREL-jade-0.9.9/jade/cli/run.py
import logging import os import sys import click from jade.common import OUTPUT_DIR from jade.events import StructuredErrorLogEvent, EVENT_CATEGORY_ERROR, EVENT_NAME_UNHANDLED_ERROR from jade.loggers import log_event, setup_logging, setup_event_logging from jade.jobs.job_post_process import JobPostProcess from jade....
PypiClean
/Authcode-1.6.0-py3-none-any.whl/authcode/auth_authorization_mixin.py
import functools import logging from uuid import uuid4 from ._compat import to_unicode class AuthorizationMixin(object): # Useful for setting a cookie only if the CSRF token has changed. csrf_token_has_changed = False def get_csrf_token(self, session=None): logger = logging.getLogger(__name__) ...
PypiClean
/FastNLP-1.0.1.tar.gz/FastNLP-1.0.1/fastNLP/core/vocabulary.py
r""" .. todo:: doc """ __all__ = [ "Vocabulary", "VocabularyOption", ] from collections import Counter from functools import partial from functools import wraps from typing import List, Callable, Union from fastNLP.core.dataset import DataSet from fastNLP.core.utils.utils import Option from fastNLP.core....
PypiClean
/NeutronImaging-1.2-py3-none-any.whl/neutronimaging/util.py
import os from typing import Generator def in_jupyter() -> bool: """check if current kernel is running as notebook backend""" try: from IPython import get_ipython kernel_name = get_ipython().__class__.__name__ state = True if "ZMQ" in kernel_name else False except NameError: ...
PypiClean
/MaterialDjango-0.2.5.tar.gz/MaterialDjango-0.2.5/materialdjango/static/materialdjango/components/bower_components/web-animations-js/src/keyframe-interpolations.js
(function(shared, scope, testing) { scope.convertEffectInput = function(effectInput) { var keyframes = shared.normalizeKeyframes(effectInput); var propertySpecificKeyframeGroups = makePropertySpecificKeyframeGroups(keyframes); var interpolations = makeInterpolations(propertySpecificKeyframeGroups); ...
PypiClean
/Aestate-1.1.0.tar.gz/Aestate-1.1.0/aestate/work/sql/ProxyOpera.py
from concurrent.futures import ThreadPoolExecutor pool = ThreadPoolExecutor() class DbOperation(object): """ 迁移重要操作到此类 """ def __init__(self, *args, **kwargs): self.args = args self.kwargs = kwargs def start(self, *args, **kwargs): """ 开始任务 Attributes: ...
PypiClean
/OctoBot-Evaluators-1.9.1.tar.gz/OctoBot-Evaluators-1.9.1/octobot_evaluators/evaluators/__init__.py
import octobot_evaluators.enums from octobot_evaluators.evaluators import abstract_evaluator from octobot_evaluators.evaluators.abstract_evaluator import ( AbstractEvaluator, ) from octobot_evaluators.evaluators import evaluator_factory from octobot_evaluators.evaluators import realtime_evaluator from octobot_eval...
PypiClean
/Mezzanine-6.0.0.tar.gz/Mezzanine-6.0.0/mezzanine/blog/management/base.py
from urllib.parse import urlparse from django.contrib.auth import get_user_model from django.contrib.redirects.models import Redirect from django.contrib.sites.models import Site from django.core.management.base import BaseCommand, CommandError from django.utils.encoding import force_str from django.utils.html import ...
PypiClean
/Audit-Alembic-0.1.0.tar.gz/Audit-Alembic-0.1.0/ci/bootstrap.py
from __future__ import absolute_import, print_function, unicode_literals import os import sys from os.path import abspath from os.path import dirname from os.path import exists from os.path import join if __name__ == "__main__": base_path = dirname(dirname(abspath(__file__))) print("Project path: {0}".format...
PypiClean
/Abies-0.0.5.tar.gz/Abies-0.0.5/extern/pybind11/docs/advanced/pycpp/numpy.rst
.. _numpy: NumPy ##### Buffer protocol =============== Python supports an extremely general and convenient approach for exchanging data between plugin libraries. Types can expose a buffer view [#f2]_, which provides fast direct access to the raw internal data representation. Suppose we want to bind the following sim...
PypiClean
/NativDebugging-35.tar.gz/NativDebugging-35/src/DumpBase.py
from abc import ABCMeta, abstractmethod from .Interfaces import ReadError from struct import pack class DumpBase( object ): """ Basic functions to save entier memory snapshot to file """ DUMP_TYPE_NATIV_DEBUGGING = 0 DUMP_TYPE_RAW = 1 @abstractmethod def getMemoryMap(self): """ Return a d...
PypiClean
/ComputeJobRecorder-0.1.1-py3-none-any.whl/ComputeJobRecorder-0.1.1.data/scripts/cjr_record.py
# This file is part of 'compute_job_recorder' # A library for recording compute job progress. # # Copyright 2019 Pete Bunting # # 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...
PypiClean
/Flask-Maple-0.5.6.tar.gz/Flask-Maple-0.5.6/flask_maple/serializer.py
from sqlalchemy import inspect from sqlalchemy.orm.interfaces import (ONETOMANY, MANYTOMANY) from sqlalchemy.types import DateTime, Integer from flask_sqlalchemy import Pagination class Column(object): def __init__(self, model): self.inp = inspect(model) self.columns = self.inp.columns @prope...
PypiClean
/LFake-18.9.0.tar.gz/LFake-18.9.0/lfake/providers/person/es_CL/__init__.py
from collections import OrderedDict from itertools import zip_longest from typing import Dict from ..es import Provider as PersonProvider class Provider(PersonProvider): formats_male = OrderedDict( [ ("{{given_name_male}} {{last_name}} {{last_name}}", 0.55), ("{{first_name_male}} ...
PypiClean
/NREL_osos-0.0.3-py3-none-any.whl/osos/api_github/api_github.py
import re import datetime import numpy as np import pandas as pd import requests import os import logging logger = logging.getLogger(__name__) class Github: """Class to call github api and return osos-formatted usage data.""" BASE_REQ = 'https://api.github.com/repos/{owner}/{repo}' TIME_FORMAT = '%Y-%m...
PypiClean
/Lazy_cleaner-0.0.9.tar.gz/Lazy_cleaner-0.0.9/Lazy_cleaner/Lazy_cleaner.py
import numpy as np import pandas as pd from sklearn.linear_model import LinearRegression from sklearn.ensemble import RandomForestRegressor import statsmodels.formula.api as sm from numpy import inf from scipy import stats import chardet import fuzzywuzzy from fuzzywuzzy import process import seaborn as sns impor...
PypiClean
/Bi_Gau_distributions-0.1.tar.gz/Bi_Gau_distributions-0.1/Bi_Gau_distributions/Gaussiandistribution.py
import math import matplotlib.pyplot as plt from .Generaldistribution import Distribution class Gaussian(Distribution): """ Gaussian distribution class for calculating and visualizing a Gaussian distribution. Attributes: mean (float) representing the mean value of the distribution stdev (float) representing ...
PypiClean
/AyiinXd-0.0.8-cp311-cp311-macosx_10_9_universal2.whl/fipper/methods/messages/wait_for_callback_query.py
import asyncio from typing import Union from functools import partial from fipper import types from fipper.filters import Filter class WaitForCallbackQuery: async def wait_for_callback_query( self, chat_id: Union[int, str], filters: Filter = None, timeout: int = None ) -> "ty...
PypiClean
/Mroylib-1.3.0.tar.gz/Mroylib-1.3.0/qlib/asyn/daemon.py
import os import sys import atexit import signal from functools import partial from termcolor import cprint, colored def daemonize(pidfile, *, stdin='/dev/null', stdout='/dev/null', stderr='/dev/null'): if os.path.exists(pidfile): raise RuntimeError('Already running') #...
PypiClean
/GDM-0.8.2.tar.gz/GDM-0.8.2/gdm/config.py
import os import logging import yorm from . import common from . import shell from .source import Source log = logging.getLogger(__name__) @yorm.attr(all=Source) class Sources(yorm.types.SortedList): """A list of source dependencies.""" @yorm.attr(location=yorm.types.String) @yorm.attr(sources=Sources) @yor...
PypiClean
/LbelDB-0.2.0.tar.gz/LbelDB-0.2.0/README.md
[![Downloads](https://pepy.tech/badge/lbeldb)](https://pepy.tech/project/lbeldb) [![License: Unlicense](https://img.shields.io/badge/license-Unlicense-lightgreen.svg)](http://unlicense.org/) ![version](https://img.shields.io/badge/Version-0.1.1-brightgreen) # LbelDB.py >**A text based no corruption database for pyth...
PypiClean
/BatchQ-0.1-1-pre-alpha.tar.gz/BatchQ-0.1-1-pre-alpha/docs/tutorial_nhup.rst
Tutorial: nohup Remote Submission ================================= In this tutorial we are going to write a submission module using nohup. Actually, we will not use nohup itself as this is a rather unstable application, but instead we will use the bash equivalent ``([command] )`` as this is a much more stable method. ...
PypiClean
/NVDA-addonTemplate-0.5.2.zip/NVDA-addonTemplate-0.5.2/NVDAAddonTemplate/data/{{cookiecutter.project_slug}}/scons-local-2.5.0/SCons/Tool/ldc.py
__revision__ = "src/engine/SCons/Tool/ldc.py rel_2.5.0:3543:937e55cd78f7 2016/04/09 11:29:54 bdbaddog" import os import subprocess import SCons.Action import SCons.Builder import SCons.Defaults import SCons.Scanner.D import SCons.Tool import SCons.Tool.DCommon def generate(env): static_obj, shared_obj = SCons...
PypiClean
/Axelrod-4.13.0.tar.gz/Axelrod-4.13.0/README.rst
.. image:: https://img.shields.io/pypi/v/Axelrod.svg :target: https://pypi.python.org/pypi/Axelrod .. image:: https://zenodo.org/badge/19509/Axelrod-Python/Axelrod.svg :target: https://zenodo.org/badge/latestdoi/19509/Axelrod-Python/Axelrod .. image:: https://github.com/Axelrod-Python/Axelrod/workflows/CI/bad...
PypiClean
/Fortpy-1.7.7.tar.gz/Fortpy-1.7.7/fortpy/templates/ftypes.py
import weakref from numpy import require, array, asanyarray, dtype as _dtype from numpy.ctypeslib import ndpointer, as_array as farray from ctypes import (c_int, c_double, POINTER, c_bool, c_float, c_short, c_long, byref, c_void_p, addressof) c_int_p = POINTER(c_int) c_double_p = POINTER(c_double) c...
PypiClean
/Becky-0.7.tar.gz/Becky-0.7/becky_cli/run.py
import argparse import sys from becky_cli.becky.backups.backup_manager import BackupManager def add_add_params(parser): subparsers = parser.add_subparsers(help='What to add', dest='action_add', required=True) location_parser = subparsers.add_parser('location') location_parser.add_argument('--path', requi...
PypiClean
/AWAKE_ANALYSIS_TOOLS-0.0.2-py3-none-any.whl/japc_support/AwkCmra.py
import numpy as np import pyjapc import os import sys os.environ['AAT'] = '/user/awakeop/AWAKE_ANALYSIS_TOOLS/' #os.environ['AAT'] = '/afs/cern.ch/user/s/sgess/AWAKE_ANALYSIS_TOOLS/' sys.path.append(os.environ['AAT']+'analyses/') import frame_analysis as fa ''' Class for AWAKE Camera Properties ''' class AwakeCamera(...
PypiClean
/CsuPMTD-1.0.27.tar.gz/CsuPMTD-1.0.27/PMTD/maskrcnn_benchmark/modeling/roi_heads/keypoint_head/loss.py
import torch from torch.nn import functional as F from PMTD.maskrcnn_benchmark.modeling.matcher import Matcher from PMTD.maskrcnn_benchmark.modeling.balanced_positive_negative_sampler import ( BalancedPositiveNegativeSampler, ) from PMTD.maskrcnn_benchmark.structures.boxlist_ops import boxlist_iou from PMTD.maskr...
PypiClean
/DACBench-0.2.0.tar.gz/DACBench-0.2.0/dacbench/envs/fast_downward.py
import os import socket import subprocess import time import typing from copy import deepcopy from enum import Enum from os import remove from os.path import join as joinpath import numpy as np from dacbench import AbstractEnv class StateType(Enum): """Class to define numbers for state types""" RAW = 1 ...
PypiClean
/GLAM-0.3.7-py3-none-any.whl/glam/matching/fuzzy/_predict.py
from rapidfuzz import fuzz, process import numpy as np import pandas as pd from tqdm import tqdm import gc def lookup_addresses(addresses,linz,speed_performance_balance = 0): weights = { 'unit_value_score' : 1, 'address_number_score' : 80, 'address_number_suffix_score' : 1, 'address_number_high_...
PypiClean
/HammerTime-http-0.9.1.tar.gz/HammerTime-http-0.9.1/hammertime/rules/redirects.py
import re from copy import copy from uuid import uuid4 from difflib import SequenceMatcher from urllib.parse import urljoin, urlparse from hammertime.http import Entry from hammertime.ruleset import RejectRequest valid_redirects = (301, 302, 303, 307, 308) class FollowRedirects: def __init__(self, *, max_re...
PypiClean
/Decision_tree_zrq-0.0.2.tar.gz/Decision_tree_zrq-0.0.2/neupy_core_model_api_src/chiMerge.py
from time import ctime import pymysql import pandas as pd import numpy as np import math import matplotlib as mpl import threading import multiprocessing from sklearn import preprocessing from sklearn.linear_model import LogisticRegression # from jilincode.chiMerge import chiMerge #from zrq import chiMerge from time i...
PypiClean
/COMPAS-1.17.5.tar.gz/COMPAS-1.17.5/src/compas/artists/volmeshartist.py
from __future__ import print_function from __future__ import absolute_import from __future__ import division from abc import abstractmethod from compas.colors import Color from .artist import Artist from .colordict import ColorDict class VolMeshArtist(Artist): """Artist for drawing volmesh data structures. ...
PypiClean
/GailBot-0.2a0-py3-none-any.whl/gailbot/core/engines/exception.py
class ConnectionError(Exception): def __str__(self) -> str: return "ERROR 404: STT Connection Error" class TranscriptionError(Exception): def __init__(self, error: str = None) -> None: super().__init__(error) self.error = error def __str__(self) -> str: return f"ERROR 500:...
PypiClean
/NetTraRec-0.1.12-py3-none-any.whl/NetRecorder/NetTraRecServer.py
import os from argparse import ArgumentParser, RawTextHelpFormatter from NetRecorder.gear_for_nr import tell_the_datetime def record_starter_server(): dp = ' 这是一个查看或者返回服务器流量信息的工具,以服务的方式启动,默认使用推 redis 的方式,单位为 bytes/m\n' \ ' https://github.com/ga1008/net_tracfic_recorder' da = "" parser = Ar...
PypiClean
/BibReview-0.2.4.tar.bz2/BibReview-0.2.4/command_line.py
# BibReview # Copyright (C) 2012 Jean-Baptiste LAMY (jibalamy at free . fr) # BibReview is developped by Jean-Baptiste LAMY, at LIM&BIO, # UFR SMBH, Université Paris 13, Sorbonne Paris Cité. # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License a...
PypiClean
/Bugzilla-ETL-0.3.13353.zip/Bugzilla-ETL-0.3.13353/bzETL/util/files.py
import codecs from datetime import datetime import io import os import shutil from .struct import listwrap, nvl from .cnv import CNV class File(object): def __init__(self, filename, buffering=2 ** 14): if filename == None: from .logs import Log Log.error("File must be given a fi...
PypiClean
/Electrum-CHI-3.3.8.tar.gz/Electrum-CHI-3.3.8/packages/setuptools/_vendor/packaging/requirements.py
from __future__ import absolute_import, division, print_function import string import re from setuptools.extern.pyparsing import stringStart, stringEnd, originalTextFor, ParseException from setuptools.extern.pyparsing import ZeroOrMore, Word, Optional, Regex, Combine from setuptools.extern.pyparsing import Literal as...
PypiClean
/NREL-rex-0.2.84.tar.gz/NREL-rex-0.2.84/rex/utilities/downscale.py
import numpy as np import pandas as pd import logging from rex.utilities.solar_position import SolarPosition from rex.utilities.utilities import get_lat_lon_cols, pd_date_range from nsrdb.all_sky import CLEAR_TYPES from nsrdb.all_sky.all_sky import all_sky from nsrdb.utilities.interpolation import temporal_lin, tempo...
PypiClean
/DobbyStock-0.1.tar.gz/DobbyStock-0.1/step2- test files/Test_Stock_Main.py
import unittest from main_package.Stock_main import * class TestStock(unittest.TestCase): # test class @classmethod def setUpClass(cls): print('setupClass') def setUp(self): print('Set up') def test_high_price(self): self.high_price_list = [20...
PypiClean
/APIConnect-2.0.3-py3-none-any.whl/feed/feed.py
from cgitb import Hook import json import logging import socket from threading import Thread from time import sleep from typing import Any, Callable from constants.streaming_constants import StreamingConstants LOGGER = logging.getLogger(__name__) class Feed: def __init__(self, confObj): self.__conf = co...
PypiClean
/ArgotToo-1.0.tar.gz/ArgotToo-1.0/argotToo.py
import sys from collections import defaultdict from math import log from math import log10 import numpy ## Function to read in the BLAST file provided by the user def readBlast(blastFilePath): protGoDicBLAST = defaultdict(dict) ## Dictionary in a dictionary, holding for each [protein] and [goTerm] the sseqid, qseqid...
PypiClean
/IERNA-1.0.0-py3-none-any.whl/era/View/edit_template_top_level.py
from tkinter import DISABLED, NORMAL,filedialog, messagebox import tkinter import customtkinter from era.Database.Model.emailTemplateModel import EmailTemplateModel from era.Database.Repository.databaseRepository import GetDBRepositorySingletion from era.Logger.logger import Logger from era.Utility.ConfigUtility impor...
PypiClean
/Muntjac-1.1.2.tar.gz/Muntjac-1.1.2/muntjac/event/action_manager.py
from muntjac.event import action from muntjac.terminal.key_mapper import KeyMapper from muntjac.event.shortcut_action import ShortcutAction class ActionManager(action.IHandler, action.INotifier): #action.IContainer """Notes: Empties the keymapper for each repaint to avoid leaks; can cause problems in ...
PypiClean
/ETLT-0.9.6.tar.gz/ETLT-0.9.6/etlt/dimension/RegularDimension.py
import abc class RegularDimension(metaclass=abc.ABCMeta): """ Abstract parent class for translating natural key to a technical key of a regular dimension. """ # ------------------------------------------------------------------------------------------------------------------ def __init__(self): ...
PypiClean
/Fattoush-0.4.0.tar.gz/Fattoush-0.4.0/src/fattoush/config/config_group.py
import copy import json import multiprocessing import urlparse from os import environ, path from jsonschema import validate from fattoush import namespace, util from fattoush.config import config, deprecated from fattoush.runner.parsing import parse_args class FattoushConfigGroup(object): schema = { "$...
PypiClean
/DJModels-0.0.6-py3-none-any.whl/djmodels/utils/dateparse.py
# We're using regular expressions rather than time.strptime because: # - They provide both validation and parsing. # - They're more flexible for datetimes. # - The date/datetime/time constructors produce friendlier error messages. import datetime import re from djmodels.utils.timezone import get_fixed_timezone, utc ...
PypiClean
/Flask-XML-RPC-Re-0.1.4.tar.gz/Flask-XML-RPC-Re-0.1.4/flask_xmlrpcre/xmlrpcre.py
from flask import request, current_app import sys if sys.version_info[0] == 2: from SimpleXMLRPCServer import SimpleXMLRPCDispatcher as Dispatcher import xmlrpclib string_types = basestring else: from xmlrpc.server import SimpleXMLRPCDispatcher as Dispatcher import xmlrpc.client as xmlrpclib st...
PypiClean
/MetaCalls-0.0.5-cp310-cp310-manylinux2014_x86_64.whl/metacalls/node_modules/typescript/lib/lib.dom.iterable.d.ts
///////////////////////////// /// Window Iterable APIs ///////////////////////////// interface AudioParam { setValueCurveAtTime(values: Iterable<number>, startTime: number, duration: number): AudioParam; } interface AudioParamMap extends ReadonlyMap<string, AudioParam> { } interface BaseAudioContext { crea...
PypiClean
/DI_engine-0.4.9-py3-none-any.whl/ding/example/sqil_continuous.py
from ditk import logging import torch from ding.model import QAC from ding.policy import SQILSACPolicy from ding.envs import BaseEnvManagerV2 from ding.data import DequeBuffer from ding.config import compile_config from ding.framework import task from ding.framework.context import OnlineRLContext from ding.framework.mi...
PypiClean
/GeoNode-3.2.0-py3-none-any.whl/geonode/static/geonode/js/ol-2.13/lib/OpenLayers/Lang/br.js
* @requires OpenLayers/Lang.js */ /** * Namespace: OpenLayers.Lang["br"] * Dictionary for Brezhoneg. Keys for entries are used in calls to * <OpenLayers.Lang.translate>. Entry bodies are normal strings or * strings formatted for use with <OpenLayers.String.format> calls. */ OpenLayers.Lang["br"] = Ope...
PypiClean
/KratosSwimmingDEMApplication-9.2.0-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl/KratosMultiphysics/SwimmingDEMApplication/GentleInjectionAndErasureTestFactory.py
import os # This factory encodes to different tests consisting in a cubic domain of fluid # with a few particles submerged in it. # The first test involves a DEM inlet and it checks that the 'gentle' injection of # particles improves the convergence of the fluid solver. In this case the bounding # box (which is respo...
PypiClean
/FlaskCms-0.0.4.tar.gz/FlaskCms-0.0.4/flask_cms/static/js/ckeditor/lang/ku.js
/* Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.lang['ku']={"dir":"rtl","editor":"سەرنووسەی دەقی بە پیت","common":{"editorHelp":"کلیکی ALT لەگەڵ 0 بکه بۆ یارمەتی","browseServer":"هێنانی ڕاژە","url":"ناونیشانی بەست...
PypiClean
/GB2260-v2-0.2.1.tar.gz/GB2260-v2-0.2.1/gb2260_v2/data/curated/revision_201508.py
from __future__ import unicode_literals name = '201508' division_schema = { '110000': '北京市', '110101': '东城区', '110102': '西城区', '110105': '朝阳区', '110106': '丰台区', '110107': '石景山区', '110108': '海淀区', '110109': '门头沟区', '110111': '房山区', '110112': '通州区', '110113': '顺义区', '11011...
PypiClean
/ForcastingModels-0.0.1.tar.gz/ForcastingModels-0.0.1/Models/Multistep_Models.py
from numpy import array from keras.models import Sequential from keras.layers import Dense, Flatten, LSTM, TimeDistributed, RepeatVector from keras.layers.convolutional import Conv1D from keras.layers.convolutional import MaxPooling1D class Singleton(type): _instances = {} def __call__(cls, *args, **kwargs):...
PypiClean
/EISeg-1.1.1-py3-none-any.whl/eiseg/widget/create.py
from qtpy.QtWidgets import QDockWidget from qtpy import QtCore, QtGui, QtWidgets from qtpy.QtCore import Qt ## 创建文本 def create_text(parent, text_name=None, text_text=None): text = QtWidgets.QLabel(parent) if text_name is not None: text.setObjectName(text_name) if text_text is not None: te...
PypiClean
/AIS2.py-2.2.1.tar.gz/AIS2.py-2.2.1/README.rst
AIS2.py ======= .. image:: https://img.shields.io/pypi/v/AIS2.py.svg :target: https://pypi.org/project/AIS2.py :alt: PyPI version .. image:: https://img.shields.io/pypi/pyversions/AIS2.py.svg :target: https://pypi.org/project/AIS2.py :alt: Python versions .. image:: https://github.com/seantis/AIS2.py...
PypiClean
/DLTA-AI-1.1.tar.gz/DLTA-AI-1.1/DLTA_AI_app/mmdetection/configs/grid_rcnn/grid_rcnn_r50_fpn_gn-head_2x_coco.py
_base_ = [ '../_base_/datasets/coco_detection.py', '../_base_/default_runtime.py' ] # model settings model = dict( type='GridRCNN', backbone=dict( type='ResNet', depth=50, num_stages=4, out_indices=(0, 1, 2, 3), frozen_stages=1, norm_cfg=dict(type='BN', requir...
PypiClean
/BEAT_Guang-1.0.1-py3-none-any.whl/econml/dml/causal_forest.py
from warnings import warn import numpy as np from sklearn.linear_model import LogisticRegressionCV from sklearn.base import clone, BaseEstimator from sklearn.preprocessing import FunctionTransformer from sklearn.pipeline import Pipeline from sklearn.model_selection import train_test_split from itertools import produc...
PypiClean
/MediaCurator-0.0.10.tar.gz/MediaCurator-0.0.10/README.md
# MediaCurator MediaCurator is a Python command line tool to manage a media database. * List all the video’s and their information with or without filters * Batch find and repair/convert videos with encoding errors * Batch recode videos to more modern codecs (x265 / AV1) based on filters: extentions, codecs, resoluti...
PypiClean
/COMPAS-1.17.5.tar.gz/COMPAS-1.17.5/src/compas/numerical/dr/dr.py
from __future__ import absolute_import from __future__ import division from __future__ import print_function from copy import deepcopy from math import sqrt __all__ = ["dr"] K = [ [0.0], [0.5, 0.5], [0.5, 0.0, 0.5], [1.0, 0.0, 0.0, 1.0], ] class Coeff: def __init__(self, c): self.c = c...
PypiClean
/ChemGAPP-0.0.9-py3-none-any.whl/ChemGAPP_Package/ChemGAPP_Big/Cosine_Similarity.py
# In[ ]: import argparse import pandas as pd import random from scipy import spatial import re import seaborn as sns import matplotlib.pyplot as plt import matplotlib.patches as mpatches from sklearn.metrics import auc import numpy as np import os import itertools as it def get_options(): parser = argparse.Argum...
PypiClean
/ESMValTool-2.9.0-py3-none-any.whl/esmvaltool/cmorizers/data/formatters/datasets/landschuetzer2020.py
import logging import warnings from datetime import datetime from pathlib import Path import iris from cf_units import Unit from dask import array as da from iris import NameConstraint from iris.coords import CellMethod, DimCoord from esmvaltool.cmorizers.data import utilities as utils logger = logging.getLogger(__n...
PypiClean
/ApiLogicServer-9.2.18-py3-none-any.whl/api_logic_server_cli/create_from_model/safrs-react-admin-npm-build/static/js/2909.28b39275.chunk.js
"use strict";(self.webpackChunkreact_admin_upgrade=self.webpackChunkreact_admin_upgrade||[]).push([[2909],{72909:function(e,t,p){p.r(t),p.d(t,{conf:function(){return n},language:function(){return i}});var n={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\#\%\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g,comments:{lin...
PypiClean
/OASYS1-shadow4-0.0.10.tar.gz/OASYS1-shadow4-0.0.10/orangecontrib/shadow4/widgets/optics/ow_crl.py
from orangewidget.settings import Setting from oasys.widgets import gui as oasysgui from syned.beamline.shape import Circle from shadow4.beamline.optical_elements.refractors.s4_crl import S4CRL, S4CRLElement from orangecontrib.shadow4.widgets.gui.ow_abstract_lens import OWAbstractLens class OWCRL(OWAbstractLens): ...
PypiClean
/DoggoMenus-1.0.3-py3-none-any.whl/doggomenus/selection.py
from .errors import NotEnoughItemsError, InvalidCommandType from .command import Command from getch import getch import sys import os import shutil class SelectionMenu: def __init__(self, *items, **kwargs): if kwargs.get("cmd_list"): self.items = kwargs.get("cmd_list") else: ...
PypiClean
/BitBucket-0.4a.tar.gz/BitBucket-0.4a/bitbucket.py
import md5 import s3amazon.S3 import httplib import urllib import ConfigParser import os import string import mimetypes import xml.sax import pdb # # Canned Access Policies # _canned_access_policies = ('private', 'public-read', 'public-read-write', 'authenticated-read') # # Dictionary mappin...
PypiClean
/ORE_strhub-0.0.1-py3-none-any.whl/strhub/models/trba/prediction.py
import torch import torch.nn as nn import torch.nn.functional as F class Attention(nn.Module): def __init__(self, input_size, hidden_size, num_class, num_char_embeddings=256): super().__init__() self.attention_cell = AttentionCell(input_size, hidden_size, num_char_embeddings) self.hidden_...
PypiClean
/Booktype-1.5.tar.gz/Booktype-1.5/lib/booki/site_static/js/tiny_mce/plugins/table/editor_plugin.js
(function(d){var e=d.each;function c(g,h){var j=h.ownerDocument,f=j.createRange(),k;f.setStartBefore(h);f.setEnd(g.endContainer,g.endOffset);k=j.createElement("body");k.appendChild(f.cloneContents());return k.innerHTML.replace(/<(br|img|object|embed|input|textarea)[^>]*>/gi,"-").replace(/<[^>]+>/g,"").length==0}functio...
PypiClean
/DXR-1.9.4.tar.gz/DXR-1.9.4/Dxr_grpc/Datas_pb2_grpc.py
"""Client and server classes corresponding to protobuf-defined services.""" import grpc from . import Datas_pb2 as Datas__pb2 class MainServerStub(object): """server """ def __init__(self, channel): """Constructor. Args: channel: A grpc.Channel. """ self.getS...
PypiClean
/Electrum-VTC-2.9.3.3.tar.gz/Electrum-VTC-2.9.3.3/gui/qt/history_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.util import timestamp_to_datetime, profiler TX_ICONS = [ "warning.png", "warning.png", "warning...
PypiClean
/MathCake-0.0.1a3.tar.gz/MathCake-0.0.1a3/cake/core/surd.py
from math import sqrt import math import typing from .number import Number from .types.float import Float from cake.abc import IntegerType from cake.helpers import convert_type __all__ = ("get_perfect_square", "_rationalise", "Surd") def get_perfect_square( limit: int, *, increment: typing.Optional[int...
PypiClean
/KL_Audit_supportV2.2-1.0-py3-none-any.whl/AuditModule/util/LoggerUtil.py
from collections import OrderedDict from logging import Formatter, FileHandler, StreamHandler, getLogger, INFO from json import loads, dumps def logger(name, handler, recordfields=None, level=INFO): """ returns logger object with logging level set and handlers added :param name: logger name :param han...
PypiClean
/Flootty-3.3.0-py3-none-any.whl/flootty/floo/common/handlers/floo_handler.py
import os import sys import time import hashlib import base64 import collections from functools import reduce from operator import attrgetter try: from . import base from ..reactor import reactor from ..lib import DMP from .. import msg, ignore, repo, shared as G, utils from ..exc_fmt import str_e ...
PypiClean
/CCC-2.0.1.tar.gz/CCC-2.0.1/ccc/commonregex.py
import re date = re.compile( u'(?:(?<!\:)(?<!\:\d)[0-3]?\d(?:st|nd|rd|th)?\s+(?:of\s+)?(?:jan\.?|january|feb\.?|february|mar\.?|march|apr\.?|april|may|jun\.?|june|jul\.?|july|aug\.?|august|sep\.?|september|oct\.?|october|nov\.?|november|dec\.?|december)|(?:jan\.?|january|feb\.?|february|mar\.?|march|apr\.?|april|m...
PypiClean
/Cubane-1.0.11.tar.gz/Cubane-1.0.11/cubane/backend/static/cubane/backend/tinymce/js/tinymce/plugins/help/plugin.min.js
!function(){"use strict";var e,t,n,r,o,a,i=tinymce.util.Tools.resolve("tinymce.PluginManager"),u=function(e){return function(){return e}},c={noop:function(){},noarg:function(e){return function(){return e()}},compose:function(e,t){return function(){return e(t.apply(null,arguments))}},constant:u,identity:function(e){retu...
PypiClean
/Bottleneck-1.3.7rc1-cp36-cp36m-macosx_10_9_x86_64.whl/bottleneck/slow/move.py
"Alternative methods of calculating moving window statistics." import warnings import numpy as np __all__ = [ "move_sum", "move_mean", "move_std", "move_var", "move_min", "move_max", "move_argmin", "move_argmax", "move_median", "move_rank", ] def move_sum(a, window, min_coun...
PypiClean
/Attention_and_Transformers-0.0.15-py3-none-any.whl/Attention_and_Transformers/MobileViT_v1/mobile_vit_v1.py
from dataclasses import dataclass from tensorflow.keras import Model, Input from tensorflow.keras.layers import GlobalAveragePooling2D, Dropout, Dense from .BaseLayers import ConvLayer, InvertedResidualBlock from .mobile_vit_v1_block import MobileViT_v1_Block def MobileViT_v1( out_channels: list, expansion_...
PypiClean
/NESTML-5.3.0-py3-none-any.whl/NESTML-5.3.0.data/data/doc/models_library/static.rst
static ###### Static synapse Description +++++++++++ A synapse where the synaptic strength (weight) does not evolve with simulated time, but is defined as a (constant) parameter. Parameters ++++++++++ .. csv-table:: :header: "Name", "Physical unit", "Default value", "Description" :widths: auto ...
PypiClean
/ENCODEQueryTools-0.1.1.tar.gz/ENCODEQueryTools-0.1.1/docs/html/README.html
<!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"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>About ENCODEQueryTools &mdash; ENCODEQueryTools 0.1...
PypiClean
/IdracRedfishSupportTest-0.0.7.tar.gz/IdracRedfishSupportTest-0.0.7/VirtualDiskExpansionREDFISH.py
import argparse import getpass import json import logging import re import requests import sys import time import warnings from datetime import datetime from pprint import pprint warnings.filterwarnings("ignore") parser=argparse.ArgumentParser(description="Python script using Redfish API with OEM extension to expan...
PypiClean
/EasyModels-1.6.2-py3-none-any.whl/easymodels/utils/gui.py
import PySimpleGUIQt as g import sys from easymodels.utils import Categories from webbrowser import open_new_tab class GUI: def category_to_layout(category_info): titles = [] links = [] frameworks = [] col1 = [] col2 = [] count = 0 for model in category...
PypiClean
/AmFast-0.5.3-r541.tar.gz/AmFast-0.5.3-r541/ez_setup.py
import sys DEFAULT_VERSION = "0.6c9" DEFAULT_URL = "http://pypi.python.org/packages/%s/s/setuptools/" % sys.version[:3] md5_data = { 'setuptools-0.6b1-py2.3.egg': '8822caf901250d848b996b7f25c6e6ca', 'setuptools-0.6b1-py2.4.egg': 'b79a8a403e4502fbb85ee3f1941735cb', 'setuptools-0.6b2-py2.3.egg': '5657759...
PypiClean
/ACME%20oneM2M%20CSE-0.3.0.tar.gz/ACME oneM2M CSE-0.3.0/acme/HttpServer.py
from flask import Flask, request, make_response import flask from Configuration import Configuration from Constants import Constants as C import CSE, Utils from Logging import Logging, RedirectHandler from resources.Resource import Resource import json, requests, logging, os from werkzeug.serving import WSGIRequestHan...
PypiClean
/Flask-BasicAuth-0.2.0.tar.gz/Flask-BasicAuth-0.2.0/flask_basicauth.py
import base64 from functools import wraps from flask import current_app, request, Response __version__ = '0.2.0' class BasicAuth(object): """ A Flask extension for adding HTTP basic access authentication to the application. :param app: a :class:`~flask.Flask` instance. Defaults to `None`. If no ...
PypiClean
/Djblets-3.3.tar.gz/Djblets-3.3/docs/releasenotes/0.10-beta-1.rst
.. default-intersphinx:: django1.6 djblets1.0 ================================= Djblets 0.10 Beta 1 Release Notes ================================= **Release date**: March 29, 2017 This release contains all bug fixes and features found in Djblets version :doc:`0.9.6 <0.9.6>`. Installation ============ To install...
PypiClean