





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



def 							lowerCAmelCase_				(    A_):
    UpperCamelCase__:					List[Any]												=      hex_string.strip().lower()
    if not hex_string:
        raise ValueError("Empty string was passed to the function")
    UpperCamelCase__:					str												=      hex_string[0] == "-"
    if is_negative:
        UpperCamelCase__:					int												=      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")
    UpperCamelCase__:					Optional[int]												=      0
    for char in hex_string:
        UpperCamelCase__:					Tuple												=      16 * decimal_number + hex_table[char]
    return -decimal_number if is_negative else decimal_number


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

   testmod()








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

