e4d313478124e00a931ec40ab25643accad88641,beancount_import/source/generic_importer_source.py,ImporterSource,prepare,#ImporterSource#,55
Before Change
for entry in f_entries:
hash_ = self._hash_entry(entry, frozenset(["filename","lineno"]))
// skip the existing entries from other statements
if hash_ in entries: continue
// If the entry exists in the journal, skip
if self._is_existing(journal, entry): continue
// add importer name as sorce description to source postings
self._add_description(entry)
// balance amount
self.balance_amounts(entry)
hashed_entries[hash_] = entry
entries = {**entries, **hashed_entries}
results.add_pending_entries(
[ImportResult(entry.date, [entry], None)
After Change
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)
for entry in itertools.chain.from_iterable(uncleared_entries.values())
]
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 6
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: facebookresearch/pythia
Commit Name: 2f337387d6759627bae60284e7fa612268580724
Time: 2020-09-15
Author: vedanujg@gmail.com
File Name: mmf/models/mmf_transformer.py
Class Name: MMFTransformerEmbeddings
Method Name: forward
Project Name: explosion/thinc
Commit Name: cc53003029d11839c394a9544a1394b62721869d
Time: 2019-10-18
Author: honnibal+gh@gmail.com
File Name: thinc/extra/wrappers.py
Class Name: PyTorchWrapper
Method Name: use_params
Project Name: thoughtworksarts/EmoPy
Commit Name: d3126ded949a6ef2f393af06e77b2fd37fd08b63
Time: 2017-12-19
Author: aperez@thoughtworks.com
File Name: feature/feature.py
Class Name: Feature
Method Name: extract_features