7450bce543a9ac268b6bc5e97b557c9596823aed,beancount_import/source/generic_importer_source.py,ImporterSource,prepare,#ImporterSource#Any#Any#,57

Before Change


            for entry in f_entries:
                key_ = self._get_key_from_imported_entry(entry)
                self._add_description(entry)
                hashed_entries[key_].append(entry)
            // deduplicate across statements
            for key_ in hashed_entries:
                // skip the existing entries from other statements. add remaining
                n = len(entries[key_])

After Change


            for entry in f_entries:
                key_ = self._get_key_from_imported_entry(entry)
                self._add_description(entry)
                hashed_entries.setdefault(key_, []).append(entry)
            // deduplicate across statements
            for key_ in hashed_entries:
                // skip the existing entries from other statements. add remaining
                if not key_ in entries:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 5

Instances


Project Name: jbms/beancount-import
Commit Name: 7450bce543a9ac268b6bc5e97b557c9596823aed
Time: 2020-08-07
Author: dumbpyx@gmail.com
File Name: beancount_import/source/generic_importer_source.py
Class Name: ImporterSource
Method Name: prepare


Project Name: facebookresearch/ParlAI
Commit Name: 82bc6dbe5ce4062dae837a812848c687b34f854d
Time: 2019-01-17
Author: roller@fb.com
File Name: parlai/scripts/train_model.py
Class Name: TrainLoop
Method Name: _average_dicts


Project Name: caserec/CaseRecommender
Commit Name: b5516e60d949e02e9704098092510a871f48323b
Time: 2015-12-03
Author: fortes.arthur@gmail.com
File Name: utils/read_file.py
Class Name: ReadFile
Method Name: main_information_item_recommendation


Project Name: calico/basenji
Commit Name: 7aa5f9a9d8331fe1dc5a90638ad131b0cfaf70d8
Time: 2016-07-24
Author: davidkelley44@gmail.com
File Name: basenji/genome.py
Class Name:
Method Name: split_contigs