<commit_before>import cdent.test

import cdent.parser.cdent.yaml
import cdent.parser.perl6

class TestPythonParser(cdent.test.TestCase):

    def test_parse_perl6(self):
        parser = cdent.parser.perl6.Parser()
        # parser.debug = True
        input = file('tests/modules/world.cd.pm6', 'r').read()
        parser.open(input)
        try:
            ast = parser.parse()
        except cdent.parser.ParseError, err:
            print err
            return
            exit(1)


        parser = cdent.parser.cdent.yaml.Parser()
        input = file('tests/modules/world.cd.yaml', 'r').read()
        parser.open(input)
        expected = parser.parse()

        self.assertEqual(ast.__class__.__name__, expected.__class__.__name__)

if __name__ == '__main__':
    cdent.test.main()<commit_msg>Fix capitalization in test path<commit_after>import cdent.test

import cdent.parser.cdent.yaml
import cdent.parser.perl6

class TestPythonParser(cdent.test.TestCase):

    def test_parse_perl6(self):
        parser = cdent.parser.perl6.Parser()
        # parser.debug = True
        input = file('tests/modules/World.cd.pm6', 'r').read()
        parser.open(input)
        try:
            ast = parser.parse()
        except cdent.parser.ParseError, err:
            print err
            return
            exit(1)


        parser = cdent.parser.cdent.yaml.Parser()
        input = file('tests/modules/world.cd.yaml', 'r').read()
        parser.open(input)
        expected = parser.parse()

        self.assertEqual(ast.__class__.__name__, expected.__class__.__name__)

if __name__ == '__main__':
    cdent.test.main()
{'fraction_non_alphanumeric': 0.12423124231242312, 'fraction_numerical': 0.006150061500615006, 'mean_word_length': 2.354639175257732, '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': '7557302', 'n_tokens_mistral': 510, 'n_tokens_neox': 493, 'n_words': 87}