


'''simple docstring'''



from unittest import TestCase

from datasets import Dataset
from minhash_deduplication import deduplicate_dataset, make_duplicate_clusters







def     _UpperCamelCase      (		):
			UpperCAmelCase__  :					Dict        =     {
			    """repo_name""": ["""test_repo1""", """test_repo2""", """test_repo3"""],
			    """path""": ["""test_1.py""", """test_2.py""", """unit_test.py"""],
			    """content""": ["""a """ * 2_0, """a """ * 3_0, """b """ * 7],
			}
			UpperCAmelCase__  :					Optional[int]        =     Dataset.from_dict(UpperCamelCase__					)
			return dataset


class 		_snake_case					(     a__	):




					def 				snake_case__						(      self):
								UpperCAmelCase__  :					Tuple        =     get_dataset()
								UpperCAmelCase__  :					List[Any]        =     make_duplicate_clusters(_lowerCamelCase							,							0.85)
								self.assertEqual(len(duplicate_clusters[0])							,							2)




					def 				snake_case__						(      self):
								UpperCAmelCase__  :					Optional[int]        =     get_dataset()
								UpperCAmelCase__   ,       UpperCAmelCase__  :					int        =     deduplicate_dataset(_lowerCamelCase)
								self.assertEqual(len(_lowerCamelCase)							,							2)
								print(_lowerCamelCase)
								self.assertEqual(duplicate_clusters[0][0]["""copies"""]							,							2)
								self.assertEqual(duplicate_clusters[0][0]["""is_extreme"""]							,							_lowerCamelCase)



'''simple docstring'''



def     _UpperCamelCase      (		UpperCamelCase__ ,      UpperCamelCase__ ,      UpperCamelCase__ ,      UpperCamelCase__					):
			if height >= 1:
						move_tower(height - 1 ,      UpperCamelCase__ ,      UpperCamelCase__ ,      UpperCamelCase__					)
						move_disk(UpperCamelCase__ ,      UpperCamelCase__					)
						move_tower(height - 1 ,      UpperCamelCase__ ,      UpperCamelCase__ ,      UpperCamelCase__					)







def     _UpperCamelCase      (		UpperCamelCase__ ,      UpperCamelCase__					):
			print("""moving disk from""" ,      UpperCamelCase__ ,      """to""" ,      UpperCamelCase__					)







def     _UpperCamelCase      (		):
			UpperCAmelCase__  :					List[str]        =     int(input("""Height of hanoi: """					).strip()					)
			move_tower(UpperCamelCase__ ,      """A""" ,      """B""" ,      """C"""					)


if __name__ == "__main__":
		main()