<commit_before><table width="100%" cellpadding="10">
  <tr CLASS="head" >
    <% has_signup_sheet = !(SignUpTopic.find(:first, :conditions => ['assignment_id = ?', assignment.id])).nil? %>
    <% if has_signup_sheet %>
        <th width="20%">Topic selected</th>
    <%end%>

    <th width="30%">Contributor</th>
    <th width="30%">Reviewed By</th>
    <th width="30%">Metareviewed By</th>
  </tr>
  
  <% index1 = 0 
     index2 = 0
     index3 = 0

     items.each{
       | contributor |
       index1+=1 
       if index1 % 2 == 0
          bgcolor1 = "#FAFAE8"
       else 
          bgcolor1 = "#E8E8D1"
       end %>
       
      <tr style="background-color:<%=bgcolor1%>">
      <% if has_signup_sheet %>
            <%
              @topics = nil
              if contributor.type.to_s == "AssignmentTeam"
                  @contributor = contributor.id
              elsif contributor.type.to_s == "AssignmentParticipant"
                  @contributor = contributor.user_id
              else
                @topics = nil
              end
              %>

              <%if !@contributor.nil?
                topics = SignedUpUser.find_user_signup_topics(assignment.id, @contributor)

                if !topics.nil?
                    @topics = ""
                    topics.each do |topic|
                        if topic.is_waitlisted?
                            @topics = @topics + topic.topic_name + " " + "<font color='red'>(waitlisted)</font> <br/>"
                        else
                            @topics = @topics + topic.topic_name + "<br/>"
                        end
                    end
                else
                    @topics = nil
                end
              end
             %>

            <%if @topics.blank? %>
                </tr><%index1-=1%>
                <%next%>                
            <%else%>
                <td><%=@topics%></td>
            <%end%>
        <%end%>

      <td style="vertical-align:top;"><%= contributor.name %><br/>
        <% if !assignment.team_assignment %>          
           (<%= contributor.fullname %>)<commit_msg>Show topic identifiers on reviewer assignment page<commit_after><table width="100%" cellpadding="10">
  <tr CLASS="head" >
    <% has_signup_sheet = !(SignUpTopic.find(:first, :conditions => ['assignment_id = ?', assignment.id])).nil? %>
    <% if has_signup_sheet %>
        <th width="20%">Topic selected</th>
    <%end%>

    <th width="30%">Contributor</th>
    <th width="30%">Reviewed By</th>
    <th width="30%">Metareviewed By</th>
  </tr>
  
  <% index1 = 0 
     index2 = 0
     index3 = 0

     items.each{
       | contributor |
       index1+=1 
       if index1 % 2 == 0
          bgcolor1 = "#FAFAE8"
       else 
          bgcolor1 = "#E8E8D1"
       end %>
       
      <tr style="background-color:<%=bgcolor1%>">
      <% if has_signup_sheet %>
            <%
              @topics = nil
              if contributor.type.to_s == "AssignmentTeam"
                  @contributor = contributor.id
              elsif contributor.type.to_s == "AssignmentParticipant"
                  @contributor = contributor.user_id
              else
                @topics = nil
              end
              %>

              <%if !@contributor.nil?
                topics = SignedUpUser.find_user_signup_topics(assignment.id, @contributor)

                if !topics.nil?
                    @topics = ""
                    topics.each do |topic|
                        if topic.is_waitlisted?
                            @topics = "#{@topics}#{topic.topic.topic_identifier}: #{topic.topic_name} <font color='red'>(waitlisted)</font> <br/>"
                        else
                            @topics = "#{@topics}#{topic.topic.topic_identifier}: #{topic.topic_name}<br/>"
                        end
                    end
                else
                    @topics = nil
                end
              end
             %>

            <%if @topics.blank? %>
                </tr><%index1-=1%>
                <%next%>                
            <%else%>
                <td><%=@topics%></td>
            <%end%>
        <%end%>

      <td style="vertical-align:top;"><%= contributor.name %><br/>
        <% if !assignment.team_assignment %>          
           (<%= contributor.fullname %>)
{'fraction_non_alphanumeric': 0.13920846755637367, 'fraction_numerical': 0.015186378278877128, 'mean_word_length': 1.3134646088344863, 'pattern_counts': {'":': 0, '<': 81, '<?xml version=': 0, '>': 83, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7387829', 'n_tokens_mistral': 1378, 'n_tokens_neox': 1243, 'n_words': 225}