




def 			_a   (		SCREAMING_SNAKE_CASE_							:       int   ,   SCREAMING_SNAKE_CASE_							:       int  ):
					if number < 0 or shift_amount < 0:
										raise ValueError("both inputs must be positive integers"  )

					__lowerCAmelCase            = str(bin(SCREAMING_SNAKE_CASE_  )  )
					binary_number += "0" * shift_amount
					return binary_number







def 			_a   (		SCREAMING_SNAKE_CASE_							:       int   ,   SCREAMING_SNAKE_CASE_							:       int  ):
					if number < 0 or shift_amount < 0:
										raise ValueError("both inputs must be positive integers"  )

					__lowerCAmelCase            = str(bin(SCREAMING_SNAKE_CASE_  )  )[2:]
					if shift_amount >= len(SCREAMING_SNAKE_CASE_  ):
										return "0b0"
					__lowerCAmelCase            = binary_number[: len(SCREAMING_SNAKE_CASE_  ) - shift_amount]
					return "0b" + shifted_binary_number







def 			_a   (		SCREAMING_SNAKE_CASE_							:       int   ,   SCREAMING_SNAKE_CASE_							:       int  ):
					if number >= 0:  # Get binary representation of positive number
										__lowerCAmelCase            = "0" + str(bin(SCREAMING_SNAKE_CASE_  )  ).strip("-"  )[2:]
					else:  # Get binary (2's complement) representation of negative number
										__lowerCAmelCase            = len(bin(SCREAMING_SNAKE_CASE_  )[3:]  )  # Find 2's complement of number
										__lowerCAmelCase            = bin(abs(SCREAMING_SNAKE_CASE_  ) - (1 << binary_number_length)  )[3:]
										__lowerCAmelCase            = (
										    "1" + "0" * (binary_number_length - len(SCREAMING_SNAKE_CASE_  )) + binary_number
										)

					if shift_amount >= len(SCREAMING_SNAKE_CASE_  ):
										return "0b" + binary_number[0] * len(SCREAMING_SNAKE_CASE_  )
					return (
					    "0b"
					    + binary_number[0] * shift_amount
					    + binary_number[: len(SCREAMING_SNAKE_CASE_  ) - shift_amount]
					)


if __name__ == "__main__":
					import doctest

					doctest.testmod()










from typing import TYPE_CHECKING

from ....utils import _LazyModule


UpperCamelCase__					    =    {"""tokenization_tapex""": ["""TapexTokenizer"""]}


if TYPE_CHECKING:
					from .tokenization_tapex import TapexTokenizer


else:
					import sys

					UpperCamelCase__					    =    _LazyModule(__name__, globals()["""__file__"""], _import_structure)




