598082ee44e5ff8e2f2f8d82bfe80105bfe19ff8,mahotas/lbp.py,,_precompute_mapping,#,31

Before Change


        if res[i] == -1:
            bestval = i
            cur = i
            for j in xrange(points):
                cur = _roll_left(cur, points)
                if cur < bestval:
                    bestval = cur
            cur = i
            for j in xrange(points):
                res[cur] = bestval
                cur = _roll_left(cur, points)

After Change


    for i in xrange(2**points):
        if res[i] == -1:
            cur = i
            for j in xrange(points):
                // if cur < i, then res[i] should not have been -1!
                assert cur >= i
                res[cur] = i
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 4

Instances


Project Name: luispedro/mahotas
Commit Name: 598082ee44e5ff8e2f2f8d82bfe80105bfe19ff8
Time: 2010-09-09
Author: lpc@cmu.edu
File Name: mahotas/lbp.py
Class Name:
Method Name: _precompute_mapping


Project Name: scikit-learn-contrib/lightning
Commit Name: 36952ae77bf2f2842abaa0deb8545c4c57eaad74
Time: 2014-10-06
Author: manojkumarsivaraj334@gmail.com
File Name: lightning/impl/primal_cd.py
Class Name: CDRegressor
Method Name: fit


Project Name: scikit-learn-contrib/lightning
Commit Name: 382471c62800d7c80673ef22552b6460124ccc2d
Time: 2014-10-06
Author: manojkumarsivaraj334@gmail.com
File Name: lightning/impl/primal_cd.py
Class Name: CDClassifier
Method Name: fit


Project Name: LxMLS/lxmls-toolkit
Commit Name: 120d63209adb69e23cf44b8017c3506d325eac7d
Time: 2013-06-14
Author: miguelbalmeida@gmail.com
File Name: code/classifiers/multinomial_naive_bayes.py
Class Name: MultinomialNaiveBayes
Method Name: train