<commit_before>#! /bin/bash

# Start as a GDB service, for debugging
# (0 means no, anything else yes.)

DEBUG=0

[[ $2 = "debug" ]] && DEBUG=1 


# Get the Qemu-command (in-source, so we can use it elsewhere)
. ./qemu_cmd.sh

# Qemu with gdb debugging:

if [ $DEBUG -ne 0 ]
then
    echo "Building system..."
    make -B debug
    echo "Starting VM: '$1'"
    echo "-----------------------"
    
    echo "VM started in DEBUG mode. Connect with gdb/emacs:"
    echo " - M+x gdb, Enter, then start with command"
    echo "   gdb -i=mi service -x service.gdb"
    echo "-----------------------"  
    $QEMU -s -S $QEMU_OPTS
else    
    rm *.img
    make clean all #stripped 
    echo "-----------------------"
    echo "Starting VM: '$1'", "Options: ",$QEMU_OPTS
    echo "-----------------------"
    
    sudo $QEMU $QEMU_OPTS 
fi

# Convert the image into VirtualBox / Qemu native formats
 . convert_image.sh

#reset
#bochs<commit_msg>Printing the whole Qemu command<commit_after>#! /bin/bash

# Start as a GDB service, for debugging
# (0 means no, anything else yes.)

DEBUG=0

[[ $2 = "debug" ]] && DEBUG=1 


# Get the Qemu-command (in-source, so we can use it elsewhere)
. ./qemu_cmd.sh

# Qemu with gdb debugging:

if [ $DEBUG -ne 0 ]
then
    echo "Building system..."
    make -B debug
    echo "Starting VM: '$1'"
    echo "-----------------------"
    
    echo "VM started in DEBUG mode. Connect with gdb/emacs:"
    echo " - M+x gdb, Enter, then start with command"
    echo "   gdb -i=mi service -x service.gdb"
    echo "-----------------------"  
    $QEMU -s -S $QEMU_OPTS
else    
    rm *.img
    make clean all #stripped 
    echo "-----------------------"
    echo "Starting VM: '$1'", "Command: " $QEMU $QEMU_OPTS
    echo "-----------------------"
    
    sudo $QEMU $QEMU_OPTS 
fi

# Convert the image into VirtualBox / Qemu native formats
 . convert_image.sh

#reset
#bochs
{'fraction_non_alphanumeric': 0.20842105263157895, 'fraction_numerical': 0.007368421052631579, 'mean_word_length': 1.791483113069016, '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': '1294313', 'n_tokens_mistral': 659, 'n_tokens_neox': 636, 'n_words': 220}