a98578f25b2030dabac12c7bc71a3e30ed99fe1f,conceptnet5/builders/reduce_assoc.py,,make_conceptnet_association_graph,#,138

Before Change


            fvalue = float(value)
            gleft = uri_prefix(left)
            gright = uri_prefix(right)
            if concept_filter(gleft) and concept_filter(gright) \
               and fvalue != 0 and gleft != gright:
                graph.add_edge(gleft, gright, value, dataset, rel)
    return graph


def read_embedding_vocabularies(filenames):

After Change


            fvalue = float(value)
            gleft = uri_prefix(left)
            gright = uri_prefix(right)
            if fvalue == 0:
                continue
            if gleft == gright:
                continue
            if filter_concepts and gleft not in filtered_concepts:
                continue
            if filter_concepts and gright not in filtered_concepts:
                continue
            graph.add_edge(gleft, gright, value, dataset, rel)
                
    return graph

Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: commonsense/conceptnet5
Commit Name: a98578f25b2030dabac12c7bc71a3e30ed99fe1f
Time: 2018-05-18
Author: rbeaudoin@luminoso.com
File Name: conceptnet5/builders/reduce_assoc.py
Class Name:
Method Name: make_conceptnet_association_graph


Project Name: pgmpy/pgmpy
Commit Name: eea41a4578b5021bbc16eb171bceb453cbde2419
Time: 2014-11-30
Author: abinash.panda.ece10@itbhu.ac.in
File Name: pgmpy/models/BayesianModel.py
Class Name: BayesianModel
Method Name: add_edge


Project Name: pgmpy/pgmpy
Commit Name: 9c1978125348ab67190995586175a7d6402bf247
Time: 2013-12-31
Author: ankurankan@gmail.com
File Name: src/BayesianModel/BayesianModel.py
Class Name: BayesianModel
Method Name: add_edge