id stringlengths 1 8 | text stringlengths 6 1.05M | dataset_id stringclasses 1
value |
|---|---|---|
/v2/model/show_pool_response.py |
import pprint
import re
import six
from huaweicloudsdkcore.sdk_response import SdkResponse
class ShowPoolResponse(SdkResponse):
"""
Attributes:
openapi_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict): The key is attrib... | PypiClean |
/accelbyte_py_sdk-0.48.0.tar.gz/accelbyte_py_sdk-0.48.0/accelbyte_py_sdk/api/lobby/models/models_admin_add_profanity_filter_into_list_request.py |
# template file: ags_py_codegen
# AccelByte Gaming Services Lobby Server (3.25.0)
# pylint: disable=duplicate-code
# pylint: disable=line-too-long
# pylint: disable=missing-function-docstring
# pylint: disable=missing-module-docstring
# pylint: disable=too-many-arguments
# pylint: disable=too-many-branches
# pylint:... | PypiClean |
/tableschema-ckan-datastore-1.1.1.tar.gz/tableschema-ckan-datastore-1.1.1/tableschema_ckan_datastore/storage.py | from __future__ import division
from __future__ import print_function
from __future__ import absolute_import
from __future__ import unicode_literals
import six
import json
import collections
import tableschema
from . import utils
from .mapper import Mapper
import logging
log = logging.getLogger(__name__)
# Module ... | PypiClean |
/cdktf_cdktf_provider_aws-17.0.2-py3-none-any.whl/cdktf_cdktf_provider_aws/codepipeline_webhook/__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 CodepipelineWebhook(
_cdktf_9a9027ec.TerraformReso... | PypiClean |
/apache-ariatosca-0.2.0.tar.gz/apache-ariatosca-0.2.0/README.rst | ARIA
====
|Build Status| |Appveyor Build Status| |License| |PyPI release| |Python Versions| |Wheel|
|Contributors| |Open Pull Requests| |Closed Pull Requests|
What is ARIA?
-------------
`ARIA <http://ariatosca.incubator.apache.org/>`__ is a an open-source,
`TOSCA <https://www.oasis-open.org/committees/tosca/>`__-b... | PypiClean |
/pyEMMA-2.5.12.tar.gz/pyEMMA-2.5.12/pyemma/msm/models/pcca.py | from deeptime.markov import PCCAModel, pcca
from pyemma._base.serialization.serialization import SerializableMixIn
class PCCA(PCCAModel, SerializableMixIn):
__serialize_version = 1
"""
PCCA+ spectral clustering method with optimized memberships [1]_
Clusters the first m eigenvectors of a transition ... | PypiClean |
/Diofant-0.14.0a2.tar.gz/Diofant-0.14.0a2/diofant/tensor/index_methods.py | import functools
from ..core import Function
from .indexed import Idx, Indexed
class IndexConformanceException(Exception):
"""Raised if indexes are not consistent."""
def _remove_repeated(inds):
"""Removes repeated objects from sequences
Returns a set of the unique objects and a tuple of all that have... | PypiClean |
/ssh-jump_hive-0.3.7.tar.gz/ssh-jump_hive-0.3.7/jumps/jump_gui.py | import sys
from PyQt5.QtGui import QPixmap,QPalette
from PyQt5 import QtCore,QtWidgets
from PyQt5.QtWidgets import QWidget,QInputDialog,QMainWindow,QDialog,QLabel,QLineEdit,QGridLayout, QToolTip,QPushButton, QApplication
from jumps.Jump_Tunnel import Jump_Tunnel
from PyQt5.QtCore import Qt
import click
import time
im... | PypiClean |
/numericube-twistranet-2.0.0.zip/numericube-twistranet-2.0.0/twistranet/themes/twistheme/static/js/tiny_mce/plugins/table/langs/te_dlg.js | tinyMCE.addI18n('te.table_dlg',{
general_tab:"General",
advanced_tab:"Advanced",
general_props:"General properties",
advanced_props:"Advanced properties",
rowtype:"Row in table part",
title:"Insert/Modify table",
width:"Width",
height:"Height",
cols:"Cols",
rows:"Rows",
cellspacing:"Cellspacing",
cellpadding:"Cellpaddi... | PypiClean |
/bounding_ai_tool-0.3.0-py3-none-any.whl/bounding_ai_tool/python/writer/BopWriterUtility.py | from bounding_ai_tool.python.types.MeshObjectUtility import MeshObject
import json
import os
import glob
import numpy as np
import shutil
from typing import List, Optional
import png
import cv2
import bpy
from mathutils import Matrix
from bounding_ai_tool.python.utility.BlenderUtility import get_all_blender_mesh_objec... | PypiClean |
/cdat-lite-6.0.1.tar.gz/cdat-lite-6.0.1/Packages/cdms2/Lib/hgrid.py | import numpy
import cdms2
import os
import os.path
## import PropertiedClasses
from error import CDMSError
from grid import AbstractGrid, LongitudeType, LatitudeType, VerticalType, TimeType, CoordTypeToLoc
from coord import TransientVirtualAxis
from axis import getAutoBounds, allclose
import bindex
MethodNotImplemente... | PypiClean |
/pulumi_azure_native-2.5.1a1693590910.tar.gz/pulumi_azure_native-2.5.1a1693590910/pulumi_azure_native/cache/list_database_keys.py |
import copy
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from .. import _utilities
__all__ = [
'ListDatabaseKeysResult',
'AwaitableListDatabaseKeysResult',
'list_database_keys',
'list_database_keys_output',
]
@pulumi.output_t... | PypiClean |
/jupyterhub_url_sharing-0.1.0.tar.gz/jupyterhub_url_sharing-0.1.0/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-redeclare.md | # Disallow variable redeclaration (`no-redeclare`)
## Rule Details
This rule extends the base [`eslint/no-redeclare`](https://eslint.org/docs/rules/no-redeclare) rule.
It adds support for TypeScript function overloads, and declaration merging.
## How to use
```jsonc
{
// note you must disable the base rule as it ... | PypiClean |
/spaceone_identity-1.11.0-py3-none-any.whl/spaceone/identity/service/domain_service.py | import logging
from spaceone.core.service import *
from spaceone.core import utils
from spaceone.identity.error import *
from spaceone.identity.manager import DomainManager
from spaceone.identity.manager.domain_secret_manager import DomainSecretManager
from spaceone.identity.model import Domain
_LOGGER = logging.getL... | PypiClean |
/django-smart-admin-2.6.0.tar.gz/django-smart-admin-2.6.0/src/smart_admin/console/sentry.py | import logging
from urllib.parse import ParseResult, urlparse
from admin_extra_buttons.utils import HttpResponseRedirectToReferrer
from django import forms
from django.conf import settings
from django.contrib import messages
from django.core.exceptions import PermissionDenied, ValidationError
from django.http import H... | PypiClean |
/jupyterlab_remote_contents-0.1.1.tar.gz/jupyterlab_remote_contents-0.1.1/node_modules/webpack/lib/optimize/InnerGraphPlugin.js | "use strict";
const PureExpressionDependency = require("../dependencies/PureExpressionDependency");
const InnerGraph = require("./InnerGraph");
/** @typedef {import("estree").ClassDeclaration} ClassDeclarationNode */
/** @typedef {import("estree").ClassExpression} ClassExpressionNode */
/** @typedef {import("estree")... | PypiClean |
/lctime-0.0.17.tar.gz/lctime-0.0.17/README.md | # LibreCell - Lib
Characterization kit for CMOS cells.
This Python package comes with a some stand-alone command-line tools:
* Most notably `lctime` for *recognition* and *characterization* of combinational and sequential cells.
* `sp2bool`: Recognition ('reverse engineering') of transistor networks. This is intended ... | PypiClean |
/stringdiff-1.0.3-py3-none-any.whl/stringdiff.py | class EditDistance:
def __init__(self, reference, hypothesis, unit="word"):
"""
Convert the strings into lists
If the strings are phrases with more than one word, split by space;
if the strings have no space, split into a list of chars;
"""
if unit == "word":
... | PypiClean |
/hello2-2.0.15.tar.gz/hello2-2.0.15/hello/fiftyone/novabot/det_annotate.py | import fiftyone as fo
from fiftyone import ViewField as F
import hello
import hello.fiftyone.annotate as hoa
import hello.fiftyone.coco as hoco
import hello.fiftyone.core as hoc
import hello.fiftyone.dataset as hod
print(hello.__version__)
# %%
dataset_name = "novabot_front_det_20230314_zhengshu_batch01_object9_ver0... | PypiClean |
/img_detector_boxes_red-1.0.4.tar.gz/img_detector_boxes_red-1.0.4/img_detector_boxes_red/model.py | import torch
import torch.nn as nn
import torchvision
from torchvision.models.detection.faster_rcnn import FastRCNNPredictor
# Class id to name mapping
COCO_INSTANCE_CATEGORY_NAMES = [
'__background__', 'person', 'bicycle', 'car', 'motorcycle', 'airplane', 'bus',
'train', 'truck', 'boat', 'traffic light', 'fir... | PypiClean |
/nsj_queue_lib-0.5.6-py3-none-any.whl/nsj_queue_lib/worker_webhook.py | from nsj_gcf_utils.http_util import HttpUtil
from nsj_gcf_utils.json_util import json_loads
from nsj_queue_lib.worker_base import WorkerBase
from nsj_queue_lib.settings import DEFAULT_WEBHOOK_TIMEOUT, logger
class WorkerWebhook(WorkerBase):
def execute(self, payload: str, tarefa: dict[str, any], _) -> str:
... | PypiClean |
/HAllA-0.8.20-py3-none-any.whl/halla/main.py | from .config_loader import config, update_config
from .hierarchy import HierarchicalTree
from .logger import HAllALogger
from .utils.data import preprocess, eval_type, is_all_cont
from .utils.similarity import get_similarity_function
from .utils.stats import get_pvalue_table, pvalues2qvalues, test_pvalue_run_time
from ... | PypiClean |
/insights-core-3.2.14.tar.gz/insights-core-3.2.14/insights/specs/datasources/yum_updates.py | import json
import logging
import time
from insights import datasource, HostContext, SkipComponent
from insights.components.rhel_version import IsRhel7, IsRhel8, IsRhel9
from insights.core.spec_factory import DatasourceProvider
from distutils.version import LooseVersion as version
try:
from functools import cmp_t... | PypiClean |
/arc1_pyqt-2.0.0rc1.tar.gz/arc1_pyqt-2.0.0rc1/arc1pyqt/ProgPanels/STDP.py |
# (c) Radu Berdan
# ArC Instruments Ltd.
# This code is licensed under GNU v3 license (see LICENSE.txt for details)
####################################
from PyQt5 import QtGui, QtCore, QtWidgets
import sys
import os
import re
import numpy as np
import pyqtgraph as pg
import time
from arc1pyqt import Graphics
from... | PypiClean |
/Pycord-Utils-2.3.2.tar.gz/Pycord-Utils-2.3.2/pycord/features/shell.py | from discord.ext import commands
from pycord.codeblocks import Codeblock, codeblock_converter
from pycord.exception_handling import ReplResponseReactor
from pycord.features.baseclass import Feature
from pycord.paginators import PaginatorInterface, WrappedPaginator
from pycord.shell import ShellReader
class ShellFeat... | PypiClean |
/sasa_phys-0.1.tar.gz/sasa_phys-0.1/sasa_phys/stack.py | import numpy as np
from .star_product import *
from .smat_oparations import *
class Layer:
"""
Parrent class of Meta- and NonMetaLayer, contains information about
which symmetry opperations will be applied.
"""
def __init__(self):
self.mirror_bool = False
self.flip_bool = False
... | PypiClean |
/silva.app.sitemap-1.0.tar.gz/silva.app.sitemap-1.0/src/silva/app/sitemap/utils.py |
_marker = object()
class TupleMap(object):
def __init__(self):
self.clear()
def clear(self):
self._store = {}
self._len = 0
def add(self, key, value):
store = self._store
for piece in key:
store = store.setdefault(piece, {})
if None in store... | PypiClean |
/nni_daily-1.5.2005180104-py3-none-manylinux1_x86_64.whl/nni_daily-1.5.2005180104.data/data/nni/node_modules/argparse/lib/action_container.js | 'use strict';
var format = require('util').format;
// Constants
var c = require('./const');
var $$ = require('./utils');
//Actions
var ActionHelp = require('./action/help');
var ActionAppend = require('./action/append');
var ActionAppendConstant = require('./action/append/constant');
var ActionCount = require('./ac... | PypiClean |
/purity-fb-1.12.3.tar.gz/purity-fb-1.12.3/purity_fb/purity_fb_1dot8/__init__.py | from __future__ import absolute_import
# import models into sdk package
from .models.admin import Admin
from .models.admin_api_token import AdminApiToken
from .models.admin_cache import AdminCache
from .models.admin_cache_response import AdminCacheResponse
from .models.admin_response import AdminResponse
from .models.... | PypiClean |
/pulumi_oci-1.9.0a1693465256.tar.gz/pulumi_oci-1.9.0a1693465256/pulumi_oci/jms/get_fleet_java_migration_analysis_result.py |
import copy
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from .. import _utilities
__all__ = [
'GetFleetJavaMigrationAnalysisResultResult',
'AwaitableGetFleetJavaMigrationAnalysisResultResult',
'get_fleet_java_migration_analysis_r... | PypiClean |
/anaconda-build-0.14.0.tar.gz/anaconda-build-0.14.0/binstar_build_client/worker/utils/process_wrappers.py | import logging
import psutil
import requests
import subprocess
import os
import signal
WIN_32 = os.name == 'nt'
if WIN_32:
import win32job
import pywintypes
log = logging.getLogger('binstar.build')
class DockerBuildProcess(object):
def __init__(self, cli, cont):
self.cli = cli
self.cont... | PypiClean |
/fro_AI-0.14.0-py3-none-any.whl/fro_AI/face_evoLve/util/extract_feature_v2.py | import torch
import cv2
import numpy as np
import os
import matplotlib.pyplot as plt
def l2_norm(input, axis = 1):
norm = torch.norm(input, 2, axis, True)
output = torch.div(input, norm)
return output
def extract_feature(img_root, backbone, model_root, device = torch.device("cuda:0" if torch.cuda.is_av... | PypiClean |
/cdktf-cdktf-provider-google_beta-9.0.1.tar.gz/cdktf-cdktf-provider-google_beta-9.0.1/src/cdktf_cdktf_provider_google_beta/data_google_compute_region_instance_template/__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 DataGoogleComputeRegionInstanceTemplate(
_cdktf_9a... | PypiClean |
/nni_yds-0.3.7-py3-none-any.whl/nni_yds-0.3.7.data/data/nni/node_modules/isemail/lib/isemail.js | var Dns = require('dns');
var internals = {
defaultThreshold: 16,
maxIPv6Groups: 8,
categories: {
valid: 1,
dnsWarn: 7,
rfc5321: 15,
cfws: 31,
deprecated: 63,
rfc5322: 127,
error: 255
},
diagnoses: {
// Address is valid
valid:... | PypiClean |
/hipims_io-0.6.2.tar.gz/hipims_io-0.6.2/hipims_io/Landcover.py | import numpy as np
from hydro_raster.Raster import Raster
from . import indep_functions as indep_f
class Landcover:
""" A class to set landcover data and use it to set grid parameters
Attributes:
mask_header: dictionary showing mask georeference
mask_dict: dict with two keys:'value' and 'index'... | PypiClean |
/maze_rl-0.2.0-py3-none-any.whl/maze/train/trainers/es/distributed/es_dummy_distributed_rollouts.py | from typing import Generator, Optional, Union
from maze.core.agent.policy import Policy
from maze.core.agent.torch_model import TorchModel
from maze.core.annotations import override
from maze.core.env.structured_env import StructuredEnv
from maze.core.wrappers.log_stats_wrapper import LogStatsWrapper
from maze.core.wr... | PypiClean |
/pulumi_azure_native-2.5.1a1693590910.tar.gz/pulumi_azure_native-2.5.1a1693590910/pulumi_azure_native/storagecache/get_required_aml_fs_subnets_size.py |
import copy
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from .. import _utilities
from ._inputs import *
__all__ = [
'GetRequiredAmlFSSubnetsSizeResult',
'AwaitableGetRequiredAmlFSSubnetsSizeResult',
'get_required_aml_fs_subnets_... | PypiClean |
/agent_link-0.1.2.tar.gz/agent_link-0.1.2/agent_link/agent_link/modules/.settings/figma_v2/plugin/plugins/dist/functions/encode-images.js | var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { try { step(gene... | PypiClean |
/react-in-jupyter-0.5.tar.gz/react-in-jupyter-0.5/react_jupyter/setup.js | window.REACT_JUPYTER_SETUP_LOADED = true;
/**
* RequireJS dependencies
*/
let d3requireLoaded = null;
window.d3require = library => {
if (d3requireLoaded == null) {
return new Promise(resolve => {
require(["https://cdn.jsdelivr.net/npm/d3-require@1"], d3 => {
const d3require =... | PypiClean |
/holoviews_samap-2.0.0.tar.gz/holoviews_samap-2.0.0/holoviews_samap/core/sheetcoords.py | import numpy as np
from .boundingregion import BoundingBox
from .util import datetime_types
# Note about the 'bounds-master' approach we have adopted
# =======================================================
#
# Our current approach is a "bounds-master" approach, where we trust
# the user's specified x width, and cho... | PypiClean |
/PEATDB-2.3.tar.gz/PEATDB-2.3/pKaTool/dist_geom.py |
from Tkinter import *
import numpy
import numpy.linalg
import sys
import math
def average(l):
"""Calculate the average value of the elements of a list"""
sum=0.0
for i in l:
sum=sum+i
return sum/float(len(l))
def avg_sq(l):
sum=0.0
for i in l:
sum=sum+i
return sum/float(le... | PypiClean |
/django3_auth_saml2-0.6.1-py3-none-any.whl/django3_auth_saml2/backends.py | from django.contrib.auth.models import User
from django.contrib.auth.backends import RemoteUserBackend
from django.core.handlers.wsgi import WSGIRequest
from saml2.response import AuthnResponse
class SAML2DottedEmailUserBackend(RemoteUserBackend):
"""
By default the User name is going to be set to the email a... | PypiClean |
/taskcc-alipay-sdk-python-3.3.398.tar.gz/taskcc-alipay-sdk-python-3.3.398/alipay/aop/api/request/AlipayOpenMiniInnerversionGrayRollbackRequest.py | import json
from alipay.aop.api.FileItem import FileItem
from alipay.aop.api.constant.ParamConstants import *
from alipay.aop.api.domain.AlipayOpenMiniInnerversionGrayRollbackModel import AlipayOpenMiniInnerversionGrayRollbackModel
class AlipayOpenMiniInnerversionGrayRollbackRequest(object):
def __init__(self... | PypiClean |
/django-mdeditor-0.1.20.tar.gz/django-mdeditor-0.1.20/mdeditor/static/mdeditor/js/lib/codemirror/addon/hint/show-hint.js |
(function(mod) {
if (typeof exports == "object" && typeof module == "object") // CommonJS
mod(require("../../lib/codemirror"));
else if (typeof define == "function" && define.amd) // AMD
define(["../../lib/codemirror"], mod);
else // Plain browser env
mod(CodeMirror);
})(function(CodeMirror) {
"use... | PypiClean |
/raptus.article.table-2.0b14.zip/raptus.article.table-2.0b14/raptus/article/table/browser/configlet.py | import transaction
from Acquisition import aq_inner
from Products.Five.browser import BrowserView
from Products.Five.browser.pagetemplatefile import ViewPageTemplateFile
from Products.ZCatalog.ZCatalog import ZCatalog
from Products.CMFCore.utils import getToolByName
from Products.CMFPlone import PloneMessageFactory a... | PypiClean |
/creme-crm-2.4.4.tar.gz/creme-crm-2.4.4/mediagenerator/filters/i18n.py | from hashlib import sha1
from django.apps import apps
from django.conf import settings
from django.http import HttpRequest
from django.utils import translation
from django.utils.encoding import smart_str
from django.views.i18n import JavaScriptCatalog
from mediagenerator.generators.bundles.base import Filter
if sett... | PypiClean |
/mycloudbackup-0.1.0.tar.gz/mycloudbackup-0.1.0/README.rst | =============
MyCloudBackup
=============
We use dozens of cloud services on a daily basis. Most of them are a wonderful
thing, making our lifes easier and bringing great functionality.
But should you trust these services with all your valued private data?
What if one of those services should go down, cease operation... | PypiClean |
/ADPTC_LIB-0.0.7.tar.gz/ADPTC_LIB-0.0.7/README.md | <!--
* @Description:
* @Author: SongJ
* @Date: 2020-12-29 13:52:28
* @LastEditTime: 2021-04-12 10:44:01
* @LastEditors: SongJ
-->
## 自适应密度峰值树聚类(Adaptive Density Peak Tree Clustering)
本算法是在快速搜索与发现密度峰值聚类算法(Clustering by fast search and find of density peaks)CFSFDP的基础上进行改进的成果,主要解决的问题有:
- 手动选择聚类中心
- 单簇多密度峰值导致类簇误分
- ... | PypiClean |
/Products.Archetypes-1.16.6.tar.gz/Products.Archetypes-1.16.6/Products/Archetypes/examples/ComplexType.py | from Products.Archetypes import atapi
from Products.Archetypes import Field
from SimpleType import SimpleType
from Products.Archetypes.config import PKG_NAME
from zope.i18nmessageid import MessageFactory
fields = ['StringField',
'FileField', 'TextField', 'DateTimeField', 'LinesField',
'IntegerFiel... | PypiClean |
/azure_ai_ml-1.9.0-py3-none-any.whl/azure/ai/ml/_restclient/v2023_04_01_preview/aio/operations/_featurestore_entity_containers_operations.py | from typing import Any, AsyncIterable, Callable, Dict, Optional, TypeVar, Union
from azure.core.async_paging import AsyncItemPaged, AsyncList
from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error
from azure.core.pipeline import PipelineRes... | PypiClean |
/panda3d-1.10.13-cp38-cp38-manylinux2010_i686.whl/direct/plugin_standalone/make_osx_bundle.py | import getopt
import sys
import os
import glob
import shutil
import direct
from panda3d.core import Filename, DSearchPath, getModelPath, ExecutionEnvironment
def usage(code, msg = ''):
sys.stderr.write(__doc__)
sys.stderr.write(msg + '\n')
sys.exit(code)
def makeBundle(startDir):
fstartDir = Filename... | PypiClean |
/ai_traineree-0.5.2-py3-none-any.whl/ai_traineree/agents/agent_utils.py | import torch
import torch.nn as nn
from torch import Tensor
EPS = 1e-7
def soft_update(target: nn.Module, source: nn.Module, tau: float) -> None:
for target_param, param in zip(target.parameters(), source.parameters()):
target_param.data.copy_(target_param.data * (1.0 - tau) + param.data * tau) # type: ... | PypiClean |
/pano_airflow-2.7.1-py3-none-any.whl/airflow/utils/helpers.py | from __future__ import annotations
import copy
import re
import signal
import warnings
from datetime import datetime
from functools import reduce
from itertools import filterfalse, tee
from typing import TYPE_CHECKING, Any, Callable, Generator, Iterable, Mapping, MutableMapping, TypeVar, cast
from airflow.configurati... | PypiClean |
/PhotoRename-1.0.8.tar.gz/PhotoRename-1.0.8/photorename/photorename.py |
import argparse
import os
import os.path
import sys
from hashlib import md5, sha224, sha512
parser = argparse.ArgumentParser(
description="Rename photos to give them more generic and unified names")
parser.add_argument("-v", "--verbose",
help="increase output verbosity", action="store_true")
p... | PypiClean |
/smartautomatic_server_frontend-20220907.2-py3-none-any.whl/sas_frontend/frontend_es5/425a2114.js | "use strict";(self.webpackChunksmartautomatic_server_frontend=self.webpackChunksmartautomatic_server_frontend||[]).push([[1359],{25516:function(e,t,r){r.d(t,{i:function(){return n}});var n=function(e){return function(t){return{kind:"method",placement:"prototype",key:t.key,descriptor:{set:function(e){this["__".concat(St... | PypiClean |
/dsp_ml-0.1.8-py3-none-any.whl/dsp/utils/metrics.py | import re
import string
import unicodedata
from collections import Counter
from dsp.utils.utils import print_message
def EM(prediction, answers_list):
assert type(answers_list) == list
return max(em_score(prediction, ans) for ans in answers_list)
def F1(prediction, answers_list):
assert type(answers_l... | PypiClean |
/internet_ml-3.1.0-py3-none-any.whl/internet_ml/NLP/no_context/QA.py | from typing import Any, List, Tuple
import os
import sys
from pathlib import Path
sys.path.append(str(Path(__file__).parent.parent.parent) + "/tools/NLP/data")
sys.path.append(str(Path(__file__).parent.parent.parent) + "/tools/NLP")
sys.path.append(str(Path(__file__).parent.parent.parent) + "/tools")
sys.path.append(... | PypiClean |
/ansible-base-2.10.17.tar.gz/ansible-base-2.10.17/lib/ansible/plugins/callback/minimal.py |
# Make coding more python3-ish
from __future__ import (absolute_import, division, print_function)
__metaclass__ = type
DOCUMENTATION = '''
callback: minimal
type: stdout
short_description: minimal Ansible screen output
version_added: historical
description:
- This is the default output cal... | PypiClean |
/jsonschema-extended-0.6.tar.gz/jsonschema-extended-0.6/jsonschema_extended/cli.py | from __future__ import absolute_import
import argparse
import json
import sys
from jsonschema_extended._reflect import namedAny
from jsonschema_extended.validators import validator_for
def _namedAnyWithDefault(name):
if "." not in name:
name = "jsonschema." + name
return namedAny(name)
def _json_fi... | PypiClean |
/SHET-1.0.1.tar.gz/SHET-1.0.1/src/client/client.py | from twisted.internet.protocol import ReconnectingClientFactory
from twisted.internet.defer import Deferred
from twisted.internet import reactor
from shet import commands
from shet import ShetProtocol
from shet.command_runner import command
from shet import path as shetpath
import os
from types import MethodType
impor... | PypiClean |
/easy_boto3-0.1.7.tar.gz/easy_boto3-0.1.7/README.md | [](https://github.com/jermwatt/easy_boto3/actions/workflows/python-publish.yml)
# `boto3` made easy
`easy_boto3` simplifies `boto3` usage by adding a command line interface (CLI) and abridged Python API tha... | PypiClean |
/Wallace-0.9.1.tar.gz/Wallace-0.9.1/wallace/db/base/sql/table.py | import functools
from wallace.config import GetDBConn
from wallace.db.base.sql.writer import QueryWriter
from wallace.errors import DoesNotExist, SetupError, ValidationError
def catch_missing_table_name(f):
@functools.wraps(f)
def wrapper(cls, *a, **kw):
if not cls.table_name:
raise Setup... | PypiClean |
/TurboGears-1.5.1.tar.gz/TurboGears-1.5.1/turbogears/i18n/data/nb.py |
languages={'vi': 'vietnamesisk', 'el': 'gresk', 'eo': 'esperanto', 'en': 'engelsk', 'zh': 'kinesisk', 'af': 'afrikaans', 'sw': 'swahili', 'ca': 'katalansk', 'am': 'amharisk', 'gu': 'gujarati', 'sv': 'svensk', 'cs': 'tsjekkisk', 'ar': 'arabisk', 'ga': 'irsk', 'eu': 'baskisk', 'et': 'estisk', 'gl': 'galicisk', 'id': 'in... | PypiClean |
/pdc-updater-0.9.3.tar.gz/pdc-updater-0.9.3/pdcupdater/handlers/__init__.py | import abc
import fedmsg.utils
def load_handlers(config):
""" Import and instantiate all handlers listed in the given config. """
for import_path in config['pdcupdater.handlers']:
cls = fedmsg.utils.load_class(import_path)
handler = cls(config)
yield handler
class BaseHandler(object... | PypiClean |
/Mathics_Django-6.0.0-py3-none-any.whl/mathics_django/web/media/js/mathjax/jax/output/HTML-CSS/fonts/STIX/fontdata-extra.js | (function(h){var q="2.7.9";var n=h.FONTDATA.DELIMITERS;var l="STIXGeneral",i="STIXGeneral-bold",k="STIXVariants",o="STIXNonUnicode",f="STIXSizeOneSym",d="STIXSizeTwoSym",b="STIXSizeThreeSym",a="STIXSizeFourSym",p="STIXSizeFiveSym",j="STIXIntegralsD";var m="H",g="V";var e={61:{dir:m,HW:[[0.685,l]],stretch:{rep:[61,l]}},... | PypiClean |
/msgraph-sdk-1.0.0a3.tar.gz/msgraph-sdk-1.0.0a3/msgraph/generated/groups/item/sites/item/term_store/sets/item/children/item/relations/item/relation_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 |
/azure_percept-0.0.13-cp38-cp38-manylinux_2_24_aarch64.whl/azure/iot/percept/extensions/ops/non_max_suppression.py |
import logging as log
import numpy as np
from mo.front.common.partial_infer.utils import int64_array
from mo.front.extractor import bool_to_str
from mo.graph.graph import Node, Graph
from mo.middle.passes.convert_data_type import np_data_type_to_destination_type
from mo.ops.op import Op
from mo.utils.error import Er... | PypiClean |
/django_xprez-0.2.3-py3-none-any.whl/xprez/static/xprez/admin/libs/rangy/rangy-highlighter.min.js | !function(e,t){"function"==typeof define&&define.amd?define(["./rangy-core"],e):"undefined"!=typeof module&&"object"==typeof exports?module.exports=e(require("rangy")):e(t.rangy)}(function(e){return e.createModule("Highlighter",["ClassApplier"],function(e){function t(e,t){return e.characterRange.start-t.characterRange.... | PypiClean |
/projectZ.py-1.1.6.8.tar.gz/projectZ.py-1.1.6.8/projectZ/async_client.py | from .utils import exceptions, objects
from .utils.generator import Generator
from .utils.headers import Headers
from .async_socket import AsyncSocket, AsyncCallBacks
from json import dumps, loads
from sys import maxsize
from random import randint
from aiohttp import ClientSession, MultipartWriter
from asyncio import ... | PypiClean |
/elastalert2-2.13.2-py3-none-any.whl/elastalert/__init__.py | import copy
import elastalert.eql as eql
from elasticsearch import Elasticsearch
from elasticsearch import RequestsHttpConnection
from elasticsearch.client import _make_path
from elasticsearch.client import query_params
from elasticsearch.exceptions import TransportError
class ElasticSearchClient(Elasticsearch):
... | PypiClean |
/JoUtil-1.3.3-py3-none-any.whl/JoTools/utils/LivpUtil.py |
# 处理 iphone 拍照后得到的 livp 格式的图片,解压为 heic + mov 并进一步解析为 jpg
import os
from ..utils.ZipUtil import ZipUtil
import whatimage
import pyheif
import traceback
from PIL import Image
class LivpUtil():
@staticmethod
def unzip_to_heic(file_path, save_folder):
"""将 livp 文件加压为 heic + mov 保存到指定的文件夹,返回保存的 heic 文件... | PypiClean |
/cloudberry-django-freeradius-1234.0.1.0.tar.gz/cloudberry-django-freeradius-1234.0.1.0/django_freeradius/migrations/0003_auto_20170727_1613.py | from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('django_freeradius', '0002_radiusaccounting_acct_update_time'),
]
operations = [
migrations.RenameField(
model_name='radiusaccounting',
... | PypiClean |
/trytond-6.8.3.tar.gz/trytond-6.8.3/doc/tutorial/module/setup_database.rst | .. _tutorial-module-setup-database:
Initialize the database
=======================
By default Tryton, use an SQLite database stored in the folder :file:`db` of
your home directory.
This can be changed in the ``database`` section of the `configuration
<topics-configuration>`.
Now creating a Tryton database is only a... | PypiClean |
/winevtrc-20220106.tar.gz/winevtrc-20220106/docs/sources/eventlog-providers/Provider-Microsoft-Windows-WMP-Setup_WM.md | ## Microsoft-Windows-WMP-Setup_WM
Seen on:
* Windows 10 (1511, 1607, 1703, 1709, 1803, 1809, 1903, 1909, 2004, 20H2)
* Windows 11 (21H2)
* Windows 7
* Windows 8.0
* Windows 8.1
<table border="1" class="docutils">
<tbody>
<tr>
<td><b>Log source(s):</b></td>
<td>Microsoft-Windows-WMP-Setup_WM</td>
... | PypiClean |
/jupyterlab_remote_contents-0.1.1.tar.gz/jupyterlab_remote_contents-0.1.1/node_modules/eslint/lib/rules/max-params.js | "use strict";
//------------------------------------------------------------------------------
// Requirements
//------------------------------------------------------------------------------
const astUtils = require("./utils/ast-utils");
const { upperCaseFirst } = require("../shared/string-utils");
//--------------... | PypiClean |
/py3rosmsgs-1.13-py3-none-any.whl/rospy/rostime.py | import sys
import threading
import time
import traceback
import rospy.exceptions
import genpy
## /time support. This hooks into the rospy Time representation and
## allows it to be overriden with data from the /time topic.
_rostime_initialized = False
_rostime_current = None
_rostime_cond = threading.Condition()
#... | PypiClean |
/golive-django-openapi-0.3.0.tar.gz/golive-django-openapi-0.3.0/golive_django_openapi/openapi/django/model_pdm_meta/base.py |
__all__ = [
"ConfigUnset",
"BaseModelPDMMeta",
]
import re
import typing
from typing import Type
from pydantic import Extra, PrivateAttr, ValidationError, Field
from django.db.models import Model, Field as django_field
from golive_django_openapi.utils.cls_utils import *
from golive_django_openapi.utils.log... | PypiClean |
/ultracart_rest_sdk-4.0.173-py3-none-any.whl/ultracart/model/coupon_item_search_results_response.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 |
/tf_serving_client-0.1.9-py3-none-any.whl/tf_serving_client/tensorflow_serving/apis/regression_pb2.py |
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf import reflection as _reflection
from google.protobuf import symbol_database as _symbol_database
from google.p... | PypiClean |
/tensorflow_io-0.33.0-cp310-cp310-manylinux_2_12_x86_64.manylinux2010_x86_64.whl/tensorflow_io/python/experimental/avro_record_dataset_ops.py | """_AvroRecordDataset"""
import tensorflow as tf
from tensorflow_io.python.ops import core_ops
_DEFAULT_READER_BUFFER_SIZE_BYTES = 256 * 1024 # 256 KB
_DEFAULT_READER_SCHEMA = ""
# From https://github.com/tensorflow/tensorflow/blob/v2.0.0/tensorflow/python/data/ops/readers.py
def _require(condition: bool, err_msg:... | PypiClean |
/crunch-cli-1.8.2.tar.gz/crunch-cli-1.8.2/crunch/main.py | import os
import logging
import click
from . import command, constants, utils, api, library, tester
session = None
debug = False
@click.group()
@click.option("--debug", "enable_debug", envvar=constants.DEBUG_ENV_VAR, is_flag=True, help="Enable debug output.")
@click.option("--api-base-url", envvar=constants.API_BA... | PypiClean |
/MACS_virtual_experiment-0.168.tar.gz/MACS_virtual_experiment-0.168/MACS_virtual_experiment/scripting/macs_to_mcstas.py |
from __future__ import print_function
import sys
import re
import numpy as np
import os
import glob
import os.path
baseName='tiO2_110'
num_threads = 12
#number simulated neutrons
n_mono = 1e6
n=1e6
def getParams(ng0file):
# Gets all parameters relevant to the instrument simulation from the ng0 file
# returns a di... | PypiClean |
/chronos-python-1.2.1.tar.gz/chronos-python-1.2.1/bin/chronos-nagios.py |
# The MIT License (MIT)
#
# Copyright (c) 2014 Asher Feldman
#
# 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, mo... | PypiClean |
/django-widgy-0.9.2.tar.gz/django-widgy-0.9.2/widgy/static/widgy/js/lib/ckeditor/plugins/a11yhelp/dialogs/lang/ca.js | /*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang("a11yhelp","ca",{title:"Instruccions d'Accessibilitat",contents:"Continguts de l'Ajuda. Per tancar aquest quadre de diàleg premi ESC.",legend:[{name:... | PypiClean |
/decentriq_platform-0.21.0-py3-none-any.whl/decentriq_platform/dataset_sink/__init__.py | from google.protobuf.json_format import MessageToDict
from ..proto import serialize_length_delimited, ComputeNodeFormat, parse_length_delimited
from ..node import Node
from typing import Optional, List
from .proto import (
DatasetSinkWorkerConfiguration,
SinkInput
)
__docformat__ = "restructuredtext"
__pdoc__... | PypiClean |
/trackian-homebew-facebook-business-14.0.0.tar.gz/trackian-homebew-facebook-business-14.0.0/facebook_business/adobjects/adstudy.py |
# You are hereby granted a non-exclusive, worldwide, royalty-free license to
# use, copy, modify, and distribute this software in source code or binary
# form for use in connection with the web services and APIs provided by
# Facebook.
# As with any software that integrates with the Facebook platform, your use
# of t... | PypiClean |
/bluebell_akn-2.3.0-py3-none-any.whl/bluebell/akn.py |
from collections import defaultdict
import re
class TreeNode(object):
def __init__(self, text, offset, elements):
self.text = text
self.offset = offset
self.elements = elements
def __iter__(self):
for el in self.elements:
yield el
class TreeNode1(TreeNode):
... | PypiClean |
/loadimpact-1.1.5.tar.gz/loadimpact-1.1.5/ez_setup.py | import os
import shutil
import sys
import tempfile
import tarfile
import optparse
import subprocess
import platform
from distutils import log
try:
from site import USER_SITE
except ImportError:
USER_SITE = None
DEFAULT_VERSION = "1.1.6"
DEFAULT_URL = "https://pypi.python.org/packages/source/s/setuptools/"
d... | PypiClean |
/WorkWeRoBot-1.9.2.tar.gz/WorkWeRoBot-1.9.2/workwerobot/robot.py | from __future__ import absolute_import, unicode_literals
import six
import warnings
from workwerobot.config import Config, ConfigAttribute
from workwerobot.client import Client
from workwerobot.exceptions import ConfigError
from workwerobot.parser import parse_xml, process_message
from workwerobot.replies import proc... | PypiClean |
/aiokafka-commit-0.0.7.tar.gz/aiokafka-commit-0.0.7/aiokafka/producer/message_accumulator.py | import asyncio
import collections
import copy
import time
from aiokafka.errors import (KafkaTimeoutError,
NotLeaderForPartitionError,
LeaderNotAvailableError,
ProducerClosed)
from aiokafka.record.legacy_records import LegacyRecordBa... | PypiClean |
/onegov.swissvotes-1.2.5-py3-none-any.whl/onegov/swissvotes/layouts/vote.py | from cached_property import cached_property
from onegov.core.elements import Link
from onegov.swissvotes import _
from onegov.swissvotes.layouts.default import DefaultLayout
class VoteLayout(DefaultLayout):
@cached_property
def title(self):
return self.model.short_title
@cached_property
def ... | PypiClean |
/djed.static-0.5.tar.gz/djed.static-0.5/docs/local-components.rst | .. _local-components:
Local Components
================
If you develop your own front-end-code (so called "local components"), you
can also publish them with BowerStatic.
You can add one or more local components in this way:
.. code-block:: python
config.add_bower_component('myapp:static/myapp')
To use a loca... | PypiClean |
/python_pptx_fork-0.6.18-py3-none-any.whl/pptx/spec.py | from __future__ import absolute_import
from pptx.enum.shapes import MSO_SHAPE
GRAPHIC_DATA_URI_CHART = "http://schemas.openxmlformats.org/drawingml/2006/chart"
GRAPHIC_DATA_URI_TABLE = "http://schemas.openxmlformats.org/drawingml/2006/table"
# =======================================================================... | PypiClean |
/envs_manager-0.1.3.tar.gz/envs_manager-0.1.3/envs_manager/manager.py |
import os
from pathlib import Path
from envs_manager.backends.venv_interface import VEnvInterface
from envs_manager.backends.conda_like_interface import CondaLikeInterface
DEFAULT_BACKENDS_ROOT_PATH = Path(
os.environ.get(
"BACKENDS_ROOT_PATH", str(Path.home() / ".envs-manager" / "backends")
)
)
DEF... | PypiClean |
/Muntjac-1.1.2.tar.gz/Muntjac-1.1.2/muntjac/data/util/filter/simple_string_filter.py | from muntjac.data.container import IFilter
class SimpleStringFilter(IFilter):
"""Simple string filter for matching items that start with or contain a
specified string. The matching can be case-sensitive or case-insensitive.
This filter also directly supports in-memory filtering. When performing
in-me... | PypiClean |
/hnzhu010507-0.0.9.tar.gz/hnzhu010507-0.0.9/_pytest/_code/source.py | import ast
import inspect
import textwrap
import tokenize
import types
import warnings
from bisect import bisect_right
from typing import Iterable
from typing import Iterator
from typing import List
from typing import Optional
from typing import overload
from typing import Tuple
from typing import Union
class Source:... | PypiClean |
/jay3332-discord.py-2.0.0a0.tar.gz/jay3332-discord.py-2.0.0a0/discord/stage_instance.py | from __future__ import annotations
from typing import Optional, TYPE_CHECKING
from .utils import MISSING, cached_slot_property
from .mixins import Hashable
from .errors import InvalidArgument
from .enums import StagePrivacyLevel, try_enum
__all__ = (
'StageInstance',
)
if TYPE_CHECKING:
from .types.channel ... | PypiClean |
/LambdaTool-0.9.5.tar.gz/LambdaTool-0.9.5/lambdatool/stack_tool.py | class StackTool(object):
_cf_client = None
_stack_name = None
_stage = None
_region = None
def __init__(self, stack_name, stage, profile, region, cf_client):
"""
StackTool is a simple tool to print some specific data about a
CloudFormation stack.
Args:
s... | PypiClean |
/ignition_api-8.1.31.post1.tar.gz/ignition_api-8.1.31.post1/src/system/user.py | from __future__ import print_function
__all__ = [
"addCompositeSchedule",
"addHoliday",
"addRole",
"addSchedule",
"addUser",
"createScheduleAdjustment",
"editHoliday",
"editRole",
"editSchedule",
"editUser",
"getHoliday",
"getHolidayNames",
"getHolidays",
"getNew... | PypiClean |
/edc-protocol-incident-0.1.29.tar.gz/edc-protocol-incident-0.1.29/edc_protocol_incident/admin/protocol_deviation_violation_admin.py | from django.contrib import admin
from django_audit_fields.admin import audit_fieldset_tuple
from edc_model_admin.dashboard import ModelAdminSubjectDashboardMixin
from edc_model_admin.history import SimpleHistoryAdmin
from ..admin_site import edc_protocol_incident_admin
from ..forms import ProtocolDeviationViolationFor... | PypiClean |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.