<commit_before>FROM python:2.7
RUN apt-get update && apt-get install -y swig
RUN apt-get install -y --no-install-recommends \
  git-core \
  python \
  python-dev \
  "$virtualenv" \
  gcc \
  swig \
  dialog \
  libaugeas0 \
  libssl-dev \
  libffi-dev \
  ca-certificates \
  dpkg-dev
ENV PYTHONUNBUFFERED 1
RUN mkdir /code
WORKDIR /code
ADD requirements.txt /code/
RUN pip install -r requirements.txt
ADD . /code/
<commit_msg>docker-compose: Serve using docker compose<commit_after>FROM python:2.7
RUN apt-get update
RUN apt-get install -y --no-install-recommends \
  swig \
  libssl-dev \
  dpkg-dev
RUN pip install uwsgi
ENV PYTHONUNBUFFERED 1
# apparently a bug in the debian package
RUN ln -s /usr/lib/python2.7/plat-*/_sysconfigdata_nd.py /usr/lib/python2.7/
RUN mkdir /code
WORKDIR /code
ADD requirements.txt /code/
RUN pip install -r requirements.txt
ADD . /code/
EXPOSE 3031
CMD uwsgi --socket 0.0.0.0:3031 --chdir /code --plugin python --wsgi-file lacriproject/wsgi.py --master --processes 4 --threads 2 --logto /log/log

{'fraction_non_alphanumeric': 0.11423039690222653, 'fraction_numerical': 0.02420135527589545, 'mean_word_length': 2.90188679245283, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 1, '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': '5763553', 'n_tokens_mistral': 402, 'n_tokens_neox': 383, 'n_words': 114}