b156eba3ba09229a10692cffdc26bb8604b9f651,api-examples/transformer_utils.py,MultiFileLoader,__iter__,#MultiFileLoader#,410

Before Change



        self.vectorizer.mxlen = self.nctx

        for file in files[start_idx:end_idx]:
            with open(file) as rf:
                for line in rf:
                    response = self.process_line(line)

After Change


        for file_idx in read_file_order:
            file = files[file_idx]
            with open(file) as rf:
                lines = rf.readlines()
                if self.shuffle:
                    random.shuffle(lines)
                for l in lines:
                    response = self.process_line(l)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: dpressel/mead-baseline
Commit Name: b156eba3ba09229a10692cffdc26bb8604b9f651
Time: 2020-06-08
Author: dpressel@gmail.com
File Name: api-examples/transformer_utils.py
Class Name: MultiFileLoader
Method Name: __iter__


Project Name: silvandeleemput/memcnn
Commit Name: 441ba8f82e54a935d16c110fbc61071c3739c6e8
Time: 2019-07-09
Author: silvandeleemput@gmail.com
File Name: docs/conf.py
Class Name:
Method Name:


Project Name: Cadene/pretrained-models.pytorch
Commit Name: 570a22506963b004e79f543507dadc9959c3b438
Time: 2017-07-13
Author: remi.cadene@icloud.com
File Name: test/toy-example.py
Class Name:
Method Name: