id stringlengths 1 8 | text stringlengths 6 1.05M | dataset_id stringclasses 1
value |
|---|---|---|
/lkmlfmt_djhtml-0.0.1.tar.gz/lkmlfmt_djhtml-0.0.1/lkmlfmt_djhtml/formatter.py | import re
from typing import Any
from djhtml.lines import Line # type: ignore
from djhtml.modes import DjHTML # type: ignore
LIQUID_MARKER = "{{% set LKMLFMT_MARKER = {} %}}"
TEMPLATE = re.compile(
r"""(?P<tag>\{%-?\s*(?P<type>#|([a-z]*))([^"'}]*|'[^']*?'|"[^"]*?")*?-?%\})"""
+ r"""|(?P<obj>\{\{([^"'}]*|'[^... | PypiClean |
/monk_cuda102-0.0.1.tar.gz/monk_cuda102-0.0.1/monk/tf_keras_1/finetune/level_14_master_main.py | from monk.tf_keras_1.finetune.imports import *
from monk.system.imports import *
from monk.tf_keras_1.finetune.level_13_updates_main import prototype_updates
class prototype_master(prototype_updates):
'''
Main class for all functions in expert mode
Args:
verbose (int): Set verbosity levels
... | PypiClean |
/nbpp-0.0.80.tar.gz/nbpp-0.0.80/HISTORY.rst | History
=======
0.0.6 (2020-05-07)
------------------
* Initial internal release supporting basic features of Python;
0.0.7 (2020-05-07)
------------------
* Fix kernel install commmand for Windows;
0.0.8 (2020-05-08)
------------------
* Misc bug fixes;
0.0.9 (2020-05-08)
------------------
* Misc bug fixes;
0.0.... | PypiClean |
/odoo14_addon_server_environment-14.0.2.1.3-py3-none-any.whl/odoo/addons/server_environment/readme/CONTRIBUTORS.rst | * Florent Xicluna (Wingo) <florent.xicluna@gmail.com>
* Nicolas Bessi <nicolas.bessi@camptocamp.com>
* Alexandre Fayolle <alexandre.fayolle@camptocamp.com>
* Daniel Reis <dgreis@sapo.pt>
* Holger Brunn <hbrunn@therp.nl>
* Leonardo Pistone <leonardo.pistone@camptocamp.com>
* Adrien Peiffer <adrien.peiffer@acsone.com>
* ... | PypiClean |
/tv2-0.2.4.tar.gz/tv2-0.2.4/README.md | # tv2 - Terminal Velocity 2
tv2 is a fast note-taking app for the UNIX terminal, that focuses on letting you create or find a note as quickly and easily as possible, then uses your `$EDITOR` to open and edit the note. It is heavily inspired by the OS X app [Notational Velocity](http://notational.net/). For screenshots... | PypiClean |
/hacs-frontend-20230630112320.tar.gz/hacs-frontend-20230630112320/hacs_frontend/frontend_latest/6315-wYi_WusdROQ.js | export const id=6315;export const ids=[6315];export const modules={86089:(e,t,i)=>{i.d(t,{U:()=>n});const n=e=>e.stopPropagation()},90532:(e,t,i)=>{var n=i(17463),a=i(34541),d=i(47838),s=i(61092),l=i(96762),o=i(68144),r=i(79932);(0,n.Z)([(0,r.Mo)("ha-list-item")],(function(e,t){class i extends t{constructor(...t){super... | PypiClean |
/geomancy-1.1.3.tar.gz/geomancy-1.1.3/docs/usage/checks/core/exec.rst | .. _checkExec:
checkExec
---------
.. automodule:: geomancy.checks.exec
:noindex:
.. card::
Parameters
^^^
``checkExec``: str
| Executable to check. Additionally, an optional version check can be added
with a test operator.
| *aliases*: ``checkExec``, ``CheckExec``
.. i... | PypiClean |
/django-jasmine-0.5.1.tar.gz/django-jasmine-0.5.1/django_jasmine/static/jasmine-1.0.1/jasmine-html.js | jasmine.TrivialReporter = function(doc) {
this.document = doc || document;
this.suiteDivs = {};
this.logRunningSpecs = false;
};
jasmine.TrivialReporter.prototype.createDom = function(type, attrs, childrenVarArgs) {
var el = document.createElement(type);
for (var i = 2; i < arguments.length; i++) {
var ... | PypiClean |
/django-voice-0.5alpha.tar.gz/django-voice-0.5alpha/djangovoice/migrations/0002_auto__add_field_feedback_email__add_field_feedback_slug.py | import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding field 'Feedback.email'
db.add_column('djangovoice_feedback', 'email', self.gf('django.db.models.fields.EmailField')... | PypiClean |
/bike-0.3.6.tar.gz/bike-0.3.6/README.md | # bike
A lightweight model validator for modern projects.
## Instalation
```shell
pip install bike
```
## First Pedals
Lets define a simple model to represent a person.
```python hl_lines="1"
import bike
@bike.model()
class Person:
name: str
height: float
weight: float
...
p1 = Person(
name=... | PypiClean |
/megrok.login-0.4.tar.gz/megrok.login-0.4/src/megrok/login/README.txt |
megrok.login
************
Setting up login pages for your web app made easy.
With `megrok.login` you can setup simple session based login pages
for your ``grok.Application`` and other ``grok.Site`` instances. This
is different to out-of-the-box behaviour, where authentication happens
by basic-auth.
Introduction
===... | PypiClean |
/vitrox-mmcv-1.3.3.tar.gz/vitrox-mmcv-1.3.3/mmcv/parallel/data_container.py | import functools
import torch
def assert_tensor_type(func):
@functools.wraps(func)
def wrapper(*args, **kwargs):
if not isinstance(args[0].data, torch.Tensor):
raise AttributeError(
f'{args[0].__class__.__name__} has no attribute '
f'{func.__name__} for ty... | PypiClean |
/eisenheimisme-0.0.2.tar.gz/eisenheimisme-0.0.2/README.rst | Package นี้ เป็นการสร้าง Library Python เพื่อ Upload ขึ้น PyPi.org ตอน “pip install (MyName)”
=============================================================================================
PyPi: https://pypi.org/project/eisenheimisme/
EisenheimEng คือ ข้อมูลที่เกี่ยวข้องกับผู้สร้าง เพื่อใช้ในการเรียน
Python ประกอบด้วย... | PypiClean |
/isedit-0.3.0.tar.gz/isedit-0.3.0/js/node_modules/caniuse-lite/data/regions/BB.js | module.exports={C:{"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":0,"13":0,"14":0,"15":0,"16":0,"17":0,"18":0,"19":0,"20":0,"21":0,"22":0,"23":0,"24":0,"25":0,"26":0,"27":0,"28":0,"29":0,"30":0,"31":0,"32":0,"33":0,"34":0,"35":0,"36":0,"37":0,"38":0,"39":0,"40":0,"41":0,"42":0,"43":0,"44":0,"45":0,"... | PypiClean |
/spikeforest_widgets-0.1.1.tar.gz/spikeforest_widgets-0.1.1/spikeforest_widgets/widgets/jscommon/Accordion/Accordion.js | import React, { Component } from 'react';
import { Accordion as Accordion2, AccordionItem, AccordionItemHeading, AccordionItemPanel, AccordionItemButton} from 'react-accessible-accordion';
import './AccordionStyle.css';
import AutoDetermineWidth from '../AutoDetermineWidth';
export default class Accordion extends Comp... | PypiClean |
/scriptine-0.2.1.tar.gz/scriptine-0.2.1/doc/intro.rst | Python shell scripting made easy
================================
The primary goal of ``scriptine`` is to make it easy to write shell scripts
with python.
Scriptine does two things to solve this goal:
* Make it easy to create scripts and commands.
* Make it easy to work with files, directories and other shell com... | PypiClean |
/doccano-1.8.4-py3-none-any.whl/backend/staticfiles/_nuxt/9af70ec.js | (window.webpackJsonp=window.webpackJsonp||[]).push([[9],{1091:function(e,t,r){"use strict";r.r(t);r(12),r(10),r(11),r(7),r(16),r(13),r(17);var n=r(5),o=r(0),c=r(109),l=r(1),f=(r(21),r(94)),d=r(773),v=r(681),m=o.default.extend({components:{BaseCard:v.a},props:{login:{type:Function,default:function(){return Promise}}},da... | PypiClean |
/mplex_image-0.0.7-py3-none-any.whl/mplex_image/features.py |
#libraries
import os
import sys
import numpy as np
import pandas as pd
import shutil
import skimage
import scipy
from scipy import stats
from scipy import ndimage as ndi
from skimage import measure, segmentation, morphology
from skimage import io, filters
import re
import json
from biotransistor import imagine
from PI... | PypiClean |
/notebooksmz-7.0.0-py3-none-any.whl/notebook/static/components/MathJax/jax/output/CommonHTML/autoload/mtable.js | MathJax.Hub.Register.StartupHook("CommonHTML Jax Ready",function(){var g="2.7.8";var b=MathJax.ElementJax.mml,a=MathJax.Hub.config,e=MathJax.OutputJax.CommonHTML,d=MathJax.Hub.SplitList;var c=-1,f=1000000;b.mtable.Augment({toCommonHTML:function(l){var m={rows:[],labels:[],labeled:false};l=this.CHTMLdefaultNode(l,{noBBo... | PypiClean |
/clear-html-0.4.0.tar.gz/clear-html-0.4.0/clear_html/clean.py | import copy
from typing import Callable, Optional
import html_text
from lxml.html import HtmlElement, tostring
from clear_html.formatted_text import clean_doc
from clear_html.html_embeddings import integrate_embeddings
def cleaned_node_to_text(
node: HtmlElement, text_extractor: Optional[Callable] = None
) -> O... | PypiClean |
/Transcrypt-3.7.16.tar.gz/Transcrypt-3.7.16/transcrypt/demos/parcel_demo/node_modules/assert/node_modules/util/test/node/inspect.js |
var assert = require('assert');
var util = require('../../');
// test the internal isDate implementation
var Date2 = require('vm').runInNewContext('Date');
var d = new Date2();
var orig = util.inspect(d);
Date2.prototype.foo = 'bar';
var after = util.inspect(d);
assert.equal(orig, after);
// test for sparse array... | PypiClean |
/vantage-client-0.1.0.tar.gz/vantage-client-0.1.0/vantage/rest.py | from __future__ import absolute_import
import io
import json
import logging
import re
import ssl
import certifi
# python 2 and python 3 compatibility library
import six
from six.moves.urllib.parse import urlencode
try:
import urllib3
except ImportError:
raise ImportError('Swagger python client requires urlli... | PypiClean |
/django_bpp-1.0.9-py3-none-any.whl/django_bpp/staticroot/foundation-sites/js/foundation/foundation.topbar.js | ;(function ($, window, document, undefined) {
'use strict';
Foundation.libs.topbar = {
name : 'topbar',
version : '5.5.3',
settings : {
index : 0,
start_offset : 0,
sticky_class : 'sticky',
custom_back_text : true,
back_text : 'Back',
mobile_show_parent_link : true... | PypiClean |
/django-admin-backend-0.6.0.tar.gz/django-admin-backend-0.6.0/django_backend/static/django_backend/libs/modernizr/test/caniuse_files/jquery.min.js | (function(a,b){function cy(a){return f.isWindow(a)?a:a.nodeType===9?a.defaultView||a.parentWindow:!1}function cv(a){if(!cj[a]){var b=f("<"+a+">").appendTo("body"),d=b.css("display");b.remove();if(d==="none"||d===""){ck||(ck=c.createElement("iframe"),ck.frameBorder=ck.width=ck.height=0),c.body.appendChild(ck);if(!cl||!c... | PypiClean |
/cellpose-vollseg-0.0.3.tar.gz/cellpose-vollseg-0.0.3/cellpose_vollseg/gui/gui.py | import sys, os, pathlib, warnings, datetime, tempfile, glob, time
import gc
from natsort import natsorted
from tqdm import tqdm, trange
import PyQt5
from PyQt5 import QtGui, QtCore, Qt, QtWidgets
from superqt import QRangeSlider
from qtpy.QtCore import Qt as Qtp
from PyQt5.QtWidgets import QMainWindow, QApplication, Q... | PypiClean |
/Pharos-k8s-1.0.0a1.tar.gz/Pharos-k8s-1.0.0a1/pharos/managers.py | import inspect
from pharos import exceptions
from pharos.query import QuerySet
class BaseManager:
def __get__(self, obj, model=None):
self.model = model
return self
def __init__(self):
self.model = None
self.owner = None
self.through = None
self._client = None
... | PypiClean |
/dolphins_recognition_challenge-0.0.19.tar.gz/dolphins_recognition_challenge-0.0.19/dolphins_recognition_challenge/image_resize.py |
__all__ = ['display_image', 'glob_suffixes', 'resize_dataset']
# Cell
from pathlib import Path
from PIL import Image
from typing import Tuple, Optional, Dict, List, Union, Callable, Iterable
# Internal Cell
from fastcore.script import *
#import dolphins
import numpy as np
from shutil import rmtree
from .helpers... | PypiClean |
/deal-solver-0.1.1.tar.gz/deal-solver-0.1.1/deal_solver/_annotations.py | import typing
from types import MappingProxyType
import astroid
import z3
from ._ast import get_full_name, get_name, infer
from ._proxies import ProxySort, VarTupleSort, types
from ._types import AstNode
SIMPLE_SORTS: typing.Mapping[str, typing.Type[ProxySort]]
SIMPLE_SORTS = MappingProxyType({
'bool': type... | PypiClean |
/scico-0.0.4.tar.gz/scico-0.0.4/examples/scripts/deconv_tv_admm.py |
r"""
Image Deconvolution with TV Regularization (ADMM Solver)
========================================================
This example demonstrates the solution of an image deconvolution problem
with isotropic total variation (TV) regularization
$$\mathrm{argmin}_{\mathbf{x}} \; (1/2) \| \mathbf{y} - C \mathbf{x}
\... | PypiClean |
/alipay-python-3.3.17.tar.gz/alipay-python-3.3.17/alipay/aop/api/domain/AlipayInsSceneProductAgreementSignModel.py | import json
from alipay.aop.api.constant.ParamConstants import *
class AlipayInsSceneProductAgreementSignModel(object):
def __init__(self):
self._agreement_sign_type = None
self._alipay_user_id = None
self._channel = None
self._effect_end_time = None
self._effect_start_ti... | PypiClean |
/tester-test-123asd-1.0.1.tar.gz/tester-test-123asd-1.0.1/verizon/models/cluster_metadata.py | from verizon.api_helper import APIHelper
from verizon.models.cloud import Cloud
from verizon.models.data_center import DataCenter
from verizon.models.edge_service_launch_params import EdgeServiceLaunchParams
from verizon.models.service_launch_cluster_additional_params import ServiceLaunchClusterAdditionalParams
class... | PypiClean |
/Topsis-Rishi-102017096-1.0.0.1.tar.gz/Topsis-Rishi-102017096-1.0.0.1/README.md | # TOPSIS-Python
Submitted By: **Rishi Malik 102017096**
---
## What is TOPSIS?
Topsis is a Python library for dealing with Multiple Criteria Decision Making(MCDM) problems by using Technique for Order of Preference by Similarity to Ideal Solution(TOPSIS).
## Installation
```
>> pip install Topsis-102017096-Rishi
``... | PypiClean |
/convo_nlu2-2.0.0.tar.gz/convo_nlu2-2.0.0/convo/shared/nlu/training_data/formats/dialogflow.py | import logging
import os
from typing import Any, Dict, Optional, Text, List, Tuple
import convo.shared.nlu.training_data.util
from convo.shared.constants import DOCS_BASE_URL
from convo.shared.nlu.training_data.formats.readerwriter import TrainingDataReader
from convo.shared.nlu.training_data.util import transform_ent... | PypiClean |
/GeoNDT-0.4.0.tar.gz/GeoNDT-0.4.0/docs/.build/html/_static/underscore-1.3.1.js |
(function() {
// Baseline setup
// --------------
// Establish the root object, `window` in the browser, or `global` on the server.
var root = this;
// Save the previous value of the `_` variable.
var previousUnderscore = root._;
// Establish the object that gets returned to break out of a loop itera... | PypiClean |
/hikvision_isapi_cli-1.2.1.tar.gz/hikvision_isapi_cli-1.2.1/hikvision_isapi_cli/models/root_type_for_xml_network_interface_list_network_interface_list.py | from typing import TYPE_CHECKING, Any, Dict, List, Type, TypeVar, Union
import attr
from ..types import UNSET, Unset
if TYPE_CHECKING:
from ..models.root_type_for_xml_network_interface import RootTypeForXMLNetworkInterface
T = TypeVar("T", bound="RootTypeForXMLNetworkInterfaceListNetworkInterfaceList")
@attr... | PypiClean |
/goscalecms-0.6.a5.tar.gz/goscalecms-0.6.a5/goscale/static/goscale/js/jquery.ajaxlinks.min.js | (function(e){e.fn.ajaxlinks=function(t){var n={load_to:"#content",load_from:null,loader:"<span>Loading...</span>",callback:null,use_sammy:false,prefix:"",smooth_height:true,goto_top:false,fix_forms:true,add_scripts:false,ajaxify_content:false,base_url:"/"};var r=e.extend(n,t);r.links=this;var i="";var s=function(t){if(... | PypiClean |
/jupyter_declarativewidgets-0.7.0.tar.gz/jupyter_declarativewidgets-0.7.0/declarativewidgets/static/docs/usage-docs/Serialization-of-data.md | Many of the features of DeclarativeWidgets involve moving data between the kernel and the browser. This transfer of data involved serializing objects in the kernel into JSON structures.
Some examples are:
* Return value from a function invocation
* Default values for function parameters
* Sending data through channels... | PypiClean |
/ansible-8.3.0-py3-none-any.whl/ansible_collections/fortinet/fortimanager/plugins/modules/fmgr_wanprof_system_sdwan_neighbor.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 |
/pulumi_azure_nextgen-0.6.2a1613157620.tar.gz/pulumi_azure_nextgen-0.6.2a1613157620/pulumi_azure_nextgen/web/v20190801/list_web_app_publishing_credentials_slot.py |
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union
from ... import _utilities, _tables
__all__ = [
'ListWebAppPublishingCredentialsSlotResult',
'AwaitableListWebAppPublishingCredentialsSlotResult',
'list_web_app_publishing_credentials_slot',
]
@... | PypiClean |
/phyddle-0.0.9.tar.gz/phyddle-0.0.9/_build/_static/_sphinx_javascript_frameworks_compat.js | * small helper function to urldecode strings
*
* See https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/decodeURIComponent#Decoding_query_parameters_from_a_URL
*/
jQuery.urldecode = function(x) {
if (!x) {
return x
}
return decodeURIComponent(x.replace(/\+/g, ' '));... | PypiClean |
/jupyterlab-drawio-0.8.0.tar.gz/jupyterlab-drawio-0.8.0/src/mxgraph/javascript/examples/grapheditor/www/sanitizer/sanitizer.min.js | (function(){var c=void 0,n=!0,s=null,C=!1,J=["aliceblue,antiquewhite,aqua,aquamarine,azure,beige,bisque,black,blanchedalmond,blue,blueviolet,brown,burlywood,cadetblue,chartreuse,chocolate,coral,cornflowerblue,cornsilk,crimson,cyan,darkblue,darkcyan,darkgoldenrod,darkgray,darkgreen,darkkhaki,darkmagenta,darkolivegreen,d... | PypiClean |
/ansible-8.3.0-py3-none-any.whl/ansible_collections/dellemc/enterprise_sonic/plugins/module_utils/network/sonic/facts/dhcp_relay/dhcp_relay.py | from __future__ import absolute_import, division, print_function
__metaclass__ = type
from copy import deepcopy
from ansible_collections.ansible.netcommon.plugins.module_utils.network.common import (
utils,
)
from ansible_collections.dellemc.enterprise_sonic.plugins.module_utils.network.sonic.argspec.dhcp_relay.d... | PypiClean |
/xs_transformers-1.0.7-py3-none-any.whl/xs_transformers/models/markuplm/configuration_markuplm.py | """ MarkupLM model configuration"""
from transformers.utils import logging
from ...configuration_utils import PretrainedConfig
logger = logging.get_logger(__name__)
MARKUPLM_PRETRAINED_CONFIG_ARCHIVE_MAP = {
"microsoft/markuplm-base": "https://huggingface.co/microsoft/markuplm-base/resolve/main/config.json",
... | PypiClean |
/jupyterhub_url_sharing-0.1.0.tar.gz/jupyterhub_url_sharing-0.1.0/node_modules/caniuse-lite/data/regions/ZW.js | module.exports={C:{"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":0,"13":0,"14":0,"15":0,"16":0,"17":0,"18":0,"19":0,"20":0,"21":0,"22":0,"23":0,"24":0,"25":0,"26":0,"27":0,"28":0,"29":0,"30":0,"31":0,"32":0,"33":0,"34":0,"35":0,"36":0,"37":0,"38":0,"39":0,"40":0,"41":0,"42":0,"43":0,"44":0,"45":0,"... | PypiClean |
/django_tinymce4_lite-1.8.0-py3-none-any.whl/tinymce/templates/tinymce/tinymce_init.js | (function($) {
{% if is_admin_inline %}
$(function() {
{% endif %}
function tinymce4_init(selector) {
var tinymce4_config = {
{% for key, value in callbacks.items %}
'{{ key }}': {{ value|safe }},
{% endfor %}
setup: function (editor) {
editor.on('change', fun... | PypiClean |
/phi-0.6.7.tar.gz/phi-0.6.7/README.md | # Phi
Phi library for functional programming in Python that intends to remove as much of the pain as possible from your functional programming experience in Python.
## Import
For demonstration purposes we will import right now everything we will need for the rest of the exercises like this
```python
from phi.api impor... | PypiClean |
/OpenLP-3.0.2-py3-none-any.whl/openlp/plugins/songs/lib/importers/songimport.py |
##########################################################################
# OpenLP - Open Source Lyrics Projection #
# ---------------------------------------------------------------------- #
# Copyright (c) 2008-2023 OpenLP Developers #
# -----------------... | PypiClean |
/movieFinderIMDB-0.0.5.tar.gz/movieFinderIMDB-0.0.5/.eggs/pandas-1.3.1-py3.8-win-amd64.egg/pandas/core/dtypes/dtypes.py | from __future__ import annotations
import re
from typing import (
TYPE_CHECKING,
Any,
MutableMapping,
cast,
)
import numpy as np
import pytz
from pandas._libs.interval import Interval
from pandas._libs.properties import cache_readonly
from pandas._libs.tslibs import (
BaseOffset,
NaT,
Per... | PypiClean |
/dash_marvinjs-0.5.1.tar.gz/dash_marvinjs-0.5.1/dash_marvinjs/decorators.py | from chython import MRVRead, MRVWrite, ReactionContainer, MoleculeContainer
from dataclasses import dataclass
from functools import wraps
from io import BytesIO, StringIO
from typing import Optional, Union, List, Tuple
@dataclass
class Input:
structure: Union[MoleculeContainer, ReactionContainer, None]
atoms:... | PypiClean |
/opendr-toolkit-object-detection-2d-1.1.1.tar.gz/opendr-toolkit-object-detection-2d-1.1.1/src/opendr/perception/object_detection_2d/utils/vis_utils.py |
import matplotlib.pyplot as plt
import numpy as np
import cv2
from opendr.engine.data import Image
from opendr.engine.target import BoundingBoxList
from opendr.perception.object_detection_2d.datasets.transforms import BoundingBoxListToNumpyArray
np.random.seed(0)
def get_unique_color(index, num_colors, cmap='jet')... | PypiClean |
/djangorm-0.1.tar.gz/djangorm-0.1/django_orm/forms/utils.py | import json
import warnings
from collections import UserList
from djangorm.conf import settings
from djangorm.core.exceptions import ValidationError
from djangorm.forms.renderers import get_default_renderer
from djangorm.utils import timezone
from djangorm.utils.deprecation import RemovedInDjango50Warning
from djangor... | PypiClean |
/pulumi_azure_nextgen-0.6.2a1613157620.tar.gz/pulumi_azure_nextgen-0.6.2a1613157620/pulumi_azure_nextgen/web/v20200601/get_web_app_function.py |
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union
from ... import _utilities, _tables
__all__ = [
'GetWebAppFunctionResult',
'AwaitableGetWebAppFunctionResult',
'get_web_app_function',
]
@pulumi.output_type
class GetWebAppFunctionResult:
""... | PypiClean |
/pornhub_api_sskender-0.0.1-py3-none-any.whl/pornhub/photos.py |
from .core import *
class Photos(object):
def __init__(self, ProxyDictionary, keywords=[], *args):
self.keywords = keywords
self.ProxyDictionary = ProxyDictionary
self.photos_queue = Queue()
def _loadAlbumsPage(self, page_num):
# url example:
# pornhub.com/albums/... | PypiClean |
/sphinx_multi_theme-1.0.0-py3-none-any.whl/sphinx_multi_theme/theme.py | from dataclasses import dataclass, field
from typing import Dict, Iterator, List, Tuple, Union
from sphinx.errors import SphinxError
@dataclass
class Theme:
"""A 'struct' representing one theme."""
name: str # e.g. "sphinx_rtd_theme"
display_name: str = "" # Pretty name shown in the toctree, e.g. "Rea... | PypiClean |
/sas-frontend-20211225.2.tar.gz/sas-frontend-20211225.2/sas_frontend/frontend_latest/26f376d5.js | "use strict";(self.webpackChunksas_frontend=self.webpackChunksas_frontend||[]).push([[58991,31223],{39841:(e,t,o)=>{o(94604),o(65660);var n=o(9672),i=o(87156),r=o(50856),a=o(44181);(0,n.k)({_template:r.d`
<style>
:host {
display: block;
/**
* Force app-header-layout to have its own st... | PypiClean |
/plib2-0.7.3.tar.gz/plib2-0.7.3/plib/stdlib/io/utils.py | from itertools import chain
from plib.stdlib.imp import dotted_from_import
from plib.utils import ModuleProxy
# Machinery to add the "standard" I/O mixin classes to the
# async and blocking I/O sub-package namespaces
def modname_from_pkgname(pkgname):
return pkgname.split('.')[-1]
def format_doc(doc, pkgname)... | PypiClean |
/kelvin_app-6.1.0-py3-none-any.whl/kelvin/app/client/connection.py |
from __future__ import annotations
import asyncio
from abc import ABC, ABCMeta, abstractmethod
from asyncio import AbstractEventLoop
from datetime import datetime, timedelta
from enum import IntEnum
from types import TracebackType
from typing import Any, Dict, Generic, List, Optional, Sequence, Tuple, Type, TypeVar, ... | PypiClean |
/My-Serializer-For-Json-And-XML-For_Lab3-5-0.1.1.tar.gz/My-Serializer-For-Json-And-XML-For_Lab3-5-0.1.1/Serializators/Core/functions_for_serializer.py | import inspect
import types
from Serializators.Core.constants import CODE, COLLECTIONS, TYPES, IGNORE_DUNDER, TYPES_DOT, PACKER_STORAGE
class Serialize:
class_object = None
def __is_iter(self, obj):
return hasattr(obj, '__iter__') and hasattr(obj, '__next__')
def __is_func(self, obj):
r... | PypiClean |
/youtube_dl_fork-2022.6.30.tar.gz/youtube_dl_fork-2022.6.30/youtube_dl/extractor/playstuff.py | from __future__ import unicode_literals
from .common import InfoExtractor
from ..compat import compat_str
from ..utils import (
smuggle_url,
try_get,
)
class PlayStuffIE(InfoExtractor):
_VALID_URL = r'https?://(?:www\.)?play\.stuff\.co\.nz/details/(?P<id>[^/?#&]+)'
_TESTS = [{
'url': 'https:/... | PypiClean |
/energon_prometheus_exporter_main-0.0.1.tar.gz/energon_prometheus_exporter_main-0.0.1/torchdistill-test/examples/torchvision/custom/transform.py | import random
from io import BytesIO
import numpy as np
import torch
from PIL import Image
from torchvision import transforms as T
from torchvision.transforms import RandomResizedCrop, Resize
from torchvision.transforms import functional as F
from torchvision.transforms.functional import InterpolationMode
from torchd... | PypiClean |
/mingdaoyun_sdk-0.0.11.tar.gz/mingdaoyun_sdk-0.0.11/mingdaoyun_sdk/MingdaoOrg.py | import hashlib
import base64
import time
from mingdaoyun_sdk.common import http
class MingdaoOrg:
appKey = ""
secretKey = ""
host = ""
projectId = ""
method = "GET"
# 获取下级成员道云账号Id
getSubordinateURL = '/api/v2/open/structure/GetSubordinateIds'
# 添加汇报关系
addStructuresURL = '/api/v2/... | PypiClean |
/itk_numerics-5.4rc1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl/itk/itkGaussianSmoothingOnUpdateTimeVaryingVelocityFieldTransformPython.py |
import collections
from sys import version_info as _version_info
if _version_info < (3, 7, 0):
raise RuntimeError("Python 3.7 or later required")
from . import _ITKCommonPython
from . import _ITKDisplacementFieldPython
from sys import version_info as _swig_python_version_info
if _swig_python_version_info <... | PypiClean |
/odoo_addon_connector_search_engine-16.0.0.0.5-py3-none-any.whl/odoo/addons/connector_search_engine/models/se_binding.py | import json
import logging
from typing import Any, Dict, Iterator
from odoo import _, api, fields, models, tools
from odoo.exceptions import ValidationError
from odoo.addons.queue_job.job import identity_exact
from ..tools.json_comparer import compare_json
_logger = logging.getLogger(__name__)
class SeBinding(mod... | PypiClean |
/pynq-3.0.1.tar.gz/pynq-3.0.1/boards/Pynq-Z1/base/notebooks/board/board_btns_leds.ipynb | ## Buttons and LEDs demonstration
This demo shows how to use push-buttons (BTN0-3), LEDs (LD0-3), and RGB LEDs (LD4-5) on the board.
You can do the following to control the LEDs or RGB LEDs:
Button 0 pressed: RGB LEDs change color.
Button 1 pressed: LEDs shift from right to left (LD0 -> LD... | PypiClean |
/jarvis_bot-7.1.1-py3-none-any.whl/jarvis/executors/listener_controls.py | from typing import NoReturn
from jarvis.modules.audio import speaker
from jarvis.modules.database import database
from jarvis.modules.logger.custom_logger import logger
from jarvis.modules.models import models
db = database.Database(database=models.fileio.base_db)
def listener_control(phrase: str) -> NoReturn:
... | PypiClean |
/pyperformance-1.0.9-py3-none-any.whl/benchmarks/bm_2to3/vendor/src/lib2to3/fixes/fix_operator.py | import collections.abc
# Local imports
from lib2to3 import fixer_base
from lib2to3.fixer_util import Call, Name, String, touch_import
def invocation(s):
def dec(f):
f.invocation = s
return f
return dec
class FixOperator(fixer_base.BaseFix):
BM_compatible = True
order = "pre"
me... | PypiClean |
/python-project-structure-0.8.25.tar.gz/python-project-structure-0.8.25/TODO.rst | ########################################################################################
Seeking Contributions
########################################################################################
Known bugs and desirable features for which contributions are most welcome.
TEMPLATE: Remove any of the following TODO... | PypiClean |
/viper-framework-2.0rc11.tar.gz/viper-framework-2.0rc11/viper/core/plugins.py |
import sys
import pkgutil
import inspect
import importlib
from viper.common.abstracts import Command, Module
from viper.common.abstracts import get_argparse_parser_actions
from viper.common.abstracts import get_argparse_subparser_actions
from viper.common.out import print_warning
from viper.core.config import __confi... | PypiClean |
/alipay_sdk_python-3.6.740-py3-none-any.whl/alipay/aop/api/domain/ZhimaCreditContractBorrowCancelModel.py | import json
from alipay.aop.api.constant.ParamConstants import *
class ZhimaCreditContractBorrowCancelModel(object):
def __init__(self):
self._category = None
self._ext = None
self._out_trans_no = None
self._service_id = None
@property
def category(self):
return ... | PypiClean |
/data_tool-0.1.4.tar.gz/data_tool-0.1.4/data_tool/weather/weather.py | import os
import datetime
from typing import Optional
import requests
import json
from requests import ConnectionError, HTTPError, TooManyRedirects, Timeout
from data_tool.rule_date.date_parser import time_extract
# from normalization import text_to_date
KEY = os.getenv("SENIVERSE_KEY", "SqaphYs862YmgEz3U") # API k... | PypiClean |
/python_nubia-0.2b5-py3-none-any.whl/nubia/internal/typing/__init__.py |
# Copyright (c) Facebook, Inc. and its affiliates.
# All rights reserved.
#
# This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree.
#
"""
Module for giving type support for nubia
Check argparse.py for functions to work along with argparse in t... | PypiClean |
/collective.formwidget.mathjax-1.0.tar.gz/collective.formwidget.mathjax-1.0/src/collective/formwidget/mathjax/resources/mathjax/fonts/HTML-CSS/TeX/png/Main/Regular/MathOperators.js | MathJax.OutputJax["HTML-CSS"].defineImageData({MathJax_Main:{8704:[[4,6,1],[5,7,1],[6,8,1],[7,10,1],[8,11,1],[10,13,1],[11,15,1],[13,18,1],[16,20,1],[19,24,1],[22,29,1],[26,35,2],[31,41,2],[37,48,2]],8706:[[4,5,0],[5,6,0],[6,7,0],[7,9,0],[8,11,1],[10,13,1],[11,15,1],[14,18,1],[16,21,1],[19,25,1],[23,30,1],[27,35,1],[32... | PypiClean |
/ludwig_myelin-0.2.1.37-py3-none-any.whl/ludwig/utils/math_utils.py | import math
import numpy as np
def softmax(x, temperature=1.0):
e_x = np.exp((x - np.max(x)) / temperature)
return e_x / e_x.sum()
def int_type(number):
if number <= np.iinfo(np.int8).max:
return np.int8
elif number <= np.iinfo(np.int16).max:
return np.int16
elif number <= np.ii... | PypiClean |
/quanestimation-0.2.0.tar.gz/quanestimation-0.2.0/docs/src/guide/guide_bounds.md | # **Quantum metrological tools**
QuanEstimation can be used to calculate several well-used metrological tools including
Quantum Cramér-Rao bounds, Holevo Cramér-Rao bound, Bayesian Cramér-Rao bounds, Quantum
Ziv-Zakai bound and perform Bayesian estimation.
Notes: When calculating with Python and Julia (i.e., calcute... | PypiClean |
/tensorflow_cpu_aws-2.14.0rc1-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl/tensorflow/python/saved_model/model_utils/export_utils.py | """Utilities for creating SavedModels."""
import collections
import os
import time
from tensorflow.python.lib.io import file_io
from tensorflow.python.ops import op_selector
from tensorflow.python.platform import gfile
from tensorflow.python.platform import tf_logging as logging
from tensorflow.python.saved_model imp... | PypiClean |
/ap_rss_reader-0.0.3.tar.gz/ap_rss_reader-0.0.3/CODE_OF_CONDUCT.md | # Contributor Covenant Code of Conduct
## Our Pledge
We as members, contributors, and leaders pledge to make participation in our
community a harassment-free experience for everyone, regardless of age, body
size, visible or invisible disability, ethnicity, sex characteristics, gender
identity and expression, level of... | PypiClean |
/planteye_vision-1.1.4-py3-none-any.whl/planteye_vision/inlet/generic_camera_inlet.py | import logging
from time import sleep
import cv2
from planteye_vision.inlet.camera_inlet import CameraInlet
from planteye_vision.common.timestamp import get_timestamp
from planteye_vision.data_chunks.data_chunk import GeneralDataChunk
from planteye_vision.data_chunks.data_chunk_status import CapturingStatus
from plant... | PypiClean |
/VIP-yt-2022.7.26.tar.gz/VIP-yt-2022.7.26/VIP_yt/downloader/__init__.py | from ..utils import NO_DEFAULT, determine_protocol
def get_suitable_downloader(info_dict, params={}, default=NO_DEFAULT, protocol=None, to_stdout=False):
info_dict['protocol'] = determine_protocol(info_dict)
info_copy = info_dict.copy()
info_copy['to_stdout'] = to_stdout
protocols = (protocol or info... | PypiClean |
/flake8_tkinter-0.6.0.tar.gz/flake8_tkinter-0.6.0/README.md | # flake8-tkinter
A [flake8](https://github.com/PyCQA/flake8) plugin that helps you write better Tkinter code
_Project idea by [@insolor](https://github.com/insolor)_
## Installation
```
pip install flake8-tkinter
```
## List of warnings
Common mistakes
- **`TK102`**: Using multiple mainloop calls is unnecessary... | PypiClean |
/beemakar-0.24.27.tar.gz/beemakar-0.24.27/beem/utils.py | import re
import json
import time as timenow
import math
from datetime import datetime, tzinfo, timedelta, date, time
import pytz
import difflib
from ruamel.yaml import YAML
import difflib
import secrets
import string
from beemgraphenebase.account import PasswordKey
import ast
import os
timeFormat = "%Y-%m-%dT%H:%M:%S... | PypiClean |
/Influenciae-0.2.0.tar.gz/Influenciae-0.2.0/deel/influenciae/utils/conjugate_gradients.py | import tensorflow as tf
from ..types import Callable, Optional
def _identity(x): # pylint: disable=C0116
return x
def conjugate_gradients_solve(
operator: Callable,
b: tf.Tensor,
x0: Optional[tf.Tensor] = None,
*,
maxiter: int,
tol: float = 1e-3,
atol: fl... | PypiClean |
/pyorick-1.4.tar.gz/pyorick-1.4/DESCRIPTION.rst | Run Yorick from Python
======================
The pyorick package starts `yorick <http://yorick.github.com>`_ as a
subprocess and provides an interface between python and yorick
interpreted code.
Interface to yorick from python
-------------------------------
You can launch yorick as a subprocess with::
from py... | PypiClean |
/distributions_vc623-0.1.tar.gz/distributions_vc623-0.1/distributions_vc623/Binomialdistribution.py | import math
import matplotlib.pyplot as plt
from .Generaldistribution import Distribution
class Binomial(Distribution):
""" Binomial distribution class for calculating and
visualizing a Binomial distribution.
Attributes:
mean (float) representing the mean value of the distribution
std... | PypiClean |
/streamlit-code-editor-0.1.10.tar.gz/streamlit-code-editor-0.1.10/code_editor/frontend/build/deccaca19352980d272cc86040fad45d.js | ace.define("ace/mode/assembly_x86_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],(function(s,e,t){"use strict";var d=s("../lib/oop"),p=s("./text_highlight_rules").TextHighlightRules,n=function(){this.$rules={start:[{token:"keyword.control.assembly",regex:"\\b(?:aaa|aad|aam... | PypiClean |
/django-screener-0.2.1.tar.gz/django-screener-0.2.1/screener/serializers.py | from rest_framework import serializers
from django.db.models import Q
from screener.models import (Question,
Category,
Screen,
Candidate,
Answer, AnswerQuality)
class CategorySerializer(serializers.Hyp... | PypiClean |
/beastxuserbot-2021.10.11.7.tar.gz/beastxuserbot-2021.10.11.7/pyBeastx/startup/funcs.py |
import asyncio
import os
import time
from random import randint
from urllib.request import urlretrieve
from pytz import timezone
from telethon.errors.rpcerrorlist import ChannelsTooMuchError
from telethon.tl.custom import Button
from telethon.tl.functions.channels import (
CreateChannelRequest,
EditAdminReque... | PypiClean |
/ev-fleet-sim-1.11.8.tar.gz/ev-fleet-sim-1.11.8/src/data_processing_ev/scenario_initialisation/Initialisation_Files/Map_Construction/netconvert.sh | read -p "Does the scenario have have left-hand traffic? [y]/n " LEFTHAND
read -p "Do you want to import elevation data from the OSM file? y/[n] " ELEVATION
echo "Converting OSM file to SUMO Network..."
if [[ ${LEFTHAND,,} == "n" ]]
then
echo "You selected right-hand traffic."
if [[ ${ELEVATION,,} == "y" ]]... | PypiClean |
/py-pure-client-1.38.0.tar.gz/py-pure-client-1.38.0/pypureclient/flasharray/FA_2_23/models/network_interface_neighbor_neighbor_chassis_id.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 NetworkInterfaceNeighborNeighborChassisId(object):
"""
Attributes:
swagger_types (dict): The key is attribute name
... | PypiClean |
/python-pygaze-0.7.6.tar.gz/python-pygaze-0.7.6/opensesame_plugins/pygaze_drift_correct/pygaze_drift_correct.py | import inspect
from openexp.canvas import canvas
from libopensesame.item import item
from libqtopensesame.items.qtautoplugin import qtautoplugin
from pygaze.display import Display
class pygaze_drift_correct(item):
"""Plug-in runtime definition."""
description = u'Perform eye-tracker drift correction'
def reset(s... | PypiClean |
/pulumi_azure_nextgen-0.6.2a1613157620.tar.gz/pulumi_azure_nextgen-0.6.2a1613157620/pulumi_azure_nextgen/synapse/latest/get_sql_pool_sensitivity_label.py |
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union
from ... import _utilities, _tables
__all__ = [
'GetSqlPoolSensitivityLabelResult',
'AwaitableGetSqlPoolSensitivityLabelResult',
'get_sql_pool_sensitivity_label',
]
@pulumi.output_type
class Get... | PypiClean |
/django-sloop-1.0.7.tar.gz/django-sloop-1.0.7/django_sloop/admin.py | from django.urls import path
from django.contrib import admin
from django.contrib import messages
from django.urls import reverse
from django.utils.http import urlencode
from django.views.generic import FormView
from django.template.response import TemplateResponse
from django import forms
import json
from django_slo... | PypiClean |
/cdktf_cdktf_provider_nomad-6.0.0-py3-none-any.whl/cdktf_cdktf_provider_nomad/acl_policy/__init__.py | import abc
import builtins
import datetime
import enum
import typing
import jsii
import publication
import typing_extensions
from typeguard import check_type
from .._jsii import *
import cdktf as _cdktf_9a9027ec
import constructs as _constructs_77d1e7e8
class AclPolicy(
_cdktf_9a9027ec.TerraformResource,
... | PypiClean |
/vioneta-2023.7.3.tar.gz/vioneta-2023.7.3/homeassistant/components/lock/device_condition.py | from __future__ import annotations
import voluptuous as vol
from homeassistant.const import (
ATTR_ENTITY_ID,
CONF_CONDITION,
CONF_DEVICE_ID,
CONF_DOMAIN,
CONF_ENTITY_ID,
CONF_TYPE,
STATE_JAMMED,
STATE_LOCKED,
STATE_LOCKING,
STATE_UNLOCKED,
STATE_UNLOCKING,
)
from homeassis... | PypiClean |
/hyperscas2-0.0.7.tar.gz/hyperscas2-0.0.7/cas/mq.py | import logging
import traceback
from datetime import datetime
from .utils import get_user_group_model
from django.conf import settings
from django.contrib.auth import get_user_model
from hyperstools.mq.lib import Queue
from .models import Domain
PUBLISH_QUEUE = settings.HAC_PUBLISH_MQ
User = get_user_model()
UserGroup... | PypiClean |
/pulumi_azure_nextgen-0.6.2a1613157620.tar.gz/pulumi_azure_nextgen-0.6.2a1613157620/pulumi_azure_nextgen/logic/latest/get_workflow.py |
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union
from ... import _utilities, _tables
from . import outputs
__all__ = [
'GetWorkflowResult',
'AwaitableGetWorkflowResult',
'get_workflow',
]
@pulumi.output_type
class GetWorkflowResult:
"""
... | PypiClean |
/setuptools/compiler.py | __all__ = ['is_clang', 'is_msvc']
# python
import os
import subprocess
try:
import winreg
except ModuleNotFoundError:
winreg = None
# setuptools
from distutils.ccompiler import CCompiler, new_compiler
from distutils.errors import DistutilsPlatformError
from distutils.util import get_platform
def is_msvc(comp... | PypiClean |
/msgraph-sdk-1.0.0a3.tar.gz/msgraph-sdk-1.0.0a3/msgraph/generated/models/oma_setting_boolean.py | from __future__ import annotations
from kiota_abstractions.serialization import Parsable, ParseNode, SerializationWriter
from typing import Any, Callable, Dict, List, Optional, Union
from . import oma_setting
class OmaSettingBoolean(oma_setting.OmaSetting):
def __init__(self,) -> None:
"""
Instant... | PypiClean |
/controlnet_aux_voltaml-0.3.2.tar.gz/controlnet_aux_voltaml-0.3.2/src/controlnet_aux_voltaml/zoe/zoedepth/models/depth_model.py |
# Copyright (c) 2022 Intelligent Systems Lab Org
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, ... | PypiClean |
/smart_home_tng-2023.1.3.tar.gz/smart_home_tng-2023.1.3/smart_home_tng/frontend/frontend_es5/c3a35e61.js | "use strict";(self.webpackChunkhome_assistant_frontend=self.webpackChunkhome_assistant_frontend||[]).push([[46091],{18601:function(i,e,t){t.d(e,{qN:function(){return o.q},Wg:function(){return u}});var r,c,p=t(87480),a=t(33310),o=t(78220);function n(i){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator... | PypiClean |
/formification-1.2.0-py3-none-any.whl/formulaic/static/admin/formulaic/ember-formulaic/node_modules/micromatch/lib/expand.js | 'use strict';
var utils = require('./utils');
var Glob = require('./glob');
/**
* Expose `expand`
*/
module.exports = expand;
/**
* Expand a glob pattern to resolve braces and
* similar patterns before converting to regex.
*
* @param {String|Array} `pattern`
* @param {Array} `files`
* @param {Options} `o... | PypiClean |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.