<commit_before><% content_for :title do
  t('.title')
end %>

<% content_for :js do %>

  <script type="text/javascript">
    var summary = { count: "<%= number_with_delimiter(@alerts_count) %>", title: "Forest clearing alerts in the last six months" }
  </script>

<% end %>

<% content_for :download do %>
<div class="download">
  <div class="inner">
    <%= content_tag :h1, (raw t('layouts.application.footer.download.title', :url => "/countries")) %>
    <%= content_tag :p, (raw t('layouts.application.footer.download.data_html', :url => "/sources")) %>
</div>
</div>
<% end %>


<% content_for :filters do %>
<div id="filters"><%= render "common/filters" %></div>
<% end %>

<%= render "common/map" %>
<%= render "common/crowdsourcing" %>

<div class="actions">
  <ul>
    <li class="community">
    <div class="icon"></div>
    <h2><%= t('.icons.community.title') %></h2>
    <p><%= t('.icons.community.text') %></p>
    <a href="https://groups.google.com/forum/?fromgroups#!forum/gfw2" class="btn green white_glow community" target="_blank"><span><%= t('.icons.community.link') %></span></a>
    </li>

    <li class="analysis">
    <div class="icon"></div>
    <h2><%= t('.icons.analysis.title') %></h2>
    <p><%= t('.icons.analysis.text') %></p>
    <%= link_to (content_tag :span, t('.icons.analysis.link')), {}, :class => "btn green white_glow analysis" %>
    </li>

    <li class="keep_updated">
    <div class="icon"></div>
    <h2><%= t('.icons.keep_updated.title') %></h2>
    <p><%= t('.icons.keep_updated.text') %></p>
    <%= link_to (content_tag :span, t('.icons.keep_updated.link')), {}, :class => "btn green white_glow subscribe" %>
    </li>
  </ul>
</div>

<div class="home-stories">

  <h3>Stories behind forest clearing</h3>
  <p>Browse <%= link_to "all stories", stories_path%> or <%= link_to "submit yours", new_story_path %>. Participate in detecting forest change.</p>

  <ul>
    <% @featured.each do |story| %>
      <li>
      <a href="<%= story_path(story) %>">
        <%= image_tag(story_image_or_map(story)) %>
        <div class="gradient"></div>
        <div class="frame"></div>
        <div class="title">
          <span><%= story.title %></span>
          <%= content_tag :strong, 'Read more' %>
        </div>
      </a>

      </li>
    <% end %>
  </ul>

</div>

<commit_msg>Retitled "Stories behind forest change" section in home page<commit_after><% content_for :title do
  t('.title')
end %>

<% content_for :js do %>

  <script type="text/javascript">
    var summary = { count: "<%= number_with_delimiter(@alerts_count) %>", title: "Forest clearing alerts in the last six months" }
  </script>

<% end %>

<% content_for :download do %>
<div class="download">
  <div class="inner">
    <%= content_tag :h1, (raw t('layouts.application.footer.download.title', :url => "/countries")) %>
    <%= content_tag :p, (raw t('layouts.application.footer.download.data_html', :url => "/sources")) %>
</div>
</div>
<% end %>


<% content_for :filters do %>
<div id="filters"><%= render "common/filters" %></div>
<% end %>

<%= render "common/map" %>
<%= render "common/crowdsourcing" %>

<div class="actions">
  <ul>
    <li class="community">
    <div class="icon"></div>
    <h2><%= t('.icons.community.title') %></h2>
    <p><%= t('.icons.community.text') %></p>
    <a href="https://groups.google.com/forum/?fromgroups#!forum/gfw2" class="btn green white_glow community" target="_blank"><span><%= t('.icons.community.link') %></span></a>
    </li>

    <li class="analysis">
    <div class="icon"></div>
    <h2><%= t('.icons.analysis.title') %></h2>
    <p><%= t('.icons.analysis.text') %></p>
    <%= link_to (content_tag :span, t('.icons.analysis.link')), {}, :class => "btn green white_glow analysis" %>
    </li>

    <li class="keep_updated">
    <div class="icon"></div>
    <h2><%= t('.icons.keep_updated.title') %></h2>
    <p><%= t('.icons.keep_updated.text') %></p>
    <%= link_to (content_tag :span, t('.icons.keep_updated.link')), {}, :class => "btn green white_glow subscribe" %>
    </li>
  </ul>
</div>

<div class="home-stories">

  <h3>Submit your story about forest change</h3>
  <p>Browse <%= link_to "all stories", stories_path%> or <%= link_to "submit yours", new_story_path %>. Participate in detecting forest change.</p>

  <ul>
    <% @featured.each do |story| %>
      <li>
      <a href="<%= story_path(story) %>">
        <%= image_tag(story_image_or_map(story)) %>
        <div class="gradient"></div>
        <div class="frame"></div>
        <div class="title">
          <span><%= story.title %></span>
          <%= content_tag :strong, 'Read more' %>
        </div>
      </a>

      </li>
    <% end %>
  </ul>

</div>


{'fraction_non_alphanumeric': 0.23224159931943852, 'fraction_numerical': 0.004253509145044662, 'mean_word_length': 3.4833174451858913, 'pattern_counts': {'":': 0, '<': 183, '<?xml version=': 0, '>': 191, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 8, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '899397', 'n_tokens_mistral': 1780, 'n_tokens_neox': 1640, 'n_words': 360}