<commit_before><div class="row">
  <div class="col-md-4">
    <%
      open, close = @spot.values_at(:global_ppi_24h_ago, :global_ppi)
      if open && close
        diff = close - open
        percent = open == 0 ? 0.0 : (diff / close * 100.0)
        css_class = diff >= 0 ? "positive" : "negative"
    %>
      <h2 id="current-ppi">
        <strong><%= close.round(2) %></strong>
        <span class="diff <%= css_class %>"><%= diff.round(2) %> (<%= percent.round(2) %>%)</span>
      </h2>
      <p>
        Number of Big Macs 1 bitcoin buys you<br>
        <%= @spot[:tick].strftime("%b %-d, %H:%M UTC") %> close and 1 day change
      </p>
    <% end %>
  </div>
  <!-- AddToAny BEGIN -->
  <div class="col-md-4 a2a_kit a2a_kit_size_32 a2a_default_style">
    <a class="a2a_button_twitter"></a>
    <a class="a2a_button_reddit"></a>
    <a class="a2a_button_hacker_news"></a>
    <a class="a2a_button_facebook"></a>
    <a class="a2a_button_google_plus"></a>
  </div>
  <!-- AddToAny END -->
</div>

<div class="row">
  <div id="chart" class="col-md-9 chart"></div>
  <div id="legend" class="col-md-3 legend">
  </div>
</div>

<div class="row">
  <div class="col-md-12">
    <%= content(:landingpage).sub("{{vol_30d_chart}}", yield_content(:vol_30d_chart)) %>
  </div>
</div>

<% content_for :navbar do %>
  <form id="timeframe-form" class="navbar-form navbar-left" role="search" method="GET">
    <input type="hidden" name="from" value="<%= @timeseries.from_truncated.strftime("%Y-%m-%d %H:%M") %>">
    <input type="hidden" name="to" value="<%= @timeseries.to_truncated.strftime("%Y-%m-%d %H:%M") %>">

    <div class="form-group" style="cursor: pointer">
      <div id="daterangepicker" class="input-group">
        <div class="input-group-addon"><i class="glyphicon glyphicon-calendar"></i></div>
        <div class="form-control display">
          <%= @timeseries.from_truncated.strftime("%Y-%m-%d %H:%M") %> - <%= @timeseries.to_truncated.strftime("%Y-%m-%d %H:%M") %>
        </div>
      </div>

      <button id="download-csv" class="btn btn-default"><i class="glyphicon glyphicon-download-alt"></i> Download CSV</button>
    </div>
  </form>
<% end %>

<% content_for :head do %>
  <link rel="stylesheet" href="//cdn.jsdelivr.net/bootstrap.daterangepicker/2/daterangepicker.css"/>
  <style><commit_msg>Social sharing buttons on the right<commit_after><div class="row">
  <div class="col-md-4">
    <%
      open, close = @spot.values_at(:global_ppi_24h_ago, :global_ppi)
      if open && close
        diff = close - open
        percent = open == 0 ? 0.0 : (diff / close * 100.0)
        css_class = diff >= 0 ? "positive" : "negative"
    %>
      <h2 id="current-ppi">
        <strong><%= close.round(2) %></strong>
        <span class="diff <%= css_class %>"><%= diff.round(2) %> (<%= percent.round(2) %>%)</span>
      </h2>
      <p>
        Number of Big Macs 1 bitcoin buys you<br>
        <%= @spot[:tick].strftime("%b %-d, %H:%M UTC") %> close and 1 day change
      </p>
    <% end %>
  </div>
  <!-- AddToAny BEGIN -->
  <div class="col-md-4 pull-right a2a_kit a2a_kit_size_32 a2a_default_style">
    <a class="a2a_button_google_plus pull-right"></a>
    <a class="a2a_button_facebook pull-right"></a>
    <a class="a2a_button_hacker_news pull-right"></a>
    <a class="a2a_button_reddit pull-right"></a>
    <a class="a2a_button_twitter pull-right"></a>
  </div>
  <!-- AddToAny END -->
</div>

<div class="row">
  <div id="chart" class="col-md-9 chart"></div>
  <div id="legend" class="col-md-3 legend">
  </div>
</div>

<div class="row">
  <div class="col-md-12">
    <%= content(:landingpage).sub("{{vol_30d_chart}}", yield_content(:vol_30d_chart)) %>
  </div>
</div>

<% content_for :navbar do %>
  <form id="timeframe-form" class="navbar-form navbar-right" role="search" method="GET">
    <input type="hidden" name="from" value="<%= @timeseries.from_truncated.strftime("%Y-%m-%d %H:%M") %>">
    <input type="hidden" name="to" value="<%= @timeseries.to_truncated.strftime("%Y-%m-%d %H:%M") %>">

    <div class="form-group" style="cursor: pointer">
      <div id="daterangepicker" class="input-group">
        <div class="input-group-addon"><i class="glyphicon glyphicon-calendar"></i></div>
        <div class="form-control display">
          <%= @timeseries.from_truncated.strftime("%Y-%m-%d %H:%M") %> - <%= @timeseries.to_truncated.strftime("%Y-%m-%d %H:%M") %>
        </div>
      </div>

      <button id="download-csv" class="btn btn-default"><i class="glyphicon glyphicon-download-alt"></i> Download CSV</button>
    </div>
  </form>
<% end %>

<% content_for :head do %>
  <link rel="stylesheet" href="//cdn.jsdelivr.net/bootstrap.daterangepicker/2/daterangepicker.css"/>
  <style>
{'fraction_non_alphanumeric': 0.21874338904167548, 'fraction_numerical': 0.016077850645229534, 'mean_word_length': 3.4022346368715084, 'pattern_counts': {'":': 0, '<': 147, '<?xml version=': 0, '>': 149, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 6, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '198366', 'n_tokens_mistral': 1860, 'n_tokens_neox': 1734, 'n_words': 328}