





'''simple docstring'''






from timeit import timeit
def 							_lowerCamelCase(  UpperCamelCase__    : int		)		->  int:
    if number < 0:
        raise ValueError('''the value of input must not be negative'''		)
    A       :       List[str]							=						0
    while number:
        number &= number - 1
        result += 1
    return result
def 							_lowerCamelCase(  UpperCamelCase__    : int		)		->  int:
    if number < 0:
        raise ValueError('''the value of input must not be negative'''		)
    A       :       List[Any]							=						0
    while number:
        if number % 2 == 1:
            result += 1
        number >>= 1
    return result
def 							_lowerCamelCase(  )		->  None:

    def do_benchmark(UpperCamelCase__    : int		) -> None:
        A       :       Any							=						'''import __main__ as z'''
        print(F'''Benchmark when {number = }:'''		)
        print(F'''{get_set_bits_count_using_modulo_operator(UpperCamelCase__		) = }'''		)
        A       :       Tuple							=						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__		) = }'''		)
        A       :       List[Any]							=						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 ..utils import DummyObject, requires_backends


class   _lowercase						(							metaclass=a				):
   _UpperCamelCase       		=   ["""onnx"""]


   def __init__( self    ,   *_UpperCAmelCase    ,   **_UpperCAmelCase					):
       requires_backends(self    ,   ['''onnx''']					)


   @classmethod
   def 					snake_case				( cls    ,   *_UpperCAmelCase    ,   **_UpperCAmelCase					):
       requires_backends(cls    ,   ['''onnx''']					)


   @classmethod
   def 					snake_case				( cls    ,   *_UpperCAmelCase    ,   **_UpperCAmelCase					):
       requires_backends(cls    ,   ['''onnx''']					)
