<commit_before>from django.conf.urls import url
from . import views

urlpatterns = [
    url(r'^products/$', views.ProductList.as_view(), name='product-list'),
    url(r'^products/(?P<product_id>[0-9]+)/$', views.ProductDetail.as_view()),
    url(
        r'^products/(?P<product_id>[0-9]+)/reviews/$',
        views.ReviewList.as_view()
    ),
    url(
        r'^products/(?P<product_id>[0-9]+)/reviews/(?P<review_id>[0-9]+)/$',
        views.ReviewDetail.as_view()
    ),
]<commit_msg>Add names to API urls<commit_after>from django.conf.urls import url
from . import views

urlpatterns = [
    url(
        r'^products/$',
        views.ProductList.as_view(),
        name='product-list'
    ),
    url(
        r'^products/(?P<product_id>[0-9]+)/$',
        views.ProductDetail.as_view(),
        name='product-detail'
    ),
    url(
        r'^products/(?P<product_id>[0-9]+)/reviews/$',
        views.ReviewList.as_view(),
        name='review-list'
    ),
    url(
        r'^products/(?P<product_id>[0-9]+)/reviews/(?P<review_id>[0-9]+)/$',
        views.ReviewDetail.as_view(),
        name='review-detail'
    ),
]
{'fraction_non_alphanumeric': 0.20533333333333334, 'fraction_numerical': 0.014222222222222223, 'mean_word_length': 2.740863787375415, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, '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': '5654128', 'n_tokens_mistral': 417, 'n_tokens_neox': 402, 'n_words': 47}