01bc4e74733031805ac70e1b0968bd0d978136d0,cellprofiler/modules/overlayoutlines.py,OverlayOutlines,prepare_settings,#OverlayOutlines#Any#,135

Before Change


    def prepare_settings(self, setting_values):
        assert (len(setting_values) - 6) % 2 == 0
        self.outlines = []
        for i in range((len(setting_values) - 6)/2):
            self.add_outline()

    def settings(self):
        result = [self.blank_image, self.image_name, self.output_image_name,
                  self.wants_color, self.max_type, self.line_width]
        for outline in self.outlines:

After Change


        if len(self.outlines) == 0:
            self.add_outline(False)
        elif len(self.outlines) > num_settings:
            del self.outlines[num_settings:]
        else:
            for i in range(len(self.outlines), num_settings):
                self.add_outline()
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: CellProfiler/CellProfiler
Commit Name: 01bc4e74733031805ac70e1b0968bd0d978136d0
Time: 2014-05-06
Author: leek@broadinstitute.org
File Name: cellprofiler/modules/overlayoutlines.py
Class Name: OverlayOutlines
Method Name: prepare_settings


Project Name: Microsoft/nni
Commit Name: b7cd20e62f7dfb7b28407c84cd6b48098fddb915
Time: 2019-07-11
Author: Quanlu.Zhang@microsoft.com
File Name: src/sdk/pynni/nni/bohb_advisor/bohb_advisor.py
Class Name: BOHB
Method Name: handle_trial_end


Project Name: bethgelab/foolbox
Commit Name: 9d21406b95816a5cdeb631c0f7bf19579bfb3bf8
Time: 2020-02-11
Author: git@jonasrauber.de
File Name: foolbox/attacks/dataset_attack.py
Class Name: DatasetAttack
Method Name: feed