

'''simple docstring'''

from typing import TYPE_CHECKING

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


SCREAMING_SNAKE_CASE							:				List[Any]     	=			{
    "configuration_encodec": [
        "ENCODEC_PRETRAINED_CONFIG_ARCHIVE_MAP",
        "EncodecConfig",
    ],
    "feature_extraction_encodec": ["EncodecFeatureExtractor"],
}

try:
							if not is_torch_available():
														raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
							pass
else:
							SCREAMING_SNAKE_CASE							:				Tuple     	=			[
							    "ENCODEC_PRETRAINED_MODEL_ARCHIVE_LIST",
							    "EncodecModel",
							    "EncodecPreTrainedModel",
							]

if TYPE_CHECKING:
							from .configuration_encodec import (
							    ENCODEC_PRETRAINED_CONFIG_ARCHIVE_MAP,
							    EncodecConfig,
							)
							from .feature_extraction_encodec import EncodecFeatureExtractor

							try:
														if not is_torch_available():
																					raise OptionalDependencyNotAvailable()
							except OptionalDependencyNotAvailable:
														pass
							else:
														from .modeling_encodec import (
														    ENCODEC_PRETRAINED_MODEL_ARCHIVE_LIST,
														    EncodecModel,
														    EncodecPreTrainedModel,
														)

else:
							import sys

							SCREAMING_SNAKE_CASE							:				Any     	=			_LazyModule(__name__, globals()["__file__"], _import_structure, module_spec=__spec__)








'''simple docstring'''

def 							_UpperCamelCase				(   lowerCAmelCase__:					int		,lowerCAmelCase__:					int   )      -> str:
							if a < 0 or b < 0:
														raise ValueError('the value of both inputs must be positive'   )
							SCREAMING_SNAKE_CASE_				=				str(bin(lowerCAmelCase__   )   )[2:]  # remove the leading "0b"
							SCREAMING_SNAKE_CASE_				=				str(bin(lowerCAmelCase__   )   )[2:]
							SCREAMING_SNAKE_CASE_				=				max(len(lowerCAmelCase__   )		,len(lowerCAmelCase__   )   )
							return "0b" + "".join(
							    str(int('1' in (char_a, char_b)   )   )
							    for char_a, char_b in zip(a_binary.zfill(lowerCAmelCase__   )		,b_binary.zfill(lowerCAmelCase__   )   )   )


if __name__ == "__main__":
							import doctest

							doctest.testmod()





