<commit_before># Copyright (c) 2014 by Ecreall under licence AGPL terms 
# avalaible on http://www.gnu.org/licenses/agpl.html 

# licence: AGPL
# author: <NAME>

from pyramid.config import Configurator
from pyramid.i18n import TranslationStringFactory

from substanced.db import root_factory


_ = TranslationStringFactory('daceui')


def main(global_config, **settings):
    """ This function returns a Pyramid WSGI application.
    """
    config = Configurator(settings=settings, root_factory=root_factory)
    config.add_translation_dirs('pontus:locale/')
    config.add_translation_dirs('dace:locale/')
    config.add_translation_dirs('deform:locale/')
    config.add_translation_dirs('colander:locale/')
    config.scan()
    YEAR = 86400 * 365
    config.add_static_view(
    	 'daceuistatic', 'daceui:static', cache_max_age=YEAR)
    return config.make_wsgi_app()


def include(config): # pragma: no cover
    config.include('.')


def scan(config): # pragma: no cover
    config.scan('.')
    

def includeme(config): # pragma: no cover
    config.include(include)
    config.include(scan)
    YEAR = 86400 * 365
    config.add_static_view(
         'daceuistatic', 'daceui:static', cache_max_age=YEAR)<commit_msg>cache static files only for 1 day<commit_after># Copyright (c) 2014 by Ecreall under licence AGPL terms
# avalaible on http://www.gnu.org/licenses/agpl.html

# licence: AGPL
# author: <NAME>

from pyramid.config import Configurator
from pyramid.i18n import TranslationStringFactory

from substanced.db import root_factory


_ = TranslationStringFactory('daceui')


def main(global_config, **settings):
    """ This function returns a Pyramid WSGI application.
    """
    config = Configurator(settings=settings, root_factory=root_factory)
    config.add_translation_dirs('pontus:locale/')
    config.add_translation_dirs('dace:locale/')
    config.add_translation_dirs('deform:locale/')
    config.add_translation_dirs('colander:locale/')
    config.scan()
    config.add_static_view(
            'daceuistatic', 'daceui:static', cache_max_age=86400)
    return config.make_wsgi_app()


def include(config): # pragma: no cover
    config.include('.')


def scan(config): # pragma: no cover
    config.scan('.')


def includeme(config): # pragma: no cover
    config.include(include)
    config.include(scan)
    config.add_static_view(
            'daceuistatic', 'daceui:static', cache_max_age=86400)
{'fraction_non_alphanumeric': 0.11463917525773196, 'fraction_numerical': 0.016082474226804123, 'mean_word_length': 4.415178571428571, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '1258442', 'n_tokens_mistral': 846, 'n_tokens_neox': 786, 'n_words': 165}