



'''simple docstring'''
from hashlib import mda, shaaaa

_UpperCamelCase											=			(shaaaa, mda)



class _A  :





		def __init__(     self ,       __UpperCAmelCase = 8				)       ->     None:

					'''simple docstring'''
					__UpperCAmelCase   :      int										=     0B0
					__UpperCAmelCase   :      Optional[Any]										=     size





		def 							__A       (     self ,       __UpperCAmelCase				)       ->     None:

					'''simple docstring'''
					__UpperCAmelCase   :      int										=     self.hash_(__UpperCAmelCase				)
					self.bitarray |= h





		def 							__A       (     self ,       __UpperCAmelCase				)       ->     bool:

					'''simple docstring'''
					__UpperCAmelCase   :      Dict										=     self.hash_(__UpperCAmelCase				)
					return (h & self.bitarray) == h





		def __contains__(     self ,       __UpperCAmelCase				)       ->     bool:

					'''simple docstring'''
					return self.exists(__UpperCAmelCase				)





		def 							__A       (     self ,       __UpperCAmelCase				)       ->     str:

					'''simple docstring'''
					__UpperCAmelCase   :      Tuple										=     bin(__UpperCAmelCase				)[2:]
					return res.zfill(self.size				)





		@property
		def 							__A       (     self				)       ->     str:

					'''simple docstring'''
					return self.format_bin(self.bitarray				)





		def 							__A       (     self ,       __UpperCAmelCase				)       ->     int:

					'''simple docstring'''
					__UpperCAmelCase   :      Optional[Any]										=     0B0
					for func in HASH_FUNCTIONS:
								__UpperCAmelCase   :      List[str]										=     (
								    int.from_bytes(func(value.encode()				).digest() ,       """little"""				) % self.size
								)
								res |= 2**position
					return res





		def 							__A       (     self ,       __UpperCAmelCase				)       ->     str:

					'''simple docstring'''
					return self.format_bin(self.hash_(__UpperCAmelCase				)				)





		@property
		def 							__A       (     self				)       ->     float:

					'''simple docstring'''
					__UpperCAmelCase   :      Dict										=     bin(self.bitarray				).count("""1"""				)
					return (n_ones / self.size) ** len(__UpperCAmelCase				)









'''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




