<commit_before><div class="row">

  <div class="col-md-7">
    <!-- Nav tabs -->
    <ul class="nav nav-tabs" role="tablist">
      <li class="active"><a href="#block" role="tab" data-toggle="tab">Blocks</a></li>
      <li><a href="#transaction" role="tab" data-toggle="tab">Transactions</a></li>
    </ul>

    <!-- Tab panes -->
    <div class="tab-content">
      <div class="tab-pane active" id="block">
        <div class="last_block">
          <script id="block-template" type="text/x-handlebars-template">
            <div class="block">
              <span class="block_num">Block No. {{height}}</span>
              <ul class="clearfix">
                <li>
                  <h5>Height</h5>
                  <span>{{height}}</span>
                </li>
                <li>
                  <h5>Num. Tx.</h5>
                  <span>{{num_tx}}</span>
                </li>
                <li>
                  <h5>Timestamp</h5>
                  <span>{{timestamp}}</span>
                </li>
                <li>
                  <h5>Created At</h5>
                  <span>{{created_at}}</span>
                </li>
              </ul>
              <div class="clearfix block_hash">
                <h5>Block Hash</h5>
                <a href="/api/blocks/{{hash}}" target="_blank"><span>{{hash}}</span></a>
              </div>
            </div>
          </script>
          <div class="stats_block">
            <% Toshi::Models::Block.main_branch.offset(0).limit(5).order(Sequel.desc(:id)).each{|block| %>
            <div class="block">
              <span class="block_num">Block No. <%= block.height %></span>
              <ul class="clearfix">
                <li>
                  <h5>Height</h5>
                  <span><%= block.height %></span>
                </li>
                <li>
                  <h5>Num. Tx.</h5>
                  <span><%= block.transactions_count %></span>
                </li>
                <li>
                  <h5>Timestamp</h5>
                  <span><%= Time.at(block.time).utc %></span>
                </li>
                <li>
                  <h5>Created At</h5>
                  <span><%= Time.at(block.created_at).utc %></span>
                </li>
              </ul>
              <div class="clearfix block_hash">
                <h5>Block Hash</h5>
                <a href="/api/blocks/<%= block.hsh %>" target="_blank"><span><%= block.hsh %></span></a>
              </div>
            </div>
            <% } %>
          </div>
        </div><!-- last_block -->
      </div><!-- tab-pane -->
      <div class="tab-pane" id="transaction">
        <div class="last_tx">
          <script id="tx-template" type="text/x-handlebars-template">
            <div class="tx">
              <span class="tx_num">Unconfirmed {{pool}} transaction</span>
               <ul class="clearfix">
                <li>
                  <h5>Size</h5>
                  <span>{{size}}</span>
                </li>
                {{#if amount}}
                <li>
                  <h5>Amount</h5>
                  <span>{{amount}}</span>
                </li>
                {{/if}}
                <li>
                  <h5>Created At</h5>
                  <span>{{created_at}}</span>
                </li>
              </ul>
              <div class="clearfix tx_hash">
                <h5>Hash</h5>
                <a href="/api/transactions/{{hash}}"><span>{{hash}}</span></a>
              </div>
            </div>
          </script>
          <div class="stats_tx">
            <% Toshi::Models::UnconfirmedTransaction.offset(0).limit(5).order(Sequel.desc(:id)).each{|tx| %>
            <div class="tx">
              <span class="tx_num">Unconfirmed <%= tx.to_hash[:pool] %> transaction</span>
               <ul class="clearfix">
                <li>
                  <h5>Size</h5>
                  <span><%= tx.size %></span>
                </li>
                <% if tx.to_hash[:pool] == 'mempool' %>
                <li>
                  <h5>Amount</h5>
                  <span><%= "%.8f" % (tx.total_out_value / 1e8) %></span>
                </li>
                <% end %>
                <li><commit_msg>More initial page load improvements<commit_after><div class="row">

  <div class="col-md-7">
    <!-- Nav tabs -->
    <ul class="nav nav-tabs" role="tablist">
      <li class="active"><a href="#block" role="tab" data-toggle="tab">Blocks</a></li>
      <li><a href="#transaction" role="tab" data-toggle="tab">Transactions</a></li>
    </ul>

    <!-- Tab panes -->
    <div class="tab-content">
      <div class="tab-pane active" id="block">
        <div class="last_block">
          <script id="block-template" type="text/x-handlebars-template">
            <div class="block">
              <span class="block_num">Block No. {{height}}</span>
              <ul class="clearfix">
                <li>
                  <h5>Height</h5>
                  <span>{{height}}</span>
                </li>
                <li>
                  <h5>Num. Tx.</h5>
                  <span>{{num_tx}}</span>
                </li>
                <li>
                  <h5>Timestamp</h5>
                  <span>{{timestamp}}</span>
                </li>
                <li>
                  <h5>Created At</h5>
                  <span>{{created_at}}</span>
                </li>
              </ul>
              <div class="clearfix block_hash">
                <h5>Block Hash</h5>
                <a href="/api/blocks/{{hash}}" target="_blank"><span>{{hash}}</span></a>
              </div>
            </div>
          </script>
          <div class="stats_block">
            <% Toshi::Models::Block.main_branch.offset(0).limit(5).order(Sequel.desc(:id)).each{|block| %>
            <div class="block">
              <span class="block_num">Block No. <%= block.height %></span>
              <ul class="clearfix">
                <li>
                  <h5>Height</h5>
                  <span><%= block.height %></span>
                </li>
                <li>
                  <h5>Num. Tx.</h5>
                  <span><%= block.transactions_count %></span>
                </li>
                <li>
                  <h5>Timestamp</h5>
                  <span><%= Time.at(block.time).utc %></span>
                </li>
                <li>
                  <h5>Created At</h5>
                  <span><%= Time.at(block.created_at).utc %></span>
                </li>
              </ul>
              <div class="clearfix block_hash">
                <h5>Block Hash</h5>
                <a href="/api/blocks/<%= block.hsh %>" target="_blank"><span><%= block.hsh %></span></a>
              </div>
            </div>
            <% } %>
          </div>
        </div><!-- last_block -->
      </div><!-- tab-pane -->
      <div class="tab-pane" id="transaction">
        <div class="last_tx">
          <script id="tx-template" type="text/x-handlebars-template">
            <div class="tx">
              <span class="tx_num">Unconfirmed {{pool}} pool transaction</span>
               <ul class="clearfix">
                <li>
                  <h5>Size</h5>
                  <span>{{size}}</span>
                </li>
                {{#if amount}}
                <li>
                  <h5>Amount</h5>
                  <span>{{amount}}</span>
                </li>
                {{/if}}
                <li>
                  <h5>Created At</h5>
                  <span>{{created_at}}</span>
                </li>
              </ul>
              <div class="clearfix tx_hash">
                <h5>Hash</h5>
                <a href="/api/transactions/{{hash}}"><span>{{hash}}</span></a>
              </div>
            </div>
          </script>
          <div class="stats_tx">
            <% Toshi::Models::UnconfirmedTransaction.offset(0).limit(5).order(Sequel.desc(:id)).each{|tx| %>
            <div class="tx">
              <span class="tx_num">Unconfirmed <%= tx.pool_name %> pool transaction</span>
               <ul class="clearfix">
                <li>
                  <h5>Size</h5>
                  <span><%= tx.size %></span>
                </li>
                <% if tx.pool_name == 'memory' %>
                <li>
                  <h5>Amount</h5>
                  <span><%= "%.8f" % (tx.total_out_value / 1e8) %></span>
                </li>
                <% end %>
                <li>
{'fraction_non_alphanumeric': 0.1847246891651865, 'fraction_numerical': 0.009473060982830076, 'mean_word_length': 1.174002574002574, 'pattern_counts': {'":': 0, '<': 343, '<?xml version=': 0, '>': 343, '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': '2463342', 'n_tokens_mistral': 2639, 'n_tokens_neox': 2412, 'n_words': 405}