

"""simple docstring"""





_a       =							{
    0: '0',
    1: '1',
    2: '2',
    3: '3',
    4: '4',
    5: '5',
    6: '6',
    7: '7',
    8: '8',
    9: '9',
    10: 'a',
    11: 'b',
    12: 'c',
    13: 'd',
    14: 'e',
    15: 'f',
}




def   _A  (  UpperCamelCase_     :       float)	->						str:
   '''simple docstring'''


   assert type(UpperCamelCase_) in (int, float) and decimal == int(UpperCamelCase_)
   __lowercase								=						int(UpperCamelCase_)
   __lowercase								=						""
   __lowercase								=						False
   if decimal < 0:
      __lowercase								=						True
      decimal *= -1
   while decimal > 0:
      __lowercase		,__lowercase								=						divmod(UpperCamelCase_,			16)
      __lowercase								=						values[remainder] + hexadecimal
   __lowercase								=						"0x" + hexadecimal
   if negative:
      __lowercase								=						"-" + hexadecimal
   return hexadecimal


if __name__ == "__main__":
   import doctest

   doctest.testmod()







"""simple docstring"""





import unittest

from transformers import load_tool

from .test_tools_common import ToolTesterMixin




class 					_lowerCAmelCase  (	unittest.TestCase     ,lowercase   ):







 """simple docstring"""







 def 					_lowercase (			self							:			List[Any]	):
    __lowercase								=						load_tool("text-classification"	)
    self.tool.setup()
    __lowercase								=						load_tool("text-classification",					remote=UpperCAmelCase__	)


 def 					_lowercase (			self							:			str	):
    __lowercase								=						self.tool("That's quite cool",					["positive", "negative"]	)
    self.assertEqual(UpperCAmelCase__,					"positive"	)


 def 					_lowercase (			self							:			str	):
    __lowercase								=						self.remote_tool("That's quite cool",					["positive", "negative"]	)
    self.assertEqual(UpperCAmelCase__,					"positive"	)


 def 					_lowercase (			self							:			List[str]	):
    __lowercase								=						self.tool(text="That's quite cool",					labels=["positive", "negative"]	)
    self.assertEqual(UpperCAmelCase__,					"positive"	)



 def 					_lowercase (			self							:			Tuple	):
    __lowercase								=						self.remote_tool(text="That's quite cool",					labels=["positive", "negative"]	)
    self.assertEqual(UpperCAmelCase__,					"positive"	)




