




import importlib
import os
from dataclasses import dataclass
from enum import Enum
from typing import Any, Dict, Optional, Union

import torch

from ..utils import BaseOutput


__a							     =					'scheduler_config.json'

class     __a(	_a  ):






    """simple docstring"""





    lowerCAmelCase         = 1
    lowerCAmelCase         = 2
    lowerCAmelCase         = 3
    lowerCAmelCase         = 4
    lowerCAmelCase         = 5
    lowerCAmelCase         = 6
    lowerCAmelCase         = 7
    lowerCAmelCase         = 8
    lowerCAmelCase         = 9
    lowerCAmelCase         = 10
    lowerCAmelCase         = 11
    lowerCAmelCase         = 12
    lowerCAmelCase         = 13
    lowerCAmelCase         = 14


@dataclass
class     __a(	_a  ):






    """simple docstring"""





    lowerCAmelCase         = 42


class     __a:






    """simple docstring"""





    lowerCAmelCase         = SCHEDULER_CONFIG_NAME
    lowerCAmelCase         = []
    lowerCAmelCase         = True





    @classmethod
    def 				a__ ( cls  ,_SCREAMING_SNAKE_CASE = None  ,_SCREAMING_SNAKE_CASE = None  ,_SCREAMING_SNAKE_CASE=False  ,**_SCREAMING_SNAKE_CASE  ,)					->						List[str]:
         UpperCAmelCase_,       UpperCAmelCase_,       UpperCAmelCase_     :				str  =     cls.load_config(
             pretrained_model_name_or_path=_SCREAMING_SNAKE_CASE  ,subfolder=_SCREAMING_SNAKE_CASE  ,return_unused_kwargs=_SCREAMING_SNAKE_CASE  ,return_commit_hash=_SCREAMING_SNAKE_CASE  ,**_SCREAMING_SNAKE_CASE  ,)
         return cls.from_config(_SCREAMING_SNAKE_CASE  ,return_unused_kwargs=_SCREAMING_SNAKE_CASE  ,**_SCREAMING_SNAKE_CASE    )





    def 				a__ ( self  ,_SCREAMING_SNAKE_CASE  ,_SCREAMING_SNAKE_CASE = False  ,**_SCREAMING_SNAKE_CASE    )					->						Dict:
         self.save_config(save_directory=_SCREAMING_SNAKE_CASE  ,push_to_hub=_SCREAMING_SNAKE_CASE  ,**_SCREAMING_SNAKE_CASE    )





    @property
    def 				a__ ( self    )					->						Tuple:
         return self._get_compatibles()





    @classmethod
    def 				a__ ( cls    )					->						Optional[Any]:
         UpperCAmelCase_     :				int  =     list(set([cls.__name__] + cls._compatibles    )    )
         UpperCAmelCase_     :				int  =     importlib.import_module(__name__.split('''.'''    )[0]    )
         UpperCAmelCase_     :				Any  =     [
             getattr(_SCREAMING_SNAKE_CASE  ,_SCREAMING_SNAKE_CASE    ) for c in compatible_classes_str if hasattr(_SCREAMING_SNAKE_CASE  ,_SCREAMING_SNAKE_CASE    )
         ]
         return compatible_classes



"""simple docstring"""



import string







def     __lowerCAmelCase		(		lowercase    :    str					)      ->		None:


    """simple docstring"""





    for key in range(len(string.ascii_uppercase					)					):
        snake_case       : Dict    =       ""
        for symbol in message:
            if symbol in string.ascii_uppercase:
                snake_case       : Dict    =       string.ascii_uppercase.find(lowercase					)
                snake_case       : Optional[int]    =       num - key
                if num < 0:
                    snake_case       : Optional[int]    =       num + len(string.ascii_uppercase					)
                snake_case       : Dict    =       translated + string.ascii_uppercase[num]
            else:
                snake_case       : Any    =       translated + symbol
        print(F'Decryption using Key #{key}: {translated}'					)







def     __lowerCAmelCase		(		)      ->		None:


    """simple docstring"""





    snake_case       : Dict    =       input("Encrypted message: "					)
    snake_case       : Any    =       message.upper()
    decrypt(lowercase					)


if __name__ == "__main__":
  import doctest

  doctest.testmod()
  main()





