<commit_before>module.exports = function (queryObj, detachIncomingRelations) {
    return function removeAssets(assetGraph) {
        assetGraph.findAssets(queryObj).forEach(function (asset) {
            assetGraph.removeAsset(asset, detachIncomingRelations);
        });
    };
};<commit_msg>removeAssets: Take an options object, but remain backwards compatible.<commit_after>module.exports = function (queryObj, options) {
    if (typeof options === 'boolean') {
        options = {detachIncomingRelations: options};
    } else {
        options = options || {};
    }
    return function removeAssets(assetGraph) {
        assetGraph.findAssets(queryObj).forEach(function (asset) {
            assetGraph.removeAsset(asset, options.detachIncomingRelations);
        });
    };
};
{'fraction_non_alphanumeric': 0.11494252873563218, 'fraction_numerical': 0.0, 'mean_word_length': 3.558139534883721, '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': '1338604', 'n_tokens_mistral': 212, 'n_tokens_neox': 205, 'n_words': 40}