<commit_before>sudo: false
language: cpp
python:
  - "2.7"

matrix:
  include:

    - env: COMPILER_VERSION=3.6
      compiler: clang
      addons: &clang36
        apt:
          sources: ['ubuntu-toolchain-r-test', 'llvm-toolchain-precise-3.6']
          packages: ['cmake', 'nodejs', 'clang-3.6']

    - env: COMPILER_VERSION=3.6 COMPILER_FLAGS="-fsanitize=undefined -fsanitize-blacklist=`pwd`/ubsan.blacklist"
      compiler: clang
      addons: *clang36

    - env: COMPILER_VERSION=3.6 COMPILER_FLAGS="-fsanitize=address"
      compiler: clang
      addons: *clang36

    - env: COMPILER_VERSION=3.6 COMPILER_FLAGS="-fsanitize=thread"
      compiler: clang
      addons: *clang36

    - env: COMPILER_VERSION=5
      compiler: gcc
      addons: &gcc5
        apt:
          sources: ['ubuntu-toolchain-r-test']
          packages: ['cmake', 'nodejs', 'g++-5']

  allow_failures:
    - env: COMPILER_VERSION=3.6 COMPILER_FLAGS="-fsanitize=address" ASAN_OPTIONS="detect_leaks=0"
      compiler: clang
      addons: *clang36

before_install:
  - export CC="${CC}-${COMPILER_VERSION}"
  - export CXX="${CXX}-${COMPILER_VERSION}"

install:
  - pip install --user flake8

before_script:
  # Check the style of a subset of Python code until the other code is updated.
  - flake8 update.py ./scripts/*

script:
  - cmake . -DCMAKE_C_FLAGS="$COMPILER_FLAGS" -DCMAKE_CXX_FLAGS="$COMPILER_FLAGS"
  - make -j2
  - ./check.py

notifications:
  email: false
<commit_msg>Fix travis ASAN build<commit_after>sudo: false
language: cpp
python:
  - "2.7"

matrix:
  include:

    - env: COMPILER_VERSION=3.6
      compiler: clang
      addons: &clang36
        apt:
          sources: ['ubuntu-toolchain-r-test', 'llvm-toolchain-precise-3.6']
          packages: ['cmake', 'nodejs', 'clang-3.6']

    - env: COMPILER_VERSION=3.6 COMPILER_FLAGS="-fsanitize=undefined -fsanitize-blacklist=`pwd`/ubsan.blacklist"
      compiler: clang
      addons: *clang36

    - env: COMPILER_VERSION=3.6 COMPILER_FLAGS="-fsanitize=address"
      compiler: clang
      addons: *clang36

    - env: COMPILER_VERSION=3.6 COMPILER_FLAGS="-fsanitize=thread"
      compiler: clang
      addons: *clang36

    - env: COMPILER_VERSION=5
      compiler: gcc
      addons: &gcc5
        apt:
          sources: ['ubuntu-toolchain-r-test']
          packages: ['cmake', 'nodejs', 'g++-5']

  allow_failures:
    - env: COMPILER_VERSION=3.6 COMPILER_FLAGS="-fsanitize=address"
      compiler: clang
      addons: *clang36

before_install:
  - export CC="${CC}-${COMPILER_VERSION}"
  - export CXX="${CXX}-${COMPILER_VERSION}"
  - export ASAN_OPTIONS="detect_leaks=0 symbolize=1"

install:
  - pip install --user flake8

before_script:
  # Check the style of a subset of Python code until the other code is updated.
  - flake8 update.py ./scripts/*

script:
  - cmake . -DCMAKE_C_FLAGS="$COMPILER_FLAGS" -DCMAKE_CXX_FLAGS="$COMPILER_FLAGS"
  - make -j2
  - ./check.py

notifications:
  email: false

{'fraction_non_alphanumeric': 0.1319796954314721, 'fraction_numerical': 0.022673434856175973, 'mean_word_length': 2.9838274932614555, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, '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': '6013224', 'n_tokens_mistral': 1116, 'n_tokens_neox': 1079, 'n_words': 215}