

import logging

from transformers import PretrainedConfig


A_							:			Union[str, Any]											= logging.getLogger(__name__)


A_							:			Tuple											= {
    """bertabs-finetuned-cnndm""": """https://huggingface.co/remi/bertabs-finetuned-cnndm-extractive-abstractive-summarization/resolve/main/config.json""",
}





class    lowerCamelCase						(_lowerCAmelCase			):
			lowerCamelCase__   :		Tuple							=							'bertabs'

			def __init__(					self				:						Union[str, Any]    ,				__UpperCAmelCase				:						Any=3_0_5_2_2    ,				__UpperCAmelCase				:						Optional[Any]=5_1_2    ,				__UpperCAmelCase				:						str=6    ,				__UpperCAmelCase				:						Union[str, Any]=5_1_2    ,				__UpperCAmelCase				:						List[str]=8    ,				__UpperCAmelCase				:						Any=5_1_2    ,				__UpperCAmelCase				:						Any=0.2    ,				__UpperCAmelCase				:						Union[str, Any]=6    ,				__UpperCAmelCase				:						Dict=7_6_8    ,				__UpperCAmelCase				:						List[Any]=8    ,				__UpperCAmelCase				:						str=2_0_4_8    ,				__UpperCAmelCase				:						int=0.2    ,				**__UpperCAmelCase				:						List[str]    ,				)   ->    Tuple:
						super().__init__(**_lowerCAmelCase       )

						SCREAMING_SNAKE_CASE__								=      vocab_size
						SCREAMING_SNAKE_CASE__								=      max_pos

						SCREAMING_SNAKE_CASE__								=      enc_layers
						SCREAMING_SNAKE_CASE__								=      enc_hidden_size
						SCREAMING_SNAKE_CASE__								=      enc_heads
						SCREAMING_SNAKE_CASE__								=      enc_ff_size
						SCREAMING_SNAKE_CASE__								=      enc_dropout

						SCREAMING_SNAKE_CASE__								=      dec_layers
						SCREAMING_SNAKE_CASE__								=      dec_hidden_size
						SCREAMING_SNAKE_CASE__								=      dec_heads
						SCREAMING_SNAKE_CASE__								=      dec_ff_size
						SCREAMING_SNAKE_CASE__								=      dec_dropout





"""simple docstring"""




def 	A       (     snake_case__    ):




			'''simple docstring'''


			if not nums:  # Makes sure that the list is not empty
						raise ValueError("""List is empty"""    )

			SCREAMING_SNAKE_CASE__								=      sum(snake_case__    ) / len(snake_case__    )  # Calculate the average
			return sum(abs(x - average    ) for x in nums    ) / len(snake_case__    )


if __name__ == "__main__":
						import doctest

						doctest.testmod()


