



"""simple docstring"""





import os
import sys
import unittest


lowerCamelCase  			=		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,
)


lowerCamelCase  			=		os.path.join("""tests""", """models""", """bert""", """test_modeling_bert.py""")
lowerCamelCase  			=		os.path.join("""tests""", """models""", """blip""", """test_modeling_blip.py""")
class  lowercase__  (       unittest.TestCase ):







       '''simple docstring'''


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


             '''simple docstring'''




             UpperCAmelCase_     					=				get_test_to_tester_mapping(_UpperCAmelCase       )
             UpperCAmelCase_     					=				get_test_to_tester_mapping(_UpperCAmelCase       )

             UpperCAmelCase_     					=				{"BertModelTest": "BertModelTester"}

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

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



       def 	lowercase__							(				self     :    Union[str, Any]       )					->		Dict:


             '''simple docstring'''




             UpperCAmelCase_     					=				get_model_to_test_mapping(_UpperCAmelCase       )
             UpperCAmelCase_     					=				get_model_to_test_mapping(_UpperCAmelCase       )

             UpperCAmelCase_     					=				{
                 "BertForMaskedLM": ["BertModelTest"],
                 "BertForMultipleChoice": ["BertModelTest"],
                 "BertForNextSentencePrediction": ["BertModelTest"],
                 "BertForPreTraining": ["BertModelTest"],
                 "BertForQuestionAnswering": ["BertModelTest"],
                 "BertForSequenceClassification": ["BertModelTest"],
                 "BertForTokenClassification": ["BertModelTest"],
                 "BertLMHeadModel": ["BertModelTest"],
                 "BertModel": ["BertModelTest"],
             }

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

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







       def 	lowercase__							(				self     :    List[Any]       )					->		Union[str, Any]:


             '''simple docstring'''




             UpperCAmelCase_     					=				get_model_to_tester_mapping(_UpperCAmelCase       )
             UpperCAmelCase_     					=				get_model_to_tester_mapping(_UpperCAmelCase       )

             UpperCAmelCase_     					=				{
                 "BertForMaskedLM": ["BertModelTester"],
                 "BertForMultipleChoice": ["BertModelTester"],
                 "BertForNextSentencePrediction": ["BertModelTester"],
                 "BertForPreTraining": ["BertModelTester"],
                 "BertForQuestionAnswering": ["BertModelTester"],
                 "BertForSequenceClassification": ["BertModelTester"],
                 "BertForTokenClassification": ["BertModelTester"],
                 "BertLMHeadModel": ["BertModelTester"],
                 "BertModel": ["BertModelTester"],
             }

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

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







'''simple docstring'''



from math import isqrt







def   a__			(    a__		):




     """simple docstring"""


     return all(number % divisor != 0 for divisor in range(2 ,       isqrt(a__		) + 1		)		)







def   a__			(    a__ = 10**6		):




     """simple docstring"""


     __SCREAMING_SNAKE_CASE      = 0
     __SCREAMING_SNAKE_CASE      = 1
     __SCREAMING_SNAKE_CASE      = 7
     while prime_candidate < max_prime:
          primes_count += is_prime(a__		)

          cube_index += 1
          prime_candidate += 6 * cube_index

     return primes_count


if __name__ == "__main__":
  print(f"""{solution() = }""")






