<commit_before>"""Adhocracy extension."""
from pyramid.config import Configurator

from adhocracy_core import root_factory


def includeme(config):
    """Setup adhocracy extension."""
    config.include('adhocracy_core')
    config.include('.sheets')
    config.include('.resources')
    config.include('.workflows')


def main(global_config, **settings):
    """ Return a Pyramid WSGI application. """
    config = Configurator(settings=settings, root_factory=root_factory)
    includeme(config)
    return config.make_wsgi_app()
<commit_msg>add translation dir to adhocracy_spd<commit_after>"""Adhocracy extension."""
from pyramid.config import Configurator

from adhocracy_core import root_factory


def includeme(config):
    """Setup adhocracy extension."""
    config.include('adhocracy_core')
    config.include('.sheets')
    config.include('.resources')
    config.include('.workflows')
    config.add_translation_dirs('adhocracy_core:locale/')


def main(global_config, **settings):
    """ Return a Pyramid WSGI application. """
    config = Configurator(settings=settings, root_factory=root_factory)
    includeme(config)
    return config.make_wsgi_app()

{'fraction_non_alphanumeric': 0.1223267750213858, 'fraction_numerical': 0.0, 'mean_word_length': 5.157894736842105, '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': '5206525', 'n_tokens_mistral': 364, 'n_tokens_neox': 340, 'n_words': 71}