<commit_before>var images = [];

module.exports = {
    'onPageOpen': function (api) {
        var options = api.getOptions();

        var base = options.outputDirectory + '/' + options.width + 'x' + options.height + '_';

        function handler() {
            var image = api.getPNG();
            if (image !== images[images.length - 1]) {
                page.render(base + Date.now() + '.png');
                images.push(image);
            }
        }

        setInterval(handler, 50);
    },
    'onBeforeExit': function (api) {
        var options = api.getOptions();
        api.getResultObject().imageOutputDir = options.outputDirectory;
    }
};<commit_msg>more images<commit_after>var images = [];

module.exports = {
    'onPageOpen': function (api) {
        var options = api.getOptions();

        var base = options.outputDirectory + '/' + options.width + 'x' + options.height + '_';

        function handler() {
            var image = api.getPNG();
            if (image !== images[images.length - 1]) {
                page.render(base + Date.now() + '.png');
                images.push(image);
            }
        }

        setInterval(handler, 25);
    },
    'onBeforeExit': function (api) {
        var options = api.getOptions();
        api.getResultObject().imageOutputDir = options.outputDirectory;
    }
};
{'fraction_non_alphanumeric': 0.150074294205052, 'fraction_numerical': 0.004457652303120356, 'mean_word_length': 1.9539473684210527, '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': '306037', 'n_tokens_mistral': 390, 'n_tokens_neox': 373, 'n_words': 77}