<commit_before>#! /bin/sh
echo "running $0 $@"

if [ -d /vagrant ]; then
  # no need for caching installs on demo servers
  cp -R /space/software/yum /var/cache/
  
  sed -i '/keepcache/ s/0/1/' /etc/yum.conf
fi<commit_msg>Fixed #61 and #43: fixed epel download, and added dev tools install<commit_after>#! /bin/sh
echo "running $0 $@"

os=`cat /etc/redhat-release`

# no need for caching installs on demo servers
if [ -d /vagrant ]; then
  if [[ $os == *"7."* ]]; then
    cp -R /space/software/yum-centos7 /var/cache/yum
  else
    cp -R /space/software/yum /var/cache/
  fi
  
  sed -i '/keepcache/ s/0/1/' /etc/yum.conf
fi

if [[ $os == *"7."* ]]; then
  rpm --import https://fedoraproject.org/static/352C64E5.txt
  rpm -Uvh http://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-5.noarch.rpm
else
  rpm --import https://fedoraproject.org/static/0608B895.txt
  rpm -Uvh http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm
fi

yum -y update
if [[ $os == *"7."* ]]; then
  yum groups mark install "Development Tools"
  yum groups mark convert "Development Tools"
fi
yum -y groupinstall "Development Tools"

{'fraction_non_alphanumeric': 0.1646234676007005, 'fraction_numerical': 0.03502626970227671, 'mean_word_length': 3.0105263157894737, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 5, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5503674', 'n_tokens_mistral': 495, 'n_tokens_neox': 457, 'n_words': 119}