






__UpperCAmelCase							:   str							=  {
    0: '''0''',
    1: '''1''',
    2: '''2''',
    3: '''3''',
    4: '''4''',
    5: '''5''',
    6: '''6''',
    7: '''7''',
    8: '''8''',
    9: '''9''',
    1_0: '''a''',
    1_1: '''b''',
    1_2: '''c''',
    1_3: '''d''',
    1_4: '''e''',
    1_5: '''f''',
}





def 					lowercase_ (    __snake_case     :							float      )     -> List[Any]:





				'''simple docstring'''


				assert type(UpperCAmelCase__      ) in (int, float) and decimal == int(UpperCAmelCase__      )
				snake_case__      :Dict         =   int(UpperCAmelCase__      )
				snake_case__      :Optional[Any]         =   ""
				snake_case__      :Any         =   False
				if decimal < 0:
								snake_case__      :int         =   True
								decimal *= -1
				while decimal > 0:
								snake_case__    ,						snake_case__      :Union[str, Any]         =   divmod(UpperCAmelCase__	,	16      )
								snake_case__      :Union[str, Any]         =   values[remainder] + hexadecimal
				snake_case__      :Tuple         =   "0x" + hexadecimal
				if negative:
								snake_case__      :Optional[Any]         =   "-" + hexadecimal
				return hexadecimal


if __name__ == "__main__":
	import doctest

	doctest.testmod()







from typing import TYPE_CHECKING

from ...utils import OptionalDependencyNotAvailable, _LazyModule, is_sentencepiece_available


__UpperCAmelCase							:   Tuple							=  {}

try:
	if not is_sentencepiece_available():
		raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
	pass
else:
	__UpperCAmelCase							:   List[Any]							=  ["BartphoTokenizer"]

if TYPE_CHECKING:
	try:
		if not is_sentencepiece_available():
			raise OptionalDependencyNotAvailable()
	except OptionalDependencyNotAvailable:
		pass
	else:
		from .tokenization_bartpho import BartphoTokenizer

else:
	import sys

	__UpperCAmelCase							:   Tuple							=  _LazyModule(__name__, globals()["__file__"], _import_structure, module_spec=__spec__)