"""simple docstring"""



def  _A(		lowerCAmelCase							):
							A__       :     List[str]								=			int(lowerCAmelCase							)
							if decimal in (0, 1):  # Exit cases for the recursion
														return str(lowerCAmelCase							)
							A__				,							A__       :     Dict								=			divmod(lowerCAmelCase			,  2							)
							return binary_recursive(lowerCAmelCase							) + str(lowerCAmelCase							)

def  _A(		lowerCAmelCase							):
							A__       :     Dict								=			str(lowerCAmelCase							).strip()
							if not number:
														raise ValueError("""No input value was provided"""							)
							A__       :     Union[str, Any]								=			"""-""" if number.startswith("""-"""							) else """"""
							A__       :     Optional[Any]								=			number.lstrip("""-"""							)
							if not number.isnumeric():
														raise ValueError("""Input value is not an integer"""							)
							return F'''{negative}0b{binary_recursive(int(lowerCAmelCase							)							)}'''


if __name__ == "__main__":
				from doctest import testmod

				testmod()






"""simple docstring"""



import unittest

from transformers import load_tool

from .test_tools_common import ToolTesterMixin
class 						__UpperCAmelCase    (unittest.TestCase							,   __A     ):







			'''simple docstring'''





			def 		lowerCamelCase					(			self							):







										'''simple docstring'''


										A__       :     List[Any]								=			load_tool("""text-classification"""							)
										self.tool.setup()
										A__       :     Any								=			load_tool("""text-classification"""   ,      remote=snake_case_							)





			def 		lowerCamelCase					(			self							):







										'''simple docstring'''


										A__       :     int								=			self.tool("""That's quite cool"""   ,      ["""positive""", """negative"""]							)
										self.assertEqual(snake_case_   ,      """positive"""							)





			def 		lowerCamelCase					(			self							):







										'''simple docstring'''


										A__       :     Optional[Any]								=			self.remote_tool("""That's quite cool"""   ,      ["""positive""", """negative"""]							)
										self.assertEqual(snake_case_   ,      """positive"""							)





			def 		lowerCamelCase					(			self							):







										'''simple docstring'''


										A__       :     str								=			self.tool(text="""That's quite cool"""   ,      labels=["""positive""", """negative"""]							)
										self.assertEqual(snake_case_   ,      """positive"""							)





			def 		lowerCamelCase					(			self							):







										'''simple docstring'''


										A__       :     int								=			self.remote_tool(text="""That's quite cool"""   ,      labels=["""positive""", """negative"""]							)
										self.assertEqual(snake_case_   ,      """positive"""							)





