
'''simple docstring'''



import os
from pathlib import Path


def A ():
						from torch.utils.cpp_extension import load

						_lowerCAmelCase    		=					Path(__lowerCamelCase						).resolve().parent.parent.parent / """kernels""" / """deformable_detr"""
						_lowerCAmelCase    		=					[
						    root / filename
						    for filename in [
						        """vision.cpp""",
						        os.path.join("""cpu"""					,      """ms_deform_attn_cpu.cpp"""						),
						        os.path.join("""cuda"""					,      """ms_deform_attn_cuda.cu"""						),
						    ]
						]

						load(
						    """MultiScaleDeformableAttention"""					,      __lowerCamelCase					,      with_cuda=__lowerCamelCase					,      extra_include_paths=[str(__lowerCamelCase						)]					,      extra_cflags=["""-DWITH_CUDA=1"""]					,      extra_cuda_cflags=[
						        """-DCUDA_HAS_FP16=1""",
						        """-D__CUDA_NO_HALF_OPERATORS__""",
						        """-D__CUDA_NO_HALF_CONVERSIONS__""",
						        """-D__CUDA_NO_HALF2_OPERATORS__""",
						    ]					,      )

						import MultiScaleDeformableAttention as MSDA

						return MSDA


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