<commit_before><html>
<head>
<style>
div#bs-console{ border:1px solid black }
div#dumparea{ border:1px solid black }
div#dumparea div{ border-bottom: 1px solid black; margin:0 }
span.dump_opecode{ color:orange; }
span.dump_env{ color:goldenrod; }
span.dump_stackframe{ color:cornflowerblue; }
span.dump_closure{ color:limegreen; }
span.dump_constant{ color:limegreen; }
td.dump_dead{ color:lightgray; }
td.dump_stknum{ color:gold; }
</style>
</head>
<body>
<h1><a href='http://www.biwascheme.org/'>BiwaScheme</a> tracer</h1>
<textarea id="bs-input" rows="10" cols="60">1</textarea><br>
<input type=button value="eval" onclick="eval_it()">
<div id='bs-console'>
</div>
<input type=button value="&lt;" onclick="dumper.dump_move(-1)">
<input type=button value="&gt;" onclick="dumper.dump_move(1)">
<input type=button value="all" onclick="dumper.dump_toggle_fold()">
<div id='dumparea'>
</div>

<script type="text/javascript" src="../src/development_loader.js">
// for browsers   
var dumper = new BiwaScheme.Dumper();
BiwaScheme.Interpreter.dumper = dumper;

function eval_it(){
  var show_error = function(e){
    puts("Error: "+e.message);
    throw e;
  };
  dumper.reset();
  $("bs-console").update("");
  var src = $("bs-input").value;
  puts(src);
  puts(";=> " + BiwaScheme.to_write((new BiwaScheme.Interpreter(show_error)).evaluate(src)));
  dumper.dump_move(1);
}
</script>
</body>
</html>
<!-- vim:set ft=javascript: --><commit_msg>fix: test/tracer.html did not work with jQuery<commit_after><html>
<head>
<style>
div#bs-console{ border:1px solid black }
div#dumparea{ border:1px solid black }
div#dumparea div{ border-bottom: 1px solid black; margin:0 }
span.dump_opecode{ color:orange; }
span.dump_env{ color:goldenrod; }
span.dump_stackframe{ color:cornflowerblue; }
span.dump_closure{ color:limegreen; }
span.dump_constant{ color:limegreen; }
td.dump_dead{ color:lightgray; }
td.dump_stknum{ color:gold; }
</style>
</head>
<body>
<h1><a href='http://www.biwascheme.org/'>BiwaScheme</a> tracer</h1>
<textarea id="bs-input" rows="10" cols="60">1</textarea><br>
<input type=button value="eval" onclick="eval_it()">
<div id='bs-console'>
</div>
<input type=button value="&lt;" onclick="dumper.dump_move(-1)">
<input type=button value="&gt;" onclick="dumper.dump_move(1)">
<input type=button value="all" onclick="dumper.dump_toggle_fold()">
<div id='dumparea'>
</div>

<script type="text/javascript" src="../src/development_loader.js">
// for browsers   
var dumper = new BiwaScheme.Dumper();
BiwaScheme.Interpreter.dumper = dumper;

function eval_it(){
  var show_error = function(e){
    puts("Error: "+e.message);
    throw e;
  };
  dumper.reset();
  $("#bs-console").html("");
  var src = $("#bs-input").val();
  puts(src);
  puts(";=> " + BiwaScheme.to_write((new BiwaScheme.Interpreter(show_error)).evaluate(src)));
  dumper.dump_move(1);
}
</script>
</body>
</html>
<!-- vim:set ft=javascript: -->
{'fraction_non_alphanumeric': 0.20027481964960495, 'fraction_numerical': 0.009618687736173137, 'mean_word_length': 6.016867469879518, 'pattern_counts': {'":': 0, '<': 55, '<?xml version=': 0, '>': 57, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '5476658', 'n_tokens_mistral': 1101, 'n_tokens_neox': 1081, 'n_words': 204}