<commit_before><!DOCTYPE html>
<html lang="en">

<head>
  <!-- Bootstrap -->
  <link href="css/bootstrap.min.css" rel="stylesheet">


</head>

<body>
<br><br><br>
<div class="row">
  <div class="col-md-4 col-md-offset-4">
    <h2>Open Assets Transactions</h2>
  </div>
</div>
<br><br><br>

<div class="row">
  <div class="col-md-10 col-md-offset-1">
    <div class="well">
      <table class="table" id="txstable">

      </table>
    </div>
  </div>
</div>

<p id="test"></p>

</body>

<script src="bitcoinjs.min.js">
</script>
<script src="http://code.jquery.com/jquery-1.9.1.js"></script>
<script src="btctools.js"></script>



<script>



function add_tx(block, txhash, destination, color_address, coloramt, spent_at, btc,row_n, showlink){

  var txtable= document.getElementById('txstable');
  var row=txtable.insertRow(row_n);
  var blockdata=row.insertCell(0);
  var txhashdata=row.insertCell(1);
  var destination_address=row.insertCell(2);
  var coloraddress=row.insertCell(3);
  var coloramount=row.insertCell(4);
  var spentstatus=row.insertCell(5);
  var BTCcontent=row.insertCell(6);

  if(showlink){
  blockdata.innerHTML="<a href=http://blockchain.info/block-index/"+block+"?format=json>"+block+"</a>";
  txhashdata.innerHTML="<a href=https://blockchain.info/tx/"+txhash+">"+txhash+"</a>";
  destination_address.innerHTML="<a href=https://blockchain.info/address/"+destination+">"+destination+"</a>";
  coloraddress.innerHTML=coloraddress;
  coloramount.innerHTML=coloramt;
  spentstatus.innerHTML=spent_at;
  BTCcontent.innerHTML=btc;

}
else{
blockdata.innerHTML=block;
txhashdata.innerHTML=txhash;
destination_address.innerHTML=destination;
coloraddress.innerHTML=color_address;
coloramount.innerHTML=coloramt;
spentstatus.innerHTML=spent_at;
BTCcontent.innerHTML=btc;
}
  }

function make_table(blockrange){
  add_tx("Block","Transaction Hash", "Destination", "Color Address", "Color Amount", "Spent in TX", "Bitcoin Content", 0, false);

  $.get("http://bitwrangle.herokuapp.com/blocks/count",

  function(data,status){

    currentblock=data;
    document.getElementById('test').innerHTML="Last Block "+currentblock.toString();
    var blockrange=5000;

        txs=getoatxs(currentblock-blockrange,
          function(txdata){

              txlength=txdata.length;
              console.log(txlength);
              console.log(txdata);
              for (i=0; i<txlength; i++)
                {
                  var block = txdata[i][8];
                  var txhash=txdata[i][6];
                  //var source_address=txdata[i];
                  var destination=txdata[i][5];
                  var coloraddress=txdata[i][2];
                  var coloramt=txdata[i][1];
                  var spentstatus=txdata[i][3];
                  var spentat=txdata[i][4];
                  var btc=txdata[i][0];

                  console.log(block);

                  //add_tx(block, txhash, destination, coloraddress, coloramt, spentstatus, spentat, btc,i+1, true);
                }
        });

  }
  );
}
make_table(100);
</script>



</html>
<commit_msg>fixes<commit_after><!DOCTYPE html>
<html lang="en">

<head>
  <!-- Bootstrap -->
  <link href="css/bootstrap.min.css" rel="stylesheet">


</head>

<body>
<br><br><br>
<div class="row">
  <div class="col-md-4 col-md-offset-4">
    <h2>Open Assets Transactions</h2>
  </div>
</div>
<br><br><br>

<div class="row">
  <div class="col-md-10 col-md-offset-1">
    <div class="well">
      <table class="table" id="txstable">

      </table>
    </div>
  </div>
</div>

<p id="test"></p>

</body>

<script src="bitcoinjs.min.js">
</script>
<script src="http://code.jquery.com/jquery-1.9.1.js"></script>
<script src="btctools.js"></script>



<script>



function add_tx(block, txhash, destination, color_address, coloramt, spent_at, btc,row_n, showlink){

  var txtable= document.getElementById('txstable');
  var row=txtable.insertRow(row_n);
  var blockdata=row.insertCell(0);
  var txhashdata=row.insertCell(1);
  var destination_address=row.insertCell(2);
  var coloraddress=row.insertCell(3);
  var coloramount=row.insertCell(4);
  var spentstatus=row.insertCell(5);
  var BTCcontent=row.insertCell(6);

  if(showlink){
  blockdata.innerHTML="<a href=http://blockchain.info/block-index/"+block+"?format=json>"+block+"</a>";
  txhashdata.innerHTML="<a href=https://blockchain.info/tx/"+txhash+">"+txhash+"</a>";
  destination_address.innerHTML="<a href=https://blockchain.info/address/"+destination+">"+destination+"</a>";
  coloraddress.innerHTML=coloraddress;
  coloramount.innerHTML=coloramt;
  spentstatus.innerHTML=spent_at;
  BTCcontent.innerHTML=btc;

}
else{
blockdata.innerHTML=block;
txhashdata.innerHTML=txhash;
destination_address.innerHTML=destination;
coloraddress.innerHTML=color_address;
coloramount.innerHTML=coloramt;
spentstatus.innerHTML=spent_at;
BTCcontent.innerHTML=btc;
}
  }

function make_table(blockrange){
  add_tx("Block","Transaction Hash", "Destination", "Color Address", "Color Amount", "Spent in TX", "Bitcoin Content", 0, false);

  $.get("http://bitwrangle.herokuapp.com/blocks/count",

  function(data,status){

    currentblock=data;
    document.getElementById('test').innerHTML="Last Block "+currentblock.toString();
    var blockrange=5000;

        txs=getoatxs(currentblock-blockrange,
          function(txdata){

              txlength=txdata.length;
              console.log(txlength);
              console.log(txdata);
              for (i=0; i<txlength; i++)
                {
                  var block = txdata[i][8];
                  var txhash=txdata[i][6];
                  //var source_address=txdata[i];
                  var destination=txdata[i][5];
                  var coloraddress=txdata[i][2];
                  var coloramt=txdata[i][1];
                  var spentstatus=txdata[i][3];
                  var spentat=txdata[i][4];
                  var btc=txdata[i][0];

                  console.log(block);

                  add_tx(block, txhash, destination, coloraddress, coloramt, spentstatus, btc,i+1, true);
                }
        });

  }
  );
}
make_table(100);
</script>



</html>

{'fraction_non_alphanumeric': 0.16892001954715752, 'fraction_numerical': 0.011402508551881414, 'mean_word_length': 3.311797752808989, 'pattern_counts': {'":': 0, '<': 95, '<?xml version=': 0, '>': 93, 'https://': 4, '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': '5974617', 'n_tokens_mistral': 2120, 'n_tokens_neox': 2047, 'n_words': 319}