<commit_before>#!/bin/bash -e

get_property() {
  echo $(node -p "p=require('./${1}').${2};")
}

echo "Getting version number from package.json"
version="$(get_property 'package.json' 'version')"

echo "(Re)Creating bookshelf-source remote"
git remote remove bookshelf-source || true
git remote add bookshelf-source <EMAIL>:bookshelf/bookshelf.git

echo "Regenerating documentation"
npm run jsdoc

echo "Committing new release version ($version) w/ any outstanding changes"
git commit -am "Release $version"

echo "Tagging version w/ number"
git tag $version

echo "Pushing commit and tags to source master"
git push bookshelf-source master
git push bookshelf-source master --tags<commit_msg>Modify postpublish script to add new files to git<commit_after>#!/bin/bash -e

get_property() {
  echo $(node -p "p=require('./${1}').${2};")
}

echo "Getting version number from package.json"
version="$(get_property 'package.json' 'version')"

echo "(Re)Creating bookshelf-source remote"
git remote remove bookshelf-source || true
git remote add bookshelf-source <EMAIL>:bookshelf/bookshelf.git

echo "Regenerating documentation"
npm run jsdoc

echo "Committing new release version ($version) w/ any outstanding changes"
git add -A && git commit -m "Release $version"

echo "Tagging version w/ number"
git tag $version

echo "Pushing commit and tags to source master"
git push bookshelf-source master
git push bookshelf-source master --tags
{'fraction_non_alphanumeric': 0.11793440334961619, 'fraction_numerical': 0.0027913468248429866, 'mean_word_length': 5.234782608695652, 'pattern_counts': {'":': 0, '<': 5, '<?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': '1643485', 'n_tokens_mistral': 446, 'n_tokens_neox': 419, 'n_words': 162}