<commit_before>function tear_down_machines() {
    virtmachines=$(sudo virsh list --name |grep pxe)
    for virtmachine in $virtmachines; do
        echo "destroy $virtmachine"
        sudo virsh destroy $virtmachine
        if [[ "$?" != "0" ]]; then
            echo "destroy instance $virtmachine failed"
            exit 1
        fi
    done
    virtmachines=$(sudo virsh list --all --name |grep shut)
    for virtmachine in $virtmachines; do
        echo "undefine $virtmachine"
        sudo virsh undefine $virtmachine
        if [[ "$?" != "0" ]]; then
            echo "undefine instance $virtmachine failed"
            exit 1
        fi
    done
    vol_names=$(sudo virsh vol-list default |grep .img | awk '{print $1}')
    for vol_name in $vol_names; do 
    echo "vol-list $vol_name"
        sudo virsh vol-delete  $vol_name  --pool default
        if [[ "$?" != "0" ]]; then
            echo "undefine instance $virtmachine failed"
            exit 1
        fi
    done
}<commit_msg>mod teardown script<commit_after>function tear_down_machines() {
    virtmachines=$(sudo virsh list --name |grep pxe)
    for virtmachine in $virtmachines; do
        echo "destroy $virtmachine"
        sudo virsh destroy $virtmachine
        if [[ "$?" != "0" ]]; then
            echo "destroy instance $virtmachine failed"
            exit 1
        fi
    done

    virsh  list --all|grep shut|awk '{print $2}'|xargs -n 1 virsh undefine

    vol_names=$(sudo virsh vol-list default |grep .img | awk '{print $1}')
    for vol_name in $vol_names; do 
    echo "vol-list $vol_name"
        sudo virsh vol-delete  $vol_name  --pool default
        if [[ "$?" != "0" ]]; then
            echo "undefine instance $virtmachine failed"
            exit 1
        fi
    done
}
{'fraction_non_alphanumeric': 0.10841332580463016, 'fraction_numerical': 0.007905138339920948, 'mean_word_length': 2.1087719298245613, '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': '1946091', 'n_tokens_mistral': 558, 'n_tokens_neox': 526, 'n_words': 177}