



from timeit import timeit






def      lowerCAmelCase__		(   lowerCamelCase_		:		int):





				'''simple docstring'''

				if number < 0:
								raise ValueError('''the value of input must not be negative''')
				lowerCAmelCase__					:    Any												=					0
				while number:
								number &= number - 1
								result += 1
				return result






def      lowerCAmelCase__		(   lowerCamelCase_		:		int):





				'''simple docstring'''

				if number < 0:
								raise ValueError('''the value of input must not be negative''')
				lowerCAmelCase__					:    List[Any]												=					0
				while number:
								if number % 2 == 1:
												result += 1
								number >>= 1
				return result






def      lowerCAmelCase__		(   ):





				'''simple docstring'''

				def do_benchmark(lowerCamelCase_		:		int) -> None:
								lowerCAmelCase__					:    int												=					'''import __main__ as z'''
								print(f"""Benchmark when {number = }:""")
								print(f"""{get_set_bits_count_using_modulo_operator(lowerCamelCase_) = }""")
								lowerCAmelCase__					:    Union[str, Any]												=					timeit('''z.get_set_bits_count_using_modulo_operator(25)'''	,setup=lowerCamelCase_)
								print(f"""timeit() runs in {timing} seconds""")
								print(f"""{get_set_bits_count_using_brian_kernighans_algorithm(lowerCamelCase_) = }""")
								lowerCAmelCase__					:    Any												=					timeit(
								    '''z.get_set_bits_count_using_brian_kernighans_algorithm(25)'''	,setup=lowerCamelCase_	,)
								print(f"""timeit() runs in {timing} seconds""")

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


if __name__ == "__main__":
							import doctest

							doctest.testmod()
							benchmark()






from typing import TYPE_CHECKING

from ...utils import (
    OptionalDependencyNotAvailable,
    _LazyModule,
    is_flax_available,
    is_tf_available,
    is_torch_available,
)


__snake_case    :		Optional[int]  ={
    'configuration_vision_text_dual_encoder': ['VisionTextDualEncoderConfig'],
    'processing_vision_text_dual_encoder': ['VisionTextDualEncoderProcessor'],
}


try:
							if not is_torch_available():
														raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
							pass
else:
							__snake_case    :		int  =['VisionTextDualEncoderModel']


try:
							if not is_flax_available():
														raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
							pass
else:
							__snake_case    :		List[str]  =['FlaxVisionTextDualEncoderModel']

try:
							if not is_tf_available():
														raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
							pass
else:
							__snake_case    :		Tuple  =['TFVisionTextDualEncoderModel']


if TYPE_CHECKING:
							from .configuration_vision_text_dual_encoder import VisionTextDualEncoderConfig
							from .processing_vision_text_dual_encoder import VisionTextDualEncoderProcessor

							try:
														if not is_torch_available():
																					raise OptionalDependencyNotAvailable()
							except OptionalDependencyNotAvailable:
														pass
							else:
														from .modeling_vision_text_dual_encoder import VisionTextDualEncoderModel

							try:
														if not is_flax_available():
																					raise OptionalDependencyNotAvailable()
							except OptionalDependencyNotAvailable:
														pass
							else:
														from .modeling_flax_vision_text_dual_encoder import FlaxVisionTextDualEncoderModel

							try:
														if not is_tf_available():
																					raise OptionalDependencyNotAvailable()
							except OptionalDependencyNotAvailable:
														pass
							else:
														from .modeling_tf_vision_text_dual_encoder import TFVisionTextDualEncoderModel


else:
							import sys

							__snake_case    :		str  =_LazyModule(__name__, globals()['__file__'], _import_structure)

