<commit_before>#!/bin/bash
#
#resize2fs /dev/xvda1
#
sudo mkdir /opt/apache
wget -P /tmp http://apache.mirror.serversaustralia.com.au/maven/maven-3/3.3.9/binaries/apache-maven-3.3.9-bin.tar.gz
wget -P /tmp https://services.gradle.org/distributions/gradle-3.1-bin.zip
wget -O /tmp/packer.zip https://releases.hashicorp.com/packer/0.10.1/packer_0.10.1_linux_amd64.zip
wget -O /tmp/ROOT.war http://mirrors.jenkins-ci.org/war-stable/latest/jenkins.war
sudo tar -xf /tmp/apache-maven-3.3.9-bin.tar.gz -C /opt/apache
sudo ln -s /opt/apache/apache-maven-3.3.9 /opt/apache/maven
sudo yum erase -y java-1.7.0-openjdk
sudo rpm -Uvh http://yum.newrelic.com/pub/newrelic/el5/x86_64/newrelic-repo-5-3.noarch.rpm
sudo yum install -y newrelic-sysmond git gcc java-1.8.0-openjdk tomcat8 tomcat8-webapps tomcat8-docs-webapp tomcat8-admin-webapps
sudo yum groupinstall -y "Development Tools"
sudo rpm -i /tmp/jdk.rpm
sudo yum update -y 
unzip /tmp/packer.zip
sudo mv packer /usr/local/bin
sudo rm /tmp/packer.zip
unzip /tmp/gradle-3.1-bin.zip
sudo mv gradle-3.1 /opt/gradle
sudo rm /tmp/gradle-3.1-bin.zip
sudo rm /tmp/apache-maven-3.3.9-bin.tar.gz
sudo service tomcat8 stop
sudo rm -rf /var/lib/tomcat8/webapps/ROOT
sudo mv /tmp/ROOT.war /var/lib/tomcat8/webapps
sudo chkconfig tomcat8 off
sudo chkconfig newrelic-sysmond off
wget -O /tmp/android-sdk.tar.gz https://dl.google.com/android/android-sdk_r24.4.1-linux.tgz
sudo tar -xf /tmp/android-sdk.tar.gz -C /opt
sudo rm /tmp/android-sdk.tar.gz
sudo mv /tmp/devenv.sh /etc/profile.d/devenv.sh
# Doing the sdk update inside packer takes to long, and times out
#echo "y" | /opt/android-sdk-linux/tools/android update sdk --all --no-ui
<commit_msg>Adding Maven 2 support for Android<commit_after>#!/bin/bash
#
#resize2fs /dev/xvda1
#
sudo mkdir /opt/apache
wget -P /tmp http://apache.mirror.serversaustralia.com.au/maven/maven-3/3.3.9/binaries/apache-maven-3.3.9-bin.tar.gz
wget -P /tmp https://services.gradle.org/distributions/gradle-3.1-bin.zip
wget -P /tmp http://archive.apache.org/dist/maven/binaries/apache-maven-2.2.1-bin.tar.gz
wget -O /tmp/packer.zip https://releases.hashicorp.com/packer/0.10.1/packer_0.10.1_linux_amd64.zip
wget -O /tmp/ROOT.war http://mirrors.jenkins-ci.org/war-stable/latest/jenkins.war
sudo tar -xf /tmp/apache-maven-3.3.9-bin.tar.gz -C /opt/apache
sudo ln -s /opt/apache/apache-maven-3.3.9 /opt/apache/maven
sudo tar -xf /tmp/apache-maven-2.2.1-bin.tar.gz -C /opt/apache
sudo ln -s /opt/apache/apache-maven-2.2.1-bin.tar.gz /opt/maven2
sudo yum erase -y java-1.7.0-openjdk
sudo rpm -Uvh http://yum.newrelic.com/pub/newrelic/el5/x86_64/newrelic-repo-5-3.noarch.rpm
sudo yum install -y newrelic-sysmond git gcc java-1.8.0-openjdk tomcat8 tomcat8-webapps tomcat8-docs-webapp tomcat8-admin-webapps
sudo yum groupinstall -y "Development Tools"
sudo rpm -i /tmp/jdk.rpm
sudo yum update -y 
unzip /tmp/packer.zip
sudo mv packer /usr/local/bin
sudo rm /tmp/packer.zip
unzip /tmp/gradle-3.1-bin.zip
sudo mv gradle-3.1 /opt/gradle
sudo rm /tmp/gradle-3.1-bin.zip
sudo rm /tmp/apache-maven-3.3.9-bin.tar.gz
sudo rm /tmp/apache-maven-2.2.1-bin.tar.gz
sudo service tomcat8 stop
sudo rm -rf /var/lib/tomcat8/webapps/ROOT
sudo mv /tmp/ROOT.war /var/lib/tomcat8/webapps
sudo chkconfig tomcat8 off
sudo chkconfig newrelic-sysmond off
wget -O /tmp/android-sdk.tar.gz https://dl.google.com/android/android-sdk_r24.4.1-linux.tgz
sudo tar -xf /tmp/android-sdk.tar.gz -C /opt
sudo rm /tmp/android-sdk.tar.gz
sudo mv /tmp/devenv.sh /etc/profile.d/devenv.sh
# Doing the sdk update inside packer takes to long, and times out
#echo "y" | /opt/android-sdk-linux/tools/android update sdk --all --no-ui

{'fraction_non_alphanumeric': 0.1525982952983228, 'fraction_numerical': 0.03739345614517459, 'mean_word_length': 3.3621103117505995, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 6, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4535784', 'n_tokens_mistral': 1648, 'n_tokens_neox': 1529, 'n_words': 313}