



"""simple docstring"""

from collections.abc import Sequence





def       __magic_name__    (   _lowerCamelCase				: Sequence[float]  ,       _lowerCamelCase				: bool = False					):
							if not arr:
														return 0

							__a		:		Optional[int]									=       0 if allow_empty_subarrays else float("""-inf"""					)
							__a		:		Union[str, Any]									=       0.0
							for num in arr:
														__a		:		Union[str, Any]									=       max(0 if allow_empty_subarrays else num  ,       curr_sum + num					)
														__a		:		Any									=       max(_lowerCamelCase  ,       _lowerCamelCase					)

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






"""simple docstring"""

from dataclasses import dataclass
from enum import Enum
from typing import List, Optional, Union

import numpy as np
import PIL
from PIL import Image

from ...utils import BaseOutput, is_torch_available, is_transformers_available




@dataclass
class SCREAMING_SNAKE_CASE__					(		__snake_case      ):
						_lowerCAmelCase							=					42
						_lowerCAmelCase							=					42


if is_transformers_available() and is_torch_available():
	from .pipeline_semantic_stable_diffusion import SemanticStableDiffusionPipeline

