<commit_before>const validator = {
    validateUser: (user) => {
        if (!user.username ||
            typeof user.username !== 'string' ||
            user.username.length < 4) {
            return false;
        }
        if (!user.email ||
            !(/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/.test(user.email))) {
            return false;
        }
        if (!user.password ||
            typeof user.password !== 'string' ||
            user.password.length < 6) {
            return false;
        }

        return true;
    },
    validateEvent: (event) => {
<commit_msg>simple renaming<commit_after>const validator = {
    isValidUser: (user) => {
        if (!user.username ||
            typeof user.username !== 'string' ||
            user.username.length < 4) {
            return false;
        }
        if (!user.email ||
            !(/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/.test(user.email))) {
            return false;
        }
        if (!user.password ||
            typeof user.password !== 'string' ||
            user.password.length < 6) {
            return false;
        }

        return true;
    },
    isValidEvent: (event) => {

{'fraction_non_alphanumeric': 0.23641703377386197, 'fraction_numerical': 0.032305433186490456, 'mean_word_length': 1.6211538461538462, 'pattern_counts': {'":': 0, '<': 7, '<?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': '3993408', 'n_tokens_mistral': 535, 'n_tokens_neox': 504, 'n_words': 63}