0110937ab04f4298f98963bed1de08962d776b24,src/fonduer/features/feature_libs/structural_features.py,,extract_structural_features,#Any#,26

Before Change


                    yield candidate.id, FEATURE_PREFIX + feature, value

        // Binary candidates
        elif len(args) == 2:
            span1, span2 = args
            if span1.sentence.is_structural() or span2.sentence.is_structural():
                for span, prefix in [(span1, "e1_"), (span2, "e2_")]:
                    if span.stable_id not in unary_strlib_feats:
                        unary_strlib_feats[span.stable_id] = set()
                        for feature, value in _strlib_unary_features(span):

After Change


        // Multinary candidates
        else:
            spans = args
            if all([span.sentence.is_structural() for span in spans]):
                for i, span in enumerate(spans):
                    prefix = f"e{i}_"
                    if span.stable_id not in unary_strlib_feats:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 8

Instances


Project Name: HazyResearch/fonduer
Commit Name: 0110937ab04f4298f98963bed1de08962d776b24
Time: 2020-07-01
Author: wajdikhattel@think-it.io
File Name: src/fonduer/features/feature_libs/structural_features.py
Class Name:
Method Name: extract_structural_features


Project Name: pandas-dev/pandas
Commit Name: affc4d5c1829441c4dec0f4c0dae9b6c5c298429
Time: 2020-10-22
Author: 45562402+rhshadrach@users.noreply.github.com
File Name: pandas/core/aggregation.py
Class Name:
Method Name: aggregate


Project Name: HazyResearch/fonduer
Commit Name: 5ad9ae2b8ae6b55b07e99de924c77112706aa3b7
Time: 2020-07-01
Author: wajdikhattel@think-it.io
File Name: src/fonduer/features/feature_libs/visual_features.py
Class Name:
Method Name: extract_visual_features