<commit_before>#!/bin/sh

echo "### Luapress"

VERSION=`cat luapress/config.lua | grep version | grep -oEi "[0-9]+\.[0-9]+\.?[0-9]*"`
ROCKSPEC="luapress-${VERSION}-*.rockspec"

# Ensure rockspec in sync w/ config.lua
if [ ! -f $ROCKSPEC ]; then
    echo "--> Missing rockspec: ${ROCKSPEC}"
    exit 1
fi

echo "--> Releasing: v$VERSION"

# Tag & push to GitHub
#git tag -a "v$VERSION" -m "v$VERSION"
#git push --tags

# Upload rockspec?

echo "--> Done!"<commit_msg>Add git stuff to release.sh<commit_after>#!/bin/sh

echo "### Luapress"

VERSION=`cat luapress/config.lua | grep version | grep -oEi "[0-9]+\.[0-9]+\.?[0-9]*"`
ROCKSPEC="luapress-${VERSION}-*.rockspec"

# Ensure rockspec in sync w/ config.lua
if [ ! -f $ROCKSPEC ]; then
    echo "--> Missing rockspec: ${ROCKSPEC}"
    exit 1
fi

echo "--> Releasing: v$VERSION"

# Tag
git tag -a "v$VERSION" -m "v$VERSION"

# Push
git push --tags

# Upload rockspec?

echo "--> Done!"
{'fraction_non_alphanumeric': 0.20427807486631017, 'fraction_numerical': 0.014973262032085561, 'mean_word_length': 3.4360189573459716, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, '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': '2052020', 'n_tokens_mistral': 395, 'n_tokens_neox': 372, 'n_words': 97}