
'''simple docstring'''







class 			lowerCAmelCase__       :






					def __init__(       self    ,							__SCREAMING_SNAKE_CASE		):


											"""simple docstring"""





											lowercase_     :					str													=	len(_a		)
											lowercase_     :					Union[str, Any]													=	[0] * len_array

											if len_array > 0:
																	lowercase_     :					Union[str, Any]													=	array[0]

											for i in range(1    ,							_a		):
																	lowercase_     :					Union[str, Any]													=	self.prefix_sum[i - 1] + array[i]






					def      _snake_case   (       self    ,							__SCREAMING_SNAKE_CASE    ,							__SCREAMING_SNAKE_CASE		):


											"""simple docstring"""





											if start == 0:
																	return self.prefix_sum[end]

											return self.prefix_sum[end] - self.prefix_sum[start - 1]






					def      _snake_case   (       self    ,							__SCREAMING_SNAKE_CASE		):


											"""simple docstring"""





											lowercase_     :					List[Any]													=	{0}
											for sum_item in self.prefix_sum:
																	if sum_item - target_sum in sums:
																							return True

																	sums.add(_a		)

											return False


if __name__ == "__main__":
							import doctest

							doctest.testmod()





'''simple docstring'''







import warnings

from ...utils import logging
from .image_processing_donut import DonutImageProcessor


_lowercase			:  Any   							=	logging.get_logger(__name__)






class 			lowerCAmelCase__       (  lowerCamelCase_					):






					def __init__(       self    ,							*__SCREAMING_SNAKE_CASE    ,							**__SCREAMING_SNAKE_CASE		):


											"""simple docstring"""





											warnings.warn(
											    '''The class DonutFeatureExtractor is deprecated and will be removed in version 5 of Transformers. Please'''
											    ''' use DonutImageProcessor instead.'''    ,							__SCREAMING_SNAKE_CASE    ,							)
											super().__init__(*__SCREAMING_SNAKE_CASE    ,							**__SCREAMING_SNAKE_CASE		)



