<commit_before>import unittest

from poly import int_t


class TestInd(unittest.TestCase):
    """Tests the int_t.Ind class."""

    def test_repr(self):
        for x, s in [
            (int_t.Ind(), '1'),
            (int_t.Ind(0), '1'),
            (int_t.Ind(1), 'x'),
            (int_t.Ind(1, 1), 'xy'),
            (int_t.Ind(1, 0, 1), 'xz'),
            (int_t.Ind(0, 1, 0), 'y'),
            (int_t.Ind(0, 0, 0, 0), '1'),
            (int_t.Ind(0, 0, 0, 1), 'x₃'),
            (int_t.Ind(5), 'x⁵'),
            (int_t.Ind(-6), 'x¯⁶'),
            (int_t.Ind(123, -321, 0), 'x¹²³y¯³²¹'),
            (int_t.Ind(-1, 2, 3, -4, 5, 6), 'x₀¯¹x₁²x₂³x₃¯⁴x₄⁵x₅⁶'),
        ]:
            self.assertEqual(repr(x), s)


class TestIntT(unittest.TestCase):
    """Tests the int_t.IntT class."""

    def test_repr(self):
        for x, s in [
            (int_t.IntT(), '0'),
            (int_t.IntT(0), '0'),
            (int_t.IntT(0, [1, 2, 3]), '0'),
            (int_t.IntT(10, [1, 2, 3]), '10xy²z³'),
            (int_t.IntT(-20, [-1, 0, 1]), '-20x¯¹z'),
            (int_t.IntT(5, []), '5'),
            (int_t.IntT(-8, [0, 0]), '-8'),
            (int_t.IntT(1, [0, 0, 1]), 'z'),
            (int_t.IntT(1, [0, 1, 1]), 'yz'),
        ]:
            self.assertEqual(repr(x), s)


if __name__ == '__main__':
    unittest.main()
<commit_msg>Some more PEP8 cleanup.<commit_after>"""Tests for module int_t."""
import unittest

from poly import int_t


class TestInd(unittest.TestCase):
    """Tests the int_t.Ind class."""

    def test_repr(self):
        """Tests the __repr__ method."""
        for item, res in [
                (int_t.Ind(), '1'),
                (int_t.Ind(0), '1'),
                (int_t.Ind(1), 'x'),
                (int_t.Ind(1, 1), 'xy'),
                (int_t.Ind(1, 0, 1), 'xz'),
                (int_t.Ind(0, 1, 0), 'y'),
                (int_t.Ind(0, 0, 0, 0), '1'),
                (int_t.Ind(0, 0, 0, 1), 'x₃'),
                (int_t.Ind(5), 'x⁵'),
                (int_t.Ind(-6), 'x¯⁶'),
                (int_t.Ind(123, -321, 0), 'x¹²³y¯³²¹'),
                (int_t.Ind(-1, 2, 3, -4, 5, 6), 'x₀¯¹x₁²x₂³x₃¯⁴x₄⁵x₅⁶'),
        ]:
            self.assertEqual(repr(item), res)


class TestIntT(unittest.TestCase):
    """Tests the int_t.IntT class."""

    def test_repr(self):
        """Tests the __repr__ method."""
        for item, res in [
                (int_t.IntT(), '0'),
                (int_t.IntT(0), '0'),
                (int_t.IntT(0, [1, 2, 3]), '0'),
                (int_t.IntT(10, [1, 2, 3]), '10xy²z³'),
                (int_t.IntT(-20, [-1, 0, 1]), '-20x¯¹z'),
                (int_t.IntT(5, []), '5'),
                (int_t.IntT(-8, [0, 0]), '-8'),
                (int_t.IntT(1, [0, 0, 1]), 'z'),
                (int_t.IntT(1, [0, 1, 1]), 'yz'),
        ]:
            self.assertEqual(repr(item), res)


if __name__ == '__main__':
    unittest.main()

{'fraction_non_alphanumeric': 0.22290809327846364, 'fraction_numerical': 0.04972565157750343, 'mean_word_length': 1.618491921005386, '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': '873115', 'n_tokens_mistral': 1320, 'n_tokens_neox': 1206, 'n_words': 245}