
'''simple docstring'''



from typing import Dict

from .base import GenericTensor, Pipeline




class     UpperCAmelCase_	(						_SCREAMING_SNAKE_CASE					):






						'''simple docstring'''






						def    _lowercase      (   self       ,  _lowercase=None       ,  _lowercase=None       ,  _lowercase=None       ,  **_lowercase ):

												"""simple docstring"""



												if tokenize_kwargs is None:
																		_lowerCAmelCase    		=					{}

												if truncation is not None:
																		if "truncation" in tokenize_kwargs:
																								raise ValueError(
																								    """truncation parameter defined twice (given as keyword argument as well as in tokenize_kwargs)""" )
																		_lowerCAmelCase    		=					truncation

												_lowerCAmelCase    		=					tokenize_kwargs

												_lowerCAmelCase    		=					{}
												if return_tensors is not None:
																		_lowerCAmelCase    		=					return_tensors

												return preprocess_params, {}, postprocess_params




						def    _lowercase      (   self       ,  _lowercase       ,  **_lowercase ):

												"""simple docstring"""



												_lowerCAmelCase    		=					self.framework
												_lowerCAmelCase    		=					self.tokenizer(_lowercase       ,  return_tensors=_lowercase       ,  **_lowercase )
												return model_inputs




						def    _lowercase      (   self       ,  _lowercase ):

												"""simple docstring"""



												_lowerCAmelCase    		=					self.model(**_lowercase )
												return model_outputs




						def    _lowercase      (   self       ,  _lowercase       ,  _lowercase=False ):

												"""simple docstring"""



												if return_tensors:
																		return model_outputs[0]
												if self.framework == "pt":
																		return model_outputs[0].tolist()
												elif self.framework == "tf":
																		return model_outputs[0].numpy().tolist()




						def __call__(   self       ,  *_lowercase       ,  **_lowercase ):

												"""simple docstring"""



												return super().__call__(*_lowercase       ,  **_lowercase )


'''simple docstring'''



def A ():
						for n in range(1					,      1000000						):
												yield n * (n + 1) // 2


def A (__lowerCamelCase :List[Any]						):
						_lowerCAmelCase    		=					1
						_lowerCAmelCase    		=					2
						while i * i <= n:
												_lowerCAmelCase    		=					0
												while n % i == 0:
																		n //= i
																		multiplicity += 1
												divisors_count *= multiplicity + 1
												i += 1
						if n > 1:
												divisors_count *= 2
						return divisors_count


def A ():
						return next(i for i in triangle_number_generator() if count_divisors(__lowerCamelCase						) > 500						)


if __name__ == "__main__":
						print(solution())
