






from __future__ import annotations
def       snake_case_		(     lowerCAmelCase_       :						list[int]       ,       lowerCAmelCase_       :						int      ):
							__lowercase      :							Optional[Any]				=     0
							__lowercase      :							Tuple				=     len(lowerCAmelCase_      ) - 1

							while i < j:
														if nums[i] + nums[j] == target:
																					return [i, j]
														elif nums[i] + nums[j] < target:
																					__lowercase      :							str				=     i + 1
														else:
																					__lowercase      :							Optional[int]				=     j - 1

							return []


if __name__ == "__main__":
	import doctest

	doctest.testmod()
	print(f'''{two_pointer([2, 7, 11, 15], 9) = }''')







import fire

from utils import calculate_rouge, save_json
def       snake_case_		(     lowerCAmelCase_       :						Any       ,       lowerCAmelCase_       :						str       ,       lowerCAmelCase_       :						str=None       ,       **lowerCAmelCase_       :						str      ):
							__lowercase      :							Tuple				=     [x.strip() for x in open(lowerCAmelCase_      ).readlines()]
							__lowercase      :							Dict				=     [x.strip() for x in open(lowerCAmelCase_      ).readlines()][: len(lowerCAmelCase_      )]
							__lowercase      :							Tuple				=     calculate_rouge(lowerCAmelCase_       ,       lowerCAmelCase_       ,       **lowerCAmelCase_      )
							if save_path is not None:
														save_json(lowerCAmelCase_       ,       lowerCAmelCase_       ,       indent=lowerCAmelCase_      )
							return metrics  # these print nicely


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