<commit_before>function print(x:number):void {
 var str : string  = "";

    for(var j=0; j<x; j++){
        str="";
       for(var k=0;k<x-j-1;k++){
            str+=" ";
        }
       for(var i=0; i<2*j+1; i++){
            str+="*";
        }
     console.log(str);
    }
}


print(3);<commit_msg>Finish Homework 2<commit_after>function print(x:number):void {
 var str : string  = "";  

    for(var j=0; j<x; j++){
        str="";
       for(var k=0;k<x-j-1;k++){
            str+=" ";
        }
       for(var i=0; i<2*j+1; i++){
            str+="*";
        }
     console.log(str);  //因为换行所以每行用string和在一起输出一次
    }
}


print(3);
{'fraction_non_alphanumeric': 0.2222222222222222, 'fraction_numerical': 0.023474178403755867, 'mean_word_length': 1.7705627705627707, 'pattern_counts': {'":': 0, '<': 9, '<?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': '4051851', 'n_tokens_mistral': 273, 'n_tokens_neox': 269, 'n_words': 42}