<commit_before>FROM debian:stable
MAINTAINER <NAME> <<EMAIL>>

RUN echo "deb http://cloudfront.debian.net/debian/ stable main" >/etc/apt/sources.list

ENV DEBIAN_FRONTEND noninteractive
RUN apt-get clean && apt-get update -y && apt-get dist-upgrade -y && \
    apt-get install -y python3 python3-pip && \
    apt-get autoremove --purge -y && apt-get clean

ENV DJANGO_PIP_VERSION 'Django>=1.9,<1.10'
RUN pip3 install $DJANGO_PIP_VERSION

VOLUME ["/opt/tsadm/webapp"]
WORKDIR /opt/tsadm/webapp

EXPOSE 8000
CMD ["python3", "manage.py", "runserver", "0.0.0.0:8000"]
<commit_msg>use debian testing packages for ansible and django<commit_after>FROM debian:stable
MAINTAINER <NAME> <<EMAIL>>

COPY apt.sources /etc/apt/sources.list
COPY apt.preferences /etc/apt/preferences

ENV DEBIAN_FRONTEND noninteractive
RUN apt-get clean && apt-get update -y && apt-get dist-upgrade -y

COPY apt.preferences-django /etc/apt/preferences.d/django
COPY apt.preferences-ansible /etc/apt/preferences.d/ansible

RUN apt-get clean && apt-get update -y \
    && apt-get install -y --no-install-recommends python3 \
        python3-django \
        ansible \
    && apt-get autoremove --purge -y && apt-get clean

VOLUME ["/opt/tsadm/webapp"]
WORKDIR /opt/tsadm/webapp

ENV TSADM_LOG warning
EXPOSE 8000
CMD ["python3", "manage.py", "runserver", "0.0.0.0:8000"]

{'fraction_non_alphanumeric': 0.1382660687593423, 'fraction_numerical': 0.026905829596412557, 'mean_word_length': 3.7992831541218637, 'pattern_counts': {'":': 0, '<': 10, '<?xml version=': 0, '>': 11, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, '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': '4856522', 'n_tokens_mistral': 524, 'n_tokens_neox': 485, 'n_words': 122}