<commit_before>#!/bin/sh
# Install entrypoint:
#   - make sure yum is configured correctly and linux32 is available on i686
#   - install bash on Alpine as most scripts require it

# Stop at any error, show all commands
set -exu

# Set build environment variables
MY_DIR=$(dirname "$0")


if [ "${AUDITWHEEL_PLAT}" = "manylinux2010_i686" ] || [ "${AUDITWHEEL_PLAT}" = "manylinux2014_i686" ]; then
    echo "i386" > /etc/yum/vars/basearch
    fixup-mirrors
    yum -y update
    fixup-mirrors
    yum install -y util-linux-ng
    # update system packages, we already updated them but
    # the following script takes care of cleaning-up some things
    # and since it's also needed in the finalize step, everything's
    # centralized in this script to avoid code duplication
    LC_ALL=C "${MY_DIR}/update-system-packages.sh"
fi

if [ "${AUDITWHEEL_POLICY}" = "musllinux_1_1" ]; then
    apk add --no-cache bash
fi

if  command -v yum &> /dev/null ; then
    yum install -y yum-plugin-versionlock
    yum versionlock cuda* libcudnn* libnccl*
fi<commit_msg>Make sure the command works in both centos and ubuntu. (#11894)<commit_after>#!/bin/sh
# Install entrypoint:
#   - make sure yum is configured correctly and linux32 is available on i686
#   - install bash on Alpine as most scripts require it

# Stop at any error, show all commands
set -exu

# Set build environment variables
MY_DIR=$(dirname "$0")


if [ "${AUDITWHEEL_PLAT}" = "manylinux2010_i686" ] || [ "${AUDITWHEEL_PLAT}" = "manylinux2014_i686" ]; then
    echo "i386" > /etc/yum/vars/basearch
    fixup-mirrors
    yum -y update
    fixup-mirrors
    yum install -y util-linux-ng
    # update system packages, we already updated them but
    # the following script takes care of cleaning-up some things
    # and since it's also needed in the finalize step, everything's
    # centralized in this script to avoid code duplication
    LC_ALL=C "${MY_DIR}/update-system-packages.sh"
fi

if [ "${AUDITWHEEL_POLICY}" = "musllinux_1_1" ]; then
    apk add --no-cache bash
fi

# https://www.shellcheck.net/wiki/SC3020
if command -v yum 2>&1 ; then
    yum install -y yum-plugin-versionlock
    yum versionlock cuda* libcudnn* libnccl*
fi
{'fraction_non_alphanumeric': 0.10027347310847767, 'fraction_numerical': 0.02780309936189608, 'mean_word_length': 3.516460905349794, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, 'https://': 1, 'lorem ipsum': 0, 'www.': 1, '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': '3437612', 'n_tokens_mistral': 793, 'n_tokens_neox': 722, 'n_words': 250}