<commit_before>function printPyramid (height) {
    const char = '#',
        spc = ' ';
    if (height < 2 && height > 15) {
        console.log('need at least 2 and less then 15');
    } else if ( typeof height !== 'number') {
        console.log('need a number');
    } else {
        for (let i = 1; i <= height ; i++) {
            str = char.repeat(i);
            let spcs = spc.repeat(height-i),
                pyramidLvl = spcs + str + '  ' + str;
            console.log(pyramidLvl);
        }
    }
}
printPyramid(4);<commit_msg>hw2 after comments v1.1<commit_after>function printPyramid (height) {
    const char = '#',
        spc = ' ';
    if (height < 2 && height > 15) {
        console.log('need at least 2 and less then 15');
    } else if ( typeof height !== 'number') {
        console.log('need a number');
    } else {
        for (let i = 1; i <= height ; i++) {
            let str = char.repeat(i),
                indents = spc.repeat(height-i),
                pyramidLvl = indents + str + '  ' + str;
            console.log(pyramidLvl);
        }
    }
}
printPyramid(4);
{'fraction_non_alphanumeric': 0.1515426497277677, 'fraction_numerical': 0.017241379310344827, 'mean_word_length': 1.7644110275689222, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 5, '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': '1884991', 'n_tokens_mistral': 377, 'n_tokens_neox': 359, 'n_words': 94}