fcf9813198d63169d0e93c1086746645e9432218,ilastik/applets/dataSelection/datasetInfoEditorWidget.py,DatasetInfoEditorWidget,accept,#DatasetInfoEditorWidget#,262

Before Change


        self.edited_infos = []
        for info in self.current_infos:
            if self.internalDatasetNameComboBox.isEnabled():
                pathComponents = PathComponents(info.filePath)
                pathComponents.internalPath = self.internalDatasetNameComboBox.currentText()
                filePath = pathComponents.totalPath()
            else:
                filePath = info.filePath

            if newStorageLocation == StorageLocation.ProjectFile:
                location = DatasetInfo.Location.ProjectInternal
            elif newStorageLocation == StorageLocation.Default:
                location = info.location
            else:
                location = DatasetInfo.Location.FileSystem
                if newStorageLocation == StorageLocation.RelativeLink:
                    filePath = Path(filePath).absolute().relative_to(self.projectFileDir).as_posix()
                else:
                    filePath = Path(filePath).absolute().as_posix()

After Change


        for info in self.current_infos:
            location = info.location if new_location is None else new_location
            new_full_paths = [Path(ep) / internal_path for ep in info.external_paths]
            filepath = os.path.pathsep.join(str(path) for path in new_full_paths)

            edited_info = DatasetInfo(
                filepath=filepath,
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: ilastik/ilastik
Commit Name: fcf9813198d63169d0e93c1086746645e9432218
Time: 2019-07-19
Author: tomaz.vieira@embl.de
File Name: ilastik/applets/dataSelection/datasetInfoEditorWidget.py
Class Name: DatasetInfoEditorWidget
Method Name: accept


Project Name: RasaHQ/rasa
Commit Name: 1b0b95aed59bc27d0585fc8766a73ab136a32e0f
Time: 2020-09-11
Author: t.kober@rasa.com
File Name: tests/nlu/classifiers/test_diet_classifier.py
Class Name:
Method Name: test_train_model_checkpointing


Project Name: RasaHQ/rasa
Commit Name: 1b0b95aed59bc27d0585fc8766a73ab136a32e0f
Time: 2020-09-11
Author: t.kober@rasa.com
File Name: tests/nlu/selectors/test_selectors.py
Class Name:
Method Name: test_train_model_checkpointing