9795e24cb5b3b7ffed0ca959a0986b28366908a9,skimage/data/generate_shapes.py,,generate_shapes,#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#,210
Before Change
if allow_overlap or image[nonzero].max() == 0:
// Reset overlap to fit the new shape.
image[nonzero] = 0
image = (image + mask).clip(0, 255)
labels.append(label)
break
else:
warn("Could not fit any shapes to image, "
After Change
// Couldn"t fit the shape, skip it.
continue
// Check if there is an overlap where the mask is nonzero.
if allow_overlap or not filled[indices].any():
image[indices] = shape.color
filled[indices] = True
labels.append(label)
break
else:
warn("Could not fit any shapes to image, "
"consider reducing the minimum dimension")
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 5
Instances Project Name: scikit-image/scikit-image
Commit Name: 9795e24cb5b3b7ffed0ca959a0986b28366908a9
Time: 2017-09-12
Author: peter@goldsborough.me
File Name: skimage/data/generate_shapes.py
Class Name:
Method Name: generate_shapes
Project Name: MIC-DKFZ/trixi
Commit Name: 0d39c9dc19388c18362897c83cebbe12a063a752
Time: 2019-06-14
Author: jens.petersen@dkfz.de
File Name: trixi/logger/file/pytorchplotfilelogger.py
Class Name: PytorchPlotFileLogger
Method Name: show_image_grid_heatmap
Project Name: MIC-DKFZ/trixi
Commit Name: 0d39c9dc19388c18362897c83cebbe12a063a752
Time: 2019-06-14
Author: jens.petersen@dkfz.de
File Name: trixi/logger/visdom/pytorchvisdomlogger.py
Class Name: PytorchVisdomLogger
Method Name: show_image_grid_heatmap