<commit_before>#!/bin/sh

echo "`date +"%F %X"` Building Perl dependencies and system set-up ..."

apk update \
    && apk add --no-cache perl perl-libwww perl-dbi perl-dbd-sqlite imagemagick6-dev perl-net-ssleay \
    && apk add --no-cache --virtual .build-deps \
                                    curl make perl-dev libc-dev gcc bash tzdata \
    && curl -L https://cpanmin.us | perl - App::cpanminus --no-wget \
    && cpanm --no-wget File::Pid \
                       Net::Twitter::Lite \
                       Net::OAuth \
    && cpanm --no-wget Image::Magick --force \
    && cp /usr/share/zoneinfo/Europe/Paris /etc/localtime \
    && apk del .build-deps \
    && rm -rf /root/.cpanm

echo "`date +"%F %X"` Build done ..."

echo "`date +"%F %X"` Loading Perl scripts ..."
mkdir /code && cd /code
wget https://github.com/lordslair/ra_bot/archive/master.zip -O /tmp/ra_bot.zip &&
unzip  /tmp/ra_bot.zip -d /tmp/ &&
cp -a  /tmp/ra_bot-master/code/* /code/ &&
rm -rf /tmp/ra_bot-master /tmp/ra_bot.zip
echo "`date +"%F %X"` Loading done ..."

exec /code/ra-completion<commit_msg>Updated entrypoint<commit_after>#!/bin/sh

echo "`date +"%F %X"` Building Perl dependencies and system set-up ..."

apk update \
    && apk add --no-cache perl perl-libwww perl-dbi perl-dbd-sqlite imagemagick6-dev perl-net-ssleay \
    && apk add --no-cache --virtual .build-deps \
                                    curl make perl-dev libc-dev gcc bash tzdata \
    && curl -L https://cpanmin.us | perl - App::cpanminus --no-wget \
    && cpanm --no-wget File::Pid \
                       Net::Twitter::Lite \
                       Net::OAuth \
    && cpanm --no-wget Image::Magick --force \
    && cp /usr/share/zoneinfo/Europe/Paris /etc/localtime \
    && apk del .build-deps \
    && rm -rf /root/.cpanm

echo "`date +"%F %X"` Build done ..."

echo "`date +"%F %X"` Loading Perl scripts ..."
mkdir  /code && cd /code &&
wget   https://github.com/lordslair/ra_bot/archive/master.zip -O /tmp/ra_bot.zip &&
unzip  /tmp/ra_bot.zip -d /tmp/ &&
cp -a  /tmp/ra_bot-master/code/* /code/ &&
rm -rf /tmp/ra_bot-master /tmp/ra_bot.zip &&
mkdir  /code/db &&
echo "`date +"%F %X"` Loading done ..."

exec /code/ra-completion
{'fraction_non_alphanumeric': 0.17868480725623584, 'fraction_numerical': 0.0009070294784580499, 'mean_word_length': 2.009549795361528, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6769773', 'n_tokens_mistral': 848, 'n_tokens_neox': 806, 'n_words': 200}