id
stringlengths
1
8
text
stringlengths
6
1.05M
dataset_id
stringclasses
1 value
/latimes-appengine-template-0.022.tar.gz/latimes-appengine-template-0.022/appengine_template/google_appengine/lib/django_1_2/django/core/management/sql.py
import os import re from django.conf import settings from django.core.management.base import CommandError from django.db import models from django.db.models import get_models def sql_create(app, style, connection): "Returns a list of the CREATE TABLE SQL statements for the given app." if connection.settings_...
PypiClean
/open_spiel_custom-2.0.1.tar.gz/open_spiel_custom-2.0.1/open_spiel/python/mfg/examples/mfg_dqn_fp_jax.py
"""Deep Fictitious Play using DQN agents trained on an MFG.""" from absl import flags import jax from open_spiel.python import policy from open_spiel.python import rl_agent_policy from open_spiel.python import rl_environment from open_spiel.python.jax import dqn from open_spiel.python.mfg.algorithms import distributi...
PypiClean
/sarpy_apps-1.1.23.tar.gz/sarpy_apps-1.1.23/sarpy_apps/apps/aperture_tool.py
__classification__ = "UNCLASSIFIED" __author__ = ("Jason Casey", "Thomas McCullough") import os import time import numpy from typing import Union, Tuple, List, Optional from scipy.constants import foot, inch import tkinter from tkinter import ttk from tkinter.filedialog import asksaveasfilename, askopenfilenames, ...
PypiClean
/tf_agents-0.17.0rc1-py3-none-any.whl/tf_agents/environments/random_tf_environment.py
from __future__ import absolute_import from __future__ import division from __future__ import print_function import tensorflow as tf # pylint: disable=g-explicit-tensorflow-version-import from tf_agents.environments import tf_environment from tf_agents.specs import tensor_spec from tf_agents.trajectories import time...
PypiClean
/TkZero-0.1.2.tar.gz/TkZero-0.1.2/Examples/FullApps/Notepad/Notepad.py
from TkZero import Dialog from TkZero.MainWindow import MainWindow from TkZero.Menu import Menu, MenuCascade, MenuCommand, MenuSeparator from TkZero.Scrollbar import Scrollbar, OrientModes from TkZero.Text import Text # Create a main window root = MainWindow() root.title = "Untitled - Notepad" # Disables resizing on ...
PypiClean
/Demomgr-1.10.1-py3-none-any.whl/demomgr/platforming.py
import ctypes from ctypes import wintypes from ctypes import Structure, POINTER import os from pathlib import Path import platform import demomgr.constants as CNST _system = platform.system().lower() if _system == "windows": kernel32 = ctypes.windll.Kernel32 # This should be good: # https://superuser.com/questio...
PypiClean
/repl_streamlit-1.16.2.tar.gz/repl_streamlit-1.16.2/streamlit/elements/color_picker.py
import re from dataclasses import dataclass from textwrap import dedent from typing import Optional, cast import streamlit from streamlit.elements.form import current_form_id from streamlit.elements.utils import ( check_callback_rules, check_session_state_rules, get_label_visibility_proto_value, ) from st...
PypiClean
/voltools-0.6.0.tar.gz/voltools-0.6.0/README.md
## voltools [![TraviCI build status](https://travis-ci.com/the-lay/voltools.svg?branch=master)](https://travis-ci.com/the-lay/voltools) [![PyPI latest version](https://badge.fury.io/py/voltools.svg)](https://pypi.org/project/voltools/) ##### CUDA-accelerated numpy/cupy texture memory 3D affine transformations #### Fe...
PypiClean
/ibis_framework-6.2.0-py3-none-any.whl/ibis/expr/operations/window.py
from __future__ import annotations from abc import abstractmethod from public import public import ibis.common.exceptions as com import ibis.expr.datatypes as dt import ibis.expr.rules as rlz from ibis.expr.operations import Value @public class WindowBoundary(Value): # TODO(kszucs): consider to prefer Concrete...
PypiClean
/habana_media_loader-1.11.0.587-py3-none-any.whl/habana_frameworks/mediapipe/operators/reader_nodes/reader_utils.py
import numpy as np class dataset_shuffler(): def __init__(self, seed, shuffle, slice_index, num_slices, batch_size, num_unique_elements, drop_remainder, pad_remainder, shuffle_across_dataset, is_mod_slice): self.rng = np.random.default_rng(seed) self.shuffle = shu...
PypiClean
/sphinx-3dr-theme-0.4.0.tar.gz/sphinx-3dr-theme-0.4.0/sphinx_3dr_theme/static/js/bootstrap.js
if (typeof jQuery === 'undefined') { throw new Error('Bootstrap\'s JavaScript requires jQuery') } +function ($) { 'use strict'; var version = $.fn.jquery.split(' ')[0].split('.') if ((version[0] < 2 && version[1] < 9) || (version[0] == 1 && version[1] == 9 && version[2] < 1)) { throw new Error('Bootstrap\'...
PypiClean
/bp-pysnmp-4.4.3.tar.gz/bp-pysnmp-4.4.3/docs/source/faq/non-printable-snmp-values-apps.rst
Garbaged SNMP values (apps) --------------------------- Q. When my PySNMP application prints out fetched values, some of them come out as a garbage on my screan. Here's my code: .. code-block:: python for varBind in varBinds: print(' = '.join([ str(x) for x in varBind ]) and the result is: .. cod...
PypiClean
/minerva_etl-5.3.2-py3-none-any.whl/minerva/commands/__init__.py
import json import sys import argparse from minerva.util.tabulate import render_table from minerva.harvest.plugins import list_plugins, \ get_plugin as get_harvest_plugin class ConfigurationError(Exception): pass class ListPlugins(argparse.Action): def __init__(self, option_strings, dest=argparse.SUPPR...
PypiClean
/j11hail-99.2.58-py3-none-any.whl/hail/experimental/dnd/array.py
import json import numpy as np from typing import Optional, Tuple, Callable, Any from hail.utils.java import Env from hail.utils import range_table, new_temp_file from hail.expr import Expression from hail import nd from hail.matrixtable import MatrixTable from hail.table import Table import hail as hl def array(mt...
PypiClean
/NlpToolkit-Corpus-1.0.25.tar.gz/NlpToolkit-Corpus-1.0.25/Corpus/Sentence.py
from __future__ import annotations import io from Dictionary.Word import Word from Corpus.LanguageChecker import LanguageChecker class Sentence: words: list def __init__(self, fileOrStr=None, languageChecker: LanguageChecker = None): """ Another constructo...
PypiClean
/fast-cat-0.0.5.tar.gz/fast-cat-0.0.5/fastcat/simulate.py
from __future__ import print_function import logging import os import sys import numpy as np import tigre from scipy.ndimage import gaussian_filter from scipy.optimize import curve_fit from scipy.signal import fftconvolve from scipy.interpolate import interp1d try: import matplotlib.pyplot as plt PLOT_AVAIL...
PypiClean
/django-geoexplorer-worldmap-4.0.72.tar.gz/django-geoexplorer-worldmap-4.0.72/geoexplorer-worldmap/static/worldmap_client/script/app/GeoNode/BatchDownloadWidget.js
Ext.namespace("GeoNode"); GeoNode.BatchDownloadWidget = Ext.extend(Ext.util.Observable, { downloadingText: 'UT: Downloading...', cancelText: 'UT: Cancel', windowMessageText: 'UT: Please wait', constructor: function(config) { Ext.apply(this, config); this.beginDownload(); }, ...
PypiClean
/txt_to_html-0.0.1.tar.gz/txt_to_html-0.0.1/resources/MathJax-2.7.2/unpacked/jax/output/SVG/fonts/STIX-Web/Normal/BoldItalic/Main.js
MathJax.OutputJax['SVG'].FONTDATA.FONTS['STIXMathJax_Normal-bold-italic'] = { directory: 'Normal/BoldItalic', family: 'STIXMathJax_Normal', weight: 'bold', style: 'italic', id: 'STIXWEBNORMALBI', 0x20: [0,0,250,0,0,''], 0xA0: [0,0,250,0,0,''], 0x1D468: [685,0,759,39,724,'724 23l-2 -23h-319l4 23h31c33 0 ...
PypiClean
/ntnx-files-py-client-4.0.1a2.tar.gz/ntnx-files-py-client-4.0.1a2/ntnx_files_py_client/Ntnx/files/v4/config/WildCardMapping.py
import pprint import json import ast import re # noqa: F401 import six from ntnx_files_py_client.Ntnx.files.v4.config.IdentityMappingType import IdentityMappingType # noqa: F401,E501 from ntnx_files_py_client.Ntnx.files.v4.config.NfsIdentitiesMapping import NfsIdentitiesMapping # noqa: F401,E501 from ntnx_files_py_...
PypiClean
/nonebot_plugin_hikarisearch-0.1.7.tar.gz/nonebot_plugin_hikarisearch-0.1.7/README.md
# nonebot-plugin-hikarisearch 适用于 [Nonebot2](https://github.com/nonebot/nonebot2) 的搜图插件 使用 [HikariSearch](https://github.com/mixmoe/HikariSearch) 搜索 支持 SauceNAO、IqDB、ascii2d、E-Hentai、TraceMoe ### 安装 - 使用 nb-cli ``` nb plugin install nonebot_plugin_hikarisearch ``` - 使用 pip ``` pip install nonebot_plugin_hikari...
PypiClean
/auto_archiver-0.6.6.tar.gz/auto_archiver-0.6.6/src/auto_archiver/feeders/gsheet_feeder.py
import gspread, os from loguru import logger from slugify import slugify # from . import Enricher from . import Feeder from ..core import Metadata, ArchivingContext from ..utils import Gsheets, GWorksheet class GsheetsFeeder(Gsheets, Feeder): name = "gsheet_feeder" def __init__(self, config: dict) -> None:...
PypiClean
/CPAT-3.0.4.tar.gz/CPAT-3.0.4/docs_v3/_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
/mct-nightly-1.9.0.20230903.post433.tar.gz/mct-nightly-1.9.0.20230903.post433/model_compression_toolkit/core/keras/keras_node_prior_info.py
from typing import Any, Tuple import numpy as np import tensorflow as tf from packaging import version if version.parse(tf.__version__) >= version.parse("2.13"): from keras.src.layers import Activation, ReLU, BatchNormalization else: from keras.layers import Activation, ReLU, BatchNormalization from model_com...
PypiClean
/django-ckeditor-fc-1.1.tar.gz/django-ckeditor-fc-1.1/ckeditor/static/ckeditor/ckeditor/lang/sr-latn.js
/* Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.lang['sr-latn']={dir:'ltr',editorTitle:'Rich text editor, %1, press ALT 0 for help.',toolbars:'Editor toolbars',editor:'Rich Text Editor',source:'Kôd',newPage:'Nova...
PypiClean
/celery-rf-4.1.1.tar.gz/celery-rf-4.1.1/celery/bin/base.py
"""Base command-line interface.""" from __future__ import absolute_import, print_function, unicode_literals import argparse import json import os import random import re import sys import warnings from collections import defaultdict from heapq import heappush from pprint import pformat from celery import VERSION_BANN...
PypiClean
/pulumi_azure_native-2.5.1a1693590910.tar.gz/pulumi_azure_native-2.5.1a1693590910/pulumi_azure_native/scheduler/get_job.py
import copy import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from .. import _utilities from . import outputs __all__ = [ 'GetJobResult', 'AwaitableGetJobResult', 'get_job', 'get_job_output', ] @pulumi.output_type class GetJobResu...
PypiClean
/scArchest-0.0.1-py3-none-any.whl/scarches/surgery/mars.py
import numpy as np from typing import Union import torch import scanpy as sc from scarchest.models import MARS from scarchest.trainers import MARSTrainer def mars_operate(network: MARS, new_adata: sc.AnnData, new_tasks: Union[list, str], meta_tasks: list, ...
PypiClean
/cohesity-sdk-1.1.0.tar.gz/cohesity-sdk-1.1.0/cohesity_sdk/cluster/model/common_recovery_request_paramsae1b0dbe35e54e869ddd_fd34af026fcb_hive_params_wrapper.py
import re # noqa: F401 import sys # noqa: F401 from cohesity_sdk.cluster.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_typ...
PypiClean
/peek-plugin-diagram-3.4.11.tar.gz/peek-plugin-diagram-3.4.11/peek_plugin_diagram/_private/both-app/canvas-render/PeekDispRenderDelegatePoly.web.ts
import { PeekCanvasConfig } from "../canvas/PeekCanvasConfig.web"; import { DrawModeE, PeekDispRenderDelegateABC, } from "./PeekDispRenderDelegateABC.web"; import { DispPolygon } from "../canvas-shapes/DispPolygon"; import { DispBase, DispBaseT, DispType, PointI, } from "../canvas-shapes/DispBas...
PypiClean
/pulumi_azure_nextgen-0.6.2a1613157620.tar.gz/pulumi_azure_nextgen-0.6.2a1613157620/pulumi_azure_nextgen/authorization/v20180301/get_policy_definition.py
import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union from ... import _utilities, _tables __all__ = [ 'GetPolicyDefinitionResult', 'AwaitableGetPolicyDefinitionResult', 'get_policy_definition', ] @pulumi.output_type class GetPolicyDefinitionResult:...
PypiClean
/pyAmang-1.0.4-py3-none-any.whl/pyrogram/methods/chats/get_chat_event_log.py
from typing import Union, List, AsyncGenerator, Optional import pyrogram from pyrogram import raw from pyrogram import types class GetChatEventLog: async def get_chat_event_log( self: "pyrogram.Client", chat_id: Union[int, str], query: str = "", offset_id: int = 0, limit:...
PypiClean
/zato-common-3.2.1.tar.gz/zato-common-3.2.1/src/zato/common/events/common.py
# stdlib from typing import Optional as optional # Zato from zato.common.typing_ import dataclass # ################################################################################################################################ # #######################################################################################...
PypiClean
/PedalPi_PluginsManager-0.8.0-py3-none-any.whl/pluginsmanager/model/pedalboard.py
from pluginsmanager.model.effects_list import EffectsList from pluginsmanager.model.connections_list import ConnectionsList from pluginsmanager.observer.update_type import UpdateType, CustomChange from unittest.mock import MagicMock class Pedalboard(object): """ Pedalboard is a patch representation: your st...
PypiClean
/erhsh_python-0.2.6-py3-none-any.whl/erhsh/utils/mutiprocessing_util.py
from multiprocessing import Process, Manager import numpy as np import os import inspect class MutiProcessor(): def __init__(self, np_data, h_num=1, w_num=1, cube_func=None): if len(np_data.shape) < 2: raise Exception("np_data must at least have dim 2.") self.np_data = np_data ...
PypiClean
/neuromeka-clients-0.1.10.tar.gz/neuromeka-clients-0.1.10/neuromeka/proto/control_msgs_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 # @@protoc_in...
PypiClean
/mw-adapter-transformers-3.2.1.tar.gz/mw-adapter-transformers-3.2.1/src/adapter_transformers/models/mobilenet_v1/convert_original_tf_checkpoint_to_pytorch.py
import argparse import json import re from pathlib import Path import torch from PIL import Image import requests from huggingface_hub import hf_hub_download from adapter_transformers import ( MobileNetV1Config, MobileNetV1FeatureExtractor, MobileNetV1ForImageClassification, load_tf_weights_in_mobilen...
PypiClean
/tb-rest-client-3.5.tar.gz/tb-rest-client-3.5/tb_rest_client/models/models_ce/o_auth2_registration_info.py
# Copyright 2023. ThingsBoard # # 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 writi...
PypiClean
/django-hydrothings-0.1.7.tar.gz/django-hydrothings-0.1.7/src/hydrothings/validators.py
import inspect import hydrothings.components as core_components import hydrothings.schemas as core_schemas from typing import Any, Callable from pydantic import BaseModel, Field def nested_entities_check(value: Any, field: Field) -> Any: """ Validation for nested components. Runs validation on nested com...
PypiClean
/nose-watch-0.9.2.tar.gz/nose-watch-0.9.2/README.rst
========== nose-watch ========== .. image:: https://secure.travis-ci.org/lukaszb/nose-watch.png?branch=master :target: http://travis-ci.org/lukaszb/nose-watch A Nose plugin that allows to run tests continuously (uses watchdog_ for listening to filesystem events). Installation ============ Usual thing: pip i...
PypiClean
/mianalyzer-0.3.1.tar.gz/mianalyzer-0.3.1/mia/dl/models/classification_models/models/senet.py
import os import collections from dl.models.keras_applications import imagenet_utils from dl.models.classification_models import get_submodules_from_kwargs from ._common_blocks import GroupConv2D, ChannelSE from ..weights import load_model_weights backend = None layers = None models = None keras_utils = None ModelP...
PypiClean
/mintospy-0.6.4.tar.gz/mintospy-0.6.4/LICENSE.md
MIT License Copyright (c) 2022 Tomás Perestrelo 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, ...
PypiClean
/ibis_substrait-3.1.0-py3-none-any.whl/ibis_substrait/compiler/core.py
from __future__ import annotations import itertools from collections.abc import Hashable, Iterator from typing import TYPE_CHECKING, Any import ibis.expr.datatypes as dt import ibis.expr.operations as ops import ibis.expr.types as ir from packaging.version import parse as vparse from substrait.gen.proto import algeb...
PypiClean
/pulumi_azure_native-2.5.1a1693590910.tar.gz/pulumi_azure_native-2.5.1a1693590910/pulumi_azure_native/network/service_endpoint_policy.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 from ._inputs import * __all__ = ['ServiceEndpointPolicyInitArgs', 'ServiceEndpointPolicy'] @pulumi.input_type class ServiceEndpointPoli...
PypiClean
/snmp-fetch-0.1.7.1.tar.gz/snmp-fetch-0.1.7.1/snmp_fetch/var_bind.py
import re from functools import reduce from operator import add from typing import Any, Callable, Mapping, Optional, Sequence, Text, Tuple, Union, cast, overload import attr import numpy as np from toolz.functoolz import compose, identity from .fp import curry2 from .fp.either import Either, Left, Right from .fp.may...
PypiClean
/grug_test-0.0.7.tar.gz/grug_test-0.0.7/grug_test/__dependencies__/__sources__/ez_yaml/main/ez_yaml/__dependencies__/__sources__/ruamel/yaml/scanner.py
# Scanner produces tokens of the following types: # STREAM-START # STREAM-END # DIRECTIVE(name, value) # DOCUMENT-START # DOCUMENT-END # BLOCK-SEQUENCE-START # BLOCK-MAPPING-START # BLOCK-END # FLOW-SEQUENCE-START # FLOW-MAPPING-START # FLOW-SEQUENCE-END # FLOW-MAPPING-END # BLOCK-ENTRY # FLOW-ENTRY # KEY # VALUE # AL...
PypiClean
/3to2_py3k-1.0.tar.gz/3to2_py3k-1.0/lib3to2/fixes/fix_imports.py
from lib2to3 import fixer_base from lib2to3.fixer_util import Name, is_probably_builtin, Newline, does_tree_import from lib2to3.pygram import python_symbols as syms from lib2to3.pgen2 import token from lib2to3.pytree import Node, Leaf from ..fixer_util import NameImport # used in simple_mapping_to_pattern() MAPPING =...
PypiClean
/cs272_project-0.2.0.tar.gz/cs272_project-0.2.0/docs/installation.rst
.. highlight:: shell ============ Installation ============ Stable release -------------- To install CS272 Project, run this command in your terminal: .. code-block:: console $ pip install cs272_project This is the preferred method to install CS272 Project, as it will always install the most recent stable re...
PypiClean
/django-volt-admin-1.0.2.tar.gz/django-volt-admin-1.0.2/volt/static/admin/js/SelectBox.js
'use strict'; { const SelectBox = { cache: {}, init: function(id) { const box = document.getElementById(id); SelectBox.cache[id] = []; const cache = SelectBox.cache[id]; for (const node of box.options) { cache.push({value: node.value, t...
PypiClean
/mis_modulos-0.1.tar.gz/mis_modulos-0.1/setuptools/discovery.py
import itertools import os from fnmatch import fnmatchcase from glob import glob from pathlib import Path from typing import ( TYPE_CHECKING, Callable, Dict, Iterable, Iterator, List, Mapping, Optional, Tuple, Union ) import _distutils_hack.override # noqa: F401 from distutils...
PypiClean
/lightbulb-ext-wtf-0.1.0.tar.gz/lightbulb-ext-wtf-0.1.0/lightbulb/ext/wtf/commands.py
from __future__ import annotations __all__ = [ "Implements", "Checks", "ErrorHandler", "Aliases", "Guilds", "Subcommands", "Parser", "CooldownManager", "HelpGetter", "AutoDefer", "Ephemeral", "CheckExempt", "Hidden", "InheritChecks", "Command", ] import coll...
PypiClean
/deepfos-celery-1.1.2.tar.gz/deepfos-celery-1.1.2/docs/userguide/daemonizing.rst
.. _daemonizing: ====================================================================== Daemonization ====================================================================== .. contents:: :local: Most Linux distributions these days use systemd for managing the lifecycle of system and user services. You can che...
PypiClean
/msgraph_beta_sdk-1.0.0a9-py3-none-any.whl/msgraph/generated/financials/companies/item/purchase_invoices/count/count_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
/webstack-django-endless-pagination-2.0.2.tar.gz/webstack-django-endless-pagination-2.0.2/doc/digg_pagination.rst
Digg-style pagination ===================== Digg-style pagination of queryset objects is really easy to implement. If Ajax pagination is not needed, all you have to do is modifying the template, e.g.: .. code-block:: html+django {% load endless %} {% paginate entries %} {% for entry in entries %} ...
PypiClean
/python_files_merger-1.0.2.tar.gz/python_files_merger-1.0.2/python_files_merger/file_parser.py
import ast import builtins import ast_scope from .comments import remove_comments WARNING = '\033[33m' ENDC = '\033[0m' built_ins = dir(__builtins__) + dir(builtins) + ["__builtins__"] built_ins.append(None) # pylint: disable=too-complex def get_definitions(root): definitions = set() # pylint: disable=too-m...
PypiClean
/bce-sam-cli-0.8.1.tar.gz/bce-sam-cli-0.8.1/bsamcli/commands/local/lib/local_lambda.py
import os import logging import boto3 from bsamcli.lib.samlib.cfc_credential_helper import get_credentials from bsamcli.local.lambdafn.env_vars import EnvironmentVariables from bsamcli.local.lambdafn.config import FunctionConfig from bsamcli.local.lambdafn.exceptions import FunctionNotFound LOG = logging.getLogger(_...
PypiClean
/moat_mqtt-0.39.4-py3-none-any.whl/moat/mqtt/mqtt/connect.py
from ..adapters import StreamAdapter from ..codecs import ( bytes_to_int, decode_data_with_length, decode_string, encode_data_with_length, encode_string, int_to_bytes, read_or_raise, ) from ..errors import MoatMQTTException, NoDataException from ..utils import gen_client_id from .packet imp...
PypiClean
/lcu_driver-3.0.0-py3-none-any.whl/lcu_driver/connection.py
import asyncio import logging from json import loads, JSONDecodeError, dumps from typing import Union, Optional, Tuple import aiohttp from aiohttp import ClientConnectorError from psutil import Process from .exceptions import EarlyPerform from .utils import parse_cmdline_args logger = logging.getLogger('lcu-driver')...
PypiClean
/inspursmsdk-2.1.2-py3-none-any.whl/inspur_sm_sdk/interface/ResEntity.py
# -*- coding:utf-8 -*- from __future__ import (absolute_import, division, print_function) __metaclass__ = type import collections class ResultBean(): # def __init__(self): # self.Result = collections.OrderedDict() def State(self): return self.State def State(self, value): self...
PypiClean
/OpenTeacher-3.2.tar.gz/OpenTeacher-3.2/openteacher/modules/org/openteacher/codeDocs/resources/jquery.tablesorter.js
(function($){$.extend({tablesorter:new function(){var parsers=[],widgets=[];this.defaults={cssHeader:"header",cssAsc:"headerSortUp",cssDesc:"headerSortDown",cssChildRow:"expand-child",sortInitialOrder:"asc",sortMultiSortKey:"shiftKey",sortForce:null,sortAppend:null,sortLocaleCompare:true,textExtraction:"simple",parser...
PypiClean
/OBITools-1.2.13.tar.gz/OBITools-1.2.13/src/obitools/collections.py
from operator import itemgetter from heapq import nlargest from itertools import repeat, ifilter class Counter(dict): '''Dict subclass for counting hashable objects. Sometimes called a bag or multiset. Elements are stored as dictionary keys and their counts are stored as dictionary values. >>> Count...
PypiClean
/opendr-toolkit-panoptic-segmentation-2.2.0.tar.gz/opendr-toolkit-panoptic-segmentation-2.2.0/src/opendr/perception/panoptic_segmentation/efficient_ps/algorithm/EfficientPS/mmdet/models/mask_heads/efficientps_semantic_head.py
import torch import torch.nn as nn import torch.nn.functional as F from mmcv.cnn import kaiming_init from math import ceil from mmdet.core import auto_fp16, force_fp32 from mmdet.ops import ConvModule, DepthwiseSeparableConvModule, build_upsample_layer from ..registry import HEADS class MC(torch.nn.Module): def ...
PypiClean
/source_transform-0.1.2-py3-none-any.whl/source_transform/meta_path.py
import imp import mmap import sys from toolz import memoize from .discovery import find_transforms class TransformFinderLoader(object): def find_module(self, fullname, path=None): self.fullname = fullname self.path = path try: self.found = imp.find_module(fullname.rpartitio...
PypiClean
/nuna_sql_tools-0.0.34-py3-none-any.whl/sql_analyze/viewer/web/js/viz/viz.js
(function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() : typeof define === 'function' && define.amd ? define(factory) : (global.Viz = factory()); }(this, (function () { 'use strict'; var _typeof = typeof Symbol === "function" && typeof Symbol.ite...
PypiClean
/vd42-openpyxl-2.6.2.tar.gz/vd42-openpyxl-2.6.2/openpyxl/styles/cell_style.py
from __future__ import absolute_import # Copyright (c) 2010-2019 openpyxl from array import array from openpyxl.descriptors.serialisable import Serialisable from openpyxl.descriptors import ( Typed, Float, Bool, Integer, Sequence, ) from openpyxl.descriptors.excel import ExtensionList from openpyx...
PypiClean
/memory_transformer_xl-0.1.0-py3-none-any.whl/memory_transformer_xl/autoregressive_wrapper.py
import math from functools import partial from collections import namedtuple import torch from torch import nn import torch.nn.functional as F from torch.nn.utils.rnn import pad_sequence # structs Return = namedtuple('Return', ['loss', 'is_last_batch']) # helper functions def top_p(logits, thres = 0.9): sorted...
PypiClean
/WPServer-1.0.tar.gz/WPServer-1.0/doc/Readme.txt
=============== webprocessingserver =============== --------------------------------------- Simple Python geographic feature server --------------------------------------- :Author: crschmidt@metacarta.com :Copyright: (c) 2007 Christohper Schmidt. All Rights Reserved. :Version: 1.0 :Manual group: GIS Utilities DES...
PypiClean
/baserow_open_api_client-0.0.6.tar.gz/baserow_open_api_client-0.0.6/baserow_open_api_client/models/install_template_response_404.py
from typing import TYPE_CHECKING, Any, Dict, List, Type, TypeVar, Union, cast import attr from ..models.install_template_response_404_error import InstallTemplateResponse404Error from ..types import UNSET, Unset if TYPE_CHECKING: from ..models.install_template_response_404_detail_type_1 import InstallTemplateRes...
PypiClean
/distri_bak-0.1.tar.gz/distri_bak-0.1/distri_bak/Gaussiandistribution.py
import math import matplotlib.pyplot as plt from .Generaldistribution import Distribution class Gaussian(Distribution): """ Gaussian distribution class for calculating and visualizing a Gaussian distribution. Attributes: mean (float) representing the mean value of the distribution stdev (float) representing ...
PypiClean
/ocean_science_utils-0.0.1-py3-none-any.whl/ocean_science_utilities/interpolate/nd_interp.py
import numpy as np from typing import Any, Tuple, Callable, List, Generator, Optional, Dict, Sequence from ocean_science_utilities.interpolate.general import interpolation_weights_1d from ocean_science_utilities.tools.math import wrapped_difference from ocean_science_utilities.tools.grid import enclosing_points_1d ...
PypiClean
/fake_bpy_module_3.3-20230117-py3-none-any.whl/bpy/ops/curves.py
import sys import typing import bpy.types GenericType = typing.TypeVar("GenericType") def convert_from_particle_system( override_context: typing.Union[typing. Dict, 'bpy.types.Context'] = None, execution_context: typing.Union[str, int] = None, undo: typi...
PypiClean
/pulumi_google_native-0.31.2a1689827148.tar.gz/pulumi_google_native-0.31.2a1689827148/pulumi_google_native/dataproc/v1beta2/region_operation_iam_binding.py
import copy import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities from ... import iam as _iam __all__ = ['RegionOperationIamBindingArgs', 'RegionOperationIamBinding'] @pulumi.input_type class RegionOperationIamBindingArgs: ...
PypiClean
/yt-dlp-custom-0.0.1.tar.gz/yt-dlp-custom-0.0.1/yt_dlp/extractor/adultswim.py
import json from .turner import TurnerBaseIE from ..utils import ( determine_ext, float_or_none, int_or_none, mimetype2ext, parse_age_limit, parse_iso8601, strip_or_none, try_get, ) class AdultSwimIE(TurnerBaseIE): _VALID_URL = r'https?://(?:www\.)?adultswim\.com/videos/(?P<show_p...
PypiClean
/gui/jobcreator/leftmidframe.py
import os import threading import queue import time from tkinter import * from tkinter.ttk import * from tkinter import filedialog, messagebox import lfd.createjobs as cj from lfd.gui.utils import utils import lfd.results as results class MidFrame(Frame): """Part of the LeftFrame of the GUI. Contains the drop-do...
PypiClean
/in-transformers-1.0.0.tar.gz/in-transformers-1.0.0/src/transformers/trainer_seq2seq.py
from typing import Any, Dict, List, Optional, Tuple, Union import torch from torch import nn from torch.utils.data import Dataset from .deepspeed import is_deepspeed_zero3_enabled from .trainer import Trainer from .trainer_utils import PredictionOutput from .utils import logging logger = logging.get_logger(__name_...
PypiClean
/uniohomeassistant-0.1.3.tar.gz/uniohomeassistant-0.1.3/homeassistant/components/ecovacs/__init__.py
import logging import random import string from sucks import EcoVacsAPI, VacBot import voluptuous as vol from homeassistant.const import CONF_PASSWORD, CONF_USERNAME, EVENT_HOMEASSISTANT_STOP from homeassistant.helpers import discovery import homeassistant.helpers.config_validation as cv _LOGGER = logging.getLogger(...
PypiClean
/zs-0.10.0.zip/zs-0.10.0/doc/logistics.rst
Project logistics ================= Documentation: http://zs.readthedocs.org/ Installation: You need either Python **2.7**, or else Python **3.3 or greater**. Because ``zs`` includes a C extension, you'll also need a C compiler and Python headers. On Ubuntu or Debian, for example, you get these with:: ...
PypiClean
/sst-0.2.4.tar.gz/sst-0.2.4/docs/remote.rst
================ SST - Remote ================ ---------------------------------- Using a remote Selenium server ---------------------------------- SST also supports running tests through a Selenium [RC] server, which amongst other things allows for running your tests in the cloud through SauceLabs' 'OnDemand...
PypiClean
/mroylib_min-2.2.5.tar.gz/mroylib_min-2.2.5/qlib/searcher/net_searcher.py
import os, json, sys from qlib.net import to, parameters from qlib.net.agents import AGS from qlib.graphy import random_choice from qlib.asyn import Exe from qlib.log import LogControl from qlib.data.sql import SqlEngine from qlib.log import LogControl try: from lxml.etree import HTML except ImportError as e: ...
PypiClean
/tencentcloud-sdk-python-3.0.973.tar.gz/tencentcloud-sdk-python-3.0.973/tencentcloud/tat/v20201028/models.py
import warnings from tencentcloud.common.abstract_model import AbstractModel class AutomationAgentInfo(AbstractModel): """自动化助手客户端信息 """ def __init__(self): r""" :param _InstanceId: 实例ID。 :type InstanceId: str :param _Version: Agent 版本号。 :type Version: str ...
PypiClean
/ultracart_rest_sdk-4.0.173-py3-none-any.whl/ultracart/model/email_commseq_stat_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
/pulumi_azure_nextgen-0.6.2a1613157620.tar.gz/pulumi_azure_nextgen-0.6.2a1613157620/pulumi_azure_nextgen/enterpriseknowledgegraph/latest/get_enterprise_knowledge_graph.py
import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union from ... import _utilities, _tables from . import outputs __all__ = [ 'GetEnterpriseKnowledgeGraphResult', 'AwaitableGetEnterpriseKnowledgeGraphResult', 'get_enterprise_knowledge_graph', ] @pulu...
PypiClean
/dis_sdk_python-2.6.1.tar.gz/dis_sdk_python-2.6.1/dis_sdk_python/dependency/urllib3/util/response.py
from __future__ import absolute_import from ..packages.six.moves import http_client as httplib from ..exceptions import HeaderParsingError def is_fp_closed(obj): """ Checks whether a given file-like object is closed. :param obj: The file-like object to check. """ try: # Check `i...
PypiClean
/nef_pipelines-0.1.46.tar.gz/nef_pipelines-0.1.46/src/nef_pipelines/transcoders/csv/importers/peaks.py
import csv import re import string from enum import auto from io import TextIOWrapper from pathlib import Path from textwrap import dedent from typing import Dict, List import typer from ordered_set import OrderedSet from pynmrstar import Entry from strenum import StrEnum from tabulate import tabulate from nef_pipeli...
PypiClean
/pyssim-0.6.tar.gz/pyssim-0.6/ssim/ssimlib.py
from __future__ import absolute_import import argparse import glob import sys import numpy as np from scipy import signal from ssim import compat from ssim.compat import Image, ImageOps from ssim.utils import convolve_gaussian_2d from ssim.utils import get_gaussian_kernel from ssim.utils import to_grayscale class...
PypiClean
/locode-0.1.1.1.tar.gz/locode-0.1.1.1/README.md
# Locode ## Overview This module contains a series of json files with ISO_3166-1, ISO_3166-2 and city codes from http://www.unece.org/cefact/locode/service/location.html ## bdist_egg `python setup.py bdist_egg` supports `--country=<country_code>` for creation of light weight eggs. ## Usage ```python >>> import ...
PypiClean
/trello_to_audit_report-0.1.3.tar.gz/trello_to_audit_report-0.1.3/trello_to_audit_report/finding_list.py
from .finding import Finding from typing import List import csv import sys import logging as log import requests import os import re log.basicConfig(level=log.INFO) OUTPUT_FILE_DEFAULT_NAME = "output.md" FINDINGS_SUMMARY_HEADER = """ | Finding ...
PypiClean
/msgraph_beta_sdk-1.0.0a9-py3-none-any.whl/msgraph/generated/contacts/item/get_member_objects/get_member_objects_post_request_body.py
from __future__ import annotations from kiota_abstractions.serialization import AdditionalDataHolder, Parsable, ParseNode, SerializationWriter from typing import Any, Callable, Dict, List, Optional, TYPE_CHECKING, Union class GetMemberObjectsPostRequestBody(AdditionalDataHolder, Parsable): def __init__(self,) -> N...
PypiClean
/lidaco-0.0.28.tar.gz/lidaco-0.0.28/README.md
[![PyPI version](https://badge.fury.io/py/lidaco.svg)](https://badge.fury.io/py/lidaco) # Lidaco Lidaco (Wind **Li**dar **Da**ta **Co**nverter) is a library and executable that enables a modular writing of data converters. Following the configurations that are specified by the user on a config.yml(s), a Reader mod...
PypiClean
/yz-core-0.2.1.tar.gz/yz-core-0.2.1/yzcore/exceptions.py
from typing import Any from fastapi import HTTPException class NotFoundObject(HTTPException): def __init__(self, detail: Any = 'Not Found', headers: dict = None): super().__init__(status_code=404, detail=detail, headers=headers) class MultiObjects(HTTPException): def __init__(self, detail: Any = ''...
PypiClean
/pydeltasnow-0.1.0.tar.gz/pydeltasnow-0.1.0/CONTRIBUTING.rst
============ Contributing ============ Welcome to ``pydeltasnow`` contributor's guide. This document focuses on getting you familiarized with the development processes, but `other kinds of contributions`_ are also appreciated. All users and contributors are expected to be open, inclusive, considerate, reasonable, and ...
PypiClean
/unisos2.githubApi-0.3.tar.gz/unisos2.githubApi-0.3/unisos2/githubApi/githubApiLib.py
####+BEGIN: bx:icm:python:top-of-file :partof "bystar" :copyleft "halaal+minimal" """ * This file:/bisos/git/bxRepos/unisos-pip/utils/dev/unisos/utils/newLibIcmPkg.py :: [[elisp:(org-cycle)][| ]] is part of The Libre-Halaal ByStar Digital Ecosystem. http://www.by-star.net *CopyLeft* This Software is a Libre-Halaal ...
PypiClean
/tensorflow_directml-1.15.8-cp37-cp37m-win_amd64.whl/tensorflow_core/python/ops/linalg/linear_operator_block_diag.py
"""Create a Block Diagonal operator from one or more `LinearOperators`.""" from __future__ import absolute_import from __future__ import division from __future__ import print_function from tensorflow.python.framework import common_shapes from tensorflow.python.framework import dtypes from tensorflow.python.framework ...
PypiClean
/fullpy-0.1.tar.gz/fullpy-0.1/server/compile_brython.py
# This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser 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 usefu...
PypiClean
/sch-askbot-1.0.1.tar.gz/sch-askbot-1.0.1/askbot/doc/source/initial-configuration.rst
.. _compile-time-configuration: =============================== Initial Configuration of Askbot =============================== While most configuration settings for askbot can be done at any time :ref:`through the web-interface <run-time-configuration>`, some manipulations on the server are still necessary. Instal...
PypiClean
/noc-0.7(3).tar.gz/noc-0.7(3)/contrib/src/django/django/contrib/gis/db/backends/spatialite/operations.py
import re from decimal import Decimal from django.contrib.gis.db.backends.base import BaseSpatialOperations from django.contrib.gis.db.backends.util import SpatialOperation, SpatialFunction from django.contrib.gis.db.backends.spatialite.adapter import SpatiaLiteAdapter from django.contrib.gis.geometry.backend import G...
PypiClean
/genomeworks_cuda_11_1-2021.2.2-cp37-none-any.whl/genomeworks/io/pafio.py
from collections import namedtuple __all__ = ["read_paf", "write_paf", "Overlap"] FIELDS = [ "query_sequence_name", "query_sequence_length", "query_start", "query_end", "relative_strand", "target_sequence_name", "target_sequence_length", "target_start", "target_end", "num_res...
PypiClean
/custom_streamlit-1.20.0-py3-none-any.whl/streamlit/runtime/caching/cache_data_api.py
from __future__ import annotations import pickle import threading import types from datetime import timedelta from typing import Any, Callable, TypeVar, Union, cast, overload from typing_extensions import Literal, TypeAlias import streamlit as st from streamlit import runtime from streamlit.deprecation_util import s...
PypiClean
/nni-3.0rc1-py3-none-macosx_10_9_x86_64.whl/nni_node/node_modules/moment/dist/locale/ug-cn.js
import moment from '../moment'; export default moment.defineLocale('ug-cn', { months: 'يانۋار_فېۋرال_مارت_ئاپرېل_ماي_ئىيۇن_ئىيۇل_ئاۋغۇست_سېنتەبىر_ئۆكتەبىر_نويابىر_دېكابىر'.split( '_' ), monthsShort: 'يانۋار_فېۋرال_مارت_ئاپرېل_ماي_ئىيۇن_ئىيۇل_ئاۋغۇست_سېنتەبىر_ئۆكتەبىر_نويابىر_دېكابىر'.split...
PypiClean
/pynitrokey_debug-0.4.10-py3-none-any.whl/pynitrokey/nethsm/client/exceptions.py
class OpenApiException(Exception): """The base exception class for all OpenAPIExceptions""" class ApiTypeError(OpenApiException, TypeError): def __init__(self, msg, path_to_item=None, valid_classes=None, key_type=None): """ Raises an exception for TypeErrors Args: ...
PypiClean
/qontract_reconcile-0.10.1rc284-py3-none-any.whl/reconcile/gql_definitions/common/pgp_reencryption_settings.py
from collections.abc import Callable # noqa: F401 # pylint: disable=W0611 from datetime import datetime # noqa: F401 # pylint: disable=W0611 from enum import Enum # noqa: F401 # pylint: disable=W0611 from typing import ( # noqa: F401 # pylint: disable=W0611 Any, Optional, Union, ) from pydantic import ...
PypiClean