


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     _lowercase				(							lowercase__							,						lowercase__):


       """simple docstring"""




       @register_to_config
       def __init__(     self							:    List[Any]      ,   __lowerCamelCase							:    int = 768      ,   ):


             '''simple docstring'''



             super().__init__()

             lowerCamelCase__	:       List[Any]					=						nn.Parameter(torch.zeros(1      ,   __lowerCamelCase ) )
             lowerCamelCase__	:       int					=						nn.Parameter(torch.ones(1      ,   __lowerCamelCase ) )





       def 		lowerCAmelCase  (     self							:    Union[str, Any]      ,   __lowerCamelCase							:    Optional[Union[str, torch.device]] = None      ,   __lowerCamelCase							:    Optional[torch.dtype] = None      ,   ):


             '''simple docstring'''



             lowerCamelCase__	:       Dict					=						nn.Parameter(self.mean.to(__lowerCamelCase ).to(__lowerCamelCase ) )
             lowerCamelCase__	:       Union[str, Any]					=						nn.Parameter(self.std.to(__lowerCamelCase ).to(__lowerCamelCase ) )
             return self





       def 		lowerCAmelCase  (     self							:    List[str]      ,   __lowerCamelCase							:    Union[str, Any] ):


             '''simple docstring'''



             lowerCamelCase__	:       str					=						(embeds - self.mean) * 1.0 / self.std
             return embeds





       def 		lowerCAmelCase  (     self							:    Optional[Any]      ,   __lowerCamelCase							:    Optional[Any] ):


             '''simple docstring'''



             lowerCamelCase__	:       Union[str, Any]					=						(embeds * self.std) + self.mean
             return embeds






import sys
import webbrowser

import requests
from bsa import BeautifulSoup
from fake_useragent import UserAgent

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


