e06a88bf1d009679512b15de4be9e66afbed817a,sacred/run.py,Run,_get_captured_output,#Run#,240

Before Change


        flush()
        self._output_file.flush()
        self._output_file.seek(0)
        text = self._output_file.read().decode()
        if self.captured_out_filter is not None:
            text = self.captured_out_filter(text)
        self.captured_out = text

After Change


        self._output_file.flush()
        self._output_file.seek(0)
        text = self._output_file.read()
        if isinstance(text, bytes):
            text = text.decode()
        if self.captured_out_filter is not None:
            text = self.captured_out_filter(text)
        self.captured_out = text
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 6

Non-data size: 5

Instances


Project Name: IDSIA/sacred
Commit Name: e06a88bf1d009679512b15de4be9e66afbed817a
Time: 2017-04-13
Author: qwlouse@gmail.com
File Name: sacred/run.py
Class Name: Run
Method Name: _get_captured_output


Project Name: openml/openml-python
Commit Name: 8ed133ec4a5c2780c324ee171cd20ddb5368dc95
Time: 2018-10-17
Author: arlindkadra@gmail.com
File Name: openml/datasets/functions.py
Class Name:
Method Name: create_dataset


Project Name: fxsjy/jieba
Commit Name: 99d0fb1a8a00c80c97271b2cc58d52c4fcff0032
Time: 2015-11-09
Author: abcdoyle888@gmail.com
File Name: jieba/__init__.py
Class Name: Tokenizer
Method Name: load_userdict


Project Name: jhfjhfj1/autokeras
Commit Name: 4b2a2f18a4da11d9573d341c38db2c754c77fff5
Time: 2019-09-24
Author: 45730028+yufei-12@users.noreply.github.com
File Name: autokeras/auto_model.py
Class Name: AutoModel
Method Name: _postprocess


Project Name: OpenNMT/OpenNMT-tf
Commit Name: 7a4d67134beea2cd66b84a3df2304a8b8c075913
Time: 2019-09-13
Author: guillaume.klein@systrangroup.com
File Name: opennmt/models/sequence_to_sequence.py
Class Name: SequenceToSequence
Method Name: _call