Program: 35657
Project: 35657
Buggy source:
public ProjectDashboardView(Authentication authentication,Dispatcher dispatcher,ProjectPresenter projectPresenter){
  this.authentication=authentication;
  this.dispatcher=dispatcher;
  this.projectPresenter=projectPresenter;
  final BorderLayout borderLayout=new BorderLayout();
  borderLayout.setContainerStyle("String_Node_Str");
  setLayout(borderLayout);
  ListStore<FlexibleElementDTO> storeRequiredElements=new ListStore<FlexibleElementDTO>();
  gridRequiredElements=new Grid<FlexibleElementDTO>(storeRequiredElements,getRequiredElementsColumModel());
  gridRequiredElements.setAutoExpandColumn("String_Node_Str");
  gridRequiredElements.getView().setForceFit(true);
  tabPanelPhases=new TabPanel();
  tabPanelPhases.setPlain(true);
  toolBar=new ToolBar();
  toolBar.setAlignment(HorizontalAlignment.LEFT);
  toolBar.setBorders(false);
  buttonSavePhase=new Button(I18N.CONSTANTS.projectSavePhaseButton(),IconImageBundle.ICONS.save());
  buttonActivatePhase=new Button(I18N.CONSTANTS.projectClosePhaseButton(),IconImageBundle.ICONS.activate());
  buttonPhaseGuide=new Button(I18N.CONSTANTS.projectPhaseGuideHeader(),IconImageBundle.ICONS.info());
  buttonActivatePhase.setEnabled(false);
  buttonSavePhase.setEnabled(false);
  buttonPhaseGuide.setEnabled(false);
  toolBar.add(buttonActivatePhase);
  toolBar.add(new SeparatorToolItem());
  toolBar.add(buttonSavePhase);
  toolBar.add(new SeparatorToolItem());
  toolBar.add(buttonPhaseGuide);
  panelProjectModel=new LayoutContainer(new BorderLayout());
  panelProjectModel.setBorders(false);
  panelProjectModel.addStyleName("String_Node_Str");
  panelSelectedPhase=new LayoutContainer(new FitLayout());
  final BorderLayoutData wd=new BorderLayoutData(LayoutRegion.WEST,250);
  wd.setMargins(new Margins(0,4,4,4));
  requiredElementContentPanel=new ContentPanel(new FitLayout());
  requiredElementContentPanel.add(gridRequiredElements);
  panelProjectModel.add(requiredElementContentPanel,wd);
  final BorderLayoutData cd=new BorderLayoutData(LayoutRegion.CENTER);
  cd.setMargins(new Margins(0,4,4,0));
  final ContentPanel cp2=new ContentPanel(new FitLayout());
  cp2.setHeading(I18N.CONSTANTS.phaseDetails());
  cp2.setScrollMode(Scroll.AUTOY);
  cp2.setTopComponent(toolBar);
  cp2.add(panelSelectedPhase,new FitData(new Margins(4)));
  panelProjectModel.add(cp2,cd);
  panelReminders=getRemindersPanel();
  panelMonitoredPoints=getMonitoredPointsPanel();
  final VBoxLayout vLayout=new VBoxLayout();
  vLayout.setVBoxLayoutAlign(VBoxLayoutAlign.STRETCH);
  final ContentPanel westPanel=new ContentPanel(vLayout);
  westPanel.setHeading(I18N.CONSTANTS.reminders());
  final VBoxLayoutData flex=new VBoxLayoutData(new Margins(0,0,5,0));
  flex.setFlex(1);
  westPanel.add(panelReminders,flex);
  westPanel.add(panelMonitoredPoints,flex);
  buildFinancialProjectsPanel();
  buildLocalPartnerProjectsPanel();
  final HBoxLayout layout=new StylableHBoxLayout("String_Node_Str");
  layout.setHBoxLayoutAlign(HBoxLayoutAlign.STRETCH);
  final ContentPanel southPanel=new ContentPanel(layout);
  southPanel.setHeading(I18N.CONSTANTS.projectLinkedProjects());
  panelFinancialProjects.setWidth("String_Node_Str");
  panelLocalProjects.setWidth("String_Node_Str");
  southPanel.add(panelFinancialProjects,new HBoxLayoutData(0,2,0,0));
  southPanel.add(panelLocalProjects,new HBoxLayoutData(0,0,0,2));
  final BorderLayoutData southData=new BorderLayoutData(LayoutRegion.SOUTH,140);
  southData.setCollapsible(true);
  southData.setMargins(new Margins(4,0,0,0));
  final BorderLayoutData westData=new BorderLayoutData(LayoutRegion.WEST,250);
  westData.setMargins(new Margins(0,4,4,0));
  westData.setCollapsible(true);
  final BorderLayoutData centerData=new BorderLayoutData(LayoutRegion.CENTER);
  centerData.setMargins(new Margins(0,0,4,4));
  add(westPanel,westData);
  add(tabPanelPhases,centerData);
  add(southPanel,southData);
}

Fixed version (ground truth):
public ProjectDashboardView(Authentication authentication,Dispatcher dispatcher,ProjectPresenter projectPresenter){
  this.authentication=authentication;
  this.dispatcher=dispatcher;
  this.projectPresenter=projectPresenter;
  final BorderLayout borderLayout=new BorderLayout();
  borderLayout.setContainerStyle("String_Node_Str");
  setLayout(borderLayout);
  ListStore<FlexibleElementDTO> storeRequiredElements=new ListStore<FlexibleElementDTO>();
  gridRequiredElements=new Grid<FlexibleElementDTO>(storeRequiredElements,getRequiredElementsColumModel());
  gridRequiredElements.setAutoExpandColumn("String_Node_Str");
  gridRequiredElements.getView().setForceFit(true);
  tabPanelPhases=new TabPanel();
  tabPanelPhases.setPlain(true);
  tabPanelPhases.setTabScroll(true);
  tabPanelPhases.setAnimScroll(true);
  toolBar=new ToolBar();
  toolBar.setAlignment(HorizontalAlignment.LEFT);
  toolBar.setBorders(false);
  buttonSavePhase=new Button(I18N.CONSTANTS.projectSavePhaseButton(),IconImageBundle.ICONS.save());
  buttonActivatePhase=new Button(I18N.CONSTANTS.projectClosePhaseButton(),IconImageBundle.ICONS.activate());
  buttonPhaseGuide=new Button(I18N.CONSTANTS.projectPhaseGuideHeader(),IconImageBundle.ICONS.info());
  buttonActivatePhase.setEnabled(false);
  buttonSavePhase.setEnabled(false);
  buttonPhaseGuide.setEnabled(false);
  toolBar.add(buttonActivatePhase);
  toolBar.add(new SeparatorToolItem());
  toolBar.add(buttonSavePhase);
  toolBar.add(new SeparatorToolItem());
  toolBar.add(buttonPhaseGuide);
  panelProjectModel=new LayoutContainer(new BorderLayout());
  panelProjectModel.setBorders(false);
  panelProjectModel.addStyleName("String_Node_Str");
  panelSelectedPhase=new LayoutContainer(new FitLayout());
  final BorderLayoutData wd=new BorderLayoutData(LayoutRegion.WEST,250);
  wd.setMargins(new Margins(0,4,4,4));
  requiredElementContentPanel=new ContentPanel(new FitLayout());
  requiredElementContentPanel.add(gridRequiredElements);
  panelProjectModel.add(requiredElementContentPanel,wd);
  final BorderLayoutData cd=new BorderLayoutData(LayoutRegion.CENTER);
  cd.setMargins(new Margins(0,4,4,0));
  final ContentPanel cp2=new ContentPanel(new FitLayout());
  cp2.setHeading(I18N.CONSTANTS.phaseDetails());
  cp2.setScrollMode(Scroll.AUTOY);
  cp2.setTopComponent(toolBar);
  cp2.add(panelSelectedPhase,new FitData(new Margins(4)));
  panelProjectModel.add(cp2,cd);
  panelReminders=getRemindersPanel();
  panelMonitoredPoints=getMonitoredPointsPanel();
  final VBoxLayout vLayout=new VBoxLayout();
  vLayout.setVBoxLayoutAlign(VBoxLayoutAlign.STRETCH);
  final ContentPanel westPanel=new ContentPanel(vLayout);
  westPanel.setHeading(I18N.CONSTANTS.reminders());
  final VBoxLayoutData flex=new VBoxLayoutData(new Margins(0,0,5,0));
  flex.setFlex(1);
  westPanel.add(panelReminders,flex);
  westPanel.add(panelMonitoredPoints,flex);
  buildFinancialProjectsPanel();
  buildLocalPartnerProjectsPanel();
  final HBoxLayout layout=new StylableHBoxLayout("String_Node_Str");
  layout.setHBoxLayoutAlign(HBoxLayoutAlign.STRETCH);
  final ContentPanel southPanel=new ContentPanel(layout);
  southPanel.setHeading(I18N.CONSTANTS.projectLinkedProjects());
  panelFinancialProjects.setWidth("String_Node_Str");
  panelLocalProjects.setWidth("String_Node_Str");
  southPanel.add(panelFinancialProjects,new HBoxLayoutData(0,2,0,0));
  southPanel.add(panelLocalProjects,new HBoxLayoutData(0,0,0,2));
  final BorderLayoutData southData=new BorderLayoutData(LayoutRegion.SOUTH,140);
  southData.setCollapsible(true);
  southData.setMargins(new Margins(4,0,0,0));
  final BorderLayoutData westData=new BorderLayoutData(LayoutRegion.WEST,250);
  westData.setMargins(new Margins(0,4,4,0));
  westData.setCollapsible(true);
  final BorderLayoutData centerData=new BorderLayoutData(LayoutRegion.CENTER);
  centerData.setMargins(new Margins(0,0,4,4));
  add(westPanel,westData);
  add(tabPanelPhases,centerData);
  add(southPanel,southData);
}