<commit_before># Universal Subtitles, universalsubtitles.org
# 
# Copyright (C) 2010 Participatory Culture Foundation
# 
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
# 
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU Affero General Public License for more details.
# 
# You should have received a copy of the GNU Affero General Public License
# along with this program.  If not, see 
# http://www.gnu.org/licenses/agpl-3.0.html.

from django.conf.urls.defaults import *
from django.conf import settings
from django.contrib.sites.models import Site

# Uncomment the next two lines to enable the admin:
from django.contrib import admin
admin.autodiscover()

urlpatterns = patterns(
    '',
    (r'^$', 'django.views.generic.simple.direct_to_template', 
     {'template': 'index.html'}),
    url(r'^logout/', 'django.contrib.auth.views.logout', name='logout', 
        kwargs={'next_page': '/'}),
    url(r'^admin/password_reset/$', 
        'django.contrib.auth.views.password_reset', 
        name='password_reset'),
    (r'^password_reset/done/$', 
     'django.contrib.auth.views.password_reset_done'),
    (r'^reset/(?P<uidb36>[0-9A-Za-z]+)-(?P<token>.+)/$', 
     'django.contrib.auth.views.password_reset_confirm'),
    (r'^reset/done/$', 'django.contrib.auth.views.password_reset_complete'),
    (r'socialauth/', include('socialauth.urls')),
    (r'^admin/', include(admin.site.urls)),
    (r'^embed.js$', 'widget.views.embed'),
    (r'^widget_demo/$', 'widget.views.widget_demo'),
    (r'^widget_public_demo/$', 'widget.views.widget_public_demo'),
    (r'^onsite_widget/$', 'widget.views.onsite_widget'),
    url(r'^widget/twitter_login/', 'socialauth.views.twitter_login', 
        kwargs={'next': '/widget/close_window/'}),
    (r'^widget/rpc/xd/(\w+)$', 'widget.views.xd_rpc'),
    (r'^widget/rpc/xhr/(\w+)$', 'widget.views.rpc'),
    (r'^widget/rpc/jsonp/(\w+)$', 'widget.views.jsonp'),
    (r'^widget/login/$', 'django.contrib.auth.views.login'),
    (r'^widget/close_window/$', 
     'django.views.generic.simple.direct_to_template', 
     {'template' : 'widget/close_window.html'}),
    (r'^widget/download_srt/$', 'widget.views.srt'),
    (r'^widget/download"connect the various stakeholders working on project with open
subtitling needs or focus"_null_srt/$', 'widget.views.null_srt'),
    (r'^jstest/(\w+)', 'jstesting.views.jstest'),
    (r'^jsdemo/(\w+)', 'jsdemo.views.jsdemo'),
    (r'^videos/', include('videos.urls', namespace='videos', 
                          app_name='videos')),
    (r'^profiles/', include('profiles.urls', namespace='profiles', 
                            app_name='profiles')),
    (r'auth/', include('auth.urls', namespace='auth',
                       app_name='auth')),
    url(r'^demo/$', 'videos.views.demo', name="demo"),
    (r'^about$',  'django.views.generic.simple.direct_to_template', 
     {'template': 'about.html'}),
		(r'^faq$',  'django.views.generic.simple.direct_to_template', 
     {'template': 'faq.html'}, 'faq_page'),
		(r'^opensubtitles2010$',  'django.views.generic.simple.direct_to_template', 
     {'template': 'opensubtitles2010.html'}, 'opensubtitles2010_page'),
		(r'^revision$',  'django.views.generic.simple.direct_to_template', <commit_msg>Fixing problem from Dean's earlier commit<commit_after># Universal Subtitles, universalsubtitles.org
# 
# Copyright (C) 2010 Participatory Culture Foundation
# 
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
# 
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU Affero General Public License for more details.
# 
# You should have received a copy of the GNU Affero General Public License
# along with this program.  If not, see 
# http://www.gnu.org/licenses/agpl-3.0.html.

from django.conf.urls.defaults import *
from django.conf import settings
from django.contrib.sites.models import Site

# Uncomment the next two lines to enable the admin:
from django.contrib import admin
admin.autodiscover()

urlpatterns = patterns(
    '',
    (r'^$', 'django.views.generic.simple.direct_to_template', 
     {'template': 'index.html'}),
    url(r'^logout/', 'django.contrib.auth.views.logout', name='logout', 
        kwargs={'next_page': '/'}),
    url(r'^admin/password_reset/$', 
        'django.contrib.auth.views.password_reset', 
        name='password_reset'),
    (r'^password_reset/done/$', 
     'django.contrib.auth.views.password_reset_done'),
    (r'^reset/(?P<uidb36>[0-9A-Za-z]+)-(?P<token>.+)/$', 
     'django.contrib.auth.views.password_reset_confirm'),
    (r'^reset/done/$', 'django.contrib.auth.views.password_reset_complete'),
    (r'socialauth/', include('socialauth.urls')),
    (r'^admin/', include(admin.site.urls)),
    (r'^embed.js$', 'widget.views.embed'),
    (r'^widget_demo/$', 'widget.views.widget_demo'),
    (r'^widget_public_demo/$', 'widget.views.widget_public_demo'),
    (r'^onsite_widget/$', 'widget.views.onsite_widget'),
    url(r'^widget/twitter_login/', 'socialauth.views.twitter_login', 
        kwargs={'next': '/widget/close_window/'}),
    (r'^widget/rpc/xd/(\w+)$', 'widget.views.xd_rpc'),
    (r'^widget/rpc/xhr/(\w+)$', 'widget.views.rpc'),
    (r'^widget/rpc/jsonp/(\w+)$', 'widget.views.jsonp'),
    (r'^widget/login/$', 'django.contrib.auth.views.login'),
    (r'^widget/close_window/$', 
     'django.views.generic.simple.direct_to_template', 
     {'template' : 'widget/close_window.html'}),
    (r'^widget/download_srt/$', 'widget.views.srt'),
    (r'^widget/download_null_srt/$', 'widget.views.null_srt'),
    (r'^jstest/(\w+)', 'jstesting.views.jstest'),
    (r'^jsdemo/(\w+)', 'jsdemo.views.jsdemo'),
    (r'^videos/', include('videos.urls', namespace='videos', 
                          app_name='videos')),
    (r'^profiles/', include('profiles.urls', namespace='profiles', 
                            app_name='profiles')),
    (r'auth/', include('auth.urls', namespace='auth',
                       app_name='auth')),
    url(r'^demo/$', 'videos.views.demo', name="demo"),
    (r'^about$',  'django.views.generic.simple.direct_to_template', 
     {'template': 'about.html'}),
		(r'^faq$',  'django.views.generic.simple.direct_to_template', 
     {'template': 'faq.html'}, 'faq_page'),
		(r'^opensubtitles2010$',  'django.views.generic.simple.direct_to_template', 
     {'template': 'opensubtitles2010.html'}, 'opensubtitles2010_page'),
		(r'^revision$',  'django.views.generic.simple.direct_to_template', 
{'fraction_non_alphanumeric': 0.178274940199803, 'fraction_numerical': 0.006472491909385114, 'mean_word_length': 3.977591036414566, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1472517', 'n_tokens_mistral': 2437, 'n_tokens_neox': 2311, 'n_words': 463}