<commit_before>#!/usr/bin/env bash
set -e # exit with nonzero exit code if anything fails

# clear and re-create the out directory
rm -rf out || exit 0;
mkdir out;

# run our compile script
node_modules/ecmarkup/bin/ecmarkup.js spec.html out/index.html<commit_msg>trying automatic page generation<commit_after>#!/usr/bin/env bash
set -e # exit with nonzero exit code if anything fails

# clear and re-create the out directory
rm -rf out || exit 0;
mkdir out;

# run our compile script
node_modules/ecmarkup/bin/ecmarkup.js spec.html out/index.html

# grab content
INDEX=$(cat out/index.html)

# switch branch
git checkout gh-pages

# clean it up
rm -rf ./*

# create new index
echo -n "$INDEX" > index.html

# publish
git add .
git commit -m 'automatically generated index.html'
git git push --force --quiet > /dev/null 2>&1

# switch it back
git checkout master
{'fraction_non_alphanumeric': 0.10092807424593968, 'fraction_numerical': 0.004640371229698376, 'mean_word_length': 3.7944444444444443, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 6, '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': '4275635', 'n_tokens_mistral': 290, 'n_tokens_neox': 274, 'n_words': 109}