<commit_before>from .parser import (rewrite_autodoc, builder_inited)

__author__ = '<NAME>'

def setup(app):
    if not hasattr(app, 'add_config_value'):
        return # probably called by nose, better bail out
    app.add_config_value('cartouche_accept_bulleted_args', False, 'env')
    app.add_config_value('cartouche_accept_bulleted_raises', False, 'env')
    app.connect('builder-inited', builder_inited)
    app.connect('autodoc-process-docstring', rewrite_autodoc)
<commit_msg>Adds flags to setup() to allow sphinx to read and write in parallel.<commit_after>from .parser import (rewrite_autodoc, builder_inited)
from .version import (__version__)

__author__ = '<NAME>'

def setup(app):
    if not hasattr(app, 'add_config_value'):
        return # probably called by nose, better bail out
    app.add_config_value('cartouche_accept_bulleted_args', False, 'env')
    app.add_config_value('cartouche_accept_bulleted_raises', False, 'env')
    app.connect('builder-inited', builder_inited)
    app.connect('autodoc-process-docstring', rewrite_autodoc)

    return dict(
        version = __version__,
        parallel_read_safe = True,
        parallel_write_safe = True
    )

{'fraction_non_alphanumeric': 0.10313531353135313, 'fraction_numerical': 0.0, 'mean_word_length': 4.1617021276595745, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '4402399', 'n_tokens_mistral': 396, 'n_tokens_neox': 379, 'n_words': 86}