


'''simple docstring'''



from unittest import TestCase

from datasets import Dataset
from minhash_deduplication import deduplicate_dataset, make_duplicate_clusters




def 			_a			(		):





     '''simple docstring'''






     __UpperCAmelCase			:				Optional[Any]													=    {
         '''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			:				List[str]													=    Dataset.from_dict(_lowercase						)
     return dataset



class 			a       (	_a ):


     """simple docstring"""






     def 				lowerCamelCase__				(       self  :	int    )		->							Tuple:
          __UpperCAmelCase			:				int													=    get_dataset()
          __UpperCAmelCase			:				int													=    make_duplicate_clusters(snake_case							,				0.85    )
          self.assertEqual(len(duplicate_clusters[0]    )							,				2    )






     def 				lowerCamelCase__				(       self  :	Optional[int]    )		->							List[str]:
          __UpperCAmelCase			:				Optional[Any]													=    get_dataset()
          __UpperCAmelCase							,     __UpperCAmelCase			:				Optional[int]													=    deduplicate_dataset(snake_case    )
          self.assertEqual(len(snake_case    )							,				2    )
          print(snake_case    )
          self.assertEqual(duplicate_clusters[0][0]['''copies''']							,				2    )
          self.assertEqual(duplicate_clusters[0][0]['''is_extreme''']							,				snake_case    )



'''simple docstring'''



def 			_a			(		_lowercase      :			int = 4000000						):





     '''simple docstring'''






     __UpperCAmelCase			:				Tuple													=    []
     __UpperCAmelCase							,     __UpperCAmelCase			:				int													=    0, 1
     while b <= n:
          if b % 2 == 0:
               even_fibs.append(_lowercase						)
          __UpperCAmelCase							,     __UpperCAmelCase			:				Dict													=    b, a + b
     return sum(_lowercase						)


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