





'''simple docstring'''






import string
from math import logaa






def      __A						(							a_						:  str      ,a_						:  str	):
		lowerCAmelCase     :    List[str]						=   document.translate(
		    str.maketrans(""      ,""      ,string.punctuation	)	).replace("\n"      ,""	)
		lowerCAmelCase     :    Union[str, Any]						=   document_without_punctuation.split(" "	)  # word tokenization
		return len([word for word in tokenize_document if word.lower() == term.lower()]	)






def      __A						(							a_						:  str      ,a_						:  str	):
		lowerCAmelCase     :    List[str]						=   corpus.lower().translate(
		    str.maketrans(""      ,""      ,string.punctuation	)	)  # strip all punctuation and replace it with ''
		lowerCAmelCase     :    Dict						=   corpus_without_punctuation.split("\n"	)
		lowerCAmelCase     :    Optional[Any]						=   term.lower()
		return (len([doc for doc in docs if term in doc]	), len(a_	))






def      __A						(							a_						:  int      ,a_						:  int      ,a_						:  List[Any]=False	):
		if smoothing:
				if n == 0:
						raise ValueError("log10(0) is undefined."	)
				return round(1 + logaa(n / (1 + df)	)      ,3	)

		if df == 0:
				raise ZeroDivisionError("df must be > 0"	)
		elif n == 0:
				raise ValueError("log10(0) is undefined."	)
		return round(logaa(n / df	)      ,3	)






def      __A						(							a_						:  int      ,a_						:  int	):
		return round(tf * idf      ,3	)










'''simple docstring'''






def      __A						(							a_						:  int      ,a_						:  int	):
		return abs(a_	) if a == 0 else greatest_common_divisor(b % a      ,a_	)






def      __A						(							a_						:  int      ,a_						:  int	):
		while y:  # --> when y=0 then loop will terminate and return x as final GCD.
				lowerCAmelCase	,		lowerCAmelCase     :    Tuple						=   y, x % y
		return abs(a_	)






def      __A						(							):
		try:
				lowerCAmelCase     :    Tuple						=   input("Enter two integers separated by comma (,): "	).split(","	)
				lowerCAmelCase     :    Tuple						=   int(nums[0]	)
				lowerCAmelCase     :    Tuple						=   int(nums[1]	)
				print(
				    f'''greatest_common_divisor({num_a}, {num_a}) = '''
				    f'''{greatest_common_divisor(a_      ,a_	)}'''	)
				print(f'''By iterative gcd({num_a}, {num_a}) = {gcd_by_iterative(a_      ,a_	)}'''	)
		except (IndexError, UnboundLocalError, ValueError):
				print("Wrong input"	)


if __name__ == "__main__":
					main()



