1d275bddd7349b765db88c76ec7dcfdf85de0f42,aletheialib/attacks.py,,difference,#,132
Before Change
def difference(I, mask):
cmask = - mask
cmask[(mask > 0)] = 0
abs_mask = np.abs(mask)
counts = {}
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())
After Change
pool.close()
pool.join()
counts = [0, 0, 0]
for v in analysis:
counts[v] += 1
N = sum(counts)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances
Project Name: daniellerch/aletheia
Commit Name: 1d275bddd7349b765db88c76ec7dcfdf85de0f42
Time: 2020-11-07
Author: kevin.clark@gmail.com
File Name: aletheialib/attacks.py
Class Name:
Method Name: difference
Project Name: daavoo/pyntcloud
Commit Name: 8d63d75858cc6df30ea19c55f0da955d8d46f53a
Time: 2018-07-26
Author: daviddelaiglesiacastro@gmail.com
File Name: pyntcloud/core_class.py
Class Name: PyntCloud
Method Name: plot
Project Name: erichson/ristretto
Commit Name: 83579d7761d6bc995e1e6e90cd376191e648081e
Time: 2018-03-07
Author: Benli11@users.noreply.github.com
File Name: ristretto/nmf/rnmf_fhals.py
Class Name:
Method Name: rnmf_fhals