<commit_before>#!/bin/sh

if [[ $# -eq 0 ]] ; then
  echo 'Usage: tidyup <dir1> <dir2> ... <dirN>'
  echo 'Tidies ~/<dirN> to ~/Backups/<dirN>'
  exit 0
fi

today="$(date +'%d%m%y')"
backupdir=~/Backups/

for var in "$@"
  do
    source=~/$var
    # Ignore directories that don't exist.
    if [ -d "$source" ] ; then
      destination=$backupdir$var/$today
      mkdir -p $destination
      rsync -arq $source/ $destination
      rm -rf $source/*
    fi
  done<commit_msg>Remove hidden files without error.<commit_after>#!/bin/sh

if [[ $# -eq 0 ]] ; then
  echo 'Usage: tidyup <dir1> <dir2> ... <dirN>'
  echo 'Tidies ~/<dirN> to ~/Backups/<dirN>'
  exit 0
fi

today="$(date +'%d%m%y')"
backupdir=~/Backups/

for var in "$@"
  do
    source=~/$var
    # Ignore directories that don't exist.
    if [ -d "$source" ] ; then
      destination=$backupdir$var/$today
      mkdir -p $destination
      rsync -arq $source/ $destination
      rm -rf $source/..?* $source/.[!.]* $source/*
    fi
  done
{'fraction_non_alphanumeric': 0.1899497487437186, 'fraction_numerical': 0.008040201005025126, 'mean_word_length': 2.608695652173913, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 13, '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': '6378834', 'n_tokens_mistral': 406, 'n_tokens_neox': 381, 'n_words': 103}