Program: 81535
Project: 81535
Buggy source:
/** 
 * Get a predefined color gradient
 * @param str abbreviation or name of the gradient.
 * @return predefined gradient
 */
public static LinearGradientPaint getStandardGradient(String str){
  LinearGradientPaint gradient=null;
  if (Arrays.asList(MAP_GB).contains(str)) {
    gradient=new LinearGradientPaint(new Point2D.Double(0,0),new Point2D.Double(100,0),new float[]{0f,1f},new Color[]{new Color(0,0,0),new Color(0,255,0)});
  }
 else   if (Arrays.asList(MAP_DARK).contains(str)) {
    gradient=new LinearGradientPaint(new Point2D.Double(0,0),new Point2D.Double(100,0),new float[]{0f,0.5f,1f},new Color[]{new Color(0,0,0),new Color(255,0,0),new Color(255,255,0)});
  }
 else   if (Arrays.asList(MAP_HSV).contains(str)) {
    gradient=new LinearGradientPaint(new Point2D.Double(0,0),new Point2D.Double(100,0),new float[]{0f,0.2f,0.4f,0.6f,0.8f,1f},new Color[]{new Color(255,0,0),new Color(255,255,0),new Color(0,255,0),new Color(0,255,255),new Color(0,0,255),new Color(255,0,255)});
  }
 else   if (Arrays.asList(MAP_JET).contains(str)) {
    gradient=new LinearGradientPaint(new Point2D.Double(0,0),new Point2D.Double(100,0),new float[]{0f,0.333f,0.666f,1f},new Color[]{new Color(255,0,0),new Color(255,255,0),new Color(0,255,255),new Color(0,0,255)});
  }
 else   if (Arrays.asList(MAP_GBR).contains(str)) {
    gradient=new LinearGradientPaint(new Point2D.Double(0,0),new Point2D.Double(100,0),new float[]{0f,0.5f,1f},new Color[]{new Color(0,255,0),new Color(0,0,0),new Color(255,0,0)});
  }
 else {
    System.err.println("String_Node_Str" + str + "String_Node_Str");
  }
  return gradient;
}

Fixed version (ground truth):
/** 
 * Get a predefined color gradient
 * @param str abbreviation or name of the gradient.
 * @return predefined gradient
 */
public static LinearGradientPaint getStandardGradient(String str){
  LinearGradientPaint gradient=null;
  if (Arrays.asList(MAP_GB).contains(str)) {
    gradient=new LinearGradientPaint(new Point2D.Double(0,0),new Point2D.Double(100,0),new float[]{0f,1f},new Color[]{new Color(0,0,0),new Color(0,255,0)});
  }
 else   if (Arrays.asList(MAP_DARK).contains(str)) {
    gradient=new LinearGradientPaint(new Point2D.Double(0,0),new Point2D.Double(100,0),new float[]{0f,0.5f,1f},new Color[]{new Color(0,0,0),new Color(255,0,0),new Color(255,255,0)});
  }
 else   if (Arrays.asList(MAP_HSV).contains(str)) {
    gradient=new LinearGradientPaint(new Point2D.Double(0,0),new Point2D.Double(100,0),new float[]{0f,0.2f,0.4f,0.6f,0.8f,1f},new Color[]{new Color(255,0,0),new Color(255,255,0),new Color(0,255,0),new Color(0,255,255),new Color(0,0,255),new Color(255,0,255)});
  }
 else   if (Arrays.asList(MAP_JET).contains(str)) {
    gradient=new LinearGradientPaint(new Point2D.Double(0,0),new Point2D.Double(100,0),new float[]{0f,0.333f,0.666f,1f},new Color[]{new Color(255,0,0),new Color(255,255,0),new Color(0,255,255),new Color(0,0,255)});
  }
 else   if (Arrays.asList(MAP_GBR).contains(str)) {
    gradient=new LinearGradientPaint(new Point2D.Double(0,0),new Point2D.Double(100,0),new float[]{0f,0.5f,1f},new Color[]{new Color(0,255,0),new Color(0,0,0),new Color(255,0,0)});
  }
 else   if (Arrays.asList(MAP_RWB).contains(str)) {
    gradient=new LinearGradientPaint(new Point2D.Double(0,0),new Point2D.Double(100,0),new float[]{0f,0.5f,1f},new Color[]{new Color(255,0,0),new Color(255,255,255),new Color(0,0,255)});
  }
 else {
    System.err.println("String_Node_Str" + str + "String_Node_Str");
  }
  return gradient;
}