<commit_before>language: cpp

sudo: false
dist: trusty

matrix:
  include:
    - os: linux
      compiler: clang
      addons:
        apt:
          sources:
            - ubuntu-toolchain-r-test
            - sourceline: 'deb http://apt.llvm.org/trusty/ llvm-toolchain-trusty-5.0 main'
              key_url: 'https://apt.llvm.org/llvm-snapshot.gpg.key'
          packages:
            - clang-5.0
            - cmake
            - cmake-data
            - g++-6
      env:
        - CMAKE_BUILD_TYPE=DEBUG
        - CMAKE_C_COMPILER=clang-5.0
        - CMAKE_CXX_COMPILER=clang++-5.0
        - ENABLE_SHARED_LIBS=ON

    - os: linux
      compiler: clang
      addons:
        apt:
          sources:
            - ubuntu-toolchain-r-test
            - sourceline: 'deb http://apt.llvm.org/trusty/ llvm-toolchain-trusty-5.0 main'
              key_url: 'https://apt.llvm.org/llvm-snapshot.gpg.key'
          packages:
            - clang-5.0
            - cmake
            - cmake-data
            - g++-6
      env:
        - CMAKE_BUILD_TYPE=RELEASE
        - CMAKE_C_COMPILER=clang-5.0
        - CMAKE_CXX_COMPILER=clang++-5.0
        - ENABLE_SHARED_LIBS=ON

    - os: linux
      compiler: g++
      addons:
        apt:
          sources:
            - ubuntu-toolchain-r-test
          packages:
            - cmake
            - cmake-data
            - g++-6
      env:
        - CMAKE_BUILD_TYPE=DEBUG
        - CMAKE_C_COMPILER=gcc-6
        - CMAKE_CXX_COMPILER=g++-6
        - ENABLE_SHARED_LIBS=ON

    - os: linux
      compiler: g++
      addons:
        apt:
          sources:
            - ubuntu-toolchain-r-test
          packages:
            - cmake
            - cmake-data
            - g++-6
      env:
        - CMAKE_BUILD_TYPE=RELEASE
        - CMAKE_C_COMPILER=gcc-6
        - CMAKE_CXX_COMPILER=g++-6
        - ENABLE_SHARED_LIBS=ON

    - os: osx
      osx_image: xcode8.3
      compiler: clang++
      env:
        - CMAKE_BUILD_TYPE=DEBUG
        - CMAKE_C_COMPILER=clang
        - CMAKE_CXX_COMPILER=clang++
        - ENABLE_SHARED_LIBS=OFF

    - os: osx
      osx_image: xcode8.3
      compiler: clang++
      env:
        - CMAKE_BUILD_TYPE=RELEASE
        - CMAKE_C_COMPILER=clang
        - CMAKE_CXX_COMPILER=clang++
        - ENABLE_SHARED_LIBS=OFF

before_install:
  - if [ "$TRAVIS_OS_NAME" == "osx" ]; then
       export CC=clang;
       export CXX=clang++;
      ./install_dependencies.sh;
    else
       export CC=gcc;
       export CXX=g++;
      ./install_dependencies.sh;
    fi

before_script:
  - mkdir build
  - cd build
  - cmake -DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE}
          -DCMAKE_C_COMPILER=${CMAKE_C_COMPILER}
          -DCMAKE_CXX_COMPILER=${CMAKE_CXX_COMPILER}
          -DENABLE_SHARED_LIBS=${ENABLE_SHARED_LIBS}
          ..

script:
  - make -j2

<commit_msg>sudo required:<commit_after>language: cpp

sudo: required
dist: trusty

matrix:
  include:
    - os: linux
      compiler: clang
      addons:
        apt:
          sources:
            - ubuntu-toolchain-r-test
            - sourceline: 'deb http://apt.llvm.org/trusty/ llvm-toolchain-trusty-5.0 main'
              key_url: 'https://apt.llvm.org/llvm-snapshot.gpg.key'
          packages:
            - clang-5.0
            - cmake
            - cmake-data
            - g++-6
      env:
        - CMAKE_BUILD_TYPE=DEBUG
        - CMAKE_C_COMPILER=clang-5.0
        - CMAKE_CXX_COMPILER=clang++-5.0
        - ENABLE_SHARED_LIBS=ON

    - os: linux
      compiler: clang
      addons:
        apt:
          sources:
            - ubuntu-toolchain-r-test
            - sourceline: 'deb http://apt.llvm.org/trusty/ llvm-toolchain-trusty-5.0 main'
              key_url: 'https://apt.llvm.org/llvm-snapshot.gpg.key'
          packages:
            - clang-5.0
            - cmake
            - cmake-data
            - g++-6
      env:
        - CMAKE_BUILD_TYPE=RELEASE
        - CMAKE_C_COMPILER=clang-5.0
        - CMAKE_CXX_COMPILER=clang++-5.0
        - ENABLE_SHARED_LIBS=ON

    - os: linux
      compiler: g++
      addons:
        apt:
          sources:
            - ubuntu-toolchain-r-test
          packages:
            - cmake
            - cmake-data
            - g++-6
      env:
        - CMAKE_BUILD_TYPE=DEBUG
        - CMAKE_C_COMPILER=gcc-6
        - CMAKE_CXX_COMPILER=g++-6
        - ENABLE_SHARED_LIBS=ON

    - os: linux
      compiler: g++
      addons:
        apt:
          sources:
            - ubuntu-toolchain-r-test
          packages:
            - cmake
            - cmake-data
            - g++-6
      env:
        - CMAKE_BUILD_TYPE=RELEASE
        - CMAKE_C_COMPILER=gcc-6
        - CMAKE_CXX_COMPILER=g++-6
        - ENABLE_SHARED_LIBS=ON

    - os: osx
      osx_image: xcode8.3
      compiler: clang++
      env:
        - CMAKE_BUILD_TYPE=DEBUG
        - CMAKE_C_COMPILER=clang
        - CMAKE_CXX_COMPILER=clang++
        - ENABLE_SHARED_LIBS=OFF

    - os: osx
      osx_image: xcode8.3
      compiler: clang++
      env:
        - CMAKE_BUILD_TYPE=RELEASE
        - CMAKE_C_COMPILER=clang
        - CMAKE_CXX_COMPILER=clang++
        - ENABLE_SHARED_LIBS=OFF

before_install:
  - if [ "$TRAVIS_OS_NAME" == "osx" ]; then
       export CC=clang;
       export CXX=clang++;
      ./install_dependencies.sh;
    else
       export CC=gcc;
       export CXX=g++;
      ./install_dependencies.sh;
    fi

before_script:
  - mkdir build
  - cd build
  - cmake -DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE}
          -DCMAKE_C_COMPILER=${CMAKE_C_COMPILER}
          -DCMAKE_CXX_COMPILER=${CMAKE_CXX_COMPILER}
          -DENABLE_SHARED_LIBS=${ENABLE_SHARED_LIBS}
          ..

script:
  - make -j2


{'fraction_non_alphanumeric': 0.1050494350282486, 'fraction_numerical': 0.010240112994350282, 'mean_word_length': 1.4397071490094746, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, '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': '3333323', 'n_tokens_mistral': 2168, 'n_tokens_neox': 2059, 'n_words': 289}