<commit_before>import Joi from 'joi';

export default {
    createUser: {
        body: {
            firstName: Joi.string().required(),
            lastName: Joi.string().required(),
            email: Joi.string().required(),
            password: Joi.string().required(),
            holidays: Joi.number().required(),
            position: Joi.string().required(),
            projectId: Joi.string().hex().required(),
            userType: Joi.string().required()
        }
    },

    createProject: {
        body: {
            name: Joi.string().required(),
            description: Joi.string().required()
        }
    },

    createLeaveRequest: {<commit_msg>enforce params validations for projects<commit_after>import Joi from 'joi';

export default {
    createUser: {
        body: {
            firstName: Joi.string().required(),
            lastName: Joi.string().required(),
            email: Joi.string().required(),
            password: <PASSWORD>(),
            holidays: Joi.number().required(),
            position: Joi.string().required(),
            projectId: Joi.string().hex().required(),
            userType: Joi.string().required()
        }
    },

    createProject: {
        body: {
            name: Joi.string().required(),
            description: Joi.string().required(),
            approvers: Joi.array().items(Joi.string()).required()
        }
    },

    createLeaveRequest: {
{'fraction_non_alphanumeric': 0.15427769985974754, 'fraction_numerical': 0.0, 'mean_word_length': 1.894523326572008, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, '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': '3609332', 'n_tokens_mistral': 384, 'n_tokens_neox': 383, 'n_words': 68}