<commit_before>from django.conf.urls.defaults import *
from django.views.generic.date_based import archive_index

from grid.models import Grid

from grid.views import (
        add_feature,
        add_grid,
        add_grid_package,
        add_new_grid_package,
        ajax_grid_list,
        delete_feature,
        delete_grid_package,
        edit_element,
        edit_grid,
        edit_feature,
        grid_detail,
        grid_detail_feature,
        grids
    )

urlpatterns = patterns("",

    
    url(
        regex = '^add/$',
        view    = add_grid,
        name    = 'add_grid',
    ),    
    
    url(
        regex = '^(?P<slug>[-\w]+)/edit/$',
        view    = edit_grid,
        name    = 'edit_grid',
    ),    
    
    url(
        regex = '^g/(?P<slug>[-\w]+)/$',
        view    = grid_detail,
        name    = 'grid',
        kwargs  = {'template_name': 'grid/grid_detail2.html'},
    ), 
    
    url(
        regex = '^element/(?P<feature_id>\d+)/(?P<package_id>\d+)/$',
        view    = edit_element,
        name    = 'edit_element',
    ),  
    
    url(
        regex = '^feature/add/(?P<grid_slug>[a-z0-9\-\_]+)/$',
        view    = add_feature,
        name    = 'add_feature',
    ),         
    
    url(
        regex = '^feature/(?P<id>\d+)/$',<commit_msg>Commented out usage of grid_detail2.html and made note. Uncomment if you are working with grids and need to test with the @sontek new grids.<commit_after>from django.conf.urls.defaults import *
from django.views.generic.date_based import archive_index

from grid.models import Grid

from grid.views import (
        add_feature,
        add_grid,
        add_grid_package,
        add_new_grid_package,
        ajax_grid_list,
        delete_feature,
        delete_grid_package,
        edit_element,
        edit_grid,
        edit_feature,
        grid_detail,
        grid_detail_feature,
        grids
    )

urlpatterns = patterns("",

    
    url(
        regex = '^add/$',
        view    = add_grid,
        name    = 'add_grid',
    ),    
    
    url(
        regex = '^(?P<slug>[-\w]+)/edit/$',
        view    = edit_grid,
        name    = 'edit_grid',
    ),    
    
    url(
        regex = '^g/(?P<slug>[-\w]+)/$',
        view    = grid_detail,
        name    = 'grid',
# Note: Uncomment the following if you are working on grid rotation, grid permissions, 
#  or other grid detail related code.  This is @sontek's new grid detail template.
#  The grid_detail2.html file will replace grid_detail.html once it is fully stable
#  in all browsers and production-ready.
#        kwargs  = {'template_name': 'grid/grid_detail2.html'},
    ), 
    
    url(
        regex = '^element/(?P<feature_id>\d+)/(?P<package_id>\d+)/$',
        view    = edit_element,
        name    = 'edit_element',
    ),  
    
    url(
        regex = '^feature/add/(?P<grid_slug>[a-z0-9\-\_]+)/$',
        view    = add_feature,
        name    = 'add_feature',
    ),         
    
    url(
        regex = '^feature/(?P<id>\d+)/$',
{'fraction_non_alphanumeric': 0.13232389730085584, 'fraction_numerical': 0.0026333113890717576, 'mean_word_length': 1.7880733944954128, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 15, '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': '1020831', 'n_tokens_mistral': 1013, 'n_tokens_neox': 1000, 'n_words': 204}