<commit_before>function can_get_string_if_not_empty() {
	local result="$(system::get_string_or_default_if_empty "not empty" "default")"

	assertion::equal "not empty" "${result}"
}

function can_get_string_if_not_empty() {
	local result="$(system::get_string_or_default_if_empty "" "default")"

	assertion::equal "default" "${result}"
}

function the_date_in_seconds_is_a_valid_number() {
	local number="$(system::get_date_in_seconds)"

	_is_a_number ${number}

	assertion::status_code_is_success $? "The actual value <${number}> is not a number."
}

function _is_a_number() {
	[[ "${1}" =~ ^[0-9]+$ ]]
}

function can_print_with_color() {
	local message="$(system::print_with_color "text" "color" "default_color")"

	assertion::equal "colortextdefault_color" "${message}"
}

function a_contained_value_is_contained_by_the_array() {
	local array=("a" "the element" "c")

	system::array_contains "the element" "${array[@]}"

	assertion::status_code_is_success $? "The array does not contain the value."
}

function a_not_contained_value_is_not_contained_by_the_array() {
	local array=("a" "the element" "c")

	system::array_contains "the" "${array[@]}"

	assertion::status_code_is_failure $? "The array contain the value."
}

function can_print_array() {
	local array=("a" "123" "douze")

	local string="$(system::print_array "${array[@]}")"

	assertion::equal "[a, 123, douze]" "${string}"
}

function can_print_array_with_spaces() {
	local array=("un deux" "54" "choco lat")

	local string="$(system::print_array "${array[@]}")"

	assertion::equal "[un deux, 54, choco lat]" "${string}"
}

function a_substring_is_contained_by_the_string() {
	system::string_contains "the string" "the st"

	assertion::status_code_is_success $? "The string does not contain a substring."
}

function a_totally_different_string_is_not_contained_by_the_string() {
	system::string_contains "the string" "plop"

	assertion::status_code_is_failure $? "The string contains a different string."
}<commit_msg>test refactoring<commit_after>function can_get_string_if_not_empty() {
	local result="$(system::get_string_or_default_if_empty "not empty" "default")"

	assertion::equal "not empty" "${result}"
}

function can_get_string_if_not_empty() {
	local result="$(system::get_string_or_default_if_empty "" "default")"

	assertion::equal "default" "${result}"
}

function the_date_in_seconds_is_a_valid_number() {
	local number="$(system::get_date_in_seconds)"

	assertion::successful _is_a_number ${number}
}

function _is_a_number() {
	[[ "${1}" =~ ^[0-9]+$ ]]
}

function can_print_with_color() {
	local message="$(system::print_with_color "text" "color" "default_color")"

	assertion::equal "colortextdefault_color" "${message}"
}

function a_contained_value_is_contained_by_the_array() {
	local array=("a" "the element" "c")

	assertion::successful system::array_contains "the element" "${array[@]}"
}

function a_not_contained_value_is_not_contained_by_the_array() {
	local array=("a" "the element" "c")

	assertion::failing system::array_contains "the" "${array[@]}"
}

function can_print_array() {
	local array=("a" "123" "douze")

	local string="$(system::print_array "${array[@]}")"

	assertion::equal "[a, 123, douze]" "${string}"
}

function can_print_array_with_spaces() {
	local array=("un deux" "54" "choco lat")

	local string="$(system::print_array "${array[@]}")"

	assertion::equal "[un deux, 54, choco lat]" "${string}"
}

function a_substring_is_contained_by_the_string() {
	assertion::successful system::string_contains "the string" "the st"
}

function a_totally_different_string_is_not_contained_by_the_string() {
	assertion::failing system::string_contains "the string" "plop"
}
{'fraction_non_alphanumeric': 0.1604132680804785, 'fraction_numerical': 0.0070690592713431215, 'mean_word_length': 7.995110024449878, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, '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': '4598641', 'n_tokens_mistral': 1344, 'n_tokens_neox': 1270, 'n_words': 254}