<commit_before>import collections
import domino
import unittest

class TestDomino(unittest.TestCase):
    def test_init(self):
        d = domino.Domino(1, 2)

        self.assertEqual(d.first, 1)
        self.assertEqual(d.second, 2)

    def test_inverted(self):
        d = domino.Domino(1, 2)
        d_inv = d.inverted()

        self.assertEqual(d.first, d_inv.second)
        self.assertEqual(d.second, d_inv.first)

    def test_str(self):
        d = domino.Domino(1, 2)

        self.assertEqual(str(d), '[1|2]')

    def	test_repr(self):
        d = domino.Domino(1, 2)

        self.assertEqual(repr(d), '[1|2]')

    def test_eq(self):
        d1 = domino.Domino(1, 2)
        d2 = domino.Domino(1, 2)
        d3 = domino.Domino(2, 1)

        # order of values does not matter
        self.assertEqual(d1, d2)
        self.assertEqual(d1, d3)

        d4 = domino.Domino(1, 1)
        d5 = domino.Domino(1, 1)

        # it's OK if both values are the same
        self.assertEqual(d4, d5)

        # both values must be the same
        self.assertNotEqual(d1, d4)<commit_msg>tab => space<commit_after>import collections
import domino
import unittest

class TestDomino(unittest.TestCase):
    def test_init(self):
        d = domino.Domino(1, 2)

        self.assertEqual(d.first, 1)
        self.assertEqual(d.second, 2)

    def test_inverted(self):
        d = domino.Domino(1, 2)
        d_inv = d.inverted()

        self.assertEqual(d.first, d_inv.second)
        self.assertEqual(d.second, d_inv.first)

    def test_str(self):
        d = domino.Domino(1, 2)

        self.assertEqual(str(d), '[1|2]')

    def test_repr(self):
        d = domino.Domino(1, 2)

        self.assertEqual(repr(d), '[1|2]')

    def test_eq(self):
        d1 = domino.Domino(1, 2)
        d2 = domino.Domino(1, 2)
        d3 = domino.Domino(2, 1)

        # order of values does not matter
        self.assertEqual(d1, d2)
        self.assertEqual(d1, d3)

        d4 = domino.Domino(1, 1)
        d5 = domino.Domino(1, 1)

        # it's OK if both values are the same
        self.assertEqual(d4, d5)

        # both values must be the same
        self.assertNotEqual(d1, d4)
{'fraction_non_alphanumeric': 0.12471343420449335, 'fraction_numerical': 0.033929390187987164, 'mean_word_length': 2.166908563134978, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, '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': '5899890', 'n_tokens_mistral': 828, 'n_tokens_neox': 778, 'n_words': 174}