<commit_before>#!/bin/bash

time tar -C ~/.local/share/akonadi_maildir_resource_0 -cpf - . \
| pxz -c9 \
| tee ~/Mail-$(date +%Y-%m-%d).tar.xz \
| xz -cd | tar tf - | grep -v '/$' \
| wc -l<commit_msg>akonadi stop/start<commit_after>#!/bin/bash
set -ex

running=
while true; do
    if LC_ALL=C akonadictl status 2>&1 | grep -q 'Akonadi Server: running'; then
        running=1
        akonadictl stop
        sleep 1
        continue
    fi
    break
done

time tar -C ~/.local/share/akonadi_maildir_resource_0 -cpf - . \
| pxz -c9 \
| tee ~/Mail-$(date +%Y-%m-%d).tar.xz \
| xz -cd | tar tf - | grep -v '/$' \
| wc -l

if [ -n "${running}" ]; then
    akonadictl start
fi
{'fraction_non_alphanumeric': 0.1800595238095238, 'fraction_numerical': 0.011904761904761904, 'mean_word_length': 2.204761904761905, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, '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': '1632242', 'n_tokens_mistral': 300, 'n_tokens_neox': 285, 'n_words': 71}