id stringlengths 1 8 | text stringlengths 6 1.05M | dataset_id stringclasses 1
value |
|---|---|---|
/home_assistant_frontend-20230901.0-py3-none-any.whl/hass_frontend/frontend_es5/53600-hN4FVrDdEGg.js | "use strict";(self.webpackChunkhome_assistant_frontend=self.webpackChunkhome_assistant_frontend||[]).push([[53600],{58014:function(e,t,o){function i(e,t){if(e.closest)return e.closest(t);for(var o=e;o;){if(n(o,t))return o;o=o.parentElement}return null}function n(e,t){return(e.matches||e.webkitMatchesSelector||e.msMatch... | PypiClean |
/liver-ct-segmentation-package-1.6.0.tar.gz/liver-ct-segmentation-package-1.6.0/liver_ct_segmentation_package/utils/volume_utils.py | def save_vol(fn, vol):
import mrcfile
f = mrcfile.new(fn, overwrite=True)
f.set_data(vol)
f.close()
def paste_slices(tup):
pos, w, max_w = tup
wall_min = max(pos, 0)
wall_max = min(pos+w, max_w)
block_min = -min(pos, 0)
block_max = max_w-max(pos+w, max_w)
block_max = block_max... | PypiClean |
/pyramid_helpers-1.9.0.tar.gz/pyramid_helpers-1.9.0/pyramid_helpers/api_doc.py | import inspect
import logging
import re
from formencode.api import NoDefault
from pyramid.httpexceptions import HTTPBadRequest
from pyramid.security import NO_PERMISSION_REQUIRED
log = logging.getLogger(__name__)
DECORATOR_RE = re.compile(r'^@(?P<func>paginate|validate)\((?P<args>.+)?\)$')
PAGER_PARAMS = {
's... | PypiClean |
/sftpgo-client-0.3.1.tar.gz/sftpgo-client-0.3.1/sftpgo_client/base/api/quota/user_transfer_quota_update_usage.py | from typing import Any, Dict, Optional, Union, cast
import httpx
from ...client import Client
from ...models.api_response import ApiResponse
from ...models.transfer_quota_usage import TransferQuotaUsage
from ...models.user_transfer_quota_update_usage_mode import (
UserTransferQuotaUpdateUsageMode,
)
from ...types... | PypiClean |
/aifs_nni-1.9.5-py3-none-manylinux1_x86_64.whl/aifs_nni-1.9.5.data/data/nni/node_modules/asn1/README.md | node-asn1 is a library for encoding and decoding ASN.1 datatypes in pure JS.
Currently BER encoding is supported; at some point I'll likely have to do DER.
## Usage
Mostly, if you're *actually* needing to read and write ASN.1, you probably don't
need this readme to explain what and why. If you have no idea what ASN.... | PypiClean |
/enochecker-0.5.0.tar.gz/enochecker-0.5.0/README.md | # EnoChecker [](https://pypi.org/project/enochecker) [](https://github.com/enowars/enochecker/actions/workflows/pythonapp.yml) 
# pylint: disable=duplicate-code
# pylint: disable=line-too-long
# pylint: disable=missing-function-docstring
# pylint: disable=missing-module-docstring
# pylint: disable=too-many-arguments
# pylint: disable=too-many-branches
# pyl... | PypiClean |
/tequila-basic-1.8.9.tar.gz/tequila-basic-1.8.9/src/tequila/apps/krylov/krylov.py | import copy
import scipy
from tequila import braket, QTensor, simulate
from tequila.hamiltonian.qubit_hamiltonian import QubitHamiltonian
def krylov_method(krylov_circs:list, H:QubitHamiltonian, variables:dict=None, assume_real:bool=False, *args, **kwargs)->tuple:
"""Function that applies Krylov method to an Hami... | PypiClean |
/nau-orchard-0.0.3.tar.gz/nau-orchard-0.0.3/orchard/module/_module.py |
from ._argument import Argument, Exclusive
class Module:
# self.name - name of the module
# self.executable_path - path to the executable file linked to module
# self.arguments - A list of Argument class objects
optionals = None
dependencies = []
def __init__(self, module_data, from_link=Fal... | PypiClean |
/wisconsin_covid19-0.0.2.tar.gz/wisconsin_covid19-0.0.2/README.md | # Wisconsin-Covid19-API
A wrapper library for data listed on [DHS Wisconsin](https://www.dhs.wisconsin.gov/covid-19/data.htm#download).
[](https://www.linkedin.com/in/david-teather-4400a37a/) [
import typing
import struct
from enum import IntEnum
ValidationMessage = typing.Tuple[bool, str]
class Simple(Field):
_fmt = None
_bytesize = 0
def _pack(self, fp: typing.BinaryIO,... | PypiClean |
/aim-ui-3.16.0rc2.tar.gz/aim-ui-3.16.0rc2/aim_ui/build/vs/basic-languages/javascript/javascript.js | define("vs/basic-languages/javascript/javascript", ["require","require"],(require)=>{
var moduleExports=(()=>{var x=Object.create;var s=Object.defineProperty;var u=Object.getOwnPropertyDescriptor;var f=Object.getOwnPropertyNames;var b=Object.getPrototypeOf,k=Object.prototype.hasOwnProperty;var g=e=>s(e,"__esModule",{va... | PypiClean |
/lbrlabs_pulumi_scaleway-1.10.0a1687249042.tar.gz/lbrlabs_pulumi_scaleway-1.10.0a1687249042/pulumiverse_scaleway/container.py |
import copy
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from . import _utilities
__all__ = ['ContainerArgs', 'Container']
@pulumi.input_type
class ContainerArgs:
def __init__(__self__, *,
namespace_id: pulumi.Input[str]... | PypiClean |
/line-bot-sdk-3.3.0.tar.gz/line-bot-sdk-3.3.0/linebot/v3/oauth/models/issue_channel_access_token_response.py | from __future__ import annotations
import pprint
import re # noqa: F401
import json
from pydantic.v1 import BaseModel, Field, StrictInt, StrictStr
class IssueChannelAccessTokenResponse(BaseModel):
"""
Issued channel access token
https://developers.line.biz/en/reference/messaging-api/#issue-channel-acce... | PypiClean |
/pycbc-weave-0.16.0.tar.gz/pycbc-weave-0.16.0/weave/build_tools.py | from __future__ import absolute_import, print_function
import sys
import os
import time
import tempfile
import commands
import subprocess
import warnings
from . import platform_info
# If linker is 'gcc', this will convert it to 'g++'
# necessary to make sure stdc++ is linked in cross-platform way.
import distutils.s... | PypiClean |
/azure-mgmt-logic-10.1.0b1.zip/azure-mgmt-logic-10.1.0b1/azure/mgmt/logic/aio/operations/__init__.py |
from ._workflows_operations import WorkflowsOperations
from ._workflow_versions_operations import WorkflowVersionsOperations
from ._workflow_triggers_operations import WorkflowTriggersOperations
from ._workflow_version_triggers_operations import WorkflowVersionTriggersOperations
from ._workflow_trigger_histories_opera... | PypiClean |
/tiddlywebplugins.hoster-0.9.51.tar.gz/tiddlywebplugins.hoster-0.9.51/tiddlywebplugins/hoster/instance.py | from tiddlywebwiki.instance import (store_structure
as tiddlywebwiki_store_structure)
store_structure = {}
store_structure['bags'] = tiddlywebwiki_store_structure['bags']
store_structure['recipes'] = tiddlywebwiki_store_structure['recipes']
store_contents = {}
store_contents['hoster'] = ['basecontent/main.cs... | PypiClean |
/zetane_engine-1.7.4-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl/zetane/render/mesh.py | class Mesh:
"""The mesh object holds a reference to a mesh in the Zetane universe.
Args:
nsocket (Socket): Socket to communicate with the Zetane Engine.
filepath (str, optional): A string to a mesh filepath.
Returns:
Mesh: A zetane object for a mesh.
"""
def __init__(self, ... | PypiClean |
/mpb_lib-0.1.85-py3-none-any.whl/mpb_lib/sugoi/__init__.py |
from datetime import datetime
from json import loads
import requests
from bs4 import BeautifulSoup
import numpy as np
def doomsday_clock(year):
dc_url = "https://ja.wikipedia.org/wiki/%E4%B8%96%E7%95%8C%E7%B5%82%E6%9C%AB%E6%99%82%E8%A8%88"
resp = requests.get(dc_url)
soup = BeautifulSoup(resp.text, 'html... | PypiClean |
/ms_mint_app-0.3.1.2-py3-none-any.whl/ms_mint_app/plugins/metadata.py | import pandas as pd
import dash
from dash import html, dcc
import dash_bootstrap_components as dbc
from dash_extensions.javascript import Namespace
from dash.dependencies import Input, Output, State
from dash.exceptions import PreventUpdate
from dash_tabulator import DashTabulator
from .. import tools as T
from ..pl... | PypiClean |
/krebszones-0.4.4.tar.gz/krebszones-0.4.4/zones/ovhzone.py | from functools import partial
import sys
log = partial(print,file=sys.stderr)
def testLogin(client):
try:
me= client.get('/me')
log("Logged in as {} ({})".format(me['nichandle'],me['email']))
except ovh.APIError as e:
log("Failed to log in, bailing out: {}".format(e))
sys.exit(1... | PypiClean |
/bizztreat_base-0.3.0.tar.gz/bizztreat_base-0.3.0/bizztreat_base/config.py | import os
import json
import logging
from argparse import ArgumentParser
from typing import Callable, Dict, Optional
import jsonschema
logger = logging.getLogger(__name__)
def create_default_parser(guess_kbc: bool = True) -> ArgumentParser:
"""Create argument parser instance and return it.
Keyword Argument... | PypiClean |
/certora_cli_alpha_alexstolr_treeviewpath_hash-20230518.7.6.738699-py3-none-any.whl/certora_cli/EVMVerifier/certoraValidateFuncs.py | import sys
import argparse
import json
import logging
import os
import re
import shutil
import subprocess
from pathlib import Path
from typing import Dict, Optional, Type
from enum import auto, Enum
from Shared import certoraUtils as Util
scripts_dir_path = Path(__file__).parent.resolve() # containing directory
sys.... | PypiClean |
/love_course_2016_2019-2023.3.1.0-py3-none-any.whl/LoveCourse20162019/docs/ai-shang-qing-gan/爱上情感《魅力男神全套》:23魅力形象(成为女人心目中最美好的幻想):12.《魅力形象》之朋友圈发什么内容,可以吸引女生.md | # 爱上情感《魅力男神全套》:23 魅力形象(成为女人心目中最美好的幻想):12.《魅力形象》之朋友圈发什么内容,可以吸引女生
5。 帽子,他的对好 我是乐天,当地有了一个好的投向,我们应该在帕公圈里发什么样的内容,可以增加我们自己的一个魅力,在前面的客户当中已经知道了,帕公圈的核心是价值,什么东西才是有价值的呢。
那么下面我就带大家去了解一下,那你需要记住一点就是物以稀为贵 稀少才是价值,所以你在发朋友圈内容的时候应该体现出来你的价值,你必须去展现出来的东西是平时不常见的的东西。
像你比如说去某个地方旅游 这个地方有大海,那并不是所有人都会住在大海的旁边,那么你去拍摄一些有关于大海 沙灘 阳光 日出 这样的照片,就是一种比较... | PypiClean |
/initor_bot_inference-2.0.5.tar.gz/initor_bot_inference-2.0.5/src/initor_bot_inference/fast_reid/fastreid/modeling/meta_arch/distiller.py | import logging
import torch
import torch.nn.functional as F
from fast_reid.fastreid.config import get_cfg
from fast_reid.fastreid.modeling.meta_arch import META_ARCH_REGISTRY, build_model, Baseline
from fast_reid.fastreid.utils.checkpoint import Checkpointer
logger = logging.getLogger(__name__)
@META_ARCH_REGISTRY... | PypiClean |
/benchling_api_client-2.0.207-py3-none-any.whl/benchling_api_client/models/workflow_task_updated_assignee_event.py | import datetime
from typing import Any, cast, Dict, List, Optional, Type, TypeVar, Union
import attr
from dateutil.parser import isoparse
from ..extensions import NotPresentError
from ..models.event_base_schema import EventBaseSchema
from ..models.workflow_task import WorkflowTask
from ..models.workflow_task_updated_... | PypiClean |
/odoo_addon_product_manufacturer-16.0.1.0.0.8-py3-none-any.whl/odoo/addons/product_manufacturer/models/product_template.py |
from odoo import api, fields, models
class ProductTemplate(models.Model):
_inherit = "product.template"
manufacturer_id = fields.Many2one(
comodel_name="res.partner",
compute="_compute_manufacturer_info",
inverse="_inverse_manufacturer_info",
store=True,
)
manufacture... | PypiClean |
/scikit_image_augument_img-0.0.2-cp36-cp36m-win_amd64.whl/skimage/segmentation/_chan_vese.py | import numpy as np
from scipy.ndimage import distance_transform_edt as distance
def _cv_curvature(phi):
"""Returns the 'curvature' of a level set 'phi'.
"""
P = np.pad(phi, 1, mode='edge')
fy = (P[2:, 1:-1] - P[:-2, 1:-1]) / 2.0
fx = (P[1:-1, 2:] - P[1:-1, :-2]) / 2.0
fyy = P[2:, 1:-1] + P[:-2... | PypiClean |
/pulumi_cloudamqp-3.16.0a1692854538.tar.gz/pulumi_cloudamqp-3.16.0a1692854538/pulumi_cloudamqp/get_account_vpcs.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
__all__ = [
'GetAccountVpcsResult',
'AwaitableGetAccountVpcsResult',
'get_account_vpcs',
]
@pulumi.output_type
class GetAccou... | PypiClean |
/alipay_sdk_python-3.6.740-py3-none-any.whl/alipay/aop/api/request/AlipayOpenMiniOrderRefundRequest.py | import json
from alipay.aop.api.FileItem import FileItem
from alipay.aop.api.constant.ParamConstants import *
from alipay.aop.api.domain.AlipayOpenMiniOrderRefundModel import AlipayOpenMiniOrderRefundModel
class AlipayOpenMiniOrderRefundRequest(object):
def __init__(self, biz_model=None):
self._biz_mo... | PypiClean |
/inte_prn-0.1.3-py3-none-any.whl/inte_prn/models/protocol_deviation_violation.py | from django.db import models
from edc_action_item.managers import (
ActionIdentifierSiteManager,
ActionIdentifierManager,
)
from edc_action_item.models import ActionModelMixin
from edc_constants.choices import YES_NO, NOT_APPLICABLE
from edc_identifier.model_mixins import (
TrackingModelMixin,
NonUnique... | PypiClean |
/ehelply_python_experimental_sdk-1.1.118-py3-none-any.whl/ehelply_python_experimental_sdk/api/facts_api_endpoints/save_fact.py | from dataclasses import dataclass
import re # noqa: F401
import sys # noqa: F401
import typing
import urllib3
import functools # noqa: F401
from urllib3._collections import HTTPHeaderDict
from ehelply_python_experimental_sdk import api_client, exceptions
import decimal # noqa: F401
from datetime import date, datet... | PypiClean |
/ch_frb_wview_test_3-0.1.1.tar.gz/ch_frb_wview_test_3-0.1.1/ch_frb_wview/cnc_ssh.py | from __future__ import print_function
import time
import subprocess
import select
class CncSsh(object):
def __init__(self, ssh_options=None):
self.ssh_options = ssh_options
def run(self, command, servers, timeout=1000, launch=False, captive=False):
procs = []
for i,server in enumerate(... | PypiClean |
/scslat-0.2.1.tar.gz/scslat-0.2.1/scSLAT/metrics.py | r"""
Align metrics
"""
from typing import List, Optional
import numpy as np
import pandas as pd
from scipy.spatial.distance import euclidean
from scipy import sparse
import torch
import torch.nn.functional as F
import torch_geometric as pyg
from anndata import AnnData
def hit_k(features:List[torch.Tensor],
... | PypiClean |
/lark-oapi-1.0.19.tar.gz/lark-oapi-1.0.19/lark_oapi/api/calendar/v4/model/create_exchange_binding_response_body.py |
from typing import *
from lark_oapi.core.construct import init
class CreateExchangeBindingResponseBody(object):
_types = {
"admin_account": str,
"exchange_account": str,
"user_id": str,
"status": str,
"exchange_binding_id": str,
}
def __init__(self, d=None):
... | PypiClean |
/py-pure-client-1.38.0.tar.gz/py-pure-client-1.38.0/pypureclient/flasharray/FA_2_23/models/eula.py | import pprint
import re
import six
import typing
from ....properties import Property
if typing.TYPE_CHECKING:
from pypureclient.flasharray.FA_2_23 import models
class Eula(object):
"""
Attributes:
swagger_types (dict): The key is attribute name
and the value is attribute... | PypiClean |
/superset_tddv-0.15.1.tar.gz/superset_tddv-0.15.1/superset/static/assets/visualizations/horizon.js | import d3 from 'd3';
require('./horizon.css');
const horizonChart = function () {
let colors = [
'#313695',
'#4575b4',
'#74add1',
'#abd9e9',
'#fee090',
'#fdae61',
'#f46d43',
'#d73027',
];
let height = 30;
const y = d3.scale.linear().range([0, height]);
let bands = colors.lengt... | PypiClean |
/nextcordunaliased.py-2.0.0a2.tar.gz/nextcordunaliased.py-2.0.0a2/nextcord/mentions.py | from __future__ import annotations
from typing import Type, TypeVar, Union, List, TYPE_CHECKING, Any, Union
__all__ = (
'AllowedMentions',
)
if TYPE_CHECKING:
from .types.message import AllowedMentions as AllowedMentionsPayload
from .abc import Snowflake
class _FakeBool:
def __repr__(self):
... | PypiClean |
/eao-0.8.tar.gz/eao-0.8/README.md | # Evolutionary Algorithm Optimization (EAO)
Package for optimization using Evolutionary Algorithms (EA), providing base classes for individuals and an evaluation module.
## Version History
* **0.4** Removed necessity to manually assign `loss_` attribute
* **0.5** Added extensive logging capabilities; will be cleane... | PypiClean |
/mc2skos-0.12.0.tar.gz/mc2skos-0.12.0/README.rst | .. image:: https://img.shields.io/travis/scriptotek/mc2skos.svg
:target: https://travis-ci.org/scriptotek/mc2skos
:alt: Build status
.. image:: https://img.shields.io/codecov/c/github/scriptotek/mc2skos.svg
:target: https://codecov.io/gh/scriptotek/mc2skos
:alt: Test coverage
.. image:: https://landscape.... | PypiClean |
/safegate-pro-frontend-20210805.0.tar.gz/safegate-pro-frontend-20210805.0/hass_frontend/frontend_latest/chunk.81d1423ebaed3af9a473.js | (self.webpackChunkhome_assistant_frontend=self.webpackChunkhome_assistant_frontend||[]).push([[7487,4077],{34821:(e,t,r)=>{"use strict";r.d(t,{i:()=>g});var i=r(13967),o=r(68546),n=r(50424),a=r(55358),s=r(87744);r(10983);function c(){c=function(){return e};var e={elementsDefinitionOrder:[["method"],["field"]],initializ... | PypiClean |
/bookstore-2.5.1.tar.gz/bookstore-2.5.1/docs/source/reference/clone.rst | Cloning
=======
The ``clone`` module
--------------------
.. module:: bookstore.clone
.. autofunction:: build_notebook_model
.. autofunction:: build_file_model
.. autofunction:: validate_relpath
``BookstoreCloneHandler``
~~~~~~~~~~~~~~~~~~~~~~~~~
.. autoclass:: BookstoreCloneHandler
Methods
^^^^^^^
.. autometh... | PypiClean |
/quicklogging-0.4.tar.gz/quicklogging-0.4/README.rst | .. _majerti: http://majerti.fr
.. _readthedocs: http://quicklogging.readthedocs.io/en/latest/
.. _github: https://github.com/majerteam/quicklogging
.. _travis-ci: https://travis-ci.org/majerteam/quicklogging/
.. _stringimporter: https://github.com/majerteam/stringimporter
Documentation for quicklogging
===============... | PypiClean |
/msproteomicstools-0.11.0.tar.gz/msproteomicstools-0.11.0/msproteomicstoolslib/format/MatrixWriters.py | from __future__ import print_function
import csv
try:
import xlsxwriter
import xlwt
except ImportError:
# Python 3
import xlwt
def getwriter(matrix_outfile):
"""
Factory function to get the correct writer depending on the file ending
Args:
matrix_outfile(str): Filename of output ... | PypiClean |
/dycw_utilities-0.12.0.tar.gz/dycw_utilities-0.12.0/utilities/math/typing.py | from __future__ import annotations
from math import isclose, isfinite, isnan
from typing import Annotated
# checks
def is_at_least(
x: float,
y: float,
/,
*,
rel_tol: float | None = None,
abs_tol: float | None = None,
) -> bool:
"""Check if -inf < x < inf and x == int(x)."""
return (... | PypiClean |
/django_danceschool-0.9.3-py3-none-any.whl/danceschool/financial/static/js/revenue_reporting.js | document.addEventListener("DOMContentLoaded", function(e) {
// Requires jQuery
var $ = django.jQuery;
$('#id_invoiceItem').attr('disabled',true);
// Make received date field a datepicker
$('#id_receivedDate').datepicker();
// Keep track of previous value of grossTotal
var grossField = $('#id_grossTotal');
... | PypiClean |
/jh-stackformation-0.2.43.tar.gz/jh-stackformation-0.2.43/stackformation/utils.py | import jinja2
import re
import imp
import os
from troposphere import Parameter
import click
from colorama import Fore, Style, Back # noqa
import hashlib
def jinja_env(context, capture_vars=False):
var_capture = []
def _handle_context(var):
if capture_vars:
var_capture.append(var)
... | PypiClean |
/django-start-0.1.22.tar.gz/django-start-0.1.22/django_start/templates/project/basic/project/static-local/admin/tinymce/jscripts/tiny_mce/plugins/table/editor_plugin.js | (function(c){var d=c.each;function b(f,g){var h=g.ownerDocument,e=h.createRange(),j;e.setStartBefore(g);e.setEnd(f.endContainer,f.endOffset);j=h.createElement("body");j.appendChild(e.cloneContents());return j.innerHTML.replace(/<(br|img|object|embed|input|textarea)[^>]*>/gi,"-").replace(/<[^>]+>/g,"").length==0}functio... | PypiClean |
/sch-askbot-1.0.1.tar.gz/sch-askbot-1.0.1/askbot/conf/sidebar_question.py | from django.utils.translation import ugettext_lazy as _
from askbot.conf.settings_wrapper import settings
from askbot.deps.livesettings import ConfigurationGroup
from askbot.deps.livesettings import values
from askbot.conf.super_groups import CONTENT_AND_UI
SIDEBAR_QUESTION = ConfigurationGroup( # TODO: Shitty name -... | PypiClean |
/pandas-illustrated-0.6.tar.gz/pandas-illustrated-0.6/pdi/categoricals.py | import numpy as np
import pandas as pd
from pandas._libs import lib
def _is_monotonic_increasing(a):
return np.all(a[1:] >= a[:-1])
def _get_categories(mi, level, ax):
if level == 0:
index = mi.get_level_values(level)
codes, uniques = pd.factorize(index.values)
if _is_monotonic_incr... | PypiClean |
/package-hub-test-2.1.40.tar.gz/package-hub-test-2.1.40/hub/integrations/pytorch/pytorch.py | from typing import Callable, Optional, Sequence
from hub.util.dataset import try_flushing
from hub.constants import MB
from .common import convert_fn as default_convert_fn, collate_fn as default_collate_fn
def create_dataloader_nesteddataloader(
dataset,
tensors,
use_local_cache,
transform,
num_wo... | PypiClean |
/mtxzm-0.0.83-py3-none-any.whl/zmirror/utils_simple.py | import os
import re
import zlib
import base64
from html import escape as html_escape
from urllib.parse import urljoin, urlsplit, urlunsplit, quote_plus
from flask import make_response, Response
try:
from typing import Union, Tuple # for python 3.5+ type hint
except:
pass
try: # lru_cache的c语言实现, 比Python内置lru... | PypiClean |
/graph-tiger-0.2.5.tar.gz/graph-tiger-0.2.5/README.md | [](https://github.com/safreita1/TIGER/actions/workflows/ci.yml)

[](https://www.python.... | PypiClean |
/pwntools-4.11.0b0.tar.gz/pwntools-4.11.0b0/pwnlib/commandline/disasm.py | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import argparse
import string
import sys
import pwnlib.args
pwnlib.args.free_form = False
from pwn import *
from pwnlib.commandline import common
parser = common.parser_commands.add_parser(
'disasm',
... | PypiClean |
/apache_superset_test-2.1.1.1-py3-none-any.whl/superset/static/assets/addSlice.1e9193319ddbc26d390a.entry.js | (()=>{"use strict";var e,a,t,d,c,n,f,r={39991:e=>{e.exports=function(){function e(e,a,t,d,c){return e<a||t<a?e>t?t+1:e+1:d===c?a:a+1}return function(a,t){if(a===t)return 0;if(a.length>t.length){var d=a;a=t,t=d}for(var c=a.length,n=t.length;c>0&&a.charCodeAt(c-1)===t.charCodeAt(n-1);)c--,n--;for(var f=0;f<c&&a.charCodeA... | PypiClean |
/msgraph_beta_sdk-1.0.0a9-py3-none-any.whl/msgraph/generated/users/item/presence/set_status_message/set_status_message_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 presence_status_message
class SetStatusMessagePostRe... | PypiClean |
/tablib-garetjax-0.9.12.tar.gz/tablib-garetjax-0.9.12/README.rst | Tablib: format-agnostic tabular dataset library
===============================================
::
_____ ______ ___________ ______
__ /_______ ____ /_ ___ /___(_)___ /_
_ __/_ __ `/__ __ \__ / __ / __ __ \
/ /_ / /_/ / _ /_/ /_ / _ / _ /_/ /
\__/ \__,_/ /_.___/ /_/ /_/ /_.___/
... | PypiClean |
/llama_index-0.8.17.tar.gz/llama_index-0.8.17/llama_index/readers/json.py |
import json
import re
from typing import Any, Generator, List, Optional
from llama_index.readers.base import BaseReader
from llama_index.schema import Document
def _depth_first_yield(
json_data: Any,
levels_back: int,
collapse_length: Optional[int],
path: List[str],
ensure_ascii: bool = False,
)... | PypiClean |
/onnxoptimizer-0.3.2.tar.gz/onnxoptimizer-0.3.2/third_party/protobuf/kokoro/release/collect_all_artifacts.sh |
set -ex
# Change to repo root.
cd $(dirname $0)/../..
# Initialize any submodules.
git submodule update --init --recursive
# The directory with all resulting artifacts
mkdir -p artifacts
# Artifacts from all predecessor jobs get copied to this directory by kokoro
INPUT_ARTIFACTS_DIR="${KOKORO_GFILE_DIR}/github/pro... | PypiClean |
/custom-awscli-1.27.51.tar.gz/custom-awscli-1.27.51/awscli/examples/iotwireless/delete-destination.rst | **To delete an IoT wireless destination**
The following ``delete-destination`` example deletes the wireless destination resource with the name ``IoTWirelessDestination`` that you created. ::
aws iotwireless delete-destination \
--name "IoTWirelessDestination"
This command produces no output.
For more in... | PypiClean |
/AdyenAntoni-1.0.0.tar.gz/AdyenAntoni-1.0.0/Adyen/httpclient.py |
from __future__ import absolute_import, division, unicode_literals
try:
import requests
except ImportError:
requests = None
try:
import pycurl
except ImportError:
pycurl = None
from urllib.parse import urlencode
from urllib.request import Request, urlopen
from urllib.error import HTTPError
from io ... | PypiClean |
/occamypy-0.2.0-py3-none-any.whl/occamypy-0.2.0.dist-info/LICENSE.md | Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
* Redistributions in binary form must rep... | PypiClean |
/azure_mgmt_containerservice-26.0.0-py3-none-any.whl/azure/mgmt/containerservice/v2023_06_01/operations/_private_endpoint_connections_operations.py | from io import IOBase
from typing import Any, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload
from azure.core.exceptions import (
ClientAuthenticationError,
HttpResponseError,
ResourceExistsError,
ResourceNotFoundError,
ResourceNotModifiedError,
map_error,
)
from azure.core.pipelin... | PypiClean |
/mengling_tool2-1.3.0-py3-none-any.whl/mengling_tool2/database_tool2/__sqltool__.py |
from base64 import b64encode, b64decode
import traceback
from threading import Thread
from pandas import DataFrame
from pyDes import PAD_PKCS5, CBC, des
from copy import deepcopy
__Des_Key0 = '%s&@W2*<FRW2'
__Des_IV = b'\x52\x63\x78\x61\xBC\x48\x6A\x07'
def encryption(user, passwd):
k = des((__Des_Key0 % user)[... | PypiClean |
/Flask-AppBuilder-red-2.1.13.tar.gz/Flask-AppBuilder-red-2.1.13/flask_appbuilder/api/schemas.py | from ..const import (
API_ADD_COLUMNS_RIS_KEY,
API_ADD_TITLE_RIS_KEY,
API_DESCRIPTION_COLUMNS_RIS_KEY,
API_EDIT_COLUMNS_RIS_KEY,
API_EDIT_TITLE_RIS_KEY,
API_FILTERS_RIS_KEY,
API_LABEL_COLUMNS_RIS_KEY,
API_LIST_COLUMNS_RIS_KEY,
API_LIST_TITLE_RIS_KEY,
API_ORDER_COLUMN_RIS_KEY,
... | PypiClean |
/lilypond-2.25.7-0-py3-none-manylinux2014_x86_64.whl/lilypond-binaries/lib/python3.10/encodings/cp1253.py |
"""#"
import codecs
### Codec APIs
class Codec(codecs.Codec):
def encode(self,input,errors='strict'):
return codecs.charmap_encode(input,errors,encoding_table)
def decode(self,input,errors='strict'):
return codecs.charmap_decode(input,errors,decoding_table)
class IncrementalEncoder(codecs... | PypiClean |
/artellapipe-libs-usd-0.0.5.tar.gz/artellapipe-libs-usd-0.0.5/artellapipe/libs/usd/externals/python/2/OpenGL/raw/WGL/I3D/genlock.py | from OpenGL import platform as _p, arrays
# Code generation uses this
from OpenGL.raw.WGL import _types as _cs
# End users want this...
from OpenGL.raw.WGL._types import *
from OpenGL.raw.WGL import _errors
from OpenGL.constant import Constant as _C
import ctypes
_EXTENSION_NAME = 'WGL_I3D_genlock'
def _f( function ):... | PypiClean |
/xnni-0.7.4-py3-none-manylinux1_x86_64.whl/xnni-0.7.4.data/data/nni/node_modules/glob/changelog.md | ## 7.0
- Raise error if `options.cwd` is specified, and not a directory
## 6.0
- Remove comment and negation pattern support
- Ignore patterns are always in `dot:true` mode
## 5.0
- Deprecate comment and negation patterns
- Fix regression in `mark` and `nodir` options from making all cache
keys absolute path.
- ... | PypiClean |
/mr.laforge-0.9.tar.gz/mr.laforge-0.9/mr/laforge/__init__.py | from __future__ import print_function
from supervisor.options import ClientOptions
from supervisor.xmlrpc import SupervisorTransport
import argparse
import os
import socket
import subprocess
import sys
import time
try:
import xmlrpc.client as xmlrpclib
except ImportError:
import xmlrpclib
def get_rpc(options)... | PypiClean |
/gu-django-tinymce-2.7.2.tar.gz/gu-django-tinymce-2.7.2/tinymce/static/tiny_mce/plugins/fullpage/langs/el_dlg.js | tinyMCE.addI18n('el.fullpage_dlg',{title:"\u0399\u03b4\u03b9\u03cc\u03c4\u03b7\u03c4\u03b5\u03c2 \u03b5\u03b3\u03b3\u03c1\u03ac\u03c6\u03bf\u03c5","meta_tab":"\u0393\u03b5\u03bd\u03b9\u03ba\u03ac","appearance_tab":"\u0395\u03bc\u03c6\u03ac\u03bd\u03b9\u03c3\u03b7","advanced_tab":"\u0393\u03b9\u03b1 \u03c0\u03c1\u03bf\u... | PypiClean |
/cctbx-2020.8-0_py36h1d45459-cp36-cp36m-manylinux2010_x86_64.whl/mmtbx/examples/refine_uaniso_data_only.py | from __future__ import absolute_import, division, print_function
import iotbx.pdb
import mmtbx.f_model
from scitbx.array_family import flex
from libtbx import group_args
from cctbx import xray
import scitbx.lbfgs
from libtbx import adopt_init_args
import cctbx
from six.moves import range
pdb_str = """
CRYST1 12.000 ... | PypiClean |
/gym_idsgame-1.0.13.tar.gz/gym_idsgame-1.0.13/experiments/training/v9/minimal_defense/reinforce/run.py | import os
import time
import sys
import glob
from gym_idsgame.config.runner_mode import RunnerMode
from gym_idsgame.agents.training_agents.policy_gradient.pg_agent_config import PolicyGradientAgentConfig
from gym_idsgame.agents.dao.agent_type import AgentType
from gym_idsgame.config.client_config import ClientConfig
fr... | PypiClean |
/apache-sedona-beta-1.1.1.20211129.1523.tar.gz/apache-sedona-beta-1.1.1.20211129.1523/sedona/core/formatMapper/geo_json_reader.py |
from pyspark import SparkContext, RDD
from sedona.core.SpatialRDD.spatial_rdd import SpatialRDD
from sedona.core.formatMapper.geo_reader import GeoDataReader
from sedona.utils.meta import MultipleMeta
class GeoJsonReader(GeoDataReader, metaclass=MultipleMeta):
@classmethod
def readToGeometryRDD(cls, sc: Sp... | PypiClean |
/loadguard-runner-0.0.5.5.tar.gz/loadguard-runner-0.0.5.5/src/loadguard/main.py | import argparse
import os
import sys
import time
from deepnox import loggers
from loadguard.runner import TasksRunner, ProjectStore
LOGGER = loggers.factory(__name__)
"""The main loggers. """
loggers.setup()
def usage():
"""Print command usage.
"""
print(
"loadguard run --project=[loadguard_lib... | PypiClean |
/dataone.gmn-3.5.2-py3-none-any.whl/d1_gmn/app/middleware/exception_handler.py | import logging
import os
import sys
import traceback
import d1_common.const
import d1_common.types.exceptions
import django.conf
import django.http
import django.urls
import django.urls.base
import d1_gmn.app.middleware.detail_codes
class ExceptionHandler:
def __init__(self, next_in_chain_func):
self.n... | PypiClean |
/pulumi_aws_iam-0.2.0.tar.gz/pulumi_aws_iam-0.2.0/pulumi_aws_iam/group_with_policies.py |
import copy
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from . import _utilities
__all__ = ['GroupWithPoliciesArgs', 'GroupWithPolicies']
@pulumi.input_type
class GroupWithPoliciesArgs:
def __init__(__self__, *,
group_u... | PypiClean |
/function_parser-0.0.4.tar.gz/function_parser-0.0.4/function_parser/process.py | import functools
from multiprocessing import Pool
import pickle
from os import PathLike
from typing import Optional, Tuple, Type, List, Dict, Any
from docopt import docopt
from dpu_utils.codeutils.deduplication import DuplicateDetector
import pandas as pd
from tree_sitter import Language, Parser
from function_parser.... | PypiClean |
/taskcc-alipay-sdk-python-3.3.398.tar.gz/taskcc-alipay-sdk-python-3.3.398/alipay/aop/api/request/AlipaySecurityDataDatabusSendRequest.py | import json
from alipay.aop.api.FileItem import FileItem
from alipay.aop.api.constant.ParamConstants import *
from alipay.aop.api.domain.AlipaySecurityDataDatabusSendModel import AlipaySecurityDataDatabusSendModel
class AlipaySecurityDataDatabusSendRequest(object):
def __init__(self, biz_model=None):
... | PypiClean |
/tb-rest-client3-1.3.tar.gz/tb-rest-client3-1.3/examples/example_application_2.py |
import logging
from json import load
# Importing models and REST client class from Professional Edition version
from tb_rest_client.rest_client_pe import *
from tb_rest_client.rest import ApiException
logging.basicConfig(level=logging.DEBUG,
format='%(asctime)s - %(levelname)s - %(module)s - %(li... | PypiClean |
/humlab_penelope-0.7.37.tar.gz/humlab_penelope-0.7.37/penelope/notebook/cluster_analysis/plot.py | import itertools
import bokeh
import penelope.common.curve_fit as cf
from penelope.common.cluster_analysis import smooth_matrix
from penelope.corpus import DocumentIndexHelper
from . import cluster_plot
def create_filter_source(token_counts):
# cluster_info = token_counts['token'].sort_values().to_dict()
c... | PypiClean |
/openimis_be_invoice-1.5.1-py3-none-any.whl/invoice/gql/detail_payment_invoice/mutation.py | import graphene
from django.contrib.auth.models import AnonymousUser
from django.contrib.contenttypes.models import ContentType
from django.core.exceptions import ValidationError
from core.gql.gql_mutations.base_mutation import (
BaseMutation,
BaseHistoryModelCreateMutationMixin,
BaseHistoryModelUpdateMuta... | PypiClean |
/anvil_new-1.0.1-py3-none-any.whl/anvil/region.py | from typing import Tuple, Union, BinaryIO
from nbt import nbt
import zlib
from io import BytesIO
import anvil
from .errors import GZipChunkData
class Region:
"""
Read-only region
Attributes
----------
data: :class:`bytes`
Region file (``.mca``) as bytes
"""
__slots__ = ('data',)
... | PypiClean |
/PyCIM-15.15.0.tar.gz/PyCIM-15.15.0/CIM15/IEC61970/SCADA/RemoteUnit.py |
from CIM15.IEC61970.Core.PowerSystemResource import PowerSystemResource
class RemoteUnit(PowerSystemResource):
"""A remote unit can be a RTU, IED, substation control system, control center etc. The communication with the remote unit can be through various standard protocols (e.g. IEC 61870, IEC 61850) or non stan... | PypiClean |
/ulvl-1.0-1.tar.gz/ulvl-1.0/doc/html/_static/doctools.js | * select a different prefix for underscore
*/
$u = _.noConflict();
/**
* make the code below compatible with browsers without
* an installed firebug like debugger
if (!window.console || !console.firebug) {
var names = ["log", "debug", "info", "warn", "error", "assert", "dir",
"dirxml", "group", "groupEnd", "... | PypiClean |
/cfn-sweeper-0.0.6.tar.gz/cfn-sweeper-0.0.6/README.md | # cfn-sweeper - find all the unmanaged resources in your account!
A CLI Tool to find resources in an AWS Account not actively managed by Cloudformation!
Wanting to understand how many resources in your AWS Account are managed by Cloudformation? This is the tool for you!
## Installation
Download the package from PyPI... | PypiClean |
/omero_py-5.15.0-py3-none-any.whl/omero_model_Link_ice.py |
from sys import version_info as _version_info_
import Ice, IcePy
import omero_model_IObject_ice
import omero_RTypes_ice
import omero_model_RTypes_ice
import omero_System_ice
import omero_Collections_ice
# Included module omero
_M_omero = Ice.openModule('omero')
# Included module omero.model
_M_omero.model = Ice.open... | PypiClean |
/lightning_template-1.2.10-py3-none-any.whl/lightning_template/utils/cli/shell_cmd_launcher.py | import os
import subprocess
import time
from collections import deque
from string import Template
from typing import Union
def iter_arg_dict(arg_dict, keys=None, cur_arg_dict=None):
if keys is None:
keys = list(arg_dict.keys())
if cur_arg_dict is None:
cur_arg_dict = {}
if len(keys) == 0... | PypiClean |
/python_facebook_api-0.17.0.tar.gz/python_facebook_api-0.17.0/pyfacebook/models/base.py | from copy import deepcopy
from dataclasses import dataclass, field as base_field
from typing import (
Dict,
Type,
TypeVar,
Optional,
)
from dataclasses_json import (
DataClassJsonMixin,
)
from dataclasses_json.core import Json
A = TypeVar("A", bound=DataClassJsonMixin)
@dataclass
class BaseModel... | PypiClean |
/postman_problems-0.3.tar.gz/postman_problems-0.3/README.rst | .. image:: https://travis-ci.org/brooksandrew/postman_problems.svg?branch=master
:target: https://travis-ci.org/brooksandrew/postman_problems
.. image:: https://badge.fury.io/py/postman_problems.svg
:target: https://badge.fury.io/py/postman_problems
.. image:: http://coveralls.io/repos/github/brooksandrew/pos... | PypiClean |
/pyannotate-1.2.0.tar.gz/pyannotate-1.2.0/pyannotate_tools/fixes/fix_annotate_json.py | from __future__ import print_function
import json # noqa
import os
import re
from lib2to3.fixer_util import syms, touch_import
from lib2to3.pgen2 import token
from lib2to3.pytree import Base, Leaf, Node
from typing import __all__ as typing_all # type: ignore
from typing import Any, Dict, List, Optional, Tuple
try:
... | PypiClean |
/Kerko-1.0.0-py3-none-any.whl/kerko/jinja2.py | from __future__ import annotations
import re
import typing
from urllib.parse import urlparse
from jinja2 import pass_eval_context
from markupsafe import Markup
from w3lib.url import safe_url_string
from kerko.datetime import format_datetime, reformat_date
if typing.TYPE_CHECKING:
from flask.blueprints import Bl... | PypiClean |
/tensorflow_directml-1.15.8-cp37-cp37m-win_amd64.whl/tensorflow_core/python/ops/distributions/multinomial.py | """The Multinomial distribution class."""
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from tensorflow.python.framework import dtypes
from tensorflow.python.framework import ops
from tensorflow.python.ops import array_ops
from tensorflow.python.ops impor... | PypiClean |
/swh.loader.core-5.9.0.tar.gz/swh.loader.core-5.9.0/swh/loader/core/discovery.py | import abc
from collections import namedtuple
import itertools
import logging
import random
from typing import Any, Iterable, List, Mapping, NamedTuple, Set, Union
from swh.model.from_disk import model
from swh.model.model import Sha1Git
from swh.storage.interface import StorageInterface
logger = logging.getLogger(__... | PypiClean |
/openplc-editor-1.1.11.tar.gz/openplc-editor-1.1.11/openplc_editor/dialogs/ArrayTypeDialog.py |
# This file is part of Beremiz, a Integrated Development Environment for
# programming IEC 61131-3 automates supporting plcopen standard and CanFestival.
#
# Copyright (C) 2007: Edouard TISSERANT and Laurent BESSARD
#
# See COPYING file for copyrights details.
#
# This program is free software; you can redistribute it... | PypiClean |
/juqueue-0.0.15-py3-none-any.whl/juqueue_web/juqueue-web/node_modules/node-gyp/gyp/pylib/gyp/msvs_emulation.py | import collections
import os
import re
import subprocess
import sys
from gyp.common import OrderedSet
import gyp.MSVSUtil
import gyp.MSVSVersion
windows_quoter_regex = re.compile(r'(\\*)"')
def QuoteForRspFile(arg, quote_cmd=True):
"""Quote a command line argument so that it appears as one argument when
pro... | PypiClean |
/splines-0.2.0.tar.gz/splines-0.2.0/doc/rotation/quaternions.ipynb | This notebook is part of https://github.com/AudioSceneDescriptionFormat/splines, see also https://splines.readthedocs.io/.
[back to rotation splines](index.ipynb)
# Quaternions
We are interested in *unit quaternions* (see below),
because they are a very useful representation of rotations.
But before we go into tha... | PypiClean |
/mxnet_cu102-2.0.0b1-py3-none-manylinux2014_x86_64.whl/mxnet/optimizer/lamb.py | """Lamb optimizer."""
from __future__ import absolute_import
import numpy
from ..ndarray import (zeros, clip, sqrt, where, square, ones_like,
maximum, minimum)
from ..ndarray import (lamb_update_phase1, lamb_update_phase2,
mp_lamb_update_phase1, mp_lamb_update_phase2)
from ... | PypiClean |
/git-deps-1.1.0.zip/git-deps-1.1.0/git_deps/html/node_modules/punycode/punycode.js | ;(function(root) {
/** Detect free variables */
var freeExports = typeof exports == 'object' && exports &&
!exports.nodeType && exports;
var freeModule = typeof module == 'object' && module &&
!module.nodeType && module;
var freeGlobal = typeof global == 'object' && global;
if (
freeGlobal.global === freeGl... | PypiClean |
/pulumi_azure_native-2.5.1a1693590910.tar.gz/pulumi_azure_native-2.5.1a1693590910/pulumi_azure_native/media/v20230101/outputs.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 *
__all__ = [
'AccessControlResponse',
'AccountEncryptionResponse',
'AssetFileEncryptionMetadataResponse... | PypiClean |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.