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

echo "Configuring RPM-based build"

rpm -q mock rpm-build >/dev/null 2>&1 || sudo yum install -y mock rpm-build

echo -n "Writing mock configuration..."
mkdir -p mock
sed -e "s|@PWD@|$PWD|g" scripts/rpm/xenserver.cfg.in > mock/xenserver.cfg
ln -fs /etc/mock/default.cfg mock/
ln -fs /etc/mock/site-defaults.cfg mock/
ln -fs /etc/mock/logging.ini mock/
mkdir -p mock/cache
mkdir -p mock/root
chgrp mock mock/cache
chgrp mock mock/root
echo " done"

echo -n "Initializing repository..."
mkdir -p RPMS
createrepo --quiet RPMS
mkdir -p SRPMS
echo " done"
<commit_msg>rpm/configure: Initialize repository metadata in SRPMS directory<commit_after>#!/bin/bash
set -eu

echo "Configuring RPM-based build"

rpm -q mock rpm-build >/dev/null 2>&1 || sudo yum install -y mock rpm-build

echo -n "Writing mock configuration..."
mkdir -p mock
sed -e "s|@PWD@|$PWD|g" scripts/rpm/xenserver.cfg.in > mock/xenserver.cfg
ln -fs /etc/mock/default.cfg mock/
ln -fs /etc/mock/site-defaults.cfg mock/
ln -fs /etc/mock/logging.ini mock/
mkdir -p mock/cache
mkdir -p mock/root
chgrp mock mock/cache
chgrp mock mock/root
echo " done"

echo -n "Initializing repository..."
mkdir -p RPMS
createrepo --quiet RPMS
mkdir -p SRPMS
createrepo --quiet SRPMS
echo " done"

{'fraction_non_alphanumeric': 0.13500784929356358, 'fraction_numerical': 0.0031397174254317113, 'mean_word_length': 3.473684210526316, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, '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': '7524092', 'n_tokens_mistral': 503, 'n_tokens_neox': 465, 'n_words': 155}