<commit_before>FROM python:3.7-alpine

# set environment varibles
ENV PYTHONDONTWRITEBYTECODE 1
ENV PYTHONUNBUFFERED 1

# set work directory
WORKDIR /usr/src/app

RUN apk add --no-cache \
            # Pillow deps
            jpeg-dev zlib-dev \
            # Psycopg2 deps
            postgresql-dev \
            openssl-dev libffi-dev

COPY ./Pipfile /usr/src/app/Pipfile
COPY ./Pipfile.lock /usr/src/app/Pipfile.lock

RUN apk add --no-cache --virtual .build-deps build-base linux-headers git && \
                       pip install --upgrade pip && \
                       pip install pipenv && \
                       pip install psycopg2 && \
                       pipenv install --system --dev && \
                       apk del .build-deps

COPY . /usr/src/app/

ARG CI_COMMIT_SHORT_SHA

ENV COMMIT_SHA=${CI_COMMIT_SHORT_SHA}

ENTRYPOINT ["/usr/src/app/entrypoint.sh"]<commit_msg>Add netcat<commit_after>FROM python:3.7-stretch

RUN apt update && apt install -y netcat

# set environment varibles
ENV PYTHONDONTWRITEBYTECODE 1
ENV PYTHONUNBUFFERED 1

# set work directory
WORKDIR /usr/src/app

COPY ./Pipfile /usr/src/app/Pipfile
COPY ./Pipfile.lock /usr/src/app/Pipfile.lock

RUN pip install --upgrade pip && \
    pip install pipenv && \
    pip install psycopg2 && \
    pipenv install --system --dev

COPY . /usr/src/app/

ARG CI_COMMIT_SHORT_SHA

ENV COMMIT_SHA=${CI_COMMIT_SHORT_SHA}

ENTRYPOINT ["/usr/src/app/entrypoint.sh"]
{'fraction_non_alphanumeric': 0.10318559556786704, 'fraction_numerical': 0.007617728531855956, 'mean_word_length': 2.1758241758241756, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '439617', 'n_tokens_mistral': 517, 'n_tokens_neox': 492, 'n_words': 121}