<commit_before>#!/bin/sh

# This script only exists to support Travis CI, since (AFAICT) it is
# not possible to perform different before_install steps depending on
# the operating system.  You should not be using this script.

export GCOV=gcov

CROSS_COMPILE=no
case "${COMPILER}" in
    "clang")
        export CC=clang
        export CXX=clang++
        ;;
    "clang-3.4")
        export CC=clang
        export CXX=clang++
        ;;
    "clang-3.5")
        export CC=clang-3.5
        export CXX=clang++-3.5
        ;;
    "clang-3.6")
        export CC=clang-3.6
        export CXX=clang++-3.6
        ;;
    "clang-3.7")
        export CC=clang-3.7
        export CXX=clang++-3.7
        ;;
    "gcc-4.6")
        export CC=gcc-4.6
        export CXX=g++-4.6
        export GCOV=gcov-4.6
        ;;
    "gcc-4.8")
        export CC=gcc-4.8
        export CXX=g++-4.8
        export GCOV=gcov-4.8
        ;;
    "gcc-5")
        export CC=gcc-5
        export CXX=g++-5
        export GCOV=gcov-5
        ;;
    "x86_64-w64-mingw32-gcc")
        export CC=x86_64-w64-mingw32-gcc
        export CXX=x86_64-w64-mingw32-g++
        export GCOV=x86_64-w64-mingw32-gcov
        CROSS_COMPILE=yes
        ;;
    "i686-w64-mingw32-gcc")
        export CC=i686-w64-mingw32-gcc
        export CXX=i686-w64-mingw32-g++
        export GCOV=i686-w64-mingw32-gcov
        CROSS_COMPILE=yes
        ;;
    "icc")
        export CC=icc
        export CXX=icpc
        export GCOV=gcov
        ;;
    *)
        COMPILER="gcc-5"
        export CC=gcc-5
        export CXX=g++-5
        export GCOV=gcov-5
        ;;
esac

if [ "${TRAVIS_BRANCH}" = "coverity" -a "${TRAVIS_OS_NAME}" = "linux" -a "${BUILD_TYPE}" = "debug" -a "${COMPILER}" = "gcc-5" ]; then
    BUILD_TYPE=coverity
    COVERITY_SCAN_PROJECT_NAME="quixdb/squash"
    COVERITY_TOOL_BASE="/tmp/coverity-scan-analysis"
fi

case "${1}" in
    "deps")
        case "${TRAVIS_OS_NAME}" in
            "linux")
                . /etc/lsb-release

                sudo apt-get update -qq
                sudo apt-get install -qq python-software-properties
                sudo apt-add-repository -y ppa:ubuntu-toolchain-r/test

                sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys AF4F7421
                for CLANG_VERSION in 3.4 3.5 3.6 3.7; do
                    sudo apt-add-repository -y \
                         "deb http://llvm.org/apt/${DISTRIB_CODENAME}/ llvm-toolchain-${DISTRIB_CODENAME}-${CLANG_VERSION} main"
                done<commit_msg>travis: don't build PRs with ICC.<commit_after>#!/bin/sh

# This script only exists to support Travis CI, since (AFAICT) it is
# not possible to perform different before_install steps depending on
# the operating system.  You should not be using this script.

export GCOV=gcov

CROSS_COMPILE=no
case "${COMPILER}" in
    "clang")
        export CC=clang
        export CXX=clang++
        ;;
    "clang-3.4")
        export CC=clang
        export CXX=clang++
        ;;
    "clang-3.5")
        export CC=clang-3.5
        export CXX=clang++-3.5
        ;;
    "clang-3.6")
        export CC=clang-3.6
        export CXX=clang++-3.6
        ;;
    "clang-3.7")
        export CC=clang-3.7
        export CXX=clang++-3.7
        ;;
    "gcc-4.6")
        export CC=gcc-4.6
        export CXX=g++-4.6
        export GCOV=gcov-4.6
        ;;
    "gcc-4.8")
        export CC=gcc-4.8
        export CXX=g++-4.8
        export GCOV=gcov-4.8
        ;;
    "gcc-5")
        export CC=gcc-5
        export CXX=g++-5
        export GCOV=gcov-5
        ;;
    "x86_64-w64-mingw32-gcc")
        export CC=x86_64-w64-mingw32-gcc
        export CXX=x86_64-w64-mingw32-g++
        export GCOV=x86_64-w64-mingw32-gcov
        CROSS_COMPILE=yes
        ;;
    "i686-w64-mingw32-gcc")
        export CC=i686-w64-mingw32-gcc
        export CXX=i686-w64-mingw32-g++
        export GCOV=i686-w64-mingw32-gcov
        CROSS_COMPILE=yes
        ;;
    "icc")
        # ICC doesn't work from pull requests because encrypted
        # variables (which are used for the serial number) aren't
        # available to pull requests, so unfortunately we need to skip
        # it.
        if  [ "${TRAVIS_PULL_REQUEST}" = "false" ]; then
            export CC=icc
            export CXX=icpc
            export GCOV=gcov
        else
            exit 0;
        fi
        ;;
    *)
        COMPILER="gcc-5"
        export CC=gcc-5
        export CXX=g++-5
        export GCOV=gcov-5
        ;;
esac

if [ "${TRAVIS_BRANCH}" = "coverity" -a "${TRAVIS_OS_NAME}" = "linux" -a "${BUILD_TYPE}" = "debug" -a "${COMPILER}" = "gcc-5" ]; then
    BUILD_TYPE=coverity
    COVERITY_SCAN_PROJECT_NAME="quixdb/squash"
    COVERITY_TOOL_BASE="/tmp/coverity-scan-analysis"
fi

case "${1}" in
    "deps")
        case "${TRAVIS_OS_NAME}" in
            "linux")
                . /etc/lsb-release

                sudo apt-get update -qq
                sudo apt-get install -qq python-software-properties
                sudo apt-add-repository -y ppa:ubuntu-toolchain-r/test

                sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys AF4F7421
                for CLANG_VERSION in 3.4 3.5 3.6 3.7; do
                    sudo apt-add-repository -y \
                         "deb http://llvm.org/apt/${DISTRIB_CODENAME}/ llvm-toolchain-${DISTRIB_CODENAME}-${CLANG_VERSION} main"
                done
{'fraction_non_alphanumeric': 0.12629437869822485, 'fraction_numerical': 0.04419378698224852, 'mean_word_length': 1.691044776119403, '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': '161204', 'n_tokens_mistral': 2143, 'n_tokens_neox': 1940, 'n_words': 394}