


'''simple docstring'''

def 					_A			(			snake_case__    :			Tuple						,						snake_case__    :			int						,						snake_case__    :			int				):
	return round(float(moles / volume				) * nfactor				)






def 					_A			(			snake_case__    :			Tuple						,						snake_case__    :			str						,						snake_case__    :			Optional[Any]				):
	return round(float((moles * 0.08_21 * temperature) / (volume)				)				)






def 					_A			(			snake_case__    :			Tuple						,						snake_case__    :			Union[str, Any]						,						snake_case__    :			Optional[Any]				):
	return round(float((moles * 0.08_21 * temperature) / (pressure)				)				)






def 					_A			(			snake_case__    :			List[Any]						,						snake_case__    :			Optional[int]						,						snake_case__    :			Union[str, Any]				):
	return round(float((pressure * volume) / (0.08_21 * moles)				)				)


if __name__ == "__main__":
		import doctest

		doctest.testmod()











"""simple docstring"""




import unittest

from transformers import load_tool

from .test_tools_common import ToolTesterMixin






class        __magic_name__				(			unittest.TestCase		,   UpperCAmelCase__							):






				'''simple docstring'''





				def   _lowerCAmelCase							(			self					):





							"""simple docstring"""
							lowerCamelCase      =   load_tool("""text-classification"""					)
							self.tool.setup()
							lowerCamelCase      =   load_tool("""text-classification"""						,					remote=_a					)





				def   _lowerCAmelCase							(			self					):





							"""simple docstring"""
							lowerCamelCase      =   self.tool("""That's quite cool"""						,					["""positive""", """negative"""]					)
							self.assertEqual(_a						,					"""positive"""					)





				def   _lowerCAmelCase							(			self					):





							"""simple docstring"""
							lowerCamelCase      =   self.remote_tool("""That's quite cool"""						,					["""positive""", """negative"""]					)
							self.assertEqual(_a						,					"""positive"""					)





				def   _lowerCAmelCase							(			self					):





							"""simple docstring"""
							lowerCamelCase      =   self.tool(text="""That's quite cool"""						,					labels=["""positive""", """negative"""]					)
							self.assertEqual(_a						,					"""positive"""					)





				def   _lowerCAmelCase							(			self					):





							"""simple docstring"""
							lowerCamelCase      =   self.remote_tool(text="""That's quite cool"""						,					labels=["""positive""", """negative"""]					)
							self.assertEqual(_a						,					"""positive"""					)



