4f89ca033537fe83d912d858b3e337e40a8c799d,src/gluonnlp/data/stream.py,SimpleDatasetStream,__init__,#SimpleDatasetStream#Any#Any#Any#,182

Before Change


        if not isinstance(file_pattern, str):
            raise TypeError("file_pattern must be str, but got %s"%type(file_pattern))
        self._dataset = dataset
        file_pattern = os.path.expanduser(file_pattern)
        self._files = sorted(glob.glob(file_pattern))
        if len(self._files) == 0:
            raise ValueError("Cannot find any file with path "%s""%file_pattern)
        self._file_sampler = self._get_sampler(file_sampler)
        self._kwargs = kwargs

After Change


        if not isinstance(file_pattern, str):
            raise TypeError("file_pattern must be str, but got %s"%type(file_pattern))
        self._dataset = dataset
        self._files = []
        for pattern in file_pattern.split(","):
            self._files.extend(glob.glob(os.path.expanduser(pattern.strip())))
        self._files = sorted(self._files)

        if len(self._files) == 0:
            raise ValueError("Cannot find any file with path "%s""%file_pattern)
        self._file_sampler = self._get_sampler(file_sampler)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 11

Instances


Project Name: dmlc/gluon-nlp
Commit Name: 4f89ca033537fe83d912d858b3e337e40a8c799d
Time: 2019-06-05
Author: linhaibin.eric@gmail.com
File Name: src/gluonnlp/data/stream.py
Class Name: SimpleDatasetStream
Method Name: __init__


Project Name: keras-team/keras
Commit Name: 459d7fe3d7aeb065c42249e955a4053270e81814
Time: 2017-03-15
Author: francois.chollet@gmail.com
File Name: examples/babi_rnn.py
Class Name:
Method Name:


Project Name: keras-team/keras
Commit Name: 459d7fe3d7aeb065c42249e955a4053270e81814
Time: 2017-03-15
Author: francois.chollet@gmail.com
File Name: examples/babi_memnn.py
Class Name:
Method Name: