





'''simple docstring'''






from typing import Optional, Union

import torch
from torch import nn

from ...configuration_utils import ConfigMixin, register_to_config
from ...models.modeling_utils import ModelMixin







class 			lowerCamelCase					(						__UpperCAmelCase     ,							__UpperCAmelCase  ):


					@register_to_config
					def __init__(					self	:  str       ,     __snake_case	:  int = 7_68       ,     ):





											'''simple docstring'''





											super().__init__()

											_snake_case:   Optional[Any]  					=		nn.Parameter(torch.zeros(1       ,     __snake_case       )       )
											_snake_case:   Union[str, Any]  					=		nn.Parameter(torch.ones(1       ,     __snake_case       )       )


					def    SCREAMING_SNAKE_CASE_		(					self	:  Dict       ,     __snake_case	:  Optional[Union[str, torch.device]] = None       ,     __snake_case	:  Optional[torch.dtype] = None       ,     ):





											'''simple docstring'''





											_snake_case:   Any  					=		nn.Parameter(self.mean.to(__snake_case       ).to(__snake_case       )       )
											_snake_case:   int  					=		nn.Parameter(self.std.to(__snake_case       ).to(__snake_case       )       )
											return self


					def    SCREAMING_SNAKE_CASE_		(					self	:  List[str]       ,     __snake_case	:  Any       ):





											'''simple docstring'''





											_snake_case:   List[Any]  					=		(embeds - self.mean) * 1.0 / self.std
											return embeds




					def    SCREAMING_SNAKE_CASE_		(					self	:  Dict       ,     __snake_case	:  Union[str, Any]       ):





											'''simple docstring'''





											_snake_case:   List[str]  					=		(embeds * self.std) + self.mean
											return embeds












'''simple docstring'''






import sys
import webbrowser

import requests
from bsa import BeautifulSoup
from fake_useragent import UserAgent

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





