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

user_match = "[A-Za-z0-9]+(?:[ _-][A-Za-z0-9]+)*"

urlpatterns = patterns('',
    url(r'^$', 'troposphere.views.root'),
    url(r'^application/emulate/(?P<username>(%s))[/]?$' % user_match, 'troposphere.views.emulate',
        name='emulate-user'),
    url(r'^application', 'troposphere.views.application', name='application'),
    url(r'^maintenance$', 'troposphere.views.maintenance', name='maintenance'),
    url(r'^forbidden$', 'troposphere.views.forbidden', name='forbidden'),
    url(r'^login$', 'troposphere.views.login'),
    url(r'^logout$', 'troposphere.views.logout'),
    url(r'^cas/oauth2.0$', 'troposphere.views.cas_oauth_service',
        name='cas_oauth_service'),
    url(r'^version$', 'troposphere.views.version'),
)<commit_msg>Add support so routes to end with /. 	modified:   troposphere/urls.py<commit_after>from django.conf.urls import patterns, include, url

user_match = "[A-Za-z0-9]+(?:[ _-][A-Za-z0-9]+)*"

urlpatterns = patterns('',
    url(r'^$', 'troposphere.views.root'),
    url(r'^application/emulate/(?P<username>(%s))[/]?$' % user_match, 'troposphere.views.emulate',
        name='emulate-user'),
    url(r'^application[/]?', 'troposphere.views.application', name='application'),
    url(r'^maintenance[/]?$', 'troposphere.views.maintenance', name='maintenance'),
    url(r'^forbidden[/]?$', 'troposphere.views.forbidden', name='forbidden'),
    url(r'^login[/]?$', 'troposphere.views.login'),
    url(r'^logout[/]?$', 'troposphere.views.logout'),
    url(r'^cas/oauth2.0[/]?$', 'troposphere.views.cas_oauth_service',
        name='cas_oauth_service'),
    url(r'^version[/]?$', 'troposphere.views.version'),
)
{'fraction_non_alphanumeric': 0.23072429906542055, 'fraction_numerical': 0.007009345794392523, 'mean_word_length': 5.251824817518248, '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': '5589250', 'n_tokens_mistral': 681, 'n_tokens_neox': 658, 'n_words': 78}