<commit_before>name: PIP packages
on:
  push:
    tags: ["v*"]
env:
  TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
  TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
jobs:
  linux:
    runs-on: ubuntu-20.04
    steps:
    - uses: actions/checkout@v2
    - name: Docker Image
      run: docker build SDK -t pypi
    - name: Build
      run: |
        docker run -e PYVER=cp310-cp310 --rm -v `pwd`:/workspace pypi
        f=`ls *.whl`
        mv $f ${f/linux/manylinux2014}
        pip3 install twine
        python -m twine upload --repository pypi *.whl
  windows:
    runs-on: windows-2019
    steps:
    - uses: actions/checkout@v2
    - uses: ilammy/msvc-dev-cmd@v1
      with:
        toolset: 14.1
    - uses: actions/setup-python@v3
      with:
        python-version: '3.10'
    - name: Install Dependencies
      run: choco install swig -y # need swig 4+ for python 3.8
    - name: Build
      run: |
        python -m pip install --upgrade pip==22.0.4
        pip install setuptools wheel twine
        pip wheel . --verbose
  macos:
    runs-on: macos-10.15
    steps:
    - name: Install Dependencies
      run: brew update && brew install swig
    - uses: actions/checkout@v2
    - uses: actions/setup-python@v3
      with:
        python-version: '3.10'
    - name: Build
      run: |
        pip install setuptools wheel twine
        pip wheel . --verbose
        python -m twine upload --repository pypi *.whl<commit_msg>PIP: add back uploading of windows wheel<commit_after>name: PIP packages
on:
  push:
    tags: ["v*"]
env:
  TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
  TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
jobs:
  linux:
    runs-on: ubuntu-20.04
    steps:
    - uses: actions/checkout@v2
    - name: Docker Image
      run: docker build SDK -t pypi
    - name: Build
      run: |
        docker run -e PYVER=cp310-cp310 --rm -v `pwd`:/workspace pypi
        f=`ls *.whl`
        mv $f ${f/linux/manylinux2014}
        pip3 install twine
        python -m twine upload --repository pypi *.whl
  windows:
    runs-on: windows-2019
    steps:
    - uses: actions/checkout@v2
    - uses: ilammy/msvc-dev-cmd@v1
      with:
        toolset: 14.1
    - uses: actions/setup-python@v3
      with:
        python-version: '3.10'
    - name: Install Dependencies
      run: choco install swig -y # need swig 4+ for python 3.8
    - name: Build
      run: |
        python -m pip install --upgrade pip==22.0.4
        pip install setuptools wheel twine
        pip wheel . --verbose
        python -m twine upload --repository pypi *.whl
  macos:
    runs-on: macos-10.15
    steps:
    - name: Install Dependencies
      run: brew update && brew install swig
    - uses: actions/checkout@v2
    - uses: actions/setup-python@v3
      with:
        python-version: '3.10'
    - name: Build
      run: |
        pip install setuptools wheel twine
        pip wheel . --verbose
        python -m twine upload --repository pypi *.whl
{'fraction_non_alphanumeric': 0.11058344640434192, 'fraction_numerical': 0.030529172320217096, 'mean_word_length': 1.9727822580645162, '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': '903154', 'n_tokens_mistral': 1089, 'n_tokens_neox': 999, 'n_words': 290}