



"""simple docstring"""
def 			_SCREAMING_SNAKE_CASE						(__lowerCAmelCase							) ->						str:







  '''simple docstring'''


  lowercase_								= hex_num.strip()
  if not hex_num:
    raise ValueError("""No value was passed to the function"""							)

  lowercase_								= hex_num[0] == '-'
  if is_negative:
    lowercase_								= hex_num[1:]

  try:
    lowercase_								= int(__lowercase ,  16							)
  except ValueError:
    raise ValueError("""Invalid value was passed to the function"""							)

  lowercase_								= ''
  while int_num > 0:
    lowercase_								= str(int_num % 2							) + bin_str
    int_num >>= 1

  return int(("""-""" + bin_str) if is_negative else bin_str							)


if __name__ == "__main__":
       import doctest

       doctest.testmod()






"""simple docstring"""
from typing import List

import datasets
from datasets.tasks import AudioClassification

from ..folder_based_builder import folder_based_builder


UpperCAmelCase						:		Union[str, Any]			= datasets.utils.logging.get_logger(__name__)


class    SCREAMING_SNAKE_CASE__ (							folder_based_builder.FolderBasedBuilderConfig   ):
    lowercase__      =   None
    lowercase__      =   None







class    SCREAMING_SNAKE_CASE__ (							folder_based_builder.FolderBasedBuilder   ):
    lowercase__      =   datasets.Audio()
    lowercase__      =   "audio"
    lowercase__      =   AudioFolderConfig
    lowercase__      =   42  # definition at the bottom of the script
    lowercase__      =   AudioClassification(audio_column="audio"      ,  label_column="label"   )







UpperCAmelCase						:		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",
]
UpperCAmelCase						:		Any			= AUDIO_EXTENSIONS

