<commit_before>language: java
sudo: false
matrix:
  fast_finish: true
  include:
    - jdk: openjdk7
    - jdk: oraclejdk8
      # Java 9 needs to be manually installed/upgraded
      # see: https://github.com/travis-ci/travis-ci/issues/2968#issuecomment-149164058
    - jdk: oraclejdk9
      env: JVM=latest
      sudo: required
      dist: trusty
      group: edge
  allow_failures:
    - jdk: oraclejdk9

env:
  global:
    - BASEURL=https://www-eu.apache.org/dist/maven/maven-3/VERSION/binaries/apache-maven-VERSION-bin.zip
    - FILE=apache-maven-VERSION-bin.zip
    - DIR=apache-maven-VERSION
    - VERSION=3.3.9
#    - secure: "<KEY>
#    - secure: "<KEY>

before_install:
   # update maven
   - if [ "$TRAVIS_OS_NAME" == "linux" ]; then
         wget --no-check-certificate $(echo -n $BASEURL | sed -e 's#VERSION#'$VERSION'#g');
         unzip -qq $(echo -n $FILE | sed -e 's#VERSION#'$VERSION'#');
         export M2_HOME=$PWD/$(echo -n $DIR | sed -e 's#VERSION#'$VERSION'#');
         export PATH=$M2_HOME/bin:$PATH;
     fi
   # update java 9
   - if [ "$TRAVIS_OS_NAME" == "linux" ] && [ "$JVM" == "latest" ]; then
         sudo apt-get update -qq;
         sudo /bin/echo -e oracle-java9-installer shared/accepted-oracle-license-v1-1 select true | sudo debconf-set-selections;
         sudo apt-get -o Dpkg::Options::="--force-confnew" install -y oracle-java9-installer oracle-java9-set-default oracle-java9-unlimited-jce-policy;
         sudo update-java-alternatives -s java-9-oracle;
     fi
#   - if [ "$TRAVIS_JDK_VERSION" == oraclejdk9 ]; then
#         sudo rm /etc/mavenrc;
#     fi

install: true

script:
  - mvn clean test verify -B
  - mvn clean package

notifications:
  email:
    - $EMAIL
    
cache:
  directories:
    - $HOME/.m2

deploy:
  provider: script
  script: "mvn deploy --settings .travis.settings.xml -DskipTests=true -B -P selected-build"<commit_msg>simplify and remove redundant stuff<commit_after>language: java
sudo: false
matrix:
  fast_finish: true
  include:
    - jdk: oraclejdk8
      # Java 9 needs to be manually installed/upgraded
      # see: https://github.com/travis-ci/travis-ci/issues/2968#issuecomment-149164058
    - jdk: oraclejdk9
      env: JVM=latest
      sudo: required
      dist: trusty
      group: edge
  allow_failures:
    - jdk: oraclejdk9

env:
  global:
    - BASEURL=https://www-eu.apache.org/dist/maven/maven-3/VERSION/binaries/apache-maven-VERSION-bin.zip
    - FILE=apache-maven-VERSION-bin.zip
    - DIR=apache-maven-VERSION
    - VERSION=3.3.9
#    - secure: "<KEY>
#    - secure: "<KEY>

before_install:
   # update maven
   - if [ "$TRAVIS_OS_NAME" == "linux" ]; then
         wget --no-check-certificate $(echo -n $BASEURL | sed -e 's#VERSION#'$VERSION'#g');
         unzip -qq $(echo -n $FILE | sed -e 's#VERSION#'$VERSION'#');
         export M2_HOME=$PWD/$(echo -n $DIR | sed -e 's#VERSION#'$VERSION'#');
         export PATH=$M2_HOME/bin:$PATH;
     fi
   # update java 9
   - if [ "$TRAVIS_OS_NAME" == "linux" ] && [ "$JVM" == "latest" ]; then
         sudo apt-get update -qq;
         sudo /bin/echo -e oracle-java9-installer shared/accepted-oracle-license-v1-1 select true | sudo debconf-set-selections;
         sudo apt-get -o Dpkg::Options::="--force-confnew" install -y oracle-java9-installer oracle-java9-set-default oracle-java9-unlimited-jce-policy;
         sudo update-java-alternatives -s java-9-oracle;
     fi
#   - if [ "$TRAVIS_JDK_VERSION" == oraclejdk9 ]; then
#         sudo rm /etc/mavenrc;
#     fi

install: true

script:
  - mvn clean test verify -B
  - mvn clean package

notifications:
  email:
    - $EMAIL

cache:
  directories:
    - $HOME/.m2

deploy:
  provider: script
  script: "mvn deploy --settings .travis.settings.xml -DskipTests=true -B -P selected-build"
{'fraction_non_alphanumeric': 0.14436805922792173, 'fraction_numerical': 0.017715494447382338, 'mean_word_length': 2.6200956937799043, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 4, 'lorem ipsum': 0, 'www.': 2, 'xml': 2}, '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': '4907338', 'n_tokens_mistral': 1440, 'n_tokens_neox': 1366, 'n_words': 301}