<commit_before># Dockerfile for OpenSubmit executor installation

FROM ubuntu

# Prepare Apache environment
RUN apt-get update \
    && apt-get install -y locales python3 python3-pip cron gcc make autoconf curl \
    && rm -rf /var/lib/apt/lists/* \
    && localedef -i en_US -c -f UTF-8 -A /usr/share/locale/locale.alias en_US.UTF-8
ENV LANG en_US.utf8

# Install dependencies explicitely for Docker caching
RUN mkdir /install
COPY requirements.txt /install
RUN pip3 install -r /install/requirements.txt

# Install existing wheel of OpenSubmit executor
# Call "make" if this step fails due to missing .whl files
COPY dist/*.whl /install
RUN pip3 install /install/*.whl

# Enable django-admin in interactive mode when running
ENV PYTHONUNBUFFERED 1

RUN touch /var/log/cron.log
# Redirect output directly into Docker stdout / stderr
RUN echo "* * * * * /usr/local/bin/opensubmit-exec run > /proc/1/fd/1 2>/proc/1/fd/2\n" | crontab

COPY ./docker/docker-entry.sh /docker-entry.sh
ENTRYPOINT ["/docker-entry.sh"]<commit_msg>Java support in executor images<commit_after># Dockerfile for OpenSubmit executor installation

FROM ubuntu

# Prepare Apache environment
RUN apt-get update \
    && apt-get install -y locales python3 python3-pip cron gcc make autoconf curl default-jdk \
    && rm -rf /var/lib/apt/lists/* \
    && localedef -i en_US -c -f UTF-8 -A /usr/share/locale/locale.alias en_US.UTF-8
ENV LANG en_US.utf8

# Install dependencies explicitely for Docker caching
RUN mkdir /install
COPY requirements.txt /install
RUN pip3 install -r /install/requirements.txt

# Install existing wheel of OpenSubmit executor
# Call "make" if this step fails due to missing .whl files
COPY dist/*.whl /install
RUN pip3 install /install/*.whl

# Enable django-admin in interactive mode when running
ENV PYTHONUNBUFFERED 1

RUN touch /var/log/cron.log
# Redirect output directly into Docker stdout / stderr
RUN echo "* * * * * /usr/local/bin/opensubmit-exec run > /proc/1/fd/1 2>/proc/1/fd/2\n" | crontab

COPY ./docker/docker-entry.sh /docker-entry.sh
ENTRYPOINT ["/docker-entry.sh"]
{'fraction_non_alphanumeric': 0.10270009643201543, 'fraction_numerical': 0.01253616200578592, 'mean_word_length': 3.600886917960089, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, 'https://': 0, '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': '4696576', 'n_tokens_mistral': 708, 'n_tokens_neox': 667, 'n_words': 230}