Program: 117288
Project: 117288
Buggy source:
@Override public void renderHead(IHeaderResponse response){
  super.renderHead(response);
  response.render(CssReferenceHeaderItem.forReference(OARCHITECT_CSS));
  response.render(CssReferenceHeaderItem.forReference(MXGRAPH_CSS));
  response.render(JavaScriptHeaderItem.forReference(new JavaScriptResourceReference(OArchitectEditorWidget.class,"String_Node_Str")));
  response.render(JavaScriptHeaderItem.forScript(String.format("String_Node_Str","String_Node_Str"),null));
  response.render(JavaScriptHeaderItem.forReference(MXGRAPH_JS));
  response.render(JavaScriptHeaderItem.forReference(new JavaScriptResourceReference(OArchitectEditorWidget.class,"String_Node_Str")));
  response.render(JavaScriptHeaderItem.forReference(new JavaScriptResourceReference(OArchitectEditorWidget.class,"String_Node_Str")));
  response.render(JavaScriptHeaderItem.forReference(new JavaScriptResourceReference(OArchitectEditorWidget.class,"String_Node_Str")));
  response.render(JavaScriptHeaderItem.forReference(new JavaScriptResourceReference(OArchitectEditorWidget.class,"String_Node_Str")));
  response.render(JavaScriptHeaderItem.forReference(new JavaScriptResourceReference(OArchitectEditorWidget.class,"String_Node_Str")));
  response.render(JavaScriptHeaderItem.forReference(new JavaScriptResourceReference(OArchitectEditorWidget.class,"String_Node_Str")));
  response.render(JavaScriptHeaderItem.forReference(new JavaScriptResourceReference(OArchitectEditorWidget.class,"String_Node_Str")));
  response.render(JavaScriptHeaderItem.forReference(new JavaScriptResourceReference(OArchitectEditorWidget.class,"String_Node_Str")));
  response.render(JavaScriptHeaderItem.forReference(new JavaScriptResourceReference(OArchitectEditorWidget.class,"String_Node_Str")));
  response.render(JavaScriptHeaderItem.forReference(new JavaScriptResourceReference(OArchitectEditorWidget.class,"String_Node_Str")));
  response.render(JavaScriptHeaderItem.forReference(new JavaScriptResourceReference(OArchitectEditorWidget.class,"String_Node_Str")));
  response.render(JavaScriptHeaderItem.forReference(new JavaScriptResourceReference(OArchitectEditorWidget.class,"String_Node_Str")));
  response.render(JavaScriptHeaderItem.forReference(new JavaScriptResourceReference(OArchitectEditorWidget.class,"String_Node_Str")));
  response.render(JavaScriptHeaderItem.forReference(new JavaScriptResourceReference(OArchitectEditorWidget.class,"String_Node_Str")));
  response.render(JavaScriptHeaderItem.forReference(new JavaScriptResourceReference(OArchitectEditorWidget.class,"String_Node_Str")));
  response.render(JavaScriptHeaderItem.forReference(new JavaScriptResourceReference(OArchitectEditorWidget.class,"String_Node_Str")));
  response.render(JavaScriptHeaderItem.forReference(new JavaScriptResourceReference(OArchitectEditorWidget.class,"String_Node_Str")));
  response.render(JavaScriptHeaderItem.forReference(new JavaScriptResourceReference(OArchitectEditorWidget.class,"String_Node_Str")));
  response.render(JavaScriptHeaderItem.forReference(new JavaScriptResourceReference(OArchitectEditorWidget.class,"String_Node_Str")));
  String locale=getOArchitectEditorLocale();
  response.render(JavaScriptHeaderItem.forReference(new JavaScriptResourceReference(OArchitectEditorWidget.class,String.format("String_Node_Str",locale))));
  PackageResourceReference configXml=new PackageResourceReference(OArchitectEditorWidget.class,"String_Node_Str");
  String configUrl=urlFor(configXml,null).toString();
  String baseUrl=configUrl.substring(0,configUrl.indexOf("String_Node_Str"));
  TextTemplate configTemplate=new PackageTextTemplate(OArchitectEditorWidget.class,"String_Node_Str");
  Map<String,Object> params=CommonUtils.toMap("String_Node_Str",baseUrl);
  String config=configTemplate.asString(params);
  boolean canUpdate=canUserUpdateEditor();
  response.render(OnLoadHeaderItem.forScript(String.format("String_Node_Str",baseUrl,CommonUtils.escapeAndWrapAsJavaScriptString(config),locale,this.getMarkupId(),container.getMarkupId(),editor.getMarkupId(),sidebar.getMarkupId(),toolbar.getMarkupId(),outline.getMarkupId(),Boolean.toString(canUpdate))));
}

Fixed version (ground truth):
@Override public void renderHead(IHeaderResponse response){
  super.renderHead(response);
  response.render(CssReferenceHeaderItem.forReference(OARCHITECT_CSS));
  response.render(CssReferenceHeaderItem.forReference(MXGRAPH_CSS));
  response.render(JavaScriptHeaderItem.forReference(new JavaScriptResourceReference(OArchitectEditorWidget.class,"String_Node_Str")));
  response.render(JavaScriptHeaderItem.forScript(String.format("String_Node_Str","String_Node_Str"),null));
  response.render(JavaScriptHeaderItem.forReference(MXGRAPH_JS));
  response.render(JavaScriptHeaderItem.forReference(new JavaScriptResourceReference(OArchitectEditorWidget.class,"String_Node_Str")));
  response.render(JavaScriptHeaderItem.forReference(new JavaScriptResourceReference(OArchitectEditorWidget.class,"String_Node_Str")));
  response.render(JavaScriptHeaderItem.forReference(new JavaScriptResourceReference(OArchitectEditorWidget.class,"String_Node_Str")));
  response.render(JavaScriptHeaderItem.forReference(new JavaScriptResourceReference(OArchitectEditorWidget.class,"String_Node_Str")));
  response.render(JavaScriptHeaderItem.forReference(new JavaScriptResourceReference(OArchitectEditorWidget.class,"String_Node_Str")));
  response.render(JavaScriptHeaderItem.forReference(new JavaScriptResourceReference(OArchitectEditorWidget.class,"String_Node_Str")));
  response.render(JavaScriptHeaderItem.forReference(new JavaScriptResourceReference(OArchitectEditorWidget.class,"String_Node_Str")));
  response.render(JavaScriptHeaderItem.forReference(new JavaScriptResourceReference(OArchitectEditorWidget.class,"String_Node_Str")));
  response.render(JavaScriptHeaderItem.forReference(new JavaScriptResourceReference(OArchitectEditorWidget.class,"String_Node_Str")));
  response.render(JavaScriptHeaderItem.forReference(new JavaScriptResourceReference(OArchitectEditorWidget.class,"String_Node_Str")));
  response.render(JavaScriptHeaderItem.forReference(new JavaScriptResourceReference(OArchitectEditorWidget.class,"String_Node_Str")));
  response.render(JavaScriptHeaderItem.forReference(new JavaScriptResourceReference(OArchitectEditorWidget.class,"String_Node_Str")));
  response.render(JavaScriptHeaderItem.forReference(new JavaScriptResourceReference(OArchitectEditorWidget.class,"String_Node_Str")));
  response.render(JavaScriptHeaderItem.forReference(new JavaScriptResourceReference(OArchitectEditorWidget.class,"String_Node_Str")));
  response.render(JavaScriptHeaderItem.forReference(new JavaScriptResourceReference(OArchitectEditorWidget.class,"String_Node_Str")));
  response.render(JavaScriptHeaderItem.forReference(new JavaScriptResourceReference(OArchitectEditorWidget.class,"String_Node_Str")));
  response.render(JavaScriptHeaderItem.forReference(new JavaScriptResourceReference(OArchitectEditorWidget.class,"String_Node_Str")));
  response.render(JavaScriptHeaderItem.forReference(new JavaScriptResourceReference(OArchitectEditorWidget.class,"String_Node_Str")));
  String locale=getOArchitectEditorLocale();
  response.render(JavaScriptHeaderItem.forReference(new JavaScriptResourceReference(OArchitectEditorWidget.class,String.format("String_Node_Str",locale))));
  PackageResourceReference configXml=new PackageResourceReference(OArchitectEditorWidget.class,"String_Node_Str");
  String configUrl=urlFor(configXml,null).toString();
  String baseUrl=configUrl.substring(0,configUrl.indexOf("String_Node_Str"));
  TextTemplate configTemplate=new PackageTextTemplate(OArchitectEditorWidget.class,"String_Node_Str");
  Map<String,Object> params=CommonUtils.toMap("String_Node_Str",baseUrl);
  String config=configTemplate.asString(params);
  boolean canUpdate=canUserUpdateEditor();
  response.render(OnLoadHeaderItem.forScript(String.format("String_Node_Str",baseUrl,CommonUtils.escapeAndWrapAsJavaScriptString(config),locale,this.getMarkupId(),container.getMarkupId(),editor.getMarkupId(),sidebar.getMarkupId(),toolbar.getMarkupId(),outline.getMarkupId(),Boolean.toString(canUpdate))));
}