





import os
import sys
import time

from . import transposition_cipher as trans_cipher




def _a					(  )       ->				None:

							'''simple docstring'''






							SCREAMING_SNAKE_CASE__   :			Union[str, Any]      =						"Prehistoric Men.txt"
							SCREAMING_SNAKE_CASE__   :			Optional[Any]      =						"Output.txt"
							SCREAMING_SNAKE_CASE__   :			str      =						int(input("Enter key: "   )   )
							SCREAMING_SNAKE_CASE__   :			List[str]      =						input("Encrypt/Decrypt [e/d]: "   )

							if not os.path.exists(_UpperCAmelCase   ):
														print(f'''File {input_file} does not exist. Quitting...'''   )
														sys.exit()
							if os.path.exists(_UpperCAmelCase   ):
														print(f'''Overwrite {output_file}? [y/n]'''   )
														SCREAMING_SNAKE_CASE__   :			Optional[Any]      =						input("> "   )
														if not response.lower().startswith("y"   ):
																					sys.exit()

							SCREAMING_SNAKE_CASE__   :			str      =						time.time()
							if mode.lower().startswith("e"   ):
														with open(_UpperCAmelCase   ) as f:
																					SCREAMING_SNAKE_CASE__   :			List[Any]      =						f.read()
														SCREAMING_SNAKE_CASE__   :			Union[str, Any]      =						trans_cipher.encrypt_message(_UpperCAmelCase ,      _UpperCAmelCase   )
							elif mode.lower().startswith("d"   ):
														with open(_UpperCAmelCase   ) as f:
																					SCREAMING_SNAKE_CASE__   :			Tuple      =						f.read()
														SCREAMING_SNAKE_CASE__   :			str      =						trans_cipher.decrypt_message(_UpperCAmelCase ,      _UpperCAmelCase   )

							with open(_UpperCAmelCase ,      "w"   ) as output_obj:
														output_obj.write(_UpperCAmelCase   )

							SCREAMING_SNAKE_CASE__   :			Optional[Any]      =						round(time.time() - start_time ,      2   )
							print(("Done (", total_time, "seconds )")   )


if __name__ == "__main__":
		main()













"""simple docstring"""


import warnings

from ...utils import logging
from .image_processing_vilt import ViltImageProcessor


a__    :   str    						= logging.get_logger(__name__)



class    lowercase_ (   __lowerCAmelCase							):

       def __init__(	self      ,    *__SCREAMING_SNAKE_CASE      ,    **__SCREAMING_SNAKE_CASE   ):






        '''simple docstring'''

        warnings.warn(
            "The class ViltFeatureExtractor is deprecated and will be removed in version 5 of Transformers. Please"
            " use ViltImageProcessor instead."      ,    __SCREAMING_SNAKE_CASE      ,    )
        super().__init__(*__SCREAMING_SNAKE_CASE      ,    **__SCREAMING_SNAKE_CASE   )

