<commit_before>language: cpp

compiler: gcc

env:
  - TEST="valgrind"
  - TEST="unit"

before_install:
  # Valgrind
  - if [[ "$TEST" == "valgrind" ]]; then sudo apt-get install valgrind; fi

  # SFML
  - wget http://sfml-dev.org/download/sfml/2.1/SFML-2.1-linux-gcc-64bits.tar.bz2 -O /tmp/sfml.tar.bz2
  - tar -xjvf /tmp/sfml.tar.bz2
  - sudo cp -r SFML-2.1/* /usr/
  - sudo apt-get install -y libjpeg62-dev libsndfile1-dev libglew1.5 libglew1.5-dev libfreetype6 libjpeg-turbo8 libjpeg8 libopenal-data libopenal1  libxrandr2 libxrender1 libsoil1

  # g++4.8.1
  - sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
  - sudo apt-get update -qq

install:
  - sudo apt-get install -qq g++-4.8
  - sudo apt-get install -qq libstdc++6-4.7-dev
  - export CXXFLAGS="-std=c++0x"
  - export CXX="g++-4.8"

script:
  # Build
  - cd ~/build/FidoProject/Fido && sudo ./install.sh $SFML && cd Tests
  # Run Unit Tests
  - if [[ "$TEST" == "unit" ]]; then sudo ./runtests.sh; fi
  # Run Valgrind on unit tests
  - if [[ "$TEST" == "valgrind" ]]; then make; valgrind --leak-check=full --error-exitcode=1 ./test; fi
<commit_msg>Travis valgrind fix<commit_after>language: cpp

compiler: gcc

env:
  - TEST="valgrind"
  - TEST="unit"

before_install:
  # Valgrind
  - if [[ "$TEST" == "valgrind" ]]; then sudo apt-get install valgrind; fi

  # SFML
  - wget http://sfml-dev.org/download/sfml/2.1/SFML-2.1-linux-gcc-64bits.tar.bz2 -O /tmp/sfml.tar.bz2
  - tar -xjvf /tmp/sfml.tar.bz2
  - sudo cp -r SFML-2.1/* /usr/
  - sudo apt-get install -y libjpeg62-dev libsndfile1-dev libglew1.5 libglew1.5-dev libfreetype6 libjpeg-turbo8 libjpeg8 libopenal-data libopenal1  libxrandr2 libxrender1 libsoil1

  # g++4.8.1
  - sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
  - sudo apt-get update -qq

install:
  - sudo apt-get install -qq g++-4.8
  - sudo apt-get install -qq libstdc++6-4.7-dev
  - export CXXFLAGS="-std=c++0x"
  - export CXX="g++-4.8"

script:
  # Build
  - cd ~/build/FidoProject/Fido && sudo ./install.sh $SFML && cd Tests
  # Run Unit Tests
  - if [[ "$TEST" == "unit" ]]; then sudo ./runtests.sh; fi
  # Run Valgrind on unit tests
  - if [[ "$TEST" == "valgrind" ]]; then make; valgrind --leak-check=full --error-exitcode=1 ./tests.o; fi

{'fraction_non_alphanumeric': 0.16629514043691485, 'fraction_numerical': 0.03299152920196166, 'mean_word_length': 2.8823529411764706, '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': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6555517', 'n_tokens_mistral': 990, 'n_tokens_neox': 944, 'n_words': 212}