





"""simple docstring"""





from typing import List

import datasets
from datasets.tasks import AudioClassification

from ..folder_based_builder import folder_based_builder


lowercase__				:Optional[Any]				   =       datasets.utils.logging.get_logger(__name__)




class 							snake_case							(			folder_based_builder.FolderBasedBuilderConfig ):

      '''simple docstring'''



      _A     :       Tuple         =       None
      _A     :       Union[str, Any]         =       None




class 							snake_case							(			folder_based_builder.FolderBasedBuilder ):

      '''simple docstring'''



      _A     :       Optional[Any]         =       datasets.Audio()
      _A     :       Optional[Any]         =       'audio'
      _A     :       str         =       AudioFolderConfig
      _A     :       List[str]         =       42  # definition at the bottom of the script
      _A     :       Union[str, Any]         =       AudioClassification(audio_column='audio'      ,  label_column='label' )


lowercase__				: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',
]
lowercase__				:int				   =       AUDIO_EXTENSIONS






"""simple docstring"""





def       lowerCamelCase_       (   UpperCAmelCase_  )						->float:





  """simple docstring"""


  return 10 - x * x


def       lowerCamelCase_       (   UpperCAmelCase_  ,			UpperCAmelCase_  )						->float:





  """simple docstring"""


  if equation(UpperCAmelCase_  ) * equation(UpperCAmelCase_  ) >= 0:
    raise ValueError('''Wrong space!'''  )

  __UpperCAmelCase    :						Tuple       =						a
  while (b - a) >= 0.01:
    # Find middle point
    __UpperCAmelCase    :						List[str]       =						(a + b) / 2
    # Check if middle point is root
    if equation(UpperCAmelCase_  ) == 0.0:
      break
    # Decide the side to repeat the steps
    if equation(UpperCAmelCase_  ) * equation(UpperCAmelCase_  ) < 0:
      __UpperCAmelCase    :						Union[str, Any]       =						c
    else:
      __UpperCAmelCase    :						str       =						c
  return c


if __name__ == "__main__":
  import doctest

  doctest.testmod()

  print(bisection(-2, 5))
  print(bisection(0, 6))