6091afc926eb86f21ea2a480476e3f7878094981,benchmarking/data_converters/json_converter/json_converter.py,JsonConverter,convert,#JsonConverter#Any#,59

Before Change


                key = d["type"] + " " + d["metric"]
                if "info_string" in d:
                    if "info_string" in details[key]:
                        assert details[key]["info_string"] == \
                            d["info_string"], \
                            "info_string values for {} ".format(key) + \
                            "do not match.\n" + \
                            "Current info_string: " + \
                            "{}\n ".format(details[key]["info_string"]) + \
                            "does not match new info_string: " + \
                            "{}".format(d["info_string"])
                    else:
                        details[key]["info_string"] = d["info_string"]
                if "value" in d:
                    details[key]["values"].append(float(d["value"]))

After Change


                key = d["type"] + " " + d["metric"]
                if "info_string" in d:
                    if "info_string" in details[key]:
                        old_string = details[key]["info_string"]
                        new_string = d["info_string"]
                        if old_string != new_string:
                            getLogger().warning("info_string values "
                                                "for {} ".format(key) +
                                                "do not match.\n" +
                                                "Current info_string: " +
                                                "{}\n ".format(old_string) +
                                                "does not match new " +
                                                "info_string: " +
                                                "{}".format(new_string))
                    else:
                        details[key]["info_string"] = d["info_string"]
                if "value" in d:
                    details[key]["values"].append(float(d["value"]))
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: facebook/FAI-PEP
Commit Name: 6091afc926eb86f21ea2a480476e3f7878094981
Time: 2018-10-02
Author: sf_wind@hotmail.com
File Name: benchmarking/data_converters/json_converter/json_converter.py
Class Name: JsonConverter
Method Name: convert


Project Name: automl/auto-sklearn
Commit Name: a615c3eee289150c20a4b5ad84d27c35985973c0
Time: 2021-01-12
Author: 44504424+franchuterivera@users.noreply.github.com
File Name: test/test_automl/test_automl.py
Class Name:
Method Name: test_exceptions_inside_log_in_smbo


Project Name: facebook/FAI-PEP
Commit Name: 1031956398efd6de8a01d85d3420226b2929763c
Time: 2019-01-23
Author: huaminli@fb.com
File Name: benchmarking/driver/benchmark_driver.py
Class Name:
Method Name: _mergeDelayData