7a60bb5289b4ecb59a510f8ca666948c7f4c2e3d,lib/streamlit/ReportQueue.py,ReportQueue,clone,#ReportQueue#,136

Before Change



    def clone(self):
        Returns a clone of this ReportQueue.
        assert self._state != QueueState.CLOSED, \
            "Cannot clone a closed queue."
        return copy.deepcopy(self)

    def close(self):
        Tells the queue to close and send a report_finished message after the

After Change


        r = ReportQueue()

        with self._lock:
            r._queue = list(self._queue)
            r._delta_id_map = dict(self._delta_id_map)

        return r
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 5

Non-data size: 3

Instances


Project Name: streamlit/streamlit
Commit Name: 7a60bb5289b4ecb59a510f8ca666948c7f4c2e3d
Time: 2019-03-28
Author: thiagot@gmail.com
File Name: lib/streamlit/ReportQueue.py
Class Name: ReportQueue
Method Name: clone


Project Name: keras-team/keras
Commit Name: 9333179ad96fad2760221f2b3e2dec31f7c77f40
Time: 2016-12-19
Author: francois.chollet@gmail.com
File Name: keras/utils/test_utils.py
Class Name:
Method Name: layer_test


Project Name: google/deepvariant
Commit Name: edb79830af73789003978be03ae9ec3fb47ebf9b
Time: 2018-03-25
Author: cym@google.com
File Name: deepvariant/util/io/fastq_test.py
Class Name: FastqReaderTests
Method Name: test_iterate_fastq_reader


Project Name: NifTK/NiftyNet
Commit Name: baecce5a6fbe4576ca8348a93dc56f07e7ba84f6
Time: 2019-06-05
Author: ucabtmv@ucl.ac.uk
File Name: niftynet/contrib/csv_reader/csv_reader.py
Class Name: CSVReader
Method Name: _parse_csv


Project Name: google/deepvariant
Commit Name: 7804a2fc6e24b3ecb9365e5459fb16ab6048ef8f
Time: 2018-08-28
Author: no-reply@google.com
File Name: third_party/nucleus/io/fasta_test.py
Class Name: InMemoryRefReaderTests
Method Name: test_iterate