<commit_before># encoding: utf-8
from django.conf.urls.defaults import *

urlpatterns = patterns('globalshorturls.views',
    url(r'^$', 'index', name='globalshorturls.index'),
    url(r'^deleteshorturl/(?P<url_id>\d+)/$', 'delete_shorturl', name='globalshorturls.delete_shorturl'),
    # You may want to move the following to the end of the global urls.py depending on how you manage your urls
    url(r'^(?P<shorturl>[a-zA-Z0-9]+)/$', 'globalshorturls.views.redirect', name='globalshorturls.redirect')
)<commit_msg>Small change in urls.py so that the app works even if you don't move the url for redirect to the global urls.py<commit_after># encoding: utf-8
from django.conf.urls.defaults import *

urlpatterns = patterns('globalshorturls.views',
    url(r'^$', 'index', name='globalshorturls.index'),
    url(r'^deleteshorturl/(?P<url_id>\d+)/$', 'delete_shorturl', name='globalshorturls.delete_shorturl'),
)

# You probably want to move this addition to the urlpatterns to your global urls.py
urlpatterns += patterns('',
    url(r'^(?P<shorturl>[a-zA-Z0-9]+)/$', 'globalshorturls.views.redirect', name='globalshorturls.redirect')
)
{'fraction_non_alphanumeric': 0.160352422907489, 'fraction_numerical': 0.0052863436123348016, 'mean_word_length': 5.682352941176471, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '5250783', 'n_tokens_mistral': 386, 'n_tokens_neox': 404, 'n_words': 92}