<commit_before>#!/bin/sh -eux
# install java se 15 development kit by oracle.

# install java se 15 development kit. --------------------------------------------------------------
jdk_home="jdk15"
jdk_build="15+36"
jdk_hash="779bf45e88a44cbd9ea6621d33e33db1"
jdk_folder="jdk-15"
jdk_binary="${jdk_folder}_linux-x64_bin.tar.gz"
jdk_sha256="300538e0c227c268f14957294d5c44abb5e7e476debc9d07e8d892c417ac8f0d"

# create java home parent folder.
mkdir -p /usr/local/java
cd /usr/local/java

# download jdk 15 binary from oracle otn.
wget --no-verbose --no-check-certificate --no-cookies --header "Cookie: oraclelicense=accept-securebackup-cookie" https://download.oracle.com/otn-pub/java/jdk/${jdk_build}/${jdk_hash}/${jdk_binary}

# verify the downloaded binary.
echo "${jdk_sha256} ${jdk_binary}" | sha256sum --check
# ${jdk_folder}_linux-x64_bin.tar.gz: OK

# extract jdk 15 binary and create softlink to 'jdk15'.
rm -f ${jdk_home}
tar -zxvf ${jdk_binary} --no-same-owner --no-overwrite-dir
chown -R root:root ./${jdk_folder}
ln -s ${jdk_folder} ${jdk_home}
rm -f ${jdk_binary}

# set jdk 15 home environment variables.<commit_msg>Upgraded support for Oracle Java SE JDK 15.0.1.<commit_after>#!/bin/sh -eux
# install java se 15 development kit by oracle.

# install java se 15 development kit. --------------------------------------------------------------
jdk_home="jdk15"
jdk_build="15.0.1+9"
jdk_hash="51f4f36ad4ef43e39d0dfdbaf6549e32"
jdk_folder="jdk-15"
jdk_binary="${jdk_folder}_linux-x64_bin.tar.gz"
jdk_sha256="445a1c5c335b53b030f68aca58493ddedd49f4b53085618bc1ae7aba68156606"

# create java home parent folder.
mkdir -p /usr/local/java
cd /usr/local/java

# download jdk 15 binary from oracle otn.
wget --no-verbose --no-check-certificate --no-cookies --header "Cookie: oraclelicense=accept-securebackup-cookie" https://download.oracle.com/otn-pub/java/jdk/${jdk_build}/${jdk_hash}/${jdk_binary}

# verify the downloaded binary.
echo "${jdk_sha256} ${jdk_binary}" | sha256sum --check
# ${jdk_folder}_linux-x64_bin.tar.gz: OK

# extract jdk 15 binary and create softlink to 'jdk15'.
rm -f ${jdk_home}
tar -zxvf ${jdk_binary} --no-same-owner --no-overwrite-dir
chown -R root:root ./${jdk_folder}
ln -s ${jdk_folder} ${jdk_home}
rm -f ${jdk_binary}

# set jdk 15 home environment variables.
{'fraction_non_alphanumeric': 0.18621892716964675, 'fraction_numerical': 0.08242477104230266, 'mean_word_length': 3.749482401656315, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 6, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5625932', 'n_tokens_mistral': 987, 'n_tokens_neox': 868, 'n_words': 190}