





"""simple docstring"""


import math
from timeit import timeit





def 							a__	(     _UpperCAmelCase		)			->     int:

 '''simple docstring'''






 snake_case__										= 0
 snake_case__										= abs(_UpperCAmelCase		)
 while True:
  snake_case__										= n // 1_0
  digits += 1
  if n == 0:
   break
 return digits





def 							a__	(     _UpperCAmelCase		)			->     int:

 '''simple docstring'''






 return 1 if n == 0 else math.floor(math.log(abs(_UpperCAmelCase		)		,   1_0		) + 1		)





def 							a__	(     _UpperCAmelCase		)			->     int:

 '''simple docstring'''






 return len(str(abs(_UpperCAmelCase		)		)		)





def 							a__	(     )			->     None:

 '''simple docstring'''






 from collections.abc import Callable

 def benchmark_a_function(_UpperCAmelCase		,   _UpperCAmelCase		) -> None:
  snake_case__										= f"{func.__name__}({value})"
  snake_case__										= timeit(f"__main__.{call}"		,   setup="import __main__"		)
  print(f"{call}: {func(_UpperCAmelCase		)} -- {timing} seconds"		)

 for value in (2_6_2_1_4_4, 1_1_2_5_8_9_9_9_0_6_8_4_2_6_2_4, 1_2_6_7_6_5_0_6_0_0_2_2_8_2_2_9_4_0_1_4_9_6_7_0_3_2_0_5_3_7_6):
  for func in (num_digits, num_digits_fast, num_digits_faster):
   benchmark_a_function(_UpperCAmelCase		,   _UpperCAmelCase		)
  print()


if __name__ == "__main__":
   import doctest

   doctest.testmod()
   benchmark()








"""simple docstring"""


import warnings

from ...utils import logging
from .image_processing_vilt import ViltImageProcessor


a__    :   str    						= logging.get_logger(__name__)



class    lowercase_ (   __lowerCAmelCase							):

       def __init__(	self      ,    *__SCREAMING_SNAKE_CASE      ,    **__SCREAMING_SNAKE_CASE   ):






        '''simple docstring'''

        warnings.warn(
            "The class ViltFeatureExtractor is deprecated and will be removed in version 5 of Transformers. Please"
            " use ViltImageProcessor instead."      ,    __SCREAMING_SNAKE_CASE      ,    )
        super().__init__(*__SCREAMING_SNAKE_CASE      ,    **__SCREAMING_SNAKE_CASE   )

