"""simple docstring"""
import logging

from transformers import PretrainedConfig


SCREAMING_SNAKE_CASE__      						=  logging.getLogger(__name__)


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



class   lowerCAmelCase_    (			lowerCAmelCase					):



				"""simple docstring"""
				_lowerCAmelCase     :    str			  =						"""bertabs"""

				def __init__(				self		,    lowerCAmelCase=3_05_22		,    lowerCAmelCase=5_12		,    lowerCAmelCase=6		,    lowerCAmelCase=5_12		,    lowerCAmelCase=8		,    lowerCAmelCase=5_12		,    lowerCAmelCase=0.2		,    lowerCAmelCase=6		,    lowerCAmelCase=7_68		,    lowerCAmelCase=8		,    lowerCAmelCase=20_48		,    lowerCAmelCase=0.2		,    **lowerCAmelCase		,    ):






										"""simple docstring"""

										super().__init__(**lowerCAmelCase    )

										snake_case								=			vocab_size
										snake_case								=			max_pos

										snake_case								=			enc_layers
										snake_case								=			enc_hidden_size
										snake_case								=			enc_heads
										snake_case								=			enc_ff_size
										snake_case								=			enc_dropout

										snake_case								=			dec_layers
										snake_case								=			dec_hidden_size
										snake_case								=			dec_heads
										snake_case								=			dec_ff_size
										snake_case								=			dec_dropout



"""simple docstring"""
import math





def    lowerCAmelCase__    (			_UpperCamelCase       :				int					)					->				bool:





						"""simple docstring"""






						return math.sqrt(_UpperCamelCase					) * math.sqrt(_UpperCamelCase					) == num





def    lowerCAmelCase__    (			_UpperCamelCase       :				int					)					->				bool:





						"""simple docstring"""






						snake_case								=			0
						snake_case								=			n
						while left <= right:
												snake_case								=			(left + right) // 2
												if mid**2 == n:
																		return True
												elif mid**2 > n:
																		snake_case								=			mid - 1
												else:
																		snake_case								=			mid + 1
						return False


if __name__ == "__main__":
					import doctest

					doctest.testmod()


