<commit_before># Test configuration for Travis CI. See <https://travis-ci.org/>.
language: cpp

matrix:
  include:
    - os: linux
      dist: xenial
      compiler: gcc

    - os: linux
      dist: xenial
      compiler: clang

    - os: osx
      compiler: clang

env:
  global:
    - CFLAGS="-O3 -g -Wall -Wextra -Werror -pedantic -Wno-long-long -Wno-missing-braces"
    - CXXFLAGS="-O3 -g -Wall -Wextra -Werror -pedantic -Wno-long-long -Wno-missing-braces"

install:
  - |
    if [ "${TRAVIS_OS_NAME}" == "linux" ]
    then
        sudo apt-get update -qq
        sudo apt-get install -y make cmake cppcheck valgrind g++-multilib mingw-w64
    fi

script:
  - |
    if [ "${TRAVIS_OS_NAME}" == "linux" ]
    then
        # 1) Static code analysis
        cppcheck . --error-exitcode=1 --quiet --force -itest/test2.c

        # 2) Run test suite
        mkdir build
        cd build
        cmake ..
        make -j4 VERBOSE=1
        ctest

        # 3) Runtime memory analysis
        cd test
        valgrind --error-exitcode=1 ./test1 30000

        # 4) Run test suite (32-bit)
        cd ../..
        rm -rf build
        mkdir build
        cd build
        cmake .. -DCMAKE_C_FLAGS="$CFLAGS -m32" \
                -DCMAKE_CXX_FLAGS="$CXXFLAGS -m32"
        make -j4 VERBOSE=1
        ctest

        # 5) Compile using MinGW
        cd ..
        rm -rf build
        mkdir build
        cd build
        cmake .. -DCMAKE_SYSTEM_NAME=Windows \
                -DCMAKE_C_COMPILER=x86_64-w64-mingw32-gcc-posix \
                -DCMAKE_CXX_COMPILER=x86_64-w64-mingw32-g++-posix \
                -DCMAKE_FIND_ROOT_PATH_MODE_PROGRAM=NEVER \
                -DCMAKE_FIND_ROOT_PATH_MODE_INCLUDE=ONLY
        make -j4 VERBOSE=1

    elif [ "${TRAVIS_OS_NAME}" == "osx" ]
        # 1) Run test suite
        mkdir build
        cd build
        cmake ..
        make -j4 VERBOSE=1
        ctest
    fi<commit_msg>Remove empty lines<commit_after># Test configuration for Travis CI. See <https://travis-ci.org/>.
language: cpp

matrix:
  include:
    - os: linux
      dist: xenial
      compiler: gcc

    - os: linux
      dist: xenial
      compiler: clang

    - os: osx
      compiler: clang

env:
  global:
    - CFLAGS="-O3 -g -Wall -Wextra -Werror -pedantic -Wno-long-long -Wno-missing-braces"
    - CXXFLAGS="-O3 -g -Wall -Wextra -Werror -pedantic -Wno-long-long -Wno-missing-braces"

install:
  - |
    if [ "${TRAVIS_OS_NAME}" == "linux" ]
    then
        sudo apt-get update -qq
        sudo apt-get install -y make cmake cppcheck valgrind g++-multilib mingw-w64
    fi

script:
  - |
    if [ "${TRAVIS_OS_NAME}" == "linux" ]
    then
        # 1) Static code analysis
        cppcheck . --error-exitcode=1 --quiet --force -itest/test2.c
        # 2) Run test suite
        mkdir build
        cd build
        cmake ..
        make -j4 VERBOSE=1
        ctest
        # 3) Runtime memory analysis
        cd test
        valgrind --error-exitcode=1 ./test1 30000
        # 4) Run test suite (32-bit)
        cd ../..
        rm -rf build
        mkdir build
        cd build
        cmake .. -DCMAKE_C_FLAGS="$CFLAGS -m32" \
                 -DCMAKE_CXX_FLAGS="$CXXFLAGS -m32"
        make -j4 VERBOSE=1
        ctest
        # 5) Compile using MinGW
        cd ..
        rm -rf build
        mkdir build
        cd build
        cmake .. -DCMAKE_SYSTEM_NAME=Windows \
                 -DCMAKE_C_COMPILER=x86_64-w64-mingw32-gcc-posix \
                 -DCMAKE_CXX_COMPILER=x86_64-w64-mingw32-g++-posix \
                 -DCMAKE_FIND_ROOT_PATH_MODE_PROGRAM=NEVER \
                 -DCMAKE_FIND_ROOT_PATH_MODE_INCLUDE=ONLY
        make -j4 VERBOSE=1
    elif [ "${TRAVIS_OS_NAME}" == "osx" ]
        # 1) Run test suite
        mkdir build
        cd build
        cmake ..
        make -j4 VERBOSE=1
        ctest
    fi
{'fraction_non_alphanumeric': 0.10622233793283, 'fraction_numerical': 0.02551418901327779, 'mean_word_length': 1.5528239202657808, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 2, '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': '4277492', 'n_tokens_mistral': 1445, 'n_tokens_neox': 1324, 'n_words': 327}