

from typing import TYPE_CHECKING

from ...utils import OptionalDependencyNotAvailable, _LazyModule, is_torch_available


a_      =     {
    '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:
			a_      =     [
			    'CLAP_PRETRAINED_MODEL_ARCHIVE_LIST',
			    'ClapModel',
			    'ClapPreTrainedModel',
			    'ClapTextModel',
			    'ClapTextModelWithProjection',
			    'ClapAudioModel',
			    'ClapAudioModelWithProjection',
			]
			a_      =     ['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

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




a_    :  Dict						  =		8.314462  # Unit - J mol-1 K-1

def      __lowercase(						UpperCAmelCase__ , UpperCAmelCase__ , UpperCAmelCase__			):


      """simple docstring"""



      if moles < 0 or kelvin < 0 or volume < 0:
            raise ValueError("Invalid inputs. Enter positive value."			)
      return moles * kelvin * UNIVERSAL_GAS_CONSTANT / volume

def      __lowercase(						UpperCAmelCase__ , UpperCAmelCase__ , UpperCAmelCase__			):


      """simple docstring"""



      if moles < 0 or kelvin < 0 or pressure < 0:
            raise ValueError("Invalid inputs. Enter positive value."			)
      return moles * kelvin * UNIVERSAL_GAS_CONSTANT / pressure


if __name__ == "__main__":
     from doctest import testmod

     testmod()