<commit_before><div class="app_details">

<h3>List of Applications</h3>

<% $public = "true" %>

<% if @applications.nil? or @applications.empty? %>
  <p><b> No Applications that show </b></p>
<% else %>
  <table cellspacing=5>
    <tr align=center>
      <th></th>
      <th>Application</th>
      <th>Downloads:</th>
      <th><%= image_tag "win32.png", :alt => "Windows", :class => "option" %></th>
      <th><%= image_tag "linux.png", :alt => "GNU/Linux", :class => "option" %></th>
      <th><%= image_tag "mac.png", :alt => "Mac", :class => "option" %></th>
      <th><%= image_tag "multi.png", :alt => "Multiplatform", :class => "option" %></th>
      <th>Votes:</th>
      <th><%= image_tag "up.png", :alt => "Positive Votes", :class => "votes" %></th>
      <th><%= image_tag "down.png", :alt => "Negative Votes", :class => "votes" %></th>
    </tr>

  <% for application in @applications %>
    <% @download = Download.find_by_application_id(application.id) %>
    <tr align=center>
      <td>
        <% if application.tag_list.nil? or application.tag_list.empty? %>
          <% $public = "false" %>
          <%= image_tag "aviso.png", :alt => "Aviso", :width => "32", :height => "28" %>
        <% end %>
      </td>
      <td align=left>
        <%= link_to application.name, application_path("search", application), :title => "Show" %>
      </td>
      <td>
        <b><%= @download.windows + @download.linux + @download.mac + @download.multiplatform if !@download.nil? %></b>
      </td>
      <td>
        <%= @download.windows if !@download.nil? %>
      </td>
      <td>
        <%= @download.linux if !@download.nil? %>
      </td>
      <td>
        <%= @download.mac if !@download.nil? %>
      </td>
      <td>
        <%= @download.multiplatform if !@download.nil? %>
      </td>
      <td>
        <b><%= application.vote_up + application.vote_down%></b>
      </td>
      <td>
        <%= application.vote_up %>
      </td>
      <td>
        <%= application.vote_down %>
      </td>
      <td>
        <%= link_to (image_tag "edit.png", :alt => "Edit", :class => "option"), edit_application_path("search", application), :title => "Edit" %>
        <%= link_to 'Edit', edit_application_path("search", application) %>
      </td>
      <td><commit_msg>En el listado de aplicaciones se muestra el número de votos y la puntuación media obtenida<commit_after><div class="app_details">

<h3>List of Applications</h3>

<% $public = "true" %>

<% if @applications.nil? or @applications.empty? %>
  <p><b> No Applications that show </b></p>
<% else %>
  <table cellspacing=5>
    <tr align=center>
      <th></th>
      <th>Application</th>
      <th>Downloads:</th>
      <th><%= image_tag "win32.png", :alt => "Windows", :class => "option" %></th>
      <th><%= image_tag "linux.png", :alt => "GNU/Linux", :class => "option" %></th>
      <th><%= image_tag "mac.png", :alt => "Mac", :class => "option" %></th>
      <th><%= image_tag "multi.png", :alt => "Multiplatform", :class => "option" %></th>
      <th>Votes</th>
      <th>Score</th>
      <!-- 
      <th>Votes:</th> 
      <th><%= image_tag "up.png", :alt => "Positive Votes", :class => "votes" %></th>
      <th><%= image_tag "down.png", :alt => "Negative Votes", :class => "votes" %></th>
      -->
    </tr>

  <% for application in @applications %>
    <% @download = Download.find_by_application_id(application.id) %>
    <tr align=center>
      <td>
        <% if application.tag_list.nil? or application.tag_list.empty? %>
          <% $public = "false" %>
          <%= image_tag "aviso.png", :alt => "Aviso", :width => "32", :height => "28" %>
        <% end %>
      </td>
      <td align=left>
        <%= link_to application.name, application_path("search", application), :title => "Show" %>
      </td>
      <td>
        <b><%= @download.windows + @download.linux + @download.mac + @download.multiplatform if !@download.nil? %></b>
      </td>
      <td>
        <%= @download.windows if !@download.nil? %>
      </td>
      <td>
        <%= @download.linux if !@download.nil? %>
      </td>
      <td>
        <%= @download.mac if !@download.nil? %>
      </td>
      <td>
        <%= @download.multiplatform if !@download.nil? %>
      </td>
      <td>
        <b><%= application.ratings.size %></b>
      </td>
      <td>
        <b><%= number_with_precision(application.rating, 1) %></b>
      </td>
      <!--
      <td>
        <b><%#= application.vote_up + application.vote_down%></b>
      </td>
      <td>
        <%#= application.vote_up %>
      </td>
      <td>
        <%#= application.vote_down %>
      </td>
      -->
      <td>
        <%= link_to (image_tag "edit.png", :alt => "Edit", :class => "option"), edit_application_path("search", application), :title => "Edit" %>
        <%= link_to 'Edit', edit_application_path("search", application) %>
      </td>
      <td>
{'fraction_non_alphanumeric': 0.22174447174447173, 'fraction_numerical': 0.0038902538902538903, 'mean_word_length': 2.4645390070921986, 'pattern_counts': {'":': 0, '<': 187, '<?xml version=': 0, '>': 225, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 32, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5661396', 'n_tokens_mistral': 1801, 'n_tokens_neox': 1697, 'n_words': 367}