Author floyd
Recipients floyd, taleinat, tim.peters
Date 2018-06-11.14:40:32
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1528728032.92.0.592728768989.issue24384@psf.upfronthosting.co.za>
In-reply-to
Content
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
History
Date User Action Args
2018-06-11 14:40:32floydsetrecipients: + floyd, tim.peters, taleinat
2018-06-11 14:40:32floydsetmessageid: <1528728032.92.0.592728768989.issue24384@psf.upfronthosting.co.za>
2018-06-11 14:40:32floydlinkissue24384 messages
2018-06-11 14:40:32floydcreate