<commit_before>#!/usr/bin/env bash

#Declare Variables 
#IntelMQ
INTELMQ_REPO="https://github.com/certtools/intelmq.git"
#BRANCH="master"
INTELMQ_BRANCH="v1.0-beta"
#IntelMQ-Manager
INTELMQ_MANAGER_REPO="https://github.com/certtools/intelmq-manager.git"

function install_intelmq {
	#Install Dependencies
	apt-get update
	apt-get -y install python-pip git build-essential python-dev redis-server
	#Requires for installing pyzmq with accelaration
	apt-get -y install libzmq3-dev

	#Install IntelMQ
	#sudo su -
	git clone -b $INTELMQ_BRANCH $INTELMQ_REPO
	cd intelmq/
	# If branch v1.0-beta install deps using REQUIREMENTS file
	if [[ $INTELMQ_BRANCH == "v1.0-beta" ]]
	then
	    pip install -r REQUIREMENTS;
	fi
	#Install
	python setup.py install
	useradd -d /opt/intelmq -U -s /bin/bash intelmq
	chmod -R 0770 /opt/intelmq
	chown -R intelmq.intelmq /opt/intelmq
}

function install_intelmq_manager {
	#Install Dependencies
	apt-get -y install git apache2 php5 libapache2-mod-php5
	#Install Manager
	git clone $INTELMQ_MANAGER_REPO /tmp/intelmq-manager
	cp -R /tmp/intelmq-manager/intelmq-manager/* /var/www/
	chown -R www-data.www-data /var/www/
	#Configure
	usermod -a -G intelmq www-data
	echo "www-data ALL=(intelmq) NOPASSWD: /opt/intelmq/bin/intelmqctl" >> /etc/sudoers
	sed -i -e 's#DocumentRoot /var/www/html#DocumentRoot /var/www#' /etc/apache2/sites-available/000-default.conf
	/etc/init.d/apache2 restart

}
install_intelmq
install_intelmq_manager<commit_msg>Changed vagrant bootstrap.sh to clone the branch v1.0-final<commit_after>#!/usr/bin/env bash

#Declare Variables 
#IntelMQ
INTELMQ_REPO="https://github.com/certtools/intelmq.git"
#BRANCH="master"
INTELMQ_BRANCH="v1.0-final"
#IntelMQ-Manager
INTELMQ_MANAGER_REPO="https://github.com/certtools/intelmq-manager.git"

function install_intelmq {
	#Install Dependencies
	apt-get update
	apt-get -y install python-pip git build-essential python-dev redis-server
	#Requires for installing pyzmq with accelaration
	apt-get -y install libzmq3-dev

	#Install IntelMQ
	#sudo su -
	git clone -b $INTELMQ_BRANCH $INTELMQ_REPO
	cd intelmq/
	# If branch v1.0-beta install deps using REQUIREMENTS file
	if [[ $INTELMQ_BRANCH == "v1.0-beta" ]]
	then
	    pip install -r REQUIREMENTS;
	fi
	#Install
	python setup.py install
	useradd -d /opt/intelmq -U -s /bin/bash intelmq
	chmod -R 0770 /opt/intelmq
	chown -R intelmq.intelmq /opt/intelmq
}

function install_intelmq_manager {
	#Install Dependencies
	apt-get -y install git apache2 php5 libapache2-mod-php5
	#Install Manager
	git clone $INTELMQ_MANAGER_REPO /tmp/intelmq-manager
	cp -R /tmp/intelmq-manager/intelmq-manager/* /var/www/
	chown -R www-data.www-data /var/www/
	#Configure
	usermod -a -G intelmq www-data
	echo "www-data ALL=(intelmq) NOPASSWD: /opt/intelmq/bin/intelmqctl" >> /etc/sudoers
	sed -i -e 's#DocumentRoot /var/www/html#DocumentRoot /var/www#' /etc/apache2/sites-available/000-default.conf
	/etc/init.d/apache2 restart

}
install_intelmq
install_intelmq_manager

{'fraction_non_alphanumeric': 0.11286001339584728, 'fraction_numerical': 0.01406563965170797, 'mean_word_length': 4.185763888888889, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, 'https://': 4, 'lorem ipsum': 0, 'www.': 16, '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': '7221372', 'n_tokens_mistral': 1258, 'n_tokens_neox': 1150, 'n_words': 264}