<commit_before># Simple workflow for deploying static content to GitHub Pages
name: Deploy static content to Pages

on:
  # Runs on pushes targeting the default branch
  push:
    branches: ["main", "add-docs"]

  # Allows you to run this workflow manually from the Actions tab
  workflow_dispatch:

# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
  contents: read
  pages: write
  id-token: write

# Allow one concurrent deployment
concurrency:
  group: "pages"
  cancel-in-progress: true

jobs:
  # Single deploy job since we're just deploying
  deploy:
    environment:
      name: github-pages
      url: ${{ steps.deployment.outputs.page_url }}
    runs-on: ubuntu-latest
    steps:
      - name: Checkout
        uses: actions/checkout@v3
      - name: Setup Python
        uses: actions/setup-python@v4
        with:
          python-version: '3.10'
      - name: Setup Pages
        uses: actions/configure-pages@v2

      - name: Install Dependencies
        run: |
          python -m pip install --quiet --upgrade pip setuptools wheel 
          python -m pip install -r docs/docsgen/source/requirements.txt

      - name: Uninstall onnx
        run: python -m pip uninstall -y onnx

      - name: Install onnx development version
        run: |
          sudo apt-get install libprotobuf-dev protobuf-compiler
          git submodule update --init --recursive
          export CMAKE_ARGS="-DONNX_USE_PROTOBUF_SHARED_LIBS=ON"
          python setup.py install

      - name: Build Docs
        run: cd docs/docsgen && make html -j auto
      
      - name: Upload artifact
        uses: actions/upload-pages-artifact@v1
        with:
          path: 'docs/docsgen/build/html'
      - name: Deploy to GitHub Pages
        id: deployment
        uses: actions/deploy-pages@v1
<commit_msg>Manually catch build succeeded for page creating CI (#4576)<commit_after># Simple workflow for deploying static content to GitHub Pages
name: Deploy static content to Pages

on:
  # Runs on pushes targeting the default branch
  push:
    branches: ["main"]
  # Allows you to run this workflow manually from the Actions tab
  workflow_dispatch:

# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
  contents: read
  pages: write
  id-token: write

# Allow one concurrent deployment
concurrency:
  group: "pages"
  cancel-in-progress: true

jobs:
  # Single deploy job since we're just deploying
  deploy:
    environment:
      name: github-pages
      url: ${{ steps.deployment.outputs.page_url }}
    runs-on: ubuntu-latest
    steps:
      - name: Checkout
        uses: actions/checkout@v3
      - name: Setup Python
        uses: actions/setup-python@v4
        with:
          python-version: '3.10'
      - name: Setup Pages
        uses: actions/configure-pages@v2

      - name: Install Dependencies
        run: |
          python -m pip install --quiet --upgrade pip setuptools wheel 
          python -m pip install -r docs/docsgen/source/requirements.txt

      - name: Uninstall onnx
        run: python -m pip uninstall -y onnx

      - name: Install onnx development version
        run: |
          sudo apt-get install libprotobuf-dev protobuf-compiler
          git submodule update --init --recursive
          export CMAKE_ARGS="-DONNX_USE_PROTOBUF_SHARED_LIBS=ON"
          python setup.py install

      - name: Build Docs
        # TODO: fix warnings from "make html -j auto" so it can normally succeed without errors
        continue-on-error: true
        run: |
          cd docs/docsgen
          make html -j auto > stdout_stderror.log 2>&1
      - name: Check whether previous build docs succeeded
        run: |
          cat docs/docsgen/stdout_stderror.log
          if grep -F "build succeeded" docs/docsgen/stdout_stderror.log
          then
            echo "Build succeeded."
          else
            echo "Build failed."
            exit 1
          fi

      - name: Upload artifact
        uses: actions/upload-pages-artifact@v1
        with:
          path: 'docs/docsgen/build/html'
      - name: Deploy to GitHub Pages
        id: deployment
        uses: actions/deploy-pages@v1

{'fraction_non_alphanumeric': 0.07408289661743687, 'fraction_numerical': 0.00547879942829919, 'mean_word_length': 2.2200920245398774, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '4981405', 'n_tokens_mistral': 1252, 'n_tokens_neox': 1167, 'n_words': 409}