<commit_before><% content_for :css do %>
  <%= stylesheet_link_tag "countries" %>

  <style>
    .header-logo {
      position: absolute;
      left: 10px;
    }
  </style>
<% end %>
<% content_for :js do %>
  <%= javascript_include_tag "countries" %>
  <script>
    $(function() {
      cdb.init(function() {
        window.countries_show = new gfw.ui.view.CountriesShow({
          iso: "<%= @country['iso'] %>"
        });
      });
    });
  </script>
<% end %>

<% content_for :css do %>
  <link rel="stylesheet" href="http://libs.cartocdn.com/cartodb.js/v3/themes/css/cartodb.css" />
<% end %>

<div class="country-show">
  <!-- header -->
  <div class="country-title embed-country-title">
    <h1><%= @country['name'] %></h1>
  </div>
  <!-- forma alerts -->
  <section class="country-section country-alerts" data-scroll-index='0' style="display:none">
    <div class="inner">
      <div class="section-info">
        FORMA alerts
        <a href="#" class="info" data-source="forma"><i></i></a>
      </div>

      <div class="section-content" id="formaAlertsContent">
        <div class="left-col">
          <h3 class="section-title" id="formaAlertsTitle">There were <span class="highlight amount"></span> FORMA alerts in <span class="highlight month"></span></h3>

          <div class="forma-alerts-legend">
            <span class="legend-title">Forest Clearing Alerts</span>
            <span>Humid Tropics</span>
          </div>

          <div class="forma_dropdown-menu">
            <ul>
              <li> <ul>
              <li><a href='http://wri-01.cartodb.com/api/v1/sql?q=SELECT+f.%2A+FROM+forma_api+f+WHERE+f.date+%3E%3D+%272014-01-01%27%3A%3Adate+AND+f.date+%3C%3D+%272015-01-01%27%3A%3Adate+AND+f.iso+%3D+UPPER%28%27<%= @country['iso'] %>%27%29&version=v1&format=SVG'>SVG</a></li>
              <li><a href='http://wri-01.cartodb.com/api/v1/sql?q=SELECT+f.%2A+FROM+forma_api+f+WHERE+f.date+%3E%3D+%272014-01-01%27%3A%3Adate+AND+f.date+%3C%3D+%272015-01-01%27%3A%3Adate+AND+f.iso+%3D+UPPER%28%27<%= @country['iso'] %>%27%29&version=v1&format=geojson'>GeoJSON</a></li>
              <li><a href='http://wri-01.cartodb.com/api/v1/sql?q=SELECT+f.%2A+FROM+forma_api+f+WHERE+f.date+%3E%3D+%272014-01-01%27%3A%3Adate+AND+f.date+%3C%3D+%272015-01-01%27%3A%3Adate+AND+f.iso+%3D+UPPER%28%27<%= @country['iso'] %>%27%29&version=v1&format=shp'>SHP</a></li>
              <li><a href='http://wri-01.cartodb.com/api/v1/sql?q=SELECT+f.%2A+FROM+forma_api+f+WHERE+f.date+%3E%3D+%272014-01-01%27%3A%3Adate+AND+f.date+%3C%3D+%272015-01-01%27%3A%3Adate+AND+f.iso+%3D+UPPER%28%27<%= @country['iso'] %>%27%29&version=v1&format=kml'>KML</a></li>
              <li><a href='http://wri-01.cartodb.com/api/v1/sql?q=SELECT+f.%2A+FROM+forma_api+f+WHERE+f.date+%3E%3D+%272014-01-01%27%3A%3Adate+AND+f.date+%3C%3D+%272015-01-01%27%3A%3Adate+AND+f.iso+%3D+UPPER%28%27<%= @country['iso'] %>%27%29&version=v1&format=csv'>CSV</a></li>
            </ul>
          </div>
          <a href="#" class="btn-rdn btn-rdn-primary forma_dropdown-link">Download data</a>
        </div>

        <div class="right-col">
          <div class="forma-graph"></div>
        </div>
      </div>
    </div>
  </section>
<commit_msg>fix forma download dates in country page embeds<commit_after><% content_for :css do %>
  <%= stylesheet_link_tag "countries" %>

  <style>
    .header-logo {
      position: absolute;
      left: 10px;
    }
  </style>
<% end %>
<% content_for :js do %>
  <%= javascript_include_tag "countries" %>
  <script>
    $(function() {
      cdb.init(function() {
        window.countries_show = new gfw.ui.view.CountriesShow({
          iso: "<%= @country['iso'] %>"
        });
      });
    });
  </script>
<% end %>

<% content_for :css do %>
  <link rel="stylesheet" href="http://libs.cartocdn.com/cartodb.js/v3/themes/css/cartodb.css" />
<% end %>

<div class="country-show">
  <!-- header -->
  <div class="country-title embed-country-title">
    <h1><%= @country['name'] %></h1>
  </div>
  <!-- forma alerts -->
  <section class="country-section country-alerts" data-scroll-index='0' style="display:none">
    <div class="inner">
      <div class="section-info">
        FORMA alerts
        <a href="#" class="info" data-source="forma"><i></i></a>
      </div>

      <div class="section-content" id="formaAlertsContent">
        <div class="left-col">
          <h3 class="section-title" id="formaAlertsTitle">There were <span class="highlight amount"></span> FORMA alerts in <span class="highlight month"></span></h3>

          <div class="forma-alerts-legend">
            <span class="legend-title">Forest Clearing Alerts</span>
            <span>Humid Tropics</span>
          </div>

          <div class="forma_dropdown-menu">
            <ul>
              <li> <ul>
              <li><a href='http://wri-01.cartodb.com/api/v1/sql?q=SELECT+f.%2A+FROM+forma_api+f+WHERE+f.date+%3E%3D+%272006-01-01%27%3A%3Adate+AND+f.date+%3C%3D+%272015-01-01%27%3A%3Adate+AND+f.iso+%3D+UPPER%28%27<%= @country['iso'] %>%27%29&version=v1&format=SVG'>SVG</a></li>
              <li><a href='http://wri-01.cartodb.com/api/v1/sql?q=SELECT+f.%2A+FROM+forma_api+f+WHERE+f.date+%3E%3D+%272006-01-01%27%3A%3Adate+AND+f.date+%3C%3D+%272015-01-01%27%3A%3Adate+AND+f.iso+%3D+UPPER%28%27<%= @country['iso'] %>%27%29&version=v1&format=geojson'>GeoJSON</a></li>
              <li><a href='http://wri-01.cartodb.com/api/v1/sql?q=SELECT+f.%2A+FROM+forma_api+f+WHERE+f.date+%3E%3D+%272006-01-01%27%3A%3Adate+AND+f.date+%3C%3D+%272015-01-01%27%3A%3Adate+AND+f.iso+%3D+UPPER%28%27<%= @country['iso'] %>%27%29&version=v1&format=shp'>SHP</a></li>
              <li><a href='http://wri-01.cartodb.com/api/v1/sql?q=SELECT+f.%2A+FROM+forma_api+f+WHERE+f.date+%3E%3D+%272006-01-01%27%3A%3Adate+AND+f.date+%3C%3D+%272015-01-01%27%3A%3Adate+AND+f.iso+%3D+UPPER%28%27<%= @country['iso'] %>%27%29&version=v1&format=kml'>KML</a></li>
              <li><a href='http://wri-01.cartodb.com/api/v1/sql?q=SELECT+f.%2A+FROM+forma_api+f+WHERE+f.date+%3E%3D+%272006-01-01%27%3A%3Adate+AND+f.date+%3C%3D+%272015-01-01%27%3A%3Adate+AND+f.iso+%3D+UPPER%28%27<%= @country['iso'] %>%27%29&version=v1&format=csv'>CSV</a></li>
            </ul>
          </div>
          <a href="#" class="btn-rdn btn-rdn-primary forma_dropdown-link">Download data</a>
        </div>

        <div class="right-col">
          <div class="forma-graph"></div>
        </div>
      </div>
    </div>
  </section>

{'fraction_non_alphanumeric': 0.23241400681747754, 'fraction_numerical': 0.0737527114967462, 'mean_word_length': 3.5203081232492996, 'pattern_counts': {'":': 0, '<': 173, '<?xml version=': 0, '>': 173, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 3, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2130047', 'n_tokens_mistral': 3015, 'n_tokens_neox': 2706, 'n_words': 273}