<commit_before>set -o errexit

if [ $# != 1 ] ; then 
	echo "usage: $0 shell_file_name" 
	echo " e.g.: $0 xxx.sh" 
	exit 1; 
fi 

WORKSPACE_DIR=${TRAVIS_BUILD_DIR}/coverage
mkdir -p ${WORKSPACE_DIR}
cd ${WORKSPACE_DIR}

LUA_5_3_DIR=${WORKSPACE_DIR}/lua-5.3.2
curl --location http://www.lua.org/ftp/lua-5.3.2.tar.gz | tar xz;
cd ${LUA_5_3_DIR}
sudo make linux && sudo make install INSTALL_TOP=${LUA_5_3_DIR}
${LUA_5_3_DIR}/bin/lua -v

cd ${WORKSPACE_DIR}
LUAROCKS_DIR=${WORKSPACE_DIR}/luarocks-2.3.0
curl --location http://luarocks.org/releases/luarocks-2.3.0.tar.gz | tar xz;
cd ${LUAROCKS_DIR}
./configure --with-lua=${LUA_5_3_DIR}; sudo make bootstrap

sudo luarocks install luacov-coveralls

SHELL_FILE=$1
sh ${SHELL_FILE} ${LUA_5_3_DIR}/bin/lua<commit_msg>commit<commit_after>set -o errexit

if [ $# != 1 ] ; then 
	echo "usage: $0 shell_file_name" 
	echo " e.g.: $0 xxx.sh" 
	exit 1; 
fi 

WORKSPACE_DIR=${TRAVIS_BUILD_DIR}/coverage
mkdir -p ${WORKSPACE_DIR}
cd ${WORKSPACE_DIR}

LUA_5_3_DIR=${WORKSPACE_DIR}/lua-5.3.2
curl --location http://www.lua.org/ftp/lua-5.3.2.tar.gz | tar xz;
cd ${LUA_5_3_DIR}
sudo make linux && sudo make install INSTALL_TOP=${LUA_5_3_DIR}
${LUA_5_3_DIR}/bin/lua -v

cd ${WORKSPACE_DIR}
LUAROCKS_DIR=${WORKSPACE_DIR}/luarocks-2.3.0
curl --location http://luarocks.org/releases/luarocks-2.3.0.tar.gz | tar xz;
cd ${LUAROCKS_DIR}
./configure --with-lua=${LUA_5_3_DIR}; sudo make bootstrap

sudo luarocks install luacov-coveralls

cd ${TRAVIS_BUILD_DIR}
SHELL_FILE=$1
sh ${SHELL_FILE} ${LUA_5_3_DIR}/bin/lua
{'fraction_non_alphanumeric': 0.16341145833333334, 'fraction_numerical': 0.037760416666666664, 'mean_word_length': 4.6300366300366305, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '4289722', 'n_tokens_mistral': 730, 'n_tokens_neox': 697, 'n_words': 127}