<commit_before>#!/bin/bash

date=$1

projName=`git rev-parse --show-toplevel`

docs=`find $projName -name docs`

if [ ! -f $docs/presentation.tex ]
then
    echo ""
    echo "Must be called from within a directory that was set up by"
    echo "crombie workspace and initialized as a git repository."
    echo ""
    exit 0
fi

if [ "$date" = "" ]
then
    date=$(date +%y%m%d)
fi

if [ -d $docs/$date ]
then
    echo "Presentation already exists with selected date: $date"
    exit 0
fi

target=$docs/$date

mkdir $target
cp $docs/presentation.tex $target/$USER\_${projName##*/}\_$date.tex<commit_msg>Just in case I do something stupid, like name a branch 'docs'.<commit_after>#!/bin/bash

date=$1

projName=`git rev-parse --show-toplevel`

docs=`find $projName -name docs | grep --invert-match '\/.git\/'`

if [ ! -f $docs/presentation.tex ]
then
    echo ""
    echo "Must be called from within a directory that was set up by"
    echo "crombie workspace and initialized as a git repository."
    echo ""
    exit 0
fi

if [ "$date" = "" ]
then
    date=$(date +%y%m%d)
fi

if [ -d $docs/$date ]
then
    echo "Presentation already exists with selected date: $date"
    exit 0
fi

target=$docs/$date

mkdir $target
cp $docs/presentation.tex $target/$USER\_${projName##*/}\_$date.tex
{'fraction_non_alphanumeric': 0.1440809968847352, 'fraction_numerical': 0.004672897196261682, 'mean_word_length': 3.2691029900332227, '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': '7114404', 'n_tokens_mistral': 464, 'n_tokens_neox': 436, 'n_words': 147}