






"""simple docstring"""



import re

from filelock import FileLock


try:
						import nltk

						A_    =							True
except (ImportError, ModuleNotFoundError):
						A_    =							False

if NLTK_AVAILABLE:
						with FileLock('''.lock''') as lock:
												nltk.download('''punkt''', quiet=True)




def      _lowerCAmelCase		(							UpperCAmelCase__       :					Union[str, Any]      )		->Dict:
						re.sub("""<n>""",						"""""",						SCREAMING_SNAKE_CASE_      )  # remove pegasus newline char
						assert NLTK_AVAILABLE, "nltk must be installed to separate newlines between sentences. (pip install nltk)"
						return "\n".join(nltk.sent_tokenize(SCREAMING_SNAKE_CASE_      )      )














"""simple docstring"""



def      _lowerCAmelCase		(							UpperCAmelCase__       :					int,						UpperCAmelCase__       :					int      )		->str:
						if a < 0 or b < 0:
												raise ValueError("""the value of both inputs must be positive"""      )

						A__						:  str		  =  str(bin(UpperCAmelCase__      )      )[2:]  # remove the leading "0b"
						A__						:  List[Any]		  =  str(bin(UpperCAmelCase__      )      )[2:]  # remove the leading "0b"

						A__						:  List[str]		  =  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()






