




'''simple docstring'''


import unittest
from timeit import timeit



def    _SCREAMING_SNAKE_CASE    (			UpperCamelCase__						:				int   ,						UpperCamelCase__						:				int							):




     """simple docstring"""


     a_    :       Any    	=     first_num if first_num >= second_num else second_num
     a_    :       List[Any]    	=     max_num
     while (common_mult % first_num > 0) or (common_mult % second_num > 0):
          common_mult += max_num
     return common_mult



def    _SCREAMING_SNAKE_CASE    (			UpperCamelCase__						:				int   ,						UpperCamelCase__						:				int							):




     """simple docstring"""


     return b if a == 0 else greatest_common_divisor(b % a   ,						UpperCamelCase__							)



def    _SCREAMING_SNAKE_CASE    (			UpperCamelCase__						:				int   ,						UpperCamelCase__						:				int							):




     """simple docstring"""


     return first_num // greatest_common_divisor(UpperCamelCase__   ,						UpperCamelCase__							) * second_num



def    _SCREAMING_SNAKE_CASE    (			):




     """simple docstring"""


     a_    :       Optional[Any]    	=     (
         '''from __main__ import least_common_multiple_slow, least_common_multiple_fast'''
     )
     print(
         """least_common_multiple_slow():"""   ,						timeit("""least_common_multiple_slow(1000, 999)"""   ,						setup=UpperCamelCase__							)   ,						)
     print(
         """least_common_multiple_fast():"""   ,						timeit("""least_common_multiple_fast(1000, 999)"""   ,						setup=UpperCamelCase__							)   ,						)







class     SCREAMING_SNAKE_CASE						(	unittest.TestCase							):
      __magic_name__     :					Any             =				(
          (10, 20),
          (13, 15),
          (4, 31),
          (10, 42),
          (43, 34),
          (5, 12),
          (12, 25),
          (10, 25),
          (6, 9),
      )
      __magic_name__     :					List[Any]             =				(20, 195, 124, 210, 1462, 60, 300, 50, 18)






      def        lowercase_	(   self      :     Optional[Any]					):


           '''simple docstring'''

           for i, (first_num, second_num) in enumerate(self.test_inputs					):
                a_    :       Optional[int]    	=     least_common_multiple_slow(lowercase__	,	lowercase__					)
                a_    :       List[str]    	=     least_common_multiple_fast(lowercase__	,	lowercase__					)
                with self.subTest(i=lowercase__					):
                     self.assertEqual(lowercase__	,	self.expected_results[i]					)
                     self.assertEqual(lowercase__	,	self.expected_results[i]					)


if __name__ == "__main__":
       benchmark()
       unittest.main()






'''simple docstring'''


import shutil

import requests



def    _SCREAMING_SNAKE_CASE    (			UpperCamelCase__						:				str   ,						UpperCamelCase__						:				bool = False   ,						UpperCamelCase__						:				str = "."							):




     """simple docstring"""


     a_    :       Any    	=     """https://api.nasa.gov/planetary/apod"""
     return requests.get(UpperCamelCase__   ,						params={"""api_key""": api_key}							).json()



def    _SCREAMING_SNAKE_CASE    (			UpperCamelCase__						:				str   ,						UpperCamelCase__						:				str = "."							):




     """simple docstring"""


     a_    :       Tuple    	=     get_apod_data(UpperCamelCase__							)
     a_    :       Tuple    	=     apod_data["""url"""]
     a_    :       Any    	=     img_url.split("""/"""							)[-1]
     a_    :       Tuple    	=     requests.get(UpperCamelCase__   ,						stream=UpperCamelCase__							)

     with open(F"{path}/{img_name}"   ,						"""wb+"""							) as img_file:
          shutil.copyfileobj(response.raw   ,						UpperCamelCase__							)
     del response
     return apod_data



def    _SCREAMING_SNAKE_CASE    (			UpperCamelCase__						:				str							):




     """simple docstring"""


     a_    :       str    	=     """https://images-api.nasa.gov/search"""
     return requests.get(UpperCamelCase__   ,						params={"""q""": query}							).json()


if __name__ == "__main__":
 print(save_apod('YOUR API KEY'))
 lowerCAmelCase_			:     int							    =     get_archive_data('apollo 2011')['collection']['items']
 print(apollo_aaaa_items[0]['data'][0]['description'])
