






"""simple docstring"""







from collections import OrderedDict
from typing import Mapping

from packaging import version

from ...configuration_utils import PretrainedConfig
from ...onnx import OnnxConfig
from ...utils import logging


_lowerCAmelCase            =	logging.get_logger(__name__)

_lowerCAmelCase            =	{
    'microsoft/beit-base-patch16-224-pt22k': (
        'https://huggingface.co/microsoft/beit-base-patch16-224-pt22k/resolve/main/config.json'
    ),
    # See all BEiT models at https://huggingface.co/models?filter=beit
}


class      UpperCamelCase		(__snake_case     ):
						_SCREAMING_SNAKE_CASE  : List[Any]												=		"""beit"""






						def __init__(		self  :int			, __magic_name__  :Union[str, Any]=8_192			, __magic_name__  :List[Any]=768			, __magic_name__  :Union[str, Any]=12			, __magic_name__  :Dict=12			, __magic_name__  :Optional[int]=3_072			, __magic_name__  :Dict="gelu"			, __magic_name__  :str=0.0			, __magic_name__  :Optional[Any]=0.0			, __magic_name__  :Dict=0.02			, __magic_name__  :Dict=1E-12			, __magic_name__  :Tuple=224			, __magic_name__  :Optional[int]=16			, __magic_name__  :Optional[Any]=3			, __magic_name__  :Tuple=False			, __magic_name__  :Any=False			, __magic_name__  :List[str]=False			, __magic_name__  :List[str]=False			, __magic_name__  :List[Any]=0.1			, __magic_name__  :List[Any]=0.1			, __magic_name__  :Optional[int]=True			, __magic_name__  :Optional[int]=[3, 5, 7, 11]			, __magic_name__  :Optional[int]=[1, 2, 3, 6]			, __magic_name__  :Tuple=True			, __magic_name__  :Tuple=0.4			, __magic_name__  :Optional[int]=256			, __magic_name__  :int=1			, __magic_name__  :Optional[int]=False			, __magic_name__  :Union[str, Any]=255			, **__magic_name__  :Union[str, Any]			, )      ->Any:
										super().__init__(**__magic_name__				)

										lowercase    :      Optional[Any]       = vocab_size
										lowercase    :      List[str]       = hidden_size
										lowercase    :      Union[str, Any]       = num_hidden_layers
										lowercase    :      List[str]       = num_attention_heads
										lowercase    :      Tuple       = intermediate_size
										lowercase    :      Dict       = hidden_act
										lowercase    :      Any       = hidden_dropout_prob
										lowercase    :      str       = attention_probs_dropout_prob
										lowercase    :      Any       = initializer_range
										lowercase    :      List[Any]       = layer_norm_eps

										lowercase    :      Any       = image_size
										lowercase    :      Union[str, Any]       = patch_size
										lowercase    :      Optional[int]       = num_channels
										lowercase    :      List[str]       = use_mask_token
										lowercase    :      int       = use_absolute_position_embeddings
										lowercase    :      Union[str, Any]       = use_relative_position_bias
										lowercase    :      List[Any]       = use_shared_relative_position_bias
										lowercase    :      Any       = layer_scale_init_value
										lowercase    :      Optional[int]       = drop_path_rate
										lowercase    :      Optional[Any]       = use_mean_pooling
										# decode head attributes (semantic segmentation)
										lowercase    :      Any       = out_indices
										lowercase    :      Any       = pool_scales
										# auxiliary head attributes (semantic segmentation)
										lowercase    :      Optional[int]       = use_auxiliary_head
										lowercase    :      Dict       = auxiliary_loss_weight
										lowercase    :      Optional[int]       = auxiliary_channels
										lowercase    :      List[Any]       = auxiliary_num_convs
										lowercase    :      List[Any]       = auxiliary_concat_input
										lowercase    :      int       = semantic_loss_ignore_index


class      UpperCamelCase		(__snake_case     ):
						_SCREAMING_SNAKE_CASE  : List[str]												=		version.parse("""1.11"""     )






						@property
						def      __snake_case      (		self  :str				)      ->Mapping[str, Mapping[int, str]]:
										return OrderedDict(
										    [
										        ("""pixel_values""", {0: """batch""", 1: """num_channels""", 2: """height""", 3: """width"""}),
										    ]				)






						@property
						def      __snake_case      (		self  :Dict				)      ->float:
										return 1E-4








"""simple docstring"""







import requests
from bsa import BeautifulSoup


def      UpperCamelCase       ( _A = "AAPL" )     ->       str:
				lowercase    :      Optional[Any]       = F"""https://in.finance.yahoo.com/quote/{symbol}?s={symbol}"""
				lowercase    :      str       = BeautifulSoup(requests.get(_A ).text  ,				"""html.parser""" )
				lowercase    :      int       = """My(6px) Pos(r) smartphone_Mt(6px)"""
				return soup.find("""div"""  ,				class_=class_ ).find("""span""" ).text


if __name__ == "__main__":
				for symbol in "AAPL AMZN IBM GOOG MSFT ORCL".split():
								print(F'Current {symbol:<4} stock price is {stock_price(symbol):>8}')
