
"""simple docstring"""






from unittest import TestCase

from datasets import Dataset
from minhash_deduplication import deduplicate_dataset, make_duplicate_clusters





def __A						(   )->							List[Any]:




		'''simple docstring'''






		SCREAMING_SNAKE_CASE       :     Optional[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],
		}
		SCREAMING_SNAKE_CASE       :     Optional[int]				= Dataset.from_dict(a_     )
		return dataset




class 				lowercase__(				_UpperCAmelCase   ):
	'''simple docstring'''

	def   __lowerCAmelCase (						self    :Tuple					)							->			Union[str, Any]:







			'''simple docstring'''




			SCREAMING_SNAKE_CASE       :     Any				= get_dataset()
			SCREAMING_SNAKE_CASE       :     int				= make_duplicate_clusters(lowerCamelCase_		, 0.8_5					)
			self.assertEqual(len(duplicate_clusters[0]					)		, 2					)







	def   __lowerCAmelCase (						self    :List[str]					)							->			str:







			'''simple docstring'''




			SCREAMING_SNAKE_CASE       :     List[Any]				= get_dataset()
			SCREAMING_SNAKE_CASE,					SCREAMING_SNAKE_CASE       :     Optional[Any]				= 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 __A						(   a_ :							int     )->							list[int]:




		'''simple docstring'''






		if num <= 0:
				raise ValueError('''Input must be a positive integer'''     )

		SCREAMING_SNAKE_CASE       :     Optional[int]				= [True] * (num + 1)

		SCREAMING_SNAKE_CASE       :     Optional[Any]				= 2
		while p * p <= num:
				if primes[p]:
						for i in range(p * p		,		num + 1		,		a_     ):
								SCREAMING_SNAKE_CASE       :     Any				= False
				p += 1

		return [prime for prime in range(2		,		num + 1     ) if primes[prime]]


if __name__ == "__main__":
					import doctest

					doctest.testmod()

					lowerCamelCase__ :       str						     =			int(input("Enter a positive integer: ").strip())
					print(prime_sieve_eratosthenes(user_num))





