<commit_before>#!/bin/bash

# TODO: It'd be great if we can stash first but then I need to know how
# to save the output of a command (i.e. we don't want to `stash pop` if
# we didn't stash.
echo "Building..." && ./build && \
    mkdir publish && \
    echo "Copying dist/* to publish/..." && cp -r dist/* publish && \
    echo "Checkout docs branch..." && git checkout gh-pages && \
    echo "Copying publish/* to ." && cp -r publish/* . && \
    echo "Commiting changes..." && \
        git commit -am "Automated commit via publish.sh" && \
    echo "Pushing to github..." && git push origin gh-pages:gh-pages
git checkout master
<commit_msg>Remove publish directory before trying to mkdir.<commit_after>#!/bin/bash

# TODO: It'd be great if we can stash first but then I need to know how
# to save the output of a command (i.e. we don't want to `stash pop` if
# we didn't stash.
echo "Building..." && ./build && \
    rm -rf publish && mkdir publish && \
    echo "Copying dist/* to publish/..." && cp -r dist/* publish && \
    echo "Checkout docs branch..." && git checkout gh-pages && \
    echo "Copying publish/* to ." && cp -r publish/* . && \
    echo "Commiting changes..." && \
        git commit -am "Automated commit via publish.sh" && \
    echo "Pushing to github..." && git push origin gh-pages:gh-pages
git checkout master

{'fraction_non_alphanumeric': 0.15361670395227442, 'fraction_numerical': 0.0, 'mean_word_length': 2.522309711286089, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '1291310', 'n_tokens_mistral': 425, 'n_tokens_neox': 401, 'n_words': 177}