




'''simple docstring'''


import re
from pathlib import Path
from unittest import TestCase

import pytest





@pytest.mark.integration
class    __lowercase						(  __magic_name__ ):







   def 		UpperCamelCase__			(	self      ,							UpperCamelCase      )				->    int:

     with open(UpperCamelCase      ,							encoding='utf-8'      ) as input_file:
       __a			=					re.compile(R'(?!.*\b(?:encoding|rb|w|wb|w+|wb+|ab|ab+)\b)(?<=\s)(open)\((.*)\)'      )
       __a			=					input_file.read()
       __a			=					regexp.search(UpperCamelCase      )

     return match







   def 		UpperCamelCase__			(	self      ,							UpperCamelCase      )				->    List[Any]:

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

     __a			=					[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 		UpperCamelCase__			(	self      )				->    Optional[Any]:
     __a			=					Path('./datasets'      )
     __a			=					list(dataset_paths.absolute().glob('**/*.py'      )      )

     for dataset in dataset_files:
       if self._no_encoding_on_file_open(str(UpperCamelCase      )      ):
         raise AssertionError(f"open(...) must use utf-8 encoding in {dataset}"      )







   def 		UpperCamelCase__			(	self      )				->    Any:
     __a			=					Path('./datasets'      )
     __a			=					list(dataset_paths.absolute().glob('**/*.py'      )      )

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









'''simple docstring'''


def 						SCREAMING_SNAKE_CASE       (      a_	:							int				,					a_	:							int			):
  return int((input_a, input_a).count(0			) != 0			)


def 						SCREAMING_SNAKE_CASE       (      ):
  assert nand_gate(0				,					0			) == 1
  assert nand_gate(0				,					1			) == 1
  assert nand_gate(1				,					0			) == 1
  assert nand_gate(1				,					1			) == 0


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



