<commit_before>FROM ubuntu:xenial AS JRE_DOWNLOADER

ENV JRE_VERSION=8-u144
ENV JRE_DOWNLOAD_URL=http://download.oracle.com/otn-pub/java/jdk/8u144-b01/090f390dda5b47b9b721c7dfaa008135/server-jre-8u144-linux-x64.tar.gz
ENV JRE_SHA256=8ba6f1c692518beb0c727c6e1fb8c30a5dfcc38f8ef9f4f7c7c114c01c747ebc

ENV JCE_POLICY_DOWNLOAD_URL=http://download.oracle.com/otn-pub/java/jce/8/jce_policy-8.zip
ENV JCE_POLICY_SHA256=f3020a3922efd6626c2fff45695d527f34a8020e938a49292561f18ad1320b59

##############################################
# Install all dependencies we need from Ubuntu
# - curl to download the JRE
# - unzip to unzip the JCE policy
# - corutils to have sha256sum, to verify the downloads
ENV JRE_BOOTSTRAP_PKGS="curl unzip coreutils"

RUN apt-get update
RUN apt-get install -yq $JRE_BOOTSTRAP_PKGS

####################
# Install Oracle JRE
# - Dowloads the server JRE to /tmp
# - Verify the cryptographic signature of the file, to prevent corruption
# - Extract download & clean up downloaded file
# - Mark the Oracle JDK as the one to be used by Ubuntu

# Common curl retry options, retry 10 times, continue where we left off,
# wait two seconds after each error to continue
# These settings are in place due to the InnovateUK networks.<commit_msg>Bump JRE from update 144 to update 152<commit_after>FROM ubuntu:xenial AS JRE_DOWNLOADER

ENV JRE_VERSION=8-u152
ENV JRE_DOWNLOAD_URL=http://download.oracle.com/otn-pub/java/jdk/8u152-b16/aa0333dd3019491ca4f6ddbe78cdb6d0/server-jre-8u152-linux-x64.tar.gz
ENV JRE_SHA256=7307a55dc385921c7d9fb90bd84c452df26ba05261e907713bd731d5f78b15cc

ENV JCE_POLICY_DOWNLOAD_URL=http://download.oracle.com/otn-pub/java/jce/8/jce_policy-8.zip
ENV JCE_POLICY_SHA256=f3020a3922efd6626c2fff45695d527f34a8020e938a49292561f18ad1320b59

##############################################
# Install all dependencies we need from Ubuntu
# - curl to download the JRE
# - unzip to unzip the JCE policy
# - corutils to have sha256sum, to verify the downloads
ENV JRE_BOOTSTRAP_PKGS="curl unzip coreutils"

RUN apt-get update
RUN apt-get install -yq $JRE_BOOTSTRAP_PKGS

####################
# Install Oracle JRE
# - Dowloads the server JRE to /tmp
# - Verify the cryptographic signature of the file, to prevent corruption
# - Extract download & clean up downloaded file
# - Mark the Oracle JDK as the one to be used by Ubuntu

# Common curl retry options, retry 10 times, continue where we left off,
# wait two seconds after each error to continue
# These settings are in place due to the InnovateUK networks.
{'fraction_non_alphanumeric': 0.11220861319636508, 'fraction_numerical': 0.10628210193599368, 'mean_word_length': 5.5595854922279795, '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': 12, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3684537', 'n_tokens_mistral': 1072, 'n_tokens_neox': 909, 'n_words': 244}