ceb74bf9380bc6f7be25142162bed8dc17998daa,Orange/widgets/data/owcolor.py,DiscColorTableModel,setData,#DiscColorTableModel#Any#Any#Any#,126

Before Change


            return ColorTableModel.setData(self, index, value, role)
        desc = self.variables[row]
        if role == ColorRole:
            if not desc.colors:
                desc.colors = desc.var.colors.tolist()
            desc.colors[col - 1] = value[:3]
        elif role == Qt.EditRole:
            if not desc.values:
                desc.values = list(desc.var.values)
            desc.values[col - 1] = value
        else:
            return False

After Change


        if role == ColorRole:
            desc.set_color(col - 1, value[:3])
        elif role == Qt.EditRole:
            desc.set_value(col - 1, value)
        else:
            return False
        self.dataChanged.emit(index, index)
        return True
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 6

Instances


Project Name: biolab/orange3
Commit Name: ceb74bf9380bc6f7be25142162bed8dc17998daa
Time: 2020-02-06
Author: janez.demsar@fri.uni-lj.si
File Name: Orange/widgets/data/owcolor.py
Class Name: DiscColorTableModel
Method Name: setData


Project Name: hachmannlab/chemml
Commit Name: 1672b5a9a47b081aa3e61c9f2ca76fae26ed8730
Time: 2017-11-12
Author: mojtabah@buffalo.edu
File Name: cheml/wrappers/cheml_cml/cheml_wrapper.py
Class Name: RDKitFingerprint
Method Name: fit


Project Name: biolab/orange3
Commit Name: ceb74bf9380bc6f7be25142162bed8dc17998daa
Time: 2020-02-06
Author: janez.demsar@fri.uni-lj.si
File Name: Orange/widgets/data/owcolor.py
Class Name: DiscColorTableModel
Method Name: setData


Project Name: hachmannlab/chemml
Commit Name: 1672b5a9a47b081aa3e61c9f2ca76fae26ed8730
Time: 2017-11-12
Author: mojtabah@buffalo.edu
File Name: cheml/wrappers/cheml_cml/cheml_wrapper.py
Class Name: DistanceMatrix
Method Name: fit