<commit_before>version: 2

jobs:
  build-site:
    docker:
      - image: python:3.7
    steps:
      - checkout
      - run:
          name: Install dependencies
          command: pip install sphinx sphinx-sitemap
      - run:
          name: Build docs
          command: make html
      - persist_to_workspace:
          root: _build
          paths: html
  deploy-site:
    docker:
      - image: node:8.10.0
    steps:
      - checkout
      - attach_workspace:
          at: _build
      - run:
          name: Install and configure dependencies
          command: |
            cp html/sitemap.xml html/_downloads/sitemap.xml
            npm install -g --silent gh-pages@2.0.1
            git config user.email "<EMAIL>"
            git config user.name "ci-build"
      - add_ssh_keys:
          fingerprints:
            - "46:43:8b:22:b3:57:1f:09:9c:c7:e8:49:b9:e0:8a:c3"
      - run:
          name: Deploy docs to gh-pages branch
          command: gh-pages --dotfiles --message "[skip ci] Updates" --dist _build/html


workflows:
  version: 2
  build:
    jobs:
      - build-site
      - deploy-site:
          requires:
            - build-site
          filters:
            branches:
              only: master<commit_msg>gh pages not rendering xml<commit_after>version: 2

jobs:
  build-site:
    docker:
      - image: python:3.7
    steps:
      - checkout
      - run:
          name: Install dependencies
          command: pip install sphinx sphinx-sitemap
      - run:
          name: Build docs
          command: make html
      - persist_to_workspace:
          root: _build
          paths: html
  deploy-site:
    docker:
      - image: node:8.10.0
    steps:
      - checkout
      - attach_workspace:
          at: _build
      - run:
          name: Install and configure dependencies
          command: |
            npm install -g --silent gh-pages@2.0.1
            git config user.email "<EMAIL>"
            git config user.name "ci-build"
      - add_ssh_keys:
          fingerprints:
            - "46:43:8b:22:b3:57:1f:09:9c:c7:e8:49:b9:e0:8a:c3"
      - run:
          name: Deploy docs to gh-pages branch
          command: cp html/sitemap.xml html/_downloads/sitemap.xml && gh-pages --dotfiles --message "[skip ci] Updates" --dist _build/html


workflows:
  version: 2
  build:
    jobs:
      - build-site
      - deploy-site:
          requires:
            - build-site
          filters:
            branches:
              only: master
{'fraction_non_alphanumeric': 0.0966183574879227, 'fraction_numerical': 0.026570048309178744, 'mean_word_length': 1.485, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 5}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4851049', 'n_tokens_mistral': 826, 'n_tokens_neox': 777, 'n_words': 191}