



"""simple docstring"""





from typing import List

import datasets
from datasets.tasks import AudioClassification

from ..folder_based_builder import folder_based_builder


__lowerCAmelCase       :					Tuple      					=					datasets.utils.logging.get_logger(__name__)



class    _lowerCAmelCase    (				folder_based_builder.FolderBasedBuilderConfig		):





		"""simple docstring"""






		_lowerCamelCase			  =       None
		_lowerCamelCase			  =       None




class    _lowerCAmelCase    (				folder_based_builder.FolderBasedBuilder		):





		"""simple docstring"""






		_lowerCamelCase			  =       datasets.Audio()
		_lowerCamelCase			  =       "audio"
		_lowerCamelCase			  =       AudioFolderConfig
		_lowerCamelCase			  =       42  # definition at the bottom of the script
		_lowerCamelCase			  =       AudioClassification(audio_column='''audio'''  ,				label_column='''label'''		)




__lowerCAmelCase       :					Optional[Any]      					=					[
    """.aiff""",
    """.au""",
    """.avr""",
    """.caf""",
    """.flac""",
    """.htk""",
    """.svx""",
    """.mat4""",
    """.mat5""",
    """.mpc2k""",
    """.ogg""",
    """.paf""",
    """.pvf""",
    """.raw""",
    """.rf64""",
    """.sd2""",
    """.sds""",
    """.ircam""",
    """.voc""",
    """.w64""",
    """.wav""",
    """.nist""",
    """.wavex""",
    """.wve""",
    """.xi""",
    """.mp3""",
    """.opus""",
]
__lowerCAmelCase       :					Tuple      					=					AUDIO_EXTENSIONS






"""simple docstring"""





def 	__lowerCAmelCase						(		__UpperCamelCase      :			int					, __UpperCamelCase      :			int    ):


						'''simple docstring'''






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

						snake_case_   : List[str]						=			str(bin(__UpperCamelCase    )    )[2:]  # remove the leading "0b"
						snake_case_   : Union[str, Any]						=			str(bin(__UpperCamelCase    )    )[2:]  # remove the leading "0b"

						snake_case_   : int						=			max(len(__UpperCamelCase    )					, len(__UpperCamelCase    )    )

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


if __name__ == "__main__":
					import doctest

					doctest.testmod()

