
'''simple docstring'''



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


UpperCamelCase__      :		Optional[Any]       							=  logging.get_logger(__name__)

UpperCamelCase__      :		List[Any]       							=  {
    "microsoft/markuplm-base": "https://huggingface.co/microsoft/markuplm-base/resolve/main/config.json",
    "microsoft/markuplm-large": "https://huggingface.co/microsoft/markuplm-large/resolve/main/config.json",
}

class    _a				(_lowerCamelCase):





       """simple docstring"""




       SCREAMING_SNAKE_CASE      =  'markuplm'






       def __init__(							self       ,							A__=3_05_22       ,							A__=7_68       ,							A__=12       ,							A__=12       ,							A__=30_72       ,							A__="gelu"       ,							A__=0.1       ,							A__=0.1       ,							A__=5_12       ,							A__=2       ,							A__=0.02       ,							A__=1E-12       ,							A__=0       ,							A__=0       ,							A__=2       ,							A__=2_56       ,							A__=10_24       ,							A__=2_16       ,							A__=10_01       ,							A__=32       ,							A__=50       ,							A__="absolute"       ,							A__=True       ,							A__=None       ,							**A__       ,							)    ->			int:
          super().__init__(
              pad_token_id=A__       ,							bos_token_id=A__       ,							eos_token_id=A__       ,							**A__       ,							)
          _SCREAMING_SNAKE_CASE      =				vocab_size
          _SCREAMING_SNAKE_CASE      =				hidden_size
          _SCREAMING_SNAKE_CASE      =				num_hidden_layers
          _SCREAMING_SNAKE_CASE      =				num_attention_heads
          _SCREAMING_SNAKE_CASE      =				hidden_act
          _SCREAMING_SNAKE_CASE      =				intermediate_size
          _SCREAMING_SNAKE_CASE      =				hidden_dropout_prob
          _SCREAMING_SNAKE_CASE      =				attention_probs_dropout_prob
          _SCREAMING_SNAKE_CASE      =				max_position_embeddings
          _SCREAMING_SNAKE_CASE      =				type_vocab_size
          _SCREAMING_SNAKE_CASE      =				initializer_range
          _SCREAMING_SNAKE_CASE      =				layer_norm_eps
          _SCREAMING_SNAKE_CASE      =				position_embedding_type
          _SCREAMING_SNAKE_CASE      =				use_cache
          _SCREAMING_SNAKE_CASE      =				classifier_dropout
          # additional properties
          _SCREAMING_SNAKE_CASE      =				max_depth
          _SCREAMING_SNAKE_CASE      =				max_xpath_tag_unit_embeddings
          _SCREAMING_SNAKE_CASE      =				max_xpath_subs_unit_embeddings
          _SCREAMING_SNAKE_CASE      =				tag_pad_id
          _SCREAMING_SNAKE_CASE      =				subs_pad_id
          _SCREAMING_SNAKE_CASE      =				xpath_unit_hidden_size






'''simple docstring'''



import pytest
import requests

from datasets.utils.file_utils import http_head

from .utils import OfflineSimulationMode, RequestWouldHangIndefinitelyError, offline
@pytest.mark.integration
def    lowerCAmelCase_	(				)     ->     List[Any]:




   """simple docstring"""
   with offline(OfflineSimulationMode.CONNECTION_TIMES_OUT						):
      with pytest.raises(SCREAMING_SNAKE_CASE_						):
         requests.request("""GET"""    ,      """https://huggingface.co"""						)
      with pytest.raises(requests.exceptions.ConnectTimeout						):
         requests.request("""GET"""    ,      """https://huggingface.co"""    ,      timeout=1.0						)
@pytest.mark.integration
def    lowerCAmelCase_	(				)     ->     int:




   """simple docstring"""
   with offline(OfflineSimulationMode.CONNECTION_FAILS						):
      with pytest.raises(requests.exceptions.ConnectionError						):
         requests.request("""GET"""    ,      """https://huggingface.co"""						)







def    lowerCAmelCase_	(				)     ->     Optional[Any]:




   """simple docstring"""
   with offline(OfflineSimulationMode.HF_DATASETS_OFFLINE_SET_TO_1						):
      with pytest.raises(SCREAMING_SNAKE_CASE_						):
         http_head("""https://huggingface.co"""						)






