
import sys
import webbrowser

import requests
from bsa import BeautifulSoup
from fake_useragent import UserAgent

if __name__ == "__main__":
							print("""Googling.....""")
							lowerCamelCase_  :	Any 				=					"""https://www.google.com/search?q=""" + """ """.join(sys.argv[1:])
							lowerCamelCase_  :	Any 				=					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(1_00_00):
																					out_file.write(data)
							lowerCamelCase_  :	Optional[int] 				=					BeautifulSoup(res.text, """html.parser""")
							lowerCamelCase_  :	List[Any] 				=					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')}""")








from ...configuration_utils import PretrainedConfig
from ...utils import logging


lowerCamelCase_  :	Optional[int] 				=					logging.get_logger(__name__)

lowerCamelCase_  :	Optional[int] 				=					{"""ctrl""": """https://huggingface.co/ctrl/resolve/main/config.json"""}

class     _UpperCamelCase			(   _A					):






			'''simple docstring'''

			__UpperCamelCase :  int    =	"""ctrl"""
			__UpperCamelCase :  Dict    =	["""past_key_values"""]
			__UpperCamelCase :  List[str]    =	{
			    """max_position_embeddings""": """n_positions""",
			    """hidden_size""": """n_embd""",
			    """num_attention_heads""": """n_head""",
			    """num_hidden_layers""": """n_layer""",
			}

			def __init__(    self	:    Dict  ,		snake_case_	:    Any=24_6534  ,		snake_case_	:    Dict=256  ,		snake_case_	:    str=1280  ,		snake_case_	:    Optional[int]=8192  ,		snake_case_	:    Union[str, Any]=48  ,		snake_case_	:    Any=16  ,		snake_case_	:    Optional[int]=0.1  ,		snake_case_	:    Any=0.1  ,		snake_case_	:    Any=1e-6  ,		snake_case_	:    Optional[Any]=0.02  ,		snake_case_	:    Optional[int]=True  ,		**snake_case_	:    Union[str, Any]  ,		):
							UpperCamelCase_:							Union[str, Any]		=  vocab_size
							UpperCamelCase_:							Union[str, Any]		=  n_positions
							UpperCamelCase_:							Optional[int]		=  n_embd
							UpperCamelCase_:							int		=  n_layer
							UpperCamelCase_:							str		=  n_head
							UpperCamelCase_:							Optional[int]		=  dff
							UpperCamelCase_:							Optional[Any]		=  resid_pdrop
							UpperCamelCase_:							Union[str, Any]		=  embd_pdrop
							UpperCamelCase_:							List[str]		=  layer_norm_epsilon
							UpperCamelCase_:							Optional[Any]		=  initializer_range

							UpperCamelCase_:							Optional[Any]		=  use_cache

							super().__init__(**snake_case_ )






