<commit_before>FROM scratch

LABEL vendor="<NAME>"

ADD rootfs.tar.xz /
COPY resolv.conf /etc

RUN apt-get update && apt-get install -y \
    locales \
    vim \
    && \
    echo 'locales locales/default_environment_locale string fr_FR.UTF-8' | debconf-set-selections \
    && \
    ln -nsf /usr/share/zoneinfo/Europe/Paris /etc/localtime && \
    DEBIAN_FRONTEND=noninteractive dpkg-reconfigure tzdata \
    && \
    rm -rf /var/lib/apt/lists/*

CMD ["/bin/bash"]
<commit_msg>Fix locale generation and default locale<commit_after>FROM scratch

LABEL vendor="<NAME>"

ADD rootfs.tar.xz /
COPY resolv.conf /etc

RUN apt-get update && apt-get install -y \
    locales \
    vim && \
    \
    for locale in 'fr_FR.UTF-8 UTF-8'; do \
      sed -i -e "0,/^[# ]*$locale *$/ s/^[# ]*$locale *$/$locale/" /etc/locale.gen; \
    done && \
    locale-gen && \
    update-locale LANG=fr_FR.UTF-8 && \
    \
    ln -nsf /usr/share/zoneinfo/Europe/Paris /etc/localtime && \
    DEBIAN_FRONTEND=noninteractive dpkg-reconfigure tzdata && \
    \
    rm -rf /var/lib/apt/lists/*

CMD ["/bin/bash"]

{'fraction_non_alphanumeric': 0.16051660516605165, 'fraction_numerical': 0.004612546125461255, 'mean_word_length': 2.4012539184952977, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '3669788', 'n_tokens_mistral': 425, 'n_tokens_neox': 408, 'n_words': 88}