<commit_before>#!/bin/bash
set -ev # exit with nonzero exit code if anything fails

if [[ "$TRAVIS_BRANCH" != 'master' ]]; then
  exit 0;
fi

# clear the documentation directory
rm -rf docs || exit 0;

# build the documentation files
scribble +m --redirect-main http://pkg-build.racket-lang.org/doc/ --htmls --dest ./docs ./data/scribblings/collections.scrbl

# go to the documentation directory and create a *new* Git repo<commit_msg>Don't build the docs during pull request builds<commit_after>#!/bin/bash
set -ev # exit with nonzero exit code if anything fails

if [[ "$TRAVIS_PULL_REQUEST" != 'false' || "$TRAVIS_BRANCH" != 'master' ]]; then
  exit 0;
fi

# clear the documentation directory
rm -rf docs || exit 0;

# build the documentation files
scribble +m --redirect-main http://pkg-build.racket-lang.org/doc/ --htmls --dest ./docs ./data/scribblings/collections.scrbl

# go to the documentation directory and create a *new* Git repo
{'fraction_non_alphanumeric': 0.1275239107332625, 'fraction_numerical': 0.004250797024442083, 'mean_word_length': 3.957894736842105, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, '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': '3340052', 'n_tokens_mistral': 308, 'n_tokens_neox': 293, 'n_words': 108}