<commit_before>#!/bin/sh

set -x
set -e

mkdir -p vendor
cd vendor
if [ "$MYSQL_VERSION" = "system" ]; then
    sudo apt-get -y build-dep mysql-server
    apt-cache show mysql-server
    sudo cat /etc/apt/sources.list
    sudo cat /etc/apt/sources.list.d/*.list
    apt-get source mysql-server
    ln -s $(find . -maxdepth 1 -type d | sort | tail -1) mysql
    cd mysql
    debuild -us -uc -Tconfigure
    make -j$(grep '^processor' /proc/cpuinfo | wc -l) > /dev/null
    cd ..
else
    sudo apt-get -y install cmake
    wget http://cdn.mysql.com/Downloads/MySQL-5.5/mysql-${MYSQL_VERSION}.tar.gz
    tar xvzf mysql-${MYSQL_VERSION}.tar.gz
    ln -s mysql-${MYSQL_VERSION} mysql
    cd mysql
    BUILD/compile-amd64-debug-max
    cd ..
fi
cd ..

touch NEWS # For old automake
./autogen.sh
./configure \
    --with-mysql-source=$PWD/vendor/mysql \
    --with-mysql-config=$PWD/vendor/mysql/scripts/mysql_config<commit_msg>travis debug: show plugin_unlock symbol in mysqld<commit_after>#!/bin/sh

set -x
set -e

mkdir -p vendor
cd vendor
if [ "$MYSQL_VERSION" = "system" ]; then
    sudo apt-get -y build-dep mysql-server
    apt-cache show mysql-server
    sudo cat /etc/apt/sources.list
    sudo cat /etc/apt/sources.list.d/*.list
    apt-get source mysql-server
    ln -s $(find . -maxdepth 1 -type d | sort | tail -1) mysql
    cd mysql
    debuild -us -uc -Tconfigure
    make -j$(grep '^processor' /proc/cpuinfo | wc -l) > /dev/null
    cd ..
else
    sudo apt-get -y install cmake
    wget http://cdn.mysql.com/Downloads/MySQL-5.5/mysql-${MYSQL_VERSION}.tar.gz
    tar xvzf mysql-${MYSQL_VERSION}.tar.gz
    ln -s mysql-${MYSQL_VERSION} mysql
    cd mysql
    BUILD/compile-amd64-debug-max
    strings sql/mysqld | grep plugin_unlock
    cd ..
fi
cd ..

touch NEWS # For old automake
./autogen.sh
./configure \
    --with-mysql-source=$PWD/vendor/mysql \
    --with-mysql-config=$PWD/vendor/mysql/scripts/mysql_config
{'fraction_non_alphanumeric': 0.13787721123829344, 'fraction_numerical': 0.006243496357960458, 'mean_word_length': 2.5027322404371586, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4379923', 'n_tokens_mistral': 725, 'n_tokens_neox': 705, 'n_words': 181}