<commit_before>FROM ubuntu:16.04

RUN set -e

ENV JRUBY_VERSION="1.7.27"

RUN apt-get update && \
    apt-get install -y curl software-properties-common gawk

RUN apt-get install -y openjdk-8-jdk-headless build-essential git unzip debhelper && \
    update-ca-certificates -f

RUN useradd -m builder

RUN mkdir -p /mnt/gradle-cache && chown -R builder:builder /mnt/gradle-cache
USER builder

RUN cd ~ && \
    gpg --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys <KEY> && \
    curl -L https://get.rvm.io | bash -s stable

RUN ~/.rvm/bin/rvm install jruby-$JRUBY_VERSION --binary --skip-gemsets && \
    ~/.rvm/bin/rvm jruby-$JRUBY_VERSION do jgem install jruby-openssl jruby-launcher gem-wrappers rubygems-bundler rake:12.0.0 rvm jruby-jars:$JRUBY_VERSION bundler:1.14.6 warbler:1.4.9 bundler-audit

RUN mkdir -p /var/tmp/xroad
<commit_msg>Added uid and gid argumets<commit_after>FROM ubuntu:16.04

ARG uid=1000
ARG gid=1000

RUN set -e

ENV JRUBY_VERSION="1.7.27"

RUN apt-get update && \
    apt-get install -y curl software-properties-common gawk

RUN apt-get install -y openjdk-8-jdk-headless build-essential git unzip debhelper && \
    update-ca-certificates -f

RUN useradd -m -u $uid -g $gid builder

RUN mkdir -p /mnt/gradle-cache && chown -R builder:builder /mnt/gradle-cache

USER builder

RUN cd ~ && \
    gpg --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 && \
    curl -L https://get.rvm.io | bash -s stable

RUN ~/.rvm/bin/rvm install jruby-$JRUBY_VERSION --binary --skip-gemsets && \
    ~/.rvm/bin/rvm jruby-$JRUBY_VERSION do jgem install jruby-openssl jruby-launcher gem-wrappers rubygems-bundler rake:12.0.0 rvm jruby-jars:$JRUBY_VERSION bundler:1.14.6 warbler:1.4.9 bundler-audit

RUN mkdir -p /var/tmp/xroad

{'fraction_non_alphanumeric': 0.13004484304932734, 'fraction_numerical': 0.04596412556053812, 'mean_word_length': 3.3012048192771086, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, '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': '6187086', 'n_tokens_mistral': 768, 'n_tokens_neox': 691, 'n_words': 170}