<commit_before>jobs:
- job:
  displayName: Ubuntu
  pool:
    vmImage: ubuntu-latest
  variables:
    DISPLAY: ':99.0'
    PYVISTA_OFF_SCREEN: 'True'
  strategy:
    matrix:
      linux-Python37:
        python.version: '3.7'
      linux-Python38:
        python.version: '3.8'
      linux-Python39:
        python.version: '3.9'
  steps:

  - script: echo '##vso[task.prependpath]$CONDA/bin'
    displayName: Add conda to PATH

  - script: |
      conda update --yes --quiet -n base conda
      conda install --yes --quiet -n base -c conda-forge mamba
      mamba create --yes --quiet --name test python=$(python.version)
    displayName: Create Anaconda environment

  - script: |
      eval "$(conda shell.bash hook)"
      conda activate test
      mamba install --yes --quiet -c conda-forge numpy scipy matplotlib cython vtk pyvista pymatsolver
      pip install -r requirements_dev.txt
      pip install -e .
    displayName: Install requirements and build
    condition: ne(variables['python.version'], '3.8')

  - script: |
      eval "$(conda shell.bash hook)"
      conda activate test
      .ci/setup_headless_display.sh
      pytest -v -s --ignore=tests/docs -W ignore::DeprecationWarning
    displayName: 'Testing'
    condition: ne(variables['python.version'], '3.8')

  - script: |
      eval "$(conda shell.bash hook)"
      conda activate test
      mamba install --yes --quiet -c conda-forge numpy scipy matplotlib cython vtk pyvista pymatsolver graphviz
      mamba install --yes --quiet -c conda-forge pytest pytest-cov
      pip install -r requirements_dev.txt
      pip install pytest-azurepipelines
      export DISC_COV=1
      pip install -e .
    displayName: Install requirements and build for Testing
    condition: eq(variables['python.version'], '3.8')

  - script: |
      eval "$(conda shell.bash hook)"
      conda activate test
      .ci/setup_headless_display.sh
      pytest -v -s --cov-config=.coveragerc --cov=discretize --cov-report=xml --cov-report=html -W ignore::DeprecationWarning
    displayName: 'Testing with coverage'
    condition: eq(variables['python.version'], '3.8')

  - script: |
      curl -Os https://uploader.codecov.io/latest/linux/codecov
      chmod +x codecov
      ./codecov
    displayName: 'Upload coverage to codecov.io'
    condition: eq(variables['python.version'], '3.8')
<commit_msg>test with bash<commit_after>jobs:
- job:
  displayName: Ubuntu
  pool:
    vmImage: ubuntu-latest
  variables:
    DISPLAY: ':99.0'
    PYVISTA_OFF_SCREEN: 'True'
  strategy:
    matrix:
      linux-Python37:
        python.version: '3.7'
      linux-Python38:
        python.version: '3.8'
      linux-Python39:
        python.version: '3.9'
  steps:

  - bash: echo '##vso[task.prependpath]$CONDA/bin'
    displayName: Add conda to PATH

  - bash: |
      conda update --yes --quiet -n base conda
      conda install --yes --quiet -n base -c conda-forge mamba
    displayName: Install mamba

  - bash: |
      mamba create --yes --quiet --name test python=$(python.version)
    displayName: Create Anaconda environment

  - bash: |
      conda activate test
      mamba install --yes --quiet -c conda-forge numpy scipy matplotlib cython vtk pyvista pymatsolver
      pip install -r requirements_dev.txt
      pip install -e .
    displayName: Install requirements and build
    condition: ne(variables['python.version'], '3.8')

  - bash: |
      conda activate test
      .ci/setup_headless_display.sh
      pytest -v -s --ignore=tests/docs -W ignore::DeprecationWarning
    displayName: 'Testing'
    condition: ne(variables['python.version'], '3.8')

  - bash: |
      conda activate test
      mamba install --yes --quiet -c conda-forge numpy scipy matplotlib cython vtk pyvista pymatsolver graphviz
      mamba install --yes --quiet -c conda-forge pytest pytest-cov
      pip install -r requirements_dev.txt
      pip install pytest-azurepipelines
      export DISC_COV=1
      pip install -e .
    displayName: Install requirements and build for Testing
    condition: eq(variables['python.version'], '3.8')

  - bash: |
      conda activate test
      .ci/setup_headless_display.sh
      pytest -v -s --cov-config=.coveragerc --cov=discretize --cov-report=xml --cov-report=html -W ignore::DeprecationWarning
    displayName: 'Testing with coverage'
    condition: eq(variables['python.version'], '3.8')

  - bash: |
      curl -Os https://uploader.codecov.io/latest/linux/codecov
      chmod +x codecov
      ./codecov
    displayName: 'Upload coverage to codecov.io'
    condition: eq(variables['python.version'], '3.8')

{'fraction_non_alphanumeric': 0.11346279729434867, 'fraction_numerical': 0.011346279729434867, 'mean_word_length': 2.635210150674068, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, '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': '661827', 'n_tokens_mistral': 1535, 'n_tokens_neox': 1452, 'n_words': 408}