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

Before Change


                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:
                    expanded_paths.append(ext_path)
                    continue

After Change


                    [os.path.join(ext_path, int_path) for int_path in internal_paths]
                )

        if missing_files:
            raise FileNotFoundError(
                errno.ENOENT, os.strerror(errno.ENOENT), os.path.pathsep.join(missing_files)
            )
        return sorted(expanded_paths)

    @classmethod
    def globInternalPaths(cls, file_path:str, glob_str:str, cwd:str=None) -> List[str]:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

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: tensorflow/models
Commit Name: 43587c64f9e25467c17394504a327d90e05b865c
Time: 2020-06-16
Author: hongkuny@google.com
File Name: official/nlp/tasks/sentence_prediction.py
Class Name: SentencePredictionTask
Method Name: initialize


Project Name: ray-project/ray
Commit Name: be8e63d4774207a94fa7d26f9f9e1f7f55f9e664
Time: 2020-08-10
Author: rliaw@berkeley.edu
File Name: python/ray/tune/suggest/suggestion.py
Class Name: Searcher
Method Name: restore_from_dir