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

from . import views


urlpatterns = patterns('',
    url('^language-tools/(?P<category>[^/]+)?$', views.language_tools,
        name='browse.language-tools'),

    url('^themes/(?P<category>[^/]+)?$', views.themes,
        name='browse.themes'),

    url('^extensions/(?:(?P<category>[^/]+)/)?$', views.extensions,
        name='browse.extensions'),

    url('^extensions/(?P<category>[^/]+)/featured$',
        views.creatured, name='browse.creatured'),

    url('^personas/(?P<category>[^ /]+)?$', views.personas,
        name='browse.personas'),

    url('^search-engines/(?:(?P<category>[^/]+)/)?$', views.search_engines,
        name='browse.search-engines'),

    url('^browse/type:(?P<type_>\d)(?:/cat:(?P<category>[^/]+)/?)?',
        views.legacy_redirects),
)<commit_msg>only capture the numeric part<commit_after>from django.conf.urls.defaults import patterns, url

from . import views


urlpatterns = patterns('',
    url('^language-tools/(?P<category>[^/]+)?$', views.language_tools,
        name='browse.language-tools'),

    url('^themes/(?P<category>[^/]+)?$', views.themes,
        name='browse.themes'),

    url('^extensions/(?:(?P<category>[^/]+)/)?$', views.extensions,
        name='browse.extensions'),

    url('^extensions/(?P<category>[^/]+)/featured$',
        views.creatured, name='browse.creatured'),

    url('^personas/(?P<category>[^ /]+)?$', views.personas,
        name='browse.personas'),

    url('^search-engines/(?:(?P<category>[^/]+)/)?$', views.search_engines,
        name='browse.search-engines'),

    url('^browse/type:(?P<type_>\d)(?:/cat:(?P<category>\d+).*)?',
        views.legacy_redirects),
)
{'fraction_non_alphanumeric': 0.254088785046729, 'fraction_numerical': 0.0, 'mean_word_length': 4.053097345132743, 'pattern_counts': {'":': 0, '<': 19, '<?xml version=': 0, '>': 19, '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': '7348250', 'n_tokens_mistral': 646, 'n_tokens_neox': 592, 'n_words': 64}