<commit_before>from django.conf.urls import patterns, url, include
from django.views.generic import TemplateView

from profiles.forms import SignupFormExtra

from comicsite.admin import projectadminurls



urlpatterns = patterns('',

    url(r'^test/send_email/$','comicsite.views.send_email'),
    url(r'^test/throw_exception/$','comicsite.views.throw_exception'),
    url(r'^test/throw_http404/$','comicsite.views.throw_http404'),
    
    url(r'^test/test_logging/$','comicsite.views.test_logging'),
        
    url(r'^(?P<site_short_name>[\w-]+)/$','comicsite.views.site'),
            
    # Include an admin url for each project in database. This stretches the django
    # Assumptions of urls being fixed a bit, but it is the only way to reuse much
    # of the automatic admin functionality whithout rewriting the whole interface 
    # see issue #181
    url(r'^', include(projectadminurls.allurls),name='projectadmin'),
    
    url(r'^(?P<site_short_name>[\w-]+)/robots\.txt$', TemplateView.as_view(template_name='robots.html'),name="comicsite_robots_txt"),
    
    
    #url(r'^(?P<site_short_name>[\w-]+)/ckeditor/', include('ckeditor.urls')),
    
    # these registration and account views are viewed in the context of a
    # project
    url(r'^(?P<site_short_name>[\w-]+)/accounts/signin/$','comicsite.views.signin',name="comicsite_signin"),
    url(r'^(?P<site_short_name>[\w-]+)/accounts/signup/$','comicsite.views.signup',{'signup_form':SignupFormExtra},name="comicsite_signup"),    
    url(r'^(?P<site_short_name>[\w-]+)/accounts/signup_complete/$','comicsite.views.signup_complete',name="comicsite_signup_complete"),
    
    url(r'^(?P<site_short_name>[\w-]+)/files/$','comicmodels.views.upload_handler'),
    
    url(r'^(?P<project_name>[\w-]+)/serve/(?P<path>.+)/$','filetransfers.views.serve',name="project_serve_file"),
    <commit_msg>fixes image upload issue: ckeditor urls are now also available under /site/projectname/<commit_after>from django.conf.urls import patterns, url, include
from django.views.generic import TemplateView

from profiles.forms import SignupFormExtra

from comicsite.admin import projectadminurls



urlpatterns = patterns('',

    url(r'^test/send_email/$','comicsite.views.send_email'),
    url(r'^test/throw_exception/$','comicsite.views.throw_exception'),
    url(r'^test/throw_http404/$','comicsite.views.throw_http404'),
    
    url(r'^test/test_logging/$','comicsite.views.test_logging'),
        
    url(r'^(?P<site_short_name>[\w-]+)/$','comicsite.views.site'),
            
    # Include an admin url for each project in database. This stretches the django
    # Assumptions of urls being fixed a bit, but it is the only way to reuse much
    # of the automatic admin functionality whithout rewriting the whole interface 
    # see issue #181
    url(r'^', include(projectadminurls.allurls),name='projectadmin'),
    
    url(r'^(?P<site_short_name>[\w-]+)/robots\.txt$', TemplateView.as_view(template_name='robots.html'),name="comicsite_robots_txt"),
    
    
    url(r'^(?P<site_short_name>[\w-]+)/ckeditor/', include('ckeditor.urls')),
    
    # these registration and account views are viewed in the context of a
    # project
    url(r'^(?P<site_short_name>[\w-]+)/accounts/signin/$','comicsite.views.signin',name="comicsite_signin"),
    url(r'^(?P<site_short_name>[\w-]+)/accounts/signup/$','comicsite.views.signup',{'signup_form':SignupFormExtra},name="comicsite_signup"),    
    url(r'^(?P<site_short_name>[\w-]+)/accounts/signup_complete/$','comicsite.views.signup_complete',name="comicsite_signup_complete"),
    
    url(r'^(?P<site_short_name>[\w-]+)/files/$','comicmodels.views.upload_handler'),
    
    url(r'^(?P<project_name>[\w-]+)/serve/(?P<path>.+)/$','filetransfers.views.serve',name="project_serve_file"),
    
{'fraction_non_alphanumeric': 0.17310218019437879, 'fraction_numerical': 0.004728132387706856, 'mean_word_length': 4.77845220030349, 'pattern_counts': {'":': 0, '<': 21, '<?xml version=': 0, '>': 21, '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': '3676941', 'n_tokens_mistral': 1343, 'n_tokens_neox': 1294, 'n_words': 193}