26311e5844862bb67edc3a0f22bde9e472e9d2fc,fonduer/features/structural_features.py,,get_structural_feats,#Any#,24
Before Change
def get_structural_feats(candidates):
candidates = candidates if isinstance(candidates, list) else [candidates]
for candidate in candidates:
args = candidate.get_contexts()
if not (isinstance(args[0], TemporarySpan)):
raise ValueError(
"Accepts Span-type arguments, %s-type found." % type(candidate)
)
After Change
def get_structural_feats(candidates):
candidates = candidates if isinstance(candidates, list) else [candidates]
for candidate in candidates:
args = tuple([arg.span for arg in candidate.get_contexts()])
if not (isinstance(args[0], TemporarySpan)):
raise ValueError(
"Accepts Span-type arguments, %s-type found." % type(candidate)
)

In pattern: SUPERPATTERN
Frequency: 5
Non-data size: 9
Instances
Project Name: HazyResearch/fonduer
Commit Name: 26311e5844862bb67edc3a0f22bde9e472e9d2fc
Time: 2018-08-08
Author: lwhsiao@stanford.edu
File Name: fonduer/features/structural_features.py
Class Name:
Method Name: get_structural_feats
Project Name: HazyResearch/fonduer
Commit Name: 26311e5844862bb67edc3a0f22bde9e472e9d2fc
Time: 2018-08-08
Author: lwhsiao@stanford.edu
File Name: fonduer/features/visual_features.py
Class Name:
Method Name: get_visual_feats
Project Name: HazyResearch/fonduer
Commit Name: 26311e5844862bb67edc3a0f22bde9e472e9d2fc
Time: 2018-08-08
Author: lwhsiao@stanford.edu
File Name: fonduer/features/core_features.py
Class Name:
Method Name: get_core_feats
Project Name: HazyResearch/fonduer
Commit Name: 26311e5844862bb67edc3a0f22bde9e472e9d2fc
Time: 2018-08-08
Author: lwhsiao@stanford.edu
File Name: fonduer/features/table_features.py
Class Name:
Method Name: get_table_feats
Project Name: HazyResearch/fonduer
Commit Name: 26311e5844862bb67edc3a0f22bde9e472e9d2fc
Time: 2018-08-08
Author: lwhsiao@stanford.edu
File Name: fonduer/features/content_features.py
Class Name:
Method Name: get_content_feats