<commit_before>#!/dgr/bin/busybox sh
set -e
. /dgr/bin/functions.sh
isLevelEnabled "debug" && set -x

rm -Rf /bin
rm -Rf /usr
ln -s /dgr/bin /bin
ln -s /dgr/usr /usr


keyringFile=debian-archive-keyring_2014.3_all.deb
cdebootstrapFile=cdebootstrap-static_0.7.3_amd64.deb
gpgvFile=gpgv_1.4.18-7_amd64.deb


mkdir /tmp/debootstrap
cd /tmp/debootstrap
wget http://ftp.us.debian.org/debian/pool/main/c/cdebootstrap/${cdebootstrapFile}
ar -x ${cdebootstrapFile}
cd /
zcat /tmp/debootstrap/data.tar.xz | tar xv

mkdir /tmp/keyring
cd /tmp/keyring
wget http://ftp.us.debian.org/debian/pool/main/d/debian-archive-keyring/${keyringFile}
ar -x ${keyringFile}
cd /
zcat /tmp/keyring/data.tar.xz | tar xv

mkdir /tmp/gpgv
cd /tmp/gpgv
wget http://ftp.us.debian.org/debian/pool/main/g/gnupg/${gpgvFile}
ar -x ${gpgvFile}
cd /
zcat /tmp/gpgv/data.tar.xz | tar xv

echo 'Debootstrapping new Jessie image'
LANG=C /usr/bin/cdebootstrap-static --arch=amd64 --flavour=minimal --verbose jessie ${ROOTFS}

rm -Rf  ${ROOTFS}/usr/share/locale/*<commit_msg>preserve /usr symlink on debian extract<commit_after>#!/dgr/bin/busybox sh
set -e
. /dgr/bin/functions.sh
isLevelEnabled "debug" && set -x

keyringFile=debian-archive-keyring_2014.3_all.deb
cdebootstrapFile=cdebootstrap-static_0.7.3_amd64.deb
gpgvFile=gpgv_1.4.18-7_amd64.deb

mkdir /tmp/debootstrap
cd /tmp/debootstrap
wget http://ftp.us.debian.org/debian/pool/main/c/cdebootstrap/${cdebootstrapFile}
ar -x ${cdebootstrapFile}
cd /
zcat /tmp/debootstrap/data.tar.xz | tar xvh

mkdir /tmp/keyring
cd /tmp/keyring
wget http://ftp.us.debian.org/debian/pool/main/d/debian-archive-keyring/${keyringFile}
ar -x ${keyringFile}
cd /
zcat /tmp/keyring/data.tar.xz | tar xvh

mkdir /tmp/gpgv
cd /tmp/gpgv
wget http://ftp.us.debian.org/debian/pool/main/g/gnupg/${gpgvFile}
ar -x ${gpgvFile}
cd /
zcat /tmp/gpgv/data.tar.xz | tar xvh

echo 'Debootstrapping new Jessie image'
LANG=C /usr/bin/cdebootstrap-static --arch=amd64 --flavour=minimal --verbose jessie ${ROOTFS}

rm -Rf  ${ROOTFS}/usr/share/locale/*
{'fraction_non_alphanumeric': 0.15729783037475345, 'fraction_numerical': 0.01873767258382643, 'mean_word_length': 3.924757281553398, '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': '6742551', 'n_tokens_mistral': 922, 'n_tokens_neox': 859, 'n_words': 156}