Program: 144006
Project: 144006
Buggy source:
public Map<Integer,Double> solve(ConsensusAlternatingDirectionsMethodOfMultipliersSolver.SubProblemSelectionMethod subProblemSelectionMethod,ConsensusAlternatingDirectionsMethodOfMultipliersSolver.SubProblemSelector subProblemSelector,int numberOfSubProblemSamples){
  ConsensusAlternatingDirectionsMethodOfMultipliersSolver.Builder solverBuilder=new ConsensusAlternatingDirectionsMethodOfMultipliersSolver.Builder(objectiveFunction,Vectors.dense(objectiveFunction.getNumberOfVariables())).subProblemSolver((subProblem) -> solveProbabilisticSoftLogicSubProblem(subProblem,subProblemCholeskyFactors)).subProblemSelector(subProblemSelector).subProblemSelectionMethod(subProblemSelectionMethod).numberOfSubProblemSamples(numberOfSubProblemSamples).penaltyParameter(1).penaltyParameterSettingMethod(ConsensusAlternatingDirectionsMethodOfMultipliersSolver.PenaltyParameterSettingMethod.CONSTANT).checkForPointConvergence(false).checkForObjectiveConvergence(false).checkForGradientConvergence(false).logObjectiveValue(false).logGradientNorm(false).loggingLevel(3);
  for (  Constraint constraint : constraints)   solverBuilder.addConstraint(constraint.constraint,constraint.variableIndexes);
  ConsensusAlternatingDirectionsMethodOfMultipliersSolver solver=solverBuilder.build();
  Vector solverResult=solver.solve();
  Map<Integer,Double> inferredValues=new HashMap<>(solverResult.size());
  for (int internalVariableIndex=0; internalVariableIndex < solverResult.size(); internalVariableIndex++)   inferredValues.put(externalToInternalIndexesMapping.inverse().get(internalVariableIndex),solverResult.get(internalVariableIndex));
  return inferredValues;
}

Fixed version (ground truth):
public Map<Integer,Double> solve(ConsensusAlternatingDirectionsMethodOfMultipliersSolver.SubProblemSelectionMethod subProblemSelectionMethod,ConsensusAlternatingDirectionsMethodOfMultipliersSolver.SubProblemSelector subProblemSelector,int numberOfSubProblemSamples){
  ConsensusAlternatingDirectionsMethodOfMultipliersSolver.Builder solverBuilder=new ConsensusAlternatingDirectionsMethodOfMultipliersSolver.Builder(objectiveFunction,Vectors.dense(objectiveFunction.getNumberOfVariables())).subProblemSolver((subProblem) -> solveProbabilisticSoftLogicSubProblem(subProblem,subProblemCholeskyFactors)).subProblemSelector(subProblemSelector).subProblemSelectionMethod(subProblemSelectionMethod).numberOfSubProblemSamples(numberOfSubProblemSamples).penaltyParameter(1).penaltyParameterSettingMethod(ConsensusAlternatingDirectionsMethodOfMultipliersSolver.PenaltyParameterSettingMethod.CONSTANT).checkForPointConvergence(false).checkForObjectiveConvergence(false).checkForGradientConvergence(false).logObjectiveValue(true).logGradientNorm(false).loggingLevel(3);
  for (  Constraint constraint : constraints)   solverBuilder.addConstraint(constraint.constraint,constraint.variableIndexes);
  ConsensusAlternatingDirectionsMethodOfMultipliersSolver solver=solverBuilder.build();
  Vector solverResult=solver.solve();
  Map<Integer,Double> inferredValues=new HashMap<>(solverResult.size());
  for (int internalVariableIndex=0; internalVariableIndex < solverResult.size(); internalVariableIndex++)   inferredValues.put(externalToInternalIndexesMapping.inverse().get(internalVariableIndex),solverResult.get(internalVariableIndex));
  return inferredValues;
}