<commit_before>daemons = %w{namenode datanode resourcemanager nodemanager historyserver proxyserver}
daemons.each { |d| 
  bash 'uninstall_service_#{d}' do
    user "root"
    ignore_failure true
    code <<-EOF
 service #{d} stop
 systemctl stop #{d}
 pkillall -9 #{d}
 systemctl reset-failed
EOF
  end

  file "/etc/init.d/#{d}" do
    action :delete
    ignore_failure true
  end
  file "/usr/lib/systemd/systemd/#{d}.service" do
    action :delete
    ignore_failure true
  end
  file "/lib/systemd/systemd/#{d}.service" do
    action :delete
    ignore_failure true
  end
  file "/etc/systemd/system/#{d}.service" do
    action :delete
    ignore_failure true
  end
  directory "/etc/systemd/system/#{d}.service.d" do
    recursive true
    action :delete
    ignore_failure true
  end<commit_msg>purge upgrade<commit_after>daemons = %w{namenode datanode resourcemanager nodemanager historyserver proxyserver}
daemons.each { |d| 
  bash 'uninstall_service_#{d}' do
    user "root"
    ignore_failure true
    code <<-EOF
 service #{d} stop
 systemctl stop #{d}
 pkillall -9 #{d}
 systemctl daemon-reload
 systemctl reset-failed
EOF
  end

  file "/etc/init.d/#{d}" do
    action :delete
    ignore_failure true
  end
  file "/usr/lib/systemd/systemd/#{d}.service" do
    action :delete
    ignore_failure true
  end
  file "/lib/systemd/systemd/#{d}.service" do
    action :delete
    ignore_failure true
  end
  file "/etc/systemd/system/#{d}.service" do
    action :delete
    ignore_failure true
  end
  directory "/etc/systemd/system/#{d}.service.d" do
    recursive true
    action :delete
    ignore_failure true
  end
{'fraction_non_alphanumeric': 0.10865561694290976, 'fraction_numerical': 0.0012277470841006752, 'mean_word_length': 3.22279792746114, 'pattern_counts': {'":': 0, '<': 7, '<?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': '3693296', 'n_tokens_mistral': 552, 'n_tokens_neox': 549, 'n_words': 148}