






'''simple docstring'''





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


a__       =     logging.get_logger(__name__)

a__       =     {
    '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			(		__lowercase      ):



				"""simple docstring"""



				_lowercase				:   Optional[Any]      =  '''realm'''



				def __init__(      self    :    Union[str, Any]			,		UpperCamelCase__    :    List[Any]=3_0_5_2_2			,		UpperCamelCase__    :    List[Any]=7_6_8			,		UpperCamelCase__    :    List[Any]=1_2_8			,		UpperCamelCase__    :    Union[str, Any]=1_2			,		UpperCamelCase__    :    Union[str, Any]=1_2			,		UpperCamelCase__    :    Optional[Any]=8			,		UpperCamelCase__    :    Dict=3_0_7_2			,		UpperCamelCase__    :    List[Any]="gelu_new"			,		UpperCamelCase__    :    List[Any]=0.1			,		UpperCamelCase__    :    Tuple=0.1			,		UpperCamelCase__    :    Optional[Any]=5_1_2			,		UpperCamelCase__    :    Optional[int]=2			,		UpperCamelCase__    :    str=0.02			,		UpperCamelCase__    :    int=1E-12			,		UpperCamelCase__    :    Optional[Any]=2_5_6			,		UpperCamelCase__    :    Any=1_0			,		UpperCamelCase__    :    Dict=1E-3			,		UpperCamelCase__    :    Optional[Any]=5			,		UpperCamelCase__    :    Dict=3_2_0			,		UpperCamelCase__    :    Tuple=1_3_3_5_3_7_1_8			,		UpperCamelCase__    :    List[Any]=5_0_0_0			,		UpperCamelCase__    :    Dict=1			,		UpperCamelCase__    :    int=0			,		UpperCamelCase__    :    Dict=2			,		**UpperCamelCase__    :    List[str]			,		):






											'''simple docstring'''







											super().__init__(pad_token_id=__a			,		bos_token_id=__a			,		eos_token_id=__a			,		**__a)

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

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

											# Retrieval config
											snake_case__	  =       num_block_records
											snake_case__	  =       searcher_beam_size








import random
from typing import Any

def _UpperCAmelCase   (	a						:	list ):
							for _ in range(len(a ) ):
														snake_case__	  =       random.randint(0  ,					len(a ) - 1 )
														snake_case__	  =       random.randint(0  ,					len(a ) - 1 )
														snake_case__  , snake_case__	  =       data[b], data[a]
							return data


if __name__ == "__main__":
	a__       =     [0, 1, 2, 3, 4, 5, 6, 7]
	a__       =     ["""python""", """says""", """hello""", """!"""]
	print("""Fisher-Yates Shuffle:""")
	print("""List""", integers, strings)
	print("""FY Shuffle""", fisher_yates_shuffle(integers), fisher_yates_shuffle(strings))
