


'''simple docstring'''
import os

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







def       a_				(	):
							A_			    =		os.path.dirname(os.path.realpath(UpperCamelCase_ ) )
							A_			    =		os.path.join(UpperCamelCase_						,  "words.txt" )

							A_			    =		""
							with open(UpperCamelCase_ ) as f:
														A_			    =		f.readline()

							A_			    =		[word.strip("\"" ) for word in words.strip("\r\n" ).split("," )]
							A_			    =		[
							    word
							    for word in [sum(ord(UpperCamelCase_ ) - 6_4 for x in word ) for word in words]
							    if word in TRIANGULAR_NUMBERS
							]
							return len(UpperCamelCase_ )


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









'''simple docstring'''
import unittest

from transformers import load_tool

from .test_tools_common import ToolTesterMixin






class 					__lowerCAmelCase   (   unittest.TestCase				,			lowercase						):

						"""simple docstring"""






						def 				_UpperCAmelCase       (  self							:      List[str]	):
													A_			    =		load_tool("text-classification"	)
													self.tool.setup()
													A_			    =		load_tool("text-classification" ,  remote=lowerCAmelCase	)






						def 				_UpperCAmelCase       (  self							:      Union[str, Any]	):
													A_			    =		self.tool("That's quite cool" ,  ["positive", "negative"]	)
													self.assertEqual(lowerCAmelCase ,  "positive"	)






						def 				_UpperCAmelCase       (  self							:      str	):
													A_			    =		self.remote_tool("That's quite cool" ,  ["positive", "negative"]	)
													self.assertEqual(lowerCAmelCase ,  "positive"	)






						def 				_UpperCAmelCase       (  self							:      str	):
													A_			    =		self.tool(text="That's quite cool" ,  labels=["positive", "negative"]	)
													self.assertEqual(lowerCAmelCase ,  "positive"	)






						def 				_UpperCAmelCase       (  self							:      List[Any]	):
													A_			    =		self.remote_tool(text="That's quite cool" ,  labels=["positive", "negative"]	)
													self.assertEqual(lowerCAmelCase ,  "positive"	)





