<commit_before>#!/bin/bash

_dirs=($(find . -mindepth 1                     \
                -maxdepth 1                     \
                -type d ! \(    -name '.git'    \
                             -o -name '.peru'   \
                             -o -name '.subgit' \
                             -o -name '.subhg'  \
                             -o -name '.hg' \)  \
                             | sed 's,^./,,'))

for _dir in "${_dirs[@]}"; do
  find "$_dir" -mindepth 1 -maxdepth 1 -type f -name "*.tar.gz*" -exec rm '{}' +
  tar --exclude=PKGBUILD -cvzf "$_dir.tar.gz" "$_dir"
  gpg -u 0x3DBB92CDB1B08DAB --armor --sign "$_dir.tar.gz"
  mv "$_dir".tar.gz* "$_dir"
done<commit_msg>detach-sign<commit_after>#!/bin/bash

_dirs=($(find . -mindepth 1                     \
                -maxdepth 1                     \
                -type d ! \(    -name '.git'    \
                             -o -name '.peru'   \
                             -o -name '.subgit' \
                             -o -name '.subhg'  \
                             -o -name '.hg' \)  \
                             | sed 's,^./,,'))

for _dir in "${_dirs[@]}"; do
  find "$_dir" -mindepth 1 -maxdepth 1 -type f -name "*.tar.gz*" -exec rm '{}' +
  tar --exclude=PKGBUILD -cvzf "$_dir.tar.gz" "$_dir"
  gpg -u 0x3DBB92CDB1B08DAB --armor --detach-sign "$_dir.tar.gz"
  mv "$_dir".tar.gz* "$_dir"
done
{'fraction_non_alphanumeric': 0.17516152189519024, 'fraction_numerical': 0.015793251974156496, 'mean_word_length': 0.9388038942976356, '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': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6750901', 'n_tokens_mistral': 517, 'n_tokens_neox': 488, 'n_words': 111}