




"""simple docstring"""


def 					UpperCAmelCase__       (snake_case__							:					int		,   snake_case__							:					int    ):
  """simple docstring"""

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

  _snake_case							:		Dict								=  str(bin(_UpperCAmelCase    )    )[2:]  # remove the leading "0b"
  _snake_case							:		Tuple								=  str(bin(_UpperCAmelCase    )    )[2:]  # remove the leading "0b"

  _snake_case							:		Dict								=  max(len(_UpperCAmelCase    )		,   len(_UpperCAmelCase    )    )

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


if __name__ == "__main__":
     import doctest

     doctest.testmod()






'''simple docstring'''







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


A__:    Dict					    =       logging.get_logger(__name__)

A__:    Tuple					    =       {
    '''weiweishi/roc-bert-base-zh''': '''https://huggingface.co/weiweishi/roc-bert-base-zh/resolve/main/config.json''',
}







class A__       (						UpperCAmelCase__      ):
      __UpperCamelCase       :  Tuple	       =							"roc_bert"






      def __init__( self			:Optional[int]     ,						SCREAMING_SNAKE_CASE			:Tuple=3_0_5_2_2     ,						SCREAMING_SNAKE_CASE			:List[str]=7_6_8     ,						SCREAMING_SNAKE_CASE			:Dict=1_2     ,						SCREAMING_SNAKE_CASE			:List[str]=1_2     ,						SCREAMING_SNAKE_CASE			:Tuple=3_0_7_2     ,						SCREAMING_SNAKE_CASE			:List[Any]="gelu"     ,						SCREAMING_SNAKE_CASE			:Union[str, Any]=0.1     ,						SCREAMING_SNAKE_CASE			:List[Any]=0.1     ,						SCREAMING_SNAKE_CASE			:int=5_1_2     ,						SCREAMING_SNAKE_CASE			:Optional[Any]=2     ,						SCREAMING_SNAKE_CASE			:Union[str, Any]=0.02     ,						SCREAMING_SNAKE_CASE			:Optional[Any]=1e-12     ,						SCREAMING_SNAKE_CASE			:Any=True     ,						SCREAMING_SNAKE_CASE			:List[Any]=0     ,						SCREAMING_SNAKE_CASE			:Optional[int]="absolute"     ,						SCREAMING_SNAKE_CASE			:Union[str, Any]=None     ,						SCREAMING_SNAKE_CASE			:List[Any]=True     ,						SCREAMING_SNAKE_CASE			:int=True     ,						SCREAMING_SNAKE_CASE			:Optional[int]=7_6_8     ,						SCREAMING_SNAKE_CASE			:Optional[Any]=9_1_0     ,						SCREAMING_SNAKE_CASE			:Union[str, Any]=5_1_2     ,						SCREAMING_SNAKE_CASE			:str=2_4_8_5_8     ,						SCREAMING_SNAKE_CASE			:List[Any]=True     ,						**SCREAMING_SNAKE_CASE			:Tuple     ,						)       ->					Optional[int]:




             '''simple docstring'''
             _a    : List[str]     					=vocab_size
             _a    : List[str]     					=max_position_embeddings
             _a    : Optional[Any]     					=hidden_size
             _a    : List[Any]     					=num_hidden_layers
             _a    : List[str]     					=num_attention_heads
             _a    : int     					=intermediate_size
             _a    : Any     					=hidden_act
             _a    : Dict     					=hidden_dropout_prob
             _a    : int     					=attention_probs_dropout_prob
             _a    : str     					=initializer_range
             _a    : Optional[int]     					=type_vocab_size
             _a    : Any     					=layer_norm_eps
             _a    : Any     					=use_cache
             _a    : Optional[int]     					=enable_pronunciation
             _a    : Optional[Any]     					=enable_shape
             _a    : Optional[Any]     					=pronunciation_embed_dim
             _a    : Tuple     					=pronunciation_vocab_size
             _a    : Union[str, Any]     					=shape_embed_dim
             _a    : Any     					=shape_vocab_size
             _a    : Tuple     					=concat_input
             _a    : List[str]     					=position_embedding_type
             _a    : List[str]     					=classifier_dropout
             super().__init__(pad_token_id=SCREAMING_SNAKE_CASE     ,						**SCREAMING_SNAKE_CASE	)


