





from ...processing_utils import ProcessorMixin






class 					__A    (    _a ):

			'''simple docstring'''







			lowerCAmelCase_							     =						"""WhisperFeatureExtractor"""
			lowerCAmelCase_							     =						"""WhisperTokenizer"""





			def __init__(    self       ,  __lowerCAmelCase       ,  __lowerCAmelCase							):



				'''simple docstring'''







				super().__init__(__lowerCAmelCase       ,  __lowerCAmelCase							)
				lowerCamelCase__								=		self.feature_extractor
				lowerCamelCase__								=		False





			def 		__lowerCamelCase				(    self       ,  __lowerCAmelCase=None       ,  __lowerCAmelCase=None       ,  __lowerCAmelCase=True							):



				'''simple docstring'''







				return self.tokenizer.get_decoder_prompt_ids(task=__lowerCAmelCase       ,  language=__lowerCAmelCase       ,  no_timestamps=__lowerCAmelCase							)





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



				'''simple docstring'''







				if self._in_target_context_manager:
					return self.current_processor(*__lowerCAmelCase       ,  **__lowerCAmelCase							)

				lowerCamelCase__								=		kwargs.pop('''audio'''       ,  __lowerCAmelCase							)
				lowerCamelCase__								=		kwargs.pop('''sampling_rate'''       ,  __lowerCAmelCase							)
				lowerCamelCase__								=		kwargs.pop('''text'''       ,  __lowerCAmelCase							)
				if len(__lowerCAmelCase							) > 0:
					lowerCamelCase__								=		args[0]
					lowerCamelCase__								=		args[1:]

				if audio is None and text is None:
					raise ValueError('''You need to specify either an `audio` or `text` input to process.'''							)

				if audio is not None:
					lowerCamelCase__								=		self.feature_extractor(__lowerCAmelCase       ,  *__lowerCAmelCase       ,  sampling_rate=__lowerCAmelCase       ,  **__lowerCAmelCase							)
				if text is not None:
					lowerCamelCase__								=		self.tokenizer(__lowerCAmelCase       ,  **__lowerCAmelCase							)

				if text is None:
					return inputs

				elif audio is None:
					return encodings
				else:
					lowerCamelCase__								=		encodings['input_ids']
					return inputs





			def 		__lowerCamelCase				(    self       ,  *__lowerCAmelCase       ,  **__lowerCAmelCase							):



				'''simple docstring'''







				return self.tokenizer.batch_decode(*__lowerCAmelCase       ,  **__lowerCAmelCase							)





			def 		__lowerCamelCase				(    self       ,  *__lowerCAmelCase       ,  **__lowerCAmelCase							):



				'''simple docstring'''







				return self.tokenizer.decode(*__lowerCAmelCase       ,  **__lowerCAmelCase							)





			def 		__lowerCamelCase				(    self       ,  __lowerCAmelCase       ,  __lowerCAmelCase="np"							):



				'''simple docstring'''







				return self.tokenizer.get_prompt_ids(__lowerCAmelCase       ,  return_tensors=__lowerCAmelCase							)







from __future__ import annotations

from math import ceil, floor, sqrt



def 				UpperCamelCase_(      lowerCamelCase_ = 200_0000 )    ->						int:
    _lowercase       :							list[int]      		=		[0]
    _lowercase       :							int

    for idx in range(1							, ceil(sqrt(target * 2 ) * 1.1 ) ):
        triangle_numbers.append(triangle_numbers[-1] + idx )

    # we want this to be as close as possible to target
    _lowercase       :							int      		=		0
    # the area corresponding to the grid that gives the product closest to target
    _lowercase       :							int      		=		0
    # an estimate of b, using the quadratic formula
    _lowercase       :							float
    # the largest integer less than b_estimate
    _lowercase       :							int
    # the largest integer less than b_estimate
    _lowercase       :							int
    # the triangle number corresponding to b_floor
    _lowercase       :							int
    # the triangle number corresponding to b_ceil
    _lowercase       :							int

    for idx_a, triangle_a in enumerate(triangle_numbers[1:]							, 1 ):
        _lowercase       :							Optional[int]      		=		(-1 + sqrt(1 + 8 * target / triangle_a )) / 2
        _lowercase       :							List[str]      		=		floor(lowerCamelCase_ )
        _lowercase       :							Dict      		=		ceil(lowerCamelCase_ )
        _lowercase       :							List[str]      		=		triangle_numbers[b_floor]
        _lowercase       :							List[str]      		=		triangle_numbers[b_ceil]

        if abs(target - triangle_b_first_guess * triangle_a ) < abs(
            target - best_product ):
            _lowercase       :							Union[str, Any]      		=		triangle_b_first_guess * triangle_a
            _lowercase       :							Union[str, Any]      		=		idx_a * b_floor

        if abs(target - triangle_b_second_guess * triangle_a ) < abs(
            target - best_product ):
            _lowercase       :							Any      		=		triangle_b_second_guess * triangle_a
            _lowercase       :							Optional[Any]      		=		idx_a * b_ceil

    return area


if __name__ == "__main__":
 print(F"{solution() = }")


