<commit_before>module.exports = app => {
    const Users = app.db.models.Users;

    app.get("/users/:id", (req, res) => {
        Users.findAll(req.params.id, {
            attributes: ["id", "name", "email"]
        })
        .then(result => res.json(result))
        .catch(error => {
            res.status(412).json({msg: error.message});
        });
    });
    app.delete("/users/:id", (req, res) => {
        Users.destroy({where: {id: req.params.id}})
        .then(result => res.sendStatus(204))
        .catch(error => {
            res.status(412).json({msg: error.message});
        });
    });
    app.post("/users/:id", (req, res) => {
        Users.create(req.body)
        .then(result => res.json(result))
        .catch(error => {
            res.status(412).json({msg: error.message});
        });
    });
};<commit_msg>minor changes<commit_after>module.exports = app => {
    const Users = app.db.models.Users;

    app.get("/users/:id", (req, res) => {
        Users.findById(req.params.id, {
            attributes: ["id", "name", "email"]
        })
        .then(result => res.json(result))
        .catch(error => {
            res.status(412).json({msg: error.message});
        });
    });
    app.delete("/users/:id", (req, res) => {
        Users.destroy({where: {id: req.params.id}})
        .then(result => res.sendStatus(204))
        .catch(error => {
            res.status(412).json({msg: error.message});
        });
    });
    app.post("/users", (req, res) => {
        Users.create(req.body)
        .then(result => res.json(result))
        .catch(error => {
            res.status(412).json({msg: error.message});
        });
    });
};
{'fraction_non_alphanumeric': 0.2144133412745682, 'fraction_numerical': 0.01429422275163788, 'mean_word_length': 1.9422066549912433, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 23, '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': '5167811', 'n_tokens_mistral': 555, 'n_tokens_neox': 540, 'n_words': 77}