id
stringlengths
1
8
text
stringlengths
6
1.05M
dataset_id
stringclasses
1 value
/custom-awscli-1.27.51.tar.gz/custom-awscli-1.27.51/awscli/examples/cognito-idp/update-group.rst
**To update a group** This example updates the description and precedence for MyGroup. Command:: aws cognito-idp update-group --user-pool-id us-west-2_aaaaaaaaa --group-name MyGroup --description "New description" --precedence 2 Output:: { "Group": { "GroupName": "MyGroup", "UserPoolId": "u...
PypiClean
/python_neuron-0.2.0.tar.gz/python_neuron-0.2.0/docs/installation.rst
.. highlight:: shell ============ Installation ============ Stable release -------------- To install Python Neuron, run this command in your terminal: .. code-block:: console $ pip install python_neuron This is the preferred method to install Python Neuron, as it will always install the most recent stable re...
PypiClean
/msgraph_beta_sdk-1.0.0a9-py3-none-any.whl/msgraph/generated/models/aosp_device_owner_pkcs_certificate_profile.py
from __future__ import annotations from kiota_abstractions.serialization import Parsable, ParseNode, SerializationWriter from typing import Any, Callable, Dict, List, Optional, TYPE_CHECKING, Union if TYPE_CHECKING: from . import aosp_device_owner_certificate_profile_base, certificate_store, custom_subject_alterna...
PypiClean
/ktumon-1.0.1.tar.gz/ktumon-1.0.1/README.md
# KTU Mon ## Introduction KTU Mon is an application that was developed as a desperate attempt at trying to get myself up to date with the recent notifications published by KTU. Once upon a time I missed registering for few backlog exams because I put way too much trust in the elected UUC's of my college. I had ho...
PypiClean
/iflag-1.0.1.tar.gz/iflag-1.0.1/README.md
# iflag A Python library for the Itron / Actaris IFLAG and Corus protocol ## Installing Install via pip, python 3.6+ only ```pip install iflag``` ## About iflag is a library focused on reading and writing data to devices using the IFLAG or Corus protocol. Mainly Itron / Actaris gas volume converters. Communicati...
PypiClean
/alipay_sdk_python-3.6.740-py3-none-any.whl/alipay/aop/api/request/AnttechOceanbasePassinfoLogininfoQueryRequest.py
import json from alipay.aop.api.FileItem import FileItem from alipay.aop.api.constant.ParamConstants import * from alipay.aop.api.domain.AnttechOceanbasePassinfoLogininfoQueryModel import AnttechOceanbasePassinfoLogininfoQueryModel class AnttechOceanbasePassinfoLogininfoQueryRequest(object): def __init__(self...
PypiClean
/cas_pip-0.1.0.tar.gz/cas_pip-0.1.0/README.rst
======= CAS pip ======= .. image:: https://img.shields.io/pypi/v/cas_pip.svg :target: https://pypi.python.org/pypi/cas_pip .. image:: https://readthedocs.org/projects/cas-pip/badge/?version=latest :target: https://cas-pip.readthedocs.io/en/latest/?version=latest :alt: Documentation Status ...
PypiClean
/odoo12_addon_account_asset_management-12.0.3.2.0-py3-none-any.whl/odoo/addons/account_asset_management/models/account_asset_group.py
from odoo import api, fields, models from odoo.osv import expression class AccountAssetGroup(models.Model): _name = 'account.asset.group' _description = 'Asset Group' _order = 'code, name' _parent_store = True name = fields.Char(string='Name', size=64, required=True, index=True) code = field...
PypiClean
/boot-synth-1.2.0.tar.gz/boot-synth-1.2.0/synth/projects_master/nginx_router/frontend/react/node_modules/jest-snapshot/build/snapshot_resolver.js
'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); exports.buildSnapshotResolver = exports.isSnapshotPath = exports.DOT_EXTENSION = exports.EXTENSION = void 0; var _path = _interopRequireDefault(require('path')); var _chalk = _interopRequireDefault(require('chalk')); function _interopReq...
PypiClean
/valer.core-1.3.5rc12.zip/valer.core-1.3.5rc12/bika/lims/content/pricelist.py
from AccessControl import ClassSecurityInfo from DateTime import DateTime from Products.Archetypes.public import BaseFolder from Products.Archetypes.public import BooleanField from Products.Archetypes.public import BooleanWidget from Products.Archetypes.public import DecimalWidget from Products.Archetypes.public impor...
PypiClean
/adcirc_rom-0.0.0-py3-none-any.whl/adcirc_rom/stacked_model.py
import gc import json import os import pdb import h5py import joblib import numpy as np import xgboost as xgb from fire import Fire from sklearn.decomposition import PCA from sklearn.metrics import confusion_matrix from sklearn.model_selection import GroupKFold, train_test_split from sklearn.pipeline import Pipeline f...
PypiClean
/flet_core-0.10.1-py3-none-any.whl/flet_core/divider.py
from typing import Any, Optional from flet_core.control import Control, OptionalNumber from flet_core.ref import Ref class Divider(Control): """ A thin horizontal line, with padding on either side. In the material design language, this represents a divider. Example: ``` import flet as ft ...
PypiClean
/openram-1.2.29.tar.gz/openram-1.2.29/compiler/base/geometry.py
import math import copy import numpy as np from openram import debug from openram import tech from openram import OPTS from .utils import round_to_grid from .vector import vector class geometry: """ A specific path, shape, or text geometry. Base class for shared items. """ def __init__(self, lpp=N...
PypiClean
/retaped_tui-1.0rc11-py3-none-any.whl/retaped_tui/widgets.py
from . import npyscreen from . import globals, structures import threading import requests def fetchUsername(userID, index): userData = requests.get(f'{globals.apiEndpoint}/users/{userID}', headers={ 'x-session-token': globals.token}).json() tmpUser = structures.user() tmpUser....
PypiClean
/marxs-1.2.tar.gz/marxs-1.2/licenses/LICENSE.rst
GNU General Public License ========================== *Version 3, 29 June 2007* *Copyright © 2007 Free Software Foundation, Inc* <http://fsf.org> Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. Preamble -------- The GNU General Public License is...
PypiClean
/ANSIColors-balises-1.9.9.public.tar.gz/ANSIColors-balises-1.9.9.public/README
ANSI Colors =========== A Python script and module to simply use ANSI Colors in a terminal. ![Screenshot of the doc, colored with the script](http://perso.crans.org/~besson/publis/ansi-colors/example1.png "Screenshot of the doc, colored with the script") ---- ### Author: Lilian Besson. ### Language: Python v2.7+ (...
PypiClean
/swarms-1.5.0.tar.gz/swarms-1.5.0/README.md
![Swarming banner icon](images/swarmsbanner.png) <div align="center"> Swarms is a modular framework that enables reliable and useful multi-agent collaboration at scale to automate real-world tasks. [![GitHub issues](https://img.shields.io/github/issues/kyegomez/swarms)](https://github.com/kyegomez/swarms/issues) [...
PypiClean
/django-phone-login-fix-version-0.0.9.tar.gz/django-phone-login-fix-version-0.0.9/README.md
[![build-status-image]][travis] [![pypi-version]][pypi] # Django Phone Login Django-phone-login uses django-sendsms to send sms. Django Phone Login provides phone number login with no additional passwords to remember. It's a easy way to grow your customer base. Without any hassle. ## Installing Django Phone Login ...
PypiClean
/jupyros-0.7.0a0.tar.gz/jupyros-0.7.0a0/js/node_modules/@types/node/ts4.8/stream/promises.d.ts
declare module 'stream/promises' { import { FinishedOptions, PipelineSource, PipelineTransform, PipelineDestination, PipelinePromise, PipelineOptions } from 'node:stream'; function finished(stream: NodeJS.ReadableStream | NodeJS.WritableStream | NodeJS.ReadWriteStream, options?: FinishedOptions): Promise<void>;...
PypiClean
/compressed_dictionary-1.2.1.tar.gz/compressed_dictionary-1.2.1/compressed_dictionary/utils/split.py
import os import math import logging from tqdm import tqdm from argparse import ArgumentParser from compressed_dictionary import CompressedDictionary logging.getLogger().setLevel(logging.INFO) def main(args): assert os.path.isfile(args.input_file), ( f"Input file {args.input_file} does not exist." ...
PypiClean
/lbrlabs_pulumi_ovh-0.32.0.tar.gz/lbrlabs_pulumi_ovh-0.32.0/lbrlabs_pulumi_ovh/cloudprojectdatabase/opensearch_pattern.py
import copy import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from .. import _utilities __all__ = ['OpensearchPatternArgs', 'OpensearchPattern'] @pulumi.input_type class OpensearchPatternArgs: def __init__(__self__, *, cluste...
PypiClean
/pulumi_aws_native-0.75.1a1693503310.tar.gz/pulumi_aws_native-0.75.1a1693503310/pulumi_aws_native/supportapp/account_alias.py
import copy import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from .. import _utilities __all__ = ['AccountAliasArgs', 'AccountAlias'] @pulumi.input_type class AccountAliasArgs: def __init__(__self__, *, account_alias: pulumi...
PypiClean
/django-genes-0.18.tar.gz/django-genes-0.18/genes/utils.py
from django.db.models.functions import Coalesce from genes.models import Gene, CrossRef, CrossRefDB def translate_genes(id_list=None, from_id=None, to_id=None, organism=None): """ Pass a list of identifiers (id_list), the name of the database ('Entrez', 'Symbol', 'Standard name', 'Systematic name' or a lo...
PypiClean
/latimes-appengine-template-0.022.tar.gz/latimes-appengine-template-0.022/appengine_template/google_appengine/lib/yaml/lib/yaml/serializer.py
__all__ = ['Serializer', 'SerializerError'] from error import YAMLError from events import * from nodes import * class SerializerError(YAMLError): pass class Serializer(object): ANCHOR_TEMPLATE = u'id%03d' def __init__(self, encoding=None, explicit_start=None, explicit_end=None, version=Non...
PypiClean
/stochss-compute-1.0.2.tar.gz/stochss-compute-1.0.2/stochss_compute/core/messages.py
# This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # This program is distributed in the hope that it will be useful, # bu...
PypiClean
/surface_tracker-0.0.1.tar.gz/surface_tracker-0.0.1/src/surface_tracker/heatmap.py
import enum import typing as T import cv2 import numpy as np from .location import SurfaceLocation from .surface import SurfaceId class SurfaceHeatmap: class ColorFormat(enum.Enum): RGB = enum.auto() @property def channel_count(self) -> int: if self == SurfaceHeatmap.ColorFo...
PypiClean
/fedmsg_fasclient-0.7.tar.gz/fedmsg_fasclient-0.7/fedmsg_fasclient.py
import pprint import subprocess import fedmsg.consumers import moksha.hub.reactor class FasClientConsumer(fedmsg.consumers.FedmsgConsumer): # Because we are interested in a variety of topics, we tell moksha that # we're interested in all of them (it doesn't know how to do complicated # distinctions). Bu...
PypiClean
/gpm_api-0.2.4.tar.gz/gpm_api-0.2.4/gpm_api/visualization/plot.py
import inspect import cartopy import cartopy.crs as ccrs import matplotlib.pyplot as plt import numpy as np import xarray as xr from matplotlib.collections import PolyCollection from mpl_toolkits.axes_grid1 import make_axes_locatable from scipy.ndimage import binary_dilation ### TODO: Add xarray + cartopy (xr_carto)...
PypiClean
/SCOSpy-0.4.4-py3-none-any.whl/SCOS/SCOS.py
from bitstring import BitArray, BitStream import datetime accessFlag = { 0: {'code': 0, 'description': "Inserted Packet"}, 1: {'code': 1, 'description': "Updated"}, } simFlag = { 0: {"flag": "00", "description": "Not Simulated Packet"}, 1: {"flag": "01", "description": "Simulated Packet"} } SpacecraftI...
PypiClean
/pycrate-0.6.0.tar.gz/pycrate-0.6.0/pycrate_asn1dir/T125.py
from pycrate_asn1rt.utils import * from pycrate_asn1rt.err import * from pycrate_asn1rt.glob import make_GLOBAL, GLOBAL from pycrate_asn1rt.dictobj import ASN1Dict from pycrate_asn1rt.refobj import * from pycrate_asn1rt.setobj import * from pycrate_asn1r...
PypiClean
/cubrid-python-9.3.0.0002.tar.gz/RB-9.3.0/CUBRIDdb/cursors.py
import sys import types from CUBRIDdb import FIELD_TYPE class BaseCursor(object): """ A base for Cursor classes. Useful attributes: description:: A tuple of DB API 7-tuples describing the columns in the last executed query; see PEP-249 for details. arraysize:: default number ...
PypiClean
/epospy-3.0.2.tar.gz/epospy-3.0.2/EPOS/plot/occurrence.py
import matplotlib.pyplot as plt import matplotlib.patches as patches import matplotlib.colorbar as clrbar import matplotlib.colors from matplotlib.cm import get_cmap import numpy as np from . import helpers, parametric from EPOS.population import periodradius clrs= ['r','g','b','m'] # in epos.prep #fmt_symbol= {'ls':...
PypiClean
/gnosis_neon_safe_eth_py-5.4.3-py3-none-any.whl/gnosis/eth/utils.py
import warnings from secrets import token_bytes from typing import Tuple, Union import eth_abi from eth._utils.address import generate_contract_address from eth_keys import keys from eth_typing import AnyAddress, ChecksumAddress, HexStr from eth_utils import to_normalized_address from hexbytes import HexBytes from sha...
PypiClean
/ais_dom-2023.7.2-py3-none-any.whl/homeassistant/components/incomfort/sensor.py
from __future__ import annotations from dataclasses import dataclass from typing import Any from homeassistant.components.sensor import ( DOMAIN as SENSOR_DOMAIN, SensorDeviceClass, SensorEntity, SensorEntityDescription, ) from homeassistant.const import UnitOfPressure, UnitOfTemperature from homeassi...
PypiClean
/Probability-Surrogate-Learning-1.1.tar.gz/Probability-Surrogate-Learning-1.1/LICENSE.md
MIT License Copyright (c) 2023 Wenlin Li 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, merge, publish, distrib...
PypiClean
/django_bpp-1.0.9-py3-none-any.whl/django_bpp/staticroot/lodash.mergewith/index.js
var LARGE_ARRAY_SIZE = 200; /** Used to stand-in for `undefined` hash values. */ var HASH_UNDEFINED = '__lodash_hash_undefined__'; /** Used as references for various `Number` constants. */ var MAX_SAFE_INTEGER = 9007199254740991; /** `Object#toString` result references. */ var argsTag = '[object Arguments]', arr...
PypiClean
/torchact-0.2.2.tar.gz/torchact-0.2.2/README.md
# torchact <div align="center"> TorchAct, collection of activation function for PyTorch. --- | ![image](https://img.shields.io/badge/-Tests:-black?style=flat-square) [![CI](https://github.com/kaintels/torchact/actions/workflows/ci.yml/badge.svg)](https://github.com/kaintels/torchact/actions/workflows/ci.yml) [![cod...
PypiClean
/cdktf-cdktf-provider-google-9.0.1.tar.gz/cdktf-cdktf-provider-google-9.0.1/src/cdktf_cdktf_provider_google/compute_region_backend_service/__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 ComputeRegionBackendService( _cdktf_9a9027ec.Terra...
PypiClean
/obj.mpp-2023.3-py3-none-any.whl/brick/config/config.py
from __future__ import annotations import argparse as ap_ from enum import Enum as enum_t from typing import Any, Callable, ClassVar, Dict, List, Optional, Sequence, Tuple, Union import brick.interface.io.reporting as rp_ from brick.config.parameter import parameter_t from brick.config.section import SectionLabelFro...
PypiClean
/contracts-lib-py-1.0.4.tar.gz/contracts-lib-py-1.0.4/contracts_lib_py/templates/template_manager.py
from collections import namedtuple from contracts_lib_py import ContractBase AgreementTemplate = namedtuple( 'AgreementTemplate', ('state', 'owner', 'updated_by', 'block_number_updated') ) class TemplateStoreManager(ContractBase): """Class representing the TemplateStoreManager contract.""" CONTRACT_N...
PypiClean
/google-cloud-dialogflow-2.23.3.tar.gz/google-cloud-dialogflow-2.23.3/google/cloud/dialogflow_v2/services/knowledge_bases/client.py
from collections import OrderedDict import os import re from typing import ( Dict, Mapping, MutableMapping, MutableSequence, Optional, Sequence, Tuple, Type, Union, cast, ) from google.api_core import client_options as client_options_lib from google.api_core import exceptions as...
PypiClean
/django_kmuhelper-1.7.2-py3-none-any.whl/kmuhelper/modules/pdfgeneration/order/forms.py
from django import forms from kmuhelper import constants class PDFOrderForm(forms.Form): # Fieldsets fieldsets = [ {'fields': ['preset']}, {'fields': ['title', 'text', 'language'], 'name': 'Text & Sprache'}, {'fields': ['do_print'], 'name': 'Optionen'}, {'fields': ['do_do...
PypiClean
/scrapy-rabbitmq-scheduler-neo-1.0.6.tar.gz/scrapy-rabbitmq-scheduler-neo-1.0.6/src/scrapy_rabbitmq_scheduler/middleware.py
import pika import logging from scrapy.exceptions import IgnoreRequest logger = logging.getLogger(__name__) class RabbitMQMiddleware(object): """ Middleware used to close message from current queue or send unsuccessful messages to be rescheduled. """ def __init__(self, settings): self.re...
PypiClean
/tensorflow_edwin-2.10.1-cp38-cp38-win_amd64.whl/tensorflow/python/ops/init_ops_v2.py
"""Initializers for TF 2.""" import math import numpy as np from tensorflow.python.framework import constant_op from tensorflow.python.framework import dtypes from tensorflow.python.ops import array_ops from tensorflow.python.ops import gen_linalg_ops from tensorflow.python.ops import linalg_ops_impl from tensorflow....
PypiClean
/lmflow-evaluator-0.0.3.tar.gz/lmflow-evaluator-0.0.3/src/lmflow/pipeline/raft_aligner.py
import logging import numpy as np import os import sys import time from itertools import chain import torch import torch.distributed as dist import transformers from datasets import ( set_caching_enabled, Dataset, DatasetDict, ) from transformers import ( default_data_collator, pipeline, set_se...
PypiClean
/py-libtrust-1.0.5.tar.gz/py-libtrust-1.0.5/libtrust/keys/ec_key.py
from typing import BinaryIO, Dict, Optional, Type, Union from cryptography.hazmat.backends import default_backend from cryptography.hazmat.primitives import hashes, serialization from cryptography.hazmat.primitives.asymmetric import ec from cryptography.hazmat.primitives.asymmetric.utils import decode_dss_signature, e...
PypiClean
/appthreat_vulnerability_db-5.2.5-py3-none-any.whl/vdb/lib/osv.py
from zipfile import ZipFile import httpx from vdb.lib import CustomNamedTemporaryFile, config from vdb.lib.nvd import NvdSource from vdb.lib.utils import ( compress_str, convert_score_severity, get_cvss3_from_vector, get_default_cve_data, parse_purl, ) # Size of the stream to read and write to th...
PypiClean
/jsonschema_validator_new-0.1.0-py3-none-any.whl/jsonschema_validator/json_schema.py
from typing import Any, Dict, List, Literal, TypedDict, Union CORE_SCHEMA_META_SCHEMA_DEFAULT = True """Default value of the field path 'JSONSchema'""" JSONSchema = Union["JSONSchemaItem", bool] """ Core schema meta-schema. default: True """ # default: True JSONSchemaItem = TypedDict( "JSONSchemaItem", { ...
PypiClean
/pulumi_azure_nextgen-0.6.2a1613157620.tar.gz/pulumi_azure_nextgen-0.6.2a1613157620/pulumi_azure_nextgen/portal/v20181001/get_user_settings_with_location.py
import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union from ... import _utilities, _tables from . import outputs __all__ = [ 'GetUserSettingsWithLocationResult', 'AwaitableGetUserSettingsWithLocationResult', 'get_user_settings_with_location', ] @pul...
PypiClean
/django-netjsonconfig-0.12.tar.gz/django-netjsonconfig-0.12/django_netjsonconfig/base/template.py
from collections import OrderedDict from copy import copy from django.contrib.admin.models import ADDITION, LogEntry from django.contrib.contenttypes.models import ContentType from django.core.exceptions import ValidationError from django.db import models from django.utils.translation import ugettext_lazy as _ from js...
PypiClean
/titration-0.2.tar.gz/titration-0.2/titration.py
from __future__ import division from scipy.interpolate import InterpolatedUnivariateSpline from scipy.optimize import brentq import matplotlib.pyplot as plt from multi_key_dict import multi_key_dict ################################################################## ################ Voreinstellungen ##################...
PypiClean
/qmpy-tri-2022.7.21.tar.gz/qmpy-tri-2022.7.21/qmpy/web/static/js/jsmol/j2s/J/adapter/readers/more/GromacsReader.js
Clazz.declarePackage ("J.adapter.readers.more"); Clazz.load (["J.adapter.smarter.AtomSetCollectionReader"], "J.adapter.readers.more.GromacsReader", ["java.lang.Float", "J.adapter.smarter.Atom", "J.api.JmolAdapter", "J.util.Logger", "$.P3"], function () { c$ = Clazz.declareType (J.adapter.readers.more, "GromacsReader", ...
PypiClean
/mayan-edms-4.4.8.tar.gz/mayan-edms-4.4.8/mayan/apps/views/widgets.py
from collections import OrderedDict from django import forms from django.utils.safestring import mark_safe class ColorWidget(forms.TextInput): template_name = 'views/widget_color_picker.html' def __init__(self, attrs=None): attrs = attrs or {} attrs['type'] = 'color' super().__init__...
PypiClean
/ageliaco.p10userdata-0.1.3.tar.gz/ageliaco.p10userdata-0.1.3/README.txt
Introduction ============ This product adds some properties to the user data to exploit to its best the values there are in the p10 ldap. This product is dependant on **plone.app.ldap**, because it does set the basic properties. Installation ============ * Go to admin > Site Setup > Add-ons * Activate plone.app...
PypiClean
/d3m-sklearn-wrap-2022.2.8.tar.gz/d3m-sklearn-wrap-2022.2.8/sklearn_wrap/SKAdaBoostRegressor.py
from typing import Any, Callable, List, Dict, Union, Optional, Sequence, Tuple from numpy import ndarray from collections import OrderedDict from scipy import sparse import os import sklearn import numpy import typing import pandas # Custom import commands if any from sklearn.ensemble.weight_boosting import AdaBoostRe...
PypiClean
/os_sys-2.1.4-py3-none-any.whl/server/contrib/auth/checks.py
from itertools import chain from types import MethodType from server.apps import apps from server.conf import settings from server.core import checks from .management import _get_builtin_permissions def check_user_model(app_configs=None, **kwargs): if app_configs is None: cls = apps.get_model(settings.A...
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/28c7c6d210dfec35594423440d378bf8.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
/smscx-0.1.11.tar.gz/smscx-0.1.11/smscx_client/model/conversation_reply_sms_response.py
import re # noqa: F401 import sys # noqa: F401 from smscx_client.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, ModelSimple, cached_property, change_keys_js_to_python, convert_js_args_to_python_args, date, datetime, file_type, none_type, v...
PypiClean
/qleet-0.2.0.2.tar.gz/qleet-0.2.0.2/CODE_OF_CONDUCT.md
# Contributor Covenant Code of Conduct ## Our Pledge We as members, contributors, and leaders pledge to make participation in our community a harassment-free experience for everyone, regardless of age, body size, visible or invisible disability, ethnicity, sex characteristics, gender identity and expression, level of...
PypiClean
/fbgemm_gpu-0.4.1rc0-cp310-cp310-manylinux1_x86_64.whl/fbgemm_gpu/split_embedding_codegen_lookup_invokers/lookup_sgd.py
# Copyright (c) Meta Platforms, Inc. and affiliates. # All rights reserved. # This source code is licensed under the BSD-style license found in the # LICENSE file in the root directory of this source tree. import torch from .lookup_args import * #import os #torch.ops.load_library(os.path.join(os.path.join(os.path....
PypiClean
/pulumi_azure_native-2.5.1a1693590910.tar.gz/pulumi_azure_native-2.5.1a1693590910/pulumi_azure_native/connectedvmwarevsphere/v20230301preview/get_hybrid_identity_metadatum.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__ = [ 'GetHybridIdentityMetadatumResult', 'AwaitableGetHybridIdentityMetadatumResult', 'get_hybrid_identity_metadatum'...
PypiClean
/review_recommender-1.0.3.tar.gz/review_recommender-1.0.3/test/tokenizer/data/file3.py
from __future__ import annotations from contextlib import contextmanager, nullcontext from typing import Dict, Iterator, Tuple from typing_extensions import TypeAlias as _TypeAlias def strip_target( node: int | float | bool, saved_attrs: int ) -> None: """Reset a fine-grained incremental target to state be...
PypiClean
/pycoin-ceres-0.90a0.tar.gz/pycoin-ceres-0.90a0/pycoin/ecdsa/native/secp256k1.py
import ctypes import os import warnings from ctypes import ( byref, c_byte, c_int, c_uint, c_char_p, c_size_t, c_void_p, create_string_buffer, CFUNCTYPE, POINTER ) from pycoin.encoding.bytes32 import from_bytes_32, to_bytes_32 from pycoin.intbytes import iterbytes SECP256K1_FLAGS_TYPE_MASK = ((1 << 8) - 1) SECP...
PypiClean
/shimlamqttclientlib-1.0.13.tar.gz/shimlamqttclientlib-1.0.13/README.md
# SHIMLA MQTT Python 3.x Client Library A library that does the following: * Acts as a wrapper around paho mqtt python library - supports **asynchronous connect/pub/sub APIs** * Tests periodically if a client is connected to a specified broker, reconnects on any failure * Provides ability to connect to secondary broke...
PypiClean
/alas-ce0-whatsapp-0.5.tar.gz/alas-ce0-whatsapp-0.5/yowsup/layers/axolotl/layer_receive.py
from .layer_base import AxolotlBaseLayer from yowsup.layers.protocol_receipts.protocolentities import OutgoingReceiptProtocolEntity from yowsup.layers.protocol_messages.proto.wa_pb2 import * from yowsup.layers.axolotl.protocolentities import * from yowsup.structs import ProtocolTreeNode from yowsup.layers.axolotl.prop...
PypiClean
/pylendingclub-3.0.2.tar.gz/pylendingclub-3.0.2/ci/bootstrap.py
from __future__ import absolute_import, print_function, unicode_literals import os import sys from os.path import abspath from os.path import dirname from os.path import exists from os.path import join if __name__ == "__main__": base_path = dirname(dirname(abspath(__file__))) print("Project path: {0}".format...
PypiClean
/jeeves-pa-0.1.0.tar.gz/jeeves-pa-0.1.0/jeeves/diagnose.py
import sys import socket import subprocess import pkgutil import logging if sys.version_info < (3, 3): from distutils.spawn import find_executable else: from shutil import which as find_executable logger = logging.getLogger(__name__) def check_network_connection(server="www.google.com"): """ Checks i...
PypiClean
/azure-mgmt-datalake-store-1.1.0b1.zip/azure-mgmt-datalake-store-1.1.0b1/azure/mgmt/datalake/store/models/_data_lake_store_account_management_client_enums.py
from enum import Enum from azure.core import CaseInsensitiveEnumMeta class CheckNameAvailabilityParametersType(str, Enum, metaclass=CaseInsensitiveEnumMeta): """The resource type. Note: This should not be set by the user, as the constant value is Microsoft.DataLakeStore/accounts. """ MICROSOFT_DATA_...
PypiClean
/torch_buddy-0.0.5-py3-none-any.whl/torch_buddy/nn/cv.py
# Standard libraries import random # Third party libraries import torch import torchvision.transforms.functional as FT # ============================================================================== # 图像相关 # ============================================================================== def xyccwd_to_xymmmm(cxcy): ...
PypiClean
/fear_data-0.1.1-py3-none-any.whl/fear_data/fc_data.py
import csv import pandas as pd import numpy as np def _load_raw_data(data_file): # internal function def _find_start_row(data_file, start_row="Experiment"): """Uses regex to find the first row of data.""" with open(data_file, "rt") as f: reader = csv.reader(f) file_r...
PypiClean
/rekall-core-1.7.2rc1.zip/rekall-core-1.7.2rc1/rekall/plugins/windows/malware/svcscan.py
# pylint: disable=protected-access from builtins import str from rekall import plugin from rekall import obj from rekall.plugins.windows import common from rekall.plugins.windows import vadinfo from rekall_lib import utils SERVICE_TYPE_FLAGS = { 'SERVICE_KERNEL_DRIVER': 0, 'SERVICE_FILE_SYSTEM_DRIVER': 1, ...
PypiClean
/genie.libs.conf-23.8-py3-none-any.whl/genie/libs/conf/l2vpn/iosxe/l2vpn.py
from abc import ABC import warnings from genie.conf.base.attributes import UnsupportedAttributeWarning,\ AttributesHelper from genie.conf.base.cli import CliConfigBuilder from genie.conf.base.config import CliConfig class L2vpn(ABC): class DeviceAttributes(ABC): def build_config(self, apply=True, a...
PypiClean
/parametrization_cookbook-0.18-py3-none-any.whl/parametrization_cookbook/_common_vectors.py
import collections import operator import functools from ._common_base import ( one_or_all, one_or_any, is_broadcastable_without_change, method_add_doc, shape_param_vector, doc_reals1d_to_params, doc_params_to_reals1d, ShapedParam, ) class VectorSimplex(ShapedParam): r"""Represen...
PypiClean
/pyfuse3-3.3.0.tar.gz/pyfuse3-3.3.0/src/pyfuse3_asyncio.py
import asyncio import collections import sys from typing import Any, Callable, Iterable, Optional, Type import pyfuse3 from _pyfuse3 import FileHandleT Lock = asyncio.Lock def enable() -> None: '''Switch pyfuse3 to asyncio mode.''' fake_trio = sys.modules['pyfuse3_asyncio'] fake_trio.lowlevel = fake_tr...
PypiClean
/nice_tools-0.0.6-py3-none-any.whl/nice_tools/http_base_client.py
import typing as t from abc import ABC, abstractmethod import json import requests import aiohttp import asyncio __all__ = [ 'BaseClient', ] class APIException(Exception): def __init__(self, response: t.Union[requests.Response, aiohttp.ClientResponse], status_code: int, text: str): self.code = 0 ...
PypiClean
/huey-2.4.5.tar.gz/huey-2.4.5/docs/_build/html/_static/searchtools.js
if (!Scorer) { /** * Simple result scoring code. */ var Scorer = { // Implement the following function to further tweak the score for each result // The function takes a result array [filename, title, anchor, descr, score] // and returns the new score. /* score: function(result) { re...
PypiClean
/paper_trading-1.2.2-py3-none-any.whl/paper_trading/app/static/js/fuelux/fuelux.js
+function ($) { "use strict"; // CHECKBOX CONSTRUCTOR AND PROTOTYPE var Checkbox = function (element, options) { this.$element = $(element); this.options = $.extend({}, $.fn.checkbox.defaults, options); // cache elements this.$label = this.$element.parent(); this.$icon = this.$label.find('i'); this.$...
PypiClean
/jupyter_react-0.7.0.tar.gz/jupyter_react-0.7.0/src/components/notebook/NotebookCommands.ts
import { ReadonlyPartialJSONObject } from '@lumino/coreutils'; import { CommandRegistry } from "@lumino/commands"; import { SessionContextDialogs } from "@jupyterlab/apputils"; import { CompletionHandler } from "@jupyterlab/completer"; import { NotebookActions, NotebookPanel, NotebookSearchProvider, NotebookTracker } f...
PypiClean
/ClueDojo-1.4.3-1.tar.gz/ClueDojo-1.4.3-1/src/cluedojo/static/dojo/cldr/nls/nb/gregorian.js
({"dateFormatItem-yM":"M yyyy","field-dayperiod":"AM/PM","dateFormatItem-yQ":"Q yyyy","field-minute":"minutt","eraNames":["f.Kr.","e.Kr."],"dateFormatItem-MMMEd":"E d. MMM","field-weekday":"ukedag","dateFormatItem-hms":"h.mm.ss a","dateFormatItem-yQQQ":"QQQ y","dateFormatItem-MMdd":"dd.MM","days-standAlone-wide":["sønd...
PypiClean
/vantage6-server-4.0.0a5.tar.gz/vantage6-server-4.0.0a5/vantage6/server/websockets.py
import logging import jwt import datetime as dt from flask import request, session from flask_jwt_extended import get_jwt_identity, verify_jwt_in_request from flask_socketio import Namespace, emit, join_room, leave_room from vantage6.common import logger_name from vantage6.common.task_status import has_task_failed fr...
PypiClean
/hugh_game-0.1-py3-none-any.whl/pgzero/music.py
from pygame.mixer import music as _music from .loaders import ResourceLoader from . import constants __all__ = [ 'rewind', 'stop', 'fadeout', 'set_volume', 'get_volume', 'get_pos', 'set_pos', 'play', 'queue', 'pause', 'unpause', ] _music.set_endevent(constants.MUSIC_END) class _MusicLoader(ResourceLoader):...
PypiClean
/cobertura_parser-0.3.1.tar.gz/cobertura_parser-0.3.1/cobertura_parser/ext/jacoco.py
from lxml import etree as ET import re import os.path def find_lines(j_package, filename): """Return all <line> elements for a given source file in a package.""" lines = list() for sourcefile in j_package.iterfind("sourcefile"): if ( sourcefile.attrib.get("name").split(".")[0] ...
PypiClean
/basis_set_exchange-0.9.1.tar.gz/basis_set_exchange-0.9.1/basis_set_exchange/writers/demon2k.py
from .. import lut, manip, sort, misc, printing def write_demon2k(basis): '''Converts a basis set to deMon2K format ''' if 'gto_spherical' in basis['function_types']: s = '# This basis set uses spherical components\n\n' else: s = '# This basis set uses cartesian components\n\n' b...
PypiClean
/edu-yh-4.1.5.tar.gz/edu-yh-4.1.5/thonny/plugins/help/packages.rst
Installing 3rd party packages ============================== Thonny has two options for installing 3rd party libraries. With pip-GUI ------------- From "Tools" menu select "Manage packages..." and follow the instructions. With pip on command line ------------------------ #. From "Tools" menu select "Open system shell...
PypiClean
/PyEngine-2D-1.3.0.tar.gz/PyEngine-2D-1.3.0/pyengine/Systems/UISystem.py
import pygame from pyengine.Widgets import Entry, Button from pyengine.Widgets.Widget import Widget from pyengine import World from pyengine.Utils import loggers, Colors __all__ = ["UISystem"] class UISystem: def __init__(self, world: World): self.world = world self.widgets = pygame.sprite.Group(...
PypiClean
/codemirror-5.40.0/mode/asn.1/asn.1.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
/timemory-3.3.0rc2.tar.gz/timemory-3.3.0rc2/external/pybind11/docs/advanced/pycpp/numpy.rst
.. _numpy: NumPy ##### Buffer protocol =============== Python supports an extremely general and convenient approach for exchanging data between plugin libraries. Types can expose a buffer view [#f2]_, which provides fast direct access to the raw internal data representation. Suppose we want to bind the following sim...
PypiClean
/import_scons-2.5.0-4-py3-none-any.whl/SCons/Tool/ldc.py
__revision__ = "src/engine/SCons/Tool/ldc.py 2016/07/08 19:15:27 dholth" import os import subprocess import SCons.Action import SCons.Builder import SCons.Defaults import SCons.Scanner.D import SCons.Tool import SCons.Tool.DCommon def generate(env): static_obj, shared_obj = SCons.Tool.createObjBuilders(env) ...
PypiClean
/elf_diff-0.6.0-py3-none-any.whl/elf_diff/plugin.py
# -*- mode: python -*- # # elf_diff # # Copyright (C) 2021 Noseglasses (shinynoseglasses@gmail.com) # # This program is free software: you can redistribute it and/or modify it under # the terms of the GNU General Public License as published by the Free Software # Foundation, version 3. # # This program is distributed...
PypiClean
/taskcc-alipay-sdk-python-3.3.398.tar.gz/taskcc-alipay-sdk-python-3.3.398/alipay/aop/api/request/AlipayAssetPointBudgetQueryRequest.py
import json from alipay.aop.api.FileItem import FileItem from alipay.aop.api.constant.ParamConstants import * class AlipayAssetPointBudgetQueryRequest(object): def __init__(self, biz_model=None): self._biz_model = biz_model self._version = "1.0" self._terminal_type = None self....
PypiClean
/alchemite_apiclient-0.61.0-py3-none-any.whl/alchemite_apiclient/model/tar_fn_weighted_sum_above_all_of.py
import re # noqa: F401 import sys # noqa: F401 from alchemite_apiclient.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
/Twisted_binary-20.3.0-cp38-cp38-win_amd64.whl/twisted/web/error.py
from __future__ import division, absolute_import try: from future_builtins import ascii except ImportError: pass __all__ = [ 'Error', 'PageRedirect', 'InfiniteRedirection', 'RenderError', 'MissingRenderMethod', 'MissingTemplateLoader', 'UnexposedMethodError', 'UnfilledSlot', 'UnsupportedType', 'Fla...
PypiClean
/tensorflow_edwin-2.10.1-cp38-cp38-win_amd64.whl/tensorflow/python/trackable/python_state.py
# Copyright 2018 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
PypiClean
/task-core-0.2.1.tar.gz/task-core-0.2.1/task_core/service.py
"""service and task objects""" import logging import yaml from .base import BaseFileData from .tasks import TaskManager from .schema import ServiceSchemaValidator LOG = logging.getLogger(__name__) class Service(BaseFileData): """service representation""" def __init__(self, definition): self._data =...
PypiClean
/uliweb_ui-0.1.0-py3-none-any.whl/uliweb_ui/static/modules/gridster/jquery.gridster.with-extras.js
;(function(root, factory) { if (typeof define === 'function' && define.amd) { define('gridster-coords', ['jquery'], factory); } else { root.GridsterCoords = factory(root.$ || root.jQuery); } }(this, function($) { /** * Creates objects with coordinates (x1, y1, x2, y2, cx, cy, width,...
PypiClean
/gmcm-django-superadmin-2.0.10.tar.gz/gmcm-django-superadmin-2.0.10/superadmin/views/list.py
# Python import operator from functools import reduce # Django from django.core.paginator import InvalidPage from django.db.models import Q from django.http import Http404 from django.utils.translation import gettext as _ from django.views.generic import ListView as BaseListView # Local from .base import SiteView,...
PypiClean
/adafruit_circuitpython_ble-10.0.3-py3-none-any.whl/adafruit_ble/characteristics/__init__.py
from __future__ import annotations import struct import _bleio from ..attributes import Attribute try: from typing import Optional, Type, Union, Tuple, Iterable, TYPE_CHECKING if TYPE_CHECKING: from circuitpython_typing import ReadableBuffer from adafruit_ble.uuid import UUID from ad...
PypiClean
/freesurfer_pp_moc-2.2.2.tar.gz/freesurfer_pp_moc-2.2.2/freesurfer_pp_moc/freesurfer_pp_moc.py
import os from os import listdir, sep from os.path import abspath, basename, isdir import shutil import pudb import sys import time import glob # import the Chris app superclass from chrisapp.base import ChrisApp Gstr_title = """ __ __ ...
PypiClean
/dash_vtk-0.0.9-py3-none-any.whl/dash_vtk/SliceRepresentation.py
from dash.development.base_component import Component, _explicitize_args class SliceRepresentation(Component): """A SliceRepresentation component. SliceRepresentation is responsible to convert a vtkPolyData into rendering It takes the following set of properties: - colorBy: ['POINTS', ''], - pointSize: 1, ...
PypiClean
/lofar-obs-xml-2.0.tar.gz/lofar-obs-xml-2.0/lofarobsxml/pipelines.py
r''' The pipelines module contains classes that represent data procesing pipelines. At this moment, only NDPPP is implemented here, but later on, this module will also support calibrator/target pipelines and imaging settings. ''' from lofarobsxml.observationspecificationbase import ObservationSpecificationBase from lo...
PypiClean