
"""simple docstring"""





from __future__ import annotations







def 	__a     (		__lowerCamelCase,		__lowerCamelCase,		__lowerCamelCase  ):
   if days_between_payments <= 0:
      raise ValueError("days_between_payments must be > 0"  )
   if daily_interest_rate < 0:
      raise ValueError("daily_interest_rate must be >= 0"  )
   if principal <= 0:
      raise ValueError("principal must be > 0"  )
   return principal * daily_interest_rate * days_between_payments







def 	__a     (		__lowerCamelCase,		__lowerCamelCase,		__lowerCamelCase,		):
   if number_of_compounding_periods <= 0:
      raise ValueError("number_of_compounding_periods must be > 0"  )
   if nominal_annual_interest_rate_percentage < 0:
      raise ValueError("nominal_annual_interest_rate_percentage must be >= 0"  )
   if principal <= 0:
      raise ValueError("principal must be > 0"  )

   return principal * (
       (1 + nominal_annual_interest_rate_percentage) ** number_of_compounding_periods
       - 1
   )







def 	__a     (		__lowerCamelCase,		__lowerCamelCase,		__lowerCamelCase,		):
   if number_of_years <= 0:
      raise ValueError("number_of_years must be > 0"  )
   if nominal_annual_percentage_rate < 0:
      raise ValueError("nominal_annual_percentage_rate must be >= 0"  )
   if principal <= 0:
      raise ValueError("principal must be > 0"  )

   return compound_interest(
       __lowerCamelCase,		nominal_annual_percentage_rate / 365,		number_of_years * 365  )


if __name__ == "__main__":
    import doctest

    doctest.testmod()










"""simple docstring"""





import unittest

from transformers import load_tool

from .test_tools_common import ToolTesterMixin


_SCREAMING_SNAKE_CASE					:				Optional[int]					    =						'''
Hugging 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.

In March 2021, Hugging Face raised $40 million in a Series B funding round.[3]

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.[4] In 2022, the workshop concluded with the announcement of BLOOM, a multilingual large language model with 176 billion parameters.[5]
'''






class      a						(					unittest.TestCase  ,      __snake_case		):






    def    UpperCamelCase       (       self     :							int					)     ->		Optional[int]:
      lowerCamelCase_         =						load_tool('text-question-answering'					)
      self.tool.setup()
      lowerCamelCase_         =						load_tool('text-question-answering'       ,						remote=__SCREAMING_SNAKE_CASE					)






    def    UpperCamelCase       (       self     :							Dict					)     ->		Tuple:
      lowerCamelCase_         =						self.tool(__SCREAMING_SNAKE_CASE       ,						'What did Hugging Face do in April 2021?'					)
      self.assertEqual(__SCREAMING_SNAKE_CASE       ,						'launched the BigScience Research Workshop'					)






    def    UpperCamelCase       (       self     :							List[Any]					)     ->		Optional[int]:
      lowerCamelCase_         =						self.remote_tool(__SCREAMING_SNAKE_CASE       ,						'What did Hugging Face do in April 2021?'					)
      self.assertEqual(__SCREAMING_SNAKE_CASE       ,						'launched the BigScience Research Workshop'					)






    def    UpperCamelCase       (       self     :							List[str]					)     ->		Optional[int]:
      lowerCamelCase_         =						self.tool(text=__SCREAMING_SNAKE_CASE       ,						question='What did Hugging Face do in April 2021?'					)
      self.assertEqual(__SCREAMING_SNAKE_CASE       ,						'launched the BigScience Research Workshop'					)






    def    UpperCamelCase       (       self     :							Union[str, Any]					)     ->		int:
      lowerCamelCase_         =						self.remote_tool(text=__SCREAMING_SNAKE_CASE       ,						question='What did Hugging Face do in April 2021?'					)
      self.assertEqual(__SCREAMING_SNAKE_CASE       ,						'launched the BigScience Research Workshop'					)




