<commit_before>#!/bin/bash

source .env

# stop machines irrespective of currently running or not, irrespective of node exists or not
# since the error messages are redirected to /dev/null

if [ "$#" -eq 1 ]; then
	export NODE_NAME="$1"
fi

echo "[$NODE_NAME] - stopping and removing node..."
# docker-machine stop "$NODE_NAME" > /dev/null 2>&1
docker-machine rm --force -y "$NODE_NAME" > /dev/null 2>&1
echo "[$NODE_NAME] - node stopped and removed succesfully"

# list the cluster machines
echo "Current Docker Hosts:"
docker-machine ls<commit_msg>Remove error redirection to /dev/null<commit_after>#!/bin/bash

source .env

# stop machines irrespective of currently running or not, irrespective of node exists or not
# since the error messages are redirected to /dev/null

if [ "$#" -eq 1 ]; then
	export NODE_NAME="$1"
fi

echo "[$NODE_NAME] - stopping and removing node..."
# docker-machine stop "$NODE_NAME" > /dev/null 2>&1
docker-machine rm --force -y "$NODE_NAME" > /dev/null
echo "[$NODE_NAME] - node stopped and removed succesfully"

# list the cluster machines
echo "Current Docker Hosts:"
docker-machine ls
{'fraction_non_alphanumeric': 0.11974977658623771, 'fraction_numerical': 0.008936550491510277, 'mean_word_length': 4.233644859813084, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 10, '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': '1776205', 'n_tokens_mistral': 367, 'n_tokens_neox': 339, 'n_words': 136}