e7eefe879b9e5b7a279d80588af59d08f21365a1,aletheialib/attacks.py,,difference,#Any#Any#,133

Before Change


        L.append(np.sign(smoothness(flip) - smoothness(g)))
    N = len(L)
    R = float(L.count(1))/N
    S = float(L.count(-1))/N
    return R-S
// }}}

After Change


    for g in groups(I, mask):
        flip = (g + cmask) ^ abs_mask - cmask
        result = np.sign(smoothness(flip) - smoothness(g))
        if result not in counts:
            counts[result] = 0
        counts[result] += 1
    N = sum(counts.values())
    R = float(counts[1])/N
    S = float(counts[-1])/N
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: daniellerch/aletheia
Commit Name: e7eefe879b9e5b7a279d80588af59d08f21365a1
Time: 2020-11-01
Author: kevin.clark@gmail.com
File Name: aletheialib/attacks.py
Class Name:
Method Name: difference


Project Name: RaRe-Technologies/gensim
Commit Name: 680de8d4f35325e7486c07c4e06422929e826b57
Time: 2019-01-10
Author: __Singleton__@hackerdom.ru
File Name: gensim/corpora/lowcorpus.py
Class Name: LowCorpus
Method Name: line2doc


Project Name: kwgoodman/numerox
Commit Name: 0b74d1f551daa7646782e685a8f04a88cda23849
Time: 2017-11-08
Author: kwgoodman@gmail.com
File Name: numerox/numerai.py
Class Name:
Method Name: upload_submission