<commit_before>#!/usr/bin/env bash

echo "[[Dendro starting...]]"
export NVM_DIR="$HOME/.nvm" &&
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"  # This loads nvm
echo "nvm is at: $NVM_DIR"

nvm use %NODE_VERSION% --delete-prefix &&

echo "node is at: $(which node)"
echo "node version: $(node -v)"

node src/app.js | tee --append %DENDRO_LOG_FILE%

#node %DENDRO_INSTALLATION_PATH%/src/app.js 
<commit_msg>Trying to capture exit code for service restart<commit_after>#!/usr/bin/env bash

echo "[[Dendro starting...]]"
export NVM_DIR="$HOME/.nvm" &&
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"  # This loads nvm
echo "nvm is at: $NVM_DIR"

nvm use %NODE_VERSION% --delete-prefix &&

echo "node is at: $(which node)"
echo "node version: $(node -v)"

node src/app.js | tee --append %DENDRO_LOG_FILE%
	
if [[ "$?" != "0" ]]
then
	exit 1
fi

#node %DENDRO_INSTALLATION_PATH%/src/app.js 

{'fraction_non_alphanumeric': 0.19347581552305962, 'fraction_numerical': 0.0022497187851518562, 'mean_word_length': 3.8633879781420766, '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': '2135333', 'n_tokens_mistral': 383, 'n_tokens_neox': 369, 'n_words': 93}