<commit_before><% if @has_news %>
  <h1><%= _('News') %></h1>
  <% cache @news_cache_key do %>
    <div id='highlighted-news'>
      <% @highlighted_news.each_with_index do |highlighted, index| %>
        <div class='highlighted-news-item post-<%= index + 1 %>'>
          <div class='highlighted-news-item post-<%= index + 1 %>-inner'>
            <h2><%= link_to(h(highlighted.title), highlighted.url, :class => 'post-title') %></h2>
            <span class="post-date"><%= show_date(highlighted.published_at, true) %> </span>
            <div class='headline'><%= highlighted.lead %></div>
            <p class='highlighted-news-read-more'>
              <%= link_to(_('Read more'), highlighted.url) %>
            </p>
            <br style='clear:both' />
          </div>
        </div>
      <% end %>
    </div>

    <div class='sep'></div>

    <div id='portal-news'>
      <ul>
        <% @portal_news.each do |news| %>
          <li>
          <span class="post-date"><%= show_date(news.published_at, true) %> </span>
          <%= link_to(h(news.title), news.url, :class =>  'post-title' ) %>
          </li>
        <% end %>
      </ul>
    </div>

    <div class='sep'></div>

    <% @area_news.each_with_index do |folder, i| %>
      <%= content_tag(:div, :class => ["news-area", ['even', 'odd'][i%2]].join(' ')) do %>
        <%= content_tag(:div, :class => 'news-area-inner-1') do %>
          <%= content_tag(:div, :class => 'news-area-inner-2') do %>
            <h3><%= link_to h(folder.title), folder.url %></h3>
            <ul>
              <% folder.news(environment.news_amount_by_folder).each do |news| %>
                <li> <%= link_to(h(news.title), news.url) %></li>
              <% end%>
            </ul>
            <%= link_to _('View more'), folder.url, :class => 'news-see-more'  %>
          <% end %>
        <% end %>
      <% end %>
    <% end %>
  <% end %>
<% else %>
  <%= environment.description %>
<% end %>

<% if environment.enabled?('search_in_home') %>
  <div id='home-search' style='text-align: center'>
    <%= form_tag :controller => 'search', :action => 'index' do %>

      <div id='search-field' style='text-align: center;'>
        <%= text_field_tag('query', '', :size => 50) %>
        <%= submit_button(:search, _('Search')) %>
      </div>

      <div>
        <%= lightbox_link_to _('More options'), :controller => 'search', :action => 'popup' %>
      </div>
    <% end %>
  </div>
<% end %>

<br style='clear: both'/><commit_msg>remove 'more options' on home search-form (action popup already doesn't exist) AI3261<commit_after><% if @has_news %>
  <h1><%= _('News') %></h1>
  <% cache @news_cache_key do %>
    <div id='highlighted-news'>
      <% @highlighted_news.each_with_index do |highlighted, index| %>
        <div class='highlighted-news-item post-<%= index + 1 %>'>
          <div class='highlighted-news-item post-<%= index + 1 %>-inner'>
            <h2><%= link_to(h(highlighted.title), highlighted.url, :class => 'post-title') %></h2>
            <span class="post-date"><%= show_date(highlighted.published_at, true) %> </span>
            <div class='headline'><%= highlighted.lead %></div>
            <p class='highlighted-news-read-more'>
              <%= link_to(_('Read more'), highlighted.url) %>
            </p>
            <br style='clear:both' />
          </div>
        </div>
      <% end %>
    </div>

    <div class='sep'></div>

    <div id='portal-news'>
      <ul>
        <% @portal_news.each do |news| %>
          <li>
          <span class="post-date"><%= show_date(news.published_at, true) %> </span>
          <%= link_to(h(news.title), news.url, :class =>  'post-title' ) %>
          </li>
        <% end %>
      </ul>
    </div>

    <div class='sep'></div>

    <% @area_news.each_with_index do |folder, i| %>
      <%= content_tag(:div, :class => ["news-area", ['even', 'odd'][i%2]].join(' ')) do %>
        <%= content_tag(:div, :class => 'news-area-inner-1') do %>
          <%= content_tag(:div, :class => 'news-area-inner-2') do %>
            <h3><%= link_to h(folder.title), folder.url %></h3>
            <ul>
              <% folder.news(environment.news_amount_by_folder).each do |news| %>
                <li> <%= link_to(h(news.title), news.url) %></li>
              <% end%>
            </ul>
            <%= link_to _('View more'), folder.url, :class => 'news-see-more'  %>
          <% end %>
        <% end %>
      <% end %>
    <% end %>
  <% end %>
<% else %>
  <%= environment.description %>
<% end %>

<% if environment.enabled?('search_in_home') %>
  <div id='home-search' style='text-align: center'>
    <%= form_tag :controller => 'search', :action => 'index' do %>

      <div id='search-field' style='text-align: center;'>
        <%= text_field_tag('query', '', :size => 50) %>
        <%= submit_button(:search, _('Search')) %>
      </div>

    <% end %>
  </div>
<% end %>

<br style='clear: both'/>
{'fraction_non_alphanumeric': 0.22289644012944984, 'fraction_numerical': 0.006067961165048544, 'mean_word_length': 2.281353682813537, 'pattern_counts': {'":': 0, '<': 162, '<?xml version=': 0, '>': 182, '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': '96832', 'n_tokens_mistral': 1841, 'n_tokens_neox': 1661, 'n_words': 323}