28935ea4d7796ada4ad387e79c4357b21c5b9ad6,app/grandchallenge/reader_studies/models.py,ReaderStudy,add_ground_truth,#ReaderStudy#,394

Before Change


                        raise ValidationError(
                            "Expected 1 or 0 for answer type BOOL."
                        )
                    _answer = bool(int(gt[key]))
                else:
                    _answer = gt[key]
                Answer.validate(

After Change


                    question.answer_type
                    == Question.ANSWER_TYPE_MULTIPLE_CHOICE
                ):
                    _answer = list(
                        question.options.filter(title__in=_answer).values_list(
                            "pk", flat=True
                        )
                    )
                Answer.validate(
                    creator=user,
                    question=question,
                    images=images,
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: comic/grand-challenge.org
Commit Name: 28935ea4d7796ada4ad387e79c4357b21c5b9ad6
Time: 2020-03-26
Author: 57257130+MikeOverkamp-diag@users.noreply.github.com
File Name: app/grandchallenge/reader_studies/models.py
Class Name: ReaderStudy
Method Name: add_ground_truth


Project Name: AlexsLemonade/refinebio
Commit Name: 5fbce37c1f6f078e410979b69c8f97a42d89de28
Time: 2019-09-23
Author: arielsvn@gmail.com
File Name: foreman/data_refinery_foreman/foreman/management/commands/retry_samples.py
Class Name:
Method Name: retry_computed_files_not_uploaded


Project Name: MTG/freesound
Commit Name: 69f305ec87e4f216380216bbf79badba8ce0b90e
Time: 2019-02-20
Author: frederic.font@upf.edu
File Name: search/management/commands/reindex_solr.py
Class Name: Command
Method Name: handle