1d275bddd7349b765db88c76ec7dcfdf85de0f42,aletheialib/attacks.py,,difference,#Any#Any#,132
Before Change
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:
After Change
// {{{ difference()
def difference(I, mask):
pool = Pool(multiprocessing.cpu_count())
analysis = pool.map(RSAnalysis(mask).call, groups(I, mask))
pool.close()
pool.join()
counts = [0, 0, 0]
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
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: tyarkoni/pliers
Commit Name: 1549b25b3b199a90e83ad1569258d61315c5dcb0
Time: 2017-06-27
Author: quinten.mcnamara@gmail.com
File Name: pliers/extractors/models.py
Class Name: TensorFlowInceptionV3Extractor
Method Name: _extract
Project Name: NifTK/NiftyNet
Commit Name: 898a9387984d8434245618eda47a6e3f052bbba0
Time: 2018-03-20
Author: wenqi.li@ucl.ac.uk
File Name: niftynet/utilities/user_parameters_regex.py
Class Name:
Method Name: match_array