id
stringlengths
1
8
text
stringlengths
6
1.05M
dataset_id
stringclasses
1 value
/h2o_pysparkling_2.3-3.42.0.2.post1.tar.gz/h2o_pysparkling_2.3-3.42.0.2.post1/ai/h2o/sparkling/ml/algos/H2OAutoML.py
from warnings import warn from pyspark import keyword_only from ai.h2o.sparkling.Initializer import Initializer from ai.h2o.sparkling.ml.Utils import Utils from ai.h2o.sparkling.ml.algos.H2OSupervisedAlgorithmWithFoldColumn import H2OSupervisedAlgorithmWithFoldColumn from ai.h2o.sparkling.ml.params.H2OAutoMLParams imp...
PypiClean
/hardware-control-3.0.1.tar.gz/hardware-control-3.0.1/hardware_control/instruments/trinity_power/tpi.py
from dataclasses import dataclass import logging import time import numpy as np from ...base import Instrument, StopBits from ...base.hooks import call_hooks logger = logging.getLogger(__name__) @dataclass(frozen=True) class Command: command: bytes parameter_length: int = 0 parameter_type: np.dtype = i...
PypiClean
/signalsnap-0.1.13.tar.gz/signalsnap-0.1.13/docs/_static/underscore-1.3.1.js
(function() { // Baseline setup // -------------- // Establish the root object, `window` in the browser, or `global` on the server. var root = this; // Save the previous value of the `_` variable. var previousUnderscore = root._; // Establish the object that gets returned to break out of a loop itera...
PypiClean
/thrift-unofficial-0.14.1rc0.tar.gz/thrift-unofficial-0.14.1rc0/src/transport/sslcompat.py
import logging import sys from thrift.transport.TTransport import TTransportException logger = logging.getLogger(__name__) def legacy_validate_callback(cert, hostname): """legacy method to validate the peer's SSL certificate, and to check the commonName of the certificate to ensure it matches the hostname ...
PypiClean
/starry_process-0.9.8.tar.gz/starry_process-0.9.8/docs/index.rst
.. raw:: html <div align="center"> <img src="https://github.com/rodluger/starry_process/blob/master/starry_process.gif?raw=true" width="450px"> </img> <br/> </div> <br/><br/> Documentation ============= Welcome to the :py:mod:`starry_process` documentation. The :py:mod:`starry_process` code is an i...
PypiClean
/thomas-jupyter-widget-0.1.2.tar.gz/thomas-jupyter-widget-0.1.2/js/lib/widget.js
var widgets = require('@jupyter-widgets/base'); var _ = require('lodash'); var Konva = require('konva'); const { v1: uuid1 } = require('uuid'); // See widget.py for the kernel counterpart to this file. // Custom Model. Custom widgets models must at least provide default values // for model attributes, including // ...
PypiClean
/tf-transformers-2.0.0.tar.gz/tf-transformers-2.0.0/src/tf_transformers/models/mt5/configuration_mt5.py
""" MT5 model configuration """ from tf_transformers.core import TransformerConfig class MT5Config(TransformerConfig): r""" This is the configuration class to store the configuration of a :class:`~tf_transformers.models.MT5Model`. It is used to instantiate an MT5 model according to the specified arguments...
PypiClean
/ftw.book-4.1.11.tar.gz/ftw.book-4.1.11/ftw/book/table/tablepart.py
class TablePart(object): """ A Tablepart object stores different attributes used to create tablerows """ def __init__( self, rows, parent, begin_at, column_names, first_column_a_header, border_layout, ): self.rows = rows self....
PypiClean
/scgpm_seqresults_dnanexus-0.5.0-py3-none-any.whl/scgpm_seqresults_dnanexus-0.5.0.data/scripts/add_standard_props_to_projects.py
### # © 2018 The Board of Trustees of the Leland Stanford Junior University # Nathaniel Watson # nathankw@stanford.edu # 2016-11-17 ### """ To fill in. """ import argparse import re import dxpy import scgpm_lims lane_reg = re.compile("_L(\d)_") def get_parser(): parser = argparse.ArgumentParser(description=__d...
PypiClean
/mianalyzer-0.3.1.tar.gz/mianalyzer-0.3.1/mia/utils/Observer.py
from PyQt5.QtCore import * from abc import ABC, abstractmethod import traceback import sys class Observer(ABC): @abstractmethod def Error(self, exctype, value, traceback): pass @abstractmethod def Finished(self): pass @abstractmethod def Result(self,result): pass @...
PypiClean
/boot-synth-1.2.0.tar.gz/boot-synth-1.2.0/synth/projects_master/nginx_router/frontend/react/node_modules/regenerate-unicode-properties/Binary_Property/Case_Ignorable.js
const set = require('regenerate')(0x27, 0x2E, 0x3A, 0x5E, 0x60, 0xA8, 0xAD, 0xAF, 0xB4, 0x37A, 0x387, 0x559, 0x5BF, 0x5C7, 0x5F4, 0x61C, 0x640, 0x670, 0x70F, 0x711, 0x7FA, 0x7FD, 0x93A, 0x93C, 0x94D, 0x971, 0x981, 0x9BC, 0x9CD, 0x9FE, 0xA3C, 0xA51, 0xA75, 0xABC, 0xACD, 0xB01, 0xB3C, 0xB3F, 0xB4D, 0xB56, 0xB82, 0xBC0, 0...
PypiClean
/py_base_layer-1.0.0-py3-none-any.whl/pymongo/uri_parser.py
import re import sys import warnings from typing import Any, Dict, List, Mapping, MutableMapping, Optional, Tuple, Union from urllib.parse import unquote_plus from pymongo.client_options import _parse_ssl_options from pymongo.common import ( INTERNAL_URI_OPTION_NAME_MAP, SRV_SERVICE_NAME, URI_OPTIONS_DEPRE...
PypiClean
/distributions_doppiavi-0.1.tar.gz/distributions_doppiavi-0.1/distributions_doppiavi/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
/hcipy-0.5.0.tar.gz/hcipy-0.5.0/doc/tutorial_notebooks/VortexCoronagraph/VortexCoronagraph.ipynb
# Imaging with a vortex coronagraph We will simulate on-axis and off-axis images of stars through a (ring-apodized) vortex coronagraph. We'll start by importing all relevant libraries and setting up our pupil and focal grids. We'll slightly oversize our pupil grid to more clearly see the effects of the vortex coronag...
PypiClean
/django_djmongo-0.7.9.6-py3-none-any.whl/djmongo/static/djmongo/console/modern-business/font-awesome-4.7.0/src/3.2.1/assets/js/prettify.min.js
var q=null;window.PR_SHOULD_USE_CONTINUATION=!0; (function(){function L(a){function m(a){var f=a.charCodeAt(0);if(f!==92)return f;var b=a.charAt(1);return(f=r[b])?f:"0"<=b&&b<="7"?parseInt(a.substring(1),8):b==="u"||b==="x"?parseInt(a.substring(2),16):a.charCodeAt(1)}function e(a){if(a<32)return(a<16?"\\x0":"\\x")+a.to...
PypiClean
/chainer-chemistry-0.7.1.tar.gz/chainer-chemistry-0.7.1/chainer_chemistry/functions/loss/mean_squared_error.py
import numpy from chainer import cuda from chainer import function_node import chainer.functions from chainer.utils import type_check class MeanSquaredError(function_node.FunctionNode): """Mean squared error (a.k.a. Euclidean loss) function.""" def __init__(self, ignore_nan=False): # TODO(mottodora...
PypiClean
/pypiemma-4.0.1.tar.gz/pypiemma-4.0.1/Emma/shared_libs/emma_helper.py
import os import re import json import base64 from pypiscout.SCout_Logger import Logger as sc import markdown import markdown.extensions.codehilite import markdown.extensions.fenced_code import markdown.extensions.toc import markdown.extensions.tables from Emma.shared_libs.stringConstants import * ...
PypiClean
/tablecheck-0.1.0.tar.gz/tablecheck-0.1.0/LICENSE.md
### GNU GENERAL PUBLIC LICENSE Version 3, 29 June 2007 Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/> Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. ### Preamble The GNU General Public License is a free, copyleft license f...
PypiClean
/pyMissingAHP-1.1.5.tar.gz/pyMissingAHP-1.1.5/README.md
# pyMissingAHP ## Introduction The multi-criteria technique Analytic Hierarchy Process (AHP) needs a complete Pairwise Comparison Matrix (PCM) to generate results. With an incomplete PCM, our algorithm can infer the best (continuous or discrete) values to complete the missing data. The values can be calculated based o...
PypiClean
/sosse-1.5.0.tar.gz/sosse-1.5.0/se/stats.py
from datetime import date, timedelta import os from django.conf import settings from django.db import connection, models from django.shortcuts import render, redirect, reverse from django.utils.timezone import now from langdetect.detector_factory import PROFILES_DIRECTORY import pygal from .document import Document ...
PypiClean
/pulumi_azure_nextgen-0.6.2a1613157620.tar.gz/pulumi_azure_nextgen-0.6.2a1613157620/pulumi_azure_nextgen/documentdb/v20150401/database_account_sql_container.py
import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union from ... import _utilities, _tables from . import outputs from ._enums import * from ._inputs import * __all__ = ['DatabaseAccountSqlContainer'] class DatabaseAccountSqlContainer(pulumi.CustomResource): ...
PypiClean
/django-formulaic-1.0.0.tar.gz/django-formulaic-1.0.0/formulaic/serializers.py
import pytz import six from tzlocal import get_localzone from formulaic import models from rest_framework import serializers class BooleanFieldSerializer(serializers.ModelSerializer): class Meta: model = models.BooleanField fields = ( 'id', 'display_name', 'dat...
PypiClean
/PyCDSL-0.9.0.tar.gz/PyCDSL-0.9.0/pycdsl/utils.py
import re import logging from indic_transliteration.sanscript import SCHEMES, transliterate from .constants import SEARCH_MODES ############################################################################### LOGGER = logging.getLogger(__name__) #######################################################################...
PypiClean
/omg-tools-0.1.3.tar.gz/omg-tools-0.1.3/omgtools/problems/multiframeproblem.py
from problem import Problem from point2point import Point2pointProblem from ..basics.optilayer import OptiFather, OptiChild from ..vehicles.fleet import get_fleet_vehicles from ..execution.plotlayer import PlotLayer from ..basics.spline_extra import definite_integral from ..basics.spline_extra import shift_spline, eva...
PypiClean
/azure-mgmt-eventgrid-10.3.0b1.zip/azure-mgmt-eventgrid-10.3.0b1/azure/mgmt/eventgrid/aio/operations/_partner_topic_event_subscriptions_operations.py
import sys 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, Resourc...
PypiClean
/msgraph-sdk-1.0.0a3.tar.gz/msgraph-sdk-1.0.0a3/msgraph/generated/reports/get_skype_for_business_activity_user_detail_with_date/get_skype_for_business_activity_user_detail_with_date_request_builder.py
from __future__ import annotations from dataclasses import dataclass from datetime import date 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 imp...
PypiClean
/safe_etmp_py-0.0.4-py3-none-any.whl/gnosis/eth/contracts/__init__.py
import json import os import sys from typing import Any, Dict, Optional from eth_typing import ChecksumAddress from hexbytes import HexBytes from web3 import Web3 from web3.contract import Contract try: from functools import cache except ImportError: from functools import lru_cache cache = lru_cache(maxs...
PypiClean
/kodiksnlp-0.0.7.tar.gz/kodiksnlp-0.0.7/README.md
# Kodiks Türkçe Doğal Dil İşleme Python Kütüphanesi ## Kodiks Türkçe Doğal Dil İşleme resmi Python NLP kütüphanesi ### Kurulum **KodiksNLP**, Python 3.5 veya üstünü destekler. KodiksNLP'yi [PyPI](https://pypi.org/project/kodiksnlp/)'den pip ile yükleyebilirsiniz. ``` pip install kodiksnlp ``` bu aynı zamanda Kodiks...
PypiClean
/Freya_alerce-0.2.1.tar.gz/Freya_alerce-0.2.1/Freya_alerce/core/utils.py
import numpy as np from astropy.coordinates import SkyCoord from astropy import units as u """ This class represent the generic methods """ class Utils: def deg_to_hms(self,ra,dec): """ Transform degree point(ra,dec) in IRCS point(hms). Parameters ---------- ra : float ...
PypiClean
/ansible-8.3.0-py3-none-any.whl/ansible_collections/fortinet/fortios/plugins/modules/fortios_vpn_ipsec_phase2_interface.py
from __future__ import absolute_import, division, print_function # Copyright: (c) 2022 Fortinet # GNU General Public License v3.0+ (see LICENSE or https://www.gnu.org/licenses/gpl-3.0.txt) # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as...
PypiClean
/iOpt-0.2.22-py3-none-any.whl/problems/rastriginInt.py
import numpy as np from iOpt.trial import Point from iOpt.trial import FunctionValue from iOpt.trial import Trial from iOpt.problem import Problem import math class RastriginInt(Problem): """ Функция Растригина задана формулой: :math:`f(y)=(\sum_{i=1}^{N}[x_{i}^{2}-10*cos(2\pi x_{i})])`, где :m...
PypiClean
/fake_bpy_module_2.78-20230117-py3-none-any.whl/bl_ui/properties_constraint.py
import sys import typing import bpy_types GenericType = typing.TypeVar("GenericType") class ConstraintButtonsPanel: bl_context = None ''' ''' bl_region_type = None ''' ''' bl_space_type = None ''' ''' def ACTION(self, context, layout, con): ''' ''' pass d...
PypiClean
/pymesh2-0.1.14-cp35-cp35m-macosx_10_11_x86_64.whl/pymesh2-0.1.14.data/purelib/pymesh/slice_mesh.py
from .boolean import boolean from .misc import Quaternion from .meshutils import generate_box_mesh, separate_mesh, remove_isolated_vertices, merge_meshes from .meshio import form_mesh, save_mesh import numpy as np from numpy.linalg import norm def slice_mesh(mesh, direction, N): """ Slice a given 3D mesh N times ...
PypiClean
/bfx_api_ws_fix-2.0.6.tar.gz/bfx_api_ws_fix-2.0.6/README.md
# Bitfinex Trading Library for Python - Bitcoin, Ethereum, Ripple and more ![https://api.travis-ci.org/bitfinexcom/bitfinex-api-py.svg?branch=master](https://api.travis-ci.org/bitfinexcom/bitfinex-api-py.svg?branch=master) A Python reference implementation of the Bitfinex API for both REST and websocket interaction. ...
PypiClean
/dnv_bladed_models-0.3.44.tar.gz/dnv_bladed_models-0.3.44/src/dnv_bladed_models/iec4_icing.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
/lark-oapi-1.0.19.tar.gz/lark-oapi-1.0.19/lark_oapi/api/hire/v1/model/offer_list_info.py
from typing import * from lark_oapi.core.construct import init from .base_bilingual_with_id import BaseBilingualWithId from .offer_job_info import OfferJobInfo class OfferListInfo(object): _types = { "id": str, "job_info": OfferJobInfo, "create_time": str, "offer_status": int, ...
PypiClean
/secretflow_ray-2.2.0-cp38-cp38-macosx_10_16_x86_64.whl/secretflow_ray-2.2.0.data/purelib/ray/rllib/algorithms/algorithm.py
from collections import defaultdict import concurrent import copy from datetime import datetime import functools import gym import importlib import json import logging import numpy as np import os from packaging import version import pkg_resources import tempfile import time from typing import ( Callable, Conta...
PypiClean
/tensorflow_fork-1.15.2.0-py3-none-any.whl/tensorflow/contrib/specs/python/specs_ops.py
from __future__ import absolute_import from __future__ import division from __future__ import print_function from tensorflow.contrib.layers.python.layers import layers from tensorflow.contrib.specs.python import specs_lib from tensorflow.python.ops import array_ops from tensorflow.python.ops import logging_ops from te...
PypiClean
/blanketdb-0.4.0.tar.gz/blanketdb-0.4.0/HISTORY.rst
======= History ======= 0.4.0 (2020-02-26) ------------------ * Start uwsgi using http protocol by default in DOCKERFILE (s.t. standalone use is possible) * Overwrite CMD in docker-compose file to communicate via uwsgi protocol between nginx and blanketdb container 0.3.4 (2020-02-26) ------------------ * Support Py...
PypiClean
/msgraph_beta_sdk-1.0.0a9-py3-none-any.whl/msgraph/generated/users/item/information_protection/policy/labels/evaluate_application/evaluate_application_response.py
from __future__ import annotations from kiota_abstractions.serialization import Parsable, ParseNode, SerializationWriter from typing import Any, Callable, Dict, List, Optional, TYPE_CHECKING, Union if TYPE_CHECKING: from .......models import base_collection_pagination_count_response, information_protection_action ...
PypiClean
/aslack-0.11.0-py3-none-any.whl/aslack-0.11.0.dist-info/DESCRIPTION.rst
aSlack ====== */əˈslæk/* .. image:: https://img.shields.io/pypi/v/aslack.svg :target: https://pypi.python.org/pypi/aslack :alt: PyPI Version .. image:: https://travis-ci.org/textbook/aslack.svg :target: https://travis-ci.org/textbook/aslack :alt: Travis Build Status .. image:: https://coveralls.io/r...
PypiClean
/spacepy-0.4.1.zip/spacepy-0.4.1/Doc/source/empiricals.rst
####################################################### empiricals - module with heliospheric empirical modules ####################################################### .. automodule:: spacepy.empiricals .. currentmodule:: spacepy.empiricals .. autosummary:: :toctree: autosummary getDststar getExpected...
PypiClean
/wiliot-testers-5.0.10.tar.gz/wiliot-testers-5.0.10/wiliot_testers/sample/com_connect.py
from threading import Thread import logging import threading from tkinter import * from serial import tools import pygubu from os.path import abspath from json import dump from os.path import join, dirname from wiliot_testers.test_equipment import * from wiliot_core import WiliotGateway, ActionType, DataType from confi...
PypiClean
/pg_statviz-0.5-py3-none-any.whl/pg_statviz/modules/wal.py
__author__ = "Jimmy Angelakos" __copyright__ = "Copyright (c) 2023 Jimmy Angelakos" __license__ = "PostgreSQL License" import argparse import getpass import logging import numpy from argh.decorators import arg from dateutil.parser import isoparse from matplotlib.ticker import MaxNLocator from pg_statviz.libs import pl...
PypiClean
/hydro-tune-0.1.0.tar.gz/hydro-tune-0.1.0/hydro/fuse_ops/batchnorm.py
from typing import Optional, Any import torch from torch import Tensor from torch.nn.modules import Module from torch.nn.parameter import Parameter from torch.nn import functional as F from torch.nn import init class _NormBase(Module): """Pytorch 2.0 Common base of _InstanceNorm and _BatchNorm""" _versi...
PypiClean
/mera_tvm_runtime-1.4.0-cp36-cp36m-manylinux_2_27_x86_64.whl/tvm/relay/testing/synthetic.py
from __future__ import absolute_import from tvm import relay from .init import create_workload, Constant from . import layers def get_net(input_shape=(1, 3, 24, 12), dtype="float32", wtype=None): """Get synthetic testing network. Parameters ---------- image_shape : tuple, optional The input s...
PypiClean
/pollination-utci-comfort-map-0.9.10.tar.gz/pollination-utci-comfort-map-0.9.10/pollination/utci_comfort_map/_comfort.py
from pollination_dsl.dag import Inputs, DAG, task from dataclasses import dataclass from typing import Dict, List from pollination.ladybug_comfort.epw import AirSpeedJson from pollination.ladybug_comfort.map import ShortwaveMrtMap, LongwaveMrtMap, AirMap, Tcp from pollination.ladybug_comfort.mtx import UtciMtx @data...
PypiClean
/aiidalab_launch-2023.1019.tar.gz/aiidalab_launch-2023.1019/aiidalab_launch/config.py
from __future__ import annotations from copy import deepcopy from dataclasses import asdict, dataclass, field from pathlib import Path from uuid import uuid4 import toml from .profile import Profile MAIN_PROFILE_NAME = "default" @dataclass class Config: profiles: list[Profile] = field(default_factory=lambda: ...
PypiClean
/Gnosis_Utils-1.2.2.tar.gz/Gnosis_Utils-1.2.2/gnosis/util/sql2dtd.py
__shell_usage__ = """ Shell Usage: [python] sql2dtd.py [SQL_query] [< SQL_from_STDIN] """ __version__ = "$Revision: 0.10 $" __author__=["David Mertz (mertz@gnosis.cx)",] __thanks_to__=["Scott Hathaway (hathaways@infotrain.com)",] __copyright__=""" This file is released to the public domain. I (dqm) would appre...
PypiClean
/love_course_2016_2019-2023.3.1.0-py3-none-any.whl/LoveCourse20162019/docs/wu-ya-jiu-shu/连招1.0学习训练系统完整版:乌鸦连招1.0学习训练系统完整版:女性性格分类:女性性格分类3.md
# 连招1.0 学习训练系统完整版:乌鸦 连招1.0学习训练系统完整版:女性性格分类:女性性格分类3 我刚才,那你就说让他对你表白啊,我现在讲,关键点啊,使刚才我介绍的性格分开,又是永远是,就是在我们生活当中属于,比较简单的这些女生,最简单的一类,算是儿子高稍有难度,但儿子几个儿子正常是非常容易的。 那阳光男生基本上没有问题的,所以,我们在,生活共产党中,最多的碰见就是说,经历比较正常,也不是多也不是特别少,正常谈过一两段恋爱,不男朋友,说,爱情有一定的理解,还挺长心的,然后我们先从,第一转。 不开放子,不行开始,当你用虽然谈过恋爱,但是,他们因为可能,因为家庭原因比较传统,快快,家庭原因比较传统,所以这类女生,忘了放不开自...
PypiClean
/misp_lib_stix2-3.0.1.1-py3-none-any.whl/stix2/test/v20/constants.py
import datetime as dt import pytz FAKE_TIME = dt.datetime(2017, 1, 1, 12, 34, 56, tzinfo=pytz.utc) ATTACK_PATTERN_ID = "attack-pattern--0c7b5b88-8ff7-4a4d-aa9d-feb398cd0061" CAMPAIGN_ID = "campaign--8e2e2d2b-17d4-4cbf-938f-98ee46b3cd3f" COURSE_OF_ACTION_ID = "course-of-action--8e2e2d2b-17d4-4cbf-938f-98ee46b3cd3f" I...
PypiClean
/wps-light-0.16.1.tar.gz/wps-light-0.16.1/wemake_python_styleguide/visitors/ast/complexity/overuses.py
import ast from collections import defaultdict from typing import ( Callable, ClassVar, DefaultDict, FrozenSet, List, Tuple, Union, ) from typing_extensions import final from wemake_python_styleguide.compat.aliases import FunctionNodes from wemake_python_styleguide.logic import source, wal...
PypiClean
/strawberry_resources-0.8.1.tar.gz/strawberry_resources-0.8.1/strawberry_resources/utils/inspect.py
import itertools from typing import Generator, Optional, Union from strawberry.lazy_type import LazyType from strawberry.type import ( StrawberryContainer, StrawberryType, StrawberryTypeVar, get_object_definition, ) from strawberry.types.types import StrawberryObjectDefinition from strawberry.union imp...
PypiClean
/danmu_utils-2.12.0-py3-none-any.whl/danmu_utils/plugin/diyidan/DiyidanDownloader.py
import urllib.request from danmu_utils.common.IDownloader import IDownloader class DiyidanDownloader(IDownloader): @property def DANMU_TYPE(self): return 'diyidan' @property def DANMU_EXTNAME(self): return 'dydjson' @property def DANMU_LIST_EXTNAME(self): return 'dyd...
PypiClean
/syntaxnet-0.2-cp27-cp27mu-manylinux1_x86_64.whl/syntaxnet-0.2.data/purelib/dragnn/python/evaluation.py
"""Parser evaluation utils.""" from __future__ import division import tensorflow as tf from syntaxnet import sentence_pb2 from syntaxnet.util import check def calculate_parse_metrics(gold_corpus, annotated_corpus): """Calculate POS/UAS/LAS accuracy based on gold and annotated sentences.""" check.Eq(len(gold_co...
PypiClean
/pyiron_atomistics-0.3.2-py3-none-any.whl/pyiron_atomistics/table/funct.py
import ast import json import numpy as np import warnings from pyiron_atomistics.atomistics.structure.atoms import Atoms, pyiron_to_ase def _get_value_from_incar(job, key): value = job["input/incar/data_dict"]["Value"][ job["input/incar/data_dict"]["Parameter"].index(key) ] if isinstance(value, ...
PypiClean
/django-clickhouse-1.2.1.tar.gz/django-clickhouse-1.2.1/src/django_clickhouse/management/commands/clickhouse_migrate.py
import json from django.apps import apps as django_apps from django.core.management import BaseCommand, CommandParser from ...configuration import config from ...migrations import migrate_app class Command(BaseCommand): help = 'Migrates ClickHouse databases' requires_migrations_checks = False def add_a...
PypiClean
/cellxgene_census-1.5.1-py3-none-any.whl/cellxgene_census/_get_anndata.py
from typing import Optional import anndata import tiledbsoma as soma from somacore.options import SparseDFCoord from ._experiment import _get_experiment def get_anndata( census: soma.Collection, organism: str, measurement_name: str = "RNA", X_name: str = "raw", obs_value_filter: Optional[str] = ...
PypiClean
/lco-banzai-0.19.3.tar.gz/lco-banzai-0.19.3/astropy_helpers/licenses/LICENSE_NUMPYDOC.rst
------------------------------------------------------------------------------- The files - numpydoc.py - docscrape.py - docscrape_sphinx.py - phantom_import.py have the following license: Copyright (C) 2008 Stefan van der Walt <stefan@mentat.za.net>, Pauli Virtanen <pav@iki.fi> Redistribution...
PypiClean
/config-client-1.3.0.tar.gz/config-client-1.3.0/config/cli.py
import random import re from json import dump, dumps from pathlib import Path from typing import List import click from requests.auth import HTTPBasicAuth, HTTPDigestAuth from rich.console import Console from rich.json import JSON from rich.panel import Panel from rich.status import Status from rich.table import Table...
PypiClean
/myams_js-1.16.0.tar.gz/myams_js-1.16.0/pkg/js/ext/validate/i18n/messages_pt_BR.min.js
!function(e){"function"==typeof define&&define.amd?define(["jquery","../jquery.validate"],e):"object"==typeof module&&module.exports?module.exports=e(require("jquery")):e(jQuery)}((function(e){return e.extend(e.validator.messages,{required:"Este campo &eacute; requerido.",remote:"Por favor, corrija este campo.",email:"...
PypiClean
/hi-ml-azure-0.3.4.tar.gz/hi-ml-azure-0.3.4/src/health_azure/paths.py
import logging from pathlib import Path ENVIRONMENT_YAML_FILE_NAME = "environment.yml" REPO_HIML_FOLDER = "hi-ml" REPO_HIML_AZURE_FOLDER = "hi-ml-azure" def is_himl_used_from_git_repo() -> bool: """Returns False if HI-ML was installed as a package into site-packages. Returns True if the HI-ML codebase is u...
PypiClean
/ondewo_bpi-4.1.1-py3-none-any.whl/ondewo_bpi/bpi_services.py
import functools from abc import ABCMeta, abstractmethod from dataclasses import dataclass, field from typing import Dict, Callable, List, Optional import grpc import regex as re from ondewo.logging.decorators import Timer from ondewo.logging.logger import logger_console from ondewo.nlu import session_pb2, intent_pb2,...
PypiClean
/lollygag-cli-0.0.1.tar.gz/lollygag-cli-0.0.1/lollygag/vendor/npyscreen/wgmonthbox.py
from . import wgwidget as widget import calendar import datetime import curses class DateEntryBase(widget.Widget): def __init__(self, screen, allowPastDate=True, allowTodaysDate=True, firstWeekDay=6, use_datetime = False, allowClear=False, **keywords): super(DateEntryBase, self).__ini...
PypiClean
/pyqodeng.core-0.0.4.tar.gz/pyqodeng.core-0.0.4/pyqodeng/core/styles/qt.py
from pygments.style import Style from pygments.token import Comment, Error, Generic, Keyword, Literal, Name, \ Operator, Text, Punctuation class QtStyle(Style): """ Port of the qt style """ default_style = '' background_color = '#ffffff' highlight_color = '#c7e7f9' styles = { ...
PypiClean
/safegate_pro-2021.7.6-py3-none-any.whl/homeassistant/components/coronavirus/__init__.py
from datetime import timedelta import logging import async_timeout import coronavirus from homeassistant.config_entries import ConfigEntry from homeassistant.core import HomeAssistant, callback from homeassistant.helpers import aiohttp_client, entity_registry, update_coordinator from .const import DOMAIN PLATFORMS ...
PypiClean
/fiftyone-0.20.1rc1.tar.gz/fiftyone-0.20.1rc1/docs/source/custom_directives.py
from docutils.parsers.rst import Directive, directives from docutils.statemachine import StringList from docutils import nodes class CustomCardItemDirective(Directive): """A custom card item for use on pages that contain a list of links with short descriptions and optional images. The card item provides ...
PypiClean
/djangocms-twitter2-0.1.1.tar.gz/djangocms-twitter2-0.1.1/djangocms_twitter/models.py
from __future__ import unicode_literals import logging import tweepy from django.core.cache import cache from django.core.validators import MaxValueValidator, MinValueValidator from django.db import models from django.utils.encoding import python_2_unicode_compatible, force_text from django.utils.translation import u...
PypiClean
/pydomo-0.3.0.9.tar.gz/pydomo-0.3.0.9/README.md
# Python3 - Domo API SDK (pydomo) [![License](https://img.shields.io/badge/license-MIT-blue.svg?style=flat)](http://www.opensource.org/licenses/MIT) Current Release: 0.3.0 ### Notice - Python 3 Compatibility * PyDomo is written for Python3, and is not compatible with Python2 * Execute scripts via 'python3', and upda...
PypiClean
/alipay_sdk_python-3.6.740-py3-none-any.whl/alipay/aop/api/domain/AlipayCommerceEducateNceeApplySyncModel.py
import json from alipay.aop.api.constant.ParamConstants import * class AlipayCommerceEducateNceeApplySyncModel(object): def __init__(self): self._batch = None self._course = None self._interested_major_num = None self._interested_school_num = None self._one_key_support = ...
PypiClean
/parade-0.2.5.1.tar.gz/parade-0.2.5.1/docs/source/modules/parade.api.rst
parade.api package ================== Submodules ---------- parade.api.data module ---------------------- .. automodule:: parade.api.data :members: :undoc-members: :show-inheritance: parade.api.exec module ---------------------- .. automodule:: parade.api.exec :members: :undoc-members: :sho...
PypiClean
/infoblox-netmri-3.8.0.0.tar.gz/infoblox-netmri-3.8.0.0/infoblox_netmri/api/broker/v2_4_0/adv_setting_def_broker.py
from ..broker import Broker class AdvSettingDefBroker(Broker): controller = "adv_setting_defs" def show(self, **kwargs): """Shows the details for the specified adv setting def. **Inputs** | ``api version min:`` None | ``api version max:`` None | ``...
PypiClean
/bikesanity-1.1.6.tar.gz/bikesanity-1.1.6/README.md
# BikeSanity Cycle Journal Exporter for CrazyGuyOnABike ### What is this? In this repository is the complete code needed to download, extract, interpret, and export - in an attractive, completely new and _mobile friendly_ HTML format - bicycle touring journals available in the popular [crazyguyonabike.com](https://ww...
PypiClean
/certego_saas-0.7.0.tar.gz/certego_saas-0.7.0/certego_saas/ext/mixins.py
import csv from typing import Dict from django.http import HttpResponse from rest_framework.generics import GenericAPIView from .serializers import RecaptchaV2Serializer __all__ = [ "ExportCsvAdminMixin", "SerializerActionMixin", "RecaptchaV2Mixin", ] class ExportCsvAdminMixin: """ Mixin class ...
PypiClean
/geodatahub-2020.3.post1.tar.gz/geodatahub-2020.3.post1/cli.py
import sys import argparse import logging as lg import json from geodatahub.auth import GeodatahubAuth from geodatahub.connection import Connection as GeodatahubConn # Setup logging module lg.basicConfig(format='%(asctime)s - %(levelname)s - %(message)s', level=lg.DEBUG) LOG = lg.getLogger("geodatahub") LOG.setLevel...
PypiClean
/ixnetwork_restpy-1.1.10.tar.gz/ixnetwork_restpy-1.1.10/ixnetwork_restpy/testplatform/sessions/ixnetwork/vport/l1config/pos/dcc/dcc.py
import sys from ixnetwork_restpy.base import Base from ixnetwork_restpy.files import Files if sys.version_info >= (3, 5): from typing import List, Any, Union class Dcc(Base): """The Layer 1 Configuration is being configured for a POS port and DCC is selected as the Payload Type. The Dcc class encapsulate...
PypiClean
/scikit_allel-1.3.6-cp311-cp311-macosx_10_9_x86_64.whl/allel/io/vcf_write.py
import csv from datetime import date import itertools from operator import itemgetter import logging import numpy as np import allel logger = logging.getLogger(__name__) debug = logger.debug VCF_FIXED_FIELDS = 'CHROM', 'POS', 'ID', 'REF', 'ALT', 'QUAL', 'FILTER', 'INFO' def normalize_callset(callset): if...
PypiClean
/mindspore_ascend-1.10.0-cp39-none-any.whl/mindspore/ops/composite/clip_ops.py
"""Operations for clipping tensors to min/max values.""" from __future__ import absolute_import import numpy as np from mindspore.nn.cell import Cell from mindspore.ops import composite as C from mindspore.ops import functional as F from mindspore.ops import operations as P from mindspore.common.tensor import Tensor ...
PypiClean
/whywork-0.0.0.tar.gz/whywork-0.0.0/.eggs/mysql_connector-2.2.9-py3.8-linux-x86_64.egg/mysqlx/charsets.py
# MySQL Connector/Python - MySQL driver written in Python. # Copyright (c) 2013, 2016, Oracle and/or its affiliates. All rights reserved. # MySQL Connector/Python is licensed under the terms of the GPLv2 # <http://www.gnu.org/licenses/old-licenses/gpl-2.0.html>, like most # MySQL Connectors. There are special excepti...
PypiClean
/GenIce2-2.1.7.1.tar.gz/GenIce2-2.1.7.1/genice2/lattices/engel30.py
from genice2.cell import cellvectors import genice2.lattices import numpy as np desc = { "ref": { "PCOD8324623": "Engel 2018", "engel30": "Engel 2018" }, "usage": "No options available.", "brief": "Hypothetical zeolitic ice" } class Lattice(genice2.lattices.Lattice): def __init__(s...
PypiClean
/grr-response-server-3.4.6.post0.zip/grr-response-server-3.4.6.post0/grr_response_server/gui/static/angular-components/hunt/rapid-hunt-status-directive.js
goog.module('grrUi.hunt.rapidHuntStatusDirective'); goog.module.declareLegacyNamespace(); const apiService = goog.requireType('grrUi.core.apiService'); /** * Helper function to validate FileFinderArgs.path. * * @param {!Object} path A GlobExpression object. * @return {boolean} True if the path has more than one ...
PypiClean
/backports.os-0.1.1.tar.gz/backports.os-0.1.1/README.rst
============ backports.os ============ This package provides backports of new features in Python's os_ module under the backports_ namespace. .. _os: https://docs.python.org/3.5/library/os.html .. _backports: https://pypi.python.org/pypi/backports .. image:: https://img.shields.io/pypi/v/backports.os.svg :target...
PypiClean
/parts/Top/Hats/Turban.py
def Turban(color): return ( '<mask id="mask0_0_775" style="mask-type:alpha" maskUnits="userSpaceOnUse" x="74" y="98" width="118" height="99">' ' <path fill-rule="evenodd" clip-rule="evenodd"' ' d="M133.498 165.841C122.124 166.219 117.05 171.721 113.229 166.13C110.361 161.932 111.56...
PypiClean
/power-ml-1.0.0a0.tar.gz/power-ml-1.0.0a0/src/power_ml/data/s3_pickle_store.py
import logging import os from typing import Any import boto3 from power_ml.data.local_pickle_store import LocalPickleStore from power_ml.data.store import BaseStore s3 = boto3.resource('s3') def exist_key(bucket: str, key: str) -> bool: """Exist key or not. Args: bucket (str): S3 bucket name. ...
PypiClean
/byc-pyflow-1.0.0b0.tar.gz/byc-pyflow-1.0.0b0/pyflow/blocks/widgets/blocktitle.py
import time from typing import OrderedDict from PyQt5.QtCore import Qt from PyQt5.QtGui import QFocusEvent, QFont, QMouseEvent from PyQt5.QtWidgets import QLineEdit, QWidget from pyflow.core.serializable import Serializable class Title(QLineEdit, Serializable): """The title of an Block. Needs to be double clicke...
PypiClean
/Flask-Statics-Helper-1.0.0.tar.gz/Flask-Statics-Helper-1.0.0/flask_statics/static/DataTables/extensions/ColVis/js/dataTables.colVis.min.js
(function(j,i,k){j=function(d){var e=function(a,b){(!this.CLASS||"ColVis"!=this.CLASS)&&alert("Warning: ColVis must be initialised with the keyword 'new'");"undefined"==typeof b&&(b={});d.fn.dataTable.camelToHungarian&&d.fn.dataTable.camelToHungarian(e.defaults,b);this.s={dt:null,oInit:b,hidden:!0,abOriginal:[]};this.d...
PypiClean
/intel_tensorflow-2.13.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl/tensorflow/python/ops/ref_variable.py
"""RefVariable class.""" from tensorflow.core.framework import attr_value_pb2 from tensorflow.core.framework import variable_pb2 from tensorflow.python.eager import context from tensorflow.python.framework import indexed_slices from tensorflow.python.framework import ops from tensorflow.python.framework import tensor_...
PypiClean
/pelican_theme_config-2.0.2.tar.gz/pelican_theme_config-2.0.2/README.md
Theme Configuration: A Plugin for Pelican ========================================== [![Build Status](https://img.shields.io/github/actions/workflow/status/pelican-plugins/theme-config/main.yml?branch=main)](https://github.com/pelican-plugins/theme-config/actions) [![PyPI Version](https://img.shields.io/pypi/v/pelican...
PypiClean
/bis-arelle-2022.6.14.151921.tar.gz/bis-arelle-2022.6.14.151921/src/arelle/TableStructure.py
try: import regex as re except ImportError: import re from collections import defaultdict import os, io, json from datetime import datetime, timedelta from arelle import XbrlConst from arelle.ModelDtsObject import ModelConcept from arelle.XmlValidate import VALID # regular expression components STMT = r".* - s...
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/d6993b4b7bb8a084e79e9f15feab972b.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
/topiary-3.0.6.tar.gz/topiary-3.0.6/README.md
<a href="https://travis-ci.org/openvax/topiary"> <img src="https://travis-ci.org/openvax/topiary.svg?branch=master" alt="Build Status" /> </a> <a href="https://coveralls.io/github/openvax/topiary?branch=master"> <img src="https://coveralls.io/repos/openvax/topiary/badge.svg?branch=master&service=github" alt="Co...
PypiClean
/zopyx.check_ssl_domains-1.0.5.tar.gz/zopyx.check_ssl_domains-1.0.5/README.rst
zopyx.check-ssl-domains ======================= Check a list of host/domain names for their expiration date. Usage ----- - create a file domains.txt containing a number of domain names - one per line like: www.example.com www.example2.com - install `zopyx.check-ssl-domains` using pip - run `check-ssl-domai...
PypiClean
/nomad_camels-0.2.0-py3-none-any.whl/nomad_camels/nomad_integration/sample_selection.py
import os.path from PySide6.QtWidgets import QApplication, QDialog, QLabel, QLineEdit, QGridLayout, QDialogButtonBox, QComboBox, QTextEdit from PySide6.QtCore import Qt import yaml from nomad_camels.ui_widgets.path_button_edit import Path_Button_Edit from nomad_camels.nomad_integration import nomad_communication cla...
PypiClean
/v2/model/glance_show_image_member_schemas_request.py
import pprint import re import six class GlanceShowImageMemberSchemasRequest: """ 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 valu...
PypiClean
/justbackoff-0.6.0.tar.gz/justbackoff-0.6.0/README.md
# justbackoff [![Build Status](https://travis-ci.org/admiralobvious/justbackoff.svg?branch=master)](https://travis-ci.org/admiralobvious/justbackoff) A simple backoff algorithm for Python >3.6. ### Install ```shell script $ pip install justbackoff ``` ### Usage Backoff is a counter. It starts at `min_ms`. After ...
PypiClean
/LanguageProcessor-1.0.0.tar.gz/LanguageProcessor-1.0.0/LanguageProcessor.py
from ChemTagger import ChemTagger from NaiveBayes import NaiveBayes import pickle import os.path as op from math import log10 from random import shuffle class LanguageProcessor(): def __init__(self, decisions=None, processors=None): self.tagger = ChemTagger() self.decisions = decisions...
PypiClean
/netmiko_mishki-4.1.2.5.tar.gz/netmiko_mishki-4.1.2.5/src/netmiko/cisco/cisco_ios.py
from typing import Any, Optional, Callable, Type from types import TracebackType import time import re import os import hashlib import io from netmiko.cisco_base_connection import CiscoBaseConnection, CiscoFileTransfer from netmiko.base_connection import BaseConnection class CiscoIosBase(CiscoBaseConnection): ""...
PypiClean
/zohocrmsdk2_0-5.1.0.tar.gz/zohocrmsdk2_0-5.1.0/zcrmsdk/src/com/zoho/crm/api/taxes/preference.py
try: from zcrmsdk.src.com.zoho.crm.api.exception import SDKException from zcrmsdk.src.com.zoho.crm.api.util import Constants except Exception: from ..exception import SDKException from ..util import Constants class Preference(object): def __init__(self): """Creates an instance of Preference""" self.__auto_p...
PypiClean
/colour_hdri-0.2.2-py3-none-any.whl/colour_hdri/distortion/vignette.py
from __future__ import annotations import numpy as np from dataclasses import dataclass from scipy.interpolate import RBFInterpolator, RectBivariateSpline from scipy.ndimage import center_of_mass, gaussian_filter from scipy.optimize import curve_fit from colour.algebra import ( LinearInterpolator, linear_conv...
PypiClean
/UW_RestClients_GWS-2.3.7-py3-none-any.whl/uw_gws/models.py
from restclients_core import models import json import time class GWSModel(models.Model): def __str__(self): return json.dumps(self.json_data(), indent=4) class GroupReference(GWSModel): name = models.CharField(max_length=500) uwregid = models.CharField(max_length=32) display_name = models...
PypiClean