<commit_before>"""
Donomo Archive urls that form the AJAX API

"""

#
# pylint: disable-msg=C0103,W0401
#
#   C0103 - variables at module scope must be all caps
#   W0401 - wildcard import
#

from django.conf.urls.defaults     import patterns, url
from donomo.archive.api.api_views  import *

__all__ = ( 'urlpatterns' )

urlpatterns = patterns(
    '',
    url( r'^documents/?$',
         document_list,
         name = 'api_document_list' ),

    url( r'^documents/(?P<pk>\d+)/?$',
         document_info,
         name = 'api_document_info' ),

    url( r'^documents/(?P<pk>\d+)/pdf/?$',
         document_as_pdf,
         name = 'api_document_as_pdf' ),

    url( r'^pages/(?P<pk>\d+)/?$',
         page_info,
         name = 'api_page_info' ),

    url( r'^pages/(?P<pk>\d+)/view/(?P<view_name>\w+)/?$',
         page_view,
         name = 'api_page_view' ),

    url( r'^pages/(?P<pk>\d+)/pdf/?$',
         page_as_pdf,
         name = 'api_page_as_pdf' ),

    url( r'^tags/?$',
         tag_list,
         name = 'api_tag_list' ),

    url( r'^tags/(?P<label>[-a-zA-Z0-9_]+)/?$',
         tag_info,
         name = 'api_tag_info' ),
)

<commit_msg>restoring changes made in r215<commit_after>"""
Donomo Archive urls that form the AJAX API

"""

#
# pylint: disable-msg=C0103,W0401
#
#   C0103 - variables at module scope must be all caps
#   W0401 - wildcard import
#

from django.conf.urls.defaults     import patterns, url
from donomo.archive.api.api_views  import *

__all__ = ( 'urlpatterns' )

urlpatterns = patterns(
    '',
    url( r'^documents/$',
         document_list,
         name = 'api_document_list' ),

    url( r'^documents/(?P<pk>\d+)/$',
         document_info,
         name = 'api_document_info' ),

    url( r'^documents/(?P<pk>\d+)/pdf/$',
         document_as_pdf,
         name = 'api_document_as_pdf' ),

    url( r'^pages/(?P<pk>\d+)/$',
         page_info,
         name = 'api_page_info' ),

    url( r'^pages/(?P<pk>\d+)/view/(?P<view_name>\w+|[\-])/$',
         page_view,
         name = 'api_page_view' ),

    url( r'^pages/(?P<pk>\d+)/pdf/$',
         page_as_pdf,
         name = 'api_page_as_pdf' ),

    url( r'^tags/$',
         tag_list,
         name = 'api_tag_list' ),

    url( r'^tags/(?P<label>[-a-zA-Z0-9_]+)/$',
         tag_info,
         name = 'api_tag_info' ),
)


{'fraction_non_alphanumeric': 0.18443680137575236, 'fraction_numerical': 0.016766981943250214, 'mean_word_length': 2.329041487839771, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 17, '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': '4733304', 'n_tokens_mistral': 946, 'n_tokens_neox': 882, 'n_words': 154}