[Demonstration 1]

[Buggy Method]
public String getFeedbackSessionResultsSummaryInSectionAsCsv(String feedbackSessionName, String courseId, String userEmail, String section) throws EntityDoesNotExistException, ExceedingRangeException {
    long indicatedRange = (section == null) ? 10000 : -1;
    FeedbackSessionResultsBundle results = getFeedbackSessionResultsForInstructorInSectionWithinRangeFromView(feedbackSessionName, courseId, userEmail, section, indicatedRange, "question");
    if (!results.isComplete) {
        throw new ExceedingRangeException(ERROR_RESPONSES_EXCEEDS_RANGE);
    }
    // sort responses by giver > recipient > qnNumber
    Collections.sort(results.responses, results.compareByGiverRecipientQuestion);
    StringBuilder exportBuilder = new StringBuilder(100);
    exportBuilder.append(String.format("Course,%s", Sanitizer.sanitizeForCsv(results.feedbackSession.courseId))).append(Const.EOL).append(String.format("Session Name,%s", Sanitizer.sanitizeForCsv(results.feedbackSession.feedbackSessionName))).append(Const.EOL);
    if (section != null) {
        exportBuilder.append(String.format("Section Name,%s", Sanitizer.sanitizeForCsv(section))).append(Const.EOL);
    }
    exportBuilder.append(Const.EOL).append(Const.EOL);
    for (Map.Entry<FeedbackQuestionAttributes, List<FeedbackResponseAttributes>> entry : results.getQuestionResponseMap().entrySet()) {
        exportBuilder.append(getFeedbackSessionResultsForQuestionInCsvFormat(results, entry));
    }
    return exportBuilder.toString();
}

[Buggy Hunk]
throw new ExceedingRangeException(ERROR_RESPONSES_EXCEEDS_RANGE);

[Patch]
throw new ExceedingRangeException(ERROR_NUMBER_OF_RESPONSES_EXCEEDS_RANGE);

[Demonstration 2]

[Buggy Method]
public static AnalysisMessage getTargetRecord(String targetName, ArrayList<AnalysisMessage> targetList) {
    for (AnalysisMessage msg : targetList) {
        if (msg.date.equals(targetName))
            return msg;
    }
    return null;
}

[Buggy Hunk]
if(msg.date.equals(targetName))

[Patch]
if(msg.curTime.equals(targetName))

[Demonstration 3]

[Buggy Method]
@Override
public void syntaxError(Recognizer<?, ?> recognizer, Object offendingSymbol, int line, int charPositionInLine, String msg, RecognitionException e) {
    errors.add("Error bij token '" + offendingSymbol.toString() + "' op regel " + line + ":" + charPositionInLine + ". Melding: " + msg);
}

[Buggy Hunk]
errors.add("Error bij token '" + offendingSymbol.toString() + "' op regel " + line + ":" + charPositionInLine + ". Melding: " + msg);

[Patch]
errors.add("Error bij token '" + offendingSymbol + "' op regel " + line + ":" + charPositionInLine + ". Melding: " + msg);