<commit_before>
const addThingsMethod = {
    register: (server, options, next) => {
        server.dependency('chairo')
        server.seneca.add({
            src: 'things',
            cmd: 'add',
            name: { required$: true },
        }, (message, done) => {
            const { name } = message
            const thing = new server.db.Things({
                name,
            })
            thing.save(done)
        })

        next()
    }
};

addThingsMethod.register.attributes = {
    name: 'addThingsMethod',
    version: '1.0.0'
};

module.exports = addThingsMethod<commit_msg>Changed to be more consistent with other services<commit_after>
const addThingsMethod = {
    register: (server, options, next) => {
        server.dependency('chairo')
        server.seneca.add({
            src: 'things',
            cmd: 'add',
            name: { required$: true },
        }, (message, done) => {
            const { name } = message
            server.db.Things.create({ name }, done)
        })

        next()
    }
};

addThingsMethod.register.attributes = {
    name: 'addThingsMethod',
    version: '1.0.0'
};

module.exports = addThingsMethod
{'fraction_non_alphanumeric': 0.1377245508982036, 'fraction_numerical': 0.0051325919589392645, 'mean_word_length': 1.826086956521739, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '7137185', 'n_tokens_mistral': 348, 'n_tokens_neox': 330, 'n_words': 73}