



"""simple docstring"""




import os

from apache_beam.io.filesystems import FileSystems
from apache_beam.pipeline import Pipeline

from .logging import get_logger


_UpperCamelCase:					int     				=	2 << 2_0  # 2mb
_UpperCamelCase:					int     				=	get_logger(__name__)


class 	a__		(    SCREAMING_SNAKE_CASE__  ):


   def 							lowercase					(				self   :				int      )     ->							Tuple:
         lowercase	:   List[Any]											= self._options.get_all_options().get('runner'      )
         return runner in [None, "DirectRunner", "PortableRunner"]




def 	lowercase__  (      _UpperCAmelCase						,   _UpperCAmelCase						,   _UpperCAmelCase=False					)  ->      Dict:






      '''simple docstring'''


      lowercase	:   List[str]											= FileSystems
      if fs.exists(_UpperCAmelCase					):
            if force_upload:
                  logger.info(f'''Remote path already exist: {remote_file_path}. Overwriting it as force_upload=True.'''					)
            else:
                  logger.info(f'''Remote path already exist: {remote_file_path}. Skipping it as force_upload=False.'''					)
                  return
      with fs.create(_UpperCAmelCase					) as remote_file:
            with open(_UpperCAmelCase						,   'rb'					) as local_file:
                  lowercase	:   Any											= local_file.read(_UpperCAmelCase					)
                  while chunk:
                        remote_file.write(_UpperCAmelCase					)
                        lowercase	:   Union[str, Any]											= local_file.read(_UpperCAmelCase					)





def 	lowercase__  (      _UpperCAmelCase						,   _UpperCAmelCase						,   _UpperCAmelCase=False					)  ->      Tuple:






      '''simple docstring'''


      lowercase	:   List[Any]											= FileSystems
      if os.path.exists(_UpperCAmelCase					):
            if force_download:
                  logger.info(f'''Local path already exist: {remote_file_path}. Overwriting it as force_upload=True.'''					)
            else:
                  logger.info(f'''Local path already exist: {remote_file_path}. Skipping it as force_upload=False.'''					)
                  return
      with fs.open(_UpperCAmelCase					) as remote_file:
            with open(_UpperCAmelCase						,   'wb'					) as local_file:
                  lowercase	:   Optional[int]											= remote_file.read(_UpperCAmelCase					)
                  while chunk:
                        local_file.write(_UpperCAmelCase					)
                        lowercase	:   List[str]											= remote_file.read(_UpperCAmelCase					)





"""simple docstring"""




def 	lowercase__  (      )  ->      Any:






      '''simple docstring'''


      lowercase	:   Dict											= 1

      while True:
            if (
                sorted(str(_UpperCAmelCase					)					)
                == sorted(str(2 * i					)					)
                == sorted(str(3 * i					)					)
                == sorted(str(4 * i					)					)
                == sorted(str(5 * i					)					)
                == sorted(str(6 * i					)					)
            ):
                  return i

            i += 1


if __name__ == "__main__":
     print(solution())
