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

from urlmiddleware.conf import middleware, mpatterns

from test_urlmiddleware.middleware import NoOpMiddleWare, NoOpMiddleWare2

urlpatterns = patterns('django.views.generic.simple',
    url(r'^$', 'direct_to_template', {'template': 'base.html'}),
    url(r'^accounts/$', 'direct_to_template', {'template': 'base.html'}),
    url(r'^no_middleware/$', 'direct_to_template', {'template': 'base.html'}),
)


middlewarepatterns = mpatterns('',
    middleware(r'^$', NoOpMiddleWare),
    middleware(r'^sub/$', NoOpMiddleWare),
    middleware(r'^sub/$', NoOpMiddleWare2),
    middleware(r'^dotted/$', 'test_urlmiddleware.middleware.NoOpMiddleWare3'),
    (r'^dotted/$', 'test_urlmiddleware.middleware.NoOpMiddleWare4'),
    middleware(r'^dupe/$', 'test_urlmiddleware.middleware.NoOpMiddleWare5'),
    (r'^dupe/$', 'test_urlmiddleware.middleware.NoOpMiddleWare5'),
    middleware(r'^include_test/$', include('test_urlmiddleware.urls_include')),
    (r'^include_test/$', include('test_urlmiddleware.urls_include')),
    middleware(r'^include_views_test/$', include('test_urlmiddleware.urls_empty')),
)

middlewarepatterns += mpatterns('test_urlmiddleware.middleware',
    middleware(r'^dotted2/$', 'NoOpMiddleWare6'),<commit_msg>Removed end matching parts in the URL's that shouldn't be there.<commit_after>from django.conf.urls.defaults import patterns, url, include

from urlmiddleware.conf import middleware, mpatterns

from test_urlmiddleware.middleware import NoOpMiddleWare, NoOpMiddleWare2


urlpatterns = patterns('django.views.generic.simple',
    url(r'^$', 'direct_to_template', {'template': 'base.html'}),
    url(r'^accounts/$', 'direct_to_template', {'template': 'base.html'}),
    url(r'^no_middleware/$', 'direct_to_template', {'template': 'base.html'}),
)


middlewarepatterns = mpatterns('',
    middleware(r'^$', NoOpMiddleWare),
    middleware(r'^sub/$', NoOpMiddleWare),
    middleware(r'^sub/$', NoOpMiddleWare2),
    middleware(r'^dotted/$', 'test_urlmiddleware.middleware.NoOpMiddleWare3'),
    (r'^dotted/$', 'test_urlmiddleware.middleware.NoOpMiddleWare4'),
    middleware(r'^dupe/$', 'test_urlmiddleware.middleware.NoOpMiddleWare5'),
    (r'^dupe/$', 'test_urlmiddleware.middleware.NoOpMiddleWare5'),
    middleware(r'^include_test/', include('test_urlmiddleware.urls_include')),
    (r'^include_test/', include('test_urlmiddleware.urls_include')),
    middleware(r'^include_views_test/', include('test_urlmiddleware.urls_empty')),
)

middlewarepatterns += mpatterns('test_urlmiddleware.middleware',
    middleware(r'^dotted2/$', 'NoOpMiddleWare6'),
{'fraction_non_alphanumeric': 0.16937618147448016, 'fraction_numerical': 0.0060491493383742915, 'mean_word_length': 7.091743119266055, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '5374319', 'n_tokens_mistral': 951, 'n_tokens_neox': 897, 'n_words': 121}