<commit_before>FROM python:3.5

ENV PYTHONUNBUFFERED 1
ENV DJANGO_SETTINGS_MODULE ofm_helper.settings.prod
ENV OFM_USERNAME admin
ENV OFM_PASSWORD <PASSWORD>
ENV EMAIL <EMAIL>

RUN mkdir /code
WORKDIR /code

COPY requirements.txt /code
#COPY prod_requirements.txt /code
RUN pip3 install -r requirements.txt
#RUN pip3 install -r prod_requirements.txt

VOLUME /code/database

ADD . /code/
RUN python3 manage.py migrate
RUN python3 manage.py collectstatic --no-input

RUN cp /code/core/config/test.cfg /code/core/config/prod.cfg

expose 8000
CMD /code/runserver.sh -u $OFM_USERNAME -p OFM_PASSWORD -m $EMAIL
<commit_msg>create folder before using it<commit_after>FROM python:3.5

ENV PYTHONUNBUFFERED 1
ENV DJANGO_SETTINGS_MODULE ofm_helper.settings.prod
ENV OFM_USERNAME admin
ENV OFM_PASSWORD <PASSWORD>
ENV EMAIL <EMAIL>

RUN mkdir /code
WORKDIR /code

COPY requirements.txt /code
#COPY prod_requirements.txt /code
RUN pip3 install -r requirements.txt
#RUN pip3 install -r prod_requirements.txt

RUN mkdir database
VOLUME /code/database

ADD . /code/
RUN python3 manage.py migrate
RUN python3 manage.py collectstatic --no-input

RUN cp /code/core/config/test.cfg /code/core/config/prod.cfg

expose 8000
CMD /code/runserver.sh -u $OFM_USERNAME -p OFM_PASSWORD -m $EMAIL

{'fraction_non_alphanumeric': 0.08037825059101655, 'fraction_numerical': 0.017336485421591805, 'mean_word_length': 4.474137931034483, 'pattern_counts': {'":': 0, '<': 7, '<?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': '6023084', 'n_tokens_mistral': 468, 'n_tokens_neox': 455, 'n_words': 137}