id
stringlengths
1
8
text
stringlengths
6
1.05M
dataset_id
stringclasses
1 value
/apache-superset_qwerty-2.0.11.tar.gz/apache-superset_qwerty-2.0.11/UPDATING.md
<!-- Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this...
PypiClean
/inmanta_module_factory-2.4.0.tar.gz/inmanta_module_factory-2.4.0/src/inmanta_module_factory/builder.py
import logging import shutil from collections import defaultdict from pathlib import Path from textwrap import dedent from typing import Any, Dict, List, Literal, Optional, Set import inmanta.module from cookiecutter.main import cookiecutter # type: ignore from inmanta_module_factory.helpers import const, utils from...
PypiClean
/emencia-paste-django-1.8.2.tar.gz/emencia-paste-django-1.8.2/emencia_paste_django/django_buildout/project/webapp_statics/js/foundation/jquery.foundation.clearing.js
;(function ($, window, document, undefined) { 'use strict'; var defaults = { templates : { viewing : '<a href="#" class="clearing-close">&times;</a>' + '<div class="visible-img" style="display: none"><img src="#">' + '<p class="clearing-caption"></p><a href="#" class="cle...
PypiClean
/pulumiverse_mssql-0.0.7.tar.gz/pulumiverse_mssql-0.0.7/pulumiverse_mssql/server_role.py
import copy import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from . import _utilities __all__ = ['ServerRoleArgs', 'ServerRole'] @pulumi.input_type class ServerRoleArgs: def __init__(__self__, *, name: pulumi.Input[str], ...
PypiClean
/chug-1.0.0.tar.gz/chug-1.0.0/README.md
# Chug [![License](https://img.shields.io/static/v1?label=license&message=MIT&color=brightgreen)](https://github.com/sblmnl/ChugPy/blobl/main/LICENSE) [![Language](https://img.shields.io/static/v1?label=language&message=Python&color=blue)](https://www.python.org/) Chug is a symmetric encryption algorithm in which the...
PypiClean
/MihkelMagicElectrical-0.8.0.tar.gz/MihkelMagicElectrical-0.8.0/README.md
# MihkelMagic_Electrical This is script to automate the analysis of electrical cell data. # Installation Run the following command: pip install MihkelMagic_Electrical # How to mihkelBayesian ## Optimizing hyperparameters In order to optimize 2 hyperparameters you need to: >from mihkelBayesian import optimize ...
PypiClean
/LabJackPython-9-20-2010.tar.gz/LabJackPython-9-20-2010/src/u6.py
from LabJackPython import * import struct, ConfigParser def openAllU6(): """ A helpful function which will open all the connected U6s. Returns a dictionary where the keys are the serialNumber, and the value is the device object. """ returnDict = dict() for i in range(deviceCount(6))...
PypiClean
/princeton_scraper_seas_faculty-1.3.0-py3-none-any.whl/princeton_scraper_seas_faculty/campus_directory.py
import typing import urllib.parse import requests import bs4 __author__ = "Jérémie Lumbroso <lumbroso@cs.princeton.edu>" __all__ = [ "find_netid_from_princeton_email" ] # URL to build queries to search the campus directory by email address equality # NOTE: had to switch to "begins with" because of bug in sear...
PypiClean
/scphylo_tools-0.0.4-cp39-cp39-manylinux_2_12_i686.manylinux2010_i686.whl/scphylo/commands/solver/_scite.py
import os import click import numpy as np from joblib import Parallel, delayed import scphylo as scp @click.command(short_help="Run SCITE.") @click.argument( "genotype_file", required=True, type=click.Path( exists=True, file_okay=True, dir_okay=False, readable=True, resolve_path=True ), ) @c...
PypiClean
/fp_browser_sdk-0.9.3-py3-none-any.whl/fp_browser_sdk/ext/client_hints.py
from .module import Module from .browser_enum import PrefersColor from .browser_enum import WebClientHintsType class ClientHints(Module): def __init__(self): super(ClientHints, self).__init__() self._disable = True self._disable_json = [] self._viewport_width = 980 self._vi...
PypiClean
/pkg-luishidalgogt2003-0.0.1.tar.gz/pkg-luishidalgogt2003-0.0.1/src/package/covid_user_interface.py
from covid_data_handler import * from covid_news_handling import * from flask import Flask, request, render_template, redirect """ This module imports everything from covid_data_handler and covid_news_handling modules and imports Flask so a webpage is created with the data from both of the modules and outputes an inte...
PypiClean
/cpskin.diazotheme.newDream-0.1.18.tar.gz/cpskin.diazotheme.newDream-0.1.18/cpskin/diazotheme/newDream/static/js/TweenMax.min.js
var _gsScope="undefined"!=typeof module&&module.exports&&"undefined"!=typeof global?global:this||window;(_gsScope._gsQueue||(_gsScope._gsQueue=[])).push(function(){"use strict";_gsScope._gsDefine("TweenMax",["core.Animation","core.SimpleTimeline","TweenLite"],function(a,b,c){var d=function(a){var b,c=[],d=a.length;for(...
PypiClean
/PySide6-QtAds-4.1.0.1.tar.gz/PySide6-QtAds-4.1.0.1/Qt-Advanced-Docking-System/examples/dockindock/main.py
import sys import os import atexit from qtpy.QtWidgets import QApplication, QMainWindow, QLabel from qtpy.QtCore import Qt # from PyQtAds import QtAds try: from PyQtAds import QtAds except ImportError: import PySide6QtAds as QtAds # from perspectives import PerspectivesManager from dockindock import DockInDo...
PypiClean
/idealoom-0.1.0-py3-none-any.whl/assembl/static/widget/card/assembl/static/js/bower/select2/select2.js
(function ($) { if(typeof $.fn.each2 == "undefined") { $.extend($.fn, { /* * 4-10 times faster .each replacement * use it carefully, as it overrides jQuery context of element on each iteration */ each2 : function (c) { var j = $([0]...
PypiClean
/ixnetwork_restpy-1.1.10.tar.gz/ixnetwork_restpy-1.1.10/ixnetwork_restpy/testplatform/sessions/ixnetwork/traffic/trafficitem/configelement/stack/pppLCP_template.py
from ixnetwork_restpy.base import Base from ixnetwork_restpy.files import Files class PppLCP(Base): __slots__ = () _SDM_NAME = "pppLCP" _SDM_ATT_MAP = { "HeaderOpcode": "pppLCP.header.opcode-1", "HeaderIdentifier": "pppLCP.header.identifier-2", "HeaderLength": "pppLCP.header.length...
PypiClean
/django-social-auth3-0.7.23.tar.gz/django-social-auth3-0.7.23/social_auth/backends/contrib/xing.py
import oauth2 as oauth from oauth2 import Token from urllib.parse import urlencode from django.utils import simplejson from social_auth.backends import ConsumerBasedOAuth, OAuthBackend from social_auth.exceptions import AuthCanceled, AuthUnknownError XING_SERVER = 'xing.com' XING_REQUEST_TOKEN_URL = 'https://api.%...
PypiClean
/fastapi_amis_admin-0.6.2.tar.gz/fastapi_amis_admin-0.6.2/docs/en/docs/tutorials/basic/i18n.md
# Multi-language The multilingual support of `FastAPI-Amis-Admin` is divided into multilingual for the internal components of `Amis` on the front end and multilingual for the constant text on the back end. - The default built-in support languages are: `en_US`, `zh_CN`. For other language extensions, please refer to [...
PypiClean
/yoshaas-gateway-2.0.1.tar.gz/yoshaas-gateway-2.0.1/discord_gateway/constants.py
import random from enum import Enum from typing import Union, Any, Optional, Iterator from typing_extensions import Self from discord_gateway.types import DiscordUser, DiscordRole __all__ = ( 'Intents', 'Permission', 'Color', 'ChannelType', 'Status', 'ActivityType', 'AllowedMentions' ) c...
PypiClean
/libcurl-ct-7.84.0a1.zip/libcurl-ct-7.84.0a1/examples/post-callback.py
import sys import ctypes as ct import libcurl as lcurl from curltestutils import * # noqa # USE_CHUNKED = 1 # DISABLE_EXPECT = 1 # Silly test data to POST text: str = ( "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed vel " "urna neque. Ut quis leo metus. Quisque eleifend, ex at laoreet " ...
PypiClean
/ask-sdk-model-1.82.0.tar.gz/ask-sdk-model-1.82.0/ask_sdk_model/interfaces/playbackcontroller/next_command_issued_request.py
# # Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file # except in compliance with the License. A copy of the License is located at # # http://aws.amazon.com/apache2.0/ # # or in the "license" file accomp...
PypiClean
/formification-1.2.0-py3-none-any.whl/formulaic/static/admin/formulaic/ember-formulaic/node_modules/bower/lib/node_modules/nopt/README.md
If you want to write an option parser, and have it be good, there are two ways to do it. The Right Way, and the Wrong Way. The Wrong Way is to sit down and write an option parser. We've all done that. The Right Way is to write some complex configurable program with so many options that you hit the limit of your fru...
PypiClean
/pre-commit-vauxoo-7.0.25.tar.gz/pre-commit-vauxoo-7.0.25/src/pre_commit_vauxoo/cli.py
import contextlib import os import subprocess import click from pre_commit_vauxoo import pre_commit_vauxoo def source_variables(): # Overwrite os.environ with variables.sh file only if it was not already defined try: repo_dirname = pre_commit_vauxoo.get_repo() except subprocess.CalledProcessErro...
PypiClean
/pyamo-2.2.1.tar.gz/pyamo-2.2.1/README.md
pyamo - addons.mozilla.org for python ===================================== These tools provide some classes and a command line tool to access addons.mozilla.org. This site doesn't have a services API, therefore these tools use website scraping to determine the right information and use the same endpoints as they woul...
PypiClean
/fast-safe-rl-0.1.0.tar.gz/fast-safe-rl-0.1.0/fsrl/policy/lagrangian_base.py
from typing import Any, Callable, Dict, List, Optional, Tuple, Type, Union import gymnasium as gym import numpy as np import torch from tianshou.data import Batch, ReplayBuffer, to_numpy, to_torch_as from tianshou.utils import MultipleLRSchedulers from torch import nn from torch.nn.functional import relu from fsrl.po...
PypiClean
/casai-home-frontend-20220503.0.tar.gz/casai-home-frontend-20220503.0/hass_frontend/frontend_latest/de7bb92a.js
(self.webpackChunkhome_assistant_frontend=self.webpackChunkhome_assistant_frontend||[]).push([[6169],{6169:(e,t,r)=>{"use strict";r.r(t);var s=r(50424),i=r(50467),o=r(99476);const n={1:5,2:3,3:2};class a extends o.p{static async getConfigElement(){return await Promise.all([r.e(5009),r.e(8161),r.e(2955),r.e(8985),r.e(16...
PypiClean
/ansible-8.3.0-py3-none-any.whl/ansible_collections/google/cloud/plugins/modules/gcp_compute_region_disk_info.py
from __future__ import absolute_import, division, print_function __metaclass__ = type ################################################################################ # Documentation ################################################################################ ANSIBLE_METADATA = {'metadata_version': '1.1', 'stat...
PypiClean
/aprsd_mqtt_plugin-0.2.0.tar.gz/aprsd_mqtt_plugin-0.2.0/docs/installation.rst
.. highlight:: shell ============ Installation ============ Stable release -------------- To install aprsd-mqtt-plugin, run this command in your terminal: .. code-block:: console $ pip install aprsd-mqtt-plugin This is the preferred method to install, as it will always install the most recent stable release....
PypiClean
/dissect.esedb-3.8.tar.gz/dissect.esedb-3.8/dissect/esedb/esedb.py
from functools import cached_property, lru_cache from typing import BinaryIO, Iterator from dissect.esedb.c_esedb import c_esedb, pgnoFDPMSO, ulDAEMagic from dissect.esedb.exceptions import InvalidDatabase from dissect.esedb.page import Page from dissect.esedb.table import Catalog, Table class EseDB: """EseDB c...
PypiClean
/ansible-mdgen-0.1.0.tar.gz/ansible-mdgen-0.1.0/src/ansiblemdgen/AutoDocumenterVariables.py
from ansiblemdgen.Config import SingleConfig import sys import yaml import os from os import walk from ansiblemdgen.Utils import SingleLog,FileUtils from mdutils.mdutils import MdUtils import re from ansiblemdgen.AutoDocumenterBase import WriterBase class VariablesWriter(WriterBase): defaults_dir = None var...
PypiClean
/convo_new_version_abdo-1.0.2-py3-none-any.whl/convo/core/nlg/template.py
import copy import logging from convo.shared.core.trackers import DialogueStateTracer from typing import Text, Any, Dict, Optional, List from convo.core.nlg import interpolator # pytype: disable=pyi-error from convo.core.nlg.generator import NaturalLanguageGenerator logger = logging.getLogger(__name__) class Temp...
PypiClean
/deepspeed_moee-0.12.tar.gz/deepspeed_moee-0.12/deepspeed/autotuning/tuner/base_tuner.py
import atexit import sys from deepspeed.autotuning.constants import * from deepspeed.autotuning.utils import write_experiments from deepspeed.utils import logger import json class BaseTuner: def __init__(self, exps, resource_manager, metric): self.all_exps = exps self.rm = resource_manager ...
PypiClean
/waseda_ml_pipelines_sdk-7.1.0-py3-none-any.whl/tfx/components/trainer/fn_args_utils.py
"""FnArgs for passing information to UDF.""" from __future__ import absolute_import from __future__ import division from __future__ import print_function from typing import Any, Callable, Dict, Iterator, List, NamedTuple, Optional, Text import absl import attr import pyarrow as pa import tensorflow as tf from tfx im...
PypiClean
/spyder-terminal-1.2.2.tar.gz/spyder-terminal-1.2.2/spyder_terminal/server/static/components/webpack/lib/Parser.js
"use strict"; // Syntax: https://developer.mozilla.org/en/SpiderMonkey/Parser_API const acorn = require("acorn"); const { Tapable, SyncBailHook, HookMap } = require("tapable"); const util = require("util"); const vm = require("vm"); const BasicEvaluatedExpression = require("./BasicEvaluatedExpression"); const Stacked...
PypiClean
/abilian_core-0.11.24-py3-none-any.whl/abilian/services/repository/service.py
from __future__ import annotations import shutil import typing import weakref from pathlib import Path from typing import IO, Any, Dict, Optional, Set, Union from uuid import UUID, uuid1 import sqlalchemy as sa import sqlalchemy.event from flask import _app_ctx_stack from flask.globals import _lookup_app_object from ...
PypiClean
/ATpy-0.9.7.tar.gz/ATpy-0.9.7/docs/format_ipac.rst
.. _format_ipac: =========== IPAC tables =========== .. note:: IPAC tables are an ASCII table that can contain a single table. The format can contain meta-data that consists of keyword values and comments (analogous to FITS files), and the column headers are separated by pipe (``|``) symbols that indi...
PypiClean
/dimagi-superset-2.0.1.tar.gz/dimagi-superset-2.0.1/superset/datasets/commands/export.py
import json import logging from typing import Iterator, Tuple import yaml from werkzeug.utils import secure_filename from superset.commands.export.models import ExportModelsCommand from superset.connectors.sqla.models import SqlaTable from superset.datasets.commands.exceptions import DatasetNotFoundError from supers...
PypiClean
/ajenti.plugin.core-0.102.tar.gz/ajenti.plugin.core-0.102/ajenti_plugin_core/resources/vendor/bootstrap/Gruntfile.js
module.exports = function (grunt) { 'use strict'; // Force use of Unix newlines grunt.util.linefeed = '\n'; RegExp.quote = function (string) { return string.replace(/[-\\^$*+?.()|[\]{}]/g, '\\$&'); }; var fs = require('fs'); var path = require('path'); var generateGlyphiconsData = require('./grun...
PypiClean
/portage-3.0.51.tar.gz/portage-3.0.51/lib/_emerge/EbuildIpcDaemon.py
import errno import logging import pickle from portage import os from portage.exception import TryAgain from portage.localization import _ from portage.locks import lockfile, unlockfile from portage.util import writemsg_level from _emerge.FifoIpcDaemon import FifoIpcDaemon class EbuildIpcDaemon(FifoIpcDaemon): "...
PypiClean
/dum-0.4.tar.gz/dum-0.4/doc/reference.rst
######### Reference ######### The **dum** module define a set of function to generate python objects from the projection of data structured in xml, json or csv. Node protocol ------------- The *Node* protocol must be defined by the classes that host the result of the data projection. .. class:: Node :noindex...
PypiClean
/apache-superset_qwerty-2.0.11.tar.gz/apache-superset_qwerty-2.0.11/superset-frontend/packages/superset-ui-core/src/color/colorSchemes/sequential/d3.ts
import SequentialScheme from '../../SequentialScheme'; const schemes = [ { id: 'schemeRdBu', label: 'red/blue', isDiverging: true, colors: [ '#67001f', '#b2182b', '#d6604d', '#f4a582', '#fddbc7', '#d1e5f0', '#92c5de', '#4393c3', '#2166ac', '...
PypiClean
/pybpod-gui-api-1.8.3b1.tar.gz/pybpod-gui-api-1.8.3b1/pybpodgui_api/models/setup/setup_com.py
import logging from confapp import conf from pybpodgui_api.exceptions.run_setup import RunSetupError from pybpodgui_api.models.setup.setup_io import SetupBaseIO logger = logging.getLogger(__name__) class SetupCom(SetupBaseIO): """ Define board actions that are triggered by setup. **Properties** ...
PypiClean
/msgraph_beta_sdk-1.0.0a9-py3-none-any.whl/msgraph/generated/me/calendars/item/calendar_view/item/instances/item/single_value_extended_properties/item/single_value_legacy_extended_property_item_request_builder.py
from __future__ import annotations from dataclasses import dataclass from kiota_abstractions.get_path_parameters import get_path_parameters from kiota_abstractions.method import Method from kiota_abstractions.request_adapter import RequestAdapter from kiota_abstractions.request_information import RequestInformation fro...
PypiClean
/strawberry_graphql-0.158.0.tar.gz/strawberry_graphql-0.158.0/strawberry/types/type_resolver.py
from __future__ import annotations import dataclasses import sys from typing import TYPE_CHECKING, Dict, List, Type, TypeVar from strawberry.annotation import StrawberryAnnotation from strawberry.exceptions import ( FieldWithResolverAndDefaultFactoryError, FieldWithResolverAndDefaultValueError, PrivateStr...
PypiClean
/sndg-bio-0.1.73.tar.gz/sndg-bio-0.1.73/SNDG/Comparative/VariantCalling.py
import multiprocessing import os import pandas as pd from tqdm import tqdm from SNDG import execute as e, docker_wrap_command from SNDG import mkdir from SNDG.Comparative.CoverageAnalysis import CoverageAnalysis class VariantCalling: @staticmethod def genotype_call(reference, vcf, output_file="./combined.v...
PypiClean
/interactive_publishing-0.1.0.tar.gz/interactive_publishing-0.1.0/ifigures/interact.py
from collections import OrderedDict import itertools import base64 import matplotlib as mpl import matplotlib.pyplot as plt from matplotlib.backends.backend_agg import FigureCanvasAgg as FigureCanvas from io import BytesIO import binascii from html import escape from PIL import Image import numpy as np import pngquant...
PypiClean
/django-geoexplorer-worldmap-4.0.72.tar.gz/django-geoexplorer-worldmap-4.0.72/geoexplorer-worldmap/static/worldmap_client/externals/openlayers/lib/OpenLayers/Layer/Zoomify.js
* Development supported by a R&D grant DC08P02OUK006 - Old Maps Online * (www.oldmapsonline.org) from Ministry of Culture of the Czech Republic. */ /** * @requires OpenLayers/Layer/Grid.js */ /** * Class: OpenLayers.Layer.Zoomify * * Inherits from: * - <OpenLayers.Layer.Grid> */ OpenLayers.Layer.Zoomify =...
PypiClean
/xoa_utils-2.0.3-py3-none-any.whl/xoa_utils/clicks/click_commands/lt.py
from __future__ import annotations import asyncclick as ac from xoa_utils.clicks import click_backend as cb from xoa_driver.hlfuncs import anlt as anlt_utils from xoa_driver import enums from xoa_utils.clis import ( format_lt_algorithm, format_lt_config, format_lt_im, format_lt_inc_dec, format_lt_no...
PypiClean
/horizon-23.2.0.tar.gz/horizon-23.2.0/openstack_dashboard/dashboards/identity/static/dashboard/identity/users/actions/create.action.service.js
(function() { 'use strict'; angular .module('horizon.dashboard.identity.users') .factory('horizon.dashboard.identity.users.actions.create.service', createService); createService.$inject = [ '$q', 'horizon.dashboard.identity.users.resourceType', 'horizon.dashboard.identity.users.actions.baseP...
PypiClean
/py3plex-0.95a0.tar.gz/py3plex-0.95a0/docfiles/sources/py3plex.algorithms.community_detection.rst
py3plex\.algorithms\.community\_detection package ================================================= Subpackages ----------- .. toctree:: py3plex.algorithms.community_detection.community Submodules ---------- py3plex\.algorithms\.community\_detection\.community\_louvain module ----------------------------------...
PypiClean
/dgl_cu111-0.6.1-cp38-cp38-win_amd64.whl/dgl_cu111-0.6.1.data/purelib/dgl/nn/pytorch/conv/sgconv.py
# pylint: disable= no-member, arguments-differ, invalid-name import torch as th from torch import nn from .... import function as fn from ....base import DGLError class SGConv(nn.Module): r""" Description ----------- Simplifying Graph Convolution layer from paper `Simplifying Graph Convolutional ...
PypiClean
/google-api-python-client-uritemplate-1.4.2.tar.gz/google-api-python-client-uritemplate-1.4.2/googleapiclient/model.py
from __future__ import absolute_import import six __author__ = 'jcgregorio@google.com (Joe Gregorio)' import json import logging from six.moves.urllib.parse import urlencode from googleapiclient import __version__ from googleapiclient.errors import HttpError dump_request_response = False def _abstract(): rais...
PypiClean
/hugo30128-0.0.1.tar.gz/hugo30128-0.0.1/README.md
# M1-2022-git ## Introduction This repository is a fork from the previous repository. The bugs in the converter have been fixed and now we want to publish our work as a publicly available python package. ## Getting started You should be working from **your own repository** that is a fork of M1-2022-git-workflow. In o...
PypiClean
/compas_cem-0.8.0.tar.gz/compas_cem-0.8.0/src/compas_cem/ghpython/artists.py
from math import fabs from compas.geometry import add_vectors from compas.geometry import length_vector from compas.geometry import scale_vector from compas.geometry import normalize_vector from compas.geometry import translate_points from compas_ghpython import draw_points from compas_ghpython import draw_lines from...
PypiClean
/msgraph-sdk-1.0.0a3.tar.gz/msgraph-sdk-1.0.0a3/msgraph/generated/directory_roles/item/directory_role_item_request_builder.py
from __future__ import annotations from dataclasses import dataclass from kiota_abstractions.get_path_parameters import get_path_parameters from kiota_abstractions.method import Method from kiota_abstractions.request_adapter import RequestAdapter from kiota_abstractions.request_information import RequestInformation fro...
PypiClean
/DLTKDL-51.0.8-py3-none-any.whl/dltkdl/optimizer/lrfinder.py
from ..imports import * from .. import utils as U class LRFinder: """ Tracks (and plots) the change in loss of a Keras model as learning rate is gradually increased. Used to visually identify a good learning rate, given model and data. Reference: Original Paper: https://arxiv.org/abs/1506.0118...
PypiClean
/asap3-3.13.1.tar.gz/asap3-3.13.1/Test/parallel/parallelNeighborLocator.py
from __future__ import print_function from asap3 import * from asap3.analysis.localstructure import RestrictedCNA, CoordinationNumbers from asap3.testtools import ReportTest from asap3.mpi import world from ase.build import bulk import numpy as np debug = 0 if debug == 1: DebugOutput("parallel%d.log", nomaster=Tr...
PypiClean
/social_core_optimized-0.0.1.tar.gz/social_core_optimized-0.0.1/social_core/strategy.py
import time import random import hashlib from .utils import setting_name, module_member from .store import OpenIdStore, OpenIdSessionWrapper from .pipeline import DEFAULT_AUTH_PIPELINE, DEFAULT_DISCONNECT_PIPELINE from .pipeline.utils import partial_load, partial_store, partial_prepare class BaseTemplateStrategy(obj...
PypiClean
/sphinxcontrib-httpexample-rotki-0.1.2.tar.gz/sphinxcontrib-httpexample-rotki-0.1.2/docs/usage.rst
Examples of use: ================ Examples with inline sources ---------------------------- Example 1 ^^^^^^^^^ Code ```` .. code-block:: rst .. http:example:: curl wget httpie python-requests GET /Plone/front-page HTTP/1.1 Host: localhost:8080 Accept: application/json Autho...
PypiClean
/django-test-urls-0.3.0.tar.gz/django-test-urls-0.3.0/README.rst
############################################################################## django-test-urls 0.3.0 ############################################################################## .. image:: https://github.com/alanverresen/django-test-urls/actions/workflows/build.yml/badge.svg :target: https://github.com/alanverr...
PypiClean
/django-basic-cms-0.3.16.tar.gz/django-basic-cms-0.3.16/basic_cms/static/pages/ckeditor/lang/hi.js
/* Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.lang.hi={dir:'ltr',editorTitle:'Rich text editor, %1',source:'सोर्स',newPage:'नया पेज',save:'सेव',preview:'प्रीव्यू',cut:'कट',copy:'कॉपी',paste:'पेस्ट',print:'प्रिन...
PypiClean
/MergePythonSDK.ticketing-2.2.2-py3-none-any.whl/MergePythonSDK/accounting/model/country_enum.py
import re # noqa: F401 import sys # noqa: F401 from typing import ( Optional, Union, List, Dict, ) from MergePythonSDK.shared.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, ModelSimple, cached_property, OpenApiModel, change_keys_js_to_python,...
PypiClean
/ansible-8.3.0-py3-none-any.whl/ansible_collections/fortinet/fortimanager/plugins/modules/fmgr_dlp_profile_rule.py
from __future__ import absolute_import, division, print_function # Copyright 2019-2023 Fortinet, Inc. # # 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 ...
PypiClean
/horae.js.jqplot-1.0.0b2.tar.gz/horae.js.jqplot-1.0.0b2/horae/js/jqplot/examples/jquery-ui/js/jquery.effects.core.min.js
jQuery.effects||function(f,m){function r(c){var a;if(c&&c.constructor===Array&&c.length===3)return c;if(a=/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/.exec(c))return[parseInt(a[1],10),parseInt(a[2],10),parseInt(a[3],10)];if(a=/rgb\(\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-...
PypiClean
/alibaba-python-sdk-0.1.3.tar.gz/alibaba-python-sdk-0.1.3/alibaba/cache.py
import time,json from os.path import abspath, dirname class Cache(object): def __init__(self,*args,**kw): self.init_cache() def init_cache(self): try: with open(dirname(abspath(__file__)) + "/tmp/tmp_cache","r") as f: body = f.read() self.cache = js...
PypiClean
/pulumi_azure_nextgen-0.6.2a1613157620.tar.gz/pulumi_azure_nextgen-0.6.2a1613157620/pulumi_azure_nextgen/devops/_inputs.py
import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union from .. import _utilities, _tables from ._enums import * __all__ = [ 'AuthorizationArgs', 'BootstrapConfigurationArgs', 'CodeRepositoryArgs', 'PipelineTemplateArgs', ] @pulumi.input_type cla...
PypiClean
/flywheel_cli-17.3.4rc15-py3-none-any.whl/flywheel_cli/ingest/fixtures.py
import copy import functools import os import uuid import typing as t import pytest from flywheel_cli.ingest import models from flywheel_cli.ingest.client.db import DBClient def pytest_generate_tests(metafunc) -> None: """Parametrize tests with any additional DB urls from envvar INGEST_DB""" if "db" in meta...
PypiClean
/pyenigma-0.4.0.tar.gz/pyenigma-0.4.0/README.md
# pyEnigma [![builds.sr.ht status](https://builds.sr.ht/~cedric/pyenigma.svg)](https://builds.sr.ht/~cedric/pyenigma) [pyEnigma](https://sr.ht/~cedric/pyenigma) is a Python Enigma cypher machine simulator. For reporting issues, visit the tracker here: https://todo.sr.ht/~cedric/pyenigma ## Usage ### As a Pytho...
PypiClean
/citymaker_sdk-1.1.15.0.tar.gz/citymaker_sdk-1.1.15.0/citymaker_sdk_test/SDK/RenderControl/ISunConfig.py
import os, sys,json sys.path.append(os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))) import Utils.classmake as CM import Utils.classPath as CP import Utils.SocketApiServe as socketApi Props={"shadowColor":{"t":"Color","v":"", "F":"gs"},"sunCalculateMode":{"t":"gviSunCalculateMode","v":1, "...
PypiClean
/zerodoc-0.2.3.tar.gz/zerodoc-0.2.3/README.rst
======= Zerodoc ======= Version 0.2.3 Last updated 2014-08-17 pablo@odkq.com Zerodoc is a "plain text format" in the spirit of `asciidoc <http://www.methods.co.nz/asciidoc/>`_, `POD <http://search.cpan.org/dist/perl/pod/perlpod.pod>`_, `reStructuredText <http://docutils.sourceforge.net/rst.html>`_ or `markdown <http:...
PypiClean
/rally-3.2.0.tar.gz/rally-3.2.0/doc/release_notes/archive/v0.1.2.rst
============ Rally v0.1.2 ============ Information ----------- +------------------+-----------------------+ | Commits | **208** | +------------------+-----------------------+ | Bug fixes | **37** | +------------------+-----------------------+ | Dev cycle | **77...
PypiClean
/pymars-0.10.0a1-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.whl/mars/storage/filesystem.py
import os import uuid from typing import Dict, List, Optional, Tuple from ..lib.aio import AioFilesystem from ..lib.filesystem import FileSystem, get_fs from ..serialization import AioSerializer, AioDeserializer from ..utils import mod_hash, implements from .base import StorageBackend, ObjectInfo, StorageLevel, regis...
PypiClean
/bastion_key_client-1.4.0.tar.gz/bastion_key_client-1.4.0/utilities/client-hammer.py
import argparse import dotenv import logging import urllib3.exceptions from datetime import datetime, timedelta, timezone #from multiprocessing import Process, Pool from threading import Thread from swagger_client.api_client import ApiClient from swagger_client.configuration import Configuration from swagger_client.a...
PypiClean
/mindspore_gpu-1.10.0-cp39-cp39-manylinux1_x86_64.whl/mindspore/_akg/akg/tvm/relay/_parser.py
# pylint: disable=invalid-name, unused-argument """A parser for Relay's text format.""" from __future__ import absolute_import import sys from ast import literal_eval from collections import deque try: # no typing.Deque in Python 3.5 # https://bugs.python.org/issue29011 from typing import Any, Dict, List...
PypiClean
/scons_parts-0.17.7-py3-none-any.whl/parts/metasection/buildsection.py
from .metasection import MetaSection from .phaseinfo import PhaseInfo import parts.api.register as register class Build(MetaSection): name = "build" # this is the declorator name # the first concept is the what all targets will map to # the values after this are mapped to build:: and can be given special ...
PypiClean
/trex-payment-0.0.5.tar.gz/trex-payment-0.0.5/trexpayment/static/payment/plugins/jquery-validation/jquery.validate.js
(function( factory ) { if ( typeof define === "function" && define.amd ) { define( ["jquery"], factory ); } else if (typeof module === "object" && module.exports) { module.exports = factory( require( "jquery" ) ); } else { factory( jQuery ); } }(function( $ ) { $.extend( $.fn, { // https://jqueryvalidation...
PypiClean
/openerp-server-5.0.0-3.tar.gz/openerp-server-5.0.0-3/bin/addons/auction/barcode/usps.py
from reportlab.lib.units import inch from common import Barcode import string _fim_patterns = { 'A' : "|| | ||", 'B' : "| || || |", 'C' : "|| | | ||", 'D' : "||| | |||", # XXX There is an E. # The below has been seen, but dunno if it is E or not: # 'E' : '|||| ||||' } _postnet_patterns ...
PypiClean
/sitmango-0.1.2-py3-none-any.whl/sit/scripts/utils.py
import click import subprocess import paramiko import os import re DEVNULL = open(os.devnull, 'w') def execute(commands, debug=False): if not debug: return subprocess.check_output(commands, stderr=DEVNULL).decode() else: logs = '' with subprocess.Popen(commands, stdout=subprocess.PIPE...
PypiClean
/rflow-apache-beam-2.28.0.tar.gz/rflow-apache-beam-2.28.0/apache_beam/runners/interactive/display/display_manager.py
# pytype: skip-file from __future__ import absolute_import from __future__ import division from __future__ import print_function import collections import threading import time from typing import TYPE_CHECKING from apache_beam.runners.interactive.display import interactive_pipeline_graph try: import IPython # py...
PypiClean
/ask-smapi-model-1.36.0.tar.gz/ask-smapi-model-1.36.0/ask_smapi_model/v1/skill/interaction_model/jobs/dynamic_update_error.py
# # Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file # except in compliance with the License. A copy of the License is located at # # http://aws.amazon.com/apache2.0/ # # or in the "license" file accomp...
PypiClean
/StaticGallery-0.1.0.tar.gz/StaticGallery-0.1.0/static_gallery/static/js/themes/classic/galleria.classic.js
(function($) { /*global jQuery, Galleria */ Galleria.addTheme({ name: 'classic', author: 'Galleria', css: 'galleria.classic.css', defaults: { transition: 'slide', thumbCrop: 'height', // set this to false if you want to show the caption all the time: _toggleInfo: true...
PypiClean
/johnbucmoore_package-0.1.tar.gz/johnbucmoore_package-0.1/johnbucmoore_package/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
/creme-crm-2.4.4.tar.gz/creme-crm-2.4.4/creme/documents/views/document.py
from functools import partial from django.core.exceptions import ValidationError from django.db.transaction import atomic from django.utils.translation import gettext_lazy as _ from creme import documents from creme.creme_core.auth import build_creation_perm as cperm from creme.creme_core.forms.validators import val...
PypiClean
/dg-commonroad-drivability-checker-2023.11.tar.gz/dg-commonroad-drivability-checker-2023.11/third_party/pybind11/.github/pull_request_template.md
<!-- Title (above): please place [branch_name] at the beginning if you are targeting a branch other than master. *Do not target stable*. It is recommended to use conventional commit format, see conventionalcommits.org, but not required. --> ## Description <!-- Include relevant issues or PRs here, describe what changed...
PypiClean
/pulumi_aws_native-0.75.1a1693503310.tar.gz/pulumi_aws_native-0.75.1a1693503310/pulumi_aws_native/ssm/patch_baseline.py
import copy import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from .. import _utilities from . import outputs from ._inputs import * __all__ = ['PatchBaselineArgs', 'PatchBaseline'] @pulumi.input_type class PatchBaselineArgs: def __init__(__s...
PypiClean
/html5print-0.1.2.tar.gz/html5print-0.1.2/README.rst
HTML5 Pretty Print ================== This tool pretty print your HTML, CSS and JavaScript file. The package comes with two parts: * a command line tool, ``html5-print`` * a python module, ``html5print`` .. image:: https://travis-ci.org/berniey/html5print.png?branch=master :target: https://travis-ci.org/b...
PypiClean
/msgraph-sdk-1.0.0a3.tar.gz/msgraph-sdk-1.0.0a3/msgraph/generated/policies/feature_rollout_policies/item/applies_to/validate_properties/validate_properties_post_request_body.py
from __future__ import annotations from kiota_abstractions.serialization import AdditionalDataHolder, Parsable, ParseNode, SerializationWriter from typing import Any, Callable, Dict, List, Optional, Union class ValidatePropertiesPostRequestBody(AdditionalDataHolder, Parsable): """ Provides operations to call t...
PypiClean
/custom-awscli-1.27.51.tar.gz/custom-awscli-1.27.51/awscli/customizations/codedeploy/push.py
import os import sys import zipfile import tempfile import contextlib from datetime import datetime from botocore.exceptions import ClientError from awscli.compat import six from awscli.customizations.codedeploy.utils import validate_s3_location from awscli.customizations.commands import BasicCommand from awscli.com...
PypiClean
/pulumi_oci-1.9.0a1693465256.tar.gz/pulumi_oci-1.9.0a1693465256/pulumi_oci/core/listing_resource_version_agreement.py
import copy import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from .. import _utilities __all__ = ['ListingResourceVersionAgreementArgs', 'ListingResourceVersionAgreement'] @pulumi.input_type class ListingResourceVersionAgreementArgs: def __i...
PypiClean
/msproteomicstools-0.11.0.tar.gz/msproteomicstools-0.11.0/msproteomicstoolslib/format/speclib_db_lib.py
from __future__ import print_function from ..util.utils import * import sys import re from ..data_structures.peak import Peak class Library: """This class contains one spectral library, whatever that means. It provides an read/write interface to the database. It provides an read/write interface to the Spec...
PypiClean
/visor_controlnet-1.1.tar.gz/visor_controlnet-1.1/visor_controlnet/annotator/openpose/util.py
import math import numpy as np import matplotlib import cv2 def draw_bodypose_gt(canvas, candidate): stickwidth = 4 limbSeq = [[2, 3], [2, 6], [3, 4], [4, 5], [6, 7], [7, 8], [2, 9], [9, 10], \ [10, 11], [2, 12], [12, 13], [13, 14], [2, 1], [1, 15], [15, 17], \ [1, 16], [16, 18], ...
PypiClean
/avantpy_extended-0.1.2-py3-none-any.whl/avantpy/converter.py
import os import tokenize from io import StringIO from . import exceptions from .session import state from .utils import Token # ================================= # Note: the strings in this module do not need to be translated. # In particular, the exception 'messages' can essentially be taken # as comments, since t...
PypiClean
/py3rosmsgs-1.13-py3-none-any.whl/roslib/packages.py
import os import stat import sys from subprocess import PIPE from subprocess import Popen from catkin.find_in_workspaces import find_in_workspaces as catkin_find import roslib.manifest # noqa: F401 import rospkg SRC_DIR = 'src' # aliases ROS_PACKAGE_PATH = rospkg.environment.ROS_PACKAGE_PATH ROS_ROOT = rospkg.env...
PypiClean
/way2package2-0.1.tar.gz/way2package2-0.1/README.md
# mypackage A testing package for **Digital Kites** processes. ## Installation Make sure you have [python](http://nodejs.org/) and [pip](https://www.npmjs.com/) installed. ```sh pip install mypackage ``` ## Usage ```sh import mypackage obj = { app_ip:"x.x.x.x", // optional app_name:"your pm2 app name"...
PypiClean
/ssh_ipykernel-1.2.3.tar.gz/ssh_ipykernel-1.2.3/ssh_ipykernel/status.py
import os import mmap import hashlib from ssh_ipykernel.utils import decode_utf8 class Status: """Store status of kernel start in mmap'd file for external tools Arguments: connection_info {dict} -- A ipykernel connection info Keyword Arguments: status_folder {str} -- Folder where to sav...
PypiClean
/sense-push-0.1.18.tar.gz/sense-push-0.1.18/sense_push/core/manager.py
from sense_push.util import * from sense_push.common import * import sense_core as sd import pymysql from sense_push.core.data import PushDataHandler import datetime class SensePushManager(object): def __init__(self, queue_label=None, db_label=None, queue_configs=None, db_config=None, database=None, queue=None):...
PypiClean
/llm_toys-0.1.1-py3-none-any.whl/llm_toys/hf/transformers/models/rag/modeling_rag.py
"""RAG model implementation.""" import copy from dataclasses import dataclass from typing import Callable, List, Optional, Tuple, Union import torch from torch import nn from ...configuration_utils import PretrainedConfig from ...generation import BeamSearchScorer, GenerationConfig, LogitsProcessorList, StoppingCrit...
PypiClean
/sematic-0.0.2.alpha.1654672757-py3-none-any.whl/eventlet/debug.py
debugging Eventlet-powered applications.""" from __future__ import print_function import os import sys import linecache import re import inspect __all__ = ['spew', 'unspew', 'format_hub_listeners', 'format_hub_timers', 'hub_listener_stacks', 'hub_exceptions', 'tpool_exceptions', 'hub_prevent_mul...
PypiClean
/django-templatequery-0.3.0.tar.gz/django-templatequery-0.3.0/src/django_templatequery/template.py
import re from django import template QUERYSET_METHODS = [ 'count', ] def _order_by(queryset, value): args = value.split(',') return queryset.order_by(*args) def _offset(queryset, value): value = int(value) return queryset[value:] def _limit(queryset, value): value = int(value) return qu...
PypiClean
/python_webex_bot-0.901-py3-none-any.whl/python_webex/v1/Webhook.py
import requests import sys class Webhook: def get_all_webhooks(self): """ GETS A LIST OF ALL THE WEBHOOKS CURRENTLY CONNECTED TO YOUR BOT uses the https://api.ciscospark.com/v1/webhooks - GET request details on the list webhooks URL can be found in https://developer.webex.com/docs/...
PypiClean
/jupyterlab_remote_contents-0.1.1.tar.gz/jupyterlab_remote_contents-0.1.1/node_modules/terser/lib/compress/drop-side-effect-free.js
import { AST_Accessor, AST_Array, AST_Arrow, AST_Assign, AST_Binary, AST_Call, AST_Chain, AST_Class, AST_ClassProperty, AST_ConciseMethod, AST_Conditional, AST_Constant, AST_Dot, AST_Expansion, AST_Function, AST_Node, AST_Number, AST_Object, AS...
PypiClean