<commit_before>---
language: node_js
node_js:
- '0.10'
sudo: false
cache:
  directories:
  - docs/vendor/bundle
  - node_modules
before_install:
- |
    if [ "$TEST_TYPE" != build_website ] && \
      git diff --name-only $TRAVIS_COMMIT_RANGE | grep -qvE '(\.md$)|(^(docs|examples))/'
    then
      echo "Only docs were updated, stopping build process."
      exit
    fi
script:
- |
    if [ "$TEST_TYPE" = build_website ]; then
      if [ "$TRAVIS_BRANCH" = "$REACT_WEBSITE_BRANCH" ] && [ "$TRAVIS_PULL_REQUEST" = false ]; then
        set -e

        GH_PAGES_DIR="$TRAVIS_BUILD_DIR"/../react-gh-pages
        echo "machine github.com login reactjs-bot password $<PASSWORD>" >~/.netrc

        git clone --branch gh-pages --depth=50 \
          https://reactjs-bot@github.com/facebook/react.git \
          $GH_PAGES_DIR
        pushd docs
        bundle install --jobs=3 --retry=3 --path=vendor/bundle
        bundle exec rake release<commit_msg>Set git name and email for Travis<commit_after>---
language: node_js
node_js:
- '0.10'
sudo: false
cache:
  directories:
  - docs/vendor/bundle
  - node_modules
before_install:
- |
    if [ "$TEST_TYPE" != build_website ] && \
      git diff --name-only $TRAVIS_COMMIT_RANGE | grep -qvE '(\.md$)|(^(docs|examples))/'
    then
      echo "Only docs were updated, stopping build process."
      exit
    fi
script:
- |
    if [ "$TEST_TYPE" = build_website ]; then
      if [ "$TRAVIS_BRANCH" = "$REACT_WEBSITE_BRANCH" ] && [ "$TRAVIS_PULL_REQUEST" = false ]; then
        set -e

        GH_PAGES_DIR="$TRAVIS_BUILD_DIR"/../react-gh-pages
        echo "machine github.com login reactjs-bot password $<PASSWORD>" >~/.netrc
        export GIT_COMMITTER_NAME="Travis CI"
        export GIT_COMMITTER_EMAIL="<EMAIL>"

        git clone --branch gh-pages --depth=50 \
          https://reactjs-bot@github.com/facebook/react.git \
          $GH_PAGES_DIR
        pushd docs
        bundle install --jobs=3 --retry=3 --path=vendor/bundle
        bundle exec rake release
{'fraction_non_alphanumeric': 0.1381023348236463, 'fraction_numerical': 0.006954793840039742, 'mean_word_length': 2.508710801393728, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 8, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, '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': '5339984', 'n_tokens_mistral': 730, 'n_tokens_neox': 688, 'n_words': 156}