boundary/bear — pull request #18 by banjiewen (2013-11-17 02:27:14+00:00)
Title: get_statistics_subset should return well-formatted null results

The existing code for handling lists of values that don't meet minimum
length causes problems when the `percentiles` key is used; e.g., rather
than the expected

[{percentile, [{0.5, 0.0}, ... ]}]

the user is presented with

[{{percentile, [0.5, ... ]}, 0.0}]

which doesn't match the formatting for other subset keys. This patch
special-cases the `percentile` key to return the expected result.

Also cleaned up a bit of tab/space mixage.