<commit_before>﻿from django.conf.urls.defaults import *
from django.contrib.comments.feeds import LatestCommentsFeed
from django.views.generic.simple import direct_to_template, redirect_to
from codereviewr.settings import PROJECT_PATH, DEBUG
from codereviewr.feeds import *
#from django.contrib.comments.feeds import *
import os

#feeds dictionary
feeds = {
	'code':CodeFeed,
	'comments':LatestCommentsFeed,
	'language': LanguageFeed,
	'latest':LatestFeed,
	'user': UserFeed,
}

urlpatterns = patterns('',
    (r'^code/', include('codereviewr.code.urls')),
    
    # Admin
    (r'^admin/code/language/refresh/$', 'code.views.refresh_languages'),
    (r'^admin/', include('django.contrib.admin.urls')),

    # OpenID
    (r'^openid/$', 'openid_cr.views.begin', {'redirect_to': '/openid/complete/'}),
    (r'^openid/complete/$', 'openid_cr.views.complete'),
    (r'^openid/signout/$', 'openid_cr.views.signout'),
    
    #for homepage - testing
    (r'^$', direct_to_template, {'template': 'homepage.html'}),
	
    (r'^feeds/(?P<url>.*)/$', 'django.contrib.syndication.views.feed', {'feed_dict': feeds}),
)

if DEBUG:
    urlpatterns += patterns('', 
        (r'^media/(.*)$', 'django.views.static.serve', {'document_root': '%s/../media' % (PROJECT_PATH)})
    )<commit_msg>changed - urls.py to include comment above feeds pattern<commit_after>﻿from django.conf.urls.defaults import *
from django.contrib.comments.feeds import LatestCommentsFeed
from django.views.generic.simple import direct_to_template, redirect_to
from codereviewr.settings import PROJECT_PATH, DEBUG
from codereviewr.feeds import *
#from django.contrib.comments.feeds import *
import os

#feeds dictionary
feeds = {
	'code':CodeFeed,
	'comments':LatestCommentsFeed,
	'language': LanguageFeed,
	'latest':LatestFeed,
	'user': UserFeed,
}

urlpatterns = patterns('',
    (r'^code/', include('codereviewr.code.urls')),
    
    # Admin
    (r'^admin/code/language/refresh/$', 'code.views.refresh_languages'),
    (r'^admin/', include('django.contrib.admin.urls')),

    # OpenID
    (r'^openid/$', 'openid_cr.views.begin', {'redirect_to': '/openid/complete/'}),
    (r'^openid/complete/$', 'openid_cr.views.complete'),
    (r'^openid/signout/$', 'openid_cr.views.signout'),
    
    #for homepage - testing
    (r'^$', direct_to_template, {'template': 'homepage.html'}),
	
    #Feeds
    (r'^feeds/(?P<url>.*)/$', 'django.contrib.syndication.views.feed', {'feed_dict': feeds}),
)

if DEBUG:
    urlpatterns += patterns('', 
        (r'^media/(.*)$', 'django.views.static.serve', {'document_root': '%s/../media' % (PROJECT_PATH)})
    )
{'fraction_non_alphanumeric': 0.18716372021521907, 'fraction_numerical': 0.0, 'mean_word_length': 4.538297872340426, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '4469092', 'n_tokens_mistral': 920, 'n_tokens_neox': 881, 'n_words': 154}