<commit_before>#!/bin/sh

# hacked-up long option parsing
for arg in $@ ; do
	case $arg in
		--list-subtests)
			exit 79
			;;
		--run-subtest)
			exit 79
			;;
		--debug)
			IGT_LOG_LEVEL=debug
			;;
		--help)
			echo "Usage: `basename $0` [OPTIONS]"
			echo "  --list-subtests"
			echo "  --run-subtest <pattern>"
			echo "  --debug"
			echo "  --help"
			exit 0
			;;
	esac
done

die() {
	echo "$@"
	exit 1
}

do_or_die() {
	$@ > /dev/null 2>&1 || (echo "FAIL: $@ ($?)" && exit -1)
}<commit_msg>tests/drm_lib.sh: add a "--help-description" option<commit_after>#!/bin/sh

# hacked-up long option parsing
for arg in $@ ; do
	case $arg in
		--list-subtests)
			exit 79
			;;
		--run-subtest)
			exit 79
			;;
		--debug)
			IGT_LOG_LEVEL=debug
			;;
		--help-description)
			echo $IGT_TEST_DESCRIPTION
			exit 0
			;;
		--help)
			echo "Usage: `basename $0` [OPTIONS]"
			echo "  --list-subtests"
			echo "  --run-subtest <pattern>"
			echo "  --debug"
			echo "  --help-description"
			echo "  --help"
			exit 0
			;;
	esac
done

die() {
	echo "$@"
	exit 1
}

do_or_die() {
	$@ > /dev/null 2>&1 || (echo "FAIL: $@ ($?)" && exit -1)
}
{'fraction_non_alphanumeric': 0.19240953221535745, 'fraction_numerical': 0.018534863195057368, 'mean_word_length': 2.221590909090909, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 9, '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': '868623', 'n_tokens_mistral': 572, 'n_tokens_neox': 471, 'n_words': 111}