f051122cda7eb6ead74dca0311a75fead3a9742f,tests/test_dilate_erode.py,,test_dilate_erode,#,4
Before Change
def test_dilate_erode():
A=numpy.zeros((100,100))
Bc=numpy.zeros((3,3))
Bc[2,1]=1
Bc[1]=1
Bc[0,1]=1
A[30,30]=1
A=(A!=0)
After Change
def test_dilate_erode():
A = np.zeros((100,100))
Bc = np.array([
[0, 1, 0],
[1, 1, 1],
[0, 1, 0]], bool)
A[30,30] = 1
A = (A!=0)
orig = A.copy()
for i in xrange(12):
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 10
Instances
Project Name: luispedro/mahotas
Commit Name: f051122cda7eb6ead74dca0311a75fead3a9742f
Time: 2010-08-12
Author: lpc@cmu.edu
File Name: tests/test_dilate_erode.py
Class Name:
Method Name: test_dilate_erode
Project Name: ilastik/ilastik
Commit Name: 353e0cfc480a81af683049c3108c0f87a7e58c6c
Time: 2012-08-20
Author: bergs@janelia.hhmi.org
File Name: tests/test_applets/featureSelection/testOpFeatureSelection.py
Class Name: TestOpFeatureSelection
Method Name: test_basicFunctionality
Project Name: jinfagang/tensorflow_poems
Commit Name: 167ecbbe6c01fed056e187af03e710cf2de7ccb7
Time: 2019-02-10
Author: 30965609+Freakwill@users.noreply.github.com
File Name: compose_poem.py
Class Name:
Method Name: gen_poem