da0dd1052decff8fe2fd6d46a49992a91d7f232f,snorkel/annotations.py,CandidateFeaturizer,create,#CandidateFeaturizer#Any#Any#Any#Any#,220

Before Change


        if isinstance(args[0], Span):
            f = get_span_feats
        else:
            raise NotImplementedError("CandidateFeaturizer currently handles only Span-type candidates.")
        return super(CandidateFeaturizer, self).create(session, candidate_set, f, new_key_set=new_feature_set, \
            existing_key_set=existing_feature_set)

After Change


                is the function.__name__.  Ex: A list of labeling functions
        
        candidate_set = get_ORM_instance(CandidateSet, session, candidate_set)
        key_set = AnnotationKeySet(name=new_key_set)
        session.add(key_set)
        session.commit()

        self.update(session, candidate_set, key_set, f, True)
        return self.load(session, candidate_set, key_set)
    
    def update(self, session, candidate_set, key_set, f, key_set_mutable):
        
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: snorkel-team/snorkel
Commit Name: da0dd1052decff8fe2fd6d46a49992a91d7f232f
Time: 2016-09-02
Author: stephenhbach@gmail.com
File Name: snorkel/annotations.py
Class Name: CandidateFeaturizer
Method Name: create


Project Name: HazyResearch/fonduer
Commit Name: 96460c70b59b327f9fe282649fd7c50c0883969e
Time: 2018-07-20
Author: lwhsiao@stanford.edu
File Name: fonduer/parser/parser.py
Class Name: ParserUDF
Method Name: _parse_figure


Project Name: elfi-dev/elfi
Commit Name: 08f049c9fc5fc0f3da5a830de72a583007cdec66
Time: 2017-03-31
Author: jarno.lintusaari@aalto.fi
File Name: elfi/methods/methods.py
Class Name: BayesianOptimization
Method Name: __init__