<commit_before>FROM ubuntu:14.04

RUN apt-get update

RUN apt-get install -y python3-pip python3-dev python3-setuptools nginx supervisor sqlite3

ADD requirements.txt /
RUN pip3 install -r /requirements.txt

ADD pipeline_nanny /pipeline_nanny

RUN python3 /pipeline_nanny/manage.py syncdb --noinput

EXPOSE 8000

CMD ["python3", "/pipeline_nanny/manage.py", "runserver", "0.0.0.0:8000"]

# sudo docker build -t pnan . && sudo docker run -p 127.0.0.1:8000:8000 pnan<commit_msg>added a dockerfile command for running tests<commit_after>FROM ubuntu:14.04

RUN apt-get update

RUN apt-get install -y python3-pip python3-dev python3-setuptools nginx supervisor sqlite3

ADD requirements.txt /
RUN pip3 install -r /requirements.txt

ADD pipeline_nanny /pipeline_nanny

RUN python3 /pipeline_nanny/manage.py syncdb --noinput

EXPOSE 8000

CMD ["python3", "/pipeline_nanny/manage.py", "test", "--verbosity=2", "taskmaster"]
#CMD ["python3", "/pipeline_nanny/manage.py", "runserver", "0.0.0.0:8000"]

# sudo docker build -t pnan . && sudo docker run -p 127.0.0.1:8000:8000 pnan
{'fraction_non_alphanumeric': 0.12078651685393259, 'fraction_numerical': 0.07116104868913857, 'mean_word_length': 4.454081632653061, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 4, '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': '6105776', 'n_tokens_mistral': 432, 'n_tokens_neox': 378, 'n_words': 107}