<commit_before># Check & Install Packages

function ee_lib_stack_packages()
{
	local ee_stack_package
	
	for ee_stack_package in $@;do
		# Check NGINX installed & install if not
		if [ "$ee_stack_package" = "nginx" ]; then
			ee_lib_package_check $EE_NGINX_PACKAGE
			if [ "$EE_PACKAGE_NAME" != "" ]; then
				# Export EE_DISPLAY variable to Display ee http auth after site creation.
				export EE_DISPLAY=false

				# Log only single time
				# ee site create example.com called ee stack install nginx
				# So in log file all logs written twice
				export EE_LOG=false

				# The following command creates its own sub-shell
				# and our ee_lib_error function only exit from that sub-shell
				# so we need to exit from parent shell also
				ee stack install nginx || exit $?
			fi
		# Check PHP installed & install if not
		elif [ "$ee_stack_package" = "php" ]; then
			ee_lib_package_check php5-fpm
			if [ "$EE_PACKAGE_NAME" != "" ]; then
				# The following command creates its own sub-shell
				# and our ee_lib_error function only exit from that sub-shell
				# so we need to exit from parent shell also
				ee stack install php || exit $?
			fi
		# Check MySQL installed & install if not
		elif [ "$ee_stack_package" = "mysql" ]; then
			mysqladmin ping &>> $EE_COMMAND_LOG
			if [ $? -ne 0 ]; then
				# The following command creates its own sub-shell
				# and our ee_lib_error function only exit from that sub-shell
				# so we need to exit from parent shell also
				ee stack install mysql || exit $?
			fi
		# Check Postfix installed & install if not<commit_msg>Update comment<commit_after># Check & Install Packages

function ee_lib_stack_packages()
{
	local ee_stack_package
	
	for ee_stack_package in $@;do
		# Check NGINX installed & install if not
		if [ "$ee_stack_package" = "nginx" ]; then
			ee_lib_package_check $EE_NGINX_PACKAGE
			if [ "$EE_PACKAGE_NAME" != "" ]; then
				# Export EE_DISPLAY variable to Display ee http auth after site creation.
				export EE_DISPLAY=false

				# Log only single time
				# ee site create example.com called ee stack install nginx
				# So when ee stack install nginx run in sub-shell the value of EE_COMMAND_LOG=/dev/null
				# So in log file all logs written single time only
				export EE_LOG=false

				# The following command creates its own sub-shell
				# and our ee_lib_error function only exit from that sub-shell
				# so we need to exit from parent shell also
				ee stack install nginx || exit $?
			fi
		# Check PHP installed & install if not
		elif [ "$ee_stack_package" = "php" ]; then
			ee_lib_package_check php5-fpm
			if [ "$EE_PACKAGE_NAME" != "" ]; then
				# The following command creates its own sub-shell
				# and our ee_lib_error function only exit from that sub-shell
				# so we need to exit from parent shell also
				ee stack install php || exit $?
			fi
		# Check MySQL installed & install if not
		elif [ "$ee_stack_package" = "mysql" ]; then
			mysqladmin ping &>> $EE_COMMAND_LOG
			if [ $? -ne 0 ]; then
				# The following command creates its own sub-shell
				# and our ee_lib_error function only exit from that sub-shell
				# so we need to exit from parent shell also
				ee stack install mysql || exit $?
			fi
		# Check Postfix installed & install if not
{'fraction_non_alphanumeric': 0.07094594594594594, 'fraction_numerical': 0.0012285012285012285, 'mean_word_length': 3.224383916990921, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '2469329', 'n_tokens_mistral': 1174, 'n_tokens_neox': 980, 'n_words': 403}