Program: 19792
Project: 19792
Buggy source:
public void newProperties(PropertySheet ps) throws PropertyException {
  setupAcousticModel(ps);
  logMath=(LogMath)ps.getComponent(PROP_LOG_MATH,LogMath.class);
  grammar=(Grammar)ps.getComponent(PROP_GRAMMAR,Grammar.class);
  unitManager=(UnitManager)ps.getComponent(PROP_UNIT_MANAGER,UnitManager.class);
  logWordInsertionProbability=logMath.linearToLog(ps.getDouble(PROP_WORD_INSERTION_PROBABILITY,PROP_WORD_INSERTION_PROBABILITY_DEFAULT));
  logSilenceInsertionProbability=logMath.linearToLog(ps.getDouble(PROP_SILENCE_INSERTION_PROBABILITY,PROP_SILENCE_INSERTION_PROBABILITY_DEFAULT));
  logUnitInsertionProbability=logMath.linearToLog(ps.getDouble(PROP_UNIT_INSERTION_PROBABILITY,PROP_UNIT_INSERTION_PROBABILITY_DEFAULT));
  languageWeight=ps.getFloat(Linguist.PROP_LANGUAGE_WEIGHT,PROP_LANGUAGE_WEIGHT_DEFAULT);
  showSentenceHMM=ps.getBoolean(Linguist.PROP_SHOW_SEARCH_SPACE,PROP_SHOW_SEARCH_SPACE_DEFAULT);
  dumpGStates=ps.getBoolean(PROP_DUMP_GSTATES,PROP_DUMP_GSTATES_DEFAULT);
  showCompilationProgress=ps.getBoolean(PROP_SHOW_COMPILATION_PROGRESS,PROP_SHOW_COMPILATION_PROGRESS_DEFAULT);
  spreadWordProbabilitiesAcrossPronunciations=ps.getBoolean(PROP_SPREAD_WORD_PROBABILITIES_ACROSS_PRONUNCIATIONS,PROP_SPREAD_WORD_PROBABILITIES_ACROSS_PRONUNCIATIONS_DEFAULT);
  addOutOfGrammarBranch=ps.getBoolean(PROP_ADD_OUT_OF_GRAMMAR_BRANCH,PROP_ADD_OUT_OF_GRAMMAR_BRANCH_DEFAULT);
  logOutOfGrammarBranchProbability=logMath.linearToLog(ps.getDouble(PROP_OUT_OF_GRAMMAR_PROBABILITY,PROP_OUT_OF_GRAMMAR_PROBABILITY_DEFAULT));
  logPhoneInsertionProbability=logMath.linearToLog(ps.getDouble(PROP_PHONE_INSERTION_PROBABILITY,PROP_PHONE_INSERTION_PROBABILITY_DEFAULT));
}

Fixed version (ground truth):
public void newProperties(PropertySheet ps) throws PropertyException {
  setupAcousticModel(ps);
  logMath=(LogMath)ps.getComponent(PROP_LOG_MATH,LogMath.class);
  grammar=(Grammar)ps.getComponent(PROP_GRAMMAR,Grammar.class);
  unitManager=(UnitManager)ps.getComponent(PROP_UNIT_MANAGER,UnitManager.class);
  logWordInsertionProbability=logMath.linearToLog(ps.getDouble(PROP_WORD_INSERTION_PROBABILITY,PROP_WORD_INSERTION_PROBABILITY_DEFAULT));
  logSilenceInsertionProbability=logMath.linearToLog(ps.getDouble(PROP_SILENCE_INSERTION_PROBABILITY,PROP_SILENCE_INSERTION_PROBABILITY_DEFAULT));
  logUnitInsertionProbability=logMath.linearToLog(ps.getDouble(PROP_UNIT_INSERTION_PROBABILITY,PROP_UNIT_INSERTION_PROBABILITY_DEFAULT));
  languageWeight=ps.getFloat(Linguist.PROP_LANGUAGE_WEIGHT,PROP_LANGUAGE_WEIGHT_DEFAULT);
  showSentenceHMM=ps.getBoolean(Linguist.PROP_SHOW_SEARCH_SPACE,PROP_SHOW_SEARCH_SPACE_DEFAULT);
  dumpGStates=ps.getBoolean(PROP_DUMP_GSTATES,PROP_DUMP_GSTATES_DEFAULT);
  showCompilationProgress=ps.getBoolean(PROP_SHOW_COMPILATION_PROGRESS,PROP_SHOW_COMPILATION_PROGRESS_DEFAULT);
  spreadWordProbabilitiesAcrossPronunciations=ps.getBoolean(PROP_SPREAD_WORD_PROBABILITIES_ACROSS_PRONUNCIATIONS,PROP_SPREAD_WORD_PROBABILITIES_ACROSS_PRONUNCIATIONS_DEFAULT);
  addOutOfGrammarBranch=ps.getBoolean(PROP_ADD_OUT_OF_GRAMMAR_BRANCH,PROP_ADD_OUT_OF_GRAMMAR_BRANCH_DEFAULT);
  if (addOutOfGrammarBranch) {
    logOutOfGrammarBranchProbability=logMath.linearToLog(ps.getDouble(PROP_OUT_OF_GRAMMAR_PROBABILITY,PROP_OUT_OF_GRAMMAR_PROBABILITY_DEFAULT));
    logPhoneInsertionProbability=logMath.linearToLog(ps.getDouble(PROP_PHONE_INSERTION_PROBABILITY,PROP_PHONE_INSERTION_PROBABILITY_DEFAULT));
    phoneLoopAcousticModel=(AcousticModel)ps.getComponent(PROP_PHONE_LOOP_ACOUSTIC_MODEL,AcousticModel.class);
  }
}