




'''simple docstring'''







from unittest import TestCase

from datasets import Dataset
from minhash_deduplication import deduplicate_dataset, make_duplicate_clusters





def 						snake_case_							():
    UpperCAmelCase			       =		{
        '''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			       =		Dataset.from_dict(_a     )
    return dataset







class 			_a  (	__a ):
       def     A      (	self						:	List[str]				):



           '''simple docstring'''

           UpperCAmelCase			       =		get_dataset()
           UpperCAmelCase			       =		make_duplicate_clusters(lowercase   ,				0.85				)
           self.assertEqual(len(duplicate_clusters[0]				)   ,				2				)







       def     A      (	self						:	Dict				):



           '''simple docstring'''

           UpperCAmelCase			       =		get_dataset()
           UpperCAmelCase       ,     UpperCAmelCase			       =		deduplicate_dataset(lowercase				)
           self.assertEqual(len(lowercase				)   ,				2				)
           print(lowercase				)
           self.assertEqual(duplicate_clusters[0][0]['''copies''']   ,				2				)
           self.assertEqual(duplicate_clusters[0][0]['''is_extreme''']   ,				lowercase				)





"""simple docstring"""






from __future__ import annotations

from fractions import Fraction



def SCREAMING_SNAKE_CASE__			(   __UpperCAmelCase       ,    __UpperCAmelCase )  ->  bool:
   return (
       num != den and num % 1_0 == den // 1_0 and (num // 1_0) / (den % 1_0) == num / den
   )



def SCREAMING_SNAKE_CASE__			(   __UpperCAmelCase )  ->  list[str]:
   lowercase__:   str					=      []
   lowercase__:   str					=      1_1
   lowercase__:   str					=      int('''1''' + '''0''' * digit_len )
   for num in range(__UpperCAmelCase       ,    __UpperCAmelCase ):
      while den <= 9_9:
         if (num != den) and (num % 1_0 == den // 1_0) and (den % 1_0 != 0):
            if is_digit_cancelling(__UpperCAmelCase       ,    __UpperCAmelCase ):
               solutions.append(F"""{num}/{den}""" )
         den += 1
      num += 1
      lowercase__:   Dict					=      1_0
   return solutions



def SCREAMING_SNAKE_CASE__			(   __UpperCAmelCase = 2 )  ->  int:
   lowercase__:   List[str]					=      1.0
   for fraction in fraction_list(__UpperCAmelCase ):
      lowercase__:   List[str]					=      Fraction(__UpperCAmelCase )
      result *= frac.denominator / frac.numerator
   return int(__UpperCAmelCase )


if __name__ == "__main__":
       print(solution())
