c583ff130f7c37ad2e4077e82d7d61bf0d2ef6cf,featuretools/tests/synthesis/test_deep_feature_synthesis.py,,test_commutative,#Any#,578
Before Change
num_add_feats = 0
num_add_as_base_feat = 0
for feat in feats:
if isinstance(feat.primitive, AddNumeric):
num_add_feats += 1
for base_feat in feat.base_features:
if isinstance(base_feat.primitive, AddNumeric):
num_add_as_base_feat += 1
assert num_add_feats == 3
assert num_add_as_base_feat == 9
After Change
unordered_args = set()
for f in add_feats:
arg1, arg2 = f.base_features
args_set = frozenset({arg1.unique_name(), arg2.unique_name()})
unordered_args.add(args_set)
assert len(add_feats) == len(unordered_args)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 5
Instances
Project Name: Featuretools/featuretools
Commit Name: c583ff130f7c37ad2e4077e82d7d61bf0d2ef6cf
Time: 2019-07-25
Author: chrisstadler@gmail.com
File Name: featuretools/tests/synthesis/test_deep_feature_synthesis.py
Class Name:
Method Name: test_commutative
Project Name: pyinstaller/pyinstaller
Commit Name: a680f74e5a403737fab700486fd25d83274ac738
Time: 2016-05-03
Author: codewarrior@hawaii.rr.com
File Name: PyInstaller/building/datastruct.py
Class Name: TOC
Method Name: append
Project Name: pyinstaller/pyinstaller
Commit Name: a680f74e5a403737fab700486fd25d83274ac738
Time: 2016-05-03
Author: codewarrior@hawaii.rr.com
File Name: PyInstaller/building/datastruct.py
Class Name: TOC
Method Name: insert