


import re
from pathlib import Path
from unittest import TestCase

import pytest







@pytest.mark.integration
class 		_snake_case  (      _snake_case							):




 def        SCREAMING_SNAKE_CASE__				(		self					,  _lowerCamelCase    ):

       with open(_lowerCamelCase					,  encoding='''utf-8'''    ) as input_file:
             a						:List[str] 							=       re.compile(R'''(?!.*\b(?:encoding|rb|w|wb|w+|wb+|ab|ab+)\b)(?<=\s)(open)\((.*)\)'''    )
             a						:Dict 							=       input_file.read()
             a						:Optional[int] 							=       regexp.search(_lowerCamelCase    )

       return match




 def        SCREAMING_SNAKE_CASE__				(		self					,  _lowerCamelCase    ):

       with open(_lowerCamelCase					,  encoding='''utf-8'''    ) as input_file:
             a						:Dict 							=       re.compile(R'''#[^\r\n]*print\(|\"[^\r\n]*print\(|\"\"\".*?print\(.*?\"\"\"|(print\()'''					,  re.DOTALL    )
             a						:Optional[int] 							=       input_file.read()
             # use `re.finditer` to handle the case where the ignored groups would be matched first by `re.search`
             a						:Optional[Any] 							=       regexp.finditer(_lowerCamelCase    )

       a						:List[Any] 							=       [match for match in matches if match is not None and match.group(1    ) is not None]
       return matches[0] if matches else None




 def        SCREAMING_SNAKE_CASE__				(		self    ):
       a						:Optional[Any] 							=       Path('''./datasets'''    )
       a						:Optional[Any] 							=       list(dataset_paths.absolute().glob('''**/*.py'''    )    )

       for dataset in dataset_files:
             if self._no_encoding_on_file_open(str(_lowerCamelCase    )    ):
                   raise AssertionError(F'''open(...) must use utf-8 encoding in {dataset}'''    )




 def        SCREAMING_SNAKE_CASE__				(		self    ):
       a						:str 							=       Path('''./datasets'''    )
       a						:int 							=       list(dataset_paths.absolute().glob('''**/*.py'''    )    )

       for dataset in dataset_files:
             if self._no_print_statements(str(_lowerCamelCase    )    ):
                   raise AssertionError(F'''print statement found in {dataset}. Use datasets.logger/logging instead.'''    )







"""simple docstring"""





from collections import defaultdict



def 						_lowerCAmelCase				(				UpperCamelCase_  ,				UpperCamelCase_				):
		__SCREAMING_SNAKE_CASE            = first_str.lower().strip()
		__SCREAMING_SNAKE_CASE            = second_str.lower().strip()

		# Remove whitespace
		__SCREAMING_SNAKE_CASE            = first_str.replace(""" """  ,				""""""				)
		__SCREAMING_SNAKE_CASE            = second_str.replace(""" """  ,				""""""				)

		# Strings of different lengths are not anagrams
		if len(UpperCamelCase_				) != len(UpperCamelCase_				):
				return False

		# Default values for count should be 0
		__SCREAMING_SNAKE_CASE            = defaultdict(UpperCamelCase_				)

		# For each character in input strings,
		# increment count in the corresponding
		for i in range(len(UpperCamelCase_				)				):
				count[first_str[i]] += 1
				count[second_str[i]] -= 1

		return all(_count == 0 for _count in count.values()				)


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

							testmod()
							__magic_name__       =			input("Enter the first string ").strip()
							__magic_name__       =			input("Enter the second string ").strip()

							__magic_name__       =			check_anagrams(input_a, input_b)
							print(F"""{input_a} and {input_b} are {"" if status else "not "}anagrams.""")




