<commit_before>;(function () { 
    "use strict";
    
    function GSapp(options) {
        if (!(this instanceof GSapp)) return new GSapp(options);
        options = options || {}
        if (!options.title) options.title = '';
        if (!options.caption) options.caption = '';
        options.mbar = !!options.mbar;
        options.ibar = !!options.ibar;

        this.canvas = canvas({ resizable:false })
        this.appst = function(ttl, cptn, mbar, ibar) {                              // SETUP APPLICATION STRUCTURE
            var high = Number(window.innerHeight) - 57 - 24*(mbar) - 21*(ibar)      // 36 for status bar, 21 for title
            var wide = Number(window.innerWidth) - 20                               // 20 for good measure

            this.canvas.width=high
            this.canvas.height=high
            if (!this.canvas.__activated) sphere({ canvas: this.canvas, visible: false })
            this.canvas.title.text(ttl);
            this.canvas.caption.text(cptn);
            if (mbar) this.canvas.menubar = $("<div/>").css("white-space","pre").insertBefore(this.canvas.wrapper);
            if (ibar) this.canvas.iconbar = $("<div/>").css("white-space","pre").insertBefore(this.canvas.wrapper);
            this.canvas.wrapper.css({margin: '4px'})
            $(this.canvas.__canvas_element).css({border: '1px solid #AAA'})
            $(this.canvas.__overlay_element).css({border: '1px solid #AAA'})
            
            print('', {end:''})
            print_options({width:Math.max(Math.min(wide - high,400),200), height:high+48-6, position:"right"})
            
            if (mbar) this.canvas.menubar.addClass("gsmenubar")
            if (ibar) this.canvas.iconbar.addClass("gsiconbar")
        }
        
        if (options.mbar) {
            this.menuitem = function(mi) { if (mi instanceof jQuery && (mi.is("li") || mi.is("ul"))) this.canvas.menubar.append(mi.gsmenubar()); }
        }
        if (options.ibar) {
            // Syntax: (GSAppobj).iconitem({title, iconclasses, text}, cb)
            this.iconitem = function(opt) {
            var b = $('<button>'), text=opt.text||false;
            if (opt.title) { opt.title = opt.title + ''; b.attr({ title: opt.title }); }
            //if (opt.text) { opt.text = opt.text + ''; b.text( opt.text ); } //(NOT WORKING YET  b.css("width", "50px"))
            b.button({ icons: { primary: "gsapp-icon " + opt.icon }, text: text })
            b.click( function() { $(this).blur(); });
            this.canvas.iconbar.append(b);
            return b;
        }
        }<commit_msg>Testing relocation of lines 31 or 32<commit_after>;(function () { 
    "use strict";
    
    function GSapp(options) {
        if (!(this instanceof GSapp)) return new GSapp(options);
        options = options || {}
        if (!options.title) options.title = '';
        if (!options.caption) options.caption = '';
        options.mbar = !!options.mbar;
        options.ibar = !!options.ibar;

        this.canvas = canvas({ resizable:false })
        this.appst = function(ttl, cptn, mbar, ibar) {                              // SETUP APPLICATION STRUCTURE
            var high = Number(window.innerHeight) - 57 - 24*(mbar) - 21*(ibar)      // 36 for status bar, 21 for title
            var wide = Number(window.innerWidth) - 20                               // 20 for good measure

            this.canvas.width=high
            this.canvas.height=high
            if (!this.canvas.__activated) sphere({ canvas: this.canvas, visible: false })
            this.canvas.title.text(ttl);
            this.canvas.caption.text(cptn);
            if (mbar) this.canvas.menubar = $("<div/>").css("white-space","pre").insertBefore(this.canvas.wrapper).addClass("gsmenubar");
            if (ibar) this.canvas.iconbar = $("<div/>").css("white-space","pre").insertBefore(this.canvas.wrapper).addClass("gsiconbar");
            this.canvas.wrapper.css({margin: '4px'})
            $(this.canvas.__canvas_element).css({border: '1px solid #AAA'})
            $(this.canvas.__overlay_element).css({border: '1px solid #AAA'})
            
            print('', {end:''})
            print_options({width:Math.max(Math.min(wide - high,400),200), height:high+48-6, position:"right"})
            
            //if (mbar) this.canvas.menubar.addClass("gsmenubar")
            //if (ibar) this.canvas.iconbar.addClass("gsiconbar")
        }
        
        if (options.mbar) {
            this.menuitem = function(mi) { if (mi instanceof jQuery && (mi.is("li") || mi.is("ul"))) this.canvas.menubar.append(mi.gsmenubar()); }
        }
        if (options.ibar) {
            // Syntax: (GSAppobj).iconitem({title, iconclasses, text}, cb)
            this.iconitem = function(opt) {
            var b = $('<button>'), text=opt.text||false;
            if (opt.title) { opt.title = opt.title + ''; b.attr({ title: opt.title }); }
            //if (opt.text) { opt.text = opt.text + ''; b.text( opt.text ); } //(NOT WORKING YET  b.css("width", "50px"))
            b.button({ icons: { primary: "gsapp-icon " + opt.icon }, text: text })
            b.click( function() { $(this).blur(); });
            this.canvas.iconbar.append(b);
            return b;
        }
        }
{'fraction_non_alphanumeric': 0.16975014304787336, 'fraction_numerical': 0.011443829868395957, 'mean_word_length': 2.022478386167147, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1899847', 'n_tokens_mistral': 1645, 'n_tokens_neox': 1570, 'n_words': 310}