




import unittest
from pathlib import Path
from tempfile import TemporaryDirectory
from unittest.mock import Mock, patch

import diffusers.utils.hub_utils



class     a  (     unittest.TestCase    ):

					'''simple docstring'''





					@patch('''diffusers.utils.hub_utils.get_full_repo_name'''       )
					def 						lowerCamelCase_     (			self     :    List[Any]      ,					__snake_case     :    Mock       ):
									UpperCAmelCase_											=  '''full_repo_name'''
									with TemporaryDirectory() as tmpdir:
													# Dummy args values
													UpperCAmelCase_											=  Mock()
													UpperCAmelCase_											=  tmpdir
													UpperCAmelCase_											=  0
													UpperCAmelCase_											=  '''hub_token'''
													UpperCAmelCase_											=  '''dataset_name'''
													UpperCAmelCase_											=  0.01
													UpperCAmelCase_											=  10_00_00
													UpperCAmelCase_											=  1_00_00
													UpperCAmelCase_											=  0.01
													UpperCAmelCase_											=  0.02
													UpperCAmelCase_											=  0.03
													UpperCAmelCase_											=  0.0_005
													UpperCAmelCase_											=  0.000_001
													UpperCAmelCase_											=  1
													UpperCAmelCase_											=  10
													UpperCAmelCase_											=  0.001
													UpperCAmelCase_											=  0.1
													UpperCAmelCase_											=  0.2
													UpperCAmelCase_											=  True

													# Model card mush be rendered and saved
													diffusers.utils.hub_utils.create_model_card(__snake_case      ,					model_name='''model_name'''       )
													self.assertTrue((Path(__snake_case       ) / '''README.md''').is_file()       )











_lowerCamelCase    				=		[
    [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       SCREAMING_SNAKE_CASE			( __UpperCamelCase    :		int ,  __UpperCamelCase    :		int ,  __UpperCamelCase    :		int ,  __UpperCamelCase    :		int   )						->							bool:
    return 0 <= row < rows and 0 <= col < cols




def       SCREAMING_SNAKE_CASE			( __UpperCamelCase    :		int ,  __UpperCamelCase    :		int ,  __UpperCamelCase    :		set ,  __UpperCamelCase    :		list[list[int]]   )						->							int:
    UpperCAmelCase_											=  len(__UpperCamelCase   )
    UpperCAmelCase_											=  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       SCREAMING_SNAKE_CASE			( __UpperCamelCase    :		list[list[int]]   )						->							int:
    UpperCAmelCase_											=  set()

    UpperCAmelCase_											=  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
                UpperCAmelCase_											=  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()





