<commit_before>FROM hpess/chef:latest
MAINTAINER <NAME> <<EMAIL>>

# Install Mono
RUN yum -y install yum-utils && \
    rpm --import "http://keyserver.ubuntu.com/pks/lookup?op=get&search=0x3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF" && \
    yum-config-manager --add-repo http://download.mono-project.com/repo/centos/ && \
    yum -y install openssl openssl-devel mono mono-devel mediainfo libzen libmediainfo gettext gcc gcc-c++ make && \
    yum -y clean all

# Install a newer version of sqlite
RUN curl --silent -L http://www.sqlite.org/2014/sqlite-autoconf-3080500.tar.gz -o /tmp/sqlite-autoconf-3080500.tar.gz && \
    tar -zxf /tmp/sqlite-autoconf-*.tar.gz -C /tmp/ && \
    cd /tmp/sqlite-autoconf* && \
    ./configure --prefix=/opt/sqlite3.8.5 --disable-static CFLAGS="-Os -frecord-gcc-switches -DSQLITE_ENABLE_COLUMN_METADATA=1" && \
    make && \
    make install && \
    rm -rf /tmp/sqlite*

# Install sonarr
RUN curl --silent -L http://update.nzbdrone.com/v2/master/mono/NzbDrone.master.tar.gz -o /tmp/NzbDrone.master.tar.gz && \
    tar zxf /tmp/NzbDrone.master.tar.gz -C /opt/ && \
    rm -rf /tmp/NzbDrone* && \
    mv /opt/NzbDrone /opt/sonarr && \
    echo "PATH=/opt/sqlite3.8.5/bin:$PATH" > /etc/sysconfig/sonarr && \
    mkdir -p /home/docker/.config && \
    chown -R docker:docker /opt/sonarr

# Install pvk conversion tool
RUN mkdir -p /usr/local/src/pvk && \
    cd /usr/local/src/pvk && \
    wget --quiet http://www.drh-consultancy.demon.co.uk/pvksrc.tgz.bin && \
    tar -xzf pvksrc.tgz.bin && \
    make && \
    mv pvk /bin && \
    rm -rf /usr/local/src/pvk<commit_msg>Changed source for pvksrc<commit_after>FROM hpess/chef:latest
MAINTAINER <NAME> <<EMAIL>>

# Install Mono
RUN yum -y install yum-utils && \
    rpm --import "http://keyserver.ubuntu.com/pks/lookup?op=get&search=0x3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF" && \
    yum-config-manager --add-repo http://download.mono-project.com/repo/centos/ && \
    yum -y install openssl openssl-devel mono mono-devel mediainfo libzen libmediainfo gettext gcc gcc-c++ make && \
    yum -y clean all

# Install a newer version of sqlite
RUN curl --silent -L http://www.sqlite.org/2014/sqlite-autoconf-3080500.tar.gz -o /tmp/sqlite-autoconf-3080500.tar.gz && \
    tar -zxf /tmp/sqlite-autoconf-*.tar.gz -C /tmp/ && \
    cd /tmp/sqlite-autoconf* && \
    ./configure --prefix=/opt/sqlite3.8.5 --disable-static CFLAGS="-Os -frecord-gcc-switches -DSQLITE_ENABLE_COLUMN_METADATA=1" && \
    make && \
    make install && \
    rm -rf /tmp/sqlite*

# Install sonarr
RUN curl --silent -L http://update.nzbdrone.com/v2/master/mono/NzbDrone.master.tar.gz -o /tmp/NzbDrone.master.tar.gz && \
    tar zxf /tmp/NzbDrone.master.tar.gz -C /opt/ && \
    rm -rf /tmp/NzbDrone* && \
    mv /opt/NzbDrone /opt/sonarr && \
    echo "PATH=/opt/sqlite3.8.5/bin:$PATH" > /etc/sysconfig/sonarr && \
    mkdir -p /home/docker/.config && \
    chown -R docker:docker /opt/sonarr

# Install pvk conversion tool
RUN mkdir -p /usr/local/src/pvk && \
    cd /usr/local/src/pvk && \
    wget --quiet ftp://ftp.tw.freebsd.org/pub/FreeBSD/distfiles/pvksrc.tgz.bin && \
    tar -xzf pvksrc.tgz.bin && \
    make && \
    mv pvk /bin && \
    rm -rf /usr/local/src/pvk
{'fraction_non_alphanumeric': 0.1686335403726708, 'fraction_numerical': 0.031055900621118012, 'mean_word_length': 2.5988826815642456, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 11, 'https://': 0, 'lorem ipsum': 0, 'www.': 3, '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': '39738', 'n_tokens_mistral': 1398, 'n_tokens_neox': 1300, 'n_words': 244}