<commit_before>#!/bin/bash

######################
#      By aaron      #
#        2014        #
#    MIT LICENSE     #
######################<commit_msg>fixed some edege cases + code structure<commit_after>#!/bin/bash

######################
#      By aaron      #
#        2014        #
#    MIT LICENSE     #
######################

# Your GPG ID
GPG=59D02DF1
target=${2%/}

if [ "$1" == "-c" ] ; then
  tar -cjf $target.tar.bz2 $target && \
  gpg -r $GPG --encrypt $target.tar.bz2 && \
  rm $target.tar.bz2 && \
  rm -r $target && \
  mv $target.tar.bz2.gpg ${target%.*}.gsa
  echo "success: $target.gsa is an encrypted archive"
  exit 0
fi

if [ "$1" == "-e" ] ; then
  gpg --output ${target%.*} --decrypt $target && \
  tar -xjf ${target%.*} && \
  rm -v $target
  echo "success: ${target%.*} is a clear directory"
  exit 0
fi

echo "comprcrypt -ce /path/to/target"
echo "     -c : compress"
echo "     -e : extract"
exit 1
{'fraction_non_alphanumeric': 0.2572658772874058, 'fraction_numerical': 0.024757804090419805, 'mean_word_length': 2.369565217391304, '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': '2849057', 'n_tokens_mistral': 368, 'n_tokens_neox': 340, 'n_words': 90}