<commit_before>language: python
python:
  - 2.7
  - 3.4
env:
  matrix:
    - GROUP=docs
    - GROUP=js
    - GROUP=
  global:
    - secure: P1srvJIQ+vFCd7jTuxqhp07JF+wqWtWkCYDcrT8hHZMgsy0wjNTkXP3h5+7dboYOjhmJcy2GX3tsdIzmcSm6/NttMqHhK1WL+dCgFgLijsyUzyOEsAxGi/E4w9xxX5WRRQdFniOgNVpv9bzrD0ngpUCXdQnutc+52mCDAS+hYMk=
before_install:
  # <NAME>'s PPA for PhantomJS and CasperJS
  - time sudo add-apt-repository -y ppa:pcarrier/ppa
  - sudo apt-get update
  - cd ~
  - git clone --recursive https://github.com/ipython/ipython.git
  - cd -
install:
  - sudo apt-get install pandoc casperjs libzmq3-dev
  # pin tornado < 4 for js tests while phantom is on super old webkit
  - if [[ $GROUP == 'js' ]]; then pip install 'tornado<4'; fi
  - cd ~/ipython && git submodule update && pip install -e ".[notebook]" && cd -
  - pip install -r requirements.txt
  - pip install nose requests!=2.4.2 invoke
  - python setup.py install
  - if [[ $GROUP == 'js' ]]; then cp nbextensions/* $(ipython locate)/nbextensions/; fi
script:
  |
  if [[ $GROUP != 'docs' ]]; then 
    ./scripts/runtests $GROUP
  elif [[ $TRAVIS_PYTHON_VERSION == 3.4 ]]; then
    git config user.name "${GIT_NAME}"
    git config user.email "${GIT_EMAIL}"
    invoke docs --branch=$(git rev-parse --abbrev-ref HEAD)
  fi
after_success:
  |
  if [[ $TRAVIS_PULL_REQUEST == false && $TRAVIS_PYTHON_VERSION == 3.4 && $GROUP == 'docs' ]]; then
    git config credential.helper "store --file=.git/credentials"
    echo "https://${GH_TOKEN}:@github.com" > .git/credentials
    git remote set-url --push origin https://github.com/jupyter/nbgrader.git
    git remote set-branches --add origin docs
    git checkout docs
    git push origin docs
    rm .git/credentials
  fi<commit_msg>More git stuff<commit_after>language: python
python:
  - 2.7
  - 3.4
env:
  matrix:
    - GROUP=docs
    - GROUP=js
    - GROUP=
  global:
    - secure: P1srvJIQ+vFCd7jTuxqhp07JF+wqWtWkCYDcrT8hHZMgsy0wjNTkXP3h5+7dboYOjhmJcy2GX3tsdIzmcSm6/NttMqHhK1WL+dCgFgLijsyUzyOEsAxGi/E4w9xxX5WRRQdFniOgNVpv9bzrD0ngpUCXdQnutc+52mCDAS+hYMk=
before_install:
  # <NAME>'s PPA for PhantomJS and CasperJS
  - time sudo add-apt-repository -y ppa:pcarrier/ppa
  - sudo apt-get update
  - cd ~
  - git clone --recursive https://github.com/ipython/ipython.git
  - cd -
install:
  - sudo apt-get install pandoc casperjs libzmq3-dev
  # pin tornado < 4 for js tests while phantom is on super old webkit
  - if [[ $GROUP == 'js' ]]; then pip install 'tornado<4'; fi
  - cd ~/ipython && git submodule update && pip install -e ".[notebook]" && cd -
  - pip install -r requirements.txt
  - pip install nose requests!=2.4.2 invoke
  - python setup.py install
  - if [[ $GROUP == 'js' ]]; then cp nbextensions/* $(ipython locate)/nbextensions/; fi
script:
  |
  if [[ $GROUP != 'docs' ]]; then 
    ./scripts/runtests $GROUP
  elif [[ $TRAVIS_PYTHON_VERSION == 3.4 ]]; then
    git remote set-url --push origin https://github.com/jupyter/nbgrader.git
    git remote set-branches --add origin docs
    git fetch -q
    git config user.name "${GIT_NAME}"
    git config user.email "${GIT_EMAIL}"
    git config credential.helper "store --file=.git/credentials"
    echo "https://${GH_TOKEN}:@github.com" > .git/credentials
    git branch docs origin/docs
    invoke docs --branch=$(git rev-parse --abbrev-ref HEAD)
  fi
after_success:
  |
  if [[ $TRAVIS_PULL_REQUEST == false && $TRAVIS_PYTHON_VERSION == 3.4 && $GROUP == 'docs' ]]; then
    git checkout docs
    git push origin docs
  fi
{'fraction_non_alphanumeric': 0.1313073394495413, 'fraction_numerical': 0.0194954128440367, 'mean_word_length': 3.254878048780488, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 7, 'https://': 6, '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': '42550', 'n_tokens_mistral': 1438, 'n_tokens_neox': 1358, 'n_words': 322}