






'''simple docstring'''







import unittest

from transformers import load_tool

from .test_tools_common import ToolTesterMixin

class _lowercase	(				unittest.TestCase				,      _lowercase		):




							def 		lowerCamelCase_				(							self:				str     ):
														lowerCamelCase__					:	Union[str, Any]         =       load_tool("""text-classification"""     )
														self.tool.setup()
														lowerCamelCase__					:	Optional[int]         =       load_tool("""text-classification"""			,							remote=UpperCamelCase__     )




							def 		lowerCamelCase_				(							self:				Dict     ):
														lowerCamelCase__					:	Optional[int]         =       self.tool("""That's quite cool"""			,							["""positive""", """negative"""]     )
														self.assertEqual(UpperCamelCase__			,							"""positive"""     )




							def 		lowerCamelCase_				(							self:				Tuple     ):
														lowerCamelCase__					:	Optional[int]         =       self.remote_tool("""That's quite cool"""			,							["""positive""", """negative"""]     )
														self.assertEqual(UpperCamelCase__			,							"""positive"""     )




							def 		lowerCamelCase_				(							self:				Optional[Any]     ):
														lowerCamelCase__					:	str         =       self.tool(text="""That's quite cool"""			,							labels=["""positive""", """negative"""]     )
														self.assertEqual(UpperCamelCase__			,							"""positive"""     )




							def 		lowerCamelCase_				(							self:				str     ):
														lowerCamelCase__					:	List[Any]         =       self.remote_tool(text="""That's quite cool"""			,							labels=["""positive""", """negative"""]     )
														self.assertEqual(UpperCamelCase__			,							"""positive"""     )









'''simple docstring'''







from collections.abc import Sequence





def  SCREAMING_SNAKE_CASE_       (UpperCamelCase				,			UpperCamelCase      )      ->       float:
							return sum(c * (x**i) for i, c in enumerate(UpperCamelCase      )      )





def  SCREAMING_SNAKE_CASE_       (UpperCamelCase				,			UpperCamelCase      )      ->       float:
							lowerCamelCase__					:	str         =       0.0
							for coeff in reversed(UpperCamelCase      ):
														lowerCamelCase__					:	Optional[int]         =       result * x + coeff
							return result


if __name__ == "__main__":
			_A	:			Any         =(0.0, 0.0, 5.0, 9.3, 7.0)
			_A	:			Optional[Any]         =10.0
			print(evaluate_poly(poly, x))
			print(horner(poly, x))

