a62aa88cf0baccdb4c264fe130d0a24674eea61a,beancount_import/source/amazon.py,AmazonSource,_get_invoice,#AmazonSource#,481
Before Change
if invoice_filename in self._cached_invoices:
return self._cached_invoices.get(invoice_filename)
path = os.path.realpath(os.path.join(self.directory, invoice_filename))
self.log_status("amazon: processing %s" % (path, ))
invoice = parse_invoice(path) // type: Optional[Order]
self._cached_invoices[invoice_filename] = invoice, path
return invoice, path
After Change
invoice_path = os.path.realpath(os.path.join(self.directory, invoice_filename))
invoice = self.pickler.load(results, invoice_path) // type: Optional[Order]
if invoice is None:
self.log_status("amazon: processing %s: %s" % (order_id, invoice_path, ))
invoice = parse_invoice(invoice_path)
self.pickler.dump( results, invoice_path, invoice )
self._cached_invoices[invoice_filename] = invoice, invoice_path
return invoice, invoice_path
def prepare(self, journal: JournalEditor, results: SourceResults):

In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances
Project Name: jbms/beancount-import
Commit Name: a62aa88cf0baccdb4c264fe130d0a24674eea61a
Time: 2020-12-05
Author: matthew@bafford.us
File Name: beancount_import/source/amazon.py
Class Name: AmazonSource
Method Name: _get_invoice
Project Name: VinF/deer
Commit Name: cbc6177206a86c7e05e53071f3bf9026180bd849
Time: 2016-07-12
Author: vincent.francois@gmail.com
File Name: deer/agent.py
Class Name: NeuralAgent
Method Name: dumpNetwork
Project Name: unitedstates/congress-legislators
Commit Name: 0c7eceb6693d5538f66b6375a8747e2677180ccd
Time: 2016-11-10
Author: jt@occams.info
File Name: test/validate.py
Class Name:
Method Name: check_id_types