


'''simple docstring'''
from ...processing_utils import ProcessorMixin
class        lowercase     (							A__ ):

		"""simple docstring"""

		_a   			=    'WhisperFeatureExtractor'
		_a   			=    'WhisperTokenizer'




		def __init__(		self   ,       UpperCamelCase_   ,       UpperCamelCase_							):

							'''simple docstring'''


							super().__init__(UpperCamelCase_   ,       UpperCamelCase_							)
							UpperCamelCase__       :Tuple							 =			self.feature_extractor
							UpperCamelCase__       :str							 =			False




		def    lowerCAmelCase__    (		self   ,       UpperCamelCase_=None   ,       UpperCamelCase_=None   ,       UpperCamelCase_=True							):

							'''simple docstring'''


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




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

							'''simple docstring'''


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

							UpperCamelCase__       :Optional[int]							 =			kwargs.pop('''audio'''   ,       UpperCamelCase_							)
							UpperCamelCase__       :int							 =			kwargs.pop('''sampling_rate'''   ,       UpperCamelCase_							)
							UpperCamelCase__       :List[str]							 =			kwargs.pop('''text'''   ,       UpperCamelCase_							)
							if len(UpperCamelCase_							) > 0:
												UpperCamelCase__       :Optional[int]							 =			args[0]
												UpperCamelCase__       :str							 =			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:
												UpperCamelCase__       :Any							 =			self.feature_extractor(UpperCamelCase_   ,       *UpperCamelCase_   ,       sampling_rate=UpperCamelCase_   ,       **UpperCamelCase_							)
							if text is not None:
												UpperCamelCase__       :Union[str, Any]							 =			self.tokenizer(UpperCamelCase_   ,       **UpperCamelCase_							)

							if text is None:
												return inputs

							elif audio is None:
												return encodings
							else:
												UpperCamelCase__       :Union[str, Any]							 =			encodings['''input_ids''']
												return inputs




		def    lowerCAmelCase__    (		self   ,       *UpperCamelCase_   ,       **UpperCamelCase_							):

							'''simple docstring'''


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




		def    lowerCAmelCase__    (		self   ,       *UpperCamelCase_   ,       **UpperCamelCase_							):

							'''simple docstring'''


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




		def    lowerCAmelCase__    (		self   ,       UpperCamelCase_   ,       UpperCamelCase_="np"							):

							'''simple docstring'''


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



'''simple docstring'''
from __future__ import annotations

__snake_case											=					[True] * 1000001
__snake_case											=					2
while i * i <= 1000000:
		if seive[i]:
				for j in range(i * i, 1000001, i):
						__snake_case											=					False
		i += 1


def       a				(      __a       )  ->     bool:



					'''simple docstring'''






					return seive[n]


def       a				(      __a       )  ->     bool:



					'''simple docstring'''






					return any(digit in '''02468''' for digit in str(__a       )       )


def       a				(      __a = 1000000       )  ->     list[int]:



					'''simple docstring'''






					UpperCamelCase__       :Any							 =			[2]  # result already includes the number 2.
					for num in range(3			, limit + 1			, 2       ):
										if is_prime(__a       ) and not contains_an_even_digit(__a       ):
															UpperCamelCase__       :str							 =			str(__a       )
															UpperCamelCase__       :List[str]							 =			[int(str_num[j:] + str_num[:j]       ) for j in range(len(__a       )       )]
															if all(is_prime(__a       ) for i in list_nums       ):
																				result.append(__a       )
					return result


def       a				(      )  ->     int:



					'''simple docstring'''






					return len(find_circular_primes()       )


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