8212d47a90e0f90ba0d264d062880ee866b4808f,mahotas/bbox.py,,bbox,#,11

Before Change


        min2 = max(0, min2-border)
        max1 += border
        max2 += border
        r = min1,max1,min2,max2
    if as_slice:
        r = tuple([slice(s,e) for s,e in r.reshape((-1,2))])
    return r

After Change


        return np.array([], dtype=np.intp)
    r = _bbox.bbox(img)
    if border:
        r = r.reshape((-1, 2))
        np.maximum(r.T[0] - border, 0, out=r.T[0])
        r.T[1] += border
        r = r.ravel()
    if as_slice:
        r = tuple([slice(s,e) for s,e in r.reshape((-1,2))])
    return r
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 6

Instances


Project Name: luispedro/mahotas
Commit Name: 8212d47a90e0f90ba0d264d062880ee866b4808f
Time: 2015-06-26
Author: luis@luispedro.org
File Name: mahotas/bbox.py
Class Name:
Method Name: bbox


Project Name: IBM/AIF360
Commit Name: 240d23ec41ee51c72a69fda93148cb534a6688ec
Time: 2020-08-05
Author: hoffman.sc@gmail.com
File Name: aif360/algorithms/inprocessing/meta_fair_classifier.py
Class Name: MetaFairClassifier
Method Name: predict


Project Name: tensorly/tensorly
Commit Name: 4d96f8c9a0c98df0a422cc498b86a6b5563f5b49
Time: 2020-08-06
Author: jean.kossaifi@gmail.com
File Name: tensorly/decomposition/candecomp_parafac.py
Class Name:
Method Name: parafac