<commit_before>BEGIN{
    split(ARGV[1],arr, "-");
    if (arr[2] == "") {
	while ((getline line < ARGV[2]) > 0) {
	    if (line ~ arr[1]) {
		if (line ~ /\[-[[:digit:].]*\]/) {
		    match(line, /[[:digit:].]+/);
		    print arr[1], substr(line, RSTART, RLENGTH);
		}
	    }
	}
    }else{
	print arr[1],arr[2];
    }
}
<commit_msg>use `0-9` instead of [:digit:] to match digit char<commit_after>BEGIN{
    split(ARGV[1],arr, "-");
    if (arr[2] == "") {
	while ((getline line < ARGV[2]) > 0) {
	    if (line ~ arr[1]) {
		if (line ~ /\[-[0-9.]+\]/) {
		    match(line, /[0-9.]+/);
		    print arr[1], substr(line, RSTART, RLENGTH);
		}
	    }
	}
    }else{
	print arr[1],arr[2];
    }
}

{'fraction_non_alphanumeric': 0.26850507982583455, 'fraction_numerical': 0.03193033381712627, 'mean_word_length': 2.3823529411764706, 'pattern_counts': {'":': 0, '<': 5, '<?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': '6168927', 'n_tokens_mistral': 328, 'n_tokens_neox': 299, 'n_words': 58}