<commit_before>#!/bin/bash
cd $HOME
xstring=""
for i in `grep path .personal/configs/.gitmodules  | sed 's/\s*path = //'`; do
    xstring="${xstring} --exclude=.personal/configs/$i"
done

file="personal_`date +'%Y_%m_%d'`.tbz2"
tar ${xstring} -cjvhf $file .personal/
gpg -c --cipher-algo AES256 $file && rm $file<commit_msg>pers.sh: exclude git directory<commit_after>#!/bin/bash
cd $HOME
xstring=""
for i in `grep path .personal/configs/.gitmodules  | sed 's/\s*path = //'`; do
    xstring="${xstring} --exclude=.personal/configs/$i"
done
xstring="${xstring} --exclude=.git"

file="personal_`date +'%Y_%m_%d'`.tbz2"
tar ${xstring} -cjvhf $file .personal/
gpg -c --cipher-algo AES256 $file && rm $file
{'fraction_non_alphanumeric': 0.20827389443651925, 'fraction_numerical': 0.011412268188302425, 'mean_word_length': 4.2388059701492535, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '2661371', 'n_tokens_mistral': 297, 'n_tokens_neox': 276, 'n_words': 64}