<commit_before>#!/usr/bin/env bash

set -e

CLUSTER_PREFIX="c1"

if [ "x$1" != "x" ]; then
    CLUSTER_PREFIX=$1
fi

items=$(nova list | cut -d'|' -f3 | grep "^ ${CLUSTER_PREFIX}" )

for item in ${items}; do
    echo "Deleting ${item}"
    nova delete ${item}
done<commit_msg>Ensure similar names aren't both deleted.e.g. "test" would delete "tester"<commit_after>#!/usr/bin/env bash

set -e

CLUSTER_PREFIX="c1"

if [ "x$1" != "x" ]; then
    CLUSTER_PREFIX=$1
fi

items=$(nova list | cut -d'|' -f3 | grep "^ ${CLUSTER_PREFIX}-" )

for item in ${items}; do
    echo "Deleting ${item}"
    nova delete ${item}
done
{'fraction_non_alphanumeric': 0.18729641693811075, 'fraction_numerical': 0.013029315960912053, 'mean_word_length': 3.659090909090909, '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': '185353', 'n_tokens_mistral': 262, 'n_tokens_neox': 253, 'n_words': 68}