<commit_before>
#!/bin/bash

if [ "$TRAVIS_REPO_SLUG" == "stephentuso/welcome-android" ] && [ "$TRAVIS_PULL_REQUEST" == "false" ] && [ "$TRAVIS_BRANCH" == "master" ]; then

  echo -e "Publishing javadoc...\n"

  cp -R library/build/docs/javadoc $HOME/javadoc-latest

  cd $HOME
  git config --global user.email "<EMAIL>"
  git config --global user.name "travis-ci"
  git clone --quiet --branch=gh-pages https://${GH_TOKEN}@github.com/stephentuso/welcome-android gh-pages > /dev/null

  cd gh-pages
  git rm -rf .
  cp -Rf $HOME/javadoc-latest ./
  git add -f .
  git commit -m "Update javadoc (travis build #$TRAVIS_BUILD_NUMBER)"
  git push -fq origin gh-pages > /dev/null

  echo -e "Pushed javadoc to gh-pages.\n"

fi<commit_msg>Update javadoc push script<commit_after>
#!/bin/bash
echo -e "Checking conditions..\n"
echo "$TRAVIS_REPO_SLUG"
if [ "$TRAVIS_REPO_SLUG" == "stephentuso/welcome-android" ] && [ "$TRAVIS_PULL_REQUEST" == "false" ] && [ "$TRAVIS_BRANCH" == "master" ]; then

  echo -e "Publishing javadoc...\n"

  cp -R library/build/docs/javadoc $HOME/javadoc-latest

  cd $HOME
  git config --global user.email "<EMAIL>"
  git config --global user.name "travis-ci"
  git clone --quiet --branch=gh-pages https://${GH_TOKEN}@github.com/stephentuso/welcome-android gh-pages > /dev/null

  cd gh-pages
  git rm -rf .
  cp -Rf $HOME/javadoc-latest ./
  git add -f .
  git commit -m "Update javadoc (travis build #$TRAVIS_BUILD_NUMBER)"
  git push -fq origin gh-pages > /dev/null

  echo -e "Pushed javadoc to gh-pages.\n"

else
    echo -e "Not publishing javadoc.\n"
fi
{'fraction_non_alphanumeric': 0.15949367088607594, 'fraction_numerical': 0.0, 'mean_word_length': 3.272972972972973, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 9, 'https://': 2, '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': '342960', 'n_tokens_mistral': 646, 'n_tokens_neox': 602, 'n_words': 152}