c8102caf93b5ef5faa7effbdd581d83c632c0b83,skvideo/motion/block.py,,_minCost,#Any#,14

Before Change


    if costs[h/2, w/2] == 0:
        return np.int((h-1)/2), np.int((w-1)/2), 0
    idx = np.unravel_index(np.argmin(costs), costs.shape)
    return np.int(idx[0]), np.int(idx[1]), costs[idx]


def _checkBounded(xval, yval, w, h, mbSize):
    if ((yval < 0) or

After Change


    mi = 65537

    for i in xrange(h): 
      for j in xrange(w): 
        if costs[i, j] < mi:
          mi = costs[i, j]
          dx = j
          dy = i


    return dx, dy, mi

//def _minCost(costs):
//    h, w = costs.shape
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 6

Instances


Project Name: scikit-video/scikit-video
Commit Name: c8102caf93b5ef5faa7effbdd581d83c632c0b83
Time: 2016-12-05
Author: tgoodall@utexas.edu
File Name: skvideo/motion/block.py
Class Name:
Method Name: _minCost


Project Name: AIRLab-POLIMI/mushroom
Commit Name: f2d2ed6e2628fe968af19a3000909cb9fcda5204
Time: 2017-09-14
Author: carlo.deramo@gmail.com
File Name: mushroom/algorithms/dqn.py
Class Name: WeightedDQN
Method Name: _next_q


Project Name: pymanopt/pymanopt
Commit Name: 05237d60ba34de18412e490865d25500040e0897
Time: 2015-12-03
Author: jamiehntownsend@gmail.com
File Name: pymanopt/manifolds/grassmann.py
Class Name: Grassmann
Method Name: retr