<commit_before>#!/bin/sh

tail -n +3 $1.grd > temp
sed -i 's/ /\n/g' temp
sed -i '/^$/d' temp
sed -ri 'N; N; N; N; N; s/(.+)\n(.+)\n(.+)\n(.+)\n(.+)\n(.+)/\1 \2 \3 \4 \5 \6/g' temp
sed -i 's/^/ /g' MgCu2_prior.asc
echo temp > $1.BMasc

rm temp<commit_msg>Altered Grd2BMasc.sh to more elegantly add the space at the beginning of each line and to avoid the last line of the header.<commit_after>#!/bin/sh

tail -n +4 $1.grd > temp
sed -i 's/ /\n/g' temp
sed -i '/^$/d' temp
sed -ri 'N; N; N; N; N; s/(.+)\n(.+)\n(.+)\n(.+)\n(.+)\n(.+)/ \1 \2 \3 \4 \5 \6/g' temp
echo ' ' > $1.BMasc
cat temp >> $1.BMasc

rm temp
{'fraction_non_alphanumeric': 0.27257799671592775, 'fraction_numerical': 0.034482758620689655, 'mean_word_length': 2.3152173913043477, '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': '2790089', 'n_tokens_mistral': 317, 'n_tokens_neox': 293, 'n_words': 97}