<commit_before>FROM debian:jessie-slim

# install python + pip
RUN apt-get update && \
    apt-get install -y python3 curl && \
    curl --fail 'https://bootstrap.pypa.io/get-pip.py' | python3 && \
    apt-get purge --auto-remove -y curl && \
    rm -rf /var/lib/apt/lists/*

# install python-systemd
ENV BUILD_DEPS="python3-dev pkg-config gcc git libsystemd-journal-dev" \
    VERSION="233"
RUN apt-get update && \
    apt-get install -y $BUILD_DEPS && \
    pip3 install "git+https://github.com/systemd/python-systemd.git/@v$VERSION#egg=systemd" && \
    apt-get purge --auto-remove -y $BUILD_DEPS && \
    rm -rf /var/lib/apt/lists/*

# install boto3
RUN pip3 install boto3

COPY main.py /main.py
ENTRYPOINT ["python3", "/main.py"]<commit_msg>Dockerfile: single RUN for install<commit_after>FROM debian:jessie-slim

# Install Python, pip, boto3 and python-systemd.
RUN BUILD_DEPS="curl python3-dev pkg-config gcc git libsystemd-journal-dev" \
    VERSION="233"; \
    apt-get update && \
    apt-get install -y python3 $BUILD_DEPS && \
    curl --fail 'https://bootstrap.pypa.io/get-pip.py' | python3 && \
    pip3 install --no-cache-dir boto3 "git+https://github.com/systemd/python-systemd.git/@v$VERSION#egg=systemd" && \
    apt-get purge --auto-remove -y $BUILD_DEPS && \
    pip3 uninstall --yes pip && \
    rm -rf /var/lib/apt/lists/*

COPY main.py /main.py
ENTRYPOINT ["python3", "/main.py"]
{'fraction_non_alphanumeric': 0.15977175463623394, 'fraction_numerical': 0.015691868758915834, 'mean_word_length': 2.9971509971509973, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, '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': '5338286', 'n_tokens_mistral': 532, 'n_tokens_neox': 506, 'n_words': 117}