

'''simple docstring'''





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


UpperCamelCase_							=					logging.get_logger(__name__)

UpperCamelCase_							=					{
    """tanreinama/GPTSAN-2.8B-spout_is_uniform""": (
        """https://huggingface.co/tanreinama/GPTSAN-2.8B-spout_is_uniform/resolve/main/config.json"""
    ),
}





class 		__SCREAMING_SNAKE_CASE       ( lowercase__			):
				lowerCamelCase_							=						'gptsan-japanese'
				lowerCamelCase_							=						[
				    'past_key_values',
				]
				lowerCamelCase_							=						{
				    'hidden_size': 'd_model',
				    'num_attention_heads': 'num_heads',
				    'num_hidden_layers': 'num_layers',
				}







				def __init__(					self    :		Any		,				UpperCAmelCase__    :		Optional[int]=36000		,				UpperCAmelCase__    :		int=1280		,				UpperCAmelCase__    :		int=1024		,				UpperCAmelCase__    :		int=8192		,				UpperCAmelCase__    :		Any=4096		,				UpperCAmelCase__    :		str=128		,				UpperCAmelCase__    :		Optional[Any]=10		,				UpperCAmelCase__    :		Optional[Any]=0		,				UpperCAmelCase__    :		Any=16		,				UpperCAmelCase__    :		List[Any]=16		,				UpperCAmelCase__    :		int=128		,				UpperCAmelCase__    :		List[Any]=0.0		,				UpperCAmelCase__    :		int=1E-5		,				UpperCAmelCase__    :		List[str]=False		,				UpperCAmelCase__    :		Optional[Any]=0.0		,				UpperCAmelCase__    :		Optional[Any]="float32"		,				UpperCAmelCase__    :		str=False		,				UpperCAmelCase__    :		List[Any]=False		,				UpperCAmelCase__    :		Dict=False		,				UpperCAmelCase__    :		Dict=0.0_02		,				UpperCAmelCase__    :		Optional[Any]=False		,				UpperCAmelCase__    :		List[str]=True		,				UpperCAmelCase__    :		Any=35998		,				UpperCAmelCase__    :		Any=35995		,				UpperCAmelCase__    :		Any=35999		,				**UpperCAmelCase__    :		Optional[Any]		,				):
										'''simple docstring'''
										lowercase   :       List[str]								=vocab_size
										lowercase   :       List[Any]								=max_position_embeddings
										lowercase   :       List[Any]								=d_model
										lowercase   :       Union[str, Any]								=d_ff
										lowercase   :       int								=d_ext
										lowercase   :       Optional[int]								=d_spout
										lowercase   :       int								=num_switch_layers
										lowercase   :       Union[str, Any]								=num_ext_layers
										lowercase   :       str								=num_switch_layers + num_ext_layers
										lowercase   :       Any								=num_heads
										lowercase   :       Union[str, Any]								=num_experts
										lowercase   :       Any								=expert_capacity
										lowercase   :       str								=dropout_rate
										lowercase   :       Optional[Any]								=layer_norm_epsilon
										lowercase   :       List[str]								=router_bias
										lowercase   :       int								=router_jitter_noise
										lowercase   :       Any								=router_dtype
										lowercase   :       Union[str, Any]								=router_ignore_padding_tokens
										lowercase   :       Any								=output_hidden_states
										lowercase   :       Optional[int]								=output_attentions
										lowercase   :       List[Any]								=initializer_factor
										lowercase   :       Any								=output_router_logits
										lowercase   :       Dict								=use_cache

										super().__init__(
										    separator_token_id=UpperCAmelCase__		,				pad_token_id=UpperCAmelCase__		,				eos_token_id=UpperCAmelCase__		,				**UpperCAmelCase__		,				)








'''simple docstring'''





from collections import defaultdict






def 							_lowerCAmelCase (      __magic_name__	:    str      ,   __magic_name__	:    str	)							->     bool:
						lowercase   :       Optional[int]								=first_str.lower().strip()
						lowercase   :       Union[str, Any]								=second_str.lower().strip()

						# Remove whitespace
						lowercase   :       Optional[int]								=first_str.replace(''' '''      ,   ''''''	)
						lowercase   :       Optional[Any]								=second_str.replace(''' '''      ,   ''''''	)

						# Strings of different lengths are not anagrams
						if len(__magic_name__	) != len(__magic_name__	):
												return False

						# Default values for count should be 0
						lowercase   :       defaultdict[str, int]								=defaultdict(__magic_name__	)

						# For each character in input strings,
						# increment count in the corresponding
						for i in range(len(__magic_name__	)	):
												count[first_str[i]] += 1
												count[second_str[i]] -= 1

						return all(_count == 0 for _count in count.values()	)


if __name__ == "__main__":
							from doctest import testmod

							testmod()
							UpperCamelCase_							=					input("""Enter the first string """).strip()
							UpperCamelCase_							=					input("""Enter the second string """).strip()

							UpperCamelCase_							=					check_anagrams(input_a, input_b)
							print(f'''{input_a} and {input_b} are {'' if status else 'not '}anagrams.''')





