<commit_before>  <div id="controls">
    <div id="roster-nav-options">
      <p>Homeroom:</p>
      <select id="homeroom-select">
        <% @homerooms_by_name.each do |r| %>
          <option <% if r == @homeroom %>selected<% end %> value="<%= r.slug %>">
            <%= r.name %>
          </option>
        <% end %>
      </select>
    </div>
    <div id="student-searchbar-wrapper" class="dropdown">
    </div>
  </div>
  <div class="info-area">

    <div class="underline topline-info">
      <h1 id="student-name">Room <%= @homeroom.name %></h1>
      <div id="roster-tooltip" class="tooltip-trigger">
        <p>Help</p>
        <span id="roster-help-icon">?</span>
      </div>
      <% if current_educator.admin? %>
        <div class="homeroom-links">
          <%= link_to 'STAR Reading', star_reading_school_path(@school_id, anchor: @star_homeroom_anchor) %>
          <%= link_to 'STAR Math', star_math_school_path(@school_id, anchor: @star_homeroom_anchor) %>
        </div>
      <% end %>
    </div>

    <div id="roster-chart"></div>


    <div id="roster-table-wrapper">

      <div id="column-picker-toggle">
        <img src="<%= asset_path('menu.svg') %>"/>
      </div>
      <div id="column-picker">
        <p>Select columns</p>
        <form id="column-listing">
          <div id="column-template">
            <input type="checkbox" name="" value="">
            <label></label>
          </div>
        </form>
      </div>

      <table id="roster-table" border="0" cellspacing="0" cellpadding="10" class="sort-default">
        <thead>
          <tr class="column-groups">
            <!-- TOP-LEVEL COLUMN GROUPS -->
            <td colspan="1" class="name"></td>
            <td colspan="1" class="risk"></td>
            <td colspan="1" class="program"></td>
            <td colspan="3" class="sped"><p class="smalltype">SPED & Disability</p></td>
            <td colspan="2" class="language"><p class="smalltype">Language</p></td>
            <td colspan="1" class="free-reduced"></td>
            <% if @homeroom.show_star? %>
              <td colspan="1" class="star_math"><p class="smalltype">STAR: Math</p></td>
              <td colspan="1" class="star_reading"><p class="smalltype">STAR: Reading</p></td>
            <% end %>
            <% if @homeroom.show_mcas? %>
              <td colspan="2" class="mcas_math"><p class="smalltype">MCAS: Math</p></td>
              <td colspan="2" class="mcas_ela"><p class="smalltype">MCAS: ELA</p></td>
            <% end %>
          </tr>
          <tr class="column-names">
            <!-- COLUMN HEADERS -->
            <!-- i.e. "MCAS Math Growth", "STAR Reading Performance" -->
            <th class="name">
              <span id="first-column-header" class="table-header">Name</span>
            </th>
            <th class="risk sort-default" data-sort-method="reverse_number">
              <span class="table-header">Risk</span>
            </th>
            <% 
            #The data-sort-method attribute forces Tablesort to use a specific sorting method, instead of the default sort it uses. 
            # You can see the method at: app/assets/javascripts/roster/sorts/prog_assign_sort.js %>
            <th class="program" data-sort-method="prog_assign_sort">
              <span class="table-header">Program Assigned</span>
            </th>
            <th class="sped">
              <span class="table-header">Disability</span>
            </th>
            <% 
             #The data-sort-method attribute forces Tablesort to use a specific sorting method, instead of the default sort it uses. 
             #See the method at: app/assets/javascripts/roster/sorts/level_of_need_sort.js %>
            <th class="sped" data-sort-method="need_sort">
              <span class="table-header">Level of Need</span>
            </th>
            <th class="sped">
              <span class="table-header">504 Plan</span>
            </th>
            <%
              #The data-sort-method attribute forces Tablesort to use a specific sorting method, instead of the default sort it uses. 
              # You can see the method at: app/assets/javascripts/roster/sorts/fluency_sort.js %>
            <th class="language" data-sort-method="fluency_sort">
              <span class="table-header">Fluency</span>
            </th>
            <th class="language">
              <span class="table-header">Home Language</span>
            </th>
            <th class="free-reduced">
              <span class="table-header">Free/Reduced Lunch</span>
            </th>
            <% if @homeroom.show_star? %>
              <th class="star_math" data-sort-method="number">
                <span class="table-header">Percentile</span>
              </th>
              <th class="star_reading" data-sort-method="number">
                <span class="table-header">Percentile</span>
              </th>
            <% end %>
            <% if @homeroom.show_mcas? %>
              <th class="mcas_math" data-sort-method="mcas_sort">
                <span class="table-header">Performance</span>
              </th>
              <th class="mcas_math" data-sort-method="number">
                <span class="table-header">Growth</span>
              </th>
              <th class="mcas_ela" data-sort-method="mcas_sort">
                <span class="table-header">Performance</span>
              </th>
              <th class="mcas_ela" data-sort-method="number">
                <span class="table-header">Growth</span>
              </th>
            <% end %>
          </tr>
       </thead>
        <% if @rows.present? %>
          <!-- ROWS -->
          <% @rows.each do |row| %>
<commit_msg>Only student with enrollment_status == 'Active' are displayed in the roster.<commit_after>  <div id="controls">
    <div id="roster-nav-options">
      <p>Homeroom:</p>
      <select id="homeroom-select">
        <% @homerooms_by_name.each do |r| %>
          <option <% if r == @homeroom %>selected<% end %> value="<%= r.slug %>">
            <%= r.name %>
          </option>
        <% end %>
      </select>
    </div>
    <div id="student-searchbar-wrapper" class="dropdown">
    </div>
  </div>
  <div class="info-area">

    <div class="underline topline-info">
      <h1 id="student-name">Room <%= @homeroom.name %></h1>
      <div id="roster-tooltip" class="tooltip-trigger">
        <p>Help</p>
        <span id="roster-help-icon">?</span>
      </div>
      <% if current_educator.admin? %>
        <div class="homeroom-links">
          <%= link_to 'STAR Reading', star_reading_school_path(@school_id, anchor: @star_homeroom_anchor) %>
          <%= link_to 'STAR Math', star_math_school_path(@school_id, anchor: @star_homeroom_anchor) %>
        </div>
      <% end %>
    </div>

    <div id="roster-chart"></div>


    <div id="roster-table-wrapper">

      <div id="column-picker-toggle">
        <img src="<%= asset_path('menu.svg') %>"/>
      </div>
      <div id="column-picker">
        <p>Select columns</p>
        <form id="column-listing">
          <div id="column-template">
            <input type="checkbox" name="" value="">
            <label></label>
          </div>
        </form>
      </div>

      <table id="roster-table" border="0" cellspacing="0" cellpadding="10" class="sort-default">
        <thead>
          <tr class="column-groups">
            <!-- TOP-LEVEL COLUMN GROUPS -->
            <td colspan="1" class="name"></td>
            <td colspan="1" class="risk"></td>
            <td colspan="1" class="program"></td>
            <td colspan="3" class="sped"><p class="smalltype">SPED & Disability</p></td>
            <td colspan="2" class="language"><p class="smalltype">Language</p></td>
            <td colspan="1" class="free-reduced"></td>
            <% if @homeroom.show_star? %>
              <td colspan="1" class="star_math"><p class="smalltype">STAR: Math</p></td>
              <td colspan="1" class="star_reading"><p class="smalltype">STAR: Reading</p></td>
            <% end %>
            <% if @homeroom.show_mcas? %>
              <td colspan="2" class="mcas_math"><p class="smalltype">MCAS: Math</p></td>
              <td colspan="2" class="mcas_ela"><p class="smalltype">MCAS: ELA</p></td>
            <% end %>
          </tr>
          <tr class="column-names">
            <!-- COLUMN HEADERS -->
            <!-- i.e. "MCAS Math Growth", "STAR Reading Performance" -->
            <th class="name">
              <span id="first-column-header" class="table-header">Name</span>
            </th>
            <th class="risk sort-default" data-sort-method="reverse_number">
              <span class="table-header">Risk</span>
            </th>
            <%# 
            # The data-sort-method attribute forces Tablesort to use a specific sorting method, instead of the default sort it uses. 
            # You can see the method at: app/assets/javascripts/roster/sorts/prog_assign_sort.js
            %>
            <th class="program" data-sort-method="prog_assign_sort">
              <span class="table-header">Program Assigned</span>
            </th>
            <th class="sped">
              <span class="table-header">Disability</span>
            </th>
            <%# 
            # The data-sort-method attribute forces Tablesort to use a specific sorting method, instead of the default sort it uses. 
            # See the method at: app/assets/javascripts/roster/sorts/level_of_need_sort.js
            %>
            <th class="sped" data-sort-method="need_sort">
              <span class="table-header">Level of Need</span>
            </th>
            <th class="sped">
              <span class="table-header">504 Plan</span>
            </th>
            <%#
            # The data-sort-method attribute forces Tablesort to use a specific sorting method, instead of the default sort it uses. 
            # You can see the method at: app/assets/javascripts/roster/sorts/fluency_sort.js
            %>
            <th class="language" data-sort-method="fluency_sort">
              <span class="table-header">Fluency</span>
            </th>
            <th class="language">
              <span class="table-header">Home Language</span>
            </th>
            <th class="free-reduced">
              <span class="table-header">Free/Reduced Lunch</span>
            </th>
            <% if @homeroom.show_star? %>
              <th class="star_math" data-sort-method="number">
                <span class="table-header">Percentile</span>
              </th>
              <th class="star_reading" data-sort-method="number">
                <span class="table-header">Percentile</span>
              </th>
            <% end %>
            <% if @homeroom.show_mcas? %>
              <th class="mcas_math" data-sort-method="mcas_sort">
                <span class="table-header">Performance</span>
              </th>
              <th class="mcas_math" data-sort-method="number">
                <span class="table-header">Growth</span>
              </th>
              <th class="mcas_ela" data-sort-method="mcas_sort">
                <span class="table-header">Performance</span>
              </th>
              <th class="mcas_ela" data-sort-method="number">
                <span class="table-header">Growth</span>
              </th>
            <% end %>
          </tr>
       </thead>
        <% if @rows.present? %>
          <!-- ROWS -->
          <% @rows.select{|row| row[:enrollment_status] == "Active"}.each do |row| %>

{'fraction_non_alphanumeric': 0.16707105719237436, 'fraction_numerical': 0.003292894280762565, 'mean_word_length': 1.9129227662796568, 'pattern_counts': {'":': 0, '<': 343, '<?xml version=': 0, '>': 343, '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': '2115607', 'n_tokens_mistral': 3613, 'n_tokens_neox': 3390, 'n_words': 693}