Program: 53384
Project: 53384
Buggy source:
/** 
 * Getting the stream with the right corpus format.
 * @param inputData the input data
 * @param aLang the language
 * @param aCorpusFormat the corpus format
 * @return the stream from the several corpus formats
 * @throws IOException the io exception
 */
public static ObjectStream<NameSample> getNameStream(final String inputData,final String aLang,final String aCorpusFormat) throws IOException {
  ObjectStream<NameSample> samples=null;
  if (aCorpusFormat.equalsIgnoreCase("String_Node_Str")) {
    ObjectStream<String> nameStream=InputOutputUtils.readInputData(inputData);
    if (aLang.equalsIgnoreCase("String_Node_Str")) {
      samples=new Conll03NameSampleStream(Conll03NameSampleStream.LANGUAGE.EN,nameStream,types);
    }
 else     if (aLang.equalsIgnoreCase("String_Node_Str")) {
      samples=new Conll03NameSampleStream(Conll03NameSampleStream.LANGUAGE.DE,nameStream,types);
    }
  }
 else   if (aCorpusFormat.equalsIgnoreCase("String_Node_Str")) {
    ObjectStream<String> nameStream=InputOutputUtils.readInputData(inputData);
    if (aLang.equalsIgnoreCase("String_Node_Str")) {
      samples=new Conll02NameSampleStream(Conll02NameSampleStream.LANGUAGE.ES,nameStream,types);
    }
 else     if (aLang.equalsIgnoreCase("String_Node_Str")) {
      samples=new Conll02NameSampleStream(Conll02NameSampleStream.LANGUAGE.NL,nameStream,types);
    }
  }
 else   if (aLang.equalsIgnoreCase("String_Node_Str")) {
    ObjectStream<String> nameStream=InputOutputUtils.readInputData(inputData);
    samples=new EvalitaNameSampleStream(EvalitaNameSampleStream.LANGUAGE.IT,nameStream,types);
  }
 else   if (aCorpusFormat.equalsIgnoreCase("String_Node_Str")) {
    ObjectStream<String> nameStream=InputOutputUtils.readInputData(inputData);
    samples=new GermEval2014OuterNameStream(nameStream);
  }
 else   if (aCorpusFormat.equalsIgnoreCase("String_Node_Str")) {
    ObjectStream<String> nameStream=InputOutputUtils.readInputData(inputData);
    samples=new GermEval2014InnerNameStream(nameStream);
  }
 else   if (aCorpusFormat.equalsIgnoreCase("String_Node_Str")) {
    ObjectStream<String> nameStream=InputOutputUtils.readInputData(inputData);
    samples=new NameSampleDataStream(nameStream);
  }
 else {
    System.err.println("String_Node_Str");
    System.exit(1);
  }
  return samples;
}

Fixed version (ground truth):
/** 
 * Getting the stream with the right corpus format.
 * @param inputData the input data
 * @param aLang the language
 * @param aCorpusFormat the corpus format
 * @return the stream from the several corpus formats
 * @throws IOException the io exception
 */
public static ObjectStream<NameSample> getNameStream(final String inputData,final String aLang,final String aCorpusFormat) throws IOException {
  ObjectStream<NameSample> samples=null;
  if (aCorpusFormat.equalsIgnoreCase("String_Node_Str")) {
    ObjectStream<String> nameStream=InputOutputUtils.readInputData(inputData);
    if (aLang.equalsIgnoreCase("String_Node_Str")) {
      samples=new Conll03NameSampleStream(Conll03NameSampleStream.LANGUAGE.EN,nameStream,types);
    }
 else     if (aLang.equalsIgnoreCase("String_Node_Str")) {
      samples=new Conll03NameSampleStream(Conll03NameSampleStream.LANGUAGE.DE,nameStream,types);
    }
  }
 else   if (aCorpusFormat.equalsIgnoreCase("String_Node_Str")) {
    ObjectStream<String> nameStream=InputOutputUtils.readInputData(inputData);
    if (aLang.equalsIgnoreCase("String_Node_Str")) {
      samples=new Conll02NameSampleStream(Conll02NameSampleStream.LANGUAGE.ES,nameStream,types);
    }
 else     if (aLang.equalsIgnoreCase("String_Node_Str")) {
      samples=new Conll02NameSampleStream(Conll02NameSampleStream.LANGUAGE.NL,nameStream,types);
    }
  }
 else   if (aCorpusFormat.equalsIgnoreCase("String_Node_Str")) {
    ObjectStream<String> nameStream=InputOutputUtils.readInputData(inputData);
    samples=new EvalitaNameSampleStream(EvalitaNameSampleStream.LANGUAGE.IT,nameStream,types);
  }
 else   if (aCorpusFormat.equalsIgnoreCase("String_Node_Str")) {
    ObjectStream<String> nameStream=InputOutputUtils.readInputData(inputData);
    samples=new GermEval2014OuterNameStream(nameStream);
  }
 else   if (aCorpusFormat.equalsIgnoreCase("String_Node_Str")) {
    ObjectStream<String> nameStream=InputOutputUtils.readInputData(inputData);
    samples=new GermEval2014InnerNameStream(nameStream);
  }
 else   if (aCorpusFormat.equalsIgnoreCase("String_Node_Str")) {
    ObjectStream<String> nameStream=InputOutputUtils.readInputData(inputData);
    samples=new NameSampleDataStream(nameStream);
  }
 else {
    System.err.println("String_Node_Str");
    System.exit(1);
  }
  return samples;
}