<commit_before>import unittest

import gates

class Tests(unittest.TestCase):

    def test_AND(self):
        self.assertEqual(gates.AND(0, 0), 0)
        self.assertEqual(gates.AND(0, 1), 0)
        self.assertEqual(gates.AND(1, 0), 0)
        self.assertEqual(gates.AND(1, 1), 1)

    def test_OR(self):
        self.assertEqual(gates.OR(0, 0), 0)
        self.assertEqual(gates.OR(0, 1), 1)
        self.assertEqual(gates.OR(1, 0), 1)
        self.assertEqual(gates.OR(1, 1), 1)

    def test_NOT(self):
        self.assertEqual(gates.NOT(0), 1)<commit_msg>Added test for 3-input AND<commit_after>import unittest

import gates

class Tests(unittest.TestCase):

    def test_AND(self):
        self.assertEqual(gates.AND(0, 0), 0)
        self.assertEqual(gates.AND(0, 1), 0)
        self.assertEqual(gates.AND(1, 0), 0)
        self.assertEqual(gates.AND(1, 1), 1)

    def test_AND3(self):
        self.assertEqual(gates.AND3(0, 0, 0), 0)
        self.assertEqual(gates.AND3(0, 0, 1), 0)
        self.assertEqual(gates.AND3(0, 1, 0), 0)
        self.assertEqual(gates.AND3(0, 1, 1), 0)
        self.assertEqual(gates.AND3(1, 0, 0), 0)
        self.assertEqual(gates.AND3(1, 0, 1), 0)
        self.assertEqual(gates.AND3(1, 1, 0), 0)
        self.assertEqual(gates.AND3(1, 1, 1), 1)

    def test_OR(self):
        self.assertEqual(gates.OR(0, 0), 0)
        self.assertEqual(gates.OR(0, 1), 1)
        self.assertEqual(gates.OR(1, 0), 1)
        self.assertEqual(gates.OR(1, 1), 1)

    def test_NOT(self):
        self.assertEqual(gates.NOT(0), 1)
{'fraction_non_alphanumeric': 0.16097875080489377, 'fraction_numerical': 0.06052801030264005, 'mean_word_length': 2.744578313253012, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1656448', 'n_tokens_mistral': 649, 'n_tokens_neox': 581, 'n_words': 113}