<commit_before>from rest_framework.routers import DefaultRouter
from . import views

router = DefaultRouter()
router.register(r'job', views.JobViewSet)
router.register(r'metric', views.MetricViewSet)<commit_msg>Added url for kpm ci page<commit_after>from django.conf.urls import include, url
from django.contrib import admin
from rest_framework.authtoken.views import obtain_auth_token
from rest_framework.routers import DefaultRouter
from . import views

router = DefaultRouter()
router.register(r'job', views.JobViewSet)
router.register(r'metric', views.MetricViewSet)

urlpatterns = [
    url(r'^admin/', include(admin.site.urls)),
    url(r'^api/', include(router.urls)),
    url(r'^api/token/', obtain_auth_token, name='api-token'),
    url(r'^(?P<pk>[0-9]+)/dashboard/',
        views.MetricDashboardView.as_view(),
        name='metric-detail'),
    url(r'^$', views.HomeView.as_view(), name='home'),
]
{'fraction_non_alphanumeric': 0.14631463146314633, 'fraction_numerical': 0.0022002200220022, 'mean_word_length': 5.6911764705882355, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, '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': '323644', 'n_tokens_mistral': 294, 'n_tokens_neox': 291, 'n_words': 57}