
"""simple docstring"""







import platform
from argparse import ArgumentParser

import huggingface_hub
import pandas
import pyarrow

from datasets import __version__ as version
from datasets.commands import BaseDatasetsCLICommand
def       __UpperCAmelCase		(		a_      :		Optional[Any]					)  ->							Dict:
   return EnvironmentCommand()






class      __a      (       _UpperCAmelCase      ):







       @staticmethod
       def  _snake_case      (       lowerCamelCase_		):



          '''simple docstring'''

          _UpperCAmelCase 						=       parser.add_parser("env"				,help="Print relevant system environment info."		)
          download_parser.set_defaults(func=a_		)







       def  _snake_case      (       self		):



          '''simple docstring'''

          _UpperCAmelCase 						=       {
              "`datasets` version": version,
              "Platform": platform.platform(),
              "Python version": platform.python_version(),
              "Huggingface_hub version": huggingface_hub.__version__,
              "PyArrow version": pyarrow.__version__,
              "Pandas version": pandas.__version__,
          }

          print("\nCopy-and-paste the text below in your GitHub issue.\n"		)
          print(self.format_dict(a_		)		)

          return info







       @staticmethod
       def  _snake_case      (       lowerCamelCase_		):



          '''simple docstring'''

          return "\n".join([f'''- {prop}: {val}''' for prop, val in d.items()]		) + "\n"









"""simple docstring"""




UpperCamelCase											=     [
    [0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0],
    [0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0],
    [0, 1, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0],
    [0, 1, 0, 0, 1, 1, 0, 0, 1, 0, 1, 0, 0],
    [0, 1, 0, 0, 1, 1, 0, 0, 1, 1, 1, 0, 0],
    [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0],
    [0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0],
    [0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0],
]






def 							lowerCAmelCase			(   UpperCamelCase_:				int  ,			UpperCamelCase_:				int  ,			UpperCamelCase_:				int  ,			UpperCamelCase_:				int       )							->				bool:







  '''simple docstring'''







  return 0 <= row < rows and 0 <= col < cols






def 							lowerCAmelCase			(   UpperCamelCase_:				int  ,			UpperCamelCase_:				int  ,			UpperCamelCase_:				set  ,			UpperCamelCase_:				list[list[int]]       )							->				int:







  '''simple docstring'''







  _a					      =						len(UpperCamelCase_       )
  _a					      =						len(mat[0]       )
  if is_safe(UpperCamelCase_  ,			UpperCamelCase_  ,			UpperCamelCase_  ,			UpperCamelCase_       ) and (row, col) not in seen and mat[row][col] == 1:
    seen.add((row, col)       )
    return (
        1
        + depth_first_search(row + 1  ,			UpperCamelCase_  ,			UpperCamelCase_  ,			UpperCamelCase_       )
        + depth_first_search(row - 1  ,			UpperCamelCase_  ,			UpperCamelCase_  ,			UpperCamelCase_       )
        + depth_first_search(UpperCamelCase_  ,			col + 1  ,			UpperCamelCase_  ,			UpperCamelCase_       )
        + depth_first_search(UpperCamelCase_  ,			col - 1  ,			UpperCamelCase_  ,			UpperCamelCase_       )
    )
  else:
    return 0






def 							lowerCAmelCase			(   UpperCamelCase_:				list[list[int]]       )							->				int:







  '''simple docstring'''







  _a					      =						set()

  _a					      =						0
  for row, line in enumerate(UpperCamelCase_       ):
    for col, item in enumerate(UpperCamelCase_       ):
      if item == 1 and (row, col) not in seen:
        # Maximizing the area
        _a					      =						max(UpperCamelCase_  ,			depth_first_search(UpperCamelCase_  ,			UpperCamelCase_  ,			UpperCamelCase_  ,			UpperCamelCase_       )       )
  return max_area


if __name__ == "__main__":
     import doctest

     print(find_max_area(matrix))  # Output -> 6
     doctest.testmod()


