94b7f158304f84bfed06e25ea4289a6f59c07254,bin/medpy_binary_resampling.py,,shape_based_slice_insertation,#Any#Any#Any#Any#Any#,188

Before Change


        for i in range(1, nslices / 2 + nslices % 2 + 1)[::-1]:
            slices.append(binary_erosion(sl2, iterations=i))
        slices.append(sl2)
        return numpy.asarray([sl.T for sl in slices]).T
    elif 0 ==numpy.count_nonzero(sl2):
        slices = [sl1]
        for i in range(1, nslices / 2 + 1):
            slices.append(binary_erosion(sl1, iterations=i))

After Change


        for i in range(1, nslices / 2 + nslices % 2 + 1)[::-1]:
            slices.append(binary_erosion(sl2, iterations=i))
        slices.append(sl2)
        return numpy.rollaxis(numpy.asarray(slices), 0, dim + 1)
        //return numpy.asarray([sl.T for sl in slices]).T
    elif 0 ==numpy.count_nonzero(sl2):
        slices = [sl1]
        for i in range(1, nslices / 2 + 1):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 2

Instances


Project Name: loli/medpy
Commit Name: 94b7f158304f84bfed06e25ea4289a6f59c07254
Time: 2015-04-08
Author: oskar.maier@googlemail.com
File Name: bin/medpy_binary_resampling.py
Class Name:
Method Name: shape_based_slice_insertation


Project Name: pyannote/pyannote-audio
Commit Name: 47478c01bde169ebb7595bbc0189a751db3e0610
Time: 2018-02-22
Author: bredin@limsi.fr
File Name: pyannote/audio/embedding/extraction.py
Class Name: SequenceEmbedding
Method Name: postprocess_ndarray


Project Name: pyannote/pyannote-audio
Commit Name: e638a4760c0519cac825d9661a3b5f0a928a507c
Time: 2018-01-20
Author: bredin@limsi.fr
File Name: pyannote/audio/embedding/extraction.py
Class Name: SequenceEmbedding
Method Name: postprocess_ndarray