


from typing import List

import datasets
from datasets.tasks import AudioClassification

from ..folder_based_builder import folder_based_builder


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







class 	snake_case_       (folder_based_builder.FolderBasedBuilderConfig				):
					UpperCAmelCase__ :   bool   				=      None
					UpperCAmelCase__ :   bool   				=      None







class 	snake_case_       (folder_based_builder.FolderBasedBuilder				):
					UpperCAmelCase__ :   int   				=      datasets.Audio()
					UpperCAmelCase__ :   Any   				=      '''audio'''
					UpperCAmelCase__ :   Tuple   				=      AudioFolderConfig
					UpperCAmelCase__ :   List[str]  # definition at the bottom of the script
					UpperCAmelCase__ :   Tuple   				=      AudioClassification(audio_column='''audio'''     ,						label_column='''label'''				)





snake_case							:	Tuple					      =				[
    '''.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''',
]
snake_case							:	Optional[Any]					      =				AUDIO_EXTENSIONS








snake_case							:	str					      =				{
    0: '''0''',
    1: '''1''',
    2: '''2''',
    3: '''3''',
    4: '''4''',
    5: '''5''',
    6: '''6''',
    7: '''7''',
    8: '''8''',
    9: '''9''',
    10: '''a''',
    11: '''b''',
    12: '''c''',
    13: '''d''',
    14: '''e''',
    15: '''f''',
}






def 							__lowercase       (			__lowerCAmelCase							:    float       ):
							assert type(__lowerCAmelCase       ) in (int, float) and decimal == int(__lowerCAmelCase       )
							a__					=					int(__lowerCAmelCase       )
							a__					=					''
							a__					=					False
							if decimal < 0:
														a__					=					True
														decimal *= -1
							while decimal > 0:
														a__				, a__					=					divmod(__lowerCAmelCase ,   1_6       )
														a__					=					values[remainder] + hexadecimal
							a__					=					'0x' + hexadecimal
							if negative:
														a__					=					'-' + hexadecimal
							return hexadecimal


if __name__ == "__main__":
						import doctest

						doctest.testmod()




