id
stringlengths
1
8
text
stringlengths
6
1.05M
dataset_id
stringclasses
1 value
/pylablib-lightweight-1.4.1.tar.gz/pylablib-lightweight-1.4.1/pylablib/legacy/aux_libs/devices/misc.py
from ...core.utils import files import platform import ctypes import sys import os.path import os def get_default_lib_folder(absolute=True): """ Get default DLL folder withing the package, depending on the Python bitness If ``absolute==True``, get absolute path (including pyLabLib folder); otherwise...
PypiClean
/msgraph-sdk-1.0.0a3.tar.gz/msgraph-sdk-1.0.0a3/msgraph/generated/groups/item/sites/item/onenote/notebooks/item/section_groups/item/section_groups/item/section_group_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
/coopr.solvers-3.2.1.tar.gz/coopr.solvers-3.2.1/coopr/solvers/plugins/converter/glpsol.py
__all__ = ['GlpsolMIPConverter'] import os import six import pyutilib.subprocess import pyutilib.common import pyutilib.services from coopr.opt.base import * from coopr.core.plugin import * class GlpsolMIPConverter(SingletonPlugin): implements(IProblemConverter) def __init__(self,**kwds): Singlet...
PypiClean
/pyddi_xupan-0.0.1.tar.gz/pyddi_xupan-0.0.1/pyddi_xupan/statistics_client.py
import requests class StatisticsClient: headers = {"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) " "Chrome/54.0.2840.99 Safari/537.36"} getStatisticsOrganismsUrl = "https://www.omicsdi.org:443/ws/statistics/organisms" getStatis...
PypiClean
/azure_mgmt_kubernetesconfiguration-3.0.0-py3-none-any.whl/azure/mgmt/kubernetesconfiguration/v2022_07_01/aio/operations/_source_control_configurations_operations.py
from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload import urllib.parse from azure.core.async_paging import AsyncItemPaged, AsyncList from azure.core.exceptions import ( ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundEr...
PypiClean
/midi_clip-0.10-py3-none-any.whl/midi_clip-0.10.dist-info/LICENSE.md
ISC License (ISCL) Copyright (c) 2023, Hyun Shin(kyaryunha) Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR...
PypiClean
/my-util-lib-1.0.6.tar.gz/my-util-lib-1.0.6/README.md
<h3>Memo</h3> **Run unit tests before packaging library** python setup.py pytest **Packaging library** !! Make sure my_util_library.egg-info folder is removed. python setup.py sdist **Check the content in the library package** tar --list -f dist/my-util-lib-1.0.0.tar.gz **Publish package on Pypi** !! Package nam...
PypiClean
/dbt-iris-1.3.5b1.tar.gz/dbt-iris-1.3.5b1/intersystems_iris/_LogFileStream.py
import io import os import datetime import threading import platform class _LogFileStream(object): LOG_RECEIVED = 0 LOG_SENT = 1 LINE_SEPARATOR = '\n' BUFFER_SIZE = io.DEFAULT_BUFFER_SIZE def __init__(self, path): b_new_file = False if (path.startswith("+")): b_new_fil...
PypiClean
/igorpy-0.0.5-py3-none-any.whl/pygor3/scripts/scriptTest.py
import pygor3 as p3 import argparse def generate_event_delta_Kronecker(event_nickname, event_id): def tmp_funct(bs:p3.IgorScenario): if bs[event_nickname] == event_id: return 1 else: return 0 return tmp_funct def get_pairwise_prob(mdl, event_nickname1, event_nickname2):...
PypiClean
/so_pip-0.3.0-py3-none-any.whl/so_pip/parse_python/python_validator.py
import ast import subprocess # nosec from typing import List, Tuple from so_pip.cli_clients.external_commands import pyflakes, vermin def validate_with_vermin(folder: str) -> str: """Infer python versions""" result = vermin(folder) # "Minimum required versions: 2.0 Incompatible versions: 3" # ~...
PypiClean
/pySpaceGDN-2.0.1.tar.gz/pySpaceGDN-2.0.1/pyspacegdn/spacegdn.py
from __future__ import absolute_import from requests.utils import default_user_agent import pyspacegdn from pyspacegdn.requests import Request, FindRequest class SpaceGDN(object): """ The main class for pySpaceGDN. An instance of this class is the entrypoint for pySpaceGDN. Through this class, most re...
PypiClean
/openpeerpower_frontend-20210523.2-py3-none-any.whl/opp_frontend/frontend_es5/chunk.f90f4047c985c07f6db8.js
(self.webpackChunkopenpeerpower_frontend=self.webpackChunkopenpeerpower_frontend||[]).push([[873,7172,9816,7632,9978,272,4328,7082,129,1422,4823],{99257:function(t,e,r){"use strict";r(65233);var n=r(15112),o=r(9672),i=r(87156);(0,o.k)({is:"iron-iconset-svg",properties:{name:{type:String,observer:"_nameChanged"},size:{t...
PypiClean
/WakaQ-2.0.2.tar.gz/WakaQ-2.0.2/CHANGES.md
# CHANGES ## 2.0.2 (2022-12-09) #### Bugfix - Make sure to catch system exceptions to prevent worker infinite loops. ## 2.0.1 (2022-12-09) #### Bugfix - Always catch SoftTimeout even when nested in exception context. ## 2.0.0 (2022-11-18) #### Feature - Support bytes in task arguments. #### Misc - Tasks alwa...
PypiClean
/bpy_cuda-2.82-cp37-cp37m-win_amd64.whl/bpy_cuda-2.82.data/scripts/2.82/scripts/modules/console/complete_namespace.py
# ##### BEGIN GPL LICENSE BLOCK ##### # # 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 2 # of the License, or (at your option) any later version. # # This program is distri...
PypiClean
/ctg_object_detection_tools-0.0.1-py3-none-any.whl/object_detection/data_decoders/tf_sequence_example_decoder.py
"""Sequence example decoder for object detection.""" from __future__ import absolute_import from __future__ import division from __future__ import print_function from six.moves import zip import tensorflow.compat.v1 as tf from tf_slim import tfexample_decoder as slim_example_decoder from object_detection.core import...
PypiClean
/kompute-0.4.1.tar.gz/kompute-0.4.1/external/googletest/googletest/include/gtest/internal/custom/README.md
# Customization Points The custom directory is an injection point for custom user configurations. ## Header `gtest.h` ### The following macros can be defined: * `GTEST_OS_STACK_TRACE_GETTER_` - The name of an implementation of `OsStackTraceGetterInterface`. * `GTEST_CUSTOM_TEMPDIR_FUNCTION_` - An override f...
PypiClean
/gpt_review-0.9.5rc932.post1.tar.gz/gpt_review-0.9.5rc932.post1/README.md
# gpt-review <p align="center"> <a href="https://github.com/microsoft/gpt-review/actions"><img alt="Actions Status" src="https://github.com/microsoft/gpt-review/workflows/Python%20CI/badge.svg"></a> <a href="https://codecov.io/gh/microsoft/gpt-review"><img alt="Coverage Status" src="https://codecov.io/gh/microsoft/gpt...
PypiClean
/alipay_sdk_python-3.6.740-py3-none-any.whl/alipay/aop/api/request/AntfortuneEquityMessageSingleSendRequest.py
import json from alipay.aop.api.FileItem import FileItem from alipay.aop.api.constant.ParamConstants import * from alipay.aop.api.domain.AntfortuneEquityMessageSingleSendModel import AntfortuneEquityMessageSingleSendModel class AntfortuneEquityMessageSingleSendRequest(object): def __init__(self, biz_model=Non...
PypiClean
/bmcs_ibvpy-0.0.29a0.tar.gz/bmcs_ibvpy-0.0.29a0/ibvpy/fets/fets3D/fets3D8h16u.py
from traits.api import \ Instance, Int, Property, Array, cached_property from numpy import \ zeros, dot, hstack, identity from scipy.linalg import \ inv from .fets3D import FETS3D #----------------------------------------------------------------------------------- # FETS3D8H16U - 16 nodes Subparametri...
PypiClean
/bchmnn.poodle-0.2.6.tar.gz/bchmnn.poodle-0.2.6/poodle/typedefs/__init__.py
from .assign import (AddonModAssignAssign, AddonModAssignAttemptReopenMethodValues, AddonModAssignConfig, AddonModAssignGetAssignments, AddonModAssignGetAssignmentsCourse, AddonModAssignGetSubmissions, AddonModAssig...
PypiClean
/analytixhero-0.0.1.tar.gz/analytixhero-0.0.1/DOCUMENTATION/9. One Hot Encoding For Categorical Values.md
# **One Hot Encoding For Categorical Values:** `one_hot_encoder` Function ## `one_hot_encoder`: Used To Encode Those Columns Of Dataset That Have Different Categories With Binary Values By Making New Columns <br> **Parameters of `one_hot_encoder`**: 1. __Dataset__ (list, tuple, dictionary, numpy.ndarray, pandas.Da...
PypiClean
/terraforms_farrukh90-0.0.14-py3-none-any.whl/jenkins/ec2.py
import os REPONAME="something" TASK="ec2" class bcolors: HEADER = '\033[95m' OKBLUE = '\033[94m' OKCYAN = '\033[96m' OKGREEN = '\033[92m' WARNING = '\033[93m' FAIL = '\033[91m' ENDC = '\033[0m' BOLD = '\033[1m' UNDERLINE = '\033[4m' def filestructure(REPONAME,TASK): """ ...
PypiClean
/CAMELS_library-0.3.tar.gz/CAMELS_library-0.3/setup/IllustrisTNG_DM/parameters_file.py
from mpi4py import MPI import numpy as np import sys,os import camb from pyDOE import * ###### MPI DEFINITIONS ###### comm = MPI.COMM_WORLD nprocs = comm.Get_size() myrank = comm.Get_rank() #################################### INPUT ############################################# r...
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/0b5705eb3947c9c93da832479adec155.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
/py_fortress-0.1.7-py3-none-any.whl/doc/README-QUICKSTART.md
# py-fortress QUICKSTART ------------------------------------------------------------------------------- ## Table of Contents * Document Overview * SECTION 1. Prerequisites * SECTION 2. Setup Test Env * SECTION 3. Using Command Line Interpreter (CLI) ________________________________________________________________...
PypiClean
/AST_data_eng-0.0.5.tar.gz/AST_data_eng-0.0.5/AST_data_eng/data_characteristics.py
def image_tile_characteristics(images_and_xmls_by_tile_path, tiles_dir):#, tile_name_tile_url, verified_positive_jpgs): tile_names_by_tile = [] tile_paths_by_tile = [] #tile_urls_by_tile = [] tile_heights = [] tile_widths = [] tile_depths = [] min_utmx_tile = [] #NW_coordinates min_utmy...
PypiClean
/collie-lm-1.0.3.tar.gz/collie-lm-1.0.3/collie/metrics/base.py
from abc import ABC, abstractmethod import torch.distributed as dist from typing import Any, Dict, List, Optional, Sequence from functools import reduce import torch from collie.utils import apply_to_collection class BaseMetric(ABC): """ **Metric** 的基类。 :param gather_result: 在计算 metric 的时候是否自动将各个进程上的输入进...
PypiClean
/tensorflow-2.1.1-cp36-cp36m-macosx_10_11_x86_64.whl/tensorflow_core/python/debug/cli/analyzer_cli.py
from __future__ import absolute_import from __future__ import division from __future__ import print_function import argparse import copy import re from six.moves import xrange # pylint: disable=redefined-builtin from tensorflow.python.debug.cli import cli_config from tensorflow.python.debug.cli import cli_shared fr...
PypiClean
/py-pure-client-1.38.0.tar.gz/py-pure-client-1.38.0/pypureclient/flasharray/FA_2_14/models/policy_rule_quota_post.py
import pprint import re import six import typing from ....properties import Property if typing.TYPE_CHECKING: from pypureclient.flasharray.FA_2_14 import models class PolicyRuleQuotaPost(object): """ Attributes: swagger_types (dict): The key is attribute name and the val...
PypiClean
/jupyterlab_geojs-0.3.3.tar.gz/jupyterlab_geojs-0.3.3/jupyterlab_geojs/lasutils.py
import os import pkg_resources import struct import sys import uuid class LASHeader: '''Data representing LAS public header block ''' def __init__(self): # In public header block order: self.file_signature = None self.file_source_id = None self.global_encoding = None ...
PypiClean
/py_tictoc_timer-2.1.1-py3-none-any.whl/py_tictoc_timer/tictoc.py
from __future__ import annotations # Python StdLib Imports from timeit import default_timer from typing import Optional # Python Open Source Imports from typeguard import typechecked __all__ = ["TicToc"] class TicToc: """ Summary: TicToc Timer to be used similar to MATLAB's `tic` and `toc` functio...
PypiClean
/psenet-text-detector-0.1.1.tar.gz/psenet-text-detector-0.1.1/psenet_text_detector/predict.py
import os import cv2 import collections import torch import torch.backends.cudnn as cudnn import numpy as np import torchvision.transforms as transforms from pathlib import Path from PIL import Image from psenet_text_detector.models import resnet50 from psenet_text_detector.pypse import pse as pypse from psenet_text_d...
PypiClean
/nodejs_bin-18.4.0a3-py3-none-manylinux_2_12_x86_64.manylinux2010_x86_64.whl/nodejs/lib/node_modules/npm/node_modules/make-fetch-happen/lib/cache/policy.js
const CacheSemantics = require('http-cache-semantics') const Negotiator = require('negotiator') const ssri = require('ssri') // options passed to http-cache-semantics constructor const policyOptions = { shared: false, ignoreCargoCult: true, } // a fake empty response, used when only testing the // request for sto...
PypiClean
/azure-graphrbac-0.61.1.zip/azure-graphrbac-0.61.1/azure/graphrbac/models/service_principal_py3.py
from .directory_object_py3 import DirectoryObject class ServicePrincipal(DirectoryObject): """Active Directory service principal information. Variables are only populated by the server, and will be ignored when sending a request. All required parameters must be populated in order to send to Azure. ...
PypiClean
/PyMunin-0.9.27.tar.gz/PyMunin-0.9.27/pysysinfo/freeswitch.py
import re import ESL __author__ = "Ali Onur Uyar" __copyright__ = "Copyright 2011, Ali Onur Uyar" __credits__ = [] __license__ = "GPL" __version__ = "0.5" __maintainer__ = "Ali Onur Uyar" __email__ = "aouyar at gmail.com" __status__ = "Development" # # DEFAULTS # defaultESLport = 8021 defaultESLsecret = 'ClueCon' c...
PypiClean
/py-pure-client-1.38.0.tar.gz/py-pure-client-1.38.0/pypureclient/flashblade/FB_2_1/models/syslog_server.py
import pprint import re import six import typing from ....properties import Property if typing.TYPE_CHECKING: from pypureclient.flashblade.FB_2_1 import models class SyslogServer(object): """ Attributes: swagger_types (dict): The key is attribute name and the value is at...
PypiClean
/icmplibv2-1.0.6.tar.gz/icmplibv2-1.0.6/icmplib/sockets.py
from .ip import IPv4Socket, IPv6Socket from .models import ICMPRequest, ICMPReply from .exceptions import * from .utils import random_byte_message import socket from struct import pack, unpack from time import time # Echo Request and Echo Reply messages -- RFC 792 / 4443 # # 0 1 ...
PypiClean
/volcano_x-0.0.5-py3-none-any.whl/volcano/lib/modbus.py
import enum from . import stdint ''' раньше было 270, но я лично видел ответы на 100 функцию длиной 275 байт (rtu + crc) Данное значение не дб точным, оно дб НЕ МЕНЬШЕ реального. Оно используется для выделения буферов. At this moment longest is request to write words: Slave(1),Fn(1),Addr(2),Nb...
PypiClean
/taskcc-alipay-sdk-python-3.3.398.tar.gz/taskcc-alipay-sdk-python-3.3.398/alipay/aop/api/domain/KbAdvertCommissionClauseResponse.py
import json from alipay.aop.api.constant.ParamConstants import * from alipay.aop.api.domain.KbAdvertCommissionClausePercentageResponse import KbAdvertCommissionClausePercentageResponse from alipay.aop.api.domain.KbAdvertCommissionClauseQuotaResponse import KbAdvertCommissionClauseQuotaResponse class KbAdvertCommissi...
PypiClean
/yt-dlp-custom-0.0.1.tar.gz/yt-dlp-custom-0.0.1/yt_dlp/extractor/curiositystream.py
import re import urllib.parse from .common import InfoExtractor from ..compat import compat_str from ..utils import ExtractorError, int_or_none, urlencode_postdata class CuriosityStreamBaseIE(InfoExtractor): _NETRC_MACHINE = 'curiositystream' _auth_token = None def _handle_errors(self, result): ...
PypiClean
/testflows.github.hetzner.runners-1.5.230824.1164414.tar.gz/testflows.github.hetzner.runners-1.5.230824.1164414/testflows/github/hetzner/runners/logger.py
import os import json import copy import logging import logging.handlers import tempfile logger = logging.getLogger("testflows.github.hetzner.runners") encoded_message_prefix = "✉ " def decode_message(msg): """Decode encoded message.""" if msg.startswith(encoded_message_prefix): try: ret...
PypiClean
/matrix_nio-0.21.2-py3-none-any.whl/nio/crypto/olm_machine.py
# Copyright © 2018, 2019 Damir Jelić <poljar@termina.org.uk> # # Permission to use, copy, modify, and/or distribute this software for # any purpose with or without fee is hereby granted, provided that the # above copyright notice and this permission notice appear in all copies. # # THE SOFTWARE IS PROVIDED "AS IS" AND...
PypiClean
/django-sentry-1.13.5.tar.gz/django-sentry-1.13.5/sentry/search_indexes.py
import haystack from haystack.indexes import * from haystack.sites import SearchSite from sentry.conf import settings from sentry.utils import to_unicode from sentry.models import GroupedMessage if settings.SEARCH_ENGINE: # Ensure we stop here if we havent configure Sentry to work under haystack backend = ha...
PypiClean
/msgraph_beta_sdk-1.0.0a9-py3-none-any.whl/msgraph/generated/drives/item/items/item/workbook/functions/gamma_ln_precise/gamma_ln_precise_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
/napalm-yang-0.1.0.tar.gz/napalm-yang-0.1.0/napalm_yang/models/openconfig/network_instances/network_instance/protocols/protocol/isis/levels/level/link_state_database/lsp/tlvs/tlv/extended_is_reachability/neighbors/neighbors_/undefined_subtlvs/__init__.py
from operator import attrgetter from pyangbind.lib.yangtypes import RestrictedPrecisionDecimalType from pyangbind.lib.yangtypes import RestrictedClassType from pyangbind.lib.yangtypes import TypedListType from pyangbind.lib.yangtypes import YANGBool from pyangbind.lib.yangtypes import YANGListType from pyangbind.lib.ya...
PypiClean
/basalt-0.2.9.tar.gz/basalt-0.2.9/doc/source/cpp_api/program_listing_file__goinfre_src_github.com_BlueBrain_basalt_include_basalt_fwd.hpp.rst
.. _program_listing_file__goinfre_src_github.com_BlueBrain_basalt_include_basalt_fwd.hpp: Program Listing for File fwd.hpp ================================ |exhale_lsh| :ref:`Return to documentation for file <file__goinfre_src_github.com_BlueBrain_basalt_include_basalt_fwd.hpp>` (``/goinfre/src/github.com/BlueBrain/...
PypiClean
/senaite.core-2.4.1.zip/senaite.core-2.4.1/README.rst
.. image:: https://raw.githubusercontent.com/senaite/senaite.core/master/static/logo_pypi.png :target: https://github.com/senaite/senaite.core :alt: senaite.core :height: 128px *Open Source LIMS Core based on the CMS Plone* ============================================== .. image:: https://img.shields.io/pypi...
PypiClean
/azureml_train_automl_client-1.53.0-py3-none-any.whl/azureml/train/automl/_experiment_drivers/local_managed_experiment_launcher.py
"""Experiment launcher for local managed experiments.""" import logging import os import pickle as pkl import shutil import subprocess import sys import tempfile import time from typing import Any, Dict, List, Optional, Tuple import pkg_resources as pkgr from azureml._base_sdk_common._docstring_wrapper import experime...
PypiClean
/kitchen-1.2.6.tar.gz/kitchen-1.2.6/kitchen2/docs/api-text-converters.rst
----------------------- Kitchen.text.converters ----------------------- .. automodule:: kitchen.text.converters Byte Strings and Unicode in Python2 =================================== Python2 has two string types, :class:`str` and :class:`unicode`. :class:`unicode` represents an abstract sequence of text characters....
PypiClean
/grad-cam-1.4.8.tar.gz/grad-cam-1.4.8/pytorch_grad_cam/ablation_cam_multilayer.py
import cv2 import numpy as np import torch import tqdm from pytorch_grad_cam.base_cam import BaseCAM class AblationLayer(torch.nn.Module): def __init__(self, layer, reshape_transform, indices): super(AblationLayer, self).__init__() self.layer = layer self.reshape_transform = reshape_trans...
PypiClean
/ais_dom_frontend-20230831.0-py3-none-any.whl/hass_frontend/frontend_es5/82521-CxJM8lGgD38.js
"use strict";(self.webpackChunkhome_assistant_frontend=self.webpackChunkhome_assistant_frontend||[]).push([[82521],{84912:function(t,e,n){var i,a,o=n(88962),r=n(33368),s=n(71650),c=n(82390),d=n(69205),l=n(70906),p=n(91808),u=n(68144),h=n(79932),g=(n(52039),n(11254));(0,p.Z)([(0,h.Mo)("integration-badge")],(function(t,e...
PypiClean
/ta_tooling-0.3.3-py3-none-any.whl/bbutils/static/extract_submission_file.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
/google-cloud-enterpriseknowledgegraph-0.3.3.tar.gz/google-cloud-enterpriseknowledgegraph-0.3.3/google/cloud/enterpriseknowledgegraph_v1/services/enterprise_knowledge_graph_service/transports/grpc_asyncio.py
from typing import Awaitable, Callable, Dict, Optional, Sequence, Tuple, Union import warnings from google.api_core import gapic_v1, grpc_helpers_async from google.auth import credentials as ga_credentials # type: ignore from google.auth.transport.grpc import SslCredentials # type: ignore from google.longrunning imp...
PypiClean
/pytorch-fid-0.3.0.tar.gz/pytorch-fid-0.3.0/src/pytorch_fid/inception.py
import torch import torch.nn as nn import torch.nn.functional as F import torchvision try: from torchvision.models.utils import load_state_dict_from_url except ImportError: from torch.utils.model_zoo import load_url as load_state_dict_from_url # Inception weights ported to Pytorch from # http://download.tenso...
PypiClean
/SparseCOOTensorMulPyTorch-0.0.1.tar.gz/SparseCOOTensorMulPyTorch-0.0.1/.eggs/torch-1.9.0-py3.8-win-amd64.egg/torch/quantization/quantize_fx.py
import torch from torch.fx import GraphModule from torch.fx.symbolic_trace import Tracer from torch.fx.node import Target, Node, Argument from .fx import Fuser # noqa: F401 from .fx import Quantizer # noqa: F401 from .fx.utils import graph_pretty_str # noqa: F401 from .fx.utils import get_custom_module_class_keys #...
PypiClean
/s3transfer-meiqia-0.1.10.tar.gz/s3transfer-meiqia-0.1.10/s3transfer/download.py
import logging import os import socket import math import threading import heapq from botocore.compat import six from botocore.exceptions import IncompleteReadError from botocore.vendored.requests.packages.urllib3.exceptions import \ ReadTimeoutError from s3transfer.compat import SOCKET_ERROR from s3transfer.com...
PypiClean
/adversarial_robustness_toolbox-1.15.1-py3-none-any.whl/art/attacks/evasion/frame_saliency.py
from __future__ import absolute_import, division, print_function, unicode_literals import logging from typing import Optional, TYPE_CHECKING import numpy as np from tqdm.auto import trange from art.config import ART_NUMPY_DTYPE from art.estimators.estimator import BaseEstimator, NeuralNetworkMixin from art.estimator...
PypiClean
/compress_gpt-0.1.2-py3-none-any.whl/compress_gpt/prompts/identify_static.py
from textwrap import dedent from langchain import PromptTemplate from langchain.prompts import ( ChatPromptTemplate, HumanMessagePromptTemplate, SystemMessagePromptTemplate, ) from pydantic import BaseModel from compress_gpt.prompts.compress_chunks import CompressChunks from compress_gpt.utils import wrap...
PypiClean
/ansible-8.3.0-py3-none-any.whl/ansible_collections/microsoft/ad/plugins/modules/ou.py
# Copyright: (c) 2023, Ansible Project # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) DOCUMENTATION = r""" --- module: ou short_description: Manage Active Directory organizational units description: - Manages Active Directory organizational units and their attributes. opt...
PypiClean
/comt-2.6.4.tar.gz/comt-2.6.4/src/cm/media/js/lib/yui/yui3-3.15.0/build/widget-base/widget-base-coverage.js
if (typeof __coverage__ === 'undefined') { __coverage__ = {}; } if (!__coverage__['build/widget-base/widget-base.js']) { __coverage__['build/widget-base/widget-base.js'] = {"path":"build/widget-base/widget-base.js","s":{"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":0,"13":0,"14":0,"15":0,"...
PypiClean
/sagemath-categories-10.0b1.tar.gz/sagemath-categories-10.0b1/sage/categories/number_fields.py
r""" Number fields """ # **************************************************************************** # Copyright (C) 2005 David Kohel <kohel@maths.usyd.edu> # William Stein <wstein@math.ucsd.edu> # 2008 Teresa Gomez-Diaz (CNRS) <Teresa.Gomez-Diaz@univ-mlv.fr> # ...
PypiClean
/controlnet_k-0.1.4-py3-none-any.whl/controlnet_k/annotator/uniformer/mmcv/runner/hooks/logger/pavi.py
import json import os import os.path as osp import torch import yaml import annotator.uniformer.mmcv as mmcv from ....parallel.utils import is_module_wrapper from ...dist_utils import master_only from ..hook import HOOKS from .base import LoggerHook @HOOKS.register_module() class PaviLoggerHook(LoggerHook): de...
PypiClean
/flying_circus-0.7.3-py3-none-any.whl/flyingcircus/_raw/autoscaling.py
from typing import Any from typing import Dict from attr import attrib from attr import attrs from ..core import ATTRSCONFIG from ..core import Resource from ..core import ResourceProperties from ..core import create_object_converter __all__ = [ "AutoScalingGroup", "AutoScalingGroupProperties", "LaunchCo...
PypiClean
/google-cloud-dataproc-5.4.3.tar.gz/google-cloud-dataproc-5.4.3/google/cloud/dataproc_v1/services/cluster_controller/pagers.py
from typing import ( Any, AsyncIterator, Awaitable, Callable, Sequence, Tuple, Optional, Iterator, ) from google.cloud.dataproc_v1.types import clusters class ListClustersPager: """A pager for iterating through ``list_clusters`` requests. This class thinly wraps an initial ...
PypiClean
/unblock-1.5.0.1.tar.gz/unblock-1.5.0.1/superset/static/assets/7f06c47d9821e0634a48.chunk.js
"use strict";(globalThis.webpackChunksuperset=globalThis.webpackChunksuperset||[]).push([[7974],{27974:(t,e,o)=>{o.r(e),o.d(e,{default:()=>J});var a=o(67294);const r={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544...
PypiClean
/allenact_plugins-0.5.3.tar.gz/allenact_plugins-0.5.3/allenact_plugins/babyai_plugin/scripts/download_babyai_expert_demos.py
import argparse import os import platform from allenact_plugins.babyai_plugin.babyai_constants import ( BABYAI_EXPERT_TRAJECTORIES_DIR, ) LEVEL_TO_TRAIN_VALID_IDS = { "BossLevel": ( "1DkVVpIEVtpyo1LxOXQL_bVyjFCTO3cHD", "1ccEFA_n5RT4SWD0Wa_qO65z2HACJBace", ), "GoToObjMaze": ( "1...
PypiClean
/py-mysql-client-0.0.0.2.tar.gz/py-mysql-client-0.0.0.2/easymysql/pooling.py
import re from uuid import uuid4 # pylint: disable=F0401 try: import queue except ImportError: # Python v2 import Queue as queue # pylint: enable=F0401 import threading try: from mysql.connector.connection_cext import (CMySQLConnection) except ImportError: CMySQLConnection = None from . import err...
PypiClean
/orb-api-4.4.12.tar.gz/orb-api-4.4.12/orb/schema/table.py
import datetime import logging import projex.rest import projex.security import projex.text import re from projex.enum import enum from projex.locks import ReadLocker, ReadWriteLock, WriteLocker from projex.lazymodule import lazy_import from projex.text import nativestring as nstr from projex.callbacks import Callback...
PypiClean
/sunriset-1.0.tar.gz/sunriset-1.0/README.md
Sunriset ========== Solar Calculator ========== This package generates **Solar Position Data** based on Latitude, Longitude, Date and Time Zone. *Future updates will include elevation data.* The initial goal was to create a *simple* function that produced the daily sunrise and sunset for any given location. These...
PypiClean
/alipay-python-3.3.17.tar.gz/alipay-python-3.3.17/alipay/aop/api/request/ZhimaCreditEpSceneAgreementCancelRequest.py
import json from alipay.aop.api.FileItem import FileItem from alipay.aop.api.constant.ParamConstants import * from alipay.aop.api.domain.ZhimaCreditEpSceneAgreementCancelModel import ZhimaCreditEpSceneAgreementCancelModel class ZhimaCreditEpSceneAgreementCancelRequest(object): def __init__(self, biz_model=Non...
PypiClean
/pybullet-svl-3.1.6.4.tar.gz/pybullet-svl-3.1.6.4/examples/pybullet/gym/pybullet_envs/examples/enjoy_TF_HumanoidBulletEnv_v0_2017may.py
import os, inspect currentdir = os.path.dirname(os.path.abspath(inspect.getfile(inspect.currentframe()))) parentdir = os.path.dirname(os.path.dirname(currentdir)) os.sys.path.insert(0, parentdir) import gym import numpy as np import pybullet_envs import time def relu(x): return np.maximum(x, 0) class SmallReacti...
PypiClean
/scikit_learn_VAL-0.0.1-cp36-cp36m-macosx_10_15_x86_64.whl/sklearn/decomposition/_incremental_pca.py
# Author: Kyle Kastner <kastnerkyle@gmail.com> # Giorgio Patrini # License: BSD 3 clause import numpy as np from scipy import linalg, sparse from ._base import _BasePCA from ..utils import check_array, gen_batches from ..utils.extmath import svd_flip, _incremental_mean_and_var class IncrementalPCA(_BasePCA...
PypiClean
/tensorflow_macos-2.14.0rc0-cp311-cp311-macosx_12_0_arm64.whl/tensorflow/python/keras/engine/training_arrays_v1.py
"""Part of the Keras training engine related to plain array data.""" # pylint: disable=protected-access import functools import numpy as np from tensorflow.python.data.ops import iterator_ops from tensorflow.python.eager import context from tensorflow.python.framework import errors from tensorflow.python.keras impor...
PypiClean
/mis_modulos-0.1.tar.gz/mis_modulos-0.1/numpy/array_api/_creation_functions.py
from __future__ import annotations from typing import TYPE_CHECKING, List, Optional, Tuple, Union if TYPE_CHECKING: from ._typing import ( Array, Device, Dtype, NestedSequence, SupportsBufferProtocol, ) from collections.abc import Sequence from ._dtypes import _all...
PypiClean
/aquosRemote-1.5.1.tar.gz/aquosRemote-1.5.1/README.md
# Sharp AQUOS Remote Python Python module for sending Remote Control Codes to your Sharp AQUOS Smart TV ## Install ```bash pip install aquosRemote ``` ## Setup ### Enabled AQUOS Remote Control 1. Go to MENU 2. Go to the Inital Setup Tab 3. Go to AQUOS Remote Control 4. Enable AQUOS Remote ### Find your IP 1. Go...
PypiClean
/pantsbuild.pants-2.18.0a0-cp39-cp39-macosx_10_15_x86_64.whl/pants/engine/rules.py
from __future__ import annotations import inspect import sys from dataclasses import dataclass from enum import Enum from types import FrameType, ModuleType from typing import ( Any, Callable, Iterable, Mapping, Optional, Tuple, Type, TypeVar, Union, get_type_hints, overloa...
PypiClean
/VodBot-1.1.10.tar.gz/VodBot-1.1.10/vodbot/itd/worker.py
from vodbot.config import Config from vodbot.printer import cprint from vodbot.util import format_duration, format_size import os import requests from datetime import datetime from collections import OrderedDict from concurrent.futures import Future, ThreadPoolExecutor, as_completed, wait from functools import partia...
PypiClean
/bluebeam_re-4.0.0-py3-none-any.whl/bluebeam/objects/BossSpawnTrigger.py
import math import os from bluebeam.objects import GameObject import pygame class BossSpawnTrigger(GameObject): def __init__(self, g_, l_, pos_=None): super().__init__(g_, l_, pos_) self._activated = 0 self.rect = pygame.rect.Rect(self.pos.x,self.pos.y,1024,256) self.rect.midtop =...
PypiClean
/codat-assess-0.31.1.tar.gz/codat-assess-0.31.1/src/codatassess/models/shared/financialmetric.py
from __future__ import annotations import dataclasses from codatassess import utils from dataclasses_json import Undefined, dataclass_json from datetime import date from enum import Enum from marshmallow import fields from typing import Optional class FinancialMetricErrorsType(str, Enum): r"""Metric level error."...
PypiClean
/tocka-Django-1.7.8.tar.gz/tocka-Django-1.7.8/django/contrib/auth/checks.py
from __future__ import unicode_literals from django.apps import apps from django.conf import settings from django.core import checks def check_user_model(**kwargs): errors = [] cls = apps.get_model(settings.AUTH_USER_MODEL) # Check that REQUIRED_FIELDS is a list if not isinstance(cls.REQUIRED_FIELD...
PypiClean
/xchainpy_bitcoin-0.2.3-py3-none-any.whl/xchainpy_bitcoin/sochain_api.py
import json from . models.common import UTXO, Witness_UTXO import http3 import asyncio from xchainpy_client.models.balance import Balance from xchainpy_util.asset import AssetBTC DEFAULT_SUGGESTED_TRANSACTION_FEE = 127 def to_sochain_network(network: str): return 'BTCTEST' if network == 'testnet' else 'BTC' def ...
PypiClean
/odoo_addon_hr_org_chart_overview-15.0.1.0.0.5-py3-none-any.whl/odoo/addons/hr_org_chart_overview/static/src/lib/orgchart/jquery.orgchart.js
'use strict'; (function (factory) { if (typeof module === 'object' && typeof module.exports === 'object') { factory(require('jquery'), window, document); } else { factory(jQuery, window, document); } }(function ($, window, document, undefined) { var OrgChart = function (elem, opts) { this.$chartCon...
PypiClean
/PyRobiLibrary-1.0.0.tar.gz/PyRobiLibrary-1.0.0/PyRobi/Getheader.py
import aiohttp import asyncio from PyRobi.Encoder import encoderjson from PyRobi.PostData import method_Rubika,httpfiles,_download_with_server from json import loads from pathlib import Path from PyRobi.Clien import clien class Upload: def __init__(self, Sh_account:str): self.Auth = Sh_account self...
PypiClean
/gdata/tlslite/mathtls.py
from utils.compat import * from utils.cryptomath import * import hmac import md5 import sha #1024, 1536, 2048, 3072, 4096, 6144, and 8192 bit groups] goodGroupParameters = [(2,0xEEAF0AB9ADB38DD69C33F80AFA8FC5E86072618775FF3C0B9EA2314C9C256576D674DF7496EA81D3383B4813D692C6E0E0D5D8E250B98BE48E495C1D6089DAD15DC7D7B4615...
PypiClean
/oc-js-0.8.tar.gz/oc-js-0.8/opencore/js/thirdparty/xinha97-pre/plugins/TableOperations/lang/de.js
{ "Align": "Ausrichtung", "All four sides": "Alle 4 Seiten", "Background": "Hintergrund", "Baseline": "Grundlinie", "Border": "Rahmen", "Borders": "Rahmen", "Bottom": "Unten", "Style [CSS]": "Style [CSS]", "Caption": "Überschrift", "Cell Properties": "Zellenoptionen", "Center": "Zentriert", "Cha...
PypiClean
/SilentDune-Server-0.6.tar.gz/SilentDune-Server-0.6/silentdune_server/static/startbootstrap-sb-admin-2-1.0.8/bower_components/bootstrap/grunt/bs-lessdoc-parser.js
'use strict'; var Markdown = require('markdown-it'); function markdown2html(markdownString) { var md = new Markdown(); // the slice removes the <p>...</p> wrapper output by Markdown processor return md.render(markdownString.trim()).slice(3, -5); } /* Mini-language: //== This is a normal heading, which star...
PypiClean
/simpel_sales-0.1.2-py3-none-any.whl/simpel_sales/models/invoices.py
from datetime import timedelta from decimal import Decimal from django.contrib.auth import get_user_model from django.contrib.contenttypes.fields import GenericForeignKey, GenericRelation from django.contrib.contenttypes.models import ContentType from django.core.validators import MaxValueValidator, MinValueValidator ...
PypiClean
/tripleo_validations-16.0.0-py3-none-any.whl/tripleo_validations-16.0.0.data/data/share/ansible/library/check_cpus_aligned_with_dpdk_nics.py
# -*- coding: utf-8 -*- # 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 applicable law or agreed to in writing, softwar...
PypiClean
/deep_geometry-2.0.0-py3-none-any.whl/deep_geometry/vectorizer.py
import re from typing import List, Optional import shapely from shapely import wkt, geometry import numpy as np import math # TODO: refactor GEOMETRY_TYPES to use shapely.geometry.base.GEOMETRY_TYPE GEOMETRY_TYPES = ["GeometryCollection", "Point", "LineString", "Polygon", "MultiPoint", "MultiLineString", ...
PypiClean
/dingodb-0.0.5.tar.gz/dingodb-0.0.5/README.md
# python-dingodb The DingoDB python sdk First, you have prepared the DingoDB environment, see the docs at https://github.com/dingodb/dingo-deploy.git For more information, see the docs at https://dingodb.readthedocs.io/en/latest/ ## Installation Install python-dingodb from pip: ```shell pip3 install dingodb ``` ##...
PypiClean
/netconf-console2-3.0.0.tar.gz/netconf-console2-3.0.0/README.rst
netconf-console2 ================ A console application for interacting with NETCONF servers built on top of `ncclient <http://https://pypi.org/project/ncclient/>`__. *Note:* this is a continuation (or a rename) of the project ``netconf-console``; the old name was clashing with another product. Use ``netconf-console...
PypiClean
/idealoom-0.1.0-py3-none-any.whl/assembl/static/widget/vote/other/messageformat.js/node_modules/watchr/node_modules/extendr/node_modules/typechecker/out/lib/typechecker.js
(function() { var typeChecker, __hasProp = {}.hasOwnProperty; typeChecker = { getObjectType: function(value) { return Object.prototype.toString.call(value); }, getType: function(value) { var result, type, _i, _len, _ref; result = 'object'; _ref = ['Array', 'RegExp', 'Date', ...
PypiClean
/bartbroere_streamlit-1.25.1-py3-none-any.whl/streamlit/elements/widgets/multiselect.py
from dataclasses import dataclass from textwrap import dedent from typing import ( TYPE_CHECKING, Any, Callable, Generic, List, Optional, Sequence, Union, cast, overload, ) from streamlit.elements.form import current_form_id from streamlit.elements.utils import ( check_call...
PypiClean
/rer.cookieconsent-0.4.6.tar.gz/rer.cookieconsent-0.4.6/rer/cookieconsent/exportimport/handlers.py
from zope.interface import implementer from zope.component import adapts from zope.component import getSiteManager from zope.component import queryMultiAdapter from zope.component.interfaces import IComponentRegistry from Products.GenericSetup.interfaces import IBody from Products.GenericSetup.interfaces import ISetup...
PypiClean
/pulumi_azure_native-2.5.1a1693590910.tar.gz/pulumi_azure_native-2.5.1a1693590910/pulumi_azure_native/streamanalytics/v20200301/list_cluster_streaming_jobs.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__ = [ 'ListClusterStreamingJobsResult', 'AwaitableListClusterStreamingJobsResult', 'list_cluster_streaming_jobs', ...
PypiClean
/wmb-0.1.36.tar.gz/wmb-0.1.36/analysis/clustering/mc/05b-Decomposition-mCG.ipynb
``` import yaml import anndata import scanpy as sc from scipy.sparse import csr_matrix from ALLCools.clustering import significant_pc_test, log_scale, balanced_pca ``` ## Parameters ``` with open('config/05b.yaml', 'r') as f: config = yaml.safe_load(f) locals().update(config) print('Notebook configs:') ...
PypiClean
/sagemath-standard-10.0b0.tar.gz/sagemath-standard-10.0b0/sage/combinat/diagram.py
r""" Combinatorial diagrams A combinatorial diagram is a collection of cells `(i,j)` indexed by pairs of natural numbers. For arbitrary diagrams, see :class:`Diagram`. There are also two other specific types of diagrams implemented here. They are northwest diagrams (:class:`NorthwestDiagram`) and Rothe diagrams (:fun...
PypiClean
/mypy_mypyc-0.670-cp36-cp36m-win_amd64.whl/mypy/newsemanal/semanal_typeddict.py
from collections import OrderedDict from typing import Optional, List, Set, Tuple, cast from mypy.types import Type, AnyType, TypeOfAny, TypedDictType from mypy.nodes import ( CallExpr, TypedDictExpr, Expression, NameExpr, Context, StrExpr, BytesExpr, UnicodeExpr, ClassDef, RefExpr, TypeInfo, AssignmentStmt, ...
PypiClean
/wildbook_ia-4.0.4-py3-none-any.whl/wbia/web/routes_csv.py
import logging import utool as ut from flask import current_app from wbia.control import controller_inject from wbia.web import appfuncs as appf from wbia.web import routes (print, rrr, profile) = ut.inject2(__name__) logger = logging.getLogger('wbia') register_route = controller_inject.get_wbia_flask_route(__name_...
PypiClean
/hiton_ezk-0.0.7.tar.gz/hiton_ezk-0.0.7/src/hiton_ezk/hiton.py
import sys import numpy as np from typing import List from hiton_ezk.ezk import estimate_wasserstein from hiton_ezk.helper import powerset, c_subselect, sigmoid from hiton_ezk.data_structures import CpnVar, CpnSub choleskySetting = True # default: True symPosSetting = False # default: True def sample_function(param...
PypiClean