<commit_before>//const {Cc, Ci} = require("chrome");
var ss = require("sdk/simple-storage");
var pageMod = require("sdk/page-mod");
var data = require("sdk/self").data;
var spellchecker;

//// This function will be responsible for setting up the dictionary
//function changeDictionary(language) {
//}

function initialize(options) {
    // add the script to all pages that will be responsible for detecting the language
    pageMod.PageMod({
            include: [
                "http://*",
                "https://*",
                "file://*"
            ],
            contentScriptWhen: 'ready',
            contentScriptFile: [
                data.url("js/_languageData.js"), 
                data.url("js/guessLanguage.js"),
                data.url("js/contentScript.js")
            ],
            onAttach: function(worker) {
                worker.port.on("changeDictionary", changeDictionary);
            }
    });

//    //initialize the spell checker
//    spellchecker = Cc["@mozilla.org/spellchecker/engine;1"].getService(Ci.mozISpellCheckingEngine);
}

exports.main = function (options, callbacks) {
    initialize(options);
};<commit_msg>Removed leftover reference to changeDictionary function<commit_after>//const {Cc, Ci} = require("chrome");
var ss = require("sdk/simple-storage");
var pageMod = require("sdk/page-mod");
var data = require("sdk/self").data;
var spellchecker;

//// This function will be responsible for setting up the dictionary
//function changeDictionary(language) {
//}

function initialize(options) {
    // add the script to all pages that will be responsible for detecting the language
    pageMod.PageMod({
            include: [
                "http://*",
                "https://*",
                "file://*"
            ],
            contentScriptWhen: 'ready',
            contentScriptFile: [
                data.url("js/_languageData.js"), 
                data.url("js/guessLanguage.js"),
                data.url("js/contentScript.js")
            ]
    });

//    //initialize the spell checker
//    spellchecker = Cc["@mozilla.org/spellchecker/engine;1"].getService(Ci.mozISpellCheckingEngine);
}

exports.main = function (options, callbacks) {
    initialize(options);
};
{'fraction_non_alphanumeric': 0.13941018766756033, 'fraction_numerical': 0.0008936550491510277, 'mean_word_length': 2.2829912023460412, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '2164198', 'n_tokens_mistral': 624, 'n_tokens_neox': 604, 'n_words': 139}