32a0edcddb413844ab7de8af0ae3b76a5e751e3a,app/grandchallenge/evaluation/tasks.py,,evaluate_submission,#,109

Before Change


            job_pk=job_pk, app_label=job_app_label, model_name=job_model_name
        )
        job.update_status(status=Job.FAILURE, output=exc.message)
        return {}

    create_result(
        metrics=metrics,
        job_pk=job_pk,

After Change


    if not job.method.ready:
        msg = f"Method {job.method.id} was not ready to be used."
        job.update_status(status=Job.FAILURE, output=msg, )
        raise AttributeError(msg)

    try:
        Evaluator = import_string(evaluation_class)
    except ImportError:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: comic/grand-challenge.org
Commit Name: 32a0edcddb413844ab7de8af0ae3b76a5e751e3a
Time: 2018-08-10
Author: jamesmeakin@gmail.com
File Name: app/grandchallenge/evaluation/tasks.py
Class Name:
Method Name: evaluate_submission


Project Name: arviz-devs/arviz
Commit Name: 0a0f18dbd8017c4f8e5f64af66c7a1bbb0cf643f
Time: 2020-02-26
Author: pasrichanitish2@gmail.com
File Name: arviz/data/io_pymc3.py
Class Name: PyMC3Converter
Method Name: _extract_log_likelihood


Project Name: MIC-DKFZ/trixi
Commit Name: f04c2384c98e80b37ac442f5e0fb6152d4ee059e
Time: 2019-03-01
Author: t.adler@dkfz-heidelberg.de
File Name: trixi/logger/visdom/numpyvisdomlogger.py
Class Name: NumpyVisdomLogger
Method Name: show_progress