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

urlpatterns = patterns('nutrition.views',
    url(r'^nutrition/overview/$', 'overview'),
    
    # Plans
    url(r'^nutrition/add/$', 'add'),
    url(r'^nutrition/(?P<id>\d+)/view/$', 'view'),    
    url(r'^nutrition/(?P<id>\d+)/delete/$', 'delete_plan'),
    url(r'^nutrition/(?P<id>\d+)/edit/$', 'edit_plan'),
    
    # Meals
    url(r'^nutrition/(?P<id>\d+)/edit/meal/(?P<meal_id>\w*)$', 'edit_meal'),
    url(r'^nutrition/(?P<id>\d+)/add/meal/$', 'add_meal'),
    url(r'^nutrition/delete/meal/(?P<id>\d+)$', 'delete_meal'),
    
    # Meal items
    url(r'^nutrition/(?P<id>\d+)/edit/meal/(?P<meal_id>\d+)/item/(?P<item_id>\w*)$', 'edit_meal_item'),
    url(r'^nutrition/delete/meal/item/(?P<item_id>\d+)$', 'delete_meal_item'),
    
    # Ingredients
    url(r'^nutrition/ingredient/overview/$', 'ingredient_overview'),
    url(r'^nutrition/ingredient/view/(?P<id>\d+)$', 'ingredient_view'),
    url(r'^nutrition/ingredient/edit/(?P<id>\w*)$', 'ingredient_edit'),
    url(r'^nutrition/ingredient/delete/(?P<id>\d+)$', 'delete_ingredient'),
    url(r'^nutrition/ingredient/search/$', 'ingredient_search'),
    url(r'^nutrition/export_pdf/(?P<id>\d+)$', 'export_pdf'),

)<commit_msg>Chage the URL for exporting PDF to be more consistent with the rest<commit_after>from django.conf.urls import patterns, include, url

urlpatterns = patterns('nutrition.views',
    url(r'^nutrition/overview/$', 'overview'),
    
    # Plans
    url(r'^nutrition/add/$', 'add'),
    url(r'^nutrition/(?P<id>\d+)/view/$', 'view'),    
    url(r'^nutrition/(?P<id>\d+)/delete/$', 'delete_plan'),
    url(r'^nutrition/(?P<id>\d+)/edit/$', 'edit_plan'),
    url(r'^nutrition/(?P<id>\d+)/pdf/$', 'export_pdf'),

    
    # Meals
    url(r'^nutrition/(?P<id>\d+)/edit/meal/(?P<meal_id>\w*)$', 'edit_meal'),
    url(r'^nutrition/(?P<id>\d+)/add/meal/$', 'add_meal'),
    url(r'^nutrition/delete/meal/(?P<id>\d+)$', 'delete_meal'),
    
    # Meal items
    url(r'^nutrition/(?P<id>\d+)/edit/meal/(?P<meal_id>\d+)/item/(?P<item_id>\w*)$', 'edit_meal_item'),
    url(r'^nutrition/delete/meal/item/(?P<item_id>\d+)$', 'delete_meal_item'),
    
    # Ingredients
    url(r'^nutrition/ingredient/overview/$', 'ingredient_overview'),
    url(r'^nutrition/ingredient/view/(?P<id>\d+)$', 'ingredient_view'),
    url(r'^nutrition/ingredient/edit/(?P<id>\w*)$', 'ingredient_edit'),
    url(r'^nutrition/ingredient/delete/(?P<id>\d+)$', 'delete_ingredient'),
    url(r'^nutrition/ingredient/search/$', 'ingredient_search'),
    
)
{'fraction_non_alphanumeric': 0.26061550447993764, 'fraction_numerical': 0.0, 'mean_word_length': 4.475479744136461, 'pattern_counts': {'":': 0, '<': 33, '<?xml version=': 0, '>': 33, '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': '5785905', 'n_tokens_mistral': 1101, 'n_tokens_neox': 998, 'n_words': 102}