<commit_before>from django.test import TestCase

# Create your tests here.<commit_msg>Adding a few basic tests<commit_after>from django.test import TestCase


class HomeTest(TestCase):
    def setUp(self):
        self.response = self.client.get('/')

    def test_get(self):
        """ GET / must return status code 200 """
        self.assertEqual(200, self.response.status_code)

    def test_template(self):
        """ Must use index.html """
        self.assertTemplateUsed(self.response, 'index.html')
{'fraction_non_alphanumeric': 0.11591355599214145, 'fraction_numerical': 0.011787819253438114, 'mean_word_length': 3.358974358974359, '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': '196475', 'n_tokens_mistral': 151, 'n_tokens_neox': 141, 'n_words': 38}