id
stringlengths
1
8
text
stringlengths
6
1.05M
dataset_id
stringclasses
1 value
/django_linux-2.2.8-py3-none-any.whl/django_linux/contrib/flatpages/views.py
from django.conf import settings from django.contrib.flatpages.models import FlatPage from django.contrib.sites.shortcuts import get_current_site from django.http import Http404, HttpResponse, HttpResponsePermanentRedirect from django.shortcuts import get_object_or_404 from django.template import loader from django.uti...
PypiClean
/msgraph_beta_sdk-1.0.0a9-py3-none-any.whl/msgraph/generated/teams/item/schedule/scheduling_groups/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
/pyhelp-0.2.2.tar.gz/pyhelp-0.2.2/README.md
![PyHELP](./images/pyhelp_banner_v2.png) [![license](https://img.shields.io/pypi/l/pyhelp.svg)](./LICENSE) [![Latest release](https://img.shields.io/github/release/cgq-qgc/pyhelp.svg)](https://github.com/cgq-qgc/pyhelp/releases) [![Documentation Status](https://readthedocs.org/projects/pyhelp/badge/?version=latest)](h...
PypiClean
/plonetheme.wmoWonen-2.7.tar.gz/plonetheme.wmoWonen-2.7/Paste-1.7.5.1-py2.6.egg/paste/util/finddata.py
import os import sys from fnmatch import fnmatchcase from distutils.util import convert_path # Provided as an attribute, so you can append to these instead # of replicating them: standard_exclude = ('*.py', '*.pyc', '*$py.class', '*~', '.*', '*.bak') standard_exclude_directories = ('.*', 'CVS', '_darcs', './build', ...
PypiClean
/openImagePreprocessing-1.0.1.tar.gz/openImagePreprocessing-1.0.1/preprocess/UpdateImageInfo.py
import pandas as pd import datetime import numpy as np import os import math #chunkSize = 100000 def MergeImageInfo(rootdir:str, saveName:str, mode:str): """Merge the spark image result into a file. :param rootdir: the root dir of the data. :type rootdir: str. :param saveName: path to save result. ...
PypiClean
/cellpose-2.2.3.tar.gz/cellpose-2.2.3/paper/2.0/train_specialists.py
import sys, os, argparse, time import numpy as np from glob import glob import torch from torch import nn from tqdm import trange, tqdm from cellpose import models from cellpose.io import logger_setup, imread, imsave from cellpose import metrics, transforms, utils, resnet_torch from datasets import reshape_and_normaliz...
PypiClean
/django-html_sanitizer-0.1.5.tar.gz/django-html_sanitizer-0.1.5/README.rst
===================== Django HTML Sanitizer ===================== Django HTML Sanitizer provides a set of utilities to easily sanitize/escape/clean HTML inputs in django. This app is built on top of `bleach <http://github.com/jsocol/bleach>`_, the excellent Python HTML sanitizer. Dependencies ============ - `django...
PypiClean
/observations-0.1.4.tar.gz/observations-0.1.4/observations/r/boston.py
from __future__ import absolute_import from __future__ import division from __future__ import print_function import csv import numpy as np import os import sys from observations.util import maybe_download_and_extract def boston(path): """Housing Values in Suburbs of Boston The `Boston` data frame has 506 rows ...
PypiClean
/wayforpay-1.0.1-py3-none-any.whl/monobank_api/client.py
from datetime import datetime from .helpers import to_timestamp from .signature import SignKey from .transport import api_request from .errors import Error class BaseAPI: def _get_headers(self, url): return {"X-Time": str(to_timestamp(datetime.now()))} def make_request(self, method, path, **kwargs): ...
PypiClean
/contrail_sansmodels-2.1.0.tar.gz/contrail_sansmodels-2.1.0/src/sans/models/EllipticalCylinderModel.py
############################################################################## # This software was developed by the University of Tennessee as part of the # Distributed Data Analysis of Neutron Scattering Experiments (DANSE) # project funded by the US National Science Foundation. # # If you use DANSE applications to d...
PypiClean
/google_cloud_pipeline_components-2.3.0-py3-none-any.whl/google_cloud_pipeline_components/container/v1/aiplatform/remote_runner.py
"""Module for remote execution of AI Platform pipeline component.""" import argparse import ast from distutils import util as distutil import inspect import json import os import re from typing import Any, Callable, Dict, Tuple, Type, TypeVar from google.cloud import aiplatform from google_cloud_pipeline_components.c...
PypiClean
/pandeia.engine-3.0.tar.gz/pandeia.engine-3.0/pandeia/engine/constants.py
from astropy import units as u import synphot as syn # These are the wavelength and flux units that are used internally for all calculations. PANDEIA_WAVEUNITS = u.micron PANDEIA_FLUXUNITS = u.mJy UNIT_MAP = {"flam": syn.units.FLAM, "fnu": syn.units.FNU, "abmag": u.ABmag, "vegamag": syn.units.VEGAMAG, '...
PypiClean
/demosys_py-2.1.1-py3-none-any.whl/demosys/geometry/sphere.py
import math import numpy import moderngl as mlg from demosys.opengl.vao import VAO def sphere(radius=0.5, sectors=32, rings=16) -> VAO: """ Creates a sphere. Keyword Args: radius (float): Radius or the sphere rings (int): number or horizontal rings sectors (int): number of verti...
PypiClean
/ishtar-0.99.27.tar.gz/ishtar-0.99.27/ishtar_common/static/js/i18n/grid.locale-da.js
;(function($){ /** * jqGrid Danish Translation * Aesiras A/S * http://www.aesiras.dk * Dual licensed under the MIT and GPL licenses: * http://www.opensource.org/licenses/mit-license.php * http://www.gnu.org/licenses/gpl.html **/ $.jgrid = { defaults : { recordtext: "Vis {0} - {1} of {2}", emptyrecords: "I...
PypiClean
/mstax-alchemyjsonschema-1.0.0.tar.gz/mstax-alchemyjsonschema-1.0.0/README.rst
alchemyjsonschema ================= .. |Python package| image:: https://github.com/podhmo/alchemyjsonschema/actions/workflows/python-package.yml/badge.svg :target: https://github.com/podhmo/alchemyjsonschema/actions/workflows/python-package.yml features ---------------------------------------- alchemyjsonschema ...
PypiClean
/morph_kgc-2.6.2.tar.gz/morph_kgc-2.6.2/examples/README.md
## Examples ### Tutorial [![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/drive/1ByFx_NOEfTZeaJ1Wtw3UwTH3H3-Sye2O?usp=sharing) The tutorial in **[Google Colaboratory](https://colab.research.google.com/drive/1ByFx_NOEfTZeaJ1Wtw3UwTH3H3-Sye2O?usp=sharing)**...
PypiClean
/ader-1.2.1.tar.gz/ader-1.2.1/example.py
import numpy as np from ader import Solver def gpr_test(): from models.gpr.system import F_gpr, B_gpr, S_gpr, M_gpr, max_eig_gpr from models.gpr.tests import first_stokes_problem_IC from models.gpr.tests import first_stokes_problem_exact # Stokes' First Problem consists of the interface between flo...
PypiClean
/google-cloud-bigquery-datatransfer-3.12.0.tar.gz/google-cloud-bigquery-datatransfer-3.12.0/google/cloud/bigquery_datatransfer/__init__.py
from google.cloud.bigquery_datatransfer import gapic_version as package_version __version__ = package_version.__version__ from google.cloud.bigquery_datatransfer_v1.services.data_transfer_service.async_client import ( DataTransferServiceAsyncClient, ) from google.cloud.bigquery_datatransfer_v1.services.data_tran...
PypiClean
/DeepRank-GNN-0.1.22.tar.gz/DeepRank-GNN-0.1.22/README.md
# DeepRank [![Build Status](https://github.com/DeepRank/DeepRank-GNN/workflows/build/badge.svg)](https://github.com/DeepRank/DeepRank-GNN/actions) [![Codacy Badge](https://api.codacy.com/project/badge/Grade/f3f98b2d1883493ead50e3acaa23f2cc)](https://app.codacy.com/gh/DeepRank/DeepRank-GNN?utm_source=github.com&utm_me...
PypiClean
/jupyterhub_url_sharing-0.1.0.tar.gz/jupyterhub_url_sharing-0.1.0/node_modules/@blueprintjs/core/lib/cjs/components/editable-text/editableText.d.ts
import { AbstractPureComponent2 } from "../../common"; import { IntentProps, Props } from "../../common/props"; export declare type EditableTextProps = IEditableTextProps; /** @deprecated use EditableTextProps */ export interface IEditableTextProps extends IntentProps, Props { /** * EXPERIMENTAL FEATURE. ...
PypiClean
/FlexGet-3.9.6-py3-none-any.whl/flexget/components/notify/notifiers/notifymyandroid.py
import xml.etree.ElementTree as ET import requests from loguru import logger from requests.exceptions import RequestException from flexget import plugin from flexget.config_schema import one_or_more from flexget.event import event from flexget.plugin import PluginWarning plugin_name = 'notifymyandroid' logger = logg...
PypiClean
/rsyscall-0.0.3.tar.gz/rsyscall-0.0.3/arepl/acompile.py
from dataclasses import dataclass import ast import builtins import types import inspect import typing as t @dataclass class _InternalResult(Exception): is_expression: bool value: t.Any __result_exception__ = _InternalResult def compile_to_awaitable(astob: ast.Interactive, global_var...
PypiClean
/janis_pipelines.runner-0.13.0-py3-none-any.whl/janis_assistant/data/models/outputs.py
import json import datetime from os.path import commonprefix from typing import Optional, List, Tuple, Union from janis_core.utils.logger import Logger from janis_assistant.data.models.base import DatabaseObject, DatabaseObjectField from janis_assistant.utils import stringify_value_or_array from janis_assistant.util...
PypiClean
/gps_building_blocks-1.119.0-py3-none-any.whl/gps_building_blocks/airflow/utils/errors.py
# python3 """Errors file for this data connector component. All exceptions defined by the library should be in this file. """ from typing import Optional, Text class Error(Exception): """Base error class for all Exceptions. Can store a custom message and a previous error, if exists, for more details and st...
PypiClean
/idealoom-0.1.0-py3-none-any.whl/assembl/static/widget/card/app/app.js
"use strict"; var appCards = angular.module('appCards', ['ngRoute', 'ngSanitize', 'creativityServices', 'pascalprecht.translate', 'angular-growl']); appCards.config(['$routeProvider', '$translateProvider', '$locationProvider', 'growlProvider', function($routeProvider, $translateProvider, $locationProvider, gr...
PypiClean
/omero_py-5.15.0-py3-none-any.whl/omero_model_Pressure_ice.py
from sys import version_info as _version_info_ import Ice, IcePy import omero_model_Units_ice # Included module omero _M_omero = Ice.openModule('omero') # Included module omero.model _M_omero.model = Ice.openModule('omero.model') # Included module omero.model.enums _M_omero.model.enums = Ice.openModule('omero.model...
PypiClean
/py-pure-client-1.38.0.tar.gz/py-pure-client-1.38.0/pypureclient/flashblade/FB_2_6/models/certificate_use.py
import pprint import re import six import typing from ....properties import Property if typing.TYPE_CHECKING: from pypureclient.flashblade.FB_2_6 import models class CertificateUse(object): """ Attributes: swagger_types (dict): The key is attribute name and the value is ...
PypiClean
/Products.urban-2.6.12.tar.gz/Products.urban-2.6.12/src/Products/urban/interfaces.py
from zope.interface import Interface from zope import schema from zope.interface.interfaces import IInterface from zope.publisher.interfaces.browser import IDefaultBrowserLayer from Products.urban import UrbanMessage as _ class IProprietary(Interface): """Marker interface for .Proprietary.Proprietary """ ...
PypiClean
/zdppy_requests-0.1.3-py3-none-any.whl/zdppy_requests/charset_normalizer/cli/normalizer.py
import argparse import sys from json import dumps from os.path import abspath from platform import python_version from typing import List from charset_normalizer import from_fp from charset_normalizer.models import CliDetectionResult from charset_normalizer.version import __version__ def query_yes_no(question: str, ...
PypiClean
/google_fhir_r4-0.9.3-py3-none-any.whl/build/lib/google/fhir/r4/terminology/terminology_service_client.py
"""Provides a client for interacting with terminology servers.""" from typing import Callable, Dict, List, Optional, Tuple import urllib.parse import logging import requests import requests.adapters import requests.packages from google.fhir.r4.proto.core.resources import value_set_pb2 from google.fhir.core.utils imp...
PypiClean
/moms_apriltag-2023.1.15-py3-none-any.whl/moms_apriltag/apriltag_drawer.py
from .color_space import bgr2gray, gray2bgr import numpy as np import cv2 from collections import namedtuple Tag = namedtuple("Tag","id corners") class ApriltagDrawer: def draw(self, img, ids, corners, mark=False): """ Given a list of Tags (create with tagArray), this will draw the marker...
PypiClean
/js.extjs-4.2.1.883.tar.gz/js.extjs-4.2.1.883/js/extjs/resources/examples/ux/ajax/SimManager.js
Ext.define('Ext.ux.ajax.SimManager', { singleton: true, requires: [ 'Ext.data.Connection', 'Ext.ux.ajax.SimXhr', 'Ext.ux.ajax.Simlet', 'Ext.ux.ajax.JsonSimlet' ], /** * @cfg {Ext.ux.ajax.Simlet} defaultSimlet * The {@link Ext.ux.ajax.Simlet} instance to use fo...
PypiClean
/prod_manager-0.2.0.tar.gz/prod_manager-0.2.0/prodmanager/base.py
class RestObject: def __init__(self, manager, identifier, **attrs): self.manager = manager self.identifier = identifier self.attrs = attrs def __repr__(self): if self.identifier: return f"<{self.__class__.__name__}({self.manager.name.capitalize()}) /{self.manager.path}/{self.identifier}>" ...
PypiClean
/msgraph_beta_sdk-1.0.0a9-py3-none-any.whl/msgraph/generated/groups/item/conversations/item/threads/item/posts/item/in_reply_to/reply/reply_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
/learn2learn-0.2.0.tar.gz/learn2learn-0.2.0/scripts/compile_paper_list.py
from __future__ import print_function import pickle import os import os.path from googleapiclient.discovery import build from google_auth_oauthlib.flow import InstalledAppFlow from google.auth.transport.requests import Request # If modifying these scopes, delete the file token.pickle. SCOPES = ['https://www.googleapis...
PypiClean
/azure-cli-network-2.5.2.tar.gz/azure-cli-network-2.5.2/azure/cli/command_modules/network/zone_file/parse_zone_file.py
# The MIT License (MIT) # Copyright (c) 2016 Blockstack # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify,...
PypiClean
/djongo_fixed-1.3.7-py3-none-any.whl/djongo/sql2mongo/query.py
import abc import re from logging import getLogger from typing import Optional, Dict, List, Union as U, Sequence, Set from dataclasses import dataclass, field as dataclass_field from pymongo import MongoClient from pymongo import ReturnDocument from pymongo.command_cursor import CommandCursor from pymongo.cursor impor...
PypiClean
/msgraph_beta_sdk-1.0.0a9-py3-none-any.whl/msgraph/generated/device_management/device_management_partners/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
/django-xadmin-mirror-0.5.18.tar.gz/django-xadmin-mirror-0.5.18/xadmin/static/xadmin/js/xadmin.widget.datetime.js
;(function($){ $.convert_format = function(format){ var fields = { d: 'dd', H: 'hh', I: "HH", m: 'mm', M: 'MM', p: 'PM/AM', S: 'ss', w: 'w', y: 'yy', Y: 'yyyy', '%' : '%' ...
PypiClean
/django_szuprefix-0.10.24-py3-none-any.whl/django_szuprefix/common/models.py
from __future__ import unicode_literals from django.contrib.contenttypes.fields import GenericForeignKey, GenericRelation from django.contrib.contenttypes.models import ContentType from django.db import models from django_szuprefix.utils.modelutils import JSONField class Setting(models.Model): class Meta: ...
PypiClean
/z3c.formwidget.ckeditor-2.0.0a1.zip/z3c.formwidget.ckeditor-2.0.0a1/src/z3c/formwidget/ckeditor/ckeditor-js/_source/core/config.js
/* Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ /** * @fileOverview Defines the {@link CKEDITOR.config} object, which holds the * default configuration settings. */ /** * Used in conjuction with {@link CKEDITOR.confi...
PypiClean
/cohesity_management_sdk-1.10.1.tar.gz/cohesity_management_sdk-1.10.1/cohesity_management_sdk/models/node.py
import cohesity_management_sdk.models.capacity_by_tier import cohesity_management_sdk.models.chassis_info import cohesity_management_sdk.models.component_removal_progress import cohesity_management_sdk.models.count_by_tier import cohesity_management_sdk.models.node_hardware_info import cohesity_management_sdk.models.n...
PypiClean
/simflux/locs_to_pattern.py
import os import numpy as np import matplotlib.pyplot as plt from photonpy.utils.picasso_hdf5 import load as load_hdf5 from photonpy.utils.findpeak1D import quadraticpeak from photonpy.utils.dftpeak import dft_points from photonpy.smlmlib.lib import SMLM from photonpy.smlmlib.context import Context from photonpy.sm...
PypiClean
/boot-synth-1.2.0.tar.gz/boot-synth-1.2.0/synth/projects_master/nginx_router/frontend/react/node_modules/workbox-build/node_modules/fs-extra/docs/outputJson-sync.md
# outputJsonSync(file, object, [options]) Almost the same as [`writeJsonSync`](writeJson-sync.md), except that if the directory does not exist, it's created. **Alias:** `outputJSONSync()` - `file` `<String>` - `object` `<Object>` - `options` `<Object>` - `spaces` `<Number|String>` Number of spaces to indent; or a ...
PypiClean
/beeminder_sync-0.2.0.tar.gz/beeminder_sync-0.2.0/beeminder_sync/beeminder_sync.py
from configparser import ConfigParser import os import pathlib import shutil import sys from typing import Dict, Optional import click from halo import Halo from .config import read_config, verify_config, write_config class BeeSync: """ The main class for the package Stores configuration informa...
PypiClean
/chicken_dinner-0.11.0-py3-none-any.whl/chicken_dinner/models/player_season.py
from chicken_dinner.constants import gp_to_matches from chicken_dinner.constants import matches_to_gp from chicken_dinner.util import camel_to_snake class PlayerSeason(object): """Player-season model. An object containing data about a player's season (or lifetime) data and stats. :param pubg: an instanc...
PypiClean
/sendbird_platform_sdk-0.0.16-py3-none-any.whl/sendbird_platform_sdk/model/list_messages_response_messages_inner_og_tag_og_image.py
import re # noqa: F401 import sys # noqa: F401 from sendbird_platform_sdk.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_ty...
PypiClean
/bridge_sim-0.0.8.9-py3-none-any.whl/bridge_sim/sim/crack.py
from datetime import datetime from typing import List import bridge_sim.util import numpy as np from bridge_sim.internal.plot import plt from bridge_sim.model import Config, Point from bridge_sim.sim.responses import to_traffic_array from bridge_sim.traffic import load_traffic, normal_traffic from bridge_sim import t...
PypiClean
/tnnt_templates-2.11.5.tar.gz/tnnt_templates-2.11.5/tnnt_templates/static/tnnt_templates/libs/highlight-js/11.01/languages/cpp.js
import * as regex from '../lib/regex.js'; /** @type LanguageFn */ export default function(hljs) { // added for historic reasons because `hljs.C_LINE_COMMENT_MODE` does // not include such support nor can we be sure all the grammars depending // on it would desire this behavior const C_LINE_COMMENT_MODE = hljs....
PypiClean
/probabilistic_word_embeddings-1.6.2.tar.gz/probabilistic_word_embeddings-1.6.2/probabilistic_word_embeddings/estimation.py
import tensorflow as tf import numpy as np # Load model from models.py from .utils import shuffled_indices from .utils import get_logger from .embeddings import Embedding from .models import generate_batch from .models import generate_cbow_batch, cbow_likelihood, sgns_likelihood from .evaluation import evaluate_word_si...
PypiClean
/tencentcloud-sdk-python-waf-3.0.973.tar.gz/tencentcloud-sdk-python-waf-3.0.973/tencentcloud/waf/v20180125/models.py
import warnings from tencentcloud.common.abstract_model import AbstractModel class AccessFullTextInfo(AbstractModel): """DescribeAccessIndex """ def __init__(self): r""" :param _CaseSensitive: 是否大小写敏感 注意:此字段可能返回 null,表示取不到有效值。 :type CaseSensitive: bool :param _Tokenizer...
PypiClean
/custom-awscli-1.27.51.tar.gz/custom-awscli-1.27.51/awscli/examples/servicediscovery/discover-instances.rst
**To discover registered instances** The following ``discover-instances`` example discovers registered instances. :: aws servicediscovery discover-instances \ --namespace-name example.com \ --service-name myservice \ --max-results 10 \ --health-status ALL Output:: { "...
PypiClean
/zibanu_django-1.3.1-py3-none-any.whl/zibanu/django/rest_framework/fields/hybrid_image.py
import base64 import io # **************************************************************** # IDE: PyCharm # Developed by: macercha # Date: 12/08/23 17:11 # Project: Zibanu - Django # Module Name: hybrid_image # Description: # **************************************************************** from ...
PypiClean
/collective.mathjax-1.1.1.tar.gz/collective.mathjax-1.1.1/collective/mathjax/resources/MathJax/unpacked/jax/output/SVG/fonts/TeX/Main/Bold/BasicLatin.js
MathJax.Hub.Insert( MathJax.OutputJax.SVG.FONTDATA.FONTS['MathJax_Main-bold'], { // SPACE 0x20: [0,0,250,0,0,''], // EXCLAMATION MARK 0x21: [705,-1,350,89,260,'89 629Q89 663 116 684T171 705Q215 705 237 681T260 634Q260 619 233 434T204 244Q201 237 175 237Q150 237 146 244Q144 248 117 433T89 629ZM90 86...
PypiClean
/sign_language_translator-0.6.1.tar.gz/sign_language_translator-0.6.1/sign_language_translator/text/tagger.py
import enum import re from typing import Any, Callable, Iterable, List, Tuple class Tags(enum.Enum): """Enumeration of token tags used in NLP processing.""" WORD = "WORD" DATE = "DATE" TIME = "TIME" NAME = "NAME" SPACE = "SPACE" NUMBER = "NUMBER" ACRONYM = "ACRONYM" PUNCTUATION = ...
PypiClean
/dnv_bladed_models-0.3.44.tar.gz/dnv_bladed_models-0.3.44/src/dnv_bladed_models/sensors_used.py
from __future__ import annotations from datetime import date, datetime # noqa: F401 from enum import Enum, IntEnum import re # noqa: F401 from typing import Any, Dict, List, Optional, Type, Union, Callable # noqa: F401 from pathlib import Path from typing import TypeVar Model = TypeVar('Model', bound='BaseModel') ...
PypiClean
/xbus.monitor-0.2.1.zip/xbus.monitor-0.2.1/xbus/monitor/static/monitor_js/sources/assets/devoops/plugins/fancybox/helpers/jquery.fancybox-thumbs.js
(function ($) { //Shortcut for fancyBox object var F = $.fancybox; //Add helper object F.helpers.thumbs = { defaults : { width : 50, // thumbnail width height : 50, // thumbnail height position : 'bottom', // 'top' or 'bottom' source : function ( item ) { // function to obtain the...
PypiClean
/icoc-1.7.0a1.tar.gz/icoc-1.7.0a1/mytoolit/old/ui.py
from sys import stderr from time import sleep from typing import Callable, Iterable, Tuple from curses import curs_set, error, wrapper # type: ignore[attr-defined] from mytoolit.can.sensor import SensorConfig from mytoolit.old.cli import CommandLineInterface from mytoolit.old.MyToolItCommands import ( AdcAcquisi...
PypiClean
/cdktf-cdktf-provider-google_beta-9.0.1.tar.gz/cdktf-cdktf-provider-google_beta-9.0.1/src/cdktf_cdktf_provider_google_beta/data_google_compute_instance_iam_policy/__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 DataGoogleComputeInstanceIamPolicy( _cdktf_9a9027e...
PypiClean
/pylinkage-0.5.3.tar.gz/pylinkage-0.5.3/docs/_static/sphinx_highlight.js
"use strict"; const SPHINX_HIGHLIGHT_ENABLED = true /** * highlight a given string on a node by wrapping it in * span elements with the given class name. */ const _highlight = (node, addItems, text, className) => { if (node.nodeType === Node.TEXT_NODE) { const val = node.nodeValue; const parent = node.pa...
PypiClean
/streamlit-charticulator-0.0.7.tar.gz/streamlit-charticulator-0.0.7/src/charticulator/frontend/charticulator/dist/scripts/core/dataset/index.js
"use strict"; // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT license. var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { if (k2 === undefined) k2 = k; Object.defineProperty(o, k2, { enumerable: true, get: function() { return ...
PypiClean
/mis_modulos-0.1.tar.gz/mis_modulos-0.1/tensorflow/python/tools/import_pb_to_tensorboard.py
"""Imports a protobuf model as a graph in Tensorboard.""" import argparse import sys from absl import app from tensorflow.python.client import session from tensorflow.python.framework import importer from tensorflow.python.framework import ops from tensorflow.python.summary import summary from tensorflow.python.tool...
PypiClean
/vk_mda-11.9.3-py3-none-any.whl/vk_mda/tools.py
from .exceptions import ApiError, VkToolsException from .execute import VkFunction class VkTools(object): """ Содержит некоторые вспомогательные функции, которые могут понадобиться при использовании API :param vk: Объект :class:`VkApi` """ __slots__ = ('vk',) def __init__(self, vk): ...
PypiClean
/CartiMorph_vxm-0.9.1-py3-none-any.whl/CartiMorph_vxm/tf/scripts/inference_temp2img_warpTempSeg.py
import os import glob import argparse import numpy as np import CartiMorph_vxm as vxm import tensorflow as tf # parse commandline args parser = argparse.ArgumentParser() parser.add_argument('--dir_targetImg', required=True, help='folder of the target images') parser.add_argument('--file_TempSeg', required=True, help='...
PypiClean
/entropy-explorer-1.0.8.tar.gz/entropy-explorer-1.0.8/entropy/instructionreporter.py
import typing from pyserum._layouts.instructions import InstructionType as PySerumInstructionType from solana.publickey import PublicKey from solana.transaction import TransactionInstruction from .instructiontype import InstructionType from .layouts import layouts from .entropyinstruction import EntropyInstruction ...
PypiClean
/ModelFlowIb-1.56-py3-none-any.whl/model_cvx.py
import numpy as np import pandas as pd from cvxopt import matrix, spdiag from cvxopt.solvers import qp , options def MV_test(lprint=True): ''' Test a mean variance model for Indonesian Rupia ''' P= matrix([ [0.01573635, 0.01436816, 0.01045556], [0.01436816, 0.02289016, 0.01172995],...
PypiClean
/speech-processing-0.3.0.tar.gz/speech-processing-0.3.0/speechprocessing/processing.py
from __future__ import division import sys import argparse import numpy as np import subprocess as sp import os.path import dtw from scipy.io.wavfile import read as wavread from scipy.io.wavfile import write as wavwrite from scipy.signal.filter_design import butter, buttord from scipy.signal import lfilter, lfiltic fro...
PypiClean
/dsin100days603v38-6.0.3.tar.gz/dsin100days603v38-6.0.3/notebook/static/components/MathJax/jax/output/HTML-CSS/fonts/STIX-Web/Main/Regular/Main.js
MathJax.OutputJax["HTML-CSS"].FONTDATA.FONTS.STIXMathJax_Main={directory:"Main/Regular",family:"STIXMathJax_Main",testString:"\u00A0\u00A3\u00A5\u00A7\u00A8\u00AC\u00AE\u00AF\u00B0\u00B1\u00B4\u00B5\u00B7\u00D7\u00F0",32:[0,0,250,0,0],33:[676,9,333,130,236],34:[676,-431,408,77,331],35:[662,0,500,6,495],36:[727,87,500,4...
PypiClean
/django_bpp-1.0.9-py3-none-any.whl/django_bpp/staticroot/kbw-keypad/dist/js/jquery.keypad.min.js
!function(a){"use strict";var b="keypad";a.JQPlugin.createPlugin({name:b,deepMerge:!1,defaultOptions:{showOn:"focus",buttonImage:"",buttonImageOnly:!1,showAnim:"show",showOptions:null,duration:"normal",appendText:"",useThemeRoller:!1,keypadClass:"",prompt:"",layout:[],separator:"",target:null,keypadOnly:!0,randomiseAlp...
PypiClean
/halcyon-1.1.1.tar.gz/halcyon-1.1.1/README.md
## Halcyon Halcyon is a Matrix bot library with the goal of being easy to install and use. The library takes inspiration from discord.py and the Slack libraries. Encryption is on the roadmap, and with the goal of being transparent to the user. Check the roadmap in [notes.md](./notes.md), and see information of the tok...
PypiClean
/bcedit_madeby_train-1.0.tar.gz/bcedit_madeby_train-1.0/bcedit_madeby_train/__main__.py
import os import sys import traceback from . import ( adb_handler, config_manager, feature_handler, game_data_getter, helper, parse_save, patcher, serialise_save, server_handler, tracker, updater, user_input_handler, root_handler, locale_handler, ) from .edits.le...
PypiClean
/smc-python-0.6.2.tar.gz/smc-python-0.6.2/smc/administration/access_rights.py
from smc.base.model import Element, ElementCreator from smc.base.structs import NestedDict from smc.base.util import element_resolver from smc.administration.system import AdminDomain class AccessControlList(Element): """ An ACL is assigned to an AdminUser to grant limited access permissions to either Eng...
PypiClean
/py_SAINT-1.7.0-py3-none-any.whl/py_SAINT/STAGE1/process/psnr_combine.py
import os, sys, pickle from skimage.measure import compare_psnr, compare_ssim import numpy as np from scipy.ndimage import zoom test_files = ['liver_75', 'liver_72', 'liver_42', 'liver_199', 'liver_147', 'liver_53', 'liver_152', 'liver_143', 'liver_137', 'liver_35', 'liver_176', 'liver_73', 'liver_45', 'liver_46', 'l...
PypiClean
/KorAPClient-0.7.5.tar.gz/KorAPClient-0.7.5/Readme.md
# KorAP web service client package for Python [![Project Status: Active – The project has reached a stable, usable state and is being actively developed.](https://www.repostatus.org/badges/latest/active.svg)](https://www.repostatus.org/#active) [![CI check](https://github.com/KorAP/PythonKorAPClient/workflows/PythonKo...
PypiClean
/azure_ai_ml-1.9.0-py3-none-any.whl/azure/ai/ml/_restclient/v2023_04_01/aio/operations/_registry_environment_containers_operations.py
from typing import Any, AsyncIterable, Callable, Dict, Optional, TypeVar, Union from azure.core.async_paging import AsyncItemPaged, AsyncList from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error from azure.core.pipeline import PipelineRes...
PypiClean
/CodeIntel-2.0.0b19-cp34-cp34m-macosx_10_12_x86_64.whl/codeintel/codeintel2/lib_srcs/node.js/0.12/crypto.js
*/ var crypto = {}; /** * The class for creating hash digests of data. * @constructor */ crypto.Hash = function() {} /** * Updates the hash content with the given data, the encoding of which is * given in input_encoding and can be &#39;utf8&#39;, &#39;ascii&#39; or * &#39;binary&#39;. If no encoding is provide...
PypiClean
/ansible-8.3.0-py3-none-any.whl/ansible_collections/netbox/netbox/plugins/modules/netbox_ip_address.py
# Copyright: (c) 2018, Mikhail Yohman (@FragmentedPacket) <mikhail.yohman@gmail.com> # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import absolute_import, division, print_function __metaclass__ = type DOCUMENTATION = r""" --- module: netbox_ip_address s...
PypiClean
/zopeskel.unis-1.14.zip/zopeskel.unis-1.14/zopeskel/unis/templates/unis_plone4_buildout/bootstrap.py
import os, shutil, sys, tempfile, urllib, urllib2, subprocess from optparse import OptionParser if sys.platform == 'win32': def quote(c): if ' ' in c: return '"%s"' % c # work around spawn lamosity on windows else: return c else: quote = str # See zc.buildout.easy_inst...
PypiClean
/pytechnicolor-1.1.12-py3-none-any.whl/technicolorgateway/mysrp.py
# N A large safe prime (N = 2q+1, where q is prime) # All arithmetic is done modulo N. # g A generator modulo N # k Multiplier parameter (k = H(N, g) in SRP-6a, k = 3 for legacy SRP-6) # s User's salt # I Username # p Cleartext Password # H() One-way hash function # ^ (Modular) Exponentiatio...
PypiClean
/sas-frontend-20211225.2.tar.gz/sas-frontend-20211225.2/sas_frontend/frontend_latest/1f48cbac.js
"use strict";(self.webpackChunksas_frontend=self.webpackChunksas_frontend||[]).push([[74844],{54444:(t,i,e)=>{e(94604);var n=e(9672),a=e(87156),o=e(50856);(0,n.k)({_template:o.d` <style> :host { display: block; position: absolute; outline: none; z-index: 1002; -moz-user...
PypiClean
/cloud-check4-1.0.0.tar.gz/cloud-check4-1.0.0/src/aws_services/redshift/redshift_service.py
import collections import itertools import boto3 import botocore from common.constants import application_constants from common.utils import helper from common.utils.initialize_logger import logger class Redshift: """A class that checks the security settings of Amazon Redshift Cluster.""" def __init__(self...
PypiClean
/v1/model/delete_extract_task_request.py
import pprint import re import six class DeleteExtractTaskRequest: """ Attributes: openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json k...
PypiClean
/ikaaro-0.75.0.tar.gz/ikaaro-0.75.0/docs/developers.rst
Developer's Guide ################# \documentclass{article} \usepackage{array} \usepackage{color} \usepackage{graphicx} \usepackage{hyperref} \usepackage[utf8x]{inputenc} \usepackage{makeidx} \usepackage{minitoc} \usepackage{times} \usepackage{ucs} \usepackage{verbatim} % Code (in small and footnotesize) \newenviro...
PypiClean
/faiss_cpu_py36-1.7.3-cp310-cp310-win_amd64.whl/faiss/contrib/clustering.py
import numpy as np import faiss import time from multiprocessing.pool import ThreadPool try: import scipy.sparse except ImportError: print("scipy not accessible, Python k-means will not work") def print_nop(*arg, **kwargs): pass def two_level_clustering(xt, nc1, nc2, clustering_niter=25, **args): ""...
PypiClean
/nodejs_bin-18.4.0a3-py3-none-manylinux_2_12_x86_64.manylinux2010_x86_64.whl/nodejs/README.md
# Node.js Node.js is an open-source, cross-platform, JavaScript runtime environment. For information on using Node.js, see the [Node.js website][]. The Node.js project uses an [open governance model](./GOVERNANCE.md). The [OpenJS Foundation][] provides support for the project. **This project has a [Code of Conduct]...
PypiClean
/BuildABot-2.0.4-py3-none-any.whl/buildabot/module_manager.py
import asyncio import importlib import json import os import time import traceback from pathlib import Path from .module import Module from .event_handler import EventHandler from .logger import Logger from .typer import Typer def get_sub_files(a_dir): """ Get all files in a directory :param a_dir: Direc...
PypiClean
/quantum-blackbird-0.5.0.tar.gz/quantum-blackbird-0.5.0/doc/research.rst
.. _research: Research and contribution ========================= Research -------- If you are doing research using Blackbird, please cite the `StrawberryFields paper <https://quantum-journal.org/papers/q-2019-03-11-129/>`_: Nathan Killoran, Josh Izaac, Nicolás Quesada, Ville Bergholm, Matthew Amy, and Christian W...
PypiClean
/open_gopro-0.13.1-py3-none-any.whl/open_gopro/api/builders.py
from __future__ import annotations import enum import logging from pathlib import Path from urllib.parse import urlencode from collections.abc import Iterable from dataclasses import dataclass, InitVar, field from typing import Any, TypeVar, Generic, Union, Optional, Final, Callable import wrapt import google.protobuf...
PypiClean
/pulp-smash-2018.7.19.tar.gz/pulp-smash-2018.7.19/pulp_smash/pulp2/constants.py
"""Constants for Pulp 2 tests.""" from urllib.parse import urljoin CALL_REPORT_KEYS = frozenset(('error', 'result', 'spawned_tasks')) """See: `Call Report`_. .. _Call Report: http://docs.pulpproject.org/en/latest/dev-guide/conventions/sync-v-async.html#call-report """ CONSUMERS_PATH = '/pulp/api/v2/consumers/' ...
PypiClean
/keyfactor_v_1_client-1.0.3-py3-none-any.whl/keyfactor_v_1_client/models/keyfactor_api_models_monitoring_revocation_monitoring_creation_request.py
from typing import Any, Dict, List, Type, TypeVar, Union import attr from ..models.keyfactor_api_models_monitoring_dashboard_request import KeyfactorApiModelsMonitoringDashboardRequest from ..models.keyfactor_api_models_monitoring_email_request import KeyfactorApiModelsMonitoringEmailRequest from ..models.keyfactor_a...
PypiClean
/edeposit.amqp-1.8.16.tar.gz/edeposit.amqp-1.8.16/docs/api/storaged.rst
edeposit_amqp_storaged.py script ================================ ..storaged :members: :undoc-members: :show-inheritance: Help ---- :: $ ./edeposit_amqp_storaged.py start/stop/restart [-f/--foreground] AMQP binding for storage. positional arguments: start/stop/restart Start/stop/restart the ...
PypiClean
/allrank_mod-1.3.0a0.tar.gz/allrank_mod-1.3.0a0/allrank_mod/models/metrics.py
import numpy as np import torch from allrank_mod.data.dataset_loading import PADDED_Y_VALUE def ndcg(y_pred, y_true, ats=None, gain_function=lambda x: torch.pow(2, x) - 1, padding_indicator=PADDED_Y_VALUE): """ Normalized Discounted Cumulative Gain at k. Compute NDCG at ranks given by ats or at the maxi...
PypiClean
/baiduads_sdk_auto-2023.1.0-py3-none-any.whl/baiduads/apidataasset/model/create_data_asset_response_wrapper_body.py
import re # noqa: F401 import sys # noqa: F401 from baiduads.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, valid...
PypiClean
/warapidpro-1.2.19.tar.gz/warapidpro-1.2.19/README.rst
WARapidPro ========== Wassup Integration for RapidPro. :: pip install -e '.[dev]' :: docker run praekeltfoundation/rapidpro-engage:latest Setting up the application ~~~~~~~~~~~~~~~~~~~~~~~~~~ All environment variables for ``rapidpro-docker`` apply here. Add `warapidpro` to `EXTRA_INSTALLED_APPS` in yo...
PypiClean
/ztk_api-0.3.3-py3-none-any.whl/ztk_api/guess_you_like_model.py
from typing import Optional from pydantic import BaseModel from . import fields class GuessYouLikeModel(BaseModel): code: Optional[str] = fields.code_field type_one_id: Optional[str] = fields.type_one_id_field tao_id: Optional[str] = fields.tao_id_field title: Optional[str] = fields.title_field ...
PypiClean
/tensorflow_tflex-1.13.1rc1-cp27-cp27mu-manylinux1_x86_64.whl/tensorflow_tflex-1.13.1rc1.data/purelib/tensorflow/python/framework/device.py
"""Class to represent a device.""" from __future__ import absolute_import from __future__ import division from __future__ import print_function import copy import threading from tensorflow.python.util.tf_export import tf_export @tf_export(v1=["DeviceSpec"]) class DeviceSpec(object): """Represents a (possibly part...
PypiClean
/sg_otio-1.0.0rc14-py3-none-any.whl/sg_otio-1.0.0rc14.data/scripts/sg-otio.py
import argparse import logging import os import opentimelineio as otio from shotgun_api3 import Shotgun from sg_otio.sg_settings import SGSettings from sg_otio.utils import get_write_url, get_read_url from sg_otio.media_cutter import MediaCutter from sg_otio.constants import _SG_OTIO_MANIFEST_PATH from sg_otio.track...
PypiClean
/genie.libs.sdk-23.8.1-py3-none-any.whl/genie/libs/sdk/apis/iosxe/install/execute.py
import logging import re import time # Unicon from unicon.eal.dialogs import Statement, Dialog log = logging.getLogger(__name__) def execute_install_remove_version(device, version=None, timeout=60, connect_timeout = 10): """ Performs install remove for the version provided on the device Args: dev...
PypiClean
/smartautomatic_server_frontend-20220907.2-py3-none-any.whl/sas_frontend/frontend_latest/0e6c1a1c.js
"use strict";(self.webpackChunksmartautomatic_server_frontend=self.webpackChunksmartautomatic_server_frontend||[]).push([[23466],{34821:(e,t,r)=>{r.d(t,{i:()=>g});var i=r(41085),n=r(91632),o=r(37500),s=r(33310),a=r(74265);r(10983);function l(){l=function(){return e};var e={elementsDefinitionOrder:[["method"],["field"]]...
PypiClean
/django-openstack-auth-kerberos-0.3.0.tar.gz/django-openstack-auth-kerberos-0.3.0/openstack_auth_kerberos/plugin.py
import logging import os from django.conf import settings from keystoneauth1.extras import kerberos from keystoneauth1 import plugin as ksa_plugin from openstack_auth import plugin ENV_NAME = 'KRB5CCNAME' AUTH_SETTING_NAME = 'KERBEROS_AUTH_URL' LOG = logging.getLogger(__name__) class _HackedKerbAuth(kerberos.Kerbe...
PypiClean