<commit_before>readonly EX_OK=0
readonly EX_USAGE=64

msg() {
	echo "$@"
}

error() {
	msg "$@" >&2
}

load_config() {
	source <(python3 -m hades.bin.export_options --format=bash)
}<commit_msg>Check export exit code in load_config<commit_after>readonly EX_OK=0
readonly EX_USAGE=64

msg() {
	echo "$@"
}

error() {
	msg "$@" >&2
}

load_config() {
	local CONFIG
	if ! CONFIG="$(python3 -m hades.bin.export_options --format=bash)"; then
		error "error: could not load config"
		return 2
	fi
	source /dev/stdin <<<"$CONFIG"
}
{'fraction_non_alphanumeric': 0.1682600382409178, 'fraction_numerical': 0.021032504780114723, 'mean_word_length': 4.402061855670103, 'pattern_counts': {'":': 0, '<': 7, '<?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': '6056537', 'n_tokens_mistral': 223, 'n_tokens_neox': 205, 'n_words': 50}