66ad361654ee5f82172b767685a3aa55dc9c0dcd,server/website/website/tasks/async_tasks.py,,aggregate_target_results,#Any#,344

Before Change


    if "config_recommend" in target_data:
        assert "newest_result_id" in target_data and "status" in target_data
        LOG.debug("%s: Skipping aggregate_target_results.\nData:\n%s\n\n",
                  AlgorithmType.name(algorithm), target_data)
        return target_data, algorithm

    newest_result = Result.objects.get(pk=result_id)

After Change


                        .format(session, newest_result.dbms))
    agg_data = DataUtil.aggregate_data(target_results)
    LOG.debug("%s ~ INITIAL: X_matrix=%s, X_columnlabels=%s", task_name,
              agg_data["X_matrix"].shape, len(agg_data["X_columnlabels"]))
    agg_data["newest_result_id"] = result_id
    agg_data["status"] = "good"
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 2

Instances


Project Name: cmu-db/ottertune
Commit Name: 66ad361654ee5f82172b767685a3aa55dc9c0dcd
Time: 2020-04-03
Author: dvanaken@cs.cmu.edu
File Name: server/website/website/tasks/async_tasks.py
Class Name:
Method Name: aggregate_target_results


Project Name: RasaHQ/rasa
Commit Name: 05eaa66b405edcaccca1f92be12ad2e7b3610b5c
Time: 2018-09-21
Author: akela@rasa.ai
File Name: rasa_core/actions/action.py
Class Name: RemoteAction
Method Name: run


Project Name: cmu-db/ottertune
Commit Name: 66ad361654ee5f82172b767685a3aa55dc9c0dcd
Time: 2020-04-03
Author: dvanaken@cs.cmu.edu
File Name: server/website/website/tasks/async_tasks.py
Class Name:
Method Name: configuration_recommendation


Project Name: cmu-db/ottertune
Commit Name: 66ad361654ee5f82172b767685a3aa55dc9c0dcd
Time: 2020-04-03
Author: dvanaken@cs.cmu.edu
File Name: server/website/website/tasks/async_tasks.py
Class Name:
Method Name: check_early_return