<commit_before># Run with cloud-init:
#
# #cloud-config
# runcmd:
#   - "wget https://raw.githubusercontent.com/brutasse/graphite-api/master/fpm/cloud-init.sh"
#   - "sh cloud-init.sh"

set -e
export DEBIAN_FRONTEND=noninteractive
apt-get update
apt-get -y upgrade
apt-get -y install git ruby ruby-dev build-essential
gem install fpm
echo $PATH
which fpm
git clone https://github.com/brutasse/graphite-api.git
cd graphite-api/fpm
./build-deb.sh<commit_msg>Extend path<commit_after># Run with cloud-init:
#
# #cloud-config
# runcmd:
#   - "wget https://raw.githubusercontent.com/brutasse/graphite-api/master/fpm/cloud-init.sh"
#   - "sh cloud-init.sh"

set -e
export DEBIAN_FRONTEND=noninteractive
apt-get update
apt-get -y upgrade
apt-get -y install git ruby ruby-dev build-essential
gem install fpm
export PATH=$PATH:/usr/local/bin
echo $PATH
which fpm
git clone https://github.com/brutasse/graphite-api.git
cd graphite-api/fpm
./build-deb.sh
{'fraction_non_alphanumeric': 0.13149522799575822, 'fraction_numerical': 0.0, 'mean_word_length': 4.102702702702703, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '4180157', 'n_tokens_mistral': 364, 'n_tokens_neox': 351, 'n_words': 80}