<commit_before>#!/usr/bin/env bash
#
# Apache2 provision file

echo $'\n'
echo "---------------------------------------------"
echo "Apache2 provision."
echo "---------------------------------------------"
echo $'\n'

# Checking if Apache2 is already installed
echo "Checking if Apache2 is installed..."
if type apache2 &> /dev/null
then
  echo "Apache2 already installed!"
else
  echo "Installing Apache2..."
  sudo apt-get install -y apache2
fi<commit_msg>#11 [www] folder rights fix<commit_after>#!/usr/bin/env bash
#
# Apache2 provision file

echo $'\n'
echo "---------------------------------------------"
echo "Apache2 provision."
echo "---------------------------------------------"
echo $'\n'

# Checking if Apache2 is already installed
echo "Checking if Apache2 is installed..."
if type apache2 &> /dev/null
then
  echo "Apache2 already installed!"
else
  echo "Installing Apache2..."
  sudo apt-get install -y apache2

  # [www] folder rights permanent fix

  # Set common rights for [www] folder
  sudo chown -R www-data:www-data /var/www
  sudo chmod -R 775 /var/www
  # Add user account to www-data group
  sudo adduser $USER www-data
fi
{'fraction_non_alphanumeric': 0.2539130434782609, 'fraction_numerical': 0.018260869565217393, 'mean_word_length': 1.9437340153452685, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 7, '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': '4509429', 'n_tokens_mistral': 343, 'n_tokens_neox': 324, 'n_words': 124}