<commit_before>#!/bin/bash

for node in $(cat ${HADOOP_HOME}/etc/hadoop/slaves ${HADOOP_HOME}/etc/hadoop/masters); do
    PIDS=$(ssh $node "ps aux | grep \"hadoop\\|spark\" | grep -v grep | grep -v force_kill | awk '{ print \$2 }'")
    for pid in $PIDS; do
        ssh $node "kill -9 $pid"
    done
    echo Killed $(echo $PIDS | wc -w) processes in $node
done<commit_msg>always remove data file on force_kill<commit_after>#!/bin/bash

for node in $(cat ${HADOOP_HOME}/etc/hadoop/slaves ${HADOOP_HOME}/etc/hadoop/masters); do
    PIDS=$(ssh $node "ps aux | grep \"hadoop\\|spark\" | grep -v grep | grep -v force_kill | awk '{ print \$2 }'")

    for pid in $PIDS; do
        ssh $node "kill -9 $pid"
    done

    ssh $node "rm -rf /tmp/hadoop-jmg3/dfs/data"

    echo Killed $(echo $PIDS | wc -w) processes in $node
done
{'fraction_non_alphanumeric': 0.16423357664233576, 'fraction_numerical': 0.006082725060827251, 'mean_word_length': 2.956730769230769, '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': '6848616', 'n_tokens_mistral': 329, 'n_tokens_neox': 304, 'n_words': 97}