023331ec2a7b0086abfc81eca16c84a1692ee653,keras/metrics.py,,get,#Any#,89

Before Change




def get(identifier):
    return get_from_module(identifier, globals(), "metric")

After Change




def get(identifier):
    if isinstance(identifier, six.string_types):
        identifier = str(identifier)
        return deserialize(identifier)
    elif callable(identifier):
        return identifier
    else:
        raise ValueError("Could not interpret "
                         "metric function identifier:", identifier)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 16

Instances


Project Name: keras-team/keras
Commit Name: 023331ec2a7b0086abfc81eca16c84a1692ee653
Time: 2017-02-09
Author: francois.chollet@gmail.com
File Name: keras/metrics.py
Class Name:
Method Name: get


Project Name: keras-team/keras
Commit Name: 023331ec2a7b0086abfc81eca16c84a1692ee653
Time: 2017-02-09
Author: francois.chollet@gmail.com
File Name: keras/activations.py
Class Name:
Method Name: get


Project Name: keras-team/keras
Commit Name: 023331ec2a7b0086abfc81eca16c84a1692ee653
Time: 2017-02-09
Author: francois.chollet@gmail.com
File Name: keras/initializers.py
Class Name:
Method Name: get