558f030de16f0e3ea4ce860aac0d085faad99441,ilastik/applets/batchProcessing/batchProcessingGui.py,BatchProcessingGui,run_export,#BatchProcessingGui#,153

Before Change


        role_names = self.parentApplet.dataSelectionApplet.topLevelOperator.DatasetRoles.value

        // Prepare file lists in an OrderedDict
        role_path_dict = OrderedDict()
        role_path_dict[0] = BatchProcessingGui.get_all_item_strings(self.list_widgets[0])
        num_datasets = len(role_path_dict[0])

        for role_index, list_widget in enumerate(self.list_widgets[1:], start=1):

After Change


        role_names = self.parentApplet.dataSelectionApplet.topLevelOperator.DatasetRoles.value

        // Prepare file lists in an OrderedDict
        role_path_dict = OrderedDict(
            (role_name, self._data_role_widgets[role_name].get_all_item_strings())
            for role_name
            in role_names
        )
        dominant_role_name = role_names[0]
        num_datasets = len(role_path_dict[dominant_role_name])

        for role_name in role_names[1:]:
            datasets = role_path_dict[role_name]
            if len(datasets) == 0:
                role_path_dict[role_name] = [None] * num_datasets

            if len(role_path_dict[role_name]) != num_datasets:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: ilastik/ilastik
Commit Name: 558f030de16f0e3ea4ce860aac0d085faad99441
Time: 2019-08-13
Author: k-dominik@users.noreply.github.com
File Name: ilastik/applets/batchProcessing/batchProcessingGui.py
Class Name: BatchProcessingGui
Method Name: run_export


Project Name: mozilla/bugbug
Commit Name: f16992b25bb153df3ab87c5111db2a101cf68c73
Time: 2020-04-09
Author: mcastelluccio@mozilla.com
File Name: bugbug/models/testselect.py
Class Name: TestSelectModel
Method Name: train_test_split


Project Name: Theano/Theano
Commit Name: 24e7ed3b8f62fd702b2fea624189f93d145ad8b5
Time: 2017-05-30
Author: nouiz@nouiz.org
File Name: theano/gof/fg.py
Class Name: FunctionGraph
Method Name: orderings