"""simple docstring"""






from timeit import timeit




def 						SCREAMING_SNAKE_CASE					(  __UpperCAmelCase       )							->   int:
				if number < 0:
								raise ValueError("the value of input must not be negative"       )
				SCREAMING_SNAKE_CASE__		  =				0
				while number:
								number &= number - 1
								result += 1
				return result




def 						SCREAMING_SNAKE_CASE					(  __UpperCAmelCase       )							->   int:
				if number < 0:
								raise ValueError("the value of input must not be negative"       )
				SCREAMING_SNAKE_CASE__		  =				0
				while number:
								if number % 2 == 1:
												result += 1
								number >>= 1
				return result




def 						SCREAMING_SNAKE_CASE					(  )							->   None:

				def do_benchmark(__UpperCAmelCase       ) -> None:
								SCREAMING_SNAKE_CASE__		  =				"import __main__ as z"
								print(F"""Benchmark when {number = }:"""       )
								print(F"""{get_set_bits_count_using_modulo_operator(__UpperCAmelCase       ) = }"""       )
								SCREAMING_SNAKE_CASE__		  =				timeit("z.get_set_bits_count_using_modulo_operator(25)"  ,					setup=__UpperCAmelCase       )
								print(F"""timeit() runs in {timing} seconds"""       )
								print(F"""{get_set_bits_count_using_brian_kernighans_algorithm(__UpperCAmelCase       ) = }"""       )
								SCREAMING_SNAKE_CASE__		  =				timeit(
								    "z.get_set_bits_count_using_brian_kernighans_algorithm(25)"  ,					setup=__UpperCAmelCase  ,					)
								print(F"""timeit() runs in {timing} seconds"""       )

				for number in (25, 37, 58, 0):
								do_benchmark(__UpperCAmelCase       )
								print()


if __name__ == "__main__":
						import doctest

						doctest.testmod()
						benchmark()





"""simple docstring"""






from typing import TYPE_CHECKING

from ...utils import _LazyModule


_A   					=    {'processing_wav2vec2_with_lm': ['Wav2Vec2ProcessorWithLM']}


if TYPE_CHECKING:
						from .processing_wavaveca_with_lm import WavaVecaProcessorWithLM
else:
						import sys

						_A   					=    _LazyModule(__name__, globals()['__file__'], _import_structure, module_spec=__spec__)




