<commit_before>#!/usr/bin/env python
# vim: ai ts=4 sts=4 et sw=4

import os
from django.conf.urls.defaults import *
import apps.nigeria.views as views

urlpatterns = patterns('',
    url(r'^locgen/?$', views.generate),
    url(r'^reports/?$', views.index),
    url(r'^reports/summary/(?P<locid>\d*)/?$', views.index),
    url(r'^reports/logistics/summary/(?P<locid>\d*)/?$', views.logistics_summary),
    url(r'^reports/bednets/summary/(?P<range>.*)/?(?P<from>.*)/?(?P<to>.*)/?$', views.bednets_summary),
    url(r'^reports/coupons/summary/(?P<locid>.*)/?$', views.coupons_summary),
    url(r'^reports/supply/summary/(?P<range>.*)/?(?P<from>.*)/?(?P<to>.*)/?$', views.supply_summary),
    url(r'^reports/bednets/daily/(?P<locid>\d*)/?$', views.bednets_daily),
    url(r'^reports/bednets/weekly/(?P<locid>\d*)/?$', views.bednets_weekly),
    url(r'^reports/bednet/monthly/(?P<locid>\d*)/?$', views.bednets_monthly),
    url(r'^reports/coupons/daily/(?P<locid>\d*)/?$', views.coupons_daily),
    url(r'^reports/coupons/weekly/(?P<locid>\d*)/?$', views.coupons_weekly),
    url(r'^reports/coupons/monthly/(?P<locid>\d*)/?$', views.coupons_monthly),
    url(r'^reports/supply/daily/(?P<locid>\d*)/?$', views.supply_daily),
    url(r'^reports/supply/weekly/(?P<locid>\d*)/?$', views.supply_weekly),
    url(r'^reports/supply/monthly/(?P<locid>\d*)/?$', views.supply_monthly),
    url(r'^reports/test/?$', views.index),
    (r'^static/nigeria/(?P<path>.*)$', "django.views.static.serve",
        {"document_root": os.path.dirname(__file__) + "/static"}),
)<commit_msg>patch the daily coupons url to only accept integers<commit_after>#!/usr/bin/env python
# vim: ai ts=4 sts=4 et sw=4

import os
from django.conf.urls.defaults import *
import apps.nigeria.views as views

urlpatterns = patterns('',
    url(r'^locgen/?$', views.generate),
    url(r'^reports/?$', views.index),
    url(r'^reports/summary/(?P<locid>\d*)/?$', views.index),
    url(r'^reports/logistics/summary/(?P<locid>\d*)/?$', views.logistics_summary),
    url(r'^reports/bednets/summary/(?P<range>.*)/?(?P<from>.*)/?(?P<to>.*)/?$', views.bednets_summary),
    url(r'^reports/coupons/summary/(?P<locid>\d*)/?$', views.coupons_summary),
    url(r'^reports/supply/summary/(?P<range>.*)/?(?P<from>.*)/?(?P<to>.*)/?$', views.supply_summary),
    url(r'^reports/bednets/daily/(?P<locid>\d*)/?$', views.bednets_daily),
    url(r'^reports/bednets/weekly/(?P<locid>\d*)/?$', views.bednets_weekly),
    url(r'^reports/bednet/monthly/(?P<locid>\d*)/?$', views.bednets_monthly),
    url(r'^reports/coupons/daily/(?P<locid>\d*)/?$', views.coupons_daily),
    url(r'^reports/coupons/weekly/(?P<locid>\d*)/?$', views.coupons_weekly),
    url(r'^reports/coupons/monthly/(?P<locid>\d*)/?$', views.coupons_monthly),
    url(r'^reports/supply/daily/(?P<locid>\d*)/?$', views.supply_daily),
    url(r'^reports/supply/weekly/(?P<locid>\d*)/?$', views.supply_weekly),
    url(r'^reports/supply/monthly/(?P<locid>\d*)/?$', views.supply_monthly),
    url(r'^reports/test/?$', views.index),
    (r'^static/nigeria/(?P<path>.*)$', "django.views.static.serve",
        {"document_root": os.path.dirname(__file__) + "/static"}),
)
{'fraction_non_alphanumeric': 0.26793048973143757, 'fraction_numerical': 0.0018957345971563982, 'mean_word_length': 5.007590132827325, 'pattern_counts': {'":': 2, '<': 41, '<?xml version=': 0, '>': 41, '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': '5346804', 'n_tokens_mistral': 1402, 'n_tokens_neox': 1310, 'n_words': 124}