<commit_before>#!/bin/sh -e

DIR=$(dirname "${0}")
SCRIPT_DIR=$(cd "${DIR}" || exit 1; pwd)

usage()
{
    echo "Usage: ${0} [--raw]"
}

. "${SCRIPT_DIR}/../lib/virtual_box_tools.sh"

if [ "${1}" = "--raw" ]; then
    ${MANAGE_COMMAND} list vms
else
    ${MANAGE_COMMAND} list vms | awk -F '"' '{ print $2 }'
fi<commit_msg>sort output of list-all-vms too<commit_after>#!/bin/sh -e

DIR=$(dirname "${0}")
SCRIPT_DIR=$(cd "${DIR}" || exit 1; pwd)

usage()
{
    echo "Usage: ${0} [--raw]"
}

. "${SCRIPT_DIR}/../lib/virtual_box_tools.sh"

if [ "${1}" = "--raw" ]; then
    ${MANAGE_COMMAND} list vms
else
    OUTPUT=$(${MANAGE_COMMAND} list vms | awk -F '"' '{ print $2 }')
    SORTED=$(ruby -e "puts \"${OUTPUT}\".split(/\s+/).sort")
    echo "${SORTED}"
fi
{'fraction_non_alphanumeric': 0.26587301587301587, 'fraction_numerical': 0.013227513227513227, 'mean_word_length': 3.3757225433526012, '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': '6468282', 'n_tokens_mistral': 322, 'n_tokens_neox': 319, 'n_words': 71}