nus-yam/ex-repair huggingface dataset:
Program: 77726
Project: 77726
Buggy source:
protected boolean handleChild(IReportItemExecutor childExecutor){
  boolean childBreak=false;
  IContent childContent=childExecutor.execute();
  PDFAbstractLM childLM=getFactory().createLayoutManager(this,childContent,emitter,childExecutor);
  childBreak=childLM.layout();
  if (childBreak) {
    if (!childLM.isFinished()) {
      addChild(childLM);
    }
  }
  return childBreak;
}

Fixed version (ground truth):
protected boolean handleChild(IReportItemExecutor childExecutor){
  boolean childBreak=false;
  IContent childContent=childExecutor.execute();
  PDFAbstractLM childLM=getFactory().createLayoutManager(this,childContent,emitter,childExecutor);
  if (needLineBreak(childContent)) {
    unfinishedExecutor=childExecutor;
    return !endLine();
  }
 else {
    childBreak=childLM.layout();
    if (childBreak) {
      if (!childLM.isFinished()) {
        addChild(childLM);
      }
    }
    return childBreak;
  }
}
Program: 77727
Project: 77727
Buggy source:
protected boolean traverseChildren(){
  if (last != null) {
    parent.addArea(last);
    last=null;
    if (breakAfterRelayout) {
      breakAfterRelayout=false;
      return true;
    }
  }
  boolean childBreak=false;
  if (children.size() > 0) {
    Iterator iterLM=children.iterator();
    while (iterLM.hasNext()) {
      PDFAbstractLM childLM=(PDFAbstractLM)iterLM.next();
      child=childLM;
      boolean currentBreak=childLM.layout();
      if (currentBreak) {
        childBreak=true;
      }
 else {
        iterLM.remove();
      }
    }
    if (childBreak) {
      return true;
    }
  }
  while (executor.hasNextChild()) {
    IReportItemExecutor childExecutor=executor.getNextChild();
    assert(childExecutor != null);
    if (handleChild(childExecutor)) {
      if (lineFinished) {
        return true;
      }
    }
  }
  return false;
}

Fixed version (ground truth):
protected boolean traverseChildren(){
  if (last != null) {
    parent.addArea(last);
    last=null;
    if (breakAfterRelayout) {
      breakAfterRelayout=false;
      return true;
    }
  }
  boolean childBreak=false;
  if (children.size() > 0) {
    Iterator iterLM=children.iterator();
    while (iterLM.hasNext()) {
      PDFAbstractLM childLM=(PDFAbstractLM)iterLM.next();
      child=childLM;
      boolean currentBreak=childLM.layout();
      if (currentBreak) {
        childBreak=true;
      }
 else {
        iterLM.remove();
      }
    }
    if (childBreak) {
      return true;
    }
 else {
      endLine();
    }
  }
  boolean childHasNext=false;
  while (executor.hasNextChild() || unfinishedExecutor != null) {
    IReportItemExecutor childExecutor=null;
    if (unfinishedExecutor != null) {
      childExecutor=unfinishedExecutor;
      unfinishedExecutor=null;
    }
 else {
      childExecutor=executor.getNextChild();
    }
    assert(childExecutor != null);
    childHasNext=handleChild(childExecutor) || childHasNext;
    if (childHasNext && unfinishedExecutor != null) {
      if (lineFinished) {
        return true;
      }
    }
  }
  return false;
}
Program: 77728
Project: 77728
Buggy source:
protected void processForeignData(IForeignContent foreign){
  HashMap styleMap=new HashMap();
  HTMLStyleProcessor htmlProcessor=new HTMLStyleProcessor(this.rootPath);
  Object rawValue=foreign.getRawValue();
  Document doc=null;
  if (null != rawValue) {
    doc=new TextParser().parse(foreign.getRawValue().toString(),(String)textTypeMapping.get(foreign.getRawType()));
  }
  Element body=null;
  if (doc != null) {
    Node node=doc.getFirstChild();
    if (node instanceof Element) {
      body=(Element)node;
    }
  }
  if (body != null) {
    htmlProcessor.execute(body,styleMap);
    processNodes(body,checkEscapeSpace(doc),styleMap,foreign);
  }
}

Fixed version (ground truth):
protected void processForeignData(IForeignContent foreign){
  if (foreign.getChildren() != null && foreign.getChildren().size() > 0) {
    return;
  }
  HashMap styleMap=new HashMap();
  HTMLStyleProcessor htmlProcessor=new HTMLStyleProcessor(this.rootPath);
  Object rawValue=foreign.getRawValue();
  Document doc=null;
  if (null != rawValue) {
    doc=new TextParser().parse(foreign.getRawValue().toString(),(String)textTypeMapping.get(foreign.getRawType()));
  }
  Element body=null;
  if (doc != null) {
    Node node=doc.getFirstChild();
    if (node instanceof Element) {
      body=(Element)node;
    }
  }
  if (body != null) {
    htmlProcessor.execute(body,styleMap);
    processNodes(body,checkEscapeSpace(doc),styleMap,foreign);
  }
}
Program: 77729
Project: 77729
Buggy source:
protected void handlePageBreakAfterOfGroup(){
  boolean needPageBreak=false;
  GroupDesign groupDesign=(GroupDesign)design;
  if (groupDesign != null) {
    String pageBreakAfter=groupDesign.getPageBreakAfter();
    int groupLevel=groupDesign.getGroupLevel();
    if (DesignChoiceConstants.PAGE_BREAK_AFTER_ALWAYS.equals(pageBreakAfter)) {
      needPageBreak=true;
    }
    if (DesignChoiceConstants.PAGE_BREAK_AFTER_ALWAYS_EXCLUDING_LAST.equals(pageBreakAfter)) {
      int endGroup=rset.getEndingGroupLevel();
      if (endGroup >= groupLevel + 1) {
        needPageBreak=true;
      }
    }
    if (needPageBreak) {
      content.getStyle().setProperty(IStyle.STYLE_PAGE_BREAK_AFTER,IStyle.ALWAYS_VALUE);
    }
  }
}

Fixed version (ground truth):
protected void handlePageBreakAfterOfGroup(){
  boolean needPageBreak=false;
  GroupDesign groupDesign=(GroupDesign)design;
  if (groupDesign != null) {
    String pageBreakAfter=groupDesign.getPageBreakAfter();
    int groupLevel=groupDesign.getGroupLevel();
    if (DesignChoiceConstants.PAGE_BREAK_AFTER_ALWAYS.equals(pageBreakAfter)) {
      needPageBreak=true;
    }
    if (DesignChoiceConstants.PAGE_BREAK_AFTER_ALWAYS_EXCLUDING_LAST.equals(pageBreakAfter)) {
      int endGroup=rset.getEndingGroupLevel();
      if (endGroup >= groupLevel + 1) {
        setPageBreakBeforeForNextGroup();
      }
    }
    if (needPageBreak) {
      content.getStyle().setProperty(IStyle.STYLE_PAGE_BREAK_AFTER,IStyle.ALWAYS_VALUE);
    }
  }
}
Program: 77730
Project: 77730
Buggy source:
public void close(){
  IListGroupContent groupContent=(IListGroupContent)getContent();
  if (emitter != null) {
    emitter.endListGroup(groupContent);
  }
  finishGroupTOCEntry();
}

Fixed version (ground truth):
public void close(){
  handlePageBreakAfterOfGroup();
  IListGroupContent groupContent=(IListGroupContent)getContent();
  if (emitter != null) {
    emitter.endListGroup(groupContent);
  }
  finishGroupTOCEntry();
}
Program: 77731
Project: 77731
Buggy source:
public IContent execute(){
  ListGroupDesign groupDesign=(ListGroupDesign)getDesign();
  IListGroupContent groupContent=report.createListGroupContent();
  setContent(groupContent);
  restoreResultSet();
  initializeContent(groupDesign,groupContent);
  handlePageBreakOfGroup();
  startGroupTOCEntry();
  if (emitter != null) {
    emitter.startListGroup(groupContent);
  }
  prepareToExecuteChildren();
  return groupContent;
}

Fixed version (ground truth):
public IContent execute(){
  ListGroupDesign groupDesign=(ListGroupDesign)getDesign();
  IListGroupContent groupContent=report.createListGroupContent();
  setContent(groupContent);
  restoreResultSet();
  initializeContent(groupDesign,groupContent);
  handlePageBreakBeforeOfGroup();
  handlePageBreakAfterOfPreviousGroup();
  startGroupTOCEntry();
  if (emitter != null) {
    emitter.startListGroup(groupContent);
  }
  prepareToExecuteChildren();
  return groupContent;
}
Program: 77732
Project: 77732
Buggy source:
/** 
 * access the query and create the contents. the execution process is: <li> the cursor is at the begin of result set. <li> call listing's onStart event <li> create the header <li> for each row: <ul> <li> call onRow event. <li> if the row start some groups, create the group header for that group. <li> create the detail row. <li> if the row end some groups, create the group footer for that group. </ul> <li> create the footer. <li> call the onFinish event.
 */
public void reset(){
  this.rsetCursor=-1;
  super.reset();
}

Fixed version (ground truth):
/** 
 * access the query and create the contents. the execution process is: <li> the cursor is at the begin of result set. <li> call listing's onStart event <li> create the header <li> for each row: <ul> <li> call onRow event. <li> if the row start some groups, create the group header for that group. <li> create the detail row. <li> if the row end some groups, create the group footer for that group. </ul> <li> create the footer. <li> call the onFinish event.
 */
public void reset(){
  rsetCursor=-1;
  needPageBreak=false;
  super.reset();
}
Program: 77733
Project: 77733
Buggy source:
public void close(){
  ITableGroupContent groupContent=(ITableGroupContent)getContent();
  if (emitter != null) {
    emitter.endTableGroup(groupContent);
  }
  finishGroupTOCEntry();
}

Fixed version (ground truth):
public void close(){
  handlePageBreakAfterOfGroup();
  ITableGroupContent groupContent=(ITableGroupContent)getContent();
  if (emitter != null) {
    emitter.endTableGroup(groupContent);
  }
  finishGroupTOCEntry();
}
Program: 77734
Project: 77734
Buggy source:
public IContent execute(){
  TableGroupDesign groupDesign=(TableGroupDesign)getDesign();
  ITableGroupContent groupContent=report.createTableGroupContent();
  setContent(groupContent);
  restoreResultSet();
  initializeContent(groupDesign,groupContent);
  handlePageBreakOfGroup();
  startGroupTOCEntry();
  if (emitter != null) {
    emitter.startTableGroup(groupContent);
  }
  prepareToExecuteChildren();
  return groupContent;
}

Fixed version (ground truth):
public IContent execute(){
  TableGroupDesign groupDesign=(TableGroupDesign)getDesign();
  ITableGroupContent groupContent=report.createTableGroupContent();
  setContent(groupContent);
  restoreResultSet();
  initializeContent(groupDesign,groupContent);
  handlePageBreakBeforeOfGroup();
  handlePageBreakAfterOfPreviousGroup();
  startGroupTOCEntry();
  if (emitter != null) {
    emitter.startTableGroup(groupContent);
  }
  prepareToExecuteChildren();
  return groupContent;
}
Program: 77735
Project: 77735
Buggy source:
/** 
 * Whether need to use resultHint, which stands for resultSetHint, columnHint or both
 * @param dataSetHandle
 * @return
 * @throws BirtException
 */
private boolean needsUseResultHint(DataSetHandle dataSetHandle,IResultMetaData metaData) throws BirtException {
  int columnCount=0;
  boolean hasResultSetHint=false;
  boolean hasColumnHint=dataSetHandle.getPropertyHandle(DataSetHandle.COLUMN_HINTS_PROP).iterator().hasNext();
  HashSet orgColumnNameSet=new HashSet();
  HashSet uniqueColumnNameSet=new HashSet();
  if (metaData != null)   columnCount=metaData.getColumnCount();
  for (int i=0; i < columnCount; i++) {
    String columnName=metaData.getColumnName(i + 1);
    String uniqueColumnName=getUniqueName(orgColumnNameSet,uniqueColumnNameSet,columnName,i);
    uniqueColumnNameSet.add(uniqueColumnName);
    if (!uniqueColumnName.equals(columnName)) {
      updateModelColumn(dataSetHandle,uniqueColumnName,i + 1);
      if (hasResultSetHint != true)       hasResultSetHint=true;
    }
  }
  return hasResultSetHint || hasColumnHint;
}

Fixed version (ground truth):
/** 
 * Whether need to use resultHint, which stands for resultSetHint, columnHint or both
 * @param dataSetHandle
 * @return
 * @throws BirtException
 */
private boolean needsUseResultHint(DataSetHandle dataSetHandle,IResultMetaData metaData) throws BirtException {
  int columnCount=0;
  boolean hasResultSetHint=false;
  boolean hasColumnHint=dataSetHandle.getPropertyHandle(DataSetHandle.COLUMN_HINTS_PROP).iterator().hasNext();
  HashSet orgColumnNameSet=new HashSet();
  HashSet uniqueColumnNameSet=new HashSet();
  if (metaData != null)   columnCount=metaData.getColumnCount();
  for (int i=0; i < columnCount; i++) {
    String columnName=metaData.getColumnName(i + 1);
    String uniqueColumnName=getUniqueName(orgColumnNameSet,uniqueColumnNameSet,columnName,i);
    uniqueColumnNameSet.add(uniqueColumnName);
    if (!uniqueColumnName.equals(columnName)) {
      updateModelColumn(dataSetHandle,uniqueColumnName,i + 1);
      if (hasResultSetHint != true)       hasResultSetHint=true;
    }
  }
  if (!hasResultSetHint) {
    hasResultSetHint=checkHandleType(dataSetHandle);
  }
  return hasResultSetHint || hasColumnHint;
}
Program: 77736
Project: 77736
Buggy source:
/** 
 * @param array
 * @return 
 * @throws DataException
 */
private List getNodeArray() throws DataException {
  List array=new ArrayList();
  ResultSetCache cache=this.secondaryIterator.getResultSetCache();
  int count=cache.getCount();
  int blockSize=count / 1024;
  int size=1024;
  if (blockSize == 0) {
    size=count;
    blockSize=1;
  }
  int startingIndex=0;
  for (int i=0; i < size; i++) {
    if (startingIndex >= count)     break;
 else {
      Object[] min=matcher.getCompareValue(this.joinType == IJointDataSetDesign.RIGHT_OUTER_JOIN);
      Object[] max=null;
      int start=startingIndex;
      startingIndex+=blockSize;
      if (startingIndex < count) {
        max=matcher.getCompareValue(this.joinType == IJointDataSetDesign.RIGHT_OUTER_JOIN);
        cache.moveTo(startingIndex);
        while (JointDataSetUtil.compare(matcher.getCompareValue(this.joinType == IJointDataSetDesign.RIGHT_OUTER_JOIN),max) == 0) {
          startingIndex++;
          if (cache.fetch() == null)           break;
        }
        if (startingIndex < count)         cache.moveTo(startingIndex);
 else         cache.moveTo(count - 1);
      }
 else {
        cache.moveTo(count - 1);
        max=matcher.getCompareValue(this.joinType == IJointDataSetDesign.RIGHT_OUTER_JOIN);
      }
      array.add(new SegmentInfo(min,max,start,startingIndex - 1));
    }
  }
  this.secondaryIterator.first(0);
  return array;
}

Fixed version (ground truth):
/** 
 * @param array
 * @return 
 * @throws DataException
 */
private List getNodeArray() throws DataException {
  List array=new ArrayList();
  ResultSetCache cache=this.secondaryIterator.getResultSetCache();
  int count=cache.getCount();
  int blockSize=count / 1024;
  int size=1024;
  if (blockSize == 0) {
    size=count;
    blockSize=1;
  }
  int startingIndex=0;
  for (int i=0; i < size; i++) {
    if (startingIndex >= count)     break;
 else {
      Object[] min=matcher.getCompareValue(this.joinType == IJointDataSetDesign.RIGHT_OUTER_JOIN);
      Object[] max=null;
      int start=startingIndex;
      startingIndex+=blockSize;
      if (startingIndex < count) {
        cache.moveTo(startingIndex);
        max=matcher.getCompareValue(this.joinType == IJointDataSetDesign.RIGHT_OUTER_JOIN);
        while (JointDataSetUtil.compare(matcher.getCompareValue(this.joinType == IJointDataSetDesign.RIGHT_OUTER_JOIN),max) == 0) {
          startingIndex++;
          if (cache.fetch() == null)           break;
        }
        if (startingIndex < count)         cache.moveTo(startingIndex);
 else         cache.moveTo(count - 1);
      }
 else {
        cache.moveTo(count - 1);
        max=matcher.getCompareValue(this.joinType == IJointDataSetDesign.RIGHT_OUTER_JOIN);
      }
      array.add(new SegmentInfo(min,max,start,startingIndex - 1));
    }
  }
  this.secondaryIterator.first(0);
  return array;
}
Program: 77737
Project: 77737
Buggy source:
/** 
 * Sets the page break inside property for block-level elements. The input value is one of constants defined in <code>DesignChoiceConstants</code>: <ul> <li><code>PAGEBREAK_INSIDE_AVOID</code> <li><code>PAGEBREAK_INSIDE_AUTO</code> <li><code>PAGEBREAK_INSIDE_INHERIT</code> </ul>
 * @param value the new page break inside property
 * @throws SemanticException if the value is not one of the above.
 */
public void setPageBreakInside(String value) throws SemanticException {
  setStringProperty(Style.PAGE_BREAK_INSIDE_PROP,value);
}

Fixed version (ground truth):
/** 
 * Sets the page break inside property for block-level elements. The input value is one of constants defined in <code>DesignChoiceConstants</code>: <ul> <li><code>PAGEBREAK_INSIDE_AVOID</code> <li><code>PAGEBREAK_INSIDE_AUTO</code> <li><code>PAGEBREAK_INSIDE_INHERIT</code> </ul>
 * @param value the new page break inside property
 * @throws SemanticException if the value is not one of the above.
 * @deprecated
 */
public void setPageBreakInside(String value) throws SemanticException {
  setStringProperty(Style.PAGE_BREAK_INSIDE_PROP,value);
}
Program: 77738
Project: 77738
Buggy source:
/** 
 * Returns the page break inside property for block-level elements. The return value is one of constants defined in <code>DesignChoiceConstants</code>: <ul> <li><code>PAGEBREAK_INSIDE_AVOID</code> <li><code>PAGEBREAK_INSIDE_AUTO</code> <li><code>PAGEBREAK_INSIDE_INHERIT</code> </ul>
 * @return the page break inside property
 */
public String getPageBreakInside(){
  return getStringProperty(Style.PAGE_BREAK_INSIDE_PROP);
}

Fixed version (ground truth):
/** 
 * Returns the page break inside property for block-level elements. The return value is one of constants defined in <code>DesignChoiceConstants</code>: <ul> <li><code>PAGEBREAK_INSIDE_AVOID</code> <li><code>PAGEBREAK_INSIDE_AUTO</code> <li><code>PAGEBREAK_INSIDE_INHERIT</code> </ul>
 * @return the page break inside property
 * @deprecated
 */
public String getPageBreakInside(){
  return getStringProperty(Style.PAGE_BREAK_INSIDE_PROP);
}
Program: 77739
Project: 77739
Buggy source:
/** 
 * Init the bean.
 * @param request
 * @throws Exception
 */
protected void __init(HttpServletRequest request) throws Exception {
  if (ParameterAccessor.isGetImageOperator(request)) {
    return;
  }
  this.category="String_Node_Str";
  this.masterPageContent=ParameterAccessor.isMasterPageContent(request);
  this.isDesigner=ParameterAccessor.isDesigner(request);
  this.bookmark=ParameterAccessor.getBookmark(request);
  this.reportPage=String.valueOf(ParameterAccessor.getPage(request));
  this.reportDocumentName=ParameterAccessor.getReportDocument(request);
  this.reportDesignName=ParameterAccessor.getReport(request);
  this.format=ParameterAccessor.getFormat(request);
  this.isToc=ParameterAccessor.isToc(request);
  this.maxRows=ParameterAccessor.getMaxRows(request);
  ReportEngineService.getInstance().setMaxRows(this.maxRows);
  processReport(request);
  String title=null;
  if (title == null || title.trim().length() <= 0) {
    title=BirtResources.getString(ResourceConstants.BIRT_VIEWER_TITLE);
  }
  this.reportTitle=ParameterAccessor.htmlEncode(title);
  this.__initParameters(request);
}

Fixed version (ground truth):
/** 
 * Init the bean.
 * @param request
 * @throws Exception
 */
protected void __init(HttpServletRequest request) throws Exception {
  if (ParameterAccessor.isGetImageOperator(request)) {
    return;
  }
  this.category="String_Node_Str";
  this.masterPageContent=ParameterAccessor.isMasterPageContent(request);
  this.isDesigner=ParameterAccessor.isDesigner(request);
  this.bookmark=ParameterAccessor.getBookmark(request);
  this.reportPage=String.valueOf(ParameterAccessor.getPage(request));
  this.reportDocumentName=ParameterAccessor.getReportDocument(request);
  this.reportDesignName=ParameterAccessor.getReport(request);
  this.format=ParameterAccessor.getFormat(request);
  this.maxRows=ParameterAccessor.getMaxRows(request);
  ReportEngineService.getInstance().setMaxRows(this.maxRows);
  processReport(request);
  String title=null;
  if (title == null || title.trim().length() <= 0) {
    title=BirtResources.getString(ResourceConstants.BIRT_VIEWER_TITLE);
  }
  this.reportTitle=ParameterAccessor.htmlEncode(title);
  this.__initParameters(request);
}
Program: 77740
Project: 77740
Buggy source:
public String findTocByName(String docName,String name,InputOptions options){
  IReportDocument doc=ReportEngineService.getInstance().openReportDocument(getReportDesignName(options),docName);
  String tocId=null;
  if (doc.findTOCByName(name) != null && doc.findTOCByName(name).size() > 0)   return ((TOCNode)doc.findTOCByName(name).get(0)).getNodeID();
  return tocId;
}

Fixed version (ground truth):
public String findTocByName(String docName,String name,InputOptions options){
  IReportDocument doc=ReportEngineService.getInstance().openReportDocument(getReportDesignName(options),docName);
  String tocId=null;
  if (doc.findTOCByName(name) != null && doc.findTOCByName(name).size() > 0)   return ((TOCNode)doc.findTOCByName(name).get(0)).getBookmark();
  return tocId;
}
Program: 77742
Project: 77742
Buggy source:
protected void __execute() throws RemoteException {
  BaseAttributeBean attrBean=(BaseAttributeBean)context.getBean();
  boolean svgFlag=getSVGFlag(operation.getOprand());
  runReport();
  String bookmark=null;
  boolean useBookmark=false;
  String docName=attrBean.getReportDocumentName();
  try {
    long pageNumber=getPageNumber(context.getRequest(),operation.getOprand(),docName);
    if (!isValidPageNumber(context.getRequest(),pageNumber,docName)) {
      InputOptions options=new InputOptions();
      bookmark=getBookmark(operation.getOprand(),attrBean);
      if (isToc(operation.getOprand(),attrBean)) {
        bookmark=(getReportService()).findTocByName(docName,bookmark,options);
      }
      if (bookmark != null && bookmark.length() > 0) {
        options.setOption(InputOptions.OPT_REQUEST,context.getRequest());
        pageNumber=getReportService().getPageNumberByBookmark(docName,bookmark,options);
        useBookmark=true;
      }
      if (!isValidPageNumber(context.getRequest(),pageNumber,docName)) {
        pageNumber=1;
        useBookmark=false;
      }
    }
    doRenderPage(docName,pageNumber,svgFlag,attrBean.isMasterPageContent(),useBookmark,bookmark,attrBean.getLocale(),attrBean.isRtl());
  }
 catch (  ReportServiceException e) {
    e.printStackTrace();
  }
}

Fixed version (ground truth):
protected void __execute() throws RemoteException {
  BaseAttributeBean attrBean=(BaseAttributeBean)context.getBean();
  boolean svgFlag=getSVGFlag(operation.getOprand());
  runReport();
  String bookmark=null;
  boolean useBookmark=false;
  String docName=attrBean.getReportDocumentName();
  try {
    long pageNumber=getPageNumber(context.getRequest(),operation.getOprand(),docName);
    if (!isValidPageNumber(context.getRequest(),pageNumber,docName)) {
      InputOptions options=new InputOptions();
      bookmark=getBookmark(operation.getOprand(),attrBean);
      if (bookmark != null && bookmark.length() > 0) {
        options.setOption(InputOptions.OPT_REQUEST,context.getRequest());
        pageNumber=getReportService().getPageNumberByBookmark(docName,bookmark,options);
        if (!isValidPageNumber(context.getRequest(),pageNumber,docName)) {
          bookmark=(getReportService()).findTocByName(docName,bookmark,options);
          pageNumber=getReportService().getPageNumberByBookmark(docName,bookmark,options);
        }
      }
      if (!isValidPageNumber(context.getRequest(),pageNumber,docName)) {
        AxisFault fault=new AxisFault();
        fault.setFaultReason(BirtResources.getFormattedString(ResourceConstants.ACTION_EXCEPTION_INVALID_BOOKMARK,new String[]{bookmark}));
        throw fault;
      }
      useBookmark=true;
    }
    doRenderPage(docName,pageNumber,svgFlag,attrBean.isMasterPageContent(),useBookmark,bookmark,attrBean.getLocale(),attrBean.isRtl());
  }
 catch (  ReportServiceException e) {
    e.printStackTrace();
  }
}
Program: 77744
Project: 77744
Buggy source:
/** 
 * Return the array of simple nested column names of certain table.
 * @param tableName
 * @return
 */
public String[] getTableSimpleNestedXMLColumnNames(String tableName){
  return ((TableInfo)this.tableInfos.get(tableName)).getSimpleNestXMLColumnNames();
}

Fixed version (ground truth):
/** 
 * Return the array of simple nested column names of certain table.
 * @param tableName
 * @return
 */
public String[] getTableSimpleNestedXMLColumnNames(String tableName){
  Object tableInfo=this.tableInfos.get(tableName == null ? "String_Node_Str" : tableName.trim());
  if (tableInfo != null)   return ((TableInfo)tableInfo).getSimpleNestXMLColumnNames();
 else   return new String[0];
}
Program: 77745
Project: 77745
Buggy source:
/** 
 * Return the table filter.
 * @param tableName
 * @return
 */
public HashMap getTableFilter(String tableName){
  return ((TableInfo)this.tableInfos.get(tableName)).getFilter();
}

Fixed version (ground truth):
/** 
 * Return the table filter.
 * @param tableName
 * @return
 */
public HashMap getTableFilter(String tableName){
  Object tableInfo=this.tableInfos.get(tableName == null ? "String_Node_Str" : tableName.trim());
  if (tableInfo != null)   return ((TableInfo)tableInfo).getFilter();
 else   return null;
}
Program: 77746
Project: 77746
Buggy source:
/** 
 * Return the forward ref number of a column in certain table.
 * @param tableName
 * @param columnName
 * @return
 */
public int getTableColumnForwardRefNumber(String tableName,String columnName){
  return ((TableInfo)this.tableInfos.get(tableName)).getForwardRefNumber(columnName);
}

Fixed version (ground truth):
/** 
 * Return the forward ref number of a column in certain table.
 * @param tableName
 * @param columnName
 * @return
 */
public int getTableColumnForwardRefNumber(String tableName,String columnName){
  Object tableInfo=this.tableInfos.get(tableName == null ? "String_Node_Str" : tableName.trim());
  if (tableInfo != null)   return ((TableInfo)tableInfo).getForwardRefNumber(columnName == null ? "String_Node_Str" : columnName.trim());
 else   return -1;
}
Program: 77747
Project: 77747
Buggy source:
/** 
 * Return the array of column names of certain table.
 * @param tableName
 * @return
 */
public String[] getTableColumnNames(String tableName){
  return ((TableInfo)this.tableInfos.get(tableName)).getColumnNames();
}

Fixed version (ground truth):
/** 
 * Return the array of column names of certain table.
 * @param tableName
 * @return
 */
public String[] getTableColumnNames(String tableName){
  Object tableInfo=this.tableInfos.get(tableName == null ? "String_Node_Str" : tableName.trim());
  if (tableInfo != null)   return ((TableInfo)tableInfo).getColumnNames();
 else   return new String[0];
}
Program: 77748
Project: 77748
Buggy source:
/** 
 * Return the type of a column in certain table.
 * @param tableName
 * @param columnName
 * @return
 */
public String getTableColumnType(String tableName,String columnName){
  return ((TableInfo)this.tableInfos.get(tableName)).getType(columnName);
}

Fixed version (ground truth):
/** 
 * Return the type of a column in certain table.
 * @param tableName
 * @param columnName
 * @return
 */
public String getTableColumnType(String tableName,String columnName){
  Object tableInfo=this.tableInfos.get(tableName == null ? "String_Node_Str" : tableName.trim());
  if (tableInfo != null)   return ((TableInfo)tableInfo).getType(columnName == null ? "String_Node_Str" : columnName.trim());
 else   return null;
}
Program: 77749
Project: 77749
Buggy source:
/** 
 * Return the path of a column in certain table.
 * @param tableName
 * @param columnName
 * @return
 */
public String getTableOriginalColumnPath(String tableName,String columnName){
  return ((TableInfo)this.tableInfos.get(tableName)).getOriginalPath(columnName);
}

Fixed version (ground truth):
/** 
 * Return the path of a column in certain table.
 * @param tableName
 * @param columnName
 * @return
 */
public String getTableOriginalColumnPath(String tableName,String columnName){
  Object tableInfo=this.tableInfos.get(tableName == null ? "String_Node_Str" : tableName.trim());
  if (tableInfo != null)   return ((TableInfo)tableInfo).getOriginalPath(columnName == null ? "String_Node_Str" : columnName.trim());
 else   return null;
}
Program: 77750
Project: 77750
Buggy source:
/** 
 * Return the table root path.
 * @param tableName
 * @return
 */
public String getTableRootPath(String tableName){
  return ((TableInfo)this.tableInfos.get(tableName)).getRootPath();
}

Fixed version (ground truth):
/** 
 * Return the table root path.
 * @param tableName
 * @return
 */
public String getTableRootPath(String tableName){
  Object tableInfo=this.tableInfos.get(tableName == null ? "String_Node_Str" : tableName.trim());
  if (tableInfo != null)   return ((TableInfo)tableInfo).getRootPath();
 else   return null;
}
Program: 77751
Project: 77751
Buggy source:
/** 
 * Return the back ref number of a column in certain table.
 * @param tableName
 * @param columnName
 * @return
 */
public int getTableNestedColumnBackRefNumber(String tableName,String columnName){
  return ((TableInfo)this.tableInfos.get(tableName)).getBackRefNumber(columnName);
}

Fixed version (ground truth):
/** 
 * Return the back ref number of a column in certain table.
 * @param tableName
 * @param columnName
 * @return
 */
public int getTableNestedColumnBackRefNumber(String tableName,String columnName){
  Object tableInfo=this.tableInfos.get(tableName == null ? "String_Node_Str" : tableName.trim());
  if (tableInfo != null)   return ((TableInfo)tableInfo).getBackRefNumber(columnName == null ? "String_Node_Str" : columnName.trim());
 else   return -1;
}
Program: 77752
Project: 77752
Buggy source:
/** 
 * Return the table original root path.
 * @param tableName
 * @return
 */
public String getTableOriginalRootPath(String tableName){
  return ((TableInfo)this.tableInfos.get(tableName)).getOriginalRootPath();
}

Fixed version (ground truth):
/** 
 * Return the table original root path.
 * @param tableName
 * @return
 */
public String getTableOriginalRootPath(String tableName){
  Object tableInfo=this.tableInfos.get(tableName == null ? "String_Node_Str" : tableName.trim());
  if (tableInfo != null)   return ((TableInfo)tableInfo).getOriginalRootPath();
 else   return null;
}
Program: 77753
Project: 77753
Buggy source:
/** 
 * Return the array of complex nested column names of certain table.
 * @param tableName
 * @return
 */
public String[] getTableComplexNestedXMLColumnNames(String tableName){
  return ((TableInfo)this.tableInfos.get(tableName)).getComplexNestXMLColumnNames();
}

Fixed version (ground truth):
/** 
 * Return the array of complex nested column names of certain table.
 * @param tableName
 * @return
 */
public String[] getTableComplexNestedXMLColumnNames(String tableName){
  Object tableInfo=this.tableInfos.get(tableName == null ? "String_Node_Str" : tableName.trim());
  if (tableInfo != null)   return ((TableInfo)tableInfo).getComplexNestXMLColumnNames();
 else   return new String[0];
}
Program: 77754
Project: 77754
Buggy source:
/** 
 * Return the path of a column in certain table.
 * @param tableName
 * @param columnName
 * @return
 */
public String getTableColumnPath(String tableName,String columnName){
  return ((TableInfo)this.tableInfos.get(tableName)).getPath(columnName);
}

Fixed version (ground truth):
/** 
 * Return the path of a column in certain table.
 * @param tableName
 * @param columnName
 * @return
 */
public String getTableColumnPath(String tableName,String columnName){
  Object tableInfo=this.tableInfos.get(tableName == null ? "String_Node_Str" : tableName.trim());
  if (tableInfo != null)   return ((TableInfo)tableInfo).getPath(columnName == null ? "String_Node_Str" : columnName.trim());
 else   return null;
}
Program: 77755
Project: 77755
Buggy source:
private List doQueryCascadeParameterSelectionList(String paramName,IViewerReportDesignHandle design,String groupName,Object[] groupKeys,InputOptions options,ViewerAttributeBean attrBean) throws RemoteException, ReportServiceException {
  List selectionList=new ArrayList();
  Collection list=getReportService().getSelectionListForCascadingGroup(design,groupName,groupKeys,options);
  if (list != null && list.size() > 0) {
    ScalarParameterHandle parameterHandle=(ScalarParameterHandle)attrBean.findParameter(paramName);
    Iterator iList=list.iterator();
    int index=0;
    while (iList != null && iList.hasNext()) {
      ParameterSelectionChoice item=(ParameterSelectionChoice)iList.next();
      if (item != null && item.getValue() != null) {
        SelectItemChoice selectItemChoice=new SelectItemChoice();
        Object value=item.getValue();
        String label=item.getLabel();
        if (label == null || label.length() <= 0) {
          label=ParameterValidationUtil.getDisplayValue(null,parameterHandle.getPattern(),value,attrBean.getLocale());
        }
        selectItemChoice.setLabel(label);
        selectItemChoice.setValue(ParameterValidationUtil.getDisplayValue(value));
        selectionList.add(index++,selectItemChoice);
      }
    }
  }
  return selectionList;
}

Fixed version (ground truth):
private List doQueryCascadeParameterSelectionList(String paramName,IViewerReportDesignHandle design,String groupName,Object[] groupKeys,InputOptions options,ViewerAttributeBean attrBean) throws RemoteException, ReportServiceException {
  List selectionList=new ArrayList();
  Collection list=getReportService().getSelectionListForCascadingGroup(design,groupName,groupKeys,options);
  if (list != null && list.size() > 0) {
    ScalarParameterHandle parameterHandle=(ScalarParameterHandle)attrBean.findParameter(paramName);
    Iterator iList=list.iterator();
    int index=0;
    while (iList != null && iList.hasNext()) {
      ParameterSelectionChoice item=(ParameterSelectionChoice)iList.next();
      if (item != null && item.getValue() != null) {
        SelectItemChoice selectItemChoice=new SelectItemChoice();
        Object value=item.getValue();
        String label=item.getLabel();
        if (value == null)         continue;
        if (label == null || label.length() <= 0) {
          label=ParameterValidationUtil.getDisplayValue(null,parameterHandle.getPattern(),value,attrBean.getLocale());
        }
        if (label != null) {
          selectItemChoice.setLabel(label);
          selectItemChoice.setValue(ParameterValidationUtil.getDisplayValue(value));
          selectionList.add(index++,selectItemChoice);
        }
      }
    }
  }
  return selectionList;
}
Program: 77756
Project: 77756
Buggy source:
public void close() throws BirtException {
  resultIterator.close();
}

Fixed version (ground truth):
public void close() throws BirtException {
  if (resultIterator != null)   resultIterator.close();
}
Program: 77757
Project: 77757
Buggy source:
protected void __execute() throws RemoteException {
  BaseAttributeBean attrBean=(BaseAttributeBean)context.getBean();
  boolean svgFlag=getSVGFlag(operation.getOprand());
  runReport();
  String bookmark=null;
  boolean useBookmark=false;
  String docName=attrBean.getReportDocumentName();
  try {
    long pageNumber=getPageNumber(context.getRequest(),operation.getOprand(),docName);
    if (!isValidPageNumber(context.getRequest(),pageNumber,docName)) {
      InputOptions options=new InputOptions();
      bookmark=getBookmark(operation.getOprand(),attrBean);
      if (bookmark != null && bookmark.length() > 0) {
        options.setOption(InputOptions.OPT_REQUEST,context.getRequest());
        pageNumber=getReportService().getPageNumberByBookmark(docName,bookmark,options);
        if (!isValidPageNumber(context.getRequest(),pageNumber,docName)) {
          bookmark=(getReportService()).findTocByName(docName,bookmark,options);
          pageNumber=getReportService().getPageNumberByBookmark(docName,bookmark,options);
        }
      }
      if (!isValidPageNumber(context.getRequest(),pageNumber,docName)) {
        AxisFault fault=new AxisFault();
        fault.setFaultReason(BirtResources.getFormattedString(ResourceConstants.ACTION_EXCEPTION_INVALID_BOOKMARK,new String[]{bookmark}));
        throw fault;
      }
      useBookmark=true;
    }
    doRenderPage(docName,pageNumber,svgFlag,attrBean.isMasterPageContent(),useBookmark,bookmark,attrBean.getLocale(),attrBean.isRtl());
  }
 catch (  ReportServiceException e) {
    e.printStackTrace();
  }
}

Fixed version (ground truth):
protected void __execute() throws RemoteException {
  BaseAttributeBean attrBean=(BaseAttributeBean)context.getBean();
  boolean svgFlag=getSVGFlag(operation.getOprand());
  runReport();
  String bookmark=null;
  boolean useBookmark=false;
  String docName=attrBean.getReportDocumentName();
  try {
    long pageNumber=getPageNumber(context.getRequest(),operation.getOprand(),docName);
    if (!isValidPageNumber(context.getRequest(),pageNumber,docName)) {
      InputOptions options=new InputOptions();
      bookmark=getBookmark(operation.getOprand(),attrBean);
      if (bookmark != null && bookmark.length() > 0) {
        options.setOption(InputOptions.OPT_REQUEST,context.getRequest());
        pageNumber=getReportService().getPageNumberByBookmark(docName,bookmark,options);
        if (!isValidPageNumber(context.getRequest(),pageNumber,docName)) {
          bookmark=(getReportService()).findTocByName(docName,bookmark,options);
          pageNumber=getReportService().getPageNumberByBookmark(docName,bookmark,options);
        }
        useBookmark=true;
      }
      if (!isValidPageNumber(context.getRequest(),pageNumber,docName)) {
        pageNumber=1;
        useBookmark=false;
      }
    }
    doRenderPage(docName,pageNumber,svgFlag,attrBean.isMasterPageContent(),useBookmark,bookmark,attrBean.getLocale(),attrBean.isRtl());
  }
 catch (  ReportServiceException e) {
    e.printStackTrace();
  }
}
Program: 77758
Project: 77758
Buggy source:
/** 
 * compile script expression
 * @param scriptExpr
 * @param name
 * @param cx
 * @throws DataException
 */
private void compileScriptExpression(IScriptExpression scriptExpr,Context cx){
  IScriptExpression cmptdColumn=scriptExpr;
  if (cmptdColumn.getText() == null || cmptdColumn.getText().trim().length() == 0) {
    DataException dataException=new DataException(ResourceConstants.EXPRESSION_CANNOT_BE_NULL_OR_BLANK);
    cmptdColumn.setHandle(new InvalidExpression(dataException));
  }
  try {
    CompiledExpression expr=helper.compileExpression(scriptExpr,cx);
    cmptdColumn.setHandle(expr);
  }
 catch (  Exception e) {
    DataException dataException=new DataException(ResourceConstants.INVALID_JS_EXPR,e,scriptExpr.getText());
    cmptdColumn.setHandle(new InvalidExpression(dataException));
  }
}

Fixed version (ground truth):
/** 
 * compile script expression
 * @param scriptExpr
 * @param name
 * @param cx
 * @throws DataException
 */
private void compileScriptExpression(IScriptExpression scriptExpr,Context cx){
  IScriptExpression cmptdColumn=scriptExpr;
  if (cmptdColumn.getText() == null || cmptdColumn.getText().trim().length() == 0) {
    DataException dataException=new DataException(ResourceConstants.EXPRESSION_CANNOT_BE_NULL_OR_BLANK);
    cmptdColumn.setHandle(new InvalidExpression(dataException));
    return;
  }
  try {
    CompiledExpression expr=helper.compileExpression(scriptExpr,cx);
    cmptdColumn.setHandle(expr);
  }
 catch (  Exception e) {
    DataException dataException=new DataException(ResourceConstants.INVALID_JS_EXPR,e,scriptExpr.getText());
    cmptdColumn.setHandle(new InvalidExpression(dataException));
  }
}
Program: 77759
Project: 77759
Buggy source:
/** 
 * Sets the page break inside property for block-level elements. The input value is one of constants defined in <code>DesignChoiceConstants</code>: <ul> <li><code>PAGEBREAK_INSIDE_AVOID</code> <li><code>PAGEBREAK_INSIDE_AUTO</code> <li><code>PAGEBREAK_INSIDE_INHERIT</code> </ul>
 * @param value the new page break inside property
 * @throws SemanticException if the value is not one of the above.
 * @deprecated
 */
public void setPageBreakInside(String value) throws SemanticException {
  setStringProperty(Style.PAGE_BREAK_INSIDE_PROP,value);
}

Fixed version (ground truth):
/** 
 * Sets the page break inside property for block-level elements. The input value is one of constants defined in <code>DesignChoiceConstants</code>: <ul> <li><code>PAGEBREAK_INSIDE_AVOID</code> <li><code>PAGEBREAK_INSIDE_AUTO</code> <li><code>PAGEBREAK_INSIDE_INHERIT</code> </ul>
 * @param value the new page break inside property
 * @throws SemanticException if the value is not one of the above.
 */
public void setPageBreakInside(String value) throws SemanticException {
  setStringProperty(Style.PAGE_BREAK_INSIDE_PROP,value);
}
Program: 77760
Project: 77760
Buggy source:
/** 
 * Returns the page break inside property for block-level elements. The return value is one of constants defined in <code>DesignChoiceConstants</code>: <ul> <li><code>PAGEBREAK_INSIDE_AVOID</code> <li><code>PAGEBREAK_INSIDE_AUTO</code> <li><code>PAGEBREAK_INSIDE_INHERIT</code> </ul>
 * @return the page break inside property
 * @deprecated
 */
public String getPageBreakInside(){
  return getStringProperty(Style.PAGE_BREAK_INSIDE_PROP);
}

Fixed version (ground truth):
/** 
 * Returns the page break inside property for block-level elements. The return value is one of constants defined in <code>DesignChoiceConstants</code>: <ul> <li><code>PAGEBREAK_INSIDE_AVOID</code> <li><code>PAGEBREAK_INSIDE_AUTO</code> <li><code>PAGEBREAK_INSIDE_INHERIT</code> </ul>
 * @return the page break inside property
 */
public String getPageBreakInside(){
  return getStringProperty(Style.PAGE_BREAK_INSIDE_PROP);
}
Program: 77761
Project: 77761
Buggy source:
public boolean hasNextChild(){
  if (currentElement < totalElements) {
    return true;
  }
  if (endOfGroup) {
    return false;
  }
  while (!endOfGroup) {
    IResultSet rset=listingExecutor.getResultSet();
    GroupDesign groupDesign=(GroupDesign)getDesign();
    int endGroup=rset.getEndingGroupLevel();
    int groupLevel=groupDesign.getGroupLevel() + 1;
    if (endGroup <= groupLevel) {
      totalElements=0;
      currentElement=0;
      BandDesign footer=groupDesign.getFooter();
      if (footer != null) {
        executableElements[totalElements++]=footer;
      }
      endOfGroup=true;
      return true;
    }
    if (rset.next()) {
      collectExecutableElements();
      if (currentElement < totalElements) {
        return true;
      }
    }
  }
  return false;
}

Fixed version (ground truth):
public boolean hasNextChild(){
  if (currentElement < totalElements) {
    return true;
  }
  if (endOfGroup) {
    return false;
  }
  while (!endOfGroup) {
    IResultSet rset=listingExecutor.getResultSet();
    GroupDesign groupDesign=(GroupDesign)getDesign();
    int endGroup=rset.getEndingGroupLevel();
    int groupLevel=groupDesign.getGroupLevel() + 1;
    if (endGroup <= groupLevel) {
      totalElements=0;
      currentElement=0;
      BandDesign footer=groupDesign.getFooter();
      if (footer != null) {
        executableElements[totalElements++]=footer;
      }
      endOfGroup=true;
      return currentElement < totalElements;
    }
    if (rset.next()) {
      collectExecutableElements();
      if (currentElement < totalElements) {
        return true;
      }
    }
  }
  return false;
}
Program: 77762
Project: 77762
Buggy source:
public boolean hasNextChild(){
  if (currentElement < totalElements) {
    return true;
  }
  if (endOfListing) {
    return false;
  }
  int endGroup=rset.getEndingGroupLevel();
  if (endGroup <= 0) {
    ListingDesign listingDesign=(ListingDesign)getDesign();
    totalElements=0;
    currentElement=0;
    executableElements[totalElements++]=listingDesign.getFooter();
    endOfListing=true;
    return true;
  }
  if (rset.next()) {
    collectExecutableElements();
    return true;
  }
  return false;
}

Fixed version (ground truth):
public boolean hasNextChild(){
  if (currentElement < totalElements) {
    return true;
  }
  if (endOfListing) {
    return false;
  }
  int endGroup=rset.getEndingGroupLevel();
  if (endGroup <= 0) {
    ListingDesign listingDesign=(ListingDesign)getDesign();
    totalElements=0;
    currentElement=0;
    if (listingDesign.getFooter() != null) {
      executableElements[totalElements++]=listingDesign.getFooter();
    }
    endOfListing=true;
    return currentElement < totalElements;
  }
  if (rset.next()) {
    collectExecutableElements();
    return currentElement < totalElements;
  }
  return false;
}
Program: 77763
Project: 77763
Buggy source:
void collectExecutableElements(){
  currentElement=0;
  totalElements=0;
  endOfListing=false;
  ListingDesign listingDesign=(ListingDesign)getDesign();
  int groupCount=listingDesign.getGroupCount();
  int startGroup=rset.getStartingGroupLevel();
  if (startGroup == 0) {
    BandDesign header=listingDesign.getHeader();
    if (header != null) {
      executableElements[totalElements++]=header;
    }
  }
  if (groupCount > 0) {
    executableElements[totalElements++]=listingDesign.getGroup(0);
  }
 else {
    BandDesign detail=listingDesign.getDetail();
    if (detail != null) {
      executableElements[totalElements++]=detail;
    }
  }
  int endGroup=rset.getEndingGroupLevel();
  if (endGroup <= 0) {
    BandDesign footer=listingDesign.getFooter();
    if (footer != null) {
      executableElements[totalElements++]=listingDesign.getFooter();
    }
    endOfListing=true;
  }
}

Fixed version (ground truth):
void collectExecutableElements(){
  currentElement=0;
  totalElements=0;
  endOfListing=false;
  ListingDesign listingDesign=(ListingDesign)getDesign();
  int groupCount=listingDesign.getGroupCount();
  int startGroup=rset.getStartingGroupLevel();
  if (startGroup == 0) {
    BandDesign header=listingDesign.getHeader();
    if (header != null) {
      executableElements[totalElements++]=header;
    }
  }
  if (groupCount > 0) {
    executableElements[totalElements++]=listingDesign.getGroup(0);
  }
 else {
    BandDesign detail=listingDesign.getDetail();
    if (detail != null) {
      executableElements[totalElements++]=detail;
    }
  }
  int endGroup=rset.getEndingGroupLevel();
  if (endGroup <= 0) {
    BandDesign footer=listingDesign.getFooter();
    if (footer != null) {
      executableElements[totalElements++]=footer;
    }
    endOfListing=true;
  }
}
Program: 77764
Project: 77764
Buggy source:
private Object handleText(ITextContent content){
  boolean isInline=parent instanceof PDFLineAreaLM;
  if (isInline) {
    assert(parent instanceof PDFLineAreaLM);
    DimensionType width=content.getWidth();
    if (width != null) {
      return new PDFTextInlineBlockLM(context,parent,content,emitter,executor);
    }
 else {
      return new PDFTextLM(context,parent,content,emitter,executor);
    }
  }
 else {
    return new PDFTextBlockContainerLM(context,parent,content,emitter,executor);
  }
}

Fixed version (ground truth):
private Object handleText(ITextContent content){
  boolean isInline=parent instanceof PDFLineAreaLM;
  if (isInline) {
    assert(parent instanceof PDFLineAreaLM);
    DimensionType width=content.getWidth();
    if (width != null) {
      return new PDFTextInlineBlockLM(context,parent,content,emitter,executor);
    }
 else {
      return new PDFTextLM(context,parent,content,emitter,executor);
    }
  }
 else {
    String text=content.getText();
    if (text == null || "String_Node_Str".equals(text)) {
      content.setText("String_Node_Str");
    }
    return new PDFTextBlockContainerLM(context,parent,content,emitter,executor);
  }
}
Program: 77765
Project: 77765
Buggy source:
public void contextInitialized(ServletContextEvent event){
}

Fixed version (ground truth):
public void contextInitialized(ServletContextEvent event){
  ParameterAccessor.initParameters(event.getServletContext());
}