Message319305
Yes, I agree this should be closed. Especially because my proposed code is so incredibly bad (e.g. regarding performance) that it should be rejected. Back then I was horribly wrong and didn't understand the problem well enough yet.
If somebody would like to have such a function, this is all it needs:
def quick_ratio_ge(self, a, b, threshold):
return threshold <= 2.0*(len(a))/(len(a)+len(b))
Here is how I actually use it in code: https://github.com/modzero/burp-ResponseClusterer/blob/master/ResponseClusterer.py#L343
Sorry for the fuzz |
|
Date |
User |
Action |
Args |
2018-06-11 14:40:32 | floyd | set | recipients:
+ floyd, tim.peters, taleinat |
2018-06-11 14:40:32 | floyd | set | messageid: <1528728032.92.0.592728768989.issue24384@psf.upfronthosting.co.za> |
2018-06-11 14:40:32 | floyd | link | issue24384 messages |
2018-06-11 14:40:32 | floyd | create | |
|