<commit_before>from django.conf.urls import url

from rest_framework.urlpatterns import format_suffix_patterns

from . import views


# this allows using ".json" extensions for the view to force json output
urlpatterns = format_suffix_patterns(
    [url(r'^$', 'search', name='search')])

urlpatterns += [
    url(r'^/xml$',
        views.plugin,
        name='search.plugin'),
    url(r'^/suggestions$',
        views.suggestions,
        name='search.suggestions'),
]<commit_msg>bug 1116335 - fix another url conf in search<commit_after>from django.conf.urls import url

from rest_framework.urlpatterns import format_suffix_patterns

from . import views


# this allows using ".json" extensions for the view to force json output
urlpatterns = format_suffix_patterns(
    [url(r'^$', views.search, name='search')])

urlpatterns += [
    url(r'^/xml$',
        views.plugin,
        name='search.plugin'),
    url(r'^/suggestions$',
        views.suggestions,
        name='search.suggestions'),
]
{'fraction_non_alphanumeric': 0.12637913741223672, 'fraction_numerical': 0.007021063189568706, 'mean_word_length': 3.7298578199052135, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, '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': '875389', 'n_tokens_mistral': 324, 'n_tokens_neox': 302, 'n_words': 77}