<commit_before>from django.conf.urls.defaults import *
from django.conf import settings
from django.http import HttpResponse

urlpatterns = patterns('')

urlpatterns += patterns('',
	(r'^/?$', 'wyclif.views.index'),
	(r'^input/?$', 'wyclif.views.input'),
)

urlpatterns += patterns('wyclif.work.views',
	(r'^work/?$', 											'all_works'),
	(r'^work/(?P<work>.*)/?$', 								'one_work'),
	(r'^work/(?P<work>.*)/(?P<model>.*)/?$', 				'model_by_work'),
	(r'^work/(?P<work>.*)/(?P<model>.*)/(?P<id>\d*)/?$', 	'element_by_id'),
)

urlpatterns += patterns('',
	(r'^sentry/', include('sentry.urls')),
)


#static media
urlpatterns += patterns('',
	(r'^static/(?P<path>.*)$',			'django.views.static.serve',
										{
											'document_root':	settings.STATIC_PATH,
											'show_indexes':		(settings.DEBUG==True)
										}
	),
	(r'^media/(?P<path>.*)$',			'django.views.static.serve',
										{
											'document_root':	settings.MEDIA_ROOT,
											'show_indexes':		(settings.DEBUG==True)
										}
	),
	(r'^robots\.txt$', lambda response : HttpResponse("User-agent: *\r\nDisallow: /\r\n", mimetype="text/plain") ),
)

# implementing tastypie api.
from tastypie.api import Api
from wyclif.api import ParagraphResource, ChapterResource, TitleResource<commit_msg>Remove invalid implementation of admin media.<commit_after>from django.conf.urls.defaults import *
from django.conf import settings
from django.http import HttpResponse

urlpatterns = patterns('')

urlpatterns += patterns('',
	(r'^/?$', 'wyclif.views.index'),
	(r'^input/?$', 'wyclif.views.input'),
)

urlpatterns += patterns('wyclif.work.views',
	(r'^work/?$', 											'all_works'),
	(r'^work/(?P<work>.*)/?$', 								'one_work'),
	(r'^work/(?P<work>.*)/(?P<model>.*)/?$', 				'model_by_work'),
	(r'^work/(?P<work>.*)/(?P<model>.*)/(?P<id>\d*)/?$', 	'element_by_id'),
)

urlpatterns += patterns('',
	(r'^sentry/', include('sentry.urls')),
)


#static media
urlpatterns += patterns('',
	(r'^static/(?P<path>.*)$',			'django.views.static.serve',
										{
											'document_root':	settings.STATIC_PATH,
											'show_indexes':		(settings.DEBUG==True)
										}
	),
	(r'^robots\.txt$', lambda response : HttpResponse("User-agent: *\r\nDisallow: /\r\n", mimetype="text/plain") ),
)

# implementing tastypie api.
from tastypie.api import Api
from wyclif.api import ParagraphResource, ChapterResource, TitleResource
{'fraction_non_alphanumeric': 0.2273105745212323, 'fraction_numerical': 0.0, 'mean_word_length': 3.825301204819277, 'pattern_counts': {'":': 0, '<': 18, '<?xml version=': 0, '>': 18, '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': '3468601', 'n_tokens_mistral': 1077, 'n_tokens_neox': 900, 'n_words': 136}