



'''simple docstring'''

def a_     (    __UpperCAmelCase				,							__UpperCAmelCase					)				->					int:





			"""simple docstring"""







			return int(input_a == input_a == 0					)







def a_     (    )				->					Optional[Any]:





			"""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 json
import os
import tempfile

from transformers.testing_utils import check_json_file_has_correct_format




class 			__snake_case   :
							__a					 =       None




							def   __a   (     self:    int   ):
										__lowerCamelCase          =      self.feature_extraction_class(**self.feat_extract_dict   )
										__lowerCamelCase          =      json.loads(feat_extract.to_json_string()   )
										for key, value in self.feat_extract_dict.items():
													self.assertEqual(obj[key]     ,							A_   )




							def   __a   (     self:    List[str]   ):
										__lowerCamelCase          =      self.feature_extraction_class(**self.feat_extract_dict   )

										with tempfile.TemporaryDirectory() as tmpdirname:
													__lowerCamelCase          =      os.path.join(A_     ,							"""feat_extract.json"""   )
													feat_extract_first.to_json_file(A_   )
													__lowerCamelCase          =      self.feature_extraction_class.from_json_file(A_   )

										self.assertEqual(feat_extract_second.to_dict()     ,							feat_extract_first.to_dict()   )




							def   __a   (     self:    Optional[Any]   ):
										__lowerCamelCase          =      self.feature_extraction_class(**self.feat_extract_dict   )

										with tempfile.TemporaryDirectory() as tmpdirname:
													__lowerCamelCase          =      feat_extract_first.save_pretrained(A_   )[0]
													check_json_file_has_correct_format(A_   )
													__lowerCamelCase          =      self.feature_extraction_class.from_pretrained(A_   )

										self.assertEqual(feat_extract_second.to_dict()     ,							feat_extract_first.to_dict()   )




							def   __a   (     self:    List[Any]   ):
										__lowerCamelCase          =      self.feature_extraction_class()
										self.assertIsNotNone(A_   )




