<commit_before>import pygments
from pygments.formatters import TerminalFormatter

def prettyprint(module, output):
    print(pygments.highlight(output, module.lexer(), TerminalFormatter()))<commit_msg>if no lexer is specified, do not highlight<commit_after>import pygments
from pygments.formatters import TerminalFormatter

def prettyprint(module, output):
    if module.lexer:
        output = pygments.highlight(output,
                                    module.lexer(),
                                    TerminalFormatter())

    print(output)
{'fraction_non_alphanumeric': 0.08014571948998178, 'fraction_numerical': 0.0, 'mean_word_length': 3.0145985401459856, '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': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '700558', 'n_tokens_mistral': 146, 'n_tokens_neox': 130, 'n_words': 34}