b75b2f7dcf5d3c83e33b8b2bc86f1d2543263a59,keras/utils/conv_utils.py,,normalize_tuple,#Any#Any#Any#,12

Before Change


            try:
                int(single_value)
            except ValueError:
                raise ValueError("The `" + name + "` argument must be a tuple of " +
                                 str(n) + " integers. Received: " + str(value) + " "
                                 "including element " + str(single_value) + " of "
                                 "type " + str(type(single_value)))
    return value_tuple

After Change


            try:
                int(single_value)
            except ValueError:
                raise ValueError("The `{}` argument must be a tuple of {} "
                                 "integers. Received: {} including element {} "
                                 "of type {}".format(name, n, value, single_value,
                                                     type(single_value)))
    return value_tuple

Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 6

Instances


Project Name: keras-team/keras
Commit Name: b75b2f7dcf5d3c83e33b8b2bc86f1d2543263a59
Time: 2019-10-08
Author: eltonvs@outlook.com
File Name: keras/utils/conv_utils.py
Class Name:
Method Name: normalize_tuple


Project Name: ray-project/ray
Commit Name: 7a78f4e95960bf8560b0547802f171e2b40e4f6b
Time: 2021-01-26
Author: zhisbug@users.noreply.github.com
File Name: python/ray/util/collective/tests/conftest.py
Class Name:
Method Name: clean_up


Project Name: keras-team/keras
Commit Name: 6ec5e48969a8ee3d813d1e2fef8272efc260f7d3
Time: 2016-04-27
Author: francois.chollet@gmail.com
File Name: keras/preprocessing/image.py
Class Name: ImageDataGenerator
Method Name: next