






import math

def   __lowercase       (			snake_case,	snake_case			):







				"""simple docstring"""






				if initial_intensity < 0:
								raise ValueError('''The value of intensity cannot be negative'''			)
								# handling of negative values of initial intensity
				if angle < 0 or angle > 3_6_0:
								raise ValueError('''In Malus Law, the angle is in the range 0-360 degrees'''			)
								# handling of values out of allowed range
				return initial_intensity * (math.cos(math.radians(snake_case__			)			) ** 2)


if __name__ == "__main__":
					import doctest

					doctest.testmod(name="""malus_law""")








'''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)




