





'''simple docstring'''




def 	__lowerCamelCase			(      __lowerCAmelCase       :							int		)		->  List[Any]:

   if not isinstance(a_      ,    a_		):
      raise ValueError("""multiplicative_persistence() only accepts integral values"""		)
   if num < 0:
      raise ValueError("""multiplicative_persistence() does not accept negative values"""		)

   snake_case 						=   0
   snake_case 						=   str(a_		)

   while len(a_		) != 1:
      snake_case 						=   [int(a_		) for i in num_string]

      snake_case 						=   1
      for i in range(0      ,    len(a_		)		):
         total *= numbers[i]

      snake_case 						=   str(a_		)

      steps += 1
   return steps





def 	__lowerCamelCase			(      __lowerCAmelCase       :							int		)		->  int:

   if not isinstance(a_      ,    a_		):
      raise ValueError("""additive_persistence() only accepts integral values"""		)
   if num < 0:
      raise ValueError("""additive_persistence() does not accept negative values"""		)

   snake_case 						=   0
   snake_case 						=   str(a_		)

   while len(a_		) != 1:
      snake_case 						=   [int(a_		) for i in num_string]

      snake_case 						=   0
      for i in range(0      ,    len(a_		)		):
         total += numbers[i]

      snake_case 						=   str(a_		)

      steps += 1
   return steps


if __name__ == "__main__":
 import doctest

 doctest.testmod()







'''simple docstring'''


from typing import TYPE_CHECKING

from ...utils import OptionalDependencyNotAvailable, _LazyModule, is_torch_available


UpperCAmelCase_					=   {
    "configuration_clap": [
        "CLAP_PRETRAINED_MODEL_ARCHIVE_LIST",
        "ClapAudioConfig",
        "ClapConfig",
        "ClapTextConfig",
    ],
    "processing_clap": ["ClapProcessor"],
}

try:
  if not is_torch_available():
    raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
  pass
else:
  UpperCAmelCase_					=   [
      "CLAP_PRETRAINED_MODEL_ARCHIVE_LIST",
      "ClapModel",
      "ClapPreTrainedModel",
      "ClapTextModel",
      "ClapTextModelWithProjection",
      "ClapAudioModel",
      "ClapAudioModelWithProjection",
  ]
  UpperCAmelCase_					=   ["ClapFeatureExtractor"]

if TYPE_CHECKING:
  from .configuration_clap import (
      CLAP_PRETRAINED_MODEL_ARCHIVE_LIST,
      ClapAudioConfig,
      ClapConfig,
      ClapTextConfig,
  )
  from .processing_clap import ClapProcessor

  try:
    if not is_torch_available():
      raise OptionalDependencyNotAvailable()
  except OptionalDependencyNotAvailable:
    pass
  else:
    from .feature_extraction_clap import ClapFeatureExtractor
    from .modeling_clap import (
        CLAP_PRETRAINED_MODEL_ARCHIVE_LIST,
        ClapAudioModel,
        ClapAudioModelWithProjection,
        ClapModel,
        ClapPreTrainedModel,
        ClapTextModel,
        ClapTextModelWithProjection,
    )


else:
  import sys

  UpperCAmelCase_					=   _LazyModule(__name__, globals()["__file__"], _import_structure, module_spec=__spec__)



