




"""simple docstring"""

UpperCamelCase__			:     List[Any]			       =				{hex(i)[2:]: i for i in range(16)}  # Use [:2] to strip off the leading '0x'




def    snake_case__						(							lowerCAmelCase :		str		):
					__snake_case        =						hex_string.strip().lower()
					if not hex_string:
										raise ValueError("""Empty string was passed to the function"""		)
					__snake_case        =						hex_string[0] == """-"""
					if is_negative:
										__snake_case        =						hex_string[1:]
					if not all(char in hex_table for char in hex_string		):
										raise ValueError("""Non-hexadecimal value was passed to the function"""		)
					__snake_case        =						0
					for char in hex_string:
										__snake_case        =						16 * decimal_number + hex_table[char]
					return -decimal_number if is_negative else decimal_number


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

		testmod()








"""simple docstring"""

from .chunk_utils import chunk_layer
from .data_transforms import make_atomaa_masks
from .feats import atomaa_to_atomaa, frames_and_literature_positions_to_atomaa_pos, torsion_angles_to_frames
from .loss import compute_predicted_aligned_error, compute_tm
from .protein import Protein as OFProtein
from .protein import to_pdb
from .rigid_utils import Rigid, Rotation
from .tensor_utils import dict_multimap, flatten_final_dims, permute_final_dims


