<commit_before>FROM python:2.7
MAINTAINER <NAME> <<EMAIL>>

# install requirements
RUN apt-get update -y && apt-get install -y git

RUN groupadd -r simcity && useradd -d /var/lib/simcity -g simcity simcity \
  && mkdir /var/lib/simcity \
  && chown -R simcity:simcity /var/lib/simcity

USER simcity
# Variable is a workaround to disable cache from this point forward
RUN simcity_commit="6<PASSWORD>" \
  git clone https://github.com/NLeSC/sim-city-webservice.git \
            /var/lib/simcity/sim-city-webservice

WORKDIR /var/lib/simcity/sim-city-webservice

RUN virtualenv env \
  && . env/bin/activate \
  && pip install -U pip \
  && git checkout develop \
  && simcity_client_commit="<PASSWORD>" \
     make install

USER root
COPY /start.sh /
RUN chown simcity:simcity /start.sh && chmod +x /start.sh

USER simcity
EXPOSE 9090
CMD ["/start.sh"]
<commit_msg>Install java (required for jnius)<commit_after>FROM python:2.7
MAINTAINER <NAME> <<EMAIL>>

# install requirements
RUN apt-get update -y && apt-get install -y git && apt-get install -y default-jdk

RUN groupadd -r simcity && useradd -d /var/lib/simcity -g simcity simcity \
  && mkdir /var/lib/simcity \
  && chown -R simcity:simcity /var/lib/simcity

USER simcity
# Variable is a workaround to disable cache from this point forward
RUN simcity_commit="646f008914e5b3811e14751e698138bfaab8501e" \
  git clone https://github.com/NLeSC/sim-city-webservice.git \
            /var/lib/simcity/sim-city-webservice

WORKDIR /var/lib/simcity/sim-city-webservice

RUN virtualenv env \
  && . env/bin/activate \
  && pip install -U pip \
  && git checkout develop \
  && simcity_client_commit="<PASSWORD>" \
     make install

USER root
COPY /start.sh /
RUN chown simcity:simcity /start.sh && chmod +x /start.sh

USER simcity
EXPOSE 9090
CMD ["/start.sh"]

{'fraction_non_alphanumeric': 0.12203202650469354, 'fraction_numerical': 0.02319160684704583, 'mean_word_length': 3.324582338902148, 'pattern_counts': {'":': 0, '<': 12, '<?xml version=': 0, '>': 12, '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': '3809861', 'n_tokens_mistral': 666, 'n_tokens_neox': 632, 'n_words': 174}