<commit_before>#! /bin/bash

echo -e "        o O o\n" "      o \|/ o\n" "   o o \ | / o o\n" "    \ \ \|/ / /\n" "    (+++\@/+++)\n" "    '---------'\n" "  Lucidworks View"

FILE="$(pwd)/lib/nodejs/node/bin/npm"
if ! [ -f "$FILE" ];
then
  echo "Use npm instead of view.sh when not using packaged version of Lucidworks View." >&2
  exit
fi


# Put nodejs in the path for the duration of the script execution.
export PATH=$(pwd)/lib/nodejs/node/bin:$PATH

./lib/nodejs/node/bin/npm $1 $2 $3<commit_msg>Fixed nodejs path in view.sh<commit_after>#! /bin/bash

echo -e "        o O o\n" "      o \|/ o\n" "   o o \ | / o o\n" "    \ \ \|/ / /\n" "    (+++\@/+++)\n" "    '---------'\n" "  Lucidworks View"

FILE="$(pwd)/lib/nodejs/bin/npm"
if ! [ -f "$FILE" ];
then
  echo "Use npm instead of view.sh when not using packaged version of Lucidworks View." >&2
  exit
fi


# Put nodejs in the path for the duration of the script execution.
export PATH=$(pwd)/lib/nodejs/bin:$PATH

./lib/nodejs/bin/npm $1 $2 $3
{'fraction_non_alphanumeric': 0.2151394422310757, 'fraction_numerical': 0.00796812749003984, 'mean_word_length': 2.1504702194357366, 'pattern_counts': {'":': 0, '<': 3, '<?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': '7157971', 'n_tokens_mistral': 416, 'n_tokens_neox': 395, 'n_words': 119}