<commit_before>#!/usr/bin/env bash
# Execute this in root directory to build gh-pages

git checkout master
git branch -D gh-pages
git checkout --orphan gh-pages

lein clean
lein cljsbuild once prod
sass --update sass:resources/public/css/out

mv resources/public ./public

ls -a | awk '{if(NR>2)print}'| grep -v ".git*" | grep -v public | xargs rm

cp -r ./public/. ./
rm -r public

git add . && git commit -m 'Meaningless commit for gh-pages'<commit_msg>Update build file<commit_after>#!/usr/bin/env zsh

# Create fresh orphan branch
git checkout master
git branch -D gh-pages
git checkout --orphan gh-pages

# Build
lein clean
lein cljsbuild once prod
sass --update sass:resources/public/css/out

# Move resources to top level
mv resources/public ./public

# Delete everything in top level except git related and resource file
ls -a | awk '{if(NR>2)print}'| grep -v ".git*" | grep -v public | xargs rm -r

# Move resource contents to top level
cp -r ./public/. ./
# Delete resource folder
rm -r public

# Commit to git and push
git add .
git commit -m 'Meaningless commit for gh-pages'
git config branch.gh-pages.pushRemote origin
git push -v --force-with-lease origin gh-pages:refs/heads/gh-pages

# Remove this script
rm -- "$0"
{'fraction_non_alphanumeric': 0.1112012987012987, 'fraction_numerical': 0.002435064935064935, 'mean_word_length': 3.467391304347826, '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': '1899743', 'n_tokens_mistral': 416, 'n_tokens_neox': 390, 'n_words': 164}