



'''simple docstring'''

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


__lowerCAmelCase						      =       logging.get_logger(__name__)

__lowerCAmelCase						      =       {
    '''weiweishi/roc-bert-base-zh''': '''https://huggingface.co/weiweishi/roc-bert-base-zh/resolve/main/config.json''',
}

class      __magic_name__						(   _UpperCamelCase       ):
							lowerCAmelCase	:   Any           = 'roc_bert'







							def __init__(							self :	List[str]     ,_UpperCAmelCase :	Optional[Any]=30522     ,_UpperCAmelCase :	List[Any]=768     ,_UpperCAmelCase :	Optional[int]=12     ,_UpperCAmelCase :	Union[str, Any]=12     ,_UpperCAmelCase :	Dict=3072     ,_UpperCAmelCase :	List[Any]="gelu"     ,_UpperCAmelCase :	Union[str, Any]=0.1     ,_UpperCAmelCase :	Optional[Any]=0.1     ,_UpperCAmelCase :	List[Any]=512     ,_UpperCAmelCase :	Dict=2     ,_UpperCAmelCase :	Union[str, Any]=0.02     ,_UpperCAmelCase :	Tuple=1E-12     ,_UpperCAmelCase :	int=True     ,_UpperCAmelCase :	Tuple=0     ,_UpperCAmelCase :	Optional[int]="absolute"     ,_UpperCAmelCase :	List[Any]=None     ,_UpperCAmelCase :	Tuple=True     ,_UpperCAmelCase :	str=True     ,_UpperCAmelCase :	Union[str, Any]=768     ,_UpperCAmelCase :	List[str]=910     ,_UpperCAmelCase :	int=512     ,_UpperCAmelCase :	Optional[int]=24858     ,_UpperCAmelCase :	Optional[Any]=True     ,**_UpperCAmelCase :	Union[str, Any]     ,):
									_a					:				int				=							vocab_size
									_a					:				Union[str, Any]				=							max_position_embeddings
									_a					:				Optional[Any]				=							hidden_size
									_a					:				Dict				=							num_hidden_layers
									_a					:				Optional[int]				=							num_attention_heads
									_a					:				str				=							intermediate_size
									_a					:				Tuple				=							hidden_act
									_a					:				Optional[int]				=							hidden_dropout_prob
									_a					:				Any				=							attention_probs_dropout_prob
									_a					:				Optional[int]				=							initializer_range
									_a					:				str				=							type_vocab_size
									_a					:				List[Any]				=							layer_norm_eps
									_a					:				Union[str, Any]				=							use_cache
									_a					:				Union[str, Any]				=							enable_pronunciation
									_a					:				Dict				=							enable_shape
									_a					:				List[str]				=							pronunciation_embed_dim
									_a					:				Any				=							pronunciation_vocab_size
									_a					:				Union[str, Any]				=							shape_embed_dim
									_a					:				str				=							shape_vocab_size
									_a					:				str				=							concat_input
									_a					:				Optional[int]				=							position_embedding_type
									_a					:				int				=							classifier_dropout
									super().__init__(pad_token_id=_UpperCAmelCase     ,**_UpperCAmelCase		)









'''simple docstring'''

from __future__ import annotations

import os
from typing import Any

import requests

__lowerCAmelCase						      =       '''https://api.github.com'''

# https://docs.github.com/en/free-pro-team@latest/rest/reference/users#get-the-authenticated-user
__lowerCAmelCase						      =       BASE_URL + '''/user'''

# https://github.com/settings/tokens
__lowerCAmelCase						      =       os.environ.get('''USER_TOKEN''', '''''')



def 					__lowerCamelCase					(				lowerCAmelCase_  )      ->				dict[Any, Any]:
		_a					:				Union[str, Any]				=							{
		    'Authorization': f"""token {auth_token}""",
		    'Accept': 'application/vnd.github.v3+json',
		}
		return requests.get(lowerCAmelCase_						,      headers=lowerCAmelCase_  ).json()


if __name__ == "__main__":  # pragma: no cover
							if USER_TOKEN:
														for key, value in fetch_github_info(USER_TOKEN).items():
																					print(f"""{key}: {value}""")
							else:
														raise ValueError('''\'USER_TOKEN\' field cannot be empty.''')




