id stringlengths 1 8 | text stringlengths 6 1.05M | dataset_id stringclasses 1
value |
|---|---|---|
/sas-frontend-20211225.2.tar.gz/sas-frontend-20211225.2/sas_frontend/frontend_es5/1d2fdfd7.js | "use strict";(self.webpackChunksas_frontend=self.webpackChunksas_frontend||[]).push([[9021],{24673:function(e,t,r){r(53918),r(8878),r(53973),r(51095);var n,i,o,a=r(37500),s=r(26767),c=r(5701),l=r(47181);function u(e){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:funct... | PypiClean |
/Nuitka_fixed-1.1.2-cp310-cp310-win_amd64.whl/nuitka/tree/ComplexCallHelperFunctions.py | from nuitka.nodes.AttributeNodes import (
ExpressionAttributeCheck,
makeExpressionAttributeLookup,
)
from nuitka.nodes.BuiltinDictNodes import ExpressionBuiltinDict
from nuitka.nodes.BuiltinIteratorNodes import ExpressionBuiltinIter1
from nuitka.nodes.BuiltinNextNodes import ExpressionBuiltinNext1
from nuitka.n... | PypiClean |
/hub-rest-client-0.1.5.tar.gz/hub-rest-client-0.1.5/hub_rest_client/api/default/get_organizations_organization_id_own_users.py | from typing import Any, Dict, Optional, Union
import httpx
from ...client import AuthenticatedClient
from ...models import own_users_page as own_users_page_m
from ...types import UNSET, Response, Unset
def _get_kwargs(
organization_id: "str",
*,
client: AuthenticatedClient,
fields: "Union[Unset, Non... | PypiClean |
/lbrlabs_pulumi_scaleway-1.10.0a1687249042.tar.gz/lbrlabs_pulumi_scaleway-1.10.0a1687249042/lbrlabs_pulumi_scaleway/get_function_namespace.py |
import copy
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from . import _utilities
__all__ = [
'GetFunctionNamespaceResult',
'AwaitableGetFunctionNamespaceResult',
'get_function_namespace',
'get_function_namespace_output',
]
@... | PypiClean |
/cvxpy_base-1.3.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl/cvxpy/reductions/solution.py | import numpy as np
import cvxpy.settings as s
INF_OR_UNB_MESSAGE = """
The problem is either infeasible or unbounded, but the solver
cannot tell which. Disable any solver-specific presolve methods
and re-solve to determine the precise problem status.
For GUROBI and CPLEX you can automatically perform... | PypiClean |
/marbl_python-2.0.3-py3-none-any.whl/marbl.py |
# __ __ _ _ _____ _ _
# | \/ | | | | | | __ \ | | | |
# | \ / | __ _ _ __| |__ | | ____ | |__) | _| |_| |__ ___ _ __
# | |\/| |/ _` | '__| '_ \| ||____|| ___/ | | | __| '_ \ / _ \| '_ \
# | | | | (_| | | | |_) | | | | | |_| | |_| | | | (_) | | | |
... | PypiClean |
/skytime-0.16.1-py3-none-any.whl/build/lib/build/lib/build/lib/build/lib/build/lib/sktime/benchmarking/experiments.py | __author__ = ["TonyBagnall"]
__all__ = [
"run_clustering_experiment",
"load_and_run_clustering_experiment",
"run_classification_experiment",
"load_and_run_classification_experiment",
]
import os
import time
from datetime import datetime
import numpy as np
from sklearn import preprocessing
from sklear... | PypiClean |
/sympy.keras-1.0.23.tar.gz/sympy.keras-1.0.23/sympy/core/trace.py | from sympy import Expr, Add, Mul, Pow, sympify, Matrix, Tuple
from sympy.utilities import default_sort_key
def _is_scalar(e):
""" Helper method used in Tr"""
# sympify to set proper attributes
e = sympify(e)
if isinstance(e, Expr):
if (e.is_Integer or e.is_Float or
e.is_Rational ... | PypiClean |
/lijin_distributions-0.1.tar.gz/lijin_distributions-0.1/lijin_distributions/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 |
/osp-core-3.9.0.tar.gz/osp-core-3.9.0/osp/core/ontology/installation.py |
import glob
import logging
import os
import shutil
import sys
import tempfile
from typing import Dict, Set
from osp.core.ontology.parser.parser import OntologyParser
logger = logging.getLogger(__name__)
logger.setLevel(logging.INFO)
class OntologyInstallationManager:
"""This class handles the installation of o... | PypiClean |
/custos-python-sdk-1.0.0.tar.gz/custos-python-sdk-1.0.0/custos/server/core/TenantProfileService_pb2_grpc.py | import grpc
import TenantProfileService_pb2 as TenantProfileService__pb2
class TenantProfileServiceStub(object):
# missing associated documentation comment in .proto file
pass
def __init__(self, channel):
"""Constructor.
Args:
channel: A grpc.Channel.
"""
self.addTenant = channel.unary_... | PypiClean |
/mxnet_cu113-1.9.1-py3-none-manylinux2014_x86_64.whl/mxnet/optimizer/optimizer.py |
# pylint: disable=too-many-lines
"""Weight updating functions."""
import logging
import math
import pickle
import warnings
import os
import numpy
from ..base import py_str
from ..ndarray import (NDArray, zeros, clip, sqrt, cast, maximum, abs as NDabs, array, multiply,
multi_sum_sq, multi_lars, n... | PypiClean |
/InquirerPy-0.3.4-py3-none-any.whl/InquirerPy/prompts/rawlist.py | from typing import Any, Callable, List, Optional, Tuple, Union
from InquirerPy.base import InquirerPyUIListControl
from InquirerPy.enum import INQUIRERPY_POINTER_SEQUENCE
from InquirerPy.exceptions import InvalidArgument
from InquirerPy.prompts.list import ListPrompt
from InquirerPy.separator import Separator
from Inq... | PypiClean |
/Renoir-HAML-1.0.0.tar.gz/Renoir-HAML-1.0.0/README.md | # Renoir-HAML
Renoir-HAML is an extension for the [Renoir engine](https://github.com/emmett-framework/renoir) providing an HAML like syntax for templates. This is not a template engine but a compiler which converts HAML files to HTML Renoir templates.
[{var n="top",r="right",i="bottom",s="left",o="external",u="horizontal",a="vertical",f="width",l="height",c="position",h="x",p="y",d="px",v,m={setter:function(t){var n=this.get("legend");return n&&n.destroy(!0),t instanceof e.ChartLegend?(n=t,n.set("chart",this)):(t.chart=this,t.hasO... | PypiClean |
/example-pkg-hnzhu0105-0.0.1.tar.gz/example-pkg-hnzhu0105-0.0.1/example_pkg/poco/drivers/android/uiautomation.py | __author__ = 'lxn3032'
import os
import requests
import time
import warnings
import threading
import atexit
from airtest.core.api import connect_device, device as current_device
from airtest.core.android.ime import YosemiteIme
from airtest.core.error import AdbShellError, AirtestError
from hrpc.client import RpcCli... | PypiClean |
/pyre-check-nightly-0.0.101676722248.tar.gz/pyre-check-nightly-0.0.101676722248/pyre_check/client/configuration/unwatched.py | import dataclasses
from typing import Dict
from . import exceptions
@dataclasses.dataclass(frozen=True)
class UnwatchedFiles:
root: str
checksum_path: str
@staticmethod
def from_json(json: Dict[str, object]) -> "UnwatchedFiles":
root = json.get("root", None)
if root is None:
... | PypiClean |
/open-helpdesk-0.4.4.tar.gz/open-helpdesk-0.4.4/openhelpdesk/static/openhelpdesk/js/lib/tiny_mce/plugins/wordcount/editor_plugin_src.js | (function() {
tinymce.create('tinymce.plugins.WordCount', {
block : 0,
id : null,
countre : null,
cleanre : null,
init : function(ed, url) {
var t = this, last = 0;
t.countre = ed.getParam('wordcount_countregex', /[\w\u2019\'-]+/g); // u2019 == ’
t.cleanre = ed.getParam('wordcount_cleanregex... | PypiClean |
/vioneta-2023.7.3.tar.gz/vioneta-2023.7.3/homeassistant/components/media_player/__init__.py | from __future__ import annotations
import asyncio
import collections
from collections.abc import Callable
from contextlib import suppress
from dataclasses import dataclass
import datetime as dt
import functools as ft
import hashlib
from http import HTTPStatus
import logging
import secrets
from typing import Any, Final... | PypiClean |
/pytorch_extension-0.2-py3-none-any.whl/apex/RNN/models.py | import torch
from torch.nn._functions.rnn import LSTMCell, RNNReLUCell, RNNTanhCell, GRUCell
from .RNNBackend import bidirectionalRNN, stackedRNN, RNNCell
from .cells import mLSTMRNNCell, mLSTMCell
def toRNNBackend(inputRNN, num_layers, bidirectional=False, dropout = 0):
"""
:class:`toRNNBackend`
"""
... | PypiClean |
/cn_hyperarr-0.0.1.tar.gz/cn_hyperarr-0.0.1/docs/build/html/_static/jax/output/PlainSource/jax.js | (function(a,b,f,c){var e,g,d;c.Augment({settings:b.config.menuSettings,Config:function(){if(!this.require){this.require=[]}this.SUPER(arguments).Config.call(this);this.require.push(MathJax.OutputJax.extensionDir+"/MathEvents.js")},Startup:function(){e=MathJax.Extension.MathEvents.Event;g=MathJax.Extension.MathEvents.To... | PypiClean |
/qase-xctest-1.0.4.tar.gz/qase-xctest-1.0.4/README.md | # Qase XCTest Utils
## How to install
`pip install qase-xctest`
## How to use
### For XCode
`--api_token YOUR_API_TOKEN` - Api token for qase api. Get api token [here](https://app.qase.io/user/api/token).
`--project_code YOUR_PROJECT_CODE` - You can find project code [here](https://app.qase.io/projects).
`--buil... | PypiClean |
/pygoogle_image-1.0.0.tar.gz/pygoogle_image-1.0.0/README.md | # pygoogle_image
### Pygoogle_image extracts images from google image, allowing you to download as many images as you like with just one keyword. Let's exemplify how to download images from google images for you.</br>
### first import the package</br>
```
pip install pygoogle-image
```
### in the example below we wi... | PypiClean |
/datalad-0.19.2.tar.gz/datalad-0.19.2/docs/source/modref.rst | .. -*- mode: rst -*-
.. vi: set ft=rst sts=4 ts=4 sw=4 et tw=79:
.. _chap_modref:
***********************
Python module reference
***********************
This module reference extends the manual with a comprehensive overview of the
available functionality built into datalad. Each module in the package is
documented... | PypiClean |
/CleanAdminDjango-1.5.3.1.tar.gz/CleanAdminDjango-1.5.3.1/django/contrib/gis/geos/collections.py | from ctypes import c_int, c_uint, byref
from django.contrib.gis.geos.error import GEOSException
from django.contrib.gis.geos.geometry import GEOSGeometry
from django.contrib.gis.geos.libgeos import get_pointer_arr, GEOS_PREPARE
from django.contrib.gis.geos.linestring import LineString, LinearRing
from django.contrib.gi... | PypiClean |
/ansible-8.3.0-py3-none-any.whl/ansible_collections/fortinet/fortios/plugins/modules/fortios_emailfilter_options.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 |
/bp-pysnmp-4.4.3.tar.gz/bp-pysnmp-4.4.3/docs/source/docs/snmp-history.rst |
.. toctree::
:maxdepth: 2
SNMP history
============
In the early days of networking, when computer networks were research
artifacts rather than a critical infrastructure used by almost every
second human on Earth, "network management" was practically unknown.
Whenever one encountered a network problem, he might r... | PypiClean |
/hwmux_client_python-2.22.1-py3-none-any.whl/hwmux_client/model/light_device.py | import re # noqa: F401
import sys # noqa: F401
from hwmux_client.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,
v... | PypiClean |
/dagworks-sdk-0.0.15.tar.gz/dagworks-sdk-0.0.15/src/dagworks/tracking/polars_stats.py |
from typing import Dict, Any
import polars as pl
from hamilton import base
from hamilton import driver
from dagworks.tracking import polars_col_stats as pls
from dagworks.tracking import stats
"""Module that houses functions to compute statistics on polars series/dataframes.
Notes:
- we should assume a minimum polar... | PypiClean |
/accel-brain-base-1.1.0.tar.gz/accel-brain-base-1.1.0/accelbrainbase/observabledata/_mxnet/transformermodel/transformer_encoder.py | from accelbrainbase.observabledata._mxnet.transformer_model import TransformerModel
from accelbrainbase.observabledata._mxnet.attention_model import AttentionModel
from accelbrainbase.observabledata._mxnet.attentionmodel.multiheadattentionmodel.self_attention_model import SelfAttentionModel
from accelbrainbase.computab... | PypiClean |
/yunpian-sdk-python-0.0.8.tar.gz/yunpian-sdk-python-0.0.8/yunpian/test/YunpianRestTest.py |
__author__ = 'bingone'
from yunpian.SmsOperator import SmsOperator
from yunpian.VoiceOperator import VoiceOperator
from yunpian.TplOperator import TplOperator
from yunpian.UserOperator import UserOperator
from yunpian.FlowOperator import FlowOperator
from yunpian.Tea import Tea
import sys
import json
reload(sys)
sys.... | PypiClean |
/PythonSpaceo-0.0.1.tar.gz/PythonSpaceo-0.0.1/authentication/serializers.py | import email
from email import message
from email.policy import default
from ensurepip import version
from enum import unique
from lib2to3.pgen2 import token
from statistics import mode
from attr import field, fields
from django.contrib import auth
from django.contrib.auth.password_validation import validate_password
f... | PypiClean |
/arcticpy-2.4.tar.gz/arcticpy-2.4/tst_pixel_bounce.py | import numpy as np
import arcticpy
import time
import matplotlib.pyplot as plt
import tty
import sys
import termios
np.set_printoptions(linewidth=205, edgeitems=56, suppress=True)
#
# Test pixel bounce models
#
pixel_bounce_kA = -0.1
pixel_bounce_kv = 0
pixel_bounce_omega = 10
pixel_bounce_gamma = 0.9
# pixel_bounc... | PypiClean |
/bambooapi_client-1.18.7-py3-none-any.whl/bambooapi_client/openapi/model/http401_unauthorized.py | import re # noqa: F401
import sys # noqa: F401
from bambooapi_client.openapi.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... | PypiClean |
/pulumi_azure_native-2.5.1a1693590910.tar.gz/pulumi_azure_native-2.5.1a1693590910/pulumi_azure_native/search/v20220901/get_private_endpoint_connection.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__ = [
'GetPrivateEndpointConnectionResult',
'AwaitableGetPrivateEndpointConnectionResult',
'get_private_endpoint_conne... | PypiClean |
/funkiio-1.0.1-py3-none-any.whl/homeassistant/components/bme280/sensor.py | from datetime import timedelta
from functools import partial
import logging
import voluptuous as vol
from homeassistant.components.sensor import PLATFORM_SCHEMA
import homeassistant.helpers.config_validation as cv
from homeassistant.const import (
TEMP_FAHRENHEIT, CONF_NAME, CONF_MONITORED_CONDITIONS)
from homeas... | PypiClean |
/pfgadgets-0.0.2.tar.gz/pfgadgets-0.0.2/README.md | # pfgadgets package
Description: This package is designed to assist in the use of python within the powerfactory environment
## Classes List:
- CreateSet
- FrequencySweep
- GetData
- GetObject
- GetPlot
- HarmonicLoadFlow
- LoadFlow
- ShortCircuit
## Class Description
### pfgadgets.CreateSet
*__CreateSet(setName, *a... | PypiClean |
/cloudify-dsl-parser-4.3.3.tar.gz/cloudify-dsl-parser-4.3.3/dsl_parser/parser.py |
from dsl_parser import (functions,
utils)
from dsl_parser.framework import parser
from dsl_parser.elements import blueprint
from dsl_parser.import_resolver.default_import_resolver import \
DefaultImportResolver
def parse_from_path(dsl_file_path,
resources_base_path=Non... | PypiClean |
/nonebot-plugin-random-0.0.9.tar.gz/nonebot-plugin-random-0.0.9/README.md | <div align="center">
<a href="https://v2.nonebot.dev/store"><img src="https://github.com/A-kirami/nonebot-plugin-template/blob/resources/nbp_logo.png" width="180" height="180" alt="NoneBotPluginLogo"></a>
<br>
<p><img src="https://github.com/A-kirami/nonebot-plugin-template/blob/resources/NoneBotPlugin.svg" width... | PypiClean |
/trains_agent-0.16.3-py3-none-any.whl/trains_agent/backend_api/session/jsonmodels/models.py | import six
from . import parsers, errors
from .fields import BaseField
from .errors import ValidationError
class JsonmodelMeta(type):
def __new__(cls, name, bases, attributes):
cls.validate_fields(attributes)
return super(cls, cls).__new__(cls, name, bases, attributes)
@staticmethod
def... | PypiClean |
/algorithms/regression/funcs.py | import string
from speedo.algorithms.regression.modules import *
from speedo.algorithms.regression.constants import Plane
NAMESPACE = 'regress_func'
UNIQUE_ID = -1
def get_unique():
global UNIQUE_ID
UNIQUE_ID += 1
return UNIQUE_ID
def get_title():
return NAMESPACE + str(get_unique())
class Line... | PypiClean |
/plato_learn-0.5.0-py36.py37.py38.py39-none-any.whl/plato/servers/fedavg_cs.py | import asyncio
import logging
import os
import numpy as np
from plato.config import Config
from plato.datasources import registry as datasources_registry
from plato.processors import registry as processor_registry
from plato.samplers import registry as samplers_registry
from plato.samplers import all_inclusive
from pl... | PypiClean |
/pyA20Lime2-0.2.1.tar.gz/pyA20Lime2-0.2.1/README.txt | This package provide methods for controlling GPIO pins, I2C and SPI buses.
This is written for A20-OLinuXino-LIME2, but it can be used with other boards. If you do
this we cannot guarantee proper operation of the module. Before using this
package we recommend reading the article at olimex wiki:
https://www.olimex.com/... | PypiClean |
/django-omnibus-0.2.0.tar.gz/django-omnibus-0.2.0/omnibus/pubsub.py | import json
import logging
import zmq
from zmq.error import ZMQError
from zmq.eventloop.zmqstream import ZMQStream
from zmq.eventloop import ioloop
from django.utils.encoding import force_bytes
from django.core.serializers.json import DjangoJSONEncoder
from . import exceptions as ex
from .settings import (
SUBSC... | PypiClean |
/actin-1.3.6.tar.gz/actin-1.3.6/README.md | # ACTIN 1.3.6
### Activity Indices Calculator
[](https://doi.org/10.21105/joss.00667)
[](https://doi.org/10.5281/zenodo.1478610)
Reads fits files from HARPS, HARPS-N and ESPRESSO spectr... | PypiClean |
/meta_py-0.4.0-py3-none-any.whl/metapy/tsp/init_solutions.py | from random import shuffle
import numpy as np
from metapy.evolutionary.evolutionary import AbstractPopulationGenerator
def random_tour(tour):
"""
Initial solution to tour is psuedo random
"""
rnd_tour = tour[1:len(tour)-1]
base_city = tour[0]
shuffle(rnd_tour)
rnd_tour.append(base_city)
... | PypiClean |
/python-libsbml-5.20.1.tar.gz/python-libsbml-5.20.1/libsbml_source/src/bindings/python/test/sbml/TestAssignmentRule.py |
import sys
import unittest
import libsbml
class TestAssignmentRule(unittest.TestCase):
global AR
AR = None
def setUp(self):
self.AR = libsbml.AssignmentRule(2,4)
if (self.AR == None):
pass
pass
def tearDown(self):
_dummyList = [ self.AR ]; _dummyList[:] = []; del _dummyList
... | PypiClean |
/hi-ml-0.3.4.tar.gz/hi-ml-0.3.4/src/health_ml/utils/data_augmentations.py | import cv2
import numpy as np
import torch
import torchvision.transforms.functional as TF
class HEDJitter(object):
"""
Randomly perturbe the HED color space value an RGB image.
First, it disentangled the hematoxylin and eosin color channels by color deconvolution method using a fixed matrix.
Second, ... | PypiClean |
/cognite_neat-0.25.2.tar.gz/cognite_neat-0.25.2/cognite/neat/workflows/base.py | import json
import logging
import threading
import time
import traceback
from pathlib import Path
from threading import Event
import yaml
from cognite.client import CogniteClient
from prometheus_client import Gauge
from cognite.neat.app.api.configuration import Config
from cognite.neat.app.monitoring.metrics import N... | PypiClean |
/Sookie-Django-Query-0.0.1.tar.gz/Sookie-Django-Query-0.0.1/sookie_django_query/Query.py | from sookie_django_query.BaseQuery import BaseQuery
from sookie_django_query.QueryBuilder import QueryBuilder
from sookie_django_query.DB import DB
class Query(BaseQuery):
table_prop = None
join_prop = []
select_prop = []
distinct_prop = []
selectOption_prop = None
where_prop = []
gr... | PypiClean |
/pulumi_artifactory-4.6.0a1693459609.tar.gz/pulumi_artifactory-4.6.0a1693459609/pulumi_artifactory/get_virtual_pub_repository.py |
import copy
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from . import _utilities
__all__ = [
'GetVirtualPubRepositoryResult',
'AwaitableGetVirtualPubRepositoryResult',
'get_virtual_pub_repository',
'get_virtual_pub_repository... | PypiClean |
/espnet-202308-py3-none-any.whl/espnet2/enh/layers/skim.py |
import torch
import torch.nn as nn
from espnet2.enh.layers.dprnn import SingleRNN, merge_feature, split_feature
from espnet2.enh.layers.tcn import choose_norm
class MemLSTM(nn.Module):
"""the Mem-LSTM of SkiM
args:
hidden_size: int, dimension of the hidden state.
dropout: float, dropout rat... | PypiClean |
/ipkiss24/ipkiss/primitives/fonts/standard.py |
from .. import font as _font
#----------------------------------------------------------------------------
#Standard Path Alphabet
#----------------------------------------------------------------------------
TEXT_FONT_STANDARD = _font.PathFont()
TEXT_FONT_STANDARD.ID = 0
TEXT_FONT_STANDARD.cell_size = (0.6, 1.0)
T... | PypiClean |
/infoblox-netmri-3.8.0.0.tar.gz/infoblox-netmri-3.8.0.0/infoblox_netmri/api/broker/v3_1_0/access_search_issue_type_broker.py | from ..broker import Broker
class AccessSearchIssueTypeBroker(Broker):
controller = "access_search_issue_types"
def show(self, **kwargs):
"""Shows the details for the specified access search issue type.
**Inputs**
| ``api version min:`` None
| ``api version max... | PypiClean |
/storekit_python-0.0.2.tar.gz/storekit_python-0.0.2/README_zh.md | # storekit-python
[](https://pypi.python.org/pypi/storekit-python)
[](https://github.com/xiachufang/storekit-python)
[ 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license/
*/
CKEDITOR.lang['vi']={"application":"Rich Text Editor","editor":"Bộ soạn thảo văn bản có định dạng","editorPanel":"Bảng điều khiển Rich Text Editor","common":... | PypiClean |
/webstack-django-endless-pagination-2.0.2.tar.gz/webstack-django-endless-pagination-2.0.2/doc/start.rst | Getting started
===============
Requirements
~~~~~~~~~~~~
====== ====================
Python >= 2.6 (or Python 3)
Django >= 1.3
jQuery >= 1.7
====== ====================
Installation
~~~~~~~~~~~~
The Git repository can be cloned with this command::
git clone https://github.com/frankban/django-endless-pagi... | PypiClean |
/ncscli-1.2.3.tar.gz/ncscli-1.2.3/examples/batchMode/runBatchBlender.py | import datetime
import logging
import os
import sys
import ncscli.batchRunner as batchRunner
class blenderFrameProcessor(batchRunner.frameProcessor):
'''defines details for using blender in a simple batch job'''
def installerCmd( self ):
return 'sudo apt-get -qq update && sudo apt-get -qq -y insta... | PypiClean |
/thingsboard-gateway-3.3.tar.gz/thingsboard-gateway-3.3/thingsboard_gateway/connectors/can/can_connector.py |
import re
import sched
import time
from copy import copy
from random import choice
from string import ascii_lowercase
from threading import Thread
from thingsboard_gateway.tb_utility.tb_loader import TBModuleLoader
from thingsboard_gateway.tb_utility.tb_utility import TBUtility
try:
from can import Notifier, Buf... | PypiClean |
/jupyter_declarativewidgets-0.7.0.tar.gz/jupyter_declarativewidgets-0.7.0/declarativewidgets/static/urth_components/chai/CONTRIBUTING.md | # Chai Contribution Guidelines
We like to encourage you to contribute to the Chai.js repository. This should be as easy as possible for you but there are a few things to consider when contributing. The following guidelines for contribution should be followed if you want to submit a pull request or open an issue.
Foll... | PypiClean |
/msgraph_beta_sdk-1.0.0a9-py3-none-any.whl/msgraph/generated/device_management/exchange_on_premises_policy/conditional_access_settings/conditional_access_settings_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 |
/k8srad-1.0.1.tar.gz/k8srad-1.0.1/README.md | [](https://www.yotron.de)
# Kubernetes-Ready RAD (K8SRAD)
Rapid Application Development is a software development principle to use pre-given frequently needed components of an software application to accelerate the software development
process massively.
These compon... | PypiClean |
/autosys-1.5.1.tar.gz/autosys-1.5.1/AutoSys/utils/file_utils/implore.py | """ implore.py - An even more desperate way to make requests for Humans.™ """
""" GOALS:
By creating this app, I wanted to answer these questions:
- What are the internet activities that I use or want most often?
- What are the things that are feasible, but that I cannot easily do?
Here is a list of i... | PypiClean |
/nm_transformers_nightly-1.6.0.20230829-py3-none-any.whl/transformers/models/blip_2/modeling_blip_2.py | """ PyTorch BLIP-2 model."""
import math
from dataclasses import dataclass
from typing import Any, Optional, Tuple, Union
import torch
import torch.utils.checkpoint
from torch import nn
from torch.nn import CrossEntropyLoss
from ...activations import ACT2FN
from ...modeling_outputs import (
BaseModelOutput,
... | PypiClean |
/Umbra-1.0.9.tar.gz/Umbra-1.0.9/umbra/components/addons/traceUi/views.py | #**********************************************************************************************************************
#*** Future imports.
#**********************************************************************************************************************
from __future__ import unicode_literals
#*****************... | PypiClean |
/fxq-commons-1.1.1.tar.gz/fxq-commons-1.1.1/fxq/model/country.py | from enum import Enum
class Country(Enum):
AFGHANISTAN = "AF", "AFG",
ALBANIA = "AL", "ALB",
ALGERIA = "DZ", "DZA",
AMERICAN_SAMOA = "AS", "ASM",
ANDORRA = "AD", "AND",
ANGOLA = "AO", "AGO",
ANGUILLA = "AI", "AIA",
ANTARCTICA = "AQ", "ATA",
ANTIGUA_AND_BARBUDA = "AG", "ATG",
AR... | PypiClean |
/ytdownloader-0.1.14.tar.gz/ytdownloader-0.1.14/README.rst | YoutubeDownloader
=================
**YoutubeDownloader** is an automated service to download multiple
youtube videos at a time.
About
-----
**YoutubeDownloader** is written in ``Python``. It uses
``Asynchronous Python Multiprocessing`` at its heart which facilitates
user to download more than one video at a time.
... | PypiClean |
/django_bpp-1.0.9-py3-none-any.whl/django_bpp/staticroot/parse-json/vendor/unicode.js |
// ECMAScript 5.1/Unicode v6.3.0 NonAsciiIdentifierStart:
var Uni = module.exports
module.exports.isWhiteSpace = function isWhiteSpace(x) {
// section 7.2, table 2
return x === '\u0020'
|| x === '\u00A0'
|| x === '\uFEFF' // <-- this is not a Unicode WS, only a JS one
|| (x >= '\u0009' && x <= ... | PypiClean |
/azure-cli-2.51.0.tar.gz/azure-cli-2.51.0/azure/cli/command_modules/acr/aaz/latest/network/nic/_show.py |
# pylint: skip-file
# flake8: noqa
from azure.cli.core.aaz import *
class Show(AAZCommand):
"""Get the details of a network interface.
:example: Get the internal domain name suffix of a NIC.
az network nic show -g MyResourceGroup -n MyNic --query "dnsSettings.internalDomainNameSuffix"
"""
... | PypiClean |
/fast_oad_cs25-0.3.0.tar.gz/fast_oad_cs25-0.3.0/src/fastoad_cs25/models/propulsion/fuel_propulsion/rubber_engine/rubber_engine.py | # This file is part of FAST-OAD_CS25
# Copyright (C) 2022 ONERA & ISAE-SUPAERO
# FAST is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later vers... | PypiClean |
/mage-ai-0.9.20.tar.gz/mage-ai-0.9.20/mage_ai/server/frontend_dist/_next/static/chunks/8920.5700e380a2999098.js | "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8920],{58920:function(t){t.exports=JSON.parse('{"base":"vs-dark","inherit":true,"rules":[{"background":"1B2B34","token":""},{"foreground":"65737e","token":"comment"},{"foreground":"65737e","token":"punctuation.definition.comment"},{"foreground":"cdd3... | PypiClean |
/mysql_connector_python-8.1.0-cp310-cp310-manylinux_2_17_x86_64.whl/mysql/opentelemetry/sdk/_logs/_internal/export/__init__.py |
import abc
import collections
import enum
import logging
import os
import sys
import threading
from os import environ, linesep
from time import time_ns
from typing import IO, Callable, Deque, List, Optional, Sequence
from mysql.opentelemetry.context import (
_SUPPRESS_INSTRUMENTATION_KEY,
attach,
detach,... | PypiClean |
/trixie-0.1.2.tar.gz/trixie-0.1.2/homeassistant/components/sensor/steam_online.py | import logging
import voluptuous as vol
from homeassistant.components.sensor import PLATFORM_SCHEMA
from homeassistant.helpers.entity import Entity
from homeassistant.const import CONF_API_KEY
import homeassistant.helpers.config_validation as cv
REQUIREMENTS = ['steamodd==4.21']
_LOGGER = logging.getLogger(__name__... | PypiClean |
/beancount_import-1.3.5-py3-none-any.whl/beancount_import/source/google_purchases.py | from typing import List, Any, Optional
import datetime
import os
import re
import collections
import json
import dateutil.tz
from beancount.core.number import D, ZERO
from beancount.core.data import Transaction, Posting, Amount
from . import ImportResult, SourceResults, Source, AssociatedData
from .link_based_source i... | PypiClean |
/asynkets-0.1.4.tar.gz/asynkets-0.1.4/README.md |
# asynkets
`asynkets` is a Python library which provides miscellaneous utilities that are useful when writing `asyncio` code.
Provided utilities include:
- *`Switch`*: A class that allows waiting for state changes of a switch that can be turned on or off. It provides async methods for waiting until it is in a speci... | PypiClean |
/insights-core-3.2.14.tar.gz/insights-core-3.2.14/insights/combiners/rhel_for_edge.py | from insights.core.exceptions import SkipComponent
from insights.core.plugins import combiner
from insights.parsers.cmdline import CmdLine
from insights.parsers.installed_rpms import InstalledRpms
from insights.parsers.systemd.unitfiles import ListUnits
from insights.parsers.redhat_release import RedhatRelease
from ins... | PypiClean |
/antchain_ak_160dcb91a1ea4a078490f86960f85f38-1.0.1.tar.gz/antchain_ak_160dcb91a1ea4a078490f86960f85f38-1.0.1/antchain_sdk_ak_160dcb91a1ea4a078490f86960f85f38/models.py | from Tea.model import TeaModel
class Config(TeaModel):
"""
Model for initing client
"""
def __init__(
self,
access_key_id: str = None,
access_key_secret: str = None,
security_token: str = None,
protocol: str = None,
read_timeout: int = None,
conn... | PypiClean |
/CephQeSdk-1.0.0.tar.gz/CephQeSdk-1.0.0/src/RhcsQeSdk/core/cli/radosgw_admin/reshard.py | import logging
import RhcsQeSdk.core.cli.fabfile as fabfile
logger = logging.getLogger(__name__)
logger.setLevel(logging.DEBUG)
formatter = logging.Formatter(
"%(asctime)s - %(levelname)s - %(name)s:%(lineno)d - %(message)s"
)
stream_handler = logging.StreamHandler()
stream_handler.setFormatter(formatter)
strea... | PypiClean |
/subset_nwm_netcdf-1.2.5.tar.gz/subset_nwm_netcdf-1.2.5/src/subset_nwm_netcdf/subset.py | import os
import subprocess
import shutil
import datetime
import platform
import re
import copy
import logging
import numpy
import netCDF4
import configs
logger = logging.getLogger('subset_nwm_netcdf')
default_sed_win_path = os.path.join(os.path.dirname(__file__), "static/sed_win32/sed.exe")
default_nc_templates_pat... | PypiClean |
/msgraph-sdk-1.0.0a3.tar.gz/msgraph-sdk-1.0.0a3/msgraph/generated/models/managed_app_policy_deployment_summary_per_app_collection_response.py | from __future__ import annotations
from kiota_abstractions.serialization import Parsable, ParseNode, SerializationWriter
from typing import Any, Callable, Dict, List, Optional, Union
from . import base_collection_pagination_count_response, managed_app_policy_deployment_summary_per_app
class ManagedAppPolicyDeployment... | PypiClean |
/sphinx_book_theme-1.0.1.tar.gz/sphinx_book_theme-1.0.1/docs/reference/extensions.md | # Sphinx extension styles
This page shows of some special-case styling for various Sphinx extensions.
## `sphinxcontrib-bibtex` - References and bibliographies
[`sphinxcontrib-bibtex`](https://sphinxcontrib-bibtex.readthedocs.io/en/latest/) provides support for citations and bibliographies.
Because this theme deal... | PypiClean |
/purplship.purolator_courier-2021.6rc0-py3-none-any.whl/purplship/providers/purolator_courier/units.py | from purplship.core.utils import Enum, Flag, Spec
from purplship.core.units import PackagePreset
PRESET_DEFAULTS = dict(dimension_unit="IN", weight_unit="LB")
class PackagePresets(Flag):
"""Purolator package presets
Note that dimensions are in IN and weight in LB
"""
purolator_express_envelope = Pack... | PypiClean |
/django-codenerix-4.0.24.tar.gz/django-codenerix-4.0.24/codenerix/static/codenerix/lib/angular/i18n/angular-locale_es-es.js | 'use strict';
angular.module("ngLocale", [], ["$provide", function($provide) {
var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"};
$provide.value("$locale", {
"DATETIME_FORMATS": {
"AMPMS": [
"a. m.",
"p. m."
],
"DAY": [
"domingo",
... | PypiClean |
/basedmypy-2.1.0-cp38-cp38-win_amd64.whl/mypy/reachability.py |
from __future__ import annotations
from typing import Final, Tuple, TypeVar
from mypy.literals import literal
from mypy.nodes import (
LITERAL_YES,
AssertStmt,
Block,
CallExpr,
ComparisonExpr,
Expression,
FuncDef,
IfStmt,
Import,
ImportAll,
ImportFrom,
IndexExpr,
I... | PypiClean |
/pulumi_azure_nextgen-0.6.2a1613157620.tar.gz/pulumi_azure_nextgen-0.6.2a1613157620/pulumi_azure_nextgen/web/v20201001/list_web_app_site_backups_slot.py |
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union
from ... import _utilities, _tables
from . import outputs
__all__ = [
'ListWebAppSiteBackupsSlotResult',
'AwaitableListWebAppSiteBackupsSlotResult',
'list_web_app_site_backups_slot',
]
@pulumi.o... | PypiClean |
/platform-agent-0.0.64.tar.gz/platform-agent-0.0.64/platform_agent/rerouting/rerouting.py | import threading
import time
import logging
import pyroute2
import ipaddress
import json
import re
from pyroute2 import WireGuard
from platform_agent.cmd.lsmod import module_loaded
from platform_agent.cmd.wg_info import WireGuardRead
from platform_agent.files.tmp_files import read_tmp_file
from platform_agent.routes ... | PypiClean |
/PyCBC-2.2.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl/pycbc/inference/io/multinest.py | from .base_sampler import BaseSamplerFile
class MultinestFile(BaseSamplerFile):
"""Class to handle file IO for the ``multinest`` sampler."""
name = 'multinest_file'
def write_samples(self, samples, parameters=None):
"""Writes samples to the given file.
Results are written to ``samples_g... | PypiClean |
/django-bakery-0.13.2.tar.gz/django-bakery-0.13.2/bakery/views/dates.py | import os
import logging
from fs import path
from datetime import date
from django.conf import settings
from bakery.views import BuildableMixin
from django.views.generic.dates import (
ArchiveIndexView,
YearArchiveView,
MonthArchiveView,
DayArchiveView,
)
logger = logging.getLogger(__name__)
class Bui... | PypiClean |
/cloudbase_init-1.1.4-py3-none-any.whl/cloudbaseinit/plugins/common/userdataplugins/cloudconfig.py |
from oslo_log import log as oslo_logging
import yaml
from cloudbaseinit import conf as cloudbaseinit_conf
from cloudbaseinit.plugins.common import execcmd
from cloudbaseinit.plugins.common.userdataplugins import base
from cloudbaseinit.plugins.common.userdataplugins.cloudconfigplugins import (
factory
)
CONF = ... | PypiClean |
/otxdet-0.3.2-py3-none-any.whl/mmdet/core/hook/yolox_lrupdater_hook.py | from mmcv.runner.hooks import HOOKS
from mmcv.runner.hooks.lr_updater import (CosineAnnealingLrUpdaterHook,
annealing_cos)
@HOOKS.register_module()
class YOLOXLrUpdaterHook(CosineAnnealingLrUpdaterHook):
"""YOLOX learning rate scheme.
There are two main differences b... | PypiClean |
/newthon_fixed-1.27.6.tar.gz/newthon_fixed-1.27.6/telethon/tl/types/contacts.py | from ...tl.tlobject import TLObject
from typing import Optional, List, Union, TYPE_CHECKING
import os
import struct
from datetime import datetime
if TYPE_CHECKING:
from ...tl.types import TypeChat, TypeContact, TypeImportedContact, TypePeer, TypePeerBlocked, TypePopularContact, TypeTopPeerCategoryPeers, TypeUser
... | PypiClean |
/Cibyl-1.0.0.0rc1.tar.gz/Cibyl-1.0.0.0rc1/cibyl/plugins/openstack/sources/zuul/deployments/generator.py | from dataclasses import dataclass
from typing import Any, Dict, Optional
from cibyl.plugins.openstack import Deployment
from cibyl.plugins.openstack.network import Network
from cibyl.plugins.openstack.node import Node
from cibyl.plugins.openstack.sources.zuul.deployments.arguments import \
ArgumentReview
from ciby... | PypiClean |
/comictagger-1.4.4a8.tar.gz/comictagger-1.4.4a8/comictaggerlib/issueselectionwindow.py | #
# Copyright 2012-2014 Anthony Beville
#
# 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 i... | PypiClean |
/vowpalwabbit-9.2.0.tar.gz/vowpalwabbit-9.2.0/python/docs/source/reference/vowpalwabbit.sklearn.rst |
vowpalwabbit.sklearn
====================
This is an optional module which implements `sklearn` compatability.
Deprecated alias
----------------
.. deprecated:: 9.0.0
The module name ``vowpalwabbit.sklearn_vw`` has been renamed to :py:mod:`vowpalwabbit.sklearn`. Please use the new module name instead.
Example ... | PypiClean |
/huaweicloud-python-sdk-core-0.0.3.tar.gz/huaweicloud-python-sdk-core-0.0.3/huaweipythonsdkcore/urllib3_handler.py |
import json
import multiprocessing
import ssl
from huaweipythonsdkcore import exception
import six
from six.moves.urllib.parse import urlencode
import urllib3
from urllib3.util import retry
class RequestHandler(object):
_Instance = None
_Pool_Size = multiprocessing.cpu_count() * 5
_Max_Retry = 3
d... | PypiClean |
/control_lab_ly-1.2.0-py3-none-any.whl/controllably/Move/move_utils.py | # Standard library imports
from __future__ import annotations
from abc import ABC, abstractmethod
import math
import numpy as np
from typing import Optional
# Local application imports
from ..misc import Layout
print(f"Import: OK <{__name__}>")
class Mover(ABC):
"""
Abstract Base Class (ABC) for Mover objects... | PypiClean |
/homlib-0.0.0a1.tar.gz/homlib-0.0.0a1/lib/pybind11/docs/advanced/misc.rst | Miscellaneous
#############
.. _macro_notes:
General notes regarding convenience macros
==========================================
pybind11 provides a few convenience macros such as
:func:`PYBIND11_DECLARE_HOLDER_TYPE` and ``PYBIND11_OVERRIDE_*``. Since these
are "just" macros that are evaluated in the preprocessor ... | PypiClean |
/feed-to-exporter-1.0.3.tar.gz/feed-to-exporter-1.0.3/feed_to_exporter/helpers.py | import os
import json
import inspect
import unidecode
from typing import Iterable
from lxml.html.clean import Cleaner
def clean_html(dirty_html):
cleaner = Cleaner(page_structure=True,
meta=False,
embedded=True,
links=True,
s... | PypiClean |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.