id
stringlengths
1
8
text
stringlengths
6
1.05M
dataset_id
stringclasses
1 value
/mis_modulos-0.1.tar.gz/mis_modulos-0.1/tensorflow/python/grappler/tf_optimizer.py
"""Provides a proper python API for the symbols exported through swig.""" import threading from tensorflow.core.framework import graph_pb2 from tensorflow.core.protobuf import config_pb2 from tensorflow.python.grappler import _pywrap_tf_optimizer as tf_opt from tensorflow.python.grappler import cluster as gcluster _...
PypiClean
/flask-bluelogin-0.2.7.tar.gz/flask-bluelogin-0.2.7/flask_bluelogin/swagger-ui/lib/sanitize-html.min.js
(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.sanitizeHtml=f...
PypiClean
/swh.web-0.2.37.tar.gz/swh.web-0.2.37/assets/config/webpack-plugins/generate-weblabels-webpack-plugin/index.js
const ejs = require('ejs'); const fs = require('fs'); const log = require('webpack-log'); const path = require('path'); const schema = require('./plugin-options-schema.json'); const spdxParse = require('spdx-expression-parse'); const spdxLicensesMapping = require('./spdx-licenses-mapping'); const {validate} = require(...
PypiClean
/tb-rest-client-3.5.tar.gz/tb-rest-client-3.5/tb_rest_client/models/models_pe/edge_info.py
# Copyright 2023. ThingsBoard # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writi...
PypiClean
/aiddl_core-0.3.1-py3-none-any.whl/aiddl_core/function/function_registry.py
from aiddl_core.representation.sym import Sym from aiddl_core.representation.var import Var from aiddl_core.representation.tuple import Tuple from aiddl_core.representation.list import List from aiddl_core.function.eval.type import TypeCheckFunction, GenericTypeConstructor from aiddl_core.function.function import Int...
PypiClean
/makeapp-1.9.1.tar.gz/makeapp-1.9.1/docs/source/userconf.rst
User defined configuration ========================== User defined configuration should be stored in ``.makeapp`` (dot is required) directory under user's HOME directory:: /home/librarian/.makeapp/ Thus user can configure: 1. `makeapp` default settings, that are used on rollouts; 2. application layouts by prov...
PypiClean
/azure_percept-0.0.13-cp38-cp38-manylinux_2_24_aarch64.whl/azure/iot/percept/extensions/ops/priorbox_clustered.py
import numpy as np from mo.front.common.layout import get_width_dim, get_height_dim from mo.front.extractor import attr_getter, bool_to_str from mo.graph.graph import Node, Graph from mo.ops.op import Op class PriorBoxClusteredOp(Op): op = 'PriorBoxClustered' def __init__(self, graph: Graph, attrs: dict): ...
PypiClean
/Aj_Zsl_nlu-4.2.0-py3-none-any.whl/nlu/pipe/utils/pipe_utils.py
import logging from sparknlp.annotator import * import nlu from nlu import Licenses from nlu.pipe.nlu_component import NluComponent from nlu.pipe.pipeline import NLUPipeline from nlu.pipe.utils.resolution.storage_ref_utils import StorageRefUtils from nlu.universe.atoms import JslAnnoId from nlu.universe.component_uni...
PypiClean
/taskcc-alipay-sdk-python-3.3.398.tar.gz/taskcc-alipay-sdk-python-3.3.398/alipay/aop/api/domain/AlipayMarketingCashitemvoucherTemplateCreateModel.py
import json from alipay.aop.api.constant.ParamConstants import * class AlipayMarketingCashitemvoucherTemplateCreateModel(object): def __init__(self): self._amount = None self._brand_name = None self._discount = None self._floor_amount = None self._fund_account = None ...
PypiClean
/burp-ui-1.1.1.tar.gz/burp-ui-1.1.1/burpui/static/vendor/angular/angular.min.js
(function(w){'use strict';function oe(a){if(B(a))u(a.objectMaxDepth)&&(Mc.objectMaxDepth=Wb(a.objectMaxDepth)?a.objectMaxDepth:NaN);else return Mc}function Wb(a){return Y(a)&&0<a}function K(a,b){b=b||Error;return function(){var d=arguments[0],c;c="["+(a?a+":":"")+d+"] http://errors.angularjs.org/1.6.9/"+(a?a+"/":"")+d;...
PypiClean
/garbas.forum-0.1b4.tar.gz/garbas.forum-0.1b4/garbas/forum/browser/topic.py
from datetime import datetime from zope.i18n import translate from zope.component import getUtility from zope.component import getMultiAdapter from plone.memoize.instance import memoize from collective.captcha.browser.captcha import Captcha from Products.Five.browser.pagetemplatefile import ViewPageTemplateFile fro...
PypiClean
/django-geoexplorer-worldmap-4.0.72.tar.gz/django-geoexplorer-worldmap-4.0.72/geoexplorer-worldmap/static/worldmap_client/externals/gxp/src/script/plugins/Legend.js
* @requires plugins/Tool.js * @requires GeoExt/widgets/LegendPanel.js * @requires GeoExt/widgets/WMSLegend.js */ /** api: (define) * module = gxp.plugins * class = Legend */ /** api: (extends) * plugins/Tool.js */ Ext.namespace("gxp.plugins"); /** api: constructor * .. class:: Legend(config) * * P...
PypiClean
/azure-ai-language-conversations-1.1.0.zip/azure-ai-language-conversations-1.1.0/azure/ai/language/conversations/authoring/aio/_client.py
from copy import deepcopy from typing import Any, Awaitable, TYPE_CHECKING from azure.core import AsyncPipelineClient from azure.core.rest import AsyncHttpResponse, HttpRequest from .._serialization import Deserializer, Serializer from ._configuration import ConversationAuthoringClientConfiguration from ._operations...
PypiClean
/python-rainwave-client-0.10.0.tar.gz/python-rainwave-client-0.10.0/src/rainwaveclient/listener.py
class RainwaveListener(dict): """A :class:`RainwaveListener` object represents a radio listener.""" #: The :class:`RainwaveChannel` the listener belongs to. channel = None def __init__(self, channel, raw_info): self.channel = channel super(RainwaveListener, self).__init__(raw_info) ...
PypiClean
/auto_augment-1.0.0-cp38-cp38-manylinux1_x86_64.whl/auto_augment/third_party/PaddleClas/ppcls/modeling/architectures/resnet_vd.py
from __future__ import absolute_import from __future__ import division from __future__ import print_function import math import paddle import paddle.fluid as fluid from paddle.fluid.param_attr import ParamAttr __all__ = [ "ResNet", "ResNet18_vd", "ResNet34_vd", "ResNet50_vd", "ResNet101_vd", "ResNet152_vd",...
PypiClean
/unifix-0.1.1-py3-none-any.whl/UniFix/Uni/option.py
import re import collections import logging tokenstate = collections.namedtuple('tokenstate', 'startpos endpos token') logger = logging.getLogger(__name__) class paragraph(object): '''a paragraph inside a man page is text that ends with two new lines''' def __init__(self, idx, text, section, is_option): ...
PypiClean
/mess_server_dec-0.0.2.tar.gz/mess_server_dec-0.0.2/server/server/main_window.py
from PyQt5.QtWidgets import QMainWindow, QAction, qApp, QApplication, QLabel, QTableView from PyQt5.QtGui import QStandardItemModel, QStandardItem from PyQt5.QtCore import QTimer from server.stat_window import StatWindow from server.config_window import ConfigWindow from server.add_user import RegisterUser from server....
PypiClean
/novel_dl-1.6.2-py3-none-any.whl/novel_dl/themes/narou/static/jquery.min.js
!function(a,b){"object"==typeof module&&"object"==typeof module.exports?module.exports=a.document?b(a,!0):function(a){if(!a.document)throw new Error("jQuery requires a window with a document");return b(a)}:b(a)}("undefined"!=typeof window?window:this,function(a,b){var c=[],d=a.document,e=c.slice,f=c.concat,g=c.push,h=c...
PypiClean
/windmill_api-1.165.0-py3-none-any.whl/windmill_api/models/open_flow_value_failure_module_suspend_resume_form.py
from typing import Any, Dict, List, Type, TypeVar, Union import attr from ..models.open_flow_value_failure_module_suspend_resume_form_schema import ( OpenFlowValueFailureModuleSuspendResumeFormSchema, ) from ..types import UNSET, Unset T = TypeVar("T", bound="OpenFlowValueFailureModuleSuspendResumeForm") @attr...
PypiClean
/rezup-api-2.6.0.tar.gz/rezup-api-2.6.0/src/rezup/_vendor/toml/encoder.py
import datetime import re import sys from decimal import Decimal from rezup._vendor.toml.decoder import InlineTableDict if sys.version_info >= (3,): unicode = str def dump(o, f, encoder=None): """Writes out dict as toml to a file Args: o: Object to dump into toml f: File descriptor wher...
PypiClean
/modislock-0.2.1.tar.gz/modislock-0.2.1/modislock_webservice/static/plugins/DataTables-1.10.15/extensions/Scroller/Readme.md
# Scroller Scroller is a virtual rendering plug-in for DataTables which allows large datasets to be drawn on screen every quickly. What the virtual rendering means is that only the visible portion of the table (and a bit to either side to make the scrolling smooth) is drawn, while the scrolling container gives the vis...
PypiClean
/boil-0.2.0.tar.gz/boil-0.2.0/README.rst
Boil ============================================== .. image:: https://img.shields.io/travis/bzurkowski/boil.svg :target: https://travis-ci.org/bzurkowski/boil .. image:: https://api.codeclimate.com/v1/badges/b56e0c5a0856da0c35ba/maintainability :target: https://codeclimate.com/github/bzurkowski/boil/maintain...
PypiClean
/SRF-0.2.2.tar.gz/SRF-0.2.2/src/python/srf/psf/gaussFunction.py
import numpy as np from numpy import matlib from scipy.optimize import curve_fit __all__ = ['gaussian1d', 'gaussian2d', 'gaussFit1d', 'gaussFit2d', 'gaussFit1d_solver', 'gaussFit2d_solver'] def gaussian1d(x, a, sigma): if isinstance(x, list): x = np.array(x) return a * np.exp(-x ** 2 / (2 * sigma ** 2...
PypiClean
/snowflake_ml_python-1.0.6-py3-none-any.whl/snowflake/ml/_internal/utils/parallelize.py
import math from contextlib import contextmanager from timeit import default_timer from typing import Any, Callable, Dict, Generator, Iterable, List, Optional import snowflake.snowpark.functions as F from snowflake import snowpark @contextmanager def timer() -> Generator[Callable[[], float], None, None]: start: ...
PypiClean
/zope.copypastemove-5.0.tar.gz/zope.copypastemove-5.0/src/zope/copypastemove/interfaces.py
"""Copy and Move support """ __docformat__ = 'restructuredtext' from zope.interface import Interface from zope.interface import implementer class IObjectMover(Interface): """Use `IObjectMover(obj)` to move an object somewhere.""" def moveTo(target, new_name=None): """Move this object to the target g...
PypiClean
/invenio_app_ils-1.0.0a60.tar.gz/invenio_app_ils-1.0.0a60/invenio_app_ils/facets.py
import arrow from elasticsearch_dsl.query import Bool, Q, Range from flask import current_app def keyed_range_filter(field, range_query, **kwargs): """Create a range filter. :param field: Field name. :param range_query: Dictionary with available keys and their range options. """ def inner(values...
PypiClean
/smc-python-0.6.2.tar.gz/smc-python-0.6.2/smc/elements/situations.py
from smc.base.model import Element, ElementRef, ElementList, SubElement,\ ElementCache, ElementCreator from smc.api.exceptions import CreateElementFailed, ElementNotFound from smc.elements.other import SituationTag SEVERITY = {10: 'critical', 7: 'high', 4: 'low', 1: 'information'} def _severity_by_name(name): ...
PypiClean
/saltext.sap_car-1.0.2.tar.gz/saltext.sap_car-1.0.2/src/saltext/sap_car/_states/sap_car.py
import logging import salt.utils.files # Globals log = logging.getLogger(__name__) __virtualname__ = "sap_car" def __virtual__(): """ Only works on Linux and if SAPCAR is available in PATH """ if "sap_car.list" not in __salt__: return ( False, "The sap_car execution ...
PypiClean
/pulumi_azure_nextgen-0.6.2a1613157620.tar.gz/pulumi_azure_nextgen-0.6.2a1613157620/pulumi_azure_nextgen/network/v20200301/load_balancer.py
import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union from ... import _utilities, _tables from . import outputs from ._enums import * from ._inputs import * __all__ = ['LoadBalancer'] class LoadBalancer(pulumi.CustomResource): def __init__(__self__, ...
PypiClean
/isedit-0.3.0.tar.gz/isedit-0.3.0/js/node_modules/moment/locale/en-ie.js
;(function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment) }(this, (function (moment) { 'use strict'; ...
PypiClean
/watchmen_lineage-16.5.26.tar.gz/watchmen_lineage-16.5.26/src/watchmen_lineage/utils/constant_utils.py
from enum import Enum from typing import List from watchmen_lineage.model.ast import ConstantAST, FuncParameter, ASTObject, FuncAst class AstContext(str, Enum): START_PARAMETER = "start_parameter" START_OBJECT_FUNC = "start_object_func" START_FUNCTION_PARAMETER = "start_function_parameter" START_FUNCTION = "star...
PypiClean
/PyOblv-0.2.2.tar.gz/PyOblv-0.2.2/cli/service.py
import json import typer from . import utils app = typer.Typer() @app.command(help="To create a new service") def create(repo_owner: str = typer.Argument(..., help=("Repository Owner")), repo_name: str = typer.Argument(...,help=("Repository Name")), ref: str = typer.Argument(..., help=("Service ref name")), tag : ...
PypiClean
/dueros_bot-3.2.0-py3-none-any.whl/dueros/directive/VideoPlayer/Play.py
# description: # author:jack # create_time: 2018/5/31 """ VideoPlayer视频播放 详见文档:https://dueros.baidu.com/didp/doc/dueros-bot-platform/dbp-custom/videoplayer_markdown#VideoPlayer.Play%E6%8C%87%E4%BB%A4 """ from dueros.directive.BaseDirective import BaseDirective from dueros.directive.AudioPlayer.PlayBehaviorEnum import...
PypiClean
/msgraph_beta_sdk-1.0.0a9-py3-none-any.whl/msgraph/generated/users/item/events/item/instances/item/extensions/item/extension_item_request_builder.py
from __future__ import annotations from dataclasses import dataclass from kiota_abstractions.get_path_parameters import get_path_parameters from kiota_abstractions.method import Method from kiota_abstractions.request_adapter import RequestAdapter from kiota_abstractions.request_information import RequestInformation fro...
PypiClean
/google-api-python-client-uritemplate-1.4.2.tar.gz/google-api-python-client-uritemplate-1.4.2/googleapiclient/schema.py
from __future__ import absolute_import import six # TODO(jcgregorio) support format, enum, minimum, maximum __author__ = 'jcgregorio@google.com (Joe Gregorio)' import copy from oauth2client import util class Schemas(object): """Schemas for an API.""" def __init__(self, discovery): """Constructor. Ar...
PypiClean
/qiling-1.4.6.tar.gz/qiling-1.4.6/README.md
[![Documentation Status](https://readthedocs.org/projects/qilingframework/badge/?version=latest)](https://docs.qiling.io) [![Downloads](https://pepy.tech/badge/qiling)](https://pepy.tech/project/qiling) [![Chat on Telegram](https://img.shields.io/badge/Chat%20on-Telegram-brightgreen.svg)](https://t.me/qilingframework) ...
PypiClean
/geo_data_br-0.3.5.tar.gz/geo_data_br-0.3.5/prototype_notebooks/00_get_data_with_python.ipynb
``` root_dir = !git rev-parse --show-toplevel import os; os.chdir(root_dir[0]) BASE_URL = 'http://www.atlasbrasil.org.br' HEADERS = ''' -H 'Connection: keep-alive' -H 'Cache-Control: max-age=0' -H 'Upgrade-Insecure-Requests: 1' -H 'User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML...
PypiClean
/django_bpp-1.0.9-py3-none-any.whl/django_bpp/staticroot/grappelli/tinymce/jscripts/tiny_mce/plugins/media/js/media.js
(function() { var url; if (url = tinyMCEPopup.getParam("media_external_list_url")) document.write('<script language="javascript" type="text/javascript" src="' + tinyMCEPopup.editor.documentBaseURI.toAbsolute(url) + '"></script>'); function get(id) { return document.getElementById(id); } function clone(obj) ...
PypiClean
/pagure-messages-1.1.0.tar.gz/pagure-messages-1.1.0/pagure_messages/issue_schema.py
from .base import ISSUE, PROJECT, PagureMessage, SCHEMA_URL class IssueAssignedAddedV1(PagureMessage): """ A sub-class of a Fedora message that defines a message schema for messages published by pagure when an issue is deleted. """ topic = "pagure.issue.assigned.added" body_schema = { ...
PypiClean
/instagram_private_api-1.6.0.0.tar.gz/instagram_private_api-1.6.0.0/instagram_private_api/constants.py
class Constants(object): """Constants holder class that stores the bulk of the fixed strings used in the library.""" IG_SIG_KEY = '19ce5f445dbfd9d29c59dc2a78c616a7fc090a8e018b9267bc4240a30244c53b' IG_CAPABILITIES = '3brTvw==' SIG_KEY_VERSION = '4' APP_VERSION = '76.0.0.15.395' APPLICATION_ID = ...
PypiClean
/dq-notebook-6.0.2.tar.gz/dq-notebook-6.0.2/docs/source/frontend_config.rst
.. _frontend_config: Configuring the notebook frontend ================================= .. note:: The ability to configure the notebook frontend UI and preferences is still a work in progress. This document is a rough explanation on how you can persist some configuration options for the notebook JavaScript...
PypiClean
/perfume-0.2.tar.gz/perfume-0.2/README.md
Perfume === Perfume aims at making Flask-apps more Object-Oriented friendly by providing a base class to create them. It's BSD licensed. Usage: - inherit from Perfume - decorate your methods with route(path) Perfume is Easy --- ```python from perfume import Perfume, route class Hello(Perfume): @route('/') ...
PypiClean
/bicycle_bell_seds_cli-0.0.3-py3-none-any.whl/seds_cli/seds_lib/data/time/delay.py
from dataclasses import dataclass @dataclass(frozen=True) class ReceiverDelay: """Data about the delay concerning the receiver worker. Attributes callback_offset_estimated_time (float) in seconds, needed to process the callback """ callback_offset_estimated_time: float @property ...
PypiClean
/e-fonenana-frontend-20190305.1.tar.gz/e-fonenana-frontend-20190305.1/hass_frontend_es5/workbox-v3.6.3/workbox-google-analytics.prod.js
this.workbox=this.workbox||{},this.workbox.googleAnalytics=function(e,n,t,o,r,c,s){"use strict";try{self.workbox.v["workbox:google-analytics:3.6.3"]=1}catch(e){}const l=/^\/(\w+\/)?collect/,i=(a=babelHelpers.asyncToGenerator(function*(e){return yield new Promise(function(n,t){const o=new FileReader;o.onloadend=function...
PypiClean
/widgetastic.patternfly5-23.8.28.0-py3-none-any.whl/widgetastic_patternfly5/components/pagination.py
import math from contextlib import contextmanager from selenium.webdriver.common.keys import Keys from widgetastic.utils import ParametrizedLocator from widgetastic.widget import GenericLocatorWidget from widgetastic.widget import Text from widgetastic.widget import TextInput from widgetastic.widget import View from ...
PypiClean
/jupyterlab_remote_contents-0.1.1.tar.gz/jupyterlab_remote_contents-0.1.1/node_modules/load-json-file/readme.md
# load-json-file [![Build Status](https://travis-ci.org/sindresorhus/load-json-file.svg?branch=master)](https://travis-ci.org/sindresorhus/load-json-file) > Read and parse a JSON file [Strips UTF-8 BOM](https://github.com/sindresorhus/strip-bom), uses [`graceful-fs`](https://github.com/isaacs/node-graceful-fs), and t...
PypiClean
/cli-bdd-0.0.4.tar.gz/cli-bdd-0.0.4/cli_bdd/core/steps/file.py
import os import shutil from hamcrest import assert_that, equal_to from cli_bdd.core.steps.base import StepBase class CopyFileOrDirectory(StepBase): """Copies a file or directory. Examples: ```gherkin Given I copy a file from "/tmp/old.txt" to "/var/new.txt" Given I copy the file named "hello....
PypiClean
/xs_transformers-1.0.7-py3-none-any.whl/xs_transformers/models/nezha/__init__.py
# Copyright 2022 The HuggingFace Team. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicab...
PypiClean
/ipyvuetify-1.8.10.tar.gz/ipyvuetify-1.8.10/generate_source/node_modules/widget-gen/src/parsers/base.ts
import { Signal, ISignal } from '@phosphor/signaling'; import { IWidget, getWidgetRefs, Attributes } from '../core'; import { MSet } from '../setMethods'; export interface IParserConstructor { new (filename: string): Parser; } /** * The base parser class. * * A parser is something that generates widge...
PypiClean
/django_cradmin-10.4.1.tar.gz/django_cradmin-10.4.1/django_cradmin/uicontainer/container.py
from django.conf import settings from django.forms.utils import flatatt from django_cradmin import renderable class NotBootsrappedError(Exception): """ Raised when trying to use features of :class:`.AbstractContainerRenderable` that requires is to have been bootstrapped. """ class AlreadyBootsra...
PypiClean
/wax-ml-0.6.4.tar.gz/wax-ml-0.6.4/wax/modules/buffer.py
"""Implement buffering mechanism.""" from typing import Any, Callable, NamedTuple, Optional import haiku as hk import jax.numpy as jnp class BufferState(NamedTuple): buffer: Any len_buffer: int i_start: int class BufferFun(NamedTuple): init: Callable apply: Callable def buffer_fn(maxlen: int...
PypiClean
/125softNLP-0.0.1-py3-none-any.whl/bert/extract_feature.py
from bert.graph import import_tf from bert import modeling from bert import tokenization from bert.graph import optimize_graph from bert import args from queue import Queue from threading import Thread tf = import_tf(0, True) class InputExample(object): def __init__(self, unique_id, text_a, text_b): sel...
PypiClean
/trojanzoo-2.0.2.tar.gz/trojanzoo-2.0.2/trojanvision/defenses/abstract.py
from trojanvision.environ import env from trojanzoo.defenses import Defense from trojanzoo.utils.logger import MetricLogger from trojanzoo.utils.metric import mask_jaccard, normalize_mad from trojanzoo.utils.output import output_iter, prints from trojanzoo.utils.tensor import tanh_func from trojanzoo.utils.data import...
PypiClean
/async_metrics-0.1.0.tar.gz/async_metrics-0.1.0/async_metrics/ext/flask/flask.py
import os from flask import Blueprint, jsonify, make_response, render_template, request import async_metrics def setup_async_metrics(app, name: str = "async_metrics"): async_metrics = Blueprint( "async_metrics", "async_metrics", name, template_folder=os.path.join(os.getcwd(), "as...
PypiClean
/ticketguardian_python-1.3.0-py3-none-any.whl/ticketguardian/policy/policy.py
from ticketguardian.abstract import ( PutResourceMixin, RetrieveResourceMixin, ListResourceMixin, ) from ticketguardian.item import Item from ticketguardian.policy.constants import UPGRADED from ticketguardian.policy.exceptions import NoBillingAddressException from ticketguardian._project import _validate ...
PypiClean
/chronotco-0.0.1.tar.gz/chronotco-0.0.1/README.rst
ChronoTCO ==== **Version**: Experimental 0.0.1 This is an experimental decorator implementation of tail call optimization in Python3 via bytecode injection, reducing the space complexity of recursion to **O(1)** (rather than **O(n)**) by manipulating the function structure itself. If a function is tail-call recurs...
PypiClean
/tencentcloud-sdk-python-oceanus-3.0.973.tar.gz/tencentcloud-sdk-python-oceanus-3.0.973/tencentcloud/oceanus/v20190422/oceanus_client.py
import json from tencentcloud.common.exception.tencent_cloud_sdk_exception import TencentCloudSDKException from tencentcloud.common.abstract_client import AbstractClient from tencentcloud.oceanus.v20190422 import models class OceanusClient(AbstractClient): _apiVersion = '2019-04-22' _endpoint = 'oceanus.ten...
PypiClean
/alignak_webui-0.12.2-py3-none-any.whl/alignak_webui/plugins/worldmap/static/geocoder/Control.OSMGeocoder.js
if (typeof console == "undefined") { this.console = { log: function (msg) { /* do nothing since it would otherwise break IE */} }; } L.Control.OSMGeocoder = L.Control.extend({ options: { collapsed: true, position: 'topright', text: 'Locate', placeholder: '', bounds: null, // L.LatLngBounds email: null, ...
PypiClean
/exactly-0.15.0-py3-none-any.whl/exactly_lib/type_val_prims/string_source/string_source.py
from abc import ABC, abstractmethod from typing import Tuple from exactly_lib.type_val_prims.description.tree_structured import WithNodeDescription, StructureRenderer from exactly_lib.type_val_prims.string_source.contents import StringSourceContents from exactly_lib.type_val_prims.string_source.structure_builder impor...
PypiClean
/reddit_detective-0.1.4-py3-none-any.whl/reddit_detective/analytics/metrics.py
from neo4j import BoltDriver from reddit_detective.analytics.utils import (get_redditors, get_user_comments_times, get_submission_comments_times, get_subreddit_comments_times) def interaction_score(driver: BoltDriver, username): """ For a user in the Graph, shows # comments received / # comments ...
PypiClean
/Orange3_Bioinformatics-4.8.0-py3-none-any.whl/orangecontrib/bioinformatics/ncbi/gene/__init__.py
import json import sqlite3 import contextlib from typing import Dict, List, Tuple, Optional from Orange.data import Table, Domain, StringVariable from Orange.data.util import get_unique_names_domain from orangecontrib.bioinformatics.utils import serverfiles from orangecontrib.bioinformatics.ncbi.taxonomy import speci...
PypiClean
/one_gadget-1.1.0.tar.gz/one_gadget-1.1.0/README.md
# one-gadget-lib [![Build Status](https://travis-ci.org/szk3y/one-gadget-lib.svg?branch=master)](https://travis-ci.org/szk3y/one-gadget-lib) [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT) One-gadget is code that invokes "/bin/sh" without any arguments, so al...
PypiClean
/jupyter_declarativewidgets-0.7.0.tar.gz/jupyter_declarativewidgets-0.7.0/declarativewidgets/static/urth_components/moment/locale/cs.js
;(function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment) }(this, function (moment) { 'use strict'; ...
PypiClean
/boto3_type_annotations_with_docs-0.3.1.tar.gz/boto3_type_annotations_with_docs-0.3.1/boto3_type_annotations/neptune/client.py
from typing import Optional from botocore.client import BaseClient from typing import Dict from botocore.paginate import Paginator from datetime import datetime from botocore.waiter import Waiter from typing import Union from typing import List class Client(BaseClient): def add_role_to_db_cluster(self, DBClusterI...
PypiClean
/sIBL_GUI-4.0.8.tar.gz/sIBL_GUI-4.0.8/sibl_gui/components/core/iblSetsOutliner/iblSetsOutliner.py
#********************************************************************************************************************** #*** Future imports. #********************************************************************************************************************** from __future__ import unicode_literals #*****************...
PypiClean
/ray_for_mars-1.12.1-cp38-cp38-manylinux2014_x86_64.whl/ray_for_mars-1.12.1.data/purelib/ray/_private/async_compat.py
import asyncio import inspect try: import uvloop except ImportError: uvloop = None try: # This function has been added in Python 3.7. Prior to Python 3.7, # the low-level asyncio.ensure_future() function can be used instead. from asyncio import create_task # noqa: F401 except ImportError: fr...
PypiClean
/flux-python-0.51.0.tar.gz/flux-python-0.51.0/flux/constraint/parser.py
import argparse import json import re import ply.yacc as yacc from ply import lex class ConstraintSyntaxError(Exception): """ Specialized SyntaxError exception to allow ConstraintParser to throw a SyntaxError without PLY trying to force recovery. """ pass class ConstraintLexer(object): "...
PypiClean
/differentiable_robot_model-0.2.3-py3-none-any.whl/differentiable_robot_model/rigid_body_params.py
import torch import numpy as np import math from . import se3_so3_util, utils class UnconstrainedScalar(torch.nn.Module): def __init__(self, init_val=None): super(UnconstrainedScalar, self).__init__() if init_val is None: self.param = torch.nn.Parameter(torch.rand(1)) else: ...
PypiClean
/DLTA-AI-1.1.tar.gz/DLTA-AI-1.1/DLTA_AI_app/mmdetection/mmdet/models/dense_heads/lad_head.py
import torch from mmcv.runner import force_fp32 from mmdet.core import bbox_overlaps, multi_apply from ..builder import HEADS from .paa_head import PAAHead, levels_to_images @HEADS.register_module() class LADHead(PAAHead): """Label Assignment Head from the paper: `Improving Object Detection by Label Assignme...
PypiClean
/msgraph_beta_sdk-1.0.0a9-py3-none-any.whl/msgraph/generated/groups/item/team/schedule/open_shift_change_requests/open_shift_change_requests_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
/tumbo-server-0.4.12.tar.gz/tumbo-server-0.4.12/tumbo/core/static/bower_components/jquery/src/ajax/jsonp.js
define([ "../core", "./var/nonce", "./var/rquery", "../ajax" ], function( jQuery, nonce, rquery ) { var oldCallbacks = [], rjsonp = /(=)\?(?=&|$)|\?\?/; // Default jsonp settings jQuery.ajaxSetup({ jsonp: "callback", jsonpCallback: function() { var callback = oldCallbacks.pop() || ( jQuery.expando + "_" + ( ...
PypiClean
/tackle-box-0.4.1.tar.gz/tackle-box-0.4.1/tackle/providers/tackle/hooks/debug.py
import sys from InquirerPy import prompt from pprint import pprint from rich import print from tackle import BaseHook, Field class DebugHook(BaseHook): """Hook for debugging that prints the output context and pauses runtime.""" hook_type: str = 'debug' key: str = Field(None, description="A path to a key...
PypiClean
/h2o_pysparkling_3.1-3.42.0.2.post1.tar.gz/h2o_pysparkling_3.1-3.42.0.2.post1/ai/h2o/sparkling/ml/algos/H2ORuleFit.py
from warnings import warn from pyspark import keyword_only from ai.h2o.sparkling.Initializer import Initializer from ai.h2o.sparkling.ml.Utils import Utils from ai.h2o.sparkling.ml.algos.H2OSupervisedAlgorithm import H2OSupervisedAlgorithm from ai.h2o.sparkling.ml.models.H2ORuleFitMOJOModel import H2ORuleFitMOJOModel ...
PypiClean
/ansys_fluent_core-0.17.0-py3-none-any.whl/ansys/fluent/core/solver/settings_231/root.py
from ansys.fluent.core.solver.flobject import * from ansys.fluent.core.solver.flobject import _ChildNamedObjectAccessorMixin from ansys.fluent.core.solver.flobject import _CreatableNamedObjectMixin from ansys.fluent.core.solver.flobject import _NonCreatableNamedObjectMixin from ansys.fluent.core.solver.flobject im...
PypiClean
/jupyter-omnicm-0.0.5.tar.gz/jupyter-omnicm-0.0.5/docs/usage.rst
===== Usage ===== Behind the scene, the HDFS support of jupyter-omnicm relies on pyarrow (https://arrow.apache.org/). To use jupyter-omnicm HDFS in Jupyter, add the following line in your jupyter_notebook_config.py:: c.NotebookApp.contents_manager_class = 'jupyter_omnicm.hdfs.hdfs_manager.HDFSContentsManager' *R...
PypiClean
/antares-0.3.23.1-py3-none-manylinux1_x86_64.whl/antares_core/3rdparty/tvm/python/tvm/relay/backend/te_compiler.py
"""TE compiler engine (replacing legacy compile_engine).""" from __future__ import absolute_import import logging import tvm from tvm import te, autotvm from tvm.ir.transform import PassContext from tvm.runtime import Object from tvm.support import libinfo from tvm.target import Target from ..backend.utils import mang...
PypiClean
/gamification-engine-0.4.0.tar.gz/gamification-engine-0.4.0/gengine/app/jsscripts/node_modules/autoprefixer/lib/hacks/grid-template.js
'use strict'; function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); ...
PypiClean
/pymcxray-0.1.4.tar.gz/pymcxray-0.1.4/README.rst
=============================== pymcxray =============================== .. image:: https://img.shields.io/pypi/v/pymcxray.svg :target: https://pypi.python.org/pypi/pymcxray .. image:: https://img.shields.io/travis/drix00/pymcxray.svg :target: https://travis-ci.org/drix00/pymcxray .. image:: https:/...
PypiClean
/strawberry_django_auth-0.376.2-py3-none-any.whl/gqlauth/core/utils.py
import contextlib import inspect import typing from typing import Dict, Iterable from django.conf import settings from django.contrib.auth import get_user_model from django.contrib.auth.base_user import AbstractBaseUser from django.contrib.auth.models import AnonymousUser from django.core import signing from strawberr...
PypiClean
/jupyterlab_remote_contents-0.1.1.tar.gz/jupyterlab_remote_contents-0.1.1/node_modules/minipass-flush/README.md
# minipass-flush A Minipass stream that calls a flush function before emitting 'end' ## USAGE ```js const Flush = require('minipass-flush') cons f = new Flush({ flush (cb) { // call the cb when done, or return a promise // the 'end' event will wait for it, along with // close, finish, and prefinish. ...
PypiClean
/mostpopularnewscnn-0.0.3.tar.gz/mostpopularnewscnn-0.0.3/README.md
# Most Popular News CNN Indonesia This package will get the most popular news in CNN Indonesia ## HOW IT WORK? This package will scrape from [CNN Indonesia](https://www.cnnindonesia.com/) to get most popular news in CNN Indonesia This package uses beatifulsoup4 and requests then produces output in the form of json w...
PypiClean
/visionlib-1.2.0.tar.gz/visionlib-1.2.0/README.md
# Visionlib A simple high level api made for assisting in cv-related projects. ## Features - Track faces using - MTCNN module - Dlib hog Based detector - Opencv Haar casscades - Dnn based model - Predict Gender - Detect Objects - Yolo v3 - tiny-yolo ### Installation #### Dependencies `sudo apt-get ins...
PypiClean
/murano-repository-0.4.a28.g0c584bc.tar.gz/murano-repository-0.4.a28.g0c584bc/muranorepository/utils/archiver.py
import os import tarfile import tempfile import shutil import hashlib import logging as log from oslo.config import cfg from muranorepository.consts import DATA_TYPES, ARCHIVE_PKG_NAME CONF = cfg.CONF CHUNK_SIZE = 1 << 20 # 1MB class Archiver(object): def _copy_data(self, file_lists, src, dst): if not o...
PypiClean
/jigna-0.10.1.tar.gz/jigna-0.10.1/examples/ex18_embedding_chaco.py
from chaco.api import Plot, ArrayPlotData from jigna.api import HTMLWidget, Template from jigna.qt import QtGui from numpy import linspace, sin from traits.api import ( HasTraits, CInt, Instance, Array, Property, on_trait_change ) #### Domain model #### class DomainModel(HasTraits): """ The algorithmic d...
PypiClean
/xformers-0.0.21.tar.gz/xformers-0.0.21/third_party/flash-attention/csrc/cutlass/docs/search/typedefs_a.js
var searchData= [ ['lanelayout',['LaneLayout',['../structcutlass_1_1gemm_1_1warp_1_1MmaSimtPolicy.html#abbddbec34fec9b85d8421a49f112f937',1,'cutlass::gemm::warp::MmaSimtPolicy']]], ['lanemmashape',['LaneMmaShape',['../structcutlass_1_1gemm_1_1threadblock_1_1DefaultMmaCore_3_01Shape___00_01WarpShape___00_01GemmShafa...
PypiClean
/DI_engine-0.4.9-py3-none-any.whl/dizoo/competitive_rl/envs/competitive_rl_env_wrapper.py
import cv2 import gym import os.path as osp import numpy as np from typing import Union, Optional from collections import deque from competitive_rl.pong.builtin_policies import get_builtin_agent_names, single_obs_space, single_act_space, get_random_policy, get_rule_based_policy from competitive_rl.utils.policy_serving ...
PypiClean
/ckanext_datajson-0.1.21-py3-none-any.whl/ckanext/datajson/package2pod.py
from sqlalchemy.util import OrderedDict from ckan.lib import helpers as h from logging import getLogger import re from . import helpers log = getLogger(__name__) class Package2Pod(object): def __init__(self): pass seen_identifiers = None @staticmethod def wrap_json_catalog(dataset_dict, j...
PypiClean
/casai-home-frontend-20220503.0.tar.gz/casai-home-frontend-20220503.0/hass_frontend/frontend_latest/cb45130b.js
"use strict";(self.webpackChunkhome_assistant_frontend=self.webpackChunkhome_assistant_frontend||[]).push([[29311],{83270:(e,t,o)=>{o.d(t,{_Y:()=>n,VU:()=>i,u_:()=>a,bi:()=>r,_t:()=>s,LI:()=>c,AV:()=>l,Mc:()=>d,dn:()=>p,H9:()=>h,De:()=>u,LV:()=>f,QD:()=>C,A$:()=>g,tW:()=>m});const n=(e,t,o)=>e.callApi("POST","cloud/log...
PypiClean
/trinket-0.1.5.tar.gz/trinket-0.1.5/docs/HISTORY.rst
********* Changelog ********* 0.1.5 (2019-12-18) ================== * Fixed body duplication on raw_body calls, due to the concatenation already happening in on_body, triggered by the reader. 0.1.4 (2019-12-16) ================== * Dependencies maintenance : bumping versions to latest stable. 0.1.3 (2019-01-24) ...
PypiClean
/cctbx_base-2020.8-0_py38h167b89d-cp38-cp38m-manylinux2010_x86_64.whl/wxtbx/phil_controls/strctrl.py
from __future__ import absolute_import, division, print_function from wxtbx.phil_controls.text_base import ValidatedTextCtrl, TextCtrlValidator from wxtbx import phil_controls import wxtbx from libtbx.phil import tokenizer from libtbx.utils import to_unicode, to_str from libtbx import Auto import libtbx.phil import wx ...
PypiClean
/ais_dom-2023.7.2-py3-none-any.whl/homeassistant/components/lightwave/light.py
from __future__ import annotations from typing import Any from homeassistant.components.light import ATTR_BRIGHTNESS, ColorMode, LightEntity from homeassistant.const import CONF_NAME from homeassistant.core import HomeAssistant from homeassistant.helpers.entity_platform import AddEntitiesCallback from homeassistant.h...
PypiClean
/release-bot-0.7.1.tar.gz/release-bot-0.7.1/release_bot/github.py
import logging import os import time import re from release_bot.exceptions import ReleaseException, GitException from release_bot.utils import insert_in_changelog, parse_changelog, look_for_version_files import jwt import requests logger = logging.getLogger('release-bot') # github app auth code "stolen" from http...
PypiClean
/zepben.evolve-0.35.0b2-py3-none-any.whl/zepben/evolve/examples/simple_node_breaker_feeder.py
from zepben.evolve import NetworkService, DiagramService, Diagram, DiagramStyle, BaseVoltage, PositionPoint, Location, Feeder, EnergySource, \ PowerTransformerInfo, DiagramObject, AcLineSegment, ConductingEquipment, Junction, EnergyConsumer, PowerTransformer, DiagramObjectPoint, ConnectivityNode __all__ = ["Simpl...
PypiClean
/ObjectListView2-1.0.0.tar.gz/ObjectListView2-1.0.0/docs/groupListView.rst
.. -*- coding: UTF-8 -*- .. include:: _substitutions.txt .. _using-grouplistview: Using a GroupListView ===================== A flat list is enough in many cases, but sometimes it would be really nice to be able to put the model objects into groups, making it easier for users to see where something belongs. It's nic...
PypiClean
/smartsheet-python-sdk-3.0.2.tar.gz/smartsheet-python-sdk-3.0.2/ADVANCED.md
# Advanced Topics for the Smartsheet SDK for Python ## Manual install The following packages are required. * [setuptools](https://pypi.org/project/setuptools/) * [six](https://pypi.python.org/pypi/six) * [requests](https://pypi.python.org/pypi/requests) To install this SDK manually: 1. Clone the source code from t...
PypiClean
/sourtimes-0.0.7.tar.gz/sourtimes-0.0.7/README.md
![PyPI](https://img.shields.io/pypi/v/sourtimes?color=blue) [![GitHub license](https://img.shields.io/github/license/kgbzen/sourtimes)](https://github.com/kgbzen/sourtimes/blob/main/LICENSE) [![GitHub issues](https://img.shields.io/github/issues/kgbzen/sourtimes)](https://github.com/kgbzen/sourtimes/issues) The Python...
PypiClean
/superset-d1-0.26.3.tar.gz/superset-d1-0.26.3/superset/dataframe.py
from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals from datetime import date, datetime import logging import numpy as np import pandas as pd from pandas.core.common import _maybe_box_datetimelike from pandas.core.dtypes....
PypiClean
/quast-5.2.0.tar.gz/quast-5.2.0/quast_libs/site_packages/joblib2/disk.py
import errno import os import shutil import sys import time def disk_used(path): """ Return the disk usage in a directory.""" size = 0 for file in os.listdir(path) + ['.']: stat = os.stat(os.path.join(path, file)) if hasattr(stat, 'st_blocks'): size += stat.st_blocks * 512 ...
PypiClean
/django-bulbs-3.25.0.tar.gz/django-bulbs-3.25.0/bulbs/promotion/migrations/0001_initial.py
from __future__ import unicode_literals from django.db import models, migrations import json_field.fields class Migration(migrations.Migration): dependencies = [ ('contenttypes', '0001_initial'), ('content', '0001_initial'), ] operations = [ migrations.CreateModel( n...
PypiClean
/ansible-kkvesper-2.3.2.0.tar.gz/ansible-kkvesper-2.3.2.0/lib/ansible/errors/__init__.py
# Make coding more python3-ish from __future__ import (absolute_import, division, print_function) __metaclass__ = type from ansible.errors.yaml_strings import ( YAML_POSITION_DETAILS, YAML_COMMON_UNQUOTED_VARIABLE_ERROR, YAML_COMMON_DICT_ERROR, YAML_COMMON_UNQUOTED_COLON_ERROR, YAML_CO...
PypiClean