"""simple docstring"""






import warnings

from ...utils import logging
from .image_processing_flava import FlavaImageProcessor


__A			   = logging.get_logger(__name__)


class     UpperCAmelCase						(_UpperCAmelCase  ):



    """simple docstring"""

    def __init__(   self    ,			*_UpperCAmelCase    ,			**_UpperCAmelCase							):
       warnings.warn(
           '''The class FlavaFeatureExtractor is deprecated and will be removed in version 5 of Transformers. Please'''
           ''' use FlavaImageProcessor instead.'''    ,			_UpperCAmelCase    ,			)
       super().__init__(*_UpperCAmelCase    ,			**_UpperCAmelCase							)

"""simple docstring"""






from collections.abc import Sequence



def SCREAMING_SNAKE_CASE__			(   __UpperCAmelCase       ,    __UpperCAmelCase = False )  ->  float:
   if not arr:
      return 0

   lowercase__:   Any					=      0 if allow_empty_subarrays else float('''-inf''' )
   lowercase__:   Union[str, Any]					=      0.0
   for num in arr:
      lowercase__:   List[str]					=      max(0 if allow_empty_subarrays else num       ,    curr_sum + num )
      lowercase__:   int					=      max(__UpperCAmelCase       ,    __UpperCAmelCase )

   return max_sum


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

       testmod()

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