<commit_before>from django.conf.urls import patterns, url
from openbudget.apps.projects.views import api


urlpatterns = patterns('',

    url(r'^$',
        api.ProjectList.as_view(),
        name='project-list'
    ),
    url(r'^states/$',
        api.StateListCreate.as_view(),
        name='state-list'
    ),
    url(
        r'^states/(?P<uuid>\w+)/$',
        api.StateRetrieveUpdateDestroy.as_view(),
        name='state-detail'
    ),
    url(
        r'^(?P<uuid>\w+)/$',
        api.ProjectDetail.as_view(),
        name='project-detail'
    ),
)
<commit_msg>Removed trailing slashes from state-detail and project-detail urls which throw 404 when reached without a trailing url<commit_after>from django.conf.urls import patterns, url
from openbudget.apps.projects.views import api


urlpatterns = patterns('',

    url(r'^$',
        api.ProjectList.as_view(),
        name='project-list'
    ),
    url(r'^states/$',
        api.StateListCreate.as_view(),
        name='state-list'
    ),
    url(
        r'^states/(?P<uuid>\w+)',
        api.StateRetrieveUpdateDestroy.as_view(),
        name='state-detail'
    ),
    url(
        r'^(?P<uuid>\w+)',
        api.ProjectDetail.as_view(),
        name='project-detail'
    ),
)

{'fraction_non_alphanumeric': 0.16116035455278002, 'fraction_numerical': 0.0024174053182917004, 'mean_word_length': 2.4985915492957744, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '7572004', 'n_tokens_mistral': 417, 'n_tokens_neox': 401, 'n_words': 66}