


from unittest import TestCase

from datasets import Dataset
from minhash_deduplication import deduplicate_dataset, make_duplicate_clusters
def     __lowerCamelCase						(			):




      """simple docstring"""





      a						:int										=	{
          '''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],
      }
      a						:int										=	Dataset.from_dict(UpperCAmelCase_						)
      return dataset







class 		_snake_case  (				_snake_case							):




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




 def 	SCREAMING_SNAKE_CASE__    (		self   ):
       a						:List[Any]										=	get_dataset()
       a							,    a						:str										=	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   )









def     __lowerCamelCase						(			UpperCAmelCase_						:		str						):




      """simple docstring"""





      if n_term == "":
            return []
      a						:list										=	[]
      for temp in range(int(UpperCAmelCase_						)						):
            series.append(F'''1/{temp + 1}''' if series else '''1'''						)
      return series


if __name__ == "__main__":
     snake_case    :   Tuple	    =					input('''Enter the last number (nth term) of the Harmonic Series''')
     print('''Formula of Harmonic Series => 1+1/2+1/3 ..... 1/n''')
     print(harmonic_series(nth_term))





