nus-yam/ex-repair huggingface dataset:
Program: 112629
Project: 112629
Buggy source:
@CliCommand(value="String_Node_Str",help="String_Node_Str") public String drop(@CliOption(key={"String_Node_Str"},help="String_Node_Str",mandatory=true,optionContext="String_Node_Str") final String streamName){
  try {
    cachedStreamsDAO.dropStream(streamName);
    return "String_Node_Str".concat(streamName).concat("String_Node_Str");
  }
 catch (  StratioEngineStatusException|StratioAPISecurityException|StratioEngineOperationException e) {
    throw new StreamingShellException(e);
  }
}

Fixed version (ground truth):
@CliCommand(value="String_Node_Str",help="String_Node_Str") public String drop(@CliOption(key={"String_Node_Str"},help="String_Node_Str",mandatory=true,optionContext="String_Node_Str") final String streamName){
  try {
    cachedStreamsDAO.dropStream(streamName);
    return "String_Node_Str".concat(streamName).concat("String_Node_Str");
  }
 catch (  StratioEngineStatusException|StratioAPISecurityException|StratioEngineOperationException|StratioEngineConnectionException e) {
    throw new StreamingShellException(e);
  }
}
Program: 112630
Project: 112630
Buggy source:
@CliCommand(value="String_Node_Str",help="String_Node_Str") public String create(@CliOption(key={"String_Node_Str"},help="String_Node_Str",mandatory=true) final String streamName,@CliOption(key={"String_Node_Str"},help="String_Node_Str",mandatory=true) final ColumnNameTypeList columns){
  try {
    cachedStreamsDAO.newStream(streamName,columns);
    return "String_Node_Str".concat(streamName).concat("String_Node_Str");
  }
 catch (  StratioEngineStatusException|StratioAPISecurityException|StratioEngineOperationException e) {
    throw new StreamingShellException(e);
  }
}

Fixed version (ground truth):
@CliCommand(value="String_Node_Str",help="String_Node_Str") public String create(@CliOption(key={"String_Node_Str"},help="String_Node_Str",mandatory=true) final String streamName,@CliOption(key={"String_Node_Str"},help="String_Node_Str",mandatory=true) final ColumnNameTypeList columns){
  try {
    cachedStreamsDAO.newStream(streamName,columns);
    return "String_Node_Str".concat(streamName).concat("String_Node_Str");
  }
 catch (  StratioEngineStatusException|StratioAPISecurityException|StratioEngineOperationException|StratioEngineConnectionException e) {
    throw new StreamingShellException(e);
  }
}
Program: 112631
Project: 112631
Buggy source:
@Bean public CachedStreamsDAO cachedStreamsDao(){
  return new CachedStreamsDAOImpl(stratioStreamingApi);
}

Fixed version (ground truth):
@Bean public CachedStreamsDAO cachedStreamsDao(){
  return new CachedStreamsDAOImpl(ssaw);
}
Program: 112632
Project: 112632
Buggy source:
List<StratioStream> listUncachedStreams() throws StratioEngineStatusException, StratioAPIGenericException ;

Fixed version (ground truth):
List<StratioStream> listUncachedStreams() throws StratioEngineStatusException, StratioAPIGenericException, StratioEngineConnectionException ;
Program: 112633
Project: 112633
Buggy source:
List<StratioStream> listStreams() throws StratioEngineStatusException, StratioAPIGenericException ;

Fixed version (ground truth):
List<StratioStream> listStreams() throws StratioEngineStatusException, StratioAPIGenericException, StratioEngineConnectionException ;
Program: 112634
Project: 112634
Buggy source:
void newStream(String name,List<ColumnNameType> columns) throws StratioEngineStatusException, StratioAPISecurityException, StratioEngineOperationException ;

Fixed version (ground truth):
void newStream(String name,List<ColumnNameType> columns) throws StratioEngineStatusException, StratioAPISecurityException, StratioEngineOperationException, StratioEngineConnectionException ;
Program: 112635
Project: 112635
Buggy source:
void dropStream(String name) throws StratioEngineStatusException, StratioAPISecurityException, StratioEngineOperationException ;

Fixed version (ground truth):
void dropStream(String name) throws StratioEngineStatusException, StratioAPISecurityException, StratioEngineOperationException, StratioEngineConnectionException ;
Program: 112636
Project: 112636
Buggy source:
public CachedStreamsDAOImpl(IStratioStreamingAPI stratioStreamingApi){
  this.stratioStreamingApi=stratioStreamingApi;
}

Fixed version (ground truth):
public CachedStreamsDAOImpl(StratioStreamingApiWrapper ssaw){
  this.ssaw=ssaw;
}
Program: 112637
Project: 112637
Buggy source:
@Override @Caching(evict=@CacheEvict(value="String_Node_Str",allEntries=true,beforeInvocation=true),cacheable=@Cacheable(value="String_Node_Str")) public List<StratioStream> listUncachedStreams() throws StratioEngineStatusException, StratioAPIGenericException {
  return stratioStreamingApi.listStreams();
}

Fixed version (ground truth):
@Override @Caching(evict=@CacheEvict(value="String_Node_Str",allEntries=true,beforeInvocation=true),cacheable=@Cacheable(value="String_Node_Str")) public List<StratioStream> listUncachedStreams() throws StratioEngineStatusException, StratioAPIGenericException, StratioEngineConnectionException {
  return ssaw.api().listStreams();
}
Program: 112638
Project: 112638
Buggy source:
@Cacheable(value="String_Node_Str") @Override public List<StratioStream> listStreams() throws StratioEngineStatusException, StratioAPIGenericException {
  return stratioStreamingApi.listStreams();
}

Fixed version (ground truth):
@Cacheable(value="String_Node_Str") @Override public List<StratioStream> listStreams() throws StratioEngineStatusException, StratioAPIGenericException, StratioEngineConnectionException {
  return ssaw.api().listStreams();
}
Program: 112639
Project: 112639
Buggy source:
@CacheEvict(value="String_Node_Str",allEntries=true) @Override public void newStream(String name,List<ColumnNameType> columns) throws StratioEngineStatusException, StratioAPISecurityException, StratioEngineOperationException {
  stratioStreamingApi.createStream(name,columns);
}

Fixed version (ground truth):
@CacheEvict(value="String_Node_Str",allEntries=true) @Override public void newStream(String name,List<ColumnNameType> columns) throws StratioEngineStatusException, StratioAPISecurityException, StratioEngineOperationException, StratioEngineConnectionException {
  ssaw.api().createStream(name,columns);
}
Program: 112640
Project: 112640
Buggy source:
@CacheEvict(value="String_Node_Str",allEntries=true) @Override public void dropStream(String name) throws StratioEngineStatusException, StratioAPISecurityException, StratioEngineOperationException {
  stratioStreamingApi.dropStream(name);
}

Fixed version (ground truth):
@CacheEvict(value="String_Node_Str",allEntries=true) @Override public void dropStream(String name) throws StratioEngineStatusException, StratioAPISecurityException, StratioEngineOperationException, StratioEngineConnectionException {
  ssaw.api().dropStream(name);
}
Program: 112641
Project: 112641
Buggy source:
@CliCommand(value="String_Node_Str",help="String_Node_Str") public String saveMongoStart(@CliOption(key={"String_Node_Str"},help="String_Node_Str",mandatory=true,optionContext="String_Node_Str") final String streamName){
  try {
    stratioStreamingApi.saveToMongo(streamName);
    return "String_Node_Str".concat(streamName).concat("String_Node_Str");
  }
 catch (  StratioEngineStatusException e) {
    throw new StreamingShellException(e);
  }
}

Fixed version (ground truth):
@CliCommand(value="String_Node_Str",help="String_Node_Str") public String saveMongoStart(@CliOption(key={"String_Node_Str"},help="String_Node_Str",mandatory=true,optionContext="String_Node_Str") final String streamName){
  try {
    ssaw.api().saveToMongo(streamName);
    return "String_Node_Str".concat(streamName).concat("String_Node_Str");
  }
 catch (  StratioEngineStatusException|StratioEngineConnectionException e) {
    throw new StreamingShellException(e);
  }
}
Program: 112642
Project: 112642
Buggy source:
@CliCommand(value="String_Node_Str",help="String_Node_Str") public String saveMongoStop(@CliOption(key={"String_Node_Str"},help="String_Node_Str",mandatory=true,optionContext="String_Node_Str") final String streamName){
  try {
    stratioStreamingApi.stopSaveToMongo(streamName);
    return "String_Node_Str".concat(streamName).concat("String_Node_Str");
  }
 catch (  StratioEngineStatusException e) {
    throw new StreamingShellException(e);
  }
}

Fixed version (ground truth):
@CliCommand(value="String_Node_Str",help="String_Node_Str") public String saveMongoStop(@CliOption(key={"String_Node_Str"},help="String_Node_Str",mandatory=true,optionContext="String_Node_Str") final String streamName){
  try {
    ssaw.api().stopSaveToMongo(streamName);
    return "String_Node_Str".concat(streamName).concat("String_Node_Str");
  }
 catch (  StratioEngineStatusException|StratioEngineConnectionException e) {
    throw new StreamingShellException(e);
  }
}
Program: 112643
Project: 112643
Buggy source:
@CliCommand(value="String_Node_Str",help="String_Node_Str") public String saveCassandraStart(@CliOption(key={"String_Node_Str"},help="String_Node_Str",mandatory=true,optionContext="String_Node_Str") final String streamName){
  try {
    stratioStreamingApi.saveToCassandra(streamName);
    return "String_Node_Str".concat(streamName).concat("String_Node_Str");
  }
 catch (  StratioEngineStatusException e) {
    throw new StreamingShellException(e);
  }
}

Fixed version (ground truth):
@CliCommand(value="String_Node_Str",help="String_Node_Str") public String saveCassandraStart(@CliOption(key={"String_Node_Str"},help="String_Node_Str",mandatory=true,optionContext="String_Node_Str") final String streamName){
  try {
    ssaw.api().saveToCassandra(streamName);
    return "String_Node_Str".concat(streamName).concat("String_Node_Str");
  }
 catch (  StratioEngineStatusException|StratioEngineConnectionException e) {
    throw new StreamingShellException(e);
  }
}
Program: 112644
Project: 112644
Buggy source:
@CliCommand(value="String_Node_Str",help="String_Node_Str") public String listenStart(@CliOption(key={"String_Node_Str"},help="String_Node_Str",mandatory=true,optionContext="String_Node_Str") final String streamName){
  try {
    stratioStreamingApi.listenStream(streamName);
    return "String_Node_Str".concat(streamName).concat("String_Node_Str");
  }
 catch (  StratioEngineStatusException|StratioAPISecurityException e) {
    throw new StreamingShellException(e);
  }
}

Fixed version (ground truth):
@CliCommand(value="String_Node_Str",help="String_Node_Str") public String listenStart(@CliOption(key={"String_Node_Str"},help="String_Node_Str",mandatory=true,optionContext="String_Node_Str") final String streamName){
  try {
    ssaw.api().listenStream(streamName);
    return "String_Node_Str".concat(streamName).concat("String_Node_Str");
  }
 catch (  StratioEngineStatusException|StratioEngineConnectionException|StratioAPISecurityException e) {
    throw new StreamingShellException(e);
  }
}
Program: 112645
Project: 112645
Buggy source:
@CliCommand(value="String_Node_Str",help="String_Node_Str") public String indexStop(@CliOption(key={"String_Node_Str"},help="String_Node_Str",mandatory=true,optionContext="String_Node_Str") final String streamName){
  try {
    stratioStreamingApi.stopIndexStream(streamName);
    return "String_Node_Str".concat(streamName).concat("String_Node_Str");
  }
 catch (  StratioEngineStatusException e) {
    throw new StreamingShellException(e);
  }
}

Fixed version (ground truth):
@CliCommand(value="String_Node_Str",help="String_Node_Str") public String indexStop(@CliOption(key={"String_Node_Str"},help="String_Node_Str",mandatory=true,optionContext="String_Node_Str") final String streamName){
  try {
    ssaw.api().stopIndexStream(streamName);
    return "String_Node_Str".concat(streamName).concat("String_Node_Str");
  }
 catch (  StratioEngineStatusException|StratioEngineConnectionException e) {
    throw new StreamingShellException(e);
  }
}
Program: 112646
Project: 112646
Buggy source:
@CliCommand(value="String_Node_Str",help="String_Node_Str") public String saveCassandraStop(@CliOption(key={"String_Node_Str"},help="String_Node_Str",mandatory=true,optionContext="String_Node_Str") final String streamName){
  try {
    stratioStreamingApi.stopSaveToCassandra(streamName);
    return "String_Node_Str".concat(streamName).concat("String_Node_Str");
  }
 catch (  StratioEngineStatusException e) {
    throw new StreamingShellException(e);
  }
}

Fixed version (ground truth):
@CliCommand(value="String_Node_Str",help="String_Node_Str") public String saveCassandraStop(@CliOption(key={"String_Node_Str"},help="String_Node_Str",mandatory=true,optionContext="String_Node_Str") final String streamName){
  try {
    ssaw.api().stopSaveToCassandra(streamName);
    return "String_Node_Str".concat(streamName).concat("String_Node_Str");
  }
 catch (  StratioEngineStatusException|StratioEngineConnectionException e) {
    throw new StreamingShellException(e);
  }
}
Program: 112647
Project: 112647
Buggy source:
@CliCommand(value="String_Node_Str",help="String_Node_Str") public String indexStart(@CliOption(key={"String_Node_Str"},help="String_Node_Str",mandatory=true,optionContext="String_Node_Str") final String streamName){
  try {
    stratioStreamingApi.indexStream(streamName);
    return "String_Node_Str".concat(streamName).concat("String_Node_Str");
  }
 catch (  StratioEngineStatusException e) {
    throw new StreamingShellException(e);
  }
}

Fixed version (ground truth):
@CliCommand(value="String_Node_Str",help="String_Node_Str") public String indexStart(@CliOption(key={"String_Node_Str"},help="String_Node_Str",mandatory=true,optionContext="String_Node_Str") final String streamName){
  try {
    ssaw.api().indexStream(streamName);
    return "String_Node_Str".concat(streamName).concat("String_Node_Str");
  }
 catch (  StratioEngineStatusException|StratioEngineConnectionException e) {
    throw new StreamingShellException(e);
  }
}
Program: 112648
Project: 112648
Buggy source:
@CliCommand(value="String_Node_Str",help="String_Node_Str") public String listenStop(@CliOption(key={"String_Node_Str"},help="String_Node_Str",mandatory=true,optionContext="String_Node_Str") final String streamName){
  try {
    stratioStreamingApi.stopListenStream(streamName);
    return "String_Node_Str".concat(streamName).concat("String_Node_Str");
  }
 catch (  StratioEngineStatusException|StratioAPISecurityException e) {
    throw new StreamingShellException(e);
  }
}

Fixed version (ground truth):
@CliCommand(value="String_Node_Str",help="String_Node_Str") public String listenStop(@CliOption(key={"String_Node_Str"},help="String_Node_Str",mandatory=true,optionContext="String_Node_Str") final String streamName){
  try {
    ssaw.api().stopListenStream(streamName);
    return "String_Node_Str".concat(streamName).concat("String_Node_Str");
  }
 catch (  StratioEngineStatusException|StratioEngineConnectionException|StratioAPISecurityException e) {
    throw new StreamingShellException(e);
  }
}
Program: 112649
Project: 112649
Buggy source:
@CliCommand(value="String_Node_Str",help="String_Node_Str") public String drop(@CliOption(key={"String_Node_Str"},help="String_Node_Str",mandatory=true,optionContext="String_Node_Str") final String streamName,@CliOption(key={"String_Node_Str"},help="String_Node_Str",mandatory=true) final String queryId){
  try {
    stratioStreamingApi.removeQuery(streamName,queryId);
    return "String_Node_Str".concat(streamName).concat("String_Node_Str".concat(queryId));
  }
 catch (  StratioEngineStatusException|StratioEngineOperationException e) {
    throw new StreamingShellException(e);
  }
}

Fixed version (ground truth):
@CliCommand(value="String_Node_Str",help="String_Node_Str") public String drop(@CliOption(key={"String_Node_Str"},help="String_Node_Str",mandatory=true,optionContext="String_Node_Str") final String streamName,@CliOption(key={"String_Node_Str"},help="String_Node_Str",mandatory=true) final String queryId){
  try {
    ssaw.api().removeQuery(streamName,queryId);
    return "String_Node_Str".concat(streamName).concat("String_Node_Str".concat(queryId));
  }
 catch (  StratioEngineStatusException|StratioEngineOperationException|StratioEngineConnectionException e) {
    throw new StreamingShellException(e);
  }
}
Program: 112650
Project: 112650
Buggy source:
@CliCommand(value="String_Node_Str",help="String_Node_Str") public String create(@CliOption(key={"String_Node_Str"},help="String_Node_Str",mandatory=true,optionContext="String_Node_Str") final String streamName,@CliOption(key={"String_Node_Str"},help="String_Node_Str",mandatory=true) final String query){
  try {
    String queryId=stratioStreamingApi.addQuery(streamName,query);
    return "String_Node_Str".concat(streamName).concat("String_Node_Str".concat(queryId));
  }
 catch (  StratioEngineStatusException|StratioAPISecurityException|StratioEngineOperationException e) {
    throw new StreamingShellException(e);
  }
}

Fixed version (ground truth):
@CliCommand(value="String_Node_Str",help="String_Node_Str") public String create(@CliOption(key={"String_Node_Str"},help="String_Node_Str",mandatory=true,optionContext="String_Node_Str") final String streamName,@CliOption(key={"String_Node_Str"},help="String_Node_Str",mandatory=true) final String query){
  try {
    String queryId=ssaw.api().addQuery(streamName,query);
    return "String_Node_Str".concat(streamName).concat("String_Node_Str".concat(queryId));
  }
 catch (  StratioEngineStatusException|StratioAPISecurityException|StratioEngineOperationException|StratioEngineConnectionException e) {
    throw new StreamingShellException(e);
  }
}
Program: 112651
Project: 112651
Buggy source:
@CliCommand(value="String_Node_Str",help="String_Node_Str") public String listQuerys(@CliOption(key={"String_Node_Str"},help="String_Node_Str",mandatory=true,optionContext="String_Node_Str") final String streamName){
  try {
    List<ColumnNameTypeValue> columnsValues=stratioStreamingApi.columnsFromStream(streamName);
    List<String> columns=Arrays.asList("String_Node_Str","String_Node_Str");
    List<Map<String,Object>> data=new ArrayList<>();
    for (    ColumnNameTypeValue columnValue : columnsValues) {
      Map<String,Object> row=new HashMap<>();
      row.put("String_Node_Str",columnValue.getColumn());
      row.put("String_Node_Str",columnValue.getType());
      data.add(row);
    }
    return TableRenderer.renderMapDataAsTable(data,columns);
  }
 catch (  StratioEngineOperationException e) {
    throw new StreamingShellException(e);
  }
}

Fixed version (ground truth):
@CliCommand(value="String_Node_Str",help="String_Node_Str") public String listQuerys(@CliOption(key={"String_Node_Str"},help="String_Node_Str",mandatory=true,optionContext="String_Node_Str") final String streamName){
  try {
    List<ColumnNameTypeValue> columnsValues=ssaw.api().columnsFromStream(streamName);
    List<String> columns=Arrays.asList("String_Node_Str","String_Node_Str");
    List<Map<String,Object>> data=new ArrayList<>();
    for (    ColumnNameTypeValue columnValue : columnsValues) {
      Map<String,Object> row=new HashMap<>();
      row.put("String_Node_Str",columnValue.getColumn());
      row.put("String_Node_Str",columnValue.getType());
      data.add(row);
    }
    return TableRenderer.renderMapDataAsTable(data,columns);
  }
 catch (  StratioEngineOperationException|StratioEngineConnectionException e) {
    throw new StreamingShellException(e);
  }
}
Program: 112652
Project: 112652
Buggy source:
@CliCommand(value="String_Node_Str",help="String_Node_Str") public String insert(@CliOption(key={"String_Node_Str"},help="String_Node_Str",mandatory=true,optionContext="String_Node_Str") final String streamName,@CliOption(key={"String_Node_Str"},help="String_Node_Str",mandatory=true) final ColumnNameValueList columns){
  try {
    stratioStreamingApi.insertData(streamName,columns);
    return "String_Node_Str".concat(streamName).concat("String_Node_Str");
  }
 catch (  StratioEngineStatusException|StratioAPISecurityException e) {
    throw new StreamingShellException(e);
  }
}

Fixed version (ground truth):
@CliCommand(value="String_Node_Str",help="String_Node_Str") public String insert(@CliOption(key={"String_Node_Str"},help="String_Node_Str",mandatory=true,optionContext="String_Node_Str") final String streamName,@CliOption(key={"String_Node_Str"},help="String_Node_Str",mandatory=true) final ColumnNameValueList columns){
  try {
    ssaw.api().insertData(streamName,columns);
    return "String_Node_Str".concat(streamName).concat("String_Node_Str");
  }
 catch (  StratioEngineStatusException|StratioEngineConnectionException|StratioAPISecurityException e) {
    throw new StreamingShellException(e);
  }
}
Program: 112653
Project: 112653
Buggy source:
@CliCommand(value="String_Node_Str",help="String_Node_Str") public String alter(@CliOption(key={"String_Node_Str"},help="String_Node_Str",mandatory=true,optionContext="String_Node_Str") final String streamName,@CliOption(key={"String_Node_Str"},help="String_Node_Str",mandatory=true) final ColumnNameTypeList columns){
  try {
    stratioStreamingApi.alterStream(streamName,columns);
    return "String_Node_Str".concat(streamName).concat("String_Node_Str");
  }
 catch (  StratioEngineStatusException|StratioAPISecurityException|StratioEngineOperationException e) {
    throw new StreamingShellException(e);
  }
}

Fixed version (ground truth):
@CliCommand(value="String_Node_Str",help="String_Node_Str") public String alter(@CliOption(key={"String_Node_Str"},help="String_Node_Str",mandatory=true,optionContext="String_Node_Str") final String streamName,@CliOption(key={"String_Node_Str"},help="String_Node_Str",mandatory=true) final ColumnNameTypeList columns){
  try {
    ssaw.api().alterStream(streamName,columns);
    return "String_Node_Str".concat(streamName).concat("String_Node_Str");
  }
 catch (  StratioEngineStatusException|StratioEngineConnectionException|StratioAPISecurityException|StratioEngineOperationException e) {
    throw new StreamingShellException(e);
  }
}
Program: 112654
Project: 112654
Buggy source:
@CliCommand(value="String_Node_Str",help="String_Node_Str") public String saveMongoStart(@CliOption(key={"String_Node_Str"},help="String_Node_Str",mandatory=true,optionContext="String_Node_Str") final String streamName){
  try {
    ssaw.api().saveToMongo(streamName);
    return "String_Node_Str".concat(streamName).concat("String_Node_Str");
  }
 catch (  StratioEngineStatusException|StratioEngineConnectionException e) {
    throw new StreamingShellException(e);
  }
}

Fixed version (ground truth):
@CliCommand(value="String_Node_Str",help="String_Node_Str") public String saveMongoStart(@CliOption(key={"String_Node_Str"},help="String_Node_Str",mandatory=true,optionContext="String_Node_Str") final String streamName){
  try {
    ssaw.api().saveToMongo(streamName);
    return "String_Node_Str".concat(streamName).concat("String_Node_Str");
  }
 catch (  StratioStreamingException e) {
    throw new StreamingShellException(e);
  }
}
Program: 112655
Project: 112655
Buggy source:
@CliCommand(value="String_Node_Str",help="String_Node_Str") public String saveMongoStop(@CliOption(key={"String_Node_Str"},help="String_Node_Str",mandatory=true,optionContext="String_Node_Str") final String streamName){
  try {
    ssaw.api().stopSaveToMongo(streamName);
    return "String_Node_Str".concat(streamName).concat("String_Node_Str");
  }
 catch (  StratioEngineStatusException|StratioEngineConnectionException e) {
    throw new StreamingShellException(e);
  }
}

Fixed version (ground truth):
@CliCommand(value="String_Node_Str",help="String_Node_Str") public String saveMongoStop(@CliOption(key={"String_Node_Str"},help="String_Node_Str",mandatory=true,optionContext="String_Node_Str") final String streamName){
  try {
    ssaw.api().stopSaveToMongo(streamName);
    return "String_Node_Str".concat(streamName).concat("String_Node_Str");
  }
 catch (  StratioStreamingException e) {
    throw new StreamingShellException(e);
  }
}
Program: 112656
Project: 112656
Buggy source:
@CliCommand(value="String_Node_Str",help="String_Node_Str") public String saveCassandraStart(@CliOption(key={"String_Node_Str"},help="String_Node_Str",mandatory=true,optionContext="String_Node_Str") final String streamName){
  try {
    ssaw.api().saveToCassandra(streamName);
    return "String_Node_Str".concat(streamName).concat("String_Node_Str");
  }
 catch (  StratioEngineStatusException|StratioEngineConnectionException e) {
    throw new StreamingShellException(e);
  }
}

Fixed version (ground truth):
@CliCommand(value="String_Node_Str",help="String_Node_Str") public String saveCassandraStart(@CliOption(key={"String_Node_Str"},help="String_Node_Str",mandatory=true,optionContext="String_Node_Str") final String streamName){
  try {
    ssaw.api().saveToCassandra(streamName);
    return "String_Node_Str".concat(streamName).concat("String_Node_Str");
  }
 catch (  StratioStreamingException e) {
    throw new StreamingShellException(e);
  }
}
Program: 112657
Project: 112657
Buggy source:
@CliCommand(value="String_Node_Str",help="String_Node_Str") public String listenStart(@CliOption(key={"String_Node_Str"},help="String_Node_Str",mandatory=true,optionContext="String_Node_Str") final String streamName){
  try {
    ssaw.api().listenStream(streamName);
    return "String_Node_Str".concat(streamName).concat("String_Node_Str");
  }
 catch (  StratioEngineStatusException|StratioEngineConnectionException|StratioAPISecurityException e) {
    throw new StreamingShellException(e);
  }
}

Fixed version (ground truth):
@CliCommand(value="String_Node_Str",help="String_Node_Str") public String listenStart(@CliOption(key={"String_Node_Str"},help="String_Node_Str",mandatory=true,optionContext="String_Node_Str") final String streamName){
  try {
    ssaw.api().listenStream(streamName);
    return "String_Node_Str".concat(streamName).concat("String_Node_Str");
  }
 catch (  StratioStreamingException e) {
    throw new StreamingShellException(e);
  }
}
Program: 112658
Project: 112658
Buggy source:
@CliCommand(value="String_Node_Str",help="String_Node_Str") public String indexStop(@CliOption(key={"String_Node_Str"},help="String_Node_Str",mandatory=true,optionContext="String_Node_Str") final String streamName){
  try {
    ssaw.api().stopIndexStream(streamName);
    return "String_Node_Str".concat(streamName).concat("String_Node_Str");
  }
 catch (  StratioEngineStatusException|StratioEngineConnectionException e) {
    throw new StreamingShellException(e);
  }
}

Fixed version (ground truth):
@CliCommand(value="String_Node_Str",help="String_Node_Str") public String indexStop(@CliOption(key={"String_Node_Str"},help="String_Node_Str",mandatory=true,optionContext="String_Node_Str") final String streamName){
  try {
    ssaw.api().stopIndexStream(streamName);
    return "String_Node_Str".concat(streamName).concat("String_Node_Str");
  }
 catch (  StratioStreamingException e) {
    throw new StreamingShellException(e);
  }
}
Program: 112659
Project: 112659
Buggy source:
@CliCommand(value="String_Node_Str",help="String_Node_Str") public String saveCassandraStop(@CliOption(key={"String_Node_Str"},help="String_Node_Str",mandatory=true,optionContext="String_Node_Str") final String streamName){
  try {
    ssaw.api().stopSaveToCassandra(streamName);
    return "String_Node_Str".concat(streamName).concat("String_Node_Str");
  }
 catch (  StratioEngineStatusException|StratioEngineConnectionException e) {
    throw new StreamingShellException(e);
  }
}

Fixed version (ground truth):
@CliCommand(value="String_Node_Str",help="String_Node_Str") public String saveCassandraStop(@CliOption(key={"String_Node_Str"},help="String_Node_Str",mandatory=true,optionContext="String_Node_Str") final String streamName){
  try {
    ssaw.api().stopSaveToCassandra(streamName);
    return "String_Node_Str".concat(streamName).concat("String_Node_Str");
  }
 catch (  StratioStreamingException e) {
    throw new StreamingShellException(e);
  }
}
Program: 112660
Project: 112660
Buggy source:
@CliCommand(value="String_Node_Str",help="String_Node_Str") public String indexStart(@CliOption(key={"String_Node_Str"},help="String_Node_Str",mandatory=true,optionContext="String_Node_Str") final String streamName){
  try {
    ssaw.api().indexStream(streamName);
    return "String_Node_Str".concat(streamName).concat("String_Node_Str");
  }
 catch (  StratioEngineStatusException|StratioEngineConnectionException e) {
    throw new StreamingShellException(e);
  }
}

Fixed version (ground truth):
@CliCommand(value="String_Node_Str",help="String_Node_Str") public String indexStart(@CliOption(key={"String_Node_Str"},help="String_Node_Str",mandatory=true,optionContext="String_Node_Str") final String streamName){
  try {
    ssaw.api().indexStream(streamName);
    return "String_Node_Str".concat(streamName).concat("String_Node_Str");
  }
 catch (  StratioStreamingException e) {
    throw new StreamingShellException(e);
  }
}
Program: 112661
Project: 112661
Buggy source:
@CliCommand(value="String_Node_Str",help="String_Node_Str") public String listenStop(@CliOption(key={"String_Node_Str"},help="String_Node_Str",mandatory=true,optionContext="String_Node_Str") final String streamName){
  try {
    ssaw.api().stopListenStream(streamName);
    return "String_Node_Str".concat(streamName).concat("String_Node_Str");
  }
 catch (  StratioEngineStatusException|StratioEngineConnectionException|StratioAPISecurityException e) {
    throw new StreamingShellException(e);
  }
}

Fixed version (ground truth):
@CliCommand(value="String_Node_Str",help="String_Node_Str") public String listenStop(@CliOption(key={"String_Node_Str"},help="String_Node_Str",mandatory=true,optionContext="String_Node_Str") final String streamName){
  try {
    ssaw.api().stopListenStream(streamName);
    return "String_Node_Str".concat(streamName).concat("String_Node_Str");
  }
 catch (  StratioStreamingException e) {
    throw new StreamingShellException(e);
  }
}
Program: 112662
Project: 112662
Buggy source:
@CliCommand(value="String_Node_Str",help="String_Node_Str") public String drop(@CliOption(key={"String_Node_Str"},help="String_Node_Str",mandatory=true,optionContext="String_Node_Str") final String streamName,@CliOption(key={"String_Node_Str"},help="String_Node_Str",mandatory=true) final String queryId){
  try {
    ssaw.api().removeQuery(streamName,queryId);
    return "String_Node_Str".concat(streamName).concat("String_Node_Str".concat(queryId));
  }
 catch (  StratioEngineStatusException|StratioEngineOperationException|StratioEngineConnectionException e) {
    throw new StreamingShellException(e);
  }
}

Fixed version (ground truth):
@CliCommand(value="String_Node_Str",help="String_Node_Str") public String drop(@CliOption(key={"String_Node_Str"},help="String_Node_Str",mandatory=true,optionContext="String_Node_Str") final String streamName,@CliOption(key={"String_Node_Str"},help="String_Node_Str",mandatory=true) final String queryId){
  try {
    ssaw.api().removeQuery(streamName,queryId);
    return "String_Node_Str".concat(streamName).concat("String_Node_Str".concat(queryId));
  }
 catch (  StratioStreamingException e) {
    throw new StreamingShellException(e);
  }
}
Program: 112663
Project: 112663
Buggy source:
@CliCommand(value="String_Node_Str",help="String_Node_Str") public String create(@CliOption(key={"String_Node_Str"},help="String_Node_Str",mandatory=true,optionContext="String_Node_Str") final String streamName,@CliOption(key={"String_Node_Str"},help="String_Node_Str",mandatory=true) final String query){
  try {
    String queryId=ssaw.api().addQuery(streamName,query);
    return "String_Node_Str".concat(streamName).concat("String_Node_Str".concat(queryId));
  }
 catch (  StratioEngineStatusException|StratioAPISecurityException|StratioEngineOperationException|StratioEngineConnectionException e) {
    throw new StreamingShellException(e);
  }
}

Fixed version (ground truth):
@CliCommand(value="String_Node_Str",help="String_Node_Str") public String create(@CliOption(key={"String_Node_Str"},help="String_Node_Str",mandatory=true,optionContext="String_Node_Str") final String streamName,@CliOption(key={"String_Node_Str"},help="String_Node_Str",mandatory=true) final String query){
  try {
    String queryId=ssaw.api().addQuery(streamName,query);
    return "String_Node_Str".concat(streamName).concat("String_Node_Str".concat(queryId));
  }
 catch (  StratioStreamingException e) {
    throw new StreamingShellException(e);
  }
}
Program: 112664
Project: 112664
Buggy source:
@CliCommand(value="String_Node_Str",help="String_Node_Str") public String drop(@CliOption(key={"String_Node_Str"},help="String_Node_Str",mandatory=true,optionContext="String_Node_Str") final String streamName){
  try {
    cachedStreamsDAO.dropStream(streamName);
    return "String_Node_Str".concat(streamName).concat("String_Node_Str");
  }
 catch (  StratioEngineStatusException|StratioAPISecurityException|StratioEngineOperationException|StratioEngineConnectionException e) {
    throw new StreamingShellException(e);
  }
}

Fixed version (ground truth):
@CliCommand(value="String_Node_Str",help="String_Node_Str") public String drop(@CliOption(key={"String_Node_Str"},help="String_Node_Str",mandatory=true,optionContext="String_Node_Str") final String streamName){
  try {
    cachedStreamsDAO.dropStream(streamName);
    return "String_Node_Str".concat(streamName).concat("String_Node_Str");
  }
 catch (  StratioStreamingException e) {
    throw new StreamingShellException(e);
  }
}
Program: 112665
Project: 112665
Buggy source:
@CliCommand(value="String_Node_Str",help="String_Node_Str") public String listQuerys(@CliOption(key={"String_Node_Str"},help="String_Node_Str",mandatory=true,optionContext="String_Node_Str") final String streamName){
  try {
    List<ColumnNameTypeValue> columnsValues=ssaw.api().columnsFromStream(streamName);
    List<String> columns=Arrays.asList("String_Node_Str","String_Node_Str");
    List<Map<String,Object>> data=new ArrayList<>();
    for (    ColumnNameTypeValue columnValue : columnsValues) {
      Map<String,Object> row=new HashMap<>();
      row.put("String_Node_Str",columnValue.getColumn());
      row.put("String_Node_Str",columnValue.getType());
      data.add(row);
    }
    return TableRenderer.renderMapDataAsTable(data,columns);
  }
 catch (  StratioEngineOperationException|StratioEngineConnectionException e) {
    throw new StreamingShellException(e);
  }
}

Fixed version (ground truth):
@CliCommand(value="String_Node_Str",help="String_Node_Str") public String listQuerys(@CliOption(key={"String_Node_Str"},help="String_Node_Str",mandatory=true,optionContext="String_Node_Str") final String streamName){
  try {
    List<ColumnNameTypeValue> columnsValues=ssaw.api().columnsFromStream(streamName);
    List<String> columns=Arrays.asList("String_Node_Str","String_Node_Str");
    List<Map<String,Object>> data=new ArrayList<>();
    for (    ColumnNameTypeValue columnValue : columnsValues) {
      Map<String,Object> row=new HashMap<>();
      row.put("String_Node_Str",columnValue.getColumn());
      row.put("String_Node_Str",columnValue.getType());
      data.add(row);
    }
    return TableRenderer.renderMapDataAsTable(data,columns);
  }
 catch (  StratioStreamingException e) {
    throw new StreamingShellException(e);
  }
}
Program: 112666
Project: 112666
Buggy source:
@CliCommand(value="String_Node_Str",help="String_Node_Str") public String create(@CliOption(key={"String_Node_Str"},help="String_Node_Str",mandatory=true) final String streamName,@CliOption(key={"String_Node_Str"},help="String_Node_Str",mandatory=true) final ColumnNameTypeList columns){
  try {
    cachedStreamsDAO.newStream(streamName,columns);
    return "String_Node_Str".concat(streamName).concat("String_Node_Str");
  }
 catch (  StratioEngineStatusException|StratioAPISecurityException|StratioEngineOperationException|StratioEngineConnectionException e) {
    throw new StreamingShellException(e);
  }
}

Fixed version (ground truth):
@CliCommand(value="String_Node_Str",help="String_Node_Str") public String create(@CliOption(key={"String_Node_Str"},help="String_Node_Str",mandatory=true) final String streamName,@CliOption(key={"String_Node_Str"},help="String_Node_Str",mandatory=true) final ColumnNameTypeList columns){
  try {
    cachedStreamsDAO.newStream(streamName,columns);
    return "String_Node_Str".concat(streamName).concat("String_Node_Str");
  }
 catch (  StratioStreamingException e) {
    throw new StreamingShellException(e);
  }
}
Program: 112667
Project: 112667
Buggy source:
@CliCommand(value="String_Node_Str",help="String_Node_Str") public String insert(@CliOption(key={"String_Node_Str"},help="String_Node_Str",mandatory=true,optionContext="String_Node_Str") final String streamName,@CliOption(key={"String_Node_Str"},help="String_Node_Str",mandatory=true) final ColumnNameValueList columns){
  try {
    ssaw.api().insertData(streamName,columns);
    return "String_Node_Str".concat(streamName).concat("String_Node_Str");
  }
 catch (  StratioEngineStatusException|StratioEngineConnectionException|StratioAPISecurityException e) {
    throw new StreamingShellException(e);
  }
}

Fixed version (ground truth):
@CliCommand(value="String_Node_Str",help="String_Node_Str") public String insert(@CliOption(key={"String_Node_Str"},help="String_Node_Str",mandatory=true,optionContext="String_Node_Str") final String streamName,@CliOption(key={"String_Node_Str"},help="String_Node_Str",mandatory=true) final ColumnNameValueList columns){
  try {
    ssaw.api().insertData(streamName,columns);
    return "String_Node_Str".concat(streamName).concat("String_Node_Str");
  }
 catch (  StratioStreamingException e) {
    throw new StreamingShellException(e);
  }
}
Program: 112668
Project: 112668
Buggy source:
@CliCommand(value="String_Node_Str",help="String_Node_Str") public String alter(@CliOption(key={"String_Node_Str"},help="String_Node_Str",mandatory=true,optionContext="String_Node_Str") final String streamName,@CliOption(key={"String_Node_Str"},help="String_Node_Str",mandatory=true) final ColumnNameTypeList columns){
  try {
    ssaw.api().alterStream(streamName,columns);
    return "String_Node_Str".concat(streamName).concat("String_Node_Str");
  }
 catch (  StratioEngineStatusException|StratioEngineConnectionException|StratioAPISecurityException|StratioEngineOperationException e) {
    throw new StreamingShellException(e);
  }
}

Fixed version (ground truth):
@CliCommand(value="String_Node_Str",help="String_Node_Str") public String alter(@CliOption(key={"String_Node_Str"},help="String_Node_Str",mandatory=true,optionContext="String_Node_Str") final String streamName,@CliOption(key={"String_Node_Str"},help="String_Node_Str",mandatory=true) final ColumnNameTypeList columns){
  try {
    ssaw.api().alterStream(streamName,columns);
    return "String_Node_Str".concat(streamName).concat("String_Node_Str");
  }
 catch (  StratioStreamingException e) {
    throw new StreamingShellException(e);
  }
}
Program: 112670
Project: 112670
Buggy source:
public CassandraPersistenceStoreModel(Map<String,StreamStatusDTO> streamStatuses,byte[] siddhiSnapshot){
  this.streamStatuses=streamStatuses;
  this.siddhiSnapshot=siddhiSnapshot;
}

Fixed version (ground truth):
public CassandraPersistenceStoreModel(Map<String,StreamStatusDTO> streamStatuses,byte[] siddhiSnapshot){
  this.streamStatuses=streamStatuses;
  this.siddhiSnapshot=siddhiSnapshot.clone();
}
Program: 112671
Project: 112671
Buggy source:
@Override protected boolean startAction(StratioStreamingMessage message) throws RequestValidationException {
  List<StratioStreamingMessage> existingStreams=getStreamOperationService().list();
  try {
    ZKUtils.getZKUtils(getZookeeperHost()).createZNodeJsonReply(message,new ListStreamsMessage(existingStreams.size(),System.currentTimeMillis(),existingStreams));
  }
 catch (  Exception e) {
    throw new RequestValidationException(ReplyCode.KO_GENERAL_ERROR.getCode(),e);
  }
  return false;
}

Fixed version (ground truth):
@Override protected boolean startAction(StratioStreamingMessage message) throws RequestValidationException {
  List<StratioStreamingMessage> existingStreams=getStreamOperationService().list();
  try {
    ZKUtils.getZKUtils(getZookeeperHost()).createZNodeJsonReply(message,new ListStreamsMessage(existingStreams.size(),System.currentTimeMillis(),existingStreams));
  }
 catch (  Exception e) {
    throw new RequestValidationException(ReplyCode.KO_GENERAL_ERROR.getCode(),e.getMessage());
  }
  return false;
}
Program: 112673
Project: 112673
Buggy source:
@Override public void receive(Event[] events){
  if (running) {
    List<StratioStreamingMessage> collected_events=Lists.newArrayList();
    for (    Event e : events) {
      if (e instanceof InEvent) {
        InEvent ie=(InEvent)e;
        List<ColumnNameTypeValue> columns=Lists.newArrayList();
        for (        Attribute column : streamDefinition.getAttributeList()) {
          if (ie.getData().length >= streamDefinition.getAttributePosition(column.getName()) + 1) {
            columns.add(new ColumnNameTypeValue(column.getName(),SiddhiUtils.encodeSiddhiType(column.getType()),ie.getData(streamDefinition.getAttributePosition(column.getName()))));
          }
        }
        collected_events.add(new StratioStreamingMessage(streamDefinition.getStreamId(),ie.getTimeStamp(),columns));
      }
    }
    persistEventsToCassandra(collected_events);
  }
}

Fixed version (ground truth):
@Override public void receive(Event[] events){
  if (running) {
    List<StratioStreamingMessage> collectedEvents=Lists.newArrayList();
    for (    Event e : events) {
      if (e instanceof InEvent) {
        InEvent ie=(InEvent)e;
        List<ColumnNameTypeValue> columns=Lists.newArrayList();
        for (        Attribute column : streamDefinition.getAttributeList()) {
          if (ie.getData().length >= streamDefinition.getAttributePosition(column.getName()) + 1) {
            columns.add(new ColumnNameTypeValue(column.getName(),SiddhiUtils.encodeSiddhiType(column.getType()),ie.getData(streamDefinition.getAttributePosition(column.getName()))));
          }
        }
        collectedEvents.add(new StratioStreamingMessage(streamDefinition.getStreamId(),ie.getTimeStamp(),columns));
      }
    }
    persistEventsToCassandra(collectedEvents);
  }
}
Program: 112674
Project: 112674
Buggy source:
private void persistEventsToCassandra(List<StratioStreamingMessage> collected_events){
  List<Insert> statements=Lists.newArrayList();
  HashMap<String,String> fieldsAndTypes=getStreamFieldsAndTypes();
  for (  StratioStreamingMessage event : collected_events) {
    if (fieldsAndTypes.size() > (cassandraSession.getCluster().getMetadata().getKeyspace(STREAMING.STREAMING_KEYSPACE_NAME).getTable(streamDefinition.getStreamId()).getColumns().size() - 1)) {
      logger.debug("String_Node_Str" + generateCassandraAlterTableForStream());
      cassandraSession.execute(generateCassandraAlterTableForStream());
    }
    Object[] values=new Object[event.getColumns().size() + 1];
    String[] fields=new String[fieldsAndTypes.size() + 1];
    fields[0]="String_Node_Str";
    values[0]=UUIDs.startOf(System.currentTimeMillis());
    int i=1;
    for (    String field : fieldsAndTypes.keySet()) {
      fields[i]=field;
      values[i]=event.getColumns().get(event.getColumns().indexOf(new ColumnNameTypeValue(field,null,null))).getValue();
      i++;
    }
    Insert hola=com.datastax.driver.core.querybuilder.QueryBuilder.insertInto(STREAMING.STREAMING_KEYSPACE_NAME,streamDefinition.getStreamId()).values(fields,values);
    logger.debug("String_Node_Str" + hola.getQueryString());
    statements.add(hola);
  }
  for (  Insert statement : statements) {
    cassandraSession.execute(statement);
  }
}

Fixed version (ground truth):
private void persistEventsToCassandra(List<StratioStreamingMessage> collectedEvents){
  List<Insert> statements=Lists.newArrayList();
  HashMap<String,String> fieldsAndTypes=getStreamFieldsAndTypes();
  for (  StratioStreamingMessage event : collectedEvents) {
    if (fieldsAndTypes.size() > (cassandraSession.getCluster().getMetadata().getKeyspace(STREAMING.STREAMING_KEYSPACE_NAME).getTable(streamDefinition.getStreamId()).getColumns().size() - 1)) {
      logger.debug("String_Node_Str" + generateCassandraAlterTableForStream());
      cassandraSession.execute(generateCassandraAlterTableForStream());
    }
    Object[] values=new Object[event.getColumns().size() + 1];
    String[] fields=new String[fieldsAndTypes.size() + 1];
    fields[0]="String_Node_Str";
    values[0]=UUIDs.startOf(System.currentTimeMillis());
    int i=1;
    for (    String field : fieldsAndTypes.keySet()) {
      fields[i]=field;
      values[i]=event.getColumns().get(event.getColumns().indexOf(new ColumnNameTypeValue(field,null,null))).getValue();
      i++;
    }
    Insert hola=com.datastax.driver.core.querybuilder.QueryBuilder.insertInto(STREAMING.STREAMING_KEYSPACE_NAME,streamDefinition.getStreamId()).values(fields,values);
    logger.debug("String_Node_Str" + hola.getQueryString());
    statements.add(hola);
  }
  for (  Insert statement : statements) {
    cassandraSession.execute(statement);
  }
}
Program: 112675
Project: 112675
Buggy source:
@Override public void receive(Event[] events){
  if (running) {
    List<StratioStreamingMessage> collected_events=Lists.newArrayList();
    for (    Event e : events) {
      if (e instanceof InEvent) {
        InEvent ie=(InEvent)e;
        List<ColumnNameTypeValue> columns=Lists.newArrayList();
        for (        Attribute column : streamDefinition.getAttributeList()) {
          if (ie.getData().length >= streamDefinition.getAttributePosition(column.getName()) + 1) {
            columns.add(new ColumnNameTypeValue(column.getName(),SiddhiUtils.encodeSiddhiType(column.getType()),ie.getData(streamDefinition.getAttributePosition(column.getName()))));
          }
        }
        collected_events.add(new StratioStreamingMessage(streamDefinition.getStreamId(),ie.getTimeStamp(),columns));
      }
    }
    persistEventsToMongo(collected_events);
  }
}

Fixed version (ground truth):
@Override public void receive(Event[] events){
  if (running) {
    List<StratioStreamingMessage> collectedEvents=Lists.newArrayList();
    for (    Event e : events) {
      if (e instanceof InEvent) {
        InEvent ie=(InEvent)e;
        List<ColumnNameTypeValue> columns=Lists.newArrayList();
        for (        Attribute column : streamDefinition.getAttributeList()) {
          if (ie.getData().length >= streamDefinition.getAttributePosition(column.getName()) + 1) {
            columns.add(new ColumnNameTypeValue(column.getName(),SiddhiUtils.encodeSiddhiType(column.getType()),ie.getData(streamDefinition.getAttributePosition(column.getName()))));
          }
        }
        collectedEvents.add(new StratioStreamingMessage(streamDefinition.getStreamId(),ie.getTimeStamp(),columns));
      }
    }
    persistEventsToMongo(collectedEvents);
  }
}