<commit_before>FROM python:2.7
WORKDIR /usr/src/app
RUN curl -sL https://deb.nodesource.com/setup_6.x | bash - && \
    apt-get -y install nodejs
RUN git clone --depth=1 https://github.com/kcsry/infotv && \
    rm -rf infotv/.git && \
    cd infotv && \
    npm install && \
    INFOTV_STYLE=tracon NODE_ENV=production node_modules/.bin/gulp build && \
    rm -rf node_modules && \
    mkdir /usr/src/app/infotv-tracon && \
    groupadd -r infotv && useradd -r -g infotv infotv
WORKDIR /usr/src/app/infotv-tracon
COPY requirements.txt requirements-production.txt /usr/src/app/infotv-tracon/
RUN pip install --no-cache-dir -r requirements.txt -r requirements-production.txt -e ../infotv
COPY . /usr/src/app/infotv-tracon
RUN env DEBUG=1 python manage.py collectstatic --noinput && \
    python -m compileall -q .
USER infotv
EXPOSE 8000
CMD ["python", "manage.py", "runserver", "0.0.0.0:8000"]<commit_msg>Dockerfile: fix frontend project location<commit_after>FROM python:2.7
WORKDIR /usr/src/app
RUN curl -sL https://deb.nodesource.com/setup_6.x | bash - && \
    apt-get -y install nodejs
RUN git clone --depth=1 https://github.com/kcsry/infotv && \
    rm -rf infotv/.git && \
    cd infotv/infotv/frontend && \
    npm install && \
    INFOTV_STYLE=tracon NODE_ENV=production node_modules/.bin/gulp build && \
    rm -rf node_modules && \
    mkdir /usr/src/app/infotv-tracon && \
    groupadd -r infotv && useradd -r -g infotv infotv
WORKDIR /usr/src/app/infotv-tracon
COPY requirements.txt requirements-production.txt /usr/src/app/infotv-tracon/
RUN pip install --no-cache-dir -r requirements.txt -r requirements-production.txt -e ../infotv
COPY . /usr/src/app/infotv-tracon
RUN env DEBUG=1 python manage.py collectstatic --noinput && \
    python -m compileall -q .
USER infotv
EXPOSE 8000
CMD ["python", "manage.py", "runserver", "0.0.0.0:8000"]
{'fraction_non_alphanumeric': 0.14524838012958963, 'fraction_numerical': 0.0183585313174946, 'mean_word_length': 3.037037037037037, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, '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': '4344980', 'n_tokens_mistral': 710, 'n_tokens_neox': 675, 'n_words': 163}