nus-yam/ex-repair huggingface dataset:
Program: 129264
Project: 129264
Buggy source:
public Image getColumnImage(Object element,int columnIndex){
  if (columnIndex == 0) {
    if (element instanceof JobletReferenceBean) {
      JobletReferenceBean bean=(JobletReferenceBean)element;
      if (bean.isJob()) {
        return ImageProvider.getImage(ECoreImage.PROCESS_ICON);
      }
 else {
        return ImageProvider.getImage(ECoreImage.JOBLET_ICON);
      }
    }
  }
  return null;
}

Fixed version (ground truth):
@Override public Image getColumnImage(Object element,int columnIndex){
  if (columnIndex == 0) {
    if (element instanceof JobletReferenceBean) {
      JobletReferenceBean bean=(JobletReferenceBean)element;
      if (bean.isJob()) {
        return ImageProvider.getImage(ECoreImage.PROCESS_ICON);
      }
 else {
        return ImageProvider.getImage(ECoreImage.JOBLET_ICON);
      }
    }
  }
  return null;
}
Program: 129265
Project: 129265
Buggy source:
@Override protected void configureShell(Shell newShell){
  super.configureShell(newShell);
  newShell.setText(Messages.getString("String_Node_Str"));
}

Fixed version (ground truth):
@Override protected void configureShell(Shell newShell){
  super.configureShell(newShell);
  newShell.setSize(540,400);
  newShell.setText(Messages.getString("String_Node_Str"));
}
Program: 129266
Project: 129266
Buggy source:
public Object[] getElements(Object inputElement){
  if (inputElement != null) {
    return ((List)inputElement).toArray();
  }
  return new Object[0];
}

Fixed version (ground truth):
@Override public Object[] getElements(Object inputElement){
  if (inputElement != null) {
    return ((List)inputElement).toArray();
  }
  return new Object[0];
}
Program: 129267
Project: 129267
Buggy source:
public String getColumnText(Object element,int columnIndex){
  JobletReferenceBean bean=(JobletReferenceBean)element;
switch (columnIndex) {
case 1:
    return bean.getProjectName() + "String_Node_Str";
case 2:
  if (bean.isDelete()) {
    return bean.getJobName() + "String_Node_Str" + bean.getJobVersion()+ "String_Node_Str"+ Messages.getString("String_Node_Str")+ "String_Node_Str";
  }
 else {
    String prefix="String_Node_Str";
    if (bean.getJobPath() != null && !"String_Node_Str".equals(bean.getJobPath())) {
      prefix=bean.getJobPath() + File.separator;
    }
    return prefix + bean.getJobName() + "String_Node_Str"+ bean.getJobVersion();
  }
case 3:
return "String_Node_Str" + bean.getNodeNum();
case 0:
default :
return "String_Node_Str";
}
}

Fixed version (ground truth):
@Override public String getColumnText(Object element,int columnIndex){
  JobletReferenceBean bean=(JobletReferenceBean)element;
switch (columnIndex) {
case 1:
    return bean.getProjectName() + "String_Node_Str";
case 2:
  if (bean.isDelete()) {
    return bean.getJobName() + "String_Node_Str" + bean.getJobVersion()+ "String_Node_Str"+ Messages.getString("String_Node_Str")+ "String_Node_Str";
  }
 else {
    String prefix="String_Node_Str";
    if (bean.getJobPath() != null && !"String_Node_Str".equals(bean.getJobPath())) {
      prefix=bean.getJobPath() + File.separator;
    }
    return prefix + bean.getJobName() + "String_Node_Str"+ bean.getJobVersion();
  }
case 3:
return "String_Node_Str" + bean.getNodeNum();
case 0:
default :
return "String_Node_Str";
}
}
Program: 129269
Project: 129269
Buggy source:
public void dispose(){
}

Fixed version (ground truth):
@Override public void dispose(){
}
Program: 129270
Project: 129270
Buggy source:
public void inputChanged(Viewer viewer,Object oldInput,Object newInput){
}

Fixed version (ground truth):
@Override public void inputChanged(Viewer viewer,Object oldInput,Object newInput){
}
Program: 129271
Project: 129271
Buggy source:
@Test public void testGetDBConnectionSchema(){
  DatabaseConnection conn=mock(DatabaseConnection.class);
  IMetadataConnection metadataConnection=mock(IMetadataConnection.class);
  when(metadataConnection.getSchema()).thenReturn("String_Node_Str");
  PowerMockito.mockStatic(ConvertionHelper.class);
  when(ConvertionHelper.convert(conn,true)).thenReturn(metadataConnection);
  Assert.assertEquals(ExtractMetaDataUtils.getDBConnectionSchema(conn),metadataConnection.getSchema());
  verify(metadataConnection,times(2)).getSchema();
}

Fixed version (ground truth):
@Test public void testGetDBConnectionSchema(){
  DatabaseConnection conn=mock(DatabaseConnection.class);
  when(conn.getUiSchema()).thenReturn("String_Node_Str");
  Assert.assertEquals(ExtractMetaDataUtils.getDBConnectionSchema(conn),"String_Node_Str");
}
Program: 129272
Project: 129272
Buggy source:
@Override protected void configureShell(Shell newShell){
  super.configureShell(newShell);
  newShell.setText(Messages.getString("String_Node_Str"));
}

Fixed version (ground truth):
@Override protected void configureShell(Shell newShell){
  super.configureShell(newShell);
  newShell.setSize(540,400);
  newShell.setText(Messages.getString("String_Node_Str"));
}
Program: 129273
Project: 129273
Buggy source:
@Test public void testGetStringMetaDataInfo_ThreeArguments4Null() throws SQLException {
  ResultSet resultSet=mock(ResultSet.class);
  DatabaseMetaData metadata=mock(DatabaseMetaData.class);
  final String infoType="String_Node_Str";
  Assert.assertNull(ExtractMetaDataUtils.getStringMetaDataInfo(null,null,null));
  Assert.assertNull(ExtractMetaDataUtils.getStringMetaDataInfo(null,null,metadata));
  Assert.assertNull(ExtractMetaDataUtils.getStringMetaDataInfo(null,"String_Node_Str",metadata));
  final String value="String_Node_Str";
  when(resultSet.getString(anyString())).thenReturn(value);
  String actualResult=ExtractMetaDataUtils.getStringMetaDataInfo(resultSet,infoType,null);
  verify(resultSet).getString(anyString());
  Assert.assertEquals(actualResult,value);
  actualResult=ExtractMetaDataUtils.getStringMetaDataInfo(resultSet,infoType,metadata);
  verify(resultSet,times(2)).getString(anyString());
  Assert.assertEquals(actualResult,ManagementTextUtils.QUOTATION_MARK + value + ManagementTextUtils.QUOTATION_MARK);
}

Fixed version (ground truth):
@Test public void testGetStringMetaDataInfo_ThreeArguments4Null() throws SQLException {
  ResultSet resultSet=mock(ResultSet.class);
  DatabaseMetaData metadata=mock(DatabaseMetaData.class);
  final String infoType="String_Node_Str";
  Assert.assertNull(ExtractMetaDataUtils.getStringMetaDataInfo(null,null,null));
  Assert.assertNull(ExtractMetaDataUtils.getStringMetaDataInfo(null,null,metadata));
  Assert.assertNull(ExtractMetaDataUtils.getStringMetaDataInfo(null,"String_Node_Str",metadata));
  final String value="String_Node_Str";
  when(resultSet.getString(anyString())).thenReturn(value);
  String actualResult=ExtractMetaDataUtils.getStringMetaDataInfo(resultSet,infoType,null);
  verify(resultSet).getString(anyString());
  Assert.assertEquals(actualResult,value);
  actualResult=ExtractMetaDataUtils.getStringMetaDataInfo(resultSet,infoType,metadata);
  verify(resultSet,times(2)).getString(anyString());
  Assert.assertEquals(actualResult,value);
}
Program: 129275
Project: 129275
Buggy source:
public static XSDSchema getXSDSchema(String fileName){
  XSDSchema schema=null;
  try {
    String newFilePath;
    try {
      newFilePath=CopyDeleteFileUtilForWizard.copyToTemp(fileName);
    }
 catch (    PersistenceException e1) {
      newFilePath=fileName;
    }
    schema=new XSDPopulationUtil2().getXSDSchema(newFilePath);
  }
 catch (  Exception e) {
    ExceptionHandler.process(e);
  }
  return schema;
}

Fixed version (ground truth):
public static XSDSchema getXSDSchema(String fileName){
  XSDSchema schema=null;
  try {
    if (fileName.endsWith("String_Node_Str")) {
      Project project=ProjectManager.getInstance().getCurrentProject();
      IProject fsProject=null;
      try {
        fsProject=ResourceModelUtils.getProject(project);
      }
 catch (      PersistenceException e2) {
        ExceptionHandler.process(e2);
      }
      IPath path=new Path(fsProject.getLocationURI().getPath());
      path=path.append("String_Node_Str").append("String_Node_Str" + new Path(fileName).lastSegment());
      String unzipPath=path.toPortableString();
      File zip=new File(fileName);
      if (zip.exists()) {
        try {
          FilesUtils.unzip(zip.getAbsolutePath(),unzipPath);
        }
 catch (        Exception e) {
          ExceptionHandler.process(e);
        }
      }
      File unzipFile=new File(unzipPath);
      XSDPopulationUtil2 popUtil=new XSDPopulationUtil2();
      if (unzipFile.exists() && unzipFile.isDirectory()) {
        File[] tempXSDFiles=unzipFile.listFiles();
        for (        File tempXSDFile : tempXSDFiles) {
          popUtil.addSchema(tempXSDFile.getAbsolutePath());
        }
        schema=popUtil.getXSDSchema(tempXSDFiles[0].getAbsolutePath());
      }
    }
 else {
      String newFilePath;
      try {
        newFilePath=CopyDeleteFileUtilForWizard.copyToTemp(fileName);
      }
 catch (      PersistenceException e1) {
        newFilePath=fileName;
      }
      schema=new XSDPopulationUtil2().getXSDSchema(newFilePath);
    }
  }
 catch (  Exception e) {
    ExceptionHandler.process(e);
  }
  return schema;
}
Program: 129276
Project: 129276
Buggy source:
public static List<FOXTreeNode> parseMDMUpdateReport(Shell shell,boolean needConfirm){
  boolean fileExist=false;
  String filePath="String_Node_Str";
  try {
    Bundle b=Platform.getBundle("String_Node_Str");
    if (b == null)     return null;
    URL fileUrl=FileLocator.find(b,new Path("String_Node_Str"),null);
    if (fileUrl == null) {
      return null;
    }
    URL url=FileLocator.toFileURL(fileUrl);
    if (url != null) {
      filePath=copyToTempFile(url,"String_Node_Str");
      fileExist=true;
    }
  }
 catch (  IOException e) {
    fileExist=false;
  }
  if (!fileExist) {
    return null;
  }
  boolean pass=true;
  if (needConfirm) {
    pass=MessageDialog.openConfirm(shell,"String_Node_Str","String_Node_Str");
  }
  if (pass) {
    try {
      if (XmlUtil.isXSDFile(filePath)) {
        XSDSchema xsdSchema=getXSDSchema(filePath);
        List<ATreeNode> allTreeNodes=new XSDPopulationUtil2().getAllRootNodes(xsdSchema);
        if (!allTreeNodes.isEmpty()) {
          return getFoxTreeNodesByRootNode(xsdSchema,allTreeNodes.get(0));
        }
      }
    }
 catch (    Exception e) {
      ExceptionHandler.process(e);
    }
  }
  return null;
}

Fixed version (ground truth):
public static List<FOXTreeNode> parseMDMUpdateReport(Shell shell,boolean needConfirm){
  boolean fileExist=false;
  String filePath="String_Node_Str";
  try {
    Bundle b=Platform.getBundle("String_Node_Str");
    if (b == null) {
      return null;
    }
    URL fileUrl=FileLocator.find(b,new Path("String_Node_Str"),null);
    if (fileUrl == null) {
      return null;
    }
    URL url=FileLocator.toFileURL(fileUrl);
    if (url != null) {
      filePath=copyToTempFile(url,"String_Node_Str");
      fileExist=true;
    }
  }
 catch (  IOException e) {
    fileExist=false;
  }
  if (!fileExist) {
    return null;
  }
  boolean pass=true;
  if (needConfirm) {
    pass=MessageDialog.openConfirm(shell,"String_Node_Str","String_Node_Str");
  }
  if (pass) {
    try {
      if (XmlUtil.isXSDFile(filePath)) {
        XSDSchema xsdSchema=getXSDSchema(filePath);
        List<ATreeNode> allTreeNodes=new XSDPopulationUtil2().getAllRootNodes(xsdSchema);
        if (!allTreeNodes.isEmpty()) {
          return getFoxTreeNodesByRootNode(xsdSchema,allTreeNodes.get(0));
        }
      }
    }
 catch (    Exception e) {
      ExceptionHandler.process(e);
    }
  }
  return null;
}
Program: 129277
Project: 129277
Buggy source:
public void focusGained(FocusEvent e){
}

Fixed version (ground truth):
@Override public void focusGained(FocusEvent e){
}
Program: 129278
Project: 129278
Buggy source:
public void widgetSelected(SelectionEvent e){
  xmlXsdFilePath.setEditable(true);
  String text=xmlXsdFilePath.getText();
  if (isContextMode()) {
    ContextType contextType=ConnectionContextHelper.getContextTypeForContextMode(connectionItem.getConnection(),true);
    text=TalendQuoteUtils.removeQuotes(ConnectionContextHelper.getOriginalValue(contextType,text));
  }
  getConnection().setXmlFilePath(text);
  updateConnection(text);
  encodingCombo.setEnabled(true);
  commonNodesLimitation.setEditable(true);
  availableXmlTree.setEnabled(true);
  fileContentText.setEnabled(true);
  fileContentText.setEditable(false);
  checkFieldsValue();
}

Fixed version (ground truth):
@Override public void widgetSelected(SelectionEvent e){
  xmlXsdFilePath.setEditable(true);
  String text=xmlXsdFilePath.getText();
  if (isContextMode()) {
    ContextType contextType=ConnectionContextHelper.getContextTypeForContextMode(connectionItem.getConnection(),true);
    text=TalendQuoteUtils.removeQuotes(ConnectionContextHelper.getOriginalValue(contextType,text));
  }
  getConnection().setXmlFilePath(text);
  updateConnection(text);
  encodingCombo.setEnabled(true);
  commonNodesLimitation.setEditable(true);
  availableXmlTree.setEnabled(true);
  fileContentText.setEnabled(true);
  fileContentText.setEditable(false);
  checkFieldsValue();
}
Program: 129279
Project: 129279
Buggy source:
@Override protected void addUtilsButtonListeners(){
  noFileButton.addSelectionListener(new SelectionAdapter(){
    public void widgetSelected(    SelectionEvent e){
      xmlXsdFilePath.setEditable(false);
      xmlXsdFilePath.setText("String_Node_Str");
      encodingCombo.setEnabled(false);
      commonNodesLimitation.setEditable(false);
      availableXmlTree.setEnabled(false);
      fileContentText.setEnabled(false);
      getConnection().setXmlFilePath("String_Node_Str");
      ConnectionHelper.getTables(getConnection()).toArray(new MetadataTable[0])[0].getColumns().clear();
      getConnection().getRoot().clear();
      getConnection().getLoop().clear();
      getConnection().getGroup().clear();
      checkFieldsValue();
    }
  }
);
  useFileButton.addSelectionListener(new SelectionAdapter(){
    public void widgetSelected(    SelectionEvent e){
      xmlXsdFilePath.setEditable(true);
      String text=xmlXsdFilePath.getText();
      if (isContextMode()) {
        ContextType contextType=ConnectionContextHelper.getContextTypeForContextMode(connectionItem.getConnection(),true);
        text=TalendQuoteUtils.removeQuotes(ConnectionContextHelper.getOriginalValue(contextType,text));
      }
      getConnection().setXmlFilePath(text);
      updateConnection(text);
      encodingCombo.setEnabled(true);
      commonNodesLimitation.setEditable(true);
      availableXmlTree.setEnabled(true);
      fileContentText.setEnabled(true);
      fileContentText.setEditable(false);
      checkFieldsValue();
    }
  }
);
}

Fixed version (ground truth):
@Override protected void addUtilsButtonListeners(){
  noFileButton.addSelectionListener(new SelectionAdapter(){
    @Override public void widgetSelected(    SelectionEvent e){
      xmlXsdFilePath.setEditable(false);
      xmlXsdFilePath.setText("String_Node_Str");
      encodingCombo.setEnabled(false);
      commonNodesLimitation.setEditable(false);
      availableXmlTree.setEnabled(false);
      fileContentText.setEnabled(false);
      getConnection().setXmlFilePath("String_Node_Str");
      ConnectionHelper.getTables(getConnection()).toArray(new MetadataTable[0])[0].getColumns().clear();
      getConnection().getRoot().clear();
      getConnection().getLoop().clear();
      getConnection().getGroup().clear();
      checkFieldsValue();
    }
  }
);
  useFileButton.addSelectionListener(new SelectionAdapter(){
    @Override public void widgetSelected(    SelectionEvent e){
      xmlXsdFilePath.setEditable(true);
      String text=xmlXsdFilePath.getText();
      if (isContextMode()) {
        ContextType contextType=ConnectionContextHelper.getContextTypeForContextMode(connectionItem.getConnection(),true);
        text=TalendQuoteUtils.removeQuotes(ConnectionContextHelper.getOriginalValue(contextType,text));
      }
      getConnection().setXmlFilePath(text);
      updateConnection(text);
      encodingCombo.setEnabled(true);
      commonNodesLimitation.setEditable(true);
      availableXmlTree.setEnabled(true);
      fileContentText.setEnabled(true);
      fileContentText.setEditable(false);
      checkFieldsValue();
    }
  }
);
}
Program: 129280
Project: 129280
Buggy source:
public void widgetDefaultSelected(SelectionEvent e){
}

Fixed version (ground truth):
@Override public void widgetDefaultSelected(SelectionEvent e){
}
Program: 129282
Project: 129282
Buggy source:
public void modifyText(ModifyEvent e){
  getConnection().setOutputFilePath(PathUtils.getPortablePath(outputFilePath.getText()));
  checkFieldsValue();
}

Fixed version (ground truth):
@Override public void modifyText(ModifyEvent e){
  getConnection().setOutputFilePath(PathUtils.getPortablePath(outputFilePath.getText()));
  checkFieldsValue();
}
Program: 129283
Project: 129283
Buggy source:
public void focusLost(FocusEvent e){
  commonNodesLimitation.setText(String.valueOf(TreePopulator.getLimit()));
}

Fixed version (ground truth):
@Override public void focusLost(FocusEvent e){
  commonNodesLimitation.setText(String.valueOf(TreePopulator.getLimit()));
}
Program: 129287
Project: 129287
Buggy source:
@Override protected void configureShell(Shell newShell){
  super.configureShell(newShell);
  newShell.setText(Messages.getString("String_Node_Str"));
}

Fixed version (ground truth):
@Override protected void configureShell(Shell newShell){
  super.configureShell(newShell);
  newShell.setSize(540,400);
  newShell.setText(Messages.getString("String_Node_Str"));
}
Program: 129288
Project: 129288
Buggy source:
public Color getForeground(Object element,int columnIndex){
  TableViewerCreatorColumnNotModifiable column=(TableViewerCreatorColumnNotModifiable)this.tableViewerCreator.getColumns().get(columnIndex);
  if (column.getColorProvider() != null) {
    return column.getColorProvider().getForegroundColor(element);
  }
  return null;
}

Fixed version (ground truth):
@Override public Color getForeground(Object element,int columnIndex){
  TableViewerCreatorColumnNotModifiable column=(TableViewerCreatorColumnNotModifiable)this.tableViewerCreator.getColumns().get(columnIndex);
  if (column.getColorProvider() != null) {
    return column.getColorProvider().getForegroundColor(element);
  }
  return null;
}
Program: 129289
Project: 129289
Buggy source:
public Image getColumnImage(Object element,int columnIndex){
  TableViewerCreatorColumnNotModifiable column=(TableViewerCreatorColumnNotModifiable)this.tableViewerCreator.getColumns().get(columnIndex);
  if (column.getImageProvider() != null) {
    return column.getImageProvider().getImage(element);
  }
  return null;
}

Fixed version (ground truth):
@Override public Image getColumnImage(Object element,int columnIndex){
  TableViewerCreatorColumnNotModifiable column=(TableViewerCreatorColumnNotModifiable)this.tableViewerCreator.getColumns().get(columnIndex);
  if (column.getImageProvider() != null) {
    return column.getImageProvider().getImage(element);
  }
  return null;
}
Program: 129291
Project: 129291
Buggy source:
public void dispose(){
}

Fixed version (ground truth):
@Override public void dispose(){
}
Program: 129292
Project: 129292
Buggy source:
public void removeListener(ILabelProviderListener lpl){
}

Fixed version (ground truth):
@Override public void removeListener(ILabelProviderListener lpl){
}
Program: 129293
Project: 129293
Buggy source:
public boolean isLabelProperty(Object element,String property){
  return false;
}

Fixed version (ground truth):
@Override public boolean isLabelProperty(Object element,String property){
  return false;
}
Program: 129294
Project: 129294
Buggy source:
public Color getBackground(Object element,int columnIndex){
  TableViewerCreatorColumnNotModifiable column=(TableViewerCreatorColumnNotModifiable)this.tableViewerCreator.getColumns().get(columnIndex);
  if (column.getColorProvider() != null) {
    return column.getColorProvider().getBackgroundColor(element);
  }
  return null;
}

Fixed version (ground truth):
@Override public Color getBackground(Object element,int columnIndex){
  TableViewerCreatorColumnNotModifiable column=(TableViewerCreatorColumnNotModifiable)this.tableViewerCreator.getColumns().get(columnIndex);
  if (column.getColorProvider() != null) {
    return column.getColorProvider().getBackgroundColor(element);
  }
  return null;
}
Program: 129295
Project: 129295
Buggy source:
public void addListener(ILabelProviderListener listener){
}

Fixed version (ground truth):
@Override public void addListener(ILabelProviderListener listener){
}
Program: 129297
Project: 129297
Buggy source:
/** 
 * DOC ggu Comment method "testReturnColumns4reCreateConnection". test when the dontCreateClose is true
 * @throws Exception
 */
public void testReturnColumns4reCreateConnection() throws Exception {
  PTODO();
}

Fixed version (ground truth):
/** 
 * DOC ggu Comment method "testReturnColumns4reCreateConnection". test when the dontCreateClose is true
 * @throws Exception
 */
@Test public void testReturnColumns4reCreateConnection() throws Exception {
  Assert.assertNotNull(getExtractManger());
  Connection conn=mockConnection4ReturnColumns4reCreateConnection();
  ExtractMetaDataUtils.conn=conn;
  IMetadataConnection metadataConn=mockMetadataConnection4ReturnColumns4reCreateConnection();
  DatabaseMetaData dbMetadata=mockDatabaseMetaData4ReturnColumns4reCreateConnection();
  when(conn.getMetaData()).thenReturn(dbMetadata);
  ResultSet getColumnsResultSet=mockGetColumnsResultSet4ReturnColumns4reCreateConnection();
  doReturn(getColumnsResultSet).when(dbMetadata).getColumns(anyString(),anyString(),anyString(),anyString());
  TableNode tableNode=mockTableNode4ReturnColumns4reCreateConnection();
  TdTable tdTable=mockTable4ReturnColumns4reCreateConnection();
  when(tableNode.getTable()).thenReturn(tdTable);
  PowerMockito.mockStatic(ExtractMetaDataUtils.class);
  List conList=new ArrayList();
  conList.add(conn);
  DriverShim wapperDriver=mock(DriverShim.class);
  conList.add(wapperDriver);
  when(ExtractMetaDataUtils.getConnection(anyString(),anyString(),anyString(),anyString(),anyString(),anyString(),anyString(),anyString(),anyString(),anyString())).thenReturn(conList);
  when(ExtractMetaDataUtils.getDatabaseMetaData(conn,metadataConn.getDbType(),metadataConn.isSqlMode(),metadataConn.getDatabase())).thenReturn(dbMetadata);
  List<TdColumn> columns=getExtractManger().returnColumns(metadataConn,tableNode,false);
  Assert.assertNotNull(columns);
  Assert.assertTrue(columns.isEmpty());
  ExtractMetaDataUtils.conn=null;
}
Program: 129299
Project: 129299
Buggy source:
/** 
 * DOC ggu Comment method "testReturnTablesFormConnection".
 * @see ExtractManager.returnTablesFormConnection(IMetadataConnection, TableInfoParameters)
 * @throws Exception
 */
public void testReturnTablesFormConnection() throws Exception {
  PTODO();
}

Fixed version (ground truth):
/** 
 * DOC ggu Comment method "testReturnTablesFormConnection".
 * @see ExtractManager.returnTablesFormConnection(IMetadataConnection, TableInfoParameters)
 * @throws Exception
 */
@Test public void testReturnTablesFormConnection() throws Exception {
  Assert.assertNotNull(getExtractManger());
  IMetadataConnection metadataConn=mockMetadataConnection4ReturnTablesFormConnection();
  Connection conn=mockConnection4ReturnTablesFormConnection();
  ExtractMetaDataUtils.conn=conn;
  ExtractMetaDataUtils.isReconnect=false;
  DatabaseMetaData dbMetadata=mockDatabaseMetaData4ReturnTablesFormConnection();
  when(conn.getMetaData()).thenReturn(dbMetadata);
  ResultSet resultSet=mockGetColumnsResultSet4ReturnTablesFormConnection();
  when(dbMetadata.getTableTypes()).thenReturn(resultSet);
  final String value="String_Node_Str";
  when(resultSet.getString(anyString())).thenReturn(value);
  TableInfoParameters tableInfoParameters=mock(TableInfoParameters.class);
  when(tableInfoParameters.isUsedName()).thenReturn(false);
  when(tableInfoParameters.getSqlFiter()).thenReturn("String_Node_Str");
  List connList=getExtractManger().returnTablesFormConnection(metadataConn,tableInfoParameters);
  Assert.assertNotNull(connList);
  Assert.assertTrue(connList.isEmpty());
  ExtractMetaDataUtils.conn=null;
}
Program: 129300
Project: 129300
Buggy source:
@Override public void testReturnColumns4DontCreateConnection() throws Exception {
  PTODO();
}

Fixed version (ground truth):
@Override @Test public void testReturnColumns4DontCreateConnection() throws Exception {
  Assert.assertNotNull(getExtractManger());
  Connection conn=mockConnection4ReturnColumns();
  ExtractMetaDataUtils.conn=conn;
  SASDataBaseMetadata dbMetadata=mockDatabaseMetaData4ReturnColumns();
  when(conn.getMetaData()).thenReturn(dbMetadata);
  SASResultSet getColumnsResultSet=mockGetColumnsResultSet4ReturnColumns();
  doReturn(getColumnsResultSet).when(dbMetadata).getColumns(anyString(),anyString(),anyString(),anyString());
  IMetadataConnection metadataConn=mockMetadataConnection4ReturnColumns();
  TableNode tableNode=mockTableNode4ReturnColumns();
  TdTable tdTable=mockTable4ReturnColumns();
  when(tableNode.getTable()).thenReturn(tdTable);
  List<TdColumn> columns=getExtractManger().returnColumns(metadataConn,tableNode,true);
  Assert.assertNotNull(columns);
  Assert.assertTrue(columns.isEmpty());
  verifyTableNode4ReturnColumns4DontCreateConnection(tableNode);
  verifyMeatadataConnection4ReturnColumns4DontCreateConnection(metadataConn);
  verifyConnection4ReturnColumns4DontCreateConnection(conn);
  ExtractMetaDataUtils.conn=null;
}
Program: 129301
Project: 129301
Buggy source:
public void startThreadStat(String clientHost,int portStats) throws java.io.IOException, java.net.UnknownHostException {
  if (!openSocket) {
    Socket s=null;
    Object object=GlobalResource.resourceMap.get(portStats);
    if (object == null || !(object instanceof Socket)) {
      String lastCallerJobName=new Exception().getStackTrace()[1].getClassName();
      throw new RuntimeException("String_Node_Str" + lastCallerJobName + "String_Node_Str"+ "String_Node_Str");
    }
 else {
      s=(Socket)object;
    }
    OutputStream output=s.getOutputStream();
    if (debug) {
      output=System.out;
    }
    pred=new java.io.PrintWriter(new java.io.BufferedWriter(new java.io.OutputStreamWriter(output)),true);
    Thread t=new Thread(this);
    t.start();
    return;
  }
  System.out.println("String_Node_Str" + portStats);
  s=new Socket(clientHost,portStats);
  GlobalResource.resourceMap.put(portStats,s);
  OutputStream output=s.getOutputStream();
  if (debug) {
    output=System.out;
  }
  pred=new java.io.PrintWriter(new java.io.BufferedWriter(new java.io.OutputStreamWriter(output)),true);
  System.out.println("String_Node_Str");
  Thread t=new Thread(this);
  t.start();
}

Fixed version (ground truth):
public void startThreadStat(String clientHost,int portStats) throws java.io.IOException, java.net.UnknownHostException {
  if (!openSocket) {
    Socket s=null;
    Object object=GlobalResource.resourceMap.get(portStats);
    OutputStream output=null;
    if (object == null || !(object instanceof Socket)) {
      String lastCallerJobName=new Exception().getStackTrace()[1].getClassName();
      System.err.println("String_Node_Str" + lastCallerJobName + "String_Node_Str"+ "String_Node_Str");
      output=System.out;
    }
 else {
      s=(Socket)object;
      output=s.getOutputStream();
    }
    if (debug) {
      output=System.out;
    }
    pred=new java.io.PrintWriter(new java.io.BufferedWriter(new java.io.OutputStreamWriter(output)),true);
    Thread t=new Thread(this);
    t.start();
    return;
  }
  System.out.println("String_Node_Str" + portStats);
  boolean isConnect=false;
  OutputStream output=null;
  try {
    s=new Socket(clientHost,portStats);
    isConnect=true;
  }
 catch (  Exception e) {
    System.err.println("String_Node_Str" + clientHost + "String_Node_Str"+ portStats+ "String_Node_Str");
  }
  if (isConnect) {
    GlobalResource.resourceMap.put(portStats,s);
    output=s.getOutputStream();
    System.out.println("String_Node_Str");
  }
 else {
    output=System.out;
    System.out.println("String_Node_Str");
  }
  if (debug) {
    output=System.out;
  }
  pred=new java.io.PrintWriter(new java.io.BufferedWriter(new java.io.OutputStreamWriter(output)),true);
  Thread t=new Thread(this);
  t.start();
}
Program: 129302
Project: 129302
Buggy source:
public void run(){
  if (!debug) {
synchronized (this) {
      try {
        while (!jobIsFinished) {
          sendMessages();
          wait(1000);
        }
      }
 catch (      InterruptedException e) {
        System.out.println("String_Node_Str");
      }
    }
  }
}

Fixed version (ground truth):
@Override public void run(){
  if (!debug) {
synchronized (this) {
      try {
        while (!jobIsFinished) {
          sendMessages();
          wait(1000);
        }
      }
 catch (      InterruptedException e) {
        System.out.println("String_Node_Str");
      }
    }
  }
}
Program: 129304
Project: 129304
Buggy source:
public void startThreadStat(String clientHost,int portStats) throws java.io.IOException, java.net.UnknownHostException {
  if (!openSocket) {
    Socket s=null;
    Object object=GlobalResource.resourceMap.get(portStats);
    if (object == null || !(object instanceof Socket)) {
      String lastCallerJobName=new Exception().getStackTrace()[1].getClassName();
      throw new RuntimeException("String_Node_Str" + lastCallerJobName + "String_Node_Str"+ "String_Node_Str");
    }
 else {
      s=(Socket)object;
    }
    OutputStream output=s.getOutputStream();
    if (debug) {
      output=System.out;
    }
    pred=new java.io.PrintWriter(new java.io.BufferedWriter(new java.io.OutputStreamWriter(output)),true);
    Thread t=new Thread(this);
    t.start();
    return;
  }
  System.out.println("String_Node_Str" + portStats);
  s=new Socket(clientHost,portStats);
  GlobalResource.resourceMap.put(portStats,s);
  OutputStream output=s.getOutputStream();
  if (debug) {
    output=System.out;
  }
  pred=new java.io.PrintWriter(new java.io.BufferedWriter(new java.io.OutputStreamWriter(output)),true);
  System.out.println("String_Node_Str");
  Thread t=new Thread(this);
  t.start();
}

Fixed version (ground truth):
public void startThreadStat(String clientHost,int portStats) throws java.io.IOException, java.net.UnknownHostException {
  if (!openSocket) {
    Socket s=null;
    Object object=GlobalResource.resourceMap.get(portStats);
    OutputStream output=null;
    if (object == null || !(object instanceof Socket)) {
      String lastCallerJobName=new Exception().getStackTrace()[1].getClassName();
      System.err.println("String_Node_Str" + lastCallerJobName + "String_Node_Str"+ "String_Node_Str");
      output=System.err;
    }
 else {
      s=(Socket)object;
      output=s.getOutputStream();
    }
    if (debug) {
      output=System.out;
    }
    pred=new java.io.PrintWriter(new java.io.BufferedWriter(new java.io.OutputStreamWriter(output)),true);
    Thread t=new Thread(this);
    t.start();
    return;
  }
  System.out.println("String_Node_Str" + portStats);
  boolean isConnect=false;
  OutputStream output=null;
  try {
    s=new Socket(clientHost,portStats);
    isConnect=true;
  }
 catch (  Exception e) {
    System.err.println("String_Node_Str" + clientHost + "String_Node_Str"+ portStats+ "String_Node_Str");
  }
  if (isConnect) {
    GlobalResource.resourceMap.put(portStats,s);
    output=s.getOutputStream();
    System.out.println("String_Node_Str");
  }
 else {
    output=System.err;
    System.out.println("String_Node_Str");
  }
  if (debug) {
    output=System.out;
  }
  pred=new java.io.PrintWriter(new java.io.BufferedWriter(new java.io.OutputStreamWriter(output)),true);
  Thread t=new Thread(this);
  t.start();
}
Program: 129305
Project: 129305
Buggy source:
/** 
 * DOC ggu Comment method "testReturnColumns4DontCreateConnection2TableTypeSynonym". test for the Synonym
 * @throws Exception
 */
public void testReturnColumns4DontCreateConnection2TableTypeSynonym() throws Exception {
  PTODO();
}

Fixed version (ground truth):
/** 
 * DOC ggu Comment method "testReturnColumns4DontCreateConnection2TableTypeSynonym". test for the Synonym
 * @throws Exception
 */
@Test public void testReturnColumns4DontCreateConnection2TableTypeSynonym() throws Exception {
  Assert.assertNotNull(getExtractManger());
  Connection conn=mockConnection4ReturnColumns();
  ExtractMetaDataUtils.conn=conn;
  DatabaseMetaData dbMetadata=mockDatabaseMetaData4ReturnColumns();
  when(conn.getMetaData()).thenReturn(dbMetadata);
  ResultSet getColumnsResultSet=mockGetColumnsResultSet4ReturnColumns();
  doReturn(getColumnsResultSet).when(dbMetadata).getColumns(anyString(),anyString(),anyString(),anyString());
  IMetadataConnection metadataConn=mockMetadataConnection4ReturnColumns();
  TableNode tableNode=mockTableNode4ReturnColumns2TableTypeSynonym();
  TdTable tdTable=mockTable4ReturnColumns();
  when(tableNode.getTable()).thenReturn(tdTable);
  List<TdColumn> columns=getExtractManger().returnColumns(metadataConn,tableNode,true);
  Assert.assertNotNull(columns);
  Assert.assertTrue(columns.isEmpty());
  verifyTableNode4ReturnColumns2TableTypeSynonym(tableNode);
  verifyMeatadataConnection4ReturnColumns4DontCreateConnection(metadataConn);
  verifyConnection4ReturnColumns4DontCreateConnection(conn);
  ExtractMetaDataUtils.conn=null;
}
Program: 129306
Project: 129306
Buggy source:
public void startThreadStat(String clientHost,int portStats) throws java.io.IOException, java.net.UnknownHostException {
  if (!openSocket) {
    Socket s=null;
    Object object=GlobalResource.resourceMap.get(portStats);
    OutputStream output=null;
    if (object == null || !(object instanceof Socket)) {
      String lastCallerJobName=new Exception().getStackTrace()[1].getClassName();
      System.err.println("String_Node_Str" + lastCallerJobName + "String_Node_Str"+ "String_Node_Str");
      output=System.err;
    }
 else {
      s=(Socket)object;
      output=s.getOutputStream();
    }
    if (debug) {
      output=System.out;
    }
    pred=new java.io.PrintWriter(new java.io.BufferedWriter(new java.io.OutputStreamWriter(output)),true);
    Thread t=new Thread(this);
    t.start();
    return;
  }
  System.out.println("String_Node_Str" + portStats);
  boolean isConnect=false;
  OutputStream output=null;
  try {
    s=new Socket(clientHost,portStats);
    isConnect=true;
  }
 catch (  Exception e) {
    System.err.println("String_Node_Str" + clientHost + "String_Node_Str"+ portStats+ "String_Node_Str");
  }
  if (isConnect) {
    GlobalResource.resourceMap.put(portStats,s);
    output=s.getOutputStream();
    System.out.println("String_Node_Str");
  }
 else {
    output=System.err;
    System.out.println("String_Node_Str");
  }
  if (debug) {
    output=System.out;
  }
  pred=new java.io.PrintWriter(new java.io.BufferedWriter(new java.io.OutputStreamWriter(output)),true);
  Thread t=new Thread(this);
  t.start();
}

Fixed version (ground truth):
public void startThreadStat(String clientHost,int portStats) throws java.io.IOException, java.net.UnknownHostException {
  if (!openSocket) {
    Socket s=null;
    Object object=GlobalResource.resourceMap.get(portStats);
    OutputStream output=null;
    if (object == null || !(object instanceof Socket)) {
      String lastCallerJobName=new Exception().getStackTrace()[1].getClassName();
      System.err.println("String_Node_Str" + lastCallerJobName + "String_Node_Str"+ "String_Node_Str");
      output=System.out;
    }
 else {
      s=(Socket)object;
      output=s.getOutputStream();
    }
    if (debug) {
      output=System.out;
    }
    pred=new java.io.PrintWriter(new java.io.BufferedWriter(new java.io.OutputStreamWriter(output)),true);
    Thread t=new Thread(this);
    t.start();
    return;
  }
  System.out.println("String_Node_Str" + portStats);
  boolean isConnect=false;
  OutputStream output=null;
  try {
    s=new Socket(clientHost,portStats);
    isConnect=true;
  }
 catch (  Exception e) {
    System.err.println("String_Node_Str" + clientHost + "String_Node_Str"+ portStats+ "String_Node_Str");
  }
  if (isConnect) {
    GlobalResource.resourceMap.put(portStats,s);
    output=s.getOutputStream();
    System.out.println("String_Node_Str");
  }
 else {
    output=System.out;
    System.out.println("String_Node_Str");
  }
  if (debug) {
    output=System.out;
  }
  pred=new java.io.PrintWriter(new java.io.BufferedWriter(new java.io.OutputStreamWriter(output)),true);
  Thread t=new Thread(this);
  t.start();
}
Program: 129307
Project: 129307
Buggy source:
public void fatalError(final SAXParseException exception) throws SAXException {
  throw exception;
}

Fixed version (ground truth):
@Override public void fatalError(final SAXParseException exception) throws SAXException {
  throw exception;
}
Program: 129308
Project: 129308
Buggy source:
public void error(final SAXParseException exception) throws SAXException {
  throw exception;
}

Fixed version (ground truth):
@Override public void error(final SAXParseException exception) throws SAXException {
  throw exception;
}
Program: 129313
Project: 129313
Buggy source:
public void warning(final SAXParseException exception) throws SAXException {
  throw exception;
}

Fixed version (ground truth):
@Override public void warning(final SAXParseException exception) throws SAXException {
  throw exception;
}
Program: 129316
Project: 129316
Buggy source:
public void startThreadStat(String clientHost,int portStats) throws java.io.IOException, java.net.UnknownHostException {
  if (!openSocket) {
    Socket s=null;
    Object object=GlobalResource.resourceMap.get(portStats);
    if (object == null || !(object instanceof Socket)) {
      String lastCallerJobName=new Exception().getStackTrace()[1].getClassName();
      throw new RuntimeException("String_Node_Str" + lastCallerJobName + "String_Node_Str"+ "String_Node_Str");
    }
 else {
      s=(Socket)object;
    }
    OutputStream output=s.getOutputStream();
    if (debug) {
      output=System.out;
    }
    pred=new java.io.PrintWriter(new java.io.BufferedWriter(new java.io.OutputStreamWriter(output)),true);
    Thread t=new Thread(this);
    t.start();
    return;
  }
  System.out.println("String_Node_Str" + portStats);
  s=new Socket(clientHost,portStats);
  GlobalResource.resourceMap.put(portStats,s);
  OutputStream output=s.getOutputStream();
  if (debug) {
    output=System.out;
  }
  pred=new java.io.PrintWriter(new java.io.BufferedWriter(new java.io.OutputStreamWriter(output)),true);
  System.out.println("String_Node_Str");
  Thread t=new Thread(this);
  t.start();
}

Fixed version (ground truth):
public void startThreadStat(String clientHost,int portStats) throws java.io.IOException, java.net.UnknownHostException {
  if (!openSocket) {
    Socket s=null;
    Object object=GlobalResource.resourceMap.get(portStats);
    OutputStream output=null;
    if (object == null || !(object instanceof Socket)) {
      String lastCallerJobName=new Exception().getStackTrace()[1].getClassName();
      System.err.println("String_Node_Str" + lastCallerJobName + "String_Node_Str"+ "String_Node_Str");
      output=System.out;
    }
 else {
      s=(Socket)object;
      output=s.getOutputStream();
    }
    if (debug) {
      output=System.out;
    }
    pred=new java.io.PrintWriter(new java.io.BufferedWriter(new java.io.OutputStreamWriter(output)),true);
    Thread t=new Thread(this);
    t.start();
    return;
  }
  System.out.println("String_Node_Str" + portStats);
  boolean isConnect=false;
  OutputStream output=null;
  try {
    s=new Socket(clientHost,portStats);
    isConnect=true;
  }
 catch (  Exception e) {
    System.err.println("String_Node_Str" + clientHost + "String_Node_Str"+ portStats+ "String_Node_Str");
  }
  if (isConnect) {
    GlobalResource.resourceMap.put(portStats,s);
    output=s.getOutputStream();
    System.out.println("String_Node_Str");
  }
 else {
    output=System.out;
    System.out.println("String_Node_Str");
  }
  if (debug) {
    output=System.out;
  }
  pred=new java.io.PrintWriter(new java.io.BufferedWriter(new java.io.OutputStreamWriter(output)),true);
  Thread t=new Thread(this);
  t.start();
}
Program: 129317
Project: 129317
Buggy source:
public void run(){
  if (!debug) {
synchronized (this) {
      try {
        while (!jobIsFinished) {
          sendMessages();
          wait(1000);
        }
      }
 catch (      InterruptedException e) {
        System.out.println("String_Node_Str");
      }
    }
  }
}

Fixed version (ground truth):
@Override public void run(){
  if (!debug) {
synchronized (this) {
      try {
        while (!jobIsFinished) {
          sendMessages();
          wait(1000);
        }
      }
 catch (      InterruptedException e) {
        System.out.println("String_Node_Str");
      }
    }
  }
}
Program: 129321
Project: 129321
Buggy source:
public void addChangeLibrariesListener(IChangedLibrariesListener listener){
  listeners.add(listener);
}

Fixed version (ground truth):
@Override public void addChangeLibrariesListener(IChangedLibrariesListener listener){
  listeners.add(listener);
}
Program: 129322
Project: 129322
Buggy source:
public void undeployLibrary(String jarName) throws IOException {
  ILibraryManagerService service=(ILibraryManagerService)GlobalServiceRegister.getDefault().getService(ILibraryManagerService.class);
  if (service.delete(jarName)) {
    ModulesNeededProvider.userRemoveUnusedModules(jarName);
    fireLibrariesChanges();
  }
 else {
    ExceptionHandler.process(new Exception("String_Node_Str" + jarName + "String_Node_Str"));
  }
}

Fixed version (ground truth):
@Override public void undeployLibrary(String jarName) throws IOException {
  ILibraryManagerService service=(ILibraryManagerService)GlobalServiceRegister.getDefault().getService(ILibraryManagerService.class);
  if (service.delete(jarName)) {
    ModulesNeededProvider.userRemoveUnusedModules(jarName);
    fireLibrariesChanges();
  }
 else {
    ExceptionHandler.process(new Exception("String_Node_Str" + jarName + "String_Node_Str"));
  }
}
Program: 129323
Project: 129323
Buggy source:
public void run() throws PersistenceException {
  String path=new Path(Platform.getInstanceLocation().getURL().getPath()).toFile().getPath();
  path=path + File.separatorChar + projectLabel+ File.separatorChar+ ERepositoryObjectType.getFolderName(ERepositoryObjectType.LIBS)+ File.separatorChar+ sourceFile.getName();
  File libsTargetFile=new File(path);
  try {
    FilesUtils.copyFile(sourceFile,libsTargetFile);
    eclipseProject.refreshLocal(IResource.DEPTH_INFINITE,new NullProgressMonitor());
  }
 catch (  CoreException e1) {
    ExceptionHandler.process(e1);
  }
catch (  IOException e) {
    ExceptionHandler.process(e);
  }
}

Fixed version (ground truth):
@Override public void run() throws PersistenceException {
  String path=new Path(Platform.getInstanceLocation().getURL().getPath()).toFile().getPath();
  path=path + File.separatorChar + projectLabel+ File.separatorChar+ ERepositoryObjectType.getFolderName(ERepositoryObjectType.LIBS)+ File.separatorChar+ sourceFile.getName();
  File libsTargetFile=new File(path);
  try {
    FilesUtils.copyFile(sourceFile,libsTargetFile);
    eclipseProject.refreshLocal(IResource.DEPTH_INFINITE,new NullProgressMonitor());
  }
 catch (  CoreException e1) {
    ExceptionHandler.process(e1);
  }
catch (  IOException e) {
    ExceptionHandler.process(e);
  }
}
Program: 129324
Project: 129324
Buggy source:
public ELibraryInstallStatus getLibraryStatus(String libName) throws BusinessException {
  checkInstalledLibraries();
  for (  ModuleNeeded current : ModulesNeededProvider.getModulesNeeded()) {
    if (current.getModuleName().equals(libName)) {
      return current.getStatus();
    }
  }
  throw new BusinessException(Messages.getString("String_Node_Str",libName));
}

Fixed version (ground truth):
@Override public ELibraryInstallStatus getLibraryStatus(String libName) throws BusinessException {
  checkInstalledLibraries();
  for (  ModuleNeeded current : ModulesNeededProvider.getModulesNeeded()) {
    if (current.getModuleName().equals(libName)) {
      return current.getStatus();
    }
  }
  throw new BusinessException(Messages.getString("String_Node_Str",libName));
}
Program: 129325
Project: 129325
Buggy source:
public void checkLibraries(){
  this.checkInstalledLibraries();
  fireLibrariesChanges();
}

Fixed version (ground truth):
@Override public void checkLibraries(){
  this.checkInstalledLibraries();
  fireLibrariesChanges();
}
Program: 129326
Project: 129326
Buggy source:
public void resetModulesNeeded(){
  ModulesNeededProvider.reset();
  checkLibraries();
}

Fixed version (ground truth):
@Override public void resetModulesNeeded(){
  ModulesNeededProvider.reset();
  checkLibraries();
}
Program: 129327
Project: 129327
Buggy source:
public List<Problem> getProblems(INode node,IElement element){
  List<Problem> toReturn=new ArrayList<Problem>();
  List<ModuleNeeded> list=node.getComponent().getModulesNeeded();
  List<ModuleNeeded> modulesNeeded=ModulesNeededProvider.getModulesNeeded();
  for (  ModuleNeeded module : modulesNeeded) {
    for (    ModuleNeeded current : list) {
      if (current.getContext().equals(module.getContext()) && current.getModuleName().equals(module.getModuleName())) {
        if (module.getStatus() == ELibraryInstallStatus.NOT_INSTALLED && current.isRequired(node.getElementParameters())) {
          Problem problem=new Problem(element,"String_Node_Str" + current.getModuleName() + "String_Node_Str",ProblemStatus.ERROR);
          problem.setKey("String_Node_Str" + current.getModuleName());
          toReturn.add(problem);
        }
      }
    }
  }
  return toReturn;
}

Fixed version (ground truth):
@Override public List<Problem> getProblems(INode node,IElement element){
  List<Problem> toReturn=new ArrayList<Problem>();
  List<ModuleNeeded> list=node.getComponent().getModulesNeeded();
  List<ModuleNeeded> modulesNeeded=ModulesNeededProvider.getModulesNeeded();
  for (  ModuleNeeded module : modulesNeeded) {
    for (    ModuleNeeded current : list) {
      if (current.getContext().equals(module.getContext()) && current.getModuleName().equals(module.getModuleName())) {
        if (module.getStatus() == ELibraryInstallStatus.NOT_INSTALLED && current.isRequired(node.getElementParameters())) {
          Problem problem=new Problem(element,"String_Node_Str" + current.getModuleName() + "String_Node_Str",ProblemStatus.ERROR);
          problem.setKey("String_Node_Str" + current.getModuleName());
          toReturn.add(problem);
        }
      }
    }
  }
  return toReturn;
}
Program: 129328
Project: 129328
Buggy source:
public void removeChangeLibrariesListener(IChangedLibrariesListener listener){
  listeners.remove(listener);
}

Fixed version (ground truth):
@Override public void removeChangeLibrariesListener(IChangedLibrariesListener listener){
  listeners.remove(listener);
}
Program: 129329
Project: 129329
Buggy source:
public void updateModulesNeededForCurrentJob(IProcess process){
  ModulesNeededProvider.resetCurrentJobNeededModuleList(process);
  checkLibraries();
}

Fixed version (ground truth):
@Override public void updateModulesNeededForCurrentJob(IProcess process){
  ModulesNeededProvider.resetCurrentJobNeededModuleList(process);
  checkLibraries();
}
Program: 129330
Project: 129330
Buggy source:
public abstract URL getRoutineTemplate();

Fixed version (ground truth):
@Override public abstract URL getRoutineTemplate();
Program: 129332
Project: 129332
Buggy source:
public abstract URL getBeanTemplate();

Fixed version (ground truth):
@Override public abstract URL getBeanTemplate();
Program: 129333
Project: 129333
Buggy source:
public boolean contains(String jarName){
  if (jarList.contains(jarName)) {
    return true;
  }
  jarList=list(new NullProgressMonitor());
  return jarList.contains(jarName);
}

Fixed version (ground truth):
@Override public boolean contains(String jarName){
  if (jarList.contains(jarName)) {
    return true;
  }
  jarList=list(new NullProgressMonitor());
  return jarList.contains(jarName);
}
Program: 129334
Project: 129334
Buggy source:
public boolean isInitialized(){
  String installLocation=getStorageDirectory().getAbsolutePath();
  File indexFile=new File(installLocation + JAR_INDEX);
  if (indexFile.exists()) {
    LibrariesIndexManager.getInstance().loadResource();
    return LibrariesIndexManager.getInstance().getIndex().isInitialized();
  }
  return false;
}

Fixed version (ground truth):
@Override public boolean isInitialized(){
  String installLocation=getStorageDirectory().getAbsolutePath();
  File indexFile=new File(installLocation + JAR_INDEX);
  if (indexFile.exists()) {
    LibrariesIndexManager.getInstance().loadResource();
    return LibrariesIndexManager.getInstance().getIndex().isInitialized();
  }
  return false;
}