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

urlpatterns = [
    url(r'^$', views.ChoroplethList.as_view(), name='choropleth-list'),
    url(r'^(?P<pk>[0-9]+)/$', views.ChoroplethDetail.as_view(), name='choropleth-detail'),
    url(r'^create/(?P<pk>[0-9]+)/$', views.ChoroplethCreate.as_view(), name='choropleth-create'),
    url(r'^(?P<pk>[0-9]+)/edit/$', views.ChoroplethEdit.as_view(), name='choropleth-edit'),
    url(r'^(?P<pk>[0-9]+)/view/$', views.ChoroplethView.as_view(), name='choropleth-view'),
    # url(r'^api/(?P<pk>[0-9]+)/$', views.ChoroplethAPIView.as_view(), name='api-view'),
    url(r'^api/$', views.ChoroplethAPI.as_view({'get':'list', 'post': 'create'}), name='api-create'),
    url(r'^api/(?P<pk>[0-9]+)/$', views.ChoroplethAPI.as_view({'get':'retrieve', 'put': 'update'}), name='api-get-put'),
    url(r'^api/palettes/(?P<pk>[0-9]+)/$', views.PaletteAPIView.as_view(), name='palette-api'),<commit_msg>Permanently removed previous APIView route. Changed name of the viewset route.<commit_after>from django.conf.urls import url
from . import views

urlpatterns = [
    url(r'^$', views.ChoroplethList.as_view(), name='choropleth-list'),
    url(r'^(?P<pk>[0-9]+)/$', views.ChoroplethDetail.as_view(), name='choropleth-detail'),
    url(r'^create/(?P<pk>[0-9]+)/$', views.ChoroplethCreate.as_view(), name='choropleth-create'),
    url(r'^(?P<pk>[0-9]+)/edit/$', views.ChoroplethEdit.as_view(), name='choropleth-edit'),
    url(r'^(?P<pk>[0-9]+)/view/$', views.ChoroplethView.as_view(), name='choropleth-view'),
    url(r'^api/$', views.ChoroplethAPI.as_view({'get':'list', 'post': 'create'}), name='api-create'),
    url(r'^api/(?P<pk>[0-9]+)/$', views.ChoroplethAPI.as_view({'get':'retrieve', 'put': 'update', 'delete': 'destroy'}), name='api-retrieve-update'),
    url(r'^api/palettes/(?P<pk>[0-9]+)/$', views.PaletteAPIView.as_view(), name='palette-api'),
{'fraction_non_alphanumeric': 0.2695743562795586, 'fraction_numerical': 0.013662637940094587, 'mean_word_length': 6.184905660377359, 'pattern_counts': {'":': 0, '<': 16, '<?xml version=': 0, '>': 16, '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': '3272383', 'n_tokens_mistral': 794, 'n_tokens_neox': 761, 'n_words': 86}