<commit_before>from django.conf.urls import include, url
from django.contrib import admin
from django.contrib.auth.decorators import login_required
from django.contrib.auth.views import login, logout
from django.views.decorators.cache import never_cache

from rest_framework.urlpatterns import format_suffix_patterns

import core.views
import growths.views
import afm.api


admin.autodiscover()

urlpatterns = [
    url(r'^ckeditor/', include('ckeditor.urls')),
    url(r'^grappelli/', include('grappelli.urls')),

    # misc urls
    url(r'^$', core.views.HomepageView.as_view(), name='home'),
    url(r'^media/(?P<filename>.*)$', core.views.protected_media),
    url(r'^quicksearch/', core.views.QuickSearchRedirectView.as_view(), name='quicksearch'),
    url(r'^exception/', core.views.ExceptionHandlerView.as_view(), name='exception'),
    url(r'^accounts/login/', login, {'template_name': 'core/login.html'}, name='login'),
    url(r'^accounts/logout/', logout, {'template_name': 'core/logout.html'}, name='logout'),
    url(r'^wbg-admin/', include(admin.site.urls)),

    # core urls
    url(r'^operators/$', core.views.OperatorListView.as_view(), name='operator_list'),
    url(r'^operators/(?P<id>\d+)/activate$', never_cache(core.views.ActivateOperatorRedirectView.as_view()), name='operator_activate'),
    url(r'^operators/(?P<id>\d+)/deactivate$', never_cache(core.views.DeactivateOperatorRedirectView.as_view()), name='operator_deactivate'),
    url(r'^platters/$', core.views.PlatterListView.as_view(), name='platter_list'),
    url(r'^platters/create/$', core.views.PlatterCreateView.as_view(), name='platter_create'),
    url(r'^platters/(?P<id>\d+)/activate/$', never_cache(core.views.ActivatePlatterRedirectView.as_view()), name='platter_activate'),
    url(r'^platters/(?P<id>\d+)/deactivate/$', never_cache(core.views.DeactivatePlatterRedirectView.as_view()), name='platter_deactivate'),
    url(r'^projects/$', core.views.ProjectListView.as_view(), name='project_list'),
    url(r'^projects/create/$', core.views.ProjectCreateView.as_view(), name='project_create'),
    url(r'^projects/track/$', core.views.TrackProjectView.as_view(), name='track_project'),
    url(r'^projects/(?P<slug>[\w-]+)/$', core.views.ProjectDetailView.as_view(), name='project_detail_all'),
    url(r'^projects/(?P<slug>[\w-]+)/edit/$', core.views.ProjectUpdateView.as_view(), name='project_update'),
    url(r'^projects/(?P<slug>[\w-]+)/track/$', never_cache(core.views.TrackProjectRedirectView.as_view()), name='project_track'),
    url(r'^projects/(?P<slug>[\w-]+)/untrack/$', never_cache(core.views.UntrackProjectRedirectView.as_view()), name='project_untrack'),
    url(r'^projects/(?P<slug>[\w-]+)/activate/$', never_cache(core.views.ActivateProjectRedirectView.as_view()), name='project_activate'),
    url(r'^projects/(?P<slug>[\w-]+)/deactivate/$', never_cache(core.views.DeactivateProjectRedirectView.as_view()), name='project_deactivate'),
    url(r'^projects/(?P<slug>[\w-]+)/add-investigation/$', core.views.InvestigationCreateView.as_view(), name='investigation_create'),
    url(r'^projects/(?P<project>[\w-]+)/(?P<slug>[\w-]+)/$', core.views.InvestigationDetailView.as_view(), name='investigation_detail_all'),
    url(r'^projects/(?P<project>[\w-]+)/(?P<slug>[\w-]+)/edit/$', core.views.InvestigationUpdateView.as_view(), name='investigation_update'),
    url(r'^projects/(?P<project>[\w-]+)/(?P<slug>[\w-]+)/activate/$', never_cache(core.views.ActivateInvestigationRedirectView.as_view()), name='investigation_activate'),
    url(r'^projects/(?P<project>[\w-]+)/(?P<slug>[\w-]+)/deactivate/$', never_cache(core.views.DeactivateInvestigationRedirectView.as_view()), name='investigation_deactivate'),
    url(r'^investigations/$', core.views.InvestigationListView.as_view(), name='investigation_list'),

    # growths urls
    url(r'^growths/search/$', login_required(growths.views.growth_list.as_view()), name='afm_filter'),
    url(r'^(?P<slug>[gt][1-9][0-9]{3,})/$', login_required(growths.views.GrowthDetailView.as_view()), name='growth_detail'),
    url(r'^(?P<slug>[gt][1-9][0-9]{3,})/update$', login_required(growths.views.GrowthUpdateView.as_view()), name='growth_update'),
    url(r'^(?P<slug>[gt][1-9][0-9]{3,})/recipe/$', login_required(growths.views.recipe_detail.as_view()), name='recipe_detail'),<commit_msg>Fix missing slash in urls file<commit_after>from django.conf.urls import include, url
from django.contrib import admin
from django.contrib.auth.decorators import login_required
from django.contrib.auth.views import login, logout
from django.views.decorators.cache import never_cache

from rest_framework.urlpatterns import format_suffix_patterns

import core.views
import growths.views
import afm.api


admin.autodiscover()

urlpatterns = [
    url(r'^ckeditor/', include('ckeditor.urls')),
    url(r'^grappelli/', include('grappelli.urls')),

    # misc urls
    url(r'^$', core.views.HomepageView.as_view(), name='home'),
    url(r'^media/(?P<filename>.*)$', core.views.protected_media),
    url(r'^quicksearch/', core.views.QuickSearchRedirectView.as_view(), name='quicksearch'),
    url(r'^exception/', core.views.ExceptionHandlerView.as_view(), name='exception'),
    url(r'^accounts/login/', login, {'template_name': 'core/login.html'}, name='login'),
    url(r'^accounts/logout/', logout, {'template_name': 'core/logout.html'}, name='logout'),
    url(r'^wbg-admin/', include(admin.site.urls)),

    # core urls
    url(r'^operators/$', core.views.OperatorListView.as_view(), name='operator_list'),
    url(r'^operators/(?P<id>\d+)/activate$', never_cache(core.views.ActivateOperatorRedirectView.as_view()), name='operator_activate'),
    url(r'^operators/(?P<id>\d+)/deactivate$', never_cache(core.views.DeactivateOperatorRedirectView.as_view()), name='operator_deactivate'),
    url(r'^platters/$', core.views.PlatterListView.as_view(), name='platter_list'),
    url(r'^platters/create/$', core.views.PlatterCreateView.as_view(), name='platter_create'),
    url(r'^platters/(?P<id>\d+)/activate/$', never_cache(core.views.ActivatePlatterRedirectView.as_view()), name='platter_activate'),
    url(r'^platters/(?P<id>\d+)/deactivate/$', never_cache(core.views.DeactivatePlatterRedirectView.as_view()), name='platter_deactivate'),
    url(r'^projects/$', core.views.ProjectListView.as_view(), name='project_list'),
    url(r'^projects/create/$', core.views.ProjectCreateView.as_view(), name='project_create'),
    url(r'^projects/track/$', core.views.TrackProjectView.as_view(), name='track_project'),
    url(r'^projects/(?P<slug>[\w-]+)/$', core.views.ProjectDetailView.as_view(), name='project_detail_all'),
    url(r'^projects/(?P<slug>[\w-]+)/edit/$', core.views.ProjectUpdateView.as_view(), name='project_update'),
    url(r'^projects/(?P<slug>[\w-]+)/track/$', never_cache(core.views.TrackProjectRedirectView.as_view()), name='project_track'),
    url(r'^projects/(?P<slug>[\w-]+)/untrack/$', never_cache(core.views.UntrackProjectRedirectView.as_view()), name='project_untrack'),
    url(r'^projects/(?P<slug>[\w-]+)/activate/$', never_cache(core.views.ActivateProjectRedirectView.as_view()), name='project_activate'),
    url(r'^projects/(?P<slug>[\w-]+)/deactivate/$', never_cache(core.views.DeactivateProjectRedirectView.as_view()), name='project_deactivate'),
    url(r'^projects/(?P<slug>[\w-]+)/add-investigation/$', core.views.InvestigationCreateView.as_view(), name='investigation_create'),
    url(r'^projects/(?P<project>[\w-]+)/(?P<slug>[\w-]+)/$', core.views.InvestigationDetailView.as_view(), name='investigation_detail_all'),
    url(r'^projects/(?P<project>[\w-]+)/(?P<slug>[\w-]+)/edit/$', core.views.InvestigationUpdateView.as_view(), name='investigation_update'),
    url(r'^projects/(?P<project>[\w-]+)/(?P<slug>[\w-]+)/activate/$', never_cache(core.views.ActivateInvestigationRedirectView.as_view()), name='investigation_activate'),
    url(r'^projects/(?P<project>[\w-]+)/(?P<slug>[\w-]+)/deactivate/$', never_cache(core.views.DeactivateInvestigationRedirectView.as_view()), name='investigation_deactivate'),
    url(r'^investigations/$', core.views.InvestigationListView.as_view(), name='investigation_list'),

    # growths urls
    url(r'^growths/search/$', login_required(growths.views.growth_list.as_view()), name='afm_filter'),
    url(r'^(?P<slug>[gt][1-9][0-9]{3,})/$', login_required(growths.views.GrowthDetailView.as_view()), name='growth_detail'),
    url(r'^(?P<slug>[gt][1-9][0-9]{3,})/update/$', login_required(growths.views.GrowthUpdateView.as_view()), name='growth_update'),
    url(r'^(?P<slug>[gt][1-9][0-9]{3,})/recipe/$', login_required(growths.views.recipe_detail.as_view()), name='recipe_detail'),
{'fraction_non_alphanumeric': 0.21673572744014732, 'fraction_numerical': 0.003453038674033149, 'mean_word_length': 7.037927844588344, 'pattern_counts': {'":': 0, '<': 49, '<?xml version=': 0, '>': 49, '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': '4570844', 'n_tokens_mistral': 3100, 'n_tokens_neox': 2978, 'n_words': 294}