nus-yam/ex-repair huggingface dataset:
Program: 82003
Project: 82003
Buggy source:
/** 
 * Get the HTML representation of an image.
 * @param res the {@link ImageResource} to render as HTML
 * @return the rendered HTML
 */
private SafeHtml getImageHtml(ImageResource res){
  return SafeHtmlUtils.fromTrustedString("String_Node_Str" + (LocaleInfo.getCurrentLocale().isRTL() ? "String_Node_Str" : "String_Node_Str") + "String_Node_Str"+ res.getWidth()+ "String_Node_Str"+ res.getURL()+ "String_Node_Str");
}

Fixed version (ground truth):
/** 
 * Get the HTML representation of an image.
 * @param res the {@link ImageResource} to render as HTML
 * @return the rendered HTML
 */
private SafeHtml getImageHtml(ImageResource res){
  AbstractImagePrototype proto=AbstractImagePrototype.create(res);
  SafeHtml image=SafeHtmlUtils.fromTrustedString(proto.getHTML());
  return template.imageWrapper((LocaleInfo.getCurrentLocale().isRTL() ? "String_Node_Str" : "String_Node_Str"),res.getWidth(),res.getHeight(),image);
}
Program: 82004
Project: 82004
Buggy source:
/** 
 * Get the HTML representation of an image.
 * @param res the {@link ImageResource} to render as HTML
 * @param isTop true if the image is for a top level element.
 * @return the rendered HTML
 */
private SafeHtml getImageHtml(ImageResource res,boolean isTop){
  StringBuilder classesBuilder=new StringBuilder(style.cellTreeItemImage());
  if (isTop) {
    classesBuilder.append("String_Node_Str").append(style.cellTreeTopItemImage());
  }
  String direction;
  if (LocaleInfo.getCurrentLocale().isRTL()) {
    direction="String_Node_Str";
  }
 else {
    direction="String_Node_Str";
  }
  return template.image(classesBuilder.toString(),direction,res.getHeight(),res.getWidth(),res.getURL());
}

Fixed version (ground truth):
/** 
 * Get the HTML representation of an image.
 * @param res the {@link ImageResource} to render as HTML
 * @param isTop true if the image is for a top level element.
 * @return the rendered HTML
 */
private SafeHtml getImageHtml(ImageResource res,boolean isTop){
  StringBuilder classesBuilder=new StringBuilder(style.cellTreeItemImage());
  if (isTop) {
    classesBuilder.append("String_Node_Str").append(style.cellTreeTopItemImage());
  }
  String direction;
  if (LocaleInfo.getCurrentLocale().isRTL()) {
    direction="String_Node_Str";
  }
 else {
    direction="String_Node_Str";
  }
  AbstractImagePrototype proto=AbstractImagePrototype.create(res);
  SafeHtml image=SafeHtmlUtils.fromTrustedString(proto.getHTML());
  return template.imageWrapper(classesBuilder.toString(),direction,res.getWidth(),res.getHeight(),image);
}
Program: 82005
Project: 82005
Buggy source:
public void onWindowClosing(ClosingEvent event){
  StringBuilder sb=new StringBuilder();
  for (  EntityProxyId id : favoriteIds) {
    sb.append(id.asString()).append("String_Node_Str");
  }
  Cookies.setCookie(COOKIE_NAME,sb.toString());
}

Fixed version (ground truth):
public void onWindowClosing(ClosingEvent event){
  StringBuilder sb=new StringBuilder();
  for (  EntityProxyId id : favoriteIds) {
    sb.append(requestFactory.getHistoryToken(id)).append("String_Node_Str");
  }
  Cookies.setCookie(COOKIE_NAME,sb.toString());
}
Program: 82006
Project: 82006
Buggy source:
public FavoritesManager(RequestFactory requestFactory){
  String cookie=Cookies.getCookie(COOKIE_NAME);
  if (cookie != null) {
    try {
      for (      String fragment : cookie.split("String_Node_Str")) {
        if (fragment.length() == 0) {
          continue;
        }
        EntityProxyId id=requestFactory.getProxyId(fragment);
        favoriteIds.add(id);
      }
    }
 catch (    NumberFormatException e) {
      favoriteIds.clear();
    }
  }
  Window.addWindowClosingHandler(new ClosingHandler(){
    public void onWindowClosing(    ClosingEvent event){
      StringBuilder sb=new StringBuilder();
      for (      EntityProxyId id : favoriteIds) {
        sb.append(id.asString()).append("String_Node_Str");
      }
      Cookies.setCookie(COOKIE_NAME,sb.toString());
    }
  }
);
}

Fixed version (ground truth):
public FavoritesManager(final RequestFactory requestFactory){
  String cookie=Cookies.getCookie(COOKIE_NAME);
  if (cookie != null) {
    try {
      for (      String fragment : cookie.split("String_Node_Str")) {
        if (fragment.length() == 0) {
          continue;
        }
        EntityProxyId id=requestFactory.getProxyId(fragment);
        favoriteIds.add(id);
      }
    }
 catch (    NumberFormatException e) {
      favoriteIds.clear();
    }
  }
  Window.addWindowClosingHandler(new ClosingHandler(){
    public void onWindowClosing(    ClosingEvent event){
      StringBuilder sb=new StringBuilder();
      for (      EntityProxyId id : favoriteIds) {
        sb.append(requestFactory.getHistoryToken(id)).append("String_Node_Str");
      }
      Cookies.setCookie(COOKIE_NAME,sb.toString());
    }
  }
);
}
Program: 82007
Project: 82007
Buggy source:
@UiHandler("String_Node_Str") void onSave(ClickEvent e){
  final RequestObject<Void> request=editorDriver.<Void>flush();
  if (editorDriver.hasErrors()) {
    dialog.setText("String_Node_Str");
    return;
  }
  request.fire(new Receiver<Void>(){
    @Override public void onSuccess(    Void response,    Set<SyncResult> syncResults){
      dialog.hide();
    }
    @Override public void onViolation(    Set<Violation> errors){
      dialog.setText("String_Node_Str");
      editorDriver.setViolations(errors);
    }
  }
);
}

Fixed version (ground truth):
@UiHandler("String_Node_Str") void onSave(ClickEvent e){
  final RequestObject<Void> request=editorDriver.<Void>flush();
  if (editorDriver.hasErrors()) {
    dialog.setText("String_Node_Str");
    return;
  }
  request.fire(new Receiver<Void>(){
    @Override public void onSuccess(    Void response){
      dialog.hide();
    }
    @Override public void onViolation(    Set<Violation> errors){
      dialog.setText("String_Node_Str");
      editorDriver.setViolations(errors);
    }
  }
);
}
Program: 82008
Project: 82008
Buggy source:
private void edit(){
  ProxyRequest<PersonProxy> fetchRequest=requestFactory.personRequest().findPerson(person.getId());
  editorDriver=GWT.create(Driver.class);
  editorDriver.initialize(null,requestFactory,personEditor);
  fetchRequest.with(editorDriver.getPaths());
  fetchRequest.fire(new Receiver<PersonProxy>(){
    public void onSuccess(    PersonProxy person,    Set<SyncResult> syncResults){
      editorDriver.edit(person,requestFactory.personRequest().persist(person));
      personEditor.focus();
    }
  }
);
  favorite.setValue(manager.isFavorite(person),false);
  dialog.center();
}

Fixed version (ground truth):
private void edit(){
  ProxyRequest<PersonProxy> fetchRequest=requestFactory.personRequest().findPerson(person.getId());
  editorDriver=GWT.create(Driver.class);
  editorDriver.initialize(null,requestFactory,personEditor);
  fetchRequest.with(editorDriver.getPaths());
  fetchRequest.fire(new Receiver<PersonProxy>(){
    @Override public void onSuccess(    PersonProxy person){
      editorDriver.edit(person,requestFactory.personRequest().persist(person));
      personEditor.focus();
    }
  }
);
  favorite.setValue(manager.isFavorite(person),false);
  dialog.center();
}
Program: 82009
Project: 82009
Buggy source:
public void onSuccess(PersonProxy person,Set<SyncResult> syncResults){
  editorDriver.edit(person,requestFactory.personRequest().persist(person));
  personEditor.focus();
}

Fixed version (ground truth):
@Override public void onSuccess(PersonProxy person){
  editorDriver.edit(person,requestFactory.personRequest().persist(person));
  personEditor.focus();
}
Program: 82010
Project: 82010
Buggy source:
@Override protected void onLoad(){
  subscription=manager.addMarkFavoriteHandler(new MarkFavoriteEvent.Handler(){
    public void onMarkFavorite(    MarkFavoriteEvent event){
      FavoritesWidget.this.onMarkFavorite(event);
    }
  }
);
  for (  EntityProxyId id : manager.getFavoriteIds()) {
    factory.find(id).fire(new Receiver<EntityProxy>(){
      public void onSuccess(      EntityProxy response,      Set<SyncResult> syncResults){
        PersonProxy person=(PersonProxy)response;
        onMarkFavorite(new MarkFavoriteEvent(person,true));
      }
    }
);
  }
}

Fixed version (ground truth):
@Override protected void onLoad(){
  subscription=manager.addMarkFavoriteHandler(new MarkFavoriteEvent.Handler(){
    public void onMarkFavorite(    MarkFavoriteEvent event){
      FavoritesWidget.this.onMarkFavorite(event);
    }
  }
);
  for (  EntityProxyId id : manager.getFavoriteIds()) {
    factory.find(id).fire(new Receiver<EntityProxy>(){
      @Override public void onSuccess(      EntityProxy response){
        PersonProxy person=(PersonProxy)response;
        onMarkFavorite(new MarkFavoriteEvent(person,true));
      }
    }
);
  }
}
Program: 82011
Project: 82011
Buggy source:
public void onSuccess(EntityProxy response,Set<SyncResult> syncResults){
  PersonProxy person=(PersonProxy)response;
  onMarkFavorite(new MarkFavoriteEvent(person,true));
}

Fixed version (ground truth):
@Override public void onSuccess(EntityProxy response){
  PersonProxy person=(PersonProxy)response;
  onMarkFavorite(new MarkFavoriteEvent(person,true));
}
Program: 82012
Project: 82012
Buggy source:
private void fetch(final int start){
  requestFactory.schoolCalendarRequest().getPeople(start,numRows).fire(new Receiver<List<PersonProxy>>(){
    public void onSuccess(    List<PersonProxy> response,    Set<SyncResult> syncResults){
      int responses=response.size();
      table.setRowData(start,response);
      if (!table.isRowCountExact()) {
        table.setRowCount(start + responses,responses < numRows);
      }
    }
  }
);
}

Fixed version (ground truth):
private void fetch(final int start){
  requestFactory.schoolCalendarRequest().getPeople(start,numRows).fire(new Receiver<List<PersonProxy>>(){
    @Override public void onSuccess(    List<PersonProxy> response){
      int responses=response.size();
      table.setRowData(start,response);
      if (!table.isRowCountExact()) {
        table.setRowCount(start + responses,responses < numRows);
      }
    }
  }
);
}
Program: 82013
Project: 82013
Buggy source:
void onPersonChanged(EntityProxyChange<PersonProxy> event){
  if (WriteOperation.UPDATE.equals(event.getWriteOperation())) {
    PersonProxy record=event.getProxy();
    int displayOffset=offsetOf(record);
    if (displayOffset != -1) {
      requestFactory.personRequest().findPerson(record.getId()).fire(new Receiver<PersonProxy>(){
        public void onSuccess(        PersonProxy response,        Set<SyncResult> syncResults){
          int offset=offsetOf(response);
          if (offset != -1) {
            table.setRowData(table.getPageStart() + offset,Collections.singletonList(response));
          }
        }
      }
);
    }
  }
}

Fixed version (ground truth):
void onPersonChanged(EntityProxyChange<PersonProxy> event){
  if (WriteOperation.UPDATE.equals(event.getWriteOperation())) {
    PersonProxy record=event.getProxy();
    int displayOffset=offsetOf(record);
    if (displayOffset != -1) {
      requestFactory.personRequest().findPerson(record.getId()).fire(new Receiver<PersonProxy>(){
        @Override public void onSuccess(        PersonProxy response){
          int offset=offsetOf(response);
          if (offset != -1) {
            table.setRowData(table.getPageStart() + offset,Collections.singletonList(response));
          }
        }
      }
);
    }
  }
}
Program: 82014
Project: 82014
Buggy source:
public void onSuccess(List<PersonProxy> response,Set<SyncResult> syncResults){
  int responses=response.size();
  table.setRowData(start,response);
  if (!table.isRowCountExact()) {
    table.setRowCount(start + responses,responses < numRows);
  }
}

Fixed version (ground truth):
@Override public void onSuccess(List<PersonProxy> response){
  int responses=response.size();
  table.setRowData(start,response);
  if (!table.isRowCountExact()) {
    table.setRowCount(start + responses,responses < numRows);
  }
}
Program: 82015
Project: 82015
Buggy source:
/** 
 * Request the expenses.
 */
private void requestExpenses(){
  refreshTimer.cancel();
  lastReceiver=new Receiver<List<ExpenseProxy>>(){
    @Override public void onSuccess(    List<ExpenseProxy> newValues,    Set<SyncResult> syncResults){
      if (this == lastReceiver) {
        List<ExpenseProxy> list=new ArrayList<ExpenseProxy>(newValues);
        if (lastComparator != null) {
          sortExpenses(list,lastComparator);
        }
        items.setList(list);
        refreshCost();
        boolean isInitialData=knownExpenseKeys == null;
        if (knownExpenseKeys == null) {
          knownExpenseKeys=new HashMap<Object,ExpenseProxy>();
        }
        for (        ExpenseProxy value : newValues) {
          Object key=items.getKey(value);
          if (!isInitialData) {
            ExpenseProxy existing=knownExpenseKeys.get(key);
            if (existing == null || !value.getAmount().equals(existing.getAmount()) || !value.getDescription().equals(existing.getDescription()) || !value.getCategory().equals(existing.getCategory())) {
              (new PhaseAnimation.CellTablePhaseAnimation<ExpenseProxy>(table,value,items)).run();
            }
          }
          knownExpenseKeys.put(key,value);
        }
      }
      refreshTimer.schedule(REFRESH_INTERVAL);
    }
  }
;
  expensesRequestFactory.expenseRequest().findExpensesByReport(report.getId()).with(getExpenseColumns()).fire(lastReceiver);
}

Fixed version (ground truth):
/** 
 * Request the expenses.
 */
private void requestExpenses(){
  refreshTimer.cancel();
  lastReceiver=new Receiver<List<ExpenseProxy>>(){
    @Override public void onSuccess(    List<ExpenseProxy> newValues){
      if (this == lastReceiver) {
        List<ExpenseProxy> list=new ArrayList<ExpenseProxy>(newValues);
        if (lastComparator != null) {
          sortExpenses(list,lastComparator);
        }
        items.setList(list);
        refreshCost();
        boolean isInitialData=knownExpenseKeys == null;
        if (knownExpenseKeys == null) {
          knownExpenseKeys=new HashMap<Object,ExpenseProxy>();
        }
        for (        ExpenseProxy value : newValues) {
          Object key=items.getKey(value);
          if (!isInitialData) {
            ExpenseProxy existing=knownExpenseKeys.get(key);
            if (existing == null || !value.getAmount().equals(existing.getAmount()) || !value.getDescription().equals(existing.getDescription()) || !value.getCategory().equals(existing.getCategory())) {
              (new PhaseAnimation.CellTablePhaseAnimation<ExpenseProxy>(table,value,items)).run();
            }
          }
          knownExpenseKeys.put(key,value);
        }
      }
      refreshTimer.schedule(REFRESH_INTERVAL);
    }
  }
;
  expensesRequestFactory.expenseRequest().findExpensesByReport(report.getId()).with(getExpenseColumns()).fire(lastReceiver);
}
Program: 82016
Project: 82016
Buggy source:
/** 
 * Save the notes that the user entered in the notes box.
 */
private void saveNotes(){
  final String pendingNotes=notesBox.getText();
  if (pendingNotes.equals(report.getNotes())) {
    setNotesEditState(false,false,pendingNotes);
    return;
  }
  setNotesEditState(false,true,pendingNotes);
  RequestObject<Void> editRequest=expensesRequestFactory.reportRequest().persist(report);
  ReportProxy editableReport=editRequest.edit(report);
  editableReport.setNotes(pendingNotes);
  editRequest.fire(new Receiver<Void>(){
    @Override public void onSuccess(    Void ignore,    Set<SyncResult> response){
      String errorMessage=getErrorMessageFromSync(response);
      if (errorMessage.length() > 0) {
        showErrorPopup(errorMessage);
        setNotesEditState(false,false,report.getNotes());
      }
    }
  }
);
}

Fixed version (ground truth):
/** 
 * Save the notes that the user entered in the notes box.
 */
private void saveNotes(){
  final String pendingNotes=notesBox.getText();
  if (pendingNotes.equals(report.getNotes())) {
    setNotesEditState(false,false,pendingNotes);
    return;
  }
  setNotesEditState(false,true,pendingNotes);
  RequestObject<Void> editRequest=expensesRequestFactory.reportRequest().persist(report);
  ReportProxy editableReport=editRequest.edit(report);
  editableReport.setNotes(pendingNotes);
  editRequest.fire(new Receiver<Void>(){
    @Override public void onSuccess(    Void ignore){
    }
  }
);
}
Program: 82017
Project: 82017
Buggy source:
public void onReportChanged(EntityProxyChange<ReportProxy> event){
  ReportProxy changed=event.getProxy();
  if (report != null && report.getId().equals(changed.getId())) {
    expensesRequestFactory.reportRequest().findReport(report.getId()).fire(new Receiver<ReportProxy>(){
      @Override public void onSuccess(      ReportProxy response,      Set<SyncResult> syncResults){
        report=response;
        setNotesEditState(false,false,response.getNotes());
      }
    }
);
  }
}

Fixed version (ground truth):
public void onReportChanged(EntityProxyChange<ReportProxy> event){
  ReportProxy changed=event.getProxy();
  if (report != null && report.getId().equals(changed.getId())) {
    expensesRequestFactory.reportRequest().findReport(report.getId()).fire(new Receiver<ReportProxy>(){
      @Override public void onSuccess(      ReportProxy response){
        report=response;
        setNotesEditState(false,false,response.getNotes());
      }
    }
);
  }
}
Program: 82018
Project: 82018
Buggy source:
private void updateExpenseRecord(final ExpenseProxy record,String approval,String reasonDenied){
  if (Expenses.Approval.APPROVED.is(approval) && !Expenses.Approval.APPROVED.is(record.getApproval())) {
    double amount=record.getAmount();
    if (amount + totalApproved > MAX_COST) {
      syncCommit(record,"String_Node_Str" + MAX_COST + "String_Node_Str");
      return;
    }
  }
  RequestObject<Void> editRequest=expensesRequestFactory.expenseRequest().persist(record);
  ExpenseProxy editableRecord=editRequest.edit(record);
  editableRecord.setApproval(approval);
  editableRecord.setReasonDenied(reasonDenied);
  editRequest.fire(new Receiver<Void>(){
    @Override public void onSuccess(    Void ignore,    Set<SyncResult> response){
      String errorMessage=getErrorMessageFromSync(response);
      if (errorMessage.length() > 0) {
        syncCommit(record,errorMessage.length() > 0 ? errorMessage : null);
      }
    }
  }
);
}

Fixed version (ground truth):
private void updateExpenseRecord(final ExpenseProxy record,String approval,String reasonDenied){
  if (Expenses.Approval.APPROVED.is(approval) && !Expenses.Approval.APPROVED.is(record.getApproval())) {
    double amount=record.getAmount();
    if (amount + totalApproved > MAX_COST) {
      syncCommit(record,"String_Node_Str" + MAX_COST + "String_Node_Str");
      return;
    }
  }
  RequestObject<Void> editRequest=expensesRequestFactory.expenseRequest().persist(record);
  ExpenseProxy editableRecord=editRequest.edit(record);
  editableRecord.setApproval(approval);
  editableRecord.setReasonDenied(reasonDenied);
  editRequest.fire(new Receiver<Void>(){
    @Override public void onSuccess(    Void ignore){
    }
  }
);
}
Program: 82019
Project: 82019
Buggy source:
@Override public void onSuccess(Void ignore,Set<SyncResult> response){
  String errorMessage=getErrorMessageFromSync(response);
  if (errorMessage.length() > 0) {
    syncCommit(record,errorMessage.length() > 0 ? errorMessage : null);
  }
}

Fixed version (ground truth):
@Override public void onSuccess(Void ignore){
}
Program: 82021
Project: 82021
Buggy source:
@Override public void onSuccess(List<ReportProxy> newValues,Set<SyncResult> syncResults){
  if (this == lastDataReceiver) {
    int size=newValues.size();
    if (size < table.getPageSize()) {
      reports.updateRowCount(table.getPageStart() + size,true);
    }
    if (size > 0) {
      reports.updateRowData(table.getPageStart(),newValues);
    }
    boolean isInitialData=knownReportKeys == null;
    if (knownReportKeys == null) {
      knownReportKeys=new HashSet<Object>();
    }
    for (    ReportProxy value : newValues) {
      Object key=reports.getKey(value);
      if (!isInitialData && !knownReportKeys.contains(key)) {
        (new PhaseAnimation.CellTablePhaseAnimation<ReportProxy>(table,value,reports)).run();
      }
      knownReportKeys.add(key);
    }
  }
  refreshTimer.schedule(REFRESH_INTERVAL);
}

Fixed version (ground truth):
@Override public void onSuccess(List<ReportProxy> newValues){
  if (this == lastDataReceiver) {
    int size=newValues.size();
    if (size < table.getPageSize()) {
      reports.updateRowCount(table.getPageStart() + size,true);
    }
    if (size > 0) {
      reports.updateRowData(table.getPageStart(),newValues);
    }
    boolean isInitialData=knownReportKeys == null;
    if (knownReportKeys == null) {
      knownReportKeys=new HashSet<Object>();
    }
    for (    ReportProxy value : newValues) {
      Object key=reports.getKey(value);
      if (!isInitialData && !knownReportKeys.contains(key)) {
        (new PhaseAnimation.CellTablePhaseAnimation<ReportProxy>(table,value,reports)).run();
      }
      knownReportKeys.add(key);
    }
  }
  refreshTimer.schedule(REFRESH_INTERVAL);
}
Program: 82022
Project: 82022
Buggy source:
@Override protected void onRangeChanged(HasData<EmployeeProxy> view){
  Range range=view.getVisibleRange();
  requestFactory.employeeRequest().findEmployeeEntriesByDepartment(department,range.getStart(),range.getLength()).with(getEmployeeMenuProperties()).fire(new Receiver<List<EmployeeProxy>>(){
    @Override public void onSuccess(    List<EmployeeProxy> response,    Set<SyncResult> syncResults){
      updateRowData(0,response);
    }
  }
);
}

Fixed version (ground truth):
@Override protected void onRangeChanged(HasData<EmployeeProxy> view){
  Range range=view.getVisibleRange();
  requestFactory.employeeRequest().findEmployeeEntriesByDepartment(department,range.getStart(),range.getLength()).with(getEmployeeMenuProperties()).fire(new Receiver<List<EmployeeProxy>>(){
    @Override public void onSuccess(    List<EmployeeProxy> response){
      updateRowData(0,response);
    }
  }
);
}
Program: 82023
Project: 82023
Buggy source:
@Override public void addDataDisplay(HasData<EmployeeProxy> display){
  super.addDataDisplay(display);
  requestFactory.employeeRequest().countEmployeesByDepartment(department).fire(new Receiver<Long>(){
    @Override public void onSuccess(    Long response,    Set<SyncResult> syncResults){
      updateRowCount(response.intValue(),true);
    }
  }
);
}

Fixed version (ground truth):
@Override public void addDataDisplay(HasData<EmployeeProxy> display){
  super.addDataDisplay(display);
  requestFactory.employeeRequest().countEmployeesByDepartment(department).fire(new Receiver<Long>(){
    @Override public void onSuccess(    Long response){
      updateRowCount(response.intValue(),true);
    }
  }
);
}
Program: 82024
Project: 82024
Buggy source:
@Override public void onSuccess(List<EmployeeProxy> response,Set<SyncResult> syncResults){
  updateRowData(0,response);
}

Fixed version (ground truth):
@Override public void onSuccess(List<EmployeeProxy> response){
  updateRowData(0,response);
}
Program: 82026
Project: 82026
Buggy source:
@Override public void onSuccess(UserInformationProxy userInformationRecord,Set<SyncResult> syncResults){
  login.setUserInformation(userInformationRecord);
}

Fixed version (ground truth):
@Override public void onSuccess(UserInformationProxy userInformationRecord){
  login.setUserInformation(userInformationRecord);
}
Program: 82027
Project: 82027
Buggy source:
/** 
 * Gets the container element associated with this layer. <p> This is the element that sits between the parent and child elements. It is normally necessary to operate on this element only when you need to modify certain CSS properties, such as visibility. </p>
 * @return the container element
 */
public Element getContainerElement(){
  return container;
}

Fixed version (ground truth):
/** 
 * Gets the container element associated with this layer. <p> This is the element that sits between the parent and child elements. It is normally necessary to operate on this element only when you need to modify CSS properties that are not directly modeled by the Layer class. </p>
 * @return the container element
 */
public Element getContainerElement(){
  return container;
}
Program: 82028
Project: 82028
Buggy source:
public void layout(Layer layer){
  Style style=layer.container.getStyle();
  style.setProperty("String_Node_Str",layer.setLeft ? (layer.left + layer.leftUnit.getType()) : "String_Node_Str");
  style.setProperty("String_Node_Str",layer.setTop ? (layer.top + layer.topUnit.getType()) : "String_Node_Str");
  style.setProperty("String_Node_Str",layer.setRight ? (layer.right + layer.rightUnit.getType()) : "String_Node_Str");
  style.setProperty("String_Node_Str",layer.setBottom ? (layer.bottom + layer.bottomUnit.getType()) : "String_Node_Str");
  style.setProperty("String_Node_Str",layer.setWidth ? (layer.width + layer.widthUnit.getType()) : "String_Node_Str");
  style.setProperty("String_Node_Str",layer.setHeight ? (layer.height + layer.heightUnit.getType()) : "String_Node_Str");
  style=layer.child.getStyle();
switch (layer.hPos) {
case BEGIN:
    style.setLeft(0,Unit.PX);
  style.clearRight();
break;
case END:
style.clearLeft();
style.setRight(0,Unit.PX);
break;
case STRETCH:
style.setLeft(0,Unit.PX);
style.setRight(0,Unit.PX);
break;
}
switch (layer.vPos) {
case BEGIN:
style.setTop(0,Unit.PX);
style.clearBottom();
break;
case END:
style.clearTop();
style.setBottom(0,Unit.PX);
break;
case STRETCH:
style.setTop(0,Unit.PX);
style.setBottom(0,Unit.PX);
break;
}
}

Fixed version (ground truth):
public void layout(Layer layer){
  Style style=layer.container.getStyle();
  if (layer.visible) {
    style.clearDisplay();
  }
 else {
    style.setDisplay(Display.NONE);
  }
  style.setProperty("String_Node_Str",layer.setLeft ? (layer.left + layer.leftUnit.getType()) : "String_Node_Str");
  style.setProperty("String_Node_Str",layer.setTop ? (layer.top + layer.topUnit.getType()) : "String_Node_Str");
  style.setProperty("String_Node_Str",layer.setRight ? (layer.right + layer.rightUnit.getType()) : "String_Node_Str");
  style.setProperty("String_Node_Str",layer.setBottom ? (layer.bottom + layer.bottomUnit.getType()) : "String_Node_Str");
  style.setProperty("String_Node_Str",layer.setWidth ? (layer.width + layer.widthUnit.getType()) : "String_Node_Str");
  style.setProperty("String_Node_Str",layer.setHeight ? (layer.height + layer.heightUnit.getType()) : "String_Node_Str");
  style=layer.child.getStyle();
switch (layer.hPos) {
case BEGIN:
    style.setLeft(0,Unit.PX);
  style.clearRight();
break;
case END:
style.clearLeft();
style.setRight(0,Unit.PX);
break;
case STRETCH:
style.setLeft(0,Unit.PX);
style.setRight(0,Unit.PX);
break;
}
switch (layer.vPos) {
case BEGIN:
style.setTop(0,Unit.PX);
style.clearBottom();
break;
case END:
style.clearTop();
style.setBottom(0,Unit.PX);
break;
case STRETCH:
style.setTop(0,Unit.PX);
style.setBottom(0,Unit.PX);
break;
}
}
Program: 82029
Project: 82029
Buggy source:
@Override public void layout(Layer layer){
  Element elem=layer.getContainerElement();
  setLayer(elem,layer);
}

Fixed version (ground truth):
@Override public void layout(Layer layer){
  Element elem=layer.container;
  Style style=elem.getStyle();
  if (layer.visible) {
    style.clearDisplay();
  }
 else {
    style.setDisplay(Display.NONE);
  }
  setLayer(elem,layer);
}
Program: 82030
Project: 82030
Buggy source:
@Override public void layout(Layer layer){
  Style style=layer.container.getStyle();
  if (layer.setLeft) {
    setValue(layer,"String_Node_Str",layer.left,layer.leftUnit,false,false);
  }
 else {
    style.clearLeft();
  }
  if (layer.setRight) {
    setValue(layer,"String_Node_Str",layer.right,layer.rightUnit,false,false);
  }
 else {
    style.clearRight();
  }
  if (layer.setTop) {
    setValue(layer,"String_Node_Str",layer.top,layer.topUnit,true,false);
  }
 else {
    style.clearTop();
  }
  if (layer.setBottom) {
    setValue(layer,"String_Node_Str",layer.bottom,layer.bottomUnit,true,false);
  }
 else {
    style.clearBottom();
  }
  if (layer.setWidth) {
    setValue(layer,"String_Node_Str",layer.width,layer.widthUnit,false,true);
  }
 else {
    style.clearWidth();
  }
  if (layer.setHeight) {
    setValue(layer,"String_Node_Str",layer.height,layer.heightUnit,true,true);
  }
 else {
    style.clearHeight();
  }
  style=layer.child.getStyle();
switch (layer.hPos) {
case BEGIN:
    style.setLeft(0,Unit.PX);
  style.clearRight();
break;
case END:
style.clearLeft();
style.setRight(0,Unit.PX);
break;
case STRETCH:
style.setLeft(0,Unit.PX);
style.setRight(0,Unit.PX);
break;
}
switch (layer.vPos) {
case BEGIN:
style.setTop(0,Unit.PX);
style.clearBottom();
break;
case END:
style.clearTop();
style.setBottom(0,Unit.PX);
break;
case STRETCH:
style.setTop(0,Unit.PX);
style.setBottom(0,Unit.PX);
break;
}
}

Fixed version (ground truth):
@Override public void layout(Layer layer){
  Style style=layer.container.getStyle();
  setLayer(layer.container,layer);
  if (layer.visible) {
    String oldDisplay=style.getDisplay();
    style.clearDisplay();
    if (oldDisplay.length() > 0) {
      updateVisibility(layer.container);
    }
  }
 else {
    style.setDisplay(Display.NONE);
  }
  if (layer.setLeft) {
    setValue(layer,"String_Node_Str",layer.left,layer.leftUnit,false,false);
  }
 else {
    style.clearLeft();
  }
  if (layer.setRight) {
    setValue(layer,"String_Node_Str",layer.right,layer.rightUnit,false,false);
  }
 else {
    style.clearRight();
  }
  if (layer.setTop) {
    setValue(layer,"String_Node_Str",layer.top,layer.topUnit,true,false);
  }
 else {
    style.clearTop();
  }
  if (layer.setBottom) {
    setValue(layer,"String_Node_Str",layer.bottom,layer.bottomUnit,true,false);
  }
 else {
    style.clearBottom();
  }
  if (layer.setWidth) {
    setValue(layer,"String_Node_Str",layer.width,layer.widthUnit,false,true);
  }
 else {
    style.clearWidth();
  }
  if (layer.setHeight) {
    setValue(layer,"String_Node_Str",layer.height,layer.heightUnit,true,true);
  }
 else {
    style.clearHeight();
  }
  style=layer.child.getStyle();
switch (layer.hPos) {
case BEGIN:
    style.setLeft(0,Unit.PX);
  style.clearRight();
break;
case END:
style.clearLeft();
style.setRight(0,Unit.PX);
break;
case STRETCH:
style.setLeft(0,Unit.PX);
style.setRight(0,Unit.PX);
break;
}
switch (layer.vPos) {
case BEGIN:
style.setTop(0,Unit.PX);
style.clearBottom();
break;
case END:
style.clearTop();
style.setBottom(0,Unit.PX);
break;
case STRETCH:
style.setTop(0,Unit.PX);
style.setBottom(0,Unit.PX);
break;
}
}
Program: 82031
Project: 82031
Buggy source:
/** 
 * Shows or hides the given widget and its layer. This method explicitly calls   {@link UIObject#setVisible(boolean)} on the child widget and ensuresthat its associated layer is shown/hidden.
 * @param child
 * @param visible
 */
public void setWidgetVisible(Widget child,boolean visible){
  assertIsChild(child);
  Element container=getWidgetContainerElement(child);
  setVisible(container,visible);
  child.setVisible(visible);
  animate(0);
}

Fixed version (ground truth):
/** 
 * Shows or hides the given widget and its layer. This method explicitly calls   {@link UIObject#setVisible(boolean)} on the child widget and ensuresthat its associated layer is shown/hidden.
 * @param child
 * @param visible
 */
public void setWidgetVisible(Widget child,boolean visible){
  assertIsChild(child);
  getLayer(child).setVisible(visible);
  child.setVisible(visible);
  animate(0);
}
Program: 82032
Project: 82032
Buggy source:
private void layoutChild(Widget child){
  panel.setWidgetLeftRight(child,0,Unit.PX,0,Unit.PX);
  panel.setWidgetTopBottom(child,barHeight,barUnit,0,Unit.PX);
  panel.getWidgetContainerElement(child).getStyle().setDisplay(Display.NONE);
  child.addStyleName(CONTENT_STYLE);
  child.setVisible(false);
}

Fixed version (ground truth):
private void layoutChild(Widget child){
  panel.setWidgetLeftRight(child,0,Unit.PX,0,Unit.PX);
  panel.setWidgetTopBottom(child,barHeight,barUnit,0,Unit.PX);
  panel.setWidgetVisible(child,false);
  child.addStyleName(CONTENT_STYLE);
  child.setVisible(false);
}
Program: 82033
Project: 82033
Buggy source:
public void execute(){
  assertEquals(128,bar.getOffsetWidth());
  assertEquals(128 - 32,bar.getOffsetHeight());
  finishTest();
}

Fixed version (ground truth):
public void execute(){
  assertTrue(bar.getOffsetWidth() > 0);
  assertTrue(bar.getOffsetHeight() > 0);
  finishTest();
}
Program: 82034
Project: 82034
Buggy source:
protected List<PropertyColumn<EmployeeProxy,?>> getColumns(){
  List<PropertyColumn<EmployeeProxy,?>> columns=new ArrayList<PropertyColumn<EmployeeProxy,?>>();
  columns.add(PropertyColumn.<EmployeeProxy>getStringPropertyColumn("String_Node_Str","String_Node_Str"));
  columns.add(PropertyColumn.<EmployeeProxy>getStringPropertyColumn("String_Node_Str","String_Node_Str"));
  columns.add(PropertyColumn.<EmployeeProxy>getStringPropertyColumn("String_Node_Str","String_Node_Str"));
  columns.add(new PropertyColumn<EmployeeProxy,EmployeeProxy>("String_Node_Str","String_Node_Str",EmployeeRenderer.instance()));
  return columns;
}

Fixed version (ground truth):
protected List<PropertyColumn<EmployeeProxy,?>> getColumns(){
  List<PropertyColumn<EmployeeProxy,?>> columns=new ArrayList<PropertyColumn<EmployeeProxy,?>>();
  columns.add(PropertyColumn.<EmployeeProxy>getStringPropertyColumn("String_Node_Str","String_Node_Str"));
  columns.add(PropertyColumn.<EmployeeProxy>getStringPropertyColumn("String_Node_Str","String_Node_Str"));
  columns.add(PropertyColumn.<EmployeeProxy>getStringPropertyColumn("String_Node_Str","String_Node_Str"));
  columns.add(new PropertyColumn<EmployeeProxy,EmployeeProxy>("String_Node_Str","String_Node_Str",EmployeeProxy.class,EmployeeRenderer.instance()));
  return columns;
}
Program: 82035
Project: 82035
Buggy source:
protected List<PropertyColumn<ReportProxy,?>> getColumns(){
  List<PropertyColumn<ReportProxy,?>> columns=new ArrayList<PropertyColumn<ReportProxy,?>>();
  columns.add(new PropertyColumn<ReportProxy,Date>("String_Node_Str","String_Node_Str",new DateTimeFormatRenderer(DateTimeFormat.getShortDateFormat())));
  columns.add(PropertyColumn.<ReportProxy>getStringPropertyColumn("String_Node_Str","String_Node_Str"));
  columns.add(new PropertyColumn<ReportProxy,EmployeeProxy>("String_Node_Str","String_Node_Str",EmployeeRenderer.instance()));
  columns.add(new PropertyColumn<ReportProxy,EmployeeProxy>("String_Node_Str","String_Node_Str",EmployeeRenderer.instance()));
  return columns;
}

Fixed version (ground truth):
protected List<PropertyColumn<ReportProxy,?>> getColumns(){
  List<PropertyColumn<ReportProxy,?>> columns=new ArrayList<PropertyColumn<ReportProxy,?>>();
  columns.add(new PropertyColumn<ReportProxy,Date>("String_Node_Str","String_Node_Str",Date.class,new DateTimeFormatRenderer(DateTimeFormat.getShortDateFormat())));
  columns.add(PropertyColumn.<ReportProxy>getStringPropertyColumn("String_Node_Str","String_Node_Str"));
  columns.add(new PropertyColumn<ReportProxy,EmployeeProxy>("String_Node_Str","String_Node_Str",EmployeeProxy.class,EmployeeRenderer.instance()));
  columns.add(new PropertyColumn<ReportProxy,EmployeeProxy>("String_Node_Str","String_Node_Str",EmployeeProxy.class,EmployeeRenderer.instance()));
  return columns;
}
Program: 82036
Project: 82036
Buggy source:
@Override public String getValue(R object){
  ProxyImpl proxyImpl=(ProxyImpl)object;
  return renderer.render(proxyImpl.<T>get(property,String.class));
}

Fixed version (ground truth):
@Override public String getValue(R object){
  ProxyImpl proxyImpl=(ProxyImpl)object;
  return renderer.render(proxyImpl.<T>get(property,clazz));
}
Program: 82037
Project: 82037
Buggy source:
public PropertyColumn(String property,String displayName,Renderer<T> renderer){
  this.displayName=displayName;
  this.property=property;
  this.renderer=renderer;
  this.paths=new String[]{property};
}

Fixed version (ground truth):
public PropertyColumn(String property,String displayName,Class<T> clazz,Renderer<T> renderer){
  this.displayName=displayName;
  this.property=property;
  this.clazz=clazz;
  this.renderer=renderer;
  this.paths=new String[]{property};
}
Program: 82038
Project: 82038
Buggy source:
public static <R extends EntityProxy>PropertyColumn<R,String> getStringPropertyColumn(String property,String displayName){
  return new PropertyColumn<R,String>(property,displayName,PassthroughRenderer.instance());
}

Fixed version (ground truth):
public static <R extends EntityProxy>PropertyColumn<R,String> getStringPropertyColumn(String property,String displayName){
  return new PropertyColumn<R,String>(property,displayName,String.class,PassthroughRenderer.instance());
}
Program: 82040
Project: 82040
Buggy source:
public void onSuccess(UserInformationProxy userInformationRecord,Set<SyncResult> syncResults){
  login.setUserInformation(userInformationRecord);
}

Fixed version (ground truth):
@Override public void onSuccess(UserInformationProxy userInformationRecord,Set<SyncResult> syncResults){
  login.setUserInformation(userInformationRecord);
}
Program: 82042
Project: 82042
Buggy source:
public void onSuccess(UserInformationProxy userInformationRecord,Set<SyncResult> syncResults){
  login.setUserInformation(userInformationRecord);
}

Fixed version (ground truth):
@Override public void onSuccess(UserInformationProxy userInformationRecord,Set<SyncResult> syncResults){
  login.setUserInformation(userInformationRecord);
}
Program: 82043
Project: 82043
Buggy source:
public Widget asWidget(){
  return this;
}

Fixed version (ground truth):
@Override public Widget asWidget(){
  return this;
}
Program: 82044
Project: 82044
Buggy source:
@SuppressWarnings("String_Node_Str") public void onCustom(){
  ExpenseProxy editableExpense=requestObject.edit(expense);
  editableExpense.setDescription(nameText.getText());
  editableExpense.setCategory(categoryText.getText());
  String amountText=priceText.getText();
  double amount=Double.parseDouble(amountText);
  editableExpense.setAmount(amount);
  Date date=new Date(dateYear.getSelectedIndex() + 100,dateMonth.getSelectedIndex(),dateDay.getSelectedIndex() + 1);
  editableExpense.setCreated(date);
  requestObject.fire(new Receiver<Void>(){
    public void onSuccess(    Void ignore,    Set<SyncResult> response){
      String errorMessage="String_Node_Str";
      if (errorMessage.length() > 0) {
        errorText.setInnerText(errorMessage);
      }
 else {
        listener.onExpenseUpdated();
      }
    }
  }
);
}

Fixed version (ground truth):
@SuppressWarnings("String_Node_Str") public void onCustom(){
  ExpenseProxy editableExpense=requestObject.edit(expense);
  editableExpense.setDescription(nameText.getText());
  editableExpense.setCategory(categoryText.getText());
  String amountText=priceText.getText();
  double amount=Double.parseDouble(amountText);
  editableExpense.setAmount(amount);
  Date date=new Date(dateYear.getSelectedIndex() + 100,dateMonth.getSelectedIndex(),dateDay.getSelectedIndex() + 1);
  editableExpense.setCreated(date);
  requestObject.fire(new Receiver<Void>(){
    @Override public void onSuccess(    Void ignore,    Set<SyncResult> response){
      String errorMessage="String_Node_Str";
      if (errorMessage.length() > 0) {
        errorText.setInnerText(errorMessage);
      }
 else {
        listener.onExpenseUpdated();
      }
    }
  }
);
}
Program: 82045
Project: 82045
Buggy source:
public Widget asWidget(){
  return this;
}

Fixed version (ground truth):
@Override public Widget asWidget(){
  return this;
}
Program: 82046
Project: 82046
Buggy source:
public void onSuccess(Void ignore,Set<SyncResult> response){
  String errorMessage="String_Node_Str";
  if (errorMessage.length() > 0) {
    errorText.setInnerText(errorMessage);
  }
 else {
    listener.onExpenseUpdated();
  }
}

Fixed version (ground truth):
@Override public void onSuccess(Void ignore,Set<SyncResult> response){
  String errorMessage="String_Node_Str";
  if (errorMessage.length() > 0) {
    errorText.setInnerText(errorMessage);
  }
 else {
    listener.onExpenseUpdated();
  }
}
Program: 82047
Project: 82047
Buggy source:
@SuppressWarnings("String_Node_Str") public void onCustom(){
  ReportProxy editableReport=requestObject.edit(report);
  editableReport.setPurpose(purposeText.getText());
  editableReport.setNotes(notesText.getText());
  editableReport.setDepartment(departmentList.getValue(departmentList.getSelectedIndex()));
  Date date=new Date(dateYear.getSelectedIndex() + 100,dateMonth.getSelectedIndex(),dateDay.getSelectedIndex() + 1);
  editableReport.setCreated(date);
  requestObject.fire(new Receiver<Void>(){
    public void onSuccess(    Void ignore,    Set<SyncResult> response){
      String errorMessage="String_Node_Str";
      if (errorMessage.length() > 0) {
        errorText.setInnerText(errorMessage);
      }
 else {
        listener.onReportUpdated();
      }
    }
  }
);
}

Fixed version (ground truth):
@SuppressWarnings("String_Node_Str") public void onCustom(){
  ReportProxy editableReport=requestObject.edit(report);
  editableReport.setPurpose(purposeText.getText());
  editableReport.setNotes(notesText.getText());
  editableReport.setDepartment(departmentList.getValue(departmentList.getSelectedIndex()));
  Date date=new Date(dateYear.getSelectedIndex() + 100,dateMonth.getSelectedIndex(),dateDay.getSelectedIndex() + 1);
  editableReport.setCreated(date);
  requestObject.fire(new Receiver<Void>(){
    @Override public void onSuccess(    Void ignore,    Set<SyncResult> response){
      String errorMessage="String_Node_Str";
      if (errorMessage.length() > 0) {
        errorText.setInnerText(errorMessage);
      }
 else {
        listener.onReportUpdated();
      }
    }
  }
);
}
Program: 82048
Project: 82048
Buggy source:
public Widget asWidget(){
  return this;
}

Fixed version (ground truth):
@Override public Widget asWidget(){
  return this;
}
Program: 82049
Project: 82049
Buggy source:
public void onSuccess(Void ignore,Set<SyncResult> response){
  String errorMessage="String_Node_Str";
  if (errorMessage.length() > 0) {
    errorText.setInnerText(errorMessage);
  }
 else {
    listener.onReportUpdated();
  }
}

Fixed version (ground truth):
@Override public void onSuccess(Void ignore,Set<SyncResult> response){
  String errorMessage="String_Node_Str";
  if (errorMessage.length() > 0) {
    errorText.setInnerText(errorMessage);
  }
 else {
    listener.onReportUpdated();
  }
}
Program: 82050
Project: 82050
Buggy source:
public Widget asWidget(){
  return this;
}

Fixed version (ground truth):
@Override public Widget asWidget(){
  return this;
}
Program: 82051
Project: 82051
Buggy source:
public EmployeeEditView asWidget(){
  return this;
}

Fixed version (ground truth):
@Override public EmployeeEditView asWidget(){
  return this;
}
Program: 82052
Project: 82052
Buggy source:
public Widget asWidget(){
  return this;
}

Fixed version (ground truth):
@Override public Widget asWidget(){
  return this;
}
Program: 82053
Project: 82053
Buggy source:
public ReportEditView asWidget(){
  return this;
}

Fixed version (ground truth):
@Override public ReportEditView asWidget(){
  return this;
}
Program: 82054
Project: 82054
Buggy source:
public void start(AcceptsOneWidget display,EventBus eventBus){
  this.display=display;
  view.setDelegate(this);
  view.setCreating(creating);
  if (creating) {
    P tempRecord=requests.create(proxyType);
    stableId=tempRecord.stableId();
    doStart(display,tempRecord);
  }
 else {
    ProxyRequest<P> findRequest=getFindRequest(getRecord().getId());
    findRequest.with(getView().getPaths()).fire(new Receiver<P>(){
      public void onSuccess(      P record,      Set<SyncResult> syncResults){
        if (AbstractProxyEditActivity.this.display != null) {
          doStart(AbstractProxyEditActivity.this.display,record);
        }
      }
    }
);
  }
}

Fixed version (ground truth):
public void start(AcceptsOneWidget display,EventBus eventBus){
  this.display=display;
  view.setDelegate(this);
  view.setCreating(creating);
  if (creating) {
    P tempRecord=requests.create(proxyType);
    stableId=tempRecord.stableId();
    doStart(display,tempRecord);
  }
 else {
    ProxyRequest<P> findRequest=getFindRequest(getRecord().getId());
    findRequest.with(getView().getPaths()).fire(new Receiver<P>(){
      @Override public void onSuccess(      P record,      Set<SyncResult> syncResults){
        if (AbstractProxyEditActivity.this.display != null) {
          doStart(AbstractProxyEditActivity.this.display,record);
        }
      }
    }
);
  }
}
Program: 82055
Project: 82055
Buggy source:
public void onSuccess(P record,Set<SyncResult> syncResults){
  if (AbstractProxyEditActivity.this.display != null) {
    doStart(AbstractProxyEditActivity.this.display,record);
  }
}

Fixed version (ground truth):
@Override public void onSuccess(P record,Set<SyncResult> syncResults){
  if (AbstractProxyEditActivity.this.display != null) {
    doStart(AbstractProxyEditActivity.this.display,record);
  }
}
Program: 82056
Project: 82056
Buggy source:
public AbstractProxyListView<P> asWidget(){
  return this;
}

Fixed version (ground truth):
@Override public AbstractProxyListView<P> asWidget(){
  return this;
}
Program: 82057
Project: 82057
Buggy source:
/** 
 * Calls   {@link ValueBoxBase#getValueOrThrow()}. If a   {@link ParseException}is thrown, it will be available through  {@link com.google.gwt.editor.client.EditorError#getUserData() EditorError.getUserData()}.
 */
public T getValue(){
  try {
    value=peer.getValueOrThrow();
  }
 catch (  ParseException e) {
    getDelegate().recordError("String_Node_Str" + peer.getText() + "String_Node_Str",peer.getText(),e);
  }
  return value;
}

Fixed version (ground truth):
/** 
 * Calls   {@link ValueBoxBase#getValueOrThrow()}. If a   {@link ParseException}is thrown, it will be available through  {@link com.google.gwt.editor.client.EditorError#getUserData() EditorError.getUserData()}.
 */
@Override public T getValue(){
  try {
    value=peer.getValueOrThrow();
  }
 catch (  ParseException e) {
    getDelegate().recordError("String_Node_Str" + peer.getText() + "String_Node_Str",peer.getText(),e);
  }
  return value;
}
Program: 82058
Project: 82058
Buggy source:
public void setValue(T value){
  peer.setValue(this.value=value);
}

Fixed version (ground truth):
@Override public void setValue(T value){
  peer.setValue(this.value=value);
}
Program: 82059
Project: 82059
Buggy source:
/** 
 * For debugging use only.
 */
public String toString(){
  return path + "String_Node_Str" + type.getParameterizedQualifiedSourceName();
}

Fixed version (ground truth):
/** 
 * For debugging use only.
 */
@Override public String toString(){
  return path + "String_Node_Str" + type.getParameterizedQualifiedSourceName();
}
Program: 82060
Project: 82060
Buggy source:
/** 
 * Process a child element that should be added using a   {@link UiChild} method
 */
private void handleChild(XMLElement child) throws UnableToCompleteException {
  String tag=child.getLocalName();
  Pair<JMethod,Integer> methodPair=uiChildMethods.get(tag);
  JMethod method=methodPair.left;
  int limit=methodPair.right;
  Iterator<XMLElement> children=child.consumeChildElements().iterator();
  if (!children.hasNext()) {
    return;
  }
  XMLElement toAdd=children.next();
  if (!writer.isWidgetElement(toAdd)) {
    writer.die(child,"String_Node_Str",child);
  }
  if (children.hasNext()) {
    writer.die(toAdd,"String_Node_Str");
  }
  checkLimit(limit,tag,toAdd);
  String[] parameters=makeArgsList(child,method,toAdd);
  writer.addStatement("String_Node_Str",fieldName,method.getName(),UiBinderWriter.asCommaSeparatedList(parameters));
}

Fixed version (ground truth):
/** 
 * Process a child element that should be added using a   {@link UiChild} method.
 */
private void handleChild(XMLElement child) throws UnableToCompleteException {
  String tag=child.getLocalName();
  Pair<JMethod,Integer> methodPair=uiChildMethods.get(tag);
  JMethod method=methodPair.left;
  int limit=methodPair.right;
  Iterator<XMLElement> children=child.consumeChildElements().iterator();
  if (!children.hasNext()) {
    return;
  }
  XMLElement toAdd=children.next();
  if (!writer.isWidgetElement(toAdd)) {
    writer.die(child,"String_Node_Str",child);
  }
  if (children.hasNext()) {
    writer.die(toAdd,"String_Node_Str");
  }
  checkLimit(limit,tag,toAdd);
  String[] parameters=makeArgsList(child,method,toAdd);
  writer.addStatement("String_Node_Str",fieldName,method.getName(),UiBinderWriter.asCommaSeparatedList(parameters));
}