Program: 8584
Project: 8584
Buggy source:
public void composeJobs() throws IOException {
  if (this.jobs.size() == 0) {
    return;
  }
  final String hadoopFileJar;
  if (new File("String_Node_Str" + Tokens.FAUNUS_JOB_JAR).exists())   hadoopFileJar="String_Node_Str" + Tokens.FAUNUS_JOB_JAR;
 else   if (new File("String_Node_Str" + Tokens.FAUNUS_JOB_JAR).exists())   hadoopFileJar="String_Node_Str" + Tokens.FAUNUS_JOB_JAR;
 else   if (new File("String_Node_Str" + Tokens.FAUNUS_JOB_JAR).exists())   hadoopFileJar="String_Node_Str" + Tokens.FAUNUS_JOB_JAR;
 else   throw new IllegalStateException("String_Node_Str" + Tokens.FAUNUS_JOB_JAR);
  if (this.pathEnabled)   logger.warn("String_Node_Str");
  for (  final Job job : this.jobs) {
    job.getConfiguration().setBoolean(PATH_ENABLED,this.pathEnabled);
    job.getConfiguration().set("String_Node_Str",hadoopFileJar);
  }
  final FileSystem hdfs=FileSystem.get(this.graph.getConfiguration());
  final String outputJobPrefix=this.graph.getOutputLocation().getName() + "String_Node_Str" + Tokens.JOB;
  hdfs.mkdirs(new Path(this.graph.getOutputLocation().getName()));
  if (FileInputFormat.class.isAssignableFrom(this.graph.getGraphInputFormat())) {
    FileInputFormat.setInputPaths(this.jobs.get(0),this.graph.getInputLocation());
    FileInputFormat.setInputPathFilter(this.jobs.get(0),GraphFilter.class);
  }
 else   if (this.graph.getGraphInputFormat().equals(RexsterInputFormat.class)) {
  }
 else   if (this.graph.getGraphInputFormat().equals(TitanCassandraInputFormat.class)) {
    ConfigHelper.setInputColumnFamily(this.jobs.get(0).getConfiguration(),ConfigHelper.getInputKeyspace(this.graph.getConfiguration()),"String_Node_Str");
    final SlicePredicate predicate=new SlicePredicate();
    final SliceRange sliceRange=new SliceRange();
    sliceRange.setStart(new byte[0]);
    sliceRange.setFinish(new byte[0]);
    predicate.setSlice_range(sliceRange);
    ConfigHelper.setInputSlicePredicate(this.jobs.get(0).getConfiguration(),predicate);
  }
 else   throw new IOException(this.graph.getGraphInputFormat().getName() + "String_Node_Str");
  for (int i=0; i < this.jobs.size(); i++) {
    final Job job=this.jobs.get(i);
    final Path path=new Path(outputJobPrefix + "String_Node_Str" + i);
    FileOutputFormat.setOutputPath(job,path);
    if (i == 0) {
      job.setInputFormatClass(this.graph.getGraphInputFormat());
    }
 else {
      job.setInputFormatClass(INTERMEDIATE_INPUT_FORMAT);
      FileInputFormat.setInputPathFilter(job,GraphFilter.class);
      FileInputFormat.addInputPath(job,new Path(outputJobPrefix + "String_Node_Str" + (i - 1)));
    }
    if (i == this.jobs.size() - 1) {
      MultipleOutputs.addNamedOutput(job,Tokens.SIDEEFFECT,this.graph.getSideEffectOutputFormat(),job.getOutputKeyClass(),job.getOutputKeyClass());
      MultipleOutputs.addNamedOutput(job,Tokens.GRAPH,this.graph.getGraphOutputFormat(),NullWritable.class,FaunusVertex.class);
      LazyOutputFormat.setOutputFormatClass(job,this.graph.getGraphOutputFormat());
    }
 else {
      MultipleOutputs.addNamedOutput(job,Tokens.SIDEEFFECT,this.graph.getSideEffectOutputFormat(),job.getOutputKeyClass(),job.getOutputKeyClass());
      MultipleOutputs.addNamedOutput(job,Tokens.GRAPH,INTERMEDIATE_OUTPUT_FORMAT,NullWritable.class,FaunusVertex.class);
      LazyOutputFormat.setOutputFormatClass(job,INTERMEDIATE_OUTPUT_FORMAT);
    }
    SequenceFileOutputFormat.setCompressOutput(job,true);
    SequenceFileOutputFormat.setOutputCompressorClass(job,BZip2Codec.class);
    SequenceFileOutputFormat.setOutputCompressionType(job,SequenceFile.CompressionType.BLOCK);
  }
}

Fixed version (ground truth):
public void composeJobs() throws IOException {
  if (this.jobs.size() == 0) {
    return;
  }
  final String hadoopFileJar;
  if (new File("String_Node_Str" + Tokens.FAUNUS_JOB_JAR).exists())   hadoopFileJar="String_Node_Str" + Tokens.FAUNUS_JOB_JAR;
 else   if (new File("String_Node_Str" + Tokens.FAUNUS_JOB_JAR).exists())   hadoopFileJar="String_Node_Str" + Tokens.FAUNUS_JOB_JAR;
 else   if (new File("String_Node_Str" + Tokens.FAUNUS_JOB_JAR).exists())   hadoopFileJar="String_Node_Str" + Tokens.FAUNUS_JOB_JAR;
 else   throw new IllegalStateException("String_Node_Str" + Tokens.FAUNUS_JOB_JAR);
  if (this.pathEnabled)   logger.warn("String_Node_Str");
  for (  final Job job : this.jobs) {
    job.getConfiguration().setBoolean(PATH_ENABLED,this.pathEnabled);
    job.getConfiguration().set("String_Node_Str",hadoopFileJar);
  }
  final FileSystem hdfs=FileSystem.get(this.graph.getConfiguration());
  final String outputJobPrefix=this.graph.getOutputLocation().getName() + "String_Node_Str" + Tokens.JOB;
  hdfs.mkdirs(new Path(this.graph.getOutputLocation().getName()));
  if (FileInputFormat.class.isAssignableFrom(this.graph.getGraphInputFormat())) {
    FileInputFormat.setInputPaths(this.jobs.get(0),this.graph.getInputLocation());
    FileInputFormat.setInputPathFilter(this.jobs.get(0),NoSideEffectFilter.class);
  }
 else   if (this.graph.getGraphInputFormat().equals(RexsterInputFormat.class)) {
  }
 else   if (this.graph.getGraphInputFormat().equals(TitanCassandraInputFormat.class)) {
    ConfigHelper.setInputColumnFamily(this.jobs.get(0).getConfiguration(),ConfigHelper.getInputKeyspace(this.graph.getConfiguration()),"String_Node_Str");
    final SlicePredicate predicate=new SlicePredicate();
    final SliceRange sliceRange=new SliceRange();
    sliceRange.setStart(new byte[0]);
    sliceRange.setFinish(new byte[0]);
    predicate.setSlice_range(sliceRange);
    ConfigHelper.setInputSlicePredicate(this.jobs.get(0).getConfiguration(),predicate);
  }
 else   throw new IOException(this.graph.getGraphInputFormat().getName() + "String_Node_Str");
  for (int i=0; i < this.jobs.size(); i++) {
    final Job job=this.jobs.get(i);
    final Path path=new Path(outputJobPrefix + "String_Node_Str" + i);
    FileOutputFormat.setOutputPath(job,path);
    if (i == 0) {
      job.setInputFormatClass(this.graph.getGraphInputFormat());
    }
 else {
      job.setInputFormatClass(INTERMEDIATE_INPUT_FORMAT);
      FileInputFormat.setInputPathFilter(job,GraphFilter.class);
      FileInputFormat.addInputPath(job,new Path(outputJobPrefix + "String_Node_Str" + (i - 1)));
    }
    if (i == this.jobs.size() - 1) {
      MultipleOutputs.addNamedOutput(job,Tokens.SIDEEFFECT,this.graph.getSideEffectOutputFormat(),job.getOutputKeyClass(),job.getOutputKeyClass());
      MultipleOutputs.addNamedOutput(job,Tokens.GRAPH,this.graph.getGraphOutputFormat(),NullWritable.class,FaunusVertex.class);
      LazyOutputFormat.setOutputFormatClass(job,this.graph.getGraphOutputFormat());
    }
 else {
      MultipleOutputs.addNamedOutput(job,Tokens.SIDEEFFECT,this.graph.getSideEffectOutputFormat(),job.getOutputKeyClass(),job.getOutputKeyClass());
      MultipleOutputs.addNamedOutput(job,Tokens.GRAPH,INTERMEDIATE_OUTPUT_FORMAT,NullWritable.class,FaunusVertex.class);
      LazyOutputFormat.setOutputFormatClass(job,INTERMEDIATE_OUTPUT_FORMAT);
    }
    SequenceFileOutputFormat.setCompressOutput(job,true);
    SequenceFileOutputFormat.setOutputCompressorClass(job,BZip2Codec.class);
    SequenceFileOutputFormat.setOutputCompressionType(job,SequenceFile.CompressionType.BLOCK);
  }
}