





"""simple docstring"""





def       a__					(					_SCREAMING_SNAKE_CASE  ,	_SCREAMING_SNAKE_CASE    ):




		"""simple docstring"""


		if number < 0 or shift_amount < 0:
				raise ValueError("both inputs must be positive integers"    )

		UpperCamelCase   =	str(bin(_SCREAMING_SNAKE_CASE    )    )
		binary_number += "0" * shift_amount
		return binary_number


def       a__					(					_SCREAMING_SNAKE_CASE  ,	_SCREAMING_SNAKE_CASE    ):




		"""simple docstring"""


		if number < 0 or shift_amount < 0:
				raise ValueError("both inputs must be positive integers"    )

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


def       a__					(					_SCREAMING_SNAKE_CASE  ,	_SCREAMING_SNAKE_CASE    ):




		"""simple docstring"""


		if number >= 0:  # Get binary representation of positive number
				UpperCamelCase   =	"0" + str(bin(_SCREAMING_SNAKE_CASE    )    ).strip("-"    )[2:]
		else:  # Get binary (2's complement) representation of negative number
				UpperCamelCase   =	len(bin(_SCREAMING_SNAKE_CASE    )[3:]    )  # Find 2's complement of number
				UpperCamelCase   =	bin(abs(_SCREAMING_SNAKE_CASE    ) - (1 << binary_number_length)    )[3:]
				UpperCamelCase   =	(
				    "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()













"""simple docstring"""





import os

from huggingface_hub.constants import HUGGINGFACE_HUB_CACHE, hf_cache_home


lowerCAmelCase__     			=			HUGGINGFACE_HUB_CACHE


lowerCAmelCase__     			=			'''config.json'''
lowerCAmelCase__     			=			'''diffusion_pytorch_model.bin'''
lowerCAmelCase__     			=			'''diffusion_flax_model.msgpack'''
lowerCAmelCase__     			=			'''model.onnx'''
lowerCAmelCase__     			=			'''diffusion_pytorch_model.safetensors'''
lowerCAmelCase__     			=			'''weights.pb'''
lowerCAmelCase__     			=			'''https://huggingface.co'''
lowerCAmelCase__     			=			default_cache_path
lowerCAmelCase__     			=			'''diffusers_modules'''
lowerCAmelCase__     			=			os.getenv('''HF_MODULES_CACHE''', os.path.join(hf_cache_home, '''modules'''))
lowerCAmelCase__     			=			['''fp16''', '''non-ema''']
lowerCAmelCase__     			=			'''.self_attn'''






