<commit_before>#!/bin/bash
set -e -x

yum install -y hdf5 freetype-devel pkg-config libpng-devel

for PYBIN in /opt/python/*/bin; do
    if [[ $PYBIN == *"27"* ]] || [[ $PYBIN == *"35"* ]] || [[ $PYBIN == *"36"* ]] || [[ $PYBIN == *"37"* ]]; then
        "${PYBIN}/pip" install -r /io/dev-requirements.txt
        "${PYBIN}/pip" wheel /io/ -w wheelhouse/
    fi
done

# Bundle external shared libraries into the wheels
for whl in wheelhouse/*.whl; do
    auditwheel repair "$whl" --plat $PLAT -w /io/wheelhouse/
done

# Install packages and test
for PYBIN in /opt/python/*/bin/; do
    if [[ $PYBIN == *"27"* ]] || [[ $PYBIN == *"35"* ]] || [[ $PYBIN == *"36"* ]] || [[ $PYBIN == *"37"* ]]; then
        "${PYBIN}/pip" install phonopy --no-index -f /io/wheelhouse
        (cd "$HOME"; "${PYBIN}/nosetests" phonopy)
    fi
done
<commit_msg>Update build-wheels.sh to avoid building error of matplotlib<commit_after>#!/bin/bash
set -e -x

yum install -y hdf5 freetype freetype-devel pkgconfig libpng-devel

for PYBIN in /opt/python/*/bin; do
    if [[ $PYBIN == *"27"* ]] || [[ $PYBIN == *"35"* ]] || [[ $PYBIN == *"36"* ]] || [[ $PYBIN == *"37"* ]]; then
        "${PYBIN}/pip" install -r /io/dev-requirements.txt
        "${PYBIN}/pip" wheel /io/ -w wheelhouse/
    fi
done

# Bundle external shared libraries into the wheels
for whl in wheelhouse/*.whl; do
    auditwheel repair "$whl" --plat $PLAT -w /io/wheelhouse/
done

# Install packages and test
for PYBIN in /opt/python/*/bin/; do
    if [[ $PYBIN == *"27"* ]] || [[ $PYBIN == *"35"* ]] || [[ $PYBIN == *"36"* ]] || [[ $PYBIN == *"37"* ]]; then
        "${PYBIN}/pip" install phonopy --no-index -f /io/wheelhouse
        (cd "$HOME"; "${PYBIN}/nosetests" phonopy)
    fi
done

{'fraction_non_alphanumeric': 0.21869590305828043, 'fraction_numerical': 0.019619157530294286, 'mean_word_length': 2.8533333333333335, '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': '1625215', 'n_tokens_mistral': 691, 'n_tokens_neox': 660, 'n_words': 184}