<commit_before>(function () {
    'use strict';

    angular
        .module('app.core')
        .factory('model', modelFactory);

    /* @ngInject */
    function modelFactory($rootScope, falcor, logger) {

        const model = new falcor.Model({
            source: new falcor.HttpDataSource('/model.json'),
            comparator: comparator,
            onChange: onChange
        })
        //     .batch();

        return model;

        function comparator(oldVal, newVal) {
            return oldVal != newVal;
        }

        function onChange() {
            $rootScope.$emit('falcorChange');
        }
    }
})();<commit_msg>enable batch mode for falcor<commit_after>(function () {
    'use strict';

    angular
        .module('app.core')
        .factory('model', modelFactory);

    /* @ngInject */
    function modelFactory($rootScope, falcor, logger) {

        const model = new falcor.Model({
            source: new falcor.HttpDataSource('/model.json'),
            comparator: comparator,
            onChange: onChange
        })
        .batch();

        return model;

        function comparator(oldVal, newVal) {
            return oldVal != newVal;
        }

        function onChange() {
            $rootScope.$emit('falcorChange');
        }
    }
})();
{'fraction_non_alphanumeric': 0.13023255813953488, 'fraction_numerical': 0.0, 'mean_word_length': 1.7943722943722944, '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': '5498059', 'n_tokens_mistral': 352, 'n_tokens_neox': 343, 'n_words': 74}