Program: 69426
Project: 69426
Buggy source:
/** 
 * @see org.olat.core.gui.render.ui.ComponentRenderer#render(org.olat.core.gui.render.Renderer,org.olat.core.gui.render.StringOutput,org.olat.core.gui.components.Component,org.olat.core.gui.render.URLBuilder,org.olat.core.gui.translator.Translator,org.olat.core.gui.render.RenderResult,java.lang.String[])
 */
@Override public void render(Renderer renderer,StringOutput target,Component source,URLBuilder urlBuilder,Translator translator,RenderResult renderResult,String[] args){
  ProgressBar ubar=(ProgressBar)source;
  boolean renderLabels=(args == null) ? true : false;
  float percent=100;
  if (!ubar.getIsNoMax())   percent=100 * ubar.getActual() / ubar.getMax();
  if (percent < 0)   percent=0;
  if (percent > 100)   percent=100;
  target.append("String_Node_Str").append(ubar.getWidth()).append("String_Node_Str").append(Math.round(percent * ubar.getWidth() / 100)).append("String_Node_Str").append(Math.round(percent)).append("String_Node_Str");
  if (renderLabels) {
    if (ubar.isPercentagesEnabled()) {
      target.append(Math.round(percent));
      target.append("String_Node_Str");
    }
    target.append(Math.round(ubar.getActual()));
    target.append("String_Node_Str");
    if (ubar.getIsNoMax())     target.append("String_Node_Str");
 else     target.append(Math.round(ubar.getMax()));
    target.append("String_Node_Str");
    target.append(ubar.getUnitLabel());
    if (ubar.isPercentagesEnabled()) {
      target.append("String_Node_Str");
    }
  }
  String info=ubar.getInfo();
  if (StringHelper.containsNonWhitespace(info)) {
    target.append(info);
  }
  target.append("String_Node_Str");
}

Fixed version (ground truth):
/** 
 * @see org.olat.core.gui.render.ui.ComponentRenderer#render(org.olat.core.gui.render.Renderer,org.olat.core.gui.render.StringOutput,org.olat.core.gui.components.Component,org.olat.core.gui.render.URLBuilder,org.olat.core.gui.translator.Translator,org.olat.core.gui.render.RenderResult,java.lang.String[])
 */
@Override public void render(Renderer renderer,StringOutput target,Component source,URLBuilder urlBuilder,Translator translator,RenderResult renderResult,String[] args){
  ProgressBar ubar=(ProgressBar)source;
  boolean renderLabels=(args == null) ? true : false;
  float percent=100;
  if (!ubar.getIsNoMax()) {
    percent=100 * ubar.getActual() / ubar.getMax();
  }
  if (percent < 0) {
    percent=0;
  }
  if (percent > 100) {
    percent=100;
  }
  target.append("String_Node_Str").append(ubar.getWidth()).append("String_Node_Str","String_Node_Str",ubar.isWidthInPercent()).append("String_Node_Str").append(Math.round(percent * ubar.getWidth() / 100)).append("String_Node_Str").append(Math.round(percent)).append("String_Node_Str");
  if (renderLabels) {
    if (ubar.isPercentagesEnabled()) {
      target.append(Math.round(percent));
      target.append("String_Node_Str");
    }
    target.append(Math.round(ubar.getActual()));
    target.append("String_Node_Str");
    if (ubar.getIsNoMax())     target.append("String_Node_Str");
 else     target.append(Math.round(ubar.getMax()));
    target.append("String_Node_Str");
    target.append(ubar.getUnitLabel());
    if (ubar.isPercentagesEnabled()) {
      target.append("String_Node_Str");
    }
  }
  String info=ubar.getInfo();
  if (StringHelper.containsNonWhitespace(info)) {
    target.append(info);
  }
  target.append("String_Node_Str");
}