


"""simple docstring"""







def    UpperCAmelCase__       (lowerCAmelCase_   ):




					'''simple docstring'''


					__SCREAMING_SNAKE_CASE						   =				(1 + 24 * n) ** 0.5
					return ((1 + root) / 6) % 1 == 0




def    UpperCAmelCase__       (lowerCAmelCase_ = 5000   ):




					'''simple docstring'''


					__SCREAMING_SNAKE_CASE						   =				[(i * (3 * i - 1)) // 2 for i in range(1  ,						lowerCAmelCase_   )]
					for i, pentagonal_i in enumerate(lowerCAmelCase_   ):
										for j in range(lowerCAmelCase_  ,						len(lowerCAmelCase_   )   ):
															__SCREAMING_SNAKE_CASE						   =				pentagonal_nums[j]
															__SCREAMING_SNAKE_CASE						   =				pentagonal_i + pentagonal_j
															__SCREAMING_SNAKE_CASE						   =				pentagonal_j - pentagonal_i
															if is_pentagonal(lowerCAmelCase_   ) and is_pentagonal(lowerCAmelCase_   ):
																				return b

					return -1


if __name__ == "__main__":
		print(F"{solution() = }")


from unittest import TestCase

from datasets import Dataset
from minhash_deduplication import deduplicate_dataset, make_duplicate_clusters


def       A       (					)   ->  Union[str, Any]:
		'''simple docstring'''

		UpperCamelCase		=     {
		    'repo_name': ['test_repo1', 'test_repo2', 'test_repo3'],
		    'path': ['test_1.py', 'test_2.py', 'unit_test.py'],
		    'content': ['a ' * 20, 'a ' * 30, 'b ' * 7],
		}
		UpperCamelCase		=     Dataset.from_dict(lowercase )
		return dataset


class 				lowercase					(		_SCREAMING_SNAKE_CASE   ):



		def __UpperCamelCase ( self       )  ->					Tuple:
				"""simple docstring"""
				UpperCamelCase		=     get_dataset()
				UpperCamelCase		=     make_duplicate_clusters(A_				,      0.85       )
				self.assertEqual(len(duplicate_clusters[0]       )				,      2       )



		def __UpperCamelCase ( self       )  ->					Any:
				"""simple docstring"""
				UpperCamelCase		=     get_dataset()
				UpperCamelCase	,  UpperCamelCase		=     deduplicate_dataset(A_       )
				self.assertEqual(len(A_       )				,      2       )
				print(A_       )
				self.assertEqual(duplicate_clusters[0][0]['copies']				,      2       )
				self.assertEqual(duplicate_clusters[0][0]['is_extreme']				,      A_       )
