<commit_before># Setup WordPress for $EE_DOMAIN

function ee_mod_setup_wordpress()
{
	# Random characters
	local ee_random=$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 15 | head -n1)

	# Download latest WordPress
	ee_lib_echo "Downloading WordPress, please wait..."
	cd /var/www/$EE_DOMAIN/htdocs && wp --allow-root core download &>> $EE_COMMAND_LOG \
	|| ee_lib_error "Unable to download WordPress, exit status = " $?
	
	# Database setup
	# if EE_DB_NAME, EE_DB_USER, EE_DB_PASS are empty then setup database for new site
	# else current mysql site is to be updated
	if [ "$EE_DB_NAME" = "" ] && [ "$EE_DB_USER" = "" ] && [ "$EE_DB_PASS" = "" ]; then
		ee_mod_setup_database
	fi
	
	# Default WordPress prefix or custom prefix
	if [ $($EE_CONFIG_GET wordpress.prefix) == "true" ];then
		read -p "Enter the WordPress table prefix [wp_]: " EE_WP_PREFIX<commit_msg>Display DB information when update mysql websites<commit_after># Setup WordPress for $EE_DOMAIN

function ee_mod_setup_wordpress()
{
	# Random characters
	local ee_random=$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 15 | head -n1)

	# Download latest WordPress
	ee_lib_echo "Downloading WordPress, please wait..."
	cd /var/www/$EE_DOMAIN/htdocs && wp --allow-root core download &>> $EE_COMMAND_LOG \
	|| ee_lib_error "Unable to download WordPress, exit status = " $?
	
	# Database setup
	# if EE_DB_NAME, EE_DB_USER, EE_DB_PASS are empty then setup database for new site
	# else current mysql site is to be updated
	if [ "$EE_DB_NAME" = "" ] && [ "$EE_DB_USER" = "" ] && [ "$EE_DB_PASS" = "" ]; then
		ee_mod_setup_database
	else
		# Display when run ee site update mysql.com --wp
		echo -e "EE_DB_NAME = $EE_DB_NAME \nEE_DB_USER = $EE_DB_USER \nEE_DB_PASS = $EE_DB_PASS \nEE_MYSQL_HOST = $EE_MYSQL_HOST \nEE_MYSQL_GRANT_HOST = $EE_MYSQL_GRANT_HOST" &>> $EE_COMMAND_LOG
	fi
	
	# Default WordPress prefix or custom prefix
	if [ $($EE_CONFIG_GET wordpress.prefix) == "true" ];then
		read -p "Enter the WordPress table prefix [wp_]: " EE_WP_PREFIX
{'fraction_non_alphanumeric': 0.12053571428571429, 'fraction_numerical': 0.00496031746031746, 'mean_word_length': 4.238961038961039, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 8, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4326389', 'n_tokens_mistral': 746, 'n_tokens_neox': 718, 'n_words': 209}