315a5c2839ab93812cde90f2c97f89b693481cf0,luminoth/utils/config.py,,merge_into,#,24

Before Change



        // Since we already have the values of base_config we check against them
        if (base_config[key] is not None and
           type(base_config[key]) is not type(value)):
            raise ValueError(
                "Incorrect type "{}" for key "{}". Must be "{}"".format(
                    type(value), key, type(base_config[key])))

After Change


            basestring = str
        // Since we already have the values of base_config we check against them
        if (base_config[key] is not None and
           not isinstance(value, type(base_config[key])) and
            // For Python2 compatibility. We don"t want to throw an error when
            // both are basestrings (e.g. unicode and str).
           not isinstance(value, basestring) and
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: tryolabs/luminoth
Commit Name: 315a5c2839ab93812cde90f2c97f89b693481cf0
Time: 2017-10-05
Author: iangtayler@gmail.com
File Name: luminoth/utils/config.py
Class Name:
Method Name: merge_into


Project Name: keras-team/autokeras
Commit Name: 49ca8c83ca65a1060713d0295d1d206b43933e3b
Time: 2017-12-18
Author: jhfjhfj1@gmail.com
File Name: autokeras/comparator.py
Class Name:
Method Name: compare_network


Project Name: tflearn/tflearn
Commit Name: b9f48af2b764a7f8a95f2ffd4f82f3cb9f6d7917
Time: 2017-04-27
Author: aymeric.damien@gmail.com
File Name: tflearn/models/generator.py
Class Name: SequenceGenerator
Method Name: generate