white-space fixes and using same variable names in
`filter_top_k_appliances` as in `downsample`