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

from adhocracy_core.interfaces import IFixtureAsset
from adhocracy_core import root_factory


def includeme(config):
    """Setup adhocracy extension."""
    # include adhocracy_core
    config.include('adhocracy_core')
    # commit to allow overriding pyramid config
    config.commit()
    # include custom resource types
    config.include('adhocracy_meinberlin.content')
    config.include('adhocracy_meinberlin.workflows')
    config.include('adhocracy_meinberlin.resources')
    config.include('adhocracy_meinberlin.sheets')
    config.include('adhocracy_meinberlin.evolution')
    config.add_translation_dirs('adhocracy_core:locale/',
                                'adhocracy_meinberlin:locale/')
    config.registry.registerUtility('', IFixtureAsset,
                                    name='adhocracy_meinberlin:test_fixture')


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>Fixup 58d88a5: test fixtures for adhocracy_meinberlin does not exist<commit_after>"""Adhocracy extension."""
from pyramid.config import Configurator

from adhocracy_core import root_factory


def includeme(config):
    """Setup adhocracy extension."""
    # include adhocracy_core
    config.include('adhocracy_core')
    # commit to allow overriding pyramid config
    config.commit()
    # include custom resource types
    config.include('adhocracy_meinberlin.content')
    config.include('adhocracy_meinberlin.workflows')
    config.include('adhocracy_meinberlin.resources')
    config.include('adhocracy_meinberlin.sheets')
    config.include('adhocracy_meinberlin.evolution')
    config.add_translation_dirs('adhocracy_core:locale/',
                                'adhocracy_meinberlin: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.09722222222222222, 'fraction_numerical': 0.0023148148148148147, 'mean_word_length': 4.30958230958231, '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': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5904630', 'n_tokens_mistral': 691, 'n_tokens_neox': 619, 'n_words': 114}