<commit_before>FROM ubuntu:xenial

# Fetch some additional build requirements
RUN DEBIAN_FRONTEND=noninteractive \
    apt-get -y update && \
    apt-get install -y --no-install-recommends \
      software-properties-common \
      devscripts \
      adduser \
      build-essential \
      fakeroot 

# Use the published kolibri-proposed PPA
RUN DEBIAN_FRONTEND=noninteractive \
    apt-key adv --keyserver keyserver.ubuntu.com --recv-keys AD405B4A && \
    add-apt-repository -y -u -s ppa:learningequality/kolibri-proposed && \
    apt-get -y build-dep kolibri

RUN adduser --system --shell /bin/bash --home "/kolibribuild" kolibribuild && \
    cd /kolibribuild && \
    su kolibribuild -c "apt-get -y source kolibri"

# Build an unsigned package

VOLUME /kolibridist/

CMD cd /kolibribuild && \
    DEB_VERSION=`echo -n "$KOLIBRI_VERSION" | sed -s 's/\([abc]\|.dev\)/\~\0/g'` && \
    cd kolibri-source* && \
    uupdate --no-symlink -v "$DEB_VERSION" /kolibridist/kolibri-$KOLIBRI_VERSION.tar.gz && \
    cd "../kolibri-source-$DEB_VERSION" && \
    debuild --no-lintian -us -uc && \
    cd .. && \
    cp *.deb /kolibridist/<commit_msg>Add a pattern to ensure that the Debian version on adds ~ after a,b,c or .dev<commit_after>FROM ubuntu:xenial

# Fetch some additional build requirements
RUN DEBIAN_FRONTEND=noninteractive \
    apt-get -y update && \
    apt-get install -y --no-install-recommends \
      software-properties-common \
      devscripts \
      adduser \
      build-essential \
      fakeroot 

# Use the published kolibri-proposed PPA
RUN DEBIAN_FRONTEND=noninteractive \
    apt-key adv --keyserver keyserver.ubuntu.com --recv-keys AD405B4A && \
    add-apt-repository -y -u -s ppa:learningequality/kolibri-proposed && \
    apt-get -y build-dep kolibri

RUN adduser --system --shell /bin/bash --home "/kolibribuild" kolibribuild && \
    cd /kolibribuild && \
    su kolibribuild -c "apt-get -y source kolibri"

# Build an unsigned package

VOLUME /kolibridist/

CMD cd /kolibribuild && \
    DEB_VERSION=`echo -n "$KOLIBRI_VERSION" | sed -s 's/^\+\.\+\.\+\([abc]\|\.dev\)/\~\0/g'` && \
    cd kolibri-source* && \
    uupdate --no-symlink -v "$DEB_VERSION" /kolibridist/kolibri-$KOLIBRI_VERSION.tar.gz && \
    cd "../kolibri-source-$DEB_VERSION" && \
    debuild --no-lintian -us -uc && \
    cd .. && \
    cp *.deb /kolibridist/
{'fraction_non_alphanumeric': 0.14491525423728813, 'fraction_numerical': 0.00423728813559322, 'mean_word_length': 2.5397301349325336, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, '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': '4873181', 'n_tokens_mistral': 882, 'n_tokens_neox': 872, 'n_words': 197}