






'''simple docstring'''

def 					lowercase__				(   __UpperCamelCase	,		__UpperCamelCase					)->				int:
      while b:
            UpperCamelCase						,UpperCamelCase       						=      b, a % b
      return a







def 					lowercase__				(   __UpperCamelCase	,		__UpperCamelCase					)->				int:
      return a if b == 0 else euclidean_gcd_recursive(__UpperCamelCase	,		a % b					)







def 					lowercase__				(   )->				List[Any]:
      print(F"euclidean_gcd(3, 5) = {euclidean_gcd(3	,		5					)}"					)
      print(F"euclidean_gcd(5, 3) = {euclidean_gcd(5	,		3					)}"					)
      print(F"euclidean_gcd(1, 3) = {euclidean_gcd(1	,		3					)}"					)
      print(F"euclidean_gcd(3, 6) = {euclidean_gcd(3	,		6					)}"					)
      print(F"euclidean_gcd(6, 3) = {euclidean_gcd(6	,		3					)}"					)

      print(F"euclidean_gcd_recursive(3, 5) = {euclidean_gcd_recursive(3	,		5					)}"					)
      print(F"euclidean_gcd_recursive(5, 3) = {euclidean_gcd_recursive(5	,		3					)}"					)
      print(F"euclidean_gcd_recursive(1, 3) = {euclidean_gcd_recursive(1	,		3					)}"					)
      print(F"euclidean_gcd_recursive(3, 6) = {euclidean_gcd_recursive(3	,		6					)}"					)
      print(F"euclidean_gcd_recursive(6, 3) = {euclidean_gcd_recursive(6	,		3					)}"					)


if __name__ == "__main__":
     main()








'''simple docstring'''

import fire

from utils import calculate_rouge, save_json







def 					lowercase__				(   __UpperCamelCase	,		__UpperCamelCase	,		__UpperCamelCase=None	,		**__UpperCamelCase					)->				int:
      UpperCamelCase       						=      [x.strip() for x in open(__UpperCamelCase					).readlines()]
      UpperCamelCase       						=      [x.strip() for x in open(__UpperCamelCase					).readlines()][: len(__UpperCamelCase					)]
      UpperCamelCase       						=      calculate_rouge(__UpperCamelCase	,		__UpperCamelCase	,		**__UpperCamelCase					)
      if save_path is not None:
            save_json(__UpperCamelCase	,		__UpperCamelCase	,		indent=__UpperCamelCase					)
      return metrics  # these print nicely


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