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

Before Change


        for f in self.files:
            f_entries = self.importer.extract(f, existing_entries=journal.entries)
            // collect  all entries in current statement, grouped by hash
            hashed_entries = defaultdict(list)
            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

After Change


        for f in self.files:
            f_entries = self.importer.extract(f, existing_entries=journal.entries)
            // collect  all entries in current statement, grouped by hash
            hashed_entries = OrderedDict() //type: Dict[Hashable, Directive]
            for entry in f_entries:
                key_ = self._get_key_from_imported_entry(entry)
                self._add_description(entry)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

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: pantsbuild/pants
Commit Name: 1f28adbdd276a154b706b45c4acb09e1287a9c5f
Time: 2014-11-10
Author: benjyw@gmail.com
File Name: src/python/pants/option/arg_splitter.py
Class Name: ArgSplitter
Method Name: split_args


Project Name: EducationalTestingService/skll
Commit Name: 2cdeb8fd737e6639a476bddd18193d99aaf2aad9
Time: 2013-07-19
Author: dblanchard@ets.org
File Name: join_megam.py
Class Name:
Method Name: