e4d313478124e00a931ec40ab25643accad88641,beancount_import/source/generic_importer_source.py,ImporterSource,prepare,#ImporterSource#Any#Any#,55

Before Change


                // balance amount
                self.balance_amounts(entry)
                hashed_entries[hash_] = entry
            entries = {**entries, **hashed_entries}

        results.add_pending_entries(
            [ImportResult(entry.date, [entry], None)
                for entry in entries.values()

After Change


                n = len(entries[hash_])
                entries[hash_].extend(hashed_entries[hash_][n:])

        uncleared_entries = defaultdict(list)
        for hash_ in entries:
            // number of matching cleared entries in journal
            n = len(similar_entries_in_journal(entries[hash_][0],
                                               journal.entries,
                                               self.comparator))
            // If journal has n cleared entries for this hash, pick remaining
            for entry in entries[hash_][n:]:
                // add importer name as sorce description to source postings
                self._add_description(entry)
                // balance amount
                self.balance_amounts(entry)
                uncleared_entries[hash_].append(entry)

        results.add_pending_entries(
            [ImportResult(entry.date, [entry], None)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 7

Instances


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


Project Name: haotianteng/Chiron
Commit Name: cb40dd779e1f3a7ca23ea25edd03ddaca9472838
Time: 2018-04-29
Author: neven.miculinic@gmail.com
File Name: chiron/chiron_eval.py
Class Name:
Method Name: evaluation


Project Name: pantsbuild/pants
Commit Name: a4a36ff66ac3deff1ea024f58e86e003ed83bb67
Time: 2015-04-11
Author: stuhood@gmail.com
File Name: src/python/pants/backend/jvm/tasks/jvm_compile/jvm_compile_global_strategy.py
Class Name: JvmCompileGlobalStrategy
Method Name: compute_classes_by_source