96cdc0591939b912f992a83ee9a22c119e5bf381,app/grandchallenge/cases/tasks.py,,build_images,#,110

Before Change


                collected_associated_files = []
                invalid_files = []
                for algorithm in IMAGE_BUILDER_ALGORITHMS:
                    new_images, new_associated_image_files, new_invalid_files = \
                        algorithm(tmp_dir)

                    collected_images += new_images
                    collected_associated_files += new_associated_image_files
                    invalid_files += list(new_invalid_files.keys())

                    for used_file in new_associated_image_files:
                        filename = used_file.file.name

After Change


                    algorithm_result: ImageBuilderResult

                    collected_images += list(algorithm_result.new_images)
                    collected_associated_files += \
                        list(algorithm_result.new_image_files)

                    for filename in algorithm_result.consumed_files:
                        if filename in unconsumed_filenames:
                            unconsumed_filenames.remove(filename)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 6

Instances


Project Name: comic/grand-challenge.org
Commit Name: 96cdc0591939b912f992a83ee9a22c119e5bf381
Time: 2018-06-21
Author: pkcakeout@gmail.com
File Name: app/grandchallenge/cases/tasks.py
Class Name:
Method Name: build_images


Project Name: commonsense/conceptnet5
Commit Name: b4d5c80c83ec0502231ff3563fa8ac5b95717267
Time: 2017-06-14
Author: joanna.teresa.duda@gmail.com
File Name: conceptnet5/vectors/transforms.py
Class Name:
Method Name: make_replacements


Project Name: google/unrestricted-adversarial-examples
Commit Name: ecf39f3c8b46210284358b4283b4e4e263966079
Time: 2018-08-28
Author: nottombrown@gmail.com
File Name: unrestricted-advex/unrestricted_advex/eval_kit.py
Class Name:
Method Name: evaluate_tcu_model


Project Name: snorkel-team/snorkel
Commit Name: 705e46d8c12fb86646ea5438e2225b5dd3912ae9
Time: 2016-08-10
Author: ajratner@gmail.com
File Name: snorkel/viewer.py
Class Name: Viewer
Method Name: __init__