<commit_before>"""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_spd')
    # commit to allow overriding pyramid config
    config.commit()
    # include kit resource types
    config.include('.resources')
    # add translations
    config.add_translation_dirs('adhocracy_spd: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()
<commit_msg>Untie adhocracy_spd and adhocracy_kit config<commit_after>"""Adhocracy extension."""
from pyramid.config import Configurator

from adhocracy_core import root_factory


def includeme(config):
    """Setup adhocracy extension.

    The kit package should be exactly like the spd package but with different
    root permissions and default translations for the emails.
    """
    # copied from adhocracy_spd (without resources and translations)
    config.include('adhocracy_core')
    config.commit()
    config.include('.sheets')
    config.include('.workflows')
    config.include('.evolution')

    # add translations
    config.add_translation_dirs('adhocracy_core:locale/')

    # copoied from adhocracy_spd.resources resources
    config.include('adhocracy-spd.resources.digital_leben')

    # include kit resource types
    config.include('.resources')


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.09642654566080544, 'fraction_numerical': 0.0, 'mean_word_length': 4.478260869565218, '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': '3303008', 'n_tokens_mistral': 538, 'n_tokens_neox': 491, 'n_words': 126}