<commit_before>import plata


def plata_context(request):
    shop = plata.shop_instance()

    return {'plata': {
        'shop': shop,
        'order': shop.order_from_request(request, create=False),
        'contact': shop.contact_from_request(request, create=False),
        }}
<commit_msg>added categories context processor<commit_after>import plata
from plata.product.models import Category

def plata_context(request):
    shop = plata.shop_instance()

    return {'plata': {
        'shop': shop,
        'order': shop.order_from_request(request, create=False),
        'contact': shop.contact_from_request(request, create=False),
        'categories' : Category.objects.filter(is_active__exact=True, is_internal__exact=False),
        }}


{'fraction_non_alphanumeric': 0.12165775401069519, 'fraction_numerical': 0.0, 'mean_word_length': 3.8636363636363638, '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': '5295651', 'n_tokens_mistral': 226, 'n_tokens_neox': 219, 'n_words': 42}