<commit_before># https://github.com/google/dagger/blob/master/util/generate-latest-docs.sh

if [ "$TRAVIS_REPO_SLUG" == "google/error-prone" ] && \
   [ "$TRAVIS_JDK_VERSION" == "oraclejdk7" ] && \
   [ "$TRAVIS_PULL_REQUEST" == "false" ] && \
   [ "$TRAVIS_BRANCH" == "master" ]; then
  echo -e "Publishing docs...\n"

  GH_PAGES_DIR=$HOME/gh-pages

  git clone --quiet --branch=gh-pages https://${GH_TOKEN}@github.com/google/error-prone $GH_PAGES_DIR > /dev/null
  (
    cd $GH_PAGES_DIR
    rm -rf _data/bugpatterns.yaml bugpattern api/latest
    mkdir -p _data bugpattern api/latest
  )

  mvn javadoc:aggregate -P!examples
  rsync -a target/site/apidocs/ ${GH_PAGES_DIR}/api/latest

  # The "mvn clean" is necessary since the wiki docs are generated by an
  # annotation processor that also compiles the code.  If Maven thinks the code
  # does not need to be recompiled, the wiki docs will not be generated either.
  mvn clean

  mvn -P run-annotation-processor compile site
  rsync -a core/target/generated-wiki/ ${GH_PAGES_DIR}

  cd $GH_PAGES_DIR
  git config --global user.email "<EMAIL>"
  git config --global user.name "travis-ci"
  git add --all .
  git commit -m "Lastest docs on successful travis build $TRAVIS_BUILD_NUMBER auto-pushed to gh-pages"
  git push -fq origin gh-pages > /dev/null

  echo -e "Published docs to gh-pages.\n"
fi<commit_msg>Set travis git config less aggressively<commit_after># https://github.com/google/dagger/blob/master/util/generate-latest-docs.sh

if [ "$TRAVIS_REPO_SLUG" == "google/error-prone" ] && \
   [ "$TRAVIS_JDK_VERSION" == "oraclejdk7" ] && \
   [ "$TRAVIS_PULL_REQUEST" == "false" ] && \
   [ "$TRAVIS_BRANCH" == "master" ]; then
  echo -e "Publishing docs...\n"

  GH_PAGES_DIR=$HOME/gh-pages

  git clone --quiet --branch=gh-pages https://${GH_TOKEN}@github.com/google/error-prone $GH_PAGES_DIR > /dev/null
  (
    cd $GH_PAGES_DIR
    rm -rf _data/bugpatterns.yaml bugpattern api/latest
    mkdir -p _data bugpattern api/latest
  )

  mvn javadoc:aggregate -P!examples
  rsync -a target/site/apidocs/ ${GH_PAGES_DIR}/api/latest

  # The "mvn clean" is necessary since the wiki docs are generated by an
  # annotation processor that also compiles the code.  If Maven thinks the code
  # does not need to be recompiled, the wiki docs will not be generated either.
  mvn clean

  mvn -P run-annotation-processor compile site
  rsync -a core/target/generated-wiki/ ${GH_PAGES_DIR}

  cd $GH_PAGES_DIR
  git add --all .
  git commit -m "Lastest docs on successful travis build $TRAVIS_BUILD_NUMBER auto-pushed to gh-pages" --author "travis-ci <<EMAIL>>"
  git push -fq origin gh-pages > /dev/null

  echo -e "Published docs to gh-pages.\n"
fi
{'fraction_non_alphanumeric': 0.12527798369162343, 'fraction_numerical': 0.0007412898443291327, 'mean_word_length': 3.4173486088379708, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 10, 'https://': 4, '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': '3924097', 'n_tokens_mistral': 1046, 'n_tokens_neox': 952, 'n_words': 265}