id
stringlengths
1
265
text
stringlengths
6
5.19M
dataset_id
stringclasses
7 values
/ChessAnalysisPipeline-0.0.11-py3-none-any.whl/CHAP/tomo/processor.py
# System modules from os import mkdir from os import path as os_path from sys import exit as sys_exit from time import time # Third party modules import numpy as np # Local modules from CHAP.utils.general import ( is_num, input_int, input_num, input_yesno, select_image_bounds, select_one_image...
PypiClean
/INGInious-0.8.7.tar.gz/INGInious-0.8.7/inginious/frontend/courses.py
import copy import gettext import re from typing import List from collections import OrderedDict from inginious.common.tags import Tag from inginious.frontend.accessible_time import AccessibleTime from inginious.frontend.parsable_text import ParsableText from inginious.frontend.user_manager import UserInfo from ingini...
PypiClean
/Beat_ML1-0.13.1.tar.gz/Beat_ML1-0.13.1/econml/utilities.py
import numpy as np import pandas as pd import scipy.sparse import sparse as sp import itertools import inspect from operator import getitem from collections import defaultdict, Counter from sklearn import clone from sklearn.base import TransformerMixin, BaseEstimator from sklearn.linear_model import LassoCV, MultiTaskL...
PypiClean
/DLite_Python-0.4.0-cp38-cp38-manylinux_2_12_i686.manylinux2010_i686.whl/dlite/__init__.py
import sys import os from pathlib import Path __version__ = "0.4.0" try: import conda del conda except: is_conda_base = False is_conda = os.path.exists(os.path.join(sys.prefix, 'conda-meta')) else: assert os.path.exists(os.path.join(sys.prefix, 'conda-meta')) is_conda_base = True is_conda ...
PypiClean
/Apppath-1.0.3.tar.gz/Apppath-1.0.3/SECURITY.md
# Security Policy ## Supported Versions Use this section to tell people about which versions of your project are currently being supported with security updates. | Version | Supported | | ------- | ------------------ | | 5.1.x | :white_check_mark: | | 5.0.x | :x: | | 4.0.x | :white_chec...
PypiClean
/Kadabra-0.5.0.tar.gz/Kadabra-0.5.0/docs/sending.rst
.. _sending: Sending Metrics =============== This section describes channels in more detail, including the philosophy behind them and how they work internally. You won't need to use channels directly; rather you will configure one when you initialize your :class:`~kadabra.Kadabra` and :class:`~kadabra.Agent` (and us...
PypiClean
/Impression-CMS-0.2.0.tar.gz/Impression-CMS-0.2.0/impression/themes/admin/static/js/plugins/flot/excanvas.min.js
if(!document.createElement("canvas").getContext){(function(){var z=Math;var K=z.round;var J=z.sin;var U=z.cos;var b=z.abs;var k=z.sqrt;var D=10;var F=D/2;function T(){return this.context_||(this.context_=new W(this))}var O=Array.prototype.slice;function G(i,j,m){var Z=O.call(arguments,2);return function(){return i.appl...
PypiClean
/CubeLang-0.1.4-py3-none-any.whl/libcube/cube.py
from typing import Tuple, Dict, List, Generic, TypeVar, Iterator, Optional from .orientation import Side, Color, Orientation from .sides import CubeSide, ICubeSide, CubeSideView from .pattern import Pattern T = TypeVar("T") def shift_list(list: List[T], amount: int = 1) -> List[T]: return list[amount:] + list[:a...
PypiClean
/LabExT_pkg-2.2.0.tar.gz/LabExT_pkg-2.2.0/LabExT/View/MeasurementTable.py
import logging from tkinter import Tk, messagebox, Toplevel, Label from LabExT.Experiments.StandardExperiment import calc_measurement_key from LabExT.View.CommentsEditor import CommentsEditor from LabExT.View.Controls.CustomFrame import CustomFrame from LabExT.View.Controls.CustomTtkWidgets import CustomScrollbar, Cus...
PypiClean
/KratosFluidDynamicsApplication-9.4-cp38-cp38-win_amd64.whl/KratosMultiphysics/FluidDynamicsApplication/stokes_solver_monolithic.py
import KratosMultiphysics import KratosMultiphysics.FluidDynamicsApplication # Import base class file from KratosMultiphysics.FluidDynamicsApplication.navier_stokes_solver_vmsmonolithic import StabilizedFormulation from KratosMultiphysics.FluidDynamicsApplication.navier_stokes_solver_vmsmonolithic import NavierStokesS...
PypiClean
/DeepPhysX.Sofa-22.12.1.tar.gz/DeepPhysX.Sofa-22.12.1/examples/demos/Beam/FC/dataset.py
import os import sys # DeepPhysX related imports from DeepPhysX.Core.Pipelines.BaseDataGeneration import BaseDataGeneration from DeepPhysX.Core.Database.BaseDatabaseConfig import BaseDatabaseConfig from DeepPhysX.Sofa.Environment.SofaEnvironmentConfig import SofaEnvironmentConfig # Session related imports from Enviro...
PypiClean
/Muntjac-1.1.2.tar.gz/Muntjac-1.1.2/muntjac/data/validators/string_length_validator.py
from muntjac.data.validators.abstract_validator import AbstractValidator class StringLengthValidator(AbstractValidator): """This StringLengthValidator is used to validate the length of strings. @author: Vaadin Ltd. @author: Richard Lincoln @version: 1.1.2 """ def __init__(self, errorMessage,...
PypiClean
/Mathics_Django-6.0.0-py3-none-any.whl/mathics_django/web/media/js/mathjax/jax/output/SVG/fonts/STIX-Web/Main/Bold/Main.js
MathJax.OutputJax.SVG.FONTDATA.FONTS["STIXMathJax_Main-bold"]={directory:"Main/Bold",family:"STIXMathJax_Main",weight:"bold",id:"STIXWEBMAINB",32:[0,0,250,0,0,""],33:[691,13,333,81,251,"181 234h-31c-13 124 -22 171 -51 266c-14 45 -18 65 -18 91c0 63 30 100 84 100c50 0 85 -37 85 -102c0 -23 -4 -45 -18 -89c-29 -96 -38 -143 ...
PypiClean
/AnechoDB_Access-1.01.zip/AnechoDB_Access-1.0/share_belen/connection.py
import numpy as np import requests import json import os import tempfile import h5py class Connection: ''' Class used for the comunication with the database to find and retrieve beams stored in it. ''' def __init__(self, host): ''' Put the host of the database. ''' sel...
PypiClean
/Buycoins%20Python%20SDK-0.0.1.tar.gz/Buycoins Python SDK-0.0.1/buycoins_sdk/commons/gql_fields.py
from .enums import * type_to_field = { BuycoinsType.ACCOUNT: """ id cryptocurrency confirmedBalance """, BuycoinsType.BANK_ACCOUNT: """ id accountName accountNumber accountReference accountType bankName """, BuycoinsType.POS...
PypiClean
/MaterialDjango-0.2.5.tar.gz/MaterialDjango-0.2.5/materialdjango/static/materialdjango/components/bower_components/prism/components/prism-textile.js
(function(Prism) { // We don't allow for pipes inside parentheses // to not break table pattern |(. foo |). bar | var modifierRegex = '(?:\\([^|)]+\\)|\\[[^\\]]+\\]|\\{[^}]+\\})+'; var modifierTokens = { 'css': { pattern: /\{[^}]+\}/, inside: { rest: Prism.languages.css } }, 'class-id': { patt...
PypiClean
/Flask_AppBuilder-4.3.6-py3-none-any.whl/flask_appbuilder/baseviews.py
from datetime import date, datetime from inspect import isclass import json import logging import re from typing import List, Optional, TYPE_CHECKING from flask import ( abort, Blueprint, current_app, flash, render_template, request, session, url_for, ) from ._compat import as_unicode ...
PypiClean
/DjangoRangeMiddleware-1.0.1-py3-none-any.whl/DjangoRangeMiddleware-1.0.1.dist-info/LICENSE.md
The MIT License (MIT) Copyright (c) 2021 Quack Coding 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, pub...
PypiClean
/DjAIoT-23.6.21.1.tar.gz/DjAIoT-23.6.21.1/src/djaiot/device_health/queries/queries.py
from django_model_query_graphs import PK_FIELD_NAME, ModelQueryGraph from ..data.queries import \ MACHINE_CLASS_FULL_QUERY_GRAPH, \ MACHINE_CLASS_STR_UNORDERED_QUERY_GRAPH, \ MACHINE_DATA_STREAM_FULL_QUERY_GRAPH, \ MACHINE_DATA_STREAM_STR_UNORDERED_QUERY_GRAPH, \ MACHINE_DATA_STREAM_NAME_ONLY_QUERY...
PypiClean
/netket-3.9.2.tar.gz/netket-3.9.2/netket/operator/_local_operator/compile_helpers.py
import numpy as np import numba from scipy import sparse from netket.hilbert import AbstractHilbert from netket.utils.types import DType def pack_internals( hilbert: AbstractHilbert, operators_dict: dict, constant, dtype: DType, mel_cutoff: float, ): """ Take the internal lazy representat...
PypiClean
/HarvestingKit-0.6.24.tar.gz/HarvestingKit-0.6.24/harvestingkit/jats_utils.py
import re import sys import time from os import pardir from os.path import (join, dirname, basename) try: from invenio.errorlib import register_exception except ImportError: register_exception = lambda a=1, b=2: True from harvestingkit.minidom_utils import (get_value_i...
PypiClean
/Data-CAT-0.7.2.tar.gz/Data-CAT-0.7.2/README.rst
.. image:: https://github.com/nlesc-nano/data-CAT/workflows/Build%20with%20Conda/badge.svg :target: https://github.com/nlesc-nano/data-CAT/actions?query=workflow%3A%22Build+with+Conda%22 .. image:: https://codecov.io/gh/nlesc-nano/data-CAT/branch/master/graph/badge.svg :target: https://codecov.io/gh/nlesc-nano...
PypiClean
/Mopidy-Mopify-1.7.3.tar.gz/Mopidy-Mopify-1.7.3/mopidy_mopify/static/debug/src/app/player/controls/controls.controller.js
'use strict'; angular.module('mopify.player.controls', [ 'mopify.services.mopidy', 'mopify.services.station', 'cfp.hotkeys', 'mopify.services.queuemanager' ]).controller('PlayerControlsController', [ '$scope', '$window', '$rootScope', 'mopidyservice', 'stationservice', 'hotkeys', 'QueueManager', ...
PypiClean
/AsyncDex-1.1.tar.gz/AsyncDex-1.1/asyncdex/models/pager.py
import asyncio from collections import deque from math import ceil from typing import Any, AsyncIterator, Generic, MutableMapping, Optional, TYPE_CHECKING, Type, TypeVar from .abc import GenericModelList, Model, ModelList if TYPE_CHECKING: from ..client import MangadexClient _ModelT = TypeVar("_ModelT", bound=Mo...
PypiClean
/Inventicode-1.0.2.tar.gz/Inventicode-1.0.2/inventicode/migrations/0006_auto_20170223_1946.py
from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('inventicode', '0005_auto_20170223_1939'), ] operations = [ migrations.RemoveField( model_name='printpaper', name='height', ...
PypiClean
/AIKIF-0.2.2.tar.gz/AIKIF-0.2.2/aikif/lib/cls_plan_BDI.py
import datetime class Plan_BDI(object): """ class for handling various plans for AIKIF using Belief | Desires | Intentions """ def __init__(self, name, dependency): self.name = name self.id = 1 self.dependency = dependency self.plan_version = "v0.10" ...
PypiClean
/AyiinXd-0.0.8-cp311-cp311-macosx_10_9_universal2.whl/fipper/node_modules/debug/src/browser.js
exports.formatArgs = formatArgs; exports.save = save; exports.load = load; exports.useColors = useColors; exports.storage = localstorage(); exports.destroy = (() => { let warned = false; return () => { if (!warned) { warned = true; console.warn('Instance method `debug.destroy()` is deprecated and no longer d...
PypiClean
/FreePyBX-1.0-RC1.tar.gz/FreePyBX-1.0-RC1/freepybx/public/js/dojox/grid/enhanced/plugins/Pagination.js.uncompressed.js
require({cache:{ 'url:dojox/grid/enhanced/templates/Pagination.html':"<div dojoAttachPoint=\"paginatorBar\"\n\t><table cellpadding=\"0\" cellspacing=\"0\" class=\"dojoxGridPaginator\"\n\t\t><tr\n\t\t\t><td dojoAttachPoint=\"descriptionTd\" class=\"dojoxGridDescriptionTd\"\n\t\t\t\t><div dojoAttachPoint=\"descriptionDi...
PypiClean
/Flask-KQMaps-0.4.2.tar.gz/Flask-KQMaps-0.4.2/flask_kqmaps/static/kqwebclient/leaflet/3rd_libs/lodash/lodash.fp.min.js
(function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.fp=e():t.fp=e()})(this,function(){return function(t){function e(n){if(r[n])return r[n].exports;var i=r[n]={exports:{},id:n,loaded:!1};return t[n].call(i...
PypiClean
/BlueWhale3-3.31.3.tar.gz/BlueWhale3-3.31.3/Orange/classification/outlier_detection.py
from typing import Callable import numpy as np from sklearn.covariance import EllipticEnvelope from sklearn.ensemble import IsolationForest from sklearn.neighbors import LocalOutlierFactor from sklearn.svm import OneClassSVM from Orange.base import SklLearner, SklModel from Orange.data import Table, Domain, Discrete...
PypiClean
/CoreMS-1.6.0.tar.gz/CoreMS-1.6.0/corems/mass_spectrum/calc/MassErrorPrediction.py
__author__ = 'Yuri E. Corilo' __date__ = "03/31/2020" from threading import Thread from pandas import DataFrame from numpy import hstack, inf, isnan, where, array from tqdm import tqdm class MassErrorPrediction(Thread): def __init__(self, mass_spectrum, mz_overlay=10, rp_increments=10000, base_line_target=0....
PypiClean
/DXR-1.9.4.tar.gz/DXR-1.9.4/Dxr_redis/redis_client.py
import redis import sys import traceback import time import numpy as np import cv2 from loguru import logger class RedisClient: _instance = None def __new__(cls, *args, **kwargs): # Singleton pattern if cls._instance is None: cls._instance = object.__new__(cls) return cls._...
PypiClean
/Muntjac-1.1.2.tar.gz/Muntjac-1.1.2/muntjac/public/VAADIN/widgetsets/org.muntiacus.MuntjacWidgetSet/lib/util/search.js
// Replace works a little oddly -- it will do the replace on the next // Ctrl-G (or whatever is bound to findNext) press. You prevent a // replace by making sure the match is no longer selected when hitting // Ctrl-G. (function() { function SearchState() { this.posFrom = this.posTo = this.query = null; this...
PypiClean
/BanterBot-0.0.5.tar.gz/BanterBot-0.0.5/banterbot/gui/interface.py
import datetime import logging import threading from abc import ABC, abstractmethod from typing import List, Optional from banterbot.api_managers.openai_manager import OpenAIManager from banterbot.api_managers.speech_to_text import SpeechToText from banterbot.api_managers.text_to_speech import TextToSpeech from banter...
PypiClean
/GestPYPay-1.0.0.tar.gz/GestPYPay-1.0.0/README.txt
========= GestPYPay ========= GestPYPay is an implementation in Python of GestPayCrypt italian bank Banca Sella Java classes. It allows to connect to online credit card payment GestPay. This library is the conversion of the PHP GestPayCrypt and GestPayCryptHS by Alessandro Astarita. His project is available at <http...
PypiClean
/Mathics-1.0.tar.gz/Mathics-1.0/mathics/web/media/js/mathjax/jax/output/HTML-CSS/fonts/TeX/Math/Italic/Main.js
MathJax.OutputJax["HTML-CSS"].FONTDATA.FONTS["MathJax_Math-italic"]={directory:"Math/Italic",family:"MathJax_Math",style:"italic",testString:"MathJax Math \u03A5",skew:{65:0.139,66:0.0833,67:0.0833,68:0.0556,69:0.0833,70:0.0833,71:0.0833,72:0.0556,73:0.111,74:0.167,75:0.0556,76:0.0278,77:0.0833,78:0.0833,79:0.0833,80:0...
PypiClean
/Beeswarm-0.7.18.tar.gz/Beeswarm-0.7.18/beeswarm/server/webapp/static/thirdparty/fuelux/select.js
define(['require','jquery','./util'],function(require) { var $ = require('jquery'); var old = $.fn.select; require('./util'); // SELECT CONSTRUCTOR AND PROTOTYPE var Select = function (element, options) { this.$element = $(element); this.options = $.extend({}, $.fn.select.defaul...
PypiClean
/NearPy-0.2.2.tar.gz/NearPy-0.2.2/README.txt
# NearPy NearPy is a Python framework for fast (approximated) nearest neighbour search in high dimensional vector spaces using different locality-sensitive hashing methods. It allows to experiment and to evaluate new methods but is also production-ready. It comes with a redis storage adapter. To install simply do *p...
PypiClean
/OASYS1-1.2.130.tar.gz/OASYS1-1.2.130/oasys/util/script/variable.py
from math import isnan, floor from numbers import Real from oasys.util.script.value import Value, Unknown import collections ValueUnknown = Unknown # Shadowing within classes class Variable: """ The base class for variable descriptors contains the variable's name and some basic properties. .. att...
PypiClean
/Hikka_Pyro_New-2.0.103-py3-none-any.whl/hikkapyro/types/inline_mode/inline_query_result_photo.py
from typing import Optional, List import hikkapyro from hikkapyro import raw, types, utils, enums from .inline_query_result import InlineQueryResult class InlineQueryResultPhoto(InlineQueryResult): """Link to a photo. By default, this photo will be sent by the user with optional caption. Alternatively,...
PypiClean
/GC-Flask-Blogging-1.1.2.tar.gz/GC-Flask-Blogging-1.1.2/flask_blogging/dynamodbstorage.py
import logging from .storage import Storage import boto3 from boto3.dynamodb.conditions import Key import datetime from shortuuid import ShortUUID import copy class DynamoDBStorage(Storage): _logger = logging.getLogger("flask-blogging") def __init__(self, table_prefix="", region_name=None, e...
PypiClean
/EDDIE-Tool-1.0.0.tar.gz/EDDIE-Tool-1.0.0/eddietool/arch/OpenBSD/system.py
__version__ = '$Revision: 895 $' __copyright__ = 'Copyright (c) Chris Miles 2002-2005' __author__ = 'Chris Miles; John McInnes' __license__ = ''' 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 Fou...
PypiClean
/LumberMill-0.9.5.7-py3-none-any.whl/lumbermill/plugin/handler/WebsocketHandler.py
import tornado.web import tornado.escape import tornado.websocket import tornado.gen import logging import time class WebsocketLoggingHandler(logging.Handler): """ A handler class which allows to log to a websocket. """ def __init__(self, websocket_handler): logging.Handler.__init__(self) ...
PypiClean
/EOxServer-1.2.12-py3-none-any.whl/eoxserver/services/management/commands/eoxs_filter.py
from django.core.management.base import BaseCommand, CommandError from eoxserver.resources.coverages import models from eoxserver.resources.coverages.management.commands import CommandOutputMixIn from eoxserver.services.ecql import parse, to_filter, get_repr from eoxserver.services.filters import get_field_mapping_for...
PypiClean
/Newcalls-0.0.1-cp37-cp37m-win_amd64.whl/newcalls/sync.py
import asyncio import functools import inspect import threading from .custom_api import CustomApi from .media_devices import MediaDevices from .methods import Methods from .methods.utilities import idle as idle_module from .mtproto import MtProtoClient def async_to_sync(obj, name): function = getattr(obj, name) ...
PypiClean
/MisER-1.0.0.tar.gz/MisER-1.0.0/README.md
# MisER-project An annotation based method to find and fix small exons missed alignment defects in Nanopore long reads. <img src="examples/pictures/ex1.png" width=800> The example plot above show the misaligned exon in the middle is find by compaired the reference annotation BED and realigned to the correct position. ...
PypiClean
/JokerSDK-0.0.33.tar.gz/JokerSDK-0.0.33/JokerAPI/core.py
import httpx, asyncio from .enums import API, ExceptionMsg, Joker from typing import Any, Awaitable from .exceptions import * class SDK: def __init__(self, *args, api_key: str = False, **kwargs) -> None: self.api_key: str = api_key """ Run an asynchronous function using asyncio's event loop. ...
PypiClean
/Office365_REST_with_timeout-0.1.1-py3-none-any.whl/office365/sharepoint/portal/group_site_manager.py
from office365.runtime.client_object import ClientObject from office365.runtime.client_result import ClientResult from office365.runtime.http.http_method import HttpMethod from office365.runtime.queries.service_operation_query import ServiceOperationQuery from office365.runtime.resource_path import ResourcePath from of...
PypiClean
/ApiLogicServer-9.2.18-py3-none-any.whl/api_logic_server_cli/prototypes/base/devops/readme-devops.md
Use these directories to rapidly deploy your system to the cloud. This means you can provide a preview of [working software](https://apilogicserver.github.io/Docs/Working-Software-Now/) for your team: * **Developers** can use the API to begin custom User Interface development * **Business Users** can use the Admin A...
PypiClean
/Mathics-1.0.tar.gz/Mathics-1.0/mathics/web/media/js/scriptaculous/sound.js
// Copyright (c) 2005-2010 Thomas Fuchs (http://script.aculo.us, http://mir.aculo.us) // // Based on code created by Jules Gravinese (http://www.webveteran.com/) // // script.aculo.us is freely distributable under the terms of an MIT-style license. // For details, see the script.aculo.us web site: http://script.aculo....
PypiClean
/Codebugger-0.0.1.tar.gz/Codebugger-0.0.1/codebugger/codebug.py
__author__ = "Gabriel Cha" __email__ = "gcha@ucsd.edu" __status__ = "planning" import linecache import openai import sys class Codebug: """ Class for debug explanation. Attributes ---------- error_message: str Error message. Methods ---------- getMessage: Get the original...
PypiClean
/Andreani_QA_Debugger-0.0.4.tar.gz/Andreani_QA_Debugger-0.0.4/Andreani_QA_Debugger/Debugger.py
import webview import sys import json STYLES = """ <style> *{ padding: 0px; margin: 0px; } h5{ color: #D71920; padding: 1rem; padding-left: 1rem; Margin-left: 10rem; font-family: Arial, Helvetica, sans-seri...
PypiClean
/NovalIDE-1.1.8-py3-none-any.whl/noval/python/interpreter/interpreter.py
from noval import GetApp import os import locale import noval.util.apputils as apputils import noval.util.strutils as strutils import six.moves.builtins as builtins import threading from noval.util import utils import glob import sys try: import cStringIO except: import io as cStringIO import py_compile import...
PypiClean
/MultipartPostHandler2-0.1.5.tar.gz/MultipartPostHandler2-0.1.5/README.txt
MultipartPostHandler2 ===================== MultipartPostHandler for pyhton 2 Usage: Enables the use of multipart/form-data for posting forms Inspirations: Upload files in python: http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/146306 urllib2_file: Fabien Seisen: <fabien@seisen.org> Example: ...
PypiClean
/Flask-CKEditor-0.4.6.tar.gz/Flask-CKEditor-0.4.6/flask_ckeditor/static/full/plugins/a11yhelp/dialogs/lang/zh.js
/* Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */ CKEDITOR.plugins.setLang("a11yhelp","zh",{title:"輔助工具指南",contents:"說明內容。若要關閉此對話框請按「ESC」。",legend:[{name:"一般",items:[{name:"編輯器工具列",legend:"請按 ${toolbarFoc...
PypiClean
/Heterogeneous_Highway_Env-0.0.3-py3-none-any.whl/Heteogeneous_Highway_Env/envs/common/finite_mdp.py
import importlib from functools import partial from typing import TYPE_CHECKING, Optional import numpy as np from highway_env import utils from highway_env.vehicle.kinematics import Vehicle if TYPE_CHECKING: from highway_env.envs import AbstractEnv def finite_mdp(env: 'AbstractEnv', time_quantiz...
PypiClean
/DI_engine-0.4.9-py3-none-any.whl/ding/entry/dist_entry.py
import os import sys import subprocess import signal import pickle from ditk import logging import time from threading import Thread from easydict import EasyDict import numpy as np from ding.worker import Coordinator, create_comm_collector, create_comm_learner, LearnerAggregator from ding.config import read_config_wit...
PypiClean
/BWP-0.7.0.tar.gz/BWP-0.7.0/bwp/static/moment/2.9.0/moment.min.js
(function(a){function b(a,b,c){switch(arguments.length){case 2:return null!=a?a:b;case 3:return null!=a?a:null!=b?b:c;default:throw new Error("Implement me")}}function c(a,b){return Bb.call(a,b)}function d(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invali...
PypiClean
/Browthon-Reborn-1.0.1.tar.gz/Browthon-Reborn-1.0.1/browthon/Core/Windows/ParametersPages/historyPage.py
from PySide2.QtWidgets import QWidget, QGridLayout, QLabel from PySide2.QtCore import Qt from browthon.Core.Widgets.listWidget import ListWidget from browthon.Core.Widgets.pushButton import PushButton class HistoryPage(QWidget): def __init__(self, parent): super(HistoryPage, self).__init__() sel...
PypiClean
/Flask-Statics-Helper-1.0.0.tar.gz/Flask-Statics-Helper-1.0.0/flask_statics/static/angular/i18n/angular-locale_ckb-ir.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
/Diofant-0.14.0a2.tar.gz/Diofant-0.14.0a2/diofant/core/add.py
import collections import functools import math from ..utilities import default_sort_key from .cache import cacheit from .compatibility import is_sequence from .logic import _fuzzy_group from .numbers import Integer, nan, oo, zoo from .operations import AssocOp class Add(AssocOp): """Symbolic addition class.""" ...
PypiClean
/FiPy-3.4.4.tar.gz/FiPy-3.4.4/fipy/meshes/gmshMesh.py
from __future__ import print_function from __future__ import division from __future__ import unicode_literals from builtins import object from builtins import zip from builtins import range from builtins import str __docformat__ = 'restructuredtext' import logging import os from subprocess import Popen, PIPE import sy...
PypiClean
/FoilMesh-0.0.8.tar.gz/FoilMesh-0.0.8/foilmesh/meshio/exodus/_exodus.py
import datetime import re import numpy as np from ..__about__ import __version__ from .._common import warn from .._exceptions import ReadError from .._helpers import register_format from .._mesh import Mesh exodus_to_meshio_type = { "SPHERE": "vertex", # curves "BEAM": "line", "BEAM2": "line", "...
PypiClean
/Bubot_Core-0.1.19-py3-none-any.whl/Bubot/Core/Logger.py
from multiprocessing import Lock class Logger: CRITICAL = 50 ERROR = 40 WARNING = 30 INFO = 20 DEBUG = 10 NOTSET = 0 _levels = { 0: 'NOTSET', 10: 'DEBUG', 20: 'INFO', 30: 'WARNING', 40: 'ERROR', 50: 'CRITICAL' } def __init__(self, de...
PypiClean
/DI_engine-0.4.9-py3-none-any.whl/ding/entry/serial_entry_r2d3.py
from typing import Union, Optional, List, Any, Tuple import os import torch import numpy as np from ditk import logging from functools import partial from tensorboardX import SummaryWriter from copy import deepcopy from ding.envs import get_vec_env_setting, create_env_manager from ding.worker import BaseLearner, Inter...
PypiClean
/CatLearn-0.6.2.tar.gz/CatLearn-0.6.2/catlearn/fingerprint/particle.py
from __future__ import absolute_import from __future__ import division import numpy as np from itertools import product import warnings from ase.ga.utilities import (get_atoms_distribution, get_atoms_connections, get_rdf) from catlearn.featurize.base import BaseGenerator no_asap = Fals...
PypiClean
/FlaskCms-0.0.4.tar.gz/FlaskCms-0.0.4/flask_cms/static/js/ace/mode-c_cpp.js
ace.define("ace/mode/doc_comment_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"], function(require, exports, module) { "use strict"; var oop = require("../lib/oop"); var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules; var DocCommentHighlightRule...
PypiClean
/BlastRadius-0.1.23.tar.gz/BlastRadius-0.1.23/README.md
# Blast Radius [![PyPI version](https://badge.fury.io/py/BlastRadius.svg)](https://badge.fury.io/py/BlastRadius) ![CircleCI](https://img.shields.io/circleci/project/github/28mm/blast-radius.svg) *Blast Radius* is a tool for reasoning about *Terraform* dependency graphs with interactive visualizations. Use *Blast Radi...
PypiClean
/Glashammer-0.2.1.tar.gz/Glashammer-0.2.1/docs/source/gh-admin.rst
.. _gh-admin: gh-admin utility ================ Glashammer installs a script used for doing useful Glashammer-related things. In fact, it will probably end up as a jumble of lots of useful things in one place, but for now there are a number of functions. The gh-admin script will be installed in your path on install...
PypiClean
/DFHypercode-0.0.1-py3-none-any.whl/Hypercode/reading/reader.py
import typing import json import base64 import gzip import functools import nbtlib as nbt from collections import deque from .. import constants from ..schemas import ItemSchema, ItemTagSchema from ..utils import remove_u200b_from_doc, flatten, serialize_tag, dumps_json from ..enums import PlotSizes, IfEntityType, Colo...
PypiClean
/GreParl-0.3.tar.gz/GreParl-0.3/greparl/__init__.py
import random import time import os from datetime import datetime from flask import Flask from flask import render_template from flask import request from flask import redirect from flask import url_for from flask import flash from .SearchEngine import SearchEngine def abs_path(relative): """Takes the relative p...
PypiClean
/Nuitka_winsvc-1.7.10-cp310-cp310-win_amd64.whl/nuitka/build/inline_copy/lib/scons-4.3.0/SCons/Node/Python.py
import SCons.Node _memo_lookup_map = {} class ValueNodeInfo(SCons.Node.NodeInfoBase): __slots__ = ('csig',) current_version_id = 2 field_list = ['csig'] def str_to_node(self, s): return ValueWithMemo(s) def __getstate__(self): """ Return all fields that shall be pickled...
PypiClean
/Chronyk-1.0.1.tar.gz/Chronyk-1.0.1/chronyk/chronyk.py
import re import math import time import collections import datetime import calendar LOCALTZ = time.altzone def _isdst(dt): """Check if date is in dst. """ if type(dt) == datetime.date: dt = datetime.datetime.combine(dt, datetime.datetime.min.time()) dtc = dt.replace(year=datetime.datetime.n...
PypiClean
/NEURON_gpu-8.2.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl/neuron/rxd/rxd.py
from neuron import h, nrn, nrn_dll_sym from . import species, node, section1d, region, generalizedReaction, constants from .nodelist import NodeList from .node import _point_indices import weakref import numpy import ctypes import atexit from . import options from .rxdException import RxDException from . import initial...
PypiClean
/FlexGet-3.9.6-py3-none-any.whl/flexget/components/series/internal_estimator.py
from datetime import timedelta from loguru import logger from sqlalchemy import desc, func from flexget import plugin from flexget.event import event from flexget.manager import Session from flexget.utils.tools import multiply_timedelta from . import db logger = logger.bind(name='est_series_internal') class Estim...
PypiClean
/CodeIntel-2.0.0b19-cp34-cp34m-macosx_10_12_x86_64.whl/codeintel/codeintel2/constants_css2.py
from __future__ import absolute_import import textwrap from codeintel2.constants_css1 import CSS_ATTR_DICT as CSS1_ATTR_DICT from codeintel2.constants_css1 import CSS_PROPERTY_ATTRIBUTE_CALLTIPS_DICT as CSS1_PROPERTY_ATTRIBUTE_CALLTIPS_DICT CSS_PSEUDO_CLASS_NAMES = """first-letter first-line link active visited ...
PypiClean
/GQCMS-0.0.4-py3-none-any.whl/build/lib/build/lib/build/lib/gqcms/BondOrderOperator.py
import numpy as np import pandas as pd from . import Hubbard def AdjMatPartitioner(adj_mat: np.ndarray, site_1: int, site_2: int) -> np.ndarray: """ Will make the relevant part of the adjacency matrix for the bond order operator between two sites :param adj_mat: the adjacency matrix of a gqcms.Hubbard ob...
PypiClean
/DESpy-0.1.15-py3-none-any.whl/simkit/examples/transferline.py
from simkit.base import SimEntityBase from simkit.base import Priority from simkit.base import Entity from simkit.examples.arrivalprocess import ArrivalProcess from heapq import heappush from heapq import heappop class Job(Entity): def __init__(self): Entity.__init__(self, 'Job') self.total_delay_...
PypiClean
/BlueWhale3-3.31.3.tar.gz/BlueWhale3-3.31.3/Orange/distance/base.py
import numpy as np import sklearn.metrics as skl_metrics from Orange.data import Table, Domain, Instance, RowInstance from Orange.misc import DistMatrix from Orange.preprocess import SklImpute from Orange.statistics import util # TODO: When we upgrade to numpy 1.13, change use argument copy=False in # nan_to_num in...
PypiClean
/Flask-WePay-0.0.7.tar.gz/Flask-WePay-0.0.7/flaskext/wepay.py
from __future__ import absolute_import import urllib import urllib2 import json class WePayError(Exception): def __init__(self, type, message): Exception.__init__(self, message) self.type = type class WePayAPI(object): """A client for the WePay API""" def __init__(self, production=True...
PypiClean
/MVMO-1.0.9.tar.gz/MVMO-1.0.9/README.md
## Mean Variance Mapping Optimization Algorithm MVMO is a Python package to perform heuristic optimization on constrained and unconsrained optimization problems whose convexity and/or linearity may not be fully known. It is based on swarm optimization principles, and uses a continuously updated mean and variance of bes...
PypiClean
/GenIce2-2.1.7.1.tar.gz/GenIce2-2.1.7.1/genice2/rigid.py
from __future__ import print_function from math import * import sys import numpy as np import numpy.linalg import logging # Rigid.py uses vertical vectors while other pars of genice uses # horizontal vectors. # v1,v2,v3: numpy arrays # return value: fourth vector candidate def decide1(v1, v2, v3): v4 = -(v1 + v...
PypiClean
/Albot.Online-0.65.tar.gz/Albot.Online-0.65/README.md
# Albot.Online Python Library A simple library for communicating with the [Albot.Online](https://Albot.Online) client. This is great for getting you up and running fast, allowing you to focus more on the AI logic. <br><br> ## Getting Started This library is available at [PyPi](https://Pypi.org), so to download and in...
PypiClean
/GnuCash%20Web-0.1.0rc10.tar.gz/GnuCash Web-0.1.0rc10/gnucash_web/static/bootstrap/js/bootstrap.esm.min.js
import*as Popper from"@popperjs/core";const MAX_UID=1e6,MILLISECONDS_MULTIPLIER=1e3,TRANSITION_END="transitionend",toType=e=>null==e?`${e}`:{}.toString.call(e).match(/\s([a-z]+)/i)[1].toLowerCase(),getUID=e=>{do{e+=Math.floor(1e6*Math.random())}while(document.getElementById(e));return e},getSelector=e=>{let t=e.getAttr...
PypiClean
/KDVS-2.0.0.tar.gz/KDVS-2.0.0/kdvs/fw/SubsetHierarchy.py
r""" Provides high--level functionality for management of hierarchy of data subsets. Subsets can be hierarchical according to prior knowledge domains, or according to user specific criteria. Hierarchy is built based on categorizers. """ from kdvs.core.error import Error from kdvs.core.util import pairwise import coll...
PypiClean
/CIRCexplorer-1.1.10.tar.gz/CIRCexplorer-1.1.10/README.md
#CIRCexplorer [![Build Status](https://travis-ci.org/YangLab/CIRCexplorer.svg?branch=master)](https://travis-ci.org/YangLab/CIRCexplorer) [![Coverage Status](https://coveralls.io/repos/github/YangLab/CIRCexplorer/badge.svg?branch=master)](https://coveralls.io/github/YangLab/CIRCexplorer?branch=master) [![PyPI version]...
PypiClean
/IdracRedfishSupportTest-0.0.7.tar.gz/IdracRedfishSupportTest-0.0.7/SetBiosDefaultSettingsREDFISH.py
import argparse import getpass import json import logging import os 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 to reset BIOS to ...
PypiClean
/MDP-3.6.tar.gz/MDP-3.6/mdp/parallel/pp_support.py
from __future__ import print_function import sys import os import time import subprocess import signal import traceback import tempfile from . import scheduling import pp import mdp TEMPDIR_PREFIX='pp4mdp-monkeypatch.' def _monkeypatch_pp(container_dir): """Apply a hack for http://bugs.debian.org/cgi-bin/bugre...
PypiClean
/HILO-MPC-1.0.3.tar.gz/HILO-MPC-1.0.3/hilo_mpc/modules/controller/pid.py
from typing import Optional, Sequence, Union import casadi as ca import numpy as np from .base import Controller from ..base import Base, TimeSeries from ...util.util import convert, is_diagonal Numeric = Union[int, float] Array = Union[Sequence[Numeric], np.ndarray] class PID(Controller, Base): """ Clas...
PypiClean
/Euphorie-15.0.2.tar.gz/Euphorie-15.0.2/src/euphorie/client/resources/oira/script/chunks/30464.ecadd6e45cdf75ada66e.min.js
"use strict";(self.webpackChunk_patternslib_patternslib=self.webpackChunk_patternslib_patternslib||[]).push([[30464],{48864:function(n,e,t){var o=t(87537),s=t.n(o),r=t(23645),l=t.n(r)()(s());l.push([n.id,".hljs{display:block;overflow-x:auto;padding:.5em;background:#222;color:silver}.hljs-keyword{color:#ffb871;font-weig...
PypiClean
/Gooey-1.2.0a0.tar.gz/Gooey-1.2.0a0/gooey/gui/components/menubar.py
import webbrowser from functools import partial import wx # type: ignore from gooey.gui import three_to_four from gooey.gui.components.dialogs import HtmlDialog class MenuBar(wx.MenuBar): """ Wx.MenuBar handles converting the users list of Menu Groups into concrete wx.Menu instances. """ def _...
PypiClean
/FastGets-0.3.5.tar.gz/FastGets-0.3.5/fastgets/web/static/dist/plugins/help/plugin.min.js
!(function () { var a = {}, b = function (b) { for (var c = a[b], e = c.deps, f = c.defn, g = e.length, h = new Array(g), i = 0; i < g; ++i)h[i] = d(e[i]); var j = f.apply(null, h); if (void 0 === j) throw 'module [' + b + '] returned undefined'; c.instance = j; }, c = function (b, c, d) { if (typeof b !== 'string') th...
PypiClean
/ISR-2.2.0.tar.gz/ISR-2.2.0/README.md
# Image Super-Resolution (ISR) <img src="figures/butterfly.png"> [![Build Status](https://travis-ci.org/idealo/image-super-resolution.svg?branch=master)](https://travis-ci.org/idealo/image-super-resolution) [![Docs](https://img.shields.io/badge/docs-online-brightgreen)](https://idealo.github.io/image-super-resolution...
PypiClean
/MaterialDjango-0.2.5.tar.gz/MaterialDjango-0.2.5/materialdjango/static/materialdjango/components/bower_components/iron-test-helpers/README.md
[![Build status](https://travis-ci.org/PolymerElements/iron-test-helpers.svg?branch=master)](https://travis-ci.org/PolymerElements/iron-test-helpers) # iron-test-helpers A set of utility classes to make testing easier. For more details on the methods available, please check the documentation of `mock-interactions.js`...
PypiClean
/Django_patch-2.2.19-py3-none-any.whl/django/template/backends/django.py
from importlib import import_module from pkgutil import walk_packages from django.apps import apps from django.conf import settings from django.template import TemplateDoesNotExist from django.template.context import make_context from django.template.engine import Engine from django.template.library import InvalidTemp...
PypiClean
/MAPIE-0.6.5-py3-none-any.whl/mapie/regression/time_series_regression.py
from __future__ import annotations from typing import Iterable, Optional, Tuple, Union, cast import numpy as np from sklearn.base import RegressorMixin from sklearn.model_selection import BaseCrossValidator from sklearn.utils.validation import check_is_fitted from mapie._compatibility import np_nanquantile from mapi...
PypiClean
/Annalist-0.5.18.tar.gz/Annalist-0.5.18/annalist_root/annalist/views/collectionresource.py
from __future__ import unicode_literals from __future__ import absolute_import, division, print_function """ Collection resource access (JSON-LD context and maybe more) """ __author__ = "Graham Klyne (GK@ACM.ORG)" __copyright__ = "Copyright 2014, G. Klyne" __license__ = "MIT (http://opensource.org/licenses...
PypiClean
/OSF_EIMTC-0.1.46.tar.gz/OSF_EIMTC-0.1.46/src/EIMTC/plugins/n_bytes.py
from nfstream import NFPlugin import numpy as np from scapy.all import IP, IPv6, raw from pypacker.layer3 import ip from pypacker.layer3 import ip6 import pandas as pd import ast class NBytes(NFPlugin): ''' NBytes | Extracts the first n_bytes from the flow, the bytes are taken from the transport layer pa...
PypiClean
/NEURON_gpu_nightly-8.2a7-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl/neuron/sections.py
import neuron from neuron import nrn import sys import io class ExtendedSection(nrn.Section): def __init__(self, name=None): nrn.Section.__init__(self) self.hoc_name = nrn.Section.name(self) if name: self._name = name else: self._name = self.hoc_name ...
PypiClean
/EtherollApp-2020.322-py3-none-any.whl/etherollapp/service/main.py
import json import os from time import sleep, time from dotenv import load_dotenv from eth_accounts.account_utils import AccountUtils from kivy.app import App from kivy.logger import Logger from kivy.utils import platform from plyer import notification from pyetheroll.constants import ROUND_DIGITS from pyetheroll.ethe...
PypiClean