<commit_before>import unittest

from simpleflow.utils import format_exc


class MyTestCase(unittest.TestCase):
    def test_format_final_exc_line(self):
        line = None
        try:
            1/0
        except Exception as e:
            line = format_exc(e)
        self.assertEqual("ZeroDivisionError: division by zero", line)

        try:
            {}[1]
        except Exception as e:
            line = format_exc(e)
        self.assertEqual("KeyError: 1", line)


if __name__ == '__main__':
    unittest.main()<commit_msg>Remove version-specific exception text test<commit_after>import unittest

from simpleflow.utils import format_exc


class MyTestCase(unittest.TestCase):
    def test_format_final_exc_line(self):
        line = None
        try:
            {}[1]
        except Exception as e:
            line = format_exc(e)
        self.assertEqual("KeyError: 1", line)


if __name__ == '__main__':
    unittest.main()
{'fraction_non_alphanumeric': 0.09129511677282377, 'fraction_numerical': 0.006369426751592357, 'mean_word_length': 2.429090909090909, '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': '660474', 'n_tokens_mistral': 281, 'n_tokens_neox': 273, 'n_words': 70}