9e608febee0219236d67e905874a27cba72e9c55,tests/utils_tests/image_tests/test_write_image.py,TestWriteImage,setUp,#TestWriteImage#,19

Before Change


class TestWriteImage(unittest.TestCase):

    def setUp(self):
        self.file = tempfile.NamedTemporaryFile(
            suffix="." + self.suffix, delete=False)
        self.path = self.file.name

        if self.color:
            shape = (3,) + self.size

After Change


            self.f = tempfile.NamedTemporaryFile(delete=False)
            self.file = self.f
        else:
            if self.format == "jpeg":
                suffix = ".jpg"
            else:
                suffix = "." + self.format
            self.f = tempfile.NamedTemporaryFile(suffix=suffix, delete=False)
            self.file = self.f.name

        if self.color:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: chainer/chainercv
Commit Name: 9e608febee0219236d67e905874a27cba72e9c55
Time: 2019-03-07
Author: Hakuyume@users.noreply.github.com
File Name: tests/utils_tests/image_tests/test_write_image.py
Class Name: TestWriteImage
Method Name: setUp


Project Name: comic/grand-challenge.org
Commit Name: 4d9d2a1fc4e0d9289000a235340235802d51a97a
Time: 2021-02-12
Author: 57257130+MikeOverkamp-diag@users.noreply.github.com
File Name: app/grandchallenge/cases/image_builders/dicom.py
Class Name:
Method Name: _create_itk_from_dcm


Project Name: GRAAL-Research/pytoune
Commit Name: d03443dda7f4782e845819de1a45a6699c41899f
Time: 2020-11-14
Author: fredy_14@live.fr
File Name: poutyne/framework/callbacks/_utils.py
Class Name:
Method Name: atomic_lambda_save