id stringlengths 1 8 | text stringlengths 6 1.05M | dataset_id stringclasses 1
value |
|---|---|---|
/boot-synth-1.2.0.tar.gz/boot-synth-1.2.0/synth/projects_master/nginx_router/frontend/react/node_modules/@babel/helper-plugin-utils/src/index.js | export function declare(builder) {
return (api, options, dirname) => {
if (!api.assertVersion) {
// Inject a custom version of 'assertVersion' for Babel 6 and early
// versions of Babel 7's beta that didn't have it.
api = Object.assign(copyApiObject(api), {
assertVersion(range) {
... | PypiClean |
/mlpf-0.0.8.tar.gz/mlpf-0.0.8/examples/torch/unsupervised/optimal_power_flow/mlp.py | import torch
import torch.nn as nn
import torch_geometric as pyg
from sklearn.model_selection import train_test_split
from torch_geometric.loader import DataLoader
from torchmetrics import MetricCollection
from tqdm import tqdm
from mlpf.data.data.optimal_power_flow import OptimalPowerFlowData
from mlpf.data.loading... | PypiClean |
/openbb-3.2.2-py3-none-any.whl/openbb_terminal/core/sdk/controllers/crypto_sdk_controller.py | from openbb_terminal.core.sdk.models import crypto_sdk_model as model
class CryptoController(model.CryptoRoot):
"""Cryptocurrency Module.
Submodules:
`dd`: Due Diligence Module
`defi`: DeFi Module
`disc`: Discovery Module
`nft`: NFT Module
`onchain`: OnChain Module
... | PypiClean |
/google-play-scraper-py-0.3.1.tar.gz/google-play-scraper-py-0.3.1/scraper/node_modules/debug/src/node.js | var tty = require('tty');
var util = require('util');
/**
* This is the Node.js implementation of `debug()`.
*
* Expose `debug()` as the module.
*/
exports = module.exports = require('./debug');
exports.init = init;
exports.log = log;
exports.formatArgs = formatArgs;
exports.save = save;
exports.load = load;
expo... | PypiClean |
/elyra_python_editor_extension-3.15.0rc0-py3-none-any.whl/elyra_python_editor_extension-3.15.0rc0.data/data/share/jupyter/labextensions/@elyra/metadata-extension/static/services_lib_index_js.459ee918a050c0784f5c.js | "use strict";
(self["webpackChunk_elyra_metadata_extension"] = self["webpackChunk_elyra_metadata_extension"] || []).push([["services_lib_index_js"],{
/***/ "../../node_modules/css-loader/dist/cjs.js!../services/style/index.css":
/*!*****************************************************************************!*\
!***... | PypiClean |
/testit-api-client-3.2.0.tar.gz/testit-api-client-3.2.0/src/testit_api_client/model/step_model.py | import re # noqa: F401
import sys # noqa: F401
from testit_api_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,
... | PypiClean |
/cord.py-1.27a0.tar.gz/cord.py-1.27a0/cord/ext/commands/context.py | from __future__ import annotations
import inspect
import re
from typing import Any, Dict, Generic, List, Optional, TYPE_CHECKING, TypeVar, Union
import cord.abc
import cord.utils
from cord.message import Message
if TYPE_CHECKING:
from typing_extensions import ParamSpec
from cord.abc import MessageableChan... | PypiClean |
/terraform_validator-0.6.42-py3-none-any.whl/terraform_validator/custom_rules/IamPolicyNotActionRule.py | from __future__ import absolute_import, division, print_function
import inspect
import sys
from builtins import (str)
from terraform_validator.Violation import Violation
from terraform_validator.custom_rules.BaseRule import BaseRule
def lineno():
"""Returns the current line number in our program."""
return str... | PypiClean |
/django-url-namespaces-0.1.0.tar.gz/django-url-namespaces-0.1.0/test/settings.py |
DEBUG = True
TEMPLATE_DEBUG = DEBUG
ADMINS = ()
MANAGERS = ADMINS
import os
virtualpath = lambda *pths: os.path.join(os.path.dirname(os.path.dirname(__file__)), *pths)
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': virtualpath('test', 'dev.db'),
'TEST_NAME': vi... | PypiClean |
/gammapy-1.1.tar.gz/gammapy-1.1/docs/release-notes/v0.9.rst | .. _gammapy_0p9_release:
0.9 (Nov 29, 2018)
------------------
Summary
~~~~~~~
- Released Nov 29, 2018
- 9 contributors (3 new)
- 2 months of work
- 88 pull requests (not all listed below)
What's new?
~~~~~~~~~~~
Gammapy v0.9 comes just two months after v0.8. This is following the `Gammapy
1.0 roadmap`_, Gammapy w... | PypiClean |
/django-admin-adminlte-1.0.5.tar.gz/django-admin-adminlte-1.0.5/admin_adminlte/static/plugins/filterizr/jquery.filterizr.min.js | var Filterizr=function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.t... | PypiClean |
/pulumi_azure_nextgen-0.6.2a1613157620.tar.gz/pulumi_azure_nextgen-0.6.2a1613157620/pulumi_azure_nextgen/devices/v20200710preview/_enums.py |
from enum import Enum
__all__ = [
'AccessRights',
'AuthenticationType',
'Capabilities',
'IotHubSku',
'IpFilterActionType',
'PrivateLinkServiceConnectionStatus',
'PublicNetworkAccess',
'RoutingSource',
]
class AccessRights(str, Enum):
"""
The permissions assigned to the shared... | PypiClean |
/active_learner-1.1.0-py3-none-any.whl/active_learner/pos_analyzer.py | import os
from collections import defaultdict
import matplotlib.pyplot as plt
plt.style.use('seaborn-white')
import numpy as np
import pandas as pd
import ast
import dill
from tqdm import tqdm
from active_learner.Phrases import Phrases
class PosTag_Query_Fetcher:
def __init__(self, phrase_interface, tokenized_tra... | PypiClean |
/ApiLogicServer-9.2.18-py3-none-any.whl/api_logic_server_cli/prototypes/tutorial/0. App_Fiddle/config.py | from os import environ, path
from pathlib import Path
import os
from dotenv import load_dotenv
import logging
# for complete flask_sqlachemy config parameters and session handling,
# read: file flask_sqlalchemy/__init__.py AND flask/config.py
'''
app.config.setdefault('SQLALCHEMY_DATABASE_URI', 'sqlite:///:memory:')... | PypiClean |
/mxnet_cu116-1.9.1-py3-none-manylinux2014_x86_64.whl/mxnet/monitor.py |
# coding: utf-8
# pylint: disable=protected-access, logging-format-interpolation, invalid-name, no-member, too-many-branches
"""Monitor outputs, weights, and gradients for debugging."""
import re
import ctypes
import logging
from math import sqrt
from .ndarray import NDArray
from .base import NDArrayHandle, py_str
f... | PypiClean |
/pulumi_azure_nextgen-0.6.2a1613157620.tar.gz/pulumi_azure_nextgen-0.6.2a1613157620/pulumi_azure_nextgen/compute/v20180601/__init__.py |
# Export this package's modules as members:
from ._enums import *
from .availability_set import *
from .disk import *
from .gallery import *
from .gallery_image import *
from .gallery_image_version import *
from .get_availability_set import *
from .get_disk import *
from .get_gallery import *
from .get_gallery_image i... | PypiClean |
/groupdocs-signature-cloud-23.6.tar.gz/groupdocs-signature-cloud-23.6/groupdocs_signature_cloud/models/digital_signature.py |
# -----------------------------------------------------------------------------------
# <copyright company="Aspose Pty Ltd" file="DigitalSignature.py">
# Copyright (c) 2003-2023 Aspose Pty Ltd
# </copyright>
# <summary>
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this softw... | PypiClean |
/pyneng_cli-5.1.0-py3-none-any.whl/pyneng_cli/pyneng_docs.py | DOCS = """
## Installation and launch
Install module
```
pip install pyneng-cli
```
The task check is then invoked via the ``pyneng`` command in the CLI.
## Stages of working with tasks
1. Completing tasks
2. Checking that the task is working as it should python task_4_2.py or running the script in the editor/IDE
... | PypiClean |
/smartpip-1.11.6.tar.gz/smartpip-1.11.6/airflow/contrib/operators/gcs_to_bq.py |
import json
from airflow.contrib.hooks.gcs_hook import GoogleCloudStorageHook
from airflow.contrib.hooks.bigquery_hook import BigQueryHook
from airflow.models import BaseOperator
from airflow.utils.decorators import apply_defaults
class GoogleCloudStorageToBigQueryOperator(BaseOperator):
"""
Loads files fro... | PypiClean |
/django-cruds-adminlte-0.0.16.tar.gz/django-cruds-adminlte-0.0.16/cruds_adminlte/static/ckeditor/plugins/pastefromword/filter/default.js | /*
Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
(function(){function C(a){a=a.toUpperCase();for(var c=D.length,b=0,f=0;f<c;++f)for(var d=D[f],e=d[1].length;a.substr(0,e)==d[1];a=a.substr(e))b+=d[0];return b}function E(a){a... | PypiClean |
/aws_recommendation_a9-0.0.21.tar.gz/aws_recommendation_a9-0.0.21/aws_recommendation_a9/ec2.py | import botocore
import pytz
from botocore.exceptions import ClientError
from aws_recommendation_a9.utils import *
logging.basicConfig(level=logging.INFO)
logger = logging.getLogger()
# Generates recommendation to delete idle instances
def delete_or_downsize_instance_recommendation(self) -> list:
logger.info(" -... | PypiClean |
/django_informixdb_vault-0.5.5.tar.gz/django_informixdb_vault-0.5.5/README.rst | Django InformixDB Vault
=======================
Extends the database driver for Django `django_informixdb` to retrieve credentials from a Hashicorp Vault service.
Assumptions
-----------
This driver expects the credentials to be stored in a KV v2 secret in Vault, as keys `username` and `password`.
Supported Authe... | PypiClean |
/specsa-django-grappelli-0.3.tar.gz/specsa-django-grappelli-0.3/grappelli/static/grappelli/tinymce/jscripts/tiny_mce/plugins/table/js/row.js | tinyMCEPopup.requireLangPack();
function init() {
tinyMCEPopup.resizeToInnerSize();
document.getElementById('backgroundimagebrowsercontainer').innerHTML = getBrowserHTML('backgroundimagebrowser','backgroundimage','image','table');
document.getElementById('bgcolor_pickcontainer').innerHTML = getColorPickerHTML('bgc... | PypiClean |
/pmaxform3-0.14.1.tar.gz/pmaxform3-0.14.1/pyxform/utils.py | import codecs
import copy
import json
import os
import re
from xml.dom.minidom import Element, Text, parseString
import unicodecsv as csv
import xlrd
try:
from json.decoder import JSONDecodeError
except ImportError:
# json module raises a ValueError exception when it encounters an invalid JSON
JSONDecodeE... | PypiClean |
/django-good-practice-examples-1.0.tar.gz/django-good-practice-examples-1.0/good_practice_examples/migrations/0005_migrate_placeholder.py | from south.utils import datetime_utils as datetime
from south.db import db
from south.v2 import DataMigration
from django.core.exceptions import ObjectDoesNotExist
from django.db import models
class Migration(DataMigration):
depends_on = (
('cms', '0058_placeholderref_table_rename'),
)
def migrat... | PypiClean |
/Flask-AWSCognito-1.3.tar.gz/Flask-AWSCognito-1.3/docs/build/_static/underscore.js | (function(){function q(a,c,d){if(a===c)return a!==0||1/a==1/c;if(a==null||c==null)return a===c;if(a._chain)a=a._wrapped;if(c._chain)c=c._wrapped;if(a.isEqual&&b.isFunction(a.isEqual))return a.isEqual(c);if(c.isEqual&&b.isFunction(c.isEqual))return c.isEqual(a);var e=l.call(a);if(e!=l.call(c))return false;switch(e){case... | PypiClean |
/appngizer-1.15.0.tar.gz/appngizer-1.15.0/docs/build/html/_static/searchtools.js | * Porter Stemmer
*/
var Stemmer = function() {
var step2list = {
ational: 'ate',
tional: 'tion',
enci: 'ence',
anci: 'ance',
izer: 'ize',
bli: 'ble',
alli: 'al',
entli: 'ent',
eli: 'e',
ousli: 'ous',
ization: 'ize',
ation: 'ate',
ator: 'ate',
alism: 'al',
... | PypiClean |
/quali-testing-helpers-1.0.0.tar.gz/quali-testing-helpers-1.0.0/quali/testing/extensions/mocking_extensions.py | import inspect
from mock import Mock
def bootstrap():
Mock.smarter_assert_called_once_with = smarter_assert_called_once_with
def _get_default_args(args, defaults):
"""
returns a dictionary of arg_name:default_values for the input function
"""
if not defaults:
return {}
return dict(z... | PypiClean |
/drypatrick-2021.7.5.tar.gz/drypatrick-2021.7.5/homeassistant/components/mazda/sensor.py | from homeassistant.components.sensor import SensorEntity
from homeassistant.const import (
CONF_UNIT_SYSTEM_IMPERIAL,
LENGTH_KILOMETERS,
LENGTH_MILES,
PERCENTAGE,
PRESSURE_PSI,
)
from . import MazdaEntity
from .const import DATA_CLIENT, DATA_COORDINATOR, DOMAIN
async def async_setup_entry(hass, c... | PypiClean |
/mlops_tempo-0.5.2-py3-none-any.whl/tempo/seldon/deploy.py | import os
import time
from http import cookies
from typing import Dict, Sequence
from seldon_deploy_sdk import ApiClient, Configuration, EnvironmentApi, SeldonDeploymentsApi
from seldon_deploy_sdk.auth import OIDCAuthenticator, SessionAuthenticator
from seldon_deploy_sdk.models.object_meta import ObjectMeta
from seldo... | PypiClean |
/gaeframework-2.0.10.tar.gz/gaeframework-2.0.10/google_appengine/lib/django_1_2/django/views/generic/create_update.py | from django.forms.models import ModelFormMetaclass, ModelForm
from django.template import RequestContext, loader
from django.http import Http404, HttpResponse, HttpResponseRedirect
from django.core.xheaders import populate_xheaders
from django.core.exceptions import ObjectDoesNotExist, ImproperlyConfigured
from django.... | PypiClean |
/plonetheme.dsgov-1.0a6-py3-none-any.whl/plonetheme/dsgov/theme/dsgov/components/list/list.js |
/***/ 203:
/***/ (function(module, exports, __webpack_require__) {
__webpack_require__(3);
__webpack_require__(61);
__webpack_require__(62);
__webpack_require__(204);
__webpack_require__(205);
__webpack_require__(206);
__webpack_require__(207);
__webpack_require__(208);
__webpack_require__(209);
__webpack_require__(2... | PypiClean |
/tensor2tensorManuel-0.2.tar.gz/tensor2tensorManuel-0.2/tensor2tensor/utils/video_metrics.py | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import os
import numpy as np
import six
import tensorflow as tf
def load_image_map_function(filename, frame_shape):
image = tf.read_file(filename)
image = tf.image.decode_png(image)
image = tf.image.res... | PypiClean |
/ib-api-0.9.70.zip/ib-api-0.9.70/ib/lib/__init__.py |
##
# Just enough auxiliary bits to make the translated code work.
#
# This package provides the support necessary to use the translated
# code. The configuration modules used in translation take care of
# many semantic differences between Java and Python, while this
# package provides the rest.
##
import copy
import... | PypiClean |
/kidx-core-0.0.1a2.tar.gz/kidx-core-0.0.1a2/kidx_core/channels/socketio.py | import logging
import uuid
from typing import Optional, Text, Any, List, Dict
import socketio
from flask import Blueprint, jsonify
from kidx_core.channels import InputChannel
from kidx_core.channels.channel import (
UserMessage,
OutputChannel)
logger = logging.getLogger(__name__)
class SocketBlueprint(Blue... | PypiClean |
/weibo-spider-0.3.0.tar.gz/weibo-spider-0.3.0/README.md | [](https://badge.fury.io/py/weibo-spider)
[](https://badge.fury.io/py/weibo-spider)
[](https://badge.fury.io/py/... | PypiClean |
/Zope2-4.0a1.zip/Zope2-4.0a1/src/App/Management.py | from cgi import escape
import urllib
from zope.interface import implements
from AccessControl import Unauthorized
from AccessControl import ClassSecurityInfo
from AccessControl.class_init import InitializeClass
from AccessControl.Permissions import view_management_screens
from App.interfaces import INavigation
from Ap... | PypiClean |
/trio-click-7.0.3.tar.gz/trio-click-7.0.3/trio_click/_termui_impl.py | import os
import sys
import time
import math
import contextlib
from ._compat import _default_text_stdout, range_type, isatty, \
open_stream, strip_ansi, term_len, get_best_encoding, WIN, int_types, \
CYGWIN
from .utils import echo
from .exceptions import ClickException
if os.name == 'nt':
BEFORE_BAR = '... | PypiClean |
/robot-soccer-kit-2.1.1.tar.gz/robot-soccer-kit-2.1.1/rsk/client.py | import signal
import numpy as np
import zmq
import sys
import threading
import logging
import time
from . import constants, utils
configurations = {
"dots": [
["green", 1, (constants.field_length / 4, -constants.field_width / 4, np.pi)],
["green", 2, (constants.field_length / 4, constants.field_wid... | PypiClean |
/idealoom-0.1.0-py3-none-any.whl/assembl/static/widget/session/bower_components/moment/locale/hy-am.js |
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(require('../moment')) :
typeof define === 'function' && define.amd ? define(['moment'], factory) :
factory(global.moment)
}(this, function (moment) { 'use strict';
function monthsCaseReplace(m, format) {... | PypiClean |
/py-pure-client-1.38.0.tar.gz/py-pure-client-1.38.0/pypureclient/flasharray/FA_2_19/models/alert.py | import pprint
import re
import six
import typing
from ....properties import Property
if typing.TYPE_CHECKING:
from pypureclient.flasharray.FA_2_19 import models
class Alert(object):
"""
Attributes:
swagger_types (dict): The key is attribute name
and the value is attribut... | PypiClean |
/django-flexible-content-ckeditor-1.0.0.tar.gz/django-flexible-content-ckeditor-1.0.0/flexible_ckeditor/static/flexible_ckeditor/ckeditor/plugins/specialchar/dialogs/lang/hr.js | /*
Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang("specialchar","hr",{euro:"Euro znak",lsquo:"Lijevi jednostruki navodnik",rsquo:"Desni jednostruki navodnik",ldquo:"Lijevi dvostruki navodnik",rdquo... | PypiClean |
/v1/model/recognize_transportation_license_request_body.py |
import pprint
import re
import six
class RecognizeTransportationLicenseRequestBody:
"""
Attributes:
openapi_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict): The key is attribute name
and th... | PypiClean |
/funkeras-0.8.12-py3-none-any.whl/notekeras/models/retinanet/utils/transform.py | import numpy as np
DEFAULT_PRNG = np.random
def colvec(*args):
""" Create a numpy array representing a column vector. """
return np.array([args]).T
def transform_aabb(transform, aabb):
""" Apply a transformation to an axis aligned bounding box.
The result is a new AABB in the same coordinate syste... | PypiClean |
/odoo13_addon_cms_form-13.0.1.0.1-py3-none-any.whl/odoo/addons/cms_form/models/widgets/widget_binary.py |
import base64
import werkzeug
from odoo import models
from odoo.tools import pycompat
from odoo.tools.mimetypes import guess_mimetype
class BinaryWidget(models.AbstractModel):
_name = "cms.form.widget.binary.mixin"
_inherit = "cms.form.widget.mixin"
_description = "CMS Form binary widget"
def w_lo... | PypiClean |
/fds.sdk.QuotesAPIforDigitalPortals-0.11.1-py3-none-any.whl/fds/sdk/QuotesAPIforDigitalPortals/model/inline_response20027.py | import re # noqa: F401
import sys # noqa: F401
from fds.sdk.QuotesAPIforDigitalPortals.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... | PypiClean |
/youtube_dlc-2020.11.11.post3.tar.gz/youtube_dlc-2020.11.11.post3/youtube_dlc/extractor/livestream.py | from __future__ import unicode_literals
import re
import itertools
from .common import InfoExtractor
from ..compat import (
compat_str,
compat_urlparse,
)
from ..utils import (
find_xpath_attr,
xpath_attr,
xpath_with_ns,
xpath_text,
orderedSet,
update_url_query,
int_or_none,
fl... | PypiClean |
/fastapi_nextauth_jwt-1.1.2.tar.gz/fastapi_nextauth_jwt-1.1.2/examples/simple/README.md | # Simple Example
This example shows off a very basic setup using Next.js, NextAuth,
and a FastAPI backend.
It uses [Next.js url rewriting](https://nextjs.org/docs/pages/api-reference/next-config-js/rewrites)
to direct requests starting with `/fastapi` to the FastAPI backend.
## Setup
### FastAPI
```shell
cd fastap... | PypiClean |
/pulumi_azure_nextgen-0.6.2a1613157620.tar.gz/pulumi_azure_nextgen-0.6.2a1613157620/pulumi_azure_nextgen/network/v20200501/get_private_link_service.py |
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union
from ... import _utilities, _tables
from . import outputs
__all__ = [
'GetPrivateLinkServiceResult',
'AwaitableGetPrivateLinkServiceResult',
'get_private_link_service',
]
@pulumi.output_type
cla... | PypiClean |
/django_surface_theme-0.0.10-py3-none-any.whl/theme/static/components/jquery/src/css/adjustCSS.js | define( [
"../core",
"../var/rcssNum"
], function( jQuery, rcssNum ) {
"use strict";
function adjustCSS( elem, prop, valueParts, tween ) {
var adjusted, scale,
maxIterations = 20,
currentValue = tween ?
function() {
return tween.cur();
} :
function() {
return jQuery.css( elem, prop, "" );
}... | PypiClean |
/Prix-Carburant-FR-Client-1.0.6.tar.gz/Prix-Carburant-FR-Client-1.0.6/prixCarburantClient/prixCarburantClient.py | import urllib.request
import zipfile
from math import radians, cos, sin, asin, sqrt
import xml.etree.ElementTree as ET
from datetime import datetime, timedelta
import logging
import sys
import csv
import os
import shutil
"""
PrixCarburantClient
"""
class PrixCarburantClient(object):
version = ''
xmlDa... | PypiClean |
/formification-1.2.0-py3-none-any.whl/formulaic/static/admin/formulaic/ember-formulaic/node_modules/bower/lib/node_modules/handlebars/dist/cjs/handlebars/compiler/code-gen.js | 'use strict';
exports.__esModule = true;
var _utils = require('../utils');
var SourceNode = undefined;
try {
/* istanbul ignore next */
if (typeof define !== 'function' || !define.amd) {
// We don't support this in AMD environments. For these environments, we asusme that
// they are running on the brows... | PypiClean |
/inference-tools-0.12.0.tar.gz/inference-tools-0.12.0/docs/source/HamiltonianChain.rst |
HamiltonianChain
~~~~~~~~~~~~~~~~
.. autoclass:: inference.mcmc.HamiltonianChain
:members: advance, run_for, mode, get_marginal, get_parameter, plot_diagnostics, matrix_plot, trace_plot
HamiltonianChain example code
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Here we define a toroidal (donut-shaped!) posterior distribution w... | PypiClean |
/ansible-8.3.0-py3-none-any.whl/ansible_collections/hetzner/hcloud/plugins/modules/hcloud_certificate.py |
# Copyright: (c) 2020, Hetzner Cloud GmbH <info@hetzner-cloud.de>
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
DOCUMENTATION = """
---
module: hcloud_certificate
short_description: Create and manage certificates on the Hetzner Cloud.
description:
- Create, updat... | PypiClean |
/django-smartagent-0.1.1.zip/django-smartagent-0.1.1/smartagent/utils.py | from ConfigParser import SafeConfigParser
import cPickle as pickle
from copy import copy
import time
import re
import os
from django.conf import settings
APP_DIRNAME = os.path.abspath(os.path.dirname(__file__))
SMART_AGENT_SETTINGS = {
'AGENT_DATASET_LOCATION': os.path.join(APP_DIRNAME, 'agents_basic.pkl'),
}
i... | PypiClean |
/creme-crm-2.4.4.tar.gz/creme-crm-2.4.4/creme/creme_core/views/generic/order.py |
from __future__ import annotations
from typing import Sequence
from django.core.exceptions import ImproperlyConfigured
from django.db.models import Model, QuerySet
from django.db.transaction import atomic
from django.http import Http404, HttpResponse
from django.views.generic import View
from creme.creme_core.core.... | PypiClean |
/labandco-2.2.33.tar.gz/labandco-2.2.33/src/labster/ldap/ldif.py | from __future__ import annotations
import re
from io import BytesIO
from typing import Any
import structlog
from attr import attrs
from flask_sqlalchemy import SQLAlchemy
from ldif import LDIFParser
from tqdm import tqdm
from labster.di import injector
from labster.domain2.model.profile import Profile, ProfileReposi... | PypiClean |
/pulumi_azure_native-2.5.1a1693590910.tar.gz/pulumi_azure_native-2.5.1a1693590910/pulumi_azure_native/storage/v20230101/list_storage_account_service_sas.py |
import copy
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from ... import _utilities
from ._enums import *
__all__ = [
'ListStorageAccountServiceSASResult',
'AwaitableListStorageAccountServiceSASResult',
'list_storage_account_servi... | PypiClean |
/graia_ariadne-0.7.16-py3-none-any.whl/graia/ariadne/model/__init__.py | import functools
from datetime import datetime
from typing import TYPE_CHECKING, Awaitable, Callable, Dict, Optional, Type, Union
from loguru import logger
from pydantic import Field, validator
from typing_extensions import Literal
from ..util import gen_subclass, internal_cls
if TYPE_CHECKING:
from ..app import... | PypiClean |
/cylc_flow-8.2.1-py3-none-any.whl/cylc/flow/scripts/dump.py |
# THIS FILE IS PART OF THE CYLC WORKFLOW ENGINE.
# Copyright (C) NIWA & British Crown (Met Office) & Contributors.
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the Lice... | PypiClean |
/boot-synth-1.2.0.tar.gz/boot-synth-1.2.0/synth/projects_master/nginx_router/frontend/react/node_modules/eslint/lib/linter/rule-fixer.js | "use strict";
//------------------------------------------------------------------------------
// Requirements
//------------------------------------------------------------------------------
// none!
//------------------------------------------------------------------------------
// Helpers
//----------------------... | PypiClean |
/test_poetry_vp-0.1.1-py3-none-any.whl/test_poetry_vp/api/nst/generator/nst_typedef.py | T_UFT_BYTE = "unsigned char"
T_UFT_WORD = "unsigned short"
T_UFT_DWORD = "unsigned long"
T_UFT_INT1 = "char"
T_UFT_INT2 = "short"
T_UFT_INT4 = "int"
T_UFT_UINT4 = "unsigned int"
T_UFT_REAL4 = "float"
T_UFT_REAL8 = "double"
T_UFT_CHAR = "char"
T_UFT_FtdcErrorIDType = "int"
T_UFT_FtdcPriorityType = "int"
T_UFT_FtdcSettle... | PypiClean |
/python-facepp-0.1.0a2.tar.gz/python-facepp-0.1.0a2/facepplib/managers/base.py | from .. import exceptions, resultsets, utilities
class ResourceManager(object):
"""
Manages given FacePP resource class with the help of facepp object.
"""
def __init__(self, facepp, resource_class):
"""
:param facepp.FacePP facepp: (required). FacePP object.
:param resources.B... | PypiClean |
/incisive-0.1.0.tar.gz/incisive-0.1.0/README.rst | incisive
========
**incisive** is a tiny library for handling CSV in Python. It's a wrapper for the csv module.
Usage
-----
* You can read a csv file like this::
>>> iris = read_csv("data/iris.csv")
>>> iris.next()
{'petal_length': 1.4,
'petal_width': 0.2,
'sepal_length': 5.1,
'sepal_wid... | PypiClean |
/FPL_wildcard_team_selector-1.1.1.tar.gz/FPL_wildcard_team_selector-1.1.1/FPL_wildcard_team_selector/FPL_data_collection/utilities.py | import pandas as pd
from difflib import get_close_matches
from .constants import fpl_teams_dict, understat_relevant_player_stats
def combine_data_from_fpl_understat(fpl_api_players_info_df, understat_url_players_info_df):
'''
Adds the required stats from the understat url to the fpl api players info Dataframe... | PypiClean |
/pulumi_azure_native-2.5.1a1693590910.tar.gz/pulumi_azure_native-2.5.1a1693590910/pulumi_azure_native/eventhub/v20221001preview/_enums.py |
from enum import Enum
__all__ = [
'AccessRights',
'ApplicationGroupPolicyType',
'CleanupPolicyRetentionDescription',
'ClusterSkuName',
'DefaultAction',
'EncodingCaptureDescription',
'EndPointProvisioningState',
'EntityStatus',
'KeySource',
'ManagedServiceIdentityType',
'Met... | PypiClean |
/apiqa_storage-2.10.0-py3-none-any.whl/apiqa_storage/models.py | import uuid
from django.conf import settings as django_settings
from django.contrib.contenttypes.fields import (
GenericForeignKey, GenericRelation
)
from django.contrib.contenttypes.models import ContentType
from django.contrib.postgres.fields import ArrayField
from django.db import models
from django.utils.trans... | PypiClean |
/sdwebui-0.0.7-py3-none-any.whl/extensions-builtin/Lora/lora.py | import os
import re
import torch
from typing import Union
from modules import shared, devices, sd_models, errors, scripts, sd_hijack, hashes
metadata_tags_order = {"ss_sd_model_name": 1, "ss_resolution": 2, "ss_clip_skip": 3, "ss_num_train_images": 10, "ss_tag_frequency": 20}
re_digits = re.compile(r"\d+")
re_x_proj... | PypiClean |
/django-users2-0.2.2.tar.gz/django-users2-0.2.2/users/urls.py | from django.conf.urls import url
from django.contrib.auth import views as auth_views
from .views import (activate, activation_complete, register,
registration_closed, registration_complete)
urlpatterns = [
url(r'^register/$', register, name='users_register'),
url(r'^register/closed/$', reg... | PypiClean |
/azure-mgmt-containerregistry-10.1.0.zip/azure-mgmt-containerregistry-10.1.0/azure/mgmt/containerregistry/v2017_10_01/operations/_webhooks_operations.py | import sys
from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload
import urllib.parse
from azure.core.exceptions import (
ClientAuthenticationError,
HttpResponseError,
ResourceExistsError,
ResourceNotFoundError,
ResourceNotModifiedError,
map_error,
)
from... | PypiClean |
/invenio-records-permissions-1.0.0a4.tar.gz/invenio-records-permissions-1.0.0a4/invenio_records_permissions/policies/base.py | from itertools import chain
from flask import current_app
from invenio_access import Permission
from ..generators import Disable
# Where can a property be used?
#
# | Action | need | excludes | query_filters |
# |-------------|------|----------|---------------|
# | create | x | x | ... | PypiClean |
/solace_pubsubplus-1.5.0-py36-none-win32.whl/solace/messaging/resources/share_name.py | from abc import ABC, abstractmethod
from solace.messaging.config._solace_message_constants import SHARE_NAME_CANT_BE_NONE, \
SHARE_NAME_ILLEGAL_CHAR_ERROR_MESSAGE
from solace.messaging.resources.destination import Destination
from solace.messaging.utils._validation import _Validation
class ShareName(Destination,... | PypiClean |
/lzb_distributions-0.1.tar.gz/lzb_distributions-0.1/distributions/Gaussiandistribution.py | import math
import matplotlib.pyplot as plt
from .Generaldistribution import Distribution
class Gaussian(Distribution):
""" Gaussian distribution class for calculating and
visualizing a Gaussian distribution.
Attributes:
mean (float) representing the mean value of the distribution
stdev (float) representing ... | PypiClean |
/tendril-eda-0.1.3.tar.gz/tendril-eda-0.1.3/src/tendril/libraries/edasymbols/base.py |
# Copyright (C) 2018 Chintalagiri Shashank
#
# This file is part of tendril.
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any ... | PypiClean |
/regapp-tools-0.2.16.tar.gz/regapp-tools-0.2.16/regapp_tools/bwidm_user.py |
import logging
import json
from regapp_tools.parse_args import args
from regapp_tools.bwidmtools import get_user_registrations_from_external_id
logger = logging.getLogger(__name__)
class User:
def __init__(self, regapp_userinfo, extensive=False):
if args.verbose:
print("User record")
... | PypiClean |
/msgraph-sdk-1.0.0a3.tar.gz/msgraph-sdk-1.0.0a3/msgraph/generated/print/task_definitions/item/print_task_definition_item_request_builder.py | from __future__ import annotations
from dataclasses import dataclass
from kiota_abstractions.get_path_parameters import get_path_parameters
from kiota_abstractions.method import Method
from kiota_abstractions.request_adapter import RequestAdapter
from kiota_abstractions.request_information import RequestInformation
fro... | PypiClean |
/vioneta-2023.7.3.tar.gz/vioneta-2023.7.3/homeassistant/components/lyric/api.py | from typing import cast
from aiohttp import BasicAuth, ClientSession
from aiolyric.client import LyricClient
from homeassistant.components.application_credentials import AuthImplementation
from homeassistant.helpers import config_entry_oauth2_flow
from homeassistant.helpers.aiohttp_client import async_get_clientsessi... | PypiClean |
/tensorlayer3-1.2.0.tar.gz/tensorlayer3-1.2.0/tensorlayer/layers/inputs.py |
import tensorlayer as tl
from tensorlayer import logging
from tensorlayer.layers.core import Module
__all__ = ['Input', '_InputLayer']
class _InputLayer(Module):
"""
The :class:`Input` class is the starting layer of a neural network.
Parameters
----------
shape : tuple (int)
Including b... | PypiClean |
/mattermost_api_reference_client-4.0.0.post1.tar.gz/mattermost_api_reference_client-4.0.0.post1/mattermost_api_reference_client/models/search_teams_response_200.py | from typing import TYPE_CHECKING, Any, Dict, List, Type, TypeVar, Union
import attr
from ..types import UNSET, Unset
if TYPE_CHECKING:
from ..models.team import Team
T = TypeVar("T", bound="SearchTeamsResponse200")
@attr.s(auto_attribs=True)
class SearchTeamsResponse200:
"""
Attributes:
teams... | PypiClean |
/deepctr_torch-0.2.9-py3-none-any.whl/deepctr_torch/models/ccpm.py | import torch
import torch.nn as nn
from .basemodel import BaseModel
from ..layers.core import DNN
from ..layers.interaction import ConvLayer
from ..layers.utils import concat_fun
class CCPM(BaseModel):
"""Instantiates the Convolutional Click Prediction Model architecture.
:param linear_feature_columns: An i... | PypiClean |
/lfl-admin-0.0.9.tar.gz/lfl-admin-0.0.9/lfl_admin/competitions/migrations/0069_auto_20210304_0750.py |
import bitfield.models
import django.utils.timezone
from django.conf import settings
from django.db import migrations, models
import isc_common.fields.code_field
import isc_common.fields.related
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_M... | PypiClean |
/azureml_core-1.53.0-py3-none-any.whl/azureml/_restclient/operations/optimization_operations.py |
from msrest.pipeline import ClientRawResponse
from .. import models
class OptimizationOperations(object):
"""OptimizationOperations operations.
:param client: Client for service requests.
:param config: Configuration of service client.
:param serializer: An object model serializer.
:param deser... | PypiClean |
/ros-cdk-ga-1.0.17.tar.gz/ros-cdk-ga-1.0.17/src/ros_cdk_ga/__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 ros_cdk_core as _ros_cdk_core_7adfd82f
class Accelerator(
_ros_cdk_core_7adfd82f.Resource,
metaclass=jsii.JSIIMeta,
... | PypiClean |
/acapy_patched_old-0.5.6-py3-none-any.whl/aries_cloudagent/core/protocol_registry.py |
import logging
from typing import Mapping, Sequence
from ..config.injection_context import InjectionContext
from ..utils.classloader import ClassLoader
from .error import ProtocolMinorVersionNotSupported
LOGGER = logging.getLogger(__name__)
class ProtocolRegistry:
"""Protocol registry for indexing message fa... | PypiClean |
/haunts-0.6.0.tar.gz/haunts-0.6.0/README.rst | =============
B-Open Haunts
=============
.. image:: https://raw.githubusercontent.com/keul/haunts/main/docs/fear-of-the-worklog.jpg
:target: https://dungeonsdragons.fandom.com/wiki/Haunt
:alt: Haunt monster
\
.. image:: https://img.shields.io/pypi/v/haunts.svg
:target: https://pypi.python.... | PypiClean |
/seqslab-cli-3.2.2a0.tar.gz/seqslab-cli-3.2.2a0/python/seqslab/auth/azuread.py | from __future__ import absolute_import, unicode_literals
from typing import TypeVar
import msal
import environ
import atexit
import pickle
from pydantic import BaseModel
import seqslab
from urllib.parse import parse_qs
from nubia import context
from msal.oauth2cli.authcode import (
_AuthCodeHandler,
AuthCod... | PypiClean |
/aiohttp-apiset-0.10a4.tar.gz/aiohttp-apiset-0.10a4/aiohttp_apiset/static/swagger-ui/2/lib/highlight.9.1.0.pack.js | !function(e){"undefined"!=typeof exports?e(exports):(self.hljs=e({}),"function"==typeof define&&define.amd&&define("hljs",[],function(){return self.hljs}))}(function(e){function r(e){return e.replace(/&/gm,"&").replace(/</gm,"<").replace(/>/gm,">")}function t(e){return e.nodeName.toLowerCase()}function n(e,r)... | PypiClean |
/avalon-colorbleed-1.0.2.tar.gz/avalon-colorbleed-1.0.2/colorbleed/plugins/maya/publish/validate_transform_naming_suffix.py | from maya import cmds
import pyblish.api
import colorbleed.api
import colorbleed.maya.action
SUFFIX_NAMING_TABLE = {'mesh': ["_GEO", "_GES", "_GEP", "_OSD"],
'nurbsCurve': ["_CRV"],
'nurbsSurface': ["_NRB"],
None: ['_GRP']}
ALLOW_IF_NOT_IN_SUFFIX_T... | PypiClean |
/tableschema-spss-1.0.14.tar.gz/tableschema-spss-1.0.14/README.md | # tableschema-spss-py
[](https://travis-ci.org/frictionlessdata/tableschema-spss-py)
[](https://coveralls.io/r/frictionlessdata/tableschem... | PypiClean |
/myams_js-1.16.0.tar.gz/myams_js-1.16.0/pkg/js/ext/ace/snippets/haskell.js | define("ace/snippets/haskell",["require","exports","module"], function(require, exports, module) {
"use strict";
exports.snippetText = "snippet lang\n\
{-# LANGUAGE ${1:OverloadedStrings} #-}\n\
snippet info\n\
-- |\n\
-- Module : ${1:Module.Namespace}\n\
-- Copyright : ${2:Author} ${3:2011-2012}\n\
-- L... | PypiClean |
/panda-jedi-0.0.24.tar.gz/panda-jedi-0.0.24/pandajedi/jediorder/JobGenerator.py | import re
import os
import sys
import time
import copy
import signal
import socket
import random
import datetime
import traceback
from six import iteritems
try:
long()
except Exception:
long = int
try:
from urllib.parse import unquote
except ImportError:
from urllib import unquote
from pandajedi.jed... | PypiClean |
/rx_tools-0.0.3.tar.gz/rx_tools-0.0.3/src/rk/bdtreader.py | import ROOT
import os
import numpy
import tqdm
import utils_noroot as utnr
log=utnr.getLogger(__name__)
class reader:
def __init__(self, bdtdir):
self.bdtdir = bdtdir
self.initialized = False
self.l_head = []
self.l_lib = []
if True:
self.l_hea... | PypiClean |
/journyio-sdk-2.3.1.tar.gz/journyio-sdk-2.3.1/README.md | [](https://journy.io/?utm_source=github&utm_content=readme-python-sdk)
# journy.io Python SDK
[](https://pypi.org... | PypiClean |
/ACTIONet-0.1.1.tar.gz/ACTIONet-0.1.1/pybind11/docs/changelog.rst | .. _changelog:
Changelog
#########
Starting with version 1.8.0, pybind11 releases use a `semantic versioning
<http://semver.org>`_ policy.
v2.5.0 (Mar 31, 2020)
-----------------------------------------------------
* Use C++17 fold expressions in type casters, if available. This can
improve performance during ove... | PypiClean |
/TimeSide-0.9.6.tar.gz/TimeSide-0.9.6/timeside/player/static/timeside2/app/bower_components/moment/locale/br.js |
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(require('../moment')) :
typeof define === 'function' && define.amd ? define(['moment'], factory) :
factory(global.moment)
}(this, function (moment) { 'use strict';
function relativeTimeWithMutation(numbe... | PypiClean |
/smart-module-test-0.0.3.tar.gz/smart-module-test-0.0.3/smart_module/module_system/header_operations.py |
#--------------------------------------------------------------------------
# CONTROL OPERATIONS
#--------------------------------------------------------------------------
###调用脚本
call_script = 1 # (call_script,<script_id>),
###废弃的命令,使用下面的try_end
end_try = 3 # deprecated, use try_end instead
###判断结束
t... | PypiClean |
/robotframework_executor-0.1.5-py3-none-any.whl/robo_app/widgets.py | from tkinter import ttk
import tkinter as tk
from tkinter import filedialog
import os
from decimal import Decimal, InvalidOperation
from .constants import FieldTypes as FT
from sys import platform
from datetime import datetime
import csv
from .util import FileNameNotFoundException
from .util import RobotLogger
import ... | PypiClean |
/Jalapeno-0.1.4.tar.gz/Jalapeno-0.1.4/Jalapeno_data/Sites/first/Pages/blog/getstart.md | title: 使用Jalapeno快速搭建博客
date: 2017-01-19
tag: Flask
[TOC]
<!--Sidebar-->
上次我们讲了如何使用Flask系列来搭建静态博客,但是实际上功能仍然比较单一。为了省去大家重复造轮子的辛苦,老钱同志在今年年初发布了Jalapeno。由于偷懒原因(逃),官方文档一直未能发布。这次我们讲如何使用Jalapeno快速搭建自己的博客网站。

注:Jalapeno当前支持Mac/Linux, Windows目前尚未测试。
<!--More-->
##安装
在使用Jalapeno之前,我们需要先将所需的软件下载... | PypiClean |
/mongo-connector-transaction-1.7.0.tar.gz/mongo-connector-transaction-1.7.0/mongo_connector/connector.py | import copy
import json
import logging
import logging.handlers
import os
import platform
import pymongo
import re
import shutil
import signal
import ssl
import sys
import threading
import time
from pymongo import MongoClient
from mongo_connector import config, constants, errors, util
from mongo_connector.constants im... | PypiClean |
/mcvqoe_accesstime-2.2.1-py3-none-any.whl/mcvqoe/accesstime/access_time.py | import abcmrt
import argparse
import csv
import datetime
import glob
import mcvqoe.base
import os
import pkg_resources
import pickle
import re
import scipy.interpolate
import scipy.signal
import shutil
import string
import time
import timeit
import zipfile
from collections import namedtuple
from fractions import Fract... | PypiClean |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.