<commit_before><% if cookies[:hide_matrix].nil? %>

  <div class="banner">
    <span class="banner-content">
      <%= t('.hide_matrix_description') %>
    </span>

    <span class="banner-button">
      <%= link_to(t('global.show'), params.merge(hide: false), class: 'btn primary') %>
      <%= link_to(t('global.hide'), params.merge(hide: true), class: 'btn primary') %>
    </span>
  </div>

<% elsif cookies[:hide_matrix] == 'true' %>

  <p class="hide-matrix-description">
    <%= t('.you_chose_to_hide') %>
    <%= link_to(params.merge(hide: false)) do %>
      <%= t('.like_to_show') %>
    <% end %>
  </p>

<% elsif cookies[:hide_matrix] == 'false' %>

  <p class="hide-matrix-description">
    <%= t('.you_chose_to_show') %>
    <%= link_to(params.merge(hide: true)) do %>
      <%= t('.like_to_hide') %>
    <% end %>
  </p>

<% end %><commit_msg>Hide matrix: remove params to avoid XSS<commit_after><% if cookies[:hide_matrix].nil? %>

  <div class="banner">
    <span class="banner-content">
      <%= t('.hide_matrix_description') %>
    </span>

    <span class="banner-button">
      <%= link_to(t('global.show'), { hide: false }, class: 'btn primary') %>
      <%= link_to(t('global.hide'), { hide: true }, class: 'btn primary') %>
    </span>
  </div>

<% elsif cookies[:hide_matrix] == 'true' %>

  <p class="hide-matrix-description">
    <%= t('.you_chose_to_hide') %>
    <%= link_to(hide: false) do %>
      <%= t('.like_to_show') %>
    <% end %>
  </p>

<% elsif cookies[:hide_matrix] == 'false' %>

  <p class="hide-matrix-description">
    <%= t('.you_chose_to_show') %>
    <%= link_to(hide: true) do %>
      <%= t('.like_to_hide') %>
    <% end %>
  </p>

<% end %>
{'fraction_non_alphanumeric': 0.23907910271546634, 'fraction_numerical': 0.0, 'mean_word_length': 3.3350383631713556, 'pattern_counts': {'":': 0, '<': 53, '<?xml version=': 0, '>': 53, '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': '5661345', 'n_tokens_mistral': 682, 'n_tokens_neox': 620, 'n_words': 106}