<commit_before>var step = require('step');

module.exports = function () {
    return function prettyPrintAssets(err, assetGraph, cb) {
        if (err) {
            throw err;
        }
        step(
            function () {
                assetGraph.findAssets().forEach(function (asset) {
                    if (asset.prettyPrint) {
                        asset.prettyPrint(this.parallel());
                        assetGraph.markAssetDirty(asset);
                    }
                }, this);
                process.nextTick(this.parallel());
            },<commit_msg>transforms.prettyPrintAssets: Take a queryObj.<commit_after>var step = require('step');

module.exports = function (queryObj) {
    return function prettyPrintAssets(err, assetGraph, cb) {
        if (err) {
            throw err;
        }
        step(
            function () {
                assetGraph.findAssets(queryObj).forEach(function (asset) {
                    if (asset.prettyPrint) {
                        asset.prettyPrint(this.parallel());
                        assetGraph.markAssetDirty(asset);
                    }
                }, this);
                process.nextTick(this.parallel());
            },
{'fraction_non_alphanumeric': 0.1094650205761317, 'fraction_numerical': 0.0, 'mean_word_length': 1.432, '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': '7539406', 'n_tokens_mistral': 309, 'n_tokens_neox': 289, 'n_words': 52}