d44b888aeb04315375f6d433363abc984baf0d56,BinarySeach.py,,binarySearch,#Any#Any#,1

Before Change


        midpoint = (first + last)//2
        if alist[midpoint] == item:
             found = True
             print("Found")
        else:
            
            if item < alist[midpoint]:
                

After Change


        midpoint = (first + last)//2
        if alist[midpoint] == item:
             found = True
             print("Found [ at position: %s ]" % (alist.index(item) + 1))
        else:
            
            if item < alist[midpoint]:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 2

Instances


Project Name: TheAlgorithms/Python
Commit Name: d44b888aeb04315375f6d433363abc984baf0d56
Time: 2016-07-26
Author: darjiharshil2994@gmail.com
File Name: BinarySeach.py
Class Name:
Method Name: binarySearch


Project Name: xinntao/BasicSR
Commit Name: ee1a026a7ad52bd8e807024e41d70276028c59e2
Time: 2020-11-27
Author: wxt1994@126.com
File Name: test_scripts/test_face_dfdnet.py
Class Name: FaceRestorationHelper
Method Name: get_face_landmarks_68


Project Name: QUANTAXIS/QUANTAXIS
Commit Name: c31e0b1049a52beb74b7b0065e978bb479e89e49
Time: 2017-05-31
Author: yutiansut@qq.com
File Name: test/test_strategy.py
Class Name: backtest
Method Name: handle_data