<commit_before># -*- coding: utf-8 -*-
from django.conf.urls.defaults import *
from django.views.generic import TemplateView, ListView
from helios.store.models import Product, ProductImage
from helios.conf import settings
from helios.store.views import CollectionList, ProductDetail, ProductList


urlpatterns = patterns('helios.store.views',
    (r'^cart/clear/$', 'cart_clear'),
    (r'^cart/debug/$', 'cart_debug'),

    url(r'^cart/set/(?P<product_id>\d+)/$',
        'cart_set_quantity',
        name='store_cart_set_quantity'),
    url(r'^checkout/$',
        'checkout',
        name='store_checkout'),
    url(r'^success/$', 'success',
        name='store_success'),
    url(r'^submit-order/$',
        'submit_order',
        name='store_submit_order'),
    url(r'^products/(?P<slug>[-\w]+)/add/$',
        'product_add',
        name='store_product_add'),
    url(r'^products/(?P<slug>[-\w]+)/remove/$',
        'product_remove',
        name='store_product_remove'),
    url(r'^unshippable/$',
        'unshippable',
        name='store_unshippable'),
)

urlpatterns += patterns('',
    url(r'^cart/$',
        TemplateView.as_view(
            template_name='cart.html'
        ),
        name='store_cart'
    ),
    url(r'^products/(?P<slug>[-\w]+)/$',
        ProductDetail.as_view(),
        name='store_product_detail'
    ),
    url(r'^products/$',
        ListView.as_view(
            queryset=Product.objects.filter(is_active__exact=True),
            context_object_name='product_list'
        ),
        name='store_product_list'
    ),
    url(r'^collections/(?P<collection>[-\w]+)/$',<commit_msg>removed submit_order from urls.<commit_after># -*- coding: utf-8 -*-
from django.conf.urls.defaults import *
from django.views.generic import TemplateView, ListView
from helios.store.models import Product, ProductImage
from helios.conf import settings
from helios.store.views import CollectionList, ProductDetail, ProductList


urlpatterns = patterns('helios.store.views',
    (r'^cart/clear/$', 'cart_clear'),
    (r'^cart/debug/$', 'cart_debug'),

    url(r'^cart/set/(?P<product_id>\d+)/$',
        'cart_set_quantity',
        name='store_cart_set_quantity'),
    url(r'^checkout/$',
        'checkout',
        name='store_checkout'),
    url(r'^success/$', 'success',
        name='store_success'),
    #url(r'^submit-order/$',
        #'submit_order',
        #name='store_submit_order'),
    url(r'^products/(?P<slug>[-\w]+)/add/$',
        'product_add',
        name='store_product_add'),
    url(r'^products/(?P<slug>[-\w]+)/remove/$',
        'product_remove',
        name='store_product_remove'),
    url(r'^unshippable/$',
        'unshippable',
        name='store_unshippable'),
)

urlpatterns += patterns('',
    url(r'^cart/$',
        TemplateView.as_view(
            template_name='cart.html'
        ),
        name='store_cart'
    ),
    url(r'^products/(?P<slug>[-\w]+)/$',
        ProductDetail.as_view(),
        name='store_product_detail'
    ),
    url(r'^products/$',
        ListView.as_view(
            queryset=Product.objects.filter(is_active__exact=True),
            context_object_name='product_list'
        ),
        name='store_product_list'
    ),
    url(r'^collections/(?P<collection>[-\w]+)/$',
{'fraction_non_alphanumeric': 0.18204106650321789, 'fraction_numerical': 0.0006129328838492185, 'mean_word_length': 2.995104039167687, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 13, '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': '3668749', 'n_tokens_mistral': 1108, 'n_tokens_neox': 1068, 'n_words': 138}