<commit_before>#!/bin/sh

usage(){
	echo "Usage: $0 [-v] [--sections] [--layout=layout-file] test-file [cc-args]\n" >&2
	exit 1
}

verbose=$UCC_VERBOSE

rmfiles(){
	test -z "$rmfiles" || rm -f $rmfiles
}
rmfiles=
trap rmfiles EXIT

sec=
args=
f=
for arg
do
	if test "$arg" = '--help'
	then
		usage
	elif test "$arg" = '--sections'
	then
		sec="$arg"
	elif echo "$arg" | grep '^--layout=' >/dev/null
	then
		f_layout="$(echo "$arg" | sed 's/^--layout=//')"
	elif test -z "$f"
	then
		f="$arg"
	else
		cc_args="$cc_args $arg"
	fi
done

cc_layout_args=
if test -n "$sec"<commit_msg>Fix layout_check.sh's handling of verbose mode<commit_after>#!/bin/sh

usage(){
	echo "Usage: $0 [-v] [--sections] [--layout=layout-file] test-file [cc-args]\n" >&2
	exit 1
}

verbose=$UCC_VERBOSE
if test -z "$verbose"
then verbose=0
fi

rmfiles(){
	test -z "$rmfiles" || rm -f $rmfiles
}
rmfiles=
trap rmfiles EXIT

sec=
args=
f=
for arg
do
	if test "$arg" = '--help'
	then
		usage
	elif test "$arg" = '--sections'
	then
		sec="$arg"
	elif echo "$arg" | grep '^--layout=' >/dev/null
	then
		f_layout="$(echo "$arg" | sed 's/^--layout=//')"
	elif test -z "$f"
	then
		f="$arg"
	else
		cc_args="$cc_args $arg"
	fi
done

cc_layout_args=
if test -n "$sec"
{'fraction_non_alphanumeric': 0.20552396425670186, 'fraction_numerical': 0.005686433793663688, 'mean_word_length': 3.4157706093189963, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '5903148', 'n_tokens_mistral': 557, 'n_tokens_neox': 531, 'n_words': 151}