Summarize data

Please, check my code!
I forgot to include some kind of readme.st. To test custom command:
python manage.py summarize [date YYYY-MM-DD] [--nodeletion]
If you pass no parameters it summarizes current date minus 15 days (single day and no a 15-days period)
It was a side comment in OKAPI doc:
"It looks like average can compute the weighted average that, if I can
remember, was for discrete values:
So, which one should we use?"

Could it be that I'm not understanding the difference between
mean_response_whatever and average_response_whatever?

On Mon, Oct 6, 2014 at 8:55 PM, Lorenzo Gil Sanchez <
notifications@github.com> wrote:

> In okapiweb/management/commands/summarize.py:
>
> > +                paths_dict[urlparse(host.url).path].append(host)
> > +                host_response_time_list.append(host.response_time)
> > +                if host.status_code == 200:
> > +                    host_status_200 += 1
> > +                if host.status_code == 400:
> > +                    host_status_400 += 1
> > +                if host.status_code == 404:
> > +                    host_status_404 += 1
> > +                if host.status_code == 500:
> > +                    host_status_500 += 1
> > +                if host.response_time > host_max_response_time:
> > +                    host_max_response_time = host.response_time
> > +                if host.response_time < host_min_response_time:
> > +                    host_min_response_time = host.response_time
> > +
> > +            host_mean_response_time = average(host_response_time_list)
>
> Also note that you are only computing averages but we also want means.
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/redbeacon/okapi-web/pull/23/files#r18477113>.
>



-- 
Alejandro Garcia
Software Engineer at RedBeacon.com