<commit_before><nav class="first-nav">
  <div class="scroll-none">
    <ul>
      <li class="nav-item"><a class="shape-house <% if controller?("landing") %>current<% end %>" href="/"><svg class="icon shape-house"><use xlink:href="#shape-house"></use></svg><span class="tooltip1 dark">Home</span></a></li>
      <li class="nav-item"><a class="shape-world <% if controller?("map") %>current<% end %>" href="/map"><svg class="icon shape-world"><use xlink:href="#shape-world"></use></svg><span class="tooltip1 dark"><em class="mobile-hide">GFW Interactive</em> Map</span></a></li>
      <li class="nav-item"><a class="shape-country <% if controller?("countries") %>current<% end %>" href="/countries"><svg class="icon shape-country"><use xlink:href="#shape-country"></use></svg><span class="tooltip1 dark">Country <em class="mobile-hide">profiles & rankings</em></span></a></li>
      <li class="nav-item"><a class="shape-blog" href="http://blog.globalforestwatch.org/"><svg class="icon shape-blog"><use xlink:href="#shape-blog"></use></svg><span class="tooltip1 dark">Blog</span></a></li>
      <li class="nav-item"><a class="shape-fire mobile-friendly" href="http://fires.globalforestwatch.org/" ><svg class="icon shape-fire"><use xlink:href="#shape-fire"></use></svg><span class="tooltip1 dark">Fires</span></a></li>
      <li class="nav-item"><a class="shape-commodities mobile-friendly" href="http://commodities.globalforestwatch.org/" ><svg class="icon shape-commodities"><use xlink:href="#shape-commodities"></use></svg><span class="tooltip1 dark">Commodities</span></a></li>
    </ul>
  </div>
  <button class="btn-menu mobile-show" id="btn-menu">
    <svg class="icon hamburguer"><use xlink:href="#shape-hamburger"></use></svg>
    <svg class="icon close"><use xlink:href="#shape-close"></use></svg>
    <span>Menu</span>
  </button>
</nav>
<nav class="second-nav mobile-hide">
  <div>
    <ul>
      <li class="nav-item">
        <a href="/howto" class="link <% if controller?("static") && action?("howto") %>current<% end %>">
          <svg class="icon"><use xlink:href="#shape-help"></use></svg>
          <span>How to</span>
        </a>
      </li>
      <li class="nav-item">
        <a href="http://data.globalforestwatch.org/" class="link <% if controller?("static") && action?("data") %>current<% end %>">
          <div class="home_data link">
            <svg class="icon"><use xlink:href="#shape-download"></use></svg>
            <span>Download data</span>
          </div>
        </a>
      </li>
      <li class="nav-item">
        <div class="link">
          <svg class="icon"><use xlink:href="#shape-hamburger"></use></svg>
          <span>Menu</span>
        </div>
        <ul class="submenu-tooltip top">
          <li><a href="/explore">Explore</a></li>
          <li><a href="/stayinformed">Stay informed</a></li>
          <li><a href="/getinvolved">Get involved</a></li>
          <li><a href="/howto">How to</a></li>
          <li><a href="/about">About</a></li>
        </ul>
      </li>
      <li class="nav-item">
        <a href="/my_gfw" class="link">
          <span>My GFW</span>
        </a>
        <ul class="submenu-tooltip top">
          <li><a href="#" id="connect-my-gfw">Log in</a></li>
        </ul>
      </li>
      <li class="nav-item">
        <div class="link">
          <form action="/search">
            <svg class="icon"><use xlink:href="#shape-search"></use></svg>
            <input type="text" name="query" id="search-input" placeholder="Search GFW website">
          </form>
        </div>
      </li>
      <li id="google_translate_element_box1"><div id="google_translate_element"></div></li>
    </ul>
  </div>
</nav><commit_msg>move global API var to header<commit_after><nav class="first-nav">
  <div class="scroll-none">
    <ul>
      <li class="nav-item"><a class="shape-house <% if controller?("landing") %>current<% end %>" href="/"><svg class="icon shape-house"><use xlink:href="#shape-house"></use></svg><span class="tooltip1 dark">Home</span></a></li>
      <li class="nav-item"><a class="shape-world <% if controller?("map") %>current<% end %>" href="/map"><svg class="icon shape-world"><use xlink:href="#shape-world"></use></svg><span class="tooltip1 dark"><em class="mobile-hide">GFW Interactive</em> Map</span></a></li>
      <li class="nav-item"><a class="shape-country <% if controller?("countries") %>current<% end %>" href="/countries"><svg class="icon shape-country"><use xlink:href="#shape-country"></use></svg><span class="tooltip1 dark">Country <em class="mobile-hide">profiles & rankings</em></span></a></li>
      <li class="nav-item"><a class="shape-blog" href="http://blog.globalforestwatch.org/"><svg class="icon shape-blog"><use xlink:href="#shape-blog"></use></svg><span class="tooltip1 dark">Blog</span></a></li>
      <li class="nav-item"><a class="shape-fire mobile-friendly" href="http://fires.globalforestwatch.org/" ><svg class="icon shape-fire"><use xlink:href="#shape-fire"></use></svg><span class="tooltip1 dark">Fires</span></a></li>
      <li class="nav-item"><a class="shape-commodities mobile-friendly" href="http://commodities.globalforestwatch.org/" ><svg class="icon shape-commodities"><use xlink:href="#shape-commodities"></use></svg><span class="tooltip1 dark">Commodities</span></a></li>
    </ul>
  </div>
  <button class="btn-menu mobile-show" id="btn-menu">
    <svg class="icon hamburguer"><use xlink:href="#shape-hamburger"></use></svg>
    <svg class="icon close"><use xlink:href="#shape-close"></use></svg>
    <span>Menu</span>
  </button>
</nav>
<nav class="second-nav mobile-hide">
  <div>
    <ul>
      <li class="nav-item">
        <a href="/howto" class="link <% if controller?("static") && action?("howto") %>current<% end %>">
          <svg class="icon"><use xlink:href="#shape-help"></use></svg>
          <span>How to</span>
        </a>
      </li>
      <li class="nav-item">
        <a href="http://data.globalforestwatch.org/" class="link <% if controller?("static") && action?("data") %>current<% end %>">
          <div class="home_data link">
            <svg class="icon"><use xlink:href="#shape-download"></use></svg>
            <span>Download data</span>
          </div>
        </a>
      </li>
      <li class="nav-item">
        <div class="link">
          <svg class="icon"><use xlink:href="#shape-hamburger"></use></svg>
          <span>Menu</span>
        </div>
        <ul class="submenu-tooltip top">
          <li><a href="/explore">Explore</a></li>
          <li><a href="/stayinformed">Stay informed</a></li>
          <li><a href="/getinvolved">Get involved</a></li>
          <li><a href="/howto">How to</a></li>
          <li><a href="/about">About</a></li>
        </ul>
      </li>
      <li class="nav-item">
        <a href="/my_gfw" class="link">
          <span>My GFW</span>
        </a>
        <ul class="submenu-tooltip top">
          <li><a href="#" id="connect-my-gfw">Log in</a></li>
        </ul>
      </li>
      <li class="nav-item">
        <div class="link">
          <form action="/search">
            <svg class="icon"><use xlink:href="#shape-search"></use></svg>
            <input type="text" name="query" id="search-input" placeholder="Search GFW website">
          </form>
        </div>
      </li>
      <li id="google_translate_element_box1"><div id="google_translate_element"></div></li>
    </ul>
  </div>
</nav>
<script>
    var gfw = window.gfw = {};
    window.gfw.config = { GFW_API_HOST: "<%= ENV['GFW_API_HOST'] %>" };
</script>
{'fraction_non_alphanumeric': 0.2351925630810093, 'fraction_numerical': 0.0018592297476759628, 'mean_word_length': 3.393815635939323, 'pattern_counts': {'":': 0, '<': 364, '<?xml version=': 0, '>': 364, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4905910', 'n_tokens_mistral': 2490, 'n_tokens_neox': 2434, 'n_words': 432}