
"""simple docstring"""




def lowercase_						(     _snake_case     ,_snake_case		):



							if a < 0 or b < 0:
														raise ValueError("""the value of both inputs must be positive"""		)

							SCREAMING_SNAKE_CASE__		: Any     =     str(bin(_SCREAMING_SNAKE_CASE		)		)[2:]  # remove the leading "0b"
							SCREAMING_SNAKE_CASE__		: str     =     str(bin(_SCREAMING_SNAKE_CASE		)		)[2:]  # remove the leading "0b"

							SCREAMING_SNAKE_CASE__		: Any     =     max(len(_SCREAMING_SNAKE_CASE		)     ,len(_SCREAMING_SNAKE_CASE		)		)

							return "0b" + "".join(
							    str(int(char_a == """1""" and char_b == """1"""		)		)
							    for char_a, char_b in zip(a_binary.zfill(_SCREAMING_SNAKE_CASE		)     ,b_binary.zfill(_SCREAMING_SNAKE_CASE		)		)		)


if __name__ == "__main__":
					import doctest

					doctest.testmod()



"""simple docstring"""




import logging

from transformers import PretrainedConfig


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


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



class 			lowerCAmelCase_		(a__						):


				"""simple docstring"""



				__UpperCamelCase   :		List[Any]       =     '''bertabs'''



				def __init__(self     , SCREAMING_SNAKE_CASE__=3_05_22     , SCREAMING_SNAKE_CASE__=5_12     , SCREAMING_SNAKE_CASE__=6     , SCREAMING_SNAKE_CASE__=5_12     , SCREAMING_SNAKE_CASE__=8     , SCREAMING_SNAKE_CASE__=5_12     , SCREAMING_SNAKE_CASE__=0.2     , SCREAMING_SNAKE_CASE__=6     , SCREAMING_SNAKE_CASE__=7_68     , SCREAMING_SNAKE_CASE__=8     , SCREAMING_SNAKE_CASE__=20_48     , SCREAMING_SNAKE_CASE__=0.2     , **SCREAMING_SNAKE_CASE__     , )      ->	Union[str, Any]:



											"""simple docstring"""




											super().__init__(**SCREAMING_SNAKE_CASE__					)

											SCREAMING_SNAKE_CASE__		: Optional[Any]     =     vocab_size
											SCREAMING_SNAKE_CASE__		: Any     =     max_pos

											SCREAMING_SNAKE_CASE__		: List[Any]     =     enc_layers
											SCREAMING_SNAKE_CASE__		: Tuple     =     enc_hidden_size
											SCREAMING_SNAKE_CASE__		: Dict     =     enc_heads
											SCREAMING_SNAKE_CASE__		: Optional[Any]     =     enc_ff_size
											SCREAMING_SNAKE_CASE__		: Dict     =     enc_dropout

											SCREAMING_SNAKE_CASE__		: Any     =     dec_layers
											SCREAMING_SNAKE_CASE__		: Union[str, Any]     =     dec_hidden_size
											SCREAMING_SNAKE_CASE__		: Any     =     dec_heads
											SCREAMING_SNAKE_CASE__		: List[Any]     =     dec_ff_size
											SCREAMING_SNAKE_CASE__		: str     =     dec_dropout




