<commit_before><commit_msg>missing script<commit_after>#!/bin/bash

if [ "$TRAVIS_REPO_SLUG" == "javaslang/javaslang" ] && [ "$TRAVIS_JDK_VERSION" == "oraclejdk8" ] && [ "$TRAVIS_PULL_REQUEST" == "false" ] && [ "$TRAVIS_BRANCH" == "master" ]; then

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

  cp -R target/site/apidocs $HOME/javadoc-snapshot

  cd $HOME
  git config --global user.email "<EMAIL>"
  git config --global user.name "travis-ci"
  git clone https://${GH_TOKEN}@github.com/javaslang/javaslang.github.io

  cd javaslang.github.io
  git rm -rf ./javadoc/snapshot
  cp -Rf $HOME/javadoc-snapshot ./javadoc/snapshot
  cd javadoc/snapshot
  zip -r javaslang-snapshot-javadoc.zip *
  cd -
  git add -f .
  git commit -m "Snapshot javadoc on successful travis build $TRAVIS_BUILD_NUMBER auto-pushed to gh-pages"
  git push origin master

  echo -e "Published Javadoc to gh-pages.\n"
  
fi
{'fraction_non_alphanumeric': 0.14317925591882752, 'fraction_numerical': 0.0011273957158962795, 'mean_word_length': 3.649214659685864, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, 'https://': 1, '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': '7200931', 'n_tokens_mistral': 356, 'n_tokens_neox': 332, 'n_words': 78}