Program: 63019
Project: 63019
Buggy source:
@Override protected void doAction(HttpServletRequest req,CoordEvalHelper helper) throws EntityDoesNotExistException {
  EvaluationData newEval=extractEvaluationData(req);
  boolean isAddEvaluation=newEval.course != null || newEval.name != null || newEval.startTime != null || newEval.endTime != null;
  if (isAddEvaluation) {
    helper.submittedEval=newEval;
  }
 else {
    helper.submittedEval=null;
  }
  try {
    if (isAddEvaluation) {
      helper.server.createEvaluation(newEval);
      helper.statusMessage=Common.MESSAGE_EVALUATION_ADDED;
      helper.submittedEval=null;
    }
  }
 catch (  EntityAlreadyExistsException e) {
    helper.statusMessage=Common.MESSAGE_EVALUATION_EXISTS;
    helper.error=true;
  }
catch (  InvalidParametersException e) {
    helper.statusMessage=e.getMessage();
    helper.error=true;
  }
  HashMap<String,CourseData> summary=helper.server.getCourseListForCoord(helper.userId);
  helper.courses=new ArrayList<CourseData>(summary.values());
  sortCourses(helper.courses);
  helper.evaluations=helper.server.getEvaluationsListForCoord(helper.userId);
  sortEvaluationsByDeadline(helper.evaluations);
  String additionalMessage=null;
  if (helper.courses.size() == 0 && !helper.error) {
    additionalMessage=Common.MESSAGE_COURSE_EMPTY_IN_EVALUATION;
  }
 else   if (helper.evaluations.size() == 0 && !helper.error && !noEvaluationsVisibleDueToEventualConsistency(helper)) {
    additionalMessage=Common.MESSAGE_EVALUATION_EMPTY;
  }
  if (additionalMessage != null) {
    if (helper.statusMessage == null) {
      helper.statusMessage="String_Node_Str";
    }
 else {
      helper.statusMessage+="String_Node_Str";
    }
    helper.statusMessage+=additionalMessage;
  }
}

Fixed version (ground truth):
@Override protected void doAction(HttpServletRequest req,CoordEvalHelper helper) throws EntityDoesNotExistException {
  EvaluationData newEval=extractEvaluationData(req);
  boolean isAddEvaluation=hasAtLeastSomeLegitimateValues(newEval);
  if (isAddEvaluation) {
    helper.submittedEval=newEval;
  }
 else {
    helper.submittedEval=null;
  }
  try {
    if (isAddEvaluation) {
      helper.server.createEvaluation(newEval);
      helper.statusMessage=Common.MESSAGE_EVALUATION_ADDED;
      helper.submittedEval=null;
    }
  }
 catch (  EntityAlreadyExistsException e) {
    helper.statusMessage=Common.MESSAGE_EVALUATION_EXISTS;
    helper.error=true;
  }
catch (  InvalidParametersException e) {
    helper.statusMessage=e.getMessage();
    helper.error=true;
  }
  HashMap<String,CourseData> summary=helper.server.getCourseListForCoord(helper.userId);
  helper.courses=new ArrayList<CourseData>(summary.values());
  sortCourses(helper.courses);
  helper.evaluations=helper.server.getEvaluationsListForCoord(helper.userId);
  sortEvaluationsByDeadline(helper.evaluations);
  String additionalMessage=null;
  if (helper.courses.size() == 0 && !helper.error) {
    additionalMessage=Common.MESSAGE_COURSE_EMPTY_IN_EVALUATION.replace("String_Node_Str","String_Node_Str" + helper.userId);
  }
 else   if (helper.evaluations.size() == 0 && !helper.error && !noEvaluationsVisibleDueToEventualConsistency(helper)) {
    additionalMessage=Common.MESSAGE_EVALUATION_EMPTY;
  }
  if (additionalMessage != null) {
    if (helper.statusMessage == null) {
      helper.statusMessage="String_Node_Str";
    }
 else {
      helper.statusMessage+="String_Node_Str";
    }
    helper.statusMessage+=additionalMessage;
  }
}