nus-yam/ex-repair huggingface dataset:
Program: 75348
Project: 75348
Buggy source:
/** 
 * @throws Exception
 */
public void testBlankExpression() throws Exception {
  QueryDefinition queryDefn=newReportQuery();
  String[] name=new String[]{"String_Node_Str"};
  ScriptExpression[] se=new ScriptExpression[name.length];
  se[0]=new ScriptExpression(null);
  for (int i=0; i < name.length; i++)   queryDefn.addBinding(new Binding(name[i],se[i]));
  try {
    IResultIterator ri=executeQuery(queryDefn);
    if (ri.next()) {
      ri.getValue(name[0]);
    }
    fail("String_Node_Str");
  }
 catch (  BirtException e) {
    assertTrue(e.getErrorCode() == ResourceConstants.INVALID_JS_EXPR);
  }
}

Fixed version (ground truth):
/** 
 * @throws Exception
 */
public void testBlankExpression() throws Exception {
  QueryDefinition queryDefn=newReportQuery();
  String[] name=new String[]{"String_Node_Str"};
  ScriptExpression[] se=new ScriptExpression[name.length];
  se[0]=new ScriptExpression(null);
  for (int i=0; i < name.length; i++)   queryDefn.addBinding(new Binding(name[i],se[i]));
  try {
    IResultIterator ri=executeQuery(queryDefn);
    if (ri.next()) {
      ri.getValue(name[0]);
    }
    fail("String_Node_Str");
  }
 catch (  BirtException e) {
    assertTrue(e.getErrorCode() == ResourceConstants.INVALID_EXPR_HANDLE);
  }
}
Program: 75349
Project: 75349
Buggy source:
/** 
 * compile the string expression
 * @param expression
 * @param context
 * @return
 * @throws DataException
 */
protected CompiledExpression compileExpression(String expression,Context context) throws DataException {
  String exp="String_Node_Str";
  try {
    exp=expression;
    ScriptOrFnNode tree=parse(exp,context);
    return processScriptTree(exp,tree,context);
  }
 catch (  Exception e) {
    DataException dataException=new DataException(ResourceConstants.INVALID_JS_EXPR,e,exp);
    throw dataException;
  }
}

Fixed version (ground truth):
/** 
 * compile the string expression
 * @param expression
 * @param context
 * @return
 * @throws DataException
 */
protected CompiledExpression compileExpression(String expression,Context context) throws DataException {
  String exp="String_Node_Str";
  try {
    exp=expression;
    if (exp == null)     return null;
    ScriptOrFnNode tree=parse(exp,context);
    return processScriptTree(exp,tree,context);
  }
 catch (  Exception e) {
    DataException dataException=new DataException(ResourceConstants.INVALID_JS_EXPR,e,exp);
    throw dataException;
  }
}
Program: 75350
Project: 75350
Buggy source:
/** 
 * Creates a new DtE API Computed Column from a model computed column. Could return null if no expression is defined.
 * @throws EngineException
 */
IComputedColumn newComputedColumn(ComputedColumnHandle modelCmptdColumn) throws EngineException {
  if (modelCmptdColumn.getExpression() == null) {
    throw new EngineException(MessageConstants.MISSING_COMPUTED_COLUMN_EXPRESSION_EXCEPTION,modelCmptdColumn.getName());
  }
  return new ComputedColumn(modelCmptdColumn.getName(),modelCmptdColumn.getExpression(),toDteDataType(modelCmptdColumn.getDataType()));
}

Fixed version (ground truth):
/** 
 * Creates a new DtE API Computed Column from a model computed column. Could return null if no expression is defined.
 * @throws EngineException
 */
IComputedColumn newComputedColumn(ComputedColumnHandle modelCmptdColumn) throws EngineException {
  if (modelCmptdColumn.getExpression() == null && modelCmptdColumn.getAggregateFunction() == null) {
    throw new EngineException(MessageConstants.MISSING_COMPUTED_COLUMN_EXPRESSION_EXCEPTION,modelCmptdColumn.getName());
  }
  List argumentList=new ArrayList();
  Iterator argumentIter=modelCmptdColumn.argumentsIterator();
  while (argumentIter.hasNext()) {
    argumentList.add(new ScriptExpression(((AggregationArgumentHandle)argumentIter.next()).getValue()));
  }
  return new ComputedColumn(modelCmptdColumn.getName(),modelCmptdColumn.getExpression(),toDteDataType(modelCmptdColumn.getDataType()),modelCmptdColumn.getAggregateFunction(),modelCmptdColumn.getFilterExpression() == null ? null : new ScriptExpression(modelCmptdColumn.getFilterExpression()),argumentList);
}
Program: 75351
Project: 75351
Buggy source:
public void startTable(int[] width){
  writer.openTag("String_Node_Str");
  if (width == null) {
    logger.log(Level.SEVERE,"String_Node_Str");
    throw new IllegalArgumentException("String_Node_Str");
  }
  for (int i=0; i < width.length; i++) {
    writer.openTag("String_Node_Str");
    writer.attribute("String_Node_Str",width[i]);
    writer.closeTag("String_Node_Str");
  }
}

Fixed version (ground truth):
public void startTable(int[] width){
  writer.openTag("String_Node_Str");
  if (width == null) {
    logger.log(Level.SEVERE,"String_Node_Str");
    return;
  }
  for (int i=0; i < width.length; i++) {
    writer.openTag("String_Node_Str");
    writer.attribute("String_Node_Str",width[i]);
    writer.closeTag("String_Node_Str");
  }
}
Program: 75352
Project: 75352
Buggy source:
/** 
 * Outputs the image
 * @param ele the IMG element instance
 */
protected void outputImg(Element ele,HashMap cssStyles,IContent content){
  String src=ele.getAttribute("String_Node_Str");
  if (src != null) {
    IImageContent image=new ImageContent(content);
    addChild(content,image);
    handleStyle(ele,cssStyles,image);
    if (!FileUtil.isLocalResource(src)) {
      image.setImageSource(IImageContent.IMAGE_URL);
      image.setURI(src);
    }
 else {
      ReportDesignHandle handle=content.getReportContent().getDesign().getReportDesign();
      URL url=handle.findResource(src,IResourceLocator.IMAGE);
      if (url != null) {
        src=url.toString();
      }
      image.setImageSource(IImageContent.IMAGE_FILE);
      image.setURI(src);
    }
    if (null != ele.getAttribute("String_Node_Str") && !"String_Node_Str".equals(ele.getAttribute("String_Node_Str"))) {
      image.setWidth(DimensionType.parserUnit(ele.getAttribute("String_Node_Str"),DimensionType.UNITS_PX));
    }
    if (ele.getAttribute("String_Node_Str") != null && !"String_Node_Str".equals(ele.getAttribute("String_Node_Str"))) {
      image.setWidth(DimensionType.parserUnit(ele.getAttribute("String_Node_Str"),DimensionType.UNITS_PX));
    }
    if (ele.getAttribute("String_Node_Str") != null && !"String_Node_Str".equals(ele.getAttribute("String_Node_Str"))) {
      image.setAltText(ele.getAttribute("String_Node_Str"));
    }
  }
}

Fixed version (ground truth):
/** 
 * Outputs the image
 * @param ele the IMG element instance
 */
protected void outputImg(Element ele,HashMap cssStyles,IContent content){
  String src=ele.getAttribute("String_Node_Str");
  if (src != null) {
    IImageContent image=new ImageContent(content);
    addChild(content,image);
    handleStyle(ele,cssStyles,image);
    if (!FileUtil.isLocalResource(src)) {
      image.setImageSource(IImageContent.IMAGE_URL);
      image.setURI(src);
    }
 else {
      ReportDesignHandle handle=content.getReportContent().getDesign().getReportDesign();
      URL url=handle.findResource(src,IResourceLocator.IMAGE);
      if (url != null) {
        src=url.toString();
      }
      image.setImageSource(IImageContent.IMAGE_FILE);
      image.setURI(src);
    }
    if (null != ele.getAttribute("String_Node_Str") && !"String_Node_Str".equals(ele.getAttribute("String_Node_Str"))) {
      image.setWidth(DimensionType.parserUnit(ele.getAttribute("String_Node_Str"),DimensionType.UNITS_PX));
    }
    if (ele.getAttribute("String_Node_Str") != null && !"String_Node_Str".equals(ele.getAttribute("String_Node_Str"))) {
      image.setHeight(DimensionType.parserUnit(ele.getAttribute("String_Node_Str"),DimensionType.UNITS_PX));
    }
    if (ele.getAttribute("String_Node_Str") != null && !"String_Node_Str".equals(ele.getAttribute("String_Node_Str"))) {
      image.setAltText(ele.getAttribute("String_Node_Str"));
    }
  }
}
Program: 75353
Project: 75353
Buggy source:
/** 
 * Removes bound column from the element.
 * @param bindingName the binding name to be removed
 * @throws SemanticException if bound column property is locked.
 */
public void removedColumnBinding(String bindingName) throws SemanticException {
  if (StringUtil.isEmpty(bindingName))   return;
  List columns=(List)getProperty(BOUND_DATA_COLUMNS_PROP);
  if (columns == null)   return;
  PropertyHandle propHandle=getPropertyHandle(BOUND_DATA_COLUMNS_PROP);
  for (int i=0; i < columns.size(); i++) {
    ComputedColumn column=(ComputedColumn)columns.get(i);
    if (bindingName.equals(column.getName()))     propHandle.removeItem(column);
  }
}

Fixed version (ground truth):
/** 
 * Removes bound column from the element.
 * @param bindingName the binding name to be removed
 * @throws SemanticException if bound column property is locked.
 */
public void removedColumnBinding(String bindingName) throws SemanticException {
  PropertyHandle propHandle=getPropertyHandle(BOUND_DATA_COLUMNS_PROP);
  propHandle.removeItem(findColumnBinding(bindingName).getStructure());
}
Program: 75354
Project: 75354
Buggy source:
/** 
 * Fills the drop-down menu according to all the extended report output format.
 * @param menu the menu to fill
 */
protected void fillMenu(Menu menu){
  ReportEngine engine=new ReportEngine(new EngineConfig());
  String[] supportedFormats=engine.getSupportedFormats();
  MenuItem previewWebViewer=new MenuItem(menu,SWT.PUSH);
  previewWebViewer.setText(Messages.getString("String_Node_Str"));
  previewWebViewer.setImage(previewIcon);
  previewWebViewer.addSelectionListener(new SelectionAdapter(){
    public void widgetSelected(    SelectionEvent e){
      preview("String_Node_Str",true);
    }
  }
);
  for (int i=0; i < supportedFormats.length; i++) {
    final String format=supportedFormats[i];
    MenuItem previewOption=new MenuItem(menu,SWT.PUSH);
    previewOption.setText(Messages.getFormattedString(Messages.getString("String_Node_Str"),new Object[]{format.toUpperCase()}));
    if (format.equals("String_Node_Str")) {
      previewOption.setImage(previewPDFIcon);
    }
 else {
      previewOption.setImage(previewIcon);
    }
    previewOption.addSelectionListener(new SelectionAdapter(){
      public void widgetSelected(      SelectionEvent e){
        preview(format,false);
      }
    }
);
  }
}

Fixed version (ground truth):
/** 
 * Fills the drop-down menu according to all the extended report output format.
 * @param menu the menu to fill
 */
protected void fillMenu(Menu menu){
  ReportEngine engine=new ReportEngine(new EngineConfig());
  String[] supportedFormats=engine.getSupportedFormats();
  MenuItem previewWebViewer=new MenuItem(menu,SWT.PUSH);
  previewWebViewer.setText(Messages.getString("String_Node_Str"));
  previewWebViewer.setImage(previewIcon);
  previewWebViewer.addSelectionListener(new SelectionAdapter(){
    public void widgetSelected(    SelectionEvent e){
      preview("String_Node_Str",true);
    }
  }
);
  for (int i=0; i < supportedFormats.length; i++) {
    final String format=supportedFormats[i];
    MenuItem previewOption=new MenuItem(menu,SWT.PUSH);
    previewOption.setText(Messages.getFormattedString("String_Node_Str",new Object[]{format.toUpperCase()}));
    if (format.equals("String_Node_Str")) {
      previewOption.setImage(previewPDFIcon);
    }
 else {
      previewOption.setImage(previewIcon);
    }
    previewOption.addSelectionListener(new SelectionAdapter(){
      public void widgetSelected(      SelectionEvent e){
        preview(format,false);
      }
    }
);
  }
}
Program: 75355
Project: 75355
Buggy source:
public Menu getMenu(Control parent){
  ReportEngine engine=new ReportEngine(new EngineConfig());
  String[] supportedFormats=engine.getSupportedFormats();
  Menu menu=new Menu(parent);
  MenuItem previewWebViewer=new MenuItem(menu,SWT.PUSH);
  previewWebViewer.setText(Messages.getString("String_Node_Str"));
  previewWebViewer.setImage(previewIcon);
  previewWebViewer.addSelectionListener(new SelectionAdapter(){
    public void widgetSelected(    SelectionEvent e){
      preview("String_Node_Str",true);
    }
  }
);
  for (int i=0; i < supportedFormats.length; i++) {
    final String format=supportedFormats[i];
    MenuItem previewOption=new MenuItem(menu,SWT.PUSH);
    previewOption.setText(Messages.getFormattedString(Messages.getString("String_Node_Str"),new Object[]{format.toUpperCase()}));
    if (format.equals("String_Node_Str")) {
      previewOption.setImage(previewPDFIcon);
    }
 else     if (format.equals("String_Node_Str")) {
      previewOption.setImage(previewDOCIcon);
    }
 else {
      previewOption.setImage(previewIcon);
    }
    previewOption.addSelectionListener(new SelectionAdapter(){
      public void widgetSelected(      SelectionEvent e){
        preview(format,false);
      }
    }
);
  }
  return menu;
}

Fixed version (ground truth):
public Menu getMenu(Control parent){
  ReportEngine engine=new ReportEngine(new EngineConfig());
  String[] supportedFormats=engine.getSupportedFormats();
  Menu menu=new Menu(parent);
  MenuItem previewWebViewer=new MenuItem(menu,SWT.PUSH);
  previewWebViewer.setText(Messages.getString("String_Node_Str"));
  previewWebViewer.setImage(previewIcon);
  previewWebViewer.addSelectionListener(new SelectionAdapter(){
    public void widgetSelected(    SelectionEvent e){
      preview("String_Node_Str",true);
    }
  }
);
  for (int i=0; i < supportedFormats.length; i++) {
    final String format=supportedFormats[i];
    MenuItem previewOption=new MenuItem(menu,SWT.PUSH);
    previewOption.setText(Messages.getFormattedString("String_Node_Str",new Object[]{format.toUpperCase()}));
    if (format.equals("String_Node_Str")) {
      previewOption.setImage(previewPDFIcon);
    }
 else     if (format.equals("String_Node_Str")) {
      previewOption.setImage(previewDOCIcon);
    }
 else {
      previewOption.setImage(previewIcon);
    }
    previewOption.addSelectionListener(new SelectionAdapter(){
      public void widgetSelected(      SelectionEvent e){
        preview(format,false);
      }
    }
);
  }
  return menu;
}
Program: 75356
Project: 75356
Buggy source:
protected Control createDialogArea(Composite parent){
  UIUtil.bindHelp(parent,IHelpContextIds.PREFIX + "String_Node_Str");
  setTitle(Messages.getString("String_Node_Str"));
  getShell().setText(Messages.getString("String_Node_Str"));
  setMessage(Messages.getString("String_Node_Str"));
  Composite area=(Composite)super.createDialogArea(parent);
  Composite contents=new Composite(area,SWT.NONE);
  GridLayout layout=new GridLayout();
  layout.marginWidth=20;
  contents.setLayout(layout);
  GridData data=new GridData(GridData.FILL_BOTH);
  data.widthHint=convertWidthInCharsToPixels(80);
  contents.setLayoutData(data);
  createContentArea(contents);
  WidgetUtil.createGridPlaceholder(contents,1,true);
  initLevelDialog();
  parent.layout();
  return contents;
}

Fixed version (ground truth):
protected Control createDialogArea(Composite parent){
  UIUtil.bindHelp(parent,IHelpContextIds.CUBE_DATE_LEVEL_DIALOG);
  setTitle(Messages.getString("String_Node_Str"));
  getShell().setText(Messages.getString("String_Node_Str"));
  setMessage(Messages.getString("String_Node_Str"));
  Composite area=(Composite)super.createDialogArea(parent);
  Composite contents=new Composite(area,SWT.NONE);
  GridLayout layout=new GridLayout();
  layout.marginWidth=20;
  contents.setLayout(layout);
  GridData data=new GridData(GridData.FILL_BOTH);
  data.widthHint=convertWidthInCharsToPixels(80);
  contents.setLayoutData(data);
  createContentArea(contents);
  WidgetUtil.createGridPlaceholder(contents,1,true);
  initLevelDialog();
  parent.layout();
  return contents;
}
Program: 75357
Project: 75357
Buggy source:
protected Control createDialogArea(Composite parent){
  Composite dialogArea=(Composite)super.createDialogArea(parent);
  Composite content=new Composite(dialogArea,SWT.NONE);
  content.setLayoutData(new GridData(GridData.FILL_BOTH));
  GridLayout layout=new GridLayout();
  layout.marginRight=0;
  content.setLayout(layout);
  createFilterArea(content);
  init();
  return dialogArea;
}

Fixed version (ground truth):
protected Control createDialogArea(Composite parent){
  UIUtil.bindHelp(parent,IHelpContextIds.CUBE_FILTER_LIST_DIALOG);
  Composite dialogArea=(Composite)super.createDialogArea(parent);
  Composite content=new Composite(dialogArea,SWT.NONE);
  content.setLayoutData(new GridData(GridData.FILL_BOTH));
  GridLayout layout=new GridLayout();
  layout.marginRight=0;
  content.setLayout(layout);
  createFilterArea(content);
  init();
  return dialogArea;
}
Program: 75358
Project: 75358
Buggy source:
protected Control createDialogArea(Composite parent){
  UIUtil.bindHelp(parent,IHelpContextIds.PREFIX + "String_Node_Str");
  setTitle(Messages.getString("String_Node_Str"));
  getShell().setText(Messages.getString("String_Node_Str"));
  setMessage(Messages.getString("String_Node_Str"));
  Composite area=(Composite)super.createDialogArea(parent);
  Composite contents=new Composite(area,SWT.NONE);
  GridLayout layout=new GridLayout();
  layout.marginWidth=20;
  contents.setLayout(layout);
  GridData data=new GridData(GridData.FILL_BOTH);
  data.widthHint=convertWidthInCharsToPixels(80);
  data.heightHint=300;
  contents.setLayoutData(data);
  createGroupTypeArea(contents);
  createContentArea(contents);
  WidgetUtil.createGridPlaceholder(contents,1,true);
  initDialog();
  parent.layout();
  return contents;
}

Fixed version (ground truth):
protected Control createDialogArea(Composite parent){
  UIUtil.bindHelp(parent,IHelpContextIds.CUBE_BUILDER_GROUP_DIALOG);
  setTitle(Messages.getString("String_Node_Str"));
  getShell().setText(Messages.getString("String_Node_Str"));
  setMessage(Messages.getString("String_Node_Str"));
  Composite area=(Composite)super.createDialogArea(parent);
  Composite contents=new Composite(area,SWT.NONE);
  GridLayout layout=new GridLayout();
  layout.marginWidth=20;
  contents.setLayout(layout);
  GridData data=new GridData(GridData.FILL_BOTH);
  data.widthHint=convertWidthInCharsToPixels(80);
  data.heightHint=300;
  contents.setLayoutData(data);
  createGroupTypeArea(contents);
  createContentArea(contents);
  WidgetUtil.createGridPlaceholder(contents,1,true);
  initDialog();
  parent.layout();
  return contents;
}
Program: 75361
Project: 75361
Buggy source:
protected void doExecution() throws ReportServiceException, RemoteException {
  InputOptions options=new InputOptions();
  options.setOption(InputOptions.OPT_LOCALE,__bean.getLocale());
  options.setOption(InputOptions.OPT_RTL,new Boolean(__bean.isRtl()));
  options.setOption(InputOptions.OPT_REQUEST,context.getRequest());
  options.setOption(InputOptions.OPT_FORMAT,__bean.getFormat());
  options.setOption(InputOptions.OPT_SVG_FLAG,new Boolean(__svgFlag));
  options.setOption(InputOptions.OPT_IS_MASTER_PAGE_CONTENT,new Boolean(__bean.isMasterPageContent()));
  __activeIds=new ArrayList();
  __page=getReportService().getPage(__docName,__pageNumber + "String_Node_Str",options,__activeIds);
}

Fixed version (ground truth):
protected void doExecution() throws ReportServiceException, RemoteException {
}
Program: 75362
Project: 75362
Buggy source:
protected void doRenderPage(String docName,long pageNumber,String format,boolean svgFlag,boolean isMasterContent,boolean useBookmark,String bookmark,Locale locale,boolean isRtl) throws ReportServiceException, RemoteException {
  ArrayList activeIds=new ArrayList();
  InputOptions options=new InputOptions();
  options.setOption(InputOptions.OPT_REQUEST,context.getRequest());
  options.setOption(InputOptions.OPT_FORMAT,format);
  options.setOption(InputOptions.OPT_LOCALE,locale);
  options.setOption(InputOptions.OPT_RTL,new Boolean(isRtl));
  options.setOption(InputOptions.OPT_IS_MASTER_PAGE_CONTENT,new Boolean(isMasterContent));
  options.setOption(InputOptions.OPT_SVG_FLAG,new Boolean(svgFlag));
  ByteArrayOutputStream page=getReportService().getPage(docName,pageNumber + "String_Node_Str",options,activeIds);
  UpdateContent content=new UpdateContent();
  content.setContent(DataUtil.toUTF8(page.toByteArray()));
  content.setTarget(operation.getTarget().getId());
  content.setInitializationId(parseReportId(activeIds));
  if (useBookmark) {
    content.setBookmark(bookmark);
  }
  Update updateDocument=new Update();
  updateDocument.setUpdateContent(content);
  UpdateData updateData=new UpdateData();
  updateData.setTarget("String_Node_Str");
  Page pageObj=new Page();
  pageObj.setPageNumber(String.valueOf(pageNumber));
  pageObj.setTotalPage(String.valueOf(getReportService().getPageCount(docName,options,new OutputOptions())));
  Data data=new Data();
  data.setPage(pageObj);
  updateData.setData(data);
  Update updateNavbar=new Update();
  updateNavbar.setUpdateData(updateData);
  response.setUpdate(new Update[]{updateDocument,updateNavbar});
}

Fixed version (ground truth):
protected void doRenderPage(String docName,long pageNumber,String format,boolean svgFlag,boolean isMasterContent,boolean useBookmark,String bookmark,Locale locale,boolean isRtl) throws ReportServiceException, RemoteException {
}
Program: 75363
Project: 75363
Buggy source:
/** 
 * Render a reportlet. This is similar to getPageByObjectId. The difference is that while getPageByObjectId returns the first page containing the object, this method return all pages containing the object.
 * @param docName
 * @param objectId
 * @param renderOptions
 * @param activeIds
 * @return
 * @throws ReportServiceException
 */
void renderReportlet(String docName,String objectId,InputOptions renderOptions,List activeIds,OutputStream out) throws ReportServiceException ;

Fixed version (ground truth):
/** 
 * Render a reportlet. This is similar to getPageByObjectId. The difference is that while getPageByObjectId returns the first page containing the object, this method return all pages containing the object.
 * @param docName
 * @param objectId
 * @param renderOptions
 * @param activeIds
 * @param out
 * @return
 * @throws ReportServiceException
 */
void renderReportlet(String docName,String objectId,InputOptions renderOptions,List activeIds,OutputStream out) throws ReportServiceException ;
Program: 75364
Project: 75364
Buggy source:
private void refreshColumns(boolean onlyFilter){
  if (columnChooser == null) {
    return;
  }
  if (!onlyFilter) {
    DataSetHandle dataSetHandle=getDataSetHandle();
    try {
      columnList=DataUtil.getColumnList(dataSetHandle);
    }
 catch (    SemanticException e) {
      ExceptionHandler.handle(e);
    }
    displayTextChooser.removeAll();
    displayTextChooser.add(NONE_DISPLAY_TEXT);
    for (Iterator iter=columnList.iterator(); iter.hasNext(); ) {
      displayTextChooser.add(((ResultSetColumnHandle)iter.next()).getColumnName());
    }
    displayTextChooser.setText(NONE_DISPLAY_TEXT);
  }
  String originalSelection=columnChooser.getText();
  columnChooser.removeAll();
  for (Iterator iter=columnList.iterator(); iter.hasNext(); ) {
    ResultSetColumnHandle cachedColumn=(ResultSetColumnHandle)iter.next();
    if (matchDataType(cachedColumn)) {
      columnChooser.add(cachedColumn.getColumnName());
    }
  }
  if (columnChooser.indexOf(originalSelection) != -1) {
    columnChooser.setText(originalSelection);
  }
  columnChooser.setEnabled(columnChooser.getItemCount() > 0);
  updateMessageLine();
}

Fixed version (ground truth):
private void refreshColumns(boolean onlyFilter){
  if (columnChooser == null) {
    return;
  }
  if (!onlyFilter) {
    DataSetHandle dataSetHandle=getDataSetHandle();
    try {
      columnList=DataUtil.getColumnList(dataSetHandle);
    }
 catch (    SemanticException e) {
      ExceptionHandler.handle(e);
    }
    displayTextChooser.removeAll();
    displayTextChooser.add(NONE_DISPLAY_TEXT);
    for (Iterator iter=columnList.iterator(); iter.hasNext(); ) {
      displayTextChooser.add(((ResultSetColumnHandle)iter.next()).getColumnName());
    }
    displayTextChooser.setText(NONE_DISPLAY_TEXT);
  }
  String originalSelection=columnChooser.getText();
  columnChooser.removeAll();
  for (Iterator iter=columnList.iterator(); iter.hasNext(); ) {
    ResultSetColumnHandle cachedColumn=(ResultSetColumnHandle)iter.next();
    if (matchDataType(cachedColumn)) {
      columnChooser.add(cachedColumn.getColumnName());
    }
  }
  if (columnChooser.indexOf(originalSelection) != -1) {
    columnChooser.setText(originalSelection);
  }
  columnChooser.setEnabled(columnChooser.getItemCount() > 0);
  valueColumnExprButton.setEnabled(columnChooser.getItemCount() > 0);
  updateMessageLine();
}
Program: 75366
Project: 75366
Buggy source:
private String[] getOthersVMArguments(ILaunchConfiguration configuration) throws CoreException {
  String path=configuration.getAttribute(IMPORTPROJECT,"String_Node_Str");
  String append="String_Node_Str" + PROJECT_NAMES_KEY + "String_Node_Str"+ path;
  String projectClassPaths=finder.getClassPath();
  String classPath="String_Node_Str";
  if (projectClassPaths != null && projectClassPaths.length() != 0) {
    classPath="String_Node_Str" + PROJECT_CLASSPATH_KEY + "String_Node_Str"+ projectClassPaths;
  }
  String openFiles="String_Node_Str" + PROJECT_OPENFILES_KEY + "String_Node_Str"+ configuration.getAttribute(OPENFILENAMES,"String_Node_Str");
  return new String[]{append,classPath,openFiles};
}

Fixed version (ground truth):
private String[] getOthersVMArguments(ILaunchConfiguration configuration) throws CoreException {
  String path=configuration.getAttribute(IMPORTPROJECT,"String_Node_Str");
  String append="String_Node_Str" + PROJECT_NAMES_KEY + "String_Node_Str"+ path;
  String projectClassPaths=finder.getClassPath();
  String classPath="String_Node_Str";
  if (projectClassPaths != null && projectClassPaths.length() != 0) {
    classPath="String_Node_Str" + PROJECT_CLASSPATH_KEY + "String_Node_Str"+ projectClassPaths;
  }
  String openFiles="String_Node_Str" + PROJECT_OPENFILES_KEY + "String_Node_Str"+ configuration.getAttribute(OPENFILENAMES,"String_Node_Str");
  String mode="String_Node_Str" + WebViewer.REPORT_DEBUT_MODE + "String_Node_Str"+ "String_Node_Str";
  return new String[]{append,classPath,openFiles,mode};
}
Program: 75367
Project: 75367
Buggy source:
/** 
 * @param aggrLevels
 * @param aggrName
 * @param axisQualifierLevel
 * @param axisQualifierValue
 * @param targetLevel
 * @param direction
 */
public AggrSortDefinition(DimLevel[] aggrLevels,String aggrName,DimLevel[] axisQualifierLevel,Object[] axisQualifierValue,DimLevel targetLevel,boolean direction){
  Object[] params={aggrLevels,aggrName,axisQualifierLevel,axisQualifierValue,targetLevel,new Boolean(direction)};
  logger.entering(AggrSortDefinition.class.getName(),"String_Node_Str",params);
  this.aggrLevels=aggrLevels;
  this.aggrName=aggrName;
  this.axisQualifierLevel=axisQualifierLevel;
  this.axisQualifierValue=axisQualifierValue;
  this.targetLevel=targetLevel;
  this.direction=direction;
  logger.exiting(AggrSortDefinition.class.getName(),"String_Node_Str");
}

Fixed version (ground truth):
/** 
 * @param aggrLevels
 * @param aggrName
 * @param axisQualifierLevel
 * @param axisQualifierValue
 * @param targetLevel
 * @param direction
 * @throws DataException 
 */
public AggrSortDefinition(DimLevel[] aggrLevels,String aggrName,DimLevel[] axisQualifierLevel,Object[] axisQualifierValue,DimLevel targetLevel,boolean direction) throws DataException {
  Object[] params={aggrLevels,aggrName,axisQualifierLevel,axisQualifierValue,targetLevel,new Boolean(direction)};
  logger.entering(AggrSortDefinition.class.getName(),"String_Node_Str",params);
  checkAxisAgrument(axisQualifierLevel,axisQualifierValue);
  this.aggrLevels=aggrLevels;
  this.aggrName=aggrName;
  this.axisQualifierLevel=axisQualifierLevel;
  this.axisQualifierValue=axisQualifierValue;
  this.targetLevel=targetLevel;
  this.direction=direction;
  logger.exiting(AggrSortDefinition.class.getName(),"String_Node_Str");
}
Program: 75368
Project: 75368
Buggy source:
/** 
 * register globally available script functions
 */
private void setupScriptScope(){
  if (config != null) {
    Context cx=Context.enter();
    try {
      rootScope=cx.initStandardObjects(null,true);
      registerBeans(rootScope,config.getConfigMap());
      registerBeans(rootScope,config.getScriptObjects());
      IStatusHandler handler=config.getStatusHandler();
      if (handler != null) {
        handler.initialize();
        rootScope.put("String_Node_Str",rootScope,handler);
        cx.evaluateString(rootScope,"String_Node_Str","String_Node_Str",0,null);
      }
    }
 catch (    Exception ex) {
      rootScope=null;
      logger.log(Level.INFO,"String_Node_Str",ex);
    }
 finally {
      Context.exit();
    }
  }
}

Fixed version (ground truth):
/** 
 * register globally available script functions
 */
private void setupScriptScope(){
  if (config != null) {
    Context cx=Context.enter();
    try {
      cx.setSecurityController(ScriptUtil.createSecurityController());
    }
 catch (    Throwable throwable) {
    }
    try {
      rootScope=new ImporterTopLevel(cx);
      registerBeans(rootScope,config.getConfigMap());
      registerBeans(rootScope,config.getScriptObjects());
      IStatusHandler handler=config.getStatusHandler();
      if (handler != null) {
        handler.initialize();
        rootScope.put("String_Node_Str",rootScope,handler);
        cx.evaluateString(rootScope,"String_Node_Str","String_Node_Str",0,null);
      }
    }
 catch (    Exception ex) {
      rootScope=null;
      logger.log(Level.INFO,"String_Node_Str",ex);
    }
 finally {
      Context.exit();
    }
  }
}
Program: 75369
Project: 75369
Buggy source:
/** 
 * create a new context. Call close to finish using the execution context
 */
public ExecutionContext(EngineTask engineTask){
  if (engineTask != null) {
    task=engineTask;
    engine=task.getEngine();
    log=task.getLogger();
  }
 else {
    log=Logger.getLogger(ExecutionContext.class.getName());
  }
  locale=Locale.getDefault();
  ScriptableObject rootScope=null;
  if (engine != null) {
    Object scope=engine.getRootScope();
    if (scope instanceof ScriptableObject) {
      rootScope=(ScriptableObject)scope;
    }
  }
  if (rootScope != null) {
    scriptContext=new ScriptContext(rootScope);
  }
 else {
    scriptContext=new ScriptContext();
  }
  scriptContext.getContext().setLocale(locale);
  initailizeScriptContext(scriptContext.getContext(),scriptContext.getRootScope());
  scriptContext.registerBean("String_Node_Str",new ReportObject());
  scriptContext.registerBean("String_Node_Str",new ScriptableParameters(params,scriptContext.getScope()));
  scriptContext.registerBean("String_Node_Str",configs);
  scriptContext.registerBean("String_Node_Str",new Long(pageNumber));
  scriptContext.registerBean("String_Node_Str",new Long(totalPage));
  scriptContext.registerBean("String_Node_Str",this);
  scriptContext.eval("String_Node_Str");
  scriptContext.eval("String_Node_Str");
  applicationClassLoader=new ApplicationClassLoader(this);
  scriptContext.getContext().setApplicationClassLoader(applicationClassLoader);
}

Fixed version (ground truth):
/** 
 * create a new context. Call close to finish using the execution context
 */
public ExecutionContext(EngineTask engineTask){
  if (engineTask != null) {
    task=engineTask;
    engine=task.getEngine();
    log=task.getLogger();
  }
 else {
    log=Logger.getLogger(ExecutionContext.class.getName());
  }
  locale=Locale.getDefault();
  ScriptableObject rootScope=null;
  if (engine != null) {
    Object scope=engine.getRootScope();
    if (scope instanceof ScriptableObject) {
      rootScope=(ScriptableObject)scope;
    }
  }
  if (rootScope != null) {
    scriptContext=new ScriptContext(rootScope);
  }
 else {
    scriptContext=new ScriptContext();
  }
  Context context=scriptContext.getContext();
  try {
    context.setSecurityController(ScriptUtil.createSecurityController());
  }
 catch (  Throwable throwable) {
  }
  context.setLocale(locale);
  initailizeScriptContext(context,scriptContext.getRootScope());
  scriptContext.registerBean("String_Node_Str",new ReportObject());
  scriptContext.registerBean("String_Node_Str",new ScriptableParameters(params,scriptContext.getScope()));
  scriptContext.registerBean("String_Node_Str",configs);
  scriptContext.registerBean("String_Node_Str",new Long(pageNumber));
  scriptContext.registerBean("String_Node_Str",new Long(totalPage));
  scriptContext.registerBean("String_Node_Str",this);
  scriptContext.eval("String_Node_Str");
  scriptContext.eval("String_Node_Str");
  applicationClassLoader=new ApplicationClassLoader(this);
  context.setApplicationClassLoader(applicationClassLoader);
}
Program: 75370
Project: 75370
Buggy source:
private boolean isEnable(){
  IEditorPart editor=UIUtil.getActiveEditor(true);
  if (editor != null) {
    return (editor.getEditorInput().getName().endsWith("String_Node_Str") || editor.getEditorInput().getName().endsWith("String_Node_Str"));
  }
  return false;
}

Fixed version (ground truth):
private boolean isEnable(){
  IEditorPart editor=UIUtil.getActiveEditor(true);
  if (editor != null) {
    IContentType[] contentTypes=Platform.getContentTypeManager().findContentTypesFor(editor.getEditorInput().getName());
    if (contentTypes[0] != null && (contentTypes[0].getId().equals("String_Node_Str") || contentTypes[0].getId().equals("String_Node_Str"))) {
      return true;
    }
  }
  return false;
}
Program: 75371
Project: 75371
Buggy source:
private boolean isEnable(){
  IEditorPart editor=UIUtil.getActiveEditor(true);
  if (editor != null) {
    return (editor.getEditorInput().getName().endsWith("String_Node_Str") || editor.getEditorInput().getName().endsWith("String_Node_Str"));
  }
  return false;
}

Fixed version (ground truth):
private boolean isEnable(){
  IEditorPart editor=UIUtil.getActiveEditor(true);
  if (editor != null) {
    IContentType[] contentTypes=Platform.getContentTypeManager().findContentTypesFor(editor.getEditorInput().getName());
    if (contentTypes[0] != null && (contentTypes[0].getId().equals("String_Node_Str") || contentTypes[0].getId().equals("String_Node_Str"))) {
      return true;
    }
  }
  return false;
}
Program: 75373
Project: 75373
Buggy source:
public void end(IReportContent report){
  engine.complete();
  ExcelWriter writer=new ExcelWriter(out);
  writer.writeDeclarations();
  writer.declareStyles(engine.getStyleMap());
  writer.startSheet();
  writer.startTable(engine.getCoordinates());
  int count=0;
  while (count < engine.getRowCount()) {
    outputData(engine.getRow(count),writer);
    count++;
  }
  writer.endTable();
  writer.closeSheet();
  writer.close(true);
}

Fixed version (ground truth):
public void end(IReportContent report){
  engine.complete();
  ExcelWriter writer=new ExcelWriter(out);
  writer.writeDeclarations();
  writer.declareStyles(engine.getStyleMap());
  writer.startSheet();
  writer.startTable(engine.getCoordinates());
  int count=0;
  while (count < engine.getRowCount()) {
    outputData(engine.getRow(count),writer);
    count++;
  }
  writer.endTable();
  writer.closeSheet();
  for (int i=0; i < charts.size(); i++) {
    File temp=(File)charts.get(i);
    writer.insertSheet(temp);
    temp.delete();
  }
  writer.close(true);
}
Program: 75374
Project: 75374
Buggy source:
/** 
 */
private void processSubQuery(){
  IBaseQueryDefinition queryDefn2=null;
  if (queryDefn != null)   queryDefn2=queryDefn;
 else   queryDefn2=subQueryDefn;
  subQueryMap=new HashMap();
  Collection subQueryDefns=queryDefn2.getSubqueries();
  if (subQueryDefns != null) {
    Iterator it=subQueryDefns.iterator();
    while (it.hasNext()) {
      ISubqueryDefinition subQueryDefn=(ISubqueryDefinition)it.next();
      subQueryMap.put(subQueryDefn.getName(),subQueryDefn);
    }
  }
}

Fixed version (ground truth):
/** 
 */
private void processSubQuery(){
  IBaseQueryDefinition queryDefn2=null;
  if (queryDefn != null)   queryDefn2=queryDefn;
 else   queryDefn2=subQueryDefn;
  subQueryMap=new HashMap();
  registerSubQuery(queryDefn2);
}
Program: 75375
Project: 75375
Buggy source:
private List getEdgeSort(int edgeType){
  List l=this.defn.getSorts();
  List result=new ArrayList();
  for (int i=0; i < l.size(); i++) {
    ICubeSortDefinition sort=(ICubeSortDefinition)l.get(i);
    if (this.defn.getEdge(edgeType).getDimensions().contains(sort.getTargetLevel().getHierarchy().getDimension())) {
      result.add(sort);
    }
  }
  Collections.sort(result,new Comparator(){
    public int compare(    Object arg0,    Object arg1){
      int level1=((ICubeSortDefinition)arg0).getTargetLevel().getHierarchy().getLevels().indexOf(((ICubeSortDefinition)arg0).getTargetLevel());
      int level2=((ICubeSortDefinition)arg1).getTargetLevel().getHierarchy().getLevels().indexOf(((ICubeSortDefinition)arg1).getTargetLevel());
      if (level1 == level2)       return 0;
 else       if (level1 < level2)       return -1;
 else       return 1;
    }
  }
);
  return result;
}

Fixed version (ground truth):
private List getEdgeSort(int edgeType){
  List l=this.defn.getSorts();
  List result=new ArrayList();
  for (int i=0; i < l.size(); i++) {
    ICubeSortDefinition sort=(ICubeSortDefinition)l.get(i);
    if (this.defn.getEdge(edgeType) != null && this.defn.getEdge(edgeType).getDimensions().contains(sort.getTargetLevel().getHierarchy().getDimension())) {
      result.add(sort);
    }
  }
  Collections.sort(result,new Comparator(){
    public int compare(    Object arg0,    Object arg1){
      int level1=((ICubeSortDefinition)arg0).getTargetLevel().getHierarchy().getLevels().indexOf(((ICubeSortDefinition)arg0).getTargetLevel());
      int level2=((ICubeSortDefinition)arg1).getTargetLevel().getHierarchy().getLevels().indexOf(((ICubeSortDefinition)arg1).getTargetLevel());
      if (level1 == level2)       return 0;
 else       if (level1 < level2)       return -1;
 else       return 1;
    }
  }
);
  return result;
}
Program: 75376
Project: 75376
Buggy source:
/** 
 * register globally available script functions
 */
private void setupScriptScope(){
  if (config != null) {
    Context cx=Context.enter();
    try {
      rootScope=cx.initStandardObjects(null,true);
      registerBeans(rootScope,config.getConfigMap());
      registerBeans(rootScope,config.getScriptObjects());
      IStatusHandler handler=config.getStatusHandler();
      if (handler != null) {
        handler.initialize();
        rootScope.put("String_Node_Str",rootScope,handler);
        cx.evaluateString(rootScope,"String_Node_Str","String_Node_Str",0,null);
      }
    }
 catch (    Exception ex) {
      rootScope=null;
      logger.log(Level.INFO,"String_Node_Str",ex);
    }
 finally {
      Context.exit();
    }
  }
}

Fixed version (ground truth):
/** 
 * register globally available script functions
 */
private void setupScriptScope(){
  if (config != null) {
    Context cx=Context.enter();
    try {
      cx.setSecurityController(ScriptUtil.createSecurityController());
    }
 catch (    Throwable throwable) {
      throwable.printStackTrace();
    }
    try {
      rootScope=new ImporterTopLevel(cx);
      registerBeans(rootScope,config.getConfigMap());
      registerBeans(rootScope,config.getScriptObjects());
      IStatusHandler handler=config.getStatusHandler();
      if (handler != null) {
        handler.initialize();
        rootScope.put("String_Node_Str",rootScope,handler);
        cx.evaluateString(rootScope,"String_Node_Str","String_Node_Str",0,null);
      }
    }
 catch (    Exception ex) {
      rootScope=null;
      logger.log(Level.INFO,"String_Node_Str",ex);
    }
 finally {
      Context.exit();
    }
  }
}
Program: 75377
Project: 75377
Buggy source:
/** 
 * create a new context. Call close to finish using the execution context
 */
public ExecutionContext(EngineTask engineTask){
  if (engineTask != null) {
    task=engineTask;
    engine=task.getEngine();
    log=task.getLogger();
  }
 else {
    log=Logger.getLogger(ExecutionContext.class.getName());
  }
  locale=Locale.getDefault();
  ScriptableObject rootScope=null;
  if (engine != null) {
    Object scope=engine.getRootScope();
    if (scope instanceof ScriptableObject) {
      rootScope=(ScriptableObject)scope;
    }
  }
  if (rootScope != null) {
    scriptContext=new ScriptContext(rootScope);
  }
 else {
    scriptContext=new ScriptContext();
  }
  scriptContext.getContext().setLocale(locale);
  initailizeScriptContext(scriptContext.getContext(),scriptContext.getRootScope());
  scriptContext.registerBean("String_Node_Str",new ReportObject());
  scriptContext.registerBean("String_Node_Str",new ScriptableParameters(params,scriptContext.getScope()));
  scriptContext.registerBean("String_Node_Str",configs);
  scriptContext.registerBean("String_Node_Str",new Long(pageNumber));
  scriptContext.registerBean("String_Node_Str",new Long(totalPage));
  scriptContext.registerBean("String_Node_Str",this);
  scriptContext.eval("String_Node_Str");
  scriptContext.eval("String_Node_Str");
  applicationClassLoader=new ApplicationClassLoader(this);
  scriptContext.getContext().setApplicationClassLoader(applicationClassLoader);
}

Fixed version (ground truth):
/** 
 * create a new context. Call close to finish using the execution context
 */
public ExecutionContext(EngineTask engineTask){
  if (engineTask != null) {
    task=engineTask;
    engine=task.getEngine();
    log=task.getLogger();
  }
 else {
    log=Logger.getLogger(ExecutionContext.class.getName());
  }
  locale=Locale.getDefault();
  ScriptableObject rootScope=null;
  if (engine != null) {
    Object scope=engine.getRootScope();
    if (scope instanceof ScriptableObject) {
      rootScope=(ScriptableObject)scope;
    }
  }
  if (rootScope != null) {
    scriptContext=new ScriptContext(rootScope);
  }
 else {
    scriptContext=new ScriptContext();
  }
  Context context=scriptContext.getContext();
  try {
    context.setSecurityController(ScriptUtil.createSecurityController());
  }
 catch (  Throwable throwable) {
    throwable.printStackTrace();
  }
  context.setLocale(locale);
  initailizeScriptContext(context,scriptContext.getRootScope());
  scriptContext.registerBean("String_Node_Str",new ReportObject());
  scriptContext.registerBean("String_Node_Str",new ScriptableParameters(params,scriptContext.getScope()));
  scriptContext.registerBean("String_Node_Str",configs);
  scriptContext.registerBean("String_Node_Str",new Long(pageNumber));
  scriptContext.registerBean("String_Node_Str",new Long(totalPage));
  scriptContext.registerBean("String_Node_Str",this);
  scriptContext.eval("String_Node_Str");
  scriptContext.eval("String_Node_Str");
  applicationClassLoader=new ApplicationClassLoader(this);
  context.setApplicationClassLoader(applicationClassLoader);
}
Program: 75378
Project: 75378
Buggy source:
public Iterator getMemberValueIterator(TabularCubeHandle cubeHandle,String targetLevel,ILevelDefinition[] higherLevelDefns,Object[] values) throws AdapterException {
  try {
    if ((higherLevelDefns == null && values != null) || (higherLevelDefns != null && values == null) || cubeHandle == null || targetLevel == null)     return null;
    DimLevel target=OlapExpressionUtil.getTargetDimLevel(targetLevel);
    TabularHierarchyHandle hierHandle=(TabularHierarchyHandle)(cubeHandle.getDimension(target.getDimensionName()).getContent(TabularDimensionHandle.HIERARCHIES_PROP,0));
    defineDataSourceAndDataSet(hierHandle.getDataSet());
    Map levelValueMap=new HashMap();
    if (higherLevelDefns != null) {
      for (int i=0; i < higherLevelDefns.length; i++) {
        if (target.getDimensionName().equals(higherLevelDefns[i].getHierarchy().getDimension().getName())) {
          levelValueMap.put(higherLevelDefns[i].getName(),values[i]);
        }
      }
    }
    DataSetIterator it=null;
    if (hierHandle.getDataSet() != cubeHandle.getDataSet())     it=new DataSetIterator(this.session,hierHandle);
 else     it=new DataSetIterator(this.session,cubeHandle);
    return new MemberValueIterator(it,levelValueMap,target.getLevelName());
  }
 catch (  BirtException e) {
    throw new AdapterException(e.getLocalizedMessage(),e);
  }
}

Fixed version (ground truth):
public Iterator getMemberValueIterator(TabularCubeHandle cubeHandle,String targetLevel,ILevelDefinition[] higherLevelDefns,Object[] values) throws AdapterException {
  try {
    if ((higherLevelDefns == null && values != null) || (higherLevelDefns != null && values == null) || cubeHandle == null || targetLevel == null)     return null;
    DimLevel target=OlapExpressionUtil.getTargetDimLevel(targetLevel);
    TabularHierarchyHandle hierHandle=(TabularHierarchyHandle)(cubeHandle.getDimension(target.getDimensionName()).getContent(TabularDimensionHandle.HIERARCHIES_PROP,0));
    defineDataSourceAndDataSet(hierHandle.getDataSet());
    Map levelValueMap=new HashMap();
    if (higherLevelDefns != null) {
      for (int i=0; i < higherLevelDefns.length; i++) {
        if (target.getDimensionName().equals(higherLevelDefns[i].getHierarchy().getDimension().getName())) {
          levelValueMap.put(higherLevelDefns[i].getName(),values[i]);
        }
      }
    }
    DataSetIterator it=new DataSetIterator(this.session,hierHandle);
    return new MemberValueIterator(it,levelValueMap,target.getLevelName());
  }
 catch (  BirtException e) {
    throw new AdapterException(e.getLocalizedMessage(),e);
  }
}
Program: 75380
Project: 75380
Buggy source:
private void updateDataDefinition(){
  ISelectDataComponent newComponent=getDataDefinitionComponent(getCurrentSeriesDefinition());
  if (dateComponent != null && dateComponent.getClass() == newComponent.getClass()) {
    return;
  }
  if (cmpData != null && !cmpData.isDisposed()) {
    cmpData.dispose();
  }
  dateComponent=newComponent;
  cmpData=dateComponent.createArea(cmpTop);
{
    GridData gd=new GridData(GridData.FILL_HORIZONTAL);
    gd.horizontalSpan=2;
    cmpData.setLayoutData(gd);
  }
}

Fixed version (ground truth):
private void updateDataDefinition(){
  ISelectDataComponent newComponent=getDataDefinitionComponent(getCurrentSeriesDefinition());
  if (dataComponent != null && dataComponent.getClass() == newComponent.getClass()) {
    return;
  }
  if (cmpData != null && !cmpData.isDisposed()) {
    cmpData.dispose();
  }
  dataComponent=newComponent;
  cmpData=dataComponent.createArea(cmpTop);
  if (cmpData != null) {
    GridData gd=new GridData(GridData.FILL_HORIZONTAL);
    gd.horizontalSpan=2;
    cmpData.setLayoutData(gd);
  }
}
Program: 75382
Project: 75382
Buggy source:
private void refreshQuery(){
  Object[] data=new Object[2];
  data[0]=getCurrentSeriesDefinition();
  data[1]=ChartUIUtil.getDataQuery(getCurrentSeriesDefinition(),0);
  dateComponent.selectArea(true,data);
}

Fixed version (ground truth):
private void refreshQuery(){
  Object[] data=new Object[2];
  data[0]=getCurrentSeriesDefinition();
  data[1]=ChartUIUtil.getDataQuery(getCurrentSeriesDefinition(),0);
  dataComponent.selectArea(true,data);
}
Program: 75383
Project: 75383
Buggy source:
public void selectArea(boolean selected,Object data){
  dateComponent.selectArea(selected,data);
}

Fixed version (ground truth):
public void selectArea(boolean selected,Object data){
  dataComponent.selectArea(selected,data);
}
Program: 75384
Project: 75384
Buggy source:
private SeriesDefinition getCurrentSeriesDefinition(){
  return (SeriesDefinition)seriesDefns.get(cmbSeriesSelect.getSelectionIndex());
}

Fixed version (ground truth):
private SeriesDefinition getCurrentSeriesDefinition(){
  if (seriesDefns.isEmpty()) {
    addNewSeriesDefinition();
    refreshSeriesCombo();
    cmbSeriesSelect.select(0);
  }
  return (SeriesDefinition)seriesDefns.get(cmbSeriesSelect.getSelectionIndex());
}
Program: 75385
Project: 75385
Buggy source:
public void dispose(){
  dateComponent.dispose();
  super.dispose();
}

Fixed version (ground truth):
public void dispose(){
  if (dataComponent != null) {
    dataComponent.dispose();
  }
  super.dispose();
}
Program: 75386
Project: 75386
Buggy source:
public void widgetDisposed(DisposeEvent e){
  Iterator tasks=availableTasks.values().iterator();
  while (tasks.hasNext()) {
    ((ITask)tasks.next()).dispose();
  }
  WizardBase.this.dispose();
}

Fixed version (ground truth):
public void widgetDisposed(DisposeEvent e){
  WizardBase.this.dispose();
}