<commit_before>FROM ubuntu:xenial
RUN apt-get update -qq \
    && apt-get install -qq software-properties-common \
    && add-apt-repository -y ppa:yubico/stable \
    && add-apt-repository -y ppa:beineri/opt-qt-5.12.3-xenial \
    && apt-get -qq update \
    && apt-get -qq upgrade
RUN apt-get install -y git make build-essential libssl-dev zlib1g-dev libbz2-dev \
    devscripts equivs python3-dev python3-pip python3-venv wget fuse \
    qt512base qt512declarative qt512xmlpatterns qt512script qt512tools qt512multimedia \
    qt512svg qt512graphicaleffects qt512imageformats qt512translations qt512quickcontrols \
    qt512sensors qt512serialbus qt512serialport qt512x11extras qt512quickcontrols2 \
    qt512connectivity qt512scxml qt512wayland qt512remoteobjects qtbase5-dev \
    desktop-file-utils libglib2.0-bin qtchooser python3-pip python mesa-common-dev curl swig \
    libpcsclite-dev libffi-dev libykpers-1-1
ENV QT_BASE_DIR=/opt/qt512 \
    QT_DIR=/opt/qt512 \
    QT_BASE_DIR=/opt/qt512 \
    PYTHON_CFLAGS=-fPIC \
    PYTHON_CONFIGURE_OPTS=--enable-shared
ENV LD_LIBRARY_PATH=$QT_BASE_DIR/lib/x86_64-linux-gnu:$QT_BASE_DIR/lib:$LD_LIBRARY_PATH \
    PKG_CONFIG_PATH=$QT_BASE_DIR/lib/pkgconfig:$PKG_CONFIG_PATH \
    PATH=/root/.pyenv/bin:$QT_BASE_DIR/bin:$PATH
RUN curl -L https://github.com/pyenv/pyenv-installer/raw/master/bin/pyenv-installer | bash \
    && eval "$(pyenv init -)" \
    && pyenv update \
    && pyenv install --force 3.7.4 \
    && pyenv global 3.7.4 \
    && wget https://github.com/thp/pyotherside/archive/1.5.8.tar.gz \
    && tar -xzvf 1.5.8.tar.gz \
    && echo "DEFINES += QT_NO_DEBUG_OUTPUT" >> pyotherside-1.5.8/src/src.pro \
    && cd pyotherside-1.5.8/src \
    && qmake \
    && make \
    && make install
COPY . yubikey-manager-qt
RUN mkdir -p yubikey-manager-qt/appDir/usr \
    && eval "$(pyenv init -)" \
    && pyenv global 3.7.4 \
    && cd yubikey-manager-qt \
    && pip3 install --upgrade pip \
    && pip3 install -r requirements.txt \
    && cp -R /root/.pyenv/versions/3.7.4/* appDir/usr \
    && apt-get download libykpers-1-1 \
    && dpkg -x libykpers*.deb appDir/ \<commit_msg>Actions: linux, bumped pyotherside and python<commit_after>FROM ubuntu:xenial
RUN apt-get update -qq \
    && apt-get install -qq software-properties-common \
    && add-apt-repository -y ppa:yubico/stable \
    && add-apt-repository -y ppa:beineri/opt-qt-5.12.3-xenial \
    && apt-get -qq update \
    && apt-get -qq upgrade
RUN apt-get install -y git make build-essential libssl-dev zlib1g-dev libbz2-dev \
    devscripts equivs python3-dev python3-pip python3-venv wget fuse \
    qt512base qt512declarative qt512xmlpatterns qt512script qt512tools qt512multimedia \
    qt512svg qt512graphicaleffects qt512imageformats qt512translations qt512quickcontrols \
    qt512sensors qt512serialbus qt512serialport qt512x11extras qt512quickcontrols2 \
    qt512connectivity qt512scxml qt512wayland qt512remoteobjects qtbase5-dev \
    desktop-file-utils libglib2.0-bin qtchooser python3-pip python mesa-common-dev curl swig \
    libpcsclite-dev libffi-dev libykpers-1-1
ENV QT_BASE_DIR=/opt/qt512 \
    QT_DIR=/opt/qt512 \
    QT_BASE_DIR=/opt/qt512 \
    PYTHON_CFLAGS=-fPIC \
    PYTHON_CONFIGURE_OPTS=--enable-shared
ENV LD_LIBRARY_PATH=$QT_BASE_DIR/lib/x86_64-linux-gnu:$QT_BASE_DIR/lib:$LD_LIBRARY_PATH \
    PKG_CONFIG_PATH=$QT_BASE_DIR/lib/pkgconfig:$PKG_CONFIG_PATH \
    PATH=/root/.pyenv/bin:$QT_BASE_DIR/bin:$PATH
RUN curl -L https://github.com/pyenv/pyenv-installer/raw/master/bin/pyenv-installer | bash \
    && eval "$(pyenv init -)" \
    && pyenv update \
    && pyenv install --force 3.8.1 \
    && pyenv global 3.8.1 \
    && wget https://github.com/thp/pyotherside/archive/1.5.9.tar.gz \
    && tar -xzvf 1.5.9.tar.gz \
    && echo "DEFINES += QT_NO_DEBUG_OUTPUT" >> pyotherside-1.5.9/src/src.pro \
    && cd pyotherside-1.5.9/src \
    && qmake \
    && make \
    && make install
COPY . yubikey-manager-qt
RUN mkdir -p yubikey-manager-qt/appDir/usr \
    && eval "$(pyenv init -)" \
    && pyenv global 3.8.1 \
    && cd yubikey-manager-qt \
    && pip3 install --upgrade pip \
    && pip3 install -r requirements.txt \
    && cp -R /root/.pyenv/versions/3.8.1/* appDir/usr \
    && apt-get download libykpers-1-1 \
    && dpkg -x libykpers*.deb appDir/ \
{'fraction_non_alphanumeric': 0.12894248608534323, 'fraction_numerical': 0.05519480519480519, 'mean_word_length': 2.9496336996337, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 4}, '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': '5504630', 'n_tokens_mistral': 1848, 'n_tokens_neox': 1647, 'n_words': 297}