<commit_before>function validation() {
    var textbox = document.getElementById('name');
    textbox.addEventListener('keypress', checkName, false);
    //Non-numeric character range

}
function checkName(evt) {
    var charCode = evt.charCode;

    if (charCode == 45 || charCode == 46) {
        return true;
    }
    else {
        evt.preventDefault();
        return false;
    }
}<commit_msg>added space<commit_after>function validation() {
    var textbox = document.getElementById('name');
    textbox.addEventListener('keypress', checkName, false);
    //Non-numeric character range

}
function checkName(evt) {
    var charCode = evt.charCode;

    if (charCode == 45 || charCode == 46 || charCode == 32) {
        return true;
    }
    else {
        evt.preventDefault();
        return false;
    }
}
{'fraction_non_alphanumeric': 0.12745098039215685, 'fraction_numerical': 0.012254901960784314, 'mean_word_length': 2.817757009345794, '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': '5409512', 'n_tokens_mistral': 243, 'n_tokens_neox': 237, 'n_words': 57}