<commit_before>FROM alpine:3.3
MAINTAINER <NAME> <<EMAIL>>

# http://bugs.python.org/issue19846
# > At the moment, setting "LANG=C" on a Linux system *fundamentally breaks Python 3*, and that's not OK.
ENV LANG C.UTF-8

# PyPy runtime dependencies
RUN apk add --no-cache \
        libbz2 \
        expat \
        libffi \
        ncurses-libs

ENV PYPY_VERSION="5.1.1" \
    PYPY_SHA256="d6e1ceb2eb715ff73ee1f601cc4ae1264b451d67521ab6c6a6ebe02cc33d24d1"
# if this is called "PIP_VERSION", pip explodes with "ValueError: invalid truth value '<VERSION>'"
ENV PYTHON_PIP_VERSION 8.1.2

RUN set -x \
    && apk add --no-cache curl \
    && PYPY_FILE="pypy-${PYPY_VERSION}-linux64"
    && curl -SLO "https://github.com/JayH5/alpine-pypy/releases/$PYPY_VERSION/$PYPY_FILE.tar.bz2" \
    && echo "$PYPY_SHA256  $PYPY_FILE.tar.bz2" | sha256sum -c - \
    && tar -xjf "$PYPY_FILE.tar.bz2" \
    && mv "$PYPY_FILE/*" /usr/local
    && rm -r "$PYPY_FILE.tar.bz2" "$PYPY_FILE"
    && curl -SL 'https://bootstrap.pypa.io/get-pip.py' | pypy \
    && pip install --upgrade pip==$PYTHON_PIP_VERSION \
    && apk del curl

CMD ["pypy"]<commit_msg>Fix github releases download URL<commit_after>FROM alpine:3.3
MAINTAINER <NAME> <<EMAIL>>

# http://bugs.python.org/issue19846
# > At the moment, setting "LANG=C" on a Linux system *fundamentally breaks Python 3*, and that's not OK.
ENV LANG C.UTF-8

# PyPy runtime dependencies
RUN apk add --no-cache \
        libbz2 \
        expat \
        libffi \
        ncurses-libs

ENV PYPY_VERSION="5.1.1" \
    PYPY_SHA256="d6e1ceb2eb715ff73ee1f601cc4ae1264b451d67521ab6c6a6ebe02cc33d24d1"
# if this is called "PIP_VERSION", pip explodes with "ValueError: invalid truth value '<VERSION>'"
ENV PYTHON_PIP_VERSION 8.1.2

RUN set -x \
    && apk add --no-cache curl \
    && PYPY_FILE="pypy-${PYPY_VERSION}-linux64"
    && curl -SLO "https://github.com/JayH5/alpine-pypy/releases/download/$PYPY_VERSION/$PYPY_FILE.tar.bz2" \
    && echo "$PYPY_SHA256  $PYPY_FILE.tar.bz2" | sha256sum -c - \
    && tar -xjf "$PYPY_FILE.tar.bz2" \
    && mv "$PYPY_FILE/*" /usr/local
    && rm -r "$PYPY_FILE.tar.bz2" "$PYPY_FILE"
    && curl -SL 'https://bootstrap.pypa.io/get-pip.py' | pypy \
    && pip install --upgrade pip==$PYTHON_PIP_VERSION \
    && apk del curl

CMD ["pypy"]
{'fraction_non_alphanumeric': 0.14890829694323143, 'fraction_numerical': 0.05851528384279476, 'mean_word_length': 3.1057347670250897, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 13, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1107893', 'n_tokens_mistral': 1024, 'n_tokens_neox': 954, 'n_words': 193}