<commit_before>#!/bin/bash -e
sudo bash -c "echo '127.0.0.1 `hostname`' >> /etc/hosts"

sudo apt-get update
sudo apt-get -y install git maven npm ruby
sudo npm install -g bower
sudo npm -g install grunt-cli
sudo npm install grunt-contrib-compass --save-dev

sudo wget http://fastconnect.org/ssl/cacert.crt
export mvn_java=`mvn --version | grep "Java home" | cut -d':' -f2 | xargs`
sudo keytool -keystore ${mvn_java}/lib/security/cacerts -import -alias fastconnect -file cacert.crt -storepass changeit -noprompt

if [ ! -d /opt/alien4cloud ]; then
  sudo mkdir /opt/alien4cloud
fi
if [ ! -d /opt/alien4cloud/src ]; then
  sudo mkdir /opt/alien4cloud/src
fi
cd /opt/alien4cloud/src

# clone alien
sudo git clone -b ${BRANCH} https://github.com/alien4cloud/alien4cloud.git
# build alien
cd /opt/alien4cloud/src/alien4cloud
sudo mvn clean install
cd /opt/alien4cloud/src/

# clone provider tests
sudo git clone -b ${BRANCH} https://github.com/alien4cloud/alien4cloud-provider-int-test.git
# change suffs in alien4cloud-config.yml
cd /opt/alien4cloud/src/alien4cloud-provider-int-test
sudo sed -i -e 's/\(alien: \).*/alien: \/opt\/alien4cloud\/data/' src/test/resources/alien4cloud-config.yml
if [ -n "$MANAGER_NAME" ]; then<commit_msg>fail never on alien install<commit_after>#!/bin/bash -e
sudo bash -c "echo '127.0.0.1 `hostname`' >> /etc/hosts"

sudo apt-get update
sudo apt-get -y install git maven npm ruby
sudo npm install -g bower
sudo npm -g install grunt-cli
sudo npm install grunt-contrib-compass --save-dev

sudo wget http://fastconnect.org/ssl/cacert.crt
export mvn_java=`mvn --version | grep "Java home" | cut -d':' -f2 | xargs`
sudo keytool -keystore ${mvn_java}/lib/security/cacerts -import -alias fastconnect -file cacert.crt -storepass changeit -noprompt

if [ ! -d /opt/alien4cloud ]; then
  sudo mkdir /opt/alien4cloud
fi
if [ ! -d /opt/alien4cloud/src ]; then
  sudo mkdir /opt/alien4cloud/src
fi
cd /opt/alien4cloud/src

# clone alien
sudo git clone -b ${BRANCH} https://github.com/alien4cloud/alien4cloud.git
# build alien
cd /opt/alien4cloud/src/alien4cloud
sudo mvn -fn clean install
cd /opt/alien4cloud/src/

# clone provider tests
sudo git clone -b ${BRANCH} https://github.com/alien4cloud/alien4cloud-provider-int-test.git
# change suffs in alien4cloud-config.yml
cd /opt/alien4cloud/src/alien4cloud-provider-int-test
sudo sed -i -e 's/\(alien: \).*/alien: \/opt\/alien4cloud\/data/' src/test/resources/alien4cloud-config.yml
if [ -n "$MANAGER_NAME" ]; then
{'fraction_non_alphanumeric': 0.1375, 'fraction_numerical': 0.01935483870967742, 'mean_word_length': 3.7803468208092488, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, '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': '2204726', 'n_tokens_mistral': 1001, 'n_tokens_neox': 936, 'n_words': 250}