Program: 188503
Project: 188503
Buggy source:
private void clear(){
  justActive=true;
  browseItemHeader.setVisible(false);
  browseTitle.setVisible(false);
  browseDescription.setVisible(false);
  HTMLPanel itemIconHtmlPanel=DescriptionLevelUtils.getTopIconHTMLPanel();
  itemIconHtmlPanel.addStyleName("String_Node_Str");
  itemIcon.setWidget(itemIconHtmlPanel);
  itemTitle.setText(messages.browseLoading());
  itemTitle.removeStyleName("String_Node_Str");
  itemIcon.getParent().removeStyleName("String_Node_Str");
  itemId.setText("String_Node_Str");
  itemId.removeStyleName("String_Node_Str");
  sipId.setText("String_Node_Str");
  sipId.removeStyleName("String_Node_Str");
  ingestJobId.clear();
  ingestJobId.removeStyleName("String_Node_Str");
  breadcrumb.setVisible(false);
  itemMetadata.setVisible(false);
  itemMetadata.clear();
  removeHandlerRegistrations();
  newDescriptiveMetadata.setVisible(false);
  viewingTop=false;
  searchable=false;
  representationsPanelTitle.setVisible(false);
  representationsSearchPanel.setVisible(false);
  representationsSearchPanel.clearSearchInputBox();
  representationsList.setVisible(false);
  fondsPanelTitle.setVisible(false);
  searchPanel.setVisible(false);
  searchPanel.clearSearchInputBox();
  aipList.setVisible(false);
  appraisalSidebar.setVisible(false);
  preservationSidebar.setVisible(false);
  actionsSidebar.setVisible(false);
  searchSection.setVisible(false);
  createItem.setVisible(false);
  moveItem.setVisible(false);
  editPermissions.setVisible(false);
  remove.setVisible(false);
  newRepresentation.setVisible(false);
  for (  AIPState state : AIPState.values()) {
    this.removeStyleName(state.toString().toLowerCase());
  }
}

Fixed version (ground truth):
private void clear(){
  justActive=true;
  browseItemHeader.setVisible(false);
  browseTitle.setVisible(false);
  browseDescription.setVisible(false);
  HTMLPanel itemIconHtmlPanel=DescriptionLevelUtils.getTopIconHTMLPanel();
  itemIconHtmlPanel.addStyleName("String_Node_Str");
  itemIcon.setWidget(itemIconHtmlPanel);
  itemTitle.setText(messages.browseLoading());
  itemTitle.removeStyleName("String_Node_Str");
  itemIcon.getParent().removeStyleName("String_Node_Str");
  itemId.setText("String_Node_Str");
  itemId.removeStyleName("String_Node_Str");
  sipId.setText("String_Node_Str");
  sipId.removeStyleName("String_Node_Str");
  ingestJobId.clear();
  ingestJobId.removeStyleName("String_Node_Str");
  breadcrumb.setVisible(false);
  itemMetadata.setVisible(false);
  itemMetadata.clear();
  removeHandlerRegistrations();
  newDescriptiveMetadata.setVisible(false);
  viewingTop=false;
  searchable=false;
  representationsPanelTitle.setVisible(false);
  representationsSearchPanel.setVisible(false);
  representationsSearchPanel.clearSearchInputBox();
  representationsList.setVisible(false);
  fondsPanelTitle.setVisible(false);
  searchPanel.setVisible(false);
  searchPanel.clearSearchInputBox();
  aipList.setVisible(false);
  appraisalSidebar.setVisible(false);
  preservationSidebar.setVisible(false);
  actionsSidebar.setVisible(false);
  searchSection.setVisible(false);
  createItem.setVisible(false);
  moveItem.setVisible(false);
  editPermissions.setVisible(false);
  remove.setVisible(false);
  newRepresentation.setVisible(false);
  for (  AIPState state : AIPState.values()) {
    this.removeStyleName(state.toString().toLowerCase());
  }
  FACETS=new Facets(new SimpleFacetParameter(RodaConstants.AIP_LEVEL),new SimpleFacetParameter(RodaConstants.AIP_HAS_REPRESENTATIONS));
}