8a23b175f5c05bcc9fd9195a8ca312aa77dfdef5,tests/tests.py,,test_plantcv_output_mask,#,562

Before Change


    path = str(TEST_DATA) + "/ori-images"
    path1 = str(TEST_DATA) + "/mask-images"
    assert all([os.path.exists(path) is True, os.path.exists(path1) is True])
    shutil.rmtree(path)
    shutil.rmtree(path1)


def test_plantcv_plot_hist():

After Change


    // Test with debug = "print"
    _, _, _, _ = pcv.output_mask(device=0, img=img, mask=mask, filename="test.png", outdir=TEST_TMPDIR, mask_only=False,
                                 debug="print")
    os.rename("1_mask-img.png", os.path.join(TEST_TMPDIR, "1_mask-img.png"))
    os.rename("1_ori-img.png", os.path.join(TEST_TMPDIR, "1_ori-img.png"))
    // Test with debug = "plot"
    _, _, _, _ = pcv.output_mask(device=0, img=img, mask=mask, filename="test.png", outdir=TEST_TMPDIR, mask_only=False,
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 7

Non-data size: 3

Instances


Project Name: danforthcenter/plantcv
Commit Name: 8a23b175f5c05bcc9fd9195a8ca312aa77dfdef5
Time: 2017-04-18
Author: noahfahlgren@gmail.com
File Name: tests/tests.py
Class Name:
Method Name: test_plantcv_output_mask


Project Name: numenta/NAB
Commit Name: c4bf10aa09aa64c45f16dca180cb7076c6f0af78
Time: 2014-11-06
Author: simjega@gmail.com
File Name: tests/integration/corpus_test.py
Class Name: CorpusTest
Method Name: test_copy


Project Name: kubeflow/kubeflow
Commit Name: 8fcd7448ea2c700246f3de3bbdd2b2cbca7a9cdf
Time: 2018-04-26
Author: jose5918@gmail.com
File Name: testing/test_deploy.py
Class Name:
Method Name: setup_kubeflow_ks_app


Project Name: ray-project/ray
Commit Name: a0700e2f86602b8ab81e8d54c530771ca3f6f3a8
Time: 2020-03-16
Author: mehrdadn@users.noreply.github.com
File Name: python/ray/tests/test_tempfile.py
Class Name:
Method Name: test_tempdir


Project Name: ray-project/ray
Commit Name: a0700e2f86602b8ab81e8d54c530771ca3f6f3a8
Time: 2020-03-16
Author: mehrdadn@users.noreply.github.com
File Name: python/ray/tests/test_tempfile.py
Class Name:
Method Name: test_tempdir_commandline


Project Name: okfn-brasil/serenata-de-amor
Commit Name: c4be1d6929eee29717435a07efa11e7e6c2a733a
Time: 2017-05-09
Author: renanfonseca@gmail.com
File Name: src/fetch_tse_data.py
Class Name:
Method Name:


Project Name: numenta/NAB
Commit Name: c4bf10aa09aa64c45f16dca180cb7076c6f0af78
Time: 2014-11-06
Author: simjega@gmail.com
File Name: tests/integration/corpus_test.py
Class Name: CorpusTest
Method Name: test_addDataSet