<commit_before>#!/usr/bin/env bats

setup() {
	mkdir -p "${BATS_TEST_DIRNAME}/package/bin"
	cat <<-'EOF' > "${BATS_TEST_DIRNAME}/package/bin/script"
	#!/usr/bin/env bash
	set -o errexit
	set -o nounset
	set -o pipefail
	eval "$(environment)"
	echo "BIN: $BIN"
	echo "LIB: $LIB"
	echo "HELP: $HELP"
	EOF
	chmod +x "${BATS_TEST_DIRNAME}/package/bin/script"
}

@test 'sets some environment variables' {
	run "${BATS_TEST_DIRNAME}/package/bin/script"
	[[ $status = 0 ]]
	[[ $output = *"BIN: ${BATS_TEST_DIRNAME}/package/bin/script"* ]]
	[[ $output = *"LIB: ${BATS_TEST_DIRNAME}/package/lib"* ]]
	[[ $output = *"HELP: ${BATS_TEST_DIRNAME}/package/help/script"* ]]
}<commit_msg>Add debug logging for Travis<commit_after>#!/usr/bin/env bats

setup() {
	mkdir -p "${BATS_TEST_DIRNAME}/package/bin"
	cat <<-'EOF' > "${BATS_TEST_DIRNAME}/package/bin/script"
	#!/usr/bin/env bash
	set -o errexit
	set -o nounset
	set -o pipefail
	eval "$(environment)"
	echo "BIN: $BIN"
	echo "LIB: $LIB"
	echo "HELP: $HELP"
	EOF
	chmod +x "${BATS_TEST_DIRNAME}/package/bin/script"
}

@test 'sets some environment variables' {
	run "${BATS_TEST_DIRNAME}/package/bin/script"
	echo "$output"
	[[ $status = 0 ]]
	[[ $output = *"BIN: ${BATS_TEST_DIRNAME}/package/bin/script"* ]]
	[[ $output = *"LIB: ${BATS_TEST_DIRNAME}/package/lib"* ]]
	[[ $output = *"HELP: ${BATS_TEST_DIRNAME}/package/help/script"* ]]
}
{'fraction_non_alphanumeric': 0.20145454545454544, 'fraction_numerical': 0.0014545454545454545, 'mean_word_length': 4.639344262295082, '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': '474257', 'n_tokens_mistral': 592, 'n_tokens_neox': 559, 'n_words': 112}