

from collections import defaultdict



def 			_A	(      SCREAMING_SNAKE_CASE	,SCREAMING_SNAKE_CASE      ):
	UpperCAmelCase__:	Any									= first_str.lower().strip()
	UpperCAmelCase__:	Tuple									= second_str.lower().strip()

	# Remove whitespace
	UpperCAmelCase__:	List[Any]									= first_str.replace(" "	,""      )
	UpperCAmelCase__:	Union[str, Any]									= second_str.replace(" "	,""      )

	# Strings of different lengths are not anagrams
	if len(SCREAMING_SNAKE_CASE      ) != len(SCREAMING_SNAKE_CASE      ):
		return False

	# Default values for count should be 0
	UpperCAmelCase__:	defaultdict[str, int]									= defaultdict(SCREAMING_SNAKE_CASE      )

	# For each character in input strings,
	# increment count in the corresponding
	for i in range(len(SCREAMING_SNAKE_CASE      )      ):
		count[first_str[i]] += 1
		count[second_str[i]] -= 1

	return all(_count == 0 for _count in count.values()      )


if __name__ == "__main__":
					from doctest import testmod

					testmod()
					_lowerCAmelCase  :      List[str]			 =input("""Enter the first string """).strip()
					_lowerCAmelCase  :      Tuple			 =input("""Enter the second string """).strip()

					_lowerCAmelCase  :      Optional[Any]			 =check_anagrams(input_a, input_b)
					print(F"{input_a} and {input_b} are {'' if status else 'not '}anagrams.")


import fire

from utils import calculate_rouge, save_json



def 			_A	(      SCREAMING_SNAKE_CASE	,SCREAMING_SNAKE_CASE	,SCREAMING_SNAKE_CASE=None	,**SCREAMING_SNAKE_CASE      ):
	UpperCAmelCase__:	Tuple									= [x.strip() for x in open(SCREAMING_SNAKE_CASE      ).readlines()]
	UpperCAmelCase__:	Dict									= [x.strip() for x in open(SCREAMING_SNAKE_CASE      ).readlines()][: len(SCREAMING_SNAKE_CASE      )]
	UpperCAmelCase__:	Any									= calculate_rouge(SCREAMING_SNAKE_CASE	,SCREAMING_SNAKE_CASE	,**SCREAMING_SNAKE_CASE      )
	if save_path is not None:
		save_json(SCREAMING_SNAKE_CASE	,SCREAMING_SNAKE_CASE	,indent=SCREAMING_SNAKE_CASE      )
	return metrics  # these print nicely


if __name__ == "__main__":
					fire.Fire(calculate_rouge_path)