What?
```    if ((0.0 >= target_ratio) || (target_ratio >= 1.0))
    {
      return false;
    }```
That's from the bloom filter's compress() function, and 1.0 means "all bits set". I think what you want here is just
```bloom.compress(.5)```
but I have no idea if that's actually what we're after either.