<commit_before>#!/bin/bash
set -ex

# Install NJOY 2016
./tools/ci/travis-install-njoy.sh

# Install DAGMC if needed
if [[ $DAGMC = 'y' ]]; then
    ./tools/ci/travis-install-dagmc.sh
fi

# Upgrade pip before doing anything else
pip install --upgrade pip

# pytest installed by default -- make sure we get latest
pip install --upgrade pytest

# Install mpi4py for MPI configurations
if [[ $MPI == 'y' ]]; then
    pip install --no-binary=mpi4py mpi4py
fi

# Build and install OpenMC executable
python tools/ci/travis-install.py

# Install Python API in editable mode
pip install -e .[test]

a=$(dpkg --compare-versions $(python --version | cut -d" " -f 2) lt 3.7.0)
if [ $a -eq 0 ]; then
    pip install -e .[vtk]
fi

# For uploading to coveralls
pip install coveralls<commit_msg>Using travis environment variable to check Python version.<commit_after>#!/bin/bash
set -ex

# Install NJOY 2016
./tools/ci/travis-install-njoy.sh

# Install DAGMC if needed
if [[ $DAGMC = 'y' ]]; then
    ./tools/ci/travis-install-dagmc.sh
fi

# Upgrade pip before doing anything else
pip install --upgrade pip

# pytest installed by default -- make sure we get latest
pip install --upgrade pytest

# Install mpi4py for MPI configurations
if [[ $MPI == 'y' ]]; then
    pip install --no-binary=mpi4py mpi4py
fi

# Build and install OpenMC executable
python tools/ci/travis-install.py

# Install Python API in editable mode
pip install -e .[test]

# conditionally install vtk
if [ $TRAVIS_PYTHON_VERSION -ne 3.7 ]; then
    pip install -e .[vtk]
fi

# For uploading to coveralls
pip install coveralls
{'fraction_non_alphanumeric': 0.11012658227848102, 'fraction_numerical': 0.013291139240506329, 'mean_word_length': 3.453521126760563, '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': '1850070', 'n_tokens_mistral': 565, 'n_tokens_neox': 537, 'n_words': 195}