<commit_before>language: cpp

os:
 - linux

addons:
  apt:
    sources:
    - ubuntu-toolchain-r-test
    packages:
    - g++-5
    - lcov
 
compiler:
  - gcc
  
install:
- if [ "$CXX" = "g++" ]; then export CXX="g++-5"; fi

script:
  - $CXX --version
  - mkdir build
  - cd build
  - cmake -DCMAKE_BUILD_TYPE=Release ..
  - make VERBOSE=1
  - ctest --verbose
  - cd ..

after_success:
  - mkdir coverage
  - cd coverage
  - cmake -DCMAKE_BUILD_TYPE=Debug -DCOVERAGE=yes ..
  - make
  - ctest
  - lcov --gcov-tool gcov-5 --directory . --capture --output-file coverage.info
  - lcov --gcov-tool gcov-5 --remove coverage.info '/usr/*' --output-file coverage.info 
  - lcov --gcov-tool gcov-5 --remove coverage.info 'googletest' --output-file coverage.info 
  - lcov --gcov-tool gcov-5 --remove coverage.info '*.t.cpp' --output-file coverage.info 
  - lcov --gcov-tool gcov-5 --list coverage.info
  - bash <(curl -s https://codecov.io/bash) || echo "Codecov did not collect coverage reports"
  - cd ..

env:
  global:
  - LANG="en_US.UTF-8"<commit_msg>init submodules travis ci<commit_after>language: cpp

os:
 - linux

addons:
  apt:
    sources:
    - ubuntu-toolchain-r-test
    packages:
    - g++-5
    - lcov
 
compiler:
  - gcc
  
install:
  - if [ "$CXX" = "g++" ]; then export CXX="g++-5"; fi
  - git submodule update --init

script:
  - $CXX --version
  - mkdir build
  - cd build
  - cmake -DCMAKE_BUILD_TYPE=Release ..
  - make VERBOSE=1
  - ctest --verbose
  - cd ..

after_success:
  - mkdir coverage
  - cd coverage
  - cmake -DCMAKE_BUILD_TYPE=Debug -DCOVERAGE=yes ..
  - make
  - ctest
  - lcov --gcov-tool gcov-5 --directory . --capture --output-file coverage.info
  - lcov --gcov-tool gcov-5 --remove coverage.info '/usr/*' --output-file coverage.info 
  - lcov --gcov-tool gcov-5 --remove coverage.info 'googletest' --output-file coverage.info 
  - lcov --gcov-tool gcov-5 --remove coverage.info '*.t.cpp' --output-file coverage.info 
  - lcov --gcov-tool gcov-5 --list coverage.info
  - bash <(curl -s https://codecov.io/bash) || echo "Codecov did not collect coverage reports"
  - cd ..

env:
  global:
  - LANG="en_US.UTF-8"
{'fraction_non_alphanumeric': 0.15811567164179105, 'fraction_numerical': 0.008395522388059701, 'mean_word_length': 2.269817073170732, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, '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': '4061002', 'n_tokens_mistral': 840, 'n_tokens_neox': 805, 'n_words': 198}