<commit_before>module.exports = function items(schema, fn) {
    if (!('items' in schema)) {
        return;
    }

    if (Array.isArray(schema.items)) {
        fn.data = schema.items.map(function(subSchema){
            return fn.resolve(subSchema);
        })
    } else {
        fn.data = [fn.resolve(schema.items)];
    }
};<commit_msg>Honor 'minItems:0' in the items generator.<commit_after>module.exports = function items(schema, fn) {
    if (!('items' in schema)) {
        return;
    }

    if (Array.isArray(schema.items)) {
        fn.data = schema.items.map(function(subSchema){
            return fn.resolve(subSchema);
        })
    } else {
        if (schema.minItems === 0) {
            fn.data = [];
        } else {
            fn.data = [fn.resolve(schema.items)];
        }
    }
};
{'fraction_non_alphanumeric': 0.15698393077873918, 'fraction_numerical': 0.002472187886279357, 'mean_word_length': 2.0111524163568775, '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': '1842229', 'n_tokens_mistral': 257, 'n_tokens_neox': 252, 'n_words': 46}