id stringlengths 1 8 | text stringlengths 6 1.05M | dataset_id stringclasses 1
value |
|---|---|---|
/ocn-xmlchecker.env.tar.gz/env (copy)/lib/python2.7/encodings/utf_32.py | import codecs, sys
### Codec APIs
encode = codecs.utf_32_encode
def decode(input, errors='strict'):
return codecs.utf_32_decode(input, errors, True)
class IncrementalEncoder(codecs.IncrementalEncoder):
def __init__(self, errors='strict'):
codecs.IncrementalEncoder.__init__(self, errors)
self... | PypiClean |
/django-fiber-1.10.tar.gz/django-fiber-1.10/fiber/static/fiber/js/ckeditor_4.6.2_b52fb43f6f3e/styles.js | /**
* Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md or http://ckeditor.com/license
*/
// This file contains style definitions that can be used by CKEditor plugins.
//
// The most common use for it is the "stylescombo" plugin which shows the Styles drop-... | PypiClean |
/e2eAIOK-ModelAdapter10-1.0.0.tar.gz/e2eAIOK-ModelAdapter10-1.0.0/e2eAIOK/ModelAdapter/engine_core/distiller/dkd.py |
## refer to https://github.com/megvii-research/mdistiller
# MIT License
# Copyright (c) 2022 MEGVII Research
# 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... | PypiClean |
/mkdocs_git_timeline_plugin-0.0.8-py3-none-any.whl/mkdocs_git_timeline_plugin/git/page.py | from pathlib import Path
import re
import os
from datetime import datetime, timedelta
import json
import logging
from .repo import Repo, AbstractRepoObject
from .command import GitCommand, GitCommandError
from .timeknots import timeknots
logger = logging.getLogger("mkdocs.plugins")
class Page(AbstractRepoObject):
... | PypiClean |
/saleor-social-auth-0.6.0.tar.gz/saleor-social-auth-0.6.0/social_auth/plugin.py | import logging
from saleor.graphql.account.mutations.authentication import RefreshToken, VerifyToken
from typing import Optional, Tuple
from django.contrib.sessions.backends.db import SessionStore
from django.core.exceptions import ValidationError
from saleor.core.jwt import JWT_REFRESH_TOKEN_COOKIE_NAME, create_acces... | PypiClean |
/open_aea-1.38.0-py3-none-win32.whl/aea/skills/tasks.py | """This module contains the classes for tasks."""
import logging
import signal
import threading
from abc import abstractmethod
from multiprocessing.pool import AsyncResult, Pool, ThreadPool
from typing import Any, Callable, Dict, List, Optional, Sequence, Type, cast
from aea.components.utils import _enlist_component_p... | PypiClean |
/azure-mgmt-rdbms-10.2.0b6.zip/azure-mgmt-rdbms-10.2.0b6/azure/mgmt/rdbms/mariadb/operations/_server_based_performance_tier_operations.py | from typing import TYPE_CHECKING
import warnings
from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error
from azure.core.paging import ItemPaged
from azure.core.pipeline import PipelineResponse
from azure.core.pipeline.transport import HttpR... | PypiClean |
/steamers_misago-0.0.2-py3-none-any.whl/misago/categories/admin.py | from django.conf.urls import url
from django.utils.translation import gettext_lazy as _
from .views.categoriesadmin import (
CategoriesList,
DeleteCategory,
EditCategory,
MoveDownCategory,
MoveUpCategory,
NewCategory,
)
from .views.permsadmin import (
CategoryPermissions,
CategoryRolesL... | PypiClean |
/entity-resolution-0.1.0.tar.gz/entity-resolution-0.1.0/resolver/_functions.py | from typing import Any, Dict, Generator, Hashable, List
def merge_union(
obj1: Any,
obj2: Any,
default_union_type: type = list,
_key_path: List[str] = None
) -> Dict[str, Any]:
"""
Merges two complex structures. Leaf values will be unioned instead of overwritten.
The result... | PypiClean |
/video_grabber-0.1.0-py3-none-any.whl/video_grabber/option_key_value.py | class option_key_values:
"""triple element mapping of {option:key} and {key:value}, the value should be bool"""
def __init__(self, option_key={}, keys={}) -> None:
# assert()
self.oks = option_key
self.kos = {v: k for k, v in self.oks.items()}
self.set_by_keys(keys)
# se... | PypiClean |
/sumologic_collectd_metrics-4.1.1.tar.gz/sumologic_collectd_metrics-4.1.1/sumologic_collectd_metrics/metrics_config.py |
from .metrics_util import (
validate_boolean_type,
validate_non_empty,
validate_non_negative,
validate_positive,
validate_string_type,
)
class ConfigOptions(object):
"""
Config options
"""
url = "URL"
# Http header options
dimension_tags = "Dimensions"
meta_tags = "Me... | PypiClean |
/ciefunctions-1.0.2.tar.gz/ciefunctions-1.0.2/tc1_97/MathJax-2.7.5/extensions/MathZoom.js | (function(a,d,f,c,j){var k="2.7.5";var i=a.CombineConfig("MathZoom",{styles:{"#MathJax_Zoom":{position:"absolute","background-color":"#F0F0F0",overflow:"auto",display:"block","z-index":301,padding:".5em",border:"1px solid black",margin:0,"font-weight":"normal","font-style":"normal","text-align":"left","text-indent":0,"... | PypiClean |
/pai_easycv-0.11.4-py3-none-any.whl/easycv/models/backbones/pytorch_image_models_wrapper.py | import importlib
import timm
import torch
import torch.nn as nn
from timm.models.helpers import load_pretrained
from timm.models.hub import download_cached_file
from easycv.framework.errors import ValueError
from easycv.utils.logger import get_root_logger, print_log
from ..modelzoo import timm_models as model_urls
fr... | PypiClean |
/taskcc-alipay-sdk-python-3.3.398.tar.gz/taskcc-alipay-sdk-python-3.3.398/alipay/aop/api/request/KoubeiCateringPosShiftSyncRequest.py | import json
from alipay.aop.api.FileItem import FileItem
from alipay.aop.api.constant.ParamConstants import *
from alipay.aop.api.domain.KoubeiCateringPosShiftSyncModel import KoubeiCateringPosShiftSyncModel
class KoubeiCateringPosShiftSyncRequest(object):
def __init__(self, biz_model=None):
self._biz... | PypiClean |
/pulumi_azure_native-2.5.1a1693590910.tar.gz/pulumi_azure_native-2.5.1a1693590910/pulumi_azure_native/azurearcdata/v20230115preview/get_sql_server_database.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__ = [
'GetSqlServerDatabaseResult',
'AwaitableGetSqlServerDatabaseResult',
'get_sql_server_database',
'get_sql_ser... | PypiClean |
/llama_index-0.8.17.tar.gz/llama_index-0.8.17/llama_index/retrievers/auto_merging_retriever.py |
from llama_index.indices.base_retriever import BaseRetriever
from typing import Tuple, cast
from llama_index.schema import NodeWithScore, BaseNode
from llama_index.indices.query.schema import QueryBundle
from llama_index.indices.vector_store.retrievers.retriever import VectorIndexRetriever
from typing import List, Di... | PypiClean |
/pulumi_azure-5.50.0a1693462503.tar.gz/pulumi_azure-5.50.0a1693462503/pulumi_azure/synapse/get_workspace.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__ = [
'GetWorkspaceResult',
'AwaitableGetWorkspaceResult',
'get_workspace',
'get_workspace_output',
]
@pulumi.outp... | PypiClean |
/msgraph_beta_sdk-1.0.0a9-py3-none-any.whl/msgraph/generated/me/calendar/calendar_view/item/exception_occurrences/delta/delta_response.py | from __future__ import annotations
from kiota_abstractions.serialization import Parsable, ParseNode, SerializationWriter
from typing import Any, Callable, Dict, List, Optional, TYPE_CHECKING, Union
if TYPE_CHECKING:
from .......models import base_delta_function_response, event
from .......models import base_delta... | PypiClean |
/PColorLogging-0.0.34.tar.gz/PColorLogging-0.0.34/README.md | <h1 align="center">PColorLogging</h1>
The powerful python logging, you can create colorful logging and easy to add logging level or record attribute

## Reference
- [Installation](#installation)
- [Usage](#usage)
---
### ... | PypiClean |
/vztest-project-pkg-ivanz98-0.7.17.tar.gz/vztest-project-pkg-ivanz98-0.7.17/pony/thirdparty/compiler/symbols.py |
from __future__ import print_function
import sys, types
from . import ast
from .consts import SC_LOCAL, SC_GLOBAL_IMPLICIT, SC_GLOBAL_EXPLICIT, \
SC_FREE, SC_CELL, SC_UNKNOWN
from .misc import mangle
MANGLE_LEN = 256
class Scope:
# XXX how much information do I need about each name?
def __init__(self, ... | PypiClean |
/gears-babel-0.1.tar.gz/gears-babel-0.1/gears_babel/node_modules/babel/node_modules/regenerator-babel/node_modules/commoner/node_modules/q/q.js | *
* Copyright 2009-2012 Kris Kowal under the terms of the MIT
* license found at http://github.com/kriskowal/q/raw/master/LICENSE
*
* With parts by Tyler Close
* Copyright 2007-2009 Tyler Close under the terms of the MIT X license found
* at http://www.opensource.org/licenses/mit-license.html
* Forked at ref_se... | PypiClean |
/clickupy-0.0.4.tar.gz/clickupy-0.0.4/README.md | # Clickupy
A library and CLI for interacting with [Clickup](https://clickup.com)
## Getting Started
To install the library run `pip3 install clickupy`
## Usage
```
$ clickup --help
Usage: clickup [OPTIONS] COMMAND [ARGS]...
A command line tool for interacting with clickup
Options:
--format [human|json]
--a... | PypiClean |
/datasette-surveys-1.1.8.tar.gz/datasette-surveys-1.1.8/datasette_surveys/static/lib/summernote/dist/lang/summernote-zh-TW.js | (function ($) {
$.extend($.summernote.lang, {
'zh-TW': {
font: {
bold: '粗體',
italic: '斜體',
underline: '底線',
clear: '清除格式',
height: '行高',
name: '字體',
strikethrough: '刪除線',
subscript: '下標',
superscript: '上標',
size: '字號'
},
... | PypiClean |
/python_script_converter-1.2-py3-none-any.whl/psc/__main__.py | import os
import sys
class PSC:
def __init__(self, file, version=3):
# Get path and filename.
self.path, self.file = os.path.split(file)
if self.path == '':
self.path = os.getcwd()
# Initialization.
self.content = []
self.version = version
self.t... | PypiClean |
/zamtools-navigation-1.0.zip/zamtools-navigation-1.0/navigation/fields.py | from django.db.models import fields
from django.db import IntegrityError
from django.template.defaultfilters import slugify
class AutoSlugField(fields.SlugField):
"""
A SlugField that automatically populates itself at save-time from
the value of another field.
Accepts argument populate_from, which should be the n... | PypiClean |
/async-retriever-0.15.0.tar.gz/async-retriever-0.15.0/README.rst | .. image:: https://raw.githubusercontent.com/hyriver/HyRiver-examples/main/notebooks/_static/async_logo.png
:target: https://github.com/hyriver/HyRiver
|
.. image:: https://joss.theoj.org/papers/b0df2f6192f0a18b9e622a3edff52e77/status.svg
:target: https://joss.theoj.org/papers/b0df2f6192f0a18b9e622a3edff52e77... | PypiClean |
/keyfactor_v_1_client-1.0.3-py3-none-any.whl/keyfactor_v_1_client/models/models_metadata_all_update_request.py | from typing import Any, Dict, List, Type, TypeVar, Union, cast
import attr
from ..models.models_metadata_single_update_request import ModelsMetadataSingleUpdateRequest
from ..types import UNSET, Unset
T = TypeVar("T", bound="ModelsMetadataAllUpdateRequest")
@attr.s(auto_attribs=True)
class ModelsMetadataAllUpdateR... | PypiClean |
/simsopt-0.11.0.tar.gz/simsopt-0.11.0/thirdparty/xtensor/docs/source/xsimd.rst | .. Copyright (c) 2016, Johan Mabille, Sylvain Corlay and Wolf Vollprecht
Distributed under the terms of the BSD 3-Clause License.
The full license is in the file LICENSE, distributed with this software.
.. _xsimd:
xsimd
=====
Alignment of fixed-size members
-------------------------------
.. note::
If ... | PypiClean |
/shailesh_bart-4.2.1-py3-none-any.whl/nlu/pipe/viz/streamlit_viz/viz_building_blocks/classifier.py | import nlu
from nlu.discovery import Discoverer
from typing import List, Optional, Union
import streamlit as st
import pandas as pd
from nlu.pipe.viz.streamlit_viz.streamlit_utils_OS import StreamlitUtilsOS
from nlu.pipe.viz.streamlit_viz.gen_streamlit_code import get_code_for_viz
from nlu.pipe.viz.streamlit_viz.styles... | PypiClean |
/Gbtestapi0.1-0.1a10-py3-none-any.whl/gailbot/services/organizer/settings/objects/engineObject.py | from typing import Dict, List, Union, TypedDict
from ..interface import (
load_watson_setting,
load_whisper_setting,
load_google_setting,
EngineSettingInterface,
PluginSettingsInterface,
)
from gailbot.core.utils.logger import makelogger
from gailbot.core.utils.general import write_toml
from gailbo... | PypiClean |
/selenium_driver_updater-6.0.0.tar.gz/selenium_driver_updater-6.0.0/selenium_driver_updater/driver_base.py | from typing import Any, Tuple
from pathlib import Path
import os
import stat
import subprocess
import re
import wget
#Local imports
from selenium_driver_updater._setting import setting
from selenium_driver_updater.util.extractor import Extractor
from selenium_driver_updater.util.requests_getter import RequestsGetter
... | PypiClean |
/django_surface_theme-0.0.10-py3-none-any.whl/theme/static/components/fontawesome/advanced-options/use-with-node-js/free-solid-svg-icons/faCarCrash.js | 'use strict';
Object.defineProperty(exports, '__esModule', { value: true });
var prefix = 'fas';
var iconName = 'car-crash';
var width = 640;
var height = 512;
var ligatures = [];
var unicode = 'f5e1';
var svgPathData = 'M143.25 220.81l-12.42 46.37c-3.01 11.25-3.63 22.89-2.41 34.39l-35.2 28.98c-6.57 5.41-16.31-.43-14.6... | PypiClean |
/PyProcessMacro-1.0.12-py3-none-any.whl/pyprocessmacro/models.py | import warnings
from functools import partial
from itertools import product, combinations
import numpy as np
import pandas as pd
import scipy.stats as stats
from numpy import dot
from numpy.linalg import inv, LinAlgError
from .utils import (
fast_OLS,
fast_optimize,
bootstrap_sampler,
eval_expression,... | PypiClean |
/yawd-elfinder-0.90.03.tar.gz/yawd-elfinder-0.90.03/elfinder/static/elfinder/js/i18n/elfinder.pl.js | if (elFinder && elFinder.prototype && typeof(elFinder.prototype.i18) == 'object') {
elFinder.prototype.i18.pl = {
translator : 'Marcin Mikołajczyk <marcin@pjwstk.edu.pl>',
language : 'Polski',
direction : 'ltr',
messages : {
/********************************** errors ****************************... | PypiClean |
/tencentcloud-sdk-python-3.0.973.tar.gz/tencentcloud-sdk-python-3.0.973/tencentcloud/yunjing/v20180228/errorcodes.py |
# 客户端已离线。
FAILEDOPERATION_AGENTOFFLINE = 'FailedOperation.AgentOffline'
# 关闭专业版失败。
FAILEDOPERATION_CLOSEPROVERSION = 'FailedOperation.CloseProVersion'
# 创建获取端口任务失败。
FAILEDOPERATION_CREATEOPENPORTTASK = 'FailedOperation.CreateOpenPortTask'
# 创建获取实时进程任务失败。
FAILEDOPERATION_CREATEPROCESSTASK = 'FailedOperation.CreateP... | PypiClean |
/ore.yui-0.5.4.tar.gz/ore.yui-0.5.4/src/ore/yui/resources/build/paginator/paginator-debug.js | (function () {
/**
* The Paginator widget provides a set of controls to navigate through paged
* data.
*
* @module paginator
* @uses YAHOO.util.EventProvider
* @uses YAHOO.util.AttributeProvider
*/
var Dom = YAHOO.util.Dom,
lang = YAHOO.lang,
isObject = lang.isObject,
isFunction = lan... | PypiClean |
/django_mazer-0.0.18-py3-none-any.whl/mazer/static/assets/vendors/tinymce/plugins/charmap/plugin.min.js | !function(){"use strict";var e,n,r,t,a=tinymce.util.Tools.resolve("tinymce.PluginManager"),s=function(e,n){var r,t=(r=n,e.fire("insertCustomChar",{chr:r}).chr);e.execCommand("mceInsertContent",!1,t)},i=function(e){return function(){return e}},o=i(!1),c=i(!0),u=function(){return l},l=(e=function(e){return e.isNone()},{f... | PypiClean |
/odc-algo-0.2.3.tar.gz/odc-algo-0.2.3/odc/algo/_numeric.py | from typing import Optional, Tuple
import numpy as np
from ._types import NumpyIndex1, NumpyIndex2, NumpyIndex
def half_up(n: int) -> int:
"""
Divide by 2 and round up when input is odd.
even -> n//2
odd -> n//2 + 1
"""
return (n + 1) // 2
def np_slice_to_idx(idx: NumpyIndex1, n: int) -> ... | PypiClean |
/axiom_tc-0.0.1.tar.gz/axiom_tc-0.0.1/axiom_tc/USB_Comms.py |
import hid
import sys
def byte2ascii(buffer):
new_buffer = []
for byte in buffer:
new_buffer.append("0x%x" % byte)
return new_buffer
def byte2int(buffer):
new_buffer = []
for byte in buffer:
new_buffer.append(int(byte))
return new_buffer
class USB_Comms:
# aXiom specifi... | PypiClean |
/docker_parser-0.0.8.tar.gz/docker_parser-0.0.8/README.md | # Docker parser
Docker attempts to simplify machine processing of dockerfiles. This moduel is not intended to extend docker SDK or build images, instead it attempts to parse instructions into simply manipulatable python objects, deduce state of environment in which commands are executed and allow modification of resul... | PypiClean |
/ftw.lawgiver-1.17.5.tar.gz/ftw.lawgiver-1.17.5/ftw/lawgiver/wdl/languages/english.py | from ftw.lawgiver.wdl import keywords
from ftw.lawgiver.wdl.languages.base import LanguageBase
import re
class English(LanguageBase):
filename = 'specification.txt'
code = 'en'
constraints = {
keywords.DESCRIPTION: r'^[Dd]escription$',
keywords.GENERAL: r'^[Gg]eneral$',
keywords.... | PypiClean |
/pulumi_azure_nextgen-0.6.2a1613157620.tar.gz/pulumi_azure_nextgen-0.6.2a1613157620/pulumi_azure_nextgen/azurestackhci/v20200301preview/outputs.py |
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union
from ... import _utilities, _tables
from . import outputs
__all__ = [
'ClusterNodeResponse',
'ClusterReportedPropertiesResponse',
]
@pulumi.output_type
class ClusterNodeResponse(dict):
"""
C... | PypiClean |
/mypy-boto3-sagemaker-featurestore-runtime-1.28.36.tar.gz/mypy-boto3-sagemaker-featurestore-runtime-1.28.36/mypy_boto3_sagemaker_featurestore_runtime/type_defs.py | import sys
from typing import Dict, List, Sequence
from .literals import (
DeletionModeType,
ExpirationTimeResponseType,
TargetStoreType,
TtlDurationUnitType,
)
if sys.version_info >= (3, 12):
from typing import NotRequired
else:
from typing_extensions import NotRequired
if sys.version_info >=... | PypiClean |
/KAVICA-1.3.4.tar.gz/KAVICA-1.3.4/kavica/utils/_prv_utility.py | import numpy as np
from matplotlib import cm
from itertools import count
import matplotlib.pyplot as plt
from matplotlib.font_manager import FontProperties
import pandas as pd
from kavica.utils import BColors
from sklearn.preprocessing import MinMaxScaler
from kavica.cluster_inference_system.som import (record_log, get... | PypiClean |
/give_me_python-3.10.4-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl/give_me_python/data/lib/python3.10/encodings/cp273.py |
"""#"
import codecs
### Codec APIs
class Codec(codecs.Codec):
def encode(self,input,errors='strict'):
return codecs.charmap_encode(input,errors,encoding_table)
def decode(self,input,errors='strict'):
return codecs.charmap_decode(input,errors,decoding_table)
class IncrementalEncoder(codecs... | PypiClean |
/pywapor_test-3.1.7-py3-none-any.whl/pywapor/et_look_dev/constants.py | zero_celcius = 273.15 # 0 degrees C in K
# reference values
t_ref = 293.15 # reference temperature 20 degrees celcius
p_ref = 1013.25 # reference pressure in mbar
z_ref = 0 # sea level m
lapse = -0.0065 # lapse rate K m-1
g = 9.807 # gravity m s-2
gc_... | PypiClean |
/monaco-qt-0.1.7.tar.gz/monaco-qt-0.1.7/monaco/monaco-editor/node_modules/typedoc/dist/lib/models/sources/directory.js | "use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.SourceDirectory = void 0;
const array_1 = require("../../utils/array");
/**
* Exposes information about a directory containing source files.
*
* One my access the root directory of a project through the {@link ProjectReflection.dire... | PypiClean |
/oracle-graph-client-23.3.0.zip/oracle-graph-pypi-client-23.3.0/python/pypgx/api/mllib/__init__.py | from ._model import Model
from ._deepwalk_model import DeepWalkModel
from ._graphwise_conv_layer_config import GraphWiseConvLayerConfig, GraphWiseAttentionLayerConfig
from ._graphwise_dgi_layer_config import GraphWiseDgiLayerConfig
from ._graphwise_dominant_layer_config import GraphWiseDominantLayerConfig
from ._graphw... | PypiClean |
/Jalapeno-Lite-0.1.3.tar.gz/Jalapeno-Lite-0.1.3/Jalapeno_data/Sites/first/Pages/blog/16.md | title: 数据可视化(2):五种基本图形
date: 2016-11-24
tag: Python数据可视化
[TOC]
<!--Sidebar-->
上一次通过一个简单例子学习了图形的基本绘制方法,这次我们通过农企(AMD)的数据来学习五种基本图形的绘制
##工具准备
- AMD股票数据(Nov 21,2015 - Nov 21,2016),[下载](http://chart.finance.yahoo.com/table.csv?s=AMD&a=10&b=21&c=2015&d=10&e=21&f=2016&g=d&ignore=.csv)
- S&P500同期指数,[下载](http://chart.fin... | PypiClean |
/burin-0.1.0.tar.gz/burin-0.1.0/docs/loggers.rst | .. currentmodule:: burin
===========================
Loggers and Logger Adapters
===========================
:class:`BurinLogger` instances are what actually handle and process logging
events. Each logger will have a unique name and can have its own handlers,
formatters, and message style.
Loggers also exist in a h... | PypiClean |
/fedml-afaf-0.7.327.tar.gz/fedml-afaf-0.7.327/fedml/cross_silo/client/fedml_trainer.py | import logging
import time
from fedml.data import split_data_for_dist_trainers
from ...constants import FEDML_CROSS_SILO_SCENARIO_HIERARCHICAL
from ...core.mlops.mlops_profiler_event import MLOpsProfilerEvent
class FedMLTrainer(object):
def __init__(
self,
client_index,
train_data_local_d... | PypiClean |
/pytube_local_0813-0.6.0-py3-none-any.whl/pytube/streams.py | import logging
import os
from math import ceil
from datetime import datetime
from typing import BinaryIO, Dict, Optional, Tuple
from urllib.error import HTTPError
from urllib.parse import parse_qs
from pytube import extract, request
from pytube.helpers import safe_filename, target_directory
from pytube.itags import g... | PypiClean |
/tornado-gcp-6.1.3.tar.gz/tornado-gcp-6.1.3/tornado/autoreload.py | import os
import sys
# sys.path handling
# -----------------
#
# If a module is run with "python -m", the current directory (i.e. "")
# is automatically prepended to sys.path, but not if it is run as
# "path/to/file.py". The processing for "-m" rewrites the former to
# the latter, so subsequent executions won't have ... | PypiClean |
/flask_batteries-0.0.0-py3-none-any.whl/flask_batteries/commands/generate.py | import click
import os
@click.group(help="Commands for generating files")
def generate():
pass
route_template = """from flask import render_template
from flask.views import MethodView
class {camel_name}(MethodView):
def get(self):
return render_template("{name}.html")
{name}_view = {camel_name}.a... | PypiClean |
/MMLlib-1.4-py3-none-any.whl/mmllib/playlist.py | def estimate_duration(track):
""" Calculate playback length of a list of (frequency, duration) tuples
This function looks at all the tuples in a playback list and estimates
the playback duration by adding up the durations.
track - the playlist
Returns the estimated duration in seconds.
"""
... | PypiClean |
/paradoxdjango-0.0.7.tar.gz/paradoxdjango-0.0.7/django/utils/regex_helper.py | import re
from django.utils.functional import SimpleLazyObject
# Mapping of an escape character to a representative of that class. So, e.g.,
# "\w" is replaced by "x" in a reverse URL. A value of None means to ignore
# this sequence. Any missing key is mapped to itself.
ESCAPE_MAPPINGS = {
"A": None,
"b": Non... | PypiClean |
/bmlx-argo-workflows-1.0.5.tar.gz/bmlx-argo-workflows-1.0.5/docs/V1alpha1WorkflowStep.md | # V1alpha1WorkflowStep
WorkflowStep is a reference to a template to execute in a series of step
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**arguments** | [**V1alpha1Arguments**](V1alpha1Arguments.md) | | [optional]
**continue_on** | [**V1alpha1Contin... | PypiClean |
/formification-1.2.0-py3-none-any.whl/formulaic/static/admin/formulaic/ember-formulaic/node_modules/bower/lib/node_modules/readable-stream/README.md | # readable-stream
***Node-core v6.3.1 streams for userland*** [](https://travis-ci.org/nodejs/readable-stream)
[](https://nodei.co/npm/readable-stream/)
[![N... | PypiClean |
/BxModels-0.4.0-py3-none-any.whl/bxmodels/bayes/utils.py |
import math
import torch
def log_normal(x, means, covars):
"""
Computes the log-probability of the given data for multiple multivariate normal distributions
defined by their means and covariances.
Parameters:
-----------
- x: torch.Tensor [N, D]
The data to compute the log-probability... | PypiClean |
/vioneta-2023.7.3.tar.gz/vioneta-2023.7.3/homeassistant/components/zwave_js/discovery_data_template.py | from __future__ import annotations
from collections.abc import Iterable, Mapping
from dataclasses import dataclass, field
import logging
from typing import Any, cast
from zwave_js_server.const import CommandClass
from zwave_js_server.const.command_class.energy_production import (
EnergyProductionParameter,
En... | PypiClean |
/onshape_client-1.6.3-py3-none-any.whl/onshape_client/oas/models/bt_bounding_box1052.py | from __future__ import absolute_import
import re # noqa: F401
import sys # noqa: F401
import six # noqa: F401
import nulltype # noqa: F401
from onshape_client.oas.model_utils import ( # noqa: F401
ModelComposed,
ModelNormal,
ModelSimple,
date,
datetime,
file_type,
int,
none_type,
... | PypiClean |
/pmd-beamphysics-0.5.6.tar.gz/pmd-beamphysics-0.5.6/pmd_beamphysics/plot.py | from pmd_beamphysics.units import nice_array, nice_scale_prefix
from pmd_beamphysics.labels import mathlabel
from .statistics import slice_statistics
import matplotlib.pyplot as plt
import matplotlib
from matplotlib.gridspec import GridSpec
import numpy as np
from copy import copy
CMAP0 = copy(plt.get_cmap('viridis'... | PypiClean |
/neo3-boa-1.0.1.tar.gz/neo3-boa-1.0.1/boa3/builtin/nativecontract/neo.py | __all__ = [
'NEO',
]
from typing import Any, List, Tuple
from boa3.builtin.contract import NeoAccountState
from boa3.builtin.interop.iterator import Iterator
from boa3.builtin.type import ECPoint, UInt160
class NEO:
"""
A class used to represent the NEO native contract.
Check out `Neo's Documentat... | PypiClean |
/zone_api-0.2.1.tar.gz/zone_api-0.2.1/src/zone_api/core/actions/range_violation_alert.py | from zone_api.alert import Alert
from zone_api.core.immutable_zone_manager import ImmutableZoneManager
class RangeViolationAlert:
"""
Given a valid value range, track the state of the value, and send an warning
alert when the value is out of range. Send another info alert when the
value is back to the... | PypiClean |
/carefree-learn-0.4.7.tar.gz/carefree-learn-0.4.7/cflearn/api/cv/third_party/iharm/model/modeling/deeplab_v3.py | import torch
import torch.nn as nn
import torch.nn.functional as F
from contextlib import ExitStack
from .resnet import ResNetBackbone
from .basic_blocks import select_activation_function
from .basic_blocks import SeparableConv2d
class DeepLabV3Plus(nn.Module):
def __init__(
self,
backbone="res... | PypiClean |
/apip-0.2.0.tar.gz/apip-0.2.0/docs/quickstart.rst | Quickstart
==========
This page gives a quickstart guide to the basic features of the library.
It assumes you have the library already installed. If not, check the :doc:`installation`
portion.
A minimal example
-----------------
This will showcase a simple example and show the basic usage of the library.
.. code-blo... | PypiClean |
/ui/docs/javascript/card-widget.md | ---
layout: page
title: Card Widget Plugin
---
The card widget plugin provides the functionality for collapsing, expanding and removing a card.
##### Usage
This plugin can be activated as a jQuery plugin or using the data api.
###### Data API
{: .text-bold }
This plugin provides two data-api attributes. Any eleme... | PypiClean |
/zulip_term-0.7.0-py3-none-any.whl/zulipterminal/core.py | import itertools
import os
import signal
import sys
import time
import webbrowser
from collections import OrderedDict
from functools import partial
from platform import platform
from types import TracebackType
from typing import Any, Dict, List, Optional, Tuple, Type, Union
import pyperclip
import urwid
import zulip
f... | PypiClean |
/revolt_baidu.py-0.0.5.tar.gz/revolt_baidu.py-0.0.5/revolt/ext/commands/client.py | from __future__ import annotations
import sys
import traceback
from importlib import import_module
from typing import (TYPE_CHECKING, Any, Optional, Protocol, TypeVar, Union,
overload, runtime_checkable)
from typing_extensions import Self
import revolt
if TYPE_CHECKING:
from .help import Hel... | PypiClean |
/mwtextextractor-0.1.3.tar.gz/mwtextextractor-0.1.3/README.rst | mwtextextractor
===================
.. image:: https://travis-ci.org/danmichaelo/mwtextextractor.png?branch=master
:target: https://travis-ci.org/danmichaelo/mwtextextractor
.. image:: https://coveralls.io/repos/danmichaelo/mwtextextractor/badge.png
:target: https://coveralls.io/r/danmichaelo/mwtextextractor
mw... | PypiClean |
/nni_yds-0.3.7-py3-none-any.whl/nni_yds-0.3.7.data/data/nni/node_modules/rx/ts/rx.aggregates.es6.d.ts | declare module Rx {
export interface Observable<T> {
/**
* Applies an accumulator function over an observable sequence, returning the result of the aggregation as a single element in the result sequence. The specified seed value is used as the initial accumulator value.
* For aggregation ... | PypiClean |
/RegexAnalyzer-0.0.1-py3-none-any.whl/security/mutations.py |
import re
import time
import random
import statistics
import root_pb2
import config
from timing import match_time
# changes "iterations" number of characters to random other characters
def single_char_mutate(string, characters, iterations):
new_string = list(string)
for i in range(iterations):
str... | PypiClean |
/cohesity-sdk-1.1.0.tar.gz/cohesity-sdk-1.1.0/cohesity_sdk/cluster/model/common_recovery_request_paramsae1b0dbe35e54e869ddd_fd34af026fcb_recover_azure_params_wrapper_all_of.py | import re # noqa: F401
import sys # noqa: F401
from cohesity_sdk.cluster.model_utils import ( # noqa: F401
ApiTypeError,
ModelComposed,
ModelNormal,
ModelSimple,
cached_property,
change_keys_js_to_python,
convert_js_args_to_python_args,
date,
datetime,
file_type,
none_typ... | PypiClean |
/mr.cabot-1.0.zip/mr.cabot-1.0/src/mr/cabot/github.py | import json
import os
import re
import urllib2
import ggeocoder
from zope.component import getUtility
from mr.cabot.interfaces import IUserDatabase
from mr.cabot.git import GitRepo
from mr.cabot.users import User
from mr.cabot.sebastian import logger
LINKS = re.compile("<(.*?)>; rel=\"(.*?)\",?")
ALREADY_FOUND = se... | PypiClean |
/castellum-pseudonyms-0.0.1.tar.gz/castellum-pseudonyms-0.0.1/README.md | # Castellum Pseudonyms
Algorithms to generate, validate, and normalize pseudonyms.
This is part of the [castellum
project](https://www.mpib-berlin.mpg.de/research-data/castellum).
## Installation
pip install castellum-pseudonyms
## Usage
from castellum_pseudonyms import generate, clean
# generate a n... | PypiClean |
/hier-config-2.2.2.tar.gz/hier-config-2.2.2/hier_config/options.py | base_options: dict = {
"style": None,
"sectional_overwrite": [],
"sectional_overwrite_no_negate": [],
"ordering": [],
"indent_adjust": [],
"parent_allows_duplicate_child": [],
"sectional_exiting": [],
"full_text_sub": [],
"per_line_sub": [],
"idempotent_commands_blacklist": [],
... | PypiClean |
/kdp-api-python-client-internal-4.53.0.tar.gz/kdp-api-python-client-internal-4.53.0/kdp_api/model/source_types_list.py | import re # noqa: F401
import sys # noqa: F401
from kdp_api.model_utils import ( # noqa: F401
ApiTypeError,
ModelComposed,
ModelNormal,
ModelSimple,
cached_property,
change_keys_js_to_python,
convert_js_args_to_python_args,
date,
datetime,
file_type,
none_type,
valida... | PypiClean |
/compassionai-garland-0.2.1.tar.gz/compassionai-garland-0.2.1/src/cai_garland/data/parallel_dataset_prep.py | import logging
import re
import os
import sys
import math
import pickle
import shutil
import random
from itertools import zip_longest
import hydra
from hydra.utils import instantiate
from tqdm import tqdm
from colorama import init as init_colorama, Fore as ForeColor
from dask.distributed import Client, LocalCluster
f... | PypiClean |
/sknrf-core-1.1.1.tar.gz/sknrf-core-1.1.1/sknrf/device/instrument/auxiliary/base.py | from sknrf.device import AbstractDevice
from sknrf.enums.device import Response, rid2b, rid2p
from sknrf.settings import Settings
from sknrf.utilities.numeric import Info, PkAvg, Format
class NoAux(AbstractDevice):
signal_list = []
transforms_list = []
display_order = []
def __new__(cls, error_model,... | PypiClean |
/bluesky-simulator-2022.12.22.tar.gz/bluesky-simulator-2022.12.22/bluesky/ui/qtgl/mainwindow.py | from pathlib import Path
import platform
try:
from PyQt5.QtWidgets import QApplication as app
from PyQt5.QtCore import Qt, pyqtSlot, QTimer, QItemSelectionModel, QSize
from PyQt5.QtGui import QPixmap, QIcon
from PyQt5.QtWidgets import QMainWindow, QSplashScreen, QTreeWidgetItem, \
QPushButton, ... | PypiClean |
/beem-blurt-0.24.24.tar.gz/beem-blurt-0.24.24/beembase/ledgertransactions.py | from beemgraphenebase.unsignedtransactions import Unsigned_Transaction as GrapheneUnsigned_Transaction
from .operations import Operation
from beemgraphenebase.chains import known_chains
from beemgraphenebase.py23 import py23_bytes
from beemgraphenebase.account import PublicKey
from beemgraphenebase.types import (
A... | PypiClean |
/cosapp_lab-0.16.0-py3-none-any.whl/cosapp_lab/widgets/legacy/data.py | from enum import Enum
from typing import Any, Dict, Iterable, List, Optional, Union
import numpy as np
import pandas as pd
try:
import plotly.graph_objs as go
except:
go = None
from ipywidgets import Button, Dropdown, HBox, HTML, IntSlider, Layout, Output, VBox
from traitlets import List, Unicode, observe
fr... | PypiClean |
/ovspy-0.1.0b1.tar.gz/ovspy-0.1.0b1/README.md | # ovspy
Open vSwitch Library written in Python
[ovspy · PyPI](https://pypi.org/project/ovspy/)
## Supported Operation
- Bridge
- Get(name, uuid, port)
- Add
- Delete
- Port
- Get(name, uuid, vlan)
- Add(with VLAN)
- Delete
## install
```
pip install ovspy
```
## Getting Started
### Configure Open vSw... | PypiClean |
/mastquery-1.7.1.tar.gz/mastquery-1.7.1/README.md | # MASTQUERY
User-friendly tools for using the MAST Mashup API (https://mast.stsci.edu/api/v0/index.html)
## Installation:
# From PIP
pip install mastquery
# *OR* from latest version of the respository
git clone https://github.com/gbrammer/mastquery.git
cd mastquery
pip install .
## ... | PypiClean |
/megadetector-5.0.0.tar.gz/megadetector-5.0.0/archive/active_learning/DL/losses.py | import torch
import torch.nn as nn
import torch.nn.functional as F
from torch.autograd import Variable
class FocalLoss(nn.Module):
def __init__(self, gamma=0, alpha=None, size_average=True):
super(FocalLoss, self).__init__()
self.gamma = gamma
self.alpha = alpha
if isinstance(alpha,... | PypiClean |
/SimpleAudioIndexer-1.0.0.tar.gz/SimpleAudioIndexer-1.0.0/docs/source/index.rst | .. Simple Audio Indexer documentation master file, created by
sphinx-quickstart on Mon Jan 30 20:52:30 2017.
You can adapt this file completely to your liking, but it should at least
contain the root `toctree` directive.
Welcome to Simple Audio Indexer's documentation!
========================================... | PypiClean |
/kpireport-static-0.1.1.tar.gz/kpireport-static-0.1.1/kpireport_static/output.py | import shutil
import tempfile
import os
import imgkit
from jinja2 import Markup
from kpireport.output import OutputDriver
import logging
LOG = logging.getLogger(__name__)
class StaticOutputDriver(OutputDriver):
"""Export a report's contents to disk.
Attributes:
output_dir (str): the directory to ... | PypiClean |
/alipay_sdk_python-3.6.740-py3-none-any.whl/alipay/aop/api/domain/AlipayCommerceMedicalIndustrydataInquirydoctorstatusUploadModel.py | import json
from alipay.aop.api.constant.ParamConstants import *
from alipay.aop.api.domain.InqueryDoctorStatusData import InqueryDoctorStatusData
class AlipayCommerceMedicalIndustrydataInquirydoctorstatusUploadModel(object):
def __init__(self):
self._doctor_status_list = None
self._platform_cod... | PypiClean |
/amundsen_databuilder_azure-2.6.5-py3-none-any.whl/databuilder/models/table_metadata.py | import copy
from collections import namedtuple
from six import string_types
from typing import Iterable, Any, Union, Iterator, Dict, Set # noqa: F401
from databuilder.models.cluster import cluster_constants
from databuilder.models.neo4j_csv_serde import (
Neo4jCsvSerializable, NODE_LABEL, NODE_KEY, RELATION_STAR... | PypiClean |
/MetaFEDOT-0.0.5.tar.gz/MetaFEDOT-0.0.5/meta_automl/data_preparation/meta_features_extractors/pymfe_extractor.py | from __future__ import annotations
import logging
from typing import List, Union, Dict, Any
import pandas as pd
from pymfe.mfe import MFE
from meta_automl.data_preparation.dataset import DatasetBase, DatasetIDType
from meta_automl.data_preparation.datasets_loaders import DatasetsLoader, OpenMLDatasetsLoader
from met... | PypiClean |
/django-fperms-0.4.8.tar.gz/django-fperms-0.4.8/fperms/managers.py | import operator
from functools import partialmethod, reduce
from django.db import models
from django.db.models import Q
from fperms import get_perm_model, enums
from fperms.conf import settings
from fperms.utils import get_perm
PERM_USER_SLUG = 'users'
PERM_GROUP_SLUG = 'fgroups'
class PermManagerMetaclass(type)... | PypiClean |
/django-sec-0.5.3.tar.gz/django-sec-0.5.3/django_sec/south_migrations/0005_auto__add_field_company_min_date__add_field_company_max_date.py | from south.utils import datetime_utils as 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 'Company.min_date'
db.add_column(u'django_sec_company', 'min_date',
... | PypiClean |
/ensmallen_graph-0.6.0-cp37-cp37m-manylinux2010_x86_64.whl/ensmallen_graph/datasets/string/dermacoccusspellin185.py | from typing import Dict
from ..automatic_graph_retrieval import AutomaticallyRetrievedGraph
from ...ensmallen_graph import EnsmallenGraph # pylint: disable=import-error
def DermacoccusSpEllin185(
directed: bool = False,
verbose: int = 2,
cache_path: str = "graphs/string",
**additional_graph_kwargs: ... | PypiClean |
/odetoolbox-2.5.3-py3-none-any.whl/odetoolbox-2.5.3.dist-info/LICENSE.md | GNU General Public License
==========================
_Version 2, June 1991_
_Copyright © 1989, 1991 Free Software Foundation, Inc.,_
_51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA_
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
... | PypiClean |
/ansible-8.3.0-py3-none-any.whl/ansible_collections/fortinet/fortios/plugins/modules/fortios_log_custom_field.py | from __future__ import absolute_import, division, print_function
# Copyright: (c) 2022 Fortinet
# GNU General Public License v3.0+ (see LICENSE or https://www.gnu.org/licenses/gpl-3.0.txt)
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as... | PypiClean |
/bitsmiths-fura-2.2.3.tar.gz/bitsmiths-fura-2.2.3/bs_fura/db/tables/iusr_auth_delete_by_site.py |
import datetime
import uuid
import time
import dataclasses
import typing
import mettle.io
import mettle.db
@dataclasses.dataclass(slots=True)
class iUsrAuthDeleteBySite(mettle.io.ISerializable):
site_id: int = dataclasses.field(default=0, compare=False)
def clear(self):
"""
Clears all member... | PypiClean |
/amlopschat-1.1.9.tar.gz/amlopschat-1.1.9/README.md | # Vue 3 + TypeScript + Vite
This template should help get you started developing with Vue 3 and TypeScript in Vite. The template uses Vue 3 `<script setup>` SFCs, check out the [script setup docs](https://v3.vuejs.org/api/sfc-script-setup.html#sfc-script-setup) to learn more.
## Recommended IDE Setup
- [VS Code](htt... | PypiClean |
/hammerhead-0.0.1.tar.gz/hammerhead-0.0.1/README.rst | ===============================
Hammerhead
===============================
.. image:: https://img.shields.io/pypi/v/hammerhead.svg
:target: https://pypi.python.org/pypi/hammerhead
.. image:: https://img.shields.io/travis/sieben/hammerhead.svg
:target: https://travis-ci.org/sieben/hammerhead
.. image... | PypiClean |
/ixnetwork_restpy-1.1.10.tar.gz/ixnetwork_restpy-1.1.10/ixnetwork_restpy/testplatform/sessions/ixnetwork/vport/protocols/interface_37df5f42aa73fde04b7d1b8fd94eb580.py | import sys
from ixnetwork_restpy.base import Base
from ixnetwork_restpy.files import Files
if sys.version_info >= (3, 5):
from typing import List, Any, Union
class Interface(Base):
"""
The Interface class encapsulates a list of interface resources that are managed by the user.
A list of resources can... | PypiClean |
/soda-core-duckdb-3.0.48.tar.gz/soda-core-duckdb-3.0.48/soda/data_sources/duckdb_data_source.py |
import logging
from typing import List, Optional
from soda.common.exceptions import DataSourceConnectionError
from soda.common.logs import Logs
from soda.execution.data_source import DataSource
from soda.execution.data_type import DataType
logger = logging.getLogger(__name__)
class DuckDBCursor:
def __init__(s... | PypiClean |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.