<commit_before>from django.conf.urls import patterns, url, include
from django.views.decorators.csrf import csrf_exempt

from speeches.views import *
from speeches.search import InstanceSearchView
from tastypie.api import Api
from speeches.api import SpeechResource, SpeakerResource

v01_api = Api(api_name='v0.1')
v01_api.register(SpeakerResource())
v01_api.register(SpeechResource())

urlpatterns = patterns('',<commit_msg>Use NamespacedApi to fix api pages.<commit_after>from django.conf.urls import patterns, url, include
from django.views.decorators.csrf import csrf_exempt

from speeches.views import *
from speeches.search import InstanceSearchView
from tastypie.api import NamespacedApi
from speeches.api import SpeechResource, SpeakerResource

# XXX The below assumes this app is being included with a 'speeches' namespace.
# Unclear how to have this inherit whichever namespace is being used.
v01_api = NamespacedApi(api_name='v0.1', urlconf_namespace='speeches')
v01_api.register(SpeakerResource())
v01_api.register(SpeechResource())

urlpatterns = patterns('',
{'fraction_non_alphanumeric': 0.08115671641791045, 'fraction_numerical': 0.014925373134328358, 'mean_word_length': 7.007462686567164, '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': '1254596', 'n_tokens_mistral': 333, 'n_tokens_neox': 309, 'n_words': 93}