<commit_before>from django.conf.urls import patterns, include, url
from django.contrib import admin

admin.autodiscover()

urlpatterns = patterns('',
     url(r'^admin/', include(admin.site.urls)),
     (r'^accounts/', include('registration.backends.default.urls')),

     url(r'^$', 'wiki.views.home', name='home'),

     url(r'^article_trie/$', 'wiki.views.article_trie', name='article_trie'),
     url(r'^(?P<slug>[A-Za-z0-9]+)$', 'wiki.views.article', name='article'),

)<commit_msg>Added more lenient slug rules for articles<commit_after>from django.conf.urls import patterns, include, url
from django.contrib import admin

admin.autodiscover()

urlpatterns = patterns('',
     url(r'^admin/', include(admin.site.urls)),
     (r'^accounts/', include('registration.backends.default.urls')),

     url(r'^$', 'wiki.views.home', name='home'),

     url(r'^article_trie/$', 'wiki.views.article_trie', name='article_trie'),
     url(r'^(?P<slug>[A-Za-z0-9]+).*$', 'wiki.views.article', name='article'),

)
{'fraction_non_alphanumeric': 0.208955223880597, 'fraction_numerical': 0.003980099502487562, 'mean_word_length': 5.134146341463414, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '4646513', 'n_tokens_mistral': 367, 'n_tokens_neox': 350, 'n_words': 58}