<commit_before>name: publish-pypi

on:
  workflow_call:
    inputs:
      pypi_repository_url:
        required: true
        type: string
    secrets:
      pypi_api_token:
        required: true

jobs:
  publish-pypi:
    name: Publish distribution 📦s to PyPI/TestPyPI
    runs-on: ubuntu-latest
    steps:
        - uses: actions/checkout@v3
        - uses: actions/setup-python@v4
          with:
            python-version: "3.10"
        - name: Install pypa/build
          run: python -m pip install build twine --upgrade --user
        - name: Build a binary wheel and a source tarball
          run: python -m build --sdist --wheel --outdir dist/ .
        - name: Check with twine
          run: twine check dist/*
        - name: Publish distribution 📦 to PyPI
          uses: pypa/gh-action-pypi-publish@master
          with:
            password: ${{ secrets.pypi_api_token }}
            repository_url: ${{ inputs.pypi_repository_url }}
<commit_msg>Use correct version for gh-action-pypi-publish<commit_after>name: publish-pypi

on:
  workflow_call:
    inputs:
      pypi_repository_url:
        required: true
        type: string
    secrets:
      pypi_api_token:
        required: true

jobs:
  publish-pypi:
    name: Publish distribution 📦s to PyPI/TestPyPI
    runs-on: ubuntu-latest
    steps:
        - uses: actions/checkout@v3
        - uses: actions/setup-python@v4
          with:
            python-version: "3.10"
        - name: Install pypa/build
          run: python -m pip install build twine --upgrade --user
        - name: Build a binary wheel and a source tarball
          run: python -m build --sdist --wheel --outdir dist/ .
        - name: Check with twine
          run: twine check dist/*
        - name: Publish distribution 📦 to PyPI
          uses: pypa/gh-action-pypi-publish@release/v1
          with:
            password: ${{ secrets.pypi_api_token }}
            repository_url: ${{ inputs.pypi_repository_url }}

{'fraction_non_alphanumeric': 0.09243270695784662, 'fraction_numerical': 0.00558659217877095, 'mean_word_length': 1.884333821376281, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '4493858', 'n_tokens_mistral': 635, 'n_tokens_neox': 604, 'n_words': 168}