
from manim import *


class  __magic_name__						(     _SCREAMING_SNAKE_CASE):





	def 	_UpperCAmelCase						(		self	: Any       ):
						UpperCAmelCase				   =  Rectangle(height=0.5    ,width=0.5       )
						UpperCAmelCase				   =  Rectangle(height=0.46    ,width=0.46       ).set_stroke(width=0       )

						UpperCAmelCase				   =  [mem.copy() for i in range(6       )]
						UpperCAmelCase				   =  [mem.copy() for i in range(6       )]
						UpperCAmelCase				   =  VGroup(*_lowercase       ).arrange(_lowercase    ,buff=0       )
						UpperCAmelCase				   =  VGroup(*_lowercase       ).arrange(_lowercase    ,buff=0       )
						UpperCAmelCase				   =  VGroup(_lowercase    ,_lowercase       ).arrange(_lowercase    ,buff=0       )
						UpperCAmelCase				   =  Text("CPU"    ,font_size=2_4       )
						UpperCAmelCase				   =  Group(_lowercase    ,_lowercase       ).arrange(_lowercase    ,buff=0.5    ,aligned_edge=_lowercase       )
						cpu.move_to([-2.5, -0.5, 0]       )
						self.add(_lowercase       )

						UpperCAmelCase				   =  [mem.copy() for i in range(1       )]
						UpperCAmelCase				   =  VGroup(*_lowercase       ).arrange(_lowercase    ,buff=0       )
						UpperCAmelCase				   =  Text("GPU"    ,font_size=2_4       )
						UpperCAmelCase				   =  Group(_lowercase    ,_lowercase       ).arrange(_lowercase    ,buff=0.5    ,aligned_edge=_lowercase       )
						gpu.align_to(_lowercase    ,_lowercase       )
						gpu.set_x(gpu.get_x() - 1       )

						self.add(_lowercase       )

						UpperCAmelCase				   =  [mem.copy() for i in range(6       )]
						UpperCAmelCase				   =  VGroup(*_lowercase       ).arrange(_lowercase    ,buff=0       )

						UpperCAmelCase				   =  Text("Model"    ,font_size=2_4       )
						UpperCAmelCase				   =  Group(_lowercase    ,_lowercase       ).arrange(_lowercase    ,buff=0.5    ,aligned_edge=_lowercase       )
						model.move_to([3, -1.0, 0]       )

						self.play(
						    Create(_lowercase    ,run_time=1       )    ,Create(_lowercase    ,run_time=1       )    ,Create(_lowercase    ,run_time=1       )    ,)

						UpperCAmelCase				   =  MarkupText(
						    f'''First, an empty model skeleton is loaded\ninto <span fgcolor=\'{YELLOW}\'>memory</span> without using much RAM.'''    ,font_size=2_4    ,)

						UpperCAmelCase				   =  Square(side_length=2.2       )
						key.move_to([-5, 2, 0]       )

						UpperCAmelCase				   =  MarkupText(
						    f'''<b>Key:</b>\n\n<span fgcolor=\'{YELLOW}\'>●</span> Empty Model'''    ,font_size=1_8    ,)

						key_text.move_to([-5, 2.4, 0]       )

						step_a.move_to([2, 2, 0]       )
						self.play(Write(_lowercase    ,run_time=2.5       )    ,Write(_lowercase       )    ,Write(_lowercase       )       )

						self.add(_lowercase       )

						UpperCAmelCase				   =  []
						UpperCAmelCase				   =  []
						UpperCAmelCase				   =  []
						for i, rect in enumerate(_lowercase       ):
											UpperCAmelCase				   =  Rectangle(height=0.46    ,width=0.46       ).set_stroke(width=0.0       ).set_fill(_lowercase    ,opacity=0.7       )
											cpu_target.move_to(_lowercase       )
											cpu_target.generate_target()
											UpperCAmelCase				   =  0.46 / 4
											UpperCAmelCase				   =  0.46 / 3

											if i == 0:
																cpu_target.target.next_to(cpu_left_col_base[0].get_corner(DOWN + LEFT       )    ,buff=0.02    ,direction=_lowercase       )
																cpu_target.target.set_x(cpu_target.target.get_x() + 0.1       )
											elif i == 3:
																cpu_target.target.next_to(cpu_targs[0].target    ,direction=_lowercase    ,buff=0.0       )
											else:
																cpu_target.target.next_to(cpu_targs[i - 1].target    ,direction=_lowercase    ,buff=0.0       )
											cpu_targs.append(_lowercase       )

											first_animations.append(rect.animate(run_time=0.5       ).set_stroke(_lowercase       )       )
											second_animations.append(MoveToTarget(_lowercase    ,run_time=1.5       )       )

						self.play(*_lowercase       )
						self.play(*_lowercase       )

						self.wait()




'''simple docstring'''



import sys
import webbrowser

import requests
from bsa import BeautifulSoup
from fake_useragent import UserAgent

if __name__ == "__main__":
						print("""Googling.....""")
						_lowercase          =						"""https://www.google.com/search?q=""" + """ """.join(sys.argv[1:])
						_lowercase          =						requests.get(url, headers={"""UserAgent""": UserAgent().random})
						# res.raise_for_status()
						with open("""project1a.html""", """wb""") as out_file:  # only for knowing the class
												for data in res.iter_content(10000):
																		out_file.write(data)
						_lowercase          =						BeautifulSoup(res.text, """html.parser""")
						_lowercase          =						list(soup.select(""".eZt8xd"""))[:5]

						print(len(links))
						for link in links:
												if link.text == "Maps":
																		webbrowser.open(link.get("""href"""))
												else:
																		webbrowser.open(F"""https://google.com{link.get('href')}""")
