8861dfa21d1cfd487b7a6eb7508885f084f58e6c,ilastik/applets/dataSelection/datasetInfoEditorWidget.py,DatasetInfoEditorWidget,__init__,#DatasetInfoEditorWidget#Any#Any#Any#,72

Before Change


        self.okButton.clicked.connect(self.accept)
        self.cancelButton.clicked.connect(self.reject)

        input_axiskeys = ["".join(tag.key for tag in info.axistags) for info in infos]

        self.multi_axes_display.setEnabled(False)
        self.multi_axes_display.setText("Current: " + ", ".join(input_axiskeys))
        if all(len(keys) == len(input_axiskeys[0]) for keys in input_axiskeys):
            selector_keys = input_axiskeys[0]
        else:
            selector_keys = ""
            self.multi_axes_display.setToolTip("Select lanes with same number of axes to change their interpretation here")

        for axis_index, axis_selector in enumerate(self.axis_selectors):
            axis_selector = self.axis_selectors[axis_index]
            within_bounds = axis_index < len(selector_keys)
            axis_selector.setVisible(within_bounds)
            axis_selector.setEnabled(within_bounds)
            axis_selector.setCurrentText(selector_keys[axis_index] if within_bounds else "x")

After Change


        self.multi_axes_display.setText("Current: " + ", ".join(input_axiskeys))
        if all(len(keys) == len(input_axiskeys[0]) for keys in input_axiskeys):
            self.axesEdit.setMaxLength(len(input_axiskeys[0]))
            self.axesEdit.textChanged.connect(self.validate_new_axiskeys)
            different_axiskeys = set(input_axiskeys)
            if len(different_axiskeys) == 1:
                self.axesEdit.setText(different_axiskeys.pop())
        else:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 4

Instances


Project Name: ilastik/ilastik
Commit Name: 8861dfa21d1cfd487b7a6eb7508885f084f58e6c
Time: 2019-07-10
Author: tomaz.vieira@embl.de
File Name: ilastik/applets/dataSelection/datasetInfoEditorWidget.py
Class Name: DatasetInfoEditorWidget
Method Name: __init__


Project Name: NifTK/NiftyNet
Commit Name: 63793169f8952f3cab5b1dc63a99952c958271e2
Time: 2018-05-25
Author: wenqi.li@ucl.ac.uk
File Name: niftynet/engine/handler_tensorboard.py
Class Name: TensorBoardLogger
Method Name: __init__


Project Name: pymc-devs/pymc3
Commit Name: 5b2766aae94c0615aef2c8d6ac178428e6d28745
Time: 2008-07-20
Author: fonnesbeck@15d7aa0b-6f1a-0410-991a-d59f85d14984
File Name: pymc/database/mysql.py
Class Name: Trace
Method Name: _initialize


Project Name: NifTK/NiftyNet
Commit Name: b263ab3a2904ee85910623cd770eb6763d81e4a9
Time: 2018-04-24
Author: wenqi.li@ucl.ac.uk
File Name: niftynet/engine/event_tensorboard.py
Class Name: TensorBoardLogger
Method Name: __init__