<commit_before>#!/bin/bash -e

if [ "$(id -u)" != "0" ] ; then
    echo "Running the script with root's privileges"
    sudo "$0"
    exit $?
fi

echo '------------------------------------------------------------------'
echo '          ephemeral  /data and /logs volumes installation'
echo '------------------------------------------------------------------'
cat > /etc/init.d/ephemeral-raid0 <<\EOF
#!/bin/bash
### BEGIN INIT INFO
# Provides:          ephemeral-raid0
# Required-Start:    $syslog
# Required-Stop:     $syslog
# Should-Start:
# Default-Start:     2 3 4 5
# Default-Stop:      0 1 6
# Short-Description: RAID0 on ephemeral storage
# Description:       RAID0 on ephemeral storage
### END INIT INFO

VG_NAME=ephemeral<commit_msg>adding script to setup RAID0 on ephemeral storage + delay<commit_after>#!/bin/bash -e

if [ "$(id -u)" != "0" ] ; then
    echo "Running the script with root's privileges"
    sudo "$0"
    exit $?
fi

echo "waiting for system to fully come online."
sleep 30

echo '------------------------------------------------------------------'
echo '          ephemeral  /data and /logs volumes installation'
echo '------------------------------------------------------------------'
cat > /etc/init.d/ephemeral-raid0 <<\EOF
#!/bin/bash
### BEGIN INIT INFO
# Provides:          ephemeral-raid0
# Required-Start:    $syslog
# Required-Stop:     $syslog
# Should-Start:
# Default-Start:     2 3 4 5
# Default-Stop:      0 1 6
# Short-Description: RAID0 on ephemeral storage
# Description:       RAID0 on ephemeral storage
### END INIT INFO

VG_NAME=ephemeral
{'fraction_non_alphanumeric': 0.27204030226700254, 'fraction_numerical': 0.018261964735516372, 'mean_word_length': 1.630794701986755, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 5, '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': '6815715', 'n_tokens_mistral': 506, 'n_tokens_neox': 459, 'n_words': 145}