<commit_before>#!/bin/sh

# exit on any error
set -e

# verbose, print cmds
set -x

echo "==============================================="
echo "preparing leap"
echo "==============================================="

echo "deb http://httpredir.debian.org/debian/ wheezy-backports main" > /etc/apt/sources.list.d/backports.list
apt-get update
DEBIAN_FRONTEND=noninteractive apt-get -y install puppet rsync ruby-hiera-puppet git ruby1.9.1-dev rake jq
apt-get clean

# update leap package key
apt-key adv --keyserver pool.sks-keyservers.net --recv-keys <KEY>


echo "==============================================="
echo "installing leap"
echo "==============================================="
mkdir /home/leap

# use released leap_cli gem instead of building from source
gem install leap_cli

#git clone -b develop https://leap.se/git/leap_cli.git /home/leap/leap_cli
#cd /home/leap/leap_cli
#rake build
#rake install

git clone -b develop --recursive https://github.com/pixelated-project/leap_platform.git /home/leap/leap_platform

echo "==============================================="
echo "cleaning up"
echo "==============================================="
apt-get -f install
sync
sleep 10<commit_msg>use leap_platform master branch to use 0.7 platform release<commit_after>#!/bin/sh

# exit on any error
set -e

# verbose, print cmds
set -x

echo "==============================================="
echo "preparing leap"
echo "==============================================="

echo "deb http://httpredir.debian.org/debian/ wheezy-backports main" > /etc/apt/sources.list.d/backports.list
apt-get update
DEBIAN_FRONTEND=noninteractive apt-get -y install puppet rsync ruby-hiera-puppet git ruby1.9.1-dev rake jq
apt-get clean

# update leap package key
apt-key adv --keyserver pool.sks-keyservers.net --recv-keys <KEY>


echo "==============================================="
echo "installing leap"
echo "==============================================="
mkdir /home/leap

# use released leap_cli gem instead of building from source
gem install leap_cli

#git clone -b develop https://leap.se/git/leap_cli.git /home/leap/leap_cli
#cd /home/leap/leap_cli
#rake build
#rake install

git clone --recursive https://github.com/pixelated-project/leap_platform.git /home/leap/leap_platform

echo "==============================================="
echo "cleaning up"
echo "==============================================="
apt-get -f install
sync
sleep 10
{'fraction_non_alphanumeric': 0.31846090871878835, 'fraction_numerical': 0.004911993450675399, 'mean_word_length': 5.517333333333333, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, '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': '5872352', 'n_tokens_mistral': 763, 'n_tokens_neox': 711, 'n_words': 199}