



'''simple docstring'''




from abc import ABC, abstractmethod
from typing import Optional, Union

from .. import Dataset, DatasetDict, Features, IterableDataset, IterableDatasetDict, NamedSplit
from ..utils.typing import NestedDataStructureLike, PathLike







class       _lowerCAmelCase				(     _a					):


	def __init__(self			, lowercase = None			, lowercase = None			, lowercase = None			, lowercase = None			, lowercase = False			, lowercase = False			, lowercase = None			, **lowercase			, ):
				A_      :		Optional[Any]      =	path_or_paths
				A_      :		int      =	split if split or isinstance(__lowerCamelCase			, __lowerCamelCase				) else """train"""
				A_      :		Any      =	features
				A_      :		int      =	cache_dir
				A_      :		Union[str, Any]      =	keep_in_memory
				A_      :		str      =	streaming
				A_      :		Any      =	num_proc
				A_      :		int      =	kwargs


	@abstractmethod
	def        _a      (self				):
				pass







class       _lowerCAmelCase				(     _a					):


	def __init__(self			, lowercase = None			, lowercase = None			, lowercase = False			, lowercase = False			, lowercase = None			, **lowercase			, ):
				A_      :		List[Any]      =	features
				A_      :		Optional[int]      =	cache_dir
				A_      :		Any      =	keep_in_memory
				A_      :		str      =	streaming
				A_      :		Tuple      =	num_proc
				A_      :		Tuple      =	kwargs


	@abstractmethod
	def        _a      (self				):
				pass





from __future__ import annotations
def 		a_							( __lowerCAmelCase				):
  if not nums:
    return 0
  lowerCAmelCase__										=      nums[0]
  lowerCAmelCase__										=      0
  for num in nums[1:]:
    lowerCAmelCase__				,      lowerCAmelCase__										=      (
        max_excluding + num,
        max(__lowerCAmelCase   , __lowerCAmelCase				),
    )
  return max(__lowerCAmelCase   , __lowerCAmelCase				)


if __name__ == "__main__":
      import doctest

      doctest.testmod()

