Source:
<code>public String getQuestionResultStatisticsCsv( List<FeedbackResponseAttributes> responses, FeedbackQuestionAttributes question, FeedbackSessionResultsBundle bundle) { if (responses.isEmpty()) { return ""; } StringBuilder fragments = new StringBuilder(); Map<String, List<Integer>> recipientRanks = generateOptionRanksMapping(responses); Map<String, List<Integer>> recipientRanksExcludingSelf = getRecipientRanksExcludingSelf(responses); DecimalFormat df = new DecimalFormat("#.##"); <START> Map<String, Integer> recipientSelfRanks = generateSelfRankForEachRecipient(responses); <END> for (Entry<String, List<Integer>> entry : recipientRanks.entrySet()) { String teamName = bundle.getTeamNameForEmail(entry.getKey()); String recipientName = bundle.getNameForEmail(entry.getKey()); String option = SanitizationHelper.sanitizeForCsv(teamName) + "," + SanitizationHelper.sanitizeForCsv(recipientName); String userAverageExcludingSelfText = getAverageExcludingSelfText(df, recipientRanksExcludingSelf, entry.getKey()); List<Integer> ranks = entry.getValue(); double average = computeAverage(ranks); String selfRank = recipientSelfRanks.containsKey(entry.getKey()) ? Integer.toString(recipientSelfRanks.get(entry.getKey())) : "-"; fragments.append(option); fragments.append(',').append(selfRank); fragments.append(',').append(df.format(average)); fragments.append(',').append(userAverageExcludingSelfText); fragments.append(Const.EOL); } return "Team, Recipient, Self Rank, Average Rank, Average Rank Excluding Self" + Const.EOL + fragments + Const.EOL; }</code><technical_language>move this line line 232</technical_language>

Target:
public String getQuestionResultStatisticsCsv( List<FeedbackResponseAttributes> responses, FeedbackQuestionAttributes question, FeedbackSessionResultsBundle bundle) { if (responses.isEmpty()) { return ""; } StringBuilder fragments = new StringBuilder(); Map<String, List<Integer>> recipientRanks = generateOptionRanksMapping(responses); Map<String, List<Integer>> recipientRanksExcludingSelf = getRecipientRanksExcludingSelf(responses); Map<String, Integer> recipientSelfRanks = generateSelfRankForEachRecipient(responses); DecimalFormat df = new DecimalFormat("#.##"); for (Entry<String, List<Integer>> entry : recipientRanks.entrySet()) { String teamName = bundle.getTeamNameForEmail(entry.getKey()); String recipientName = bundle.getNameForEmail(entry.getKey()); String option = SanitizationHelper.sanitizeForCsv(teamName) + "," + SanitizationHelper.sanitizeForCsv(recipientName); String userAverageExcludingSelfText = getAverageExcludingSelfText(df, recipientRanksExcludingSelf, entry.getKey()); List<Integer> ranks = entry.getValue(); double average = computeAverage(ranks); String selfRank = recipientSelfRanks.containsKey(entry.getKey()) ? Integer.toString(recipientSelfRanks.get(entry.getKey())) : "-"; fragments.append(option); fragments.append(',').append(selfRank); fragments.append(',').append(df.format(average)); fragments.append(',').append(userAverageExcludingSelfText); fragments.append(','); fragments.append(StringHelper.join(",", ranks)); fragments.append(Const.EOL); } return "Team, Recipient, Self Rank, Average Rank, Average Rank Excluding Self, Ranks Received" + Const.EOL + fragments + Const.EOL; }