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


        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):
        
        Generates annotations for candidates in a candidate set and *adds* them to an existing annotation set,
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 3

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: NeuromorphicProcessorProject/snn_toolbox
Commit Name: fbe35962f59485f6757060330cd45529c919eb5b
Time: 2017-11-23
Author: bodo.rueckauer@gmail.com
File Name: snntoolbox/simulation/target_simulators/INI_temporal_pattern_target_sim.py
Class Name: SNN
Method Name: load


Project Name: RasaHQ/rasa
Commit Name: 58ff812b1269753c8c0ad0e47ec2a0ca02ef0a1f
Time: 2020-09-10
Author: 20581300+ricwo@users.noreply.github.com
File Name: rasa/core/policies/policy.py
Class Name: Policy
Method Name: load


Project Name: sony/nnabla
Commit Name: 699ce9a0d6e19852f5d6171f86265b718bc860f8
Time: 2021-03-01
Author: woody.li@sony.com
File Name: python/src/nnabla/utils/nnp_graph.py
Class Name: NnpLoader
Method Name: __init__