



from ...configuration_utils import PretrainedConfig
from ...utils import logging


UpperCAmelCase_		 =					logging.get_logger(__name__)

UpperCAmelCase_		 =					{
    """google/realm-cc-news-pretrained-embedder""": (
        """https://huggingface.co/google/realm-cc-news-pretrained-embedder/resolve/main/config.json"""
    ),
    """google/realm-cc-news-pretrained-encoder""": (
        """https://huggingface.co/google/realm-cc-news-pretrained-encoder/resolve/main/config.json"""
    ),
    """google/realm-cc-news-pretrained-scorer""": (
        """https://huggingface.co/google/realm-cc-news-pretrained-scorer/resolve/main/config.json"""
    ),
    """google/realm-cc-news-pretrained-openqa""": (
        """https://huggingface.co/google/realm-cc-news-pretrained-openqa/aresolve/main/config.json"""
    ),
    """google/realm-orqa-nq-openqa""": """https://huggingface.co/google/realm-orqa-nq-openqa/resolve/main/config.json""",
    """google/realm-orqa-nq-reader""": """https://huggingface.co/google/realm-orqa-nq-reader/resolve/main/config.json""",
    """google/realm-orqa-wq-openqa""": """https://huggingface.co/google/realm-orqa-wq-openqa/resolve/main/config.json""",
    """google/realm-orqa-wq-reader""": """https://huggingface.co/google/realm-orqa-wq-reader/resolve/main/config.json""",
    # See all REALM models at https://huggingface.co/models?filter=realm
}


class 	lowerCamelCase__	(       _A):



 """simple docstring"""

 a__					: str =  "realm"

 def __init__(    self					:					List[Any]			,						__lowerCAmelCase					:					List[Any]=3_05_22			,						__lowerCAmelCase					:					List[str]=7_68			,						__lowerCAmelCase					:					str=1_28			,						__lowerCAmelCase					:					List[str]=12			,						__lowerCAmelCase					:					str=12			,						__lowerCAmelCase					:					Union[str, Any]=8			,						__lowerCAmelCase					:					Tuple=30_72			,						__lowerCAmelCase					:					Optional[int]="gelu_new"			,						__lowerCAmelCase					:					Any=0.1			,						__lowerCAmelCase					:					Any=0.1			,						__lowerCAmelCase					:					List[str]=5_12			,						__lowerCAmelCase					:					str=2			,						__lowerCAmelCase					:					Any=0.02			,						__lowerCAmelCase					:					str=1E-12			,						__lowerCAmelCase					:					Tuple=2_56			,						__lowerCAmelCase					:					List[str]=10			,						__lowerCAmelCase					:					Union[str, Any]=1E-3			,						__lowerCAmelCase					:					Optional[Any]=5			,						__lowerCAmelCase					:					List[Any]=3_20			,						__lowerCAmelCase					:					Any=13_35_37_18			,						__lowerCAmelCase					:					Tuple=50_00			,						__lowerCAmelCase					:					str=1			,						__lowerCAmelCase					:					List[str]=0			,						__lowerCAmelCase					:					Union[str, Any]=2			,						**__lowerCAmelCase					:					Dict			,						)   ->	int:
    super().__init__(pad_token_id=__lowerCAmelCase			,						bos_token_id=__lowerCAmelCase			,						eos_token_id=__lowerCAmelCase			,						**__lowerCAmelCase      )

    # Common config
    _A      =       vocab_size
    _A      =       max_position_embeddings
    _A      =       hidden_size
    _A      =       retriever_proj_size
    _A      =       num_hidden_layers
    _A      =       num_attention_heads
    _A      =       num_candidates
    _A      =       intermediate_size
    _A      =       hidden_act
    _A      =       hidden_dropout_prob
    _A      =       attention_probs_dropout_prob
    _A      =       initializer_range
    _A      =       type_vocab_size
    _A      =       layer_norm_eps

    # Reader config
    _A      =       span_hidden_size
    _A      =       max_span_width
    _A      =       reader_layer_norm_eps
    _A      =       reader_beam_size
    _A      =       reader_seq_len

    # Retrieval config
    _A      =       num_block_records
    _A      =       searcher_beam_size








import requests
from bsa import BeautifulSoup

def 	SCREAMING_SNAKE_CASE_							(	_snake_case	:str = "AAPL"				)  ->     str:
   _A      =       F'''https://in.finance.yahoo.com/quote/{symbol}?s={symbol}'''
   _A      =       BeautifulSoup(requests.get(_snake_case				).text	,   '''html.parser'''				)
   _A      =       '''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}')



