<commit_before>import unittest
import django_template_i18n_lint

class DjangoTemplateI18nLintTestCase(unittest.TestCase):
    def _known_good_output(input_string, expected_output):
        def test(self):
            actual_output = list(django_template_i18n_lint.non_translated_text(input_string))
            self.assertEqual(actual_output, expected_output)
        test.__doc__ = "Input string {0} should give output of {1}".format(repr(input_string[:30]), repr(expected_output)[:30])
        return test

    testSimple = _known_good_output("<h1>Foo</h1>", [(1, 5, 'Foo')])


if __name__ == '__main__':
    unittest.main()
<commit_msg>more tests<commit_after>import unittest
import django_template_i18n_lint

class DjangoTemplateI18nLintTestCase(unittest.TestCase):
    def _known_good_output(input_string, expected_output):
        def test(self):
            actual_output = list(django_template_i18n_lint.non_translated_text(input_string))
            self.assertEqual(actual_output, expected_output)
        test.__doc__ = "Input string {0} should give output of {1}".format(repr(input_string[:30]), repr(expected_output)[:30])
        return test

    testSimple = _known_good_output("<h1>Foo</h1>", [(1, 5, 'Foo')])
    testMultiWord = _known_good_output("<h1>Foo</h1><p>Bar</p>", [(1, 5, 'Foo'), (1, 16, 'Bar')])
    testMultiWordMultiLine = _known_good_output("<h1>Foo</h1>\n<p>Bar</p>", [(1, 5, 'Foo'), (2, 4, 'Bar')])


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

{'fraction_non_alphanumeric': 0.1411208642808913, 'fraction_numerical': 0.03038487508440243, 'mean_word_length': 4.811764705882353, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 15, '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': '909502', 'n_tokens_mistral': 533, 'n_tokens_neox': 493, 'n_words': 89}