<commit_before>#!/usr/bin/env sh
git pull --rebase &&

# get the current real path of this file so we can relative node_modules
# (in our case, trash-cli)
realPath=$(node -e "console.log(require('path').dirname(require('fs').realpathSync('$0')))")

# run test from a fresh node_modules
$realPath/node_modules/.bin/trash node_modules
npm install &&
npm test &&

git tag $(node -e 'process.stdout.write(require("./package.json").version)') &&

npm publish &&

git push --follow-tags<commit_msg>Add some comments<commit_after>#!/usr/bin/env sh
git pull --rebase &&

# get the current real path of this file so we can relative node_modules
# (in our case, trash-cli)
realPath=$(node -e "console.log(require('path').dirname(require('fs').realpathSync('$0')))")

# run test from a fresh node_modules
$realPath/node_modules/.bin/trash node_modules
npm install &&
npm test &&

# tag from current version in package.json
git tag $(node -e 'process.stdout.write(require("./package.json").version)') &&

# publish the tagged version
npm publish &&

# push tag
git push --follow-tags
{'fraction_non_alphanumeric': 0.1531279178338002, 'fraction_numerical': 0.0018674136321195146, 'mean_word_length': 4.794594594594595, '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': '2041046', 'n_tokens_mistral': 346, 'n_tokens_neox': 336, 'n_words': 107}