nus-yam/ex-repair huggingface dataset:
Program: 82937
Project: 82937
Buggy source:
/** 
 * @see UIObject#onEnsureDebugId(String) <ul> <li>-header => the clickable header</li> </ul>
 */
@Override protected void onEnsureDebugId(String baseID){
  super.onEnsureDebugId(baseID);
  header.ensureDebugId(baseID + "String_Node_Str");
}

Fixed version (ground truth):
/** 
 * <b>Affected Elements:</b> <ul> <li>-header = the clickable header.</li> </ul>
 * @see UIObject#onEnsureDebugId(String)
 */
@Override protected void onEnsureDebugId(String baseID){
  super.onEnsureDebugId(baseID);
  header.ensureDebugId(baseID + "String_Node_Str");
}
Program: 82938
Project: 82938
Buggy source:
/** 
 * @see UIObject#onEnsureDebugId(String) {@link DockPanel}s support adding more than one cell in a direction, so an integer will be appended to the end of the debug id. For example, the first north cell is labeled "north1", the second is "north2", and the third is "north3". This widget recreates its structure every time a   {@link Widget} is added,so you must call this method after adding new  {@link Widget}s or all debug IDs will be lost. <ul> <li>-center => the center cell</li> <li>-north# => the northern cell</li> <li>-south# => the southern cell</li> <li>-east# => the eastern cell</li> <li>-west# => the western cell</li> </ul>
 */
@Override protected void onEnsureDebugId(String baseID){
  super.onEnsureDebugId(baseID);
  Map<DockLayoutConstant,Integer> dirCount=new HashMap<DockLayoutConstant,Integer>();
  Iterator<Widget> it=getChildren().iterator();
  while (it.hasNext()) {
    Widget child=it.next();
    DockLayoutConstant dir=((LayoutData)child.getLayoutData()).direction;
    Integer count=dirCount.get(dir);
    if (count == null) {
      count=new Integer(1);
    }
    String debugID=generateDebugId(dir,count.intValue());
    ensureDebugId(DOM.getParent(child.getElement()),baseID,debugID);
    dirCount.put(dir,count.intValue() + 1);
  }
}

Fixed version (ground truth):
/** 
 * {@link DockPanel} supports adding more than one cell in a direction, so aninteger will be appended to the end of the debug id. For example, the first north cell is labeled "north1", the second is "north2", and the third is "north3". This widget recreates its structure every time a  {@link Widget} is added,so you must call this method after adding a new  {@link Widget} or all debugIDs will be lost. <p> <b>Affected Elements:</b> <ul> <li>-center = the center cell.</li> <li>-north# = the northern cell.</li> <li>-south# = the southern cell.</li> <li>-east# = the eastern cell.</li> <li>-west# = the western cell.</li> </ul> </p>
 * @see UIObject#onEnsureDebugId(String)
 */
@Override protected void onEnsureDebugId(String baseID){
  super.onEnsureDebugId(baseID);
  Map<DockLayoutConstant,Integer> dirCount=new HashMap<DockLayoutConstant,Integer>();
  Iterator<Widget> it=getChildren().iterator();
  while (it.hasNext()) {
    Widget child=it.next();
    DockLayoutConstant dir=((LayoutData)child.getLayoutData()).direction;
    Integer count=dirCount.get(dir);
    if (count == null) {
      count=new Integer(1);
    }
    String debugID=generateDebugId(dir,count.intValue());
    ensureDebugId(DOM.getParent(child.getElement()),baseID,debugID);
    dirCount.put(dir,count.intValue() + 1);
  }
}
Program: 82939
Project: 82939
Buggy source:
/** 
 * @see UIObject#onEnsureDebugId(String) <ul> <li>-(row)#-(cell)# => the cell at the given row and cell index</li> </ul>
 */
@Override protected void onEnsureDebugId(String baseID){
  super.onEnsureDebugId(baseID);
  int rowCount=getRowCount();
  for (int row=0; row < rowCount; row++) {
    int cellCount=getCellCount(row);
    for (int cell=0; cell < cellCount; cell++) {
      Element cellElem=cellFormatter.getRawElement(row,cell);
      ensureDebugId(cellElem,baseID,row + "String_Node_Str" + cell);
    }
  }
}

Fixed version (ground truth):
/** 
 * <b>Affected Elements:</b> <ul> <li>-(row)#-(cell)# = the cell at the given row and cell index.</li> </ul>
 * @see UIObject#onEnsureDebugId(String)
 */
@Override protected void onEnsureDebugId(String baseID){
  super.onEnsureDebugId(baseID);
  int rowCount=getRowCount();
  for (int row=0; row < rowCount; row++) {
    int cellCount=getCellCount(row);
    for (int cell=0; cell < cellCount; cell++) {
      Element cellElem=cellFormatter.getRawElement(row,cell);
      ensureDebugId(cellElem,baseID,row + "String_Node_Str" + cell);
    }
  }
}
Program: 82940
Project: 82940
Buggy source:
/** 
 * @see UIObject#onEnsureDebugId(String) <ul> <li>-# => the cell at the given index</li> </ul>
 */
@Override protected void onEnsureDebugId(String baseID){
  super.onEnsureDebugId(baseID);
  int numChildren=getWidgetCount();
  for (int i=0; i < numChildren; i++) {
    ensureDebugId(getWidgetTd(getWidget(i)),baseID,"String_Node_Str" + i);
  }
}

Fixed version (ground truth):
/** 
 * <b>Affected Elements:</b> <ul> <li>-# = the cell at the given index.</li> </ul>
 * @see UIObject#onEnsureDebugId(String)
 */
@Override protected void onEnsureDebugId(String baseID){
  super.onEnsureDebugId(baseID);
  int numChildren=getWidgetCount();
  for (int i=0; i < numChildren; i++) {
    ensureDebugId(getWidgetTd(getWidget(i)),baseID,"String_Node_Str" + i);
  }
}
Program: 82941
Project: 82941
Buggy source:
/** 
 * @see UIObject#onEnsureDebugId(String) <ul> <li>-splitter => the container containing the splitter element</li> <li>-right => the container on the right side of the splitter</li> <li>-left => the container on the left side of the splitter</li> </ul>
 */
@Override protected void onEnsureDebugId(String baseID){
  super.onEnsureDebugId(baseID);
  ensureDebugId(getElement(LEFT),baseID,"String_Node_Str");
  ensureDebugId(getElement(RIGHT),baseID,"String_Node_Str");
}

Fixed version (ground truth):
/** 
 * <b>Affected Elements:</b> <ul> <li>-splitter = the container containing the splitter element.</li> <li>-right = the container on the right side of the splitter.</li> <li>-left = the container on the left side of the splitter.</li> </ul>
 * @see UIObject#onEnsureDebugId(String)
 */
@Override protected void onEnsureDebugId(String baseID){
  super.onEnsureDebugId(baseID);
  ensureDebugId(getElement(LEFT),baseID,"String_Node_Str");
  ensureDebugId(getElement(RIGHT),baseID,"String_Node_Str");
}
Program: 82942
Project: 82942
Buggy source:
/** 
 * @see UIObject#onEnsureDebugId(String) <ul> <li>-wrapper => the div around the link</li> </ul>
 */
@Override protected void onEnsureDebugId(String baseID){
  ensureDebugId(anchorElem,"String_Node_Str",baseID);
  ensureDebugId(getElement(),baseID,"String_Node_Str");
}

Fixed version (ground truth):
/** 
 * <b>Affected Elements:</b> <ul> <li>-wrapper = the div around the link.</li> </ul>
 * @see UIObject#onEnsureDebugId(String)
 */
@Override protected void onEnsureDebugId(String baseID){
  ensureDebugId(anchorElem,"String_Node_Str",baseID);
  ensureDebugId(getElement(),baseID,"String_Node_Str");
}
Program: 82943
Project: 82943
Buggy source:
/** 
 * @see UIObject#onEnsureDebugId(String) <ul> <li>-item# => the option at the specified index</li> </ul>
 */
@Override protected void onEnsureDebugId(String baseID){
  super.onEnsureDebugId(baseID);
  Element selectElem=getElement();
  int numItems=getItemCount();
  for (int i=0; i < numItems; i++) {
    ensureDebugId(impl.getItemElement(selectElem,i),baseID,"String_Node_Str" + i);
  }
}

Fixed version (ground truth):
/** 
 * <b>Affected Elements:</b> <ul> <li>-item# = the option at the specified index.</li> </ul>
 * @see UIObject#onEnsureDebugId(String)
 */
@Override protected void onEnsureDebugId(String baseID){
  super.onEnsureDebugId(baseID);
  Element selectElem=getElement();
  int numItems=getItemCount();
  for (int i=0; i < numItems; i++) {
    ensureDebugId(impl.getItemElement(selectElem,i),baseID,"String_Node_Str" + i);
  }
}
Program: 82944
Project: 82944
Buggy source:
/** 
 * @see UIObject#onEnsureDebugId(String) <ul> <li>-item# => the  {@link MenuItem} at the specified index</li></ul>
 */
@Override protected void onEnsureDebugId(String baseID){
  super.onEnsureDebugId(baseID);
  setMenuItemDebugIds(baseID);
}

Fixed version (ground truth):
/** 
 * <b>Affected Elements:</b> <ul> <li>-item# = the   {@link MenuItem} at the specified index.</li></ul>
 * @see UIObject#onEnsureDebugId(String)
 */
@Override protected void onEnsureDebugId(String baseID){
  super.onEnsureDebugId(baseID);
  setMenuItemDebugIds(baseID);
}
Program: 82945
Project: 82945
Buggy source:
/** 
 * @see UIObject#onEnsureDebugId(String) Also sets the Debug IDs of  {@link MenuItem}s in the submenu of this  {@link MenuItem}, if one exists.
 */
@Override protected void onEnsureDebugId(String baseID){
  super.onEnsureDebugId(baseID);
  if (subMenu != null) {
    subMenu.setMenuItemDebugIds(baseID);
  }
}

Fixed version (ground truth):
/** 
 * Also sets the Debug IDs of MenuItems in the submenu of this  {@link MenuItem} if a submenu exists.
 * @see UIObject#onEnsureDebugId(String)
 */
@Override protected void onEnsureDebugId(String baseID){
  super.onEnsureDebugId(baseID);
  if (subMenu != null) {
    subMenu.setMenuItemDebugIds(baseID);
  }
}
Program: 82946
Project: 82946
Buggy source:
/** 
 * @see UIObject#onEnsureDebugId(String) <ul> <li>-splitter => the container containing the splitter element</li> </ul>
 */
@Override protected void onEnsureDebugId(String baseID){
  super.onEnsureDebugId(baseID);
  ensureDebugId(splitElem,baseID,"String_Node_Str");
}

Fixed version (ground truth):
/** 
 * <b>Affected Elements:</b> <ul> <li>-splitter = the container containing the splitter element.</li> </ul>
 * @see UIObject#onEnsureDebugId(String)
 */
@Override protected void onEnsureDebugId(String baseID){
  super.onEnsureDebugId(baseID);
  ensureDebugId(splitElem,baseID,"String_Node_Str");
}
Program: 82947
Project: 82947
Buggy source:
/** 
 * @see UIObject#onEnsureDebugId(String) <ul> <li>-text# => The element around the header at the specified index</li> <li>-content# => The element around the body at the specified index</li> </ul>
 */
@Override protected void onEnsureDebugId(String baseID){
  super.onEnsureDebugId(baseID);
  int numHeaders=DOM.getChildCount(body) / 2;
  for (int i=0; i < numHeaders; i++) {
    Element headerElem=DOM.getFirstChild(DOM.getChild(body,2 * i));
    Element bodyElem=DOM.getFirstChild(DOM.getChild(body,2 * i + 1));
    ensureDebugId(headerElem,baseID,"String_Node_Str" + i);
    ensureDebugId(bodyElem,baseID,"String_Node_Str" + i);
  }
}

Fixed version (ground truth):
/** 
 * <b>Affected Elements:</b> <ul> <li>-text# = The element around the header at the specified index.</li> <li>-content# = The element around the body at the specified index.</li> </ul>
 * @see UIObject#onEnsureDebugId(String)
 */
@Override protected void onEnsureDebugId(String baseID){
  super.onEnsureDebugId(baseID);
  int numHeaders=DOM.getChildCount(body) / 2;
  for (int i=0; i < numHeaders; i++) {
    Element headerElem=DOM.getFirstChild(DOM.getChild(body,2 * i));
    Element bodyElem=DOM.getFirstChild(DOM.getChild(body,2 * i + 1));
    ensureDebugId(headerElem,baseID,"String_Node_Str" + i);
    ensureDebugId(bodyElem,baseID,"String_Node_Str" + i);
  }
}
Program: 82948
Project: 82948
Buggy source:
/** 
 * @see UIObject#onEnsureDebugId(String) <ul> <li>-popup => The popup that appears with suggestions</li> <li>-items-item# => The suggested item at the specified index</li> </ul> 
 */
@Override protected void onEnsureDebugId(String baseID){
  super.onEnsureDebugId(baseID);
  suggestionPopup.ensureDebugId(baseID + "String_Node_Str");
  suggestionMenu.setMenuItemDebugIds(baseID);
}

Fixed version (ground truth):
/** 
 * <b>Affected Elements:</b> <ul> <li>-popup = The popup that appears with suggestions.</li> <li>-items-item# = The suggested item at the specified index.</li> </ul>
 * @see UIObject#onEnsureDebugId(String)
 */
@Override protected void onEnsureDebugId(String baseID){
  super.onEnsureDebugId(baseID);
  suggestionPopup.ensureDebugId(baseID + "String_Node_Str");
  suggestionMenu.setMenuItemDebugIds(baseID);
}
Program: 82949
Project: 82949
Buggy source:
/** 
 * @see UIObject#onEnsureDebugId(String) <ul> <li>-tab# => The element containing the contents of the tab</li> <li>-tab-wrapper# => The cell containing the tab at the index</li> </ul>
 */
@Override protected void onEnsureDebugId(String baseID){
  super.onEnsureDebugId(baseID);
  int numTabs=getTabCount();
  for (int i=0; i < numTabs; i++) {
    Element widgetElem=panel.getWidget(i + 1).getElement();
    ensureDebugId(widgetElem,baseID,"String_Node_Str" + i);
    ensureDebugId(DOM.getParent(widgetElem),baseID,"String_Node_Str" + i);
  }
}

Fixed version (ground truth):
/** 
 * <b>Affected Elements:</b> <ul> <li>-tab# = The element containing the contents of the tab.</li> <li>-tab-wrapper# = The cell containing the tab at the index.</li> </ul>
 * @see UIObject#onEnsureDebugId(String)
 */
@Override protected void onEnsureDebugId(String baseID){
  super.onEnsureDebugId(baseID);
  int numTabs=getTabCount();
  for (int i=0; i < numTabs; i++) {
    Element widgetElem=panel.getWidget(i + 1).getElement();
    ensureDebugId(widgetElem,baseID,"String_Node_Str" + i);
    ensureDebugId(DOM.getParent(widgetElem),baseID,"String_Node_Str" + i);
  }
}
Program: 82950
Project: 82950
Buggy source:
/** 
 * @see UIObject#onEnsureDebugId(String) <ul> <li>-bar => The tab bar</li> <li>-bar-tab# => The element containing the contents of the tab itself</li> <li>-bar-tab#-wrapper => The cell containing the tab at the index</li> <li>-bottom => The panel beneath the tab bar</li> </ul>
 */
@Override protected void onEnsureDebugId(String baseID){
  super.onEnsureDebugId(baseID);
  tabBar.ensureDebugId(baseID + "String_Node_Str");
  deck.ensureDebugId(baseID + "String_Node_Str");
}

Fixed version (ground truth):
/** 
 * <b>Affected Elements:</b> <ul> <li>-bar = The tab bar.</li> <li>-bar-tab# = The element containing the content of the tab itself.</li> <li>-bar-tab#-wrapper = The cell containing the tab at the index.</li> <li>-bottom = The panel beneath the tab bar.</li> </ul>
 * @see UIObject#onEnsureDebugId(String)
 */
@Override protected void onEnsureDebugId(String baseID){
  super.onEnsureDebugId(baseID);
  tabBar.ensureDebugId(baseID + "String_Node_Str");
  deck.ensureDebugId(baseID + "String_Node_Str");
}
Program: 82951
Project: 82951
Buggy source:
/** 
 * @see UIObject#onEnsureDebugId(String) <ul> <li>-root => The root  {@link TreeItem}</li> </ul>
 */
@Override protected void onEnsureDebugId(String baseID){
  super.onEnsureDebugId(baseID);
  root.ensureDebugId(baseID + "String_Node_Str");
}

Fixed version (ground truth):
/** 
 * <b>Affected Elements:</b> <ul> <li>-root = The root   {@link TreeItem}.</li> </ul>
 * @see UIObject#onEnsureDebugId(String)
 */
@Override protected void onEnsureDebugId(String baseID){
  super.onEnsureDebugId(baseID);
  root.ensureDebugId(baseID + "String_Node_Str");
}
Program: 82952
Project: 82952
Buggy source:
/** 
 * @see UIObject#onEnsureDebugId(String) <ul> <li>-image => The status image</li> <li>-content => The text or  {@link Widget} next to the image</li><li>-child# => The child at the specified index</li> </ul>
 */
@Override protected void onEnsureDebugId(String baseID){
  super.onEnsureDebugId(baseID);
  statusImage.ensureDebugId(baseID + "String_Node_Str");
  ensureDebugId(contentElem,baseID,"String_Node_Str");
  int childCount=0;
  for (  TreeItem child : children) {
    child.ensureDebugId(baseID + "String_Node_Str" + childCount);
    childCount++;
  }
}

Fixed version (ground truth):
/** 
 * <b>Affected Elements:</b> <ul> <li>-image = The status image.</li> <li>-content = The text or   {@link Widget} next to the image.</li><li>-child# = The child at the specified index.</li> </ul>
 * @see UIObject#onEnsureDebugId(String)
 */
@Override protected void onEnsureDebugId(String baseID){
  super.onEnsureDebugId(baseID);
  statusImage.ensureDebugId(baseID + "String_Node_Str");
  ensureDebugId(contentElem,baseID,"String_Node_Str");
  int childCount=0;
  for (  TreeItem child : children) {
    child.ensureDebugId(baseID + "String_Node_Str" + childCount);
    childCount++;
  }
}
Program: 82953
Project: 82953
Buggy source:
/** 
 * Called when the user sets the id using the   {@link #ensureDebugId(String)}method. Subclasses of   {@link UIObject} can override this method to add IDsto their sub elements.  If a subclass does override this method, it should list the IDs (relative to the base ID), that will be applied to each sub {@link Element} with a short description.  For example:<ul> <li>-mysubelement => Applies to my sub element</li> </ul>  Subclasses should make a super call to this method to ensure that the ID of the main element is set. This method will not be called unless you inherit the DebugID module in your gwt.xml file by adding the following line: <inherits name="com.google.gwt.user.DebugID"/>
 * @param baseID the base ID used by the main element
 */
protected void onEnsureDebugId(String baseID){
  ensureDebugId(getElement(),"String_Node_Str",baseID);
}

Fixed version (ground truth):
/** 
 * Called when the user sets the id using the   {@link #ensureDebugId(String)}method. Subclasses of   {@link UIObject} can override this method to add IDsto their sub elements.  If a subclass does override this method, it should list the IDs (relative to the base ID), that will be applied to each sub {@link Element} with a short description.  For example:<ul> <li>-mysubelement = Applies to my sub element.</li> </ul>  Subclasses should make a super call to this method to ensure that the ID of the main element is set. This method will not be called unless you inherit the DebugID module in your gwt.xml file by adding the following line: <pre class="code"> &lt;inherits name="com.google.gwt.user.DebugID"/&gt;</pre>
 * @param baseID the base ID used by the main element
 */
protected void onEnsureDebugId(String baseID){
  ensureDebugId(getElement(),"String_Node_Str",baseID);
}
Program: 82954
Project: 82954
Buggy source:
/** 
 * Ensure that the main   {@link Element} for this {@link UIObject} has an IDproperty set, which allows it to integrate with third-party libraries and test tools. Complex  {@link Widget}s will also set the IDs of their important sub-elements. If the main element already has an ID, this method will NOT override it. The debugID is only used when no other ID is present on the   {@link Element}. The ID that you specify will be prefixed by the static string  {@link #DEBUG_ID_PREFIX}. This method will be compiled out and will have no effect unless you inherit the DebugID module in your gwt.xml file by adding the following line: <inherits name="com.google.gwt.user.DebugID"/>
 * @param id the ID to set on the main element
 */
public final void ensureDebugId(String id){
  debugIdImpl.ensureDebugId(this,id);
}

Fixed version (ground truth):
/** 
 * Ensure that the main   {@link Element} for this {@link UIObject} has an IDproperty set, which allows it to integrate with third-party libraries and test tools. Complex  {@link Widget}s will also set the IDs of their important sub-elements. If the main element already has an ID, this method will NOT override it. The debugID is only used when no other ID is present on the   {@link Element}. The ID that you specify will be prefixed by the static string  {@link #DEBUG_ID_PREFIX}. This method will be compiled out and will have no effect unless you inherit the DebugID module in your gwt.xml file by adding the following line: <pre class="code"> &lt;inherits name="com.google.gwt.user.DebugID"/&gt;</pre>
 * @param id the ID to set on the main element
 */
public final void ensureDebugId(String id){
  debugIdImpl.ensureDebugId(this,id);
}
Program: 82955
Project: 82955
Buggy source:
/** 
 * @see UIObject#onEnsureDebugId(String) <ul> <li>-# => the cell at the given index</li> </ul>
 */
@Override protected void onEnsureDebugId(String baseID){
  super.onEnsureDebugId(baseID);
  int numChildren=getWidgetCount();
  for (int i=0; i < numChildren; i++) {
    ensureDebugId(getWidgetTd(getWidget(i)),baseID,"String_Node_Str" + i);
  }
}

Fixed version (ground truth):
/** 
 * <b>Affected Elements:</b> <ul> <li>-# = the cell at the given index.</li> </ul>
 * @see UIObject#onEnsureDebugId(String)
 */
@Override protected void onEnsureDebugId(String baseID){
  super.onEnsureDebugId(baseID);
  int numChildren=getWidgetCount();
  for (int i=0; i < numChildren; i++) {
    ensureDebugId(getWidgetTd(getWidget(i)),baseID,"String_Node_Str" + i);
  }
}
Program: 82956
Project: 82956
Buggy source:
/** 
 * @see UIObject#onEnsureDebugId(String) <ul> <li>-splitter => the container containing the splitter element</li> <li>-top => the container above the splitter</li> <li>-bottom => the container below the splitter</li> </ul>
 */
@Override protected void onEnsureDebugId(String baseID){
  super.onEnsureDebugId(baseID);
  ensureDebugId(getElement(TOP),baseID,"String_Node_Str");
  ensureDebugId(getElement(BOTTOM),baseID,"String_Node_Str");
}

Fixed version (ground truth):
/** 
 * <b>Affected Elements:</b> <ul> <li>-splitter = the container containing the splitter element.</li> <li>-top = the container above the splitter.</li> <li>-bottom = the container below the splitter.</li> </ul>
 * @see UIObject#onEnsureDebugId(String)
 */
@Override protected void onEnsureDebugId(String baseID){
  super.onEnsureDebugId(baseID);
  ensureDebugId(getElement(TOP),baseID,"String_Node_Str");
  ensureDebugId(getElement(BOTTOM),baseID,"String_Node_Str");
}
Program: 82957
Project: 82957
Buggy source:
private boolean _spaceCalc(JsOperator op,JsExpression arg){
  if (op.isKeyword()) {
    return true;
  }
  if (arg instanceof JsPrefixOperation) {
    JsOperator op2=((JsPrefixOperation)arg).getOperator();
    return (op == JsBinaryOperator.SUB || op == JsUnaryOperator.NEG) && (op2 == JsUnaryOperator.DEC || op2 == JsUnaryOperator.NEG) || (op == JsBinaryOperator.ADD && op2 == JsUnaryOperator.INC);
  }
  return false;
}

Fixed version (ground truth):
private boolean _spaceCalc(JsOperator op,JsExpression arg){
  if (op.isKeyword()) {
    return true;
  }
  if (arg instanceof JsPrefixOperation) {
    JsOperator op2=((JsPrefixOperation)arg).getOperator();
    return (op == JsBinaryOperator.SUB || op == JsUnaryOperator.NEG) && (op2 == JsUnaryOperator.DEC || op2 == JsUnaryOperator.NEG) || (op == JsBinaryOperator.ADD && op2 == JsUnaryOperator.INC);
  }
  if (arg instanceof JsIntegralLiteral) {
    JsIntegralLiteral literal=(JsIntegralLiteral)arg;
    return (op == JsBinaryOperator.SUB || op == JsUnaryOperator.NEG) && (literal.getValue().signum() == -1);
  }
  if (arg instanceof JsDecimalLiteral) {
    JsDecimalLiteral literal=(JsDecimalLiteral)arg;
    return (op == JsBinaryOperator.SUB || op == JsUnaryOperator.NEG) && (literal.getValue().startsWith("String_Node_Str"));
  }
  return false;
}
Program: 82958
Project: 82958
Buggy source:
protected void printJsBlockOptionalTruncate(JsBlock x,boolean truncate){
  boolean needBraces=!x.isGlobalBlock();
  if (needBraces) {
    _blockOpen();
  }
  int count=0;
  for (Iterator<JsStatement> iter=x.getStatements().iterator(); iter.hasNext(); ++count) {
    if (truncate && count > JSBLOCK_LINES_TO_PRINT) {
      p.print("String_Node_Str");
      _newlineOpt();
      break;
    }
    JsStatement stmt=iter.next();
    needSemi=true;
    accept(stmt);
    if (needSemi) {
      if (stmt instanceof JsExprStmt && ((JsExprStmt)stmt).getExpression() instanceof JsFunction) {
        _newline();
      }
 else {
        _semi();
        _newlineOpt();
      }
    }
  }
  if (needBraces) {
    _blockClose();
  }
  needSemi=false;
}

Fixed version (ground truth):
protected void printJsBlockOptionalTruncate(JsBlock x,boolean truncate){
  boolean needBraces=!x.isGlobalBlock();
  if (needBraces) {
    _blockOpen();
  }
  int count=0;
  for (Iterator<JsStatement> iter=x.getStatements().iterator(); iter.hasNext(); ++count) {
    if (truncate && count > JSBLOCK_LINES_TO_PRINT) {
      p.print("String_Node_Str");
      _newlineOpt();
      break;
    }
    JsStatement stmt=iter.next();
    needSemi=true;
    accept(stmt);
    if (needSemi) {
      boolean functionStmt=stmt instanceof JsExprStmt && ((JsExprStmt)stmt).getExpression() instanceof JsFunction;
      boolean lastStatement=!iter.hasNext() && needBraces && !JsRequiresSemiVisitor.exec(stmt);
      if (functionStmt) {
        if (lastStatement) {
          _newlineOpt();
        }
 else {
          _newline();
        }
      }
 else {
        if (lastStatement) {
          _semiOpt();
        }
 else {
          _semi();
        }
        _newlineOpt();
      }
    }
  }
  if (needBraces) {
    _blockClose();
  }
  needSemi=false;
}
Program: 82962
Project: 82962
Buggy source:
public void testPolicyFileTriggersClassNotFound() throws IOException, ParseException {
  InputStream is=getInputStreamFromString(POLICY_FILE_TRIGGERS_CLASSNOTFOUND);
  try {
    SerializationPolicyLoader.loadFromStream(is);
    fail("String_Node_Str");
  }
 catch (  ClassNotFoundException e) {
  }
}

Fixed version (ground truth):
public void testPolicyFileTriggersClassNotFound() throws IOException, ParseException {
  InputStream is=getInputStreamFromString(POLICY_FILE_TRIGGERS_CLASSNOTFOUND);
  try {
    SerializationPolicyLoader.loadFromStream(is);
    fail("String_Node_Str");
  }
 catch (  ClassNotFoundException e) {
  }
  is.reset();
  SerializationPolicyLoader.loadFromStream(is,null);
  List<ClassNotFoundException> classNotFoundExceptions=new ArrayList<ClassNotFoundException>();
  is.reset();
  SerializationPolicyLoader.loadFromStream(is,classNotFoundExceptions);
  assertEquals(1,classNotFoundExceptions.size());
  assertNotNull(classNotFoundExceptions.get(0));
}
Program: 82963
Project: 82963
Buggy source:
public void setHTML(String html){
  caption.setHTML(html);
}

Fixed version (ground truth):
/** 
 * Sets the html string inside the caption. Use   {@link #setWidget(Widget)} to set the contents inside the{@link DialogBox}.
 * @param html the object's new HTML
 */
public void setHTML(String html){
  caption.setHTML(html);
}
Program: 82964
Project: 82964
Buggy source:
public void setText(String text){
  caption.setText(text);
}

Fixed version (ground truth):
/** 
 * Sets the text inside the caption. Use   {@link #setWidget(Widget)} to set the contents inside the{@link DialogBox}.
 * @param text the object's new text
 */
public void setText(String text){
  caption.setText(text);
}
Program: 82965
Project: 82965
Buggy source:
public static <T>void fill(List<? super T> list,T obj){
  for (ListIterator<? super T> it=list.listIterator(); it.hasNext(); ) {
    it.set(obj);
  }
}

Fixed version (ground truth):
public static <T>void fill(List<? super T> list,T obj){
  for (ListIterator<? super T> it=list.listIterator(); it.hasNext(); ) {
    it.next();
    it.set(obj);
  }
}
Program: 82966
Project: 82966
Buggy source:
private void addCallArgs(Expression[] args,JMethodCall call,MethodBinding binding){
  if (args != null) {
    TypeBinding[] params=binding.parameters;
    int n=params.length;
    if (binding.isVarargs()) {
      --n;
    }
    for (int i=0; i < n; ++i) {
      call.getArgs().add(dispProcessExpression(args[i]));
    }
    if (binding.isVarargs()) {
      JArrayType type=(JArrayType)typeMap.get(params[n]);
      if (args.length == n + 1) {
        JType lastArgType=(JType)typeMap.get(args[n].resolvedType);
        if (lastArgType instanceof JArrayType) {
          JArrayType lastArgArrayType=(JArrayType)lastArgType;
          if (lastArgArrayType.getDims() == type.getDims()) {
            call.getArgs().add(dispProcessExpression(args[n]));
            return;
          }
        }
      }
      SourceInfo info=makeSourceInfo(args[n]);
      JNewArray newArray=new JNewArray(program,info,type);
      newArray.initializers=new ArrayList<JExpression>();
      for (int i=n; i < args.length; ++i) {
        newArray.initializers.add(dispProcessExpression(args[i]));
      }
      call.getArgs().add(newArray);
    }
  }
}

Fixed version (ground truth):
private void addCallArgs(Expression[] args,JMethodCall call,MethodBinding binding){
  if (args == null) {
    args=new Expression[0];
  }
  TypeBinding[] params=binding.parameters;
  int n=params.length;
  if (binding.isVarargs()) {
    --n;
  }
  if (args.length < n) {
    assert(call.getTarget().getName().equals("String_Node_Str"));
    return;
  }
  ArrayList<JExpression> callArgs=call.getArgs();
  for (int i=0; i < n; ++i) {
    callArgs.add(dispProcessExpression(args[i]));
  }
  if (binding.isVarargs()) {
    JArrayType type=(JArrayType)typeMap.get(params[n]);
    if (args.length == n + 1) {
      JType lastArgType=(JType)typeMap.get(args[n].resolvedType);
      if (lastArgType instanceof JArrayType) {
        JArrayType lastArgArrayType=(JArrayType)lastArgType;
        if (lastArgArrayType.getDims() == type.getDims()) {
          callArgs.add(dispProcessExpression(args[n]));
          return;
        }
      }
    }
    JNewArray newArray=new JNewArray(program,call.getSourceInfo(),type);
    newArray.initializers=new ArrayList<JExpression>();
    for (int i=n; i < args.length; ++i) {
      newArray.initializers.add(dispProcessExpression(args[i]));
    }
    callArgs.add(newArray);
  }
}
Program: 82967
Project: 82967
Buggy source:
public void testVarargBoxing(){
  int[] ints=new int[]{1,2,3};
  int[] results=varargUnboxed(1,2,3);
  assertTrue(Arrays.equals(results,ints));
  int[] results2=varargUnboxed(new Integer(1),2,new Integer(3));
  assertTrue(Arrays.equals(ints,results2));
}

Fixed version (ground truth):
public void testVarargBoxing(){
  int[] expected=new int[]{1,2,3};
  int[] actual=varargUnboxed(1,2,3);
  assertTrue(Arrays.equals(expected,actual));
  actual=varargUnboxed(new Integer(1),2,new Integer(3));
  assertTrue(Arrays.equals(expected,actual));
  expected=new int[]{};
  actual=varargUnboxed();
  assertTrue(Arrays.equals(expected,actual));
}
Program: 82968
Project: 82968
Buggy source:
public void testVararg(){
  String[] strings=new String[]{"String_Node_Str","String_Node_Str","String_Node_Str"};
  String[] results=vararg("String_Node_Str","String_Node_Str","String_Node_Str");
  assertTrue(Arrays.equals(results,strings));
}

Fixed version (ground truth):
public void testVararg(){
  String[] expected=new String[]{"String_Node_Str","String_Node_Str","String_Node_Str"};
  String[] actual=vararg("String_Node_Str","String_Node_Str","String_Node_Str");
  assertTrue(Arrays.equals(expected,actual));
  expected=new String[]{};
  actual=vararg();
  assertTrue(Arrays.equals(expected,actual));
}
Program: 82969
Project: 82969
Buggy source:
void doItemAction(final MenuItem item,boolean fireCommand){
  if ((shownChildMenu != null) && (item.getSubMenu() == shownChildMenu)) {
    return;
  }
  if (shownChildMenu != null) {
    shownChildMenu.onHide();
    popup.hide();
  }
  if (item.getSubMenu() == null) {
    if (fireCommand) {
      closeAllParents();
      Command cmd=item.getCommand();
      if (cmd != null) {
        DeferredCommand.addCommand(cmd);
      }
    }
    return;
  }
  selectItem(item);
  popup=new PopupPanel(true){
{
      setWidget(item.getSubMenu());
      item.getSubMenu().onShow();
    }
    @Override public boolean onEventPreview(    Event event){
switch (DOM.eventGetType(event)) {
case Event.ONCLICK:
        Element target=DOM.eventGetTarget(event);
      Element parentMenuElement=item.getParentMenu().getElement();
    if (DOM.isOrHasChild(parentMenuElement,target)) {
      return false;
    }
  break;
}
return super.onEventPreview(event);
}
}
;
popup.addPopupListener(this);
if (vertical) {
popup.setPopupPosition(item.getAbsoluteLeft() + item.getOffsetWidth(),item.getAbsoluteTop());
}
 else {
popup.setPopupPosition(item.getAbsoluteLeft(),item.getAbsoluteTop() + item.getOffsetHeight());
}
shownChildMenu=item.getSubMenu();
item.getSubMenu().parentMenu=this;
popup.show();
}

Fixed version (ground truth):
void doItemAction(final MenuItem item,boolean fireCommand){
  if ((shownChildMenu != null) && (item.getSubMenu() == shownChildMenu)) {
    return;
  }
  if (shownChildMenu != null) {
    shownChildMenu.onHide();
    popup.hide();
  }
  if (item.getSubMenu() == null) {
    if (fireCommand) {
      closeAllParents();
      Command cmd=item.getCommand();
      if (cmd != null) {
        DeferredCommand.addCommand(cmd);
      }
    }
    return;
  }
  selectItem(item);
  popup=new PopupPanel(true){
{
      setWidget(item.getSubMenu());
      item.getSubMenu().onShow();
    }
    @Override public boolean onEventPreview(    Event event){
switch (DOM.eventGetType(event)) {
case Event.ONCLICK:
        Element target=DOM.eventGetTarget(event);
      Element parentMenuElement=item.getParentMenu().getElement();
    if (DOM.isOrHasChild(parentMenuElement,target)) {
      return false;
    }
  break;
}
return super.onEventPreview(event);
}
}
;
popup.addPopupListener(this);
if (vertical) {
popup.setPopupPosition(this.getAbsoluteLeft() + this.getOffsetWidth() - 1,item.getAbsoluteTop());
}
 else {
popup.setPopupPosition(item.getAbsoluteLeft(),this.getAbsoluteTop() + this.getOffsetHeight() - 1);
}
shownChildMenu=item.getSubMenu();
item.getSubMenu().parentMenu=this;
popup.show();
}
Program: 82970
Project: 82970
Buggy source:
/** 
 * Creates an empty menu bar.
 * @param vertical <code>true</code> to orient the menu bar vertically
 */
public MenuBar(boolean vertical){
  super();
  Element table=DOM.createTable();
  body=DOM.createTBody();
  DOM.appendChild(table,body);
  if (!vertical) {
    Element tr=DOM.createTR();
    DOM.appendChild(body,tr);
  }
  this.vertical=vertical;
  Element outer=DOM.createDiv();
  DOM.appendChild(outer,table);
  setElement(outer);
  sinkEvents(Event.ONCLICK | Event.ONMOUSEOVER | Event.ONMOUSEOUT);
  setStyleName("String_Node_Str");
}

Fixed version (ground truth):
/** 
 * Creates an empty menu bar.
 * @param vertical <code>true</code> to orient the menu bar vertically
 */
public MenuBar(boolean vertical){
  super();
  Element table=DOM.createTable();
  body=DOM.createTBody();
  DOM.appendChild(table,body);
  if (!vertical) {
    Element tr=DOM.createTR();
    DOM.appendChild(body,tr);
  }
  this.vertical=vertical;
  Element outer=DOM.createDiv();
  DOM.appendChild(outer,table);
  setElement(outer);
  sinkEvents(Event.ONCLICK | Event.ONMOUSEOVER | Event.ONMOUSEOUT);
  setStyleName("String_Node_Str");
  if (vertical) {
    addStyleName("String_Node_Str");
  }
 else {
    addStyleName("String_Node_Str");
  }
}
Program: 82971
Project: 82971
Buggy source:
public int compare(JType o1,JType o2){
  String n1=o1.getQualifiedSourceName();
  String n2=o2.getQualifiedSourceName();
  return n1.compareTo(n2);
}

Fixed version (ground truth):
public int compare(JClassType t1,JClassType t2){
  return t1.getQualifiedSourceName().compareTo(t2.getQualifiedSourceName());
}
Program: 82972
Project: 82972
Buggy source:
private static void logSerializableTypes(TreeLogger logger,JType[] types){
  TreeLogger localLogger=logger.branch(TreeLogger.DEBUG,"String_Node_Str" + types.length + "String_Node_Str"+ ((types.length == 1) ? "String_Node_Str" : "String_Node_Str"),null);
  for (int i=0; i < types.length; ++i) {
    localLogger.branch(TreeLogger.DEBUG,types[i].getParameterizedQualifiedSourceName(),null);
  }
}

Fixed version (ground truth):
private static void logSerializableTypes(TreeLogger logger,Set<JClassType> fieldSerializableTypes){
  TreeLogger localLogger=logger.branch(TreeLogger.DEBUG,"String_Node_Str" + fieldSerializableTypes.size() + "String_Node_Str"+ ((fieldSerializableTypes.size() == 1) ? "String_Node_Str" : "String_Node_Str"),null);
  for (  JClassType fieldSerializableType : fieldSerializableTypes) {
    localLogger.branch(TreeLogger.DEBUG,fieldSerializableType.getParameterizedQualifiedSourceName(),null);
  }
}
Program: 82975
Project: 82975
Buggy source:
public int compare(JType t1,JType t2){
  return t1.getParameterizedQualifiedSourceName().compareTo(t2.getParameterizedQualifiedSourceName());
}

Fixed version (ground truth):
public int compare(JField f1,JField f2){
  return f1.getName().compareTo(f2.getName());
}
Program: 82976
Project: 82976
Buggy source:
public SerializableTypeOracleImpl(TypeOracle typeOracle,JClassType[] serializableTypes,Set<JClassType> possiblyInstantiatedTypes){
  serializableTypesSet=new TreeSet<JClassType>(TYPE_COMPARATOR);
  serializableTypesSet.addAll(Arrays.asList(serializableTypes));
  this.typeOracle=typeOracle;
  this.possiblyInstantiatedTypes=possiblyInstantiatedTypes;
}

Fixed version (ground truth):
public SerializableTypeOracleImpl(TypeOracle typeOracle,Set<JClassType> serializableTypes,Set<JClassType> possiblyInstantiatedTypes){
  serializableTypesSet=serializableTypes;
  this.typeOracle=typeOracle;
  this.possiblyInstantiatedTypes=possiblyInstantiatedTypes;
}
Program: 82977
Project: 82977
Buggy source:
@Override public String getPurpose(){
  return "String_Node_Str" + "String_Node_Str";
}

Fixed version (ground truth):
@Override public String getPurpose(){
  return "String_Node_Str";
}
Program: 82979
Project: 82979
Buggy source:
protected boolean run(){
  try {
    createLocalizable(fullInterfaceName,outDir,eclipse,createMessagesInterface,overwrite,ignore);
    return true;
  }
 catch (  IOException e) {
    System.err.println(e.getClass().getName() + "String_Node_Str" + e.getMessage());
    return false;
  }
}

Fixed version (ground truth):
protected boolean run(){
  try {
    createLocalizable(fullInterfaceName,outDir,eclipse,overwrite,ignore,chooser.getArgValue());
    return true;
  }
 catch (  IOException e) {
    System.err.println(e.getClass().getName() + "String_Node_Str" + e.getMessage());
    return false;
  }
}
Program: 82980
Project: 82980
Buggy source:
protected I18NCreator(){
  registerHandler(new ArgHandlerEclipse(){
    @Override public String getPurpose(){
      return "String_Node_Str";
    }
    @Override public boolean setString(    String str){
      eclipse=str;
      return true;
    }
  }
);
  registerHandler(new ArgHandlerOutDir(){
    @Override public void setDir(    File dir){
      outDir=dir;
    }
  }
);
  registerHandler(new ArgHandlerOverwrite(){
    @Override public boolean setFlag(){
      if (ignore) {
        System.err.println("String_Node_Str");
        return false;
      }
      overwrite=true;
      return true;
    }
  }
);
  registerHandler(new ArgHandlerFlag(){
    @Override public String getPurpose(){
      return "String_Node_Str" + "String_Node_Str";
    }
    @Override public String getTag(){
      return "String_Node_Str";
    }
    @Override public boolean setFlag(){
      createMessagesInterface=true;
      return true;
    }
  }
);
  registerHandler(new ArgHandlerIgnore(){
    @Override public boolean setFlag(){
      if (overwrite) {
        System.err.println("String_Node_Str");
        return false;
      }
      ignore=true;
      return true;
    }
  }
);
  registerHandler(new ArgHandlerClassName());
}

Fixed version (ground truth):
protected I18NCreator(){
  registerHandler(new ArgHandlerEclipse(){
    @Override public String getPurpose(){
      return "String_Node_Str";
    }
    @Override public boolean setString(    String str){
      eclipse=str;
      return true;
    }
  }
);
  registerHandler(new ArgHandlerOutDir(){
    @Override public void setDir(    File dir){
      outDir=dir;
    }
  }
);
  registerHandler(new ArgHandlerOverwrite(){
    @Override public boolean setFlag(){
      if (ignore) {
        System.err.println("String_Node_Str");
        return false;
      }
      overwrite=true;
      return true;
    }
  }
);
  chooser=new ArgHandlerValueChooser();
  registerHandler(chooser.getConstantsWithLookupArgHandler());
  registerHandler(chooser.getMessagesArgHandler());
  registerHandler(new ArgHandlerIgnore(){
    @Override public boolean setFlag(){
      if (overwrite) {
        System.err.println("String_Node_Str");
        return false;
      }
      ignore=true;
      return true;
    }
  }
);
  registerHandler(new ArgHandlerClassName());
}
Program: 82981
Project: 82981
Buggy source:
private boolean execImpl(){
  boolean madeChanges=false;
  while (true) {
    RescueVisitor rescuer=new RescueVisitor();
    rescuer.rescue(program.getIndexedType("String_Node_Str"),true,true);
    for (    JReferenceType type : program.codeGenTypes) {
      rescuer.rescue(type,true,saveCodeGenTypes);
    }
    for (    JMethod method : program.entryMethods) {
      rescuer.rescue(method);
    }
    UpRefVisitor upRefer=new UpRefVisitor(rescuer);
    do {
      rescuer.commitInstantiatedTypes();
      upRefer.accept(program);
    }
 while (upRefer.didRescue());
    PruneVisitor pruner=new PruneVisitor();
    pruner.accept(program);
    if (!pruner.didChange()) {
      break;
    }
    CleanupRefsVisitor cleaner=new CleanupRefsVisitor();
    cleaner.accept(program);
    referencedTypes.clear();
    referencedNonTypes.clear();
    removedMethodParamsMap.clear();
    madeChanges=true;
  }
  return madeChanges;
}

Fixed version (ground truth):
private boolean execImpl(){
  boolean madeChanges=false;
  while (true) {
    RescueVisitor rescuer=new RescueVisitor();
    rescuer.rescue(program.getIndexedType("String_Node_Str"),true,true);
    for (    JReferenceType type : program.codeGenTypes) {
      rescuer.rescue(type,true,saveCodeGenTypes);
    }
    for (    JMethod method : program.entryMethods) {
      rescuer.rescue(method);
    }
    UpRefVisitor upRefer=new UpRefVisitor(rescuer);
    do {
      rescuer.commitInstantiatedTypes();
      upRefer.accept(program);
    }
 while (upRefer.didRescue());
    PruneVisitor pruner=new PruneVisitor();
    pruner.accept(program);
    if (!pruner.didChange()) {
      break;
    }
    CleanupRefsVisitor cleaner=new CleanupRefsVisitor();
    cleaner.accept(program);
    referencedTypes.clear();
    referencedNonTypes.clear();
    methodToOriginalParamsMap.clear();
    madeChanges=true;
  }
  return madeChanges;
}
Program: 82982
Project: 82982
Buggy source:
/** 
 * Replace the current input element with a new one.
 * @param elem the new input element
 */
protected void replaceInputElement(Element elem){
  int tabIndex=getTabIndex();
  boolean checked=isChecked();
  boolean enabled=isEnabled();
  String uid=DOM.getElementProperty(inputElem,"String_Node_Str");
  String accessKey=DOM.getElementProperty(inputElem,"String_Node_Str");
  setChecked(false);
  DOM.setElementProperty(inputElem,"String_Node_Str","String_Node_Str");
  DOM.setElementProperty(inputElem,"String_Node_Str","String_Node_Str");
  DOM.removeChild(getElement(),inputElem);
  DOM.insertChild(getElement(),elem,0);
  inputElem=elem;
  DOM.sinkEvents(inputElem,DOM.getEventsSunk(this.getElement()));
  DOM.setEventListener(inputElem,this);
  DOM.setElementProperty(inputElem,"String_Node_Str",uid);
  if (accessKey != "String_Node_Str") {
    DOM.setElementProperty(inputElem,"String_Node_Str",accessKey);
  }
  setTabIndex(tabIndex);
  setChecked(checked);
  setEnabled(enabled);
}

Fixed version (ground truth):
/** 
 * Replace the current input element with a new one.
 * @param elem the new input element
 */
protected void replaceInputElement(Element elem){
  int tabIndex=getTabIndex();
  boolean checked=isChecked();
  boolean enabled=isEnabled();
  String uid=DOM.getElementProperty(inputElem,"String_Node_Str");
  String accessKey=DOM.getElementProperty(inputElem,"String_Node_Str");
  setChecked(false);
  DOM.setElementProperty(inputElem,"String_Node_Str","String_Node_Str");
  DOM.setElementProperty(inputElem,"String_Node_Str","String_Node_Str");
  DOM.setEventListener(inputElem,null);
  DOM.removeChild(getElement(),inputElem);
  DOM.insertChild(getElement(),elem,0);
  DOM.sinkEvents(elem,DOM.getEventsSunk(inputElem));
  DOM.sinkEvents(inputElem,0);
  inputElem=elem;
  DOM.setElementProperty(inputElem,"String_Node_Str",uid);
  if (accessKey != "String_Node_Str") {
    DOM.setElementProperty(inputElem,"String_Node_Str",accessKey);
  }
  setTabIndex(tabIndex);
  setChecked(checked);
  setEnabled(enabled);
  if (isAttached()) {
    DOM.setEventListener(inputElem,this);
  }
}
Program: 82983
Project: 82983
Buggy source:
/** 
 * Sets the currently selected index. <p> Note that setting the selected index programmatically does <em>not</em> cause the   {@link ChangeListener#onChange(Widget)} event to be fired.</p>
 * @param index the index of the item to be selected
 */
public void setSelectedIndex(int index){
  DOM.setElementPropertyInt(getElement(),"String_Node_Str",index);
}

Fixed version (ground truth):
/** 
 * Sets the currently selected index. After calling this method, only the specified item in the list will remain selected.  For a ListBox with multiple selection enabled, see  {@link #setItemSelected(int,boolean)} to select multiple items at a time.<p> Note that setting the selected index programmatically does <em>not</em> cause the  {@link ChangeListener#onChange(Widget)} event to be fired.</p>
 * @param index the index of the item to be selected
 */
public void setSelectedIndex(int index){
  DOM.setElementPropertyInt(getElement(),"String_Node_Str",index);
}
Program: 82984
Project: 82984
Buggy source:
public static Test suite(){
  TestSuite suite=new TestSuite("String_Node_Str");
  suite.addTestSuite(AutoboxTest.class);
  suite.addTestSuite(ClassCastTestCase.class);
  suite.addTestSuite(ClassObjectTest.class);
  suite.addTestSuite(CompilerTest.class);
  suite.addTestSuite(Coverage.class);
  suite.addTestSuite(EnhancedForLoopTest.class);
  suite.addTestSuite(EnumsTest.class);
  suite.addTestSuite(HostedTest.class);
  suite.addTestSuite(InnerClassTest.class);
  suite.addTestSuite(InnerOuterSuperTest.class);
  suite.addTestSuite(MemberShadowingTest.class);
  suite.addTestSuite(MethodBindTest.class);
  suite.addTestSuite(MethodCallTest.class);
  suite.addTestSuite(MethodInterfaceTest.class);
  suite.addTestSuite(MiscellaneousTest.class);
  suite.addTestSuite(NativeLongTest.class);
  suite.addTestSuite(TestBlankInterface.class);
  suite.addTestSuite(VarargsTest.class);
  return suite;
}

Fixed version (ground truth):
public static Test suite(){
  TestSuite suite=new TestSuite("String_Node_Str");
  suite.addTestSuite(AutoboxTest.class);
  suite.addTestSuite(ClassCastTest.class);
  suite.addTestSuite(ClassObjectTest.class);
  suite.addTestSuite(CompilerTest.class);
  suite.addTestSuite(CoverageTest.class);
  suite.addTestSuite(EnhancedForLoopTest.class);
  suite.addTestSuite(EnumsTest.class);
  suite.addTestSuite(HostedTest.class);
  suite.addTestSuite(InnerClassTest.class);
  suite.addTestSuite(InnerOuterSuperTest.class);
  suite.addTestSuite(MemberShadowingTest.class);
  suite.addTestSuite(MethodBindTest.class);
  suite.addTestSuite(MethodCallTest.class);
  suite.addTestSuite(MethodInterfaceTest.class);
  suite.addTestSuite(MiscellaneousTest.class);
  suite.addTestSuite(NativeLongTest.class);
  suite.addTestSuite(BlankInterfaceTest.class);
  suite.addTestSuite(VarargsTest.class);
  return suite;
}
Program: 82985
Project: 82985
Buggy source:
public void testGenerics(){
  String s=genericSimple("String_Node_Str");
  assertEquals("String_Node_Str",s);
  String v=genericGet(s);
  assertEquals("String_Node_Str",v);
  List<String> list=new ArrayList<String>();
  list.add("String_Node_Str");
  Object obj=genericWildcard(list);
  assertTrue(obj instanceof String);
  assertEquals("String_Node_Str",obj);
  obj=genericSubtype("String_Node_Str");
  List<Object> list2=genericSubtype(new GenericListTest());
  assertTrue(list2 instanceof GenericListTest);
  assertEquals(42,list2.size());
  assertEquals(list2,list2.get(0));
  String[] array=new String[]{"String_Node_Str","String_Node_Str"};
  String[] ret=genericArray(array);
  assertEquals(2,ret.length);
  assertEquals("String_Node_Str",ret[1]);
  assertTrue(Arrays.deepEquals(array,ret));
}

Fixed version (ground truth):
public void testGenerics(){
  String s=genericSimple("String_Node_Str");
  assertEquals("String_Node_Str",s);
  String v=genericGet(s);
  assertEquals("String_Node_Str",v);
  List<String> list=new ArrayList<String>();
  list.add("String_Node_Str");
  Object obj=genericWildcard(list);
  assertTrue(obj instanceof String);
  assertEquals("String_Node_Str",obj);
  obj=genericSubtype("String_Node_Str");
  List<Object> list2=genericSubtype(new TestGenericList());
  assertTrue(list2 instanceof TestGenericList);
  assertEquals(42,list2.size());
  assertEquals(list2,list2.get(0));
  String[] array=new String[]{"String_Node_Str","String_Node_Str"};
  String[] ret=genericArray(array);
  assertEquals(2,ret.length);
  assertEquals("String_Node_Str",ret[1]);
  assertTrue(Arrays.deepEquals(array,ret));
}