<commit_before>#!/bin/bash
# publish dist to gh-pages

npm run build &&
git add --all . &&
git commit -m "update dist build" &&
cp -r dist .. &&  # move to temp location
git checkout gh-pages &&
cp -r ../dist/* . &&
rm -r ../dist &&
git add --all . &&
git amend -m "update gh-pages" &&  # do not keep history
git push --force &&
git checkout master<commit_msg>ghpages: fix master commit<commit_after>#!/bin/bash
# publish dist to gh-pages

# store stash list
stash_list=$(git stash list)

npm run build &&
cp -r dist .. &&  # move to temp location
git add --all . &&
git stash &&
git checkout gh-pages &&
cp -r ../dist/* . &&
rm -r ../dist &&
git add --all . &&
git amend -m "update gh-pages" &&  # do not keep history
git push --force &&
git checkout master

# stash list is not equal -> pop
new_stash_list=$(git stash list)
if [ "$stash_list" != "$new_stash_list" ]
then
  echo "popping stash"
  git stash pop
fi
{'fraction_non_alphanumeric': 0.1575492341356674, 'fraction_numerical': 0.0, 'mean_word_length': 2.91025641025641, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, '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': '850932', 'n_tokens_mistral': 334, 'n_tokens_neox': 311, 'n_words': 126}