nus-yam/ex-repair huggingface dataset:
Program: 11208
Project: 11208
Buggy source:
/** 
 * Connect Method: Enabled the connector with his own configuration
 * @param credentials: The credentials.
 * @param config: The cluster config
 * @throws ConnectionException
 */
@Override public void connect(ICredentials credentials,ConnectorClusterConfig config) throws ConnectionException {
  ClusterName clusterName=config.getName();
  Map<String,String> clusterOptions=config.getOptions();
  EngineConfig engineConfig=new EngineConfig();
  engineConfig.setCassandraHosts(clusterOptions.get("String_Node_Str").substring(1,clusterOptions.get("String_Node_Str").length() - 1).split("String_Node_Str"));
  engineConfig.setCassandraPort(Integer.parseInt(clusterOptions.get("String_Node_Str")));
  engineConfig.setCredentials(credentials);
  if (clusterOptions.get("String_Node_Str") == null) {
    defaultLimit=DEFAULT_LIMIT;
  }
 else {
    defaultLimit=Integer.parseInt(clusterOptions.get("String_Node_Str"));
  }
  Engine engine=new Engine(engineConfig);
  LOG.info("String_Node_Str");
  sessions.put(clusterName.getName(),engine.getSession());
}

Fixed version (ground truth):
/** 
 * Connect Method: Enabled the connector with his own configuration.
 * @param credentials The credentials.
 * @param config The cluster config
 * @throws ConnectionException
 */
@Override public void connect(ICredentials credentials,ConnectorClusterConfig config) throws ConnectionException {
  ClusterName clusterName=config.getName();
  Map<String,String> clusterOptions=config.getOptions();
  EngineConfig engineConfig=new EngineConfig();
  engineConfig.setCassandraHosts(clusterOptions.get("String_Node_Str").substring(1,clusterOptions.get("String_Node_Str").length() - 1).split("String_Node_Str"));
  engineConfig.setCassandraPort(Integer.parseInt(clusterOptions.get("String_Node_Str")));
  engineConfig.setCredentials(credentials);
  if (clusterOptions.get("String_Node_Str") == null) {
    defaultLimit=DEFAULT_LIMIT;
  }
 else {
    defaultLimit=Integer.parseInt(clusterOptions.get("String_Node_Str"));
  }
  Engine engine=new Engine(engineConfig);
  LOG.info("String_Node_Str");
  sessions.put(clusterName.getName(),engine.getSession());
}
Program: 11209
Project: 11209
Buggy source:
/** 
 * Class constructor.
 * @param tableMetadata  The metadata of the table.
 * @param primaryKey     The list of columns that are part of the primary key.
 * @param clusterKey     The list of columns that are part of the clustering key.
 * @param primaryKeyType The type of primary key.
 */
public CreateTableStatement(TableMetadata tableMetadata,List<ColumnName> primaryKey,List<ColumnName> partitionKey,List<ColumnName> clusterKey,int primaryKeyType,String properties,boolean ifNotExists) throws ExecutionException {
  this.tableName=tableMetadata.getName().getName();
  this.catalog=tableMetadata.getName().getCatalogName().getName();
  this.catalogInc=true;
  this.tableColumns=tableMetadata.getColumns();
  this.primaryKey=primaryKey;
  this.clusterKey=clusterKey;
  this.primaryKeyType=primaryKeyType;
  this.ifNotExists=ifNotExists;
  if (properties.length() > 0) {
    this.withProperties=true;
    this.properties=properties;
  }
  if (partitionKey == null || partitionKey.size() == 0) {
    throw new ExecutionException("String_Node_Str");
  }
 else   if (clusterKey == null && primaryKeyType == PRIMARY_AND_CLUSTERING_SPECIFIED) {
    throw new ExecutionException("String_Node_Str");
  }
}

Fixed version (ground truth):
/** 
 * Class Constructor.
 * @param tableMetadata  The metadata of the table.
 * @param primaryKey The primary key of the table.
 * @param partitionKey The partition key of the table.
 * @param clusterKey The cluster key of the table.
 * @param primaryKeyType The type of the primary key of the table.
 * @param properties The specific properties of the table that will be created.
 * @param ifNotExists the condition of creation of the table.
 * @throws ExecutionException
 */
public CreateTableStatement(TableMetadata tableMetadata,List<ColumnName> primaryKey,List<ColumnName> partitionKey,List<ColumnName> clusterKey,int primaryKeyType,String properties,boolean ifNotExists) throws ExecutionException {
  this.tableName=tableMetadata.getName().getName();
  this.catalog=tableMetadata.getName().getCatalogName().getName();
  this.catalogInc=true;
  this.tableColumns=tableMetadata.getColumns();
  this.primaryKey=primaryKey;
  this.clusterKey=clusterKey;
  this.primaryKeyType=primaryKeyType;
  this.ifNotExists=ifNotExists;
  if (properties.length() > 0) {
    this.withProperties=true;
    this.properties=properties;
  }
  if (partitionKey == null || partitionKey.size() == 0) {
    throw new ExecutionException("String_Node_Str");
  }
 else   if (clusterKey == null && primaryKeyType == PRIMARY_AND_CLUSTERING_SPECIFIED) {
    throw new ExecutionException("String_Node_Str");
  }
}
Program: 11210
Project: 11210
Buggy source:
/** 
 * Get the value
 * @return String with the value of a Column.
 */
public String getValue(){
  return value;
}

Fixed version (ground truth):
/** 
 * Get the value.
 * @return String with the value of a Column.
 */
public String getValue(){
  return value;
}
Program: 11211
Project: 11211
Buggy source:
/** 
 * Get the type
 * @return ColumnType
 */
public ColumnType getType(){
  return type;
}

Fixed version (ground truth):
/** 
 * Get the type.
 * @return ColumnType
 */
public ColumnType getType(){
  return type;
}
Program: 11212
Project: 11212
Buggy source:
/** 
 * Set the type
 * @param type
 */
public void setType(ColumnType type){
  this.type=type;
}

Fixed version (ground truth):
/** 
 * Set the type.
 * @param type
 */
public void setType(ColumnType type){
  this.type=type;
}
Program: 11213
Project: 11213
Buggy source:
/** 
 * Get the name of the index. If a LUCENE index is to be created, the name of the index is prepended with   {@code stratio_lucene_}. If a name for the index is not specified, the index will be named using the concatenation of the target column names.
 * @return The name of the index.
 */
private String getIndexName(){
  String result=null;
  if (name == null) {
    StringBuilder sb=new StringBuilder();
    if (IndexType.FULL_TEXT.equals(type)) {
      sb.append("String_Node_Str");
      sb.append(tableName);
    }
 else {
      sb.append(tableName);
      for (      Map.Entry<ColumnName,ColumnMetadata> entry : targetColumns.entrySet()) {
        sb.append("String_Node_Str");
        sb.append(entry.getValue());
      }
      sb.append("String_Node_Str");
    }
    result=sb.toString();
  }
 else {
    result=name;
    if (IndexType.FULL_TEXT.equals(type)) {
      result="String_Node_Str" + name;
    }
  }
  return result;
}

Fixed version (ground truth):
/** 
 * Get the name of the index. If a LUCENE index is to be created, the name of the index is prepended with   {@code stratio_lucene_}. If a name for the index is not specified, the index will be named using the concatenation of the target column names.
 * @return The name of the index.
 */
private String getIndexName(){
  String result=null;
  if (name == null) {
    StringBuilder sb=new StringBuilder();
    if (IndexType.FULL_TEXT.equals(type)) {
      sb.append("String_Node_Str");
      for (      ColumnMetadata columnMetadata : targetColumns.values()) {
        sb.append("String_Node_Str");
        sb.append(columnMetadata.getName().getName());
      }
      sb.append(tableName);
    }
 else {
      sb.append(tableName);
      for (      Map.Entry<ColumnName,ColumnMetadata> entry : targetColumns.entrySet()) {
        sb.append("String_Node_Str");
        sb.append(entry.getValue());
      }
      sb.append("String_Node_Str");
    }
    result=sb.toString();
  }
 else {
    result=name;
    if (IndexType.FULL_TEXT.equals(type)) {
      result=name;
    }
  }
  return result;
}
Program: 11214
Project: 11214
Buggy source:
/** 
 * Get the name of the connector
 * @return The name.
 */
@Override public String getConnectorName(){
  return connectorName;
}

Fixed version (ground truth):
/** 
 * Get the name of the connector.
 * @return The name.
 */
@Override public String getConnectorName(){
  return connectorName;
}
Program: 11215
Project: 11215
Buggy source:
@Override public void connect(ICredentials credentials,ConnectorClusterConfig config) throws ConnectionException {
  ClusterName clusterName=config.getName();
  Map<String,String> clusterOptions=config.getOptions();
  EngineConfig engineConfig=new EngineConfig();
  engineConfig.setCassandraHosts(clusterOptions.get("String_Node_Str").substring(1,clusterOptions.get("String_Node_Str").length() - 1).split("String_Node_Str"));
  engineConfig.setCassandraPort(Integer.parseInt(clusterOptions.get("String_Node_Str")));
  engineConfig.setCredentials(credentials);
  if (clusterOptions.get("String_Node_Str") == null) {
    defaultLimit=DEFAULTLIMIT;
  }
 else {
    defaultLimit=Integer.parseInt(clusterOptions.get("String_Node_Str"));
  }
  Engine engine=new Engine(engineConfig);
  LOG.info("String_Node_Str");
  sessions.put(clusterName.getName(),engine.getSession());
}

Fixed version (ground truth):
@Override public void connect(ICredentials credentials,ConnectorClusterConfig config) throws ConnectionException {
  ClusterName clusterName=config.getName();
  Map<String,String> clusterOptions=config.getOptions();
  EngineConfig engineConfig=new EngineConfig();
  engineConfig.setCassandraHosts(clusterOptions.get("String_Node_Str").substring(1,clusterOptions.get("String_Node_Str").length() - 1).split("String_Node_Str"));
  engineConfig.setCassandraPort(Integer.parseInt(clusterOptions.get("String_Node_Str")));
  engineConfig.setCredentials(credentials);
  if (clusterOptions.get("String_Node_Str") == null) {
    defaultLimit=DEFAULT_LIMIT;
  }
 else {
    defaultLimit=Integer.parseInt(clusterOptions.get("String_Node_Str"));
  }
  Engine engine=new Engine(engineConfig);
  LOG.info("String_Node_Str");
  sessions.put(clusterName.getName(),engine.getSession());
}
Program: 11216
Project: 11216
Buggy source:
@Override public void connect(ICredentials credentials,ConnectorClusterConfig config) throws ConnectionException {
  ClusterName clusterName=config.getName();
  Map<String,String> clusterOptions=config.getOptions();
  EngineConfig engineConfig=new EngineConfig();
  engineConfig.setCassandraHosts(clusterOptions.get("String_Node_Str").substring(1,clusterOptions.get("String_Node_Str").length() - 1).split("String_Node_Str"));
  engineConfig.setCassandraPort(Integer.parseInt(clusterOptions.get("String_Node_Str")));
  engineConfig.setCredentials(credentials);
  if (clusterOptions.get("String_Node_Str") == null) {
    defaultLimit=100;
  }
 else {
    defaultLimit=Integer.parseInt(clusterOptions.get("String_Node_Str"));
  }
  Engine engine=new Engine(engineConfig);
  LOG.info("String_Node_Str");
  sessions.put(clusterName.getName(),engine.getSession());
}

Fixed version (ground truth):
@Override public void connect(ICredentials credentials,ConnectorClusterConfig config) throws ConnectionException {
  ClusterName clusterName=config.getName();
  Map<String,String> clusterOptions=config.getOptions();
  EngineConfig engineConfig=new EngineConfig();
  engineConfig.setCassandraHosts(clusterOptions.get("String_Node_Str").substring(1,clusterOptions.get("String_Node_Str").length() - 1).split("String_Node_Str"));
  engineConfig.setCassandraPort(Integer.parseInt(clusterOptions.get("String_Node_Str")));
  engineConfig.setCredentials(credentials);
  if (clusterOptions.get("String_Node_Str") == null) {
    defaultLimit=DEFAULTLIMIT;
  }
 else {
    defaultLimit=Integer.parseInt(clusterOptions.get("String_Node_Str"));
  }
  Engine engine=new Engine(engineConfig);
  LOG.info("String_Node_Str");
  sessions.put(clusterName.getName(),engine.getSession());
}
Program: 11217
Project: 11217
Buggy source:
private String getLuceneIndex(){
  String indexName="String_Node_Str";
  List<ColumnMetadata> columns=session.getCluster().getMetadata().getKeyspace(catalog).getTable(tableName.getName()).getColumns();
  for (  ColumnMetadata column : columns) {
    if (column.getIndex() != null) {
      if (column.getIndex().isCustomIndex()) {
        indexName=column.getIndex().getName();
      }
    }
  }
  return indexName;
}

Fixed version (ground truth):
private String getLuceneIndex(){
  String indexName="String_Node_Str";
  List<ColumnMetadata> columns=session.getCluster().getMetadata().getKeyspace(catalog).getTable(tableName.getName()).getColumns();
  for (  ColumnMetadata column : columns) {
    if (column.getIndex() != null) {
      if (column.getIndex().isCustomIndex()) {
        indexName=column.getName();
      }
    }
  }
  return indexName;
}
Program: 11218
Project: 11218
Buggy source:
@Override public void createTable(ClusterName targetCluster,TableMetadata tableMetadata) throws UnsupportedException, ExecutionException {
  session=sessions.get(targetCluster.getName());
  String tableName=tableMetadata.getName().getQualifiedName();
  Map<Selector,Selector> tableOptions=tableMetadata.getOptions();
  List<ColumnName> primaryKey=tableMetadata.getPrimaryKey();
  List<ColumnName> partitionKey=tableMetadata.getPartitionKey();
  List<ColumnName> clusterKey=tableMetadata.getClusterKey();
  int primaryKeyType;
  if (primaryKey.size() == 1) {
    primaryKeyType=PRIMARY_SINGLE;
  }
 else {
    if (clusterKey.isEmpty()) {
      primaryKeyType=PRIMARY_AND_CLUSTERING_SPECIFIED;
    }
 else {
      primaryKeyType=PRIMARY_COMPOSED;
    }
  }
  Map<ColumnName,com.stratio.meta2.common.metadata.ColumnMetadata> tableColumns=tableMetadata.getColumns();
  String stringOptions=getStringOptions(tableOptions);
  CreateTableStatement tableStatement=new CreateTableStatement(tableName,tableColumns,primaryKey,partitionKey,clusterKey,primaryKeyType,stringOptions,true);
  Result result=CassandraExecutor.execute(tableStatement.toString(),session);
  if (result.hasError()) {
    ErrorResult error=(ErrorResult)result;
switch (error.getType()) {
case EXECUTION:
      throw new ExecutionException(error.getErrorMessage());
case NOT_SUPPORTED:
    throw new UnsupportedException(error.getErrorMessage());
case CRITICAL:
  throw new CriticalExecutionException(error.getErrorMessage());
default :
throw new UnsupportedException(error.getErrorMessage());
}
}
}

Fixed version (ground truth):
@Override public void createTable(ClusterName targetCluster,TableMetadata tableMetadata) throws UnsupportedException, ExecutionException {
  session=sessions.get(targetCluster.getName());
  String tableName=tableMetadata.getName().getQualifiedName();
  Map<Selector,Selector> tableOptions=tableMetadata.getOptions();
  List<ColumnName> primaryKey=tableMetadata.getPrimaryKey();
  List<ColumnName> partitionKey=tableMetadata.getPartitionKey();
  List<ColumnName> clusterKey=tableMetadata.getClusterKey();
  int primaryKeyType;
  if (primaryKey.size() == 1) {
    primaryKeyType=PRIMARY_SINGLE;
  }
 else {
    if (clusterKey.isEmpty()) {
      primaryKeyType=PRIMARY_AND_CLUSTERING_SPECIFIED;
    }
 else {
      primaryKeyType=PRIMARY_COMPOSED;
    }
  }
  Map<ColumnName,com.stratio.meta2.common.metadata.ColumnMetadata> tableColumns=tableMetadata.getColumns();
  String stringOptions=getStringOptions(tableOptions);
  CreateTableStatement tableStatement=new CreateTableStatement(tableName,tableColumns,primaryKey,partitionKey,clusterKey,primaryKeyType,stringOptions,true);
  Result result=CassandraExecutor.execute(tableStatement.toString(),session);
  if (result.hasError()) {
    ErrorResult error=(ErrorResult)result;
    getTypeErrorException(error);
  }
}
Program: 11219
Project: 11219
Buggy source:
private String getStringOptions(Map<Selector,Selector> options){
  StringBuilder stringOptions=new StringBuilder();
  if (options.isEmpty()) {
    int i=0;
    for (    Selector keySelector : options.keySet()) {
      StringSelector stringKeySelector=(StringSelector)keySelector;
      StringSelector optionSelector=(StringSelector)options.get(keySelector);
      if (i != 0) {
        stringOptions.append("String_Node_Str");
      }
      i=1;
      String key=stringKeySelector.getValue();
      stringOptions.append(getStyleStringOption(key,optionSelector.getValue()));
    }
  }
  return stringOptions.toString();
}

Fixed version (ground truth):
private String getStringOptions(Map<Selector,Selector> options){
  StringBuilder stringOptions=new StringBuilder();
  if (!options.isEmpty()) {
    int i=0;
    for (    Selector keySelector : options.keySet()) {
      StringSelector stringKeySelector=(StringSelector)keySelector;
      StringSelector optionSelector=(StringSelector)options.get(keySelector);
      if (i != 0) {
        stringOptions.append("String_Node_Str");
      }
      i=1;
      String key=stringKeySelector.getValue();
      stringOptions.append(getStyleStringOption(key,optionSelector.getValue()));
    }
  }
  return stringOptions.toString();
}
Program: 11220
Project: 11220
Buggy source:
@Override public void createCatalog(ClusterName targetCluster,CatalogMetadata catalogMetadata) throws UnsupportedException, ExecutionException {
  session=sessions.get(targetCluster.getName());
  String catalogName=catalogMetadata.getName().getQualifiedName();
  Map<Selector,Selector> catalogOptions=catalogMetadata.getOptions();
  String stringOptions=getStringOptions(catalogOptions);
  CreateCatalogStatement catalogStatement=new CreateCatalogStatement(catalogName,true,stringOptions);
  Result result=CassandraExecutor.execute(catalogStatement.toString(),session);
  if (result.hasError()) {
    ErrorResult error=(ErrorResult)result;
switch (error.getType()) {
case EXECUTION:
      throw new ExecutionException(error.getErrorMessage());
case NOT_SUPPORTED:
    throw new UnsupportedException(error.getErrorMessage());
case CRITICAL:
  throw new CriticalExecutionException(error.getErrorMessage());
default :
throw new UnsupportedException(error.getErrorMessage());
}
}
}

Fixed version (ground truth):
@Override public void createCatalog(ClusterName targetCluster,CatalogMetadata catalogMetadata) throws UnsupportedException, ExecutionException {
  session=sessions.get(targetCluster.getName());
  String catalogName=catalogMetadata.getName().getQualifiedName();
  Map<Selector,Selector> catalogOptions=catalogMetadata.getOptions();
  String stringOptions=getStringOptions(catalogOptions);
  CreateCatalogStatement catalogStatement=new CreateCatalogStatement(catalogName,true,stringOptions);
  Result result=CassandraExecutor.execute(catalogStatement.toString(),session);
  if (result.hasError()) {
    ErrorResult error=(ErrorResult)result;
    getTypeErrorException(error);
  }
}
Program: 11221
Project: 11221
Buggy source:
@Override public void dropCatalog(ClusterName targetCluster,CatalogName name) throws UnsupportedException, ExecutionException {
  session=sessions.get(targetCluster.getName());
  DropCatalogStatement catalogStatement=new DropCatalogStatement(name.getName(),true);
  Result result=CassandraExecutor.execute(catalogStatement.toString(),session);
  if (result.hasError()) {
    ErrorResult error=(ErrorResult)result;
switch (error.getType()) {
case EXECUTION:
      throw new ExecutionException(error.getErrorMessage());
case NOT_SUPPORTED:
    throw new UnsupportedException(error.getErrorMessage());
case CRITICAL:
  throw new CriticalExecutionException(error.getErrorMessage());
default :
throw new UnsupportedException(error.getErrorMessage());
}
}
}

Fixed version (ground truth):
@Override public void dropCatalog(ClusterName targetCluster,CatalogName name) throws UnsupportedException, ExecutionException {
  session=sessions.get(targetCluster.getName());
  DropCatalogStatement catalogStatement=new DropCatalogStatement(name.getName(),true);
  Result result=CassandraExecutor.execute(catalogStatement.toString(),session);
  if (result.hasError()) {
    ErrorResult error=(ErrorResult)result;
    getTypeErrorException(error);
  }
}
Program: 11222
Project: 11222
Buggy source:
@Override public void createIndex(ClusterName targetCluster,IndexMetadata indexMetadata) throws UnsupportedException, ExecutionException {
  session=sessions.get(targetCluster.getName());
  CreateIndexStatement indexStatement=new CreateIndexStatement(indexMetadata,true,session);
  Result result=CassandraExecutor.execute(indexStatement.toString(),session);
  if (result.hasError()) {
    ErrorResult error=(ErrorResult)result;
switch (error.getType()) {
case EXECUTION:
      throw new ExecutionException(error.getErrorMessage());
case NOT_SUPPORTED:
    throw new UnsupportedException(error.getErrorMessage());
case CRITICAL:
  throw new CriticalExecutionException(error.getErrorMessage());
default :
throw new UnsupportedException(error.getErrorMessage());
}
}
}

Fixed version (ground truth):
@Override public void createIndex(ClusterName targetCluster,IndexMetadata indexMetadata) throws UnsupportedException, ExecutionException {
  session=sessions.get(targetCluster.getName());
  CreateIndexStatement indexStatement=new CreateIndexStatement(indexMetadata,true,session);
  Result result=CassandraExecutor.execute(indexStatement.toString(),session);
  if (result.hasError()) {
    ErrorResult error=(ErrorResult)result;
    getTypeErrorException(error);
  }
}
Program: 11223
Project: 11223
Buggy source:
@Override public void dropTable(ClusterName targetCluster,TableName name) throws UnsupportedException, ExecutionException {
  session=sessions.get(targetCluster.getName());
  DropTableStatement tableStatement=new DropTableStatement(name.getQualifiedName(),true);
  Result result=CassandraExecutor.execute(tableStatement.toString(),session);
  if (result.hasError()) {
    ErrorResult error=(ErrorResult)result;
switch (error.getType()) {
case EXECUTION:
      throw new ExecutionException(error.getErrorMessage());
case NOT_SUPPORTED:
    throw new UnsupportedException(error.getErrorMessage());
case CRITICAL:
  throw new CriticalExecutionException(error.getErrorMessage());
default :
throw new UnsupportedException(error.getErrorMessage());
}
}
}

Fixed version (ground truth):
@Override public void dropTable(ClusterName targetCluster,TableName name) throws UnsupportedException, ExecutionException {
  session=sessions.get(targetCluster.getName());
  DropTableStatement tableStatement=new DropTableStatement(name.getQualifiedName(),true);
  Result result=CassandraExecutor.execute(tableStatement.toString(),session);
  if (result.hasError()) {
    ErrorResult error=(ErrorResult)result;
    getTypeErrorException(error);
  }
}
Program: 11224
Project: 11224
Buggy source:
@Override public void dropIndex(ClusterName targetCluster,IndexMetadata indexName) throws UnsupportedException, ExecutionException {
  session=sessions.get(targetCluster.getName());
  DropIndexStatement indexStatement=new DropIndexStatement(indexName,true);
  Result result=CassandraExecutor.execute(indexStatement.toString(),session);
  if (result.hasError()) {
    ErrorResult error=(ErrorResult)result;
switch (error.getType()) {
case EXECUTION:
      throw new ExecutionException(error.getErrorMessage());
case NOT_SUPPORTED:
    throw new UnsupportedException(error.getErrorMessage());
case CRITICAL:
  throw new CriticalExecutionException(error.getErrorMessage());
default :
throw new UnsupportedException(error.getErrorMessage());
}
}
}

Fixed version (ground truth):
@Override public void dropIndex(ClusterName targetCluster,IndexMetadata indexName) throws UnsupportedException, ExecutionException {
  session=sessions.get(targetCluster.getName());
  DropIndexStatement indexStatement=new DropIndexStatement(indexName,true);
  Result result=CassandraExecutor.execute(indexStatement.toString(),session);
  if (result.hasError()) {
    ErrorResult error=(ErrorResult)result;
    getTypeErrorException(error);
  }
}
Program: 11225
Project: 11225
Buggy source:
public String parseQuery(){
  StringBuilder sb=new StringBuilder("String_Node_Str");
  if (selectionClause != null) {
    int i=0;
    for (    ColumnName columnName : selectionClause) {
      if (i != 0) {
        sb.append("String_Node_Str");
      }
      i=1;
      sb.append(columnName.getName());
    }
  }
  sb.append("String_Node_Str");
  if (catalogInc) {
    sb.append(catalog).append("String_Node_Str");
  }
  sb.append(tableName.getName());
  if (whereInc) {
    sb.append("String_Node_Str");
    int count=0;
    for (    Relation relation : where) {
      if (count > 0) {
        sb.append("String_Node_Str");
      }
      count=1;
switch (relation.getOperator()) {
case IN:
case BETWEEN:
        break;
case MATCH:
      String nameIndex=getLuceneIndex();
    sb.append(nameIndex).append("String_Node_Str");
  sb.append(getLuceneWhereClause(relation));
sb.append("String_Node_Str");
break;
default :
String whereWithQualification=relation.toString();
String parts[]=whereWithQualification.split("String_Node_Str");
String columnName=parts[0].substring(parts[0].lastIndexOf("String_Node_Str") + 1);
sb.append(columnName);
for (int i=1; i < parts.length; i++) {
sb.append("String_Node_Str").append(parts[i]);
}
break;
}
}
}
if (limitInc) {
sb.append("String_Node_Str").append(limit);
}
return sb.toString().replace("String_Node_Str","String_Node_Str");
}

Fixed version (ground truth):
public String parseQuery(){
  StringBuilder sb=new StringBuilder("String_Node_Str");
  if (selectionClause != null) {
    sb.append(getSelectionClause());
  }
  sb.append(getFromClause());
  if (whereInc) {
    sb.append(getWhereClause());
  }
  if (limitInc) {
    sb.append("String_Node_Str").append(limit);
  }
  return sb.toString().replace("String_Node_Str","String_Node_Str");
}
Program: 11226
Project: 11226
Buggy source:
public String getLuceneWhereClause(Relation relation){
  String result;
  StringBuilder sb=new StringBuilder("String_Node_Str");
  String column=relation.getLeftTerm().toString().substring(relation.getLeftTerm().toString().lastIndexOf("String_Node_Str") + 1);
  String value=relation.getRightTerm().toString();
  String[] processedQuery=processLuceneQueryType(value);
  sb.append("String_Node_Str");
  sb.append(processedQuery[0]);
  sb.append("String_Node_Str");
  sb.append(column);
  sb.append("String_Node_Str");
  sb.append(processedQuery[1]);
  sb.append("String_Node_Str");
  sb.replace(sb.length() - 1,sb.length(),"String_Node_Str");
  sb.append("String_Node_Str");
  result=sb.toString();
  return result;
}

Fixed version (ground truth):
public String getLuceneWhereClause(Relation relation){
  String result;
  StringBuilder sb=new StringBuilder("String_Node_Str");
  String column=relation.getLeftTerm().toString().substring(relation.getLeftTerm().toString().lastIndexOf('.') + 1);
  String value=relation.getRightTerm().toString();
  String[] processedQuery=processLuceneQueryType(value);
  sb.append("String_Node_Str");
  sb.append(processedQuery[0]);
  sb.append("String_Node_Str");
  sb.append(column);
  sb.append("String_Node_Str");
  sb.append(processedQuery[1]);
  sb.append("String_Node_Str");
  sb.replace(sb.length() - 1,sb.length(),"String_Node_Str");
  sb.append("String_Node_Str");
  result=sb.toString();
  return result;
}
Program: 11228
Project: 11228
Buggy source:
public void uncontrolledShutdown(){
  List<CloseFuture> closeFutureList=new ArrayList<>();
  for (  Session s : sessions.values()) {
    s.close();
  }
  sessions=new HashMap<>();
}

Fixed version (ground truth):
public void uncontrolledShutdown(){
  for (  Session s : sessions.values()) {
    s.close();
  }
  sessions=new HashMap<>();
}
Program: 11229
Project: 11229
Buggy source:
public CassandraConnector(){
  sessions=new HashMap<>();
  try {
    InputStream inputStream=getClass().getResourceAsStream("String_Node_Str");
    Document d=DocumentBuilderFactory.newInstance().newDocumentBuilder().parse(inputStream);
    this.connectorName=d.getElementsByTagName("String_Node_Str").item(0).getTextContent();
  }
 catch (  SAXException e) {
    LOG.trace("String_Node_Str");
  }
catch (  IOException e) {
    LOG.trace("String_Node_Str");
  }
catch (  ParserConfigurationException e) {
    LOG.trace("String_Node_Str");
  }
}

Fixed version (ground truth):
public CassandraConnector(){
  sessions=new HashMap<>();
  try {
    InputStream inputStream=getClass().getResourceAsStream("String_Node_Str");
    Document d=DocumentBuilderFactory.newInstance().newDocumentBuilder().parse(inputStream);
    XPathFactory xFactory=XPathFactory.newInstance();
    XPath xpath=xFactory.newXPath();
    Object result;
    XPathExpression expr=null;
    try {
      expr=xpath.compile("String_Node_Str");
      result=expr.evaluate(d,XPathConstants.NODESET);
      this.connectorName=((NodeList)result).item(0).getNodeValue();
    }
 catch (    XPathExpressionException e) {
    }
    try {
      expr=xpath.compile("String_Node_Str");
      result=expr.evaluate(d,XPathConstants.NODESET);
      limitDefault=Integer.parseInt(((NodeList)result).item(0).getNodeValue());
    }
 catch (    XPathExpressionException e) {
      limitDefault=100;
    }
  }
 catch (  SAXException e) {
    LOG.trace("String_Node_Str");
  }
catch (  IOException e) {
    LOG.trace("String_Node_Str");
  }
catch (  ParserConfigurationException e) {
    LOG.trace("String_Node_Str");
  }
}
Program: 11230
Project: 11230
Buggy source:
/** 
 * Get the query com.stratio.connector.cassandra.
 * @return An implementation of {@link com.stratio.meta.common.connector.IQueryEngine}.
 * @throws UnsupportedException If the connector does not provide this functionality.
 */
@Override public IQueryEngine getQueryEngine() throws UnsupportedException {
  IQueryEngine queryEngine=new CassandraQueryEngine(sessions);
  return queryEngine;
}

Fixed version (ground truth):
/** 
 * Get the query com.stratio.connector.cassandra.
 * @return An implementation of {@link com.stratio.meta.common.connector.IQueryEngine}.
 * @throws UnsupportedException If the connector does not provide this functionality.
 */
@Override public IQueryEngine getQueryEngine() throws UnsupportedException {
  IQueryEngine queryEngine=new CassandraQueryEngine(sessions,limitDefault);
  return queryEngine;
}
Program: 11231
Project: 11231
Buggy source:
@Override public void createTable(ClusterName targetCluster,TableMetadata tableMetadata) throws UnsupportedException, ExecutionException {
  session=sessions.get(targetCluster.getName());
  String tableName=tableMetadata.getName().getQualifiedName();
  Map<Selector,Selector> tableOptions=tableMetadata.getOptions();
  List<ColumnName> primaryKey=tableMetadata.getPrimaryKey();
  List<ColumnName> clusterKey=tableMetadata.getClusterKey();
  int primaryKeyType;
  if (primaryKey.size() <= 1) {
    primaryKeyType=PRIMARY_SINGLE;
  }
 else {
    if (clusterKey.size() > 0) {
      primaryKeyType=PRIMARY_AND_CLUSTERING_SPECIFIED;
    }
 else {
      primaryKeyType=PRIMARY_COMPOSED;
    }
  }
  Map<ColumnName,com.stratio.meta2.common.metadata.ColumnMetadata> tableColumns=tableMetadata.getColumns();
  String stringOptions=getStringOptions(tableOptions);
  CreateTableStatement tableStatement=new CreateTableStatement(tableName,tableColumns,primaryKey,clusterKey,primaryKeyType,stringOptions,true);
  Result result=CassandraExecutor.execute(tableStatement.toString(),session);
  if (result.hasError()) {
    ErrorResult error=(ErrorResult)result;
switch (error.getType()) {
case EXECUTION:
      throw new ExecutionException(error.getErrorMessage());
case NOT_SUPPORTED:
    throw new UnsupportedException(error.getErrorMessage());
default :
  throw new UnsupportedException(error.getErrorMessage());
}
}
}

Fixed version (ground truth):
@Override public void createTable(ClusterName targetCluster,TableMetadata tableMetadata) throws UnsupportedException, ExecutionException {
  session=sessions.get(targetCluster.getName());
  String tableName=tableMetadata.getName().getQualifiedName();
  Map<Selector,Selector> tableOptions=tableMetadata.getOptions();
  List<ColumnName> primaryKey=tableMetadata.getPrimaryKey();
  List<ColumnName> partitionKey=tableMetadata.getPartitionKey();
  List<ColumnName> clusterKey=tableMetadata.getClusterKey();
  int primaryKeyType;
  if (primaryKey.size() == 1) {
    primaryKeyType=PRIMARY_SINGLE;
  }
 else {
    if (clusterKey.size() > 0) {
      primaryKeyType=PRIMARY_AND_CLUSTERING_SPECIFIED;
    }
 else {
      primaryKeyType=PRIMARY_COMPOSED;
    }
  }
  Map<ColumnName,com.stratio.meta2.common.metadata.ColumnMetadata> tableColumns=tableMetadata.getColumns();
  String stringOptions=getStringOptions(tableOptions);
  CreateTableStatement tableStatement=new CreateTableStatement(tableName,tableColumns,primaryKey,partitionKey,clusterKey,primaryKeyType,stringOptions,true);
  Result result=CassandraExecutor.execute(tableStatement.toString(),session);
  if (result.hasError()) {
    ErrorResult error=(ErrorResult)result;
switch (error.getType()) {
case EXECUTION:
      throw new ExecutionException(error.getErrorMessage());
case NOT_SUPPORTED:
    throw new UnsupportedException(error.getErrorMessage());
default :
  throw new UnsupportedException(error.getErrorMessage());
}
}
}
Program: 11232
Project: 11232
Buggy source:
public CassandraQueryEngine(Map<String,Session> sessions){
  this.sessions=sessions;
}

Fixed version (ground truth):
public CassandraQueryEngine(Map<String,Session> sessions,int limitDefault){
  this.sessions=sessions;
  this.limit=limitDefault;
}
Program: 11233
Project: 11233
Buggy source:
/** 
 * Class constructor.
 * @param tableName      The name of the table.
 * @param tableColumns   A map with the name of the columns in the table and the associated data type.
 * @param primaryKey     The list of columns that are part of the primary key.
 * @param clusterKey     The list of columns that are part of the clustering key.
 * @param primaryKeyType The type of primary key.
 */
public CreateTableStatement(String tableName,Map<ColumnName,ColumnMetadata> tableColumns,List<ColumnName> primaryKey,List<ColumnName> clusterKey,int primaryKeyType,String properties,boolean ifNotExists) throws ExecutionException {
  if (tableName.contains("String_Node_Str")) {
    String[] ksAndTablename=tableName.split("String_Node_Str");
    catalog=ksAndTablename[0];
    this.tableName=ksAndTablename[1];
    catalogInc=true;
  }
 else {
    this.tableName=tableName;
  }
  this.tableColumns=tableColumns;
  this.primaryKey=primaryKey;
  this.clusterKey=clusterKey;
  this.primaryKeyType=primaryKeyType;
  this.ifNotExists=ifNotExists;
  if (properties.length() > 0) {
    this.withProperties=true;
    this.properties=properties;
  }
  if (primaryKey == null || primaryKey.size() == 0) {
    throw new ExecutionException("String_Node_Str");
  }
 else   if (clusterKey == null && primaryKeyType == PRIMARY_AND_CLUSTERING_SPECIFIED) {
    throw new ExecutionException("String_Node_Str");
  }
}

Fixed version (ground truth):
/** 
 * Class constructor.
 * @param tableName      The name of the table.
 * @param tableColumns   A map with the name of the columns in the table and the associated data type.
 * @param primaryKey     The list of columns that are part of the primary key.
 * @param clusterKey     The list of columns that are part of the clustering key.
 * @param primaryKeyType The type of primary key.
 */
public CreateTableStatement(String tableName,Map<ColumnName,ColumnMetadata> tableColumns,List<ColumnName> primaryKey,List<ColumnName> partitionKey,List<ColumnName> clusterKey,int primaryKeyType,String properties,boolean ifNotExists) throws ExecutionException {
  if (tableName.contains("String_Node_Str")) {
    String[] ksAndTablename=tableName.split("String_Node_Str");
    catalog=ksAndTablename[0];
    this.tableName=ksAndTablename[1];
    catalogInc=true;
  }
 else {
    this.tableName=tableName;
  }
  this.tableColumns=tableColumns;
  this.primaryKey=primaryKey;
  this.clusterKey=clusterKey;
  this.primaryKeyType=primaryKeyType;
  this.ifNotExists=ifNotExists;
  if (properties.length() > 0) {
    this.withProperties=true;
    this.properties=properties;
  }
  if (partitionKey == null || partitionKey.size() == 0) {
    throw new ExecutionException("String_Node_Str");
  }
 else   if (clusterKey == null && primaryKeyType == PRIMARY_AND_CLUSTERING_SPECIFIED) {
    throw new ExecutionException("String_Node_Str");
  }
}
Program: 11234
Project: 11234
Buggy source:
/** 
 * Generate the Lucene options schema that corresponds with the selected column.
 * @return The JSON representation of the Lucene schema.
 */
protected String generateLuceneSchema(){
  StringBuilder sb=new StringBuilder();
  sb.append("String_Node_Str");
  sb.append("String_Node_Str");
  for (  ColumnMetadata column : targetColumns) {
    sb.append(column.getName().getName());
    sb.append("String_Node_Str");
    sb.append(luceneTypes.get(column.getColumnType().getDbType()));
    sb.append("String_Node_Str");
  }
  sb.append("String_Node_Str");
  return sb.toString().replace("String_Node_Str","String_Node_Str");
}

Fixed version (ground truth):
/** 
 * Generate the Lucene options schema that corresponds with the selected column.
 * @return The JSON representation of the Lucene schema.
 */
protected String generateLuceneSchema(){
  StringBuilder sb=new StringBuilder();
  sb.append("String_Node_Str");
  sb.append("String_Node_Str");
  for (  ColumnMetadata column : targetColumns) {
    sb.append(column.getName().getName());
    sb.append("String_Node_Str");
    sb.append(luceneTypes.get(column.getColumnType().name()));
    sb.append("String_Node_Str");
  }
  sb.append("String_Node_Str");
  return sb.toString().replace("String_Node_Str","String_Node_Str");
}
Program: 11235
Project: 11235
Buggy source:
public CreateIndexStatement(IndexMetadata indexMetadata,boolean createIfNotExists,Session session){
  targetColumns=new ArrayList<>();
  this.parameters=indexMetadata.getOptions();
  this.targetColumns=indexMetadata.getColumns();
  this.createIfNotExists=createIfNotExists;
  this.type=indexMetadata.getType();
  this.tableName=targetColumns.get(0).getName().getTableName().getName();
  this.keyspace=targetColumns.get(0).getName().getTableName().getCatalogName().getName();
  if (keyspace != null)   this.keyspaceIncluded=true;
  this.name=indexMetadata.getName().getName();
  if (type == IndexType.FULL_TEXT) {
    usingClass="String_Node_Str";
    options=generateLuceneOptions();
    try {
      session.execute("String_Node_Str" + this.tableName + "String_Node_Str"+ getIndexName()+ "String_Node_Str");
    }
 catch (    Exception e) {
    }
  }
}

Fixed version (ground truth):
public CreateIndexStatement(IndexMetadata indexMetadata,boolean createIfNotExists,Session session) throws ExecutionException {
  targetColumns=new ArrayList<>();
  this.parameters=indexMetadata.getOptions();
  this.targetColumns=indexMetadata.getColumns();
  this.createIfNotExists=createIfNotExists;
  this.type=indexMetadata.getType();
  this.tableName=targetColumns.get(0).getName().getTableName().getName();
  this.keyspace=targetColumns.get(0).getName().getTableName().getCatalogName().getName();
  if (keyspace != null)   this.keyspaceIncluded=true;
  this.name=indexMetadata.getName().getName();
  if (type == IndexType.FULL_TEXT) {
    usingClass="String_Node_Str";
    options=generateLuceneOptions();
    try {
      session.execute("String_Node_Str" + targetColumns.get(0).getName().getTableName() + "String_Node_Str"+ getIndexName()+ "String_Node_Str");
    }
 catch (    Exception e) {
      throw new ExecutionException("String_Node_Str" + e.getMessage());
    }
  }
}
Program: 11236
Project: 11236
Buggy source:
/** 
 * Get the name of the datastore required by the connector.
 * @return The name.
 */
@Override public String getDatastoreName(){
  return "String_Node_Str";
}

Fixed version (ground truth):
/** 
 * Get the name of the datastore required by the connector.
 * @return The name.
 */
@Override public String[] getDatastoreName(){
  return new String[]{"String_Node_Str"};
}
Program: 11237
Project: 11237
Buggy source:
@Test public void basicSelect(){
  ClusterName targetCluster=new ClusterName("String_Node_Str");
  List<LogicalStep> logicalSteps=new ArrayList<>();
  CatalogName catalogName=new CatalogName("String_Node_Str");
  TableName tableName=new TableName("String_Node_Str",catalogName.getName());
  List<ColumnName> columnList=new ArrayList<>();
  ColumnName columnName=new ColumnName(tableName,"String_Node_Str");
  columnList.add(columnName);
  Project project=new Project("String_Node_Str",tableName,columnList);
  Selector identifier=new ColumnSelector(columnName);
  Term term=new StringTerm("String_Node_Str");
  List<Term<?>> terms=new ArrayList<>();
  terms.add(term);
  Relation relation=new Relation(identifier,Operator.LIKE,terms);
  Filter filter=new Filter(Operations.SELECT_LIMIT,relation);
  project.setNextStep(filter);
  logicalSteps.add(project);
  logicalSteps.add(filter);
  LogicalWorkflow workflow=new LogicalWorkflow(logicalSteps);
  Map<String,Session> sessions=new HashMap<>();
  sessions.put("String_Node_Str",this._session);
  CassandraQueryEngine cqe=new CassandraQueryEngine(sessions);
  try {
    QueryResult qr=cqe.execute(targetCluster,workflow);
    String value="String_Node_Str";
    for (    Row row : qr.getResultSet()) {
      Cell cell=row.getCell("String_Node_Str");
      value=cell.getValue().toString();
    }
    assertEquals(value,"String_Node_Str");
  }
 catch (  UnsupportedException e) {
    e.printStackTrace();
  }
catch (  ExecutionException e) {
    e.printStackTrace();
  }
  assertEquals(cqe.parseQuery(),"String_Node_Str");
}

Fixed version (ground truth):
@Test public void basicSelect(){
  ClusterName targetCluster=new ClusterName("String_Node_Str");
  List<LogicalStep> logicalSteps=new ArrayList<>();
  TableName tableName=new TableName("String_Node_Str","String_Node_Str");
  List<ColumnName> columnList=new ArrayList<>();
  ColumnName columnName=new ColumnName(tableName,"String_Node_Str");
  columnList.add(columnName);
  Project project=new Project(tableName,columnList);
  Selector identifier=new ColumnSelector(columnName);
  Term term=new StringTerm("String_Node_Str");
  List<Term<?>> terms=new ArrayList<>();
  terms.add(term);
  Relation relation=new Relation(identifier,Operator.LIKE,terms);
  Filter filter=new Filter(Operations.SELECT_LIMIT,relation);
  project.setNextStep(filter);
  logicalSteps.add(project);
  logicalSteps.add(filter);
  LogicalWorkflow workflow=new LogicalWorkflow(logicalSteps);
  Map<String,Session> sessions=new HashMap<>();
  sessions.put("String_Node_Str",this._session);
  CassandraQueryEngine cqe=new CassandraQueryEngine(sessions);
  try {
    QueryResult qr=cqe.execute(targetCluster,workflow);
    String value="String_Node_Str";
    for (    Row row : qr.getResultSet()) {
      Cell cell=row.getCell("String_Node_Str");
      value=cell.getValue().toString();
    }
    assertEquals(value,"String_Node_Str");
  }
 catch (  UnsupportedException e) {
    e.printStackTrace();
  }
catch (  ExecutionException e) {
    e.printStackTrace();
  }
  assertEquals(cqe.parseQuery(),"String_Node_Str");
}
Program: 11239
Project: 11239
Buggy source:
DesktopGateway(Stage aStage){
  stage=aStage;
}

Fixed version (ground truth):
DesktopGateway(Application aApplication){
  application=aApplication;
}
Program: 11240
Project: 11240
Buggy source:
public void openFile(String aFile){
  if (Desktop.isDesktopSupported()) {
    if (Platform.isFxApplicationThread()) {
      LOGGER.info("String_Node_Str");
      new Thread(() -> open(aFile),"String_Node_Str").start();
    }
 else {
      LOGGER.info("String_Node_Str");
      open(aFile);
    }
  }
 else {
    LOGGER.error("String_Node_Str");
  }
}

Fixed version (ground truth):
public void openFile(String aFile){
  application.getHostServices().showDocument(aFile);
}
Program: 11242
Project: 11242
Buggy source:
public static boolean isWildCard(String aTerm){
  return aTerm.contains("String_Node_Str") || aTerm.contains("String_Node_Str");
}

Fixed version (ground truth):
public static boolean isWildCard(String aTerm){
  return aTerm.contains(ASTERISK) || aTerm.contains("String_Node_Str");
}
Program: 11243
Project: 11243
Buggy source:
private List<String> toTokens(String aFieldName,String aPhrase) throws IOException {
  List<String> theTokens=new ArrayList<>();
  TokenStream theTokenStream=analyzer.tokenStream(aFieldName,aPhrase);
  theTokenStream.reset();
  CharTermAttribute theCharTerms=theTokenStream.getAttribute(CharTermAttribute.class);
  while (theTokenStream.incrementToken()) {
    theTokens.add(theCharTerms.toString());
  }
  theTokenStream.end();
  theTokenStream.close();
  return theTokens;
}

Fixed version (ground truth):
private List<String> toTokens(String aFieldName,String aPhrase) throws IOException {
  List<String> theTokens=new ArrayList<>();
  String[] theSplitTokens=StringUtils.split(aPhrase,"String_Node_Str");
  for (int i=0; i < theSplitTokens.length; i++) {
    String theToken=theSplitTokens[i];
    if (theToken.length() > 2 && i == theSplitTokens.length - 1 && !QueryUtils.isWildCard(theToken)) {
      theToken=theToken + QueryUtils.ASTERISK;
    }
    if (!theToken.startsWith("String_Node_Str")) {
      if (QueryUtils.isWildCard(theToken)) {
        theTokens.add(theToken);
      }
 else {
        String theAnalyzed=analyze(aFieldName,theToken);
        if (theAnalyzed != null) {
          theTokens.add(theAnalyzed);
        }
      }
    }
  }
  return theTokens;
}
Program: 11245
Project: 11245
Buggy source:
private void fileCreatedOrModified(FilesystemLocation aFileSystemLocation,Path aFile,boolean aShowInformation){
  String theFileName=aFile.toString();
  if (contentExtractor.supportsFile(theFileName)) {
    try {
      progressMonitor.addNewFileFound(theFileName);
      BasicFileAttributes theAttributes=Files.readAttributes(aFile,BasicFileAttributes.class);
      UpdateCheckResult theUpdateCheckResult=luceneIndexHandler.checkIfModified(theFileName,theAttributes.size());
      if (theUpdateCheckResult == UpdateCheckResult.UPDATED) {
        if (aShowInformation) {
          notifier.showInformation("String_Node_Str" + aFile);
        }
        Content theContent=contentExtractor.extractContentFrom(aFile,theAttributes);
        if (theContent != null) {
          luceneIndexHandler.addToIndex(aFileSystemLocation.getId(),theContent);
          progressMonitor.addFilesIndexed();
        }
      }
    }
 catch (    Exception e) {
      aNotifier.showError("String_Node_Str" + aFile,e);
    }
  }
}

Fixed version (ground truth):
private void fileCreatedOrModified(FilesystemLocation aFileSystemLocation,Path aFile,boolean aShowInformation){
  String theFileName=aFile.toString();
  if (contentExtractor.supportsFile(theFileName)) {
    try {
      progressListener.newFileFound(theFileName);
      BasicFileAttributes theAttributes=Files.readAttributes(aFile,BasicFileAttributes.class);
      UpdateCheckResult theUpdateCheckResult=luceneIndexHandler.checkIfModified(theFileName,theAttributes.size());
      if (theUpdateCheckResult == UpdateCheckResult.UPDATED) {
        if (aShowInformation) {
          notifier.showInformation("String_Node_Str" + aFile.getFileName());
        }
        Content theContent=contentExtractor.extractContentFrom(aFile,theAttributes);
        if (theContent != null) {
          luceneIndexHandler.addToIndex(aFileSystemLocation.getId(),theContent);
        }
      }
 else {
        LOGGER.info("String_Node_Str" + aFile + "String_Node_Str"+ theUpdateCheckResult);
      }
    }
 catch (    Exception e) {
      aNotifier.showError("String_Node_Str" + aFile.getFileName(),e);
    }
  }
}
Program: 11246
Project: 11246
Buggy source:
@Override public void run(){
  locations.values().stream().forEach(theWatcher -> {
    try {
      theWatcher.crawl();
    }
 catch (    Exception e) {
      e.printStackTrace();
    }
  }
);
  progressMonitor.crawlingFinished();
}

Fixed version (ground truth):
@Override public void run(){
  locations.values().stream().forEach(theWatcher -> {
    try {
      theWatcher.crawl();
    }
 catch (    Exception e) {
      e.printStackTrace();
    }
  }
);
  progressListener.crawlingFinished();
}
Program: 11247
Project: 11247
Buggy source:
@Override public void fileDeleted(FilesystemLocation aFileSystemLocation,Path aFile){
  try {
    luceneIndexHandler.removeFromIndex(aFile.toString());
    aNotifier.showInformation("String_Node_Str" + aFile);
  }
 catch (  Exception e) {
    aNotifier.showError("String_Node_Str" + aFile,e);
  }
}

Fixed version (ground truth):
@Override public void fileDeleted(FilesystemLocation aFileSystemLocation,Path aFile){
  try {
    String theFilename=aFile.toString();
    if (luceneIndexHandler.checkIfExists(theFilename)) {
      luceneIndexHandler.removeFromIndex(theFilename);
      aNotifier.showInformation("String_Node_Str" + aFile.getFileName());
    }
  }
 catch (  Exception e) {
    aNotifier.showError("String_Node_Str" + aFile.getFileName(),e);
  }
}