39fb7b5b96ea46aca94099d166106365eaf0647e,lib/matplotlib/tests/test_backend_ps.py,,test_savefig_to_stringio,#Any#Any#Any#,49

Before Change


    matplotlib.rcParams.update(rcParams)

    fig, ax = plt.subplots()
    buffers = [
        six.moves.StringIO(),
        io.StringIO(),
        io.BytesIO()]

    if use_log:
        ax.set_yscale("log")

After Change


        fig.savefig(b_buf, format=format)

        s_val = s_buf.getvalue().encode("ascii")
        b_val = b_buf.getvalue()

        // Remove comments from the output.  This includes things that could
        // change from run to run, such as the time.
        s_val, b_val = [re.sub(b"%%.*?\n", b"", x) for x in [s_val, b_val]]
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 4

Instances


Project Name: matplotlib/matplotlib
Commit Name: 39fb7b5b96ea46aca94099d166106365eaf0647e
Time: 2018-03-08
Author: anntzer.lee@gmail.com
File Name: lib/matplotlib/tests/test_backend_ps.py
Class Name:
Method Name: test_savefig_to_stringio


Project Name: EducationalTestingService/skll
Commit Name: f2caf089885a591c79ee531cc1f13b7995ba7607
Time: 2014-11-01
Author: nmadnani@ets.org
File Name: tests/test_utilities.py
Class Name:
Method Name: check_generate_predictions_console


Project Name: facebookresearch/ParlAI
Commit Name: f50d99752ee3f3465fd5596b15402af81d8193c8
Time: 2019-08-28
Author: roller@fb.com
File Name: tests/test_build_data.py
Class Name: TestBuildData
Method Name: test_download_multiprocess


Project Name: facebookresearch/ParlAI
Commit Name: f50d99752ee3f3465fd5596b15402af81d8193c8
Time: 2019-08-28
Author: roller@fb.com
File Name: tests/test_build_data.py
Class Name: TestBuildData
Method Name: test_download_multiprocess_chunks