<commit_before>/* eslint no-unused-vars: 0 */

/***********************/
/** vm Container Size **/
/***********************/
gridState.processors['vm-container-size'] = {
    init: function (model) {
        model.vm.size = ko.observable();

        ko.computed(function () {
            var size = model.vm.size();
            if (size) {
                model.vm.process({ space: size });
            }
        });
    },
    runs: function () {
        // noop
    }
};
<commit_msg>Ignore size changes that don't change the width<commit_after>/* eslint no-unused-vars: 0 */

/***********************/
/** vm Container Size **/
/***********************/
gridState.processors['vm-container-size'] = {
    init: function (model) {
        model.vm.size = ko.observable();

        ko.computed(function () {
            var previous = model.space ? model.space.width : undefined;
            
            var size = model.vm.size();
            if (size && size.width !== previous) {
                model.vm.process({ space: size });
            }
        });
    },
    runs: function () {
        // noop
    }
};

{'fraction_non_alphanumeric': 0.23297491039426524, 'fraction_numerical': 0.0017921146953405018, 'mean_word_length': 1.8422391857506362, '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': '7201968', 'n_tokens_mistral': 323, 'n_tokens_neox': 319, 'n_words': 64}