



'''simple docstring'''





from collections.abc import Sequence





def 						__snake_case(				_lowerCAmelCase     ,   _lowerCAmelCase = False		)		-> float:
      if not arr:
            return 0

      snake_case__  :    Optional[Any]    						=      0 if allow_empty_subarrays else float("""-inf"""		)
      snake_case__  :    List[str]    						=      0.0
      for num in arr:
            snake_case__  :    Any    						=      max(0 if allow_empty_subarrays else num     ,   curr_sum + num		)
            snake_case__  :    Optional[Any]    						=      max(_lowerCAmelCase     ,   _lowerCAmelCase		)

      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) = }")





'''simple docstring'''





import warnings

from ...utils import logging
from .image_processing_beit import BeitImageProcessor


__a          =		logging.get_logger(__name__)







class     UpperCAmelCase_       (       _a	):
    """simple docstring"""







    def __init__(    self					:     List[str] ,     *snake_case_					:     str ,     **snake_case_					:     List[str]						):
          warnings.warn(
              """The class BeitFeatureExtractor is deprecated and will be removed in version 5 of Transformers. Please"""
              """ use BeitImageProcessor instead.""" ,     snake_case_ ,     )
          super().__init__(*snake_case_ ,     **snake_case_						)
