Program: 188918
Project: 188918
Buggy source:
private ReturnValue inject(RunInfo run) throws Exception {
  int sequencerRunAccession=createRun(run);
  Set<LaneInfo> lanes=run.getLanes();
  List<Lane> existingLanes=metadata.getLanesFrom(sequencerRunAccession);
  if (existingLanes != null && !existingLanes.isEmpty() && interactive) {
    Boolean yorn=ConsoleAdapter.getInstance().promptBoolean("String_Node_Str" + existingLanes.size() + "String_Node_Str",Boolean.TRUE);
    if (yorn.equals(Boolean.FALSE)) {
      throw new Exception("String_Node_Str" + sequencerRunAccession + "String_Node_Str");
    }
  }
  int studyAccession=retrieveStudy(run);
  int experimentAccession=retrieveExperiment(run,studyAccession);
  List<Sample> parentSamples=metadata.getSamplesFrom(experimentAccession);
  Log.debug("String_Node_Str" + studyAccession + "String_Node_Str"+ experimentAccession+ "String_Node_Str"+ sequencerRunAccession);
  for (  LaneInfo lane : lanes) {
    Log.stdout("String_Node_Str" + lane.getLaneNumber());
    int laneAccession=createLane(lane,sequencerRunAccession);
    for (    SampleInfo barcode : lane.getSamples()) {
      Integer parentSampleAcc=retrieveParentSampleAccession(parentSamples,barcode,experimentAccession);
      Log.debug("String_Node_Str" + laneAccession + "String_Node_Str"+ parentSampleAcc);
      int tissueTypeSampleAcc=retrieveTissueTypeSampleAccession(parentSampleAcc,barcode);
      Log.debug("String_Node_Str" + tissueTypeSampleAcc);
      int librarySampleNameAcc=createLibrarySample(barcode,tissueTypeSampleAcc);
      int barcodeAcc=createIUS(barcode,laneAccession,librarySampleNameAcc);
    }
  }
  return ret;
}

Fixed version (ground truth):
private ReturnValue inject(RunInfo run) throws Exception {
  int sequencerRunAccession=createRun(run);
  Set<LaneInfo> lanes=run.getLanes();
  List<Lane> existingLanes=metadata.getLanesFrom(sequencerRunAccession);
  if (existingLanes != null && !existingLanes.isEmpty() && interactive) {
    Boolean yorn=ConsoleAdapter.getInstance().promptBoolean("String_Node_Str" + existingLanes.size() + "String_Node_Str",Boolean.TRUE);
    if (yorn.equals(Boolean.FALSE)) {
      throw new Exception("String_Node_Str" + sequencerRunAccession + "String_Node_Str");
    }
  }
  int studyAccession=retrieveStudy(run);
  int experimentAccession=retrieveExperiment(run,studyAccession);
  Log.debug("String_Node_Str" + studyAccession + "String_Node_Str"+ experimentAccession+ "String_Node_Str"+ sequencerRunAccession);
  for (  LaneInfo lane : lanes) {
    Log.stdout("String_Node_Str" + lane.getLaneNumber());
    int laneAccession=createLane(lane,sequencerRunAccession);
    for (    SampleInfo barcode : lane.getSamples()) {
      List<Sample> parentSamples=metadata.getSamplesFrom(experimentAccession);
      Integer parentSampleAcc=retrieveParentSampleAccession(parentSamples,barcode,experimentAccession);
      Log.debug("String_Node_Str" + laneAccession + "String_Node_Str"+ parentSampleAcc);
      int tissueTypeSampleAcc=retrieveTissueTypeSampleAccession(parentSampleAcc,barcode);
      Log.debug("String_Node_Str" + tissueTypeSampleAcc);
      int librarySampleNameAcc=createLibrarySample(barcode,tissueTypeSampleAcc);
      int barcodeAcc=createIUS(barcode,laneAccession,librarySampleNameAcc);
    }
  }
  return ret;
}