<commit_before>#!/bin/bash
sudo apt-get install mysql-server apache2 libapache2-mod-php5 php5 php5-mysql phpmyadmin

if [ $(grep --count "/etc/phpmyadmin/apache.conf" \
     "/etc/apache2/apache2.conf") = "0" ]
then
    # Include the configuration of phpMyAdmin for Apache
    echo -e "\n# phpMyAdmin\nInclude /etc/phpmyadmin/apache.conf" \
    | sudo tee -a /etc/apache2/apache2.conf

    # Create `/etc/apache2/conf.d/` directory if it does not exist
    sudo mkdir -p /etc/apache2/conf.d/

    # Create a symbolic link to configuration of phpMyAdmin
    sudo ln -s /etc/phpmyadmin/apache.conf /etc/apache2/conf.d/phpmyadmin.conf
fi

# Enable mod_rewrite
sudo a2enmod rewrite

# Restart the Apache
sudo service apache2 restart<commit_msg>Install and enable mcrypt, gd, and curl, for PHP<commit_after>#!/bin/bash
sudo apt-get install apache2 libapache2-mod-php5 mysql-server php5 php5-mysql \
php5-mcrypt php5-gd php5-curl phpmyadmin

if [ $(grep --count "/etc/phpmyadmin/apache.conf" \
     "/etc/apache2/apache2.conf") = "0" ]
then
    # Include the configuration of phpMyAdmin for Apache
    echo -e "\n# phpMyAdmin\nInclude /etc/phpmyadmin/apache.conf" \
    | sudo tee -a /etc/apache2/apache2.conf

    # Create `/etc/apache2/conf.d/` directory if it does not exist
    sudo mkdir -p /etc/apache2/conf.d/

    # Create a symbolic link to configuration of phpMyAdmin
    sudo ln -s /etc/phpmyadmin/apache.conf /etc/apache2/conf.d/phpmyadmin.conf
fi

# Enable mod_rewrite
sudo a2enmod rewrite

# Enable mysql, mcrypt, gd, and curl
sudo php5enmod mysql mcrypt gd curl

# Restart the Apache
sudo service apache2 restart
{'fraction_non_alphanumeric': 0.1067242442936459, 'fraction_numerical': 0.020974706971005553, 'mean_word_length': 3.3253333333333335, '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': '687456', 'n_tokens_mistral': 609, 'n_tokens_neox': 554, 'n_words': 164}