<commit_before>FROM python:2.7

MAINTAINER <NAME> <<EMAIL>>
WORKDIR /phovea
RUN printf "from phovea_server import launch\nlaunch.run()\n" > ./launch.py

RUN apt-get update

# install dependencies last step such that everything before can be cached
COPY requirements*.txt docker_packages.txt ./
RUN (!(test -f docker_packages.txt) || (cat docker_packages.txt | xargs apt-get install -y)) && pip install --no-cache-dir -r requirements.txt

COPY ./build/source ./

ENV PHOVEA_ENV=production
ENV PHOVEA_SERVICE=api
CMD python launch.py --env ${PHOVEA_ENV} ${PHOVEA_SERVICE}
EXPOSE 80<commit_msg>another launch fix<commit_after>FROM python:2.7

MAINTAINER <NAME> <<EMAIL>>
WORKDIR /phovea
RUN printf "from phovea_server import launch\nlaunch.run()\n" > /phovea/launch.py

RUN apt-get update

# install dependencies last step such that everything before can be cached
COPY requirements*.txt docker_packages.txt ./
RUN (!(test -f docker_packages.txt) || (cat docker_packages.txt | xargs apt-get install -y)) && pip install --no-cache-dir -r requirements.txt

COPY ./build/source ./

ENV PHOVEA_ENV=production
ENV PHOVEA_SERVICE=api
CMD python launch.py --env ${PHOVEA_ENV} ${PHOVEA_SERVICE}
EXPOSE 80
{'fraction_non_alphanumeric': 0.11567476948868399, 'fraction_numerical': 0.006705783738474434, 'mean_word_length': 4.712918660287081, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 11, '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': '5677128', 'n_tokens_mistral': 412, 'n_tokens_neox': 386, 'n_words': 121}