<commit_before>/*********************
 * App reyes magos
 *********************/

function validateForm() {
    var name = document.forms["mainForm"]["name"].value;
    var email = document.forms["mainForm"]["email"].value;
    var letter = document.forms["mainForm"]["letter"].value;

    var formIsValid = true;

    if (name == null || name == "") {
        $("#alert1").removeClass("inactive").addClass("active");
        formIsValid = false;
    }

    if (email == null || email == "") {
        $("#alert2").removeClass("inactive").addClass("active");
        formIsValid = false;
    }

    if (letter == null || letter == "") {
        $("#alert3").removeClass("inactive").addClass("active");
        formIsValid = false;
    }

    if (!formIsValid)
        return false;
}<commit_msg>JS mejorado<commit_after>/*********************
 * App reyes magos
 *********************/

function validateForm() {
    var name = document.forms["mainForm"]["name"].value;
    var email = document.forms["mainForm"]["email"].value;
    var letter = document.forms["mainForm"]["letter"].value;

    var formIsValid = true;

    if (name == null || name == "") {
        $("#alert1").removeClass("inactive").addClass("active");
        formIsValid = false;
    }

    else {
        $("#alert1").removeClass("active").addClass("inactive");
        formIsValid = true;
    }

    if (email == null || email == "") {
        $("#alert2").removeClass("inactive").addClass("active");
        formIsValid = false;
    }

    else {
        $("#alert2").removeClass("active").addClass("inactive");
        formIsValid = true;
    }

    if (letter == null || letter == "") {
        $("#alert3").removeClass("inactive").addClass("active");
        formIsValid = false;
    }

    else {
        $("#alert3").removeClass("active").addClass("inactive");
        formIsValid = true;
    }

    if (!formIsValid)
        return false;
}

{'fraction_non_alphanumeric': 0.22736732570239335, 'fraction_numerical': 0.004682622268470343, 'mean_word_length': 2.9164969450101834, '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': '6553441', 'n_tokens_mistral': 539, 'n_tokens_neox': 552, 'n_words': 99}