<commit_before>name: Documentation

on:
  push:
    branches:
      - master

jobs:
  docs:
    runs-on: ubuntu-latest

    steps:
    - name: Checkout github repo
      uses: actions/checkout@v2
    - name: Query version
      id: tagger
      uses: jimschubert/query-tag-action@v1
      with:
        commit-ish: "HEAD"
    - name: Set version
      run: |
        echo QPOINT_VERSION=${{steps.tagger.outputs.tag}} >> $GITHUB_ENV
    - name: Build docs
      uses: ammaraskar/sphinx-action@master
      with:
        pre-build-command: "apt-get --allow-releaseinfo-change update -y && apt-get install -y python3-dev build-essential"
        docs-folder: "docs/"
    - uses: actions/upload-artifact@v2
      with:
        name: DocumentationHTML
        path: docs/_build/html/
    - name: Commit documentation changes
      run: |
        git clone https://github.com/arahlin/qpoint.git --branch gh-pages --single-branch gh-pages
        cp -r docs/_build/html/* gh-pages/
        cp -r docs/*.pdf gh-pages/.
        cd gh-pages
        touch .nojekyll
        git config --local user.email "<EMAIL>"
        git config --local user.name "GitHub Action"
        git add .
        git commit -m "Update documentation" -a || true
        # The above command will fail if no changes were present, so we ignore
        # that.
    - name: Push changes
      uses: ad-m/github-push-action@master
      with:
        branch: gh-pages
        directory: gh-pages
        github_token: ${{ secrets.GITHUB_TOKEN }}
<commit_msg>simplify documentation commits<commit_after>name: Documentation

on:
  push:
    branches:
      - master

jobs:
  docs:
    runs-on: ubuntu-latest

    steps:
    - name: Checkout github repo
      uses: actions/checkout@v2
    - name: Query version
      id: tagger
      uses: jimschubert/query-tag-action@v1
      with:
        commit-ish: "HEAD"
    - name: Set version
      run: |
        echo QPOINT_VERSION=${{steps.tagger.outputs.tag}} >> $GITHUB_ENV
    - name: Build docs
      uses: ammaraskar/sphinx-action@master
      with:
        pre-build-command: "apt-get --allow-releaseinfo-change update -y && apt-get install -y python3-dev build-essential"
        docs-folder: "docs/"
    - name: Checkout pages branch
      uses: actions/checkout@v3
      with:
        ref: gh-pages
        path: gh-pages
    - name: Commit documentation changes
      run: |
        cp -r docs/_build/html/* gh-pages/
        cp -r docs/*.pdf gh-pages/.
        cd gh-pages
        touch .nojekyll
        git config --local user.email "<EMAIL>"
        git config --local user.name "<NAME>"
        git add .
        git commit -m "Update documentation" -a || true
        git push

{'fraction_non_alphanumeric': 0.10859896219421794, 'fraction_numerical': 0.0029651593773165306, 'mean_word_length': 1.9529540481400438, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 10, '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': '4608425', 'n_tokens_mistral': 874, 'n_tokens_neox': 835, 'n_words': 232}