f1e8e9a57fd883044fe313e7a83165d081c075a4,src/fonduer/features/feature_libs/visual_features.py,,get_visual_feats,#Any#,19

Before Change


    candidates = candidates if isinstance(candidates, list) else [candidates]
    for candidate in candidates:
        args = tuple([m.context for m in candidate.get_mentions()])
        if not (isinstance(args[0], TemporarySpanMention)):
            raise ValueError(
                f"Accepts Span-type arguments, {type(candidate)}-type found."
            )

After Change


    candidates = candidates if isinstance(candidates, list) else [candidates]
    for candidate in candidates:
        args = tuple([m.context for m in candidate.get_mentions()])
        if any(not (isinstance(arg, TemporarySpanMention)) for arg in args):
            raise ValueError(
                f"Visual feature only accepts Span-type arguments, "
                f"{type(candidate)}-type found."
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 10

Instances


Project Name: HazyResearch/fonduer
Commit Name: f1e8e9a57fd883044fe313e7a83165d081c075a4
Time: 2019-02-17
Author: senwu@cs.stanford.edu
File Name: src/fonduer/features/feature_libs/visual_features.py
Class Name:
Method Name: get_visual_feats


Project Name: HazyResearch/fonduer
Commit Name: f1e8e9a57fd883044fe313e7a83165d081c075a4
Time: 2019-02-17
Author: senwu@cs.stanford.edu
File Name: src/fonduer/features/feature_libs/core_features.py
Class Name:
Method Name: get_core_feats


Project Name: HazyResearch/fonduer
Commit Name: f1e8e9a57fd883044fe313e7a83165d081c075a4
Time: 2019-02-17
Author: senwu@cs.stanford.edu
File Name: src/fonduer/features/feature_libs/structural_features.py
Class Name:
Method Name: get_structural_feats


Project Name: HazyResearch/fonduer
Commit Name: f1e8e9a57fd883044fe313e7a83165d081c075a4
Time: 2019-02-17
Author: senwu@cs.stanford.edu
File Name: src/fonduer/features/feature_libs/table_features.py
Class Name:
Method Name: get_table_feats