<commit_before>"""
Extra context processors for the CarnetDuMaker app.
"""

from django.contrib.sites.shortcuts import get_current_site
from django.utils.translation import ugettext_lazy as _


def app_constants(request):
    """
    Constants context processor.
    :param request: the current request.
    :return: All constants for the app.
    """
    site = get_current_site(request)
    return {
        'APP': {
            'TITLE': _('Carnet du maker - L\'esprit Do It Yourself'),
            'TITLE_SHORT': _('Carnet du maker'),
            'AUTHOR': '<NAME>',
            'COPYRIGHT': _('TamiaLab 2015'),
            'DESCRIPTION': _('L\'esprit du Do It Yourself'),
            'TWITTER_USERNAME': 'carnetdumaker',
            'GOOGLE_SITE_VERIFICATION_CODE': '',  # TODO
            'TWITTER_ACCOUNT_ID': '3043075520',
            'FACEBOOK_URL': '',  # TODO<commit_msg>Add missing facebook and google verif codes<commit_after>"""
Extra context processors for the CarnetDuMaker app.
"""

from django.contrib.sites.shortcuts import get_current_site
from django.utils.translation import ugettext_lazy as _


def app_constants(request):
    """
    Constants context processor.
    :param request: the current request.
    :return: All constants for the app.
    """
    site = get_current_site(request)
    return {
        'APP': {
            'TITLE': _('Carnet du maker - L\'esprit Do It Yourself'),
            'TITLE_SHORT': _('Carnet du maker'),
            'AUTHOR': '<NAME>',
            'COPYRIGHT': _('TamiaLab 2015'),
            'DESCRIPTION': _('L\'esprit du Do It Yourself'),
            'TWITTER_USERNAME': 'carnetdumaker',
            'GOOGLE_SITE_VERIFICATION_CODE': 't3KwbPbJCHz-enFYH50Hcd8PDN8NWWC9gCMx7uTjhpQ',
            'TWITTER_ACCOUNT_ID': '3043075520',
            'FACEBOOK_URL': 'https://www.facebook.com/CarnetDuMaker/',
{'fraction_non_alphanumeric': 0.1216361679224973, 'fraction_numerical': 0.01883745963401507, 'mean_word_length': 2.8094262295081966, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 1, 'lorem ipsum': 0, 'www.': 1, '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': '6627703', 'n_tokens_mistral': 639, 'n_tokens_neox': 591, 'n_words': 141}