<commit_before>module.exports = function(sugar, schemas, assert, api) {
    return function(cb) {
        api.create(null, function(err, author) {
            sugar.get(schemas.Author, author._id, ['name'], function(err, d) {
                assert.equal(d.name, author.name);
                assert.equal(d._id, author._id.toString()); // XXX: toString needed

                cb(err, d);
            });
        });
    };
};<commit_msg>Do not return `_id` with get filter by default<commit_after>module.exports = function(sugar, schemas, assert, api) {
    return function(cb) {
        api.create(null, function(err, author) {
            sugar.get(schemas.Author, author._id, ['name'], function(err, d) {
                assert.equal(d.name, author.name);
                assert(!d._id); // _id should be requested explicitly

                cb(err, d);
            });
        });
    };
};
{'fraction_non_alphanumeric': 0.1516164994425864, 'fraction_numerical': 0.0, 'mean_word_length': 2.0440677966101695, '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': '7272498', 'n_tokens_mistral': 268, 'n_tokens_neox': 260, 'n_words': 57}