





'''simple docstring'''






def        UpperCamelCase__		(						__magic_name__  :   int		,       __magic_name__  :   int      )				->			int:
 '''simple docstring'''






 return int(input_a == input_a == 0      )



def        UpperCamelCase__		(						)				->			None:
 '''simple docstring'''






 print("""Truth Table of NOR Gate:"""      )
 print("""|   Input 1   |  Input 2  | Output |"""      )
 print(f"|      0      |    0      |  {nor_gate(0		,       0      )}     |"      )
 print(f"|      0      |    1      |  {nor_gate(0		,       1      )}     |"      )
 print(f"|      1      |    0      |  {nor_gate(1		,       0      )}     |"      )
 print(f"|      1      |    1      |  {nor_gate(1		,       1      )}     |"      )


if __name__ == "__main__":
    import doctest

    doctest.testmod()
    main()










"""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"""					)



