ca3bdae5c96285176860d039adeef6ac6be00393,smart_importer/predictor.py,EntryPredictor,training_data_filter,#EntryPredictor#Any#,87
Before Change
def training_data_filter(self, txn):
Filter function for the training data.
if self.account:
return any([pos.account == self.account for pos in txn.postings])
return True
@property
def targets(self):
After Change
Filter function for the training data.
found_import_account = False
for pos in txn.postings:
if pos.account not in self.open_accounts:
return False
if self.account == pos.account:
found_import_account = True
return found_import_account or not self.account
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 6
Instances Project Name: beancount/smart_importer
Commit Name: ca3bdae5c96285176860d039adeef6ac6be00393
Time: 2020-11-19
Author: aaron@aclindsay.com
File Name: smart_importer/predictor.py
Class Name: EntryPredictor
Method Name: training_data_filter
Project Name: ericmjl/pyjanitor
Commit Name: b5dca485575de7052f2ce8f39ea845e848e1ac89
Time: 2020-12-09
Author: samueloranyeli@gmail.com
File Name: janitor/functions.py
Class Name:
Method Name: fill_direction
Project Name: tensorflow/cleverhans
Commit Name: f7715f63c17832f66e54164cc0ae3cb0e4afc4a3
Time: 2017-07-09
Author: nicholas@carlini.com
File Name: cleverhans/attacks.py
Class Name: Attack
Method Name: generate_np