<commit_before><commit_msg>adding installlatest file to the branch<commit_after>
get_latest_release() {
	curl --silent "https://api.github.com/repos/$1/releases/latest" | grep -Po '"tag_name": "\K.*?(?=")'
}


##Change this to correct path after release
wget https://raw.githubusercontent.com/AquaQAnalytics/TorQ/master/installtorqapp.sh

torq_latest=`get_latest_release "AquaQAnalytics/TorQ"`

echo "============================================================="
echo "Latest TorQ release"
echo $torq_latest
echo "Getting the latest TorQ .tar.gz file"
echo "============================================================="

wget --content-disposition https://github.com/AquaQAnalytics/TorQ/archive/$torq_latest.tar.gz

echo $torq_latest

if [ "${torq_latest%%v*}" ]
then
  echo "tag doesn't start with v"
else
  torq_latest=${torq_latest#?}
fi


echo $torq_latest



torq_fsp_latest=`get_latest_release "AquaQAnalytics/TorQ-Finance-Starter-Pack"`

echo "============================================================="
echo "Latest TorQ-FSP release"
echo $torq_fsp_latest
echo "Getting the latest TorQ-FSP .tar.gz file"
echo "============================================================="

wget --content-disposition https://github.com/AquaQAnalytics/TorQ-Finance-Starter-Pack/archive/$torq_fsp_latest.tar.gz

echo $torq_fsp_latest

if [ "${torq_fsp_latest%%v*}" ]
then
  echo "tag doesn't start with v"
else
  torq_fsp_latest=${torq_fsp_latest#?}
fi


echo $torq_fsp_latest

cho "Files downloaded. Executing install script"

sh installtorqapp.sh torq=TorQ-$torq_latest.tar.gz releasedir=deploy data=datatemp installfile=TorQ-Finance-Starter-Pack-$torq_fsp_latest.tar.gz
{'fraction_non_alphanumeric': 0.25674865026994603, 'fraction_numerical': 0.0005998800239952009, 'mean_word_length': 6.651376146788991, 'pattern_counts': {'":': 1, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4113469', 'n_tokens_mistral': 577, 'n_tokens_neox': 545, 'n_words': 107}