<commit_before>#!/bin/bash
#
# Update the server package listing
# Install php Apache mod
# Configure and start Apache
# Install database tables as needed

set -e
set -x

DB=$1
SHORT_DB=${DB%%-*}

TRAVIS_PHP_VERSION=$2
SHORT_PHP=${TRAVIS_PHP_VERSION:0:3}

# Packages update
sudo apt-get update -qq

# Specific version of MySQL ?
if [ "$DB" == "mysql-5.6" -o "$DB" == "mysql-5.7" ]
then
   # Travis is MySQL 5.5 on ubuntu 12.04 ATM
   sudo service mysql stop
   sudo apt-get -qq install python-software-properties > /dev/null
   echo mysql-apt-config mysql-apt-config/select-server select "$DB" | sudo debconf-set-selections
   wget http://dev.mysql.com/get/mysql-apt-config_0.7.3-1_all.deb > /dev/null
   sudo dpkg --install mysql-apt-config_0.7.3-1_all.deb
   sudo apt-get update -qq<commit_msg>! fix for GPG error: ... following signatures were invalid<commit_after>#!/bin/bash
#
# Update the server package listing
# Install php Apache mod
# Configure and start Apache
# Install database tables as needed

set -e
set -x

DB=$1
SHORT_DB=${DB%%-*}

TRAVIS_PHP_VERSION=$2
SHORT_PHP=${TRAVIS_PHP_VERSION:0:3}

# Packages update
sudo apt-get update -qq

# Specific version of MySQL ?
if [ "$DB" == "mysql-5.6" -o "$DB" == "mysql-5.7" ]
then
   # Travis is MySQL 5.5 on ubuntu 12.04 ATM
   sudo service mysql stop
   sudo apt-get -qq install python-software-properties > /dev/null
   echo mysql-apt-config mysql-apt-config/select-server select "$DB" | sudo debconf-set-selections
   wget http://dev.mysql.com/get/mysql-apt-config_0.8.2-1_all.deb > /dev/null
   sudo dpkg --install mysql-apt-config_0.8.2-1_all.deb
   sudo apt-get update -qq
{'fraction_non_alphanumeric': 0.1325595601710446, 'fraction_numerical': 0.02687843616371411, 'mean_word_length': 3.562674094707521, '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': '2991565', 'n_tokens_mistral': 629, 'n_tokens_neox': 579, 'n_words': 167}