ddf1a1eed6b7b8891fd7045d9e1f70625990996f,polyaxon_schemas/polyaxonfile/polyaxonfile.py,PolyaxonFile,__init__,#PolyaxonFile#Any#,18

Before Change


            if not os.path.isfile(filepath):
                raise PolyaxonfileError("`{}` must be a valid file".format(filepath))
        self._filenames = [os.path.basename(filepath) for filepath in filepaths]
        try:
            self.specification = GroupSpecification(filepaths)
            return
        except PolyaxonfileGroupError:
            pass
        except PolyaxonConfigurationError as e:
            raise PolyaxonfileError(e)

        try:
            self.specification = Specification(filepaths)
        except PolyaxonConfigurationError as e:
            raise PolyaxonfileError(e)

After Change


            if not os.path.isfile(filepath):
                raise PolyaxonfileError("`{}` must be a valid file".format(filepath))
        self._filenames = [os.path.basename(filepath) for filepath in filepaths]
        data = reader.read(filepaths)
        kind = BaseSpecification.get_kind(data=data)
        try:
            self.specification = SPECIFICATION_BY_KIND[kind](data)
        except PolyaxonConfigurationError as e:
            raise PolyaxonfileError(e)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 7

Instances


Project Name: polyaxon/polyaxon
Commit Name: ddf1a1eed6b7b8891fd7045d9e1f70625990996f
Time: 2018-04-06
Author: mouradmourafiq@gmail.com
File Name: polyaxon_schemas/polyaxonfile/polyaxonfile.py
Class Name: PolyaxonFile
Method Name: __init__


Project Name: rflamary/POT
Commit Name: 702f222a428cfabb464c92da5e101642afdc643d
Time: 2018-05-02
Author: remi.flamary@gmail.com
File Name: setup.py
Class Name:
Method Name:


Project Name: iskandr/fancyimpute
Commit Name: 69e3281193adeac365b0a223fbfb13eb8be2ee5e
Time: 2018-11-09
Author: alex.rubinsteyn@gmail.com
File Name: setup.py
Class Name:
Method Name: