
"""simple docstring"""




import os
import sys
import time

from . import transposition_cipher as trans_cipher


def   __magic_name__     (				)			->    None:
							lowercase   :    Union[str, Any]			=							"Prehistoric Men.txt"
							lowercase   :    str			=							"Output.txt"
							lowercase   :    Tuple			=							int(input("Enter key: "  )  )
							lowercase   :    Tuple			=							input("Encrypt/Decrypt [e/d]: "  )

							if not os.path.exists(__snake_case  ):
														print(f"""File {input_file} does not exist. Quitting..."""  )
														sys.exit()
							if os.path.exists(__snake_case  ):
														print(f"""Overwrite {output_file}? [y/n]"""  )
														lowercase   :    List[str]			=							input("> "  )
														if not response.lower().startswith("y"  ):
																					sys.exit()

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

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

							lowercase   :    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_convnext import ConvNextImageProcessor


_A      :	List[str]       		=	logging.get_logger(__name__)

class 		a__						(				a_						):
   def __init__(      self     ,   *_a     ,   **_a    ):
          warnings.warn(
              "The class ConvNextFeatureExtractor is deprecated and will be removed in version 5 of Transformers."
              " Please use ConvNextImageProcessor instead."     ,   _a     ,   )
          super().__init__(*_a     ,   **_a    )


