<commit_before>#!/bin/sh

set -eu

# It would have been nice to mount /dev as devtmpfs, but unfortunately
# that's not possible if you're not privileged. For now tmpfs will
# have to do.
mount -n -t tmpfs none /dev

mount -t proc none /proc
mount -t sysfs none /sys

mkdir -p /tmp.shadow
mount --bind /tmp /tmp.shadow
mount -t tmpfs none /tmp
cp -a /tmp.shadow/* /tmp/

mkdir -p "$FINIT_RCSD"

tty=/dev/$(cat /sys/class/tty/console/active)
mkfifo "$tty"

exec "$@"<commit_msg>test: Only copy /tmp contents if there are any<commit_after>#!/bin/sh

set -eu

# It would have been nice to mount /dev as devtmpfs, but unfortunately
# that's not possible if you're not privileged. For now tmpfs will
# have to do.
mount -n -t tmpfs none /dev

mount -t proc none /proc
mount -t sysfs none /sys

if [ "$(ls -A /tmp)" ]; then
    mkdir -p /tmp.shadow
    mount --bind /tmp /tmp.shadow
    mount -t tmpfs none /tmp
    cp -a /tmp.shadow/* /tmp/
else
    mount -t tmpfs none /tmp
fi

mkdir -p "$FINIT_RCSD"

tty=/dev/$(cat /sys/class/tty/console/active)
mkfifo "$tty"

exec "$@"
{'fraction_non_alphanumeric': 0.13120899718837864, 'fraction_numerical': 0.0, 'mean_word_length': 2.8142857142857145, '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': '4706069', 'n_tokens_mistral': 402, 'n_tokens_neox': 384, 'n_words': 158}