



"""simple docstring"""





from collections.abc import Sequence
def 	__lowerCAmelCase						(		__UpperCamelCase      :			Sequence[int] | None = None    ):


						'''simple docstring'''






						if nums is None or not nums:
												raise ValueError("""Input sequence should not be empty"""    )

						snake_case_   : List[Any]						=			nums[0]
						for i in range(1					, len(__UpperCamelCase    )    ):
												snake_case_   : int						=			nums[i]
												snake_case_   : List[Any]						=			max(__UpperCamelCase					, ans + num					, __UpperCamelCase    )

						return ans


if __name__ == "__main__":
					import doctest

					doctest.testmod()

					# Try on a sample input from the user
					__lowerCAmelCase       :					Dict      					=					int(input('''Enter number of elements : ''').strip())
					__lowerCAmelCase       :					List[str]      					=					list(map(int, input('''\nEnter the numbers : ''').strip().split()))[:n]
					print(max_subsequence_sum(array))






"""simple docstring"""





from .data_collator import (
    DataCollatorForLanguageModeling,
    DataCollatorForPermutationLanguageModeling,
    DataCollatorForSeqaSeq,
    DataCollatorForSOP,
    DataCollatorForTokenClassification,
    DataCollatorForWholeWordMask,
    DataCollatorWithPadding,
    DefaultDataCollator,
    default_data_collator,
)
from .metrics import glue_compute_metrics, xnli_compute_metrics
from .processors import (
    DataProcessor,
    InputExample,
    InputFeatures,
    SingleSentenceClassificationProcessor,
    SquadExample,
    SquadFeatures,
    SquadVaProcessor,
    SquadVaProcessor,
    glue_convert_examples_to_features,
    glue_output_modes,
    glue_processors,
    glue_tasks_num_labels,
    squad_convert_examples_to_features,
    xnli_output_modes,
    xnli_processors,
    xnli_tasks_num_labels,
)

