nus-yam/ex-repair huggingface dataset:
Program: 35540
Project: 35540
Buggy source:
/** 
 * Shows the given message into the popup.<br/> <br/> There is only one instance of the popup, the previous message may be erased.
 * @param title The title.
 * @param html The message.
 * @param type The message's type.
 */
static void show(final String title,final String html,MessageType type){
  clear();
  popup.setTitle(ClientUtils.isNotBlank(title) ? title : MessageType.getTitle(type));
  popup.setPageMessage(html,type);
  if (!visible) {
    popup.center();
    visible=true;
  }
}

Fixed version (ground truth):
/** 
 * Shows the given message into the popup. There is only one instance of the popup, the previous message may be erased.
 * @param title The title.
 * @param html The message.
 * @param type The message's type.
 */
static void show(final String title,final String html,MessageType type){
  clear();
  popup.setTitle(ClientUtils.isNotBlank(title) ? title : MessageType.getTitle(type));
  popup.setPageMessage(html,type);
  if (!visible) {
    popup.center();
    visible=true;
  }
}
Program: 35541
Project: 35541
Buggy source:
/** 
 * Updates page title. Can be used to update title after asynchronous data loading for example.<br/> The title area is automatically hidden if the given   {@code pageTitle} is invalid.
 * @param pageTitle The new page title.
 */
public void setPageTitle(String pageTitle){
}

Fixed version (ground truth):
/** 
 * Updates page title. Can be used to update title after asynchronous data loading for example. The title area is automatically hidden if the given   {@code pageTitle} is invalid.
 * @param pageTitle The new page title.
 */
public void setPageTitle(String pageTitle){
}
Program: 35542
Project: 35542
Buggy source:
/** 
 * Hides the presenter's popup view.<br/> If the presenter's view is not a   {@link ViewPopupInterface} implementation, the method does nothing.
 */
protected final void hideView(){
  if (isPopupView()) {
    ((ViewPopupInterface)view).hide();
  }
}

Fixed version (ground truth):
/** 
 * Hides the presenter's popup view. If the presenter's view is not a   {@link ViewPopupInterface} implementation, the method does nothing.
 */
protected final void hideView(){
  if (isPopupView()) {
    ((ViewPopupInterface)view).hide();
  }
}
Program: 35543
Project: 35543
Buggy source:
/** 
 * Sets the current presenter page title.<br/> If the presenter's view is a   {@link ViewPopupInterface} implementation, the popup title is dynamically updated.
 * @param title The new page title.
 */
protected final void setPageTitle(String title){
  if (getPage() == null) {
    return;
  }
  getPage().setTitle(title);
  if (isPopupView()) {
    ((ViewPopupInterface)view).setPopupTitle(title);
  }
 else {
    injector.getApplicationPresenter().setPageTitle(title);
  }
}

Fixed version (ground truth):
/** 
 * Sets the current presenter page title. If the presenter's view is a   {@link ViewPopupInterface} implementation, the popup title is dynamically updated.
 * @param title The new page title.
 */
protected final void setPageTitle(String title){
  if (getPage() == null) {
    return;
  }
  getPage().setTitle(title);
  if (isPopupView()) {
    ((ViewPopupInterface)view).setPopupTitle(title);
  }
 else {
    injector.getApplicationPresenter().setPageTitle(title);
  }
}
Program: 35544
Project: 35544
Buggy source:
/** 
 * Checks if a message needs to be displayed in the application header. If it does, the message is sent to the application presenter's view.<br/> <br/> Also check if the   {@code page} is still in progress from retrieved server properties. If this is the case, awarning message is displayed.
 * @param page The accessed page.
 */
private void displayApplicationMessage(final Page page){
}

Fixed version (ground truth):
/** 
 * Checks if a message needs to be displayed in the application header. If it does, the message is sent to the application presenter's view. Also check if the   {@code page} is still in progress from retrieved server properties. If this is the case, awarning message is displayed.
 * @param page The accessed page.
 */
private void displayApplicationMessage(final Page page){
}
Program: 35545
Project: 35545
Buggy source:
/** 
 * Displays the given message at the top of the current page. If the message is   {@code null} or {@code empty}, the message will be hidden.<br/> <br/> <strong>The page message must be initialized in the   {@link #onPageRequest} method.</strong>
 * @param message The message as HTML.
 */
protected final void displayPageMessage(final String message,MessageType type){
  if (isPopupView()) {
    ((ViewPopupInterface)view).setPageMessage(message,type);
  }
 else {
    injector.getApplicationPresenter().setPageMessage(message,type);
  }
}

Fixed version (ground truth):
/** 
 * Displays the given message at the top of the current page. If the message is   {@code null} or {@code empty}, the message will be hidden. <strong>The page message must be initialized in the   {@link #onPageRequest} method.</strong>
 * @param message The message as HTML.
 */
protected final void displayPageMessage(final String message,MessageType type){
  if (isPopupView()) {
    ((ViewPopupInterface)view).setPageMessage(message,type);
  }
 else {
    injector.getApplicationPresenter().setPageMessage(message,type);
  }
}
Program: 35546
Project: 35546
Buggy source:
/** 
 * This method is called when a   {@link PageRequestEvent} is fired <b>and</b> matches with the value from{@link #getPage()}.<br/> This mechanism ensures that method is executed on each page access.
 * @param request The request.
 */
void onPageRequest(final PageRequest request);

Fixed version (ground truth):
/** 
 * This method is called when a   {@link PageRequestEvent} is fired <b>and</b> matches with the value from{@link #getPage()}. This mechanism ensures that method is executed on each page access.
 * @param request The request.
 */
void onPageRequest(final PageRequest request);
Program: 35547
Project: 35547
Buggy source:
/** 
 * This method is called when a   {@link ZoneRequestEvent} is fired <b>and</b> matches with the value from{@link #getZone()}.<br/> This mechanism ensures that method is executed on each zone update.
 * @param zoneRequest The zone request.
 */
void onZoneRequest(final ZoneRequest zoneRequest);

Fixed version (ground truth):
/** 
 * This method is called when a   {@link ZoneRequestEvent} is fired <b>and</b> matches with the value from{@link #getZone()}. This mechanism ensures that method is executed on each zone update.
 * @param zoneRequest The zone request.
 */
void onZoneRequest(final ZoneRequest zoneRequest);
Program: 35548
Project: 35548
Buggy source:
/** 
 * Gets the character indexed by the given <code>index</code> in the alphabet. Indexes start at <code>start</code> and ends at <code>start + 25</code>.<br/> <br/> <ul> <li>start -> a</li> <li>start + 1 -> b</li> <li>start + 2 -> c</li> <li>...</li> <li>start + 25 -> z</li> </ul>
 * @param index The character index.
 * @param upper Upper character?
 * @param start The index of the first letter <code>a</code>.
 * @return The corresponding character.
 */
public static char getLetter(int index,boolean upper,int start){
  index=start > 0 ? index - start : index + start;
  if (index < 0 || index > 25) {
    throw new IllegalArgumentException("String_Node_Str" + index + "String_Node_Str");
  }
  final int shift;
  if (upper) {
    shift=65;
  }
 else {
    shift=97;
  }
  return (char)(index + shift);
}

Fixed version (ground truth):
/** 
 * Gets the character indexed by the given <code>index</code> in the alphabet. Indexes start at <code>start</code> and ends at <code>start + 25</code>. <ul> <li>start → a</li> <li>start + 1 → b</li> <li>start + 2 → c</li> <li>...</li> <li>start + 25 → z</li> </ul>
 * @param index The character index.
 * @param upper Upper character?
 * @param start The index of the first letter <code>a</code>.
 * @return The corresponding character.
 */
public static char getLetter(int index,boolean upper,int start){
  index=start > 0 ? index - start : index + start;
  if (index < 0 || index > 25) {
    throw new IllegalArgumentException("String_Node_Str" + index + "String_Node_Str");
  }
  final int shift;
  if (upper) {
    shift=65;
  }
 else {
    shift=97;
  }
  return (char)(index + shift);
}
Program: 35549
Project: 35549
Buggy source:
/** 
 * Returns if this action can be now performed. A <code>null</code> or empty string means that the action can be perform. A non-empty string means that the action cannot be performed for the moment.<br/> The returned string will be used as the cause of this unavailability.
 * @return The unavailability message, or <code>null</code>.
 */
public abstract String canBePerformed();

Fixed version (ground truth):
/** 
 * Returns if this action can be now performed. A <code>null</code> or empty string means that the action can be perform. A non-empty string means that the action cannot be performed for the moment. The returned string will be used as the cause of this unavailability.
 * @return The unavailability message, or <code>null</code>.
 */
public abstract String canBePerformed();
Program: 35550
Project: 35550
Buggy source:
/** 
 * View revealed callback.<br/> <b>Executed each time the view is revealed.</b>
 */
void onViewRevealed();

Fixed version (ground truth):
/** 
 * View revealed callback. <b>Executed each time the view is revealed.</b>
 */
void onViewRevealed();
Program: 35551
Project: 35551
Buggy source:
/** 
 * Initializes the view components.<br/> <b>Executed only one time on first load.</b>
 */
void initialize();

Fixed version (ground truth):
/** 
 * Initializes the view components. <b>Executed only one time on first load.</b>
 */
void initialize();
Program: 35553
Project: 35553
Buggy source:
@Override public String validate(Field<?> field,String value){
  if (value == null || value.trim().isEmpty()) {
    return null;
  }
  final Computation computation=Computations.parse(value,otherElements);
  if (computation != null && !computation.isBadFormula()) {
    final Set<String> badReferences=computation.getBadReferences();
    if (!badReferences.isEmpty()) {
      final String references=Collections.join(customChoices,"String_Node_Str");
      if (computation.getBadReferences().size() == 1) {
        return I18N.MESSAGES.adminFlexibleComputationRuleBadReference(references);
      }
 else {
        return I18N.MESSAGES.adminFlexibleComputationRuleBadReferences(references);
      }
    }
  }
 else {
    return I18N.CONSTANTS.adminFlexibleComputationRuleBadFormula();
  }
  return null;
}

Fixed version (ground truth):
@Override public String validate(Field<?> field,String value){
  if (value == null || value.trim().isEmpty()) {
    return null;
  }
  final Computation computation=Computations.parse(value,otherElements);
  if (computation != null && !computation.isBadFormula()) {
    final Set<String> badReferences=computation.getBadReferences();
    if (!badReferences.isEmpty()) {
      final String references=Collections.join(badReferences,"String_Node_Str");
      if (computation.getBadReferences().size() == 1) {
        return I18N.MESSAGES.adminFlexibleComputationRuleBadReference(references);
      }
 else {
        return I18N.MESSAGES.adminFlexibleComputationRuleBadReferences(references);
      }
    }
  }
 else {
    return I18N.CONSTANTS.adminFlexibleComputationRuleBadFormula();
  }
  return null;
}
Program: 35554
Project: 35554
Buggy source:
/** 
 * Returns <code>true</code> if this element has a minimum or maximum value constraint.
 * @return <code>true</code> if this element has a minimum or maximum valueconstraint, <code>false</code> otherwise.
 */
public boolean hasConstraints(){
  return getMinimumValueConstraint().get() != null || getMinimumValueConstraint().get() != null;
}

Fixed version (ground truth):
/** 
 * Returns <code>true</code> if this element has a minimum or maximum value constraint.
 * @return <code>true</code> if this element has a minimum or maximum valueconstraint, <code>false</code> otherwise.
 */
public boolean hasConstraints(){
  return getMinimumValueConstraint().get() != null || getMaximumValueConstraint().get() != null;
}
Program: 35555
Project: 35555
Buggy source:
/** 
 * {@inheritDoc}
 */
@Override public void onBind(){
  view.getOrgUnitsTreeGrid().setTreeGridEventHandler(new TreeGridEventHandler<OrgUnitDTO>(){
    @Override public void onRowClickEvent(    final OrgUnitDTO rowElement){
      eventBus.navigateRequest(Page.ORGUNIT_DASHBOARD.requestWith(RequestParameter.ID,rowElement.getId()));
    }
  }
);
  view.getProjectsList().init(RefreshMode.ON_FIRST_TIME,LoadingMode.CHUNK);
  eventBus.addHandler(OfflineEvent.getType(),new OfflineHandler(){
    @Override public void handleEvent(    OfflineEvent event){
      initializeMenuButtons(event.getState());
    }
  }
);
}

Fixed version (ground truth):
/** 
 * {@inheritDoc}
 */
@Override public void onBind(){
  view.getOrgUnitsTreeGrid().setTreeGridEventHandler(new TreeGridEventHandler<OrgUnitDTO>(){
    @Override public void onRowClickEvent(    final OrgUnitDTO rowElement){
      eventBus.navigateRequest(Page.ORGUNIT_DASHBOARD.requestWith(RequestParameter.ID,rowElement.getId()));
    }
  }
);
  view.getProjectsList().init(RefreshMode.ON_FIRST_TIME,LoadingMode.CHUNK);
  view.setReminderOrMonitoredPointHandler(new ReminderOrMonitoredPointHandler(){
    @Override public void onLabelClickEvent(    Integer projectId){
      eventBus.navigateRequest(Page.PROJECT_DASHBOARD.requestWith(RequestParameter.ID,projectId));
    }
  }
);
  eventBus.addHandler(OfflineEvent.getType(),new OfflineHandler(){
    @Override public void handleEvent(    OfflineEvent event){
      initializeMenuButtons(event.getState());
    }
  }
);
}
Program: 35556
Project: 35556
Buggy source:
Object renderActionsForModel(ImportDetails model);

Fixed version (ground truth):
/** 
 * Creates actions buttons for the given model.
 * @param model Details of an import.
 * @return A widget containing the available actions.
 */
Widget renderActionsForModel(ImportDetails model);
Program: 35557
Project: 35557
Buggy source:
@Override public void onMouseOver(MouseOverEvent event){
  view.getChangePasswordHandler().setVisible(canChangeOwnPassword && true);
}

Fixed version (ground truth):
@Override public void onMouseOver(MouseOverEvent event){
  view.getChangePasswordHandler().setVisible(canChangeOwnPassword);
}
Program: 35558
Project: 35558
Buggy source:
/** 
 * {@inheritDoc}
 */
@Override public void onBind(){
  view.getLogoutHandler().addClickHandler(new ClickHandler(){
    @Override public void onClick(    ClickEvent event){
      eventBus.logout();
    }
  }
);
  view.getChangePasswordHandler().addClickHandler(new ClickHandler(){
    @Override public void onClick(    ClickEvent event){
      eventBus.navigateRequest(Page.CHANGE_OWN_PASSWORD.request());
    }
  }
);
  view.getNamePanel().addDomHandler(new MouseOverHandler(){
    @Override public void onMouseOver(    MouseOverEvent event){
      view.getChangePasswordHandler().setVisible(canChangeOwnPassword && true);
    }
  }
,MouseOverEvent.getType());
  view.getNamePanel().addDomHandler(new MouseOutHandler(){
    @Override public void onMouseOut(    MouseOutEvent event){
      view.getChangePasswordHandler().setVisible(false);
    }
  }
,MouseOutEvent.getType());
}

Fixed version (ground truth):
/** 
 * {@inheritDoc}
 */
@Override public void onBind(){
  view.getLogoutHandler().addClickHandler(new ClickHandler(){
    @Override public void onClick(    ClickEvent event){
      eventBus.logout();
    }
  }
);
  view.getChangePasswordHandler().addClickHandler(new ClickHandler(){
    @Override public void onClick(    ClickEvent event){
      eventBus.navigateRequest(Page.CHANGE_OWN_PASSWORD.request());
    }
  }
);
  view.getNamePanel().addDomHandler(new MouseOverHandler(){
    @Override public void onMouseOver(    MouseOverEvent event){
      view.getChangePasswordHandler().setVisible(canChangeOwnPassword);
    }
  }
,MouseOverEvent.getType());
  view.getNamePanel().addDomHandler(new MouseOutHandler(){
    @Override public void onMouseOut(    MouseOutEvent event){
      view.getChangePasswordHandler().setVisible(false);
    }
  }
,MouseOutEvent.getType());
}
Program: 35559
Project: 35559
Buggy source:
@Override public void onClick(ClickEvent event){
  setMenuVisible(false);
  eventBus.navigate(Page.OFFLINE_SELECT_FILES);
}

Fixed version (ground truth):
@Override public void onClick(ClickEvent event){
  if (!view.isEnabled(menuPanel.getTransferFilesAnchor())) {
    return;
  }
  if (lastState == ApplicationState.ONLINE) {
    setMenuVisible(false);
    eventBus.navigate(Page.OFFLINE_SELECT_FILES);
  }
}
Program: 35560
Project: 35560
Buggy source:
private void onStateChange(ApplicationState state){
  view.setStatus(state);
  if (syncHandlerRegistration != null) {
    syncHandlerRegistration.removeHandler();
    syncHandlerRegistration=null;
  }
  if (fileHandlerRegistration != null) {
    fileHandlerRegistration.removeHandler();
    fileHandlerRegistration=null;
  }
  final Anchor syncAnchor=view.getMenuPanel().getUpdateDatabaseAnchor();
  final Anchor fileAnchor=view.getMenuPanel().getTransferFilesAnchor();
switch (state) {
case OFFLINE:
    syncAnchor.getElement().getStyle().setDisplay(Style.Display.NONE);
  fileAnchor.getElement().getStyle().setDisplay(Style.Display.NONE);
RootPanel.getBodyElement().addClassName("String_Node_Str");
break;
case READY_TO_SYNCHRONIZE:
fileAnchor.getElement().getStyle().setDisplay(Style.Display.NONE);
syncAnchor.getElement().getStyle().clearDisplay();
syncAnchor.setText(I18N.CONSTANTS.offlineActionSynchronize());
syncHandlerRegistration=syncAnchor.addClickHandler(new ClickHandler(){
@Override public void onClick(ClickEvent event){
setMenuVisible(false);
pushAndPull();
}
}
);
RootPanel.getBodyElement().addClassName("String_Node_Str");
break;
case ONLINE:
syncAnchor.getElement().getStyle().clearDisplay();
syncAnchor.setText(I18N.CONSTANTS.offlineActionUpdateDatabase());
RootPanel.getBodyElement().removeClassName("String_Node_Str");
syncHandlerRegistration=syncAnchor.addClickHandler(new ClickHandler(){
@Override public void onClick(ClickEvent event){
setMenuVisible(false);
pull();
}
}
);
fileAnchor.getElement().getStyle().clearDisplay();
fileHandlerRegistration=fileAnchor.addClickHandler(new ClickHandler(){
@Override public void onClick(ClickEvent event){
setMenuVisible(false);
eventBus.navigate(Page.OFFLINE_SELECT_FILES);
}
}
);
break;
default :
break;
}
}

Fixed version (ground truth):
private void onStateChange(ApplicationState state){
  this.lastState=state;
  view.setStatus(state);
  final Anchor syncAnchor=view.getMenuPanel().getUpdateDatabaseAnchor();
  final Anchor fileAnchor=view.getMenuPanel().getTransferFilesAnchor();
switch (state) {
case OFFLINE:
    syncAnchor.getElement().getStyle().setDisplay(Style.Display.NONE);
  fileAnchor.getElement().getStyle().setDisplay(Style.Display.NONE);
RootPanel.getBodyElement().addClassName("String_Node_Str");
break;
case READY_TO_SYNCHRONIZE:
fileAnchor.getElement().getStyle().setDisplay(Style.Display.NONE);
syncAnchor.getElement().getStyle().clearDisplay();
syncAnchor.setText(I18N.CONSTANTS.offlineActionSynchronize());
RootPanel.getBodyElement().addClassName("String_Node_Str");
break;
case ONLINE:
syncAnchor.getElement().getStyle().clearDisplay();
syncAnchor.setText(I18N.CONSTANTS.offlineActionUpdateDatabase());
RootPanel.getBodyElement().removeClassName("String_Node_Str");
fileAnchor.getElement().getStyle().clearDisplay();
break;
default :
break;
}
}
Program: 35567
Project: 35567
Buggy source:
@Override public void onCommandSuccess(CreateResult result){
  N10N.infoNotif(I18N.CONSTANTS.infoConfirmation(),I18N.CONSTANTS.createProjectTypeFundingSelectOk());
  final ProjectFundingDTO funding=(ProjectFundingDTO)result.getEntity();
  view.getFundingProjectsGrid().getStore().add(funding);
  getProject().addFunding(funding);
}

Fixed version (ground truth):
@Override public void onCommandSuccess(final VoidResult result){
  loadLinkedProjects(linkedProjectType);
  N10N.notification(I18N.CONSTANTS.infoConfirmation(),I18N.CONSTANTS.linkedProjectUpdateConfirm(),MessageType.INFO);
}
Program: 35568
Project: 35568
Buggy source:
/** 
 * {@inheritDoc}
 */
@Override public void onPageRequest(final PageRequest request){
  final boolean canEditReminders=ProfileUtils.isGranted(auth(),GlobalPermissionEnum.EDIT_PROJECT) && (ProfileUtils.isGranted(auth(),GlobalPermissionEnum.EDIT_ALL_REMINDERS) || ProfileUtils.isGranted(auth(),GlobalPermissionEnum.EDIT_OWN_REMINDERS));
  final boolean canEditMonitoredPoints=ProfileUtils.isGranted(auth(),GlobalPermissionEnum.EDIT_PROJECT) && (ProfileUtils.isGranted(auth(),GlobalPermissionEnum.EDIT_ALL_REMINDERS) || ProfileUtils.isGranted(auth(),GlobalPermissionEnum.EDIT_OWN_REMINDERS));
  view.updateRemindersToolbars(canEditReminders,canEditMonitoredPoints);
  final boolean canRelateProject=ProfileUtils.isGranted(auth(),GlobalPermissionEnum.RELATE_PROJECT);
  final boolean canCreateProject=ProfileUtils.isGranted(auth(),GlobalPermissionEnum.CREATE_PROJECT,GlobalPermissionEnum.EDIT_PROJECT);
  view.updateLinkedProjectsToolbars(canRelateProject,canCreateProject);
  loadReminders();
  loadMonitoredPoints();
  loadLinkedProjects(null);
  view.getPhasesWidget().refresh(getProject());
}

Fixed version (ground truth):
/** 
 * {@inheritDoc}
 */
@Override public void onPageRequest(final PageRequest request){
  final boolean canEditReminders=ProfileUtils.isGranted(auth(),GlobalPermissionEnum.EDIT_PROJECT) && (ProfileUtils.isGranted(auth(),GlobalPermissionEnum.EDIT_ALL_REMINDERS) || ProfileUtils.isGranted(auth(),GlobalPermissionEnum.EDIT_OWN_REMINDERS));
  final boolean canEditMonitoredPoints=ProfileUtils.isGranted(auth(),GlobalPermissionEnum.EDIT_PROJECT) && (ProfileUtils.isGranted(auth(),GlobalPermissionEnum.EDIT_ALL_REMINDERS) || ProfileUtils.isGranted(auth(),GlobalPermissionEnum.EDIT_OWN_REMINDERS));
  view.updateRemindersToolbars(canEditReminders,canEditMonitoredPoints);
  final boolean canRelateProject=ProfileUtils.isGranted(auth(),GlobalPermissionEnum.RELATE_PROJECT);
  final boolean canCreateProject=ProfileUtils.isGranted(auth(),GlobalPermissionEnum.CREATE_PROJECT,GlobalPermissionEnum.EDIT_PROJECT);
  view.updateLinkedProjectsToolbars(canRelateProject,canCreateProject);
  loadReminders();
  loadMonitoredPoints();
  view.getFundingProjectsColumnsProvider().setProject(getProject());
  loadLinkedProjects(null);
  view.getPhasesWidget().refresh(getProject());
}
Program: 35569
Project: 35569
Buggy source:
@Override public void onUpdate(final UpdateEvent event){
  if (event.concern(UpdateEvent.REMINDER_UPDATED)) {
    final ReminderType reminderType=event.getParam(0);
    if (reminderType == ReminderType.REMINDER) {
      loadReminders();
    }
 else     if (reminderType == ReminderType.MONITORED_POINT) {
      loadMonitoredPoints();
    }
  }
 else   if (event.concern(UpdateEvent.LINKED_PROJECT_UPDATE)) {
    final LinkedProjectType linkedProjectType=event.getParam(0);
    loadLinkedProjects(linkedProjectType);
  }
 else   if (event.concern(UpdateEvent.LINKED_PROJECT_DELETE)) {
    final LinkedProjectType linkedProjectType=event.getParam(0);
    final ProjectFundingDTO linkedProject=event.getParam(1);
    onLinkedProjectDeleteAction(linkedProjectType,linkedProject);
  }
 else   if (event.concern(UpdateEvent.PROJECT_CREATE)) {
    final CreateProjectPresenter.Mode mode=event.getParam(0);
switch (mode) {
case FUNDING_ANOTHER_PROJECT:
      createFundingLink(event.<ProjectDTO>getParam(1),event.<Double>getParam(2));
    break;
case FUNDED_BY_ANOTHER_PROJECT:
  break;
default :
break;
}
}
}

Fixed version (ground truth):
@Override public void onUpdate(final UpdateEvent event){
  if (event.concern(UpdateEvent.REMINDER_UPDATED)) {
    final ReminderType reminderType=event.getParam(0);
    if (reminderType == ReminderType.REMINDER) {
      loadReminders();
    }
 else     if (reminderType == ReminderType.MONITORED_POINT) {
      loadMonitoredPoints();
    }
  }
 else   if (event.concern(UpdateEvent.LINKED_PROJECT_UPDATE)) {
    final LinkedProjectType linkedProjectType=event.getParam(0);
    loadLinkedProjects(linkedProjectType);
  }
 else   if (event.concern(UpdateEvent.LINKED_PROJECT_DELETE)) {
    final LinkedProjectType linkedProjectType=event.getParam(0);
    final ProjectFundingDTO linkedProject=event.getParam(1);
    onLinkedProjectDeleteAction(linkedProjectType,linkedProject);
  }
 else   if (event.concern(UpdateEvent.PROJECT_CREATE)) {
    final CreateProjectPresenter.Mode mode=event.getParam(0);
switch (mode) {
case FUNDING_ANOTHER_PROJECT:
      loadLinkedProjects(LinkedProjectType.FUNDING_PROJECT);
    break;
case FUNDED_BY_ANOTHER_PROJECT:
  loadLinkedProjects(LinkedProjectType.FUNDED_PROJECT);
break;
default :
break;
}
}
}
Program: 35570
Project: 35570
Buggy source:
/** 
 * Asks for a refresh of the projects list. If the refreshing mode is set to   {@link RefreshMode#AUTOMATIC}, the list will be refreshed immediately. Otherwise, the list will be refreshed depending on the selected refreshing mode.
 * @param viewOwnOrManage If the projects that the user own or manage must be included in the list (no matter of their organizational units).
 * @param orgUnitsIds The list of ids of the organizational units for which the projects will be retrieved. The projects of each the sub-organizational units are retrieved automatically.
 */
public void refresh(final boolean viewOwnOrManage,final Integer... orgUnitsIds){
  final boolean refreshEnabled=refreshMode == RefreshMode.BUTTON || refreshMode == RefreshMode.BOTH;
  final boolean exportEnabled=ProfileUtils.isGranted(auth(),GlobalPermissionEnum.GLOBAL_EXPORT);
  view.updateToolbar(refreshEnabled,exportEnabled);
  view.updateAccessibilityState(ProfileUtils.isGranted(auth(),GlobalPermissionEnum.VIEW_PROJECT));
  final List<Integer> orgUnitsIdsAsList=orgUnitsIds != null ? Arrays.asList(orgUnitsIds) : null;
  this.orgUnitsIds.clear();
  this.orgUnitsIds.addAll(orgUnitsIdsAsList);
  command=new GetProjects();
  command.setOrgUnitsIds(orgUnitsIdsAsList);
  command.setViewOwnOrManage(viewOwnOrManage);
  if (refreshMode == RefreshMode.AUTOMATIC || (refreshMode == RefreshMode.BOTH && !loaded)) {
    refreshProjectGrid(command);
    loaded=true;
  }
}

Fixed version (ground truth):
/** 
 * Asks for a refresh of the projects list. If the refreshing mode is set to   {@link RefreshMode#AUTOMATIC}, the list will be refreshed immediately. Otherwise, the list will be refreshed depending on the selected refreshing mode.
 * @param viewOwnOrManage If the projects that the user own or manage must be included in the list (no matter of their organizational units).
 * @param orgUnitsIds The list of ids of the organizational units for which the projects will be retrieved. The projects of each the sub-organizational units are retrieved automatically.
 */
public void refresh(final boolean viewOwnOrManage,final Integer... orgUnitsIds){
  final boolean refreshEnabled=refreshMode == RefreshMode.BUTTON || refreshMode == RefreshMode.BOTH;
  final boolean exportEnabled=ProfileUtils.isGranted(auth(),GlobalPermissionEnum.GLOBAL_EXPORT);
  view.updateToolbar(refreshEnabled,exportEnabled);
  view.updateAccessibilityState(ProfileUtils.isGranted(auth(),GlobalPermissionEnum.VIEW_PROJECT));
  final List<Integer> orgUnitsIdsAsList=orgUnitsIds != null ? Arrays.asList(orgUnitsIds) : null;
  this.orgUnitsIds.clear();
  this.orgUnitsIds.addAll(orgUnitsIdsAsList);
  command=new GetProjects(orgUnitsIdsAsList,null);
  command.setViewOwnOrManage(viewOwnOrManage);
  if (refreshMode == RefreshMode.AUTOMATIC || (refreshMode == RefreshMode.BOTH && !loaded)) {
    refreshProjectGrid(command);
    loaded=true;
  }
}
Program: 35571
Project: 35571
Buggy source:
/** 
 * <p> Initializes a new   {@link User} with a secure changePasswordKey.</p> <p> Sets the following user properties: <ul> <li> {@code name}</li> <li>  {@code email} (populated with given one)</li><li> {@code newUser} (set to {@code true})</li> <li>  {@code locale} (populated with given one)</li><li> {@code changePasswordKey} (see {@link SecureTokenGenerator#generate()})</li> </ul> </p>
 * @param email The user email value.
 * @param name The user name value.
 * @param locale The user locale value.
 * @return the initialized new user.
 */
private static User createNewUser(final String email,final String name,final String locale){
  final User user=new User();
  user.setEmail(email);
  user.setName(name);
  user.setNewUser(true);
  user.setLocale(locale);
  user.setChangePasswordKey(SecureTokenGenerator.generate());
  return user;
}

Fixed version (ground truth):
/** 
 * <p> Initializes a new   {@link User} with a secure changePasswordKey.</p> <p> Sets the following user properties: <ul> <li> {@code name}</li> <li>  {@code email} (populated with given one)</li><li> {@code newUser} (set to {@code true})</li> <li>  {@code locale} (populated with given one)</li><li> {@code changePasswordKey} (see {@link SecureTokenGenerator#generate()})</li> </ul> </p>
 * @param email The user email value.
 * @param name The user name value.
 * @param locale The user locale value.
 * @return the initialized new user.
 */
private static User createNewUser(final String email,final String name,final String locale){
  final User user=new User();
  user.setEmail(email);
  user.setName(name);
  user.setNewUser(true);
  user.setLocale(locale);
  user.setChangePasswordKey(SecureTokenGenerator.generate());
  user.setActive(Boolean.TRUE);
  return user;
}
Program: 35572
Project: 35572
Buggy source:
public String getCurrentPassword(){
  return currentPassword;
}

Fixed version (ground truth):
/** 
 * Retrieves the current password.
 * @return The current password.
 */
public String getCurrentPassword(){
  return currentPassword;
}
Program: 35573
Project: 35573
Buggy source:
public String getConfirmNewPassword(){
  return confirmNewPassword;
}

Fixed version (ground truth):
/** 
 * Retrieves the password confirmation.
 * @return The password confirmation.
 */
public String getConfirmNewPassword(){
  return confirmNewPassword;
}
Program: 35574
Project: 35574
Buggy source:
public String getNewPassword(){
  return newPassword;
}

Fixed version (ground truth):
/** 
 * Retrieves the new password.
 * @return The new password.
 */
public String getNewPassword(){
  return newPassword;
}
Program: 35575
Project: 35575
Buggy source:
public static <C extends Collection<String>>void offlineNotif(final String title,final Map<String,C> items){
  notification(title,items,MessageType.OFFLINE);
  INJECTOR.getEventBus().updateZoneRequest(Zone.OFFLINE_BANNER.requestWith(RequestParameter.SHOW_BRIEFLY,true));
}

Fixed version (ground truth):
public static <C extends Collection<String>>void offlineNotif(final String title,final Map<String,C> items,EventBus eventBus){
  notification(title,items,MessageType.OFFLINE);
  if (eventBus != null) {
    eventBus.updateZoneRequest(Zone.OFFLINE_BANNER.requestWith(RequestParameter.SHOW_BRIEFLY,true));
  }
}
Program: 35576
Project: 35576
Buggy source:
/** 
 * {@inheritDoc}
 */
@Override public void onPageRequest(final PageRequest request){
  loadReminders();
  loadMonitoredPoints();
  initializeMenuButtons();
  loadOrgUnits();
  view.getProjectsList().refresh(true,auth().getOrgUnitId());
  final boolean userIsDifferent=auth().getUserId() != null && !auth().getUserId().equals(lastUserId);
  final boolean userHasSynchronized=UpdateDates.getDatabaseUpdateDate(auth()) != null;
  if (userIsDifferent && !userHasSynchronized) {
    N10N.info(I18N.CONSTANTS.offline(),I18N.CONSTANTS.sigmahOfflineWelcome());
  }
  lastUserId=auth().getUserId();
}

Fixed version (ground truth):
/** 
 * {@inheritDoc}
 */
@Override public void onPageRequest(final PageRequest request){
  loadReminders();
  loadMonitoredPoints();
  initializeMenuButtons();
  loadOrgUnits();
  view.getProjectsList().refresh(true,auth().getOrgUnitId());
  final boolean userIsDifferent=auth().getUserId() != null && !auth().getUserId().equals(lastUserId);
  final boolean userHasSynchronized=UpdateDates.getDatabaseUpdateDate(auth()) != null;
  if (userIsDifferent && !userHasSynchronized) {
    N10N.confirmation(I18N.CONSTANTS.offline(),I18N.CONSTANTS.sigmahOfflineWelcome(),new ConfirmCallback(){
      @Override public void onAction(){
        eventBus.updateZoneRequest(Zone.OFFLINE_BANNER.requestWith(RequestParameter.PULL_DATABASE,true));
      }
    }
);
  }
  lastUserId=auth().getUserId();
}
Program: 35578
Project: 35578
Buggy source:
/** 
 * {@inheritDoc}
 */
@Override public void onZoneRequest(ZoneRequest zoneRequest){
  final Boolean showBriefly=zoneRequest.getData(RequestParameter.SHOW_BRIEFLY);
  if (showBriefly != null && showBriefly) {
    forceOpen=true;
    updateMenuVisibility();
    new Timer(){
      @Override public void run(){
        forceOpen=false;
        updateMenuVisibility();
      }
    }
.schedule(AUTOCLOSE_TIME);
  }
}

Fixed version (ground truth):
/** 
 * {@inheritDoc}
 */
@Override public void onZoneRequest(ZoneRequest zoneRequest){
  final Boolean showBriefly=zoneRequest.getData(RequestParameter.SHOW_BRIEFLY);
  final Boolean pullDatabase=zoneRequest.getData(RequestParameter.PULL_DATABASE);
  if (showBriefly != null && showBriefly) {
    forceOpen=true;
    updateMenuVisibility();
    new Timer(){
      @Override public void run(){
        forceOpen=false;
        updateMenuVisibility();
      }
    }
.schedule(AUTOCLOSE_TIME);
  }
  if (pullDatabase != null && pullDatabase) {
    pull();
  }
}
Program: 35579
Project: 35579
Buggy source:
/** 
 * {@inheritDoc}
 */
@Override public Status onFailure(final Throwable e){
  if (e instanceof IncompatibleRemoteServiceException) {
    if (Log.isErrorEnabled()) {
      Log.error("String_Node_Str",e);
    }
    N10N.errorNotif(I18N.CONSTANTS.incompatibleRemoteServiceException());
    return Status.RETRY_OFFLINE;
  }
 else   if (e instanceof InvocationException) {
    if (Log.isErrorEnabled()) {
      Log.error("String_Node_Str",e);
    }
    N10N.errorNotif("String_Node_Str");
    return Status.RETRY_OFFLINE;
  }
 else   if (e instanceof InvalidSessionException) {
    if (Log.isDebugEnabled()) {
      Log.debug("String_Node_Str");
    }
    eventBus.logout();
    return Status.STOP;
  }
 else   if (e instanceof UnauthorizedAccessException) {
    if (Log.isDebugEnabled()) {
      Log.debug("String_Node_Str",e);
    }
    N10N.error(I18N.CONSTANTS.navigation_unauthorized_action());
    return Status.STOP;
  }
 else   if (e instanceof FunctionalException) {
    if (Log.isWarnEnabled()) {
      Log.warn("String_Node_Str",e);
    }
    return Status.CONTINUE;
  }
 else   if (e instanceof CommandException) {
    if (Log.isErrorEnabled()) {
      Log.error("String_Node_Str",e);
    }
    return Status.CONTINUE;
  }
 else {
    if (Log.isFatalEnabled()) {
      Log.fatal("String_Node_Str",e);
    }
    return Status.CONTINUE;
  }
}

Fixed version (ground truth):
/** 
 * {@inheritDoc}
 */
@Override public Status onFailure(final Throwable e){
  if (e instanceof IncompatibleRemoteServiceException) {
    if (Log.isErrorEnabled()) {
      Log.error("String_Node_Str",e);
    }
    N10N.error(I18N.CONSTANTS.incompatibleRemoteServiceException());
    return Status.RETRY_OFFLINE;
  }
 else   if (e instanceof InvocationException) {
    if (Log.isErrorEnabled()) {
      Log.error("String_Node_Str",e);
    }
    N10N.errorNotif("String_Node_Str");
    return Status.RETRY_OFFLINE;
  }
 else   if (e instanceof InvalidSessionException) {
    if (Log.isDebugEnabled()) {
      Log.debug("String_Node_Str");
    }
    eventBus.logout();
    return Status.STOP;
  }
 else   if (e instanceof UnauthorizedAccessException) {
    if (Log.isDebugEnabled()) {
      Log.debug("String_Node_Str",e);
    }
    N10N.error(I18N.CONSTANTS.navigation_unauthorized_action());
    return Status.STOP;
  }
 else   if (e instanceof FunctionalException) {
    if (Log.isWarnEnabled()) {
      Log.warn("String_Node_Str",e);
    }
    return Status.CONTINUE;
  }
 else   if (e instanceof CommandException) {
    if (Log.isErrorEnabled()) {
      Log.error("String_Node_Str",e);
    }
    return Status.CONTINUE;
  }
 else {
    if (Log.isFatalEnabled()) {
      Log.fatal("String_Node_Str",e);
    }
    return Status.CONTINUE;
  }
}
Program: 35580
Project: 35580
Buggy source:
/** 
 * {@inheritDoc}
 */
@Override protected String loadModelHeader(final OrgUnitModelDTO model){
  nameField.setValue(model.getName());
  typeField.setValue(model.getTitle());
  statusField.setValue(new EnumModel<ProjectModelStatus>(model.getStatus()));
  getMaintenanceGroupField().setVisible(model.getStatus() == ProjectModelStatus.USED || model.getStatus() == ProjectModelStatus.UNDER_MAINTENANCE);
  getUnderMaintenanceField().setValue(model.getDateMaintenance() != null);
  getMaintenanceDateField().setValue(model.getDateMaintenance());
  getMaintenanceTimeField().setValue(model.getDateMaintenance() != null ? getMaintenanceTimeField().findModel(model.getDateMaintenance()) : null);
  hasBudgetField.setValue(model.getHasBudget());
  canContainProjectsField.setValue(model.getCanContainProjects());
  return model.getName();
}

Fixed version (ground truth):
/** 
 * {@inheritDoc}
 */
@Override protected String loadModelHeader(final OrgUnitModelDTO model){
  nameField.setValue(model.getName());
  typeField.setValue(model.getTitle());
  statusField.setValue(new EnumModel<ProjectModelStatus>(model.getStatus()));
  getMaintenanceGroupField().setVisible(model.getStatus() == ProjectModelStatus.USED || model.isUnderMaintenance());
  getUnderMaintenanceField().setValue(model.getDateMaintenance() != null);
  getMaintenanceDateField().setValue(model.getDateMaintenance());
  getMaintenanceTimeField().setValue(model.getDateMaintenance() != null ? getMaintenanceTimeField().findModel(model.getDateMaintenance()) : null);
  hasBudgetField.setValue(model.getHasBudget());
  canContainProjectsField.setValue(model.getCanContainProjects());
  return model.getName();
}
Program: 35581
Project: 35581
Buggy source:
/** 
 * {@inheritDoc}
 */
@Override protected String loadModelHeader(final ProjectModelDTO model){
  nameField.setValue(model.getName());
  statusField.setValue(new EnumModel<ProjectModelStatus>(model.getStatus()));
  modelTypeField.setValue(projectTypeProvider.getProjectModelType(model));
  getMaintenanceGroupField().setVisible(model.getStatus() == ProjectModelStatus.USED || model.getStatus() == ProjectModelStatus.UNDER_MAINTENANCE);
  getUnderMaintenanceField().setValue(model.getDateMaintenance() != null);
  getMaintenanceDateField().setValue(model.getDateMaintenance());
  getMaintenanceTimeField().setValue(model.getDateMaintenance() != null ? getMaintenanceTimeField().findModel(model.getDateMaintenance()) : null);
  statusField.setEnabled(model.getDateMaintenance() == null);
  return model.getName();
}

Fixed version (ground truth):
/** 
 * {@inheritDoc}
 */
@Override protected String loadModelHeader(final ProjectModelDTO model){
  nameField.setValue(model.getName());
  statusField.setValue(new EnumModel<ProjectModelStatus>(model.getStatus()));
  modelTypeField.setValue(projectTypeProvider.getProjectModelType(model));
  getMaintenanceGroupField().setVisible(model.getStatus() == ProjectModelStatus.USED || model.isUnderMaintenance());
  getUnderMaintenanceField().setValue(model.getDateMaintenance() != null);
  getMaintenanceDateField().setValue(model.getDateMaintenance());
  getMaintenanceTimeField().setValue(model.getDateMaintenance() != null ? getMaintenanceTimeField().findModel(model.getDateMaintenance()) : null);
  statusField.setEnabled(model.getDateMaintenance() == null);
  return model.getName();
}
Program: 35582
Project: 35582
Buggy source:
private static OpenDatabaseRequest openUserDatabase(final String email){
  if (database != null) {
    return new AlreadyOpenedDatabaseRequest(database);
  }
  if (email == null) {
    return new NoopDatabaseRequest();
  }
  if (!isSupported()) {
    Log.warn("String_Node_Str");
    return new NoopDatabaseRequest();
  }
  if (!GWT.isProdMode()) {
    Log.warn("String_Node_Str");
    return new NoopDatabaseRequest();
  }
switch (state) {
case CLOSED:
    state=State.OPENING;
  final IndexedDB indexedDB=new IndexedDB();
final NativeOpenDatabaseRequest openDatabaseRequest=indexedDB.open(email,VERSION);
openDatabaseRequest.addSuccessHandler(new JavaScriptEvent(){
@Override public void onEvent(JavaScriptObject event){
  database=openDatabaseRequest.getResult();
  state=State.OPENED;
  for (  final AlreadyOpenedDatabaseRequest listener : listenerQueue) {
    listener.setResult(database);
  }
}
}
);
openDatabaseRequest.addUpgradeNeededHandler(new JavaScriptEvent<IDBVersionChangeEvent>(){
@Override public void onEvent(IDBVersionChangeEvent event){
upgradeDatabase(openDatabaseRequest.getResult(),event,email);
}
}
);
return openDatabaseRequest;
case OPENING:
final AlreadyOpenedDatabaseRequest listener=new AlreadyOpenedDatabaseRequest();
listenerQueue.add(listener);
return listener;
case OPENED:
return new AlreadyOpenedDatabaseRequest(database);
default :
return new NoopDatabaseRequest();
}
}

Fixed version (ground truth):
private static OpenDatabaseRequest openUserDatabase(final String email){
  if (database != null) {
    if (database.getName().equals(email)) {
      return new AlreadyOpenedDatabaseRequest(database);
    }
 else {
      state=State.CLOSED;
      database.close();
      database=null;
    }
  }
  if (email == null) {
    return new NoopDatabaseRequest();
  }
  if (!isSupported()) {
    Log.warn("String_Node_Str");
    return new NoopDatabaseRequest();
  }
  if (!GWT.isProdMode()) {
    Log.info("String_Node_Str");
    return new NoopDatabaseRequest();
  }
switch (state) {
case CLOSED:
    state=State.OPENING;
  final IndexedDB indexedDB=new IndexedDB();
final NativeOpenDatabaseRequest openDatabaseRequest=indexedDB.open(email,VERSION);
openDatabaseRequest.addSuccessHandler(new JavaScriptEvent(){
@Override public void onEvent(JavaScriptObject event){
  database=openDatabaseRequest.getResult();
  state=State.OPENED;
  for (  final AlreadyOpenedDatabaseRequest listener : listenerQueue) {
    listener.setResult(database);
  }
}
}
);
openDatabaseRequest.addUpgradeNeededHandler(new JavaScriptEvent<IDBVersionChangeEvent>(){
@Override public void onEvent(IDBVersionChangeEvent event){
upgradeDatabase(openDatabaseRequest.getResult(),event,email);
}
}
);
return openDatabaseRequest;
case OPENING:
final AlreadyOpenedDatabaseRequest listener=new AlreadyOpenedDatabaseRequest();
listenerQueue.add(listener);
return listener;
case OPENED:
return new AlreadyOpenedDatabaseRequest(database);
default :
return new NoopDatabaseRequest();
}
}
Program: 35583
Project: 35583
Buggy source:
private static void assertDesignPrivileges(User user,UserDatabase database){
  if (!database.isAllowedDesign(user)) {
    throw new IllegalAccessError();
  }
}

Fixed version (ground truth):
private static void assertDesignPrivileges(User user,UserDatabase database) throws UnauthorizedAccessException {
  if (!database.isAllowedDesign(user)) {
    throw new UnauthorizedAccessException("String_Node_Str" + database.getId() + "String_Node_Str");
  }
}
Program: 35584
Project: 35584
Buggy source:
/** 
 * {@inheritDoc}
 */
@Override public Activity create(final PropertyMap properties,final UserExecutionContext context){
  final UserDatabase database=getDatabase(properties);
  assertDesignPrivileges(context.getUser(),database);
  final Activity activity=new Activity();
  activity.setDatabase(database);
  activity.setSortOrder(calculateNextSortOrderIndex(database.getId()));
  activity.setLocationType(getLocationType(database,properties,context.getUser()));
  applyProperties(activity,properties);
  return activityDAO.persist(activity,context.getUser());
}

Fixed version (ground truth):
/** 
 * {@inheritDoc}
 */
@Override public Activity create(final PropertyMap properties,final UserExecutionContext context) throws UnauthorizedAccessException {
  final UserDatabase database=getDatabase(properties);
  assertDesignPrivileges(context.getUser(),database);
  final Activity activity=new Activity();
  activity.setDatabase(database);
  activity.setSortOrder(calculateNextSortOrderIndex(database.getId()));
  activity.setLocationType(getLocationType(database,properties,context.getUser()));
  applyProperties(activity,properties);
  return activityDAO.persist(activity,context.getUser());
}
Program: 35585
Project: 35585
Buggy source:
/** 
 * {@inheritDoc}
 */
@Override public Activity update(final Integer entityId,final PropertyMap changes,final UserExecutionContext context){
  final Activity activity=activityDAO.findById(entityId);
  assertDesignPrivileges(context.getUser(),activity.getDatabase());
  applyProperties(activity,changes);
  return activityDAO.persist(activity,context.getUser());
}

Fixed version (ground truth):
/** 
 * {@inheritDoc}
 */
@Override public Activity update(final Integer entityId,final PropertyMap changes,final UserExecutionContext context) throws UnauthorizedAccessException {
  final Activity activity=activityDAO.findById(entityId);
  assertDesignPrivileges(context.getUser(),activity.getDatabase());
  applyProperties(activity,changes);
  return activityDAO.persist(activity,context.getUser());
}
Program: 35587
Project: 35587
Buggy source:
/** 
 * Builds the developpers and contributors panel.
 * @return The panel.
 */
private static Widget getDevelopersContributorsPanel(){
  final Grid grid=new Grid(2,2);
  grid.setCellPadding(0);
  grid.setCellSpacing(0);
  grid.addStyleName("String_Node_Str");
  grid.setText(0,0,I18N.CONSTANTS.sigmah_developers());
  grid.getCellFormatter().addStyleName(0,0,"String_Node_Str");
  grid.setText(0,1,I18N.CONSTANTS.sigmah_contributors());
  grid.getCellFormatter().addStyleName(0,1,"String_Node_Str");
  StringBuilder sb=new StringBuilder();
  for (  final ApplicationInfo.ApplicationDeveloper dev : info.getDeveloppers()) {
    sb.append("String_Node_Str");
    sb.append(dev.getName());
    sb.append("String_Node_Str");
    sb.append(dev.getEmail());
    sb.append(')');
    sb.append("String_Node_Str");
  }
  grid.setHTML(1,0,sb.toString());
  grid.getCellFormatter().setVerticalAlignment(1,0,HasVerticalAlignment.ALIGN_TOP);
  sb=new StringBuilder();
  for (  final ApplicationInfo.ApplicationContributor con : info.getContributors()) {
    sb.append("String_Node_Str");
    sb.append(con.getName());
    sb.append("String_Node_Str");
    sb.append(con.getEmail());
    sb.append(')');
    sb.append("String_Node_Str");
  }
  grid.setHTML(1,1,sb.toString());
  grid.getCellFormatter().setVerticalAlignment(1,1,HasVerticalAlignment.ALIGN_TOP);
  return grid;
}

Fixed version (ground truth):
/** 
 * Builds the developpers and contributors panel.
 * @return The panel.
 */
private static Widget getDevelopersContributorsPanel(){
  final Grid grid=new Grid(2,2);
  grid.setCellPadding(0);
  grid.setCellSpacing(0);
  grid.addStyleName("String_Node_Str");
  grid.setHeight("String_Node_Str");
  grid.setText(0,0,I18N.CONSTANTS.sigmah_developers());
  grid.getCellFormatter().addStyleName(0,0,"String_Node_Str");
  grid.setText(0,1,I18N.CONSTANTS.sigmah_contributors());
  grid.getCellFormatter().addStyleName(0,1,"String_Node_Str");
  StringBuilder sb=new StringBuilder();
  for (  final ApplicationInfo.ApplicationDeveloper dev : info.getDeveloppers()) {
    sb.append("String_Node_Str");
    sb.append(dev.getName());
    sb.append("String_Node_Str");
    sb.append(dev.getEmail());
    sb.append("String_Node_Str");
    sb.append(dev.getEmail());
    sb.append("String_Node_Str");
  }
  grid.setHTML(1,0,sb.toString());
  grid.getCellFormatter().setVerticalAlignment(1,0,HasVerticalAlignment.ALIGN_TOP);
  sb=new StringBuilder();
  for (  final ApplicationInfo.ApplicationContributor con : info.getContributors()) {
    sb.append("String_Node_Str");
    sb.append(con.getName());
    sb.append("String_Node_Str");
    sb.append(con.getEmail());
    sb.append("String_Node_Str");
    sb.append(con.getEmail());
    sb.append("String_Node_Str");
  }
  grid.setHTML(1,1,sb.toString());
  grid.getCellFormatter().setVerticalAlignment(1,1,HasVerticalAlignment.ALIGN_TOP);
  return grid;
}