
"""simple docstring"""
class       lowerCAmelCase_		:



							'''simple docstring'''





							def __init__( self    ,				snake_case_				)       ->  None:
													__lowerCAmelCase     =  len(snake_case_				)
													__lowerCAmelCase     =  [0] * len_array

													if len_array > 0:
																			__lowerCAmelCase     =  array[0]

													for i in range(1    ,				snake_case_				):
																			__lowerCAmelCase     =  self.prefix_sum[i - 1] + array[i]




							def    A__						( self    ,				snake_case_    ,				snake_case_				)       ->  int:
													if start == 0:
																			return self.prefix_sum[end]

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




							def    A__						( self    ,				snake_case_				)       ->  bool:
													__lowerCAmelCase     =  {0}
													for sum_item in self.prefix_sum:
																			if sum_item - target_sum in sums:
																									return True

																			sums.add(snake_case_				)

													return False


if __name__ == "__main__":
			import doctest

			doctest.testmod()


"""simple docstring"""
import warnings

from ..trainer import Trainer
from ..utils import logging


SCREAMING_SNAKE_CASE_					     =	logging.get_logger(__name__)
class       lowerCAmelCase_		(				A__ ):



							'''simple docstring'''





							def __init__( self    ,				snake_case_=None    ,				**snake_case_				)       ->  Optional[Any]:
													warnings.warn(
													    """`SageMakerTrainer` is deprecated and will be removed in v5 of Transformers. You can use `Trainer` """
													    """instead."""    ,				snake_case_    ,				)
													super().__init__(args=snake_case_    ,				**snake_case_				)
