




'''simple docstring'''





import logging

from transformers import PretrainedConfig


_SCREAMING_SNAKE_CASE				:  List[str] 						=					logging.getLogger(__name__)


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




class 					_snake_case						(      _UpperCAmelCase				):
			lowerCAmelCase_	: Optional[Any]					=       "bertabs"




			def __init__(   self							,				a__=30_522							,				a__=512							,				a__=6							,				a__=512							,				a__=8							,				a__=512							,				a__=0.2							,				a__=6							,				a__=768							,				a__=8							,				a__=2_048							,				a__=0.2							,				**a__							,				)							->							Optional[Any]:

										'''simple docstring'''




										super().__init__(**a__				)

										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"""





def      UpperCAmelCase__				(    SCREAMING_SNAKE_CASE	:		int				,		SCREAMING_SNAKE_CASE	:		int     ):







      '''simple docstring'''




      if a < 0 or b < 0:
            raise ValueError("""the value of both inputs must be positive"""     )
      lowerCAmelCase    		=			str(bin(SCREAMING_SNAKE_CASE     )     )[2:]  # remove the leading "0b"
      lowerCAmelCase    		=			str(bin(SCREAMING_SNAKE_CASE     )     )[2:]
      lowerCAmelCase    		=			max(len(SCREAMING_SNAKE_CASE     )				,		len(SCREAMING_SNAKE_CASE     )     )
      return "0b" + "".join(
          str(int("""1""" in (char_a, char_b)     )     )
          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()






