KOSASIH / SilkRoad

Do not use variables named 'l', 'O', or 'I' FLK-E741
Style
Minor
5 months ago5 months old
ambiguous variable name 'l'
 99        for pattern in suspicious_patterns:
100            if pattern in log:
101                # A suspicious binomial proportion test
102                p = sum(1 for l in logs if pattern in l) / len(logs)103                z = stats.binom_test(k=1, n=len(logs), p=p, alternative="greater")
104
105                # Check if the binomial proportion is statistically significant