<commit_before>#!/bin/bash

. $BASEDIR/include/common.sh

if [ "$DISTNAME" == "fedora" ]; then
	require_cmd dnf

	YUM="dnf -c $DOWNLOAD/yum.conf --installroot=$INSTALL \
		--disablerepo=* --enablerepo=install-$DISTNAME \
		--enablerepo=install-$DISTNAME-updates -y"
	YUM_GROUPINSTALL="$YUM group install"
else
	require_cmd yum

	YUM="yum -c $DOWNLOAD/yum.conf --installroot=$INSTALL \
		--disablerepo=* --enablerepo=install-$DISTNAME \
		--enablerepo=install-$DISTNAME-updates -y"
	YUM_GROUPINSTALL="$YUM groupinstall"
fi

function bootstrap {
	mkdir -p ${INSTALL}/var/lib/rpm
	rpm --root $INSTALL --initdb

	nrpm=0
	for rpm in $RELEASE; do
		nrpm=$(( $nrpm + 1 ))
		echo "Downloading #${nrpm} $rpm"
		curl -o $DOWNLOAD/release${nrpm}.rpm $rpm
		rpm --root $INSTALL --nodeps -ivh $DOWNLOAD/release${nrpm}.rpm
	done
<commit_msg>include/redhat-family: fail when the release rpm cannot be installed<commit_after>#!/bin/bash

. $BASEDIR/include/common.sh

if [ "$DISTNAME" == "fedora" ]; then
	require_cmd dnf

	YUM="dnf -c $DOWNLOAD/yum.conf --installroot=$INSTALL \
		--disablerepo=* --enablerepo=install-$DISTNAME \
		--enablerepo=install-$DISTNAME-updates -y"
	YUM_GROUPINSTALL="$YUM group install"
else
	require_cmd yum

	YUM="yum -c $DOWNLOAD/yum.conf --installroot=$INSTALL \
		--disablerepo=* --enablerepo=install-$DISTNAME \
		--enablerepo=install-$DISTNAME-updates -y"
	YUM_GROUPINSTALL="$YUM groupinstall"
fi

function bootstrap {
	mkdir -p ${INSTALL}/var/lib/rpm
	rpm --root $INSTALL --initdb

	nrpm=0
	for rpm in $RELEASE; do
		nrpm=$(( $nrpm + 1 ))
		echo "Downloading #${nrpm} $rpm"
		curl -o $DOWNLOAD/release${nrpm}.rpm $rpm || fail "unable to download $rpm"
		rpm --root $INSTALL --nodeps -ivh $DOWNLOAD/release${nrpm}.rpm \
			|| fail "unable to install $rpm"
	done

{'fraction_non_alphanumeric': 0.1639528354856822, 'fraction_numerical': 0.0022459292532285235, 'mean_word_length': 3.8956043956043955, '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': 3, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '204985', 'n_tokens_mistral': 757, 'n_tokens_neox': 653, 'n_words': 151}