<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 projectadminsite




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'^admin/', include(projectadminsite.urls)),
                             
    url(r'^(?P<site_short_name>\w+)/$','comicsite.views.site'),
        
    url(r'^(?P<site_short_name>\w+)/admin/', include(projectadminsite.urls)),
    
    url(r'^(?P<site_short_name>\w+)/robots\.txt$', TemplateView.as_view(template_name='robots.html'),name="comicsite_robots_txt"),
    
    # 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+)/accounts/signup/$','comicsite.views.signup',{'signup_form':SignupFormExtra},name="comicsite_signup"),
    # tell (nice) bots what to do  
    
            
    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"),
    
    url(r'^(?P<site_short_name>\w+)/_register/$','comicsite.views._register'),
    
    url(r'^(?P<site_short_name>\w+)/source/(?P<page_title>\w+)/$','comicsite.views.pagesource'),
    
    url(r'^(?P<site_short_name>\w+)/(?P<page_title>\w+)/db/(?P<dropboxname>\w+)/(?P<dropboxpath>.+)/$','comicsite.views.dropboxpage'),
    
    url(r'^(?P<site_short_name>\w+)/(?P<page_title>\w+)/insert/(?P<dropboxpath>.+)/$','comicsite.views.insertedpage'),
    
    url(r'^(?P<site_short_name>\w+)/(?P<page_title>\w+)/$','comicsite.views.page'),
    
)
    <commit_msg>fixes #223, extended comicsite url regexes to also match hyphens<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 projectadminsite




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'^admin/', include(projectadminsite.urls)),
                             
    url(r'^(?P<site_short_name>[\w-]+)/$','comicsite.views.site'),
        
    url(r'^(?P<site_short_name>[\w-]+)/admin/', include(projectadminsite.urls)),
    
    url(r'^(?P<site_short_name>[\w-]+)/robots\.txt$', TemplateView.as_view(template_name='robots.html'),name="comicsite_robots_txt"),
    
    # 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-]+)/accounts/signup/$','comicsite.views.signup',{'signup_form':SignupFormExtra},name="comicsite_signup"),
    # tell (nice) bots what to do  
    
            
    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"),
    
    url(r'^(?P<site_short_name>[\w-]+)/_register/$','comicsite.views._register'),
    
    url(r'^(?P<site_short_name>[\w-]+)/source/(?P<page_title>[\w-]+)/$','comicsite.views.pagesource'),
    
    url(r'^(?P<site_short_name>[\w-]+)/(?P<page_title>[\w-]+)/db/(?P<dropboxname>\w+)/(?P<dropboxpath>.+)/$','comicsite.views.dropboxpage'),
    
    url(r'^(?P<site_short_name>[\w-]+)/(?P<page_title>[\w-]+)/insert/(?P<dropboxpath>.+)/$','comicsite.views.insertedpage'),
    
    url(r'^(?P<site_short_name>[\w-]+)/(?P<page_title>[\w-]+)/$','comicsite.views.page'),
    
)
    
{'fraction_non_alphanumeric': 0.21641477749790092, 'fraction_numerical': 0.0031486146095717885, 'mean_word_length': 4.508670520231214, 'pattern_counts': {'":': 0, '<': 47, '<?xml version=': 0, '>': 47, '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': '1171248', 'n_tokens_mistral': 1859, 'n_tokens_neox': 1785, 'n_words': 131}