<commit_before>#!/bin/bash

#should be run as sudo
if [ "$UID" -ne 0 ]
  then echo "WARNING: it seems that the uninstaller has not be run as root. It may not work as intended."
  exit
fi


# stopping daemons
cat << EOF

-------------------
1. Stopping daemons
-------------------

EOF
/etc/init.d/cube-collector stop
/etc/init.d/cube-evaluator stop


#removing scripts
cat << EOF<commit_msg>avoid exiting the script when not root<commit_after>#!/bin/bash

#should be run as sudo
if [ "$UID" -ne 0 ]
  then echo "WARNING: it seems that the uninstaller has not be run as root. It may not work as intended."
fi


# stopping daemons
cat << EOF

-------------------
1. Stopping daemons
-------------------

EOF
/etc/init.d/cube-collector stop
/etc/init.d/cube-evaluator stop


#removing scripts
cat << EOF
{'fraction_non_alphanumeric': 0.185, 'fraction_numerical': 0.005, 'mean_word_length': 2.309917355371901, 'pattern_counts': {'":': 0, '<': 11, '<?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': '7504978', 'n_tokens_mistral': 280, 'n_tokens_neox': 267, 'n_words': 100}