<commit_before>#!/bin/sh -eux
# install spring tool suite text editor with associated gnome desktop app and images.
# NOTE: if the sts release is updated, you will also need to update the sts release path
#       in the companion 'desktops/spring-tool-suite.desktop' file.

# set default value for devops home environment variable if not set. -----------
devops_home="${devops_home:-/opt/devops}"                   # [optional] devops home (defaults to '/opt/devops').

# install spring tool suite ide. -----------------------------------------------
stshome="sts"
stsrelease="4.2.0"
stsnumber="1024174404"
eclipseversion="2019-03"
eclipserelease="4.11.0"

eclipsedist=$(echo "e${eclipserelease}" | awk -F "." '{printf "%s.%s", $1, $2}')
stsfamily="${stsrelease:0:1}"
stsbinary="spring-tool-suite-${stsfamily}-${stsrelease}.RELEASE-e${eclipserelease}-linux.gtk.x86_64.tar.gz"
stsfolder="${stshome}-${stsrelease}.RELEASE"
stsconfig="SpringToolSuite${stsfamily}.ini"

# create spring tool suite home parent folder.
mkdir -p /usr/local/spring
cd /usr/local/spring

# download spring tool suite binary.
wget --no-verbose http://download.springsource.com/release/STS${stsfamily}/${stsrelease}.RELEASE/dist/${eclipsedist}/${stsbinary}

# extract spring tool suite binary.
rm -f ${stshome}
tar -zxvf ${stsbinary} --no-same-owner --no-overwrite-dir
chown -R root:root ./${stsfolder}
ln -s ${stsfolder} ${stshome}
rm -f ${stsbinary}

# modify the spring tool suite config file. ------------------------------------
cd ${stshome}<commit_msg>Upgraded Spring Tool Suite IDE to 4.2.1 (Eclipse 2019-03 [4.11.0]).<commit_after>#!/bin/sh -eux
# install spring tool suite text editor with associated gnome desktop app and images.
# NOTE: if the sts release is updated, you will also need to update the sts release path
#       in the companion 'desktops/spring-tool-suite.desktop' file.

# set default value for devops home environment variable if not set. -----------
devops_home="${devops_home:-/opt/devops}"                   # [optional] devops home (defaults to '/opt/devops').

# install spring tool suite ide. -----------------------------------------------
stshome="sts"
stsrelease="4.2.1"
stsnumber="783280059"
eclipseversion="2019-03"
eclipserelease="4.11.0"

eclipsedist=$(echo "e${eclipserelease}" | awk -F "." '{printf "%s.%s", $1, $2}')
stsfamily="${stsrelease:0:1}"
stsbinary="spring-tool-suite-${stsfamily}-${stsrelease}.RELEASE-e${eclipserelease}-linux.gtk.x86_64.tar.gz"
stsfolder="${stshome}-${stsrelease}.RELEASE"
stsconfig="SpringToolSuite${stsfamily}.ini"

# create spring tool suite home parent folder.
mkdir -p /usr/local/spring
cd /usr/local/spring

# download spring tool suite binary.
wget --no-verbose http://download.springsource.com/release/STS${stsfamily}/${stsrelease}.RELEASE/dist/${eclipsedist}/${stsbinary}

# extract spring tool suite binary.
rm -f ${stshome}
tar -zxvf ${stsbinary} --no-same-owner --no-overwrite-dir
chown -R root:root ./${stsfolder}
ln -s ${stsfolder} ${stshome}
rm -f ${stsbinary}

# modify the spring tool suite config file. ------------------------------------
cd ${stshome}
{'fraction_non_alphanumeric': 0.20481540930979134, 'fraction_numerical': 0.02375601926163724, 'mean_word_length': 3.3764044943820224, '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': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '142051', 'n_tokens_mistral': 1052, 'n_tokens_neox': 964, 'n_words': 268}