222747eeef01d05c4cd876e00929c8a8129486bd,Orange/widgets/data/owfile.py,OWFile,select_file,#OWFile#Any#,240

Before Change


            recent = self.recent_paths[n]
            del self.recent_paths[n]
            self.recent_paths.insert(0, recent)
        elif n:
            self.browse_file(True)

        if len(self.recent_paths) > 0:

After Change


            path = self.file_combo.currentText()
            if path == "Browse documentation data sets...":
                self.browse_file(True)
            elif os.path.exists(path):
                self._add_path(path)
            else:
                valid, err = self.is_url_valid(path)
                if valid:
                    _, filename = os.path.split(path)
                    recent = RecentPath(path, "url-datasets", filename)
                    if recent in self.recent_paths:
                        self.recent_paths.remove(recent)
                    self.recent_paths.insert(0, recent)
                else:
                    self.error(0, err)
                    self.file_combo.removeItem(n)
                    self.file_combo.lineEdit().setText(path)
                    return

        if len(self.recent_paths) > 0:
            self.set_file_list()
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 6

Instances


Project Name: biolab/orange3
Commit Name: 222747eeef01d05c4cd876e00929c8a8129486bd
Time: 2015-10-16
Author: tankovesna@hotmail.com
File Name: Orange/widgets/data/owfile.py
Class Name: OWFile
Method Name: select_file


Project Name: biolab/orange3
Commit Name: a8e096598169ba78a43f0c4c3bacfa973bc6d079
Time: 2017-01-20
Author: pavlin.g.p@gmail.com
File Name: Orange/widgets/model/owadaboost.py
Class Name: OWAdaBoost
Method Name: set_base_learner


Project Name: biolab/orange3
Commit Name: fa6c972e591818486cc440ace67c622cf401eb08
Time: 2016-12-02
Author: pavlin.g.p@gmail.com
File Name: Orange/widgets/classify/owadaboost.py
Class Name: OWAdaBoostClassification
Method Name: set_base_learner