
"""simple docstring"""


import bsa
import requests






def        lowerCAmelCase_       (		snake_case_		:      bsa.element.ResultSet      )       ->Tuple:
			return {
			    "name": soup.ha.a.text,
			    "genre": soup.find('span'							,   class_='genre'      ).text.strip(),
			    "rating": soup.strong.text,
			    "page_link": f"""https://www.imdb.com{soup.a.get('href'      )}""",
			}






def        lowerCAmelCase_       (		snake_case_		:      int = 5      )       ->List[str]:
			lowerCamelCase__     :					List[Any]		=int(float(_A      )      )
			if num_movies < 1:
						return ()
			lowerCamelCase__     :					List[str]		=(
			    'https://www.imdb.com/search/title?title_type='
			    f"""feature&sort=num_votes,desc&count={num_movies}"""
			)
			lowerCamelCase__     :					Union[str, Any]		=bsa.BeautifulSoup(requests.get(_A      ).content							,   'html.parser'      )
			return tuple(
			    get_movie_data_from_soup(_A      )
			    for movie in source.find_all('div'							,   class_='lister-item mode-advanced'      )      )


if __name__ == "__main__":
							import json

							lowerCAmelCase								=						int(input("""How many movies would you like to see? """))
							print(
							    """, """.join(
							        json.dumps(movie, indent=4) for movie in get_imdb_top_movies(num_movies)
							    )
							)

"""simple docstring"""


from math import cos, sin






def        lowerCAmelCase_       (		snake_case_		:      float      )       ->list[list[float]]:
			lowerCamelCase__     :					List[Any]		=float(snake_case_      )
			return [[scaling_factor * int(x == y      ) for x in range(2      )] for y in range(2      )]






def        lowerCAmelCase_       (		snake_case_		:      float      )       ->list[list[float]]:
			lowerCamelCase__	,    lowerCamelCase__     :					Union[str, Any]		=cos(snake_case_      ), sin(snake_case_      )
			return [[c, -s], [s, c]]






def        lowerCAmelCase_       (		snake_case_		:      float      )       ->list[list[float]]:
			lowerCamelCase__	,    lowerCamelCase__     :					Optional[Any]		=cos(snake_case_      ), sin(snake_case_      )
			lowerCamelCase__     :					Dict		=c * s
			return [[c * c, cs], [cs, s * s]]






def        lowerCAmelCase_       (		snake_case_		:      float      )       ->list[list[float]]:
			lowerCamelCase__	,    lowerCamelCase__     :					str		=cos(snake_case_      ), sin(snake_case_      )
			lowerCamelCase__     :					Dict		=c * s
			return [[2 * c - 1, 2 * cs], [2 * cs, 2 * s - 1]]


print(f"""    {scaling(5) = }""")
print(f"""  {rotation(45) = }""")
print(f"""{projection(45) = }""")

print(f"""{reflection(45) = }""")