<commit_before>#!/bin/sh

for i in *.c
do
	(echo '/^output/+;/^\*\//-c'
	../cc1 -w $i 2>&1
	printf ".\nw\n") | ed -s $i
done<commit_msg>Add optional parameter to update.sh<commit_after>#!/bin/sh

update()
{
	(echo '/^output/+;/^\*\//-c'
	../cc1 -I./ -w $1 2>&1
	printf ".\nw\n") | ed -s $1
}


case $# in
1)
	update $1
	exit
	;;
*)
	echo "usage: update.sh [test]" >&2
	exit 1
	;;
esac


for i in *.c
do
	update $i
done
{'fraction_non_alphanumeric': 0.2607655502392344, 'fraction_numerical': 0.028708133971291867, 'mean_word_length': 2.2992125984251968, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 6, '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': '7015025', 'n_tokens_mistral': 216, 'n_tokens_neox': 201, 'n_words': 57}