<commit_before>FROM ubuntu:trusty

RUN echo "Europe/London" | cat > /etc/timezone && dpkg-reconfigure --frontend noninteractive tzdata
RUN locale-gen "en_GB.UTF-8"
ENV LC_CTYPE=en_GB.UTF-8

RUN apt-get update && \
    apt-get install -y \
        software-properties-common python-software-properties \
        build-essential git python3-all python3-all-dev python3-setuptools \
        curl ntp python3-pip python-pip

RUN update-alternatives --install /usr/bin/python python /usr/bin/python3 10

WORKDIR /app

RUN pip3 install -U setuptools pip wheel

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

RUN touch /var/log/transaction-uploader.stdout
RUN touch /var/log/transaction-uploader.stderr

# wait until container is running to install crontab to ensure environment
# variables are available
CMD python3 /app/install_crontab.py && tail -f /var/log/transaction-uploader.stdout /var/log/transaction-uploader.stderr<commit_msg>Add cryptography dependency to Dockerfile<commit_after>FROM ubuntu:trusty

RUN echo "Europe/London" | cat > /etc/timezone && dpkg-reconfigure --frontend noninteractive tzdata
RUN locale-gen "en_GB.UTF-8"
ENV LC_CTYPE=en_GB.UTF-8

RUN apt-get update && \
    apt-get install -y \
        software-properties-common python-software-properties \
        build-essential git python3-all python3-all-dev python3-setuptools \
        curl ntp python3-pip python-pip libffi-dev libssl-dev

RUN update-alternatives --install /usr/bin/python python /usr/bin/python3 10

WORKDIR /app

RUN pip3 install -U setuptools pip wheel

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

RUN touch /var/log/transaction-uploader.stdout
RUN touch /var/log/transaction-uploader.stderr

# wait until container is running to install crontab to ensure environment
# variables are available
CMD python3 /app/install_crontab.py && tail -f /var/log/transaction-uploader.stdout /var/log/transaction-uploader.stderr
{'fraction_non_alphanumeric': 0.09232365145228216, 'fraction_numerical': 0.012448132780082987, 'mean_word_length': 3.7395577395577395, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '5538619', 'n_tokens_mistral': 619, 'n_tokens_neox': 591, 'n_words': 171}