from collections.abc import Sequence



def lowerCamelCase						(     SCREAMING_SNAKE_CASE						,    SCREAMING_SNAKE_CASE = False			):
    '''simple docstring'''







    if not arr:
        return 0

    __UpperCamelCase  :List[str]    						=	0 if allow_empty_subarrays else float('''-inf'''			)
    __UpperCamelCase  :Tuple    						=	0.0
    for num in arr:
        __UpperCamelCase  :List[Any]    						=	max(0 if allow_empty_subarrays else num						,    curr_sum + num			)
        __UpperCamelCase  :List[str]    						=	max(SCREAMING_SNAKE_CASE						,    SCREAMING_SNAKE_CASE			)

    return max_sum


if __name__ == "__main__":
    from doctest import testmod

    testmod()

    __lowercase											=      [-2, 1, -3, 4, -1, 2, 1, -5, 4]
    print(F'{max_subarray_sum(nums) = }')






from typing import List

import datasets
from datasets.tasks import AudioClassification

from ..folder_based_builder import folder_based_builder


__lowercase											=      datasets.utils.logging.get_logger(__name__)


class 			lowerCamelCase_  (     folder_based_builder.FolderBasedBuilderConfig				):






    '''simple docstring'''






    a__			:		bool      			=   None
    a__			:		bool      			=   None


class 			lowerCamelCase_  (     folder_based_builder.FolderBasedBuilder				):






    '''simple docstring'''






    a__			:		List[Any]      			=   datasets.Audio()
    a__			:		int      			=   """audio"""
    a__			:		str      			=   AudioFolderConfig
    a__			:		List[str]  # definition at the bottom of the script
    a__			:		int      			=   AudioClassification(audio_column="""audio"""		,			label_column="""label"""				)
__lowercase											=      [
    '''.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											=      AUDIO_EXTENSIONS





