<commit_before>from django.conf.urls import url, include
from rest_framework.urlpatterns import format_suffix_patterns
from snippets.views import SnippetList, SnippetDetail, UserList, UserDetail

urlpatterns = [
    url(r'^snippets/$', SnippetList.as_view()),
    url(r'^snippets/(?P<pk>[0-9]+)/$', SnippetDetail.as_view()),
    url(r'users/$', UserList.as_view()),
    url(r'^users/(?P<pk>[0-9]+)/$', UserDetail.as_view())
]

urlpatterns = format_suffix_patterns(urlpatterns)

urlpatterns += [
    url(r'^api-auth/', include('rest_framework.urls', namespace='rest_framework')),
]<commit_msg>updated urls for api endpoints, highlights<commit_after>from django.conf.urls import url, include
from rest_framework.urlpatterns import format_suffix_patterns
from snippets.views import SnippetList, SnippetDetail, UserList, UserDetail, api_root, SnippetHighlighter

urlpatterns = [
    url(r'^$', api_root),
    url(r'^snippets/$', SnippetList.as_view()),
    url(r'^snippets/(?P<pk>[0-9]+)/$', SnippetDetail.as_view()),
    url(r'^snippets/(?P<pk>[0-9]+)/highlight/$', SnippetHighlighter.as_view()),
    url(r'users/$', UserList.as_view()),
    url(r'^users/(?P<pk>[0-9]+)/$', UserDetail.as_view())
]

urlpatterns = format_suffix_patterns(urlpatterns)

urlpatterns += [
    url(r'^api-auth/', include('rest_framework.urls', namespace='rest_framework')),
]
{'fraction_non_alphanumeric': 0.1808747220163084, 'fraction_numerical': 0.007412898443291327, 'mean_word_length': 6.377049180327869, 'pattern_counts': {'":': 0, '<': 8, '<?xml version=': 0, '>': 8, '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': '7633087', 'n_tokens_mistral': 499, 'n_tokens_neox': 474, 'n_words': 73}