<commit_before>from django.shortcuts import get_object_or_404
from django.views.generic import  list_detail

import plata


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

    return list_detail.object_list(request,
        queryset=shop.product_model.objects.active(),
        paginate_by=9,
        )


def product_detail(request, object_id):
    shop = plata.shop_instance()

    return shop.product_detail(request,
        get_object_or_404(shop.product_model.objects.active(), pk=object_id),
        )<commit_msg>Product list: Use fixed template name<commit_after>from django.shortcuts import get_object_or_404
from django.views.generic import  list_detail

import plata


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

    return list_detail.object_list(request,
        queryset=shop.product_model.objects.active(),
        paginate_by=9,
        template_name='product/product_list.html',
        )


def product_detail(request, object_id):
    shop = plata.shop_instance()

    return shop.product_detail(request,
        get_object_or_404(shop.product_model.objects.active(), pk=object_id),
        )
{'fraction_non_alphanumeric': 0.09058927000879508, 'fraction_numerical': 0.012313104661389622, 'mean_word_length': 3.9264069264069263, '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': '4354233', 'n_tokens_mistral': 365, 'n_tokens_neox': 345, 'n_words': 60}