<commit_before>from django.conf.urls.defaults import *

urlpatterns = patterns('',
                       (r'^$', 'library.views.index'),                        
                       
                       (r'^upload/$', 'library.views.upload'),

                       (r'^chapter/(?P<title>.+)/(?P<author>.+)/(?P<chapter_id>.+)/$', 'library.views.view_chapter_frame'),                       

                       # Images from within documents
                       (r'^(view|chapter)/(?P<title>[^/]+)/(?P<author>[^/]+)/(?P<chapter_id>[^/]+)/(?P<image>.*\..*)$', 
                        'library.views.view_chapter_image'),                       
                       
                       (r'^view/(?P<title>.+)/(?P<author>.+)/(?P<chapter_id>.+)/$', 'library.views.view_chapter'),                       


                       (r'^view/(?P<title>.+)/(?P<author>[^/]+)/$', 'library.views.view'),

                       (r'^css/(?P<title>[^/]+)/(?P<author>[^/]+)/(?P<stylesheet_id>.+)/$', 'library.views.view_stylesheet'),                       
                       (r'^delete/(?P<title>.+)/(?P<author>[^/]+)/$', 'library.views.delete'),

                       (r'^download/epub/(?P<title>.+)/(?P<author>[^/]+)/$', 'library.views.download_epub'),

                       (r'^profile/$', 'library.views.profile'),

                       (r'^profile/delete/$', 'library.views.profile_delete'),
                       (r'^about/$', 'library.views.about'),

                       (r'^admin/search/$', 'library.admin.search'),
                       )
<commit_msg>Issue 10: Changed all URLs, some additional comments<commit_after>from django.conf.urls.defaults import *

urlpatterns = patterns('',
                       (r'^$', 'library.views.index'),                        
                       
                       (r'^upload/$', 'library.views.upload'),

                       # View a chapter in frame mode
                       (r'^chapter/(?P<title>.+)/(?P<key>.+)/(?P<chapter_id>.+)/$', 'library.views.view_chapter_frame'),                       

                       # Images from within documents
                       (r'^(view|chapter)/(?P<title>[^/]+)/(?P<key>[^/]+)/(?P<chapter_id>[^/]+)/(?P<image>.*\..*)$', 
                        'library.views.view_chapter_image'),                       

                       # View a chapter in non-frame mode
                       (r'^view/(?P<title>.+)/(?P<key>.+)/(?P<chapter_id>.+)/$', 'library.views.view_chapter'),                       

                       # Main entry point for a document
                       (r'^view/(?P<title>.+)/(?P<key>[^/]+)/$', 'library.views.view'),

                       # CSS file for within a document (frame-mode)
                       (r'^css/(?P<title>[^/]+)/(?P<key>[^/]+)/(?P<stylesheet_id>.+)/$', 'library.views.view_stylesheet'),                       

                       # DEPRECATED; should be POST
                       (r'^delete/(?P<title>.+)/(?P<author>[^/]+)/$', 'library.views.delete'),
                       
                       # Download a source epub file
                       (r'^download/epub/(?P<title>.+)/(?P<key>[^/]+)/$', 'library.views.download_epub'),

                       # User profile
                       (r'^profile/$', 'library.views.profile'),
                       
                       # DEPRECATE, unsafe
                       (r'^profile/delete/$', 'library.views.profile_delete'),

                       # Static pages
                       (r'^about/$', 'library.views.about'),

                       # Admin pages
                       (r'^admin/search/$', 'library.admin.search'),
                       )

{'fraction_non_alphanumeric': 0.20291419320021586, 'fraction_numerical': 0.0005396654074473826, 'mean_word_length': 1.2466666666666666, 'pattern_counts': {'":': 0, '<': 41, '<?xml version=': 0, '>': 41, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 5, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6225633', 'n_tokens_mistral': 1139, 'n_tokens_neox': 971, 'n_words': 119}