<commit_before>  <br><br>
  <% module_projects = @project.module_projects %>
  <% @alphabet = %w(A B C D E F G H I J K L M N O P Q R S T U V W X Y Z) %>

  <% unless module_projects.empty? %>
    <table class="table table-condensed table-bordered" style="width: auto;">
      <tr>
        <th></th>
        <% for x in 1..@module_positions_x.to_i do %>
            <th><h4><%= @alphabet[x-1] %></h4></th>
        <% end %>
      </tr>

        <% for y in 1..@module_positions do %>
          <tr>
            <td class="line_number" style="max-width: 40px; vertical-align: middle;">
                <h4 style="text-align: center;"><%= y %></h4>
            </td>

            <% for x in 1..@module_positions_x.to_i do %>
              <td class="module_bloc_size" style="vertical-align: middle;">
                <% pmod = @project.module_projects.where("position_x = ? AND position_y = ?", x, y).first %>

                <% unless pmod.nil? %>

                  <% if @pbs_project_element %>
                    <% if pmod.pbs_project_elements.map(&:id).include?(@pbs_project_element.id) %>
                      <% pbs_class = 'highlight' %>
                    <% end %>
                  <% end %>

                  <div class="<%= pbs_class %> module_window  <%= "#{pmod.pemodule.alias}_#{pmod.position_x}_#{pmod.position_y}" %> ">
                      <%= link_to pmod.pemodule.title, edit_module_project_path(pmod.id), :title => "#{pmod.pemodule.title}: \n #{pmod.pemodule.description}" %>
                      <br>
                      <%= link_to '', pemodules_left_path(pmod.id), :class => 'icon-arrow-left' %>
                      <%= link_to '', pemodules_up_path(pmod.id), :class => 'icon-arrow-up' %>
                      <%= link_to '', pmod, confirm: I18n.t('are_you_sur'), method: :delete, :class => 'icon-trash' %>
                      <%= link_to '', pemodules_down_path(pmod.id), :class => 'icon-arrow-down' %>
                      <%= link_to '', pemodules_right_path(pmod.id), :class => 'icon-arrow-right' %>
                  </div>

                  <%= render :partial => 'projects/estimation_paths', :locals => { :pmod => pmod } %>
                <% end %>
              </td>
            <% end %>
          </tr><commit_msg>Correcting module highlight on compatible Modules with PBS: refs #466<commit_after>  <br><br>
  <% module_projects = @project.module_projects %>
  <% @alphabet = %w(A B C D E F G H I J K L M N O P Q R S T U V W X Y Z) %>

  <% unless module_projects.empty? %>
    <table class="table table-condensed table-bordered" style="width: auto;">
      <tr>
        <th></th>
        <% for x in 1..@module_positions_x.to_i do %>
            <th><h4><%= @alphabet[x-1] %></h4></th>
        <% end %>
      </tr>

        <% for y in 1..@module_positions do %>
          <tr>
            <td class="line_number" style="max-width: 40px; vertical-align: middle;">
                <h4 style="text-align: center;"><%= y %></h4>
            </td>

            <% for x in 1..@module_positions_x.to_i do %>
              <td class="module_bloc_size" style="vertical-align: middle;">
                <% pmod = @project.module_projects.where("position_x = ? AND position_y = ?", x, y).first %>

                <% unless pmod.nil? %>
                  <% if @pbs_project_element %>
                    <% if pmod.pbs_project_elements.map(&:id).include?(@pbs_project_element.id) %>
                      <% pbs_class = 'highlight' %>
                    <% else %>
                        <% pbs_class= "" %>
                    <% end %>
                  <% end %>

                  <div class="<%= pbs_class %> module_window  <%= "#{pmod.pemodule.alias}_#{pmod.position_x}_#{pmod.position_y}" %> ">
                      <%= link_to pmod.pemodule.title, edit_module_project_path(pmod.id), :title => "#{pmod.pemodule.title}: \n #{pmod.pemodule.description}" %>
                      <br>
                      <%= link_to '', pemodules_left_path(pmod.id), :class => 'icon-arrow-left' %>
                      <%= link_to '', pemodules_up_path(pmod.id), :class => 'icon-arrow-up' %>
                      <%= link_to '', pmod, confirm: I18n.t('are_you_sur'), method: :delete, :class => 'icon-trash' %>
                      <%= link_to '', pemodules_down_path(pmod.id), :class => 'icon-arrow-down' %>
                      <%= link_to '', pemodules_right_path(pmod.id), :class => 'icon-arrow-right' %>
                  </div>

                  <%= render :partial => 'projects/estimation_paths', :locals => { :pmod => pmod } %>
                <% end %>
              </td>
            <% end %>
          </tr>
{'fraction_non_alphanumeric': 0.17567567567567569, 'fraction_numerical': 0.005791505791505791, 'mean_word_length': 1.7526564344746163, 'pattern_counts': {'":': 0, '<': 103, '<?xml version=': 0, '>': 121, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 6, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5385674', 'n_tokens_mistral': 1670, 'n_tokens_neox': 1456, 'n_words': 294}