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



    exec_time = save_execution_time(start_ts, "aggregate_target_results", newest_result)
    LOG.debug("\n%s: Result = %s\n", task_name, _task_result_tostring(agg_data))
    LOG.info("%s: Finished aggregating target results (%.1f seconds).", task_name, exec_time)
    return agg_data, algorithm


def gen_random_data(knobs):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

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: aertslab/pySCENIC
Commit Name: 63eaa62d68cb9126ea7521b44c76499f621a8ab5
Time: 2018-03-08
Author: vandesande.bram@gmail.com
File Name: src/pyscenic/scenic.py
Class Name:
Method Name: prune_targets


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