



"""simple docstring"""
import os
import sys
import unittest


A:   Tuple								=		os.path.abspath(os.path.dirname(os.path.dirname(os.path.dirname(__file__))))
sys.path.append(os.path.join(git_repo_path, "utils"))

import get_test_info  # noqa: E402
from get_test_info import (  # noqa: E402
    get_model_to_test_mapping,
    get_model_to_tester_mapping,
    get_test_to_tester_mapping,
)


A:   Any								=		os.path.join("tests", "models", "bert", "test_modeling_bert.py")
A:   Optional[Any]								=		os.path.join("tests", "models", "blip", "test_modeling_blip.py")



class       SCREAMING_SNAKE_CASE__  (					unittest.TestCase ):

   def 	SCREAMING_SNAKE_CASE     (   self						)  ->      List[Any]:





    '''simple docstring'''




    UpperCAmelCase	:					str	=	get_test_to_tester_mapping(_SCREAMING_SNAKE_CASE						)
    UpperCAmelCase	:					Optional[int]	=	get_test_to_tester_mapping(_SCREAMING_SNAKE_CASE						)

    UpperCAmelCase	:					Optional[int]	=	{"""BertModelTest""": """BertModelTester"""}

    UpperCAmelCase	:					int	=	{
        """BlipModelTest""": """BlipModelTester""",
        """BlipTextImageModelTest""": """BlipTextImageModelsModelTester""",
        """BlipTextModelTest""": """BlipTextModelTester""",
        """BlipTextRetrievalModelTest""": """BlipTextRetrievalModelTester""",
        """BlipVQAModelTest""": """BlipVQAModelTester""",
        """BlipVisionModelTest""": """BlipVisionModelTester""",
    }

    self.assertEqual(get_test_info.to_json(_SCREAMING_SNAKE_CASE						)      ,     _SCREAMING_SNAKE_CASE						)
    self.assertEqual(get_test_info.to_json(_SCREAMING_SNAKE_CASE						)      ,     _SCREAMING_SNAKE_CASE						)

   def 	SCREAMING_SNAKE_CASE     (   self						)  ->      Optional[Any]:





    '''simple docstring'''




    UpperCAmelCase	:					str	=	get_model_to_test_mapping(_SCREAMING_SNAKE_CASE						)
    UpperCAmelCase	:					Union[str, Any]	=	get_model_to_test_mapping(_SCREAMING_SNAKE_CASE						)

    UpperCAmelCase	:					Union[str, Any]	=	{
        """BertForMaskedLM""": ["""BertModelTest"""],
        """BertForMultipleChoice""": ["""BertModelTest"""],
        """BertForNextSentencePrediction""": ["""BertModelTest"""],
        """BertForPreTraining""": ["""BertModelTest"""],
        """BertForQuestionAnswering""": ["""BertModelTest"""],
        """BertForSequenceClassification""": ["""BertModelTest"""],
        """BertForTokenClassification""": ["""BertModelTest"""],
        """BertLMHeadModel""": ["""BertModelTest"""],
        """BertModel""": ["""BertModelTest"""],
    }

    UpperCAmelCase	:					Dict	=	{
        """BlipForConditionalGeneration""": ["""BlipTextImageModelTest"""],
        """BlipForImageTextRetrieval""": ["""BlipTextRetrievalModelTest"""],
        """BlipForQuestionAnswering""": ["""BlipVQAModelTest"""],
        """BlipModel""": ["""BlipModelTest"""],
        """BlipTextModel""": ["""BlipTextModelTest"""],
        """BlipVisionModel""": ["""BlipVisionModelTest"""],
    }

    self.assertEqual(get_test_info.to_json(_SCREAMING_SNAKE_CASE						)      ,     _SCREAMING_SNAKE_CASE						)
    self.assertEqual(get_test_info.to_json(_SCREAMING_SNAKE_CASE						)      ,     _SCREAMING_SNAKE_CASE						)




   def 	SCREAMING_SNAKE_CASE     (   self						)  ->      Any:





    '''simple docstring'''




    UpperCAmelCase	:					List[str]	=	get_model_to_tester_mapping(_SCREAMING_SNAKE_CASE						)
    UpperCAmelCase	:					Optional[Any]	=	get_model_to_tester_mapping(_SCREAMING_SNAKE_CASE						)

    UpperCAmelCase	:					Union[str, Any]	=	{
        """BertForMaskedLM""": ["""BertModelTester"""],
        """BertForMultipleChoice""": ["""BertModelTester"""],
        """BertForNextSentencePrediction""": ["""BertModelTester"""],
        """BertForPreTraining""": ["""BertModelTester"""],
        """BertForQuestionAnswering""": ["""BertModelTester"""],
        """BertForSequenceClassification""": ["""BertModelTester"""],
        """BertForTokenClassification""": ["""BertModelTester"""],
        """BertLMHeadModel""": ["""BertModelTester"""],
        """BertModel""": ["""BertModelTester"""],
    }

    UpperCAmelCase	:					Any	=	{
        """BlipForConditionalGeneration""": ["""BlipTextImageModelsModelTester"""],
        """BlipForImageTextRetrieval""": ["""BlipTextRetrievalModelTester"""],
        """BlipForQuestionAnswering""": ["""BlipVQAModelTester"""],
        """BlipModel""": ["""BlipModelTester"""],
        """BlipTextModel""": ["""BlipTextModelTester"""],
        """BlipVisionModel""": ["""BlipVisionModelTester"""],
    }

    self.assertEqual(get_test_info.to_json(_SCREAMING_SNAKE_CASE						)      ,     _SCREAMING_SNAKE_CASE						)
    self.assertEqual(get_test_info.to_json(_SCREAMING_SNAKE_CASE						)      ,     _SCREAMING_SNAKE_CASE						)






def 			_SCREAMING_SNAKE_CASE			(							lowercase	:       int	,							lowercase	:       int     ):


      '''simple docstring'''



      return int((input_a, input_a).count(1     ) != 0     )

def 			_SCREAMING_SNAKE_CASE			(							):


      '''simple docstring'''



      assert or_gate(0	,							0     ) == 0
      assert or_gate(0	,							1     ) == 1
      assert or_gate(1	,							0     ) == 1
      assert or_gate(1	,							1     ) == 1


if __name__ == "__main__":
 print(or_gate(0, 1))
 print(or_gate(1, 0))
 print(or_gate(0, 0))
 print(or_gate(1, 1))



