68034ce72c5a15afb9eddb8eaef3c819f5fd96c5,pyntcloud/ransac/fitters.py,,single_fit,#,11

Before Change


        if n_inliers > n_best_inliers:
            n_best_inliers = n_inliers
            best_inliers = inliers
            if return_model:
                best_model = copy.deepcopy(model)

    if return_model:
        return best_inliers, best_model

    else:

After Change


            n_best_inliers = n_inliers
            best_inliers = inliers
            
            if n_best_inliers > n_inliers_to_stop:
                break

    if return_model:
        best_model = model.fit_ls(points[best_inliers])
        
        return best_inliers, best_model
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: daavoo/pyntcloud
Commit Name: 68034ce72c5a15afb9eddb8eaef3c819f5fd96c5
Time: 2017-04-08
Author: daviddelaiglesiacastro@gmail.com
File Name: pyntcloud/ransac/fitters.py
Class Name:
Method Name: single_fit


Project Name: ikostrikov/pytorch-a2c-ppo-acktr
Commit Name: 225eed3b50caa3a3297abe96ba0ac2bf44bb8262
Time: 2019-03-14
Author: ikostrikov@gmail.com
File Name: main.py
Class Name:
Method Name: main


Project Name: silvandeleemput/memcnn
Commit Name: e78b409a087ed1208f07ef05513eeac9b37f042f
Time: 2018-10-14
Author: tychovdo@gmail.com
File Name: memcnn/models/revop.py
Class Name: ReversibleBlock
Method Name: __init__