<commit_before>#!/usr/bin/env python
import os, sys
from ServerConfig import General
from ServerConfig import Hadoop
from ServerConfig import Zookeeper
from ServerConfig import Hbase

def execssh(hosts, cmd):
    for host in hosts:
        os.system('ssh -A root@{0} {1}'.format(host, cmd))

def stopZk():
    zk_stop_cmd = '{0}/bin/zkServer.sh stop'.format(Zookeeper.zkdir)
    execssh([Zookeeper.zkserver], zk_stop_cmd)
    execssh([Zookeeper.zkserver], "rm -r {0}".format(Zookeeper.datadir))

def main():
   hbase_stop_cmd = '{0}/bin/stop-hbase.sh'.format(Hbase.hbasedir)
   stopZk()
   execssh([Hbase.hmaster], hbase_stop_cmd)

if __name__ == "__main__":
   main()<commit_msg>Changing order when stopping zk<commit_after>#!/usr/bin/env python
import os, sys
from ServerConfig import General
from ServerConfig import Hadoop
from ServerConfig import Zookeeper
from ServerConfig import Hbase

def execssh(hosts, cmd):
    for host in hosts:
        os.system('ssh -A root@{0} {1}'.format(host, cmd))

def stopZk():
    zk_stop_cmd = '{0}/bin/zkServer.sh stop'.format(Zookeeper.zkdir)
    execssh([Zookeeper.zkserver], zk_stop_cmd)
    execssh([Zookeeper.zkserver], "rm -r {0}".format(Zookeeper.datadir))

def main():
   hbase_stop_cmd = '{0}/bin/stop-hbase.sh'.format(Hbase.hbasedir)
   execssh([Hbase.hmaster], hbase_stop_cmd)
   stopZk()

if __name__ == "__main__":
   main()
{'fraction_non_alphanumeric': 0.13933236574746008, 'fraction_numerical': 0.00725689404934688, 'mean_word_length': 4.628571428571429, 'pattern_counts': {'":': 2, '<': 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': '6148574', 'n_tokens_mistral': 529, 'n_tokens_neox': 514, 'n_words': 113}