



"""simple docstring"""







import pytest
import requests

from datasets.utils.file_utils import http_head

from .utils import OfflineSimulationMode, RequestWouldHangIndefinitelyError, offline



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



		with offline(OfflineSimulationMode.CONNECTION_TIMES_OUT      ):
				with pytest.raises(__lowerCamelCase      ):
						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 	__UpperCAmelCase (       )				-> Union[str, Any]:



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





def 	__UpperCAmelCase (       )				-> Dict:



		with offline(OfflineSimulationMode.HF_DATASETS_OFFLINE_SET_TO_1      ):
				with pytest.raises(__lowerCamelCase      ):
						http_head('''https://huggingface.co'''      )







UpperCAmelCase_							=				8.31_44_62  # Unit - J mol-1 K-1





def  __magic_name__  (				lowercase				,       lowercase				,       lowercase				)				-> float:

							"""simple docstring"""



							if moles < 0 or kelvin < 0 or volume < 0:
														raise ValueError("""Invalid inputs. Enter positive value."""				)
							return moles * kelvin * UNIVERSAL_GAS_CONSTANT / volume





def  __magic_name__  (				lowercase				,       lowercase				,       lowercase				)				-> float:

							"""simple docstring"""



							if moles < 0 or kelvin < 0 or pressure < 0:
														raise ValueError("""Invalid inputs. Enter positive value."""				)
							return moles * kelvin * UNIVERSAL_GAS_CONSTANT / pressure


if __name__ == "__main__":
							from doctest import testmod

							testmod()