98c6276f31e10297fa5048a4fd45308c5bdb8606,qiskit_acqua/ui/run/_controller.py,Controller,on_property_set,#Controller#Any#Any#Any#,353

Before Change


            return False
            
        try:
            properties = self._model.get_section_properties(section_name)
            self._propertiesView.populate(properties)
            self._propertiesView.show_add_button(self.shows_add_button(section_name))
            self._propertiesView.show_remove_button(
                    property_name != InputParser.NAME and self._propertiesView.has_selection()) 
            default_properties = self._model.get_section_default_properties(section_name)
            if isinstance(default_properties,OrderedDict):
                default_properties =  dict(default_properties)
                
            if isinstance(default_properties,dict) and InputParser.NAME in properties:
                default_properties[InputParser.NAME] = properties[InputParser.NAME]
                
            self._propertiesView.show_defaults_button(properties != default_properties)
            section_names = self._model.get_section_names()
            self._sectionsView.populate(section_names,section_name)
            missing = self.get_sections_names_missing()

After Change


            return False
            
        try:
            self._propertiesView.populate(self._model.get_section_properties(section_name))
            self._propertiesView.show_add_button(self.shows_add_button(section_name))
            self._propertiesView.show_remove_button(
                    property_name != InputParser.NAME and self._propertiesView.has_selection()) 
            self._propertiesView.show_defaults_button(not self._model.default_properties_equals_properties(section_name))
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 22

Instances


Project Name: Qiskit/qiskit-aqua
Commit Name: 98c6276f31e10297fa5048a4fd45308c5bdb8606
Time: 2018-06-04
Author: manoel@us.ibm.com
File Name: qiskit_acqua/ui/run/_controller.py
Class Name: Controller
Method Name: on_property_set


Project Name: Qiskit/qiskit-aqua
Commit Name: 98c6276f31e10297fa5048a4fd45308c5bdb8606
Time: 2018-06-04
Author: manoel@us.ibm.com
File Name: qiskit_acqua/ui/run/_controller.py
Class Name: Controller
Method Name: on_section_property_remove


Project Name: Qiskit/qiskit-aqua
Commit Name: 98c6276f31e10297fa5048a4fd45308c5bdb8606
Time: 2018-06-04
Author: manoel@us.ibm.com
File Name: qiskit_acqua/ui/run/_controller.py
Class Name: Controller
Method Name: on_property_set


Project Name: Qiskit/qiskit-aqua
Commit Name: 98c6276f31e10297fa5048a4fd45308c5bdb8606
Time: 2018-06-04
Author: manoel@us.ibm.com
File Name: qiskit_acqua/ui/run/_controller.py
Class Name: Controller
Method Name: on_section_select