<commit_before>#!/bin/bash
set -e
cat <<END > mongodb-org-3.0.repo
[mongodb-org-3.0]
name=MongoDB Repository
baseurl=https://repo.mongodb.org/yum/amazon/2013.03/mongodb-org/3.0/x86_64/
gpgcheck=0
enabled=1
END
sudo mv -v mongodb-org-3.0.repo /etc/yum.repos.d/mongodb-org-3.0.repo
sudo yum install -y mongodb-org
sudo service mongod start
sudo chkconfig mongod on<commit_msg>Improve mongo installer for aws linux<commit_after>#!/bin/bash
cat <<END | sudo tee /etc/yum.repos.d/mongodb-org-3.2.repo
[mongodb-org-3.2]
name=MongoDB Repository
baseurl=https://repo.mongodb.org/yum/amazon/2013.03/mongodb-org/3.2/x86_64/
gpgcheck=1
enabled=1
gpgkey=https://www.mongodb.org/static/pgp/server-3.2.asc
END
sudo yum update -y
set -e
sudo yum install -y mongodb-org
if [[ ! -e /var/run/mongodb/mongod.pid ]] ; then
    sudo service mongod start
    sudo chkconfig mongod on
fi
{'fraction_non_alphanumeric': 0.14583333333333334, 'fraction_numerical': 0.04861111111111111, 'mean_word_length': 3.942857142857143, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 4, 'https://': 3, 'lorem ipsum': 0, 'www.': 1, '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': '3489366', 'n_tokens_mistral': 408, 'n_tokens_neox': 363, 'n_words': 73}