


'''simple docstring'''
def       a_				(	UpperCamelCase_						,  UpperCamelCase_ ):
							return 1 if input_a == input_a else 0







def       a_				(	):
							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))









'''simple docstring'''
import pytest
import requests

from datasets.utils.file_utils import http_head

from .utils import OfflineSimulationMode, RequestWouldHangIndefinitelyError, offline







@pytest.mark.integration
def       a_				(	):
							with offline(OfflineSimulationMode.CONNECTION_TIMES_OUT ):
														with pytest.raises(UpperCamelCase_ ):
																					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       a_				(	):
							with offline(OfflineSimulationMode.CONNECTION_FAILS ):
														with pytest.raises(requests.exceptions.ConnectionError ):
																					requests.request("GET"						,  "https://huggingface.co" )







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





