
'''simple docstring'''




def 						lowerCAmelCase_							(  snake_case__		):




    '''simple docstring'''



    if not isinstance(snake_case__						,							snake_case__		):
        A			:  List[Any]   =		F'Input value of [number={number}] must be an integer'
        raise TypeError(snake_case__		)

    if number < 1:
        A			:  Optional[Any]   =		F'Input value of [number={number}] must be > 0'
        raise ValueError(snake_case__		)

    A			:  List[Any]   =		1

    for i in range(1						,							snake_case__		):
        current_number *= 4 * i - 2
        current_number //= i + 1

    return current_number


if __name__ == "__main__":
      import doctest

      doctest.testmod()






'''simple docstring'''




import fire

from utils import calculate_rouge, save_json







def 						lowerCAmelCase_							(  snake_case__						,							snake_case__						,							snake_case__=None						,							**snake_case__		):




    '''simple docstring'''



    A			:  Optional[Any]   =		[x.strip() for x in open(snake_case__		).readlines()]
    A			:  Tuple   =		[x.strip() for x in open(snake_case__		).readlines()][: len(snake_case__		)]
    A			:  Union[str, Any]   =		calculate_rouge(snake_case__						,							snake_case__						,							**snake_case__		)
    if save_path is not None:
        save_json(snake_case__						,							snake_case__						,							indent=snake_case__		)
    return metrics  # these print nicely


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




