d6fe384f6763c09da358e70375db034ec0e442f8,pynndescent/utils.py,,apply_graph_updates_low_memory,#Any#Any#,708

Before Change


            if p == -1 or q == -1:
                continue

            added = heap_push(current_graph, p, d, q, 1)
            n_changes += added

            added = heap_push(current_graph, q, d, p, 1)
            n_changes += added

    return n_changes

After Change


                continue

            // added = heap_push(current_graph, p, d, q, 1)
            added = checked_flagged_heap_push(
                current_graph[1][p],
                current_graph[0][p],
                current_graph[2][p],
                d,
                q,
                1,
            )
            n_changes += added

            // added = heap_push(current_graph, q, d, p, 1)
            added = checked_flagged_heap_push(
                current_graph[1][q],
                current_graph[0][q],
                current_graph[2][q],
                d,
                p,
                1,
            )
            n_changes += added

    return n_changes
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 12

Instances


Project Name: lmcinnes/pynndescent
Commit Name: d6fe384f6763c09da358e70375db034ec0e442f8
Time: 2020-08-27
Author: leland.mcinnes@gmail.com
File Name: pynndescent/utils.py
Class Name:
Method Name: apply_graph_updates_low_memory


Project Name: lmcinnes/pynndescent
Commit Name: d6fe384f6763c09da358e70375db034ec0e442f8
Time: 2020-08-27
Author: leland.mcinnes@gmail.com
File Name: pynndescent/sparse_nndescent.py
Class Name:
Method Name: init_rp_tree


Project Name: lmcinnes/pynndescent
Commit Name: d6fe384f6763c09da358e70375db034ec0e442f8
Time: 2020-08-27
Author: leland.mcinnes@gmail.com
File Name: pynndescent/pynndescent_.py
Class Name:
Method Name: init_rp_tree