"""simple docstring"""






lowerCAmelCase__    :    List[Any]			=      [
    [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     a_		(   lowerCamelCase   ,     lowerCamelCase   ,     lowerCamelCase   ,     lowerCamelCase			):
				return 0 <= row < rows and 0 <= col < cols



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



def     a_		(   lowerCamelCase			):
				UpperCAmelCase__			 =				set()

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


if __name__ == "__main__":
						import doctest

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




"""simple docstring"""






import requests

try:
						from django.contrib.auth import authenticate, login
						from django.shortcuts import redirect, render
except ImportError:
						lowerCAmelCase__    :    Union[str, Any]			=      print



def     a_		(   lowerCamelCase			):
				# Enter your recaptcha secret key here
				UpperCAmelCase__			 =				'secretKey'
				UpperCAmelCase__			 =				'https://www.google.com/recaptcha/api/siteverify'

				# when method is not POST, direct user to login page
				if request.method != "POST":
								return render(lowerCamelCase   ,     'login.html'			)

				# from the frontend, get username, password, and client_key
				UpperCAmelCase__			 =				request.POST.get('username'			)
				UpperCAmelCase__			 =				request.POST.get('password'			)
				UpperCAmelCase__			 =				request.POST.get('g-recaptcha-response'			)

				# post recaptcha response to Google's recaptcha api
				UpperCAmelCase__			 =				requests.post(lowerCamelCase   ,     data={'secret': secret_key, 'response': client_key}			)
				# if the recaptcha api verified our keys
				if response.json().get('success'   ,     lowerCamelCase			):
								# authenticate the user
								UpperCAmelCase__			 =				authenticate(lowerCamelCase   ,     username=lowerCamelCase   ,     password=lowerCamelCase			)
								if user_in_database:
												login(lowerCamelCase   ,     lowerCamelCase			)
												return redirect('/your-webpage'			)
				return render(lowerCamelCase   ,     'login.html'			)



