
'''simple docstring'''





import unittest

from transformers import load_tool

from .test_tools_common import ToolTesterMixin


A           =   "\nHugging Face was founded in 2016 by French entrepreneurs Clément Delangue, Julien Chaumond, and Thomas Wolf originally as a company that developed a chatbot app targeted at teenagers.[2] After open-sourcing the model behind the chatbot, the company pivoted to focus on being a platform for machine learning.\n\nIn March 2021, Hugging Face raised $40 million in a Series B funding round.[3]\n\nOn April 28, 2021, the company launched the BigScience Research Workshop in collaboration with several other research groups to release an open large language model.[4] In 2022, the workshop concluded with the announcement of BLOOM, a multilingual large language model with 176 billion parameters.[5]\n"



class  lowerCAmelCase__   (       unittest.TestCase					,							UpperCamelCase       ):



  '''simple docstring'''






  def 		_lowerCamelCase	(self  : Optional[int]    )   ->       Optional[Any]:
        snake_case_						       =							load_tool("summarization"    )
        self.tool.setup()
        snake_case_						       =							load_tool("summarization"	, remote=lowerCAmelCase_    )

  def 		_lowerCamelCase	(self  : Union[str, Any]    )   ->       Union[str, Any]:
        snake_case_						       =							self.tool(lowerCAmelCase_    )
        self.assertEqual(
            lowerCAmelCase_	, "Hugging Face was founded in 2016 by French entrepreneurs Clément Delangue, Julien Chaumond, and Thomas Wolf. In March 2021, Hugging Face raised $40 million in a Series B funding round. On April 28, 2021, the company launched the BigScience Research Workshop in collaboration with several other research groups to release an open large language model. In 2022, the workshop concluded with the announcement of BLOOM."	, )

  def 		_lowerCamelCase	(self  : str    )   ->       Optional[Any]:
        snake_case_						       =							self.remote_tool(lowerCAmelCase_    )
        self.assertEqual(
            lowerCAmelCase_	, "Hugging Face was founded in 2016 by French entrepreneurs Clément Delangue, Julien Chaumond, and Thomas Wolf. In March 2021, Hugging Face raised $40 million in a Series B funding round. On April 28, 2021, the company launched the BigScience Research Workshop in collaboration with several other research groups to release an open large language model. In 2022, the workshop concluded with the announcement of BLOOM."	, )

  def 		_lowerCamelCase	(self  : List[Any]    )   ->       Any:
        snake_case_						       =							self.tool(text=lowerCAmelCase_    )
        self.assertEqual(
            lowerCAmelCase_	, "Hugging Face was founded in 2016 by French entrepreneurs Clément Delangue, Julien Chaumond, and Thomas Wolf. In March 2021, Hugging Face raised $40 million in a Series B funding round. On April 28, 2021, the company launched the BigScience Research Workshop in collaboration with several other research groups to release an open large language model. In 2022, the workshop concluded with the announcement of BLOOM."	, )


  def 		_lowerCamelCase	(self  : Optional[int]    )   ->       List[str]:
        snake_case_						       =							self.remote_tool(text=lowerCAmelCase_    )
        self.assertEqual(
            lowerCAmelCase_	, "Hugging Face was founded in 2016 by French entrepreneurs Clément Delangue, Julien Chaumond, and Thomas Wolf. In March 2021, Hugging Face raised $40 million in a Series B funding round. On April 28, 2021, the company launched the BigScience Research Workshop in collaboration with several other research groups to release an open large language model. In 2022, the workshop concluded with the announcement of BLOOM."	, )



'''simple docstring'''





def   snake_case_       (							_a     :							List[str] ,					_a     :							List[str]			):
      snake_case_						       =							1
      while b > 0:
            if b & 1:
                  res *= a

            a *= a
            b >>= 1

      return res
def   snake_case_       (							_a     :							Union[str, Any] ,					_a     :							Tuple ,					_a     :							Optional[Any]			):
      snake_case_						       =							1
      while b > 0:
            if b & 1:
                  snake_case_						       =							((res % c) * (a % c)) % c

            a *= a
            b >>= 1

      return res

