nus-yam/ex-repair huggingface dataset:
Program: 35340
Project: 35340
Buggy source:
/** 
 * List the dependencies of the given element.
 * @param computationElement Computation element to prepare.
 * @param model Model of the current container.
 */
private void prepareForComputationElement(final ComputationElementDTO computationElement,final IsModel model){
  final Computation computation=computationElement.getComputationForModel(model);
  computations.put(computationElement,computation);
  for (  final Dependency dependency : computation.getDependencies()) {
    List<ComputationElementDTO> list=dependencies.get(((SingleDependency)dependency).getFlexibleElement());
    if (list == null) {
      list=new ArrayList<ComputationElementDTO>();
      if (dependency instanceof SingleDependency) {
        dependencies.put(((SingleDependency)dependency).getFlexibleElement(),list);
      }
    }
    list.add(computationElement);
  }
}

Fixed version (ground truth):
/** 
 * List the dependencies of the given element.
 * @param computationElement Computation element to prepare.
 * @param model Model of the current container.
 */
private void prepareForComputationElement(final ComputationElementDTO computationElement,final IsModel model){
  final Computation computation=computationElement.getComputationForModel(model);
  computations.put(computationElement,computation);
  for (  final Dependency dependency : computation.getDependencies()) {
    List<ComputationElementDTO> list;
    if (dependency instanceof SingleDependency) {
      list=dependencies.get(((SingleDependency)dependency).getFlexibleElement());
    }
 else     if (dependency instanceof CollectionDependency) {
      list=dependencies.get(((CollectionDependency)dependency).getFlexibleElement());
    }
 else {
      continue;
    }
    if (list == null) {
      list=new ArrayList<ComputationElementDTO>();
      if (dependency instanceof SingleDependency) {
        dependencies.put(((SingleDependency)dependency).getFlexibleElement(),list);
      }
    }
    list.add(computationElement);
  }
}
Program: 35342
Project: 35342
Buggy source:
@Override public void onRequiredValueChange(RequiredValueEvent event){
  final Integer iterationId=tabPanel != null ? tabPanel.getCurrentIterationId() : null;
  currentPhaseRequiredElements.putActual(iterationId,elementDTO.getId(),event.isValueOn());
  if (isCurrentPhase(getCurrentProject().getCurrentPhase())) {
    activePhaseRequiredElements.putActual(iterationId,elementDTO.getId(),event.isValueOn());
  }
  if (event.isImmediate()) {
    view.getButtonSavePhase().fireEvent(Events.OnClick);
  }
  elementDTO.setFilledIn(currentPhaseRequiredElements.isActuallyTrue(elementDTO.getId()));
  view.getGridRequiredElements().getStore().update(elementDTO);
  if (iterationId != null) {
    elementDTO.getTabPanel().setElementValidity(elementDTO,event.isValueOn());
  }
  refreshRequiredElementContentPanelHeader();
}

Fixed version (ground truth):
@Override public void onRequiredValueChange(RequiredValueEvent event){
  final Integer iterationId=tabPanel != null ? tabPanel.getCurrentIterationId() : null;
  currentPhaseRequiredElements.putActual(iterationId,elementDTO.getId(),event.isValueOn());
  if (isCurrentPhase(getCurrentProject().getCurrentPhase())) {
    activePhaseRequiredElements.putActual(iterationId,elementDTO.getId(),event.isValueOn());
  }
  if (event.isImmediate()) {
    if (view.getButtonSavePhase().isEnabled()) {
      view.getButtonSavePhase().fireEvent(Events.OnClick);
    }
 else {
      currentPhaseRequiredElements.saveState();
      if (isActivePhase(getCurrentDisplayedPhase())) {
        activePhaseRequiredElements.saveState();
      }
      refreshActionsToolbar();
    }
  }
  elementDTO.setFilledIn(currentPhaseRequiredElements.isActuallyTrue(elementDTO.getId()));
  view.getGridRequiredElements().getStore().update(elementDTO);
  if (iterationId != null) {
    elementDTO.getTabPanel().setElementValidity(elementDTO,event.isValueOn());
  }
  refreshRequiredElementContentPanelHeader();
}
Program: 35348
Project: 35348
Buggy source:
private void updateLayoutGroupIteration(ListResult<IterationChange> result){
  for (  IterationChange iterationChange : result.getList()) {
    if (iterationChange.isDeleted()) {
      Iterator<ValueEvent> valuesIterator=valueChanges.iterator();
      while (valuesIterator.hasNext()) {
        ValueEvent valueEvent=valuesIterator.next();
        if (valueEvent.getIterationId() == iterationChange.getIterationId()) {
          valuesIterator.remove();
        }
      }
    }
 else     if (iterationChange.isCreated()) {
      int oldId=iterationChange.getIterationId();
      int newId=iterationChange.getNewIterationId();
      newIterationsTabItems.get(oldId).setIterationId(newId);
      for (      ValueEvent valueEvent : valueChanges) {
        if (valueEvent.getIterationId() == oldId) {
          valueEvent.setIterationId(newId);
        }
      }
    }
  }
  iterationChanges.clear();
  newIterationsTabItems.clear();
}

Fixed version (ground truth):
private void updateLayoutGroupIteration(ListResult<IterationChange> result){
  for (  IterationChange iterationChange : result.getList()) {
    if (iterationChange.isDeleted()) {
      Iterator<ValueEvent> valuesIterator=valueChanges.iterator();
      while (valuesIterator.hasNext()) {
        ValueEvent valueEvent=valuesIterator.next();
        Integer iterationId=valueEvent.getIterationId();
        if (iterationId != null && iterationId == iterationChange.getIterationId()) {
          valuesIterator.remove();
        }
      }
    }
 else     if (iterationChange.isCreated()) {
      int oldId=iterationChange.getIterationId();
      int newId=iterationChange.getNewIterationId();
      newIterationsTabItems.get(oldId).setIterationId(newId);
      for (      ValueEvent valueEvent : valueChanges) {
        Integer iterationId=valueEvent.getIterationId();
        if (iterationId != null && iterationId == oldId) {
          valueEvent.setIterationId(newId);
        }
      }
    }
  }
  iterationChanges.clear();
  newIterationsTabItems.clear();
}
Program: 35349
Project: 35349
Buggy source:
public void setMember(boolean member){
  isMember=member;
}

Fixed version (ground truth):
public void setMember(boolean member){
  this.member=member;
}
Program: 35350
Project: 35350
Buggy source:
public boolean isMember(){
  return isMember;
}

Fixed version (ground truth):
public boolean isMember(){
  return member;
}
Program: 35352
Project: 35352
Buggy source:
public void setMember(boolean isMember){
  set(IS_MEMBER,isMember);
}

Fixed version (ground truth):
public void setMember(boolean member){
  set(IS_MEMBER,member);
}
Program: 35353
Project: 35353
Buggy source:
@Override public void handleChange(List<ContactDTO> contacts,ValueEventChangeType changeType){
  fireEvents(serializeValue(contacts),changeType);
}

Fixed version (ground truth):
@Override public void handleChange(List<ContactDTO> contacts,ValueEventChangeType changeType){
  fireEvents(serializeValue(contacts),changeType);
  if (getValidates()) {
    handlerManager.fireEvent(new RequiredValueEvent(listComboBox.getListStore().getCount() > 0,true));
  }
}
Program: 35358
Project: 35358
Buggy source:
@Override public void refresh(ContactDTO contactDTO){
  view.setImageProvider(imageProvider);
  dispatch.execute(new GetContactHistory(contactDTO.getId()),new CommandResultHandler<ListResult<ContactHistory>>(){
    @Override protected void onCommandSuccess(    ListResult<ContactHistory> result){
      view.updateGridData(result.getList());
    }
  }
);
}

Fixed version (ground truth):
@Override public void refresh(ContactDTO contactDTO){
  view.setImageProvider(imageProvider);
  if (!isOfflineMode()) {
    dispatch.execute(new GetContactHistory(contactDTO.getId()),new CommandResultHandler<ListResult<ContactHistory>>(){
      @Override protected void onCommandSuccess(      ListResult<ContactHistory> result){
        view.updateGridData(result.getList());
      }
    }
);
  }
}
Program: 35362
Project: 35362
Buggy source:
@Override public void selectionChanged(SelectionChangedEvent<CoreVersionAction> se){
  final CoreVersionAction action=se.getSelectedItem();
  if (action == currentCoreVersion) {
    return;
  }
switch (action.getType()) {
case FUNCTION_COMPARE:
    eventBus.navigateRequest(Page.PROJECT_AMENDMENT_DIFF.request().addData(RequestParameter.DTO,project));
  view.getCoreVersionActionComboBox().setValue(currentCoreVersion);
break;
case FUNCTION_RENAME:
eventBus.navigateRequest(Page.PROJECT_AMENDMENT_RENAME.request().addData(RequestParameter.DTO,project));
view.getCoreVersionActionComboBox().setValue(currentCoreVersion);
break;
case CORE_VERSION:
onDisplayCoreVersion((AmendmentDTO)action);
break;
default :
view.getCoreVersionActionComboBox().setValue(currentCoreVersion);
break;
}
}

Fixed version (ground truth):
@Override public void selectionChanged(SelectionChangedEvent<CoreVersionAction> se){
  final CoreVersionAction action=se.getSelectedItem();
  if (action == currentCoreVersion || action == null) {
    return;
  }
switch (action.getType()) {
case FUNCTION_COMPARE:
    eventBus.navigateRequest(Page.PROJECT_AMENDMENT_DIFF.request().addData(RequestParameter.DTO,project));
  view.getCoreVersionActionComboBox().setValue(currentCoreVersion);
break;
case FUNCTION_RENAME:
eventBus.navigateRequest(Page.PROJECT_AMENDMENT_RENAME.request().addData(RequestParameter.DTO,project));
view.getCoreVersionActionComboBox().setValue(currentCoreVersion);
break;
case CORE_VERSION:
onDisplayCoreVersion((AmendmentDTO)action);
break;
default :
view.getCoreVersionActionComboBox().setValue(currentCoreVersion);
break;
}
}
Program: 35365
Project: 35365
Buggy source:
private CheckContactDuplication buildCheckContactDuplicationCommand(ContactDTO contactDTO){
  CheckContactDuplication checkDuplicationCommand;
  String currentEmail=getCurrentSingleValue(DefaultContactFlexibleElementType.EMAIL_ADDRESS,contactDTO.getEmail());
switch (contactDTO.getContactModel().getType()) {
case INDIVIDUAL:
    String currentFamilyName=getCurrentSingleValue(DefaultContactFlexibleElementType.FAMILY_NAME,contactDTO.getFamilyName());
  String currentFirstName=getCurrentSingleValue(DefaultContactFlexibleElementType.FIRST_NAME,contactDTO.getFirstname());
checkDuplicationCommand=new CheckContactDuplication(contactDTO.getId(),currentEmail,currentFamilyName,currentFirstName);
break;
case ORGANIZATION:
String currentOrganizationName=getCurrentSingleValue(DefaultContactFlexibleElementType.ORGANIZATION_NAME,contactDTO.getOrganizationName());
checkDuplicationCommand=new CheckContactDuplication(contactDTO.getId(),currentEmail,currentOrganizationName,null);
break;
default :
throw new IllegalStateException("String_Node_Str" + contactDTO.getContactModel().getType());
}
return checkDuplicationCommand;
}

Fixed version (ground truth):
private CheckContactDuplication buildCheckContactDuplicationCommand(ContactDTO contactDTO){
  CheckContactDuplication checkDuplicationCommand;
  String currentEmail=getCurrentSingleValue(DefaultContactFlexibleElementType.EMAIL_ADDRESS,contactDTO.getEmail());
switch (contactDTO.getContactModel().getType()) {
case INDIVIDUAL:
    String currentFamilyName=getCurrentSingleValue(DefaultContactFlexibleElementType.FAMILY_NAME,contactDTO.getFamilyName());
  String currentFirstName=getCurrentSingleValue(DefaultContactFlexibleElementType.FIRST_NAME,contactDTO.getFirstname());
checkDuplicationCommand=new CheckContactDuplication(contactDTO.getId(),currentEmail,currentFamilyName,currentFirstName,contactDTO.getContactModel());
break;
case ORGANIZATION:
String currentOrganizationName=getCurrentSingleValue(DefaultContactFlexibleElementType.ORGANIZATION_NAME,contactDTO.getOrganizationName());
checkDuplicationCommand=new CheckContactDuplication(contactDTO.getId(),currentEmail,currentOrganizationName,null,contactDTO.getContactModel());
break;
default :
throw new IllegalStateException("String_Node_Str" + contactDTO.getContactModel().getType());
}
return checkDuplicationCommand;
}
Program: 35366
Project: 35366
Buggy source:
private void refreshTabs(){
  for (  ContactSubPresenter tabPresenter : tabPresenters) {
    tabPresenter.refresh(contactDTO);
  }
}

Fixed version (ground truth):
private void refreshTabs(){
  view.selectFirstTab();
  for (  ContactSubPresenter tabPresenter : tabPresenters) {
    tabPresenter.refresh(contactDTO);
  }
}
Program: 35367
Project: 35367
Buggy source:
@Override public void handleDedupeContact(final Integer targetedContactId,List<ContactDuplicatedProperty> selectedProperties){
  dispatch.execute(new DedupeContact(selectedProperties,targetedContactId),new CommandResultHandler<ContactDTO>(){
    @Override protected void onCommandSuccess(    ContactDTO targetedContactDTO){
      dedupeContactDialog.hide();
      eventBus.navigateRequest(Page.CONTACT_DASHBOARD.requestWith(RequestParameter.ID,targetedContactId));
    }
  }
);
}

Fixed version (ground truth):
@Override public void handleDedupeContact(final Integer targetedContactId,List<ContactDuplicatedProperty> selectedProperties){
  dispatch.execute(new DedupeContact(selectedProperties,targetedContactId),new CommandResultHandler<ContactDTO>(){
    @Override protected void onCommandSuccess(    final ContactDTO targetedContactDTO){
      dedupeContactDialog.hide();
      GetContactHistory historyCmd=new GetContactHistory(targetedContactDTO.getId(),true);
      dispatch.execute(historyCmd,new CommandResultHandler<ListResult<ContactHistory>>(){
        @Override protected void onCommandSuccess(        ListResult<ContactHistory> result){
          ContactHistory lastChange=result.isEmpty() ? null : result.getList().get(0);
          view.addContact(new DashboardContact(targetedContactDTO,lastChange));
        }
      }
);
    }
  }
);
}
Program: 35372
Project: 35372
Buggy source:
@Override public void selectionChanged(SelectionChangedEvent<CoreVersionAction> se){
  final CoreVersionAction action=se.getSelectedItem();
  if (action == currentCoreVersion) {
    return;
  }
switch (action.getType()) {
case FUNCTION_COMPARE:
    eventBus.navigateRequest(Page.PROJECT_AMENDMENT_DIFF.request().addData(RequestParameter.DTO,project));
  view.getCoreVersionActionComboBox().setValue(currentCoreVersion);
break;
case FUNCTION_RENAME:
eventBus.navigateRequest(Page.PROJECT_AMENDMENT_RENAME.request().addData(RequestParameter.DTO,project));
view.getCoreVersionActionComboBox().setValue(currentCoreVersion);
break;
case CORE_VERSION:
onDisplayCoreVersion((AmendmentDTO)action);
break;
default :
view.getCoreVersionActionComboBox().setValue(currentCoreVersion);
break;
}
}

Fixed version (ground truth):
@Override public void selectionChanged(SelectionChangedEvent<CoreVersionAction> se){
  final CoreVersionAction action=se.getSelectedItem();
  if (action == currentCoreVersion || action == null) {
    return;
  }
switch (action.getType()) {
case FUNCTION_COMPARE:
    eventBus.navigateRequest(Page.PROJECT_AMENDMENT_DIFF.request().addData(RequestParameter.DTO,project));
  view.getCoreVersionActionComboBox().setValue(currentCoreVersion);
break;
case FUNCTION_RENAME:
eventBus.navigateRequest(Page.PROJECT_AMENDMENT_RENAME.request().addData(RequestParameter.DTO,project));
view.getCoreVersionActionComboBox().setValue(currentCoreVersion);
break;
case CORE_VERSION:
onDisplayCoreVersion((AmendmentDTO)action);
break;
default :
view.getCoreVersionActionComboBox().setValue(currentCoreVersion);
break;
}
}
Program: 35373
Project: 35373
Buggy source:
private void resizeGrid(final Grid grid,final LayoutContainer container,final boolean canBeDelayed){
  new Timer(){
    @Override public void run(){
      if (!grid.isVisible()) {
        if (canBeDelayed) {
          this.schedule(RESIZE_DELAY);
        }
        return;
      }
      grid.setAutoHeight(false);
      int height;
      int maxHeight=container.getHeight() - PADDING * 2;
      int unwrappedGridHeight=grid.getView().getScroller().firstChild().getHeight() + grid.getView().getHeader().getHeight();
      if (unwrappedGridHeight < maxHeight) {
        height=unwrappedGridHeight;
      }
 else {
        height=maxHeight;
      }
      if (grid.getHeight() == height) {
        return;
      }
      grid.setHeight(height);
      grid.getView().layout();
    }
  }
.schedule(RESIZE_DELAY);
}

Fixed version (ground truth):
private void resizeGrid(final Grid grid,final LayoutContainer container,final boolean canBeDelayed){
  new Timer(){
    @Override public void run(){
      if (!grid.isVisible()) {
        if (canBeDelayed) {
          this.schedule(RESIZE_DELAY);
        }
        return;
      }
      grid.setAutoHeight(false);
      int height;
      int maxHeight=container.getHeight() - PADDING * 2;
      int unwrappedGridHeight=grid.getView().getScroller().firstChild().getHeight() + grid.getView().getHeader().getHeight();
      if (unwrappedGridHeight < maxHeight) {
        height=unwrappedGridHeight;
      }
 else {
        height=maxHeight;
      }
      grid.setHeight(height);
      grid.getView().layout();
    }
  }
.schedule(RESIZE_DELAY);
}
Program: 35374
Project: 35374
Buggy source:
@Override public void onResize(ResizeEvent event){
  resizeGrid(contactHistoryGrid,container,false);
}

Fixed version (ground truth):
@Override public void onResize(ResizeEvent event){
  resizeGrid(contactHistoryGrid,container,true);
}
Program: 35375
Project: 35375
Buggy source:
@Override public void updateGridData(List<ContactHistory> contactHistories){
  contactHistoryGrid.getStore().removeAll();
  contactHistoryGrid.getStore().add(contactHistories);
  resizeGrid(contactHistoryGrid,container,false);
}

Fixed version (ground truth):
@Override public void updateGridData(List<ContactHistory> contactHistories){
  contactHistoryGrid.getStore().removeAll();
  contactHistoryGrid.getStore().add(contactHistories);
  resizeGrid(contactHistoryGrid,container,true);
}
Program: 35376
Project: 35376
Buggy source:
@Override public void run(){
  if (!grid.isVisible()) {
    if (canBeDelayed) {
      this.schedule(RESIZE_DELAY);
    }
    return;
  }
  grid.setAutoHeight(false);
  int height;
  int maxHeight=container.getHeight() - PADDING * 2;
  int unwrappedGridHeight=grid.getView().getScroller().firstChild().getHeight() + grid.getView().getHeader().getHeight();
  if (unwrappedGridHeight < maxHeight) {
    height=unwrappedGridHeight;
  }
 else {
    height=maxHeight;
  }
  if (grid.getHeight() == height) {
    return;
  }
  grid.setHeight(height);
  grid.getView().layout();
}

Fixed version (ground truth):
@Override public void run(){
  if (!grid.isVisible()) {
    if (canBeDelayed) {
      this.schedule(RESIZE_DELAY);
    }
    return;
  }
  grid.setAutoHeight(false);
  int height;
  int maxHeight=container.getHeight() - PADDING * 2;
  int unwrappedGridHeight=grid.getView().getScroller().firstChild().getHeight() + grid.getView().getHeader().getHeight();
  if (unwrappedGridHeight < maxHeight) {
    height=unwrappedGridHeight;
  }
 else {
    height=maxHeight;
  }
  grid.setHeight(height);
  grid.getView().layout();
}
Program: 35377
Project: 35377
Buggy source:
@Override public void initialize(){
  contactHistoryGrid=new Grid<ContactHistory>(new ListStore<ContactHistory>(),buildColumnModel());
  contactHistoryGrid.getView().setForceFit(true);
  contactHistoryGrid.setAutoHeight(true);
  contactHistoryGrid.addListener(Events.ViewReady,new Listener<BaseEvent>(){
    @Override public void handleEvent(    BaseEvent be){
      resizeGrid(contactHistoryGrid,container,true);
    }
  }
);
  Window.addResizeHandler(new ResizeHandler(){
    @Override public void onResize(    ResizeEvent event){
      resizeGrid(contactHistoryGrid,container,false);
    }
  }
);
  container=Panels.content(null,false,Layouts.vBoxLayout(VBoxLayout.VBoxLayoutAlign.STRETCH,new Layouts.LayoutOptions(new Padding(10))),"String_Node_Str");
  container.setScrollMode(Style.Scroll.AUTOY);
  container.add(contactHistoryGrid);
  add(container);
}

Fixed version (ground truth):
@Override public void initialize(){
  contactHistoryGrid=new Grid<ContactHistory>(new ListStore<ContactHistory>(),buildColumnModel());
  contactHistoryGrid.getView().setForceFit(true);
  contactHistoryGrid.setAutoHeight(true);
  contactHistoryGrid.addListener(Events.ViewReady,new Listener<BaseEvent>(){
    @Override public void handleEvent(    BaseEvent be){
      resizeGrid(contactHistoryGrid,container,true);
    }
  }
);
  Window.addResizeHandler(new ResizeHandler(){
    @Override public void onResize(    ResizeEvent event){
      resizeGrid(contactHistoryGrid,container,true);
    }
  }
);
  container=Panels.content(null,false,Layouts.vBoxLayout(VBoxLayout.VBoxLayoutAlign.STRETCH,new Layouts.LayoutOptions(new Padding(10))),"String_Node_Str");
  container.setScrollMode(Style.Scroll.AUTOY);
  container.add(contactHistoryGrid);
  add(container);
}
Program: 35378
Project: 35378
Buggy source:
@Override public void reloadView(ContactDTO contactDTO,ContactRelationshipsPresenter.AnchorHandler anchorHandler){
  container.remove(buttonsContainer);
  container.remove(grid);
  container.layout();
  outboundToggleButton=new ToggleButton(I18N.CONSTANTS.contactRelationshipOwnedByToggleButtonLabel());
  inboundToggleButton=new ToggleButton(I18N.CONSTANTS.contactRelationshipOwnerOfToggleButtonLabel());
  buttonsContainer=Layouts.hBox(HBoxLayout.HBoxLayoutAlign.MIDDLE);
  buttonsContainer.add(outboundToggleButton);
  buttonsContainer.add(inboundToggleButton);
  buttonsContainer.setHeight(BUTTONS_PANEL_HEIGHT);
  grid=new Grid<ContactRelationship>(new ListStore<ContactRelationship>(),generateColumnModel(contactDTO,anchorHandler));
  grid.getView().setForceFit(true);
  grid.setAutoHeight(true);
  grid.addListener(Events.ViewReady,new Listener<BaseEvent>(){
    @Override public void handleEvent(    BaseEvent be){
      resizeGrid(grid,container,true);
    }
  }
);
  Window.addResizeHandler(new ResizeHandler(){
    @Override public void onResize(    ResizeEvent event){
      resizeGrid(grid,container,false);
    }
  }
);
  container.add(buttonsContainer);
  container.add(grid);
  container.layout();
}

Fixed version (ground truth):
@Override public void reloadView(ContactDTO contactDTO,ContactRelationshipsPresenter.AnchorHandler anchorHandler){
  container.remove(buttonsContainer);
  container.remove(grid);
  container.layout();
  outboundToggleButton=new ToggleButton(I18N.CONSTANTS.contactRelationshipOwnedByToggleButtonLabel());
  inboundToggleButton=new ToggleButton(I18N.CONSTANTS.contactRelationshipOwnerOfToggleButtonLabel());
  buttonsContainer=Layouts.hBox(HBoxLayout.HBoxLayoutAlign.MIDDLE);
  buttonsContainer.add(outboundToggleButton);
  buttonsContainer.add(inboundToggleButton);
  buttonsContainer.setHeight(BUTTONS_PANEL_HEIGHT);
  grid=new Grid<ContactRelationship>(new ListStore<ContactRelationship>(),generateColumnModel(contactDTO,anchorHandler));
  grid.getView().setForceFit(true);
  grid.setAutoHeight(true);
  grid.addListener(Events.ViewReady,new Listener<BaseEvent>(){
    @Override public void handleEvent(    BaseEvent be){
      resizeGrid(grid,container,true);
    }
  }
);
  Window.addResizeHandler(new ResizeHandler(){
    @Override public void onResize(    ResizeEvent event){
      resizeGrid(grid,container,true);
    }
  }
);
  container.add(buttonsContainer);
  container.add(grid);
  container.layout();
}
Program: 35379
Project: 35379
Buggy source:
@Override public void run(){
  if (!grid.isVisible()) {
    if (canBeDelayed) {
      this.schedule(RESIZE_DELAY);
    }
    return;
  }
  grid.setAutoHeight(false);
  int height;
  int maxHeight=container.getHeight() - PADDING * 2;
  int unwrappedGridHeight=grid.getView().getScroller().firstChild().getHeight() + grid.getView().getHeader().getHeight();
  if (unwrappedGridHeight < maxHeight) {
    height=unwrappedGridHeight;
  }
 else {
    height=maxHeight;
  }
  if (grid.getHeight() == height) {
    return;
  }
  grid.setHeight(height);
  grid.getView().layout();
}

Fixed version (ground truth):
@Override public void run(){
  if (!grid.isVisible()) {
    if (canBeDelayed) {
      this.schedule(RESIZE_DELAY);
    }
    return;
  }
  grid.setAutoHeight(false);
  int height;
  int maxHeight=container.getHeight() - PADDING * 2;
  int unwrappedGridHeight=grid.getView().getScroller().firstChild().getHeight() + grid.getView().getHeader().getHeight();
  if (unwrappedGridHeight < maxHeight) {
    height=unwrappedGridHeight;
  }
 else {
    height=maxHeight;
  }
  grid.setHeight(height);
  grid.getView().layout();
}
Program: 35380
Project: 35380
Buggy source:
private void resizeGrid(final Grid grid,final LayoutContainer container,final boolean canBeDelayed){
  new Timer(){
    @Override public void run(){
      if (!grid.isVisible()) {
        if (canBeDelayed) {
          this.schedule(RESIZE_DELAY);
        }
        return;
      }
      grid.setAutoHeight(false);
      int height;
      int maxHeight=container.getHeight() - PADDING * 2;
      int unwrappedGridHeight=grid.getView().getScroller().firstChild().getHeight() + grid.getView().getHeader().getHeight();
      if (unwrappedGridHeight < maxHeight) {
        height=unwrappedGridHeight;
      }
 else {
        height=maxHeight;
      }
      if (grid.getHeight() == height) {
        return;
      }
      grid.setHeight(height);
      grid.getView().layout();
    }
  }
.schedule(RESIZE_DELAY);
}

Fixed version (ground truth):
private void resizeGrid(final Grid grid,final LayoutContainer container,final boolean canBeDelayed){
  new Timer(){
    @Override public void run(){
      if (!grid.isVisible()) {
        if (canBeDelayed) {
          this.schedule(RESIZE_DELAY);
        }
        return;
      }
      grid.setAutoHeight(false);
      int height;
      int maxHeight=container.getHeight() - PADDING * 2;
      int unwrappedGridHeight=grid.getView().getScroller().firstChild().getHeight() + grid.getView().getHeader().getHeight();
      if (unwrappedGridHeight < maxHeight) {
        height=unwrappedGridHeight;
      }
 else {
        height=maxHeight;
      }
      grid.setHeight(height);
      grid.getView().layout();
    }
  }
.schedule(RESIZE_DELAY);
}
Program: 35381
Project: 35381
Buggy source:
@Override public void onResize(ResizeEvent event){
  resizeGrid(grid,container,false);
}

Fixed version (ground truth):
@Override public void onResize(ResizeEvent event){
  resizeGrid(grid,container,true);
}
Program: 35382
Project: 35382
Buggy source:
@Override public void updateGridData(List<ContactRelationship> relationships){
  grid.getStore().removeAll();
  grid.getStore().add(relationships);
  grid.recalculate();
  resizeGrid(grid,container,false);
}

Fixed version (ground truth):
@Override public void updateGridData(List<ContactRelationship> relationships){
  grid.getStore().removeAll();
  grid.getStore().add(relationships);
  grid.recalculate();
  resizeGrid(grid,container,true);
}
Program: 35385
Project: 35385
Buggy source:
public String getFormattedValue(Contact contact){
switch (type) {
case COUNTRY:
    if (contact.getCountry() == null) {
      return null;
    }
  return contact.getCountry().getName();
case CREATION_DATE:
return SimpleDateFormat.getDateTimeInstance().format(contact.getDateCreated());
case DIRECT_MEMBERSHIP:
if (contact.getParent() == null) {
return null;
}
return contact.getParent().getFullName();
case EMAIL_ADDRESS:
return contact.getEmail();
case FAMILY_NAME:
return contact.getName();
case FIRST_NAME:
return contact.getFirstname();
case LOGIN:
return contact.getLogin();
case MAIN_ORG_UNIT:
if (contact.getMainOrgUnit() == null) {
return null;
}
return contact.getMainOrgUnit().getFullName();
case ORGANIZATION_NAME:
return contact.getName();
case PHONE_NUMBER:
return contact.getPhoneNumber();
case PHOTO:
return contact.getPhoto();
case POSTAL_ADDRESS:
return contact.getPostalAddress();
case SECONDARY_ORG_UNITS:
if (contact.getSecondaryOrgUnits() == null) {
return null;
}
StringBuilder stringBuilder=new StringBuilder();
for (int i=0; i < contact.getSecondaryOrgUnits().size(); i++) {
if (i != 0) {
stringBuilder.append("String_Node_Str");
}
stringBuilder.append(contact.getSecondaryOrgUnits().get(i).getFullName());
}
return stringBuilder.toString();
case TOP_MEMBERSHIP:
if (contact.getRoot() == null) {
return null;
}
return contact.getRoot().getFullName();
default :
throw new IllegalStateException("String_Node_Str" + getType());
}
}

Fixed version (ground truth):
public String getFormattedValue(Contact contact){
switch (type) {
case COUNTRY:
    if (contact.getCountry() == null) {
      return null;
    }
  return contact.getCountry().getName();
case CREATION_DATE:
return SimpleDateFormat.getDateTimeInstance().format(contact.getDateCreated());
case DIRECT_MEMBERSHIP:
if (contact.getParent() == null) {
return null;
}
return contact.getParent().getFullName();
case EMAIL_ADDRESS:
return contact.getEmail();
case FAMILY_NAME:
if (contact.getContactModel().getType().equals(ContactModelType.INDIVIDUAL)) {
return contact.getName();
}
 else {
return null;
}
case FIRST_NAME:
return contact.getFirstname();
case LOGIN:
return contact.getLogin();
case MAIN_ORG_UNIT:
if (contact.getMainOrgUnit() == null) {
return null;
}
return contact.getMainOrgUnit().getFullName();
case ORGANIZATION_NAME:
if (contact.getContactModel().getType().equals(ContactModelType.ORGANIZATION)) {
return contact.getName();
}
 else {
return null;
}
case PHONE_NUMBER:
return contact.getPhoneNumber();
case PHOTO:
return contact.getPhoto();
case POSTAL_ADDRESS:
return contact.getPostalAddress();
case SECONDARY_ORG_UNITS:
if (contact.getSecondaryOrgUnits() == null) {
return null;
}
StringBuilder stringBuilder=new StringBuilder();
for (int i=0; i < contact.getSecondaryOrgUnits().size(); i++) {
if (i != 0) {
stringBuilder.append("String_Node_Str");
}
stringBuilder.append(contact.getSecondaryOrgUnits().get(i).getFullName());
}
return stringBuilder.toString();
case TOP_MEMBERSHIP:
if (contact.getRoot() == null) {
return null;
}
return contact.getRoot().getFullName();
default :
throw new IllegalStateException("String_Node_Str" + getType());
}
}
Program: 35386
Project: 35386
Buggy source:
@Override protected ListResult<ContactDTO> execute(CheckContactDuplication command,UserDispatch.UserExecutionContext context) throws CommandException {
  List<Contact> contacts=contactDAO.findContactsByEmailOrSimilarName(context.getUser().getOrganization().getId(),command.getContactId(),command.getEmail(),command.getFirstName(),command.getName());
  List<ContactDTO> contactDTOs=new ArrayList<>();
  for (  Contact contact : contacts) {
    if (!contact.isDeleted()) {
      contactDTOs.add(mapper().map(contact,ContactDTO.class));
    }
  }
  return new ListResult<>(contactDTOs);
}

Fixed version (ground truth):
@Override protected ListResult<ContactDTO> execute(CheckContactDuplication command,UserDispatch.UserExecutionContext context) throws CommandException {
  List<Contact> contacts=contactDAO.findContactsByEmailOrSimilarName(context.getUser().getOrganization().getId(),command.getContactId(),command.getEmail(),command.getFirstName(),command.getName());
  List<ContactDTO> contactDTOs=new ArrayList<>();
  for (  Contact contact : contacts) {
    if (!contact.isDeleted() && contact.getContactModel().getId() == command.getContactModelDTO().getId()) {
      contactDTOs.add(mapper().map(contact,ContactDTO.class));
    }
  }
  return new ListResult<>(contactDTOs);
}
Program: 35388
Project: 35388
Buggy source:
@Override protected ContactDTO execute(DedupeContact command,UserDispatch.UserExecutionContext context) throws CommandException {
  Contact targetedContact=contactDAO.findById(command.getTargetedContactId());
  if (command.getOriginContactId() != null) {
    Contact originContact=contactDAO.findById(command.getOriginContactId());
    mergeContacts(originContact,targetedContact,command.getContactDuplicatedProperties(),context.getUser());
  }
 else {
    applyProperties(command.getContactDuplicatedProperties(),targetedContact);
  }
  return mapper().map(targetedContact,new ContactDTO());
}

Fixed version (ground truth):
@Override protected ContactDTO execute(DedupeContact command,UserDispatch.UserExecutionContext context) throws CommandException {
  Contact targetedContact=contactDAO.findById(command.getTargetedContactId());
  if (command.getOriginContactId() != null) {
    Contact originContact=contactDAO.findById(command.getOriginContactId());
    mergeContacts(originContact,targetedContact,command.getContactDuplicatedProperties(),context.getUser());
  }
 else {
    applyProperties(command.getContactDuplicatedProperties(),targetedContact,context.getUser());
  }
  return mapper().map(targetedContact,new ContactDTO());
}
Program: 35391
Project: 35391
Buggy source:
public CheckContactDuplication(Integer contactId,String email,String name,String firstName){
  this.contactId=contactId;
  this.email=email;
  this.name=name;
  this.firstName=firstName;
}

Fixed version (ground truth):
public CheckContactDuplication(Integer contactId,String email,String name,String firstName,ContactModelDTO contactModelDTO){
  this.contactId=contactId;
  this.email=email;
  this.name=name;
  this.firstName=firstName;
  this.contactModelDTO=contactModelDTO;
}
Program: 35394
Project: 35394
Buggy source:
public static boolean areOrgUnitsEqualOrParent(OrgUnit potentialChild,Integer targetId){
  if (potentialChild.getId().equals(targetId)) {
    return true;
  }
  if (potentialChild.getParentOrgUnit() == null) {
    return false;
  }
  return areOrgUnitsEqualOrParent(potentialChild.getParentOrgUnit(),targetId);
}

Fixed version (ground truth):
public static boolean areOrgUnitsEqualOrParent(OrgUnit potentialChild,Integer targetId){
  if (potentialChild == null) {
    return false;
  }
  if (potentialChild.getId().equals(targetId)) {
    return true;
  }
  if (potentialChild.getParentOrgUnit() == null) {
    return false;
  }
  return areOrgUnitsEqualOrParent(potentialChild.getParentOrgUnit(),targetId);
}
Program: 35399
Project: 35399
Buggy source:
@Override public void onRequiredValueChange(RequiredValueEvent event){
  currentPhaseRequiredElements.putActual(tabPanel.getCurrentIterationId(),elementDTO.getId(),event.isValueOn());
  if (isCurrentPhase(getCurrentProject().getCurrentPhase())) {
    activePhaseRequiredElements.putActual(tabPanel.getCurrentIterationId(),elementDTO.getId(),event.isValueOn());
  }
  if (event.isImmediate()) {
    view.getButtonSavePhase().fireEvent(Events.OnClick);
  }
  elementDTO.setFilledIn(currentPhaseRequiredElements.isActuallyTrue(elementDTO.getId()));
  view.getGridRequiredElements().getStore().update(elementDTO);
  elementDTO.getTabPanel().setElementValidity(elementDTO,event.isValueOn());
  refreshRequiredElementContentPanelHeader();
}

Fixed version (ground truth):
@Override public void onRequiredValueChange(RequiredValueEvent event){
  Integer iterationId=tabPanel == null ? null : tabPanel.getCurrentIterationId();
  currentPhaseRequiredElements.putActual(iterationId,elementDTO.getId(),event.isValueOn());
  if (isCurrentPhase(getCurrentProject().getCurrentPhase())) {
    activePhaseRequiredElements.putActual(iterationId,elementDTO.getId(),event.isValueOn());
  }
  if (event.isImmediate()) {
    view.getButtonSavePhase().fireEvent(Events.OnClick);
  }
  elementDTO.setFilledIn(currentPhaseRequiredElements.isActuallyTrue(elementDTO.getId()));
  view.getGridRequiredElements().getStore().update(elementDTO);
  if (iterationId != null) {
    elementDTO.getTabPanel().setElementValidity(elementDTO,event.isValueOn());
  }
  refreshRequiredElementContentPanelHeader();
}
Program: 35401
Project: 35401
Buggy source:
/** 
 * Loads the given   {@code flexibleElement} <b>text area fields</b> and sets the corresponding form fields values.
 * @param flexibleElement The edited flexible element of type  {@link ElementTypeEnum#TEXT_AREA}.
 * @param textAreaType The text area type, may be  {@code null}.
 */
private void loadFlexibleElementTextAreaFields(final FlexibleElementDTO flexibleElement,final TextAreaType textAreaType){
  view.setTextAreaSpecificFieldsVisibility(textAreaType);
  view.getCodeField().setEnabled(!isUpdateAndUnderMaintenance());
  view.getMinDateField().setEnabled(!isUpdateAndUnderMaintenance());
  view.getMaxDateField().setEnabled(!isUpdateAndUnderMaintenance());
  view.getMinLimitField().setEnabled(!isUpdateAndUnderMaintenance());
  view.getMaxLimitField().setEnabled(!isUpdateAndUnderMaintenance());
  if (flexibleElement instanceof TextAreaElementDTO) {
    final TextAreaElementDTO textAreaElement=(TextAreaElementDTO)flexibleElement;
    final Long minValue=textAreaElement.getMinValue();
    final Long maxValue=textAreaElement.getMaxValue();
    view.getMinLimitField().setValue(minValue);
    view.getMaxLimitField().setValue(maxValue);
    view.getLengthField().setValue(textAreaElement.getLength());
    view.getDecimalField().setValue(textAreaElement.getIsDecimal());
    view.getMinDateField().setValue(minValue != null ? new Date(minValue) : null);
    view.getMaxDateField().setValue(maxValue != null ? new Date(maxValue) : null);
  }
}

Fixed version (ground truth):
/** 
 * Loads the given   {@code flexibleElement} <b>text area fields</b> and sets the corresponding form fields values.
 * @param flexibleElement The edited flexible element of type  {@link ElementTypeEnum#TEXT_AREA}.
 * @param textAreaType The text area type, may be  {@code null}.
 */
private void loadFlexibleElementTextAreaFields(final FlexibleElementDTO flexibleElement,final TextAreaType textAreaType){
  view.setTextAreaSpecificFieldsVisibility(textAreaType);
  view.getMinDateField().setEnabled(!isUpdateAndUnderMaintenance());
  view.getMaxDateField().setEnabled(!isUpdateAndUnderMaintenance());
  view.getMinLimitField().setEnabled(!isUpdateAndUnderMaintenance());
  view.getMaxLimitField().setEnabled(!isUpdateAndUnderMaintenance());
  if (flexibleElement instanceof TextAreaElementDTO) {
    final TextAreaElementDTO textAreaElement=(TextAreaElementDTO)flexibleElement;
    final Long minValue=textAreaElement.getMinValue();
    final Long maxValue=textAreaElement.getMaxValue();
    view.getMinLimitField().setValue(minValue);
    view.getMaxLimitField().setValue(maxValue);
    view.getLengthField().setValue(textAreaElement.getLength());
    view.getDecimalField().setValue(textAreaElement.getIsDecimal());
    view.getMinDateField().setValue(minValue != null ? new Date(minValue) : null);
    view.getMaxDateField().setValue(maxValue != null ? new Date(maxValue) : null);
  }
}
Program: 35405
Project: 35405
Buggy source:
/** 
 * Loads the current project linked projects (i.e. funding / funded projects).
 * @param linkedProjectType The linked projects type to load. Set to  {@code null} to load all types.
 */
private void loadLinkedProjects(final LinkedProjectType linkedProjectType){
  if (linkedProjectType == null || linkedProjectType == LinkedProjectType.FUNDING_PROJECT) {
    view.getFundingProjectsGrid().getStore().removeAll();
    dispatch.execute(new GetLinkedProjects(getProject().getId(),LinkedProjectType.FUNDING_PROJECT,ProjectDTO.Mode._USE_PROJECT_MAPPER),new CommandResultHandler<ListResult<ProjectFundingDTO>>(){
      @Override protected void onCommandSuccess(      final ListResult<ProjectFundingDTO> result){
        view.getFundingProjectsGrid().getStore().add(result.getList());
      }
    }
,new LoadingMask(view.getFundingProjectsGrid()));
  }
  if (linkedProjectType == null || linkedProjectType == LinkedProjectType.FUNDED_PROJECT) {
    view.getFundedProjectsGrid().getStore().removeAll();
    dispatch.execute(new GetLinkedProjects(getProject().getId(),LinkedProjectType.FUNDED_PROJECT,ProjectDTO.Mode._USE_PROJECT_MAPPER),new CommandResultHandler<ListResult<ProjectFundingDTO>>(){
      @Override protected void onCommandSuccess(      final ListResult<ProjectFundingDTO> result){
        view.getFundedProjectsGrid().getStore().add(result.getList());
      }
    }
,new LoadingMask(view.getFundedProjectsGrid()));
  }
}

Fixed version (ground truth):
/** 
 * Loads the current project linked projects (i.e. funding / funded projects).
 * @param linkedProjectType The linked projects type to load. Set to  {@code null} to load all types.
 */
private void loadLinkedProjects(final LinkedProjectType linkedProjectType){
  if (linkedProjectType == null || linkedProjectType == LinkedProjectType.FUNDING_PROJECT) {
    view.getFundingProjectsGrid().getStore().removeAll();
    view.getFundingProjectsGrid().getStore().add(getProject().getFunding());
  }
  if (linkedProjectType == null || linkedProjectType == LinkedProjectType.FUNDED_PROJECT) {
    view.getFundedProjectsGrid().getStore().removeAll();
    view.getFundedProjectsGrid().getStore().add(getProject().getFunded());
  }
}
Program: 35412
Project: 35412
Buggy source:
@Override public void onRequiredValueChange(RequiredValueEvent event){
  final Integer iterationId=tabPanel != null ? tabPanel.getCurrentIterationId() : null;
  currentPhaseRequiredElements.putActual(iterationId,elementDTO.getId(),event.isValueOn());
  if (isCurrentPhase(getCurrentProject().getCurrentPhase())) {
    activePhaseRequiredElements.putActual(iterationId,elementDTO.getId(),event.isValueOn());
  }
  if (event.isImmediate()) {
    view.getButtonSavePhase().fireEvent(Events.OnClick);
  }
  elementDTO.setFilledIn(currentPhaseRequiredElements.isActuallyTrue(elementDTO.getId()));
  view.getGridRequiredElements().getStore().update(elementDTO);
  elementDTO.getTabPanel().setElementValidity(elementDTO,event.isValueOn());
  refreshRequiredElementContentPanelHeader();
}

Fixed version (ground truth):
@Override public void onRequiredValueChange(RequiredValueEvent event){
  final Integer iterationId=tabPanel != null ? tabPanel.getCurrentIterationId() : null;
  currentPhaseRequiredElements.putActual(iterationId,elementDTO.getId(),event.isValueOn());
  if (isCurrentPhase(getCurrentProject().getCurrentPhase())) {
    activePhaseRequiredElements.putActual(iterationId,elementDTO.getId(),event.isValueOn());
  }
  if (event.isImmediate()) {
    view.getButtonSavePhase().fireEvent(Events.OnClick);
  }
  elementDTO.setFilledIn(currentPhaseRequiredElements.isActuallyTrue(elementDTO.getId()));
  view.getGridRequiredElements().getStore().update(elementDTO);
  if (iterationId != null) {
    elementDTO.getTabPanel().setElementValidity(elementDTO,event.isValueOn());
  }
  refreshRequiredElementContentPanelHeader();
}
Program: 35413
Project: 35413
Buggy source:
public static boolean isGranted(List<OrgUnitProfile> userUnits,OrgUnit targetOrgUnit,GlobalPermissionEnum permission){
  for (  OrgUnitProfile userUnit : userUnits) {
    if (!OrgUnitUtils.areOrgUnitsEqualOrParent(userUnit.getOrgUnit(),targetOrgUnit.getId())) {
      continue;
    }
    if (isGranted(userUnit,permission)) {
      return true;
    }
  }
  return false;
}

Fixed version (ground truth):
public static boolean isGranted(List<OrgUnitProfile> userUnits,OrgUnit targetOrgUnit,GlobalPermissionEnum permission){
  for (  OrgUnitProfile userUnit : userUnits) {
    if (!OrgUnitUtils.areOrgUnitsEqualOrParent(targetOrgUnit,userUnit.getOrgUnit().getId())) {
      continue;
    }
    if (isGranted(userUnit,permission)) {
      return true;
    }
  }
  return false;
}
Program: 35418
Project: 35418
Buggy source:
@Override public Object render(final ContactModelDTO model,final String property,final ColumnData config,final int rowIndex,final int colIndex,final ListStore<ContactModelDTO> store,final Grid<ContactModelDTO> grid){
  final ProjectModelStatus status=!model.isUnderMaintenance() ? model.getStatus() : ProjectModelStatus.UNDER_MAINTENANCE;
  return status != null ? ProjectModelStatus.getName(status) : "String_Node_Str";
}

Fixed version (ground truth):
@Override public Object render(final ContactModelDTO model,final String property,final ColumnData config,final int rowIndex,final int colIndex,final ListStore<ContactModelDTO> store,final Grid<ContactModelDTO> grid){
  ContactModelType type=model.get(property);
  String typeLabel=I18N.CONSTANTS.contactTypeIndividualLabel();
  if (type == ContactModelType.ORGANIZATION) {
    typeLabel=I18N.CONSTANTS.contactTypeOrganizationLabel();
  }
  return typeLabel;
}
Program: 35422
Project: 35422
Buggy source:
@Override public void onPageRequest(PageRequest request){
  setPageTitle(I18N.CONSTANTS.GLOBAL_EXPORT());
}

Fixed version (ground truth):
@Override public void onPageRequest(PageRequest request){
  setPageTitle(I18N.CONSTANTS.contactsExport());
}
Program: 35426
Project: 35426
Buggy source:
@Override public void onCommandSuccess(VoidResult result){
  view.hide();
  N10N.infoNotif(I18N.CONSTANTS.saveExportConfiguration(),I18N.MESSAGES.adminStandardUpdateSuccess(I18N.CONSTANTS.globalExportConfiguration()));
}

Fixed version (ground truth):
@Override public void onCommandSuccess(VoidResult result){
  view.hide();
  N10N.infoNotif(I18N.CONSTANTS.saveExportConfiguration(),I18N.MESSAGES.adminStandardUpdateSuccess(I18N.CONSTANTS.globalContactsExportConfiguration()));
}
Program: 35427
Project: 35427
Buggy source:
@Override public void onCommandFailure(Throwable caught){
  N10N.warn(I18N.CONSTANTS.saveExportConfiguration(),I18N.MESSAGES.adminStandardCreationFailure(I18N.CONSTANTS.globalExportConfiguration()));
}

Fixed version (ground truth):
@Override public void onCommandFailure(Throwable caught){
  N10N.warn(I18N.CONSTANTS.saveExportConfiguration(),I18N.MESSAGES.adminStandardCreationFailure(I18N.CONSTANTS.globalContactsExportConfiguration()));
}
Program: 35428
Project: 35428
Buggy source:
@Override public void onPageRequest(PageRequest request){
  view.clearFrom();
  loadElement();
  setPageTitle(I18N.CONSTANTS.globalExportConfiguration());
}

Fixed version (ground truth):
@Override public void onPageRequest(PageRequest request){
  view.clearFrom();
  loadElement();
  setPageTitle(I18N.CONSTANTS.globalContactsExportConfiguration());
}
Program: 35429
Project: 35429
Buggy source:
@Override public void onPageRequest(PageRequest request){
  setPageTitle(I18N.CONSTANTS.GLOBAL_EXPORT());
}

Fixed version (ground truth):
@Override public void onPageRequest(PageRequest request){
  setPageTitle(I18N.CONSTANTS.projectsExport());
}
Program: 35433
Project: 35433
Buggy source:
@Override public void onCommandSuccess(VoidResult result){
  view.hide();
  N10N.infoNotif(I18N.CONSTANTS.saveExportConfiguration(),I18N.MESSAGES.adminStandardUpdateSuccess(I18N.CONSTANTS.globalExportConfiguration()));
}

Fixed version (ground truth):
@Override public void onCommandSuccess(VoidResult result){
  view.hide();
  N10N.infoNotif(I18N.CONSTANTS.saveExportConfiguration(),I18N.MESSAGES.adminStandardUpdateSuccess(I18N.CONSTANTS.globalProjectsExportConfiguration()));
}
Program: 35434
Project: 35434
Buggy source:
@Override public void onCommandFailure(Throwable caught){
  N10N.warn(I18N.CONSTANTS.saveExportConfiguration(),I18N.MESSAGES.adminStandardCreationFailure(I18N.CONSTANTS.globalExportConfiguration()));
}

Fixed version (ground truth):
@Override public void onCommandFailure(Throwable caught){
  N10N.warn(I18N.CONSTANTS.saveExportConfiguration(),I18N.MESSAGES.adminStandardCreationFailure(I18N.CONSTANTS.globalProjectsExportConfiguration()));
}
Program: 35435
Project: 35435
Buggy source:
@Override public void onPageRequest(PageRequest request){
  view.clearFrom();
  loadElement();
  setPageTitle(I18N.CONSTANTS.globalExportConfiguration());
}

Fixed version (ground truth):
@Override public void onPageRequest(PageRequest request){
  view.clearFrom();
  loadElement();
  setPageTitle(I18N.CONSTANTS.globalProjectsExportConfiguration());
}