



import os
import sys
import unittest


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


UpperCAmelCase__     = os.path.join("tests", "models", "bert", "test_modeling_bert.py")
UpperCAmelCase__     = os.path.join("tests", "models", "blip", "test_modeling_blip.py")







class     __lowerCAmelCase					(    unittest.TestCase		):



			def 					_lowerCamelCase (		self     :						Any)     ->					List[str]:



						"""simple docstring"""






						_UpperCAmelCase	 =     get_test_to_tester_mapping(A)
						_UpperCAmelCase	 =     get_test_to_tester_mapping(A)

						_UpperCAmelCase	 =     {'BertModelTest': 'BertModelTester'}

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

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



			def 					_lowerCamelCase (		self     :						Optional[int])     ->					List[Any]:



						"""simple docstring"""






						_UpperCAmelCase	 =     get_model_to_test_mapping(A)
						_UpperCAmelCase	 =     get_model_to_test_mapping(A)

						_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(A)				,	A)
						self.assertEqual(get_test_info.to_json(A)				,	A)



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



						"""simple docstring"""






						_UpperCAmelCase	 =     get_model_to_tester_mapping(A)
						_UpperCAmelCase	 =     get_model_to_tester_mapping(A)

						_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(A)				,	A)
						self.assertEqual(get_test_info.to_json(A)				,	A)





import os

# Precomputes a list of the 100 first triangular numbers
UpperCAmelCase__     = [int(0.5 * n * (n + 1)) for n in range(1, 101)]





def 							A			(  )       ->				List[str]:







			'''simple docstring'''
			_UpperCAmelCase	 =     os.path.dirname(os.path.realpath(_UpperCAmelCase					)					)
			_UpperCAmelCase	 =     os.path.join(_UpperCAmelCase							,     'words.txt'					)

			_UpperCAmelCase	 =     ''
			with open(_UpperCAmelCase					) as f:
						_UpperCAmelCase	 =     f.readline()

			_UpperCAmelCase	 =     [word.strip('"'					) for word in words.strip('\r\n'					).split(','					)]
			_UpperCAmelCase	 =     [
			    word
			    for word in [sum(ord(_UpperCAmelCase					) - 64 for x in word					) for word in words]
			    if word in TRIANGULAR_NUMBERS
			]
			return len(_UpperCAmelCase					)


if __name__ == "__main__":
							print(solution())
