<commit_before>define(function(require, exports, module) {
    main.consumes = ["immediate", "settings", "Evaluator"];
    main.provides = ["immediate.browserjs"];
    return main;
    
    /*
        Test Cases:
        1
        "1"
        new Error()
        window
        console.log("1");
        throw new Error("1");
        
        Missing:
        get/set in object
        __proto__
    */

    function main(options, imports, register) {
        var Evaluator = imports.Evaluator;
        var settings  = imports.settings;
        var immediate = imports.immediate;
        
        /***** Initialization *****/
        
        var plugin = new Evaluator("Ajax.org", main.consumes, {
            caption : "Javascript (browser)",
            id      : "jsbrowser",
            mode    : "ace/mode/javascript",
            message : ""
        });
        // var emit   = plugin.getEmitter();
        
        var iframe, win;
        
        var loaded;
        function load(){
            if (loaded) return;
            loaded = true;
            
            iframe = document.body.appendChild(document.createElement("iframe"));
            iframe.setAttribute("nwdisable");

            iframe.style.width    = "1px";
            iframe.style.height   = "1px";
            iframe.style.position = "absolute";
            iframe.style.left     = "-100px";
            iframe.style.top      = "-100px";
            
            win = iframe.contentWindow;
        }
        
        /***** Evaluator *****/
        <commit_msg>Fixes +772. FF issue<commit_after>define(function(require, exports, module) {
    main.consumes = ["immediate", "settings", "Evaluator"];
    main.provides = ["immediate.browserjs"];
    return main;
    
    /*
        Test Cases:
        1
        "1"
        new Error()
        window
        console.log("1");
        throw new Error("1");
        
        Missing:
        get/set in object
        __proto__
    */

    function main(options, imports, register) {
        var Evaluator = imports.Evaluator;
        var settings  = imports.settings;
        var immediate = imports.immediate;
        
        /***** Initialization *****/
        
        var plugin = new Evaluator("Ajax.org", main.consumes, {
            caption : "Javascript (browser)",
            id      : "jsbrowser",
            mode    : "ace/mode/javascript",
            message : ""
        });
        // var emit   = plugin.getEmitter();
        
        var iframe, win;
        
        var loaded;
        function load(){
            if (loaded) return;
            loaded = true;
            
            iframe = document.body.appendChild(document.createElement("iframe"));
            iframe.setAttribute("nwdisable", "nwdisable");

            iframe.style.width    = "1px";
            iframe.style.height   = "1px";
            iframe.style.position = "absolute";
            iframe.style.left     = "-100px";
            iframe.style.top      = "-100px";
            
            win = iframe.contentWindow;
        }
        
        /***** Evaluator *****/
        
{'fraction_non_alphanumeric': 0.1256426735218509, 'fraction_numerical': 0.008676092544987147, 'mean_word_length': 1.4094427244582044, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '776426', 'n_tokens_mistral': 885, 'n_tokens_neox': 820, 'n_words': 174}