02480197d8b24414166eb23b573d7e5ac9e49a7a,ilastik/applets/dataSelection/opDataSelection.py,DatasetInfo,expand_path,#Any#Any#Any#,246

Before Change


                externalPath = components.externalPath
            else:
                externalPath = os.path.join(cwd, components.externalPath)
            unglobbed_paths = glob.glob(os.path.expanduser(externalPath))
            if not unglobbed_paths:
                raise FileNotFoundError(externalPath)
            for ext_path in unglobbed_paths:
                if not cls.fileHasInternalPaths(ext_path) or not components.internalPath:

After Change


        cwd = cwd or os.getcwd()
        pathComponents = [PathComponents(path) for path in splitPath(file_path)]
        expanded_paths = []
        missing_files = []
        for components in pathComponents:
            if os.path.isabs(components.externalPath):
                externalPath = components.externalPath
            else:
                externalPath = os.path.join(cwd, components.externalPath)
            expanded_path = os.path.expanduser(externalPath)
            unglobbed_paths = glob.glob(expanded_path)
            if not unglobbed_paths:
                missing_files.append(expanded_path)
                continue
            for ext_path in unglobbed_paths:
                if not cls.fileHasInternalPaths(ext_path) or not components.internalPath:
                    expanded_paths.append(ext_path)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: ilastik/ilastik
Commit Name: 02480197d8b24414166eb23b573d7e5ac9e49a7a
Time: 2019-08-01
Author: tomaz.vieira@embl.de
File Name: ilastik/applets/dataSelection/opDataSelection.py
Class Name: DatasetInfo
Method Name: expand_path


Project Name: biotite-dev/biotite
Commit Name: f259c920b941a573451c1a1fe81c407689c5768a
Time: 2018-02-08
Author: patrick.kunzm@gmail.com
File Name: setup.py
Class Name:
Method Name: get_extensions


Project Name: stellargraph/stellargraph
Commit Name: 7a9c823fa3422e642e779e3ed23e4dda935ee14f
Time: 2019-12-05
Author: andrew.docherty@data61.csiro.au
File Name: scripts/format_notebooks.py
Class Name:
Method Name: