<commit_before>from openspending.tests.base import ControllerTestCase

from pylons import url


class TestHomeController(ControllerTestCase):

    def test_index(self):
        response = self.app.get(url(controller='home', action='index'))
        assert 'OpenSpending' in response

    def test_locale(self):
        response = self.app.post(url(controller='home', action='set_locale'))<commit_msg>Fix unused variable assignment<commit_after>from openspending.tests.base import ControllerTestCase

from pylons import url


class TestHomeController(ControllerTestCase):

    def test_index(self):
        response = self.app.get(url(controller='home', action='index'))
        assert 'OpenSpending' in response

    def test_locale(self):
        self.app.post(url(controller='home', action='set_locale'))
{'fraction_non_alphanumeric': 0.10794044665012408, 'fraction_numerical': 0.0, 'mean_word_length': 4.8478260869565215, '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': '1204480', 'n_tokens_mistral': 220, 'n_tokens_neox': 211, 'n_words': 49}