<commit_before>script_dir=${0%/*}
pushd $script_dir

source config.sh
dboxpublic=$HOMEDIR/Dropbox/Public

tmpdir=$dboxpublic/slides$(date +%s%N |md5sum |cut -c 1-6)
cp -r . $tmpdir
popd

cp $1 $tmpdir/tmp.md
#echo "$content"
pushd $tmpdir
sed -e "/Your content will be here./r tmp.md" -e "//d" $tmpdir/template.html> $tmpdir/$1.html 
popd

echo "Your slides is published to ",
echo "$DBOXPREFIX/$tmpdir/$1.html"
<commit_msg>Fixed bug in deploy.sh<commit_after>script_dir=${0%/*}
pushd $script_dir

source config.sh
dboxpublic=$HOMEDIR/Dropbox/Public

tmpdir=slides$(date +%s%N |md5sum |cut -c 1-6)
fulltmpdir=$dboxpublic/$tmpdir
rsync -r --exclude=.git --exclude=*.sh . $fulltmpdir
popd

cp $1 $fulltmpdir/tmp.md
#echo "$content"
pushd $fulltmpdir
sed -e "/Your content will be here./r tmp.md" -e "//d" $fulltmpdir/template.html> $fulltmpdir/$1.html 
popd

echo "Your slides are published to:"
echo "$DBOXPREFIX/$tmpdir/$1.html"

{'fraction_non_alphanumeric': 0.16792249730893433, 'fraction_numerical': 0.015069967707212056, 'mean_word_length': 4.568862275449102, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '4681770', 'n_tokens_mistral': 379, 'n_tokens_neox': 375, 'n_words': 94}