





'''simple docstring'''
import string
def 				lowercase__   (   __lowercase						:  str     ) ->      str:



       """simple docstring"""






       __UpperCamelCase       =  ''
       for i in sequence:
              __UpperCamelCase       =  ord(__lowercase     )
              if 65 <= extract <= 90:
                     output += chr(155 - extract     )
              elif 97 <= extract <= 122:
                     output += chr(219 - extract     )
              else:
                     output += i
       return output
def 				lowercase__   (   __lowercase						:  str     ) ->      str:



       """simple docstring"""






       __UpperCamelCase       =  string.ascii_letters
       __UpperCamelCase       =  string.ascii_lowercase[::-1] + string.ascii_uppercase[::-1]
       return "".join(
           letters_reversed[letters.index(__lowercase     )] if c in letters else c for c in sequence     )
def 				lowercase__   (   ) ->      None:



       """simple docstring"""






       from timeit import timeit

       print('Running performance benchmarks...'     )
       __UpperCamelCase       =  'from string import printable ; from __main__ import atbash, atbash_slow'
       print(F'''> atbash_slow(): {timeit('atbash_slow(printable)'				,  setup=__lowercase     )} seconds'''     )
       print(F'''>      atbash(): {timeit('atbash(printable)'				,  setup=__lowercase     )} seconds'''     )


if __name__ == "__main__":
    for example in ("ABCDEFGH", "123GGjj", "testStringtest", "with space"):
        print(f'{example} encrypted in atbash: {atbash(example)}')
    benchmark()




"""simple docstring"""


from typing import TYPE_CHECKING

from ...utils import OptionalDependencyNotAvailable, _LazyModule, is_tokenizers_available, is_torch_available


A     :   Optional[int]			    =			{
    "configuration_altclip": [
        "ALTCLIP_PRETRAINED_CONFIG_ARCHIVE_MAP",
        "AltCLIPConfig",
        "AltCLIPTextConfig",
        "AltCLIPVisionConfig",
    ],
    "processing_altclip": ["AltCLIPProcessor"],
}

try:
	if not is_torch_available():
		raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
	pass
else:
	A     :   Tuple			    =			[
	    "ALTCLIP_PRETRAINED_MODEL_ARCHIVE_LIST",
	    "AltCLIPPreTrainedModel",
	    "AltCLIPModel",
	    "AltCLIPTextModel",
	    "AltCLIPVisionModel",
	]


if TYPE_CHECKING:
	from .configuration_altclip import (
	    ALTCLIP_PRETRAINED_CONFIG_ARCHIVE_MAP,
	    AltCLIPConfig,
	    AltCLIPTextConfig,
	    AltCLIPVisionConfig,
	)
	from .processing_altclip import AltCLIPProcessor

	try:
		if not is_torch_available():
			raise OptionalDependencyNotAvailable()
	except OptionalDependencyNotAvailable:
		pass
	else:
		from .modeling_altclip import (
		    ALTCLIP_PRETRAINED_MODEL_ARCHIVE_LIST,
		    AltCLIPModel,
		    AltCLIPPreTrainedModel,
		    AltCLIPTextModel,
		    AltCLIPVisionModel,
		)


else:
	import sys

	A     :   int			    =			_LazyModule(__name__, globals()["__file__"], _import_structure, module_spec=__spec__)




