<commit_before>name: Build Test Publish
on: push

jobs:
  build-and-publish:
    name: Build and publish to PyPI
    runs-on: ubuntu-18.04
    steps:
      - uses: actions/checkout@master

      - name: Set up Python 3.7
        uses: actions/setup-python@v1
        with:
          python-version: 3.7

      - name: Install and upgrade pip, setuptools and wheel
        run: python -m pip install --user --upgrade pip setuptools wheel

      - name: Install packages needed for testing and building
        run: python -m pip install --user tensorflow numpy scipy

      - name: Run tests
        run: python -m unittest discover tests

      - name: Install sphinx
        if: contains(github.ref, "master")
        run: python -m pip install --user sphinx sphinx-markdown-builder

      - name: Run sphinx
        if: contains(github.ref, "master")
        run: sphinx-apidoc -o sphinx-docs tfga sphinx-apidoc --full -A "<NAME>" && cd sphinx-docs && make markdown

      - name: Upload documentation to wiki
        if: contains(github.ref, "master")
        uses: SwiftDocOrg/github-wiki-publish-action@v1
        with:
          path: "sphinx-docs/_build/markdown"
        env:
          GH_PERSONAL_ACCESS_TOKEN: ${{ secrets.gh_personal_access_token }}

      - name: Build dist
        run: python setup.py sdist bdist_wheel<commit_msg>replace " with ' in gh action<commit_after>name: Build Test Publish
on: push

jobs:
  build-and-publish:
    name: Build and publish to PyPI
    runs-on: ubuntu-18.04
    steps:
      - uses: actions/checkout@master

      - name: Set up Python 3.7
        uses: actions/setup-python@v1
        with:
          python-version: 3.7

      - name: Install and upgrade pip, setuptools and wheel
        run: python -m pip install --user --upgrade pip setuptools wheel

      - name: Install packages needed for testing and building
        run: python -m pip install --user tensorflow numpy scipy

      - name: Run tests
        run: python -m unittest discover tests

      - name: Install sphinx
        if: contains(github.ref, 'master')
        run: python -m pip install --user sphinx sphinx-markdown-builder

      - name: Run sphinx
        if: contains(github.ref, 'master')
        run: sphinx-apidoc -o sphinx-docs tfga sphinx-apidoc --full -A "<NAME>" && cd sphinx-docs && make markdown

      - name: Upload documentation to wiki
        if: contains(github.ref, 'master')
        uses: SwiftDocOrg/github-wiki-publish-action@v1
        with:
          path: 'sphinx-docs/_build/markdown'
        env:
          GH_PERSONAL_ACCESS_TOKEN: ${{ secrets.gh_personal_access_token }}

      - name: Build dist
        run: python setup.py sdist bdist_wheel
{'fraction_non_alphanumeric': 0.09245562130177515, 'fraction_numerical': 0.0073964497041420114, 'mean_word_length': 2.2317801672640383, 'pattern_counts': {'":': 0, '<': 5, '<?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': '1997287', 'n_tokens_mistral': 852, 'n_tokens_neox': 790, 'n_words': 263}