<commit_before># -*- coding: utf-8 -*-

"""
feedjack
<NAME>
urls.py
"""

from django.conf.urls.defaults import patterns

urlpatterns = patterns('',
    (r'^rss20.xml$', 'django.views.generic.simple.redirect_to',
        {'url':'/feed/rss/'}),
    (r'^feed/$', 'django.views.generic.simple.redirect_to',
        {'url':'/feed/rss/'}),
    (r'^feed/rss/$', 'feedjack.views.rssfeed'),
    (r'^feed/atom/$', 'feedjack.views.atomfeed'),
    (r'^feed/user/(?P<user>.*)/tag/(?P<tag>.*)/$', 'feedjack.views.buildfeed'),
    (r'^feed/user/(?P<user>.*)/$', 'feedjack.views.buildfeed'),
    (r'^feed/tag/(?P<tag>.*)/$', 'feedjack.views.buildfeed'),
    (r'^user/(?P<user>.*)/tag/(?P<tag>.*)/$', 'feedjack.views.mainview'),
    (r'^user/(?P<user>.*)/$', 'feedjack.views.mainview'),
    (r'^tag/(?P<tag>.*)/$', 'feedjack.views.mainview'),
    (r'^opml/$', 'feedjack.views.opml'),
    (r'^foaf/$', 'feedjack.views.foaf'),
    (r'^$', 'feedjack.views.mainview'),
)<commit_msg>Modifications in the URL schema:<commit_after># -*- coding: utf-8 -*-

"""
feedjack
<NAME>
urls.py
"""

from django.conf.urls.defaults import patterns
from django.views.generic.simple import redirect_to

from feedjack import views



urlpatterns = patterns('',
    (r'^rss20.xml$', redirect_to,
      {'url':'/feed/rss/'}),
    (r'^feed/$', redirect_to,
      {'url':'/feed/rss/'}),
    (r'^feed/rss/$', views.rssfeed),
    (r'^feed/atom/$', views.atomfeed),

    (r'^feed/user/(?P<user>\d+)/tag/(?P<tag>.*)/$', redirect_to,
      {'url':'/feed/atom/user/%(user)s/tag/%(tag)s/'}),
    (r'^feed/user/(?P<user>\d+)/$', redirect_to,
      {'url':'/feed/atom/user/%(user)s/'}),
    (r'^feed/tag/(?P<tag>.*)/$', redirect_to,
      {'url':'/feed/atom/tag/%(tag)/'}),

    (r'^feed/atom/user/(?P<user>\d+)/tag/(?P<tag>.*)/$', views.atomfeed),
    (r'^feed/atom/user/(?P<user>\d+)/$', views.atomfeed),
    (r'^feed/atom/tag/(?P<tag>.*)/$', views.atomfeed),
    (r'^feed/rss/user/(?P<user>\d+)/tag/(?P<tag>.*)/$', views.rssfeed),
    (r'^feed/rss/user/(?P<user>\d+)/$', views.rssfeed),
    (r'^feed/rss/tag/(?P<tag>.*)/$', views.rssfeed),

    (r'^user/(?P<user>\d+)/tag/(?P<tag>.*)/$', views.mainview),
    (r'^user/(?P<user>\d+)/$', views.mainview),
    (r'^tag/(?P<tag>.*)/$', views.mainview),

    (r'^opml/$', views.opml),
    (r'^foaf/$', views.foaf),
    (r'^$', views.mainview),
)
{'fraction_non_alphanumeric': 0.31495726495726495, 'fraction_numerical': 0.002564102564102564, 'mean_word_length': 3.6356435643564358, 'pattern_counts': {'":': 0, '<': 29, '<?xml version=': 0, '>': 29, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, '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': '7509788', 'n_tokens_mistral': 1003, 'n_tokens_neox': 976, 'n_words': 107}