66d38b7fc3bcb93b187b996487d3ea1acdf75a2c,ilastik/applets/counting/countingSerializer.py,CountingSerializer,isDirty,#CountingSerializer#,287

Before Change



    def isDirty(self):
        // Check all slots except the prediction slot
        serialSlots = set(self.serialSlots)
        serialSlots -= set([self.predictionSlot])
        result = any(list(ss.dirty for ss in serialSlots))

        // Check the prediction slot, but only if prediction storage is enabled
        result |= (self.predictionSlot.dirty and self.predictionSlot.predictionStorageEnabled)

After Change


        self.predictionSlot.cancel()

    def isDirty(self):
        for slot in self.serialSlots:
            if slot == self.predictionSlot:
                continue
            if slot.dirty:
                return True
        if self.predictionSlot.predictionStorageEnabled:
            return self.predictionSlot.dirty
        return False
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 7

Instances


Project Name: ilastik/ilastik
Commit Name: 66d38b7fc3bcb93b187b996487d3ea1acdf75a2c
Time: 2018-10-08
Author: emilmelnikov@gmail.com
File Name: ilastik/applets/counting/countingSerializer.py
Class Name: CountingSerializer
Method Name: isDirty


Project Name: RaRe-Technologies/gensim
Commit Name: 9021ea8b31871e760095086669651dd1f072fce0
Time: 2018-03-01
Author: johannes.baiter@gmail.com
File Name: gensim/models/fasttext.py
Class Name: FastTextTrainables
Method Name: init_ngrams_post_load


Project Name: scikit-image/scikit-image
Commit Name: c3ee3c508dd721ec078ac757f3d8213930f274a6
Time: 2017-01-18
Author: me@scottsievert.com
File Name: skimage/restoration/tests/test_denoise.py
Class Name:
Method Name: test_wavelet_denoising_args