
'''simple docstring'''







import unittest

from transformers import load_tool

from .test_tools_common import ToolTesterMixin






class 			lowerCAmelCase__       (  unittest.TestCase   ,						A__					):






					def      _snake_case   (       self		):


											"""simple docstring"""





											lowercase_     :					Dict													=	load_tool('''text-classification'''		)
											self.tool.setup()
											lowercase_     :					int													=	load_tool('''text-classification'''    ,							remote=__A		)






					def      _snake_case   (       self		):


											"""simple docstring"""





											lowercase_     :					Any													=	self.tool('''That\'s quite cool'''    ,							['''positive''', '''negative''']		)
											self.assertEqual(__A    ,							'''positive'''		)






					def      _snake_case   (       self		):


											"""simple docstring"""





											lowercase_     :					str													=	self.remote_tool('''That\'s quite cool'''    ,							['''positive''', '''negative''']		)
											self.assertEqual(__A    ,							'''positive'''		)






					def      _snake_case   (       self		):


											"""simple docstring"""





											lowercase_     :					Dict													=	self.tool(text='''That\'s quite cool'''    ,							labels=['''positive''', '''negative''']		)
											self.assertEqual(__A    ,							'''positive'''		)






					def      _snake_case   (       self		):


											"""simple docstring"""





											lowercase_     :					Dict													=	self.remote_tool(text='''That\'s quite cool'''    ,							labels=['''positive''', '''negative''']		)
											self.assertEqual(__A    ,							'''positive'''		)





'''simple docstring'''







from maths.is_square_free import is_square_free
from maths.prime_factors import prime_factors
def  snake_case_		(    __SCREAMING_SNAKE_CASE :			int							):



						"""simple docstring"""





						lowercase_     :					Tuple													=	prime_factors(__SCREAMING_SNAKE_CASE							)
						if is_square_free(__SCREAMING_SNAKE_CASE							):
												return -1 if len(__SCREAMING_SNAKE_CASE							) % 2 else 1
						return 0


if __name__ == "__main__":
							import doctest

							doctest.testmod()



