<commit_before>#!/bin/sh

die() { echo $*; exit -1; }

git checkout gh-pages
git merge master
./make-all.sh || exit -1

cat > index.html<<EOF
<h1>
  <a href="http://github.com/bamos/latex-templates">LaTeX Templates</a>
</h1>
<a href=http://bamos.io/about><NAME></a>

EOF
for TMPL_PDF in $(find . -name '*.pdf'); do
  git add $TMPL_PDF
  SHORT_NAME=$(echo $TMPL_PDF | sed 's/\.\/\(.*\)\/.*\.pdf/\1/g')
  cat >> index.html <<EOF
<h2>$SHORT_NAME</h2>
<embed src="$TMPL_PDF" width="100%" height="700">

EOF
done

git add index.html || die "Unable to add."
git commit -m "Update gh-pages." || die "Unable to commit."
git push || die "Unable to push."
git checkout master<commit_msg>Add HTML boilerplate.<commit_after>#!/bin/sh

die() { echo $*; exit -1; }

git checkout gh-pages
git merge master
./make-all.sh || exit -1

cat > index.html<<EOF
<!DOCTYPE html>
<head>
  <title>LaTeX Templates</title>
</head>

<html>
<body>
<h1>
  <a href="http://github.com/bamos/latex-templates">LaTeX Templates</a>
</h1>
<a href=http://bamos.io/about><NAME></a>

EOF
for TMPL_PDF in $(find . -name '*.pdf'); do
  git add $TMPL_PDF
  SHORT_NAME=$(echo $TMPL_PDF | sed 's/\.\/\(.*\)\/.*\.pdf/\1/g')
  cat >> index.html <<EOF
<h2>$SHORT_NAME</h2>
<embed src="$TMPL_PDF" width="100%" height="700">

EOF
done

cat >> index.html<<EOF
</body>
</html>
EOF

git add index.html || die "Unable to add."
git commit -m "Update gh-pages." || die "Unable to commit."
git push || die "Unable to push."
git checkout master
{'fraction_non_alphanumeric': 0.21481481481481482, 'fraction_numerical': 0.017508417508417508, 'mean_word_length': 3.6006191950464395, 'pattern_counts': {'":': 0, '<': 42, '<?xml version=': 0, '>': 40, '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': '4285984', 'n_tokens_mistral': 621, 'n_tokens_neox': 582, 'n_words': 160}