app/helpers/review_mapping_helper.rb
# This function computes the number of suggestions per round of an assignment for a particular reviewer.
This function computes the number of suggestions per round of an assignment for a particular reviewer.
This function computes the number of suggestions per round of an assignment for a particular reviewer .
def num_suggestions_per_student_per_round(response_maps, round_id)
	all_comments = []
	response_maps.each do |rm|
		response = Response.where(map_id: rm.id, round: round_id).order(created_at: :desc).first 
    if response
		  comments = comments_in_current_response(response.id)
      all_comments += comments unless comments.empty?
    end
  end
  score = num_suggestions_for_responses_by_a_reviewer(all_comments)
  return score
  end
def num_suggestions_per_student_per_round ( response_maps , round_id ) all_comments = [ ] response_maps . each do | rm | response = Response . where ( map_id : rm . id , round : round_id ) . order ( created_at : :desc ) . first if response comments = comments_in_current_response ( response . id ) all_comments += comments unless comments . empty? end end score = num_suggestions_for_responses_by_a_reviewer ( all_comments ) return score end
This function computes the number of suggestions per round of an assignment for a particular reviewer.
This function computes the number of suggestions per round of an assignment for a particular reviewer .
#computes the concatenation of comments provided by the reviewer(across one round), for all teams. #desc
response_maps
round_id