id stringlengths 1 8 | text stringlengths 6 1.05M | dataset_id stringclasses 1
value |
|---|---|---|
/MetPy-1.5.1-py3-none-any.whl/metpy/interpolate/geometry.py | """Tools for working with geometric objects (points, triangles, polygons)."""
import logging
import math
import numpy as np
from scipy.spatial import cKDTree
log = logging.getLogger(__name__)
def get_points_within_r(center_points, target_points, r):
r"""Get all target_points within a specified radius of a cent... | PypiClean |
/windmill_api-1.165.0-py3-none-any.whl/windmill_api/models/flow_module_value_2_type_5_branches_item_modules_item_retry.py | from typing import Any, Dict, List, Type, TypeVar, Union
import attr
from ..models.flow_module_value_2_type_5_branches_item_modules_item_retry_constant import (
FlowModuleValue2Type5BranchesItemModulesItemRetryConstant,
)
from ..models.flow_module_value_2_type_5_branches_item_modules_item_retry_exponential import... | PypiClean |
/DACBench-0.2.0.tar.gz/DACBench-0.2.0/dacbench/plotting.py | from typing import List, Tuple
import numpy as np
import pandas as pd
import seaborn as sns
sns.set_style("darkgrid")
def space_sep_upper(column_name: str) -> str:
"""
Separates strings at underscores into headings. Used to generate labels from logging names.
Parameters
----------
column_name :... | PypiClean |
/py-servicebus-2.15.tar.gz/py-servicebus-2.15/servicebus/pika/frame.py | import logging
import struct
from servicebus.pika import amqp_object
from servicebus.pika import exceptions
from servicebus.pika import spec
from servicebus.pika.compat import byte
LOGGER = logging.getLogger(__name__)
class Frame(amqp_object.AMQPObject):
"""Base Frame object mapping. Defines a behavior for all... | PypiClean |
/bdrc_util-0.9.44-py3-none-any.whl/archive_ops/GetReadyWorksForStates.py | import argparse
from pathlib import Path
import sys
from BdrcDbLib.DbAppParser import DbArgNamespace, DbAppParser
from BdrcDbLib.DbApp import DbApp
from util_lib.utils import reallypath
from util_lib.version import ver_check
class GetReadyWorks(DbApp):
"""
Records the migration of a volume
"""
def... | PypiClean |
/django-powerpages-0.0.8.tar.gz/django-powerpages-0.0.8/powerpages/migrations/0001_initial.py | from __future__ import unicode_literals
from django.db import migrations, models
import powerpages.dbfields
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Page',
fields=[
(
... | PypiClean |
/PyUpyog-0.5.15-py3-none-any.whl/upyog/util/template.py | from upyog._compat import PY2
# imports - standard imports
import os.path as osp
if PY2:
import cgi as module_escape
else:
import html as module_escape
# imports - module imports
from upyog.util.system import read
from upyog.util.array import sequencify
from upyog.util.imports import import_or_raise
from up... | PypiClean |
/dbpedia_ent-0.1.9-py3-none-any.whl/dbpedia_ent/dto/ent/n1/n/trie_nf.py |
d_trie_nf = {'_': ['nf-browser',
'nf-board',
'nf-104a',
'nf-104',
'nf-il6',
'nf-5a',
'nf-at',
'nf200',
'nf-kb',
'nf110',
'nf-1',
'nf-2',
'nf3',
'nf2',
'nf1'],
'a': ['nfatc2',
'nfatc3',
'nfatc4',
'nf... | PypiClean |
/simple_fpa-1.7.tar.gz/simple_fpa-1.7/simple_fpa/simulator.py | import numpy as np
import pandas as pd
import statsmodels.formula.api as smf
import matplotlib.pyplot as plt
import seaborn as sb
from scipy.stats import norm
import pkg_resources
from .kernels import *
from .estimators import *
from .plots import *
from .calibrate import *
from .inference import *
from multiprocess ... | PypiClean |
/django_bpp-1.0.9-py3-none-any.whl/django_bpp/staticroot/gauge/index.js | 'use strict'
var Plumbing = require('./plumbing.js')
var hasUnicode = require('has-unicode')
var hasColor = require('./has-color.js')
var onExit = require('signal-exit')
var defaultThemes = require('./themes')
var setInterval = require('./set-interval.js')
var process = require('./process.js')
var setImmediate = requir... | PypiClean |
/lanforge_scripts-0.0.13-py3-none-any.whl/lanforge_scripts/py_json/mac_vlan_profile.py | import sys
import os
from pprint import pprint
import time
sys.path.append(os.path.join(os.path.abspath(__file__ + "../../../")))
from lanforge_scripts.py_json.LANforge.lfcli_base import LFCliBase
from lanforge_scripts.py_json.LANforge import LFRequest
from lanforge_scripts.py_json.LANforge import LFUtils
from la... | PypiClean |
/odoo14_addon_l10n_es_partner-14.0.1.0.3-py3-none-any.whl/odoo/addons/l10n_es_partner/readme/CONFIGURE.rst | Para añadir cuentas bancarias a la compañía, el mejor camino es ir a
Contabilidad > Configuración > Contabilidad > Cuentas bancarias.
Para añadir cuentas bancarias a los clientes/proveedores, hay que ir a la
lista de empresas desde cualquiera de los accesos, y pulsar sobre el enlace
"n Cuenta(s) bancaria(s)" que hay e... | PypiClean |
/cemba-data-1.6.5.tar.gz/cemba-data-1.6.5/cemba_data/demultiplex/demultiplex.py | import logging
import pathlib
import re
import subprocess
import pandas as pd
import cemba_data
from .fastq_dataframe import make_fastq_dataframe
from ..mapping.pipelines import make_snakefile, prepare_run, validate_mapping_config
from ..utilities import snakemake, get_configuration
from ..hisat3n import make_snakefi... | PypiClean |
/highcharts_gantt-1.3.0.tar.gz/highcharts_gantt-1.3.0/docs/api/options/plot_options/hlc.rst | ##########################################################################################
:mod:`.hlc <highcharts_gantt.options.plot_options.hlc>`
##########################################################################################
.. contents:: Module Contents
:local:
:depth: 3
:backlinks: entry
--------... | PypiClean |
/mayan-edms-ng-3.0.2.tar.gz/mayan-edms-ng-3.0.2/mayan/apps/common/classes.py | from __future__ import unicode_literals
from django.apps import apps
from django.db import models
from django.urls import reverse
from django.utils.encoding import force_text, python_2_unicode_compatible
from django.utils.translation import ugettext
@python_2_unicode_compatible
class Collection(object):
_registr... | PypiClean |
/bancor_research-3.1.1.tar.gz/bancor_research-3.1.1/bancor_research/bancor_emulator/BancorNetworkInfo.py | from bancor_research.bancor_emulator.solidity import uint, uint128, address, revert
from bancor_research.bancor_emulator.utils import contract, parse
from bancor_research.bancor_emulator import ERC20 as IERC20
from bancor_research.bancor_emulator import TokenGovernance as ITokenGovernance
from bancor_research.bancor_e... | PypiClean |
/django-admin-charts-1.3.0.tar.gz/django-admin-charts-1.3.0/admin_tools_stats/modules.py | import warnings
from typing import Dict
from admin_tools.dashboard import modules
from django.contrib import messages
from .models import DashboardStats
class DashboardChart(modules.DashboardModule):
"""Dashboard module with user registration charts.
Default values are best suited for 2-column dashboard la... | PypiClean |
/epubmaker-0.3.20.zip/epubmaker-0.3.20/src/writers/__init__.py | from __future__ import with_statement
from functools import partial
import os.path
import urllib
from lxml import etree
from lxml.builder import ElementMaker
from epubmaker.lib.Logger import debug, error
import epubmaker.lib.GutenbergGlobals as gg
from epubmaker.lib import MediaTypes
from epubmaker import ParserFac... | PypiClean |
/in-transformers-1.0.0.tar.gz/in-transformers-1.0.0/src/transformers/models/rag/retrieval_rag.py | """RAG Retriever model implementation."""
import os
import pickle
import time
from typing import Iterable, List, Optional, Tuple
import numpy as np
from ...tokenization_utils import PreTrainedTokenizer
from ...tokenization_utils_base import BatchEncoding
from ...utils import cached_file, is_datasets_available, is_fa... | PypiClean |
/cdktf-cdktf-provider-google-9.0.1.tar.gz/cdktf-cdktf-provider-google-9.0.1/src/cdktf_cdktf_provider_google/certificate_manager_certificate_map_entry/__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 cdktf as _cdktf_9a9027ec
import constructs as _constructs_77d1e7e8
class CertificateManagerCertificateMapEntry(
_cdktf_9a90... | PypiClean |
/synmod-0.1.4.tar.gz/synmod-0.1.4/docs/contributing.rst | .. highlight:: shell
============
Contributing
============
Contributions are welcome, and they are greatly appreciated! Every little bit
helps, and credit will always be given.
You can contribute in many ways:
----------------------
Types of Contributions
----------------------
Report Bugs
~~~~~~~~~~~
Report bug... | PypiClean |
/fluidly_flask-0.1.3-py3-none-any.whl/fluidly/flask/validate_content_type.py | from typing import Optional
from flask import Response, request
from fluidly.structlog.base_logger import get_logger
WILDCARD_ACCEPT_HEADER = "*/*"
def extract_root_type(content_type: Optional[str]) -> Optional[str]:
"""Examples of subset content types are:
application/problem+json
image/svg+xml
"... | PypiClean |
/mi.py-3.9.91.tar.gz/mi.py-3.9.91/mi/framework/models/user.py | from __future__ import annotations
from datetime import datetime
from typing import TYPE_CHECKING, Any, AsyncIterator, Dict, List, Optional, Union
import mi.framework.manager as manager
from mi.framework.models.emoji import Emoji
from mi.framework.models.instance import Instance
from mi.types.user import ChannelPaylo... | PypiClean |
/steamship-2.17.27.tar.gz/steamship-2.17.27/docs/nextra/api/steamship.agents.tools.classification.rst | steamship.agents.tools.classification package
=============================================
Submodules
----------
steamship.agents.tools.classification.sentiment\_analysis\_tool module
----------------------------------------------------------------------
.. automodule:: steamship.agents.tools.classification.sentime... | PypiClean |
/cubicweb-vcreview-2.4.0.tar.gz/cubicweb-vcreview-2.4.0/data/cubes.vcreview.js | cw.cubes.vcreview = new Namespace('cw.cubes.vcreview');
/* this function is called on to add activity from inlined form
*
* It calls the [add|eid]_activity method on the jsoncontroller and [re]load
* only the view for the added or edited activity
*/
function addActivity(eid, parentcreated, context) {
validate... | PypiClean |
/python_tackerclient-1.14.0-py3-none-any.whl/tackerclient/osc/v1/events/events.py |
from osc_lib.command import command
from osc_lib import utils
from tackerclient.common import utils as tacker_common_utils
from tackerclient.i18n import _
from tackerclient.osc import sdk_utils
from tackerclient.osc import utils as tacker_osc_utils
from tackerclient.tacker import v1_0 as tackerV10
_attr_map = (
... | PypiClean |
/core/spec.py |
import torch
import torch.nn as nn
class Spectrum(nn.Module):
"""See `this page <https://sp-nitech.github.io/sptk/latest/main/spec.html>`_
for details.
Parameters
----------
fft_length : int >= 2 [scalar]
Number of FFT bins, :math:`L`.
out_format : ['db', 'log-magnitude', 'magnitude... | PypiClean |
/sunshine-conversations-client-9.14.1.tar.gz/sunshine-conversations-client-9.14.1/sunshine_conversations_client/model/custom_update.py | import pprint
import re # noqa: F401
import six
from sunshine_conversations_client.configuration import Configuration
from sunshine_conversations_client.undefined import Undefined
try:
IntegrationUpdateBase = __import__("sunshine_conversations_client.model."+re.sub(r'(?<!^)(?=[A-Z])', '_', "IntegrationUpdateBa... | PypiClean |
/pulumi_gcp-6.65.0a1693462587.tar.gz/pulumi_gcp-6.65.0a1693462587/pulumi_gcp/dns/get_record_set.py |
import copy
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from .. import _utilities
__all__ = [
'GetRecordSetResult',
'AwaitableGetRecordSetResult',
'get_record_set',
'get_record_set_output',
]
@pulumi.output_type
class GetRec... | PypiClean |
/TzaraIPA-0.1.tar.gz/TzaraIPA-0.1/tzara/reminder.py | from Speech import speak
"""
A REMINDER.
Functions: Set, Read, Delete.
Possible amelioration:
1. GUI
2. In delete function, deletes ALL reminders of a given date without asking.
"""
import os
def reminder ():
"""
Initialises the reminder.
"""
speak("You want to: set a new reminder, read reminder, or delete r... | PypiClean |
/Zope-5.8.3-py3-none-any.whl/zmi/styles/resources/ace.ajax.org/ext-searchbox.js | ace.define("ace/ext/searchbox",["require","exports","module","ace/lib/dom","ace/lib/lang","ace/lib/event","ace/keyboard/hash_handler","ace/lib/keys"],function(e,t,n){"use strict";var r=e("../lib/dom"),i=e("../lib/lang"),s=e("../lib/event"),o='.ace_search {background-color: #ddd;color: #666;border: 1px solid #cbcbcb;bor... | PypiClean |
/trading-strategy-backtrader-0.1.tar.gz/trading-strategy-backtrader-0.1/backtrader/fillers.py | from __future__ import (absolute_import, division, print_function,
unicode_literals)
from backtrader.utils.py3 import MAXINT, with_metaclass
from backtrader.metabase import MetaParams
class FixedSize(with_metaclass(MetaParams, object)):
'''Returns the execution size for a given order us... | PypiClean |
/hashdex-0.7.0.tar.gz/hashdex-0.7.0/HISTORY.rst | =======
History
=======
0.6.1 (2020-11-18)
------------------
* Updated development dependencies
* Added python 3.8 support
* Dropped python 2.7, 3.4 support
* Added Dockerfile
0.6.0 (2017-10-28)
------------------
* Added version option to main command
* Added option to move files while checking for duplicates
* Upd... | PypiClean |
/odoo14_addon_attachment_queue-14.0.1.0.1-py3-none-any.whl/odoo/addons/attachment_queue/models/attachment_queue.py |
import logging
from odoo import SUPERUSER_ID, api, fields, models, registry
_logger = logging.getLogger(__name__)
class AttachmentQueue(models.Model):
_name = "attachment.queue"
_description = "Attachment Queue"
_inherits = {"ir.attachment": "attachment_id"}
_inherit = ["mail.thread"]
attachme... | PypiClean |
/openerp-client-5.0.0-3.tar.gz/openerp-client-5.0.0-3/bin/SpiffGtkWidgets/Calendar/Calendar.py | import gtk
import gobject
import pango
import calendar
import datetime
import time
import util
import hippo
from SpiffGtkWidgets.color import to_int as c2i
from CanvasDayRange import CanvasDayRange
class Calendar(hippo.Canvas):
RANGE_WEEK = 1
RANGE_MONTH = 2
RANGE_CUSTOM = 3
def __init__(sel... | PypiClean |
/circus-mattbanderson-0.13.1.tar.gz/circus-mattbanderson-0.13.1/circus/commands/stats.py | from circus.exc import MessageError, ArgumentError
from circus.commands.base import Command
_INFOLINE = ("%(pid)s %(cmdline)s %(username)s %(nice)s %(mem_info1)s "
"%(mem_info2)s %(cpu)s %(mem)s %(ctime)s")
class Stats(Command):
"""\
Get process infos
=================
You can... | PypiClean |
/monk_keras_cuda90-0.0.1-py3-none-any.whl/monk/pytorch/models/features.py | from monk.pytorch.models.imports import *
class CNNVisualizer():
'''
Base class for visualizing features and feature maps of gluon models
Args:
model (): Trained model
is_notebook: Check environment type
True - Using Jupyter-like environment (Notebook)
... | PypiClean |
/alleycat_ui-0.0.5-py3-none-any.whl/alleycat/ui/common.py | from __future__ import annotations
from dataclasses import dataclass
from functools import reduce
from typing import Any, Iterable, Iterator, Optional, Tuple, Union
from returns.maybe import Maybe, Nothing, Some
@dataclass(frozen=True)
class Point(Iterable):
x: float
y: float
__slots__ = ["x", "y"]
... | PypiClean |
/alipay-python-3.3.17.tar.gz/alipay-python-3.3.17/alipay/aop/api/domain/InputFieldModel.py | import json
from alipay.aop.api.constant.ParamConstants import *
from alipay.aop.api.domain.ValidationRule import ValidationRule
class InputFieldModel(object):
def __init__(self):
self._default_value = None
self._field_name = None
self._field_tips = None
self._field_title = None
... | PypiClean |
/molo.core-11.3.2-py3-none-any.whl/molo/core/migrations/0052_update_permissions_for_groups.py | from __future__ import unicode_literals
from django.db import migrations
from django.core.management.sql import emit_post_migrate_signal
def update_permissions_for_group(apps, schema_editor):
'''
Update permissions for some users.
Give bulk-delete permissions to moderators.
Give edit permission to ... | PypiClean |
/size_constrained_clustering-0.1.2-cp36-cp36m-macosx_10_7_x86_64.whl/size_constrained_clustering/sklearn_import/base.py | import warnings
from collections import defaultdict
import numpy as np
import six
from sklearn_import import __version__
from sklearn_import.funcsigs import signature
class BaseEstimator(object):
"""Base class for all estimators in scikit-learn
Notes
-----
All estimators should specify all the para... | PypiClean |
/atriumsports_sdk-1.6.0.tar.gz/atriumsports_sdk-1.6.0/atriumsports/datacore/openapi/models/season_entities_list_model_organization.py | # noqa: E501
from __future__ import annotations
import json
import pprint
import re # noqa: F401
from typing import Optional
from pydantic import BaseModel, Field, StrictStr, validator
class SeasonEntitiesListModelOrganization(BaseModel):
"""
The organization that this season entities belongs to
"""
... | PypiClean |
/aiida_s3-0.2.0-py3-none-any.whl/aiida_s3/repository/azure_blob.py | """Implementation of the :py:`aiida.repository.backend.abstract.AbstractRepositoryBackend` using Azure Blob Storage."""
from __future__ import annotations
import contextlib
import tempfile
import typing as t
import uuid
from aiida.repository.backend.abstract import AbstractRepositoryBackend
from azure.storage.blob im... | 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/bbe01744fb3d8d0eaafc8ef3323a0ace.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 |
/openpyxl_grid-0.0.21-py3-none-any.whl/openpyxl_grid/xl/xlocation.py | import null as null
from openpyxl.utils import get_column_letter
class LType:
single = 0
range = 1
col = 2
row = 3
class XLocation:
sheetName = null
sRow = 1
sCol = 1
eRow = 1
eCol = 1
label = null
lType = LType.single
innerSheet = False
isColShift = False
col... | PypiClean |
/apolitical-data-viz-1.1.1.tar.gz/apolitical-data-viz-1.1.1/apol_dataviz/colors.py |
import numpy as np
import matplotlib as mpl
import matplotlib.pyplot as plt
plt.ion()
import seaborn as sns
sns.set_color_codes()
class ColorDefinitions:
blueTeal = "#00B3BF"
shockPink = "#ED1F7A"
strongPurple = "#6B3ECD"
paleOrange = "#FF7550"
mintGreen = "#5ECE8A"
goldenYellow = "#FCCA4C... | PypiClean |
/dbxconfig-2.4.0.tar.gz/dbxconfig-2.4.0/README.md | # dbxconfig
Configuration framework for databricks pipelines.
Define configuration and table dependencies in yaml config then get the table mappings config model:
Define your tables.
```yaml
landing:
landing_dbx_patterns:
customer_details_1: null
customer_details_2: null
raw:
raw_dbx_patterns:
custo... | PypiClean |
/training-grounds-0.0.2.tar.gz/training-grounds-0.0.2/tg/common/ml/batched_training/extractors.py | from typing import *
import copy
from yo_fluq_ds import KeyValuePair
import pandas as pd
from .data_bundle import DataBundle
class IdentityTransform:
"""
Transformer that does not do enything
"""
def transform(self, df):
return df
def fit(self,X, y =None):
self.columns = X.colu... | PypiClean |
/vumi-message-store-0.1.4.tar.gz/vumi-message-store-0.1.4/vumi_message_store/api/message_export_worker.py | from twisted.application.internet import StreamServerEndpointService
from twisted.internet.defer import inlineCallbacks
from twisted.web import http
from twisted.web.resource import Resource
from vumi.config import (
ConfigDict, ConfigText, ConfigServerEndpoint, ServerEndpointFallback)
from vumi.persist.txriak_man... | PypiClean |
/alipay-sdk-python-pycryptodome-3.3.202.tar.gz/alipay-sdk-python-pycryptodome-3.3.202/alipay/aop/api/request/AlipayEcoMycarParkingCardbarcodeCreateRequest.py | import json
from alipay.aop.api.FileItem import FileItem
from alipay.aop.api.constant.ParamConstants import *
from alipay.aop.api.domain.AlipayEcoMycarParkingCardbarcodeCreateModel import AlipayEcoMycarParkingCardbarcodeCreateModel
class AlipayEcoMycarParkingCardbarcodeCreateRequest(object):
def __init__(self... | PypiClean |
/django-simple-cookie-consent-0.1.1.tar.gz/django-simple-cookie-consent-0.1.1/django_simple_cookie_consent/south_migrations/0001_initial.py | from south.utils import datetime_utils as datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding model 'CookieConsentSettings'
db.create_table(u'django_simple_cookie_consent_cookieconse... | PypiClean |
/RsCMPX_WcdmaMeas-4.0.185.tar.gz/RsCMPX_WcdmaMeas-4.0.185/RsCMPX_WcdmaMeas/Internal/ConverterFromScpiString.py |
from enum import Enum
from .Conversions import str_to_bool, str_to_int, str_to_int_or_bool, str_to_float, str_to_float_or_bool, str_to_scalar_enum_helper
from .Conversions import str_to_str_list, str_to_bool_list, str_to_int_list, str_to_int_or_bool_list, str_to_float_list, str_to_float_or_bool_list, str_to_list_enum... | PypiClean |
/Biosaur-2.0.3.tar.gz/Biosaur-2.0.3/biosaur_src/utills.py | import logging
import warnings
warnings.formatwarning = lambda msg, *args, **kw: str(msg) + '\n'
logger = logging.getLogger(__name__)
from pyteomics import pepxml, achrom, auxiliary as aux, mass, fasta, mzid, parser
import pandas as pd
def add_mod_info(df_raw, mod):
sequence, mods_counter = df_raw['peptide'], df_... | PypiClean |
/utf_remote-0.5.1-py3-none-any.whl/dataplicity/m2m/packetbase.py | from __future__ import unicode_literals
from __future__ import print_function
"""
Packet management
"""
from . import bencode
from ..compat import int_types, binary_type, text_type, with_metaclass
class PacketError(Exception):
"""A packet format error."""
class PacketFormatError(PacketError):
"""Packet i... | PypiClean |
/sandstone-slurm-assist-0.12.0.tar.gz/sandstone-slurm-assist-0.12.0/sandstone_slurm/node_modules/bower/lib/node_modules/requireg/node_modules/resolve/test/mock.js | var test = require('tap').test;
var resolve = require('../');
test('mock', function (t) {
t.plan(6);
var files = {
'/foo/bar/baz.js' : 'beep'
};
function opts (basedir) {
return {
basedir : basedir,
isFile : function (file, cb) {
cb(null... | PypiClean |
/Aglyph-3.0.0.tar.gz/Aglyph-3.0.0/aglyph/component.py |
# Copyright (c) 2006, 2011, 2013-2018 Matthew Zipay.
#
# Permission is hereby granted, free of charge, to any person
# obtaining a copy of this software and associated documentation
# files (the "Software"), to deal in the Software without
# restriction, including without limitation the rights to use,
# copy, modify, ... | PypiClean |
/horizon-23.2.0.tar.gz/horizon-23.2.0/openstack_dashboard/static/app/core/cloud-services/hz-if-settings.directive.js | (function () {
'use strict';
angular
.module('horizon.app.core.cloud-services')
.directive('hzIfSettings', hzSettingsToggle);
hzSettingsToggle.$inject = [
'hzPromiseToggleTemplateDirective',
'horizon.app.core.openstack-service-api.settings'
];
/**
* @ngdoc directive
* @name horizon.ap... | PypiClean |
/rife-ncnn-vulkan-python-1.2.1.tar.gz/rife-ncnn-vulkan-python-1.2.1/rife_ncnn_vulkan_python/rife-ncnn-vulkan/src/ncnn/python/pybind11/docs/advanced/pycpp/utilities.rst | Utilities
#########
Using Python's print function in C++
====================================
The usual way to write output in C++ is using ``std::cout`` while in Python one
would use ``print``. Since these methods use different buffers, mixing them can
lead to output order issues. To resolve this, pybind11 modules c... | PypiClean |
/novel_dl-1.6.2-py3-none-any.whl/novel_dl/downloader/default.py | import time, re
from urllib.parse import urlparse, urljoin
from datetime import datetime as dtime
from pytz import timezone
from requests import Session
from requests.exceptions import ConnectionError
from requests.adapters import HTTPAdapter
from urllib3.util.retry import Retry
from bs4 import BeautifulSoup as bs4
fro... | PypiClean |
/OLCTools-1.3.5.tar.gz/OLCTools-1.3.5/olctools/databasesetup/get_mlst.py | from olctools.accessoryFunctions.accessoryFunctions import make_path
from argparse import ArgumentParser
from urllib.parse import urlparse
import xml.dom.minidom as xml
import urllib.request as url
import ssl
import os
"""
Software Copyright License Agreement (BSD License)
The copyrights to the software code for SRST2 ... | PypiClean |
/ams_dott_runtime-1.1.0-py3-none-win_amd64.whl/ams_dott_runtime-1.1.0.data/data/dott_data/apps/python27/python-2.7.13/Lib/copy_reg.py | from types import ClassType as _ClassType
__all__ = ["pickle", "constructor",
"add_extension", "remove_extension", "clear_extension_cache"]
dispatch_table = {}
def pickle(ob_type, pickle_function, constructor_ob=None):
if type(ob_type) is _ClassType:
raise TypeError("copy_reg is not intended f... | PypiClean |
/wxPython310-4.1.2a2-cp310-cp310-win_amd64.whl/wx/lib/gizmos/dynamicsash.py | import wx
import wx.siplib
#----------------------------------------------------------------------------
# Styles
# DS_MANAGE_SCROLLBARS is a default style of DynamicSashWindow which
# will cause it to respond to scrollbar events for your application by
# automatically scrolling the child view.
DS_MANAGE_SCROLLBARS =... | PypiClean |
/AwesomeTkinter-2021.11.8-py3-none-any.whl/awesometkinter/label.py | import tkinter as tk
from tkinter import font as tkfont
class AutoWrappingLabel(tk.Label):
"""auto-wrapping label
wrap text based on widget changing size
"""
def __init__(self, parent=None, justify='left', anchor='w', **kwargs):
tk.Label.__init__(self, parent, justify=justify, anchor=anchor, ... | PypiClean |
/django-skylark-0.4.6.tar.gz/django-skylark-0.4.6/src/skylark/templates/chirp/media/dojox/storage/AirDBStorageProvider.js | if(!dojo._hasResource["dojox.storage.AirDBStorageProvider"]){ //_hasResource checks added by build. Do not use _hasResource directly in your code.
dojo._hasResource["dojox.storage.AirDBStorageProvider"] = true;
dojo.provide("dojox.storage.AirDBStorageProvider");
dojo.require("dojox.storage.manager");
dojo.require("dojo... | PypiClean |
/imcsdk_ecoen66-0.9.20.tar.gz/imcsdk_ecoen66-0.9.20/imcsdk/mometa/kmip/KmipServerLogin.py |
from ...imcmo import ManagedObject
from ...imccoremeta import MoPropertyMeta, MoMeta
from ...imcmeta import VersionMeta
class KmipServerLoginConsts:
ADMIN_ACTION_CLEAR = "clear"
class KmipServerLogin(ManagedObject):
"""This is KmipServerLogin class."""
consts = KmipServerLoginConsts()
naming_props... | PypiClean |
/infoblox-netmri-3.8.0.0.tar.gz/infoblox-netmri-3.8.0.0/infoblox_netmri/api/remote/models/device_perf_hourly_remote.py | from ..remote import RemoteModel
from infoblox_netmri.utils.utils import check_api_availability
class DevicePerfHourlyRemote(RemoteModel):
"""
Contains hourly summaries of device performance statistics.
| ``DevicePerfHourlyID:`` The internal NetMRI identifier for this performance record.
| ``attri... | PypiClean |
/aioice-0.8.0.tar.gz/aioice-0.8.0/docs/changelog.rst | Changelog
=========
.. currentmodule:: aioice
0.7.7
-----
* Close underlying transport when a TURN allocation is deleted.
* Shutdown mDNS stack when it is no longer referenced.
* Rewrite asynchronous tests as coroutines.
0.7.6
-----
* Ensure `dnspython` version is at least 2.0.0.
* Avoid 400 error when using ... | PypiClean |
/js_sdk-12.0.0.tar.gz/js_sdk-12.0.0/jumpscale/clients/mail/mail.py | from jumpscale.loader import j
import smtplib
import mimetypes
from email import encoders
from email.mime.audio import MIMEAudio
from email.mime.base import MIMEBase
from email.mime.image import MIMEImage
from email.mime.multipart import MIMEMultipart
from email.mime.text import MIMEText
from jumpscale.clients.base im... | PypiClean |
/certora_cli_alpha_oz_gambitlinux-20230710.11.11.234001-py3-none-macosx_10_9_universal2.whl/certora_cli/EVMVerifier/certoraContextValidator.py | import json
import logging
import os
import re
import string
import sys
import itertools
import time
from copy import deepcopy
from pathlib import Path
from typing import Dict, List, Tuple, Set, Any
import EVMVerifier.certoraContext as Ctx
import EVMVerifier.certoraContextAttribute as Attr
import EVMVerifier.certoraVa... | PypiClean |
/h2o_pysparkling_2.1-3.32.1.7-1.tar.gz/h2o_pysparkling_2.1-3.32.1.7-1/h2o/sklearn/__init__.py | import inspect
from operator import attrgetter
import sys
from sklearn.base import ClassifierMixin, RegressorMixin
from .. import automl
from .. import estimators
from .. import transforms
from .wrapper import estimator, params_as_h2o_frames, register_module, transformer, H2OConnectionMonitorMixin, \
H2OEstimator... | PypiClean |
/RawGithubURL-0.1.2.tar.gz/RawGithubURL-0.1.2/README.md | # Get Github Resource Real URL
```
1、GitHub文件在线访问地址
https://github.com/zhuifengshen/AppSetting/blob/master/settingview.PNG
2、添加获取真实访问地址的参数
https://github.com/zhuifengshen/AppSetting/blob/master/settingview.PNG?raw=true
3、返回文件在GitHub上的真实访问地址
https://raw.githubusercontent.com/zhuifengshen/AppSetting/master/settingview.P... | PypiClean |
/pre_commit_update-0.0.8-py3-none-any.whl/README.md | # pre-commit-update




**pre-commit-update** is a simple CLI tool to... | PypiClean |
/Bubot_AuthService-0.0.8-py3-none-any.whl/BubotObj/OcfDevice/subtype/AuthService/static/ui/js/chunk-ba64f62c.cb2f3043.js | (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-ba64f62c"],{"670e":function(t,e,a){"use strict";var r=a("fa89"),n=a.n(r);n.a},e729:function(t,e,a){"use strict";a.r(e);var r=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("v-card",{staticClass:"pa-4",attrs:{flat:""}},[a("div",{class:"... | PypiClean |
/isso-cn-0.12.3rc1.tar.gz/isso-cn-0.12.3rc1/isso/js/count.dev.js | (function () {
/**
* @license almond 0.3.3 Copyright jQuery Foundation and other contributors.
* Released under MIT license, http://github.com/requirejs/almond/LICENSE
*/
//Going sloppy to avoid 'use strict' string cost, but strict practices should
//be followed.
/*global setTimeout: false */
var requirejs, require... | PypiClean |
/bewegung-0.0.7.tar.gz/bewegung-0.0.7/docs/index.rst | .. |logo| image:: _static/logo01.svg
:width: 300
|logo|
bewegung - a versatile video renderer
=====================================
*/bəˈveːɡʊŋ/* - German, noun, feminine: `motion / movement / animation`_
.. _motion / movement / animation: https://dict.leo.org/englisch-deutsch/bewegung
.. |docs_master| image:: ht... | PypiClean |
/sage-superset-1.0.0.tar.gz/sage-superset-1.0.0/superset/static/assets/plugins_plugin-chart-echarts_src_Pie_EchartsPie_tsx.b66b2938.chunk.js | "use strict";
/*
* ATTENTION: An "eval-source-map" devtool has been used.
* This devtool is neither made for production nor for readable output files.
* It uses "eval()" calls to create a separate source file with attached SourceMaps in the browser devtools.
* If you are trying to read the output file, select a dif... | PypiClean |
/odoo12_addon_connector_magento-12.0.1.1.7-py3-none-any.whl/odoo/addons/connector_magento/models/sale_order/common.py |
import logging
import xmlrpc.client
import odoo.addons.decimal_precision as dp
from odoo import models, fields, api, _
from odoo.addons.connector.exception import IDMissingInBackend
from odoo.addons.queue_job.job import job
from odoo.addons.component.core import Component
from ...components.backend_adapter import M... | PypiClean |
/gocept.collmex-2.0.1.tar.gz/gocept.collmex-2.0.1/README.rst | .. contents::
.. image:: https://github.com/gocept/gocept.collmex/workflows/tests/badge.svg
:target: https://github.com/gocept/gocept.collmex/actions?query=workflow%3Atests
.. image:: https://coveralls.io/repos/github/gocept/gocept.collmex/badge.svg?branch=master
:target: https://coveralls.io/git... | PypiClean |
/django-glitter-0.2.10.tar.gz/django-glitter-0.2.10/glitter/pages/admin.py |
from __future__ import unicode_literals
from functools import update_wrapper
from django.apps import apps
from django.conf import settings
from django.conf.urls import url
from django.contrib import admin
from django.contrib.admin.options import csrf_protect_m
from django.core.exceptions import PermissionDenied
from... | PypiClean |
/z3c.recipe.template-0.1.tar.gz/z3c.recipe.template-0.1/z3c/recipe/template/README.txt | Detailed Description
********************
Simple creation of a file out of a template
===========================================
Lets create a minimal `buildout.cfg` file::
>>> write('buildout.cfg',
... '''
... [buildout]
... parts = template
... offline = true
...
... [template]
... recipe = z3c.re... | PypiClean |
/django_Tinymce4_lsu-3.0-py3-none-any.whl/tinymce/static/tinymce/js/tinymce/themes/inlite/config/bolt/bootstrap-demo.js | (function (scope) {
var ephox = scope.ephox = scope.ephox || {};
var bolt = ephox.bolt = ephox.bolt || {};
var def = function (deps, factory) {
return factory.apply(null, deps);
};
var kernel = bolt.kernel = bolt.kernel || {};
kernel.api = kernel.api || {};
kernel.async = kernel.api || {};
kernel.fp = kernel.fp ||... | PypiClean |
/pensando_dss-1.62.2-py3-none-any.whl/pensando_dss/psm/model/search_entry.py | import re # noqa: F401
import sys # noqa: F401
import nulltype # noqa: F401
from pensando_dss.psm.model_utils import ( # noqa: F401
ApiTypeError,
ModelComposed,
ModelNormal,
ModelSimple,
cached_property,
change_keys_js_to_python,
convert_js_args_to_python_args,
date,
datetime,
... | PypiClean |
/compas_fofin-0.7.0.tar.gz/compas_fofin-0.7.0/src/compas_fofin/rhino/ui/FoFin/dev/FF_cablemesh_scale_q_cmd.py | from __future__ import print_function
from __future__ import absolute_import
from __future__ import division
import Rhino
import compas_rhino
from compas_ui.ui import UI
from compas_fofin.objects import CableMeshObject
__commandname__ = "FF_cablemesh_scale_q"
@UI.error()
def RunCommand(is_interactive):
ui = UI... | PypiClean |
/django-oauth-api-0.9.0.tar.gz/django-oauth-api-0.9.0/oauth_api/handlers.py | from oauthlib import oauth2
from oauthlib.common import urlencode
from rest_framework.request import Request
from oauth_api.exceptions import OAuthAPIError, FatalClientError
class OAuthHandler(object):
def __init__(self, server):
self.server = server
def extract_params(self, request):
if i... | PypiClean |
/pulumi_google_native-0.31.2a1689827148.tar.gz/pulumi_google_native-0.31.2a1689827148/pulumi_google_native/servicedirectory/v1beta1/get_namespace.py |
import copy
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from ... import _utilities
__all__ = [
'GetNamespaceResult',
'AwaitableGetNamespaceResult',
'get_namespace',
'get_namespace_output',
]
@pulumi.output_type
class GetName... | PypiClean |
/pg_cloudconfig-0.6.tar.gz/pg_cloudconfig-0.6/README.md | 
# Intro pg_cloudconfig
Tool to set optimized defaults for PostgreSQL in virtual environments (changes settings without asking for confirmation).
Should be run as the same user as PostgreSQL.
`pg_version` and `pg_clustername` are used to choose a clus... | PypiClean |
/sila2lib_implementations-0.1.1-py3-none-any.whl/sila2lib_implementations/BlueVary/BlueVaryService/BlueVaryService_server.py | __version__ = "1.0"
import os
import sys
import logging
import argparse
# Import the main SiLA library
from sila2lib.sila_server import SiLA2Server
# Import gRPC libraries of features
from sila2lib_implementations.BlueVary.BlueVaryService.DeviceServicer.gRPC import DeviceServicer_pb2
from sila2lib_implementations.Bl... | PypiClean |
/AltAnalyze-2.1.3.15.tar.gz/AltAnalyze-2.1.3.15/altanalyze/stats_scripts/mpmath/functions/factorials.py | from ..libmp.backend import xrange
from .functions import defun, defun_wrapped
@defun
def gammaprod(ctx, a, b, _infsign=False):
a = [ctx.convert(x) for x in a]
b = [ctx.convert(x) for x in b]
poles_num = []
poles_den = []
regular_num = []
regular_den = []
for x in a: [regular_num, poles_num... | PypiClean |
/AMDirT-1.4.3.tar.gz/AMDirT-1.4.3/README.md | [](https://doi.org/10.5281/zenodo.4003825) [](https://pypi.org/project/AMDirT) [](https://amdirt.readthedocs.io/en/dev/?ba... | PypiClean |
/GenMotion-0.0.4-py3-none-any.whl/genmotion/algorithm/action_conditioned/models/modeltype/cae.py | import torch
import torch.nn as nn
from ..tools.losses import get_loss_function
from ..rotation2xyz import Rotation2xyz
class CAE(nn.Module):
def __init__(self, encoder, decoder, device, lambdas, latent_dim, outputxyz,
pose_rep, glob, glob_rot, translation, jointstype, vertstrans, **kwargs):
... | PypiClean |
/django_page_slapper-2.0a10-py3-none-any.whl/page/static/tinymce/js/tinymce/plugins/autosave/plugin.min.js | !function(){var a={},b=function(b){for(var c=a[b],e=c.deps,f=c.defn,g=e.length,h=new Array(g),i=0;i<g;++i)h[i]=d(e[i]);var j=f.apply(null,h);if(void 0===j)throw"module ["+b+"] returned undefined";c.instance=j},c=function(b,c,d){if("string"!=typeof b)throw"module id must be a string";if(void 0===c)throw"no dependencies ... | PypiClean |
/jupyterlab_remote_contents-0.1.1.tar.gz/jupyterlab_remote_contents-0.1.1/node_modules/caniuse-lite/data/regions/GB.js | module.exports={C:{"48":0.00503,"52":0.0302,"59":0.0151,"78":0.05537,"84":0.02014,"87":0.02517,"88":0.00503,"89":0.02014,"90":0.07551,"91":0.04027,"92":0.00503,"93":0.01007,"94":0.0151,"95":0.03524,"96":0.82054,"97":1.2736,"98":0.00503,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31... | PypiClean |
/ganbase-0.0.1.tar.gz/ganbase-0.0.1/README.md | # Introduction
[](http://ganbase.readthedocs.io/en/latest)
[](https://pypi.python.org/pypi/ganbase)
[]()
[
- [Why garage?](#why-garage)
- [Kick Start garage](#kick-start-garage)
- [Open Source Support](#open-source-support)
- [Resources](#resources)
## What is garage?
garage is a reinforcement learning (RL) toolkit for developing and evaluat... | PypiClean |
/yuna-db-0.2.5.tar.gz/yuna-db-0.2.5/src/yuna/plugins.py | from json import dumps as json_dumps
from json import loads as json_loads
from typing import Any, Callable, Dict, Iterator, List, Optional
import lmdb
from .lmdb_util import YUNA_DEFAULT_MAX_DB_SIZE, YUNA_DEFAULT_MAX_TABLES
from .lmdb_util import YUNA_DB_META_KEY, YUNA_FILE_EXTENSION
from .lmdb_util import _lmdb_... | PypiClean |
/tf-idem-auto-0.1.3.tar.gz/tf-idem-auto-0.1.3/tf_idem_auto/tf_idem_auto/tf_state_data_processor.py | import json
import os
import pathlib
import boto3
# Processing resources
def process_tf_state_resources(hub, tf_state_resources, list_of_modules):
processed_tf_state_resources = []
idem_resource_types = (
set()
) # Set of unique idem_resource_types, later used to perform 'Idem Describe' upon
... | PypiClean |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.