<commit_before># Auto switch site options

function ee_mod_site_option()
{
	if [ "$EE_SITE_CREATE_OPTION" = "--basic" ] || [ "$EE_SITE_CREATE_OPTION" = "--w3tc" ] || [ "$EE_SITE_CREATE_OPTION" = "--wpsc" ] || [ "$EE_SITE_CREATE_OPTION" = "--wpfc" ]; then
		if [ "$EE_SITE_CACHE_OPTION" = "--wpsubdir" ] || [ "$EE_SITE_CACHE_OPTION" = "--wpsubdirectory" ] || [ "$EE_SITE_CACHE_OPTION" = "--wpsubdom" ] || [ "$EE_SITE_CACHE_OPTION" = "--wpsubdomain" ]; then
			EE_SITE_CREATE_OPTION=$EE_FIFTH
			EE_SITE_CACHE_OPTION=$EE_FOURTH
		else
			EE_SITE_CREATE_OPTION=--wp
			EE_SITE_CACHE_OPTION=$EE_FOURTH
		fi
	fi

	# WordPresss subdirectory variables
	if [ "$EE_SITE_CREATE_OPTION" = "--wpsubdir" ] || [ "$EE_SITE_CREATE_OPTION" = "--wpsubdirectory" ]; then
		EE_SITE_CREATE_OPTION="--wpsubdir"
		EE_NETWORK_ACTIVATE="--network"
	fi
		
	# WordPress sub-domain variables
	if [ "$EE_SITE_CREATE_OPTION" = "--wpsubdom" ] || [ "$EE_SITE_CREATE_OPTION" = "--wpsubdomain" ]; then
		EE_SITE_CREATE_OPTION="--wpsubdomain"
		EE_NETWORK_ACTIVATE="--network"
		EE_WP_SUBDOMAIN="--subdomains"
	fi
		
	# Use default whenever possible
	if [ "$EE_SITE_CREATE_OPTION" = "" ]; then
		EE_SITE_CREATE_OPTION=--html
	fi

	# For WordPress sites if $EE_SITE_CACHE_OPTION is empty then used --basic as a $EE_SITE_CACHE_OPTION
	if [ "$EE_SITE_CACHE_OPTION" = "" ] && [ "$EE_SITE_CREATE_OPTION" != "--html" ] && [ "$EE_SITE_CREATE_OPTION" != "--php" ] && [ "$EE_SITE_CREATE_OPTION" != "--mysql" ]; then
		EE_SITE_CACHE_OPTION=--basic
	fi

	# Kick out for invalid cache option
	if [[ "$EE_SITE_CACHE_OPTION" != "--basic" || "$EE_SITE_CACHE_OPTION" != "--wpsc" || "$EE_SITE_CACHE_OPTION" != "--w3tc" || "$EE_SITE_CACHE_OPTION" != "--wpfc" ]] && [[ "$EE_SITE_CREATE_OPTION" != "--html" || "$EE_SITE_CREATE_OPTION" != "--php" || "$EE_SITE_CREATE_OPTION" != "--mysql" ]]; then
		ee_lib_error "Invalid cache option $EE_SITE_CACHE_OPTION, exit status = " $?
	fi
}<commit_msg>Kick out for invalid cache options<commit_after># Auto switch site options

function ee_mod_site_option()
{
	if [ "$EE_SITE_CREATE_OPTION" = "--basic" ] || [ "$EE_SITE_CREATE_OPTION" = "--w3tc" ] || [ "$EE_SITE_CREATE_OPTION" = "--wpsc" ] || [ "$EE_SITE_CREATE_OPTION" = "--wpfc" ]; then
		if [ "$EE_SITE_CACHE_OPTION" = "--wpsubdir" ] || [ "$EE_SITE_CACHE_OPTION" = "--wpsubdirectory" ] || [ "$EE_SITE_CACHE_OPTION" = "--wpsubdom" ] || [ "$EE_SITE_CACHE_OPTION" = "--wpsubdomain" ]; then
			EE_SITE_CREATE_OPTION=$EE_FIFTH
			EE_SITE_CACHE_OPTION=$EE_FOURTH
		else
			EE_SITE_CREATE_OPTION=--wp
			EE_SITE_CACHE_OPTION=$EE_FOURTH
		fi
	fi

	# WordPresss subdirectory variables
	if [ "$EE_SITE_CREATE_OPTION" = "--wpsubdir" ] || [ "$EE_SITE_CREATE_OPTION" = "--wpsubdirectory" ]; then
		EE_SITE_CREATE_OPTION="--wpsubdir"
		EE_NETWORK_ACTIVATE="--network"
	fi
		
	# WordPress sub-domain variables
	if [ "$EE_SITE_CREATE_OPTION" = "--wpsubdom" ] || [ "$EE_SITE_CREATE_OPTION" = "--wpsubdomain" ]; then
		EE_SITE_CREATE_OPTION="--wpsubdomain"
		EE_NETWORK_ACTIVATE="--network"
		EE_WP_SUBDOMAIN="--subdomains"
	fi
		
	# Use default whenever possible
	if [ "$EE_SITE_CREATE_OPTION" = "" ]; then
		EE_SITE_CREATE_OPTION=--html
	fi

	# For WordPress sites if $EE_SITE_CACHE_OPTION is empty then used --basic as a $EE_SITE_CACHE_OPTION
	if [ "$EE_SITE_CACHE_OPTION" = "" ] && [ "$EE_SITE_CREATE_OPTION" != "--html" ] && [ "$EE_SITE_CREATE_OPTION" != "--php" ] && [ "$EE_SITE_CREATE_OPTION" != "--mysql" ]; then
		EE_SITE_CACHE_OPTION=--basic
	fi

	# Kick out for invalid cache option
	if [[ "$EE_SITE_CREATE_OPTION" != "--html" && "$EE_SITE_CREATE_OPTION" != "--php" && "$EE_SITE_CREATE_OPTION" != "--mysql" ]] && [[ "$EE_SITE_CACHE_OPTION" != "--basic" && "$EE_SITE_CACHE_OPTION" != "--wpsc" && "$EE_SITE_CACHE_OPTION" != "--w3tc" && "$EE_SITE_CACHE_OPTION" != "--wpfc" ]]; then
		ee_lib_error "Invalid cache option $EE_SITE_CACHE_OPTION, exit status = " $?
	fi
}
{'fraction_non_alphanumeric': 0.17766367137355585, 'fraction_numerical': 0.0010269576379974327, 'mean_word_length': 4.7463126843657815, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '7376723', 'n_tokens_mistral': 1585, 'n_tokens_neox': 1593, 'n_words': 249}