Program: 50298
Project: 50298
Buggy source:
/** 
 * Obtain dynamic options from the client of this class and configure this estimator.  For configure to work, the client class must have a static registered dynamicOptionClient that was constructed with  localDynamicOptions
 * @param numberOfContexts Number of discrete contexts to use. One null distribution is estimated for each context.
 * @param clientDoc        parsed dynamic options for the client of this class.
 */
public void configure(final int numberOfContexts,final DynamicOptionClient clientDoc){
  Boolean estimateIntraGroupDifferences=clientDoc.getBoolean("String_Node_Str");
  Boolean estimateIntraGroupP=clientDoc.getBoolean("String_Node_Str");
  serializedFilename=clientDoc.getString("String_Node_Str");
  if (estimateIntraGroupP && serializedFilename != null) {
    try {
      LOG.debug("String_Node_Str" + serializedFilename);
      estimator=DensityEstimator.load(serializedFilename);
      statAdaptor=estimator.getStatAdaptor();
      densityLoadedFromDisk=true;
    }
 catch (    Exception e) {
      throw new RuntimeException("String_Node_Str" + serializedFilename);
    }
  }
  String combinatorName=clientDoc.getString("String_Node_Str");
  try {
    LOG.debug("String_Node_Str" + combinatorName);
switch (combinatorNames.valueOf(combinatorName)) {
case max:
      combinator=new MaxCombinator();
    break;
case sum:
  combinator=new SummedCombinator();
break;
case qfast:
combinator=new QFast();
break;
case median:
combinator=new MedianCombinator();
break;
default :
new InternalError("String_Node_Str" + combinatorName);
}
}
 catch (IllegalArgumentException e) {
LOG.error(String.format("String_Node_Str",combinatorName));
combinator=new MaxCombinator();
}
if (statAdaptor != null) {
LOG.info("String_Node_Str" + statAdaptor.statName());
}
 else {
String statisticName=clientDoc.getString("String_Node_Str");
LOG.info("String_Node_Str" + statisticName);
try {
switch (statisticNames.valueOf(statisticName)) {
case delta:
statAdaptor=new DeltaStatisticAdaptor();
break;
case stat4:
statAdaptor=new Stat4StatisticAdaptor();
break;
case dMR:
statAdaptor=new MethylationRateDifferenceStatisticAdaptor();
break;
case fisher:
statAdaptor=new FisherExactTestAdaptor();
break;
case ptest_mci:
statAdaptor=new PTestMciProviderStatisticAdaptor();
break;
case ptest:
statAdaptor=new PTestStatisticAdaptor();
break;
case stat5_mci:
statAdaptor=new Stat5MciProviderStatisticAdaptor();
break;
default :
case stat5:
statAdaptor=new Stat5StatisticAdaptor();
break;
}
}
 catch (IllegalArgumentException e) {
LOG.error(String.format("String_Node_Str",statisticName));
statAdaptor=new Stat5StatisticAdaptor();
}
}
BinningStrategy binningStrategy=null;
if (!densityLoadedFromDisk) {
final String binningStrategyName=clientDoc.getString("String_Node_Str");
LOG.debug("String_Node_Str" + binningStrategyName);
if (binningStrategyName != null) {
try {
switch (binningStrategyNames.valueOf(binningStrategyName)) {
case log2:
binningStrategy=new Log2BinningStrategy();
break;
case log10:
binningStrategy=new Log10BinningStrategy();
break;
case s100linear:
binningStrategy=new LinearBinningStrategy();
break;
default :
case fasts100log10:
case fastslog10:
binningStrategy=new FastSmallAndLog10BinningStrategy();
break;
}
}
 catch (IllegalArgumentException e) {
LOG.error(String.format("String_Node_Str",binningStrategyName));
binningStrategy=new FastSmallAndLog10BinningStrategy();
}
}
}
 else {
binningStrategy=estimator.getBinningStrategy();
}
if (estimator == null) {
estimator=new DensityEstimator(numberOfContexts,statAdaptor);
if (!densityLoadedFromDisk) {
estimator.setBinningStrategy(binningStrategy);
}
}
}

Fixed version (ground truth):
/** 
 * Obtain dynamic options from the client of this class and configure this estimator.  For configure to work, the client class must have a static registered dynamicOptionClient that was constructed with  localDynamicOptions
 * @param numberOfContexts Number of discrete contexts to use. One null distribution is estimated for each context.
 * @param clientDoc        parsed dynamic options for the client of this class.
 */
public void configure(final int numberOfContexts,final DynamicOptionClient clientDoc){
}