





"""simple docstring"""
import os
from string import ascii_letters

__UpperCamelCase    :	Tuple						=     ascii_letters + ''' \t\n'''

def 		_SCREAMING_SNAKE_CASE ():
 lowerCAmelCase													=   os.path.split(os.path.realpath(_UpperCAmelCase ) )
 lowerCAmelCase													=   {}
 with open(path[0] + '/dictionary.txt' ) as dictionary_file:
  for word in dictionary_file.read().split('\n' ):
   lowerCAmelCase													=   None
 return english_words


__UpperCamelCase    :	List[str]						=     load_dictionary()

def 		_SCREAMING_SNAKE_CASE (_UpperCAmelCase				:						str ):
 lowerCAmelCase													=   message.upper()
 lowerCAmelCase													=   remove_non_letters(_UpperCAmelCase )
 lowerCAmelCase													=   message.split()
 lowerCAmelCase													=   len([word for word in possible_words if word in ENGLISH_WORDS] )
 return float(_UpperCAmelCase ) / len(_UpperCAmelCase )

def 		_SCREAMING_SNAKE_CASE (_UpperCAmelCase				:						str ):
 return "".join(symbol for symbol in message if symbol in LETTERS_AND_SPACE )

def 		_SCREAMING_SNAKE_CASE (_UpperCAmelCase				:						str     ,    _UpperCAmelCase				:						int = 20     ,    _UpperCAmelCase				:						int = 85 ):
 lowerCAmelCase													=   get_english_count(_UpperCAmelCase ) * 100 >= word_percentage
 lowerCAmelCase													=   len(remove_non_letters(_UpperCAmelCase ) )
 lowerCAmelCase													=   (float(_UpperCAmelCase ) / len(_UpperCAmelCase )) * 100
 lowerCAmelCase													=   message_letters_percentage >= letter_percentage
 return words_match and letters_match


if __name__ == "__main__":
       import doctest

       doctest.testmod()












"""simple docstring"""
def 		_SCREAMING_SNAKE_CASE (_UpperCAmelCase				:						int     ,    _UpperCAmelCase				:						int ):
 return (input_a, input_a).count(0 ) % 2

def 		_SCREAMING_SNAKE_CASE ():
 assert xor_gate(0     ,    0 ) == 0
 assert xor_gate(0     ,    1 ) == 1
 assert xor_gate(1     ,    0 ) == 1
 assert xor_gate(1     ,    1 ) == 0


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





