<commit_before>name: Python package

on: [push]

jobs:
  build:
    runs-on: ubuntu-latest
    strategy:
      matrix:
        python-version: [3.7, 3.8, 3.9]
    steps:
    - uses: actions/checkout@v2
    - name: Set up Python ${{ matrix.python-version }}
      uses: actions/setup-python@v2
      with:
        python-version: ${{ matrix.python-version }}
    - name: Install dependencies
      run: |
        python -m pip install --upgrade pip
        python -m pip install flake8 coverage mypy sphinx sphinx_rtd_theme -e .
    - name: Lint with flake8
      run: |
        flake8
    - name: Lint with mypy
      run: |
        mypy ncplib tests
    - name: Test with unittest
      run: |
        coverage run -m unittest discover tests<commit_msg>Running tests in python dev mode<commit_after>name: Python package

on: [push]

jobs:
  build:
    runs-on: ubuntu-latest
    env:
      PYTHONDEVMODE: 1
    strategy:
      matrix:
        python-version: [3.7, 3.8, 3.9]
    steps:
    - uses: actions/checkout@v2
    - name: Set up Python ${{ matrix.python-version }}
      uses: actions/setup-python@v2
      with:
        python-version: ${{ matrix.python-version }}
    - name: Install dependencies
      run: |
        python -m pip install --upgrade pip
        python -m pip install flake8 coverage mypy sphinx sphinx_rtd_theme -e .
    - name: Lint with flake8
      run: |
        flake8
    - name: Lint with mypy
      run: |
        mypy ncplib tests
    - name: Test with unittest
      run: |
        coverage run -m unittest discover tests
{'fraction_non_alphanumeric': 0.09621552277100706, 'fraction_numerical': 0.014753046824887749, 'mean_word_length': 1.9827915869980879, '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': '7641857', 'n_tokens_mistral': 519, 'n_tokens_neox': 502, 'n_words': 153}