<commit_before>#!/bin/bash

# Ensure compilation and verification occur on a LTS node version
# https://github.com/balupton/awesome-travis#use-lts-node-version-for-preparation

# ./npm-install.bash provides:
# LTS_NODE_INSTALLED_VERSION
# CURRENT_NODE_VERSION
if test "$LTS_NODE_INSTALLED_VERSION"; then
	echo "running on the non-LTS node version $CURRENT_NODE_VERSION"

	echo "swapping to $LTS_NODE_INSTALLED_VERSION..."
	nvm use "$LTS_NODE_INSTALLED_VERSION" || exit -1
	echo "...swapped to $LTS_NODE_INSTALLED_VERSION"

	echo "compiling with $LTS_NODE_INSTALLED_VERSION..."
	npm run our:compile || exit -1
	echo "...compiled with $LTS_NODE_INSTALLED_VERSION"

	echo "swapping back to $CURRENT_NODE_VERSION"
	nvm use "$CURRENT_NODE_VERSION" || exit -1
	echo "...swapped back to $CURRENT_NODE_VERSION"
else
	echo "running on the LTS node version $CURRENT_NODE_VERSION"

	echo "compiling and verifying with $CURRENT_NODE_VERSION..."
	npm run our:compile && npm run our:verify || exit -1
	echo "...compiled and verified with $CURRENT_NODE_VERSION"
fi<commit_msg>fix node-verify after node-install updates<commit_after>#!/bin/bash

# Ensure compilation and verification occur on a LTS node version
# https://github.com/balupton/awesome-travis#use-lts-node-version-for-preparation

# ./node-install.bash provides:
# LTS_NODE_INSTALLED_VERSION
# ORIGINAL_NODE_VERSION
if test "$LTS_NODE_INSTALLED_VERSION"; then
	echo "running on the non-LTS node version $ORIGINAL_NODE_VERSION"

	echo "swapping to $LTS_NODE_INSTALLED_VERSION..."
	nvm use "$LTS_NODE_INSTALLED_VERSION" || exit -1
	echo "...swapped to $LTS_NODE_INSTALLED_VERSION"

	echo "compiling with $LTS_NODE_INSTALLED_VERSION..."
	npm run our:compile || exit -1
	echo "...compiled with $LTS_NODE_INSTALLED_VERSION"

	echo "swapping back to $ORIGINAL_NODE_VERSION"
	nvm use "$ORIGINAL_NODE_VERSION" || exit -1
	echo "...swapped back to $ORIGINAL_NODE_VERSION"
else
	echo "running on the LTS node version $ORIGINAL_NODE_VERSION"

	echo "compiling and verifying with $ORIGINAL_NODE_VERSION..."
	npm run our:compile && npm run our:verify || exit -1
	echo "...compiled and verified with $ORIGINAL_NODE_VERSION"
fi
{'fraction_non_alphanumeric': 0.10185185185185185, 'fraction_numerical': 0.003703703703703704, 'mean_word_length': 5.191977077363897, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '3186268', 'n_tokens_mistral': 766, 'n_tokens_neox': 717, 'n_words': 201}