id stringlengths 1 8 | text stringlengths 6 1.05M | dataset_id stringclasses 1
value |
|---|---|---|
/edman_cli-2023.7.19.tar.gz/edman_cli-2023.7.19/scripts/file_delete.py | def main():
import argparse
import signal
import sys
from edman import DB, File
from scripts.action import Action
# Ctrl-Cを押下された時の対策
signal.signal(signal.SIGINT, lambda sig, frame: sys.exit('\n'))
# コマンドライン引数処理
parser = argparse.ArgumentParser(
description='ファイルを実験データから削除... | PypiClean |
/ViNeSeg-Stroh-0.0.31.tar.gz/ViNeSeg-Stroh-0.0.31/vineseg_Stroh/widgets/label_list_widget.py | from qtpy import QtCore
from qtpy.QtCore import Qt
from qtpy import QtGui
from qtpy.QtGui import QPalette
from qtpy import QtWidgets
from qtpy.QtWidgets import QStyle
# https://stackoverflow.com/a/2039745/4158863
class HTMLDelegate(QtWidgets.QStyledItemDelegate):
def __init__(self, parent=None):
super(HTM... | PypiClean |
/pygame_geometry-0.1.2.tar.gz/pygame_geometry-0.1.2/pygame_geometry/materialgroup.py | from .materialform import MaterialForm
from .materialpoint import MaterialPoint
from .abstract import Vector,Segment,Line
from .motion import Motion
from . import colors
import itertools
import math
class MaterialCollider:
"""Class made especially to deal with one to one collisions."""
def __init__(self):
... | PypiClean |
/abqpy-2023.5.6-py3-none-any.whl/abaqus/Interaction/NormalBehavior.py | from __future__ import annotations
from typing import Union
from typing_extensions import Literal
from abqpy.decorators import abaqus_class_doc, abaqus_method_doc
from ..UtilityAndView.abaqusConstants import (
DEFAULT,
HARD,
LINEAR,
ON,
Boolean,
SymbolicConstant,
)
from ..UtilityAndView.abaq... | PypiClean |
/django-anyvcs-2.5.0.tar.gz/django-anyvcs-2.5.0/django_anyvcs/settings.py |
from django.conf import settings
from . import defaults
import getpass
import socket
VCSREPO_ROOT = settings.VCSREPO_ROOT
VCSREPO_PATH_FUNCTION = getattr(settings, 'VCSREPO_RELPATH_FUNCTION',
defaults.path_function)
VCSREPO_CHECK_NESTED_PATHS = getattr(settings, 'VCSREPO_CHECK_NESTED_P... | PypiClean |
/django-arkid-0.1.3.tar.gz/django-arkid-0.1.3/arkid/drf_expiring_authtoken/serializers.py | from ..oneid_meta.models import User, AccountConfig
from django.utils.translation import ugettext_lazy as _
from rest_framework import serializers
from ..infrastructure.serializers.sms import (
LoginSMSClaimSerializer,
)
class AuthTokenSerializer(serializers.Serializer):
username = serializers.CharField(requ... | PypiClean |
/lightdash_client_python-0.753.0-py3-none-any.whl/lightdash_client/models/api_scheduler_and_targets_response_results_targets_item_type_0.py | import datetime
from typing import Any, Dict, List, Type, TypeVar
import attr
from dateutil.parser import isoparse
T = TypeVar("T", bound="ApiSchedulerAndTargetsResponseResultsTargetsItemType0")
@attr.s(auto_attribs=True)
class ApiSchedulerAndTargetsResponseResultsTargetsItemType0:
"""
Attributes:
c... | PypiClean |
/dayan_api-1.6.tar.gz/dayan_api-1.6/dayan_api/constants.py |
# The name of the package.
PACKAGE_NAME = 'dayan_api'
# The all DCC software ID mappings, we can easily get the corresponding
# ``cgId`` from the alias.
DCC_ID_MAPPINGS = {
'maya': 2000,
'3ds Max': 2001,
'lightwave': 2002,
'arnold': 2003,
'houdini': 2004,
'cinema4d': 2005,
'softimage': 200... | PypiClean |
/ntsc_py-0.2.1.tar.gz/ntsc_py-0.2.1/ntsc_py/nes_ntsc.py | import ctypes
from ._library import LIBRARY
from .utility import ndarray_from_byte_buffer
# setup the argument and return types for NES_NTSC_HEIGHT
LIBRARY.NES_NTSC_HEIGHT.argtypes = None
LIBRARY.NES_NTSC_HEIGHT.restype = ctypes.c_uint
# setup the argument and return types for NES_NTSC_WIDTH_INPUT
LIBRARY.NES_NTSC_WI... | PypiClean |
/model-optimizer-2020.2.12.tar.gz/model-optimizer-2020.2.12/extensions/ops/Cast.py | import logging as log
from mo.front.common.partial_infer.elemental import copy_shape_infer
from mo.graph.graph import Node, Graph
from mo.middle.passes.convert_data_type import np_data_type_to_precision, convert_blob, np_data_type_to_destination_type
from mo.ops.op import Op
from mo.utils.utils import refer_to_faq_msg... | PypiClean |
/Hydrawiser-0.2.tar.gz/Hydrawiser-0.2/README.md | # Hydrawiser
[](https://coveralls.io/github/ptcryan/hydrawiser?branch=master)
[](https://travis-ci.org/ptcryan/hydrawiser)
[{var d="2.7.5";var a=MathJax.ElementJax.mml,f=MathJax.OutputJax.SVG,b=f.BBOX,e=MathJax.Localization;var c="http://www.w3.org/1999/xlink";b.MGLYPH=b.Subclass({type:"image",removeable:false,Init:function(j,o,k,l,r,g){if(g==null){g={}}var i=j.width*1000/f.em,p=j.h... | PypiClean |
/coala-0.11.0.tar.gz/coala-0.11.0/coalib/coala_main.py | import os
import platform
from pyprint.ConsolePrinter import ConsolePrinter
from coalib import VERSION
from coalib.misc.Exceptions import get_exitcode
from coalib.output.Interactions import fail_acquire_settings
from coalib.output.printers.LogPrinter import LogPrinter
from coalib.output.printers.LOG_LEVEL import LOG_... | PypiClean |
/django_machina-1.3.0-py3-none-any.whl/machina/static/machina/build/js/machina.packages.min.js | !function(e,t){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)}:t(e)}("undefined"!=typeof window?window:this,function(e,t){"use strict";function n(e,t,n){n=n||we;var... | PypiClean |
/wildbook_ia-4.0.4-py3-none-any.whl/wbia/dtool/sql_control.py | import collections
import functools
import logging
import os
import re
import uuid
from collections.abc import Mapping, MutableMapping
from contextlib import contextmanager
from os.path import exists, join
import parse
import sqlalchemy
import utool as ut
from deprecated import deprecated
try:
from sqlalchemy.eng... | PypiClean |
/hellotest988.tar.gz/Users/temek/Downloads/cronq-0.17.1/cronq/rabbit_connection.py | import logging
import os
import random
import socket
import string
import time
import urlparse
from cronq.config import RABBITMQ_URL
from haigha.connections.rabbit_connection import RabbitConnection
# cronq jobs can be very long, override heartbeat settings
# to keep rabbitmq connections alive (or there might be pro... | PypiClean |
/msgraph-sdk-1.0.0a3.tar.gz/msgraph-sdk-1.0.0a3/msgraph/generated/drive/root/list_item/document_set_versions/item/restore/restore_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 |
/pyInfinityFlow-0.1.0.6.tar.gz/pyInfinityFlow-0.1.0.6/docs/source/installation.md | # Installation
See below for instructions on how to download **pyInfinityFlow**. It must be installed on a system with Python>=3.8.
## Using Conda Virtual Environment - **RECOMMENDED**
It is best to use a virtual environment so that each of the dependencies can be installed correctly. First, download and install [cond... | PypiClean |
/yt-dlp-custom-0.0.1.tar.gz/yt-dlp-custom-0.0.1/yt_dlp/extractor/discoverygo.py | import re
from .common import InfoExtractor
from ..utils import (
determine_ext,
extract_attributes,
ExtractorError,
int_or_none,
parse_age_limit,
remove_end,
unescapeHTML,
url_or_none,
)
class DiscoveryGoBaseIE(InfoExtractor):
_VALID_URL_TEMPLATE = r'''(?x)https?://(?:www\.)?(?:
... | PypiClean |
/pulumi_azure_nextgen-0.6.2a1613157620.tar.gz/pulumi_azure_nextgen-0.6.2a1613157620/pulumi_azure_nextgen/cdn/v20161002/_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__ = [
'DeepCreatedOriginArgs',
'GeoFilterArgs',
'SkuArgs',
]
@pulumi.input_type
class DeepCreatedOriginArgs:
def __init__(__se... | PypiClean |
/paf_tools-1.0.0-py3-none-any.whl/paf_tools/generators/data/addresses/berlin.py | return_data = [{"Strasse": "Ackerstr.__10115"}, {"Strasse": "Anklamer Str.__10115"}, {"Strasse": "Borsigstr.__10115"}, {"Strasse": "Brunnenstr.__10115"}, {"Strasse": "Eichendorffstr.__10115"}, {"Strasse": "Gartenstr.__10115"}, {"Strasse": "Hannoversche Str.__10115"}, {"Strasse": "Am Festungsgraben__10117"}, {"Strasse":... | PypiClean |
/spdx-tools-0.8.1.tar.gz/spdx-tools-0.8.1/src/spdx_tools/spdx/parser/rdf/file_parser.py | from beartype.typing import Union
from rdflib import RDFS, BNode, Graph, URIRef
from spdx_tools.spdx.model import File, FileType
from spdx_tools.spdx.parser.logger import Logger
from spdx_tools.spdx.parser.parsing_functions import (
construct_or_raise_parsing_error,
raise_parsing_error_if_logger_has_messages,
... | PypiClean |
/facebook_business-17.0.4.tar.gz/facebook_business-17.0.4/facebook_business/adobjects/agencyclientdeclaration.py |
# You are hereby granted a non-exclusive, worldwide, royalty-free license to
# use, copy, modify, and distribute this software in source code or binary
# form for use in connection with the web services and APIs provided by
# Facebook.
# As with any software that integrates with the Facebook platform, your use
# of t... | PypiClean |
/simple_plus-7.0b2.tar.gz/simple_plus-7.0b2/simplepro/static/admin/xgplayer/controls/pc.js | !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.pc=t():(e.xgplayer=e.xgplayer||{},e.xgplayer.PlayerControls=e.xgplayer.PlayerControls||{},e.xgplayer.PlayerControls.pc=t())}(window,(function(){return f... | PypiClean |
/wasp-launcher-0.0.2.tar.gz/wasp-launcher-0.0.2/wasp_launcher/static/angular/angular-1.6.1/i18n/angular-locale_mua.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 |
/ciefunctions-1.0.2.tar.gz/ciefunctions-1.0.2/tc1_97/MathJax-2.7.5/jax/output/HTML-CSS/fonts/Latin-Modern/Size1/Regular/Main.js | MathJax.OutputJax["HTML-CSS"].FONTDATA.FONTS.LatinModernMathJax_Size1={directory:"Size1/Regular",family:"LatinModernMathJax_Size1",testString:"\u00A0\u0302\u0303\u0305\u0306\u030C\u0311\u032C\u032D\u032E\u032F\u0330\u0332\u0333\u033F",32:[0,0,332,0,0],40:[797,297,422,116,362],41:[797,297,422,60,306],47:[905,405,617,56,... | PypiClean |
/imctools-2.1.8-py3-none-any.whl/CHANGELOG.md | # Changelog
All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## [2.1.8] - 2021-09-12
- Fix: Fix OME-XML element order (#114).
#... | PypiClean |
/alipay-sdk-python-pycryptodome-3.3.202.tar.gz/alipay-sdk-python-pycryptodome-3.3.202/alipay/aop/api/domain/ZhimaCreditPeIndustryTradeCloseModel.py | import json
from alipay.aop.api.constant.ParamConstants import *
class ZhimaCreditPeIndustryTradeCloseModel(object):
def __init__(self):
self._close_time = None
self._ext_info = None
self._operate = None
self._out_fund_no = None
self._product_code = None
self._zm_... | PypiClean |
/bf_nlu_banki-1.4-py3-none-any.whl/bf_nlu_banki/graph_components/validators/default_recipe_validator.py | from __future__ import annotations
from collections import defaultdict
from typing import Iterable, List, Dict, Text, Any, Set, Type, cast
from bf_nlu_banki.core.featurizers.precomputation import CoreFeaturizationInputConverter
from bf_nlu_banki.engine.graph import ExecutionContext, GraphComponent, GraphSchema, Schema... | PypiClean |
/pymongowatch-1.0.0-py3-none-any.whl/pymongo_mask/pymongo.py | import importlib.machinery
import logging.config
import os
import pathlib
import sys
import warnings
try:
import yaml
except ModuleNotFoundError:
# pyyaml is not installed; but we can go on without loading yaml
# configuration
pass
class __PymongoMaskImporter(importlib.machinery.PathFinder):
"""
... | PypiClean |
/shed-skin-0.9.6.tar.gz/shed-skin-0.9.6/shedskin/__init__.py | import argparse
import logging
import os.path
import platform
import struct
import sys
import time
import traceback
if platform.system() == 'Windows':
import blessed as blessings
else:
import blessings
from . import annotate, config, cpp, error, graph, infer
class ShedskinFormatter(logging.Formatter):
... | PypiClean |
/json_repository-0.2.2.tar.gz/json_repository-0.2.2/json_repository/repositories/base_json_repository.py | from ..context.json_context import JsonContext
class BaseJsonRepository(object):
def __init__(self, entity_name, filepath="./"):
self.context = JsonContext(entity_name, filepath=filepath)
def __enter__(self):
"""Open context
"""
self.context.open()
return self
... | PypiClean |
/ebb-lint-0.19.1.0.tar.gz/ebb-lint-0.19.1.0/ebb_lint/checkers/check_docstrings.py | from __future__ import unicode_literals
import collections
import re
import enum
from ebb_lint.checkers.registration import register_checker
from ebb_lint.errors import Errors
_single_line_docstring = re.compile(r'\A"""(\s*)(.*?)(\s*)"""\Z')
_docstring_leading_indent = re.compile(r'^( *)(.*)$')
_bad_test_docstri... | PypiClean |
/cctbx-2020.8-0_py36h1d45459-cp36-cp36m-manylinux2010_x86_64.whl/libtbx/console_utils.py | from __future__ import absolute_import, division, print_function
import sys
class colors_(object):
def __init__(self):
self.black = 30
self.red = 31
self.green = 32
self.yellow = 33
self.blue = 34
self.magenta = 35
self.cyan = 36
self.white = 37
self.endc = 0
def get_escape_str... | PypiClean |
/mlcvzoo_base-5.3.5-py3-none-any.whl/mlcvzoo_base/api/data/ocr_perception.py |
# TODO: Consider naming this "TextPerception" instead
"""Module for handling attributes of OCR objects"""
from __future__ import annotations
from dataclasses import dataclass, field
from typing import Any, Dict, List
import numpy as np
from mlcvzoo_base.api.interfaces import Perception
DEFAULT_SCORE: float = 1.0
... | PypiClean |
/sedaro-4.5.2-py3-none-any.whl/sedaro_base_client/paths/models_branches_branch_id_changes_/get.py | from dataclasses import dataclass
import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
from sedaro_base_client import api_client, exceptions
from datetime import date, datetime # noqa: F401
import decimal # noqa: F401
import functools # noqa: F401
import io # noqa: F401
import re... | PypiClean |
/lbrlabs_pulumi_scaleway-1.10.0a1687249042.tar.gz/lbrlabs_pulumi_scaleway-1.10.0a1687249042/lbrlabs_pulumi_scaleway/secret.py |
import copy
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from . import _utilities
__all__ = ['SecretArgs', 'Secret']
@pulumi.input_type
class SecretArgs:
def __init__(__self__, *,
description: Optional[pulumi.Input[str]]... | PypiClean |
/pulumi_azure_nextgen-0.6.2a1613157620.tar.gz/pulumi_azure_nextgen-0.6.2a1613157620/pulumi_azure_nextgen/sql/v20200202preview/get_managed_instance_key.py |
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union
from ... import _utilities, _tables
__all__ = [
'GetManagedInstanceKeyResult',
'AwaitableGetManagedInstanceKeyResult',
'get_managed_instance_key',
]
@pulumi.output_type
class GetManagedInstanceK... | PypiClean |
/msgraph_beta_sdk-1.0.0a9-py3-none-any.whl/msgraph/generated/users/item/calendar_groups/item/calendars/item/calendar_view/item/instances/item/attachments/create_upload_session/create_upload_session_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, TYPE_CHECKING, Union
if TYPE_CHECKING:
from .............models import attachment_item
class CreateUploadSessionPos... | PypiClean |
/nm_transformers_nightly-1.6.0.20230829-py3-none-any.whl/transformers/models/openai/convert_openai_original_tf_checkpoint_to_pytorch.py | import argparse
import torch
from transformers import OpenAIGPTConfig, OpenAIGPTModel, load_tf_weights_in_openai_gpt
from transformers.utils import CONFIG_NAME, WEIGHTS_NAME, logging
logging.set_verbosity_info()
def convert_openai_checkpoint_to_pytorch(openai_checkpoint_folder_path, openai_config_file, pytorch_du... | PypiClean |
/inqbus.bannerrotation-1.1.tar.gz/inqbus.bannerrotation-1.1/inqbus/bannerrotation/browser/scripts/jq_cycle.js | ;(function($) {
var ver = '2.88';
// if $.support is not defined (pre jQuery 1.3) add what I need
if ($.support == undefined) {
$.support = {
opacity: !($.browser.msie)
};
}
function debug(s) {
if ($.fn.cycle.debug)
log(s);
}
function log() {
if (window.console && window.console.log)
window.console.log('... | PypiClean |
/gwas_sumstats_tools-1.0.4-py3-none-any.whl/gwas_sumstats_tools/validate.py | from typing import Union
from pathlib import Path
import pandas as pd
import petl as etl
from pandera import errors
from rich import print
from gwas_sumstats_tools.schema.data_table import SumStatsSchema
from gwas_sumstats_tools.interfaces.data_table import SumStatsTable
from gwas_sumstats_tools.interfaces.metadata im... | PypiClean |
/gui/features/neighborhoods_comparison.py | from typing import List, Tuple
import pandas as pd
import streamlit as st
from embcompare import EmbeddingComparison
from loguru import logger
def display_neighborhoods_comparisons(
comparison: EmbeddingComparison, elements: List[Tuple[str, float]]
):
"""Display comparisons between neighbors of the given lis... | PypiClean |
/shutil_extra-0.0.6.tar.gz/shutil_extra-0.0.6/shutil_extra/dirtree.py | import os
import shutil
class __TreeNode(object):
def __init__(self, lv):
super().__init__()
self.lv = lv
self.children = []
class __JointNode(__TreeNode):
pass
class __DirNode(__TreeNode):
def __init__(self, lv, dirname):
super().__init__(lv)
self.dirname = dir... | PypiClean |
/chromedriver-py-116.0.5845.96.tar.gz/chromedriver-py-116.0.5845.96/README.md | # chromedriver-py
downloads and installs the latest chromedriver binary version for automated testing of webapps.
the installer supports linux, mac and windows operating systems.
this package is maintained by an automated update script on travis.
if a new chromedriver version is out, this package will automaticly... | PypiClean |
/sciexp2-exprun-0.3.3.tar.gz/sciexp2-exprun-0.3.3/sciexp2/exprun/process.py | __author__ = "Lluís Vilanova"
__copyright__ = "Copyright 2019-2020, Lluís Vilanova"
__license__ = "GPL version 3 or later"
import collections
import os
import re
import six
# pylint: disable=redefined-builtin
def get_tids(shell, pid, filter=None):
"""Get ids of all threads in a given process.
Parameters
... | PypiClean |
/FAST_OAD_CS23-1.2.0-py3-none-any.whl/fastga/models/aerodynamics/aerodynamics.py |
# This file is part of FAST-OAD_CS23 : A framework for rapid Overall Aircraft Design
# Copyright (C) 2022 ONERA & ISAE-SUPAERO
# FAST 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 ... | PypiClean |
/pulumi_aws_native-0.75.1a1693503310.tar.gz/pulumi_aws_native-0.75.1a1693503310/pulumi_aws_native/ivs/recording_configuration.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 ._enums import *
from ._inputs import *
__all__ = ['RecordingConfigurationArgs', 'RecordingConfiguration']
@pulumi.input_type
class... | PypiClean |
/unimatrix.ext.jose-1.5.1.tar.gz/unimatrix.ext.jose-1.5.1/unimatrix/ext/jose/jws.py | from typing import Any
from unimatrix.ext import crypto
from unimatrix.ext.crypto.trustedpublickey import TrustedPublicKey
from .algorithms import ALGORITHM_MAPPING
from .decoder import JOSEPayloadDecoder
from .header import JOSEHeader
from .jwt import JSONWebToken
from .signature import JOSESignature
from .utils imp... | PypiClean |
/taskcc-alipay-sdk-python-3.3.398.tar.gz/taskcc-alipay-sdk-python-3.3.398/alipay/aop/api/request/KoubeiRetailShopitemModifyRequest.py | import json
from alipay.aop.api.FileItem import FileItem
from alipay.aop.api.constant.ParamConstants import *
from alipay.aop.api.domain.KoubeiRetailShopitemModifyModel import KoubeiRetailShopitemModifyModel
class KoubeiRetailShopitemModifyRequest(object):
def __init__(self, biz_model=None):
self._biz... | PypiClean |
/eccw_gui-1.1.4-py3-none-any.whl/eccw_gui/plot_app/controllers/curve_graphicSettings.py |
from PyQt5 import QtWidgets
from collections import OrderedDict
from eccw_gui.plot_app.viewers.curve_graphicSettings import Ui_Form
from eccw_gui.shared.controllers.label import Label
from eccw_gui.shared.controllers.spinBox import SpinBox
from eccw_gui.shared.controllers.colorButton import ColorButton
from eccw_gui.... | PypiClean |
/pandeia.engine-3.0.tar.gz/pandeia.engine-3.0/README.md | The Pandeia engine is a 'simulation-hybrid' exposure time calculation engine that performs calculations on two-dimensional astronomical scenes created by the user. It uses a pixel-based 3D approach, modeling both the spatial and wavelength dimensions using realistic PSFs for each instrument mode, and handles saturation... | PypiClean |
/moin-1.9.11.tar.gz/moin-1.9.11/MoinMoin/script/old/migration/12_to_13_mig01.py | from_encoding = 'iso8859-1'
#from_encoding = 'utf-8'
to_encoding = 'utf-8'
import os.path, sys, shutil, urllib
sys.path.insert(0, '../../../..')
from MoinMoin import wikiutil
from MoinMoin.script.migration.migutil import opj, listdir, copy_file, copy_dir
# this is a copy of the wikiutil.unquoteFilename of moin 1.2... | PypiClean |
/adafruit-circuitpython-ssd1325-1.4.10.tar.gz/adafruit-circuitpython-ssd1325-1.4.10/.github/PULL_REQUEST_TEMPLATE/adafruit_circuitpython_pr.md | # SPDX-FileCopyrightText: 2021 Adafruit Industries
#
# SPDX-License-Identifier: MIT
Thank you for contributing! Before you submit a pull request, please read the following.
Make sure any changes you're submitting are in line with the CircuitPython Design Guide, available here: https://docs.circuitpython.org/en/latest... | PypiClean |
/Billabong-0.2.5-py3-none-any.whl/billabong/__main__.py | import os
import sys
from baker import command, run
try:
from pygments import highlight
from pygments.lexers import JsonLexer
from pygments.formatters import TerminalFormatter
except ImportError:
highlight = None
from billabong import billabong
from billabong.settings import inventory, stores
from bil... | PypiClean |
/taskcc-alipay-sdk-python-3.3.398.tar.gz/taskcc-alipay-sdk-python-3.3.398/alipay/aop/api/request/MybankCreditLoantradeLoanarCreateRequest.py | import json
from alipay.aop.api.FileItem import FileItem
from alipay.aop.api.constant.ParamConstants import *
from alipay.aop.api.domain.MybankCreditLoantradeLoanarCreateModel import MybankCreditLoantradeLoanarCreateModel
class MybankCreditLoantradeLoanarCreateRequest(object):
def __init__(self, biz_model=Non... | PypiClean |
/django-suit-ckeditor-custom-1.0.11.tar.gz/django-suit-ckeditor-custom-1.0.11/suit_ckeditor/static/suit-ckeditor/ckeditor/lang/sl.js | /*
Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or https://ckeditor.com/license
*/
CKEDITOR.lang['sl']={"editor":"Urejevalnik obogatenega besedila","editorPanel":"Plošča urejevalnika obogatenega besedila","common":{"editorHelp":"Pritisnite ALT 0 za pomoč","b... | PypiClean |
/aws-sam-cli-without-docker-0.48.0.tar.gz/aws-sam-cli-without-docker-0.48.0/samcli/commands/logs/logs_context.py | import logging
import boto3
import botocore
from samcli.commands.exceptions import UserException
from samcli.lib.logs.fetcher import LogsFetcher
from samcli.lib.logs.formatter import LogsFormatter, LambdaLogMsgFormatters, JSONMsgFormatter, KeywordHighlighter
from samcli.lib.logs.provider import LogGroupProvider
from s... | PypiClean |
/PyPacMan-0.1.8.tar.gz/PyPacMan-0.1.8/pypacman/ai/a_star.py | """
Algoritmo A*
Autores:
Peter Hart, Nils Nilsson and Bertram Raphael
Implmentador:
Péricles Lopes Machado [gogo40] (pericles.raskolnikoff.gmail.com)
Tipo:
Grafos
Descrição:
O Algoritmo A* é uma generalização do algoritmo de Dijkstra que
permite acelerar a busca com uma heuristica que utiliza propri... | PypiClean |
/contrail-api-client-2005.tar.gz/contrail-api-client-2005/vnc_api/gen/heat/resources/physical_role_heat.py |
from builtins import str
from builtins import range
from contrail_heat.resources import contrail
try:
from heat.common.i18n import _
except ImportError:
pass
from heat.engine import attributes
from heat.engine import constraints
from heat.engine import properties
try:
from heat.openstack.common import log ... | PypiClean |
/verizon-ap-is-sdk-1.0.0.tar.gz/verizon-ap-is-sdk-1.0.0/verizon/models/firmware_upgrade_device_list_item.py | from verizon.api_helper import APIHelper
class FirmwareUpgradeDeviceListItem(object):
"""Implementation of the 'FirmwareUpgradeDeviceListItem' model.
A JSON object for each device that was included in the upgrade, showing
the device IMEI, the status of the upgrade, and additional information
about t... | PypiClean |
/frac-1.1.2.tar.gz/frac-1.1.2/README |
Rational approximation to a floating point number with bounded denominator.
Uses the [Mediant Method](https://en.wikipedia.org/wiki/Mediant_method).
This module also provides an implementation of the continued fraction method as
described by Aberth in "A method for exact computation with rational numbers".
The algor... | PypiClean |
/sage-superset-1.0.0.tar.gz/sage-superset-1.0.0/superset/db_engine_specs/trino.py | import logging
from datetime import datetime
from typing import Any, Dict, List, Optional, TYPE_CHECKING
from urllib import parse
import simplejson as json
from flask import current_app
from sqlalchemy.engine.url import make_url, URL
from superset.db_engine_specs.base import BaseEngineSpec
from superset.utils import ... | PypiClean |
/Titter-1.tar.gz/Titter-1/README.md | # pipware 🐍
Using PyPi packages, you can run anything on a victims machine without interacting with them, just by having them run one of these packages.
PIPWare is a showcase of a file gathering information whilst running behind a non-malicious module.
# Usage 💻
If you want to try this package out for yourself, jus... | PypiClean |
/b26_toolkit-0.1a1.tar.gz/b26_toolkit-0.1a1/b26_toolkit/instruments/newport_smc100.py | import clr # run pip install pythonnet
import sys, os
import time
from pylabcontrol.core.read_write_functions import get_config_value
from pylabcontrol.core import Parameter, Instrument
# import dll for SMC100
dll_path = get_config_value('SMC100_DLL_PATH',
os.path.join(os.path.dirname(os... | PypiClean |
/orbax_export-0.0.3-py3-none-any.whl/orbax/export/examples/flax_mnist_main.py |
r"""Export a MNIST JAX model.
python flax_mnist_main.py --output_dir=<OUTPUT_DIR>
"""
from absl import app
from absl import flags
from absl import logging
import flax.linen as nn
import jax
import jax.numpy as jnp
from orbax.export import ExportManager
from orbax.export import JaxModule
from orbax.export import Serv... | PypiClean |
/imgtec.codescape-8.6.5-cp27-cp27mu-manylinux1_i686.whl/imgtec/console/perfcount.py |
from imgtec.console.support import *
from imgtec.console.results import *
from imgtec.console.regs import regs, regtype
from imgtec.lib.rst import simple_table
from imgtec.console.generic_device import cpuinfo
from imgtec.lib.namedbitfield import namedbitfield, compile_fields
from imgtec.console.commands import reset
... | PypiClean |
/paddle_fl-1.2.0-py3-none-any.whl/paddle_fl/paddle_fl/core/strategy/details/vars_distributed.py | from __future__ import print_function
from paddle.fluid.framework import Variable
class VarStruct(object):
"""
record part properties of a Variable in python.
"""
def __init__(self, name, shape, dtype, type, lod_level, persistable):
self.name = name
self.shape = shape
self.dty... | PypiClean |
/dsc-python-sdk-1.1.8.tar.gz/dsc-python-sdk-1.1.8/dsc_sdk/proto/decimal/swap/v1/events_pb2.py |
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf import reflection as _reflection
from google.protobuf import symbol_database as _symbol_database
# @@protoc_insertion_point(imports)
_sym_db = _symbol_database.Default()
from gogoproto import g... | PypiClean |
/portapy-0.0.1.post2-py3-none-any.whl/portapy-js/node_modules/typescript/lib/lib.es2019.array.d.ts |
interface ReadonlyArray<T> {
/**
* Calls a defined callback function on each element of an array. Then, flattens the result into
* a new array.
* This is identical to a map followed by flat with depth 1.
*
* @param callback A function that accepts up to three arguments. The flatMap metho... | PypiClean |
/py-pure-client-1.38.0.tar.gz/py-pure-client-1.38.0/pypureclient/flasharray/FA_2_7/api/smtp_api.py | from __future__ import absolute_import
import re
# python 2 and python 3 compatibility library
import six
from typing import List, Optional
from .. import models
class SMTPApi(object):
def __init__(self, api_client):
self.api_client = api_client
def api27_smtp_servers_get_with_http_info(
s... | PypiClean |
/django_htmx_ui_adminlte-0.1.13-py3-none-any.whl/django_htmx_ui_adminlte/static/adminlte/plugins/summernote/lang/summernote-lt-LV.min.js | !function(t,a){if("object"==typeof exports&&"object"==typeof module)module.exports=a();else if("function"==typeof define&&define.amd)define([],a);else{var e=a();for(var r in e)("object"==typeof exports?exports:t)[r]=e[r]}}(self,(function(){return(t=jQuery).extend(t.summernote.lang,{"lv-LV":{font:{bold:"Treknraksts",ita... | PypiClean |
/django_auditlog-3.0b1-py3-none-any.whl/auditlog/models.py | import ast
import contextlib
import json
from copy import deepcopy
from datetime import timezone
from typing import Any, Callable, Dict, List, Union
from dateutil import parser
from dateutil.tz import gettz
from django.conf import settings
from django.contrib.contenttypes.fields import GenericRelation
from django.cont... | PypiClean |
/json-scribe-2.0.0.tar.gz/json-scribe-2.0.0/README.rst | JSON Logging
============
Write your logs as json-lines.
+---------------+-------------------------------------------------+
| Source Code | `aweber/json-scribe`_ |
+---------------+-------------------------------------------------+
| Downloads | json-scribe @ `pypi.org`_ ... | PypiClean |
/google-endpoints-api-management-1.11.1.tar.gz/google-endpoints-api-management-1.11.1/endpoints_management/config/service_config.py | from __future__ import absolute_import
import logging
import json
import os
import urllib3
from apitools.base.py import encoding
from ..gen import servicemanagement_v1_messages as messages
from oauth2client import client
from urllib3.contrib import appengine
_logger = logging.getLogger(__name__)
_GOOGLE_API_SCOPE ... | PypiClean |
/lark-oapi-1.0.19.tar.gz/lark-oapi-1.0.19/lark_oapi/api/vc/v1/model/get_reserve_config_admin_request.py |
from typing import *
from lark_oapi.core.enum import HttpMethod, AccessTokenType
from lark_oapi.core.model import BaseRequest
class GetReserveConfigAdminRequest(BaseRequest):
def __init__(self) -> None:
super().__init__()
self.scope_type: Optional[int] = None
self.user_id_type: Optional[... | PypiClean |
/pulumi_huaweicloud-0.0.8.tar.gz/pulumi_huaweicloud-0.0.8/pulumi_huaweicloud/get_availability_zones.py |
import copy
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from . import _utilities
__all__ = [
'GetAvailabilityZonesResult',
'AwaitableGetAvailabilityZonesResult',
'get_availability_zones',
'get_availability_zones_output',
]
@... | PypiClean |
/collective.formwidget.mathjax-1.0.tar.gz/collective.formwidget.mathjax-1.0/src/collective/formwidget/mathjax/resources/mathjax/unpacked/extensions/MathMenu.js | (function (HUB,HTML,AJAX,CALLBACK,OUTPUT) {
var VERSION = "2.1";
var SIGNAL = MathJax.Callback.Signal("menu") // signal for menu events
MathJax.Extension.MathMenu = {
version: VERSION,
signal: SIGNAL
};
var isPC = HUB.Browser.isPC, isMSIE = HUB.Browser.isMSIE, isIE9 = ((document.documentMode||0)... | PypiClean |
/py-pure-client-1.38.0.tar.gz/py-pure-client-1.38.0/pypureclient/flasharray/FA_2_3/models/connection_get_response.py | import pprint
import re
import six
import typing
from ....properties import Property
if typing.TYPE_CHECKING:
from pypureclient.flasharray.FA_2_3 import models
class ConnectionGetResponse(object):
"""
Attributes:
swagger_types (dict): The key is attribute name
and the va... | PypiClean |
/jalon.theme-3.1.5.tar.gz/jalon.theme-3.1.5/jalon/theme/browser/scripts/amcharts/themes/chalk.js | AmCharts.themes.chalk = {
themeName: "chalk",
AmChart: {
color: "#e7e7e7",
fontFamily: "Covered By Your Grace",
fontSize: 18,
handDrawn: true,
backgroundColor: "#282828"
},
AmCoordinateChart: {
colors: ["#FFFFFF", "#e384a6", "#f4d499", "#4d90d6", "#c7e38c", "#9986c8", "#edf28c", "#ffd1d4", "#5ee1dc",... | PypiClean |
/mediasolutions-0.0.7.tar.gz/mediasolutions-0.0.7/python/solutions/selfie_segmentation.py | """MediaPipe Selfie Segmentation."""
from typing import NamedTuple
import numpy as np
# The following imports are needed because python pb2 silently discards
# unknown protobuf fields.
# pylint: disable=unused-import
from mediapipe.calculators.core import constant_side_packet_calculator_pb2
from mediapipe.calculators... | PypiClean |
/streamlit-elements-0.1.0.tar.gz/streamlit-elements-0.1.0/streamlit_elements/frontend/build/monaco/vs/basic-languages/handlebars/handlebars.js | define("vs/basic-languages/handlebars/handlebars", ["require","require"],(require)=>{
var moduleExports=(()=>{var h=Object.create;var m=Object.defineProperty;var b=Object.getOwnPropertyDescriptor;var u=Object.getOwnPropertyNames;var x=Object.getPrototypeOf,k=Object.prototype.hasOwnProperty;var l=e=>m(e,"__esModule",{va... | PypiClean |
/temporai-0.0.2-py3-none-any.whl/tempor/plugins/prediction/one_off/classification/__init__.py | import abc
from typing import Tuple
import numpy as np
import pydantic
from typing_extensions import Self
import tempor.plugins.core as plugins
from tempor.data import dataset, samples
def check_data_class(data):
if not isinstance(data, dataset.OneOffPredictionDataset):
raise TypeError(
"Exp... | PypiClean |
/extractable-0.0.29.tar.gz/extractable-0.0.29/src/genalog/ocr/README.md | # GROK Client
Use the GROK client to make rest calls to the Azure Search Service to create and run the indexing pipeline. Blob client is used to transfer the images to blob and download the extracted OCR from blob.
Example usage:
1. Create an .env file with the environment variables that includes the names of you in... | PypiClean |
/reyapi-0.3-py3-none-any.whl/reytool/remail.py | from typing import Dict, Iterable, Optional, Union
from smtplib import SMTP
from email.mime.text import MIMEText
from email.mime.multipart import MIMEMultipart
from .rbase import get_first_notnull
class REmail(object):
"""
Rey's `E-mail` type.
"""
def __init__(
self,
email_username:... | PypiClean |
/alipay_sdk_python-3.6.740-py3-none-any.whl/alipay/aop/api/request/AlipayOpenPublicLifeLabelCreateRequest.py | import json
from alipay.aop.api.FileItem import FileItem
from alipay.aop.api.constant.ParamConstants import *
from alipay.aop.api.domain.AlipayOpenPublicLifeLabelCreateModel import AlipayOpenPublicLifeLabelCreateModel
class AlipayOpenPublicLifeLabelCreateRequest(object):
def __init__(self, biz_model=None):
... | PypiClean |
/Volt-0.0.3.tar.gz/Volt-0.0.3/volt/test/fixtures/engines/engine_pass/04_dream-within-a-dream.md | ---
title: Dream Within A Dream
time: 1998/04/05 08:00
tags: fischer, saito, eames
---
Look, just because I don't be givin' no man a foot massage don't make it right for Marsellus to throw Antwone into a glass motherfuckin' house, fuckin' up the way the nigger talks. Motherfucker do that shit to me, he better paralyze... | PypiClean |
/CaptainSoul-0.1.9.tar.gz/CaptainSoul-0.1.9/cptsoul/mainwindow/watchlist.py |
import gtk
from cptsoul import icons
from cptsoul.common import CptCommon
from cptsoul.mainwindow.loginlist import LoginList
class WatchList(gtk.TreeView, CptCommon):
_loginColumn = 1
pixs = {
'actif': icons.green,
'away': icons.orange,
'lock': icons.red
}
def __init__(self)... | PypiClean |
/Mathics3-6.0.2.tar.gz/Mathics3-6.0.2/mathics/builtin/colors/color_operations.py | import itertools
from math import floor
from mathics.builtin.base import Builtin
from mathics.builtin.colors.color_directives import ColorError, RGBColor, _ColorObject
from mathics.builtin.colors.color_internals import convert_color
from mathics.builtin.image.base import Image
from mathics.core.atoms import Integer, M... | PypiClean |
/git-deps-1.1.0.zip/git-deps-1.1.0/git_deps/html/node_modules/source-map/lib/array-set.js | * Copyright 2011 Mozilla Foundation and contributors
* Licensed under the New BSD license. See LICENSE or:
* http://opensource.org/licenses/BSD-3-Clause
*/
var util = require('./util');
var has = Object.prototype.hasOwnProperty;
var hasNativeMap = typeof Map !== "undefined";
/**
* A data structure which is a com... | PypiClean |
/pulumi_azure_nextgen-0.6.2a1613157620.tar.gz/pulumi_azure_nextgen-0.6.2a1613157620/pulumi_azure_nextgen/network/v20190901/ddos_protection_plan.py |
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union
from ... import _utilities, _tables
from . import outputs
__all__ = ['DdosProtectionPlan']
class DdosProtectionPlan(pulumi.CustomResource):
def __init__(__self__,
resource_name: str,
... | PypiClean |
/mykatlas-0.6.1.tar.gz/mykatlas-0.6.1/mccortex/results/kmer_agnostic120/run.sh |
# xtrace prints commands as we run them
set -euo pipefail
set -o xtrace
CTXDIR=../..
CTXK=$CTXDIR/bin/ctx
READSIM=$CTXDIR/libs/readsim/readsim
ALLREADS=$CTXDIR/libs/seq_file/scripts/perfect_covg.sh
STRCHK=$CTXDIR/libs/bioinf-perl/sim_mutations/sim_substrings.pl
CONTIG_STATS=$CTXDIR/libs/bioinf-perl/fastn_scripts/cont... | PypiClean |
/intel_scipy-1.0.0.0-cp36-cp36m-win_amd64.whl/scipy/_lib/_numpy_compat.py | from __future__ import division, print_function, absolute_import
import warnings
import sys
from warnings import WarningMessage
import re
from functools import wraps
import numpy as np
from scipy._lib._version import NumpyVersion
if NumpyVersion(np.__version__) > '1.7.0.dev':
_assert_warns = np.testing.assert_w... | PypiClean |
/pysyscall-intercept-1.0.2.tar.gz/external/pybind11/docs/advanced/embedding.rst | .. _embedding:
Embedding the interpreter
#########################
While pybind11 is mainly focused on extending Python using C++, it's also
possible to do the reverse: embed the Python interpreter into a C++ program.
All of the other documentation pages still apply here, so refer to them for
general pybind11 usage. ... | PypiClean |
/arbor-0.5.tar.gz/arbor-0.5/python/pybind11/docs/advanced/functions.rst | Functions
#########
Before proceeding with this section, make sure that you are already familiar
with the basics of binding functions and classes, as explained in :doc:`/basics`
and :doc:`/classes`. The following guide is applicable to both free and member
functions, i.e. *methods* in Python.
.. _return_value_policie... | PypiClean |
/lava_nc-0.8.0-py3-none-any.whl/lava/proc/clp/novelty_detector/models.py |
import numpy as np
from lava.magma.core.sync.protocols.loihi_protocol import LoihiProtocol
from lava.magma.core.model.py.ports import PyInPort, PyOutPort
from lava.magma.core.model.py.type import LavaPyType
from lava.magma.core.resources import CPU
from lava.magma.core.decorator import implements, requires, tag
from ... | PypiClean |
/tenable_jira_cloud_mf-1.1.11.post5-py3-none-any.whl/tenable_jira/transform.py | import logging, time, arrow, json
from hashlib import md5
from pkg_resources import resource_string as embedded
from restfly.utils import trunc
from .utils import flatten
from tenable.io import TenableIO
from tenable.sc import TenableSC
from tenable.io.exports import ExportsIterator
from tenable.sc.analysis import Anal... | PypiClean |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.