


"""simple docstring"""



def     __lowerCAmelCase		(		lowercase    :    int		,				lowercase    :    int					)      ->		str:


    """simple docstring"""





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

    snake_case       : List[str]    =       str(bin(lowercase					)					)[2:]  # remove the leading "0b"
    snake_case       : str    =       str(bin(lowercase					)					)[2:]  # remove the leading "0b"

    snake_case       : str    =       max(len(lowercase					)		,				len(lowercase					)					)

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


if __name__ == "__main__":
  import doctest

  doctest.testmod()









"""simple docstring"""



from .imports import is_tqdm_available


if is_tqdm_available():
  from tqdm.auto import tqdm as _tqdm

from ..state import PartialState







def     __lowerCAmelCase		(		lowercase    :    bool = True		,				*lowercase    :    str		,				**lowercase    :    List[Any]					)      ->		List[Any]:


    """simple docstring"""





    if not is_tqdm_available():
        raise ImportError("Accelerate's `tqdm` module requires `tqdm` to be installed. Please run `pip install tqdm`."					)
    snake_case       : Dict    =       False
    if main_process_only:
        snake_case       : int    =       PartialState().local_process_index == 0
    return _tqdm(*lowercase		,				**lowercase		,				disable=lowercase					)





