



from __future__ import annotations

import collections
import pprint
from pathlib import Path



def 			_lowerCAmelCase       (					__lowerCAmelCase      )   ->					str:


				"""simple docstring"""

				return "".join(sorted(__lowerCAmelCase      )      )



def 			_lowerCAmelCase       (					__lowerCAmelCase      )   ->					list[str]:


				"""simple docstring"""

				return word_by_signature[signature(__lowerCAmelCase      )]


A__								=						Path(__file__).parent.joinpath('''words.txt''').read_text(encoding='''utf-8''')
A__								=						sorted({word.strip().lower() for word in data.splitlines()})

A__								=						collections.defaultdict(list)
for word in word_list:
				word_by_signature[signature(word)].append(word)

if __name__ == "__main__":
				A__								=						{word: anagram(word) for word in word_list if len(anagram(word)) > 1}

				with open('''anagrams.txt''', '''w''') as file:
								file.write('''all_anagrams = \n ''')
								file.write(pprint.pformat(all_anagrams))






def 			_lowerCAmelCase       (					__lowerCAmelCase  ,  __lowerCAmelCase      )   ->					int:


				"""simple docstring"""

				return int((input_a, input_a).count(1      ) != 0      )



def 			_lowerCAmelCase       (					)   ->					None:


				"""simple docstring"""

				assert or_gate(0  ,  0      ) == 0
				assert or_gate(0  ,  1      ) == 1
				assert or_gate(1  ,  0      ) == 1
				assert or_gate(1  ,  1      ) == 1


if __name__ == "__main__":
				print(or_gate(0, 1))
				print(or_gate(1, 0))
				print(or_gate(0, 0))
				print(or_gate(1, 1))

