928eca284d5fba7d0551a77b32c656a265a35878,app/grandchallenge/core/management/commands/convertsubmissions.py,Command,handle,#Command#,15

Before Change


        parser.add_argument("challenge_short_name", nargs="+", type=str)

    def handle(self, *args, **options):
        SubmissionToAnnotationSetJob.objects.create(
            base=ImageSet.objects.all()[0],
            submission=Submission.objects.all()[0],
        )

After Change


        parser.add_argument("challenge_short_name", nargs="+", type=str)

    def handle(self, *args, **options):
        challenge = Challenge.objects.get(
            short_name__iexact=options["challenge_short_name"][0]
        )

        base = ImageSet.objects.get(
            challenge=challenge, phase=ImageSet.TESTING
        )
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: comic/grand-challenge.org
Commit Name: 928eca284d5fba7d0551a77b32c656a265a35878
Time: 2018-08-27
Author: jamesmeakin@gmail.com
File Name: app/grandchallenge/core/management/commands/convertsubmissions.py
Class Name: Command
Method Name: handle


Project Name: comic/grand-challenge.org
Commit Name: f8f5eb96468aa94acad1c085fc9a8c80d7b6db8f
Time: 2017-11-15
Author: pkcakeout@gmail.com
File Name: app/evaluation/widgets/uploader.py
Class Name: AjaxUploadWidget
Method Name: handle_ajax


Project Name: pantsbuild/pants
Commit Name: f4763dd2d3dc472be4c16d39c878f81e4254df4b
Time: 2020-09-22
Author: stuhood@gmail.com
File Name: src/python/pants/engine/internals/options_parsing.py
Class Name:
Method Name: parse_options