Program: 62882
Project: 62882
Buggy source:
private EntityAttributes retrieveEntity(String type,String[] id) throws ParseException {
  System.out.println(type);
  Logic logic=new Logic();
switch (type) {
case "String_Node_Str":
    AccountAttributes account=logic.getAccount(id[0].trim());
  return account;
case "String_Node_Str":
CommentsDb commentDb=new CommentsDb();
CommentAttributes comment=commentDb.getComment(id[0].trim(),id[1].trim(),id[2].trim(),new Text(id[3].trim()),new SimpleDateFormat("String_Node_Str").parse(id[4].trim()));
return comment;
case "String_Node_Str":
CourseAttributes course=logic.getCourse(id[0].trim());
return course;
case "String_Node_Str":
EvaluationAttributes evaluation=logic.getEvaluation(id[0].trim(),id[1].trim());
return evaluation;
case "String_Node_Str":
FeedbackQuestionsDb feedbackQuestionDb=new FeedbackQuestionsDb();
FeedbackQuestionAttributes feedbackQuestion=feedbackQuestionDb.getFeedbackQuestion(id[0].trim(),id[1].trim(),Integer.parseInt(id[2].trim()));
return feedbackQuestion;
case "String_Node_Str":
FeedbackResponsesDb feedbackResponsesDb=new FeedbackResponsesDb();
FeedbackResponseAttributes feedbackResponse=feedbackResponsesDb.getFeedbackResponse(id[0].trim(),id[1].split("String_Node_Str")[0],id[1].split("String_Node_Str")[1]);
return feedbackResponse;
case "String_Node_Str":
System.out.println("String_Node_Str");
FeedbackResponseCommentsDb feedbackResponseCommentsDb=new FeedbackResponseCommentsDb();
FeedbackResponseCommentAttributes feedbackResponseComment=feedbackResponseCommentsDb.getFeedbackResponseComment(id[0].trim(),id[1].trim(),new SimpleDateFormat("String_Node_Str").parse(id[2].trim()));
return feedbackResponseComment;
case "String_Node_Str":
FeedbackSessionAttributes feedbackSession=logic.getFeedbackSession(id[0].trim(),id[1].trim());
return feedbackSession;
case "String_Node_Str":
InstructorAttributes instructor=logic.getInstructorForEmail(id[1].trim(),id[0].trim());
return instructor;
case "String_Node_Str":
StudentAttributes student=logic.getStudentForEmail(id[0].trim(),id[1].trim());
return student;
case "String_Node_Str":
SubmissionsDb submissionsDb=new SubmissionsDb();
SubmissionAttributes submission=submissionsDb.getSubmission(id[0].trim(),id[1].trim(),id[2].split("String_Node_Str")[1].trim(),id[3].split("String_Node_Str")[1].trim());
return submission;
}
return null;
}

Fixed version (ground truth):
private EntityAttributes retrieveEntity(String type,String[] id) throws ParseException {
  System.out.println(type);
  Logic logic=new Logic();
switch (type) {
case "String_Node_Str":
    AccountAttributes account=logic.getAccount(id[0].trim());
  return account;
case "String_Node_Str":
CommentsDb commentDb=new CommentsDb();
CommentAttributes comment=commentDb.getComment(id[0].trim(),id[1].trim(),id[2].trim(),new Text(id[3].trim()),new SimpleDateFormat("String_Node_Str").parse(id[4].trim()));
return comment;
case "String_Node_Str":
CourseAttributes course=logic.getCourse(id[0].trim());
return course;
case "String_Node_Str":
EvaluationAttributes evaluation=logic.getEvaluation(id[0].trim(),id[1].trim());
return evaluation;
case "String_Node_Str":
FeedbackQuestionsDb feedbackQuestionDb=new FeedbackQuestionsDb();
FeedbackQuestionAttributes feedbackQuestion=feedbackQuestionDb.getFeedbackQuestion(id[0].trim(),id[1].trim(),Integer.parseInt(id[2].trim()));
return feedbackQuestion;
case "String_Node_Str":
FeedbackResponsesDb feedbackResponsesDb=new FeedbackResponsesDb();
FeedbackResponseAttributes feedbackResponse=feedbackResponsesDb.getFeedbackResponse(id[0].trim(),id[1].split("String_Node_Str")[0],id[1].split("String_Node_Str")[1]);
return feedbackResponse;
case "String_Node_Str":
FeedbackResponseCommentsDb feedbackResponseCommentsDb=new FeedbackResponseCommentsDb();
FeedbackResponseCommentAttributes feedbackResponseComment=feedbackResponseCommentsDb.getFeedbackResponseComment(id[0].trim(),id[1].trim(),new SimpleDateFormat("String_Node_Str").parse(id[2].trim()));
return feedbackResponseComment;
case "String_Node_Str":
FeedbackSessionAttributes feedbackSession=logic.getFeedbackSession(id[0].trim(),id[1].trim());
return feedbackSession;
case "String_Node_Str":
InstructorAttributes instructor=logic.getInstructorForEmail(id[1].trim(),id[0].trim());
return instructor;
case "String_Node_Str":
StudentAttributes student=logic.getStudentForEmail(id[0].trim(),id[1].trim());
return student;
case "String_Node_Str":
SubmissionsDb submissionsDb=new SubmissionsDb();
SubmissionAttributes submission=submissionsDb.getSubmission(id[0].trim(),id[1].trim(),id[2].split("String_Node_Str")[1].trim(),id[3].split("String_Node_Str")[1].trim());
return submission;
}
return null;
}