<commit_before>from pyxform.tests_v1.pyxform_test_case import PyxformTestCase

class WhitespaceTest(PyxformTestCase):
    def test_over_trim(self):
        self.assertPyxformXform(
            name='issue96',
            md="""
            | survey  |                 |             |       |
            |         | type            | label       | name  |
            |         | text            | Ignored     | var   |
            |         | note            | ${var} text | label |
            """,
            xml__contains=[
                '<label><output value=" /issue96/var "/> text </label>',
            ])

    def empty_label_squashing(self):
        self.assertPyxformXform(
            name='empty_label',
            debug=True,
            ss_structure={'survey': [
                    { 'type':'note', 'label':'', 'name':'label' } ] },
            xml__contains=[
                '<label></label>',
            ])<commit_msg>Rename test so it actually runs<commit_after>from pyxform.tests_v1.pyxform_test_case import PyxformTestCase

class WhitespaceTest(PyxformTestCase):
    def test_over_trim(self):
        self.assertPyxformXform(
            name='issue96',
            md="""
            | survey  |                 |             |       |
            |         | type            | label       | name  |
            |         | text            | Ignored     | var   |
            |         | note            | ${var} text | label |
            """,
            xml__contains=[
                '<label><output value=" /issue96/var "/> text </label>',
            ])

    def test_empty_label_squashing(self):
        self.assertPyxformXform(
            name='empty_label',
            debug=True,
            ss_structure={'survey': [
                    { 'type':'note', 'label':'', 'name':'label' } ] },
            xml__contains=[
                '<label></label>',
            ])
{'fraction_non_alphanumeric': 0.12480335605663345, 'fraction_numerical': 0.005243838489774515, 'mean_word_length': 1.2186046511627906, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 13, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 4}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '110649', 'n_tokens_mistral': 517, 'n_tokens_neox': 514, 'n_words': 83}