id stringlengths 1 8 | text stringlengths 6 1.05M | dataset_id stringclasses 1
value |
|---|---|---|
/collective.megaphone-2.1.5.zip/collective.megaphone-2.1.5/src/collective/megaphone/recipient_multiplexer.py | from zope.component import getMultiAdapter, getAdapters
from zope.interface import Interface
from Products.CMFPlone.utils import safe_hasattr
from Products.CMFCore.Expression import getExprContext
from Products.Archetypes.interfaces.field import IField
from Products.PloneFormGen.interfaces import IPloneFormGenActionAda... | PypiClean |
/canvas-workflow-kit-0.6.8.tar.gz/canvas-workflow-kit-0.6.8/canvas_workflow_kit/builtin_cqms/ccp001v1_symptomatic_surveillance.py | from typing import Dict, List
import arrow
from cached_property import cached_property
from canvas_workflow_kit import events
from canvas_workflow_kit.canvas_code_set import CanvasCodeSet
from canvas_workflow_kit.patient_recordset import InterviewRecordSet
from canvas_workflow_kit.protocol import (
STATUS_DUE,
... | PypiClean |
/esia-connector-0.16.tar.gz/esia-connector-0.16/esia_connector/client.py | import uuid
from urllib.parse import urlencode
import jwt
from jwt.exceptions import InvalidTokenError
from esia_connector.exceptions import IncorrectMarkerError
from esia_connector.utils import get_timestamp, sign_params, make_request
class EsiaSettings:
def __init__(self, esia_client_id, redirect_uri, certifi... | PypiClean |
/source_python-0.0.1.tar.gz/source_python-0.0.1/config/manager.py | # =============================================================================
# >> IMPORTS
# =============================================================================
# Python Imports
# Collections
from collections import defaultdict
# TextWrap
from textwrap import TextWrapper
# Source.Python Imports
# Con... | PypiClean |
/rngslib-1.0.0.tar.gz/rngslib-1.0.0/src/__init__.py |
# Module/Scripts Description
#
# Copyright (c) 2008 Yunfei Wang <Yunfei.Wang1@utdallas.edu>
#
# This code is free software; you can redistribute it and/or modify it
# under the terms of the BSD License (see the file COPYING included with
# the distribution).
#
# @status: experimental
# @version: 1.0.0
# @a... | PypiClean |
/oc-js-0.8.tar.gz/oc-js-0.8/opencore/js/thirdparty/xinha97-pre/lang/de.js | {
"Bold": "Fett",
"Italic": "Kursiv",
"Underline": "Unterstrichen",
"Strikethrough": "Durchgestrichen",
"Subscript": "Tiefgestellt",
"Superscript": "Hochgestellt",
"Justify Left": "Linksbündig",
"Justify Center": "Zentriert",
"Justify Right": "Rechtsbündig",
"Justify Full": "Blocksatz",
"Ordered L... | PypiClean |
/ph_utils-0.0.4.tar.gz/ph_utils-0.0.4/README_CN.md | # ph-utils
`Python3` 工具类.
1. 安装
```shell
pip install ph-utils
```
2. 使用
```python
from ph_utils import date_utils
# date_utils.parse()
from ph_utils.date_utils import parse
# parse()
```
## `date-utils`
日期处理相关的工具类.
### `1. parse(date_data: Any, fmt=None): datetime`
解可以将各种数据格式解析为日期对象,包括时间戳、字符串和日期对象本身。返回值为 `d... | PypiClean |
/ImageD11-1.9.9.tar.gz/ImageD11-1.9.9/test/index_demos/generate_gv.py | from __future__ import print_function
# Generate a series of test cases for index_unknown.py
# Things to vary:
# Number of grains
# Symmetry
# Unit cells all the same - phase pure
# Mixtures of different grains
# Data range in omega, two theta
# Use range in terms of cube root of cell volume
# value 1 =... | PypiClean |
/ansible-base-2.10.17.tar.gz/ansible-base-2.10.17/test/support/network-integration/collections/ansible_collections/vyos/vyos/plugins/module_utils/network/vyos/facts/l3_interfaces/l3_interfaces.py | from __future__ import absolute_import, division, print_function
__metaclass__ = type
import re
from copy import deepcopy
from ansible_collections.ansible.netcommon.plugins.module_utils.network.common import (
utils,
)
from ansible.module_utils.six import iteritems
from ansible_collections.ansible.netcommon.plug... | PypiClean |
/tw.dojo-0.9.181.tar.gz/tw.dojo-0.9.181/tw/dojo/static/1.8.1/debug/dojox/image/_base.js | define("dojox/image/_base", ["dojo", "dojox"], function(dojo, dojox){
dojo.getObject("image", true, dojox);
var d = dojo;
var cacheNode;
dojox.image.preload = function(/* Array */urls){
// summary:
// Preload a list of images in the dom.
// urls: Array
// The list of urls to load. Can be any valid .sr... | PypiClean |
/sample-factory-2.1.1.tar.gz/sample-factory-2.1.1/docs/11-release-notes/release-notes.md | # Recent releases
##### v2.1.1
* Windows support in serial mode (do not require `faster-fifo` on Windows)
* Allow Torch 2 (versions 2.0.1+ seem to work fine)
##### v2.1.0
* Use `gymnasium` instead of `gym` dependency. See https://gymnasium.farama.org/content/basic_usage/ New compatibility
layer added to automatical... | PypiClean |
/skyCatalogs-1.6.0rc1.tar.gz/skyCatalogs-1.6.0rc1/skycatalogs/objects/base_object.py | from collections.abc import Sequence, Iterable
from collections import namedtuple
import os
import gzip
import itertools
import numpy as np
import astropy.units as u
import warnings
from dust_extinction.parameter_averages import F19
import galsim
import logging
from galsim.errors import GalSimRangeError
from skycatalo... | PypiClean |
/odoo14_addon_website_apps_store-14.0.1.3.0-py3-none-any.whl/odoo/addons/website_apps_store/controllers/main.py |
import base64
import logging
from odoo import _, http
from odoo.exceptions import UserError, ValidationError
from odoo.http import request
from odoo.addons.http_routing.models.ir_http import slug
from odoo.addons.website.controllers.main import QueryURL
from odoo.addons.website_sale.controllers.main import TableComp... | PypiClean |
/BrightPy-0.1.2.tar.gz/BrightPy-0.1.2/brightpy/__init__.py | import argparse
import math
import json
import os
import sys
from time import sleep
from brightpy.argparse_subparser_alias import AliasedSubParsersAction
BACKLIGHT_PATH = '/sys/class/backlight/intel_backlight'
class Backlight(object):
def __init__(self):
self.min = 1
with open(os.path.join(BAC... | PypiClean |
/BeanPorter-0.1.tar.gz/BeanPorter-0.1/README.md | # BeanPorter - A Standalone Configurable BeanCount Importer
## Setup
Install via pip
```bash
pip install BeanPorter
```
Install via pipenv
```bash
pipenv install BeanPorter
```
## Usage
Import with default rules to beancount file `BEANCOUNT_FILE.beancount`.
```bash
bean-porter --file BILL_FILE.csv \
>> BEANCO... | PypiClean |
/testLidamao-0.11-py3-none-any.whl/a.py | from functools import wraps
import binascii,time,os
from flask import request,jsonify
def err(msg):
return jsonify({'code':1,'msg':msg})
def insert_cover(db,info):
max_id = list(db.find().sort('id',-1).limit(1))
if len(max_id):
id_ = max_id[0]['id']+1
else:
id_ = 1
info['id'] = ... | PypiClean |
/Electrum-Zcash-Random-Fork-3.1.3b5.tar.gz/Electrum-Zcash-Random-Fork-3.1.3b5/lib/interface.py | import os
import re
import socket
import ssl
import sys
import threading
import time
import traceback
import requests
from .util import print_error
ca_path = requests.certs.where()
from . import util
from . import x509
from . import pem
def Connection(server, queue, config_path):
"""Makes asynchronous connect... | PypiClean |
/cpas_toolbox-1.0.0-py3-none-any.whl/cpas_toolbox/cpas_methods/_sgpa/sgpa/align.py | import time
import numpy as np
def estimateSimilarityUmeyama(SourceHom, TargetHom):
# Copy of original paper is at: http://web.stanford.edu/class/cs273/refs/umeyama.pdf
SourceCentroid = np.mean(SourceHom[:3, :], axis=1)
TargetCentroid = np.mean(TargetHom[:3, :], axis=1)
nPoints = SourceHom.shape[1]
... | PypiClean |
/django-stored-messages-1.4.0.tar.gz/django-stored-messages-1.4.0/stored_messages/api.py | from .settings import stored_messages_settings
__all__ = (
'add_message_for',
'broadcast_message',
'mark_read',
'mark_all_read',
)
def add_message_for(users, level, message_text, extra_tags='', date=None, url=None, fail_silently=False):
"""
Send a message to a list of users without passing t... | PypiClean |
/groupdocs_viewer_cloud-23.7-py3-none-any.whl/groupdocs_viewer_cloud/models/pdf_document_options.py |
# -----------------------------------------------------------------------------------
# <copyright company="Aspose Pty Ltd" file="PdfDocumentOptions.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 sof... | PypiClean |
/butter.mas_api-2.1.1-py3-none-any.whl/butter/mas/packets/packet_tcp.py | import socket
from requests import Response
from .packet import Packet
from butter.mas.utils.general_utils import print_error
class TcpPacket(Packet):
""" Represents a tcp data packet """
def __init__(self, ip, port, query):
"""Initialize packet
Args:
ip (str): robot IP
... | PypiClean |
/async_doh-0.3.0-py3-none-any.whl/async_doh/client/client.py | import asyncio
import base64
from async_dns.core import DNSMessage, REQUEST, Record, types
from .session import create_session
class DoHClient:
session = None
_session_task = None
async def __aenter__(self):
if self._session_task is None:
self._session_task = asyncio.create_task(
... | PypiClean |
/modelyst_sqlmodel-0.0.9-py3-none-any.whl/sqlmodel/orm/session.py | from typing import Any, Mapping, Optional, Sequence, Type, TypeVar, Union, overload
from sqlalchemy import util
from sqlalchemy.orm import Query as _Query
from sqlalchemy.orm import Session as _Session
from sqlalchemy.sql.base import Executable as _Executable
from sqlmodel.sql.expression import Select, SelectOfScalar
... | PypiClean |
/PYMIC-0.4.0-py3-none-any.whl/pymic/transform/transpose.py | from __future__ import print_function, division
import json
import random
import numpy as np
from pymic.transform.abstract_transform import AbstractTransform
class RandomTranspose(AbstractTransform):
"""
Random transpose for 3D volumes. Assume the input has a shape of [C, D, H, W], the
output shape will ... | PypiClean |
/pulumi_gcp_native-0.0.2a1617829075.tar.gz/pulumi_gcp_native-0.0.2a1617829075/pulumi_gcp_native/gkehub/v1alpha/membership_iam_policy.py |
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union
from ... import _utilities, _tables
from . import outputs
from ._inputs import *
__all__ = ['MembershipIamPolicy']
class MembershipIamPolicy(pulumi.CustomResource):
def __init__(__self__,
... | PypiClean |
/jam.py-5.4.133.tar.gz/jam.py-5.4.133/jam/third_party/sqlalchemy/event/registry.py | from __future__ import absolute_import
import collections
import types
import weakref
from .. import exc
from .. import util
_key_to_collection = collections.defaultdict(dict)
"""
Given an original listen() argument, can locate all
listener collections and the listener fn contained
(target, identifier, fn) -> {
... | PypiClean |
/numpy_mips64-1.17.4.tar.gz/numpy_mips64-1.17.4/benchmarks/benchmarks/bench_lib.py | from __future__ import absolute_import, division, print_function
from .common import Benchmark
import numpy as np
class Pad(Benchmark):
"""Benchmarks for `numpy.pad`.
When benchmarking the pad function it is useful to cover scenarios where
the ratio between the size of the input array and the output ar... | PypiClean |
/azure-cognitiveservices-search-autosuggest-0.2.0.zip/azure-cognitiveservices-search-autosuggest-0.2.0/README.rst | Microsoft Azure SDK for Python
==============================
This is the Microsoft Azure Auto Suggest Client Library.
This package has been tested with Python 2.7, 3.5, 3.6, 3.7 and 3.8.
For a more complete set of Azure libraries, see the `azure <https://pypi.python.org/pypi/azure>`__ bundle package.
Usage
=====
... | PypiClean |
/ZMS-5.1.0-py3-none-any.whl/Products/zms/plugins/www/ckeditor/lang/zh.js | /*
Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or https://ckeditor.com/license
*/
CKEDITOR.lang['zh']={"editor":"RTF 編輯器","editorPanel":"RTF 編輯器面板","common":{"editorHelp":"按下 ALT 0 取得說明。","browseServer":"瀏覽伺服器","url":"URL","protocol":"通訊協定","upload":"上傳","u... | PypiClean |
/thumbor-7.5.1.tar.gz/thumbor-7.5.1/docs/hosting.rst | Hosting
=======
Let's see how would you run thumbor in different environments.
Development Environment
-----------------------
For running it locally you just need to get a proper :doc:`configuration`
file. You can put it at ``/etc/thumbor.conf``, ``~/thumbor.conf`` (home folder)
or specify it when starting thumbor.... | PypiClean |
/vwoptimize-0.10.2.tar.gz/vwoptimize-0.10.2/vwoptimizelib/third_party/networkx/algorithms/minors.py | """Provides functions for computing minors of a graph."""
from itertools import chain
from itertools import combinations
from itertools import permutations
from itertools import product
__all__ = ['contracted_edge', 'contracted_nodes',
'identified_nodes', 'quotient_graph']
def peek(iterable):
"""Retur... | PypiClean |
/pytext-nlp-0.3.3.tar.gz/pytext-nlp-0.3.3/pytext/models/representations/traced_transformer_encoder.py |
from typing import Tuple
import torch
import torch.cuda
import torch.nn as nn
from fairseq.modules import (
TransformerSentenceEncoder as TransformerSentenceEncoderModule,
)
from pytext.utils.usage import log_class_usage
# Wrapper for TransformerSentenceEncoder to enable tracing
class TraceableTransformerWrappe... | PypiClean |
/django-adminlte-full-0.2.0.tar.gz/django-adminlte-full-0.2.0/adminlte_full/static/adminlte_full/plugins/jqvmap/maps/jquery.vmap.serbia.js | jQuery.fn.vectorMap("addMap", "serbia", { "width" : 1041, "height" : 726, paths : { "1" : { path : "m 81.383968,195.26246 c -1.823902,-2.05385 -3.527788,-2.48647 -7.350116,-1.86619 -3.243695,0.52638 -4.97581,0.25634 -4.97581,-0.77574 0,-0.87077 -0.867873,-1.58321 -1.928607,-1.58321 -1.060735,0 -2.676438,-0.90108 -3.590... | PypiClean |
/pyredirect-1.0.0.tar.gz/pyredirect-1.0.0/README.md | # Install
* Linux
> python3 -m pip install pyredirect
* Windows
> python -m pip install pyredirect
# Author
**Discord** : *Lactua#1806*
**Github**: *[https://github.com/lactua](https://github.com/lactua)*
# Documentation
Before doing anything, import the class Redirection from the module.
```py
from pyredi... | PypiClean |
/smartsheet-python-sdk-py39-2.105.1.10.tar.gz/smartsheet-python-sdk-py39-2.105.1.10/deploy.sh |
make_docs() {
rm -f docs-source/smartsheet.rst
rm -f docs-source/smartsheet.models.rst
rm -f docs-source/modules.rst
sphinx-apidoc -o docs-source smartsheet
rm -rf docs-source/_build
sphinx-build -b html -d docs-source/_build/doctrees docs-source/. docs-source/_build/html
rm -rf docs
cp -a docs-source/... | PypiClean |
/py_fumen_py-0.0.7-py3-none-any.whl/py_fumen_py/field.py |
from .constant import FieldConstants as Consts
from .operation import Mino, Rotation, Operation
class Field:
"""Keep data of a Tetris playing field."""
@staticmethod
def _empty_lines(height):
empty_lines = [[Mino._] * Consts.WIDTH for y in range(height)]
return empty_lines[:]
@staticm... | PypiClean |
/sphinxcontrib_opencontracting-0.0.9-py3-none-any.whl/sphinxcontrib/opencontracting.py | import csv
import json
import os
from functools import lru_cache
import jsonpointer
import requests
from docutils import nodes
from docutils.parsers.rst import Directive, directives
from docutils.parsers.rst.roles import set_classes
from myst_parser.config.main import MdParserConfig
from myst_parser.mdit_to_docutils.b... | PypiClean |
/watson_machine_learning_client-1.0.391-py3-none-any.whl/watson_machine_learning_client/libs/repo/mlrepositoryclient/experiment_collection.py |
import logging, re
from watson_machine_learning_client.libs.repo.mlrepository import MetaNames, PipelineArtifact
from watson_machine_learning_client.libs.repo.swagger_client.api_client import ApiException
from watson_machine_learning_client.libs.repo.swagger_client.models import TagRepository,MlAssetsCreateExperimen... | PypiClean |
/ultracart_rest_sdk-4.0.173-py3-none-any.whl/ultracart/model/conversation_event_queue_position.py | import re # noqa: F401
import sys # noqa: F401
from ultracart.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,
vali... | PypiClean |
/lto_cli-1.2.3-py3-none-any.whl/lto_cli/cli.py | import argparse
import sys
from lto_cli import config
from lto_cli.commands import transfer
from lto_cli.commands import burn
from lto_cli.commands import anchor
from lto_cli.commands import leasing
from lto_cli.commands import sponsorship
from lto_cli.commands import association
from lto_cli.commands import account
f... | PypiClean |
/leap.bitmask-0.10.1.tar.gz/leap.bitmask-0.10.1/src/leap/bitmask/vpn/process.py | import os
import shutil
import sys
from twisted.internet import protocol, reactor, defer
from twisted.internet import error as internet_error
from twisted.internet.endpoints import clientFromString, connectProtocol
from twisted.logger import Logger
from zope.interface import implementer
from leap.bitmask.vpn.utils im... | PypiClean |
/simc_support-10.1.5.4.tar.gz/simc_support-10.1.5.4/simc_support/game_data/Trinket.py | import dataclasses
import json
import enum
import logging
import pkg_resources
import typing
from simc_support.game_data.Expansion import Expansion
from simc_support.game_data.Instance import Instance, InstanceType, RaidTier
import simc_support.game_data.ItemLevel as ItemLevel
from simc_support.game_data.Language impo... | PypiClean |
/xnni-0.7.4-py3-none-manylinux1_x86_64.whl/xnni-0.7.4.data/data/nni/node_modules/iconv-lite/encodings/dbcs-data.js | "use strict";
// Description of supported double byte encodings and aliases.
// Tables are not require()-d until they are needed to speed up library load.
// require()-s are direct to support Browserify.
module.exports = {
// == Japanese/ShiftJIS ====================================================
// Al... | PypiClean |
/nniv04-0.4.1-py3-none-any.whl/nniv04-0.4.1.data/data/nni/node_modules/sshpk/lib/fingerprint.js |
module.exports = Fingerprint;
var assert = require('assert-plus');
var Buffer = require('safer-buffer').Buffer;
var algs = require('./algs');
var crypto = require('crypto');
var errs = require('./errors');
var Key = require('./key');
var Certificate = require('./certificate');
var utils = require('./utils');
var Fin... | PypiClean |
/google-cloud-recommendations-ai-0.10.4.tar.gz/google-cloud-recommendations-ai-0.10.4/google/cloud/recommendationengine_v1beta1/types/common.py | from __future__ import annotations
from typing import MutableMapping, MutableSequence
import proto # type: ignore
__protobuf__ = proto.module(
package="google.cloud.recommendationengine.v1beta1",
manifest={
"FeatureMap",
},
)
class FeatureMap(proto.Message):
r"""FeatureMap represents extra... | PypiClean |
/aims_extract-0.3.tar.gz/aims_extract-0.3/aims/ical_format.py |
from typing import Dict, List
from aims.mytypes import *
import datetime as dt
vcalendar = """\
BEGIN:VCALENDAR\r
VERSION:2.0\r
PRODID:hursts.org.uk\r
{}\r
END:VCALENDAR\r
"""
vevent = """\
BEGIN:VEVENT\r
UID:{uid}\r
DTSTAMP:{modified}\r
DTSTART:{start}\r
DTEND:{end}\r
SUMMARY:{route}\r
{sectors}\
LAST-MODIFIED:{m... | PypiClean |
/rossmann-toolbox-0.1.0.tar.gz/rossmann-toolbox-0.1.0/README.md | 

[](https://codecov.io/gh/labstructbioinf/rossmann-toolbox)
<b> Predic... | PypiClean |
/klaviyo-api-beta-2.0.2.tar.gz/klaviyo-api-beta-2.0.2/src/openapi_client/model/unsubscription_create_job_create_query.py | import re # noqa: F401
import sys # noqa: F401
from openapi_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 |
/edc_auth-0.3.67-py3-none-any.whl/edc_auth/fix_export_permissions.py | from warnings import warn
from django.apps import apps as django_apps
from django.core.exceptions import ObjectDoesNotExist
class ExportPermissionsFixer:
"""
Fix permissions when new permissions are added to the default list
in the model Meta class.
For example. see `edc_models.BaseUuidModel.Meta`
... | PypiClean |
/django_surface_theme-0.0.10-py3-none-any.whl/theme/static/components/tempusdominus-bootstrap-4/src/docs/theme/js/tempusdominus-bootstrap.js | if (typeof jQuery === 'undefined') {
throw new Error('Tempus Dominus Bootstrap4\'s requires jQuery. jQuery must be included before Tempus Dominus Bootstrap4\'s JavaScript.');
}
+function ($) {
var version = $.fn.jquery.split(' ')[0].split('.');
if ((version[0] < 2 && version[1] < 9) || (version[0] === 1 && versi... | PypiClean |
/echarts-china-counties-pypkg-0.0.2.tar.gz/echarts-china-counties-pypkg-0.0.2/echarts_china_counties_pypkg/resources/echarts-china-counties-js/005f40740ded6908da813e8f5d6f577d.js | (function (root, factory) {if (typeof define === 'function' && define.amd) {define(['exports', 'echarts'], factory);} else if (typeof exports === 'object' && typeof exports.nodeName !== 'string') {factory(exports, require('echarts'));} else {factory({}, root.echarts);}}(this, function (exports, echarts) {var log = func... | PypiClean |
/ksc-sdk-python-1.3.63.tar.gz/ksc-sdk-python-1.3.63/kscore/vendored/requests/packages/chardet/euckrfreq.py |
# Sampling from about 20M text materials include literature and computer technology
# 128 --> 0.79
# 256 --> 0.92
# 512 --> 0.986
# 1024 --> 0.99944
# 2048 --> 0.99999
#
# Idea Distribution Ratio = 0.98653 / (1-0.98653) = 73.24
# Random Distribution Ration = 512 / (2350-512) = 0.279.
#
# Typical Distribution Rati... | PypiClean |
/SWX-API-Python-SDK-0.16.tar.gz/SWX-API-Python-SDK-0.16/swx_sdk/model/action_response_element2_delay.py | import re # noqa: F401
import sys # noqa: F401
from swx_sdk.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 |
/labbox-ephys-widgets-jp-0.1.10.tar.gz/labbox-ephys-widgets-jp-0.1.10/js/src/extensions/timeseries/TimeseriesViewNew/Mda.ts | class Mda {
_N1: number = 1
_N2: number = 1
_N3: number = 1
_N4: number = 1
_N5: number = 1
_totalSize: number = 1
_data: Float32Array | Float64Array | Int16Array = new Float32Array(1)
constructor(n1?: number, n2?: number, n3?: number, n4?: number, n5?: number) {
this.allocate(n1 || 1, n2 || 1, n3, n4, n5)
}... | PypiClean |
/jjb-reactive-choice-param-0.3.0.tar.gz/jjb-reactive-choice-param-0.3.0/jjb_reactive_choice_param/reactive_choice_param.py | from random import randint
import xml.etree.ElementTree as XML
from jenkins_jobs.errors import MissingAttributeError
defn = 'org.biouno.unochoice.CascadeChoiceParameter'
choices_type = ['PT_SINGLE_SELECT','PT_MULTI_SELECT','PT_RADIO','PT_CHECKBOX']
def reactive_choice(parser, xml_parent, data):
"""
- reac... | PypiClean |
/pulumi_azure_native-2.5.1a1693590910.tar.gz/pulumi_azure_native-2.5.1a1693590910/pulumi_azure_native/databox/v20221201/get_job.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__ = [
'GetJobResult',
'AwaitableGetJobResult',
'get_job',
'get_job_output',
]
@pulumi.output_type
class GetJobRes... | PypiClean |
/tensorflow_rocm_enhanced-2.4.3-cp36-cp36m-manylinux1_x86_64.whl/tensorflow/python/tpu/tpu_feed.py | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import itertools
import numpy as np
from six.moves import xrange # pylint: disable=redefined-builtin
from tensorflow.compiler.xla.experimental.xla_sharding import xla_sharding
from tensorflow.python.framewor... | PypiClean |
/monk_pytorch_cuda102_test-0.0.1-py3-none-any.whl/monk/pytorch/models/models.py | from monk.pytorch.models.imports import *
from monk.system.imports import *
from monk.pytorch.models.common import set_parameter_requires_grad
#classifier 6
set1 = ["alexnet", "vgg11", "vgg11_bn", "vgg13", "vgg13_bn", "vgg16", "vgg16_bn", "vgg19", "vgg19_bn"]
#classifier
set2 = ["densenet121", "densenet161", "densen... | PypiClean |
/zope.testbrowser-6.0.tar.gz/zope.testbrowser-6.0/src/zope/testbrowser/interfaces.py | import zope.interface
import zope.interface.common.mapping
import zope.schema
__docformat__ = "reStructuredText"
class AlreadyExpiredError(ValueError):
pass
class ICookies(zope.interface.common.mapping.IExtendedReadMapping,
zope.interface.common.mapping.IExtendedWriteMapping,
zop... | PypiClean |
/wavaugment-0.2.tar.gz/wavaugment-0.2/augment/effects.py |
from typing import Dict, List, Optional, Callable, Union, Tuple, Set
import torch
import numpy as np
import torchaudio
from torchaudio.sox_effects.sox_effects import effect_names as get_effect_names
def shutdown_sox() -> None:
pass
# Arguments that we can pass to effects
SoxArg = Optional[List[Union[str, int, ... | PypiClean |
/celery_custom_fix-4.2.0.tar.gz/celery_custom_fix-4.2.0/celery_custom_fix/platforms.py | from __future__ import absolute_import, print_function, unicode_literals
import atexit
import errno
import math
import numbers
import os
import platform as _platform
import signal as _signal
import struct
import sys
import warnings
from collections import namedtuple
from contextlib import contextmanager
from billiard... | PypiClean |
/drf-yasg-1.21.7.tar.gz/drf-yasg-1.21.7/LICENSE.rst | .. |br| raw:: html
<br />
#######
License
#######
********************
BSD 3-Clause License
********************
Copyright (c) 2017 - 2019, Cristian V. <cristi@cvjd.me> |br|\ All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the fol... | PypiClean |
/p4a-django-1.9.1.tar.gz/p4a-django-1.9.1/django/contrib/admin/filters.py | import datetime
from django.contrib.admin.options import IncorrectLookupParameters
from django.contrib.admin.utils import (
get_model_from_relation, prepare_lookup_value, reverse_field_path,
)
from django.core.exceptions import ImproperlyConfigured, ValidationError
from django.db import models
from django.utils im... | PypiClean |
/sandstone-slurm-assist-0.12.0.tar.gz/sandstone-slurm-assist-0.12.0/sandstone_slurm/node_modules/bower/lib/node_modules/aws-sign2/index.js | * Module dependencies.
*/
var crypto = require('crypto')
, parse = require('url').parse
;
/**
* Valid keys.
*/
var keys =
[ 'acl'
, 'location'
, 'logging'
, 'notification'
, 'partNumber'
, 'policy'
, 'requestPayment'
, 'torrent'
, 'uploadId'
, 'uploads'
, 'versionId'
, 'versioning'
... | PypiClean |
/opyv-0.1.1.tar.gz/opyv-0.1.1/README.md | # <a href="https://opyv.org" target="_blank"><img src="artwork/opyv_readme_header.png" width=300 alt="OPyV"> </a>
<p align="center">
<a href="https://pypi.python.org/pypi/opyv">
<img src="https://img.shields.io/pypi/v/opyv.svg" alt = "Release Status">
</a>
<!-- uncomment once a release version is done -->
<!-- <a hre... | PypiClean |
/rainforest_mch-1.3.3.tar.gz/rainforest_mch-1.3.3/docs/reference/rainforest.database.rst | rainforest.database package
=================================
This module provides routines used for database management.
:mod:`rainforest.database.database` : main database class, used as an entry-point to the database
:mod:`rainforest.database.db\_populate` : command-line script used to add data to database
:mod:... | PypiClean |
/birdhousebuilder.recipe.pycsw-0.3.0.tar.gz/birdhousebuilder.recipe.pycsw-0.3.0/birdhousebuilder/recipe/pycsw/__init__.py | import os
from mako.template import Template
from birdhousebuilder.recipe import conda, supervisor, nginx
templ_pycsw = Template(filename=os.path.join(os.path.dirname(__file__), "pycsw.cfg"))
templ_app = Template(filename=os.path.join(os.path.dirname(__file__), "cswapp.py"))
templ_gunicorn = Template(filename=os.path... | PypiClean |
/sparktopandas-1.0.4.tar.gz/sparktopandas-1.0.4/docs/_build/html/_static/js/html5shiv-printshiv.min.js | !function(a,b){function c(a,b){var c=a.createElement("p"),d=a.getElementsByTagName("head")[0]||a.documentElement;return c.innerHTML="x<style>"+b+"</style>",d.insertBefore(c.lastChild,d.firstChild)}function d(){var a=y.elements;return"string"==typeof a?a.split(" "):a}function e(a,b){var c=y.elements;"string"!=typeof c&&... | PypiClean |
/v2/model/list_record_data_v2_response.py |
import pprint
import re
import six
from huaweicloudsdkcore.sdk_response import SdkResponse
class ListRecordDataV2Response(SdkResponse):
"""
Attributes:
openapi_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict): The key i... | PypiClean |
/jupyterlab_rise-0.40.0-py3-none-any.whl/jupyterlab_rise/static/6815.bundle.js | "use strict";(self.webpackChunk_JUPYTERLAB_CORE_OUTPUT=self.webpackChunk_JUPYTERLAB_CORE_OUTPUT||[]).push([[6815],{56815:(e,t,a)=>{a.r(t),a.d(t,{default:()=>u});var n=a(81724),o=a(53745),s=a(90372),l=a(10243),r=a(43132);const i="@jupyterlab/translation-extension:plugin",c={id:"@jupyterlab/translation:translator",descri... | PypiClean |
/historian_data_compression-0.0.14.tar.gz/historian_data_compression-0.0.14/src/historian_data_compression/examples/example_1.py | import pandas as pd
from datetime import datetime, timedelta
from historian_data_compression import point_generator, dead_band_compression, swinging_door_compression
df = pd.read_csv(r"https://datahub.io/core/natural-gas/r/daily.csv")
df["Date"] = pd.to_datetime(df["Date"], format="%Y-%m-%d %H:%M:%S")
df = df.sort_va... | PypiClean |
/pdkutil-0.0.2.zip/pdkutil-0.0.2/README.rst | PDKUtil
=============================================
Stores a pdk file to a barbican container.
Installation
------------
Pip is the preferred way to install PDKUtil: ::
pip install pdkutil
Command-line interface
----------------------
PDKUtil uses Keystone for identity management. Credentials and endpoints ... | PypiClean |
/xpx-chain-0.6.6.tar.gz/xpx-chain-0.6.6/xpxchain/models/metadata/metadata_info.py | from __future__ import annotations
from .address_metadata import AddressMetadata
from .mosaic_metadata import MosaicMetadata
from .namespace_metadata import NamespaceMetadata
from .metadata_type import MetadataType
from ..blockchain.network_type import OptionalNetworkType
from ... import util
__all__ = ['MetadataInfo... | PypiClean |
/cloudbridge-3.1.0.tar.gz/cloudbridge-3.1.0/docs/concepts.rst | Concepts and Organisation
=========================
Object types
------------
Conceptually, CloudBridge consists of the following types of objects.
1. Providers - Represents a connection to a cloud provider, and is
the gateway to using its services.
2. Services - Represents a service provided by a cloud provider,
s... | PypiClean |
/fmoo-audiotools-3.1beta1.tar.gz/fmoo-audiotools-3.1beta1/docs/programming/source/audiotools_player.rst | :mod:`audiotools.player` --- the Audio Player Module
====================================================
.. module:: audiotools.player
:synopsis: the Audio Player Module
The :mod:`audiotools.player` module contains the Player and
AudioOutput classes for playing AudioFiles.
.. function:: audiotools.player.availab... | PypiClean |
/django_linux-2.2.8-py3-none-any.whl/django_linux/db/migrations/serializer.py | import builtins
import collections.abc
import datetime
import decimal
import enum
import functools
import math
import re
import types
import uuid
from django.db import models
from django.db.migrations.operations.base import Operation
from django.db.migrations.utils import COMPILED_REGEX_TYPE, RegexObject
from django.u... | PypiClean |
/pulumi_azure_nextgen-0.6.2a1613157620.tar.gz/pulumi_azure_nextgen-0.6.2a1613157620/pulumi_azure_nextgen/cdn/v20200901/get_afd_origin.py |
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union
from ... import _utilities, _tables
from . import outputs
__all__ = [
'GetAFDOriginResult',
'AwaitableGetAFDOriginResult',
'get_afd_origin',
]
@pulumi.output_type
class GetAFDOriginResult:
"... | PypiClean |
/ztfy.utils-0.4.16.tar.gz/ztfy.utils-0.4.16/src/ztfy/utils/profilehooks.py |
__author__ = "Marius Gedminas (marius@gedmin.as)"
__copyright__ = "Copyright 2004-2006, Marius Gedminas"
__license__ = "MIT"
__version__ = "1.0"
__date__ = "2006-12-06"
import atexit
import inspect
import sys
import re
import cPickle as pickle
# For profiling
from profile import Profile
import pstats
# For hotshot... | PypiClean |
/box-sdk-gen-0.1.3.tar.gz/box-sdk-gen-0.1.3/box_sdk_gen/managers/groups.py | from enum import Enum
from typing import Optional
from typing import Dict
import json
from box_sdk_gen.base_object import BaseObject
from box_sdk_gen.schemas import Groups
from box_sdk_gen.schemas import ClientError
from box_sdk_gen.schemas import Group
from box_sdk_gen.schemas import GroupFull
from box_sdk_ge... | PypiClean |
/pyGSTi-0.9.11.2-cp37-cp37m-win_amd64.whl/pygsti/modelpacks/legacy/std2Q_XYI1.py | import sys as _sys
from collections import OrderedDict as _OrderedDict
from ...circuits import circuitconstruction as _strc
from ...models import modelconstruction as _setc
from .. import stdtarget as _stdtarget
#Qubit 1 == spectator
description = "Idle, X(pi/2), and Y(pi/2) gates"
gates = ['Gii', 'Gxi', 'Gyi']
fidu... | PypiClean |
/nnabla_nas-0.14.0-py3-none-any.whl/nnabla_nas/utils/helper.py |
from collections import OrderedDict
import json
import os
import sys
import csv
import nnabla.communicators as C
from nnabla.ext_utils import get_extension_context
import numpy as np
from pathlib import Path
from hydra.core.hydra_config import HydraConfig
from omegaconf import OmegaConf
from hydra import utils
from... | PypiClean |
/dove-0.0.1-py3-none-any.whl/dove-0.0.1.dist-info/DESCRIPTION.rst | TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
"License" shall mean the terms and conditions for use, reproduction,
and distribution as defined by Sections 1 through 9 of this document.
"Licensor" shall mean the copyright owner or entity authorized by
the c... | PypiClean |
/plaid-python-15.5.0.tar.gz/plaid-python-15.5.0/plaid/model/credit_bank_income_historical_summary.py | import re # noqa: F401
import sys # noqa: F401
from plaid.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,
validate... | PypiClean |
/peer_lilo-0.0.1-py3-none-any.whl/lilo/brace2/__main__.py | from .srim import parse_srim
from .okid import parse_okid
HELP = """
ssid [-p|w <>...] <method> <event> <inputs> <outputs>
ssid [-p|w <>...] <method> -i <inputs> -o <outputs>
-i/--inputs FILE... Input data
-o/--outputs FILE... Output data
Methods:
<method> <outputs> <plots>
srim {dftmcs} {m}
oki... | PypiClean |
/cfflib-2.0.5.tar.gz/cfflib-2.0.5/doc/source/sphinxext/numpydoc.py | import os, re, pydoc
from docscrape_sphinx import get_doc_object, SphinxDocString
import inspect
def mangle_docstrings(app, what, name, obj, options, lines,
reference_offset=[0]):
if what == 'module':
# Strip top title
title_re = re.compile(r'^\s*[#*=]{4,}\n[a-z0-9 -]+\n[#*=]{... | PypiClean |
/mne-bids-pipeline-1.4.0.tar.gz/mne-bids-pipeline-1.4.0/mne_bids_pipeline/steps/sensor/_99_group_average.py | import os
import os.path as op
from collections import defaultdict
from typing import Optional, TypedDict, List, Tuple
from types import SimpleNamespace
import numpy as np
import pandas as pd
from scipy.io import loadmat, savemat
import mne
from mne_bids import BIDSPath
from ..._config_utils import (
get_session... | PypiClean |
/fasttextsearch-0.9-cp38-cp38-win_amd64.whl/textsearch/suffix_array.py |
import _textsearch
import numpy as np
def _renumbering(array: np.ndarray) -> np.ndarray:
"""Renumber element in the input array such that the returned array
contains entries ranging from 0 to M - 1, where M equals
to number of unique entries in the input array.
The order of entries in the output arr... | PypiClean |
/echarts-china-counties-pypkg-0.0.2.tar.gz/echarts-china-counties-pypkg-0.0.2/echarts_china_counties_pypkg/resources/echarts-china-counties-js/b3bebb0bc90d40dc5376c2add68f879d.js | (function (root, factory) {if (typeof define === 'function' && define.amd) {define(['exports', 'echarts'], factory);} else if (typeof exports === 'object' && typeof exports.nodeName !== 'string') {factory(exports, require('echarts'));} else {factory({}, root.echarts);}}(this, function (exports, echarts) {var log = func... | PypiClean |
/stable_baselines-2.10.2-py3-none-any.whl/stable_baselines/common/vec_env/vec_check_nan.py | import warnings
import numpy as np
from stable_baselines.common.vec_env.base_vec_env import VecEnvWrapper
class VecCheckNan(VecEnvWrapper):
"""
NaN and inf checking wrapper for vectorized environment, will raise a warning by default,
allowing you to know from what the NaN of inf originated from.
:p... | PypiClean |
/python-ioc-1.13.0.tar.gz/python-ioc-1.13.0/ioc/schema/adapters.py | import marshmallow
import six
from ioc.schema.requirement import SchemaRequirement
from ioc.schema.dependency import LiteralDependency
from ioc.schema.dependency import SimpleDependency
from ioc.schema.dependency import NestedDependency
from ioc.schema.dependency import DependencyCollection
from ioc.utils import is_va... | PypiClean |
/motion_imitation-0.0.6.tar.gz/motion_imitation-0.0.6/motion_imitation/run.py |
import os
import inspect
currentdir = os.path.dirname(os.path.abspath(inspect.getfile(inspect.currentframe())))
parentdir = os.path.dirname(currentdir)
os.sys.path.insert(0, parentdir)
import argparse
from mpi4py import MPI
import numpy as np
import os
import random
import tensorflow as tf
import time
from motion_im... | PypiClean |
/love_course_2016_2019-2023.3.1.0-py3-none-any.whl/LoveCourse20162019/docs/liang-nan/旭旭《全新情感会员课程》:旭哥——顶级高情商追女生教程:19.《如何让你喜欢的人喜欢你》.md | # 旭旭《全新情感会员课程》:旭哥——顶级高情商追女生教程:19.《如何让你喜欢的人喜欢你》
山山,Hello 现在来了是吧 都过了这边了是吧,来啊 我看看啊,这个 这个 来来来啊 本州的这个,好 等一下啊,好 这个 刚才你们都在另一个频道 是吧,刚都在另一个频道 是吧。
然后这个 现在 我们这个 变幅面广播变听出来好,然后我们都转移回咱们原本的频道,因为这个频道解分了 咱们就可以继续这个,在这个频道去想课 是吧,好 那么 今天咱们的课呢 是一个,回 就是一个总结课。
好吧 一个回顾 好 一个 一个回顾,对 复习,那么咱们到目前为止 也上了19节课,对吧 也上了第19节课了,那么 这个 这个 这个 边跟 边的聊天边听学个想课 ... | PypiClean |
/django-universal-view-decorator-0.1.0.tar.gz/django-universal-view-decorator-0.1.0/src/django_universal_view_decorator/decorators/view_decorator_base.py | import inspect
import types
from ..five import getfullargspec, full_qualname, raise_from
from ..utils import class_property, update_wrapper, wraps
from .view_class_decorator import view_class_decorator
class ViewDecoratorBase(object):
""" Base class for view decorators that can be applied to both regular view fu... | PypiClean |
/intel_tensorflow_avx512-2.13.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl/tensorflow/python/ops/numpy_ops/np_utils.py | """Utility functions for internal use."""
# pylint: disable=g-direct-tensorflow-import
import inspect
import numbers
import os
import re
import numpy as np
from tensorflow.python.framework import dtypes
from tensorflow.python.framework import indexed_slices
from tensorflow.python.framework import tensor_util
from ten... | PypiClean |
/Gdirsync-0.1.0.tar.gz/Gdirsync-0.1.0/README.md | # Gdirsync
[](https://travis-ci.com/chrisbeardy/Gdirsync)
[](https://gdirsync.readthedocs.io/en/latest/?badge=latest)
[ {
typeof exports === 'object' && typeof module !== 'undefined'
&& typeof require === 'function' ? factory(require('../moment')) :
typeof define === 'function' && define.amd ? define(['../moment'], factory) :
factory(global.moment)
}(this, (function (moment) { 'use strict';
... | PypiClean |
/PasteScript-3.3.0.tar.gz/PasteScript-3.3.0/paste/script/checkperms.py | import os
def read_perm_spec(spec):
"""
Reads a spec like 'rw-r--r--' into a octal number suitable for
chmod. That is characters in groups of three -- first group is
user, second for group, third for other (all other people). The
characters are r (read), w (write), and x (executable), though the
... | PypiClean |
/mecord_cli-0.2.7-py3-none-any.whl/mecord/progress_monitor.py | import json
import os
import requests
import time
import platform
import signal
import subprocess
import psutil
from typing import Optional, Dict, Any, List
from multiprocessing import Process, Pipe
TAG = "ProcessMonitor"
processes = []
def log(tag, message):
print("[{}] {}".format(tag, message))
def start(widg... | PypiClean |
/lstosa-0.10.1-py3-none-any.whl/osa/scripts/sequencer_webmaker.py | import logging
import subprocess as sp
import sys
from datetime import datetime, timedelta
from pathlib import Path
from textwrap import dedent
from typing import Iterable
import pandas as pd
from osa.configs import options
from osa.configs.config import cfg
from osa.utils.cliopts import sequencer_webmaker_argparser
... | PypiClean |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.