<commit_before># it is not really python, but there is no R support on Travis CI yet
language: python

sudo: false

addons:
  apt:
    packages:
      - python-virtualenv
      - gfortran
      - openjdk-7-jdk

# environment variables
env:
  - PYTHONPATH=~/vtk-precise64/lib/python2.7/site-packages:~/vtk-precise64/lib LD_LIBRARY_PATH=~/vtk-precise64/lib:~/local/lib:~/local/lib/R/lib

before_install:
  - pushd "${HOME}"
  - curl "https://fastdl.mongodb.org/linux/mongodb-linux-x86_64-${MONGO_VERSION}.tgz" | gunzip -c | tar x
  - cd mongodb-*/bin && export PATH="${PWD}:${PATH}"
  - popd
  - mkdir /tmp/db
  - mongod --dbpath=/tmp/db >/dev/null 2>/dev/null &
  - mongod --version
  - pushd "${HOME}"
  - curl "http://www.cmake.org/files/v3.2/cmake-3.2.2-Linux-x86_64.tar.gz" | gunzip -c | tar x
  - cd cmake-*/bin && export PATH="${PWD}:${PATH}"
  - popd
  - cmake --version
  # download VTK
  - wget http://midas3.kitware.com/midas/download/bitstream/366970/vtk-precise64-118242.tar.gz -O vtk-precise64.tar.gz
  - tar xzvf vtk-precise64.tar.gz -C ~
  # install R
  - eval "$(curl https://data.kitware.com/api/v1/file/55735da88d777f649a9ba181/download | /bin/bash)"
  - eval "$(travis-install 5575e0d88d777f649a9ba197)"
  - R --version
  - R -e '.libPaths(); sessionInfo()'
  # install spark
  - wget http://www.scala-lang.org/files/archive/scala-2.10.5.tgz
  - tar xzvf scala-2.10.5.tgz -C ~
  - export SCALA_HOME=$HOME/scala-2.10.5
  - export PATH=$PATH:$SCALA_HOME/bin
  - wget http://psg.mtu.edu/pub/apache/spark/spark-1.3.1/spark-1.3.1-bin-hadoop2.4.tgz
  - tar xzvf spark-1.3.1-bin-hadoop2.4.tgz -C ~
  - export SPARK_HOME=$HOME/spark-1.3.1-bin-hadoop2.4
  - export SPARK_MASTER_IP=localhost
  - $SPARK_HOME/sbin/start-master.sh
  - sleep 3
  - $SPARK_HOME/sbin/start-slave.sh worker1 spark://localhost:7077
  # install swift
  - wget http://swiftlang.org/packages/swift-0.96.1.tar.gz
  - tar xfz swift-0.96.1.tar.gz
  - export PATH=$PATH:$HOME/swift-0.96.1/bin
  - swift --version

# install dependencies
install:
  # install Python packages for core and all plugins
  - python scripts/install_requirements.py --mode=dev --all

# run tests
script:
  - mkdir _build
  - cd _build
  - cmake -D PYTHON_COVERAGE:BOOL=ON -D SPARK_TEST_MASTER_URL:STRING="spark://localhost:7077" ..
  - ctest -VV -S ../cmake/travis_continuous.cmake || true
  - if [ -f test_failed ] ; then false ; fi
  - cd ..

after_success:
  - coveralls<commit_msg>A bit more debugging info for travis<commit_after># it is not really python, but there is no R support on Travis CI yet
language: python

sudo: false

addons:
  apt:
    packages:
      - python-virtualenv
      - gfortran
      - openjdk-7-jdk

# environment variables
env:
  - PYTHONPATH=~/vtk-precise64/lib/python2.7/site-packages:~/vtk-precise64/lib LD_LIBRARY_PATH=~/vtk-precise64/lib:~/local/lib:~/local/lib/R/lib

before_install:
  - pushd "${HOME}"
  - curl "https://fastdl.mongodb.org/linux/mongodb-linux-x86_64-${MONGO_VERSION}.tgz" | gunzip -c | tar x
  - cd mongodb-*/bin && export PATH="${PWD}:${PATH}"
  - popd
  - mkdir /tmp/db
  - mongod --dbpath=/tmp/db >/dev/null 2>/dev/null &
  - mongod --version
  - pushd "${HOME}"
  - curl "http://www.cmake.org/files/v3.2/cmake-3.2.2-Linux-x86_64.tar.gz" | gunzip -c | tar x
  - cd cmake-*/bin && export PATH="${PWD}:${PATH}"
  - popd
  - cmake --version
  # download VTK
  - wget http://midas3.kitware.com/midas/download/bitstream/366970/vtk-precise64-118242.tar.gz -O vtk-precise64.tar.gz
  - tar xzvf vtk-precise64.tar.gz -C ~
  # install R
  - eval "$(curl https://data.kitware.com/api/v1/file/55735da88d777f649a9ba181/download | /bin/bash)"
  - eval "$(travis-install 5575e0d88d777f649a9ba197)"
  - R --version
  - R -e '.libPaths(); sessionInfo()'
  # install spark
  - wget http://www.scala-lang.org/files/archive/scala-2.10.5.tgz
  - tar xzvf scala-2.10.5.tgz -C ~
  - export SCALA_HOME=$HOME/scala-2.10.5
  - export PATH=$PATH:$SCALA_HOME/bin
  - wget http://psg.mtu.edu/pub/apache/spark/spark-1.3.1/spark-1.3.1-bin-hadoop2.4.tgz
  - tar xzvf spark-1.3.1-bin-hadoop2.4.tgz -C ~
  - export SPARK_HOME=$HOME/spark-1.3.1-bin-hadoop2.4
  - export SPARK_MASTER_IP=localhost
  - $SPARK_HOME/sbin/start-master.sh
  - sleep 3
  - $SPARK_HOME/sbin/start-slave.sh worker1 spark://localhost:7077
  # install swift
  - wget http://swiftlang.org/packages/swift-0.96.1.tar.gz
  - tar xfz swift-0.96.1.tar.gz
  - export PATH=$PATH:$HOME/swift-0.96.1/bin
  - echo $HOME
  - echo $PWD
  - swift --version

# install dependencies
install:
  # install Python packages for core and all plugins
  - python scripts/install_requirements.py --mode=dev --all

# run tests
script:
  - mkdir _build
  - cd _build
  - cmake -D PYTHON_COVERAGE:BOOL=ON -D SPARK_TEST_MASTER_URL:STRING="spark://localhost:7077" ..
  - ctest -VV -S ../cmake/travis_continuous.cmake || true
  - if [ -f test_failed ] ; then false ; fi
  - cd ..

after_success:
  - coveralls
{'fraction_non_alphanumeric': 0.1643668831168831, 'fraction_numerical': 0.052353896103896104, 'mean_word_length': 2.8719560094265515, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, 'https://': 4, 'lorem ipsum': 0, 'www.': 4, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 6, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3453246', 'n_tokens_mistral': 2202, 'n_tokens_neox': 2010, 'n_words': 355}