<commit_before>#
# Sudoers steps.
#

# create file
echo '
Defaults:%admin !requiretty
%admin ALL=(ALL) NOPASSWD:ALL
' > /etc/sudoers.d/vagrant

# fix permission
chmod 0440 /etc/sudoers.d/vagrant
<commit_msg>Updated centos sudoers script to handle 5.10 and 6.5 versions.<commit_after>#
# Sudoers steps.
#

vagrant=<<-VAGRANT
Defaults:%admin !requiretty
%admin ALL=(ALL) NOPASSWD:ALL
VAGRANT

# centos 5 does not have sudoers.d dir
if [ ! -d /etc/sudoers.d ] ; then
  echo "$vagrant" >> /etc/sudoers
else
  # create file
  echo "$vagrant" > /etc/sudoers.d/vagrant

  # fix permission
  chmod 0440 /etc/sudoers.d/vagrant
fi

{'fraction_non_alphanumeric': 0.13043478260869565, 'fraction_numerical': 0.02254428341384863, 'mean_word_length': 3.976, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, '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': '6854698', 'n_tokens_mistral': 270, 'n_tokens_neox': 248, 'n_words': 62}