<commit_before>#!/bin/bash

# Make cron
echo "@monthly root $PWD/monthlybackup.sh\n" >> /etc/cron.d/s3_cron
echo
echo "@daily root $PWD/dailymirror.sh" >> /etc/cron.d/s3_cron

# Configure location of backup scripts
DAILY="$(pwd)/dailymirror.sh"
MONTHLY="$(pwd)/monthlybackup.sh"
printf "Welcome.  Please fill out the following information to setup your LinuxS3_Cron.\n"

# Configure location of backup directory
printf "Directory that you want to backup:  "
read FILES_DIR
sed "s|FILES_DIR=\"\"|FILES_DIR='$FILES_DIR'|" <$DAILY >$DAILY
sed "s|FILES_DIR=\"\"|FILES_DIR='$FILES_DIR'|" <$MONTHLY >$MONTHLY

# Configure location of bucket
printf "\nLocation of the bucket (FORMAT: s3://bucket-name):  "
read BUCKET
sed "s|BUCKET=\"\"|BUCKET='$BUCKET'|" <$DAILY >$DAILY
sed "s|BUCKET=\"\"|BUCKET='$BUCKET'|" <$MONTHLY >$MONTHLY

echo "Configuring done."<commit_msg>Reorganize intro, modify echoes, and sed inplace<commit_after>#!/bin/bash

# Introduction
echo "Welcome.  Please fill out the following information to setup your LinuxS3_Cron."

# Configure location of backup scripts
MONTHLY="$(pwd)/monthlybackup.sh"
DAILY="$(pwd)/dailymirror.sh"

# Make cron
echo "@monthly root $MONTLY" >> /etc/cron.d/s3_cron
echo "@daily root $MONTHLY" >> /etc/cron.d/s3_cron

# Configure location of backup directory
echo -e "\nDirectory that you want to backup:  "
read FILES_DIR
sed -i "s|FILES_DIR=\"\"|FILES_DIR=\"$FILES_DIR\"|" $DAILY
sed -i "s|FILES_DIR=\"\"|FILES_DIR=\"$FILES_DIR\"|" $MONTHLY

# Configure location of bucket
echo -e "\nLocation of the bucket (FORMAT: s3://bucket-name):  "
read BUCKET
sed -i "s|BUCKET=\"\"|BUCKET=\"$BUCKET\"|" $DAILY
sed -i "s|BUCKET=\"\"|BUCKET=\"$BUCKET\"|" $MONTHLY

echo -e "\nConfiguring done."
{'fraction_non_alphanumeric': 0.17053364269141533, 'fraction_numerical': 0.004640371229698376, 'mean_word_length': 5.1387900355871885, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 15, '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': '430541', 'n_tokens_mistral': 687, 'n_tokens_neox': 665, 'n_words': 166}