76055c0142bbca1187f2dcabb7035b867af689e0,kmapper/nerve.py,GraphNerve,__call__,#GraphNerve#Any#,24

Before Change


        candidates = itertools.combinations(nodes.keys(), 2)
        for candidate in candidates:
            // if there are non-unique members in the union
            if len(nodes[candidate[0]] + nodes[candidate[1]]) != len(set(nodes[candidate[0]] + nodes[candidate[1]])):
                result[candidate[0]].append(candidate[1])

        simplices = [[n] for n in nodes] + [[x] + result[x] for x in result]

After Change


        candidates = itertools.combinations(nodes.keys(), 2)
        for candidate in candidates:
            // if there are non-unique members in the union
            if len(set(nodes[candidate[0]]).intersection(nodes[candidate[1]])) >= self.min_intersection:
                result[candidate[0]].append(candidate[1])

        simplices = [[n] for n in nodes] + [[x] + result[x] for x in result]
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 4

Instances


Project Name: MLWave/kepler-mapper
Commit Name: 76055c0142bbca1187f2dcabb7035b867af689e0
Time: 2017-12-01
Author: michiexile@gmail.com
File Name: kmapper/nerve.py
Class Name: GraphNerve
Method Name: __call__


Project Name: mynlp/ccg2lambda
Commit Name: f91c6aaadfed8c6dc7ee58f459c4aa369fcba882
Time: 2017-01-12
Author: pascual@nii.ac.jp
File Name: scripts/abduction_tools.py
Class Name:
Method Name: GetPremisesThatMatchConclusionArgs_


Project Name: pantsbuild/pants
Commit Name: 32479c73b83a9a875a28d1adce327573b39af37e
Time: 2014-04-30
Author: benjy@foursquare.com
File Name: src/python/pants/bin/pants_exe.py
Class Name:
Method Name: _run


Project Name: automl/SMAC3
Commit Name: 6eafc16cc381abf7f1f78d3027f6939fd373d8c0
Time: 2017-02-13
Author: marius.rks@googlemail.com
File Name: smac/intensification/intensification.py
Class Name: Intensifier
Method Name: _compare_configs