





import unittest

from transformers import is_torch_available, load_tool

from .test_tools_common import ToolTesterMixin


if is_torch_available():
     import torch



class 				_UpperCamelCase       (						unittest.TestCase	,    lowerCAmelCase_  ):

       def lowercase			(		self:			Tuple		)							->			Optional[int]:




              """simple docstring"""


              UpperCamelCase_ 							=	load_tool("speech-to-text"		)
              self.tool.setup()

       def lowercase			(		self:			Optional[Any]		)							->			int:




              """simple docstring"""


              UpperCamelCase_ 							=	self.tool(torch.ones(3000		)		)
              self.assertEqual(_SCREAMING_SNAKE_CASE       , " you"		)



       def lowercase			(		self:			Optional[Any]		)							->			List[str]:




              """simple docstring"""


              UpperCamelCase_ 							=	self.tool(audio=torch.ones(3000		)		)
              self.assertEqual(_SCREAMING_SNAKE_CASE       , " you"		)








from __future__ import annotations




def 			lowerCAmelCase_			(				UpperCamelCase_	)  ->		int | None:
       for r in range(1       ,		UpperCamelCase_	):
              UpperCamelCase_ 							=	[]
              for x in range(n - 1	):
                     UpperCamelCase_ 							=	pow(UpperCamelCase_       ,		UpperCamelCase_       ,		UpperCamelCase_	)
                     if val in li:
                            break
                     li.append(UpperCamelCase_	)
              else:
                     return r
       return None


if __name__ == "__main__":
     _UpperCAmelCase										=					int(input('Enter a prime number q: '))
     _UpperCAmelCase										=					find_primitive(q)
     if a is None:
          print(f'''Cannot find the primitive for the value: {a!r}''')
     else:
          _UpperCAmelCase										=					int(input('Enter private key of A: '))
          _UpperCAmelCase										=					pow(a, a_private, q)
          _UpperCAmelCase										=					int(input('Enter private key of B: '))
          _UpperCAmelCase										=					pow(a, b_private, q)

          _UpperCAmelCase										=					pow(b_public, a_private, q)
          _UpperCAmelCase										=					pow(a_public, b_private, q)

          print('The key value generated by A is: ', a_secret)
          print('The key value generated by B is: ', b_secret)

