<commit_before>"use strict";

var instance = {};

function watch(List) {
    var dispose = List.prototype.dispose;

    List.prototype.watch = instance.watch;
    List.prototype.unwatch = instance.unwatch;
    List.prototype.dispose = function () {
        this.unwatch();
        dispose.call(this);
    };
}

instance.watch = function (master) {
    var prevMaster,
        config,
        on;

    on = master.on || master.config.on;

    if (!this.config.watch) {
        initInstance(this);
    }
    config = this.config.watch;<commit_msg>- fixed watch plugin in Firefox fixes #3<commit_after>"use strict";

var instance = {};

function watch(List) {
    var dispose = List.prototype.dispose;

    List.prototype.watch = instance.watch;
    List.prototype.unwatch = instance.unwatch;
    List.prototype.dispose = function () {
        this.unwatch();
        dispose.call(this);
    };
}

instance.watch = function (master) {
    var prevMaster,
        config,
        on;

    on = master.on || master.config.on;

    // check for typeof object is necessary since in Firefox there is a Object.prototype.watch method
    if (typeof this.config.watch !== "object") {
        initInstance(this);
    }
    config = this.config.watch;
{'fraction_non_alphanumeric': 0.1260096930533118, 'fraction_numerical': 0.0008077544426494346, 'mean_word_length': 2.591304347826087, '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': '3344373', 'n_tokens_mistral': 377, 'n_tokens_neox': 363, 'n_words': 86}