<commit_before>import re

class Parser():
    ''' The Parser class represents a parser that parses text using specified
    markup. Once the parser parses the text, HTML is generated as output.
    '''

    def __init__(self):
        self.written_text = ''
        self.remaining_text = ''
        self.markup = { 'h1': '^[#]{1}(\s*)',
                        'h2': '^[#]{2}(\s*)',
                        'h3': '^[#]{3}(\s*)',
                        'h4': '^[#]{4}(\s*)',
                        'h5': '^[#]{5}(\s*)',
                        'h6': '^[#]{6}(\s*)',
                        'hr': '^-{3}',
                        'a': '((\[https?:\/{2}.+?\.(com|org|edu|net)\])(\(.+?\)))',
                        'b': '(\*\*).+?(\*\*)'
                      }
        self.header = False<commit_msg>src/parser.py: Remove redundant class parentheses<commit_after>import re

class Parser:
    ''' The Parser class represents a parser that parses text using specified
    markup. Once the parser parses the text, HTML is generated as output.
    '''

    def __init__(self):
        self.written_text = ''
        self.remaining_text = ''
        self.markup = { 'h1': '^[#]{1}(\s*)',
                        'h2': '^[#]{2}(\s*)',
                        'h3': '^[#]{3}(\s*)',
                        'h4': '^[#]{4}(\s*)',
                        'h5': '^[#]{5}(\s*)',
                        'h6': '^[#]{6}(\s*)',
                        'hr': '^-{3}',
                        'a': '((\[https?:\/{2}.+?\.(com|org|edu|net)\])(\(.+?\)))',
                        'b': '(\*\*).+?(\*\*)'
                      }
        self.header = False
{'fraction_non_alphanumeric': 0.24173806609547124, 'fraction_numerical': 0.017135862913096694, 'mean_word_length': 1.2931276297335204, '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': '4350591', 'n_tokens_mistral': 542, 'n_tokens_neox': 501, 'n_words': 105}