






import pytest
import requests

from datasets.utils.file_utils import http_head

from .utils import OfflineSimulationMode, RequestWouldHangIndefinitelyError, offline







@pytest.mark.integration
def       lowercase__	(					)	->				Union[str, Any]:







       """simple docstring"""






       with offline(OfflineSimulationMode.CONNECTION_TIMES_OUT		):
              with pytest.raises(A_		):
                     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       lowercase__	(					)	->				int:







       """simple docstring"""






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







def       lowercase__	(					)	->				Optional[int]:







       """simple docstring"""






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









"""simple docstring"""






def 			snake_case		(		lowerCAmelCase_  ,						lowerCAmelCase_	)						->				int:
  return 1 if input_a == input_a else 0




def 			snake_case		(		)						->				None:
  assert xnor_gate(0  ,						0	) == 1
  assert xnor_gate(0  ,						1	) == 0
  assert xnor_gate(1  ,						0	) == 0
  assert xnor_gate(1  ,						1	) == 1


if __name__ == "__main__":
     print(xnor_gate(0, 0))
     print(xnor_gate(0, 1))
     print(xnor_gate(1, 0))
     print(xnor_gate(1, 1))





