<commit_before>% include('header.tpl')
        <li><a href="/">Home</a></li>
        <li><a href="/accounts">Accounts</a></li>
        <li class="active"><a href="/blocks">Blocks</a></li>
        <li><a href="/payouts">Payouts</a></li>
		<li><a href="/unpaid">Unpaid</a></li>
		<li><a href="/paid">Paid</a></li>
        </ul>
      </div><!--/.nav-collapse -->
    </div>
  </div>
  
<div class="container">
  
  <div class="text-center">
  	<div class="page-header">
	<h1>Block List:</h1>
  	</div>
	<div class="col-lg-12">
	<h3>Estimated Time</h3>    
    <p><div id="btime"></div></p>
	</div>
	<script>
  $.getJSON('/api/btime', function(data) {
        var output="<p><strong>Until Next Block: </strong>" + data.blocktime + "</p>";
        document.getElementById("btime").innerHTML=output;
  });
    </script>
<div class="table-responsive">
<table class="table table-striped table-bordered table-condensed table-hover">
<tr><td><strong>Height</strong></td><td><strong>Timestamp</strong></td><td><strong>Block</strong></td><td><strong>Total Fee</strong></td></tr>
%for row in rows:
  <tr>
  %for col in row:
    <td>{{col}}</td>
  %end
  </tr>
%end
</table>
</div>
</div>  
</div>
</div>
% include('footer.tpl')<commit_msg>get blocks from api<commit_after>% include('header.tpl')
        <li><a href="/">Home</a></li>
        <li><a href="/accounts">Accounts</a></li>
        <li class="active"><a href="/blocks">Blocks</a></li>
        <li><a href="/payouts">Payouts</a></li>
		<li><a href="/unpaid">Unpaid</a></li>
		<li><a href="/paid">Paid</a></li>
        </ul>
      </div><!--/.nav-collapse -->
    </div>
  </div>
  
<div class="container">
  
  <div class="text-center">
  	<div class="page-header">
	<h1>Block List:</h1>
  	</div>
	<div class="col-lg-12">
	<h3>Estimated Time</h3>    
    <p><div id="btime"></div></p>
	</div>
	<script>
  $.getJSON('/api/btime', function(data) {
        var output="<p><strong>Until Next Block: </strong>" + data.blocktime + "</p>";
        document.getElementById("btime").innerHTML=output;
  });
    </script>
<div class="table-responsive">
<div id="loctable"></div>
<script>
$.getJSON("/api/blocks", function(data) {
    $("#loctable").mrjsontable({
        tableClass: "my-table table-striped table-bordered table-condensed table-hover",
        pageSize: 10, //you can change the page size here
        columns: [
            new $.fn.mrjsontablecolumn({
                heading: "Timestamp",
                data: "timestamp"
            }),
            new $.fn.mrjsontablecolumn({
                heading: "Height",
                data: "height"
            }),
            new $.fn.mrjsontablecolumn({
                heading: "Total Fee",
                data: "totalfee"
            })
        ],
        data: data
    });
});
</script>
</div>
</div>  
</div>
</div>
% include('footer.tpl')
{'fraction_non_alphanumeric': 0.23290073658365487, 'fraction_numerical': 0.004910557699052964, 'mean_word_length': 2.6238881829733165, 'pattern_counts': {'":': 0, '<': 139, '<?xml version=': 0, '>': 139, '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': '2832968', 'n_tokens_mistral': 1020, 'n_tokens_neox': 1008, 'n_words': 176}