<commit_before>#!/bin/sh

if [ ! -d bootfs ]; then
    mkdir -p bootfs
    cd bootfs
    wget \
        https://raw.github.com/raspberrypi/firmware/master/boot/bootcode.bin \
        https://raw.github.com/raspberrypi/firmware/master/boot/fixup.dat\
        https://raw.github.com/raspberrypi/firmware/master/boot/fixup_cd.dat \
        https://raw.github.com/raspberrypi/firmware/master/boot/fixup_x.dat \
        https://raw.github.com/raspberrypi/firmware/master/boot/kernel.img \
        https://raw.github.com/raspberrypi/firmware/master/boot/kernel_emergency.img \
        https://raw.github.com/raspberrypi/firmware/master/boot/start.elf \
        https://raw.github.com/raspberrypi/firmware/master/boot/start_cd.elf \
        https://raw.github.com/raspberrypi/firmware/master/boot/start_x.elf

    echo "kernel=kernel_emergency.img" > config.txt
    echo "initramfs installer.cpio.gz" >> config.txt

    cd ..
fi

cp installer.cpio.gz bootfs/<commit_msg>Zip bootfs for non-xzcat initializing<commit_after>#!/bin/sh

if [ ! -d bootfs ]; then
    mkdir -p bootfs
    cd bootfs
    wget \
        https://raw.github.com/raspberrypi/firmware/master/boot/bootcode.bin \
        https://raw.github.com/raspberrypi/firmware/master/boot/fixup.dat\
        https://raw.github.com/raspberrypi/firmware/master/boot/fixup_cd.dat \
        https://raw.github.com/raspberrypi/firmware/master/boot/fixup_x.dat \
        https://raw.github.com/raspberrypi/firmware/master/boot/kernel.img \
        https://raw.github.com/raspberrypi/firmware/master/boot/kernel_emergency.img \
        https://raw.github.com/raspberrypi/firmware/master/boot/start.elf \
        https://raw.github.com/raspberrypi/firmware/master/boot/start_cd.elf \
        https://raw.github.com/raspberrypi/firmware/master/boot/start_x.elf

    echo "kernel=kernel_emergency.img" > config.txt
    echo "initramfs installer.cpio.gz" >> config.txt

    cd ..
fi

cp installer.cpio.gz bootfs/

cd bootfs && zip -9 ../raspbian-ua-netinst-`date +%Y%m%d`-git`git rev-parse --short @{0}`.zip *; cd ..
{'fraction_non_alphanumeric': 0.14995131450827653, 'fraction_numerical': 0.0009737098344693282, 'mean_word_length': 2.7363636363636363, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, 'https://': 18, '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': '3563897', 'n_tokens_mistral': 779, 'n_tokens_neox': 723, 'n_words': 77}