<commit_before># As soon as Travis updates their systems, we can use container-based approach. Until then, install CMake 3.x and new
# version of GCC manually
#sudo: false
#addons:
#  apt:
#    packages:
#    - cmake

sudo: true

language: cpp

compiler:
  - clang
  - gcc

before_install:
  - 'sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test'
  - 'sudo apt-get remove -y gcc g++' # disable alternatives
  - 'sudo apt-get update'
  - 'sudo apt-get install -y gcc-4.8 g++-4.8'
  - 'sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.8 20'
  - 'sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.8 20'
  - 'g++ --version'

  - 'pushd /tmp'
  - 'mkdir cmake3build'
  - 'cd cmake3build'
  - 'wget http://www.cmake.org/files/v3.3/cmake-3.3.1.tar.gz'
  - 'tar xf cmake-3.3.1.tar.gz'
  - 'cd cmake-3.3.1'
  - './configure'
  - 'make'
  - 'sudo make install'
  - 'popd'

before_script:
  - 'mkdir .build'
  - 'cd .build'
  - 'cmake --version'
  - 'cmake -G "Unix Makefiles" ..'

script:
  - make
  - make test<commit_msg>Try to install cmake as binary directly<commit_after># As soon as Travis updates their systems, we can use container-based approach. Until then, install CMake 3.x and new
# version of GCC manually
#sudo: false
#addons:
#  apt:
#    packages:
#    - cmake

sudo: true

language: cpp

os:
  -linux

compiler:
  - clang
  - gcc

before_install:
  - CMAKE_VERSION_MM=3.2
  - CMAKE_VERSION_FULL=$CMAKE_VERSION_MM.2
  - if [ "$TRAVIS_OS_NAME" == "linux" ]; then
    sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
      && sudo add-apt-repository -y ppa:apokluda/boost1.53
      && sudo apt-get update -qq
      && sudo apt-get install -qq g++-4.8 libboost1.53-dev --no-install-recommends
      && sudo update-alternatives --quiet --install /usr/bin/gcc gcc /usr/bin/gcc-4.8 40 --slave /usr/bin/g++ g++ /usr/bin/g++-4.8 --slave /usr/bin/gcov gcov /usr/bin/gcov-4.8
      && sudo update-alternatives --quiet --set gcc /usr/bin/gcc-4.8
      && wget http://www.cmake.org/files/v${CMAKE_VERSION_MM}/cmake-${CMAKE_VERSION_FULL}-Linux-x86_64.sh
      && sudo sh cmake-${CMAKE_VERSION_FULL}-Linux-x86_64.sh --prefix=/usr/local --exclude-subdir;
    fi

before_script:
  - mkdir .build
  - cd .build
  - cmake --version
  - cmake -G "Unix Makefiles" ..

script:
  - make
  - make test

{'fraction_non_alphanumeric': 0.15744315744315746, 'fraction_numerical': 0.024024024024024024, 'mean_word_length': 2.5987654320987654, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '3158268', 'n_tokens_mistral': 981, 'n_tokens_neox': 913, 'n_words': 224}