<commit_before>package htmlHelper.tools;
import js.html.DivElement;
import js.Browser;
class DivertTrace{
    var traceDiv:               DivElement;
    var traceString:            String = '';
    var textStyle0 = '<span style="font-size:12px; color:Silver">';
    var textStyle1 = '<span style="font-size:14px; color:Grey">';
    public
    function new( ?d: DivElement ){
        divertTrace( d );
    }
    function divertTrace( ?d: DivElement ){
        if( d == null ) {
            var doc = Browser.document;
            traceDiv = doc.createDivElement();
            doc.body.appendChild( cast traceDiv );
        } else {
            traceDiv = d;
        }
        haxe.Log.trace = myTrace;
    }
    function myTrace( v : Dynamic, ?inf : haxe.PosInfos ) {<commit_msg>float to the left of the canvas.<commit_after>package htmlHelper.tools;
import js.html.DivElement;
import js.Browser;
class DivertTrace{
    var traceDiv:               DivElement;
    var traceString:            String = '';
    var textStyle0 = '<span style="font-size:12px; color:Silver">';
    var textStyle1 = '<span style="font-size:14px; color:Grey">';
    public
    function new( ?left: Float = 610, ?d: DivElement ){
        divertTrace( left, d );
    }
    function divertTrace( left: Float, d: DivElement ){
        if( d == null ) {
            var doc = Browser.document;
            traceDiv = doc.createDivElement();
            doc.body.appendChild( cast traceDiv );
            var dom           = cast traceDiv;
            var style         = dom.style;
            style.position = 'absolute';
            style.top = '0px';
            style.left = Std.string( left ) + 'px';
            style.height = '500px';
            style.width = '500px';
            style.zIndex = '99';
            style.overflow = 'auto';
        } else {
            traceDiv = d;
        } else {
            traceDiv = d;
        }
        haxe.Log.trace = myTrace;
    }
    function myTrace( v : Dynamic, ?inf : haxe.PosInfos ) {
{'fraction_non_alphanumeric': 0.1205955334987593, 'fraction_numerical': 0.011910669975186104, 'mean_word_length': 1.8717948717948718, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '1983866', 'n_tokens_mistral': 614, 'n_tokens_neox': 589, 'n_words': 152}