

def       __lowerCamelCase			(				UpperCamelCase__   ):







       '''simple docstring'''






       snake_case_           =					abs(UpperCamelCase__   )
       snake_case_           =					0
       while n > 0:
              res += n % 10
              n //= 10
       return res





def       __lowerCamelCase			(				UpperCamelCase__   ):







       '''simple docstring'''






       snake_case_           =					abs(UpperCamelCase__   )
       return n if n < 10 else n % 10 + sum_of_digits(n // 10   )





def       __lowerCamelCase			(				UpperCamelCase__   ):







       '''simple docstring'''






       return sum(int(UpperCamelCase__   ) for c in str(abs(UpperCamelCase__   )   )   )





def       __lowerCamelCase			(				):







       '''simple docstring'''






       from collections.abc import Callable
       from timeit import timeit

       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:56} = {func(UpperCamelCase__   )} -- {timing:.4f} seconds'''   )

       for value in (262144, 1125899906842624, 1267650600228229401496703205376):
              for func in (sum_of_digits, sum_of_digits_recursion, sum_of_digits_compact):
                     benchmark_a_function(UpperCamelCase__     ,							UpperCamelCase__   )
              print()


if __name__ == "__main__":
     import doctest

     doctest.testmod()
     benchmark()







# NOTE: This file is deprecated and will be removed in a future version.
# It only exists so that temporarely `from diffusers.pipelines import DiffusionPipeline` works
from ...utils import deprecate
from ..controlnet.multicontrolnet import MultiControlNetModel  # noqa: F401
from ..controlnet.pipeline_controlnet import StableDiffusionControlNetPipeline  # noqa: F401


deprecate(
    """stable diffusion controlnet""",
    """0.22.0""",
    """Importing `StableDiffusionControlNetPipeline` or `MultiControlNetModel` from diffusers.pipelines.stable_diffusion.pipeline_stable_diffusion_controlnet is deprecated. Please import `from diffusers import StableDiffusionControlNetPipeline` instead.""",
    standard_warn=False,
    stacklevel=3,
)




