3ff19f7d9c84c78ce807156fc290b5b35044d2bc,pynndescent/pynndescent_.py,,search_from_init,#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#,161

Before Change


        dist,
        dist_args
):
    seed_set = [(np.float32(np.infty), np.int32(-1))]
    distance_bound = (1.0 + epsilon) * heap_priorities[0]
    heap_size = heap_priorities.shape[0]

    for j in range(heap_size):

After Change


    //     heapq.heappush(
    //         seed_set, (heap_priorities[j], heap_indices[j])
    //     )
    seed_set = [(heap_priorities[j], heap_indices[j]) for j in range(heap_size)]
    heapq.heapify(seed_set)

    // Find smallest seed point
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: lmcinnes/pynndescent
Commit Name: 3ff19f7d9c84c78ce807156fc290b5b35044d2bc
Time: 2019-11-06
Author: leland.mcinnes@gmail.com
File Name: pynndescent/pynndescent_.py
Class Name:
Method Name: search_from_init


Project Name: mpatacchiola/deepgaze
Commit Name: 1311154917be497dc048377ef237a6bbb3d615b6
Time: 2016-04-03
Author: massimiliano.patacchiola@gmail.com
File Name: main.py
Class Name:
Method Name: main


Project Name: pierluigiferrari/ssd_keras
Commit Name: 6f8e2c3666203ee3f454a3b1039c13e618511020
Time: 2018-03-12
Author: pierluigi.ferrari@gmx.com
File Name: data_generator/object_detection_2d_geometric_ops.py
Class Name: Translate
Method Name: __init__