6a8fbb8349a8f2055436d2d8a3590ef6fbf5607e,tensorboard/plugins/beholder/im_util.py,,apply_colormap,#Any#Any#,98

Before Change


      "viridis": viridis_data,
  }

  colormap_data = data_map[colormap]
  return (colormap_data[image]*255).astype(np.uint8)

// Taken from https://github.com/tensorflow/tensorboard/blob/
//            /28f58888ebb22e2db0f4f1f60cd96138ef72b2ef/tensorboard/util.py

After Change


    return image

  return {
      "magma": colormaps.MAGMA_DATA,
      "inferno": colormaps.INFERNO_DATA,
      "plasma": colormaps.PLASMA_DATA,
      "viridis": colormaps.VIRIDIS_DATA,
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: tensorflow/tensorboard
Commit Name: 6a8fbb8349a8f2055436d2d8a3590ef6fbf5607e
Time: 2018-03-30
Author: 4221553+chihuahua@users.noreply.github.com
File Name: tensorboard/plugins/beholder/im_util.py
Class Name:
Method Name: apply_colormap


Project Name: etal/cnvkit
Commit Name: e2ab4ccd6cb5e306c66182ac8ff1ad2d8183df1c
Time: 2016-10-07
Author: eric.talevich@gmail.com
File Name: cnvlib/gary.py
Class Name: GenomicArray
Method Name: _make_blank


Project Name: nilmtk/nilmtk
Commit Name: 0568d97009745b14910432b46a29f0c2f4a788b4
Time: 2013-12-17
Author: jack-list@xlk.org.uk
File Name: nilmtk/dataset/redd.py
Class Name:
Method Name: load_chan