<commit_before>#!/bin/bash
set -e
rm -rf *.zip
./gradlew clean test assemble

filename=$(find build/libs -name "*.jar" | head -1)
filename=$(basename "$filename")

EXIT_STATUS=0
echo "Publishing archives for branch $TRAVIS_BRANCH"
if [[ -n $TRAVIS_TAG ]] || [[ $TRAVIS_BRANCH == 'master' && $TRAVIS_PULL_REQUEST == 'false' ]]; then

  echo "Publishing archives"

  if [[ -n $TRAVIS_TAG ]]; then
      ./gradlew bintrayUpload || EXIT_STATUS=$?
  else
      ./gradlew publish || EXIT_STATUS=$?
  fi

  ./gradlew docs || EXIT_STATUS=$?

  git config --global user.name "$GIT_NAME"
  git config --global user.email "$GIT_EMAIL"
  git config --global credential.helper "store --file=~/.git-credentials"
  echo "https://$GH_TOKEN:@github.com" > ~/.git-credentials

  git clone https://${GH_TOKEN}@github.com/${TRAVIS_REPO_SLUG}.git -b gh-pages gh-pages --single-branch > /dev/null
  cd gh-pages

  # If this is the master branch then update the snapshot
  if [[ $TRAVIS_BRANCH == 'master' ]]; then
    mkdir -p snapshot
    cp -r ../build/docs/manual/. ./snapshot/

    git add snapshot/*
  fi

    # If there is a tag present then this becomes the latest
    if [[ -n $TRAVIS_TAG ]]; then
        mkdir -p latest
        cp -r ../build/docs/manual/. ./latest/
        git add latest/*

        version="$TRAVIS_TAG"
        version=${version:1}
        majorVersion=${version:0:4}
        majorVersion="${majorVersion}x"

        mkdir -p "$version"
        cp -r ../build/docs/manual/. "./$version/"
        git add "$version/*"

        mkdir -p "$majorVersion"
        cp -r ../build/docs/manual/. "./$majorVersion/"
        git add "$majorVersion/*"

    fi

    git commit -a -m "Updating docs for Travis build: https://travis-ci.org/$TRAVIS_REPO_SLUG/builds/$TRAVIS_BUILD_ID"
    git push origin HEAD
    cd ..
    rm -rf gh-pages
fi

exit $EXIT_STATUS
<commit_msg>Temporarely removed gh-page building from travis-build.sh<commit_after>#!/bin/bash
set -e
rm -rf *.zip
./gradlew clean test assemble

filename=$(find build/libs -name "*.jar" | head -1)
filename=$(basename "$filename")

EXIT_STATUS=0
echo "Publishing archives for branch $TRAVIS_BRANCH"
if [[ -n $TRAVIS_TAG ]] || [[ $TRAVIS_BRANCH == 'master' && $TRAVIS_PULL_REQUEST == 'false' ]]; then

  echo "Publishing archives"

  if [[ -n $TRAVIS_TAG ]]; then
      ./gradlew bintrayUpload || EXIT_STATUS=$?
  else
      ./gradlew publish || EXIT_STATUS=$?
  fi

#  ./gradlew docs || EXIT_STATUS=$?
#
#  git config --global user.name "$GIT_NAME"
#  git config --global user.email "$GIT_EMAIL"
#  git config --global credential.helper "store --file=~/.git-credentials"
#  echo "https://$GH_TOKEN:@github.com" > ~/.git-credentials
#
#  git clone https://${GH_TOKEN}@github.com/${TRAVIS_REPO_SLUG}.git -b gh-pages gh-pages --single-branch > /dev/null
#  cd gh-pages
#
#  # If this is the master branch then update the snapshot
#  if [[ $TRAVIS_BRANCH == 'master' ]]; then
#    mkdir -p snapshot
#    cp -r ../build/docs/manual/. ./snapshot/
#
#    git add snapshot/*
#  fi
#
#    # If there is a tag present then this becomes the latest
#    if [[ -n $TRAVIS_TAG ]]; then
#        mkdir -p latest
#        cp -r ../build/docs/manual/. ./latest/
#        git add latest/*
#
#        version="$TRAVIS_TAG"
#        version=${version:1}
#        majorVersion=${version:0:4}
#        majorVersion="${majorVersion}x"
#
#        mkdir -p "$version"
#        cp -r ../build/docs/manual/. "./$version/"
#        git add "$version/*"
#
#        mkdir -p "$majorVersion"
#        cp -r ../build/docs/manual/. "./$majorVersion/"
#        git add "$majorVersion/*"
#
#    fi
#
#    git commit -a -m "Updating docs for Travis build: https://travis-ci.org/$TRAVIS_REPO_SLUG/builds/$TRAVIS_BUILD_ID"
#    git push origin HEAD
#    cd ..
#    rm -rf gh-pages
fi

exit $EXIT_STATUS

{'fraction_non_alphanumeric': 0.16182246661429694, 'fraction_numerical': 0.002618486514794449, 'mean_word_length': 2.6485195797516714, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, 'https://': 6, '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': '6490126', 'n_tokens_mistral': 1401, 'n_tokens_neox': 1329, 'n_words': 357}