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

Before Change



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

    def _is_existing(self, journal: "JournalEditor", entry: Directive) -> bool:

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: 5

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: dmlc/gluon-nlp
Commit Name: f19ace982075ea009af81f5e9f687cc2276f50ea
Time: 2020-01-20
Author: 50716238+MoisesHer@users.noreply.github.com
File Name: scripts/bert/fp16_utils.py
Class Name:
Method Name: grad_global_norm


Project Name: pantsbuild/pants
Commit Name: fdb77374313a8f53d5f5ab192ad88e96c4b65c23
Time: 2020-10-16
Author: 14852634+Eric-Arellano@users.noreply.github.com
File Name: src/python/pants/core/util_rules/stripped_source_files.py
Class Name:
Method Name: strip_source_roots