code: 
  '''simple docstring'''
  
  
  
  
  
  A           =   [
      [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   snake_case_       (							_a     :							int ,					_a     :							int ,					_a     :							int ,					_a     :							int			):
        return 0 <= row < rows and 0 <= col < cols
  def   snake_case_       (							_a     :							int ,					_a     :							int ,					_a     :							set ,					_a     :							list[list[int]]			):
        snake_case_						       =							len(_a			)
        snake_case_						       =							len(mat[0]			)
        if is_safe(_a ,					_a ,					_a ,					_a			) and (row, col) not in seen and mat[row][col] == 1:
              seen.add((row, col)			)
              return (
                  1
                  + depth_first_search(row + 1 ,					_a ,					_a ,					_a			)
                  + depth_first_search(row - 1 ,					_a ,					_a ,					_a			)
                  + depth_first_search(_a ,					col + 1 ,					_a ,					_a			)
                  + depth_first_search(_a ,					col - 1 ,					_a ,					_a			)
              )
        else:
              return 0
  def   snake_case_       (							_a     :							list[list[int]]			):
        snake_case_						       =							set()
  
        snake_case_						       =							0
        for row, line in enumerate(_a			):
              for col, item in enumerate(_a			):
                    if item == 1 and (row, col) not in seen:
                          # Maximizing the area
                          snake_case_						       =							max(_a ,					depth_first_search(_a ,					_a ,					_a ,					_a			)			)
        return max_area
  
  
  if __name__ == "__main__":
       import doctest
  
       print(find_max_area(matrix))  # Output -> 6
       doctest.testmod()
  
  
style_context: 
  '''simple docstring'''
  
  
  
  
  
  from typing import TYPE_CHECKING
  
  from ...utils import OptionalDependencyNotAvailable, _LazyModule, is_torch_available, is_vision_available
  
  
  A           =   {
      "configuration_deta": ["DETA_PRETRAINED_CONFIG_ARCHIVE_MAP", "DetaConfig"],
  }
  
  try:
       if not is_vision_available():
            raise OptionalDependencyNotAvailable()
  except OptionalDependencyNotAvailable:
       pass
  else:
       A           =   ["DetaImageProcessor"]
  
  try:
       if not is_torch_available():
            raise OptionalDependencyNotAvailable()
  except OptionalDependencyNotAvailable:
       pass
  else:
       A           =   [
           "DETA_PRETRAINED_MODEL_ARCHIVE_LIST",
           "DetaForObjectDetection",
           "DetaModel",
           "DetaPreTrainedModel",
       ]
  
  
  if TYPE_CHECKING:
       from .configuration_deta import DETA_PRETRAINED_CONFIG_ARCHIVE_MAP, DetaConfig
  
       try:
            if not is_vision_available():
                 raise OptionalDependencyNotAvailable()
       except OptionalDependencyNotAvailable:
            pass
       else:
            from .image_processing_deta import DetaImageProcessor
  
       try:
            if not is_torch_available():
                 raise OptionalDependencyNotAvailable()
       except OptionalDependencyNotAvailable:
            pass
       else:
            from .modeling_deta import (
                DETA_PRETRAINED_MODEL_ARCHIVE_LIST,
                DetaForObjectDetection,
                DetaModel,
                DetaPreTrainedModel,
            )
  
  else:
       import sys
  
       A           =   _LazyModule(__name__, globals()["__file__"], _import_structure, module_spec=__spec__)
  
  