

'''simple docstring'''






import math
import os

import cva
import numpy as np

snake_case_					  =	2_5_5.0


def  __lowerCamelCase      (				SCREAMING_SNAKE_CASE_					:     float  ,  SCREAMING_SNAKE_CASE_					:     float   )							->       float:
      """simple docstring"""

      SCREAMING_SNAKE_CASE_				:      Dict					=	np.mean((original - contrast) ** 2   )
      if mse == 0:
            return 1_0_0

      return 2_0 * math.logaa(PIXEL_MAX / math.sqrt(SCREAMING_SNAKE_CASE_   )   )


def  __lowerCamelCase      (				)							->       None:
      """simple docstring"""

      SCREAMING_SNAKE_CASE_				:      Tuple					=	os.path.dirname(os.path.realpath(SCREAMING_SNAKE_CASE_   )   )
      # Loading images (original image and compressed image)
      SCREAMING_SNAKE_CASE_				:      str					=	cva.imread(os.path.join(SCREAMING_SNAKE_CASE_  ,  "image_data/original_image.png"   )   )
      SCREAMING_SNAKE_CASE_				:      Tuple					=	cva.imread(os.path.join(SCREAMING_SNAKE_CASE_  ,  "image_data/compressed_image.png"   )  ,  1   )

      SCREAMING_SNAKE_CASE_				:      int					=	cva.imread(os.path.join(SCREAMING_SNAKE_CASE_  ,  "image_data/PSNR-example-base.png"   )   )
      SCREAMING_SNAKE_CASE_				:      str					=	cva.imread(
          os.path.join(SCREAMING_SNAKE_CASE_  ,  "image_data/PSNR-example-comp-10.jpg"   )  ,  1   )

      # Value expected: 29.73dB
      print("-- First Test --"   )
      print(F"PSNR value is {peak_signal_to_noise_ratio(SCREAMING_SNAKE_CASE_  ,  SCREAMING_SNAKE_CASE_   )} dB"   )

      # # Value expected: 31.53dB (Wikipedia Example)
      print("\n-- Second Test --"   )
      print(F"PSNR value is {peak_signal_to_noise_ratio(SCREAMING_SNAKE_CASE_  ,  SCREAMING_SNAKE_CASE_   )} dB"   )


if __name__ == "__main__":
      main()




'''simple docstring'''






import requests
from bsa import BeautifulSoup


def  __lowerCamelCase      (				SCREAMING_SNAKE_CASE_					:     int  ,  SCREAMING_SNAKE_CASE_					:     str   )							->       str:
      """simple docstring"""

      SCREAMING_SNAKE_CASE_				:      List[str]					=	(
          "https://www.horoscope.com/us/horoscopes/general/"
          F"horoscope-general-daily-{day}.aspx?sign={zodiac_sign}"
      )
      SCREAMING_SNAKE_CASE_				:      Dict					=	BeautifulSoup(requests.get(SCREAMING_SNAKE_CASE_   ).content  ,  "html.parser"   )
      return soup.find("div"  ,  class_="main-horoscope"   ).p.text


if __name__ == "__main__":
      print('Daily Horoscope. \n')
      print(
          'enter your Zodiac sign number:\n',
          '1. Aries\n',
          '2. Taurus\n',
          '3. Gemini\n',
          '4. Cancer\n',
          '5. Leo\n',
          '6. Virgo\n',
          '7. Libra\n',
          '8. Scorpio\n',
          '9. Sagittarius\n',
          '10. Capricorn\n',
          '11. Aquarius\n',
          '12. Pisces\n',
      )
      snake_case_					  =	int(input('number> ').strip())
      print('choose some day:\n', 'yesterday\n', 'today\n', 'tomorrow\n')
      snake_case_					  =	input('enter the day> ')
      snake_case_					  =	horoscope(zodiac_sign, day)
      print(horoscope_text)

