


import os
import tempfile
import unittest

from transformers.models.marian.convert_marian_tatoeba_to_pytorch import DEFAULT_REPO, TatoebaConverter
from transformers.testing_utils import slow
from transformers.utils import cached_property




@unittest.skipUnless(os.path.exists(lowercase__   )      ,					'Tatoeba directory does not exist.'   )
class       lowercase_					(unittest.TestCase   ):





				@cached_property
				def 						__UpperCamelCase    (				self)  -> List[str]:
											a__      =tempfile.mkdtemp()
											return TatoebaConverter(save_dir=lowercase_)





				@slow
				def 						__UpperCamelCase    (				self)  -> List[str]:
											self.resolver.convert_models(['heb-eng'])





				@slow
				def 						__UpperCamelCase    (				self)  -> Any:
											a__    ,     a__      =self.resolver.write_model_card('opus-mt-he-en'       ,  dry_run=lowercase_)
											assert mmeta["long_pair"] == "heb-eng"





def    __lowerCamelCase   (      A__						: int						,						A__						: int					)     ->    int:
   return int((input_a, input_a).count(0					) == 0					)


def    __lowerCamelCase   (      )     ->    None:
   assert and_gate(0						,						0					) == 0
   assert and_gate(0						,						1					) == 0
   assert and_gate(1						,						0					) == 0
   assert and_gate(1						,						1					) == 1


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





