id stringlengths 1 8 | text stringlengths 6 1.05M | dataset_id stringclasses 1
value |
|---|---|---|
/js.html5shiv-3.7.3.tar.gz/js.html5shiv-3.7.3/README.txt | js.html5shiv
************
Introduction
============
This library packages `html5shiv`_ for `fanstatic`_.
.. _`fanstatic`: http://fanstatic.org
.. _`html5shiv`: https://github.com/aFarkas/html5shiv
This requires integration between your web framework and ``fanstatic``,
and making sure that the original resources (sh... | PypiClean |
/WINGECHR_PACKAGE_TEMPLATE-0.0.0.tar.gz/WINGECHR_PACKAGE_TEMPLATE-0.0.0/server_django/project/settings.py |
import logging
import os
import sys
from urllib.parse import urljoin
from _local.settings import * # noqa: F403
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
INSTALLED_APPS = [
"django.contrib.admin",
"django.contrib.auth",
"django.contrib.contenttypes",
"django.contrib.ses... | PypiClean |
/v2/model/list_tag_req.py |
import pprint
import re
import six
class ListTagReq:
"""
Attributes:
openapi_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict): The key is attribute name
and the value is json key in definiti... | PypiClean |
/enough-2.2.35.tar.gz/enough-2.2.35/playbooks/debops/docs/ansible/roles/ferm/index.rst | .. Copyright (C) 2013-2017 Maciej Delmanowski <drybjed@gmail.com>
.. Copyright (C) 2015-2017 Robin Schneider <ypid@riseup.net>
.. Copyright (C) 2016 Reto Gantenbein <reto.gantenbein@linuxmonk.ch>
.. Copyright (C) 2014-2017 DebOps <https://debops.org/>
.. SPDX-License-Identifier: GPL-3.0-only
.. _debops.ferm:
debops.f... | PypiClean |
/taas_api_client-1.1.1-py3-none-any.whl/taas_api/client.py | import requests
import logging
from urllib.parse import urljoin
from taas_api import data
logger = logging.getLogger(__name__)
class BaseClient:
def __init__(self, url: str, auth_token: str = None):
# TAAS URL is used for development, TAAS_IP is used for real in pipeline
self.taas_url = url
... | PypiClean |
/contentai_metadata_flatten-1.4.1.tar.gz/contentai_metadata_flatten-1.4.1/contentai_metadata_flatten/parsers/__init__.py |
import pkgutil
import importlib
import json
import re
import math
import gzip
from os import path
from pathlib import Path
import logging
import warnings
from sys import stdout as STDOUT
import pandas as pd
import contentaiextractor as contentai
class Flatten():
# https://cloud.google.com/video-intelligence/... | PypiClean |
/AIfES_Converter-1.0.0-py3-none-any.whl/aifes/keras_extractor/keras_extractor.py | import warnings
from ..support.aifes_model import *
try:
import tensorflow as tf
from tensorflow import keras
from tensorflow.keras.layers import ELU, LeakyReLU, ReLU, Softmax
from tensorflow.keras.activations import sigmoid, softsign, tanh
except ImportError as err:
raise ImportError("Tensorflow i... | PypiClean |
/django-planet-0.10.1.tar.gz/django-planet-0.10.1/planet/feeds.py |
from django.conf import settings
from django.contrib.sites.models import Site
from django.contrib.syndication.views import Feed
from django.core.urlresolvers import reverse
from django.shortcuts import get_object_or_404
from django.template.defaultfilters import linebreaks, escape
from django.utils.translation import ... | PypiClean |
/wapiti3-3.1.8-py3-none-any.whl/wapitiCore/attack/mod_wp_enum.py | import json
import re
import xml
import xml.etree.ElementTree as ET
from os.path import join as path_join
from typing import Match, Optional
from wapitiCore.attack.attack import Attack
from wapitiCore.definitions.fingerprint import NAME as TECHNO_DETECTED
from wapitiCore.definitions.fingerprint import WSTG_CODE as TEC... | PypiClean |
/airtest-sd-1.0.tar.gz/airtest-sd-1.0/airtest/core/android/touch_methods/touch_proxy.py | import warnings
from collections import OrderedDict
from airtest.core.android.touch_methods.minitouch import Minitouch
from airtest.core.android.touch_methods.maxtouch import Maxtouch
from airtest.core.android.touch_methods.base_touch import BaseTouch
from airtest.core.android.constant import TOUCH_METHOD
from airtest.... | PypiClean |
/nats-py-2.3.1.tar.gz/nats-py-2.3.1/nats/js/kv.py |
from __future__ import annotations
import asyncio
import datetime
from dataclasses import dataclass
from typing import TYPE_CHECKING, List, Optional
import nats.errors
import nats.js.errors
from nats.js import api
if TYPE_CHECKING:
from nats.js import JetStreamContext
KV_OP = "KV-Operation"
KV_DEL = "DEL"
KV_P... | PypiClean |
/django3-dashing-0.5.2.tar.gz/django3-dashing-0.5.2/dashing/static/dashing-config.js |
var dashboard = new Dashboard();
dashboard.addWidget('clock_widget', 'Clock');
dashboard.addWidget('current_valuation_widget', 'Number', {
getData: function () {
$.extend(this.scope, {
title: 'Current Valuation',
moreInfo: 'In billions',
updatedAt: 'Last updated at 14:... | PypiClean |
/boto_brimley-2.61.0.tar.gz/boto_brimley-2.61.0/boto/route53/connection.py |
from boto.route53 import exception
import random
import uuid
import xml.sax
import boto
from boto.connection import AWSAuthConnection
from boto import handler
import boto.jsonresponse
from boto.route53.record import ResourceRecordSets
from boto.route53.zone import Zone
from boto.compat import six, urllib
HZXML = ""... | PypiClean |
/minitage.paste-1.4.6.zip/minitage.paste-1.4.6/src/minitage/paste/projects/plone3/template/+category_dir+/+project_dir+/README.rst_tmpl | ==============================================================
BUILDOUT FOR $project DOCUMENTATION
==============================================================
INSTALLING THIS PROJECT WITHOUT MINITAGE
-----------------------------------------
::
source /minitage/bin/activate
$scm_type clone $uri ${project}
... | PypiClean |
/564bff00ff_strawberry_graphql-0.168.2-py3-none-any.whl/strawberry/union.py | from __future__ import annotations
import itertools
from itertools import chain
from typing import (
TYPE_CHECKING,
Any,
Collection,
Iterable,
List,
Mapping,
NoReturn,
Optional,
Tuple,
Type,
TypeVar,
Union,
cast,
)
from typing_extensions import Annotated, get_origin
... | PypiClean |
/gamification-engine-0.4.0.tar.gz/gamification-engine-0.4.0/gengine/app/jsscripts/node_modules/intl-relativeformat/dist/locale-data/sq.js | IntlRelativeFormat.__addLocaleData({"locale":"sq","pluralRuleFunction":function (n,ord){var s=String(n).split("."),t0=Number(s[0])==n,n10=t0&&s[0].slice(-1),n100=t0&&s[0].slice(-2);if(ord)return n==1?"one":n10==4&&n100!=14?"many":"other";return n==1?"one":"other"},"fields":{"year":{"displayName":"vit","relative":{"0":"... | PypiClean |
/XMLCheck-0.7.1.zip/XMLCheck-0.7.1/README.txt | XCheck
XMLChecker objects that can validate text, xml-formatted text,
or an elementtree.ElementTree node. XCheck objects can also
return checked data in a normalized form (BoolCheck, for example,
returns Boolean values, IntCheck returns an integer)
XCheck objects can manipulate Element objects.
You can define an XCh... | PypiClean |
/django-configurations-celery-2020.10.26.tar.gz/django-configurations-celery-2020.10.26/django_configurations_celery/__init__.py | from configurations import Configuration, values
class CeleryMixin:
CELERY_ACCEPT_CONTENT = values.ListValue(['application/json'])
CELERY_ENABLE_UTC = values.BooleanValue(True)
CELERY_IMPORTS = values.ListValue([])
CELERY_INCLUDE = values.ListValue([])
CELERY_TIMEZONE = values.Value('UTC')
CE... | PypiClean |
/csle_common-0.3.8.tar.gz/csle_common-0.3.8/src/csle_common/dao/emulation_config/topology_config.py | from typing import List, Dict, Any
from csle_common.dao.emulation_config.node_firewall_config import NodeFirewallConfig
from csle_common.util.general_util import GeneralUtil
from csle_base.json_serializable import JSONSerializable
class TopologyConfig(JSONSerializable):
"""
A DTO representing the topology con... | PypiClean |
/tw2.ckeditor-2.0.1.tar.gz/tw2.ckeditor-2.0.1/tw2/ckeditor/static/4.0.1/lang/km.js | /*
Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.lang['km']={"dir":"ltr","editor":"Rich Text Editor","common":{"editorHelp":"Press ALT 0 for help","browseServer":"មើល","url":"URL","protocol":"ប្រូតូកូល","upload":"ទ... | PypiClean |
/django-tequila-4.0.0.tar.gz/django-tequila-4.0.0/sample_app/python3-8-django-2/django_tequila_app/settings.py | import os
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
# Quick-start development settings - unsuitable for production
# See https://docs.djangoproject.com/en/1.10/howto/deployment/checklist/
# SECURITY WARNING: keep the... | PypiClean |
/bci-essentials-0.0.6.tar.gz/bci-essentials-0.0.6/bci_essentials/classification/mi_classifier.py | import os
import sys
import numpy as np
from sklearn.model_selection import StratifiedKFold
from sklearn.pipeline import Pipeline
from sklearn.ensemble import RandomForestClassifier
from sklearn.metrics import confusion_matrix, precision_score, recall_score
from sklearn.discriminant_analysis import LinearDiscriminantAn... | PypiClean |
/python-rpm-spec-0.14.1.tar.gz/python-rpm-spec-0.14.1/pyrpm/spec.py | import os
import re
import sys
from warnings import warn
from abc import ABCMeta, abstractmethod
from typing import Any, AnyStr, Dict, List, Optional, Union, Tuple, Type, cast
if sys.version_info < (3, 7):
re.Pattern = Any
re.Match = Any
__all__ = ["Spec", "replace_macros", "Package", "warnings_enabled"]
# ... | PypiClean |
/redomino.odttransforms-0.4.zip/redomino.odttransforms-0.4/README.rst | redomino.odttransforms
======================
It register a new portal transforms that let you generate odt files for a given .odt template.
This products is very simple: it just interpolates odt variables with the given ones you pass calling the transformer.
Therefore it performs just variable substitutions, not a r... | PypiClean |
/nnisgf-0.4-py3-none-manylinux1_x86_64.whl/nnisgf-0.4.data/data/nni/node_modules/azure-storage/lib/common/services/storageserviceclient.js | //
// Copyright (c) Microsoft and contributors. 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 require... | PypiClean |
/py_viptela-0.2.9.8.5.tar.gz/py_viptela-0.2.9.8.5/py_viptela/api/config/builder/lists/datafqdnall.py | def getAllDataPrefixAndFQDNLists(vmanage):
"""
Get lists for all all data-prefix(IPv4) and Fqdn lists
Parameters:
Returns
response (dict)
"""
endpoint = f"dataservice/template/policy/list/dataprefixfqdn"
response = vmanage.apiCall("GET", endpoint)
... | PypiClean |
/pypsexec-0.3.0.tar.gz/pypsexec-0.3.0/README.md | # Python PsExec Library
[](https://github.com/jborean93/pypsexec/actions/workflows/ci.yml)
[](https://codecov.io/gh/jborean93/pyps... | PypiClean |
/odoo13_addon_l10n_es_facturae-13.0.2.5.0-py3-none-any.whl/odoo/addons/l10n_es_facturae/models/account_tax_template.py |
from odoo import fields, models
class AccountTaxTemplate(models.Model):
_inherit = "account.tax.template"
facturae_code = fields.Selection(
selection=[
("01", "IVA: Impuesto sobre el valor añadido"),
(
"02",
"IPSI: Impuesto sobre la producción,... | PypiClean |
/otxseg-0.3.1.tar.gz/otxseg-0.3.1/mmseg/models/decode_heads/ema_head.py | import math
import torch
import torch.distributed as dist
import torch.nn as nn
import torch.nn.functional as F
from mmcv.cnn import ConvModule
from ..builder import HEADS
from .decode_head import BaseDecodeHead
def reduce_mean(tensor):
"""Reduce mean when distributed training."""
if not (dist.is_available(... | PypiClean |
/mle_monitor-0.0.2.tar.gz/mle_monitor-0.0.2/README.md | # Lightweight Experiment & Resource Monitoring 📺
[](https://pypi.python.org/pypi/mle-monitor)
[](https://badge.fury.io/py/mle-monitor)
[ -> None:
import aiohttp
... | PypiClean |
/katalytic_images-0.9.4.tar.gz/katalytic_images-0.9.4/README.md | # katalytic-images [](https://pypi.org/project/katalytic-images/) [](https://gitlab.com/katalytic/katalytic-images/-/commits/main) [:
"""
https://www.zabbix.com/documentation/5.2/en/manual/api/reference/screenitem/object#screen-item
Type of screen item.
"""
GRAPH = 0
SIMPLE_GRAPH = 1
MAP = 2
PLAIN_TEXT = 3
HOSTS_INFO = 4
TRIGGERS... | PypiClean |
/d4-0.1.10.tar.gz/d4-0.1.10/README.md | # D4: Dock to Develop Dynamic Dockerfile
## abstract
D4 is the tool to develop generic Dockerfile. D4 will provide the easier method to build container image from Dockerfile and test the Dockerfile. By this method, you can realize TDD(Test Driven Development) of Dockerfile easily.
## requirements
D4 requires the foll... | PypiClean |
/clickatell-0.1.2.tar.gz/clickatell-0.1.2/README.md | Clickatell Python Library
================================
Master: [](http://travis-ci.org/arcturial/clickatell-python)
This library allows easy access to connecting the [Clickatell's](http://www.clickatell.com) different messe... | PypiClean |
/odoo14_addon_invader_payment_adyen-14.0.1.0.4-py3-none-any.whl/odoo/addons/invader_payment_adyen/services/payment_adyen.py |
import logging
from odoo.addons.base_rest import restapi
from odoo.addons.base_rest.components.service import (
skip_secure_response,
to_bool,
to_int,
)
from odoo.addons.component.core import AbstractComponent
_logger = logging.getLogger(__name__)
try:
from cerberus import Validator
except ImportErr... | PypiClean |
/edx_enterprise-4.1.6-py3-none-any.whl/enterprise/decorators.py | import inspect
import warnings
from functools import wraps
from urllib.parse import parse_qs, urlencode, urlparse, urlunparse
from requests.utils import quote
from django.http import Http404
from django.shortcuts import redirect
from enterprise.utils import get_enterprise_customer_or_404, get_identity_provider
FRES... | PypiClean |
/sat_mapping_cyborg_ai-0.0.37-py3-none-any.whl/sat_mapping/Lib/gsutil/gslib/vendored/boto/boto/cloudfront/distribution.py |
import uuid
import base64
import time
from boto.compat import six, json
from boto.cloudfront.identity import OriginAccessIdentity
from boto.cloudfront.object import Object, StreamingObject
from boto.cloudfront.signers import ActiveTrustedSigners, TrustedSigners
from boto.cloudfront.logging import LoggingInfo
from boto... | PypiClean |
/django_watermark-0.2.0-py3-none-any.whl/watermarker/utils.py | import re
import random
from PIL import Image, ImageEnhance
from .conf import settings
def _percent(var):
"""
Just a simple interface to the _val function with a more meaningful name.
"""
return _val(var, True)
def _int(var):
"""
Just a simple interface to the _val function with a more mea... | PypiClean |
/timeeval_gutenTAG-1.4.0-py3-none-any.whl/gutenTAG/base_oscillations/cylinder_bell_funnel.py | from typing import Optional, Sequence, Callable
import numpy as np
from . import BaseOscillation
from .interface import BaseOscillationInterface
from ..utils.default_values import default_values
from ..utils.global_variables import BASE_OSCILLATION_NAMES, BASE_OSCILLATIONS, PARAMETERS
from ..utils.types import BOGene... | PypiClean |
/Mathics_Django-6.0.0-py3-none-any.whl/mathics_django/web/media/js/mathjax/jax/output/SVG/fonts/TeX/Fraktur/Bold/PUA.js | MathJax.Hub.Insert(MathJax.OutputJax.SVG.FONTDATA.FONTS["MathJax_Fraktur-bold"],{58113:[630,27,587,64,512,"388 427Q320 485 242 524T128 563H116Q95 563 87 561L77 559Q72 563 69 566T65 570T65 572L75 576Q106 592 154 611T212 630Q230 630 262 622T358 581T492 498L508 486Q512 463 512 396Q512 246 469 112L465 102Q453 94 341 25Q252... | PypiClean |
/quri_parts_chem-0.14.0-py3-none-any.whl/quri_parts/chem/mol/models.py |
from abc import abstractmethod, abstractproperty
from dataclasses import dataclass
from enum import Enum, auto
from typing import NamedTuple, Optional, Protocol, Sequence
import numpy as np
import numpy.typing as npt # noqa: F401
from quri_parts.chem.mol import get_core_and_active_orbital_indices
class OrbitalTyp... | PypiClean |
/ol_concourse-0.5.3-py3-none-any.whl/ol_concourse/lib/resources.py | from typing import Optional, Union
from ol_concourse.lib.models.pipeline import Identifier, RegistryImage, Resource
from ol_concourse.lib.models.resource import Git
def git_repo( # noqa: PLR0913
name: Identifier,
uri: str,
branch: str = "main",
check_every: str = "60s",
paths: Optional[list[str]... | PypiClean |
/jupyterlab_remote_contents-0.1.1.tar.gz/jupyterlab_remote_contents-0.1.1/node_modules/eslint/lib/linter/linter.js | "use strict";
//------------------------------------------------------------------------------
// Requirements
//------------------------------------------------------------------------------
const
path = require("path"),
eslintScope = require("eslint-scope"),
evk = require("eslint-visitor-keys"),
esp... | PypiClean |
/pybw_comic-23.8.10.4.tar.gz/pybw_comic-23.8.10.4/pybw_comic/engines/manhuaDB.py | '''
'''
import os
import sys
import warnings
import time
import shutil
from glob import glob
from pathlib import Path
from tqdm import tqdm
import re
import random
import zhconv
from collections import OrderedDict
import requests
from bs4 import BeautifulSoup
from seleniumwire import webdriver
from selenium.webdriver.c... | PypiClean |
/dl_coursera-0.1.2-py3-none-any.whl/dl_coursera/define.py | import json
from .lib.MyDict import MyDict
URL_ROOT = 'https://www.coursera.org'
COURSE_0 = 'learning-how-to-learn'
def URL_SPEC(slug):
return URL_ROOT + '/api/onDemandSpecializations.v1?q=slug&slug={}&fields=courseIds,interchangeableCourseIds,launchedAt,logo,memberships,metadata,partnerIds,premiumExperienceVar... | PypiClean |
/tnnt_templates-2.11.5.tar.gz/tnnt_templates-2.11.5/tnnt_templates/static/tnnt_templates/libs/highlight-js/11.01/languages/sml.js | export default function(hljs) {
return {
name: 'SML (Standard ML)',
aliases: [ 'ml' ],
keywords: {
$pattern: '[a-z_]\\w*!?',
keyword:
/* according to Definition of Standard ML 97 */
'abstype and andalso as case datatype do else end eqtype ' +
'exception fn fun functor ... | PypiClean |
/graia_ariadne-0.7.16-py3-none-any.whl/graia/ariadne/context.py |
from contextlib import contextmanager, suppress
from contextvars import ContextVar
from typing import TYPE_CHECKING, Dict, Optional
if TYPE_CHECKING:
from asyncio.events import AbstractEventLoop
from graia.broadcast import Broadcast
from graia.broadcast.entities.event import Dispatchable
from .app i... | PypiClean |
/music_fsl-0.1.6.tar.gz/music_fsl-0.1.6/music_fsl/data.py | from typing import Optional, Callable, Dict, List, Any, Tuple
import random
from collections import defaultdict
import torch
import numpy as np
import mirdata
from torch.utils.data import Dataset
import music_fsl.util as util
class ClassConditionalDataset(torch.utils.data.Dataset):
def __getitem__(self, index: ... | PypiClean |
/pylinkirc-3.1.0.tar.gz/pylinkirc-3.1.0/plugins/games.py | import random
from pylinkirc import utils
mydesc = "The \x02Games\x02 plugin provides simple games for IRC."
gameclient = utils.register_service("Games", default_nick="Games", manipulatable=True, desc=mydesc)
reply = gameclient.reply # TODO find a better syntax for ServiceBot.reply()
error = gameclient.error # TOD... | PypiClean |
/wagalytics-tier-1.0rc1.tar.gz/wagalytics-tier-1.0rc1/wagalytics/static/wagalytics/vendors.bundle.js |
module.exports = __webpack_require__(1);
/***/ }),
/* 1 */
/***/ (function(module, exports, __webpack_require__) {
var require;/* WEBPACK VAR INJECTION */(function(module) {//! moment.js
;(function (global, factory) {
true ? module.exports = factory() :
typeof define === 'function' && define.amd ? d... | PypiClean |
/argon_88_sk-0.1.2.tar.gz/argon_88_sk-0.1.2/argon_88_sk/serialize.py | import re
from types import NoneType, EllipsisType
from typing import Iterator
from .base import Serializer
from argon_88_sk.utils.templates import JSON, XML, XML_PRIMITIVE
from argon_88_sk.utils.constants import PRIMITIVE_TYPES, TYPE_MAPPING
class JSONSerializer(Serializer):
"""JSON serializer class."""
_TY... | PypiClean |
/getpaid.formgen-0.6.zip/getpaid.formgen-0.6/src/getpaid/formgen/__init__.py | from Products.Archetypes import atapi
from Products.CMFCore import utils
from zope.i18nmessageid import MessageFactory
# Define a message factory for when this product is internationalised.
# This will be imported with the special name "_" in most modules. Strings
# like _(u"message") will then be extracted by i18n t... | PypiClean |
/monocdk.experiment-1.66.0-py3-none-any.whl/monocdk_experiment/aws_kinesisanalytics/__init__.py | import abc
import builtins
import datetime
import enum
import typing
import jsii
import publication
import typing_extensions
from .._jsii import *
from .. import (
CfnResource as _CfnResource_7760e8e4,
CfnTag as _CfnTag_b4661f1a,
Construct as _Construct_f50a3f53,
IInspectable as _IInspectable_051e6ed... | PypiClean |
/boot-synth-1.2.0.tar.gz/boot-synth-1.2.0/synth/projects_master/nginx_router/frontend/react/node_modules/eslint-plugin-jsx-a11y/lib/rules/no-noninteractive-element-interactions.js | "use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));
var _ariaQuery = require("aria-query");
var _jsxAstUtils = require("jsx-ast-utils");
var _arrayIncludes = _inter... | PypiClean |
/nni_upload_test-0.7.1904290925-py3-none-win_amd64.whl/nni_upload_test-0.7.1904290925.data/data/nni/node_modules/rx/ts/rx.binding.es6.d.ts | declare module Rx {
export interface ConnectableObservable<T> extends Observable<T> {
connect(): IDisposable;
refCount(): Observable<T>;
}
export interface Observable<T> {
/**
* Multicasts the source sequence notifications through an instantiated subject into all uses o... | PypiClean |
/youtube-series-downloader-1.5.1.tar.gz/youtube-series-downloader-1.5.1/README.md | # youtube-series-downloader
[](https://pypi.python.org/pypi/youtube-series-downloader)
[](https://pypi.python.org/pypi/youtube-series-downloader)
[![Download... | PypiClean |
/python-kubernetes-wrapper-0.1.tar.gz/python-kubernetes-wrapper-0.1/kubernetes/_file_cache.py |
from hashlib import md5
import os
import tempfile
class _FileCacheError(Exception):
'''Base exception class for FileCache related errors'''
class _FileCache(object):
DEPTH = 3
def __init__(self,root_directory=None):
self._InitializeRootDirectory(root_directory)
def Get(self, key):
path = self._Get... | PypiClean |
/beekeeper_chatbot_sdk-0.3.4.tar.gz/beekeeper_chatbot_sdk-0.3.4/beekeeper_chatbot_sdk/handlers.py | import re
from abc import ABC
from abc import abstractmethod
from beekeeper_sdk.conversations import MESSAGE_TYPE_REGULAR
from beekeeper_sdk.conversations import ConversationMessage
from beekeeper_sdk.status import Status
class AbstractHandler(ABC):
@abstractmethod
def matches(self, message) -> bool:
... | PypiClean |
/aos-cube-0.5.11.tar.gz/aos-cube-0.5.11/aos/constant.py | import os
# Default paths to Mercurial and Git
hg_cmd = 'hg'
git_cmd = 'git'
ignores = [
"make",
"make.exe",
"Makefile",
"build",
".cproject",
".gdbinit",
".openocd_cfg",
".project",
"aos",
".aos",
]
toolchains = {
'arm-none-eabi':{
'name': 'gcc-arm-none-eabi',
... | PypiClean |
/jupyter_contrib_nbextensions-0.7.0.tar.gz/jupyter_contrib_nbextensions-0.7.0/src/jupyter_contrib_nbextensions/nbextensions/spellchecker/typo/typo.js | define(['require'], function (requirejs) {
'use strict';
/**
* Typo is a JavaScript implementation of a spellchecker using hunspell-style
* dictionaries.
*/
/**
* Typo constructor.
*
* @param {String} [dictionary] The locale code of the dictionary being used. e.g.,
* "en_US". This ... | PypiClean |
/aRez-0.2.4.tar.gz/aRez-0.2.4/arez/mixins.py | from __future__ import annotations
from math import nan, floor
from functools import wraps
from datetime import datetime
from abc import abstractmethod
from typing import (
Optional, Union, List, Tuple, Generator, Awaitable, TypeVar, Literal, cast, TYPE_CHECKING
)
from . import responses
from .enums import Queue,... | PypiClean |
/flask_more-0.2.1.tar.gz/flask_more-0.2.1/docs/api.md | # @api
Basically, Flask-More does most of the work using the `@api` decorator, which does not disturb the existing routing view. The functionality adds validation of the request data, handles the request body data automatically, and helps you describe the api's functionality in more detail.
## Validation
```python
f... | PypiClean |
/smartpip-1.11.6.tar.gz/smartpip-1.11.6/airflow/hooks/http_hook.py |
from builtins import str
import requests
import tenacity
from airflow.hooks.base_hook import BaseHook
from airflow.exceptions import AirflowException
class HttpHook(BaseHook):
"""
Interact with HTTP servers.
:param http_conn_id: connection that has the base API url i.e https://www.google.com/
a... | PypiClean |
/alipay_sdk_python-3.6.740-py3-none-any.whl/alipay/aop/api/domain/TaskDetailResponse.py | import json
from alipay.aop.api.constant.ParamConstants import *
from alipay.aop.api.domain.PrizeResponse import PrizeResponse
class TaskDetailResponse(object):
def __init__(self):
self._creator = None
self._creator_open_id = None
self._merchant_pid = None
self._prize_response = ... | PypiClean |
/instauto2-1.0.0.tar.gz/instauto2-1.0.0/instauto/api/actions/profile.py | from requests import Session, Response
from typing import Callable, Union, Dict
from instauto.api.actions.stubs import _request
from ..structs import IGProfile, State, DeviceProfile, Method
from .structs.profile import SetGender, SetBiography, Update, Info
class ProfileMixin:
"""Handles everything related to upd... | PypiClean |
/DI_engine-0.4.9-py3-none-any.whl/ding/rl_utils/td.py | import copy
import numpy as np
from collections import namedtuple
from typing import Union, Optional, Callable
import torch
import torch.nn as nn
import torch.nn.functional as F
from ding.hpc_rl import hpc_wrapper
from ding.rl_utils.value_rescale import value_transform, value_inv_transform
from ding.torch_utils impor... | PypiClean |
/nonebot_plugin_docs-2.0.1-py3-none-any.whl/nonebot_plugin_docs/dist/assets/js/cee8f112.8439d3bb.js | "use strict";(self.webpackChunknonebot=self.webpackChunknonebot||[]).push([[2889],{35318:function(e,n,r){r.r(n),r.d(n,{MDXContext:function(){return p},MDXProvider:function(){return s},mdx:function(){return x},useMDXComponents:function(){return u},withMDXComponents:function(){return m}});var t=r(27378);function a(e,n,r)... | PypiClean |
/retro_data_structures-0.23.0-py3-none-any.whl/retro_data_structures/properties/prime_remastered/objects/PointOfInterestMP1.py | import dataclasses
import struct
import typing
from retro_data_structures.game_check import Game
from retro_data_structures.properties.base_property import BaseProperty
import base64
@dataclasses.dataclass()
class PointOfInterestMP1(BaseProperty):
unknown_properties: dict[int, bytes] = dataclasses.field(default_... | PypiClean |
/cdk_cloudformation_datadog_monitors_downtime-3.1.0a7-py3-none-any.whl/cdk_cloudformation_datadog_monitors_downtime/__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 aws_cdk as _aws_cdk_ceddda9d
import constructs as _constructs_77d1e7e8
class CfnDowntime(
_aws_cdk_ceddda9d.CfnResource,
... | PypiClean |
/distributions_lex-0.1.tar.gz/distributions_lex-0.1/distributions_lex/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 |
/pyocd_hx-0.0.2.tar.gz/pyocd_hx-0.0.2/pyocd/core/options_manager.py |
import logging
from functools import partial
from typing import (Any, Callable, Dict, List, Mapping, NamedTuple, Optional)
from .options import OPTIONS_INFO
from ..utility.notification import Notifier
LOG = logging.getLogger(__name__)
class OptionChangeInfo(NamedTuple):
"""@brief Data for an option value change... | PypiClean |
/address-net-1.0.tar.gz/address-net-1.0/addressnet/dataset.py | from typing import Optional, Union, Callable, List
from collections import OrderedDict
import random
import tensorflow as tf
import numpy as np
import string
import addressnet.lookups as lookups
from addressnet.typo import generate_typo
# Schema used to decode data from the TFRecord file
_features = OrderedDict([
... | PypiClean |
/v1/model/extracted_data.py |
import pprint
import re
import six
class ExtractedData:
"""
Attributes:
openapi_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict): The key is attribute name
and the value is json key in defin... | PypiClean |
/rpi_torchvision-0.7.0-cp37-cp37m-linux_armv7l.whl/torchvision/datasets/sbd.py | import os
import shutil
from .vision import VisionDataset
import numpy as np
from PIL import Image
from .utils import download_url, verify_str_arg
from .voc import download_extract
class SBDataset(VisionDataset):
"""`Semantic Boundaries Dataset <http://home.bharathh.info/pubs/codes/SBD/download.html>`_
The... | PypiClean |
/iroin-python-pptx-0.6.20.tar.gz/iroin-python-pptx-0.6.20/pptx/shapes/freeform.py | from __future__ import absolute_import, division, print_function, unicode_literals
from pptx.compat import Sequence
from pptx.util import lazyproperty
class FreeformBuilder(Sequence):
"""Allows a freeform shape to be specified and created.
The initial pen position is provided on construction. From there, dr... | PypiClean |
/mlx9064x-driver-1.3.0.tar.gz/mlx9064x-driver-1.3.0/mlx/hw_i2c_hal.py | import struct
class HwI2cHalMlx90640:
support_buffer = False
sensor_type = None
pass
def connect(self):
print("connect function not implemented")
def i2c_read(self, i2c_addr, addr, count=1):
print("i2c_read function not implemented")
return bytes([0] * count), 0
def i... | PypiClean |
/Flask-CAS-1.0.2.tar.gz/Flask-CAS-1.0.2/flask_cas/routing.py | import flask
from xmltodict import parse
from flask import current_app
from .cas_urls import create_cas_login_url
from .cas_urls import create_cas_logout_url
from .cas_urls import create_cas_validate_url
try:
from urllib import urlopen
except ImportError:
from urllib.request import urlopen
blueprint = flask.... | PypiClean |
/tensorflow_macos-2.14.0rc0-cp311-cp311-macosx_12_0_arm64.whl/tensorflow/python/saved_model/loader_impl.py | import os
import sys
from google.protobuf import message
from google.protobuf import text_format
from tensorflow.core.framework import graph_debug_info_pb2
from tensorflow.core.protobuf import meta_graph_pb2
from tensorflow.core.protobuf import saved_model_pb2
from tensorflow.python.framework import ops
from tensorfl... | PypiClean |
/pulumi_azure_native-2.5.1a1693590910.tar.gz/pulumi_azure_native-2.5.1a1693590910/pulumi_azure_native/redhatopenshift/v20220904/machine_pool.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__ = ['MachinePoolArgs', 'MachinePool']
@pulumi.input_type
class MachinePoolArgs:
def __init__(__self__, *,
r... | PypiClean |
/ChessAnalysisPipeline-0.0.11-py3-none-any.whl/CHAP/edd/processor.py | # system modules
from json import dumps
import os
# third party modules
import numpy as np
# local modules
from CHAP.processor import Processor
class DiffractionVolumeLengthProcessor(Processor):
"""A Processor using a steel foil raster scan to calculate the
length of the diffraction volume for an EDD setup.... | PypiClean |
/slixmppfix-1.4.3.tar.gz/slixmppfix-1.4.3/slixmpp/plugins/xep_0077/register.py | import logging
import ssl
from slixmpp.stanza import StreamFeatures, Iq
from slixmpp.xmlstream import register_stanza_plugin, JID
from slixmpp.plugins import BasePlugin
from slixmpp.plugins.xep_0077 import stanza, Register, RegisterFeature
log = logging.getLogger(__name__)
class XEP_0077(BasePlugin):
"""
... | PypiClean |
/boot-synth-1.2.0.tar.gz/boot-synth-1.2.0/synth/projects_master/nginx_router/frontend/react/node_modules/@jest/source-map/node_modules/source-map/dist/source-map.min.js | !function(e,n){"object"==typeof exports&&"object"==typeof module?module.exports=n():"function"==typeof define&&define.amd?define([],n):"object"==typeof exports?exports.sourceMap=n():e.sourceMap=n()}(this,function(){return function(e){function n(t){if(r[t])return r[t].exports;var o=r[t]={exports:{},id:t,loaded:!1};retur... | PypiClean |
/girder-jobs-3.1.22.tar.gz/girder-jobs-3.1.22/girder_jobs/web_client/JobStatus.js | import _ from 'underscore';
// The same job status enum as the server.
var JobStatus = {
_map: {},
text: function (status) {
var text = status;
if (status in this._map) {
text = this._map[status].text;
}
return '' + text;
},
icon: function (status) {
... | PypiClean |
/farbox_bucket-0.2068.tar.gz/farbox_bucket-0.2068/farbox_bucket/server/static/lib/mark/jquery.mark.js | "use strict";
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
var _createClass = function () { function defi... | PypiClean |
/django-storages-redux-1.3.3.tar.gz/django-storages-redux-1.3.3/docs/_build/html/_static/websupport.js | (function($) {
$.fn.autogrow = function() {
return this.each(function() {
var textarea = this;
$.fn.autogrow.resize(textarea);
$(textarea)
.focus(function() {
textarea.interval = setInterval(function() {
$.fn.autogrow.resize(textarea);
}, 500);
})
.blur(fu... | PypiClean |
/YooMoney-0.1.0.tar.gz/YooMoney-0.1.0/yoomoney/history/history.py | from datetime import datetime
from typing import Optional
import requests
import json
from yoomoney.operation.operation import Operation
from yoomoney.exceptions import (
IllegalParamType,
IllegalParamStartRecord,
IllegalParamRecords,
IllegalParamLabel,
IllegalParamFromDate,
IllegalParamTillDa... | PypiClean |
/uniohomeassistant-0.1.3.tar.gz/uniohomeassistant-0.1.3/homeassistant/bootstrap.py | import asyncio
import contextlib
from datetime import datetime
import logging
import logging.handlers
import os
import sys
import threading
from time import monotonic
from typing import TYPE_CHECKING, Any, Dict, Optional, Set
import voluptuous as vol
import yarl
from homeassistant import config as conf_util, config_e... | PypiClean |
/xs_transformers-1.0.7-py3-none-any.whl/xs_transformers/hf_argparser.py |
import dataclasses
import json
import sys
from argparse import ArgumentDefaultsHelpFormatter, ArgumentParser, ArgumentTypeError
from copy import copy
from enum import Enum
from inspect import isclass
from pathlib import Path
from typing import Any, Dict, Iterable, NewType, Optional, Tuple, Union, get_type_hints
impor... | PypiClean |
/idg_metadata_client-1.0.2.0-py3-none-any.whl/metadata/generated/schema/entity/data/chart.py |
from __future__ import annotations
from enum import Enum
from typing import List, Optional
from pydantic import BaseModel, Extra, Field
from ...type import basic, entityHistory, entityReference, tagLabel, usageDetails
from ..services import dashboardService
class ChartType(Enum):
Line = 'Line'
Table = 'Ta... | PypiClean |
/superset-growth-0.26.3.tar.gz/superset-growth-0.26.3/superset/static/assets/src/visualizations/horizon.js | import d3 from 'd3';
import './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.length ... | PypiClean |
/adapter_transformers-3.2.1-py3-none-any.whl/transformers/models/chinese_clip/processing_chinese_clip.py | import warnings
from ...processing_utils import ProcessorMixin
from ...tokenization_utils_base import BatchEncoding
class ChineseCLIPProcessor(ProcessorMixin):
r"""
Constructs a Chinese-CLIP processor which wraps a Chinese-CLIP image processor and a Chinese-CLIP tokenizer into a
single processor.
[`... | PypiClean |
/streamlit_ace-0.1.1-py3-none-any.whl/streamlit_ace/frontend/build/2a71eab9fa03631bb04242db6853c0fa.js | ace.define("ace/theme/tomorrow_night_bright",["require","exports","module","ace/lib/dom"],(function(r,o,e){o.isDark=!0,o.cssClass="ace-tomorrow-night-bright",o.cssText=".ace-tomorrow-night-bright .ace_gutter {background: #1a1a1a;color: #DEDEDE}.ace-tomorrow-night-bright .ace_print-margin {width: 1px;background: #1a1a1a... | PypiClean |
/steelscript.netprofiler-2.0.tar.gz/steelscript.netprofiler-2.0/examples/traffic_flowlist.py |
# Copyright (c) 2019 Riverbed Technology, Inc.
#
# This software is licensed under the terms and conditions of the MIT License
# accompanying the software ("License"). This software is distributed "AS IS"
# as set forth in the License.
from steelscript.netprofiler.core.app import NetProfilerApp
from steelscript.net... | PypiClean |
/bitmovin_api_sdk-1.171.0-py3-none-any.whl/bitmovin_api_sdk/models/live_encoding.py |
from enum import Enum
from six import string_types, iteritems
from bitmovin_api_sdk.common.poscheck import poscheck_model
import pprint
import six
class LiveEncoding(object):
@poscheck_model
def __init__(self,
stream_key=None,
encoder_ip=None,
application=No... | PypiClean |
/pyppbox_torchreid-1.4.0.2-cp38-cp38-win_amd64.whl/pyppbox_torchreid/data/sampler.py | from __future__ import division, absolute_import
import copy
import numpy as np
import random
from collections import defaultdict
from torch.utils.data.sampler import Sampler, RandomSampler, SequentialSampler
AVAI_SAMPLERS = [
'RandomIdentitySampler', 'SequentialSampler', 'RandomSampler',
'RandomDomainSampler'... | PypiClean |
/joulescope_ui-1.0.29.tar.gz/joulescope_ui-1.0.29/joulescope_ui/view.py |
from . import pubsub_singleton, register, N_, sanitize, \
get_topic_name, get_unique_id, get_instance
from .styles.manager import style_settings
from PySide6 import QtCore, QtWidgets
import PySide6QtAds as QtAds
import logging
_log = logging.getLogger(__name__)
class DockWidget(QtAds.CDockWidget):
def __... | PypiClean |
/model-optimizer-2020.2.12.tar.gz/model-optimizer-2020.2.12/mo/utils/logger.py | import importlib.util
import logging as log
import os
import re
import sys
# WA for abseil bug that affects logging while importing TF starting 1.14 version
# Link to original issue: https://github.com/abseil/abseil-py/issues/99
if importlib.util.find_spec('absl') is not None:
import absl.logging
log.root.rem... | PypiClean |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.