<commit_before>language: cpp
compiler: gcc
os: linux
cache: apt

addons:
  apt:
    sources:
      - boost-latest
      - ubuntu-toolchain-r-test
      - sourceline: 'ppa:george-edison55/cmake-3.x'
    packages:
      - gcc-6
      - g++-6
      - libboost-all-dev

install:
  # get the cmake
  - sudo apt-get update -qq
  - sudo apt-get upgrade -qq cmake
  # setup g++ 6
  - sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-6 90
  - sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-6 90
  # verify installed versions
  - which cmake
  - cmake --version
  - which g++
  - g++ --version

script:
  - mkdir build<commit_msg>Either install will work, or the build from source<commit_after>language: cpp
compiler: gcc
os: linux
cache: apt

addons:
  apt:
    sources:
      - boost-latest
      - ubuntu-toolchain-r-test
      - sourceline: 'ppa:george-edison55/cmake-3.x'
    packages:
      - gcc-6
      - g++-6
      - libboost-all-dev

install:
  # get the cmake
  - sudo apt-get update -qq
  - sudo apt-get install -qq cmake
  # setup g++ 6
  - sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-6 90
  - sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-6 90
  # cmake from sources
  - CMAKE_VERSION="3.8"
  - CMAKE_FULL="${CMAKE_VERSION}.0"
  - wget "http://www.cmake.org/files/v${CMAKE_VERSION}/cmake-${CMAKE_FULL}.tar.gz"
  - openssl sha1 "cmake-${CMAKE_FULL}.tar.gz"
  - tar xf "cmake-${CMAKE_FULL}.tar.gz"
  - cd "cmake-${CMAKE_FULL}"
  - ./bootstrap --prefix=~
  - make
  - make install
  - export PATH="~/bin:${PATH}"
  - cd ..
  # verify installed versions
  - which cmake
  - cmake --version
  - which g++
  - g++ --version

script:
  - mkdir build
{'fraction_non_alphanumeric': 0.15107495642068564, 'fraction_numerical': 0.016269610691458453, 'mean_word_length': 2.2988505747126435, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 1, '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': '590973', 'n_tokens_mistral': 702, 'n_tokens_neox': 652, 'n_words': 156}