<commit_before>#!/bin/sh -e

SCRIPT_DIR=$(cd "$(dirname "${0}")"; pwd)

usage(){
    echo "Usage: ${0} VM_NAME"
}

if [ "${1}" = "" ]; then
    usage

    exit 1
fi

NOT_FOUND=false
"${SCRIPT_DIR}/bin/show-info.sh" "${1}" > /dev/null 2>&1 || NOT_FOUND=true

if [ "${NOT_FOUND}" = true ]; then
    echo "Not found."

    exit 1
else
    IS_RUNNING=$("${SCRIPT_DIR}bin/list-vms.sh" | grep "${1}")

    if [ ! "${IS_RUNNING}" = "" ]; then
        echo "Stop vm."
        "${SCRIPT_DIR}bin/stop-vm.sh" "${1}"<commit_msg>print search string in delete-vm scipt on error<commit_after>#!/bin/sh -e

SCRIPT_DIR=$(cd "$(dirname "${0}")"; pwd)

usage(){
    echo "Usage: ${0} VM_NAME"
}

if [ "${1}" = "" ]; then
    usage

    exit 1
fi

NOT_FOUND=false
"${SCRIPT_DIR}/bin/show-info.sh" "${1}" > /dev/null 2>&1 || NOT_FOUND=true

if [ "${NOT_FOUND}" = true ]; then
    echo "Not found: ${1}"

    exit 1
else
    IS_RUNNING=$("${SCRIPT_DIR}bin/list-vms.sh" | grep "${1}")

    if [ ! "${IS_RUNNING}" = "" ]; then
        echo "Stop vm."
        "${SCRIPT_DIR}bin/stop-vm.sh" "${1}"
{'fraction_non_alphanumeric': 0.23716153127917833, 'fraction_numerical': 0.0196078431372549, 'mean_word_length': 3.0149812734082397, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '458117', 'n_tokens_mistral': 458, 'n_tokens_neox': 441, 'n_words': 97}