<commit_before>FROM ubuntu:18.04
LABEL maintainer="<NAME> <<EMAIL>>"

ENV LANG C.UTF-8

RUN apt-get update && apt-get install -y \
    wget \
    subversion \
    apache2-utils \
    python \
    nano \
    patch \
    # TracMasterTickets degraph support
    python-pydot python-pydot-ng graphviz \
    && apt-get clean

RUN wget https://bootstrap.pypa.io/get-pip.py \
    && python get-pip.py \
    && rm get-pip.py

RUN pip install -U setuptools
RUN easy_install -U pip
RUN pip install pillow
RUN pip install reportlab
RUN pip install html5lib
RUN pip install pisa

# For tracwikiprintplugin, previous python-pil and python-reportlab also needs for this.
RUN pip install xhtml2pdf
RUN pip install pypdf
# Latest version can't work with 0.12.x
RUN pip install pygments==1.6
RUN pip install pytz
RUN pip install docutils
RUN pip install babel

RUN pip install trac==0.12.7
RUN easy_install -Z -U https://trac-hacks.org/svn/tracwikiprintplugin/0.11
# Trac<1.0, avoid issue: No handler matched request to /login
RUN pip install TracAccountManager==0.4.4
RUN pip install TracPrivateTickets==2.3.0
RUN pip install TracMasterTickets==3.0.1
RUN easy_install -Z -U https://trac-hacks.org/svn/xmlrpcplugin/trunk
RUN easy_install -Z -U https://trac-hacks.org/svn/datefieldplugin/0.12/
RUN easy_install -Z -U https://trac-hacks.org/svn/discussionplugin/0.11/
RUN easy_install https://github.com/itota/trac-subtickets-plugin/zipball/master
# Latest version can't work with 0.12.x
RUN wget --no-check-certificate -O fullblogplugin.zip https://trac-hacks.org/browser/fullblogplugin/0.11\?rev=14774\&format=zip \
    && easy_install fullblogplugin.zip && rm fullblogplugin.zip
RUN easy_install -Z -U https://trac-hacks.org/svn/tracjsganttplugin/0.11/
RUN easy_install -Z -U https://trac-hacks.org/svn/virtualticketpermissionsplugin/trunk/
RUN easy_install -Z -U https://trac-hacks.org/svn/tracwysiwygplugin/0.12/
RUN easy_install -Z -U https://trac-hacks.org/svn/timingandestimationplugin/branches/trac0.12-Permissions/
RUN easy_install -Z -U https://trac-hacks.org/svn/ccselectorplugin/trunk/
RUN easy_install -Z -U https://trac-hacks.org/svn/svnauthzadminplugin/0.12/

ADD files/entrypoint.sh /usr/local/bin/

# Fix libraries
ADD files/patches /tmp/patches
RUN cd /tmp/patches && chmod +x *.sh && ./apply-patch.sh
RUN rm -rf /tmp/patches

RUN chmod a+x /usr/local/bin/*.sh

VOLUME /srv/trac
EXPOSE 80

ENTRYPOINT ["/usr/local/bin/entrypoint.sh"]
<commit_msg>Update wheel either<commit_after>FROM ubuntu:18.04
LABEL maintainer="<NAME> <<EMAIL>>"

ENV LANG C.UTF-8

RUN apt-get update && apt-get install -y \
    wget \
    subversion \
    apache2-utils \
    python \
    nano \
    patch \
    # TracMasterTickets degraph support
    python-pydot python-pydot-ng graphviz \
    && apt-get clean

RUN wget https://bootstrap.pypa.io/get-pip.py \
    && python get-pip.py \
    && rm get-pip.py

RUN pip install -U setuptools
RUN easy_install -U pip
RUN pip install -U wheel
RUN pip install virtualenv
RUN pip install pillow
RUN pip install reportlab
RUN pip install html5lib
RUN pip install pisa

# For tracwikiprintplugin, previous python-pil and python-reportlab also needs for this.
RUN pip install xhtml2pdf
RUN pip install pypdf
# Latest version can't work with 0.12.x
RUN pip install pygments==1.6
RUN pip install pytz
RUN pip install docutils
RUN pip install babel

RUN pip install trac==0.12.7
RUN easy_install -Z -U https://trac-hacks.org/svn/tracwikiprintplugin/0.11
# Trac<1.0, avoid issue: No handler matched request to /login
RUN pip install TracAccountManager==0.4.4
RUN pip install TracPrivateTickets==2.3.0
RUN pip install TracMasterTickets==3.0.1
RUN easy_install -Z -U https://trac-hacks.org/svn/xmlrpcplugin/trunk
RUN easy_install -Z -U https://trac-hacks.org/svn/datefieldplugin/0.12/
RUN easy_install -Z -U https://trac-hacks.org/svn/discussionplugin/0.11/
RUN easy_install https://github.com/itota/trac-subtickets-plugin/zipball/master
# Latest version can't work with 0.12.x
RUN wget --no-check-certificate -O fullblogplugin.zip https://trac-hacks.org/browser/fullblogplugin/0.11\?rev=14774\&format=zip \
    && easy_install fullblogplugin.zip && rm fullblogplugin.zip
RUN easy_install -Z -U https://trac-hacks.org/svn/tracjsganttplugin/0.11/
RUN easy_install -Z -U https://trac-hacks.org/svn/virtualticketpermissionsplugin/trunk/
RUN easy_install -Z -U https://trac-hacks.org/svn/tracwysiwygplugin/0.12/
RUN easy_install -Z -U https://trac-hacks.org/svn/timingandestimationplugin/branches/trac0.12-Permissions/
RUN easy_install -Z -U https://trac-hacks.org/svn/ccselectorplugin/trunk/
RUN easy_install -Z -U https://trac-hacks.org/svn/svnauthzadminplugin/0.12/

ADD files/entrypoint.sh /usr/local/bin/

# Fix libraries
ADD files/patches /tmp/patches
RUN cd /tmp/patches && chmod +x *.sh && ./apply-patch.sh
RUN rm -rf /tmp/patches

RUN chmod a+x /usr/local/bin/*.sh

VOLUME /srv/trac
EXPOSE 80

ENTRYPOINT ["/usr/local/bin/entrypoint.sh"]

{'fraction_non_alphanumeric': 0.11898989898989899, 'fraction_numerical': 0.025050505050505052, 'mean_word_length': 3.6575729068673564, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 9, 'https://': 26, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, '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': '1481922', 'n_tokens_mistral': 1884, 'n_tokens_neox': 1819, 'n_words': 457}