"""simple docstring"""







def 			lowercase__(       __SCREAMING_SNAKE_CASE							:     int     ,			__SCREAMING_SNAKE_CASE							:     int      ):
     if a < 0 or b < 0:
          raise ValueError('the value of both inputs must be positive'      )

     lowercase_	:				List[str]													=	str(bin(__SCREAMING_SNAKE_CASE      )      )[2:]  # remove the leading "0b"
     lowercase_	:				Optional[Any]													=	str(bin(__SCREAMING_SNAKE_CASE      )      )[2:]  # remove the leading "0b"

     lowercase_	:				Tuple													=	max(len(__SCREAMING_SNAKE_CASE      )     ,			len(__SCREAMING_SNAKE_CASE      )      )

     return "0b" + "".join(
         str(int(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()


"""simple docstring"""







from argparse import ArgumentParser

from datasets.commands.convert import ConvertCommand
from datasets.commands.dummy_data import DummyDataCommand
from datasets.commands.env import EnvironmentCommand
from datasets.commands.run_beam import RunBeamCommand
from datasets.commands.test import TestCommand
from datasets.utils.logging import set_verbosity_info



def 			lowercase__(       __SCREAMING_SNAKE_CASE							:     Optional[int]      ):
     return {key.lstrip('-'      ): value for key, value in zip(unknown_args[::2]     ,			unknown_args[1::2]      )}



def 			lowercase__(       ):
     lowercase_	:				Any													=	ArgumentParser(
         'HuggingFace Datasets CLI tool'     ,			usage='datasets-cli <command> [<args>]'     ,			allow_abbrev=__SCREAMING_SNAKE_CASE      )
     lowercase_	:				Tuple													=	parser.add_subparsers(help='datasets-cli command helpers'      )
     set_verbosity_info()

     # Register commands
     ConvertCommand.register_subcommand(__SCREAMING_SNAKE_CASE      )
     EnvironmentCommand.register_subcommand(__SCREAMING_SNAKE_CASE      )
     TestCommand.register_subcommand(__SCREAMING_SNAKE_CASE      )
     RunBeamCommand.register_subcommand(__SCREAMING_SNAKE_CASE      )
     DummyDataCommand.register_subcommand(__SCREAMING_SNAKE_CASE      )

     # Parse args
     lowercase_							,  lowercase_	:				Dict													=	parser.parse_known_args()
     if not hasattr(__SCREAMING_SNAKE_CASE     ,			'func'      ):
          parser.print_help()
          exit(1      )
     lowercase_	:				int													=	parse_unknown_args(__SCREAMING_SNAKE_CASE      )

     # Run
     lowercase_	:				List[Any]													=	args.func(__SCREAMING_SNAKE_CASE     ,			**__SCREAMING_SNAKE_CASE      )
     service.run()


if __name__ == "__main__":
       main()

